hello
Server : Apache/2.4.52 (Ubuntu) System : Linux HAN2 5.15.0-185-generic #195-Ubuntu SMP Fri Jun 19 17:11:50 UTC 2026 x86_64 User : servadmin ( 1000) PHP Version : 8.1.2-1ubuntu2.25 Disable Function : NONE Directory : /www/docs/www.obusignal.com/www.obusignal.com/wp-content/themes/eNews/includes/ |
<div id="main-area-wrap">
<?php if (get_option('enews_home_catboxes') == 'on') { ?>
<!-- Recent From Category Posts -->
<div id="recentposts">
<div class="recent first">
<?php global $ids2; recent_from((get_option('enews_recent_cat1')),0); ?>
</div> <!-- end recent post -->
<div class="recent">
<?php recent_from((get_option('enews_recent_cat2')),1); ?>
</div> <!-- end recent post -->
<div class="recent">
<?php recent_from((get_option('enews_recent_cat3')),2);
if (isset($ids)) $ids3 = array_merge((array)$ids,(array)$ids2); ?>
</div> <!-- end recent post -->
</div>
<!-- end Recent From Category Posts -->
<?php }; ?>
<div id="wrapper">
<div id="main">
<?php $i = 0;
if (get_option('enews_duplicate') == 'false') {
$args=array(
'showposts'=>get_option('enews_homepage_posts'),
'post__not_in' => $ids3,
'paged'=>$paged,
'category__not_in' => get_option('enews_exlcats_recent'),
);
} else {
$args=array(
'showposts'=>get_option('enews_homepage_posts'),
'paged'=>$paged,
'post__not_in' => $ids2,
'category__not_in' => get_option('enews_exlcats_recent'),
);
};
query_posts($args);
if (have_posts()) : while (have_posts()) : the_post();
$i++;?>
<?php $titletext = get_the_title(); ?>
<?php if ($i>=5 && (get_option('enews_home_shorten_posts') == 'on')) { ?>
<div class="new-post">
<?php $width = 73;
$height = 74;
$thumbnail = get_thumbnail($width,$height,'',$titletext,$titletext);
$thumb = $thumbnail["thumb"]; ?>
<?php if ( $thumb <> '' ) { ?>
<a href="<?php the_permalink() ?>" title="<?php printf(__('Permanent Link to %s','eNews'), get_the_title()) ?>">
<?php print_thumbnail($thumb, $thumbnail["use_timthumb"], $titletext, $width, $height); ?>
</a>
<?php }; ?>
<h2><a href="<?php the_permalink() ?>" title="<?php printf(__('Permanent Link to %s','eNews'), get_the_title()) ?>"><?php truncate_title(45); ?></a></h2>
<p class="info"><em><?php _e('posted on','eNews') ?></em>: <?php the_time(get_option('enews_date_format')) ?> | <em><?php _e('author','eNews') ?></em>: <?php echo get_the_author(); ?></p>
<p><?php truncate_post(150); ?></p>
</div> <!-- end new-post -->
<?php } else { ?>
<div class="mainpost-wrap<?php if (($i%2)<>0) echo (" fst") ?>">
<?php $width = 291;
$height = 114;
$thumbnail = get_thumbnail($width,$height,'',$titletext,$titletext);
$thumb = $thumbnail["thumb"]; ?>
<h2><a href="<?php the_permalink() ?>" title="<?php printf(__('Permanent Link to %s','eNews'), get_the_title()) ?>"><?php truncate_title(37); ?></a></h2>
<p><?php truncate_post(119); ?></p>
<?php if ( $thumb <> '' ) { ?>
<a href="<?php the_permalink() ?>" title="<?php printf(__('Permanent Link to %s','eNews'), get_the_title()) ?>">
<?php print_thumbnail($thumb, $thumbnail["use_timthumb"], $titletext, $width, $height); ?>
</a>
<?php }; ?>
<div class="info"><em><?php _e('posted on','eNews') ?></em>: <?php the_time(get_option('enews_date_format')) ?> | <em><?php _e('author','eNews') ?></em>: <?php echo get_the_author(); ?></div>
</div> <!-- end mainpost-wrap-->
<?php }; ?>
<?php endwhile; ?>
<?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); }
else { ?>
<p class="pagination">
<?php next_posts_link(__('« Previous Entries','eNews')) ?>
<?php previous_posts_link(__('Next Entries »','eNews')) ?>
</p>
<?php } ?>
<?php endif; wp_reset_query(); ?>
</div> <!-- end main -->