本文整理汇总了PHP中AdminUIHelper::showAdminMenu方法的典型用法代码示例。如果您正苦于以下问题:PHP AdminUIHelper::showAdminMenu方法的具体用法?PHP AdminUIHelper::showAdminMenu怎么用?PHP AdminUIHelper::showAdminMenu使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AdminUIHelper
的用法示例。
在下文中一共展示了AdminUIHelper::showAdminMenu方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: startAdminArea
/**
* Start the administrator area table
*
* The entire administrator area with contained in a table which include the admin ribbon menu
* in the left column and the content in the right column. This function sets up the table and
* displayes the admin menu in the left column.
*/
static function startAdminArea($vmView, $selectText = 'COM_VIRTUEMART_DRDOWN_AVA2ALL')
{
if (JRequest::getWord('format') == 'pdf') {
return;
}
if (JRequest::getWord('tmpl') == 'component') {
self::$backEnd = false;
}
if (self::$vmAdminAreaStarted) {
return;
}
self::$vmAdminAreaStarted = true;
$front = JURI::root(true) . '/components/com_virtuemart/assets/';
$admin = JURI::root(true) . '/administrator/components/com_virtuemart/assets/';
$document = JFactory::getDocument();
//loading defaut admin CSS
$document->addStyleSheet($admin . 'css/admin_ui.css');
//$document->addStyleSheet($admin.'css/admin_menu.css');
$document->addStyleSheet($admin . 'css/admin.styles.css');
$document->addStyleSheet($admin . 'css/toolbar_images.css');
$document->addStyleSheet($admin . 'css/menu_images.css');
$document->addStyleSheet($front . 'css/chosen.css');
$document->addStyleSheet($front . 'css/vtip.css');
$document->addStyleSheet($front . 'css/jquery.fancybox-1.3.4.css');
$document->addStyleSheet($front . 'css/ui/jquery.ui.all.css');
//$document->addStyleSheet($admin.'css/jqtransform.css');
//loading defaut script
$document->addScript($front . 'js/fancybox/jquery.mousewheel-3.0.4.pack.js');
$document->addScript($front . 'js/fancybox/jquery.easing-1.3.pack.js');
$document->addScript($front . 'js/fancybox/jquery.fancybox-1.3.4.pack.js');
$document->addScript($admin . 'js/jquery.coookie.js');
$document->addScript($front . 'js/chosen.jquery.min.js');
$document->addScript($admin . 'js/vm2admin.js');
$vm2string = "editImage: 'edit image',select_all_text: '" . JText::_('COM_VIRTUEMART_DRDOWN_SELALL') . "',select_some_options_text: '" . JText::_($selectText) . "'";
$document->addScriptDeclaration("\n//<![CDATA[\n\t\tvar tip_image='" . JURI::root(true) . "/components/com_virtuemart/assets/js/images/vtip_arrow.png';\n\t\tvar vm2string ={" . $vm2string . "} ;\n\t\t jQuery( function(\$) {\n\n\t\t\t\$('dl#system-message').hide().slideDown(400);\n\t\t\t\$('.virtuemart-admin-area .toggler').vm2admin('toggle');\n\t\t\t\$('#admin-ui-menu').vm2admin('accordeon');\n\t\t\tif ( \$('#admin-ui-tabs').length ) {\n\n\t\t\t\t\$('#admin-ui-tabs').vm2admin('tabs',virtuemartcookie).find('select').chosen({enable_select_all: true,select_all_text : vm2string.select_all_text,select_some_options_text:vm2string.select_some_options_text}); \n\t\t\t}\n\n\t\t\t\$('#content-box [title]').vm2admin('tips',tip_image);\n\t\t\t\$('.modal').fancybox();\n\t\t\t\$('.reset-value').click( function(e){\n\t\t\t\te.preventDefault();\n\t\t\t\tnone = '';\n\t\t\t\tjQuery(this).parent().find('.ui-autocomplete-input').val(none);\n\t\t\t\t\n\t\t\t});\n\n\t\t});\n//]]>\n\t\t");
?>
<?php
if (!self::$backEnd) {
echo '<div class="toolbar" style="height: 84px;position: relative;">' . vmView::getToolbar($vmView) . '</div>';
}
?>
<div class="virtuemart-admin-area">
<?php
// Include ALU System
if (self::$backEnd) {
?>
<div class="menu-wrapper">
<a href="index.php?option=com_virtuemart&view=virtuemart" ><div class="menu-vmlogo"></div></a>
<?php
AdminUIHelper::showAdminMenu();
?>
<div class="menu-notice">
<?php
echo "VirtueMart " . VmConfig::getInstalledVersion();
?>
</div>
</div>
<?php
}
?>
<div id="admin-content-wrapper">
<div class="toggler vmicon-show"></div>
<div id="admin-content" class="admin-content">
<?php
}
示例2: startAdminArea
/**
* Start the administrator area table
*
* The entire administrator area with contained in a table which include the admin ribbon menu
* in the left column and the content in the right column. This function sets up the table and
* displays the admin menu in the left column.
*/
static function startAdminArea($vmView, $selectText = 'COM_VIRTUEMART_DRDOWN_AVA2ALL')
{
if (vRequest::getCmd('format') == 'pdf') {
return;
}
if (vRequest::getCmd('manage', false)) {
self::$backEnd = false;
}
if (self::$vmAdminAreaStarted) {
return;
}
self::$vmAdminAreaStarted = true;
$admin = 'administrator/components/com_virtuemart/assets/css';
//loading defaut admin CSS
vmJsApi::css('admin_ui', $admin);
vmJsApi::css('admin.styles', $admin);
vmJsApi::css('toolbar_images', $admin);
vmJsApi::css('menu_images', $admin);
vmJsApi::css('vtip');
$view = vRequest::getCmd('view', 'virtuemart');
$modalJs = '';
if ($view != 'virtuemart') {
vmJsApi::css('chosen');
vmJsApi::css('jquery.fancybox-1.3.4');
vmJsApi::css('ui/jquery.ui.all');
$modalJs = "\$('.modal').fancybox();";
}
if ($view != 'virtuemart') {
vmJsApi::addJScript('fancybox/jquery.mousewheel-3.0.4.pack', false, false);
vmJsApi::addJScript('fancybox/jquery.easing-1.3.pack', false, false);
vmJsApi::addJScript('fancybox/jquery.fancybox-1.3.4.pack', false, false);
VmJsApi::chosenDropDowns();
}
vmJsApi::addJScript('/administrator/components/com_virtuemart/assets/js/jquery.coookie.js');
vmJsApi::addJScript('/administrator/components/com_virtuemart/assets/js/vm2admin.js');
//vmJsApi::addJScript ('vm.accordeon',"",true);
$vm2string = "editImage: 'edit image',select_all_text: '" . vmText::_('COM_VIRTUEMART_DRDOWN_SELALL') . "',select_some_options_text: '" . vmText::_($selectText) . "'";
vmJsApi::addJScript('vm.remindTab', "\r\r\n\t\tvar tip_image='" . JURI::root(true) . "/components/com_virtuemart/assets/js/images/vtip_arrow.png';\r\r\n\t\tvar vm2string ={" . $vm2string . "} ;\r\r\n\t\tjQuery( function(\$) {\r\r\n\r\r\n\t\t\tjQuery('dl#system-message').hide().slideDown(400);\r\r\n\t\t\tjQuery('.virtuemart-admin-area .toggler').vm2admin('toggle');\r\r\n\t\t\tjQuery('#admin-ui-menu').vm2admin('accordeon');\r\r\n\t\t\tif ( \$('#admin-ui-tabs').length ) {\r\r\n\t\t\t\t\$('#admin-ui-tabs').vm2admin('tabs',virtuemartcookie);\r\r\n\t\t\t}\r\r\n\t\t\t\$('#content-box [title]').vm2admin('tips',tip_image);\r\r\n\t\t\t" . $modalJs . "\r\r\n\t\t\t\$('.reset-value').click( function(e){\r\r\n\t\t\t\te.preventDefault();\r\r\n\t\t\t\tnone = '';\r\r\n\t\t\t\tjQuery(this).parent().find('.ui-autocomplete-input').val(none);\r\r\n\t\t\t});\r\r\n\t\t});\t");
?>
<!--[if lt IE 9]>
<script src="//ie7-js.googlecode.com/svn/version/2.1(beta4)/IE9.js"></script>
<![endif]-->
<?php
if (!self::$backEnd) {
//JToolBarHelper
$bar = JToolbar::getInstance('toolbar');
?>
<div class="toolbar-box" style="height: 84px;position: relative;"><?php
echo $bar->render();
?>
</div>
<?php
}
?>
<?php
$hideMenu = JFactory::getApplication()->input->cookie->getString('vmmenu', 'show') === 'hide' ? ' menu-collapsed' : '';
?>
<div class="virtuemart-admin-area<?php
echo $hideMenu;
?>
">
<div class="toggler vmicon-show<?php
echo $hideMenu;
?>
"></div>
<div class="menu-wrapper<?php
echo $hideMenu;
?>
" id="menu-wrapper">
<?php
if (!empty($vmView->langList)) {
?>
<div class="vm-lang-list-container">
<?php
echo $vmView->langList;
?>
</div>
<?php
} else {
?>
<a href="index.php?option=com_virtuemart&view=virtuemart" ><img src="<?php
echo JURI::root(true) . '/administrator/components/com_virtuemart/assets/images/vm_menulogo.png';
?>
"></a>
<?php
}
AdminUIHelper::showAdminMenu($vmView);
?>
//.........这里部分代码省略.........
示例3: startAdminArea
/**
* Start the administrator area table
*
* The entire administrator area with contained in a table which include the admin ribbon menu
* in the left column and the content in the right column. This function sets up the table and
* displayes the admin menu in the left column.
*/
static function startAdminArea($backEnd = true)
{
if (JRequest::getWord('format') == 'pdf') {
return;
}
if (JRequest::getWord('tmpl') == 'component') {
self::$backEnd = false;
include 'front/edit.html.php';
}
if (self::$vmAdminAreaStarted) {
return;
}
self::$vmAdminAreaStarted = true;
$front = JURI::root(true) . '/components/com_virtuemart/assets/';
$admin = JURI::root(true) . '/administrator/components/com_virtuemart/assets/';
$document = JFactory::getDocument();
//loading defaut admin CSS
// $document->addStyleSheet($admin.'css/admin_ui.css');
// $document->addStyleSheet($admin.'css/admin_menu.css');
JHtml::_('bootstrap.framework');
if (JVM_VERSION === 2 || self::$backEnd === false) {
$document->addStyleSheet($front . 'css/ui/bootstrap.min.css');
// JHtml::_('bootstrap.loadCss') ;
JHtml::_('bootstrap.tooltip');
if (JVM_VERSION === 2) {
$document->addScript($admin . 'js/j25fixes.js');
}
$document->setMetadata('viewport', 'width=device-width, initial-scale=1.0');
JHtml::_('behavior.framework');
}
$document->addStyleSheet($admin . 'css/admin.styles.css');
$document->addStyleSheet($admin . 'css/toolbar_images.css');
$document->addStyleSheet($admin . 'css/menu_images.css');
$document->addStyleSheet($admin . 'css/fileinput.css');
// $document->addStyleSheet($front.'css/chosen.css');
// $document->addStyleSheet($front.'css/vtip.css');
$document->addStyleSheet($front . 'css/jquery.fancybox-1.3.4.css');
//$document->addStyleSheet($admin.'css/jqtransform.css');
//loading defaut script
JHtml::_('behavior.framework');
// JHtml::_('bootstrap.tooltip');
$document->addScript($front . 'js/fancybox/jquery.mousewheel-3.0.4.pack.js');
$document->addScript($front . 'js/fancybox/jquery.easing-1.3.pack.js');
$document->addScript($front . 'js/fancybox/jquery.fancybox-1.3.4.pack.js');
$document->addScript($admin . 'js/jquery.coookie.js');
// $document->addScript($front.'js/chosen.jquery.min.js');
JHtml::_('formbehavior.chosen', 'select');
$document->addScript($admin . 'js/vm2admin.js');
$document->addScript($admin . 'js/fileinput.js');
//$document->addScript($admin.'js/jquery.jqtransform.js');
if (JText::_('COM_VIRTUEMART_JS_STRINGS') == 'COM_VIRTUEMART_JS_STRINGS') {
$vm2string = "editImage: 'edit image',select_all_text: 'select all options',select_some_options_text: 'select some options'";
} else {
$vm2string = JText::_('COM_VIRTUEMART_JS_STRINGS');
}
//prevent joomlaJtext bug.
JText::script('JGLOBAL_SELECT_SOME_OPTIONS');
// old type image var tip_image='".JURI::root(true)."/components/com_virtuemart/assets/js/images/vtip_arrow.png';
// fix for jsonRequest in front admin
$baseUrlCurrent = self::$backEnd === false ? '/' : '/administrator/';
$document->addScriptDeclaration("\n//<![CDATA[\n\t\tvar vmBaseUrl = '" . JURI::root(true) . $baseUrlCurrent . "';\n\t\tvar vm2string ={" . $vm2string . "} ;\n\t\t jQuery( function(\$) {\n\n\t\t\t\$('dl#system-message').hide().slideDown(400);\n\t\t\t\$('.virtuemart-admin-area .toggler').vm2admin('toggle');\n\t\t\t\$('#admin-ui-menu').vm2admin('accordeon');\n\t\t\t// if ( \$('#adminForm > ul').length ) {\n\t\t\t\t// \$('#adminForm > ul').vm2admin('tabs',virtuemartcookie);\n\t\t\t\t//.find('select').chosen({enable_select_all: true,select_all_text : vm2string.select_all_text,select_some_options_text:vm2string.select_some_options_text}); \n\t\t\t// }\n\n\t\t\t// TIPS IS now from bootstrap \$('#content-box [title]').vm2admin('tips',tip_image);\n\t\t\tjQuery('.hasTip').tooltip({});\n\n\t\t\t\$('.fb-modal-toggle,.modalbox').fancybox();\n\t\t\t// \$('.modal').modal();\n\t\t\t\$('.reset-value').click( function(e){\n\t\t\t\te.preventDefault();\n\t\t\t\tnone = '';\n\t\t\t\tjQuery(this).parent().find('.ui-autocomplete-input').val(none);\n\t\t\t\t\n\t\t\t});\n\n\t\t});\n//]]>\n\t\t");
?>
<?php
// Include ALU System
if (self::$backEnd) {
require_once JPATH_VM_ADMINISTRATOR . DS . 'liveupdate' . DS . 'liveupdate.php';
?>
<div class="vm2admin">
<div class="row-fluid">
<div class="span12">
<div class="btn btn-large btn-inverse" id="sidebar-toggle"><i class="icon-chevron-left"></i></div>
<div class="span3 j-sidebar-container" id="j-sidebar-container">
<div class="well well-small"><a href="index.php?option=com_virtuemart&view=virtuemart" ><div class="menu-vmlogo"></div></a></div>
<?php
AdminUIHelper::showAdminMenu();
if ($admin = JFactory::getUser()->authorise('core.admin')) {
?>
<div class="menu-notice hidden-phone">
<?php
echo LiveUpdate::getIcon(array(), 'notice');
?>
<?php
echo VmConfig::getInstalledVersion();
?>
</div>
<?php
}
?>
</div>
<?php
//.........这里部分代码省略.........