Advertisement
leadbellydesign

WP if class_exists

Aug 17th, 2011
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.46 KB | None | 0 0
  1. <li class="feature-<?php echo ++$i; ?> <?php if ( $i <= 1 ) echo 'activeSlide'; ?>">
  2. <?php if (class_exists('activeSlide') { ?>
  3. <a href="<?php echo get_post_meta($post->ID, 'custom_permalink', true); ?>"><?php the_title(); ?><?php if ( $i <= 1 ) echo '<img src="/parents/sandbox/wp-content/themes/sandbox/images/active-nav-arrow.png" />'; ?></a>
  4. <?php } else { ?>
  5. <a href="<?php echo get_post_meta($post->ID, 'custom_permalink', true); ?>"><?php the_title(); ?></a>
  6. </li>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement