PluginProbe ʕ •ᴥ•ʔ
Custom Twitter Feeds – A Tweets Widget or X Feed Widget / 2.8.0
Custom Twitter Feeds – A Tweets Widget or X Feed Widget v2.8.0
2.8.0 2.7.0 2.6.1 2.6.0 1.0 1.0.1 1.1 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.1.7 1.1.8 1.2 1.2.1 1.2.10 1.2.11 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.3 1.4 1.4.1 1.5 1.5.1 1.6 1.6.1 1.7 1.8 1.8.1 1.8.2 1.8.3 1.8.4 2.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.1 2.1.1 2.1.2 2.2 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.3.0 2.3.1 2.5.4 2.5.5 trunk
custom-twitter-feeds / templates / item.php
custom-twitter-feeds / templates Last commit date
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>