acitpo_get_default_header_image(), 'width' => 120, 'height' => 120, 'flex-width' => true, 'flex-height' => true, 'default-text-color' => '333', 'header-text' => true, 'uploads' => true, 'wp-head-callback' => 'acitpo_custom_header_wp_head', 'admin-head-callback' => 'acitpo_custom_header_admin_head', 'admin-preview-callback' => 'acitpo_custom_header_admin_preview', )); add_theme_support('post-formats', array('aside', 'image', 'link', 'quote', 'video')); add_theme_support('post-thumbnails'); } add_action('after_setup_theme', 'acitpo_after_theme_setup'); /** * A default header image * * Use the admin email's gravatar as the default header image. (Taken from RYU by Automattic, GPLv2) */ function acitpo_get_default_header_image() { // Get default from Discussion Settings. $default = get_option( 'avatar_default', 'mystery' ); // Mystery man default if ( 'mystery' == $default ) $default = 'mm'; elseif ( 'gravatar_default' == $default ) $default = ''; $protocol = ( is_ssl() ) ? 'https://secure.' : 'http://'; $url = sprintf( '%1$sgravatar.com/avatar/%2$s/', $protocol, md5( get_option( 'admin_email' ) ) ); $url = add_query_arg( array( 's' => 120, 'd' => urlencode( $default ), ), $url ); return esc_url_raw( $url ); } /** * Prepares custom header text color */ function acitpo_custom_header_wp_head() { $header_text_color = get_header_textcolor(); if ($header_text_color == 'ccc') return; ?>

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

>
%s', $tags); } } /** * Prints out post meta */ function acitpo_entry_meta() { global $post; if (is_page()) { return; } $categories = get_the_category_list(__(', ', 'acitpo')); printf('', esc_attr(get_permalink()), esc_attr(get_the_time()), esc_attr(get_the_time('c')), esc_html(get_the_date())); if ($categories) { printf('%s', $categories); } printf('', esc_attr(get_author_posts_url(get_the_author_meta('ID'))), esc_attr(sprintf(__('View all posts by %s', 'acitpo'), get_the_author())), esc_html(get_the_author())); } /** * Prints out older/newer navigation in The Loop */ function acitpo_content_nav($html_id) { global $wp_query; if ($wp_query->max_num_pages > 1) { printf(''; } } /** * Creates a nicely formatted title element text */ function acitpo_wp_title($title, $sep) { global $paged, $page; if (is_feed()) { return $title; } $title .= get_bloginfo('name'); if (($site_description = get_bloginfo('description', 'display')) && (is_home() || is_front_page())) { $title .= " $sep $site_description"; } if ($paged >= 2 || $page >= 2) { $title .= " $sep " . sprintf(__('Page %s', 'acitpo'), max($paged, $page)); } return $title; } add_filter('wp_title', 'acitpo_wp_title', 10, 2); /** * Prints out comments */ function acitpo_comment($comment, $args, $depth) { $GLOBALS['comment'] = $comment; switch ( $comment->comment_type ) : case 'pingback': case 'trackback': ?>
  • >

    ', '' ); ?>

  • id="comment-">
    %1$s%2$s', get_comment_author_link(), ( $comment->user_id === $post->post_author ) ? ' ' . __( 'Post author', 'acitpo' ) . '' : '' ); ?> comment_approved ) : ?>

    Your comment is awaiting moderation

    ', esc_url( get_comment_link( $comment->comment_ID ) ), get_comment_time( 'c' ), sprintf( __( '%1$s at %2$s', 'acitpo' ), get_comment_date(), get_comment_time() ) ); ?>

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