<?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">
<h1 class="subtitle"><?php echo stripslashes(get_option('hb_anasayfa_profil_baslik'));?></h1>
<div class="media">
<a class="pull-left" href="#">
<img src="<?php echo stripslashes(get_option('hb_anasayfa_profil_resim'));?>" alt="<?php the_title(); ?>">
</a>
<div class="media-body">
<?php echo stripslashes(get_option('hb_anasayfa_profil'));?>
</div>
</div>
</div>
</div>
<div class="row-fluid">
<div class="span4">
<h2 class="subtitle"><?php echo stripslashes(get_option('hb_anasayfa_profil_baslik1'));?></h2>
<div id="presto-news-picture-2" class="widget widget-news-picture">
<ul>
<li>
<?php $medya_galeri; $args = array( 'numberposts' => 9, 'post_type' => 'portfolio', 'orderby' => 'date', 'proje_portfolio-type' => stripslashes(get_option('hb_devamedenprojeler')), '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); ?>
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" alt="<?php the_title(); ?>">
<div class="prj-trans"></div>
<div class="prj-maske" style="display: block; opacity: 0; height: 0px;"></div>
<?php $src = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), full );
if ( has_post_thumbnail() ) { ?>
<img src="<?php bloginfo('template_url'); ?>/timthumb.php?src=<?php echo $src[0]; ?>&h=80&w=89&zc=1" alt="<?php the_title(); ?>" title="<?php the_title(); ?>" />
<?php } else { ?>
<img src="<?php bloginfo('template_url'); ?>/timthumb.php?src=<?php echo resimgoster() ?>&h=80&w=89&zc=1" alt="<?php the_title(); ?>" title="<?php the_title(); ?>" />
<?php }?></a>
<?php endforeach; wp_reset_postdata(); ?>
</li>
</ul>
</div>
</div>
<div class="span4">
<h2 class="subtitle"><?php echo stripslashes(get_option('hb_anasayfa_profil_baslik2'));?></h2>
<div id="presto-news-picture-2" class="widget widget-news-picture">
<ul>
<li>
<?php $medya_galeri; $args = array( 'numberposts' => 4, 'post_type' => 'portfolio', 'orderby' => 'date', 'proje_portfolio-type' => stripslashes(get_option('hb_tamamlananprojeler')), '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); ?>
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" alt="<?php the_title(); ?>">
<div class="prj-trans2"></div>
<div class="prj-maske2" style="display: block; opacity: 0; height: 0px;"></div>
<?php $src = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), full );
if ( has_post_thumbnail() ) { ?>
<img src="<?php bloginfo('template_url'); ?>/timthumb.php?src=<?php echo $src[0]; ?>&h=126&w=140&zc=1" alt="<?php the_title(); ?>" title="<?php the_title(); ?>" />
<?php } else { ?>
<img src="<?php bloginfo('template_url'); ?>/timthumb.php?src=<?php echo resimgoster() ?>&h=126&w=140&zc=1" alt="<?php the_title(); ?>" title="<?php the_title(); ?>" />
<?php }?></a>
<?php endforeach; wp_reset_postdata(); ?>
</li>
</ul>
</div>
</div>
<div class="span4">
<h2 class="subtitle"><?php echo stripslashes(get_option('hb_haberler_baslik'));?></h2>
<script type="text/javascript">
$(function() {
$("#haberler").jCarouselLite({
vertical: true,
visible: 3,
auto:4000,
speed:1000
});
});
</script>
<div id="haberler">
<ul>
<?php global $post; $haberler = get_option('hb_haberler'); $args = array( 'numberposts' => 3, 'no_found_rows' => true, 'update_post_term_cache' => false, 'update_post_meta_cache' => false, 'category_name' => stripslashes($haberler)); $myposts = get_posts( $args ); foreach( $myposts as $post ) : setup_postdata($post); ?>
<li>
<div class="ust-sag-haber">
<div class="ust-sag-haber-resim">
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" alt="<?php the_title(); ?>">
<?php $src = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), full );
if ( has_post_thumbnail() ) { ?>
<img src="<?php bloginfo('template_url'); ?>/timthumb.php?src=<?php echo $src[0]; ?>&h=70&w=90&zc=1" alt="<?php the_title(); ?>" title="<?php the_title(); ?>" />
<?php } else { ?>
<img src="<?php bloginfo('template_url'); ?>/timthumb.php?src=<?php echo resimgoster() ?>&h=70&w=90&zc=1" alt="<?php the_title(); ?>" title="<?php the_title(); ?>" />
<?php }?>
</a>
</div>
<div class="ust-sag-haber-baslik">
<a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a>
</div>
<div class="ust-sag-haber-aciklama"><?php echo kisalt($post->post_content, 115); ?> ...</div>
</div></li>
<?php endforeach; wp_reset_postdata(); ?>
</div>
</ul>
</div>
</div></div>
<div class="row-fluid">
<div class="span12">
<h4 class="subtitle"><?php echo stripslashes(get_option('hb_haberler_ref'));?></h4>
<div class="jcarousel-container">
<div class="jcarousel-clip">
<ul id="our-clients" class="our-clients">
<?php $medya_galeri; $args = array( 'numberposts' => 15, 'post_type' => 'referanslar', 'orderby' => 'date', '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>
<div class="kutu-trans"><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" alt="<?php the_title(); ?>"><img src="<?php bloginfo('template_url'); ?>/images/kutu-arka.png" alt="<?php the_title(); ?>" width="172" height="123" alt=""></a></div>
<div class="kutu-resim">
<a href="#" title="<?php the_title(); ?>" alt="<?php the_title(); ?>">
<?php $src = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), full );
if ( has_post_thumbnail() ) { ?>
<img src="<?php bloginfo('template_url'); ?>/timthumb.php?src=<?php echo $src[0]; ?>&h=91&w=154&zc=1" alt="<?php the_title(); ?>" title="<?php the_title(); ?>" class="grayscale"/>
<?php } else { ?>
<img src="<?php bloginfo('template_url'); ?>/timthumb.php?src=<?php echo resimgoster() ?>&h=91&w=154&zc=1" alt="<?php the_title(); ?>" title="<?php the_title(); ?>" class="grayscale"/>
<?php }?></a>
</div>
<?php endforeach; wp_reset_postdata(); ?>
</li>
</ul>
</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();?>