-
Icon tooltip( __( 'Select an icon to appear in the field. Leave blank if you do not want an icon to show in the field.', 'ultimate-member' ) ); ?>
+
tooltip( __( 'Select an icon to appear in the field. Leave blank if you do not want an icon to show in the field.', 'ultimate-member' ) ); ?>
- Choose Icon
+
- edit_mode_value ) { ?> No Icon
+ edit_mode_value ) { ?>
@@ -1470,7 +1429,7 @@ if ( ! class_exists( 'um\admin\core\Admin_Metabox' ) ) {
case '_css_class':
?>
-
CSS Class tooltip( __( 'Specify a custom CSS class to be applied to this element', 'ultimate-member' ) ); ?>
+
tooltip( __( 'Specify a custom CSS class to be applied to this element', 'ultimate-member' ) ); ?>
@@ -1480,7 +1439,7 @@ if ( ! class_exists( 'um\admin\core\Admin_Metabox' ) ) {
case '_width':
?>
-
Thickness (in pixels) tooltip( __( 'This is the width in pixels, e.g. 4 or 2, etc', 'ultimate-member' ) ); ?>
+
tooltip( __( 'This is the width in pixels, e.g. 4 or 2, etc', 'ultimate-member' ) ); ?>
@@ -1490,7 +1449,7 @@ if ( ! class_exists( 'um\admin\core\Admin_Metabox' ) ) {
case '_divider_text':
?>
-
Optional Text tooltip( __( 'Optional text to include with the divider', 'ultimate-member' ) ); ?>
+
tooltip( __( 'Optional text to include with the divider', 'ultimate-member' ) ); ?>
@@ -1500,7 +1459,7 @@ if ( ! class_exists( 'um\admin\core\Admin_Metabox' ) ) {
case '_padding':
?>
-
Padding tooltip( __( 'Set padding for this section', 'ultimate-member' ) ); ?>
+
tooltip( __( 'Set padding for this section', 'ultimate-member' ) ); ?>
@@ -1510,7 +1469,7 @@ if ( ! class_exists( 'um\admin\core\Admin_Metabox' ) ) {
case '_margin':
?>
-
Margin tooltip( __( 'Set margin for this section', 'ultimate-member' ) ); ?>
+
tooltip( __( 'Set margin for this section', 'ultimate-member' ) ); ?>
@@ -1520,7 +1479,7 @@ if ( ! class_exists( 'um\admin\core\Admin_Metabox' ) ) {
case '_border':
?>
-
Border tooltip( __( 'Set border for this section', 'ultimate-member' ) ); ?>
+
tooltip( __( 'Set border for this section', 'ultimate-member' ) ); ?>
@@ -1530,12 +1489,12 @@ if ( ! class_exists( 'um\admin\core\Admin_Metabox' ) ) {
case '_borderstyle':
?>
-
Style tooltip( __( 'Choose the border style', 'ultimate-member' ) ); ?>
+
tooltip( __( 'Choose the border style', 'ultimate-member' ) ); ?>
- edit_mode_value ); ?>>Solid
- edit_mode_value ); ?>>Dotted
- edit_mode_value ); ?>>Dashed
- edit_mode_value ); ?>>Double
+ edit_mode_value ); ?>>
+ edit_mode_value ); ?>>
+ edit_mode_value ); ?>>
+ edit_mode_value ); ?>>
@@ -1545,7 +1504,7 @@ if ( ! class_exists( 'um\admin\core\Admin_Metabox' ) ) {
case '_borderradius':
?>
-
Border Radius tooltip( __( 'Rounded corners can be applied by setting a pixels value here. e.g. 5px', 'ultimate-member' ) ); ?>
+
tooltip( __( 'Rounded corners can be applied by setting a pixels value here. e.g. 5px', 'ultimate-member' ) ); ?>
@@ -1555,7 +1514,7 @@ if ( ! class_exists( 'um\admin\core\Admin_Metabox' ) ) {
case '_bordercolor':
?>
-
Border Color tooltip( __( 'Give a color to this border', 'ultimate-member' ) ); ?>
+
tooltip( __( 'Give a color to this border', 'ultimate-member' ) ); ?>
@@ -1575,7 +1534,7 @@ if ( ! class_exists( 'um\admin\core\Admin_Metabox' ) ) {
case '_heading_text':
?>
-
Heading Text tooltip( __( 'Enter the row heading text here', 'ultimate-member' ) ); ?>
+
tooltip( __( 'Enter the row heading text here', 'ultimate-member' ) ); ?>
@@ -1585,7 +1544,7 @@ if ( ! class_exists( 'um\admin\core\Admin_Metabox' ) ) {
case '_background':
?>
-
Background Color tooltip( __( 'This will be the background of entire section', 'ultimate-member' ) ); ?>
+
tooltip( __( 'This will be the background of entire section', 'ultimate-member' ) ); ?>
@@ -1595,7 +1554,7 @@ if ( ! class_exists( 'um\admin\core\Admin_Metabox' ) ) {
case '_heading_background_color':
?>
-
Heading Background Color tooltip( __( 'This will be the background of the heading section', 'ultimate-member' ) ); ?>
+
tooltip( __( 'This will be the background of the heading section', 'ultimate-member' ) ); ?>
@@ -1605,7 +1564,7 @@ if ( ! class_exists( 'um\admin\core\Admin_Metabox' ) ) {
case '_heading_text_color':
?>
-
Heading Text Color tooltip( __( 'This will be the text color of heading part only', 'ultimate-member' ) ); ?>
+
tooltip( __( 'This will be the text color of heading part only', 'ultimate-member' ) ); ?>
@@ -1615,7 +1574,7 @@ if ( ! class_exists( 'um\admin\core\Admin_Metabox' ) ) {
case '_text_color':
?>
-
Text Color tooltip( __( 'This will be the text color of entire section', 'ultimate-member' ) ); ?>
+
tooltip( __( 'This will be the text color of entire section', 'ultimate-member' ) ); ?>
@@ -1625,7 +1584,7 @@ if ( ! class_exists( 'um\admin\core\Admin_Metabox' ) ) {
case '_icon_color':
?>
-
Icon Color tooltip( __( 'This will be the color of selected icon. By default It will be the same color as heading text color', 'ultimate-member' ) ); ?>
+
tooltip( __( 'This will be the color of selected icon. By default It will be the same color as heading text color', 'ultimate-member' ) ); ?>
@@ -1635,7 +1594,7 @@ if ( ! class_exists( 'um\admin\core\Admin_Metabox' ) ) {
case '_color':
?>
-
Color tooltip( __( 'Select a color for this divider', 'ultimate-member' ) ); ?>
+
tooltip( __( 'Select a color for this divider', 'ultimate-member' ) ); ?>
@@ -1645,7 +1604,7 @@ if ( ! class_exists( 'um\admin\core\Admin_Metabox' ) ) {
case '_url_text':
?>
-
URL Alt Text tooltip( __( 'Entering custom text here will replace the url with a text link', 'ultimate-member' ) ); ?>
+
tooltip( __( 'Entering custom text here will replace the url with a text link', 'ultimate-member' ) ); ?>
@@ -1655,10 +1614,10 @@ if ( ! class_exists( 'um\admin\core\Admin_Metabox' ) ) {
case '_url_target':
?>
-
Link Target tooltip( __( 'Choose whether to open this link in same window or in a new window', 'ultimate-member' ) ); ?>
+
tooltip( __( 'Choose whether to open this link in same window or in a new window', 'ultimate-member' ) ); ?>
- edit_mode_value ); ?>>Open in new window
- edit_mode_value ); ?>>Same window
+ edit_mode_value ); ?>>
+ edit_mode_value ); ?>>
@@ -1668,10 +1627,10 @@ if ( ! class_exists( 'um\admin\core\Admin_Metabox' ) ) {
case '_url_rel':
?>
-
SEO Follow tooltip( __( 'Whether to follow or nofollow this link by search engines', 'ultimate-member' ) ); ?>
+
tooltip( __( 'Whether to follow or nofollow this link by search engines', 'ultimate-member' ) ); ?>
- edit_mode_value ); ?>>Follow
- edit_mode_value ); ?>>No-Follow
+ edit_mode_value ); ?>>
+ edit_mode_value ); ?>>
@@ -1681,7 +1640,7 @@ if ( ! class_exists( 'um\admin\core\Admin_Metabox' ) ) {
case '_force_good_pass':
?>
-
Force strong password? tooltip( __( 'Turn on to force users to create a strong password (A combination of one lowercase letter, one uppercase letter, and one number). If turned on this option is only applied to register forms and not to login forms.', 'ultimate-member' ) ); ?>
+
tooltip( __( 'Turn on to force users to create a strong password (A combination of one lowercase letter, one uppercase letter, and one number). If turned on this option is only applied to register forms and not to login forms.', 'ultimate-member' ) ); ?>
edit_mode_value ) ? $this->edit_mode_value : 0 ) ?> />
@@ -1691,7 +1650,7 @@ if ( ! class_exists( 'um\admin\core\Admin_Metabox' ) ) {
case '_force_confirm_pass':
?>
-
Automatically add a confirm password field? tooltip( __( 'Turn on to add a confirm password field. If turned on the confirm password field will only show on register forms and not on login forms.', 'ultimate-member' ) ); ?>
+
tooltip( __( 'Turn on to add a confirm password field. If turned on the confirm password field will only show on register forms and not on login forms.', 'ultimate-member' ) ); ?>
edit_mode_value ) ? $this->edit_mode_value : 0 ) ?> />
@@ -1701,12 +1660,12 @@ if ( ! class_exists( 'um\admin\core\Admin_Metabox' ) ) {
case '_style':
?>
-
Style tooltip( __( 'This is the line-style of divider', 'ultimate-member' ) ); ?>
+
tooltip( __( 'This is the line-style of divider', 'ultimate-member' ) ); ?>
- edit_mode_value ); ?>>Solid
- edit_mode_value ); ?>>Dotted
- edit_mode_value ); ?>>Dashed
- edit_mode_value ); ?>>Double
+ edit_mode_value ); ?>>
+ edit_mode_value ); ?>>
+ edit_mode_value ); ?>>
+ edit_mode_value ); ?>>
@@ -1717,8 +1676,8 @@ if ( ! class_exists( 'um\admin\core\Admin_Metabox' ) ) {
?>
-
Time Intervals (in minutes) tooltip( __( 'Choose the minutes interval between each time in the time picker.', 'ultimate-member' ) ); ?>
-
+
tooltip( __( 'Choose the minutes interval between each time in the time picker.', 'ultimate-member' ) ); ?>
+
set_field_type == 'date' ) {
?>
-
Date User-Friendly Format tooltip( __( 'The display format of the date which is visible to user.', 'ultimate-member' ) ); ?>
+
tooltip( __( 'The display format of the date which is visible to user.', 'ultimate-member' ) ); ?>
edit_mode_value ); ?>>datetime()->get_time('j M Y'); ?>
edit_mode_value ); ?>>datetime()->get_time('M j Y'); ?>
@@ -1741,11 +1700,11 @@ if ( ! class_exists( 'um\admin\core\Admin_Metabox' ) ) {
- Time Format tooltip( __( 'Choose the displayed time-format for this field', 'ultimate-member' ) ); ?>
+
tooltip( __( 'Choose the displayed time-format for this field', 'ultimate-member' ) ); ?>
- edit_mode_value ); ?>>datetime()->get_time('g:i a'); ?> ( 12-hr format )
- edit_mode_value ); ?>>datetime()->get_time('g:i A'); ?> ( 12-hr format )
- edit_mode_value ); ?>>datetime()->get_time('H:i'); ?> ( 24-hr format )
+ edit_mode_value ); ?>>datetime()->get_time('g:i a'); ?>
+ edit_mode_value ); ?>>datetime()->get_time('g:i A'); ?>
+ edit_mode_value ); ?>>datetime()->get_time('H:i'); ?>
@@ -1756,10 +1715,10 @@ if ( ! class_exists( 'um\admin\core\Admin_Metabox' ) ) {
case '_pretty_format':
?>
- Displayed Date Format tooltip( __( 'Whether you wish to show the date in full or only show the years e.g. 25 Years', 'ultimate-member' ) ); ?>
+
tooltip( __( 'Whether you wish to show the date in full or only show the years e.g. 25 Years', 'ultimate-member' ) ); ?>
- edit_mode_value ); ?>>Show full date
- edit_mode_value ); ?>>Show years only
+ edit_mode_value ); ?>>
+ edit_mode_value ); ?>>
@@ -1775,15 +1734,15 @@ if ( ! class_exists( 'um\admin\core\Admin_Metabox' ) ) {
}
?>
- Disable specific weekdays tooltip( __( 'Disable specific week days from being available for selection in this date picker', 'ultimate-member' ) ); ?>
+
tooltip( __( 'Disable specific week days from being available for selection in this date picker', 'ultimate-member' ) ); ?>
- >Sunday
- >Monday
- >Tuesday
- >Wednesday
- >Thursday
- >Friday
- >Saturday
+ >
+ >
+ >
+ >
+ >
+ >
+ >
@@ -1793,7 +1752,7 @@ if ( ! class_exists( 'um\admin\core\Admin_Metabox' ) ) {
case '_years':
?>
- Number of Years to pick from tooltip( __( 'Number of years available for the date selection. Default to last 50 years', 'ultimate-member' ) ); ?>
+
tooltip( __( 'Number of years available for the date selection. Default to last 50 years', 'ultimate-member' ) ); ?>
@@ -1803,11 +1762,11 @@ if ( ! class_exists( 'um\admin\core\Admin_Metabox' ) ) {
case '_years_x':
?>
- Years Selection tooltip( __( 'This decides which years should be shown relative to today date', 'ultimate-member' ) ); ?>
+
tooltip( __( 'This decides which years should be shown relative to today date', 'ultimate-member' ) ); ?>
- edit_mode_value ); ?>>Equal years before / after today
- edit_mode_value ); ?>>Past years only
- edit_mode_value ); ?>>Future years only
+ edit_mode_value ); ?>>
+ edit_mode_value ); ?>>
+ edit_mode_value ); ?>>
@@ -1817,8 +1776,8 @@ if ( ! class_exists( 'um\admin\core\Admin_Metabox' ) ) {
case '_range_start':
?>
- Date Range Start tooltip( __( 'Set the minimum date/day in range in the format YYYY/MM/DD', 'ultimate-member' ) ); ?>
-
+
tooltip( __( 'Set the minimum date/day in range in the format YYYY/MM/DD', 'ultimate-member' ) ); ?>
+
- Date Range End tooltip( __( 'Set the maximum date/day in range in the format YYYY/MM/DD', 'ultimate-member' ) ); ?>
-
+
tooltip( __( 'Set the maximum date/day in range in the format YYYY/MM/DD', 'ultimate-member' ) ); ?>
+
- Set Date Range tooltip( __( 'Whether to show a specific number of years or specify a date range to be available for the date picker.', 'ultimate-member' ) ); ?>
+
tooltip( __( 'Whether to show a specific number of years or specify a date range to be available for the date picker.', 'ultimate-member' ) ); ?>
- edit_mode_value ); ?>>Fixed Number of Years
- edit_mode_value ); ?>>Specific Date Range
+ edit_mode_value ); ?>>
+ edit_mode_value ); ?>>
@@ -1853,8 +1812,8 @@ if ( ! class_exists( 'um\admin\core\Admin_Metabox' ) ) {
?>
- Enter Shortcode tooltip( __( 'Enter the shortcode in the following textarea and it will be displayed on the fields', 'ultimate-member' ) ); ?>
-
+
tooltip( __( 'Enter the shortcode in the following textarea and it will be displayed on the fields', 'ultimate-member' ) ); ?>
+
- Content Editor tooltip( __( 'Edit the content of this field here', 'ultimate-member' ) ); ?>
+ tooltip( __( 'Edit the content of this field here', 'ultimate-member' ) ); ?>
@@ -1876,11 +1835,11 @@ if ( ! class_exists( 'um\admin\core\Admin_Metabox' ) ) {
case '_crop':
?>
- Crop Feature tooltip( __( 'Enable/disable crop feature for this image upload and define ratio', 'ultimate-member' ) ); ?>
+
tooltip( __( 'Enable/disable crop feature for this image upload and define ratio', 'ultimate-member' ) ); ?>
- edit_mode_value ); ?>>Turn Off (Default)
- edit_mode_value ); ?>>Crop and force 1:1 ratio
- edit_mode_value ); ?>>Crop and force user-defined ratio
+ edit_mode_value ); ?>>
+ edit_mode_value ); ?>>
+ edit_mode_value ); ?>>
@@ -1894,11 +1853,10 @@ if ( ! class_exists( 'um\admin\core\Admin_Metabox' ) ) {
if ( isset( $this->edit_mode_value ) && is_array( $this->edit_mode_value ) ) {
$values = $this->edit_mode_value;
} else {
- $values = array('png','jpeg','jpg','gif');
- }
- ?>
+ $values = array( 'png','jpeg','jpg','gif' );
+ } ?>
- Allowed Image Types tooltip( __( 'Select the image types that you want to allow to be uploaded via this field.', 'ultimate-member' ) ); ?>
+
tooltip( __( 'Select the image types that you want to allow to be uploaded via this field.', 'ultimate-member' ) ); ?>
files()->allowed_image_types() as $e => $n ) { ?>
>
@@ -1913,12 +1871,10 @@ if ( ! class_exists( 'um\admin\core\Admin_Metabox' ) ) {
if ( isset( $this->edit_mode_value ) && is_array( $this->edit_mode_value ) ) {
$values = $this->edit_mode_value;
} else {
- $values = array('pdf','txt');
- }
+ $values = array( 'pdf', 'txt' );
+ } ?>
- ?>
-
- Allowed File Types tooltip( __( 'Select the image types that you want to allow to be uploaded via this field.', 'ultimate-member' ) ); ?>
+
tooltip( __( 'Select the image types that you want to allow to be uploaded via this field.', 'ultimate-member' ) ); ?>
files()->allowed_file_types() as $e => $n ) { ?>
>
@@ -1934,12 +1890,16 @@ if ( ! class_exists( 'um\admin\core\Admin_Metabox' ) ) {
case '_upload_text':
- if ( $this->set_field_type == 'image' ) $value = 'Drag & Drop Photo';
- if ( $this->set_field_type == 'file' ) $value = 'Drag & Drop File';
+ if ( $this->set_field_type == 'image' ) {
+ $value = __( 'Drag & Drop Photo', 'ultimate-member' );
+ }
+ if ( $this->set_field_type == 'file' ) {
+ $value = __( 'Drag & Drop File', 'ultimate-member' );
+ }
?>
- Upload Box Text tooltip( __( 'This is the headline that appears in the upload box for this field', 'ultimate-member' ) ); ?>
+
tooltip( __( 'This is the headline that appears in the upload box for this field', 'ultimate-member' ) ); ?>
@@ -1949,7 +1909,7 @@ if ( ! class_exists( 'um\admin\core\Admin_Metabox' ) ) {
case '_upload_help_text':
?>
- Additional Instructions Text tooltip( __( 'If you need to add information or secondary line below the headline of upload box, enter it here', 'ultimate-member' ) ); ?>
+
tooltip( __( 'If you need to add information or secondary line below the headline of upload box, enter it here', 'ultimate-member' ) ); ?>
@@ -1959,8 +1919,8 @@ if ( ! class_exists( 'um\admin\core\Admin_Metabox' ) ) {
case '_button_text':
?>
- Upload Box Text tooltip( __( 'The text that appears on the button. e.g. Upload', 'ultimate-member' ) ); ?>
-
+
tooltip( __( 'The text that appears on the button. e.g. Upload', 'ultimate-member' ) ); ?>
+
- Maximum Size in bytes tooltip( __( 'The maximum size for image that can be uploaded through this field. Leave empty for unlimited size.', 'ultimate-member' ) ); ?>
+
tooltip( __( 'The maximum size for image that can be uploaded through this field. Leave empty for unlimited size.', 'ultimate-member' ) ); ?>
@@ -1979,7 +1939,7 @@ if ( ! class_exists( 'um\admin\core\Admin_Metabox' ) ) {
case '_height':
?>
- Textarea Height tooltip( __( 'The height of textarea in pixels. Default is 100 pixels', 'ultimate-member' ) ); ?>
+
tooltip( __( 'The height of textarea in pixels. Default is 100 pixels', 'ultimate-member' ) ); ?>
@@ -1989,7 +1949,7 @@ if ( ! class_exists( 'um\admin\core\Admin_Metabox' ) ) {
case '_spacing':
?>
- Spacing tooltip( __( 'This is the required spacing in pixels. e.g. 20px', 'ultimate-member' ) ); ?>
+
tooltip( __( 'This is the required spacing in pixels. e.g. 20px', 'ultimate-member' ) ); ?>
@@ -1999,7 +1959,7 @@ if ( ! class_exists( 'um\admin\core\Admin_Metabox' ) ) {
case '_is_multi':
?>
- Allow multiple selections tooltip( __( 'Enable/disable multiple selections for this field', 'ultimate-member' ) ); ?>
+
tooltip( __( 'Enable/disable multiple selections for this field', 'ultimate-member' ) ); ?>
edit_mode_value ) ? $this->edit_mode_value : 0 ) ?> class="um-adm-conditional" data-cond1="1" data-cond1-show="_max_selections" data-cond1-hide="xxx" />
@@ -2009,7 +1969,7 @@ if ( ! class_exists( 'um\admin\core\Admin_Metabox' ) ) {
case '_max_selections':
?>
- Maximum number of selections tooltip( __( 'Enter a number here to force a maximum number of selections by user for this field', 'ultimate-member' ) ); ?>
+
tooltip( __( 'Enter a number here to force a maximum number of selections by user for this field', 'ultimate-member' ) ); ?>
@@ -2019,7 +1979,7 @@ if ( ! class_exists( 'um\admin\core\Admin_Metabox' ) ) {
case '_min_selections':
?>
- Minimum number of selections tooltip( __( 'Enter a number here to force a minimum number of selections by user for this field', 'ultimate-member' ) ); ?>
+
tooltip( __( 'Enter a number here to force a minimum number of selections by user for this field', 'ultimate-member' ) ); ?>
@@ -2029,7 +1989,7 @@ if ( ! class_exists( 'um\admin\core\Admin_Metabox' ) ) {
case '_max_entries':
?>
- Maximum number of entries tooltip( __( 'This is the max number of entries the user can add via field group.', 'ultimate-member' ) ); ?>
+
tooltip( __( 'This is the max number of entries the user can add via field group.', 'ultimate-member' ) ); ?>
@@ -2039,7 +1999,7 @@ if ( ! class_exists( 'um\admin\core\Admin_Metabox' ) ) {
case '_max_words':
?>
- Maximum allowed words tooltip( __( 'If you want to enable a maximum number of words to be input in this textarea. Leave empty to disable this setting', 'ultimate-member' ) ); ?>
+
tooltip( __( 'If you want to enable a maximum number of words to be input in this textarea. Leave empty to disable this setting', 'ultimate-member' ) ); ?>
@@ -2049,7 +2009,7 @@ if ( ! class_exists( 'um\admin\core\Admin_Metabox' ) ) {
case '_min':
?>
- Minimum Number tooltip( __( 'Minimum number that can be entered in this field', 'ultimate-member' ) ); ?>
+
tooltip( __( 'Minimum number that can be entered in this field', 'ultimate-member' ) ); ?>
@@ -2059,7 +2019,7 @@ if ( ! class_exists( 'um\admin\core\Admin_Metabox' ) ) {
case '_max':
?>
- Maximum Number tooltip( __( 'Maximum number that can be entered in this field', 'ultimate-member' ) ); ?>
+
tooltip( __( 'Maximum number that can be entered in this field', 'ultimate-member' ) ); ?>
@@ -2069,7 +2029,7 @@ if ( ! class_exists( 'um\admin\core\Admin_Metabox' ) ) {
case '_min_chars':
?>
- Minimum length tooltip( __( 'If you want to enable a minimum number of characters to be input in this field. Leave empty to disable this setting', 'ultimate-member' ) ); ?>
+
tooltip( __( 'If you want to enable a minimum number of characters to be input in this field. Leave empty to disable this setting', 'ultimate-member' ) ); ?>
@@ -2079,7 +2039,7 @@ if ( ! class_exists( 'um\admin\core\Admin_Metabox' ) ) {
case '_max_chars':
?>
- Maximum length tooltip( __( 'If you want to enable a maximum number of characters to be input in this field. Leave empty to disable this setting', 'ultimate-member' ) ); ?>
+
tooltip( __( 'If you want to enable a maximum number of characters to be input in this field. Leave empty to disable this setting', 'ultimate-member' ) ); ?>
@@ -2089,7 +2049,7 @@ if ( ! class_exists( 'um\admin\core\Admin_Metabox' ) ) {
case '_html':
?>
- Does this textarea accept HTML? tooltip( __( 'Turn on/off HTML tags for this textarea', 'ultimate-member' ) ); ?>
+
tooltip( __( 'Turn on/off HTML tags for this textarea', 'ultimate-member' ) ); ?>
edit_mode_value ) ? $this->edit_mode_value : 0 ) ?> />
@@ -2104,11 +2064,9 @@ if ( ! class_exists( 'um\admin\core\Admin_Metabox' ) ) {
$values = $this->edit_mode_value;
} else {
$values = '';
- }
+ } ?>
- ?>
-
- Edit Choices tooltip( __( 'Enter one choice per line. This will represent the available choices or selections available for user.', 'ultimate-member' ) ); ?>
+
tooltip( __( 'Enter one choice per line. This will represent the available choices or selections available for user.', 'ultimate-member' ) ); ?>
@@ -2118,8 +2076,8 @@ if ( ! class_exists( 'um\admin\core\Admin_Metabox' ) ) {
case '_title':
?>
- Title tooltip( __( 'This is the title of the field for your reference in the backend. The title will not appear on the front-end of your website.', 'ultimate-member' ) ); ?>
-
+
tooltip( __( 'This is the title of the field for your reference in the backend. The title will not appear on the front-end of your website.', 'ultimate-member' ) ); ?>
+
- Unique ID
+
@@ -2143,13 +2101,13 @@ if ( ! class_exists( 'um\admin\core\Admin_Metabox' ) ) {
?>
- Meta Key tooltip( __( 'The meta key cannot be changed for duplicated fields or when editing an existing field. If you require a different meta key please create a new field.', 'ultimate-member' ) ); ?>
+
tooltip( __( 'The meta key cannot be changed for duplicated fields or when editing an existing field. If you require a different meta key please create a new field.', 'ultimate-member' ) ); ?>
- Meta Key tooltip( __( 'A meta key is required to store the entered info in this field in the database. The meta key should be unique to this field and be written in lowercase with an underscore ( _ ) separating words e.g country_list or job_title', 'ultimate-member' ) ); ?>
+
tooltip( __( 'A meta key is required to store the entered info in this field in the database. The meta key should be unique to this field and be written in lowercase with an underscore ( _ ) separating words e.g country_list or job_title', 'ultimate-member' ) ); ?>
@@ -2162,7 +2120,7 @@ if ( ! class_exists( 'um\admin\core\Admin_Metabox' ) ) {
case '_help':
?>
- Help Text tooltip( __('This is the text that appears in a tooltip when a user hovers over the info icon. Help text is useful for providing users with more information about what they should enter in the field. Leave blank if no help text is needed for field.', 'ultimate-member' ) ); ?>
+
tooltip( __('This is the text that appears in a tooltip when a user hovers over the info icon. Help text is useful for providing users with more information about what they should enter in the field. Leave blank if no help text is needed for field.', 'ultimate-member' ) ); ?>
@@ -2210,8 +2168,8 @@ if ( ! class_exists( 'um\admin\core\Admin_Metabox' ) ) {
case '_label':
?>
- Label tooltip( __( 'The field label is the text that appears above the field on your front-end form. Leave blank to not show a label above field.', 'ultimate-member' ) ); ?>
-
+
tooltip( __( 'The field label is the text that appears above the field on your front-end form. Leave blank to not show a label above field.', 'ultimate-member' ) ); ?>
+
- Placeholder tooltip( __( 'This is the text that appears within the field e.g please enter your email address. Leave blank to not show any placeholder text.', 'ultimate-member' ) ); ?>
-
+
tooltip( __( 'This is the text that appears within the field e.g please enter your email address. Leave blank to not show any placeholder text.', 'ultimate-member' ) ); ?>
+
- Privacy tooltip( __( 'Field privacy allows you to select who can view this field on the front-end. The site admin can view all fields regardless of the option set here.', 'ultimate-member' ) ); ?>
+
tooltip( __( 'Field privacy allows you to select who can view this field on the front-end. The site admin can view all fields regardless of the option set here.', 'ultimate-member' ) ); ?>
- edit_mode_value ); ?>>Everyone
- edit_mode_value ); ?>>Members
- edit_mode_value ); ?>>Only visible to profile owner and admins
- edit_mode_value ); ?>>Only visible to profile owner and specific roles
- edit_mode_value ); ?>>Only specific member roles
+ edit_mode_value ); ?>>
+ edit_mode_value ); ?>>
+ edit_mode_value ); ?>>
+ edit_mode_value ); ?>>
+ edit_mode_value ); ?>>
@@ -2253,10 +2211,10 @@ if ( ! class_exists( 'um\admin\core\Admin_Metabox' ) ) {
?>
- Select member roles tooltip( __( 'Select the member roles that can view this field on the front-end.', 'ultimate-member' ) ); ?>
+
tooltip( __( 'Select the member roles that can view this field on the front-end.', 'ultimate-member' ) ); ?>
- roles()->get_roles() as $key => $value) { ?>
+ roles()->get_roles() as $key => $value) { ?>
>
@@ -2279,7 +2237,7 @@ if ( ! class_exists( 'um\admin\core\Admin_Metabox' ) ) {
-
Is this field required? tooltip( __( 'This option allows you to set whether the field must be filled in before the form can be processed.', 'ultimate-member' ) ); ?>
+
tooltip( __( 'This option allows you to set whether the field must be filled in before the form can be processed.', 'ultimate-member' ) ); ?>
edit_mode_value ) ? $this->edit_mode_value : $def_required ) ?> />
@@ -2293,7 +2251,7 @@ if ( ! class_exists( 'um\admin\core\Admin_Metabox' ) ) {
-
Can user edit this field? tooltip( __( 'This option allows you to set whether or not the user can edit the information in this field.', 'ultimate-member' ) ); ?>
+
tooltip( __( 'This option allows you to set whether or not the user can edit the information in this field.', 'ultimate-member' ) ); ?>
edit_mode_value || $this->edit_mode_value ) ?> />
@@ -2306,10 +2264,10 @@ if ( ! class_exists( 'um\admin\core\Admin_Metabox' ) ) {
case '_number':
?>
-
Rating System tooltip( __( 'Choose whether you want a 5-stars or 10-stars ratings based here.', 'ultimate-member' ) ); ?>
+
tooltip( __( 'Choose whether you want a 5-stars or 10-stars ratings based here.', 'ultimate-member' ) ); ?>
- edit_mode_value ); ?>>5 stars rating system
- edit_mode_value ); ?>>10 stars rating system
+ edit_mode_value ); ?>>
+ edit_mode_value ); ?>>
@@ -2319,7 +2277,7 @@ if ( ! class_exists( 'um\admin\core\Admin_Metabox' ) ) {
case '_custom_dropdown_options_source':
?>
-
Choices Callbacktooltip( __( 'Add a callback source to retrieve choices.', 'ultimate-member' ) ); ?>
+
tooltip( __( 'Add a callback source to retrieve choices.', 'ultimate-member' ) ); ?>
diff --git a/includes/admin/core/class-admin-notices.php b/includes/admin/core/class-admin-notices.php
index 0302d30e..c41115be 100644
--- a/includes/admin/core/class-admin-notices.php
+++ b/includes/admin/core/class-admin-notices.php
@@ -1,9 +1,10 @@
old_extensions_notice();
$this->install_core_page_notice();
@@ -195,7 +199,7 @@ if ( ! class_exists( 'um\admin\core\Admin_Notices' ) ) {
ob_start(); ?>
-
+
@@ -301,7 +305,7 @@ if ( ! class_exists( 'um\admin\core\Admin_Notices' ) ) {
-
+
@@ -384,7 +388,7 @@ if ( ! class_exists( 'um\admin\core\Admin_Notices' ) ) {
}
}
- $ignore = admin_url('users.php');
+ $ignore = admin_url( 'users.php' );
$messages[0]['err_content'] = sprintf( __( 'Are you sure you want to delete the selected user(s)? The following users will be deleted:
%s
This cannot be undone! ','ultimate-member'), $users);
$messages[0]['err_content'] .= '
' . __( 'Remove', 'ultimate-member' ) . ' ' . __('Undo','ultimate-member') . '
';
diff --git a/includes/admin/core/class-admin-settings.php b/includes/admin/core/class-admin-settings.php
index 46c3e20f..60e4c217 100644
--- a/includes/admin/core/class-admin-settings.php
+++ b/includes/admin/core/class-admin-settings.php
@@ -2,7 +2,6 @@
namespace um\admin\core;
-// Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) exit;
@@ -87,10 +86,10 @@ if ( ! class_exists( 'um\admin\core\Admin_Settings' ) ) {
function init_variables() {
$general_pages_fields = array(
array(
- 'id' => 'pages_settings',
- 'type' => 'hidden',
- 'default' => true,
- 'is_option' => false
+ 'id' => 'pages_settings',
+ 'type' => 'hidden',
+ 'default' => true,
+ 'is_option' => false
)
);
@@ -104,21 +103,21 @@ if ( ! class_exists( 'um\admin\core\Admin_Settings' ) ) {
if ( 'reached_maximum_limit' == $have_pages ) {
$general_pages_fields[] = array(
- 'id' => $page_id,
- 'type' => 'text',
- 'label' => sprintf( __( '%s page', 'ultimate-member' ), $page_title ),
- 'placeholder' => __('Add page ID','ultimate-member'),
- 'compiler' => true,
+ 'id' => $page_id,
+ 'type' => 'text',
+ 'label' => sprintf( __( '%s page', 'ultimate-member' ), $page_title ),
+ 'placeholder' => __( 'Add page ID', 'ultimate-member' ),
+ 'compiler' => true,
'size' => 'small'
);
} else {
$general_pages_fields[] = array(
- 'id' => $page_id,
- 'type' => 'select',
- 'label' => sprintf( __( '%s page', 'ultimate-member' ), $page_title ),
- 'options' => UM()->query()->wp_pages(),
- 'placeholder' => __('Choose a page...','ultimate-member'),
- 'compiler' => true,
+ 'id' => $page_id,
+ 'type' => 'select',
+ 'label' => sprintf( __( '%s page', 'ultimate-member' ), $page_title ),
+ 'options' => UM()->query()->wp_pages(),
+ 'placeholder' => __( 'Choose a page...', 'ultimate-member' ),
+ 'compiler' => true,
'size' => 'small'
);
}
@@ -129,7 +128,7 @@ if ( ! class_exists( 'um\admin\core\Admin_Settings' ) ) {
array(
'id' => 'profile_menu',
'type' => 'checkbox',
- 'label' => __('Enable profile menu','ultimate-member'),
+ 'label' => __( 'Enable profile menu', 'ultimate-member' ),
)
);
@@ -181,10 +180,10 @@ if ( ! class_exists( 'um\admin\core\Admin_Settings' ) ) {
'id' => 'profile_tab_' . $id . '_roles',
'type' => 'select',
'multi' => true,
- 'label' => __( 'Allowed roles','ultimate-member' ),
- 'tooltip' => __( 'Select the the user roles allowed to view this tab.','ultimate-member' ),
+ 'label' => __( 'Allowed roles', 'ultimate-member' ),
+ 'tooltip' => __( 'Select the the user roles allowed to view this tab.', 'ultimate-member' ),
'options' => UM()->roles()->get_roles(),
- 'placeholder' => __( 'Choose user roles...','ultimate-member' ),
+ 'placeholder' => __( 'Choose user roles...', 'ultimate-member' ),
'conditional' => array( 'profile_tab_' . $id . '_privacy', '=', 4 ),
'size' => 'small'
)
@@ -259,57 +258,58 @@ if ( ! class_exists( 'um\admin\core\Admin_Settings' ) ) {
$access_fields = array(
array(
- 'id' => 'accessible',
- 'type' => 'select',
- 'label' => __( 'Global Site Access','ultimate-member' ),
- 'tooltip' => __('Globally control the access of your site, you can have seperate restrict options per post/page by editing the desired item.','ultimate-member'),
- 'options' => array(
- 0 => 'Site accessible to Everyone',
- 2 => 'Site accessible to Logged In Users'
+ 'id' => 'accessible',
+ 'type' => 'select',
+ 'label' => __( 'Global Site Access', 'ultimate-member' ),
+ 'tooltip' => __( 'Globally control the access of your site, you can have seperate restrict options per post/page by editing the desired item.', 'ultimate-member' ),
+ 'options' => array(
+ 0 => __( 'Site accessible to Everyone', 'ultimate-member' ),
+ 2 => __( 'Site accessible to Logged In Users', 'ultimate-member' ),
),
- 'size' => 'medium'
+ 'size' => 'medium',
),
array(
- 'id' => 'access_redirect',
- 'type' => 'text',
- 'label' => __( 'Custom Redirect URL','ultimate-member' ),
- 'tooltip' => __('A logged out user will be redirected to this url If he is not permitted to access the site','ultimate-member'),
- 'conditional' => array( 'accessible', '=', 2 ),
+ 'id' => 'access_redirect',
+ 'type' => 'text',
+ 'label' => __( 'Custom Redirect URL', 'ultimate-member' ),
+ 'tooltip' => __( 'A logged out user will be redirected to this url If he is not permitted to access the site', 'ultimate-member' ),
+ 'conditional' => array( 'accessible', '=', 2 ),
),
array(
- 'id' => 'access_exclude_uris',
- 'type' => 'multi_text',
- 'label' => __( 'Exclude the following URLs','ultimate-member' ),
- 'tooltip' => __( 'Here you can exclude URLs beside the redirect URI to be accessible to everyone','ultimate-member' ),
- 'add_text' => __('Add New URL','ultimate-member'),
- 'conditional' => array( 'accessible', '=', 2 ),
- 'show_default_number' => 1,
+ 'id' => 'access_exclude_uris',
+ 'type' => 'multi_text',
+ 'label' => __( 'Exclude the following URLs', 'ultimate-member' ),
+ 'tooltip' => __( 'Here you can exclude URLs beside the redirect URI to be accessible to everyone', 'ultimate-member' ),
+ 'add_text' => __( 'Add New URL', 'ultimate-member' ),
+ 'conditional' => array( 'accessible', '=', 2 ),
+ 'show_default_number' => 1,
),
array(
- 'id' => 'home_page_accessible',
- 'type' => 'checkbox',
- 'label' => __( 'Allow Homepage to be accessible','ultimate-member' ),
- 'conditional' => array( 'accessible', '=', 2 ),
+ 'id' => 'home_page_accessible',
+ 'type' => 'checkbox',
+ 'label' => __( 'Allow Homepage to be accessible', 'ultimate-member' ),
+ 'conditional' => array( 'accessible', '=', 2 ),
),
array(
- 'id' => 'category_page_accessible',
- 'type' => 'checkbox',
- 'label' => __( 'Allow Category pages to be accessible','ultimate-member' ),
- 'conditional' => array( 'accessible', '=', 2 ),
+ 'id' => 'category_page_accessible',
+ 'type' => 'checkbox',
+ 'label' => __( 'Allow Category pages to be accessible', 'ultimate-member' ),
+ 'conditional' => array( 'accessible', '=', 2 ),
),
array(
'id' => 'restricted_access_message',
'type' => 'wp_editor',
- 'label' => __( 'Restricted Access Message','ultimate-member' ),
- 'tooltip' => __( 'This is the message shown to users that do not have permission to view the content','ultimate-member' ),
+ 'label' => __( 'Restricted Access Message', 'ultimate-member' ),
+ 'tooltip' => __( 'This is the message shown to users that do not have permission to view the content', 'ultimate-member' ),
)
);
+
global $wp_version;
if ( version_compare( $wp_version, '5.0', '>=' ) ) {
$access_fields = array_merge( $access_fields, array( array(
- 'id' => 'restricted_blocks',
- 'type' => 'checkbox',
- 'label' => __( 'Allow Gutenberg Blocks restriction options', 'ultimate-member' ),
+ 'id' => 'restricted_blocks',
+ 'type' => 'checkbox',
+ 'label' => __( 'Allow Gutenberg Blocks restriction options', 'ultimate-member' ),
),
array(
'id' => 'restricted_block_message',
@@ -319,35 +319,36 @@ if ( ! class_exists( 'um\admin\core\Admin_Settings' ) ) {
'conditional' => array( 'restricted_blocks', '=', 1 ),
) ) );
}
- $access_fields = array_merge( $access_fields, array( array(
- 'id' => 'restricted_access_post_metabox',
- 'type' => 'hidden',
- 'value' => '',
- ),
+ $access_fields = array_merge( $access_fields, array(
array(
- 'id' => 'restricted_access_taxonomy_metabox',
- 'type' => 'hidden',
- 'value' => '',
+ 'id' => 'restricted_access_post_metabox',
+ 'type' => 'hidden',
+ 'value' => '',
),
array(
- 'id' => 'restricted_access_post_metabox',
- 'type' => 'multi_checkbox',
- 'label' => __( 'Restricted Access to Posts','ultimate-member' ),
- 'tooltip' => __( 'Restriction content of the current Posts','ultimate-member' ),
- 'options' => $post_types_options,
- 'columns' => 3,
- 'value' => $restricted_access_post_metabox_value,
- 'default' => UM()->options()->get_default( 'restricted_access_post_metabox' ),
+ 'id' => 'restricted_access_taxonomy_metabox',
+ 'type' => 'hidden',
+ 'value' => '',
),
array(
- 'id' => 'restricted_access_taxonomy_metabox',
- 'type' => 'multi_checkbox',
- 'label' => __( 'Restricted Access to Taxonomies','ultimate-member' ),
- 'tooltip' => __( 'Restriction content of the current Taxonomies','ultimate-member' ),
- 'options' => $taxonomies_options,
- 'columns' => 3,
- 'value' => $restricted_access_taxonomy_metabox_value,
- 'default' => UM()->options()->get_default( 'restricted_access_taxonomy_metabox' ),
+ 'id' => 'restricted_access_post_metabox',
+ 'type' => 'multi_checkbox',
+ 'label' => __( 'Restricted Access to Posts', 'ultimate-member' ),
+ 'tooltip' => __( 'Restriction content of the current Posts', 'ultimate-member' ),
+ 'options' => $post_types_options,
+ 'columns' => 3,
+ 'value' => $restricted_access_post_metabox_value,
+ 'default' => UM()->options()->get_default( 'restricted_access_post_metabox' ),
+ ),
+ array(
+ 'id' => 'restricted_access_taxonomy_metabox',
+ 'type' => 'multi_checkbox',
+ 'label' => __( 'Restricted Access to Taxonomies', 'ultimate-member' ),
+ 'tooltip' => __( 'Restriction content of the current Taxonomies', 'ultimate-member' ),
+ 'options' => $taxonomies_options,
+ 'columns' => 3,
+ 'value' => $restricted_access_taxonomy_metabox_value,
+ 'default' => UM()->options()->get_default( 'restricted_access_taxonomy_metabox' ),
) ) );
@@ -373,8 +374,8 @@ if ( ! class_exists( 'um\admin\core\Admin_Settings' ) ) {
*/
$this->settings_structure = apply_filters( 'um_settings_structure', array(
'' => array(
- 'title' => __( 'General', 'ultimate-member' ),
- 'sections' => array(
+ 'title' => __( 'General', 'ultimate-member' ),
+ 'sections' => array(
'' => array(
'title' => __( 'Pages', 'ultimate-member' ),
'fields' => $general_pages_fields
@@ -383,19 +384,19 @@ if ( ! class_exists( 'um\admin\core\Admin_Settings' ) ) {
'title' => __( 'Users', 'ultimate-member' ),
'fields' => array(
array(
- 'id' => 'permalink_base',
- 'type' => 'select',
+ 'id' => 'permalink_base',
+ 'type' => 'select',
'size' => 'small',
- 'label' => __( 'Profile Permalink Base','ultimate-member' ),
- 'tooltip' => __( 'Here you can control the permalink structure of the user profile URL globally e.g. ' . trailingslashit( um_get_core_page('user') ) . '
username /','ultimate-member' ),
- 'options' => array(
- 'user_login' => __('Username','ultimate-member'),
- 'name' => __('First and Last Name with \'.\'','ultimate-member'),
- 'name_dash' => __('First and Last Name with \'-\'','ultimate-member'),
- 'name_plus' => __('First and Last Name with \'+\'','ultimate-member'),
- 'user_id' => __('User ID','ultimate-member'),
+ 'label' => __( 'Profile Permalink Base','ultimate-member' ),
+ 'tooltip' => __( 'Here you can control the permalink structure of the user profile URL globally e.g. ' . trailingslashit( um_get_core_page('user') ) . '
username /','ultimate-member' ),
+ 'options' => array(
+ 'user_login' => __( 'Username', 'ultimate-member' ),
+ 'name' => __( 'First and Last Name with \'.\'', 'ultimate-member' ),
+ 'name_dash' => __( 'First and Last Name with \'-\'', 'ultimate-member' ),
+ 'name_plus' => __( 'First and Last Name with \'+\'', 'ultimate-member' ),
+ 'user_id' => __( 'User ID', 'ultimate-member' ),
),
- 'placeholder' => __('Select...','ultimate-member'),
+ 'placeholder' => __( 'Select...', 'ultimate-member' ),
),
array(
'id' => 'display_name',
@@ -623,59 +624,59 @@ if ( ! class_exists( 'um\admin\core\Admin_Settings' ) ) {
)
),
'access' => array(
- 'title' => __( 'Access', 'ultimate-member' ),
- 'sections' => array(
+ 'title' => __( 'Access', 'ultimate-member' ),
+ 'sections' => array(
'' => array(
'title' => __( 'Restriction Content', 'ultimate-member' ),
'fields' => $access_fields
),
'other' => array(
'title' => __( 'Other', 'ultimate-member' ),
- 'fields' => array(
+ 'fields' => array(
array(
- 'id' => 'enable_reset_password_limit',
- 'type' => 'checkbox',
- 'label' => __( 'Enable the Reset Password Limit?','ultimate-member' ),
+ 'id' => 'enable_reset_password_limit',
+ 'type' => 'checkbox',
+ 'label' => __( 'Enable the Reset Password Limit?', 'ultimate-member' ),
),
array(
- 'id' => 'reset_password_limit_number',
- 'type' => 'text',
- 'label' => __( 'Reset Password Limit','ultimate-member' ),
- 'tooltip' => __('Set the maximum reset password limit. If reached the maximum limit, user will be locked from using this.','ultimate-member'),
- 'validate' => 'numeric',
- 'conditional' => array('enable_reset_password_limit','=',1),
- 'size' => 'um-small-field',
+ 'id' => 'reset_password_limit_number',
+ 'type' => 'text',
+ 'label' => __( 'Reset Password Limit', 'ultimate-member' ),
+ 'tooltip' => __( 'Set the maximum reset password limit. If reached the maximum limit, user will be locked from using this.', 'ultimate-member' ),
+ 'validate' => 'numeric',
+ 'conditional' => array( 'enable_reset_password_limit', '=', 1 ),
+ 'size' => 'small',
),
array(
- 'id' => 'blocked_emails',
- 'type' => 'textarea',
- 'label' => __( 'Blocked Email Addresses','ultimate-member' ),
- 'tooltip' => __('This will block the specified e-mail addresses from being able to sign up or sign in to your site. To block an entire domain, use something like *@domain.com','ultimate-member'),
+ 'id' => 'blocked_emails',
+ 'type' => 'textarea',
+ 'label' => __( 'Blocked Email Addresses', 'ultimate-member' ),
+ 'tooltip' => __( 'This will block the specified e-mail addresses from being able to sign up or sign in to your site. To block an entire domain, use something like *@domain.com', 'ultimate-member' ),
),
array(
- 'id' => 'blocked_words',
- 'type' => 'textarea',
- 'label' => __( 'Blacklist Words','ultimate-member' ),
- 'tooltip' => __('This option lets you specify blacklist of words to prevent anyone from signing up with such a word as their username','ultimate-member'),
+ 'id' => 'blocked_words',
+ 'type' => 'textarea',
+ 'label' => __( 'Blacklist Words', 'ultimate-member' ),
+ 'tooltip' => __( 'This option lets you specify blacklist of words to prevent anyone from signing up with such a word as their username', 'ultimate-member' ),
)
)
),
)
),
'email' => array(
- 'title' => __( 'Email', 'ultimate-member' ),
- 'fields' => array(
+ 'title' => __( 'Email', 'ultimate-member' ),
+ 'fields' => array(
array(
- 'id' => 'admin_email',
- 'type' => 'text',
- 'label' => __( 'Admin E-mail Address', 'ultimate-member' ),
+ 'id' => 'admin_email',
+ 'type' => 'text',
+ 'label' => __( 'Admin E-mail Address', 'ultimate-member' ),
'tooltip' => __( 'e.g. admin@companyname.com','ultimate-member' ),
),
array(
- 'id' => 'mail_from',
- 'type' => 'text',
- 'label' => __( 'Mail appears from','ultimate-member' ),
- 'tooltip' => __( 'e.g. Site Name','ultimate-member' ),
+ 'id' => 'mail_from',
+ 'type' => 'text',
+ 'label' => __( 'Mail appears from','ultimate-member' ),
+ 'tooltip' => __( 'e.g. Site Name','ultimate-member' ),
),
array(
'id' => 'mail_from_addr',
@@ -692,8 +693,8 @@ if ( ! class_exists( 'um\admin\core\Admin_Settings' ) ) {
)
),
'appearance' => array(
- 'title' => __( 'Appearance', 'ultimate-member' ),
- 'sections' => array(
+ 'title' => __( 'Appearance', 'ultimate-member' ),
+ 'sections' => array(
'' => array(
'title' => __( 'Profile', 'ultimate-member' ),
'fields' => array(
@@ -1080,32 +1081,32 @@ if ( ! class_exists( 'um\admin\core\Admin_Settings' ) ) {
)
),
'extensions' => array(
- 'title' => __( 'Extensions', 'ultimate-member' )
+ 'title' => __( 'Extensions', 'ultimate-member' )
),
'licenses' => array(
- 'title' => __( 'Licenses', 'ultimate-member' ),
+ 'title' => __( 'Licenses', 'ultimate-member' ),
),
'misc' => array(
- 'title' => __( 'Misc', 'ultimate-member' ),
- 'fields' => array(
+ 'title' => __( 'Misc', 'ultimate-member' ),
+ 'fields' => array(
array(
- 'id' => 'form_asterisk',
- 'type' => 'checkbox',
- 'label' => __( 'Show an asterisk for required fields','ultimate-member' ),
+ 'id' => 'form_asterisk',
+ 'type' => 'checkbox',
+ 'label' => __( 'Show an asterisk for required fields', 'ultimate-member' ),
),
array(
- 'id' => 'profile_title',
- 'type' => 'text',
- 'label' => __('User Profile Title','ultimate-member'),
- 'tooltip' => __('This is the title that is displayed on a specific user profile','ultimate-member'),
- 'size' => 'medium'
+ 'id' => 'profile_title',
+ 'type' => 'text',
+ 'label' => __( 'User Profile Title', 'ultimate-member' ),
+ 'tooltip' => __( 'This is the title that is displayed on a specific user profile', 'ultimate-member' ),
+ 'size' => 'medium'
),
array(
- 'id' => 'profile_desc',
- 'type' => 'textarea',
- 'label' => __( 'User Profile Dynamic Meta Description','ultimate-member' ),
- 'tooltip' => __('This will be used in the meta description that is available for search-engines.','ultimate-member'),
- 'args' => array(
+ 'id' => 'profile_desc',
+ 'type' => 'textarea',
+ 'label' => __( 'User Profile Dynamic Meta Description', 'ultimate-member' ),
+ 'tooltip' => __( 'This will be used in the meta description that is available for search-engines.', 'ultimate-member' ),
+ 'args' => array(
'textarea_rows' => 6
)
),
@@ -1132,18 +1133,18 @@ if ( ! class_exists( 'um\admin\core\Admin_Settings' ) ) {
),
),
array(
- 'id' => 'uninstall_on_delete',
- 'type' => 'checkbox',
- 'label' => __( 'Remove Data on Uninstall?', 'ultimate-member' ),
- 'tooltip' => __( 'Check this box if you would like Ultimate Member to completely remove all of its data when the plugin/extensions are deleted.', 'ultimate-member' ),
+ 'id' => 'uninstall_on_delete',
+ 'type' => 'checkbox',
+ 'label' => __( 'Remove Data on Uninstall?', 'ultimate-member' ),
+ 'tooltip' => __( 'Check this box if you would like Ultimate Member to completely remove all of its data when the plugin/extensions are deleted.', 'ultimate-member' ),
)
)
),
'install_info' => array(
- 'title' => __( 'Install Info', 'ultimate-member' ),
- 'fields' => array(
+ 'title' => __( 'Install Info', 'ultimate-member' ),
+ 'fields' => array(
array(
- 'type' => 'install_info',
+ 'type' => 'install_info',
),
)
),
@@ -1238,20 +1239,23 @@ if ( ! class_exists( 'um\admin\core\Admin_Settings' ) ) {
//remove not option hidden fields
if ( ! empty( $settings_struct['fields'] ) ) {
- foreach ( $settings_struct['fields'] as $field_key=>$field_options ) {
+ foreach ( $settings_struct['fields'] as $field_key => $field_options ) {
- if ( isset( $field_options['is_option'] ) && $field_options['is_option'] === false )
- unset( $settings_struct['fields'][$field_key] );
+ if ( isset( $field_options['is_option'] ) && $field_options['is_option'] === false ) {
+ unset( $settings_struct['fields'][ $field_key ] );
+ }
}
}
- if ( empty( $settings_struct['fields'] ) && empty( $settings_struct['sections'] ) )
+ if ( empty( $settings_struct['fields'] ) && empty( $settings_struct['sections'] ) ) {
um_js_redirect( add_query_arg( array( 'page' => 'um_options' ), admin_url( 'admin.php' ) ) );
+ }
if ( ! empty( $settings_struct['sections'] ) ) {
- if ( empty( $settings_struct['sections'][$current_subtab] ) )
+ if ( empty( $settings_struct['sections'][ $current_subtab ] ) ) {
um_js_redirect( add_query_arg( array( 'page' => 'um_options', 'tab' => $current_tab ), admin_url( 'admin.php' ) ) );
+ }
}
echo '
' . __( 'Ultimate Member - Settings', 'ultimate-member' ) . ' ';
@@ -1330,14 +1334,6 @@ if ( ! class_exists( 'um\admin\core\Admin_Settings' ) ) {
} else { ?>
-
-
';*/
}
-
/**
* Generate pages tabs
*
@@ -1421,21 +1413,22 @@ if ( ! class_exists( 'um\admin\core\Admin_Settings' ) ) {
$menu_tabs = array();
foreach ( $this->settings_structure as $slug => $tab ) {
if ( ! empty( $tab['fields'] ) ) {
- foreach ( $tab['fields'] as $field_key=>$field_options ) {
+ foreach ( $tab['fields'] as $field_key => $field_options ) {
if ( isset( $field_options['is_option'] ) && $field_options['is_option'] === false ) {
- unset( $tab['fields'][$field_key] );
+ unset( $tab['fields'][ $field_key ] );
}
}
}
- if ( ! empty( $tab['fields'] ) || ! empty( $tab['sections'] ) )
- $menu_tabs[$slug] = $tab['title'];
+ if ( ! empty( $tab['fields'] ) || ! empty( $tab['sections'] ) ) {
+ $menu_tabs[ $slug ] = $tab['title'];
+ }
}
$current_tab = empty( $_GET['tab'] ) ? '' : urldecode( $_GET['tab'] );
- foreach ( $menu_tabs as $name=>$label ) {
+ foreach ( $menu_tabs as $name => $label ) {
$active = ( $current_tab == $name ) ? 'nav-tab-active' : '';
- $tabs .= '
' .
+ $tabs .= ' ' .
$label .
' ';
}
@@ -1476,12 +1469,13 @@ if ( ! class_exists( 'um\admin\core\Admin_Settings' ) ) {
* @return string
*/
function generate_subtabs_menu( $tab = '' ) {
- if ( empty( $this->settings_structure[$tab]['sections'] ) )
+ if ( empty( $this->settings_structure[ $tab ]['sections'] ) ) {
return '';
+ }
$menu_subtabs = array();
- foreach ( $this->settings_structure[$tab]['sections'] as $slug => $subtab ) {
- $menu_subtabs[$slug] = $subtab['title'];
+ foreach ( $this->settings_structure[ $tab ]['sections'] as $slug => $subtab ) {
+ $menu_subtabs[ $slug ] = $subtab['title'];
}
$subtabs = '
';
@@ -1490,7 +1484,7 @@ if ( ! class_exists( 'um\admin\core\Admin_Settings' ) ) {
$current_subtab = empty( $_GET['section'] ) ? '' : urldecode( $_GET['section'] );
foreach ( $menu_subtabs as $name => $label ) {
$active = ( $current_subtab == $name ) ? 'current' : '';
- $subtabs .= ''
+ $subtabs .= ' '
. $label .
' | ';
}
@@ -1510,7 +1504,7 @@ if ( ! class_exists( 'um\admin\core\Admin_Settings' ) ) {
$nonce = ! empty( $_POST['__umnonce'] ) ? $_POST['__umnonce'] : '';
- if ( ( ! wp_verify_nonce( $nonce, 'um-settings-nonce' ) || empty( $nonce ) ) || ! current_user_can('manage_options') ) {
+ if ( ( ! wp_verify_nonce( $nonce, 'um-settings-nonce' ) || empty( $nonce ) ) || ! current_user_can( 'manage_options' ) ) {
// This nonce is not valid.
wp_die( 'Security Check' );
}
@@ -1577,18 +1571,20 @@ if ( ! class_exists( 'um\admin\core\Admin_Settings' ) ) {
* }
* ?>
*/
- do_action( "um_settings_save" );
+ do_action( 'um_settings_save' );
//redirect after save settings
$arg = array(
'page' => 'um_options',
);
- if ( ! empty( $_GET['tab'] ) )
+ if ( ! empty( $_GET['tab'] ) ) {
$arg['tab'] = $_GET['tab'];
+ }
- if ( ! empty( $_GET['section'] ) )
+ if ( ! empty( $_GET['section'] ) ) {
$arg['section'] = $_GET['section'];
+ }
um_js_redirect( add_query_arg( $arg, admin_url( 'admin.php' ) ) );
}
@@ -1603,30 +1599,34 @@ if ( ! class_exists( 'um\admin\core\Admin_Settings' ) ) {
*/
function remove_empty_values( $settings ) {
$tab = '';
- if ( ! empty( $_GET['tab'] ) )
+ if ( ! empty( $_GET['tab'] ) ) {
$tab = $_GET['tab'];
+ }
$section = '';
- if ( ! empty( $_GET['section'] ) )
+ if ( ! empty( $_GET['section'] ) ) {
$section = $_GET['section'];
+ }
- if ( isset( $this->settings_structure[$tab]['sections'][$section]['fields'] ) )
- $fields = $this->settings_structure[$tab]['sections'][$section]['fields'];
- else
- $fields = $this->settings_structure[$tab]['fields'];
+ if ( isset( $this->settings_structure[ $tab ]['sections'][ $section ]['fields'] ) ) {
+ $fields = $this->settings_structure[ $tab ]['sections'][ $section ]['fields'];
+ } else {
+ $fields = $this->settings_structure[ $tab ]['fields'];
+ }
- if ( empty( $fields ) )
+ if ( empty( $fields ) ) {
return $settings;
+ }
$filtered_settings = array();
- foreach ( $settings as $key=>$value ) {
+ foreach ( $settings as $key => $value ) {
- $filtered_settings[$key] = $value;
+ $filtered_settings[ $key ] = $value;
- foreach( $fields as $field ) {
+ foreach ( $fields as $field ) {
if ( $field['id'] == $key && isset( $field['type'] ) && $field['type'] == 'multi_text' ) {
- $filtered_settings[$key] = array_filter( $settings[$key] );
+ $filtered_settings[ $key ] = array_filter( $settings[ $key ] );
}
}
}
@@ -1697,8 +1697,9 @@ if ( ! class_exists( 'um\admin\core\Admin_Settings' ) ) {
*
*/
function before_licenses_save() {
- if ( empty( $_POST['um_options'] ) || empty( $_POST['licenses_settings'] ) )
+ if ( empty( $_POST['um_options'] ) || empty( $_POST['licenses_settings'] ) ) {
return;
+ }
foreach ( $_POST['um_options'] as $key => $value ) {
$this->previous_licenses[ $key ] = UM()->options()->get( $key );
@@ -1828,30 +1829,30 @@ if ( ! class_exists( 'um\admin\core\Admin_Settings' ) ) {
*/
$section_fields = apply_filters( 'um_admin_settings_email_section_fields', array(
array(
- 'id' => 'um_email_template',
- 'type' => 'hidden',
- 'value' => $email_key,
+ 'id' => 'um_email_template',
+ 'type' => 'hidden',
+ 'value' => $email_key,
),
array(
- 'id' => $email_key . '_on',
- 'type' => 'checkbox',
- 'label' => $emails[$email_key]['title'],
- 'tooltip' => $emails[$email_key]['description'],
+ 'id' => $email_key . '_on',
+ 'type' => 'checkbox',
+ 'label' => $emails[ $email_key ]['title'],
+ 'tooltip' => $emails[ $email_key ]['description'],
),
array(
- 'id' => $email_key . '_sub',
- 'type' => 'text',
- 'label' => __( 'Subject Line','ultimate-member' ),
- 'conditional' => array( $email_key . '_on', '=', 1 ),
- 'tooltip' => __('This is the subject line of the e-mail','ultimate-member'),
+ 'id' => $email_key . '_sub',
+ 'type' => 'text',
+ 'label' => __( 'Subject Line', 'ultimate-member' ),
+ 'conditional' => array( $email_key . '_on', '=', 1 ),
+ 'tooltip' => __( 'This is the subject line of the e-mail', 'ultimate-member' ),
),
array(
'id' => $email_key,
'type' => 'email_template',
- 'label' => __( 'Message Body','ultimate-member' ),
+ 'label' => __( 'Message Body', 'ultimate-member' ),
'conditional' => array( $email_key . '_on', '=', 1 ),
- 'tooltip' => __('This is the content of the e-mail','ultimate-member'),
- 'value' => UM()->mail()->get_email_template( $email_key ),
+ 'tooltip' => __( 'This is the content of the e-mail', 'ultimate-member' ),
+ 'value' => UM()->mail()->get_email_template( $email_key ),
'in_theme' => $in_theme
),
), $email_key );
@@ -1880,7 +1881,7 @@ if ( ! class_exists( 'um\admin\core\Admin_Settings' ) ) {