当前位置: 首页>>代码示例>>PHP>>正文


PHP Theme::GetMenu方法代码示例

本文整理汇总了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');
开发者ID:abbeet,项目名称:server39,代码行数:31,代码来源:sessions_page.php

示例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');
    ?>
开发者ID:abbeet,项目名称:server39,代码行数:31,代码来源:homepage_dashboard.php

示例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');
开发者ID:abbeet,项目名称:server39,代码行数:31,代码来源:transition_page.php

示例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 
开发者ID:abbeet,项目名称:server39,代码行数:31,代码来源:header.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');
开发者ID:abbeet,项目名称:server39,代码行数:31,代码来源:stats_page.php

示例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');
开发者ID:abbeet,项目名称:server39,代码行数:31,代码来源:template_page.php

示例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>
开发者ID:abbeet,项目名称:server39,代码行数:31,代码来源:dataset_dataentry_page.php

示例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>
开发者ID:fignew,项目名称:xibo-cms,代码行数:31,代码来源:header.php


注:本文中的Theme::GetMenu方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。