myCRED - Version beta2.2-2

Version Description

= 2.2 = New features and Bug fixes.

= 2.1.1 = New features and Bug fixes.

= 2.1 = New features and Bug fixes.

= 2.0 = The banking module have been replaced by Central deposite module, and interest related functionality has been removed. If you are using simple interest or compound interest related functionality, you will fine the respective functionalities missing after the update.

Download this release

Release Info

Developer wpexpertsio
Plugin Icon 128x128 myCRED
Version beta2.2-2
Comparing to
See all releases

Code changes from version beta2.2 to beta2.2-2

addons/badges/includes/mycred-badge-functions.php CHANGED
@@ -1198,5 +1198,214 @@ if ( ! function_exists( 'mycred_get_categorized_badge_list' ) ) :
1198
  'category_count' => $category_count,
1199
  );
1200
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1201
  }
1202
  endif;
1198
  'category_count' => $category_count,
1199
  );
1200
 
1201
+ }
1202
+ endif;
1203
+
1204
+ /**
1205
+ * Returns Badge congratulation message.
1206
+ * @since 2.2
1207
+ * @version 1.0
1208
+ */
1209
+ if ( ! function_exists( 'mycred_badge_show_congratulation_msg' ) ) :
1210
+ function mycred_badge_show_congratulation_msg( $user_id, $badge, $settings = NULL ) {
1211
+
1212
+ $content = '';
1213
+
1214
+ if ( empty( $settings ) ) $settings = mycred();
1215
+
1216
+ if( ! empty( $settings->core["badges"]["show_congo_text"] ) && $badge->user_has_badge( $user_id ) && ! empty( $badge->congratulation_msg ) ) {
1217
+
1218
+ $content .= '<div class="mycred-badge-congratulation-msg">' . $badge->congratulation_msg . '</div>';
1219
+
1220
+ }
1221
+
1222
+ return apply_filters( 'mycred_badge_show_congratulation_msg', $content, $badge, $settings );
1223
+
1224
+ }
1225
+ endif;
1226
+
1227
+ /**
1228
+ * Returns Badge main image with share icons.
1229
+ * @since 2.2
1230
+ * @version 1.0
1231
+ */
1232
+ if ( ! function_exists( 'mycred_badge_show_main_image_with_social_icons' ) ) :
1233
+ function mycred_badge_show_main_image_with_social_icons( $user_id, $badge, $mycred = NULL ) {
1234
+
1235
+ $content = '';
1236
+
1237
+ $image_url = $badge->get_earned_image( $user_id );
1238
+
1239
+ if ( ! empty( $image_url ) ) {
1240
+
1241
+ $content .= '<div class="mycred-badge-image-wrapper">';
1242
+
1243
+ $content .= '<img src="' . $image_url . '" class="mycred-badge-image" alt="Badge Image">';
1244
+
1245
+ if ( empty( $mycred ) ) $mycred = mycred();
1246
+
1247
+ //If user has earned badge, show user sharing badge option
1248
+ if(
1249
+ $badge->user_has_badge( $user_id ) &&
1250
+ ! empty( $mycred->core["br_social_share"]["enable_open_badge_ss"] )
1251
+ ) {
1252
+
1253
+ $facebook_url = "http://www.facebook.com/sharer.php?u=".get_permalink()."&p[images][0]=$image_url";
1254
+ $twitter_url = "https://twitter.com/share?url=".get_permalink()."";
1255
+ $linkedin_url = "http://www.linkedin.com/shareArticle?url=".get_permalink()."";
1256
+ $pinterest_url = "https://pinterest.com/pin/create/bookmarklet/?media=$image_url&amp;url=".get_permalink()."";
1257
+
1258
+ $content .= mycred_br_get_social_icons( $facebook_url, $twitter_url, $linkedin_url, $pinterest_url );
1259
+
1260
+ }
1261
+
1262
+ $content .= '</div>';
1263
+
1264
+ }
1265
+
1266
+ return apply_filters( 'mycred_badge_show_main_image_with_social_icons', $content, $badge, $mycred );
1267
+
1268
+ }
1269
+ endif;
1270
+
1271
+ /**
1272
+ * Returns Badge description.
1273
+ * @since 2.2
1274
+ * @version 1.0
1275
+ */
1276
+ if ( ! function_exists( 'mycred_badge_show_description' ) ) :
1277
+ function mycred_badge_show_description( $post, $settings = NULL ) {
1278
+
1279
+ $content = '';
1280
+
1281
+ if ( empty( $settings ) ) $settings = mycred();
1282
+
1283
+ if( ! empty( $settings->core["badges"]["show_level_description"] ) && ! empty( $post->post_content ) ) {
1284
+
1285
+ $content .= "<h3>" . __( "Description", "mycred" ) . "</h3>";
1286
+ $content .= "<p>" . $post->post_content . "</p>";
1287
+
1288
+ }
1289
+
1290
+ return apply_filters( 'mycred_badge_show_description', $content, $post, $settings );
1291
+
1292
+ }
1293
+ endif;
1294
+
1295
+ /**
1296
+ * Returns Badge levels.
1297
+ * @since 2.2
1298
+ * @version 1.0
1299
+ */
1300
+ if ( ! function_exists( 'mycred_badge_show_levels' ) ) :
1301
+ function mycred_badge_show_levels( $user_id, $badge, $settings = NULL ) {
1302
+
1303
+ $content = '';
1304
+
1305
+ if ( empty( $settings ) ) $settings = mycred();
1306
+
1307
+ if( ! empty( $settings->core["badges"]["show_levels"] ) || $badge->open_badge && ! empty( $settings->core["badges"]["show_steps_to_achieve"] ) ) {
1308
+
1309
+ if ( ! $badge->open_badge )
1310
+ $content .= "<h3>" . __("Levels", "mycred") . "</h3>";
1311
+ else
1312
+ $content .= "<h3>" . __("Requirement", "mycred") . "</h3>";
1313
+
1314
+ $levels = mycred_show_badge_requirements( $badge->post_id );
1315
+
1316
+ foreach ( $levels as $id => $level ) {
1317
+
1318
+ $level_image_url = $level["image"];
1319
+
1320
+ $heading = $level["heading"];
1321
+
1322
+ $requirements = $level["requirements"];
1323
+
1324
+ $reward = $level["amount"];
1325
+
1326
+ $content .= '<div class="mycred-badge-page-level">';
1327
+
1328
+ if ( ! $badge->open_badge ) {
1329
+
1330
+ if ( ! empty( $level_image_url ) )
1331
+ $content .= '<img src="'.$level_image_url.'" class="mycred-level-image mycred-float-left" />';
1332
+
1333
+ $content .= "<h4>$heading</h4>";
1334
+ }
1335
+
1336
+ $content .= "<div class='clear'></div>";
1337
+
1338
+ if ( ! empty( $settings->core["badges"]["show_steps_to_achieve"] ) )
1339
+ $content .= mycred_badge_level_req_check( $badge->post_id, $id );
1340
+
1341
+ if ( ! empty( $settings->core["badges"]["show_level_points"] ) && $reward != 0 ) {
1342
+
1343
+ $reward_type = mycred( $level['reward_type'] );
1344
+
1345
+ $content .= '<div class="mycred-level-reward">' . __('Reward:', 'mycred') . ' ' . $reward_type->format_creds($reward ) .'</div>';
1346
+ }
1347
+
1348
+ $content .= '</div>';
1349
+ }
1350
+
1351
+ $content .= '<div class="clear"></div>';
1352
+
1353
+ }
1354
+
1355
+ return apply_filters( 'mycred_badge_show_levels', $content, $user_id, $badge, $settings );
1356
+
1357
+ }
1358
+ endif;
1359
+
1360
+ /**
1361
+ * Returns badge earners.
1362
+ * @since 2.2
1363
+ * @version 1.0
1364
+ */
1365
+ if ( ! function_exists( 'mycred_badge_show_earners' ) ) :
1366
+ function mycred_badge_show_earners( $badge, $settings = NULL ) {
1367
+
1368
+ $content = '';
1369
+
1370
+ if ( empty( $settings ) ) $settings = mycred();
1371
+
1372
+ if ( ! empty( $settings->core["badges"]["show_earners"] ) ) {
1373
+
1374
+ $args = array(
1375
+ 'meta_query' => array(
1376
+ array(
1377
+ 'key' => MYCRED_BADGE_KEY . $badge->post_id,
1378
+ 'compare' => 'EXISTS'
1379
+ )
1380
+ )
1381
+ );
1382
+ $users_have_badge = get_users( $args );
1383
+
1384
+ if ( ! empty( $users_have_badge ) ) {
1385
+
1386
+ $content .= '<div class="mycred-badge-earners">';
1387
+ $content .= "<h3>" . __("Earners", "mycred") . "</h3>";
1388
+ $content .= '<div class="mycred-badge-earner-list">';
1389
+
1390
+ foreach ( $users_have_badge as $user ) {
1391
+
1392
+ $user_avatar = get_avatar_url( $user->ID );
1393
+
1394
+ $content .= '<div class="mycred-badge-earner-grid mycred-float-left">';
1395
+ $content .= '<div><img src="' . $user_avatar . '" /></div>';
1396
+ $content .= "<h4>$user->display_name</h4>";
1397
+ $content .= '</div>';
1398
+
1399
+ }
1400
+ $content .= '<div class="mycred-clearfix"></div>';
1401
+ $content .= '</div>';
1402
+ $content .= '</div>';
1403
+
1404
+ }
1405
+
1406
+ }
1407
+
1408
+ return apply_filters( 'mycred_badge_show_earners', $content, $badge, $settings );
1409
+
1410
  }
1411
  endif;
addons/badges/includes/mycred-badge-object.php CHANGED
@@ -37,6 +37,8 @@ if ( ! class_exists( 'myCRED_Badge' ) ) :
37
 
38
  public $main_image_url = false;
39
  public $congratulation_msg = '';
 
 
40
 
41
  /**
42
  * Construct
@@ -124,6 +126,8 @@ if ( ! class_exists( 'myCRED_Badge' ) ) :
124
  $this->main_image_url = $this->get_image_url( 'main' );
125
  $this->level_image = $this->get_image( $level_id );
126
  $this->congratulation_msg = mycred_get_post_meta( $this->post_id, 'congratulation_msg', true );
 
 
127
 
128
  }
129
 
37
 
38
  public $main_image_url = false;
39
  public $congratulation_msg = '';
40
+ public $align = 'mycred_align_left';
41
+ public $layout = 'mycred_layout_left';
42
 
43
  /**
44
  * Construct
126
  $this->main_image_url = $this->get_image_url( 'main' );
127
  $this->level_image = $this->get_image( $level_id );
128
  $this->congratulation_msg = mycred_get_post_meta( $this->post_id, 'congratulation_msg', true );
129
+ $this->align = mycred_get_post_meta( $this->post_id, 'mycred_badge_align', true );
130
+ $this->layout = mycred_get_post_meta( $this->post_id, 'mycred_layout_check', true );
131
 
132
  }
133
 
addons/badges/includes/mycred-badge-secondary.php CHANGED
@@ -16,9 +16,11 @@ if ( ! class_exists( 'myCRED_Badge_Secondary' ) ) :
16
  * Construct
17
  */
18
  function __construct() {
 
19
  add_filter( 'mycred_badge_requirement', array( $this, 'mycred_badge_specific_requirement'), 10, 5 );
20
  add_filter( 'mycred_badge_requirement_specific_template', array( $this, 'badge_specific_template'), 10, 5 );
21
  add_action( 'admin_head', array( $this, 'admin_header' ) );
 
22
  }
23
 
24
  /**
16
  * Construct
17
  */
18
  function __construct() {
19
+
20
  add_filter( 'mycred_badge_requirement', array( $this, 'mycred_badge_specific_requirement'), 10, 5 );
21
  add_filter( 'mycred_badge_requirement_specific_template', array( $this, 'badge_specific_template'), 10, 5 );
22
  add_action( 'admin_head', array( $this, 'admin_header' ) );
23
+
24
  }
25
 
26
  /**
addons/badges/myCRED-addon-badges.php CHANGED
@@ -6,10 +6,11 @@
6
  */
7
  if ( ! defined( 'myCRED_VERSION' ) ) exit;
8
 
9
- define( 'myCRED_BADGE', __FILE__ );
10
- define( 'myCRED_BADGE_VERSION', '1.3' );
11
- define( 'MYCRED_BADGE_DIR', myCRED_ADDONS_DIR . 'badges/' );
12
- define( 'MYCRED_BADGE_INCLUDES_DIR', MYCRED_BADGE_DIR . 'includes/' );
 
13
 
14
  // Badge Key
15
  if ( ! defined( 'MYCRED_BADGE_KEY' ) )
@@ -75,8 +76,7 @@ if ( ! class_exists( 'myCRED_Badge_Module' ) ) :
75
  * @since 2.1
76
  * @version 1.0
77
  */
78
- public function mycred_switch_all_to_open_badge()
79
- {
80
 
81
  $args = array(
82
  'post_type' => 'mycred_badge'
@@ -95,7 +95,7 @@ if ( ! class_exists( 'myCRED_Badge_Module' ) ) :
95
 
96
  echo 'Badges successfully switched to Open Badge.';
97
 
98
- die;
99
  }
100
 
101
  /**
@@ -164,8 +164,8 @@ if ( ! class_exists( 'myCRED_Badge_Module' ) ) :
164
  * @since 1.3
165
  * @version 1.0
166
  */
167
- public function enqueue_front_scripts()
168
- {
169
  wp_enqueue_script( 'mycred-badge-front', plugins_url( 'assets/js/front.js', myCRED_BADGE ), array('jquery'), myCRED_BADGE_VERSION );
170
  }
171
 
@@ -174,8 +174,8 @@ if ( ! class_exists( 'myCRED_Badge_Module' ) ) :
174
  * @since 1.3
175
  * @version 1.0
176
  */
177
- public function enqueue_admin_scripts()
178
- {
179
  wp_enqueue_script( 'mycred-badge-admin', plugins_url( 'assets/js/admin.js', myCRED_BADGE ), '', myCRED_BADGE_VERSION );
180
  }
181
 
@@ -455,17 +455,17 @@ if ( ! class_exists( 'myCRED_Badge_Module' ) ) :
455
  if ( mycred_override_settings() && ! mycred_is_main_site() ) return;
456
 
457
  mycred_add_main_submenu(
458
- __( 'Badges', 'mycred' ),
459
- __( 'Badges', 'mycred' ),
460
  $this->core->get_point_editor_capability(),
461
- 'edit.php?post_type=' . MYCRED_BADGE_KEY
462
  );
463
 
464
  mycred_add_main_submenu(
465
- __( 'Achievement Types', 'mycred' ),
466
- __( 'Achievement Types', 'mycred' ),
467
  $this->core->get_point_editor_capability(),
468
- 'edit-tags.php?post_type=' . MYCRED_BADGE_KEY . '&taxonomy=' . MYCRED_BADGE_CATEGORY
469
  );
470
 
471
  }
@@ -805,9 +805,9 @@ th#badge-users { width: 10%; }
805
  'low'
806
  );
807
 
808
- add_meta_box(
809
  'mycred-badge-layout',
810
- __( 'Badge-Layout', 'mycred' ),
811
  array( $this, 'metabox_badge_layout' ),
812
  MYCRED_BADGE_KEY,
813
  'side',
@@ -1000,47 +1000,7 @@ th#badge-users { width: 10%; }
1000
  public function metabox_badge_align( $post ) {
1001
 
1002
  $mycred_badge_align = mycred_get_post_meta( $post->ID, 'mycred_badge_align', true );
1003
-
1004
- ?>
1005
- <div class="row">
1006
- <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
1007
- <div class="mycred-align-option">
1008
- <ul class="mycred-radio-list">
1009
- <li>
1010
- <input type="radio" class="mycred-align-radio" name="mycred_badge[mycred_badge_align]" id="mycred_align_left" value="mycred_align_left" <?php echo ( $mycred_badge_align == 'mycred_align_left' ) ? 'checked' : '' ; ?>>
1011
- <label for="mycred_align_left">
1012
- <svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 62.26 61.16"><defs><style>.cls-1{fill:#10212b;}.cls-2{fill:#aab5bc;}.cls-3{fill:none;stroke:#10212b;stroke-miterlimit:10;}</style></defs><title>icon</title><rect class="cls-1" x="9.02" y="13.98" width="43.07" height="3.33" rx="1.67"/><rect class="cls-2" x="10.55" y="18.88" width="39.58" height="1.27" rx="0.44"/><rect class="cls-2" x="10.55" y="21.18" width="39.58" height="1.27" rx="0.44"/><rect class="cls-2" x="10.55" y="23.48" width="39.58" height="1.27" rx="0.44"/><rect class="cls-2" x="10.55" y="25.78" width="39.58" height="1.27" rx="0.44"/><rect class="cls-2" x="10.55" y="28.08" width="39.58" height="1.27" rx="0.44"/><rect class="cls-2" x="10.55" y="30.38" width="20.48" height="1.27" rx="0.44"/><rect class="cls-1" x="9.02" y="36.13" width="43.07" height="3.33" rx="1.67"/><rect class="cls-2" x="10.55" y="41.03" width="39.58" height="1.27" rx="0.44"/><rect class="cls-2" x="10.55" y="43.33" width="39.58" height="1.27" rx="0.44"/><rect class="cls-2" x="10.55" y="45.63" width="39.58" height="1.27" rx="0.44"/><rect class="cls-2" x="10.55" y="47.81" width="20.48" height="1.27" rx="0.44"/><path class="cls-2" d="M61.76,2.53v5H.5v-5c0-1.12.68-2,1.53-2h58.2C61.07.5,61.76,1.41,61.76,2.53Z"/><circle class="cls-1" cx="58.22" cy="4.64" r="0.63"/><circle class="cls-1" cx="55.83" cy="4.64" r="0.63"/><circle class="cls-1" cx="52.67" cy="4.64" r="0.63"/><rect class="cls-3" x="0.5" y="0.5" width="61.26" height="60.16"/></svg><?php _e( 'Left', 'mycred' ); ?>
1013
- </label>
1014
- </li>
1015
- <li>
1016
- <input type="radio" class="mycred-align-radio" name="mycred_badge[mycred_badge_align]" id="mycred_align_right" value="mycred_align_right" <?php echo ( $mycred_badge_align == 'mycred_align_right' ) ? 'checked' : '' ; ?>>
1017
- <label for="mycred_align_right">
1018
- <svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 62.26 61.16"><defs><style>.cls-1{fill:#10212b;}.cls-2{fill:#aab5bc;}.cls-3{fill:none;stroke:#10212b;stroke-miterlimit:10;}</style></defs><title>icon</title><rect class="cls-1" x="9.02" y="13.98" width="43.07" height="3.33" rx="1.67"/><rect class="cls-2" x="10.76" y="20.03" width="39.58" height="1.27" rx="0.44"/><rect class="cls-2" x="10.76" y="22.33" width="39.58" height="1.27" rx="0.44"/><rect class="cls-2" x="10.76" y="24.63" width="39.58" height="1.27" rx="0.44"/><rect class="cls-2" x="10.76" y="26.93" width="39.58" height="1.27" rx="0.44"/><rect class="cls-2" x="10.76" y="29.23" width="39.58" height="1.27" rx="0.44"/><rect class="cls-2" x="29.86" y="31.53" width="20.48" height="1.27" rx="0.44"/><rect class="cls-1" x="9.02" y="36.13" width="43.07" height="3.33" rx="1.67"/><rect class="cls-2" x="10.76" y="42.18" width="39.58" height="1.27" rx="0.44"/><rect class="cls-2" x="10.76" y="44.48" width="39.58" height="1.27" rx="0.44"/><rect class="cls-2" x="10.76" y="46.78" width="39.58" height="1.27" rx="0.44"/><rect class="cls-2" x="29.86" y="49.08" width="20.48" height="1.27" rx="0.44"/><path class="cls-2" d="M61.76,2.53v5H.5v-5c0-1.12.68-2,1.53-2h58.2C61.07.5,61.76,1.41,61.76,2.53Z"/><circle class="cls-1" cx="58.22" cy="4.64" r="0.63"/><circle class="cls-1" cx="55.83" cy="4.64" r="0.63"/><circle class="cls-1" cx="52.67" cy="4.64" r="0.63"/><rect class="cls-3" x="0.5" y="0.5" width="61.26" height="60.16"/></svg><?php _e( 'Right', 'mycred' ); ?>
1019
- </label>
1020
- </li>
1021
- <li>
1022
- <input type="radio" class="mycred-align-radio" name="mycred_badge[mycred_badge_align]" id="mycred_align_center" value="mycred_align_center" <?php echo ( $mycred_badge_align == 'mycred_align_center' ) ? 'checked' : '' ; ?>>
1023
- <label for="mycred_align_center">
1024
- <svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 62.26 61.16"><defs><style>.cls-1{fill:#10212b;}.cls-2{fill:#aab5bc;}.cls-3{fill:none;stroke:#10212b;stroke-miterlimit:10;}</style></defs><title>icon</title><rect class="cls-1" x="9.59" y="13.98" width="43.07" height="3.33" rx="1.67"/><rect class="cls-2" x="11.34" y="18.4" width="39.58" height="1.27" rx="0.44"/><rect class="cls-2" x="11.34" y="20.7" width="39.58" height="1.27" rx="0.44"/><rect class="cls-2" x="11.34" y="23" width="39.58" height="1.27" rx="0.44"/><rect class="cls-2" x="11.34" y="25.3" width="39.58" height="1.27" rx="0.44"/><rect class="cls-2" x="11.34" y="27.6" width="39.58" height="1.27" rx="0.44"/><rect class="cls-2" x="20.89" y="29.9" width="20.48" height="1.27" rx="0.44"/><rect class="cls-1" x="9.59" y="36.13" width="43.07" height="3.33" rx="1.67"/><rect class="cls-2" x="11.34" y="40.55" width="39.58" height="1.27" rx="0.44"/><rect class="cls-2" x="11.34" y="42.85" width="39.58" height="1.27" rx="0.44"/><rect class="cls-2" x="11.34" y="45.15" width="39.58" height="1.27" rx="0.44"/><rect class="cls-2" x="20.89" y="47.45" width="20.48" height="1.27" rx="0.44"/><path class="cls-2" d="M61.76,2.53v5H.5v-5c0-1.12.68-2,1.53-2h58.2C61.07.5,61.76,1.41,61.76,2.53Z"/><circle class="cls-1" cx="58.22" cy="4.64" r="0.63"/><circle class="cls-1" cx="55.83" cy="4.64" r="0.63"/><circle class="cls-1" cx="52.67" cy="4.64" r="0.63"/><rect class="cls-3" x="0.5" y="0.5" width="61.26" height="60.16"/></svg><?php _e( 'Center', 'mycred' ); ?>
1025
- </label>
1026
- </li>
1027
- <li>
1028
- <input type="radio" class="mycred-align-radio" name="mycred_badge[mycred_badge_align]" id="mycred_align_justify" value="mycred_align_justify" <?php echo ( $mycred_badge_align == 'mycred_align_justify' ) ? 'checked' : '' ; ?>>
1029
- <label for="mycred_align_justify">
1030
- <svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 62.26 61.16"><defs><style>.cls-1{fill:#10212b;}.cls-2{fill:#aab5bc;}.cls-3{fill:none;stroke:#10212b;stroke-miterlimit:10;}</style></defs><title>icon</title><rect class="cls-1" x="9.59" y="13.98" width="43.07" height="3.33" rx="1.67"/><rect class="cls-2" x="11.34" y="20.03" width="39.58" height="1.27" rx="0.44"/><rect class="cls-2" x="11.34" y="22.33" width="39.58" height="1.27" rx="0.44"/><rect class="cls-2" x="11.34" y="24.63" width="39.58" height="1.27" rx="0.44"/><rect class="cls-2" x="11.34" y="26.93" width="39.58" height="1.27" rx="0.44"/><rect class="cls-2" x="11.34" y="29.23" width="39.58" height="1.27" rx="0.44"/><rect class="cls-1" x="9.59" y="36.13" width="43.07" height="3.33" rx="1.67"/><rect class="cls-2" x="11.34" y="42.18" width="39.58" height="1.27" rx="0.44"/><rect class="cls-2" x="11.34" y="44.48" width="39.58" height="1.27" rx="0.44"/><rect class="cls-2" x="11.34" y="46.78" width="39.58" height="1.27" rx="0.44"/><path class="cls-2" d="M61.76,2.53v5H.5v-5c0-1.12.68-2,1.53-2h58.2C61.07.5,61.76,1.41,61.76,2.53Z"/><circle class="cls-1" cx="58.22" cy="4.64" r="0.63"/><circle class="cls-1" cx="55.83" cy="4.64" r="0.63"/><circle class="cls-1" cx="52.67" cy="4.64" r="0.63"/><rect class="cls-3" x="0.5" y="0.5" width="61.26" height="60.16"/></svg><?php _e( 'Justify', 'mycred' ); ?>
1031
- </label>
1032
- </li>
1033
- <li>
1034
- <input type="radio" class="mycred-align-radio" name="mycred_badge[mycred_badge_align]" id="mycred_align_none" value="mycred_align_none" <?php echo ($mycred_badge_align == 'mycred_align_none' ) ? 'checked' : '' ; if ( empty( $mycred_badge_align ) ) echo 'checked'; ?>>
1035
- <label for="mycred_align_none">
1036
- <svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 62.26 61.16"><defs><style>.cls-1{fill:#10212b;}.cls-2{fill:#aab5bc;}.cls-3{fill:none;stroke:#10212b;stroke-miterlimit:10;}</style></defs><title>icon</title><rect class="cls-1" x="9.02" y="13.98" width="43.07" height="3.33" rx="1.67"/><rect class="cls-2" x="10.42" y="19.03" width="39.58" height="1.27" rx="0.44"/><rect class="cls-2" x="10.42" y="21.33" width="39.58" height="1.27" rx="0.44"/><rect class="cls-2" x="10.42" y="23.63" width="39.58" height="1.27" rx="0.44"/><rect class="cls-2" x="10.42" y="25.93" width="39.58" height="1.27" rx="0.44"/><rect class="cls-2" x="10.42" y="28.23" width="39.58" height="1.27" rx="0.44"/><rect class="cls-2" x="10.42" y="30.53" width="20.48" height="1.27" rx="0.44"/><rect class="cls-1" x="9.02" y="36.13" width="43.07" height="3.33" rx="1.67"/><rect class="cls-2" x="10.42" y="41.18" width="39.58" height="1.27" rx="0.44"/><rect class="cls-2" x="10.42" y="43.48" width="39.58" height="1.27" rx="0.44"/><rect class="cls-2" x="10.42" y="45.78" width="39.58" height="1.27" rx="0.44"/><rect class="cls-2" x="10.42" y="48.08" width="20.48" height="1.27" rx="0.44"/><path class="cls-2" d="M61.76,2.53v5H.5v-5c0-1.12.68-2,1.53-2h58.2C61.07.5,61.76,1.41,61.76,2.53Z"/><circle class="cls-1" cx="58.22" cy="4.64" r="0.63"/><circle class="cls-1" cx="55.83" cy="4.64" r="0.63"/><circle class="cls-1" cx="52.67" cy="4.64" r="0.63"/><rect class="cls-3" x="0.5" y="0.5" width="61.26" height="60.16"/></svg><?php _e( 'None', 'mycred' ); ?>
1037
- </label>
1038
- </li>
1039
- </ul>
1040
- </div>
1041
- </div>
1042
- </div>
1043
- <?php
1044
 
1045
  }
1046
 
@@ -1049,47 +1009,7 @@ th#badge-users { width: 10%; }
1049
  public function metabox_badge_layout( $post ) {
1050
 
1051
  $mycred_layout = mycred_get_post_meta( $post->ID, 'mycred_layout_check', true );
1052
-
1053
- ?>
1054
- <div class="row">
1055
- <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
1056
- <div class="mycred-layout-option">
1057
- <ul class="mycred-radio-list">
1058
- <li>
1059
- <input type="radio" class="mycred-layout-radio" name="mycred_badge[mycred_layout_check]" id="mycred_layout_left" value="mycred_layout_left" <?php echo ( $mycred_layout == 'mycred_layout_left' ) ? 'checked' : '' ; ?>>
1060
- <label for="mycred_layout_left">
1061
- <svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 62.26 61.16"><defs><style>.cls-1{fill:#aab5bc;}.cls-2{fill:#10212b;}.cls-3{fill:none;stroke:#10212b;stroke-miterlimit:10;}</style></defs><title>icon</title><path class="cls-1" d="M61.76,2.53v5H.5v-5c0-1.12.68-2,1.53-2h58.2C61.07.5,61.76,1.41,61.76,2.53Z"/><path class="cls-2" d="M24.51,15.85H5.93a1.34,1.34,0,0,0-1.34,1.33v11.7a1.34,1.34,0,0,0,1.34,1.34H24.51a1.34,1.34,0,0,0,1.33-1.34V17.18A1.34,1.34,0,0,0,24.51,15.85Zm.9,13a.9.9,0,0,1-.9.91H5.93A.91.91,0,0,1,5,28.88V17.18a.9.9,0,0,1,.91-.9H24.51a.9.9,0,0,1,.9.9Z"/><rect class="cls-2" x="28.02" y="16.06" width="29.65" height="2.29" rx="1.15"/><rect class="cls-1" x="29.22" y="20.23" width="27.24" height="0.87" rx="0.44"/><rect class="cls-1" x="29.22" y="21.81" width="27.24" height="0.87" rx="0.44"/><rect class="cls-1" x="29.22" y="23.39" width="27.24" height="0.87" rx="0.44"/><rect class="cls-1" x="29.22" y="24.98" width="27.24" height="0.87" rx="0.44"/><rect class="cls-1" x="29.22" y="26.56" width="27.24" height="0.87" rx="0.44"/><rect class="cls-1" x="29.22" y="28.14" width="14.1" height="0.87" rx="0.44"/><rect class="cls-1" x="29.22" y="31.5" width="27.24" height="0.87" rx="0.44"/><rect class="cls-1" x="29.22" y="33.09" width="27.24" height="0.87" rx="0.44"/><rect class="cls-1" x="29.22" y="34.67" width="27.24" height="0.87" rx="0.44"/><rect class="cls-1" x="29.22" y="36.25" width="14.1" height="0.87" rx="0.44"/><rect class="cls-1" x="31.65" y="45.35" width="20.1" height="0.87" rx="0.44"/><rect class="cls-1" x="31.65" y="48.26" width="24.49" height="0.87" rx="0.44"/><rect class="cls-1" x="31.65" y="51.04" width="14.1" height="0.87" rx="0.44"/><rect class="cls-2" x="28.02" y="41" width="29.65" height="2.29" rx="1.15"/><circle class="cls-1" cx="29.95" cy="45.95" r="0.6"/><circle class="cls-1" cx="29.95" cy="48.7" r="0.6"/><circle class="cls-1" cx="29.95" cy="51.47" r="0.6"/><path class="cls-2" d="M25.84,20.29v8.59a1.34,1.34,0,0,1-1.33,1.34H5.93a1.34,1.34,0,0,1-1.34-1.34v-.64c.13-.14.27-.3.43-.46a10.18,10.18,0,0,1,6.71-3.1c5.4-.31,8.69-5.59,13.68-4.5l.22.05Z"/><circle class="cls-2" cx="7.5" cy="19.24" r="1.22"/><circle class="cls-2" cx="58.22" cy="4.64" r="0.63"/><circle class="cls-2" cx="55.83" cy="4.64" r="0.63"/><circle class="cls-2" cx="52.67" cy="4.64" r="0.63"/><rect class="cls-3" x="0.5" y="0.5" width="61.26" height="60.16"/></svg><?php _e( 'Left', 'mycred' ); ?>
1062
- </label>
1063
- </li>
1064
- <li>
1065
- <input type="radio" class="mycred-layout-radio" name="mycred_badge[mycred_layout_check]" id="mycred_layout_top" value="mycred_layout_top" <?php echo ( $mycred_layout == 'mycred_layout_top' ) ? 'checked' : '' ; ?>>
1066
- <label for="mycred_layout_top">
1067
- <svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 62.26 61.16"><defs><style>.cls-1{fill:#aab5bc;}.cls-2{fill:#10212b;}.cls-3{fill:none;stroke:#10212b;stroke-miterlimit:10;}</style></defs><title>icon</title><path class="cls-1" d="M61.76,2.53v5H.5v-5c0-1.12.68-2,1.53-2h58.2C61.07.5,61.76,1.41,61.76,2.53Z"/><rect class="cls-2" x="16.31" y="31.62" width="29.65" height="2.29" rx="1.15"/><rect class="cls-1" x="17.51" y="35.78" width="27.24" height="0.87" rx="0.44"/><rect class="cls-1" x="17.51" y="37.37" width="27.24" height="0.87" rx="0.44"/><rect class="cls-1" x="17.51" y="38.95" width="27.24" height="0.87" rx="0.44"/><rect class="cls-1" x="17.51" y="40.53" width="27.24" height="0.87" rx="0.44"/><rect class="cls-1" x="17.51" y="42.11" width="27.24" height="0.87" rx="0.44"/><rect class="cls-1" x="17.51" y="43.7" width="14.1" height="0.87" rx="0.44"/><rect class="cls-1" x="17.51" y="47.06" width="27.24" height="0.87" rx="0.44"/><rect class="cls-1" x="17.51" y="48.64" width="27.24" height="0.87" rx="0.44"/><rect class="cls-1" x="17.51" y="50.22" width="27.24" height="0.87" rx="0.44"/><rect class="cls-1" x="17.51" y="51.81" width="14.1" height="0.87" rx="0.44"/><path class="cls-2" d="M40.42,13.17H21.84a1.34,1.34,0,0,0-1.34,1.34v11.7a1.34,1.34,0,0,0,1.34,1.33H40.42a1.34,1.34,0,0,0,1.33-1.33V14.51A1.34,1.34,0,0,0,40.42,13.17Zm.9,13a.9.9,0,0,1-.9.9H21.84a.9.9,0,0,1-.91-.9V14.51a.91.91,0,0,1,.91-.91H40.42a.9.9,0,0,1,.9.91Z"/><path class="cls-2" d="M41.75,17.62v8.59a1.34,1.34,0,0,1-1.33,1.33H21.84a1.34,1.34,0,0,1-1.34-1.33v-.64c.13-.15.27-.3.43-.46A10.21,10.21,0,0,1,27.64,22c5.4-.31,8.69-5.58,13.68-4.49l.22,0A1.29,1.29,0,0,1,41.75,17.62Z"/><circle class="cls-2" cx="23.41" cy="16.56" r="1.22"/><circle class="cls-2" cx="58.22" cy="4.64" r="0.63"/><circle class="cls-2" cx="55.83" cy="4.64" r="0.63"/><circle class="cls-2" cx="52.67" cy="4.64" r="0.63"/><rect class="cls-3" x="0.5" y="0.5" width="61.26" height="60.16"/></svg><?php _e( 'Top', 'mycred' ); ?>
1068
- </label>
1069
- </li>
1070
- <li>
1071
- <input type="radio" class="mycred-layout-radio" name="mycred_badge[mycred_layout_check]" id="mycred_layout_right" value="mycred_layout_right" <?php echo ( $mycred_layout == 'mycred_layout_right' ) ? 'checked' : '' ; ?>>
1072
- <label for="mycred_layout_right">
1073
- <svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 62.26 61.16"><defs><style>.cls-1{fill:#aab5bc;}.cls-2{fill:#10212b;}.cls-3{fill:none;stroke:#10212b;stroke-miterlimit:10;}</style></defs><title>icon</title><path class="cls-1" d="M61.76,2.53v5H.5v-5c0-1.12.68-2,1.53-2h58.2C61.07.5,61.76,1.41,61.76,2.53Z"/><rect class="cls-2" x="4.59" y="16.06" width="29.65" height="2.29" rx="1.15"/><rect class="cls-1" x="5.79" y="20.23" width="27.24" height="0.87" rx="0.44"/><rect class="cls-1" x="5.79" y="21.81" width="27.24" height="0.87" rx="0.44"/><rect class="cls-1" x="5.79" y="23.39" width="27.24" height="0.87" rx="0.44"/><rect class="cls-1" x="5.79" y="24.98" width="27.24" height="0.87" rx="0.44"/><rect class="cls-1" x="5.79" y="26.56" width="27.24" height="0.87" rx="0.44"/><rect class="cls-1" x="5.79" y="28.14" width="14.1" height="0.87" rx="0.44"/><rect class="cls-1" x="5.79" y="31.5" width="27.24" height="0.87" rx="0.44"/><rect class="cls-1" x="5.79" y="33.09" width="27.24" height="0.87" rx="0.44"/><rect class="cls-1" x="5.79" y="34.67" width="27.24" height="0.87" rx="0.44"/><rect class="cls-1" x="5.79" y="36.25" width="14.1" height="0.87" rx="0.44"/><rect class="cls-1" x="8.22" y="45.35" width="20.1" height="0.87" rx="0.44"/><rect class="cls-1" x="8.22" y="48.26" width="24.49" height="0.87" rx="0.44"/><rect class="cls-1" x="8.22" y="51.04" width="14.1" height="0.87" rx="0.44"/><rect class="cls-2" x="4.59" y="41" width="29.65" height="2.29" rx="1.15"/><circle class="cls-1" cx="6.52" cy="45.95" r="0.6"/><circle class="cls-1" cx="6.52" cy="48.7" r="0.6"/><circle class="cls-1" cx="6.52" cy="51.47" r="0.6"/><path class="cls-2" d="M56.33,15.85H37.75a1.34,1.34,0,0,0-1.34,1.33v11.7a1.34,1.34,0,0,0,1.34,1.34H56.33a1.34,1.34,0,0,0,1.34-1.34V17.18A1.34,1.34,0,0,0,56.33,15.85Zm.9,13a.9.9,0,0,1-.9.91H37.75a.91.91,0,0,1-.91-.91V17.18a.9.9,0,0,1,.91-.9H56.33a.9.9,0,0,1,.9.9Z"/><path class="cls-2" d="M57.67,20.29v8.59a1.34,1.34,0,0,1-1.34,1.34H37.75a1.34,1.34,0,0,1-1.34-1.34v-.64c.13-.14.27-.3.43-.46a10.21,10.21,0,0,1,6.72-3.1c5.39-.31,8.68-5.59,13.67-4.5l.22.05Z"/><circle class="cls-2" cx="39.32" cy="19.24" r="1.22"/><rect class="cls-3" x="0.5" y="0.5" width="61.26" height="60.16"/></svg><?php _e( 'Right', 'mycred' ); ?>
1074
- </label>
1075
- </li>
1076
- <li>
1077
- <input type="radio" class="mycred-layout-radio" name="mycred_badge[mycred_layout_check]" id="mycred_layout_bottom" value="mycred_layout_bottom" <?php echo ( $mycred_layout == 'mycred_layout_bottom' ) ? 'checked' : '' ; ?>>
1078
- <label for="mycred_layout_bottom">
1079
- <svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 62.26 61.16"><defs><style>.cls-1{fill:#aab5bc;}.cls-2{fill:#10212b;}.cls-3{fill:none;stroke:#10212b;stroke-miterlimit:10;}</style></defs><title>icon</title><path class="cls-1" d="M61.76,2.53v5H.5v-5c0-1.12.68-2,1.53-2h58.2C61.07.5,61.76,1.41,61.76,2.53Z"/><rect class="cls-2" x="16.31" y="12.76" width="29.65" height="2.29" rx="1.15"/><rect class="cls-1" x="17.51" y="16.92" width="27.24" height="0.87" rx="0.44"/><rect class="cls-1" x="17.51" y="18.51" width="27.24" height="0.87" rx="0.44"/><rect class="cls-1" x="17.51" y="20.09" width="27.24" height="0.87" rx="0.44"/><rect class="cls-1" x="17.51" y="21.67" width="27.24" height="0.87" rx="0.44"/><rect class="cls-1" x="17.51" y="23.26" width="27.24" height="0.87" rx="0.44"/><rect class="cls-1" x="24.08" y="24.84" width="14.1" height="0.87" rx="0.44"/><rect class="cls-1" x="17.51" y="28.2" width="27.24" height="0.87" rx="0.44"/><rect class="cls-1" x="17.51" y="29.78" width="27.24" height="0.87" rx="0.44"/><rect class="cls-1" x="17.51" y="31.37" width="27.24" height="0.87" rx="0.44"/><rect class="cls-1" x="24.08" y="32.95" width="14.1" height="0.87" rx="0.44"/><path class="cls-2" d="M40.42,40.74H21.84a1.34,1.34,0,0,0-1.34,1.34v11.7a1.34,1.34,0,0,0,1.34,1.34H40.42a1.34,1.34,0,0,0,1.33-1.34V42.08A1.34,1.34,0,0,0,40.42,40.74Zm.9,13a.9.9,0,0,1-.9.91H21.84a.91.91,0,0,1-.91-.91V42.08a.9.9,0,0,1,.91-.9H40.42a.9.9,0,0,1,.9.9Z"/><path class="cls-2" d="M41.75,45.19v8.59a1.34,1.34,0,0,1-1.33,1.34H21.84a1.34,1.34,0,0,1-1.34-1.34v-.64c.13-.15.27-.3.43-.46a10.21,10.21,0,0,1,6.71-3.11c5.4-.3,8.69-5.58,13.68-4.49l.22.05Z"/><circle class="cls-2" cx="23.41" cy="44.14" r="1.22"/><circle class="cls-2" cx="58.22" cy="4.64" r="0.63"/><circle class="cls-2" cx="55.83" cy="4.64" r="0.63"/><circle class="cls-2" cx="52.67" cy="4.64" r="0.63"/><rect class="cls-3" x="0.5" y="0.5" width="61.26" height="60.16"/></svg><?php _e( 'Bottom', 'mycred' ); ?>
1080
- </label>
1081
- </li>
1082
- <li>
1083
- <input type="radio" class="mycred-layout-radio" name="mycred_badge[mycred_layout_check]" id="mycred_layout_none" value="mycred_layout_none" <?php echo ($mycred_layout == 'mycred_layout_none' ) ? 'checked' : '' ; if ( empty( $mycred_layout ) ) echo 'checked'; ?>>
1084
- <label for="mycred_layout_none">
1085
- <svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 62.26 61.16"><defs><style>.cls-1{fill:#aab5bc;}.cls-2{fill:#10212b;}.cls-3{fill:none;stroke:#10212b;stroke-miterlimit:10;}</style></defs><title>icon</title><path class="cls-1" d="M61.76,2.53v5H.5v-5c0-1.12.68-2,1.53-2h58.2C61.07.5,61.76,1.41,61.76,2.53Z"/><rect class="cls-2" x="6.4" y="31.62" width="29.65" height="2.29" rx="1.15"/><rect class="cls-1" x="7.61" y="35.78" width="27.24" height="0.87" rx="0.44"/><rect class="cls-1" x="7.61" y="37.37" width="27.24" height="0.87" rx="0.44"/><rect class="cls-1" x="7.61" y="38.95" width="27.24" height="0.87" rx="0.44"/><rect class="cls-1" x="7.61" y="40.53" width="27.24" height="0.87" rx="0.44"/><rect class="cls-1" x="7.61" y="42.11" width="27.24" height="0.87" rx="0.44"/><rect class="cls-1" x="7.61" y="43.7" width="14.1" height="0.87" rx="0.44"/><rect class="cls-1" x="7.61" y="47.06" width="27.24" height="0.87" rx="0.44"/><rect class="cls-1" x="7.61" y="48.64" width="27.24" height="0.87" rx="0.44"/><rect class="cls-1" x="7.61" y="50.22" width="27.24" height="0.87" rx="0.44"/><rect class="cls-1" x="7.61" y="51.81" width="14.1" height="0.87" rx="0.44"/><path class="cls-2" d="M26.32,13.17H7.74A1.34,1.34,0,0,0,6.4,14.51v11.7a1.34,1.34,0,0,0,1.34,1.33H26.32a1.34,1.34,0,0,0,1.34-1.33V14.51A1.34,1.34,0,0,0,26.32,13.17Zm.91,13a.9.9,0,0,1-.91.9H7.74a.9.9,0,0,1-.9-.9V14.51a.9.9,0,0,1,.9-.91H26.32a.91.91,0,0,1,.91.91Z"/><path class="cls-2" d="M27.66,17.62v8.59a1.34,1.34,0,0,1-1.34,1.33H7.74A1.34,1.34,0,0,1,6.4,26.21v-.64c.13-.15.28-.3.44-.46A10.16,10.16,0,0,1,13.55,22c5.39-.31,8.68-5.58,13.68-4.49l.21,0Z"/><circle class="cls-2" cx="9.31" cy="16.56" r="1.22"/><circle class="cls-2" cx="58.22" cy="4.64" r="0.63"/><circle class="cls-2" cx="55.83" cy="4.64" r="0.63"/><circle class="cls-2" cx="52.67" cy="4.64" r="0.63"/><rect class="cls-3" x="0.5" y="0.5" width="61.26" height="60.16"/></svg><?php _e( 'None', 'mycred' ); ?>
1086
- </label>
1087
- </li>
1088
- </ul>
1089
- </div>
1090
- </div>
1091
- </div>
1092
- <?php
1093
 
1094
  }
1095
 
@@ -2060,9 +1980,6 @@ th#badge-users { width: 10%; }
2060
 
2061
  global $post;
2062
 
2063
- $badge_align = mycred_get_post_meta( $post->ID, 'mycred_badge_align', true );
2064
- $badge_layout = mycred_get_post_meta( $post->ID, 'mycred_layout_check', true );
2065
-
2066
  if( is_single() && $post->post_type == MYCRED_BADGE_KEY ) {
2067
 
2068
  $badge_id = $post->ID;
@@ -2090,194 +2007,57 @@ th#badge-users { width: 10%; }
2090
  * @param $content
2091
  * @return string
2092
  * @since 2.1
2093
- * @version 1.1
2094
  */
2095
  public function mycred_badge_page_template( $content ) {
2096
 
2097
  global $post;
2098
 
2099
  if ( is_single() && $post->post_type == MYCRED_BADGE_KEY ) {
2100
-
2101
- $mycred = mycred();
2102
-
2103
- $show_level_description = false;
2104
- $show_congo_text = false;
2105
- $show_levels = false;
2106
- $show_level_points = false;
2107
- $show_steps_to_achieve = false;
2108
- $show_earners = false;
2109
- $enable_open_badge_ss = isset( $mycred->core["br_social_share"]["enable_open_badge_ss"] ) && $mycred->core["br_social_share"]["enable_open_badge_ss"] == '1' ? true : false;
2110
-
2111
- if ( is_array( $mycred->core ) && array_key_exists('badges', $mycred->core ) )
2112
- {
2113
- $show_level_description = $mycred->core["badges"]["show_level_description"] == '1' ? true : false;
2114
- $show_congo_text = $mycred->core["badges"]["show_congo_text"] == '1' ? true : false;
2115
- $show_levels = $mycred->core["badges"]["show_levels"] == '1' ? true : false;
2116
- $show_level_points = $mycred->core["badges"]["show_level_points"] == '1' ? true : false;
2117
- $show_steps_to_achieve = $mycred->core["badges"]["show_steps_to_achieve"] == '1' ? true : false;
2118
- $show_earners = $mycred->core["badges"]["show_earners"] == '1' ? true : false;
2119
- }
2120
-
2121
- //Badge ID
2122
- $badge_id = $post->ID;
2123
-
2124
- $user_id = get_current_user_id();
2125
-
2126
- $has_earned = mycred_user_has_badge( $user_id, $badge_id );
2127
-
2128
- $badge_object = mycred_get_badge( $badge_id );
2129
-
2130
- //Level Image URL, If User has earned (Show Baked) else (Original)
2131
- $badge_image_url = $badge_object->get_earned_image( $user_id );
2132
 
2133
- //Preparing Template
2134
- $content = '';
2135
-
2136
- $content = '<div class="mycred-badge-page">';
2137
-
2138
- if ( $show_congo_text && $has_earned ) {
2139
- if (!empty($badge_object->congratulation_msg))
2140
- {
2141
-
2142
- $content .= '<div class="mycred-badge-congratulation-msg">' . $badge_object->congratulation_msg . '</div>';
2143
- }
2144
- }
2145
- $content .= '<div class="'.$badge_layout.' '.$badge_align.'">';
2146
- if( $badge_layout == 'mycred_layout_none')
2147
- $content .= '<img src="' . $badge_image_url . '" class="mycred-badge-image" alt="">';
2148
-
2149
- if( $badge_layout == 'mycred_layout_right')
2150
- $content .= '<img src="' . $badge_image_url . '" class="mycred-badge-image" alt="">';
2151
-
2152
- if( $badge_layout == 'mycred_layout_left')
2153
- $content .= '<img src="' . $badge_image_url . '" class="mycred-badge-image" alt="">';
2154
-
2155
- if( $badge_layout == 'mycred_layout_top' )
2156
- $content .= '<img src="' . $badge_image_url . '" class="mycred-badge-image" alt="">';
2157
-
2158
- $content .= '<img src="' . $badge_image_url . '" class="mycred-badge-image" alt="">';
2159
-
2160
- //If user has earned badge, show user sharing badge option
2161
- if( $has_earned && $enable_open_badge_ss)
2162
- {
2163
- $facebook_url = "http://www.facebook.com/sharer.php?u=".get_permalink()."&amp;p[images[0]=$badge_image_url";
2164
- $twitter_url = "https://twitter.com/share?url=".get_permalink()."";
2165
- $linkedin_url = "http://www.linkedin.com/shareArticle?url=".get_permalink()."";
2166
- $pinterest_url = "https://pinterest.com/pin/create/bookmarklet/?media=$badge_image_url&amp;url=".get_permalink()."";
2167
-
2168
- $content .= mycred_br_get_social_icons( $facebook_url, $twitter_url, $linkedin_url, $pinterest_url );
2169
- }
2170
-
2171
- //Level Description
2172
- if( $show_level_description ) {
2173
-
2174
- $content .= "<h3>" . __("Description", "mycred") . "</h3>";
2175
- $content .= "<p>" . $post->post_content . "</p>";
2176
-
2177
- }
2178
 
2179
- //Showing Badge Levels
2180
- if( $show_levels || $badge_object->open_badge && $show_steps_to_achieve ) {
2181
 
2182
- if ( ! $badge_object->open_badge )
2183
- $content .= "<h3>" . __("Levels", "mycred") . "</h3>";
2184
- else
2185
- $content .= "<h3>" . __("Requirement", "mycred") . "</h3>";
2186
 
2187
- //Badge Requirements
2188
- $levels = mycred_show_badge_requirements( $badge_id );
2189
 
2190
- foreach ( $levels as $id => $level ) {
2191
 
2192
- $level_image_url = '';
2193
-
2194
- if( ! empty( $level_image_url ) )
2195
- $level_image_url = $level["image"];
2196
-
2197
- $heading = $level["heading"];
2198
-
2199
- $requirements = $level["requirements"];
2200
-
2201
- $reward = $level["amount"];
2202
-
2203
- $content .= '<div class="mycred-badge-page-level">';
2204
 
2205
- if ( ! $badge_object->open_badge ) {
 
2206
 
2207
- if ( $level_image_url != '' )
2208
- $content .= '<img src="'.$level_image_url.'" class="mycred-level-image mycred-float-left" />';
2209
 
2210
- $content .= "<div class='mycred-float-left'><h4>$heading</h4></div>";
2211
- }
2212
-
2213
- $content .= "<div class='clear'></div>";
2214
-
2215
- if ( $show_steps_to_achieve )
2216
- $content .= mycred_badge_level_req_check( $badge_id, $id );
2217
-
2218
- if ( $show_level_points && $reward != 0 ) {
2219
-
2220
- $reward_type = mycred( $level['reward_type'] );
2221
-
2222
- $content .= '<div class="mycred-level-reward">' . __('Reward:', 'mycred') . ' ' . $reward_type->format_creds($reward ) .'</div>';
2223
- }
2224
 
2225
- $content .= '</div>';
2226
- }
2227
-
2228
- $content .= '<div class="clear"></div>';
2229
- }
2230
-
2231
- if( $show_earners ) {
2232
-
2233
- $users_have_badge = mycred_get_users_has_earned_badge( $badge_id );
2234
-
2235
- $earned_count = count( $users_have_badge );
2236
-
2237
- //If Earners exist
2238
- if ( $earned_count > 0 )
2239
- {
2240
- $content .= "<h3>" . __("Earners", "mycred") . "</h3>";
2241
-
2242
- $content .= '<div class="mycred-badge-earners">';
2243
-
2244
-
2245
- foreach ( $users_have_badge as $user ) {
2246
-
2247
- $user_id = $user;
2248
-
2249
- $user_profile = get_avatar_url( $user_id );
2250
-
2251
- $user_info = get_userdata( $user_id );
2252
-
2253
- $display_name = $user_info->display_name;
2254
-
2255
- $content .= '<div class="mycred-badge-earner-grid mycred-float-left">';
2256
- $content .= '<div><img src="' . $user_profile . '" /></div>';
2257
- $content .= "<h4>$display_name</h4>";
2258
  $content .= '</div>';
2259
 
2260
- }
2261
-
2262
- $content .= '</div>';
2263
- }
2264
- }
2265
 
2266
- $content .= '</div>';
2267
 
2268
- if( $badge_layout == 'mycred_layout_bottom')
2269
- $content .= '<img src="' . $badge_image_url . '" class="mycred-badge-image" alt="">';
2270
 
 
2271
  $content .= '</div>';
2272
 
2273
- $content .= '</div>';
 
2274
 
2275
- return $content;
2276
-
2277
  }
2278
 
2279
  return $content;
2280
-
2281
  }
2282
 
2283
  public function flush_rewrite_rules_for_badges() {
6
  */
7
  if ( ! defined( 'myCRED_VERSION' ) ) exit;
8
 
9
+ define( 'myCRED_BADGE', __FILE__ );
10
+ define( 'myCRED_BADGE_VERSION', '1.3' );
11
+ define( 'MYCRED_BADGE_DIR', myCRED_ADDONS_DIR . 'badges/' );
12
+ define( 'MYCRED_BADGE_INCLUDES_DIR', MYCRED_BADGE_DIR . 'includes/' );
13
+ define( 'MYCRED_BADGE_TEMPLATES_DIR', MYCRED_BADGE_DIR . 'templates/' );
14
 
15
  // Badge Key
16
  if ( ! defined( 'MYCRED_BADGE_KEY' ) )
76
  * @since 2.1
77
  * @version 1.0
78
  */
79
+ public function mycred_switch_all_to_open_badge() {
 
80
 
81
  $args = array(
82
  'post_type' => 'mycred_badge'
95
 
96
  echo 'Badges successfully switched to Open Badge.';
97
 
98
+ die();
99
  }
100
 
101
  /**
164
  * @since 1.3
165
  * @version 1.0
166
  */
167
+ public function enqueue_front_scripts() {
168
+
169
  wp_enqueue_script( 'mycred-badge-front', plugins_url( 'assets/js/front.js', myCRED_BADGE ), array('jquery'), myCRED_BADGE_VERSION );
170
  }
171
 
174
  * @since 1.3
175
  * @version 1.0
176
  */
177
+ public function enqueue_admin_scripts() {
178
+
179
  wp_enqueue_script( 'mycred-badge-admin', plugins_url( 'assets/js/admin.js', myCRED_BADGE ), '', myCRED_BADGE_VERSION );
180
  }
181
 
455
  if ( mycred_override_settings() && ! mycred_is_main_site() ) return;
456
 
457
  mycred_add_main_submenu(
458
+ __( 'Achievement Types', 'mycred' ),
459
+ __( 'Achievement Types', 'mycred' ),
460
  $this->core->get_point_editor_capability(),
461
+ 'edit-tags.php?post_type=' . MYCRED_BADGE_KEY . '&taxonomy=' . MYCRED_BADGE_CATEGORY
462
  );
463
 
464
  mycred_add_main_submenu(
465
+ __( 'Badges', 'mycred' ),
466
+ __( 'Badges', 'mycred' ),
467
  $this->core->get_point_editor_capability(),
468
+ 'edit.php?post_type=' . MYCRED_BADGE_KEY
469
  );
470
 
471
  }
805
  'low'
806
  );
807
 
808
+ add_meta_box(
809
  'mycred-badge-layout',
810
+ __( 'Layout', 'mycred' ),
811
  array( $this, 'metabox_badge_layout' ),
812
  MYCRED_BADGE_KEY,
813
  'side',
1000
  public function metabox_badge_align( $post ) {
1001
 
1002
  $mycred_badge_align = mycred_get_post_meta( $post->ID, 'mycred_badge_align', true );
1003
+ require_once MYCRED_BADGE_TEMPLATES_DIR . 'mycred-metabox-badge-alignment.php';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1004
 
1005
  }
1006
 
1009
  public function metabox_badge_layout( $post ) {
1010
 
1011
  $mycred_layout = mycred_get_post_meta( $post->ID, 'mycred_layout_check', true );
1012
+ require_once MYCRED_BADGE_TEMPLATES_DIR . 'mycred-metabox-badge-layout.php';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1013
 
1014
  }
1015
 
1980
 
1981
  global $post;
1982
 
 
 
 
1983
  if( is_single() && $post->post_type == MYCRED_BADGE_KEY ) {
1984
 
1985
  $badge_id = $post->ID;
2007
  * @param $content
2008
  * @return string
2009
  * @since 2.1
2010
+ * @version 1.2
2011
  */
2012
  public function mycred_badge_page_template( $content ) {
2013
 
2014
  global $post;
2015
 
2016
  if ( is_single() && $post->post_type == MYCRED_BADGE_KEY ) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2017
 
2018
+ $mycred = mycred();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2019
 
2020
+ if ( is_array( $mycred->core ) && array_key_exists( 'badges', $mycred->core ) ) {
 
2021
 
2022
+ $user_id = get_current_user_id();
2023
+ $badge = mycred_get_badge( $post->ID );
2024
+ $badge_settings = $mycred->core["badges"];
 
2025
 
2026
+ $content = '<div class="mycred-badge-page">';
 
2027
 
2028
+ $content .= mycred_badge_show_congratulation_msg( $user_id, $badge, $mycred );
2029
 
2030
+ $content .= '<div class="'. $badge->layout .' '. $badge->align .'">';
 
 
 
 
 
 
 
 
 
 
 
2031
 
2032
+ if( $badge->layout != 'mycred_layout_bottom' )
2033
+ $content .= mycred_badge_show_main_image_with_social_icons( $user_id, $badge, $mycred );
2034
 
2035
+ $content .= '<div class="mycred_content">';
 
2036
 
2037
+ $content .= mycred_badge_show_description( $post, $mycred );
2038
+ $content .= mycred_badge_show_levels( $user_id, $badge, $mycred );
2039
+ $content .= mycred_badge_show_earners( $badge, $mycred );
 
 
 
 
 
 
 
 
 
 
 
2040
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2041
  $content .= '</div>';
2042
 
2043
+ if( $badge->layout == 'mycred_layout_bottom' )
2044
+ $content .= mycred_badge_show_main_image_with_social_icons( $user_id, $badge, $mycred );
 
 
 
2045
 
2046
+ $content .= '<div class="mycred-clearfix"></div>';
2047
 
2048
+ //layout
2049
+ $content .= '</div>';
2050
 
2051
+ //mycred-badge-page
2052
  $content .= '</div>';
2053
 
2054
+
2055
+ }
2056
 
 
 
2057
  }
2058
 
2059
  return $content;
2060
+
2061
  }
2062
 
2063
  public function flush_rewrite_rules_for_badges() {
addons/badges/templates/index.php ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ <?php
2
+ // Silence is golden.
3
+ ?>
addons/badges/templates/mycred-metabox-badge-alignment.php ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php if ( ! defined( 'myCRED_BADGE' ) ) exit; ?>
2
+
3
+ <div class="row">
4
+ <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
5
+ <div class="mycred-align-option">
6
+ <ul class="mycred-radio-list">
7
+ <li>
8
+ <input type="radio" class="mycred-align-radio" name="mycred_badge[mycred_badge_align]" id="mycred_align_left" value="mycred_align_left" <?php echo ( $mycred_badge_align == 'mycred_align_left' ) ? 'checked' : '' ; ?>>
9
+ <label for="mycred_align_left">
10
+ <svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 62.26 61.16"><defs><style>.cls-1{fill:#10212b;}.cls-2{fill:#aab5bc;}.cls-3{fill:none;stroke:#10212b;stroke-miterlimit:10;}</style></defs><title>icon</title><rect class="cls-1" x="9.02" y="13.98" width="43.07" height="3.33" rx="1.67"/><rect class="cls-2" x="10.55" y="18.88" width="39.58" height="1.27" rx="0.44"/><rect class="cls-2" x="10.55" y="21.18" width="39.58" height="1.27" rx="0.44"/><rect class="cls-2" x="10.55" y="23.48" width="39.58" height="1.27" rx="0.44"/><rect class="cls-2" x="10.55" y="25.78" width="39.58" height="1.27" rx="0.44"/><rect class="cls-2" x="10.55" y="28.08" width="39.58" height="1.27" rx="0.44"/><rect class="cls-2" x="10.55" y="30.38" width="20.48" height="1.27" rx="0.44"/><rect class="cls-1" x="9.02" y="36.13" width="43.07" height="3.33" rx="1.67"/><rect class="cls-2" x="10.55" y="41.03" width="39.58" height="1.27" rx="0.44"/><rect class="cls-2" x="10.55" y="43.33" width="39.58" height="1.27" rx="0.44"/><rect class="cls-2" x="10.55" y="45.63" width="39.58" height="1.27" rx="0.44"/><rect class="cls-2" x="10.55" y="47.81" width="20.48" height="1.27" rx="0.44"/><path class="cls-2" d="M61.76,2.53v5H.5v-5c0-1.12.68-2,1.53-2h58.2C61.07.5,61.76,1.41,61.76,2.53Z"/><circle class="cls-1" cx="58.22" cy="4.64" r="0.63"/><circle class="cls-1" cx="55.83" cy="4.64" r="0.63"/><circle class="cls-1" cx="52.67" cy="4.64" r="0.63"/><rect class="cls-3" x="0.5" y="0.5" width="61.26" height="60.16"/></svg><?php _e( 'Left', 'mycred' ); ?>
11
+ </label>
12
+ </li>
13
+ <li>
14
+ <input type="radio" class="mycred-align-radio" name="mycred_badge[mycred_badge_align]" id="mycred_align_right" value="mycred_align_right" <?php echo ( $mycred_badge_align == 'mycred_align_right' ) ? 'checked' : '' ; ?>>
15
+ <label for="mycred_align_right">
16
+ <svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 62.26 61.16"><defs><style>.cls-1{fill:#10212b;}.cls-2{fill:#aab5bc;}.cls-3{fill:none;stroke:#10212b;stroke-miterlimit:10;}</style></defs><title>icon</title><rect class="cls-1" x="9.02" y="13.98" width="43.07" height="3.33" rx="1.67"/><rect class="cls-2" x="10.76" y="20.03" width="39.58" height="1.27" rx="0.44"/><rect class="cls-2" x="10.76" y="22.33" width="39.58" height="1.27" rx="0.44"/><rect class="cls-2" x="10.76" y="24.63" width="39.58" height="1.27" rx="0.44"/><rect class="cls-2" x="10.76" y="26.93" width="39.58" height="1.27" rx="0.44"/><rect class="cls-2" x="10.76" y="29.23" width="39.58" height="1.27" rx="0.44"/><rect class="cls-2" x="29.86" y="31.53" width="20.48" height="1.27" rx="0.44"/><rect class="cls-1" x="9.02" y="36.13" width="43.07" height="3.33" rx="1.67"/><rect class="cls-2" x="10.76" y="42.18" width="39.58" height="1.27" rx="0.44"/><rect class="cls-2" x="10.76" y="44.48" width="39.58" height="1.27" rx="0.44"/><rect class="cls-2" x="10.76" y="46.78" width="39.58" height="1.27" rx="0.44"/><rect class="cls-2" x="29.86" y="49.08" width="20.48" height="1.27" rx="0.44"/><path class="cls-2" d="M61.76,2.53v5H.5v-5c0-1.12.68-2,1.53-2h58.2C61.07.5,61.76,1.41,61.76,2.53Z"/><circle class="cls-1" cx="58.22" cy="4.64" r="0.63"/><circle class="cls-1" cx="55.83" cy="4.64" r="0.63"/><circle class="cls-1" cx="52.67" cy="4.64" r="0.63"/><rect class="cls-3" x="0.5" y="0.5" width="61.26" height="60.16"/></svg><?php _e( 'Right', 'mycred' ); ?>
17
+ </label>
18
+ </li>
19
+ <li>
20
+ <input type="radio" class="mycred-align-radio" name="mycred_badge[mycred_badge_align]" id="mycred_align_center" value="mycred_align_center" <?php echo ( $mycred_badge_align == 'mycred_align_center' ) ? 'checked' : '' ; ?>>
21
+ <label for="mycred_align_center">
22
+ <svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 62.26 61.16"><defs><style>.cls-1{fill:#10212b;}.cls-2{fill:#aab5bc;}.cls-3{fill:none;stroke:#10212b;stroke-miterlimit:10;}</style></defs><title>icon</title><rect class="cls-1" x="9.59" y="13.98" width="43.07" height="3.33" rx="1.67"/><rect class="cls-2" x="11.34" y="18.4" width="39.58" height="1.27" rx="0.44"/><rect class="cls-2" x="11.34" y="20.7" width="39.58" height="1.27" rx="0.44"/><rect class="cls-2" x="11.34" y="23" width="39.58" height="1.27" rx="0.44"/><rect class="cls-2" x="11.34" y="25.3" width="39.58" height="1.27" rx="0.44"/><rect class="cls-2" x="11.34" y="27.6" width="39.58" height="1.27" rx="0.44"/><rect class="cls-2" x="20.89" y="29.9" width="20.48" height="1.27" rx="0.44"/><rect class="cls-1" x="9.59" y="36.13" width="43.07" height="3.33" rx="1.67"/><rect class="cls-2" x="11.34" y="40.55" width="39.58" height="1.27" rx="0.44"/><rect class="cls-2" x="11.34" y="42.85" width="39.58" height="1.27" rx="0.44"/><rect class="cls-2" x="11.34" y="45.15" width="39.58" height="1.27" rx="0.44"/><rect class="cls-2" x="20.89" y="47.45" width="20.48" height="1.27" rx="0.44"/><path class="cls-2" d="M61.76,2.53v5H.5v-5c0-1.12.68-2,1.53-2h58.2C61.07.5,61.76,1.41,61.76,2.53Z"/><circle class="cls-1" cx="58.22" cy="4.64" r="0.63"/><circle class="cls-1" cx="55.83" cy="4.64" r="0.63"/><circle class="cls-1" cx="52.67" cy="4.64" r="0.63"/><rect class="cls-3" x="0.5" y="0.5" width="61.26" height="60.16"/></svg><?php _e( 'Center', 'mycred' ); ?>
23
+ </label>
24
+ </li>
25
+ <li>
26
+ <input type="radio" class="mycred-align-radio" name="mycred_badge[mycred_badge_align]" id="mycred_align_justify" value="mycred_align_justify" <?php echo ( $mycred_badge_align == 'mycred_align_justify' ) ? 'checked' : '' ; ?>>
27
+ <label for="mycred_align_justify">
28
+ <svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 62.26 61.16"><defs><style>.cls-1{fill:#10212b;}.cls-2{fill:#aab5bc;}.cls-3{fill:none;stroke:#10212b;stroke-miterlimit:10;}</style></defs><title>icon</title><rect class="cls-1" x="9.59" y="13.98" width="43.07" height="3.33" rx="1.67"/><rect class="cls-2" x="11.34" y="20.03" width="39.58" height="1.27" rx="0.44"/><rect class="cls-2" x="11.34" y="22.33" width="39.58" height="1.27" rx="0.44"/><rect class="cls-2" x="11.34" y="24.63" width="39.58" height="1.27" rx="0.44"/><rect class="cls-2" x="11.34" y="26.93" width="39.58" height="1.27" rx="0.44"/><rect class="cls-2" x="11.34" y="29.23" width="39.58" height="1.27" rx="0.44"/><rect class="cls-1" x="9.59" y="36.13" width="43.07" height="3.33" rx="1.67"/><rect class="cls-2" x="11.34" y="42.18" width="39.58" height="1.27" rx="0.44"/><rect class="cls-2" x="11.34" y="44.48" width="39.58" height="1.27" rx="0.44"/><rect class="cls-2" x="11.34" y="46.78" width="39.58" height="1.27" rx="0.44"/><path class="cls-2" d="M61.76,2.53v5H.5v-5c0-1.12.68-2,1.53-2h58.2C61.07.5,61.76,1.41,61.76,2.53Z"/><circle class="cls-1" cx="58.22" cy="4.64" r="0.63"/><circle class="cls-1" cx="55.83" cy="4.64" r="0.63"/><circle class="cls-1" cx="52.67" cy="4.64" r="0.63"/><rect class="cls-3" x="0.5" y="0.5" width="61.26" height="60.16"/></svg><?php _e( 'Justify', 'mycred' ); ?>
29
+ </label>
30
+ </li>
31
+ <li>
32
+ <input type="radio" class="mycred-align-radio" name="mycred_badge[mycred_badge_align]" id="mycred_align_none" value="mycred_align_none" <?php echo ($mycred_badge_align == 'mycred_align_none' ) ? 'checked' : '' ; if ( empty( $mycred_badge_align ) ) echo 'checked'; ?>>
33
+ <label for="mycred_align_none">
34
+ <svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 62.26 61.16"><defs><style>.cls-1{fill:#10212b;}.cls-2{fill:#aab5bc;}.cls-3{fill:none;stroke:#10212b;stroke-miterlimit:10;}</style></defs><title>icon</title><rect class="cls-1" x="9.02" y="13.98" width="43.07" height="3.33" rx="1.67"/><rect class="cls-2" x="10.42" y="19.03" width="39.58" height="1.27" rx="0.44"/><rect class="cls-2" x="10.42" y="21.33" width="39.58" height="1.27" rx="0.44"/><rect class="cls-2" x="10.42" y="23.63" width="39.58" height="1.27" rx="0.44"/><rect class="cls-2" x="10.42" y="25.93" width="39.58" height="1.27" rx="0.44"/><rect class="cls-2" x="10.42" y="28.23" width="39.58" height="1.27" rx="0.44"/><rect class="cls-2" x="10.42" y="30.53" width="20.48" height="1.27" rx="0.44"/><rect class="cls-1" x="9.02" y="36.13" width="43.07" height="3.33" rx="1.67"/><rect class="cls-2" x="10.42" y="41.18" width="39.58" height="1.27" rx="0.44"/><rect class="cls-2" x="10.42" y="43.48" width="39.58" height="1.27" rx="0.44"/><rect class="cls-2" x="10.42" y="45.78" width="39.58" height="1.27" rx="0.44"/><rect class="cls-2" x="10.42" y="48.08" width="20.48" height="1.27" rx="0.44"/><path class="cls-2" d="M61.76,2.53v5H.5v-5c0-1.12.68-2,1.53-2h58.2C61.07.5,61.76,1.41,61.76,2.53Z"/><circle class="cls-1" cx="58.22" cy="4.64" r="0.63"/><circle class="cls-1" cx="55.83" cy="4.64" r="0.63"/><circle class="cls-1" cx="52.67" cy="4.64" r="0.63"/><rect class="cls-3" x="0.5" y="0.5" width="61.26" height="60.16"/></svg><?php _e( 'None', 'mycred' ); ?>
35
+ </label>
36
+ </li>
37
+ </ul>
38
+ </div>
39
+ </div>
40
+ </div>
addons/badges/templates/mycred-metabox-badge-layout.php ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php if ( ! defined( 'myCRED_BADGE' ) ) exit; ?>
2
+
3
+ <div class="row">
4
+ <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
5
+ <div class="mycred-layout-option">
6
+ <ul class="mycred-radio-list">
7
+ <li>
8
+ <input type="radio" class="mycred-layout-radio" name="mycred_badge[mycred_layout_check]" id="mycred_layout_left" value="mycred_layout_left" <?php echo ( $mycred_layout == 'mycred_layout_left' ) ? 'checked' : '' ; ?>>
9
+ <label for="mycred_layout_left">
10
+ <svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 62.26 61.16"><defs><style>.cls-1{fill:#aab5bc;}.cls-2{fill:#10212b;}.cls-3{fill:none;stroke:#10212b;stroke-miterlimit:10;}</style></defs><title>icon</title><path class="cls-1" d="M61.76,2.53v5H.5v-5c0-1.12.68-2,1.53-2h58.2C61.07.5,61.76,1.41,61.76,2.53Z"/><path class="cls-2" d="M24.51,15.85H5.93a1.34,1.34,0,0,0-1.34,1.33v11.7a1.34,1.34,0,0,0,1.34,1.34H24.51a1.34,1.34,0,0,0,1.33-1.34V17.18A1.34,1.34,0,0,0,24.51,15.85Zm.9,13a.9.9,0,0,1-.9.91H5.93A.91.91,0,0,1,5,28.88V17.18a.9.9,0,0,1,.91-.9H24.51a.9.9,0,0,1,.9.9Z"/><rect class="cls-2" x="28.02" y="16.06" width="29.65" height="2.29" rx="1.15"/><rect class="cls-1" x="29.22" y="20.23" width="27.24" height="0.87" rx="0.44"/><rect class="cls-1" x="29.22" y="21.81" width="27.24" height="0.87" rx="0.44"/><rect class="cls-1" x="29.22" y="23.39" width="27.24" height="0.87" rx="0.44"/><rect class="cls-1" x="29.22" y="24.98" width="27.24" height="0.87" rx="0.44"/><rect class="cls-1" x="29.22" y="26.56" width="27.24" height="0.87" rx="0.44"/><rect class="cls-1" x="29.22" y="28.14" width="14.1" height="0.87" rx="0.44"/><rect class="cls-1" x="29.22" y="31.5" width="27.24" height="0.87" rx="0.44"/><rect class="cls-1" x="29.22" y="33.09" width="27.24" height="0.87" rx="0.44"/><rect class="cls-1" x="29.22" y="34.67" width="27.24" height="0.87" rx="0.44"/><rect class="cls-1" x="29.22" y="36.25" width="14.1" height="0.87" rx="0.44"/><rect class="cls-1" x="31.65" y="45.35" width="20.1" height="0.87" rx="0.44"/><rect class="cls-1" x="31.65" y="48.26" width="24.49" height="0.87" rx="0.44"/><rect class="cls-1" x="31.65" y="51.04" width="14.1" height="0.87" rx="0.44"/><rect class="cls-2" x="28.02" y="41" width="29.65" height="2.29" rx="1.15"/><circle class="cls-1" cx="29.95" cy="45.95" r="0.6"/><circle class="cls-1" cx="29.95" cy="48.7" r="0.6"/><circle class="cls-1" cx="29.95" cy="51.47" r="0.6"/><path class="cls-2" d="M25.84,20.29v8.59a1.34,1.34,0,0,1-1.33,1.34H5.93a1.34,1.34,0,0,1-1.34-1.34v-.64c.13-.14.27-.3.43-.46a10.18,10.18,0,0,1,6.71-3.1c5.4-.31,8.69-5.59,13.68-4.5l.22.05Z"/><circle class="cls-2" cx="7.5" cy="19.24" r="1.22"/><circle class="cls-2" cx="58.22" cy="4.64" r="0.63"/><circle class="cls-2" cx="55.83" cy="4.64" r="0.63"/><circle class="cls-2" cx="52.67" cy="4.64" r="0.63"/><rect class="cls-3" x="0.5" y="0.5" width="61.26" height="60.16"/></svg><?php _e( 'Left', 'mycred' ); ?>
11
+ </label>
12
+ </li>
13
+ <li>
14
+ <input type="radio" class="mycred-layout-radio" name="mycred_badge[mycred_layout_check]" id="mycred_layout_top" value="mycred_layout_top" <?php echo ( $mycred_layout == 'mycred_layout_top' ) ? 'checked' : '' ; ?>>
15
+ <label for="mycred_layout_top">
16
+ <svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 62.26 61.16"><defs><style>.cls-1{fill:#aab5bc;}.cls-2{fill:#10212b;}.cls-3{fill:none;stroke:#10212b;stroke-miterlimit:10;}</style></defs><title>icon</title><path class="cls-1" d="M61.76,2.53v5H.5v-5c0-1.12.68-2,1.53-2h58.2C61.07.5,61.76,1.41,61.76,2.53Z"/><rect class="cls-2" x="16.31" y="31.62" width="29.65" height="2.29" rx="1.15"/><rect class="cls-1" x="17.51" y="35.78" width="27.24" height="0.87" rx="0.44"/><rect class="cls-1" x="17.51" y="37.37" width="27.24" height="0.87" rx="0.44"/><rect class="cls-1" x="17.51" y="38.95" width="27.24" height="0.87" rx="0.44"/><rect class="cls-1" x="17.51" y="40.53" width="27.24" height="0.87" rx="0.44"/><rect class="cls-1" x="17.51" y="42.11" width="27.24" height="0.87" rx="0.44"/><rect class="cls-1" x="17.51" y="43.7" width="14.1" height="0.87" rx="0.44"/><rect class="cls-1" x="17.51" y="47.06" width="27.24" height="0.87" rx="0.44"/><rect class="cls-1" x="17.51" y="48.64" width="27.24" height="0.87" rx="0.44"/><rect class="cls-1" x="17.51" y="50.22" width="27.24" height="0.87" rx="0.44"/><rect class="cls-1" x="17.51" y="51.81" width="14.1" height="0.87" rx="0.44"/><path class="cls-2" d="M40.42,13.17H21.84a1.34,1.34,0,0,0-1.34,1.34v11.7a1.34,1.34,0,0,0,1.34,1.33H40.42a1.34,1.34,0,0,0,1.33-1.33V14.51A1.34,1.34,0,0,0,40.42,13.17Zm.9,13a.9.9,0,0,1-.9.9H21.84a.9.9,0,0,1-.91-.9V14.51a.91.91,0,0,1,.91-.91H40.42a.9.9,0,0,1,.9.91Z"/><path class="cls-2" d="M41.75,17.62v8.59a1.34,1.34,0,0,1-1.33,1.33H21.84a1.34,1.34,0,0,1-1.34-1.33v-.64c.13-.15.27-.3.43-.46A10.21,10.21,0,0,1,27.64,22c5.4-.31,8.69-5.58,13.68-4.49l.22,0A1.29,1.29,0,0,1,41.75,17.62Z"/><circle class="cls-2" cx="23.41" cy="16.56" r="1.22"/><circle class="cls-2" cx="58.22" cy="4.64" r="0.63"/><circle class="cls-2" cx="55.83" cy="4.64" r="0.63"/><circle class="cls-2" cx="52.67" cy="4.64" r="0.63"/><rect class="cls-3" x="0.5" y="0.5" width="61.26" height="60.16"/></svg><?php _e( 'Top', 'mycred' ); ?>
17
+ </label>
18
+ </li>
19
+ <li>
20
+ <input type="radio" class="mycred-layout-radio" name="mycred_badge[mycred_layout_check]" id="mycred_layout_right" value="mycred_layout_right" <?php echo ( $mycred_layout == 'mycred_layout_right' ) ? 'checked' : '' ; ?>>
21
+ <label for="mycred_layout_right">
22
+ <svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 62.26 61.16"><defs><style>.cls-1{fill:#aab5bc;}.cls-2{fill:#10212b;}.cls-3{fill:none;stroke:#10212b;stroke-miterlimit:10;}</style></defs><title>icon</title><path class="cls-1" d="M61.76,2.53v5H.5v-5c0-1.12.68-2,1.53-2h58.2C61.07.5,61.76,1.41,61.76,2.53Z"/><rect class="cls-2" x="4.59" y="16.06" width="29.65" height="2.29" rx="1.15"/><rect class="cls-1" x="5.79" y="20.23" width="27.24" height="0.87" rx="0.44"/><rect class="cls-1" x="5.79" y="21.81" width="27.24" height="0.87" rx="0.44"/><rect class="cls-1" x="5.79" y="23.39" width="27.24" height="0.87" rx="0.44"/><rect class="cls-1" x="5.79" y="24.98" width="27.24" height="0.87" rx="0.44"/><rect class="cls-1" x="5.79" y="26.56" width="27.24" height="0.87" rx="0.44"/><rect class="cls-1" x="5.79" y="28.14" width="14.1" height="0.87" rx="0.44"/><rect class="cls-1" x="5.79" y="31.5" width="27.24" height="0.87" rx="0.44"/><rect class="cls-1" x="5.79" y="33.09" width="27.24" height="0.87" rx="0.44"/><rect class="cls-1" x="5.79" y="34.67" width="27.24" height="0.87" rx="0.44"/><rect class="cls-1" x="5.79" y="36.25" width="14.1" height="0.87" rx="0.44"/><rect class="cls-1" x="8.22" y="45.35" width="20.1" height="0.87" rx="0.44"/><rect class="cls-1" x="8.22" y="48.26" width="24.49" height="0.87" rx="0.44"/><rect class="cls-1" x="8.22" y="51.04" width="14.1" height="0.87" rx="0.44"/><rect class="cls-2" x="4.59" y="41" width="29.65" height="2.29" rx="1.15"/><circle class="cls-1" cx="6.52" cy="45.95" r="0.6"/><circle class="cls-1" cx="6.52" cy="48.7" r="0.6"/><circle class="cls-1" cx="6.52" cy="51.47" r="0.6"/><path class="cls-2" d="M56.33,15.85H37.75a1.34,1.34,0,0,0-1.34,1.33v11.7a1.34,1.34,0,0,0,1.34,1.34H56.33a1.34,1.34,0,0,0,1.34-1.34V17.18A1.34,1.34,0,0,0,56.33,15.85Zm.9,13a.9.9,0,0,1-.9.91H37.75a.91.91,0,0,1-.91-.91V17.18a.9.9,0,0,1,.91-.9H56.33a.9.9,0,0,1,.9.9Z"/><path class="cls-2" d="M57.67,20.29v8.59a1.34,1.34,0,0,1-1.34,1.34H37.75a1.34,1.34,0,0,1-1.34-1.34v-.64c.13-.14.27-.3.43-.46a10.21,10.21,0,0,1,6.72-3.1c5.39-.31,8.68-5.59,13.67-4.5l.22.05Z"/><circle class="cls-2" cx="39.32" cy="19.24" r="1.22"/><rect class="cls-3" x="0.5" y="0.5" width="61.26" height="60.16"/></svg><?php _e( 'Right', 'mycred' ); ?>
23
+ </label>
24
+ </li>
25
+ <li>
26
+ <input type="radio" class="mycred-layout-radio" name="mycred_badge[mycred_layout_check]" id="mycred_layout_bottom" value="mycred_layout_bottom" <?php echo ( $mycred_layout == 'mycred_layout_bottom' ) ? 'checked' : '' ; ?>>
27
+ <label for="mycred_layout_bottom">
28
+ <svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 62.26 61.16"><defs><style>.cls-1{fill:#aab5bc;}.cls-2{fill:#10212b;}.cls-3{fill:none;stroke:#10212b;stroke-miterlimit:10;}</style></defs><title>icon</title><path class="cls-1" d="M61.76,2.53v5H.5v-5c0-1.12.68-2,1.53-2h58.2C61.07.5,61.76,1.41,61.76,2.53Z"/><rect class="cls-2" x="16.31" y="12.76" width="29.65" height="2.29" rx="1.15"/><rect class="cls-1" x="17.51" y="16.92" width="27.24" height="0.87" rx="0.44"/><rect class="cls-1" x="17.51" y="18.51" width="27.24" height="0.87" rx="0.44"/><rect class="cls-1" x="17.51" y="20.09" width="27.24" height="0.87" rx="0.44"/><rect class="cls-1" x="17.51" y="21.67" width="27.24" height="0.87" rx="0.44"/><rect class="cls-1" x="17.51" y="23.26" width="27.24" height="0.87" rx="0.44"/><rect class="cls-1" x="24.08" y="24.84" width="14.1" height="0.87" rx="0.44"/><rect class="cls-1" x="17.51" y="28.2" width="27.24" height="0.87" rx="0.44"/><rect class="cls-1" x="17.51" y="29.78" width="27.24" height="0.87" rx="0.44"/><rect class="cls-1" x="17.51" y="31.37" width="27.24" height="0.87" rx="0.44"/><rect class="cls-1" x="24.08" y="32.95" width="14.1" height="0.87" rx="0.44"/><path class="cls-2" d="M40.42,40.74H21.84a1.34,1.34,0,0,0-1.34,1.34v11.7a1.34,1.34,0,0,0,1.34,1.34H40.42a1.34,1.34,0,0,0,1.33-1.34V42.08A1.34,1.34,0,0,0,40.42,40.74Zm.9,13a.9.9,0,0,1-.9.91H21.84a.91.91,0,0,1-.91-.91V42.08a.9.9,0,0,1,.91-.9H40.42a.9.9,0,0,1,.9.9Z"/><path class="cls-2" d="M41.75,45.19v8.59a1.34,1.34,0,0,1-1.33,1.34H21.84a1.34,1.34,0,0,1-1.34-1.34v-.64c.13-.15.27-.3.43-.46a10.21,10.21,0,0,1,6.71-3.11c5.4-.3,8.69-5.58,13.68-4.49l.22.05Z"/><circle class="cls-2" cx="23.41" cy="44.14" r="1.22"/><circle class="cls-2" cx="58.22" cy="4.64" r="0.63"/><circle class="cls-2" cx="55.83" cy="4.64" r="0.63"/><circle class="cls-2" cx="52.67" cy="4.64" r="0.63"/><rect class="cls-3" x="0.5" y="0.5" width="61.26" height="60.16"/></svg><?php _e( 'Bottom', 'mycred' ); ?>
29
+ </label>
30
+ </li>
31
+ <li>
32
+ <input type="radio" class="mycred-layout-radio" name="mycred_badge[mycred_layout_check]" id="mycred_layout_none" value="mycred_layout_none" <?php echo ($mycred_layout == 'mycred_layout_none' ) ? 'checked' : '' ; if ( empty( $mycred_layout ) ) echo 'checked'; ?>>
33
+ <label for="mycred_layout_none">
34
+ <svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 62.26 61.16"><defs><style>.cls-1{fill:#aab5bc;}.cls-2{fill:#10212b;}.cls-3{fill:none;stroke:#10212b;stroke-miterlimit:10;}</style></defs><title>icon</title><path class="cls-1" d="M61.76,2.53v5H.5v-5c0-1.12.68-2,1.53-2h58.2C61.07.5,61.76,1.41,61.76,2.53Z"/><rect class="cls-2" x="6.4" y="31.62" width="29.65" height="2.29" rx="1.15"/><rect class="cls-1" x="7.61" y="35.78" width="27.24" height="0.87" rx="0.44"/><rect class="cls-1" x="7.61" y="37.37" width="27.24" height="0.87" rx="0.44"/><rect class="cls-1" x="7.61" y="38.95" width="27.24" height="0.87" rx="0.44"/><rect class="cls-1" x="7.61" y="40.53" width="27.24" height="0.87" rx="0.44"/><rect class="cls-1" x="7.61" y="42.11" width="27.24" height="0.87" rx="0.44"/><rect class="cls-1" x="7.61" y="43.7" width="14.1" height="0.87" rx="0.44"/><rect class="cls-1" x="7.61" y="47.06" width="27.24" height="0.87" rx="0.44"/><rect class="cls-1" x="7.61" y="48.64" width="27.24" height="0.87" rx="0.44"/><rect class="cls-1" x="7.61" y="50.22" width="27.24" height="0.87" rx="0.44"/><rect class="cls-1" x="7.61" y="51.81" width="14.1" height="0.87" rx="0.44"/><path class="cls-2" d="M26.32,13.17H7.74A1.34,1.34,0,0,0,6.4,14.51v11.7a1.34,1.34,0,0,0,1.34,1.33H26.32a1.34,1.34,0,0,0,1.34-1.33V14.51A1.34,1.34,0,0,0,26.32,13.17Zm.91,13a.9.9,0,0,1-.91.9H7.74a.9.9,0,0,1-.9-.9V14.51a.9.9,0,0,1,.9-.91H26.32a.91.91,0,0,1,.91.91Z"/><path class="cls-2" d="M27.66,17.62v8.59a1.34,1.34,0,0,1-1.34,1.33H7.74A1.34,1.34,0,0,1,6.4,26.21v-.64c.13-.15.28-.3.44-.46A10.16,10.16,0,0,1,13.55,22c5.39-.31,8.68-5.58,13.68-4.49l.21,0Z"/><circle class="cls-2" cx="9.31" cy="16.56" r="1.22"/><circle class="cls-2" cx="58.22" cy="4.64" r="0.63"/><circle class="cls-2" cx="55.83" cy="4.64" r="0.63"/><circle class="cls-2" cx="52.67" cy="4.64" r="0.63"/><rect class="cls-3" x="0.5" y="0.5" width="61.26" height="60.16"/></svg><?php _e( 'None', 'mycred' ); ?>
35
+ </label>
36
+ </li>
37
+ </ul>
38
+ </div>
39
+ </div>
40
+ </div>
addons/cash-creds/modules/cashcred-module-core.php CHANGED
@@ -32,7 +32,7 @@ if ( ! class_exists( 'myCRED_cashCRED_Module' ) ) :
32
  'screen_id' => MYCRED_SLUG . '-cashcreds',
33
  'accordion' => true,
34
  'add_to_core' => true,
35
- 'menu_pos' => 90,
36
  'main_menu' => true
37
  ), $type );
38
 
32
  'screen_id' => MYCRED_SLUG . '-cashcreds',
33
  'accordion' => true,
34
  'add_to_core' => true,
35
+ 'menu_pos' => 80,
36
  'main_menu' => true
37
  ), $type );
38
 
addons/cash-creds/modules/cashcred-module-withdrawal.php CHANGED
@@ -21,7 +21,7 @@ if ( ! class_exists( 'cashCRED_Pending_Payments' ) ) :
21
  'screen_id' => '',
22
  'accordion' => false,
23
  'add_to_core' => false,
24
- 'menu_pos' => 95
25
  ), $type );
26
 
27
  }
21
  'screen_id' => '',
22
  'accordion' => false,
23
  'add_to_core' => false,
24
+ 'menu_pos' => 81
25
  ), $type );
26
 
27
  }
addons/coupons/myCRED-addon-coupons.php CHANGED
@@ -36,7 +36,7 @@ if ( ! class_exists( 'myCRED_Coupons_Module' ) ) :
36
  'defaults' => mycred_get_addon_defaults( 'coupons' ),
37
  'register' => false,
38
  'add_to_core' => true,
39
- 'menu_pos' => 80
40
  ) );
41
 
42
  add_filter( 'mycred_parse_log_entry_coupon', array( $this, 'parse_log_entry' ), 10, 2 );
36
  'defaults' => mycred_get_addon_defaults( 'coupons' ),
37
  'register' => false,
38
  'add_to_core' => true,
39
+ 'menu_pos' => 90
40
  ) );
