templates/website/product/product-detail-features.html.twig line 1

Open in your IDE?
  1. {% from 'utils.html.twig' import ico %}
  2. <ul class="features">
  3.     {% if productOffer.saleDateType == enum('ProductOfferEnum::SALE_CLOSE') and productOffer.saleDateStart %}
  4.         <li class="feature-inicio-vendas">{{ ico('calendar') }} {{ getLanguage('sale_start', 'product') }} {{ productOffer.saleDateStart|date('d/m/Y') }}</li>
  5.     {% endif %}
  6.     
  7.     {% if timeTotal > 0 %}
  8.         <li class="feature-carga">
  9.             {{ ico('clock') }}{{ timeTotal }} 
  10.             {{ plural(timeTotal, 
  11.                 getLanguage('workload_hour', 'product'), 
  12.                 getLanguage('workload_hours', 'product')
  13.             )}}
  14.         </li>
  15.     {% endif %}
  16.     {% if enrollmentTotal >= 10 %}
  17.         <li class="feature-alunos">
  18.             {{ ico('user') }}{{ enrollmentTotal }} 
  19.             {{ plural(enrollmentTotal, 
  20.                 getLanguage('feature_student', 'product'), 
  21.                 getLanguage('feature_students', 'product')
  22.             )}}
  23.         </li>
  24.     {% endif %}
  25.     {% if userSubscriptionTotal >= 10 %}
  26.         <li class="feature-assinantes">
  27.             {{ ico('user') }}{{ userSubscriptionTotal }} 
  28.             {{ plural(userSubscriptionTotal, 
  29.                 getLanguage('feature_subscription', 'product'), 
  30.                 getLanguage('feature_subscriptions', 'product')
  31.             )}}
  32.         </li>
  33.     {% endif %}
  34.     {% if lessonTotal > 0 %}
  35.         <li class="feature-aulas">
  36.             {{ ico('book-open') }}{{ lessonTotal }} 
  37.             {{ plural(lessonTotal, 
  38.                 getLanguage('features_lesson', 'product'), 
  39.                 getLanguage('features_lessons', 'product')
  40.             )}}
  41.         </li>
  42.     {% endif %}
  43.     
  44.     {% if lessonModuleTotal > 0 %}
  45.         <li class="feature-modulos">
  46.             {{ ico('book') }}{{ lessonModuleTotal }}
  47.             {{ plural(lessonModuleTotal, 
  48.                 getLanguage('content_module', 'product'), 
  49.                 getLanguage('content_modules', 'product')
  50.             )}}
  51.         </li>
  52.     {% endif %}
  53.     {% if courseTotal > 0 %}
  54.         <li class="feature-cursos">
  55.             {{ ico('clipboard') }}{{ courseTotal }} 
  56.             {{ plural(courseTotal, 
  57.                 getLanguage('included_course', 'product'), 
  58.                 getLanguage('included_courses', 'product')
  59.             )}}
  60.         </li>
  61.      {% endif %}
  62.     
  63.     {% if dateLastUpdate %}
  64.         <li class="feature-date-update">
  65.             {{ ico('calendar') }} {{ getLanguage('last_update', 'product') }} {{ dateLastUpdate|date('d/m/Y') }}
  66.         </li>
  67.     {% endif %}
  68.     {% if isModuleActive('course_certificate_module') %}
  69.         {% if certificate == enum('ProductEnum::YES') %}
  70.             <li class="feature-certificado">{{ ico('quality') }}{{ getLanguage('course_completion_certificate', 'product') }}</li>
  71.         {% endif %}
  72.     {% endif %}
  73.     {% if fileTotal > 0 %}
  74.         <li class="feature-arquivos">
  75.             {{ ico('download') }}{{ fileTotal }} 
  76.             {{ plural(fileTotal, 
  77.                 getLanguage('download_file', 'product'), 
  78.                 getLanguage('download_files', 'product')
  79.             )}}
  80.         </li>
  81.     {% endif %}
  82.     {% if productOffer.warranty == 1 %}
  83.         <li class="feature-garantia">{{ ico('dollar') }} 
  84.             {{ getLanguage('warranty_devolution', 'product') }}
  85.             {{ productOffer.warrantyOption }}
  86.             {{ plural(productOffer.warrantyOption, 
  87.                 getLanguage('warranty_devolution_day', 'product'), 
  88.                 getLanguage('warranty_devolution_days', 'product')
  89.             )}}
  90.         </li>
  91.     {% endif %}
  92. </ul>