本文整理汇总了PHP中Widgets::categorySpicyNotes方法的典型用法代码示例。如果您正苦于以下问题:PHP Widgets::categorySpicyNotes方法的具体用法?PHP Widgets::categorySpicyNotes怎么用?PHP Widgets::categorySpicyNotes使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Widgets
的用法示例。
在下文中一共展示了Widgets::categorySpicyNotes方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: displayMenu
public function displayMenu($menu = '', $mode = '', $mtid = '')
{
?>
<?php
if ($mode == 2 || $mode == 1) {
?>
<div class="<?php
echo $mode == 2 ? "active-menu-2" : "active-menu-{$mode}";
?>
">
<div class="categories-wrap-mobile">
<div data-uk-dropdown="{mode:'click'}" class="uk-button-dropdown">
<button class="uk-button"><?php
echo Yii::t("default", "Categories");
?>
<span class="sortby_text"></span><i class="uk-icon-caret-down"></i></button>
<div class="uk-dropdown" >
<ul class="uk-nav uk-nav-dropdown">
<?php
foreach ($menu as $val) {
?>
<li>
<a href="javascript:;" data-id="cat-<?php
echo $val['category_id'];
?>
" class="goto-category">
<?php
echo ucwords($val['category_name']);
?>
</a>
</li>
<?php
}
?>
</ul>
</div>
</div>
</div> <!--categories-wrap-->
<!--<div class="clear"></div>-->
<?php
foreach ($menu as $val) {
//dump($val);
?>
<h2 class="cat-<?php
echo $val['category_id'];
?>
">
<?php
echo qTranslate($val['category_name'], 'category_name', $val);
?>
<?php
//echo Widgets::displayCatSpicyIconByID($val['category_id'])
?>
<?php
echo Widgets::displaySpicyIconNew($val['dish']);
?>
</h2>
<?php
if (!empty($val['category_description'])) {
?>
<p><?php
echo qTranslate($val['category_description'], 'category_description', $val);
?>
</p>
<?php
}
?>
<p style="margin-top:-10px;" class="uk-text-small uk-text-muted"><?php
echo Widgets::categorySpicyNotes($val['category_id']);
?>
</span>
<?php
if (is_array($val['item']) && count($val['item']) >= 1) {
?>
<?php
$x = 1;
?>
<?php
foreach ($val['item'] as $item) {
//dump($item);
?>
<?php
$atts = '';
if ($item['single_item'] == 2) {
$atts .= 'data-price="' . $item['single_details']['price'] . '"';
$atts .= " ";
$atts .= 'data-size="' . $item['single_details']['size'] . '"';
}
?>
<a href="javascript:;" rel="<?php
echo $item['item_id'];
?>
//.........这里部分代码省略.........