diff --git a/README.txt b/README.txt index b2194ff..6394dd7 100755 --- a/README.txt +++ b/README.txt @@ -2,7 +2,7 @@ Contributors: strangerstudios Tags: paid memberships pro, pmpro, memberships, ecommerce Requires at least: 3.0 -Tested up to: 4.8 +Tested up to: 5.2.2 Stable tag: .3 The default PMPro Membership Levels page displays in a table layout. This plugin changes your levels page layout to use a DIV for each level. If you are using the PMPro Level Cost Text add on, it will use that text for the generated price sentence. Alternately, it will just use the automatically generated level cost text PMPro provides. @@ -18,15 +18,15 @@ Display your Membership Levels in a DIV layout, allowing you to add custom CSS t 1. Activate the plugin through the 'Plugins' menu in WordPress. 1. That's it. No settings. -== Changelog == +== Changelog == = .3 = -* Now checking which levels to display instead of displaying all levels. +* BUG FIX/ENHANCEMENT: Now checking which levels to display instead of displaying all levels. +* BUG FIX/ENHANCEMENT: Now respecting the levels order set by the Settings > Membership Levels admin page. = .2 = -* Added meta links to plugins page. -* Fixed _e() use in some cases. -* Now showing "renew" to members with non-recurring levels with an end date instead of "your level". +* BUG FIX: Fixed _e() use in some cases. +* ENHANCEMENT: Now showing "renew" to members with non-recurring levels with an end date instead of "your level". +* ENHANCEMENT: Added meta links to plugins page. = .1 = * Initial release - diff --git a/pmpro-div-levels.php b/pmpro-div-levels.php index 5761f5e..9cb379d 100755 --- a/pmpro-div-levels.php +++ b/pmpro-div-levels.php @@ -1,11 +1,11 @@ ' . __( 'Docs', 'pmpro' ) . '', + '' . __( 'Docs', 'pmpro' ) . '', '' . __( 'Support', 'pmpro' ) . '', ); $links = array_merge($links, $new_links); diff --git a/templates/levels.php b/templates/levels.php index d2a5396..1e01935 100755 --- a/templates/levels.php +++ b/templates/levels.php @@ -1,16 +1,37 @@ -$level) { + if($level_id == $level->id) + $reordered_levels[] = $pmpro_levels[$key]; + } + } + + $pmpro_levels = $reordered_levels; +} + +$pmpro_levels = apply_filters("pmpro_levels_array", $pmpro_levels); + if($pmpro_msg) { ?> -
+ -- + -
membership_level->ID)) { ?> - id, "https")?>"> - - id, "https")?>"> - + id, "https")?>"> + + id, "https")?>"> + membership_level) && !empty($current_user->membership_level->enddate)) { ?> id, "https")?>"> "> -
- + description)) echo apply_filters("the_content", stripslashes($level->description)); - ?> + ?>