<?php

$view
->fetch('title',                    '<{isset($title) ? $title . "_" . Dever::load("main/api.config#name") : Dever::load("main/api.config#name")}>')

->fetch(array('link@href', 0),      Dever::assets("global.css"))
->fetch(array('link@href', 1),      Dever::assets('<{(isset($name) ? $name : "index")}>.css', "css"))

# 公共信息
->render('main/api.config', array  
(
	'.logo img@src' => '$v.logo',
    '.icp' => '$v.foot',
    '.list a@href|0' => '$v.about_link',
    '.list a@href|1' => '$v.news_link',
    '.list a@href|2' => '$v.agreement_link',
    '.list a@href|3' => '$v.privacy_link',

    '.list a@href|4' => '$v.sell_link',
    '.list a|4' => '$v.sell_name',
    '.list img@src|0' => '$v.sell_applet',

    '.list a@href|5' => '$v.manage_link',
    '.list a|5' => '$v.manage_name',
    '.list img@src|1' => '$v.manage_applet',

    '.list a@href|6' => '$v.factory_link',
    '.list a|6' => '$v.factory_name',
    '.list dd@style|6' => 'display:none',

    '.list a@href|7' => '$v.help_link',

    '.list dd|7' => '$v.phone',
    '.list dd|8' => '$v.worktime', 

    '.gzh img@src' => '$v.wechat',

    '.minip img@src' => '$v.sell_applet',
    '.minip dd' => '$v.sell_name',

    'nav a@href|0' => '$v.home_link',
    'nav a@href|1' => '$v.open_link',
    'nav a@href|2' => '$v.news_link',
    'nav a@href|3' => '$v.jd_link',
    'nav a@href|4' => '$v.contact_link',
))

->append('head',    '<script><{Dever::script()}></script>')
->append('footer',    'main/api.config#baidu')


;