1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | <?php /* Template Name: Portfolio */ ?> <?php get_header(); ?> <script type="text/javascript" src="<?php bloginfo('template_url'); ?>/js/jquery-1.4.3.min.js"></script> <script type="text/javascript" src="<?php bloginfo('template_url'); ?>/js/jquery.nivo.slider.pack.js"></script> <script type="text/javascript"> jQuery(window).load(function() { jQuery('#slider').nivoSlider({ effect:'fade', //Specify sets like: 'fold,fade,sliceDown' slices:15, animSpeed:500, //Slide transition speed pauseTime:5000, startSlide:0, //Set starting Slide (0 index) directionNav:true, //Next & Prev directionNavHide:true, //Only show on hover controlNav:true, //1,2,3... keyboardNav:true, //Use left & right arrows pauseOnHover:true, //Stop animation while hovering captionOpacity:0.8, //Universal caption opacity }); }); </script> <body> <nav> <?php wp_nav_menu(array('menu' => 'Main Nav Menu')); ?> <a href="http://www.twitter.com/Kortschot" target="_blank" class="twitterbird-nav"></a> </nav> <p style="font-size: 16px; text-align:center; padding:10px 0 0 0;">Deze pagina is nog in ontwikkeling</p> <div id="main-content-werk"> <div id="slider"> <?php $my_query = new WP_Query('category_name=werk&posts_per_page=3'); while ($my_query->have_posts()) : $my_query->the_post();?> <a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><img src="<?php echo get_post_meta($post->ID, 'slider-image', true); ?>" alt="" title="<?php the_title(); ?>" /></a> <?php endwhile; ?> </div> <!-- END slider --> <br clear="all" /> <?php rewind_posts(); ?> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a> <!-- Do stuff... --> <?php endwhile; endif; ?> </div> <!-- end main-content-werk --> <?php get_footer(); ?> |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 | <?php /* Template Name: Portfolio */ ?> <?php get_header(); ?> <script type="text/javascript" src="<?php bloginfo('template_url'); ?>/js/jquery-1.4.3.min.js"></script> <script type="text/javascript" src="<?php bloginfo('template_url'); ?>/js/jquery.nivo.slider.pack.js"></script> <script type="text/javascript"> jQuery(window).load(function() { jQuery('#slider').nivoSlider({ effect:'fade', //Specify sets like: 'fold,fade,sliceDown' slices:15, animSpeed:500, //Slide transition speed pauseTime:5000, startSlide:0, //Set starting Slide (0 index) directionNav:true, //Next & Prev directionNavHide:true, //Only show on hover controlNav:true, //1,2,3... keyboardNav:true, //Use left & right arrows pauseOnHover:true, //Stop animation while hovering captionOpacity:0.8, //Universal caption opacity }); }); </script> <body> <nav> <?php wp_nav_menu(array('menu' => 'Main Nav Menu')); ?> <a href="http://www.twitter.com/Kortschot" target="_blank" class="twitterbird-nav"></a> </nav> <p style="font-size: 16px; text-align:center; padding:10px 0 0 0;">Deze pagina is nog in ontwikkeling</p> <div id="main-content-werk"> <div id="slider"> <?php $do_not_duplicate = array(); $my_query = new WP_Query('category_name=werk&posts_per_page=3'); while ($my_query->have_posts()) : $my_query->the_post(); $do_not_duplicate[] = $post->ID;?> <a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><img src="<?php echo get_post_meta($post->ID, 'slider-image', true); ?>" alt="" title="<?php the_title(); ?>" /></a> <?php endwhile; ?> </div> <!-- END slider --> <br clear="all" /> <?php $args = array( 'category_name' => 'werk', 'post__not_in' => $do_not_duplicate, 'paged' => get_query_var('paged') ); $my_query = new WP_Query( $args ); while ($my_query->have_posts()) : $my_query->the_post(); ?> <a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a> <?php endwhile; wp_reset_query(); ?> </div> <!-- end main-content-werk --> <?php get_footer(); ?> |
|
Forum Opties | |
---|---|
Forumhop: | |
Hop naar: |