default_layout.php 4.32 KB
<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>YO'HOOD | 全球潮流新品嘉年华</title>
    <link rel="stylesheet" href="<?php echo SITE_RES;?>/css/index.css"/>
</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">男生潮流</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="javascript:;">contact</a>
    </div>
    <?php 
        $_ctx = Framework_YHttpRequest::instance();
     	$controller_name = $_ctx->controller_name;
     	$action_name = $_ctx->action_name;
     ?>
    <div class="header">
        <h1 class="logo"></h1>
        <div class="nav">
            <ul class="clearfix">
                <li <?php echo ($controller_name == 'default' && $action_name == 'index') ? 'class="current"':''; ?>>
                    <a href="/default/index">HOME</a>
                    <span>首页</span>
                </li>
                <li <?php echo ($controller_name == 'activity' && 
                        in_array($action_name, array('index','video','partner'))) ?  'class="current"':''; ?>>
                    <a href="/activity/index">ACTIVITY</a>
                    <span>活动详情</span>
                </li>
                <li <?php echo ($controller_name == 'news') ? 'class="current"':''; ?>>
                    <a href="/news/index">COUNSEL</a>
                    <span>最新资讯</span>
                </li>
                <li <?php echo ($controller_name == 'brand') ? 'class="current"':''; ?>>
                    <a href="/brand/index">BRAND</a>
                    <span>参展品牌</span>
                </li>
                <li <?php echo ($controller_name == 'video') ? 'class="current"':''; ?>>
                    <a href="/video/index">VIDEO</a>
                    <span>热点视频</span>
                </li>
                <li>
                    <a href="/product/recommend">RECOMMEND</a>
                    <span>限量推荐</span>
                </li>
                <li>
                    <a href="/activity/plan">SCENE</a>
                    <span>现场活动</span>
                </li>
                <li <?php echo ($controller_name == 'show') ? 'class="current"':''; ?>>
                    <a href="/show/index">SHOW</a>
                    <span>潮流分享</span>
                </li>
            </ul>
        </div>
    </div>
    <div class="bd">
     <?php $this->_block('main');
     $this->_endblock();?>
    </div>
    <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>
    <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>
</script>
<?php $this->_block('js');?>
<?php $this->_endblock();?>
 </body>
</html>