Changeset 274
- Timestamp:
- Jun 10, 2009, 5:51:40 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/external/for_wordpress_mu/src/wp-content/themes/xpress_mu_home/index.php
r272 r274 30 30 </div> 31 31 <div class="xpress-post-entry"> 32 <?php xpress_the_content( __('Read the rest of this entry »', 'xpress') ); ?>32 <?php xpress_the_content('more_link_text=' . __('Read the rest of this entry »', 'xpress') ); ?> 33 33 </div> 34 34 <div class="xpress-link-pages"><?php wp_link_pages() ?></div> -
trunk/xpressme_integration_kit/wp-content/plugins/xpressme/include/custom_functions.php
r273 r274 519 519 } 520 520 521 function xpress_the_content($ more_link_text = null, $stripteaser = 0, $more_file = '',$show = true)521 function xpress_the_content($args ='') 522 522 { 523 523 global $post,$xpress_config; 524 524 525 526 if ($xpress_config->is_content_excerpt){ 527 $excerpt_length_word = $xpress_config->excerpt_length_word; 528 $excerpt_length_character = $xpress_config->excerpt_length_character; 529 $more_link_text = $xpress_config->more_link_text; 530 $content = get_xpress_excerpt_contents($excerpt_length_word,$excerpt_length_character,$more_link_text); 525 $defaults = array( 526 'more_link_text'=> null, 527 'stripteaser' => 0, 528 'more_file' => '', 529 'configration_select' => 1, 530 'do_excerpt' => 0, 531 'excerpt_length_word' => $xpress_config->excerpt_length_word , 532 'excerpt_length_character' => $xpress_config->excerpt_length_character , 533 'excerpt_more_link_text' => $xpress_config->more_link_text , 534 'echo' => 1 535 ); 536 $r = wp_parse_args( $args, $defaults ); 537 538 extract( $r ); 539 540 if ($configration_select){ 541 if ($xpress_config->is_content_excerpt) 542 $do_excerpt = 1; 543 else 544 $do_excerpt = 0; 545 } 546 547 if ($do_excerpt){ 548 $content = get_xpress_excerpt_contents($excerpt_length_word,$excerpt_length_character,$excerpt_more_link_text); 531 549 } else { 532 550 $content = get_the_content($more_link_text,$stripteaser,$more_file); … … 534 552 $content = str_replace(']]>', ']]>', $content); 535 553 } 536 if(empty($show)) return $content; 537 echo $content; 554 if ($echo) 555 echo $content; 556 else 557 return $content; 538 558 } 539 559 -
trunk/xpressme_integration_kit/wp-content/themes/xpress_default/blocks/recent_posts_content_block_theme.php
r272 r274 71 71 } 72 72 73 if ($excerpt){ 74 $excerpt_length_word = $excerpt_size; 75 $excerpt_length_character = $excerpt_size; 76 $more_link_text = ''; 77 $post_content = get_xpress_excerpt_contents($excerpt_length_word,$excerpt_length_character,$more_link_text); 78 } else { 79 $post_content = get_the_content(__('more'),0,'',false); 80 $post_content = apply_filters('the_content', $post_content); 81 $post_content = str_replace(']]>', ']]>', $post_content); 82 } 73 $param = array( 74 'configration_select' => 0, 75 'do_excerpt' => $excerpt, 76 'excerpt_length_word' => $excerpt_size, 77 'excerpt_length_character' => $excerpt_size, 78 'echo' => 0 79 ); 83 80 81 $post_content = xpress_the_content($param); 82 84 83 ob_start(); 85 84 the_modified_date($date_format); -
trunk/xpressme_integration_kit/wp-content/themes/xpress_default/index.php
r272 r274 34 34 </div> 35 35 <div class="xpress-post-entry"> 36 <?php xpress_the_content( __('Read the rest of this entry »', 'xpress') ); ?>36 <?php xpress_the_content('more_link_text=' . __('Read the rest of this entry »', 'xpress') ); ?> 37 37 </div> 38 38 <div class="xpress-link-pages"><?php wp_link_pages() ?></div>
Note: See TracChangeset
for help on using the changeset viewer.