Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

cs_options

<?php if ( ! defined( 'ABSPATH' ) ) { die; } // Cannot access pages directly.
// ===============================================================================================
// -----------------------------------------------------------------------------------------------
// FRAMEWORK SETTINGS
// -----------------------------------------------------------------------------------------------
// ===============================================================================================
$settings           = array(
  'menu_title'      => 'Theme Options',
  'menu_type'       => 'menu', // menu, submenu, options, theme, etc.
  'menu_slug'       => 'cs-framework',
  'ajax_save'       => false,
  'show_reset_all'  => false,
  'framework_title' => 'Theme Important Options',
);

// ===============================================================================================
// -----------------------------------------------------------------------------------------------
// FRAMEWORK OPTIONS
// -----------------------------------------------------------------------------------------------
// ===============================================================================================
$options        = array();

$options[]=array(
  'name'=>'first_section_1',
  'title'=>'Title, Typography',
  'icon'=>'fa fa-bullhorn',
  'sections'=>array(




    // ----------------------------------------
    // a option section for group (For Home Page)
    // ----------------------------------------
    array(
    'name'=>'home_head',
    'title'=>'Home Page Heading',
    'icon'=>'fa fa-check',
    'fields'=>array(

        array(
          'type'    => 'heading',
          'content' => 'Home Page Heading Content'
        ),
        array(
          'id'=>'home_head_1',
          'sanitize'=>'wp_kses_post',
          'type'=>'text',
          'title'=>'Large Heading',
        ),

        array(
          'id'=>'home_head_11',
          'sanitize'=>'wp_kses_post',
          'type'=>'text',
          'title'=>'Sub Heading',
        ),

      ),
    ),



    



    // ----------------------------------------
    // Works Featured Post 
    // ----------------------------------------
    array(
    'name'=>'work_featured_post',
    'title'=>'Work Featured Post',
    'icon'=>'fa fa-check',
    'fields'=>array(
        array(
          'type'    => 'heading',
          'content' => 'Featured Work , Note: First Post Some Work then you can featured',
        ),

        // Featured
        array(
          'id'=>'work_featured_post',
          'type'=>'select',
          'title'=>'Work Fetured Post',
          'attributes' => array(
            'multiple' => 'multiple',
            'style'    => 'width: 300px; height: 500px;',
          ),
        'options'        => 'posts',
        'query_args'     => array(
          'post_type'    => 'works',
          'orderby'      => 'post_date',
          'order'        => 'DESC',
          'posts_per_page' => -1,
        ),
        'default_option' => 'Select a post'

        ),
        

      ),
    ),



    // ----------------------------------------
    // Featured Post 
    // ----------------------------------------
    array(
    'name'=>'featured_post',
    'title'=>'Featured Post',
    'icon'=>'fa fa-check',
    'fields'=>array(
        array(
          'type'    => 'heading',
          'content' => 'Featured Article , Note: First Post Some Article then you can featured',
        ),

        // Featured
        array(
          'id'=>'featured_post',
          'type'=>'select',
          'title'=>'Fetured Post',
          'attributes' => array(
            'multiple' => 'multiple',
            'style'    => 'width: 300px; height: 500px;',
          ),
        'options'        => 'posts',
        'query_args'     => array(
          'orderby'      => 'post_date',
          'order'        => 'DESC',
          'posts_per_page' => -1,
        ),
        'default_option' => 'Select a post'

        ),
        

      ),
    ),



    


    




    // Pages Heading Content
    array(
    'name'=>'pages_heading',
    'title'=>'Pages Heading Content',
    'icon'=>'fa fa-check',
    'fields'=>array(

        // For Services Pages
        array(
          'type'    => 'heading',
          'content' => 'Services Page',
        ),
        array(
          'id'=>'heading_services_single_link',
          'sanitize'=>'wp_kses_post',
          'type'=>'text',
          'title'=>'Others Services URL (Services Details Page)',
          'desc' => '( Copy url from Services Page and put here )',
        ),

        array(
          'id'=>'heading_services_single_img',
          'sanitize'=>'wp_kses_post',
          'type'=>'upload',
          'title'=>'Background Image (Services Details Page)',
        ),

        array(
          'id'=>'heading_services',
          'sanitize'=>'wp_kses_post',
          'type'=>'text',
          'title'=>'Large Title (Services Page)',
        ),

        array(
          'id'=>'sub_heading_services',
          'sanitize'=>'wp_kses_post',
          'type'=>'text',
          'title'=>'Sub Title (Services Page)',
        ), 

        array(
          'id'=>'heading_services_single',
          'sanitize'=>'wp_kses_post',
          'type'=>'text',
          'title'=>'Large Title (Services Details Page)',
          'desc' => '(Note: Default Heading [ if details missing ])',
        ), 

        array(
          'id'=>'sub_heading_services_link',
          'sanitize'=>'wp_kses_post',
          'type'=>'text',
          'title'=>'Sub Title (Services Details Page)',
          'desc' => '(Note: Default Heading [ if details missing ])',
        ),

        // For Work Pages
        array(
          'type'    => 'heading',
          'content' => 'Work Page',
        ),
        array(
          'id'=>'heading_work_single_link',
          'sanitize'=>'wp_kses_post',
          'type'=>'text',
          'title'=>'Others Work URL (Work Details Page)',
          'desc' => '( Copy url from Services Page and put here )',
        ),
        array(
          'id'=>'heading_work_single_img',
          'type'=>'upload',
          'title'=>'Background Image (Work Details Page)',
        ),

        array(
          'id'=>'heading_work',
          'sanitize'=>'wp_kses_post',
          'type'=>'text',
          'title'=>'Large Title (Work Page)',
        ),

        array(
          'id'=>'sub_heading_work',
          'sanitize'=>'wp_kses_post',
          'type'=>'text',
          'title'=>'Sub Title (Work Page)',
        ), 

        array(
          'id'=>'heading_work_single',
          'sanitize'=>'wp_kses_post',
          'type'=>'text',
          'title'=>'Large Title (Work Details Page)',
          'desc' => '(Note: Default Heading [ if details missing ])',
        ), 

        array(
          'id'=>'sub_heading_work_single',
          'sanitize'=>'wp_kses_post',
          'type'=>'text',
          'title'=>'Sub Title (Work Details Page)',
          'desc' => '(Note: Default Heading [ if details missing ])',
        ), 
        
        
        
        // Resources
        array(
          'type'    => 'heading',
          'content' => 'Resources Page',
        ),
        array(
          'id'=>'heading_resources_bg',
          'sanitize'=>'wp_kses_post',
          'type'=>'upload',
          'title'=>'Background Image (Resources Details Page)',
        ),

        array(
          'id'=>'heading_resources',
          'sanitize'=>'wp_kses_post',
          'type'=>'text',
          'title'=>'Large Title (Resources Page)',
        ),
        array(
          'id'=>'sub_heading_resources',
          'sanitize'=>'wp_kses_post',
          'type'=>'text',
          'title'=>'Sub Title (Resources Page)',
        ), 
        
        
        // Our Process
        array(
          'type'    => 'heading',
          'content' => 'Our Process Page',
        ),
        array(
          'id'=>'heading_process_bg',
          'sanitize'=>'wp_kses_post',
          'type'=>'upload',
          'title'=>'Background Image (Resources Details Page)',
        ),

        array(
          'id'=>'heading_process',
          'sanitize'=>'wp_kses_post',
          'type'=>'text',
          'title'=>'Large Title (Resources Page)',
        ),
        array(
          'id'=>'sub_heading_process',
          'sanitize'=>'wp_kses_post',
          'type'=>'textarea',
          'title'=>'Sub Title / Content (Resources Page)',
        ), 
        
        

        


        

         


      ),
    ),




    

  ),
);




// Client Review
//===============================
$options[]=array(
'name'=>'client_section',
'title'=>'Client Testimonial',
'icon'=>'fa fa-user',
'sections'=>array(



    // ----------------------------------------
    // a option section for group  -
    // ----------------------------------------
    array(
    'name'=>'review_section',
    'title'=>'Client Review Area',
    'icon'=>'fa fa-star',
    'fields'=>array(
        array(
            'type'    => 'heading',
            'content' => 'Home Page Client Review',
          ),

        array(
          'id'=>'client_review_group',
          'type'=>'group',
          'title'=>'Client Review / Testimonial',
          'button_title'    => 'Add New Review',
          'accordion_title' => 'Add New Review Field',
          'fields'=>array(          
            array(
              'id'=>'client_name',
              'type'=>'text',
              'title'=>'Client Name',
            ),  
            
            array(
              'id'=>'client_desi',
              'type'=>'text',
              'title'=>'Client Desingnation',
            ),  
            
            array(
              'id'=>'client_img',
              'type'=>'upload',
              'title'=>'Client Photo',
            ),

            array(
              'id'=>'client_text',
              'type'=>'textarea',
              'title'=>'Client Content',
            ),
            
          
          ),
        ),

      ),
    ),

  ),
);



// Dribble, Youtube, Instagram
//===============================
$options[]=array(
'name'=>'dribble_instagram_section',
'title'=>'Dribble, Youtbue, Instagram',
'icon'=>'fa fa-briefcase',
'sections'=>array(



    // ----------------------------------------
    // a option section for group  -
    // ----------------------------------------
    array(
    'name'=>'dribble_youtube_ins_gropu',
    'title'=>'Dribble, Youtube, Instagram Area',
    'icon'=>'fa fa-star',
    'fields'=>array(

        array(
            'type'    => 'heading',
            'content' => 'Home Page Driblle, Instagram... Thumbnail and Link Change',
          ),

        array(
          'id'=>'dribble_link',
          'sanitize'=>'wp_kses_post',
          'type'=>'text',
          'title'=>'Your Dribble URL',
        ),
        array(
          'id'=>'youtube_link',
          'sanitize'=>'wp_kses_post',
          'type'=>'text',
          'title'=>'Your Youtube URL',
        ),
        array(
          'id'=>'instagram_link',
          'sanitize'=>'wp_kses_post',
          'type'=>'text',
          'title'=>'Your Instagram URL',
        ),
        


        array(
          'id'=>'dribble_group',
          'type'=>'group',
          'title'=>'Dribble, YouTube, Instagram',
          'button_title'    => 'Add New',
          'accordion_title' => 'Add New Field',
          'fields'=>array(          
            array(
              'id'=>'dri_y_ins_photo',
              'type'=>'upload',
              'title'=>'Upload Your Photo',
              'desc' => '(Photo size should be 680 x 680)',
            ),  
            array(
              'id'=>'dri_y_ins_photo_alt',
              'type'=>'text',
              'title'=>'Alter Text',
            ),  
            
            array(
              'id'=>'dri_y_i_url',
              'sanitize'=>'wp_kses_post',
              'type'=>'text',
              'title'=>'Your target URL',
            ), 
            array(
              'id'      => 'dri_y_i_tab',
              'type'    => 'radio',
              'title'   => 'Choose your option',
              'options' => array(
                '_self  '   => 'Open Self Tab',
                '_blank'    => 'Open New Tab',
              ),
              'default' => '_blank',
            ),
            
          
          ),
        ),

       array(
          'id'=>'dri_y_i_arrow',
          'type'=>'upload',
          'title'=>'On hover arrow icon',
          'desc' => '( upoload an arrow icon )'
        ),

      ),
    ),

  ),
);


