1: <?php
 2:  3:  4:  5:  6:  7:  8:  9: 10: 11: 12: 13: 14: 
15: 
16: defined('CON_FRAMEWORK') || die('Illegal call: Missing framework initialization - request aborted.');
17: 
18: 19: 20: 21: 22: 23: 
24: abstract class cContentTypeAbstractTabbed extends cContentTypeAbstract {
25: 
26:     27: 28: 29: 30: 31: 
32:     protected function (array $tabs) {
33:         $template = new cTemplate();
34: 
35:         
36:         foreach ($tabs as $id => $name) {
37:             $template->set('d', 'TAB_ID', $id);
38:             $template->set('d', 'TAB_NAME', $name);
39:             $template->next();
40:         }
41:         $code = $template->generate($this->_cfg['path']['contenido'] . 'templates/standard/template.cms_abstract_tabbed_edit_tab_menu.html', true);
42: 
43:         return $this->_encodeForOutput($code);
44:     }
45: 
46:     47: 48: 49: 50: 
51:     protected function _generateActionCode() {
52:         $template = new cTemplate();
53: 
54:         $template->set('s', 'CON_PATH', $this->_cfg['path']['contenido_fullhtml']);
55:         $code = $template->generate($this->_cfg['path']['contenido'] . 'templates/standard/template.cms_abstract_tabbed_edit_action.html', true);
56: 
57:         return $this->_encodeForOutput($code);
58:     }
59: 
60: }