self:: redux_name(),
'display_name' => wp_get_theme()->get('Name'),
'display_version' => wp_get_theme()->get('Version'),
'menu_type' => 'menu',
'allow_sub_menu' => false,
'menu_title' => __('Inspirelite Option', 'inspirelite'),
'page_title' => __('Inspirelite Option', 'inspirelite'),
'google_api_key' => '',
'google_update_weekly' => false,
'async_typography' => true,
'admin_bar' => false,
'admin_bar_icon' => 'dashicons-portfolio',
'admin_bar_priority' => 50,
'global_variable' => '',
'dev_mode' => false,
'update_notice' => false,
'customizer' => true,
'page_priority' => null,
'page_parent' => 'themes.php',
'page_permissions' => 'manage_options',
'menu_icon' => '',
'last_tab' => '',
'page_icon' => 'icon-themes',
'page_slug' => '',
'save_defaults' => true,
'default_show' => false,
'default_mark' => '',
'show_import_export' => true,
'transient_time' => 60 * MINUTE_IN_SECONDS,
'output' => true,
'output_tag' => true,
);
}
public static function inspirelite_redux_header_setting(){
return array( 'title' => __( 'Header', 'inspirelite' ),
'id' => 'Header',
'customizer_width' => '400px',
'icon' => 'el el-home',
'fields' =>
array(
array(
'id' => 'plain_text_logo',
'type' => 'switch',
'title' => esc_html__( 'Enable Blog Name', 'inspirelite' ),
'desc' => esc_html__( 'When you enable this option our theme has support site logo visable.', 'inspirelite' ),
'subtitle' => '',
'default' => 1,
'on' => esc_html__( 'Enabled', 'inspirelite' ),
'off' => esc_html__( 'Disabled', 'inspirelite' ),
),
array(
'id' => 'primary_logo',
'type' => 'media',
'url' => true,
'title' => esc_html__( 'Home Page Logo', 'inspirelite' ),
'compiler' => 'true',
'desc' => esc_html__( 'Upload your logo here', 'inspirelite' ),
'default' => '',
'required' => array( 'plain_text_logo', '!=', '1' ),
),
)
);
}
public static function inspirelite_redux_typography_setting(){
Redux::setSection( self:: redux_name(), array(
'title' => esc_html__('Typography', 'inspirelite'),
'id' => 'typography',
'icon' => 'el el-font',
));
Redux::setSection( self:: redux_name(), self:: body_typography_setting() );
Redux::setSection( self:: redux_name(), self:: heading_typography_setting() );
}
public static function inspirelite_redux_style_setting(){
Redux::setSection( self:: redux_name(), array(
'title' => esc_html__('Customization', 'inspirelite'),
'id' => 'customization',
'icon' => 'el el-brush',
));
Redux::setSection( self:: redux_name(), self:: header_customization_setting() );
Redux::setSection( self:: redux_name(), self:: menu_customization_setting() );
Redux::setSection( self:: redux_name(), self:: footer_customization_setting() );
}
public function inspirelite_redux_footer_setting(){
Redux::setSection( self:: redux_name(), self:: footer_setting() );
}
public static function inspirelite_redux_404_setting(){
Redux::setSection( self:: redux_name(), self:: error_page_customization_setting() );
}
public function error_page_customization_setting(){
return
array(
'title' => __( '404 Error Page', 'inspirelite' ),
'id' => 'error-page',
'customizer_width' => '400px',
'icon' => 'el el-wrench', // el el-info-circle
'fields' =>
array(
array(
'id' => '404_title',
'type' => 'text',
'title' => __('Error Page Heading', 'inspirelite'),
'msg' => 'custom error heading',
'default' => esc_html__( 'Oops! That page can\'t be found.', 'inspirelite' ),
),
array(
'id' => '404_error_description',
'type' => 'textarea',
'title' => __('Error Page Heading', 'inspirelite'),
'msg' => 'custom error description',
'default' => esc_html__( 'It looks like nothing was found at this location. Maybe try one of the links below or a search ?','inspirelite' ),
),
)
);
}
public function body_typography_setting(){
return array(
'title' => esc_html__('Body Typography', 'inspirelite'),
'id' => 'body-typography-section',
'subsection' => true,
'fields' =>
array(
array(
'id' => 'body_typography',
'title' => esc_html__('Body Typography', 'inspirelite'),
'subtitle' => esc_html__('These settings control the typography for all body text.', 'inspirelite'),
'type' => 'typography',
'subsets' => false,
'units' =>'px',
'line-height' => false,
'text-align' => false,
'all_styles' => true,
'output' => array('body'),
'default' => array(
'color' => '',
'google' => true,
'font-family' => '',
'font-size' => '',
),
),
)
);
}
public function heading_typography_setting(){
return
array(
'title' => esc_html__('Headings Typography', 'inspirelite'),
'id' => 'headers-typography',
'subsection' => true,
'fields' =>
array(
array(
'id' => 'h1_typography',
'title' => esc_html__('H1 Headings Typography', 'inspirelite'),
'subtitle' => esc_html__('These settings control the typography for all H1 Headers.', 'inspirelite'),
'type' => 'typography',
'subsets' => false,
'output' => array('h1'),
'line-height' => false,
'font-weight' => true,
'text-align' => false,
'units' =>'px',
'default' => array(
'color' => '',
'google' => true,
'font-size' => '',
'font-weight' => '',
'font-family' => '',
'line-height' => ''
),
),
array(
'id' => 'h2_typography',
'title' => esc_html__('H2 Headings Typography', 'inspirelite'),
'subtitle' => esc_html__('These settings control the typography for all H2 Headings.', 'inspirelite'),
'type' => 'typography',
'subsets' => false,
'units' =>'px',
'line-height' => false,
'font-weight' => true,
'text-align' => false,
'output' => array('h2'),
'default' => array(
'color' => '',
'google' => true,
'font-size' => '',
'font-weight' => '',
'font-family' => '',
'line-height' => ''
),
),
array(
'id' => 'h3_typography',
'title' => esc_html__('H3 Headings Typography', 'inspirelite'),
'subtitle' => esc_html__('These settings control the typography for all H3 Headings.', 'inspirelite'),
'type' => 'typography',
'subsets' => false,
'units' =>'px',
'output' => array('h3'),
'line-height' => false,
'font-weight' => true,
'text-align' => false,
'default' => array(
'color' => '',
'google' => true,
'font-size' => '',
'font-weight' => '',
'font-family' => '',
'line-height' => ''
),
),
array(
'id' => 'h4_typography',
'title' => esc_html__('H4 Headings Typography', 'inspirelite'),
'subtitle' => esc_html__('These settings control the typography for all H4 Headings.', 'inspirelite'),
'type' => 'typography',
'subsets' => false,
'units' =>'px',
'output' => array('h4'),
'line-height' => false,
'font-weight' => true,
'text-align' => false,
'default' => array(
'color' => '',
'google' => true,
'font-family' => '',
'font-weight' => '',
'font-size' => '',
'line-height' => ''
),
),
array(
'id' => 'h5_typography',
'title' => esc_html__('H5 Headings Typography', 'inspirelite'),
'subtitle' => esc_html__('These settings control the typography for all H5 Headings.', 'inspirelite'),
'type' => 'typography',
'subsets' => false,
'units' =>'px',
'output' => array('h5'),
'line-height' => false,
'font-weight' => true,
'text-align' => false,
'default' => array(
'color' => '',
'google' => true,
'font-family' => '',
'font-weight' => '',
'font-size' => '',
'line-height' => ''
),
),
array(
'id' => 'h6_typography',
'title' => esc_html__('H6 Headings Typography', 'inspirelite'),
'subtitle' => esc_html__('These settings control the typography for all H6 Headings.', 'inspirelite'),
'type' => 'typography',
'subsets' => false,
'units' =>'px',
'output' => array('h6'),
'line-height' => false,
'font-weight' => true,
'text-align' => false,
'default' => array(
'color' => '',
'google' => true,
'font-family' => '',
'font-weight' => '',
'font-size' => '',
'line-height' => ''
),
),
)
);
}
public function header_customization_setting(){
return array(
'title' => esc_html__('Header Customization', 'inspirelite'),
'id' => 'header-customization',
'subsection' => true,
'fields' =>
array(
array(
'id' => 'header_bg',
'type' => 'color',
'title' => esc_html__('Header Background Color', 'inspirelite'),
'subtitle' => esc_html__('(default: #ffffff).', 'inspirelite'),
'default' => '#ffffff',
'validate' => 'color',
'mode' => 'background',
'compiler' => true,
'output' => array('.site-header'),
),
)
);
}
public function menu_customization_setting(){
return array(
'title' => esc_html__('Navigation Menu', 'inspirelite'),
'id' => 'navigation-menu-customization',
'subsection' => true,
'fields' =>
array(
array(
'id' => 'menu-bg-color',
'type' => 'color',
'title' => esc_html__('Menubar Background Color', 'inspirelite'),
'subtitle' => esc_html__('(default: #f2f2f2).', 'inspirelite'),
'default' => '#f2f2f2',
'validate' => 'color',
'mode' => 'background',
'compiler' => true,
'output' => array('#navigation ul ul li a, #navigation>ul>li:hover>a'),
),
array(
'id' => 'menu-bg-hover-color',
'type' => 'color',
'title' => esc_html__('Menubar Hover Background Color', 'inspirelite'),
'subtitle' => esc_html__('(default: #f8f8f8).', 'inspirelite'),
'default' => '#f8f8f8',
'validate' => 'color',
'mode' => 'background',
'compiler' => true,
'output' => array('#navigation ul ul li:hover>a, #navigation ul ul li a:hover'),
),
array(
'id' => 'menu-text-color',
'type' => 'color',
'title' => esc_html__('Menu Text Color', 'inspirelite'),
'subtitle' => esc_html__('(default: #333).', 'inspirelite'),
'default' => '#333',
'validate' => 'color',
'compiler' => true,
'output' => array('#navigation>ul>li>a, #navigation ul ul li a'),
),
array(
'id' => 'menu-text-hover-color',
'type' => 'color',
'title' => esc_html__('Menu Text Hover Color', 'inspirelite'),
'subtitle' => esc_html__('(default: #333).', 'inspirelite'),
'default' => '#333',
'validate' => 'color',
'compiler' => true,
'output' => array('#navigation>ul>li:hover>a, #navigation ul ul li:hover>a'),
),
)
);
}
public function footer_customization_setting(){
return array(
'title' => esc_html__('Tiny Footer', 'inspirelite'),
'id' => 'tiny-footer-customization',
'subsection' => true,
'fields' =>
array(
array(
'id' => 'tiny_footer_a_color',
'type' => 'color',
'title' => esc_html__('Tiny Footer Link Color', 'inspirelite'),
'subtitle' => esc_html__('(default: #5a3fd6).', 'inspirelite'),
'default' => '#5a3fd6',
'validate' => 'color',
'compiler' => true,
'output' => array('.tiny-footer-white a'),
),
array(
'id' => 'tiny_footer_a_hover_color',
'type' => 'color',
'title' => esc_html__('Tiny Footer Link Hover Color', 'inspirelite'),
'subtitle' => esc_html__('(default: #1466ad).', 'inspirelite'),
'default' => '#1466ad',
'validate' => 'color',
'compiler' => true,
'output' => array('.tiny-footer-white a:hover'),
),
)
);
}
public function footer_setting(){
return
array(
'title' => __( 'Footer', 'inspirelite' ),
'id' => 'footer',
'customizer_width' => '400px',
'icon' => 'el el-leaf',
'fields' =>
array(
array(
'id' => 'tiny_footer_content',
'type' => 'editor',
'title' => __('Tiny Footer Content', 'inspirelite'),
'subtitle' => __('Enter your tiny footer copyright content.', 'inspirelite'),
'default' => 'Proudly powered by WordPress - Inspirelite.',
'args' => array(
'teeny' => true,
'textarea_rows' => 10
)
),
)
);
}
/**
* Theme Option value function to get method.
*/
public static function inspirelite_option( $id ) {
if( ! class_exists( 'Redux' ) )
return;
global $inspirelite;
$output = ( isset( $inspirelite[ $id ] ) && $inspirelite[ $id ] != '' ) ? $inspirelite[ $id ] : false;
if ( ! empty( $inspirelite[ $id ] ) ) {
$output = $inspirelite[ $id ];
}
return $output;
}
public static function inspirelite_get_link( $id ) {
if( ! class_exists( 'Redux' ) )
return;
$_get_data = self:: inspirelite_option( $id );
return $_get_data[ 'url' ];
}
}
/**
* Kicking this off by calling 'get_instance()' method
*/
Inspirelite_Redux::get_instance();
}