File: //opt/cpanel/ea-php54/root/usr/share/pear/RVSeagullMod/modules/faqweb/www/FaqwebComponentOutput.php
<?php
class FaqwebComponentOutput
{
function showSearchBox($view = null)
{
$view = ($view) ? $view : new SGL_Output();
$masterTemplate = 'searchBox.tpl';
$flexy = new HTML_Template_Flexy(array('templateDir' => $view->componenThemePath));
$ok = $flexy->compile($masterTemplate);
$elements = ( isset($this->flexyElements) && is_array($this->flexyElements)) ? $this->flexyElements
: array();
$data = $flexy->bufferedOutputObject($view, $elements);
echo $data;
}
function makeShorterText($thema = '', $lang='') {
echo PMF_Utils::makeShorterText(PMF_htmlentities($thema, ENT_QUOTES, $lang), 8);
}
/**
* //__CLASS__ = FaqwebComponentOutput
//__FILE__ = {PUBLISH_PATH}/faqweb/FaqwebComponentOutput.php
*
* @param $view
* @return unknown_type
*/
function includeSubTemplate($view = null)
{
$view = ($view) ? $view : new SGL_Output();
$masterTemplate = $view->IncluudeTemplate;
$options = array(
'templateDir' => $view->componenThemePath,
'plugins' => array(
__CLASS__ => __FILE__,
),
);
$flexy = new HTML_Template_Flexy($options);
$ok = $flexy->compile($masterTemplate);
$elements = ( isset($this->flexyElements) && is_array($this->flexyElements)) ? $this->flexyElements
: array();
$data = $flexy->bufferedOutputObject($view, $elements);
echo $data;
}
}
?>