default_layout.php 7 KB
<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale = 1.0, maximum-scale=1.0, minimum-scale=1.0,user-scalable = no" />
    <title>YO'HOOD | 全球潮流新品嘉年华</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta http-equiv="Cache-Control" content="no-siteapp"/> 
    <meta name="renderer" content="webkit">
    <link rel="dns-prefetch" href="<?php echo SITE_RES;?>">
   <?php $this->_css('index.css', array(
        SITE_RES . '/css/index.css',
        SITE_RES . '/css/emoji.css',
    ));?>
<?php $this->_block('css');?>
<?php $this->_endblock();?>
</head>
<body>
    <div class="yoho-nav clearfix">
        <ul class="clearfix">
            <li>
                <span>YOHO!</span>
                <a href="http://www.yoho.cn" target="_blank">集团官网</a>
            </li>
            <li>
                <span>YOHO!有货</span>
                <a href="http://www.yohobuy.com" target="_blank">潮流购物</a>
            </li>
            <li>
                <span>YOHO!BOYS</span>
                <a href="http://www.yohoboys.com" target="_blank">男生潮流</a>
            </li>
            <li>
                <span>YOHO!GIRLS</span>
                <a href="http://www.yohogirls.com" target="_blank">女生潮流</a>
            </li>
            <li>
                <span>YOHO!SHOW</span>
                <a href="http://www.yohoshow.com" target="_blank">物趣分享</a>
            </li>
            <li class="current">
                <span>YOHOOD</span>
                <a href="javascript:;" target="_blank">潮流嘉年华</a>
            </li>
        </ul>
        <a class="contact-btn" href="/default/contactus">contact</a>
    </div>
    <?php 
        $_ctx = Framework_YHttpRequest::instance();
     	$controller_name = $_ctx->controller_name;
     	$action_name = $_ctx->action_name;
     ?>
    <div class="header">
       <a href="<?php echo SITE_MAIN;?>">
            <h1 class="logo"></h1> 
       </a>
        <div class="nav">
            <ul class="clearfix">
                <li <?php echo ($controller_name == 'default') ? 'class="current"':''; ?>>
                    <a href="/default/index">
                        <em>HOME</em>
                        <span>首页</span>
                        <i></i>
                    </a>
                </li>
                <li <?php echo ($controller_name == 'activity' && 
                        in_array($action_name, array('index','video','partner'))) ?  'class="current"':''; ?>>
                    <a href="/activity/index">
                        <em>ACTIVITY</em>
                        <span>活动详情</span>
                        <i></i>
                    </a>
                </li>
                <li <?php echo ($controller_name == 'news') ? 'class="current"':''; ?>>
                    <a href="/news/index">
                        <em>COUNSEL</em>
                        <span>最新资讯</span>
                        <i></i>
                    </a>
                </li>
                <li <?php echo ($controller_name == 'brand') ? 'class="current"':''; ?>>
                    <a href="/brand/index">
                        <em>BRAND</em>
                        <span>参展品牌</span>
                        <i></i>
                    </a>
                </li>
                <li <?php echo ($controller_name == 'video') ? 'class="current"':''; ?>>
                    <a href="/video/index">
                        <em>VIDEO</em>
                        <span>热点视频</span>
                        <i></i>
                    </a>
                </li>
                <li <?php echo ($controller_name == 'product' && $action_name == 'recommend') ? 'class="current"':''; ?>>
                    <a href="/product/recommend">
                        <em>RECOMMEND</em>
                        <span>限量推荐</span>
                        <i></i>
                    </a>
                </li>
                <li <?php echo ($controller_name == 'activity' && $action_name == 'plan') ? 'class="current"':''; ?>>
                    <a href="/activity/plan">
                        <em>SCENE</em>
                        <span>现场活动</span>
                        <i></i>
                    </a>
                </li>
                <li <?php echo ($controller_name == 'show') ? 'class="current"':''; ?>>
                    <a href="/show/index">
                        <em>SHOW</em>
                        <span>潮流分享</span>
                        <i></i>
                    </a>
                </li>
            </ul>
        </div>
    </div>
    <div class="bd clearfix">
    <div class="wrapper">
     <?php $this->_block('main');
     $this->_endblock();?>
     </div>
    </div>
    <?php if($this->view->recom_product_total):?>
    <div class="ft"> <!-- 限量推荐 -->
        <div class="limited-goods">
            <h2>限量商品</h2>
            <div class="limited-slide-box">
                <div class="slide-wrap clearfix" id="product_list"  offset="0">
                </div>
            </div>
            <div class="limited-slide-control">
                <a class="limited-slide-prev iconfont" href="javascript:void(0);">&#xe600;</a>
                <a class="limited-slide-next iconfont" href="javascript:void(0);">&#xe602;</a>
            </div>
        </div>
        <div class="ft-bd" style="line-height: 20px;text-align: center;color: #c0c0c0;font-family: helveticaneue,'helveticaneue','microsoft yahei'">
            <div class="ft-line"></div>
            <p>CopyRight © 2007-2016 南京新与力文化传播有限公司  <a href="http://www.miibeian.gov.cn" target="_blank" style="color:#c0c0c0;">苏ICP备09011225号-11</a></p> 
        </div>
    </div>
    <?php endif;?>
    <div class="return-top" style="display:none;">
        <a href="javascript:void(0);" id="toTop" class="ifont" style="display: inline;">
        <span class="iconfont">&#xe605;</span>
        TOP
        </a>
    </div>
  
<?php $this->_js('index.js', array(
    SITE_JS . '/lib/seajs.js',
));?>
<script type="text/javascript">
seajs.use('yohood',function(yohood){
	yohood.layout();
});
</script>
<?php $this->_block('js');?>
<?php $this->_endblock();?>
<script type="text/javascript">
(
  	function(w,d,s,j,f)
  	{
	     w['YohoAcquisitionObject'] = f;
	     w[f] = function()
	     {
	       w[f].p = arguments;
	     };
	     var a=d.createElement(s);
	     var m=d.getElementsByTagName(s)[0];
	     a.async=1;
	     a.src=j;
	     m.parentNode.insertBefore(a,m);
  	}
 )(window,document,'script','//cdn.yoho.cn/yas-jssdk/1.0.6/yas.js','_yas');//第一个参数是版本,第二个参数是appkey,第三个是用户ID,第四个是是否获取地理位置传空就是不获取地理位置。
_yas(1*new Date(),'1.0','yohood_web','','geo');
</script> 
 </body>
</html>