Changeset 576
- Timestamp:
- Apr 15, 2010, 7:59:37 AM (15 years ago)
- Location:
- trunk/xpressme_integration_kit/include
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/xpressme_integration_kit/include/add_xpress_process.php
r573 r576 159 159 $wp_output = ob_get_contents(); 160 160 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 162 167 //Rendering Select 163 168 if( … … 166 171 || is_iphone_with_wptouch() // When iPhone access & used wptouch plugin (thx uemu) 167 172 ){ 173 168 174 echo $wp_output; 169 175 } else { -
trunk/xpressme_integration_kit/include/xpress_render.php
r573 r576 37 37 38 38 $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";40 39 $pattern = "^"; 41 40 $head_str = preg_replace("/".$pattern."/m" , "\t" , $head_str); … … 151 150 ' . get_mod_header($contents) . ' 152 151 <!-- end of wordpress added module header -->'; 153 152 $wp_module_header .= "\n<!-- credit " . xpress_credit('echo=0&no_link=1') . " -->\n"; 153 154 154 return $preload_make_module_header . $wp_module_header; 155 155 }
Note: See TracChangeset
for help on using the changeset viewer.