jegtheme

newgallery.phtml

Jan 18th, 2013
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.19 KB | None | 0 0
  1. <style type="text/css">
  2.     #galleria {
  3.         height:<?php echo $height . 'px'?>;
  4.         max-width:<?php echo $width . 'px'?>;
  5.         display: none;
  6.     }
  7. </style>
  8. <div class="item-detail" data-cover='<?php echo $image_cover; ?>'>
  9.     <div class="item-gallery flexslider">
  10.         <?php if(!empty($download_url)) : ?>
  11.         <div class="item-download">
  12.             <a data-alt="<?php _e('Download'); ?>" href="<?php echo $download_url; ?>">
  13.                 <div class="icon-download-alt">&nbsp;</div>
  14.             </a>
  15.         </div>
  16.         <?php endif; ?>
  17.         <?php if(!empty($gallery)) : ?>
  18.             <div id="galleria">
  19.                 <?php foreach ($gallery as $img) : ?>
  20.                 <a href="<?php echo jeg_get_image($img['file'], '', $width, $height, $croped_image); ?>">
  21.                 <img
  22.                     src="<?php echo jeg_get_image($img['file'], '', 100, 100, $croped_image); ?>",
  23.                     data-big="<?php echo $img['file'] ?>"
  24.                     data-title="<?php echo $img['title'] ?>"
  25.                     data-description="<?php echo $img['desc'] ?>">
  26.                 </a>
  27.                 <?php endforeach; ?>
  28.             </div>
  29.         <?php else : ?>
  30.             <div style="position: relative; width: 100%; height: 100%;">
  31.                 <div style="display: table; width: 100%; height: 100%; ">
  32.                     <p style="font-weight: bold; display: table-cell; vertical-align: middle; text-align: center; padding : 50px;">
  33.                         Your image gallery is empty. Portfolio won't work as you expected. <br/>
  34.                         You need to insert gallery using upload/insert image on portfolio
  35.                     </p>
  36.                 </div>
  37.             </div>         
  38.         <?php endif; ?>
  39.     </div>
  40.     <div class="item-description">
  41.         <div class="item-desc-wrapper">
  42.             <h2><?php echo $title; ?></h2>
  43.             <?php
  44.             if(j_get_option('social_sharer')) :
  45.                 echo $socialblock;
  46.             endif;
  47.             ?>
  48.             <span><?php echo implode(', ', $catlist)?></span>
  49.             <div class="wrapper-text"><?php echo $content; ?></div>
  50.         </div>     
  51.        
  52.         <div class="item-navigator">
  53.             <a href="" data-tourl="false">
  54.                 <div class="item-prev">
  55.                     <div class="icon-chevron-left item-icon-prev">&nbsp;</div>
  56.                 </div>
  57.             </a>
  58.             <a href="" data-tourl="false">
  59.                 <div class="item-next">        
  60.                     <div class="icon-chevron-right item-icon-next">&nbsp;</div>
  61.                 </div>
  62.             </a>
  63.         </div>
  64.     </div>
  65. </div>
Advertisement
Add Comment
Please, Sign In to add comment