Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div id="left" >
- <!-- <IMG SRC="images/photo.png" BORDER="0" ALT=""> -->
- <?php
- $where = "gallery_id=:gallery_id AND object_type=:object_type ORDER BY `id` DESC";
- $execute = array(':gallery_id' => $image_details['gallery_id'],':object_type' =>$image_details['object_type']);
- $gallery_all_imgs = find('all', TB_IMAGES, 'id,image_name', $where, $execute);
- /* Get singledimensional array===================*/
- $allImg = array();
- $i= 0;
- $imgNo = 0;
- foreach($gallery_all_imgs as $v)
- {
- $allImg[] = $v['id'];
- if($v['id'] == $_GET['object_id'])
- {
- $imgNo = $i;
- }
- $i++;
- }
- /* End===========================================*/
- $totalImg = count($allImg);
- if($totalImg >1)
- {
- ?>
- <!-- <div class="image_prv_nxt "> -->
- <?php
- if($imgNo<($totalImg-1))
- {
- ?>
- <a href="<?php echo pk_tran('index_1').'image-detail.php?e_object_id='.base64_encode($allImg[$imgNo+1]).'&e_user_id='.base64_encode($_GET['user_id']);?>" title="<?= pk_tran('gallery_44');?>" class="facebook_class nxt ">
- <!-- <span class="">Next</span> -->
- </a>
- <?php
- }
- else
- {
- ?>
- <a href="<?php echo pk_tran('index_1').'image-detail.php?e_object_id='.base64_encode($allImg[0]).'&e_user_id='.base64_encode($_GET['user_id']);?>" title="<?= pk_tran('gallery_44');?>" class="facebook_class nxt">
- </a>
- <?php
- }
- ?>
- <!-- <span class="">|</span> -->
- <?php
- if($imgNo>0)
- {
- ?>
- <a href="<?php echo pk_tran('index_1').'image-detail.php?e_object_id='.base64_encode($allImg[$imgNo-1]).'&e_user_id='.base64_encode($_GET['user_id']);?>" class="facebook_class prv" title="<?= pk_tran('gallery_45');?>" >
- </a>
- <?php
- }
- else
- {
- ?>
- <a href="<?php echo pk_tran('index_1').'image-detail.php?e_object_id='.base64_encode($allImg[$totalImg-1]).'&e_user_id='.base64_encode($_GET['user_id']);?>" class="facebook_class prv" title="<?= pk_tran('gallery_45');?>" >
- </a>
- <?php
- }
- ?>
- <!-- </div> -->
- <?php
- }
- ?>
- <style>
- /* popup window image box*/
- .set_style{
- margin: 0 !important;
- width: 100%;
- }
- .set_style .fullscreen-btn{
- right:5px;
- top:5px;
- position:absolute;
- margin: 0;
- padding: 0;
- border: 0;
- outline: 0;
- cursor: pointer;
- background-image: url(/img/full_icon.png);
- background-repeat: no-repeat;
- background-size: auto;
- background-position: 0 -53px;
- display: block;
- height: 16px;
- opacity: 0.2;
- -webkit-transform: translateZ(0);
- -webkit-transition: opacity .3s;
- width: 16px;
- }
- .set_style:hover > .fullscreen-btn{
- opacity:1;
- }
- /*************************************************************************** size for ipad,iphone..... ***************************************************************************/
- @media only screen and (max-width: 1280px){
- #image-main .fullscreen-btn{
- right:5px;
- top:5px;
- position:absolute;
- margin: 0;
- padding: 0;
- border: 0;
- outline: 0;
- cursor: pointer;
- background-image: url(/img/full_icon.png);
- background-repeat: no-repeat;
- background-size: auto;
- background-position: 0 -53px;
- display: block;
- height: 16px;
- opacity: 0.2;
- -webkit-transform: translateZ(0);
- -webkit-transition: opacity .3s;
- width: 16px;
- }
- #image-main:hover > .fullscreen-btn{ opacity:1;}
- }
- @media only screen and (max-width: 980px){
- #image-main .fullscreen-btn{
- left:15px;
- top:15px;
- position:absolute;
- margin: 0;
- padding: 0;
- border: 0;
- outline: 0;
- cursor: pointer;
- background-image: url(/img/full_icon.png);
- background-repeat: no-repeat;
- background-size: auto;
- background-position: 0 -53px;
- display: block;
- height: 16px;
- opacity: 0.2;
- -webkit-transform: translateZ(0);
- -webkit-transition: opacity .3s;
- width: 16px;
- }
- #image-main:hover > .fullscreen-btn{ opacity:1;}
- }
- /*************************************************************************** size for ipad,iphone END..... ***************************************************************************/
- </style>
- <table class="table">
- <tr><td>
- <div class="set_style" id="image-main">
- <a title="<?= pk_tran('image_detail_6');?>" href="javascript:;" class="fullscreen-btn"/></a>
- <img id="res-img" id="imgtag_single" src="<?php echo(pk_tran('index_1').'resize.php?pic='.$galleryimages.$gallery_creator['username'].'/'.$image_details['gallery_id'].'/'.$image_details['image_name']);?>&w=1280&h=780&t=<?php echo time(); ?>" align="center" border="0" alt="" onClick="getTagSingleImage('modalLeft','<?php echo ($image_details['id']);?>');" >
- <!-- config in jquery.colorbox.js for popup window -->
- </div>
- </td></tr>
- </table>
Advertisement
Add Comment
Please, Sign In to add comment