function _initialize() { parent::_initialize(); // 子导航 $action = strtolower(_ACTION); $res['title'] = '首页模板'; $res['url'] = addons_url('WeiSite://template/index'); $res['class'] = $action == 'index' ? 'cur' : ''; $nav[] = $res; $res['title'] = '二级分类模板'; $res['url'] = addons_url('WeiSite://template/subcate'); $res['class'] = $action == 'subcate' ? 'cur' : ''; $nav[] = $res; $res['title'] = '图文列表模板'; $res['url'] = addons_url('WeiSite://template/lists'); $res['class'] = $action == 'lists' ? 'cur' : ''; $nav[] = $res; $res['title'] = '图文内容模板'; $res['url'] = addons_url('WeiSite://template/detail'); $res['class'] = $action == 'detail' ? 'cur' : ''; $nav[] = $res; $res['title'] = '底部菜单模板'; $res['url'] = addons_url('WeiSite://template/footer'); $res['class'] = $action == 'footer' ? 'cur' : ''; $nav[] = $res; $this->assign('sub_nav', $nav); }
function config() { // 使用提示 $normal_tips = '在微信里回复“微官网”即可以查看效果,也可点击<a target="_blank" href="' . U('index') . '">这里</a>在预览'; $this->assign('normal_tips', $normal_tips); parent::config(); }
function config() { // 使用提示 $normal_tips = '在微信里回复“微官网”即可以查看效果,也可点击<a target="_blank" href="' . U('index') . '">这里</a>在预览'; $this->assign('normal_tips', $normal_tips); if (IS_POST) { $flag = D('Common/AddonConfig')->set(_ADDONS, $_POST['config']); if ($flag !== false) { $this->success('保存成功', Cookie('__forward__')); } else { $this->error('保存失败'); } exit; } parent::config(); }
function config() { // 使用提示 $publicid = get_token_appinfo('', 'id'); $normal_tips = '在微信里回复“微官网”即可以查看效果,也可点击:<a target="_blank" href="' . U('preview') . '">预览</a>,<a id="copyLink" data-clipboard-text="' . U('index', array('publicid' => $publicid)) . '">复制链接</a><script type="application/javascript">$.WeiPHP.initCopyBtn("copyLink");</script>'; $this->assign('normal_tips', $normal_tips); if (IS_POST) { $flag = D('Common/AddonConfig')->set(_ADDONS, $_POST['config']); if ($flag !== false) { $this->success('保存成功', Cookie('__forward__')); } else { $this->error('保存失败'); } exit; } parent::config(); }
public function del() { parent::common_del($this->model); }
public function __construct() { parent::__construct(); }