コード例 #1
0
?>
          <span class="vote-desc" id="vote-desc-<?php 
echo $post->id;
?>
"></span>
          </li>	
          <li>
            Score: <span id="post-score-<?php 
echo $post->id;
?>
"><?php 
echo $post->score;
?>
</span>
            <?php 
echo vote_widget();
?>
          </li>
          <li>Favorited by: <span id="favorited-by"><?php 
echo favorite_list($post);
?>
</span></li>
        </ul>
      </div>

<?php 
do_content_for("post_cookie_javascripts");
?>
<script type="text/javascript">
  var widget = new VoteWidget($("stats"));
  widget.set_post_id(<?php 
コード例 #2
0
ファイル: index.php プロジェクト: laiello/my-imouto-booru
    ?>
</span>
            <span class="info"><strong>Rating</strong> <?php 
    echo $post->pretty_rating();
    ?>
</span>
            <span class="info vote-container"><strong>Score</strong>
              <span id="post-score-<?php 
    echo $post->id;
    ?>
"><?php 
    echo $post->score;
    ?>
</span>
              <?php 
    echo vote_widget(User::$current);
    ?>
              <?php 
    echo vote_tooltip_widget();
    ?>
            </span>

            <?php 
    if (count($post->comments) > 6) {
        ?>
              <span class="info"><strong>Hidden</strong> <?php 
        echo link_to(count($post->comments) - 6, array('post#show', 'id' => $post->id));
        ?>
</span>
            <?php 
    }