-
Notifications
You must be signed in to change notification settings - Fork 5
/
install.xml
89 lines (89 loc) · 3.25 KB
/
install.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
78
79
80
81
82
83
84
85
86
87
88
89
<?xml version="1.0" encoding="UTF-8"?>
<modification>
<name>URL amigável automática para OpenCart 3.0.x</name>
<code>url-amigavel-automatica</code>
<version>3.0.0</version>
<author>OpenCart Brasil</author>
<link>http://www.opencartbrasil.com.br</link>
<file path="admin/view/template/common/header.twig">
<operation>
<search><![CDATA[</head>]]></search>
<add position="before"><![CDATA[
<script type="text/javascript" src="view/javascript/stringToSlug/jquery.stringToSlug.min.js"></script>
<script type="text/javascript" src="view/javascript/stringToSlug/speakingurl.js"></script>
]]></add>
</operation>
</file>
<file path="admin/view/template/catalog/product_form.twig">
<operation>
<search><![CDATA[{{ footer }}]]></search>
<add position="before"><![CDATA[
<script type="text/javascript"><!--
{% for language in languages %}
$('input[name="product_description[{{ language.language_id }}][name]').stringToSlug({
setEvents: 'keyup keydown blur',
getPut: 'input[name="product_seo_url[0][{{ language.language_id }}]"]',
space: '-',
replace: '/\s?\([^\)]*\)/gi',
AND: 'e'
});
{% endfor %}
//--></script>
]]></add>
</operation>
</file>
<file path="admin/view/template/catalog/category_form.twig">
<operation>
<search><![CDATA[{{ footer }}]]></search>
<add position="before"><![CDATA[
<script type="text/javascript"><!--
{% for language in languages %}
$('input[name="category_description[{{ language.language_id }}][name]').stringToSlug({
setEvents: 'keyup keydown blur',
getPut: 'input[name="category_seo_url[0][{{ language.language_id }}]"]',
space: '-',
replace: '/\s?\([^\)]*\)/gi',
AND: 'e'
});
{% endfor %}
//--></script>
]]></add>
</operation>
</file>
<file path="admin/view/template/catalog/information_form.twig">
<operation>
<search><![CDATA[{{ footer }}]]></search>
<add position="before"><![CDATA[
<script type="text/javascript"><!--
{% for language in languages %}
$('input[name="information_description[{{ language.language_id }}][title]').stringToSlug({
setEvents: 'keyup keydown blur',
getPut: 'input[name="information_seo_url[0][{{ language.language_id }}]"]',
space: '-',
replace: '/\s?\([^\)]*\)/gi',
AND: 'e'
});
{% endfor %}
//--></script>
]]></add>
</operation>
</file>
<file path="admin/view/template/catalog/manufacturer_form.twig">
<operation>
<search><![CDATA[{{ footer }}]]></search>
<add position="before"><![CDATA[
<script type="text/javascript"><!--
{% for language in languages %}
$('input[name="name"]').stringToSlug({
setEvents: 'keyup keydown blur',
getPut: 'input[name="manufacturer_seo_url[0][{{ language.language_id }}]"]',
space: '-',
replace: '/\s?\([^\)]*\)/gi',
AND: 'e'
});
{% endfor %}
//--></script>
]]></add>
</operation>
</file>
</modification>