/** * If an input_template_file was provided upon construction, uses that to layout the input. Otherwise uses parent. * @see EE_DIv_Per_Section_Layout::layout_input() for documentation * @param EE_Form_Input_Base $input * @return string */ public function layout_input($input) { if ($this->_input_template_file) { EE_Registry::instance()->load_helper('Template'); return EEH_Template::locate_template($this->_input_template_file, array('input' => $input), TRUE, TRUE); } return parent::layout_input($input); }
/** * If an input_template_file was provided upon construction, uses that to layout the input. Otherwise uses parent. * @see EE_DIv_Per_Section_Layout::layout_input() for documentation * @param EE_Form_Input_Base $input * @return string */ public function layout_input($input) { if ($this->_input_template_file) { return EEH_Template::locate_template($this->_input_template_file, array('input' => $input), TRUE, TRUE); } return parent::layout_input($input); }