当前位置: 首页>>代码示例>>PHP>>正文


PHP Widgets::displaySpicyIconNew方法代码示例

本文整理汇总了PHP中Widgets::displaySpicyIconNew方法的典型用法代码示例。如果您正苦于以下问题:PHP Widgets::displaySpicyIconNew方法的具体用法?PHP Widgets::displaySpicyIconNew怎么用?PHP Widgets::displaySpicyIconNew使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Widgets的用法示例。


在下文中一共展示了Widgets::displaySpicyIconNew方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: qTranslate

                        ?>
" 
		           <?php 
                        echo $atts;
                        ?>
		         >
		          <div class="left">
		             <?php 
                        echo qTranslate($val_item['item_name'], 'item_name', $val_item);
                        ?>
		             <?php 
                        //echo Widgets::displaySpicyIcon($val_item['spicydish'],'',$merchant_id);
                        ?>
             
		             <?php 
                        echo Widgets::displaySpicyIconNew($val_item['dish']);
                        ?>
             
		          </div>
		          <div class="right food-price-wrap">
		             <?php 
                        if (is_array($val_item['prices']) && count($val_item['prices']) >= 1) {
                            ?>
		              <?php 
                            if (!empty($val_item['discount'])) {
                                ?>
		              <div class="normal-price left">
		               <?php 
                                echo displayPrice(getCurrencyCode(), prettyFormat($val_item['prices'][0]['price']));
                                ?>
		               </div>
开发者ID:ashishvazirani,项目名称:food,代码行数:31,代码来源:menu.php

示例2: qTranslate

        ?>
	    <?php 
    }
    ?>
	  </div>
	  <div class="uk-width-1-2">
	  <h1 class="uk-h2"><?php 
    echo qTranslate($data['item_name'], 'item_name', $data);
    ?>
</h1>
	  <?php 
    //echo Widgets::displaySpicyIcon($data['spicydish'],'',$data['merchant_id']);
    ?>
 
	  <?php 
    echo Widgets::displaySpicyIconNew($data['dish']);
    ?>
 
	  <p class="uk-text-muted"><?php 
    echo qTranslate($data['item_description'], 'item_description', $data);
    ?>
</p>
	  </div>
  </div> <!--uk-grid-->
  
  <?php 
    if (is_array($data['prices']) && count($data['prices']) >= 1) {
        ?>
  
  
  <div class="section">
开发者ID:ashishvazirani,项目名称:food,代码行数:31,代码来源:food-item.php

示例3: categoryList

 public function categoryList()
 {
     $mtid = Yii::app()->functions->getMerchantID();
     $slug = $this->data['slug'];
     $stmt = "\r\n\t\t\tSELECT * FROM\r\n\t\t\t{{category}}\r\n\t\t\tWHERE\r\n\t\t\tmerchant_id='" . Yii::app()->functions->getMerchantID() . "'\r\n\t\t\tORDER BY cat_id DESC\r\n\t\t\t";
     $connection = Yii::app()->db;
     $rows = $connection->createCommand($stmt)->queryAll();
     if (is_array($rows) && count($rows) >= 1) {
         foreach ($rows as $val) {
             $chk = "<input type=\"checkbox\" name=\"row[]\" value=\"{$val['cat_id']}\" class=\"chk_child\" >";
             $option = "<div class=\"options\">\r\n    \t    \t\t<a href=\"{$slug}/id/{$val['cat_id']}\" >" . Yii::t("default", "Edit") . "</a>\r\n    \t    \t\t<a href=\"javascript:;\" class=\"row_del\" rev=\"{$val['cat_id']}\" >" . Yii::t("default", "Delete") . "</a>\r\n    \t    \t\t</div>";
             /*$date=date('M d,Y G:i:s',strtotime($val['date_created']));    	    		
             		$date=Yii::app()->functions->translateDate($date);*/
             $date = FormatDateTime($val['date_created']);
             if (!empty($val['photo'])) {
                 $img = Yii::app()->request->baseUrl . "/upload/{$val['photo']}";
                 $photo = "<img class=\"uk-thumbnail uk-thumbnail-mini\" src=\"{$img}\" >";
             } else {
                 $photo = '';
             }
             $feed_data['aaData'][] = array($chk, stripslashes($val['category_name']) . $option, stripslashes($val['category_description']), $photo, Widgets::displaySpicyIconNew($val['dish']), $date . "<div>" . Yii::t("default", $val['status']) . "</div>");
         }
         $this->otableOutput($feed_data);
     }
     $this->otableNodata();
 }
开发者ID:ashishvazirani,项目名称:food,代码行数:26,代码来源:AjaxAdmin.php

示例4: 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'];
                        ?>
//.........这里部分代码省略.........
开发者ID:ashishvazirani,项目名称:food,代码行数:101,代码来源:Widgets.php


注:本文中的Widgets::displaySpicyIconNew方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。