Advertisement
downloadtaky

Option Panel mdframework

Mar 13th, 2013
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 51.08 KB | None | 0 0
  1. <?php
  2.  
  3. /**
  4.  
  5.  * A unique identifier is defined to store the options in the database and reference them from the theme.
  6.  
  7.  * By default it uses the theme name, in lowercase and without spaces, but this can be changed if needed.
  8.  
  9.  * If the identifier changes, it'll appear as if the options have been reset.
  10.  
  11.  */
  12.  
  13.  
  14.  
  15. function optionsframework_option_name() {
  16.  
  17.  
  18.  
  19.     // This gets the theme name from the stylesheet
  20.  
  21.     $themename = get_option( 'stylesheet' );
  22.  
  23.     $themename = preg_replace("/\W/", "_", strtolower($themename) );
  24.  
  25.  
  26.  
  27.     $optionsframework_settings = get_option( 'optionsframework' );
  28.  
  29.     $optionsframework_settings['id'] = $themename;
  30.  
  31.     update_option( 'optionsframework', $optionsframework_settings );
  32.  
  33. }
  34.  
  35.  
  36.  
  37. /**
  38.  
  39.  * Defines an array of options that will be used to generate the settings page and be saved in the database.
  40.  
  41.  * When creating the 'id' fields, make sure to use all lowercase and no spaces.
  42.  
  43.  *
  44.  
  45.  * If you are making your theme translatable, you should replace 'mdframework'
  46.  
  47.  * with the actual text domain for your theme.  Read more:
  48.  
  49.  * http://codex.wordpress.org/Function_Reference/load_theme_textdomain
  50.  
  51.  */
  52.  
  53.  
  54.  
  55. function optionsframework_options() {
  56.  
  57.     $typography_mixed_fonts = array_merge( options_typography_get_os_fonts() , options_typography_get_google_fonts() );
  58.     asort($typography_mixed_fonts);
  59.  
  60.     // Test data and basic data
  61.  
  62.     $template_select_array = array(
  63.    
  64.         'blog' =>__('Blog', 'mdframework'),
  65.        
  66.         'hotel'=>__('Hotel', 'mdframework'),
  67.        
  68.         'forum'=>__('Forum', 'mdframework'),
  69.        
  70.         'ecommerce'=>__('eCommerce', 'mdframework')
  71.        
  72.     );
  73.    
  74.     $test_array = array(
  75.  
  76.         'one' => __('One', 'mdframework'),
  77.  
  78.         'two' => __('Two', 'mdframework'),
  79.  
  80.         'three' => __('Three', 'mdframework'),
  81.  
  82.         'four' => __('Four', 'mdframework'),
  83.  
  84.         'five' => __('Five', 'mdframework')
  85.  
  86.     );
  87.    
  88.     $slide_array = array(
  89.  
  90.         '0' => __('0', 'mdframework'),
  91.        
  92.         '1' => __('1', 'mdframework'),
  93.  
  94.         '2' => __('2', 'mdframework'),
  95.  
  96.         '3' => __('3', 'mdframework'),
  97.  
  98.         '4' => __('4', 'mdframework'),
  99.  
  100.         '5' => __('5', 'mdframework')
  101.  
  102.     );
  103.  
  104.     // Multicheck Array
  105.  
  106.     $multicheck_array = array(
  107.  
  108.         'one' => __('French Toast', 'mdframework'),
  109.  
  110.         'two' => __('Pancake', 'mdframework'),
  111.  
  112.         'three' => __('Omelette', 'mdframework'),
  113.  
  114.         'four' => __('Crepe', 'mdframework'),
  115.  
  116.         'five' => __('Waffle', 'mdframework')
  117.  
  118.     );
  119.  
  120.     // Multicheck Defaults
  121.  
  122.     $multicheck_defaults = array(
  123.  
  124.         'one' => '1',
  125.  
  126.         'five' => '1'
  127.  
  128.     );
  129.  
  130.     // Background Defaults
  131.  
  132.     $background_defaults = array(
  133.  
  134.         'color' => '',
  135.  
  136.         'image' => '',
  137.  
  138.         'repeat' => 'repeat',
  139.  
  140.         'position' => 'top center',
  141.  
  142.         'attachment'=>'scroll' );
  143.  
  144.     // Typography Defaults
  145.  
  146.     $typography_defaults = array(
  147.  
  148.         'size' => '15px',
  149.  
  150.         'face' => 'georgia',
  151.  
  152.         'style' => 'bold',
  153.  
  154.         'color' => '#bada55' );
  155.  
  156.     // Typography Options
  157.  
  158.     $typography_options = array(
  159.  
  160.         'sizes' => array( '6','12','14','16','20' ),
  161.  
  162.         'faces' => array( 'Helvetica Neue' => 'Helvetica Neue','Arial' => 'Arial' ),
  163.  
  164.         'styles' => array( 'normal' => 'Normal','bold' => 'Bold' ),
  165.  
  166.         'color' => false
  167.  
  168.     );
  169.  
  170.     // Pull all the categories into an array
  171.  
  172.     $options_categories = array();
  173.  
  174.     $options_categories_obj = get_categories();
  175.  
  176.     foreach ($options_categories_obj as $category) {
  177.  
  178.         $options_categories[$category->cat_ID] = $category->cat_name;
  179.  
  180.     }
  181.  
  182.     // Pull all tags into an array
  183.  
  184.     $options_tags = array();
  185.  
  186.     $options_tags_obj = get_tags();
  187.  
  188.     foreach ( $options_tags_obj as $tag ) {
  189.  
  190.         $options_tags[$tag->term_id] = $tag->name;
  191.  
  192.     }
  193.  
  194.     // Pull all the pages into an array
  195.  
  196.     $options_pages = array();
  197.  
  198.     $options_pages_obj = get_pages('sort_column=post_parent,menu_order');
  199.  
  200.     $options_pages[''] = 'Select a page:';
  201.  
  202.     foreach ($options_pages_obj as $page) {
  203.  
  204.         $options_pages[$page->ID] = $page->post_title;
  205.  
  206.     }
  207.  
  208.     // If using image radio buttons, define a directory path
  209.  
  210.     $imagepath =  get_template_directory_uri() . '/images/';
  211.  
  212.     $options = array();
  213.  
  214.     $options[] = array(
  215.  
  216.         'name' => __('Basic Settings', 'mdframework'),
  217.  
  218.         'type' => 'heading');
  219.  
  220. /*  $options[] = array(
  221.  
  222.         'name' => __('Input Text Mini', 'mdframework'),
  223.  
  224.         'desc' => __('A mini text input field.', 'mdframework'),
  225.  
  226.         'id' => 'example_text_mini',
  227.  
  228.         'std' => 'Default',
  229.  
  230.         'class' => 'mini',
  231.  
  232.         'type' => 'text');
  233.  
  234.     $options[] = array(
  235.  
  236.         'name' => __('Textarea', 'mdframework'),
  237.  
  238.         'desc' => __('Textarea description.', 'mdframework'),
  239.  
  240.         'id' => 'example_textarea',
  241.  
  242.         'std' => 'Default Text',
  243.  
  244.         'type' => 'textarea');
  245.  
  246.     $options[] = array(
  247.  
  248.         'name' => __('Input Select Small', 'mdframework'),
  249.  
  250.         'desc' => __('Small Select Box.', 'mdframework'),
  251.  
  252.         'id' => 'example_select',
  253.  
  254.         'std' => 'three',
  255.  
  256.         'type' => 'select',
  257.  
  258.         'class' => 'mini', //mini, tiny, small
  259.  
  260.         'options' => $test_array);
  261. */
  262.     $options[] = array(
  263.  
  264.         'name' => __('Choose and upload a Favicon', 'mdframework'),
  265.  
  266.         'desc' => __('Upload a Favicon, recommended size = 36px*36px.', 'mdframework'),
  267.  
  268.         'id' => 'favicon_normal',
  269.        
  270.         'std' => get_template_directory_uri().'/images/true.png',
  271.  
  272.         'type' => 'upload');
  273.        
  274.     $options[] = array(
  275.  
  276.         'name' => __('iPhone and Apple Stuff Favicon', 'mdframework'),
  277.  
  278.         'desc' => __('Upload a Favicon specific for iPhone and Apple Products, recommended size = 57px*57px.', 'mdframework'),
  279.  
  280.         'id' => 'favicon_apple',
  281.        
  282.         'std' => get_template_directory_uri().'/images/true.png',
  283.  
  284.         'type' => 'upload');
  285.  
  286.     $options[] = array(
  287.  
  288.         'name' => __('Choose your SiteWide Template', 'mdframework'),
  289.  
  290.         'desc' => __('Choose your website style.', 'mdframework'),
  291.  
  292.         'id' => 'select_sitewide_template',
  293.  
  294.         'std' => 'blog',
  295.        
  296.         'class' => 'mini',
  297.  
  298.         'type' => 'select',
  299.  
  300.         'options' => $template_select_array);
  301.  
  302. /*
  303.     if ($options_tags) {
  304.  
  305.     $options[] = array(
  306.  
  307.         'name' => __('Select a Tag', 'options_check'),
  308.  
  309.         'desc' => __('Passed an array of tags with term_id and term_name', 'options_check'),
  310.  
  311.         'id' => 'example_select_tags',
  312.  
  313.         'type' => 'select',
  314.  
  315.         'options' => $options_tags);
  316.  
  317.     }
  318.  
  319.     $options[] = array(
  320.  
  321.         'name' => __('Select a Page', 'mdframework'),
  322.  
  323.         'desc' => __('Passed an pages with ID and post_title', 'mdframework'),
  324.  
  325.         'id' => 'example_select_pages',
  326.  
  327.         'type' => 'select',
  328.  
  329.         'options' => $options_pages);
  330.  
  331.     $options[] = array(
  332.  
  333.         'name' => __('Input Radio (one)', 'mdframework'),
  334.  
  335.         'desc' => __('Radio select with default options "one".', 'mdframework'),
  336.  
  337.         'id' => 'example_radio',
  338.  
  339.         'std' => 'one',
  340.  
  341.         'type' => 'radio',
  342.  
  343.         'options' => $test_array);
  344.  
  345.     $options[] = array(
  346.  
  347.         'name' => __('Input Checkbox', 'mdframework'),
  348.  
  349.         'desc' => __('Example checkbox, defaults to true.', 'mdframework'),
  350.  
  351.         'id' => 'example_checkbox',
  352.  
  353.         'std' => '1',
  354.  
  355.         'type' => 'checkbox');*/
  356.  
  357.     $options[] = array(
  358.  
  359.         'name' => __('Color Settings', 'mdframework'),
  360.  
  361.         'type' => 'heading');
  362.  
  363.     $options[] = array(
  364.  
  365.         'name' => __('Colorpicker Body Background', 'mdframework'),
  366.  
  367.         'desc' => __('No color selected by default.', 'mdframework'),
  368.  
  369.         'id' => 'colorpicker_body_background',
  370.  
  371.         'std' => '',
  372.  
  373.         'type' => 'color' );
  374.  
  375.     $options[] = array(
  376.  
  377.         'name' => __('Colorpicker Header', 'mdframework'),
  378.  
  379.         'desc' => __('No color selected by default.', 'mdframework'),
  380.  
  381.         'id' => 'colorpicker_header',
  382.  
  383.         'std' => '',
  384.  
  385.         'type' => 'color' );
  386.  
  387.    
  388.  
  389.     $options[] = array(
  390.  
  391.         'name' => __('Colorpicker Top Menu', 'mdframework'),
  392.  
  393.         'desc' => __('No color selected by default.', 'mdframework'),
  394.  
  395.         'id' => 'colorpicker_top_menu',
  396.  
  397.         'std' => '',
  398.  
  399.         'type' => 'color' );
  400.  
  401.        
  402.  
  403.     $options[] = array(
  404.  
  405.         'name' => __('Colorpicker Content', 'mdframework'),
  406.  
  407.         'desc' => __('No color selected by default.', 'mdframework'),
  408.  
  409.         'id' => 'colorpicker_content',
  410.  
  411.         'std' => '',
  412.  
  413.         'type' => 'color' );
  414.  
  415.        
  416.  
  417.     $options[] = array(
  418.  
  419.         'name' => __('Colorpicker Post', 'mdframework'),
  420.  
  421.         'desc' => __('No color selected by default.', 'mdframework'),
  422.  
  423.         'id' => 'colorpicker_post',
  424.  
  425.         'std' => '',
  426.  
  427.         'type' => 'color' );
  428.  
  429.        
  430.  
  431.     $options[] = array(
  432.  
  433.         'name' => __('Colorpicker Sidebar', 'mdframework'),
  434.  
  435.         'desc' => __('No color selected by default.', 'mdframework'),
  436.  
  437.         'id' => 'colorpicker_sidebar',
  438.  
  439.         'std' => '',
  440.  
  441.         'type' => 'color' );
  442.  
  443.        
  444.  
  445.     $options[] = array(
  446.  
  447.         'name' => __('Colorpicker Footer', 'mdframework'),
  448.  
  449.         'desc' => __('No color selected by default.', 'mdframework'),
  450.  
  451.         'id' => 'colorpicker_footer',
  452.  
  453.         'std' => '',
  454.  
  455.         'type' => 'color' );
  456.  
  457.        
  458.  
  459.     $options[] = array(
  460.  
  461.         'name' => __('Advanced Settings', 'mdframework'),
  462.  
  463.         'type' => 'heading');
  464.  
  465.  
  466.  
  467. /*  $options[] = array(
  468.  
  469.         'name' => __('Uploader Test', 'mdframework'),
  470.  
  471.         'desc' => __('This creates a full size uploader that previews the image.', 'mdframework'),
  472.  
  473.         'id' => 'example_uploader',
  474.  
  475.         'type' => 'upload');*/
  476.  
  477.    
  478.  
  479.     $options[] = array(
  480.  
  481.         'name' =>__('Choose your Layout'),
  482.  
  483.         'desc' =>__('Choose how to compose your Header.'),
  484.  
  485.         'id' => "seleziona_testata",
  486.  
  487.         'std' => "tdx-ysx",
  488.  
  489.         'type' => "images",
  490.  
  491.         'options' => array(
  492.  
  493.             'tdx-ysx' => $imagepath . 'tdxy.png',
  494.  
  495.             'total' => $imagepath . 'total.png',           
  496.  
  497.             'tsx-ydx' => $imagepath . 'tsxy.png')
  498.  
  499.     );
  500.  
  501.    
  502.  
  503.     $options[] = array(
  504.  
  505.         'name' =>__('Choose your Layout'),
  506.  
  507.         'desc' =>__('Choose where or not place the sidebar.'),
  508.  
  509.         'id' => "example_images",
  510.  
  511.         'std' => "duecolsdx",
  512.  
  513.         'type' => "images",
  514.  
  515.         'options' => array(
  516.  
  517.             'duecolssx' => $imagepath . '2cl.png',
  518.  
  519.             'unacol' => $imagepath . '1col.png',           
  520.  
  521.             'duecolsdx' => $imagepath . '2cr.png',
  522.  
  523.             'trecol' => $imagepath . '3col.png'
  524.  
  525.             )
  526.  
  527.     );
  528.  
  529.    
  530.  
  531.     $options[] = array(
  532.  
  533.         'name' =>__('Choose your Footer'),
  534.  
  535.         'desc' =>__('Choose how to compose your footer.'),
  536.  
  537.         'id' => "seleziona_footer",
  538.  
  539.         'std' => "fs-youd",
  540.  
  541.         'type' => "images",
  542.  
  543.         'options' => array(
  544.  
  545.             'fs-youd' => $imagepath . 'tdxy.png',
  546.  
  547.             'totalfoot' => $imagepath . 'total.png',
  548.  
  549.             'fd-yous' => $imagepath . 'tsxy.png',
  550.  
  551.             'footer-3' => $imagepath . 'footer3.png'
  552.  
  553.             )
  554.  
  555.     );
  556.  
  557.         $options[] = array(
  558.  
  559.         'name' =>__('Choose your Home Grid Style'),
  560.  
  561.         'desc' =>__('Choose how to compose Home Grid.'),
  562.  
  563.         'id' => "selezione_grid",
  564.  
  565.         'std' => "33grid",
  566.  
  567.         'type' => "images",
  568.  
  569.         'options' => array(
  570.  
  571.             '33grid' => $imagepath . '33grid.png',
  572.  
  573.             'noe33grid' => $imagepath . 'noe33grid.png',
  574.  
  575.             'nogridmiddle' => $imagepath . 'nogridmiddle.png',
  576.  
  577.             '33grideno' => $imagepath . '33grideno.png',
  578.  
  579.             'nogrid' => $imagepath . 'nogrid.png',
  580.  
  581.             'nogvertical' => $imagepath . 'nogvertical.png',
  582.  
  583.             'biggrid' => $imagepath . 'biggrid.png'
  584.  
  585.             )
  586.  
  587.     );
  588.  
  589.  
  590.  
  591.     $options[] = array(
  592.  
  593.         'name' =>  __('Example Background', 'mdframework'),
  594.  
  595.         'desc' => __('Change the background CSS.', 'mdframework'),
  596.  
  597.         'id' => 'example_background',
  598.  
  599.         'std' => $background_defaults,
  600.  
  601.         'type' => 'background' );
  602.  
  603.  
  604.  
  605.     $options[] = array(
  606.  
  607.         'name' => __('Multicheck', 'mdframework'),
  608.  
  609.         'desc' => __('Multicheck description.', 'mdframework'),
  610.  
  611.         'id' => 'example_multicheck',
  612.  
  613.         'std' => $multicheck_defaults, // These items get checked by default
  614.  
  615.         'type' => 'multicheck',
  616.  
  617.         'options' => $multicheck_array);
  618.  
  619.  
  620.     $options[] = array(
  621.  
  622.         'name' => __('Colorpicker', 'mdframework'),
  623.  
  624.         'desc' => __('No color selected by default.', 'mdframework'),
  625.  
  626.         'id' => 'example_colorpicker',
  627.  
  628.         'std' => '',
  629.  
  630.         'type' => 'color' );
  631. /*
  632.        
  633.  
  634.     $options[] = array( 'name' => __('Typography', 'mdframework'),
  635.  
  636.         'desc' => __('Example typography.', 'mdframework'),
  637.  
  638.         'id' => "example_typography",
  639.  
  640.         'std' => $typography_defaults,
  641.  
  642.         'type' => 'typography' );
  643.  
  644.        
  645.  
  646.     $options[] = array(
  647.  
  648.         'name' => __('Custom Typography', 'mdframework'),
  649.  
  650.         'desc' => __('Custom typography options.', 'mdframework'),
  651.  
  652.         'id' => "custom_typography",
  653.  
  654.         'std' => $typography_defaults,
  655.  
  656.         'type' => 'typography',
  657.  
  658.         'options' => $typography_options );
  659.  
  660.  
  661.  
  662.     /*  $options[] = array(
  663.  
  664.         'name' => __('Text Editor', 'mdframework'),
  665.  
  666.         'type' => 'heading' );
  667.  
  668. */
  669.  
  670.     /**
  671.  
  672.      * For $settings options see:
  673.  
  674.      * http://codex.wordpress.org/Function_Reference/wp_editor
  675.  
  676.      *
  677.  
  678.      * 'media_buttons' are not supported as there is no post to attach items to
  679.  
  680.      * 'textarea_name' is set by the 'id' you choose
  681.  
  682.      */
  683.  
  684.  
  685.  
  686.     /* 
  687.  
  688.     $wp_editor_settings = array(
  689.  
  690.         'wpautop' => true, // Default
  691.  
  692.         'textarea_rows' => 5,
  693.  
  694.         'media_buttons' => true,
  695.  
  696.         'tinymce' => array( 'plugins' => 'wordpress' )
  697.  
  698.     );
  699.  
  700.    
  701.  
  702.     $options[] = array(
  703.  
  704.         'name' => __('Default Text Editor', 'mdframework'),
  705.  
  706.         'desc' => sprintf( __( 'You can also pass settings to the editor.  Read more about wp_editor in <a href="%1$s" target="_blank">the WordPress codex</a>', 'mdframework' ), 'http://codex.wordpress.org/Function_Reference/wp_editor' ),
  707.  
  708.         'id' => 'example_editor',
  709.  
  710.         'type' => 'editor',
  711.  
  712.         'settings' => $wp_editor_settings );
  713.  
  714.         */
  715.  
  716. /* Hotel Options HomePage*/
  717.  
  718.     $options[] = array(
  719.  
  720.         'name' => __('Hotel Style HomePage', 'mdframework'),
  721.  
  722.         'type' => 'heading');
  723.  
  724.    
  725.  
  726.     $options[] = array(
  727.  
  728.         'name' => __('What does this panel do?', 'mdframework'),
  729.  
  730.         'desc' => __('This panel is here to help you configure <code>Home Hotel Style</code> page template.', 'mdframework'),
  731.  
  732.         'type' => 'info');
  733.  
  734.        
  735.  
  736.     $options[] = array(
  737.  
  738.         'name' => __('SEO PART', 'mdframework'),
  739.  
  740.         'desc' => __('Configure <code>Home Hotel Style</code> page template Basic SEO sections.', 'mdframework'),
  741.  
  742.         'type' => 'info'); 
  743.  
  744.    
  745.  
  746.     $options[] = array(
  747.  
  748.         'name' => __('Check to start configuring SEO for this template', 'mdframework'),
  749.  
  750.         'desc' => __('Click here to activate it.', 'mdframework'),
  751.  
  752.         'id' => 'seo_showhidden',
  753.  
  754.         'type' => 'checkbox');
  755.  
  756.        
  757.  
  758.     $options[] = array(
  759.  
  760.         'name' => __('Titolo Pagina', 'mdframework'),
  761.  
  762.         'desc' => __('Insert here your <code>Home Hotel Style</code> template specific title tag.', 'mdframework'),
  763.  
  764.         'id' => 'meta_tag_title_home_hotel_style',
  765.  
  766.         'std' => 'Page Title',
  767.  
  768.         'class' => 'hidden',
  769.  
  770.         'type' => 'text');
  771.  
  772.        
  773.  
  774.     $options[] = array(
  775.  
  776.         'name' => __('Meta Tag KeyWord', 'mdframework'),
  777.  
  778.         'desc' => __('Insert here your Keyword MetaTag only for <code>Home Hotel Style</code> template.', 'mdframework'),
  779.  
  780.         'id' => 'meta_tag_keyword_home_hotel_style',
  781.  
  782.         'std' => 'MetaTag Keyword',
  783.  
  784.         'class' => 'hidden',
  785.  
  786.         'type' => 'text'); 
  787.  
  788.        
  789.  
  790.     $options[] = array(
  791.  
  792.         'name' => __('Meta Tag Description', 'mdframework'),
  793.  
  794.         'desc' => __('Insert here your Description MetaTag only for <code>Home Hotel Style</code> template.', 'mdframework'),
  795.  
  796.         'id' => 'meta_tag_description_home_hotel_style',
  797.  
  798.         'std' => 'MetaTag Description',
  799.  
  800.         'class' => 'hidden',
  801.  
  802.         'type' => 'text');
  803.  
  804.    
  805.  
  806.     $options[] = array(
  807.  
  808.         'name' => __('Meta Tag Copyright', 'mdframework'),
  809.  
  810.         'desc' => __('Insert here your <code>Home Hotel Style</code> template copyright info.', 'mdframework'),
  811.  
  812.         'id' => 'meta_tag_copyright_home_hotel_style',
  813.  
  814.         'std' => 'MetaTag CopyRight',
  815.  
  816.         'class' => 'mini', //mini, tiny, small
  817.  
  818.         'class' => 'hidden',
  819.  
  820.         'type' => 'text');
  821.  
  822.        
  823.  
  824.     $options[] = array(
  825.  
  826.         'name' => __('Meta Tag Author', 'mdframework'),
  827.  
  828.         'desc' => __('Insert here your <code>Home Hotel Style</code> template Author Tag.', 'mdframework'),
  829.  
  830.         'id' => 'meta_tag_author_home_hotel_style',
  831.  
  832.         'std' => 'MetaTag Author',
  833.  
  834.         'class' => 'mini', //mini, tiny, small
  835.  
  836.         'class' => 'hidden',
  837.  
  838.         'type' => 'text');
  839.  
  840.        
  841.  
  842.     $rating_array = array(
  843.  
  844.         'general' => __('General', 'mdframework'),
  845.  
  846.         'mature' => __('Mature', 'mdframework'),
  847.  
  848.         'restricted' => __('Restricted', 'mdframework')
  849.  
  850.     );
  851.  
  852.    
  853.  
  854.     $options[] = array(
  855.  
  856.         'name' => __('Meta Tag Rating', 'mdframework'),
  857.  
  858.         'desc' => __('Choose your rating only for <code>Home Hotel Style</code> template.', 'mdframework'),
  859.  
  860.         'id' => 'rating_select',
  861.  
  862.         'std' => 'General',
  863.  
  864.         'type' => 'select',
  865.  
  866.         'class' => 'mini', //mini, tiny, small
  867.  
  868.         'class' => 'hidden',
  869.  
  870.         'options' => $rating_array);
  871.  
  872.        
  873.  
  874.     $options[] = array(
  875.  
  876.         'name' => __('HEADER PART', 'mdframework'),
  877.  
  878.         'desc' => __('Configure <code>Home Hotel Style</code> page template <code>HEADER</code> Section.', 'mdframework'),
  879.  
  880.         'type' => 'info'); 
  881.  
  882.        
  883.  
  884.     $options[] = array(
  885.  
  886.         'name' =>__('Choose your Header Layout'),
  887.  
  888.         'desc' =>__('Choose how to compose your Header. Title + Slide, Slide + Title or 100% Slide'),
  889.  
  890.         'id' => "seleziona_testata_hotel",
  891.  
  892.         'std' => "hotel-tdx-ysx",
  893.  
  894.         'type' => "images",    
  895.  
  896.         'options' => array(
  897.  
  898.             'full-slide' => $imagepath . 'fullslide.jpg',
  899.  
  900.             'hotel-tdx-ysx' => $imagepath . 'tdxy.png',
  901.  
  902.             /*'total' => $imagepath . 'total.png',*/
  903.  
  904.             'hotel-tsx-ydx' => $imagepath . 'tsxy.png')
  905.  
  906.     );
  907.  
  908.    
  909.  
  910.     $options[] = array(
  911.  
  912.         'name' => __('Check if you want a slideshow on this page', 'mdframework'),
  913.  
  914.         'desc' => __('Click here to activate it.', 'mdframework'),
  915.  
  916.         'id' => 'example_showhidden',
  917.  
  918.         'type' => 'checkbox');
  919.  
  920.    
  921.  
  922.     $options[] = array(
  923.  
  924.         'name' => __('First Image', 'mdframework'),
  925.  
  926.         'desc' => __('Upload first image of your slideshow.', 'mdframework'),
  927.  
  928.         'id' => 'showhidden_slide_img_1',
  929.  
  930.         'class' => 'hidden',
  931.  
  932.         'type' => 'upload');
  933.  
  934.        
  935.  
  936.     $options[] = array(
  937.  
  938.         'name' => __('Alt & Title Tag for First Image', 'mdframework'),
  939.  
  940.         'desc' => __('Insert here Alt & Title Tag for First Image.', 'mdframework'),
  941.  
  942.         'id' => 'alt_title_tag_slide_1',
  943.  
  944.         'std' => 'Image Description',
  945.  
  946.         'class' => 'mini', //mini, tiny, small
  947.  
  948.         'class' => 'hidden',
  949.  
  950.         'type' => 'text');
  951.  
  952.    
  953.  
  954.     $options[] = array(
  955.  
  956.         'name' => __('Second Image', 'mdframework'),
  957.  
  958.         'desc' => __('Upload Second image of your slideshow.', 'mdframework'),
  959.  
  960.         'id' => 'showhidden_slide_img_2',
  961.  
  962.         'class' => 'hidden',
  963.  
  964.         'type' => 'upload');
  965.  
  966.        
  967.  
  968.     $options[] = array(
  969.  
  970.         'name' => __('Alt & Title Tag for First Image', 'mdframework'),
  971.  
  972.         'desc' => __('Insert here Alt & Title Tag for First Image.', 'mdframework'),
  973.  
  974.         'id' => 'alt_title_tag_slide_2',
  975.  
  976.         'std' => 'Image Description',
  977.  
  978.         'class' => 'mini', //mini, tiny, small
  979.  
  980.         'class' => 'hidden',
  981.  
  982.         'type' => 'text');
  983.  
  984.        
  985.  
  986.     $options[] = array(
  987.  
  988.         'name' => __('Third Image', 'mdframework'),
  989.  
  990.         'desc' => __('Upload Third image of your slideshow.', 'mdframework'),
  991.  
  992.         'id' => 'showhidden_slide_img_3',
  993.  
  994.         'class' => 'hidden',
  995.  
  996.         'type' => 'upload');
  997.  
  998.        
  999.  
  1000.     $options[] = array(
  1001.  
  1002.         'name' => __('Alt & Title Tag for First Image', 'mdframework'),
  1003.  
  1004.         'desc' => __('Insert here Alt & Title Tag for First Image.', 'mdframework'),
  1005.  
  1006.         'id' => 'alt_title_tag_slide_3',
  1007.  
  1008.         'std' => 'Image Description',
  1009.  
  1010.         'class' => 'mini', //mini, tiny, small
  1011.  
  1012.         'class' => 'hidden',
  1013.  
  1014.         'type' => 'text');
  1015.  
  1016.        
  1017.  
  1018.     $options[] = array(
  1019.  
  1020.         'name' => __('Fourth Image', 'mdframework'),
  1021.  
  1022.         'desc' => __('Upload Fourth image of your slideshow.', 'mdframework'),
  1023.  
  1024.         'id' => 'showhidden_slide_img_4',
  1025.  
  1026.         'class' => 'hidden',
  1027.  
  1028.         'type' => 'upload');
  1029.  
  1030.        
  1031.  
  1032.     $options[] = array(
  1033.  
  1034.         'name' => __('Alt & Title Tag for First Image', 'mdframework'),
  1035.  
  1036.         'desc' => __('Insert here Alt & Title Tag for First Image.', 'mdframework'),
  1037.  
  1038.         'id' => 'alt_title_tag_slide_4',
  1039.  
  1040.         'std' => 'Image Description',
  1041.  
  1042.         'class' => 'mini', //mini, tiny, small
  1043.  
  1044.         'class' => 'hidden',
  1045.  
  1046.         'type' => 'text');
  1047.  
  1048.        
  1049.  
  1050.     $options[] = array(
  1051.  
  1052.         'name' => __('Fifth Image', 'mdframework'),
  1053.  
  1054.         'desc' => __('Upload Fifth image of your slideshow.', 'mdframework'),
  1055.  
  1056.         'id' => 'showhidden_slide_img_5',
  1057.  
  1058.         'class' => 'hidden',
  1059.  
  1060.         'type' => 'upload');
  1061.  
  1062.        
  1063.  
  1064.     $options[] = array(
  1065.  
  1066.         'name' => __('Alt & Title Tag for First Image', 'mdframework'),
  1067.  
  1068.         'desc' => __('Insert here Alt & Title Tag for First Image.', 'mdframework'),
  1069.  
  1070.         'id' => 'alt_title_tag_slide_5',
  1071.  
  1072.         'std' => 'Image Description',
  1073.  
  1074.         'class' => 'mini', //mini, tiny, small
  1075.  
  1076.         'class' => 'hidden',
  1077.  
  1078.         'type' => 'text');
  1079.  
  1080.        
  1081.  
  1082.     $options[] = array(
  1083.  
  1084.         'name' => __('Or... insert a Youtube Video', 'mdframework'),
  1085.  
  1086.         'desc' => __('Just place here your YouTube video URL, something like:<code>http://youtu.be/k0HW_1_dsRg</code>.', 'mdframework'),
  1087.  
  1088.         'id' => 'youtube_link',
  1089.  
  1090.         'std' => 'http://youtu.be/k0HW_1_dsRg',
  1091.  
  1092.         'class' => 'mini', //mini, tiny, small
  1093.  
  1094.         'type' => 'text');
  1095.  
  1096.    
  1097.  
  1098.     $options_autoplay = array(
  1099.  
  1100.         '1' => __('Yes', 'mdframework'),
  1101.  
  1102.         '0' => __('No', 'mdframework')
  1103.  
  1104.     );
  1105.  
  1106.    
  1107.  
  1108.     $options[] = array(
  1109.  
  1110.         'name' => __('Would you like to have autoplay?', 'mdframework'),
  1111.  
  1112.         'desc' => __('Choose if you want Autoplay activated in your YouTube Video', 'mdframework'),
  1113.  
  1114.         'id' => 'autoplay_youtube',
  1115.  
  1116.         'type' => 'select',
  1117.  
  1118.         'class' => 'mini',
  1119.  
  1120.         'options' => $options_autoplay);
  1121.  
  1122.     /*
  1123.  
  1124.     $options[] = array(
  1125.  
  1126.         'name' => __('Hidden Text Input', 'mdframework'),
  1127.  
  1128.         'desc' => __('This option is hidden unless activated by a checkbox click.', 'mdframework'),
  1129.  
  1130.         'id' => 'example_text_hidden',
  1131.  
  1132.         'std' => 'Hello',
  1133.  
  1134.         'class' => 'hidden',
  1135.  
  1136.         'type' => 'text');
  1137.  
  1138.     */
  1139.  
  1140.     $options[] = array(
  1141.  
  1142.         'name' => __('CENTER PART', 'mdframework'),
  1143.  
  1144.         'desc' => __('Configure <code>Home Hotel Style</code> page template <code>CENTER</code> Section.', 'mdframework'),
  1145.  
  1146.         'type' => 'info'); 
  1147.  
  1148.    
  1149.  
  1150.     $options[] = array(
  1151.  
  1152.         'name' => __('Check to start customizing the CENTER PART', 'mdframework'),
  1153.  
  1154.         'desc' => __('Click here to activate it.', 'mdframework'),
  1155.  
  1156.         'id' => 'center_showhidden',
  1157.  
  1158.         'type' => 'checkbox');
  1159.  
  1160.    
  1161.  
  1162.     $options[] = array(
  1163.  
  1164.         'name' => __('First Image on the left', 'mdframework'),
  1165.  
  1166.         'desc' => __('Upload First Image on your left in first center part.', 'mdframework'),
  1167.  
  1168.         'id' => 'first_image_left',
  1169.  
  1170.         'class' => 'hidden',
  1171.  
  1172.         'type' => 'upload');
  1173.  
  1174.        
  1175.  
  1176.     $options[] = array(
  1177.  
  1178.         'name' => __('Alt & Title Tag for First Image', 'mdframework'),
  1179.  
  1180.         'desc' => __('Insert here Alt & Title Tag for First Image.', 'mdframework'),
  1181.  
  1182.         'id' => 'alt_title_tag_first_image',
  1183.  
  1184.         'std' => 'Image Description',
  1185.  
  1186.         'class' => 'mini', //mini, tiny, small
  1187.  
  1188.         'class' => 'hidden',
  1189.  
  1190.         'type' => 'text');
  1191.  
  1192.    
  1193.  
  1194.     $wp_editor_settings = array(
  1195.  
  1196.         'wpautop' => true, // Default
  1197.  
  1198.         'textarea_rows' => 4,
  1199.  
  1200.         'media_buttons' => true,
  1201.  
  1202.         'tinymce' => array( 'plugins' => 'wordpress' )
  1203.  
  1204.     );
  1205.  
  1206.    
  1207.  
  1208.     $options[] = array(
  1209.  
  1210.         'name' => __('First Area Content', 'mdframework'),
  1211.  
  1212.         'desc' => __( 'Write Here what you would like your visitors to see in the first area, you can also use some <code>HTML</code>','mdframework' ),
  1213.  
  1214.         'id' => 'first_area_hotel',
  1215.  
  1216.         'type' => 'editor',
  1217.  
  1218.         'class' => 'hidden',
  1219.  
  1220.         'settings' => $wp_editor_settings );
  1221.  
  1222.    
  1223.  
  1224.     $wp_editor_settings = array(
  1225.  
  1226.         'wpautop' => true, // Default
  1227.  
  1228.         'textarea_rows' => 4,
  1229.  
  1230.         'media_buttons' => true,
  1231.  
  1232.         'tinymce' => array( 'plugins' => 'wordpress' )
  1233.  
  1234.     );
  1235.  
  1236.    
  1237.  
  1238.     $options[] = array(
  1239.  
  1240.         'name' => __('Second Area Content', 'mdframework'),
  1241.  
  1242.         'desc' => __( 'Write Here what you would like your visitors to see in the second area, you can also use some <code>HTML</code>','mdframework' ),
  1243.  
  1244.         'id' => 'second_area_hotel',
  1245.  
  1246.         'type' => 'editor',
  1247.  
  1248.         'class' => 'hidden',
  1249.  
  1250.         'settings' => $wp_editor_settings );
  1251.  
  1252.        
  1253.  
  1254.     $options[] = array(
  1255.  
  1256.         'name' => __('Second Image on the right', 'mdframework'),
  1257.  
  1258.         'desc' => __('Upload Second Image this time on your right in second center part.', 'mdframework'),
  1259.  
  1260.         'id' => 'second_image_right',
  1261.  
  1262.         'class' => 'hidden',
  1263.  
  1264.         'type' => 'upload');
  1265.  
  1266.        
  1267.  
  1268.     $options[] = array(
  1269.  
  1270.         'name' => __('Alt & Title Tag for Second Image', 'mdframework'),
  1271.  
  1272.         'desc' => __('Insert here Alt & Title Tag for Second Image.', 'mdframework'),
  1273.  
  1274.         'id' => 'alt_title_tag_second_image',
  1275.  
  1276.         'std' => 'Image Description',
  1277.  
  1278.         'class' => 'mini', //mini, tiny, small
  1279.  
  1280.         'class' => 'hidden',
  1281.  
  1282.         'type' => 'text');
  1283.  
  1284.        
  1285.  
  1286.     $options[] = array(
  1287.  
  1288.         'name' => __('Third Area Content', 'mdframework'),
  1289.  
  1290.         'desc' => __( 'Write Here what you would like your visitors to see in the third area, you can also use some <code>HTML</code>','mdframework' ),
  1291.  
  1292.         'id' => 'third_area_hotel',
  1293.  
  1294.         'type' => 'editor',
  1295.  
  1296.         'class' => 'hidden',
  1297.  
  1298.         'settings' => $wp_editor_settings );
  1299.  
  1300.        
  1301.  
  1302.     $options[] = array(
  1303.  
  1304.         'name' => __('Third Image on the right', 'mdframework'),
  1305.  
  1306.         'desc' => __('Upload Third Image this time on your right in third center part.', 'mdframework'),
  1307.  
  1308.         'id' => 'third_image_right',
  1309.  
  1310.         'class' => 'hidden',
  1311.  
  1312.         'type' => 'upload');
  1313.  
  1314.        
  1315.  
  1316.     $options[] = array(
  1317.  
  1318.         'name' => __('Alt & Title Tag for Third Image', 'mdframework'),
  1319.  
  1320.         'desc' => __('Insert here Alt & Title Tag for Third Image.', 'mdframework'),
  1321.  
  1322.         'id' => 'alt_title_tag_third_image',
  1323.  
  1324.         'std' => 'Image Description',
  1325.  
  1326.         'class' => 'mini', //mini, tiny, small
  1327.  
  1328.         'class' => 'hidden',
  1329.  
  1330.         'type' => 'text');
  1331.  
  1332.        
  1333.  
  1334.     $options[] = array(
  1335.  
  1336.         'name' => __('FOOTER PART', 'mdframework'),
  1337.  
  1338.         'desc' => __('Configure <code>Home Hotel Style</code> page template <code>FOOTER</code> Section.', 'mdframework'),
  1339.  
  1340.         'type' => 'info'); 
  1341.  
  1342.  
  1343.  
  1344.     $options[] = array(
  1345.  
  1346.         'name' => __('Check to start customizing the FOOTER of this page', 'mdframework'),
  1347.  
  1348.         'desc' => __('Click here to activate it.', 'mdframework'),
  1349.  
  1350.         'id' => 'footer_showhidden',
  1351.  
  1352.         'type' => 'checkbox');
  1353.  
  1354.        
  1355.  
  1356.     $options[] = array(
  1357.  
  1358.         'name' => __('Select a Category to be Shown on the left', 'mdframework'),
  1359.  
  1360.         'desc' => __('On this particular page there are 3 spots choose how to fill the first one', 'mdframework'),
  1361.  
  1362.         'id' => 'hotel_footer_left',
  1363.  
  1364.         'type' => 'select',
  1365.  
  1366.         'class' => 'hidden',
  1367.  
  1368.         'options' => $options_categories);
  1369.  
  1370.    
  1371.  
  1372.     $options[] = array(
  1373.  
  1374.         'name' => __('Select a Category to be Shown in the middle', 'mdframework'),
  1375.  
  1376.         'desc' => __('On this particular page there are 3 spots choose how to fill the second one', 'mdframework'),
  1377.  
  1378.         'id' => 'hotel_footer_center',
  1379.  
  1380.         'type' => 'select',
  1381.  
  1382.         'class' => 'hidden',
  1383.  
  1384.         'options' => $options_categories);
  1385.  
  1386.        
  1387.  
  1388.     $options[] = array(
  1389.  
  1390.         'name' => __('Select a Category to be Shown on the right', 'mdframework'),
  1391.  
  1392.         'desc' => __('On this particular page there are 3 spots choose how to fill the third one', 'mdframework'),
  1393.  
  1394.         'id' => 'hotel_footer_right',
  1395.  
  1396.         'type' => 'select',
  1397.  
  1398.         'class' => 'hidden',
  1399.  
  1400.         'options' => $options_categories);
  1401.  
  1402.    
  1403.  
  1404.     $options[] = array(
  1405.  
  1406.         'name' => __('COLOR SECTION', 'mdframework'),
  1407.  
  1408.         'desc' => __('Configure <code>Home Hotel Style</code> page template <code>COLORS</code>.', 'mdframework'),
  1409.  
  1410.         'type' => 'info');
  1411.  
  1412.        
  1413.  
  1414.     $options[] = array(
  1415.  
  1416.         'name' => __('Check to start customizing COLORS of this page', 'mdframework'),
  1417.  
  1418.         'desc' => __('Click here to activate it.', 'mdframework'),
  1419.  
  1420.         'id' => 'colors_showhidden',
  1421.  
  1422.         'type' => 'checkbox');
  1423.  
  1424.        
  1425.  
  1426.     $options[] = array(
  1427.  
  1428.         'name' => __('Colorpicker Body Background', 'mdframework'),
  1429.  
  1430.         'desc' => __('Choose a color for for the whole background of <code>Home Hotel Style</code> page template.', 'mdframework'),
  1431.  
  1432.         'id' => 'hotel_colorpicker_body_background',
  1433.  
  1434.         'std' => '',
  1435.  
  1436.         'class' => 'hidden',
  1437.  
  1438.         'type' => 'color' );
  1439.  
  1440.        
  1441.  
  1442.     $options[] = array(
  1443.  
  1444.         'name' => __('Colorpicker Header Background', 'mdframework'),
  1445.  
  1446.         'desc' => __('Choose a color for for the <code>HEADER</code> background of <code>Home Hotel Style</code> page template.', 'mdframework'),
  1447.  
  1448.         'id' => 'hotel_colorpicker_header_background',
  1449.  
  1450.         'std' => '',
  1451.  
  1452.         'class' => 'hidden',
  1453.  
  1454.         'type' => 'color' );   
  1455.  
  1456.    
  1457.  
  1458.     $options[] = array(
  1459.  
  1460.         'name' => __('Colorpicker Content Background', 'mdframework'),
  1461.  
  1462.         'desc' => __('Choose a color for the <code>CONTENT</code> background of <code>Home Hotel Style</code> page template.', 'mdframework'),
  1463.  
  1464.         'id' => 'hotel_colorpicker_content_background',
  1465.  
  1466.         'std' => '',
  1467.  
  1468.         'class' => 'hidden',
  1469.  
  1470.         'type' => 'color' );
  1471.  
  1472.        
  1473.  
  1474.     $options[] = array(
  1475.  
  1476.         'name' => __('Colorpicker FirstArea Background', 'mdframework'),
  1477.  
  1478.         'desc' => __('Choose a color for the <code>FIRST AREA</code> background of <code>Home Hotel Style</code> page template.', 'mdframework'),
  1479.  
  1480.         'id' => 'hotel_colorpicker_first_area_background',
  1481.  
  1482.         'std' => '',
  1483.  
  1484.         'class' => 'hidden',
  1485.  
  1486.         'type' => 'color' );
  1487.  
  1488.    
  1489.  
  1490.     $options[] = array(
  1491.  
  1492.         'name' => __('Colorpicker SecondArea Background', 'mdframework'),
  1493.  
  1494.         'desc' => __('Choose a color for the <code>SECOND AREA</code> background of <code>Home Hotel Style</code> page template.', 'mdframework'),
  1495.  
  1496.         'id' => 'hotel_colorpicker_second_area_background',
  1497.  
  1498.         'std' => '',
  1499.  
  1500.         'class' => 'hidden',
  1501.  
  1502.         'type' => 'color' );
  1503.  
  1504.        
  1505.  
  1506.     $options[] = array(
  1507.  
  1508.         'name' => __('Colorpicker Footer Background', 'mdframework'),
  1509.  
  1510.         'desc' => __('Choose a color for for the <code>FOOTER</code> background of <code>Home Hotel Style</code> page template.', 'mdframework'),
  1511.  
  1512.         'id' => 'hotel_colorpicker_footer_background',
  1513.  
  1514.         'std' => '',
  1515.  
  1516.         'class' => 'hidden',
  1517.  
  1518.         'type' => 'color' );
  1519.  
  1520.        
  1521.  
  1522.     $options[] = array(
  1523.  
  1524.         'name' => __('Colorpicker Foot1 Background', 'mdframework'),
  1525.  
  1526.         'desc' => __('Choose a color for <code>FOOTER FIRST AREA</code> background of <code>Home Hotel Style</code> page template.', 'mdframework'),
  1527.  
  1528.         'id' => 'hotel_colorpicker_foot1_background',
  1529.  
  1530.         'std' => '',
  1531.  
  1532.         'class' => 'hidden',
  1533.  
  1534.         'type' => 'color' );
  1535.  
  1536.        
  1537.  
  1538.     $options[] = array(
  1539.  
  1540.         'name' => __('Colorpicker Foot2 Background', 'mdframework'),
  1541.  
  1542.         'desc' => __('Choose a color for <code>FOOTER SECOND AREA</code> background of <code>Home Hotel Style</code> page template.', 'mdframework'),
  1543.  
  1544.         'id' => 'hotel_colorpicker_foot2_background',
  1545.  
  1546.         'std' => '',
  1547.  
  1548.         'class' => 'hidden',
  1549.  
  1550.         'type' => 'color' );
  1551.  
  1552.        
  1553.  
  1554.     $options[] = array(
  1555.  
  1556.         'name' => __('Colorpicker Foot3 Background', 'mdframework'),
  1557.  
  1558.         'desc' => __('Choose a color for <code>FOOTER THIRD AREA</code> background of <code>Home Hotel Style</code> page template.', 'mdframework'),
  1559.  
  1560.         'id' => 'hotel_colorpicker_foot3_background',
  1561.  
  1562.         'std' => '',
  1563.  
  1564.         'class' => 'hidden',
  1565.  
  1566.         'type' => 'color' );
  1567.  
  1568.     /* Forum Homepage Option Panel */
  1569.        
  1570.     $options[] = array(
  1571.  
  1572.         'name' => __('Forum HomePage', 'mdframework'),
  1573.  
  1574.         'type' => 'heading');
  1575.  
  1576.     $options[] = array(
  1577.  
  1578.         'name' => __('What does this panel do?', 'mdframework'),
  1579.  
  1580.         'desc' => __('This panel is here to help you configure <code>Forum HomePage Style</code> page template.', 'mdframework'),
  1581.  
  1582.         'type' => 'info'); 
  1583.        
  1584.     $options[] = array(
  1585.  
  1586.         'name' => __('Upload an image to be used as Header instead of title and all this Wonderful SEO Stuff', 'mdframework'),
  1587.  
  1588.         'desc' => __('It will completely override all the text in Header, recommended size = 960px*300px.', 'mdframework'),
  1589.  
  1590.         'id' => 'instead_header_image',
  1591.        
  1592.         'std' => 'http://placekitten.com/960/300',
  1593.  
  1594.         'type' => 'upload');
  1595.        
  1596.     $options[] = array(
  1597.    
  1598.         'name' => __('Header Font','mdframework'),
  1599.        
  1600.         'desc' => __('Choose the Font For the Title.','mdframework'),
  1601.        
  1602.         'id' => 'head_font_forum',
  1603.        
  1604.         'std' => array( 'size' => '32px', 'face' => 'Georgia, serif', 'color' => '#f15081'),
  1605.        
  1606.         'type' => 'typography',
  1607.        
  1608.         'options' => array(
  1609.             'faces' => $typography_mixed_fonts,
  1610.             'styles' => false )
  1611.         );
  1612.        
  1613.     $options[] = array(
  1614.  
  1615.         'name' => __('Copy/Paste style code for the Selected Google font', 'mdframework'),
  1616.  
  1617.         'desc' => __('Please browse google.com/fonts and copy/paste the link to the stylesheet here.', 'mdframework'),
  1618.  
  1619.         'id' => 'google_fonts_css_link',
  1620.  
  1621.         'class' => 'small', //mini, tiny, small
  1622.  
  1623.         'type' => 'text');
  1624.        
  1625.     $options[] = array(
  1626.  
  1627.         'name' => __('Logo Image', 'mdframework'),
  1628.  
  1629.         'desc' => __('Upload logo image for Forum template, size = 200px*140px.', 'mdframework'),
  1630.  
  1631.         'id' => 'logo_image_forum',
  1632.        
  1633.         'std' => get_template_directory_uri().'/images/logo.jpg',
  1634.  
  1635.         'type' => 'upload');
  1636.  
  1637.     $options[] = array(
  1638.  
  1639.         'name' => __('Alt & Title Tag for Logo Image', 'mdframework'),
  1640.  
  1641.         'desc' => __('Insert here Alt & Title Tag for Logo Image.', 'mdframework'),
  1642.  
  1643.         'id' => 'logo_image_forum_alt',
  1644.  
  1645.         'std' => 'Image Description',
  1646.  
  1647.         'class' => 'mini', //mini, tiny, small
  1648.  
  1649.         'type' => 'text'); 
  1650.        
  1651. /*  $options[] = array(
  1652.  
  1653.         'name' => __('Second High Image', 'mdframework'),
  1654.  
  1655.         'desc' => __('Upload second image on top for Forum template, recommended size = 500px*140px.', 'mdframework'),
  1656.  
  1657.         'id' => 'second_top_image_forum',
  1658.        
  1659.         'std' => get_template_directory_uri().'/images/140.jpg',
  1660.  
  1661.         'type' => 'upload');
  1662.  
  1663.        
  1664.  
  1665.     $options[] = array(
  1666.  
  1667.         'name' => __('Alt & Title Tag for Second Top Image', 'mdframework'),
  1668.  
  1669.         'desc' => __('Insert here Alt & Title Tag for Second Top Image.', 'mdframework'),
  1670.  
  1671.         'id' => 'second_top_image_forum_alt',
  1672.  
  1673.         'std' => 'Image Description',
  1674.  
  1675.         'class' => 'mini', //mini, tiny, small
  1676.  
  1677.         'type' => 'text');
  1678. */     
  1679.  
  1680.         $options[] = array(
  1681.    
  1682.         'name' => __('Home Fonts','mdframework'),
  1683.        
  1684.         'desc' => __('Choose the Font that will be used as title on any sidebar.','mdframework'),
  1685.        
  1686.         'id' => 'home_side_font_forum',
  1687.        
  1688.         'std' => array( 'size' => '32px', 'face' => 'Georgia, serif', 'color' => '#f15081'),
  1689.        
  1690.         'type' => 'typography',
  1691.        
  1692.         'options' => array(
  1693.             'faces' => $typography_mixed_fonts,
  1694.             'styles' => false )
  1695.         );
  1696.        
  1697.         $options[] = array(
  1698.  
  1699.         'name' => __('Font Text Shadow', 'mdframework'),
  1700.  
  1701.         'desc' => __('Choose a text shadow color for fonts selected above.', 'mdframework'),
  1702.  
  1703.         'id' => 'text_shadow_font_home_side',
  1704.  
  1705.         'std' => '#E64E4E',
  1706.  
  1707.         'type' => 'color');        
  1708.        
  1709.         $options[] = array(
  1710.  
  1711.         'name' => __('Colorpicker Forum Menu', 'mdframework'),
  1712.  
  1713.         'desc' => __('Choose a color for <code>MENU BACKGROUND in FORUM TEMPLATE</code>.', 'mdframework'),
  1714.  
  1715.         'id' => 'forum_menu_background',
  1716.  
  1717.         'std' => '#111',
  1718.  
  1719.         'type' => 'color');
  1720.        
  1721.        
  1722.         $options[] = array(
  1723.  
  1724.         'name' => __('Colorpicker Forum Menu Sub-ITEM', 'mdframework'),
  1725.  
  1726.         'desc' => __('Choose a color for <code>MENU SUB-ITEM BACKGROUND in FORUM TEMPLATE</code>.', 'mdframework'),
  1727.  
  1728.         'id' => 'forum_menu_sub_item',
  1729.  
  1730.         'std' => '#111',
  1731.  
  1732.         'type' => 'color');
  1733.        
  1734.        
  1735.         $options[] = array(
  1736.  
  1737.         'name' => __('Colorpicker Forum Menu Sub-ITEM ACTIVE', 'mdframework'),
  1738.  
  1739.         'desc' => __('Choose a color for <code>MENU SUB-ITEM BACKGROUND when ACTIVE in FORUM TEMPLATE</code>.', 'mdframework'),
  1740.  
  1741.         'id' => 'forum_menu_sub_item_active',
  1742.  
  1743.         'std' => '#111',
  1744.  
  1745.         'type' => 'color');
  1746.        
  1747.        
  1748.         $options[] = array(
  1749.  
  1750.         'name' => __('Colorpicker Forum Menu Selected ITEM Background', 'mdframework'),
  1751.  
  1752.         'desc' => __('Choose a color for <code>SELECTED ITEM MENU BACKGROUND in FORUM TEMPLATE</code>.', 'mdframework'),
  1753.  
  1754.         'id' => 'forum_menu_selected_background',
  1755.  
  1756.         'std' => '#111',
  1757.  
  1758.         'type' => 'color');
  1759.        
  1760.        
  1761.         $options[] = array(
  1762.  
  1763.         'name' => __('Colorpicker Forum Menu Selected ITEM Background', 'mdframework'),
  1764.  
  1765.         'desc' => __('Choose a color for <code>SELECTED ITEM MENU BACKGROUND HOVER EFFECT in FORUM TEMPLATE</code>.', 'mdframework'),
  1766.  
  1767.         'id' => 'forum_menu_selected_background_hover',
  1768.  
  1769.         'std' => '#111',
  1770.  
  1771.         'type' => 'color');
  1772.        
  1773.        
  1774.         $options[] = array(
  1775.  
  1776.         'name' => __('Colorpicker Header Background', 'mdframework'),
  1777.  
  1778.         'desc' => __('Choose a color for <code>HEADER BACKGROUND in FORUM TEMPLATE</code>.', 'mdframework'),
  1779.  
  1780.         'id' => 'forum_header_background',
  1781.  
  1782.         'std' => '#111',
  1783.  
  1784.         'type' => 'color');
  1785.        
  1786.        
  1787.         $options[] = array(
  1788.  
  1789.         'name' => __('Colorpicker Forum Background', 'mdframework'),
  1790.  
  1791.         'desc' => __('Choose a color for <code>BACKGROUND in FORUM TEMPLATE</code>.', 'mdframework'),
  1792.  
  1793.         'id' => 'forum_background',
  1794.  
  1795.         'std' => '#111',
  1796.  
  1797.         'type' => 'color' );
  1798.        
  1799.        
  1800.         $options[] = array(
  1801.  
  1802.         'name' => __('Colorpicker Article Container', 'mdframework'),
  1803.  
  1804.         'desc' => __('Choose a color for <code>ARTICLE BACKGROUND in FORUM TEMPLATE</code>.', 'mdframework'),
  1805.  
  1806.         'id' => 'article_background',
  1807.  
  1808.         'std' => '#111',
  1809.  
  1810.         'type' => 'color' );
  1811.        
  1812.        
  1813.         $options[] = array(
  1814.  
  1815.         'name' => __('Colorpicker Article Title Background', 'mdframework'),
  1816.  
  1817.         'desc' => __('Choose a color for <code>ARTICLE TITLE BACKGROUND in FORUM TEMPLATE</code>.', 'mdframework'),
  1818.  
  1819.         'id' => 'article_title_background',
  1820.  
  1821.         'std' => '#111',
  1822.  
  1823.         'type' => 'color' );
  1824.        
  1825.        
  1826.         $options[] = array(
  1827.  
  1828.         'name' => __('Colorpicker First Sidebar Background', 'mdframework'),
  1829.  
  1830.         'desc' => __('Choose a color for <code>Widgets BACKGROUND in FORUM TEMPLATE</code>.', 'mdframework'),
  1831.  
  1832.         'id' => 'single_widget_background',
  1833.  
  1834.         'std' => '#111',
  1835.  
  1836.         'type' => 'color' );
  1837.        
  1838.        
  1839.         $options[] = array(
  1840.  
  1841.         'name' => __('Colorpicker Screenshot Sidebar Background', 'mdframework'),
  1842.  
  1843.         'desc' => __('Choose a color for <code>Screenshot Sidebar BACKGROUND in FORUM TEMPLATE</code>.', 'mdframework'),
  1844.  
  1845.         'id' => 'screenshot_sidebar_background',
  1846.  
  1847.         'std' => '#111',
  1848.  
  1849.         'type' => 'color' );
  1850.        
  1851.         $options[] = array(
  1852.  
  1853.         'name' => __('Colorpicker VideoClan Sidebar Background', 'mdframework'),
  1854.  
  1855.         'desc' => __('Choose a color for <code>VideoClan area BACKGROUND in FORUM TEMPLATE</code>.', 'mdframework'),
  1856.  
  1857.         'id' => 'videoclan_area_background',
  1858.  
  1859.         'std' => '#111',
  1860.  
  1861.         'type' => 'color' );
  1862.        
  1863.         $options[] = array(
  1864.  
  1865.         'name' => __('Colorpicker SlotNews Sidebar Background', 'mdframework'),
  1866.  
  1867.         'desc' => __('Choose a color for <code>SlotNews area BACKGROUND in FORUM TEMPLATE</code>.', 'mdframework'),
  1868.  
  1869.         'id' => 'slotnews_area_background',
  1870.  
  1871.         'std' => '#111',
  1872.  
  1873.         'type' => 'color' );
  1874.        
  1875.         $options[] = array(
  1876.  
  1877.         'name' => __('Colorpicker Footer Area Background', 'mdframework'),
  1878.  
  1879.         'desc' => __('Choose a color for <code>Footer area BACKGROUND in FORUM TEMPLATE</code>.', 'mdframework'),
  1880.  
  1881.         'id' => 'footer_area_background',
  1882.  
  1883.         'std' => '#111',
  1884.  
  1885.         'type' => 'color' );
  1886.        
  1887.         $options[] = array(
  1888.  
  1889.         'name' => __('Before Article Mini Logo', 'mdframework'),
  1890.  
  1891.         'desc' => __('Upload small logo before Article TITLE, recommended size = 36px*36px.', 'mdframework'),
  1892.  
  1893.         'id' => 'before_article_title_logo',
  1894.        
  1895.         'std' => get_template_directory_uri().'/images/true.png',
  1896.  
  1897.         'type' => 'upload');
  1898.  
  1899. /* Basic Settings for slideshows */    
  1900.         $options[] = array(
  1901.  
  1902.         'name' => __('Slideshow Area', 'mdframework'),
  1903.  
  1904.         'desc' => __("From now on you'll be asked to select settings for the slideshows.", 'mdframework'),
  1905.  
  1906.         'type' => 'info');
  1907.        
  1908.         $options[] = array(
  1909.  
  1910.         'name' => __('Choose whether or not show top slideshow', 'mdframework'),
  1911.  
  1912.         'desc' => __('Selected = Show, Not Selected = Hide.', 'mdframework'),
  1913.  
  1914.         'id' => 'show_top_slide_or_not',
  1915.  
  1916.         'type' => 'checkbox');
  1917.        
  1918.        
  1919.         $options[] = array(
  1920.         'name' => __('Choose how many slideshows would you like to have in HomePage', 'mdframework'),
  1921.         'desc' => __('Choose the number of slideshows to be shown in HomePage', 'mdframework'),
  1922.         'id' => 'slideshows_numbers',
  1923.         'std' => '3',
  1924.         'type' => 'radio',
  1925.         'class' => 'tiny',
  1926.         'options' => $slide_array);
  1927. /* End of basic settings for slideshows */
  1928.        
  1929.         $options[] = array(
  1930.  
  1931.         'name' => __('Select a Category to be Shown in TOP Slideshow', 'mdframework'),
  1932.  
  1933.         'desc' => __('Choose the category to be shown in the slideshow, remember to set all posts images as Thumbnail', 'mdframework'),
  1934.  
  1935.         'id' => 'top_slide_category_forum',
  1936.  
  1937.         'type' => 'select',
  1938.        
  1939.         'class' => 'mini',
  1940.  
  1941.         'options' => $options_categories);
  1942.        
  1943.        
  1944.         $options[] = array(
  1945.  
  1946.         'name' => __('Choose how many slides would you like to have in TOP slideshow', 'mdframework'),
  1947.  
  1948.         'desc' => __('Choose the number of slides to be shown in TOP slideshow', 'mdframework'),
  1949.  
  1950.         'id' => 'slide_number_top',
  1951.  
  1952.         'std' => '5',
  1953.  
  1954.         'type' => 'radio',
  1955.        
  1956.         'class' => 'tiny',
  1957.  
  1958.         'options' => $slide_array);
  1959.        
  1960.        
  1961.         $options[] = array(
  1962.  
  1963.         'name' => __('Would you like to skip some Posts? Choose the number here', 'mdframework'),
  1964.  
  1965.         'desc' => __('Choose the number of slides you would like to skip', 'mdframework'),
  1966.  
  1967.         'id' => 'slide_skip_top',
  1968.  
  1969.         'std' => '0',
  1970.        
  1971.         'class' => 'tiny',
  1972.  
  1973.         'type' => 'radio',
  1974.  
  1975.         'options' => $slide_array);
  1976.        
  1977.         $options[] = array(
  1978.  
  1979.         'name' => __('Select a Category to be Shown in First Slideshow', 'mdframework'),
  1980.  
  1981.         'desc' => __('Choose thecategory to be shown in the First slideshow, remember to set all posts images as Thumbnail', 'mdframework'),
  1982.  
  1983.         'id' => 'slide_category_forum_1',
  1984.  
  1985.         'type' => 'select',
  1986.        
  1987.         'class' => 'mini',
  1988.  
  1989.         'options' => $options_categories);
  1990.        
  1991.         $options[] = array(
  1992.  
  1993.         'name' => __('Choose how many slides would you like to have in First slideshow', 'mdframework'),
  1994.  
  1995.         'desc' => __('Choose the number of slides to be shown in First slideshow', 'mdframework'),
  1996.  
  1997.         'id' => 'number_slide_1',
  1998.  
  1999.         'std' => '5',
  2000.  
  2001.         'type' => 'radio',
  2002.        
  2003.         'class' => 'tiny',
  2004.  
  2005.         'options' => $slide_array);
  2006.        
  2007.         $options[] = array(
  2008.  
  2009.         'name' => __('Would you like to skip some Posts? Choose the number here', 'mdframework'),
  2010.  
  2011.         'desc' => __('Choose the number of slides you would like to skip', 'mdframework'),
  2012.  
  2013.         'id' => 'slide_skip_1',
  2014.  
  2015.         'std' => '0',
  2016.        
  2017.         'class' => 'tiny',
  2018.  
  2019.         'type' => 'radio',
  2020.  
  2021.         'options' => $slide_array);
  2022.        
  2023.         $options[] = array(
  2024.  
  2025.         'name' => __('Select a Category to be Shown in Second Slideshow', 'mdframework'),
  2026.  
  2027.         'desc' => __('Choose the category to be shown in Second slideshow, remember to set all posts images as Thumbnail', 'mdframework'),
  2028.  
  2029.         'id' => 'slide_category_forum_2',
  2030.  
  2031.         'type' => 'select',
  2032.        
  2033.         'class' => 'mini',
  2034.  
  2035.         'options' => $options_categories);
  2036.        
  2037.         $options[] = array(
  2038.  
  2039.         'name' => __('Choose how many slides would you like to have in second slideshow?', 'mdframework'),
  2040.  
  2041.         'desc' => __('Choose the number of slides to be shown in Second slideshow', 'mdframework'),
  2042.  
  2043.         'id' => 'number_slide_2',
  2044.  
  2045.         'std' => '5',
  2046.        
  2047.         'class' => 'tiny',
  2048.  
  2049.         'type' => 'radio',
  2050.  
  2051.         'options' => $slide_array);
  2052.        
  2053.         $options[] = array(
  2054.  
  2055.         'name' => __('Would you like to skip some Posts? choose the number here', 'mdframework'),
  2056.  
  2057.         'desc' => __('Choose the number of slides you would like to skip', 'mdframework'),
  2058.  
  2059.         'id' => 'slide_skip_2',
  2060.  
  2061.         'std' => '0',
  2062.        
  2063.         'class' => 'tiny',
  2064.  
  2065.         'type' => 'radio',
  2066.  
  2067.         'options' => $slide_array);
  2068.        
  2069.         $options[] = array(
  2070.  
  2071.         'name' => __('Select a Category to be Shown in Third Slideshow', 'mdframework'),
  2072.  
  2073.         'desc' => __('Choose the category to be shown in the Third slideshow, remember to set all posts images as Thumbnail', 'mdframework'),
  2074.  
  2075.         'id' => 'slide_category_forum_3',
  2076.  
  2077.         'type' => 'select',
  2078.        
  2079.         'class' => 'mini',
  2080.  
  2081.         'options' => $options_categories);
  2082.        
  2083.     $options[] = array(
  2084.  
  2085.         'name' => __('Choose how many slides would you like to have in Third slideshow', 'mdframework'),
  2086.  
  2087.         'desc' => __('Choose the number of slides to be shown in third slideshow', 'mdframework'),
  2088.  
  2089.         'id' => 'number_slide_3',
  2090.  
  2091.         'std' => '5',
  2092.  
  2093.         'type' => 'radio',
  2094.        
  2095.         'class' => 'tiny',
  2096.  
  2097.         'options' => $slide_array);
  2098.        
  2099.     $options[] = array(
  2100.  
  2101.         'name' => __('Would you like to skip some Posts? Choose the number here', 'mdframework'),
  2102.  
  2103.         'desc' => __('Choose the number of slides you would like to skip', 'mdframework'),
  2104.  
  2105.         'id' => 'slide_skip_3',
  2106.  
  2107.         'std' => '0',
  2108.        
  2109.         'class' => 'tiny',
  2110.  
  2111.         'type' => 'radio',
  2112.  
  2113.         'options' => $slide_array);
  2114.        
  2115.        
  2116.     $options[] = array(
  2117.  
  2118.         'name' => __('Select a Category to be Shown in Fourth Slideshow', 'mdframework'),
  2119.  
  2120.         'desc' => __('Choose the category to be shown in the Fourth slideshow, remember to set all posts images as Thumbnail', 'mdframework'),
  2121.  
  2122.         'id' => 'slide_category_forum_4',
  2123.  
  2124.         'type' => 'select',
  2125.        
  2126.         'class' => 'mini',
  2127.  
  2128.         'options' => $options_categories);
  2129.        
  2130.     $options[] = array(
  2131.  
  2132.         'name' => __('Choose how many slides would you like to have in Fourth slideshow', 'mdframework'),
  2133.  
  2134.         'desc' => __('Choose the number of slides to be shown in Fourth slideshow', 'mdframework'),
  2135.  
  2136.         'id' => 'number_slide_4',
  2137.  
  2138.         'std' => '5',
  2139.  
  2140.         'type' => 'radio',
  2141.        
  2142.         'class' => 'tiny',
  2143.  
  2144.         'options' => $slide_array);
  2145.        
  2146.     $options[] = array(
  2147.  
  2148.         'name' => __('Would you like to skip some Posts? Choose the number here', 'mdframework'),
  2149.  
  2150.         'desc' => __('Choose the number of slides you would like to skip', 'mdframework'),
  2151.  
  2152.         'id' => 'slide_skip_4',
  2153.  
  2154.         'std' => '0',
  2155.        
  2156.         'class' => 'tiny',
  2157.  
  2158.         'type' => 'radio',
  2159.  
  2160.         'options' => $slide_array);
  2161.        
  2162.    
  2163.     $options[] = array(
  2164.  
  2165.         'name' => __('Select a Category to be Shown in Fifth Slideshow', 'mdframework'),
  2166.  
  2167.         'desc' => __('Choose the category to be shown in the Fifth slideshow, remember to set all posts images as Thumbnail', 'mdframework'),
  2168.  
  2169.         'id' => 'slide_category_forum_5',
  2170.  
  2171.         'type' => 'select',
  2172.        
  2173.         'class' => 'mini',
  2174.  
  2175.         'options' => $options_categories);
  2176.        
  2177.     $options[] = array(
  2178.  
  2179.         'name' => __('Choose how many slides would you like to have in Fifth slideshow', 'mdframework'),
  2180.  
  2181.         'desc' => __('Choose the number of slides to be shown in Fifth slideshow', 'mdframework'),
  2182.  
  2183.         'id' => 'number_slide_5',
  2184.  
  2185.         'std' => '5',
  2186.  
  2187.         'type' => 'radio',
  2188.        
  2189.         'class' => 'tiny',
  2190.  
  2191.         'options' => $slide_array);
  2192.        
  2193.     $options[] = array(
  2194.  
  2195.         'name' => __('Would you like to skip some Posts? Choose the number here', 'mdframework'),
  2196.  
  2197.         'desc' => __('Choose the number of slides you would like to skip', 'mdframework'),
  2198.  
  2199.         'id' => 'slide_skip_5',
  2200.  
  2201.         'std' => '0',
  2202.        
  2203.         'class' => 'tiny',
  2204.  
  2205.         'type' => 'radio',
  2206.  
  2207.         'options' => $slide_array);
  2208.  
  2209.     $options[] = array(
  2210.  
  2211.         'name' => __('Low panels Area', 'mdframework'),
  2212.  
  2213.         'desc' => __("From now on you'll be asked to select settings for bottom panels.", 'mdframework'),
  2214.  
  2215.         'type' => 'info');
  2216.  
  2217.     $options[] = array(
  2218.  
  2219.         'name' => __('Select a Category to be Shown in Low Left Area', 'mdframework'),
  2220.  
  2221.         'desc' => __('Choose the category to be shown , remember to set all posts images as Thumbnail', 'mdframework'),
  2222.  
  2223.         'id' => 'low_left_category_forum',
  2224.  
  2225.         'type' => 'select',
  2226.        
  2227.         'class' => 'mini',
  2228.  
  2229.         'options' => $options_categories);
  2230.        
  2231.         $options[] = array(
  2232.  
  2233.         'name' => __('Choose how many posts would you like to have in this area', 'mdframework'),
  2234.  
  2235.         'desc' => __('Choose the number of posts to be shown', 'mdframework'),
  2236.  
  2237.         'id' => 'low_left_num_forum',
  2238.  
  2239.         'std' => '5',
  2240.        
  2241.         'class' => 'tiny',
  2242.  
  2243.         'type' => 'radio',
  2244.  
  2245.         'options' => $slide_array);
  2246.        
  2247.         $options[] = array(
  2248.  
  2249.         'name' => __('Would you like to skip some Posts? Choose the number here', 'mdframework'),
  2250.  
  2251.         'desc' => __('Choose the number of posts you would like to skip', 'mdframework'),
  2252.  
  2253.         'id' => 'low_left_offset_forum',
  2254.  
  2255.         'std' => '0',
  2256.        
  2257.         'class' => 'tiny',
  2258.  
  2259.         'type' => 'radio',
  2260.  
  2261.         'options' => $slide_array);
  2262.        
  2263.         return $options;
  2264. }
  2265.  
  2266. /*
  2267.  
  2268.  * This is an example of how to add custom scripts to the options panel.
  2269.  
  2270.  * This example shows/hides an option when a checkbox is clicked.
  2271.  
  2272.  */
  2273.  
  2274. add_action('optionsframework_custom_scripts', 'optionsframework_custom_scripts');
  2275.  
  2276. function optionsframework_custom_scripts() { ?>
  2277.  
  2278. <script type="text/javascript">
  2279.  
  2280. jQuery(document).ready(function($) {
  2281.  
  2282.     $('#example_showhidden').click(function() {
  2283.  
  2284.         $('#section-example_text_hidden').fadeToggle(400);
  2285.  
  2286.         $('#section-showhidden_slide_img_1').fadeToggle(400);
  2287.  
  2288.         $('#section-alt_title_tag_slide_1').fadeToggle(400);
  2289.  
  2290.         $('#section-showhidden_slide_img_2').fadeToggle(400);
  2291.  
  2292.         $('#section-alt_title_tag_slide_2').fadeToggle(400);
  2293.  
  2294.         $('#section-showhidden_slide_img_3').fadeToggle(400);
  2295.  
  2296.         $('#section-alt_title_tag_slide_3').fadeToggle(400);
  2297.  
  2298.         $('#section-showhidden_slide_img_4').fadeToggle(400);
  2299.  
  2300.         $('#section-alt_title_tag_slide_4').fadeToggle(400);
  2301.  
  2302.         $('#section-showhidden_slide_img_5').fadeToggle(400);
  2303.  
  2304.         $('#section-alt_title_tag_slide_5').fadeToggle(400);
  2305.  
  2306.     });
  2307.     if ($('#example_showhidden:checked').val() !== undefined) {
  2308.  
  2309.         $('#section-example_text_hidden').show();
  2310.  
  2311.         $('#section-showhidden_slide_img_1').show();
  2312.  
  2313.         $('#section-alt_title_tag_slide_1').show();
  2314.  
  2315.         $('#section-showhidden_slide_img_2').show();
  2316.  
  2317.         $('#section-alt_title_tag_slide_2').show();
  2318.  
  2319.         $('#section-showhidden_slide_img_3').show();
  2320.  
  2321.         $('#section-alt_title_tag_slide_3').show();
  2322.  
  2323.         $('#section-showhidden_slide_img_4').show();
  2324.  
  2325.         $('#section-alt_title_tag_slide_4').show();
  2326.  
  2327.         $('#section-showhidden_slide_img_5').show();
  2328.  
  2329.         $('#section-alt_title_tag_slide_5').show();
  2330.  
  2331.     }
  2332. });
  2333.  
  2334. jQuery(document).ready(function($) {
  2335.  
  2336.     $('#seo_showhidden').click(function() {
  2337.  
  2338.         $('#section-meta_tag_title_home_hotel_style').fadeToggle(400);
  2339.  
  2340.         $('#section-meta_tag_keyword_home_hotel_style').fadeToggle(400);
  2341.  
  2342.         $('#section-meta_tag_description_home_hotel_style').fadeToggle(400);
  2343.  
  2344.         $('#section-meta_tag_copyright_home_hotel_style').fadeToggle(400);
  2345.  
  2346.         $('#section-meta_tag_author_home_hotel_style').fadeToggle(400);
  2347.  
  2348.     });
  2349.     if ($('#seo_showhidden:checked').val() !== undefined) {
  2350.  
  2351.         $('#section-meta_tag_title_home_hotel_style').show();
  2352.  
  2353.         $('#section-meta_tag_keyword_home_hotel_style').show();
  2354.  
  2355.         $('#section-meta_tag_description_home_hotel_style').show();
  2356.  
  2357.         $('#section-meta_tag_copyright_home_hotel_style').show();
  2358.  
  2359.         $('#section-meta_tag_author_home_hotel_style').show();
  2360.  
  2361.     }
  2362. });
  2363.  
  2364. jQuery(document).ready(function($) {
  2365.  
  2366.     $('#center_showhidden').click(function() {
  2367.  
  2368.         $('#section-first_image_left').fadeToggle(400);
  2369.  
  2370.         $('#section-alt_title_tag_first_image').fadeToggle(400);
  2371.  
  2372.         $('#section-first_area_hotel').fadeToggle(400);
  2373.  
  2374.         $('#section-second_area_hotel').fadeToggle(400);
  2375.  
  2376.         $('#section-second_image_right').fadeToggle(400);
  2377.  
  2378.         $('#section-alt_title_tag_second_image').fadeToggle(400);
  2379.  
  2380.     });
  2381.     if ($('#center_showhidden:checked').val() !== undefined) {
  2382.  
  2383.         $('#section-first_image_left').show();
  2384.  
  2385.         $('#section-alt_title_tag_first_image').show();
  2386.  
  2387.         $('#section-first_area_hotel').show();
  2388.  
  2389.         $('#section-second_area_hotel').show();
  2390.  
  2391.         $('#section-second_image_right').show();
  2392.  
  2393.         $('#section-alt_title_tag_second_image').show();
  2394.     }
  2395. });
  2396. jQuery(document).ready(function($) {
  2397.     $('#footer_showhidden').click(function() {
  2398.  
  2399.         $('#section-hotel_footer_left').fadeToggle(400);
  2400.  
  2401.         $('#section-first_area_hotel').fadeToggle(400);
  2402.  
  2403.         $('#section-hotel_footer_center').fadeToggle(400);
  2404.  
  2405.         $('#section-hotel_footer_right').fadeToggle(400);
  2406.  
  2407.     });
  2408.     if ($('#footer_showhidden:checked').val() !== undefined) {
  2409.  
  2410.         $('#section-hotel_footer_left').show();
  2411.  
  2412.         $('#section-first_area_hotel').show();
  2413.  
  2414.         $('#section-hotel_footer_center').show();
  2415.  
  2416.         $('#section-hotel_footer_right').show();
  2417.     }
  2418. });
  2419. jQuery(document).ready(function($) {
  2420.     $('#colors_showhidden').click(function() {
  2421.  
  2422.         $('#section-hotel_colorpicker_body_background').fadeToggle(400);
  2423.  
  2424.         $('#section-hotel_colorpicker_header_background').fadeToggle(400);
  2425.  
  2426.         $('#section-hotel_colorpicker_content_background').fadeToggle(400);
  2427.  
  2428.         $('#section-hotel_colorpicker_first_area_background').fadeToggle(400);
  2429.  
  2430.         $('#section-hotel_colorpicker_second_area_background').fadeToggle(400);
  2431.  
  2432.         $('#section-hotel_colorpicker_footer_background').fadeToggle(400);
  2433.  
  2434.         $('#section-hotel_colorpicker_foot1_background').fadeToggle(400);      
  2435.  
  2436.         $('#section-hotel_colorpicker_foot2_background').fadeToggle(400);      
  2437.  
  2438.         $('#section-hotel_colorpicker_foot3_background').fadeToggle(400);      
  2439.  
  2440.     });
  2441.     if ($('#colors_showhidden:checked').val() !== undefined) {
  2442.  
  2443.         $('#section-hotel_colorpicker_body_background').show();
  2444.  
  2445.         $('#section-hotel_colorpicker_header_background').show();
  2446.  
  2447.         $('#section-hotel_colorpicker_content_background').show();
  2448.  
  2449.         $('#section-hotel_colorpicker_first_area_background').show();
  2450.  
  2451.         $('#section-hotel_colorpicker_second_area_background').show();
  2452.  
  2453.         $('#section-hotel_colorpicker_footer_background').show();
  2454.  
  2455.         $('#section-hotel_colorpicker_foot1_background').show();
  2456.  
  2457.         $('#section-hotel_colorpicker_foot2_background').show();
  2458.  
  2459.         $('#section-hotel_colorpicker_foot3_background').show();
  2460.     }
  2461. });
  2462. </script>
  2463. <?php
  2464. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement