From ae830c602b39df5a89ef3a696242a5fb3788a438 Mon Sep 17 00:00:00 2001 From: purplewhite Date: Fri, 6 Nov 2015 22:59:11 +0100 Subject: [PATCH] plugin adjustments 1. sorting: I am using a custom sort criteria (role), but within each role I wanted to ensure a "controlled" sorting, at best by display name 2. add CSS class for user role to member profile 3. add CSS class for user role to member div's in in members directory 4. add link to cover picture in the members directory for easier click. 5. cover picture in format 1.6:1. --- core/um-actions-members.php | 4 ++-- core/um-filters-members.php | 2 +- templates/profile.php | 2 +- um-config.php | 1 + 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/core/um-actions-members.php b/core/um-actions-members.php index 3fe7ee1a..542a656b 100644 --- a/core/um-actions-members.php +++ b/core/um-actions-members.php @@ -214,7 +214,7 @@ -
+
@@ -229,7 +229,7 @@ ?>
-
+
diff --git a/core/um-filters-members.php b/core/um-filters-members.php index 979ea59d..c1d3f9e6 100644 --- a/core/um-filters-members.php +++ b/core/um-filters-members.php @@ -157,7 +157,7 @@ if ( $sortby == 'other' && $sortby_custom ) { $query_args['meta_key'] = $sortby_custom; - $query_args['orderby'] = 'meta_value'; + $query_args['orderby'] = 'meta_value, display_name'; } else if ( in_array( $sortby, array( 'last_name', 'first_name' ) ) ) { diff --git a/templates/profile.php b/templates/profile.php index 9c6cc221..8b994d1e 100644 --- a/templates/profile.php +++ b/templates/profile.php @@ -1,4 +1,4 @@ -
+
diff --git a/um-config.php b/um-config.php index c28cfba1..5be0a1fb 100644 --- a/um-config.php +++ b/um-config.php @@ -1384,6 +1384,7 @@ $this->sections[] = array( 'desc' => __( 'Choose global ratio for cover photos of profiles','ultimatemember' ), 'default' => um_get_metadefault('profile_cover_ratio'), 'options' => array( + '1.6:1' => '1.6:1', '2.7:1' => '2.7:1', '2.2:1' => '2.2:1', '3.2:1' => '3.2:1',