%s', esc_url( get_permalink( $post->ID ) ), esc_html__( 'Read More', 'agama' ) ); } return; } /** * Edit Post Link * * Filters the post edit link anchor tag. * * @param mixed $link (required) Anchor tag for the edit link. * * @since 1.1.1 * @since 1.5.0 Updated the code. * @access public * @return string */ public function edit_post_link( $link ) { $link = str_replace('class="post-edit-link"', 'class="button button-3d button-mini button-rounded"', $link ); return $link; } /** * Previous Posts Link Attributes * * Filters the anchor tag attributes for the previous posts page link. * * @since 1.3.7 * @access public * @return string */ public function previous_posts_link_attributes() { return 'class="prev"'; } /** * Next Posts Link Attributes * * Filters the anchor tag attributes for the next posts page link. * * @since 1.3.7 * @access public * @return string */ public function next_posts_link_attributes() { return 'class="next"'; } /** * Edit Comment Link * * Filters the comment edit link anchor tag. * * @param mixed $link (required) Anchor tag for the edit link. * * @since 1.1.1 * @since 1.5.0 Updated the code. * @access public * @return string */ public function edit_comment_link( $link ) { $link = str_replace( 'class="comment-edit-link"', 'class="button button-3d button-mini button-rounded"', $link ); return $link; } /** * Comment Form Default Fields * * Filters the default comment form fields. * * @param array $fields (required) Array of the default comment fields. * * @since 1.2.4 * @access public * @return mixed */ public function comment_form_default_fields( $fields ) { // Get the current commenter if available $commenter = wp_get_current_commenter(); // Core functionality $req = get_option( 'require_name_email' ); $aria_req = ( $req ? " aria-required='true'" : '' ); $html_req = ( $req ? " required='required'" : '' ); $fields['author'] = '
' . ( $req ? '*' : '' ) . '
'; $fields['email'] = '
' . ( $req ? '*' : '' ) . '
'; $fields['url'] = '
'; return $fields; } /** * Comment Form Defaults * * Filters the comment form default arguments. * * @param array $defaults (required) The default comment form arguments. * * @since 1.2.4 * @access public * @return mixed */ function comment_form_defaults( $defaults ) { global $current_user; $defaults['logged_in_as'] = '
' . sprintf( '%s %s. %s', __('Logged in as', 'agama'), admin_url( 'profile.php' ), $current_user->display_name, wp_logout_url( apply_filters( 'the_permalink', get_permalink( ) ) ), __('Log out of this account', 'agama'), __('Log out?', 'agama') ) . '
'; $defaults['comment_field'] = '
'; // HTML Tags Usage Suggestion $defaults['title_reply'] = sprintf( '%s %s', __( 'Leave a', 'agama' ), __( 'Comment', 'agama' ) ); $defaults['class_submit'] = 'button button-3d button-large button-rounded'; return $defaults; } } /* Omit closing PHP tag to avoid "Headers already sent" issues. */