41
 
42
  add_filter( 'mycred_parse_log_entry_coupon', array( $this, 'parse_log_entry' ), 10, 2 );
assets/css/admin-subscription.css CHANGED
@@ -528,6 +528,7 @@ line-height:34px;
528
  }
529
 
530
  .mycred-treasure-pack-content {
 
531
  padding: 20px 20px 10px 20px;
532
  }
533
 
528
  }
529
 
530
  .mycred-treasure-pack-content {
531
+ background: white;
532
  padding: 20px 20px 10px 20px;
533
  }
534
 
assets/css/mycred-forms.css CHANGED
@@ -53,4 +53,45 @@
53
  .form-inline .radio, .form-inline .checkbox { display: inline-block; margin-top: 0; margin-bottom: 0; vertical-align: middle; }
54
  .form-inline .radio label, .form-inline .checkbox label { padding-left: 0; }
55
  .form-inline .radio input[type="radio"], .form-inline .checkbox input[type="checkbox"] { position: relative; margin-left: 0; }
56
- .form-inline .has-feedback .form-control-feedback { top: 0; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
53
  .form-inline .radio, .form-inline .checkbox { display: inline-block; margin-top: 0; margin-bottom: 0; vertical-align: middle; }
54
  .form-inline .radio label, .form-inline .checkbox label { padding-left: 0; }
55
  .form-inline .radio input[type="radio"], .form-inline .checkbox input[type="checkbox"] { position: relative; margin-left: 0; }
56
+ .form-inline .has-feedback .form-control-feedback { top: 0; }
57
+ .mycred-align-radio{
58
+ display: none !important;
59
+ }
60
+ .mycred-align-option .mycred-radio-list svg{
61
+ display: block;
62
+ width: 55px;
63
+ border: 3px solid #efefef;
64
+ margin-bottom: 2px;
65
+ }
66
+ .mycred-align-option .mycred-radio-list li{
67
+ display: inline-block;
68
+ padding-right: 25px;
69
+ }
70
+ .mycred-align-option .mycred-radio-list input:checked+label svg {
71
+ border-color: #1e8cbe;
72
+ }
73
+ .mycred-align-option .mycred-radio-list label {
74
+ text-align: center;
75
+ display: inline-block!important;
76
+ }
77
+
78
+ .mycred-layout-radio{
79
+ display: none !important;
80
+ }
81
+ .mycred-layout-option .mycred-radio-list svg{
82
+ display: block;
83
+ width: 55px;
84
+ border: 3px solid #efefef;
85
+ margin-bottom: 2px;
86
+ }
87
+ .mycred-layout-option .mycred-radio-list li{
88
+ display: inline-block;
89
+ padding-right: 25px;
90
+ }
91
+ .mycred-layout-option .mycred-radio-list input:checked+label svg {
92
+ border-color: #1e8cbe;
93
+ }
94
+ .mycred-layout-option .mycred-radio-list label {
95
+ text-align: center;
96
+ display: inline-block!important;
97
+ }
assets/css/mycred-front.css CHANGED
@@ -1 +1,61 @@
1
- .widget .myCRED-rank{float:right}.widget .myCRED-rank span{padding-right:4px;color:gray}.widget .myCRED-balance{display:block;margin-bottom:24px;text-align:center;font-size:larger}.widget .myCRED-leaderboard .cred{float:right}.widget .myCRED-leaderboard .first-item{font-size:110%}.widget .myCRED-history{padding:0;margin:0;list-style-type:none}.widget .myCRED-history .creds{float:right;padding:0;clear:left}.mycred-nav-rank img{display:inherit}input.mycred-submit-transfer.btn.btn-primary.btn-block.btn-lg{margin:20px 0}input.mycred-autofill.form-control.ui-autocomplete-input{margin-left:20px}.mycred-transfer-form input.form-control{margin-left:28px;margin-top:10px}.site .button:focus,.wp-block-button .wp-block-button__link:focus,.wp-block-search__button:focus,input[type=reset]:focus,input[type=submit]:focus{background:0;outline-offset:-6px;outline:2px solid currentColor}.site textarea:focus,input[type=color]:focus,input[type=date]:focus,input[type=datetime-local]:focus,input[type=datetime]:focus,input[type=email]:focus,input[type=month]:focus,input[type=number]:focus,input[type=password]:focus,input[type=search]:focus,input[type=tel]:focus,input[type=text]:focus,input[type=time]:focus,input[type=url]:focus,input[type=week]:focus{color:var(--form--color-text);outline-offset:2px;outline:0}.site .button:focus,.wp-block-button .wp-block-button__link:focus,.wp-block-search__button:focus,input[type=reset]:focus,input[type=submit]:focus{background:0;outline-offset:-6px;outline:0}span.form-control-static{text-transform:capitalize;font-weight:400;margin-left:20px}p.form-control-static{margin:0 16px}form#mycred-transfer-form-transfer{background:#f9f9f9;padding:25px;margin:150px 0;box-shadow:0 0 20px 0 rgb(0 0 0 / 20%),0 5px 5px 0 rgb(0 0 0 / 24%);border-radius:10px}form#mycred-transfer-form-donation{background:#f9f9f9;padding:25px;margin:150px 0;box-shadow:0 0 20px 0 rgb(0 0 0 / 20%),0 5px 5px 0 rgb(0 0 0 / 24%);border-radius:10px}input#mycred-transfer-form-message-field{margin-left:24px}span#mycred-transfer-form-amount-field{margin-left:28px}.mycred-badges-list-item img{width:25%;display:inline-block;float:left}.mycred-badges-list-item h3{color:red}.mycred-badges-list-item .mycred-left{float:left;width:72%;margin-left:15px}.mycred-badges-list-item .clear{clear:both}.mycred-badges-list-item .mycred-mr-l{margin-left:25px}.mycred-badges-list-item{border-top:0 solid #9c9c9c;min-height:180px;padding:15px 0;cursor:pointer}.mycred-badges-list-item~.mycred-badges-list-item{border-top-width:1px}.mycred-badges-list h3:first-child{margin-bottom:15px;margin-top:0}.mycred-badges-list-item.not-earned{filter:grayscale(1)}.mycred-tabset .mycred-badge-count{color:#fff;font-size:18px;background:#0173aa;border-radius:50%;padding:0 7px}.mycred-badges-list-item .mycred-sup-category{background:#0173aa;color:#fff;margin:0 3px;padding:2px 6px;font-size:14px;border-radius:4px}ul.mycred-badges-list-tabs{list-style-type:none;display:flex;margin:0;padding:0}ul.mycred-badges-list-tabs li{padding:10px;cursor:pointer;border:1px solid transparent;margin-right:5px;margin-bottom:-1px}ul.mycred-badges-list-tabs li.active{border:1px solid #47525d;border-bottom:1px solid #ccc}.mycred-badges-list-panels{border-top:1px solid #47525d}.mycred-badges-list-panel.active{display:initial}.mycred-badges-list-panel{display:none}.mycred-badge-count{color:#fff;font-size:18px;background:#0173aa;border-radius:50%;padding:0 7px;margin-left:5px}.mycred-badge-page .mycred-level-image{width:150px}.mycred-badge-page .mycred-badge-page-level{float:left;width:30%;text-align:center}.mycred-badge-page .mycred-level-requirement{font-size:19px;text-align:left}.mycred-badge-page .mycred-badge-image{width:150px}.mycred-badge-page-level .mycred-level-image{width:70px}.mycred-float-left{float:left}.mycred-float-right{float:right}.mycred-badge-earner-grid img{width:150px;height:150px;padding:10px}.mycred-badge-earner-grid h4{margin:0}.mycred-badge-earner-grid{text-align:center}.mycred-badges-list-item p{margin-top:0}.mycred-left{float:left}.mycred-right{float:right}.mycred-clear{clear:both}.mycred-remove-margin{margin:0}.mycred-remove-padding{padding:0}.mycred-evidence-page .intro{margin-left:45px}.mycred-evidence-page p{font-size:19px;margin:0}.mycred-evidence-page a{text-decoration:none;color:red}.mycred-evidence-page .dashicons-yes-alt{line-height:inherit;color:green}.mycred-badge-page-level ul{margin-left:0;padding-left:20px}.mycred-badge-page-level .mycred-level-reward{text-align:left}.mycred-level-reward{margin-bottom:15px}.mycred-badge-page-level{margin-right:15px}.mycred-badges-list-item:hover{background:#efefef}.mycred-badge-congratulation-msg{background:#f0f0f0;padding:25px 10px;margin:20px 0;border-radius:5px}li.mycred-strike-off{text-decoration:line-through}.mycred-search-bar{padding:10px 0}.mycred-history-wrapper .pagination>li{display:inline-block;padding:5px}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .widget .myCRED-rank{float:right}.widget .myCRED-rank span{padding-right:4px;color:gray}.widget .myCRED-balance{display:block;margin-bottom:24px;text-align:center;font-size:larger}.widget .myCRED-leaderboard .cred{float:right}.widget .myCRED-leaderboard .first-item{font-size:110%}.widget .myCRED-history{padding:0;margin:0;list-style-type:none}.widget .myCRED-history .creds{float:right;padding:0;clear:left}.mycred-nav-rank img{display:inherit}input.mycred-submit-transfer.btn.btn-primary.btn-block.btn-lg{margin:20px 0}input.mycred-autofill.form-control.ui-autocomplete-input{margin-left:20px}.mycred-transfer-form input.form-control{margin-left:28px;margin-top:10px}.site .button:focus,.wp-block-button .wp-block-button__link:focus,.wp-block-search__button:focus,input[type=reset]:focus,input[type=submit]:focus{background:0;outline-offset:-6px;outline:2px solid currentColor}.site textarea:focus,input[type=color]:focus,input[type=date]:focus,input[type=datetime-local]:focus,input[type=datetime]:focus,input[type=email]:focus,input[type=month]:focus,input[type=number]:focus,input[type=password]:focus,input[type=search]:focus,input[type=tel]:focus,input[type=text]:focus,input[type=time]:focus,input[type=url]:focus,input[type=week]:focus{color:var(--form--color-text);outline-offset:2px;outline:0}.site .button:focus,.wp-block-button .wp-block-button__link:focus,.wp-block-search__button:focus,input[type=reset]:focus,input[type=submit]:focus{background:0;outline-offset:-6px;outline:0}span.form-control-static{text-transform:capitalize;font-weight:400;margin-left:20px}p.form-control-static{margin:0 16px}form#mycred-transfer-form-transfer{background:#f9f9f9;padding:25px;margin:150px 0;box-shadow:0 0 20px 0 rgb(0 0 0 / 20%),0 5px 5px 0 rgb(0 0 0 / 24%);border-radius:10px}form#mycred-transfer-form-donation{background:#f9f9f9;padding:25px;margin:150px 0;box-shadow:0 0 20px 0 rgb(0 0 0 / 20%),0 5px 5px 0 rgb(0 0 0 / 24%);border-radius:10px}input#mycred-transfer-form-message-field{margin-left:24px}span#mycred-transfer-form-amount-field{margin-left:28px}.mycred-badges-list-item img{width:25%;display:inline-block;float:left}.mycred-badges-list-item h3{color:red}.mycred-badges-list-item .mycred-left{float:left;width:72%;margin-left:15px}.mycred-badges-list-item .clear{clear:both}.mycred-badges-list-item .mycred-mr-l{margin-left:25px}.mycred-badges-list-item{border-top:0 solid #9c9c9c;min-height:180px;padding:15px 0;cursor:pointer}.mycred-badges-list-item~.mycred-badges-list-item{border-top-width:1px}.mycred-badges-list h3:first-child{margin-bottom:15px;margin-top:0}.mycred-badges-list-item.not-earned{filter:grayscale(1)}.mycred-tabset .mycred-badge-count{color:#fff;font-size:18px;background:#0173aa;border-radius:50%;padding:0 7px}.mycred-badges-list-item .mycred-sup-category{background:#0173aa;color:#fff;margin:0 3px;padding:2px 6px;font-size:14px;border-radius:4px}ul.mycred-badges-list-tabs{list-style-type:none;display:flex;margin:0;padding:0}ul.mycred-badges-list-tabs li{padding:10px;cursor:pointer;border:1px solid transparent;margin-right:5px;margin-bottom:-1px}ul.mycred-badges-list-tabs li.active{border:1px solid #47525d;border-bottom:1px solid #ccc}.mycred-badges-list-panels{border-top:1px solid #47525d}.mycred-badges-list-panel.active{display:initial}.mycred-badges-list-panel{display:none}.mycred-badge-count{color:#fff;font-size:18px;background:#0173aa;border-radius:50%;padding:0 7px;margin-left:5px}.mycred-badge-page .mycred-level-image{width:150px}.mycred-badge-page .mycred-badge-page-level{float:left;width:30%;text-align:center}.mycred-badge-page .mycred-level-requirement{font-size:19px;text-align:left}.mycred-badge-page .mycred-badge-image{width:150px}.mycred-badge-page-level .mycred-level-image{width:70px}.mycred-float-left{float:left}.mycred-float-right{float:right}.mycred-badge-earner-grid img{width:150px;height:150px;padding:10px}.mycred-badge-earner-grid h4{margin:0}.mycred-badge-earner-grid{text-align:center}.mycred-badges-list-item p{margin-top:0}.mycred-left{float:left}.mycred-right{float:right}.mycred-clear{clear:both}.mycred-remove-margin{margin:0}.mycred-remove-padding{padding:0}.mycred-evidence-page .intro{margin-left:45px}.mycred-evidence-page p{font-size:19px;margin:0}.mycred-evidence-page a{text-decoration:none;color:red}.mycred-evidence-page .dashicons-yes-alt{line-height:inherit;color:green}.mycred-badge-page-level ul{margin-left:0;padding-left:20px}.mycred-badge-page-level .mycred-level-reward{text-align:left}.mycred-level-reward{margin-bottom:15px}.mycred-badge-page-level{margin-right:15px}.mycred-badges-list-item:hover{background:#efefef}.mycred-badge-congratulation-msg{background:#f0f0f0;padding:25px 10px;margin:20px 0;border-radius:5px}li.mycred-strike-off{text-decoration:line-through}.mycred-search-bar{padding:10px 0}.mycred-history-wrapper .pagination>li{display:inline-block;padding:5px}.mycred-badge-page-level h4 {text-align: left;}
2
+
3
+
4
+ .mycred_align_left {
5
+ text-align:left
6
+ }
7
+
8
+ .mycred_align_center {
9
+ text-align:center
10
+ }
11
+
12
+ .mycred_align_justify {
13
+ text-align:justify
14
+ }
15
+
16
+ .mycred_align_right{
17
+ text-align:right
18
+ }
19
+
20
+ .mycred_layout_left .mycred-badge-image-wrapper {
21
+ float:left;
22
+ width:30%;
23
+ }
24
+
25
+ .mycred_layout_left .mycred_content {
26
+ float:left;
27
+ width:70%;
28
+ }
29
+
30
+ .mycred_layout_left {
31
+ /*float:left;*/
32
+ width:100%
33
+ }
34
+
35
+ .mycred_layout_top {
36
+ float:left;
37
+ width:100%;
38
+ }
39
+
40
+ .mycred_layout_right .mycred-badge-image-wrapper {
41
+ float:right;
42
+ width:30%;
43
+ }
44
+
45
+ .mycred_layout_right .mycred_content {
46
+ float:right;
47
+ width:70%;
48
+ }
49
+
50
+ .mycred_layout_right {
51
+ float:right;
52
+ width:100%;
53
+ }
54
+
55
+ .mycred-clearfix {
56
+ clear: both;
57
+ }
58
+
59
+ .mycred_layout_top .mycred-badge-image-wrapper {
60
+ text-align: center;
61
+ }
assets/images/default-point-type.png CHANGED
Binary file
assets/images/treasures/badges.png ADDED
Binary file
assets/images/treasures/currency.png ADDED
Binary file
assets/images/treasures/fitness.png ADDED
Binary file
assets/images/treasures/gems.png ADDED
Binary file
assets/images/treasures/learning.png ADDED
Binary file
assets/images/treasures/rank.png ADDED
Binary file
includes/classes/class.query-leaderboard.php CHANGED
@@ -948,6 +948,8 @@ if ( ! class_exists( 'myCRED_Query_Leaderboard' ) ) :
948
  'nothing' => 'Leaderboard is empty',
949
  ), $args ) );
