function airballoon_css_layout() { // Get Theme Options from Database $theme_options = airballoon_theme_options(); // Switch Sidebar to left if (isset($theme_options['layout']) and $theme_options['layout'] == 'left-sidebar') { echo '<style type="text/css"> @media only screen and (min-width: 60em) { #content { float: right; padding-right: 0; padding-left: 2.2em; } #sidebar { float: left; } } </style>'; } // Change Layout to fullwidth if (isset($theme_options['layout']) and $theme_options['layout'] == 'fullwidth') { echo '<style type="text/css"> #wrapper { max-width: 1060px; } #content { float: none; padding: 0; width: 100%; } </style>'; } }
function airballoon_custom_jscript_slider() { // Get Theme Options from Database $theme_options = airballoon_theme_options(); // Set Parameters array $params = array(); // Define Slider Animation if (isset($theme_options['slider_animation'])) { $params['animation'] = esc_attr($theme_options['slider_animation']); } // Define Slider Speed if (isset($theme_options['slider_speed'])) { $params['speed'] = esc_attr($theme_options['slider_speed']); } // Passing Parameters to Javascript wp_localize_script('airballoon-lite-jquery-frontpage_slider', 'airballoon_slider_params', $params); }
function airballoon_enqueue_scripts() { // Get Theme Options from Database $theme_options = airballoon_theme_options(); // Register and Enqueue Stylesheet wp_enqueue_style('airballoon-lite-stylesheet', get_stylesheet_uri()); // Register Genericons wp_enqueue_style('airballoon-lite-genericons', get_template_directory_uri() . '/css/genericons.css'); // Register and Enqueue FlexSlider JS and CSS if necessary if (isset($theme_options['slider_activated']) and $theme_options['slider_activated'] == true) { // FlexSlider CSS wp_enqueue_style('airballoon-lite-flexslider', get_template_directory_uri() . '/css/flexslider.css'); // FlexSlider JS wp_enqueue_script('airballoon-lite-jquery-flexslider', get_template_directory_uri() . '/js/jquery.flexslider-min.js', array('jquery')); // Register and enqueue slider.js wp_enqueue_script('airballoon-lite-jquery-frontpage_slider', get_template_directory_uri() . '/js/slider.js', array('airballoon-lite-jquery-flexslider')); } // Register and enqueue navigation.js wp_enqueue_script('airballoon-lite-jquery-navigation', get_template_directory_uri() . '/js/navigation.js', array('jquery')); // Register and Enqueue default fonts wp_enqueue_style('airballoon-lite-default-font', '//fonts.googleapis.com/css?family=Fjalla+One'); wp_enqueue_style('airballoon-lite-title-font', '//fonts.googleapis.com/css?family=Lato'); }
function airballoon_display_thumbnail_single() { // Get Theme Options from Database $theme_options = airballoon_theme_options(); // Display Post Thumbnail if activated if (isset($theme_options['post_thumbnails_single']) and $theme_options['post_thumbnails_single'] == true) { the_post_thumbnail('featured_image', array('class' => 'alignleft')); } }
<?php // Get Theme Options from Database $theme_options = airballoon_theme_options(); ?> <div id="footer-wrap"> <footer id="footer" class="clearfix" role="contentinfo"> <nav id="footernav" class="clearfix" role="navigation"> <?php // Get Navigation out of Theme Options wp_nav_menu(array('theme_location' => 'footer', 'container' => false, 'menu_id' => 'footernav-menu', 'echo' => true, 'fallback_cb' => '', 'before' => '', 'after' => '', 'link_before' => '', 'link_after' => '', 'depth' => 1)); ?> </nav> <div id="credit-link"><?php airballoon_credit_link(); ?> </div> </footer> </div> </div><!-- end #wrapper --> <?php wp_footer(); ?> </body> </html>