本文整理汇总了PHP中commonModel::createModuleMenu方法的典型用法代码示例。如果您正苦于以下问题:PHP commonModel::createModuleMenu方法的具体用法?PHP commonModel::createModuleMenu怎么用?PHP commonModel::createModuleMenu使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类commonModel
的用法示例。
在下文中一共展示了commonModel::createModuleMenu方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: zget
?>
</div>
</nav>
<div class="clearfix row-main">
<?php
$moduleName = $this->moduleName;
?>
<?php
$menuGroup = zget($lang->menuGroups, $moduleName);
?>
<?php
if ($moduleName != 'ui' && $menuGroup != 'ui') {
?>
<?php
$moduleMenu = commonModel::createModuleMenu($this->moduleName);
?>
<?php
if ($moduleMenu or !empty($treeModuleMenu)) {
?>
<div class='col-md-2'>
<div class="leftmenu affix hiddden-xs hidden-sm">
<?php
if ($moduleMenu) {
echo $moduleMenu;
}
?>
<?php
if (!empty($treeModuleMenu)) {
?>
<div class='panel category-nav'>
示例2: unset
<?php
$templates = $this->loadModel('ui')->getTemplates();
$currentTemplate = $this->config->template->{$this->device}->name;
$currentTheme = $this->config->template->{$this->device}->theme;
$currentDevice = $this->session->device ? $this->session->device : 'desktop';
?>
<nav id='menu' style='padding-left:15px;'>
<?php
$lang->ui->menu = $lang->theme->menu;
if (!isset($this->config->ui->themes[$currentTemplate][$currentTheme])) {
unset($lang->ui->menu->custom);
}
$moduleMenu = commonModel::createModuleMenu($moduleName, '', false);
?>
<?php
if ($moduleMenu) {
echo $moduleMenu;
}
?>
<div class="pull-right">
<ul class="nav">
<li><?php
echo html::a(helper::createLink('visual', 'index'), '<i class="icon-magic"></i> ' . $lang->visualEdit, "target='_blank' class='navbar-link'");
?>
</li>
<li><?php
commonModel::printLink('ui', 'uploadTheme', '', '<i class="icon-download-alt"></i> ' . $lang->ui->uploadTheme, "data-toggle='modal' data-width='600'");
?>
</li>
<li><?php
示例3: browse
/**
* browse todos.
*
* @param string $mode
* @param string $orderBy
* @param int $recTotal
* @param int $recPerPage
* @param int $pageID
* @access public
* @return void
*/
public function browse($mode = 'assignedTo', $orderBy = 'date_asc', $recTotal = 0, $recPerPage = 20, $pageID = 1)
{
$this->app->loadClass('pager', $static = true);
$pager = new pager($recTotal, $recPerPage, $pageID);
$this->session->set('todoList', $this->app->getURI(true));
if ($mode == 'future') {
$todos = $this->todo->getList('self', $this->app->user->account, 'future', 'unclosed', $orderBy, $pager);
} else {
if ($mode == 'all') {
$todos = $this->todo->getList('self', $this->app->user->account, 'all', 'all', $orderBy, $pager);
} else {
if ($mode == 'undone') {
$todos = $this->todo->getList('self', $this->app->user->account, 'before', 'undone', $orderBy, $pager);
} else {
$todos = $this->todo->getList($mode, $this->app->user->account, 'all', 'unclosed', $orderBy, $pager);
}
}
}
$this->view->title = $this->lang->todo->browse;
$this->view->todos = $todos;
$this->view->users = $this->loadModel('user')->getPairs();
$this->view->mode = $mode;
$this->view->orderBy = $orderBy;
$this->view->pager = $pager;
$this->view->moduleMenu = commonModel::createModuleMenu($this->moduleName);
$this->display();
}
示例4:
<?php
$templates = $this->loadModel('ui')->getTemplates();
$currentTemplate = $this->config->template->{$this->device}->name;
$currentTheme = $this->config->template->{$this->device}->theme;
$currentDevice = $this->session->device ? $this->session->device : 'desktop';
?>
<nav id='menu' style='padding-left:15px;'>
<?php
$moduleMenu = commonModel::createModuleMenu('theme', '', false);
?>
<?php
if ($moduleMenu) {
echo $moduleMenu;
}
?>
<div class="pull-right">
<ul class="nav">
<li><?php
echo html::a(helper::createLink('visual', 'index'), '<i class="icon-magic"></i> ' . $lang->visualEdit, "target='_blank' class='navbar-link'");
?>
</li>
<li><?php
commonModel::printLink('ui', 'uploadTheme', '', '<i class="icon-download-alt"></i> ' . $lang->ui->uploadTheme, "data-toggle='modal' data-width='600'");
?>
</li>
<li><?php
commonModel::printLink('ui', 'exportTheme', '', '<i class="icon-upload-alt"></i> ' . $lang->ui->exportTheme, "data-toggle='modal' data-width='600'");
?>
</li>
<li><?php