'171717', 'width' => 960, 'height' => 270, 'wp-head-callback' => 'triton_lite_header_style', 'admin-head-callback' => 'triton_lite_admin_header_style', 'admin-preview-callback' => 'triton_lite_admin_header_image', ) ) ); } endif; // triton_lite_setup /** * Register our sidebars and widgetized areas. */ add_action( 'widgets_init', 'triton_lite_register_sidebars' ); if ( ! function_exists( 'triton_lite_register_sidebars' ) ) : function triton_lite_register_sidebars() { /* Add theme support for widgetized sidebars. */ register_sidebar( array( 'name' => __( 'Primary Sidebar', 'triton-lite' ), 'id' => 'sidebar-1', 'description' => __( 'Widgets in this sidebar will be displayed adjacent to post and page content.', 'triton-lite' ), 'before_title' => '

', 'after_title' => '

' ) ); register_sidebar( array( 'name' => __( 'Middle Row', 'triton-lite' ), 'id' => 'sidebar-2', 'description' => __( 'Widgets in this area will be displayed in a section just above the site footer.', 'triton-lite' ), 'before_title' => '

', 'after_title' => '

' ) ); register_sidebar( array( 'name' => __( 'Footer', 'triton-lite' ), 'id' => 'sidebar-3', 'description' => __( 'Widgets in this area will be displayed at the very bottom of the page.', 'triton-lite' ), 'before_title' => '

', 'after_title' => '

' ) ); } endif; // triton_lite_register_sidebars /** * Modify the font sizes of WordPress' tag cloud */ if ( ! function_exists( 'triton_lite_widget_tag_cloud_args' ) ) : function triton_lite_widget_tag_cloud_args( $args ) { $args[ 'smallest' ] = 12; $args[ 'largest' ]= 20; $args[ 'unit' ]= 'px'; return $args; } add_filter( 'widget_tag_cloud_args', 'triton_lite_widget_tag_cloud_args' ); endif; // triton_lite_widget_tag_cloud_args if ( ! function_exists ( 'triton_lite_header_style' ) ) : /** * Styles the header image and text displayed on the blog */ function triton_lite_header_style() { $header_image = get_header_image(); if ( ! empty( $header_image ) ) : ?> Header admin panel. */ function triton_lite_admin_header_style() { ?> Header admin panel. * */ function triton_lite_admin_header_image() { ?>
', 'triton-lite' ), esc_url( get_permalink() ), esc_attr( get_the_time() ), esc_attr( get_the_date( 'c' ) ), esc_html( get_the_date() ) ); } endif; if ( ! function_exists( 'triton_lite_posted_by' ) ) : /** * Prints HTML with meta information for the current author on multi-author blogs */ function triton_lite_posted_by() { if ( is_multi_author() ) { printf( __( 'by ', 'triton-lite' ), esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), esc_attr( sprintf( __( 'View all posts by %s', 'triton-lite' ), get_the_author_meta( 'display_name' ) ) ), esc_attr( get_the_author_meta( 'display_name' ) ) ); } } endif; /** * Sets the post excerpt length to 33 words. */ function triton_lite_excerpt_length( $length ) { return 33; } add_filter( 'excerpt_length', 'triton_lite_excerpt_length' ); /** * Returns a "Continue reading" link for excerpts */ function triton_lite_continue_reading_link() { return ' ' . __( 'Continue reading ', 'triton-lite' ) . ''; } /** * Replaces "[...]" (appended to automatically generated excerpts) with an ellipsis and triton_lite_continue_reading_link(). * * To override this in a child theme, remove the filter and add your own * function tied to the excerpt_more filter hook. */ function triton_lite_auto_excerpt_more( $more ) { return '…' . triton_lite_continue_reading_link(); } add_filter( 'excerpt_more', 'triton_lite_auto_excerpt_more' ); if ( ! function_exists( 'triton_lite_content_nav' ) ): /** * Display navigation to next/previous pages when applicable * */ function triton_lite_content_nav( $nav_id ) { global $wp_query; $base = 999999999; ?>

', '' . ' %title' ); ?> %link →
', '%title ' . '' ); ?> max_num_pages > 1 && ( is_home() || is_archive() || is_search() ) ) : // navigation links for home, archive, and search pages ?> comment_type ) : case 'pingback' : case 'trackback' : ?>
  • ', '' ); ?>

  • id="li-comment-">
    comment_parent ) $avatar_size = 38; echo get_avatar( $comment, $avatar_size ); /* translators: 1: comment author, 2: date and time */ printf( __( '%1$s on %2$s said:', 'triton-lite' ), 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', 'triton-lite' ), get_comment_date(), get_comment_time() ) ) ); ?> ', '' ); ?>
    comment_approved == '0' ) : ?>
    __( 'Reply ', 'triton-lite' ), 'depth' => $depth, 'max_depth' => $args[ 'max_depth' ] ) ) ); ?>
    tag based on what is being viewed. * * @since Triton Lite 1.3 */ function triton_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', 'triton' ), max( $paged, $page ) ); return $title; } add_filter( 'wp_title', 'triton_wp_title', 10, 2 ); /** * Load up our theme options page and related code. */ require get_template_directory() . '/inc/theme-options.php';