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
item.php
47 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Smash Balloon Custom Twitter Feeds Item 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 | $post = CTF_Parse::get_post( $tweet_set[$i] ); |
| 13 | $tweet_classes = CTF_Display_Elements::get_item_classes( $tweet_set, $feed_options, $i); |
| 14 | $num_media = false; |
| 15 | $retweet_data_att = CTF_Display_Elements::get_retweet_attr( $post, $this->check_for_duplicates ); |
| 16 | $author_screen_name = CTF_Parse::get_author_screen_name( $post ); |
| 17 | $post_id = CTF_Parse::get_post_id( $post ); |
| 18 | $post_media_text = CTF_Display_Elements::get_post_media_text( $tweet_set[$i],$feed_options ); |
| 19 | $post_media_count = CTF_Display_Elements::get_post_media_text( $tweet_set[$i],$feed_options, 'media_count' ); |
| 20 | $multi_class = ( $post_media_count > 1 ) ? ' ctf-multi-media-icon' : ''; |
| 21 | $post_text = CTF_Display_Elements::post_text( $post, $feed_options ); |
| 22 | |
| 23 | $quoted = CTF_Parse::get_quoted_tc( $post ); |
| 24 | $quoted_media = CTF_Parse::get_quoted_media( $quoted, $num_media ); |
| 25 | $post_text_attr = CTF_Display_Elements::get_post_text_attr( $post_text, $feed_options, $post_id ); |
| 26 | $text_and_link_attr = CTF_Display_Elements::get_element_attribute( 'text_and_link', $feed_options ); |
| 27 | $text_no_link_attr = CTF_Display_Elements::get_element_attribute( 'text_no_link', $feed_options ); |
| 28 | ?> |
| 29 | |
| 30 | <div role="listitem" <?php echo $tweet_classes ?> id="<?php echo esc_attr( $post_id ); ?>" <?php echo $retweet_data_att ?>> |
| 31 | |
| 32 | <?php include ctf_get_feed_template_part( 'author', $feed_options ); ?> |
| 33 | <div class="ctf-tweet-content"> |
| 34 | <?php |
| 35 | if (ctf_show( 'text', $feed_options )) : |
| 36 | CTF_Display_Elements::get_post_text( $feed_options, $post_text, $post_id, $author_screen_name, $post_media_text ); |
| 37 | endif; |
| 38 | ?> |
| 39 | </div> |
| 40 | |
| 41 | <?php |
| 42 | if (ctf_show( 'linkbox', $feed_options ) && isset( $quoted )) { |
| 43 | include ctf_get_feed_template_part( 'linkbox', $feed_options ); |
| 44 | } |
| 45 | ?> |
| 46 | <?php include ctf_get_feed_template_part( 'actions', $feed_options ); ?> |
| 47 | </div> |