'', 'default-image' => '', ) ) ); } add_action( 'after_setup_theme', 'parament_register_custom_background' ); /** * Register Sidebars. */ function parament_register_sidebars() { register_sidebar( array( 'name' => __( 'Primary Sidebar', 'parament' ), 'id' => 'sidebar-1', 'before_widget' => '
  • ', 'after_widget' => '
  • ', 'before_title' => '

    ', 'after_title' => '

    ', ) ); } add_action( 'widgets_init', 'parament_register_sidebars' ); if ( ! function_exists( 'parament_comment' ) ) : /** * Template for comments and pingbacks. * * To override this walker in a child theme without modifying the comments template * simply create your own parament_comment(), and that function will be used instead. * * Used as a callback by wp_list_comments() for displaying the comments. */ function parament_comment( $comment, $args, $depth ) { $GLOBALS['comment'] = $comment; switch ( $comment->comment_type ) : case 'pingback' : case 'trackback' : ?>
  • ', '' ); ?>

  • id="li-comment-">
    %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', 'parament' ), get_comment_date(), get_comment_time() ) ) ); ?> ', '' ); ?>
    comment_approved == '0' ) : ?>
    __( 'Reply', 'parament' ), 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>
    tag based on what is being viewed. * * @since Parament 1.2 */ function parament_wp_title( $title, $sep ) { global $page, $paged; if ( is_feed() ) return $title; // Add the blog name $title .= get_bloginfo( 'name' ); // Add the blog description for the home/front page. $site_description = get_bloginfo( 'description', 'display' ); if ( $site_description && ( is_home() || is_front_page() ) ) $title .= " $sep $site_description"; // Add a page number if necessary: if ( $paged >= 2 || $page >= 2 ) $title .= " $sep " . sprintf( __( 'Page %s', 'parament' ), max( $paged, $page ) ); return $title; } add_filter( 'wp_title', 'parament_wp_title', 10, 2 ); /** * Implement the Custom Header feature. */ require get_template_directory() . '/inc/custom-header.php'; /** * Load Jetpack compatibility file. */ require get_template_directory() . '/inc/jetpack.compat.php'; /** * This function was once used in header.php to output a class name. * @deprecated */ function parament_header_classes() { _deprecated_function( __FUNCTION__, '1.3' ); $image = get_header_image(); if ( ! empty( $image ) ) echo ' class="has-image"'; }