- Автор темы
- #1
Ищу данный плагин. Может кто-то покупал или знает альтернативное решение?
Офф. страница плагина:
Для просмотра ссылки Войдиили Зарегистрируйся
Офф. страница плагина:
Для просмотра ссылки Войди
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.
Для просмотра ссылки ВойдиИщу данный плагин. Может кто-то покупал или знает альтернативное решение?
Офф. страница плагина:
Для просмотра ссылки Войдиили Зарегистрируйся
<?php
/**
*
* Description
*
* @package VirtueMart
* @subpackage Manufacturer
* @author Kohl Patrick, Eugen Stranz
* @link http://www.virtuemart.net
* @copyright Copyright (c) 2004 - 2010 VirtueMart Team. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* VirtueMart is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* @version $Id: default.php 2701 2011-02-11 15:16:49Z impleri $
*/
// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die('Restricted access');
$pathway = JFactory::getApplication()->getPathway();
$pathway->addItem( 'Приоизводители инженерных систем', JRoute::_( 'index.php?option=com_virtuemart&view=manufacturers' ) );
$iColumn = 1;
$iManufacturer = 1;
// Calculating Categories Per Row
$manufacturerPerRow = 4;
if ($manufacturerPerRow != 1) {
$manufacturerCellWidth = ' width'.floor ( 100 / $manufacturerPerRow );
} else {
$manufacturerCellWidth = '';
}
// Separator
$verticalSeparator = " vertical-separator";
$horizontalSeparator = '<div class="horizontal-separator"></div>';
// Lets output the categories, if there are some
if (!empty($this->manufacturers)) { ?>
<div class="page-title">
<h1>Приоизводители инженерных систем</h1>
</div>
<div class="manufacturer-view-default">
<?php // Start the Output
foreach ( $this->manufacturers as $manufacturer ) {
// Show the horizontal seperator
if ($iColumn == 1 && $iManufacturer > $manufacturerPerRow) {
// echo $horizontalSeparator;
}
// this is an indicator wether a row needs to be opened or not
if ($iColumn == 1) { ?>
<div class="row">
<?php }
// Show the vertical seperator
if ($iManufacturer == $manufacturerPerRow or $iManufacturer % $manufacturerPerRow == 0) {
$showVerticalSeparator = ' ';
} else {
$showVerticalSeparator = $verticalSeparator;
}
// Manufacturer Elements
$manufacturerURL = JRoute::_('index.php?option=com_virtuemart&view=category&virtuemart_manufacturer_id=' . $manufacturer->virtuemart_manufacturer_id, FALSE);
$manufacturerIncludedProductsURL = JRoute::_('index.php?option=com_virtuemart&view=category&virtuemart_manufacturer_id=' . $manufacturer->virtuemart_manufacturer_id, FALSE);
$manufacturerImage = $manufacturer->images[0]->displayMediaThumb("",false);
// Show Category ?>
<div class="manufacturer floatleft<?php echo $manufacturerCellWidth . $showVerticalSeparator ?>">
<div class="manuf">
<center><a title="<?php echo $manufacturer->mf_name; ?>" href="<?php echo $manufacturerURL; ?>"><?php echo $manufacturerImage;?></a><br>
<?php
$db = JFactory::getDbo();
$query = $db->getQuery(true);
// Select all records from the user profile table where key begins with "custom.".
// Order it by the ordering field.
$query->select(array('COUNT(virtuemart_product_id)'));
$query->from('#__virtuemart_product_manufacturers');
$query->where("virtuemart_manufacturer_id=$manufacturer->virtuemart_manufacturer_id");
// Reset the query using our newly populated query object.
$db->setQuery($query);
// Load the results as a list of stdClass objects.
$count_prod = $db->loadResult();?>
<a style="font-weight:bold;" title="<?php echo $manufacturer->mf_name; ?>" href="<?php echo $manufacturerURL; ?>"><?php echo $manufacturer->mf_name; ?><?php echo " (". $count_prod .")" ?></a></center>
</div></div>
<?php
$iManufacturer ++;
// Do we need to close the current row now?
if ($iColumn == $manufacturerPerRow) {
echo '<div class="clear"></div></div>';
$iColumn = 1;
} else {
$iColumn ++;
}
}
// Do we need a final closing row tag?
if ($iColumn != 1) { ?>
<div class="clear"></div>
</div>
<?php } ?>
</div>
<?php
}
?>