XPressME Integration Kit

Trac

Changeset 410 for trunk


Ignore:
Timestamp:
Oct 19, 2009, 9:08:16 PM (15 years ago)
Author:
toemon
Message:

Wptouchプラグイン対応 Fixes #232 (thx uemu)

File:
1 edited

Legend:

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

    r360 r410  
    11<?php 
     2// used wptouch plugin & iPhone access check (thx uemu) 
     3function is_iphone_with_wptouch(){ 
     4        global $wptouch_plugin; 
     5        if (is_object($wptouch_plugin)) return $wptouch_plugin->applemobile; 
     6        return false; 
     7} 
     8 
    29require_once( dirname( __FILE__ ).'/request_url.php'); 
    310if (is_xpress_index_page_call()){ 
     
    3340                $wp_output = ob_get_contents(); 
    3441        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; 
    3850        } 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); 
    4153        } 
    4254 
Note: See TracChangeset for help on using the changeset viewer.