- Timestamp:
- Jun 4, 2009, 2:02:54 PM (16 years ago)
- Location:
- trunk/xpressme_integration_kit/wp-content/themes/xpress_default
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/xpressme_integration_kit/wp-content/themes/xpress_default/blocks/category_block_theme.php
r122 r252 17 17 $depth = !is_numeric( $options[12] ) ? 0 : $options[12] ; 18 18 19 $param = array( 20 'show_option_all' => $show_option_all, 21 'orderby' => $orderby, 22 'order' => $order, 23 'show_last_update' => $show_last_updated, 24 'style' => 'list', 25 'show_count' => $show_count, 26 'hide_empty' => $hide_empty, 27 'use_desc_for_title' => $use_desc_for_title, 28 'child_of' => 0, 29 'feed' => '', 30 'feed_image' => '', 31 'exclude' => $exclude, 32 'include' => $includes, 33 'hierarchical' => $hierarchical, 34 'title_li' => '', 35 'number' => '', 36 'echo' => 0, 37 'depth' => $depth 38 ); 39 $block['categories'] = wp_list_categories($param); 19 if (function_exists('wp_list_categories')){ 20 $param = array( 21 'show_option_all' => $show_option_all, 22 'orderby' => $orderby, 23 'order' => $order, 24 'show_last_update' => $show_last_updated, 25 'style' => 'list', 26 'show_count' => $show_count, 27 'hide_empty' => $hide_empty, 28 'use_desc_for_title' => $use_desc_for_title, 29 'child_of' => 0, 30 'feed' => '', 31 'feed_image' => '', 32 'exclude' => $exclude, 33 'include' => $includes, 34 'hierarchical' => $hierarchical, 35 'title_li' => '', 36 'number' => '', 37 'echo' => 0, 38 'depth' => $depth 39 ); 40 $block['categories'] = wp_list_categories($param); 41 } else { 42 if (empty($show_option_all)) 43 $optionall = 0; 44 else 45 $optionall = 1; 46 $param = array( 47 'optionall' => $optionall, 48 'all' => $show_option_all, 49 'sort_column' => $orderby, 50 'sort_order' => $order, 51 'show_last_update' => $show_last_updated, 52 'optioncount' => $show_count, 53 'hide_empty' => $hide_empty, 54 'use_desc_for_title' => $use_desc_for_title, 55 'child_of' => 0, 56 'feed' => '', 57 'feed_image' => '', 58 'exclude' => $exclude, 59 'hierarchical' => $hierarchical, 60 'recurse' => 1, 61 ); 62 $block['categories'] = wp_list_cats($param); 63 64 } 40 65 return $block ; 41 66 } -
trunk/xpressme_integration_kit/wp-content/themes/xpress_default/blocks/tag_cloud_block_theme.php
r122 r252 25 25 'include' => $wp_include 26 26 ); 27 ob_start(); 28 wp_tag_cloud($param); 29 $output = ob_get_contents(); 30 ob_end_clean(); 31 27 if (function_exists('wp_tag_cloud')) { 28 ob_start(); 29 wp_tag_cloud($param); 30 $output = ob_get_contents(); 31 ob_end_clean(); 32 } else { 33 $output = 'not function wp_tag_cloud()'; 34 } 32 35 $block['tag_cloud'] = $output; 33 36 return $block ; -
trunk/xpressme_integration_kit/wp-content/themes/xpress_default/blocks/widget_block_theme.php
r136 r252 38 38 } 39 39 } 40 40 if (!function_exists('wp_get_sidebars_widgets')) { 41 echo 'Not support sidebar widget'; 42 return; 43 } 41 44 $sidebars_widgets = wp_get_sidebars_widgets(); 42 45 $registered_sidebars = $wp_registered_sidebars[$index]; -
trunk/xpressme_integration_kit/wp-content/themes/xpress_default/comments.php
r232 r252 8 8 return; 9 9 } 10 11 if (function_exists('have_comments')) 12 $have_comments= have_comments(); 13 else 14 $have_comments= $comments; 15 10 16 ?> 11 17 12 18 <!-- You can start editing here. --> 13 14 <?php if ( have_comments() ) : ?> 19 <?php if ( $have_comments ) : ?> 15 20 <?php if ( ! empty($comments_by_type['comment']) ) : ?> 16 21 <h3 id="xpress_comments"><?php comments_number(__('No Responses', 'xpress'), __('One Response', 'xpress'), __('% Responses', 'xpress'));?> <?php printf(__('to “%s”', 'xpress'), the_title('', '', false)); ?></h3> 17 22 <div id="xpress_commentlist"> 18 <?php wp_list_comments('type=comment&style=div'); ?> 23 <?php if (function_exists('wp_list_comments')) : ?> 24 <?php wp_list_comments('type=comment&style=div'); ?> 25 <ol class="commentlist"> 26 <?php else : ?> 27 <?php foreach ($comments as $comment) : ?> 28 <li <?php echo $oddcomment; ?>id="comment-<?php comment_ID() ?>"> 29 <?php if (function_exists('get_avatar')) echo get_avatar( $comment, 32 ); ?> 30 <?php printf(__('<cite>%s</cite> Says:', 'xpressme'), get_comment_author_link()); ?> 31 <?php if ($comment->comment_approved == '0') : ?> 32 <em><?php _e('Your comment is awaiting moderation.', 'xpressme'); ?></em> 33 <?php endif; ?> 34 <br /> 35 <small class="commentmetadata"><a href="#comment-<?php comment_ID() ?>" title=""><?php printf(__('%1$s at %2$s', 'xpressme'), get_comment_date(__('F jS, Y', 'xpressme')), get_comment_time()); ?></a> <?php edit_comment_link(__('Comment Edit', 'xpressme'),' ',''); ?></small> 36 <?php comment_text() ?> 37 </li> 38 <?php 39 /* Changes every other comment to a different class */ 40 $oddcomment = ( empty( $oddcomment ) ) ? 'class="alt" ' : ''; 41 ?> 42 <?php endforeach; /* end for each comment */ ?> 43 </ol> 44 <?php endif; ?> 19 45 </div> 20 46 <?php endif; ?> 21 22 <div class="navigation"> 23 <div class="alignleft"><?php previous_comments_link() ?></div> 24 <div class="alignright"><?php next_comments_link() ?></div> 25 </div> 47 <?php if (function_exists('wp_list_comments')) : ?> 48 <div class="navigation"> 49 <div class="alignleft"><?php previous_comments_link() ?></div> 50 <div class="alignright"><?php next_comments_link() ?></div> 51 </div> 52 <?php endif; ?> 53 26 54 <?php else : // this is displayed if there are no comments so far ?> 27 55 … … 39 67 </div> 40 68 41 <div id="cancel-comment-reply"> 42 <small><?php cancel_comment_reply_link() ?></small> 43 </div> 69 <?php if ( function_exists('cancel_comment_reply_link') ): ?> 70 <div id="cancel-comment-reply"> 71 <small><?php cancel_comment_reply_link() ?></small> 72 </div> 73 <?php endif; ?> 44 74 45 75 <?php if ( get_option('comment_registration') && !$user_ID ) : ?> … … 49 79 <div id="xpress-comment-user"> 50 80 <?php if ( $user_ID ) : ?> 51 <p><?php printf(__('Logged in as <a href="%1$s">%2$s</a>.', 'xpress'), get_option('siteurl') . '/wp-admin/profile.php', $user_identity); ?> <a href="<?php echo wp_logout_url(get_permalink()); ?>" title="<?php _e('Log out of this account', 'xpress'); ?>"><?php _e('Log out »', 'xpress'); ?></a></p> 81 <?php if ( function_exists('wp_logout_url') ): ?> 82 <p><?php printf(__('Logged in as <a href="%1$s">%2$s</a>.', 'xpress'), get_option('siteurl') . '/wp-admin/profile.php', $user_identity); ?> <a href="<?php echo wp_logout_url(get_permalink()); ?>" title="<?php _e('Log out of this account', 'xpress'); ?>"><?php _e('Log out »', 'xpress'); ?></a></p> 83 <?php else : ?> 84 <p><?php printf(__('Logged in as <a href="%1$s">%2$s</a>.', 'xpress'), get_option('siteurl') . '/wp-admin/profile.php', $user_identity); ?> <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=logout" title="<?php _e('Log out of this account', 'xpress'); ?>"><?php _e('Log out »', 'xpress'); ?></a></p> 85 <?php endif; ?> 52 86 <?php else : ?> 53 87 <p><input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" <?php if ($req) echo "aria-required='true'"; ?> /> … … 69 103 <input name="submit" type="submit" id="submit" tabindex="5" value="<?php _e('Submit Comment', 'xpress'); ?>" /> 70 104 </div> 71 <?php comment_id_fields(); ?> 105 <?php if (function_exists('comment_id_fields')) : ?> 106 <?php comment_id_fields(); //@since 2.7.0 ?> 107 <?php else : ?> 108 <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" /> 109 <?php endif; ?> 72 110 <?php do_action('comment_form', $post->ID); ?> 73 111 </div> -
trunk/xpressme_integration_kit/wp-content/themes/xpress_default/index.php
r165 r252 26 26 <?php if (function_exists('hotDates')) { hotDates(); }?> 27 27 <div class ="xpress-post-title"> 28 <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__('Permanent Link to %s', 'xpress'), the_title_attribute('echo=0')); ?>"><?php the_title(); ?></a></h2> 28 <?php if(function_exists('the_title_attribute')) : ?> 29 <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__('Permanent Link to %s', 'xpress'), the_title_attribute('echo=0')); ?>"><?php the_title(); ?></a></h2> 30 <?php else : ?> 31 <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__('Permanent Link to %s', 'xpress'), the_title('','',false)); ?>"><?php the_title(); ?></a></h2> 32 <?php endif; ?> 29 33 </div> 30 34 </div> -
trunk/xpressme_integration_kit/wp-content/themes/xpress_default/searchform.php
r96 r252 1 1 <form method="get" id="searchform" action="<?php bloginfo('url'); ?>/"> 2 2 <label class="hidden" for="s"><?php _e('Search for:', 'xpress'); ?></label> 3 <div><input type="text" value="<?php the_search_query(); ?>" name="s" id="s" /> 3 <?php if(function_exists('the_search_query')) : ?> 4 <div><input type="text" value="<?php the_search_query(); ?>" name="s" id="s" /> 5 <?php else : ?> 6 <div><input type="text" value="<?php echo attribute_escape($s); ?>" name="s" id="s" /> 7 <?php endif; ?> 4 8 <input type="submit" id="searchsubmit" value="<?php _e('Search', 'xpress'); ?>" /> 5 9 </div> -
trunk/xpressme_integration_kit/wp-content/themes/xpress_default/single.php
r232 r252 21 21 <?php if (function_exists('hotDates')) { hotDates(); }?> 22 22 <div class ="xpress-post-title"> 23 <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__('Permanent Link to %s', 'xpress'), the_title_attribute('echo=0')); ?>"><?php the_title(); ?></a></h2> 23 <?php if(function_exists('the_title_attribute')) : ?> 24 <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__('Permanent Link to %s', 'xpress'), the_title_attribute('echo=0')); ?>"><?php the_title(); ?></a></h2> 25 <?php else : ?> 26 <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__('Permanent Link to %s', 'xpress'), the_title('','',false)); ?>"><?php the_title(); ?></a></h2> 27 <?php endif; ?> 24 28 </div> 25 29 </div> … … 61 65 62 66 <div id ="xpress-comments-block"> 63 <?php comments_template( '', true); ?>67 <?php comments_template(); ?> 64 68 </div> 65 69 </div>
Note: See TracChangeset
for help on using the changeset viewer.