function _displayNL2GocheckBox($data)
{
    global $xtPlugin, $xtLink, $db;
    $tpl = 'newsletter_checkbox.html';
    $tpl_data = array();
    $template = new Template();
    $template->getTemplatePath($tpl, 'xt_newsletter2go', '', 'plugin');
    $tmp_data = $template->getTemplate('xt_newsletter2go_smarty', $tpl, $tpl_data);
    return $tmp_data;
}
function _displayNL2GocheckBox($data)
{
    global $xtPlugin, $xtLink, $db;
    $table = TABLE_CUSTOMERS;
    $customer_id = $_SESSION['customer']->customers_id;
    $result = $db->getOne("SELECT nl2go_newsletter_status FROM {$table} WHERE customers_id= {$customer_id}");
    $tpl = 'newsletter_checkbox_checkout.html';
    $tpl_data = array('newsletter2go' => $result);
    $template = new Template();
    $template->getTemplatePath($tpl, 'xt_newsletter2go', '', 'plugin');
    $tmp_data = $template->getTemplate('xt_newsletter2go_smarty', $tpl, $tpl_data);
    return $tmp_data;
}
/**
* This function returns the complete directory path to a given template name
*
* @param mixed $sTemplateName
*/
function getTemplatePath($sTemplateName = false)
{
    return Template::getTemplatePath($sTemplateName);
}
Example #4
0
if (!empty($futureSurveys)) {
    $list .= "<div class=\"survey-list-heading\">" . gT("Following survey(s) are not yet active but you can register for them.") . "</div>";
    $list .= '<ul class="surveys-list future-surveys-list">';
    foreach ($futureSurveys as $survey) {
        $list .= CHtml::openTag('li');
        $list .= CHtml::link($survey->localizedTitle, array('survey/index', 'sid' => $survey->sid, 'lang' => App()->language), array('class' => 'surveytitle'));
        $list .= CHtml::closeTag('li');
        $list .= CHtml::tag('div', array('data-regformsurvey' => $survey->sid));
    }
}
if (empty($list)) {
    $list = CHtml::openTag('li', array('class' => 'surveytitle')) . gT("No available surveys") . CHtml::closeTag('li');
}
$data['surveylist'] = array("nosid" => "", "contact" => sprintf(gT("Please contact %s ( %s ) for further assistance."), Yii::app()->getConfig("siteadminname"), encodeEmail(Yii::app()->getConfig("siteadminemail"))), "listheading" => gT("The following surveys are available:"), "list" => $list);
$oTemplate = Template::model()->getInstance("default");
$data['templatedir'] = Template::getTemplatePath(Yii::app()->getConfig("defaulttemplate"));
$data['templateurl'] = Template::getTemplateURL(Yii::app()->getConfig("defaulttemplate")) . "/";
$data['templatename'] = $oTemplate->name;
$data['sitename'] = Yii::app()->getConfig("sitename");
$data['languagechanger'] = makeLanguageChanger(App()->language);
//A nice exit
sendCacheHeaders();
doHeader();
// Javascript Var
$aLSJavascriptVar = array();
$aLSJavascriptVar['bFixNumAuto'] = (int) (bool) Yii::app()->getConfig('bFixNumAuto', 1);
$aLSJavascriptVar['bNumRealValue'] = (int) (bool) Yii::app()->getConfig('bNumRealValue', 0);
if (isset($thissurvey['surveyls_numberformat'])) {
    $radix = getRadixPointData($thissurvey['surveyls_numberformat']);
} else {
    $aLangData = getLanguageData();
<?php

defined('_VALID_CALL') or die('Direct Access is not allowed.');
if ($_SESSION['selected_payment'] == 'xt_paymill') {
    $paymill = new xt_paymill();
    $tpl = $_SESSION['selected_payment_sub'] . '.html';
    $pluginTemplate = new Template();
    $pluginTemplate->getTemplatePath($tpl, 'xt_paymill', '', 'plugin');
    echo $pluginTemplate->getTemplate('', $tpl, $paymill->data);
}