balmet.com

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

redux-config.php (18763B)


      1 <?php
      2 
      3 /**
      4  * ReduxFramework Barebones Sample Config File
      5  * For full documentation, please visit: http://docs.reduxframework.com/
      6  */
      7 if (!class_exists('Redux')) {
      8 	return;
      9 }
     10 
     11 // This is your option name where all the Redux data is stored.
     12 $opt_prefix = 'welbim_';
     13 $opt_name   = 'welbim_options';
     14 /**
     15  * ---> SET ARGUMENTS
     16  * All the possible arguments for Redux.
     17  * For full documentation on arguments, please refer to: https://github.com/ReduxFramework/ReduxFramework/wiki/Arguments
     18  * */
     19 $theme = wp_get_theme(); // For use with some settings. Not necessary.
     20 
     21 $args = array(
     22 	// TYPICAL -> Change these values as you need/desire
     23 	'opt_name'             => $opt_name,
     24 	// This is where your data is stored in the database and also becomes your global variable name.
     25 	'display_name'         => $theme->get('Name'),
     26 	// Name that appears at the top of your panel
     27 	'display_version'      => $theme->get('Version'),
     28 	// Version that appears at the top of your panel
     29 	'menu_type'            => 'menu',
     30 	// Specify if the admin menu should appear or not. Options: menu or submenu (Under appearance only)
     31 	'allow_sub_menu'       => true,
     32 	// Show the sections below the admin menu item or not
     33 	'menu_title'           => esc_html__('Welbim Options', 'welbim'),
     34 	'page_title'           => esc_html__('Welbim Options', 'welbim'),
     35 	// You will need to generate a Google API key to use this feature.
     36 	// Please visit: https://developers.google.com/fonts/docs/developer_api#Auth
     37 	'google_api_key'       => '',
     38 	// Set it you want google fonts to update weekly. A google_api_key value is required.
     39 	'google_update_weekly' => false,
     40 	// Must be defined to add google fonts to the typography module
     41 	'async_typography'     => true,
     42 	// Use a asynchronous font on the front end or font string
     43 	// 'disable_google_fonts_link' => true,                    // Disable this in case you want to create your own google fonts loader
     44 	'admin_bar'            => true,
     45 	// Show the panel pages on the admin bar
     46 	'admin_bar_icon'       => 'dashicons-portfolio',
     47 	// Choose an icon for the admin bar menu
     48 	'admin_bar_priority'   => 50,
     49 	// Choose an priority for the admin bar menu
     50 	'global_variable'      => '',
     51 	// Set a different name for your global variable other than the opt_name
     52 	'dev_mode'             => false,
     53 	// Show the time the page took to load, etc
     54 	'update_notice'        => true,
     55 	// If dev_mode is enabled, will notify developer of updated versions available in the GitHub Repo
     56 	'customizer'           => true,
     57 	// Enable basic customizer support
     58 	// 'open_expanded'     => true,                    // Allow you to start the panel in an expanded way initially.
     59 	// 'disable_save_warn' => true,                    // Disable the save warning when a user changes a field
     60 	// OPTIONAL -> Give you extra features
     61 	'page_priority'        => null,
     62 	// Order where the menu appears in the admin area. If there is any conflict, something will not show. Warning.
     63 	'page_parent'          => 'themes.php',
     64 	// For a full list of options, visit: http://codex.wordpress.org/Function_Reference/add_submenu_page#Parameters
     65 	'page_permissions'     => 'manage_options',
     66 	// Permissions needed to access the options panel.
     67 	'menu_icon'            => '',
     68 	// Specify a custom URL to an icon
     69 	'last_tab'             => '',
     70 	// Force your panel to always open to a specific tab (by id)
     71 	'page_icon'            => 'icon-themes',
     72 	// Icon displayed in the admin panel next to your menu_title
     73 	'page_slug'            => '_options',
     74 	// Page slug used to denote the panel
     75 	'save_defaults'        => true,
     76 	// On load save the defaults to DB before user clicks save or not
     77 	'default_show'         => false,
     78 	// If true, shows the default value next to each field that is not the default value.
     79 	'default_mark'         => '',
     80 	// What to print by the field's title if the value shown is default. Suggested: *
     81 	'show_import_export'   => true,
     82 	// Shows the Import/Export panel when not used as a field.
     83 	// CAREFUL -> These options are for advanced use only
     84 	'transient_time'       => 60 * MINUTE_IN_SECONDS,
     85 	'output'               => true,
     86 	// Global shut-off for dynamic CSS output by the framework. Will also disable google fonts output
     87 	'output_tag'           => true,
     88 	// Allows dynamic CSS to be generated for customizer and google fonts, but stops the dynamic CSS from going to the head
     89 	// 'footer_credit'     => '',                   // Disable the footer credit of Redux. Please leave if you can help it.
     90 	// FUTURE -> Not in use yet, but reserved or partially implemented. Use at your own risk.
     91 	'database'             => '',
     92 	// possible: options, theme_mods, theme_mods_expanded, transient. Not fully functional, warning!
     93 	'use_cdn'              => true,
     94 	// If you prefer not to use the CDN for Select2, Ace Editor, and others, you may download the Redux Vendor Support plugin yourself and run locally or embed it in your code.
     95 	// 'compiler'             => true,
     96 );
     97 Redux::setArgs($opt_name, $args);
     98 Redux::setSection(
     99 	$opt_name,
    100 	array(
    101 		'title'  => esc_html__('Base theme option', 'welbim'),
    102 		'id'     => 'base_theme_option',
    103 		'desc'   => esc_html__('Chnage Base theme option here', 'welbim'),
    104 		'icon'   => 'el el-home',
    105 		'fields' => array(
    106 			array(
    107 				'id'      => $opt_prefix . 'preloader_on_off',
    108 				'type'    => 'switch',
    109 				'title'   => esc_html__('Preloader on off switch', 'welbim'),
    110 				'default' => false,
    111 				'on'      => esc_html__('Enable', 'welbim'),
    112 				'off'     => esc_html__('Disable', 'welbim'),
    113 			),
    114 			array(
    115 				'id'      => $opt_prefix . 'back_to_top_on_off',
    116 				'type'    => 'switch',
    117 				'title'   => esc_html__('Back To Top on off switch', 'welbim'),
    118 				'default' => false,
    119 				'on'      => esc_html__('Enable', 'welbim'),
    120 				'off'     => esc_html__('Disable', 'welbim'),
    121 			),
    122 			array(
    123 				'id'      => $opt_prefix . 'theme_base_css',
    124 				'type'    => 'switch',
    125 				'title'   => esc_html__('theme base css', 'welbim'),
    126 				'default' => false,
    127 				'on'      => esc_html__('Enable', 'welbim'),
    128 				'off'     => esc_html__('Disable', 'welbim'),
    129 			),
    130 
    131 		),
    132 	)
    133 );
    134 Redux::setSection(
    135 	$opt_name,
    136 	array(
    137 		'title'  => esc_html__('Header theme option', 'welbim'),
    138 		'id'     => 'header_theme_option',
    139 		'desc'   => esc_html__('Chnage Header theme option here', 'welbim'),
    140 		'icon'   => 'el el-home',
    141 		'fields' => array(
    142 			array(
    143 				'id'      => $opt_prefix . 'header_style',
    144 				'type'    => 'select',
    145 				'title'   => esc_html__('Header style', 'welbim'),
    146 				'default' => '1',
    147 				'options' => array(
    148 					'1' => esc_html__('One', 'welbim'),
    149 					'2' => esc_html__('Two', 'welbim'),
    150 					'3' => esc_html__('Elementor Header', 'welbim'),
    151 				),
    152 			),
    153 			array(
    154 				'required' => array($opt_prefix . 'header_style', '=', array('1')),
    155 				'id'       => $opt_prefix . 'enable_header_top',
    156 				'type'     => 'switch',
    157 				'title'    => esc_html__('Header Top', 'welbim'),
    158 				'subtitle' => esc_html__('Enable or Disable Header Top', 'welbim'),
    159 				'default'  => false,
    160 				'off'      => esc_html__('Disable', 'welbim'),
    161 				'on'       => esc_html__('Enable', 'welbim'),
    162 			),
    163 			array(
    164 				'required' => array($opt_prefix . 'header_style', '=', array('3')),
    165 				'id'       => $opt_prefix . 'header_widget_elementor',
    166 				'type'     => 'select',
    167 				'multi'    => false,
    168 				'title'    => esc_html__('Header builder widget', 'welbim'),
    169 				'options'  => welbim_elementor_library(),
    170 			),
    171 			array(
    172 				'id'      => $opt_prefix . 'header_email',
    173 				'type'    => 'text',
    174 				'title'   => esc_html__('Email', 'welbim'),
    175 				'default' => esc_html__('needhelp@info.com', 'welbim'),
    176 			),
    177 			array(
    178 				'id'      => $opt_prefix . 'header_address',
    179 				'type'    => 'text',
    180 				'title'   => esc_html__('Address', 'welbim'),
    181 				'default' => esc_html__('88 broklyn silver street, USA', 'welbim'),
    182 			),
    183 			array(
    184 				'id'      => $opt_prefix . 'header_phone',
    185 				'type'    => 'text',
    186 				'title'   => esc_html__('Phone', 'welbim'),
    187 				'default' => esc_html__('666 888 0000', 'welbim'),
    188 			),
    189 			array(
    190 				'id'      => $opt_prefix . 'header_btn_title',
    191 				'type'    => 'text',
    192 				'title'   => esc_html__('Header Button Title', 'welbim'),
    193 				'default' => esc_html__('Request a quote', 'welbim'),
    194 			),
    195 			array(
    196 				'id'      => $opt_prefix . 'header_btn_url',
    197 				'type'    => 'text',
    198 				'title'   => esc_html__('Header Button URL', 'welbim'),
    199 				'default' => esc_html__('Request a quote URL', 'welbim'),
    200 			),
    201 		),
    202 	)
    203 );
    204 
    205 Redux::setSection(
    206 	$opt_name,
    207 	array(
    208 		'title'      => esc_html__('Social', 'welbim'),
    209 		'id'         => 'social_option',
    210 		'subsection' => true,
    211 		'icon'       => 'fas fa-share-square',
    212 		'fields'     => array(
    213 			array(
    214 				'id'    => $opt_prefix . 'header_twitter_url',
    215 				'type'  => 'text',
    216 				'title' => esc_html__('Twitter URL', 'welbim'),
    217 			),
    218 			array(
    219 				'id'    => $opt_prefix . 'header_facebook_url',
    220 				'type'  => 'text',
    221 				'title' => esc_html__('Facebook URL', 'welbim'),
    222 			),
    223 			array(
    224 				'id'    => $opt_prefix . 'header_pinterest_url',
    225 				'type'  => 'text',
    226 				'title' => esc_html__('Pinterest URL', 'welbim'),
    227 			),
    228 			array(
    229 				'id'    => $opt_prefix . 'header_instagram_url',
    230 				'type'  => 'text',
    231 				'title' => esc_html__('Instagram URL', 'welbim'),
    232 			),
    233 		),
    234 	)
    235 );
    236 
    237 Redux::setSection(
    238 	$opt_name,
    239 	array(
    240 		'title'      => esc_html__('Sticky header Menu', 'welbim'),
    241 		'id'         => 'sticky_header_menu_option',
    242 		'subsection' => true,
    243 		'desc'       => esc_html__('Chnage Header Menu option here', 'welbim'),
    244 		'icon'       => 'el el-home',
    245 		'fields'     => array(
    246 			array(
    247 				'id'      => $opt_prefix . 'sticky_header_on',
    248 				'type'    => 'switch',
    249 				'title'   => esc_html__('Sticky header on off switch', 'welbim'),
    250 				'default' => false,
    251 				'on'      => esc_html__('Enable', 'welbim'),
    252 				'off'     => esc_html__('Disable', 'welbim'),
    253 			),
    254 		),
    255 	)
    256 );
    257 Redux::setSection(
    258 	$opt_name,
    259 	array(
    260 		'title'      => esc_html__('Mobile Menu', 'welbim'),
    261 		'id'         => 'mobile_menu_option',
    262 		'subsection' => true,
    263 		'desc'       => esc_html__('Chnage mobile Menu option here', 'welbim'),
    264 		'icon'       => 'el el-home',
    265 		'fields'     => array(
    266 			array(
    267 				'id'    => $opt_prefix . 'mobile_menu_social',
    268 				'type'  => 'ace_editor',
    269 				'title' => esc_html__('Mobile Contact Social', 'welbim'),
    270 			),
    271 		),
    272 	)
    273 );
    274 
    275 Redux::setSection(
    276 	$opt_name,
    277 	array(
    278 		'title'            => esc_html__('Typography', 'welbim'),
    279 		'id'               => 'fonts_settings',
    280 		'desc'             => esc_html__('Typography', 'welbim'),
    281 		'customizer_width' => '400px',
    282 		'icon'             => 'el el-font',
    283 		'fields'           => array(
    284 			array(
    285 				'id'       => 'enable_google_fonts',
    286 				'type'     => 'switch',
    287 				'title'    => esc_html__('Google Fonts', 'welbim'),
    288 				'subtitle' => esc_html__('Enable or Disable Google Fonts', 'welbim'),
    289 				'default'  => true,
    290 				'off'      => esc_html__('Disable', 'welbim'),
    291 				'on'       => esc_html__('Enable', 'welbim'),
    292 			),
    293 			array(
    294 				'id'       => 'enable_typography',
    295 				'type'     => 'switch',
    296 				'title'    => esc_html__('Typography', 'welbim'),
    297 				'subtitle' => esc_html__('Enable or Disable Typography', 'welbim'),
    298 				'default'  => false,
    299 				'off'      => esc_html__('Disable', 'welbim'),
    300 				'on'       => esc_html__('Enable', 'welbim'),
    301 			),
    302 			array(
    303 				'required'   => array('enable_typography', '=', '1'),
    304 				'id'         => $opt_prefix . '-body_typography',
    305 				'type'       => 'typography',
    306 				'title'      => esc_html__('Body Typography', 'welbim'),
    307 				'subtitle'   => esc_html__('Select body font family, size, line height, color and weight.', 'welbim'),
    308 				'text-align' => false,
    309 				'subsets'    => false,
    310 				'output'     => array('body'),
    311 
    312 			),
    313 			array(
    314 				'required'   => array('enable_typography', '=', '1'),
    315 				'id'         => $opt_prefix . '-heading-1-typography',
    316 				'type'       => 'typography',
    317 				'title'      => esc_html__('H1 Font', 'welbim'),
    318 				'subtitle'   => esc_html__('Select heading font family and weight.', 'welbim'),
    319 				'google'     => true,
    320 				'text-align' => false,
    321 				'output'     => array('h1'),
    322 			),
    323 			array(
    324 				'required'   => array('enable_typography', '=', '1'),
    325 				'id'         => $opt_prefix . '-heading-2-typography',
    326 				'type'       => 'typography',
    327 				'title'      => esc_html__('H2 Font', 'welbim'),
    328 				'subtitle'   => esc_html__('Select heading font family and weight.', 'welbim'),
    329 				'google'     => true,
    330 				'text-align' => false,
    331 				'output'     => array('h2'),
    332 
    333 			),
    334 			array(
    335 				'required'   => array('enable_typography', '=', '1'),
    336 				'id'         => $opt_prefix . '-heading-3-typography',
    337 				'type'       => 'typography',
    338 				'title'      => esc_html__('H3 Font', 'welbim'),
    339 				'subtitle'   => esc_html__('Select heading font family and weight.', 'welbim'),
    340 				'google'     => true,
    341 				'text-align' => false,
    342 				'output'     => array('h3'),
    343 			),
    344 			array(
    345 				'required'   => array('enable_typography', '=', '1'),
    346 				'id'         => $opt_prefix . '-heading-4-typography',
    347 				'type'       => 'typography',
    348 				'title'      => esc_html__('H4 Font', 'welbim'),
    349 				'subtitle'   => esc_html__('Select heading font family and weight.', 'welbim'),
    350 				'google'     => true,
    351 				'text-align' => false,
    352 				'output'     => array('h4'),
    353 			),
    354 			array(
    355 				'required'   => array('enable_typography', '=', '1'),
    356 				'id'         => $opt_prefix . '-heading-5-typography',
    357 				'type'       => 'typography',
    358 				'title'      => esc_html__('H5 Font', 'welbim'),
    359 				'subtitle'   => esc_html__('Select heading font family and weight.', 'welbim'),
    360 				'google'     => true,
    361 				'text-align' => false,
    362 				'output'     => array('h5'),
    363 			),
    364 			array(
    365 				'required'   => array('enable_typography', '=', '1'),
    366 				'id'         => $opt_prefix . '-heading-6-typography',
    367 				'type'       => 'typography',
    368 				'title'      => esc_html__('H6 Font', 'welbim'),
    369 				'subtitle'   => esc_html__('Select heading font family and weight.', 'welbim'),
    370 				'google'     => true,
    371 				'text-align' => false,
    372 				'output'     => array('h6'),
    373 			),
    374 
    375 		),
    376 	)
    377 );
    378 Redux::setSection(
    379 	$opt_name,
    380 	array(
    381 		'title'  => esc_html__('Breadcrumb area', 'welbim'),
    382 		'id'     => 'breadcrumb_area',
    383 		'icon'   => 'el el-home',
    384 		'fields' => array(
    385 
    386 			array(
    387 				'id'      => $opt_prefix . 'blog_breadcrumb_switch',
    388 				'type'    => 'switch',
    389 				'title'   => esc_html__('Blog breadcrumb on off switch', 'welbim'),
    390 				'default' => false,
    391 				'on'      => esc_html__('Enable', 'welbim'),
    392 				'off'     => esc_html__('Disable', 'welbim'),
    393 			),
    394 			array(
    395 				'required' => array($opt_prefix . 'blog_breadcrumb_switch', '=', '1'),
    396 				'id'       => $opt_prefix . 'blog_breadcrumb_bg',
    397 				'type'     => 'background',
    398 				'url'      => true,
    399 				'title'    => esc_html__('Blog breadcrumb background', 'welbim'),
    400 				'output'   => array(
    401 					'background' => '.blog-breadcrumb',
    402 				),
    403 			),
    404 			array(
    405 				'required' => array($opt_prefix . 'blog_breadcrumb_switch', '=', '1'),
    406 				'id'       => $opt_prefix . 'blog_breadcrumb_content',
    407 				'type'     => 'text',
    408 				'title'    => esc_html__('Blog breadcrumb title', 'welbim'),
    409 				'default'  => esc_html__('Blog Page', 'welbim'),
    410 			),
    411 			array(
    412 				'id'      => $opt_prefix . 'blog_single_breadcrumb_switch',
    413 				'type'    => 'switch',
    414 				'title'   => esc_html__('Blog Single breadcrumb on off switch', 'welbim'),
    415 				'default' => false,
    416 				'on'      => esc_html__('Enable', 'welbim'),
    417 				'off'     => esc_html__('Disable', 'welbim'),
    418 			),
    419 			array(
    420 				'required' => array($opt_prefix . 'blog_single_breadcrumb_switch', '=', '1'),
    421 				'id'       => $opt_prefix . 'blog_single_breadcrumb_bg',
    422 				'type'     => 'background',
    423 				'url'      => true,
    424 				'title'    => esc_html__('Blog Single breadcrumb background', 'welbim'),
    425 				'output'   => array(
    426 					'background' => '.blog-single-breadcrumb',
    427 				),
    428 			),
    429 			array(
    430 				'required' => array($opt_prefix . 'blog_single_breadcrumb_switch', '=', '1'),
    431 				'id'       => $opt_prefix . 'blog_single_breadcrumb_content',
    432 				'type'     => 'text',
    433 				'title'    => esc_html__('Blog single breadcrumb title', 'welbim'),
    434 				'default'  => esc_html__('Blog Details', 'welbim'),
    435 			),
    436 		),
    437 	)
    438 );
    439 Redux::setSection(
    440 	$opt_name,
    441 	array(
    442 		'title'  => esc_html__('Blog option', 'welbim'),
    443 		'id'     => 'blog_option_panale',
    444 		'desc'   => esc_html__('Change blog option', 'welbim'),
    445 		'icon'   => 'el el-home',
    446 		'fields' => array(
    447 			array(
    448 				'id'      => $opt_prefix . 'blog_style',
    449 				'type'    => 'select',
    450 				'title'   => esc_html__('Blog style', 'welbim'),
    451 				'options' => array(
    452 					'1' => esc_html__('One', 'welbim'),
    453 					'2' => esc_html__('Two', 'welbim'),
    454 				),
    455 			),
    456 			array(
    457 				'id'      => $opt_prefix . 'blog_single_social',
    458 				'type'    => 'switch',
    459 				'title'   => esc_html__('social share', 'welbim'),
    460 				'default' => false,
    461 				'on'      => esc_html__('Enable', 'welbim'),
    462 				'off'     => esc_html__('Disable', 'welbim'),
    463 			),
    464 			array(
    465 				'id'      => $opt_prefix . 'blog_authore_switch',
    466 				'type'    => 'switch',
    467 				'title'   => esc_html__('Blog authore box on off switch', 'welbim'),
    468 				'default' => false,
    469 				'on'      => esc_html__('Enable', 'welbim'),
    470 				'off'     => esc_html__('Disable', 'welbim'),
    471 			),
    472 		),
    473 	)
    474 );
    475 Redux::setSection(
    476 	$opt_name,
    477 	array(
    478 		'title'  => esc_html__('Footer option', 'welbim'),
    479 		'id'     => 'welbim_footer_area',
    480 		'desc'   => esc_html__('Chnage footer option here', 'welbim'),
    481 		'icon'   => 'el el-home',
    482 		'fields' => array(
    483 			array(
    484 				'id'      => $opt_prefix . 'footer_left_widget_elementor',
    485 				'type'    => 'select',
    486 				'title'   => esc_html__('Footer widget', 'welbim'),
    487 				'options' => welbim_elementor_library(),
    488 			),
    489 			array(
    490 				'id'    => $opt_prefix . 'footer_copyright',
    491 				'type'  => 'textarea',
    492 				'title' => esc_html__('Copyright text', 'welbim'),
    493 			),
    494 			array(
    495 				'id'    => $opt_prefix . 'footer_link',
    496 				'type'  => 'ace_editor',
    497 				'title' => esc_html__('Footer link', 'welbim'),
    498 			),
    499 			array(
    500 
    501 				'id'     => $opt_prefix . 'footer_bg',
    502 				'type'   => 'background',
    503 				'url'    => true,
    504 				'title'  => esc_html__('Footer background', 'welbim'),
    505 				'output' => array(
    506 					'background' => '.main-footer',
    507 				),
    508 			),
    509 		),
    510 	)
    511 );
    512 Redux::setSection(
    513 	$opt_name,
    514 	array(
    515 		'title'  => esc_html__('Color option', 'welbim'),
    516 		'id'     => 'welbim_color_area',
    517 		'desc'   => esc_html__('Chnage Color option here', 'welbim'),
    518 		'icon'   => 'el el-home',
    519 		'fields' => array(
    520 			array(
    521 				'id'          => $opt_prefix . 'main_color',
    522 				'type'        => 'color',
    523 				'title'       => esc_html__('Primary Color', 'welbim'),
    524 				'subtitle'    => esc_html__('Pick a color for the theme.', 'welbim'),
    525 				'validate'    => 'color',
    526 				'transparent' => false,
    527 			),
    528 		),
    529 	)
    530 );