Example #1
1
/**
 * Smarty function
 * -------------------------------------------------------------
 * Purpose: eval given string
 * add [{ oxeval var="..." }] where you want to display content
 * -------------------------------------------------------------
 *
 * @param array  $aParams  parameters to process
 * @param smarty &$oSmarty smarty object
 *
 * @return string
 */
function smarty_function_oxeval($aParams, &$oSmarty)
{
    if ($aParams['var'] && $aParams['var'] instanceof oxField) {
        $aParams['var'] = trim($aParams['var']->getRawValue());
    }
    // processign only if enabled
    if (oxRegistry::getConfig()->getConfigParam('bl_perfParseLongDescinSmarty') || isset($aParams['force'])) {
        include_once $oSmarty->_get_plugin_filepath('function', 'eval');
        return smarty_function_eval($aParams, $oSmarty);
    }
    return $aParams['var'];
}
        ?>
      <b>Interfaces:</b><br />
      <?php 
        echo smarty_function_eval(array('var' => $this->_tpl_vars['compiledinterfaceindex']), $this);
        ?>

      <?php 
    }
    ?>

      <?php 
    if ($this->_tpl_vars['compiledclassindex']) {
        ?>
      <b>Classes:</b><br />
      <?php 
        echo smarty_function_eval(array('var' => $this->_tpl_vars['compiledclassindex']), $this);
        ?>

      <?php 
    }
    ?>
      <?php 
}
?>
    </td>
    <td>
      <table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top">

