__( 'Sidebar', 'nice' ), 'id' => 'sidebar-1', 'before_widget' => '", 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => __( 'Footer One', 'nice' ), 'id' => 'sidebar-3', 'description' => __( 'An optional widget area for your site footer', 'nice' ), 'before_widget' => '", 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => __( 'Footer Two', 'nice' ), 'id' => 'sidebar-4', 'description' => __( 'An optional widget area for your site footer', 'nice' ), 'before_widget' => '", 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => __( 'Footer Three', 'nice' ), 'id' => 'sidebar-5', 'description' => __( 'An optional widget area for your site footer', 'nice' ), 'before_widget' => '", 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => __( 'Footer Four', 'nice' ), 'id' => 'sidebar-6', 'description' => __( 'An optional widget area for your site footer', 'nice' ), 'before_widget' => '", 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => __( 'Home top', 'nice' ), 'id' => 'sidebar-7', 'description' => __( 'An optional widget area for your site footer', 'nice' ), 'before_widget' => '", 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => __( 'Home Block1', 'nice' ), 'id' => 'sidebar-8', 'description' => __( 'An optional widget area for your site footer', 'nice' ), 'before_widget' => '", 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => __( 'Home Block2', 'nice' ), 'id' => 'sidebar-9', 'description' => __( 'An optional widget area for your site footer', 'nice' ), 'before_widget' => '", 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => __( 'Home Block3', 'nice' ), 'id' => 'sidebar-10', 'description' => __( 'An optional widget area for your site footer', 'nice' ), 'before_widget' => '", 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => __( 'Testimonials', 'nice' ), 'id' => 'sidebar-11', 'description' => __( 'An optional widget area for your site footer', 'nice' ), 'before_widget' => '", 'before_title' => '

', 'after_title' => '

', ) ); } if ( ! isset( $content_width ) ) $content_width = 584; add_action( 'after_setup_theme', 'nice_setup' ); if ( ! function_exists( 'nice_setup' ) ): function nice_setup() { add_editor_style(); require( get_template_directory() . '/widgets.php' ); add_theme_support( 'automatic-feed-links' ); register_nav_menu( 'primary', __( 'Primary Menu', 'nice' ) ); add_theme_support( 'post-formats', array( 'aside', 'link', 'gallery', 'status', 'quote', 'image' ) ); add_theme_support( 'custom-background', array( 'default-color' => $default_background_color, ) ); set_post_thumbnail_size( $custom_header_support['width'], $custom_header_support['height'], true ); add_image_size( 'large-feature', $custom_header_support['width'], $custom_header_support['height'], true ); add_image_size( 'small-feature', 500, 300 ); register_default_headers( array( 'hanoi' => array( 'url' => '%s/images/banner/home-banner.jpg', 'thumbnail_url' => '%s/images/banner/home-banner-thumbnail.jpg', 'description' => __( 'Hanoi Plant', 'nice' ) ) ) ); } endif; if ( ! function_exists( 'nice_header' ) ) : add_theme_support( 'post-thumbnails' ); $custom_header_support = array( 'default-text-color' => '000', 'width' => apply_filters( 'nice_header_image_width', 1000 ), 'height' => apply_filters( 'nice_header_image_height', 400 ), 'flex-height' => true, 'random-default' => true, 'wp-head-callback' => 'nice_header', 'admin-head-callback' => 'nice_adminheader', 'admin-preview-callback' => 'nice_adminheader_image', ); add_theme_support( 'custom-header', $custom_header_support ); if ( ! function_exists( 'get_custom_header' ) ) { define( 'HEADER_TEXTCOLOR', $custom_header_support['default-text-color'] ); define( 'HEADER_IMAGE', '' ); define( 'HEADER_IMAGE_WIDTH', $custom_header_support['width'] ); define( 'HEADER_IMAGE_HEIGHT', $custom_header_support['height'] ); add_custom_image_header( $custom_header_support['wp-head-callback'], $custom_header_support['admin-head-callback'], $custom_header_support['admin-preview-callback'] ); add_custom_background(); } function nice_header() { $text_color = get_header_textcolor(); if ( $text_color == HEADER_TEXTCOLOR ) return; ?> ' . __( 'Continue reading →', 'nice' ) . ''; } function nice_adminheader_image() { ?>

onclick="return false;" href="">

>
max_num_pages > 1 ) : ?> ]*?href=[\'"](.+?)[\'"]/is', get_the_content(), $matches ) ) return false; return esc_url_raw( $matches[1] ); } function nice_footer_sidebar_class() { $count = 0; if ( is_active_sidebar( 'sidebar-3' ) ) $count++; if ( is_active_sidebar( 'sidebar-4' ) ) $count++; if ( is_active_sidebar( 'sidebar-5' ) ) $count++; if ( is_active_sidebar( 'sidebar-6' ) ) $count++; $class = ''; switch ( $count ) { case '1': $class = 'one'; break; case '2': $class = 'two'; break; case '3': $class = 'three'; break; case '4': $class = 'four'; break; } if ( $class ) echo 'class="' . $class . '"'; } if ( ! function_exists( 'nice_comment' ) ) : function nice_comment( $comment, $args, $depth ) { $GLOBALS['comment'] = $comment; switch ( $comment->comment_type ) : case 'pingback' : case 'trackback' : ?>
  • ', '' ); ?>

  • id="li-comment-">
    comment_parent ) $avatar_size = 39; echo get_avatar( $comment, $avatar_size ); printf( __( '%1$s on %2$s said:', 'nice' ), sprintf( '%s', get_comment_author_link() ), sprintf( '', esc_url( get_comment_link( $comment->comment_ID ) ), get_comment_time( 'c' ), sprintf( __( '%1$s at %2$s', 'nice' ), get_comment_date(), get_comment_time() ) ) ); ?> ', '' ); ?>
    comment_approved == '0' ) : ?>
    __( 'Reply ↓', 'nice' ), 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>
    Posted on by ', 'nice' ), esc_url( get_permalink() ), esc_attr( get_the_time() ), esc_attr( get_the_date( 'c' ) ), esc_html( get_the_date() ), esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), esc_attr( sprintf( __( 'View all posts by %s', 'nice' ), get_the_author() ) ), get_the_author() ); } endif; ?>