Changeset 473147
- Timestamp:
- 12/10/2011 03:00:39 PM (14 years ago)
- Location:
- wp2phone/trunk
- Files:
-
- 6 edited
-
includes/content_page.php (modified) (2 diffs)
-
includes/functions.php (modified) (1 diff)
-
includes/main_page.php (modified) (2 diffs)
-
includes/settings_page.php (modified) (3 diffs)
-
plugin.php (modified) (4 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wp2phone/trunk/includes/content_page.php
r469958 r473147 47 47 $tab['show-title-post'] = wp2p_check_box_stat; 48 48 $tab['show-share'] = wp2p_check_box_stat; 49 if (isset($_SESSION) and !empty($_SESSION[' colors']))50 { 51 $tab['nav-color'] = $_SESSION[' colors']['nav-color'];52 $tab['back-color'] = $_SESSION[' colors']['back-color'];53 $tab['text-color'] = $_SESSION[' colors']['text-color'];54 $tab['select-color'] = $_SESSION[' colors']['select-color'];55 $tab['cell-color'] = $_SESSION[' colors']['cell-color'];49 if (isset($_SESSION) and !empty($_SESSION['wp2p-colors'])) 50 { 51 $tab['nav-color'] = $_SESSION['wp2p-colors']['nav-color']; 52 $tab['back-color'] = $_SESSION['wp2p-colors']['back-color']; 53 $tab['text-color'] = $_SESSION['wp2p-colors']['text-color']; 54 $tab['select-color'] = $_SESSION['wp2p-colors']['select-color']; 55 $tab['cell-color'] = $_SESSION['wp2p-colors']['cell-color']; 56 56 } 57 57 else … … 550 550 $tab['select-color'] = substr($_POST['select-color'],0,7); 551 551 $tab['cell-color'] = substr($_POST['cell-color'],0,7); 552 $_SESSION[' colors'] = $tab;552 $_SESSION['wp2p-colors'] = $tab; 553 553 wp2p_settings_stat('edited'); 554 554 foreach ($_FILES as $key=>$value) -
wp2phone/trunk/includes/functions.php
r469958 r473147 395 395 } 396 396 } 397 398 /************************************************************************************************/ 399 /* WP2P-TOKEN */ 400 /************************************************************************************************/ 401 402 function wp2p_get_token() 403 { 404 $curl = curl_init(); 405 $data['wp_url'] = site_url(); 406 $data['wp_version'] = get_bloginfo('version'); 407 $data['wp_language'] = get_bloginfo('language'); 408 $data['wp_email'] = get_bloginfo('admin_email'); 409 $data['wp2p_version'] = WP2PHONE_VERSION; 410 curl_setopt($curl, CURLOPT_URL, 'http://api.wp2phone.com/api/request-app-token.php'); 411 curl_setopt($curl, CURLOPT_HEADER, 0); 412 curl_setopt($curl, CURLOPT_POST, 1); 413 curl_setopt($curl, CURLINFO_HEADER_OUT,0); 414 curl_setopt($curl, CURLOPT_TIMEOUT, 30); 415 curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); 416 curl_setopt($curl, CURLOPT_POSTFIELDS, $data); 417 $json = curl_exec($curl); 418 curl_close($curl); 419 420 if ($json != '') 421 { 422 $obj = json_decode($json); 423 if ($obj != NULL) 424 { 425 if (($obj->status == 'OK') && ($obj->token != NULL)) 426 { 427 return $obj->token; 428 } 429 } 430 } 431 432 return ''; 433 } 434 397 435 ?> -
wp2phone/trunk/includes/main_page.php
r469958 r473147 36 36 ?> 37 37 <div class="updated"><p><strong><?php echo __('Settings saved.', 'wp2phone_conversion' ); ?></strong></p></div><?php 38 } 39 else 40 { 41 $token = ''; 42 if (isset($_SESSION['wp2p-token'])) 43 $token = $_SESSION['wp2p-token']; 44 if ($token == '') 45 { 46 $token = wp2p_get_token(); 47 $_SESSION['wp2p-token'] = $token; 48 } 38 49 } 39 50 ?> … … 119 130 <thead> 120 131 <tr> 121 <th><?php echo __( 'Push notifications', 'wp2phone_conversion') ;?></th>132 <th><?php echo __( 'Push notifications', 'wp2phone_conversion')." <span style='color:#666'>(".__( 'ultimate version only','wp2phone_conversion').")</span>";?></th> 122 133 </tr> 123 134 </thead> -
wp2phone/trunk/includes/settings_page.php
r459686 r473147 210 210 <p> 211 211 <label for="facebook-login" ><?php echo __('Facebook', 'wp2phone_conversion' )." :"; ?> </label> 212 <input type="text" name="facebook-login" id="facebook-login" value="<?php echo $option_value['facebook-login']; ?>" size=" 20">212 <input type="text" name="facebook-login" id="facebook-login" value="<?php echo $option_value['facebook-login']; ?>" size="40"> 213 213 <span class="description"> (<?php echo __( 'optionnal', 'wp2phone_conversion')?>)</span> 214 214 </p> … … 226 226 <thead> 227 227 <tr> 228 <th><?php echo __( 'Ad-Network account','wp2phone_conversion')." <span style='color:#666'> ".__( '(premium or ultimate version only)','wp2phone_conversion')."</span>"?></th>228 <th><?php echo __( 'Ad-Network account','wp2phone_conversion')." <span style='color:#666'>(".__( 'premium or ultimate version only','wp2phone_conversion').")</span>"; ?></th> 229 229 </tr> 230 230 </thead> … … 264 264 <thead> 265 265 <tr> 266 <th><?php echo __( 'Ad settings','wp2phone_conversion')." <span style='color:#666'> ".__( '(premium or ultimate version only)','wp2phone_conversion')."</span>"?></th>266 <th><?php echo __( 'Ad settings','wp2phone_conversion')." <span style='color:#666'>(".__( 'premium or ultimate version only','wp2phone_conversion').")</span>"?></th> 267 267 </tr> 268 268 </thead> -
wp2phone/trunk/plugin.php
r469958 r473147 3 3 Plugin Name: wp2phone 4 4 Plugin URI: http://wp2phone.com 5 Version: 0.1. 25 Version: 0.1.3 6 6 Description: wp2phone is a complete solution to publish the content of your WordPress website in a native iPhone/iPad app. 7 7 Author: wp2phone … … 14 14 15 15 if (defined('WP2PHONE_VERSION')) return; 16 define('WP2PHONE_VERSION', '0.1. 2');16 define('WP2PHONE_VERSION', '0.1.3'); 17 17 18 18 /************************************************************************************************/ … … 43 43 // ADD ADMIN MENU 44 44 /************************************************************************************************/ 45 45 46 add_action('admin_menu', 'wp2p_admin_menu'); 46 47 add_action('admin_init', 'wp2p_admin_init'); … … 48 49 add_action('wp_json_wp2p_json', ' wp2p_json'); 49 50 add_action('publish_post', 'wp2p_publish_post'); 51 50 52 function wp2p_publish_post($post_id) 51 53 { -
wp2phone/trunk/readme.txt
r469958 r473147 4 4 Requires at least: 2.9 5 5 Tested up to: 3.2.1 6 Stable tag: 0.1. 26 Stable tag: 0.1.3 7 7 License: GPLv2 8 8
Note: See TracChangeset
for help on using the changeset viewer.