This commit is contained in:
2025-03-21 20:24:43 +01:00
parent 224398df90
commit f34c9162d4
12427 changed files with 5329941 additions and 373384 deletions

View File

@@ -0,0 +1,36 @@
{*
* @Module Name: AP Page Builder
* @Website: apollotheme.com - prestashop template provider
* @author Apollotheme <apollotheme@gmail.com>
* @copyright Apollotheme
* @description: ApPageBuilder is module help you can build content for your shop
*}
<!-- @file modulesappagebuilderviewstemplatesfrontproductsfile_tpl -->
{block name='product_price_and_shipping'}
{if $product.show_price}
<div class="product-price-and-shipping {if $product.has_discount}has_discount{/if}">
{if $product.has_discount}
{hook h='displayProductPriceBlock' product=$product type="old_price"}
<span class="sr-only">{l s='Regular price' d='Shop.Theme.Catalog'}</span>
<span class="regular-price">{$product.regular_price}</span>
{if $product.discount_type === 'percentage'}
<span class="discount-percentage">{$product.discount_percentage}</span>
{elseif $product.discount_type === 'amount'}
<span class="discount-amount discount-product">{$product.discount_amount_to_display}</span>
{/if}
{/if}
{hook h='displayProductPriceBlock' product=$product type="before_price"}
<span class="sr-only">{l s='Price' d='Shop.Theme.Catalog'}</span>
<span class="price" itemprop="offers" itemscope itemtype="http://schema.org/Offer">
<span>zapytaj i zamów przez czat</span>
<span itemprop="priceCurrency" content="{$currency.iso_code}"></span><span itemprop="price" content="{$product.price_amount}">{$product.price}</span>
</span>
{hook h='displayProductPriceBlock' product=$product type='unit_price'}
{hook h='displayProductPriceBlock' product=$product type='weight'}
</div>
{/if}
{/block}

View File

@@ -0,0 +1,50 @@
{*
* @Module Name: AP Page Builder
* @Website: apollotheme.com - prestashop template provider
* @author Apollotheme <apollotheme@gmail.com>
* @copyright Apollotheme
* @description: ApPageBuilder is module help you can build content for your shop
*}
{block name='product_thumbnail'}
{if isset($cfg_product_list_image) && $cfg_product_list_image}
<div class="leo-more-info" data-idproduct="{$product.id_product}"></div>
{/if}
{if $product.cover}
{if isset($formAtts) && isset($formAtts.lazyload) && $formAtts.lazyload}
{* ENABLE LAZY LOAD OWL_CAROUSEL *}
<a href="{$product.url}" class="thumbnail product-thumbnail">
<img
class="img-fluid lazyOwl"
src = ""
data-src = "{$product.cover.bySize.home_default.url}"
alt = "{$product.name}"
data-full-size-image-url = "{$product.cover.large.url}"
>
{if isset($cfg_product_one_img) && $cfg_product_one_img}
<span class="product-additional" data-idproduct="{$product.id_product}"></span>
{/if}
</a>
{else}
<a href="{$product.url}" class="thumbnail product-thumbnail">
<img
class="img-fluid"
src = "{$product.cover.bySize.home_default.url}"
alt = "{$product.name}"
data-full-size-image-url = "{$product.cover.large.url}"
>
{if isset($cfg_product_one_img) && $cfg_product_one_img}
<span class="product-additional" data-idproduct="{$product.id_product}"></span>
{/if}
</a>
{/if}
{else}
<a href="{$product.url}" class="thumbnail product-thumbnail leo-noimage">
<img
src = "{$urls.no_picture_image.bySize.home_default.url}"
>
</a>
{/if}
{/block}

View File

@@ -0,0 +1 @@
{assign var="cutoffDate" value="2024-12-31"} {if strtotime("now") <= strtotime($cutoffDate)} <p>Promocja Serta -50% rabatu na drugą poduszkę lub prześcieradło 2w1 Velfont Respira. Wybierz Technogel lub Velfont i śpij spokojnie!</p>{/if}

View File

