<?php 
        $pinCount = getAllPins($userFollowsValue->user_id);
        ?>

                    <div class="pin_item">

                        <!--Follow/un follow button -->
                        <?php 
        $id_ref = $userFollowsValue->user_id;
        ?>
                        <div id="follow_unfollow_<?php 
        echo $id_ref;
        ?>
" class="follow_unfollow">
                            <?php 
        if (!isFollowAll($userFollowsValue->user_id)) {
            ?>
                                <?php 
            if ($userFollowsValue->user_id != $this->session->userdata('login_user_id')) {
                ?>
                                    <a id="follow_btn_<?php 
                echo $id_ref;
                ?>
" onclick="followsFn('follow',<?php 
                echo $id_ref;
                ?>
);" class="Button2 Button13 WhiteButton"><strong >Follow All</strong><span></span></a>
                                 <?php 
            }
            ?>
                            <?php 
                    <div class="pin_item">

                        <!--Follow/un follow button -->
                        <?php 
        $id_ref = $userFollowsValue->is_following;
        ?>
                        <div id="follow_unfollow_<?php 
        echo $id_ref;
        ?>
" class="follow_unfollow">
                        <?php 
        if ($this->session->userdata('login_user_id') != $id) {
            ?>
                            <?php 
            if (!isFollowAll($userFollowsValue->is_following)) {
                ?>
                                <?php 
                if ($userFollowsValue->is_following != $this->session->userdata('login_user_id')) {
                    ?>
                                    <a id="follow_btn_<?php 
                    echo $id_ref;
                    ?>
" onclick="followingFn('follow',<?php 
                    echo $id_ref;
                    ?>
);" class="Button2 Button13 WhiteButton"><strong>Follow All</strong><span></span></a>
                                 <?php 
                }
                ?>
                            <?php 
        ?>
                    <?php 
        $pinCount = getAllPins($searchUsersValue->id);
        ?>

                    <div class="pin_item">

                        <?php 
        $id_ref = $searchUsersValue->id;
        ?>
                        <div id="follow_unfollow_<?php 
        echo $id_ref;
        ?>
" class="follow_unfollow">
                        <?php 
        if (!isFollowAll($searchUsersValue->id)) {
            ?>
                            <?php 
            if ($searchUsersValue->id != $this->session->userdata('login_user_id')) {
                ?>
                                <a  onclick="followFn('follow',<?php 
                echo $id_ref;
                ?>
);" class="Button2 Button13 WhiteButton"><strong >Follow All</strong><span></span></a>
                            <?php 
            }
            ?>
                        <?php 
        } else {
            ?>
                            <a  onclick="followFn('unfollow',<?php 
Exemplo n.º 4
0
                                                            <a href="<?php 
            echo site_url('board/edit/' . $value->id);
            ?>
">Edit</a>
                                                     <?php 
        } else {
            ?>
                                                        <?php 
            $id_ref = $value->id;
            ?>
                                                            <div id="follow_unfollow_<?php 
            echo $id_ref;
            ?>
">
                                                            <?php 
            if (!isFollowAll($value->user_id)) {
                ?>
                                                                <a id="follow_btn_<?php 
                echo $id_ref;
                ?>
" onclick="follow_unfollow('follow',<?php 
                echo $id_ref;
                ?>
,<?php 
                echo $value->user_id;
                ?>
);" class="Button13 Button RedButton followuserbutton" style="cursor: pointer;"><strong >Follow</strong><span></span></a>
                                                            <?php 
            } else {
                ?>
                                                                <a id="unfollow_btn_<?php 
Exemplo n.º 5
0
?>
                        <?php 
$id_ref = $id;
?>
                         <?php 
if ($this->session->userdata('login_user_id') == $id) {
    ?>
                            <li id="rearrangeButton"><div class="sortboard-blue-button"><a  href="#" onclick="showSort();">Sort board</a></div></li>
                            <li id="button" style="display:none;margin-top: 0px;"><div class="sortboard-blue-button"><a  href="#" onclick="saveSort();">Save sort</a></div></li>
                            <li><span class="arrow"></span></li>
                         <?php 
} else {
    ?>
                            <li><span class="arrow"></span></li>
                            <?php 
    if (!isFollowAll($id)) {
        ?>
                                <li id="follow_btn_<?php 
        echo $id_ref;
        ?>
"><div class="sortboard-blue-button"><a onclick="followFn('follow',<?php 
        echo $id_ref;
        ?>
);">Follow All</a></div></li>
                                <li id="loader" style="display:none;"><div class="sortboard-blue-loader"><img src="<?php 
        echo site_url();
        ?>
/application/assets/images/admin/loading.gif"</div></li>
                            <?php 
    } else {
        ?>