Changeset 57 for trunk/wp-content
- Timestamp:
- Dec 29, 2008, 2:17:00 AM (16 years ago)
- Location:
- trunk/wp-content
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/plugins/xpressme/include/custom_functions.php
r56 r57 297 297 } 298 298 299 function xpress_the_content($more_link_text = '',$excerpt_size = 0,$show = true) 300 { 301 $content = get_the_content(); 302 if($excerpt_size > 0) { 303 304 $content = apply_filters('the_excerpt_rss', $content); 305 $content = strip_tags($content); 306 307 if (mb_strlen($content) > $excerpt_size){ 308 $content = mb_substr($content, 0, $excerpt_size); 309 $content .= '... '; 310 if (!empty($more_link_text)) $content .= '<p align="center"><a href="'. get_permalink() . "\">".$more_link_text .'</a></p>'; 311 } 312 } 313 if(empty($show)) return $content; 314 echo $content; 315 } 299 316 300 317 ?> -
trunk/wp-content/themes/xpress_default/blocks/recent_posts_content_block_theme.php
r54 r57 60 60 the_tags(__('Tags').': ',' • ',''); 61 61 $tags = ob_get_contents(); 62 ob_end_clean(); 63 64 ob_start(); 65 the_content(); 66 $post_content = ob_get_contents(); 67 ob_end_clean(); 68 62 ob_end_clean(); 63 64 if ($except){ 65 $post_content = xpress_the_content(__('more'),$except_size,false); 66 } else { 67 $post_content = xpress_the_content(__('more'),0,false); 68 } 69 69 70 ob_start(); 70 71 the_modified_date(get_settings('date_format')); -
trunk/wp-content/themes/xpress_default/index.php
r52 r57 30 30 31 31 <div class="entry"> 32 <?php the_content(__('Read the rest of this entry »', 'kubrick')); ?>32 <?php xpress_the_content(__('Read the rest of this entry »') ); ?> 33 33 </div> 34 34
Note: See TracChangeset
for help on using the changeset viewer.