- Timestamp:
- Nov 20, 2009, 2:52:16 PM (15 years ago)
- Location:
- branches/XPressMU/xpressme_integration_kit/wp-content/themes/xpress_default
- Files:
-
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/XPressMU/xpressme_integration_kit/wp-content/themes/xpress_default/blocks/archives_block_theme.php
r125 r451 1 1 <?php 2 // Block Version: 1.0 2 3 function archives_block($options) 3 4 { -
branches/XPressMU/xpressme_integration_kit/wp-content/themes/xpress_default/blocks/authors_block_theme.php
r360 r451 1 1 <?php 2 // Block Version: 1.0 2 3 function authors_block($options) 3 4 { -
branches/XPressMU/xpressme_integration_kit/wp-content/themes/xpress_default/blocks/calender_block_theme.php
r272 r451 1 1 <?php 2 // Block Version: 1.0 2 3 function calender_block($options) 3 4 { -
branches/XPressMU/xpressme_integration_kit/wp-content/themes/xpress_default/blocks/category_block_theme.php
r362 r451 1 1 <?php 2 2 // Block Version: 1.0 3 3 function category_block($options) 4 4 { -
branches/XPressMU/xpressme_integration_kit/wp-content/themes/xpress_default/blocks/enhanced_block_theme.php
r138 r451 1 1 <?php 2 // Block Version: 1.0 2 3 function enhanced_block($options) 3 4 { -
branches/XPressMU/xpressme_integration_kit/wp-content/themes/xpress_default/blocks/meta_block_theme.php
r360 r451 1 1 <?php 2 // Block Version: 1.0 2 3 function meta_block($options) 3 4 { -
branches/XPressMU/xpressme_integration_kit/wp-content/themes/xpress_default/blocks/page_block_theme.php
r360 r451 1 1 <?php 2 2 // Block Version: 1.0 3 3 function page_block($options) 4 4 { -
branches/XPressMU/xpressme_integration_kit/wp-content/themes/xpress_default/blocks/popular_posts_block_theme.php
r418 r451 1 1 <?php 2 // Block Version: 1.0 2 3 function popular_posts_block($options) 3 4 { … … 9 10 $time_format = empty( $options[5] ) ? '' : $options[5] ; 10 11 $tag_select = $options[6] ; 11 $selected = array_slice($options, 7); // get allowed cats 12 $cat_select = empty( $options[7] ) ? '0' : $options[7] ; 13 14 $selected = explode(',' , $cat_select); 12 15 13 16 $mydirpath = get_xpress_dir_path(); … … 15 18 if (empty($date_format)) $date_format = get_settings('date_format'); 16 19 if (empty($time_format)) $time_format = get_settings('time_format'); 17 if (array_search(0,$selected)===0) { 18 $cat_select = false; 19 }else { 20 $cat_select = true; 21 } 22 $cat_id = implode(',',$selected); 20 if (array_search(0,$selected)===0) $cat_select = 0; 21 22 $cat_select; 23 23 $block = array(); 24 24 $item_no = 0; … … 58 58 59 59 if ($cat_select) { 60 $where .= " AND ($term_taxonomy.term_id IN ($cat_ id))";60 $where .= " AND ($term_taxonomy.term_id IN ($cat_select))"; 61 61 } 62 62 … … 75 75 76 76 if ($cat_select) { 77 $where .= " AND ($post2cat_tb.category_id IN ($cat_ id))";77 $where .= " AND ($post2cat_tb.category_id IN ($cat_select))"; 78 78 } 79 79 } -
branches/XPressMU/xpressme_integration_kit/wp-content/themes/xpress_default/blocks/recent_comments_block_theme.php
r360 r451 1 1 <?php 2 //if( ! defined( 'XOOPS_ROOT_PATH' ) ) exit ; 3 2 // Block Version: 1.0 4 3 function recent_comments_block($options) 5 4 { … … 10 9 $date_format = empty( $options[4] ) ? '' : $options[4] ; 11 10 $time_format = empty( $options[5] ) ? '' : $options[5] ; 12 $selected = array_slice($options,6); // get allowed cats 11 $com_select = empty( $options[6] ) ? '0' : $options[6] ; 12 13 $selected = explode(',' , $com_select); 13 14 14 15 $mydirpath = get_xpress_dir_path(); -
branches/XPressMU/xpressme_integration_kit/wp-content/themes/xpress_default/blocks/recent_posts_content_block_theme.php
r425 r451 1 1 <?php 2 //if( ! defined( 'XOOPS_ROOT_PATH' ) ) exit ; 3 2 // Block Version: 1.0 4 3 function recent_posts_content_block($options) 5 4 { 6 5 $mydirname = empty( $options[0] ) ? 'xpress' : $options[0] ; 7 6 $this_template = empty( $options[1] ) ? 'db:'.$mydirname.'_recent_posts_content_block.html' : trim( $options[1] ); 8 $day_select = ($options[2])?intval($options[2]):0; 9 $day_size = ($options[3])?intval($options[3]):0; 10 $disp_count = ($options[4])?intval($options[4]):10; 11 $excerpt = empty( $options[5] ) ? false : true ; 12 $excerpt_size = ($options[6])?intval($options[6]):100; 13 $date_format = empty( $options[7] ) ? '' : $options[7] ; 14 $time_format = empty( $options[8] ) ? '' : $options[8] ; 15 $tag_select = $options[9] ; 16 $selected = array_slice($options,10); // get allowed cats 17 7 $disp_count = ($options[2])?intval($options[2]):10; 8 $excerpt = empty( $options[3] ) ? false : true ; 9 $excerpt_size = ($options[4])?intval($options[4]):100; 10 $date_format = empty( $options[5] ) ? '' : $options[5] ; 11 $time_format = empty( $options[6] ) ? '' : $options[6] ; 12 $tag_select = $options[7] ; 13 $cat_select = empty( $options[8] ) ? '0' : $options[8] ; 14 $day_select = ($options[9])?intval($options[9]):0; 15 $day_size = ($options[10])?intval($options[10]):0; 16 17 $selected = explode(',' , $cat_select); 18 18 19 $mydirpath = get_xpress_dir_path(); 19 20 … … 21 22 if (empty($time_format)) $time_format = get_settings('time_format'); 22 23 if(empty($tag_select)) $tag_where = ''; else $tag_where = "tag='$tag_select'&"; 23 24 if (array_search(0,$selected)===0) $cat_select = 0; 25 24 26 $selected_author_id = xpress_selected_author_id('echo=0'); 25 27 if (!empty($selected_author_id)){ … … 37 39 if (!is_null($wpdb)){ 38 40 $wp_query->in_the_loop = true; //for use the_tags() in multi lopp 39 if (array_search(0,$selected)===0) { 41 if ($cat_select) { 42 $r = new WP_Query($author_where . $tag_where ."cat=$cat_select&showposts=$disp_count&what_to_show=posts&nopaging=0&post_status=publish"); 43 } else { 40 44 $r = new WP_Query($author_where . $tag_where ."showposts=$disp_count&what_to_show=posts&nopaging=0&post_status=publish"); 41 } else {42 $cat_id = implode(',',$selected);43 $r = new WP_Query($author_where . $tag_where ."cat=$cat_id&showposts=$disp_count&what_to_show=posts&nopaging=0&post_status=publish");44 45 } 45 46 while($r->have_posts()){ … … 52 53 if ($day_select == 2){ 53 54 $post_date = mktime (0, 0, 0, get_the_time("m"), get_the_time("d"), get_the_time("Y")); 54 if (empty($la stes_date)) $lastes_date = $post_date;55 $base_date = $la stes_date - $between_days;55 if (empty($latest_date)) $latest_date = $post_date; 56 $base_date = $latest_date - $between_days; 56 57 if ($post_date < $base_date) continue; 57 58 } -
branches/XPressMU/xpressme_integration_kit/wp-content/themes/xpress_default/blocks/recent_posts_list_block_theme.php
r272 r451 1 1 <?php 2 // Block Version: 1.0 2 3 function recent_posts_list_block($options) 3 4 { … … 10 11 $time_format = empty( $options[6] ) ? '' : $options[6] ; 11 12 $tag_select = $options[7] ; 12 $selected = array_slice($options,8); // get allowed cats 13 $cat_select = empty( $options[8] ) ? '0' : $options[8] ; 14 15 $selected = explode(',' , $cat_select); 13 16 14 17 $mydirpath = get_xpress_dir_path(); … … 17 20 if (empty($time_format)) $time_format = get_settings('time_format'); 18 21 if(empty($tag_select)) $tag_where = ''; else $tag_where = "tag='$tag_select'&"; 22 if (array_search(0,$selected)===0) $cat_select = 0; 19 23 20 24 $selected_author_id = xpress_selected_author_id('echo=0'); … … 30 34 if (!is_null($wpdb)){ 31 35 $wp_query->in_the_loop = true; //for use the_tags() in multi lopp 32 if (array_search(0,$selected)===0) { 36 if ($cat_select) { 37 $r = new WP_Query($author_where . $tag_where . "cat=$cat_select&showposts=$disp_count&what_to_show=posts&nopaging=0&post_status=publish"); 38 } else { 33 39 $r = new WP_Query($author_where . $tag_where ."showposts=$disp_count&what_to_show=posts&nopaging=0&post_status=publish"); 34 35 } else {36 $cat_id = implode(',',$selected);37 $r = new WP_Query($author_where . $tag_where . "cat=$cat_id&showposts=$disp_count&what_to_show=posts&nopaging=0&post_status=publish");38 40 } 39 41 while($r->have_posts()){ -
branches/XPressMU/xpressme_integration_kit/wp-content/themes/xpress_default/blocks/search_block_theme.php
r121 r451 1 1 <?php 2 2 // Block Version: 1.0 3 3 function search_block($options) 4 4 { -
branches/XPressMU/xpressme_integration_kit/wp-content/themes/xpress_default/blocks/sidebar_block_theme.php
r254 r451 1 1 <?php 2 // Block Version: 1.0 2 3 function sidebar_block($options) 3 4 { -
branches/XPressMU/xpressme_integration_kit/wp-content/themes/xpress_default/blocks/tag_cloud_block_theme.php
r252 r451 1 1 <?php 2 // Block Version: 1.0 2 3 function tag_cloud_block($options) 3 4 { -
branches/XPressMU/xpressme_integration_kit/wp-content/themes/xpress_default/blocks/widget_block_theme.php
r339 r451 1 1 <?php 2 // Block Version: 1.0 2 3 function widget_block($options) 3 4 { … … 5 6 $this_template = empty( $options[1] ) ? 'db:'.$mydirname.'_block_widget.html' : trim( $options[1] ); 6 7 $title_show = empty( $options[2] ) ? false : true ; 7 $selected = array_slice($options,3); // get allowed cats 8 $widget_select = empty( $options[3] ) ? '' : $options[3] ; 9 10 $selected = explode(',' , $widget_select); 8 11 9 12 $output = ''; -
branches/XPressMU/xpressme_integration_kit/wp-content/themes/xpress_default/style.css
r383 r451 456 456 text-align: right; 457 457 font-size: 9pt; 458 background-color: #fff; 458 459 } 459 460 … … 462 463 text-align: left; 463 464 font-size: 9pt; 465 background-color: #fff; 464 466 } 465 467 … … 467 469 display: block; 468 470 text-decoration: none; 471 font-weight: bold; 472 font-size: 14px; 473 background-color: #ddd; 469 474 } 470 475
Note: See TracChangeset
for help on using the changeset viewer.