function of_options() { $shortname = "szia"; //Access the WordPress Categories via an Array //Access the WordPress Pages via an Array $of_pages = array(); $of_pages_obj = get_pages('sort_column=post_parent,menu_order'); foreach ($of_pages_obj as $of_page) { $of_pages[$of_page->ID] = $of_page->post_name; } $of_pages_tmp = array_unshift($of_pages, "Select a page:"); //Testing $of_options_select = array("one", "two", "three", "four", "five"); $of_options_radio = array("one" => "One", "two" => "Two", "three" => "Three", "four" => "Four", "five" => "Five"); //Sample Homepage blocks for the layout manager (sorter) $of_options_homepage_blocks = array("disabled" => array("placebo" => "placebo", "block_one" => "Block One", "block_two" => "Block Two", "block_three" => "Block Three"), "enabled" => array("placebo" => "placebo", "block_four" => "Block Four")); //Stylesheets Reader $alt_stylesheet_path = LAYOUT_PATH; $alt_stylesheets = array(); if (is_dir($alt_stylesheet_path)) { if ($alt_stylesheet_dir = opendir($alt_stylesheet_path)) { while (($alt_stylesheet_file = readdir($alt_stylesheet_dir)) !== false) { if (stristr($alt_stylesheet_file, ".css") !== false) { $alt_stylesheets[] = $alt_stylesheet_file; } } } } /*-----------------------------------------------------------------------------------*/ /* TO DO: Add options/functions that use these */ /*-----------------------------------------------------------------------------------*/ //More Options $uploads_arr = wp_upload_dir(); $all_uploads_path = $uploads_arr['path']; $all_uploads = get_option('of_uploads'); $other_entries = array("Select a number:", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19"); $body_repeat = array("no-repeat", "repeat-x", "repeat-y", "repeat"); $body_pos = array("top left", "top center", "top right", "center left", "center center", "center right", "bottom left", "bottom center", "bottom right"); // Image Alignment radio box $of_options_thumb_align = array("alignleft" => "Left", "alignright" => "Right", "aligncenter" => "Center"); // Image Links to Options $of_options_image_link_to = array("image" => "The Image", "post" => "The Post"); $url = get_template_directory_uri() . '/admin/assets/images/'; /*-----------------------------------------------------------------------------------*/ /* The Options Array */ /*-----------------------------------------------------------------------------------*/ // Set the Options Array global $of_options, $of_menus; $of_options = $of_menus = array(); /* Option Page 1 - Header Options */ $of_menus = array(array("name" => 'General Options', "id" => 'of_general_op'), array("name" => 'Sliders', "id" => "of_sliders_op"), array("name" => 'Custom CSS', "id" => "of_custom_css_op"), array("name" => "Backup Options", "id" => "of_backup_op")); //end $of_menus[] $of_options[] = array('related' => 'of_general_op', 'elements' => array(array("name" => 'Logo', "desc" => 'Upload a custom logo for your Website.', "id" => $shortname . "_sitelogo", "std" => '', "type" => "media"), array("name" => 'Szia Skin', "id" => $shortname . "_skin", "std" => "default", "type" => "select", "options" => array('default' => 'Default', 'light-green' => 'Light Green', 'light-red' => 'Light Red', 'midnight-blue' => 'Midnight Blue', 'orange' => 'Orange', 'yellow' => 'Yellow', 'custom' => 'Custom')), array("name" => 'Homepage Preloader Status:', "id" => $shortname . "_preloader_status", "std" => '1', "type" => "iphone_checkboxes"), array("name" => 'Szia About Page:', "id" => $shortname . "_about_page", "std" => "0", "type" => "select", "options" => get_category_page_array()), array("name" => 'Szia Services Page:', "id" => $shortname . "_services_page", "std" => "0", "type" => "select", "options" => get_category_page_array()), array("name" => 'Szia Clients Page:', "id" => $shortname . "_clients_page", "std" => "0", "type" => "select", "options" => get_category_page_array()), array("name" => 'Szia Work Page:', "id" => $shortname . "_work_page", "std" => "0", "type" => "select", "options" => get_category_page_array()), array("name" => 'Szia Contact Page:', "id" => $shortname . "_contact_page", "std" => "0", "type" => "select", "options" => get_category_page_array()), array("name" => 'Front Page Video Template Background Video Id', "desc" => '<strong>Youtube only</strong>', "id" => $shortname . "_fp3_video_bg_id", "std" => "tDvBwPzJ7dY", "type" => "textarea"), array("name" => 'Google Analytics Code', "id" => $shortname . "_google_analytics", "std" => "", "type" => "textarea"))); /*end General Options*/ /*start Sliders*/ $primary_menu_pages = szia_nav_menu_items(); $primary_menu_array = array('' => 'Select'); if (!empty($primary_menu_pages)) { foreach ($primary_menu_pages as $primary_menu_item) { $primary_menu_array[$primary_menu_item[2]] = $primary_menu_item[1]; } } $of_options[] = array('related' => 'of_sliders_op', 'elements' => array(array("name" => "Front Page Image Sliders", "id" => "{$shortname}_home_flex_slider", "std" => "", "type" => "slider"), array("name" => "Front Page Text Sliders", "id" => "{$shortname}_home_parallax_slider", "std" => "", "type" => "slider"), array("name" => "Front Page Text Slider Additional Text", "id" => "{$shortname}_home_parallax_slider_add_text", "std" => '<a class="btn_big" href="#">Buy this theme</a>', "type" => "textarea"), array("name" => 'Front Page Text Slider Next', "id" => $shortname . "_home_parallax_slider_next_section", "std" => "", "type" => "select", "options" => $primary_menu_array), array("name" => "Our Clients Options", "id" => "{$shortname}_client_options", "std" => "", "type" => "slider"))); /*end Sliders*/ /*start Custom CSS*/ $of_options[] = array('related' => 'of_custom_css_op', 'elements' => array(array("name" => 'Text Color', "id" => $shortname . "_text_color", "std" => "", "type" => "color"), array("name" => 'Background Color', "id" => $shortname . "_bg_color", "std" => "", "type" => "color"), array("name" => 'Border Color', "id" => $shortname . "_border_color", "std" => "", "type" => "color"), array("name" => 'Custom stylesheet', "id" => $shortname . "_custom_stylesheet", "std" => "", "type" => "textarea"))); /*end Custom CSS*/ /*start Backup Options*/ $of_options[] = array('related' => 'of_backup_op', 'elements' => array(array("name" => "Backup and Restore Options", "id" => $shortname . "of_backup", "std" => "", "type" => "backup", "desc" => 'You can use the two buttons below to backup your current options, and then restore it back at a later time. This is useful if you want to experiment on the options but would like to keep the old settings in case you need it back.'), array("name" => "Transfer Theme Options Data", "id" => $shortname . "_transfer", "std" => "", "type" => "transfer", "desc" => 'You can tranfer the saved options data between different installs by copying the text inside the text box. To import data from another install, replace the data in the text box with the one from another install and click "Import Options". '))); /*end Backup Options*/
<div id="home_video"> <canvas class="overlay"></canvas> <!--Home Quotes--> <div class="landing_text"> <ul class="home_quotes"> <?php foreach ($smof_data['szia_home_parallax_slider'] as $slide) { ?> <li> <h4><?php echo $slide['title']; ?> </h4> </li> <?php } ?> </ul> <?php echo isset($smof_data['szia_home_parallax_slider_add_text']) ? $smof_data['szia_home_parallax_slider_add_text'] : ''; ?> </div> <?php $aboutlink = '#'; if (isset($smof_data['szia_home_parallax_slider_next_section'])) { $aboutlink .= $smof_data['szia_home_parallax_slider_next_section']; } ?>
?> </div> <div class="footer_secondary"> <?php if (is_active_sidebar('footer2')) { dynamic_sidebar('footer2'); } ?> </div> </div> </div> <?php $menu_items = szia_nav_menu_items(); $link = '#home'; if (!empty($menu_items)) { $link = "#{$menu_items[0][2]}"; } ?> <a href="<?php echo $link; ?> " id="to_top"></a> </footer> <?php wp_footer();
?> </title> <link rel="profile" href="http://gmpg.org/xfn/11" /> <link rel="pingback" href="<?php bloginfo('pingback_url'); ?> " /> <?php // Loads HTML5 JavaScript file to add support for HTML5 elements in older IE versions. ?> <!--[if lt IE 9]> <script src="<?php echo get_template_directory_uri(); ?> /js/html5.js" type="text/javascript"></script> <![endif]--> <?php wp_head(); ?> </head> <body <?php body_class(); ?> > <!-- TOP HEADER BAR / Start =========================================== --> <header> <nav> <a class="logo_nav external" href="<?php