Initial Commit N° : 001 - V.4.3.3

This commit is contained in:
2025-03-28 14:32:57 +01:00
commit 238e5d7999
809 changed files with 371149 additions and 0 deletions
+343
View File
@@ -0,0 +1,343 @@
<?php
add_action('init', 'elessi_general_heading');
if (!function_exists('elessi_general_heading')) {
function elessi_general_heading() {
// Set the Options Array
global $of_options;
if (empty($of_options)) {
$of_options = array();
}
$of_options[] = array(
"name" => __("General", 'elessi-theme'),
"target" => 'general',
"type" => "heading"
);
$of_options[] = array(
"name" => __("General options", 'elessi-theme'),
"std" => "<h4>" . __("General options", 'elessi-theme') . "</h4>",
"type" => "info",
'class' => 'first'
);
$of_options[] = array(
"name" => __("Add more width site (px)", 'elessi-theme'),
"desc" => __("The max-width of your site will be INPUT + 1200 (pixel).", 'elessi-theme'),
"id" => "plus_wide_width",
"std" => "",
"type" => "text"
);
$of_options[] = array(
"name" => __("Site Layout", 'elessi-theme'),
"id" => "site_layout",
"std" => "wide",
"type" => "select",
"options" => array(
"wide" => __("Wide", 'elessi-theme'),
"boxed" => __("Boxed", 'elessi-theme')
),
// 'class' => 'nasa-theme-option-parent'
);
$of_options[] = array(
"name" => __("Site Background Color - Boxed Layout", 'elessi-theme'),
"id" => "site_bg_color",
"std" => "#eee",
"type" => "color",
'class' => 'nasa-site_layout',
'child_of' => 'site_layout',
'm_target' => 'boxed',
);
$of_options[] = array(
"name" => __("Site Background Image - Boxed Layout", 'elessi-theme'),
"id" => "site_bg_image",
"std" => ELESSI_THEME_URI . "/assets/images/bkgd1.jpg",
"type" => "media",
'class' => 'nasa-site_layout',
'child_of' => 'site_layout',
'm_target' => 'boxed',
);
$of_options[] = array(
"name" => __("Background Mode", 'elessi-theme'),
"id" => "site_bg_dark",
"std" => "",
"type" => "select",
"options" => array(
"" => __("Light Mode", 'elessi-theme'),
"1" => __("Dark Mode", 'elessi-theme'),
"2" => __("Gray Mode", 'elessi-theme')
),
'override_numberic' => true
);
$of_options[] = array(
"name" => __("Advanced options", 'elessi-theme'),
"std" => "<h4>" . __("Advanced options", 'elessi-theme') . "</h4>",
"type" => "info"
);
$of_options[] = array(
"name" => __("Back to Top", 'elessi-theme'),
"id" => "back_to_top",
"std" => 1,
"type" => "switch"
);
/* $of_options[] = array(
"name" => __("Where you are", 'elessi-theme'),
"id" => "where_you_are",
"std" => 0,
"type" => "switch"
);
$of_options[] = array(
"name" => __("Menu map", 'elessi-theme'),
"id" => "where_you_are_menu",
"std" => 1,
"type" => "switch",
'child_of' => 'where_you_are',
'm_target' => '1',
);
$of_options[] = array(
"name" => __("Categories map", 'elessi-theme'),
"id" => "where_you_are_cat",
"std" => 1,
"type" => "switch",
'child_of' => 'where_you_are',
'm_target' => '1',
);
$of_options[] = array(
"name" => __("where you are - Columns number", 'elessi-theme'),
"id" => "where_you_are_cls",
"std" => "4",
"type" => "select",
"options" => array(
"1" => __("1", 'elessi-theme'),
"2" => __("2", 'elessi-theme'),
"3" => __("3", 'elessi-theme'),
"4" => __("4", 'elessi-theme'),
"5" => __("5", 'elessi-theme'),
"6" => __("6", 'elessi-theme'),
),
'child_of' => 'where_you_are',
'm_target' => '1',
);
$of_options[] = array(
"name" => __("where you are - Medium columns number", 'elessi-theme'),
"id" => "where_you_are_cls_m",
"std" => "3",
"type" => "select",
"options" => array(
"1" => __("1", 'elessi-theme'),
"2" => __("2", 'elessi-theme'),
"3" => __("3", 'elessi-theme'),
),
'child_of' => 'where_you_are',
'm_target' => '1',
);
$of_options[] = array(
"name" => __("where you are - Small columns number", 'elessi-theme'),
"id" => "where_you_are_cls_s",
"std" => "1",
"type" => "select",
"options" => array(
"1" => __("1", 'elessi-theme'),
"2" => __("2", 'elessi-theme'),
),
'child_of' => 'where_you_are',
'm_target' => '1',
); */
$of_options[] = array(
"name" => __("Transition Loading", 'elessi-theme'),
"id" => "transition_load",
"std" => "wow",
"type" => "select",
"options" => array(
"wow" => __("Animation Effect", 'elessi-theme'),
"crazy" => __("Gray Effect", 'elessi-theme'),
"none" => __("None", 'elessi-theme')
),
'class' => 'nasa-transition_load nasa-theme-option-parent'
);
$of_options[] = array(
"name" => __("Delay Overlay (ms)", 'elessi-theme'),
"id" => "delay_overlay",
"std" => "100",
"type" => "text",
'class' => 'hidden-tag nasa-theme-option-child nasa-transition_load nasa-transition_load-wow nasa-delay_overlay'
);
$of_options[] = array(
"name" => __("Effect Before Load Site", 'elessi-theme'),
"id" => "effect_before_load",
"std" => 1,
"type" => "switch"
);
$of_options[] = array(
"name" => __("Disable Refill - Contact Form 7", 'elessi-theme'),
"desc" => __("Yes, Please!", 'elessi-theme'),
"id" => "disable_wpcf7_refill",
"std" => 1,
"type" => "checkbox"
);
$of_options[] = array(
"name" => __("Support Upload SVG medias", 'elessi-theme'),
"desc" => __("Yes, Please!", 'elessi-theme'),
"id" => "sp_upload_svg",
"std" => 1,
"type" => "checkbox"
);
$of_options[] = array(
"name" => __("Age Verification", 'elessi-theme'),
"id" => "nasa_age_verification",
"std" => 0,
"type" => "switch"
);
$of_options[] = array(
"name" => __("Inactive Tab", 'elessi-theme'),
"id" => "show_notification_leave_tab",
"desc" => "Show a notification on the browser tab",
"std" => 0,
"type" => "switch"
);
$of_options[] = array(
"name" => __("Inactive Tab Notification Content", 'elessi-theme'),
"id" => "notification_leave_tab",
"desc" => 'If you skip this field notification will be default "📢 Come back! | 🔥 Don\'t forget this ...". If you want to add more notifications, you just need to add "|" between notifications.',
"std" => "📢 Come back! | 🔥 Don't forget this ...",
"type" => "text",
'child_of' => 'show_notification_leave_tab',
'm_target' => '1',
);
$of_options[] = array(
"name" => __("Widget Options", 'elessi-theme'),
"std" => "<h4>" . __("Widget Options", 'elessi-theme') . "</h4>",
"type" => "info"
);
$of_options[] = array(
"name" => __("Toggle Widget Content", 'elessi-theme'),
"id" => "toggle_widgets",
"std" => "1",
"type" => "switch"
);
$of_options[] = array(
"name" => __("Toggle Widget Content - Always Close", 'elessi-theme'),
"id" => "toggle_widgets_Alc",
"std" => "0",
"type" => "switch"
);
$of_options[] = array(
"name" => __("Wrapper Widget - Sidebar Classic", 'elessi-theme'),
"id" => "wrapper_widgets",
"std" => "0",
"type" => "switch"
);
// The block editor from managing widgets
global $wp_version;
if (isset($wp_version) && version_compare($wp_version, '5.8', ">=")) {
$of_options[] = array(
"name" => __("The block editor from managing widgets", 'elessi-theme'),
"id" => "block_editor_widgets",
"std" => 0,
"type" => "switch"
);
}
$of_options[] = array(
"name" => __("GDPR Options", 'elessi-theme'),
"std" => "<h4>" . __("GDPR Options", 'elessi-theme') . "</h4>",
"type" => "info"
);
$of_options[] = array(
"name" => __("GDPR Notice", 'elessi-theme'),
"id" => "nasa_gdpr_notice",
"std" => 0,
"type" => "switch",
);
$of_options[] = array(
"name" => __("GDPR Policies Link", 'elessi-theme'),
"id" => "nasa_gdpr_policies",
"std" => "https://policies.google.com",
"type" => "text",
'child_of' => 'nasa_gdpr_notice',
'm_target' => '1',
);
$of_options[] = array(
"name" => "Performance - Assets",
"std" => "<h4>" . __("Performance - Assets", 'elessi-theme') . "</h4>",
"type" => "info"
);
$of_options[] = array(
"name" => __("Load Css Canvas", 'elessi-theme'),
"id" => "css_canvas",
"std" => 'async',
"type" => "select",
"options" => array(
'async' => __('Async', 'elessi-theme'),
'sync' => __('Sync', 'elessi-theme')
)
);
$list_css = elessi_get_list_css_files_call();
if (!empty($list_css)) {
$of_options[] = array(
"name" => __("Skip Load - Files CSS - Checkin it if you don't want your site call", 'elessi-theme'),
"id" => "css_files",
"std" => array(),
"type" => "multicheck",
"options" => $list_css,
'class' => 'fullwidth'
);
}
$list_js = elessi_get_list_js_files_delay();
if (!empty($list_js)) {
$of_options[] = array(
"name" => __("List Files JS Delay - Delay JavaScript Execution", 'elessi-theme'),
"id" => "js_files",
"std" => array(),
"type" => "multicheck",
"options" => $list_js,
'class' => 'fullwidth'
);
}
$of_options[] = array(
"name" => __("Include Theme Version when call css files", 'elessi-theme'),
"id" => "css_theme_version",
"std" => 0,
"type" => "switch"
);
$of_options[] = array(
"name" => __("Include Theme Version when call js files", 'elessi-theme'),
"id" => "js_theme_version",
"std" => 0,
"type" => "switch"
);
}
}
@@ -0,0 +1,155 @@
<?php
add_action('init', 'elessi_logo_icon_heading');
if (!function_exists('elessi_logo_icon_heading')) {
function elessi_logo_icon_heading() {
/**
* The Options Array
* Set the Options Array
*/
global $of_options;
if (empty($of_options)) {
$of_options = array();
}
$of_options[] = array(
"name" => __("Logo and Favicon", 'elessi-theme'),
"target" => 'logo-icons',
"type" => "heading"
);
$of_options[] = array(
"name" => __("Logo Options", 'elessi-theme'),
"std" => "<h4>" . __("Logo Options", 'elessi-theme') . "</h4>",
"type" => "info",
'class' => 'first'
);
$of_options[] = array(
"name" => __("Logo", 'elessi-theme'),
"id" => "site_logo",
"std" => ELESSI_THEME_URI . "/assets/images/logo.jpg",
"type" => "media"
);
$of_options[] = array(
"name" => __("Retina Logo", 'elessi-theme'),
"id" => "site_logo_retina",
"std" => ELESSI_THEME_URI . "/assets/images/logo-retina.jpg",
"type" => "media"
);
$of_options[] = array(
"name" => __("Width - Logo", 'elessi-theme'),
"id" => "logo_width",
"std" => "",
"type" => "text"
);
$of_options[] = array(
"name" => __("Height - Logo", 'elessi-theme'),
"id" => "logo_height",
"std" => "",
"type" => "text"
);
$of_options[] = array(
"name" => __("Max Height - Logo", 'elessi-theme'),
"id" => "max_height_logo",
"std" => "40px",
"type" => "text"
);
$of_options[] = array(
"name" => __("Sticky Logo Options", 'elessi-theme'),
"std" => "<h4>" . __("Sticky Logo Options", 'elessi-theme') . "</h4>",
"type" => "info",
// 'class' => 'first'
);
$of_options[] = array(
"name" => __("Sticky Logo", 'elessi-theme'),
"id" => "site_logo_sticky",
"std" => '',
"type" => "media"
);
$of_options[] = array(
"name" => __("Width - Sticky Logo", 'elessi-theme'),
"id" => "logo_sticky_width",
"std" => "",
"type" => "text"
);
$of_options[] = array(
"name" => __("Height - Sticky Logo", 'elessi-theme'),
"id" => "logo_sticky_height",
"std" => "",
"type" => "text"
);
$of_options[] = array(
"name" => __("Max Height - Sticky Logo", 'elessi-theme'),
"id" => "max_height_sticky_logo",
"std" => "25px",
"type" => "text"
);
$of_options[] = array(
"name" => __("Mobile Logo Options", 'elessi-theme'),
"std" => "<h4>" . __("Mobile Logo Options", 'elessi-theme') . "</h4>",
"type" => "info",
// 'class' => 'first'
);
$of_options[] = array(
"name" => __("Mobile Logo", 'elessi-theme'),
"id" => "site_logo_m",
"std" => '',
"type" => "media"
);
$of_options[] = array(
"name" => __("Width - Mobile Logo", 'elessi-theme'),
"id" => "logo_width_mobile",
"std" => "",
"type" => "text"
);
$of_options[] = array(
"name" => __("Height - Mobile Logo", 'elessi-theme'),
"id" => "logo_height_mobile",
"std" => "",
"type" => "text"
);
$of_options[] = array(
"name" => __("Max Height Logo - Mobile", 'elessi-theme'),
"id" => "max_height_mobile_logo",
"std" => "25px",
"type" => "text"
);
$of_options[] = array(
"name" => __("Favicon Options", 'elessi-theme'),
"std" => "<h4>" . __("Favicon Options", 'elessi-theme') . "</h4>",
"type" => "info",
// 'class' => 'first'
);
$of_options[] = array(
"name" => __("Support Upload ICO medias", 'elessi-theme'),
// "desc" => __("Yes, Please!", 'elessi-theme'),
"id" => "sp_upload_ico",
"std" => "0",
"type" => "switch"
);
$of_options[] = array(
"name" => __("Favicon", 'elessi-theme'),
"desc" => __("Add your custom Favicon image. 16x16 - 32x32 *.ico or *.png required. (Recommended 16x16 *.ico)", 'elessi-theme'),
"id" => "site_favicon",
"std" => "",
"type" => "media"
);
}
}
+763
View File
@@ -0,0 +1,763 @@
<?php
add_action('init', 'elessi_header_heading');
if (!function_exists('elessi_header_heading')) {
function elessi_header_heading() {
// Set the Options Array
global $of_options;
if (empty($of_options)) {
$of_options = array();
}
$static_blocks = elessi_admin_get_static_blocks();
$of_options[] = array(
"name" => __("Header Global", 'elessi-theme'),
"target" => 'header-global',
"type" => "heading"
);
$of_options[] = array(
"name" => __("Header Options", 'elessi-theme'),
"std" => "<h4>" . __("Header Options", 'elessi-theme') . "</h4>",
"type" => "info",
'class' => 'first'
);
$header_type_list = array(
'1' => ELESSI_ADMIN_DIR_URI . 'assets/images/header-1.jpg',
'2' => ELESSI_ADMIN_DIR_URI . 'assets/images/header-2.jpg',
'3' => ELESSI_ADMIN_DIR_URI . 'assets/images/header-3.jpg',
'4' => ELESSI_ADMIN_DIR_URI . 'assets/images/header-4.jpg',
'5' => ELESSI_ADMIN_DIR_URI . 'assets/images/header-5.jpg',
'6' => ELESSI_ADMIN_DIR_URI . 'assets/images/header-6.jpg',
'7' => ELESSI_ADMIN_DIR_URI . 'assets/images/header-7.jpg',
'8' => ELESSI_ADMIN_DIR_URI . 'assets/images/header-8.jpg',
);
if (NASA_WPB_ACTIVE || !apply_filters('nasa_rules_upgrade', true)) {
$header_type_list['nasa-custom'] = ELESSI_ADMIN_DIR_URI . 'assets/images/header-builder-wpbakery.jpg';
}
if (NASA_HF_BUILDER) {
$header_type_list['nasa-elm'] = ELESSI_ADMIN_DIR_URI . 'assets/images/header-builder-elementor.jpg';
}
$of_options[] = array(
"name" => __("Header Layout", 'elessi-theme'),
"id" => "header-type",
"std" => "1",
"type" => "images",
"options" => $header_type_list,
'class' => 'nasa-header-type-select'
);
/**
* Header Builder - With WPBakery
*/
if (NASA_WPB_ACTIVE || !apply_filters('nasa_rules_upgrade', true)) {
$header_builder = elessi_admin_get_header_builder();
$header_options = array_merge(
array('default' => __('Select the Header Builder', 'elessi-theme')),
$header_builder
);
$of_options[] = array(
"name" => __("Header Theme Builder", 'elessi-theme'),
"id" => "header-custom",
"type" => "select2id",
'override_numberic' => true,
"options" => $header_options,
'std' => '',
'class' => 'nasa-header-wpb ns-wpb-type',
'select_class' => 'nasa-ad-select2',
'desc' => '<a class="nswpb-edit hidden-tag" href="#" data-href="' . esc_url(admin_url('post.php?post=ns_wpb_id&action=edit')) . '">' . esc_html__('Click here to Edit', 'elessi-theme') . '</a>',
'child_of' => 'header-type',
'm_target' => 'nasa-custom',
);
}
/**
* Headers Elementor Builder
*/
if (NASA_HF_BUILDER) {
$header_builder = elessi_admin_get_header_elementor();
$header_builder['0'] = __('Select the Header Elementor', 'elessi-theme');
$of_options[] = array(
"name" => __("Header Elementor Builder", 'elessi-theme'),
"id" => "header-elm",
"type" => "select",
'override_numberic' => true,
"options" => $header_builder,
'std' => '',
'select_class' => 'nasa-ad-select2',
'class' => 'nasa-header-elm ns-hfe-type',
'desc' => '<a class="nshfe-edit hidden-tag" href="#" data-href="' . esc_url(admin_url('post.php?post=ns_hfe_id&action=elementor')) . '">' . esc_html__('Click here to Edit', 'elessi-theme') . '</a>',
'child_of' => 'header-type',
'm_target' => 'nasa-elm',
);
}
$of_options[] = array(
"name" => __("Menu Options", 'elessi-theme'),
"std" => "<h4>" . __("Menu Options", 'elessi-theme') . "</h4>",
"type" => "info",
// 'class' => 'first'
);
$of_options[] = array(
"name" => __("Flexible - Menu Resizing (Desktop and Tablet)", 'elessi-theme'),
"id" => "flexible_menu",
"std" => 1,
"type" => "switch",
'class' => 'nasa-flexible_menu',
'child_of' => 'header-type',
'm_target' => array('1', '2', '3', '4', '6', '8'),
);
$of_options[] = array(
"name" => __("Menu Font Size (Desktop and Tablet)", 'elessi-theme'),
"id" => "font_size_menu",
"std" => "100",
"step" => "1",
"min" => '80',
"max" => '150',
"type" => "sliderui"
);
$option_menu = elessi_admin_get_menu_options();
$of_options[] = array(
"name" => __("Vertical Menu", 'elessi-theme'),
"id" => "vertical_menu_selected",
"std" => "",
"type" => "select",
'override_numberic' => true,
"options" => $option_menu,
// 'class' => 'hidden-tag nasa-header-type-child nasa-header-type-select-4 nasa-header-type-select-6',
'child_of' => 'header-type',
'm_target' => array('4', '6', '8'),
);
$of_options[] = array(
"name" => __("Vertical Root Level - Parent - 0", 'elessi-theme'),
"id" => "v_root",
"std" => 0,
"type" => "switch",
// 'class' => 'hidden-tag nasa-header-type-child nasa-header-type-select-4 nasa-header-type-select-6',
'child_of' => 'header-type',
'm_target' => array('4', '6', '8'),
);
$of_options[] = array(
"name" => __("Vertical Root Level - Limit", 'elessi-theme'),
"id" => "v_root_limit",
"std" => '',
"type" => "text",
// 'class' => 'hidden-tag nasa-header-type-child nasa-header-type-select-4 nasa-header-type-select-6',
'child_of' => 'header-type',
'm_target' => array('4', '6', '8'),
);
$of_options[] = array(
"name" => __("Ordering Mobile Menu", 'elessi-theme'),
"id" => "order_mobile_menus",
"std" => "",
"type" => "select",
'override_numberic' => true,
"options" => array(
'' => __("Main Menu > Vertical Menu", 'elessi-theme'),
'v-focus' => __("Vertical Menu > Main Menu", 'elessi-theme'),
),
// 'class' => 'hidden-tag nasa-header-type-child nasa-header-type-select-4 nasa-header-type-select-6',
'child_of' => 'header-type',
'm_target' => array('4', '6', '8'),
);
$of_options[] = array(
"name" => __("Fullwidth Main Menu", 'elessi-theme'),
"id" => "fullwidth_main_menu",
"std" => 1,
"type" => "switch",
'class' => 'nasa-fullwidth_main_menu',
'child_of' => 'header-type',
'm_target' => array('2', '3'),
);
$of_options[] = array(
"name" => __("Main Menu Background Color", 'elessi-theme'),
"id" => "bg_color_main_menu",
"std" => "",
"type" => "color",
'class' => 'nasa-bg_color_main_menu',
'child_of' => 'header-type',
'm_target' => array('2', '3', '4', '6', '8'),
);
$of_options[] = array(
"name" => __("Main Menu Background Color - Sticky", 'elessi-theme'),
"id" => "bg_color_main_menu_stk",
"std" => "",
"type" => "color",
'class' => 'nasa-bg_color_main_menu_stk',
'child_of' => 'header-type',
'm_target' => array('2', '3', '4', '6' , '8'),
);
$of_options[] = array(
"name" => __("Main Menu Text Color", 'elessi-theme'),
"id" => "text_color_main_menu",
"std" => "",
"type" => "color",
'class' => 'nasa-text_color_main_menu',
'child_of' => 'header-type',
'm_target' => array('1', '2', '3', '4', '6'),
);
$of_options[] = array(
"name" => __("Main Menu Text Color - Sticky", 'elessi-theme'),
"id" => "text_color_main_menu_stk",
"std" => "",
"type" => "color",
'class' => 'nasa-text_color_main_menu_stk',
'child_of' => 'header-type',
'm_target' => array('1', '2', '3', '4', '6', '8'),
);
$of_options[] = array(
"name" => __("Vertical Menu Background - Focus", 'elessi-theme'),
"id" => "bg_color_v_menu",
"std" => "",
"type" => "color",
'class' => 'nasa-bg_color_v_menu',
'child_of' => 'header-type',
'm_target' => array('4', '6', '8'),
);
$of_options[] = array(
"name" => __("Vertical Menu Background - Focus - Sticky", 'elessi-theme'),
"id" => "bg_color_v_menu_stk",
"std" => "",
"type" => "color",
'class' => 'nasa-bg_color_v_menu_stk',
'child_of' => 'header-type',
'm_target' => array('4', '6', '8'),
);
$of_options[] = array(
"name" => __("Vertical Menu Text Color - Focus", 'elessi-theme'),
"id" => "text_color_v_menu",
"std" => "",
"type" => "color",
'class' => 'nasa-text_color_v_menu',
'child_of' => 'header-type',
'm_target' => array('4', '6', '8'),
);
$of_options[] = array(
"name" => __("Vertical Menu Text Color - Focus - Sticky", 'elessi-theme'),
"id" => "text_color_v_menu_stk",
"std" => "",
"type" => "color",
'class' => 'nasa-text_color_v_menu_stk',
'child_of' => 'header-type',
'm_target' => array('4', '6','8'),
);
$of_options[] = array(
"name" => __("Account Options", 'elessi-theme'),
"std" => "<h4>" . __("Account Options", 'elessi-theme') . "</h4>",
"type" => "info"
);
$of_options[] = array(
"name" => __("Disable Login/Register", 'elessi-theme'),
"id" => "hide_tini_menu_acc",
"on" => __("Yes", 'elessi-theme'),
"off" => __("No", 'elessi-theme'),
"std" => 0,
"type" => "switch"
);
$of_options[] = array(
"name" => __("Login/Register by Ajax form", 'elessi-theme'),
"id" => "login_ajax",
"std" => 1,
"type" => "switch"
);
$of_options[] = array(
"name" => __("Turn off auto close form after Login/Register", 'elessi-theme'),
"id" => "login_ajax_auto_close_off",
"std" => 0,
"type" => "switch"
);
$of_options[] = array(
"name" => __("Position Account Icon", 'elessi-theme'),
"id" => "acc_pos",
"std" => "top",
"type" => "select",
"options" => array(
"top" => __("In Topbar - Header", 'elessi-theme'),
"group" => __("In Group Icons - Header", 'elessi-theme')
),
'child_of' => 'header-type',
'm_target' => array('1', '2', '3', '4', '5', '6', '7'),
);
$of_options[] = array(
"name" => __("Account On Main Screen - Mobile Layout", 'elessi-theme'),
"id" => "main_screen_acc_mobile",
"std" => 1,
"type" => "switch"
);
if (function_exists('imagecreatetruecolor')) {
$of_options[] = array(
"name" => __("Captcha For Register Form", 'elessi-theme'),
"id" => "register_captcha",
"std" => 0,
"type" => "switch"
);
}
$of_options[] = array(
"name" => __("Addon Options", 'elessi-theme'),
"std" => "<h4>" . __("Addon Options", 'elessi-theme') . "</h4>",
"type" => "info",
// 'class' => 'first'
);
/* $of_options[] = array(
"name" => __("Transparent Header", 'elessi-theme'),
"id" => "header_transparent",
"std" => 0,
"type" => "switch",
'class' => 'nasa-header_transparent'
'child_of' => 'header-type',
'm_target' => array('1', '2', '3', '5', '7'),
); */
$of_options[] = array(
"name" => __("The Block Under Header", 'elessi-theme'),
"id" => "header-block",
"type" => "select2id",
"options" => $static_blocks,
'class' => 'nasa-header-block ns-block-type',
'select_class' => 'nasa-ad-select2',
"desc" => __("Please create Static Blocks (or Custom Block of Elementor Header & Footer Builder) and select here.", 'elessi-theme') . '<br /><a class="nsblk-edit hidden-tag" href="#" data-stb-href="' . esc_url(admin_url('post.php?post=ns_blk_id&action=edit')) . '" data-ctb-href="' . esc_url(admin_url('post.php?post=ns_blk_id&action=elementor')) . '">' . esc_html__('Click here to Edit', 'elessi-theme') . '</a>',
'child_of' => 'header-type',
'm_target' => array('1', '2', '3', '4', '5', '6', '7', '8'),
);
$of_options[] = array(
"name" => __("The Block beside Logo in Header Type 2", 'elessi-theme'),
"id" => "header-block-type_2",
"type" => "select2id",
"options" => $static_blocks,
'select_class' => 'nasa-ad-select2',
'class' => 'nasa-header-block-type_2 ns-block-type',
"desc" => __("Please create Static Blocks (or Custom Block of Elementor Header & Footer Builder) and select here.", 'elessi-theme') . '<br /><a class="nsblk-edit hidden-tag" href="#" data-stb-href="' . esc_url(admin_url('post.php?post=ns_blk_id&action=edit')) . '" data-ctb-href="' . esc_url(admin_url('post.php?post=ns_blk_id&action=elementor')) . '">' . esc_html__('Click here to Edit', 'elessi-theme') . '</a>',
'child_of' => 'header-type',
'm_target' => array('2'),
);
$of_options[] = array(
"name" => __("The Block beside Main menu in Header Type 4, 6, 8", 'elessi-theme'),
"id" => "header-block-type_4",
"type" => "select2id",
"options" => $static_blocks,
'select_class' => 'nasa-ad-select2',
'class' => 'ns-block-type',
"desc" => __("Please create Static Blocks (or Custom Block of Elementor Header & Footer Builder) and select here.", 'elessi-theme') . '<br /><a class="nsblk-edit hidden-tag" href="#" data-stb-href="' . esc_url(admin_url('post.php?post=ns_blk_id&action=edit')) . '" data-ctb-href="' . esc_url(admin_url('post.php?post=ns_blk_id&action=elementor')) . '">' . esc_html__('Click here to Edit', 'elessi-theme') . '</a>',
'child_of' => 'header-type',
'm_target' => array('4', '6', '8'),
);
$of_options[] = array(
"name" => __("The Block beside Main menu in Header Type 4, 6, 8 - Popup Static Block", 'elessi-theme'),
"id" => "nasa_popup_static_block",
"type" => "select2id",
"options" => $static_blocks,
'select_class' => 'nasa-ad-select2',
'class' => 'ns-block-type',
"desc" => __("Please create Static Blocks (or Custom Block of Elementor Header & Footer Builder) and select here.", 'elessi-theme') . '<br /><a class="nsblk-edit hidden-tag" href="#" data-stb-href="' . esc_url(admin_url('post.php?post=ns_blk_id&action=edit')) . '" data-ctb-href="' . esc_url(admin_url('post.php?post=ns_blk_id&action=elementor')) . '">' . esc_html__('Click here to Edit', 'elessi-theme') . '</a>',
'child_of' => 'header-type',
'm_target' => array('4', '6','8'),
);
$of_options[] = array(
"name" => __("Sticky", 'elessi-theme'),
"id" => "fixed_nav",
"std" => 1,
"type" => "switch",
'class' => 'nasa-fixed_nav',
'child_of' => 'header-type',
'm_target' => array('1', '2', '3', '4', '5', '6', '7', '8'),
);
$of_options[] = array(
"name" => __("Background Color Header", 'elessi-theme'),
"id" => "bg_color_header",
"std" => "",
"type" => "color",
'class' => 'nasa-bg_color_header',
'child_of' => 'header-type',
'm_target' => array('1', '2', '3', '4', '5', '6', '7', '8'),
);
$of_options[] = array(
"name" => __("Background Color Header - Sticky", 'elessi-theme'),
"id" => "bg_color_header_stk",
"std" => "",
"type" => "color",
'class' => 'nasa-bg_color_header_stk',
'child_of' => 'header-type',
'm_target' => array('1', '2', '3', '4', '5', '6', '7', '8'),
);
$of_options[] = array(
"name" => __("Header Icons", 'elessi-theme'),
"id" => "text_color_header",
"std" => "",
"type" => "color",
'class' => 'nasa-text_color_header',
'child_of' => 'header-type',
'm_target' => array('1', '2', '3', '4', '5', '6', '7', '8'),
);
$of_options[] = array(
"name" => __("Header Icons - Sticky", 'elessi-theme'),
"id" => "text_color_header_stk",
"std" => "",
"type" => "color",
'class' => 'nasa-text_color_header_stk',
'child_of' => 'header-type',
'm_target' => array('1', '2', '3', '4', '5', '6', '7', '8'),
);
$of_options[] = array(
"name" => __("Header Icons Hover", 'elessi-theme'),
"id" => "text_color_hover_header",
"std" => "",
"type" => "color",
'class' => 'nasa-text_color_hover_header',
'child_of' => 'header-type',
'm_target' => array('1', '2', '3', '4', '5', '6', '7', '8'),
);
$of_options[] = array(
"name" => __("Header Icons Hover - Sticky", 'elessi-theme'),
"id" => "text_color_hover_header_stk",
"std" => "",
"type" => "color",
'class' => 'nasa-text_color_hover_header_stk',
'child_of' => 'header-type',
'm_target' => array('1', '2', '3', '4', '5', '6', '7', '8'),
);
$of_options[] = array(
"name" => __("Search Options", 'elessi-theme'),
"std" => "<h4>" . __("Search Options", 'elessi-theme') . "</h4>",
"type" => "info",
// 'class' => 'first'
);
$of_options[] = array(
"name" => __("Search Bar Effect", 'elessi-theme'),
"id" => "search_effect",
"std" => "right-to-left",
"type" => "select",
"options" => array(
"rightToLeft" => __("Right To Left", 'elessi-theme'),
"fadeInDown" => __("Fade In Down", 'elessi-theme'),
"fadeInUp" => __("Fade In Up", 'elessi-theme'),
"leftToRight" => __("Left To Right", 'elessi-theme'),
"fadeIn" => __("Fade In", 'elessi-theme'),
"noEffect" => __("No Effect", 'elessi-theme')
),
'class' => 'nasa-search_effect',
'child_of' => 'header-type',
'm_target' => array('1', '2'),
);
if (NASA_WOO_ACTIVED) {
// Options live search products
$of_options[] = array(
"name" => __("Search Anything After Submit", 'elessi-theme'),
"id" => "anything_search",
"std" => 0,
"type" => "switch",
"desc" => '<span class="nasa-warning red-color">' . __("If Turn on, the live search Ajax feature will be lost", 'elessi-theme') . '</span>',
);
// Options live search products
$of_options[] = array(
"name" => __("Live Search Ajax Products", 'elessi-theme'),
"id" => "enable_live_search",
"std" => 1,
"type" => "switch"
);
// Options Support search products by SKU
$of_options[] = array(
"name" => __("Support Search By SKU", 'elessi-theme'),
"id" => "sp_search_sku",
"std" => 0,
"type" => "switch"
);
// limit_results_search
$of_options[] = array(
"name" => __("Results Ajax Search (Limit Products)", 'elessi-theme'),
"id" => "limit_results_search",
"std" => "5",
"type" => "text"
);
$of_options[] = array(
"name" => __("Live Search Layout - (Header type 1, 2, 5, 7)", 'elessi-theme'),
"id" => "search_layout",
"std" => "classic",
"type" => "select",
"options" => array(
"classic" => __("Classic", 'elessi-theme'),
"modern" => __("Modern", 'elessi-theme')
)
);
$of_options[] = array(
"name" => __("Suggested Keywords - (Header type 1, 2, 5, 7)", 'elessi-theme'),
"desc" => 'Please input the Suggested keywords (ex: Sweater, Jacket, T-shirt ...).',
"id" => "hotkeys_search",
"std" => '',
"type" => "textarea",
// 'child_of' => 'search_layout',
// 'm_target' => array('modern'),
);
$of_options[] = array(
"name" => __("Popular Keywords - (Header type 1, 2, 5, 7)", 'elessi-theme'),
"desc" => 'Please input the Popular Searches keywords (ex: Sweater, Jacket, T-shirt).',
"id" => "popkeys_search",
"std" => '',
"type" => "textarea",
'child_of' => 'search_layout',
'm_target' => array('modern'),
);
// End Options live search products
}
$of_options[] = array(
"name" => __("Top Bar Options", 'elessi-theme'),
"std" => "<h4>" . __("Top Bar Options", 'elessi-theme') . "</h4>",
"type" => "info",
// 'class' => 'first'
);
$of_options[] = array(
"name" => __("Top Bar", 'elessi-theme'),
"id" => "topbar_on",
"std" => 1,
"type" => "switch",
'class' => 'nasa-fixed_nav',
'child_of' => 'header-type',
'm_target' => array('1', '2', '3', '4', '6', '8'),
);
$of_options[] = array(
"name" => __("Toggle Top Bar", 'elessi-theme'),
"id" => "topbar_toggle",
"std" => 0,
"type" => "switch",
'class' => 'nasa-topbar_toggle nasa-fixed_nav',
'child_of' => 'header-type',
'm_target' => array('1', '2', '3', '4', '6', '8'),
);
$of_options[] = array(
"name" => __("Toggle Top Bar - Initialize", 'elessi-theme'),
"id" => "topbar_default_show",
"std" => 1,
"type" => "switch",
'class' => 'hidden-tag nasa-topbar_df-show'
);
$of_options[] = array(
"name" => __("Languages Switcher", 'elessi-theme'),
"id" => "switch_lang",
"std" => 0,
"type" => "switch",
"desc" => '<span class="nasa-warning red-color">' . __("Requires WPML", 'elessi-theme') . '</span>',
);
$of_options[] = array(
"name" => __("Currencies Switcher", 'elessi-theme'),
"id" => "switch_currency",
"std" => 0,
"type" => "switch",
"desc" => '<span class="nasa-warning red-color">' . __("Requires WPML | FOX - Currency Switcher Professional for WooCommerce | CURCY - Multi Currency for WooCommerce", 'elessi-theme') . '</span>',
);
//(%symbol%) %code%
$of_options[] = array(
"name" => __("Format Currency - Only Apply for WPML", 'elessi-theme'),
"desc" => __("Default (%symbol%) %code%. You can custom for this. Ex (%name% (%symbol%) - %code%)", 'elessi-theme'),
"id" => "switch_currency_format",
"std" => "",
"type" => "text",
);
$of_options[] = array(
"name" => __("Top Bar Content", 'elessi-theme'),
"id" => "topbar_content",
"type" => "select2id",
"options" => $static_blocks,
'select_class' => 'nasa-ad-select2',
'class' => 'nasa-topbar_content ns-block-type',
"desc" => __("Please create Static Blocks (or Custom Block of Elementor Header & Footer Builder) and select here.", 'elessi-theme') . '<br /><a class="nsblk-edit hidden-tag" href="#" data-stb-href="' . esc_url(admin_url('post.php?post=ns_blk_id&action=edit')) . '" data-ctb-href="' . esc_url(admin_url('post.php?post=ns_blk_id&action=elementor')) . '">' . esc_html__('Click here to Edit', 'elessi-theme') . '</a>',
'child_of' => 'header-type',
'm_target' => array('1', '2', '3', '4', '6', '8'),
);
$of_options[] = array(
"name" => __("Topbar Background", 'elessi-theme'),
"id" => "bg_color_topbar",
"std" => "",
"type" => "color"
);
$of_options[] = array(
"name" => __("Topbar Text color", 'elessi-theme'),
"id" => "text_color_topbar",
"std" => "",
"type" => "color"
);
$of_options[] = array(
"name" => __("Topbar Text color hover", 'elessi-theme'),
"id" => "text_color_hover_topbar",
"std" => "",
"type" => "color"
);
$of_options[] = array(
"name" => __("Promotion News", 'elessi-theme'),
"std" => "<h4>" . __("Promotion News", 'elessi-theme') . "</h4>",
"type" => "info",
// 'class' => 'first'
);
$of_options[] = array(
"name" => __("Top Bar Promotion News", 'elessi-theme'),
"id" => "enable_post_top",
"std" => 0,
"type" => "switch"
);
$of_options[] = array(
"name" => __("Type Show", 'elessi-theme'),
"id" => "type_display",
"std" => 'custom',
"type" => "select",
"options" => array(
'custom' => __('Custom Content', 'elessi-theme'),
'list-posts' => __('Posts', 'elessi-theme')
),
'class' => 'type_promotion'
);
$of_options[] = array(
"name" => __("Custom Content", 'elessi-theme'),
"desc" => '<a href="javascript:void(0);" class="reset_content_custom"><b>Default value</b></a> for My content custom.<br /><a href="javascript:void(0);" class="restore_content_custom"><b>Restore text</b></a> for My content custom.<br />',
"id" => "content_custom",
"std" => '',
'type' => 'textarea',
'class' => 'nasa-custom_content',
'child_of' => 'type_display',
'm_target' => 'custom',
);
$of_options[] = array(
"name" => __("Category Post", 'elessi-theme'),
"id" => "category_post",
"std" => '',
"type" => "select",
"options" => elessi_get_cats_array(),
'select_class' => 'nasa-ad-select2',
'class' => 'nasa-list_post',
'child_of' => 'type_display',
'm_target' => 'list-posts',
);
$of_options[] = array(
"name" => __("Limit Posts", 'elessi-theme'),
"id" => "number_post",
"std" => 4,
"type" => "text",
'class' => 'nasa-list_post',
'child_of' => 'type_display',
'm_target' => 'list-posts',
);
$of_options[] = array(
"name" => __("Slide Show", 'elessi-theme'),
"id" => "number_post_slide",
"std" => 1,
"type" => "text",
'class' => 'nasa-list_post',
'child_of' => 'type_display',
'm_target' => 'list-posts',
);
$of_options[] = array(
"name" => __("Top Bar Promotion News Auto Scroll", 'elessi-theme'),
"id" => "enable_promo_slide",
"std" => 0,
"type" => "switch",
'child_of' => 'type_display',
'm_target' => 'custom',
);
$of_options[] = array(
"name" => __("Top Bar Promotion News Scroll Direction", 'elessi-theme'),
"id" => "promo_slide_direction",
"std" => 'vertical',
"type" => "select",
"options" => array(
'vertical' => __('Vertical', 'elessi-theme'),
'horizontal' => __('Horizontal', 'elessi-theme')
),
'child_of' => 'enable_promo_slide',
'm_target' => '1',
);
$of_options[] = array(
"name" => __("Full Width", 'elessi-theme'),
"id" => "enable_fullwidth",
"std" => 1,
"type" => "switch"
);
$of_options[] = array(
"name" => __("Text Promotion Color", 'elessi-theme'),
"id" => "t_promotion_color",
"std" => "#333",
"type" => "color"
);
$of_options[] = array(
"name" => __("Background Color", 'elessi-theme'),
"id" => "bg_promotion",
"std" => "",
"type" => "color"
);
$of_options[] = array(
"name" => __("Background Image", 'elessi-theme'),
"id" => "background_area",
"std" => ELESSI_THEME_URI . '/assets/images/promo_bg.jpg',
"type" => "media"
);
}
}
+187
View File
@@ -0,0 +1,187 @@
<?php
add_action('init', 'elessi_footer_heading');
if (!function_exists('elessi_footer_heading')) {
function elessi_footer_heading() {
// Set the Options Array
global $of_options;
if (empty($of_options)) {
$of_options = array();
}
$static_blocks = elessi_admin_get_static_blocks();
$of_options[] = array(
"name" => __("Footer Global", 'elessi-theme'),
"target" => 'footer-global',
"type" => "heading"
);
$of_options[] = array(
"name" => __("Footer Options", 'elessi-theme'),
"std" => "<h4>" . __("Footer Options", 'elessi-theme') . "</h4>",
"type" => "info",
'class' => 'first'
);
/**
* Disable Footer Build In
*/
$of_options[] = array(
"name" => __("Footer Built-In Support (Widgets Builder)", 'elessi-theme'),
"id" => "f_buildin",
"std" => 0,
"type" => "switch",
"desc" => '<span class="nasa-warning red-color">' . __("Recommend Turn Off to use Builder Mode", 'elessi-theme') . '</span>',
);
$modes = array(
"build-in" => __("Built-in - Widgets Place", 'elessi-theme'),
);
if (NASA_WPB_ACTIVE || !apply_filters('nasa_rules_upgrade', true)) {
$modes["builder"] = __("Builder - Suport WPBakery", 'elessi-theme');
}
if (NASA_HF_BUILDER) {
$modes["builder-e"] = __("Builder - Support HFE-Elementor", 'elessi-theme');
}
$of_options[] = array(
"name" => __("Mode", 'elessi-theme'),
"id" => "footer_mode",
"std" => 'builder',
"type" => "select",
"options" => $modes,
// 'class' => 'nasa-theme-option-parent'
);
/**
* Footer Build-in Desktop
*/
$of_options[] = array(
"name" => __("Footer Layout", 'elessi-theme'),
"id" => "footer_build_in",
"type" => "select",
'override_numberic' => true,
"options" => array(
'1' => __("Built-in Light 1", 'elessi-theme'),
'2' => __("Built-in Light 2", 'elessi-theme'),
'3' => __("Built-in Light 3", 'elessi-theme'),
'4' => __("Built-in Dark", 'elessi-theme')
),
'std' => '2',
'class' => 'nasa-footer_mode',
'child_of' => 'footer_mode',
'm_target' => array('build-in'),
);
/**
* Footer Build-in Mobile
*/
$of_options[] = array(
"name" => __("Footer Mobile Layout", 'elessi-theme'),
"id" => "footer_build_in_mobile",
"type" => "select",
'override_numberic' => true,
"options" => array(
'' => __("Extends from Desktop", 'elessi-theme'),
'm-1' => __("Build-in Mobile", 'elessi-theme')
),
'std' => '',
'class' => 'nasa-footer_mode nasa-footer_mode-build-in nasa-theme-option-child',
'child_of' => 'footer_mode',
'm_target' => array('build-in'),
);
/**
* Footers Builder
*/
$footers_options = elessi_admin_get_footer_builder();
$footers_desk = array_merge(
array('default' => __('Select the Footer Type', 'elessi-theme')),
$footers_options
);
$footers_mobile = array_merge(
array('default' => __('Extends from Desktop', 'elessi-theme')),
$footers_options
);
/**
* Footer Desktop
*/
$of_options[] = array(
"name" => __("Footer Layout", 'elessi-theme'),
"id" => "footer-type",
"type" => "select2id",
'override_numberic' => true,
"options" => $footers_desk,
'std' => 'default',
'select_class' => 'nasa-ad-select2',
'class' => 'nasa-footer_mode ns-wpb-type',
'desc' => '<a class="nswpb-edit hidden-tag" href="#" data-href="' . esc_url(admin_url('post.php?post=ns_wpb_id&action=edit')) . '">' . esc_html__('Click here to Edit', 'elessi-theme') . '</a>',
'child_of' => 'footer_mode',
'm_target' => array('builder'),
);
/**
* Footer Mobile
*/
$of_options[] = array(
"name" => __("Footer Mobile Layout", 'elessi-theme'),
"id" => "footer-mobile",
"type" => "select2id",
'override_numberic' => true,
"options" => $footers_mobile,
'std' => 'default',
'select_class' => 'nasa-ad-select2',
'class' => 'nasa-footer_mode ns-wpb-type',
'desc' => '<a class="nswpb-edit hidden-tag" href="#" data-href="' . esc_url(admin_url('post.php?post=ns_wpb_id&action=edit')) . '">' . esc_html__('Click here to Edit', 'elessi-theme') . '</a>',
'child_of' => 'footer_mode',
'm_target' => array('builder'),
);
/**
* Footers Elementor Builder
*/
$footers_options = elessi_admin_get_footer_elementor();
$footers_desk = $footers_options;
$footers_desk['0'] = __('Select the Footer Elementor', 'elessi-theme');
$footers_mobile = $footers_options;
$footers_mobile['0'] = __('Extends from Desktop', 'elessi-theme');
/**
* Footer Desktop
*/
$of_options[] = array(
"name" => __("Footer Layout", 'elessi-theme'),
"id" => "footer_elm",
"type" => "select",
'override_numberic' => true,
"options" => $footers_desk,
'std' => 'default',
'select_class' => 'nasa-ad-select2',
'class' => 'nasa-footer_mode ns-hfe-type',
'desc' => '<a class="nshfe-edit hidden-tag" href="#" data-href="' . esc_url(admin_url('post.php?post=ns_hfe_id&action=elementor')) . '">' . esc_html__('Click here to Edit', 'elessi-theme') . '</a>',
'child_of' => 'footer_mode',
'm_target' => array('builder-e'),
);
/**
* Footer Mobile
*/
$of_options[] = array(
"name" => __("Footer Mobile Layout", 'elessi-theme'),
"id" => "footer_elm_mobile",
"type" => "select",
'override_numberic' => true,
"options" => $footers_mobile,
'std' => 'default',
'select_class' => 'nasa-ad-select2',
'class' => 'nasa-footer_mode ns-hfe-type',
'desc' => '<a class="nshfe-edit hidden-tag" href="#" data-href="' . esc_url(admin_url('post.php?post=ns_hfe_id&action=elementor')) . '">' . esc_html__('Click here to Edit', 'elessi-theme') . '</a>',
'child_of' => 'footer_mode',
'm_target' => array('builder-e'),
);
}
}
+141
View File
@@ -0,0 +1,141 @@
<?php
add_action('init', 'elessi_mobile_heading');
if (!function_exists('elessi_mobile_heading')) {
function elessi_mobile_heading() {
// Set the Options Array
global $of_options;
if (empty($of_options)) {
$of_options = array();
}
$static_blocks = elessi_admin_get_static_blocks();
$of_options[] = array(
"name" => __("Mobile Layout", 'elessi-theme'),
"target" => "mobile-layout",
"type" => "heading"
);
$of_options[] = array(
"name" => __("Global Options", 'elessi-theme'),
"std" => "<h4>" . __("Global Options", 'elessi-theme') . "</h4>",
"type" => "info",
'class' => 'first'
);
$of_options[] = array(
"name" => __('Enable Mobile Layout', 'elessi-theme'),
"id" => "enable_nasa_mobile",
"std" => 0,
"type" => "switch",
// 'class' => 'ns-main',
'desc' => __('Not only is layout responsive, but also the theme uses the device detect technology to switch the web layout compatible on each type of user device', 'elessi-theme') . '<br /><span class="ns-opt-notices">Be careful when using this feature when your site is using a Cache plugin.<br />Please view more the documentation about this <a href="https://elessi-docs.nasatheme.com/mobile-layouts/about-mobile-layout/mobile-layout-cache-plugins/" target="_blank">HERE</a></span>',
);
$of_options[] = array(
"name" => __("Mobile Layout Mode", 'elessi-theme'),
"id" => "mobile_layout",
"std" => "df",
"type" => "select",
"options" => array(
"df" => __("Web Mobile", 'elessi-theme'),
"app" => __("App Simulation", 'elessi-theme')
),
'child_of' => 'enable_nasa_mobile',
'm_target' => '1',
);
$of_options[] = array(
"name" => __("Mobile Menu Layout", 'elessi-theme'),
"id" => "mobile_menu_layout",
"std" => "light",
"type" => "select",
"options" => array(
"light" => __("Light", 'elessi-theme'),
"dark" => __("Dark", 'elessi-theme')
),
);
$of_options[] = array(
"name" => __("Mobile Bottom Bar Options", 'elessi-theme'),
"std" => "<h4>" . __("Mobile Bottom Bar Options", 'elessi-theme') . "</h4>",
"type" => "info"
);
/**
* On | Off Mobile Bottom Bar
*/
$of_options[] = array(
"name" => __("Mobile Bottom Bar", 'elessi-theme'),
"id" => "m_bot_bar",
"std" => 1,
"type" => "switch"
);
$of_options[] = array(
"name" => __("Mobile Bottom Bar Content", 'elessi-theme'),
"id" => "m_bot_bar_ct",
"type" => "select2id",
"options" => $static_blocks,
'select_class' => 'nasa-ad-select2',
'class' => 'ns-block-type',
"desc" => __("Please create Static Blocks (or Custom Block of Elementor Header & Footer Builder) and select here.", 'elessi-theme') . '<br /><a class="nsblk-edit hidden-tag" href="#" data-stb-href="' . esc_url(admin_url('post.php?post=ns_blk_id&action=edit')) . '" data-ctb-href="' . esc_url(admin_url('post.php?post=ns_blk_id&action=elementor')) . '">' . esc_html__('Click here to Edit', 'elessi-theme') . '</a>',
'child_of' => 'm_bot_bar',
'm_target' => '1',
);
/**
* Mobile Single Product Options
*/
$of_options[] = array(
"name" => __("Mobile Single Product Options", 'elessi-theme'),
"std" => "<h4>" . __("Mobile Single Product Options", 'elessi-theme') . "</h4>",
"type" => "info"
);
$of_options[] = array(
"name" => __("Single Product - Mobile - Top Navigation", 'elessi-theme'),
"id" => "single_product_mobile_top_navication",
"std" => "0",
"type" => "switch",
"desc" => __("The mobile top navigation will only appears when the website is in mobile app mode", 'elessi-theme')
);
$of_options[] = array(
"name" => __("Single Product - Mobile - Top Navigation - Custom Tabs", 'elessi-theme'),
"id" => "single_product_mobile_top_navication_ctab",
"std" => "0",
"type" => "switch",
"desc" => __("When this option is enabled, all custom tabs will be displayed", 'elessi-theme'),
'child_of' => 'single_product_mobile_top_navication',
'm_target' => "1",
);
$of_options[] = array(
"name" => __('Turn Off Sidebar on Mobile Device', 'elessi-theme'),
"desc" => __("Yes, Please!", 'elessi-theme'),
"id" => "single_product_mobile",
"std" => 0,
"type" => "checkbox"
);
/**
* Mobile Mini Cart Options
*/
$of_options[] = array(
"name" => __("Mobile Mini Cart Options", 'elessi-theme'),
"std" => "<h4>" . __("Mobile Mini Cart Options", 'elessi-theme') . "</h4>",
"type" => "info"
);
$of_options[] = array(
"name" => __("Mini Cart - Simple", 'elessi-theme'),
"id" => "mini_cart_mobile_view_hide",
"std" => "0",
"type" => "switch",
"img_desc" => ELESSI_ADMIN_DIR_URI . 'assets/images/mobile_simple_mini_cart.png',
'desc' => __('Hide "View Cart" Button in Mini Cart', 'elessi-theme'),
'class' => 'img-max-height-150'
);
}
}
@@ -0,0 +1,193 @@
<?php
add_action('init', 'elessi_style_color_heading');
if (!function_exists('elessi_style_color_heading')) {
function elessi_style_color_heading() {
// Set the Options Array
global $of_options;
if (empty($of_options)) {
$of_options = array();
}
$of_options[] = array(
"name" => __("Style and Colors", 'elessi-theme'),
"target" => 'style-color',
"type" => "heading"
);
$of_options[] = array(
"name" => __("Colors Options", 'elessi-theme'),
"std" => "<h4>" . __("Colors Options", 'elessi-theme') . "</h4>",
"type" => "info",
'class' => 'first'
);
$of_options[] = array(
"name" => __("Primary Color", 'elessi-theme'),
"desc" => __("Change primary color. Used for primary buttons, link hover, background, etc.", 'elessi-theme'),
"id" => "color_primary",
"std" => "",
"type" => "color"
);
$of_options[] = array(
"name" => __("Success Color", 'elessi-theme'),
"id" => "color_success",
"std" => "",
"type" => "color"
);
$of_options[] = array(
"name" => __("Custom Badge Color", 'elessi-theme'),
"id" => "color_hot_label",
"std" => "",
"type" => "color"
);
$of_options[] = array(
"name" => __("Featured Badge Color", 'elessi-theme'),
"id" => "color_featured_label",
"std" => "",
"type" => "color"
);
$of_options[] = array(
"name" => __("New Badge Color", 'elessi-theme'),
"id" => "color_new_label",
"std" => "",
"type" => "color"
);
$of_options[] = array(
"name" => __("Backorders Badge Color", 'elessi-theme'),
"id" => "color_backorders_label",
"std" => "",
"type" => "color"
);
$of_options[] = array(
"name" => __("Video Badge Color", 'elessi-theme'),
"id" => "color_video_label",
"std" => "",
"type" => "color"
);
$of_options[] = array(
"name" => __("360&#176; Badge Color", 'elessi-theme'),
"id" => "color_360_label",
"std" => "",
"type" => "color"
);
$of_options[] = array(
"name" => __("Deal Badge Color", 'elessi-theme'),
"id" => "color_deal_label",
"std" => "",
"type" => "color"
);
$of_options[] = array(
"name" => __("Sale Badge Color", 'elessi-theme'),
"id" => "color_sale_label",
"std" => "",
"type" => "color"
);
$of_options[] = array(
"name" => __("Variants Badge Color", 'elessi-theme'),
"id" => "color_variants_label",
"std" => "",
"type" => "color"
);
$of_options[] = array(
"name" => __("Bulk Discount Badge Color", 'elessi-theme'),
"id" => "color_bulk_label",
"std" => "",
"type" => "color"
);
$of_options[] = array(
"name" => __("Price Color", 'elessi-theme'),
"id" => "color_price_label",
"std" => "",
"type" => "color"
);
$of_options[] = array(
"name" => __("Buttons Style Options", 'elessi-theme'),
"std" => "<h4>" . __("Buttons Style Options", 'elessi-theme') . "</h4>",
"type" => "info"
);
$of_options[] = array(
"name" => __("Buttons Background Color", 'elessi-theme'),
"id" => "color_button",
"std" => "",
"type" => "color"
);
$of_options[] = array(
"name" => __("Buttons Background Color Hover", 'elessi-theme'),
"desc" => __("Default use primary color", 'elessi-theme'),
"id" => "color_hover",
"std" => "",
"type" => "color"
);
$of_options[] = array(
"name" => __("Buttons Border Color", 'elessi-theme'),
"id" => "button_border_color",
"std" => "",
"type" => "color"
);
$of_options[] = array(
"name" => __("Buttons Border Color Hover", 'elessi-theme'),
"id" => "button_border_color_hover",
"std" => "",
"type" => "color"
);
$of_options[] = array(
"name" => __("Buttons Text Color", 'elessi-theme'),
"id" => "button_text_color",
"std" => "",
"type" => "color"
);
$of_options[] = array(
"name" => __("Buttons Text Color Hover", 'elessi-theme'),
"id" => "button_text_color_hover",
"std" => "",
"type" => "color"
);
$of_options[] = array(
"name" => __("Buttons Radius", 'elessi-theme'),
"id" => "button_radius",
"std" => "0",
"step" => "1",
"max" => '100',
"type" => "sliderui"
);
$of_options[] = array(
"name" => __("Buttons Border Width", 'elessi-theme'),
"id" => "button_border",
"std" => "1",
"step" => "1",
'min' => '1',
"max" => '5',
"type" => "sliderui"
);
$of_options[] = array(
"name" => __("Inputs Radius", 'elessi-theme'),
"id" => "input_radius",
"std" => "0",
"step" => "1",
"max" => "100",
"type" => "sliderui"
);
}
}
+349
View File
@@ -0,0 +1,349 @@
<?php
add_action('init', 'elessi_type_heading');
if (!function_exists('elessi_type_heading')) {
function elessi_type_heading() {
// Set the Options Array
global $of_options;
if (empty($of_options)) {
$of_options = array();
}
$google_fonts = elessi_get_google_fonts();
$custom_fonts = elessi_get_custom_fonts();
$of_options[] = array(
"name" => __("Typography", 'elessi-theme'),
"target" => 'fonts',
"type" => "heading"
);
$of_options[] = array(
"name" => __("Font Options", 'elessi-theme'),
"std" => "<h4>" . __("Font Options", 'elessi-theme') . "</h4>",
"type" => "info",
'class' => 'first'
);
$of_options[] = array(
"name" => __("Type Font", 'elessi-theme'),
"id" => "type_font_select",
"std" => "google",
"type" => "select",
"options" => array(
"" => __("Default font", 'elessi-theme'),
"custom" => __("Custom font", 'elessi-theme'),
"google" => __("Google font", 'elessi-theme')
),
'class' => 'nasa-type-font'
);
$of_options[] = array(
"name" => __("Heading fonts (H1, H2, H3, H4, H5, H6)", 'elessi-theme'),
"id" => "type_headings",
"std" => "Nunito Sans",
"type" => "select_google_font",
"preview" => array(
"text" => '<strong>Heading</strong><br /><span style="font-size:60%!important">UPPERCASE TEXT</span>',
"size" => "30px"
),
"options" => $google_fonts,
'class' => 'nasa-d-ltr nasa-type-font-glb',
'child_of' => 'type_font_select',
'm_target' => 'google',
);
$of_options[] = array(
"name" => __("RTL - Heading fonts (H1, H2, H3, H4, H5, H6)", 'elessi-theme'),
"id" => "type_headings_rtl",
"std" => "Nunito Sans",
"type" => "select_google_font",
"preview" => array(
"text" => '<strong>العنوان</strong><br /><span style="font-size:60%!important">نص بأحرف كبيرة</span>',
"size" => "30px"
),
"options" => $google_fonts,
'class' => 'nasa-d-rtl nasa-type-font-glb',
'child_of' => 'type_font_select',
'm_target' => 'google',
);
$of_options[] = array(
"name" => __("Text fonts (paragraphs, etc..)", 'elessi-theme'),
"id" => "type_texts",
"std" => "Nunito Sans",
"type" => "select_google_font",
"preview" => array(
"text" => 'Lorem ipsum dosectetur adipisicing elit, sed do.Lorem ipsum dolor sit amet, consectetur Nulla fringilla purus at leo dignissim congue. Mauris elementum accumsan leo vel tempor. Sit amet cursus nisl aliquam. Aliquam et elit eu nunc rhoncus viverra quis at felis..',
"size" => "14px"
),
"options" => $google_fonts,
'class' => 'nasa-d-ltr nasa-type-font-glb',
'child_of' => 'type_font_select',
'm_target' => 'google',
);
$of_options[] = array(
"name" => __("RTL - Text fonts (paragraphs, etc..)", 'elessi-theme'),
"id" => "type_texts_rtl",
"std" => "Nunito Sans",
"type" => "select_google_font",
"preview" => array(
"text" => 'سلسلة أحرف للنظر في تنفيذها لهذا الخط. جربه وشعر به. سلسلة أحرف للنظر في تنفيذها لهذا الخط. جربه وشعر به. سلسلة أحرف للنظر في تنفيذها لهذا الخط. جربه وشعر به.',
"size" => "14px"
),
"options" => $google_fonts,
'class' => 'nasa-d-rtl nasa-type-font-glb',
'child_of' => 'type_font_select',
'm_target' => 'google',
);
$of_options[] = array(
"name" => __("Main navigation", 'elessi-theme'),
"id" => "type_nav",
"std" => "Nunito Sans",
"type" => "select_google_font",
"preview" => array(
"text" => '<span style="font-size:45%;">THIS IS THE TEXT.</span>',
"size" => "30px"
),
"options" => $google_fonts,
'class' => 'nasa-d-ltr nasa-type-font-glb',
'child_of' => 'type_font_select',
'm_target' => 'google',
);
$of_options[] = array(
"name" => __("RTL - Main navigation", 'elessi-theme'),
"id" => "type_nav_rtl",
"std" => "Nunito Sans",
"type" => "select_google_font",
"preview" => array(
"text" => '<span style="font-size:45%;">هذا هو النص.</span>',
"size" => "30px"
),
"options" => $google_fonts,
'class' => 'nasa-d-rtl nasa-type-font-glb',
'child_of' => 'type_font_select',
'm_target' => 'google',
);
$of_options[] = array(
"name" => __("Banner font", 'elessi-theme'),
"id" => "type_banner",
"std" => "Nunito Sans",
"type" => "select_google_font",
"preview" => array(
"text" => 'This is the text.',
"size" => "30px"
),
"options" => $google_fonts,
'class' => 'nasa-d-ltr nasa-type-font-glb',
'child_of' => 'type_font_select',
'm_target' => 'google',
);
$of_options[] = array(
"name" => __("RTL - Banner font", 'elessi-theme'),
"id" => "type_banner_rtl",
"std" => "Nunito Sans",
"type" => "select_google_font",
"preview" => array(
"text" => 'هذا هو النص.',
"size" => "30px"
),
"options" => $google_fonts,
'class' => 'nasa-d-rtl nasa-type-font-glb',
'child_of' => 'type_font_select',
'm_target' => 'google',
);
$of_options[] = array(
"name" => __("Price font", 'elessi-theme'),
"id" => "type_price",
"std" => "Nunito Sans",
"type" => "select_google_font",
"preview" => array(
"text" => "$999",
"size" => "30px"
),
"options" => $google_fonts,
'class' => 'nasa-d-ltr nasa-type-font-glb',
'child_of' => 'type_font_select',
'm_target' => 'google',
);
$of_options[] = array(
"name" => __("RTL - Price font", 'elessi-theme'),
"id" => "type_price_rtl",
"std" => "Nunito Sans",
"type" => "select_google_font",
"preview" => array(
"text" => "$999",
"size" => "30px"
),
"options" => $google_fonts,
'class' => 'nasa-d-rtl nasa-type-font-glb',
'child_of' => 'type_font_select',
'm_target' => 'google',
);
$of_options[] = array(
"name" => __("Character Sub-sets", 'elessi-theme'),
"id" => "type_subset",
"std" => array("latin"),
"type" => "multicheck",
"options" => array(
"latin" => __("Latin", 'elessi-theme'),
"latin-ext" => __("Latin Extended", 'elessi-theme'),
"arabic" => __("Arabic", 'elessi-theme'),
"cyrillic" => __("Cyrillic", 'elessi-theme'),
"cyrillic-ext" => __("Cyrillic Extended", 'elessi-theme'),
"greek" => __("Greek", 'elessi-theme'),
"greek-ext" => __("Greek Extended", 'elessi-theme'),
"vietnamese" => __("Vietnamese", 'elessi-theme'),
),
'class' => 'nasa-type-font-glb',
'child_of' => 'type_font_select',
'm_target' => 'google',
);
$of_options[] = array(
"name" => __("Upload Custom Font", 'elessi-theme'),
"std" => "",
"type" => "nasa_upload_custom_font",
'class' => 'nasa-type-font-glb',
'child_of' => 'type_font_select',
'm_target' => 'custom',
);
$of_options[] = array(
"name" => __("Select Custom Font", 'elessi-theme'),
"id" => "custom_font",
"std" => "",
"type" => "select",
"options" => $custom_fonts,
'class' => 'nasa-type-font-glb',
'child_of' => 'type_font_select',
'm_target' => 'custom',
);
$of_options[] = array(
"name" => __("RTL - Select Custom Font", 'elessi-theme'),
"id" => "custom_font_rtl",
"std" => "",
"type" => "select",
"options" => $custom_fonts,
'class' => 'nasa-type-font-glb',
'child_of' => 'type_font_select',
'm_target' => 'custom',
);
$of_options[] = array(
"name" => __("Font Weight", 'elessi-theme'),
"id" => "max_font_weight",
"std" => '',
"type" => "select",
"options" => array(
'' => __("Default", 'elessi-theme'),
'800' => __("Bold - 800", 'elessi-theme'),
'700' => __("Bold - 700", 'elessi-theme'),
'600' => __("Bold - 600", 'elessi-theme'),
'500' => __("Bold - 500", 'elessi-theme')
),
'override_numberic' => true
);
$of_options[] = array(
"name" => __("Font Size", 'elessi-theme'),
"std" => "<h4>" . __("Font Size", 'elessi-theme') . "</h4>",
"type" => "info",
// 'class' => 'first'
);
$of_options[] = array(
"name" => __("Font Size (px)", 'elessi-theme'),
"id" => "font_size",
"std" => "14.5",
"type" => "select",
"options" => array(
"12" => '12px',
"12.5" => '12.5px',
"13" => '13px',
"13.5" => '13.5px',
"14" => '14px',
"14.5" => '14.5px - Default',
"15" => '15px',
"15.5" => '15.5px',
"16" => '16px',
"16.5" => '16.5px',
"17" => '17px',
),
'override_numberic' => true
);
$of_options[] = array(
"name" => __("Font Size (px) - Mobile", 'elessi-theme'),
"id" => "font_size_m",
"std" => "14.5",
"type" => "select",
"options" => array(
"12" => '12px',
"12.5" => '12.5px',
"13" => '13px',
"13.5" => '13.5px',
"14" => '14px',
"14.5" => '14.5px - Default',
"15" => '15px',
"15.5" => '15.5px',
"16" => '16px',
"16.5" => '16.5px',
"17" => '17px',
),
'override_numberic' => true
);
$of_options[] = array(
"name" => __("Font Icons", 'elessi-theme'),
"std" => "<h4>" . __("Font Icons", 'elessi-theme') . "</h4>",
"type" => "info",
// 'class' => 'first'
);
$of_options[] = array(
"name" => __("Support Font Icons", 'elessi-theme'),
"id" => "sp_font_icon",
"std" => 1,
"type" => "switch",
'desc' => 'Note: Support Call Font Nasa Icons, Font Awesome 4.7.0, Font Pe-icon-7-stroke'
);
$of_options[] = array(
"name" => __("Minify Fonts Icons", 'elessi-theme'),
"id" => "minify_font_icons",
"std" => 1,
"type" => "switch",
"desc" => "Include: Font Nasa Icons, Font Awesome 4.7.0, Font Pe-icon-7-stroke",
'child_of' => 'sp_font_icon',
'm_target' => '1',
);
$of_options[] = array(
"name" => __("Preload Fonts Icons", 'elessi-theme'),
"id" => "preload_font_icons",
"std" => 1,
"type" => "switch",
"desc" => "Preload: Font Nasa Icons, Font Awesome 4.7.0, Font Pe-icon-7-stroke",
'child_of' => 'sp_font_icon',
'm_target' => '1',
);
$of_options[] = array(
"name" => 'Include FontAwesome 6 (Note: You only can use Free icons)',
"id" => "include_font_awesome_new",
"std" => 0,
"type" => "switch",
'child_of' => 'sp_font_icon',
'm_target' => '1',
);
}
}
@@ -0,0 +1,121 @@
<?php
add_action('init', 'elessi_breadcrumb_heading');
if (!function_exists('elessi_breadcrumb_heading')) {
function elessi_breadcrumb_heading() {
// Set the Options Array
global $of_options;
if (empty($of_options)) {
$of_options = array();
}
$of_options[] = array(
"name" => __("Breadcrumb", 'elessi-theme'),
"target" => 'breadcumb',
"type" => "heading"
);
$of_options[] = array(
"name" => __("General Options", 'elessi-theme'),
"std" => "<h4>" . __("General Options", 'elessi-theme') . "</h4>",
"type" => "info",
'class' => 'first'
);
$of_options[] = array(
"name" => __("Global Site", 'elessi-theme'),
"id" => "breadcrumb_show",
"std" => 1,
"type" => "switch",
'class' => 'nasa-breadcrumb-flag-option',
'desc' => 'Note: Pages built in Dashboard > Pages - built with page builders (WPBakery, Elementor) will not be managed by this option, they will be turned on and off at Advance options of that page.'
);
$of_options[] = array(
"name" => __("Layout", 'elessi-theme'),
"desc" => __("Layout Single or Double rows.", 'elessi-theme'),
"id" => "breadcrumb_row",
"std" => "multi",
"type" => "select",
"options" => array(
"multi" => __("Double Rows", 'elessi-theme'),
"single" => __("Single Row", 'elessi-theme')
),
);
$of_options[] = array(
"name" => __("Type", 'elessi-theme'),
"desc" => __("With or Without Background.", 'elessi-theme'),
"id" => "breadcrumb_type",
"std" => "has-background",
"type" => "select",
"options" => array(
"default" => __("Without Background - Default use Background Color", 'elessi-theme'),
"has-background" => __("With Background", 'elessi-theme')
),
);
$of_options[] = array(
"name" => __("Background Image", 'elessi-theme'),
"id" => "breadcrumb_bg",
"std" => ELESSI_ADMIN_DIR_URI . 'assets/images/breadcrumb-bg.jpg',
"type" => "media"
);
$of_options[] = array(
"name" => __("Background Image - Mobile Layout Mode", 'elessi-theme'),
"id" => "breadcrumb_bg_m",
"std" => '',
"type" => "media"
);
$of_options[] = array(
"name" => __("Background Parallax", 'elessi-theme'),
"id" => "breadcrumb_bg_lax",
"std" => 0,
"type" => "switch"
);
$of_options[] = array(
"name" => __("Background Color", 'elessi-theme'),
"id" => "breadcrumb_bg_color",
"std" => "",
"type" => "color"
);
$of_options[] = array(
"name" => __("Text Color", 'elessi-theme'),
"id" => "breadcrumb_color",
"std" => "",
"type" => "color"
);
$of_options[] = array(
"name" => __("Text Align", 'elessi-theme'),
"id" => "breadcrumb_align",
"std" => "text-center",
"type" => "select",
"options" => array(
"text-center" => __("Center", 'elessi-theme'),
"text-left" => __("Left", 'elessi-theme'),
"text-right" => __("Right", 'elessi-theme')
),
);
$of_options[] = array(
"name" => __("Height", 'elessi-theme'),
"desc" => __("Default - 130px", 'elessi-theme'),
"id" => "breadcrumb_height",
"std" => "130",
"type" => "text"
);
$of_options[] = array(
"name" => __("Height For Mobile", 'elessi-theme'),
"id" => "breadcrumb_height_m",
"std" => "",
"type" => "text"
);
$of_options = apply_filters('nasa_theme_opts_breadcrumb', $of_options);
}
}
@@ -0,0 +1,626 @@
<?php
add_action('init', 'elessi_product_global_heading');
if (!function_exists('elessi_product_global_heading')) {
function elessi_product_global_heading() {
// Set the Options Array
global $of_options;
if (empty($of_options)) {
$of_options = array();
}
$of_options[] = array(
"name" => __("Product Global Options", 'elessi-theme'),
"target" => 'product-global',
"type" => "heading",
);
$of_options[] = array(
"name" => __("Grid Products - Options", 'elessi-theme'),
"std" => "<h4>" . __("Grid Products - Options", 'elessi-theme') . "</h4>",
"type" => "info",
'class' => 'first'
);
// Loop Group Buttons layout
$of_options[] = array(
"name" => __("Product Card Styles", 'elessi-theme'),
"id" => "loop_layout_buttons",
"std" => "ver-buttons",
"type" => "images",
"options" => array(
'ver-buttons' => ELESSI_ADMIN_DIR_URI . 'assets/images/loop-product-df.jpg',
'hoz-buttons' => ELESSI_ADMIN_DIR_URI . 'assets/images/loop-product-df-2.jpg',
'modern-1' => ELESSI_ADMIN_DIR_URI . 'assets/images/loop-product-md-1.jpg',
'modern-2' => ELESSI_ADMIN_DIR_URI . 'assets/images/loop-product-md-2.jpg',
'modern-3' => ELESSI_ADMIN_DIR_URI . 'assets/images/loop-product-md-3.jpg',
'modern-4' => ELESSI_ADMIN_DIR_URI . 'assets/images/loop-product-md-4.jpg',
'modern-5' => ELESSI_ADMIN_DIR_URI . 'assets/images/loop-product-md-5.jpg',
'modern-6' => ELESSI_ADMIN_DIR_URI . 'assets/images/loop-product-md-6.jpg',
'modern-7' => ELESSI_ADMIN_DIR_URI . 'assets/images/loop-product-md-7.jpg',
'modern-8' => ELESSI_ADMIN_DIR_URI . 'assets/images/loop-product-md-8.jpg',
'modern-9' => ELESSI_ADMIN_DIR_URI . 'assets/images/loop-product-md-9.jpg'
),
'class' => 'flex-row flex-wrap flex-start img-max-height-150'
);
$of_options[] = array(
"name" => __("Hover - Product Card Styles - Effect", 'elessi-theme'),
"id" => "animated_products",
"std" => "hover-fade",
"type" => "select",
"options" => array(
"hover-fade" => __("Fade", 'elessi-theme'),
"hover-zoom" => __("Zoom", 'elessi-theme'),
"hover-to-top" => __("Move To Top", 'elessi-theme'),
"hover-flip" => __("Flip Horizontal", 'elessi-theme'),
"hover-bottom-to-top" => __("Bottom To Top", 'elessi-theme'),
"hover-top-to-bottom" => __("Top To Bottom", 'elessi-theme'),
"hover-left-to-right" => __("Left To Right", 'elessi-theme'),
"hover-right-to-left" => __("Right To Left", 'elessi-theme'),
"hover-carousel" => __("Gallery - Carousel", 'elessi-theme'),
"" => __("No Effect", 'elessi-theme')
)
);
$of_options[] = array(
"name" => __("Product Spacing", 'elessi-theme'),
"id" => "global_product_spacing",
"std" => "medium_spacing",
"type" => "select",
'options' => array(
'small_spacing' => __('Small Spacing', 'elessi-theme'),
'medium_spacing' => __('Medium Spacing', 'elessi-theme'),
'large_spacing' => __('Large Spacing', 'elessi-theme')
)
);
$of_options[] = array(
"name" => __("Back Image in Mobile Layout", 'elessi-theme'),
"id" => "mobile_back_image",
"std" => "0",
"type" => "switch"
);
$of_options[] = array(
"name" => __("Backorder Allowed Badge", 'elessi-theme'),
"id" => "backorder_badge",
"std" => "0",
"type" => "switch"
);
$of_options[] = array(
"name" => __("Display product Categories", 'elessi-theme'),
"id" => "loop_categories",
"std" => "0",
"type" => "switch"
);
$of_options[] = array(
"name" => __("Display product SKU", 'elessi-theme'),
"id" => "loop_sku",
"std" => "0",
"type" => "switch"
);
$of_options[] = array(
"name" => __("Show Title In Line", 'elessi-theme'),
"id" => "cutting_product_name",
"desc" => __("Only show title product on one line if it is too long.", 'elessi-theme'),
"std" => "1",
"type" => "switch"
);
$of_options[] = array(
"name" => __("Catalog Mode - Disable Add To Cart Feature", 'elessi-theme'),
"id" => "disable-cart",
"std" => "0",
"type" => "switch",
"desc" => __('Your website will just be a product introduction website.', 'elessi-theme'),
);
$of_options[] = array(
"name" => __("Add To Cart in Grid", 'elessi-theme'),
"id" => "loop_add_to_cart",
"std" => "1",
"type" => "switch"
);
$of_options[] = array(
"name" => __("Icon Add To Cart in Grid", 'elessi-theme'),
"id" => "cart-icon-grid",
"std" => "1",
"type" => "images",
"options" => array(
// fa fa-plus - default
'1' => ELESSI_ADMIN_DIR_URI . 'assets/images/cart-plus.jpg',
// icon-nasa-cart-3
'2' => ELESSI_ADMIN_DIR_URI . 'assets/images/mini-cart-1.jpg',
// icon-nasa-cart-2
'3' => ELESSI_ADMIN_DIR_URI . 'assets/images/mini-cart-2.jpg',
// icon-nasa-cart-4
'4' => ELESSI_ADMIN_DIR_URI . 'assets/images/mini-cart-3.jpg',
// pe-7s-cart
'5' => ELESSI_ADMIN_DIR_URI . 'assets/images/mini-cart-4.jpg',
// fa fa-shopping-cart
'6' => ELESSI_ADMIN_DIR_URI . 'assets/images/mini-cart-5.jpg',
// fa fa-shopping-bag
'7' => ELESSI_ADMIN_DIR_URI . 'assets/images/mini-cart-6.jpg',
// fa fa-shopping-basket
'8' => ELESSI_ADMIN_DIR_URI . 'assets/images/mini-cart-7.jpg',
'9' => ELESSI_ADMIN_DIR_URI . 'assets/images/mini-cart-8.jpg'
),
'child_of' => 'loop_add_to_cart',
'm_target' => '1',
);
if (defined('YITH_WCPB')) {
// Enable Gift in grid
$of_options[] = array(
"name" => __("Enable Promotion Gifts featured icon", 'elessi-theme'),
"id" => "enable_gift_featured",
"std" => 1,
"type" => "switch"
);
}
$of_options[] = array(
"name" => __("Mini Cart - Options", 'elessi-theme'),
"std" => "<h4>" . __("Mini Cart - Options", 'elessi-theme') . "</h4>",
"type" => "info"
);
$of_options[] = array(
"name" => __("Icon Mini Cart in Header", 'elessi-theme'),
"id" => "mini-cart-icon",
"std" => "1",
"type" => "images",
"options" => array(
// icon-nasa-cart-3 - default
'1' => ELESSI_ADMIN_DIR_URI . 'assets/images/mini-cart-1.jpg',
// icon-nasa-cart-2
'2' => ELESSI_ADMIN_DIR_URI . 'assets/images/mini-cart-2.jpg',
// icon-nasa-cart-4
'3' => ELESSI_ADMIN_DIR_URI . 'assets/images/mini-cart-3.jpg',
// pe-7s-cart
'4' => ELESSI_ADMIN_DIR_URI . 'assets/images/mini-cart-4.jpg',
// fa fa-shopping-cart
'5' => ELESSI_ADMIN_DIR_URI . 'assets/images/mini-cart-5.jpg',
// fa fa-shopping-bag
'6' => ELESSI_ADMIN_DIR_URI . 'assets/images/mini-cart-6.jpg',
// fa fa-shopping-basket
'7' => ELESSI_ADMIN_DIR_URI . 'assets/images/mini-cart-7.jpg'
)
);
$of_options[] = array(
"name" => __("Event After Add to Cart", 'elessi-theme'),
"id" => "event-after-add-to-cart",
"std" => "sidebar",
"type" => "select",
"options" => array(
"sidebar" => __("Open Cart Sidebar", 'elessi-theme'),
"popup" => __("Popup Your Order v1 - Not use with Mobile App Simulation", 'elessi-theme'),
"popup_2" => __("Popup Your Order v2 - Not use with Mobile App Simulation", 'elessi-theme'),
"notice" => __("Show Notice", 'elessi-theme'),
),
// 'class' => 'nasa-theme-option-parent'
);
$of_options[] = array(
"name" => "Preload - Add to Cart",
"id" => "ns_preload_mcart",
"std" => "1",
"type" => "switch",
'child_of' => 'event-after-add-to-cart',
'm_target' => array('sidebar'),
);
$of_options[] = array(
"name" => __("Mini Cart - You may be interested in…", 'elessi-theme'),
"id" => "mini_cart_crsells",
"std" => "0",
"type" => "switch",
'desc' => __("Note: This feature does not apply to mobiles or devices with small screens", 'elessi-theme')
);
if ('yes' === get_option('woocommerce_enable_ajax_add_to_cart')) {
$of_options[] = array(
"name" => __("Mini Cart - Change variation in mini cart", 'elessi-theme'),
"id" => "mini_cart_change_variation_product",
"std" => "0",
"type" => "switch"
);
}
$of_options[] = array(
"name" => __("Mini Cart - Note", 'elessi-theme'),
"id" => "mini_cart_note",
"std" => "0",
"type" => "switch"
);
$of_options[] = array(
"name" => __("Mini Cart - Shipping", 'elessi-theme'),
"id" => "mini_cart_shipping",
"std" => "0",
"type" => "switch"
);
$of_options[] = array(
"name" => __("Mini Cart - Coupon", 'elessi-theme'),
"id" => "mini_cart_coupon",
"std" => "0",
"type" => "switch"
);
$of_options[] = array(
"name" => __("Public Coupons - Mini Cart (one per line)", 'elessi-theme'),
"desc" => 'Please input the coupon code you want to publish in Mini Cart Sidebar (one per line).',
"id" => "mini_cart_p_coupon",
"std" => '',
"type" => "textarea",
'child_of' => 'mini_cart_coupon',
'm_target' => '1',
);
$of_options[] = array(
"name" => __("Quantity Input - Mini Cart", 'elessi-theme'),
"id" => "mini_cart_qty",
"std" => "1",
"type" => "switch"
);
$of_options[] = array(
"name" => __("Subtotal for Item - Mini Cart", 'elessi-theme'),
"id" => "mini_cart_subtotal",
"std" => "1",
"type" => "switch"
);
$of_options[] = array(
"name" => __("Mini Cart - Sidebar Layout", 'elessi-theme'),
"id" => "style-cart",
"std" => "style-1",
"type" => "select",
"options" => array(
'style-1' => __('Light', 'elessi-theme'),
'style-2' => __('Dark', 'elessi-theme')
)
);
$of_options[] = array(
"name" => __("Addon Options", 'elessi-theme'),
"std" => "<h4>" . __("Addon Options", 'elessi-theme') . "</h4>",
"type" => "info"
);
if (class_exists('WooCommerce_Advanced_Free_Shipping')) {
$of_options[] = array(
"name" => __("Free Shipping Bar - WooCommerce Advanced Free Shipping", 'elessi-theme'),
"id" => "free_shipbar",
"std" => "1",
"type" => "switch"
);
$of_options[] = array(
"name" => __("Reach Free Shipping Effect - WooCommerce Advanced Free Shipping", 'elessi-theme'),
"id" => "free_shipping_effect",
"std" => "0",
"type" => "switch"
);
}
$of_options[] = array(
"name" => __("Compact Number - Cart, Wishlist, Compare (9+)", 'elessi-theme'),
"id" => "compact_number",
"std" => "1",
"type" => "switch",
"desc" => __('Automatically displays 9+ if the number is greater than or equal to 10', 'elessi-theme')
);
$of_options[] = array(
"name" => __("Top Filter Categories", 'elessi-theme'),
"id" => "show_icon_cat_top",
"std" => "show-in-shop",
"type" => "select",
"options" => array(
'show-in-shop' => __('On Archive Product Pages', 'elessi-theme'),
'show-all-site' => __('On All Pages', 'elessi-theme'),
'not-show' => __('Off', 'elessi-theme'),
),
"img_desc" => ELESSI_ADMIN_DIR_URI . 'assets/images/icon_cat_top.jpg',
'class' => 'img-fit-size'
);
$of_options[] = array(
"name" => __("Max Depth Level - Top Filter Categories", 'elessi-theme'),
"id" => "depth_cat_top",
"std" => "0",
"type" => "select",
"options" => array(
'0' => __('Unlimited', 'elessi-theme'),
'1' => __('1 Level', 'elessi-theme'),
'2' => __('2 Levels', 'elessi-theme'),
'3' => __('3 Levels', 'elessi-theme')
),
'override_numberic' => true
);
$of_options[] = array(
"name" => __("Order by - Top Filter Categories", 'elessi-theme'),
"id" => "order_cat_top",
"std" => "name",
"type" => "select",
"options" => array(
'order' => __('Category Order', 'elessi-theme'),
'name' => __('Name', 'elessi-theme')
)
);
// Hide categories empty product
$of_options[] = array(
"name" => __("Hide categories empty product - Top Filter Categories", 'elessi-theme'),
"id" => "hide_empty_cat_top",
"std" => 0,
"type" => "switch"
);
$of_options[] = array(
"name" => __("Disable top level of categories follow current category archive (Use for Multi stores)", 'elessi-theme'),
"desc" => __("Yes, Please!", 'elessi-theme'),
"id" => "disable_top_level_cat",
"std" => 0,
"type" => "checkbox"
);
$of_options[] = array(
"name" => __("Uncategorized Product", 'elessi-theme'),
"id" => "show_uncategorized",
"std" => 0,
"type" => "switch"
);
$of_options[] = array(
"name" => __("Disable - Progress Bar loading ajax", 'elessi-theme'),
"id" => "disable_ajax_product_progress_bar",
// "desc" => __("Yes, Please!", 'elessi-theme'),
"on" => __("Yes", 'elessi-theme'),
"off" => __("No", 'elessi-theme'),
"std" => 0,
"type" => "switch"
);
$of_options[] = array(
"name" => __("Badge - Options", 'elessi-theme'),
"std" => "<h4>" . __("Badge - Options", 'elessi-theme') . "</h4>",
"type" => "info"
);
$of_options[] = array(
"name" => __('New Badge - Automatically add Badge "NEW" for new products', 'elessi-theme'),
"id" => "at_badge_new",
// "desc" => __("Yes, Please!", 'elessi-theme'),
"std" => "0",
"type" => "switch"
);
$of_options[] = array(
"name" => __('Maximum time to maintain Badge "NEW" for newly published products', 'nasa-core'),
"id" => "max_ns_time_at_badge_new",
"std" => "10",
"type" => "text",
"desc" => "Time is measured in days (Ex:10 = 10 days)",
'child_of' => 'at_badge_new',
'm_target' => '1',
);
$of_options[] = array(
"name" => __("Featured Badge", 'elessi-theme'),
"id" => "featured_badge",
"std" => "0",
"type" => "switch"
);
$of_options[] = array(
"name" => __("Shopping Cart - Options", 'elessi-theme'),
"std" => "<h4>" . __("Shopping Cart - Options", 'elessi-theme') . "</h4>",
"type" => "info"
);
$of_options[] = array(
"name" => __("Auto Update - Cart Page", 'elessi-theme'),
"id" => "auto_update_cart",
"std" => "0",
"type" => "switch"
);
// Only show one Shipping Method in Cart
$of_options[] = array(
"name" => __("Only Show one Shipping Method in Cart Page", 'elessi-theme'),
"id" => "cart_1_shiping",
"std" => "1",
"type" => "switch",
// 'class' => 'nasa-checkout_layout nasa-checkout_layout-modern nasa-theme-option-child'
'child_of' => 'checkout_layout',
'm_target' => 'modern',
);
/**
* Fake Time Limited Countdown Checkout
*/
$of_options[] = array(
"name" => __("Cart Countdown Timer", 'nasa-core'),
"id" => "ns_time_limited_checkout",
"std" => 0,
"type" => "switch",
"img_desc" => ELESSI_ADMIN_DIR_URI . 'assets/images/fake_limited_in_cart.png',
"desc" => '<span class="ns-opt-notices">Be careful when using this feature, when you turn this feature on you will set a countdown time.<br /> When the customer enters the cart page it will start the countdown and when the countdown ends it will delete all products in the cart.</span>'
);
$of_options[] = array(
"name" => __("Min - Time Limited Countdown Checkout (s)", 'nasa-core'),
"id" => "min_ns_time_limited_checkout",
"std" => "300",
"type" => "text",
"desc" => "Time is measured in seconds (Ex:5m = 300s)",
'child_of' => 'ns_time_limited_checkout',
'm_target' => '1',
);
$of_options[] = array(
"name" => __("Max - Time Limited Countdown Checkout (s)", 'nasa-core'),
"id" => "max_ns_time_limited_checkout",
"std" => "600",
"type" => "text",
"desc" => "Time is measured in seconds (Ex:10m = 600s)",
'child_of' => 'ns_time_limited_checkout',
'm_target' => '1',
);
$of_options[] = array(
"name" => __("Checkout - Options", 'elessi-theme'),
"std" => "<h4>" . __("Checkout - Options", 'elessi-theme') . "</h4>",
"type" => "info"
);
$of_options[] = array(
"name" => __("Checkout Layout", 'elessi-theme'),
"id" => "checkout_layout",
"std" => "",
"type" => "select",
"options" => array(
'' => __('Default', 'elessi-theme'),
'modern' => __('Modern - No Header, No Footer', 'elessi-theme')
),
// 'class' => 'nasa-theme-option-parent'
);
$of_options[] = array(
"name" => __("Quantity Input - Checkout Page", 'elessi-theme'),
"id" => "mini_checkout_qty",
"std" => "0",
"type" => "switch"
);
$of_options[] = array(
"name" => __("Image Product - Checkout Page", 'elessi-theme'),
"id" => "mini_checkout_img",
"std" => "1",
"type" => "switch"
);
$of_options[] = array(
"name" => __("Quickview Options", 'elessi-theme'),
"std" => "<h4>" . __("Quickview Options", 'elessi-theme') . "</h4>",
"type" => "info"
);
$of_options[] = array(
"name" => __("Disable Quick View", 'elessi-theme'),
"id" => "disable-quickview",
"on" => __("Yes", 'elessi-theme'),
"off" => __("No", 'elessi-theme'),
"std" => 0,
"type" => "switch"
);
$of_options[] = array(
"name" => __("Select Options button to Quickview", 'elessi-theme'),
"id" => "slc_ops_qv",
"std" => "1",
"type" => "switch",
);
$of_options[] = array(
"name" => __("Quickview Layout", 'elessi-theme'),
"id" => "style_quickview",
"std" => "sidebar",
"type" => "select",
"options" => array(
'popup' => __('Popup Classical - Not use with Mobile App Simulation', 'elessi-theme'),
'sidebar' => __('Off-Canvas', 'elessi-theme')
),
// 'class' => 'nasa-theme-option-parent',
);
$of_options[] = array(
"name" => __("Number Show Quickview Thumbnail", 'elessi-theme'),
"id" => "quick_view_item_thumb",
"std" => "1-item",
"type" => "select",
"options" => array(
'1-item' => __('Single Thumbnail', 'elessi-theme'),
'2-items' => __('Double Thumbnails', 'elessi-theme')
),
'child_of' => 'style_quickview',
'm_target' => 'sidebar',
// 'class' => 'nasa-style_quickview nasa-style_quickview-sidebar nasa-theme-option-child'
);
$of_options[] = array(
"name" => __("Infinite Slide In Quickview", 'elessi-theme'),
"id" => "loop_quickview",
"std" => "0",
"type" => "switch",
);
$of_options[] = array(
"name" => __("Cross-Sells Products", 'elessi-theme'),
"std" => "<h4>" . __("You may be interested in&hellip;", 'elessi-theme') . "</h4>",
"type" => "info"
);
$of_options[] = array(
"name" => __("Columns", 'elessi-theme'),
"id" => "crs_columns_desk",
"std" => "5-cols",
"type" => "select",
"options" => array(
"5-cols" => __("5 columns", 'elessi-theme'),
"4-cols" => __("4 columns", 'elessi-theme'),
"3-cols" => __("3 columns", 'elessi-theme'),
)
);
$of_options[] = array(
"name" => __("Tablet Columns", 'elessi-theme'),
"id" => "crs_columns_tablet",
"std" => "3-cols",
"type" => "select",
"options" => array(
"4-cols" => __("4 columns", 'elessi-theme'),
"3-cols" => __("3 columns", 'elessi-theme'),
"2-cols" => __("2 columns", 'elessi-theme')
)
);
$of_options[] = array(
"name" => __("Mobile Columns", 'elessi-theme'),
"id" => "crs_columns_small",
"std" => "2-cols",
"type" => "select",
"options" => array(
"2-cols" => __("2 columns", 'elessi-theme'),
"1.5-cols" => __("1.5 column", 'elessi-theme'),
"1-col" => __("1 column", 'elessi-theme')
)
);
$of_options[] = array(
"name" => __("Auto Slide", 'elessi-theme'),
"id" => "crs_slide_auto",
"std" => 0,
"type" => "switch"
);
$of_options[] = array(
"name" => __("Infinite Slide", 'elessi-theme'),
"id" => "crs_slide_loop",
"std" => 0,
"type" => "switch"
);
$of_options = apply_filters('nasa_theme_opts_glb_product', $of_options);
}
}
@@ -0,0 +1,346 @@
<?php
add_action('init', 'elessi_product_page_heading');
if (!function_exists('elessi_product_page_heading')) {
function elessi_product_page_heading() {
// Set the Options Array
global $of_options;
if (empty($of_options)) {
$of_options = array();
}
$of_options[] = array(
"name" => __("Archive Products Page", 'elessi-theme'),
"target" => 'product-page',
"type" => "heading",
);
$of_options[] = array(
"name" => __("Archive Options", 'elessi-theme'),
"std" => "<h4>" . __("Archive Options", 'elessi-theme') . "</h4>",
"type" => "info",
'class' => 'first'
);
$of_options[] = array(
"name" => __("Shop Sidebar Layout", 'elessi-theme'),
"id" => "category_sidebar",
"std" => "top",
"type" => "select",
"options" => array(
"top" => __("Top Bar", 'elessi-theme'),
"top-2" => __("Top Bar Type 2", 'elessi-theme'),
"top-3" => __("Top Bar Type 3", 'elessi-theme'),
"left" => __("Left Sidebar - Off-canvas", 'elessi-theme'),
"right" => __("Right Sidebar - Off-canvas", 'elessi-theme'),
"left-classic" => __("Left Sidebar - Classic", 'elessi-theme'),
"right-classic" => __("Right Sidebar - Classic", 'elessi-theme'),
"no" => __("No Sidebar", 'elessi-theme'),
),
// 'class' => 'nasa-theme-option-parent'
);
$of_options[] = array(
"name" => __("Sidebar Classic - Sticky", 'elessi-theme'),
"id" => "archive_sticky_sidebar_classic",
"std" => "0",
"type" => "switch",
'class' => 'nasa-category_sidebar',
'child_of' => 'category_sidebar',
'm_target' => array('left-classic', 'right-classic'),
);
$of_options[] = array(
"name" => __("Toggle Sidebar", 'elessi-theme'),
"id" => "toggle_sidebar_classic",
"std" => "1",
"type" => "switch",
'class' => 'nasa-category_sidebar',
'child_of' => 'category_sidebar',
'm_target' => array('left-classic', 'right-classic'),
);
$of_options[] = array(
"name" => __("Top Bar Limit widgets to Show More", 'elessi-theme'),
"id" => "limit_widgets_show_more",
"desc" => __('Limit widgets to show more. (Input "All" will be show all widgets)', 'elessi-theme'),
"std" => "4",
"type" => "text",
'class' => 'nasa-category_sidebar',
'child_of' => 'category_sidebar',
'm_target' => array('top'),
);
$of_options[] = array(
"name" => __("Position Filter Categories", 'elessi-theme'),
"id" => "top_bar_cat_pos",
"std" => "left-bar",
"type" => "select",
"options" => array(
"top" => __("Top", 'elessi-theme'),
"left-bar" => __("Side", 'elessi-theme')
),
'class' => 'nasa-category_sidebar',
'child_of' => 'category_sidebar',
'm_target' => array('top'),
);
$of_options[] = array(
"name" => __("Position Filter Categories - Type 3", 'elessi-theme'),
"id" => "top_bar_cat_pos_type_3",
"std" => "side-classic",
"type" => "select",
"options" => array(
"side-classic" => __("Side Classic", 'elessi-theme'),
"side-canvas" => __("Side Canvas", 'elessi-theme')
),
'class' => 'nasa-category_sidebar',
'child_of' => 'category_sidebar',
'm_target' => array('top-3'),
);
$of_options[] = array(
"name" => __("Nasa - Product Categories in Sidebar Off-Canvas of Mobile layout", 'elessi-theme'),
"id" => "ns_pcat_off",
"type" => "switch",
'class' => 'nasa-category_sidebar',
'child_of' => 'category_sidebar',
'm_target' => array('top'),
);
$of_options[] = array(
"name" => __("Default View", 'elessi-theme'),
"id" => "products_type_view",
"std" => "grid",
"type" => "select",
"options" => array(
"grid" => __("Grid", 'elessi-theme'),
"list" => __("List", 'elessi-theme'),
"list-2" => __("List - 2 Columns", 'elessi-theme')
)
);
$of_options[] = array(
"name" => __("Change Shop Layout Mode", 'elessi-theme'),
"id" => "option_change_shop_layout",
"std" => "shop-default",
"type" => "select",
"options" => array(
"shop-default" => __("Shop Without Background Color", 'elessi-theme'),
"shop-background-color" => __("Shop With Background Color", 'elessi-theme')
)
);
$of_options[] = array(
"name" => __("Shop Background Color", 'elessi-theme'),
"id" => "color_background_shop",
"std" => "",
"type" => "color",
'child_of' => 'option_change_shop_layout',
'm_target' => 'shop-background-color',
);
$of_options[] = array(
"name" => __("Background Color Of Product Items In The Shop", 'elessi-theme'),
"id" => "color_background_shop_pro",
"std" => "",
"type" => "color",
'child_of' => 'option_change_shop_layout',
'm_target' => 'shop-background-color',
);
$of_options[] = array(
"name" => __("Change View Mode (Only Desktop Mode)", 'elessi-theme'),
"id" => "enable_change_view",
"std" => "1",
"type" => "switch"
);
$of_options[] = array(
"name" => __("Product Column Icon Style", 'elessi-theme'),
"id" => "nasa_change_layout_view",
"std" => "img_view_1",
"type" => "images",
"options" => array(
'number_view' => ELESSI_ADMIN_DIR_URI . 'assets/images/Column_option_style_number.png',
'img_view_1' => ELESSI_ADMIN_DIR_URI . 'assets/images/Column_option_style_1.png',
'img_view_2' => ELESSI_ADMIN_DIR_URI . 'assets/images/Column_option_style_2.png',
),
'child_of' => 'enable_change_view',
'm_target' => '1',
);
$of_options[] = array(
"name" => __("Option Product Column Select To Display", 'elessi-theme'),
"id" => "multicheck_options_cols_display",
"std" => array(
"2-cols" => 0,
"3-cols" => 1,
"4-cols" => 1,
"5-cols" => 1,
"6-cols" => 0,
"list" => 1,
"list-2cols" => 0
),
"type" => "multicheck",
"options" => array(
"2-cols" => __("2 Columns", 'elessi-theme'),
"3-cols" => __("3 Columns", 'elessi-theme'),
"4-cols" => __("4 Columns", 'elessi-theme'),
"5-cols" => __("5 Columns", 'elessi-theme'),
"6-cols" => __("6 Columns", 'elessi-theme'),
"list" => __("List", 'elessi-theme'),
"list-2cols" => __("List 2 Columns", 'elessi-theme'),
),
'child_of' => 'enable_change_view',
'm_target' => '1',
);
$of_options[] = array(
"name" => __("Change View Mode Mobile (Only Mobile App Layout Mode)", 'elessi-theme'),
"id" => "enable_change_view_mobile",
"std" => "0",
"type" => "switch"
);
$of_options[] = array(
"name" => __("Columns", 'elessi-theme'),
"id" => "products_per_row",
"std" => "4-cols",
"type" => "select",
"options" => array(
"2-cols" => __("2 columns", 'elessi-theme'),
"3-cols" => __("3 columns", 'elessi-theme'),
"4-cols" => __("4 columns", 'elessi-theme'),
"5-cols" => __("5 columns", 'elessi-theme'),
"6-cols" => __("6 columns", 'elessi-theme'),
)
);
$of_options[] = array(
"name" => __("Mobile Columns", 'elessi-theme'),
"id" => "products_per_row_small",
"std" => "1-col",
"type" => "select",
"options" => array(
"1-cols" => __("1 column", 'elessi-theme'),
"2-cols" => __("2 columns", 'elessi-theme')
)
);
$of_options[] = array(
"name" => __("Tablet Columns", 'elessi-theme'),
"id" => "products_per_row_tablet",
"std" => "2-cols",
"type" => "select",
"options" => array(
"2-cols" => __("2 columns", 'elessi-theme'),
"3-cols" => __("3 columns", 'elessi-theme'),
"4-cols" => __("4 columns", 'elessi-theme')
)
);
$of_options[] = array(
"name" => __("Limit Products Per Page", 'elessi-theme'),
"id" => "products_pr_page",
"std" => "16",
"type" => "text"
);
$of_options[] = array(
"name" => __("Results info in top", 'elessi-theme'),
"id" => "showing_info_top",
"desc" => __("Note: don't using for Sidebar Off-canvas and Toggle Sidebar Classic", 'elessi-theme'),
"std" => "1",
"type" => "switch"
);
$of_options[] = array(
"name" => __("Layout Style", 'elessi-theme'),
"id" => "products_layout_style",
"std" => "grid_row",
"type" => "select",
"options" => array(
"grid-row" => __("Grid Rows", 'elessi-theme'),
"masonry-isotope" => __("Masonry Isotope", 'elessi-theme')
),
'class' => 'nasa-theme-option-parent'
);
$of_options[] = array(
"name" => __("Isotope Layout Mode", 'elessi-theme'),
"id" => "products_masonry_mode",
"std" => "masonry",
"type" => "select",
"options" => array(
"masonry" => __("Masonry", 'elessi-theme'),
"fitRows" => __("Fit Rows", 'elessi-theme')
),
'class' => 'nasa-products_layout_style nasa-products_layout_style-masonry-isotope nasa-theme-option-child'
);
$of_options[] = array(
"name" => __("Pagination Layout", 'elessi-theme'),
"id" => "pagination_style",
"std" => 'style-2',
"type" => "select",
"options" => array(
"style-2" => __("Simple", 'elessi-theme'),
"style-1" => __("Full", 'elessi-theme'),
"infinite" => __("Infinite - Only using for Ajax", 'elessi-theme'),
"load-more" => __("Load More - Only using for Ajax", 'elessi-theme')
)
);
$of_options[] = array(
"name" => __("Disable Ajax Shop", 'elessi-theme'),
"id" => "disable_ajax_product",
// "desc" => __("Yes, Please!", 'elessi-theme'),
"on" => __("Yes", 'elessi-theme'),
"off" => __("No", 'elessi-theme'),
"std" => 0,
"type" => "switch"
);
$of_options[] = array(
"name" => __("Advance Content Options", 'elessi-theme'),
"std" => "<h4>" . __("Advance Content Options", 'elessi-theme') . "</h4>",
"type" => "info"
);
$arr_blocks = elessi_admin_get_static_blocks();
$of_options[] = array(
"name" => __("Category top content", 'elessi-theme'),
"id" => "cat_header_content",
"type" => "select2id",
"options" => $arr_blocks,
'class' => 'ns-block-type',
'select_class' => 'nasa-ad-select2',
"desc" => __("Please create Static Blocks (or Custom Block of Elementor Header & Footer Builder) and select here.", 'elessi-theme') . '<br /><a class="nsblk-edit hidden-tag" href="#" data-stb-href="' . esc_url(admin_url('post.php?post=ns_blk_id&action=edit')) . '" data-ctb-href="' . esc_url(admin_url('post.php?post=ns_blk_id&action=elementor')) . '">' . esc_html__('Click here to Edit', 'elessi-theme') . '</a>'
);
$of_options[] = array(
"name" => __("Category bottom content", 'elessi-theme'),
"id" => "cat_footer_content",
"type" => "select2id",
"options" => $arr_blocks,
'class' => 'ns-block-type',
'select_class' => 'nasa-ad-select2',
"desc" => __("Please create Static Blocks (or Custom Block of Elementor Header & Footer Builder) and select here.", 'elessi-theme') . '<br /><a class="nsblk-edit hidden-tag" href="#" data-stb-href="' . esc_url(admin_url('post.php?post=ns_blk_id&action=edit')) . '" data-ctb-href="' . esc_url(admin_url('post.php?post=ns_blk_id&action=elementor')) . '">' . esc_html__('Click here to Edit', 'elessi-theme') . '</a>'
);
$of_options[] = array(
"name" => __("After Breadcrumb - Only for Shop Page", 'elessi-theme'),
"id" => "shop_brdc_blk",
"type" => "select2id",
"options" => $arr_blocks,
'class' => 'ns-block-type',
'select_class' => 'nasa-ad-select2',
"desc" => __("Please create Static Blocks (or Custom Block of Elementor Header & Footer Builder) and select here.", 'elessi-theme') . '<br /><a class="nsblk-edit hidden-tag" href="#" data-stb-href="' . esc_url(admin_url('post.php?post=ns_blk_id&action=edit')) . '" data-ctb-href="' . esc_url(admin_url('post.php?post=ns_blk_id&action=elementor')) . '">' . esc_html__('Click here to Edit', 'elessi-theme') . '</a>'
);
$of_options = apply_filters('nasa_theme_opts_archive_product_page', $of_options);
}
}
@@ -0,0 +1,588 @@
<?php
add_action('init', 'elessi_product_detail_heading');
if (!function_exists('elessi_product_detail_heading')) {
function elessi_product_detail_heading() {
// Set the Options Array
global $of_options;
if (empty($of_options)) {
$of_options = array();
}
$of_options[] = array(
"name" => __("Single Product Page", 'elessi-theme'),
"target" => 'product-detail',
"type" => "heading",
);
$of_options[] = array(
"name" => __("Layout Option", 'elessi-theme'),
"std" => "<h4>" . __("Layout Options", 'elessi-theme') . "</h4>",
"type" => "info",
'class' => 'first'
);
$of_options[] = array(
"name" => __("Product Sidebar Position", 'elessi-theme'),
"id" => "product_sidebar",
"std" => "left",
"type" => "select",
"options" => array(
"left" => __("Left Sidebar", 'elessi-theme'),
"right" => __("Right Sidebar", 'elessi-theme'),
"no" => __("No Sidebar", 'elessi-theme')
)
);
$of_options[] = array(
"name" => __("Sticky Sidebar", 'elessi-theme'),
"id" => "single_product_sticky_sidebar_classic",
"std" => "0",
"type" => "switch",
// 'class' => 'nasa-theme-option-child nasa-product_detail_layout nasa-product_detail_layout-classic',
'child_of' => 'product_detail_layout',
'm_target' => array('classic'),
);
$of_options[] = array(
"name" => __("Single Product Layout", 'elessi-theme'),
"id" => "product_detail_layout",
"std" => "new",
"type" => "images",
"options" => array(
'classic' => ELESSI_ADMIN_DIR_URI . 'assets/images/single-product-classic.jpg',
'new' => ELESSI_ADMIN_DIR_URI . 'assets/images/single-product-new.jpg',
'new-2' => ELESSI_ADMIN_DIR_URI . 'assets/images/single-product-new-2.jpg',
'new-3' => ELESSI_ADMIN_DIR_URI . 'assets/images/single-product-new-3.jpg',
'full' => ELESSI_ADMIN_DIR_URI . 'assets/images/single-product-fullwidth.jpg',
'modern-1' => ELESSI_ADMIN_DIR_URI . 'assets/images/single-product-modern-1.jpg',
'modern-2' => ELESSI_ADMIN_DIR_URI . 'assets/images/single-product-modern-2.jpg',
'modern-3' => ELESSI_ADMIN_DIR_URI . 'assets/images/single-product-modern-3.jpg',
'modern-4' => ELESSI_ADMIN_DIR_URI . 'assets/images/single-product-modern-4.jpg',
),
'class' => 'flex-row flex-wrap flex-start img-max-height-100'
);
$of_options[] = array(
"name" => __("Background Color", 'elessi-theme'),
"id" => "sp_bgl",
"std" => "",
"type" => "color",
// 'class' => 'nasa-theme-option-child nasa-product_detail_layout nasa-product_detail_layout-modern-2 nasa-product_detail_layout-modern-3',
'child_of' => 'product_detail_layout',
'm_target' => array('modern-2', 'modern-3', 'modern-4','new-3'),
);
$of_options[] = array(
"name" => __("Images Columns", 'elessi-theme'),
"id" => "product_image_layout",
"std" => "double",
"type" => "select",
"options" => array(
"double" => __("2 Columns", 'elessi-theme'),
"single" => __("1 Column", 'elessi-theme')
),
// 'class' => 'nasa-theme-option-child nasa-product_detail_layout nasa-product_detail_layout-new',
'child_of' => 'product_detail_layout',
'm_target' => array('new','new-2'),
);
$of_options[] = array(
"name" => __("Images Style", 'elessi-theme'),
"id" => "product_image_style",
"std" => "slide",
"type" => "select",
"options" => array(
"slide" => __("Slide Images", 'elessi-theme'),
"scroll" => __("Scroll Images", 'elessi-theme')
),
// 'class' => 'nasa-theme-option-child nasa-product_detail_layout nasa-product_detail_layout-new',
'child_of' => 'product_detail_layout',
'm_target' => array('new'),
);
$of_options[] = array(
"name" => __("Thumbnail Layout", 'elessi-theme'),
"id" => "product_thumbs_style",
"std" => "ver",
"type" => "select",
"options" => array(
"ver" => __("Vertical", 'elessi-theme'),
"hoz" => __("Horizontal", 'elessi-theme')
),
// 'class' => 'nasa-theme-option-child nasa-product_detail_layout nasa-product_detail_layout-classic',
'desc' => '<span class="red-color">Note: This option only Apply With Slides.</span>',
'child_of' => 'product_detail_layout',
'm_target' => array('classic', 'modern-2', 'modern-3'),
);
$of_options[] = array(
"name" => __("Overflows: + 0.5 items", 'elessi-theme'),
"id" => "half_full_slide",
"std" => "0",
"type" => "switch",
'class' => 'nasa-theme-option-child nasa-product_detail_layout nasa-product_detail_layout-full',
'desc' => '<span class="red-color">Note: The Hover Zoom Image Will be Turned Off!!!</span>'
);
$of_options[] = array(
"name" => __("Infomations Columns", 'elessi-theme'),
"id" => "full_info_col",
"std" => "1",
"type" => "select",
"options" => array(
"1" => __("1 Column", 'elessi-theme'),
"2" => __("2 Columns", 'elessi-theme')
),
'override_numberic' => true,
// 'class' => 'nasa-theme-option-child nasa-product_detail_layout nasa-product_detail_layout-full',
'child_of' => 'product_detail_layout',
'm_target' => array('full'),
);
$of_options[] = array(
"name" => __("Auto Slide", 'elessi-theme'),
"id" => "product_slide_auto",
"std" => "0",
"type" => "switch",
// 'class' => 'nasa-theme-option-child nasa-product_detail_layout nasa-product_detail_layout-new nasa-product_detail_layout-classic nasa-product_detail_layout-full nasa-product_detail_layout-modern-1 nasa-product_detail_layout-modern-2 nasa-product_detail_layout-modern-3',
'child_of' => 'product_detail_layout',
'm_target' => array('new', 'classic', 'full', 'modern-1', 'modern-2', 'modern-3', 'modern-4'),
);
$of_options[] = array(
"name" => __("Infinite Slide", 'elessi-theme'),
"id" => "product_slide_loop",
"desc" => __("Only effective for style 1, style 2(Images style : slide images), style 6 and style 7", 'elessi-theme'),
"std" => 0,
"type" => "switch",
// 'class' => 'nasa-theme-option-child nasa-product_detail_layout nasa-product_detail_layout-new nasa-product_detail_layout-classic nasa-product_detail_layout-modern-1 nasa-product_detail_layout-modern-2 nasa-product_detail_layout-modern-3',
'child_of' => 'product_detail_layout',
'm_target' => array('new', 'classic', 'modern-1', 'modern-2', 'modern-3', 'modern-4'),
);
$of_options[] = array(
"name" => __("Dots for Main Slide", 'elessi-theme'),
"id" => "product_slide_dot",
"std" => 0,
"type" => "switch",
// 'class' => 'nasa-theme-option-child nasa-product_detail_layout nasa-product_detail_layout-new nasa-product_detail_layout-classic nasa-product_detail_layout-full nasa-product_detail_layout-modern-1 nasa-product_detail_layout-modern-2 nasa-product_detail_layout-modern-3',
'child_of' => 'product_detail_layout',
'm_target' => array('new', 'classic', 'full', 'modern-1', 'modern-2', 'modern-3', 'modern-4'),
);
$of_options[] = array(
"name" => __("Arrows for Main Slide", 'elessi-theme'),
"id" => "product_slide_arrows",
"std" => 0,
"type" => "switch",
// 'class' => 'nasa-theme-option-child nasa-product_detail_layout nasa-product_detail_layout-new nasa-product_detail_layout-classic nasa-product_detail_layout-full nasa-product_detail_layout-modern-1 nasa-product_detail_layout-modern-2 nasa-product_detail_layout-modern-3',
'child_of' => 'product_detail_layout',
'm_target' => array('new', 'classic', 'full', 'modern-1', 'modern-2', 'modern-3', 'modern-4'),
);
$of_options[] = array(
"name" => __("Hover Zoom Image", 'elessi-theme'),
"id" => "product-zoom",
"std" => 1,
"type" => "switch",
'desc' => '<span class="red-color">Note: The "Hover Zoom Image" does not support for Mobile or devices that do not have a "hover cursor" event.</span>'
);
$of_options[] = array(
"name" => __("Lightbox Image", 'elessi-theme'),
"id" => "product-image-lightbox",
"std" => 1,
"type" => "switch"
);
$of_options[] = array(
"name" => __("Focus Main Image", 'elessi-theme'),
"id" => "enable_focus_main_image",
"desc" => __("Focus main image after active variation product", 'elessi-theme'),
"std" => "0",
"type" => "switch"
);
$of_options[] = array(
"name" => __("Form Options", 'elessi-theme'),
"std" => "<h4>" . __("Form Options", 'elessi-theme') . "</h4>",
"type" => "info"
);
$of_options[] = array(
"name" => __("Buy Now", 'elessi-theme'),
"id" => "enable_buy_now",
"std" => "1",
"type" => "switch"
);
$of_options[] = array(
"name" => __("Buy Now Background Color", 'elessi-theme'),
"id" => "buy_now_bg_color",
"std" => "",
"type" => "color",
'child_of' => 'enable_buy_now',
'm_target' => '1',
);
$of_options[] = array(
"name" => __("Buy Now Background Color Hover", 'elessi-theme'),
"id" => "buy_now_bg_color_hover",
"std" => "",
"type" => "color",
'child_of' => 'enable_buy_now',
'm_target' => '1',
);
$of_options[] = array(
"name" => __("Sticky Add To Cart", 'elessi-theme'),
"id" => "enable_fixed_add_to_cart",
"std" => "1",
"type" => "switch"
);
$of_options[] = array(
"name" => __("Sticky Buy Now - Desktop", 'elessi-theme'),
"id" => "enable_fixed_buy_now_desktop",
"std" => "0",
"type" => "switch",
'child_of' => 'enable_buy_now',
'm_target' => '1',
);
$options = array(
"no" => __("Not Show", 'elessi-theme'),
"ext" => __("Extends Desktop", 'elessi-theme')
);
if (class_exists('Nasa_Mobile_Detect')) {
$options['btn'] = __("Only Show Buttons", 'elessi-theme');
}
$of_options[] = array(
"name" => __("Sticky Add To Cart In Mobile", 'elessi-theme'),
"id" => "mobile_fixed_add_to_cart",
"std" => "no",
"type" => "select",
"options" => $options,
"desc" => __('Not use Mobile App - Simulator', 'elessi-theme'),
'child_of' => 'enable_nasa_mobile',
'm_target' => '1',
);
// Enable AJAX add to cart buttons on Detail OR Quickview
$of_options[] = array(
"name" => __("AJAX add to cart button on Single And Quickview", 'elessi-theme'),
"id" => "enable_ajax_addtocart",
"std" => "1",
"type" => "switch",
"desc" => '<span class="nasa-warning red-color">' . __('Note: Consider disabling this feature if you are using a third-party plugin developed for the Add to Cart feature in the Single Product Page!', 'elessi-theme') . '</span>'
);
$of_options[] = array(
"name" => __("WooCommerce Tabs - Options", 'elessi-theme'),
"std" => "<h4>" . __("WooCommerce Tabs - Options", 'elessi-theme') . "</h4>",
"type" => "info"
);
$of_options[] = array(
"name" => __("Tabs Layouts", 'elessi-theme'),
"id" => "tab_style_info",
"std" => "2d-no-border",
"type" => "images",
"options" => array(
'2d-no-border' => ELESSI_ADMIN_DIR_URI . 'assets/images/single-tab-2d-noborder.jpg',
'2d-radius' => ELESSI_ADMIN_DIR_URI . 'assets/images/single-tab-2d-radius.jpg',
'2d-radius-dashed' => ELESSI_ADMIN_DIR_URI . 'assets/images/single-tab-2d-radius-dash.jpg',
'2d' => ELESSI_ADMIN_DIR_URI . 'assets/images/single-tab-2d.jpg',
'3d' => ELESSI_ADMIN_DIR_URI . 'assets/images/single-tab-3d.jpg',
'slide' => ELESSI_ADMIN_DIR_URI . 'assets/images/single-tab-slide.jpg',
'accordion' => ELESSI_ADMIN_DIR_URI . 'assets/images/single-tab-accordion.jpg',
'accordion-2' => ELESSI_ADMIN_DIR_URI . 'assets/images/single-tab-accordion-2.jpg',
'small-accordion' => ELESSI_ADMIN_DIR_URI . 'assets/images/single-tab-small-accordion.jpg',
'scroll-down' => ELESSI_ADMIN_DIR_URI . 'assets/images/single-tab-scroll-down.jpg',
'ver-1' => ELESSI_ADMIN_DIR_URI . 'assets/images/single-tab-vertical-1.jpg',
'ver-2' => ELESSI_ADMIN_DIR_URI . 'assets/images/single-tab-vertical-2.jpg',
),
'class' => 'flex-row flex-wrap flex-start img-width-50'
);
$of_options[] = array(
"name" => __("Tabs Align", 'elessi-theme'),
"id" => "tab_align_info",
"std" => "center",
"type" => "select",
"options" => array(
"center" => __("Center", 'elessi-theme'),
"left" => __("Left", 'elessi-theme'),
"right" => __("Right", 'elessi-theme')
),
// 'class' => 'nasa-tab_style_info nasa-tab_style_info-2d-no-border nasa-tab_style_info-2d-radius nasa-tab_style_info-2d-radius-dashed nasa-tab_style_info-2d nasa-tab_style_info-3d nasa-tab_style_info-slide nasa-tab_style_info-scroll-down nasa-theme-option-child',
'child_of' => 'tab_style_info',
'm_target' => array('2d-no-border', '2d-radius', '2d-radius-dashed', '2d', '3d', 'slide', 'scroll-down'),
);
$of_options[] = array(
"name" => __('WooCommerce Tabs Off - Canvas in Mobile (Not use Mobile App - Simulator)', 'elessi-theme'),
"id" => "woo_tabs_off_canvas",
"std" => 0,
"type" => "switch"
);
$of_options[] = array(
"name" => __('WooCommerce Tabs - Read more / Show less (Mobile App - Simulator)', 'elessi-theme'),
"id" => "ns_rm_sl",
"std" => 1,
"type" => "switch"
);
$of_options[] = array(
"name" => __('Product Description Wrapper - Apply with Tabs Classic', 'elessi-theme'),
"id" => "desc_product_wrap",
"std" => 1,
"type" => "switch"
);
$of_options[] = array(
"name" => __("Hide Additional Information Tab", 'elessi-theme'),
"desc" => __("Yes, Please!", 'elessi-theme'),
"id" => "hide_additional_tab",
"std" => 0,
"type" => "checkbox"
);
$static_blocks = elessi_admin_get_static_blocks();
$of_options[] = array(
"name" => __("Tab Global", 'elessi-theme'),
"id" => "tab_glb",
"type" => "select2id",
"options" => $static_blocks,
'class' => 'ns-block-type',
'select_class' => 'nasa-ad-select2',
"desc" => __("Please create Static Blocks (or Custom Block of Elementor Header & Footer Builder) and select here.", 'elessi-theme') . '<br /><a class="nsblk-edit hidden-tag" href="#" data-stb-href="' . esc_url(admin_url('post.php?post=ns_blk_id&action=edit')) . '" data-ctb-href="' . esc_url(admin_url('post.php?post=ns_blk_id&action=elementor')) . '">' . esc_html__('Click here to Edit', 'elessi-theme') . '</a>',
);
$of_options[] = array(
"name" => __("Addon Options", 'elessi-theme'),
"std" => "<h4>" . __("Addon Options", 'elessi-theme') . "</h4>",
"type" => "info"
);
$of_options[] = array(
"name" => __("Deal Time in Single or Quickview", 'elessi-theme'),
"id" => "single-product-deal",
"std" => 1,
"type" => "switch"
);
// next_prev_product
$of_options[] = array(
"name" => __("Next - Previous Product", 'elessi-theme'),
"id" => "next_prev_product",
"std" => 1,
"type" => "switch"
);
$of_options[] = array(
"name" => __("Stock Progress Bar", 'elessi-theme'),
"id" => "enable_progess_stock",
"std" => "1",
"type" => "switch"
);
$of_options[] = array(
"name" => __("Meta Infomations (SKU, Categories, Tags, etc...)", 'elessi-theme'),
"id" => "pmeta_enb",
"std" => "1",
"type" => "switch"
);
$of_options[] = array(
"name" => __("Meta Infomations Position", 'elessi-theme'),
"id" => "pmeta_info",
"std" => "",
"type" => "select",
"options" => array(
"" => __("After WooCommerce Tabs", 'elessi-theme'),
"df" => __("Default", 'elessi-theme')
),
'child_of' => 'pmeta_enb',
'm_target' => '1',
);
$of_options[] = array(
"name" => __("Ajax Load", 'elessi-theme'),
"id" => "single_product_ajax",
"std" => "0",
"type" => "switch",
"desc" => 'Support - Load Ajax when viewing each Product on the Single Product Page'
);
$of_options[] = array(
"name" => __("Review Options", 'elessi-theme'),
"std" => "<h4>" . __("Review Options", 'elessi-theme') . "</h4>",
"type" => "info"
);
$of_options[] = array(
"name" => __("Enable - Review Helpful", 'elessi-theme'),
"id" => "ns_comment_helpful",
"std" => "0",
"img_desc" => ELESSI_ADMIN_DIR_URI . 'assets/images/elessi_review_helpful.jpg',
"type" => "switch"
);
$of_options[] = array(
"name" => __("Registered Users Are Allowed Only - Review Helpful", 'elessi-theme'),
"id" => "ns_comment_helpful_registered",
"std" => "0",
"type" => "switch",
'child_of' => 'ns_comment_helpful',
'm_target' => '1',
);
$of_options[] = array(
"name" => __("Allow Comments Images upload", 'elessi-theme'),
"id" => "comment_media",
"std" => "0",
"type" => "switch"
);
$of_options[] = array(
"name" => __("Max files Comments Images upload", 'elessi-theme'),
"id" => "maxfiles_comment_media",
"std" => "3",
"type" => "text",
'child_of' => 'comment_media',
'm_target' => '1',
);
$of_options[] = array(
"name" => __("Max Size Comments Images upload (kb)", 'elessi-theme'),
"id" => "maxsize_comment_media",
"std" => "1024",
"type" => "text",
'child_of' => 'comment_media',
'm_target' => '1',
);
$of_options[] = array(
"name" => __("Allow Comments Video upload", 'elessi-theme'),
"id" => "comment_media_video",
"std" => "0",
"type" => "switch"
);
$of_options[] = array(
"name" => __("Max files Comments Video upload", 'elessi-theme'),
"id" => "maxfiles_comment_media_video",
"std" => "1",
"type" => "text",
'child_of' => 'comment_media_video',
'm_target' => '1',
);
$of_options[] = array(
"name" => __("Max Size Comments Video upload (kb)", 'elessi-theme'),
"id" => "maxsize_comment_media_video",
"std" => "1024",
"type" => "text",
'child_of' => 'comment_media_video',
'm_target' => '1',
);
$of_options[] = array(
"name" => __("Ajax Review Load", 'elessi-theme'),
"id" => "single_review_ajax",
"std" => "0",
"type" => "switch",
"desc" => 'Support - Load Ajax when viewing Product Reviews on the Single Product Page'
);
$of_options[] = array(
"name" => __("Layout Review Defaulf", 'elessi-theme'),
"id" => "single_review_layout",
"std" => "list",
"type" => "select",
"options" => array(
"masonry" => __("Masonry", 'elessi-theme'),
"list" => __("List", 'elessi-theme')
),
);
$of_options[] = array(
"name" => __("Related | You may also like&hellip;", 'elessi-theme'),
"std" => "<h4>" . __("Related | You may also like&hellip;", 'elessi-theme') . "</h4>",
"type" => "info"
);
$of_options[] = array(
"name" => __('Related Products', 'elessi-theme'),
"id" => "relate_product",
"std" => 1,
"type" => "switch"
);
$of_options[] = array(
"name" => __("Number for related products", 'elessi-theme'),
"id" => "relate_product_number",
"std" => "12",
"type" => "text"
);
$of_options[] = array(
"name" => __("Columns Related | You may also like&hellip;", 'elessi-theme'),
"id" => "relate_columns_desk",
"std" => "5-cols",
"type" => "select",
"options" => array(
"6-cols" => __("6 columns", 'elessi-theme'),
"5-cols" => __("5 columns", 'elessi-theme'),
"4-cols" => __("4 columns", 'elessi-theme'),
"3-cols" => __("3 columns", 'elessi-theme'),
"2-cols" => __("2 columns", 'elessi-theme'),
)
);
$of_options[] = array(
"name" => __("Columns Related | You may also like&hellip; for Tablet", 'elessi-theme'),
"id" => "relate_columns_tablet",
"std" => "3-cols",
"type" => "select",
"options" => array(
"4-cols" => __("4 columns", 'elessi-theme'),
"3-cols" => __("3 columns", 'elessi-theme'),
"2-cols" => __("2 columns", 'elessi-theme')
)
);
$of_options[] = array(
"name" => __("Columns Related | You may also like&hellip; for Mobile", 'elessi-theme'),
"id" => "relate_columns_small",
"std" => "2-cols",
"type" => "select",
"options" => array(
"2-cols" => __("2 columns", 'elessi-theme'),
"1.5-cols" => __("1.5 column", 'elessi-theme'),
"1-col" => __("1 column", 'elessi-theme')
)
);
$of_options[] = array(
"name" => __("Auto Slide - Related | You may also like&hellip;", 'elessi-theme'),
"id" => "relate_slide_auto",
"std" => 0,
"type" => "switch"
);
$of_options[] = array(
"name" => __("Infinite Slide", 'elessi-theme'),
"id" => "relate_slide_loop",
"std" => 0,
"type" => "switch"
);
$of_options = apply_filters('nasa_theme_opts_single_product_page', $of_options);
}
}
@@ -0,0 +1,96 @@
<?php
add_action('init', 'elessi_product_compare_heading');
if (!function_exists('elessi_product_compare_heading')) {
function elessi_product_compare_heading() {
// Set the Options Array
global $of_options;
if (empty($of_options)) {
$of_options = array();
}
$of_options[] = array(
"name" => __("Compare and Wishlist", 'elessi-theme'),
"target" => 'product-compare-wishlist',
"type" => "heading",
);
$of_options[] = array(
"name" => __("Compare Options", 'elessi-theme'),
"std" => "<h4>" . __("Compare Options", 'elessi-theme') . "</h4>",
"type" => "info",
'class' => 'first'
);
global $yith_woocompare;
if ($yith_woocompare) {
$of_options[] = array(
"name" => __("Layout", 'elessi-theme'),
"id" => "nasa-product-compare",
"std" => '1',
"type" => "select",
"options" => array(
'' => __('Default - Yith WooCommerce Compare', 'elessi-theme'),
'1' => __('Modern - As demo Site', 'elessi-theme'),
),
'override_numberic' => true,
// 'class' => 'nasa-theme-option-parent'
);
$of_options[] = array(
"name" => __("Page view compare products", 'elessi-theme'),
"id" => "nasa-page-view-compage",
"type" => "select",
"options" => elessi_get_pages_temp_compare(),
// 'class' => 'nasa-nasa-product-compare nasa-nasa-product-compare-1 nasa-theme-option-child',
'child_of' => 'nasa-product-compare',
'm_target' => '1',
);
$of_options[] = array(
"name" => __("Max products compare", 'elessi-theme'),
"id" => "max_compare",
"std" => "4",
"type" => "select",
"options" => array("2" => "2", "3" => "3", "4" => "4"),
// 'class' => 'nasa-nasa-product-compare nasa-nasa-product-compare-1 nasa-theme-option-child',
'child_of' => 'nasa-product-compare',
'm_target' => '1',
);
} else {
$of_options[] = array(
"name" => __("Please Install Yith WooCommerce Compare Plugin", 'elessi-theme'),
"std" => '<h4 style="color: red">' . __("Please, Install Yith WooCommerce Compare Plugin!", 'elessi-theme') . "</h4>",
"type" => "info"
);
}
/**
* Wishlist
*/
if (!NASA_WISHLIST_ENABLE) {
$of_options[] = array(
"name" => __("Wishlist Options", 'elessi-theme'),
"std" => "<h4>" . __("Wishlist Options", 'elessi-theme') . "</h4>",
"type" => "info"
);
$of_options[] = array(
"name" => __("NasaTheme Wishlist Feature", 'elessi-theme'),
"id" => "enable_nasa_wishlist",
"std" => 1,
"type" => "switch"
);
$of_options[] = array(
"name" => __("Wishlist Sidebar Layout", 'elessi-theme'),
"id" => "style-wishlist",
"std" => "style-1",
"type" => "select",
"options" => array(
'style-1' => __('Light', 'elessi-theme'),
'style-2' => __('Dark', 'elessi-theme')
)
);
}
}
}
@@ -0,0 +1,43 @@
<?php
add_action('init', 'elessi_dokan_settings_heading');
if (!function_exists('elessi_dokan_settings_heading')) {
function elessi_dokan_settings_heading() {
// Set the Options Array
global $of_options;
if (empty($of_options)) {
$of_options = array();
}
$of_options[] = array(
"name" => __("Dokan", 'elessi-theme'),
"target" => 'dokan-settings',
"type" => "heading",
);
$of_options[] = array(
"name" => __("Store Header Template", 'elessi-theme'),
"id" => "dokan_header",
"std" => "",
"type" => "images",
"options" => array(
'ns-1' => ELESSI_ADMIN_DIR_URI . 'assets/images/dokan-header-1.jpg',
'ns-2' => ELESSI_ADMIN_DIR_URI . 'assets/images/dokan-header-2.jpg',
'ns-3' => ELESSI_ADMIN_DIR_URI . 'assets/images/dokan-header-3.jpg',
'ns-4' => ELESSI_ADMIN_DIR_URI . 'assets/images/dokan-header-4.jpg',
'' => ELESSI_ADMIN_DIR_URI . 'assets/images/dokan-default.gif',
)
);
$of_options[] = array(
"name" => __("Store Sidebar Position", 'elessi-theme'),
"id" => "store_layout",
"std" => "left",
"type" => "select",
"options" => array(
"left" => __("Left Sidebar", 'elessi-theme'),
"right" => __("Right Sidebar", 'elessi-theme'),
"no" => __("No Sidebar", 'elessi-theme')
)
);
}
}
+270
View File
@@ -0,0 +1,270 @@
<?php
add_action('init', 'elessi_blog_heading');
if (!function_exists('elessi_blog_heading')) {
function elessi_blog_heading() {
global $of_options;
if (empty($of_options)) {
$of_options = array();
}
$of_options[] = array(
"name" => __("Blog", 'elessi-theme'),
"target" => 'blog',
"type" => "heading"
);
$of_options[] = array(
"name" => __("Blog Options", 'elessi-theme'),
"std" => "<h4>" . __("Blog Options", 'elessi-theme') . "</h4>",
"type" => "info",
'class' => 'first'
);
$of_options[] = array(
"name" => __("Single Layout", 'elessi-theme'),
"id" => "single_blog_layout",
"std" => "left",
"type" => "select",
"options" => array(
"left" => __("Left Sidebar", 'elessi-theme'),
"right" => __("Right Sidebar", 'elessi-theme'),
"no" => __("No Sidebar (Centered)", 'elessi-theme')
)
);
$of_options[] = array(
"name" => __("Archive Layout", 'elessi-theme'),
"id" => "blog_layout",
"std" => "left",
"type" => "select",
"options" => array(
"left" => __("Left Sidebar", 'elessi-theme'),
"right" => __("Right Sidebar", 'elessi-theme'),
"no" => __("No Sidebar (Centered)", 'elessi-theme')
)
);
$of_options[] = array(
"name" => __("Style", 'elessi-theme'),
"id" => "blog_type",
"std" => "blog-standard",
"type" => "select",
"options" => array(
"blog-standard" => __("Standard", 'elessi-theme'),
"blog-list" => __("List", 'elessi-theme'),
"blog-grid" => __("Grid", 'elessi-theme'),
"masonry-isotope" => __("Masonry Isotope", 'elessi-theme')
)
);
/* ======================================================================= */
$of_options[] = array(
"name" => __("Heading for Archive Page", 'elessi-theme'),
"id" => "blog_heading",
"std" => 1,
"type" => "switch"
);
$of_options[] = array(
"name" => __("Heading for Blog Page", 'elessi-theme'),
"id" => "posts_heading",
"std" => 0,
"type" => "switch"
);
$of_options[] = array(
"name" => __("Masonry Isotope - Grid - Blog style", 'elessi-theme'),
"std" => "<h4>" . __("Masonry Isotope - Grid - Blog style", 'elessi-theme') . "</h4>",
"type" => "info"
);
$of_options[] = array(
"name" => __("Columns in desktop", 'elessi-theme'),
"id" => "masonry_blogs_columns_desk",
"std" => "3-cols",
"type" => "select",
"options" => array(
"2-cols" => __("2 columns", 'elessi-theme'),
"3-cols" => __("3 columns", 'elessi-theme'),
"4-cols" => __("4 columns", 'elessi-theme'),
"5-cols" => __("5 columns", 'elessi-theme')
)
);
$of_options[] = array(
"name" => __("Columns in Mobile", 'elessi-theme'),
"id" => "masonry_blogs_columns_small",
"std" => "1-col",
"type" => "select",
"options" => array(
"1-cols" => __("1 column", 'elessi-theme'),
"2-cols" => __("2 columns", 'elessi-theme')
)
);
$of_options[] = array(
"name" => __("Columns in Tablet", 'elessi-theme'),
"id" => "masonry_blogs_columns_tablet",
"std" => "2-cols",
"type" => "select",
"options" => array(
"1-col" => __("1 column", 'elessi-theme'),
"2-cols" => __("2 columns", 'elessi-theme'),
"3-cols" => __("3 columns", 'elessi-theme')
)
);
/* ======================================================================= */
$of_options[] = array(
"name" => __("Meta Info - Blog Style", 'elessi-theme'),
"std" => "<h4>" . __("Meta Info - Blog Style", 'elessi-theme') . "</h4>",
"type" => "info"
);
$of_options[] = array(
"name" => __("Author info", 'elessi-theme'),
"id" => "show_author_info",
"std" => 1,
"type" => "switch"
);
$of_options[] = array(
"name" => __("Datetime info", 'elessi-theme'),
"id" => "show_date_info",
"std" => 1,
"type" => "switch"
);
$of_options[] = array(
"name" => __("Categories info", 'elessi-theme'),
"id" => "show_cat_info",
"std" => 0,
"type" => "switch"
);
$of_options[] = array(
"name" => __("Tags info", 'elessi-theme'),
"id" => "show_tag_info",
"std" => 0,
"type" => "switch"
);
$of_options[] = array(
"name" => __("Comment Count info", 'elessi-theme'),
"id" => "show_comment_info",
"std" => 0,
"type" => "switch"
);
$of_options[] = array(
"name" => __("Readmore", 'elessi-theme'),
"id" => "show_readmore_blog",
"std" => 1,
"type" => "switch"
);
$of_options[] = array(
"name" => __("Short description (Only use for Blog Grid layout)", 'elessi-theme'),
"id" => "show_desc_blog",
"std" => 1,
"type" => "switch"
);
/* ======================================================================= */
$of_options[] = array(
"name" => __("Single Page", 'elessi-theme'),
"std" => "<h4>" . __("Single Blog page", 'elessi-theme') . "</h4>",
"type" => "info"
);
$of_options[] = array(
"name" => __("Main Image", 'elessi-theme'),
"id" => "main_single_post_image",
"std" => 1,
"type" => "switch"
);
$of_options[] = array(
"name" => __("Categories info", 'elessi-theme'),
"id" => "single_cat_info",
"std" => 1,
"type" => "switch"
);
$of_options[] = array(
"name" => __("Author - Date info", 'elessi-theme'),
"id" => "show_author_date_info",
"std" => 1,
"type" => "switch"
);
$of_options[] = array(
"name" => __("Tags info", 'elessi-theme'),
"id" => "show_tags_info",
"std" => 1,
"type" => "switch"
);
$of_options[] = array(
"name" => __("Share icons", 'elessi-theme'),
"id" => "show_share_icons_info",
"std" => 1,
"type" => "switch"
);
if (NASA_CORE_ACTIVED) {
$of_options[] = array(
"name" => __("Related", 'elessi-theme'),
"id" => "relate_blogs",
"std" => 1,
"type" => "switch"
);
$of_options[] = array(
"name" => __("Number for related blog", 'elessi-theme'),
"id" => "relate_blogs_number",
"std" => "10",
"type" => "text"
);
$of_options[] = array(
"name" => __("Columns Related in desktop", 'elessi-theme'),
"id" => "relate_blogs_columns_desk",
"std" => "3-cols",
"type" => "select",
"options" => array(
"3-cols" => __("3 columns", 'elessi-theme'),
"4-cols" => __("4 columns", 'elessi-theme'),
"5-cols" => __("5 columns", 'elessi-theme')
)
);
$of_options[] = array(
"name" => __("Columns Related in mobile", 'elessi-theme'),
"id" => "relate_blogs_columns_small",
"std" => "1-col",
"type" => "select",
"options" => array(
"1-cols" => __("1 column", 'elessi-theme'),
"2-cols" => __("2 columns", 'elessi-theme')
)
);
$of_options[] = array(
"name" => __("Columns Related in Tablet", 'elessi-theme'),
"id" => "relate_blogs_columns_tablet",
"std" => "2-cols",
"type" => "select",
"options" => array(
"1-col" => __("1 column", 'elessi-theme'),
"2-cols" => __("2 columns", 'elessi-theme'),
"3-cols" => __("3 columns", 'elessi-theme')
)
);
}
}
}
@@ -0,0 +1,207 @@
<?php
add_action('init', 'elessi_promo_popup_heading');
if (!function_exists('elessi_promo_popup_heading')) {
function elessi_promo_popup_heading() {
// Set the Options Array
global $of_options;
if (empty($of_options)) {
$of_options = array();
}
$static_blocks = elessi_admin_get_static_blocks();
$of_options[] = array(
"name" => __("Newsletter Popup", 'elessi-theme'),
"target" => 'promo-popup',
"type" => "heading"
);
$of_options[] = array(
"name" => __("Newsletter", 'elessi-theme'),
"std" => "<h4>" . __("Newsletter", 'elessi-theme') . "</h4>",
"type" => "info",
'class' => 'first'
);
$of_options[] = array(
"name" => __("Newsletter", 'elessi-theme'),
"id" => "promo_popup",
"std" => 0,
"type" => "switch"
);
$of_options[] = array(
"name" => __("Hide in Mobile (width site small less 640px OR Mobile Layout)", 'elessi-theme'),
"desc" => __("Yes, Please!", 'elessi-theme'),
"id" => "disable_popup_mobile",
"std" => 0,
"type" => "checkbox",
'child_of' => 'promo_popup',
'm_target' => '1',
);
$of_options[] = array(
"name" => __("Only Display 1 Time", 'elessi-theme'),
"id" => "promo_popup_1_time",
"std" => 0,
"type" => "switch",
'child_of' => 'promo_popup',
'm_target' => '1',
);
$of_options[] = array(
"name" => __("Popup Width", 'elessi-theme'),
"id" => "pp_width",
"std" => "734",
"type" => "text",
'child_of' => 'promo_popup',
'm_target' => '1',
);
$of_options[] = array(
"name" => __("Popup Height", 'elessi-theme'),
"id" => "pp_height",
"std" => "501",
"type" => "text",
'child_of' => 'promo_popup',
'm_target' => '1',
);
$of_options[] = array(
"name" => __("Popup Content", 'elessi-theme'),
"id" => "pp_content",
"std" => '<h3>Newsletter</h3><p>Be the first to know about our new arrivals, exclusive offers and the latest fashion update.</p>',
"type" => "textarea",
'child_of' => 'promo_popup',
'm_target' => '1',
);
$of_options[] = array(
"name" => __("Select Contact Form", 'elessi-theme'),
"id" => "pp_contact_form",
"type" => "select",
'override_numberic' => true,
"options" => elessi_get_contact_form7(),
'class' => 'ns-wpcf7-type',
'select_class' => 'nasa-ad-select2',
'desc' => '<a class="nswpcf7-edit hidden-tag" href="#" data-href="' . esc_url(admin_url('admin.php?page=wpcf7&post=ns_wpcf7_id&action=edit')) . '">' . esc_html__('Click here to Edit', 'elessi-theme') . '</a>',
'child_of' => 'promo_popup',
'm_target' => '1',
);
$of_options[] = array(
"name" => __("Content Width", 'elessi-theme'),
"id" => "pp_style",
"std" => "simple",
"type" => "select",
"options" => array(
"simple" => __("50%", 'elessi-theme'),
"full" => __("Full Width", 'elessi-theme')
),
'child_of' => 'promo_popup',
'm_target' => '1',
);
$of_options[] = array(
"name" => __("Popup Background Color", 'elessi-theme'),
"id" => "pp_background_color",
"std" => "#fff",
"type" => "color",
'child_of' => 'promo_popup',
'm_target' => '1',
);
$of_options[] = array(
"name" => __("Popup Background", 'elessi-theme'),
"id" => "pp_background_image",
"std" => ELESSI_THEME_URI . '/assets/images/newsletter_bg.jpg',
"type" => "media",
'child_of' => 'promo_popup',
'm_target' => '1',
);
$of_options[] = array(
"name" => __("Delay time to show (seconds)", 'elessi-theme'),
"id" => "delay_promo_popup",
"std" => 0,
"type" => "text",
'child_of' => 'promo_popup',
'm_target' => '1',
);
$of_options[] = array(
"name" => __("Popup Exit Intent", 'elessi-theme'),
"std" => "<h4>" . __("Popup Exit Intent", 'elessi-theme') . "</h4>",
"type" => "info",
'class' => 'first'
);
$of_options[] = array(
"name" => __("Popup Exit Intent", 'elessi-theme'),
"id" => "ns_popup_exit_intent",
"std" => 0,
"type" => "switch",
"desc" => __("When you move your mouse outside the page you are interacting with, there will be a pop-up window containing the information you selected in the section (Popup Exit Intent Content).", 'elessi-theme'),
);
$of_options[] = array(
"name" => __("Set Popup Repeat Time", 'elessi-theme'),
"id" => "popup_exit_intent_repeat_time",
"std" => 24,
"type" => "text",
'child_of' => 'ns_popup_exit_intent',
'm_target' => '1',"desc" => __("The time unit in the line is calculated in hours and must be greater than 0. EX: 24, 32, 48,..", 'elessi-theme'),
);
$of_options[] = array(
"name" => __("Popup Exit Intent Content", 'elessi-theme'),
"id" => "ns_popup_exit_intent_ct",
"type" => "select2id",
"options" => $static_blocks,
'select_class' => 'nasa-ad-select2',
'class' => 'ns-block-type',
"desc" => __("Please create Static Blocks (or Custom Block of Elementor Header & Footer Builder) and select here.", 'elessi-theme') . '<br /><a class="nsblk-edit hidden-tag" href="#" data-stb-href="' . esc_url(admin_url('post.php?post=ns_blk_id&action=edit')) . '" data-ctb-href="' . esc_url(admin_url('post.php?post=ns_blk_id&action=elementor')) . '">' . esc_html__('Click here to Edit', 'elessi-theme') . '</a>',
'child_of' => 'ns_popup_exit_intent',
'm_target' => '1',
);
$of_options[] = array(
"name" => __("Popup Exit Intent Width (Max)", 'elessi-theme'),
"id" => "pp_ex_width",
"std" => "900",
"type" => "text",
"desc" => __("This width applies to desktops and medium screens (screens with a width smaller than the width you are setting will automatically have a width of 90% of the full screen).", 'elessi-theme'),
'child_of' => 'ns_popup_exit_intent',
'm_target' => '1',
);
$of_options[] = array(
"name" => __("Popup Exit Intent Background Color", 'elessi-theme'),
"id" => "pp_exit_background_color",
"std" => "#fff",
"type" => "color",
'child_of' => 'ns_popup_exit_intent',
'm_target' => '1',
);
}
}
/**
* Get list Contact Form 7
* @return type
*/
function elessi_get_contact_form7() {
$contacts_form = function_exists('nasa_get_contact_form7') ? nasa_get_contact_form7() : array();
$contacts = array('default' => __('Select the Contact Form', 'elessi-theme'));
if (!empty($contacts_form)) {
foreach ($contacts_form as $id => $form) {
if ($id) {
$contacts[$id] = $form;
}
}
}
return $contacts;
}
@@ -0,0 +1,105 @@
<?php
add_action('init', 'elessi_portfolio_heading');
if (!function_exists('elessi_portfolio_heading')) {
function elessi_portfolio_heading() {
if (!defined('NASA_CORE_ACTIVED') || !NASA_CORE_ACTIVED) {
return;
}
// Set the Options Array
global $of_options;
if (empty($of_options)) {
$of_options = array();
}
$of_options[] = array(
"name" => __("Portfolio", 'elessi-theme'),
"target" => 'portfolio',
"type" => "heading"
);
$of_options[] = array(
"name" => __("Enable Portfolio", 'elessi-theme'),
"id" => "enable_portfolio",
"std" => 1,
"type" => "switch"
);
/* $of_options[] = array(
"name" => __("Page view Portfolio", 'elessi-theme'),
"id" => "nasa-page-view-portfolio",
"type" => "select",
"options" => elessi_get_pages_temp_portfolio()
); */
$of_options[] = array(
"name" => __("Recent Projects", 'elessi-theme'),
"id" => "recent_projects",
"std" => 1,
"type" => "switch",
'child_of' => 'enable_portfolio',
'm_target' => '1',
);
$of_options[] = array(
"name" => __("Portfolio Comments", 'elessi-theme'),
"id" => "portfolio_comments",
"std" => 1,
"type" => "switch",
'child_of' => 'enable_portfolio',
'm_target' => '1',
);
$of_options[] = array(
"name" => __("Portfolio Count", 'elessi-theme'),
"id" => "portfolio_count",
"std" => 10,
"type" => "text",
'child_of' => 'enable_portfolio',
'm_target' => '1',
);
$of_options[] = array(
"name" => __("Project Category", 'elessi-theme'),
"id" => "project_byline",
"std" => 1,
"type" => "switch",
'child_of' => 'enable_portfolio',
'm_target' => '1',
);
$of_options[] = array(
"name" => __("Project Name", 'elessi-theme'),
"id" => "project_name",
"std" => 1,
"type" => "switch",
'child_of' => 'enable_portfolio',
'm_target' => '1',
);
$of_options[] = array(
"name" => __("Portfolio Columns", 'elessi-theme'),
"id" => "portfolio_columns",
"std" => "5-cols",
"type" => "select",
"options" => array(
"5-cols" => __("5 columns", 'elessi-theme'),
"4-cols" => __("4 columns", 'elessi-theme'),
"3-cols" => __("3 columns", 'elessi-theme'),
"2-cols" => __("2 columns", 'elessi-theme')
),
'child_of' => 'enable_portfolio',
'm_target' => '1',
);
$of_options[] = array(
"name" => __("Portfolio Lightbox", 'elessi-theme'),
"id" => "portfolio_lightbox",
"std" => 1,
"type" => "switch",
'child_of' => 'enable_portfolio',
'm_target' => '1',
);
}
}
@@ -0,0 +1,33 @@
<?php
add_action('init', 'elessi_backup_options_heading', 9999);
if (!function_exists('elessi_backup_options_heading')) {
function elessi_backup_options_heading() {
// Set the Options Array
global $of_options;
if (empty($of_options)) {
$of_options = array();
}
$of_options[] = array(
"name" => __("Backup and Import", 'elessi-theme'),
"target" => "backup-import",
"type" => "heading",
);
$of_options[] = array(
"name" => __("Backup and Restore Options", 'elessi-theme'),
"id" => "of_backup",
"std" => "",
"type" => "backup",
"desc" => __('You can use the two buttons below to backup your current options, and then restore it back at a later time. This is useful if you want to experiment on the options but would like to keep the old settings in case you need it back.', 'elessi-theme'),
);
$of_options[] = array(
"name" => __("Transfer Theme Options Data", 'elessi-theme'),
"id" => "of_transfer",
"std" => "",
"type" => "transfer",
"desc" => __('You can tranfer the saved options data between different installs by copying the text inside the text box. To import data from another install, replace the data in the text box with the one from another install and click "Import Options".', 'elessi-theme'),
);
}
}
@@ -0,0 +1,33 @@
<?php
add_action('init', 'elessi_white_label_options_heading', 99999);
if (!function_exists('elessi_white_label_options_heading')) {
function elessi_white_label_options_heading() {
// Set the Options Array
global $of_options;
if (empty($of_options)) {
$of_options = array();
}
$of_options[] = array(
"name" => "White Label",
"target" => "white-label",
"type" => "heading",
);
$of_options[] = array(
"name" => "White Label",
// "desc" => "Hide Online documentation",
"id" => "white_lbl",
"std" => 0,
"type" => "switch"
);
$of_options[] = array(
"name" => "Theme Name",
"desc" => 'Replace all instances of "Default Theme"',
"id" => "white_lbl_name",
"std" => "",
"type" => "text"
);
}
}