kalponikoronno

Cs option framework

Jul 28th, 2017
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 7.08 KB | None | 0 0
  1. function seo_theme_options($options){
  2.        
  3.         $options = array(); // remove old opotions
  4.        
  5.        
  6.         $options[]    = array(
  7.             'name'      => 'seo_header_setting',
  8.             'title'     => 'Header Setting',
  9.             'icon'      => 'fa fa-heart',
  10.             'fields'    => array(
  11.               array(
  12.                     'id'              => 'Header_Iconic_Boxes',
  13.                     'type'            => 'group',
  14.                     'title'           => 'Iconic Boxes',
  15.                     'button_title'    => 'Add New',
  16.                     'accordion_title' => 'Add New Box',
  17.                     'fields'          => array(
  18.                         array(
  19.                           'id'    => 'icon',
  20.                           'type'  => 'icon',
  21.                           'title' => 'Select Icon',
  22.                         ),
  23.                         array(
  24.                           'id'    => 'info_text',
  25.                           'type'  => 'text',
  26.                           'title' => 'Info Text',
  27.                     ),
  28.                 ),
  29.             ),
  30.         )
  31.   );
  32.         $options[]    = array(
  33.             'name'      => 'seo_logo_setting',
  34.             'title'     => 'Logo Setting',
  35.             'icon'      => 'fa fa-heart',
  36.             'fields'    => array(
  37.                 array(
  38.                   'id'    => 'enable_image_logo',
  39.                   'type'  => 'switcher',
  40.                   'title' => 'Enable Image Logo',
  41.                   'default' => true,
  42.                   'label' => 'Do you want to it ?',
  43.                 ),
  44.                 array(
  45.                   'id'    => 'image_logo',
  46.                   'type'  => 'image',
  47.                   'title' => 'Image Logo',
  48.                   'label' => 'Add Your Image LOGO here',
  49.                   'dependency'   => array( 'enable_image_logo', '==', 'true' ),
  50.                 ),
  51.                 array(
  52.                   'id'    => 'text_logo',
  53.                   'type'  => 'text',
  54.                   'title' => 'Logo Text',
  55.                   'label' => 'type Your LOGO text here',
  56.                   'dependency'   => array( 'enable_image_logo', '==', 'false' ),
  57.                 ),
  58.         )
  59.   );
  60.         $options[]    = array(
  61.             'name'      => 'seo_social_setting',
  62.             'title'     => 'Social Links',
  63.             'icon'      => 'fa fa-heart',
  64.             'fields'    => array(
  65.                   array(
  66.                     'id'              => 'social_links',
  67.                     'type'            => 'group',
  68.                     'title'           => 'Social Links',
  69.                     'button_title'    => 'Add New',
  70.                     'accordion_title' => 'Add New link',
  71.                     'fields'          => array(
  72.                         array(
  73.                           'id'    => 'icon',
  74.                           'type'  => 'icon',
  75.                           'title' => 'Select Icon',
  76.                         ),
  77.                         array(
  78.                           'id'    => 'link',
  79.                           'type'  => 'text',
  80.                           'title' => 'Social Link',
  81.                     ),
  82.                 ),
  83.             ),
  84.         )
  85.   );
  86.         $options[]    = array(
  87.             'name'      => 'seo_typography_setting',
  88.             'title'     => 'Typography Setting',
  89.             'icon'      => 'fa fa-heart',
  90.             'fields'    => array(
  91.                 array(
  92.                   'id'    => 'body_font',
  93.                   'type'      => 'typography',
  94.                   'title' => 'Body Font',
  95.                   'default' => array(
  96.                     'family'  => 'Titillium Web',
  97.                     'variant' => 'regular',
  98.                     'font'    => 'google', // this is helper for output
  99.                   ),
  100.                 ),
  101.                 array(
  102.                   'id'        => 'heading_font',
  103.                   'type'      => 'typography',
  104.                   'title'     => 'Heading Font',
  105.                   'default'   => array(
  106.                     'family'  => 'Titillium Web',
  107.                     'variant' => '700',
  108.                     'font'    => 'google', // this is helper for output
  109.                   ),
  110.                 ),
  111.         )
  112.   );
  113.         $options[]    = array(
  114.             'name'      => 'seo_styling_setting',
  115.             'title'     => 'Style Setting',
  116.             'icon'      => 'fa fa-heart',
  117.             'fields'    => array(
  118.                 array(
  119.                   'id'      => 'enable_preloader',
  120.                   'type'    => 'switcher',
  121.                   'title'   => 'Enable Preloader',
  122.                   'default' => true,
  123.                 ),
  124.                 array(
  125.                   'id'      => 'enable_boxed_layout',
  126.                   'type'    => 'switcher',
  127.                   'title'   => 'Enable Boxed Layout',
  128.                   'default' => false,
  129.                 ),
  130.                 array(
  131.                   'id'      => 'body_bg',
  132.                   'type'    => 'image',
  133.                   'title'   => 'Body Background Image',
  134.                   'dependency'   => array( 'enable_boxed_layout', '==', 'true' ),
  135.                 ),
  136.                 array(
  137.                   'id'             => 'body_bg_repeat',
  138.                   'type'           => 'select',
  139.                   'title'          => 'Body Background Image',
  140.                   'options'        => array(
  141.                     'repeat'          => 'Repeat',
  142.                     'no-repeat'     => 'No Repeat',
  143.                     'cover'         => 'Cover',
  144.                   ),
  145.                   'dependency'   => array( 'enable_boxed_layout', '==', 'true' ),
  146.                 ),
  147.                 array(
  148.                   'id'             => 'body_bg_attachment',
  149.                   'type'           => 'select',
  150.                   'default'        => 'scroll',
  151.                   'title'          => 'Body Background Attachment',
  152.                   'options'        => array(
  153.                     'scroll'       => 'Scroll',
  154.                     'fixed'        => 'Fixed',
  155.                   ),
  156.                   'dependency'   => array( 'enable_boxed_layout', '==', 'true' ),
  157.                 ),
  158.                 )
  159.   );
  160.  
  161.  
  162.         $options[]    = array(
  163.             'name'      => 'seo_blog_setting',
  164.             'title'     => 'Blog Setting',
  165.             'icon'      => 'fa fa-heart',
  166.             'fields'    => array(
  167.                 array(
  168.                   'id'        => 'post_by',
  169.                   'type'      => 'switcher',
  170.                   'title'     => 'Display Post By?',
  171.                   'default'       => true,
  172.                 ),
  173.                 array(
  174.                   'id'        => 'post_date',
  175.                   'type'      => 'switcher',
  176.                   'title'     => 'Display Post Date?',
  177.                   'default'       => true,
  178.                 ),
  179.                 array(
  180.                   'id'        => 'post_comment',
  181.                   'type'      => 'switcher',
  182.                   'title'     => 'Display Comment Count?',
  183.                   'default'       => true,
  184.                 ),
  185.                 array(
  186.                   'id'        => 'post_category',
  187.                   'type'      => 'switcher',
  188.                   'title'     => 'Display Post Categories?',
  189.                   'default'       => true,
  190.                 ),
  191.                 array(
  192.                   'id'        => 'post_nav',
  193.                   'type'      => 'switcher',
  194.                   'title'     => 'Display Post navigation?',
  195.                   'default'       => true,
  196.                 ),
  197.         )
  198.   );
  199.         $options[]    = array(
  200.             'name'      => 'seo_footer_setting',
  201.             'title'     => 'Footer Setting',
  202.             'icon'      => 'fa fa-heart',
  203.             'fields'    => array(
  204.                 array(
  205.                   'id'        => 'footer_bg',
  206.                   'type'      => 'color_picker',
  207.                   'title'     => 'Footer Background Color',
  208.                   'default'   => '#000',
  209.                 ),
  210.                 array(
  211.                   'id'        => 'text_color',
  212.                   'type'      => 'color_picker',
  213.                   'title'     => 'Footer Text Color',
  214.                   'default'   => '#8e8d8d',
  215.                 ),
  216.                 array(
  217.                   'id'        => 'footer_header_color',
  218.                   'type'      => 'color_picker',
  219.                   'title'     => 'Footer Header Color',
  220.                   'default'   => '#fff',
  221.                 ),
  222.                 array(
  223.                   'id'        => 'footer_copyright_text',
  224.                   'type'      => 'textarea',
  225.                   'title'     => 'Footer Copyright Text',
  226.                   'default'   => 'copyright 2017| all right reserved.',
  227.                 ),
  228.         )
  229.   );
  230.         $options[]    = array(
  231.             'name'      => 'seo_scripts_setting',
  232.             'title'     => 'Scripts Setting',
  233.             'icon'      => 'fa fa-heart',
  234.             'fields'    => array(
  235.                 array(
  236.                   'id'    => 'head_scripts',
  237.                   'type'  => 'textarea',
  238.                   'title' => 'Head Scripts',
  239.                   'sanitize' => false,
  240.                   'desc' => 'scripts goes before closing < / head >',
  241.                 ),
  242.                 array(
  243.                   'id'    => 'body_start_scripts',
  244.                   'type'  => 'textarea',
  245.                   'title' => 'Body Start Scripts',
  246.                   'sanitize' => false,
  247.                   'desc' => 'scripts goes before after <  body >',
  248.                 ),
  249.                 array(
  250.                   'id'    => 'body_end_scripts',
  251.                   'type'  => 'textarea',
  252.                   'title' => 'Footer Scripts',
  253.                   'sanitize' => false,
  254.                   'desc' => 'scripts goes before closing < / body >',
  255.                 ),
  256.         )
  257.   );
  258.        
  259.  
  260.   return $options;
  261. }
  262.    
  263.    
  264. add_filter('cs_framework_options', 'seo_theme_options');
Add Comment
Please, Sign In to add comment