Ejemplo n.º 1
0
 /**
  * Prepare the document
  */
 protected function prepareDocument()
 {
     // Escape strings for HTML output
     $this->pageclass_sfx = htmlspecialchars($this->params->get('pageclass_sfx'));
     // Prepare page heading
     $this->preparePageHeading();
     // Prepare page heading
     $this->preparePageTitle();
     if ($this->params->get('menu-meta_description')) {
         $this->document->setDescription($this->params->get('menu-meta_description'));
     } else {
         $this->document->setDescription($this->item->short_desc);
     }
     if ($this->params->get('menu-meta_keywords')) {
         $this->document->setMetadata('keywords', $this->params->get('menu-meta_keywords'));
     }
     if ($this->params->get('robots')) {
         $this->document->setMetadata('robots', $this->params->get('robots'));
     }
     // Breadcrumb
     $pathway = $this->app->getPathWay();
     $currentBreadcrumb = JHtmlString::truncate($this->item->title, 16);
     $pathway->addItem($currentBreadcrumb, '');
     // Scripts
     JHtml::_('bootstrap.framework');
     $this->document->addScript('media/' . $this->option . '/js/site/backing.js');
 }