<?php 
if (!$this->_tpl_vars['hasel']) {
    echo smarty_function_assign(array('var' => 'hasel', 'value' => false), $this);
Example #3
0
 /**
  * Render output from template data
  * 
  * @param   string  $data		The template to render
  * @param	bool	$display	If rendered text should be output or returned
  * @return  string  Rendered output if $display was false
  **/
 function fetchFromData($tplSource, $display = false)
 {
     if (!function_exists('smarty_function_eval')) {
         require_once SMARTY_DIR . '/plugins/function.eval.php';
     }
     return smarty_function_eval(array('var' => $tplSource), $this);
 }
function smarty_modifier_attribute_data($value)
{
    cw_load('attributes');
    $data = "";
    $use_description =& cw_session_register('use_description', true);
    if (preg_match('/(\\w+)\\.name/', $value, $matches)) {
        // Get attribute name by field
        $field_name = $matches[1];
        if (!empty($field_name)) {
            $attribute_id = cw_attributes_get_attribute_by_field($field_name);
            $attribute = cw_func_call('cw_attributes_get_attribute', array('attribute_id' => $attribute_id));
            $data = $attribute['name'];
        }
    } else {
        if (preg_match('/(\\w+)\\.value/', $value, $matches)) {
            // Get attribute value by field
            global $product_filter;
            $pf =& $product_filter;
            $field_name = $matches[1];
            if ($pf && $field_name) {
                foreach ($pf as $pf_value) {
                    if ($pf_value['field'] == $field_name) {
                        if ($pf_value['selected']) {
                            foreach ($pf_value['selected'] as $pfs_value) {
                                if (isset($pf_value['values'][$pfs_value])) {
                                    $data = $pf_value['values'][$pfs_value]['name'];
                                }
                            }
                        }
                    }
                }
            }
        } else {
            if ($use_description && preg_match('/(\\w+)\\.description/', $value, $matches)) {
                // Get attribute value by field
                $field_name = $matches[1];
                if (!empty($field_name)) {
                    global $smarty;
                    $attribute_id = cw_attributes_get_attribute_by_field($field_name);
                    $attribute = cw_func_call('cw_attributes_get_attribute', array('attribute_id' => $attribute_id));
                    $use_description = false;
                    require_once $smarty->_get_plugin_filepath('function', 'eval');
                    $data = smarty_function_eval(array('var' => $attribute['description']), $smarty);
                    $use_description = true;
                }
            }
        }
    }
    return $data;
}
Example #5
0
 /**
  * Renders output from template data
  *
  * @param string  $tplSource The template to render
  * @param bool    $display   If rendered text should be output or returned
  * @param null    $vars
  *
  * @return string Rendered output if $display was false
  */
 function fetchFromData($tplSource, $display = false, $vars = null)
 {
     if (!function_exists('smarty_function_eval')) {
         require_once SMARTY_DIR . '/plugins/function.eval.php';
     }
     if (isset($vars)) {
         $oldVars = $this->_tpl_vars;
         $this->assign($vars);
         $out = smarty_function_eval(array('var' => $tplSource), $this);
         $this->_tpl_vars = $oldVars;
         return $out;
     }
     return smarty_function_eval(array('var' => $tplSource), $this);
 }
function smarty_function_morgos_side_box($params, &$smarty)
{
    if (array_key_exists('BoxTitle', $params)) {
        $title = trim($params['BoxTitle']);
    } elseif (array_key_exists('EvalBoxTitle', $params)) {
        $title = trim($params['EvalBoxTitle']);
        $valArray['var'] = '{' . $title . '}';
        $valArray['assign'] = null;
        include_once SMARTY_CORE_DIR . '../plugins/function.eval.php';
        $title = smarty_function_eval($valArray, $smarty);
        // not so clean
    } else {
        $smarty->trigger_error("Theme: error");
    }
    if (!array_key_exists('BoxContentFile', $params)) {
        $smarty->trigger_error("Theme: error");
    }
    $smarty->assign('BoxContent', $smarty->fetch($params['BoxContentFile']));
    $smarty->assign('BoxTitle', $title);
    $SideBox = $smarty->fetch('sidebox.tpl');
    return $SideBox;
}
     }
 }
 $products2 = array();
 if (!empty($message['products2'][0]['id'])) {
     foreach ($message['products2'] as $product) {
         $products2[] = cw_func_call('cw_product_get', array('id' => $product['id'], 'info_type' => 0));
     }
 }
 if ($products1 || $products2) {
     $smarty->assign('products1', $products1);
     $smarty->assign('products2', $products2);
 }
 // compile body
 $template = $message['body'];
 require_once $smarty->_get_plugin_filepath('function', 'eval');
 $compiled_body = smarty_function_eval(array('var' => $template), $smarty);
 // update newsletter
 if (!empty($message['news_id'])) {
     $news_id = cw_vertical_response_edit_message($list_id, $message['news_id'], $compiled_body, $message['subject']);
     if ($news_id) {
         cw_array2update('newsletter', array('news_id' => $news_id, 'updated_date' => cw_core_get_time(), 'subject' => $message['subject'], 'body' => $message['body'], 'allow_html' => 1), "news_id = '{$message['news_id']}'");
         $top_message['content'] = cw_get_langvar_by_name("msg_adm_news_message_upd");
     }
 } else {
     $news_id = cw_vertical_response_edit_message($list_id, 0, $compiled_body, $message['subject']);
     if ($news_id) {
         cw_array2insert('newsletter', array('news_id' => $news_id, 'list_id' => $list_id, 'send_date' => cw_core_get_time(), 'updated_date' => cw_core_get_time(), 'created_date' => cw_core_get_time(), 'subject' => $message['subject'], 'body' => $message['body'], 'allow_html' => 1, 'show_as_news' => 2));
         $message['news_id'] = $news_id;
         $top_message['content'] = cw_get_langvar_by_name("msg_adm_news_message_add");
     }
 }
                    <?php 
                        if (isset($this->_tpl_vars['field_defs'][$this->_tpl_vars['field']]['dependency']) && $this->_tpl_vars['field_defs'][$this->_tpl_vars['field']]['dependency']) {
                            ?>
                        <?php 
                            echo smarty_function_sugar_getimage(array('name' => "SugarLogic/icon_dependent", 'ext' => ".png", 'alt' => $this->_tpl_vars['mod_strings']['LBL_DEPENDANT'], 'other_attributes' => 'class="right_icon"'), $this);
                            ?>

                    <?php 
                        }
                        ?>
                                        <span id='le_label_<?php 
                        echo $this->_tpl_vars['idCount'];
                        ?>
'>
                    <?php 
                        echo smarty_function_eval(array('var' => $this->_tpl_vars['col']['label'], 'assign' => 'label'), $this);
                        ?>

                    <?php 
                        if (!empty($this->_tpl_vars['translate']) && !empty($this->_tpl_vars['col']['label'])) {
                            ?>
                        <?php 
                            echo smarty_function_sugar_translate(array('label' => $this->_tpl_vars['label'], 'module' => $this->_tpl_vars['language']), $this);
                            ?>

                    <?php 
                        } else {
                            ?>
		                <?php 
                            if (!empty($this->_tpl_vars['current_mod_strings'][$this->_tpl_vars['label']])) {
                                ?>
$_block_repeat = true;
smarty_block_tikimodule($this->_tag_stack[count($this->_tag_stack) - 1][1], null, $this, $_block_repeat);
while ($_block_repeat) {
    ob_start();
    ?>

<div id="<?php 
    echo $this->_tpl_vars['user_module_name'];
    ?>
" <?php 
    if ($_COOKIE[$this->_tpl_vars['user_module_name']] != 'c') {
        ?>
style="display:block;"<?php 
    } else {
        ?>
style="display:none;"<?php 
    }
    ?>
>
<?php 
    echo smarty_function_eval(array('var' => $this->_tpl_vars['user_data']), $this);
    ?>

</div>
<?php 
    $_block_content = ob_get_contents();
    ob_end_clean();
    $_block_repeat = false;
    echo smarty_block_tikimodule($this->_tag_stack[count($this->_tag_stack) - 1][1], $_block_content, $this, $_block_repeat);
}
array_pop($this->_tag_stack);
/**
 * Function to load and display dynamic content from the database.
 *
 * The URL is made up of parameters as supplied in the $params associative array.
 * 'controller' and 'action' are special parameters which indicate the controller
 * and action to call. Any other parameters are added as additional name / value
 * pairs.
 *
 * NOTICE: Works with Doctrine1
 *
 * @category   OSS
 * @package    OSS_Smarty
 * @subpackage Functions
 *
 * @param array $params An array of the parameters to make up the URL
 * @param Smarty $smarty A reference to the Smarty template object
 * @return string
 */
function smarty_function_dynamicContent($params, &$smarty)
{
    $dynamicContent = Doctrine::getTable('DynamicContent')->findByName($params['name']);
    return $dynamicContent[0]['content'] != '' ? smarty_function_eval(array('var' => $dynamicContent[0]['content']), $smarty) : '';
}
    <?php 
    echo smarty_function_eval(array('var' => is_array($_tmp = $this->_tpl_vars['preInfoStatusData']['html_text_mb']) ? $this->_run_mod_handler('emoji', true, $_tmp) : smarty_modifier_emoji($_tmp)), $this);
    ?>

<?php 
} else {
    ?>
    <?php 
    $_smarty_tpl_vars = $this->_tpl_vars;
    $this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['preHeader'], 'smarty_include_vars' => array()));
    $this->_tpl_vars = $_smarty_tpl_vars;
    unset($_smarty_tpl_vars);
    ?>
    </head>
    <?php 
    echo smarty_function_eval(array('var' => is_array($_tmp = $this->_tpl_vars['preInfoStatusData']['html_text_mb']) ? $this->_run_mod_handler('emoji', true, $_tmp) : smarty_modifier_emoji($_tmp)), $this);
    ?>

    <?php 
    $_smarty_tpl_vars = $this->_tpl_vars;
    $this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['preContentsMenu'], 'smarty_include_vars' => array()));
    $this->_tpl_vars = $_smarty_tpl_vars;
    unset($_smarty_tpl_vars);
    ?>
    <?php 
    $_smarty_tpl_vars = $this->_tpl_vars;
    $this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['easyLogin'], 'smarty_include_vars' => array()));
    $this->_tpl_vars = $_smarty_tpl_vars;
    unset($_smarty_tpl_vars);
    ?>
    <?php 
    <div class="modal hide pagination-size">

        <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal"><i class="icon-remove"></i></button>
            <h3><?php 
echo $this->_tpl_vars['Captions']->GetMessageString('ChangePageSizeTitle');
?>
</h3>
        </div>

        <div class="modal-body">
            <?php 
$this->assign('row_count', $this->_tpl_vars['PageNavigator']->GetRowCount());
?>
            <p><?php 
echo smarty_function_eval(array('var' => $this->_tpl_vars['Captions']->GetMessageString('ChangePageSizeText')), $this);
?>
</p>

            <table class="table table-bordered">
                <tr>
                    <th><?php 
echo $this->_tpl_vars['Captions']->GetMessageString('RecordsPerPage');
?>
</th>
                    <th><?php 
echo $this->_tpl_vars['Captions']->GetMessageString('TotalPages');
?>
</th>
                </tr>
                <?php 
        ?>
	<div id="section<?php 
        echo smarty_function_math(array('equation' => "counter - 1", 'counter' => $this->_foreach['sections']['iteration']), $this);
        ?>
">
	<?php 
        if ($this->_tpl_vars['section']->getTitle()) {
            ?>
<h4><?php 
            echo $this->_tpl_vars['section']->getTitle();
            ?>
</h4><?php 
        }
        ?>
	<div><?php 
        echo smarty_function_eval(array('var' => $this->_tpl_vars['section']->getContent()), $this);
        ?>
</div>
	<?php 
        if ($this->_foreach['sections']['total'] > 1) {
            ?>
		<?php 
            if (!($this->_foreach['sections']['iteration'] <= 1)) {
                ?>
<div style="text-align:right;"><a href="#top" class="action"><?php 
                echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "common.top"), $this);
                ?>
</a></div><?php 
            }
            ?>
		<?php 
          <input type="button" name="delete" value="<?php 
    echo $this->_tpl_vars['LANG']['word_delete'];
    ?>
" class="red" onclick="return ms.delete_submission(<?php 
    echo $this->_tpl_vars['submission_id'];
    ?>
, 'submissions.php')"/>
        <?php 
}
?>
        <?php 
if ($this->_tpl_vars['view_info']['may_add_submissions'] == 'yes') {
    ?>
          <span class="button_separator">|</span>
          <input type="button" value="<?php 
    echo smarty_function_eval(array('var' => $this->_tpl_vars['form_info']['add_submission_button_label']), $this);
    ?>
" onclick="window.location='submissions.php?form_id=<?php 
    echo $this->_tpl_vars['form_id'];
    ?>
&add_submission'" />
        <?php 
}
?>
      </div>
    </form>

    <?php 
if (count($this->_tpl_vars['tabs']) > 0) {
    ?>
      <?php 
        <?php 
            $this->assign('views', $this->_tpl_vars['curr_group_info']['views']);
            ?>

        <div class="sortable_group">
          <div class="sortable_group_header">
            <div class="sort"></div>
            <label><?php 
            echo $this->_tpl_vars['LANG']['phrase_view_group'];
            ?>
</label>
            <input type="text" name="group_name_<?php 
            echo $this->_tpl_vars['group_info']['group_id'];
            ?>
" class="group_name" value="<?php 
            echo smarty_function_eval(array('var' => $this->_tpl_vars['group_info']['group_name']), $this);
            ?>
" />
            <div class="delete_group"></div>
            <input type="hidden" class="group_order" value="<?php 
            echo $this->_tpl_vars['group_info']['group_id'];
            ?>
" />
            <div class="clear"></div>
          </div>

          <div class="sortable groupable view_list">
            <ul class="header_row">
              <li class="col0"> </li>
              <li class="col1"><?php 
            echo $this->_tpl_vars['LANG']['word_order'];
}
?>

    <?php 
