Пример #1
0
 /**
  * Starts the section by putting its record on a section stack.
  *
  * @param Array $section The section record.
  */
 protected function _sectionStart(array &$section)
 {
     self::_addSection($section);
     if (!is_null($section['node']->get('call:use'))) {
         $this->_compiler->setConversion('##simplevar_' . $section['node']->get('call:use'), $section['name']);
     }
     // Populate the debug console.
     if ($this->_tpl->debugConsole) {
         if (isset($section['datasource'])) {
             $parent = '<em>Datasource</em>';
         } elseif (!is_null($section['parent'])) {
             $parent = $section['parent'];
         } else {
             $parent = '-';
         }
         Opt_Support::addSection($section['name'], $parent, (string) $section['format'], $section['node']->getXmlName());
     }
 }