Advertisement
rhandom

custom additions options tree

Jun 29th, 2015
318
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 33.40 KB | None | 0 0
  1. <?php
  2.  
  3.  $saved_settings = get_option( 'option_tree_settings', array() );
  4.  
  5.  
  6.  $custom_settings = array(
  7.     'contextual_help' => array(
  8.       'sidebar'       => ''
  9.     ),
  10.     'sections'        => array(
  11.       array(
  12.         'id'          => 'general',
  13.         'title'       => 'General'
  14.       ),
  15.       array(
  16.         'id'          => 'color',
  17.         'title'       => 'Colors'
  18.       ),
  19.       array(
  20.         'id'          => 'shopdetails',
  21.         'title'       => 'Shop Details'
  22.       ),
  23.       array(
  24.         'id'          => 'slider',
  25.         'title'       => 'Sliders, Banners, Brands'
  26.       ),
  27.       array(
  28.         'id'          => 'social',
  29.         'title'       => 'Social Networks'
  30.       )
  31.     ),
  32.     'settings'        => array(
  33.       array(
  34.         'id'          => 'hs_fav',
  35.         'label'       => 'Favicon',
  36.         'desc'        => 'Upload your favicon',
  37.         'std'         => '',
  38.         'type'        => 'upload',
  39.         'section'     => 'general',
  40.         'rows'        => '',
  41.         'post_type'   => '',
  42.         'taxonomy'    => '',
  43.         'min_max_step'=> '',
  44.         'class'       => '',
  45.         'condition'   => '',
  46.         'operator'    => 'and'
  47.       ),
  48.       array(
  49.         'id'          => 'hs_logo',
  50.         'label'       => 'Logo Image',
  51.         'desc'        => 'Upload your own logo. Leave it blank if you decided to use text instead',
  52.         'std'         => '',
  53.         'type'        => 'upload',
  54.         'section'     => 'general',
  55.         'rows'        => '',
  56.         'post_type'   => '',
  57.         'taxonomy'    => '',
  58.         'min_max_step'=> '',
  59.         'class'       => '',
  60.         'condition'   => '',
  61.         'operator'    => 'and'
  62.       ),
  63.       array(
  64.         'id'          => 'hs_logofont',
  65.         'label'       => 'Logo Font',
  66.         'desc'        => 'Insert Google Font name you want to use for your logo, else leave it blank.',
  67.         'std'         => '',
  68.         'type'        => 'text',
  69.         'section'     => 'general',
  70.         'rows'        => '',
  71.         'post_type'   => '',
  72.         'taxonomy'    => '',
  73.         'min_max_step'=> '',
  74.         'class'       => '',
  75.         'condition'   => '',
  76.         'operator'    => 'and'
  77.       ),
  78.       array(
  79.         'id'          => 'hs_logofontsize',
  80.         'label'       => 'Logo Font Size',
  81.         'desc'        => 'Size for logo text',
  82.         'std'         => '',
  83.         'type'        => 'measurement',
  84.         'section'     => 'general',
  85.         'rows'        => '',
  86.         'post_type'   => '',
  87.         'taxonomy'    => '',
  88.         'min_max_step'=> '',
  89.         'class'       => '',
  90.         'condition'   => '',
  91.         'operator'    => 'and'
  92.       ),
  93.       array(
  94.         'id'          => 'hs_fontgoogle',
  95.         'label'       => 'Body Google Font',
  96.         'desc'        => 'If you decided to use Google Font, just insert the font name here. Leave form blank if you want to use default fonts selected above.',
  97.         'std'         => '',
  98.         'type'        => 'text',
  99.         'section'     => 'general',
  100.         'rows'        => '',
  101.         'post_type'   => '',
  102.         'taxonomy'    => '',
  103.         'min_max_step'=> '',
  104.         'class'       => '',
  105.         'condition'   => '',
  106.         'operator'    => 'and'
  107.       ),
  108.       array(
  109.         'id'          => 'hs_font',
  110.         'label'       => 'Body Font',
  111.         'desc'        => 'Default font setting. If you want to use this font-family, clear form for Body Google Font below.',
  112.         'std'         => '',
  113.         'type'        => 'typography',
  114.         'section'     => 'general',
  115.         'rows'        => '',
  116.         'post_type'   => '',
  117.         'taxonomy'    => '',
  118.         'min_max_step'=> '',
  119.         'class'       => '',
  120.         'condition'   => '',
  121.         'operator'    => 'and'
  122.       ),
  123.       array(
  124.         'id'          => 'hs_sidebarpage',
  125.         'label'       => 'Page sidebar',
  126.         'desc'        => 'Select sidebar position for pages',
  127.         'std'         => '',
  128.         'type'        => 'select',
  129.         'section'     => 'general',
  130.         'rows'        => '',
  131.         'post_type'   => '',
  132.         'taxonomy'    => '',
  133.         'min_max_step'=> '',
  134.         'class'       => '',
  135.         'condition'   => '',
  136.         'operator'    => 'and',
  137.         'choices'     => array(
  138.           array(
  139.             'value'       => '1',
  140.             'label'       => 'Left SideBar',
  141.             'src'         => ''
  142.           ),
  143.           array(
  144.             'value'       => '2',
  145.             'label'       => 'Right Sidebar',
  146.             'src'         => ''
  147.           ),
  148.           array(
  149.             'value'       => 'no_sidebar',
  150.             'label'       => 'No Sidebar',
  151.             'src'         => ''
  152.           )
  153.         )
  154.       ),
  155.       array(
  156.         'id'          => 'hs_sidebarblog',
  157.         'label'       => 'Blog Sidebar',
  158.         'desc'        => 'Select sidebar position for blog list and blog post',
  159.         'std'         => '',
  160.         'type'        => 'select',
  161.         'section'     => 'general',
  162.         'rows'        => '',
  163.         'post_type'   => '',
  164.         'taxonomy'    => '',
  165.         'min_max_step'=> '',
  166.         'class'       => '',
  167.         'condition'   => '',
  168.         'operator'    => 'and',
  169.         'choices'     => array(
  170.           array(
  171.             'value'       => '1',
  172.             'label'       => 'Left Sidebar',
  173.             'src'         => ''
  174.           ),
  175.           array(
  176.             'value'       => '2',
  177.             'label'       => 'Right Sidebar',
  178.             'src'         => ''
  179.           ),
  180.           array(
  181.             'value'       => 'no_sidebar',
  182.             'label'       => 'No Sidebar',
  183.             'src'         => ''
  184.           )
  185.         )
  186.       ),
  187.       array(
  188.         'id'          => 'hs_sidebarshop',
  189.         'label'       => 'Shop Sidebar',
  190.         'desc'        => 'Select sidebar position for product listing',
  191.         'std'         => '',
  192.         'type'        => 'select',
  193.         'section'     => 'general',
  194.         'rows'        => '',
  195.         'post_type'   => '',
  196.         'taxonomy'    => '',
  197.         'min_max_step'=> '',
  198.         'class'       => '',
  199.         'condition'   => '',
  200.         'operator'    => 'and',
  201.         'choices'     => array(
  202.           array(
  203.             'value'       => '1',
  204.             'label'       => 'Left Sidebar',
  205.             'src'         => ''
  206.           ),
  207.           array(
  208.             'value'       => '2',
  209.             'label'       => 'Right Sidebar',
  210.             'src'         => ''
  211.           ),
  212.           array(
  213.             'value'       => 'no_sidebar',
  214.             'label'       => 'No Sidebar',
  215.             'src'         => ''
  216.           )
  217.         )
  218.       ),
  219.       array(
  220.         'id'          => 'share_text',
  221.         'label'       => 'Share text in product page',
  222.         'desc'        => '',
  223.         'std'         => 'Hard to decide? Ask your friends',
  224.         'type'        => 'text',
  225.         'section'     => 'general',
  226.         'rows'        => '',
  227.         'post_type'   => '',
  228.         'taxonomy'    => '',
  229.         'min_max_step'=> '',
  230.         'class'       => '',
  231.         'condition'   => '',
  232.         'operator'    => 'and'
  233.       ),
  234.       array(
  235.         'id'          => 'hs_homefeat',
  236.         'label'       => 'Homepage Featured Products',
  237.         'desc'        => 'Featured products title',
  238.         'std'         => '',
  239.         'type'        => 'text',
  240.         'section'     => 'general',
  241.         'rows'        => '',
  242.         'post_type'   => '',
  243.         'taxonomy'    => '',
  244.         'min_max_step'=> '',
  245.         'class'       => '',
  246.         'condition'   => '',
  247.         'operator'    => 'and'
  248.       ),
  249.       array(
  250.         'id'          => 'hs_homefeatno',
  251.         'label'       => 'Number of Featured Products',
  252.         'desc'        => 'Number of featured products you want to display on homepage',
  253.         'std'         => '9',
  254.         'type'        => 'text',
  255.         'section'     => 'general',
  256.         'rows'        => '',
  257.         'post_type'   => '',
  258.         'taxonomy'    => '',
  259.         'min_max_step'=> '',
  260.         'class'       => '',
  261.         'condition'   => '',
  262.         'operator'    => 'and'
  263.       ),
  264.       array(
  265.         'id'          => 'hs_zoom',
  266.         'label'       => 'Zoom Effect',
  267.         'desc'        => 'Option for zoom effect for product listing on homepage and shop page. Check to disable',
  268.         'std'         => '',
  269.         'type'        => 'checkbox',
  270.         'section'     => 'general',
  271.         'rows'        => '',
  272.         'post_type'   => '',
  273.         'taxonomy'    => '',
  274.         'min_max_step'=> '',
  275.         'class'       => '',
  276.         'condition'   => '',
  277.         'operator'    => 'and',
  278.         'choices'     => array(
  279.           array(
  280.             'value'       => 'true',
  281.             'label'       => 'Disable',
  282.             'src'         => ''
  283.           )
  284.         )
  285.       ),
  286.       array(
  287.         'id'          => 'hs_announcement',
  288.         'label'       => 'Announcement',
  289.         'desc'        => 'This section sit at footer area, beside payment method icons. You can insert greeting, promotion, announcement, testimoni or anything here. HTML is allowed.',
  290.         'std'         => '',
  291.         'type'        => 'textarea',
  292.         'section'     => 'general',
  293.         'rows'        => '',
  294.         'post_type'   => '',
  295.         'taxonomy'    => '',
  296.         'min_max_step'=> '',
  297.         'class'       => '',
  298.         'condition'   => '',
  299.         'operator'    => 'and'
  300.       ),
  301.       array(
  302.         'id'          => 'hs_background',
  303.         'label'       => 'Body Background',
  304.         'desc'        => 'Custom your background look',
  305.         'std'         => '',
  306.         'type'        => 'background',
  307.         'section'     => 'color',
  308.         'rows'        => '',
  309.         'post_type'   => '',
  310.         'taxonomy'    => '',
  311.         'min_max_step'=> '',
  312.         'class'       => '',
  313.         'condition'   => '',
  314.         'operator'    => 'and'
  315.       ),
  316.       array(
  317.         'id'          => 'hs_link',
  318.         'label'       => 'Body link color',
  319.         'desc'        => 'Choose default link color for body',
  320.         'std'         => '#E55137',
  321.         'type'        => 'colorpicker',
  322.         'section'     => 'color',
  323.         'rows'        => '',
  324.         'post_type'   => '',
  325.         'taxonomy'    => '',
  326.         'min_max_step'=> '',
  327.         'class'       => '',
  328.         'condition'   => '',
  329.         'operator'    => 'and'
  330.       ),
  331.       array(
  332.         'id'          => 'hs_panel',
  333.         'label'       => 'Main panel color',
  334.         'desc'        => 'Select color for main panel',
  335.         'std'         => '#FFFFFF',
  336.         'type'        => 'colorpicker',
  337.         'section'     => 'color',
  338.         'rows'        => '',
  339.         'post_type'   => '',
  340.         'taxonomy'    => '',
  341.         'min_max_step'=> '',
  342.         'class'       => '',
  343.         'condition'   => '',
  344.         'operator'    => 'and'
  345.       ),
  346.       array(
  347.         'id'          => 'hs_headpanel',
  348.         'label'       => 'Header panel color',
  349.         'desc'        => 'Select head panel color (page title section)',
  350.         'std'         => '#F2F2F2',
  351.         'type'        => 'colorpicker',
  352.         'section'     => 'color',
  353.         'rows'        => '',
  354.         'post_type'   => '',
  355.         'taxonomy'    => '',
  356.         'min_max_step'=> '',
  357.         'class'       => '',
  358.         'condition'   => '',
  359.         'operator'    => 'and'
  360.       ),
  361.       array(
  362.         'id'          => 'hs_line',
  363.         'label'       => 'Border color',
  364.         'desc'        => 'Select default border line color',
  365.         'std'         => '#DDDDDD',
  366.         'type'        => 'colorpicker',
  367.         'section'     => 'color',
  368.         'rows'        => '',
  369.         'post_type'   => '',
  370.         'taxonomy'    => '',
  371.         'min_max_step'=> '',
  372.         'class'       => '',
  373.         'condition'   => '',
  374.         'operator'    => 'and'
  375.       ),
  376.       array(
  377.         'id'          => 'hs_footerbg',
  378.         'label'       => 'Footer background color',
  379.         'desc'        => 'Select you footer background color',
  380.         'std'         => '',
  381.         'type'        => 'background',
  382.         'section'     => 'color',
  383.         'rows'        => '',
  384.         'post_type'   => '',
  385.         'taxonomy'    => '',
  386.         'min_max_step'=> '',
  387.         'class'       => '',
  388.         'condition'   => '',
  389.         'operator'    => 'and'
  390.       ),
  391.       array(
  392.         'id'          => 'hs_footerfont',
  393.         'label'       => 'Footer font color',
  394.         'desc'        => 'Choose default color for texts in footer.',
  395.         'std'         => '#777777',
  396.         'type'        => 'colorpicker',
  397.         'section'     => 'color',
  398.         'rows'        => '',
  399.         'post_type'   => '',
  400.         'taxonomy'    => '',
  401.         'min_max_step'=> '',
  402.         'class'       => '',
  403.         'condition'   => '',
  404.         'operator'    => 'and'
  405.       ),
  406.       array(
  407.         'id'          => 'hs_footerlink',
  408.         'label'       => 'Footer link color',
  409.         'desc'        => 'Choose font color for link in footer.',
  410.         'std'         => '#bbbbbb',
  411.         'type'        => 'colorpicker',
  412.         'section'     => 'color',
  413.         'rows'        => '',
  414.         'post_type'   => '',
  415.         'taxonomy'    => '',
  416.         'min_max_step'=> '',
  417.         'class'       => '',
  418.         'condition'   => '',
  419.         'operator'    => 'and'
  420.       ),
  421.       array(
  422.         'id'          => 'hs_footerline',
  423.         'label'       => 'Footer border line color',
  424.         'desc'        => 'Select footer border line color',
  425.         'std'         => '#333333',
  426.         'type'        => 'colorpicker',
  427.         'section'     => 'color',
  428.         'rows'        => '',
  429.         'post_type'   => '',
  430.         'taxonomy'    => '',
  431.         'min_max_step'=> '',
  432.         'class'       => '',
  433.         'condition'   => '',
  434.         'operator'    => 'and'
  435.       ),
  436.       array(
  437.         'id'          => 'hs_zoombg',
  438.         'label'       => 'Zoom effect background color',
  439.         'desc'        => 'Zoom in effect background color. Default is cream, else skip to use default color.',
  440.         'std'         => '',
  441.         'type'        => 'colorpicker',
  442.         'section'     => 'color',
  443.         'rows'        => '',
  444.         'post_type'   => '',
  445.         'taxonomy'    => '',
  446.         'min_max_step'=> '',
  447.         'class'       => '',
  448.         'condition'   => '',
  449.         'operator'    => 'and'
  450.       ),
  451.       array(
  452.         'id'          => 'hs_css',
  453.         'label'       => 'Additional CSS',
  454.         'desc'        => 'Enter your additional css here (optional)',
  455.         'std'         => '',
  456.         'type'        => 'css',
  457.         'section'     => 'color',
  458.         'rows'        => '',
  459.         'post_type'   => '',
  460.         'taxonomy'    => '',
  461.         'min_max_step'=> '',
  462.         'class'       => '',
  463.         'condition'   => '',
  464.         'operator'    => 'and'
  465.       ),
  466.       array(
  467.         'id'          => 'hs_add1',
  468.         'label'       => 'Address 1',
  469.         'desc'        => 'First row address',
  470.         'std'         => '',
  471.         'type'        => 'text',
  472.         'section'     => 'shopdetails',
  473.         'rows'        => '',
  474.         'post_type'   => '',
  475.         'taxonomy'    => '',
  476.         'min_max_step'=> '',
  477.         'class'       => '',
  478.         'condition'   => '',
  479.         'operator'    => 'and'
  480.       ),
  481.       array(
  482.         'id'          => 'hs_add2',
  483.         'label'       => 'Address 2',
  484.         'desc'        => 'Second row address',
  485.         'std'         => '',
  486.         'type'        => 'text',
  487.         'section'     => 'shopdetails',
  488.         'rows'        => '',
  489.         'post_type'   => '',
  490.         'taxonomy'    => '',
  491.         'min_max_step'=> '',
  492.         'class'       => '',
  493.         'condition'   => '',
  494.         'operator'    => 'and'
  495.       ),
  496.       array(
  497.         'id'          => 'hs_town',
  498.         'label'       => 'Town/City',
  499.         'desc'        => 'Town/City',
  500.         'std'         => '',
  501.         'type'        => 'text',
  502.         'section'     => 'shopdetails',
  503.         'rows'        => '',
  504.         'post_type'   => '',
  505.         'taxonomy'    => '',
  506.         'min_max_step'=> '',
  507.         'class'       => '',
  508.         'condition'   => '',
  509.         'operator'    => 'and'
  510.       ),
  511.       array(
  512.         'id'          => 'hs_zip',
  513.         'label'       => 'Postcode/ZIP',
  514.         'desc'        => 'Postcode/ZIP',
  515.         'std'         => '',
  516.         'type'        => 'text',
  517.         'section'     => 'shopdetails',
  518.         'rows'        => '',
  519.         'post_type'   => '',
  520.         'taxonomy'    => '',
  521.         'min_max_step'=> '',
  522.         'class'       => '',
  523.         'condition'   => '',
  524.         'operator'    => 'and'
  525.       ),
  526.       array(
  527.         'id'          => 'hs_country',
  528.         'label'       => 'Country',
  529.         'desc'        => 'Country',
  530.         'std'         => '',
  531.         'type'        => 'text',
  532.         'section'     => 'shopdetails',
  533.         'rows'        => '',
  534.         'post_type'   => '',
  535.         'taxonomy'    => '',
  536.         'min_max_step'=> '',
  537.         'class'       => '',
  538.         'condition'   => '',
  539.         'operator'    => 'and'
  540.       ),
  541.       array(
  542.         'id'          => 'hs_phone',
  543.         'label'       => 'Phone No',
  544.         'desc'        => 'Phone number',
  545.         'std'         => '',
  546.         'type'        => 'text',
  547.         'section'     => 'shopdetails',
  548.         'rows'        => '',
  549.         'post_type'   => '',
  550.         'taxonomy'    => '',
  551.         'min_max_step'=> '',
  552.         'class'       => '',
  553.         'condition'   => '',
  554.         'operator'    => 'and'
  555.       ),
  556.       array(
  557.         'id'          => 'hs_fax',
  558.         'label'       => 'Fax No',
  559.         'desc'        => 'Fax number',
  560.         'std'         => '',
  561.         'type'        => 'text',
  562.         'section'     => 'shopdetails',
  563.         'rows'        => '',
  564.         'post_type'   => '',
  565.         'taxonomy'    => '',
  566.         'min_max_step'=> '',
  567.         'class'       => '',
  568.         'condition'   => '',
  569.         'operator'    => 'and'
  570.       ),
  571.       array(
  572.         'id'          => 'hs_email',
  573.         'label'       => 'Email',
  574.         'desc'        => 'Email address',
  575.         'std'         => '',
  576.         'type'        => 'text',
  577.         'section'     => 'shopdetails',
  578.         'rows'        => '',
  579.         'post_type'   => '',
  580.         'taxonomy'    => '',
  581.         'min_max_step'=> '',
  582.         'class'       => '',
  583.         'condition'   => '',
  584.         'operator'    => 'and'
  585.       ),
  586.       array(
  587.         'id'          => 'hs_bank',
  588.         'label'       => 'Payment Option',
  589.         'desc'        => 'Select payment method logos you want to display at the footer.',
  590.         'std'         => '',
  591.         'type'        => 'checkbox',
  592.         'section'     => 'shopdetails',
  593.         'rows'        => '',
  594.         'post_type'   => '',
  595.         'taxonomy'    => '',
  596.         'min_max_step'=> '',
  597.         'class'       => '',
  598.         'condition'   => '',
  599.         'operator'    => 'and',
  600.         'choices'     => array(
  601.           array(
  602.             'value'       => 'amex',
  603.             'label'       => 'American Express',
  604.             'src'         => ''
  605.           ),
  606.           array(
  607.             'value'       => 'mastercard',
  608.             'label'       => 'MasterCard',
  609.             'src'         => ''
  610.           ),
  611.           array(
  612.             'value'       => 'visa',
  613.             'label'       => 'Visa',
  614.             'src'         => ''
  615.           ),
  616.           array(
  617.             'value'       => 'paypal',
  618.             'label'       => 'Paypal',
  619.             'src'         => ''
  620.           ),
  621.           array(
  622.             'value'       => 'cirrus',
  623.             'label'       => 'Cirrus',
  624.             'src'         => ''
  625.           ),
  626.           array(
  627.             'value'       => 'delta',
  628.             'label'       => 'Deltad',
  629.             'src'         => ''
  630.           ),
  631.           array(
  632.             'value'       => 'direct-debit',
  633.             'label'       => 'Direct Debit',
  634.             'src'         => ''
  635.           ),
  636.           array(
  637.             'value'       => 'discover',
  638.             'label'       => 'Discoverd',
  639.             'src'         => ''
  640.           ),
  641.           array(
  642.             'value'       => 'ebay',
  643.             'label'       => 'Ebay',
  644.             'src'         => ''
  645.           ),
  646.           array(
  647.             'value'       => 'google',
  648.             'label'       => 'Google Checkout',
  649.             'src'         => ''
  650.           ),
  651.           array(
  652.             'value'       => 'maestro',
  653.             'label'       => 'Maestro',
  654.             'src'         => ''
  655.           ),
  656.           array(
  657.             'value'       => 'moneybookers',
  658.             'label'       => 'Moneybookers',
  659.             'src'         => ''
  660.           ),
  661.           array(
  662.             'value'       => 'sagepay',
  663.             'label'       => 'Sagepay',
  664.             'src'         => ''
  665.           ),
  666.           array(
  667.             'value'       => 'solo',
  668.             'label'       => 'Solo',
  669.             'src'         => ''
  670.           ),
  671.           array(
  672.             'value'       => 'switch',
  673.             'label'       => 'Switch',
  674.             'src'         => ''
  675.           ),
  676.           array(
  677.             'value'       => 'visaelectron',
  678.             'label'       => 'Visa Electron',
  679.             'src'         => ''
  680.           ),
  681.           array(
  682.             'value'       => 'twocheckout',
  683.             'label'       => '2checkout',
  684.             'src'         => ''
  685.           ),
  686.           array(
  687.             'value'       => 'westernunion',
  688.             'label'       => 'Western Union',
  689.             'src'         => ''
  690.           )
  691.         )
  692.       ),
  693.       array(
  694.         'id'          => 'hs_slider',
  695.         'label'       => 'Slider',
  696.         'desc'        => 'Add slider for front page',
  697.         'std'         => '',
  698.         'type'        => 'list-item',
  699.         'section'     => 'slider',
  700.         'rows'        => '',
  701.         'post_type'   => '',
  702.         'taxonomy'    => '',
  703.         'min_max_step'=> '',
  704.         'class'       => '',
  705.         'condition'   => '',
  706.         'operator'    => 'and',
  707.         'settings'    => array(
  708.           array(
  709.             'id'          => 'hs_slideimage',
  710.             'label'       => 'Image',
  711.             'desc'        => 'Upload your banner image <em>(recommended size 940x400)</em>',
  712.             'std'         => '',
  713.             'type'        => 'upload',
  714.             'rows'        => '',
  715.             'post_type'   => '',
  716.             'taxonomy'    => '',
  717.             'min_max_step'=> '',
  718.             'class'       => '',
  719.             'condition'   => '',
  720.             'operator'    => 'and'
  721.           ),
  722.           array(
  723.             'id'          => 'hs_slidelink',
  724.             'label'       => 'Link',
  725.             'desc'        => 'Insert link for the banner',
  726.             'std'         => '',
  727.             'type'        => 'text',
  728.             'rows'        => '',
  729.             'post_type'   => '',
  730.             'taxonomy'    => '',
  731.             'min_max_step'=> '',
  732.             'class'       => '',
  733.             'condition'   => '',
  734.             'operator'    => 'and'
  735.           ),
  736.           array(
  737.             'id'          => 'hs_slidetext',
  738.             'label'       => 'Additional Text',
  739.             'desc'        => 'Insert short text for the banner. HTML is allowed',
  740.             'std'         => '',
  741.             'type'        => 'textarea',
  742.             'rows'        => '',
  743.             'post_type'   => '',
  744.             'taxonomy'    => '',
  745.             'min_max_step'=> '',
  746.             'class'       => '',
  747.             'condition'   => '',
  748.             'operator'    => 'and'
  749.           )
  750.         )
  751.       ),
  752.       array(
  753.         'id'          => 'hs_slider_fontsize',
  754.         'label'       => 'Slider Font Size',
  755.         'desc'        => 'Size for logo text',
  756.         'std'         => '',
  757.         'type'        => 'measurement',
  758.         'section'     => 'slider',
  759.         'rows'        => '',
  760.         'post_type'   => '',
  761.         'taxonomy'    => '',
  762.         'min_max_step'=> '',
  763.         'class'       => '',
  764.         'condition'   => '',
  765.         'operator'    => 'and'
  766.       ),
  767.       array(
  768.         'id'          => 'hs_slider_fontgoogle',
  769.         'label'       => 'Slider Body Google Font',
  770.         'desc'        => 'If you decided to use Google Font, just insert the font name here. Leave form blank if you want to use default fonts selected above.',
  771.         'std'         => '',
  772.         'type'        => 'text',
  773.         'section'     => 'slider',
  774.         'rows'        => '',
  775.         'post_type'   => '',
  776.         'taxonomy'    => '',
  777.         'min_max_step'=> '',
  778.         'class'       => '',
  779.         'condition'   => '',
  780.         'operator'    => 'and'
  781.       ),
  782.       array(
  783.         'id'          => 'hs_slider_button_text',
  784.         'label'       => 'Slider Button Text',
  785.         'desc'        => '',
  786.         'std'         => '',
  787.         'type'        => 'text',
  788.         'section'     => 'slider',
  789.         'rows'        => '',
  790.         'post_type'   => '',
  791.         'taxonomy'    => '',
  792.         'min_max_step'=> '',
  793.         'class'       => '',
  794.         'condition'   => '',
  795.         'operator'    => 'and'
  796.       ),
  797.       /* array(
  798.         'id'          => 'hs_slider_fonts_caption',
  799.         'label'       => 'Slider Caption Fonts',
  800.         'desc'        => 'Default font setting. If you want to use this font-family, clear form for Body Google Font below.',
  801.         'std'         => '',
  802.         'type'        => 'typography',
  803.         'section'     => 'slider',
  804.         'rows'        => '',
  805.         'post_type'   => '',
  806.         'taxonomy'    => '',
  807.         'min_max_step'=> '',
  808.         'class'       => '',
  809.         'condition'   => '',
  810.         'operator'    => 'and'
  811.       ),*/
  812.       array(
  813.         'id'          => 'hs_slidercarousel',
  814.         'label'       => 'Slider carousel',
  815.         'desc'        => 'Carousel option for slider in front page. Only nicely fit window if you have more than 5 sliders',
  816.         'std'         => '0',
  817.         'type'        => 'checkbox',
  818.         'section'     => 'slider',
  819.         'rows'        => '',
  820.         'post_type'   => '',
  821.         'taxonomy'    => '',
  822.         'min_max_step'=> '',
  823.         'class'       => '',
  824.         'condition'   => '',
  825.         'operator'    => 'and',
  826.         'choices'     => array(
  827.           array(
  828.             'value'       => 'true',
  829.             'label'       => 'Enable',
  830.             'src'         => ''
  831.           )
  832.         )
  833.       ),
  834.        
  835.       array(
  836.         'id'          => 'hs_banner',
  837.         'label'       => 'Promo Banner',
  838.         'desc'        => 'Check if you want to enable promo banner',
  839.         'std'         => '',
  840.         'type'        => 'checkbox',
  841.         'section'     => 'slider',
  842.         'rows'        => '',
  843.         'post_type'   => '',
  844.         'taxonomy'    => '',
  845.         'min_max_step'=> '',
  846.         'class'       => '',
  847.         'condition'   => '',
  848.         'operator'    => 'and',
  849.         'choices'     => array(
  850.           array(
  851.             'value'       => 'true',
  852.             'label'       => 'Enable',
  853.             'src'         => ''
  854.           )
  855.         )
  856.       ),
  857.       array(
  858.         'id'          => 'hs_promos',
  859.         'label'       => 'Promo Banners',
  860.         'desc'        => 'Upload promo banners, recommended is <strong>3 banners</strong>',
  861.         'std'         => '',
  862.         'type'        => 'list-item',
  863.         'section'     => 'slider',
  864.         'rows'        => '',
  865.         'post_type'   => '',
  866.         'taxonomy'    => '',
  867.         'min_max_step'=> '',
  868.         'class'       => '',
  869.         'condition'   => '',
  870.         'operator'    => 'and',
  871.         'settings'    => array(
  872.           array(
  873.             'id'          => 'hs_bannerimg',
  874.             'label'       => 'Banner image',
  875.             'desc'        => 'Upload your promo banner. Recommended size is 260x140',
  876.             'std'         => '',
  877.             'type'        => 'upload',
  878.             'rows'        => '',
  879.             'post_type'   => '',
  880.             'taxonomy'    => '',
  881.             'min_max_step'=> '',
  882.             'class'       => '',
  883.             'condition'   => '',
  884.             'operator'    => 'and'
  885.           ),
  886.           array(
  887.             'id'          => 'hs_bannerlink',
  888.             'label'       => 'Banner Link',
  889.             'desc'        => 'Insert URL for promo link',
  890.             'std'         => '',
  891.             'type'        => 'text',
  892.             'rows'        => '',
  893.             'post_type'   => '',
  894.             'taxonomy'    => '',
  895.             'min_max_step'=> '',
  896.             'class'       => '',
  897.             'condition'   => '',
  898.             'operator'    => 'and'
  899.           )
  900.         )
  901.       ),
  902.       array(
  903.         'id'          => 'hs_brand',
  904.         'label'       => 'Brands carousel',
  905.         'desc'        => 'Add Brands carousel title. Leave this field blank if you don\'t want to use this feature.',
  906.         'std'         => '',
  907.         'type'        => 'text',
  908.         'section'     => 'slider',
  909.         'rows'        => '',
  910.         'post_type'   => '',
  911.         'taxonomy'    => '',
  912.         'min_max_step'=> '',
  913.         'class'       => '',
  914.         'condition'   => '',
  915.         'operator'    => 'and'
  916.       ),
  917.       array(
  918.         'id'          => 'hs_brandlist',
  919.         'label'       => 'Brands Logo',
  920.         'desc'        => 'Add Brand your logos',
  921.         'std'         => '',
  922.         'type'        => 'list-item',
  923.         'section'     => 'slider',
  924.         'rows'        => '',
  925.         'post_type'   => '',
  926.         'taxonomy'    => '',
  927.         'min_max_step'=> '',
  928.         'class'       => '',
  929.         'condition'   => '',
  930.         'operator'    => 'and',
  931.         'settings'    => array(
  932.           array(
  933.             'id'          => 'hs_brandimage',
  934.             'label'       => 'Image',
  935.             'desc'        => 'Add Brand logo',
  936.             'std'         => '',
  937.             'type'        => 'upload',
  938.             'rows'        => '',
  939.             'post_type'   => '',
  940.             'taxonomy'    => '',
  941.             'min_max_step'=> '',
  942.             'class'       => '',
  943.             'condition'   => '',
  944.             'operator'    => 'and'
  945.           ),
  946.           array(
  947.             'id'          => 'hs_brandlink',
  948.             'label'       => 'Link',
  949.             'desc'        => 'Insert full path url, else leave it blank.',
  950.             'std'         => '',
  951.             'type'        => 'text',
  952.             'rows'        => '',
  953.             'post_type'   => '',
  954.             'taxonomy'    => '',
  955.             'min_max_step'=> '',
  956.             'class'       => '',
  957.             'condition'   => '',
  958.             'operator'    => 'and'
  959.           )
  960.         )
  961.       ),
  962.       array(
  963.         'id'          => 'facebook',
  964.         'label'       => 'Facebook',
  965.         'desc'        => 'Facebook user/page name',
  966.         'std'         => '',
  967.         'type'        => 'text',
  968.         'section'     => 'social',
  969.         'rows'        => '',
  970.         'post_type'   => '',
  971.         'taxonomy'    => '',
  972.         'min_max_step'=> '',
  973.         'class'       => '',
  974.         'condition'   => '',
  975.         'operator'    => 'and'
  976.       ),
  977.       array(
  978.         'id'          => 'twitter',
  979.         'label'       => 'Twitter',
  980.         'desc'        => 'Your twitter username',
  981.         'std'         => '',
  982.         'type'        => 'text',
  983.         'section'     => 'social',
  984.         'rows'        => '',
  985.         'post_type'   => '',
  986.         'taxonomy'    => '',
  987.         'min_max_step'=> '',
  988.         'class'       => '',
  989.         'condition'   => '',
  990.         'operator'    => 'and'
  991.       ),
  992.       array(
  993.         'id'          => 'gplus',
  994.         'label'       => 'Google Plus',
  995.         'desc'        => 'Your Google+ ID',
  996.         'std'         => '',
  997.         'type'        => 'text',
  998.         'section'     => 'social',
  999.         'rows'        => '',
  1000.         'post_type'   => '',
  1001.         'taxonomy'    => '',
  1002.         'min_max_step'=> '',
  1003.         'class'       => '',
  1004.         'condition'   => '',
  1005.         'operator'    => 'and'
  1006.       ),
  1007.       array(
  1008.         'id'          => 'pinterest',
  1009.         'label'       => 'Pinterest',
  1010.         'desc'        => 'Your pinterest username',
  1011.         'std'         => '',
  1012.         'type'        => 'text',
  1013.         'section'     => 'social',
  1014.         'rows'        => '',
  1015.         'post_type'   => '',
  1016.         'taxonomy'    => '',
  1017.         'min_max_step'=> '',
  1018.         'class'       => '',
  1019.         'condition'   => '',
  1020.         'operator'    => 'and'
  1021.       ),
  1022.       array(
  1023.         'id'          => 'tumblr',
  1024.         'label'       => 'Tumblr',
  1025.         'desc'        => 'Your tumblr page url',
  1026.         'std'         => '',
  1027.         'type'        => 'text',
  1028.         'section'     => 'social',
  1029.         'rows'        => '',
  1030.         'post_type'   => '',
  1031.         'taxonomy'    => '',
  1032.         'min_max_step'=> '',
  1033.         'class'       => '',
  1034.         'condition'   => '',
  1035.         'operator'    => 'and'
  1036.       ),
  1037.       array(
  1038.         'id'          => 'instagram',
  1039.         'label'       => 'Instagram',
  1040.         'desc'        => 'Your instagram username',
  1041.         'std'         => '',
  1042.         'type'        => 'text',
  1043.         'section'     => 'social',
  1044.         'rows'        => '',
  1045.         'post_type'   => '',
  1046.         'taxonomy'    => '',
  1047.         'min_max_step'=> '',
  1048.         'class'       => '',
  1049.         'condition'   => '',
  1050.         'operator'    => 'and'
  1051.       )
  1052.     )
  1053.   );
  1054.  
  1055.   /* allow settings to be filtered before saving */
  1056.   $custom_settings = apply_filters( 'option_tree_settings_args', $custom_settings );
  1057.  
  1058.    if ( $saved_settings !== $custom_settings ) {
  1059.     update_option( 'option_tree_settings', $custom_settings );
  1060.   }
  1061.  
  1062. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement