• 29-05-2013, 22:04:26
    #1
    Kimlik doğrulama veya yönetimden onay bekliyor.
    Merhaba arkadaslar

    Bu yazıdakı büyük resim nasıl kaldırırım.

    http://www.piyasagundemi.com/ekonomi...ar-dikkat.html

    Şimdiden teşekkürler
  • 29-05-2013, 22:32:06
    #2
    <div class=​"imageholder single-image">​ kodunu single.php'de aratın ve içinde resim çağırma kodu varsa silin hocam.
  • 29-05-2013, 23:33:02
    #3
    uCinar adlı üyeden alıntı: mesajı görüntüle
    <div class=​"imageholder single-image">​ kodunu single.php'de aratın ve içinde resim çağırma kodu varsa silin hocam.
    <?php 
    
    if(is_singular('message')) die('Message Cannot be Accessed !');
        
    	get_header(); 
    	
    	$hasSidebar = "";
    $sidebar =    get_post_meta($post->ID,'_sidebar',true);
    $sidebar = (trim($sidebar)=="") ? "right-sidebar" : $sidebar; // ~~ For pages existing prior to theme activation should have right sidebar by default ~   
    
    if($sidebar!="full") :
    	
    	$hasSidebar = ($sidebar == "right-sidebar") ?	"hasRightSidebar" : "hasLeftSidebar";
    	$layout = 'two-third-width'; 
    	$width = 640; $height = 309;
    else :
    	$layout = 'full-width'; $width = 960; $height = 390;
    endif;
    	$image_flag = false;
    	$vthumb = trim(get_post_meta($post->ID,"video_thumbnail",true));
    	?>   
    
    
    
    <div class="skeleton clearfix page single <?php echo $hasSidebar; ?>"> <!-- Start of main container  -->
          
          <div class="content clearfix"> <!-- Start of main content  -->
                     
                <div class="<?php if($sidebar!="full") echo "two-third-width"; else echo "full-width"; ?>"> <!-- Start of content  -->
                 
                  <?php 	wp_reset_query(); if(have_posts()): while(have_posts()) : the_post(); ?> <!-- query begins  -->
                   <h1 class="custom-font heading"><?php the_title(); ?></h1>
             <?php 
    		 
    		  if(trim($vthumb)=="Yes") :
    			
    						$video_type =  trim(get_post_meta($post->ID,"video_type",true));
    						$video_link =  trim(get_post_meta($post->ID,"video_code",true));
    			  
    			  
    						$code = '';
    						switch($video_type){
    							  
    							  case "Dedicated" : $code = do_shortcode("[video src='{$video_link}' height={$height} width={$width} title='' ]");  break;
    							  case "Youtube" : 
    							  $video_link = explode("v=", $video_link);
    							  $code = do_shortcode("[youtube id='{$video_link[1]}' height='{$height}' width='{$width}' title='' ]");  break;
    							  case "Vimeo" :  
    							  $video_link = explode("/", $video_link);
    							  $code = do_shortcode("[vimeo id='".$video_link[count($video_link)-1]."' height='{$height}' width='{$width}' title='' ]");  break;
    							  
    							  
    							  }
    						echo "<div class='imageholder single-image'> $code </div>";		
    						
    						elseif (  (function_exists('has_post_thumbnail')) && (has_post_thumbnail())   ) :
                           
    							 $id = get_post_thumbnail_id();
    							 $ar = wp_get_attachment_image_src( $id, array(9999,9999) );
    							 $theImageSrc = $helper->getMUFix($ar[0]);
                                 $code = $helper->imageDisplay($theImageSrc , $height , $width , true , $ar[0] , false, false,'' ,'' ,true);  
    						
    						echo "<div class='imageholder single-image'> ".strip_tags($code,"<img><span>")." </div>";		
    						
    						endif; ?>
    		 
    		 
    		 
                 
                  
                  <p class="meta-data">  <!-- Meta data below title  -->
                    by <span><?php the_author_posts_link() ?></span> on 
    			       <span><?php echo get_the_date("F j, Y"); ?> </span> with
                       <span><?php comments_number('0 Comments','1 Comments','% Comments'); ?></span> in
                  
                  <?php  $cats = wp_get_post_categories( $post->ID );
    					 $str = ' '; $temp = false;
    					 
    					 foreach($cats as $c)
    						{
    					 	 $cat = get_category( $c );
    						 $link = get_category_link( $c );
    							if(!$temp)
    								 {
    									 
    									 $str = $str."  <a href=' $link' >".$cat->name."</a>";
    									 $temp = true;
    								 }
    							 else
    							  $str = $str." , <a href=' $link' >".$cat->name."</a>";
    					  }
    						echo  "<span>$str</span>"; ?>
                                
                  
                  </p>
                          
                          
                   <div class="single-content"> <?php the_content(); ?> </div> <!-- main content  -->
                 
                  <div class="bottom-info"> <!-- meta data below the content -->
                   
                  <?php echo human_time_diff(get_the_time('U'), current_time('timestamp'));  _e(' ago by ','h-framework'); the_author_posts_link(); _e(' in','h-framework'); ?>  <?php echo $str; _e('. You can follow any responses to this entry through the','h-framework'); ?> |  <a href="<?php 
    			  bloginfo('rss_url') ?>"><?php _e('RSS feed','h-framework') ?></a>. <?php _e('You can leave a response, or trackback from your own site.','h-framework') ?></div>
                 
                 
                  <!-- ===================== Social sharing via add this ======================== -->
                 
                   <?php if($super_options[SN."_social_set"]==""||$super_options[SN."_social_set"]=="true") { ?>     
             <div class="social-stuff clearfix">
                     <?php $helper->socialStuff(); ?> 
             </div>  
            <?php } ?>  
                  
             
             
              <?php  if($super_options[SN."_author_bio"]=="" || $super_options[SN."_author_bio"]=="true") { ?>                    
                      <div id="authorbox" class="clearfix">  
                                <div class="author-avatar">
                                <?php if (function_exists('get_avatar')) { echo get_avatar( get_the_author_meta('email'), '80' ); }?>  
                                </div>
                                <div class="authortext">  
                                 <h6><?php _e('About ','h-framework'); the_author_posts_link(); ?></h6>  
                                 <p><?php the_author_meta('description'); ?></p>  
                                 
                                      <ul class="right clearfix"><li> <a href="<?php the_author_url();?> "> <?php _e('Website','h-framework'); ?> </a>  <?php the_author_posts_link();  ?> </li> </ul>
                              
                              </div>  
                  </div>
           <?php }?>  
           
           
           
             <?php if( ($super_options[SN."_popular"]==""||$super_options[SN."_popular"]=="true" )) { ?>    
                 
               <div class="related-posts">   
               <h2 class="custom-font"><?php _e('Related Posts','h-framework'); ?></h2>   
                  <ul class="clearfix" >
                			<?php 
    						$i = 0;
    						
    						$tags = wp_get_post_tags($post->ID);
    						if ($tags) {
    							$tag_ids = array();
    							foreach($tags as $individual_tag) $tag_ids[] = $individual_tag->term_id;
    							$args=array(
    							'tag__in' => $tag_ids,
    							'post__not_in' => array($post->ID),
    							'posts_per_page'=>4, // Number of related posts that will be shown.
    							'caller_get_posts'=>1
    							);
    						}
    
    						
    						$popPosts = new WP_Query( $args );
    					  
    						while ($popPosts->have_posts()) : $popPosts->the_post();  $more = 0;?>
                            
                            <li class="clearfix" >
                            	<?php if (  (function_exists('has_post_thumbnail')) && (has_post_thumbnail())  ) : /* if post has post thumbnail */ ?>
                                <div class="image">
                                <span class="hover-image"></span>
                                    <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail(array(125,125)); ?></a>
                                  
                                </div><!--image-->
                                  <h2 class="custom-font"><a href="<?php the_permalink(); ?>" title="<?php the_title();?>"><?php the_title();?></a></h2>
                                <?php endif; ?>
                            </li>
                            
                            
                            <?php if($i>=3) break; $i++; endwhile; ?>
                            
                            <?php wp_reset_query(); ?>
    
                        </ul>
            
    		</div>
            
               
         <?php }?>   
         
              <div id="comments_template">
                  <?php comments_template(); ?>
              </div>  
                
                   <?php endwhile; endif; ?>
                    
                                         
                </div>  
                
                  <?php  
    	  wp_reset_query();
    	  if($sidebar!="full") 
    	  get_sidebar();  
    	 ?>   
                     
          </div>
                      
      
    </div> 
        
    <?php get_footer(); ?>
    hangisi hocam?
  • 29-05-2013, 23:37:04
    #4
    <?php  
    
    if(is_singular('message')) die('Message Cannot be Accessed !'); 
         
        get_header();  
         
        $hasSidebar = ""; 
    $sidebar =    get_post_meta($post->ID,'_sidebar',true); 
    $sidebar = (trim($sidebar)=="") ? "right-sidebar" : $sidebar; // ~~ For pages existing prior to theme activation should have right sidebar by default ~    
    
    if($sidebar!="full") : 
         
        $hasSidebar = ($sidebar == "right-sidebar") ?    "hasRightSidebar" : "hasLeftSidebar"; 
        $layout = 'two-third-width';  
        $width = 640; $height = 309; 
    else : 
        $layout = 'full-width'; $width = 960; $height = 390; 
    endif; 
        $image_flag = false; 
        $vthumb = trim(get_post_meta($post->ID,"video_thumbnail",true)); 
        ?>    
    
    
    
    <div class="skeleton clearfix page single <?php echo $hasSidebar; ?>"> <!-- Start of main container  --> 
           
          <div class="content clearfix"> <!-- Start of main content  --> 
                      
                <div class="<?php if($sidebar!="full") echo "two-third-width"; else echo "full-width"; ?>"> <!-- Start of content  --> 
                  
                  <?php     wp_reset_query(); if(have_posts()): while(have_posts()) : the_post(); ?> <!-- query begins  --> 
                   <h1 class="custom-font heading"><?php the_title(); ?></h1> 
    
              
              
              
                  
                   
                  <p class="meta-data">  <!-- Meta data below title  --> 
                    by <span><?php the_author_posts_link() ?></span> on  
                       <span><?php echo get_the_date("F j, Y"); ?> </span> with 
                       <span><?php comments_number('0 Comments','1 Comments','% Comments'); ?></span> in 
                   
                  <?php  $cats = wp_get_post_categories( $post->ID ); 
                         $str = ' '; $temp = false; 
                          
                         foreach($cats as $c) 
                            { 
                              $cat = get_category( $c ); 
                             $link = get_category_link( $c ); 
                                if(!$temp) 
                                     { 
                                          
                                         $str = $str."  <a href=' $link' >".$cat->name."</a>"; 
                                         $temp = true; 
                                     } 
                                 else 
                                  $str = $str." , <a href=' $link' >".$cat->name."</a>"; 
                          } 
                            echo  "<span>$str</span>"; ?> 
                                 
                   
                  </p> 
                           
                           
                   <div class="single-content"> <?php the_content(); ?> </div> <!-- main content  --> 
                  
                  <div class="bottom-info"> <!-- meta data below the content --> 
                    
                  <?php echo human_time_diff(get_the_time('U'), current_time('timestamp'));  _e(' ago by ','h-framework'); the_author_posts_link(); _e(' in','h-framework'); ?>  <?php echo $str; _e('. You can follow any responses to this entry through the','h-framework'); ?> |  <a href="<?php  
                  bloginfo('rss_url') ?>"><?php _e('RSS feed','h-framework') ?></a>. <?php _e('You can leave a response, or trackback from your own site.','h-framework') ?></div> 
                  
                  
                  <!-- ===================== Social sharing via add this ======================== --> 
                  
                   <?php if($super_options[SN."_social_set"]==""||$super_options[SN."_social_set"]=="true") { ?>      
             <div class="social-stuff clearfix"> 
                     <?php $helper->socialStuff(); ?>  
             </div>   
            <?php } ?>   
                   
              
              
              <?php  if($super_options[SN."_author_bio"]=="" || $super_options[SN."_author_bio"]=="true") { ?>                     
                      <div id="authorbox" class="clearfix">   
                                <div class="author-avatar"> 
                                <?php if (function_exists('get_avatar')) { echo get_avatar( get_the_author_meta('email'), '80' ); }?>   
                                </div> 
                                <div class="authortext">   
                                 <h6><?php _e('About ','h-framework'); the_author_posts_link(); ?></h6>   
                                 <p><?php the_author_meta('description'); ?></p>   
                                  
                                      <ul class="right clearfix"><li> <a href="<?php the_author_url();?> "> <?php _e('Website','h-framework'); ?> </a>  <?php the_author_posts_link();  ?> </li> </ul> 
                               
                              </div>   
                  </div> 
           <?php }?>   
            
            
            
             <?php if( ($super_options[SN."_popular"]==""||$super_options[SN."_popular"]=="true" )) { ?>     
                  
               <div class="related-posts">    
               <h2 class="custom-font"><?php _e('Related Posts','h-framework'); ?></h2>    
                  <ul class="clearfix" > 
                            <?php  
                            $i = 0; 
                             
                            $tags = wp_get_post_tags($post->ID); 
                            if ($tags) { 
                                $tag_ids = array(); 
                                foreach($tags as $individual_tag) $tag_ids[] = $individual_tag->term_id; 
                                $args=array( 
                                'tag__in' => $tag_ids, 
                                'post__not_in' => array($post->ID), 
                                'posts_per_page'=>4, // Number of related posts that will be shown. 
                                'caller_get_posts'=>1 
                                ); 
                            } 
    
                             
                            $popPosts = new WP_Query( $args ); 
                           
                            while ($popPosts->have_posts()) : $popPosts->the_post();  $more = 0;?> 
                             
                            <li class="clearfix" > 
                                <?php if (  (function_exists('has_post_thumbnail')) && (has_post_thumbnail())  ) : /* if post has post thumbnail */ ?> 
                                <div class="image"> 
                                <span class="hover-image"></span> 
                                    <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail(array(125,125)); ?></a> 
                                   
                                </div><!--image--> 
                                  <h2 class="custom-font"><a href="<?php the_permalink(); ?>" title="<?php the_title();?>"><?php the_title();?></a></h2> 
                                <?php endif; ?> 
                            </li> 
                             
                             
                            <?php if($i>=3) break; $i++; endwhile; ?> 
                             
                            <?php wp_reset_query(); ?> 
    
                        </ul> 
             
            </div> 
             
                
         <?php }?>    
          
              <div id="comments_template"> 
                  <?php comments_template(); ?> 
              </div>   
                 
                   <?php endwhile; endif; ?> 
                     
                                          
                </div>   
                 
                  <?php   
          wp_reset_query(); 
          if($sidebar!="full")  
          get_sidebar();   
         ?>    
                      
          </div> 
                       
       
    </div>  
         
    <?php get_footer(); ?>
    o kısmı tamamen kaldırmak istiyorsanız bunu kullanın.
  • 29-05-2013, 23:40:41
    #5
    tesekkur ederim hocam ise yaradi.

    xFactoria adlı üyeden alıntı: mesajı görüntüle
    <?php  
    
    if(is_singular('message')) die('Message Cannot be Accessed !'); 
         
        get_header();  
         
        $hasSidebar = ""; 
    $sidebar =    get_post_meta($post->ID,'_sidebar',true); 
    $sidebar = (trim($sidebar)=="") ? "right-sidebar" : $sidebar; // ~~ For pages existing prior to theme activation should have right sidebar by default ~    
    
    if($sidebar!="full") : 
         
        $hasSidebar = ($sidebar == "right-sidebar") ?    "hasRightSidebar" : "hasLeftSidebar"; 
        $layout = 'two-third-width';  
        $width = 640; $height = 309; 
    else : 
        $layout = 'full-width'; $width = 960; $height = 390; 
    endif; 
        $image_flag = false; 
        $vthumb = trim(get_post_meta($post->ID,"video_thumbnail",true)); 
        ?>    
    
    
    
    <div class="skeleton clearfix page single <?php echo $hasSidebar; ?>"> <!-- Start of main container  --> 
           
          <div class="content clearfix"> <!-- Start of main content  --> 
                      
                <div class="<?php if($sidebar!="full") echo "two-third-width"; else echo "full-width"; ?>"> <!-- Start of content  --> 
                  
                  <?php     wp_reset_query(); if(have_posts()): while(have_posts()) : the_post(); ?> <!-- query begins  --> 
                   <h1 class="custom-font heading"><?php the_title(); ?></h1> 
    
              
              
              
                  
                   
                  <p class="meta-data">  <!-- Meta data below title  --> 
                    by <span><?php the_author_posts_link() ?></span> on  
                       <span><?php echo get_the_date("F j, Y"); ?> </span> with 
                       <span><?php comments_number('0 Comments','1 Comments','% Comments'); ?></span> in 
                   
                  <?php  $cats = wp_get_post_categories( $post->ID ); 
                         $str = ' '; $temp = false; 
                          
                         foreach($cats as $c) 
                            { 
                              $cat = get_category( $c ); 
                             $link = get_category_link( $c ); 
                                if(!$temp) 
                                     { 
                                          
                                         $str = $str."  <a href=' $link' >".$cat->name."</a>"; 
                                         $temp = true; 
                                     } 
                                 else 
                                  $str = $str." , <a href=' $link' >".$cat->name."</a>"; 
                          } 
                            echo  "<span>$str</span>"; ?> 
                                 
                   
                  </p> 
                           
                           
                   <div class="single-content"> <?php the_content(); ?> </div> <!-- main content  --> 
                  
                  <div class="bottom-info"> <!-- meta data below the content --> 
                    
                  <?php echo human_time_diff(get_the_time('U'), current_time('timestamp'));  _e(' ago by ','h-framework'); the_author_posts_link(); _e(' in','h-framework'); ?>  <?php echo $str; _e('. You can follow any responses to this entry through the','h-framework'); ?> |  <a href="<?php  
                  bloginfo('rss_url') ?>"><?php _e('RSS feed','h-framework') ?></a>. <?php _e('You can leave a response, or trackback from your own site.','h-framework') ?></div> 
                  
                  
                  <!-- ===================== Social sharing via add this ======================== --> 
                  
                   <?php if($super_options[SN."_social_set"]==""||$super_options[SN."_social_set"]=="true") { ?>      
             <div class="social-stuff clearfix"> 
                     <?php $helper->socialStuff(); ?>  
             </div>   
            <?php } ?>   
                   
              
              
              <?php  if($super_options[SN."_author_bio"]=="" || $super_options[SN."_author_bio"]=="true") { ?>                     
                      <div id="authorbox" class="clearfix">   
                                <div class="author-avatar"> 
                                <?php if (function_exists('get_avatar')) { echo get_avatar( get_the_author_meta('email'), '80' ); }?>   
                                </div> 
                                <div class="authortext">   
                                 <h6><?php _e('About ','h-framework'); the_author_posts_link(); ?></h6>   
                                 <p><?php the_author_meta('description'); ?></p>   
                                  
                                      <ul class="right clearfix"><li> <a href="<?php the_author_url();?> "> <?php _e('Website','h-framework'); ?> </a>  <?php the_author_posts_link();  ?> </li> </ul> 
                               
                              </div>   
                  </div> 
           <?php }?>   
            
            
            
             <?php if( ($super_options[SN."_popular"]==""||$super_options[SN."_popular"]=="true" )) { ?>     
                  
               <div class="related-posts">    
               <h2 class="custom-font"><?php _e('Related Posts','h-framework'); ?></h2>    
                  <ul class="clearfix" > 
                            <?php  
                            $i = 0; 
                             
                            $tags = wp_get_post_tags($post->ID); 
                            if ($tags) { 
                                $tag_ids = array(); 
                                foreach($tags as $individual_tag) $tag_ids[] = $individual_tag->term_id; 
                                $args=array( 
                                'tag__in' => $tag_ids, 
                                'post__not_in' => array($post->ID), 
                                'posts_per_page'=>4, // Number of related posts that will be shown. 
                                'caller_get_posts'=>1 
                                ); 
                            } 
    
                             
                            $popPosts = new WP_Query( $args ); 
                           
                            while ($popPosts->have_posts()) : $popPosts->the_post();  $more = 0;?> 
                             
                            <li class="clearfix" > 
                                <?php if (  (function_exists('has_post_thumbnail')) && (has_post_thumbnail())  ) : /* if post has post thumbnail */ ?> 
                                <div class="image"> 
                                <span class="hover-image"></span> 
                                    <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail(array(125,125)); ?></a> 
                                   
                                </div><!--image--> 
                                  <h2 class="custom-font"><a href="<?php the_permalink(); ?>" title="<?php the_title();?>"><?php the_title();?></a></h2> 
                                <?php endif; ?> 
                            </li> 
                             
                             
                            <?php if($i>=3) break; $i++; endwhile; ?> 
                             
                            <?php wp_reset_query(); ?> 
    
                        </ul> 
             
            </div> 
             
                
         <?php }?>    
          
              <div id="comments_template"> 
                  <?php comments_template(); ?> 
              </div>   
                 
                   <?php endwhile; endif; ?> 
                     
                                          
                </div>   
                 
                  <?php   
          wp_reset_query(); 
          if($sidebar!="full")  
          get_sidebar();   
         ?>    
                      
          </div> 
                       
       
    </div>  
         
    <?php get_footer(); ?>
    o kısmı tamamen kaldırmak istiyorsanız bunu kullanın.


    --R10.NET; Flood Engellendi -->-> Yeni yazılan mesaj 22:40:41 -->-> Daha önceki mesaj 22:40:08 --

    tesekkur ederim hocam ise yaradi.

    xFactoria adlı üyeden alıntı: mesajı görüntüle
    o kısmı tamamen kaldırmak istiyorsanız bunu kullanın.
  • 30-05-2013, 02:23:13
    #6
    ByKartal adlı üyeden alıntı: mesajı görüntüle
    <?php 
    
    if(is_singular('message')) die('Message Cannot be Accessed !');
        
    	get_header(); 
    	
    	$hasSidebar = "";
    $sidebar =    get_post_meta($post->ID,'_sidebar',true);
    $sidebar = (trim($sidebar)=="") ? "right-sidebar" : $sidebar; // ~~ For pages existing prior to theme activation should have right sidebar by default ~   
    
    if($sidebar!="full") :
    	
    	$hasSidebar = ($sidebar == "right-sidebar") ?	"hasRightSidebar" : "hasLeftSidebar";
    	$layout = 'two-third-width'; 
    	$width = 640; $height = 309;
    else :
    	$layout = 'full-width'; $width = 960; $height = 390;
    endif;
    	$image_flag = false;
    	$vthumb = trim(get_post_meta($post->ID,"video_thumbnail",true));
    	?>   
    
    
    
    <div class="skeleton clearfix page single <?php echo $hasSidebar; ?>"> <!-- Start of main container  -->
          
          <div class="content clearfix"> <!-- Start of main content  -->
                     
                <div class="<?php if($sidebar!="full") echo "two-third-width"; else echo "full-width"; ?>"> <!-- Start of content  -->
                 
                  <?php 	wp_reset_query(); if(have_posts()): while(have_posts()) : the_post(); ?> <!-- query begins  -->
                   <h1 class="custom-font heading"><?php the_title(); ?></h1>
             <?php 
    		 
    		  if(trim($vthumb)=="Yes") :
    			
    						$video_type =  trim(get_post_meta($post->ID,"video_type",true));
    						$video_link =  trim(get_post_meta($post->ID,"video_code",true));
    			  
    			  
    						$code = '';
    						switch($video_type){
    							  
    							  case "Dedicated" : $code = do_shortcode("[video src='{$video_link}' height={$height} width={$width} title='' ]");  break;
    							  case "Youtube" : 
    							  $video_link = explode("v=", $video_link);
    							  $code = do_shortcode("[youtube id='{$video_link[1]}' height='{$height}' width='{$width}' title='' ]");  break;
    							  case "Vimeo" :  
    							  $video_link = explode("/", $video_link);
    							  $code = do_shortcode("[vimeo id='".$video_link[count($video_link)-1]."' height='{$height}' width='{$width}' title='' ]");  break;
    							  
    							  
    							  }
    						echo "<div class='imageholder single-image'> $code </div>";		
    						
    						elseif (  (function_exists('has_post_thumbnail')) && (has_post_thumbnail())   ) :
                           
    							 $id = get_post_thumbnail_id();
    							 $ar = wp_get_attachment_image_src( $id, array(9999,9999) );
    							 $theImageSrc = $helper->getMUFix($ar[0]);
                                 $code = $helper->imageDisplay($theImageSrc , $height , $width , true , $ar[0] , false, false,'' ,'' ,true);  
    						
    						echo "<div class='imageholder single-image'> ".strip_tags($code,"<img><span>")." </div>";		
    						
    						endif; ?>
    		 
    		 
    		 
                 
                  
                  <p class="meta-data">  <!-- Meta data below title  -->
                    by <span><?php the_author_posts_link() ?></span> on 
    			       <span><?php echo get_the_date("F j, Y"); ?> </span> with
                       <span><?php comments_number('0 Comments','1 Comments','% Comments'); ?></span> in
                  
                  <?php  $cats = wp_get_post_categories( $post->ID );
    					 $str = ' '; $temp = false;
    					 
    					 foreach($cats as $c)
    						{
    					 	 $cat = get_category( $c );
    						 $link = get_category_link( $c );
    							if(!$temp)
    								 {
    									 
    									 $str = $str."  <a href=' $link' >".$cat->name."</a>";
    									 $temp = true;
    								 }
    							 else
    							  $str = $str." , <a href=' $link' >".$cat->name."</a>";
    					  }
    						echo  "<span>$str</span>"; ?>
                                
                  
                  </p>
                          
                          
                   <div class="single-content"> <?php the_content(); ?> </div> <!-- main content  -->
                 
                  <div class="bottom-info"> <!-- meta data below the content -->
                   
                  <?php echo human_time_diff(get_the_time('U'), current_time('timestamp'));  _e(' ago by ','h-framework'); the_author_posts_link(); _e(' in','h-framework'); ?>  <?php echo $str; _e('. You can follow any responses to this entry through the','h-framework'); ?> |  <a href="<?php 
    			  bloginfo('rss_url') ?>"><?php _e('RSS feed','h-framework') ?></a>. <?php _e('You can leave a response, or trackback from your own site.','h-framework') ?></div>
                 
                 
                  <!-- ===================== Social sharing via add this ======================== -->
                 
                   <?php if($super_options[SN."_social_set"]==""||$super_options[SN."_social_set"]=="true") { ?>     
             <div class="social-stuff clearfix">
                     <?php $helper->socialStuff(); ?> 
             </div>  
            <?php } ?>  
                  
             
             
              <?php  if($super_options[SN."_author_bio"]=="" || $super_options[SN."_author_bio"]=="true") { ?>                    
                      <div id="authorbox" class="clearfix">  
                                <div class="author-avatar">
                                <?php if (function_exists('get_avatar')) { echo get_avatar( get_the_author_meta('email'), '80' ); }?>  
                                </div>
                                <div class="authortext">  
                                 <h6><?php _e('About ','h-framework'); the_author_posts_link(); ?></h6>  
                                 <p><?php the_author_meta('description'); ?></p>  
                                 
                                      <ul class="right clearfix"><li> <a href="<?php the_author_url();?> "> <?php _e('Website','h-framework'); ?> </a>  <?php the_author_posts_link();  ?> </li> </ul>
                              
                              </div>  
                  </div>
           <?php }?>  
           
           
           
             <?php if( ($super_options[SN."_popular"]==""||$super_options[SN."_popular"]=="true" )) { ?>    
                 
               <div class="related-posts">   
               <h2 class="custom-font"><?php _e('Related Posts','h-framework'); ?></h2>   
                  <ul class="clearfix" >
                			<?php 
    						$i = 0;
    						
    						$tags = wp_get_post_tags($post->ID);
    						if ($tags) {
    							$tag_ids = array();
    							foreach($tags as $individual_tag) $tag_ids[] = $individual_tag->term_id;
    							$args=array(
    							'tag__in' => $tag_ids,
    							'post__not_in' => array($post->ID),
    							'posts_per_page'=>4, // Number of related posts that will be shown.
    							'caller_get_posts'=>1
    							);
    						}
    
    						
    						$popPosts = new WP_Query( $args );
    					  
    						while ($popPosts->have_posts()) : $popPosts->the_post();  $more = 0;?>
                            
                            <li class="clearfix" >
                            	<?php if (  (function_exists('has_post_thumbnail')) && (has_post_thumbnail())  ) : /* if post has post thumbnail */ ?>
                                <div class="image">
                                <span class="hover-image"></span>
                                    <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail(array(125,125)); ?></a>
                                  
                                </div><!--image-->
                                  <h2 class="custom-font"><a href="<?php the_permalink(); ?>" title="<?php the_title();?>"><?php the_title();?></a></h2>
                                <?php endif; ?>
                            </li>
                            
                            
                            <?php if($i>=3) break; $i++; endwhile; ?>
                            
                            <?php wp_reset_query(); ?>
    
                        </ul>
            
    		</div>
            
               
         <?php }?>   
         
              <div id="comments_template">
                  <?php comments_template(); ?>
              </div>  
                
                   <?php endwhile; endif; ?>
                    
                                         
                </div>  
                
                  <?php  
    	  wp_reset_query();
    	  if($sidebar!="full") 
    	  get_sidebar();  
    	 ?>   
                     
          </div>
                      
      
    </div> 
        
    <?php get_footer(); ?>
    hangisi hocam?
    halletmişsiniz sanırım hocam
  • 31-05-2013, 09:10:09
    #7
    uCinar adlı üyeden alıntı: mesajı görüntüle
    halletmişsiniz sanırım hocam
    Evet hocam.yinede tesekkur ederim.

    peki hocam manset kismindaki haberleri en son eklenenler olarak nasil duzeltirim?
  • 31-05-2013, 11:17:01
    #8
    ByKartal adlı üyeden alıntı: mesajı görüntüle
    Evet hocam.yinede tesekkur ederim.

    peki hocam manset kismindaki haberleri en son eklenenler olarak nasil duzeltirim?
    normal manşet sistemlerinde zaten en son eklenen haberler çıkar hocam. Temanızın yönetici paneli varsa bir kurcalamanızı tavsiye ederim.
    Yoksa index.php'de
            <div class="slider-wrapper clearfix">
              <div class="slider">
                  <div class="items"> .... </div> </div> </div>
    ​ arasında bir yerlerde wp meta etiketi olmalı
  • 31-05-2013, 11:32:44
    #9
    uCinar adlı üyeden alıntı: mesajı görüntüle
    normal manşet sistemlerinde zaten en son eklenen haberler çıkar hocam. Temanızın yönetici paneli varsa bir kurcalamanızı tavsiye ederim.
    Yoksa index.php'de
            <div class="slider-wrapper clearfix">
              <div class="slider">
                  <div class="items"> .... </div> </div> </div>
    ​ arasında bir yerlerde wp meta etiketi olmalı
    panelinde son yazilar ile ilgili yok sadece kategori secimi var.
    anlamadim ben

    index.php burada hocam

    <?php 
    
    $stage_option = ($super_options[SN."_stage_option"]!="") ? $super_options[SN."_stage_option"] : "Slider";
    $sidebar = ($super_options[SN."_home_layout"]!="") ? $super_options[SN."_home_layout"] : "full-width";
    $items_limit = $super_options[SN."_posts_item_limit"];
    $items_limit =  (!$items_limit) ? 6 : $items_limit ; 
    
    get_header(); 
    ?>   
    
    
    <div class="skeleton clearfix  blog ">
       <div class="content clearfix <?php echo $sidebar; ?>">
          <div class="two-third-width">
              
            <div class="slider-wrapper clearfix">
              <div class="slider">
                  <div class="items">
                  <?php 
    			  $i=0; $j =0;
    			  $section_counter = 1;
    			  $query = new WP_Query();
    			 
    			  $query->query('cat='.$super_options[SN."_home_slider"]."&posts_per_page=".$super_options[SN."_home_posts"]);
    			  while ($query->have_posts()) : $query->the_post();  $more = 0; if($i==4) { $i =0; $section_counter++; } ?>
                 
                     <?php 
    				 if($i==0)
    				 echo '<ul><!-- Start of UL -->';
    				
    				 echo "<li> <h3 class=\"custom-font\"><a href=\"". get_permalink()."\"> ". get_the_title()."</a></h3>
                     					 <p>". $helper->getShortenContent(90,strip_shortcodes( strip_tags( get_the_content() )))."</p> 
    									 <div class=\"hide\">";
    									 
    				 if (  (function_exists('has_post_thumbnail')) && (has_post_thumbnail())  ) : /* if post has post thumbnail */ 
                       echo "<div class=\"image\">";
      	                
      	               $id = get_post_thumbnail_id();
      	               $ar = wp_get_attachment_image_src( $id , array(9999,9999) );
       	               
    				   echo  $helper->imageDisplay( $helper->getMUFix($ar[0])  ,  180 , 295 , false , get_permalink() , true , '' ,'' , false  ); 
       	               echo  "</div><!--image-->";
       	           	   endif;
    			      
    				 echo " <h2 class=\"custom-font\"><a href=\"".get_permalink()."\">". $helper->getShortenContent(60,strip_shortcodes( get_the_title() )) ."</a></h2>
                      <span>".get_the_time("F j, Y")." - ";
    				  comments_number( 'No Comments', '1 Comment', '% Comments' );
    					echo "</span>  <p>". $helper->getShortenContent(200,strip_shortcodes( strip_tags( get_the_content() ) )) ."</p>";                     
                        echo " <span class=\"continue \"><a href=\"".get_permalink()."\">".__("Read more")." &rarr;</a></span>";
    
                      echo "</div>
                     </li>";
    				 
    				 if($i==3)
    				{
    					echo "</ul> <!-- End of UL -->";
    					
    				}
    				
    				  $i++; 
    				  $j++;
    				  endwhile;
    				
    				if($i<4) echo "</ul>";
    				
    				$str =  "<div class='bullets'>"; 
    				
    				for($i=0;$i<$section_counter;$i++)
    				{
    					if($i==0)
    					$str = $str . '<a href="" class="active"></a>';
    					else
    					$str = $str . '<a href=""></a>';
    				}
    				$str = $str . "</div>";
    				
    				   ?>
    			 
                  </div>
                  <?php echo $str; ?>
           	  </div>
              <div class="sliderpost">
              
              
              </div>     
            </div>  
             
             
          <div class="clearfix">
          <?php 
    	 $layouts = unserialize(get_option(SN."_layouts"));
    	
    		if(!is_array($layouts) ) 	$layouts = array();
    		foreach($layouts as $layout)
    		{
    			switch($layout['widget_name'])
    			{
    				case 'three-columns' : 
    					$ids  = explode(":",$layout['category_id']);
    				echo "<div class='clearfix posts-section-wrapper'>";
    				for($i=0;$i<3;$i++)
    				{
    					if($i==2) $f = true; else $f = false;
    					showPostWidget($ids[$i],$f);
    				}
    				
    				echo "</div>";
    				break;
    				
    				case 'posts-image' : showFeaturedPosts($layout['category_id']);
    									 break;
    				case 'full-accordion' : showFullAccordion($layout['category_id']);
    									    break;
    			}
    		}
    	  ?>
          </div>  
            
             
            
              
                     
       	  </div>
        
        
           <?php   wp_reset_query(); 	 if($sidebar!="full-width") : ?>
       
        <div class="sidebar" id="sidebar"><!-- start of one-third column -->
    
            <?php   
            $dsidebar = $super_options[SN."_home_sidebar"];
            
           if ( trim($dsidebar)!=""  ) 
            dynamic_sidebar ($dsidebar); 
           else  
            dynamic_sidebar ("Blog Sidebar"); 
      ?>  
        </div><!-- end of one-third column -->
        
      <?php endif; ?>
      
        
                   
           </div> 
             
     </div>
        
    <?php get_footer(); ?>