File: /mnt/data/dreamssalon-wp-market/wp-content/themes/dreamsalon/inc/options-init.php
<?php
/**
* ReduxFramework Sample Config File
* For full documentation, please visit: http://docs.reduxframework.com/
*/
if (!class_exists('Redux')) {
return;
}
// This is your option name where all the Redux data is stored.
$opt_name = "dreamsalon_theme_options";
// This line is only for altering the demo. Can be easily removed.
/*
*
* --> Used within different fields. Simply examples. Search for ACTUAL DECLARATION for field examples
*
*/
$sampleHTML = '';
if (file_exists(dirname(__FILE__) . '/info-html.html')) {
Redux_Functions::initWpFilesystem();
global $wp_filesystem;
$sampleHTML = $wp_filesystem->get_contents(dirname(__FILE__) . '/info-html.html');
}
// Background Patterns Reader
$sample_patterns_path = ReduxFramework::$_dir . '../sample/patterns/';
$sample_patterns_url = ReduxFramework::$_url . '../sample/patterns/';
$sample_patterns = array();
if (is_dir($sample_patterns_path)) {
if ($sample_patterns_dir = opendir($sample_patterns_path)) {
$sample_patterns = array();
while (($sample_patterns_file = readdir($sample_patterns_dir)) !== false) {
if (stristr($sample_patterns_file, '.png') !== false || stristr($sample_patterns_file, '.jpg') !== false) {
$name = explode('.', $sample_patterns_file);
$name = str_replace('.' . end($name), '', $sample_patterns_file);
$sample_patterns[] = array(
'alt' => $name,
'img' => $sample_patterns_url . $sample_patterns_file
);
}
}
}
}
$theme = wp_get_theme();
$args = array(
'opt_name' => $opt_name,
'display_name' => $theme->get('Name'),
'display_version' => $theme->get('Version'),
'menu_type' => 'submenu',
'allow_sub_menu' => true,
'menu_title' => __('Theme Options', 'dreamsalon'),
'page_title' => __('Theme Options', 'dreamsalon'),
'google_api_key' => '',
'google_update_weekly' => false,
'async_typography' => false,
'admin_bar' => true,
'admin_bar_icon' => 'dashicons-portfolio',
'admin_bar_priority' => 50,
'global_variable' => '',
'dev_mode' => false,
'update_notice' => true,
'customizer' => true,
'page_priority' => null,
'page_parent' => 'themes.php',
'page_permissions' => 'manage_options',
'menu_icon' => '',
'last_tab' => '',
'page_icon' => 'icon-themes',
'page_slug' => 'dreamsalon',
'save_defaults' => true,
'default_show' => false,
'default_mark' => '',
'show_import_export' => true,
'transient_time' => 60 * MINUTE_IN_SECONDS,
'output' => true,
'output_tag' => true,
'database' => '',
'use_cdn' => true,
'hints' => array(
'icon' => 'el el-question-sign',
'icon_position' => 'right',
'icon_color' => 'lightgray',
'icon_size' => 'normal',
'tip_style' => array(
'color' => 'red',
'shadow' => true,
'rounded' => false,
'style' => '',
),
'tip_position' => array(
'my' => 'top left',
'at' => 'bottom right',
),
'tip_effect' => array(
'show' => array(
'effect' => 'slide',
'duration' => '500',
'event' => 'mouseover',
),
'hide' => array(
'effect' => 'slide',
'duration' => '500',
'event' => 'click mouseleave',
),
),
)
);
$args['share_icons'][] = array(
'url' => 'https://www.youtube.com/',
'title' => 'View videos on YouTube',
'icon' => 'el el-youtube'
);
$args['share_icons'][] = array(
'url' => 'https://www.facebook.com/',
'title' => 'Like us on Facebook',
'icon' => 'el el-facebook'
);
Redux::setArgs($opt_name, $args);
$tabs = array(
array(
'id' => 'redux-help-tab-1',
'title' => __('Theme Information 1', 'dreamsalon'),
'content' => __('<p>This is the tab content, HTML is allowed.</p>', 'dreamsalon')
),
array(
'id' => 'redux-help-tab-2',
'title' => __('Theme Information 2', 'dreamsalon'),
'content' => __('<p>This is the tab content, HTML is allowed.</p>', 'dreamsalon')
)
);
Redux::set_help_tab($opt_name, $tabs);
$content = __('<p>This is the sidebar content, HTML is allowed.</p>', 'dreamsalon');
Redux::set_help_sidebar($opt_name, $content);
Redux::setSection($opt_name, array(
'title' => __('Header', 'dreamsalon'),
'id' => 'header',
'desc' => __('All Website Header settings will be changeable from here', 'dreamsalon'),
'icon' => 'el el-home',
'fields' => array(
array(
'id' => 'logo_dark',
'type' => 'media',
'url' => true,
'title' => __('Logo ', 'dreamsalon'),
'compiler' => 'true',
'preview_size' => 'full',
'mode' => false,
'default' => array('url' => trailingslashit(get_template_directory_uri()) . 'assets/images/logo-default.svg'),
),
array(
'id' => 'frontend_light',
'type' => 'media',
'url' => true,
'title' => __('Logo Light', 'dreamsalon'),
'compiler' => 'true',
'preview_size' => 'full',
'mode' => false,
'default' => array('url' => trailingslashit(get_template_directory_uri()) . 'assets/images/logo-white.svg'),
),
array(
'id' => 'breadcrumb_image_1',
'type' => 'media',
'url' => true,
'title' => __('Breadcrumb Image 1', 'dreamsalon'),
'compiler' => 'true',
'preview_size' => 'full',
'mode' => false,
'default' => array('url' => trailingslashit(get_template_directory_uri()) . 'assets/images/breadcrumb-img-01.png'),
),
array(
'id' => 'breadcrumb_image_2',
'type' => 'media',
'url' => true,
'title' => __('Breadcrumb Image 2', 'dreamsalon'),
'compiler' => 'true',
'preview_size' => 'full',
'mode' => false,
'default' => array('url' => trailingslashit(get_template_directory_uri()) . 'assets/images/breadcrumb-img-02.png'),
),
array(
'id' => 'breadcrumb_image_3',
'type' => 'media',
'url' => true,
'title' => __('Breadcrumb Image 3', 'dreamsalon'),
'compiler' => 'true',
'preview_size' => 'full',
'mode' => false,
'default' => array('url' => trailingslashit(get_template_directory_uri()) . 'assets/images/breadcrumb-shadow-01.png'),
),
array(
'id' => 'breadcrumb_image_4',
'type' => 'media',
'url' => true,
'title' => __('Breadcrumb Image 4', 'dreamsalon'),
'compiler' => 'true',
'preview_size' => 'full',
'mode' => false,
'default' => array('url' => trailingslashit(get_template_directory_uri()) . 'assets/images/breadcrumb-shadow-02.png'),
),
array(
'id' => 'breadcrumb_image_5',
'type' => 'media',
'url' => true,
'title' => __('Breadcrumb Image 5', 'dreamsalon'),
'compiler' => 'true',
'preview_size' => 'full',
'mode' => false,
'default' => array('url' => trailingslashit(get_template_directory_uri()) . 'assets/images/breadcrumb-shadow-03.png'),
),
array(
'id' => 'header_style',
'type' => 'select',
'title' => esc_html__('Header Style', 'dreamsalon'),
'options' => array(
'default' => esc_html__('Default', 'dreamsalon'),
'style1' => esc_html__('Style 1', 'dreamsalon'),
'style2' => esc_html__('Style 2', 'dreamsalon'),
'style3' => esc_html__('Style 3', 'dreamsalon'),
),
'default' => 'default',
),
array(
'id' => 'contact_phone',
'type' => 'text',
'title' => esc_html__('Phone', 'dreamsalon'),
'default' => '+1 56565 56594',
'required' => array('header_style', '=', array('style3')),
),
array(
'id' => 'contact_email',
'type' => 'text',
'title' => esc_html__('Email', 'dreamsalon'),
'default' => '[email protected]',
'required' => array('header_style', '=', array('style3')),
),
array(
'id' => 'contact_address',
'type' => 'text',
'title' => esc_html__('Address', 'dreamsalon'),
'default' => '5112 N Tongass Hwy, Alaska, 99901.',
'required' => array('header_style', '=', array('style3')),
),
array(
'id' => 'header_login_link',
'type' => 'select',
'title' => __('Select Login Page', 'dreamsalon'),
'data' => 'pages'
),
array(
'id' => 'header_register_link',
'type' => 'select',
'title' => __('Select Register Page', 'dreamsalon'),
'data' => 'pages'
),
array(
'id' => 'header_booking_link',
'type' => 'select',
'title' => __('Select Booking Page', 'dreamsalon'),
'data' => 'pages'
),
array(
'id' => 'terms_conditions_page',
'type' => 'select',
'title' => __('Select Terms & Conditions Page', 'dreamsalon'),
'subtitle' => __('This page link will be used in the registration form agreement.', 'dreamsalon'),
'data' => 'pages'
),
array(
'id' => 'header_forget_link',
'type' => 'select',
'title' => __('Select Forget Password Page', 'dreamsalon'),
'data' => 'pages'
),
array(
'id' => 'header_changepass_link',
'type' => 'select',
'title' => __('Select Change Password Page', 'dreamsalon'),
'data' => 'pages'
),
)
));
Redux::setSection($opt_name, array(
'title' => __('Emails', 'dreamsalon'),
'icon' => 'fa fa-envelope',
'fields' => array(
array(
'title' => __('"From name" in email', 'dreamsalon'),
'subtitle' => __('The name from who the email is received, by default it is your site name.', 'dreamsalon'),
'id' => 'emails_name',
'default' => get_bloginfo('name'),
'type' => 'text',
),
array(
'title' => __('"From" email ', 'dreamsalon'),
'subtitle' => __('This will act as the "from" and "reply-to" address. This emails should match your domain address', 'dreamsalon'),
'id' => 'emails_from_email',
'default' => get_bloginfo('admin_email'),
'type' => 'text',
),
array(
'id' => 'email_logo',
'title' => __('Logo for emails', 'dreamsalon'),
'subtitle' => __('Set here logo for emails, if nothing is set emails will be using default site logo', 'dreamsalon'),
'type' => 'media',
'default' => '',
'placeholder' => ''
),
array(
'title' => __('<span style="font-size: 20px;">Registration/Welcome email for new users</span>', 'dreamsalon'),
'type' => 'info',
'id' => 'header_welcome',
'desc' => '' . __('Available tags are: ', 'dreamsalon') . '<strong>{user_mail}, {user_name}, {site_name}, {login}</strong>',
),
// array(
// 'title' => __('Disable Welcome email to user (enabled by default)', 'dreamsalon'),
// 'subtitle' => __('Check this checkbox to disable sending emails to new users', 'dreamsalon'),
// 'id' => 'welcome_email_disable',
// 'type' => 'checkbox',
// ),
array(
'title' => __('Enable Welcome email to user', 'dreamsalon'),
'subtitle' => __('Check this checkbox to enable sending forgot password emails', 'dreamsalon'),
'id' => 'welcome_email_enabled',
'type' => 'checkbox',
),
array(
'title' => __('Welcome Email Subject', 'dreamsalon'),
'default' => __('Welcome to {site_name}', 'dreamsalon'),
'id' => 'listing_welcome_email_subject',
'type' => 'text',
),
array(
'title' => __('Welcome Email Content', 'dreamsalon'),
'default' => trim(preg_replace('/\t+/', '', "Hi {user_name},<br>
Welcome to our website.<br>
<ul>
<li>Username: {user_name}</li>
<li>Login: {login}</li>
</ul>
<br>
Thank you.
<br>")),
'id' => 'listing_welcome_email_content',
'type' => 'editor',
),
array(
'title' => __('<span style="font-size: 20px;">Forgot Password Notification Email</span>', 'dreamsalon'),
'type' => 'info',
'id' => 'forgot_password',
'desc' => '' . __('Available tags are: ', 'dreamsalon') . '<strong>{user_name}, {reset_link}</strong>',
),
array(
'title' => __('Enable Forgot Password Notification Email', 'dreamsalon'),
'subtitle' => __('Check this checkbox to enable sending forgot password emails', 'dreamsalon'),
'id' => 'forgot_password_email_enabled',
'type' => 'checkbox',
),
array(
'title' => __('Forgot Password Notification Email Subject', 'dreamsalon'),
'default' => __('Password Reset Request', 'dreamsalon'),
'id' => 'forgot_password_email_subject',
'type' => 'text',
),
array(
'title' => __('Forgot Password Notification Email Content', 'dreamsalon'),
'default' => trim(preg_replace('/\t+/', '', "<p>Hi {user_name},</p>
<p>We received a request to reset your password. If you requested this change, please click the link below to reset your password:</p>
<div class='button'>
<a href='{reset_link}'>Reset Password</a><br>
</div>
<p>If you did not request a password reset, please ignore this email.</p>
<p>Thank you.</p>
")),
'id' => 'forgot_password_email_content',
'type' => 'editor',
),
// Login OTP Settings
)
));
Redux::setSection($opt_name, array(
'title' => __('Service Pages', 'dreamsalon'),
'id' => 'salon_pages',
'desc' => __('Service related page settings', 'dreamsalon'),
'icon' => 'el el-list-alt',
'fields' => array(
array(
'id' => 'header_add_services_page',
'type' => 'select',
'title' => __('Select Add Services Page', 'dreamsalon'),
'data' => 'pages',
),
array(
'id' => 'salon_grid_page',
'type' => 'select',
'title' => __('Service Grid Page', 'dreamsalon'),
'subtitle' => __('Select the page for Service grid layout', 'dreamsalon'),
'data' => 'pages'
),
array(
'id' => 'salon_list_page',
'type' => 'select',
'title' => __('Service List Page', 'dreamsalon'),
'subtitle' => __('Select the page for Service list layout', 'dreamsalon'),
'data' => 'pages'
),
// array(
// 'id' => 'author_salons_page',
// 'type' => 'select',
// 'title' => __('Author salons Page', 'dreamsalon'),
// 'subtitle' => __('Select the page that uses the Author salons Template', 'dreamsalon'),
// 'data' => 'pages'
// ),
array(
'id' => 'dashboard_page',
'type' => 'select',
'title' => __('Main Dashboard Page', 'dreamsalon'),
'subtitle' => __('This page should contain [dreamsalon_dashboard] shortcode', 'dreamsalon'),
'data' => 'pages'
),
array(
'id' => 'booking_page',
'type' => 'select',
'title' => __('Booking Page', 'dreamsalon'),
'subtitle' => __('This page should contain [dreamsalon_booking] shortcode', 'dreamsalon'),
'data' => 'pages'
),
)
));
Redux::setSection($opt_name, array(
'title' => __('Footer', 'dreamsalon'),
'id' => 'footers',
'customizer_width' => '500px',
'icon' => 'el el-edit',
'fields' => array(
array(
'id' => 'footer_style',
'type' => 'select',
'title' => esc_html__('Footer Style', 'dreamsalon'),
'options' => array(
'style1' => esc_html__('Style 1', 'dreamsalon'),
'style2' => esc_html__('Style 2', 'dreamsalon'),
'style3' => esc_html__('Style 3', 'dreamsalon'),
),
'default' => 'style1',
),
array(
'id' => 'footer_style1_logo',
'type' => 'text',
'title' => __('Footer Logo Style 1 Bottom', 'dreamsalon'),
'default' => 'DreamSalon',
'required' => array('footer_style', '=', array('style1')),
),
array(
'id' => 'footer_main_top',
'title' => 'Footer Top',
'type' => 'section',
'indent' => true,
'required' => array('footer_style', '=', array('style3')),
),
array(
'id' => 'footer_style3_newsletter_title',
'type' => 'text',
'title' => esc_html__('Footer Newsletter Title', 'dreamsalon'),
'default' => 'Subscribe to Our Newsletter',
'required' => array('footer_style', '=', array('style3')),
),
array(
'id' => 'footer_style3_newsletter',
'type' => 'text',
'title' => esc_html__('Footer Style 3 Subscribe Shortcode', 'dreamsalon'),
'subtitle' => esc_html__('Enter a Contact Form 7 shortcode, e.g. [contact-form-7 id="123" title="Footer Subscribe"]', 'dreamsalon'),
'required' => array('footer_style', '=', array('style3')),
),
array(
'id' => 'footer_style3_top_title',
'type' => 'text',
'title' => esc_html__('Address Title', 'dreamsalon'),
'default' => 'Get In Touch',
'required' => array('footer_style', '=', array('style3')),
),
array(
'id' => 'footer_style3_top_address_title',
'type' => 'text',
'title' => esc_html__('Footer Location Title', 'dreamsalon'),
'default' => 'Location',
'required' => array('footer_style', '=', array('style3')),
),
array(
'id' => 'footer_style3_top_address',
'type' => 'text',
'title' => esc_html__('Footer Address', 'dreamsalon'),
'default' => 'Broadway, 24th Floor, NY, 10013',
'required' => array('footer_style', '=', array('style1', 'style3')),
),
array(
'id' => 'footer_style3_top_phone',
'type' => 'text',
'title' => esc_html__('Footer Phone', 'dreamsalon'),
'default' => '+1 56566 56998',
'required' => array('footer_style', '=', array('style1', 'style3')),
),
array(
'id' => 'footer_style3_top_email',
'type' => 'text',
'title' => esc_html__('Footer Email', 'dreamsalon'),
'default' => '[email protected]',
'required' => array('footer_style', '=', array('style1', 'style3')),
),
array(
'id' => 'footer_main_column_1',
'title' => 'Footer Column 1',
'type' => 'section',
'indent' => true,
),
array(
'id' => 'footer_style1_column1_title',
'type' => 'text',
'title' => esc_html__('Footer Column 1 Title', 'dreamsalon'),
'default' => 'Company',
'required' => array('footer_style', '=', array('style1')),
),
array(
'id' => 'footer_style1_column1_menus',
'type' => 'select',
'title' => __('Select Footer Column 1 Menu', 'dreamsalon'),
'multi' => true,
'sortable' => true,
'data' => 'menus',
'args' => array(
'save_as' => 'id',
),
'default' => array(),
'required' => array('footer_style', '=', array('style1')),
),
array(
'id' => 'footer_style2_text_slide',
'type' => 'slides',
'title' => esc_html__('Footer Column 1 Items', 'dreamsalon'),
'required' => array('footer_style', '=', array('style2')),
'placeholder' => array(
'title' => esc_html__('Enter Title', 'dreamsalon'),
'description' => '',
'url' => '',
),
'show' => array(
'title' => true,
'description' => false,
'url' => false,
'image' => false,
),
'default' => array(
array(
'title' => 'Pages',
),
array(
'title' => 'About Us',
),
),
),
array(
'id' => 'footer_style2_logo',
'type' => 'media',
'url' => true,
'title' => __('Footer Logo', 'dreamsalon'),
'compiler' => 'true',
'default' => array('url' => trailingslashit(get_template_directory_uri()) . 'assets/images/footer-logo.svg'),
'required' => array('footer_style', '=', array('style2')),
),
array(
'id' => 'footer_style2_column1_descrition',
'type' => 'text',
'title' => esc_html__('Footer Description', 'dreamsalon'),
'default' => 'Professional hair services designed for your lifestyle.',
'required' => array('footer_style', '=', array('style2')),
),
array(
'id' => 'footer_style3_column1_title',
'type' => 'text',
'title' => esc_html__('Footer Column 1 Title', 'dreamsalon'),
'default' => 'Company',
'required' => array('footer_style', '=', array('style3')),
),
array(
'id' => 'footer_style3_column1_menus',
'type' => 'select',
'title' => __('Select Footer Column 1 Menus', 'dreamsalon'),
'multi' => true,
'sortable' => true,
'data' => 'menus',
'args' => array(
'save_as' => 'id',
),
'default' => array(),
'required' => array('footer_style', '=', array('style3')),
),
array(
'id' => 'footer_main_column_2',
'title' => 'Footer Column 2',
'type' => 'section',
'indent' => true,
),
array(
'id' => 'footer_style1_column2_title',
'type' => 'text',
'title' => esc_html__('Footer Column 2 Title', 'dreamsalon'),
'default' => 'Company',
'required' => array('footer_style', '=', array('style1')),
),
array(
'id' => 'footer_style2_column2_title',
'type' => 'text',
'title' => esc_html__('Footer Column 2 Title', 'dreamsalon'),
'default' => 'Company',
'required' => array('footer_style', '=', array('style2')),
),
array(
'id' => 'footer_style3_column2_title',
'type' => 'text',
'title' => esc_html__('Footer Column 2 Title', 'dreamsalon'),
'default' => 'Company',
'required' => array('footer_style', '=', array('style3')),
),
array(
'id' => 'footer_style3_column2_menus',
'type' => 'select',
'title' => __('Select Footer Column 2 Menus', 'dreamsalon'),
'multi' => true,
'sortable' => true,
'data' => 'menus',
'args' => array(
'save_as' => 'id',
),
'default' => array(),
'required' => array('footer_style', '=', array('style3')),
),
array(
'id' => 'footer_style1_column2_menus',
'type' => 'select',
'title' => __('Select Footer Column 2 Menus', 'dreamsalon'),
'multi' => true,
'sortable' => true,
'data' => 'menus',
'args' => array(
'save_as' => 'id',
),
'default' => array(),
'required' => array('footer_style', '=', array('style1')),
),
array(
'id' => 'footer_style2_column2_menus',
'type' => 'select',
'title' => __('Select Footer Column 2 Menus', 'dreamsalon'),
'multi' => true,
'sortable' => true,
'data' => 'menus',
'args' => array(
'save_as' => 'id',
),
'required' => array('footer_style', '=', array('style2')),
),
array(
'id' => 'footer_main_column_3',
'title' => 'Footer Column 3',
'type' => 'section',
'indent' => true,
),
array(
'id' => 'footer_style1_column3_title',
'type' => 'text',
'title' => esc_html__('Footer Column 3 Title', 'dreamsalon'),
'default' => 'Useful Links',
'required' => array('footer_style', '=', array('style1')),
),
array(
'id' => 'footer_style2_column3_title',
'type' => 'text',
'title' => esc_html__('Footer Column 3 Title', 'dreamsalon'),
'default' => 'Destinations',
'required' => array('footer_style', '=', array('style2')),
),
array(
'id' => 'footer_style1_column3_menus',
'type' => 'select',
'title' => __('Select Footer Column 3 Menus', 'dreamsalon'),
'multi' => true,
'sortable' => true,
'data' => 'menus',
'args' => array(
'save_as' => 'id',
),
'default' => array(),
'required' => array('footer_style', '=', array('style1')),
),
array(
'id' => 'footer_style2_column3_menus',
'type' => 'select',
'title' => __('Select Footer Column 3 Menus', 'dreamsalon'),
'multi' => true,
'sortable' => true,
'data' => 'menus',
'args' => array(
'save_as' => 'id',
),
'default' => array(),
'required' => array('footer_style', '=', array('style2')),
),
array(
'id' => 'footer_style3_column3_title',
'type' => 'text',
'title' => esc_html__('Footer Column 3 Title', 'dreamsalon'),
'default' => 'Destinations',
'required' => array('footer_style', '=', array('style3')),
),
array(
'id' => 'footer_style3_column3_menus',
'type' => 'select',
'title' => __('Select Footer Column 3 Menus', 'dreamsalon'),
'multi' => true,
'sortable' => true,
'data' => 'menus',
'args' => array(
'save_as' => 'id',
),
'default' => array(),
'required' => array('footer_style', '=', array('style3')),
),
array(
'id' => 'footer_main_column_4',
'title' => 'Footer Column 4',
'type' => 'section',
'indent' => true,
'required' => array('footer_style', '=', array('style1', 'style2')),
),
array(
'id' => 'footer_style1_column4_title',
'type' => 'text',
'title' => esc_html__('Footer Column 4 Title', 'dreamsalon'),
'default' => 'Support',
'required' => array('footer_style', '=', array('style1')),
),
array(
'id' => 'footer_style2_column4_title',
'type' => 'text',
'title' => esc_html__('Footer Column 4 Title', 'dreamsalon'),
'default' => 'Support',
'required' => array('footer_style', '=', array('style2')),
),
array(
'id' => 'footer_style1_newsletter',
'type' => 'text',
'title' => esc_html__('Footer Style 3 Subscribe Shortcode', 'dreamsalon'),
'subtitle' => esc_html__('Enter a Contact Form 7 shortcode, e.g. [contact-form-7 id="123" title="Footer Subscribe"]', 'dreamsalon'),
'required' => array('footer_style', '=', 'style1'),
),
array(
'id' => 'footer_style1_column4_follow_us',
'type' => 'text',
'title' => esc_html__('Follow Us', 'dreamsalon'),
'default' => 'Support',
'required' => array('footer_style', '=', array('style1')),
),
array(
'id' => 'footer_style2_column4_address',
'type' => 'text',
'title' => esc_html__('Footer Style 2 Address', 'dreamsalon'),
'subtitle' => esc_html__('Broadway, 24th Floor, NY, 10013', 'dreamsalon'),
'required' => array('footer_style', '=', 'style2'),
),
array(
'id' => 'footer_style2_column4_phone',
'type' => 'text',
'title' => esc_html__('Footer Style 2 Phone', 'dreamsalon'),
'subtitle' => esc_html__('+1 56566 56998', 'dreamsalon'),
'required' => array('footer_style', '=', 'style2'),
),
array(
'id' => 'footer_style2_column4_mail',
'type' => 'text',
'title' => esc_html__('Footer Style 2 Email', 'dreamsalon'),
'subtitle' => esc_html__('[email protected]', 'dreamsalon'),
'required' => array('footer_style', '=', 'style2'),
),
array(
'id' => 'footer_style2_column4_whours',
'type' => 'text',
'title' => esc_html__('Footer Style 2 Working Hours', 'dreamsalon'),
'subtitle' => esc_html__('Working Hours: 9 AM - 10 PM', 'dreamsalon'),
'required' => array('footer_style', '=', 'style2'),
),
array(
'id' => 'footer_social',
'title' => 'Footer Social',
'type' => 'section',
'indent' => true,
),
array(
'id' => 'footer_social_title',
'type' => 'text',
'title' => esc_html__('Footer Social Title', 'dreamsalon'),
'default' => 'Follow Us',
'required' => array('footer_style', '=', array('style3')),
),
array(
'id' => 'footers_facebook_link',
'type' => 'text',
'title' => esc_html__('Facebook', 'dreamsalon'),
'default' => '#',
'placeholder' => '#',
),
array(
'id' => 'footers_twitter_link',
'type' => 'text',
'title' => esc_html__('Twitter', 'dreamsalon'),
'default' => '#',
'placeholder' => '',
),
array(
'id' => 'footers_linkedin_link',
'type' => 'text',
'title' => esc_html__('LinkedIn', 'dreamsalon'),
'default' => '#',
'placeholder' => '#',
),
array(
'id' => 'footers_youtube_link',
'type' => 'text',
'title' => esc_html__('Youtube', 'dreamsalon'),
'default' => '#',
'placeholder' => '',
),
array(
'id' => 'footers_instagram_link',
'type' => 'text',
'title' => esc_html__('Instagram', 'dreamsalon'),
'default' => '#',
'placeholder' => '',
),
array(
'id' => 'footer_bottom',
'title' => 'Footer Bottom',
'type' => 'section',
'indent' => true,
),
array(
'id' => 'footer_copyright_text',
'type' => 'textarea',
'title' => esc_html__('Footer Copyright Text', 'dreamsalon'),
'default' => '<p>Copyright © 2025 <a href="#">Dream Salon</a>, All rights reserved.</p>',
'args' => array(
'wpautop' => false,
'media_buttons' => false,
'textarea_rows' => 5,
'teeny' => false,
'quicktags' => false,
)
),
array(
'id' => 'footer_terms_menu',
'type' => 'select',
'title' => __('Select Terms & Conditions Menu', 'dreamsalon'),
'multi' => true,
'sortable' => true,
'data' => 'menus',
'args' => array(
'save_as' => 'id',
),
),
array(
'id' => 'footer-social-section-end',
'type' => 'section',
'indent' => false,
),
),
));
Redux::setSection($opt_name, array(
'title' => __('Blog Settings', 'dreamsalon'),
'icon' => 'fa fa-blog',
'fields' => array(
// Blog Grid Layout
array(
'title' => __('<span style="font-size: 20px; margin-bottom: 5px;">Blog Grid Layout</span>', 'dreamsalon'),
'type' => 'info',
'id' => 'blog_grid_info',
),
array(
'id' => 'blog_grid_page',
'type' => 'select',
'title' => __('Blog Grid Page', 'dreamsalon'),
'subtitle' => __('Select the page for blog grid layout', 'dreamsalon'),
'data' => 'pages',
'args' => array(
'post_status' => 'publish',
),
),
array(
'id' => 'blog_grid_layout',
'type' => 'select',
'title' => __('Blog Grid Layout', 'dreamsalon'),
'subtitle' => __('Select layout for blog grid', 'dreamsalon'),
'options' => array(
'default' => __('Default', 'dreamsalon'),
'fullview' => __('Full View', 'dreamsalon'),
'leftsidebar' => __('Left Sidebar', 'dreamsalon'),
'rightsidebar' => __('Right Sidebar', 'dreamsalon'),
),
'default' => 'default',
),
// Blog List Layout
array(
'title' => __('<span style="font-size: 20px; margin-bottom: 5px;">Blog List Layout</span>', 'dreamsalon'),
'type' => 'info',
'id' => 'blog_list_info',
),
array(
'id' => 'blog_list_page',
'type' => 'select',
'title' => __('Blog List Page', 'dreamsalon'),
'subtitle' => __('Select the page for blog list layout', 'dreamsalon'),
'data' => 'pages',
'args' => array(
'post_status' => 'publish',
),
),
array(
'id' => 'blog_list_layout',
'type' => 'select',
'title' => __('Blog List Layout', 'dreamsalon'),
'subtitle' => __('Select layout for blog list', 'dreamsalon'),
'options' => array(
'default' => __('Default', 'dreamsalon'),
'fullview' => __('Full View', 'dreamsalon'),
'leftsidebar' => __('Left Sidebar', 'dreamsalon'),
'rightsidebar' => __('Right Sidebar', 'dreamsalon'),
),
'default' => 'default',
),
// Blog Details Layout
array(
'title' => __('<span style="font-size: 20px; margin-bottom: 5px;">Blog Details Layout</span>', 'dreamsalon'),
'type' => 'info',
'id' => 'blog_details_info',
),
array(
'id' => 'blog_details_layout',
'type' => 'select',
'title' => __('Blog Details Layout', 'dreamsalon'),
'subtitle' => __('Select layout for blog details', 'dreamsalon'),
'options' => array(
'default' => __('Default', 'dreamsalon'),
'fullview' => __('Full View', 'dreamsalon'),
'leftsidebar' => __('Left Sidebar', 'dreamsalon'),
'rightsidebar' => __('Right Sidebar', 'dreamsalon'),
),
'default' => 'default',
),
),
));
if (file_exists(dirname(__FILE__) . '/../README.md')) {
$section = array(
'icon' => 'el el-list-alt',
'title' => __('Documentation', 'dreamsalon'),
'fields' => array(
array(
'id' => '17',
'type' => 'raw',
'markdown' => true,
'content_path' => dirname(__FILE__) . '/../README.md',
),
),
);
Redux::setSection($opt_name, $section);
}
if (!function_exists('compiler_action')) {
function compiler_action($options, $css, $changed_values)
{
echo '<h1>The compiler hook has run!</h1>';
echo "<pre>";
print_r($changed_values);
echo "</pre>";
}
}
function dreamsalon_validate_menus($field, $value, $existing_value)
{
$valid = array();
foreach ((array) $value as $menu_id) {
if (wp_get_nav_menu_object($menu_id)) {
$valid[] = $menu_id;
}
}
return $valid;
}
if (!function_exists('redux_validate_callback_function')) {
function redux_validate_callback_function($field, $value, $existing_value)
{
$error = false;
$warning = false;
if ($value == 1) {
$error = true;
$value = $existing_value;
} elseif ($value == 2) {
$warning = true;
$value = $existing_value;
}
$return['value'] = $value;
if ($error == true) {
$field['msg'] = 'your custom error message';
$return['error'] = $field;
}
if ($warning == true) {
$field['msg'] = 'your custom warning message';
$return['warning'] = $field;
}
return $return;
}
}
if (!function_exists('redux_my_custom_field')) {
function redux_my_custom_field($field, $value)
{
print_r($field);
echo '<br/>';
print_r($value);
}
}
if (!function_exists('dynamic_section')) {
function dynamic_section($sections)
{
$sections[] = array(
'title' => __('Section via hook', 'dreamsalon'),
'desc' => __('<p class="description">This is a section created by adding a filter to the sections array. Can be used by child themes to add/remove sections from the options.</p>', 'dreamsalon'),
'icon' => 'el el-paper-clip',
'fields' => array()
);
return $sections;
}
}
if (!function_exists('change_arguments')) {
function change_arguments($args)
{
return $args;
}
}
if (!function_exists('change_defaults')) {
function change_defaults($defaults)
{
$defaults['str_replace'] = 'Testing filter hook!';
return $defaults;
}
}