< id="comment-">
%s', 'mercantile' ), get_comment_author_link()); ?>
comment_approved == '0') : ?>
$add_below, 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>
'div', 'show_browse' => false ); echo ""; } endif; /** * Return content of fixed length * * @since Mercantile 1.0.0 * * @param string $mercantile_content * @param int $length * @return string * */ if ( ! function_exists( 'mercantile_words_count' ) ) : function mercantile_words_count( $mercantile_content = null, $length = 16 ) { $length = absint( $length ); $source_content = preg_replace( '`\[[^\]]*\]`', '', $mercantile_content ); $trimmed_content = wp_trim_words( $source_content, $length, '...' ); return $trimmed_content; } endif; /** * More Text * * @since Mercantile 1.0.0 * * @param null * @return string * */ if ( !function_exists('mercantile_blog_archive_more_text') ) : function mercantile_blog_archive_more_text( ) { global $mercantile_customizer_all_values; $mercantile_blog_archive_read_more = $mercantile_customizer_all_values['mercantile-blog-archive-more-text']; $mercantile_blog_archive_read_more = esc_html( $mercantile_blog_archive_read_more ); return $mercantile_blog_archive_read_more; } endif; /*https://gist.github.com/mikejolley/2044109*/ add_filter( 'woocommerce_add_to_cart_fragments', 'mercantile_header_add_to_cart_fragment' ); function mercantile_header_add_to_cart_fragment( $fragments ) { global $woocommerce; $cart_url = function_exists( 'wc_get_cart_url' ) ? wc_get_cart_url() : WC()->cart->get_cart_url(); ob_start(); ?> cart->cart_contents_count ); ?>