HELP FUNCTIONS PHP – easingsliderlite only header – Problem permalink
-
Hi,
I’m currently using Garnish Theme and Easing Slider.
Garnish DEMO:
http://themeforest.net/item/garnish-cleancut-wordpress-portfolio-theme/full_screen_preview/308989It works fine, but i would like to disable it when i click on an image of the portfolio. And just have the portfolio below the magic door and not the slide.
I choose to open the portfolio with “magicdoor” but with it, i don t have the permalink. So i can t use this code.
<?php if(is_front_page()) { if (function_exists("easingsliderlite")){ easingsliderlite(); } } ?>If someone can help me?
THANKS
The actual php code of my header.php looks like this:
<?php /* Template Name: Home */ ?> <?php get_header(); ?> <?php if(is_front_page()) { if (function_exists("easingsliderlite")){ easingsliderlite(); } } ?> <!--BEGIN #portfolio-terms--> <div id="portfolio-terms"> <span class="lin"></span> <ul> <li> <a href="#" class="all active"><?php _e('All', 'framework'); ?></a><span>/</span> </li> <?php wp_list_categories(array( 'title_li' => '', 'taxonomy' => 'skill-type', 'walker' => new Portfolio_Walker(), 'show_option_none' => '' ) ); ?> </ul> <!--END #portfolio-terms--> </div> <!--BEGIN #primary .hfeed--> <div id="primary" class="hfeed"> <?php //Grab magic door option $magic_door = get_option('tz_magic_door'); $post_id = get_option('tz_magic_door_state'); if($magic_door != 'true') $magic_door = FALSE; if($post_id == '') $post_id = FALSE; //Query the database query_posts( array ( 'post_type' => 'portfolio', 'posts_per_page' => -1 ) ); ?> <ul id="portfolio-items" class="<?php if($magic_door) : ?>enabled<?php endif; ?> clearfix"> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <?php //Get the terms $terms = get_the_terms( get_the_ID(), 'skill-type' ); $output = ''; //If there are any terms then store them if($terms) { foreach ($terms as $term) { $output .= 'term-'.$term->term_id.' '; } } ?> <li id="portfolio-<?php the_ID(); ?>" class="<?php echo $output; ?>visible"> <!--BEGIN .hentry --> <div <?php post_class() ?> id="post-<?php the_ID(); ?>"> <a class="entry-link" href="<?php the_permalink(); ?>"></a> <?php tz_featured_image(get_the_ID(), TRUE); ?> <!--BEGIN .overlay --> <div class="overlay"> <h3 class="entry-title"><?php the_title(); ?></h3> <div class="seperator clearfix"> <!--<span class="line"></span>--> </div> <!--BEGIN .entry-content --> <div class="entry-content"> <!-- <?php the_excerpt(); ?>--> <!--END .entry-content --> </div> <div class="arrow"></div> <!--END .overlay --> </div> <!--END .hentry--> </div> </li> <?php endwhile; endif; ?> </ul> <!--END #primary .hfeed--> </div> <?php get_footer(); ?>
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
The topic ‘HELP FUNCTIONS PHP – easingsliderlite only header – Problem permalink’ is closed to new replies.