コード例 #1
0
    ?>
</h2>
			<ul>
				<?php 
    $_from = $this->_tpl_vars['subPages'];
    if (!is_array($_from) && !is_object($_from)) {
        settype($_from, 'array');
    }
    if (count($_from)) {
        foreach ($_from as $this->_tpl_vars['subPage']) {
            ?>
					<li id="static_<?php 
            echo $this->_tpl_vars['subPage']['ID'];
            ?>
"><a href="<?php 
            echo smarty_function_pageUrl(array('data' => $this->_tpl_vars['subPage']), $this);
            ?>
"><?php 
            echo $this->_tpl_vars['subPage']['title_lang'];
            ?>
</a></li>
				<?php 
        }
    }
    unset($_from);
    ?>
			</ul>
		</div>
	<?php 
}
?>
コード例 #2
0
<?php

/* Smarty version 2.6.26, created on 2015-12-02 00:06:30
   compiled from custom:search/block/result_StaticPage.tpl */
require_once SMARTY_CORE_DIR . 'core.load_plugins.php';
smarty_core_load_plugins(array('plugins' => array(array('function', 'pageUrl', 'custom:search/block/result_StaticPage.tpl', 2, false))), $this);
?>
<li>
	<a href="<?php 
echo smarty_function_pageUrl(array('id' => $this->_tpl_vars['record']['ID']), $this);
?>
"><?php 
echo $this->_tpl_vars['record']['title_lang'];
?>
</a>
</li>