Changeset 142 for trunk/wp-content
- Timestamp:
- Mar 30, 2009, 2:01:07 PM (16 years ago)
- Location:
- trunk/wp-content/themes/xpress_default/blocks
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/themes/xpress_default/blocks/popular_posts_block_theme.php
r120 r142 6 6 $disp_count = empty( $options[2] ) ? '10' : $options[2] ; 7 7 $show_month_range = empty( $options[3] ) ? '0' : $options[3] ; 8 $tag_select = $options[4] ; 9 $selected = array_slice($options,5); // get allowed cats 8 $date_format = empty( $options[4] ) ? '' : $options[4] ; 9 $time_format = empty( $options[5] ) ? '' : $options[5] ; 10 $tag_select = $options[6] ; 11 $selected = array_slice($options, 7); // get allowed cats 12 10 13 $mydirpath = get_xpress_dir_path(); 11 14 15 if (empty($date_format)) $date_format = get_settings('date_format'); 16 if (empty($time_format)) $time_format = get_settings('time_format'); 12 17 if (array_search(0,$selected)===0) { 13 18 $cat_select = false; … … 112 117 113 118 ob_start(); 114 the_modified_date( get_settings('date_format'));119 the_modified_date($date_format); 115 120 $post_modified_date = ob_get_contents(); 116 121 ob_end_clean(); 117 122 118 123 ob_start(); 119 the_modified_date( get_settings('time_format'));124 the_modified_date($time_format); 120 125 $post_modified_time = ob_get_contents(); 121 126 ob_end_clean(); 122 127 123 128 ob_start(); 124 the_time( get_settings('date_format'));129 the_time($date_format); 125 130 $post_date = ob_get_contents(); 126 131 ob_end_clean(); 127 132 128 133 ob_start(); 129 the_time( get_settings('time_format'));134 the_time($time_format); 130 135 $post_time = ob_get_contents(); 131 136 ob_end_clean(); -
trunk/wp-content/themes/xpress_default/blocks/recent_comments_block_theme.php
r120 r142 8 8 $disp_count = empty( $options[2] ) ? '10' : $options[2] ; 9 9 $disp_length = empty( $options[3] ) ? '30' : $options[3] ; 10 $selected = array_slice($options,4); // get allowed cats 11 // $mydirpath = XOOPS_ROOT_PATH . '/modules/' . $mydirname; 10 $date_format = empty( $options[4] ) ? '' : $options[4] ; 11 $time_format = empty( $options[5] ) ? '' : $options[5] ; 12 $selected = array_slice($options,6); // get allowed cats 13 12 14 $mydirpath = get_xpress_dir_path(); 13 $this_url = '/modules/'. $mydirname; 14 $call_url = $_SERVER['REQUEST_URI']; 15 16 if (empty($date_format)) $date_format = get_settings('date_format'); 17 if (empty($time_format)) $time_format = get_settings('time_format'); 15 18 16 19 $disp_all = in_array('0',$selected); … … 47 50 48 51 $comments = $wpdb->get_results($comment_sql); 49 $format = get_settings('date_format') . ' ' . get_settings('time_format');50 52 51 53 if ( $comments ) { … … 74 76 'comment_ID' => $comment->comment_ID , 75 77 'comment_post_ID' => $comment->comment_post_ID , 76 'comment_date' => date( get_settings('date_format'),$comment->comment_unix_time) ,77 'comment_date_time' => date( get_settings('date_format') . ' ' . get_settings('time_format'),$comment->comment_unix_time) ,78 'comment_date' => date($date_format,$comment->comment_unix_time) , 79 'comment_date_time' => date($date_format . ' ' . $time_format,$comment->comment_unix_time) , 78 80 'comment_content' => $comment_content , 79 81 'comment_excerpt' => $comment_excerpt , -
trunk/wp-content/themes/xpress_default/blocks/recent_posts_content_block_theme.php
r120 r142 9 9 $except = empty( $options[3] ) ? false : true ; 10 10 $except_size = ($options[4])?intval($options[4]):100; 11 $tag_select = $options[5] ; 12 $selected = array_slice($options,6); // get allowed cats 13 // $mydirpath = XOOPS_ROOT_PATH . '/modules/' . $mydirname; 11 $date_format = empty( $options[5] ) ? '' : $options[5] ; 12 $time_format = empty( $options[6] ) ? '' : $options[6] ; 13 $tag_select = $options[7] ; 14 $selected = array_slice($options,8); // get allowed cats 15 14 16 $mydirpath = get_xpress_dir_path(); 15 17 16 $this_url = '/modules/'. $mydirname; 17 $call_url = $_SERVER['REQUEST_URI']; 18 18 if (empty($date_format)) $date_format = get_settings('date_format'); 19 if (empty($time_format)) $time_format = get_settings('time_format'); 19 20 if(empty($tag_select)) $tag_where = ''; else $tag_where = "tag='$tag_select'&"; 20 21 … … 70 71 71 72 ob_start(); 72 the_modified_date( get_settings('date_format'));73 the_modified_date($date_format); 73 74 $post_modified_date = ob_get_contents(); 74 75 ob_end_clean(); 75 76 76 77 ob_start(); 77 the_modified_date( get_settings('time_format'));78 the_modified_date($time_format); 78 79 $post_modified_time = ob_get_contents(); 79 80 ob_end_clean(); 80 81 81 82 ob_start(); 82 the_time( get_settings('date_format'));83 the_time($date_format); 83 84 $post_date = ob_get_contents(); 84 85 ob_end_clean(); 85 86 86 87 ob_start(); 87 the_time( get_settings('time_format'));88 the_time($time_format); 88 89 $post_time = ob_get_contents(); 89 90 ob_end_clean(); -
trunk/wp-content/themes/xpress_default/blocks/recent_posts_list_block_theme.php
r121 r142 7 7 $disp_red = empty( $options[3] ) ? '1' : $options[3] ; 8 8 $disp_green = empty( $options[4] ) ? '7' : $options[4] ; 9 $tag_select = $options[5] ; 10 $selected = array_slice($options,6); // get allowed cats 11 // $mydirpath = XOOPS_ROOT_PATH . '/modules/' . $mydirname; 9 $date_format = empty( $options[5] ) ? '' : $options[5] ; 10 $time_format = empty( $options[6] ) ? '' : $options[6] ; 11 $tag_select = $options[7] ; 12 $selected = array_slice($options,8); // get allowed cats 13 12 14 $mydirpath = get_xpress_dir_path(); 13 15 16 if (empty($date_format)) $date_format = get_settings('date_format'); 17 if (empty($time_format)) $time_format = get_settings('time_format'); 14 18 if(empty($tag_select)) $tag_where = ''; else $tag_where = "tag='$tag_select'&"; 15 19 … … 59 63 60 64 ob_start(); 61 the_modified_date( get_settings('date_format'));65 the_modified_date($date_format); 62 66 $post_modified_date = ob_get_contents(); 63 67 ob_end_clean(); 64 68 65 69 ob_start(); 66 the_modified_date( get_settings('time_format'));70 the_modified_date($time_format); 67 71 $post_modified_time = ob_get_contents(); 68 72 ob_end_clean(); 69 73 70 74 ob_start(); 71 the_time( get_settings('date_format'));75 the_time($date_format); 72 76 $post_date = ob_get_contents(); 73 77 ob_end_clean(); 74 78 75 79 ob_start(); 76 the_time( get_settings('time_format'));80 the_time($time_format); 77 81 $post_time = ob_get_contents(); 78 82 ob_end_clean();
Note: See TracChangeset
for help on using the changeset viewer.