// Contact Page
//===============================
$options[]=array(
'name'=>'contact_page',
'title'=>'Contact Page Content',
'icon'=>'fa fa-id-card',
'sections'=>array(



    // ----------------------------------------
    // a option section for group  -
    // ----------------------------------------
    array(
    'name'=>'contact_area',
    'title'=>'Contact Page Details',
    'icon'=>'fa fa-star',
    'fields'=>array(

        array(
            'type'    => 'heading',
            'content' => 'Contact Page All Content',
          ),

        array(
          'id'=>'contact_area_btn_content',
          'type'=>'text',
          'title'=>'Header contact button text',
        ),
        array(
          'id'=>'contact_area_link',
          'sanitize'=>'wp_kses_post',
          'type'=>'text',
          'title'=>'Header contact page URL',
        ),
        array(
          'id'=>'contact_area_page_head_title',
          'sanitize'=>'wp_kses_post',
          'type'=>'text',
          'title'=>'Contact Page Large Heading',
          'default'=> 'Tell me about your project.',
        ),
        array(
          'id'=>'contact_area_page_head_sub_content',
          'sanitize'=>'wp_kses_post',
          'type'=>'textarea',
          'title'=>'Contact Page Sub Content',
          'default'=> 'To help me understand your business goals and project details, complete <br> thefollowing intake form and I'll get back to you shortly.',
        ),
        array(
          'id'=>'contact_area_short_code',
          'type'=>'textarea',
          'sanitize'=>'wp_kses_post',
          'title'=>'Contact Form 7 Short Code Here',
          'desc' => '( Create a form by contact form 7 and Short code put here )'
        ),

        array(
          'type'    => 'heading',
          'content' => 'Contact Page Location | Email | Skype Content',
        ),
        array(
          'id'=>'contact_area_location_title',
          'type'=>'text',
          'title'=>'Contact Location Title',
        ),
        array(
          'id'=>'contact_area_location_address',
          'sanitize'=>'wp_kses_post',
          'type'=>'text',
          'title'=>'Address',
        ),
        array(
          'id'=>'contact_area_email_title',
          'type'=>'text',
          'title'=>'Contact Email Text',
        ),
        array(
          'id'=>'contact_area_email',
          'sanitize'=>'wp_kses_post',
          'type'=>'text',
          'title'=>'Your Conatct Email Address',
        ),
        array(
          'id'=>'contact_area_skype_title',
          'type'=>'text',
          'title'=>'Contact Skype Text',
        ),
        array(
          'id'=>'contact_area_skype_user',
          'sanitize'=>'wp_kses_post',
          'type'=>'text',
          'title'=>'Skype User Name',
        ),
        
        

      ),
    ),

  ),
);


