Changeset 1796346
- Timestamp:
- 01/03/2018 11:42:37 AM (8 years ago)
- Location:
- wp-pwa
- Files:
-
- 16 added
- 3 edited
-
tags/1.0.7 (added)
-
tags/1.0.7/README.md (added)
-
tags/1.0.7/admin (added)
-
tags/1.0.7/admin/js (added)
-
tags/1.0.7/admin/js/wp-pwa-admin.js (added)
-
tags/1.0.7/admin/wp-pwa-admin-page.php (added)
-
tags/1.0.7/assets (added)
-
tags/1.0.7/assets/css (added)
-
tags/1.0.7/assets/css/wp-pwa-plugin.css (added)
-
tags/1.0.7/assets/wp_pwa_20x20.png (added)
-
tags/1.0.7/injector (added)
-
tags/1.0.7/injector/injector.js (added)
-
tags/1.0.7/injector/injector.min.js (added)
-
tags/1.0.7/injector/wp-pwa-injector.php (added)
-
tags/1.0.7/readme.txt (added)
-
tags/1.0.7/wp-pwa.php (added)
-
trunk/admin/wp-pwa-admin-page.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/wp-pwa.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-pwa/trunk/admin/wp-pwa-admin-page.php
r1795931 r1796346 216 216 <p class="title is-5"> 217 217 Progressive Web App 218 <span id="wp-pwa-status-enabled" class="icon is" <? echo (($wp_pwa_status!='disabled')?'style="color:#97cd76;"':'style="display:none;color:#97cd76"');?>>218 <span id="wp-pwa-status-enabled" class="icon is" <?php echo (($wp_pwa_status!='disabled')?'style="color:#97cd76;"':'style="display:none;color:#97cd76"');?>> 219 219 <i class="fa fa-check-circle" aria-hidden="true"></i> 220 220 </span> 221 <span id="wp-pwa-status-disabled" class="icon" <? echo (($wp_pwa_status=='disabled')?'style="color:#ed6c63;"':'style="display:none;color:#ed6c63"');?>>221 <span id="wp-pwa-status-disabled" class="icon" <?php echo (($wp_pwa_status=='disabled')?'style="color:#ed6c63;"':'style="display:none;color:#ed6c63"');?>> 222 222 <i class="fa fa-times-circle" aria-hidden="true"></i> 223 223 </span> … … 229 229 <select id="wp-pwa-status"> 230 230 <?php 231 $options = array( ['mobile', 'Enabled'], ['disabled', 'Disabled']); // [value, Label]231 $options = array(array('mobile','Enabled'), array('disabled','Disabled')); // [value, Label] 232 232 $status = $settings['wp_pwa_status']; 233 233 $output = ''; -
wp-pwa/trunk/readme.txt
r1795931 r1796346 5 5 Requires at least: 4.4 6 6 Tested up to: 4.8.2 7 Stable tag: 1.0. 67 Stable tag: 1.0.7 8 8 License: GPLv3 9 9 License URI: http://www.gnu.org/licenses/gpl.html … … 26 26 27 27 == Changelog == 28 29 = 1.0.7 = 30 * Improved plugin compatibility with old PHP versions 28 31 29 32 = 1.0.6 = -
wp-pwa/trunk/wp-pwa.php
r1795931 r1796346 4 4 Plugin URI: https://wordpress.org/plugins/wordpress-pwa/ 5 5 Description: WordPress plugin to turn WordPress blogs into Progressive Web Apps. 6 Version: 1.0. 66 Version: 1.0.7 7 7 Author: WordPress PWA 8 8 Author URI: … … 16 16 { 17 17 // vars 18 public $plugin_version = '1.0. 6';18 public $plugin_version = '1.0.7'; 19 19 public $rest_api_installed = false; 20 20 public $rest_api_active = false; … … 56 56 add_action( 'admin_enqueue_scripts', array( $this, 'register_wp_pwa_styles' ) ); 57 57 58 add_action( 'rest_api_init', function () { 59 register_rest_route( 'wp-pwa/v1', '/siteid/', array( 60 'methods' => 'GET', 61 'callback' => array( $this,'get_wp_pwa_site_id')) 62 ); 63 register_rest_route( 'wp-pwa/v1', '/discover/', array( 64 'methods' => 'GET', 65 'callback' => array( $this,'discover_url')) 66 ); 67 register_rest_route( 'wp-pwa/v1', '/plugin-version/', array( 68 'methods' => 'GET', 69 'callback' => array( $this,'get_wp_pwa_plugin_version')) 70 ); 71 register_rest_route( 'wp-pwa/v1', '/site-info/', array( 72 'methods' => 'GET', 73 'callback' => array( $this,'get_site_info')) 74 ); 75 }); 58 59 60 add_action( 'rest_api_init', array($this,'rest_routes')); 61 76 62 // filters 77 63 } 78 64 65 function rest_routes() { 66 register_rest_route( 'wp-pwa/v1', '/siteid/', array( 67 'methods' => 'GET', 68 'callback' => array( $this,'get_wp_pwa_site_id')) 69 ); 70 register_rest_route( 'wp-pwa/v1', '/discover/', array( 71 'methods' => 'GET', 72 'callback' => array( $this,'discover_url')) 73 ); 74 register_rest_route( 'wp-pwa/v1', '/plugin-version/', array( 75 'methods' => 'GET', 76 'callback' => array( $this,'get_wp_pwa_plugin_version')) 77 ); 78 register_rest_route( 'wp-pwa/v1', '/site-info/', array( 79 'methods' => 'GET', 80 'callback' => array( $this,'get_site_info')) 81 ); 82 } 79 83 /* 80 84 * init … … 449 453 //Adds Cross origin * to the header 450 454 function allow_origin() { 451 header("Access-Control-Allow-Origin: *"); 455 if (!headers_sent()) { 456 header("Access-Control-Allow-Origin: *"); 457 } 452 458 } 453 459
Note: See TracChangeset
for help on using the changeset viewer.