[ Поиск ] - [ Пользователи ] - [ Календарь ]
Полная Версия: Подскажите как расставить
litus
Доброй ночи.

Подскажите как вот это:

<?php // no direct access
defined('_JEXEC') or die('Restricted access');
?>
<div class="vmgroup<?php echo $params->get( 'moduleclass_sfx' ) ?>">

<?php if ($headerText) { ?>
<div class="vmheader"><?php echo $headerText ?></div>
<?php } ?>

<div class="vmproduct<?php echo $params->get('moduleclass_sfx'); ?>">
<?php foreach ($products as $product) { ?>
<div style="text-align:center;">
<
div class="spacer">

<?php
if (!empty($product->images[0]) )
$image = $product->images[0]->displayMediaThumb('class="featuredProductImage" border="0"',false) ;
else $image = '';
echo "<div style='float:left;'>".JHTML::_('link', JRoute::_('index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id='.$product->virtuemart_product_id.'&virtuemart_category_id='.$product->virtuemart_category_id),$image,array('title' => $product->product_name) )."</div>";
echo "<div style='font-size:16px;'>";
$url = JRoute::_('index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id='.$product->virtuemart_product_id.'&virtuemart_category_id='.
$product->virtuemart_category_id); ?>  <h2><a href="<?php echo $url ?>"><?php echo $product->product_name ?></a></h2>  <?php echo '</div><div class="clear"></div>';



// $product->prices is not set when show_prices in config is unchecked
if ($show_price and isset($product->prices)) {
// echo $currency->priceDisplay($product->prices['salesPrice']);
if (!empty($product->prices['salesPrice'] ) ) echo $currency->createPriceDiv('salesPrice','',$product->prices,true);
// if ($product->prices['salesPriceWithDiscount']>0) echo $currency->priceDisplay($product->prices['salesPriceWithDiscount']);
if (!empty($product->prices['salesPriceWithDiscount']) ) echo $currency->createPriceDiv('salesPriceWithDiscount','',$product->prices,true);
}
if ($show_addtocart) echo JHTML::link($product->link, JText::_('COM_VIRTUEMART_PRODUCT_DETAILS'), array('title' => $product->product_name,'class' => 'product-details'));
?>

</div></div>

<?php } ?>
<?php
if ($footerText) { ?>
<div class="vmheader"><?php echo $footerText ?></div>
<?php } ?>
</div>
</
div>


привести к порядочному виду, вот такому: https://dl.dropbox.com/u/36416309/maket.png.

Сейчас это выглядит вот так: https://dl.dropbox.com/u/36416309/%D0%A1%D0...%2022.23.24.png
Быстрый ответ:

 Графические смайлики |  Показывать подпись
Здесь расположена полная версия этой страницы.
Invision Power Board © 2001-2024 Invision Power Services, Inc.