950
 
 
 
951
  $output = '';
952
 
953
  // Leaderboard is empty
@@ -1004,6 +1006,12 @@ if ( ! class_exists( 'myCRED_Query_Leaderboard' ) ) :
1004
  $layout = $this->core->template_tags_amount( $layout, $user['cred'] );
1005
  $layout = $this->core->template_tags_user( $layout, $user['ID'] );
1006
 
 
 
 
 
 
 
1007
  // Wrapper
1008
  if ( ! empty( $wrap ) )
1009
  $layout = '<' . $wrap . ' class="%classes%">' . $layout . '</' . $wrap . '>';
948
  'nothing' => 'Leaderboard is empty',
949
  ), $args ) );
950
 
951
+ $mycred = mycred( $args['type'] );
952
+
953
  $output = '';
954
 
955
  // Leaderboard is empty
1006
  $layout = $this->core->template_tags_amount( $layout, $user['cred'] );
1007
  $layout = $this->core->template_tags_user( $layout, $user['ID'] );
1008
 
1009
+ //Point type Image
1010
+ if( $args['image'] )
1011
+ $layout = str_replace( '%image%', "<img src='{$mycred->image_url}' style='margin-right: 5px;' class='mycred-my-balance-image-".$args["type"]."' width='20px' />", $layout );
1012
+ else
1013
+ $layout = str_replace( '%image%', '', $layout );
1014
+
1015
  // Wrapper
