Follow along with the video below to see how to install our site as a web app on your home screen.
Примечание: This feature may not be available in some browsers.
/components/com_virtuemart/themes/bazann/templates/common/categoryChildlist.tpl.php
<?php echo $desc; ?>
<?php
if( !defined( '_VALID_MOS' ) && !defined( '_JEXEC' ) ) die( 'Direct Access to '.basename(__FILE__).' is not allowed.' );
mm_showMyFileName(__FILE__);
$iCol = 1;
if( !isset( $categories_per_row )) {
$categories_per_row = 2;
}
$cellwidth = intval( 100 / $categories_per_row );
if( empty( $categories )){
return;
}
?>
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<?php
foreach( $categories as $category ) {
if ($iCol == 1) { // this is an indicator wether a row needs to be opened or not
echo "<tr>\n";
}
?>
<td width="<?php echo $cellwidth ?>%" >
<a title="<?php echo $category["category_name"] ?>" href="<?php $sess->purl(URL."index.php?option=com_virtuemart&page=shop.browse&category_id=".$category["category_id"]) ?>">
<?php
echo $category["category_name"];
echo $category['number_of_products'];
?>
</a>
</td>
<?php
if($iCol == $categories_per_row){
echo "</tr>\n";
$iCol = 1;
}else{
$iCol++;
}
}
if($iCol != 1){
echo "</tr>\n";
}
?>
</table>
<?php echo $desc; ?>