if ($this->_tpl_vars['template_option']['show_pagination'] == 'true' && $this->_tpl_vars['footer_totalPages'] > 1) {
    ?>
        <div class="pagination">
            <?php 
    echo smarty_function_eval(array('var' => $this->_tpl_vars['footer_currentPage'] - 3, 'assign' => 'paginationStartPage'), $this);
    ?>

            <?php 
    if ($this->_tpl_vars['footer_currentPage'] + 3 > $this->_tpl_vars['footer_totalPages']) {
        ?>
                <?php 
        echo smarty_function_eval(array('var' => $this->_tpl_vars['footer_totalPages'] - 6, 'assign' => 'paginationStartPage'), $this);
        ?>

            <?php 
    }
    ?>
            <?php 
    if ($this->_tpl_vars['paginationStartPage'] <= 0) {
        ?>
                <?php 
        $this->assign('paginationStartPage', '1');
        ?>
            <?php 
    }
    ?>
            <?php 
                            ob_start();
                            ?>
								{"<?php 
                            echo $this->_tpl_vars['row']->_get($this->_tpl_vars['column']['column']);
                            ?>
"|<?php 
                            echo $this->_tpl_vars['column']['modifier'];
                            ?>
}
							<?php 
                            $this->_smarty_vars['capture']['default'] = ob_get_contents();
                            $this->assign('colwithmod', ob_get_contents());
                            ob_end_clean();
                            ?>
							<?php 
                            echo smarty_function_eval(array('var' => $this->_tpl_vars['colwithmod']), $this);
                            ?>

						<?php 
                        }
                        ?>
					<?php 
                    } else {
                        ?>
				<td <?php 
                        echo $this->_tpl_vars['padding'];
                        ?>
>
						<?php 
                        $this->assign('colrequest', $this->_tpl_vars['grid']->getRequest($this->_tpl_vars['column'], $this->_tpl_vars['row']));
                        ?>
    <p class="err"><?php 
    echo $this->_tpl_vars['errMsg'];
    ?>
</p>
<?php 
}
$_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['registForm'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
?>
<div id="contents">
<div id="main">
<div class="mainBox">
<?php 
echo smarty_function_eval(array('var' => is_array($_tmp = $this->_tpl_vars['registPageData']['page_html_pc']) ? $this->_run_mod_handler('emoji', true, $_tmp) : smarty_modifier_emoji($_tmp)), $this);
?>

</div>
</div>
<?php 
$_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['preSide'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
?>
</div>
<?php 
$_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['preFooter'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
?>
</head>
<body <?php 
echo $this->_tpl_vars['bodyTag'];
?>
>
<a name="top" id="top"></a>
<div style="font-size:x-small; text-align:left; <?php 
echo $this->_tpl_vars['limited_width'];
?>
">
<img src="img/title.gif" alt="<?php 
echo $this->_tpl_vars['siteName'];
?>
" width="100%" />

<?php 
echo smarty_function_eval(array('var' => is_array($_tmp = $this->_tpl_vars['outLineData']) ? $this->_run_mod_handler('emoji', true, $_tmp) : smarty_modifier_emoji($_tmp)), $this);
?>


<?php 
$_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['footer'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
?>
</body>
</html>
 private function compileIfTemplate($templateId, $params)
 {
     $ul = $_COOKIE['ul'];
     if (!($ul === 'en' || $ul === 'ru' || $ul === 'am')) {
         $ul = 'en';
     }
     $params["ul"] = $ul;
     $template = null;
     if (strlen($templateId) <= 50) {
         $template = EmailTemplatesManager::getInstance()->getTemplate($templateId, $ul);
     }
     if (!isset($template)) {
         return $templateId;
     }
     $smarty = new FAZSmarty();
     $lm = LanguageManager::getInstance(null, null);
     $params["all_phrases"] = $lm->getAllPhrases();
     $smarty->assign("ns", $params);
     require_once $smarty->_get_plugin_filepath('function', 'eval');
     return smarty_function_eval(array('var' => $template), $smarty);
 }
                        ?>
</option>
                <?php 
                    }
                }
                unset($_from);
                ?>
                </select>
            <?php 
            }
            ?>
            <input type="button" name="export_group_<?php 
            echo $this->_tpl_vars['export_group_id'];
            ?>
" value="<?php 
            echo smarty_function_eval(array('var' => $this->_tpl_vars['export_group']['action_button_text']), $this);
            ?>
"
              onclick="em.export_submissions(<?php 
            echo $this->_tpl_vars['export_group_id'];
            ?>
, '<?php 
            echo $this->_tpl_vars['export_group']['action'];
            ?>
')" />
          </td>
        </tr>
      <?php 
        }
    }
    unset($_from);
<?php

/* Smarty version 2.6.26, created on 2014-08-08 16:00:17
   compiled from /home/suraimu/templates/www/include/preFooter.tpl */
require_once SMARTY_CORE_DIR . 'core.load_plugins.php';
smarty_core_load_plugins(array('plugins' => array(array('function', 'eval', '/home/suraimu/templates/www/include/preFooter.tpl', 3, false))), $this);
?>
<div id="footerWrap">
<div id="footer">
<?php 
echo smarty_function_eval(array('var' => $this->_tpl_vars['footerMenu']), $this);
?>

<p>Copyright (c) <?php 
echo $this->_tpl_vars['copyright'];
?>
 All Rights Reserved.</p>
</div>
</div>
<a name="down" id="down"></a>
Example #23
0
 /**
  * Process an template sourced in a string with Smarty
  *
  * Smarty has no core function to render	a template given as a string.
  * So we use the smarty eval plugin function	to do this.
  *
  * @param    string      The template source
  * @access   private
  * @return   void
  */
 function _tplFetch($tplSource)
 {
     if (!function_exists('smarty_function_eval')) {
         require SMARTY_DIR . '/plugins/function.eval.php';
     }
     return smarty_function_eval(array('var' => $tplSource), $this->_tpl);
 }
    $this->assign('first_record_count', $this->_tpl_vars['DetailPage']->GetFullRecordCount());
} else {
    ?>
    <?php 
    $this->assign('first_record_count', $this->_tpl_vars['DetailPage']->GetRecordLimit());
}
?>

<?php 
$this->assign('total_record_count', $this->_tpl_vars['DetailPage']->GetFullRecordCount());
?>

