Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * A unique identifier is defined to store the options in the database and reference them from the theme.
- * By default it uses the theme name, in lowercase and without spaces, but this can be changed if needed.
- * If the identifier changes, it'll appear as if the options have been reset.
- */
- function optionsframework_option_name() {
- // This gets the theme name from the stylesheet
- $themename = get_option( 'stylesheet' );
- $themename = preg_replace("/\W/", "_", strtolower($themename) );
- $optionsframework_settings = get_option( 'optionsframework' );
- $optionsframework_settings['id'] = $themename;
- update_option( 'optionsframework', $optionsframework_settings );
- }
- /**
- * Defines an array of options that will be used to generate the settings page and be saved in the database.
- * When creating the 'id' fields, make sure to use all lowercase and no spaces.
- *
- * If you are making your theme translatable, you should replace 'mdframework'
- * with the actual text domain for your theme. Read more:
- * http://codex.wordpress.org/Function_Reference/load_theme_textdomain
- */
- function optionsframework_options() {
- $typography_mixed_fonts = array_merge( options_typography_get_os_fonts() , options_typography_get_google_fonts() );
- asort($typography_mixed_fonts);
- // Test data and basic data
- $template_select_array = array(
- 'blog' =>__('Blog', 'mdframework'),
- 'hotel'=>__('Hotel', 'mdframework'),
- 'forum'=>__('Forum', 'mdframework'),
- 'ecommerce'=>__('eCommerce', 'mdframework')
- );
- $test_array = array(
- 'one' => __('One', 'mdframework'),
- 'two' => __('Two', 'mdframework'),
- 'three' => __('Three', 'mdframework'),
- 'four' => __('Four', 'mdframework'),
- 'five' => __('Five', 'mdframework')
- );
- $slide_array = array(
- '0' => __('0', 'mdframework'),
- '1' => __('1', 'mdframework'),
- '2' => __('2', 'mdframework'),
- '3' => __('3', 'mdframework'),
- '4' => __('4', 'mdframework'),
- '5' => __('5', 'mdframework')
- );
- // Multicheck Array
- $multicheck_array = array(
- 'one' => __('French Toast', 'mdframework'),
- 'two' => __('Pancake', 'mdframework'),
- 'three' => __('Omelette', 'mdframework'),
- 'four' => __('Crepe', 'mdframework'),
- 'five' => __('Waffle', 'mdframework')
- );
- // Multicheck Defaults
- $multicheck_defaults = array(
- 'one' => '1',
- 'five' => '1'
- );
- // Background Defaults
- $background_defaults = array(
- 'color' => '',
- 'image' => '',
- 'repeat' => 'repeat',
- 'position' => 'top center',
- 'attachment'=>'scroll' );
- // Typography Defaults
- $typography_defaults = array(
- 'size' => '15px',
- 'face' => 'georgia',
- 'style' => 'bold',
- 'color' => '#bada55' );
- // Typography Options
- $typography_options = array(
- 'sizes' => array( '6','12','14','16','20' ),
- 'faces' => array( 'Helvetica Neue' => 'Helvetica Neue','Arial' => 'Arial' ),
- 'styles' => array( 'normal' => 'Normal','bold' => 'Bold' ),
- 'color' => false
- );
- // Pull all the categories into an array
- $options_categories = array();
- $options_categories_obj = get_categories();
- foreach ($options_categories_obj as $category) {
- $options_categories[$category->cat_ID] = $category->cat_name;
- }
- // Pull all tags into an array
- $options_tags = array();
- $options_tags_obj = get_tags();
- foreach ( $options_tags_obj as $tag ) {
- $options_tags[$tag->term_id] = $tag->name;
- }
- // Pull all the pages into an array
- $options_pages = array();
- $options_pages_obj = get_pages('sort_column=post_parent,menu_order');
- $options_pages[''] = 'Select a page:';
- foreach ($options_pages_obj as $page) {
- $options_pages[$page->ID] = $page->post_title;
- }
- // If using image radio buttons, define a directory path
- $imagepath = get_template_directory_uri() . '/images/';
- $options = array();
- $options[] = array(
- 'name' => __('Basic Settings', 'mdframework'),
- 'type' => 'heading');
- /* $options[] = array(
- 'name' => __('Input Text Mini', 'mdframework'),
- 'desc' => __('A mini text input field.', 'mdframework'),
- 'id' => 'example_text_mini',
- 'std' => 'Default',
- 'class' => 'mini',
- 'type' => 'text');
- $options[] = array(
- 'name' => __('Textarea', 'mdframework'),
- 'desc' => __('Textarea description.', 'mdframework'),
- 'id' => 'example_textarea',
- 'std' => 'Default Text',
- 'type' => 'textarea');
- $options[] = array(
- 'name' => __('Input Select Small', 'mdframework'),
- 'desc' => __('Small Select Box.', 'mdframework'),
- 'id' => 'example_select',
- 'std' => 'three',
- 'type' => 'select',
- 'class' => 'mini', //mini, tiny, small
- 'options' => $test_array);
- */
- $options[] = array(
- 'name' => __('Choose and upload a Favicon', 'mdframework'),
- 'desc' => __('Upload a Favicon, recommended size = 36px*36px.', 'mdframework'),
- 'id' => 'favicon_normal',
- 'std' => get_template_directory_uri().'/images/true.png',
- 'type' => 'upload');
- $options[] = array(
- 'name' => __('iPhone and Apple Stuff Favicon', 'mdframework'),
- 'desc' => __('Upload a Favicon specific for iPhone and Apple Products, recommended size = 57px*57px.', 'mdframework'),
- 'id' => 'favicon_apple',
- 'std' => get_template_directory_uri().'/images/true.png',
- 'type' => 'upload');
- $options[] = array(
- 'name' => __('Choose your SiteWide Template', 'mdframework'),
- 'desc' => __('Choose your website style.', 'mdframework'),
- 'id' => 'select_sitewide_template',
- 'std' => 'blog',
- 'class' => 'mini',
- 'type' => 'select',
- 'options' => $template_select_array);
- /*
- if ($options_tags) {
- $options[] = array(
- 'name' => __('Select a Tag', 'options_check'),
- 'desc' => __('Passed an array of tags with term_id and term_name', 'options_check'),
- 'id' => 'example_select_tags',
- 'type' => 'select',
- 'options' => $options_tags);
- }
- $options[] = array(
- 'name' => __('Select a Page', 'mdframework'),
- 'desc' => __('Passed an pages with ID and post_title', 'mdframework'),
- 'id' => 'example_select_pages',
- 'type' => 'select',
- 'options' => $options_pages);
- $options[] = array(
- 'name' => __('Input Radio (one)', 'mdframework'),
- 'desc' => __('Radio select with default options "one".', 'mdframework'),
- 'id' => 'example_radio',
- 'std' => 'one',
- 'type' => 'radio',
- 'options' => $test_array);
- $options[] = array(
- 'name' => __('Input Checkbox', 'mdframework'),
- 'desc' => __('Example checkbox, defaults to true.', 'mdframework'),
- 'id' => 'example_checkbox',
- 'std' => '1',
- 'type' => 'checkbox');*/
- $options[] = array(
- 'name' => __('Color Settings', 'mdframework'),
- 'type' => 'heading');
- $options[] = array(
- 'name' => __('Colorpicker Body Background', 'mdframework'),
- 'desc' => __('No color selected by default.', 'mdframework'),
- 'id' => 'colorpicker_body_background',
- 'std' => '',
- 'type' => 'color' );
- $options[] = array(
- 'name' => __('Colorpicker Header', 'mdframework'),
- 'desc' => __('No color selected by default.', 'mdframework'),
- 'id' => 'colorpicker_header',
- 'std' => '',
- 'type' => 'color' );
- $options[] = array(
- 'name' => __('Colorpicker Top Menu', 'mdframework'),
- 'desc' => __('No color selected by default.', 'mdframework'),
- 'id' => 'colorpicker_top_menu',
- 'std' => '',
- 'type' => 'color' );
- $options[] = array(
- 'name' => __('Colorpicker Content', 'mdframework'),
- 'desc' => __('No color selected by default.', 'mdframework'),
- 'id' => 'colorpicker_content',
- 'std' => '',
- 'type' => 'color' );
- $options[] = array(
- 'name' => __('Colorpicker Post', 'mdframework'),
- 'desc' => __('No color selected by default.', 'mdframework'),
- 'id' => 'colorpicker_post',
- 'std' => '',
- 'type' => 'color' );
- $options[] = array(
- 'name' => __('Colorpicker Sidebar', 'mdframework'),
- 'desc' => __('No color selected by default.', 'mdframework'),
- 'id' => 'colorpicker_sidebar',
- 'std' => '',
- 'type' => 'color' );
- $options[] = array(
- 'name' => __('Colorpicker Footer', 'mdframework'),
- 'desc' => __('No color selected by default.', 'mdframework'),
- 'id' => 'colorpicker_footer',
- 'std' => '',
- 'type' => 'color' );
- $options[] = array(
- 'name' => __('Advanced Settings', 'mdframework'),
- 'type' => 'heading');
- /* $options[] = array(
- 'name' => __('Uploader Test', 'mdframework'),
- 'desc' => __('This creates a full size uploader that previews the image.', 'mdframework'),
- 'id' => 'example_uploader',
- 'type' => 'upload');*/
- $options[] = array(
- 'name' =>__('Choose your Layout'),
- 'desc' =>__('Choose how to compose your Header.'),
- 'id' => "seleziona_testata",
- 'std' => "tdx-ysx",
- 'type' => "images",
- 'options' => array(
- 'tdx-ysx' => $imagepath . 'tdxy.png',
- 'total' => $imagepath . 'total.png',
- 'tsx-ydx' => $imagepath . 'tsxy.png')
- );
- $options[] = array(
- 'name' =>__('Choose your Layout'),
- 'desc' =>__('Choose where or not place the sidebar.'),
- 'id' => "example_images",
- 'std' => "duecolsdx",
- 'type' => "images",
- 'options' => array(
- 'duecolssx' => $imagepath . '2cl.png',
- 'unacol' => $imagepath . '1col.png',
- 'duecolsdx' => $imagepath . '2cr.png',
- 'trecol' => $imagepath . '3col.png'
- )
- );
- $options[] = array(
- 'name' =>__('Choose your Footer'),
- 'desc' =>__('Choose how to compose your footer.'),
- 'id' => "seleziona_footer",
- 'std' => "fs-youd",
- 'type' => "images",
- 'options' => array(
- 'fs-youd' => $imagepath . 'tdxy.png',
- 'totalfoot' => $imagepath . 'total.png',
- 'fd-yous' => $imagepath . 'tsxy.png',
- 'footer-3' => $imagepath . 'footer3.png'
- )
- );
- $options[] = array(
- 'name' =>__('Choose your Home Grid Style'),
- 'desc' =>__('Choose how to compose Home Grid.'),
- 'id' => "selezione_grid",
- 'std' => "33grid",
- 'type' => "images",
- 'options' => array(
- '33grid' => $imagepath . '33grid.png',
- 'noe33grid' => $imagepath . 'noe33grid.png',
- 'nogridmiddle' => $imagepath . 'nogridmiddle.png',
- '33grideno' => $imagepath . '33grideno.png',
- 'nogrid' => $imagepath . 'nogrid.png',
- 'nogvertical' => $imagepath . 'nogvertical.png',
- 'biggrid' => $imagepath . 'biggrid.png'
- )
- );
- $options[] = array(
- 'name' => __('Example Background', 'mdframework'),
- 'desc' => __('Change the background CSS.', 'mdframework'),
- 'id' => 'example_background',
- 'std' => $background_defaults,
- 'type' => 'background' );
- $options[] = array(
- 'name' => __('Multicheck', 'mdframework'),
- 'desc' => __('Multicheck description.', 'mdframework'),
- 'id' => 'example_multicheck',
- 'std' => $multicheck_defaults, // These items get checked by default
- 'type' => 'multicheck',
- 'options' => $multicheck_array);
- $options[] = array(
- 'name' => __('Colorpicker', 'mdframework'),
- 'desc' => __('No color selected by default.', 'mdframework'),
- 'id' => 'example_colorpicker',
- 'std' => '',
- 'type' => 'color' );
- /*
- $options[] = array( 'name' => __('Typography', 'mdframework'),
- 'desc' => __('Example typography.', 'mdframework'),
- 'id' => "example_typography",
- 'std' => $typography_defaults,
- 'type' => 'typography' );
- $options[] = array(
- 'name' => __('Custom Typography', 'mdframework'),
- 'desc' => __('Custom typography options.', 'mdframework'),
- 'id' => "custom_typography",
- 'std' => $typography_defaults,
- 'type' => 'typography',
- 'options' => $typography_options );
- /* $options[] = array(
- 'name' => __('Text Editor', 'mdframework'),
- 'type' => 'heading' );
- */
- /**
- * For $settings options see:
- * http://codex.wordpress.org/Function_Reference/wp_editor
- *
- * 'media_buttons' are not supported as there is no post to attach items to
- * 'textarea_name' is set by the 'id' you choose
- */
- /*
- $wp_editor_settings = array(
- 'wpautop' => true, // Default
- 'textarea_rows' => 5,
- 'media_buttons' => true,
- 'tinymce' => array( 'plugins' => 'wordpress' )
- );
- $options[] = array(
- 'name' => __('Default Text Editor', 'mdframework'),
- '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' ),
- 'id' => 'example_editor',
- 'type' => 'editor',
- 'settings' => $wp_editor_settings );
- */
- /* Hotel Options HomePage*/
- $options[] = array(
- 'name' => __('Hotel Style HomePage', 'mdframework'),
- 'type' => 'heading');
- $options[] = array(
- 'name' => __('What does this panel do?', 'mdframework'),
- 'desc' => __('This panel is here to help you configure <code>Home Hotel Style</code> page template.', 'mdframework'),
- 'type' => 'info');
- $options[] = array(
- 'name' => __('SEO PART', 'mdframework'),
- 'desc' => __('Configure <code>Home Hotel Style</code> page template Basic SEO sections.', 'mdframework'),
- 'type' => 'info');
- $options[] = array(
- 'name' => __('Check to start configuring SEO for this template', 'mdframework'),
- 'desc' => __('Click here to activate it.', 'mdframework'),
- 'id' => 'seo_showhidden',
- 'type' => 'checkbox');
- $options[] = array(
- 'name' => __('Titolo Pagina', 'mdframework'),
- 'desc' => __('Insert here your <code>Home Hotel Style</code> template specific title tag.', 'mdframework'),
- 'id' => 'meta_tag_title_home_hotel_style',
- 'std' => 'Page Title',
- 'class' => 'hidden',
- 'type' => 'text');
- $options[] = array(
- 'name' => __('Meta Tag KeyWord', 'mdframework'),
- 'desc' => __('Insert here your Keyword MetaTag only for <code>Home Hotel Style</code> template.', 'mdframework'),
- 'id' => 'meta_tag_keyword_home_hotel_style',
- 'std' => 'MetaTag Keyword',
- 'class' => 'hidden',
- 'type' => 'text');
- $options[] = array(
- 'name' => __('Meta Tag Description', 'mdframework'),
- 'desc' => __('Insert here your Description MetaTag only for <code>Home Hotel Style</code> template.', 'mdframework'),
- 'id' => 'meta_tag_description_home_hotel_style',
- 'std' => 'MetaTag Description',
- 'class' => 'hidden',
- 'type' => 'text');
- $options[] = array(
- 'name' => __('Meta Tag Copyright', 'mdframework'),
- 'desc' => __('Insert here your <code>Home Hotel Style</code> template copyright info.', 'mdframework'),
- 'id' => 'meta_tag_copyright_home_hotel_style',
- 'std' => 'MetaTag CopyRight',
- 'class' => 'mini', //mini, tiny, small
- 'class' => 'hidden',
- 'type' => 'text');
- $options[] = array(
- 'name' => __('Meta Tag Author', 'mdframework'),
- 'desc' => __('Insert here your <code>Home Hotel Style</code> template Author Tag.', 'mdframework'),
- 'id' => 'meta_tag_author_home_hotel_style',
- 'std' => 'MetaTag Author',
- 'class' => 'mini', //mini, tiny, small
- 'class' => 'hidden',
- 'type' => 'text');
- $rating_array = array(
- 'general' => __('General', 'mdframework'),
- 'mature' => __('Mature', 'mdframework'),
- 'restricted' => __('Restricted', 'mdframework')
- );
- $options[] = array(
- 'name' => __('Meta Tag Rating', 'mdframework'),
- 'desc' => __('Choose your rating only for <code>Home Hotel Style</code> template.', 'mdframework'),
- 'id' => 'rating_select',
- 'std' => 'General',
- 'type' => 'select',
- 'class' => 'mini', //mini, tiny, small
- 'class' => 'hidden',
- 'options' => $rating_array);
- $options[] = array(
- 'name' => __('HEADER PART', 'mdframework'),
- 'desc' => __('Configure <code>Home Hotel Style</code> page template <code>HEADER</code> Section.', 'mdframework'),
- 'type' => 'info');
- $options[] = array(
- 'name' =>__('Choose your Header Layout'),
- 'desc' =>__('Choose how to compose your Header. Title + Slide, Slide + Title or 100% Slide'),
- 'id' => "seleziona_testata_hotel",
- 'std' => "hotel-tdx-ysx",
- 'type' => "images",
- 'options' => array(
- 'full-slide' => $imagepath . 'fullslide.jpg',
- 'hotel-tdx-ysx' => $imagepath . 'tdxy.png',
- /*'total' => $imagepath . 'total.png',*/
- 'hotel-tsx-ydx' => $imagepath . 'tsxy.png')
- );
- $options[] = array(
- 'name' => __('Check if you want a slideshow on this page', 'mdframework'),
- 'desc' => __('Click here to activate it.', 'mdframework'),
- 'id' => 'example_showhidden',
- 'type' => 'checkbox');
- $options[] = array(
- 'name' => __('First Image', 'mdframework'),
- 'desc' => __('Upload first image of your slideshow.', 'mdframework'),
- 'id' => 'showhidden_slide_img_1',
- 'class' => 'hidden',
- 'type' => 'upload');
- $options[] = array(
- 'name' => __('Alt & Title Tag for First Image', 'mdframework'),
- 'desc' => __('Insert here Alt & Title Tag for First Image.', 'mdframework'),
- 'id' => 'alt_title_tag_slide_1',
- 'std' => 'Image Description',
- 'class' => 'mini', //mini, tiny, small
- 'class' => 'hidden',
- 'type' => 'text');
- $options[] = array(
- 'name' => __('Second Image', 'mdframework'),
- 'desc' => __('Upload Second image of your slideshow.', 'mdframework'),
- 'id' => 'showhidden_slide_img_2',
- 'class' => 'hidden',
- 'type' => 'upload');
- $options[] = array(
- 'name' => __('Alt & Title Tag for First Image', 'mdframework'),
- 'desc' => __('Insert here Alt & Title Tag for First Image.', 'mdframework'),
- 'id' => 'alt_title_tag_slide_2',
- 'std' => 'Image Description',
- 'class' => 'mini', //mini, tiny, small
- 'class' => 'hidden',
- 'type' => 'text');
- $options[] = array(
- 'name' => __('Third Image', 'mdframework'),
- 'desc' => __('Upload Third image of your slideshow.', 'mdframework'),
- 'id' => 'showhidden_slide_img_3',
- 'class' => 'hidden',
- 'type' => 'upload');
- $options[] = array(
- 'name' => __('Alt & Title Tag for First Image', 'mdframework'),
- 'desc' => __('Insert here Alt & Title Tag for First Image.', 'mdframework'),
- 'id' => 'alt_title_tag_slide_3',
- 'std' => 'Image Description',
- 'class' => 'mini', //mini, tiny, small
- 'class' => 'hidden',
- 'type' => 'text');
- $options[] = array(
- 'name' => __('Fourth Image', 'mdframework'),
- 'desc' => __('Upload Fourth image of your slideshow.', 'mdframework'),
- 'id' => 'showhidden_slide_img_4',
- 'class' => 'hidden',
- 'type' => 'upload');
- $options[] = array(
- 'name' => __('Alt & Title Tag for First Image', 'mdframework'),
- 'desc' => __('Insert here Alt & Title Tag for First Image.', 'mdframework'),
- 'id' => 'alt_title_tag_slide_4',
- 'std' => 'Image Description',
- 'class' => 'mini', //mini, tiny, small
- 'class' => 'hidden',
- 'type' => 'text');
- $options[] = array(
- 'name' => __('Fifth Image', 'mdframework'),
- 'desc' => __('Upload Fifth image of your slideshow.', 'mdframework'),
- 'id' => 'showhidden_slide_img_5',
- 'class' => 'hidden',
- 'type' => 'upload');
- $options[] = array(
- 'name' => __('Alt & Title Tag for First Image', 'mdframework'),
- 'desc' => __('Insert here Alt & Title Tag for First Image.', 'mdframework'),
- 'id' => 'alt_title_tag_slide_5',
- 'std' => 'Image Description',
- 'class' => 'mini', //mini, tiny, small
- 'class' => 'hidden',
- 'type' => 'text');
- $options[] = array(
- 'name' => __('Or... insert a Youtube Video', 'mdframework'),
- 'desc' => __('Just place here your YouTube video URL, something like:<code>http://youtu.be/k0HW_1_dsRg</code>.', 'mdframework'),
- 'id' => 'youtube_link',
- 'std' => 'http://youtu.be/k0HW_1_dsRg',
- 'class' => 'mini', //mini, tiny, small
- 'type' => 'text');
- $options_autoplay = array(
- '1' => __('Yes', 'mdframework'),
- '0' => __('No', 'mdframework')
- );
- $options[] = array(
- 'name' => __('Would you like to have autoplay?', 'mdframework'),
- 'desc' => __('Choose if you want Autoplay activated in your YouTube Video', 'mdframework'),
- 'id' => 'autoplay_youtube',
- 'type' => 'select',
- 'class' => 'mini',
- 'options' => $options_autoplay);
- /*
- $options[] = array(
- 'name' => __('Hidden Text Input', 'mdframework'),
- 'desc' => __('This option is hidden unless activated by a checkbox click.', 'mdframework'),
- 'id' => 'example_text_hidden',
- 'std' => 'Hello',
- 'class' => 'hidden',
- 'type' => 'text');
- */
- $options[] = array(
- 'name' => __('CENTER PART', 'mdframework'),
- 'desc' => __('Configure <code>Home Hotel Style</code> page template <code>CENTER</code> Section.', 'mdframework'),
- 'type' => 'info');
- $options[] = array(
- 'name' => __('Check to start customizing the CENTER PART', 'mdframework'),
- 'desc' => __('Click here to activate it.', 'mdframework'),
- 'id' => 'center_showhidden',
- 'type' => 'checkbox');
- $options[] = array(
- 'name' => __('First Image on the left', 'mdframework'),
- 'desc' => __('Upload First Image on your left in first center part.', 'mdframework'),
- 'id' => 'first_image_left',
- 'class' => 'hidden',
- 'type' => 'upload');
- $options[] = array(
- 'name' => __('Alt & Title Tag for First Image', 'mdframework'),
- 'desc' => __('Insert here Alt & Title Tag for First Image.', 'mdframework'),
- 'id' => 'alt_title_tag_first_image',
- 'std' => 'Image Description',
- 'class' => 'mini', //mini, tiny, small
- 'class' => 'hidden',
- 'type' => 'text');
- $wp_editor_settings = array(
- 'wpautop' => true, // Default
- 'textarea_rows' => 4,
- 'media_buttons' => true,
- 'tinymce' => array( 'plugins' => 'wordpress' )
- );
- $options[] = array(
- 'name' => __('First Area Content', 'mdframework'),
- 'desc' => __( 'Write Here what you would like your visitors to see in the first area, you can also use some <code>HTML</code>','mdframework' ),
- 'id' => 'first_area_hotel',
- 'type' => 'editor',
- 'class' => 'hidden',
- 'settings' => $wp_editor_settings );
- $wp_editor_settings = array(
- 'wpautop' => true, // Default
- 'textarea_rows' => 4,
- 'media_buttons' => true,
- 'tinymce' => array( 'plugins' => 'wordpress' )
- );
- $options[] = array(
- 'name' => __('Second Area Content', 'mdframework'),
- 'desc' => __( 'Write Here what you would like your visitors to see in the second area, you can also use some <code>HTML</code>','mdframework' ),
- 'id' => 'second_area_hotel',
- 'type' => 'editor',
- 'class' => 'hidden',
- 'settings' => $wp_editor_settings );
- $options[] = array(
- 'name' => __('Second Image on the right', 'mdframework'),
- 'desc' => __('Upload Second Image this time on your right in second center part.', 'mdframework'),
- 'id' => 'second_image_right',
- 'class' => 'hidden',
- 'type' => 'upload');
- $options[] = array(
- 'name' => __('Alt & Title Tag for Second Image', 'mdframework'),
- 'desc' => __('Insert here Alt & Title Tag for Second Image.', 'mdframework'),
- 'id' => 'alt_title_tag_second_image',
- 'std' => 'Image Description',
- 'class' => 'mini', //mini, tiny, small
- 'class' => 'hidden',
- 'type' => 'text');
- $options[] = array(
- 'name' => __('Third Area Content', 'mdframework'),
- 'desc' => __( 'Write Here what you would like your visitors to see in the third area, you can also use some <code>HTML</code>','mdframework' ),
- 'id' => 'third_area_hotel',
- 'type' => 'editor',
- 'class' => 'hidden',
- 'settings' => $wp_editor_settings );
- $options[] = array(
- 'name' => __('Third Image on the right', 'mdframework'),
- 'desc' => __('Upload Third Image this time on your right in third center part.', 'mdframework'),
- 'id' => 'third_image_right',
- 'class' => 'hidden',
- 'type' => 'upload');
- $options[] = array(
- 'name' => __('Alt & Title Tag for Third Image', 'mdframework'),
- 'desc' => __('Insert here Alt & Title Tag for Third Image.', 'mdframework'),
- 'id' => 'alt_title_tag_third_image',
- 'std' => 'Image Description',
- 'class' => 'mini', //mini, tiny, small
- 'class' => 'hidden',
- 'type' => 'text');
- $options[] = array(
- 'name' => __('FOOTER PART', 'mdframework'),
- 'desc' => __('Configure <code>Home Hotel Style</code> page template <code>FOOTER</code> Section.', 'mdframework'),
- 'type' => 'info');
- $options[] = array(
- 'name' => __('Check to start customizing the FOOTER of this page', 'mdframework'),
- 'desc' => __('Click here to activate it.', 'mdframework'),
- 'id' => 'footer_showhidden',
- 'type' => 'checkbox');
- $options[] = array(
- 'name' => __('Select a Category to be Shown on the left', 'mdframework'),
- 'desc' => __('On this particular page there are 3 spots choose how to fill the first one', 'mdframework'),
- 'id' => 'hotel_footer_left',
- 'type' => 'select',
- 'class' => 'hidden',
- 'options' => $options_categories);
- $options[] = array(
- 'name' => __('Select a Category to be Shown in the middle', 'mdframework'),
- 'desc' => __('On this particular page there are 3 spots choose how to fill the second one', 'mdframework'),
- 'id' => 'hotel_footer_center',
- 'type' => 'select',
- 'class' => 'hidden',
- 'options' => $options_categories);
- $options[] = array(
- 'name' => __('Select a Category to be Shown on the right', 'mdframework'),
- 'desc' => __('On this particular page there are 3 spots choose how to fill the third one', 'mdframework'),
- 'id' => 'hotel_footer_right',
- 'type' => 'select',
- 'class' => 'hidden',
- 'options' => $options_categories);
- $options[] = array(
- 'name' => __('COLOR SECTION', 'mdframework'),
- 'desc' => __('Configure <code>Home Hotel Style</code> page template <code>COLORS</code>.', 'mdframework'),
- 'type' => 'info');
- $options[] = array(
- 'name' => __('Check to start customizing COLORS of this page', 'mdframework'),
- 'desc' => __('Click here to activate it.', 'mdframework'),
- 'id' => 'colors_showhidden',
- 'type' => 'checkbox');
- $options[] = array(
- 'name' => __('Colorpicker Body Background', 'mdframework'),
- 'desc' => __('Choose a color for for the whole background of <code>Home Hotel Style</code> page template.', 'mdframework'),
- 'id' => 'hotel_colorpicker_body_background',
- 'std' => '',
- 'class' => 'hidden',
- 'type' => 'color' );
- $options[] = array(
- 'name' => __('Colorpicker Header Background', 'mdframework'),
- 'desc' => __('Choose a color for for the <code>HEADER</code> background of <code>Home Hotel Style</code> page template.', 'mdframework'),
- 'id' => 'hotel_colorpicker_header_background',
- 'std' => '',
- 'class' => 'hidden',
- 'type' => 'color' );
- $options[] = array(
- 'name' => __('Colorpicker Content Background', 'mdframework'),
- 'desc' => __('Choose a color for the <code>CONTENT</code> background of <code>Home Hotel Style</code> page template.', 'mdframework'),
- 'id' => 'hotel_colorpicker_content_background',
- 'std' => '',
- 'class' => 'hidden',
- 'type' => 'color' );
- $options[] = array(
- 'name' => __('Colorpicker FirstArea Background', 'mdframework'),
- 'desc' => __('Choose a color for the <code>FIRST AREA</code> background of <code>Home Hotel Style</code> page template.', 'mdframework'),
- 'id' => 'hotel_colorpicker_first_area_background',
- 'std' => '',
- 'class' => 'hidden',
- 'type' => 'color' );
- $options[] = array(
- 'name' => __('Colorpicker SecondArea Background', 'mdframework'),
- 'desc' => __('Choose a color for the <code>SECOND AREA</code> background of <code>Home Hotel Style</code> page template.', 'mdframework'),
- 'id' => 'hotel_colorpicker_second_area_background',
- 'std' => '',
- 'class' => 'hidden',
- 'type' => 'color' );
- $options[] = array(
- 'name' => __('Colorpicker Footer Background', 'mdframework'),
- 'desc' => __('Choose a color for for the <code>FOOTER</code> background of <code>Home Hotel Style</code> page template.', 'mdframework'),
- 'id' => 'hotel_colorpicker_footer_background',
- 'std' => '',
- 'class' => 'hidden',
- 'type' => 'color' );
- $options[] = array(
- 'name' => __('Colorpicker Foot1 Background', 'mdframework'),
- 'desc' => __('Choose a color for <code>FOOTER FIRST AREA</code> background of <code>Home Hotel Style</code> page template.', 'mdframework'),
- 'id' => 'hotel_colorpicker_foot1_background',
- 'std' => '',
- 'class' => 'hidden',
- 'type' => 'color' );
- $options[] = array(
- 'name' => __('Colorpicker Foot2 Background', 'mdframework'),
- 'desc' => __('Choose a color for <code>FOOTER SECOND AREA</code> background of <code>Home Hotel Style</code> page template.', 'mdframework'),
- 'id' => 'hotel_colorpicker_foot2_background',
- 'std' => '',
- 'class' => 'hidden',
- 'type' => 'color' );
- $options[] = array(
- 'name' => __('Colorpicker Foot3 Background', 'mdframework'),
- 'desc' => __('Choose a color for <code>FOOTER THIRD AREA</code> background of <code>Home Hotel Style</code> page template.', 'mdframework'),
- 'id' => 'hotel_colorpicker_foot3_background',
- 'std' => '',
- 'class' => 'hidden',
- 'type' => 'color' );
- /* Forum Homepage Option Panel */
- $options[] = array(
- 'name' => __('Forum HomePage', 'mdframework'),
- 'type' => 'heading');
- $options[] = array(
- 'name' => __('What does this panel do?', 'mdframework'),
- 'desc' => __('This panel is here to help you configure <code>Forum HomePage Style</code> page template.', 'mdframework'),
- 'type' => 'info');
- $options[] = array(
- 'name' => __('Upload an image to be used as Header instead of title and all this Wonderful SEO Stuff', 'mdframework'),
- 'desc' => __('It will completely override all the text in Header, recommended size = 960px*300px.', 'mdframework'),
- 'id' => 'instead_header_image',
- 'std' => 'http://placekitten.com/960/300',
- 'type' => 'upload');
- $options[] = array(
- 'name' => __('Header Font','mdframework'),
- 'desc' => __('Choose the Font For the Title.','mdframework'),
- 'id' => 'head_font_forum',
- 'std' => array( 'size' => '32px', 'face' => 'Georgia, serif', 'color' => '#f15081'),
- 'type' => 'typography',
- 'options' => array(
- 'faces' => $typography_mixed_fonts,
- 'styles' => false )
- );
- $options[] = array(
- 'name' => __('Copy/Paste style code for the Selected Google font', 'mdframework'),
- 'desc' => __('Please browse google.com/fonts and copy/paste the link to the stylesheet here.', 'mdframework'),
- 'id' => 'google_fonts_css_link',
- 'class' => 'small', //mini, tiny, small
- 'type' => 'text');
- $options[] = array(
- 'name' => __('Logo Image', 'mdframework'),
- 'desc' => __('Upload logo image for Forum template, size = 200px*140px.', 'mdframework'),
- 'id' => 'logo_image_forum',
- 'std' => get_template_directory_uri().'/images/logo.jpg',
- 'type' => 'upload');
- $options[] = array(
- 'name' => __('Alt & Title Tag for Logo Image', 'mdframework'),
- 'desc' => __('Insert here Alt & Title Tag for Logo Image.', 'mdframework'),
- 'id' => 'logo_image_forum_alt',
- 'std' => 'Image Description',
- 'class' => 'mini', //mini, tiny, small
- 'type' => 'text');
- /* $options[] = array(
- 'name' => __('Second High Image', 'mdframework'),
- 'desc' => __('Upload second image on top for Forum template, recommended size = 500px*140px.', 'mdframework'),
- 'id' => 'second_top_image_forum',
- 'std' => get_template_directory_uri().'/images/140.jpg',
- 'type' => 'upload');
- $options[] = array(
- 'name' => __('Alt & Title Tag for Second Top Image', 'mdframework'),
- 'desc' => __('Insert here Alt & Title Tag for Second Top Image.', 'mdframework'),
- 'id' => 'second_top_image_forum_alt',
- 'std' => 'Image Description',
- 'class' => 'mini', //mini, tiny, small
- 'type' => 'text');
- */
- $options[] = array(
- 'name' => __('Home Fonts','mdframework'),
- 'desc' => __('Choose the Font that will be used as title on any sidebar.','mdframework'),
- 'id' => 'home_side_font_forum',
- 'std' => array( 'size' => '32px', 'face' => 'Georgia, serif', 'color' => '#f15081'),
- 'type' => 'typography',
- 'options' => array(
- 'faces' => $typography_mixed_fonts,
- 'styles' => false )
- );
- $options[] = array(
- 'name' => __('Font Text Shadow', 'mdframework'),
- 'desc' => __('Choose a text shadow color for fonts selected above.', 'mdframework'),
- 'id' => 'text_shadow_font_home_side',
- 'std' => '#E64E4E',
- 'type' => 'color');
- $options[] = array(
- 'name' => __('Colorpicker Forum Menu', 'mdframework'),
- 'desc' => __('Choose a color for <code>MENU BACKGROUND in FORUM TEMPLATE</code>.', 'mdframework'),
- 'id' => 'forum_menu_background',
- 'std' => '#111',
- 'type' => 'color');
- $options[] = array(
- 'name' => __('Colorpicker Forum Menu Sub-ITEM', 'mdframework'),
- 'desc' => __('Choose a color for <code>MENU SUB-ITEM BACKGROUND in FORUM TEMPLATE</code>.', 'mdframework'),
- 'id' => 'forum_menu_sub_item',
- 'std' => '#111',
- 'type' => 'color');
- $options[] = array(
- 'name' => __('Colorpicker Forum Menu Sub-ITEM ACTIVE', 'mdframework'),
- 'desc' => __('Choose a color for <code>MENU SUB-ITEM BACKGROUND when ACTIVE in FORUM TEMPLATE</code>.', 'mdframework'),
- 'id' => 'forum_menu_sub_item_active',
- 'std' => '#111',
- 'type' => 'color');
- $options[] = array(
- 'name' => __('Colorpicker Forum Menu Selected ITEM Background', 'mdframework'),
- 'desc' => __('Choose a color for <code>SELECTED ITEM MENU BACKGROUND in FORUM TEMPLATE</code>.', 'mdframework'),
- 'id' => 'forum_menu_selected_background',
- 'std' => '#111',
- 'type' => 'color');
- $options[] = array(
- 'name' => __('Colorpicker Forum Menu Selected ITEM Background', 'mdframework'),
- 'desc' => __('Choose a color for <code>SELECTED ITEM MENU BACKGROUND HOVER EFFECT in FORUM TEMPLATE</code>.', 'mdframework'),
- 'id' => 'forum_menu_selected_background_hover',
- 'std' => '#111',
- 'type' => 'color');
- $options[] = array(
- 'name' => __('Colorpicker Header Background', 'mdframework'),
- 'desc' => __('Choose a color for <code>HEADER BACKGROUND in FORUM TEMPLATE</code>.', 'mdframework'),
- 'id' => 'forum_header_background',
- 'std' => '#111',
- 'type' => 'color');
- $options[] = array(
- 'name' => __('Colorpicker Forum Background', 'mdframework'),
- 'desc' => __('Choose a color for <code>BACKGROUND in FORUM TEMPLATE</code>.', 'mdframework'),
- 'id' => 'forum_background',
- 'std' => '#111',
- 'type' => 'color' );
- $options[] = array(
- 'name' => __('Colorpicker Article Container', 'mdframework'),
- 'desc' => __('Choose a color for <code>ARTICLE BACKGROUND in FORUM TEMPLATE</code>.', 'mdframework'),
- 'id' => 'article_background',
- 'std' => '#111',
- 'type' => 'color' );
- $options[] = array(
- 'name' => __('Colorpicker Article Title Background', 'mdframework'),
- 'desc' => __('Choose a color for <code>ARTICLE TITLE BACKGROUND in FORUM TEMPLATE</code>.', 'mdframework'),
- 'id' => 'article_title_background',
- 'std' => '#111',
- 'type' => 'color' );
- $options[] = array(
- 'name' => __('Colorpicker First Sidebar Background', 'mdframework'),
- 'desc' => __('Choose a color for <code>Widgets BACKGROUND in FORUM TEMPLATE</code>.', 'mdframework'),
- 'id' => 'single_widget_background',
- 'std' => '#111',
- 'type' => 'color' );
- $options[] = array(
- 'name' => __('Colorpicker Screenshot Sidebar Background', 'mdframework'),
- 'desc' => __('Choose a color for <code>Screenshot Sidebar BACKGROUND in FORUM TEMPLATE</code>.', 'mdframework'),
- 'id' => 'screenshot_sidebar_background',
- 'std' => '#111',
- 'type' => 'color' );
- $options[] = array(
- 'name' => __('Colorpicker VideoClan Sidebar Background', 'mdframework'),
- 'desc' => __('Choose a color for <code>VideoClan area BACKGROUND in FORUM TEMPLATE</code>.', 'mdframework'),
- 'id' => 'videoclan_area_background',
- 'std' => '#111',
- 'type' => 'color' );
- $options[] = array(
- 'name' => __('Colorpicker SlotNews Sidebar Background', 'mdframework'),
- 'desc' => __('Choose a color for <code>SlotNews area BACKGROUND in FORUM TEMPLATE</code>.', 'mdframework'),
- 'id' => 'slotnews_area_background',
- 'std' => '#111',
- 'type' => 'color' );
- $options[] = array(
- 'name' => __('Colorpicker Footer Area Background', 'mdframework'),
- 'desc' => __('Choose a color for <code>Footer area BACKGROUND in FORUM TEMPLATE</code>.', 'mdframework'),
- 'id' => 'footer_area_background',
- 'std' => '#111',
- 'type' => 'color' );
- $options[] = array(
- 'name' => __('Before Article Mini Logo', 'mdframework'),
- 'desc' => __('Upload small logo before Article TITLE, recommended size = 36px*36px.', 'mdframework'),
- 'id' => 'before_article_title_logo',
- 'std' => get_template_directory_uri().'/images/true.png',
- 'type' => 'upload');
- /* Basic Settings for slideshows */
- $options[] = array(
- 'name' => __('Slideshow Area', 'mdframework'),
- 'desc' => __("From now on you'll be asked to select settings for the slideshows.", 'mdframework'),
- 'type' => 'info');
- $options[] = array(
- 'name' => __('Choose whether or not show top slideshow', 'mdframework'),
- 'desc' => __('Selected = Show, Not Selected = Hide.', 'mdframework'),
- 'id' => 'show_top_slide_or_not',
- 'type' => 'checkbox');
- $options[] = array(
- 'name' => __('Choose how many slideshows would you like to have in HomePage', 'mdframework'),
- 'desc' => __('Choose the number of slideshows to be shown in HomePage', 'mdframework'),
- 'id' => 'slideshows_numbers',
- 'std' => '3',
- 'type' => 'radio',
- 'class' => 'tiny',
- 'options' => $slide_array);
- /* End of basic settings for slideshows */
- $options[] = array(
- 'name' => __('Select a Category to be Shown in TOP Slideshow', 'mdframework'),
- 'desc' => __('Choose the category to be shown in the slideshow, remember to set all posts images as Thumbnail', 'mdframework'),
- 'id' => 'top_slide_category_forum',
- 'type' => 'select',
- 'class' => 'mini',
- 'options' => $options_categories);
- $options[] = array(
- 'name' => __('Choose how many slides would you like to have in TOP slideshow', 'mdframework'),
- 'desc' => __('Choose the number of slides to be shown in TOP slideshow', 'mdframework'),
- 'id' => 'slide_number_top',
- 'std' => '5',
- 'type' => 'radio',
- 'class' => 'tiny',
- 'options' => $slide_array);
- $options[] = array(
- 'name' => __('Would you like to skip some Posts? Choose the number here', 'mdframework'),
- 'desc' => __('Choose the number of slides you would like to skip', 'mdframework'),
- 'id' => 'slide_skip_top',
- 'std' => '0',
- 'class' => 'tiny',
- 'type' => 'radio',
- 'options' => $slide_array);
- $options[] = array(
- 'name' => __('Select a Category to be Shown in First Slideshow', 'mdframework'),
- 'desc' => __('Choose thecategory to be shown in the First slideshow, remember to set all posts images as Thumbnail', 'mdframework'),
- 'id' => 'slide_category_forum_1',
- 'type' => 'select',
- 'class' => 'mini',
- 'options' => $options_categories);
- $options[] = array(
- 'name' => __('Choose how many slides would you like to have in First slideshow', 'mdframework'),
- 'desc' => __('Choose the number of slides to be shown in First slideshow', 'mdframework'),
- 'id' => 'number_slide_1',
- 'std' => '5',
- 'type' => 'radio',
- 'class' => 'tiny',
- 'options' => $slide_array);
- $options[] = array(
- 'name' => __('Would you like to skip some Posts? Choose the number here', 'mdframework'),
- 'desc' => __('Choose the number of slides you would like to skip', 'mdframework'),
- 'id' => 'slide_skip_1',
- 'std' => '0',
- 'class' => 'tiny',
- 'type' => 'radio',
- 'options' => $slide_array);
- $options[] = array(
- 'name' => __('Select a Category to be Shown in Second Slideshow', 'mdframework'),
- 'desc' => __('Choose the category to be shown in Second slideshow, remember to set all posts images as Thumbnail', 'mdframework'),
- 'id' => 'slide_category_forum_2',
- 'type' => 'select',
- 'class' => 'mini',
- 'options' => $options_categories);
- $options[] = array(
- 'name' => __('Choose how many slides would you like to have in second slideshow?', 'mdframework'),
- 'desc' => __('Choose the number of slides to be shown in Second slideshow', 'mdframework'),
- 'id' => 'number_slide_2',
- 'std' => '5',
- 'class' => 'tiny',
- 'type' => 'radio',
- 'options' => $slide_array);
- $options[] = array(
- 'name' => __('Would you like to skip some Posts? choose the number here', 'mdframework'),
- 'desc' => __('Choose the number of slides you would like to skip', 'mdframework'),
- 'id' => 'slide_skip_2',
- 'std' => '0',
- 'class' => 'tiny',
- 'type' => 'radio',
- 'options' => $slide_array);
- $options[] = array(
- 'name' => __('Select a Category to be Shown in Third Slideshow', 'mdframework'),
- 'desc' => __('Choose the category to be shown in the Third slideshow, remember to set all posts images as Thumbnail', 'mdframework'),
- 'id' => 'slide_category_forum_3',
- 'type' => 'select',
- 'class' => 'mini',
- 'options' => $options_categories);
- $options[] = array(
- 'name' => __('Choose how many slides would you like to have in Third slideshow', 'mdframework'),
- 'desc' => __('Choose the number of slides to be shown in third slideshow', 'mdframework'),
- 'id' => 'number_slide_3',
- 'std' => '5',
- 'type' => 'radio',
- 'class' => 'tiny',
- 'options' => $slide_array);
- $options[] = array(
- 'name' => __('Would you like to skip some Posts? Choose the number here', 'mdframework'),
- 'desc' => __('Choose the number of slides you would like to skip', 'mdframework'),
- 'id' => 'slide_skip_3',
- 'std' => '0',
- 'class' => 'tiny',
- 'type' => 'radio',
- 'options' => $slide_array);
- $options[] = array(
- 'name' => __('Select a Category to be Shown in Fourth Slideshow', 'mdframework'),
- 'desc' => __('Choose the category to be shown in the Fourth slideshow, remember to set all posts images as Thumbnail', 'mdframework'),
- 'id' => 'slide_category_forum_4',
- 'type' => 'select',
- 'class' => 'mini',
- 'options' => $options_categories);
- $options[] = array(
- 'name' => __('Choose how many slides would you like to have in Fourth slideshow', 'mdframework'),
- 'desc' => __('Choose the number of slides to be shown in Fourth slideshow', 'mdframework'),
- 'id' => 'number_slide_4',
- 'std' => '5',
- 'type' => 'radio',
- 'class' => 'tiny',
- 'options' => $slide_array);
- $options[] = array(
- 'name' => __('Would you like to skip some Posts? Choose the number here', 'mdframework'),
- 'desc' => __('Choose the number of slides you would like to skip', 'mdframework'),
- 'id' => 'slide_skip_4',
- 'std' => '0',
- 'class' => 'tiny',
- 'type' => 'radio',
- 'options' => $slide_array);
- $options[] = array(
- 'name' => __('Select a Category to be Shown in Fifth Slideshow', 'mdframework'),
- 'desc' => __('Choose the category to be shown in the Fifth slideshow, remember to set all posts images as Thumbnail', 'mdframework'),
- 'id' => 'slide_category_forum_5',
- 'type' => 'select',
- 'class' => 'mini',
- 'options' => $options_categories);
- $options[] = array(
- 'name' => __('Choose how many slides would you like to have in Fifth slideshow', 'mdframework'),
- 'desc' => __('Choose the number of slides to be shown in Fifth slideshow', 'mdframework'),
- 'id' => 'number_slide_5',
- 'std' => '5',
- 'type' => 'radio',
- 'class' => 'tiny',
- 'options' => $slide_array);
- $options[] = array(
- 'name' => __('Would you like to skip some Posts? Choose the number here', 'mdframework'),
- 'desc' => __('Choose the number of slides you would like to skip', 'mdframework'),
- 'id' => 'slide_skip_5',
- 'std' => '0',
- 'class' => 'tiny',
- 'type' => 'radio',
- 'options' => $slide_array);
- $options[] = array(
- 'name' => __('Low panels Area', 'mdframework'),
- 'desc' => __("From now on you'll be asked to select settings for bottom panels.", 'mdframework'),
- 'type' => 'info');
- $options[] = array(
- 'name' => __('Select a Category to be Shown in Low Left Area', 'mdframework'),
- 'desc' => __('Choose the category to be shown , remember to set all posts images as Thumbnail', 'mdframework'),
- 'id' => 'low_left_category_forum',
- 'type' => 'select',
- 'class' => 'mini',
- 'options' => $options_categories);
- $options[] = array(
- 'name' => __('Choose how many posts would you like to have in this area', 'mdframework'),
- 'desc' => __('Choose the number of posts to be shown', 'mdframework'),
- 'id' => 'low_left_num_forum',
- 'std' => '5',
- 'class' => 'tiny',
- 'type' => 'radio',
- 'options' => $slide_array);
- $options[] = array(
- 'name' => __('Would you like to skip some Posts? Choose the number here', 'mdframework'),
- 'desc' => __('Choose the number of posts you would like to skip', 'mdframework'),
- 'id' => 'low_left_offset_forum',
- 'std' => '0',
- 'class' => 'tiny',
- 'type' => 'radio',
- 'options' => $slide_array);
- return $options;
- }
- /*
- * This is an example of how to add custom scripts to the options panel.
- * This example shows/hides an option when a checkbox is clicked.
- */
- add_action('optionsframework_custom_scripts', 'optionsframework_custom_scripts');
- function optionsframework_custom_scripts() { ?>
- <script type="text/javascript">
- jQuery(document).ready(function($) {
- $('#example_showhidden').click(function() {
- $('#section-example_text_hidden').fadeToggle(400);
- $('#section-showhidden_slide_img_1').fadeToggle(400);
- $('#section-alt_title_tag_slide_1').fadeToggle(400);
- $('#section-showhidden_slide_img_2').fadeToggle(400);
- $('#section-alt_title_tag_slide_2').fadeToggle(400);
- $('#section-showhidden_slide_img_3').fadeToggle(400);
- $('#section-alt_title_tag_slide_3').fadeToggle(400);
- $('#section-showhidden_slide_img_4').fadeToggle(400);
- $('#section-alt_title_tag_slide_4').fadeToggle(400);
- $('#section-showhidden_slide_img_5').fadeToggle(400);
- $('#section-alt_title_tag_slide_5').fadeToggle(400);
- });
- if ($('#example_showhidden:checked').val() !== undefined) {
- $('#section-example_text_hidden').show();
- $('#section-showhidden_slide_img_1').show();
- $('#section-alt_title_tag_slide_1').show();
- $('#section-showhidden_slide_img_2').show();
- $('#section-alt_title_tag_slide_2').show();
- $('#section-showhidden_slide_img_3').show();
- $('#section-alt_title_tag_slide_3').show();
- $('#section-showhidden_slide_img_4').show();
- $('#section-alt_title_tag_slide_4').show();
- $('#section-showhidden_slide_img_5').show();
- $('#section-alt_title_tag_slide_5').show();
- }
- });
- jQuery(document).ready(function($) {
- $('#seo_showhidden').click(function() {
- $('#section-meta_tag_title_home_hotel_style').fadeToggle(400);
- $('#section-meta_tag_keyword_home_hotel_style').fadeToggle(400);
- $('#section-meta_tag_description_home_hotel_style').fadeToggle(400);
- $('#section-meta_tag_copyright_home_hotel_style').fadeToggle(400);
- $('#section-meta_tag_author_home_hotel_style').fadeToggle(400);
- });
- if ($('#seo_showhidden:checked').val() !== undefined) {
- $('#section-meta_tag_title_home_hotel_style').show();
- $('#section-meta_tag_keyword_home_hotel_style').show();
- $('#section-meta_tag_description_home_hotel_style').show();
- $('#section-meta_tag_copyright_home_hotel_style').show();
- $('#section-meta_tag_author_home_hotel_style').show();
- }
- });
- jQuery(document).ready(function($) {
- $('#center_showhidden').click(function() {
- $('#section-first_image_left').fadeToggle(400);
- $('#section-alt_title_tag_first_image').fadeToggle(400);
- $('#section-first_area_hotel').fadeToggle(400);
- $('#section-second_area_hotel').fadeToggle(400);
- $('#section-second_image_right').fadeToggle(400);
- $('#section-alt_title_tag_second_image').fadeToggle(400);
- });
- if ($('#center_showhidden:checked').val() !== undefined) {
- $('#section-first_image_left').show();
- $('#section-alt_title_tag_first_image').show();
- $('#section-first_area_hotel').show();
- $('#section-second_area_hotel').show();
- $('#section-second_image_right').show();
- $('#section-alt_title_tag_second_image').show();
- }
- });
- jQuery(document).ready(function($) {
- $('#footer_showhidden').click(function() {
- $('#section-hotel_footer_left').fadeToggle(400);
- $('#section-first_area_hotel').fadeToggle(400);
- $('#section-hotel_footer_center').fadeToggle(400);
- $('#section-hotel_footer_right').fadeToggle(400);
- });
- if ($('#footer_showhidden:checked').val() !== undefined) {
- $('#section-hotel_footer_left').show();
- $('#section-first_area_hotel').show();
- $('#section-hotel_footer_center').show();
- $('#section-hotel_footer_right').show();
- }
- });
- jQuery(document).ready(function($) {
- $('#colors_showhidden').click(function() {
- $('#section-hotel_colorpicker_body_background').fadeToggle(400);
- $('#section-hotel_colorpicker_header_background').fadeToggle(400);
- $('#section-hotel_colorpicker_content_background').fadeToggle(400);
- $('#section-hotel_colorpicker_first_area_background').fadeToggle(400);
- $('#section-hotel_colorpicker_second_area_background').fadeToggle(400);
- $('#section-hotel_colorpicker_footer_background').fadeToggle(400);
- $('#section-hotel_colorpicker_foot1_background').fadeToggle(400);
- $('#section-hotel_colorpicker_foot2_background').fadeToggle(400);
- $('#section-hotel_colorpicker_foot3_background').fadeToggle(400);
- });
- if ($('#colors_showhidden:checked').val() !== undefined) {
- $('#section-hotel_colorpicker_body_background').show();
- $('#section-hotel_colorpicker_header_background').show();
- $('#section-hotel_colorpicker_content_background').show();
- $('#section-hotel_colorpicker_first_area_background').show();
- $('#section-hotel_colorpicker_second_area_background').show();
- $('#section-hotel_colorpicker_footer_background').show();
- $('#section-hotel_colorpicker_foot1_background').show();
- $('#section-hotel_colorpicker_foot2_background').show();
- $('#section-hotel_colorpicker_foot3_background').show();
- }
- });
- </script>
- <?php
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement