';
$show_more_axn_mu .= '';
$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_axn_mu .= '';
// Generic Label Markup
$show_more_label_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_label_mu .= '
';
// Variables
$show_more_css = 'show-more';
$post_title = get_the_title( get_the_ID() );
$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';
// R: Show More Action
$show_more_axn = sprintf( $show_more_axn_mu,
esc_html( $post_title ),
$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_css.'-action',
esc_attr( $post_title )
);
// R: Show More Label
$show_more_label = sprintf( $show_more_label_mu,
esc_html( $post_title ),
$show_more_css.'-glabel',
$show_term,
$more_term,
$of_term,
$show_more_of_term,
$show_more_term,
$show_more_css.'-action',
esc_attr( $post_title )
);
// Pattern after content.php
if ( is_home() || is_singular() || ( is_front_page() && ! is_page() ) ) {
return $show_more_axn;
}
else {
return $GLOBALS['applicator_ellipsis_sep']. $show_more_label;
}
}
add_filter( 'excerpt_more', 'applicator_show_more' );
add_filter( 'the_content_more_link', 'applicator_show_more' );
}
// Excerpt
function applicator_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_the_excerpt' );