de yedek
<?php
/**
* Template Name: Anasayfa
*
* A custom page template for blog page.
*
* The "Template Name:" bit above allows this to be selectable
* from a dropdown menu on the edit page screen.
*
* @package WordPress
*/
get_header(); ?>
<div id="wrapper">
<div class="container">
<div class="row-fluid">
<div class="span12">
<div class="sliderbg"></div>
<div class="slideryon">
<script type="text/javascript" charset="utf-8">
jQuery(window).load(function() {
jQuery('.flexslider').flexslider({
animation: "slide",
easing: "linear",
startAt: 0,
animationLoop: true,
direction: "horizontal",
slideshowSpeed: 5000,
animationSpeed: 600
});
});
</script>
<div class="flexslider">
<ul class="slides">
<?php global $post; $args = array( 'numberposts' => 5, 'post_type' => 'slides', 'no_found_rows' => true, 'update_post_term_cache' => false, 'update_post_meta_cache' => false ); $myposts = get_posts( $args ); foreach( $myposts as $post ) : setup_postdata($post); ?>
<li>
<img src="<?php bloginfo('template_url'); ?>/timthumb.php?src=<?php echo esc_url( get_post_meta( get_the_id(), 'wptuts_slideurl', true ) ); ?>&h=380&w=940&zc=1" alt="<?php the_title(); ?>" title="<?php the_title(); ?>" />
</li>
<?php endforeach; wp_reset_postdata(); ?>
</ul>
</div>
</div>
</div>
<div class="row-fluid">
<div class="span12">
</div>
</div>
</div>
<script type="text/javascript">
function mycarousel_initCallback(carousel)
{
// Disable autoscrolling if the user clicks the prev or next button.
carousel.buttonNext.bind('click', function() {
carousel.startAuto(0);
});
carousel.buttonPrev.bind('click', function() {
carousel.startAuto(0);
});
// Pause autoscrolling if the user moves with the cursor over the clip.
carousel.clip.hover(function() {
carousel.stopAuto();
}, function() {
carousel.startAuto();
});
};
jQuery(document).ready(function() {
jQuery('#our-clients').jcarousel({
auto: 3,
wrap: 'last',
initCallback: mycarousel_initCallback
});
});
</script>
<script type='text/javascript' src='<?php bloginfo('template_url'); ?>/js/jcarousel.js'></script>
</div> <!--/container--></div>
<div style="clear:both;"></div>
<?php get_footer();?>