PluginProbe ʕ •ᴥ•ʔ
Custom Twitter Feeds – A Tweets Widget or X Feed Widget / 2.7.0
Custom Twitter Feeds – A Tweets Widget or X Feed Widget v2.7.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 / header.php
custom-twitter-feeds / templates Last commit date
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.php
68 lines
1 <?php
2 /**
3 * Smash Balloon Custom Twitter Feeds Header 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 use TwitterFeed\CTF_GDPR_Integrations;
12
13 $header_no_bio = ( !$feed_options['showbio'] || empty( $header_info['description'] ) ) ? $header_no_bio = ' ctf-no-bio' : $header_no_bio = "";
14
15 $header_info = CTF_Parse::get_user_header_json( $feed_options, $tweet_set );
16 $header_attr = CTF_Display_Elements::get_element_attribute( 'header', $feed_options );
17
18 $username = CTF_Parse::get_user_name( $header_info );
19 $header_text = CTF_Parse::get_header_text( $header_info, $feed_options );
20 $header_description = CTF_Parse::get_header_description( $header_info );
21 $verified_account = ( $header_info['verified'] == 1 ) ? ctf_get_fa_el( 'fa-check-circle' ) : "";
22 $bio_attr = CTF_Display_Elements::get_element_attribute( 'headerbio', $feed_options );
23 $avatar = CTF_Parse::get_header_avatar( $header_info, $feed_options );
24 ?>
25
26 <div class="ctf-header <?php echo $header_no_bio ?>" <?php echo $header_attr ?>>
27 <a href="<?php echo esc_url('https://twitter.com/' . $username . '/' ); ?>" target="_blank" rel="noopener noreferrer" title="@<?php echo esc_attr( $username ); ?>" class="ctf-header-link">
28 <div class="ctf-header-text">
29 <p class="ctf-header-user">
30 <span class="ctf-header-name"><?php echo wp_kses_post( $header_text ); ?></span>
31 <span class="ctf-verified"><?php echo $verified_account; ?></span>
32 <span class="ctf-header-follow">
33 <?php
34 if ( ctf_should_rebrand_to_x() ) {
35 $brand_icon = ctf_get_fa_el( 'fa-x' );
36 } else {
37 $brand_icon = ctf_get_fa_el( 'fa-twitter' );
38 }
39 echo $brand_icon . ' ' . esc_html__( 'Follow', 'custom-twitter-feeds' ); ?>
40 </span>
41 </p>
42
43 <?php if ($feed_options['showbio'] && ! empty( $header_description ) || ctf_doing_customizer( $feed_options )) : ?>
44 <p class="ctf-header-bio" <?php echo $bio_attr ?> >
45 <?php echo wp_kses_post( $header_description ); ?>
46 </p>
47 <?php endif; ?>
48 </div>
49
50 <div class="ctf-header-img">
51 <div class="ctf-header-img-hover">
52 <?php
53 if ( ctf_should_rebrand_to_x() ) {
54 echo ctf_get_fa_el( 'fa-x' );
55 } else {
56 echo ctf_get_fa_el( 'fa-twitter' );
57 }
58 ?>
59 </div>
60 <?php if ( CTF_GDPR_Integrations::doing_gdpr( $feed_options ) ) : ?>
61 <span data-avatar="<?php echo esc_url( CTF_Parse::get_avatar( $header_info ) ) ?>" data-alt="<?php echo esc_attr( $username ); ?>" style="display: none;"><?php esc_html_e( 'Avatar', 'custom-twitter-feeds' ); ?></span>
62 <?php else : ?>
63 <img src="<?php echo esc_url( $avatar ); ?>" alt="<?php echo esc_attr( $username ); ?>" width="48" height="48">
64 <?php endif; ?>
65 </div>
66 </a>
67 </div>
68