<?php include(TEMPLATEPATH . '/header.php'); ?>
<?php wp_reset_query(); ?>
<div class="genel">
<div id="haberBaslik">
<div class="detayBaslik">
<h1 itemprop="headline"><?php the_title(); ?></h1>
<h2 itemprop="description"><?php if ( ! has_excerpt() ) { echo '';} else { the_excerpt();} ?></h2>
</div>
</div>
<!--site sol-->
<div id="siteSol">
<div style="margin-bottom: 0px; margin-top: 20px;" class="haberResim" itemscope="" itemtype="http://schema.org/Article">
<meta itemprop="image" content="<?php if (has_post_thumbnail()) { $resimyolu = wp_get_attachment_image_src(get_post_thumbnail_id(), 'full'); echo $resimyolu[0];} ?>">
<img src="<?php if (has_post_thumbnail()) { $resimyolu = wp_get_attachment_image_src(get_post_thumbnail_id(), 'full'); echo $resimyolu[0];} ?>" alt="<?php the_title(); ?>" width="780" height="auto"/>
</div>
<?php if(get_option('singleReklam1'))
{echo '<div style="width: 100%; height: auto; overflow: hidden; display: block; position: relative; float: left; margin: 0px 0px 0px 0px;"><div style="width: 728px; height: auto; margin: 0px auto 20px auto; display: block; text-align: center; overflow: hidden; position: relative;">'.stripslashes(get_option('singleReklam1')).'</div></div><div class="temizle"></div>';}
else {} ?>
<div style="margin-top: 0px;" id="haberAlani">
<?php
$authorid=$post->post_author;
$status = get_the_author_meta('user_level', $authorid);
if ($status == 7 || $status == 2) {
$nickname = get_the_author_meta( 'nickname', $authorid );
$eposta = get_the_author_meta( 'user_email', $authorid );
$biyografi = get_the_author_meta( 'user_description', $authorid );
$isim = get_the_author_meta( 'display_name', $authorid );
$avatar = get_avatar( $authorid, 90 );
$tumyazi = '<a href="/?author='.$authorid.'"><i class="fa fa-caret-right"></i> TÜM YAZILARI</a>';
?>
<div style="width: 700px; height: 90px; overflow: hidden; display: block; background: #f3f3f3; position: relative; margin-bottom: 20px; padding: 20px;">
<div class="ySayfasiResimT"><?php echo get_avatar( get_the_author_meta('ID'), 90 );?></div>
<div class="ySayfasiIsimT"><strong><?php echo $isim; ?></strong><span>( <?php echo $eposta; ?> )</span></div>
<div class="ySayfasiBiyT"><?php echo $biyografi; ?></div>
<div class="ySayfasiLink"><?php echo $tumyazi; ?></div>
</div>
<div class="temizle"></div>
<?php } ?>
<div class="haberDetaySosyal">
<div style="width: 450px; height: auto; float: left;">
<a target="_blank" href="http://www.facebook.com/share.php?u=<?php the_permalink('') ?>" title="facebook"><i class="fab fa-facebook-f"></i></a>
<a target="_blank" href="http://twitter.com/home/?status=<?php the_title(''); ?>+<?php the_permalink('') ?>" title="twitter"><i class="fab fa-twitter"></i></a>
<a target="_blank" href="https://plus.google.com/share?url=<?php the_permalink('') ?>" title="google plus"><i class="fab fa-google-plus-g"></i></a>
<a target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&url=<?php the_permalink('') ?>" title="linkedin"><i class="fab fa-linkedin-in"></i></a>
<a target="_blank" href="whatsapp://send?text=<?php the_permalink();?>&t=<?php the_title(); ?>" data-action="share/whatsapp/share"><i class="fab fa-whatsapp"></i></a>
<a href="<?php the_permalink('') ?>#respond" title="yorum yaz"><i class="far fa-comments"></i></a>
<div style="font-size: 22px;padding: 15px 0px;width: 100px; font-weight: 700; font-size: 16px;overflow: hidden;display: block;text-align: center;color: #ffffff;float: left;background: #F4B140;"><?php if(function_exists('the_views')) { the_views(); } ?></div>
</div>
<div style="width: 270px; height: 50px; line-height: 50px; overflow: hidden; display: block; position: relative; background: #efefef; padding-right: 20px;">
<div class="haberDetayTarih"><?php the_time('d F Y'); ?> - <?php the_time('G:i'); ?></div>
</div>
</div>
<div itemprop="articleBody" class="haberDetayIcerik">
<?php if(get_option('singleReklam2'))
{echo '<div style="margin-right: 10px; float: left; width: auto; height: auto; display: block; overflow: hidden;">'.stripslashes(get_option('singleReklam2')).'</div>';}
else {} ?>
<?php if(get_option('konuiciBenzerim')=="true"){ ?>
<?php add_filter('the_content', 'yaziIciBenzer_goster', 25); ?>
<?php } ?>
<?php while(have_posts()) : the_post(); ?>
<?php echo the_content(); ?>
<?php endwhile; ?>
<?php wp_reset_query(); ?>
</div>
<div class="detayEtiket"><?php the_tags(' ',''); ?></div>
</div>
<?php if(get_option('singleReklam3'))
{echo '<div style="width: 780px; height: auto; overflow: hidden; display: block; position: relative; float: left; margin: 0px 0px 0px 0px;"><div style="width: 728px; height: auto; margin: 20px auto 0px auto; display: block; text-align: center; overflow: hidden; position: relative;">'.stripslashes(get_option('singleReklam3')).'</div></div><div class="temizle"></div>';}
else {} ?>
<?php if(get_option('wpyorum')=="false"){ ?>
<div id="yorumAlani">
<div class="genelBaslik">
<span class="genelBaslik2">
<strong>HABER HAKKINDA GÖRÜŞ BELİRT</strong>
</span>
<div style="position: absolute;right: 20px;top: 0px;font-size: 12px;font-weight: 800;"><?php comments_number('Yorum Yok', '1 ADET YORUM YAPILDI', '% ADET YORUM YAPILDI' );?></div>
</div>
<div class="temizle"></div>
<?php comments_template ();?>
</div>
<?php }?>
<?php if(get_option('faceyorum')=="true"){ ?>
<div style="width: 740px; padding: 20px;" id="yorumAlani">
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/tr_TR/all.js#xfbml=1&appId=325510860880549";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<div class="fb-comments" data-href="<?php the_permalink(); ?>" data-width="740" data-num-posts="10"></div>
</div>
<?php }?>
</div>
<!--site sol-->
<!--site sağ-->
<div id="siteSag">
<!--sağ şablon 1 alanı-->
<div class="siteSag1">
<div class="sagGenelBaslik"><span class="sagGenelBaslik2"><strong>İLGİNİZİ ÇEKEBİLİR</strong></span></div>
<div style="display: block;">
<?php
$categories = get_the_category($post->ID);
if ($categories) {
$category_ids = array();
foreach($categories as $individual_category) $category_ids[] = $individual_category->term_id;
$args=array(
'category__in' => $category_ids,
'post__not_in' => array($post->ID),
'showposts'=>5,
'caller_get_posts'=>1
);
$my_query = new wp_query($args);
if( $my_query->have_posts() ) {
while ($my_query->have_posts()) {
$my_query->the_post();
?>
<div class="sagSablon1">
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
<img src="<?php if (has_post_thumbnail()) { $resimyolu = wp_get_attachment_image_src(get_post_thumbnail_id(), 'resim1'); echo $resimyolu[0];} ?>" alt="<?php the_title(); ?>" width="142" height="88"/>
<strong><?php the_title(); ?></strong>
</a>
</div>
<?php
}
}
else {}
wp_reset_query();
}
?>
</div>
</div>
<!--sağ şablon 1 alanı-->
<div class="temizle"></div>
<?php include(TEMPLATEPATH . '/dosyalar/sagblok/sagBlok.php'); ?>
</div>
<!--site sağ-->
</div>
<?php if(get_option('sagilginiziCekebilir')=="true"){ ?>
<script type="text/javascript">$(window).scroll(function(){if($(document).scrollTop()>=$(document).height()/4)$("#socialslide").show("slow");else $("#socialslide").hide("slow");});function closesocialslide(){$('#socialslide').remove();$.ajax();}</script>
<div id="socialslide" style="display: none;">
<a href="javascript:void(0);" onclick="return closesocialslide();" style="color: #454545; font-size: 12px; font-weight: 900; position: absolute; right: 10px; top: 11px;"><i class="fa fa-times"></i></a>
<font style="font-weight:600">İLGİNİZİ ÇEKEBİLİR</font>
<div style="width: 280px; height: auto; overflow: hidden; display:block; padding: 10px 10px 0px 10px;">
<?php
$categories = get_the_category($post->ID);
if ($categories) {
$category_ids = array();
foreach($categories as $individual_category) $category_ids[] = $individual_category->term_id;
$args=array(
'category__in' => $category_ids,
'post__not_in' => array($post->ID),
'showposts'=>2,
'offset'=>7,
'caller_get_posts'=>1
);
$my_query = new wp_query($args);
if( $my_query->have_posts() ) {
while ($my_query->have_posts()) {
$my_query->the_post();
?>
<div class="ilgiceker">
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
<img src="<?php if (has_post_thumbnail()) { $resimyolu = wp_get_attachment_image_src(get_post_thumbnail_id(), 'resim3'); echo $resimyolu[0];} ?>" alt="<?php the_title(); ?>"/>
<strong><?php the_title(); ?></strong>
</a>
</div>
<?php
}
}
else {}
wp_reset_query();
}
?>
</div>
</div>
<?php } ?>
<?php include(TEMPLATEPATH . '/footer.php'); ?>