Advertisement
Guest User

home.features.html

a guest
Dec 12th, 2019
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 5.75 KB | None | 0 0
  1. {strip}
  2. {if $theme_settings.shop_homepage_features_view ne "none"}
  3.     {$_home_features = []}
  4.     {if !empty($theme_settings.homepage_features_col_1_title) || !empty($theme_settings.homepage_features_col_1_body)}{$_home_features[] = [
  5.         'icon' => $theme_settings.homepage_features_col_1_icon,
  6.         'title' => $theme_settings.homepage_features_col_1_title,
  7.         'body' => $theme_settings.homepage_features_col_1_body
  8.     ]}{/if}
  9.     {if !empty($theme_settings.homepage_features_col_2_title) || !empty($theme_settings.homepage_features_col_2_body)}{$_home_features[] = [
  10.         'icon' => $theme_settings.homepage_features_col_2_icon,
  11.         'title' => $theme_settings.homepage_features_col_2_title,
  12.         'body' => $theme_settings.homepage_features_col_2_body
  13.     ]}{/if}
  14.     {if !empty($theme_settings.homepage_features_col_3_title) || !empty($theme_settings.homepage_features_col_3_body)}{$_home_features[] = [
  15.         'icon' => $theme_settings.homepage_features_col_3_icon,
  16.         'title' => $theme_settings.homepage_features_col_3_title,
  17.         'body' => $theme_settings.homepage_features_col_3_body
  18.     ]}{/if}
  19.     {if $theme_settings.shop_homepage_features && !empty($_home_features)}
  20.         {if $theme_settings.shop_homepage_features_design eq 1}
  21.             <div class="home-pg__section home-pg__section_feat{if $theme_settings.shop_homepage_features_view ne 'always'} {$theme_settings.shop_homepage_features_view}{/if}">
  22.                 <div class="home-g">
  23.                     <div class="home-g__inner">
  24.                         {foreach $_home_features as $f}
  25.                             <div class="home-g__col-1-3">
  26.                                 <div class="home-feat home-feat_septd">
  27.                                     <div class="home-feat__inner">
  28.                                         {if !empty($f.icon)}
  29.                                             <div class="home-feat__icon">
  30.                                                 <img src="data:image/gif;base64,R0lGODlh6gDqAIAAAP///wAAACH5BAEAAAEALAAAAADqAOoAAAL+jI+py+0Po5y02ouz3rz7D4biSJbmiabqyrbuC8fyTNf2jef6zvf+DwwKh8Si8YhMKpfMpvMJjUqn1Kr1is1qt9yu9wsOi8fksvmMTqvX7Lb7DY/L5/S6/Y7P6/f8vv8PGCg4SFhoeIiYqLjI2Oj4CBkpOUlZaXmJmam5ydnp+QkaKjpKWmp6ipqqusra6voKGys7S1tre4ubq7vL2+v7CxwsPExcbHyMnKy8zNzs/AwdLT1NXW19jZ2tvc3d7f0NHi4+Tl5ufo6err7O3u7+Dh8vP09fb3+Pn6+/z9/v/w8woMCBBAsaPIgwocKFDBs6fAgxosSJFCtavIgxo8Y9jRw7evwIMqTIkSRLmjyJMqXKlSxbunwJM6bMmTRr2ryJM6fOnTx7+vwJNKjQoUSLGj2KNKnSpUybOo1UAAA7" data-src="{$wa_theme_url}{$f.icon}" class="lazy-img" alt>
  31.                                             </div>
  32.                                         {/if}
  33.                                         <div class="home-feat__content">
  34.                                             {if !empty($f.title)}<h3 class="home-feat__title bold">{include file="string:`$f.title`" inline}</h3>{/if}
  35.                                             {if !empty($f.body)}<div class="home-feat__descr grey">{include file="string:`$f.body|nl2br`" inline}</div>{/if}
  36.                                         </div>
  37.                                     </div>
  38.                                 </div>
  39.                             </div>
  40.                         {/foreach}
  41.                     </div>
  42.                 </div>
  43.             </div>
  44.         {elseif $theme_settings.shop_homepage_features_design eq 2}
  45.             <div class="home-pg__section home-pg__section_feat{if $theme_settings.shop_homepage_features_view ne 'always'} {$theme_settings.shop_homepage_features_view}{/if}">
  46.                 <div class="grouped-feat">
  47.                     {foreach $_home_features as $f}
  48.                         <div class="grouped-feat__item">
  49.                             <div class="home-feat">
  50.                                 <div class="home-feat__inner">
  51.                                     {if !empty($f.icon)}
  52.                                         <div class="home-feat__icon">
  53.                                             <img src="data:image/gif;base64,R0lGODlh6gDqAIAAAP///wAAACH5BAEAAAEALAAAAADqAOoAAAL+jI+py+0Po5y02ouz3rz7D4biSJbmiabqyrbuC8fyTNf2jef6zvf+DwwKh8Si8YhMKpfMpvMJjUqn1Kr1is1qt9yu9wsOi8fksvmMTqvX7Lb7DY/L5/S6/Y7P6/f8vv8PGCg4SFhoeIiYqLjI2Oj4CBkpOUlZaXmJmam5ydnp+QkaKjpKWmp6ipqqusra6voKGys7S1tre4ubq7vL2+v7CxwsPExcbHyMnKy8zNzs/AwdLT1NXW19jZ2tvc3d7f0NHi4+Tl5ufo6err7O3u7+Dh8vP09fb3+Pn6+/z9/v/w8woMCBBAsaPIgwocKFDBs6fAgxosSJFCtavIgxo8Y9jRw7evwIMqTIkSRLmjyJMqXKlSxbunwJM6bMmTRr2ryJM6fOnTx7+vwJNKjQoUSLGj2KNKnSpUybOo1UAAA7" data-src="{$wa_theme_url}{$f.icon}" class="lazy-img" alt>
  54.                                         </div>
  55.                                     {/if}
  56.                                     <div class="home-feat__content">
  57.                                         {if !empty($f.title)}<h3 class="home-feat__title bold">{include file="string:`$f.title`" inline}</h3>{/if}
  58.                                         {if !empty($f.body)}<div class="home-feat__descr grey">{include file="string:`$f.body|nl2br`" inline}</div>{/if}
  59.                                     </div>
  60.                                 </div>
  61.                             </div>
  62.                         </div>
  63.                     {/foreach}
  64.                 </div>
  65.             </div>
  66.         {elseif $theme_settings.shop_homepage_features_design eq 3}
  67.             <div class="home-pg__section home-pg__section_feat"{if $theme_settings.shop_homepage_features_view ne 'always'} {$theme_settings.shop_homepage_features_view}{/if}>
  68.                 <div class="home-g">
  69.                     <div class="home-g__inner">
  70.                         {foreach $_home_features as $f}
  71.                             <div class="home-g__col-1-3">
  72.                                 <div class="home-feat">
  73.                                     <div class="home-feat__inner">
  74.                                         {if !empty($f.icon)}
  75.                                             <div class="home-feat__icon-wr">
  76.                                                 <div class="home-feat__icon-bg"></div>
  77.                                                 <div class="home-feat__icon cent-icon">
  78.                                                     <img src="data:image/gif;base64,R0lGODlh6gDqAIAAAP///wAAACH5BAEAAAEALAAAAADqAOoAAAL+jI+py+0Po5y02ouz3rz7D4biSJbmiabqyrbuC8fyTNf2jef6zvf+DwwKh8Si8YhMKpfMpvMJjUqn1Kr1is1qt9yu9wsOi8fksvmMTqvX7Lb7DY/L5/S6/Y7P6/f8vv8PGCg4SFhoeIiYqLjI2Oj4CBkpOUlZaXmJmam5ydnp+QkaKjpKWmp6ipqqusra6voKGys7S1tre4ubq7vL2+v7CxwsPExcbHyMnKy8zNzs/AwdLT1NXW19jZ2tvc3d7f0NHi4+Tl5ufo6err7O3u7+Dh8vP09fb3+Pn6+/z9/v/w8woMCBBAsaPIgwocKFDBs6fAgxosSJFCtavIgxo8Y9jRw7evwIMqTIkSRLmjyJMqXKlSxbunwJM6bMmTRr2ryJM6fOnTx7+vwJNKjQoUSLGj2KNKnSpUybOo1UAAA7" data-src="{$wa_theme_url}{$f.icon}" class="lazy-img" alt>
  79.                                                 </div>
  80.                                             </div>
  81.                                         {/if}
  82.                                         <div class="home-feat__content">
  83.                                             {if !empty($f.title)}<h3 class="home-feat__title bold">{include file="string:`$f.title`" inline}</h3>{/if}
  84.                                             {if !empty($f.body)}<div class="home-feat__descr grey">{include file="string:`$f.body|nl2br`" inline}</div>{/if}
  85.                                         </div>
  86.                                     </div>
  87.                                 </div>
  88.                             </div>
  89.                         {/foreach}
  90.                     </div>
  91.                 </div>
  92.             </div>
  93.         {/if}
  94.     {/if}
  95. {/if}
  96. {/strip}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement