__( 'Reply', 'buzz' ), 'after' => '', 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>
__('Main menu', 'buzz'), 'footer' => __('Footer', 'buzz') )); add_image_size( 'portfolio', 216, 128, true ); /** * Sets up the content width value based on the theme's design and stylesheet. */ if ( ! isset( $content_width ) ) $content_width = 980; // This theme styles the visual editor with editor-style.css to match the theme style. add_editor_style(); // Adds RSS feed links to
for posts and comments. add_theme_support( 'automatic-feed-links' ); // Add posts thumbs add_theme_support( 'post-thumbnails' ); /* * This theme supports custom background color and image, and here * we also set up the default background color. */ //add_theme_support( 'custom-background', array( // 'default-color' => 'fff', //) ); /* * Makes Phoenix available for translation. * * Translations can be added to the /languages/ directory. */ load_theme_textdomain( 'buzz', get_template_directory() . '/languages' ); } endif; /** * A safe way of adding JavaScripts to a WordPress generated page. */ if (!is_admin()) add_action('wp_enqueue_scripts', 'buzz_js'); if (!function_exists('buzz_js')) { function buzz_js() { // JS at the bottom for fast page loading. // except for Modernizr which enables HTML5 elements & feature detects. wp_enqueue_script('jquery'); wp_enqueue_script('modernizr', get_template_directory_uri() . '/includes/foundation/js/vendor/custom.modernizr.js', array('jquery'), '2.6.2', false); wp_enqueue_script('zepto', get_template_directory_uri() . '/includes/foundation/js/vendor/zepto.js', array('jquery'), '1.0', false); wp_enqueue_script('foundation', get_template_directory_uri() . '/includes/foundation/js/foundation.min.js', array('jquery'), '4.3.1', false); wp_enqueue_script('tabs', get_template_directory_uri() . '/includes/js/tabs.js', array('jquery'), '1.8.21', false); wp_enqueue_script('main', get_template_directory_uri() . '/js/main.js', array('jquery'), '1.0', false); if ( is_singular() ) wp_enqueue_script( "comment-reply" ); // stylesheet wp_enqueue_style('foundation-style', get_template_directory_uri() . '/includes/foundation/css/foundation.min.css', false, '4.1.6'); wp_enqueue_style('buzz-style', get_stylesheet_uri(), false, '1'); } } function buzz_widgets_init() { register_sidebar(array( 'name' => __('Sidebar', 'buzz'), 'id' => 'sidebar', 'before_title' => ' ' )); register_sidebar(array( 'name' => __('Footer left', 'buzz'), 'id' => 'footer-left', 'before_title' => '', 'before_widget' => '' )); register_sidebar(array( 'name' => __('Footer Center', 'buzz'), 'id' => 'footer-center', 'before_title' => '', 'before_widget' => '' )); register_sidebar(array( 'name' => __('Footer Right', 'buzz'), 'id' => 'footer-right', 'before_title' => '', 'before_widget' => '' )); } add_action( 'widgets_init', 'buzz_widgets_init' ); // Responsive slider function buzz_responsive_slider(){ if (get_option('buzz_slider_cat')){ $cat = get_option('buzz_slider_cat'); } else { $cat = 1; } $query = new WP_Query('cat='.$cat.'&posts_per_page=-1'); ?>', '' ); ?>