public function getPageHTML()
 {
     // page object
     include_once 'Services/COPage/classes/class.ilPageObject.php';
     include_once 'Services/COPage/classes/class.ilPageObjectGUI.php';
     // if page does not exist, return nothing
     if (!ilPageObject::_exists('shop', self::SHOP_PAGE_EDITOR_PAGE_ID)) {
         return '';
     }
     include_once 'Services/Style/classes/class.ilObjStyleSheet.php';
     $this->tpl->setVariable('LOCATION_CONTENT_STYLESHEET', ilObjStyleSheet::getContentStylePath(0));
     // get page object
     $page_gui = new ilPageObjectGUI('shop', self::SHOP_PAGE_EDITOR_PAGE_ID);
     $page_gui->setIntLinkHelpDefault('StructureObject', self::SHOP_PAGE_EDITOR_PAGE_ID);
     $page_gui->setLinkXML('');
     $page_gui->setFileDownloadLink($this->ctrl->getLinkTargetByClass(array('ilpageobjectgui'), 'downloadFile'));
     $page_gui->setFullscreenLink($this->ctrl->getLinkTargetByClass(array('ilpageobjectgui'), 'displayMediaFullscreen'));
     $page_gui->setSourcecodeDownloadScript($this->ctrl->getLinkTargetByClass(array('ilpageobjectgui'), 'download_paragraph'));
     $page_gui->setPresentationTitle('');
     $page_gui->setTemplateOutput(false);
     $page_gui->setHeader('');
     $page_gui->setEnabledRepositoryObjects(false);
     $page_gui->setEnabledFileLists(true);
     $page_gui->setEnabledPCTabs(true);
     $page_gui->setEnabledMaps(true);
     return $page_gui->showPage();
 }
 /**
  * Show page
  *
  * @return	string	page output
  */
 function showPage()
 {
     global $tpl, $ilCtrl;
     $this->setTemplateOutput(false);
     $this->setPresentationTitle($this->getPageObject()->getTitle());
     $output = parent::showPage();
     return $output;
 }
Пример #3
0
 public function showPage()
 {
     $presentationTitlePossiblyWithHTML = $this->getPresentationTitle();
     $this->setPresentationTitle(self::TEMP_PRESENTATION_TITLE_PLACEHOLDER);
     $presentation = parent::showPage();
     $presentation = str_replace(self::TEMP_PRESENTATION_TITLE_PLACEHOLDER, $presentationTitlePossiblyWithHTML, $presentation);
     $presentation = preg_replace("/src=\"\\.\\//ims", "src=\"" . ILIAS_HTTP_PATH . "/", $presentation);
     return $presentation;
 }
 /**
  * Show the page
  */
 function showPage($a_mode = "preview")
 {
     global $tpl, $ilCtrl;
     $this->scorm_mode = $a_mode;
     $this->setTemplateOutput(false);
     $output = parent::showPage();
     return $output;
 }
 /**
  * Show page 
  */
 function showPage($a_no_title = false)
 {
     global $tpl, $ilCtrl;
     $this->setTemplateOutput(false);
     if (!$a_no_title) {
         $this->setPresentationTitle(ilMediaPoolItem::lookupTitle($this->getMediaPoolPage()->getId()));
     }
     $output = parent::showPage();
     return $output;
 }
Пример #6
0
 function showPage()
 {
     global $tpl, $ilCtrl;
     // content style
     /*		include_once("./Services/Style/classes/class.ilObjStyleSheet.php");
     		$tpl->setCurrentBlock("ContentStyle");
     		$tpl->setVariable("LOCATION_CONTENT_STYLESHEET",
     			ilObjStyleSheet::getContentStylePath(0));
     		$tpl->parseCurrentBlock();
     */
     $this->setTemplateOutput(false);
     $this->setPresentationTitle($this->getWikiPage()->getTitle());
     $this->increaseViewCount();
     $output = parent::showPage();
     return $output;
 }
 public function showPage()
 {
     global $ilCtrl, $lng;
     // :TODO: temporary legend of available placeholders
     if ($this->getOutputMode() == IL_PAGE_EDIT) {
         $legend = ilDataCollectionRecordViewViewdefinition::getAvailablePlaceholders($this->table_id);
         if (sizeof($legend)) {
             $this->setPrependingHtml(" <form action=" . $ilCtrl->getFormAction($this, "confirmDelete") . " method='post'> <input class='submit' type='submit' value='" . $lng->txt("dcl_empty_view") . "'></form> <span class=\"small\">" . $this->lng->txt("dcl_legend_placeholders") . ": " . implode(" ", $legend) . "</span>");
         }
     }
     return parent::showPage();
 }
