<div class="row" style="padding:0px">
                    <?php
                    $post_counter = 0; 
                    $total_public_image = $this->post_model->total_public_image_person_id($profile_person_id);
                    $public_image = $this->post_model->all_public_image_person_id($profile_person_id, $post_counter);
                    if ($public_image) {
                        ?>
                        <div class="col-sm-12 ">
                            <p class="bg-primary" style="text-align: center;background-color: #8CC73F;font-size: 16px">Photo</p>
                        </div>
                        <div id="image_view" class="col-sm-12 ">
                            <?php
                            foreach ($public_image as $image_value) {
                                ?>
                                <div class="col-sm-4 media-hover">
                                    <div class="media col-sm-12 ">
                                        <div class="media-body ">
                                            <a href="javascript:void(0)">
                                                <center> 
                                                    <img class=" media-object"
                                                         onclick="downloadPublicContentLibrary('<?php echo base_url() . 'download-public-content-library' ?>', '<?php echo $image_value->post_id; ?>')"
                                                         src="<?php echo base_url() . 'content-library/' . $image_value->url . '/' . $image_value->post_details; ?>" 
                                                         style="width: 200px; height: 200px" alt=" ">
                                                </center>
                                            </a>
                                        </div>
                                        <br>
                                        <?php
                                            $posted_public_image_link = base_url() . 'content-library/' . $image_value->url . '/' . $image_value->post_details;
                                        ?>
                                        <div class=" padding-zero text-left" style="color: #80c12c;">
                                            <center>
                                                <a class="btn btn-facebook-custom" title="Share in Facebook" target="_blank" href="https://www.facebook.com/sharer/sharer.php?u=<?php echo urlencode($posted_public_image_link); ?>">
                                                    <i class="fa fa-facebook" aria-hidden="true"></i>
                                                </a>
                                                <a class="btn btn-twitter-custom" title="Share in Twitter" target="_blank" href="https://twitter.com/intent/tweet?text=<?php echo $posted_public_image_link; ?>">
                                                    <i class="fa fa-twitter" aria-hidden="true"></i>
                                                </a>
                                                <a class="btn btn-google-custom" title="Share in G+" target="_blank" href="https://plus.google.com/share?url=<?php echo urlencode($posted_public_image_link); ?>">
                                                    <i class="fa fa-google-plus"></i>
                                                </a>
                                                <a class="btn btn-linkedin-custom" title="Share in Linkedin" target="_blank" href="https://www.linkedin.com/shareArticle?mini=true&url=<?php echo urlencode($posted_public_image_link); ?>">
                                                     <i class="fa fa-linkedin"></i>
                                                </a>
                                            </center>
                                        </div>
                                        <div class="col-sm-12 padding-zero"><hr></div>
                                    </div>
                                </div>
                                <?php
                            }
                            ?>
                            
                            <?php
                                if ($total_public_image->total_image > 6) {
                                    ?>
                                    <div class="col-sm-12">
                                        <?php
                                        if ($post_counter >= 6) {
                                            ?>
                                            <a href="javascript:void(0)"
                                               class="pull-left">
                                                Previous
                                            </a>
                                        <?php } ?>
                                        <a href="javascript:void(0)"
                                           onclick="nextPostValue('<?php echo base_url() . 'welcome/view_next_post_value/' . $total_public_image->posted_by . '/' . ($post_counter + 6) . '/image' ?>', 'image')"
                                           class="pull-right">
                                            Next
                                        </a>
                                    </div>
                            <?php } ?>
                        </div>
                    <?php } ?>
                </div>

