. add_theme_support( 'automatic-feed-links' ); // This theme uses wp_nav_menu() in one location. register_nav_menu( 'primary', __( 'Primary Menu', 'astoned' ) ); // Add support for a variety of post formats add_theme_support( 'post-formats', array( 'aside', 'link', 'gallery', 'status', 'quote', 'image' ) ); // Add support for custom backgrounds. add_theme_support( 'custom-background', array( 'default-color' => $default_background_color, ) ); add_theme_support( 'post-thumbnails' ); } endif; function astoned_scripts(){ wp_enqueue_style( 'astoned', get_stylesheet_uri() ); } add_action( 'wp_enqueue_scripts', 'astoned_scripts' ); function astoned_init_sidebar() { register_sidebar( array( 'name' => __( 'Top', 'astoned' ), 'description' => __( 'Sidebar Description', 'text_astoned' ), 'id' => 'sidebar-1', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); } add_action( 'widgets_init', 'astoned_init_sidebar' ); function astoned_post_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 ); /* translators: 1: comment author, 2: date and time */ printf( __( '%1$s on %2$s said:', 'astoned' ), sprintf( '%s', get_comment_author_link() ), sprintf( '', esc_url( get_comment_link( $comment->comment_ID ) ), get_comment_time( 'c' ), /* translators: 1: date, 2: time */ sprintf( __( '%1$s at %2$s', 'astoned' ), get_comment_date(), get_comment_time() ) ) ); ?> ', '' ); ?>
    comment_approved == '0' ) : ?>
    __( 'Reply ', 'astoned' ), 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>
    max_num_pages < 2 ) { return; } $paged = get_query_var( 'paged' ) ? intval( get_query_var( 'paged' ) ) : 1; $pagenum_link = html_entity_decode(get_pagenum_link() ); $query_args = array(); $url_parts = explode( '?', $pagenum_link ); if ( isset( $url_parts[1] ) ) { wp_parse_str( $url_parts[1], $query_args ); } $pagenum_link = remove_query_arg( array_keys( $query_args ), $pagenum_link ); $pagenum_link = trailingslashit( $pagenum_link ) . '%_%'; $format = $GLOBALS['wp_rewrite']->using_index_permalinks() && ! strpos( $pagenum_link, 'index.php' ) ? 'index.php/' : ''; $format .= $GLOBALS['wp_rewrite']->using_permalinks() ? user_trailingslashit( 'page/%#%', 'paged' ) : '?paged=%#%'; // Set up paginated links. $page_links = paginate_links( array( 'base' => $pagenum_link, 'format' => $format, 'total' => $GLOBALS['wp_query']->max_num_pages, 'current' => $paged, 'mid_size' => 1, 'add_args' => array_map( 'urlencode', $query_args ), 'prev_text' => __( '← Previous', 'astoned' ), 'next_text' => __( 'Next →', 'astoned' ), ) ); if ( $page_links ) : ?> = 2 || $page >= 2 ) { $title = "$title $sep " . sprintf( __( 'Page %s', 'astoned' ), max( $paged, $page ) ); } return $title; } add_filter( 'wp_title', 'astoned_wp_title', 10, 2 ); function astoned_date_time(){ $update_time_string = ''; $time_string = sprintf( $update_time_string, esc_attr( get_the_modified_date( 'c' ) ), esc_html( get_the_modified_date() ) ); $posted_on = sprintf( _x( 'Posted on %s', 'post date', '_s' ), '' . $time_string . '' ); echo $posted_on; }