Advertisement
Guest User

Untitled

a guest
Aug 3rd, 2012
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.29 KB | None | 0 0
  1. <article id="post-<?php the_ID(); ?>" <?php post_class("post clearfix $class"); ?>>
  2.    
  3.     <?php if ( themify_get('external_link') != ''): ?>
  4.         <?php $link = themify_get("external_link"); ?>
  5.     <?php elseif ( themify_get('lightbox_link') != ''): ?>
  6.         <?php $link = themify_get("lightbox_link")."' class='lightbox' rel='prettyPhoto[post]"; ?>
  7.     <?php else: ?>
  8.         <?php $link = get_permalink(); ?>
  9.     <?php endif; ?>
  10.        
  11.     <?php if(is_single() && $hide_image != "yes"): ?>              
  12.  
  13.         <?php if($unlink_image == "yes"):  ?>
  14.             <?php themify_image("field_name=post_image, image, wp_thumb&setting=image_post_single&w=".$width."&h=".$height."&before=<figure class='post-image " . themify_get('setting-image_post_single_align') . "'>&after=</figure>"); ?>
  15.         <?php else: ?>
  16. <?php
  17.     /* jQuery is loaded on the page but we also need to get the WunderSlider Javascript: */
  18.     echo "<script type='text/javascript' src='http://ax3battery.com/devsite/wp-content/plugins/wunderslider/js/wunderslider-min.js'></script>";
  19. ?>
  20.              <?php echo do_shortcode('[gallery container_width="91%" container_height="360px" display="proportional" mode="proportional" clickable="false"]'); ?>
  21.         <?php endif; ?>  
  22.    
  23.     <?php elseif($post_query_category != "" && $hide_image != "yes"): ?>
  24.                    
  25.         <?php if($unlink_image == "yes"):  ?>          
  26.             <?php themify_image("field_name=post_image, image, wp_thumb&w=".$width."&h=".$height."&before=<figure class='post-image'>&after=</figure>"); ?>
  27.         <?php else: ?>
  28.             <?php themify_image("field_name=post_image, image, wp_thumb&w=".$width."&h=".$height."&before=<figure class='post-image'><a href='".urlencode($link)."'>&after=</a></figure>"); ?>
  29.         <?php endif; ?>  
  30.  
  31.     <?php else: ?>
  32.            
  33.         <?php if($hide_image != "yes"): ?>
  34.             <?php if($unlink_image == "yes"):  ?>      
  35.                 <?php themify_image("field_name=post_image, image, wp_thumb&setting=image_post&w=".$width."&h=".$height."&before=<figure class='post-image " . themify_get('setting-image_post_align') . "'>&after=</figure>"); ?>
  36.             <?php else: ?>
  37.                 <?php themify_image("field_name=post_image, image, wp_thumb&setting=image_post&w=".$width."&h=".$height."&before=<figure class='post-image " . themify_get('setting-image_post_align') . "'><a href='".urlencode($link)."'>&after=</a></figure>"); ?>
  38.             <?php endif; ?>  
  39.         <?php endif; ?>
  40.            
  41.     <?php endif; //post image ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement