<li><a class="active" href="#tab-comments"><?php _e('Recent Comments', 'compositio'); ?> </a></li> <li><a href="#tab-posts"><?php _e('Recent Posts', 'compositio'); ?> </a></li> <li><a style="margin-right:0px;" href="#tab-tags"><?php _e('Tags', 'compositio'); ?> </a></li> </ul> <ul id="tab-comments"> <?php dp_recent_comments(5); ?> </ul> <ul id="tab-posts"> <?php $posts = get_posts("numberposts=10&orderby=post_date&order=DESC"); foreach ($posts as $post) { ?> <li><a href="<?php the_permalink(); ?> "><?php the_title(); ?> </a></li>
"><?php the_title(); ?> </a></li> <?php } } ?> </ul> </nav> <!-- end recent posts --> <!-- begin recent comments --> <nav class="box"> <h2>Recent Comments</h2> <ul><?php dp_recent_comments(6); ?> </ul> </nav> <!-- end recent comments --> <!-- begin about --> <aside class="about box"> <h2>About</h2> <p>This blog is just one of the ways to express myself. I write about things which are interesting for me. Sometimes I review my posts and understand how stupid I was.</p> <p>I'm a developer. I like to take photos, travel and have an active type of rest. I use Mac OS X, like ipod and have forgotten about PC box.</p> </aside> <!-- end --> </section> <!-- END bottom -->
function albeo_selector() { ?> <div class="recent-all"><div class="recent"> <ul class="tabs"> <?php if (function_exists('display_top_posts')) { ?> <li><a href="#r-posts"><span><?php _e('Top Posts', 'albeo'); ?> </span></a></li> <?php } ?> <li><a href="#r-com"><span><?php _e('Latest Comments', 'albeo'); ?> </span></a></li> <li><a href="#r-tags"><span><?php _e('Tags', 'albeo'); ?> </span></a></li> </ul> <br clear="all" /> <?php if (function_exists('display_top_posts')) { ?> <div id="r-posts"> <?php display_top_posts(10); ?> </div> <?php } ?> <ul id="r-com"> <?php dp_recent_comments(3); ?> </ul> <div id="r-tags"> <?php wp_tag_cloud(''); ?> </div> </div></div> <?php }
function recent_comments($args) { extract($args); $settings = get_option('widget_recent_comments'); $number = $settings['number']; echo $before_widget; echo "{$before_title}" . "{$settings['title']}" . "{$after_title}"; ?> <ul> <?php dp_recent_comments($settings['number_comments']); ?> </ul> <?php echo $after_widget; }