Changeset 274 for trunk/xpressme_integration_kit/wp-content/plugins/xpressme/include/custom_functions.php
- Timestamp:
- Jun 10, 2009, 5:51:40 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note: See TracChangeset
for help on using the changeset viewer.