actions.php
3 weeks ago
author.php
3 weeks ago
error.php
3 weeks ago
feed.php
3 weeks ago
footer.php
3 weeks ago
header-generic.php
3 weeks ago
header-text.php
3 weeks ago
header.php
3 weeks ago
item.php
3 weeks ago
linkbox.php
3 weeks ago
linkbox.php
26 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Smash Balloon Custom Twitter Feeds Link Box 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 | $quoted_text = CTF_Display_Elements::post_text( $quoted, $feed_options ); |
| 13 | $quoted_media_text = CTF_Display_Elements::get_quoted_media_text( $post, $feed_options ); |
| 14 | $quoted_name = CTF_Parse::get_quoted_name( $quoted ); |
| 15 | $quoted_verfied = CTF_Parse::get_quoted_verified( $quoted ); |
| 16 | $quoted_screen_name = CTF_Parse::get_quoted_screen_name( $quoted ); |
| 17 | ?> |
| 18 | <a href="<?php echo esc_url( 'https://twitter.com/' . $quoted_screen_name . '/status/' . $quoted['id_str'] ); ?>" class="ctf-quoted-tweet" target="_blank" rel="noopener noreferrer"> |
| 19 | <span class="ctf-quoted-author-name"><?php echo esc_html( $quoted_name ); ?></span> |
| 20 | <?php if ((int)$quoted_verfied === 1) : ?> |
| 21 | <span class="ctf-quoted-verified"><?php echo ctf_get_fa_el( 'fa-check-circle' ); ?></span> |
| 22 | <?php endif; ?> |
| 23 | <span class="ctf-quoted-author-screenname">@<?php echo esc_html( $quoted_screen_name ); ?></span> |
| 24 | <p class="ctf-quoted-tweet-text"><?php echo wp_kses_post( nl2br( $quoted_text ) ); ?><?php echo wp_kses_post( $quoted_media_text ); ?></p> |
| 25 | </a> |
| 26 |