__( 'Header Sidebar', 'acer' ), 'id' => 'sidebar_header', 'description' => __( 'Is in the Header of the theme', 'acer' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

' ) ); //Registering General Sidebar register_sidebar( array( 'name' => __( 'General Sidebar', 'acer' ), 'id' => 'sidebar_general', 'description' => __( 'Is at the right middle side of the theme', 'acer' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

' ) ); //Registering Footer Sidebar 1 register_sidebar( array( 'name' => __( 'Footer Sidebar 1', 'acer' ), 'id' => 'sidebar_footer_one', 'description' => __( 'Is at the footer of the theme', 'acer' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

' ) ); //Registering Footer Sidebar 2 register_sidebar( array( 'name' => __( 'Footer Sidebar 2', 'acer' ), 'id' => 'sidebar_footer_two', 'description' => __( 'Is at the footer of the theme', 'acer' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

' ) ); //Registering Footer Sidebar 3 register_sidebar( array( 'name' => __( 'Footer Sidebar 3', 'acer' ), 'id' => 'sidebar_footer_three', 'description' => __( 'Is at the footer of the theme', 'acer' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

' ) ); } add_action( 'widgets_init', 'acer_widgets_init'); // Registering Custom Menus // ==================================================================== function acer_register_menus() { register_nav_menus( array( 'primary-menu' => __( 'Primary Menu', 'acer' ), 'secondary-menu' => __( 'Secondary Menu', 'acer' ), ) ); } add_action( 'init', 'acer_register_menus' ); function acer_menu($menu) { if ( has_nav_menu( $menu.'-menu' ) ) { ?>
$menu.'-menu', 'menu_class' => $menu, 'fallback_cb' => '|', 'walker' => new acer_Nav_Walker() )); ?>
db_fields['id']; if(isset($children[$el->$id])) $el->classes[] = 'has_children'; parent::display_element($el, $children, $max_depth, $depth, $args, $output); $class_names = $value = ''; $classes = empty( $item->classes ) ? array() : (array) $item->classes; $class_names = join( ' ', apply_filters( 'nav_menu_css_class', array_filter( $classes ), $item ) ); $class_names = ''; } } // Sticky Menu fix // ==================================================================== function move_admin_bar() { echo ''; } add_action( 'admin_bar_menu', 'move_admin_bar' ); // The Excerpt // ==================================================================== function custom_excerpt_length( $length ) { return get_option('acer_ex_length_index'); } add_filter( 'excerpt_length', 'custom_excerpt_length', 999 ); // Custom background support // ==================================================================== add_theme_support( 'custom-background', array( // Background color default 'default-color' => '000', // Background image default 'default-image' => get_template_directory_uri() . 'lib/images/background.jpg' ) ); $args = array( 'width' => 1280, 'height' => 300, 'default-image' => get_template_directory_uri() . '/images/header.jpg', 'uploads' => true, ); add_theme_support( 'custom-header', $args , false); add_theme_support('post-thumbnails' ); add_theme_support( 'automatic-feed-links' ); add_editor_style(); if ( ! isset( $content_width ) ) $content_width = 700; function show_posts_nav() { global $wp_query; return ($wp_query->max_num_pages > 1); } // Custom Logo or Normal Title // ==================================================================== function acer_logo() { ?>

<?php echo get_bloginfo('name'); ?>


comment_type ) : case 'pingback' : case 'trackback' : ?>
  • id="li-comment-">
    says:', 'acer' ), sprintf( '%s', get_comment_author_link() ) ); ?>
    comment_approved == '0' ) : ?>
    $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>
    ID); $args = array( 'posts_per_page' => 4, 'post__in' => $tags, 'orderby' => 'rand' ); $the_query = new WP_Query( $args ); echo '