Beispiel #1
0
        <?php 
}
?>
    </li>
    <li <?php 
if ($sf_context->getModuleName() == 'post' && $sf_context->getActionName() == 'discussion') {
    ?>
 class="current_page_item"<?php 
}
?>
>
        <?php 
if ($sf_user->isAuthenticated() && getDeltaCount($sf_user, $sf_user->getGuardUser()->getDiscussionLine('count'), "discussion") > 0) {
    ?>
            <?php 
    echo link_to(__('Обсуждаемое') . " (+" . getDeltaCount($sf_user, $sf_user->getGuardUser()->getDiscussionLine('count'), "discussion") . ")", 'post/discussion');
    ?>
        <?php 
} else {
    ?>
            <?php 
    echo link_to(__('Обсуждаемое'), 'post/discussion');
    ?>
        <?php 
}
?>
    </li>
    <li<?php 
if ($sf_context->getModuleName() == 'people' && ($sf_context->getActionName() == 'index' || $sf_context->getActionName() == 'top')) {
    ?>
 class="current_page_item"<?php 
Beispiel #2
0
  <?php 
} else {
    ?>
    <?php 
    echo link_to(__('Хорошее'), 'post/index');
    ?>
  <?php 
}
?>
  &nbsp;|&nbsp;
  <b>
    <?php 
if (getDeltaCount($sf_user, Post::getNewLine('count'), "best") > 0) {
    ?>
      <?php 
    echo link_to(__('Лучшее') . " (+" . getDeltaCount($sf_user, Post::getNewLine('count'), "best") . ")", 'post/best');
    ?>
    <?php 
} else {
    ?>
      <?php 
    echo link_to(__('Лучшее'), 'post/best');
    ?>
    <?php 
}
?>
  </b>
  <br/>
<?php 
end_slot();
?>
Beispiel #3
0
if (!isset($noCommentsLinks) || !$noCommentsLinks) {
    ?>
        <span class="comments">
            <?php 
    echo link_to($post->getCommentsCount(), 'post/show?id=' . $post->getId(), array('title' => __('количество комментариев'), 'class' => 'commentnum', 'onclick' => '$j("#post_comment_list' . $post->getId() . '")
                      .toggle("fast")
                      .load("' . url_for("post/comments?id=" . $post->getId() . "&rand=" . rand()) . '", function() {UpdateCommentsCss();}
                    );
                    return false;'));
    ?>
            <?php 
    if (getDeltaCount($sf_user, $post->getCommentsCount(), "comments" . $post->getId()) > 0) {
        ?>
                <span class="commentnumDelta" title="колличество новых комментариев">
                    <?php 
        echo "+" . getDeltaCount($sf_user, $post->getCommentsCount(), "comments" . $post->getId());
        ?>
                </span>
            <?php 
    }
    ?>
        </span>
        <?php 
}
?>
        <?php 
if ($sf_user->getGuardUser() && $sf_user->getGuardUser()->getIsSuperAdmin()) {
    ?>
        <span style="display:none;" id="post_header_form<?php 
    echo $post->getId();
    ?>