| Server IP : 93.115.150.27 / Your IP : 216.73.216.221 Web Server : LiteSpeed System : Linux host2.azar.host 4.18.0-553.80.1.lve.el8.x86_64 #1 SMP Wed Oct 22 19:29:36 UTC 2025 x86_64 User : dorfakkh ( 1797) PHP Version : 8.1.34 Disable Function : show_source, system, passthru, exec, popen, proc_open, mail MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/dorfakkh/www/wp-content/themes/dorfakkhabar/ |
Upload File : |
<div class="leftsides">
<div class="newstab">
<div class="box">
<div class="boxtitle">
<div class="news active">
<div class="arrow"></div>
<div class="title">آخرين اخبار</div>
</div>
<div class="weblog">
<div class="arrow"></div>
<div class="title">پر بحث ترين</div>
</div>
</div>
<div class="nc" style="clear: both;">
<ul>
<?php
global $post;
$myposts = get_posts(array('numberposts' => 37, 'offset' => 0,'post_status'=>'publish'));
foreach($myposts as $post) :
setup_postdata($post);
?>
<li><h3><a href="<?php the_permalink(); ?>" title="<?php printf(esc_attr('لينك به:: %s'), the_title_attribute('echo=0')); ?>" rel="bookmark"><?php the_title(); ?></a></h3> </li>
<?php endforeach; ?>
<?php wp_reset_query(); ?> </ul>
</div>
<div class="wc" style="clear: both; display: none">
<div class="ldWrapper">
<h2 id="ldTitle"></h2>
<ul>
<?php
function filter_where($where = '') {
//posts in the last 30 days
$where .= " AND post_date > '" . date('Y-m-d', strtotime('-10 days')) . "'";
return $where;
}
add_filter('posts_where', 'filter_where');
query_posts('post_type=post&posts_per_page=30&orderby=comment_count&order=DESC');
while (have_posts()): the_post(); ?>
<li><h3><a href="<?php the_permalink(); ?>" title="<?php printf(esc_attr('لينك به:: %s'), the_title_attribute('echo=0')); ?>" rel="bookmark"><?php the_title(); ?></a></h3> </li>
<?php
endwhile;
wp_reset_query();
?>
</ul>
</div>
<div class="wc" style="clear: both; display: none">
<div class="ldWrapper">
<h2 id="ldTitle"></h2>
<ul>
<?php $result = $wpdb->get_results("SELECT comment_count,ID,post_title FROM $wpdb->posts ORDER BY comment_count DESC LIMIT 0 , 20");
foreach ($result as $post) {
setup_postdata($post);
$postid = $post->ID;
$title = $post->post_title;
$commentcount = $post->comment_count;
if ($commentcount != 0) { ?>
<li>
<a href="<?php echo get_permalink($postid); ?>" title="<?php echo $title ?>">
<?php echo $title ?></a>
<span></span></li>
<?php } } ?>
</ul></div> </div>
</div>
</div>
</div>