本文整理汇总了PHP中gpPlugin::css方法的典型用法代码示例。如果您正苦于以下问题:PHP gpPlugin::css方法的具体用法?PHP gpPlugin::css怎么用?PHP gpPlugin::css使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类gpPlugin
的用法示例。
在下文中一共展示了gpPlugin::css方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct()
{
global $dataDir, $page, $addonFolderName, $langmessage;
if (defined('multi_site_unique')) {
message($langmessage['not root install']);
return;
}
gpPlugin::css('multi_site.less', false);
//$page->css_user[] = '/data/_addoncode/'.$addonFolderName.'/multi_site.css';
//$page->head_js[] = '/data/_addoncode/'.$addonFolderName.'/multi_site.js';
$page->head_js[] = '/include/js/admin_users.js';
$page->admin_links[] = array('Admin_Site_Setup', 'Multi-Site Home');
$page->admin_links[] = array('Admin_Site_Setup', 'New Installation', 'cmd=new');
$page->admin_links[] = array('Admin_Site_Setup', 'Settings', 'cmd=settings');
$page->admin_links[] = array('Admin_Site_Setup', 'About', 'cmd=about');
$_REQUEST += array('install' => array());
//ftp setup
$this->GetSiteData();
$hide = false;
$cmd = common::GetCommand();
switch ($cmd) {
case 'about':
$this->About(true);
$hide = true;
break;
case 'installed':
$this->ShowSites();
$hide = true;
break;
/* settings */
/* settings */
case 'settings':
$this->SettingsForm($this->siteData);
$hide = true;
break;
case 'Save Settings':
if (!$this->SaveSettings()) {
$this->SettingsForm($_POST);
$hide = true;
}
break;
case 'save_options':
case 'options':
$this->Options($cmd);
$hide = true;
break;
case 'uninstall':
$this->UninstallSite();
break;
/*
* New Installation
*/
/*
* New Installation
*/
case 'new':
case 'Install Now':
case 'new_plugins':
case 'new_install':
case 'new_destination':
case 'new_themes':
case 'Continue':
$this->InstallStatus($cmd);
$hide = true;
break;
case 'subfolder':
$this->SubFolder();
$this->InstallStatus($cmd);
$hide = true;
break;
case 'expandfolder':
$this->ExpandFolder();
$hide = true;
return;
case 'newfolder':
$this->NewFolder();
$hide = true;
break;
case 'Delete Folder':
$hide = true;
$this->RemoveDir();
break;
case 'rmdir':
$hide = true;
$this->RemoveDirPrompt();
break;
}
if (!$hide) {
$this->FrontPage();
}
}