XPressME Integration Kit

Trac


Ignore:
Timestamp:
Apr 15, 2010, 7:59:37 AM (14 years ago)
Author:
toemon
Message:

ページソース内へのクレジット(コメント扱い)位置変更 Fixes #330

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xpressme_integration_kit/include/add_xpress_process.php

    r573 r576  
    159159                $wp_output = ob_get_contents(); 
    160160        ob_end_clean(); 
    161  
     161         
     162        // insert credit 
     163        $pattern = '<body'; 
     164        $replace = "\n<!-- credit " . xpress_credit('echo=0&no_link=1') . " -->\n<body"; 
     165        $wp_output = preg_replace("/" . $pattern . "/s", $replace, $wp_output); 
     166                         
    162167        //Rendering Select 
    163168        if( 
     
    166171                || is_iphone_with_wptouch()     // When iPhone access & used wptouch plugin (thx uemu) 
    167172        ){ 
     173 
    168174                        echo $wp_output; 
    169175        } else { 
Note: See TracChangeset for help on using the changeset viewer.