コード例 #1
0
ファイル: memultiratings.php プロジェクト: AxelFG/ckbran-inf
 function getTmplObjectList($type)
 {
     $result = array();
     $layouts_path = MRtemplates::getTmplPath($type);
     $tmpl_mask = MRtemplates::getTmplMask($type);
     $files = JFolder::files($layouts_path, $tmpl_mask['index_file']);
     foreach ($files as $key => $file) {
         $tmplnames[] = '<b>' . preg_replace($tmpl_mask['ident'], '', $file) . '</b>';
     }
     return $tmplnames;
 }
コード例 #2
0
ファイル: mersubtmpls.php プロジェクト: AxelFG/ckbran-inf
 function getTmplObjectList($type)
 {
     $app = JFactory::getApplication();
     $result = array();
     $layouts_path = MRtemplates::getTmplPath($type);
     $tmpl_mask = MRtemplates::getTmplMask($type);
     $files = JFolder::files($layouts_path, $tmpl_mask['index_file']);
     $exclude = explode(',', $this->element['exclude']);
     $md5id = $this->_getKey();
     foreach ($files as $key => $file) {
         $tmplname = preg_replace($tmpl_mask['ident'], '', $file);
         if (in_array($tmplname, $exclude)) {
             continue;
         }
         $result[] = JHTML::_('select.option', $tmplname . "." . $md5id, $tmplname);
     }
     return $result;
 }