the_title(); ?> " /></a> <?php } ?> <?php } else { ?> <?php if (get_option('woo_resize')) { woo_get_image('large-image', '330', '190', 'url'); } else { ?> <a href="<?php echo get_post_meta($post->ID, "url", $single = true); ?> " target="_blank" title="View <?php the_title(); ?> "><img src="<?php echo get_post_meta($post->ID, "image", $single = true); ?> " alt="<?php the_title(); ?>
?> "> <h2><a href="<?php the_permalink(); ?> " title="<?php the_title(); ?> "><?php the_title(); ?> </a></h2> <p><?php woo_get_image('image', get_option('woo_thumb_width'), get_option('woo_thumb_height'), ''); ?> <?php the_excerpt(); ?> <a class="read_more" href="<?php the_permalink(); ?> " title="<?php the_title(); ?> ">Leia →</a></p> </div><!-- /item --> <?php
?> </a></h2> <p class="date"> <span class="day"><?php the_time('j'); ?> </span> <span class="month"><?php the_time('M'); ?> </span> </p> <?php woo_get_image('image', 490, 200); ?> <div class="entry"> <?php if ($woo_options['woo_post_content'] == "content") { the_content('[...]'); } else { the_excerpt(); } ?> </div> </div><!-- /.post --> <?php
</div> <div class="post-content right-col"> <h2><a href="<?php the_permalink(); ?> " rel="bookmark" title="<?php the_title(); ?> "><?php the_title(); ?> </a></h2> <?php woo_get_image('image', get_option('woo_thumb_width'), get_option('woo_thumb_height'), 'thumb alignleft'); ?> <?php if (get_option('woo_content_archives') == "true") { the_content('[...]'); } else { the_excerpt(); } ?> </div> </div> <!--- Post Ends -->
while (have_posts()) { the_post(); ?> <div class="post"> <h2><?php the_title(); ?> </h2> <div class="entry"> <?php if (get_option('woo_image_single') == 'true') { woo_get_image('image', get_option('woo_single_width'), get_option('woo_single_height'), 'alignright'); } ?> <?php the_content(); ?> </div><!-- /entry --> </div><!-- /post --> <?php } } ?>
<?php $number = get_option('woo_tabs_latest'); if (empty($number) || $number < 1) { $number = 5; } $the_query = new WP_Query('cat=' . $GLOBALS['featured_cat'] . '&showposts=' . $number . '&orderby=post_date&order=desc'); while ($the_query->have_posts()) { $the_query->the_post(); $do_not_duplicate = $post->ID; ?> <li> <?php woo_get_image('image', 48, 48, 'thumbnail', 90, $post->ID, 'src', 1, 0, '', '', true, false, false); ?> <a title="<?php _e('Permalink to ', 'woothemes'); ?> <?php the_title(); ?> " href="<?php the_permalink(); ?> " rel="bookmark"><?php the_title(); ?> </a> <span class="meta"><?php the_time($GLOBALS['woodate']); ?>
<h2><?php the_title(); ?> </h2> </div><!-- /post --> <div class="large-screenshot"> <div class="large-screenimg"> <?php if (get_option('woo_resize')) { woo_get_image('large-image', '690', '396'); } else { ?> <img src="<?php echo get_post_meta($post->ID, "large-image", $single = true); ?> " alt="<?php the_title(); ?> " /> <?php } ?>
function widget($args, $instance) { $tag_id = $instance['tag_id']; $num = $instance['num']; $title = $instance['title']; $content = $instance['content']; $tag_name = get_term_by('id', $tag_id, 'post_tag'); $string = "tag=" . $tag_name->name . "&showposts={$num}"; $posts = get_posts($string); if ($title == '') { $title = 'Featured Posts'; } global $post; ?> <div id="featured" class="widget"> <h3><?php echo $title; ?> </h3> <ul> <?php if ($posts) { $count = 0; ?> <?php foreach ($posts as $post) { setup_postdata($post); $count++; ?> <li> <span class="thumb"> <?php woo_get_image('image', 70, 70, 'thumbnail', 90, get_the_id(), 'src', 1, 0, '', '', true); ?> </span> <div class="right"> <h4><a href="<?php the_permalink(); ?> " title="<?php the_title(); ?> "><?php the_title(); ?> </a></h4> <p><?php if ($content == "excerpt") { the_excerpt(); } elseif ($content == "content") { the_content(); } ?> </p> </div> </li> <!-- Post Ends --> <?php } } else { ?> <?php } ?> </ul> <div class="fix"></div> </div> <?php }
<div class="grid_6 alpha"> <div class="post"> <div class="screenshot"> <div class="screenimg"> <?php if (get_option('woo_resize')) { woo_get_image('image', '330', '190', 'url'); } else { ?> <a href="<?php echo get_post_meta($post->ID, "url", $single = true); ?> " target="_blank" title="View <?php the_title(); ?> "><img src="<?php echo get_post_meta($post->ID, "image", $single = true); ?> " alt="<?php the_title(); ?> " /></a> <?php } ?>
<?php $saved = $wp_query; query_posts('showposts=60'); ?> <?php if (have_posts()) { while (have_posts()) { the_post(); ?> <?php $wp_query->is_home = false; ?> <?php woo_get_image('image', 100, 100, 'thumbnail alignleft'); ?> <?php } } $wp_query = $saved; ?> <div class="fix"></div> </div> <?php woo_post_inside_after(); ?>
<div class="text"> <p><?php the_excerpt(); ?> <a class="read_more" href="<?php the_permalink(); ?> " title="<?php the_title(); ?> ">Read more →</a></p> </div> <div class="thumb"> <?php woo_get_image('image', get_option('woo_feat_alt_width'), get_option('woo_feat_alt_height'), ''); ?> </div> </div><!--/article--> <div id="feat_ad"> <?php if (get_option('woo_ad_block_adsense') != "") { echo stripslashes(get_option('woo_ad_block_adsense')); ?> <?php } else { ?>
function widget($args, $instance) { global $post; $posts_args = array(); $tag_name = ''; $title = ''; if (isset($instance['tag_id']) && '' != $instance['tag_id']) { $tax_params = array('taxonomy' => 'post_tag', 'field' => 'id', 'terms' => absint($instance['tag_id'])); $posts_args['tax_query'] = array($tax_params); } if (isset($instance['num'])) { $posts_args['posts_per_page'] = absint($instance['num']); } $posts_query = new WP_Query($posts_args); if ($title == '') { $title = __('Featured Posts', 'woothemes'); } ?> <div id="featured" class="widget"> <h3><?php echo $title; ?> </h3> <ul> <?php if ($posts_query->have_posts()) { $count = 0; ?> <?php while ($posts_query->have_posts()) { $posts_query->the_post(); $count++; ?> <li> <span class="thumb"> <?php woo_get_image('image', 70, 70, 'thumbnail', 90, get_the_id(), 'src', 1, 0, '', '', true); ?> </span> <div class="right"> <h4><a href="<?php the_permalink(); ?> " title="<?php the_title(); ?> "><?php the_title(); ?> </a></h4> <p><?php if ($instance['content'] == 'excerpt') { the_excerpt(); } else { the_content(); } ?> </p> </div> </li> <!-- Post Ends --> <?php } wp_reset_postdata(); } else { } ?> </ul> <div class="fix"></div> </div> <?php }