-
-
Save robneu/4a0708a7ab4c3c8fb9d1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'nice_testimonials_loop_top', 'nice_testimonials_entry_header_open', 14 ); | |
/** | |
* Output the opening markup for a testimonial entry header. | |
* | |
* @since 0.1.0 | |
* @access public | |
* @param array $data All template data associated with the current widget. | |
* @return void | |
*/ | |
function nice_testimonials_entry_header_open() { | |
echo '<header class="testimonial-header">'; | |
} | |
add_action( 'nice_testimonials_loop_top', 'nice_testimonials_entry_avatar', 18 ); | |
/** | |
* Output a testimonial author's avatar. | |
* | |
* @since 0.1.0 | |
* @access public | |
* @param array $data All template data associated with the current widget. | |
* @return void | |
*/ | |
function nice_testimonials_entry_avatar( $data ) { | |
echo nice_testimonials_get_entry_avatar( $data ); | |
} | |
add_action( 'nice_testimonials_loop_top', 'nice_testimonials_entry_header_close', 22 ); | |
/** | |
* Output the closing markup for a testimonial entry header. | |
* | |
* @since 0.1.0 | |
* @access public | |
* @param array $data All template data associated with the current widget. | |
* @return void | |
*/ | |
function nice_testimonials_entry_header_close() { | |
echo '</header>'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment