Changeset 2125335
- Timestamp:
- 07/18/2019 02:26:57 PM (7 years ago)
- Location:
- realtypack-core/trunk
- Files:
-
- 9 edited
-
controllers/admin/dashboard/dashboard.php (modified) (1 diff)
-
controllers/admin/dashboard/importer.php (modified) (1 diff)
-
controllers/admin/dashboard/plugin.php (modified) (2 diffs)
-
lib/loader.php (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
-
realtypack-core.php (modified) (3 diffs)
-
views/tpl/admin/dashboard.php (modified) (2 diffs)
-
views/tpl/admin/system-status.php (modified) (1 diff)
-
views/tpl/errors/requirements-error.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
realtypack-core/trunk/controllers/admin/dashboard/dashboard.php
r2118259 r2125335 118 118 // Send request result 119 119 if ( isset( $remote['error'] ) ) { 120 if ( !$remote['error'] ) {120 if ( isset( $remote['error'] ) && '1' != $remote['error'] ) { 121 121 update_option( 'realtypack_activation', 'activated' ); 122 122 } 123 123 124 wp_send_json( array( 'error' => $remote['error'], 'message' => $remote['message'] ) ); 124 125 } -
realtypack-core/trunk/controllers/admin/dashboard/importer.php
r2125190 r2125335 75 75 // Get remote plugin data 76 76 $remote = self::remote_get( self::$api_base . 'demos/' . $purchase_code ); 77 78 if ( isset( $remote['body'] ) && ! empty( $remote['body'] ) ) { 79 // set data 80 $this->remoteData = $remote; 77 // Set data 78 $this->remoteData = $remote; 79 80 $remote = json_decode( $remote['body'], true ); 81 82 if ( !isset( $remote['error'] ) ) { 81 83 add_filter( 'rtpc/add/demos', array( $this, 'rtpc_register_demo' ) ); 82 84 } -
realtypack-core/trunk/controllers/admin/dashboard/plugin.php
r2125190 r2125335 73 73 // Get remote plugin data 74 74 $remote = parent::remote_get( self::$api_base . 'plugins/' . $purchase_code ); 75 if ( isset( $remote['body'] ) && ! empty( $remote['body'] ) ) { 76 // Set data 77 $this->remoteData = $remote; 75 // Set data 76 $this->remoteData = $remote; 77 78 $remote = json_decode( $remote['body'], true ); 79 80 if ( !isset( $remote['error'] ) ) { 78 81 add_filter( 'rtpc/add/plugins', array( $this, 'rtpc_register_plugins' ) ); 79 82 } … … 96 99 97 100 $remote = $this->remoteData; 98 $remote = json_decode( $remote['body'], true ); 101 $remote = json_decode( $remote['body'], true );; 99 102 100 103 if ( !$remote ) { -
realtypack-core/trunk/lib/loader.php
r2118259 r2125335 7 7 */ 8 8 namespace RTPC; 9 use RTPC\controllers\RTPC_Controllers_Controller; 9 10 use RTPC\controllers\admin\RTPC_Controllers_Admin_Enqueue; 10 11 use RTPC\controllers\admin\RTPC_Controllers_Admin_Rating; … … 123 124 add_filter( 'plugin_action_links_' . REALTYPACK_CORE_BASENAME , array( $this, 'realtypack_core_links' ), 10, 4 ); 124 125 126 if ( version_compare( WPL_VERSION, '4.4.0', '<' ) ) { 127 add_action( 'admin_notices', array( $this, 'render_wpl_error_notice' ) ); 128 } 125 129 126 130 $this->load_plugins(); … … 237 241 } 238 242 243 function render_wpl_error_notice() { 244 245 echo RTPC_Controllers_Controller::render_template( 246 'errors/upgrade-wpl.php', 247 array(), 248 'always' 249 ); 250 251 } 252 239 253 public function detect_core_activation( $plugin ) { 240 254 -
realtypack-core/trunk/readme.txt
r2125190 r2125335 5 5 Requires at least: 4.6 6 6 Tested up to: 5.2 7 Stable tag: 1.0. 27 Stable tag: 1.0.4 8 8 Requires PHP: 5.4.0 9 9 License: GPLv2 or later … … 71 71 == Changelog == 72 72 73 = 1.0.4 = 74 - Fixed License activation issue. 75 76 = 1.0.3 = 77 - ADDED warning message for update wpl if is required. 78 73 79 = 1.0.2 = 74 80 - ADDED activation with license. -
realtypack-core/trunk/realtypack-core.php
r2125190 r2125335 9 9 * Description: RealtyPack real estate theme core plugin, Elementor widgets, Demo Importer, Live Customizer options and many useful settings will be added to RealtyPack via this plugin. 10 10 * Plugin URI: https://www.eightqueens.pro/realtypack/landing 11 * Version: 1.0. 211 * Version: 1.0.4 12 12 * Author: EightQueens 13 13 * Author URI: https://www.eightqueens.pro … … 19 19 die; 20 20 } 21 21 if ( ! function_exists('write_log')) { 22 function write_log ( $log ) { 23 if ( is_array( $log ) || is_object( $log ) ) { 24 error_log( print_r( $log, true ) ); 25 } else { 26 error_log( $log ); 27 } 28 } 29 } 22 30 /** 23 31 * Run main class … … 75 83 76 84 // Define version. 77 define( 'RTPC_VERSION', '1.0. 2' );85 define( 'RTPC_VERSION', '1.0.4' ); 78 86 define( 'REALTYPACK_CORE_BASENAME', plugin_basename( __FILE__ ) ); 79 87 -
realtypack-core/trunk/views/tpl/admin/dashboard.php
r2122104 r2125335 14 14 <span class="rtpc-admin-box-separator blue"></span> 15 15 <div> 16 <?php esc_html_e( 'In order to use all theme features and options, please enter your purchase code.', 'realtif-core' ); ?>16 <?php esc_html_e( 'In order to use all theme features and options, please enter your license code.', 'realtif-core' ); ?> 17 17 18 18 </div> … … 26 26 </div> 27 27 <?php $verify = get_option( 'realtypack_activation', false ); ?> 28 <span class="rtpc-admin-msg rtpc-admin-success-msg"><?php echo ( false !== $verify ) ? esc_html__( 'RealtyPack Activated Successfully', 'realty-pack' ) : ''; ?></span>28 <span class="rtpc-admin-msg rtpc-admin-success-msg"><?php echo ( ( false != $verify || '' != $verify ) ? esc_html__( 'RealtyPack Activated Successfully', 'realty-pack' ) : ''); ?></span> 29 29 <span class="rtpc-admin-msg rtpc-admin-error-msg"></span> 30 30 </div> -
realtypack-core/trunk/views/tpl/admin/system-status.php
r2122102 r2125335 179 179 <?php echo esc_html( $plugin_data['Version'] ) ; ?> 180 180 </td> 181 <td><?php echo sprintf( _x( 'by %s', 'by author', ' auxin-elements' ), $plugin_data['Author'] ); ?></td>181 <td><?php echo sprintf( _x( 'by %s', 'by author', 'realty-pack-core' ), $plugin_data['Author'] ); ?></td> 182 182 </tr> 183 183 <?php -
realtypack-core/trunk/views/tpl/errors/requirements-error.php
r2118259 r2125335 1 <?php 2 /** 3 * @link https://eightqueens.pro 4 * @since 1.0.0 5 * 6 * @package RealtyPack Core 7 */ 8 ?> 1 9 <div class="error"> 2 10 <p>
Note: See TracChangeset
for help on using the changeset viewer.