-
Notifications
You must be signed in to change notification settings - Fork 0
/
staticassetdomainreplace.xml
77 lines (68 loc) · 3.52 KB
/
staticassetdomainreplace.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<?xml version="1.0" encoding="utf-8"?>
<extension version="3.1" type="plugin" group="system" method="upgrade">
<name>System - Static Asset Domain Replace</name>
<author>Ben Klein</author>
<creationDate>September 2017 - October 2017</creationDate>
<copyright>Copyright (C) 2017 Ben Klein. All rights reserved.</copyright>
<license>All rights reserved. (For now)</license>
<authorEmail>robobenklein@gmail.com</authorEmail>
<authorUrl>unhexium.net</authorUrl>
<version>0.1</version>
<description>Changes absolute local links to a new domain.</description>
<files>
<filename plugin="staticassetdomainreplace">staticassetdomainreplace.php</filename>
<filename>staticassetdomainreplace.xml</filename>
<filename>index.html</filename>
</files>
<languages>
<language tag="en-GB">en-GB.plg_system_staticassetdomainreplace.sys.ini</language>
</languages>
<config>
<fields name="params">
<fieldset name="basic">
<field name="insert_domain"
type="text" default=""
description="Domain to insert before local urls"
label="CDN Domain" />
<field name="domain_scheme" type="radio" default="//"
description="Scheme to use for the inserted domain, // uses the same scheme as page." label="HTTP/S">
<option value="//">// Relative</option>
<option value="http://">HTTP</option>
<option value="https://">HTTPS</option>
</field>
<field name="enable_tag_link"
type="radio" default="0" class="btn-group"
description="Enable replacement of urls in &lt;link href&gt; tags."
label="Enable in &lt;link&gt;">
<option value="0">JOFF</option>
<option value="1">JON</option>
</field>
<field name="enable_tag_img"
type="radio" default="0" class="btn-group"
description="Enable replacement of urls in &lt;img src&gt; tags."
label="Enable in &lt;img&gt;">
<option value="0">JOFF</option>
<option value="1">JON</option>
</field>
<field name="enable_tag_script"
type="radio" default="0" class="btn-group"
description="Enable replacement of urls in &lt;script src&gt; tags"
label="Enable in &lt;script&gt;">
<option value="0">JOFF</option>
<option value="1">JON</option>
</field>
<field name="enable_tag_style_url"
type="radio" default="0" class="btn-group"
description="Enable replacement of url() directives in &lt;style&gt; tags"
label="Enable in &lt;style&gt;">
<option value="0">JOFF</option>
<option value="1">JON</option>
</field>
<field name="filetypes" type="textarea" cols="60" rows="3"
default="css,pack.js,min.js,js,bmp,gif,jpg,jpeg,ico,png,tif,tiff,svg,odt,pdf,rtf,txt"
label="Filetypes"
description="Comma-separated filetype extensions to be included. E.x. `js,min.js,css,jpg` <br>Do not leave a trailing comma or double comma!" />
</fieldset>
</fields>
</config>
</extension>