Clever Fox - Version 4.8

Version Description

  • Fiona Theme Functionality Added
Download this release

Release Info

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

Code changes from version 4.7 to 4.8

Files changed (31) hide show
  1. clever-fox.php +12 -1
  2. inc/cleverfox-activator.php +6 -0
  3. inc/fiona-blog/default-pages/home-page.php +23 -0
  4. inc/fiona-blog/default-pages/upload-media.php +32 -0
  5. inc/fiona-blog/default-widgets/default-widget.php +38 -0
  6. inc/fiona-blog/dynamic-style.php +62 -0
  7. inc/fiona-blog/extras.php +33 -0
  8. inc/fiona-blog/features/fiona-blog-header.php +295 -0
  9. inc/fiona-blog/features/fiona-blog-slider.php +79 -0
  10. inc/fiona-blog/features/fiona-blog-typography.php +265 -0
  11. inc/fiona-blog/features/fiona-blog-weekend-top.php +98 -0
  12. inc/fiona-blog/fiona-blog.php +26 -0
  13. inc/fiona-blog/images/logo.png +0 -0
  14. inc/fiona-blog/sections/above-header.php +67 -0
  15. inc/fiona-blog/sections/section-slider.php +79 -0
  16. inc/fiona-blog/sections/section-weekend-top.php +94 -0
  17. inc/fiona-blog/widgets/assets/css/admin.css +51 -0
  18. inc/fiona-blog/widgets/assets/css/widget.css +378 -0
  19. inc/fiona-blog/widgets/assets/fonticonpicker/iconpicker.eot +0 -0
  20. inc/fiona-blog/widgets/assets/fonticonpicker/iconpicker.svg +19 -0
  21. inc/fiona-blog/widgets/assets/fonticonpicker/iconpicker.ttf +0 -0
  22. inc/fiona-blog/widgets/assets/fonticonpicker/iconpicker.woff +0 -0
  23. inc/fiona-blog/widgets/assets/fonticonpicker/jquery.fonticonpicker.min.css +2 -0
  24. inc/fiona-blog/widgets/assets/fonticonpicker/jquery.fonticonpicker.min.js +13 -0
  25. inc/fiona-blog/widgets/assets/js/main.js +80 -0
  26. inc/fiona-blog/widgets/class-author-widget.php +133 -0
  27. inc/fiona-blog/widgets/class-fiona-widgets.php +90 -0
  28. inc/fiona-blog/widgets/class-post-slider-widget.php +134 -0
  29. inc/fiona-blog/widgets/class-social-icons.php +643 -0
  30. inc/fiona-blog/widgets/class-social-widget.php +177 -0
  31. readme.txt +4 -1
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 WordPress themes made by Nayra Themes. 40000+ users are using this plugin for web design. Main motive behind this plugin is to boost up functionality of Nayra themes and focus on a smooth user experience. Clever Fox contains all features which are required to create a complete website. Clever Fox comes with everything you could ever need to build an amazing website that is suitable for business, portfolio, food & restaurant, gym & fitness, spa salon, medical practitioner & hospitals, WooCommerce Websites. You can see below listed free themes.
6
- Version: 4.7
7
  Author: nayrathemes
8
  Author URI: https://nayrathemes.com
9
  Text Domain: clever-fox
@@ -72,11 +72,22 @@ function cleverfox_activate() {
72
  require_once('inc/avail/avail.php');
73
  }
74
 
 
 
 
 
75
  }
76
  add_action( 'init', 'cleverfox_activate' );
77
 
78
  $theme = wp_get_theme();
79
 
 
 
 
 
 
 
 
80
  /**
81
  * The code during plugin activation.
82
  */
3
  Plugin Name: Clever Fox
4
  Plugin URI:
5
  Description: Clever Fox plugin to enhance the functionality of WordPress themes made by Nayra Themes. 40000+ users are using this plugin for web design. Main motive behind this plugin is to boost up functionality of Nayra themes and focus on a smooth user experience. Clever Fox contains all features which are required to create a complete website. Clever Fox comes with everything you could ever need to build an amazing website that is suitable for business, portfolio, food & restaurant, gym & fitness, spa salon, medical practitioner & hospitals, WooCommerce Websites. You can see below listed free themes.
6
+ Version: 4.8
7
  Author: nayrathemes
8
  Author URI: https://nayrathemes.com
9
  Text Domain: clever-fox
72
  require_once('inc/avail/avail.php');
73
  }
74
 
75
+ if( 'Fiona Blog' == $theme->name){
76
+ require_once('inc/fiona-blog/fiona-blog.php');
77
+ }
78
+
79
  }
80
  add_action( 'init', 'cleverfox_activate' );
81
 
82
  $theme = wp_get_theme();
83
 
84
+ /**
85
+ * Fiona Widgets
86
+ */
87
+ if( 'Fiona Blog' == $theme->name){
88
+ require CLEVERFOX_PLUGIN_DIR . 'inc/fiona-blog/widgets/class-fiona-widgets.php';
89
+ }
90
+
91
  /**
92
  * The code during plugin activation.
93
  */
inc/cleverfox-activator.php CHANGED
@@ -88,6 +88,12 @@ class Cleverfox_Activator {
88
  require CLEVERFOX_PLUGIN_DIR . 'inc/avail/default-widgets/default-widget.php';
89
  }
90
 
 
 
 
 
 
 
91
  update_option( 'item_details_page', 'Done' );
92
  }
93
  }
88
  require CLEVERFOX_PLUGIN_DIR . 'inc/avail/default-widgets/default-widget.php';
89
  }
90
 
91
+ if ( 'Fiona Blog' == $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';
95
+ }
96
+
97
  update_option( 'item_details_page', 'Done' );
98
  }
99
  }
inc/fiona-blog/default-pages/home-page.php ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ //post status and options
3
+ $post = array(
4
+ 'comment_status' => 'closed',
5
+ 'ping_status' => 'closed' ,
6
+ 'post_author' => 1,
7
+ 'post_date' => date('Y-m-d H:i:s'),
8
+ 'post_name' => 'Home',
9
+ 'post_status' => 'publish' ,
10
+ 'post_title' => 'Home',
11
+ 'post_type' => 'page',
12
+ );
13
+ //insert page and save the id
14
+ $newvalue = wp_insert_post( $post, false );
15
+ if ( $newvalue && ! is_wp_error( $newvalue ) ){
16
+ update_post_meta( $newvalue, '_wp_page_template', 'templates/template-homepage.php' );
17
+
18
+ // Use a static front page
19
+ $page = get_page_by_title('Home');
20
+ update_option( 'show_on_front', 'page' );
21
+ update_option( 'page_on_front', $page->ID );
22
+
23
+ }
inc/fiona-blog/default-pages/upload-media.php ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $file = CLEVERFOX_PLUGIN_URL .'inc/fiona-blog/images/logo.png';
3
+ $ImagePath = CLEVERFOX_PLUGIN_URL .'inc/fiona-blog/images';
4
+
5
+ $images = array(
6
+ $ImagePath. '/logo.png',
7
+ );
8
+ $parent_post_id = null;
9
+ foreach($images as $name) {
10
+ $filename = basename($name);
11
+ $upload_file = wp_upload_bits($filename, null, file_get_contents($name));
12
+ if (!$upload_file['error']) {
13
+ $wp_filetype = wp_check_filetype($filename, null );
14
+ $attachment = array(
15
+ 'post_mime_type' => $wp_filetype['type'],
16
+ 'post_parent' => $parent_post_id,
17
+ 'post_title' => preg_replace('/\.[^.]+$/', '', $filename),
18
+ 'post_excerpt' => 'fiona caption',
19
+ 'post_status' => 'inherit'
20
+ );
21
+ $ImageId[] = $attachment_id = wp_insert_attachment( $attachment, $upload_file['file'], $parent_post_id );
22
+
23
+ if (!is_wp_error($attachment_id)) {
24
+ require_once(ABSPATH . "wp-admin" . '/includes/image.php');
25
+ $attachment_data = wp_generate_attachment_metadata( $attachment_id, $upload_file['file'] );
26
+ wp_update_attachment_metadata( $attachment_id, $attachment_data );
27
+ }
28
+ }
29
+
30
+ }
31
+
32
+ update_option( 'fiona_blog_media_id', $ImageId );
inc/fiona-blog/default-widgets/default-widget.php ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $activate = array(
3
+ 'fiona-blog-sidebar-primary' => array(
4
+ 'search-1',
5
+ 'recent-posts-1',
6
+ 'archives-1',
7
+ ),
8
+ 'fiona-blog-footer-widget-area' => array(
9
+ 'text-1',
10
+ 'categories-1',
11
+ 'archives-1',
12
+ 'search-1',
13
+ )
14
+ );
15
+ /* the default titles will appear */
16
+ update_option('widget_text', array(
17
+ 1 => array('title' => '',
18
+ 'text'=>'<div class="footer-logo"><img src="'.CLEVERFOX_PLUGIN_URL.'inc/fiona-blog/images/logo.png" alt=""></div>
19
+ <p>There are many variations of dummy passages of Lorem Ipsum a available, but the majority have suffered that is alteration in some that form injected humour or randomised.</p>
20
+ '),
21
+ 2 => array('title' => 'Recent Posts'),
22
+ 3 => array('title' => 'Categories'),
23
+ ));
24
+ update_option('widget_categories', array(
25
+ 1 => array('title' => 'Categories'),
26
+ 2 => array('title' => 'Categories')));
27
+
28
+ update_option('widget_archives', array(
29
+ 1 => array('title' => 'Archives'),
30
+ 2 => array('title' => 'Archives')));
31
+
32
+ update_option('widget_search', array(
33
+ 1 => array('title' => 'Search'),
34
+ 2 => array('title' => 'Search')));
35
+
36
+ update_option('sidebars_widgets', $activate);
37
+ $MediaId = get_option('fiona_blog_media_id');
38
+ set_theme_mod( 'custom_logo', $MediaId[0] );
inc/fiona-blog/dynamic-style.php ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if( ! function_exists( 'cleverfox_fiona_blog_dynamic_styles' ) ):
3
+ function cleverfox_fiona_blog_dynamic_styles() {
4
+ $output_css = '';
5
+
6
+
7
+ /**
8
+ * Logo Width
9
+ */
10
+ $logo_width = get_theme_mod('logo_width','140');
11
+ if($logo_width !== '') {
12
+ $output_css .=".logo img, .mobile-logo img {
13
+ max-width: " .esc_attr($logo_width). "px;
14
+ }\n";
15
+ }
16
+
17
+ /**
18
+ * Typography Body
19
+ */
20
+ $fiona_blog_body_text_transform = get_theme_mod('fiona_blog_body_text_transform','inherit');
21
+ $fiona_blog_body_font_style = get_theme_mod('fiona_blog_body_font_style','inherit');
22
+ $fiona_blog_body_font_size = get_theme_mod('fiona_blog_body_font_size','15');
23
+ $fiona_blog_body_line_height = get_theme_mod('fiona_blog_body_line_height','1.5');
24
+
25
+ $output_css .=" body{
26
+ font-size: " .esc_attr($fiona_blog_body_font_size). "px;
27
+ line-height: " .esc_attr($fiona_blog_body_line_height). ";
28
+ text-transform: " .esc_attr($fiona_blog_body_text_transform). ";
29
+ font-style: " .esc_attr($fiona_blog_body_font_style). ";
30
+ }\n";
31
+
32
+ /**
33
+ * Typography Heading
34
+ */
35
+ for ( $i = 1; $i <= 6; $i++ ) {
36
+ $fiona_blog_heading_text_transform = get_theme_mod('fiona_blog_h' . $i . '_text_transform','inherit');
37
+ $fiona_blog_heading_font_style = get_theme_mod('fiona_blog_h' . $i . '_font_style','inherit');
38
+ $fiona_blog_heading_font_size = get_theme_mod('fiona_blog_h' . $i . '_font_size');
39
+ $fiona_blog_heading_line_height = get_theme_mod('fiona_blog_h' . $i . '_line_height');
40
+
41
+ $output_css .=" h" . $i . "{
42
+ font-size: " .esc_attr($fiona_blog_heading_font_size). "px;
43
+ line-height: " .esc_attr($fiona_blog_heading_line_height). ";
44
+ text-transform: " .esc_attr($fiona_blog_heading_text_transform). ";
45
+ font-style: " .esc_attr($fiona_blog_heading_font_style). ";
46
+ }\n";
47
+ }
48
+
49
+
50
+ /**
51
+ * Slider
52
+ */
53
+ $slider_opacity = get_theme_mod('slider_opacity','0.5');
54
+ $output_css .=".theme-slider:after {
55
+ opacity: " .esc_attr($slider_opacity). ";
56
+ background: #000000;
57
+ }\n";
58
+
59
+ wp_add_inline_style( 'fiona-blog-style', $output_css );
60
+ }
61
+ endif;
62
+ add_action( 'wp_enqueue_scripts', 'cleverfox_fiona_blog_dynamic_styles' );
inc/fiona-blog/extras.php ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ *
4
+ * Social Icon
5
+ */
6
+ function fiona_blog_get_social_icon_default() {
7
+ return apply_filters(
8
+ 'fiona_blog_get_social_icon_default', json_encode(
9
+ array(
10
+ array(
11
+ 'icon_value' => esc_html__( 'fa-facebook', 'fiona' ),
12
+ 'link' => esc_html__( '#', 'fiona' ),
13
+ 'id' => 'customizer_repeater_header_social_001',
14
+ ),
15
+ array(
16
+ 'icon_value' => esc_html__( 'fa-twitter', 'fiona' ),
17
+ 'link' => esc_html__( '#', 'fiona' ),
18
+ 'id' => 'customizer_repeater_header_social_003',
19
+ ),
20
+ array(
21
+ 'icon_value' => esc_html__( 'fa-instagram', 'fiona' ),
22
+ 'link' => esc_html__( '#', 'fiona' ),
23
+ 'id' => 'customizer_repeater_header_social_004',
24
+ ),
25
+ array(
26
+ 'icon_value' => esc_html__( 'fa-pinterest', 'fiona' ),
27
+ 'link' => esc_html__( '#', 'fiona' ),
28
+ 'id' => 'customizer_repeater_header_social_007',
29
+ ),
30
+ )
31
+ )
32
+ );
33
+ }
inc/fiona-blog/features/fiona-blog-header.php ADDED
@@ -0,0 +1,295 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ function fiona_blog_lite_header_settings( $wp_customize ) {
3
+ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' : 'refresh';
4
+ /*=========================================
5
+ Header Settings Panel
6
+ =========================================*/
7
+ $wp_customize->add_panel(
8
+ 'header_section',
9
+ array(
10
+ 'priority' => 2,
11
+ 'capability' => 'edit_theme_options',
12
+ 'title' => __('Header', 'clever-fox'),
13
+ )
14
+ );
15
+
16
+ /*=========================================
17
+ Fiona Site Identity
18
+ =========================================*/
19
+ $wp_customize->add_section(
20
+ 'title_tagline',
21
+ array(
22
+ 'priority' => 1,
23
+ 'title' => __('Site Identity','clever-fox'),
24
+ 'panel' => 'header_section',
25
+ )
26
+ );
27
+
28
+ // Logo Width //
29
+ if ( class_exists( 'Cleverfox_Customizer_Range_Slider_Control' ) ) {
30
+ $wp_customize->add_setting(
31
+ 'logo_width',
32
+ array(
33
+ 'default' => '140',
34
+ 'capability' => 'edit_theme_options',
35
+ 'sanitize_callback' => 'fiona_blog_sanitize_range_value',
36
+ 'transport' => 'postMessage',
37
+ )
38
+ );
39
+ $wp_customize->add_control(
40
+ new Cleverfox_Customizer_Range_Slider_Control( $wp_customize, 'logo_width',
41
+ array(
42
+ 'label' => __( 'Logo Width', 'clever-fox' ),
43
+ 'section' => 'title_tagline',
44
+ 'input_attrs' => array(
45
+ 'min' => 0,
46
+ 'max' => 500,
47
+ 'step' => 1,
48
+ //'suffix' => 'px', //optional suffix
49
+ ),
50
+ ) )
51
+ );
52
+ }
53
+
54
+ /*=========================================
55
+ Above Header Section
56
+ =========================================*/
57
+ $wp_customize->add_section(
58
+ 'above_header',
59
+ array(
60
+ 'priority' => 2,
61
+ 'title' => __('Above Header','clever-fox'),
62
+ 'panel' => 'header_section',
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'
188
+ ,array(
189
+ 'capability' => 'edit_theme_options',
190
+ 'sanitize_callback' => 'fiona_blog_sanitize_text',
191
+ 'priority' => 11,
192
+ )
193
+ );
194
+
195
+ $wp_customize->add_control(
196
+ 'abv_hdr_social_head',
197
+ array(
198
+ 'type' => 'hidden',
199
+ 'label' => __('Social Icons','clever-fox'),
200
+ 'section' => 'above_header',
201
+ )
202
+ );
203
+
204
+ $wp_customize->add_setting(
205
+ 'hs_abv_hdr_social' ,
206
+ array(
207
+ 'default' => '1',
208
+ 'capability' => 'edit_theme_options',
209
+ 'sanitize_callback' => 'fiona_blog_sanitize_checkbox',
210
+ 'priority' => 12,
211
+ )
212
+ );
213
+
214
+ $wp_customize->add_control(
215
+ 'hs_abv_hdr_social',
216
+ array(
217
+ 'label' => esc_html__( 'Hide/Show', 'clever-fox' ),
218
+ 'section' => 'above_header',
219
+ 'type' => 'checkbox'
220
+ )
221
+ );
222
+
223
+ // Header Social Title //
224
+ $wp_customize->add_setting(
225
+ 'abv_hdr_social_ttl',
226
+ array(
227
+ 'default' => __('IN SOCIAL','clever-fox'),
228
+ 'capability' => 'edit_theme_options',
229
+ 'sanitize_callback' => 'fiona_blog_sanitize_html',
230
+ 'priority' => 13,
231
+ )
232
+ );
233
+
234
+ $wp_customize->add_control(
235
+ 'abv_hdr_social_ttl',
236
+ array(
237
+ 'label' => __('Title','clever-fox'),
238
+ 'section' => 'above_header',
239
+ 'type' => 'text',
240
+ )
241
+ );
242
+
243
+ /**
244
+ * Customizer Repeater
245
+ */
246
+ $wp_customize->add_setting( 'social_icons',
247
+ array(
248
+ 'sanitize_callback' => 'fiona_blog_repeater_sanitize',
249
+ 'priority' => 14,
250
+ 'default' => fiona_blog_get_social_icon_default()
251
+ )
252
+ );
253
+
254
+ $wp_customize->add_control(
255
+ new FIONA_BLOG_Repeater( $wp_customize,
256
+ 'social_icons',
257
+ array(
258
+ 'label' => esc_html__('Social Icons','clever-fox'),
259
+ 'section' => 'above_header',
260
+ 'add_field_label' => esc_html__( 'Add New Social', 'clever-fox' ),
261
+ 'item_name' => esc_html__( 'Social', 'clever-fox' ),
262
+ 'customizer_repeater_icon_control' => true,
263
+ 'customizer_repeater_link_control' => true,
264
+ )
265
+ )
266
+ );
267
+
268
+ //Pro feature
269
+ class Fiona_social__section_upgrade extends WP_Customize_Control {
270
+ public function render_content() {
271
+ $theme = wp_get_theme(); // gets the current theme
272
+ ?>
273
+ <span class="customizer_social_upgrade_section up-to-pro" style="display: none;"></span>
274
+ <?php
275
+ }
276
+ }
277
+
278
+ $wp_customize->add_setting( 'fiona_blog_hdr_social_upgrade_to_pro', array(
279
+ 'capability' => 'edit_theme_options',
280
+ 'sanitize_callback' => 'wp_filter_nohtml_kses',
281
+ ));
282
+ $wp_customize->add_control(
283
+ new Fiona_social__section_upgrade(
284
+ $wp_customize,
285
+ 'fiona_blog_hdr_social_upgrade_to_pro',
286
+ array(
287
+ 'section' => 'above_header',
288
+ 'settings' => 'fiona_blog_social_upgrade_to_pro',
289
+ )
290
+ )
291
+ );
292
+
293
+
294
+ }
295
+ add_action( 'customize_register', 'fiona_blog_lite_header_settings' );
inc/fiona-blog/features/fiona-blog-slider.php ADDED
@@ -0,0 +1,79 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ function fiona_blog_slider_setting( $wp_customize ) {
3
+ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' : 'refresh';
4
+ /*=========================================
5
+ Slider Section Panel
6
+ =========================================*/
7
+
8
+ $wp_customize->add_section(
9
+ 'slider_setting', array(
10
+ 'title' => esc_html__( 'Slider Section', 'clever-fox' ),
11
+ 'panel' => 'fiona_blog_frontpage_sections',
12
+ 'priority' => 1,
13
+ )
14
+ );
15
+
16
+ // slider Contents
17
+ $wp_customize->add_setting(
18
+ 'slider_content_head'
19
+ ,array(
20
+ 'capability' => 'edit_theme_options',
21
+ 'sanitize_callback' => 'fiona_blog_sanitize_text',
22
+ 'priority' => 4,
23
+ )
24
+ );
25
+
26
+ $wp_customize->add_control(
27
+ 'slider_content_head',
28
+ array(
29
+ 'type' => 'hidden',
30
+ 'label' => __('Contents','clever-fox'),
31
+ 'section' => 'slider_setting',
32
+ )
33
+ );
34
+
35
+ // Skider Category
36
+ $wp_customize->add_setting(
37
+ 'slider_category_id',
38
+ array(
39
+ 'capability' => 'edit_theme_options',
40
+ 'priority' => 5,
41
+ 'sanitize_callback' => 'absint',
42
+ )
43
+ );
44
+ $wp_customize->add_control( new Fiona_Blog_Category_Dropdown_Control( $wp_customize,
45
+ 'slider_category_id',
46
+ array(
47
+ 'label' => __('Select Blog category for Slider Section','clever-fox'),
48
+ 'section' => 'slider_setting',
49
+ )
50
+ ) );
51
+
52
+ // slider opacity
53
+ if ( class_exists( 'Cleverfox_Customizer_Range_Slider_Control' ) ) {
54
+ $wp_customize->add_setting(
55
+ 'slider_opacity',
56
+ array(
57
+ 'default' => '0.5',
58
+ 'capability' => 'edit_theme_options',
59
+ //'sanitize_callback' => 'fiona_blog_sanitize_range_value',
60
+ 'priority' => 7,
61
+ )
62
+ );
63
+ $wp_customize->add_control(
64
+ new Cleverfox_Customizer_Range_Slider_Control( $wp_customize, 'slider_opacity',
65
+ array(
66
+ 'label' => __( 'opacity', 'clever-fox' ),
67
+ 'section' => 'slider_setting',
68
+ 'input_attrs' => array(
69
+ 'min' => 0,
70
+ 'max' => 0.9,
71
+ 'step' => 0.1,
72
+ //'suffix' => 'px', //optional suffix
73
+ ),
74
+ ) )
75
+ );
76
+ }
77
+ }
78
+
79
+ add_action( 'customize_register', 'fiona_blog_slider_setting' );
inc/fiona-blog/features/fiona-blog-typography.php ADDED
@@ -0,0 +1,265 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ function fiona_blog_typography( $wp_customize ) {
3
+ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' : 'refresh';
4
+
5
+ $wp_customize->add_panel(
6
+ 'fiona_blog_typography', array(
7
+ 'priority' => 38,
8
+ 'title' => esc_html__( 'Typography', 'clever-fox' ),
9
+ )
10
+ );
11
+
12
+ /*=========================================
13
+ fiona Typography
14
+ =========================================*/
15
+ $wp_customize->add_section(
16
+ 'fiona_blog_typography',
17
+ array(
18
+ 'priority' => 1,
19
+ 'title' => __('Body Typography','clever-fox'),
20
+ 'panel' => 'fiona_blog_typography',
21
+ )
22
+ );
23
+
24
+ // Body Font Size //
25
+ if ( class_exists( 'Cleverfox_Customizer_Range_Slider_Control' ) ) {
26
+ $wp_customize->add_setting(
27
+ 'fiona_blog_body_font_size',
28
+ array(
29
+ 'default' => '15',
30
+ 'capability' => 'edit_theme_options',
31
+ 'sanitize_callback' => 'fiona_blog_sanitize_range_value',
32
+ 'transport' => 'postMessage',
33
+ )
34
+ );
35
+ $wp_customize->add_control(
36
+ new Cleverfox_Customizer_Range_Slider_Control( $wp_customize, 'fiona_blog_body_font_size',
37
+ array(
38
+ 'label' => __( 'Size', 'clever-fox' ),
39
+ 'section' => 'fiona_blog_typography',
40
+ 'priority' => 2,
41
+ 'input_attrs' => array(
42
+ 'min' => 0,
43
+ 'max' => 50,
44
+ 'step' => 1,
45
+ //'suffix' => 'px', //optional suffix
46
+ ),
47
+ ) )
48
+ );
49
+ }
50
+
51
+ // Body Font Size //
52
+ if ( class_exists( 'Cleverfox_Customizer_Range_Slider_Control' ) ) {
53
+ $wp_customize->add_setting(
54
+ 'fiona_blog_body_line_height',
55
+ array(
56
+ 'default' => '1.5',
57
+ 'capability' => 'edit_theme_options',
58
+ 'sanitize_callback' => 'fiona_blog_sanitize_range_value',
59
+ 'transport' => 'postMessage',
60
+ )
61
+ );
62
+ $wp_customize->add_control(
63
+ new Cleverfox_Customizer_Range_Slider_Control( $wp_customize, 'fiona_blog_body_line_height',
64
+ array(
65
+ 'label' => __( 'Line Height', 'clever-fox' ),
66
+ 'section' => 'fiona_blog_typography',
67
+ 'priority' => 3,
68
+ 'input_attrs' => array(
69
+ 'min' => 0,
70
+ 'max' => 4,
71
+ 'step' => 0.1,
72
+ //'suffix' => 'px', //optional suffix
73
+ ),
74
+ ) )
75
+ );
76
+ }
77
+
78
+ // Body Font style //
79
+ $wp_customize->add_setting( 'fiona_blog_body_font_style', array(
80
+ 'capability' => 'edit_theme_options',
81
+ 'default' => 'inherit',
82
+ 'transport' => 'postMessage',
83
+ 'sanitize_callback' => 'fiona_blog_sanitize_select',
84
+ ) );
85
+
86
+ $wp_customize->add_control(
87
+ new WP_Customize_Control(
88
+ $wp_customize, 'fiona_blog_body_font_style', array(
89
+ 'label' => __( 'Font Style', 'clever-fox' ),
90
+ 'section' => 'fiona_blog_typography',
91
+ 'type' => 'select',
92
+ 'priority' => 6,
93
+ 'choices' => array(
94
+ 'inherit' => __( 'Inherit', 'clever-fox' ),
95
+ 'normal' => __( 'Normal', 'clever-fox' ),
96
+ 'italic' => __( 'Italic', 'clever-fox' ),
97
+ 'oblique' => __( 'oblique', 'clever-fox' ),
98
+ ),
99
+ )
100
+ )
101
+ );
102
+ // Body Text Transform //
103
+ $wp_customize->add_setting( 'fiona_blog_body_text_transform', array(
104
+ 'capability' => 'edit_theme_options',
105
+ 'default' => 'inherit',
106
+ 'transport' => 'postMessage',
107
+ 'sanitize_callback' => 'fiona_blog_sanitize_select',
108
+ ) );
109
+
110
+ $wp_customize->add_control(
111
+ new WP_Customize_Control(
112
+ $wp_customize, 'fiona_blog_body_text_transform', array(
113
+ 'label' => __( 'Transform', 'clever-fox' ),
114
+ 'section' => 'fiona_blog_typography',
115
+ 'type' => 'select',
116
+ 'priority' => 7,
117
+ 'choices' => array(
118
+ 'inherit' => __( 'Default', 'clever-fox' ),
119
+ 'uppercase' => __( 'Uppercase', 'clever-fox' ),
120
+ 'lowercase' => __( 'Lowercase', 'clever-fox' ),
121
+ 'capitalize' => __( 'Capitalize', 'clever-fox' ),
122
+ ),
123
+ )
124
+ )
125
+ );
126
+ /*=========================================
127
+ fiona Typography Headings
128
+ =========================================*/
129
+ $wp_customize->add_section(
130
+ 'fiona_blog_headings_typography',
131
+ array(
132
+ 'priority' => 2,
133
+ 'title' => __('Headings','clever-fox'),
134
+ 'panel' => 'fiona_blog_typography',
135
+ )
136
+ );
137
+
138
+ /*=========================================
139
+ fiona Typography H1
140
+ =========================================*/
141
+ for ( $i = 1; $i <= 6; $i++ ) {
142
+ if($i == '1'){$j=36;}elseif($i == '2'){$j=32;}elseif($i == '3'){$j=28;}elseif($i == '4'){$j=24;}elseif($i == '5'){$j=20;}else{$j=16;}
143
+ $wp_customize->add_setting(
144
+ 'h' . $i . '_typography'
145
+ ,array(
146
+ 'capability' => 'edit_theme_options',
147
+ 'sanitize_callback' => 'fiona_blog_sanitize_text',
148
+ )
149
+ );
150
+
151
+ $wp_customize->add_control(
152
+ 'h' . $i . '_typography',
153
+ array(
154
+ 'type' => 'hidden',
155
+ 'label' => esc_html('H' . $i .'','clever-fox'),
156
+ 'section' => 'fiona_blog_headings_typography',
157
+ )
158
+ );
159
+
160
+ // Heading Font Size //
161
+ if ( class_exists( 'Cleverfox_Customizer_Range_Slider_Control' ) ) {
162
+ $wp_customize->add_setting(
163
+ 'fiona_blog_h' . $i . '_font_size',
164
+ array(
165
+ 'default' => $j,
166
+ 'capability' => 'edit_theme_options',
167
+ 'sanitize_callback' => 'fiona_blog_sanitize_range_value',
168
+ 'transport' => 'postMessage'
169
+ )
170
+ );
171
+ $wp_customize->add_control(
172
+ new Cleverfox_Customizer_Range_Slider_Control( $wp_customize, 'fiona_blog_h' . $i . '_font_size',
173
+ array(
174
+ 'label' => __( 'Font Size', 'clever-fox' ),
175
+ 'section' => 'fiona_blog_headings_typography',
176
+ 'input_attr' => array(
177
+ 'min' => 1,
178
+ 'max' => 100,
179
+ 'step' => 1,
180
+ )
181
+ ) )
182
+ );
183
+ }
184
+
185
+ // Heading Font Size //
186
+ if ( class_exists( 'Cleverfox_Customizer_Range_Slider_Control' ) ) {
187
+ $wp_customize->add_setting(
188
+ 'fiona_blog_h' . $i . '_line_height',
189
+ array(
190
+ 'default' => '1.2',
191
+ 'capability' => 'edit_theme_options',
192
+ 'sanitize_callback' => 'fiona_blog_sanitize_range_value',
193
+ 'transport' => 'postMessage',
194
+ )
195
+ );
196
+ $wp_customize->add_control(
197
+ new Cleverfox_Customizer_Range_Slider_Control( $wp_customize, 'fiona_blog_h' . $i . '_line_height',
198
+ array(
199
+ 'label' => __( 'Line Height', 'clever-fox' ),
200
+ 'section' => 'fiona_blog_headings_typography',
201
+ 'input_attrs' => array(
202
+ 'min' => 0,
203
+ 'max' => 4,
204
+ 'step' => 0.1,
205
+ //'suffix' => 'px', //optional suffix
206
+ ),
207
+ 'input_attr' => array(
208
+ 'min' => 0,
209
+ 'max' => 3,
210
+ 'step' => 0.1,
211
+ )
212
+ ) )
213
+ );
214
+ }
215
+
216
+ // Heading Font style //
217
+ $wp_customize->add_setting( 'fiona_blog_h' . $i . '_font_style', array(
218
+ 'capability' => 'edit_theme_options',
219
+ 'default' => 'inherit',
220
+ 'transport' => 'postMessage',
221
+ 'sanitize_callback' => 'fiona_blog_sanitize_select',
222
+ ) );
223
+
224
+ $wp_customize->add_control(
225
+ new WP_Customize_Control(
226
+ $wp_customize, 'fiona_blog_h' . $i . '_font_style', array(
227
+ 'label' => __( 'Font Style', 'clever-fox' ),
228
+ 'section' => 'fiona_blog_headings_typography',
229
+ 'type' => 'select',
230
+ 'choices' => array(
231
+ 'inherit' => __( 'Inherit', 'clever-fox' ),
232
+ 'normal' => __( 'Normal', 'clever-fox' ),
233
+ 'italic' => __( 'Italic', 'clever-fox' ),
234
+ 'oblique' => __( 'oblique', 'clever-fox' ),
235
+ ),
236
+ )
237
+ )
238
+ );
239
+
240
+ // Heading Text Transform //
241
+ $wp_customize->add_setting( 'fiona_blog_h' . $i . '_text_transform', array(
242
+ 'capability' => 'edit_theme_options',
243
+ 'default' => 'inherit',
244
+ 'transport' => 'postMessage',
245
+ 'sanitize_callback' => 'fiona_blog_sanitize_select',
246
+ ) );
247
+
248
+ $wp_customize->add_control(
249
+ new WP_Customize_Control(
250
+ $wp_customize, 'fiona_blog_h' . $i . '_text_transform', array(
251
+ 'label' => __( 'Text Transform', 'clever-fox' ),
252
+ 'section' => 'fiona_blog_headings_typography',
253
+ 'type' => 'select',
254
+ 'choices' => array(
255
+ 'inherit' => __( 'Default', 'clever-fox' ),
256
+ 'uppercase' => __( 'Uppercase', 'clever-fox' ),
257
+ 'lowercase' => __( 'Lowercase', 'clever-fox' ),
258
+ 'capitalize' => __( 'Capitalize', 'clever-fox' ),
259
+ ),
260
+ )
261
+ )
262
+ );
263
+ }
264
+ }
265
+ add_action( 'customize_register', 'fiona_blog_typography' );
inc/fiona-blog/features/fiona-blog-weekend-top.php ADDED
@@ -0,0 +1,98 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ function fiona_blog_section7_setting( $wp_customize ) {
3
+ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' : 'refresh';
4
+ /*=========================================
5
+ Section &
6
+ =========================================*/
7
+ $wp_customize->add_section(
8
+ 'section7_setting', array(
9
+ 'title' => esc_html__( 'Weekend Top', 'clever-fox' ),
10
+ 'panel' => 'fiona_blog_frontpage_sections',
11
+ 'priority' => 7,
12
+ )
13
+ );
14
+
15
+ // Contents
16
+ $wp_customize->add_setting(
17
+ 'section7_content_head'
18
+ ,array(
19
+ 'capability' => 'edit_theme_options',
20
+ 'sanitize_callback' => 'fiona_blog_sanitize_text',
21
+ 'priority' => 4,
22
+ )
23
+ );
24
+
25
+ $wp_customize->add_control(
26
+ 'section7_content_head',
27
+ array(
28
+ 'type' => 'hidden',
29
+ 'label' => __('Contents','clever-fox'),
30
+ 'section' => 'section7_setting',
31
+ )
32
+ );
33
+
34
+ // Title //
35
+ $wp_customize->add_setting(
36
+ 'section7_title',
37
+ array(
38
+ 'default' => __('Weekend Top','clever-fox'),
39
+ 'capability' => 'edit_theme_options',
40
+ 'sanitize_callback' => 'fiona_blog_sanitize_html',
41
+ 'priority' => 5,
42
+ )
43
+ );
44
+
45
+ $wp_customize->add_control(
46
+ 'section7_title',
47
+ array(
48
+ 'label' => __('Title','clever-fox'),
49
+ 'section' => 'section7_setting',
50
+ 'type' => 'text',
51
+ )
52
+ );
53
+
54
+ // section7 Category
55
+ $wp_customize->add_setting(
56
+ 'section7_category_id',
57
+ array(
58
+ 'capability' => 'edit_theme_options',
59
+ 'priority' => 5,
60
+ //'sanitize_callback' => 'fiona_blog_sanitize_text',
61
+ )
62
+ );
63
+ $wp_customize->add_control( new Fiona_Blog_Category_Dropdown_Control( $wp_customize,
64
+ 'section7_category_id',
65
+ array(
66
+ 'label' => __('Select category','clever-fox'),
67
+ 'section' => 'section7_setting',
68
+ )
69
+ ) );
70
+
71
+ // blog_display_num
72
+ if ( class_exists( 'Cleverfox_Customizer_Range_Slider_Control' ) ) {
73
+ $wp_customize->add_setting(
74
+ 'section7_display_num',
75
+ array(
76
+ 'default' => '4',
77
+ 'capability' => 'edit_theme_options',
78
+ 'sanitize_callback' => 'fiona_blog_sanitize_range_value',
79
+ 'priority' => 8,
80
+ )
81
+ );
82
+ $wp_customize->add_control(
83
+ new Cleverfox_Customizer_Range_Slider_Control( $wp_customize, 'section7_display_num',
84
+ array(
85
+ 'label' => __( 'No of Posts Display', 'clever-fox' ),
86
+ 'section' => 'section7_setting',
87
+ 'input_attrs' => array(
88
+ 'min' => 1,
89
+ 'max' => 500,
90
+ 'step' => 1,
91
+ //'suffix' => 'px', //optional suffix
92
+ ),
93
+ ) )
94
+ );
95
+ }
96
+ }
97
+
98
+ add_action( 'customize_register', 'fiona_blog_section7_setting' );
inc/fiona-blog/fiona-blog.php ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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-blog/sections/above-header.php';
9
+ require CLEVERFOX_PLUGIN_DIR . 'inc/fiona-blog/sections/section-slider.php';
10
+ require CLEVERFOX_PLUGIN_DIR . 'inc/fiona-blog/features/fiona-blog-header.php';
11
+ require CLEVERFOX_PLUGIN_DIR . 'inc/fiona-blog/features/fiona-blog-slider.php';
12
+ require CLEVERFOX_PLUGIN_DIR . 'inc/fiona-blog/features/fiona-blog-weekend-top.php';
13
+ require CLEVERFOX_PLUGIN_DIR . 'inc/fiona-blog/features/fiona-blog-typography.php';
14
+
15
+ if ( ! function_exists( 'cleverfox_fiona_blog_frontpage_sections' ) ) :
16
+ function cleverfox_fiona_blog_frontpage_sections() {
17
+
18
+ require CLEVERFOX_PLUGIN_DIR . 'inc/fiona-blog/sections/section-weekend-top.php';
19
+ }
20
+ add_action( 'fiona_blog_sections', 'cleverfox_fiona_blog_frontpage_sections' );
21
+ endif;
22
+
23
+ function cleverfox_fiona_blog_enqueue_scripts() {
24
+ wp_enqueue_style('animate',CLEVERFOX_PLUGIN_URL .'/inc/assets/css/animate.css');
25
+ }
26
+ add_action( 'wp_enqueue_scripts', 'cleverfox_fiona_blog_enqueue_scripts' );
inc/fiona-blog/images/logo.png ADDED
Binary file
inc/fiona-blog/sections/above-header.php ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if ( ! function_exists( 'fiona_blog_above_header' ) ) :
3
+ function fiona_blog_above_header() {
4
+ $hs_abv_hdr_time = get_theme_mod('hs_abv_hdr_time','1');
5
+ $hs_abv_hdr_trending = get_theme_mod('hs_abv_hdr_trending','1');
6
+ $abv_hdr_first_trending_title = get_theme_mod( 'abv_hdr_first_trending_title','Trending');
7
+ $abv_hdr_first_trending_desc = get_theme_mod( 'abv_hdr_first_trending_desc','Lorem ipsum dolor sit amet consectetur');
8
+ $hs_abv_hdr_social = get_theme_mod('hs_abv_hdr_social','1');
9
+ $abv_hdr_social_ttl = get_theme_mod('abv_hdr_social_ttl','IN SOCIAL');
10
+ $social_icons = get_theme_mod('social_icons',fiona_blog_get_social_icon_default());
11
+ if($hs_abv_hdr_time == '1' || $hs_abv_hdr_trending == '1' || $hs_abv_hdr_social == '1') { ?>
12
+ <div id="above-header" class="header-above-info d-av-block d-none wow fadeInDown">
13
+ <div class="header-widget">
14
+ <div class="av-container">
15
+ <div class="av-columns-area">
16
+ <div class="av-column-7">
17
+ <div class="widget-left text-av-left text-center">
18
+ <aside class="widget widget_text">
19
+ <div class="trending-box">
20
+ <?php if($hs_abv_hdr_time == '1'){ ?>
21
+ <div class="trending-date">
22
+ <?php echo '<span class="t-day">'. date_i18n('j', strtotime(current_time("d"))).'</span>';
23
+ echo '<span class="t-all">'. date_i18n('M Y', strtotime(current_time("Y-m"))).'</span>';
24
+ ?>
25
+ </div>
26
+ <?php }
27
+ if($hs_abv_hdr_trending == '1'){ ?>
28
+ <hr class="trending-border">
29
+ <div class="trending">
30
+ <h3><i class="fa fa-flash"></i><?php echo esc_html($abv_hdr_first_trending_title); ?></h3>
31
+ <div class="text-sliding breaking-news">
32
+ <span class="typewrite" data-period="2000" data-type='[ "<?php echo wp_kses_post($abv_hdr_first_trending_desc); ?>" ]'></span><span class="wrap"></span>
33
+ </div>
34
+ </div>
35
+ <?php } ?>
36
+ </div>
37
+ </aside>
38
+ </div>
39
+ </div>
40
+ <div class="av-column-5">
41
+ <div class="widget-right text-av-right text-center">
42
+ <?php if($hs_abv_hdr_social == '1'){ ?>
43
+ <aside class="widget widget_social_widget">
44
+ <h2><?php echo esc_html($abv_hdr_social_ttl); ?></h2>
45
+ <ul>
46
+ <?php
47
+ $social_icons = json_decode($social_icons);
48
+ if( $social_icons!='' )
49
+ {
50
+ foreach($social_icons as $social_item){
51
+ $social_icon = ! empty( $social_item->icon_value ) ? apply_filters( 'avril_translate_single_string', $social_item->icon_value, 'Header section' ) : '';
52
+ $social_link = ! empty( $social_item->link ) ? apply_filters( 'avril_translate_single_string', $social_item->link, 'Header section' ) : '';
53
+ ?>
54
+ <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>
55
+ <?php }} ?>
56
+ </ul>
57
+ </aside>
58
+ <?php } ?>
59
+ </div>
60
+ </div>
61
+ </div>
62
+ </div>
63
+ </div>
64
+ </div>
65
+ <?php }
66
+ } endif;
67
+ add_action('fiona_blog_above_header', 'fiona_blog_above_header');
inc/fiona-blog/sections/section-slider.php ADDED
@@ -0,0 +1,79 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if ( ! function_exists( 'fiona_blog_slider' ) ) :
3
+ function fiona_blog_slider() {
4
+ $slider_category_id = absint(get_theme_mod('slider_category_id'));
5
+ ?>
6
+ <section id="slider-section" class="slider-wrapper section-9">
7
+ <div class="main02 main-slider">
8
+ <?php
9
+ $args = array( 'post_type' => 'post', 'category__in' => $slider_category_id,'posts_per_page' => 3,'post__not_in'=>get_option("sticky_posts")) ;
10
+ query_posts( $args );
11
+ if(query_posts( $args ))
12
+ {
13
+ while(have_posts()):the_post(); ?>
14
+ <div class="item">
15
+ <?php do_action( 'fiona_blog_post_format_img_video' ); ?>
16
+ <div class="theme-slider">
17
+ <div class="theme-table">
18
+ <div class="theme-table-cell">
19
+ <div class="av-container">
20
+ <div class="theme-content text-center">
21
+ <ul class="post-categories"><li><a href="<?php esc_url(the_permalink()); ?>"><?php the_category(' '); ?></a></li></ul>
22
+ <?php
23
+ if ( is_single() ) :
24
+
25
+ the_title('<h1 class="post-title">', '</h1>' );
26
+
27
+ else:
28
+
29
+ the_title( sprintf( '<h1 class="post-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h1>' );
30
+
31
+ endif;
32
+ ?>
33
+ <div class="author-sub-date">
34
+ <span class="author-name">
35
+ <?php $user = wp_get_current_user(); ?>
36
+ <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>
37
+ </span>
38
+ <span class="post-date">
39
+ <a href="<?php echo esc_url(get_month_link(get_post_time('Y'),get_post_time('m'))); ?>"><span><?php echo esc_html(get_the_date('j')); ?></span> <?php echo esc_html(get_the_date('M')); echo esc_html(get_the_date(' Y')); ?></a>
40
+ </span>
41
+ </div>
42
+ </div>
43
+ </div>
44
+ </div>
45
+ </div>
46
+ </div>
47
+ </div>
48
+ <?php
49
+ endwhile;
50
+ }
51
+ ?>
52
+ </div>
53
+ <div class="controls slider-nav" id="customize-controls" aria-label="Carousel Navigation" tabindex="0">
54
+ <button type="button" class="prev" data-controls="prev" aria-controls="customize" tabindex="-1"><i class="fa fa-arrow-left"></i></button>
55
+ <button type="button" class="next" data-controls="next" aria-controls="customize" tabindex="-1"><i class="fa fa-arrow-right"></i></button>
56
+ </div>
57
+ <div class="customize-tools">
58
+ <ul class="main-slider-thumbnails" id="customize-thumbnails">
59
+ <?php
60
+ $args = array( 'post_type' => 'post', 'category__in' => $slider_category_id,'post__not_in'=>get_option("sticky_posts")) ;
61
+ query_posts( $args );
62
+ if(query_posts( $args ))
63
+ {
64
+ while(have_posts()):the_post();
65
+
66
+ ?>
67
+ <li>
68
+ <?php the_post_thumbnail(); ?>
69
+ </li>
70
+ <?php
71
+ endwhile;
72
+ }
73
+ ?>
74
+ </ul>
75
+ </div>
76
+ </section>
77
+ <?php
78
+ } endif;
79
+ add_action('fiona_blog_slider', 'fiona_blog_slider');
inc/fiona-blog/sections/section-weekend-top.php ADDED
@@ -0,0 +1,94 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if ( ! function_exists( 'fiona_blog_lite_weekend_top' ) ) :
3
+ function fiona_blog_lite_weekend_top() {
4
+ $section7_category_id = get_theme_mod('section7_category_id');
5
+ $section7_title = get_theme_mod('section7_title','Weekend Top');
6
+ $section7_display_num = get_theme_mod('section7_display_num','4');
7
+ ?>
8
+
9
+ <!--===// Start: Section 2
10
+ =================================-->
11
+ <div id="section-7" class="post-section post-shadow av-py-default home-blog">
12
+ <?php if(!empty($section7_title)):?>
13
+ <div class="av-columns-area wow fadeInUp">
14
+ <div class="av-column-12 mb-5">
15
+ <div class="heading-default wow fadeInUp">
16
+ <h3><?php echo esc_html($section7_title); ?></h3>
17
+ </div>
18
+ </div>
19
+ </div>
20
+ <?php endif; ?>
21
+ <div class="av-columns-area wow fadeInUp">
22
+ <?php
23
+ $args = array( 'post_type' => 'post', 'category__in' => $section7_category_id,'posts_per_page' => $section7_display_num,'post__not_in'=>get_option("sticky_posts"));
24
+ query_posts( $args );
25
+ if(query_posts( $args )) {
26
+ while(have_posts()):the_post();
27
+ $post_id = get_the_ID();
28
+ $format = get_post_format() ? : 'standard';
29
+ ?>
30
+ <div class="av-column-6 mb-6">
31
+ <article id="post-<?php the_ID(); ?>" <?php post_class('post-weekend'); ?>>
32
+ <?php if ( has_post_thumbnail() || $format == 'video' ) : ?>
33
+ <figure class="post-image-figure">
34
+ <div class="post-image">
35
+ <?php do_action( 'fiona_blog_post_format_img_video' ); ?>
36
+ </div>
37
+ <span class="post-format">
38
+ <div class="post-shape">
39
+ <div class="post-icon">
40
+ <?php echo $post_id ?>
41
+ </div>
42
+ </div>
43
+ </span>
44
+ </figure>
45
+ <?php endif; ?>
46
+ <?php if ( ! has_post_thumbnail() && $format !== 'video') : ?>
47
+ <div class="post-content post-padding">
48
+ <?php else : ?>
49
+ <div class="post-content">
50
+ <?php endif; ?>
51
+ <div class="post-meta">
52
+ <span class="post-list">
53
+ <ul class="post-categories">
54
+ <li><a href="<?php esc_url(the_permalink()); ?>"><?php the_category(', '); ?></a></li>
55
+ </ul>
56
+ </span>
57
+ <?php if ( ! has_post_thumbnail() && $format !== 'video') : ?>
58
+ <span class="post-format">
59
+ <div class="post-shape">
60
+ <div class="post-icon">
61
+ 1
62
+ </div>
63
+ </div>
64
+ </span>
65
+ <?php endif; ?>
66
+ </div>
67
+ <?php
68
+ //title
69
+ if ( is_single() ) :
70
+
71
+ the_title('<h1 class="post-title">', '</h1>' );
72
+
73
+ else:
74
+
75
+ the_title( sprintf( '<h1 class="post-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h1>' );
76
+
77
+ endif;
78
+
79
+ //content
80
+ do_action( 'fiona_blog_post_format_img_video_content' );
81
+ ?>
82
+ </article>
83
+ </div>
84
+ <?php endwhile; } ?>
85
+ </div>
86
+ </div>
87
+ <?php
88
+ }
89
+ endif;
90
+ if ( function_exists( 'fiona_blog_lite_weekend_top' ) ) {
91
+ $section_priority = apply_filters( 'fiona_blog_section_priority', 11, 'fiona_blog_lite_weekend_top' );
92
+ add_action( 'fiona_blog_sections', 'fiona_blog_lite_weekend_top', absint( $section_priority ) );
93
+ }
94
+
inc/fiona-blog/widgets/assets/css/admin.css ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* ADMIN STYLING */
2
+
3
+ ul.mks_social_container {
4
+ margin-top: 0;
5
+ }
6
+
7
+ ul.mks_social_container li {
8
+ background: rgba(0, 0, 0, 0.02);
9
+ padding: 20px 15px;
10
+ cursor: move;
11
+ position: relative;
12
+ }
13
+
14
+ .mks-option-label {
15
+ display: inline-block;
16
+ width: 30%;
17
+ }
18
+
19
+ .mks-option-radio-wrapper {
20
+ margin-top: -27px;
21
+ }
22
+ label.mks-option-radio {
23
+ margin-left: 30%;
24
+ }
25
+
26
+ label.mks-sw-icon {
27
+ display: inline-block;
28
+ width: 40px;
29
+ }
30
+ span.mks-remove-social {
31
+ position: absolute;
32
+ right: -3px;
33
+ top: 0px;
34
+ padding: 6px;
35
+ color: #a00;
36
+ font-size: 17px;
37
+ cursor: pointer;
38
+ }
39
+ span.mks-remove-social:hover {
40
+ color: red !important;
41
+ }
42
+
43
+ ul.mks_social_container .mks-social-sortable-drop {
44
+ background: transparent;
45
+ border: 1px dashed rgba(0, 0, 0, 0.1);
46
+ height: 58px;
47
+ }
48
+
49
+ h4.mks-icons-title {
50
+ margin-bottom: 9px;
51
+ }
inc/fiona-blog/widgets/assets/css/widget.css ADDED
@@ -0,0 +1,378 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* Get Info Box Start */
2
+ .get-info-box ul.wrap-right {
3
+ padding-left: 20px;
4
+ height: 100%;
5
+ margin: 0;
6
+ }
7
+
8
+ .get-info-box {
9
+ height: 100%;
10
+ display: flex;
11
+ flex-wrap: wrap;
12
+ align-items: center;
13
+ }
14
+
15
+ .header-widget:not(.wrap-right) .emergency-call:before,
16
+ .footer .emergency-call:before,
17
+ .sidebar .emergency-call:before,
18
+ .get-info-box:before {
19
+ content: '';
20
+ position: absolute;
21
+ top: 0;
22
+ width: 100%;
23
+ /*width: 3000px;*/
24
+ height: 100%;
25
+ border: 1px solid transparent;
26
+ box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.05);
27
+ border-radius: 3px;
28
+ z-index: -1;
29
+ }
30
+
31
+ .header-widget:not(.wrap-right) .emergency-call:before,
32
+ .footer .emergency-call:before,
33
+ .sidebar .emergency-call:before {
34
+ left: 0;
35
+ }
36
+
37
+ /* --/-- */
38
+
39
+ /*=============== Emergency-Call Start =============*/
40
+
41
+ .wrap-right .emergency-call {
42
+ height: 100%;
43
+ background-color: #00a3c8;
44
+ }
45
+
46
+ .emergency-call .contact-area {
47
+ -webkit-flex-direction: row-reverse;
48
+ flex-direction: row-reverse;
49
+ height: 100%;
50
+
51
+ }
52
+
53
+ .emergency-call .contact-icon {
54
+ margin-right: 0;
55
+ margin-left: 35px;
56
+ width: 72px;
57
+ height: 100%;
58
+ border-color: #212529;
59
+ }
60
+
61
+ .emergency-call .contact-icon i.fa {
62
+ text-align: center;
63
+ position: relative;
64
+ margin: auto;
65
+ width: 100%;
66
+ height: 100%;
67
+ z-index: 0;
68
+ line-height: 1.37;
69
+ display: flex;
70
+ flex-wrap: wrap;
71
+ align-items: center;
72
+ justify-content: center;
73
+ }
74
+
75
+ .wrap-right .emergency-call .contact-icon {
76
+ min-height: 72px;
77
+ }
78
+
79
+ .wrap-right .emergency-call .contact-icon i.fa {
80
+ line-height: 70px;
81
+ }
82
+
83
+ .wrap-right .emergency-call .contact-icon::before {
84
+ content: "";
85
+ position: absolute;
86
+ top: 0;
87
+ right: 0;
88
+ height: 108px;
89
+ background-color: transparent;
90
+ border: 36px solid;
91
+ border-color: inherit;
92
+ border-bottom-color: transparent;
93
+ z-index: 0;
94
+ }
95
+
96
+ .emergency-call .contact-info {
97
+ text-align: right;
98
+ color: #fff;
99
+ z-index: 0;
100
+ }
101
+
102
+ .emergency-call .contact-info .text {
103
+ font-weight: 700;
104
+ text-transform: capitalize;
105
+ }
106
+
107
+ .emergency-call .contact-info .title {
108
+ font-weight: 700;
109
+ font-size: 19px;
110
+ }
111
+
112
+ .emergency-call:before {
113
+ background: inherit !important;
114
+ border: 1px solid inherit !important;
115
+ }
116
+
117
+ /* --/-- */
118
+
119
+ /*=============== Sidebar Emergency-Call Start =============*/
120
+
121
+ .header-widget:not(.wrap-right) .emergency-call .contact-info,
122
+ .footer .emergency-call .contact-info,
123
+ .sidebar .emergency-call .contact-info {
124
+ padding: 5px 4.75em 5px 0px;
125
+ }
126
+
127
+ .header-widget:not(.wrap-right) .emergency-call,
128
+ .footer .emergency-call,
129
+ .sidebar .emergency-call {
130
+ position: relative;
131
+ z-index: 1;
132
+ border-radius: 0;
133
+ }
134
+
135
+ .header-widget:not(.wrap-right) .emergency-call,
136
+ .footer:not(.footer .footer-center) .emergency-call,
137
+ .sidebar .emergency-call {
138
+ max-width: 95%;
139
+ }
140
+
141
+ .header-widget:not(.wrap-right) .emergency-call .contact-icon,
142
+ .footer .emergency-call .contact-icon,
143
+ .sidebar .emergency-call .contact-icon {
144
+ margin-right: 0;
145
+ width: 50px;
146
+ height: 100%;
147
+ position: absolute;
148
+ top: 0;
149
+ right: 12px;
150
+ z-index: 5;
151
+ }
152
+
153
+ .header-widget:not(.wrap-right) .emergency-call .contact-icon::before,
154
+ .footer .emergency-call .contact-icon::before,
155
+ .sidebar .emergency-call .contact-icon::before {
156
+ top: 0px;
157
+ background-color: transparent;
158
+ border: 18px solid;
159
+ border-color: inherit;
160
+ border-right-color: transparent;
161
+ bottom: 0;
162
+ content: "";
163
+ position: absolute;
164
+ right: -30px;
165
+ z-index: 9;
166
+ }
167
+
168
+ .header-widget:not(.wrap-right) .emergency-call:before,
169
+ .footer .emergency-call:before,
170
+ .sidebar .emergency-call:before {
171
+ border-radius: 0;
172
+ }
173
+
174
+ /* --/-- */
175
+
176
+ /*=============== Contact-Area Start =============*/
177
+
178
+ .contact-area {
179
+ display: -webkit-box;
180
+ display: -webkit-flex;
181
+ display: -ms-flexbox;
182
+ display: flex;
183
+ -webkit-box-align: center;
184
+ -webkit-align-items: center;
185
+ -ms-flex-align: center;
186
+ align-items: center;
187
+ padding-left: 13px;
188
+ }
189
+
190
+ .contact-icon {
191
+ -webkit-flex-shrink: 0;
192
+ -ms-flex-negative: 0;
193
+ flex-shrink: 0;
194
+ font-size: 35px;
195
+ line-height: 1;
196
+ position: relative;
197
+ z-index: 1;
198
+ }
199
+ .contact-icon {
200
+ height: 35px;
201
+ margin-right: 10px;
202
+ }
203
+
204
+ @-webkit-keyframes fiona {
205
+ 0% {
206
+ -webkit-transform: translateY(-4px);
207
+ transform: translateY(-4px);
208
+ }
209
+
210
+ 50% {
211
+ -webkit-transform: translateY(0px);
212
+ transform: translateY(0px);
213
+ }
214
+
215
+ 100% {
216
+ -webkit-transform: translateY(-4px);
217
+ transform: translateY(-4px);
218
+ }
219
+ }
220
+
221
+ @keyframes fiona {
222
+ 0% {
223
+ -webkit-transform: translateY(-4px);
224
+ transform: translateY(-4px);
225
+ }
226
+
227
+ 50% {
228
+ -webkit-transform: translateY(0px);
229
+ transform: translateY(0px);
230
+ }
231
+
232
+ 100% {
233
+ -webkit-transform: translateY(-4px);
234
+ transform: translateY(-4px);
235
+ }
236
+ }
237
+
238
+ @-webkit-keyframes fiona-blog-float {
239
+ 100% {
240
+ -webkit-transform: translateY(-4px);
241
+ transform: translateY(-4px);
242
+ }
243
+ }
244
+
245
+ @keyframes fiona-blog-float {
246
+ 100% {
247
+ -webkit-transform: translateY(-4px);
248
+ transform: translateY(-4px);
249
+ }
250
+ }
251
+
252
+ .contact-area .contact-icon i,
253
+ .contact-area .contact-icon img {
254
+ display: inline-block;
255
+ vertical-align: super;
256
+ -webkit-transform: translateZ(0);
257
+ transform: translateZ(0);
258
+ box-shadow: 0 0 1px rgba(0, 0, 0, 0);
259
+ -webkit-backface-visibility: hidden;
260
+ backface-visibility: hidden;
261
+ -moz-osx-font-smoothing: grayscale;
262
+ }
263
+
264
+ .contact-area:hover .contact-icon i,
265
+ .contact-area:hover .contact-icon img {
266
+ -webkit-animation-name: fiona-blog-float, fiona;
267
+ animation-name: fiona-blog-float, fiona;
268
+ -webkit-animation-duration: .3s, 1.5s;
269
+ animation-duration: .3s, 1.5s;
270
+ -webkit-animation-delay: 0s, .3s;
271
+ animation-delay: 0s, .3s;
272
+ -webkit-animation-timing-function: ease-out, ease-in-out;
273
+ animation-timing-function: ease-out, ease-in-out;
274
+ -webkit-animation-iteration-count: 1, infinite;
275
+ animation-iteration-count: 1, infinite;
276
+ -webkit-animation-fill-mode: forwards;
277
+ animation-fill-mode: forwards;
278
+ -webkit-animation-direction: normal, alternate;
279
+ animation-direction: normal, alternate;
280
+ }
281
+
282
+ .contact-info {
283
+ /*-webkit-box-flex: 1;
284
+ -webkit-flex-grow: 1;
285
+ -ms-flex-positive: 1;
286
+ flex-grow: 1;*/
287
+ display: inline-block;
288
+ text-align: left;
289
+ color: inherit;
290
+ text-decoration: none;
291
+ }
292
+
293
+ .contact-info span {
294
+ display: block;
295
+ line-height: normal;
296
+ font-size: 13px;
297
+ font-weight: 500;
298
+ text-shadow: -0.15px -0.15px 0 transparent, 0.15px 0.15px transparent;
299
+ -webkit-transition: .3s ease-in-out;
300
+ transition: .3s ease-in-out;
301
+ }
302
+
303
+ .contact-info span.title {
304
+ font-size: 17px;
305
+ line-height: 1.15;
306
+ margin-bottom: 0px;
307
+ }
308
+
309
+ .contact-info .text {
310
+ margin: 0;
311
+ word-break: break-word;
312
+ }
313
+
314
+ /* --/-- */
315
+
316
+ /* Contact Widget Color */
317
+
318
+ .header-widget:not(.wrap-right) .emergency-call .contact-icon,
319
+ .sidebar .emergency-call .contact-icon {
320
+ border-color: #212529;
321
+ background-color: #212529;
322
+ }
323
+
324
+ .footer .emergency-call .contact-icon {
325
+ border-color: #ffffff;
326
+ background-color: #ffffff;
327
+ }
328
+
329
+ /* .header-widget:not(.wrap-right) .emergency-call:before, */
330
+ /* .footer .emergency-call:before, */
331
+ /* .sidebar .emergency-call:before, */
332
+ /* .get-info-box:before { */
333
+ /* background: #00a3c8; */
334
+ /* border-color: #00a3c8; */
335
+ /* } */
336
+
337
+ /* ---//--- */
338
+
339
+ /* Widget Social Start */
340
+
341
+ .widget_social_widget ul {
342
+ display: -ms-inline-flexbox;
343
+ display: inline-flex;
344
+ list-style: none;
345
+ margin: 0;
346
+ padding: 0;
347
+ }
348
+
349
+ .widget_social_widget li {
350
+ position: relative;
351
+ display: -ms-inline-flexbox;
352
+ display: inline-flex;
353
+ margin-right: -5px;
354
+ overflow: visible;
355
+ list-style: none;
356
+ }
357
+
358
+ .widget.widget_social_widget li {
359
+ overflow: visible;
360
+ list-style: none;
361
+ margin: 0;
362
+ margin-right: 10px;
363
+ }
364
+
365
+ .widget_social_widget li:last-child {
366
+ margin-right: 0;
367
+ }
368
+
369
+ .widget_social_widget li a {
370
+ display: inline-block;
371
+ width: 34px;
372
+ height: 34px;
373
+ line-height: 35px;
374
+ font-size: 16px;
375
+ text-align: center;
376
+ }
377
+
378
+ /*---//---*/
inc/fiona-blog/widgets/assets/fonticonpicker/iconpicker.eot ADDED
Binary file
inc/fiona-blog/widgets/assets/fonticonpicker/iconpicker.svg ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" standalone="no"?>
2
+ <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
3
+ <svg xmlns="http://www.w3.org/2000/svg">
4
+ <metadata>Copyright (C) 2014 by original authors @ fontello.com</metadata>
5
+ <defs>
6
+ <font id="iconpicker" horiz-adv-x="1000" >
7
+ <font-face font-family="iconpicker" font-weight="400" font-stretch="normal" units-per-em="1000" ascent="850" descent="-150" />
8
+ <missing-glyph horiz-adv-x="1000" />
9
+ <glyph glyph-name="spin3" unicode="&#xe815;" d="m494 850c-266 0-483-210-494-472c-1-19 13-20 13-20l84 0c16 0 19 10 19 18c10 199 176 358 378 358c107 0 205-45 273-118l-58-57c-11-12-11-27 5-31l247-50c21-5 46 11 37 44l-58 227c-2 9-16 22-29 13l-65-60c-89 91-214 148-352 148z m409-508c-16 0-19-10-19-18c-10-199-176-358-377-358c-108 0-205 45-274 118l59 57c10 12 10 27-5 31l-248 50c-21 5-46-11-37-44l58-227c2-9 16-22 30-13l64 60c89-91 214-148 353-148c265 0 482 210 493 473c1 18-13 19-13 19l-84 0z" horiz-adv-x="1000" />
10
+ <glyph glyph-name="search" unicode="&#xe812;" d="m643 386q0 103-74 176t-176 74t-177-74t-73-176t73-177t177-73t176 73t74 177z m286-465q0-29-22-50t-50-21q-30 0-50 21l-191 191q-100-69-223-69q-80 0-153 31t-125 84t-84 125t-31 153t31 152t84 126t125 84t153 31t152-31t126-84t84-126t31-152q0-123-69-223l191-191q21-21 21-51z" horiz-adv-x="928.6" />
11
+ <glyph glyph-name="cancel" unicode="&#xe814;" d="m724 112q0-22-15-38l-76-76q-16-15-38-15t-38 15l-164 165l-164-165q-16-15-38-15t-38 15l-76 76q-16 16-16 38t16 38l164 164l-164 164q-16 16-16 38t16 38l76 76q16 16 38 16t38-16l164-164l164 164q16 16 38 16t38-16l76-76q15-15 15-38t-15-38l-164-164l164-164q15-15 15-38z" horiz-adv-x="785.7" />
12
+ <glyph glyph-name="block" unicode="&#xe84e;" d="m732 352q0 90-48 164l-421-420q76-50 166-50q62 0 118 25t96 65t65 97t24 119z m-557-167l421 421q-75 50-167 50q-83 0-153-40t-110-112t-41-152q0-91 50-167z m682 167q0-88-34-168t-91-137t-137-92t-166-34t-167 34t-137 92t-91 137t-34 168t34 167t91 137t137 91t167 34t166-34t137-91t91-137t34-167z" horiz-adv-x="857.1" />
13
+ <glyph glyph-name="down-dir" unicode="&#xe800;" d="m571 457q0-14-10-25l-250-250q-11-11-25-11t-25 11l-250 250q-11 11-11 25t11 25t25 11h500q14 0 25-11t10-25z" horiz-adv-x="571.4" />
14
+ <glyph glyph-name="up-dir" unicode="&#xe813;" d="m571 171q0-14-10-25t-25-10h-500q-15 0-25 10t-11 25t11 26l250 250q10 10 25 10t25-10l250-250q10-11 10-26z" horiz-adv-x="571.4" />
15
+ <glyph glyph-name="left-dir" unicode="&#xe801;" d="m357 600v-500q0-14-10-25t-26-11t-25 11l-250 250q-10 11-10 25t10 25l250 250q11 11 25 11t26-11t10-25z" horiz-adv-x="357.1" />
16
+ <glyph glyph-name="right-dir" unicode="&#xe802;" d="m321 350q0-14-10-25l-250-250q-11-11-25-11t-25 11t-11 25v500q0 15 11 25t25 11t25-11l250-250q10-10 10-25z" horiz-adv-x="357.1" />
17
+ </font>
18
+ </defs>
19
+ </svg>
inc/fiona-blog/widgets/assets/fonticonpicker/iconpicker.ttf ADDED
Binary file
inc/fiona-blog/widgets/assets/fonticonpicker/iconpicker.woff ADDED
Binary file
inc/fiona-blog/widgets/assets/fonticonpicker/jquery.fonticonpicker.min.css ADDED
@@ -0,0 +1,2 @@
 
 
1
+ /* fontIconPicker main CSS file {@link https://github.com/micc83/fontIconPicker} */
2
+ .icons-selector *{margin:0;padding:0;border:0;vertical-align:baseline;}.icons-selector,.icons-selector *,.icons-selector :after,.icons-selector :before,.icons-selector:after,.icons-selector:before{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}.icons-selector{display:inline-block;vertical-align:middle;text-align:left}.icons-selector .selector{width:100px;height:40px}.icons-selector .selector-button{width:39px;height:100%;display:block;text-align:center;cursor:pointer;float:left}.icons-selector .selector-button i{line-height:38px;text-align:center}.icons-selector .selected-icon{display:block;width:60px;height:100%;float:left;text-align:center}.icons-selector .selected-icon i{line-height:40px;font-size:18px;cursor:default}.icons-selector .selector-popup{position:absolute;z-index:10000;background-color:#fefefe;padding:5px;height:auto;width:342px;margin-top:-1px}.icons-selector .selector-category select,.icons-selector .selector-search input[type=text]{border:0;line-height:20px;padding:10px 2.5%;width:100%;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;margin-bottom:5px;font-size:12px;display:block}.icons-selector .selector-category select{height:40px}.icons-selector .selector-category select option{padding:10px}.icons-selector input::-webkit-input-placeholder{text-transform:uppercase}.icons-selector input:-moz-placeholder{text-transform:uppercase}.icons-selector input::-moz-placeholder{text-transform:uppercase}.icons-selector input:-ms-input-placeholder{text-transform:uppercase}.icons-selector .selector-search{position:relative}.icons-selector .selector-search i{position:absolute;right:10px;top:7px}.icons-selector .fip-icons-container{width:100%;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;padding:5px}.icons-selector .fip-icons-container .loading{font-size:24px;margin:0 auto;padding:20px 0;text-align:center;width:100%}.icons-selector .fip-box{display:inline-block;margin:2px;width:60px;line-height:42px;text-align:center;cursor:pointer;vertical-align:top;height:40px}.icons-selector .selector-footer{line-height:12px;padding:5px 5px 0;text-align:center}.icons-selector .selector-footer,.icons-selector .selector-footer i{font-size:14px}.icons-selector .selector-arrows{float:right}.icons-selector .selector-pages{font-size:11px;float:left}.icons-selector .selector-arrows i{cursor:pointer}.icons-selector .selector-footer em{font-style:italic}.icons-selector .icons-picker-error i:before{color:#eee}@font-face{font-family:iconpicker;src:url(iconpicker.eot?90190138);src:url(iconpicker.eot?90190138#iefix) format('embedded-opentype'),url(iconpicker.woff?90190138) format('woff'),url(iconpicker.ttf?90190138) format('truetype'),url(iconpicker.svg?90190138#iconpicker) format('svg');font-weight:400;font-style:normal}.icons-selector [class*=" fip-icon-"]:before,.icons-selector [class^=fip-icon-]:before{font-family:iconpicker;font-style:normal;font-weight:400;speak:none;display:inline-block;text-decoration:inherit;width:1em;margin-right:.2em;text-align:center;font-variant:normal;text-transform:none;line-height:1em;margin-left:.2em}.icons-selector .fip-icon-search:before{content:'\e812';cursor:default}.icons-selector .fip-icon-cancel:before{content:'\e814';cursor:pointer}.icons-selector .fa-times-circle-o:before{color: #fed0d0;font-size: 18px;line-height: 1.85;}.icons-selector .fip-icon-block:before{content:'\e84e';color:#fed0d0}.icons-selector .fip-icon-down-dir:before{content:'\e800'}.icons-selector .fip-icon-up-dir:before{content:'\e813'}.icons-selector .fip-icon-left-dir:before{content:'\e801'}.icons-selector .fip-icon-right-dir:before{content:'\e802'}.icons-selector .fip-icon-spin3:before{content:'\e815'}.icons-selector .fip-icon-spin3{-moz-animation:spin 2s infinite linear;-o-animation:spin 2s infinite linear;-webkit-animation:spin 2s infinite linear;animation:spin 2s infinite linear;display:inline-block}@-moz-keyframes spin{0%{-moz-transform:rotate(0deg);-o-transform:rotate(0deg);-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-moz-transform:rotate(359deg);-o-transform:rotate(359deg);-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@-webkit-keyframes spin{0%{-moz-transform:rotate(0deg);-o-transform:rotate(0deg);-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-moz-transform:rotate(359deg);-o-transform:rotate(359deg);-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@-o-keyframes spin{0%{-moz-transform:rotate(0deg);-o-transform:rotate(0deg);-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-moz-transform:rotate(359deg);-o-transform:rotate(359deg);-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@-ms-keyframes spin{0%{-moz-transform:rotate(0deg);-o-transform:rotate(0deg);-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-moz-transform:rotate(359deg);-o-transform:rotate(359deg);-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes spin{0%{-moz-transform:rotate(0deg);-o-transform:rotate(0deg);-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-moz-transform:rotate(359deg);-o-transform:rotate(359deg);-webkit-transform:rotate(359deg);transform:rotate(359deg)}}
inc/fiona-blog/widgets/assets/fonticonpicker/jquery.fonticonpicker.min.js ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * jQuery fontIconPicker - v2.0.0
3
+ *
4
+ * An icon picker built on top of font icons and jQuery
5
+ *
6
+ * http://codeb.it/fontIconPicker
7
+ *
8
+ * Made by Alessandro Benoit & Swashata
9
+ * Under MIT License
10
+ *
11
+ * {@link https://github.com/micc83/fontIconPicker}
12
+ */
13
+ !function(a){"use strict";function c(c,d){this.element=a(c),this.settings=a.extend({},b,d),this.settings.emptyIcon&&this.settings.iconsPerPage--,this.iconPicker=a("<div/>",{"class":"icons-selector",style:"position: relative",html:'<div class="selector"><span class="selected-icon"><i class="fa-times-circle-o"></i></span><span class="selector-button"><i class="fip-icon-down-dir"></i></span></div><div class="selector-popup" style="display: none;">'+(this.settings.hasSearch?'<div class="selector-search"><input type="text" name="" value="" placeholder="Search icon" class="icons-search-input"/><i class="fip-icon-search"></i></div>':"")+'<div class="selector-category">'+'<select name="" class="icon-category-select" style="display: none">'+"</select>"+"</div>"+'<div class="fip-icons-container"></div>'+'<div class="selector-footer" style="display:none;">'+'<span class="selector-pages">1/2</span>'+'<span class="selector-arrows">'+'<span class="selector-arrow-left" style="display:none;">'+'<i class="fip-icon-left-dir"></i>'+"</span>"+'<span class="selector-arrow-right">'+'<i class="fip-icon-right-dir"></i>'+"</span>"+"</span>"+"</div>"+"</div>"}),this.iconContainer=this.iconPicker.find(".fip-icons-container"),this.searchIcon=this.iconPicker.find(".selector-search i"),this.iconsSearched=[],this.isSearch=!1,this.totalPage=1,this.currentPage=1,this.currentIcon=!1,this.iconsCount=0,this.open=!1,this.searchValues=[],this.availableCategoriesSearch=[],this.triggerEvent=null,this.backupSource=[],this.backupSearch=[],this.isCategorized=!1,this.selectCategory=this.iconPicker.find(".icon-category-select"),this.selectedCategory=!1,this.availableCategories=[],this.unCategorizedKey=null,this.init()}var b={theme:"fip-grey",source:!1,emptyIcon:!0,emptyIconValue:"",iconsPerPage:20,hasSearch:!0,searchSource:!1,useAttribute:!1,attributeName:"data-icon",convertToHex:!0,allCategoryText:"From all categories",unCategorizedText:"Uncategorized"};c.prototype={init:function(){this.iconPicker.addClass(this.settings.theme),this.iconPicker.css({left:-9999}).appendTo("body");var b=this.iconPicker.outerHeight(),c=this.iconPicker.outerWidth();if(this.iconPicker.css({left:""}),this.element.before(this.iconPicker),this.element.css({visibility:"hidden",top:0,position:"relative",zIndex:"-1",left:"-"+c+"px",display:"inline-block",height:b+"px",width:c+"px",padding:"0",margin:"0 -"+c+"px 0 0",border:"0 none",verticalAlign:"top"}),!this.element.is("select")){var d=function(){for(var a=3,b=document.createElement("div"),c=b.all||[];b.innerHTML="<!--[if gt IE "+ ++a+"]><br><![endif]-->",c[0];);return a>4?a:!a}(),e=document.createElement("div");this.triggerEvent=9!==d&&"oninput"in e?["input","keyup"]:["keyup"]}!this.settings.source&&this.element.is("select")?(this.settings.source=[],this.settings.searchSource=[],this.element.find("optgroup").length?(this.isCategorized=!0,this.element.find("optgroup").each(a.proxy(function(b,c){var d=this.availableCategories.length,e=a("<option />");e.attr("value",d),e.html(a(c).attr("label")),this.selectCategory.append(e),this.availableCategories[d]=[],this.availableCategoriesSearch[d]=[],a(c).find("option").each(a.proxy(function(b,c){var e=a(c).val(),f=a(c).html();e&&e!==this.settings.emptyIconValue&&(this.settings.source.push(e),this.availableCategories[d].push(e),this.searchValues.push(f),this.availableCategoriesSearch[d].push(f))},this))},this)),this.element.find("> option").length&&this.element.find("> option").each(a.proxy(function(b,c){var d=a(c).val(),e=a(c).html();return d&&""!==d&&d!=this.settings.emptyIconValue?(null===this.unCategorizedKey&&(this.unCategorizedKey=this.availableCategories.length,this.availableCategories[this.unCategorizedKey]=[],this.availableCategoriesSearch[this.unCategorizedKey]=[],a("<option />").attr("value",this.unCategorizedKey).html(this.settings.unCategorizedText).appendTo(this.selectCategory)),this.settings.source.push(d),this.availableCategories[this.unCategorizedKey].push(d),this.searchValues.push(e),this.availableCategoriesSearch[this.unCategorizedKey].push(e),void 0):!0},this))):this.element.find("option").each(a.proxy(function(b,c){var d=a(c).val(),e=a(c).html();d&&(this.settings.source.push(d),this.searchValues.push(e))},this)),this.backupSource=this.settings.source.slice(0),this.backupSearch=this.searchValues.slice(0),this.loadCategories()):this.initSourceIndex(),this.loadIcons(),this.selectCategory.on("change keyup",a.proxy(function(b){if(this.isCategorized===!1)return!1;var c=a(b.currentTarget),d=c.val();if("all"===c.val())this.settings.source=this.backupSource,this.searchValues=this.backupSearch;else{var e=parseInt(d,10);this.availableCategories[e]&&(this.settings.source=this.availableCategories[e],this.searchValues=this.availableCategoriesSearch[e])}this.resetSearch(),this.loadIcons()},this)),this.iconPicker.find(".selector-button").click(a.proxy(function(){this.toggleIconSelector()},this)),this.iconPicker.find(".selector-arrow-right").click(a.proxy(function(b){this.currentPage<this.totalPage&&(this.iconPicker.find(".selector-arrow-left").show(),this.currentPage=this.currentPage+1,this.renderIconContainer()),this.currentPage===this.totalPage&&a(b.currentTarget).hide()},this)),this.iconPicker.find(".selector-arrow-left").click(a.proxy(function(b){this.currentPage>1&&(this.iconPicker.find(".selector-arrow-right").show(),this.currentPage=this.currentPage-1,this.renderIconContainer()),1===this.currentPage&&a(b.currentTarget).hide()},this)),this.iconPicker.find(".icons-search-input").keyup(a.proxy(function(b){var c=a(b.currentTarget).val();return""===c?(this.resetSearch(),void 0):(this.searchIcon.removeClass("fip-icon-search"),this.searchIcon.addClass("fip-icon-cancel"),this.isSearch=!0,this.currentPage=1,this.iconsSearched=[],a.grep(this.searchValues,a.proxy(function(a,b){return a.toLowerCase().search(c.toLowerCase())>=0?(this.iconsSearched[this.iconsSearched.length]=this.settings.source[b],!0):void 0},this)),this.renderIconContainer(),void 0)},this)),this.iconPicker.find(".selector-search").on("click",".fip-icon-cancel",a.proxy(function(){this.iconPicker.find(".icons-search-input").focus(),this.resetSearch()},this)),this.iconContainer.on("click",".fip-box",a.proxy(function(b){this.setSelectedIcon(a(b.currentTarget).find("i").attr("data-fip-value")),this.toggleIconSelector()},this)),this.iconPicker.click(function(a){return a.stopPropagation(),!1}),a("html").click(a.proxy(function(){this.open&&this.toggleIconSelector()},this))},initSourceIndex:function(){if("object"==typeof this.settings.source){if(a.isArray(this.settings.source))this.isCategorized=!1,this.selectCategory.html("").hide(),this.settings.source=a.map(this.settings.source,function(a){return"function"==typeof a.toString?a.toString():a}),this.searchValues=a.isArray(this.settings.searchSource)?a.map(this.settings.searchSource,function(a){return"function"==typeof a.toString?a.toString():a}):this.settings.source.slice(0);else{var b=a.extend(!0,{},this.settings.source);this.settings.source=[],this.searchValues=[],this.availableCategoriesSearch=[],this.selectedCategory=!1,this.availableCategories=[],this.unCategorizedKey=null,this.isCategorized=!0,this.selectCategory.html("");for(var c in b){var d=this.availableCategories.length,e=a("<option />");e.attr("value",d),e.html(c),this.selectCategory.append(e),this.availableCategories[d]=[],this.availableCategoriesSearch[d]=[];for(var f in b[c]){var g=b[c][f],h=this.settings.searchSource&&this.settings.searchSource[c]&&this.settings.searchSource[c][f]?this.settings.searchSource[c][f]:g;"function"==typeof g.toString&&(g=g.toString()),g&&g!==this.settings.emptyIconValue&&(this.settings.source.push(g),this.availableCategories[d].push(g),this.searchValues.push(h),this.availableCategoriesSearch[d].push(h))}}}this.backupSource=this.settings.source.slice(0),this.backupSearch=this.searchValues.slice(0),this.loadCategories()}},loadCategories:function(){this.isCategorized!==!1&&(a('<option value="all">'+this.settings.allCategoryText+"</option>").prependTo(this.selectCategory),this.selectCategory.show().val("all").trigger("change"))},loadIcons:function(){this.iconContainer.html('<i class="fip-icon-spin3 animate-spin loading"></i>'),this.settings.source instanceof Array&&this.renderIconContainer()},renderIconContainer:function(){var b,c=[];if(c=this.isSearch?this.iconsSearched:this.settings.source,this.iconsCount=c.length,this.totalPage=Math.ceil(this.iconsCount/this.settings.iconsPerPage),this.totalPage>1?this.iconPicker.find(".selector-footer").show():this.iconPicker.find(".selector-footer").hide(),this.iconPicker.find(".selector-pages").html(this.currentPage+"/"+this.totalPage+" <em>("+this.iconsCount+")</em>"),b=(this.currentPage-1)*this.settings.iconsPerPage,this.settings.emptyIcon)this.iconContainer.html('<span class="fip-box"><i class="fa fa-times-circle-o" data-fip-value="fa-times-circle-o"></i></span>');else{if(c.length<1)return this.iconContainer.html('<span class="icons-picker-error"><i class="fa fa-times-circle-o" data-fip-value="fa-times-circle-o"></i></span>'),void 0;this.iconContainer.html("")}c=c.slice(b,b+this.settings.iconsPerPage);for(var e,d=0;e=c[d++];){var f=e;a.grep(this.settings.source,a.proxy(function(a,b){return a===e?(f=this.searchValues[b],!0):!1},this)),a("<span/>",{html:'<i data-fip-value="'+e+'" '+(this.settings.useAttribute?this.settings.attributeName+'="'+(this.settings.convertToHex?"&#x"+parseInt(e,10).toString(16)+";":e)+'"':'class="fa '+e+'"')+"></i>","class":"fip-box",title:f}).appendTo(this.iconContainer)}this.settings.emptyIcon||this.element.val()&&-1!==a.inArray(this.element.val(),this.settings.source)?-1===a.inArray(this.element.val(),this.settings.source)?this.setSelectedIcon():this.setSelectedIcon(this.element.val()):this.setSelectedIcon(c[0])},setHighlightedIcon:function(){this.iconContainer.find(".current-icon").removeClass("current-icon"),this.currentIcon&&this.iconContainer.find('[data-fip-value="'+this.currentIcon+'"]').parent("span").addClass("current-icon")},setSelectedIcon:function(a){if("fa-times-circle-o"===a&&(a=""),this.settings.useAttribute?a?this.iconPicker.find(".selected-icon").html("<i "+this.settings.attributeName+'="'+(this.settings.convertToHex?"&#x"+parseInt(a,10).toString(16)+";":a)+'"></i>'):this.iconPicker.find(".selected-icon").html('<i class="fa-times-circle-o"></i>'):this.iconPicker.find(".selected-icon").html('<i class="fa '+(a||"fa-times-circle-o")+'"></i>'),this.element.val(""===a?this.settings.emptyIconValue:a).trigger("change"),null!==this.triggerEvent)for(var b in this.triggerEvent)this.element.trigger(this.triggerEvent[b]);this.currentIcon=a,this.setHighlightedIcon()},toggleIconSelector:function(){this.open=this.open?0:1,this.iconPicker.find(".selector-popup").slideToggle(300),this.iconPicker.find(".selector-button i").toggleClass("fip-icon-down-dir"),this.iconPicker.find(".selector-button i").toggleClass("fip-icon-up-dir"),this.open&&this.iconPicker.find(".icons-search-input").focus().select()},resetSearch:function(){this.iconPicker.find(".icons-search-input").val(""),this.searchIcon.removeClass("fip-icon-cancel"),this.searchIcon.addClass("fip-icon-search"),this.iconPicker.find(".selector-arrow-left").hide(),this.currentPage=1,this.isSearch=!1,this.renderIconContainer(),this.totalPage>1&&this.iconPicker.find(".selector-arrow-right").show()}},a.fn.fontIconPicker=function(b){return this.each(function(){a.data(this,"fontIconPicker")||a.data(this,"fontIconPicker",new c(this,b))}),this.setIcons=a.proxy(function(b,c){void 0===b&&(b=!1),void 0===c&&(c=!1),this.each(function(){a.data(this,"fontIconPicker").settings.source=b,a.data(this,"fontIconPicker").settings.searchSource=c,a.data(this,"fontIconPicker").initSourceIndex(),a.data(this,"fontIconPicker").resetSearch(),a.data(this,"fontIconPicker").loadIcons()})},this),this.destroyPicker=a.proxy(function(){this.each(function(){a.data(this,"fontIconPicker")&&(a.data(this,"fontIconPicker").iconPicker.remove(),a.data(this,"fontIconPicker").element.css({visibility:"",top:"",position:"",zIndex:"",left:"",display:"",height:"",width:"",padding:"",margin:"",border:"",verticalAlign:""}),a.removeData(this,"fontIconPicker"))})},this),this.refreshPicker=a.proxy(function(d){d||(d=b),this.destroyPicker(),this.each(function(){a.data(this,"fontIconPicker")||a.data(this,"fontIconPicker",new c(this,d))})},this),this}}(jQuery);
inc/fiona-blog/widgets/assets/js/main.js ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function($) {
2
+ $(document).ready(function($) {
3
+
4
+ /* Social widget handlers */
5
+ $(document).on("live click", "input.widget-control-save", function(e) {
6
+ setTimeout(function(){
7
+ $('.mks-social-sortable').find('.iconPicker').fontIconPicker();
8
+ $('.contact-icon-picker .iconPicker').fontIconPicker();
9
+ },1000);
10
+ $('input.widget-control-save').attr('disabled', 'disabled');
11
+ return false;
12
+ });
13
+
14
+ $('.mks-social-sortable').find('.iconPicker').fontIconPicker();
15
+ $('.contact-icon-picker .iconPicker').fontIconPicker();
16
+ $("body").on("click", "a.mks_add_social", function(e) {
17
+ e.preventDefault();
18
+
19
+ var widget_holder = $(this).closest('.widget-inside');
20
+ var cloner = widget_holder.find('.mks_social_clone');
21
+
22
+ widget_holder.find('.mks_social_container').append('<li>' + cloner.html() + '</li>');
23
+ widget_holder.find('.mks_social_container .iconPicker').fontIconPicker();
24
+ $(this).trigger('change');
25
+ });
26
+
27
+ $("body").on("click", ".mks-remove-social", function(e) {
28
+ var delete_item = confirm('Are you sure you want to delete this icon?');
29
+ delete_item ? $(this).closest('li').remove() : '';
30
+ $('.mks-social-sortable').trigger('change');
31
+ });
32
+
33
+ $("body").on("mousedown", ".mks-social-sortable li", function(e) {
34
+ $('.mks-social-sortable').trigger('change');
35
+ });
36
+
37
+ /* Init sortable */
38
+ mks_social_sortable();
39
+
40
+ $(document).on('widget-added', function(e) {
41
+ mks_social_sortable();
42
+ });
43
+
44
+ $(document).on('widget-updated', function(e) {
45
+ mks_social_sortable();
46
+ });
47
+
48
+ /* Sortable function */
49
+ function mks_social_sortable() {
50
+ $(".mks-social-sortable").sortable({
51
+ revert: false,
52
+ cursor: "move",
53
+ delay: 100,
54
+ placeholder: "mks-social-sortable-drop"
55
+ });
56
+ }
57
+
58
+ });
59
+
60
+
61
+ function initColorPicker( widget ) {
62
+ widget.find( '.my-color-picker' ).wpColorPicker( {
63
+ change: _.throttle( function() { // For Customizer
64
+ $(this).trigger( 'change' );
65
+ }, 3000 )
66
+ });
67
+ }
68
+
69
+ function onFormUpdate( event, widget ) {
70
+ initColorPicker( widget );
71
+ }
72
+
73
+ $( document ).on( 'widget-added widget-updated', onFormUpdate );
74
+
75
+ $( document ).ready( function() {
76
+ $( '#widgets-right .widget:has(.my-color-picker)' ).each( function () {
77
+ initColorPicker( $( this ) );
78
+ } );
79
+ } );
80
+ })(jQuery);
inc/fiona-blog/widgets/class-author-widget.php ADDED
@@ -0,0 +1,133 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Register Post Categories widget
4
+ *
5
+ */
6
+ class fiona_blog_author_widget extends WP_Widget{
7
+
8
+ function __construct() {
9
+ parent::__construct(
10
+ 'fiona_blog_author_widget', // Base ID
11
+ __('Fiona : Author Widget','fiona'), // Name
12
+ array( 'description' => __('Author widget', 'fiona' ), ) // Args
13
+ );
14
+ }
15
+
16
+ public function widget( $args , $instance ) {
17
+
18
+ echo $args['before_widget'];
19
+
20
+ $selected_author_id = isset($instance['selected_author_id']) ? $instance['selected_author_id'] : 0;
21
+ $author_image_hs = isset($instance['author_image_hs']) ? $instance['author_image_hs'] : 1;
22
+ $author_nickname_hs = isset($instance['author_nickname_hs']) ? $instance['author_nickname_hs'] : 1;
23
+ $author_first_name_hs = isset($instance['author_first_name_hs']) ? $instance['author_first_name_hs'] : 1;
24
+ $author_last_name_hs = isset($instance['author_last_name_hs']) ? $instance['author_last_name_hs'] : 1;
25
+ $author_designation_hs = isset($instance['author_designation_hs']) ? $instance['author_designation_hs'] : 1;
26
+ $author_description_hs = isset($instance['author_description_hs']) ? $instance['author_description_hs'] : 1;
27
+
28
+
29
+ if(($instance['selected_author_id']) !=null) {
30
+ ?>
31
+ <?php
32
+ $user = (isset($_GET['author_name'])) ? get_user_by('id', $selected_author_id) : get_userdata(intval($selected_author_id));
33
+ ?>
34
+ <h5 class="widget-title">
35
+ <a href="<?php echo esc_url(get_author_posts_url( $user->ID ));?>">
36
+ <?php
37
+ if($author_first_name_hs == '1'): echo $user->first_name; endif;
38
+ if($author_last_name_hs == '1'): echo ' '.$user->last_name; endif;
39
+ ?>
40
+ </a>
41
+ </h5>
42
+ <div class="author-content">
43
+ <?php
44
+
45
+ if($author_image_hs == '1'): echo get_avatar( $user->ID, 200); endif;
46
+ if($author_nickname_hs == '1'): echo '<h4 class="author-title">'.$user->nickname.'</h4>'; endif;
47
+ if($author_designation_hs == '1'): echo '<p>'.$user->designation.'</p>'; endif;
48
+ if($author_description_hs == '1'): echo '<p>'.$user->description.'</p>'; endif;
49
+ ?>
50
+ </div>
51
+ <?php
52
+ }
53
+ echo $args['after_widget'];
54
+ }
55
+
56
+ public function form( $instance ) {
57
+ $instance['selected_author_id'] = isset($instance['selected_author_id']) ? $instance['selected_author_id'] : '';
58
+ $instance['author_nickname_hs'] = isset($instance['author_nickname_hs']) ? $instance['author_nickname_hs'] : '1';
59
+ $instance['author_image_hs'] = isset($instance['author_image_hs']) ? $instance['author_image_hs'] : '1';
60
+ $instance['author_first_name_hs'] = isset($instance['author_first_name_hs']) ? $instance['author_first_name_hs'] : '1';
61
+ $instance['author_last_name_hs'] = isset($instance['author_last_name_hs']) ? $instance['author_last_name_hs'] : '1';
62
+ $instance['author_designation_hs'] = isset($instance['author_designation_hs']) ? $instance['author_designation_hs'] : '1';
63
+ $instance['author_description_hs'] = isset($instance['author_description_hs']) ? $instance['author_description_hs'] : '1';
64
+ ?>
65
+ <p>
66
+ <label for="<?php echo $this->get_field_id( 'selected_author_id' ); ?>"><?php _e('Select Author','fiona'); ?></label>
67
+ <select class="widefat" id="<?php echo $this->get_field_id( 'selected_author_id' ); ?>" name="<?php echo $this->get_field_name( 'selected_author_id' ); ?>">
68
+ <option value>--<?php echo __('Select','fiona'); ?>--</option>
69
+ <?php
70
+ $selected_author_id = $instance['selected_author_id'];
71
+ $users = get_users();
72
+ foreach ($users as $user) {
73
+ $option = '<option value="' . $user->ID . '" ';
74
+ $option .= ( $user->ID == $selected_author_id ) ? 'selected="selected"' : '';
75
+ $option .= '>';
76
+ $option .= $user->nickname;
77
+ $option .= '</option>';
78
+ echo $option;
79
+ }
80
+ ?>
81
+ </select>
82
+ <br/>
83
+ </p>
84
+
85
+ <p>
86
+ <input class="checkbox" type="checkbox" <?php checked( $instance[ 'author_image_hs' ], '1' ); ?> id="<?php echo $this->get_field_id( 'author_image_hs' ); ?>" name="<?php echo $this->get_field_name( 'author_image_hs' ); ?>" value="<?php if($instance[ 'author_image_hs' ]) echo esc_html( $instance[ 'author_image_hs' ] ); ?>"/>
87
+ <label for="<?php echo $this->get_field_id( 'author_image_hs' ); ?>"><?php _e( 'Hide/show Image ?','fiona' ); ?></label>
88
+ </p>
89
+
90
+ <p>
91
+ <input class="checkbox" type="checkbox" <?php checked( $instance[ 'author_nickname_hs' ], '1' ); ?> id="<?php echo $this->get_field_id( 'author_nickname_hs' ); ?>" name="<?php echo $this->get_field_name( 'author_nickname_hs' ); ?>" value="<?php if($instance[ 'author_nickname_hs' ]) echo esc_html( $instance[ 'author_nickname_hs' ] ); ?>"/>
92
+ <label for="<?php echo $this->get_field_id( 'author_nickname_hs' ); ?>"><?php _e( 'Hide/show Nickname ?','fiona' ); ?></label>
93
+ </p>
94
+
95
+ <p>
96
+ <input class="checkbox" type="checkbox" <?php checked( $instance[ 'author_first_name_hs' ], '1' ); ?> id="<?php echo $this->get_field_id( 'author_first_name_hs' ); ?>" name="<?php echo $this->get_field_name( 'author_first_name_hs' ); ?>" value="<?php if($instance[ 'author_first_name_hs' ]) echo esc_html( $instance[ 'author_first_name_hs' ] ); ?>"/>
97
+ <label for="<?php echo $this->get_field_id( 'author_first_name_hs' ); ?>"><?php _e( 'Hide/show First Name ?','fiona' ); ?></label>
98
+ </p>
99
+
100
+ <p>
101
+ <input class="checkbox" type="checkbox" <?php checked( $instance[ 'author_last_name_hs' ], '1' ); ?> id="<?php echo $this->get_field_id( 'author_last_name_hs' ); ?>" name="<?php echo $this->get_field_name( 'author_last_name_hs' ); ?>" value="<?php if($instance[ 'author_last_name_hs' ]) echo esc_html( $instance[ 'author_last_name_hs' ] ); ?>"/>
102
+ <label for="<?php echo $this->get_field_id( 'author_last_name_hs' ); ?>"><?php _e( 'Hide/show Last Name ?','fiona' ); ?></label>
103
+ </p>
104
+
105
+ <p>
106
+ <input class="checkbox" type="checkbox" <?php checked( $instance[ 'author_designation_hs' ], '1' ); ?> id="<?php echo $this->get_field_id( 'author_designation_hs' ); ?>" name="<?php echo $this->get_field_name( 'author_designation_hs' ); ?>" value="<?php if($instance[ 'author_designation_hs' ]) echo esc_html( $instance[ 'author_designation_hs' ] ); ?>"/>
107
+ <label for="<?php echo $this->get_field_id( 'author_designation_hs' ); ?>"><?php _e( 'Hide/show Designation ?','fiona' ); ?></label>
108
+ </p>
109
+
110
+ <p>
111
+ <input class="checkbox" type="checkbox" <?php checked( $instance[ 'author_description_hs' ], '1' ); ?> id="<?php echo $this->get_field_id( 'author_description_hs' ); ?>" name="<?php echo $this->get_field_name( 'author_description_hs' ); ?>" value="<?php if($instance[ 'author_description_hs' ]) echo esc_html( $instance[ 'author_description_hs' ] ); ?>"/>
112
+ <label for="<?php echo $this->get_field_id( 'author_description_hs' ); ?>"><?php _e( 'Hide/show Description ?','fiona' ); ?></label>
113
+ </p>
114
+
115
+ <?php ?>
116
+ </select>
117
+ <?php
118
+ }
119
+
120
+ public function update( $new_instance, $old_instance ) {
121
+
122
+ $instance = array();
123
+ $instance['selected_author_id'] = ( ! empty( $new_instance['selected_author_id'] ) ) ? $new_instance['selected_author_id'] : '';
124
+ $instance['author_image_hs'] = isset( $new_instance['author_image_hs'] ) ? 1 : false;
125
+ $instance['author_nickname_hs'] = isset( $new_instance['author_nickname_hs'] ) ? 1 : false;
126
+ $instance['author_first_name_hs'] = isset( $new_instance['author_first_name_hs'] ) ? 1 : false;
127
+ $instance['author_last_name_hs'] = isset( $new_instance['author_last_name_hs'] ) ? 1 : false;
128
+ $instance['author_designation_hs'] = isset( $new_instance['author_designation_hs'] ) ? 1 : false;
129
+ $instance['author_description_hs'] = isset( $new_instance['author_description_hs'] ) ? 1 : false;
130
+
131
+ return $instance;
132
+ }
133
+ }
inc/fiona-blog/widgets/class-fiona-widgets.php ADDED
@@ -0,0 +1,90 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Fiona Widgets - Loader.
4
+ *
5
+ * @package Fiona Widget
6
+ * @since 1.0.0
7
+ */
8
+
9
+ if ( ! class_exists( 'Fiona_Widgets_Loader' ) ) {
10
+
11
+ /**
12
+ * Customizer Initialization
13
+ *
14
+ * @since 1.0.0
15
+ */
16
+ class Fiona_Widgets_Loader {
17
+
18
+ /**
19
+ * Member Variable
20
+ *
21
+ * @var instance
22
+ */
23
+ private static $instance;
24
+
25
+ /**
26
+ * Initiator
27
+ */
28
+ public static function get_instance() {
29
+ if ( ! isset( self::$instance ) ) {
30
+ self::$instance = new self;
31
+ }
32
+ return self::$instance;
33
+ }
34
+
35
+ /**
36
+ * Constructor
37
+ */
38
+ public function __construct() {
39
+
40
+
41
+ // Add Widget.
42
+ require_once CLEVERFOX_PLUGIN_DIR . '/inc/fiona-blog/widgets/class-social-icons.php';
43
+ require_once CLEVERFOX_PLUGIN_DIR . '/inc/fiona-blog/widgets/class-social-widget.php';
44
+ require_once CLEVERFOX_PLUGIN_DIR . '/inc/fiona-blog/widgets/class-post-slider-widget.php';
45
+ require_once CLEVERFOX_PLUGIN_DIR . '/inc/fiona-blog/widgets/class-author-widget.php';
46
+
47
+ add_action( 'widgets_init', array( $this, 'register_fiona_blog_widgets' ) );
48
+ add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_scripts' ) );
49
+ add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_admin_scripts' ) );
50
+ }
51
+
52
+ function enqueue_scripts() {
53
+ wp_enqueue_style( 'fiona-blog-front-widget-css', CLEVERFOX_PLUGIN_URL . '/inc/fiona-blog/widgets/assets/css/widget.css', false );
54
+ wp_enqueue_style('font-awesome',FIONA_BLOG_PARENT_URI .'/assets/css/fonts/font-awesome/css/font-awesome.min.css');
55
+ }
56
+
57
+ function enqueue_admin_scripts() {
58
+ wp_enqueue_style( 'wp-color-picker');
59
+
60
+ wp_enqueue_script( 'fiona-blog-social-icon-widget-js', CLEVERFOX_PLUGIN_URL .'/inc/fiona-blog/widgets/assets/js/main.js', array( 'jquery', 'jquery-ui-sortable' ) );
61
+
62
+ wp_enqueue_style( 'fiona-blog-social-icon-widget-css', CLEVERFOX_PLUGIN_URL . '/inc/fiona-blog/widgets/assets/css/admin.css', false );
63
+
64
+ wp_enqueue_style('font-awesome',FIONA_BLOG_PARENT_URI .'/assets/css/fonts/font-awesome/css/font-awesome.min.css');
65
+
66
+ wp_enqueue_style( 'fiona-blog-icon-picker-css', CLEVERFOX_PLUGIN_URL . '/inc/fiona-blog/widgets/assets/fonticonpicker/jquery.fonticonpicker.min.css', false );
67
+
68
+ wp_enqueue_script( 'wp-color-picker');
69
+
70
+ wp_enqueue_script( 'fiona-blog-icon-picker-js', CLEVERFOX_PLUGIN_URL .'/inc/fiona-blog/widgets/assets/fonticonpicker/jquery.fonticonpicker.min.js', array( 'jquery', 'jquery-ui-sortable' ) );
71
+ }
72
+
73
+ /**
74
+ * Regiter List Icons widget
75
+ *
76
+ * @return void
77
+ */
78
+ function register_fiona_blog_widgets() {
79
+ register_widget( 'fiona_blog_social_icon_widget' );
80
+ register_widget( 'fiona_blog_post_categories_widget' );
81
+ register_widget( 'fiona_blog_author_widget' );
82
+ }
83
+
84
+ }
85
+ }
86
+
87
+ /**
88
+ * Kicking this off by calling 'get_instance()' method
89
+ */
90
+ Fiona_Widgets_Loader::get_instance();
inc/fiona-blog/widgets/class-post-slider-widget.php ADDED
@@ -0,0 +1,134 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Register Post Categories widget
4
+ *
5
+ */
6
+ class fiona_blog_post_categories_widget extends WP_Widget{
7
+
8
+ function __construct() {
9
+ parent::__construct(
10
+ 'fiona_blog_post_categories_widget', // Base ID
11
+ __('Fiona : Post Categories','fiona'), // Name
12
+ array( 'description' => __('Post Categories widget', 'fiona' ), ) // Args
13
+ );
14
+ }
15
+
16
+ public function widget( $args , $instance ) {
17
+
18
+ echo $args['before_widget'];
19
+ $post_cat_title = isset($instance['post_cat_title']) ? $instance['post_cat_title'] : null;
20
+ $selected_cat_id = isset($instance['selected_cat_id']) ? $instance['selected_cat_id'] : 0;
21
+ $post_display_num = isset($instance['post_display_num']) ? $instance['post_display_num'] : 0;
22
+ if(($instance['selected_cat_id']) !=null) {
23
+ ?>
24
+
25
+ <?php
26
+ $all_posts = fiona_blog_get_cat_posts($post_display_num, $selected_cat_id);
27
+ if ( ! empty( $post_cat_title ) ) :
28
+ ?>
29
+ <h5 class="widget-title"><?php echo esc_html($post_cat_title); ?></h5>
30
+ <?php endif; ?>
31
+ <div class="post-widgeted">
32
+ <?php
33
+ if ($all_posts->have_posts()) :
34
+ while ($all_posts->have_posts()) : $all_posts->the_post();
35
+ global $post;
36
+ ?>
37
+
38
+ <article class="post-item-list">
39
+ <figure class="post-image-figure">
40
+ <div class="post-image">
41
+ <?php if ( has_post_thumbnail() ) { the_post_thumbnail(); } ?>
42
+ </div>
43
+ </figure>
44
+ <div class="post-content">
45
+ <!--div class="post-meta">
46
+ <span class="post-list">
47
+ <ul class="post-categories"><li><a href="<?php esc_url(the_permalink()); ?>"><?php the_category(' '); ?></a></li></ul>
48
+ </span>
49
+ <span class="author-name">
50
+ <i class="fa fa-user-secret"></i> <a href="<?php echo esc_url(get_author_posts_url( get_the_author_meta( 'ID' ) ));?>"><?php esc_html(the_author()); ?></a>
51
+ </span>
52
+ </div-->
53
+ <?php
54
+ if ( is_single() ) :
55
+
56
+ the_title('<h5 class="post-title">', '</h5>' );
57
+
58
+ else:
59
+
60
+ the_title( sprintf( '<h5 class="post-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h5>' );
61
+
62
+ endif;
63
+
64
+ /*the_content(
65
+ sprintf(
66
+ __( 'Read More', 'avril-pro' ),
67
+ '<span class="screen-reader-text"> '.get_the_title().'</span>'
68
+ )
69
+ );*/
70
+ ?>
71
+ <div class="post-meta">
72
+ <span class="posted-on post-date">
73
+ <a href="<?php echo esc_url(the_date('Y/m/d')); ?>"><i class="fa fa-clock-o"></i> <?php echo esc_html(get_the_date('M j Y')); ?></a>
74
+ </span>
75
+ </div>
76
+ </div>
77
+ </article>
78
+ <?php
79
+ endwhile;
80
+ endif;
81
+ wp_reset_postdata();
82
+ ?>
83
+ </div>
84
+ <?php }
85
+ echo $args['after_widget'];
86
+ }
87
+
88
+ public function form( $instance ) {
89
+ $instance['post_cat_title'] = isset($instance['post_cat_title']) ? $instance['post_cat_title'] : '';
90
+ $instance['selected_cat_id'] = isset($instance['selected_cat_id']) ? $instance['selected_cat_id'] : '';
91
+ $instance['post_display_num'] = isset($instance['post_display_num']) ? $instance['post_display_num'] : '';
92
+ ?>
93
+ <p>
94
+ <label for="<?php echo $this->get_field_id( 'post_cat_title' ); ?>"><?php _e( 'Post Category Title','fiona' ); ?></label>
95
+ <input class="widefat" id="<?php echo $this->get_field_id( 'post_cat_title' ); ?>" name="<?php echo $this->get_field_name( 'post_cat_title' ); ?>" type="text" value="<?php if($instance[ 'post_cat_title' ]) echo esc_html( $instance[ 'post_cat_title' ] ); ?>" />
96
+ </p>
97
+ <p>
98
+ <label for="<?php echo $this->get_field_id( 'selected_cat_id' ); ?>"><?php _e('Select Post Categories','fiona'); ?></label>
99
+ <select class="widefat" id="<?php echo $this->get_field_id( 'selected_cat_id' ); ?>" name="<?php echo $this->get_field_name( 'selected_cat_id' ); ?>">
100
+ <option value>--<?php echo __('Select','fiona'); ?>--</option>
101
+ <?php
102
+ $selected_cat_id = $instance['selected_cat_id'];
103
+ $categories = get_categories();
104
+ foreach ($categories as $category) {
105
+ $option = '<option value="' . $category->term_id . '" ';
106
+ $option .= ( $category->term_id == $selected_cat_id ) ? 'selected="selected"' : '';
107
+ $option .= '>';
108
+ $option .= $category->name;
109
+ $option .= '</option>';
110
+ echo $option;
111
+ }
112
+ ?>
113
+ </select>
114
+ <br/>
115
+ </p>
116
+ <p>
117
+ <label for="<?php echo $this->get_field_id( 'post_display_num' ); ?>"><?php _e( 'No. of Post Display','fiona' ); ?></label>
118
+ <input class="widefat" id="<?php echo $this->get_field_id( 'post_display_num' ); ?>" name="<?php echo $this->get_field_name( 'post_display_num' ); ?>" type="number" value="<?php if($instance[ 'post_display_num' ]) echo esc_html( $instance[ 'post_display_num' ] ); ?>" />
119
+ </p>
120
+ <?php ?>
121
+ </select>
122
+ <?php
123
+ }
124
+
125
+ public function update( $new_instance, $old_instance ) {
126
+
127
+ $instance = array();
128
+ $instance['post_cat_title'] = ( ! empty( $new_instance['post_cat_title'] ) ) ? $new_instance['post_cat_title'] : '';
129
+ $instance['selected_cat_id'] = ( ! empty( $new_instance['selected_cat_id'] ) ) ? $new_instance['selected_cat_id'] : '';
130
+ $instance['post_display_num'] = ( ! empty( $new_instance['post_display_num'] ) ) ? $new_instance['post_display_num'] : '';
131
+
132
+ return $instance;
133
+ }
134
+ }
inc/fiona-blog/widgets/class-social-icons.php ADDED
@@ -0,0 +1,643 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ function get_social() {
3
+ $new_icons = array(
4
+ 'fa-glass' => '&#xf000 fa-glass',
5
+ 'fa-music' => '&#xf001 fa-music',
6
+ 'fa-search' => '&#xf002 fa-search',
7
+ 'fa-envelope-o' => '&#xf0e0 fa-envelope-o',
8
+ 'fa-heart' => '&#xf004 fa-heart',
9
+ 'fa-star' => '&#xf005 fa-star',
10
+ 'fa-star-o' => '&#xf006 fa-star-o',
11
+ 'fa-user' => '&#xf007 fa-user',
12
+ 'fa-film' => '&#xf008 fa-film',
13
+ 'fa-th-large' => '&#xf009 fa-th-large',
14
+ 'fa-th' => '&#xf00a fa-th',
15
+ 'fa-th-list' => '&#xf00b fa-th-list',
16
+ 'fa-check' => '&#xf00c fa-check',
17
+ 'fa-times' => '&#xf00d fa-times',
18
+ 'fa-search-plus' => '[&#xf00e fa-search-plus',
19
+ 'fa-search-minus' => '&#xf010 fa-search-minus',
20
+ 'fa-power-off' => '&#xf011 fa-power-off',
21
+ 'fa-signal' => '&#xf012 fa-signal',
22
+ 'fa-cog' => '&#xf085 fa-cog',
23
+ 'fa-trash-o' => '&#xf014 fa-trash-o',
24
+ 'fa-home' => '&#xf015 fa-home',
25
+ 'fa-file-o' => '&#xf016 fa-file-o',
26
+ 'fa-clock-o' => '&#xf017 fa-clock-o',
27
+ 'fa-road' => '&#xf018 fa-road',
28
+ 'fa-download' => '&#xf019 fa-download',
29
+ 'fa-arrow-circle-o-down' => '&#xf01a fa-arrow-circle-o-down',
30
+ 'fa-arrow-circle-o-up' => '&#xf01b fa-arrow-circle-o-up',
31
+ 'fa-inbox' => '&#xf01c fa-inbox',
32
+ 'fa-play-circle-o' => '&#xf01d fa-play-circle-o',
33
+ 'fa-repeat' => '&#xf01e fa-repeat',
34
+ 'fa-refresh' => '&#xf021 fa-refresh',
35
+ 'fa-list-alt' => '&#xf022 fa-list-alt',
36
+ 'fa-lock' => '&#xf023 fa-lock',
37
+ 'fa-flag' => '&#xf024 fa-flag',
38
+ 'fa-headphones' => '&#xf025 fa-headphones',
39
+ 'fa-volume-off' => '&#xf026 fa-volume-off',
40
+ 'fa-volume-down' => '&#xf027 fa-volume-down',
41
+ 'fa-volume-up' => '&#xf028 fa-volume-up',
42
+ 'fa-qrcode' => '&#xf029 fa-qrcode',
43
+ 'fa-barcode' => '&#xf02a fa-barcode',
44
+ 'fa-tag' => '&#xf02b fa-tag',
45
+ 'fa-tags' => '&#xf02c fa-tags',
46
+ 'fa-book' => '&#xf02d fa-book',
47
+ 'fa-bookmark' => '&#xf02e fa-bookmark',
48
+ 'fa-print' => '&#xf02f fa-print',
49
+ 'fa-camera' => '&#xf030 fa-camera',
50
+ 'fa-font' => '&#xf031 fa-font',
51
+ 'fa-bold' => '&#xf032 fa-bold',
52
+ 'fa-italic' => '&#xf033 fa-italic',
53
+ 'fa-text-height' => '&#xf034 fa-text-height',
54
+ 'fa-text-width' => '&#xf035 fa-text-width',
55
+ 'fa-align-left' => '&#xf036 fa-align-left',
56
+ 'fa-align-center' => '&#xf037 fa-align-center',
57
+ 'fa-align-right' => '&#xf038 fa-align-right',
58
+ 'fa-align-justify' => '&#xf039 fa-align-justify',
59
+ 'fa-list' => '&#xf03a fa-list',
60
+ 'fa-outdent' => '&#xf03b fa-outdent',
61
+ 'fa-indent' => '&#xf03c fa-indent',
62
+ 'fa-video-camera' => '&#xf03d fa-video-camera',
63
+ 'fa-picture-o' => '&#xf03e fa-picture-o',
64
+ 'fa-pencil' => '&#xf040 fa-pencil',
65
+ 'fa-map-marker' => '&#xf041 fa-map-marker',
66
+ 'fa-adjust' => '&#xf042 fa-adjust',
67
+ 'fa-tint' => '&#xf043 fa-tint',
68
+ 'fa-pencil-square-o' => '&#xf044 fa-pencil-square-o',
69
+ 'fa-share-square-o' => '&#xf045 fa-share-square-o',
70
+ 'fa-check-square-o' => '&#xf046 fa-check-square-o',
71
+ 'fa-arrows' => '&#xf047 fa-arrows',
72
+ 'fa-step-backward' => '&#xf048 fa-step-backward',
73
+ 'fa-fast-backward' => '&#xf049 fa-fast-backward',
74
+ 'fa-backward' => '&#xf04a fa-backward',
75
+ 'fa-play' => '&#xf04b fa-play',
76
+ 'fa-pause' => '&#xf04c fa-pause',
77
+ 'fa-stop' => '&#xf04d fa-stop',
78
+ 'fa-forward' => '&#xf04e fa-forward',
79
+ 'fa-fast-forward' => '&#xf050 fa-fast-forward',
80
+ 'fa-step-forward' => '&#xf051 fa-step-forward',
81
+ 'fa-eject' => '&#xf052 fa-eject',
82
+ 'fa-chevron-left' => '&#xf053 fa-chevron-left',
83
+ 'fa-chevron-right' => '&#xf054 fa-chevron-right',
84
+ 'fa-plus-circle' => '&#xf055 fa-plus-circle',
85
+ 'fa-minus-circle' => '&#xf056 fa-minus-circle',
86
+ 'fa-times-circle' => '&#xf057 fa-times-circle',
87
+ 'fa-check-circle' => '&#xf058 fa-check-circle',
88
+ 'fa-question-circle' => '&#xf059 fa-question-circle',
89
+ 'fa-info-circle' => '&#xf05a fa-info-circle',
90
+ 'fa-crosshairs' => '&#xf05b fa-crosshairs',
91
+ 'fa-times-circle-o' => '&#xf05c fa-times-circle-o',
92
+ 'fa-check-circle-o' => '&#xf05d fa-check-circle-o',
93
+ 'fa-ban' => '&#xf05e fa-ban',
94
+ 'fa-arrow-left' => '&#xf060 fa-arrow-left',
95
+ 'fa-arrow-right' => '&#xf061 fa-arrow-right',
96
+ 'fa-arrow-up' => '&#xf062 fa-arrow-up',
97
+ 'fa-arrow-down' => '&#xf063 fa-arrow-down',
98
+ 'fa-share' => '&#xf064 fa-share',
99
+ 'fa-expand' => '&#xf065 fa-expand',
100
+ 'fa-compress' => '&#xf066 fa-compress',
101
+ 'fa-plus' => '&#xf067 fa-plus',
102
+ 'fa-minus' => '&#xf068 fa-minus',
103
+ 'fa-asterisk' => '&#xf069 fa-asterisk',
104
+ 'fa-exclamation-circle' => '&#xf06a fa-exclamation-circle',
105
+ 'fa-gift' => '&#xf06b fa-gift',
106
+ 'fa-leaf' => '&#xf06c fa-leaf',
107
+ 'fa-fire' => '&#xf06d fa-fire',
108
+ 'fa-eye' => '&#xf06e fa-eye',
109
+ 'fa-eye-slash' => '&#xf070 fa-eye-slash',
110
+ 'fa-exclamation-triangle' => '&#xf071 fa-exclamation-triangle',
111
+ 'fa-plane' => '&#xf072 fa-plane',
112
+ 'fa-calendar' => '&#xf073 fa-calendar',
113
+ 'fa-random' => '&#xf074 fa-random',
114
+ 'fa-comment' => '&#xf075 fa-comment',
115
+ 'fa-magnet' => '&#xf076 fa-magnet',
116
+ 'fa-chevron-up' => '&#xf077 fa-chevron-up',
117
+ 'fa-chevron-down' => '&#xf078 fa-chevron-down',
118
+ 'fa-retweet' => '&#xf079 fa-retweet',
119
+ 'fa-shopping-cart' => '&#xf07a fa-shopping-cart',
120
+ 'fa-folder' => '&#xf07b fa-folder',
121
+ 'fa-folder-open' => '&#xf07b fa-folder-open',
122
+ 'fa-arrows-v' => '&#xf07d fa-arrows-v',
123
+ 'fa-arrows-h' => '&#xf07e fa-arrows-h',
124
+ 'fa-bar-chart' => '&#xf080 fa-bar-chart',
125
+ 'fa-twitter-square' => '&#xf081 fa-twitter-square',
126
+ 'fa-facebook-square' => '&#xf082 fa-facebook-square',
127
+ 'fa-camera-retro' => '&#xf083 fa-camera-retro',
128
+ 'fa-key' => '&#xf084 fa-key',
129
+ 'fa-cogs' => '&#xf085 fa-cogs',
130
+ 'fa-comments' => '&#xf086 fa-comments',
131
+ 'fa-thumbs-o-up' => '&#xf087 fa-thumbs-o-up',
132
+ 'fa-thumbs-o-down' => '&#xf088 fa-thumbs-o-down',
133
+ 'fa-star-half' => '&#xf089 fa-star-half',
134
+ 'fa-heart-o' => '&#xf08a fa-heart-o',
135
+ 'fa-sign-out' => '&#xf08b fa-sign-out',
136
+ 'fa-linkedin-square' => '&#xf08c fa-linkedin-square',
137
+ 'fa-thumb-tack' => '&#xf08d fa-thumb-tack',
138
+ 'fa-external-link' => '&#xf08e fa-external-link',
139
+ 'fa-sign-in' => '&#xf090 fa-sign-in',
140
+ 'fa-trophy' => '&#xf091 fa-trophy',
141
+ 'fa-github-square' => '&#xf092 fa-github-square',
142
+ 'fa-upload' => '&#xf093 fa-upload',
143
+ 'fa-lemon-o' => '&#xf094 fa-lemon-o',
144
+ 'fa-phone' => '&#xf095 fa-phone',
145
+ 'fa-square-o' => '&#xf096 fa-square-o',
146
+ 'fa-bookmark-o' => '&#xf097 fa-bookmark-o',
147
+ 'fa-phone-square' => '&#xf098 fa-phone-square',
148
+ 'fa-twitter' => '&#xf099 fa-twitter',
149
+ 'fa-facebook' => '&#xf09a fa-facebook',
150
+ 'fa-github' => '&#xf09b fa-github',
151
+ 'fa-unlock' => '&#xf09c fa-unlock',
152
+ 'fa-credit-card' => '&#xf09d fa-credit-card',
153
+ 'fa-rss' => '&#xf09e fa-rss',
154
+ 'fa-hdd-o' => '&#xf0a0 fa-hdd-o',
155
+ 'fa-bullhorn' => '&#xf0a1 fa-bullhorn',
156
+ 'fa-bell' => '&#xf0f3 fa-bell',
157
+ 'fa-certificate' => '&#xf0a3 fa-certificate',
158
+ 'fa-hand-o-right' => '&#xf0a4 fa-hand-o-right',
159
+ 'fa-hand-o-left' => '&#xf0a5 fa-hand-o-left',
160
+ 'fa-hand-o-up' => '&#xf0a6 fa-hand-o-up',
161
+ 'fa-hand-o-down' => '&#xf0a7 fa-hand-o-down',
162
+ 'fa-arrow-circle-left' => '&#xf0a8 fa-arrow-circle-left',
163
+ 'fa-arrow-circle-right' => '&#xf0a9 fa-arrow-circle-right',
164
+ 'fa-arrow-circle-up' => '&#xf0aa fa-arrow-circle-up',
165
+ 'fa-arrow-circle-down' => '&#xf0ab fa-arrow-circle-down',
166
+ 'fa-globe' => '&#xf0ac fa-globe',
167
+ 'fa-wrench' => '&#xf0ad fa-wrench',
168
+ 'fa-tasks' => '&#xf0ae fa-tasks',
169
+ 'fa-filter' => '&#xf0b0 fa-filter',
170
+ 'fa-briefcase' => '&#xf0b1 fa-briefcase',
171
+ 'fa-arrows-alt' => '&#xf0b2 fa-arrows-alt',
172
+ 'fa-users' => '&#xf0c0 fa-users',
173
+ 'fa-link' => '&#xf0c1 fa-link',
174
+ 'fa-cloud' => '&#xf0c2 fa-cloud',
175
+ 'fa-flask' => '&#xf0c3 fa-flask',
176
+ 'fa-scissors' => '&#xf0c4 fa-scissors',
177
+ 'fa-files-o' => '&#xf0c5 fa-files-o',
178
+ 'fa-paperclip' => '&#xf0c6 fa-paperclip',
179
+ 'fa-floppy-o' => '&#xf0c7 fa-floppy-o',
180
+ 'fa-square' => '&#xf0c8 fa-square',
181
+ 'fa-bars' => '&#xf0c9 fa-bars',
182
+ 'fa-list-ul' => '&#xf0ca fa-list-ul',
183
+ 'fa-list-ol' => '&#xf0cb fa-list-ol',
184
+ 'fa-strikethrough' => '&#xf0cc fa-strikethrough',
185
+ 'fa-underline' => '&#xf0cd fa-underline',
186
+ 'fa-table' => '&#xf0ce fa-table',
187
+ 'fa-magic' => '&#xf0d0 fa-magic',
188
+ 'fa-truck' => '&#xf0d1 fa-truck',
189
+ 'fa-pinterest' => '&#xf0d2 fa-pinterest',
190
+ 'fa-pinterest-square' => '&#xf0d3 fa-pinterest-square',
191
+ 'fa-google-plus-square' => '&#xf0d4 fa-google-plus-square',
192
+ 'fa-google-plus' => '&#xf0d5 fa-google-plus',
193
+ 'fa-money' => '&#xf0d6 fa-money',
194
+ 'fa-caret-down' => '&#xf0d7 fa-caret-down',
195
+ 'fa-caret-up' => '&#xf0d8 fa-caret-up',
196
+ 'fa-caret-left' => '&#xf0d9 fa-caret-left',
197
+ 'fa-caret-right' => '&#xf0da fa-caret-right',
198
+ 'fa-columns' => '&#xf0db fa-columns',
199
+ 'fa-sort' => '&#xf0dc fa-sort',
200
+ 'fa-sort-desc' => '&#xf0dd fa-sort-desc',
201
+ 'fa-sort-asc' => '&#xf0de fa-sort-asc',
202
+ 'fa-envelope' => '&#xf0e0 fa-envelope',
203
+ 'fa-linkedin' => '&#xf0e1 fa-linkedin',
204
+ 'fa-undo' => '&#xf0e2 fa-undo',
205
+ 'fa-gavel' => '&#xf0e3 fa-gavel',
206
+ 'fa-tachometer' => '&#xf0e4 fa-tachometer',
207
+ 'fa-comment-o' => '&#xf0e5 fa-comment-o',
208
+ 'fa-comments-o' => '&#xf0e6 fa-comments-o',
209
+ 'fa-bolt' => '&#xf0e7 fa-bolt',
210
+ 'fa-sitemap' => '&#xf0e8 fa-sitemap',
211
+ 'fa-umbrella' => '&#xf0e9 fa-umbrella',
212
+ 'fa-clipboard' => '&#xf0ea fa-clipboard',
213
+ 'fa-lightbulb-o' => '&#xf0eb fa-lightbulb-o',
214
+ 'fa-exchange' => '&#xf0ec fa-exchange',
215
+ 'fa-cloud-download' => '&#xf0ed fa-cloud-download',
216
+ 'fa-cloud-upload' => '&#xf0ee fa-cloud-upload',
217
+ 'fa-user-md' => '&#xf0f0 fa-user-md',
218
+ 'fa-stethoscope' => '&#xf0f1 fa-stethoscope',
219
+ 'fa-suitcase' => '&#xf0f2 fa-suitcase',
220
+ 'fa-bell-o' => '&#xf0a2 fa-bell-o',
221
+ 'fa-coffee' => '&#xf0f4 fa-coffee',
222
+ 'fa-cutlery' => '&#xf0f5 fa-cutlery',
223
+ 'fa-file-text-o' => '&#xf0f6 fa-file-text-o',
224
+ 'fa-building-o' => '&#xf0f7 fa-building-o',
225
+ 'fa-hospital-o' => '&#xf0f8 fa-hospital-o',
226
+ 'fa-ambulance' => '&#xf0f9 fa-ambulance',
227
+ 'fa-medkit' => '&#xf0fa fa-medkit',
228
+ 'fa-fighter-jet' => '&#xf0fb fa-fighter-jet',
229
+ 'fa-beer' => '&#xf0fc fa-beer',
230
+ 'fa-h-square' => '&#xf0fd fa-h-square',
231
+ 'fa-plus-square' => '&#xf0fe fa-plus-square',
232
+ 'fa-angle-double-left' => '&#xf100 fa-angle-double-left',
233
+ 'fa-angle-double-right' => '&#xf101 fa-angle-double-right',
234
+ 'fa-angle-double-up' => '&#xf102 fa-angle-double-up',
235
+ 'fa-angle-double-down' => '&#xf103 fa-angle-double-down',
236
+ 'fa-angle-left' => '&#xf104 fa-angle-left',
237
+ 'fa-angle-right' => '&#xf105 fa-angle-right',
238
+ 'fa-angle-up' => '&#xf106 fa-angle-up',
239
+ 'fa-angle-down' => '&#xf107 fa-angle-down',
240
+ 'fa-desktop' => '&#xf108 fa-desktop',
241
+ 'fa-laptop' => '&#xf109 fa-laptop',
242
+ 'fa-tablet' => '&#xf10a fa-tablet',
243
+ 'fa-mobile' => '&#xf10b fa-mobile',
244
+ 'fa-circle-o' => '&#xf10c fa-circle-o',
245
+ 'fa-quote-left' => '&#xf10d fa-quote-left',
246
+ 'fa-quote-right' => '&#xf10e fa-quote-right',
247
+ 'fa-spinner' => '&#xf110 fa-spinner',
248
+ 'fa-circle' => '&#xf111 fa-circle',
249
+ 'fa-reply' => '&#xf112 fa-reply',
250
+ 'fa-github-alt' => '&#xf113 fa-github-alt',
251
+ 'fa-folder-o' => '&#xf114 fa-folder-o',
252
+ 'fa-folder-open-o' => '&#xf115 fa-folder-open-o',
253
+ 'fa-smile-o' => '&#xf118 fa-smile-o',
254
+ 'fa-frown-o' => '&#xf119 fa-frown-o',
255
+ 'fa-meh-o' => '&#xf11a fa-meh-o',
256
+ 'fa-gamepad' => '&#xf11b fa-gamepad',
257
+ 'fa-keyboard-o' => '&#xf11c fa-keyboard-o',
258
+ 'fa-flag-o' => '&#xf11d fa-flag-o',
259
+ 'fa-flag-checkered' => '&#xf11e fa-flag-checkered',
260
+ 'fa-terminal' => '&#xf120 fa-terminal',
261
+ 'fa-code' => '&#xf121 fa-code',
262
+ 'fa-reply-all' => '&#xf122 fa-reply-all',
263
+ 'fa-star-half-o' => '&#xf123 fa-star-half-o',
264
+ 'fa-location-arrow' => '&#xf124 fa-location-arrow',
265
+ 'fa-crop' => '&#xf125 fa-crop',
266
+ 'fa-code-fork' => '&#xf126 fa-code-fork',
267
+ 'fa-chain-broken' => '&#xf127 fa-chain-broken',
268
+ 'fa-question' => '&#xf128 fa-question',
269
+ 'fa-info' => '&#xf129 fa-info',
270
+ 'fa-exclamation' => '&#xf12a fa-exclamation',
271
+ 'fa-superscript' => '&#xf12b fa-superscript',
272
+ 'fa-subscript' => '&#xf12c fa-subscript',
273
+ 'fa-eraser' => '&#xf12d fa-eraser',
274
+ 'fa-puzzle-piece' => '&#xf12e fa-puzzle-piece',
275
+ 'fa-microphone' => '&#xf130 fa-microphone',
276
+ 'fa-microphone-slash' => '&#xf131 fa-microphone-slash',
277
+ 'fa-shield' => '&#xf132 fa-shield',
278
+ 'fa-calendar-o' => '&#xf133 fa-calendar-o',
279
+ 'fa-fire-extinguisher' => '&#xf134 fa-fire-extinguisher',
280
+ 'fa-rocket' => '&#xf135 fa-rocket',
281
+ 'fa-maxcdn' => '&#xf136 fa-maxcdn',
282
+ 'fa-chevron-circle-left' => '&#xf137 fa-chevron-circle-left',
283
+ 'fa-chevron-circle-right' => '&#xf138 fa-chevron-circle-right',
284
+ 'fa-chevron-circle-up' => '&#xf139 fa-chevron-circle-up',
285
+ 'fa-chevron-circle-down' => '&#xf13a fa-chevron-circle-down',
286
+ 'fa-html5' => '&#xf13b fa-html5',
287
+ 'fa-css3' => '&#xf13c fa-css3',
288
+ 'fa-anchor' => '&#xf13d fa-anchor',
289
+ 'fa-unlock-alt' => '&#xf13e fa-unlock-alt',
290
+ 'fa-bullseye' => '&#xf140 fa-bullseye',
291
+ 'fa-ellipsis-h' => '&#xf141 fa-ellipsis-h',
292
+ 'fa-ellipsis-v' => '&#xf142 fa-ellipsis-v',
293
+ 'fa-rss-square' => '&#xf143 fa-rss-square',
294
+ 'fa-play-circle' => '&#xf144 fa-play-circle',
295
+ 'fa-ticket' => '&#xf145 fa-ticket',
296
+ 'fa-minus-square' => '&#xf146 fa-minus-square',
297
+ 'fa-minus-square-o' => '&#xf147 fa-minus-square-o',
298
+ 'fa-level-up' => '&#xf148 fa-level-up',
299
+ 'fa-level-down' => '&#xf149 fa-level-down',
300
+ 'fa-check-square' => '&#xf14a fa-check-square',
301
+ 'fa-pencil-square' => '&#xf14b fa-pencil-square',
302
+ 'fa-external-link-square' => '&#xf14c fa-external-link-square',
303
+ 'fa-share-square' => '&#xf14d fa-share-square',
304
+ 'fa-compass' => '&#xf14e fa-compass',
305
+ 'fa-caret-square-o-down' => '&#xf150 fa-caret-square-o-down',
306
+ 'fa-caret-square-o-up' => '&#xf151 fa-caret-square-o-up',
307
+ 'fa-caret-square-o-right' => '&#xf152 fa-caret-square-o-right',
308
+ 'fa-eur' => '&#xf153 fa-eur',
309
+ 'fa-gbp' => '&#xf154 fa-gbp',
310
+ 'fa-usd' => '&#xf155 fa-usd',
311
+ 'fa-inr' => '&#xf156 fa-inr',
312
+ 'fa-jpy' => '&#xf157 fa-jpy',
313
+ 'fa-rub' => '&#xf158 fa-rub',
314
+ 'fa-krw' => '&#xf159 fa-krw',
315
+ 'fa-btc' => '&#xf15a fa-btc',
316
+ 'fa-file' => '&#xf15b fa-file',
317
+ 'fa-file-text' => '&#xf15c fa-file-text',
318
+ 'fa-sort-alpha-asc' => '&#xf15d fa-sort-alpha-asc',
319
+ 'fa-sort-alpha-desc' => '&#xf15e fa-sort-alpha-desc',
320
+ 'fa-sort-amount-asc' => '&#xf160 fa-sort-amount-asc',
321
+ 'fa-sort-amount-desc' => '&#xf161 fa-sort-amount-desc',
322
+ 'fa-sort-numeric-asc' => '&#xf162 fa-sort-numeric-asc',
323
+ 'fa-sort-numeric-desc' => '&#xf163 fa-sort-numeric-desc',
324
+ 'fa-thumbs-up' => '&#xf164 fa-thumbs-up',
325
+ 'fa-thumbs-down' => '&#xf165 fa-thumbs-down',
326
+ 'fa-youtube-square' => '&#xf166 fa-youtube-square',
327
+ 'fa-youtube' => '&#xf167 fa-youtube',
328
+ 'fa-xing' => '&#xf168 fa-xing',
329
+ 'fa-xing-square' => '&#xf169 fa-xing-square',
330
+ 'fa-youtube-play' => '&#xf16a fa-youtube-play',
331
+ 'fa-dropbox' => '&#xf16b fa-dropbox',
332
+ 'fa-stack-overflow' => '&#xf16c fa-stack-overflow',
333
+ 'fa-instagram' => '&#xf16d fa-instagram',
334
+ 'fa-flickr' => '&#xf16e fa-flickr',
335
+ 'fa-adn' => '&#xf170 fa-adn',
336
+ 'fa-bitbucket' => '&#xf171 fa-bitbucket',
337
+ 'fa-bitbucket-square' => '&#xf172 fa-bitbucket-square',
338
+ 'fa-tumblr' => '&#xf173 fa-tumblr',
339
+ 'fa-tumblr-square' => '&#xf174 fa-tumblr-square',
340
+ 'fa-long-arrow-down' => '&#xf175 fa-long-arrow-down',
341
+ 'fa-long-arrow-up' => '&#xf176 fa-long-arrow-up',
342
+ 'fa-long-arrow-left' => '&#xf177 fa-long-arrow-left',
343
+ 'fa-long-arrow-right' => '&#xf178 fa-long-arrow-right',
344
+ 'fa-apple' => '&#xf179 fa-apple',
345
+ 'fa-windows' => '&#xf17a fa-windows',
346
+ 'fa-android' => '&#xf17b fa-android',
347
+ 'fa-linux' => '&#xf17c fa-linux',
348
+ 'fa-dribbble' => '&#xf17d fa-dribbble',
349
+ 'fa-skype' => '&#xf17e fa-skype',
350
+ 'fa-foursquare' => '&#xf180 fa-foursquare',
351
+ 'fa-trello' => '&#xf181 fa-trello',
352
+ 'fa-female' => '&#xf182 fa-female',
353
+ 'fa-male' => '&#xf183 fa-male',
354
+ 'fa-gratipay' => '&#xf184 fa-gratipay',
355
+ 'fa-sun-o' => '&#xf185 fa-sun-o',
356
+ 'fa-moon-o' => '&#xf186 fa-moon-o',
357
+ 'fa-archive' => '&#xf187 fa-archive',
358
+ 'fa-bug' => '&#xf188 fa-bug',
359
+ 'fa-vk' => '&#xf189 fa-vk',
360
+ 'fa-weibo' => '&#xf18a fa-weibo',
361
+ 'fa-renren' => '&#xf18b fa-renren',
362
+ 'fa-pagelines' => '&#xf18c fa-pagelines',
363
+ 'fa-stack-exchange' => '&#xf18d fa-stack-exchange',
364
+ 'fa-arrow-circle-o-right' => '&#xf18e fa-arrow-circle-o-right',
365
+ 'fa-arrow-circle-o-left' => '&#xf190 fa-arrow-circle-o-left',
366
+ 'fa-caret-square-o-left' => '&#xf191 fa-caret-square-o-left',
367
+ 'fa-dot-circle-o' => '&#xf192 fa-dot-circle-o',
368
+ 'fa-wheelchair' => '&#xf193 fa-wheelchair',
369
+ 'fa-vimeo-square' => '&#xf194 fa-vimeo-square',
370
+ 'fa-try' => '&#xf195 fa-try',
371
+ 'fa-plus-square-o' => '&#xf196 fa-plus-square-o',
372
+ 'fa-space-shuttle' => '&#xf197 fa-space-shuttle',
373
+ 'fa-slack' => '&#xf198 fa-slack',
374
+ 'fa-envelope-square' => '&#xf199 fa-envelope-square',
375
+ 'fa-wordpress' => '&#xf19a fa-wordpress',
376
+ 'fa-openid' => '&#xf19b fa-openid',
377
+ 'fa-university' => '&#xf19c fa-university',
378
+ 'fa-graduation-cap' => '&#xf19d fa-graduation-cap',
379
+ 'fa-yahoo' => '&#xf19e fa-yahoo',
380
+ 'fa-google' => '&#xf1a0 fa-google',
381
+ 'fa-reddit' => '&#xf1a1 fa-reddit',
382
+ 'fa-reddit-square' => '&#xf1a2 fa-reddit-square',
383
+ 'fa-stumbleupon-circle' => '&#xf1a3 fa-stumbleupon-circle',
384
+ 'fa-stumbleupon' => '&#xf1a4 fa-stumbleupon',
385
+ 'fa-delicious' => '&#xf1a5 fa-delicious',
386
+ 'fa-digg' => '&#xf1a6 fa-digg',
387
+ 'fa-pied-piper-pp' => '&#xf1a7 fa-pied-piper-pp',
388
+ 'fa-pied-piper-alt' => '&#xf1a8 fa-pied-piper-alt',
389
+ 'fa-drupal' => '&#xf1a9 fa-drupal',
390
+ 'fa-joomla' => '&#xf1aa fa-joomla',
391
+ 'fa-language' => '&#xf1ab fa-language',
392
+ 'fa-fax' => '&#xf1ac fa-fax',
393
+ 'fa-building' => '&#xf1ad fa-building',
394
+ 'fa-child' => '&#xf1ae fa-child',
395
+ 'fa-paw' => '&#xf1b0 fa-paw',
396
+ 'fa-spoon' => '&#xf1b1 fa-spoon',
397
+ 'fa-cube' => '&#xf1b2 fa-cube',
398
+ 'fa-cubes' => '&#xf1b3 fa-cubes',
399
+ 'fa-behance' => '&#xf1b4 fa-behance',
400
+ 'fa-behance-square' => '&#xf1b5 fa-behance-square',
401
+ 'fa-steam' => '&#xf1b6 fa-steam',
402
+ 'fa-steam-square' => '&#xf1b7 fa-steam-square',
403
+ 'fa-recycle' => '&#xf1b8 fa-recycle',
404
+ 'fa-car' => '&#xf1b9 fa-car',
405
+ 'fa-taxi' => '&#xf1ba fa-taxi',
406
+ 'fa-tree' => '&#xf1bb fa-tree',
407
+ 'fa-spotify' => '&#xf1bc fa-spotify',
408
+ 'fa-deviantart' => '&#xf1bd fa-deviantart',
409
+ 'fa-soundcloud' => '&#xf1be fa-soundcloud',
410
+ 'fa-database' => '&#xf1c0 fa-database',
411
+ 'fa-file-pdf-o' => '&#xf1c1 fa-file-pdf-o',
412
+ 'fa-file-word-o' => '&#xf1c2 fa-file-word-o',
413
+ 'fa-file-excel-o' => '&#xf1c3 fa-file-excel-o',
414
+ 'fa-file-powerpoint-o' => '&#xf1c4 fa-file-powerpoint-o',
415
+ 'fa-file-image-o' => '&#xf1c5 fa-file-image-o',
416
+ 'fa-file-archive-o' => '&#xf1c6 fa-file-archive-o',
417
+ 'fa-file-audio-o' => '&#xf1c7 fa-file-audio-o',
418
+ 'fa-file-video-o' => '&#xf1c8 fa-file-video-o',
419
+ 'fa-file-code-o' => '&#xf1c9 fa-file-code-o',
420
+ 'fa-vine' => '&#xf1ca fa-vine',
421
+ 'fa-codepen' => '&#xf1cb fa-codepen',
422
+ 'fa-jsfiddle' => '&#xf1cc fa-jsfiddle',
423
+ 'fa-life-ring' => '&#xf1cd fa-life-ring',
424
+ 'fa-circle-o-notch' => '&#xf1ce fa-circle-o-notch',
425
+ 'fa-rebel' => '&#xf1d0 fa-rebel',
426
+ 'fa-empire' => '&#xf1d1 fa-empire',
427
+ 'fa-git-square' => '&#xf1d2 fa-git-square',
428
+ 'fa-git' => '&#xf1d3 fa-git',
429
+ 'fa-hacker-news' => '&#xf1d4 fa-hacker-news',
430
+ 'fa-tencent-weibo' => '&#xf1d5 fa-tencent-weibo',
431
+ 'fa-qq' => '&#xf1d6 fa-qq',
432
+ 'fa-weixin' => '&#xf1d7 fa-weixin',
433
+ 'fa-paper-plane' => '&#xf1d8 fa-paper-plane',
434
+ 'fa-paper-plane-o' => '&#xf1d9 fa-paper-plane-o',
435
+ 'fa-history' => '&#xf1da fa-history',
436
+ 'fa-circle-thin' => '&#xf1db fa-circle-thin',
437
+ 'fa-header' => '&#xf1dc fa-header',
438
+ 'fa-paragraph' => '&#xf1dd fa-paragraph',
439
+ 'fa-sliders' => '&#xf1de fa-sliders',
440
+ 'fa-share-alt' => '&#xf1e0 fa-share-alt',
441
+ 'fa-share-alt-square' => '&#xf1e1 fa-share-alt-square',
442
+ 'fa-bomb' => '&#xf1e2 fa-bomb',
443
+ 'fa-futbol-o' => '&#xf1e3 fa-futbol-o',
444
+ 'fa-tty' => '&#xf1e4 fa-tty',
445
+ 'fa-binoculars' => '&#xf1e5 fa-binoculars',
446
+ 'fa-plug' => '&#xf1e6 fa-plug',
447
+ 'fa-slideshare' => '&#xf1e7 fa-slideshare',
448
+ 'fa-twitch' => '&#xf1e8 fa-twitch',
449
+ 'fa-yelp' => '&#xf1e9 fa-yelp',
450
+ 'fa-newspaper-o' => '&#xf1ea fa-newspaper-o',
451
+ 'fa-wifi' => '&#xf1eb fa-wifi',
452
+ 'fa-calculator' => '&#xf1ec fa-calculator',
453
+ 'fa-paypal' => '&#xf1ed fa-paypal',
454
+ 'fa-google-wallet' => '&#xf1ee fa-google-wallet',
455
+ 'fa-cc-visa' => '&#xf1f0 fa-cc-visa',
456
+ 'fa-cc-mastercard' => '&#xf1f1 fa-cc-mastercard',
457
+ 'fa-cc-discover' => '&#xf1f2 fa-cc-discover',
458
+ 'fa-cc-amex' => '&#xf1f3 fa-cc-amex',
459
+ 'fa-cc-paypal' => '&#xf1f4 fa-cc-paypal',
460
+ 'fa-cc-stripe' => '&#xf1f5 fa-cc-stripe',
461
+ 'fa-bell-slash' => '&#xf1f6 fa-bell-slash',
462
+ 'fa-bell-slash-o' => '&#xf1f7 fa-bell-slash-o',
463
+ 'fa-trash' => '&#xf1f8 fa-trash',
464
+ 'fa-copyright' => '&#xf1f9 fa-copyright',
465
+ 'fa-at' => '&#xf1fa fa-at',
466
+ 'fa-eyedropper' => '&#xf1fb fa-eyedropper',
467
+ 'fa-paint-brush' => '&#xf1fc fa-paint-brush',
468
+ 'fa-birthday-cake' => '&#xf1fd fa-birthday-cake',
469
+ 'fa-area-chart' => '&#xf1fe fa-area-chart',
470
+ 'fa-pie-chart' => '&#xf200 fa-pie-chart',
471
+ 'fa-line-chart' => '&#xf201 fa-line-chart',
472
+ 'fa-lastfm' => '&#xf202 fa-lastfm',
473
+ 'fa-lastfm-square' => '&#xf203 fa-lastfm-square',
474
+ 'fa-toggle-off' => '&#xf204 fa-toggle-off',
475
+ 'fa-toggle-on' => '&#xf205 fa-toggle-on',
476
+ 'fa-bicycle' => '&#xf206 fa-bicycle',
477
+ 'fa-bus' => '&#xf207 fa-bus',
478
+ 'fa-ioxhost' => '&#xf208 fa-ioxhost',
479
+ 'fa-angellist' => '&#xf209 fa-angellist',
480
+ 'fa-cc' => '&#xf20a fa-cc',
481
+ 'fa-ils' => '&#xf20b fa-ils',
482
+ 'fa-meanpath' => '&#xf20c fa-meanpath',
483
+ 'fa-buysellads' => '&#xf20d fa-buysellads',
484
+ 'fa-connectdevelop' => '&#xf20e fa-connectdevelop',
485
+ 'fa-dashcube' => '&#xf210 fa-dashcube',
486
+ 'fa-forumbee' => '&#xf211 fa-forumbee',
487
+ 'fa-leanpub' => '&#xf212 fa-leanpub',
488
+ 'fa-sellsy' => '&#xf213 fa-sellsy',
489
+ 'fa-shirtsinbulk' => '&#xf214 fa-shirtsinbulk',
490
+ 'fa-simplybuilt' => '&#xf215 fa-simplybuilt',
491
+ 'fa-skyatlas' => '&#xf216 fa-skyatlas',
492
+ 'fa-cart-plus' => '&#xf217 fa-cart-plus',
493
+ 'fa-cart-arrow-down' => '&#xf218 fa-cart-arrow-down',
494
+ 'fa-diamond' => '&#xf219 fa-diamond',
495
+ 'fa-ship' => '&#xf21a fa-ship',
496
+ 'fa-user-secret' => '&#xf21b fa-user-secret',
497
+ 'fa-motorcycle' => '&#xf21c fa-motorcycle',
498
+ 'fa-street-view' => '&#xf21d fa-street-view',
499
+ 'fa-heartbeat' => '&#xf21e fa-heartbeat',
500
+ 'fa-venus' => '&#xf221 fa-venus',
501
+ 'fa-mars' => '&#xf222 fa-mars',
502
+ 'fa-mercury' => '&#xf223 fa-mercury',
503
+ 'fa-transgender' => '&#xf224 fa-transgender',
504
+ 'fa-transgender-alt' => '&#xf225 fa-transgender-alt',
505
+ 'fa-venus-double' => '&#xf226 fa-venus-double',
506
+ 'fa-mars-double' => '&#xf227 fa-mars-double',
507
+ 'fa-venus-mars' => '&#xf228 fa-venus-mars',
508
+ 'fa-mars-stroke' => '&#xf229 fa-mars-stroke',
509
+ 'fa-mars-stroke-v' => '&#xf22a fa-mars-stroke-v',
510
+ 'fa-mars-stroke-h' => '&#xf22b fa-mars-stroke-h',
511
+ 'fa-neuter' => '&#xf22c fa-neuter',
512
+ 'fa-genderless' => '&#xf22d fa-genderless',
513
+ 'fa-facebook-official' => '&#xf230 fa-facebook-official',
514
+ 'fa-pinterest-p' => '&#xf231 fa-pinterest-p',
515
+ 'fa-whatsapp' => '&#xf232 fa-whatsapp',
516
+ 'fa-server' => '&#xf233 fa-server',
517
+ 'fa-user-plus' => '&#xf234 fa-user-plus',
518
+ 'fa-user-times' => '&#xf235 fa-user-times',
519
+ 'fa-bed' => '&#xf236 fa-bed',
520
+ 'fa-viacoin' => '&#xf237 fa-viacoin',
521
+ 'fa-train' => '&#xf238 fa-train',
522
+ 'fa-subway' => '&#xf239 fa-subway',
523
+ 'fa-medium' => '&#xf23a fa-medium',
524
+ 'fa-y-combinator' => '&#xf23b fa-y-combinator',
525
+ 'fa-optin-monster' => '&#xf23c fa-optin-monster',
526
+ 'fa-opencart' => '&#xf23d fa-opencart',
527
+ 'fa-expeditedssl' => '&#xf23e fa-expeditedssl',
528
+ 'fa-battery-full' => '&#xf240 fa-battery-full',
529
+ 'fa-battery-three-quarters' => '&#xf241 fa-battery-three-quarters',
530
+ 'fa-battery-half' => '&#xf242 fa-battery-half',
531
+ 'fa-battery-quarter' => '&#xf243 fa-battery-quarter',
532
+ 'fa-battery-empty' => '&#xf244 fa-battery-empty',
533
+ 'fa-mouse-pointer' => '&#xf245 fa-mouse-pointer',
534
+ 'fa-i-cursor' => '&#xf246 fa-i-cursor',
535
+ 'fa-object-group' => '&#xf247 fa-object-group',
536
+ 'fa-object-ungroup' => '&#xf248 fa-object-ungroup',
537
+ 'fa-sticky-note' => '&#xf249 fa-sticky-note',
538
+ 'fa-sticky-note-o' => '&#xf24a fa-sticky-note-o',
539
+ 'fa-cc-jcb' => '&#xf24b fa-cc-jcb',
540
+ 'fa-cc-diners-club' => '&#xf24c fa-cc-diners-club',
541
+ 'fa-clone' => '&#xf24d fa-clone',
542
+ 'fa-balance-scale' => '&#xf24e fa-balance-scale',
543
+ 'fa-hourglass-o' => '&#xf250 fa-hourglass-o',
544
+ 'fa-hourglass-start' => '&#xf251 fa-hourglass-start',
545
+ 'fa-hourglass-half' => '&#xf252 fa-hourglass-half',
546
+ 'fa-hourglass-end' => '&#xf253 fa-hourglass-end',
547
+ 'fa-hourglass' => '&#xf254 fa-hourglass',
548
+ 'fa-hand-rock-o' => '&#xf255 fa-hand-rock-o',
549
+ 'fa-hand-paper-o' => '&#xf256 fa-hand-paper-o',
550
+ 'fa-hand-scissors-o' => '&#xf257 fa-hand-scissors-o',
551
+ 'fa-hand-lizard-o' => '&#xf258 fa-hand-lizard-o',
552
+ 'fa-hand-spock-o' => '&#xf259 fa-hand-spock-o',
553
+ 'fa-hand-pointer-o' => '&#xf25a fa-hand-pointer-o',
554
+ 'fa-hand-peace-o' => '&#xf25b fa-hand-peace-o',
555
+ 'fa-trademark' => '&#xf25c fa-trademark',
556
+ 'fa-registered' => '&#xf25d fa-registered',
557
+ 'fa-creative-commons' => '&#xf25e fa-creative-commons',
558
+ 'fa-gg' => '&#xf260 fa-gg',
559
+ 'fa-gg-circle' => '&#xf261 fa-gg-circle',
560
+ 'fa-tripadvisor' => '&#xf262 fa-tripadvisor',
561
+ 'fa-odnoklassniki' => '&#xf263 fa-odnoklassniki',
562
+ 'fa-odnoklassniki-square' => '&#xf264 fa-odnoklassniki-square',
563
+ 'fa-get-pocket' => '&#xf265 fa-get-pocket',
564
+ 'fa-wikipedia-w' => '&#xf266 fa-wikipedia-w',
565
+ 'fa-safari' => '&#xf267 fa-safari',
566
+ 'fa-chrome' => '&#xf268 fa-chrome',
567
+ 'fa-firefox' => '&#xf269 fa-firefox',
568
+ 'fa-opera' => '&#xf26a fa-opera',
569
+ 'fa-internet-explorer' => '&#xf26b fa-internet-explorer',
570
+ 'fa-television' => '&#xf26c fa-television',
571
+ 'fa-contao' => '&#xf26d fa-contao',
572
+ 'fa-500px' => '&#xf26e fa-500px',
573
+ 'fa-amazon' => '&#xf270 fa-amazon',
574
+ 'fa-calendar-plus-o' => '&#xf271 fa-calendar-plus-o',
575
+ 'fa-calendar-minus-o' => '&#xf272 fa-calendar-minus-o',
576
+ 'fa-calendar-times-o' => '&#xf273 fa-calendar-times-o',
577
+ 'fa-calendar-check-o' => '&#xf274 fa-calendar-check-o',
578
+ 'fa-industry' => '&#xf275 fa-industry',
579
+ 'fa-map-pin' => '&#xf276 fa-map-pin',
580
+ 'fa-map-signs' => '&#xf277 fa-map-signs',
581
+ 'fa-map-o' => '&#xf278 fa-map-o',
582
+ 'fa-map' => '&#xf279 fa-map',
583
+ 'fa-commenting' => '&#xf27a fa-commenting',
584
+ 'fa-commenting-o' => '&#xf27b fa-commenting-o',
585
+ 'fa-houzz' => '&#xf27c fa-houzz',
586
+ 'fa-vimeo' => '&#xf27d fa-vimeo',
587
+ 'fa-black-tie' => '&#xf27e fa-black-tie',
588
+ 'fa-fonticons' => '&#xf280 fa-fonticons',
589
+ 'fa-reddit-alien' => '&#xf281 fa-reddit-alien',
590
+ 'fa-edge' => '&#xf282 fa-edge',
591
+ 'fa-credit-card-alt' => '&#xf283 fa-credit-card-alt',
592
+ 'fa-codiepie' => '&#xf284 fa-codiepie',
593
+ 'fa-modx' => '&#xf285 fa-modx',
594
+ 'fa-fort-awesome' => '&#xf286 fa-fort-awesome',
595
+ 'fa-usb' => '&#xf287 fa-usb',
596
+ 'fa-product-hunt' => '&#xf288 fa-product-hunt',
597
+ 'fa-mixcloud' => '&#xf289 fa-mixcloud',
598
+ 'fa-scribd' => '&#xf28a fa-scribd',
599
+ 'fa-pause-circle' => '&#xf28b fa-pause-circle',
600
+ 'fa-pause-circle-o' => '&#xf28c fa-pause-circle-o',
601
+ 'fa-stop-circle' => '&#xf28d fa-stop-circle',
602
+ 'fa-stop-circle-o' => '&#xf28e fa-stop-circle-o',
603
+ 'fa-shopping-bag' => '&#xf290 fa-shopping-bag',
604
+ 'fa-shopping-basket' => '&#xf291 fa-shopping-basket',
605
+ 'fa-hashtag' => '&#xf292 fa-hashtag',
606
+ 'fa-bluetooth' => '&#xf293 fa-bluetooth',
607
+ 'fa-bluetooth-b' => '&#xf294 fa-bluetooth-b',
608
+ 'fa-percent' => '&#xf295 fa-percent',
609
+ 'fa-gitlab' => '&#xf296 fa-gitlab',
610
+ 'fa-wpbeginner' => '&#xf297 fa-wpbeginner',
611
+ 'fa-wpforms' => '&#xf298 fa-wpforms',
612
+ 'fa-envira' => '&#xf299 fa-envira',
613
+ 'fa-universal-access' => '&#xf29a fa-universal-access',
614
+ 'fa-wheelchair-alt' => '&#xf29b fa-wheelchair-alt',
615
+ 'fa-question-circle-o' => '&#xf29c fa-question-circle-o',
616
+ 'fa-blind' => '&#xf29d fa-blind',
617
+ 'fa-audio-description' => '&#xf29e fa-audio-description',
618
+ 'fa-volume-control-phone' => '&#xf2a0 fa-volume-control-phone',
619
+ 'fa-braille' => '&#xf2a1 fa-braille',
620
+ 'fa-assistive-listening-systems' => '&#xf2a2 fa-assistive-listening-systems',
621
+ 'fa-american-sign-language-interpreting' => '&#xf2a3 fa-american-sign-language-interpreting',
622
+ 'fa-deaf' => '&#xf2a4 fa-deaf',
623
+ 'fa-glide' => '&#xf2a5 fa-glide',
624
+ 'fa-glide-g' => '&#xf2a6 fa-glide-g',
625
+ 'fa-sign-language' => '&#xf2a7 fa-sign-language',
626
+ 'fa-low-vision' => '&#xf2a8 fa-low-vision',
627
+ 'fa-viadeo' => '&#xf2a9 fa-viadeo',
628
+ 'fa-viadeo-square' => '&#xf2aa fa-viadeo-square',
629
+ 'fa-snapchat' => '&#xf2ab fa-snapchat',
630
+ 'fa-snapchat-ghost' => '&#xf2ac fa-snapchat-ghost',
631
+ 'fa-snapchat-square' => '&#xf2ad fa-snapchat-square',
632
+ 'fa-pied-piper' => '&#xf2ae fa-pied-piper',
633
+ 'fa-first-order' => '&#xf2b0 fa-first-order',
634
+ 'fa-yoast' => '&#xf2b1 fa-yoast',
635
+ 'fa-themeisle' => '&#xf2b2 fa-themeisle'
636
+
637
+ );
638
+ $icons = array_merge( $new_icons );
639
+
640
+ ksort( $icons );
641
+
642
+ return $icons;
643
+ }
inc/fiona-blog/widgets/class-social-widget.php ADDED
@@ -0,0 +1,177 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if ( ! class_exists( 'fiona_blog_social_icon_widget' ) ) :
3
+
4
+ class fiona_blog_social_icon_widget extends WP_Widget{
5
+ // Construct
6
+ public function __construct() {
7
+
8
+ parent::__construct(
9
+ "Social_Widget",
10
+ "Fiona Social Widget",
11
+ array("description" => __( 'Social Icon Widgets', 'fiona-blog-widgets' ), )
12
+ );
13
+
14
+ $this->defaults = array(
15
+ 'title' => __( 'Social Icon', 'fiona_blog_social_icon_widget' ),
16
+ 'social' => array()
17
+ );
18
+
19
+ add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_scripts' ) );
20
+ add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_admin_scripts' ) );
21
+ }
22
+ function enqueue_scripts() {
23
+
24
+ wp_enqueue_style( 'fiona-blog-widgets' );
25
+ }
26
+ function enqueue_admin_scripts() {
27
+
28
+ }
29
+
30
+
31
+ // Widget Form Section
32
+ function form( $instance ) {
33
+
34
+ $instance = wp_parse_args( (array) $instance, $this->defaults );
35
+ $instance['social_style'] = isset($instance['social_style']) ? $instance['social_style'] : '';
36
+ //$social_links = $this->get_social();
37
+ $social_links = get_social();
38
+ ?>
39
+ <p>
40
+ <label for="<?php echo esc_attr($this->get_field_id( 'title' )); ?>"><?php _e( 'Title', 'fiona-blog-widgets' ); ?>:</label>
41
+ <input id="<?php echo esc_attr($this->get_field_id( 'title' )); ?>" type="text" name="<?php echo esc_attr($this->get_field_name( 'title' )); ?>" value="<?php echo esc_attr($instance['title']); ?>" class="widefat" />
42
+ </p>
43
+ <ul class="mks_social_container mks-social-sortable">
44
+ <?php foreach ( $instance['social'] as $link ) : ?>
45
+ <li>
46
+ <?php $this->draw_social( $this, $social_links, $link ); ?>
47
+ </li>
48
+ <?php endforeach; ?>
49
+ </ul>
50
+ <p>
51
+ <a href="#" class="mks_add_social button"><?php _e( 'Add Icon', 'fiona-blog-widgets' ); ?></a>
52
+ </p>
53
+
54
+ <div class="mks_social_clone" style="display:none">
55
+ <?php $this->draw_social( $this, $social_links ); ?>
56
+ </div>
57
+
58
+ <p>
59
+ <label for="<?php echo $this->get_field_id( 'social_style' ); ?>"><?php _e('Select Style Style','fiona'); ?></label>
60
+ <select class="widefat" id="<?php echo $this->get_field_id( 'social_style' ); ?>" name="<?php echo $this->get_field_name( 'social_style' ); ?>">
61
+ <option value>--<?php echo __('Select','fiona'); ?>--</option>
62
+ <?php
63
+ $social_style = $instance['social_style'];
64
+ $users =array("style1","style3","style4");
65
+ foreach ($users as $user) {
66
+ $option = '<option value="' . $user . '" ';
67
+ $option .= ( $user == $social_style ) ? 'selected="selected"' : '';
68
+ $option .= '>';
69
+ $option .= $user;
70
+ $option .= '</option>';
71
+ echo $option;
72
+ }
73
+ ?>
74
+ </select>
75
+ <br/>
76
+ </p>
77
+
78
+ <?php
79
+ }
80
+
81
+ function draw_social( $widget, $social_links, $selected = array( 'icon' => '', 'url' => '' ) ) { ?>
82
+
83
+ <label class="mks-sw-icon"><?php _e( 'Icon', 'fiona-blog-widgets' ); ?> :</label>
84
+ <select type="text" class="iconPicker" name="<?php echo esc_attr($widget->get_field_name( 'social_icon' )); ?>[]" value="<?php echo esc_attr($selected['icon']); ?>" style="font-family: 'FontAwesome', Arial; width: 82%">
85
+ <?php foreach ( $social_links as $key => $link ) : ?>
86
+ <option value="<?php echo esc_attr($key); ?>" <?php selected( $key, $selected['icon'] ); ?>><?php echo $link; ?></option>
87
+ <?php endforeach; ?>
88
+ </select>
89
+ </br>
90
+ <label class="mks-sw-icon"><?php _e( 'Url', 'meks-smart-social-widget' ); ?> :</label>
91
+ <input type="text" name="<?php echo esc_attr($widget->get_field_name( 'social_url' )); ?>[]" value="<?php echo esc_attr($selected['url']); ?>" placeholder="Example.com" style="width: 82%">
92
+
93
+
94
+ <span class="mks-remove-social dashicons dashicons-no-alt"></span>
95
+
96
+ <?php }
97
+
98
+ // Upadte data
99
+ function update( $new_instance, $old_instance ) {
100
+ $instance = $old_instance;
101
+ $instance['title'] = strip_tags( $new_instance['title'] );
102
+ $instance['social'] = array();
103
+ if ( !empty( $new_instance['social_icon'] ) ) {
104
+ $protocols = wp_allowed_protocols();
105
+ $protocols[] = 'skype';
106
+ for ( $i=0; $i < ( count( $new_instance['social_icon'] ) - 1 ); $i++ ) {
107
+ $temp = array( 'icon' => $new_instance['social_icon'][$i], 'url' => esc_url( $new_instance['social_url'][$i], $protocols ) );
108
+ $instance['social'][] = $temp;
109
+ }
110
+ }
111
+ $instance['social_style'] = ( ! empty( $new_instance['social_style'] ) ) ? $new_instance['social_style'] : '';
112
+ return $instance;
113
+ }
114
+
115
+ // Front page data
116
+ function widget( $args, $instance ) {
117
+
118
+ extract( $args );
119
+
120
+ $instance = wp_parse_args( (array) $instance, $this->defaults );
121
+
122
+ $title = apply_filters( 'widget_title', $instance['title'] );
123
+ $social_style = isset($instance['social_style']) ? $instance['social_style'] : null;
124
+
125
+ echo $before_widget;
126
+
127
+ if ( !empty( $title ) ) {
128
+ echo $before_title . $title . $after_title;
129
+ }
130
+ ?>
131
+
132
+
133
+ <ul class="<?php echo esc_attr($social_style)?>">
134
+ <?php foreach ( $instance['social'] as $item ) : ?>
135
+ <li><a href="<?php echo esc_url($item['url']); ?>" class="socicon-<?php echo esc_attr( $item['icon'] ); ?>">
136
+ <i class="fa <?php echo esc_attr($item['icon']); ?>"></i>
137
+
138
+ <?php
139
+ $result = substr($item['icon'], 3, 15);
140
+ $result = str_replace("-"," ",$result);
141
+ if($social_style =='style3'){ ?>
142
+
143
+ <div class="socialText">
144
+ <span>Follow Us</span>
145
+ </div>
146
+
147
+ <?php }elseif($social_style =='style4'){ ?>
148
+
149
+ <div class="socialText">
150
+ <h6><?php echo ucwords($result); ?></h6>
151
+ </div>
152
+
153
+ <?php }else{ ?>
154
+
155
+ <svg class="round-svg-circle"><circle cx="50%" cy="50%" r="49%"></circle><circle cx="50%" cy="50%" r="49%"></circle></svg>
156
+
157
+ <?php } ?>
158
+ </a></li>
159
+ <?php endforeach; ?>
160
+ </ul>
161
+
162
+
163
+
164
+ <?php
165
+ echo $after_widget;
166
+ }
167
+
168
+
169
+
170
+ // Define social icon List
171
+ protected function get_social_title( $social_name ) {
172
+ $items = $this->get_social();
173
+ return $items[$social_name];
174
+ }
175
+ }
176
+ endif;
177
+ ?>
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.1
6
  Requires PHP: 5.6
7
- Stable tag: 4.7
8
  License: GPLv3 or later
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
10
 
@@ -89,6 +89,9 @@ Clever Fox WordPress plugin is licensed under the GPL3 (https://www.gnu.org/lice
89
 
90
  == Changelog ==
91
 
 
 
 
92
  = 4.7 =
93
  * Require PHP Version & Stable Tag Added
94
 
4
  Requires at least: 4.0
5
  Tested up to: 5.7.1
6
  Requires PHP: 5.6
7
+ Stable tag: 4.8
8
  License: GPLv3 or later
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
10
 
89
 
90
  == Changelog ==
91
 
92
+ = 4.8 =
93
+ * Fiona Theme Functionality Added
94
+
95
  = 4.7 =
96
  * Require PHP Version & Stable Tag Added
97