myCRED - Version 2.1.0.2

Version Description

Improvement - Code optimization

Download this release

Release Info

Developer wpexpertsio
Plugin Icon 128x128 myCRED
Version 2.1.0.2
Comparing to
See all releases

Code changes from version 2.1 to 2.1.0.2

includes/mycred-about.php CHANGED
@@ -84,6 +84,11 @@ function mycred_about_header() {
84
  width: 50%;
85
  padding-right: 20px;
86
  }
 
 
 
 
 
87
  .mycred-admin-page .mycred-btn-orange {
88
  background-color: #9852f1;
89
  color: #fff;
@@ -351,7 +356,7 @@ if ( !is_mycred_ready() ) {
351
 
352
  <div class="button-wrap mycred-clear">
353
  <div class="left">
354
- <a href="<?php echo admin_url( 'plugins.php?page=' . MYCRED_SLUG . '-setup&mycred_tour_guide=1' ) ?>" id="first_setup" onclick="startTour()" class="mycred-btn mycred-btn-block mycred-btn-lg mycred-btn-orange mycred-footer-btn">
355
  Setup myCred
356
  </a>
357
 
@@ -395,17 +400,17 @@ function mycred_about_page() {
395
 
396
  <div class="button-wrap mycred-clear">
397
  <div class="left">
398
- <?php
399
  if ( !is_mycred_ready() ) {
400
  ?>
401
- <a href="<?php echo admin_url( 'plugins.php?page=' . MYCRED_SLUG . '-setup&mycred_tour_guide=1' ) ?>" id="first_setup" onclick="startTour()" class="mycred-btn mycred-btn-block mycred-btn-lg mycred-btn-orange">
402
  Setup myCred
403
  </a>
404
  <?php
405
  }
406
  ?>
407
  </div>
408
- <div class="right">
409
  <a href="https://codex.mycred.me/" class="mycred-btn mycred-btn-block mycred-btn-lg mycred-btn-grey" target="_blank" rel="noopener noreferrer">
410
  Documentation
411
  </a>
84
  width: 50%;
85
  padding-right: 20px;
86
  }
87
+ #mycred-welcome .button-wrap .center {
88
+ width: 50%;
89
+ margin: 0 auto;
90
+ padding-right: 20px;
91
+ }
92
  .mycred-admin-page .mycred-btn-orange {
93
  background-color: #9852f1;
94
  color: #fff;
356
 
357
  <div class="button-wrap mycred-clear">
358
  <div class="left">
359
+ <a href="<?php echo admin_url( 'plugins.php?page=' . MYCRED_SLUG . '-setup&mycred_tour_guide=1' ) ?>" id="first_setup" class="mycred-btn mycred-btn-block mycred-btn-lg mycred-btn-orange mycred-footer-btn">
360
  Setup myCred
361
  </a>
362
 
400
 
401
  <div class="button-wrap mycred-clear">
402
  <div class="left">
403
+ <?php
404
  if ( !is_mycred_ready() ) {
405
  ?>
406
+ <a href="<?php echo admin_url( 'plugins.php?page=' . MYCRED_SLUG . '-setup&mycred_tour_guide=1' ) ?>" id="first_setup" class="mycred-btn mycred-btn-block mycred-btn-lg mycred-btn-orange">
407
  Setup myCred
408
  </a>
409
  <?php
410
  }
411
  ?>
412
  </div>
413
+ <div class="<?php if ( is_mycred_ready() ) echo 'center'; else echo 'right'; ?>">
414
  <a href="https://codex.mycred.me/" class="mycred-btn mycred-btn-block mycred-btn-lg mycred-btn-grey" target="_blank" rel="noopener noreferrer">
415
  Documentation
416
  </a>
includes/mycred-setup.php CHANGED
@@ -153,7 +153,7 @@ pre { margin: 0 0 12px 0; padding: 10px; background-color: #dedede; }
153
 
154
  <div class="row">
155
  <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
156
- <p><input type="submit" onclick="startTour()" id="mycred-tour" class="button button-primary button-large" value="<?php _e( 'Create Point Type', 'mycred' ); ?>" /><button type="button" id="toggle-advanced-options" class="button button-secondary pull-right" data-hide="<?php _e( 'Hide', 'mycred' ); ?>" data-show="<?php _e( 'Advanced', 'mycred' ); ?>"><?php _e( 'Advanced', 'mycred' ); ?></button></p>
157
  </div>
158
  </div>
159
 
153
 
154
  <div class="row">
155
  <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
156
+ <p><input type="submit" id="mycred-tour" class="button button-primary button-large" value="<?php _e( 'Create Point Type', 'mycred' ); ?>" /><button type="button" id="toggle-advanced-options" class="button button-secondary pull-right" data-hide="<?php _e( 'Hide', 'mycred' ); ?>" data-show="<?php _e( 'Advanced', 'mycred' ); ?>"><?php _e( 'Advanced', 'mycred' ); ?></button></p>
157
  </div>
158
  </div>
159
 
includes/mycred-walkthrough.php CHANGED
@@ -10,12 +10,16 @@ if ( ! defined( 'myCRED_VERSION' ) ) exit;
10
  */
11
  if ( ! class_exists( 'myCRED_walkthroug' ) ) :
12
  class myCRED_walkthroug {
 
 
13
  /**
14
  * Construct
15
  */
16
  public function __construct() {
17
 
18
  $this->core = mycred();
 
 
19
  }
20
  /**
21
  * Load Class
@@ -24,9 +28,11 @@ if ( ! class_exists( 'myCRED_walkthroug' ) ) :
24
  */
25
  public function load() {
26
 
27
- wp_register_style( 'mycred-tourguide-style', plugins_url( 'assets/css/tourguide.css', myCRED_THIS ), array(), myCRED_VERSION , 'all' );
28
- wp_register_script( 'mycred-tourguide-script', plugins_url( 'assets/js/tourguide.min.js',myCRED_THIS ), array( 'jquery' ), myCRED_VERSION , true );
29
-
 
 
30
  $step = intval($_GET['mycred_tour_guide']);
31
 
32
  $redirect_url = '';
@@ -53,5 +59,6 @@ if ( ! class_exists( 'myCRED_walkthroug' ) ) :
53
  wp_enqueue_script( 'mycred-tourguide-script' );
54
  wp_enqueue_style( 'mycred-tourguide-style' );
55
  }
 
56
  }
57
  endif;
10
  */
11
  if ( ! class_exists( 'myCRED_walkthroug' ) ) :
12
  class myCRED_walkthroug {
13
+
14
+
15
  /**
16
  * Construct
17
  */
18
  public function __construct() {
19
 
20
  $this->core = mycred();
21
+
22
+ add_action( 'wp_loaded', array( $this, 'load' ) );
23
  }
24
  /**
25
  * Load Class
28
  */
29
  public function load() {
30
 
31
+ wp_register_style( 'mycred-tourguide-style', plugins_url( 'assets/css/tourguide.css', myCRED_THIS ), array(), myCRED_VERSION , 'all' );
32
+
33
+ wp_register_script( 'mycred-tourguide-script', plugins_url( 'assets/js/tourguide.min.js',myCRED_THIS ), array( 'jquery' ), myCRED_VERSION , true );
34
+
35
+
36
  $step = intval($_GET['mycred_tour_guide']);
37
 
38
  $redirect_url = '';
59
  wp_enqueue_script( 'mycred-tourguide-script' );
60
  wp_enqueue_style( 'mycred-tourguide-style' );
61
  }
62
+
63
  }
64
  endif;
mycred.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: myCred
4
  * Plugin URI: https://mycred.me
5
  * Description: An adaptive points management system for WordPress powered websites.
6
- * Version: 2.1
7
  * Tags: point, credit, loyalty program, engagement, reward, woocommerce rewards
8
  * Author: myCred
9
  * Author URI: https://mycred.me
@@ -20,7 +20,7 @@ if ( ! class_exists( 'myCRED_Core' ) ) :
20
  final class myCRED_Core {
21
 
22
  // Plugin Version
23
- public $version = '2.1';
24
 
25
  // Instnace
26
  protected static $_instance = NULL;
@@ -263,7 +263,6 @@ if ( ! class_exists( 'myCRED_Core' ) ) :
263
 
264
  $this->file( myCRED_INCLUDES_DIR . 'mycred-walkthrough.php' );
265
  $walkthrough = new myCRED_walkthroug();
266
- $walkthrough->load();
267
 
268
  }
269
 
3
  * Plugin Name: myCred
4
  * Plugin URI: https://mycred.me
5
  * Description: An adaptive points management system for WordPress powered websites.
6
+ * Version: 2.1.0.2
7
  * Tags: point, credit, loyalty program, engagement, reward, woocommerce rewards
8
  * Author: myCred
9
  * Author URI: https://mycred.me
20
  final class myCRED_Core {
21
 
22
  // Plugin Version
23
+ public $version = '2.1.0.2';
24
 
25
  // Instnace
26
  protected static $_instance = NULL;
263
 
264
  $this->file( myCRED_INCLUDES_DIR . 'mycred-walkthrough.php' );
265
  $walkthrough = new myCRED_walkthroug();
 
266
 
267
  }
268
 
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: mycred,wpexpertsio
3
  Tags: badges, gamification, loyalty, points, rewards
4
  Requires at least: 4.8
5
  Tested up to: 5.7.1
6
- Stable tag: 2.1
7
  Requires PHP: 7.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -361,6 +361,12 @@ Bug fixes release.
361
 
362
  == Changelog ==
363
 
 
 
 
 
 
 
364
  = 2.1 =
365
  NEW - Open badge functionality in myCred Badge addon.
366
  NEW - Introduce Achievement Types.
3
  Tags: badges, gamification, loyalty, points, rewards
4
  Requires at least: 4.8
5
  Tested up to: 5.7.1
6
+ Stable tag: 2.1.0.2
7
  Requires PHP: 7.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
361
 
362
  == Changelog ==
363
 
364
+ = 2.1.0.2 =
365
+ Improvement - Code optimization
366
+
367
+ = 2.1.0.1 =
368
+ Fix - Remove warnings
369
+
370
  = 2.1 =
371
  NEW - Open badge functionality in myCred Badge addon.
372
  NEW - Introduce Achievement Types.