- Timestamp:
- Oct 19, 2009, 9:08:16 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/xpressme_integration_kit/include/add_xpress_process.php
r360 r410 1 1 <?php 2 // used wptouch plugin & iPhone access check (thx uemu) 3 function is_iphone_with_wptouch(){ 4 global $wptouch_plugin; 5 if (is_object($wptouch_plugin)) return $wptouch_plugin->applemobile; 6 return false; 7 } 8 2 9 require_once( dirname( __FILE__ ).'/request_url.php'); 3 10 if (is_xpress_index_page_call()){ … … 33 40 $wp_output = ob_get_contents(); 34 41 ob_end_clean(); 35 // It judges it here because it does in is_index_page() through feed to which the permalink is set. 36 if (is_wordpress_style() || is_feed()) { 37 echo $wp_output; 42 43 //Rendering Select 44 if( 45 is_wordpress_style() // When the display mode is WordPress style 46 || is_feed() // It judges it here because it does in is_index_page() through feed to which the permalink is set. 47 || is_iphone_with_wptouch() // When iPhone access & used wptouch plugin (thx uemu) 48 ){ 49 echo $wp_output; 38 50 } else { 39 require_once( dirname( __FILE__ ).'/xpress_render.php' );40 xpress_render($wp_output);51 require_once( dirname( __FILE__ ).'/xpress_render.php' ); 52 xpress_render($wp_output); 41 53 } 42 54
Note: See TracChangeset
for help on using the changeset viewer.