Example #1
0
                        <?php 
}
?>
                    </ul>
                </div>
            </div>

            <div class="eight columns omega">
                <h1 itemprop="name" class="product_name"><?php 
$_($product->name);
?>
                    <small class="label label-<?php 
$_($product->in_stock ? $product->status : 'missing');
?>
"><?php 
$_($product->in_stock ? \App\Model\Product::getStatusLabel($product->status) : 'Отсутствует');
?>
</small>
                </h1>

                <p itemtype="http://data-vocabulary.org/Offer" itemscope="" itemprop="offerDetails" class="modal_price"
                   style="display: inline; ">
                    <meta content="RUR" itemprop="currency">
                    <meta content="Evolve Skateboards" itemprop="seller">
                    <meta content="in_stock" itemprop="availability">

                    <span class="sold_out"></span>
                     <span class="" content="<?php 
echo $_format_price($product->Price, '%PRICE%');
?>
" itemprop="price">
Example #2
0
 public static function getFormattedProductStatus($status)
 {
     $label = \App\Model\Product::getStatusLabel($status);
     return "<span class='label label-{$status}'>" . htmlspecialchars($label, ENT_COMPAT, 'UTF-8') . "</span>";
 }