XPressME Integration Kit

Trac


Ignore:
Timestamp:
Dec 17, 2008, 12:18:56 PM (16 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()

Location:
trunk/wp-content/themes/xpress_default
Files:
5 edited

Legend:

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

    r1 r32  
    11<hr /> 
    22<div id="xpress_footer"> 
    3 <!-- If you'd like to support WordPress, having the "powered by" link somewhere on your blog is the best way; it's our only promotion or advertising. --> 
    43        <p> 
    5                 <?php printf(__('%1$s is proudly powered by %2$s', 'kubrick'), get_bloginfo('name'),the_credit()); ?> 
    6                 <br /><?php printf(__('%1$s and %2$s.', 'kubrick'), '<a href="' . get_bloginfo('rss2_url') . '">' . __('Entries (RSS)', 'kubrick') . '</a>', '<a href="' . get_bloginfo('comments_rss2_url') . '">' . __('Comments (RSS)', 'kubrick') . '</a>'); ?> 
     4                <?php printf(__('%1$s and %2$s.', 'kubrick'), '<a href="' . get_bloginfo('rss2_url') . '">' . __('Entries (RSS)', 'kubrick') . '</a>', '<a href="' . get_bloginfo('comments_rss2_url') . '">' . __('Comments (RSS)', 'kubrick') . '</a>'); ?> 
    75                <!-- <?php printf(__('%d queries. %s seconds.', 'kubrick'), get_num_queries(), timer_stop(0, 3)); ?> --> 
    86        </p> 
     7        <!-- If you'd like to support WordPress, having the "powered by" link somewhere on your blog is the best way; it's our only promotion or advertising. --> 
     8                <div id="xpress_credit"><?php echo xpress_credit(). ' (' . xpress_convert_time() . ')'; ?></div> 
    99</div> 
    1010</div> 
  • 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='&laquo; %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 &raquo;', $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<!--"; 
  • trunk/wp-content/themes/xpress_default/index.php

    r1 r32  
    33       <div id="xpress_wrap"> 
    44            
    5         <?php if(is_sidbar_disp()) : ?> 
     5        <?php if(xpress_is_theme_sidebar_disp()) : ?> 
    66            
    77                <div id="xpress_content" class="narrowcolumn"> 
  • trunk/wp-content/themes/xpress_default/single.php

    r1 r32  
    1313 
    1414                <div class="xpress_single_navigation"> 
    15                         <div class="alignleft"><?php kuro_previous_post_link('&laquo; %link') ?></div> 
    16                         <div class="alignright"><?php kuro_next_post_link('%link &raquo;') ?></div> 
     15                        <div class="alignleft"><?php xpress_left_arrow_post_link(true) ?></div> 
     16                        <div class="alignright"><?php xpress_right_arrow_post_link(true) ?></div> 
    1717                </div> 
    1818 
  • trunk/wp-content/themes/xpress_default/style.css

    r25 r32  
    141141        font-size: 0.9em; 
    142142}        
     143 
     144#xpress_credit { 
     145        font-size: 0.9em; 
     146        color: darkgray; 
     147} 
     148#xpress_credit a { 
     149        font-size: 0.9em; 
     150        color: darkgray; 
     151}        
    143152/* End Typography & Colors */ 
    144153 
     
    250259        margin: 0; 
    251260        padding: 20px 0; 
     261        text-align: center; 
     262        } 
     263         
     264#xpress_credit { 
     265        margin: 0; 
     266        padding: 0; 
    252267        text-align: center; 
    253268        } 
Note: See TracChangeset for help on using the changeset viewer.