Пример #8
0
 /**
  * Embedded posting in portfolio
  *
  * @return string
  */
 function showPage()
 {
     $this->setTemplateOutput(false);
     if (!$this->getAbstractOnly()) {
         $this->setPresentationTitle($this->getBlogPosting()->getTitle());
     }
     $this->getBlogPosting()->increaseViewCnt();
     return parent::showPage();
 }
 /**
  * Show page
  *
  * @return	string	page output
  */
 function showPage()
 {
     global $ilUser;
     if (!$this->getPageObject()) {
         return;
     }
     switch ($this->getPageObject()->getType()) {
         case ilPortfolioPage::TYPE_BLOG:
             return $this->renderBlog($ilUser->getId(), (int) $this->getPageObject()->getTitle());
         default:
             $this->setTemplateOutput(false);
             // $this->setPresentationTitle($this->getPageObject()->getTitle());
             $output = parent::showPage();
             return $output;
     }
 }
Пример #10
0
 /**
  * Compares two revisions of the page
  */
 function compareVersion()
 {
     global $lng;
     if (!$this->getEnableEditing()) {
         return;
     }
     $tpl = new ilTemplate("tpl.page_compare.html", true, true, "Services/COPage");
     $compare = $this->obj->compareVersion($_POST["left"], $_POST["right"]);
     // left page
     $lpage = $compare["l_page"];
     $lpage_gui = new ilPageObjectGUI($lpage->getParentType(), 0);
     $cfg = $lpage_gui->getPageConfig();
     $cfg->setPreventHTMLUnmasking(true);
     $lpage_gui->setOutputMode(IL_PAGE_PREVIEW);
     $lpage_gui->setPageObject($lpage);
     $lpage_gui->setPresentationTitle($this->getPresentationTitle());
     $lpage_gui->setCompareMode(true);
     $lhtml = $lpage_gui->showPage();
     $lhtml = $this->replaceDiffTags($lhtml);
     $lhtml = str_replace("&lt;br /&gt;", "<br />", $lhtml);
     $tpl->setVariable("LEFT", $lhtml);
     // right page
     $rpage = $compare["r_page"];
     $rpage_gui = new ilPageObjectGUI($rpage->getParentType(), 0);
     $cfg = $rpage_gui->getPageConfig();
     $cfg->setPreventHTMLUnmasking(true);
     $rpage_gui->setOutputMode(IL_PAGE_PREVIEW);
     $rpage_gui->setPageObject($rpage);
     $rpage_gui->setPresentationTitle($this->getPresentationTitle());
     $rpage_gui->setCompareMode(true);
     $rhtml = $rpage_gui->showPage();
     $rhtml = $this->replaceDiffTags($rhtml);
     $rhtml = str_replace("&lt;br /&gt;", "<br />", $rhtml);
     $tpl->setVariable("RIGHT", $rhtml);
     $tpl->setVariable("TXT_NEW", $lng->txt("cont_pc_new"));
     $tpl->setVariable("TXT_MODIFIED", $lng->txt("cont_pc_modified"));
     $tpl->setVariable("TXT_DELETED", $lng->txt("cont_pc_deleted"));
     //var_dump($left);
     //var_dump($right);
     return $tpl->get();
 }
 private function __getAbstractHTML($a_payment_object_id)
 {
     // page object
     include_once 'Services/COPage/classes/class.ilPageObject.php';
     include_once 'Services/COPage/classes/class.ilPageObjectGUI.php';
     // if page does not exist, return nothing
     if (!ilPageObject::_exists('shop', $a_payment_object_id)) {
         return '';
     }
     include_once 'Services/Style/classes/class.ilObjStyleSheet.php';
     // get page object
     $page_gui = new ilPageObjectGUI('shop', $a_payment_object_id);
     $page_gui->setIntLinkHelpDefault('StructureObject', $a_payment_object_id);
     $page_gui->setLinkXML('');
     $page_gui->setFileDownloadLink($this->ctrl->getLinkTargetByClass('ilPageObjectGUI', 'downloadFile'));
     $page_gui->setFullscreenLink($this->ctrl->getLinkTargetByClass('ilPageObjectGUI', 'displayMediaFullscreen'));
     $page_gui->setSourcecodeDownloadScript($this->ctrl->getLinkTargetByClass('ilPageObjectGUI', 'download_paragraph'));
     $page_gui->setPresentationTitle('');
     $page_gui->setTemplateOutput(false);
     $page_gui->setHeader('');
     $page_gui->setEnabledRepositoryObjects(false);
     $page_gui->setEnabledFileLists(false);
     $page_gui->setEnabledPCTabs(true);
     $page_gui->setEnabledMaps(true);
     return $page_gui->showPage();
 }
 /**
  * Show page
  *
  * @return	string	page output
  */
 function showPage()
 {
     global $tpl, $ilCtrl, $ilUser;
     if (!$this->getPageObject()) {
         return;
     }
     // render blog directly
     if ($this->getPageObject()->getType() == ilPortfolioPage::TYPE_BLOG) {
         return $this->renderBlog($ilUser->getId(), (int) $this->getPageObject()->getTitle());
     }
     $this->setTemplateOutput(false);
     // $this->setPresentationTitle($this->getPageObject()->getTitle());
     $output = parent::showPage();
     return $output;
 }
 /**
  * Get HTML of ILIAS login page editor
  * @return string html
  */
 protected function getLoginPageEditorHTML()
 {
     global $lng, $tpl;
     include_once './Services/Authentication/classes/class.ilAuthLoginPageEditorSettings.php';
     $lpe = ilAuthLoginPageEditorSettings::getInstance();
     $active_lang = $lpe->getIliasEditorLanguage($lng->getLangKey());
     if (!$active_lang) {
         return '';
     }
     // if page does not exist, return nothing
     include_once './Services/COPage/classes/class.ilPageUtil.php';
     if (!ilPageUtil::_existsAndNotEmpty('auth', ilLanguage::lookupId($active_lang))) {
         return '';
     }
     include_once './Services/COPage/classes/class.ilPageObject.php';
     include_once './Services/COPage/classes/class.ilPageObjectGUI.php';
     include_once "./Services/Style/classes/class.ilObjStyleSheet.php";
     $tpl->setVariable("LOCATION_CONTENT_STYLESHEET", ilObjStyleSheet::getContentStylePath(0));
     $tpl->setCurrentBlock("SyntaxStyle");
     $tpl->setVariable("LOCATION_SYNTAX_STYLESHEET", ilObjStyleSheet::getSyntaxStylePath());
     $tpl->parseCurrentBlock();
     // get page object
     $page_gui = new ilPageObjectGUI('auth', ilLanguage::lookupId($active_lang));
     /*
     		include_once("./Services/Style/classes/class.ilObjStyleSheet.php");
     		$page_gui->setStyleId(ilObjStyleSheet::getEffectiveContentStyleId(
     			$this->object->getStyleSheetId(), $this->object->getType()));
     */
     include_once "./Services/Style/classes/class.ilObjStyleSheet.php";
     $page_gui->setStyleId(0, 'auth');
     $page_gui->setIntLinkHelpDefault("RepositoryItem", $active_lang);
     //$page_gui->setFileDownloadLink($this->ctrl->getLinkTarget($this, "downloadFile"));
     //$page_gui->setFullscreenLink($this->ctrl->getLinkTarget($this, "showMediaFullscreen"));
     //$page_gui->setLinkParams($this->ctrl->getUrlParameterString()); // todo
     //		$page_gui->setSourcecodeDownloadScript($this->ctrl->getLinkTarget($this, ""));
     $page_gui->setPresentationTitle("");
     $page_gui->setTemplateOutput(false);
     $page_gui->setHeader("");
     $page_gui->setEnabledRepositoryObjects(true);
     $page_gui->setEnabledLoginPage(true);
     $page_gui->setEnabledFileLists(false);
     $page_gui->setEnabledPCTabs(false);
     $page_gui->setEnabledMaps(true);
     $ret = $page_gui->showPage();
     return $ret;
 }
 public function showPage()
 {
     global $lng, $ilToolbar;
     /**
      * @var $ilToolbar ilToolbarGUI
      */
     // :TODO: temporary legend of available placeholders
     if ($this->getOutputMode() == IL_PAGE_EDIT) {
         $delete_button = ilLinkButton::getInstance();
         $delete_button->setCaption('dcl_empty_view');
         $delete_button->setUrl($this->ctrl->getLinkTarget($this, 'confirmDelete'));
         $ilToolbar->addButtonInstance($delete_button);
         $activation_button = ilLinkButton::getInstance();
         if ($this->getPageObject()->getActive()) {
             $activation_button->setCaption('dcl_deactivate_view');
             $activation_button->setUrl($this->ctrl->getLinkTarget($this, 'deactivate'));
         } else {
             $activation_button->setCaption('dcl_activate_view');
             $activation_button->setUrl($this->ctrl->getLinkTarget($this, 'activate'));
         }
         $ilToolbar->addButtonInstance($activation_button);
         $legend = ilDataCollectionRecordViewViewdefinition::getAvailablePlaceholders($this->table_id);
         if (sizeof($legend)) {
             $this->setPrependingHtml("<span class=\"small\">" . $this->lng->txt("dcl_legend_placeholders") . ": " . implode(" ", $legend) . "</span>");
         }
     }
     return parent::showPage();
 }