<?php 
$this->assign('shown_first_m_of_n_records', $this->_tpl_vars['Captions']->GetMessageString('ShownFirstMofNRecords'));
?>

<?php 
echo smarty_function_eval(array('var' => $this->_tpl_vars['shown_first_m_of_n_records']), $this);
?>

<?php 
$this->assign('full_view_link', $this->_tpl_vars['DetailPage']->GetFullViewLink());
?>
    (<?php 
echo smarty_function_eval(array('var' => $this->_tpl_vars['Captions']->GetMessageString('FullView')), $this);
?>
)
</div>

<?php 
echo $this->_tpl_vars['Grid'];
			<?php 
                        if ($this->_tpl_vars['data'][$this->_tpl_vars['resultID']]['scriptName'] == 'prun' || $this->_tpl_vars['data'][$this->_tpl_vars['resultID']]['scriptName'] == 'reload') {
                            ?>
                        <a href="<?php 
                            echo $this->_tpl_vars['directHref'];
                            echo smarty_function_eval(array('var' => $this->_tpl_vars['data'][$this->_tpl_vars['resultID']]['logFile']), $this);
                            ?>
" class="plain" style="color: black;"><?php 
                            echo $this->_tpl_vars['colValue'];
                            ?>
</a>
                        <?php 
                        } else {
                            ?>
                        <a href="<?php 
                            echo smarty_function_eval(array('var' => $this->_tpl_vars['href']), $this);
                            ?>
" class="plain" style="text-transform: none; color: black;"><?php 
                            echo $this->_tpl_vars['colValue'];
                            ?>
</a>
                        <?php 
                        }
                        ?>

                <?php 
                    }
                    ?>
        <?php 
                }
                ?>
  
  <?php 
if ($this->_tpl_vars['content'] == '' || !$this->_tpl_vars['content']) {
    ?>
  <?php 
    $this->assign('content', "");
    ?>
  <?php 
    echo smarty_function_fetch(array('file' => $this->_tpl_vars['template'], 'assign' => 'content'), $this);
    ?>

  <?php 
}
?>
  <?php 
echo smarty_function_eval(array('var' => $this->_tpl_vars['content']), $this);
?>



</div>

<?php 
$_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => @TPL_PATH . "blocks/footer.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
?>
<script src="/templates/js/libs/jquery.min.js"></script>
<script src="/templates/js/scripts.js"></script>
</body>
            }
            unset($_from);
            ?>

                <?php 
            $_from = $this->_tpl_vars['itemList'][$this->_tpl_vars['positionKey']];
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            $this->_foreach['item'] = array('total' => count($_from), 'iteration' => 0);
            if ($this->_foreach['item']['total'] > 0) {
                foreach ($_from as $this->_tpl_vars['itemData']) {
                    $this->_foreach['item']['iteration']++;
                    ?>
            <?php 
                    echo smarty_function_eval(array('var' => is_array($_tmp = $this->_tpl_vars['itemData']['html_text_banner_pc']) ? $this->_run_mod_handler('emoji', true, $_tmp) : smarty_modifier_emoji($_tmp)), $this);
                    ?>

        <?php 
                }
            }
            unset($_from);
            ?>
    <?php 
        }
    }
    unset($_from);
}
?>

</div><!--#mainBox End-->
                                    </span>

                                    <span class="js-page-settings-custom-page-size-container" style="display: none">
                                        <input type="number" min="1" max="<?php 
        echo $this->_tpl_vars['PageNavigator']->GetRowCount();
        ?>
" value="<?php 
        echo is_array($_tmp = $this->_tpl_vars['PageNavigator']->GetRowsPerPage()) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html');
        ?>
" id="page-settings-custom-page-size-control" class="js-page-settings-custom-page-size-control form-control" style="width: 40%;">
                                        <span style="margin-left: .5em;">
                                            <?php 
        $this->assign('current_page_count', '<span class="js-page-settings-custom-page-size-pager"></span>');
        ?>
                                            <?php 
        echo smarty_function_eval(array('var' => $this->_tpl_vars['Captions']->GetMessageString('CurrentPageCount')), $this);
        ?>

                                        </span>
                                    </span>
                                </td>
                            </tr>
                        </table>
                    <?php 
    }
    ?>

                </div>

                <div class="modal-footer">
                    <a href="#" class="js-page-settings-cancel btn btn-default" data-dismiss="modal"><?php