src/DcSiteBundle/Resources/views/Modules/acessories/module/block-seo.html.twig line 1

Open in your IDE?
  1. {% if seoMeta.title %}
  2.     <title>{{ seoMeta.title }}</title>
  3.     <meta name="description" content="{{ seoMeta.description  }}"/>
  4. {% else %}
  5.     {% if baseParams.isMainCategory is defined %}
  6.         {% if baseParams.isMainCategory and model is not defined %}
  7.             <title>{% if app.request.get('page') %}{{ 'accessories.page'|trans({'%page%':app.request.get('page')}, 'dc_base') }}{% endif %}{{ 'accessories.category.main.title'|trans({'%brand%':dealer.brand.name,'%dealer%':dealer.nameByLocale(app.request.locale)}, 'dc_base') }}</title>
  8.             <meta name="description"
  9.                   content="{{ 'accessories.category.main.desc'|trans({'%count_accessory%':accessoryCount,'%dealer%':dealer.nameByLocale(app.request.locale),'%brand%':dealer.brand.name}, 'dc_base') }}"/>
  10.         {% endif %}
  11.         {% if not baseParams.isMainCategory and model is not defined %}
  12.             <title>{% if app.request.get('page') %}{{ 'accessories.page'|trans({'%page%':app.request.get('page')}, 'dc_base') }}{% endif %}{{ 'accessories.category.other.title'|trans({'%category%':category.title(app.request.locale)|capitalize,'%dealer%':dealer.nameByLocale(app.request.locale)}, 'dc_base') }}</title>
  13.             <meta name="description"
  14.                   content="{{ 'accessories.category.other.desc'|trans({'%category%':category.title(app.request.locale)|capitalize,'%dealer%':dealer.nameByLocale(app.request.locale),'%brand%':dealer.brand.name}, 'dc_base') }}}"/>
  15.         {% endif %}
  16.         {% if baseParams.isMainCategory and model is defined %}
  17.             <title>{% if app.request.get('page') %}{{ 'accessories.page'|trans({'%page%':app.request.get('page')}, 'dc_base') }}{% endif %}{{ 'accessories.category_model.main.title'|trans({'%dealer%':dealer.nameByLocale(app.request.locale),'%brand%':dealer.brand.name,'%model%':model.title}, 'dc_base') }}</title>
  18.             <meta name="description"
  19.                   content="{{ 'accessories.category_model.main.desc'|trans({'%count_accessory%':accessoryCount,'%category%':category.title(app.request.locale)|capitalize,'%dealer%':dealer.nameByLocale(app.request.locale),'%brand%':dealer.brand.name,'%model%':model.title}, 'dc_base') }}"/>
  20.         {% endif %}
  21.         {% if not baseParams.isMainCategory and model is defined %}
  22.             <title>{% if app.request.get('page') %}{{ 'accessories.page'|trans({'%page%':app.request.get('page')}, 'dc_base') }}{% endif %}{{ 'accessories.category_model.other.title'|trans({'%category%':category.title(app.request.locale)|capitalize,'%dealer%':dealer.nameByLocale(app.request.locale),'%model%':model.title}, 'dc_base') }}</title>
  23.             <meta name="description"
  24.                   content="{{ 'accessories.category_model.other.desc'|trans({'%category%':category.title(app.request.locale)|capitalize,'%dealer%':dealer.nameByLocale(app.request.locale),'%brand%':dealer.brand.name,'%model%':model.title}, 'dc_base') }}"/>
  25.         {% endif %}
  26.     {% endif %}
  27.     {% if app.request.attributes.get('workId') is not null %}
  28.         {% set numberParts = accessory.numberParts is not empty ? '( '~accessory.numberParts|join(', ')~' )' : '' %}
  29.         <title>{{ 'accessories.product.title'|trans({'%name%': accessory.title|capitalize,'%number%':numberParts,'%dealer%': dealer.nameByLocale(app.request.locale)}, 'dc_base') }}</title>
  30.         <meta name="description" content="{{ 'accessories.product.desc'|trans({'%name%': accessory.title|capitalize,'%number%':numberParts,'%dealer%': dealer.nameByLocale(app.request.locale)}, 'dc_base') }}"/>
  31.     {% endif %}
  32. {% endif %}