Advertisement
jeffrose

GeoTheme - moveable gallery for events

Jun 7th, 2012
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 19.00 KB | None | 0 0
  1. <?php if(!$preview){get_header();} ?>
  2. <div id="wrapper" class="clearfix">
  3.  
  4.             <div id="inner_pages" class="clearfix" >
  5.  
  6.  
  7.  
  8.                 <h1 class="main_title"><a href="<?php if($preview){echo '#';}else{the_permalink();}  ?>" rel="bookmark" title="Permanent Link to <?php if($preview){echo $proprty_name;}else{the_title_attribute();}  ?>">
  9.  
  10.                       <?php if($preview){echo $proprty_name;}else{the_title();}  ?>
  11.  
  12.                       </a></h1>
  13.  
  14.                        <div class="likethis">
  15.  
  16.                      <?php if ( get_option('ptthemes_tweet_button') ) { ?>
  17.  
  18.                        <a href="http://twitter.com/share" class="twitter-share-button"><?php _e('Tweet');?></a>
  19.  
  20.                      <script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
  21.  
  22.                     <?php } ?>
  23.  
  24.                      <?php if ( get_option('ptthemes_facebook_button') ) { ?>
  25.  
  26.                     <iframe <?php if (isset($_SERVER['HTTP_USER_AGENT']) && (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== false)){echo 'allowtransparency="true"'; }?> class="facebook" src="http://www.facebook.com/plugins/like.php?href=<?php echo urlencode(get_permalink($post->ID)); ?>&amp;layout=button_count&amp;show_faces=false&amp;width=100&amp;action=like&amp;colorscheme=light" scrolling="no" frameborder="0"  style="border:none; overflow:hidden; width:100px; height:20px"></iframe>
  27.  
  28.                       <?php } ?>
  29.  
  30.                       <?php if ( get_option('ptthemes_google_button') ) { ?>
  31. <div id="plusone-div"></div>
  32. <script type="text/javascript">gapi.plusone.render('plusone-div', {"size": "medium", "count": "true" });</script>
  33.                     <?php } ?>
  34.  
  35.                       </div>
  36.  
  37.                       <div class="breadcrumb clearfix">
  38.  
  39.                 <?php if ( get_option( 'ptthemes_breadcrumbs' )) {  ?>
  40.  
  41.  
  42.  
  43.                     <div class="breadcrumb_in"><?php if(function_exists('bcn_display')){bcn_display();} ?></div>
  44.  
  45.  
  46.  
  47.             <?php } ?></div>
  48. <div class="clearfix"></div>
  49.         <div id="content" class="content_inner" >
  50.  
  51.         <div class="single_post">
  52.  
  53.       <?php if(have_posts() || $preview) :
  54.        if($preview && !$_REQUEST['alook'] && $_SESSION['property_info']['price_select']){$pkg_limit = get_property_price_info_listing('',$_SESSION['property_info']['price_select']);}
  55.        elseif(($preview && $_REQUEST['alook'] )||($preview && !$_SESSION['property_info']['price_select']) ){$pkg_limit = get_property_price_info_listing($_REQUEST['pid']);}
  56.        else{$pkg_limit = get_property_price_info_listing($post->ID);}
  57.  
  58.       if( is_single() ){
  59.         $about_gallery = get_post_meta( $post->ID, 'gallery_detail', true );
  60.       }
  61.          if($preview){
  62.          $thumb_img_counter = 0;
  63.         if($_SESSION["file_info"])
  64.         {   $post_images = array();
  65.             if($_REQUEST['pid']){$post_images = bdw_get_images($_REQUEST['pid'],'large');}
  66.             $thumb_img_counter = $thumb_img_counter+count($_SESSION["file_info"]);
  67.             $image_path = get_image_phy_destination_path();
  68.  
  69.             $tmppath = "/".$upload_folder_path."tmp/";
  70.  
  71.             foreach($_SESSION["file_info"] as $image_id=>$val)
  72.             {
  73.                 $post_images[] = site_url().$tmppath.$image_id.'.jpg';
  74.             $thumb_img_counter++;
  75.             }
  76.         }elseif($_REQUEST['pid']){ $post_images = bdw_get_images($_REQUEST['pid'],'large');}
  77.         }else{ $post_images = bdw_get_images($post->ID,'large');}
  78.  
  79.  
  80.          global $thumb_url; /// get the mutiuser id
  81.  
  82.          $img_p = get_img_p(get_option('ptthemes_image_x_cut'));### added image crop position
  83.  
  84.         $img_zc = get_img_zc(get_option('ptthemes_image_zc'));### added image zoom or crop option
  85.  
  86.         $img_q = '&amp;q='.get_option('ptthemes_image_q');### added image quality option
  87.  
  88.         ?>
  89.  
  90.           <?php if(!$preview){the_post();}?>
  91.  
  92.               <div id="post-<?php if($preview){echo 'preview';}else{the_ID();} ?>" class="posts post_spacer">
  93. <?php
  94.     if ( !isset( $about_gallery ) || 'top' == strtolower( $about_gallery ) ){
  95.         display_gallery( $post_images, $pkg_limit );
  96.     }
  97. ?>
  98.  
  99.      <?php if(get_post_meta($post->ID,'video',true) || $video){?>
  100.  
  101.             <div class="video_main">
  102.  
  103.             <?php if($preview){echo str_replace('\"', '', $video);}else{echo get_post_meta($post->ID,'video',true);}?>
  104.  
  105.             </div>
  106.  
  107.          <?php }?>
  108.  
  109.                       <?php if($preview){echo apply_filters( 'the_content', $proprty_desc );}else{the_content();}  ?>
  110.  
  111.  
  112.  
  113.            <?php if(($proprty_feature || get_post_meta($post->ID,'proprty_feature',true)) && $pkg_limit['property_feature_pkg']){?>
  114.  
  115.            <p><?php if($preview){echo $proprty_feature;}else{echo nl2br(get_post_meta($post->ID,'proprty_feature',true));}?></p>
  116.  
  117.            <?php }?>
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.       <div class="register_info">
  126.  
  127.  
  128.  
  129.         <?php if(($reg_desc || get_post_meta($post->ID,'reg_desc',true)) && $pkg_limit['reg_desc_pkg']){?>
  130.  
  131.             <?php if($preview){echo $reg_desc;}else{echo get_post_meta($post->ID,'reg_desc',true);}?>
  132.  
  133.       <?php }?>
  134.  
  135.       <?php if(($reg_fees || get_post_meta($post->ID,'reg_fees',true)) && $pkg_limit['reg_fees_pkg']){?>
  136.  
  137.          <p ><?php _e('Fees : ');?> <span class="fees"><?php if($preview){echo $reg_fees;}else{echo get_post_meta($post->ID,'reg_fees',true);}?> </span></p>
  138.  
  139.       <?php }?>
  140.  
  141.        </div>
  142.  
  143. <?php
  144.     if ( 'bottom' == strtolower( $about_gallery ) ){
  145.         display_gallery( $post_images, $pkg_limit );
  146.     }
  147. ?>
  148.  
  149.         <p class="post_bottom clearfix">  <?php
  150.              if($preview){echo '<span class="category">'.implode(",", $_SESSION['property_info']['category']).'</span>';
  151.              if($kw_tags){echo '<span class="tags">'.$kw_tags.'</span>';}
  152.              }else{the_taxonomies(array('before'=>'<span class="category">','sep'=>'</span><span class="tags">','after'=>'</span>')); }?> </p>
  153.  
  154. </div> <!-- post #end -->
  155.  
  156.  
  157.  
  158. <div class="pos_navigation clearfix">
  159.  
  160.     <div class="post_left fl"><?php GT_previous_post_link('%link',''.__('Previous'), true) ?></div>
  161.  
  162.     <div class="post_right fr"><?php GT_next_post_link('%link',__('Next').'', true) ?></div>
  163.  
  164. </div>
  165.  
  166.               </div> <!-- single post content #end -->
  167.  
  168.               <div class="single_post_advt"><?php dynamic_sidebar(14);  ?> </div>
  169.  
  170.                     <?php if(get_option('ptthemes_related_on_detailpage')!='No'){ get_related_posts($post);} ?>
  171.  
  172.  
  173.  <?php endif; ?>
  174.  
  175.          <div id="comments" class="clearfix"> <?php comments_template(); ?></div>
  176.  
  177.   </div> <!-- content #end -->
  178.  
  179.       <div id="sidebar">
  180.  
  181.       <div class="company_info">
  182.  
  183.      <?php //edit_post_link( __( 'Edit this Post' ), "\n\t\t\t\t\t\t<p class=\"edit-link\">", "</p>\n\t\t\t\t\t" );
  184.  
  185. ############################################# Fix for "Edit this Post" link taking user to backend ########################################
  186.  
  187.      //edit_post_link( __( 'Edit this Post' ), "\n\t\t\t\t\t\t<p class=\"edit-link\">", "</p>\n\t\t\t\t\t" );
  188.  
  189.     if(get_edit_post_link() && !$preview){
  190.  
  191.             $var1 = array('wp-admin/post.php?post', '&amp;action=edit');
  192.  
  193.             $var2  = array('?ptype=post_event&pid', '');
  194.  
  195.             $link    = get_edit_post_link();
  196.  
  197.             $output  = str_replace($var1, $var2, $link);
  198.  
  199.             echo '<p class="edit-link"><a href="'.$output.'">'.__('Edit this Post').'</a><a href="'.$output.'&upgrade=1" style="float:right;">'.__('Upgrade Listing').'</a></p>';
  200.  
  201. }
  202.  
  203. ############################################# Fix for "Edit this Post" link taking user to backend ########################################
  204.  
  205. #######################OWNER VERIFIED FUNCTION ################
  206.  
  207. $post_id = get_post($post->ID);
  208.  
  209. $author_id = $post_id->post_author;
  210.  
  211. $user = new WP_User( $author_id );
  212.  
  213. $author_role = $user->roles[0];
  214.  
  215. if($preview){$is_owned = $claimed;}else{$is_owned = get_post_meta($post->ID,'claimed',true);}
  216.  
  217. if(get_option('claim_event')==1) {
  218.  
  219. if(get_option('show_owner_verified')==1){
  220.  
  221. if ($author_role =='author' && $is_owned!='0' ){?>
  222.  
  223.  
  224.  
  225.         <p> <span class="i_verified"> <?php echo OWNER_VERIFIED_EVENT;?> </span></p>
  226.  
  227.  
  228.  
  229.  
  230.  
  231. <?php }}}
  232.  
  233. ###############################################################
  234.  
  235. #################### claim listing function#######################################
  236.  
  237. if(get_option('claim_listing')==1){
  238.  
  239. if ($author_role =='administrator' || $is_owned=='0' ){
  240.  
  241. if(get_option('claim_event')==1) {
  242.  
  243. if ( is_user_logged_in() ) { ?>
  244.  
  245.     <p class="edit-link"><a href="#" class="b_claim_listing"><?php echo CLAIM_LISTING_OWNER;?></a></p>
  246.  
  247. <?php } else{ ?>
  248.  
  249.     <p class="edit-link"><a href="<?php echo site_url().'/?ptype=login&msg=claim'; ?>" ><?php echo CLAIM_LISTING_OWNER;?></a></p>
  250.  
  251. <?php }}}}?>
  252.  
  253.       <?php if($_REQUEST['claim_request']=='success'){?>
  254.  
  255.         <p class="sucess_msg"><?php echo CLAIM_LISTING_SUCCESS;?></p>
  256.  
  257.          <?php }elseif($_REQUEST['emsg']=='captch'){?>
  258.  
  259.         <p class="error_msg_fix"><?php echo WRONG_CAPTCH_MSG;?></p>
  260.  
  261.         <?php }
  262.  
  263. ###########################end claim listing function ############################
  264.  
  265. ########################### author link function       ############################
  266.  
  267. if ($is_owned=='1' && get_option('author_link')==1  && !$preview){
  268.  
  269.      ?>
  270.  
  271.     <p class="author-link"><?php _e('Author : '); the_author_posts_link(); ?></p>
  272.  
  273. <?php }
  274.  
  275.  
  276.  
  277. ########################### end author link function   ############################
  278.  
  279. #################### Google Analytics function #######################################
  280.  
  281. if(get_option('ga_stats')==1 && get_edit_post_link() && !$preview && $post->post_status=='publish' && $pkg_limit['google_analytics']){
  282.  
  283. if(get_edit_post_link()){
  284.  
  285.     if ( is_user_logged_in() ) {
  286.  
  287.     $page_url = $_SERVER['REQUEST_URI'];
  288.  
  289.     $ga_start = $_REQUEST['ga_start'];
  290.  
  291.     $ga_end = $_REQUEST['ga_end'];
  292.  
  293.     ?>
  294. <script type="text/javascript">
  295.         jQuery(document).ready(function(){
  296.  
  297.                 jQuery("#ga_stats p").load("<?php echo get_bloginfo('url').'/?ptype=ga&ga_page='.$page_url; ?>");
  298.  
  299.         });
  300.         </script>
  301.         <div id="ga_stats"><p><img src="<?php echo get_bloginfo('template_directory').'/images/'; ?>ajax-loader.gif" /></p></div>
  302.  
  303. <?php }}}
  304.  
  305. ########################### end Google Analytics function############################
  306.  
  307.  
  308.  
  309. ?>
  310.  
  311.  
  312.  
  313.          <?php if(get_post_meta($post->ID,'st_date',true) || $stdate){?>
  314.  
  315.         <p>  <span class="i_date"> <?php echo EVENT_DATE;?> : </span>  <?php if($preview){echo get_formated_date($stdate).__(' to ').get_formated_date($enddate);}
  316.         else{ echo get_formated_date(get_post_meta($post->ID,'st_date',true)).__(' to ').get_formated_date(get_post_meta($post->ID,'end_date',true));}?>  </p>
  317.  
  318.         <?php }?>
  319.  
  320.          <?php if(get_post_meta($post->ID,'st_time',true) || $sttime){?>
  321.  
  322.         <p><span class="i_time"> <?php echo EVENT_TIME;?> : </span>  <?php if($preview){echo get_formated_time($sttime) . __(' to ') .get_formated_time($endtime);}
  323.         else{echo get_formated_time(get_post_meta($post->ID,'st_time',true)) . __(' to ') .get_formated_time(get_post_meta($post->ID,'end_time',true));}?>  </p>
  324.  
  325.         <?php }?>
  326.  
  327.  
  328.  
  329.          <p> <span class="i_location"><?php _e('Address :');?> </span> <?php if($preview){echo $address;}else{echo get_post_meta($post->ID,'address',true);}?> </p>
  330.  
  331.  
  332.  
  333.          <?php if(($contact || get_post_meta($post->ID,'contact',true)) && $pkg_limit['contact_pkg'] && get_option('ptthemes_contact_on_detailpage')=='Yes' && get_post_meta($post->ID,'contact_show',true)!='No'){?>
  334.  
  335.         <p> <span class="i_contact"><?php echo EVENT_CONTACT_INFO;?> : </span>  <?php if($preview){echo $contact;}else{echo get_post_meta($post->ID,'contact',true);}?>  </p>
  336.  
  337.         <?php }?>
  338.  
  339.  
  340.  
  341.          <?php if(($email || get_post_meta($post->ID,'email',true)) && $pkg_limit['email_pkg'] && get_option('ptthemes_email_on_detailpage')=='Yes' && get_post_meta($post->ID,'email_show',true)!='No'){?>
  342.  
  343.         <p> <span class="i_email2"><a href="#" class="b_send_inquiry" ><?php echo SEND_INQUIRY;?> </a> | <a href="#" class="b_sendtofriend"><?php echo SEND_TO_FRIEND;?></a></span></p>
  344.  
  345.          <?php if($_REQUEST['send_inquiry']=='success'){?>
  346.  
  347.         <p class="sucess_msg"><?php echo SEND_INQUIRY_SUCCESS;?></p>
  348.  
  349.         <?php }elseif($_REQUEST['sendtofrnd']=='success'){?>
  350.  
  351.         <p class="sucess_msg"><?php echo SEND_FRIEND_SUCCESS;?></p>
  352.  
  353.         <?php }elseif($_REQUEST['emsg']=='captch'){?>
  354.  
  355.         <p class="error_msg_fix"><?php echo WRONG_CAPTCH_MSG;?></p>
  356.  
  357.         <?php }?>
  358.  
  359.         <?php }?>
  360.  
  361.  
  362.  
  363.  
  364.  
  365.           <p><?php favourite_html($post->post_author,$post->ID); ?> </p>
  366.  
  367.  
  368.  
  369.           <?php if(!$preview){echo get_post_custom_listing_single_page($post->ID,'<p><span class="post_cus_field {#HTMLVAR#}">{#TITLE#} : </span>{#VALUE#}</p>');}
  370.            elseif($preview && $_REQUEST['alook']){echo get_post_custom_listing_single_page(mysql_real_escape_string($_REQUEST['pid']),'<p><span class="{#HTMLVAR#}">{#TITLE#}</span> : {#VALUE#}</p>');}else{echo get_post_custom_listing_single_page_preview($post->ID,'<p><span class="post_cus_field {#HTMLVAR#}">{#TITLE#} : </span>{#VALUE#}</p>');} ?>
  371.  
  372.  
  373.  
  374.         </div>
  375.  
  376.  
  377.  
  378.  
  379.  
  380.         <div class="company_info2">
  381.  
  382.          <?php if(get_post_meta($post->ID,'website',true) || $website){
  383.  
  384.              if($preview){}else{$website = get_post_meta($post->ID,'website',true);}
  385.  
  386.              if(!strstr($website,'http'))
  387.  
  388.              {
  389.  
  390.                  $website = 'http://'.get_post_meta($post->ID,'website',true);
  391.  
  392.              }
  393.  
  394.              ?>
  395.  
  396.         <?php if($website && $pkg_limit['website_pkg'] ){?>
  397.  
  398.         <p > <span class="i_website"><a href="<?php echo $website;?>" target="_blank"><strong><?php _e('Website');?></strong></a> </span>  </p>
  399.  
  400.         <?php }?>
  401.  
  402.         <?php }?>
  403.  
  404.  
  405.         <?php if(!get_option('ptthemes_disable_rating')){ ?>
  406. <div class="hreview-aggregate">
  407.        <p> <span class="i_rating">
  408.  
  409.  
  410.        <?php _e('Rating');?> :</span> <span class="single_rating"> <?php echo get_post_rating_star($post->ID);?></span><br />
  411.  
  412.  
  413.  
  414.       <span class="rating">
  415.       <?php  if($preview){$avg_rating = 0;}else{$avg_rating = get_post_average_rating($post->ID);}
  416. if($avg_rating==0)                          {echo 0;}
  417. if($avg_rating>=1 && $avg_rating<1.25 )     {echo 1;}
  418. if($avg_rating>=1.25 && $avg_rating<1.75 )  {echo 1.5;}
  419. if($avg_rating>=1.75 && $avg_rating<2.25 )  {echo 2;}
  420. if($avg_rating>=2.25 && $avg_rating<2.75 )  {echo 2.5;}
  421. if($avg_rating>=2.75 && $avg_rating<3.25 )  {echo 3;}
  422. if($avg_rating>=3.25 && $avg_rating<3.75 )  {echo 3.5;}
  423. if($avg_rating>=3.75 && $avg_rating<4.25 )  {echo 4;}
  424. if($avg_rating>=4.25 && $avg_rating<4.75 )  {echo 4.5;}
  425. if($avg_rating>=4.75 && $avg_rating<=5 )    {echo 5;}
  426.  ?></span><?php _e('/5 based on');?> <span class="count"><?php if($preview){$rating_count = 0;}else{$rating_count = get_post_rating_count($post->ID);} echo $rating_count;  ?></span>  <?php _e('user');?> <?php if($rating_count == 1){echo 'review.';}else{_e('reviews.');}?>
  427.  <br />
  428.    <span class="item">
  429.       <span class="fn"><?php if($preview){echo $proprty_name;}else{the_title();} ?><br />
  430.    <?php if($post_images[0]){ ?><img src="<?php echo get_bloginfo('template_directory').'/thumb.php?src='.$post_images[0].'&amp;w=75&amp;h=50&amp;zc=1'.$thumb_url; ?>" class="photo" alt="<?php if($preview){echo $proprty_name;}else{the_title();} ?>"/> <?php }?> </span></span>
  431.  
  432.      </p></div>     <?php }?>
  433.        <div class="share clearfix">
  434.  
  435.         <div class="addthis_toolbox addthis_default_style">
  436.  
  437. <a href="http://www.addthis.com/bookmark.php?v=250&amp;username=<?php if(get_option('ptthemes_addthis_username')){echo get_option('ptthemes_addthis_username');}else{ echo 'ra-4facd1303678e5c0';}?>" class="addthis_button_compact sharethis"><?php _e('Share');?></a>
  438.  
  439. </div>
  440.  
  441.  
  442.                 </div>
  443.  
  444.  
  445.  
  446. <div class="links">
  447.  
  448.        <?php if(($twitter || get_post_meta($post->ID,'twitter',true)) && $pkg_limit['twitter_pkg']){?><a href="<?php if($preview){echo $twitter;}else{echo get_post_meta($post->ID,'twitter',true);}?>" class="i_twitter" target="_blank"> <?php _e('Twitter');?> </a> <?php }?>
  449.  
  450.         <?php if(($facebook || get_post_meta($post->ID,'facebook',true)) && $pkg_limit['facebook_pkg']){?><a href="<?php if($preview){echo $facebook;}else{echo get_post_meta($post->ID,'facebook',true);}?>" class="i_facebook" target="_blank"><?php _e('Facebook');?> </a><?php }?>
  451.  
  452. </div>
  453.  
  454.  
  455.  
  456.         </div>  <!-- company info -->
  457.  
  458.  
  459. <?php if($pkg_limit['link_business_pkg'] && get_event_place() && !$preview){ ?>
  460.  
  461.         <div class="widget event_venue_add">
  462.  
  463.         <div class="links"><h3><?php echo EVENT_VENUE; ?></h3>
  464.  
  465.     <?php echo get_event_place(); ?>
  466.  
  467.     </div></div>
  468.  
  469.     <?php } ?>
  470.  
  471.  
  472.     <div class="sidebar_in"><?php dynamic_sidebar(13);  ?> </div>
  473.  
  474.     </div> <!-- sidebar #end -->
  475.  
  476.     </div>
  477.  
  478. <?php if(!$preview){require_once (TEMPLATEPATH . '/library/includes/popup_frms.php');}?>
  479.  
  480. <?php get_footer();
  481.  
  482. function display_gallery( $post_images, $pkg_limit ){
  483.  
  484.     echo '<div id="galleria"';
  485.     if ( count( $post_images) == 1 ){
  486.         echo 'style="margin-bottom:-90px;"';
  487.     }
  488.     echo '>';
  489.  
  490.     if(count($post_images)>0){
  491.         if($pkg_limit['image_limit']=='' || count($post_images)<$pkg_limit['image_limit']){
  492.             $img_count = count($post_images);
  493.         }else{
  494.             $img_count =$pkg_limit['image_limit'];
  495.         }
  496.  
  497.         for($im=0;$im<$img_count;$im++){
  498.         ?>
  499.         <div class="small">
  500.             <a href="<?php echo get_bloginfo('template_directory').'/thumb.php?src='.$post_images[$im].'&amp;w=580&amp;h=390'.$img_zc.$img_p.$img_q.$thumb_url; ?>">
  501.                 <img src="<?php  echo get_bloginfo('template_directory').'/thumb.php?src='.$post_images[$im].'&amp;w=75&amp;h=50&amp;zc=1'.$thumb_url; ?>" alt=""  title=""/>
  502.             </a>
  503.         </div>
  504.         <?php
  505.         } // for
  506.     } // if count
  507. ?>
  508.  
  509.     </div>
  510.     <?php
  511.     if($post_images){
  512.     ?>
  513.         <script type="text/javascript">
  514.  
  515.             // Load theme
  516.  
  517.             Galleria.loadTheme('<?php bloginfo('template_directory'); ?>/library/js/galleria.classic.js');
  518.  
  519.             // run galleria and add some options
  520.  
  521.             jQuery('#galleria').galleria({
  522.                 width:580,
  523.                 height:470,
  524.                 image_crop: false, // crop all images to fit
  525.                 thumb_crop: true, // crop all thumbnails to fit
  526.                 <?php if(count($post_images)==1){ echo 'thumbnails: false,';}?>
  527.                 transition: 'fade', // crossfade photos
  528.                 transition_speed: 700, // slow down the crossfade
  529.                 autoplay: <?php if(get_option('ptthemes_photo_gallery')){echo 'true';}else{echo 'false';}?>,
  530.                 data_config: function(img) {
  531.  
  532.                     // will extract and return image captions from the source:
  533.  
  534.                     return  {
  535.                         title: jQuery(img).parent().next('strong').html(),
  536.                         description: jQuery(img).parent().next('strong').next().html()
  537.                     };
  538.  
  539.                 },
  540.                 extend: function() {
  541.                     this.bind(Galleria.IMAGE, function(e) {
  542.                         // bind a click event to the active image
  543.                         jQuery(e.imageTarget).css('cursor','pointer').click(this.proxy(function() {
  544.                             // open the image in a lightbox
  545.                             this.openLightbox();
  546.                         }));
  547.                     });
  548.                 }
  549.             });
  550.         </script>
  551.     <?php
  552.     } //if post images
  553. } //End function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement