XPressME Integration Kit

Trac


Ignore:
Timestamp:
Jun 8, 2009, 5:55:59 PM (15 years ago)
Author:
toemon
Message:

#137 WordPressME2.0.11への対応(ブロックの対応)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xpressme_integration_kit/wp-content/themes/xpress_default/blocks/recent_posts_content_block_theme.php

    r232 r262  
    6262                        ob_end_clean();  
    6363                         
    64                         ob_start(); 
    65                                 the_tags(__('Tags:', 'kubrick') . ' ',' • ',''); 
    66                                 $tags = ob_get_contents(); 
    67                         ob_end_clean(); 
    68                          
     64                        if (function_exists('the_tags')){ 
     65                                ob_start(); 
     66                                        the_tags(__('Tags:', 'xpress') . ' ',' • ',''); 
     67                                        $tags = ob_get_contents(); 
     68                                ob_end_clean();  
     69                        } else { 
     70                                $tags = ''; 
     71                        } 
     72 
    6973                        if ($excerpt){ 
    7074                                $excerpt_length_word = $excerpt_size; 
     
    8286                                $post_modified_date = ob_get_contents(); 
    8387                        ob_end_clean(); 
    84                          
     88                                 
    8589                        ob_start(); 
    8690                                the_modified_date($time_format); 
     
    111115                                                <?php if (function_exists('hotDates')) { hotDates(); }?> 
    112116                                                <div class ="xpress-post-title"> 
    113                                                         <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> 
     117                                                        <?php if(function_exists('the_title_attribute')) : ?>                    
     118                                                                <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> 
     119                                                        <?php else : ?> 
     120                                                                <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__('Permanent Link to %s', 'xpress'), the_title('','',false)); ?>"><?php the_title(); ?></a></h2> 
     121                                                        <?php endif; ?> 
     122 
    114123                                                </div> 
    115124                                        </div> 
Note: See TracChangeset for help on using the changeset viewer.