<?php 
    }
    $oid = $theme['sbr_id'];
    //$_next = $is_next;
}
//endfor
?>


    <?php 
if (is_array($msgs2) && count($msgs2)) {
    $aUser = get_object_vars($user);
    ?>
        <?php 
    foreach ($msgs2 as $opinion) {
        $opcomm = opinions::getCommentOpinionById(array($opinion['id']));
        $cls_rating = $opinion['rating'] == 1 ? "b-button_poll_plus" : ($opinion['rating'] == 0 ? " b-button_poll_multi" : "b-button_poll_minus");
        ?>
        <div class="b-post" id="opinion_<?php 
        echo $opinion['id'];
        ?>
">
            <a name="o_<?php 
        echo $opinion['id'];
        ?>
"></a>
            <div class="b-post__body b-post__body_pad_10_15_20" >
                <div class="b-post__avatar"> 
                    <a class="b-post__link" href="/users/<?php 
        echo $opinion['login'];
        ?>
Example #2
0
 public static function printCommentOpinions($op_id, $isFeedback)
 {
     require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/users.php";
     if ($isFeedback) {
         $opcomm = opinions::getCommentFeedbackById(array($op_id));
     } else {
         $opcomm = opinions::getCommentOpinionById(array($op_id));
     }
     $comment = $opcomm[$op_id];
     $user = new users();
     $user->GetUserByUID($comment['user_id']);
     $aUser = get_object_vars($user);
     ob_start();
     include $_SERVER['DOCUMENT_ROOT'] . "/user/opinions/comment.tpl.php";
     $html = ob_get_contents();
     ob_get_clean();
     return $html;
 }