コード例 #1
0
 /**
  * Generate macro output
  *
  * @return     string
  */
 public function render()
 {
     // check if we can render
     if (!parent::canRender()) {
         return \Lang::txt('[This macro is designed for Groups only]');
     }
     // add required helper lib
     require_once PATH_CORE . DS . 'components' . DS . 'com_groups' . DS . 'helpers' . DS . 'pages.php';
     // get default home page
     $html = \Components\Groups\Helpers\Pages::getDefaultHomePage($this->group);
     //return rendered events
     return $html;
 }