C:\xampp\htdocs\landing\wp-content\plugins\penci-framework\shortcodes\bos_searchbox\frontend.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
<?php
if ( ! defined'ABSPATH' ) ) {
    die( 
'-1' );
}

$atts              vc_map_get_attributes$this->getShortcode(), $atts );
$show_on_shortcode Penci_Helper_Shortcode::show_on_shortcode$atts );
if ( ! 
$show_on_shortcode ) {
    return;
}
extract$atts );

$unique_id    'penci-bos_searchbox--' rand1000100000 );
$class        Penci_Framework_Helper::get_class_block( array( $this->getCSSAnimation$atts['css_animation'] ) ), $atts );
$class[]      = 'penci-bos_searchbox--' $atts['booking_pos'];
$border_color '';
$style        '';
$class preg_replace'/\s+/'' 'apply_filters'vc_shortcodes_css_class'implode' 'array_filterarray_unique$class ) ) ), 'penci_bos_searchbox'$atts ) );

?>
    <div id="<?php echo esc_attr$unique_id ); ?>" class="penci-block-vc bos_searchbox_widget_class <?php echo $class?>">
        <div class="penci-block-heading">
            <?php Penci_Helper_Shortcode::get_block_title$atts ); ?>
        </div>
        <div class="penci-block_content">
            <?php
            
if ( function_exists'bos_create_searchbox' ) && function_exists'bos_searchbox_retrieve_all_user_options' ) ) {
                
$options bos_searchbox_retrieve_all_user_options();
                
bos_create_searchbox$optionsfalse );
            }
            
?>
        </div>
    </div>
<?php
$id_searchbox 
'#' $unique_id;
$css_custom '';
$css_custom  .= Penci_Helper_Shortcode::get_general_css_custom$id_searchbox$atts );

$css_custom .= Penci_Helper_Shortcode::get_typo_css_custom( array(
    
'e_admin'      => 'block_title',
    
'font-size'    => '18px',
    
'google_fonts' => Penci_Helper_Shortcode::get_font_family'oswald' ),
    
'template'     => $id_searchbox . ( $atts['style_block_title'] ? '.' $atts['style_block_title'] : '' ) . ' .penci-block__title{ %s }',
), 
$atts
);

$css_custom .= Penci_Helper_Shortcode::get_typo_css_custom( array(
    
'e_admin'      => 'default_title',
    
'font-size'    => '24px',
    
'google_fonts' => Penci_Helper_Shortcode::get_font_family'roboto' ),
    
'template' => $id_searchbox .' #b_searchboxInc>h3{ %s }' ,
), 
$atts
);

$css_custom .= Penci_Helper_Shortcode::get_typo_css_custom( array(
    
'e_admin'      => 'destination_text',
    
'font-size'    => '14px',
    
'google_fonts' => Penci_Helper_Shortcode::get_font_family'muktavaani600' ),
    
'template' => $id_searchbox .' #flexi_searchbox h1,
     ' 
$id_searchbox ' #flexi_searchbox h2,
     ' 
$id_searchbox ' #flexi_searchbox h3,
     ' 
$id_searchbox ' #flexi_searchbox h4{ %s }' ,
), 
$atts
);

$css_custom .= Penci_Helper_Shortcode::get_typo_css_custom( array(
    
'e_admin'      => 'submit_button',
    
'font-size'    => '14px',
    
'google_fonts' => Penci_Helper_Shortcode::get_font_family'roboto' ),
    
'template' => $id_searchbox .' #flexi_searchbox #b_searchboxInc .b_submitButton_wrapper .b_submitButton{ %s }' ,
), 
$atts
);

if( 
$atts['hide_dftitle'] ) {
    
$css_custom .= $id_searchbox .' #b_searchboxInc>h3{ display: none !important; }';
}

if( 
$atts['hide_logo'] ) {
    
$css_custom .= $id_searchbox .' #flexi_searchbox #b_logo{ display: none !important; }';
}

if( 
$atts['padding_booking'] ) {
    
$css_custom .= $id_searchbox .' #flexi_searchbox #b_searchboxInc{ padding: ' esc_attr$atts['padding_booking'] ) . '; }';
}

if ( 
$css_custom ) {
    echo 
'<style>';
    echo 
$css_custom;
    echo 
'</style>';
}
x

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