2014-12-15 22:38:07 +02:00
< ? php
global $ultimatemember ;
2015-01-11 19:07:55 +02:00
2014-12-15 22:38:07 +02:00
/***
*** @
***/
$this -> sections [] = array (
2015-01-15 17:15:12 +02:00
'icon' => 'um-faicon-user' ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Users' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'fields' => array (
2015-01-11 19:07:55 +02:00
2014-12-15 22:38:07 +02:00
array (
'id' => 'default_role' ,
'type' => 'select' ,
'select2' => array ( 'allowClear' => 0 , 'minimumResultsForSearch' => - 1 ),
2015-02-07 01:39:29 +02:00
'title' => __ ( 'Default New User Role' , 'ultimatemember' ),
'desc' => __ ( 'Select the default role that will be assigned to user after registration If you did not specify custom role settings per form.' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'default' => 'member' ,
2014-12-20 18:02:41 +02:00
'options' => $ultimatemember -> query -> get_roles ( ),
2015-02-07 01:39:29 +02:00
'placeholder' => __ ( 'Choose user role...' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
),
array (
'id' => 'permalink_base' ,
'type' => 'select' ,
'select2' => array ( 'allowClear' => 0 , 'minimumResultsForSearch' => - 1 ),
2015-02-07 01:39:29 +02:00
'title' => __ ( 'Profile Permalink Base' , 'ultimatemember' ),
'desc' => __ ( 'Here you can control the permalink structure of the user profile URL globally' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'default' => 'user_login' ,
2014-12-22 01:45:24 +02:00
'desc' => 'e.g. ' . trailingslashit ( um_get_core_page ( 'user' ) ) . '<strong>username</strong>/' ,
2014-12-15 22:38:07 +02:00
'options' => array (
'user_login' => 'Username' ,
'name' => 'First and Last Name' ,
'user_id' => 'User ID' ,
),
2015-02-07 01:39:29 +02:00
'placeholder' => __ ( 'Select...' , 'ultimatemember' )
2014-12-15 22:38:07 +02:00
),
array (
'id' => 'display_name' ,
'type' => 'select' ,
'select2' => array ( 'allowClear' => 0 , 'minimumResultsForSearch' => - 1 ),
2015-02-07 01:39:29 +02:00
'title' => __ ( 'User Display Name' , 'ultimatemember' ),
'desc' => __ ( 'This is the name that will be displayed for users on the front end of your site. Default setting uses first/last name as display name if it exists' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'default' => 'full_name' ,
'options' => array (
'username' => 'Username' ,
'full_name' => 'First name & last name' ,
'sur_name' => 'Last name & first name' ,
'initial_name' => 'First name & first initial of last name' ,
'initial_name_f' => 'First initial of first name & last name' ,
'first_name' => 'First name only' ,
'public_name' => 'Display name' ,
'field' => 'Custom field(s)' ,
),
'placeholder' => __ ( 'Select...' )
),
array (
'id' => 'display_name_field' ,
'type' => 'text' ,
2015-02-07 01:39:29 +02:00
'title' => __ ( 'Display Name Custom Field(s)' , 'ultimatemember' ),
'desc' => __ ( 'Specify the custom field meta key or custom fields seperated by comma that you want to use to display users name on the frontend of your site' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'required' => array ( 'display_name' , '=' , 'field' ),
),
2015-02-02 02:10:06 +02:00
array (
'id' => 'author_redirect' ,
'type' => 'switch' ,
2015-02-07 01:39:29 +02:00
'title' => __ ( 'Automatically redirect author page to their profile?' , 'ultimatemember' ),
2015-02-02 02:10:06 +02:00
'default' => 1 ,
2015-02-07 01:39:29 +02:00
'desc' => __ ( 'If enabled, author pages will automatically redirect to the user\'s profile page' , 'ultimatemember' ),
2015-02-05 02:18:20 +02:00
'on' => __ ( 'Yes' , 'ultimatemember' ),
'off' => __ ( 'No' , 'ultimatemember' ),
2015-02-02 02:10:06 +02:00
),
2015-01-11 19:07:55 +02:00
array (
'id' => 'members_page' ,
'type' => 'switch' ,
2015-02-07 01:39:29 +02:00
'title' => __ ( 'Enable Members Directory' , 'ultimatemember' ),
2015-01-11 19:07:55 +02:00
'default' => 1 ,
2015-02-07 01:39:29 +02:00
'desc' => __ ( 'Control whether to enable or disable member directories on this site' , 'ultimatemember' ),
2015-02-05 02:18:20 +02:00
'on' => __ ( 'Yes' , 'ultimatemember' ),
'off' => __ ( 'No' , 'ultimatemember' ),
2015-01-11 19:07:55 +02:00
),
2015-01-26 16:58:31 +02:00
array (
'id' => 'use_gravatars' ,
'type' => 'switch' ,
2015-02-07 01:39:29 +02:00
'title' => __ ( 'Use Gravatars?' , 'ultimatemember' ),
2015-01-26 16:58:31 +02:00
'default' => 0 ,
'desc' => __ ( 'Do you want to use gravatars instead of the default plugin profile photo (If the user did not upload a custom profile photo / avatar)' , 'ultimatemember' ),
2015-02-05 02:18:20 +02:00
'on' => __ ( 'Yes' , 'ultimatemember' ),
'off' => __ ( 'No' , 'ultimatemember' ),
2015-01-26 16:58:31 +02:00
),
2014-12-15 22:38:07 +02:00
)
);
/***
*** @
***/
$this -> sections [] = array (
2015-01-15 17:15:12 +02:00
'icon' => 'um-faicon-cog' ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Account' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'fields' => array (
2015-02-11 00:50:38 +02:00
2014-12-15 22:38:07 +02:00
array (
'id' => 'account_tab_password' ,
'type' => 'switch' ,
2015-02-07 01:39:29 +02:00
'title' => __ ( 'Password Account Tab' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'default' => 1 ,
'desc' => 'Enable/disable the Password account tab in account page' ,
2015-02-05 02:18:20 +02:00
'on' => __ ( 'On' , 'ultimatemember' ),
'off' => __ ( 'Off' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
),
array (
'id' => 'account_tab_privacy' ,
'type' => 'switch' ,
2015-02-07 01:39:29 +02:00
'title' => __ ( 'Privacy Account Tab' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'default' => 1 ,
2015-02-07 01:39:29 +02:00
'desc' => __ ( 'Enable/disable the Privacy account tab in account page' , 'ultimatemember' ),
2015-02-05 02:18:20 +02:00
'on' => __ ( 'On' , 'ultimatemember' ),
'off' => __ ( 'Off' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
),
array (
'id' => 'account_tab_notifications' ,
'type' => 'switch' ,
2015-02-07 01:39:29 +02:00
'title' => __ ( 'Notifications Account Tab' , 'ultimatemember' ),
2015-01-20 17:17:52 +02:00
'default' => 1 ,
2015-02-07 01:39:29 +02:00
'desc' => __ ( 'Enable/disable the Notifications account tab in account page' , 'ultimatemember' ),
2015-02-05 02:18:20 +02:00
'on' => __ ( 'On' , 'ultimatemember' ),
'off' => __ ( 'Off' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
),
array (
'id' => 'account_tab_delete' ,
'type' => 'switch' ,
2015-02-07 01:39:29 +02:00
'title' => __ ( 'Delete Account Tab' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'default' => 1 ,
2015-02-07 01:39:29 +02:00
'desc' => __ ( 'Enable/disable the Delete account tab in account page' , 'ultimatemember' ),
2015-02-05 02:18:20 +02:00
'on' => __ ( 'On' , 'ultimatemember' ),
'off' => __ ( 'Off' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
),
array (
'id' => 'delete_account_text' ,
'type' => 'editor' ,
2015-02-07 01:39:29 +02:00
'title' => __ ( 'Account Deletion Custom Text' , 'ultimatemember' ),
'default' => __ ( 'Are you sure you want to delete your account? This will erase all of your account data from the site. To delete your account enter your password below' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'desc' => __ ( 'This is custom text that will be displayed to users before they delete their accounts from your site' , 'ultimatemember' ),
'args' => array (
'teeny' => false ,
'media_buttons' => false ,
'textarea_rows' => 6
),
),
2015-02-11 00:50:38 +02:00
array (
'id' => 'account_require_strongpass' ,
'type' => 'switch' ,
'title' => __ ( 'Require a strong password?' , 'ultimatemember' ),
'default' => 0 ,
'desc' => __ ( 'Enable or disable a strong password rules on account page / change password tab' , 'ultimatemember' ),
'on' => __ ( 'On' , 'ultimatemember' ),
'off' => __ ( 'Off' , 'ultimatemember' ),
),
2014-12-15 22:38:07 +02:00
)
);
/***
*** @
***/
$this -> sections [] = array (
2015-01-15 17:15:12 +02:00
'icon' => 'um-faicon-lock' ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Access' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'fields' => array (
2015-02-01 01:30:04 +02:00
array (
'id' => 'panic_key' ,
'type' => 'text' ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Panic Key' , 'ultimatemember' ),
2015-02-07 01:39:29 +02:00
'desc' => __ ( 'Panic Key is a random generated key that allow you to access the WordPress backend always regardless of backend settings.' , 'ultimatemember' ),
2015-02-01 01:30:04 +02:00
'default' => $ultimatemember -> validation -> randomize (),
'desc' => trailingslashit ( get_bloginfo ( 'url' ) ) . 'wp-admin/?um_panic_key=<strong>your_panic_key</strong>'
),
2014-12-15 22:38:07 +02:00
array (
'id' => 'accessible' ,
'type' => 'select' ,
'select2' => array ( 'allowClear' => 0 , 'minimumResultsForSearch' => - 1 ),
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Global Site Access' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'default' => 0 ,
2015-02-07 01:39:29 +02:00
'desc' => __ ( 'Globally control the access of your site, you can have seperate restrict options per post/page by editing the desired item.' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'options' => array (
0 => 'Site accessible to Everyone' ,
2 => 'Site accessible to Logged In Users'
)
),
array (
'id' => 'access_redirect' ,
'type' => 'text' ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Custom Redirect URL' , 'ultimatemember' ),
2015-02-07 01:39:29 +02:00
'desc' => __ ( 'A logged out user will be redirected to this url If he is not permitted to access the site' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'required' => array ( 'accessible' , '=' , 2 ),
),
2015-01-07 08:37:25 +02:00
array (
'id' => 'access_exclude_uris' ,
'type' => 'multi_text' ,
'default' => array (),
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Exclude the following URLs' , 'ultimatemember' ),
'desc' => __ ( 'Here you can exclude URLs beside the redirect URI to be accessible to everyone' , 'ultimatemember' ),
2015-02-05 02:18:20 +02:00
'add_text' => __ ( 'Add New URL' , 'ultimatemember' ),
2015-01-07 08:37:25 +02:00
'required' => array ( 'accessible' , '=' , 2 ),
),
2015-01-11 19:07:55 +02:00
2014-12-15 22:38:07 +02:00
array (
2015-02-01 01:30:04 +02:00
'id' => 'exclude_from_main_loop' ,
'type' => 'switch' ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Exclude restricted pages from main loop' , 'ultimatemember' ),
2015-02-01 01:30:04 +02:00
'default' => 1 ,
2015-02-07 01:39:29 +02:00
'desc' => __ ( 'Whether to exclude restricted pages from main loop' , 'ultimatemember' ),
2015-02-01 01:30:04 +02:00
'on' => __ ( 'Yes' , 'ultimatemember' ),
'off' => __ ( 'No' , 'ultimatemember' ),
),
array (
'id' => 'exclude_from_search_loop' ,
'type' => 'switch' ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Exclude restricted pages from search loop' , 'ultimatemember' ),
2015-02-01 01:30:04 +02:00
'default' => 1 ,
2015-02-07 01:39:29 +02:00
'desc' => __ ( 'Whether to exclude restricted pages from search results' , 'ultimatemember' ),
2015-02-01 01:30:04 +02:00
'on' => __ ( 'Yes' , 'ultimatemember' ),
'off' => __ ( 'No' , 'ultimatemember' ),
),
array (
'id' => 'exclude_from_archive_loop' ,
'type' => 'switch' ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Exclude restricted pages from archive loop' , 'ultimatemember' ),
2015-02-01 01:30:04 +02:00
'default' => 1 ,
2015-02-07 01:39:29 +02:00
'desc' => __ ( 'Whether to exclude restricted pages from archives' , 'ultimatemember' ),
2015-02-01 01:30:04 +02:00
'on' => __ ( 'Yes' , 'ultimatemember' ),
'off' => __ ( 'No' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
),
array (
'id' => 'wpadmin_login' ,
'type' => 'switch' ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Allow Backend Login Screen for Guests' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'default' => 1 ,
2015-02-07 01:39:29 +02:00
'desc' => __ ( 'Control whether guests are able to access the WP-admin login screen or not' , 'ultimatemember' ),
2014-12-21 18:34:47 +02:00
'on' => __ ( 'Yes' , 'ultimatemember' ),
'off' => __ ( 'No' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
),
array (
'id' => 'wpadmin_login_redirect' ,
'type' => 'select' ,
'select2' => array ( 'allowClear' => 0 , 'minimumResultsForSearch' => - 1 ),
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Redirect to alternative login page' , 'ultimatemember' ),
'desc' => __ ( 'If you disable backend access to login screen, specify here where a user will be redirected' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'required' => array ( 'wpadmin_login' , '=' , 0 ),
'default' => 'um_login_page' ,
'options' => array (
'um_login_page' => 'UM Login Page' ,
'custom_url' => 'Custom URL' ,
)
),
array (
'id' => 'wpadmin_login_redirect_url' ,
'type' => 'text' ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Custom URL' , 'ultimatemember' ),
2015-02-07 01:39:29 +02:00
'desc' => __ ( 'Enter an alternate url here to redirect a user If they try to access the backend register screen' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'required' => array ( 'wpadmin_login_redirect' , '=' , 'custom_url' ),
),
array (
'id' => 'wpadmin_register' ,
'type' => 'switch' ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Allow Backend Register Screen for Guests' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'default' => 1 ,
2015-02-07 01:39:29 +02:00
'desc' => __ ( 'Control whether guests are able to access the WP-admin register screen or not' , 'ultimatemember' ),
2014-12-21 18:34:47 +02:00
'on' => __ ( 'Yes' , 'ultimatemember' ),
'off' => __ ( 'No' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
),
array (
'id' => 'wpadmin_register_redirect' ,
'type' => 'select' ,
'select2' => array ( 'allowClear' => 0 , 'minimumResultsForSearch' => - 1 ),
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Redirect to alternative register page' , 'ultimatemember' ),
'desc' => __ ( 'If you disable backend access to register screen, specify here where a user will be redirected' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'required' => array ( 'wpadmin_register' , '=' , 0 ),
'default' => 'um_register_page' ,
'options' => array (
'um_register_page' => 'UM Register Page' ,
'custom_url' => 'Custom URL' ,
)
),
array (
'id' => 'wpadmin_register_redirect_url' ,
'type' => 'text' ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Custom URL' , 'ultimatemember' ),
2015-02-07 01:39:29 +02:00
'desc' => __ ( 'Enter an alternate url here to redirect a user If they try to access the backend register screen' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'required' => array ( 'wpadmin_register_redirect' , '=' , 'custom_url' ),
),
2015-01-11 19:07:55 +02:00
2015-01-28 17:16:04 +02:00
array (
'id' => 'wpadmin_allow_ips' ,
'type' => 'textarea' ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Whitelisted Backend IPs' , 'ultimatemember' ),
2015-02-06 02:38:41 +02:00
'desc' => __ ( 'Always allow the specified IP addresses to access the backend login screen and WP-admin to avoid being locked from site backend.' , 'ultimatemember' ),
2015-01-28 17:16:04 +02:00
),
2014-12-15 22:38:07 +02:00
array (
'id' => 'blocked_ips' ,
'type' => 'textarea' ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Blocked IP Addresses' , 'ultimatemember' ),
2015-02-06 02:38:41 +02:00
'desc' => __ ( 'This will block the listed IPs from signing up or signing in to the site, you can use full IP numbers or target specific range with a wildcard' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
),
array (
'id' => 'blocked_emails' ,
'type' => 'textarea' ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Blocked Email Addresses' , 'ultimatemember' ),
2015-02-06 02:38:41 +02:00
'desc' => __ ( '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' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
),
array (
'id' => 'blocked_words' ,
'type' => 'textarea' ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Blacklist Words' , 'ultimatemember' ),
2015-02-06 02:38:41 +02:00
'desc' => __ ( 'This option lets you specify blacklist of words to prevent anyone from signing up with such a word as their username' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'default' => 'admin' . " \r \n " . 'administrator' . " \r \n " . 'webmaster' . " \r \n " . 'support' . " \r \n " . 'staff'
),
)
);
/***
*** @
***/
$this -> sections [] = array (
2015-01-15 17:15:12 +02:00
'icon' => 'um-faicon-envelope-o' ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Emails' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'fields' => array (
array (
'id' => 'mail_from' ,
'type' => 'text' ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Mail appears from' , 'ultimatemember' ),
'desc' => __ ( 'e.g. Site Name' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'default' => get_bloginfo ( 'name' ),
),
array (
'id' => 'mail_from_addr' ,
'type' => 'text' ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Mail appears from address' , 'ultimatemember' ),
'desc' => __ ( 'e.g. admin@companyname.com' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'default' => get_bloginfo ( 'admin_email' ),
),
array (
2015-01-09 03:08:31 +02:00
'id' => 'welcome_email_on' ,
2014-12-15 22:38:07 +02:00
'type' => 'switch' ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Account Welcome Email' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'default' => 1 ,
2015-02-07 01:39:29 +02:00
'desc' => __ ( 'Whether to send the user an email when his account is automatically approved' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
),
array (
2015-01-09 03:08:31 +02:00
'id' => 'welcome_email_sub' ,
2014-12-15 22:38:07 +02:00
'type' => 'text' ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Account Welcome Email' , 'ultimatemember' ),
'subtitle' => __ ( 'Subject Line' , 'ultimatemember' ),
2015-01-09 03:08:31 +02:00
'default' => 'Welcome to {site_name}!' ,
'required' => array ( 'welcome_email_on' , '=' , 1 ),
2015-02-05 02:18:20 +02:00
'desc' => __ ( 'This is the subject line of the e-mail' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
),
array (
2015-01-09 03:08:31 +02:00
'id' => 'welcome_email' ,
2014-12-15 22:38:07 +02:00
'type' => 'textarea' ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Account Welcome Email' , 'ultimatemember' ),
'subtitle' => __ ( 'Message Body' , 'ultimatemember' ),
2015-01-09 03:08:31 +02:00
'required' => array ( 'welcome_email_on' , '=' , 1 ),
2014-12-15 22:38:07 +02:00
'default' => 'Hi {display_name},' . " \r \n \r \n " .
'Thank you for signing up with {site_name}! Your account is now active.' . " \r \n \r \n " .
'To login please visit the following url:' . " \r \n \r \n " .
'{login_url}' . " \r \n \r \n " .
'Your account e-mail: {email}' . " \r \n " .
'Your account username: {username}' . " \r \n " .
'Your account password: {password}' . " \r \n \r \n " .
'If you have any problems, please contact us at {admin_email}' . " \r \n \r \n " .
'Thanks,' . " \r \n " .
'{site_name}' ,
),
2015-01-09 03:08:31 +02:00
2014-12-15 22:38:07 +02:00
array (
'id' => 'checkmail_email_on' ,
'type' => 'switch' ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Account Activation Email' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'default' => 1 ,
2015-02-07 01:39:29 +02:00
'desc' => __ ( 'Whether to send the user an email when his account needs e-mail activation' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
),
array (
'id' => 'checkmail_email_sub' ,
'type' => 'text' ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Account Activation Email' , 'ultimatemember' ),
'subtitle' => __ ( 'Subject Line' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'default' => 'Please activate your account' ,
'required' => array ( 'checkmail_email_on' , '=' , 1 ),
2015-02-05 02:18:20 +02:00
'desc' => __ ( 'This is the subject line of the e-mail' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
),
array (
'id' => 'checkmail_email' ,
'type' => 'textarea' ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Account Activation Email' , 'ultimatemember' ),
'subtitle' => __ ( 'Message Body' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'required' => array ( 'checkmail_email_on' , '=' , 1 ),
'default' => 'Hi {display_name},' . " \r \n \r \n " .
'Thank you for signing up with {site_name}! To activate your account, please click the link below to confirm your email address:' . " \r \n \r \n " .
'{account_activation_link}' . " \r \n \r \n " .
'If you have any problems, please contact us at {admin_email}' . " \r \n \r \n " .
'Thanks,' . " \r \n " .
'{site_name}' ,
),
2015-01-09 03:08:31 +02:00
2014-12-15 22:38:07 +02:00
array (
'id' => 'pending_email_on' ,
'type' => 'switch' ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Pending Review Email' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'default' => 1 ,
2015-02-07 01:39:29 +02:00
'desc' => __ ( 'Whether to send the user an email when his account needs admin review' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
),
array (
'id' => 'pending_email_sub' ,
'type' => 'text' ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Pending Review Email' , 'ultimatemember' ),
'subtitle' => __ ( 'Subject Line' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'default' => 'Your account is pending review' ,
'required' => array ( 'pending_email_on' , '=' , 1 ),
2015-02-05 02:18:20 +02:00
'desc' => __ ( 'This is the subject line of the e-mail' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
),
array (
'id' => 'pending_email' ,
'type' => 'textarea' ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Pending Review Email' , 'ultimatemember' ),
'subtitle' => __ ( 'Message Body' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'required' => array ( 'pending_email_on' , '=' , 1 ),
'default' => 'Hi {display_name},' . " \r \n \r \n " .
'Thank you for signing up with {site_name}! Your account is currently being reviewed by a member of our team.' . " \r \n \r \n " .
'Please allow us some time to process your request.' . " \r \n \r \n " .
'If you have any problems, please contact us at {admin_email}' . " \r \n \r \n " .
'Thanks,' . " \r \n " .
'{site_name}' ,
),
2015-01-09 03:08:31 +02:00
array (
'id' => 'approved_email_on' ,
'type' => 'switch' ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Account Approved Email' , 'ultimatemember' ),
2015-01-09 03:08:31 +02:00
'default' => 1 ,
2015-02-07 01:39:29 +02:00
'desc' => __ ( 'Whether to send the user an email when his account is approved' , 'ultimatemember' ),
2015-01-09 03:08:31 +02:00
),
array (
'id' => 'approved_email_sub' ,
'type' => 'text' ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Account Approved Email' , 'ultimatemember' ),
'subtitle' => __ ( 'Subject Line' , 'ultimatemember' ),
2015-01-09 03:08:31 +02:00
'default' => 'Your account at {site_name} is now active' ,
'required' => array ( 'approved_email_on' , '=' , 1 ),
2015-02-05 02:18:20 +02:00
'desc' => __ ( 'This is the subject line of the e-mail' , 'ultimatemember' ),
2015-01-09 03:08:31 +02:00
),
2014-12-15 22:38:07 +02:00
2015-01-09 03:08:31 +02:00
array (
'id' => 'approved_email' ,
'type' => 'textarea' ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Account Approved Email' , 'ultimatemember' ),
'subtitle' => __ ( 'Message Body' , 'ultimatemember' ),
2015-01-09 03:08:31 +02:00
'required' => array ( 'approved_email_on' , '=' , 1 ),
'default' => 'Hi {display_name},' . " \r \n \r \n " .
'Thank you for signing up with {site_name}! Your account has been approved and is now active.' . " \r \n \r \n " .
'To login please visit the following url:' . " \r \n \r \n " .
'{login_url}' . " \r \n \r \n " .
'Your account e-mail: {email}' . " \r \n " .
'Your account username: {username}' . " \r \n " .
'Your account password: {password}' . " \r \n \r \n " .
'If you have any problems, please contact us at {admin_email}' . " \r \n \r \n " .
'Thanks,' . " \r \n " .
'{site_name}' ,
),
2014-12-15 22:38:07 +02:00
array (
'id' => 'rejected_email_on' ,
'type' => 'switch' ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Account Rejected Email' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'default' => 1 ,
2015-02-07 01:39:29 +02:00
'desc' => __ ( 'Whether to send the user an email when his account is rejected' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
),
array (
'id' => 'rejected_email_sub' ,
'type' => 'text' ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Account Rejected Email' , 'ultimatemember' ),
'subtitle' => __ ( 'Subject Line' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'default' => 'Your account has been rejected' ,
'required' => array ( 'rejected_email_on' , '=' , 1 ),
2015-02-05 02:18:20 +02:00
'desc' => __ ( 'This is the subject line of the e-mail' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
),
array (
'id' => 'rejected_email' ,
'type' => 'textarea' ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Account Rejected Email' , 'ultimatemember' ),
'subtitle' => __ ( 'Message Body' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'required' => array ( 'rejected_email_on' , '=' , 1 ),
'default' => 'Hi {display_name},' . " \r \n \r \n " .
'Thank you for applying for membership to {site_name}! We have reviewed your information and unfortunately we are unable to accept you as a member at this moment.' . " \r \n \r \n " .
'Please feel free to apply again at a future date.' . " \r \n \r \n " .
'Thanks,' . " \r \n " .
'{site_name}' ,
),
array (
'id' => 'inactive_email_on' ,
'type' => 'switch' ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Account Deactivated Email' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'default' => 1 ,
2015-02-07 01:39:29 +02:00
'desc' => __ ( 'Whether to send the user an email when his account is deactivated' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
),
array (
'id' => 'inactive_email_sub' ,
'type' => 'text' ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Account Deactivated Email' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'subtitle' => __ ( 'Subject Line' ),
'default' => 'Your account has been deactivated' ,
'required' => array ( 'inactive_email_on' , '=' , 1 ),
2015-02-05 02:18:20 +02:00
'desc' => __ ( 'This is the subject line of the e-mail' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
),
array (
'id' => 'inactive_email' ,
'type' => 'textarea' ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Account Deactivated Email' , 'ultimatemember' ),
'subtitle' => __ ( 'Message Body' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'required' => array ( 'inactive_email_on' , '=' , 1 ),
'default' => 'Hi {display_name},' . " \r \n \r \n " .
'This is an automated email to let you know your {site_name} account has been deactivated.' . " \r \n \r \n " .
'If you would like your account to be reactivated please contact us at {admin_email}' . " \r \n \r \n " .
'Thanks,' . " \r \n " .
'{site_name}' ,
),
array (
'id' => 'deletion_email_on' ,
'type' => 'switch' ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Account Deleted Email' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'default' => 1 ,
2015-02-07 01:39:29 +02:00
'desc' => __ ( 'Whether to send the user an email when his account is deleted' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
),
array (
'id' => 'deletion_email_sub' ,
'type' => 'text' ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Account Deleted Email' , 'ultimatemember' ),
'subtitle' => __ ( 'Subject Line' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'default' => 'Your account has been deleted' ,
'required' => array ( 'deletion_email_on' , '=' , 1 ),
2015-02-05 02:18:20 +02:00
'desc' => __ ( 'This is the subject line of the e-mail' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
),
array (
'id' => 'deletion_email' ,
'type' => 'textarea' ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Account Deleted Email' , 'ultimatemember' ),
'subtitle' => __ ( 'Message Body' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'required' => array ( 'deletion_email_on' , '=' , 1 ),
'default' => 'Hi {display_name},' . " \r \n \r \n " .
'This is an automated email to let you know your {site_name} account has been deleted. All of your personal information has been permanently deleted and you will no longer be able to login to {site_name}.' . " \r \n \r \n " .
'If your account has been deleted by accident please contact us at {admin_email}' . " \r \n \r \n " .
'Thanks,' . " \r \n " .
'{site_name}' ,
),
2014-12-22 01:45:24 +02:00
array (
'id' => 'resetpw_email_on' ,
'type' => 'switch' ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Password Reset Email' , 'ultimatemember' ),
2014-12-22 01:45:24 +02:00
'default' => 1 ,
2015-02-07 01:39:29 +02:00
'desc' => __ ( 'Whether to send the user an email when he request to reset password (Recommended, please keep on)' , 'ultimatemember' ),
2014-12-22 01:45:24 +02:00
),
array (
'id' => 'resetpw_email_sub' ,
'type' => 'text' ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Password Reset Email' , 'ultimatemember' ),
'subtitle' => __ ( 'Subject Line' , 'ultimatemember' ),
2014-12-22 01:45:24 +02:00
'default' => 'Reset your password' ,
'required' => array ( 'resetpw_email_on' , '=' , 1 ),
2015-02-05 02:18:20 +02:00
'desc' => __ ( 'This is the subject line of the e-mail' , 'ultimatemember' ),
2014-12-22 01:45:24 +02:00
),
array (
'id' => 'resetpw_email' ,
'type' => 'textarea' ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Password Reset Email' , 'ultimatemember' ),
'subtitle' => __ ( 'Message Body' , 'ultimatemember' ),
2014-12-22 01:45:24 +02:00
'required' => array ( 'resetpw_email_on' , '=' , 1 ),
'default' => 'Hi {display_name},' . " \r \n \r \n " .
'We received a request to reset the password for your account. If you made this request, click the link below to change your password:' . " \r \n \r \n " .
'{password_reset_link}' . " \r \n \r \n " .
'If you didn\'t make this request, you can ignore this email' . " \r \n \r \n " .
'Thanks,' . " \r \n " .
'{site_name}' ,
),
2015-01-24 23:39:43 +02:00
array (
'id' => 'changedpw_email_on' ,
'type' => 'switch' ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Password Changed Email' , 'ultimatemember' ),
2015-01-24 23:39:43 +02:00
'default' => 1 ,
2015-02-07 01:39:29 +02:00
'desc' => __ ( 'Whether to send the user an email when he request to reset password (Recommended, please keep on)' , 'ultimatemember' ),
2015-01-24 23:39:43 +02:00
),
array (
'id' => 'changedpw_email_sub' ,
'type' => 'text' ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Password Changed Email' , 'ultimatemember' ),
'subtitle' => __ ( 'Subject Line' , 'ultimatemember' ),
2015-01-24 23:39:43 +02:00
'default' => 'Your {site_name} password has been changed' ,
'required' => array ( 'changedpw_email_on' , '=' , 1 ),
2015-02-05 02:18:20 +02:00
'desc' => __ ( 'This is the subject line of the e-mail' , 'ultimatemember' ),
2015-01-24 23:39:43 +02:00
),
array (
'id' => 'changedpw_email' ,
'type' => 'textarea' ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Password Changed Email' , 'ultimatemember' ),
'subtitle' => __ ( 'Message Body' , 'ultimatemember' ),
2015-01-24 23:39:43 +02:00
'required' => array ( 'changedpw_email_on' , '=' , 1 ),
'default' => 'Hi {display_name},' . " \r \n \r \n " .
'You recently changed the password associated with your {site_name} account.' . " \r \n \r \n " .
'If you did not make this change and believe your {site_name} account has been compromised, please contact us at the following email address: {admin_email}' . " \r \n \r \n " .
'Thanks,' . " \r \n " .
'{site_name}' ,
),
2014-12-15 22:38:07 +02:00
)
);
/***
*** @
***/
$this -> sections [] = array (
2015-01-15 17:15:12 +02:00
'icon' => 'um-faicon-bell-o' ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Notifications' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'fields' => array (
array (
'id' => 'admin_email' ,
'type' => 'text' ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Admin E-mail Address' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'default' => get_bloginfo ( 'admin_email' ),
2015-02-04 20:31:39 +02:00
'desc' => __ ( 'e.g. admin@companyname.com' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
),
array (
'id' => 'notification_new_user_on' ,
'type' => 'switch' ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'New User Notification' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'default' => 1 ,
2015-02-07 01:39:29 +02:00
'desc' => __ ( 'Whether to receive notification when a new user account is approved' , 'ultimatemember' ),
2015-02-05 02:18:20 +02:00
'on' => __ ( 'On' , 'ultimatemember' ),
'off' => __ ( 'Off' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
),
array (
'id' => 'notification_new_user_sub' ,
'type' => 'text' ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'New User Notification' , 'ultimatemember' ),
'subtitle' => __ ( 'Subject Line' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'default' => '[{site_name}] New user account' ,
'required' => array ( 'notification_new_user_on' , '=' , 1 ),
2015-02-05 02:18:20 +02:00
'desc' => __ ( 'This is the subject line of the e-mail' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
),
array (
'id' => 'notification_new_user' ,
'type' => 'textarea' ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'New User Notification' , 'ultimatemember' ),
'subtitle' => __ ( 'Message Body' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'default' => '{display_name} has just created an account on {site_name}. To view their profile click here:' . " \r \n \r \n " .
'{user_profile_link}' . " \r \n \r \n " .
'Here is the submitted registration form:' . " \r \n \r \n " .
'{submitted_registration}' ,
'required' => array ( 'notification_new_user_on' , '=' , 1 ),
2015-02-07 01:39:29 +02:00
'desc' => __ ( 'This is the content of the e-mail' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
),
array (
'id' => 'notification_review_on' ,
'type' => 'switch' ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Account Needs Review Notification' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'default' => 0 ,
2015-02-07 01:39:29 +02:00
'desc' => __ ( 'Whether to receive notification when an account needs admin review' , 'ultimatemember' ),
2015-02-05 02:18:20 +02:00
'on' => __ ( 'On' , 'ultimatemember' ),
'off' => __ ( 'Off' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
),
array (
'id' => 'notification_review_sub' ,
'type' => 'text' ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Account Needs Review Notification' , 'ultimatemember' ),
'subtitle' => __ ( 'Subject Line' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'default' => '[{site_name}] New user awaiting review' ,
'required' => array ( 'notification_review_on' , '=' , 1 ),
2015-02-05 02:18:20 +02:00
'desc' => __ ( 'This is the subject line of the e-mail' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
),
array (
'id' => 'notification_review' ,
'type' => 'textarea' ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Account Needs Review Notification' , 'ultimatemember' ),
'subtitle' => __ ( 'Message Body' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'default' => '{display_name} has just applied for membership to {site_name} and is waiting to be reviewed.' . " \r \n \r \n " .
'To review this member please click the following link:' . " \r \n \r \n " .
'{user_profile_link}' . " \r \n \r \n " .
'Here is the submitted registration form:' . " \r \n \r \n " .
'{submitted_registration}' ,
'required' => array ( 'notification_review_on' , '=' , 1 ),
2015-02-07 01:39:29 +02:00
'desc' => __ ( 'This is the content of the e-mail' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
),
array (
'id' => 'notification_deletion_on' ,
'type' => 'switch' ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Account Deletion Notification' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'default' => 0 ,
2015-02-07 01:39:29 +02:00
'desc' => __ ( 'Whether to receive notification when an account is deleted' , 'ultimatemember' ),
2015-02-05 02:18:20 +02:00
'on' => __ ( 'On' , 'ultimatemember' ),
'off' => __ ( 'Off' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
),
array (
'id' => 'notification_deletion_sub' ,
'type' => 'text' ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Account Deletion Notification' , 'ultimatemember' ),
'subtitle' => __ ( 'Subject Line' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'default' => '[{site_name}] Account deleted' ,
'required' => array ( 'notification_deletion_on' , '=' , 1 ),
2015-02-05 02:18:20 +02:00
'desc' => __ ( 'This is the subject line of the e-mail' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
),
array (
'id' => 'notification_deletion' ,
'type' => 'textarea' ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Account Deletion Notification' , 'ultimatemember' ),
'subtitle' => __ ( 'Message Body' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'default' => '{display_name} has just deleted their {site_name} account.' ,
'required' => array ( 'notification_deletion_on' , '=' , 1 ),
2015-02-07 01:39:29 +02:00
'desc' => __ ( 'This is the content of the e-mail' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
),
)
);
/***
*** @
***/
2014-12-23 23:40:19 +02:00
$this -> sections [] = array (
2015-01-15 17:15:12 +02:00
'icon' => 'um-faicon-cloud-upload' ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Uploads' , 'ultimatemember' ),
2014-12-23 23:40:19 +02:00
'fields' => array (
2014-12-29 15:51:55 +02:00
array (
'id' => 'photo_thumb_sizes' ,
'type' => 'multi_text' ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Profile Photo Thumbnail Sizes' , 'ultimatemember' ),
'desc' => __ ( 'Here you can define which thumbnail sizes will be created for each profile photo upload.' , 'ultimatemember' ),
2014-12-29 21:14:22 +02:00
'default' => array ( 40 , 80 , 190 ),
2014-12-29 15:51:55 +02:00
'validate' => 'numeric' ,
2015-02-05 02:18:20 +02:00
'add_text' => __ ( 'Add New Size' , 'ultimatemember' ),
2014-12-29 15:51:55 +02:00
),
array (
'id' => 'cover_thumb_sizes' ,
'type' => 'multi_text' ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Cover Photo Thumbnail Sizes' , 'ultimatemember' ),
'desc' => __ ( 'Here you can define which thumbnail sizes will be created for each cover photo upload.' , 'ultimatemember' ),
2014-12-29 15:51:55 +02:00
'default' => array ( 300 , 600 ),
'validate' => 'numeric' ,
2015-02-05 02:18:20 +02:00
'add_text' => __ ( 'Add New Size' , 'ultimatemember' ),
2014-12-29 15:51:55 +02:00
),
2014-12-23 23:40:19 +02:00
array (
'id' => 'image_compression' ,
'type' => 'text' ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Image Quality' , 'ultimatemember' ),
'desc' => __ ( 'Quality is used to determine quality of image uploads, and ranges from 0 (worst quality, smaller file) to 100 (best quality, biggest file). The default range is 60.' , 'ultimatemember' ),
2014-12-23 23:40:19 +02:00
'default' => 60 ,
'validate' => 'numeric' ,
),
2014-12-29 15:51:55 +02:00
array (
'id' => 'image_max_width' ,
'type' => 'text' ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Image Upload Maximum Width' , 'ultimatemember' ),
'desc' => __ ( 'Any image upload above this width will be resized to this limit automatically.' , 'ultimatemember' ),
2014-12-29 15:51:55 +02:00
'default' => 1000 ,
'validate' => 'numeric' ,
),
2014-12-30 20:26:22 +02:00
array (
'id' => 'cover_min_width' ,
'type' => 'text' ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Cover Photo Minimum Width' , 'ultimatemember' ),
'desc' => __ ( 'This will be the minimum width for cover photo uploads' , 'ultimatemember' ),
2014-12-30 20:26:22 +02:00
'default' => 1000 ,
'validate' => 'numeric' ,
),
2014-12-23 23:40:19 +02:00
)
);
/***
*** @
***/
2014-12-15 22:38:07 +02:00
$this -> sections [] = array (
2015-01-15 17:15:12 +02:00
'icon' => 'um-faicon-search' ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'SEO' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'fields' => array (
array (
'id' => 'profile_title' ,
'type' => 'text' ,
2015-02-07 01:39:29 +02:00
'title' => __ ( 'User Profile Title' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'default' => '{display_name} | ' . get_bloginfo ( 'name' ),
2015-02-07 01:39:29 +02:00
'desc' => __ ( 'This is the title that is displayed on a specific user profile' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
),
array (
'id' => 'profile_desc' ,
'type' => 'textarea' ,
'default' => '{display_name} is on {site_name}. Join {site_name} to view {display_name}\'s profile' ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'User Profile Dynamic Meta Description' , 'ultimatemember' ),
'desc' => __ ( 'This will be used in the meta description that is available for search-engines.' , 'ultimatemember' )
2014-12-15 22:38:07 +02:00
),
)
);
/***
*** @
***/
$this -> sections [] = array (
2015-01-15 17:15:12 +02:00
'icon' => 'um-faicon-paint-brush' ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Appearance' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'fields' => array (
)
);
$this -> sections [] = array (
'subsection' => true ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'General' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'fields' => array (
2015-01-11 19:07:55 +02:00
array (
'id' => 'directory_template' ,
'type' => 'select' ,
'select2' => array ( 'allowClear' => 0 , 'minimumResultsForSearch' => - 1 ),
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Members Default Template' , 'ultimatemember' ),
'desc' => __ ( 'This will be the default template to output member directory' , 'ultimatemember' ),
2015-01-11 19:07:55 +02:00
'default' => um_get_metadefault ( 'directory_template' ),
'options' => $ultimatemember -> shortcodes -> get_templates ( 'members' ),
'required' => array ( 'xxxxxxxxxxxxx' , '=' , 'sssssssssssssssss' ),
),
2014-12-15 22:38:07 +02:00
array (
'id' => 'active_color' ,
'type' => 'color' ,
'default' => um_get_metadefault ( 'active_color' ),
2015-02-04 20:31:39 +02:00
'title' => __ ( 'General Active Color' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'validate' => 'color' ,
'desc' => __ ( 'Active color is used commonly with many plugin elements as highlighted color or active selection for example. This color demonstrates the primary active color of the plugin' , 'ultimatemember' ),
'transparent' => false ,
),
array (
'id' => 'secondary_color' ,
'type' => 'color' ,
'default' => um_get_metadefault ( 'secondary_color' ),
2015-02-04 20:31:39 +02:00
'title' => __ ( 'General Secondary Color' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'validate' => 'color' ,
'desc' => __ ( 'Secondary color is used for hovers, or active state for some elements of the plugin' , 'ultimatemember' ),
'transparent' => false ,
),
array (
'id' => 'primary_btn_color' ,
'type' => 'color' ,
'default' => um_get_metadefault ( 'primary_btn_color' ),
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Default Primary Button Color' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'validate' => 'color' ,
'transparent' => false ,
),
array (
'id' => 'primary_btn_hover' ,
'type' => 'color' ,
'default' => um_get_metadefault ( 'primary_btn_hover' ),
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Default Primary Button Hover Color' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'validate' => 'color' ,
'transparent' => false ,
),
array (
'id' => 'primary_btn_text' ,
'type' => 'color' ,
'default' => um_get_metadefault ( 'primary_btn_text' ),
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Default Primary Button Text Color' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'validate' => 'color' ,
'transparent' => false ,
),
array (
'id' => 'secondary_btn_color' ,
'type' => 'color' ,
'default' => um_get_metadefault ( 'secondary_btn_color' ),
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Default Secondary Button Color' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'validate' => 'color' ,
'transparent' => false ,
),
array (
'id' => 'secondary_btn_hover' ,
'type' => 'color' ,
'default' => um_get_metadefault ( 'secondary_btn_hover' ),
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Default Secondary Button Hover Color' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'validate' => 'color' ,
'transparent' => false ,
),
array (
'id' => 'secondary_btn_text' ,
'type' => 'color' ,
'default' => um_get_metadefault ( 'secondary_btn_text' ),
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Default Secondary Button Text Color' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'validate' => 'color' ,
'transparent' => false ,
),
array (
'id' => 'help_tip_color' ,
'type' => 'color' ,
'default' => um_get_metadefault ( 'help_tip_color' ),
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Default Help Icon Color' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'validate' => 'color' ,
'transparent' => false ,
),
)
);
$this -> sections [] = array (
'subsection' => true ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Form Inputs' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'fields' => array (
array (
'id' => 'form_field_label' ,
'type' => 'color' ,
'default' => um_get_metadefault ( 'form_field_label' ),
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Field Label Color' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'validate' => 'color' ,
'transparent' => false ,
),
array (
'id' => 'form_border' ,
'type' => 'text' ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Field Border Style' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'default' => um_get_metadefault ( 'form_border' ),
2015-02-07 01:39:29 +02:00
'desc' => __ ( 'The default border-style for input/fields in UM forms' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
),
array (
'id' => 'form_bg_color' ,
'type' => 'color' ,
'default' => um_get_metadefault ( 'form_bg_color' ),
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Field Background Color' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'validate' => 'color' ,
'transparent' => false ,
),
array (
'id' => 'form_text_color' ,
'type' => 'color' ,
'default' => um_get_metadefault ( 'form_text_color' ),
'title' => __ ( 'Field Text Color' ),
'validate' => 'color' ,
'transparent' => false ,
),
array (
'id' => 'form_placeholder' ,
'type' => 'color' ,
'default' => um_get_metadefault ( 'form_placeholder' ),
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Field Placeholder Color' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'validate' => 'color' ,
'transparent' => false ,
),
array (
'id' => 'form_icon_color' ,
'type' => 'color' ,
'default' => um_get_metadefault ( 'form_icon_color' ),
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Field Font Icon Color' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'validate' => 'color' ,
'transparent' => false ,
),
2015-02-02 02:10:06 +02:00
array (
'id' => 'form_asterisk' ,
'type' => 'switch' ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Show an asterisk for required fields' , 'ultimatemember' ),
2015-02-02 02:10:06 +02:00
'default' => 0 ,
2015-02-05 02:18:20 +02:00
'on' => __ ( 'Yes' , 'ultimatemember' ),
'off' => __ ( 'No' , 'ultimatemember' ),
2015-02-02 02:10:06 +02:00
),
array (
'id' => 'form_asterisk_color' ,
'type' => 'color' ,
'default' => um_get_metadefault ( 'form_asterisk_color' ),
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Field Required Asterisk Color' , 'ultimatemember' ),
2015-02-02 02:10:06 +02:00
'validate' => 'color' ,
'transparent' => false ,
'required' => array ( 'form_asterisk' , '=' , '1' ),
),
2014-12-15 22:38:07 +02:00
)
);
$this -> sections [] = array (
'subsection' => true ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Profile' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'fields' => array (
array (
'id' => 'profile_template' ,
'type' => 'select' ,
'select2' => array ( 'allowClear' => 0 , 'minimumResultsForSearch' => - 1 ),
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Profile Default Template' , 'ultimatemember' ),
'desc' => __ ( 'This will be the default template to output profile' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'default' => um_get_metadefault ( 'profile_template' ),
'options' => $ultimatemember -> shortcodes -> get_templates ( 'profile' ),
),
array (
'id' => 'profile_max_width' ,
'type' => 'text' ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Profile Maximum Width' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'default' => um_get_metadefault ( 'profile_max_width' ),
'desc' => 'The maximum width this shortcode can take from the page width' ,
),
2015-01-25 19:59:18 +02:00
array (
'id' => 'profile_area_max_width' ,
'type' => 'text' ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Profile Area Maximum Width' , 'ultimatemember' ),
2015-01-25 19:59:18 +02:00
'default' => um_get_metadefault ( 'profile_area_max_width' ),
2015-02-07 01:39:29 +02:00
'desc' => __ ( 'The maximum width of the profile area inside profile (below profile header)' , 'ultimatemember' ),
2015-01-25 19:59:18 +02:00
),
2014-12-15 22:38:07 +02:00
array (
'id' => 'profile_align' ,
'type' => 'select' ,
'select2' => array ( 'allowClear' => 0 , 'minimumResultsForSearch' => - 1 ),
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Profile Shortcode Alignment' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'desc' => __ ( 'The shortcode is centered by default unless you specify otherwise here' ),
'default' => um_get_metadefault ( 'profile_align' ),
'options' => array (
2015-02-04 20:31:39 +02:00
'center' => __ ( 'Centered' , 'ultimatemember' ),
'left' => __ ( 'Left aligned' , 'ultimatemember' ),
'right' => __ ( 'Right aligned' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
),
),
array (
'id' => 'profile_icons' ,
'type' => 'select' ,
'select2' => array ( 'allowClear' => 0 , 'minimumResultsForSearch' => - 1 ),
'title' => __ ( 'Profile Field Icons' ),
2015-02-04 20:31:39 +02:00
'desc' => __ ( 'This is applicable for edit mode only' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'default' => um_get_metadefault ( 'profile_icons' ),
'options' => array (
2015-02-04 20:31:39 +02:00
'field' => __ ( 'Show inside text field' , 'ultimatemember' ),
'label' => __ ( 'Show with label' , 'ultimatemember' ),
'off' => __ ( 'Turn off' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
),
),
array (
'id' => 'profile_primary_btn_word' ,
'type' => 'text' ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Profile Primary Button Text' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'default' => um_get_metadefault ( 'profile_primary_btn_word' ),
2015-02-07 01:39:29 +02:00
'desc' => __ ( 'The text that is used for updating profile button' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
),
array (
'id' => 'profile_secondary_btn' ,
'type' => 'switch' ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Profile Secondary Button' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'default' => 1 ,
2015-02-07 01:39:29 +02:00
'desc' => __ ( 'Switch on/off the secondary button display in the form' , 'ultimatemember' ),
2015-02-05 02:18:20 +02:00
'on' => __ ( 'On' , 'ultimatemember' ),
'off' => __ ( 'Off' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
),
array (
'id' => 'profile_secondary_btn_word' ,
'type' => 'text' ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Profile Secondary Button Text' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'default' => um_get_metadefault ( 'profile_secondary_btn_word' ),
2015-02-07 01:39:29 +02:00
'desc' => __ ( 'The text that is used for cancelling update profile button' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'required' => array ( 'profile_secondary_btn' , '=' , 1 ),
),
array (
'id' => 'profile_role' ,
'type' => 'select' ,
'select2' => array ( 'allowClear' => 0 , 'minimumResultsForSearch' => - 1 ),
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Profile Associated Role' , 'ultimatemember' ),
'desc' => __ ( 'Normally, you can leave this to default as this restricts the profile per specified role only' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'default' => um_get_metadefault ( 'profile_role' ),
'options' => $ultimatemember -> query -> get_roles ( $add_default = 'Not specific' ),
),
array (
'id' => 'profile_main_bg' ,
'type' => 'color' ,
'default' => um_get_metadefault ( 'profile_main_bg' ),
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Profile Base Background Color' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'validate' => 'color' ,
'transparent' => false ,
),
2014-12-16 21:57:13 +02:00
array (
'id' => 'profile_header_bg' ,
'type' => 'color' ,
'default' => um_get_metadefault ( 'profile_header_bg' ),
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Profile Header Background Color' , 'ultimatemember' ),
2014-12-16 21:57:13 +02:00
'validate' => 'color' ,
'transparent' => false ,
),
2015-01-11 19:07:55 +02:00
array (
'id' => 'default_avatar' ,
'type' => 'media' ,
'title' => __ ( 'Default Profile Photo' , 'ultimatemember' ),
'desc' => __ ( 'You can change the default profile picture globally here. Please make sure that the photo is 300x300px.' , 'ultimatemember' ),
'default' => array (
'url' => um_url . 'assets/img/default_avatar.jpg' ,
),
),
2015-02-01 01:30:04 +02:00
array (
'id' => 'default_cover' ,
'type' => 'media' ,
'url' => true ,
'preview' => false ,
'title' => __ ( 'Default Cover Photo' , 'ultimatemember' ),
'desc' => __ ( 'You can change the default cover photo globally here. Please make sure that the default cover is large enough and respects the ratio you are using for cover photos.' , 'ultimatemember' ),
),
2014-12-15 22:38:07 +02:00
array (
'id' => 'profile_photosize' ,
'type' => 'text' ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Profile Photo Size' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'default' => um_get_metadefault ( 'profile_photosize' ),
2015-02-07 01:39:29 +02:00
'desc' => __ ( 'The global default of profile photo size. This can be overridden by individual form settings' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
),
array (
'id' => 'profile_photocorner' ,
'type' => 'select' ,
'select2' => array ( 'allowClear' => 0 , 'minimumResultsForSearch' => - 1 ),
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Profile Photo Style' , 'ultimatemember' ),
'desc' => __ ( 'Whether to have rounded profile images, rounded corners, or none for the profile photo' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'default' => um_get_metadefault ( 'profile_photocorner' ),
'options' => array (
2015-02-04 20:31:39 +02:00
'1' => __ ( 'Circle' , 'ultimatemember' ),
'2' => __ ( 'Rounded Corners' , 'ultimatemember' ),
'3' => __ ( 'Square' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
),
),
array (
'id' => 'profile_cover_enabled' ,
'type' => 'switch' ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Profile Cover Photos' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'default' => 1 ,
2015-02-07 01:39:29 +02:00
'desc' => __ ( 'Switch on/off the profile cover photos' , 'ultimatemember' ),
2015-02-05 02:18:20 +02:00
'on' => __ ( 'On' , 'ultimatemember' ),
'off' => __ ( 'Off' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
),
array (
'id' => 'profile_cover_ratio' ,
'type' => 'select' ,
'select2' => array ( 'allowClear' => 0 , 'minimumResultsForSearch' => - 1 ),
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Profile Cover Ratio' , 'ultimatemember' ),
'desc' => __ ( 'Choose global ratio for cover photos of profiles' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'default' => um_get_metadefault ( 'profile_cover_ratio' ),
'options' => array (
'2.7:1' => '2.7:1' ,
'2.2:1' => '2.2:1' ,
'3.2:1' => '3.2:1' ,
),
'required' => array ( 'profile_cover_enabled' , '=' , 1 ),
),
2015-02-06 02:38:41 +02:00
array (
'id' => 'profile_show_metaicon' ,
'type' => 'switch' ,
'title' => __ ( 'Profile Header Meta Text Icon' , 'ultimatemember' ),
'default' => 0 ,
'desc' => __ ( 'Display field icons for related user meta fields in header or not' , 'ultimatemember' ),
'on' => __ ( 'On' , 'ultimatemember' ),
'off' => __ ( 'Off' , 'ultimatemember' ),
),
2014-12-15 22:38:07 +02:00
array (
'id' => 'profile_header_text' ,
'type' => 'color' ,
'default' => um_get_metadefault ( 'profile_header_text' ),
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Profile Header Meta Text Color' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'validate' => 'color' ,
'transparent' => false ,
),
array (
'id' => 'profile_header_link_color' ,
'type' => 'color' ,
'default' => um_get_metadefault ( 'profile_header_link_color' ),
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Profile Header Link Color' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'validate' => 'color' ,
'transparent' => false ,
),
array (
'id' => 'profile_header_link_hcolor' ,
'type' => 'color' ,
'default' => um_get_metadefault ( 'profile_header_link_hcolor' ),
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Profile Header Link Hover' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'validate' => 'color' ,
'transparent' => false ,
),
array (
'id' => 'profile_header_icon_color' ,
'type' => 'color' ,
'default' => um_get_metadefault ( 'profile_header_icon_color' ),
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Profile Header Icon Link Color' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'validate' => 'color' ,
'transparent' => false ,
),
array (
'id' => 'profile_header_icon_hcolor' ,
'type' => 'color' ,
'default' => um_get_metadefault ( 'profile_header_icon_hcolor' ),
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Profile Header Icon Link Hover' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'validate' => 'color' ,
'transparent' => false ,
),
2014-12-29 21:14:22 +02:00
array (
'id' => 'profile_show_name' ,
'type' => 'switch' ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Show display name in profile header' , 'ultimatemember' ),
2014-12-29 21:14:22 +02:00
'default' => um_get_metadefault ( 'profile_show_name' ),
2015-02-07 01:39:29 +02:00
'desc' => __ ( 'Switch on/off the user name on profile header' , 'ultimatemember' ),
2015-02-05 02:18:20 +02:00
'on' => __ ( 'On' , 'ultimatemember' ),
'off' => __ ( 'Off' , 'ultimatemember' ),
2014-12-29 21:14:22 +02:00
),
2014-12-29 15:51:55 +02:00
array (
'id' => 'profile_show_bio' ,
'type' => 'switch' ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Show user description in header' , 'ultimatemember' ),
2014-12-29 15:51:55 +02:00
'default' => um_get_metadefault ( 'profile_show_bio' ),
2015-02-07 01:39:29 +02:00
'desc' => __ ( 'Switch on/off the user description on profile header' , 'ultimatemember' ),
2015-02-05 02:18:20 +02:00
'on' => __ ( 'On' , 'ultimatemember' ),
'off' => __ ( 'Off' , 'ultimatemember' ),
2014-12-29 15:51:55 +02:00
),
2015-01-09 03:08:31 +02:00
array (
'id' => 'profile_bio_maxchars' ,
'type' => 'text' ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'User description maximum chars' , 'ultimatemember' ),
2015-01-09 03:08:31 +02:00
'default' => um_get_metadefault ( 'profile_bio_maxchars' ),
2015-02-07 01:39:29 +02:00
'desc' => __ ( 'Maximum number of characters to allow in user description field in header.' , 'ultimatemember' ),
2015-01-09 03:08:31 +02:00
'required' => array ( 'profile_show_bio' , '=' , 1 ),
),
2015-01-14 00:11:38 +02:00
array (
'id' => 'profile_header_menu' ,
'type' => 'select' ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Profile Header Menu Position' , 'ultimatemember' ),
2015-01-14 00:11:38 +02:00
'default' => um_get_metadefault ( 'profile_header_menu' ),
'desc' => __ ( 'For incompatible themes, please make the menu open from left instead of bottom by default.' , 'ultimatemember' ),
'select2' => array ( 'allowClear' => 0 , 'minimumResultsForSearch' => - 1 ),
'options' => array (
'bc' => 'Bottom of Icon' ,
'lc' => 'Left of Icon' ,
),
),
2015-01-29 15:52:13 +02:00
array (
'id' => 'profile_empty_text' ,
'type' => 'switch' ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Show a custom message if profile is empty' , 'ultimatemember' ),
2015-01-29 15:52:13 +02:00
'default' => um_get_metadefault ( 'profile_empty_text' ),
2015-02-07 01:39:29 +02:00
'desc' => __ ( 'Switch on/off the custom message that appears when the profile is empty' , 'ultimatemember' ),
2015-02-05 02:18:20 +02:00
'on' => __ ( 'On' , 'ultimatemember' ),
'off' => __ ( 'Off' , 'ultimatemember' ),
2015-01-29 15:52:13 +02:00
),
array (
'id' => 'profile_empty_text_emo' ,
'type' => 'switch' ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Show the emoticon' , 'ultimatemember' ),
2015-01-29 15:52:13 +02:00
'default' => um_get_metadefault ( 'profile_empty_text_emo' ),
2015-02-07 01:39:29 +02:00
'desc' => __ ( 'Switch on/off the emoticon (sad face) that appears above the message' , 'ultimatemember' ),
2015-02-05 02:18:20 +02:00
'on' => __ ( 'On' , 'ultimatemember' ),
'off' => __ ( 'Off' , 'ultimatemember' ),
2015-01-29 15:52:13 +02:00
'required' => array ( 'profile_empty_text' , '=' , 1 ),
),
2014-12-15 22:38:07 +02:00
)
);
2015-02-01 01:30:04 +02:00
$tabs = $ultimatemember -> profile -> tabs_primary ();
$tab_options [] = array (
'id' => 'profile_menu' ,
'type' => 'switch' ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Enable profile menu' , 'ultimatemember' ),
2015-02-01 01:30:04 +02:00
'default' => 1 ,
2015-02-05 02:18:20 +02:00
'on' => __ ( 'On' , 'ultimatemember' ),
'off' => __ ( 'Off' , 'ultimatemember' ),
2015-02-01 01:30:04 +02:00
);
foreach ( $tabs as $id => $tab ) {
$tab_options [] = array (
'id' => 'profile_tab_' . $id ,
'type' => 'switch' ,
'title' => sprintf ( __ ( '%s Tab' , 'ultimatemember' ), $tab ),
'default' => 1 ,
'required' => array ( 'profile_menu' , '=' , 1 ),
2015-02-05 02:18:20 +02:00
'on' => __ ( 'On' , 'ultimatemember' ),
'off' => __ ( 'Off' , 'ultimatemember' ),
2015-02-01 01:30:04 +02:00
);
}
$tab_options [] = array (
'id' => 'profile_menu_default_tab' ,
'type' => 'select' ,
'select2' => array ( 'allowClear' => 0 , 'minimumResultsForSearch' => - 1 ),
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Profile menu default tab' , 'ultimatemember' ),
'desc' => __ ( 'This will be the default tab on user profile page' , 'ultimatemember' ),
2015-02-01 01:30:04 +02:00
'default' => 'main' ,
'options' => $ultimatemember -> profile -> tabs_primary (),
'required' => array ( 'profile_menu' , '=' , 1 ),
);
$tab_options [] = array (
'id' => 'profile_menu_icons' ,
'type' => 'switch' ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Enable menu icons in desktop view' , 'ultimatemember' ),
2015-02-01 01:30:04 +02:00
'default' => 1 ,
'required' => array ( 'profile_menu' , '=' , 1 ),
2015-02-05 02:18:20 +02:00
'on' => __ ( 'On' , 'ultimatemember' ),
'off' => __ ( 'Off' , 'ultimatemember' ),
2015-02-01 01:30:04 +02:00
);
$tab_options [] = array (
'id' => 'profile_menu_counts' ,
'type' => 'switch' ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Enable counts in menu' , 'ultimatemember' ),
2015-02-01 01:30:04 +02:00
'default' => 1 ,
'required' => array ( 'profile_menu' , '=' , 1 ),
2015-02-05 02:18:20 +02:00
'on' => __ ( 'On' , 'ultimatemember' ),
'off' => __ ( 'Off' , 'ultimatemember' ),
2015-02-01 01:30:04 +02:00
);
$this -> sections [] = array (
'subsection' => true ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Profile Menu' , 'ultimatemember' ),
2015-02-01 01:30:04 +02:00
'fields' => $tab_options
);
2014-12-15 22:38:07 +02:00
$this -> sections [] = array (
'subsection' => true ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Registration Form' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'fields' => array (
array (
'id' => 'register_template' ,
'type' => 'select' ,
'select2' => array ( 'allowClear' => 0 , 'minimumResultsForSearch' => - 1 ),
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Registration Default Template' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'desc' => __ ( 'This will be the default template to output registration' ),
'default' => um_get_metadefault ( 'register_template' ),
'options' => $ultimatemember -> shortcodes -> get_templates ( 'register' ),
),
array (
'id' => 'register_max_width' ,
'type' => 'text' ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Registration Maximum Width' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'default' => um_get_metadefault ( 'register_max_width' ),
2015-02-07 01:39:29 +02:00
'desc' => __ ( 'The maximum width this shortcode can take from the page width' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
),
array (
'id' => 'register_align' ,
'type' => 'select' ,
'select2' => array ( 'allowClear' => 0 , 'minimumResultsForSearch' => - 1 ),
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Registration Shortcode Alignment' , 'ultimatemember' ),
'desc' => __ ( 'The shortcode is centered by default unless you specify otherwise here' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'default' => um_get_metadefault ( 'register_align' ),
'options' => array (
'center' => __ ( 'Centered' ),
'left' => __ ( 'Left aligned' ),
'right' => __ ( 'Right aligned' ),
),
),
array (
'id' => 'register_icons' ,
'type' => 'select' ,
'select2' => array ( 'allowClear' => 0 , 'minimumResultsForSearch' => - 1 ),
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Registration Field Icons' , 'ultimatemember' ),
'desc' => __ ( 'This controls the display of field icons in the registration form' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'default' => um_get_metadefault ( 'register_icons' ),
'options' => array (
'field' => __ ( 'Show inside text field' ),
'label' => __ ( 'Show with label' ),
'off' => __ ( 'Turn off' ),
),
),
array (
'id' => 'register_primary_btn_word' ,
'type' => 'text' ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Registration Primary Button Text' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'default' => um_get_metadefault ( 'register_primary_btn_word' ),
2015-02-07 01:39:29 +02:00
'desc' => __ ( 'The text that is used for primary button text' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
),
array (
'id' => 'register_secondary_btn' ,
'type' => 'switch' ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Registration Secondary Button' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'default' => 1 ,
2015-02-07 01:39:29 +02:00
'desc' => __ ( 'Switch on/off the secondary button display in the form' , 'ultimatemember' ),
2015-02-05 02:18:20 +02:00
'on' => __ ( 'On' , 'ultimatemember' ),
'off' => __ ( 'Off' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
),
array (
'id' => 'register_secondary_btn_word' ,
'type' => 'text' ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Registration Secondary Button Text' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'default' => um_get_metadefault ( 'register_secondary_btn_word' ),
2015-02-07 01:39:29 +02:00
'desc' => __ ( 'The text that is used for the secondary button text' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'required' => array ( 'register_secondary_btn' , '=' , 1 ),
),
array (
'id' => 'register_role' ,
'type' => 'select' ,
'select2' => array ( 'allowClear' => 0 , 'minimumResultsForSearch' => - 1 ),
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Registration Default Role' , 'ultimatemember' ),
'desc' => __ ( 'This will be the default role assigned to users registering thru registration form' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'default' => um_get_metadefault ( 'register_role' ),
'options' => $ultimatemember -> query -> get_roles ( $add_default = 'Default' ),
),
)
);
$this -> sections [] = array (
'subsection' => true ,
'title' => __ ( 'Login Form' ),
'fields' => array (
array (
'id' => 'login_template' ,
'type' => 'select' ,
'select2' => array ( 'allowClear' => 0 , 'minimumResultsForSearch' => - 1 ),
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Login Default Template' , 'ultimatemember' ),
'desc' => __ ( 'This will be the default template to output login' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'default' => um_get_metadefault ( 'login_template' ),
'options' => $ultimatemember -> shortcodes -> get_templates ( 'login' ),
),
array (
'id' => 'login_max_width' ,
'type' => 'text' ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Login Maximum Width' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'default' => um_get_metadefault ( 'login_max_width' ),
2015-02-07 01:39:29 +02:00
'desc' => __ ( 'The maximum width this shortcode can take from the page width' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
),
array (
'id' => 'login_align' ,
'type' => 'select' ,
'select2' => array ( 'allowClear' => 0 , 'minimumResultsForSearch' => - 1 ),
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Login Shortcode Alignment' , 'ultimatemember' ),
'desc' => __ ( 'The shortcode is centered by default unless you specify otherwise here' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'default' => um_get_metadefault ( 'login_align' ),
'options' => array (
2015-02-04 20:31:39 +02:00
'center' => __ ( 'Centered' , 'ultimatemember' ),
'left' => __ ( 'Left aligned' , 'ultimatemember' ),
'right' => __ ( 'Right aligned' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
),
),
array (
'id' => 'login_icons' ,
'type' => 'select' ,
'select2' => array ( 'allowClear' => 0 , 'minimumResultsForSearch' => - 1 ),
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Login Field Icons' , 'ultimatemember' ),
'desc' => __ ( 'This controls the display of field icons in the login form' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'default' => um_get_metadefault ( 'login_icons' ),
'options' => array (
2015-02-04 20:31:39 +02:00
'field' => __ ( 'Show inside text field' , 'ultimatemember' ),
'label' => __ ( 'Show with label' , 'ultimatemember' ),
'off' => __ ( 'Turn off' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
),
),
array (
'id' => 'login_primary_btn_word' ,
'type' => 'text' ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Login Primary Button Text' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'default' => um_get_metadefault ( 'login_primary_btn_word' ),
2015-02-07 01:39:29 +02:00
'desc' => __ ( 'The text that is used for primary button text' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
),
array (
'id' => 'login_secondary_btn' ,
'type' => 'switch' ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Login Secondary Button' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'default' => 1 ,
2015-02-07 01:39:29 +02:00
'desc' => __ ( 'Switch on/off the secondary button display in the form' , 'ultimatemember' ),
2015-02-05 02:18:20 +02:00
'on' => __ ( 'On' , 'ultimatemember' ),
'off' => __ ( 'Off' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
),
array (
'id' => 'login_secondary_btn_word' ,
'type' => 'text' ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Login Secondary Button Text' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'default' => um_get_metadefault ( 'login_secondary_btn_word' ),
2015-02-07 01:39:29 +02:00
'desc' => __ ( 'The text that is used for the secondary button text' , 'ultimatemember' ),
2014-12-15 22:38:07 +02:00
'required' => array ( 'login_secondary_btn' , '=' , 1 ),
),
2015-01-23 19:03:29 +02:00
array (
'id' => 'login_forgot_pass_link' ,
'type' => 'switch' ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Login Forgot Password Link' , 'ultimatemember' ),
2015-01-23 19:03:29 +02:00
'default' => 1 ,
2015-02-07 01:39:29 +02:00
'desc' => __ ( 'Switch on/off the forgot password link in login form' , 'ultimatemember' ),
2015-02-05 02:18:20 +02:00
'on' => __ ( 'On' , 'ultimatemember' ),
'off' => __ ( 'Off' , 'ultimatemember' ),
2015-01-23 19:03:29 +02:00
),
2014-12-15 22:38:07 +02:00
)
2014-12-19 00:42:23 +02:00
);
2015-01-28 17:16:04 +02:00
$this -> sections [] = array (
'subsection' => true ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Custom CSS' , 'ultimatemember' ),
2015-01-28 17:16:04 +02:00
'fields' => array (
array (
'id' => 'custom_css' ,
'type' => 'textarea' ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Custom CSS' , 'ultimatemember' ),
'desc' => __ ( 'Any custom css rules that you specify here will be applied globally to the plugin.' , 'ultimatemember' ),
2015-01-28 17:16:04 +02:00
'rows' => 20 ,
),
)
);
2014-12-20 18:02:41 +02:00
/***
*** @
***/
$this -> sections [] = array (
2015-01-15 17:15:12 +02:00
'icon' => 'um-faicon-wrench' ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Advanced' , 'ultimatemember' ),
2014-12-20 18:02:41 +02:00
'fields' => array (
2015-02-06 02:38:41 +02:00
array (
'id' => 'import_export' ,
'type' => 'import_export' ,
'title' => __ ( 'Import & Export Settings' , 'ultimatemember' ),
'full_width' => true ,
),
2015-01-15 17:15:12 +02:00
array (
'id' => 'disable_minify' ,
'type' => 'switch' ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Disable JS/CSS Compression' , 'ultimatemember' ),
2015-01-15 17:15:12 +02:00
'default' => 0 ,
'desc' => __ ( 'Not recommended. This will load all plugin js and css files separately and may slow down your website. Use this setting for development or debugging purposes only.' , 'ultimatemember' ),
2015-02-05 02:18:20 +02:00
'on' => __ ( 'On' , 'ultimatemember' ),
'off' => __ ( 'Off' , 'ultimatemember' ),
2015-01-15 17:15:12 +02:00
),
2015-02-11 00:50:38 +02:00
array (
'id' => 'disable_menu' ,
'type' => 'switch' ,
'title' => __ ( 'Disable Nav Menu Settings' , 'ultimatemember' ),
'default' => 0 ,
'desc' => __ ( 'This can disable the settings that appear in nav menus to apply custom access settings to nav items.' , 'ultimatemember' ),
'on' => __ ( 'On' , 'ultimatemember' ),
'off' => __ ( 'Off' , 'ultimatemember' ),
),
2015-02-13 02:05:04 +02:00
array (
'id' => 'js_css_exlcude_home' ,
'type' => 'switch' ,
2015-02-13 15:26:36 +02:00
'title' => __ ( 'Never load plugin JS and CSS on homepage' , 'ultimatemember' ),
2015-02-13 02:05:04 +02:00
'default' => 0 ,
'desc' => __ ( 'This can disable loading plugin js and css files on home page.' , 'ultimatemember' ),
'on' => __ ( 'On' , 'ultimatemember' ),
'off' => __ ( 'Off' , 'ultimatemember' ),
),
2015-01-16 13:55:26 +02:00
array (
'id' => 'js_css_exclude' ,
'type' => 'multi_text' ,
'default' => array (),
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Never load plugin JS and CSS on the following pages' , 'ultimatemember' ),
'desc' => __ ( 'Enter a url or page slug (e.g /about/) to disable loading the plugin\'s css and js on that page.' , 'ultimatemember' ),
2015-02-05 02:18:20 +02:00
'add_text' => __ ( 'Add New Page' , 'ultimatemember' ),
2015-01-16 13:55:26 +02:00
),
2015-02-12 02:16:33 +02:00
array (
'id' => 'js_css_include' ,
'type' => 'multi_text' ,
'default' => array (),
'title' => __ ( 'Only load plugin JS and CSS on the following pages' , 'ultimatemember' ),
'desc' => __ ( 'Enter a url or page slug (e.g /about/) to enable loading the plugin\'s css and js on that page.' , 'ultimatemember' ),
'add_text' => __ ( 'Add New Page' , 'ultimatemember' ),
),
2015-01-03 23:18:27 +02:00
array (
'id' => 'allow_tracking' ,
'type' => 'switch' ,
2015-02-04 20:31:39 +02:00
'title' => __ ( 'Allow Tracking' , 'ultimatemember' ),
2015-01-03 23:18:27 +02:00
'default' => 0 ,
2015-01-04 03:10:49 +02:00
'desc' => 'Help us improve Ultimate Member’ s compatibility with other plugins and themes by allowing us to track non-sensitive data on your site. Click <a href="http://ultimatemember.com/tracking/">here</a> to see what data we track.' ,
2015-01-15 17:15:12 +02:00
'on' => __ ( 'Allow tracking' , 'ultimatemember' ),
'off' => __ ( 'Do not allow' , 'ultimatemember' ),
2015-01-03 23:18:27 +02:00
),
2014-12-20 18:02:41 +02:00
)
2014-12-15 22:38:07 +02:00
);