/**
  * Function display embed pin popup page
  * @param  : <Int> $boardId,$pinId
  * @author : Anup
  * @return
  */
 public function embed($boardId, $pinId)
 {
     $data['title'] = "Action";
     $data['pinId'] = $pinId;
     $data['boardId'] = $boardId;
     $pinDetails = getPinDetails($pinId);
     $data['pin_url'] = $pinDetails->pin_url;
     $data['source_url'] = $pinDetails->source_url;
     $data['pin_link'] = site_url('board/pins/' . $boardId . '/' . $pinId);
     $data['site_link'] = site_url();
     $userDetails = userDetails($pinDetails->user_id);
     $data['user'] = $userDetails['name'];
     $data['user_link'] = site_url('user/index/' . $pinDetails->user_id);
     $data['source_name'] = GetDomain($pinDetails->source_url);
     $this->load->view('embedPin_view', $data);
 }
 public function ajaxEmbed()
 {
     $data['title'] = "Action";
     $data['pinId'] = $pinId = $this->input->post('pin_id');
     $data['boardId'] = $boardId = $this->input->post('board_id');
     $pinDetails = getPinDetails($pinId);
     $data['pin_url'] = $pinDetails->pin_url;
     $data['source_url'] = $pinDetails->source_url;
     $data['pin_link'] = site_url('board/pins/' . $boardId . '/' . $pinId);
     $data['site_link'] = site_url();
     $userDetails = userDetails($pinDetails->user_id);
     $data['user'] = $userDetails['name'];
     $data['user_link'] = site_url('user/index/' . $pinDetails->user_id);
     $data['source_name'] = GetDomain($pinDetails->source_url);
     $value = $this->load->view('embedPin_view', $data, true);
     echo json_encode($value);
 }
                                <div class="convo_blk attribution">
                                    <?php 
                $userDetails = userDetails($boardPinValue->user_id);
                ?>
                                    <a href="<?php 
                echo site_url('user/index/' . $boardPinValue->user_id);
                ?>
" class="convo_img">
                                        <img src="<?php 
                echo $userDetails['image'];
                ?>
" alt="user" />
                                    </a>
                                    <p>
                                        <?php 
                $source = GetDomain($boardPinValue->source_url);
                ?>
                                        <?php 
                $boardDetails = getBoardDetails($boardPinValue->board_id);
                ?>
                                        <a href="<?php 
                echo site_url('user/index/' . $boardPinValue->user_id);
                ?>
"><?php 
                echo $userDetails['name'];
                ?>
