XPressME Integration Kit

Trac


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

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

Location:
trunk/xpressme_integration_kit/wp-content/plugins/xpressme/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/xpressme_integration_kit/wp-content/plugins/xpressme/include/custom_functions.php

    r253 r262  
    1616                $output .= ob_get_contents(); 
    1717        ob_end_clean(); 
     18         
     19        if(function_exists('the_title_attribute')){ 
     20                $title = the_title_attribute('echo=0');  
     21        } else { 
     22                ob_start(); 
     23                        the_title(); 
     24                        $title = ob_get_contents(); 
     25                ob_end_clean(); 
     26        } 
    1827                                                 
    1928        $output .= '" rel="bookmark" title="'; 
    20         $output .= sprintf(__('Permanent Link to %s', 'xpress'), the_title_attribute('echo=0')); 
     29        $output .= sprintf(__('Permanent Link to %s', 'xpress'), $title); 
    2130        $output .= '">'; 
    22         ob_start(); 
    23                 the_title(); 
    24                 $output .= ob_get_contents(); 
    25         ob_end_clean(); 
     31        $output .= $title; 
    2632        $output .= '</a></h2>' . "\n"; 
    2733        $output .= '</div>' . "\n"; 
  • trunk/xpressme_integration_kit/wp-content/plugins/xpressme/include/functions_for_wp20.php

    r252 r262  
    248248} 
    249249 
     250// ADD WP 2.1.0 
     251function the_modified_date($d = '') { 
     252        echo apply_filters('the_modified_date', get_the_modified_date($d), $d); 
     253} 
     254 
     255// ADD WP 2.1.0 
     256function get_the_modified_date($d = '') { 
     257        if ( '' == $d ) 
     258                $the_time = get_post_modified_time(get_option('date_format')); 
     259        else 
     260                $the_time = get_post_modified_time($d); 
     261        return apply_filters('get_the_modified_date', $the_time, $d); 
     262} 
     263 
     264 
    250265/** 
    251266 * @ignore 
Note: See TracChangeset for help on using the changeset viewer.