本文整理汇总了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();
}