1016
  if ( ! empty( $wrap ) )
1017
  $layout = '<' . $wrap . ' class="%classes%">' . $layout . '</' . $wrap . '>';
includes/mycred-about.php CHANGED
@@ -535,23 +535,23 @@ function mycred_about_page() {
535
  <div class="block">
536
  <h2>Change Log</h2>
537
  <ul>
538
- <li><strong>NEW</strong> - Open badge functionality in myCred Badge addon.</li>
539
- <li><strong>NEW</strong> - Introduce Achievement Types.</li>
540
- <li><strong>NEW</strong> - Introduce a new shortcode mycred_badges_list.</li>
541
- <li><strong>NEW</strong> - Single badge page.</li>
542
- <li><strong>NEW</strong> - Added support into Badges for Anniversary hook.</li>
543
- <li><strong>NEW</strong> - Added support into Badges for wooCommerce purchase reward.</li>
544
- <li><strong>NEW</strong> - Added %rank_title% template tag support in Email Notifications.</li>
545
- <li><strong>NEW</strong> - Added attributes in mycred_transfer shortcode.</li>
546
-
547
- <li><strong>FIX</strong> - mycred_history shortcode pagination not working properly when cache enabled.</li>
548
- <li><strong>FIX</strong> - Ranks weren't working properly on the current balance.</li>
549
- <li><strong>FIX</strong> - mycred_sell_this shortcode not working in the bbPress topic</li>
550
- <li><strong>FIX</strong> - The central deposit missing log entry in some cases.</li>
551
-
552
- <li><strong>TWEAK</strong> - Removed deprecated functions.</li>
553
- <li><strong>TWEAK</strong> - Code Improvement.</li>
554
- <li><strong>TWEAK</strong> - Improve styling of mycred_transfer shortcode.</li>
555
  </ul>
556
  </div>
557
  </div><!-- /.mycred-change-log -->
535
  <div class="block">
536
  <h2>Change Log</h2>
537
  <ul>
538
+ <li><strong>NEW</strong> - Moved general settings and menus into the newly introduced "myCred" main menu.</li>
539
+ <li><strong>NEW</strong> - On plugin activation, the default point type will be created automatically.</li>
540
+ <li><strong>NEW</strong> - Now user can upload a Point type image.</li>
541
+ <li><strong>NEW</strong> - Introduced an image attribute in mycred_my_balance shortcode.</li>
542
+ <li><strong>NEW</strong> - Introduced an image attribute in mycred_leaderboard shortcode.</li>
543
+ <li><strong>NEW</strong> - Introduced Single badge page layout setting.</li>
544
+ <li><strong>NEW</strong> - Introduced a enable/disable all addons button.</li>
545
+ <li><strong>NEW</strong> - Added new template tags in email notification for transfer events.</li>
546
+ <li><strong>NEW</strong> - Users can share their achieved Badges on social media.</li>
547
+ <li><strong>FIX</strong> - Backend logs are not being exported whether the export raw/formatted log option is set.</li>
548
+ <li><strong>FIX</strong> - Incorrect achieved badge level image in [mycred_badges] shortcode.</li>
549
+ <li><strong>FIX</strong> - In the Ranks list page All/Published/Trash links not working properly.</li>
550
+ <li><strong>FIX</strong> - Unable to revoke badge from the User profile page. FIX – Added some security validations in the transfer form.</li>
551
+ <li><strong>FIX</strong> - MYSQL 8 syntax error in the leaderboard shortcode.</li>
552
+ <li><strong>FIX</strong> - Added compatibility with BuddyPress version 8.0.</li>
553
+ <li><strong>TWEAK</strong> - When a user deletes the log of buy_content, the sales count does not get updated. So, we have Introduced the "Update Sales Count" button in the settings.</li>
554
+ <li><strong>TWEAK</strong> - Improve new point type creation form setting.</li>
555
  </ul>
556
  </div>
557
  </div><!-- /.mycred-change-log -->
includes/mycred-functions.php CHANGED
@@ -55,10 +55,24 @@ if ( ! class_exists( 'myCRED_Settings' ) ) :
55
  */
56
  public $core = array();
57
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
58
  /**
59
  * Construct
60
  * @since 1.0
61
- * @version 1.8
62
  */
63
  public function __construct( $point_type = MYCRED_DEFAULT_TYPE_KEY ) {
64
 
@@ -88,6 +102,9 @@ if ( ! class_exists( 'myCRED_Settings' ) ) :
88
  }
89
  }
90
 
 
 
 
91
  do_action_ref_array( 'mycred_settings', array( &$this ) );
92
 
93
  }
@@ -1643,6 +1660,26 @@ if ( ! class_exists( 'myCRED_Settings' ) ) :
1643
 
1644
  }
1645
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1646
  }
1647
  endif;
1648
 
@@ -3670,7 +3707,9 @@ endif;
3670
  */
3671
  if ( !function_exists( 'mycred_badge_level_req_check' ) ):
3672
  function mycred_badge_level_req_check( $badge_id, $level_index = 0 ) {
 
3673
  $content = '';
 
3674
  global $wpdb;
3675
  $user_id = get_current_user_id();
3676
  $badge_requirements = mycred_show_badge_requirements( $badge_id );
@@ -3742,6 +3781,7 @@ if ( !function_exists( 'mycred_badge_level_req_check' ) ):
3742
  $content .= '</ul>';
3743
 
3744
  return $content;
 
3745
  }
3746
  endif;
3747
 
@@ -3926,7 +3966,7 @@ if ( !function_exists( 'mycred_br_get_social_icons' ) ):
3926
 
3927
  $content = '';
3928
 
3929
- $content .= '<div class="clearfix">';
3930
 
3931
  $br_socail_icon = isset( $mycred->core["br_social_share"]["button_style"] ) ? $mycred->core["br_social_share"]["button_style"] : '';
3932
 
55
  */
56
  public $core = array();
57
 
58
+ /**
59
+ * myCRED Default attachment_id
60
+ * @since 2.2
61
+ * @version 1.0
62
+ */
63
+ public $attachment_id = false;
64
+
65
+ /**
66
+ * myCRED Default Image Url
67
+ * @since 2.2
68
+ * @version 1.0
69
+ */
70
+ public $image_url = false;
71
+
72
  /**
73
  * Construct
74
  * @since 1.0
75
+ * @version 1.9
76
  */
77
  public function __construct( $point_type = MYCRED_DEFAULT_TYPE_KEY ) {
78
 
102
  }
103
  }
104
 
105
+ //Point Type Image
106
+ $this->image_url = $this->get_type_image();
107
+
108
  do_action_ref_array( 'mycred_settings', array( &$this ) );
109
 
110
  }
1660
 
1661
  }
1662
 
1663
+ /**
1664
+ * Gets point type image
1665
+ * @since 2.2
1666
+ * @version 1.0
1667
+ */
1668
+ public function get_type_image()
1669
+ {
1670
+ $attachment_url = false;
1671
+
1672
+ if( $this->attachment_id )
1673
+ $attachment_url = wp_get_attachment_url( $this->attachment_id );
1674
+ else
1675
+ $attachment_url = wp_get_attachment_url( mycred_get_default_point_image_id() );
1676
+
1677
+ if( $attachment_url )
1678
+ return $attachment_url;
1679
+
1680
+ return false;
1681
+ }
1682
+
1683
  }
1684
  endif;
1685
 
3707
  */
3708
  if ( !function_exists( 'mycred_badge_level_req_check' ) ):
3709
  function mycred_badge_level_req_check( $badge_id, $level_index = 0 ) {
3710
+
3711
  $content = '';
3712
+
3713
  global $wpdb;
3714
  $user_id = get_current_user_id();
3715
  $badge_requirements = mycred_show_badge_requirements( $badge_id );
3781
  $content .= '</ul>';
3782
 
3783
  return $content;
3784
+
3785
  }
3786
  endif;
3787
 
3966
 
3967
  $content = '';
3968
 
3969
+ $content .= '<div class="mycred-badge-social-icons">';
3970
 
3971
  $br_socail_icon = isset( $mycred->core["br_social_share"]["button_style"] ) ? $mycred->core["br_social_share"]["button_style"] : '';
3972
 
includes/mycred-main-menu.php CHANGED
@@ -29,8 +29,8 @@ if ( ! class_exists( 'myCRED_Main_Menu' ) ):
29
  );
30
 
31
  mycred_add_main_submenu(
32
- 'Settings',
33
- 'Settings',
34
  $mycred->get_point_editor_capability(),
35
  MYCRED_MAIN_SLUG,
36
  array( $modules['type'][ MYCRED_DEFAULT_TYPE_KEY ]['settings'], 'admin_page' )
29
  );
30
 
