<?php get_header(); ?>
<script type="text/javascript">
stepcarousel.setup({
galleryid: 'board_carusel', //id of carousel DIV
beltclass: 'belt', //class of inner "belt" DIV containing all the panel DIVs
panelclass: 'board_item', //class of panel DIVs each holding content
autostep: {enable:true, moveby:1, pause:<?php echo FEATURED_SPEED*1000; ?>},
panelbehavior: {speed:500, wraparound:false, persist:false},
defaultbuttons: {enable: false, moveby: 1, leftnav: ['http://i34.tinypic.com/317e0s5.gif', -5, 80], rightnav: ['http://i38.tinypic.com/33o7di8.gif', -20, 80]},
statusvars: ['statusA', 'statusB', 'statusC'], //register 3 variables that contain current panel (start), current panel (last), and total panels
contenttype: ['inline'] //content setting ['inline'] or ['external', 'path_to_external_file']
})
</script>
<div id="content" class="narrowcolumn">
<div id="board">
<div id="board_items">
<div id="board_body">
<h2>Featured Posts</h2>
<div id="board_carusel">
<div class="belt">
<?php $coint_i = carousel_featured_posts(FEATURED_POSTS); ?>
</div>
</div>
</div>
<ul id="board_carusel_nav">
<?php for($i=1;$i<=$coint_i; $i++) { ?>
<li id="board_carusel_nav_<?php echo $i; ?>"> href="javascript:stepcarousel.stepTo('board_carusel', <?php echo $i; ?>)"><?php echo $i; ?>
<?php } ?>
</div>
</div>
<div id="post_container">
<div id="irecent_post">
<div id="irecent_post_left">
<h2>Recent posts</h2>
<?php
$recents_posts_number = obwp_get_meta(SHORTNAME.'_recents_posts_number','int',5);
$postcount = round($recents_posts_number/2);
$recents_posts_char_limit = obwp_get_meta(SHORTNAME.'_recents_posts_char_limit','int',200);
query_posts('cat='.EXCEPT_CAT.'&showposts='.$postcount);
?>
<?php if (have_posts()) : ?>
<?php $i=0; while (have_posts()) : the_post(); $i++; ?>
<div class="irecent_post" id="irecent_post-<?php the_ID(); ?>">
<div class="irecent_post_title">
<h3>" rel="bookmark" title="Permanent Link to <?php if ( function_exists('the_title_attribute')) the_title_attribute(); else the_title(); ?>"><?php the_title(); ?></h3>
<div class="info">Posted by <b class="author"><?php the_author() ?></b> at <?php the_time() ?> on <?php the_time('F d Y') ?></div>
<?php if(function_exists('the_ratings')) { ?><div class="rate"><?php the_ratings();?></div><?php } ?>
</div>
<div class="irecent_post_entry">
<?php
$thumbnail = get_post_meta($id, 'image_100_100', true);
if( isset($thumbnail) && !empty($thumbnail) ):
?><img src="<?php echo $thumbnail; ?>" alt="<?php echo $post_title; ?>" /><?
endif;
the_content_limit($recents_posts_char_limit, '');
?>
</div>
</div>
<?php
if($i==1)
{
theme_google_300_ads_show();
}
?>
<? endwhile; ?>
<?php endif; ?>
</div>
<div id="irecent_post_right">
<div id="irecent_post_tabs">
<ul id="irecent_post_tabs_links">
Top <span>Rated</span>
Most <span>Commented</span>
<li class="last">Most <span>Viewed</span>
<ul class="irecent_post_tabs_item" id="irecent_post_tabs_item_rated">
<?php if (function_exists('get_highest_rated')): ?>
<?php theme_get_highest_rated('post',0,5); ?>
<?php endif; ?>
<ul class="irecent_post_tabs_item" id="irecent_post_tabs_item_commented">
<?php obwp_list_most_commented(5); ?>
<ul class="irecent_post_tabs_item" id="irecent_post_tabs_item_viewed">
<?php if (function_exists('get_most_viewed')): ?>
<?php theme_get_most_viewed('post', 5); ?>
<?php endif; ?>
<script type="text/javascript">
var irecent_post_tabs=new ddtabcontent("irecent_post_tabs")
irecent_post_tabs.setpersist(true)
irecent_post_tabs.setselectedClassTarget("link")
irecent_post_tabs.init()
</script>
</div>
<?php
$postcount_second = $recents_posts_number - $postcount;
query_posts('&offset='.$postcount.'&showposts='.$postcount_second);
?>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="irecent_post" id="irecent_post-<?php the_ID(); ?>">
<div class="irecent_post_title">
<h3>" rel="bookmark" title="Permanent Link to <?php if ( function_exists('the_title_attribute')) the_title_attribute(); else the_title(); ?>"><?php the_title(); ?></h3>
<div class="info">Posted by <b class="author"><?php the_author() ?></b> at <?php the_time() ?> on <?php the_time('F d Y') ?></div>
<?php if(function_exists('the_ratings')) { ?><div class="rate"><?php the_ratings();?></div><?php } ?>
</div>
<div class="irecent_post_entry">
<?php
$thumbnail = get_post_meta($id, 'image_100_100', true);
if( isset($thumbnail) && !empty($thumbnail) ):
?><img src="<?php echo $thumbnail; ?>" alt="<?php echo $post_title; ?>" /><?
endif;
the_content_limit($recents_posts_char_limit, '');
?>
</div>
</div>
<?php endwhile; ?>
<--!awal dari penambahan kode html yang hilang-->
<div class="entry">
<?php theme_google_468_ads_show(); ?>
</div>
<?php
$next_page = get_next_posts_link('Previous');
$prev_pages = get_previous_posts_link('Next');
if(!empty($next_page) || !empty($prev_pages)) :
?>
<!-- navigation -->
<div class="navigation">
<?php if(!function_exists('wp_pagenavi')) : ?>
<div class="alignleft"><?php next_posts_link('Previous') ?></div>
<div class="alignright"><?php previous_posts_link('Next') ?></div>
<?php else : wp_pagenavi(); endif; ?>
</div>
<!-- /navigation -->
<--!akhir dari penambahan kode html yang hilang-->
<?php endif; ?>
</div>
</div>
</div>
</div>
<?php get_sidebar(); ?>
<!--Awal kode footer-->
<?php get_footer(); ?>
<!--Akhir kode footer-->