@@ -0,0 +1,94 @@
{**
* 2007-2017 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/AFL-3.0
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright PrestaShop SA
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{if $elements}
<div id="block-reassurance">
<div class="my_box_container product_container">
<div class="my_box_small">
<div class="my_image_container">
<svg width="39" height="32" viewBox="0 0 66 54" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M27.6378 12.7872C26.752 10.8788 24.7283 6.3555 24.7283 4.87823C24.7283 2.98845 26.2124 1.45612 28.0453 1.45612C29.8773 1.45612 31.3597 2.98845 31.3597 4.87823C31.3597 6.34873 29.355 10.8381 28.464 12.7618" stroke="#34D6AD" stroke-width="2.5" stroke-miterlimit="10" stroke-linejoin="round"/>
<path d="M21.6108 6.18015C23.2702 6.97977 27.9072 12.9922 27.9072 12.9922C27.9072 12.9922 20.4635 13.1819 18.805 12.3806C17.1439 11.581 16.4273 9.54467 17.2034 7.83191C17.977 6.12001 19.9515 5.38052 21.6108 6.18015V6.18015Z" stroke="#34D6AD" stroke-width="2.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M34.4798 6.18015C32.8187 6.97977 28.1816 12.9922 28.1816 12.9922C28.1816 12.9922 35.6246 13.1819 37.2856 12.3806C38.9467 11.581 39.6633 9.54467 38.8863 7.83191C38.1119 6.12001 36.1391 5.38052 34.4798 6.18015Z" stroke="#34D6AD" stroke-width="2.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M41.7632 39.3205V23.4313" stroke="#34D6AD" stroke-width="2.5" stroke-miterlimit="10" stroke-linejoin="round"/>
<path d="M14.3259 30.8329V39.3205" stroke="#34D6AD" stroke-width="2.5" stroke-miterlimit="10" stroke-linejoin="round"/>
<path d="M14.3259 24.4165V27.8581" stroke="#34D6AD" stroke-width="2.5" stroke-miterlimit="10" stroke-linejoin="round"/>
<path d="M30.6303 19.9804H43.8809V13.0142H12.2073V19.9804H25.4623" stroke="#34D6AD" stroke-width="2.5" stroke-miterlimit="10" stroke-linejoin="round"/>
<path d="M25.4622 13.209V39.3196" stroke="#34D6AD" stroke-width="2.5" stroke-miterlimit="10" stroke-linejoin="round"/>
<path d="M30.6294 13.209V39.3196" stroke="#34D6AD" stroke-width="2.5" stroke-miterlimit="10" stroke-linejoin="round"/>
<path d="M15.9075 47.8969H11.2419V39.4094H46.59" stroke="#34D6AD" stroke-width="2.5" stroke-miterlimit="10" stroke-linejoin="round"/>
<path d="M46.6358 47.897H28.231" stroke="#34D6AD" stroke-width="2.5" stroke-miterlimit="10" stroke-linejoin="round"/>
<path d="M46.5901 44.1911V25.9166H55.151C58.3351 29.5166 59.7311 34.8624 59.7311 34.8624L63.377 36.1135C63.377 36.1135 64.5054 36.4955 64.5054 38.0211V46.1876C64.5054 48.0435 63.1042 47.8987 63.1042 47.8987H58.9308" stroke="#34D6AD" stroke-width="2.5" stroke-miterlimit="10" stroke-linejoin="round"/>
<path d="M52.5801 29.9876C52.5801 29.9876 54.4691 33.4292 54.8498 35.4884H51.2971" stroke="#34D6AD" stroke-width="2.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M54.6054 52.5439C56.9242 52.5439 58.8039 50.6997 58.8039 48.4247C58.8039 46.1497 56.9242 44.3054 54.6054 44.3054C52.2867 44.3054 50.407 46.1497 50.407 48.4247C50.407 50.6997 52.2867 52.5439 54.6054 52.5439Z" stroke="#34D6AD" stroke-width="2.5" stroke-miterlimit="10" stroke-linejoin="round"/>
<path d="M20.3684 52.5439C22.6871 52.5439 24.5669 50.6997 24.5669 48.4247C24.5669 46.1497 22.6871 44.3054 20.3684 44.3054C18.0496 44.3054 16.1699 46.1497 16.1699 48.4247C16.1699 50.6997 18.0496 52.5439 20.3684 52.5439Z" stroke="#34D6AD" stroke-width="2.5" stroke-miterlimit="10" stroke-linejoin="round"/>
<path d="M18.7108 30.7999H6.91138" stroke="#34D6AD" stroke-width="2.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M8.45939 35.0937H1.80298" stroke="#34D6AD" stroke-width="2.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M14.3259 24.4165H5.67603" stroke="#34D6AD" stroke-width="2.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
</div>
<div class="my_content_container">
<p>Darmowa<br> dostawa od 0zł</p>
</div>
</div>
<div class="my_box_small">
<div class="my_image_container">
<svg width="30" height="36" viewBox="0 0 50 60" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M46.883 32.1973C49.7347 14.2769 26.148 13.9592 24.5353 13.9592H10.8615V18.2047C10.8564 18.6316 10.3237 18.829 10.1208 18.9086C9.68912 19.0797 9.14607 19.0162 8.88965 18.7536L1.80242 11.1055C1.5655 10.8661 1.43486 10.5444 1.43906 10.2107C1.44327 9.87702 1.58199 9.55856 1.82487 9.32497L9.09081 1.8717C9.36968 1.60319 9.90236 1.5261 10.3168 1.69721C10.6707 1.84799 10.865 2.13429 10.8598 2.54088L10.8615 6.77872H24.5353C26.2326 6.77872 49.2547 6.07057 48.1245 27.9078C48.1245 27.9078 47.9432 30.2727 46.498 33.2061C44.7212 36.8103 41.0399 41.2735 33.4424 43.2658" stroke="#34D6AD" stroke-width="2.5" stroke-miterlimit="10" stroke-linecap="round"/>
<path d="M40.4719 40.3849V50.232L21.1001 58.3943V36.2208L40.4719 28.3025V34.3522" stroke="#34D6AD" stroke-width="2.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M10.8357 38.1707V32.0677L29.7094 24.2281" stroke="#34D6AD" stroke-width="2.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M21.1001 36.2208L1.90527 28.3025V50.232L21.1001 58.3943" stroke="#34D6AD" stroke-width="2.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M1.90527 28.3025L20.6624 20.0962L40.4719 28.3025" stroke="#34D6AD" stroke-width="2.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
</div>
<div class="my_content_container">
<p>14 dni na zwrot lub<br> wymianę</p>
</div>
</div>
<div class="my_box_small">
<div class="my_image_container">
<svg width="33" height="28" viewBox="0 0 56 48" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M25.5329 29.7803H5.90122C3.52701 29.7803 1.58447 27.8745 1.58447 25.545V6.25074C1.58447 3.92132 3.52701 2.01544 5.90122 2.01544H43.1064C45.4806 2.01544 47.4231 3.92132 47.4231 6.25074V14.0157" stroke="#34D6AD" stroke-width="2.5" stroke-miterlimit="10" stroke-linejoin="round"/>
<path d="M1.91016 9.03076H47.0978" stroke="#34D6AD" stroke-width="2.5" stroke-miterlimit="10" stroke-linejoin="round"/>
<path d="M8.68213 22.2466H21.7489" stroke="#34D6AD" stroke-width="2.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M41.9634 34.3917V40.056" stroke="#34D6AD" stroke-width="2.5" stroke-miterlimit="10" stroke-linecap="round"/>
<path d="M54.1847 44.1837C54.1836 44.6608 53.9899 45.118 53.6461 45.4553C53.3023 45.7926 52.8363 45.9826 52.3501 45.9837H31.6574C31.1711 45.9826 30.7052 45.7926 30.3614 45.4553C30.0176 45.118 29.8239 44.6608 29.8228 44.1837V28.3082C29.8228 27.3171 30.6481 26.5065 31.6574 26.5065H52.3501C53.3585 26.5065 54.1847 27.3171 54.1847 28.3082V44.1837Z" stroke="#34D6AD" stroke-width="2.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M49.4313 26.3625V23.1614C49.4313 20.1315 46.9052 17.6522 43.8161 17.6522H40.1909C37.1018 17.6522 34.5757 20.1315 34.5757 23.1614V26.3625" stroke="#34D6AD" stroke-width="2.5" stroke-miterlimit="10"/>
<path d="M43.1046 34.0614C43.113 34.214 43.0896 34.3666 43.0359 34.5101C42.9822 34.6535 42.8992 34.7846 42.792 34.8955C42.6849 35.0064 42.5558 35.0947 42.4127 35.155C42.2696 35.2153 42.1155 35.2464 41.9597 35.2463C41.804 35.2462 41.6499 35.2149 41.5069 35.1544C41.3639 35.0939 41.235 35.0054 41.128 34.8943C41.021 34.7833 40.9382 34.652 40.8847 34.5085C40.8312 34.365 40.8081 34.2123 40.8167 34.0597C40.833 33.7727 40.9608 33.5027 41.1737 33.3053C41.3866 33.1079 41.6685 32.998 41.9615 32.9982C42.2544 32.9984 42.5362 33.1087 42.7488 33.3065C42.9614 33.5042 43.0887 33.7744 43.1046 34.0614Z" fill="#34D6AD" stroke="#34D6AD" stroke-width="2.5" stroke-miterlimit="10"/>
</svg>
</div>
<div class="my_content_container">
<p>Bezpieczne zakupy<br> i płatności elektroniczne</p>
</div>
</div>
</div>
</div>
{/if}

View File

@@ -16,61 +16,62 @@
<a href="{$blog.link|escape:'html':'UTF-8'}" title="{$blog.title|escape:'html':'UTF-8'}">{$blog.title|escape:'html':'UTF-8'}</a>
</h4>
{/if}
<div class="blog-meta">
{if $config->get('listing_show_author','1')&&!empty($blog.author)}
<span class="blog-author">
<i class="material-icons">person</i> <span>{l s='Posted By' d='Shop.Theme.Global'}:</span>
<a href="{$blog.author_link|escape:'html':'UTF-8'}" title="{$blog.author|escape:'html':'UTF-8'}">{$blog.author|escape:'html':'UTF-8'}</a>
</span>
{/if}
{if $config->get('listing_show_category','1')}
<span class="blog-cat">
<i class="material-icons">list</i> <span>{l s='In' d='Shop.Theme.Global'}:</span>
<a href="{$blog.category_link|escape:'html':'UTF-8'}" title="{$blog.category_title|escape:'html':'UTF-8'}">{$blog.category_title|escape:'html':'UTF-8'}</a>
</span>
{/if}
{if $config->get('listing_show_created','1')}
<span class="blog-created">
<i class="material-icons">&#xE192;</i> <span>{l s='On' d='Shop.Theme.Global'}: </span>
<time class="date" datetime="{strtotime($blog.date_add)|date_format:"%Y"|escape:'html':'UTF-8'}">
{assign var='blog_date' value=strtotime($blog.date_add)|date_format:"%A"}
{l s=$blog_date d='Shop.Theme.Global'}, <!-- day of week -->
{assign var='blog_month' value=strtotime($blog.date_add)|date_format:"%B"}
{l s=$blog_month d='Shop.Theme.Global'} <!-- month-->
{assign var='blog_day' value=strtotime($blog.date_add)|date_format:"%e"}
{l s=$blog_day d='Shop.Theme.Global'} <!-- day of month -->
{assign var='blog_year' value=strtotime($blog.date_add)|date_format:"%Y"}
{l s=$blog_year d='Shop.Theme.Global'} <!-- year -->
</time>
</span>
{/if}
{if isset($blog.comment_count)&&$config->get('listing_show_counter','1')}
<span class="blog-ctncomment">
<i class="material-icons">comment</i> <span>{l s='Comment' d='Shop.Theme.Global'}:</span>
{$blog.comment_count|intval}
</span>
{/if}
{if $config->get('listing_show_hit','1')}
<span class="blog-hit">
<i class="material-icons">favorite</i> <span>{l s='Hit' d='Shop.Theme.Global'}:</span>
{$blog.hits|intval}
</span>
{/if}
</div>
{if $blog.image && $config->get('listing_show_image',1)}
<div class="blog-image">
<img src="{$blog.preview_url|escape:'html':'UTF-8'}" title="{$blog.title|escape:'html':'UTF-8'}" alt="" class="img-fluid" />
</div>
{/if}
</div>
<div class="blog-meta">
{if $config->get('listing_show_author','1')&&!empty($blog.author)}
<span class="blog-author">
<i class="material-icons">person</i> <span>{l s='Posted By' d='Shop.Theme.Global'}:</span>
<a href="{$blog.author_link|escape:'html':'UTF-8'}" title="{$blog.author|escape:'html':'UTF-8'}">{$blog.author|escape:'html':'UTF-8'}</a>
</span>
{/if}
{if $config->get('listing_show_category','1')}
<span class="blog-cat">
<i class="material-icons">list</i> <span>{l s='In' d='Shop.Theme.Global'}:</span>
<a href="{$blog.category_link|escape:'html':'UTF-8'}" title="{$blog.category_title|escape:'html':'UTF-8'}">{$blog.category_title|escape:'html':'UTF-8'}</a>
</span>
{/if}
{if $config->get('listing_show_created','1')}
<span class="blog-created">
<i class="material-icons">&#xE192;</i> <span>{l s='On' d='Shop.Theme.Global'}: </span>
<time class="date" datetime="{strtotime($blog.date_add)|date_format:"%Y"|escape:'html':'UTF-8'}">
{assign var='blog_date' value=strtotime($blog.date_add)|date_format:"%A"}
{l s=$blog_date d='Shop.Theme.Global'}, <!-- day of week -->
{assign var='blog_day' value=strtotime($blog.date_add)|date_format:"%e"}
{l s=$blog_day d='Shop.Theme.Global'} <!-- day of month -->
{assign var='blog_month' value=strtotime($blog.date_add)|date_format:"%B"}
{l s=$blog_month d='Shop.Theme.Global'} <!-- month-->
{assign var='blog_year' value=strtotime($blog.date_add)|date_format:"%Y"}
{l s=$blog_year d='Shop.Theme.Global'} <!-- year -->
</time>
</span>
{/if}
{if isset($blog.comment_count)&&$config->get('listing_show_counter','1')}
<span class="blog-ctncomment">
<i class="material-icons">comment</i> <span>{l s='Comment' d='Shop.Theme.Global'}:</span>
{$blog.comment_count|intval}
</span>
{/if}
{if $config->get('listing_show_hit','1')}
<span class="blog-hit">
<i class="material-icons">favorite</i> <span>{l s='Hit' d='Shop.Theme.Global'}:</span>
{$blog.hits|intval}
</span>
{/if}
</div>
<div class="blog-info">
{if $config->get('listing_show_description','1')}
<div class="blog-shortinfo">
{$blog.description|strip_tags:'UTF-8'|truncate:160:'...' nofilter}{* HTML form , no escape necessary *}
{$blog.description|strip_tags:'UTF-8'|truncate:95:'...' nofilter}{* HTML form , no escape necessary *}
</div>
{/if}
{if $config->get('listing_show_readmore',1)}

View File

@@ -0,0 +1,333 @@
{*
* @Module Name: Leo Blog
* @Website: leotheme.com.com - prestashop template provider
* @author Leotheme <leotheme@gmail.com>
* @copyright 2007-2018 Leotheme
* @description: Content Management
*}
{extends file=$layout}
{block name='content'}
<section id="main">
{if isset($error)}
<div id="blogpage">
<div class="blog-detail">
<div class="alert alert-warning">{l s='Sorry, We are updating data, please come back later!!!!' mod='leoblog'}</div>
</div>
</div>
{else}
<div id="blogpage">
<article class="blog-detail">
{if $is_active}
<h1 class="blog-title">{$blog->meta_title|escape:'html':'UTF-8'}</h1>
<span id="post_id" hidden>{$blog->id}</span>
<div class="blog-meta">
{if $config->get('item_show_author','1')}
<span class="blog-author">
<i class="material-icons">person</i> <span>{l s='Posted By' mod='leoblog'}: </span>
<a href="{$blog->author_link|escape:'html':'UTF-8'}" title="{$blog->author|escape:'html':'UTF-8'}">{$blog->author|escape:'html':'UTF-8'}</a>
</span>
{/if}
{if $config->get('item_show_category','1')}
<span class="blog-cat">
<i class="material-icons">list</i> <span>{l s='In' mod='leoblog'}: </span>
<a href="{$blog->category_link|escape:'html':'UTF-8'}" title="{$blog->category_title|escape:'html':'UTF-8'}">{$blog->category_title|escape:'html':'UTF-8'}</a>
</span>
{/if}
{if $config->get('item_show_created','1')}
<span class="blog-created">
<time class="date" datetime="{strtotime($blog->date_add)|date_format:"%Y"|escape:'html':'UTF-8'}">
{assign var='blog_date' value=strtotime($blog->date_add)|date_format:"%A"}
{l s=$blog_date mod='leoblog'}, <!-- day of week -->
{assign var='blog_day' value=strtotime($blog->date_add)|date_format:"%e"}
{l s=$blog_day mod='leoblog'} <!-- day of month -->
{assign var='blog_month' value=strtotime($blog->date_add)|date_format:"%B"}
{l s=$blog_month mod='leoblog'} <!-- month-->
{assign var='blog_year' value=strtotime($blog->date_add)|date_format:"%Y"}
{l s=$blog_year mod='leoblog'} <!-- year -->
</time>
</span>
{/if}
{if isset($blog_count_comment)&&$config->get('item_show_counter','1')}
<span class="blog-ctncomment">
<i class="material-icons">comment</i> <span>{l s='Comment' mod='leoblog'}:</span>
{$blog_count_comment|intval}
</span>
{/if}
{if isset($blog->hits)&&$config->get('item_show_hit','1')}
<span class="blog-hit">
<i class="material-icons">favorite</i> <span>{l s='Hit' mod='leoblog'}:</span>
{$blog->hits|intval}
</span>
{/if}
</div>
{if $blog->preview_url && $config->get('item_show_image','1')}
<div class="blog-image">
<img src="{$blog->preview_url|escape:'html':'UTF-8'}" title="{$blog->meta_title|escape:'html':'UTF-8'}" class="img-fluid" />
</div>
{/if}
<div class="blog-description">
<div id="leoblog_toc"></div>
{if $config->get('item_show_description',1)}
{$blog->description nofilter}{* HTML form , no escape necessary *}
{/if}
{$blog->content nofilter}{* HTML form , no escape necessary *}
<div class="category-internal-nav">
<h2>Popularne kategorie</h2>
<ul style="padding-left:0px;">
<li><a href="https://drmaterac.pl/42-materace">Materace</a></li>
<li><a href="https://drmaterac.pl/43-lozka">Łóżka</a></li>
<li><a href="https://drmaterac.pl/44-stelaze">Stelaże</a></li>
<li><a href="https://drmaterac.pl/45-akcesoria">Akcesoria</a></li>
<li><a href="https://drmaterac.pl/47-meble">Meble</a></li>
<li><a href="https://drmaterac.pl/243-oswietlenie">Oświetlenie</a></li>
</ul>
</div>
</div>
{literal}
<script>
document.addEventListener("DOMContentLoaded", function () {
const blogDescription = document.querySelector(".blog-description");
const categoryNav = document.querySelector(".category-internal-nav");
if (!blogDescription || !categoryNav) return;
const headings = blogDescription.querySelectorAll("h2");
if (headings.length >= 3) {
if (headings[1]) {
headings[1].insertAdjacentElement("beforebegin", categoryNav);
}
} else {
blogDescription.appendChild(categoryNav);
}
});
</script>
{/literal}
{if trim($blog->video_code)}
<div class="blog-video-code">
<div class="inner ">
{$blog->video_code nofilter}{* HTML form , no escape necessary *}
</div>
</div>
{/if}
<div class="social-share">
{include file="module:leoblog/views/templates/front/default/_social.tpl"}
</div>
{if $tags}
<div class="blog-tags">
<span>{l s='Tags:' mod='leoblog'}</span>
{foreach from=$tags item=tag name=tag}
<a href="{$tag.link|escape:'html':'UTF-8'}" title="{$tag.tag|escape:'html':'UTF-8'}"><span>{$tag.tag|escape:'html':'UTF-8'}</span></a>
{/foreach}
</div>
{/if}
{if !empty($samecats)||!empty($tagrelated)}
<div class="extra-blogs row">
{if !empty($samecats)}
<div class="col-lg-6 col-md-6 col-xs-12">
<h4>{l s='In Same Category' mod='leoblog'}</h4>
<ul>
{foreach from=$samecats item=cblog name=cblog}
<li>
{if !empty($cblog.image)}
<img src="/themes/leo_gstore/assets/img/modules/leoblog/{$id_shop}/b/{$cblog.image}" style="width:50px;margin-right: 15px;">
{/if}
<a href="{$cblog.link|escape:'html':'UTF-8'}">{$cblog.meta_title|escape:'html':'UTF-8'}</a>
</li>
{/foreach}
</ul>
</div>
{/if}
{if !empty($tagrelated)}
<div class="col-lg-6 col-md-6 col-xs-12">
<h4>{l s='Related by Tags' mod='leoblog'}</h4>
<ul>
{foreach from=$tagrelated item=cblog name=cblog}
<li><a href="{$cblog.link|escape:'html':'UTF-8'}">{$cblog.meta_title|escape:'html':'UTF-8'}</a></li>
{/foreach}
</ul>
</div>
{/if}
</div>
{/if}
<!-- <div >
<a href="{$blog->category_link}" >
<h4>{$blog->category_title}</h4>
<img src="{$blog->category_image}" alt="" height="250" />
</a>
</div> -->
{if $productrelated}
{/if}
{if $config->get('item_show_listcomment','1') == 1}
<div class="blog-comment-block clearfix">
{if $config->get('item_comment_engine','local')=='facebook'}
{include file="module:leoblog/views/templates/front/default/_facebook_comment.tpl"}
{elseif $config->get('item_comment_engine','local')=='diquis'}
{include file="module:leoblog/views/templates/front/default/_diquis_comment.tpl"}
{else}
{include file="module:leoblog/views/templates/front/default/_local_comment.tpl"}
{/if}
{elseif $config->get('item_show_listcomment','1') == 0 && $config->get('item_show_formcomment','1') == 1}
<div class="blog-comment-block clearfix">
{include file="module:leoblog/views/templates/front/default/_local_comment.tpl"}
</div>
{/if}
{else}
<div class="alert alert-warning">{l s='Sorry, This blog is not avariable. May be this was unpublished or deleted.' mod='leoblog'}</div>
{/if}
</article>
<div id="s_test" hidden>
{hook h='displayApSC' sc_key=sc3749181901}
</div>
</div>
<div class="hidden-xl-down hidden-xl-up datetime-translate">
{l s='Sunday' mod='leoblog'}
{l s='Monday' mod='leoblog'}
{l s='Tuesday' mod='leoblog'}
{l s='Wednesday' mod='leoblog'}
{l s='Thursday' mod='leoblog'}
{l s='Friday' mod='leoblog'}
{l s='Saturday' mod='leoblog'}
{l s='January' mod='leoblog'}
{l s='February' mod='leoblog'}
{l s='March' mod='leoblog'}
{l s='April' mod='leoblog'}
{l s='May' mod='leoblog'}
{l s='June' mod='leoblog'}
{l s='July' mod='leoblog'}
{l s='August' mod='leoblog'}
{l s='September' mod='leoblog'}
{l s='October' mod='leoblog'}
{l s='November' mod='leoblog'}
{l s='December' mod='leoblog'}
</div>
{/if}
</section>
{literal}
<style>
#leoblog_toc {
display: none;
width: 100%;
border: 2px solid #f1f1f1;
padding: 1.4rem 2rem;
margin: 1.4rem auto;
}
#leoblog_toc.active {
display: block;
}
#leoblog_toc .toc_title {
margin-bottom: .5rem;
font-size: 1rem;
font-weight: 500;
}
#leoblog_toc #tocList {
padding-left: 0;
list-style: none;
}
#leoblog_toc #tocList li a:hover {
text-decoration: underline;
color: #34d6ad;
}
#leoblog_toc .toclist__next-level {
padding-left: 1rem;
}
#leoblog_toc #tocList a {
font-size: .85rem;
}
@media (min-width: 991px) {
#blogpage .blog-detail .blog-description h2,
#blogpage .blog-detail .blog-description h3 {
scroll-margin-top: 140px;
}
}
</style>
<script>
window.addEventListener('DOMContentLoaded', function (event) {
var contentContainer = document.querySelector('#blogpage .blog-detail .blog-description');
var headings = contentContainer.querySelectorAll('h2, h3');
var tocContainer = document.getElementById('leoblog_toc');
if (headings && headings.length > 0){
var ul = document.createElement('ul');
ul.setAttribute('id', 'tocList');
for (i = 0; i <= headings.length - 1; i++) {
var id = 'naglowek-' + (i+1);
var level = headings[i].localName.replace("h", "");
var title = headings[i].innerHTML;
title = title.replaceAll('<strong>', '');
title = title.replaceAll('</strong>', '');
title = title.replaceAll(/<[^>]*>/g, '');
headings[i].setAttribute("id", id)
var li = document.createElement('li');
//li.innerHTML = (i+1) + '. ';
var a = document.createElement('a');
a.setAttribute("href", "#" + id)
a.innerHTML = title;
if (level == 2) {
child = document.createElement('ul');
li.appendChild(a);
child.appendChild(li);
ul.appendChild(li);
} else if (level == 3) {
grandchild = document.createElement('ul');
grandchild.setAttribute('class', 'toclist__next-level')
li.appendChild(a);
grandchild.appendChild(li);
ul.appendChild(grandchild);
}
}
var tocTitle = document.createElement('p');
tocTitle.setAttribute("class", "toc_title")
tocTitle.innerHTML = 'Spis treści';
tocContainer.appendChild(tocTitle);
tocContainer.appendChild(ul);
tocContainer.classList.add("active");
document.getElementById('tocList').querySelectorAll('a').forEach(function(link) {
link.addEventListener('click', function(event) {
event.preventDefault();
var targetId = link.getAttribute('href').substring(1);
var targetElement = document.getElementById(targetId);
if(targetElement) {
targetElement.scrollIntoView({ behavior: 'smooth' });
}
});
});
}
});
</script>
{/literal}
{/block}

View File

@@ -23,13 +23,13 @@
* International Registered Trademark & Property of PrestaShop SA
*}
<section class="category-products block clearfix">
<h2 class="products-section-title">
<p class="products-section-title" style="color:black;">
{if $products|@count == 1}
{l s='%s other product in the same category:' sprintf=[$products|@count] d='Shop.Theme.Catalog'}
{else}
{l s='%s other products in the same category:' sprintf=[$products|@count] d='Shop.Theme.Catalog'}
{/if}
</h2>
</p>
<div class="block_content">
<div class="products">
<div class="owl-row">

View File

@@ -24,7 +24,7 @@
*}
<div class="block_newsletter block">
<h3 class="title_block text-xs-center" id="block-newsletter-label">{l s='Newsletter signup' d='Shop.Theme.Global'}</h3>
<p class="title_block text-xs-center" id="block-newsletter-label">{l s='Newsletter signup' d='Shop.Theme.Global'}</p>
<div class="block_content">
<form action="{$urls.pages.index}#footer" method="post">
<div class="row">