XPressME Integration Kit

Trac

Changeset 576


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

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

Location:
trunk/xpressme_integration_kit/include
Files:
2 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 { 
  • trunk/xpressme_integration_kit/include/xpress_render.php

    r573 r576  
    3737 
    3838        $head_str = preg_replace("/^(\s)*(\r|\n|\r\n)/m", "", $head_str);        
    39         $head_str = $head_str . "\n<!-- credit " . xpress_credit('echo=0&no_link=1') . " -->\n"; 
    4039        $pattern = "^"; 
    4140        $head_str = preg_replace("/".$pattern."/m" , "\t" , $head_str); 
     
    151150' . get_mod_header($contents) . ' 
    152151<!-- end of wordpress  added module header -->'; 
    153          
     152        $wp_module_header .= "\n<!-- credit " . xpress_credit('echo=0&no_link=1') . " -->\n"; 
     153 
    154154        return $preload_make_module_header . $wp_module_header; 
    155155} 
Note: See TracChangeset for help on using the changeset viewer.