';
$show_more_axn_mu .= '';
$show_more_axn_mu .= '';
$show_more_axn_mu .= '%3$s %4$s %5$s';
$show_more_axn_mu .= ' %1$s';
$show_more_axn_mu .= '';
$show_more_axn_mu .= '';
$show_more_axn_mu .= '';
$show_more_label_mu = '
';
$show_more_label_mu .= '';
$show_more_label_mu .= '';
$show_more_label_mu .= '%3$s %4$s %5$s';
$show_more_label_mu .= ' %1$s';
$show_more_label_mu .= '';
$show_more_label_mu .= '';
$show_more_label_mu .= '
';
$show_more_css = 'show-more';
$show_term = esc_html__( 'Show', 'applicator' );
$more_term = esc_html__( 'More', 'applicator' );
$of_term = esc_html__( 'of', 'applicator' );
$show_more_of_term = esc_attr__( 'Show More of', 'applicator' );
$show_more_term = 'Show More';
$show_more_axn = sprintf( $show_more_axn_mu,
get_the_title( get_the_ID() ),
$show_more_css.'-axn',
$show_term,
$more_term,
$of_term,
esc_url( get_permalink( get_the_ID() ) ),
$show_more_of_term,
$show_more_term
);
$show_more_label = sprintf( $show_more_label_mu,
get_the_title( get_the_ID() ),
$show_more_css.'-glabel',
$show_term,
$more_term,
$of_term,
$show_more_of_term,
$show_more_term
);
// Pattern after content.php
if ( is_home() || is_singular() || ( is_front_page() && ! is_page() ) ) {
return $show_more_axn;
}
else {
return $GLOBALS['ellipsis_sep']. $show_more_label;
}
}
add_filter( 'excerpt_more', 'applicator_func_show_more' );
add_filter( 'the_content_more_link', 'applicator_func_show_more' );
}
function applicator_func_the_excerpt( $excerpt ) {
if ( is_home() || is_singular() || ( is_front_page() && ! is_page() ) ) {
return $excerpt;
} else {
$excerpt_link_mu = '';
$excerpt_link_mu .= '';
$excerpt_link_mu .= '%1$s';
$excerpt_link_mu .= '';
$excerpt_link_content = sprintf( $excerpt_link_mu,
$excerpt,
'excerpt-link',
esc_url( get_permalink( get_the_ID() ) ),
esc_attr__( 'Show More of', 'applicator' ).' '.get_the_title( get_the_ID() )
);
echo $excerpt_link_content;
}
}
add_filter( 'get_the_excerpt', 'applicator_func_the_excerpt' );