first commit

This commit is contained in:
2023-09-04 21:59:34 +02:00
commit 650ef5b3e1
196 changed files with 24080 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
<?
global $lang;
?>
<ul class="product-category-<?= $this -> _step;?>">
<?php
if ( is_array( $this -> _categories ) ) foreach ( $this -> _categories as $category )
{
?>
<li>
<a href="./kategoria,<?= $category -> get_id();?>,<?= \System::seo( $category -> get_name() );?>">
<?= $category -> get_name();?>
</a>
<?
if ( is_array( $category -> get_subcategories() ) )
echo \product\VCategory::drawCategories( $category -> get_subcategories(), $this -> _step + 1 );
?>
</li>
<?
}
?>
</ul>

View File

@@ -0,0 +1,76 @@
<? global $lang;?>
<div class="products-content">
<?php
if ( is_array( $this -> _categories ) ) foreach ( $this -> _categories as $category )
{
if ( is_array( $category -> get_products() ) ) foreach ( $category -> get_products() as $product )
{
?>
<div class="product">
<div class="product-name">
<?= $product -> get_name();?>
</div>
<div class="product-img">
<?
if ( is_array( $product -> get_images() ) ) foreach ( $product -> get_images() as $img )
{
if ( !$i++ )
{
?>
<a href='<?= $img;?>' class="fancybox-buttons" rel='<?= $product -> get_id();?>'>
<div class="gallery_picture">
<div style="background: url( 'resources/thumber.php?img=<?= $img;?>&h=100&w=100' ) no-repeat center;"></div>
</div>
</a>
<?
}
}
?>
</div>
<div class="product-description">
<?= $product -> get_description();?>
</div>
<?
if ( $product -> get_price() )
{
?>
<div class="product-price">
<?= $product -> get_price();?>
</div>
<?
}
if ( is_array( $product -> get_images() ) && count( $product -> get_images() ) > 1 )
{
?>
<div class="product_gallery">
<?
foreach ( $product -> get_images() as $img )
{
if ( $x++ )
{
?>
<a href='<?= $img;?>' class="fancybox-buttons" rel='<?= $product -> get_id();?>'>
<div class="gallery_picture">
<div style="background: url( 'resources/thumber.php?img=<?=$img;?>&h=100&w=100' ) no-repeat center;"></div>
</div>
</a>
<?
}
}
?>
</div>
<?
}
?>
</div>
<?
}
// if ( is_array( $category -> get_subcategories() ) )
// echo \product\VCategory::drawCategories( $category -> get_subcategories(), $this -> _step + 1 );
}
?>
</div>
<?
if ( $this -> _child )
echo '<div class="button" onClick="javascript:history.go(-1);" style="margin-top: 20px;">' . $lang -> getTrans( 'T_WSTECZ' ) . '</div>';