// Process Page Content
//===============================
$options[]=array(
'name'=>'all_process_section',
'title'=>'Process Page',
'icon'=>'fa fa-tachometer',
'sections'=>array(



    // ----------------------------------------
    // a option section for group  -
    // ----------------------------------------
    array(
    'name'=>'discover_1st_list',
    'title'=>'Discover (1st) List',
    'icon'=>'fa fa-star',
    'fields'=>array(
        
         // ----------------------------------------
        // a Descover (1st) Section  -
        // ----------------------------------------
        array(
            'type'    => 'heading',
            'content' => 'Change Your Discover (1st) Content',
          ),
          
        array(
          'id'=>'discover_1st_title',
          'type'=>'text',
          'title'=>'Discover Main Heading',
        ),
        array(
          'id'=>'discover_1st_sub_content',
          'sanitize'=>'wp_kses_post',
          'type'=>'textarea',
          'title'=>'Discover (1st) Sub Content',
        ),
        array(
          'id'=>'discover_1st_img',
          'type'=>'upload',
          'title'=>'Discover (1st) Image',
        ),
        
        
        array(
          'id'=>'discover_1st_group',
          'type'=>'group',
          'title'=>'Discover (1st) Lists',
          'button_title'    => 'Add New List',
          'accordion_title' => 'Add New List Title and Content',
          'fields'=>array(          
            array(
              'id'=>'discover_list_title',
              'type'=>'text',
              'title'=>'Discover List Title',
            ),  
            
            array(
              'id'=>'discover_list_short_description',
              'type'=>'text',
              'title'=>'Discover List Short Description',
            ),  
          ),
        ),

      ),
    ),

  ),
);




// Footer Area
//===============================
$options[]=array(
'name'=>'footer_section',
'title'=>'Footer Section',
'icon'=>'fa fa-shower',
'sections'=>array(



    // ----------------------------------------
    // a option section for group  -
    // ----------------------------------------
    array(
    'name'=>'footer_content',
    'title'=>'Footer Area Content',
    'icon'=>'fa fa-star',
    'fields'=>array(

        array(
          'id'=>'footer_large_title',
          'sanitize'=>'wp_kses_post',
          'type'=>'text',
          'title'=>'Footer Large Title',
          'default' => 'Have a design project in mind?',
        ),
        array(
          'id'=>'footer_sub_content',
          'sanitize'=>'wp_kses_post',
          'type'=>'textarea',
          'title'=>'Footer Sub Content',
          'default' => 'I'm an independent consultant who can deliver world-class solutions <br> that 
solve your toughest business problems.',
        ),
        array(
          'id'=>'contact_page_url',
          'sanitize'=>'wp_kses_post',
          'type'=>'text',
          'title'=>'Your Page URL (Should be Contact Page LINK)',
        ),
        array(
          'id'=>'footer_btn_text',
          'sanitize'=>'wp_kses_post',
          'type'=>'text',
          'title'=>'Button Text',
          'default' => 'Share the details',
        ),
        
        array(
          'id'=>'copyright_text',
          'sanitize'=>'wp_kses_post',
          'type'=>'textarea',
          'title'=>'Copy Right Text',
          'default'=>'Copyright © 2018 <a href="http://safesyntax.com/shahin" target="_blank">Respogridui.</a> All Rights Reserved.',
        ),
       

      ),
    ),

  ),
);



// Footer Area
//===============================
$options[]=array(
'name'=>'four_0_4',
'title'=>'4 0 4 Page',
'icon'=>'fa fa-shower',
'sections'=>array(



    // ----------------------------------------
    // a option section for group  -
    // ----------------------------------------
    array(
    'name'=>'four_0_4_area',
    'title'=>'4 0 4 Page Content',
    'icon'=>'fa fa-star',
    'fields'=>array(

        array(
          'id'=>'four_0_4_heading',
          'sanitize'=>'wp_kses_post',
          'type'=>'text',
          'title'=>'4 0 4 Large Title',
          'default' => 'Oops! That page can&rsquo;t be found.',
        ),
        array(
          'id'=>'four_0_4_url',
          'sanitize'=>'wp_kses_post',
          'type'=>'text',
          'title'=>'Home Page URL',
          'default' => 'http://shahinsrowar.com',
        ),
        array(
          'id'=>'four_0_4_go_text',
          'sanitize'=>'wp_kses_post',
          'type'=>'text',
          'title'=>'Go to text',
          'default' => 'Go to',
        ),
        array(
          'id'=>'four_0_4_home_text',
          'sanitize'=>'wp_kses_post',
          'type'=>'text',
          'title'=>'Home Text',
          'default' => 'home page',
        ),
        
        
        array(
          'id'=>'four_0_4_img',
          'type'=>'upload',
          'title'=>'Upload an image=',
          'default' => get_template_directory_uri() .'/images/404.jpg',
        ),

      ),
    ),

  ),
);





CSFramework::instance( $settings, $options );