Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {*Кнопка*}
- {if $shop2.json.compare}
- <a href="{get_seo_url uri_prefix=$shop2.uri mode="compare"}" target="_blank" class="gr-btn-1 gr-compare-btn{if $compare|@count>0} active{/if}" data-remodal-target="compare-preview-popup">
- Сравнение
- <span class="gr-compare-btn-amount">{$compare|@count}</span>
- </a>
- {/if}
- {*Всплывашка*}
- {if $shop2.json.compare}
- <div class="remodal compare-remodal" data-remodal-id="compare-preview-popup" role="dialog" data-remodal-options="hashTracking: false">
- <button data-remodal-action="close" class="remodal-close-btn">
- <span>
- {$shop2.my.gr_remodal_close|default:'Закрыть'}
- <i>
- <svg class="gr-svg-icon gr_big_icon">
- <use xlink:href="#icon_shop_close"></use>
- </svg>
- <svg class="gr-svg-icon">
- <use xlink:href="#icon_shop_close_small"></use>
- </svg>
- <svg class="gr-svg-icon gr_small_icon">
- <use xlink:href="#icon_shop_close_mini"></use>
- </svg>
- </i>
- </span>
- </button>
- <div class="compare-remodal__body shop2-compare-page"></div>
- </div>
- {/if}
- {*Скрипт*}
- {if $shop2.json.compare}
- <script src="/g/templates/shop2/2.130.2/default-2/js/compare_preview_popup.js"></script>
- <script src="/g/libs/remodal/custom/js/remodal.min.js" charset="utf-8"></script>
- {/if}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement