C:\xampp\htdocs\landing\wp-content\plugins\penci-framework\shortcodes\weather\settings.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
112
113
114
115
116
117
118
119
120
121
<?php
$shotcode_id 
'weather';
$group_color 'Color';

// Shortcode settings
return array(
    
'name'   => esc_html__'Weather''penci-framework' ),
    
'params' => array_merge(
        array(
            array(
                
'param_name'  => 'custom_markup_weather',
                
'type'        => 'custom_markup',
                
'description' => '<span style="color: red;font-weight: bold;">Note Important</span>: To use this element, you need to fill your Weather API Key via Customize > General Options > Weather API Key',
            )
        ),
        
Penci_Framework_Shortcode_Params::block_title(),
        array(
            array(
                
'type'        => 'textfield',
                
'heading'     => esc_html__'Search your for location:''penci-framework' ),
                
'param_name'  => 'location',
                
'std'         => 'London',
                
'admin_label' => true,
                
'description' => sprintf'%s - You can use "city name" (ex: London) or "city name,country code" (ex: London,uk)',
                    
'<a href="' esc_url'http://openweathermap.org/find' ) . '">' esc_html__'Find your location''pennews' ) . '</a>' ),
            ),
            array(
                
'type'        => 'textfield',
                
'heading'     => esc_html__'Location display''penci-framework' ),
                
'param_name'  => 'location_show',
                
'description' => esc_html__'If the option is empty,will display results from ''pennews' ) . '<a href="' esc_url'http://openweathermap.org/find' ) . '">openweathermap.org</a>',
            ),
            array(
                
'type'       => 'dropdown',
                
'heading'    => esc_html__'Units''penci-framework' ),
                
'param_name' => 'units',
                
'value'      => array(
                    
esc_html__'F''penci-framework' ) => 'imperial',
                    
esc_html__'C''penci-framework' ) => 'metric',
                ),
                
'std'        => 'metric',
            ),
            array(
                
'type'       => 'dropdown',
                
'heading'    => esc_html__'Forcast''penci-framework' ),
                
'param_name' => 'forcast',
                
'value'      => array(
                    
esc_html__'1 Day''penci-framework' )  => '1',
                    
esc_html__'2 Days''penci-framework' ) => '2',
                    
esc_html__'3 Days''penci-framework' ) => '3',
                    
esc_html__'4 Days''penci-framework' ) => '4',
                    
esc_html__'5 Days''penci-framework' ) => '5',
                ),
                
'std'        => '5',
            ),
        ),
        
Penci_Framework_Shortcode_Params::block_option_block_title(),
        
Penci_Framework_Shortcode_Params::color_params$shotcode_idfalse ),
        array(
            array(
                
'type'             => 'textfield',
                
'param_name'       => 'color_weather_css',
                
'heading'          => esc_html__'Weather colors''penci-framework' ),
                
'value'            => '',
                
'group'            => $group_color,
                
'edit_field_class' => 'penci-param-heading-wrapper no-top-margin vc_column vc_col-sm-12',
            ),
            array(
                
'type'             => 'colorpicker',
                
'heading'          => esc_html__'General color''penci-framework' ),
                
'param_name'       => 'w_genneral_color',
                
'group'            => $group_color,
                
'edit_field_class' => 'vc_col-sm-6',
            ),
            array(
                
'type'             => 'colorpicker',
                
'heading'          => esc_html__'Localtion color''penci-framework' ),
                
'param_name'       => 'w_localtion_color',
                
'group'            => $group_color,
                
'edit_field_class' => 'vc_col-sm-6',
            ),
            array(
                
'type'             => 'colorpicker',
                
'heading'          => esc_html__'Border color''penci-framework' ),
                
'param_name'       => 'w_border_color',
                
'group'            => $group_color,
                
'edit_field_class' => 'vc_col-sm-6',
            ),
            array(
                
'type'             => 'colorpicker',
                
'heading'          => esc_html__'Degrees color''penci-framework' ),
                
'param_name'       => 'w_degrees_color',
                
'group'            => $group_color,
                
'edit_field_class' => 'vc_col-sm-6',
            ),
            array(
                
'type'             => 'colorpicker',
                
'heading'          => esc_html__'Custom color for forecast weather in next days''penci-framework' ),
                
'param_name'       => 'w_forecast_text_color',
                
'group'            => $group_color,
                
'edit_field_class' => 'vc_col-sm-6',
            ),
            array(
                
'type'             => 'colorpicker',
                
'heading'          => esc_html__'Custom background for forecast weather in next days''penci-framework' ),
                
'param_name'       => 'w_forecast_bg_color',
                
'group'            => $group_color,
                
'edit_field_class' => 'vc_col-sm-6',
            )
        ),
        
Penci_Framework_Shortcode_Params::block_option_note_custom_fonts(),
        
Penci_Framework_Shortcode_Params::block_option_typo(
            array(
                
'prefix'       => 'block_title',
                
'title'        => esc_html__'Block title settings' ),
                
'google_fonts' => Penci_Helper_Shortcode::get_font_family'oswald' ),
                
'font-size'    => '18px',
            )
        )
    )
);
x

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