'eeeeee', ); add_theme_support( 'custom-background', $defaults ); // This theme uses wp_nav_menu() in one location. register_nav_menu( 'primary', __( 'Primary Menu', 'bicubic' ) ); //add custom-header support $args = array( 'width' => 940, 'height' => 180, 'uploads' => true, 'header-text' => true, 'default-text-color' => '63ac2e', ); add_theme_support( 'custom-header', $args ); //add editor_style support add_editor_style( get_template_directory_uri() . '/css/editor-style.css' ); } function bicubic_register_sidebar() { /* Right sidebar */ register_sidebar( array( 'name' => __( 'Main Sidebar', 'bicubic' ), 'id' => 'bicubic-sidebar', 'description' => __( 'Widgets in this area will be shown on all posts and pages.', 'bicubic' ), 'before_widget' => '
  • ', 'after_widget' => '
  • ', 'before_title' => '

    ', 'after_title' => '

    ', ) ); } // register scripts and styles function bicubic_scripts_styles() { wp_enqueue_script( 'bicubic-scripts', get_template_directory_uri() . '/js/scripts.js', array( 'jquery' ) ); wp_enqueue_script( 'bicubic-placeholder', get_template_directory_uri() . '/js/jquery.placeholder.js', array( 'jquery' ) ); // load script for comment-reply if ( is_singular() ) { wp_enqueue_script( 'comment-reply' ); } // loads main stylesheet. wp_enqueue_style( 'bicubic-style', get_stylesheet_uri() ); // loads the internet Explorer specific stylesheet. wp_enqueue_style( 'bicubic-ie', get_template_directory_uri() . '/css/ie.css', array( 'bicubic-style' ) ); wp_style_add_data( 'bicubic-ie', 'conditional', 'lt IE 9' ); $string_js = array( 'chooseFile' => __( 'Choose file...', 'bicubic' ), 'fileNotSelected' => __( 'File is not selected', 'bicubic' ), 'homeUrl' => home_url(), ); wp_localize_script( 'bicubic-script', 'bicubicStringJs', $string_js ); } //this function used as callback to wp_list_comments() function bicubic_comment( $comment, $args, $depth ) { $GLOBALS['comment'] = $comment; ?>
  • id="li-comment-">
    comment_approved ) : // show this if comment is not approved ?>
    __( 'Reply', 'bicubic' ), 'max_depth' => $args['max_depth'], 'depth' => $depth, ); comment_reply_link( $args ); // edit link link for trackback and pingback looks differently if ( 'pingback' == $comment->comment_type || 'trackback' == $comment->comment_type ) { edit_comment_link( __( '(Edit)', 'bicubic' ), '', '' ); } else { edit_comment_link( __( '(Edit)', 'bicubic' ), ' | ', '' ); } ?>