Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

easyslider.php

By: a guest on Aug 9th, 2012  |  syntax: PHP  |  size: 2.09 KB  |  hits: 36  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1.  
  2. <div id="slider" class="easyslider">
  3.         <ul>
  4.         <?php $loop = new WP_Query( array( 'post_type' => 'slider', 'posts_per_page' => ''.$zn_fonts = of_get_option('number_select', '3').'' ) ); ?>
  5.         <?php if ( $loop->have_posts() ) : while ( $loop->have_posts() ) : $loop->the_post(); ?>
  6.          <li>
  7.           <?php $znndata = get_post_meta($post->ID, 'znn_slide_link', TRUE); ?>    
  8.           <?php $znntitle = get_post_meta($post->ID, 'znn_da_title', TRUE); ?>
  9.           <?php $znndalink = get_post_meta($post->ID, 'znn_da_link', TRUE); ?>
  10.           <?php $znndatext = get_post_meta($post->ID, 'znn_da_text', TRUE); ?>  
  11.                  <?php if(of_get_option('sldrtxt_checkbox') == "1"){ ?>
  12.          <div class="slider-content">
  13.  
  14. <?php if(qtrans_getLanguage() == "en") { ?>
  15. <?php the_title( '<h2 class="entry-title"><a href="' . $znndata . '" title="' . the_title_attribute( 'echo=0' ) . '" rel="bookmark">', '</a></h2>' ); ?>  
  16. <?php the_excerpt(); ?>
  17. <?php } else if(qtrans_getLanguage() == "da") {?>
  18.  <h2 class="entry-title"><a href="<?php echo $znndalink; ?>" ><?php echo $znntitle; ?></a></h2>
  19.  <p><?php echo $znndatext; ?></p>
  20. <?php } ?>
  21.            
  22.            
  23.                
  24.             </div>  
  25.          <?php } ?>
  26.          
  27.         <a href="<?php echo $znndata; ?>"><?php the_post_thumbnail(); ?></a>
  28.             </li>
  29.         <?php endwhile; else: ?>
  30.        
  31.         <li>
  32.             <div class="slider-content">
  33.             <h2 class="entry-title"><?php echo of_get_option('block1_text'); ?></h2>
  34.             <p><?php echo of_get_option('block1_textarea'); ?></p>
  35.             </div>
  36.                 <img src="<?php echo get_template_directory_uri(); ?>/images/slide1.jpg"  />
  37.         </li>
  38.        
  39.         <li>
  40.             <div class="slider-content">
  41.             <h2 class="entry-title"><?php echo of_get_option('block2_text'); ?></h2>
  42.             <p><?php echo of_get_option('block2_textarea'); ?></p>
  43.             </div>
  44.                 <img src="<?php echo get_template_directory_uri(); ?>/images/slide2.jpg"  />
  45.         </li>
  46.        
  47.         <?php endif; ?>
  48.         </ul>
  49. </div>