本文整理汇总了PHP中Theme::GetMenu方法的典型用法代码示例。如果您正苦于以下问题:PHP Theme::GetMenu方法的具体用法?PHP Theme::GetMenu怎么用?PHP Theme::GetMenu使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Theme
的用法示例。
在下文中一共展示了Theme::GetMenu方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: defined
*
* You should have received a copy of the GNU Affero General Public License
* along with Xibo. If not, see <http://www.gnu.org/licenses/>.
*
* Theme variables:
* id = The GridID for rendering AJAX layout table return
* filter_id = The Filter Form ID
* form_meta = Extra form meta that needs to be sent to the CMS to return the report
* pager = A paging control for this Xibo Grid
*/
defined('XIBO') or die("Sorry, you are not allowed to directly access this page.<br /> Please press the back button in your browser.");
?>
<div class="row">
<ul class="nav nav-pills span12">
<?php
foreach (Theme::GetMenu('Advanced Menu') as $item) {
echo $item['li'];
}
?>
<li class="pull-right"><a title="<?php
echo Theme::Translate('Open the filter form');
?>
" href="#" onclick="ToggleFilterView('Filter')"><span><?php
echo Theme::Translate('Filter');
?>
</span></a></li>
</ul>
</div>
<div class="row">
<div class="XiboGrid span12" id="<?php
echo Theme::Get('id');
示例2: defined
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with Xibo. If not, see <http://www.gnu.org/licenses/>.
*
* Theme variables:
* id = The GridID for rendering AJAX layout table return
* filter_id = The Filter Form ID
* form_meta = Extra form meta that needs to be sent to the CMS to return the list of layouts
* pager = A paging control for this Xibo Grid
*/
defined('XIBO') or die("Sorry, you are not allowed to directly access this page.<br /> Please press the back button in your browser.");
?>
<div id="dashbuttons">
<?php
foreach (Theme::GetMenu('Dashboard') as $item) {
?>
<div class="dashicons">
<a id="<?php
echo $item['class'];
?>
" alt="<?php
echo $item['title'];
?>
" href="<?php
echo $item['link'];
?>
">
<?php
echo Theme::Image($item['img'], 'dash_button');
?>
示例3: defined
*
* You should have received a copy of the GNU Affero General Public License
* along with Xibo. If not, see <http://www.gnu.org/licenses/>.
*
* Theme variables:
* id = The GridID for rendering AJAX layout table return
* filter_id = The Filter Form ID
* form_meta = Extra form meta that needs to be sent to the CMS to return the list of layouts
* pager = A paging control for this Xibo Grid
*/
defined('XIBO') or die("Sorry, you are not allowed to directly access this page.<br /> Please press the back button in your browser.");
?>
<div class="row">
<ul class="nav nav-pills span12">
<?php
foreach (Theme::GetMenu('Administration Menu') as $item) {
echo $item['li'];
}
?>
</ul>
</div>
<div class="row">
<div class="XiboGrid span12" id="<?php
echo Theme::Get('id');
?>
">
<div class="XiboFilter">
<div class="FilterDiv" id="Filter">
<form>
<?php
echo Theme::Get('form_meta');
示例4: foreach
<div class="span2 pull-right">
</div>
</div>
<div class="navbar">
<div class="navbar-inner">
<ul class="nav">
<li><a href="<?php
echo Theme::GetUserHomeLink();
?>
"><?php
echo Theme::Translate('Dashboard');
?>
</a></li>
<?php
foreach (Theme::GetMenu('Top Nav') as $item) {
echo $item['li'];
}
?>
</ul>
<ul class="nav pull-right">
<li><a id="XiboClock" class="XiboFormButton" href="index.php?p=clock&q=ShowTimeInfo" title="<?php
echo Theme::Translate('Click to show more time information');
?>
"><?php
echo Theme::GetClock();
?>
</a></li>
<li class="dropdown">
<a href="#" id="prefs" role="button" class="dropdown-toggle" data-toggle="dropdown">
<?php
示例5: defined
* You should have received a copy of the GNU Affero General Public License
* along with Xibo. If not, see <http://www.gnu.org/licenses/>.
*
* Theme variables:
* id = The GridID for rendering AJAX layout table return
* filter_id = The Filter Form ID
* form_meta = Extra form meta that needs to be sent to the CMS to return the list of layouts
* pager = A paging control for this Xibo Grid
* resolution_form_add_url = The Add URL for adding a Resolution
*/
defined('XIBO') or die("Sorry, you are not allowed to directly access this page.<br /> Please press the back button in your browser.");
?>
<div class="row">
<ul class="nav nav-pills span12">
<?php
foreach (Theme::GetMenu('Display Menu') as $item) {
echo $item['li'];
}
?>
</ul>
</div>
<div class="row">
<div class="XiboGrid span12" id="<?php
echo Theme::Get('id');
?>
">
<div class="XiboFilter">
<div class="FilterDiv" id="Filter">
<form>
<?php
echo Theme::Get('form_meta');
示例6: defined
*
* You should have received a copy of the GNU Affero General Public License
* along with Xibo. If not, see <http://www.gnu.org/licenses/>.
*
* Theme variables:
* id = The GridID for rendering AJAX layout table return
* filter_id = The Filter Form ID
* form_meta = Extra form meta that needs to be sent to the CMS to return the list of layouts
* pager = A paging control for this Xibo Grid
*/
defined('XIBO') or die("Sorry, you are not allowed to directly access this page.<br /> Please press the back button in your browser.");
?>
<div class="row">
<ul class="nav nav-pills span12">
<?php
foreach (Theme::GetMenu('Design Menu') as $item) {
echo $item['li'];
}
?>
<li class="pull-right"><a title="<?php
echo Theme::Translate('Open the filter form');
?>
" href="#" onclick="ToggleFilterView('Filter')"><span><?php
echo Theme::Translate('Filter');
?>
</span></a></li>
</ul>
</div>
<div class="row">
<div class="XiboGrid span12" id="<?php
echo Theme::Get('id');
示例7: defined
*
* You should have received a copy of the GNU Affero General Public License
* along with Xibo. If not, see <http://www.gnu.org/licenses/>.
*
* Theme variables:
* id = The GridID for rendering AJAX layout table return
* filter_id = The Filter Form ID
* form_meta = Extra form meta that needs to be sent to the CMS to return the list of layouts
* pager = A paging control for this Xibo Grid
*/
defined('XIBO') or die("Sorry, you are not allowed to directly access this page.<br /> Please press the back button in your browser.");
?>
<div class="row">
<ul class="nav nav-pills span12">
<?php
foreach (Theme::GetMenu('Library Menu') as $item) {
echo $item['li'];
}
?>
<li class="pull-right"><a title="<?php
echo Theme::Translate('Add more rows to the end of this DataSet');
?>
" onclick="XiboGridRender('<?php
echo Theme::Get('id');
?>
')" href="#" ><span><?php
echo Theme::Translate('More Rows');
?>
</span></a></li>
</ul>
</div>
示例8: switch
$menu = NULL;
switch ($item['page']) {
case 'layout':
$menu = Theme::GetMenu('Design Menu');
break;
case 'content':
$menu = Theme::GetMenu('Library Menu');
break;
case 'display':
$menu = Theme::GetMenu('Display Menu');
break;
case 'user':
$menu = Theme::GetMenu('Administration Menu');
break;
case 'log':
$menu = Theme::GetMenu('Advanced Menu');
break;
}
if (empty($menu)) {
echo '<li class="sidebar-list ' . $item['class'] . ($item['selected'] ? ' active' : '') . '"><a href="' . $item['link'] . '" class="' . $item['class'] . ($item['selected'] ? ' active' : '') . '">' . $item['title'] . '</a></li>';
} else {
echo '<li class="sidebar-title"><a>' . $item['title'] . '</a></li>';
}
if (!empty($menu)) {
foreach ($menu as $sub_item) {
echo '<li class="sidebar-list ' . $sub_item['class'] . ($sub_item['selected'] ? ' active' : '') . '"><a href="' . $sub_item['link'] . '" class="' . $sub_item['class'] . ($sub_item['selected'] ? ' active' : '') . '">' . $sub_item['title'] . '</a></li>';
}
}
}
?>
</ul>