templates/Elements/pricing-table.html.twig line 1

Open in your IDE?
  1. <style>
  2.     .preorder_plan_regular {
  3.         font-size: 20px;
  4.         font-family: "RobotoCN";
  5.         font-weight: 400;
  6.         margin-bottom: 36px;
  7.     }
  8.     .preorder_plan_regular strong {
  9.         font-weight: 700;
  10.         text-decoration: line-through;
  11.         font-size: 26px;
  12.     }
  13.     .preorder_plan_title {
  14.         margin-bottom: 42px;
  15.     }
  16.     .preorder_plan_name {
  17.         margin-bottom: 36px;
  18.     }
  19.     .preorder_plan_spectial {
  20.         margin-bottom: 18px;
  21.         font-size: 24px;
  22.         text-transform: uppercase;
  23.     }
  24. </style>
  25. {% if editmode %}
  26. <section class="section_pricingtable">
  27.     <div class="number_section">
  28.         <div class="wrapper_innerpage">05</div>
  29.     </div>
  30.     <div class="wrapper_mainpage">
  31.         <div class="title16 smalltitle">GET STARTED TODAY</div>
  32.         <h2 class="h2_long" id="pricingsection">{{pimcore_input('pricing_title', {placeholder:'Enter Here'} )}}</h2>
  33.             <p>{{ "Choose Plan Category" }}:</p>
  34.             {{ pimcore_relation("planCategory", {
  35.     "types": ["object"],
  36.     "subtypes": {
  37.         "object": ["object"]
  38.     },
  39.     "classes": ["PlanCategory"]
  40. }) }}
  41.         <div class="pricingtable_bottom"><a class="button button_radius button_transparent_white" href="#" data-toggle="modal" data-target="#guideStep" >LET’S GET STARTED!</a></div>
  42.     </div>
  43.     <div class="pricingtable_scrolldown">
  44.         <div class="wrapper_innerpage"><a class="scrolldown title16" href="#"><span>SCROLL DOWN</span><i></i></a></div>
  45.     </div>
  46. </section>
  47. {% else %}
  48.     {% set planCategory = pimcore_relation("planCategory").getElement() %}
  49.     {% do pimcore_inline_script().appendScript("let planCategoryId ='"~planCategory.id~"'; ") %}
  50.     {% set plans = planCategory.getPlans() %}
  51.     {% if plans|length %}
  52.     <section class="section_pricingtable">
  53.     <div class="number_section">
  54.         <div class="wrapper_innerpage">05</div>
  55.     </div>
  56.     <div class="wrapper_mainpage">
  57.         <div class="title16 smalltitle">GET STARTED TODAY</div>
  58.         <h2 class="h2_long" id="pricingsection">{{pimcore_input('pricing_title', {placeholder:'Enter Here'} )}}</h2>
  59.          
  60.             <div class="preorder_plans">
  61.                 {% for plan in plans %}
  62.                     <a class="preorder_plan" href="#" data-toggle="modal" data-target="#guideStep">
  63.                         <div class="preorder_plan_title">{{plan.duration == 1 ? "30 DAY PLAN" : plan.duration~" MONTH PLAN"}}</div>
  64.                         {% if plan.property('regularTitle') %}
  65.                                 <div class="preorder_plan_regular">{{plan.property('regularTitle') | raw}}</div>
  66.                         {% endif %}
  67.                         <div class="preorder_plan_name {{plan.getIsHighlightTitle ? 'preorder_plan_name_best':''}}">{{plan.title|raw}}</div>
  68.                          {% if plan.property('isSpecialEmployeeRate') %}
  69.                         <div class="preorder_plan_spectial">Special Employee Rate</div>
  70.                         {% endif %}
  71.                         <div class="preorder_plan_cost">${{plan.price|number_format(2)}}<span>per month</span></div>
  72.                         {% if(plan.offer|default(null))%}
  73.                             <div class="preorder_plan_offer">{{plan.offer|raw}}</div>
  74.                         {%endif%}
  75.                         <div class="preorder_plan_tip">
  76.                             <div class="preorder_plan_tip_title"> MEMBERSHIP DETAILS:</div>
  77.                             <div class="preorder_plan_tip_text">{{plan.description|raw}}</div>
  78.                         </div>
  79.                         <div class="preorder_plan_select">SELECT THIS PLAN</div>
  80.                     </a>
  81.                 {% endfor %}
  82.             </div>
  83.         
  84.         <div class="pricingtable_bottom"><a class="button button_radius button_transparent_white" href="#" data-toggle="modal" data-target="#guideStep" >LET’S GET STARTED!</a></div>
  85.     </div>
  86.     <div class="pricingtable_scrolldown">
  87.         <div class="wrapper_innerpage"><a class="scrolldown title16" href="#"><span>SCROLL DOWN</span><i></i></a></div>
  88.     </div>
  89. </section>
  90.     {% endif %}
  91. {% endif %}