/** 
	 * Returns the list of roles except administrator
	 * 
	 * @return array
	 * @access protected
	 * @since 1.0.0
	 */
	protected function _getRoles() {
		$roles = yit_wp_roles();
		unset($roles['administrator']);
		return $roles;
	}
<?php

/**
 * Main admin class
 *
 * @author  Your Inspiration Themes
 * @package YITH Pre-Launch
 * @version 1.0.2
 */
if (!defined('YITH_PRELAUNCH')) {
    exit;
}
// Exit if accessed directly
global $yith_prelaunch_options;
$yith_prelaunch_options = array('general' => array('label' => __('General', 'yith-pre-launch'), 'sections' => array('general' => array('title' => __('General Settings', 'yith-pre-launch'), 'description' => '', 'fields' => array('yith_prelaunch_enable' => array('title' => __('Enable Pre-Launch', 'yith-pre-launch'), 'description' => __('Enable the splash page to lets users to know the blog is down for prelaunch. (Default: Off) ', 'yith-pre-launch'), 'type' => 'checkbox', 'std' => false), 'yith_prelaunch_roles' => array('title' => __('Roles', 'yith-pre-launch'), 'description' => __('The user roles enabled to see the frontend. Check a role to enable it to show the website with prelaunch mode active.', 'yith-pre-launch'), 'type' => 'checkboxes', 'options' => yit_wp_roles(), 'std' => array('administrator')), 'yith_prelaunch_message' => array('title' => __('Message', 'yith-pre-launch'), 'description' => __('The message displayed. You can also use HTML code.', 'yith-pre-launch'), 'type' => 'textarea', 'std' => '<h3>' . __('OPS! WE ARE NOT READY YET!', 'yith-pre-launch') . '</h3>
<p>' . __("Hello there! We are not ready yet, but why don't you leave your email address  and we'll let you know  as soon as we're in business!", 'yith-pre-launch') . '</p>'), 'yith_prelaunch_custom_style' => array('title' => 'Custom style', 'description' => __('Insert here your custom CSS style.', 'yith-pre-launch'), 'type' => 'textarea', 'std' => ''), 'yith_prelaunch_mascotte' => array('title' => 'Mascotte', 'description' => __('If you want, you can set here a mascotte image to show above the main box, in the right side.', 'yith-pre-launch'), 'type' => 'upload', 'std' => YITH_PRELAUNCH_URL . 'assets/images/mascotte.png'))), 'typography' => array('title' => __('Typography', 'yith-pre-launch'), 'description' => '', 'fields' => array('yith_prelaunch_title_font' => array('title' => __('Title font of message', 'yith-pre-launch'), 'description' => __('Choose the font type, size and color for the titles inside the message text.', 'yith-pre-launch'), 'type' => 'typography', 'std' => array('size' => 18, 'unit' => 'px', 'family' => 'Open Sans', 'style' => 'bold', 'color' => '#666666')), 'yith_prelaunch_paragraph_font' => array('title' => __('Paragraph font of message', 'yith-pre-launch'), 'description' => __('Choose the font type, size and color for the paragraphs inside the message text.', 'yith-pre-launch'), 'type' => 'typography', 'std' => array('size' => 13, 'unit' => 'px', 'family' => 'Open Sans', 'style' => 'regular', 'color' => '#666666')))), 'colors' => array('title' => __('Colors', 'yith-pre-launch'), 'description' => '', 'fields' => array('yith_prelaunch_border_top' => array('title' => __('Border top color', 'yith-pre-launch'), 'description' => __('Choose the color for the big border top of the main box.', 'yith-pre-launch'), 'type' => 'colorpicker', 'std' => '#99AFD2'))))), 'background' => array('label' => __('Background', 'yith-pre-launch'), 'sections' => array('background' => array('title' => __('Background Settings', 'yith-pre-launch'), 'description' => __('Customize the background of the page', 'yith-pre-launch'), 'fields' => array('yith_prelaunch_background_image' => array('title' => __('Background image', 'yith-pre-launch'), 'description' => __('Upload or choose from your media library the background image', 'yith-pre-launch'), 'type' => 'upload', 'std' => YITH_PRELAUNCH_URL . 'assets/images/bg-pattern.png'), 'yith_prelaunch_background_color' => array('title' => __('Background Color', 'yith-pre-launch'), 'description' => __('Choose a background color', 'yith-pre-launch'), 'type' => 'colorpicker', 'std' => ''), 'yith_prelaunch_background_repeat' => array('title' => __('Background Repeat', 'yith-pre-launch'), 'description' => __('Select the repeat mode for the background image.', 'yith-pre-launch'), 'type' => 'select', 'std' => apply_filters('yith_prelaunch_background_repeat_std', 'repeat'), 'options' => array('repeat' => __('Repeat', 'yith-pre-launch'), 'repeat-x' => __('Repeat Horizontally', 'yith-pre-launch'), 'repeat-y' => __('Repeat Vertically', 'yith-pre-launch'), 'no-repeat' => __('No Repeat', 'yith-pre-launch'))), 'yith_prelaunch_background_position' => array('title' => __('Background Position', 'yith-pre-launch'), 'description' => __('Select the position for the background image.', 'yith-pre-launch'), 'type' => 'select', 'options' => array('center' => __('Center', 'yith-pre-launch'), 'top left' => __('Top left', 'yith-pre-launch'), 'top center' => __('Top center', 'yith-pre-launch'), 'top right' => __('Top right', 'yith-pre-launch'), 'bottom left' => __('Bottom left', 'yith-pre-launch'), 'bottom center' => __('Bottom center', 'yith-pre-launch'), 'bottom right' => __('Bottom right', 'yith-pre-launch')), 'std' => apply_filters('yith_prelaunch_background_position_std', 'top left')), 'yith_prelaunch_background_attachment' => array('title' => __('Background Attachment', 'yith-pre-launch'), 'description' => __('Select the attachment for the background image.', 'yith-pre-launch'), 'type' => 'select', 'options' => array('scroll' => __('Scroll', 'yith-pre-launch'), 'fixed' => __('Fixed', 'yith-pre-launch')), 'std' => apply_filters('yith_prelaunch_background_attachment_std', 'scroll')))))), 'logo' => array('label' => __('Logo', 'yith-pre-launch'), 'sections' => array('logo' => array('title' => __('Logo Settings', 'yith-pre-launch'), 'description' => __('Customize the logo', 'yith-pre-launch'), 'fields' => array('yith_prelaunch_logo_image' => array('title' => __('Logo image', 'yith-pre-launch'), 'description' => __('Upload or choose from your media library the logo image', 'yith-pre-launch'), 'type' => 'upload', 'std' => YITH_PRELAUNCH_URL . 'assets/images/logo.png'), 'yith_prelaunch_logo_tagline' => array('title' => __('Logo tagline', 'yith-pre-launch'), 'description' => __('Set the tagline to show below the logo image', 'yith-pre-launch'), 'type' => 'text', 'std' => ''), 'yith_prelaunch_logo_tagline_font' => array('title' => __('Logo tagline font', 'yith-pre-launch'), 'description' => __('Choose the font type, size and color for the tagline text.', 'yith-pre-launch'), 'type' => 'typography', 'std' => array('size' => 15, 'unit' => 'px', 'family' => 'Open Sans', 'style' => 'regular', 'color' => '#999999')))))), 'countdown' => array('label' => __('Countdown', 'yith-pre-launch'), 'sections' => array('settings' => array('title' => __('Settings', 'yith-pre-launch'), 'fields' => array('yith_prelaunch_countdown_enable' => array('title' => __('Enable countdown', 'yith-pre-launch'), 'description' => __('Tick if you want to show the countdown.', 'yith-pre-launch'), 'type' => 'checkbox', 'std' => 1), 'yith_prelaunch_to_date' => array('title' => __('Countdown to', 'yith-pre-launch'), 'description' => __('The date when the countdown will stop.', 'yith-pre-launch'), 'type' => 'datepicker', 'std' => array('date' => '', 'hh' => 0, 'mm' => 0, 'ss' => 0)))), 'typography' => array('title' => __('Typography', 'yith-pre-launch'), 'fields' => array('yith_prelaunch_numbers_font' => array('title' => __('Font numbers', 'yith-pre-launch'), 'description' => __('The font for the numbers.', 'yith-pre-launch'), 'type' => 'typography', 'std' => array('size' => 50, 'unit' => 'px', 'family' => 'Open Sans', 'style' => 'extra-bold', 'color' => '#617291')), 'yith_prelaunch_labels_font' => array('title' => __('Font labels', 'yith-pre-launch'), 'description' => __('The font for the labels.', 'yith-pre-launch'), 'type' => 'typography', 'std' => array('size' => 15, 'unit' => 'px', 'family' => 'Open Sans', 'style' => 'regular', 'color' => '#999999')))))), 'newsletter' => array('label' => __('Newsletter', 'yith-pre-launch'), 'sections' => array('newsletter' => array('title' => __('Newsletter', 'yith-pre-launch'), 'description' => __('Add a newsletter form in your prelaunch mode page.', 'yith-pre-launch'), 'fields' => array('yith_prelaunch_enable_newsletter_form' => array('title' => __('Enable Newsletter form', 'yith-pre-launch'), 'description' => __('Choose if you want to enable the newsletter form in the prelaunch mode page.', 'yith-pre-launch'), 'type' => 'checkbox', 'std' => true), 'yith_prelaunch_newsletter_email_font' => array('title' => __('Newsletter Email Font', 'yith-pre-launch'), 'description' => __('Choose the font type, size and color for the email input field.', 'yith-pre-launch'), 'type' => 'typography', 'std' => array('size' => 12, 'unit' => 'px', 'family' => 'Open Sans', 'style' => 'bold', 'color' => '#a3a3a3')), 'yith_prelaunch_newsletter_submit_font' => array('title' => __('Newsletter Submit Font', 'yith-pre-launch'), 'description' => __('Choose the font type, size and color for the email submit.', 'yith-pre-launch'), 'type' => 'typography', 'std' => array('size' => 16, 'unit' => 'px', 'family' => 'Open Sans', 'style' => 'extra-bold', 'color' => '#fff')), 'yith_prelaunch_newsletter_submit_background' => array('title' => __('Newsletter submit background', 'yith-pre-launch'), 'description' => __('The submit button background.', 'yith-pre-launch'), 'type' => 'colorpicker', 'std' => '#617291'), 'yith_prelaunch_newsletter_submit_background_hover' => array('title' => __('Newsletter submit hover background', 'yith-pre-launch'), 'description' => __('The submit button hover background.', 'yith-pre-launch'), 'type' => 'colorpicker', 'std' => '#3c5072'), 'yith_prelaunch_newsletter_title' => array('title' => __('Title', 'yith-pre-launch'), 'description' => __('The title displayed above the newsletter form.', 'yith-pre-launch'), 'type' => 'text', 'std' => ''))), 'newsletter_configuration' => array('title' => __('Form configuration', 'yith-pre-launch'), 'description' => __('Configure the form and each field, to integrate the newsletter features of an external service.', 'yith-pre-launch'), 'fields' => array('yith_prelaunch_newsletter_action' => array('title' => __('Action URL', 'yith-pre-launch'), 'description' => __('Set the action url of the form.', 'yith-pre-launch'), 'type' => 'text', 'std' => ''), 'yith_prelaunch_newsletter_method' => array('title' => __('Form method', 'yith-pre-launch'), 'description' => __('Set the method for the form request.', 'yith-pre-launch'), 'type' => 'select', 'options' => array('POST' => 'POST', 'GET' => 'GET'), 'std' => 'POST'), 'yith_prelaunch_newsletter_email_label' => array('title' => __('"Email" field label', 'yith-pre-launch'), 'description' => __('The label for the email field', 'yith-pre-launch'), 'type' => 'text', 'std' => 'Enter your email address'), 'yith_prelaunch_newsletter_email_name' => array('title' => __('"Email" field name', 'yith-pre-launch'), 'description' => __('The "name" attribute for the email field', 'yith-pre-launch'), 'type' => 'text', 'std' => 'email'), 'yith_prelaunch_newsletter_submit_label' => array('title' => __('Submit button label', 'yith-pre-launch'), 'description' => __('The label for the submit button', 'yith-pre-launch'), 'type' => 'text', 'std' => __('GET NOTIFIED', 'yith-pre-launch')), 'yith_prelaunch_newsletter_hidden_fields' => array('title' => __('Newsletter Hidden fields', 'yith-pre-launch'), 'description' => __('Set the hidden fields to include in the form. Use the form: field1=value1&field2=value2&field3=value3', 'yith-pre-launch'), 'type' => 'text', 'std' => ''))))), 'socials' => array('label' => __('Socials', 'yith-pre-launch'), 'sections' => array('logo' => array('title' => __('Set the socials', 'yith-pre-launch'), 'description' => __("You can set here the url of your social accounts (you can leave empty if you don't want to show the social icon)", 'yith-pre-launch'), 'fields' => array('yith_prelaunch_socials_facebook' => array('title' => __('Facebook', 'yith-pre-launch'), 'description' => __('Set the URL of your facebook profile', 'yith-pre-launch'), 'type' => 'text', 'std' => ''), 'yith_prelaunch_socials_twitter' => array('title' => __('Twitter', 'yith-pre-launch'), 'description' => __('Set the URL of your twitter profile', 'yith-pre-launch'), 'type' => 'text', 'std' => ''), 'yith_prelaunch_socials_gplus' => array('title' => __('Google+', 'yith-pre-launch'), 'description' => __('Set the URL of your Google+ profile', 'yith-pre-launch'), 'type' => 'text', 'std' => ''), 'yith_prelaunch_socials_youtube' => array('title' => __('Youtube', 'yith-pre-launch'), 'description' => __('Set the URL of your youtube profile', 'yith-pre-launch'), 'type' => 'text', 'std' => ''), 'yith_prelaunch_socials_rss' => array('title' => __('RSS', 'yith-pre-launch'), 'description' => __('Set the URL of your RSS feed', 'yith-pre-launch'), 'type' => 'text', 'std' => ''), 'yith_prelaunch_socials_skype' => array('title' => __('Skype', 'yith-pre-launch'), 'description' => __('Set the username of your skype account', 'yith-pre-launch'), 'type' => 'text', 'std' => ''), 'yith_prelaunch_socials_email' => array('title' => __('Email', 'yith-pre-launch'), 'description' => __('Write here your email address', 'yith-pre-launch'), 'type' => 'text', 'std' => ''), 'yith_prelaunch_socials_behance' => array('title' => __('Behance', 'yith-pre-launch'), 'description' => __('Set the URL of your Behance profile', 'yith-pre-launch'), 'type' => 'text', 'std' => ''), 'yith_prelaunch_socials_dribble' => array('title' => __('Dribbble', 'yith-pre-launch'), 'description' => __('Set the URL of your dribbble profile', 'yith-pre-launch'), 'type' => 'text', 'std' => ''), 'yith_prelaunch_socials_flickr' => array('title' => __('FlickR', 'yith-pre-launch'), 'description' => __('Set the URL of your Flickr profile', 'yith-pre-launch'), 'type' => 'text', 'std' => ''), 'yith_prelaunch_socials_instagram' => array('title' => __('Instagram', 'yith-pre-launch'), 'description' => __('Set the URL of your instagram profile', 'yith-pre-launch'), 'type' => 'text', 'std' => ''), 'yith_prelaunch_socials_pinterest' => array('title' => __('Pinterest', 'yith-pre-launch'), 'description' => __('Set the URL of your Pinterest profile', 'yith-pre-launch'), 'type' => 'text', 'std' => ''), 'yith_prelaunch_socials_tumblr' => array('title' => __('Tumblr', 'yith-pre-launch'), 'description' => __('Set the URL of your Tumblr profile', 'yith-pre-launch'), 'type' => 'text', 'std' => ''), 'yith_prelaunch_socials_linkedin' => array('title' => __('LinkedIn', 'yith-pre-launch'), 'description' => __('Set the URL of your LinkedIn profile', 'yith-pre-launch'), 'type' => 'text', 'std' => ''))))));
            'general'    => array(
                'title'       => __( 'General Settings', 'yit' ),
                'description' => '',
                'fields'      => array(
                    'yith_prelaunch_enable'       => array(
                        'title'       => __( 'Enable Pre-Launch', 'yit' ),
                        'description' => __( 'Enable the splash page to lets users to know the blog is down for prelaunch. (Default: Off) ', 'yit' ),
                        'type'        => 'checkbox',
                        'std'         => false
                    ),

                    'yith_prelaunch_roles'        => array(
                        'title'       => __( 'Roles', 'yit' ),
                        'description' => __( 'The user roles enabled to see the frontend. Check a role to enable it to show the website with prelaunch mode active.', 'yit' ),
                        'type'        => 'checkboxes',
                        'options'     => yit_wp_roles(),
                        'std'         => array( 'administrator' )
                    ),

                    'yith_prelaunch_message'      => array(
                        'title'       => __( 'Message', 'yit' ),
                        'description' => __( 'The message displayed. You can also use HTML code.', 'yit' ),
                        'type'        => 'textarea',
                        'std'         => '<p>' . __( "Hi all! We have a minimal and clean design and you will love us, but currently our site is under construction.", 'yit' ) . '</p>'
                    ),

                    'yith_prelaunch_custom_style' => array(
                        'title'       => 'Custom style',
                        'description' => __( 'Insert here your custom CSS style.', 'yit' ),
                        'type'        => 'textarea',
                        'std'         => ''
<?php

/**
 * Main admin class
 *
 * @author  Your Inspiration Themes
 * @package YITH Pre-Launch
 * @version 1.0.2
 */
if (!defined('YITH_PRELAUNCH')) {
    exit;
}
// Exit if accessed directly
global $yith_prelaunch_options;
$yith_prelaunch_options = array('general' => array('label' => __('General', 'yit'), 'sections' => array('general' => array('title' => __('General Settings', 'yit'), 'description' => '', 'fields' => array('yith_prelaunch_enable' => array('title' => __('Enable Pre-Launch', 'yit'), 'description' => __('Enable the splash page to lets users to know the blog is down for prelaunch. (Default: Off) ', 'yit'), 'type' => 'checkbox', 'std' => false), 'yith_prelaunch_roles' => array('title' => __('Roles', 'yit'), 'description' => __('The user roles enabled to see the frontend. Check a role to enable it to show the website with prelaunch mode active.', 'yit'), 'type' => 'checkboxes', 'options' => yit_wp_roles(), 'std' => array('administrator')), 'yith_prelaunch_message' => array('title' => __('Message', 'yit'), 'description' => __('The message displayed. You can also use HTML code.', 'yit'), 'type' => 'textarea', 'std' => '<p>' . __("Hi all! We have a minimal and clean design and you will love us, but currently our site is under construction.", 'yit') . '</p>'), 'yith_prelaunch_custom_style' => array('title' => 'Custom style', 'description' => __('Insert here your custom CSS style.', 'yit'), 'type' => 'textarea', 'std' => ''))), 'typography' => array('title' => __('Typography', 'yit'), 'description' => '', 'fields' => array('yith_prelaunch_title_font' => array('title' => __('Title font of message', 'yit'), 'description' => __('Choose the font type, size and color for the titles inside the message text.', 'yit'), 'type' => 'typography', 'std' => array('size' => 20, 'unit' => 'px', 'family' => 'Open Sans', 'style' => 'bold', 'color' => '#6d6c6c')), 'yith_prelaunch_paragraph_font' => array('title' => __('Paragraph font of message', 'yit'), 'description' => __('Choose the font type, size and color for the paragraphs inside the message text.', 'yit'), 'type' => 'typography', 'std' => array('size' => 18, 'unit' => 'px', 'family' => 'Open Sans', 'style' => 'regular', 'color' => '#5b5a5a')))))), 'background' => array('label' => __('Background', 'yit'), 'sections' => array('background' => array('title' => __('Background Settings', 'yit'), 'description' => __('Customize the background of the page', 'yit'), 'fields' => array('yith_prelaunch_background_image' => array('title' => __('Background image', 'yit'), 'description' => __('Upload or choose from your media library the background image', 'yit'), 'type' => 'upload', 'std' => get_template_directory_uri() . '/theme/assets/images/backgrounds/prelaunch.jpg'), 'yith_prelaunch_background_color' => array('title' => __('Background Color', 'yit'), 'description' => __('Choose a background color', 'yit'), 'type' => 'colorpicker', 'std' => 'transparent'), 'yith_prelaunch_wrapper_background_wrapper_color' => array('title' => __('Wrapper Background Color', 'yit'), 'description' => __('Choose a background color for wrapper container', 'yit'), 'type' => 'colorpicker', 'std' => '#ffffff'), 'yith_prelaunch_wrapper_background_wrapper_opacity' => array('title' => __('Wrapper Background Opacity', 'yit'), 'description' => __('Choose the background opacity color for wrapper container', 'yit'), 'type' => 'number', 'min' => 0, 'max' => 100, 'std' => 100), 'yith_prelaunch_background_repeat' => array('title' => __('Background Repeat', 'yit'), 'description' => __('Select the repeat mode for the background image.', 'yit'), 'type' => 'select', 'std' => apply_filters('yith_prelaunch_background_repeat_std', 'no-repeat'), 'options' => array('repeat' => __('Repeat', 'yit'), 'repeat-x' => __('Repeat Horizontally', 'yit'), 'repeat-y' => __('Repeat Vertically', 'yit'), 'no-repeat' => __('No Repeat', 'yit'))), 'yith_prelaunch_background_position' => array('title' => __('Background Position', 'yit'), 'description' => __('Select the position for the background image.', 'yit'), 'type' => 'select', 'options' => array('center' => __('Center', 'yit'), 'top left' => __('Top left', 'yit'), 'top center' => __('Top center', 'yit'), 'top right' => __('Top right', 'yit'), 'bottom left' => __('Bottom left', 'yit'), 'bottom center' => __('Bottom center', 'yit'), 'bottom right' => __('Bottom right', 'yit')), 'std' => apply_filters('yith_prelaunch_background_position_std', 'top center')), 'yith_prelaunch_background_attachment' => array('title' => __('Background Attachment', 'yit'), 'description' => __('Select the attachment for the background image.', 'yit'), 'type' => 'select', 'options' => array('scroll' => __('Scroll', 'yit'), 'fixed' => __('Fixed', 'yit')), 'std' => apply_filters('yith_prelaunch_background_attachment_std', 'fixed')))))), 'logo' => array('label' => __('Logo', 'yit'), 'sections' => array('logo' => array('title' => __('Logo Settings', 'yit'), 'description' => __('Customize the logo', 'yit'), 'fields' => array('yith_prelaunch_logo_image' => array('title' => __('Logo image', 'yit'), 'description' => __('Upload or choose from your media library the logo image', 'yit'), 'type' => 'upload', 'std' => get_template_directory_uri() . '/theme/assets/images/logo.png'), 'yith_prelaunch_logo_tagline' => array('title' => __('Logo tagline', 'yit'), 'description' => __('Set the tagline to show below the logo image', 'yit'), 'type' => 'text', 'std' => ''), 'yith_prelaunch_logo_tagline_font' => array('title' => __('Logo tagline font', 'yit'), 'description' => __('Choose the font type, size and color for the tagline text.', 'yit'), 'type' => 'typography', 'std' => array('size' => 14, 'unit' => 'px', 'family' => 'Open Sans', 'style' => 'regular', 'color' => '#ffffff')))))), 'countdown' => array('label' => __('Countdown', 'yit'), 'sections' => array('settings' => array('title' => __('Settings', 'yit'), 'fields' => array('yith_prelaunch_countdown_enable' => array('title' => __('Enable countdown', 'yit'), 'description' => __('Tick if you want to show the countdown.', 'yit'), 'type' => 'checkbox', 'std' => 1), 'yith_prelaunch_to_date' => array('title' => __('Countdown to', 'yit'), 'description' => __('The date when the countdown will stop.', 'yit'), 'type' => 'datepicker', 'std' => array('date' => '', 'hh' => 0, 'mm' => 0, 'ss' => 0)))), 'typography' => array('title' => __('Typography', 'yit'), 'fields' => array('yith_prelaunch_numbers_font' => array('title' => __('Font numbers', 'yit'), 'description' => __('The font for the numbers.', 'yit'), 'type' => 'typography', 'std' => array('size' => 50, 'unit' => 'px', 'family' => 'Open Sans', 'style' => 'extra-bold', 'color' => '#422d2d')), 'yith_prelaunch_labels_font' => array('title' => __('Font labels', 'yit'), 'description' => __('The font for the labels.', 'yit'), 'type' => 'typography', 'std' => array('size' => 15, 'unit' => 'px', 'family' => 'Open Sans', 'style' => 'regular', 'color' => '#6d6c6c')), 'yith_prelaunch_countdown_message' => array('title' => __('Countdown Message', 'yit'), 'description' => __('The message displayed before countdown. You can also use HTML code.', 'yit'), 'type' => 'textarea', 'std' => __("TIME LEFT UNTIL LAUNCHNG:", 'yit')), 'yith_prelaunch_countdown_message_font' => array('title' => __('Coundown font', 'yit'), 'description' => __('The font for the countdown message.', 'yit'), 'type' => 'typography', 'std' => array('size' => 20, 'unit' => 'px', 'family' => 'Open Sans', 'style' => 'bold', 'color' => '#6d6c6c')))))), 'newsletter' => array('label' => __('Newsletter', 'yit'), 'sections' => array('newsletter' => array('title' => __('Newsletter', 'yit'), 'description' => __('Add a newsletter form in your prelaunch mode page.', 'yit'), 'fields' => array('yith_prelaunch_enable_newsletter_form' => array('title' => __('Enable Newsletter form', 'yit'), 'description' => __('Choose if you want to enable the newsletter form in the prelaunch mode page.', 'yit'), 'type' => 'checkbox', 'std' => true), 'yith_prelaunch_newsletter_email_font' => array('title' => __('Newsletter Email Font', 'yit'), 'description' => __('Choose the font type, size and color for the email input field.', 'yit'), 'type' => 'typography', 'std' => array('size' => 11, 'unit' => 'px', 'family' => 'Open Sans', 'style' => 'regular', 'color' => '#b6b6b6')), 'yith_prelaunch_newsletter_submit_font' => array('title' => __('Newsletter Submit Font', 'yit'), 'description' => __('Choose the font type, size and color for the email submit.', 'yit'), 'type' => 'typography', 'std' => array('size' => 11, 'unit' => 'px', 'family' => 'Open Sans', 'style' => 'bold', 'color' => '#ffffff')), 'yith_prelaunch_newsletter_submit_background' => array('title' => __('Newsletter submit background', 'yit'), 'description' => __('The submit button background.', 'yit'), 'type' => 'colorpicker', 'std' => '#a12418'), 'yith_prelaunch_newsletter_submit_border' => array('title' => __('Newsletter submit border', 'yit'), 'description' => __('The submit button border.', 'yit'), 'type' => 'colorpicker', 'std' => '#a12418'), 'yith_prelaunch_newsletter_submit_background_hover' => array('title' => __('Newsletter submit hover background', 'yit'), 'description' => __('The submit button hover background.', 'yit'), 'type' => 'colorpicker', 'std' => '#ae4a14'), 'yith_prelaunch_newsletter_submit_border_hover' => array('title' => __('Newsletter submit border hover', 'yit'), 'description' => __('The submit button border on hover.', 'yit'), 'type' => 'colorpicker', 'std' => '#ae4a14'), 'yith_prelaunch_newsletter_submit_font_color_hover' => array('title' => __('Newsletter submit font color hover', 'yit'), 'description' => __('The submit font color on hover.', 'yit'), 'type' => 'colorpicker', 'std' => '#ffffff'), 'yith_prelaunch_newsletter_title' => array('title' => __('Title', 'yit'), 'description' => __('The title displayed above the newsletter form.', 'yit'), 'type' => 'text', 'std' => __('STAY UPDATED', 'yit')))), 'newsletter_configuration' => array('title' => __('Form configuration', 'yit'), 'description' => __('Configure the form and each field, to integrate the newsletter features of an external service.', 'yit'), 'fields' => array('yith_prelaunch_newsletter_action' => array('title' => __('Action URL', 'yit'), 'description' => __('Set the action url of the form.', 'yit'), 'type' => 'text', 'std' => ''), 'yith_prelaunch_newsletter_method' => array('title' => __('Form method', 'yit'), 'description' => __('Set the method for the form request.', 'yit'), 'type' => 'select', 'options' => array('POST' => 'POST', 'GET' => 'GET'), 'std' => 'POST'), 'yith_prelaunch_newsletter_email_label' => array('title' => __('"Email" field label', 'yit'), 'description' => __('The label for the email field', 'yit'), 'type' => 'text', 'std' => __('Insert your mail address', 'yit')), 'yith_prelaunch_newsletter_email_name' => array('title' => __('"Email" field name', 'yit'), 'description' => __('The "name" attribute for the email field', 'yit'), 'type' => 'text', 'std' => 'email'), 'yith_prelaunch_newsletter_submit_label' => array('title' => __('Submit button label', 'yit'), 'description' => __('The label for the submit button', 'yit'), 'type' => 'text', 'std' => __('SUBSCRIBE', 'yit')), 'yith_prelaunch_newsletter_hidden_fields' => array('title' => __('Newsletter Hidden fields', 'yit'), 'description' => __('Set the hidden fields to include in the form. Use the form: field1=value1&field2=value2&field3=value3', 'yit'), 'type' => 'text', 'std' => ''))))), 'socials' => array('label' => __('Socials', 'yit'), 'sections' => array('logo' => array('title' => __('Set the socials', 'yit'), 'description' => __("You can set here the url of your social accounts (you can leave empty if you don't want to show the social icon)", 'yit'), 'fields' => array('yith_prelaunch_socials_facebook' => array('title' => __('Facebook', 'yit'), 'description' => __('Set the URL of your facebook profile', 'yit'), 'type' => 'text', 'std' => ''), 'yith_prelaunch_socials_twitter' => array('title' => __('Twitter', 'yit'), 'description' => __('Set the URL of your twitter profile', 'yit'), 'type' => 'text', 'std' => ''), 'yith_prelaunch_socials_gplus' => array('title' => __('Google+', 'yit'), 'description' => __('Set the URL of your Google+ profile', 'yit'), 'type' => 'text', 'std' => ''), 'yith_prelaunch_socials_youtube' => array('title' => __('Youtube', 'yit'), 'description' => __('Set the URL of your youtube profile', 'yit'), 'type' => 'text', 'std' => ''), 'yith_prelaunch_socials_rss' => array('title' => __('RSS', 'yit'), 'description' => __('Set the URL of your RSS feed', 'yit'), 'type' => 'text', 'std' => ''), 'yith_prelaunch_socials_skype' => array('title' => __('Skype', 'yit'), 'description' => __('Set the username of your skype account', 'yit'), 'type' => 'text', 'std' => ''), 'yith_prelaunch_socials_email' => array('title' => __('Email', 'yit'), 'description' => __('Write here your email address', 'yit'), 'type' => 'text', 'std' => ''), 'yith_prelaunch_socials_behance' => array('title' => __('Behance', 'yit'), 'description' => __('Set the URL of your Behance profile', 'yit'), 'type' => 'text', 'std' => ''), 'yith_prelaunch_socials_dribble' => array('title' => __('Dribble', 'yit'), 'description' => __('Set the URL of your dribble profile', 'yit'), 'type' => 'text', 'std' => ''), 'yith_prelaunch_socials_flickr' => array('title' => __('FlickR', 'yit'), 'description' => __('Set the URL of your Flickr profile', 'yit'), 'type' => 'text', 'std' => ''), 'yith_prelaunch_socials_instagram' => array('title' => __('Instagram', 'yit'), 'description' => __('Set the URL of your instagram profile', 'yit'), 'type' => 'text', 'std' => ''), 'yith_prelaunch_socials_pinterest' => array('title' => __('Pinterest', 'yit'), 'description' => __('Set the URL of your Pinterest profile', 'yit'), 'type' => 'text', 'std' => ''), 'yith_prelaunch_socials_tumblr' => array('title' => __('Tumblr', 'yit'), 'description' => __('Set the URL of your Tumblr profile', 'yit'), 'type' => 'text', 'std' => ''), 'yith_prelaunch_socials_linkedin' => array('title' => __('LinkedIn', 'yit'), 'description' => __('Set the URL of your LinkedIn profile', 'yit'), 'type' => 'text', 'std' => ''), 'yith_prelaunch_socials_icon_color' => array('title' => __('Icon Color', 'yit'), 'description' => __('Select the social icons color ', 'yit'), 'type' => 'colorpicker', 'std' => '#b1b1b1'), 'yith_prelaunch_socials_icon_color_hover' => array('title' => __('Icon Color Hover', 'yit'), 'description' => __('Select the social icons color in hover', 'yit'), 'type' => 'colorpicker', 'std' => '#4b4b4b'), 'yith_prelaunch_socials_tooltip_box_color' => array('title' => __('Tolltip Box Color', 'yit'), 'description' => __('Select the tooltip box and arrow color', 'yit'), 'type' => 'colorpicker', 'std' => '#a12418'), 'yith_prelaunch_socials_tooltip_text_color' => array('title' => __('Tolltip Text Color', 'yit'), 'description' => __('Select the tooltip text color', 'yit'), 'type' => 'colorpicker', 'std' => '#ffffff'))))));
示例#5
0
<?php

/**
 * Main admin class
 *
 * @author Your Inspiration Themes
 * @package YITH Maintenance Mode
 * @version 1.1.2
 */
if (!defined('YITH_MAINTENANCE')) {
    exit;
}
// Exit if accessed directly
global $yith_maintenance_options;
$yith_maintenance_options = array('general' => array('label' => __('General', 'yit'), 'sections' => array('general' => array('title' => __('General Settings', 'yit'), 'description' => '', 'fields' => array('yith_maintenance_enable' => array('title' => __('Enable Maintenance Mode', 'yit'), 'description' => __('Enable the splash page to lets users to know the blog is down for maintenance. (Default: Off) ', 'yit'), 'type' => 'checkbox', 'std' => false), 'yith_maintenance_roles' => array('title' => __('Roles', 'yit'), 'description' => __('The user roles enabled to see the frontend. Check a role to enable it to show the website with maintenance mode active.', 'yit'), 'type' => 'checkboxes', 'options' => yit_wp_roles(), 'std' => array('administrator')), 'yith_maintenance_http_status' => array('title' => __('HTTP Status Code', 'yit'), 'description' => __("You can set to send the HTTP status code, to say the status of the page and can tell to Google that this page isn't ready yet and cause your site not to be listed until this plugin is disabled.", 'yit'), 'type' => 'select', 'options' => array(200 => 'HTTP 200 - Ok', 301 => 'HTTP 301 - Redirect', 403 => 'HTTP 403 - Forbidden', 503 => 'HTTP 503 - Service Unavailable'), 'std' => 200), 'yith_maintenance_skin' => array('title' => __('Choose a skin for the maintenance mode', 'yit'), 'description' => __("You can choose from 4 different skins to make your maintenance mode unique.", 'yit'), 'type' => 'skin', 'path' => YITH_MAINTENANCE_URL . '/assets/images/', 'options' => apply_filters('yit_maintenance_mode_skin_options', array('skin1' => __('Skin 1', 'yit'), 'skin2' => __('Skin 2', 'yit'), 'skin3' => __('Skin 3', 'yit'), 'skin4' => __('Skin 4', 'yit'))), 'std' => apply_filters('yit_maintenance_mode_skin_std', 'skin1')), 'yith_maintenance_message' => array('title' => __('Message', 'yit'), 'description' => __('The message displayed. You can also use HTML code.', 'yit'), 'type' => 'textarea', 'std' => '<h3>' . __('OOPS! WE ARE NOT READY YET!', 'yit') . '</h3>
<p>' . __("Hello there! We are not ready yet, but why don't you leave your email address  and we'll let you know  as soon as we're in business!", 'yit') . '</p>'), 'yith_maintenance_custom_style' => array('title' => 'Custom style', 'description' => __('Insert here your custom CSS style.', 'yit'), 'type' => 'textarea', 'std' => '', 'in_skin' => false), 'yith_maintenance_mascotte' => array('title' => 'Mascotte', 'description' => __('If you want, you can set here a mascotte image to show above the main box, in the right side. This option is only available for skin 1.', 'yit'), 'type' => 'upload', 'std' => YITH_MAINTENANCE_URL . 'assets/images/mascotte.png'))), 'typography' => array('title' => __('Typography', 'yit'), 'description' => '', 'fields' => array('yith_maintenance_title_font' => array('title' => __('Title font of message', 'yit'), 'description' => __('Choose the font type, size and color for the titles inside the message text.', 'yit'), 'type' => 'typography', 'std' => array('size' => 18, 'unit' => 'px', 'family' => 'Open Sans', 'style' => 'bold', 'color' => '#666666')), 'yith_maintenance_paragraph_font' => array('title' => __('Paragraph font of message', 'yit'), 'description' => __('Choose the font type, size and color for the paragraphs inside the message text.', 'yit'), 'type' => 'typography', 'std' => array('size' => 13, 'unit' => 'px', 'family' => 'Open Sans', 'style' => 'regular', 'color' => '#666666')))), 'colors' => array('title' => __('Colors', 'yit'), 'description' => '', 'fields' => array('yith_maintenance_border_top' => array('title' => __('Border top color', 'yit'), 'description' => __('Choose the color for the big border top of the main box. This option is only available for skin 1.', 'yit'), 'type' => 'colorpicker', 'std' => '#fcd358'))))), 'background' => array('label' => __('Background', 'yit'), 'sections' => array('background' => array('title' => __('Background Settings', 'yit'), 'description' => __('Customize the background of the page', 'yit'), 'fields' => array('yith_maintenance_background_image' => array('title' => __('Background image', 'yit'), 'description' => __('Upload or choose from your media library the background image', 'yit'), 'type' => 'upload', 'std' => YITH_MAINTENANCE_URL . 'assets/images/bg-pattern.png'), 'yith_maintenance_background_color' => array('title' => __('Background Color', 'yit'), 'description' => __('Choose a background color', 'yit'), 'type' => 'colorpicker', 'std' => ''), 'yith_maintenance_background_repeat' => array('title' => __('Background Repeat', 'yit'), 'description' => __('Select the repeat mode for the background image.', 'yit'), 'type' => 'select', 'std' => apply_filters('yith_maintenance_background_repeat_std', 'repeat'), 'options' => array('repeat' => __('Repeat', 'yit'), 'repeat-x' => __('Repeat Horizontally', 'yit'), 'repeat-y' => __('Repeat Vertically', 'yit'), 'no-repeat' => __('No Repeat', 'yit'))), 'yith_maintenance_background_position' => array('title' => __('Background Position', 'yit'), 'description' => __('Select the position for the background image.', 'yit'), 'type' => 'select', 'options' => array('center' => __('Center', 'yit'), 'top left' => __('Top left', 'yit'), 'top center' => __('Top center', 'yit'), 'top right' => __('Top right', 'yit'), 'bottom left' => __('Bottom left', 'yit'), 'bottom center' => __('Bottom center', 'yit'), 'bottom right' => __('Bottom right', 'yit')), 'std' => apply_filters('yith_maintenance_background_position_std', 'top left')), 'yith_maintenance_background_attachment' => array('title' => __('Background Attachment', 'yit'), 'description' => __('Select the attachment for the background image.', 'yit'), 'type' => 'select', 'options' => array('scroll' => __('Scroll', 'yit'), 'fixed' => __('Fixed', 'yit')), 'std' => apply_filters('yith_maintenance_background_attachment_std', 'scroll')))))), 'logo' => array('label' => __('Logo', 'yit'), 'sections' => array('logo' => array('title' => __('Logo Settings', 'yit'), 'description' => __('Customize the logo', 'yit'), 'fields' => array('yith_maintenance_logo_image' => array('title' => __('Logo image', 'yit'), 'description' => __('Upload or choose from your media library the logo image', 'yit'), 'type' => 'upload', 'std' => YITH_MAINTENANCE_URL . 'assets/images/logo.png'), 'yith_maintenance_logo_tagline' => array('title' => __('Logo tagline', 'yit'), 'description' => __('Set the tagline to show below the logo image', 'yit'), 'type' => 'text', 'std' => ''), 'yith_maintenance_logo_tagline_font' => array('title' => __('Logo tagline font', 'yit'), 'description' => __('Choose the font type, size and color for the tagline text.', 'yit'), 'type' => 'typography', 'std' => array('size' => 15, 'unit' => 'px', 'family' => 'Open Sans', 'style' => 'regular', 'color' => '#999999')))))), 'newsletter' => array('label' => __('Newsletter', 'yit'), 'sections' => array('newsletter' => array('title' => __('Newsletter', 'yit'), 'description' => __('Add a newsletter form in your maintenance mode page.', 'yit'), 'fields' => array('yith_maintenance_enable_newsletter_form' => array('title' => __('Enable Newsletter form', 'yit'), 'description' => __('Choose if you want to enable the newsletter form in the maintenance mode page.', 'yit'), 'type' => 'checkbox', 'std' => true), 'yith_maintenance_newsletter_email_font' => array('title' => __('Newsletter Email Font', 'yit'), 'description' => __('Choose the font type, size and color for the email input field.', 'yit'), 'type' => 'typography', 'std' => array('size' => 12, 'unit' => 'px', 'family' => 'Open Sans', 'style' => 'bold', 'color' => '#a3a3a3')), 'yith_maintenance_newsletter_submit_font' => array('title' => __('Newsletter Submit Font', 'yit'), 'description' => __('Choose the font type, size and color for the email submit.', 'yit'), 'type' => 'typography', 'std' => array('size' => 16, 'unit' => 'px', 'family' => 'Open Sans', 'style' => 'extra-bold', 'color' => '#fff')), 'yith_maintenance_newsletter_submit_background' => array('title' => __('Newsletter submit background', 'yit'), 'description' => __('The submit button background.', 'yit'), 'type' => 'colorpicker', 'std' => '#617291'), 'yith_maintenance_newsletter_submit_background_hover' => array('title' => __('Newsletter submit hover background', 'yit'), 'description' => __('The submit button hover background.', 'yit'), 'type' => 'colorpicker', 'std' => '#3c5072'), 'yith_maintenance_newsletter_title' => array('title' => __('Title', 'yit'), 'description' => __('The title displayed above the newsletter form.', 'yit'), 'type' => 'text', 'std' => ''))), 'newsletter_configuration' => array('title' => __('Form configuration', 'yit'), 'description' => __('Configure the form and each field, to integrate the newsletter features of an external service.', 'yit'), 'fields' => array('yith_maintenance_newsletter_action' => array('title' => __('Action URL', 'yit'), 'description' => __('Set the action url of the form.', 'yit'), 'type' => 'text', 'std' => '', 'in_skin' => false), 'yith_maintenance_newsletter_method' => array('title' => __('Form method', 'yit'), 'description' => __('Set the method for the form request.', 'yit'), 'type' => 'select', 'options' => array('POST' => 'POST', 'GET' => 'GET'), 'std' => 'POST', 'in_skin' => false), 'yith_maintenance_newsletter_email_label' => array('title' => __('"Email" field label', 'yit'), 'description' => __('The label for the email field', 'yit'), 'type' => 'text', 'std' => 'Enter your email address'), 'yith_maintenance_newsletter_email_name' => array('title' => __('"Email" field name', 'yit'), 'description' => __('The "name" attribute for the email field', 'yit'), 'type' => 'text', 'std' => 'email'), 'yith_maintenance_newsletter_submit_label' => array('title' => __('Submit button label', 'yit'), 'description' => __('The label for the submit button', 'yit'), 'type' => 'text', 'std' => __('NOTIFY ME', 'yit')), 'yith_maintenance_newsletter_hidden_fields' => array('title' => __('Newsletter Hidden fields', 'yit'), 'description' => __('Set the hidden fields to include in the form. Use the form: field1=value1&field2=value2&field3=value3', 'yit'), 'type' => 'text', 'std' => ''))))), 'socials' => array('label' => __('Socials', 'yit'), 'sections' => array('logo' => array('title' => __('Set the socials', 'yit'), 'description' => __("You can set here the url of your social accounts (you can leave empty if you don't want to show the social icon)", 'yit'), 'fields' => array('yith_maintenance_socials_facebook' => array('title' => __('Facebook', 'yit'), 'description' => __('Set the URL of your facebook profile', 'yit'), 'type' => 'text', 'std' => '', 'in_skin' => false), 'yith_maintenance_socials_twitter' => array('title' => __('Twitter', 'yit'), 'description' => __('Set the URL of your twitter profile', 'yit'), 'type' => 'text', 'std' => '', 'in_skin' => false), 'yith_maintenance_socials_gplus' => array('title' => __('Google+', 'yit'), 'description' => __('Set the URL of your Google+ profile', 'yit'), 'type' => 'text', 'std' => '', 'in_skin' => false), 'yith_maintenance_socials_youtube' => array('title' => __('Youtube', 'yit'), 'description' => __('Set the URL of your youtube profile', 'yit'), 'type' => 'text', 'std' => '', 'in_skin' => false), 'yith_maintenance_socials_rss' => array('title' => __('RSS', 'yit'), 'description' => __('Set the URL of your RSS feed', 'yit'), 'type' => 'text', 'std' => '', 'in_skin' => false), 'yith_maintenance_socials_skype' => array('title' => __('Skype', 'yit'), 'description' => __('Set the username of your skype account', 'yit'), 'type' => 'text', 'std' => '', 'in_skin' => false), 'yith_maintenance_socials_email' => array('title' => __('Email', 'yit'), 'description' => __('Write here your email address', 'yit'), 'type' => 'text', 'std' => '', 'in_skin' => false), 'yith_maintenance_socials_behance' => array('title' => __('Behance', 'yit'), 'description' => __('Set the URL of your Behance profile', 'yit'), 'type' => 'text', 'std' => '', 'in_skin' => false), 'yith_maintenance_socials_dribble' => array('title' => __('Dribble', 'yit'), 'description' => __('Set the URL of your dribble profile', 'yit'), 'type' => 'text', 'std' => '', 'in_skin' => false), 'yith_maintenance_socials_flickr' => array('title' => __('FlickR', 'yit'), 'description' => __('Set the URL of your Flickr profile', 'yit'), 'type' => 'text', 'std' => '', 'in_skin' => false), 'yith_maintenance_socials_instagram' => array('title' => __('Instagram', 'yit'), 'description' => __('Set the URL of your instagram profile', 'yit'), 'type' => 'text', 'std' => '', 'in_skin' => false), 'yith_maintenance_socials_pinterest' => array('title' => __('Pinterest', 'yit'), 'description' => __('Set the URL of your Pinterest profile', 'yit'), 'type' => 'text', 'std' => '', 'in_skin' => false), 'yith_maintenance_socials_tumblr' => array('title' => __('Tumblr', 'yit'), 'description' => __('Set the URL of your Tumblr profile', 'yit'), 'type' => 'text', 'std' => '', 'in_skin' => false), 'yith_maintenance_socials_linkedin' => array('title' => __('LinkedIn', 'yit'), 'description' => __('Set the URL of your LinkedIn profile', 'yit'), 'type' => 'text', 'std' => '', 'in_skin' => false))))));