コード例 #1
0
ファイル: pagination.php プロジェクト: Rus1an/plazart
 /**
  * Return the pagination footer.
  *
  * @return  string   Pagination footer.
  *
  * @since   11.1
  */
 public function getListFooter()
 {
     $app = JFactory::getApplication();
     $list = array();
     $list['prefix'] = $this->prefix;
     $list['limit'] = $this->limit;
     $list['limitstart'] = $this->limitstart;
     $list['total'] = $this->total;
     $list['limitfield'] = $this->getLimitBox();
     $list['pagescounter'] = $this->getPagesCounter();
     $list['pageslinks'] = $this->getPagesLinks();
     // Plazart: detect if chrome pagination.php in template or in plugin
     $chromePath = PlazartPath::getPath('html/pagination.php');
     //$chromePath = JPATH_THEMES . '/' . $app->getTemplate() . '/html/pagination.php';
     if (file_exists($chromePath)) {
         include_once $chromePath;
         if (function_exists('pagination_list_footer')) {
             return pagination_list_footer($list);
         }
     }
     return $this->_list_footer($list);
 }
コード例 #2
0
ファイル: template.php プロジェクト: Rus1an/plazart
 /**
  * Load block content
  *
  * @param $block string
  *     Block name - the real block is tpls/blocks/[blockname].php
  *
  * @return string Block content
  */
 function loadLayout($layout)
 {
     $path = PlazartPath::getPath('layouts/' . $layout . '.php', 'layouts/default.php');
     if (is_file($path)) {
         include $path;
     } else {
         echo "<div class=\"error\">Layout [{$layout}] or [Default] not found!</div>";
     }
 }