app/Plugin/Seo42/Resource/template/detail.twig line 1

Open in your IDE?
  1. {% if Product is not empty %}
  2. <script>
  3.     $(function() {
  4.         {% if Product.seo_title is defined and Product.seo_title is not empty %}
  5.         $('title').html('{{ Product.seo_title }}');
  6.         {% endif %}
  7.         
  8.         {% if Product.seo_keywords is defined and Product.seo_keywords is not empty %}
  9.         $('meta[name=keywords]').remove();
  10.         $('title').after('<meta name="keywords" content="{{ Product.seo_keywords }}">');
  11.         {% endif %}
  12.         {% if Product.seo_description is defined and Product.seo_description is not empty %}
  13.         $('meta[name=description]').remove();
  14.         $('title').after('<meta name="description" content="{{ Product.seo_description }}">');
  15.         {% endif %}
  16.     });
  17. </script>
  18. {% endif %}