Auto meta title cho Opencart bằng đoạn script ngắn

Auto meta title cho Opencart bằng đoạn script ngắn
<?xml version="1.0" encoding="utf-8"?>
<modification>
<id>f_auto_metatag_title</id>
<name>Auto MetaTag Title</name>
<version>3.0</version>
<vqmver required="true">2.6.0</vqmver>
<author>Fabio Messina - fabiome77@hotmail.it</author>
<link>https://www.linkedin.com/in/messinafabio/</link>

<file path="admin/view/template/catalog/" name="product_form.twig,category_form.twig">
<operation>
<search><![CDATA[
{{ footer }}
]]></search>
<add position="before"><![CDATA[
<script type="text/javascript"><!--
{% for language in languages %}
$('#input-name{{ language.language_id }}').on({
'keydown': function() {
$('#input-meta-title{{ language.language_id }}').css('border-color', '#F60');
},
'keyup': function() {
$('#input-meta-title{{ language.language_id }}').val($(this).val()).css('border-color', '');
}
}).trigger('keyup');
{% endfor %}
//--></script>
]]></add>
</operation>
</file>
</modification>

Đăng bởi : Doan Nguyen Auto meta title cho Opencart bằng đoạn script ngắn Đánh giá: 9.1 / 10

0 Nhận xét