1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
-
- <?php
- $name = "banner-s-1";
- //var_dump($page);
- ?>
- <link rel="stylesheet" href="/template/pc/components/banner/style_1.css" media="all">
- <!--定义div盒子-->
- <div class="<?php echo $name; ?>-content">
- <div class="box">
- <!--定义内容布局--->
- <div class="row">
- <!--定义内部栅格 上下左右 使用浮动-->
- <div class="top">
- <!--定义内容标签 p span a li img--->
-
- {eyou:if condition='($page == "zccat")'}
-
- <!--职称产品页默认banner图(优先调用产品字段)-->
- {eyou:adv pid='10' loop='1'}
- <a href='javascript:void(0);'>
- <img alt='{$field.title}' src='{$field.litpic}' style="width:100%;max-height: 234px;"/>
- </a>
- {/eyou:adv}
- {eyou:elseif condition='($page == "zccat-detail" || $page== "zccat-detail-list")'}
- {eyou:adv pid='13' loop='1'}
- <a href='javascript:void(0);'>
- <img alt='{$field.title}' src='{$field.litpic}' style="width:100%;max-height: 234px;"/>
- </a>
- {/eyou:adv}
-
- {eyou:elseif condition='($page == "lunwen-list")'}
- {eyou:adv pid='19' loop='1'}
- <a href='javascript:void(0);'>
- <img alt='{$field.title}' src='{$field.litpic}' style="width:100%;max-height: 234px;"/> <!--{$field.links}-->
- </a>
- {/eyou:adv}
- {eyou:else /}
- <img src="https://www.wetools.com/imgplaceholder/1050x234" />
- {/eyou:if}
-
- </div>
- </div>
- </div>
- </div>
|