Version 1.0.30

This commit is contained in:
ultimatemember
2015-01-29 15:52:13 +02:00
parent 78833fa2e3
commit df37a3164f
17 changed files with 465 additions and 364 deletions
+5 -5
View File
@@ -2,7 +2,7 @@
- General metabox styling
*/
#um-admin-access-control h3 {
#um-admin-access-settings h3 {
padding: 10px 20px 10px 60px;
color: #fff;
background: #3ba1da url(../img/logo-small.png) no-repeat 12px center;
@@ -12,17 +12,17 @@
-moz-osx-font-smoothing: grayscale !important;
}
#um-admin-access-control h4 {margin:10px 0 4px 0!important}
#um-admin-access-settings h4 { margin: 10px 0 4px 0!important}
#um-admin-access-control div.handlediv {
#um-admin-access-settings div.handlediv {
color: #fff !important;
-webkit-font-smoothing: antialiased !important;
-moz-osx-font-smoothing: grayscale !important;
}
#um-admin-access-control p {font-size: 13px}
#um-admin-access-settings p {font-size: 13px}
#um-admin-access-control input[type=text] {font-size: 13px}
#um-admin-access-settings input[type=text] {font-size: 13px}
/*
- Nav Menu
-17
View File
@@ -39,23 +39,6 @@ class UM_Admin_Enqueue {
function admin_head(){
global $current_screen, $post;
$screen_id = $current_screen->id;
if ( strstr($screen_id, 'um_form') ) $highlighted_id = 3;
if ( strstr($screen_id, 'um_role') ) $highlighted_id = 4;
if ( strstr($screen_id, 'um_directory') ) $highlighted_id = 5;
if ( isset($highlighted_id) ) { ?>
<script type="text/javascript">
jQuery(document).ready( function() {
jQuery('#toplevel_page_ultimatemember').addClass('wp-current-submenu wp-has-current-submenu wp-menu-open current');
jQuery('#toplevel_page_ultimatemember a:first').addClass('wp-current-submenu wp-has-current-submenu current');
jQuery('#toplevel_page_ultimatemember').find('li:eq(<?php echo $highlighted_id; ?>)').addClass('current');
});
</script>
<?php
}
if ( $this->is_plugin_post_type() ){
+11 -37
View File
@@ -2,43 +2,8 @@
<div class="">
<?php
/*
<p>
<label class="um-admin-half"><?php _e('Use Infinite Scroll instead of pagination','ultimatemember'); ?></label>
<span class="um-admin-half">
<?php $this->ui_on_off('_um_infinitescroll', 0, true, 1, 'infinite-settings', 'pagination-settings'); ?>
</span>
</p><div class="um-admin-clear"></div>
<p class="infinite-settings um-admin-hide">
<label class="um-admin-half"><?php _e('Number of profiles to show on first load','ultimatemember'); ?> <?php $this->tooltip('Number of member profiles to appear on the first load only'); ?></label>
<span class="um-admin-half">
<input type="text" name="_um_profiles_on_load" id="_um_profiles_on_load" value="<?php echo $ultimatemember->query->get_meta_value('_um_max_users', null, 12 ); ?>" class="small" />
</span>
</p><div class="um-admin-clear"></div>
<p class="infinite-settings um-admin-hide">
<label class="um-admin-half"><?php _e('Number of profiles to show on load more','ultimatemember'); ?> <?php $this->tooltip('Number of member profiles to appear when user loads more profiles'); ?></label>
<span class="um-admin-half">
<input type="text" name="_um_profiles_load_more" id="_um_profiles_load_more" value="<?php echo $ultimatemember->query->get_meta_value('_um_max_users', null, 12 ); ?>" class="small" />
</span>
</p><div class="um-admin-clear"></div>
*/
?>
<p class="pagination-settings">
<label class="um-admin-half"><?php _e('Number of profiles per page','ultimatemember'); ?> <?php $this->tooltip('Number of member profiles to appear on every page'); ?></label>
<label class="um-admin-half"><?php _e('Number of profiles per page','ultimatemember'); ?> <?php $this->tooltip( __('Number of profiles to appear on page for standard users') ); ?></label>
<span class="um-admin-half">
<input type="text" name="_um_profiles_per_page" id="_um_profiles_per_page" value="<?php echo $ultimatemember->query->get_meta_value('_um_profiles_per_page', null, 12); ?>" class="small" />
@@ -47,7 +12,16 @@
</p><div class="um-admin-clear"></div>
<p>
<label class="um-admin-half"><?php _e('Maximum number of profiles','ultimatemember'); ?> <?php $this->tooltip('Use this setting to control the maximum number of profiles to appear in this directory. Leave blank to disable this limit'); ?></label>
<label class="um-admin-half"><?php _e('Number of profiles per page (for Mobiles & Tablets)','ultimatemember'); ?> <?php $this->tooltip( __('Number of profiles to appear on page for mobile users') ); ?></label>
<span class="um-admin-half">
<input type="text" name="_um_profiles_per_page_mobile" id="_um_profiles_per_page_mobile" value="<?php echo $ultimatemember->query->get_meta_value('_um_profiles_per_page_mobile', null, 8); ?>" class="small" />
</span>
</p><div class="um-admin-clear"></div>
<p>
<label class="um-admin-half"><?php _e('Maximum number of profiles','ultimatemember'); ?> <?php $this->tooltip( __('Use this setting to control the maximum number of profiles to appear in this directory. Leave blank to disable this limit','ultimatemember') ); ?></label>
<span class="um-admin-half">
<input type="text" name="_um_max_users" id="_um_max_users" value="<?php echo $ultimatemember->query->get_meta_value('_um_max_users', null, 'na' ); ?>" class="small" />
+12 -3
View File
@@ -73,16 +73,25 @@
</p><div class="um-admin-clear"></div>
<p class="search-options">
<label class="um-admin-half"><?php _e('Results Text','ultimatemember'); ?> <?php $this->tooltip('Customize the search result text . e.g. Found 3,000 Members. Leave this blank to not show result text'); ?></label>
<label class="um-admin-half"><?php _e('Results Text','ultimatemember'); ?> <?php $this->tooltip( __('Customize the search result text . e.g. Found 3,000 Members. Leave this blank to not show result text','ultimatemember') ); ?></label>
<span class="um-admin-half">
<input type="text" name="_um_directory_header" id="_um_directory_header" value="<?php echo $ultimatemember->query->get_meta_value('_um_directory_header', null, __('{total_users} Members','ultimatemember') ); ?>" />
<input type="text" name="_um_directory_header" id="_um_directory_header" value="<?php echo $ultimatemember->query->get_meta_value('_um_directory_header', null, __('{total_users} Members','ultimatemember') ); ?>" />
</span>
</p><div class="um-admin-clear"></div>
<p class="search-options">
<label class="um-admin-half"><?php _e('Custom text If no users were found','ultimatemember'); ?> <?php $this->tooltip('This is the text that is displayed if no users are found during a search'); ?></label>
<label class="um-admin-half"><?php _e('Single Result Text','ultimatemember'); ?> <?php $this->tooltip( __('Same as above but in case of 1 user found only','ultimatemember') ); ?></label>
<span class="um-admin-half">
<input type="text" name="_um_directory_header_single" id="_um_directory_header_single" value="<?php echo $ultimatemember->query->get_meta_value('_um_directory_header_single', null, __('{total_users} Member','ultimatemember') ); ?>" />
</span>
</p><div class="um-admin-clear"></div>
<p class="search-options">
<label class="um-admin-half"><?php _e('Custom text if no users were found','ultimatemember'); ?> <?php $this->tooltip('This is the text that is displayed if no users are found during a search'); ?></label>
<span class="um-admin-half">
<input type="text" name="_um_directory_no_users" id="_um_directory_no_users" value="<?php echo $ultimatemember->query->get_meta_value('_um_directory_no_users', null, __('We are sorry. We cannot find any users who match your search criteria.','ultimatemember') ); ?>" />
+2
View File
@@ -55,6 +55,8 @@ class UM_Admin_API {
if ( um_get_option('members_page' ) || !get_option('um_options') ){
add_submenu_page( $this->slug, __('Member Directories', $this->slug), __('Member Directories', $this->slug), 'manage_options', 'edit.php?post_type=um_directory', '', '' );
}
do_action('um_extend_admin_menu');
}