</a>
                                        <?php 
                if ($boardPinValue->source_url != "") {
                    ?>
                                            Via <a target="_blank" href="<?php 
                        <div class="convo_blk attribution">
                            <?php 
        $userDetails = userDetails($searchResultValue->user_id);
        ?>
                            <a href="<?php 
        echo site_url('user/index/' . $searchResultValue->user_id);
        ?>
" class="convo_img">
                                <img src="<?php 
        echo $userDetails['image'];
        ?>
" alt="cogzidel" />
                            </a>
                            <p>
                                <?php 
        $gift = GetDomain($searchResultValue->pin_url);
        ?>
                                <?php 
        $boardDetails = getBoardDetails($searchResultValue->board_id);
        ?>
                                <a href="<?php 
        echo site_url('user/index/' . $searchResultValue->user_id);
        ?>
"><?php 
        echo $userDetails['name'];
        ?>
</a>
                                Via <a target="_blank" href="<?php 
        echo $searchResultValue->pin_url;
        ?>
"><?php 
                            <div class="convo_blk attribution">
                                <?php 
                $userDetails = userDetails($activityValue->user_id);
                ?>
                                <a href="<?php 
                echo site_url('user/index/' . $activityValue->user_id);
                ?>
" class="convo_img">
                                    <img src="<?php 
                echo $userDetails['image'];
                ?>
" alt="cogzidel" />
                                </a>
                                <p>
                                    <?php 
                $source = GetDomain($activityValue->source_url);
                ?>
                                    <?php 
                $boardDetails = getBoardDetails($activityValue->board_id);
                ?>
                                    <a href="<?php 
                echo site_url('user/index/' . $activityValue->user_id);
                ?>
"><?php 
                echo $userDetails['name'];
                ?>
</a>
                                     <?php 
                if ($activityValue->source_url != "") {
                    ?>
                                        Via <a target="_blank" href="<?php 
                        <div class="convo_blk attribution">
                            <?php 
        $userDetails = userDetails($sourcePinValue->user_id);
        ?>
                            <a href="<?php 
        echo site_url('user/index/' . $sourcePinValue->user_id);
        ?>
" class="convo_img">
                                <img src="<?php 
        echo $userDetails['image'];
        ?>
" alt="cogzidel" />
                            </a>
                            <p>
                                <?php 
        $source = GetDomain($sourcePinValue->source_url);
        ?>
                                <?php 
        $boardDetails = getBoardDetails($sourcePinValue->board_id);
        ?>
                                <a href="<?php 
        echo site_url('user/index/' . $sourcePinValue->user_id);
        ?>
"><?php 
        echo $userDetails['name'];
        ?>
</a>
                                Via <a target="_blank" href="<?php 
        echo $sourcePinValue->source_url;
        ?>
"><?php 
            <div class="convo_blk attribution">
                <?php 
    $userDetails = userDetails($value->user_id);
    ?>
                <a href="<?php 
    echo site_url('user/index/' . $value->user_id);
    ?>
" class="convo_img">
                    <img src="<?php 
    echo $userDetails['image'];
    ?>
" alt="cogzidel" />
                </a>
                <p>
                    <?php 
    $source = GetDomain($value->source_url);
    ?>
                    <?php 
    $boardDetails = getBoardDetails($value->board_id);
    ?>
                    <a href="<?php 
    echo site_url('user/index/' . $value->user_id);
    ?>
"><?php 
    echo $userDetails['name'];
    ?>
</a>
                    Via <a href="<?php 
    echo $value->source_url;
    ?>
"><?php 
?>
application/ui/css/style1.css" rel="stylesheet" type="text/css" />
<link href="<?php 
echo base_url();
?>
application/ui/css/popup.css" rel="stylesheet" type="text/css" />
<?php 
$pinDetails = getPinDetails($pinId, $boardId);
$userDetails = userDetails($pinDetails->user_id);
$data['userDetails'] = $userDetails;
$data['id'] = $userDetails['userId'];
$source = GetDomain($pinDetails->source_url);
if ($pinDetails->source_url != "") {
    ?>
    <?php 
    $source = $sourceName = GetDomain($pinDetails->source_url);
} else {
    ?>
    <?php 
    $sourceName = 'User uploaded pin';
    $source = false;
}
$sourcePins = getPinsBySource($source, $random = true);
?>
 <?php 
$encode_source = base64_encode($source);
?>

<div class="inside_midd_wrap" >
    <div class="inside_left_items_box" id="inside_left_items_box" style="height: auto;">
            <div class="insde_pin_topbox">
Пример #9
0
                        <div class="convo_blk attribution">
                            <?php 
        $userDetails = userDetails($giftPinValue->user_id);
        ?>
                            <a href="<?php 
        echo site_url('user/index/' . $giftPinValue->user_id);
        ?>
" class="convo_img">
                                <img src="<?php 
        echo $userDetails['image'];
        ?>
" alt="cogzidel" />
                            </a>
                            <p>
                                <?php 
        $gift = GetDomain($giftPinValue->source_url);
        ?>
                                <?php 
        $boardDetails = getBoardDetails($giftPinValue->board_id);
        ?>
                                <a href="<?php 
        echo site_url('user/index/' . $giftPinValue->user_id);
        ?>
"><?php 
        echo $userDetails['name'];
        ?>
</a>
                                <?php 
        if ($giftPinValue->source_url != "") {
            ?>
                                    Via <a target="_blank" href="<?php 
                            <div class="convo_blk attribution">
                                <?php 
            $userDetails = userDetails($likeValue->user_id);
            ?>
                                <a href="<?php 
            echo site_url('user/index/' . $likeValue->user_id);
            ?>
" class="convo_img">
                                    <img src="<?php 
            echo $userDetails['image'];
            ?>
" alt="cogzidel" />
                                </a>
                                <p>
                                    <?php 
            $source = GetDomain($likeValue->source_url);
            ?>
                                    <?php 
            $boardDetails = getBoardDetails($likeValue->board_id);
            ?>
                                    <a href="<?php 
            echo site_url('user/index/' . $likeValue->user_id);
            ?>
"><?php 
            echo $userDetails['name'];
            ?>
</a>
                                    <?php 
            if ($likeValue->source_url != "") {
                ?>
                                        Via <a target="_blank" href="<?php