Skip to content

Commit

Permalink
Release 2.6
Browse files Browse the repository at this point in the history
myCred 2.6 release
  • Loading branch information
atif committed Feb 16, 2024
1 parent e94cbeb commit 9520092
Show file tree
Hide file tree
Showing 168 changed files with 5,885 additions and 18,725 deletions.
39 changes: 0 additions & 39 deletions README.md

This file was deleted.

5 changes: 3 additions & 2 deletions abstracts/mycred-abstract-hook.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* @version 1.3.2
*/
if ( ! class_exists( 'myCRED_Hook' ) ) :
#[AllowDynamicProperties]
abstract class myCRED_Hook {

/**
Expand Down Expand Up @@ -351,7 +352,7 @@ public function hook_limit_setting( $name = '', $id = '', $selected = '' ) {
$hide = 'hidden';

// The limit value field
$output = '<div class="h2"><input type="' . $hide . '" size="8" class="mini" name="' . $name . '" id="' . $id . '" value="' . $selected[0] . '" />';
$output = '<div class="h2"><input type="' . $hide . '" size="8" class="form-control hook-input-width mini" name="' . $name . '" id="' . $id . '" value="' . $selected[0] . '" />';

// Get limit options
$options = $this->get_limit_types();
Expand All @@ -367,7 +368,7 @@ public function hook_limit_setting( $name = '', $id = '', $selected = '' ) {
$id = apply_filters( 'mycred_hook_limit_id_by', $id, $this );

// Generate dropdown menu
$output .= '<select name="' . $name . '" id="' . $id . '" class="limit-toggle">';
$output .= '<select name="' . $name . '" id="' . $id . '" class="form-control hook-select-width limit-toggle">';
foreach ( $options as $value => $label ) {
$output .= '<option value="' . $value . '"';
if ( $selected[1] == $value ) $output .= ' selected="selected"';
Expand Down
2 changes: 1 addition & 1 deletion abstracts/mycred-abstract-module.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* @version 1.3.5
*/
if ( ! class_exists( 'myCRED_Module' ) ) :
#[AllowDynamicProperties]
abstract class myCRED_Module {

// Module ID (unique)
Expand Down Expand Up @@ -514,7 +515,6 @@ public function settings_page_enqueue() {
// Load Accordion
if ( $this->accordion ) {

wp_enqueue_style( 'mycred-admin' );
wp_enqueue_script( 'mycred-accordion' );

?>
Expand Down
1 change: 1 addition & 0 deletions abstracts/mycred-abstract-object.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* @version 1.1
*/
if ( ! class_exists( 'myCRED_Object' ) ) :
#[AllowDynamicProperties]
abstract class myCRED_Object {

/**
Expand Down
4 changes: 2 additions & 2 deletions addons/badges/includes/mycred-badge-shortcodes.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function mycred_render_my_badges( $atts, $content = '' ) {

ob_start();

echo '<div class="mycred-users-badges">';
echo '<div class="mycred-users-badges mycred-' . esc_attr( $css_classes ) . '">';

foreach ( $all_badges as $badge_id ) {

Expand Down Expand Up @@ -249,6 +249,6 @@ function mycred_render_badges_list( $atts = '' ) {
<?php
$content = ob_get_clean();

return apply_filters( 'mycred_badges_list', $content, $atts );
return apply_filters( 'mycred_badges_list', $content );
}
endif;
Loading

0 comments on commit 9520092

Please sign in to comment.