1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- <?php
- $view
- ->fetch('title', '<{isset($title) ? $title . "_" . Dever::load("main/content.config#name") : Dever::load("main/content.config#name")}>')
- ->fetch('meta[name="Keywords"]@content', '<{isset($keywords) ? Dever::load("main/content.config#keywords") . "," . $keywords : Dever::load("main/content.config#keywords")}>')
- ->fetch('meta[name="Description"]@content', '<{isset($info) ? Dever::load("main/content.config#info") . "," . $info : Dever::load("main/content.config#info")}>')
- ->fetch('.logo img@src', 'main/content.config#logo')
- ->fetch('.blogo img@src', 'main/content.config#logo')
- ->fetch('.logo img@data-wlogo', 'main/content.config#logo_black')
- ->fetch('.blogo img@data-wlogo', 'main/content.config#logo_black')
- ->fetch('.copyright img@src', 'main/content.config#weixin_qrcode')
- ->fetch('footer span', 'main/content.config#beian')
- //->fetch('.logo img@style', 'width:100px')
- # 登录
- //->fetch('.menu', 'main/content.user')
- # 联系方式
- ->fetch('.user-layer .icon-weibo@href', '<{Dever::load("main/content.config#weibo")}>')
- ->fetch('.share .icon-weibo@href', '<{Dever::load("main/content.config#weibo")}>')
- ->fetch('.qrcode img@src', '<{Dever::load("main/content.config#weixin_qrcode")}>')
- ->fetch('.user-layer .icon-weixin@href', '#')
- ->fetch('.share .icon-weixin@href', '#')
- ->fetch('.user-layer .icon-email@href', '<{Dever::load("main/content.config#contact")}>')
- # 搜索
- ->fetch('.search-layer input@id', 'search')
- ->fetch('.search-layer a@href', 'javascript:;')
- ->fetch('.search-layer a@onclick', 'main/content.search')
- ->fetch('.m-search-layer input@id', 'msearch')
- ->fetch('.m-search-layer .icon-search@onclick', 'main/content.msearch')
- # 菜单
- ->loop
- (
- '.menu-layer li',
- 'main/content.menu',
- array
- (
- 'a' => array
- (
- 'href' => '$v.link',
- 'html' => '$v.name',
- ),
- 'self' => array
- (
- 'class' => '$v.class',
- ),
- )
- )
- ->loop
- (
- '.nav-wrapper li',
- 'main/content.menu',
- array
- (
- 'self' => array
- (
- 'class' => '$v.class',
- 'html' => '$v.html',
- ),
- )
- )
- ->append('head', '<script><{Dever::script()}><{Dever::load("main/content.share")}></script>');
- //->append('head', '<script><{Dever::script()}>config.uid=<{Dever::load("passport/user.data") ? Dever::load("passport/user.data#id") : -1}></script>');
|