Clever Fox - Version 6.3

Version Description

  • Fiona News Theme Functionality Added
Download this release

Release Info

Developer nayrathemes
Plugin Icon 128x128 Clever Fox
Version 6.3
Comparing to
See all releases

Code changes from version 6.2 to 6.3

clever-fox.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Clever Fox
4
  Plugin URI:
5
  Description: Clever Fox plugin to enhance the functionality of free themes made by Nayra Themes. More than 40000+ trusted websites with us. Clever Fox contains all features which are required to create a complete website. See below free themes.
6
- Version: 6.2
7
  Author: nayrathemes
8
  Author URI: https://nayrathemes.com
9
  Text Domain: clever-fox
@@ -88,6 +88,10 @@ function cleverfox_activate() {
88
  require_once('inc/fiona-food/fiona-food.php');
89
  }
90
 
 
 
 
 
91
  }
92
  add_action( 'init', 'cleverfox_activate' );
93
 
@@ -96,7 +100,7 @@ $theme = wp_get_theme();
96
  /**
97
  * Fiona Widgets
98
  */
99
- if( 'Fiona Blog' == $theme->name || 'Fiona Food' == $theme->name){
100
  require CLEVERFOX_PLUGIN_DIR . 'inc/fiona-blog/widgets/class-fiona-widgets.php';
101
  }
102
 
3
  Plugin Name: Clever Fox
4
  Plugin URI:
5
  Description: Clever Fox plugin to enhance the functionality of free themes made by Nayra Themes. More than 40000+ trusted websites with us. Clever Fox contains all features which are required to create a complete website. See below free themes.
6
+ Version: 6.3
7
  Author: nayrathemes
8
  Author URI: https://nayrathemes.com
9
  Text Domain: clever-fox
88
  require_once('inc/fiona-food/fiona-food.php');
89
  }
90
 
91
+ if( 'Fiona News' == $theme->name){
92
+ require_once('inc/fiona-news/fiona-news.php');
93
+ }
94
+
95
  }
96
  add_action( 'init', 'cleverfox_activate' );
97
 
100
  /**
101
  * Fiona Widgets
102
  */
103
+ if( 'Fiona Blog' == $theme->name || 'Fiona Food' == $theme->name || 'Fiona News' == $theme->name){
104
  require CLEVERFOX_PLUGIN_DIR . 'inc/fiona-blog/widgets/class-fiona-widgets.php';
105
  }
106
 
inc/cleverfox-activator.php CHANGED
@@ -88,7 +88,7 @@ class Cleverfox_Activator {
88
  require CLEVERFOX_PLUGIN_DIR . 'inc/avail/default-widgets/default-widget.php';
89
  }
90
 
91
- if ( 'Fiona Blog' == $theme->name || 'Fiona Food' == $theme->name){
92
  require CLEVERFOX_PLUGIN_DIR . 'inc/fiona-blog/default-pages/upload-media.php';
93
  require CLEVERFOX_PLUGIN_DIR . 'inc/fiona-blog/default-pages/home-page.php';
94
  require CLEVERFOX_PLUGIN_DIR . 'inc/fiona-blog/default-widgets/default-widget.php';
88
  require CLEVERFOX_PLUGIN_DIR . 'inc/avail/default-widgets/default-widget.php';
89
  }
90
 
91
+ if ( 'Fiona Blog' == $theme->name || 'Fiona Food' == $theme->name || 'Fiona News' == $theme->name){
92
  require CLEVERFOX_PLUGIN_DIR . 'inc/fiona-blog/default-pages/upload-media.php';
93
  require CLEVERFOX_PLUGIN_DIR . 'inc/fiona-blog/default-pages/home-page.php';
94
  require CLEVERFOX_PLUGIN_DIR . 'inc/fiona-blog/default-widgets/default-widget.php';
inc/fiona-blog/default-pages/upload-media.php CHANGED
@@ -2,6 +2,8 @@
2
  $theme = wp_get_theme(); // gets the current theme
3
  if( 'Fiona Food' == $theme->name){
4
  $file = CLEVERFOX_PLUGIN_URL .'inc/fiona-food/images/logo.png';
 
 
5
  }else{
6
  $file = CLEVERFOX_PLUGIN_URL .'inc/fiona-blog/images/logo.png';
7
  }
2
  $theme = wp_get_theme(); // gets the current theme
3
  if( 'Fiona Food' == $theme->name){
4
  $file = CLEVERFOX_PLUGIN_URL .'inc/fiona-food/images/logo.png';
5
+ }elseif( 'Fiona News' == $theme->name){
6
+ $file = CLEVERFOX_PLUGIN_URL .'inc/fiona-news/images/logo.png';
7
  }else{
8
  $file = CLEVERFOX_PLUGIN_URL .'inc/fiona-blog/images/logo.png';
9
  }
inc/fiona-blog/default-widgets/default-widget.php CHANGED
@@ -2,6 +2,8 @@
2
  $theme = wp_get_theme(); // gets the current theme
3
  if( 'Fiona Food' == $theme->name){
4
  $img_path = CLEVERFOX_PLUGIN_URL .'inc/fiona-food/images/logo.png"';
 
 
5
  }else{
6
  $img_path = CLEVERFOX_PLUGIN_URL .'inc/fiona-blog/images/logo.png"';
7
  }
2
  $theme = wp_get_theme(); // gets the current theme
3
  if( 'Fiona Food' == $theme->name){
4
  $img_path = CLEVERFOX_PLUGIN_URL .'inc/fiona-food/images/logo.png"';
5
+ }elseif( 'Fiona News' == $theme->name){
6
+ $img_path = CLEVERFOX_PLUGIN_URL .'inc/fiona-news/images/logo.png"';
7
  }else{
8
  $img_path = CLEVERFOX_PLUGIN_URL .'inc/fiona-blog/images/logo.png"';
9
  }
inc/fiona-blog/features/fiona-blog-header.php CHANGED
@@ -63,125 +63,166 @@ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' :
63
  )
64
  );
65
 
66
-
67
- // Head
68
- $wp_customize->add_setting(
69
- 'abv_hdr_time_head'
70
- ,array(
71
- 'capability' => 'edit_theme_options',
72
- 'sanitize_callback' => 'fiona_blog_sanitize_text',
73
- 'priority' => 1,
74
- )
75
- );
 
 
76
 
77
- $wp_customize->add_control(
78
- 'abv_hdr_time_head',
79
- array(
80
- 'type' => 'hidden',
81
- 'label' => __('Time','clever-fox'),
82
- 'section' => 'above_header',
83
- )
84
- );
85
-
86
- $wp_customize->add_setting(
87
- 'hs_abv_hdr_time' ,
88
  array(
89
- 'default' => '1',
90
- 'capability' => 'edit_theme_options',
91
- 'sanitize_callback' => 'fiona_blog_sanitize_checkbox',
92
- 'priority' => 2,
93
- )
94
- );
95
-
96
- $wp_customize->add_control(
97
- 'hs_abv_hdr_time',
98
- array(
99
- 'label' => esc_html__( 'Hide/Show', 'clever-fox' ),
100
- 'section' => 'above_header',
101
- 'type' => 'checkbox'
102
- )
103
- );
104
-
105
-
106
-
107
- // Head
108
- $wp_customize->add_setting(
109
- 'abv_hdr_trending_head'
110
- ,array(
111
- 'capability' => 'edit_theme_options',
112
- 'sanitize_callback' => 'fiona_blog_sanitize_text',
113
- 'priority' => 5,
114
- )
115
- );
116
 
117
- $wp_customize->add_control(
118
- 'abv_hdr_trending_head',
119
- array(
120
- 'type' => 'hidden',
121
- 'label' => __('Trending','clever-fox'),
122
- 'section' => 'above_header',
123
- )
124
- );
125
-
126
- $wp_customize->add_setting(
127
- 'hs_abv_hdr_trending' ,
 
 
 
128
  array(
129
- 'default' => '1',
130
- 'capability' => 'edit_theme_options',
131
- 'sanitize_callback' => 'fiona_blog_sanitize_checkbox',
132
- 'priority' => 5,
133
- )
134
- );
135
-
136
- $wp_customize->add_control(
137
- 'hs_abv_hdr_trending',
138
- array(
139
- 'label' => esc_html__( 'Hide/Show', 'clever-fox' ),
140
- 'section' => 'above_header',
141
- 'type' => 'checkbox'
142
- )
143
- );
144
-
145
- // Header first Trending //
146
- $wp_customize->add_setting(
147
- 'abv_hdr_first_trending_title',
148
- array(
149
- 'default' => __('Trending','clever-fox'),
150
- 'capability' => 'edit_theme_options',
151
- 'sanitize_callback' => 'fiona_blog_sanitize_html',
152
- 'priority' => 6,
153
- )
154
- );
 
 
 
 
 
 
 
 
 
 
155
 
156
- $wp_customize->add_control(
157
- 'abv_hdr_first_trending_title',
158
- array(
159
- 'label' => __('Trending Title','clever-fox'),
160
- 'section' => 'above_header',
161
- 'type' => 'text',
162
- )
163
- );
164
-
165
- $wp_customize->add_setting(
166
- 'abv_hdr_first_trending_desc',
167
- array(
168
- 'default' => __('Lorem ipsum dolor sit amet consectetur','clever-fox'),
169
- 'capability' => 'edit_theme_options',
170
- 'sanitize_callback' => 'fiona_blog_sanitize_html',
171
- 'priority' => 7,
172
- )
173
- );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
174
 
175
- $wp_customize->add_control(
176
- 'abv_hdr_first_trending_desc',
177
- array(
178
- 'label' => __('Trending Description','clever-fox'),
179
- 'section' => 'above_header',
180
- 'type' => 'textarea',
181
- )
182
- );
183
-
184
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
185
  // Head
186
  $wp_customize->add_setting(
187
  'abv_hdr_social_head'
63
  )
64
  );
65
 
66
+ $theme = wp_get_theme(); // gets the current theme
67
+ if( 'Fiona News' == $theme->name){
68
+
69
+ // Head
70
+ $wp_customize->add_setting(
71
+ 'abv_hdr_menu_head'
72
+ ,array(
73
+ 'capability' => 'edit_theme_options',
74
+ 'sanitize_callback' => 'fiona_blog_sanitize_text',
75
+ 'priority' => 1,
76
+ )
77
+ );
78
 
79
+ $wp_customize->add_control(
80
+ 'abv_hdr_menu_head',
 
 
 
 
 
 
 
 
 
81
  array(
82
+ 'type' => 'hidden',
83
+ 'label' => __('Menu','clever-fox'),
84
+ 'section' => 'above_header',
85
+ )
86
+ );
87
+
88
+ $wp_customize->add_setting(
89
+ 'hs_abv_hdr_menu' ,
90
+ array(
91
+ 'default' => '1',
92
+ 'capability' => 'edit_theme_options',
93
+ 'sanitize_callback' => 'fiona_blog_sanitize_checkbox',
94
+ 'priority' => 2,
95
+ )
96
+ );
97
+
98
+ $wp_customize->add_control(
99
+ 'hs_abv_hdr_menu',
100
+ array(
101
+ 'label' => esc_html__( 'Hide/Show', 'clever-fox' ),
102
+ 'section' => 'above_header',
103
+ 'type' => 'checkbox'
104
+ )
105
+ );
 
 
 
106
 
107
+ }else{
108
+
109
+ // Head
110
+ $wp_customize->add_setting(
111
+ 'abv_hdr_time_head'
112
+ ,array(
113
+ 'capability' => 'edit_theme_options',
114
+ 'sanitize_callback' => 'fiona_blog_sanitize_text',
115
+ 'priority' => 1,
116
+ )
117
+ );
118
+
119
+ $wp_customize->add_control(
120
+ 'abv_hdr_time_head',
121
  array(
122
+ 'type' => 'hidden',
123
+ 'label' => __('Time','clever-fox'),
124
+ 'section' => 'above_header',
125
+ )
126
+ );
127
+
128
+ $wp_customize->add_setting(
129
+ 'hs_abv_hdr_time' ,
130
+ array(
131
+ 'default' => '1',
132
+ 'capability' => 'edit_theme_options',
133
+ 'sanitize_callback' => 'fiona_blog_sanitize_checkbox',
134
+ 'priority' => 2,
135
+ )
136
+ );
137
+
138
+ $wp_customize->add_control(
139
+ 'hs_abv_hdr_time',
140
+ array(
141
+ 'label' => esc_html__( 'Hide/Show', 'clever-fox' ),
142
+ 'section' => 'above_header',
143
+ 'type' => 'checkbox'
144
+ )
145
+ );
146
+
147
+
148
+
149
+ // Head
150
+ $wp_customize->add_setting(
151
+ 'abv_hdr_trending_head'
152
+ ,array(
153
+ 'capability' => 'edit_theme_options',
154
+ 'sanitize_callback' => 'fiona_blog_sanitize_text',
155
+ 'priority' => 5,
156
+ )
157
+ );
158
 
159
+ $wp_customize->add_control(
160
+ 'abv_hdr_trending_head',
161
+ array(
162
+ 'type' => 'hidden',
163
+ 'label' => __('Trending','clever-fox'),
164
+ 'section' => 'above_header',
165
+ )
166
+ );
167
+
168
+ $wp_customize->add_setting(
169
+ 'hs_abv_hdr_trending' ,
170
+ array(
171
+ 'default' => '1',
172
+ 'capability' => 'edit_theme_options',
173
+ 'sanitize_callback' => 'fiona_blog_sanitize_checkbox',
174
+ 'priority' => 5,
175
+ )
176
+ );
177
+
178
+ $wp_customize->add_control(
179
+ 'hs_abv_hdr_trending',
180
+ array(
181
+ 'label' => esc_html__( 'Hide/Show', 'clever-fox' ),
182
+ 'section' => 'above_header',
183
+ 'type' => 'checkbox'
184
+ )
185
+ );
186
+
187
+ // Header first Trending //
188
+ $wp_customize->add_setting(
189
+ 'abv_hdr_first_trending_title',
190
+ array(
191
+ 'default' => __('Trending','clever-fox'),
192
+ 'capability' => 'edit_theme_options',
193
+ 'sanitize_callback' => 'fiona_blog_sanitize_html',
194
+ 'priority' => 6,
195
+ )
196
+ );
197
 
198
+ $wp_customize->add_control(
199
+ 'abv_hdr_first_trending_title',
200
+ array(
201
+ 'label' => __('Trending Title','clever-fox'),
202
+ 'section' => 'above_header',
203
+ 'type' => 'text',
204
+ )
205
+ );
206
+
207
+ $wp_customize->add_setting(
208
+ 'abv_hdr_first_trending_desc',
209
+ array(
210
+ 'default' => __('Lorem ipsum dolor sit amet consectetur','clever-fox'),
211
+ 'capability' => 'edit_theme_options',
212
+ 'sanitize_callback' => 'fiona_blog_sanitize_html',
213
+ 'priority' => 7,
214
+ )
215
+ );
216
+
217
+ $wp_customize->add_control(
218
+ 'abv_hdr_first_trending_desc',
219
+ array(
220
+ 'label' => __('Trending Description','clever-fox'),
221
+ 'section' => 'above_header',
222
+ 'type' => 'textarea',
223
+ )
224
+ );
225
+ }
226
  // Head
227
  $wp_customize->add_setting(
228
  'abv_hdr_social_head'
inc/fiona-news/features/fiona-news-header.php ADDED
@@ -0,0 +1,194 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ function fiona_news_header_settings( $wp_customize ) {
3
+ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' : 'refresh';
4
+ /*=========================================
5
+ Below Header Section
6
+ =========================================*/
7
+ $wp_customize->add_section(
8
+ 'below_header',
9
+ array(
10
+ 'priority' => 4,
11
+ 'title' => __('Below Header','fiona-news'),
12
+ 'panel' => 'header_section',
13
+ )
14
+ );
15
+
16
+ // Latest News
17
+ $wp_customize->add_setting(
18
+ 'bh_latest_news_head'
19
+ ,array(
20
+ 'capability' => 'edit_theme_options',
21
+ 'sanitize_callback' => 'fiona_blog_sanitize_text',
22
+ 'priority' => 1,
23
+ )
24
+ );
25
+
26
+ $wp_customize->add_control(
27
+ 'bh_latest_news_head',
28
+ array(
29
+ 'type' => 'hidden',
30
+ 'label' => __('Latest News','fiona-news'),
31
+ 'section' => 'below_header',
32
+ )
33
+ );
34
+
35
+ // Hide / Show
36
+ $wp_customize->add_setting(
37
+ 'bh_latest_news_hs'
38
+ ,array(
39
+ 'default' => '1',
40
+ 'capability' => 'edit_theme_options',
41
+ 'sanitize_callback' => 'fiona_blog_sanitize_checkbox',
42
+ 'priority' => 1,
43
+ )
44
+ );
45
+
46
+ $wp_customize->add_control(
47
+ 'bh_latest_news_hs',
48
+ array(
49
+ 'type' => 'checkbox',
50
+ 'label' => __('Hide / Show','fiona-news'),
51
+ 'section' => 'below_header',
52
+ )
53
+ );
54
+
55
+
56
+ // Title //
57
+ $wp_customize->add_setting(
58
+ 'bh_latest_news_ttl',
59
+ array(
60
+ 'default' => __('Latest News','fiona-news'),
61
+ 'capability' => 'edit_theme_options',
62
+ 'sanitize_callback' => 'fiona_blog_sanitize_html',
63
+ 'transport' => $selective_refresh,
64
+ 'priority' => 2,
65
+ )
66
+ );
67
+
68
+ $wp_customize->add_control(
69
+ 'bh_latest_news_ttl',
70
+ array(
71
+ 'label' => __('Title','fiona-news'),
72
+ 'section' => 'below_header',
73
+ 'type' => 'text',
74
+ )
75
+ );
76
+
77
+ // Latest News Category
78
+ $wp_customize->add_setting(
79
+ 'bh_latest_news_cat_id',
80
+ array(
81
+ 'capability' => 'edit_theme_options',
82
+ 'priority' => 5,
83
+ )
84
+ );
85
+ $wp_customize->add_control( new Fiona_Blog_Category_Dropdown_Control( $wp_customize,
86
+ 'bh_latest_news_cat_id',
87
+ array(
88
+ 'label' => __('Select category','fiona-news'),
89
+ 'section' => 'below_header',
90
+ )
91
+ ) );
92
+
93
+
94
+
95
+ // Temprature
96
+ $wp_customize->add_setting(
97
+ 'bh_temp_head'
98
+ ,array(
99
+ 'capability' => 'edit_theme_options',
100
+ 'sanitize_callback' => 'fiona_blog_sanitize_text',
101
+ 'priority' => 8,
102
+ )
103
+ );
104
+
105
+ $wp_customize->add_control(
106
+ 'bh_temp_head',
107
+ array(
108
+ 'type' => 'hidden',
109
+ 'label' => __('Temprature','fiona-news'),
110
+ 'section' => 'below_header',
111
+ )
112
+ );
113
+
114
+ // Hide / Show
115
+ $wp_customize->add_setting(
116
+ 'bh_temp_hs'
117
+ ,array(
118
+ 'default' => '1',
119
+ 'capability' => 'edit_theme_options',
120
+ 'sanitize_callback' => 'fiona_blog_sanitize_checkbox',
121
+ 'priority' => 9,
122
+ )
123
+ );
124
+
125
+ $wp_customize->add_control(
126
+ 'bh_temp_hs',
127
+ array(
128
+ 'type' => 'checkbox',
129
+ 'label' => __('Hide / Show','fiona-news'),
130
+ 'section' => 'below_header',
131
+ )
132
+ );
133
+
134
+ // API Key //
135
+ $wp_customize->add_setting(
136
+ 'bh_temp_api',
137
+ array(
138
+ 'default' => 'http://api.openweathermap.org/data/2.5/weather?q=london,uk&APPID=66078b6cc6f4a920e0e653b41e1cb6ee',
139
+ 'capability' => 'edit_theme_options',
140
+ 'sanitize_callback' => 'fiona_blog_sanitize_url',
141
+ 'priority' => 2,
142
+ )
143
+ );
144
+
145
+ $wp_customize->add_control(
146
+ 'bh_temp_api',
147
+ array(
148
+ 'label' => __('API Key Link','fiona-news'),
149
+ 'section' => 'below_header',
150
+ 'type' => 'textarea',
151
+ )
152
+ );
153
+
154
+
155
+ // Date
156
+ $wp_customize->add_setting(
157
+ 'bh_date_head'
158
+ ,array(
159
+ 'capability' => 'edit_theme_options',
160
+ 'sanitize_callback' => 'fiona_blog_sanitize_text',
161
+ 'priority' => 11,
162
+ )
163
+ );
164
+
165
+ $wp_customize->add_control(
166
+ 'bh_date_head',
167
+ array(
168
+ 'type' => 'hidden',
169
+ 'label' => __('Date','fiona-news'),
170
+ 'section' => 'below_header',
171
+ )
172
+ );
173
+
174
+ // Hide / Show
175
+ $wp_customize->add_setting(
176
+ 'bh_date_hs'
177
+ ,array(
178
+ 'default' => '1',
179
+ 'capability' => 'edit_theme_options',
180
+ 'sanitize_callback' => 'fiona_blog_sanitize_checkbox',
181
+ 'priority' => 12,
182
+ )
183
+ );
184
+
185
+ $wp_customize->add_control(
186
+ 'bh_date_hs',
187
+ array(
188
+ 'type' => 'checkbox',
189
+ 'label' => __('Hide / Show','fiona-news'),
190
+ 'section' => 'below_header',
191
+ )
192
+ );
193
+ }
194
+ add_action( 'customize_register', 'fiona_news_header_settings' );
inc/fiona-news/fiona-news.php ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * @package Fiona
4
+ */
5
+
6
+ require CLEVERFOX_PLUGIN_DIR . 'inc/fiona-blog/extras.php';
7
+ require CLEVERFOX_PLUGIN_DIR . 'inc/fiona-blog/dynamic-style.php';
8
+ require CLEVERFOX_PLUGIN_DIR . 'inc/fiona-news/sections/above-header.php';
9
+ require CLEVERFOX_PLUGIN_DIR . 'inc/fiona-news/sections/below-header.php';
10
+ require CLEVERFOX_PLUGIN_DIR . 'inc/fiona-news/features/fiona-news-header.php';
11
+ require CLEVERFOX_PLUGIN_DIR . 'inc/fiona-news/sections/section-slider.php';
12
+ require CLEVERFOX_PLUGIN_DIR . 'inc/fiona-blog/features/fiona-blog-header.php';
13
+ require CLEVERFOX_PLUGIN_DIR . 'inc/fiona-blog/features/fiona-blog-slider.php';
14
+ require CLEVERFOX_PLUGIN_DIR . 'inc/fiona-blog/features/fiona-blog-weekend-top.php';
15
+ require CLEVERFOX_PLUGIN_DIR . 'inc/fiona-blog/features/fiona-blog-typography.php';
16
+
17
+ if ( ! function_exists( 'cleverfox_fiona_blog_frontpage_sections' ) ) :
18
+ function cleverfox_fiona_blog_frontpage_sections() {
19
+
20
+ require CLEVERFOX_PLUGIN_DIR . 'inc/fiona-blog/sections/section-weekend-top.php';
21
+ }
22
+ add_action( 'fiona_blog_sections', 'cleverfox_fiona_blog_frontpage_sections' );
23
+ endif;
24
+
25
+ function cleverfox_fiona_blog_enqueue_scripts() {
26
+ wp_enqueue_style('animate',CLEVERFOX_PLUGIN_URL .'/inc/assets/css/animate.css');
27
+ }
28
+ add_action( 'wp_enqueue_scripts', 'cleverfox_fiona_blog_enqueue_scripts' );
inc/fiona-news/images/logo.png ADDED
Binary file
inc/fiona-news/sections/above-header.php ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if ( ! function_exists( 'fiona_blog_above_header' ) ) :
3
+ function fiona_blog_above_header() {
4
+ $hs_abv_hdr_menu = get_theme_mod('hs_abv_hdr_menu','1');
5
+ $hs_abv_hdr_social = get_theme_mod('hs_abv_hdr_social','1');
6
+ $abv_hdr_social_ttl = get_theme_mod('abv_hdr_social_ttl','IN SOCIAL');
7
+ $social_icons = get_theme_mod('social_icons',fiona_blog_get_social_icon_default());
8
+ if($hs_abv_hdr_menu == '1' || $hs_abv_hdr_social == '1') { ?>
9
+ <div id="above-header" class="header-above-info d-av-block d-none wow fadeInDown">
10
+ <div class="header-widget">
11
+ <div class="av-container">
12
+ <div class="av-columns-area">
13
+ <div class="av-column-7">
14
+ <div class="widget-left text-av-left text-center">
15
+ <?php if($hs_abv_hdr_menu == '1'){ ?>
16
+ <aside class="widget widget_nav_menu">
17
+ <div class="menu-pages-container">
18
+ <?php
19
+ wp_nav_menu(
20
+ array(
21
+ 'theme_location' => 'header_above_menu',
22
+ 'container' => '',
23
+ 'menu_class' => 'menu-wrap',
24
+ 'fallback_cb' => 'WP_Bootstrap_Navwalker::fallback',
25
+ 'walker' => new WP_Bootstrap_Navwalker()
26
+ )
27
+ );
28
+ ?>
29
+ </div>
30
+ </aside>
31
+ <?php } ?>
32
+ </div>
33
+ </div>
34
+ <div class="av-column-5">
35
+ <div class="widget-right text-av-right text-center">
36
+ <?php if($hs_abv_hdr_social == '1'){ ?>
37
+ <aside class="widget widget_social_widget">
38
+ <h2><?php echo esc_html($abv_hdr_social_ttl); ?></h2>
39
+ <ul>
40
+ <?php
41
+ $social_icons = json_decode($social_icons);
42
+ if( $social_icons!='' )
43
+ {
44
+ foreach($social_icons as $social_item){
45
+ $social_icon = ! empty( $social_item->icon_value ) ? apply_filters( 'avril_translate_single_string', $social_item->icon_value, 'Header section' ) : '';
46
+ $social_link = ! empty( $social_item->link ) ? apply_filters( 'avril_translate_single_string', $social_item->link, 'Header section' ) : '';
47
+ ?>
48
+ <li><a href="<?php echo esc_url( $social_link ); ?>"><i class="fa <?php echo esc_attr( $social_icon ); ?>"></i><svg class="round-svg-circle"><circle cx="50%" cy="50%" r="49%"></circle><circle cx="50%" cy="50%" r="49%"></circle></svg></a></li>
49
+ <?php }} ?>
50
+ </ul>
51
+ </aside>
52
+ <?php } ?>
53
+ </div>
54
+ </div>
55
+ </div>
56
+ </div>
57
+ </div>
58
+ </div>
59
+ <?php }
60
+ } endif;
61
+ add_action('fiona_blog_above_header', 'fiona_blog_above_header');
inc/fiona-news/sections/below-header.php ADDED
@@ -0,0 +1,103 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if ( ! function_exists( 'fiona_blog_below_header' ) ) :
3
+ function fiona_blog_below_header() {?>
4
+ <div class="header-below d-none d-md-block">
5
+ <div class="av-container">
6
+ <div class="av-columns-area">
7
+ <?php
8
+ $bh_latest_news_hs = get_theme_mod('bh_latest_news_hs','1');
9
+ $bh_latest_news_ttl = get_theme_mod('bh_latest_news_ttl','Latest News');
10
+ $bh_latest_news_cat_id = get_theme_mod('bh_latest_news_cat_id');
11
+ ?>
12
+ <div class="av-column-8 av-md-column-7">
13
+ <div class="widget-left text-md-left text-center">
14
+ <?php if($bh_latest_news_hs =='1'){ ?>
15
+ <aside class="widget widget_breakingNews">
16
+ <div class="breakingNews-box">
17
+ <div class="breakingNews" id="breakingNews">
18
+ <?php if(!empty($bh_latest_news_ttl)){ ?>
19
+ <div class="bn-title"><h5><?php echo wp_kses_post($bh_latest_news_ttl); ?></h5><span></span></div>
20
+ <?php } ?>
21
+ <ul>
22
+ <?php
23
+ $fiona_blog_args = array( 'post_type' => 'post', 'category_name' => $bh_latest_news_cat_id,'posts_per_page' => 4,'post__not_in'=>get_option("sticky_posts"));
24
+ $fiona_blog_wp_query = new WP_Query($fiona_blog_args);
25
+ if($fiona_blog_wp_query)
26
+ {
27
+ while($fiona_blog_wp_query->have_posts()):$fiona_blog_wp_query->the_post();
28
+ ?>
29
+ <li>
30
+ <a href="<?php echo esc_url(the_permalink()); ?>"><span><?php the_title(); ?></span> - <?php echo get_the_excerpt(); ?></a>
31
+ </li>
32
+ <?php endwhile; } wp_reset_postdata(); ?>
33
+ </ul>
34
+ <div class="bn-navi">
35
+ <span><i class="fa fa-angle-left"></i></span>
36
+ <span><i class="fa fa-angle-right"></i></span>
37
+ </div>
38
+ </div>
39
+ </div>
40
+ </aside>
41
+ <?php } ?>
42
+ </div>
43
+ </div>
44
+ <div class="av-column-4 av-md-column-5">
45
+ <div class="widget-right text-md-right text-center">
46
+ <aside class="widget widget_weather_date">
47
+ <div class="trending-box">
48
+ <?php
49
+ $bh_temp_hs = get_theme_mod('bh_temp_hs','1');
50
+ $bh_temp_api = get_theme_mod('bh_temp_api','http://api.openweathermap.org/data/2.5/weather?q=London,uk&APPID=66078b6cc6f4a920e0e653b41e1cb6ee');
51
+ if($bh_temp_hs =='1' && !empty($bh_temp_api)){
52
+ // $json = file_get_contents($bh_temp_api);
53
+ // $weather = json_decode($json);
54
+ // $kelvin = $weather->main->temp;
55
+ // $celcius = $kelvin - 273.15;
56
+ // $city = $weather->name;
57
+
58
+
59
+ $ch = curl_init();
60
+
61
+ curl_setopt($ch, CURLOPT_HEADER, 0);
62
+ curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
63
+ curl_setopt($ch, CURLOPT_URL, $bh_temp_api);
64
+ curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
65
+ curl_setopt($ch, CURLOPT_VERBOSE, 0);
66
+ curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
67
+ $response = curl_exec($ch);
68
+
69
+ curl_close($ch);
70
+ $weather = json_decode($response);
71
+ $currentTime = time();
72
+ if(!empty($weather->main->temp) && !empty($weather->name)){
73
+ $kelvin = $weather->main->temp;
74
+ $celcius = $kelvin - 273.15;
75
+ $city = $weather->name;
76
+ ?>
77
+ <div class="trending-weather is-animated">
78
+ <i class="fa fa-sun-o"></i>
79
+ <span class="city"><?php echo esc_html($city); ?></span>
80
+ <span class="weather-current-temp"> <?php echo esc_html($celcius); ?> <sup>℃</sup> </span>
81
+ </div>
82
+ <?php
83
+ }else{ echo "Please Enter Valid API Key"; }
84
+ }
85
+ $bh_date_hs = get_theme_mod('bh_date_hs','1');
86
+ if($bh_date_hs =='1'){
87
+ ?>
88
+ <div class="trending-date">
89
+ <?php echo '<span class="t-day">'. date_i18n('j', strtotime(current_time("d"))).'</span>';
90
+ echo '<span class="t-all">'. date_i18n('M Y', strtotime(current_time("Y-m"))).'</span>';
91
+ ?>
92
+ </div>
93
+ <?php } ?>
94
+ </div>
95
+ </aside>
96
+ </div>
97
+ </div>
98
+ </div>
99
+ </div>
100
+ </div>
101
+ <?php
102
+ } endif;
103
+ add_action('fiona_blog_below_header', 'fiona_blog_below_header');
inc/fiona-news/sections/section-slider.php ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if ( ! function_exists( 'fiona_blog_slider' ) ) :
3
+ function fiona_blog_slider() {
4
+ $slider_hs = get_theme_mod('slider_hs','1');
5
+ $slider_category_id = get_theme_mod('slider_category_id');
6
+ if($slider_hs == '1'){
7
+ ?>
8
+ <section id="slider-section" class="slider-wrapper section-14">
9
+ <div class="main07 main-slider">
10
+ <?php
11
+ $args = array( 'post_type' => 'post', 'category_name' => $slider_category_id,'posts_per_page' => 4,'post__not_in'=>get_option("sticky_posts")) ;
12
+ query_posts( $args );
13
+ if(query_posts( $args ))
14
+ {
15
+ while(have_posts()):the_post();
16
+
17
+ ?>
18
+ <div class="item">
19
+ <?php do_action( 'fiona_blog_post_format_img_video' ); ?>
20
+ <div class="theme-slider">
21
+ <div class="theme-table">
22
+ <div class="theme-table-cell">
23
+ <div class="av-container">
24
+ <div class="theme-content text-left">
25
+ <div class="posted-on post-date">
26
+ <a href="<?php echo esc_url(get_month_link(get_post_time('J'),get_post_time('M'))); ?>"><span><?php echo esc_html(get_the_date('j')); ?></span><?php echo esc_html(get_the_date('M')); ?></a>
27
+ </div>
28
+ <div class="cover-slider">
29
+ <div class="author-sub-date">
30
+ <span class="author-name">
31
+ <?php $user = wp_get_current_user(); ?>
32
+ <a href="<?php echo esc_url(get_author_posts_url( get_the_author_meta( 'ID' ) ));?>" title="Author: <?php esc_html(the_author()); ?>" class="author meta-info hide-on-mobile"> <span class="author-image" style="background-image: url('<?php echo esc_url( get_avatar_url( $user->ID ) ); ?>');"></span><?php esc_html(the_author()); ?></a>
33
+ </span>
34
+ </div>
35
+ <ul class="post-categories"><li><a href="<?php esc_url(the_permalink()); ?>"><?php the_tags('','',''); ?></a></li></ul>
36
+ <?php
37
+ if ( is_single() ) :
38
+
39
+ the_title('<h1 class="post-title">', '</h1>' );
40
+
41
+ else:
42
+
43
+ the_title( sprintf( '<h1 class="post-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h1>' );
44
+
45
+ endif;
46
+ ?>
47
+ <?php
48
+ //content
49
+ do_action( 'fiona_blog_post_format_img_video_content' );
50
+ ?>
51
+ </div>
52
+ </div>
53
+ </div>
54
+ </div>
55
+ </div>
56
+ </div>
57
+ </div>
58
+ <?php
59
+ endwhile;
60
+ }
61
+ ?>
62
+ </div>
63
+ <div class="controls slider-nav" id="customize-controls" aria-label="Carousel Navigation" tabindex="0">
64
+ <button type="button" class="prev" data-controls="prev" aria-controls="customize" tabindex="-1"><i class="fa fa-arrow-left"></i></button>
65
+ <button type="button" class="next" data-controls="next" aria-controls="customize" tabindex="-1"><i class="fa fa-arrow-right"></i></button>
66
+ </div>
67
+ </section>
68
+
69
+ <?php
70
+ }} endif;
71
+ add_action('fiona_blog_slider', 'fiona_blog_slider');
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: demo, sections, customizer, widget, settings
4
  Requires at least: 4.0
5
  Tested up to: 5.7
6
  Requires PHP: 5.6
7
- Stable tag: 6.2
8
  License: GPLv3 or later
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
10
 
@@ -97,6 +97,9 @@ Clever Fox WordPress plugin is licensed under the GPL3 (https://www.gnu.org/lice
97
 
98
  == Changelog ==
99
 
 
 
 
100
  = 6.2 =
101
  * Fiona Food Theme Functionality Added
102
 
4
  Requires at least: 4.0
5
  Tested up to: 5.7
6
  Requires PHP: 5.6
7
+ Stable tag: 6.3
8
  License: GPLv3 or later
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
10
 
97
 
98
  == Changelog ==
99
 
100
+ = 6.3 =
101
+ * Fiona News Theme Functionality Added
102
+
103
  = 6.2 =
104
  * Fiona Food Theme Functionality Added
105