XPressME Integration Kit

Trac


Ignore:
Timestamp:
Dec 17, 2008, 12:18:56 PM (15 years ago)
Author:
toemon
Message:

カスタムファンクションをプラグイン側へ移動
リンクの関数追加 #7 #9

xpress_right_arrow_post_link($show = false)
xpress_left_arrow_post_link($show = false)

カスタム関数名変更

the_credit() -> xpress_credit()
html_convert_time() -> xpress_convert_time()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/xpress_default/functions.php

    r1 r32  
    1010load_theme_textdomain('kubrick'); 
    1111 
    12 function the_credit() 
    13 { 
    14          
    15 } 
    16  
    17 function is_sidbar_disp() 
    18 { 
    19         return true; 
    20 } 
    21  
    22 function kuro_previous_post_link($format='« %link', $link='%title', $in_same_cat = false, $excluded_categories = '') 
    23 { 
    24         $pre_title = __('Previous Post'); // This text is included in the language file that exists in WordPress2.3 or the version after that. 
    25  
    26         ob_start(); 
    27                 previous_post_link($format,$link,$in_same_cat,$excluded_categories); 
    28                 $ret = ob_get_contents(); 
    29         ob_end_clean(); 
    30         $ret= str_replace('">','" title="'. $pre_title . '">' , $ret); 
    31         echo $ret; 
    32 } 
    33  
    34 function kuro_next_post_link($format='%link »', $link='%title', $in_same_cat = false, $excluded_categories = '') 
    35 { 
    36         $next_title = __('Next Post'); // This text is included in the language file that exists in WordPress2.3 or the version after that.   
    37  
    38         ob_start(); 
    39                 next_post_link($format,$link,$in_same_cat,$excluded_categories); 
    40                 $ret = ob_get_contents(); 
    41         ob_end_clean(); 
    42         $ret= str_replace('">','" title="'. $next_title . '">' , $ret); 
    43         echo $ret; 
    44 } 
    45      
    4612function kubrick_head() { 
    4713        $head = "<style type='text/css'>\n<!--"; 
Note: See TracChangeset for help on using the changeset viewer.