'000', 'default-image' => '%1$s/img/arches.png', ) ) ); add_theme_support( 'post-formats', array( 'aside', 'gallery', 'link','image ', 'quote', 'status','video','audio','chat' ) ); register_nav_menu( 'primary', __( 'Primary Menu', 'camel' ) ); add_theme_support( 'post-thumbnails' ); set_post_thumbnail_size( 200, 150 ); // Unlimited height, soft crop add_image_size('blog-feature-image', 200, 150, true ); } add_action( 'after_setup_theme', 'camel_setup' ); /************************************************************** * Filter the page title ***************************************************************/ function camel_title( $title, $sep ) { global $paged, $page; if ( is_feed() ) return $title; $title .= get_bloginfo( 'name', 'display' ); $site_description = get_bloginfo( 'description', 'display' ); if ( $site_description && ( is_home() || is_front_page() ) ) $title = "$title $sep $site_description"; if ( ( $paged >= 2 || $page >= 2 ) && ! is_404() ) $title = "$title $sep " . sprintf( __( 'Page %s', 'camel' ), max( $paged, $page ) ); return $title; } add_filter( 'wp_title', 'camel_title', 10, 2 ); /************************************************************** * Camel Content Nav Function ***************************************************************/ if ( ! function_exists( 'camel_content_nav' ) ) : /** * Displays navigation to next/previous pages when applicable. */ function camel_content_nav( $html_id) { global $wp_query; $html_id = esc_attr( $html_id ); if ( $wp_query->max_num_pages > 1 ) : ?> Category: comment_type ) : // Display trackbacks differently than normal comments. case 'pingback' : case 'trackback' : ?>
  • id="comment-">

    ', '' ); ?>

  • id="li-comment-">
    %1$s %2$s

    ', get_comment_author_link(), // If current post author is also comment author, make it known visually. ( $comment->user_id === $post->post_author ) ? '' . __( 'Post author', 'camel' ) . '' : '' ); printf( '

    ', esc_url( get_comment_link( $comment->comment_ID ) ), get_comment_time( 'c' ), /* translators: 1: date, 2: time */ sprintf( __( '%1$s at %2$s', 'camel' ), get_comment_date(), get_comment_time() ) ); ?>
    comment_approved ) : ?>

    ', '

    ' ); ?>
    __( 'Reply', 'camel' ), 'after' => ' ', 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>
    ' . '

    ' . __('Allowed Tags', 'camel') . '

    ' . ' ' . allowed_tags() . ' ' . ' '; $defaults['comment_notes_before'] = ''; $defaults['comment_notes_after'] = $comment_notes_after; $defaults['id_form'] = 'comment-form'; $defaults['comment_field'] = '
    '. ''. ''. '
    '; return $defaults; } add_filter('comment_form_defaults', 'camel_custom_comment_form'); add_filter( 'comment_form_default_fields', 'camel_comment_form_fields' ); function camel_comment_form_fields( $fields ) { $commenter = wp_get_current_commenter(); $req = get_option( 'require_name_email' ); $aria_req = ( $req ? " aria-required='true'" : '' ); $html5 = current_theme_supports( 'html5', 'comment-form' ) ? 1 : 0; $fields = array( 'author' => '
    ' . ' ' . '
    ', 'email' => '
    ' . '
    ', 'url' => '
    ' . '
    ', ); return $fields; }