• 17-12-2014, 01:32:24
    #10
    Kimlik doğrulama veya yönetimden onay bekliyor.
    Blogizma adlı üyeden alıntı: mesajı görüntüle
    <?php $mts_options = get_option('sensational'); ?>
    <?php get_header(); ?>
    <div id="page" class="single">
       <?php if ($mts_options['mts_layout'] == 'cslayout' || $mts_options['mts_layout'] == 'sclayout') { ?>
       <?php } else { ?>
          <aside id="sidebar-left" class="left-menu">
             <?php if ( ! dynamic_sidebar( 'Left Sidebar' ) ) : ?>
             <?php endif ?>
          </aside>
       <?php } ?>
       <article class="article">
          <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
             <div id="post-<?php the_ID(); ?>" <?php post_class('g post post_box'); ?>>
                <div class="single_post">
                   <?php if ($mts_options['mts_breadcrumb'] == '1') { ?>
                      <div class="breadcrumb" itemprop="breadcrumb"><?php mts_the_breadcrumb(); ?></div>
                   <?php } ?>
                   <header>
                      <h1 class="title single-title"><?php the_title(); ?></h1>
                      <?php if($mts_options['mts_headline_meta'] == '1') { ?>
                         <div class="post-info">
                            <span class="theauthor"><?php _e('By ','mythemeshop'); the_author_posts_link(); ?></span>  
                            <span class="thetime"><i class="icon-calendar"></i> <?php the_time( get_option( 'date_format' ) ); ?></span>  
                            <span class="thecategory"><i class="icon-tags"></i> <?php the_category(', ') ?></span>  
                            <span class="thecomment"><i class="icon-comments"></i> <a rel="nofollow" href="#comments"><?php echo comments_number();?></a></span>
                         </div>
                      <?php } ?>
                   </header><!--.headline_area-->
                   <?php if($mts_options['mts_social_buttons'] == '1') { ?>
                      <!-- Start Share Buttons -->
                      <div class="shareit">
                         <?php if($mts_options['mts_twitter'] == '1') { ?>
                            <!-- Twitter -->
                            <span class="share-item twitterbtn">
                               <a href="https://twitter.com/share" class="twitter-share-button" data-via="<?php echo $mts_options['mts_twitter_username']; ?>">Tweet</a>
                            </span>
                         <?php } ?>
                         <?php if($mts_options['mts_gplus'] == '1') { ?>
                            <!-- GPlus -->
                            <span class="share-item gplusbtn">
                               <g:plusone size="medium"></g:plusone>
                            </span>
                         <?php } ?>
                         <?php if($mts_options['mts_facebook'] == '1') { ?>
                            <!-- Facebook -->
                            <span class="share-item facebookbtn">
                               <div id="fb-root"></div>
                               <div class="fb-like" data-send="false" data-layout="button_count" data-width="150" data-show-faces="false"></div>
                            </span>
                         <?php } ?>
                         <?php if($mts_options['mts_linkedin'] == '1') { ?>
                            <!--Linkedin -->
                            <span class="share-item linkedinbtn">
                               <script type="IN/Share" data-url="<?php get_permalink(); ?>"></script>
                            </span>
                         <?php } ?>
                         <?php if($mts_options['mts_stumble'] == '1') { ?>
                            <!-- Stumble -->
                            <span class="share-item stumblebtn">
                               <su:badge layout="1"></su:badge>
                            </span>
                         <?php } ?>
                         <?php if($mts_options['mts_pinterest'] == '1') { ?>
                            <!-- Pinterest -->
                            <span class="share-item pinbtn">
                               <a href="http://pinterest.com/pin/create/button/?url=<?php the_permalink(); ?>&media=<?php $thumb = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'large' ); echo $thumb['0']; ?>&description=<?php the_title(); ?>" class="pin-it-button" count-layout="horizontal">Pin It</a>
                            </span>
                         <?php } ?>
                      </div>
                      <!-- end Share Buttons -->
                   <?php } ?>
                   <div class="post-single-content box mark-links">
                      <?php if ($mts_options['mts_posttop_adcode'] != '') { ?>
                         <?php $toptime = $mts_options['mts_posttop_adcode_time']; if (strcmp( date("Y-m-d", strtotime( "-$toptime day")), get_the_time("Y-m-d") ) >= 0) { ?>
                            <div class="topad">
                               <?php echo $mts_options['mts_posttop_adcode']; ?>
                            </div>
                         <?php } ?>
                      <?php } ?>
                    <?php if ( has_post_thumbnail() ) { the_post_thumbnail(); } else {}?>
    				<?php the_content(); ?>
                      <?php wp_link_pages(array('before' => '<div class="pagination">', 'after' => '</div>', 'link_before'  => '<span class="current"><span class="currenttext">', 'link_after' => '</span></span>', 'next_or_number' => 'next_and_number', 'nextpagelink' => __('Next','mythemeshop'), 'previouspagelink' => __('Previous','mythemeshop'), 'pagelink' => '%','echo' => 1 )); ?>
                      <?php if ($mts_options['mts_postend_adcode'] != '') { ?>
                         <?php $endtime = $mts_options['mts_postend_adcode_time']; if (strcmp( date("Y-m-d", strtotime( "-$endtime day")), get_the_time("Y-m-d") ) >= 0) { ?>
                            <div class="bottomad">
                               <?php echo $mts_options['mts_postend_adcode'];?>
                            </div>
                         <?php } ?>
                      <?php } ?> 
                      <?php if($mts_options['mts_tags'] == '1') { ?>
                         <div class="tags"><?php the_tags('',' ') ?></div>
                      <?php } ?>
                   </div>
                </div><!--.post-content box mark-links-->        
                <?php if($mts_options['mts_related_posts'] == '1') { ?>  
                   <!-- Start Related Posts -->
                   <?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'=>3, 'ignore_sticky_posts' => 1, 'orderby' => 'rand' );
                   $my_query = new wp_query( $args ); if( $my_query->have_posts() ) {
                      echo '<div class="related-posts"><div class="postauthor-top"><h3>'.__('Related Posts','mythemeshop').'</h3></div><ul>';
                      $counter = '0'; while( $my_query->have_posts() ) { ++$counter; if($counter == 3) { $postclass = 'last'; $counter = 0; } else { $postclass = ''; } $my_query->the_post(); $li = 1; ?>
                      <li class="<?php echo $postclass; ?> relatepostli<?php echo $li+$counter; ?>">
                         <a rel="nofollow" class="relatedthumb" href="<?php the_permalink()?>" title="<?php the_title(); ?>">
                            <span class="rthumb">
                               <?php if(has_post_thumbnail()): ?>
                                  <?php the_post_thumbnail('related', 'title='); ?>
                               <?php else: ?>
                                  <img src="<?php echo get_template_directory_uri(); ?>/images/relthumb.png" alt="<?php the_title(); ?>"  width='180' height='120' class="wp-post-image" />
                               <?php endif; ?>
                            </span>
                            <span class="relatedthumb">
                               <?php the_title(); ?>
                            </span>
     
                         </a>
                      </li>
                      <?php } echo '</ul></div>'; }} wp_reset_query(); ?>
                   <!-- .related-posts -->
                <?php }?>   
                <?php if($mts_options['mts_author_box'] == '1') { ?>
                   <div class="postauthor">
                      <?php if(function_exists('get_avatar')) { echo get_avatar( get_the_author_meta('email'), '80' );  } ?>
                      <h4><?php _e('Written by ', 'mythemeshop'); ?> <a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>" rel="nofollow"><?php the_author_meta( 'nickname' ); ?></a></h4>
                      <p><?php the_author_meta('description') ?></p>
                   </div>
                <?php }?> 
             </div><!--.g post-->
             <?php comments_template( '', true ); ?>
          <?php endwhile; /* end loop */ ?>
       </article>
       <?php get_sidebar(); ?>
    <?php get_footer(); ?>
    Bunu bir deneyelim.

    Oldu cok teşekkürler fakat yazı ile resim arasında hiç boşluk olmadı neredeyse dip dibe biraz daha yazı içindeki resmi kücültebiliyormuyuz yada nereden oynama yapabilirim?
  • 17-12-2014, 01:33:42
    #11
    satır 80'de size verdiğim kod var hemen altına <div style="clear:both; height:10px;"></div> şeklinde eklersiniz 10px yüksekliği size kalmış temaya göre artırılabilir.
  • 17-12-2014, 01:40:00
    #12
    Üyeliği durduruldu
    Blogizma adlı üyeden alıntı: mesajı görüntüle
    satır 80'de size verdiğim kod var hemen altına <div style="clear:both; height:10px;"></div> şeklinde eklersiniz 10px yüksekliği size kalmış temaya göre artırılabilir.
    Hocam o şekilde koyunca resim yazının üstünde kalıyor yani başlığın altında ben ise şu şekilde reklam kısmı varya örnek veriyorum orada öne çıkartılmış görselin çıkmasını istiyorum.onun kodu nedir acaba?

  • 17-12-2014, 01:42:04
    #13
    Bunu da @byzd cevaplasın Hayırlı geceler olsun.
  • 17-12-2014, 01:57:55
    #14
    Üyeliği durduruldu
    Blogizma adlı üyeden alıntı: mesajı görüntüle
    Bunu da @byzd cevaplasın Hayırlı geceler olsun.
    Teşekkürler bakalım byzd arkadaştan bekliyoruz.
  • 17-12-2014, 02:03:33
    #15
    Üyeliği durduruldu
    Yardımcı olayım kardeşim skype ver yada ekle byzdkyr
  • 18-12-2014, 15:27:46
    #16
    Kimlik doğrulama veya yönetimden onay bekliyor.
    Yazım bulunsun aynı sorunu yaşıyordum bende. Akşam denicem

    SM-N910C cihazımdan gönderildi