31
  mycred_add_main_submenu(
32
+ 'General Settings',
33
+ 'General Settings',
34
  $mycred->get_point_editor_capability(),
35
  MYCRED_MAIN_SLUG,
36
  array( $modules['type'][ MYCRED_DEFAULT_TYPE_KEY ]['settings'], 'admin_page' )
includes/shortcodes/mycred_leaderboard.php CHANGED
@@ -5,26 +5,27 @@ if ( ! defined( 'myCRED_VERSION' ) ) exit;
5
  * myCRED Shortcode: mycred_leaderboard
6
  * @see http://codex.mycred.me/shortcodes/mycred_leaderboard/
7
  * @since 0.1
8
- * @version 1.6
9
  */
10
  if ( ! function_exists( 'mycred_render_shortcode_leaderboard' ) ) :
11
  function mycred_render_shortcode_leaderboard( $atts, $content = '' ) {
12
 
13
  $args = shortcode_atts( array(
14
- 'number' => 25,
15
- 'order' => 'DESC',
16
- 'offset' => 0,
17
- 'type' => MYCRED_DEFAULT_TYPE_KEY,
18
- 'based_on' => 'balance',
19
- 'total' => 0,
20
- 'wrap' => 'li',
21
- 'template' => '#%position% %user_profile_link% %cred_f%',
22
- 'nothing' => 'Leaderboard is empty',
23
- 'current' => 0,
24
- 'exclude_zero' => 1,
25
- 'timeframe' => '',
26
- 'to' => '',
27
- 'exclude'=>''
 
28
  ), $atts, MYCRED_SLUG . '_leaderboard' );
29
 
30
  // Construct the leaderboard class
5
  * myCRED Shortcode: mycred_leaderboard
6
  * @see http://codex.mycred.me/shortcodes/mycred_leaderboard/
7
  * @since 0.1
8
+ * @version 1.7
9
  */
10
  if ( ! function_exists( 'mycred_render_shortcode_leaderboard' ) ) :
11
  function mycred_render_shortcode_leaderboard( $atts, $content = '' ) {
12
 
13
  $args = shortcode_atts( array(
14
+ 'number' => 25,
15
+ 'order' => 'DESC',
16
+ 'offset' => 0,
17
+ 'type' => MYCRED_DEFAULT_TYPE_KEY,
18
+ 'based_on' => 'balance',
19
+ 'total' => 0,
20
+ 'wrap' => 'li',
21
+ 'template' => '#%position% %user_profile_link% %image% %cred_f%',
22
+ 'nothing' => 'Leaderboard is empty',
23
+ 'current' => 0,
24
+ 'exclude_zero' => 1,
25
+ 'timeframe' => '',
26
+ 'to' => '',
27
+ 'exclude' => '',
28
+ 'image' => 0
29
  ), $atts, MYCRED_SLUG . '_leaderboard' );
30
 
31
  // Construct the leaderboard class
includes/shortcodes/mycred_my_balance.php CHANGED
@@ -6,21 +6,24 @@ if ( ! defined( 'myCRED_VERSION' ) ) exit;
6
  * Returns the current users balance.
7
  * @see http://codex.mycred.me/shortcodes/mycred_my_balance/
8
  * @since 1.0.9
9
- * @version 1.3
10
  */
11
  if ( ! function_exists( 'mycred_render_shortcode_my_balance' ) ) :
12
  function mycred_render_shortcode_my_balance( $atts, $content = '' ) {
13
 
14
  extract( shortcode_atts( array(
15
- 'user_id' => 'current',
16
- 'title' => '',
17
- 'title_el' => 'h1',
18
- 'balance_el' => 'div',
19
- 'wrapper' => 1,
20
- 'formatted' => 1,
21
- 'type' => MYCRED_DEFAULT_TYPE_KEY
 
22
  ), $atts, MYCRED_SLUG . '_my_balance' ) );
23
 
 
 
24
  $output = '';
25
 
26
  // Not logged in
@@ -61,6 +64,10 @@ if ( ! function_exists( 'mycred_render_shortcode_my_balance' ) ) :
61
  if ( ! empty( $balance_el ) )
62
  $output .= '<' . $balance_el . '>';
63
 
 
 
 
 
64
  if ( $formatted )
65
  $output .= $balance->point_type->format( $balance->current );
66
  else
6
  * Returns the current users balance.
7
  * @see http://codex.mycred.me/shortcodes/mycred_my_balance/
8
  * @since 1.0.9
9
+ * @version 1.4
10
  */
11
  if ( ! function_exists( 'mycred_render_shortcode_my_balance' ) ) :
12
  function mycred_render_shortcode_my_balance( $atts, $content = '' ) {
13
 
14
  extract( shortcode_atts( array(
15
+ 'user_id' => 'current',
16
+ 'title' => '',
17
+ 'title_el' => 'h1',
18
+ 'balance_el' => 'div',
19
+ 'wrapper' => 1,
20
+ 'formatted' => 1,
21
+ 'type' => MYCRED_DEFAULT_TYPE_KEY,
22
+ 'image' => 0
23
  ), $atts, MYCRED_SLUG . '_my_balance' ) );
24
 
25
+ $mycred = mycred( $type );
26
+
27
  $output = '';
28
 
29
  // Not logged in
64
  if ( ! empty( $balance_el ) )
65
  $output .= '<' . $balance_el . '>';
66
 
67
+ //Image
68
+ if( $image )
69
+ $output .= "<img src='{$mycred->image_url}' style='margin-right: 5px;' class='mycred-my-balance-image-{$type}' width='20px' />";
70
+
71
  if ( $formatted )
72
  $output .= $balance->point_type->format( $balance->current );
73
  else
membership/mycred-connect-membership.php CHANGED
@@ -112,16 +112,16 @@ if ( ! class_exists( 'myCRED_Connect_Membership' ) ) :
112
 
113
  <div class="mycred-support-page-content">
114
 
115
- <h2>About myCred</h2>
116
  <p>myCred is an intelligent and adaptive points management system that allows you to build and manage a broad range of digital rewards including points, ranks and, badges on your WordPress-powered website.</p>
117
 
118
  <hr>
119
 
120
- <h2>Documentation</h2>
121
  <p>For complete information about myCred and its collection of add-ons, visit the <a target="_blank" href="http://codex.mycred.me/">official documentation</a>.</p>
122
  <hr>
123
 
124
- <h2>Help/Support</h2>
125
  <p>Connect with us for support or feature enhancements - myCred Support Forums or <a target="_blank" href="https://objectsws.atlassian.net/servicedesk/customer/portal/7/group/7/create/46">Open a support ticket</a>.</p>
126
  <hr>
127
 
@@ -133,7 +133,7 @@ if ( ! class_exists( 'myCRED_Connect_Membership' ) ) :
133
  <p>Enjoy the best that myCred has to offer with our collection of premium add-ons that enable you to perform complex tasks such as buy or sell points in exchange for real money or create a points management system for your WooCommerce store. <a target="_blank" href="https://mycred.me/store/">View our premium add-ons</a>.</p>
134
  <hr>
135
 
136
- <h2>Customization</h2>
137
  <p>If you need to build a custom feature, simply <a href="https://objectsws.atlassian.net/servicedesk/customer/portal/11/create/92">submit a request</a> on our myCred website.</p>
138
 
139
  </div>
@@ -158,7 +158,7 @@ if ( ! class_exists( 'myCRED_Connect_Membership' ) ) :
158
  <div class="themes">
159
  <div class="theme active mycred-treasure-pack">
160
  <div class="mycred-treasure-pack-content">
161
- <img src="<?php echo plugins_url( 'assets/images/treasures/badges.jpg', myCRED_THIS );?>" alt="Treasure Badges">
162
  <h3>Badges</h3>
163
  <p>40 unique and beautifully designed Badge designs available in Gold, Silver and Bronze.</p>
164
  </div>
@@ -171,7 +171,7 @@ if ( ! class_exists( 'myCRED_Connect_Membership' ) ) :
171
  </div>
172
  <div class="theme active mycred-treasure-pack">
173
  <div class="mycred-treasure-pack-content">
174
- <img src="<?php echo plugins_url( 'assets/images/treasures/rank.jpg', myCRED_THIS );?>" alt="Treasure Ranks">
175
  <h3>Ranks</h3>
176
  <p>40 unique and beautifully designed virtual Ranks are available in Red, Silver and Gold.</p>
177
  </div>
@@ -184,7 +184,7 @@ if ( ! class_exists( 'myCRED_Connect_Membership' ) ) :
184
  </div>
185
  <div class="theme active mycred-treasure-pack">
186
  <div class="mycred-treasure-pack-content">
187
- <img src="<?php echo plugins_url( 'assets/images/treasures/currency.jpg', myCRED_THIS );?>" alt="Treasure Currencies">
188
  <h3>Currency</h3>
189
  <p>17 unique and beautifully designed Currency designs available in Gold, Silver & Bronze.</p>
190
  </div>
@@ -197,7 +197,7 @@ if ( ! class_exists( 'myCRED_Connect_Membership' ) ) :
197
  </div>
198
  <div class="theme active mycred-treasure-pack">
199
  <div class="mycred-treasure-pack-content">
200
- <img src="<?php echo plugins_url( 'assets/images/treasures/learning.jpg', myCRED_THIS );?>" alt="Treasure Learning">
201
  <h3>Learning</h3>
202
  <p>30 unique and beautifully designed Learning icons are available in four different shapes.</p>
203
  </div>
@@ -208,13 +208,9 @@ if ( ! class_exists( 'myCRED_Connect_Membership' ) ) :
208
  </div>
209
  </div>
210
  </div>
211
- </div>
212
- </div>
213
- <div class="theme-browser">
214
- <div class="themes">
215
  <div class="theme active mycred-treasure-pack">
216
  <div class="mycred-treasure-pack-content">
217
- <img src="<?php echo plugins_url( 'assets/images/treasures/fitness.jpg', myCRED_THIS );?>" alt="Treasure Fitness">
218
  <h3>Fitness</h3>
219
  <p>30 unique and beautifully designed Fitness icons are available in three different shapes.</p>
220
  </div>
@@ -227,7 +223,7 @@ if ( ! class_exists( 'myCRED_Connect_Membership' ) ) :
227
  </div>
228
  <div class="theme active mycred-treasure-pack">
229
  <div class="mycred-treasure-pack-content">
230
- <img src="<?php echo plugins_url( 'assets/images/treasures/gems.jpg', myCRED_THIS );?>" alt="Treasure Gems">
231
  <h3>Gems</h3>
232
  <p>500 unique and beautifully designed gem icons are available in four different shapes.</p>
233
  </div>
@@ -239,7 +235,7 @@ if ( ! class_exists( 'myCRED_Connect_Membership' ) ) :
239
  </div>
240
  </div>
241
  </div>
242
- </div>
243
  </div>
244
  <?php
245
  }
112
 
113
  <div class="mycred-support-page-content">
114
 
115
+ <h2>About myCred:</h2>
116
  <p>myCred is an intelligent and adaptive points management system that allows you to build and manage a broad range of digital rewards including points, ranks and, badges on your WordPress-powered website.</p>
117
 
118
  <hr>
119
 
120
+ <h2>Documentation:</h2>
121
  <p>For complete information about myCred and its collection of add-ons, visit the <a target="_blank" href="http://codex.mycred.me/">official documentation</a>.</p>
122
  <hr>
123
 
124
+ <h2>Help/Support:</h2>
125
  <p>Connect with us for support or feature enhancements - myCred Support Forums or <a target="_blank" href="https://objectsws.atlassian.net/servicedesk/customer/portal/7/group/7/create/46">Open a support ticket</a>.</p>
126
  <hr>
127
 
133
  <p>Enjoy the best that myCred has to offer with our collection of premium add-ons that enable you to perform complex tasks such as buy or sell points in exchange for real money or create a points management system for your WooCommerce store. <a target="_blank" href="https://mycred.me/store/">View our premium add-ons</a>.</p>
134
  <hr>
135
 
136
+ <h2>Customization:</h2>
137
  <p>If you need to build a custom feature, simply <a href="https://objectsws.atlassian.net/servicedesk/customer/portal/11/create/92">submit a request</a> on our myCred website.</p>
138
 
139
  </div>
158
  <div class="themes">
159
  <div class="theme active mycred-treasure-pack">
160
  <div class="mycred-treasure-pack-content">
161
+ <img src="<?php echo plugins_url( 'assets/images/treasures/badges.png', myCRED_THIS );?>" alt="Treasure Badges">
162
  <h3>Badges</h3>
163
  <p>40 unique and beautifully designed Badge designs available in Gold, Silver and Bronze.</p>
164
  </div>
171
  </div>
172
  <div class="theme active mycred-treasure-pack">
173
  <div class="mycred-treasure-pack-content">
174
+ <img src="<?php echo plugins_url( 'assets/images/treasures/rank.png', myCRED_THIS );?>" alt="Treasure Ranks">
175
  <h3>Ranks</h3>
176
  <p>40 unique and beautifully designed virtual Ranks are available in Red, Silver and Gold.</p>
177
  </div>
184
  </div>
185
  <div class="theme active mycred-treasure-pack">
186
  <div class="mycred-treasure-pack-content">
187
+ <img src="<?php echo plugins_url( 'assets/images/treasures/currency.png', myCRED_THIS );?>" alt="Treasure Currencies">
188
  <h3>Currency</h3>
189
  <p>17 unique and beautifully designed Currency designs available in Gold, Silver & Bronze.</p>
190
  </div>
197
  </div>
198
  <div class="theme active mycred-treasure-pack">
199
  <div class="mycred-treasure-pack-content">
200
+ <img src="<?php echo plugins_url( 'assets/images/treasures/learning.png', myCRED_THIS );?>" alt="Treasure Learning">
201
  <h3>Learning</h3>
202
  <p>30 unique and beautifully designed Learning icons are available in four different shapes.</p>
203
  </div>
208
  </div>
209
  </div>
210
  </div>
 
 
 
 
211
  <div class="theme active mycred-treasure-pack">
212
  <div class="mycred-treasure-pack-content">
213
+ <img src="<?php echo plugins_url( 'assets/images/treasures/fitness.png', myCRED_THIS );?>" alt="Treasure Fitness">
214
  <h3>Fitness</h3>
215
  <p>30 unique and beautifully designed Fitness icons are available in three different shapes.</p>
216
  </div>
223
  </div>
224
  <div class="theme active mycred-treasure-pack">
225
  <div class="mycred-treasure-pack-content">
226
+ <img src="<?php echo plugins_url( 'assets/images/treasures/gems.png', myCRED_THIS );?>" alt="Treasure Gems">
227
  <h3>Gems</h3>
228
  <p>500 unique and beautifully designed gem icons are available in four different shapes.</p>
229
  </div>
235
  </div>
236
  </div>
237
  </div>
238
+ </div>
239
  </div>
240
  <?php
241
  }
readme.txt CHANGED
@@ -28,7 +28,7 @@ myCred allows **THREE different ways** through which you can award your users:
28
 
29
  * **Ranks -** Set ranks within your leaderboards and reward your users with significant perks after they reach a certain milestone.
30
 
31
- * **Badges -** Boost your users participation by rewarding them for their exceptional performance.
32
 
33
  = BECOME A VIP MEMBER OF THE MYCRED MEMBERSHIP CLUB =
34
 
@@ -107,10 +107,10 @@ myCred 2.1.1 version enables the plugin to ask the admin whether they want to al
107
  The [mycred_referral_stats] shortcode allows you to display the total count of referred visitors/sign ups users on your website.
108
 
109
  **Badges Quick Edit**
110
- On the badges page, you will see a Quick Edit hyperlink that enables the admin to modify the information of any particular badge by using the quick edit option.
111
 
112
  **cashCred Email Events**
113
- myCred 2.1.1 latest version has added email support for the Cashcred payment gateway in the Email Notifications addon. Admin can create email events/templates for cashCred pending/approved/cancel requests.
114
 
115
  **Open Badge Search Filter**
116
  The[myCred badge list] shortcode gives you the ability to add search fields and filters for badges.
@@ -152,20 +152,20 @@ Not only will you be able to manually adjust the point balance system at any tim
152
 
153
  = AWARD OR DEDUCT POINTS AUTOMATICALLY =
154
 
155
- **myCred** supports an extensive set of WordPress interactions through which you can automatically give/take points from a user. These actions can be as simple as logging in, publishing content, or leaving a comment. These automatic adjustments are managed by a feature called [Hooks](https://mycred.me/about/features/#automatic-points)” that can be set up in your admin area.
156
 
157
 
158
  = DEDICATED LOG =
159
 
160
- Each time **myCred** adds or deducts points from a user, the adjustment is [logged](https://mycred.me/about/features/#account-history) in a dedicated log, allowing your users to browse their history. This log keeps a record of your users accountability, badges, and ranks, among other useful statistics.
161
 
162
  This log data can be converted into charts to help you visualize the usage and circulation of points on your website.
163
 
164
  You can achieve the following features by using a dedicated log for your points system:
165
 
166
  * Set a limit to the maximum number of times each hook can give out points to your user.
167
- * Badges will use the logs data to determine which user has earned a badge.
168
- * Add-ons such as “Sell Content” use the log to keep track of users who have purchased posts from your website.
169
  * Add-ons use the log to make sure that a user does not gain repetitive points for the same interaction within a given time frame.
170
 
171
  = BUILT-IN ADD-ONS =
@@ -178,7 +178,7 @@ myCred is much more than just a point management system - The plugin comes with
178
  **- Email notifications:** Setup email notifications for status updates.
179
  **- Gateway:** Let users pay with points in your store.
180
  **- Notifications:** Enable popup notifications that display status updates.
181
- **- Ranks:** Create ranks based on the users point balance.
182
  **- Sell Content:** Sell your content in exchange for points.
183
  **- Statistics:** Get a statistical overview of points in circulation, etc.
184
  **- Transfers:** Allow your users to transfer points to other users.
@@ -261,7 +261,7 @@ You can find extensive [documentation](http://codex.mycred.me/) on myCred relate
261
 
262
  = Customizations =
263
 
264
- myCred has the ability to “do-it-all” because we have put in a lot of effort to make sure that the supported plugins are as developer-friendly as possible. If you need to build a custom feature, simply submit a [request for a quote](https://mycred.me/customize/request-quote/) via the myCred website.
265
 
266
 
267
  = Support =
@@ -293,7 +293,6 @@ If you're facing a problem that is not described in our technical documentation,
293
 
294
  You can find a list of [frequently asked questions](https://mycred.me/about/faq/) on the myCRED website.
295
 
296
-
297
  == Screenshots ==
298
 
299
  1. **Add-ons** - Add-ons are managed just like themes in WordPress.
@@ -301,7 +300,6 @@ You can find a list of [frequently asked questions](https://mycred.me/about/faq/
301
  3. **Hooks** - Hooks are managed just like widgets in WordPress.
302
  4. **Edit Log Entries** - Administrators can edit any log entry at any time via the admin area.
303
 
304
-
305
  == Upgrade Notice ==
306
 
307
  = 2.2 =
@@ -316,66 +314,6 @@ New features and Bug fixes.
316
  = 2.0 =
317
  The banking module have been replaced by Central deposite module, and interest related functionality has been removed. If you are using simple interest or compound interest related functionality, you will fine the respective functionalities missing after the update.
318
 
319
- = 1.8.0 =
320
- Major release(Make sure to take backup before updating)
321
-
322
- = 1.8.1 =
323
- Bug fixes release.
324
-
325
- = 1.8.2 =
326
- Bug fixes release.
327
-
328
- = 1.8.3 =
329
- Bug fixes release.
330
-
331
- = 1.8.4 =
332
- Bug fixes release.
333
-
334
- = 1.8.4.1 =
335
- Bug fixes release.
336
-
337
- = 1.8.4.2 =
338
- Bug fixes release.
339
-
340
- = 1.8.5 =
341
- Bug fixes release.
342
-
343
- = 1.8.5.1 =
344
- Bug fixes release.
345
-
346
- = 1.8.6 =
347
- Bug fixes release.
348
-
349
- = 1.8.7 =
350
- Bug fixes release.
351
-
352
- = 1.8.8 =
353
- Bug fixes release.
354
-
355
- = 1.8.9 =
356
- Bug fixes release.
357
-
358
- = 1.8.11 =
359
- Bug fixes release.
360
-
361
- = 1.8.12 =
362
- Bug fixes release.
363
-
364
- = 1.8.13 =
365
- Bug fixes release.
366
-
367
- = 1.8.13.1 =
368
- Bug fixes release.
369
-
370
- = 1.8.14 =
371
- Bug fixes release.
372
-
373
- = 1.8.14.1 =
374
- Bug fixes release.
375
-
376
- = 1.8.14.2 =
377
- Bug fixes release.
378
-
379
  == Other Notes ==
380
 
381
  = Requirements =
@@ -398,306 +336,99 @@ Bug fixes release.
398
  == Changelog ==
399
 
400
  = 2.2 =
401
- NEW - On plugin activation, the default point type will be created automatically.
402
- NEW - Added new template tags in email notification for transfer events.
403
- NEW - Now user can upload a point-type image.
404
- NEW - By default, all built-in add-ons are enabled.
405
- NEW - Introduced a enable/disable all addons button.
406
- NEW - Added tabs in myCred addons page.
407
- NEW - Moved general settings and menus into the newly introduced “myCred” main menu.
408
- NEW - Users can share their achieved Badges on social media.
409
- FIX - Backend logs are not being exported whether the export raw/formatted log option is set.
410
- FIX - Incorrect achieved badge level image in [mycred_badges] shortcode.
411
- FIX - In the Ranks list page All/Published/Trash links not working properly.
412
- FIX - Unable to revoke badge from the User profile page.
413
- FIX - Added some security validations in the transfer form.
414
- FIX - MYSQL 8 syntax error in the leaderboard.
415
- FIX - Added compatibility with BuddyPress version 8.0.
416
- Tweak - When a user deletes the log of buy_content, the sales count does not get updated. So, we have Introduced the "Update Sales Count" button in the settings.
417
- TWEAK - Improve new point type creation form setting
418
 
419
  = 2.1.1 =
420
- NEW - Introduced new template tags %badge_image%, %badge_title%, %rank_image% and %rank_title% for myCred email notification addon.
421
- NEW - Added support for cashCred payment email in myCred email notification addon.
422
- NEW - Added myCred Open badge image download button in the user profile(backend).
423
- NEW - Added a new support menu in myCred for suggestions and support.
424
- NEW - Added search bar and filters in mycred_badges_list shortcode.
425
- NEW - Introduced a new template tag %price% for myCred sell content "Insufficient Funds Template".
426
- NEW - myCred Badge Quick Edit.
427
- NEW - Introduced a new shortcode mycred_referral_stats which shows the referral stats for logged-in users.
428
- NEW - Introduced a new template tag %user_name% for "Signup Referral" log template.
429
- NEW - Introduced a setting for uninstalling. Now users can select which data will be deleted during myCred uninstall.
430
- NEW - Introduced new action hook mycred_after_points_referral.
431
- NEW - Introduced new action hook mycred_after_referring_signups.
432
- NEW - Introduced new filter hook mycred_hook_referrals.
433
- NEW - Introduced new filter hook mycred_before_hooks_save.
434
- NEW - Introduced new fitler hook mycred_woo_gateway_user_id.
435
- FIX - Unable to deactivate point types in buyCred Setting.
436
- FIX - The user was unable to export the log from the frontend.
437
- FIX - Height and width attributes in the mycred_my_badges shortcode were not working.
438
- FIX - myCred Cubepoints importer was not importing date correctly.
439
- FIX - If badges AND ranks were not active email notifications were not sending emails.
440
- FIX - The user was unable to export the log from the frontend.
441
- FIX - In the mycred_sales_history shortcode expires time was incorrect.
442
- FIX - A broken image shows when the badge image does not set.
443
 
444
  = 2.1.0.3 =
445
- FIX - Email notification issues.
446
- FIX - Broken image if badge default image wasn't set.
447
- FIX - mycred_my_badges width and height attributes wasn't working.
448
 
449
  = 2.1.0.2 =
450
  Improvement - Code optimization
451
 
452
  = 2.1.0.1 =
453
- FIX - Remove warnings
454
 
455
  = 2.1 =
456
- NEW - Open badge functionality in myCred Badge addon.
457
- NEW - Introduce Achievement Types.
458
- NEW - Introduce a new shortcode mycred_badges_list.
459
- NEW - Single badge page.
460
- NEW - Added support into Badges for Anniversary hook.
461
- NEW - Added support into Badges for wooCommerce purchase reward.
462
- NEW - Added %rank_title% template tag support in Email Notifications.
463
- NEW - Added attributes in mycred_transfer shortcode.
464
- FIX - mycred_history shortcode pagination not working properly when cache enabled.
465
- FIX - Ranks weren't working properly on the current balance.
466
- FIX - mycred_sell_this shortcode not working in the bbPress topic
467
- FIX - The central deposit missing log entry in some cases.
468
- TWEAK - Removed deprecated functions.
469
- TWEAK - Code Improvement.
470
- TWEAK - Improve styling of mycred_transfer shortcode.
471
 
472
  = 2.0.2 =
473
- New - Added compatibility for multiple currencies in CashCred Paypal addon
474
- Fix - Php erros in myCred woocommerce gateway
475
- Fix - Points on daily visit hooks not working in some conditions
476
- Fix - myCred CashCred multisite issues
477
- TWEAK - license system
478
 
479
  = 2.0.1 =
480
- FIX - myCred membership license not activating for members
481
 
482
  = 2.0 =
483
- NEW - myCred CashCred
484
- NEW - Added filter 'mycred_link_click_amount'
485
- NEW - Added exclude attribute in myCred leaderboard
486
- NEW - Added 'NOT LIKE' and '!=' operator for expiration addon
487
- FIX - Php notices in rank addon
488
- FIX - Rewards points option not visible for other product type in woocommerce
489
- FIX - Erros in mycred_total_balance shortcode
490
- FIX - myCred logs export issue
491
- FIX - Fixed mycred admin dashboard overview widget showing incorrect or same amount of points
492
- FIX - buyCred gift_to attribute not working
493
- TWEAK - myCred Central Deposit
494
-
495
- = 1.8.14.2 =
496
- - **TWEAK** - Code optimization.
497
-
498
- = 1.8.14.1 =
499
- - **NEW** - Add filter for myCred Link Click hook
500
- - **FIX** - Reduce license requests
501
- - **FIX** - Rewards Points meta box is not displaying other than single product.
502
- - **TWEAK** - Remove Php warnings from myCred Rank Shortcode
503
-
504
- = 1.8.14 =
505
- - **FIX** - Comments hooks not working.
506
- - **FIX** - Warnings in myCred Sell Content.
507
- - **FIX** - Ranks recalculate totals not working.
508
- - **FIX** - mycred_history shortcode pagination not working.
509
-
510
- = 1.8.13.1 =
511
- - **FIX** - Site menu broken issue on frontend
512
- - **FIX** - Style glitches on some themes
513
- - **FIX** - Hide myCred rank menu when user doesn't have any rank
514
-
515
- = 1.8.13 =
516
- - **NEW** - Introduce a decimal attribute in mycred_my_balance_converted shortcode
517
- - **NEW** - Introduce a filter mycred_woocommerce_gateway_supports
518
- - **NEW** - Introduce myCred balance and rank menu items in wordpress menu
519
- - **NEW** - Introduce a new hook reward for buying points in buyCred addon
520
- - **NEW** - Added mycred membership table in membership page
521
- - **NEW** - Added addon install, activate and deactivate functionality in mycred membership page
522
- - **NEW** - Added new filter mycred_badge_assign to control if the badge assign or not.
523
- - **FIX** - BBPress Hook delete reply/topic not working
524
- - **FIX** - myCred Badge AND/OR condition now working correctly
525
- - **FIX** - Badge reward not being added in total balance
526
- - **FIX** - Undefined variables in mycred_leaderboard_position shortcode
527
- - **FIX** - Rank manual mode not working
528
- - **FIX** - mycred_buy shortcode message not visible to non logged in users
529
- - **FIX** - mycred_chart_balance_history shortcode incorrect chart data
530
- - **FIX** - Warnings in mycred referral hook
531
- - **FIX** - "Click here to get your Membership License" link not working
532
- - **FIX** - Badge reward not being added in total balance
533
- - **FIX** - Badge reward not being reflected on ranks
534
- - **FIX** - mycred_my_balance_converted shortcode prefix attribute not working
535
- - **FIX** - mycred_reset_key cron action not working
536
- - **TWEAK** - Improve mycred_get_membership_details function
537
- - **TWEAK** - mycred_transfer shortcode prevent multiple form submission until the server responds
538
-
539
- = 1.8.12 =
540
- - **NEW** - Introduce a new filter mycred_video_interval for myCred Addons.
541
- - **NEW** - Added rate attribute in mycred_buy_form shortcode.
542
- - **FIX** - buyCred pending payment payout.
543
- - **FIX** - Badge image broken on sub-sites when master template is enabled on buddypress profile.
544
- - **FIX** - All ranks not removing completely, it stored some of their data in database.
545
- - **FIX** - Multisite buyCred transaction id empty on subsites in Bank transfer gateway.
546
- - **FIX** - mycred sell content not working with bbpress.
547
- - **FIX** - Bitpay 404 page issue in buyCred popup vesion.
548
- - **FIX** - myCred Email notifications triggers "transfer send and receives" not working properly.
549
- - **FIX** - mycred_sales_history shortcode not working.
550
- - **TWEAK** - Compatible rank module with PHP 7.4
551
- - **TWEAK** - Some variables are undefined in different cases in Leaderboard.
552
-
553
- = 1.8.11 =
554
- - **NEW** - Added button for remove default badge image.
555
- - **FIX** - Log menu not visible except the master site when the master template is enabled.
556
- - **FIX** - Bitpay buyCred payment gateway not working.
557
- - **FIX** - Pending payment menu not visible in multisite if the master template is enabled.
558
- - **FIX** - Undefined variable in myCRED_Query_Log class.
559
- - **FIX** - Single Quote in form title breaks the specific badge functionality for the gravity form.
560
- - **FIX** - Undefined index warnings in myCred leaderboard widget.
561
- - **TWEAK** - Update myCred translations.
562
- - **TWEAK** - mycred_hook_table code improvements.
563
-
564
- = 1.8.9 =
565
- - **NEW** - Introduce a new filter mycred_update_total_balance.
566
- - **FIX** - Rank display setting issues.
567
- - **FIX** - View content hook limit not working properly.
568
- - **FIX** - Buycred maximum limit not working.
569
- - **FIX** - myCred ranks show in BBPress profile and topic post even the user is excluded from the point type.
570
- - **FIX** - Badges not displaying in BBPress profile even check show all badges.
571
- - **FIX** - BuyCred Payment transactions visible in recent comments section.
572
- - **TWEAK** - Improvement in mycred_my_ranks shortcode.
573
- - **TWEAK** - Buycred shows proper error messages.
574
-
575
- = 1.8.8 =
576
- - **NEW** - Introduced myCred membership.
577
- - **NEW** - Added support in badge for specific link click and gravity form.
578
- - **TWEAK** - Added notice for meta key to avoid any conflicts.
579
- - **FIX** - leaderboard "current" attribute was not working.
580
- - **FIX** - myCred ranks show in BuddyPress profile even the user is excluded from the point type.
581
- - **FIX** - "number" attribute was not working in stats related shortcodes.
582
- - **FIX** - Errors in mycred_get_ranks function.
583
- - **FIX** - Unselected point types also appear in myCred Wallet Widget.
584
- - **FIX** - Four-digit points value not working in remote API.
585
- - **FIX** - MYSQL and MariaDB syntax error in their newer versions.
586
-
587
- = 1.8.7 =
588
- - **NEW** - Introduce a new action hook mycred_after_badge_assign.
589
- - **FIX** - Placeholder attribute not working in mycred_transfer shortcode.
590
-
591
- = 1.8.6 =
592
- - **NEW** - Introduce a new shortcode [mycred_my_balance_converted].
593
- - **NEW** - Introduce a new template tag %coupon_code%.
594
- - **TWEAK** - Avoid duplicate database calls in get_log_table().
595
- - **TWEAK** - Language support in [mycred_hook_table] shortcode.
596
- - **FIX** - [mycred_buy] shortcode always get default point type settings.
597
- - **FIX** - HTML format issue in [mycred_buy_form] shortcode.
598
- - **FIX** - Remove badge related PHP warnings.
599
- - **FIX** - %order_id% template tag does not render in myCRED email.
600
- - **FIX** - %transfer_message% template tag does not render in myCRED email.
601
-
602
- = 1.8.5.1 =
603
- - **FIX** - myCRED Statistics add-on related shortcodes.
604
- - **FIX** - myCRED Leaderbard cache issue.
605
- - **TWEAK** - Database optimization.
606
-
607
- = 1.8.5 =
608
- - **NEW** - Added "to" attribute in Leaderboard shortcode.
609
- - **NEW** - Added filter "mycred_show_custom_coupon_value" for coupon value.
610
- - **FIX** - myCRED Leaderboard widget notices.
611
- - **FIX** - Typo fix in BuddyPress hook.
612
- - **FIX** - Coupon success message not showing in custom point types.
613
- - **FIX** - Incorrect point type in coupon notification.
614
- - **FIX** - Ranks not being assigned based on Total Balance.
615
- - **FIX** - Set default point type in ctype attribute in [mycred_users_of_all_ranks] shortcode.
616
- - **FIX** - [mycred_hook_table] this shortcode showing only 1 content hook at a time.
617
- - **FIX** - Emails that are stored in draft are also being sent.
618
- - **FIX** - Template tags are not being rendered in email Notices.
619
- - **FIX** - Admin not able to select ranks "manual mode" from settings.
620
- - **FIX** - Admin not able to assign ranks when "manual mode" is enabled.
621
- - **FIX** - Errors in [mycred_email_subscriptions] shortcode.
622
- - **FIX** - Transfer Message showing as "-" in log.
623
- - **FIX** - myCRED Cache not deleting.
624
- - **FIX** - When deleting a BuddyPress Activity adds a "Profile Comment Delete" log.
625
- - **FIX** - Assign users badge from badge edit page.
626
- - **FIX** - "Not in" operator not passing in query_log.
627
- - **FIX** - Show main image in [mycred_my_badges] shortcode if level image is not set.
628
-
629
- = 1.8.4.2 =
630
- - **FIX** - myCRED hooks not adding on other point types.
631
- - **FIX** - option_id name not calling for other point types.
632
-
633
- = 1.8.4.1 =
634
- - **FIX** - myCRED hooks not saving.
635
- - **FIX** - setCookie function error when adding new hook.
636
-
637
- = 1.8.4 =
638
- - **NEW** - Introduce a new filter “mycred_option_id” for manipulating hooks.
639
- - **NEW** - Add new action "mycred_pref_hooks" on mycred hooks page
640
- - **TWEAK** - Limits are showing for Approved comments hook in [mycred_hook_table] shortcode.
641
- - **FIX** - Sell content undefined offset in Backend Pages & Posts.
642
- - **FIX** - mycred_buy shortcode Undefined variable: post.
643
- - **FIX** - Bitpay 404 page redirect.
644
- - **FIX** - BuyCred Gateway error message no gateway available.
645
- - **FIX** - myCred Email accept only ARRAY value in "get_subject" function.
646
- - **FIX** - Incorrect log table name in multisite when central logging is enabled.
647
- - **FIX** - strpos depreciated behavior.
648
- - **FIX** - Coupon expiration before date.
649
- - **FIX** - "Total in Points" value show in both Cart & Checkout page when you select "Show in Cart and on Checkout Page" in WooCommerce myCRED Gateway.
650
-
651
- = 1.8.3 =
652
- - **FIX** - Fixed Woocommerce checkout errors.
653
- - **FIX** - Fixed get_users_balance function.
654
- - **FIX** - Fixed typo error in bbPress hook.
655
- - **NEW** - Added new feature to copy to clipboard referral link in BuddyPress profile page
656
-
657
- = 1.8.2 =
658
- - **FIX** - [mycred_best_user] shortcode fixed.
659
- - **FIX** - Post related template tags fixed.
660
- - **FIX** - Sell content related issue fixed.
661
- IMPROVEMENT - Added check for existing logs getting disappeared.
662
-
663
- = 1.8.1 =
664
- - **FIX** - [mycred_my_balance] shortcode fixed.
665
- - **FIX** - [mycred_total_balance] shortcode fixed.
666
- - **FIX** - rank related issues fixed.
667
-
668
- = 1.8 =
669
- - **NEW** - Added new mycred_over_hook_limit filter for adjusting hook limit checks.
670
- - **NEW** - Added new MYCRED_RANK_KEY constant which can be used to whitelabel ranks.
671
- - **NEW** - Added new MYCRED_COUPON_KEY constant which can be used to whitelabel coupons.
672
- - **NEW** - Added new MYCRED_BADGE_KEY constant which can be used to whitelabel badges.
673
- - **NEW** - Added new MYCRED_EMAIL_KEY constant with can be used to whitelabel email notifications.
674
- - **NEW** - Added new MYCRED_BUY_KEY constant with can be used to whitelabel pending buyCRED payments.
675
- - **NEW** - Added new MYCRED_ENABLE_SHORTCODES constant in cases where myCRED shortcodes needs to be disabled.
676
- - **NEW** - Updated the Email Notifications add-on to version 1.4 with support for custom instances, multiple point types / notice and introduced the new myCRED_Email object.
677
- - **NEW** - Updated the buyCRED add-on which now has improved checkout process.
678
- - **NEW** - Added the option to set a custom gateway logo for all built-in payment gateways.
679
- - **NEW** - Updated the mycred_load_coupon shortcode to show an error message when an invalid coupon is used.
680
- - **NEW** - Added new Anniversary hook allowing you to reward users for each year they are a member on your website.
681
- - **NEW** - Added new MYCRED_ENABLE_HOOKS constant to disable hooks completely.
682
- - **NEW** - Added support for Multi Network setups.
683
- - **NEW** - Added new mycred_add_post_meta(), mycred_get_post_meta(), mycred_update_post_meta() and mycred_delete_post_meta() functions in order to add support for the Master Template feature on multisites.
684
- - **NEW** - Added support for multiple point types in leaderboards.
685
- - **NEW** - The leaderboard shortcode can now be setup to render results based on multiple point types.
686
- - **NEW** - Added caching of log and leaderboard queries.
687
- - **NEW** - Added new filter to allow adjustments to the reference used for publishing and deleting content hooks.
688
- - **NEW** - Added new mycred_give_run filter to control if the mycred_give shortcode should run or not.
689
- - **TWEAK** - Moved hooks to /includes/hooks/ and third-party hooks to /includes/hooks/external/.
690
- - **TWEAK** - Implemented the use of $mycred_log_table global throughout the plugin.
691
- - **TWEAK** - Improved Multisite support.
692
- - **TWEAK** - When a user jumps more than one badge level in a single instance, we want to make sure he gets rewarded for each level (if rewards is set).
693
- - **TWEAK** - Corrected codex urls for functions and shortcodes throughout the plugin.
694
- - **TWEAK** - Added support to whitelabel shortcodes.
695
- - **TWEAK** - Added new MYCRED_SHOW_PREMIUM_ADDONS constant to hide all mentions of premium add-ons in myCRED.
696
- - **TWEAK** - BuddyPress fixed issue related to points ignoring limit on adding to favorites
697
- - **TWEAK** - Optimized search the search for log entries
698
- - **TWEAK** - issue related to email not getting send on transfer in and out triggers in transfer addon
699
- - **TWEAK** - Rank excerpt fix
700
-
701
 
702
  = Previous Versions =
703
  https://mycred.me/support/changelog/
28
 
29
  * **Ranks -** Set ranks within your leaderboards and reward your users with significant perks after they reach a certain milestone.
30
 
31
+ * **Badges -** Boost your users' participation by rewarding them for their exceptional performance.
32
 
33
  = BECOME A VIP MEMBER OF THE MYCRED MEMBERSHIP CLUB =
34
 
107
  The [mycred_referral_stats] shortcode allows you to display the total count of referred visitors/sign ups users on your website.
108
 
109
  **Badges Quick Edit**
110
+ On the badges page, you will see a "Quick Edit" hyperlink that enables the admin to modify the information of any particular badge by using the quick edit option.
111
 
112
  **cashCred Email Events**
113
+ myCred 2.1.1 latest version has added email support for the Cashcred payment gateway in the "Email Notifications" addon. Admin can create email events/templates for cashCred pending/approved/cancel requests.
114
 
115
  **Open Badge Search Filter**
116
  The[myCred badge list] shortcode gives you the ability to add search fields and filters for badges.
152
 
153
  = AWARD OR DEDUCT POINTS AUTOMATICALLY =
154
 
155
+ **myCred** supports an extensive set of WordPress interactions through which you can automatically give/take points from a user. These actions can be as simple as logging in, publishing content, or leaving a comment. These automatic adjustments are managed by a feature called "[Hooks](https://mycred.me/about/features/#automatic-points)" that can be set up in your admin area.
156
 
157
 
158
  = DEDICATED LOG =
159
 
160
+ Each time **myCred** adds or deducts points from a user, the adjustment is [logged](https://mycred.me/about/features/#account-history) in a dedicated log, allowing your users to browse their history. This log keeps a record of your user's accountability, badges, and ranks, among other useful statistics.
161
 
162
  This log data can be converted into charts to help you visualize the usage and circulation of points on your website.
163
 
164
  You can achieve the following features by using a dedicated log for your points system:
165
 
166
  * Set a limit to the maximum number of times each hook can give out points to your user.
167
+ * Badges will use the log's data to determine which user has earned a badge.
168
+ * Add-ons such as **Sell Content** use the log to keep track of users who have purchased posts from your website.
169
  * Add-ons use the log to make sure that a user does not gain repetitive points for the same interaction within a given time frame.
170
 
171
  = BUILT-IN ADD-ONS =
178
  **- Email notifications:** Setup email notifications for status updates.
179
  **- Gateway:** Let users pay with points in your store.
180
  **- Notifications:** Enable popup notifications that display status updates.
181
+ **- Ranks:** Create ranks based on the user's point balance.
182
  **- Sell Content:** Sell your content in exchange for points.
183
  **- Statistics:** Get a statistical overview of points in circulation, etc.
184
  **- Transfers:** Allow your users to transfer points to other users.
261
 
262
  = Customizations =
263
 
264
+ myCred has the ability to do-it-all because we have put in a lot of effort to make sure that the supported plugins are as developer-friendly as possible. If you need to build a custom feature, simply submit a [request for a quote](https://mycred.me/customize/request-quote/) via the myCred website.
265
 
266
 
267
  = Support =
293
 
294
  You can find a list of [frequently asked questions](https://mycred.me/about/faq/) on the myCRED website.
295
 
 
296
  == Screenshots ==
297
 
298
  1. **Add-ons** - Add-ons are managed just like themes in WordPress.
300
  3. **Hooks** - Hooks are managed just like widgets in WordPress.
301
  4. **Edit Log Entries** - Administrators can edit any log entry at any time via the admin area.
302
 
 
303
  == Upgrade Notice ==
304
 
305
  = 2.2 =
314
  = 2.0 =
315
  The banking module have been replaced by Central deposite module, and interest related functionality has been removed. If you are using simple interest or compound interest related functionality, you will fine the respective functionalities missing after the update.
316
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
317
  == Other Notes ==
318
 
319
  = Requirements =
336
  == Changelog ==
337
 
338
  = 2.2 =
339
+ - **NEW** - Moved general settings and menus into the newly introduced "myCred" main menu.
340
+ - **NEW** - On plugin activation, the default point type will be created automatically.
341
+ - **NEW** - Added new template tags in email notification for transfer events.
342
+ - **NEW** - Now user can upload a Point type image.
343
+ - **NEW** - Introduced an image attribute in mycred_my_balance shortcode.
344
+ - **NEW** - Introduced an image attribute in mycred_leaderboard shortcode.
345
+ - **NEW** - Introduced Single badge page layout setting.
346
+ - **NEW** - Introduced a enable/disable all addons button.
347
+ - **NEW** - Users can share their achieved Badges on social media.
348
+ - **FIX** - Backend logs are not being exported whether the export raw/formatted log option is set.
349
+ - **FIX** - Incorrect achieved badge level image in [mycred_badges] shortcode.
350
+ - **FIX** - In the Ranks list page All/Published/Trash links not working properly.
351
+ - **FIX** - Unable to revoke badge from the User profile page. FIX – Added some security validations in the transfer form.
352
+ - **FIX** - MYSQL 8 syntax error in the leaderboard shortcode.
353
+ - **FIX** - Added compatibility with BuddyPress version 8.0.
354
+ - **TWEAK** - When a user deletes the log of buy_content, the sales count does not get updated. So, we have Introduced the "Update Sales Count" button in the settings.
355
+ - **TWEAK** - Improve new point type creation form setting.
356
 
357
  = 2.1.1 =
358
+ - **NEW** - Introduced new template tags %badge_image%, %badge_title%, %rank_image% and %rank_title% for myCred email notification addon.
359
+ - **NEW** - Added support for cashCred payment email in myCred email notification addon.
360
+ - **NEW** - Added myCred Open badge image download button in the user profile(backend).
361
+ - **NEW** - Added a new support menu in myCred for suggestions and support.
362
+ - **NEW** - Added search bar and filters in mycred_badges_list shortcode.
363
+ - **NEW** - Introduced a new template tag %price% for myCred sell content "Insufficient Funds Template".
364
+ - **NEW** - myCred Badge Quick Edit.
365
+ - **NEW** - Introduced a new shortcode mycred_referral_stats which shows the referral stats for logged-in users.
366
+ - **NEW** - Introduced a new template tag %user_name% for "Signup Referral" log template.
367
+ - **NEW** - Introduced a setting for uninstalling. Now users can select which data will be deleted during myCred uninstall.
368
+ - **NEW** - Introduced new action hook mycred_after_points_referral.
369
+ - **NEW** - Introduced new action hook mycred_after_referring_signups.
370
+ - **NEW** - Introduced new filter hook mycred_hook_referrals.
371
+ - **NEW** - Introduced new filter hook mycred_before_hooks_save.
372
+ - **NEW** - Introduced new fitler hook mycred_woo_gateway_user_id.
373
+ - **FIX** - Unable to deactivate point types in buyCred Setting.
374
+ - **FIX** - The user was unable to export the log from the frontend.
375
+ - **FIX** - Height and width attributes in the mycred_my_badges shortcode were not working.
376
+ - **FIX** - myCred Cubepoints importer was not importing date correctly.
377
+ - **FIX** - If badges AND ranks were not active email notifications were not sending emails.
378
+ - **FIX** - The user was unable to export the log from the frontend.
379
+ - **FIX** - In the mycred_sales_history shortcode expires time was incorrect.
380
+ - **FIX** - A broken image shows when the badge image does not set.
381
 
382
  = 2.1.0.3 =
383
+ - **FIX** - Email notification issues.
384
+ - **FIX** - Broken image if badge default image wasn't set.
385
+ - **FIX** - mycred_my_badges width and height attributes wasn't working.
386
 
387
  = 2.1.0.2 =
388
  Improvement - Code optimization
389
 
390
  = 2.1.0.1 =
391
+ - **FIX** - Remove warnings
392
 
393
  = 2.1 =
394
+ - **NEW** - Open badge functionality in myCred Badge addon.
395
+ - **NEW** - Introduce Achievement Types.
396
+ - **NEW** - Introduce a new shortcode mycred_badges_list.
397
+ - **NEW** - Single badge page.
398
+ - **NEW** - Added support into Badges for Anniversary hook.
399
+ - **NEW** - Added support into Badges for wooCommerce purchase reward.
400
+ - **NEW** - Added %rank_title% template tag support in Email Notifications.
401
+ - **NEW** - Added attributes in mycred_transfer shortcode.
402
+ - **FIX** - mycred_history shortcode pagination not working properly when cache enabled.
403
+ - **FIX** - Ranks weren't working properly on the current balance.
404
+ - **FIX** - mycred_sell_this shortcode not working in the bbPress topic
405
+ - **FIX** - The central deposit missing log entry in some cases.
406
+ - **TWEAK** - Removed deprecated functions.
407
+ - **TWEAK** - Code Improvement.
408
+ - **TWEAK** - Improve styling of mycred_transfer shortcode.
409
 
410
  = 2.0.2 =
411
+ - **NEW** - Added compatibility for multiple currencies in CashCred Paypal addon
412
+ - **FIX** - Php erros in myCred woocommerce gateway
413
+ - **FIX** - Points on daily visit hooks not working in some conditions
414
+ - **FIX** - myCred CashCred multisite issues
415
+ - **TWEAK** - license system
416
 
417
  = 2.0.1 =
418
+ - **FIX** - myCred membership license not activating for members
419
 
420
  = 2.0 =
421
+ - **NEW** - myCred CashCred
422
+ - **NEW** - Added filter 'mycred_link_click_amount'
423
+ - **NEW** - Added exclude attribute in myCred leaderboard
424
+ - **NEW** - Added 'NOT LIKE' and '!=' operator for expiration addon
425
+ - **FIX** - Php notices in rank addon
426
+ - **FIX** - Rewards points option not visible for other product type in woocommerce
427
+ - **FIX** - Erros in mycred_total_balance shortcode
428
+ - **FIX** - myCred logs export issue
429
+ - **FIX** - Fixed mycred admin dashboard overview widget showing incorrect or same amount of points
430
+ - **FIX** - buyCred gift_to attribute not working
431
+ - **TWEAK** - myCred Central Deposit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
432
 
433
  = Previous Versions =
434
  https://mycred.me/support/changelog/