forked from halo-battle/game
59 lines
3.2 KiB
PHP
59 lines
3.2 KiB
PHP
<?php /* Smarty version 2.6.19, created on 2008-05-28 21:25:21
|
|
compiled from cms/news.xtpl */ ?>
|
|
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
|
smarty_core_load_plugins(array('plugins' => array(array('function', 'cycle', 'cms/news.xtpl', 16, false),)), $this); ?>
|
|
<?php $_smarty_tpl_vars = $this->_tpl_vars;
|
|
$this->_smarty_include(array('smarty_include_tpl_file' => 'cms/header.xtpl', 'smarty_include_vars' => array()));
|
|
$this->_tpl_vars = $_smarty_tpl_vars;
|
|
unset($_smarty_tpl_vars);
|
|
?>
|
|
<div id="corps">
|
|
<div id="page" class="block">
|
|
<div class="header"><h2>Actualités</h2><h3><span><?php echo $this->_tpl_vars['news']['date']; ?>
|
|
</span></h3></div>
|
|
<div class="corps">
|
|
<h4><img src="<?php echo $this->_tpl_vars['news']['img']; ?>
|
|
" alt="news" width="50" height="50" /> <span><strong><?php echo $this->_tpl_vars['news']['titre']; ?>
|
|
</strong> par <ins><?php echo $this->_tpl_vars['news']['auteur']; ?>
|
|
</ins></span></h4>
|
|
<p><?php echo $this->_tpl_vars['news']['contenu']; ?>
|
|
</p>
|
|
</div>
|
|
<div class="bottom"><a href="<?php echo $this->_tpl_vars['news']['before']; ?>
|
|
">News précédente</a> <span><a href="<?php echo $this->_tpl_vars['news']['after']; ?>
|
|
">News suivante</a></span></div>
|
|
</div>
|
|
|
|
<div id="commentaires" class="block">
|
|
<h2>Commentaires</h2>
|
|
<div class="header"><span></span></div>
|
|
<?php $_from = $this->_tpl_vars['commentaire']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
|
foreach ($_from as $this->_tpl_vars['value']):
|
|
?>
|
|
<p class="<?php echo smarty_function_cycle(array('values' => "com1,com2"), $this);?>
|
|
"><a href="<?php echo $this->_tpl_vars['value']['user']; ?>
|
|
"><?php echo $this->_tpl_vars['value']['username']; ?>
|
|
</a>, le <?php echo $this->_tpl_vars['value']['date']; ?>
|
|
<cite><?php echo $this->_tpl_vars['value']['comentaire']; ?>
|
|
</cite></p>
|
|
<?php endforeach; endif; unset($_from); ?>
|
|
</div>
|
|
|
|
<form action="#" method="post"><fieldset id="commenter" class="block">
|
|
<legend>Laisser un commentaire</legend>
|
|
<?php if ($this->_tpl_vars['connected']): ?><label for="com_connexion">Connexion: </label> <input type="text" class="text" name="username" id="com_connexion" /> <input type="password" class="password" name="com_passord" /> <input type="submit" class="submit" value="OK" />
|
|
<?php else: ?><div><?php $_from = $this->_tpl_vars['smiley']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
|
foreach ($_from as $this->_tpl_vars['value']):
|
|
?><img src="<?php echo $this->_tpl_vars['value']['link']; ?>
|
|
" alt="<?php echo $this->_tpl_vars['value']['value']; ?>
|
|
" onclick="document.getElementById('message').value += ' <?php echo $this->_tpl_vars['value']['value']; ?>
|
|
'" /><?php endforeach; endif; unset($_from); ?></div> <textarea name="message" id="message" cols="40" rows="10"></textarea><br /><input type="submit" class="submit" value="OK" />
|
|
<?php endif; ?>
|
|
</fieldset></form>
|
|
|
|
</div>
|
|
<?php $_smarty_tpl_vars = $this->_tpl_vars;
|
|
$this->_smarty_include(array('smarty_include_tpl_file' => 'cms/footer.xtpl', 'smarty_include_vars' => array()));
|
|
$this->_tpl_vars = $_smarty_tpl_vars;
|
|
unset($_smarty_tpl_vars);
|
|
?>
|