', esc_url( get_bloginfo( 'pingback_url' ) ) ); } } /** * Change the excerpt more string. * * @param string $more The string shown within the more link. * @return string */ public function excerpt_more( $more ) { if ( is_admin() ) { return $more; } $more_text = General::get_read_more_text(); if ( '' === $more_text ) { $more_text = esc_html__( 'Read More', 'pressbook' ); } $more = ( '...
' ); return apply_filters( 'pressbook_excerpt_more', $more ); } /** * Change the content more string. * * @param string $more The string shown within the more link. * @return string */ public function content_more( $more ) { if ( is_admin() ) { return $more; } $more_text = General::get_read_more_text(); if ( '' === $more_text ) { $more_text = esc_html__( 'Read More', 'pressbook' ); } $more = ( '' ); return apply_filters( 'pressbook_content_more', $more ); } /** * Change the search form button text. * * @param string $form The search form HTML output. * @return string */ public function search_form( $form ) { if ( is_admin() ) { return $form; } $button_text = General::get_search_form_button_text(); if ( '' !== $button_text ) { $form = str_replace( 'value="Search"', ( 'value="' . esc_attr( $button_text ) . '"' ), $form ); } return $form; } }