Changeset 58 for trunk/wp-content/themes/xpress_default
- Timestamp:
- Dec 29, 2008, 4:57:43 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/themes/xpress_default/blocks/recent_posts_content_block_theme.php
r57 r58 16 16 $call_url = $_SERVER['REQUEST_URI']; 17 17 18 if(empty($tag_select)) $tag_where = ''; else $tag_where = "tag='$tag_select'&"; 18 19 19 20 global $wpdb; 20 global $wpdb,$wp_query; 21 21 $block = array(); 22 22 $item_no = 0; … … 24 24 $wp_query->in_the_loop = true; //for use the_tags() in multi lopp 25 25 if (array_search(0,$selected)===0) { 26 $r = new WP_Query( "showposts=$disp_count&what_to_show=posts&nopaging=0&post_status=publish");26 $r = new WP_Query($tag_where ."showposts=$disp_count&what_to_show=posts&nopaging=0&post_status=publish"); 27 27 28 28 } else { 29 29 $cat_id = implode(',',$selected); 30 $r = new WP_Query( "cat=$cat_id&showposts=$disp_count&what_to_show=posts&nopaging=0&post_status=publish");30 $r = new WP_Query($tag_where . "cat=$cat_id&showposts=$disp_count&what_to_show=posts&nopaging=0&post_status=publish"); 31 31 } 32 32 while($r->have_posts()){ … … 58 58 59 59 ob_start(); 60 the_tags(__('Tags ').':',' • ','');60 the_tags(__('Tags:', 'kubrick') . ' ',' • ',''); 61 61 $tags = ob_get_contents(); 62 62 ob_end_clean(); … … 99 99 $trackback_url = trackback_url(false); 100 100 $post_viwes = xpress_post_views_count($post_id,'views: %d' ,false); 101 if (empty($tags)) $tags = __('Not Tag');101 // if (empty($tags)) $tags = __('Not Tag'); 102 102 103 103 $row_data = array(
Note: See TracChangeset
for help on using the changeset viewer.