author.php
28 lines
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * Smash Balloon Reviews Feed Author Template |
| 5 | * Adds a review author |
| 6 | * |
| 7 | * @version 1.0 Reviews Feed by Smash Balloon |
| 8 | * |
| 9 | */ |
| 10 | |
| 11 | if (!defined('ABSPATH')) { |
| 12 | exit; // Exit if accessed directly |
| 13 | } |
| 14 | ?> |
| 15 | <div class="sb-item-author-date-ctn sb-fs"> |
| 16 | <div class="sb-item-author-ctn sb-relative"> |
| 17 | <div class="sb-item-name-date"> |
| 18 | <?php if ($this->should_show('author', 'name')) : ?> |
| 19 | <span class="sb-item-author-name sb-relative" role="heading" aria-level="3"><?php echo sbr_neutralize_shortcodes(esc_html($this->parser->get_reviewer_name($post))); ?></span> |
| 20 | <?php endif; ?> |
| 21 | |
| 22 | <?php if ($this->should_show('author', 'date')) : ?> |
| 23 | <span class="sb-item-author-date sb-relative"><?php echo esc_html($this->date($post, $this->translations)); ?></span> |
| 24 | <?php endif; ?> |
| 25 | </div> |
| 26 | </div> |
| 27 | </div> |
| 28 |