comment_type ) { case 'pingback' : case 'trackback' : ?>
  • ', '' ); ?>

  • id="li-comment-">
    comment_parent ) { $avatar_size = 32; } aweaver_trusted_echo( get_avatar( $comment, $avatar_size ) ); /* translators: 1: comment author, 2: date and time */ printf( esc_html__( '%1$s on %2$s said:', 'absolute-weaver' ), sprintf( '%s', get_comment_author_link() ), sprintf( '', esc_url( get_comment_link( $comment->comment_ID ) ), esc_html( get_comment_time( 'c' ) ), /* translators: 1: date, 2: time */ sprintf( esc_html__( '%1$s at %2$s', 'absolute-weaver' ), esc_html( get_comment_date() ), esc_html( get_comment_time() ) ) ) ); edit_comment_link( esc_html__( 'Edit', 'absolute-weaver' ), '', '' ); ?>
    comment_approved == '0' ) : ?>
    esc_html__( 'Reply ', 'absolute-weaver' ), 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); if ( $rl != '' ) { ?>
    '; comments_popup_link( '' . ' ' . '', _x( '1', 'comments number', 'absolute-weaver' ), _x( '%', 'comments number', 'absolute-weaver' ) ); echo ''; } } } //-- if ( ! function_exists( 'aweaver_content_nav' ) ) { /** * Display navigation to next/previous pages when applicable */ function aweaver_content_nav( $nav_id, $from_search = false ) { global $wp_query; if ( $wp_query->max_num_pages > 1 ) { ?>
    ' . $rep . ''; } else { $msg = aweaver_filter_text( __( 'Continue reading →', 'absolute-weaver' ) ); } return ' ' . $msg . ''; } } //-- add_filter( 'aweaver_more_message', 'aweaver_more_message_filter' ); function aweaver_more_message_filter( $msg ) { return do_shortcode( $msg ); } if ( ! function_exists( 'aweaver_edit_link' ) ) { function aweaver_edit_link( $echo = 'echo' ) { $before = ''; $after = ''; $link_label = esc_html__( 'Edit', 'absolute-weaver' ); $id = 0; if ( ! $post = get_post( $id ) ) { return; } if ( ! $url = get_edit_post_link( $post->ID ) ) { return; } $post_type_obj = get_post_type_object( $post->post_type ); $link = '' . $link_label . ''; $flink = apply_filters( 'edit_post_link', $link, $post->ID ); if ( ! $flink ) { $flink = $link; } // some https vs http bug in WP $edit = $before . $flink . $after; $is_elementor = ! ! get_post_meta( $post->ID, '_elementor_edit_mode', true ); if ( $is_elementor ) { $link_label = esc_html__( 'Edit with Elementor', 'absolute-weaver' ); $eurl = str_replace( 'action=edit', 'action=elementor', $url ); $after = $after . "\n"; $link = '' . $link_label . ''; $flink = apply_filters( 'edit_post_link', $link, $post->ID ); if ( ! $flink ) { $flink = $link; } // some https vs http bug in WP $edit .= $before . $flink . $after; } if ( 'echo' == $echo ) { aweaver_trusted_echo( $edit ); } else { return $edit; } } } //-- if ( ! function_exists( 'aweaver_get_wp_custom_logo' ) ) { /** * Displays the optional custom logo. * * Does nothing if the custom logo is not available. * */ function aweaver_get_wp_custom_logo() { if ( function_exists( 'the_custom_logo' ) ) { return get_custom_logo(); } return ''; } } if ( ! function_exists( 'aweaver_get_wp_custom_logo_url' ) ) { /** * Displays the optional custom logo. * * Does nothing if the custom logo is not available. * */ function aweaver_get_wp_custom_logo_url( $size = 'full' ) { $custom_logo_id = get_theme_mod( 'custom_logo' ); $image = ''; // We have a logo. Logo is go. if ( $custom_logo_id ) { $image = wp_get_attachment_image_url( $custom_logo_id, $size ); } return $image; } } if ( ! function_exists( 'aweaver_entry_header' ) ) { function aweaver_entry_header( $format_title = '', $do_excerpt = false ) { /* display entry header ( title ) for posts */ $arg = ( $do_excerpt ) ? 'post_excerpt' : 'post_full'; aweaver_fi( $arg, 'title-before' ); $lead = '

    '; if ( $format_title != '' && ! aweaver_getopt( 'hide_post_format_icon' ) ) { $icon = ""; $lead .= $icon; } aweaver_post_title( $lead, '

    ' ); } } //-- if ( ! function_exists( 'aweaver_post_title' ) ) { // display the post title function aweaver_post_title( $before = '', $after = '' ) { // $before and $after trusted if ( aweaver_is_checked_post_opt( '_pp_hide_post_title' ) || aweaver_t_get( 'hide_title' ) ) { return; } echo $before; $title = the_title( '', '', false ); // translators: %s is title of post $permlink = sprintf( esc_attr__( 'Permalink to %s', 'absolute-weaver' ), the_title_attribute( 'echo=0' ) ); ?> '' ) ); } } //-- if ( ! function_exists( 'aweaver_not_found_search' ) ) { function aweaver_not_found_search( $file_name ) { ?>

    ]*?href=[\'"](.+?)[\'"]/is', get_the_content(), $matches ) ) { return false; } return esc_url_raw( $matches[1] ); } //-- // ------------------------------------- POST META INFO ----------------------------------- if ( ! function_exists( 'aweaver_format_posted_on_footer' ) ) { function aweaver_format_posted_on_footer( $who ) { if ( aweaver_is_checked_page_opt( '_pp_hide_infobottom' ) ) { aweaver_edit_link(); return; } ?> \n"; if ( $type == 'single' ) { /* translators: used between list items, there is a space after the comma */ $categories_list = get_the_category_list( esc_html__( ', ', 'absolute-weaver' ) ); /* translators: used between list items, there is a space after the comma */ $tags_list = get_the_tag_list( '', esc_html__( ', ', 'absolute-weaver' ) ); if ( $categories_list ) { $cat_count = count( get_the_category() ); if ( $cat_count < 2 && aweaver_getopt_checked( 'hide_singleton_category' ) ) { $pi .= "\t\t\t\n"; } else { $pi .= "\t\t\t\n"; } // translators: %1$s: class name attribute, %2$s: category list $pi .= sprintf( aweaver_filter_text( __( 'Posted in %2$s', 'absolute-weaver' ) ), 'entry-utility-prep entry-utility-prep-cat-links', $categories_list ); $pi .= "\t\t\t\n"; } // End if categories /* translators: used between list items, there is a space after the comma */ if ( $tags_list ) { $pi .= "\t\t\t\n"; // translators: %1$s: filled in class name, %2$s: tag name list $pi .= sprintf( aweaver_filter_text( __( 'Tagged %2$s', 'absolute-weaver' ) ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list ); $pi .= "\t\t\t\n"; } // End if $tags_list $pi .= '' . esc_html__( 'permalink', 'absolute-weaver' ) . ''; $pi .= aweaver_edit_link( 'noecho' ); } elseif ( $type == 'reply' ) { $dummy = true; } else { // else not single $show_sep = false; if ( 'page' != get_post_type() ) { // Hide category and tag text for pages on Search /* translators: used between list items, there is a space after the comma */ $categories_list = get_the_category_list( esc_html__( ', ', 'absolute-weaver' ) ); $cat_count = count( get_the_category() ); $skip = ( $cat_count < 2 && aweaver_getopt_checked( 'hide_singleton_category' ) ); if ( $categories_list && ! $skip ) { $pi .= ''; // translators: %1$s: class name; %2$s: category list $pi .= sprintf( aweaver_filter_text( __( 'Posted in %2$s', 'absolute-weaver' ) ), 'entry-utility-prep entry-utility-prep-cat-links', $categories_list ); $show_sep = true; $pi .= ''; } // End if categories /* translators: used between list items, there is a space after the comma */ $tags_list = get_the_tag_list( '', esc_html__( ', ', 'absolute-weaver' ) ); if ( $tags_list ) { if ( $show_sep ) { $pi .= ' | '; } // End if $show_sep $pi .= ''; // translators: %1$s: class name, %2$s: tag list $pi .= sprintf( aweaver_filter_text( __( 'Tagged %2$s', 'absolute-weaver' ) ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list ); $show_sep = true; $pi .= ''; } // End if $tags_list } // End if 'page' != get_post_type() if ( comments_open() ) { if ( $show_sep ) { $pi .= ' | '; } // End if $show_sep $pi .= ''; ob_start(); // yuck - why doesn't WP make all the utilities have an echo option?? comments_popup_link( '' . esc_html__( 'Leave a reply', 'absolute-weaver' ) . '', aweaver_filter_text( __( '1 Reply', 'absolute-weaver' ) ), aweaver_filter_text( __( '% Replies', 'absolute-weaver' ) ) ); $pi .= ob_get_clean(); $pi .= ''; } // End if comments_open() $pi .= aweaver_edit_link( 'noecho' ); } // end non-single $pi .= "\n\n"; aweaver_trusted_echo( apply_filters( 'aweaver_posted_in', $pi, $type ) ); } } //-- if ( ! function_exists( 'aweaver_posted_on' ) ) { function aweaver_posted_on( $type = '' ) { /** * Prints HTML with meta information for the current post-date/time and author. * Create your own aweaver_posted_on to override in a child theme */ if ( aweaver_getopt_checked( 'post_info_hide_top' ) || aweaver_t_get( 'hide_top_info' ) ) { // hide top? return; } if ( aweaver_is_checked_page_opt( '_pp_hide_infotop' ) && ! aweaver_t_get( 'showposts' ) ) { return; } $po = "\n"; if ( ( aweaver_getopt_default( 'show_post_avatar', 'hide' ) == 'start' ) || aweaver_t_get( 'show_avatar' ) ) { $po .= ''; $po .= get_avatar( get_the_author_meta( 'user_email' ), aweaver_getopt_default( 'post_avatar_int', 28 ), null, 'avatar' ); $po .= ''; } // translators: %1$s: url, %2$s: title, %3$s: date, %4$s: time string, %5$s: url, %6$s: title, %7$s: author name $po .= sprintf( aweaver_filter_text( __( 'Posted on by ', 'absolute-weaver' ) ), esc_url( get_permalink() ), esc_attr( get_the_time() ), esc_attr( get_the_date( 'c' ) ), esc_html( get_the_date() ), esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), // translators: %s - author name sprintf( esc_html__( 'View all posts by %s', 'absolute-weaver' ), get_the_author() ), aweaver_get_the_author() ); // updated time changed 3.1.11 to handle published as well. Can't mess with messages because of translations. if ( get_the_time( 'Y/m/d' ) !== get_the_modified_time( 'Y/m/d' ) ) { // get original and modified dates - ignore revisions on same day $time_string = ''; } else { $time_string = ''; } $po .= $time_string; // required for Google Structured Data if ( aweaver_getopt_default( 'show_post_avatar', 'hide' ) == 'end' ) { $po .= ''; $po .= get_avatar( get_the_author_meta( 'user_email' ), aweaver_getopt_default( 'post_avatar_int', 28 ), null, 'avatar' ); $po .= ''; } $po .= "\n"; aweaver_trusted_echo( apply_filters( 'aweaver_posted_on', $po, $type ) ); } } //-- if ( ! function_exists( 'aweaver_post_top_meta' ) ) { function aweaver_post_top_meta( $type = '' ) { /** * Prints HTML with meta information for the top meta line. */ // $type for single echo "
    \n"; aweaver_schema( 'published' ); aweaver_posted_on( $type ); aweaver_comments_popup_link(); echo "
    \n"; } } //-- function aweaver_per_post_style() { // Emit a '; $image = wp_get_attachment_image_src( get_post_thumbnail_id(), 'full' ); // ( url, width, height ) $hdr = $image[0]; $hdr_height = $image[2]; $hdr_width = $image[1]; // wp customizer preview hack for WP 4.4 beta, might go away for 4.4 release $url = get_template_directory_uri(); $url = str_replace( array( 'http://', 'https://' ), '', $url ); $hdr = str_replace( '%s', $url, $hdr ); // 4.4 preview breaks this $hdr = str_replace( array( 'http://', 'https://' ), '//', $hdr ); if ( $who == 'page' ) { $selector = '#container'; } elseif ( $who == 'post' && $where == 'post-pre' ) { $selector = '#post-' . get_the_ID() . '{background-color:transparent;}' . '#container'; } else { $selector = '#post-' . get_the_ID(); } $style = ''; switch ( $show ) { case 'post-bg-parallax': case 'post-bg-parallax-full': // previous: background-repeat: no-repeat; background-position: center center; background-attachment: fixed; $style = "background-image:url( {$hdr} );"; // parallax full - use in conjunction with .wvrx-parallax break; case 'post-bg': $style = "background:url( {$hdr} ) repeat;background-color:transparent;"; // tile vertically break; case 'post-bg-cover': // cover - responsive $style = "background:url( {$hdr} );background-repeat:no-repeat;background-position:center center; background-size:cover;background-color:transparent;box-sizing:border-box;"; // cover break; default: // no others break; } if ( $style ) { aweaver_trusted_echo( aweaver_inline_style( "{$before}{$selector}{ {$style} }{$after}\n" ) ); } return true; } // end as bg image $align = aweaver_getopt_default( $who . '_fi_align', 'fi-alignleft' ); $before = ''; if ( $where == 'post-pre' ) { $align .= '-pb'; // need to be able to fixup alignment for small devices $before = '
    '; } $fi_class = 'featured-image fi-' . $who . '-' . $where . ' fi-' . $show . ' ' . $hide . ' ' . $align; // construct fi class $attr = array( 'class' => $fi_class ); // add width if defined $w = aweaver_getopt( $who . '_fi_width' ); if ( $w ) { $attr['style'] = 'width:' . $w . '%'; } if ( $show == $where || ( $show == 'post-before' && $where == 'post-pre' ) || ( $show == 'title-banner' && $where == 'title-before' ) ) { if ( $show == 'header-image' ) { // special case : header replacement area $image = wp_get_attachment_image_src( get_post_thumbnail_id(), 'full' ); // ( url, width, height ) if ( ! $image ) { return false; } return $image[0]; // let the header code handle the details... } $size = aweaver_getopt_default( $who . '_fi_size', 'thumbnail' ); // aweaver_debug_comment( 'FI who:' . $who . ' FI size:' . $size ); if ( get_post_thumbnail_id() ) { if ( $who == 'post_excerpt' ) { $href = esc_url( get_permalink() ); } else { $image = wp_get_attachment_image_src( get_post_thumbnail_id(), 'full' ); // ( url, width, height ) $href = esc_url( $image[0] ); } $fi_img = aweaver_schema( 'image', false, get_the_post_thumbnail( null, $size, $attr ) ); $fi_after = apply_filters( 'aweaver_fi_after', '' ); // added 3.1.10 if ( $who == 'page' && aweaver_getopt( 'page_fi_nolink' ) ) { $the_fi = "\n{$before}{$fi_img}{$fi_after}\n"; } elseif ( $who != 'page' && aweaver_getopt( 'post_fi_nolink' ) ) { $the_fi = "\n{$before}{$fi_img}{$fi_after}\n"; } else { $the_fi = "\n{$before}{$fi_img}{$fi_after}\n"; } /* else if ( $who == 'page' ){ $link = aweaver_getopt( 'page_fi_altlink' ); if ( $link != '' ) $href = $link; $the_fi = "\n{$before}{$fi_img}{$fi_after}\n"; } else { // not a page $link = aweaver_getopt( 'post_fi_altlink' ); if ( $link != '' ) $href = $link; $the_fi = "\n{$before}{$fi_img}{$fi_after}\n"; } */ echo aweaver_trusted_echo( apply_filters( 'aweaver_fi_link', $the_fi, $before, $href, $fi_img, $who, $fi_after ) ); // Added 3.1.5; Changed 3.1.11 to add the $fi_after if ( $show == 'title-banner' ) { echo '
    '; } return false; } } return false; } } //-- function aweaver_the_page_content( $who = '' ) { aweaver_fi( $who, 'content-top' ); aweaver_the_contnt(); aweaver_fi( $who, 'content-bottom' ); } //-- function aweaver_the_contnt() { the_content( aweaver_continue_reading_link() ); } //-- // ========================= special content ========================= function aweaver_post_div( $type = 'content' ) { // echo the start
    for posts // include columns class if set $class = ''; $cols = aweaver_getopt( 'post_cols' ); if ( $cols != '' && $cols != '1' ) { $class = ' cols-' . $cols; } aweaver_trusted_echo( '
    ' . "\n" ); } function aweaver_the_post_full() { aweaver_fi( 'post_full', 'content-top' ); aweaver_the_contnt(); aweaver_fi( 'post_full', 'content-bottom' ); } //-- function aweaver_the_post_excerpt() { aweaver_fi( 'post_excerpt', 'content-top' ); the_excerpt( 'more...' ); aweaver_fi( 'post_excerpt', 'content-bottom' ); } //-- function aweaver_the_post_full_single() { global $page; if ( $page <= 1 ) { aweaver_fi( 'post', 'content-top' ); } aweaver_the_contnt(); if ( $page <= 1 ) { aweaver_fi( 'post', 'content-bottom' ); } } //-- function aweaver_show_only_title() { //echo "\n \n"; if ( ! aweaver_t_get( 'showposts' ) && ( aweaver_get_per_page_value( '_pp_wvrx_pwp_type' ) == 'title' || aweaver_t_get( 'show' ) == 'title' ) ) { aweaver_schema( 'mainEntityOfPage' ); echo "\t\n"; return true; } elseif ( ! aweaver_t_get( 'showposts' ) && ( aweaver_get_per_page_value( '_pp_wvrx_pwp_type' ) == 'title_featured' || aweaver_t_get( 'show' ) == 'title_featured' ) ) { aweaver_fi( 'post_excerpt', 'title_featured' ); // show FI aweaver_schema( 'mainEntityOfPage' ); echo "\t\n"; return true; } elseif ( aweaver_t_get( 'showposts' ) && aweaver_t_get( 'show' ) == 'title_featured' ) { aweaver_fi( 'post_excerpt', 'title_featured' ); // show FI aweaver_schema( 'mainEntityOfPage' ); echo "\t
    \n"; return true; } elseif ( aweaver_t_get( 'showposts' ) && ( aweaver_t_get( 'show' ) == 'title' || aweaver_t_get( 'show' ) == 'titlelist' ) ) { aweaver_schema( 'mainEntityOfPage' ); echo "\t\n"; return true; } return false; } //-- function aweaver_do_excerpt() { // return true if this kind of page should be excerpted if ( aweaver_t_get( 'show' ) == 'excerpt' ) // for Absolute Weaver Plus { return true; } if ( aweaver_t_get( 'show' ) == 'full' ) // for Absolute Weaver Plus { return false; } $n1 = aweaver_get_per_page_value( '_pp_fullposts' ); if ( ! $n1 ) { $n1 = aweaver_getopt( 'fullpost_first' ); } if ( $n1 ) { global $page, $paged; if ( ! ( $paged >= 2 || $page >= 2 ) && aweaver_post_count() <= $n1 ) { return false; } } $pwp = aweaver_get_per_page_value( '_pp_wvrx_pwp_type' ); if ( $pwp == 'full' ) // need to check before archive/search { return false; } // override global setting if ( $pwp == 'excerpt' ) { return true; } // override global setting if ( is_search() ) { return ! aweaver_getopt_checked( 'fullpost_search' ); } if ( is_archive() ) { return ! aweaver_getopt_checked( 'fullpost_archive' ); } return ! aweaver_getopt_checked( 'fullpost_blog' ); } //-- function aweaver_author_info() { if ( get_the_author_meta( 'description' ) && ! aweaver_getopt( 'hide_author_bio' ) ) { // If a user has filled out their description, show a bio on their entries ?>
    …' . aweaver_continue_reading_link(); } add_filter( 'excerpt_more', 'aweaver_auto_excerpt_more' ); function aweaver_custom_excerpt_more( $output ) { /** * Adds a pretty "Continue Reading" link to custom post excerpts. * * To override this link in a child theme, remove the filter and add your own * function tied to the get_aweaver_the_post_excerpt filter hook. */ if ( has_excerpt() && ! is_attachment() ) { $output .= aweaver_continue_reading_link(); } return $output; } add_filter( 'the_excerpt', 'aweaver_custom_excerpt_more' ); function aweaver_the_excerpt_filter( $excerpt ) { // filter definition return do_shortcode( $excerpt ); } add_filter( 'the_excerpt', 'aweaver_the_excerpt_filter', 10, 1 ); function aweaver_trim_excerpt( $text = '' ) { $raw_excerpt = $text; if ( '' == $text ) { $text = get_the_content( '' ); $orig_text_len = strlen( $text ); $text = strip_shortcodes( $text ); // $stripped_text_len = strlen( $text ); $text = apply_filters( 'the_content', $text ); $text = str_replace( ']]>', ']]>', $text ); $excerpt_length = apply_filters( 'excerpt_length', 55 ); $excerpt_more = apply_filters( 'excerpt_more', ' ' . '[...]' ); $text = wp_trim_words( $text, $excerpt_length, $excerpt_more ); $stripped_text_len = strlen( $text ); } if ( '' == $raw_excerpt && $orig_text_len > $stripped_text_len && get_post_format() == '' && ! empty( $excerpt_more ) ) { // have stripped shortcodes if ( strpos( $text, $excerpt_more ) === false ) { $text .= $excerpt_more; } } return apply_filters( 'wp_trim_excerpt', $text, $raw_excerpt ); } //-- remove_filter( 'get_the_excerpt', 'wp_trim_excerpt' ); add_filter( 'get_the_excerpt', 'aweaver_trim_excerpt' ); ?>