actions.php
1 month ago
author.php
1 month ago
error.php
1 month ago
feed.php
1 month ago
footer.php
1 month ago
header-generic.php
1 month ago
header-text.php
1 month ago
header.php
1 month ago
item.php
1 month ago
linkbox.php
1 month ago
header-generic.php
28 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Smash Balloon Custom Twitter Feeds Header Generic Template |
| 4 | * Information about the person tweeting, replying, or quoting |
| 5 | * |
| 6 | * @version 2.0.4 Custom Twitter Feeds by Smash Balloon |
| 7 | * |
| 8 | */ |
| 9 | use TwitterFeed\CTF_Parse; |
| 10 | use TwitterFeed\CTF_Display_Elements; |
| 11 | |
| 12 | $header_text = CTF_Parse::get_generic_header_text( $feed_options ); |
| 13 | $header_url = CTF_Parse::get_generic_header_url( $feed_options ); |
| 14 | $header_attr = CTF_Display_Elements::get_element_attribute( 'header', $feed_options ); |
| 15 | ?> |
| 16 | |
| 17 | <div class="ctf-header ctf-header-type-generic" <?php echo $header_attr ?>> |
| 18 | <a href="<?php echo esc_url( 'https://twitter.com/' . $header_url ) ?>" target="_blank" rel="noopener noreferrer" class="ctf-header-link"> |
| 19 | <div class="ctf-header-text"> |
| 20 | <p class="ctf-header-no-bio"><?php echo wp_kses_post( $header_text ); ?></p> |
| 21 | </div> |
| 22 | <div class="ctf-header-img"> |
| 23 | <div class="ctf-header-generic-icon"> |
| 24 | <?php echo ctf_get_fa_el( 'fa-twitter' ) ?> |
| 25 | </div> |
| 26 | </div> |
| 27 | </a> |
| 28 | </div> |