コード例 #1
0
ファイル: update.php プロジェクト: vincenta/achievements
<h1><?php 
echo __('Update an achievement');
?>
</h1>

<p><?php 
echo __('Achievements can only be updated while they are still locked !');
?>
</p>

<p class="achievement" id="achievement_<?php 
echo $this->achievement->id;
?>
">
    <img class="achievementPix" src="<?php 
echo achievement_url($this->achievement);
?>
" alt="<?php 
echo $this->achievement;
?>
"/>
</p>

<?php 
echo form_tag(array('controller' => 'achievements', 'action' => 'update', 'id' => $this->achievement->id));
?>

    <?php 
echo $this->form;
?>
コード例 #2
0
    if ($comments_count == 1) {
        $comments = '(' . _f('%s comment', $comments_count) . ')';
    } elseif ($comments_count > 1) {
        $comments = '(' . _f('%s comments', $comments_count) . ')';
    } else {
        $comments = '';
    }
}
?>

<p class="achievement" id="achievement_<?php 
echo $achievement->id;
?>
">
    <img class="achievementPix" src="<?php 
echo achievement_url($achievement);
?>
" alt="<?php 
echo $achievement;
?>
"/>
    <?php 
if (!$nolinks && $this->session['user']) {
    ?>
        <br/>
        <?php 
    echo link_to(__('View details'), array('controller' => 'achievements', 'action' => 'details', 'id' => $achievement->id), array('title' => __('View details and comments')));
    ?>
        <?php 
    echo $comments;
    ?>