C:\xampp\htdocs\landing\wp-content\updraft\plugins-old\custom-facebook-feed\templates\header.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<?php
/**
 * Custom Facebook Feed Header Template
 * Adds account information and an avatar to the top of the feed
 *
 * @version 2.15 Custom Facebook Feed by Smash Balloon
 *
 */

use CustomFacebookFeed\CFF_Parse;
use 
CustomFacebookFeed\CFF_Utils;
use 
CustomFacebookFeed\CFF_Shortcode_Display;

// Don't load directly
if ( ! defined'ABSPATH' ) ) {
    die( 
'-1' );
}

$cff_header_styles         $this_class->get_style_attribute'header' );



//Check Header Type 
if ($cff_header_type == "text") : //Start Text Header
    
$cff_icon_style         $this_class->get_style_attribute'header_icon' );
    
$cff_header_classes     CFF_Shortcode_Display::get_header_txt_classes$cff_header_outside );
?>
    <h3 class="cff-header <?php echo $cff_header_classes ?><?php echo $cff_header_styles ?>>
        <span class="fa fab fa-<?php echo $atts['headericon']  ?><?php echo $cff_icon_style ?> aria-hidden="true"></span>
        <span class="header-text"><?php echo stripslashes$atts['headertext'] ) ?></span>
    </h3>
<?php 
//End Text Header
elseif ($cff_header_type == "visual" && $cff_show_header) : //Start Visual Header
    
$header_details CFF_Utils::fetch_header_data$page_id$cff_is_group$access_token$cff_cache_time );
    if( isset(
$header_details->error) ) return '';

    
$header_parts                 CFF_Shortcode_Display::get_header_parts$atts );
    
$cff_header_cover             $header_parts['cover'];
    
$cff_header_name             $header_parts['name'];
    
$cff_header_bio             $header_parts['bio'];    
    
$header_style_attribute     $this_class->get_style_attribute'header_visual' );
    
$header_data                 $header_details;


    
$link                 CFF_Shortcode_Display::get_header_link$header_data$page_id );
    
$avatar             CFF_Parse::get_avatar$header_data );
    
$avatar_img_src     CFF_Shortcode_Display::avatar_src$header_data$atts );

    
$name                 CFF_Parse::get_name$header_data );
    
$cover_url             CFF_Parse::get_cover_source$header_data );
    
$cover_img_src         CFF_Shortcode_Display::cover_image_src$header_data$atts );

    
$likes_count         CFF_Parse::get_likes$header_data );
    
$bio                  CFF_Parse::get_bio$header_data );
    
$should_show_bio     $bio !== '' $cff_header_bio false;
    
$bio_class             $cff_header_bio ' cff-has-about' '';
    
$avatar_class         $cff_header_name ' cff-has-name' '';
    
$cover_class         $cff_header_cover ' cff-has-cover' '';
    
$header_font_size     CFF_Shortcode_Display::get_header_font_size$atts );
    
$header_hero_style  CFF_Shortcode_Display::get_header_height_style$atts );

    if( empty(
$cover_url) ){
        
$cff_header_cover false;
        
$cover_class '';
    }
    if( empty(
$likes_count) ){
        
$cff_header_bio false;
    }


    
$square_logo '<svg aria-hidden="true" focusable="false" data-prefix="fab" data-icon="facebook-square" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" class="svg-inline--fa fa-facebook-square fa-w-14"><path fill="currentColor" d="M400 32H48A48 48 0 0 0 0 80v352a48 48 0 0 0 48 48h137.25V327.69h-63V256h63v-54.64c0-62.15 37-96.48 93.67-96.48 27.14 0 55.52 4.84 55.52 4.84v61h-31.27c-30.81 0-40.42 19.12-40.42 38.73V256h68.78l-11 71.69h-57.78V480H400a48 48 0 0 0 48-48V80a48 48 0 0 0-48-48z" class=""></path></svg>';
    
?>
    <div id="cff-visual-header-<?php echo esc_attrpreg_replace"/[^A-Za-z0-9]/"''$page_id ) ); ?>" class="cff-visual-header<?php echo $avatar_class $bio_class $cover_class ?>">
        <?php CFF_Shortcode_Display::print_gdpr_notice('Visual Header'); ?>
        <?php if ( $cff_header_cover ) : ?>
        <div class="cff-header-hero"<?php echo $header_hero_style?>>
            <img src="<?php echo esc_url$cover_img_src ); ?>" alt="<?php echo esc_attrsprintf__'Cover for %s''custom-facebook-feed' ), $name ) ); ?>" data-cover-url="<?php echo esc_url$cover_url ); ?>">
            <?php if ( $cff_header_bio ) : ?>
            <div class="cff-likes-box">
                <div class="cff-square-logo"><?php echo $square_logo?></div>
                <div class="cff-likes-count">
                    <?php echo number_format$likes_count); ?>
                </div>
            </div>
            <?php endif; ?>
        </div>
        <?php endif; ?>
        <div class="cff-header-inner-wrap">
            <?php if ( $cff_header_name && $avatar !== '' ) : ?>
                <div class="cff-header-img">
                    <a href="<?php echo esc_url$link ); ?>" target="_blank" rel="nofollow noopener" title="<?php echo esc_attr$name ); ?>"><img src="<?php echo esc_url$avatar_img_src ); ?>" alt="<?php echo esc_attr$name ); ?>" data-avatar="<?php echo esc_url$avatar ); ?>"></a>
                </div>
            <?php endif; ?>
            <div class="cff-header-text" <?php echo $header_style_attribute?>>

            <?php if ( $cff_header_name ) : ?>
                <a href="<?php echo esc_url$link ); ?>" target="_blank" rel="nofollow noopener" title="<?php echo esc_attr$name ); ?>" class="cff-header-name"><h3 <?php echo $header_font_size?>><?php echo esc_html$name ); ?></h3></a>
            <?php endif; ?>
            <?php if ( $cff_header_bio && !$cff_header_cover ) : ?>
                <div class="cff-bio-info">
                    <span class="cff-posts-count"><?php echo $square_logo number_format$likes_count); ?></span>
                </div>
            <?php endif; ?>
            <?php if ( $should_show_bio ) : ?>
                <p class="cff-bio"><?php echo str_replace'&lt;br /&gt;''<br>'esc_htmlnl2br$bio ) ) ); ?></p>
            <?php endif; ?>
            </div>
        </div>
    </div>
<?php endif; //End Visual Header ?>
x

Windows NT KPTV 6.2 build 9200 (Windows Server 2012 Datacenter Edition) i586