12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- <?php
- /*
- |--------------------------------------------------------------------------
- | common.php
- |--------------------------------------------------------------------------
- */
- $view
- # 设置head里的数据
- ->fetch('head', '<{Maze::view("inc/head")}>')
- # 设置头部返回信息
- ->fetch('.news-back@href', '<{Maze::url("index")}>')
- # 设置menu的数据
- ->fetch
- (
- '.nav li',
- 'main/data.mobile_menu',
- array
- (
- # 标题
- 'a' => array
- (
- 'href' => '<{$v.link ? $v.link : "javascript:;"}>',
- //'title' => '<{$v.name}>',
- 'target' => '<{$v.target}>',
- 'html' => '<{$v.name}>',
- ),
- 'self' => array
- (
- 'class' => '<{Maze::last("no-bg", $i, $t)}>',
- 'class++' => ' <{Maze::last(Maze::input("nav"), $i, $t)}>',
- ),
- )
- )
- ->fetch('.login-footer .txt', '<{Maze::load("/config-one#icp", 1)}> 联系电话:<{Maze::load("/config-one#tel", 1)}>')
- # 设置foot里的数据
- ->fetch('.footer@style', '<{Maze::input("header") ? "display:none;" : ""}>')
- ->fetch('.header@style', '<{Maze::input("header") ? "display:none;" : ""}>')
- ->fetch('.title@style', '<{Maze::input("header") ? "display:none;" : ""}>')
- ->fetch('.container@style', '<{Maze::input("header") ? (Maze::input("top") ? Maze::input("top") : "top:0;bottom:0") : Maze::input("top")}>')
- # 展示数据
- ->display();
|