本文整理汇总了PHP中LeftAndMain::setApplicationName方法的典型用法代码示例。如果您正苦于以下问题:PHP LeftAndMain::setApplicationName方法的具体用法?PHP LeftAndMain::setApplicationName怎么用?PHP LeftAndMain::setApplicationName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类LeftAndMain
的用法示例。
在下文中一共展示了LeftAndMain::setApplicationName方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: define
<?php
define('LITECMS', basename(dirname(__FILE__)));
SSViewer::set_source_file_comments(false);
CMSMenu::remove_menu_item("CommentAdmin");
CMSMenu::remove_menu_item("ReportAdmin");
CMSMenu::remove_menu_item("SecurityAdmin");
CMSMenu::remove_menu_item("Help");
Object::add_extension('SiteConfig', 'LiteCMSBaseConfig');
Object::add_extension('LeftAndMain', 'LiteCMS');
Object::add_extension('SiteConfig', 'LiteCMSMaintenance');
Object::add_extension('Page', 'LiteCMSMaintenanceController_Decorator');
GD::set_default_quality(100);
LeftAndMain::setApplicationName("LiteCMS");
LeftAndMain::require_css('litecms/css/lite.css');
Image::add_extension('LiteCMSImage');
File::add_extension('LiteCMSAttachment');
示例2: array
// Default administrator account for the CMS
Security::setDefaultAdmin('admin', 'password');
// Theme should be located in /themes/<themename> (Default folder: '/themes/mysite')
SSViewer::set_theme('mysite');
// Recipe: Taggable
DataObject::add_extension('SiteTree', 'Taggable');
// Recipe: Redirection of legacy URLs
Director::addRules(1, array(
'$URLSegment//$Action/$ID/$OtherID' => 'CustomModelAsController',
));
// Recipe: Branding the CMS
LeftAndMain::setApplicationName(
'My Kiwi CMS',
'My Kiwi CMS',
'http://mykiwicms.com'
);
LeftAndMain::setLogo(
'mysite/images/kiwicmslogo.gif',
'width: 62px; height: 32px;'
);
LeftAndMain::set_loading_image(
'mysite/images/kiwicmslogo_loading.png'
);
LeftAndMain::require_css('mysite/css/kiwicms.css');
BlogEntry::$allow_wysiwyg_editing = true;
?>