Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function seo_theme_options($options){
- $options = array(); // remove old opotions
- $options[] = array(
- 'name' => 'seo_header_setting',
- 'title' => 'Header Setting',
- 'icon' => 'fa fa-heart',
- 'fields' => array(
- array(
- 'id' => 'Header_Iconic_Boxes',
- 'type' => 'group',
- 'title' => 'Iconic Boxes',
- 'button_title' => 'Add New',
- 'accordion_title' => 'Add New Box',
- 'fields' => array(
- array(
- 'id' => 'icon',
- 'type' => 'icon',
- 'title' => 'Select Icon',
- ),
- array(
- 'id' => 'info_text',
- 'type' => 'text',
- 'title' => 'Info Text',
- ),
- ),
- ),
- )
- );
- $options[] = array(
- 'name' => 'seo_logo_setting',
- 'title' => 'Logo Setting',
- 'icon' => 'fa fa-heart',
- 'fields' => array(
- array(
- 'id' => 'enable_image_logo',
- 'type' => 'switcher',
- 'title' => 'Enable Image Logo',
- 'default' => true,
- 'label' => 'Do you want to it ?',
- ),
- array(
- 'id' => 'image_logo',
- 'type' => 'image',
- 'title' => 'Image Logo',
- 'label' => 'Add Your Image LOGO here',
- 'dependency' => array( 'enable_image_logo', '==', 'true' ),
- ),
- array(
- 'id' => 'text_logo',
- 'type' => 'text',
- 'title' => 'Logo Text',
- 'label' => 'type Your LOGO text here',
- 'dependency' => array( 'enable_image_logo', '==', 'false' ),
- ),
- )
- );
- $options[] = array(
- 'name' => 'seo_social_setting',
- 'title' => 'Social Links',
- 'icon' => 'fa fa-heart',
- 'fields' => array(
- array(
- 'id' => 'social_links',
- 'type' => 'group',
- 'title' => 'Social Links',
- 'button_title' => 'Add New',
- 'accordion_title' => 'Add New link',
- 'fields' => array(
- array(
- 'id' => 'icon',
- 'type' => 'icon',
- 'title' => 'Select Icon',
- ),
- array(
- 'id' => 'link',
- 'type' => 'text',
- 'title' => 'Social Link',
- ),
- ),
- ),
- )
- );
- $options[] = array(
- 'name' => 'seo_typography_setting',
- 'title' => 'Typography Setting',
- 'icon' => 'fa fa-heart',
- 'fields' => array(
- array(
- 'id' => 'body_font',
- 'type' => 'typography',
- 'title' => 'Body Font',
- 'default' => array(
- 'family' => 'Titillium Web',
- 'variant' => 'regular',
- 'font' => 'google', // this is helper for output
- ),
- ),
- array(
- 'id' => 'heading_font',
- 'type' => 'typography',
- 'title' => 'Heading Font',
- 'default' => array(
- 'family' => 'Titillium Web',
- 'variant' => '700',
- 'font' => 'google', // this is helper for output
- ),
- ),
- )
- );
- $options[] = array(
- 'name' => 'seo_styling_setting',
- 'title' => 'Style Setting',
- 'icon' => 'fa fa-heart',
- 'fields' => array(
- array(
- 'id' => 'enable_preloader',
- 'type' => 'switcher',
- 'title' => 'Enable Preloader',
- 'default' => true,
- ),
- array(
- 'id' => 'enable_boxed_layout',
- 'type' => 'switcher',
- 'title' => 'Enable Boxed Layout',
- 'default' => false,
- ),
- array(
- 'id' => 'body_bg',
- 'type' => 'image',
- 'title' => 'Body Background Image',
- 'dependency' => array( 'enable_boxed_layout', '==', 'true' ),
- ),
- array(
- 'id' => 'body_bg_repeat',
- 'type' => 'select',
- 'title' => 'Body Background Image',
- 'options' => array(
- 'repeat' => 'Repeat',
- 'no-repeat' => 'No Repeat',
- 'cover' => 'Cover',
- ),
- 'dependency' => array( 'enable_boxed_layout', '==', 'true' ),
- ),
- array(
- 'id' => 'body_bg_attachment',
- 'type' => 'select',
- 'default' => 'scroll',
- 'title' => 'Body Background Attachment',
- 'options' => array(
- 'scroll' => 'Scroll',
- 'fixed' => 'Fixed',
- ),
- 'dependency' => array( 'enable_boxed_layout', '==', 'true' ),
- ),
- )
- );
- $options[] = array(
- 'name' => 'seo_blog_setting',
- 'title' => 'Blog Setting',
- 'icon' => 'fa fa-heart',
- 'fields' => array(
- array(
- 'id' => 'post_by',
- 'type' => 'switcher',
- 'title' => 'Display Post By?',
- 'default' => true,
- ),
- array(
- 'id' => 'post_date',
- 'type' => 'switcher',
- 'title' => 'Display Post Date?',
- 'default' => true,
- ),
- array(
- 'id' => 'post_comment',
- 'type' => 'switcher',
- 'title' => 'Display Comment Count?',
- 'default' => true,
- ),
- array(
- 'id' => 'post_category',
- 'type' => 'switcher',
- 'title' => 'Display Post Categories?',
- 'default' => true,
- ),
- array(
- 'id' => 'post_nav',
- 'type' => 'switcher',
- 'title' => 'Display Post navigation?',
- 'default' => true,
- ),
- )
- );
- $options[] = array(
- 'name' => 'seo_footer_setting',
- 'title' => 'Footer Setting',
- 'icon' => 'fa fa-heart',
- 'fields' => array(
- array(
- 'id' => 'footer_bg',
- 'type' => 'color_picker',
- 'title' => 'Footer Background Color',
- 'default' => '#000',
- ),
- array(
- 'id' => 'text_color',
- 'type' => 'color_picker',
- 'title' => 'Footer Text Color',
- 'default' => '#8e8d8d',
- ),
- array(
- 'id' => 'footer_header_color',
- 'type' => 'color_picker',
- 'title' => 'Footer Header Color',
- 'default' => '#fff',
- ),
- array(
- 'id' => 'footer_copyright_text',
- 'type' => 'textarea',
- 'title' => 'Footer Copyright Text',
- 'default' => 'copyright 2017| all right reserved.',
- ),
- )
- );
- $options[] = array(
- 'name' => 'seo_scripts_setting',
- 'title' => 'Scripts Setting',
- 'icon' => 'fa fa-heart',
- 'fields' => array(
- array(
- 'id' => 'head_scripts',
- 'type' => 'textarea',
- 'title' => 'Head Scripts',
- 'sanitize' => false,
- 'desc' => 'scripts goes before closing < / head >',
- ),
- array(
- 'id' => 'body_start_scripts',
- 'type' => 'textarea',
- 'title' => 'Body Start Scripts',
- 'sanitize' => false,
- 'desc' => 'scripts goes before after < body >',
- ),
- array(
- 'id' => 'body_end_scripts',
- 'type' => 'textarea',
- 'title' => 'Footer Scripts',
- 'sanitize' => false,
- 'desc' => 'scripts goes before closing < / body >',
- ),
- )
- );
- return $options;
- }
- add_filter('cs_framework_options', 'seo_theme_options');
Add Comment
Please, Sign In to add comment