本文整理匯總了PHP中ilObjStyleSheet::getPlaceHolderStylePath方法的典型用法代碼示例。如果您正苦於以下問題:PHP ilObjStyleSheet::getPlaceHolderStylePath方法的具體用法?PHP ilObjStyleSheet::getPlaceHolderStylePath怎麽用?PHP ilObjStyleSheet::getPlaceHolderStylePath使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類ilObjStyleSheet
的用法示例。
在下文中一共展示了ilObjStyleSheet::getPlaceHolderStylePath方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: __construct
function __construct($a_parent_type, $a_id = 0, $a_old_nr = 0, $a_slm_id = 0)
{
global $tpl, $ilCtrl;
parent::__construct($a_parent_type, $a_id, $a_old_nr);
//associated object
include_once "./Services/Style/classes/class.ilPageLayout.php";
$this->layout_object = new ilPageLayout($a_id);
$this->layout_object->readObject();
// content style
include_once "./Services/Style/classes/class.ilObjStyleSheet.php";
$tpl->setCurrentBlock("ContentStyle");
$tpl->setVariable("LOCATION_CONTENT_STYLESHEET", ilObjStyleSheet::getContentStylePath($this->layout_object->getStyleId()));
$tpl->parseCurrentBlock();
$tpl->setCurrentBlock("SyntaxStyle");
$tpl->setVariable("LOCATION_SYNTAX_STYLESHEET", ilObjStyleSheet::getSyntaxStylePath());
$tpl->setVariable("LOCATION_ADDITIONAL_STYLESHEET", ilObjStyleSheet::getPlaceHolderStylePath());
$tpl->parseCurrentBlock();
$this->setEnabledMaps(false);
$this->setPreventHTMLUnmasking(false);
$this->setEnabledInternalLinks(false);
$this->setEnabledSelfAssessment(false);
$this->setStyleId($this->layout_object->getStyleId());
//set For GUI and associated object
$this->setLayoutMode(true);
$this->obj->setLayoutMode(true);
$this->slm_id = $a_slm_id;
}
示例2: showPage
function showPage()
{
if (!$this->getPageObject()) {
return;
}
switch ($this->getPageObject()->getType()) {
case ilPortfolioTemplatePage::TYPE_BLOG_TEMPLATE:
return $this->renderBlogTemplate();
default:
// needed for placeholders
include_once "Services/Style/classes/class.ilObjStyleSheet.php";
$this->tpl->addCss(ilObjStyleSheet::getPlaceHolderStylePath());
return parent::showPage();
}
}
示例3: __construct
function __construct($a_parent_type, $a_id = 0, $a_old_nr = 0, $a_slm_id = 0)
{
global $tpl, $ilCtrl;
parent::__construct($a_parent_type, $a_id, $a_old_nr);
//associated object
include_once "./Services/Style/classes/class.ilPageLayout.php";
$this->layout_object = new ilPageLayout($a_id);
$this->layout_object->readObject();
// content style
include_once "./Services/Style/classes/class.ilObjStyleSheet.php";
$tpl->setCurrentBlock("ContentStyle");
$tpl->setVariable("LOCATION_CONTENT_STYLESHEET", ilObjStyleSheet::getContentStylePath($this->layout_object->getStyleId()));
$tpl->parseCurrentBlock();
$tpl->setCurrentBlock("SyntaxStyle");
$tpl->setVariable("LOCATION_SYNTAX_STYLESHEET", ilObjStyleSheet::getSyntaxStylePath());
$tpl->setVariable("LOCATION_ADDITIONAL_STYLESHEET", ilObjStyleSheet::getPlaceHolderStylePath());
$tpl->parseCurrentBlock();
$this->setStyleId($this->layout_object->getStyleId());
$this->slm_id = $a_slm_id;
}
示例4: setContentStyle
/**
* Set content style sheet
*/
function setContentStyle()
{
global $tpl;
// content styles
include_once "./Services/Style/classes/class.ilObjStyleSheet.php";
$tpl->setCurrentBlock("ContentStyle");
$tpl->setVariable("LOCATION_CONTENT_STYLESHEET", ilObjStyleSheet::getContentStylePath($this->slm_object->getStyleSheetId()));
$tpl->setVariable("LOCATION_ADDITIONAL_STYLESHEET", ilObjStyleSheet::getPlaceHolderStylePath());
$tpl->parseCurrentBlock();
$tpl->setCurrentBlock("SyntaxStyle");
$tpl->setVariable("LOCATION_SYNTAX_STYLESHEET", ilObjStyleSheet::getSyntaxStylePath());
$tpl->parseCurrentBlock();
}