Skip to content

Instantly share code, notes, and snippets.

@robneu
Last active March 31, 2016 03:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robneu/4a0708a7ab4c3c8fb9d1 to your computer and use it in GitHub Desktop.
Save robneu/4a0708a7ab4c3c8fb9d1 to your computer and use it in GitHub Desktop.
<?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