Version Description
- Fiona Theme Functionality Added
Download this release
Release Info
Developer | nayrathemes |
Plugin | Clever Fox |
Version | 4.8 |
Comparing to | |
See all releases |
Code changes from version 4.7 to 4.8
- clever-fox.php +12 -1
- inc/cleverfox-activator.php +6 -0
- inc/fiona-blog/default-pages/home-page.php +23 -0
- inc/fiona-blog/default-pages/upload-media.php +32 -0
- inc/fiona-blog/default-widgets/default-widget.php +38 -0
- inc/fiona-blog/dynamic-style.php +62 -0
- inc/fiona-blog/extras.php +33 -0
- inc/fiona-blog/features/fiona-blog-header.php +295 -0
- inc/fiona-blog/features/fiona-blog-slider.php +79 -0
- inc/fiona-blog/features/fiona-blog-typography.php +265 -0
- inc/fiona-blog/features/fiona-blog-weekend-top.php +98 -0
- inc/fiona-blog/fiona-blog.php +26 -0
- inc/fiona-blog/images/logo.png +0 -0
- inc/fiona-blog/sections/above-header.php +67 -0
- inc/fiona-blog/sections/section-slider.php +79 -0
- inc/fiona-blog/sections/section-weekend-top.php +94 -0
- inc/fiona-blog/widgets/assets/css/admin.css +51 -0
- inc/fiona-blog/widgets/assets/css/widget.css +378 -0
- inc/fiona-blog/widgets/assets/fonticonpicker/iconpicker.eot +0 -0
- inc/fiona-blog/widgets/assets/fonticonpicker/iconpicker.svg +19 -0
- inc/fiona-blog/widgets/assets/fonticonpicker/iconpicker.ttf +0 -0
- inc/fiona-blog/widgets/assets/fonticonpicker/iconpicker.woff +0 -0
- inc/fiona-blog/widgets/assets/fonticonpicker/jquery.fonticonpicker.min.css +2 -0
- inc/fiona-blog/widgets/assets/fonticonpicker/jquery.fonticonpicker.min.js +13 -0
- inc/fiona-blog/widgets/assets/js/main.js +80 -0
- inc/fiona-blog/widgets/class-author-widget.php +133 -0
- inc/fiona-blog/widgets/class-fiona-widgets.php +90 -0
- inc/fiona-blog/widgets/class-post-slider-widget.php +134 -0
- inc/fiona-blog/widgets/class-social-icons.php +643 -0
- inc/fiona-blog/widgets/class-social-widget.php +177 -0
- 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 |
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="" 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="" 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="" 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="" 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="" 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="" 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="" 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="" 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' => ' fa-glass',
|
5 |
+
'fa-music' => ' fa-music',
|
6 |
+
'fa-search' => ' fa-search',
|
7 |
+
'fa-envelope-o' => ' fa-envelope-o',
|
8 |
+
'fa-heart' => ' fa-heart',
|
9 |
+
'fa-star' => ' fa-star',
|
10 |
+
'fa-star-o' => ' fa-star-o',
|
11 |
+
'fa-user' => ' fa-user',
|
12 |
+
'fa-film' => ' fa-film',
|
13 |
+
'fa-th-large' => ' fa-th-large',
|
14 |
+
'fa-th' => ' fa-th',
|
15 |
+
'fa-th-list' => ' fa-th-list',
|
16 |
+
'fa-check' => ' fa-check',
|
17 |
+
'fa-times' => ' fa-times',
|
18 |
+
'fa-search-plus' => '[ fa-search-plus',
|
19 |
+
'fa-search-minus' => ' fa-search-minus',
|
20 |
+
'fa-power-off' => ' fa-power-off',
|
21 |
+
'fa-signal' => ' fa-signal',
|
22 |
+
'fa-cog' => ' fa-cog',
|
23 |
+
'fa-trash-o' => ' fa-trash-o',
|
24 |
+
'fa-home' => ' fa-home',
|
25 |
+
'fa-file-o' => ' fa-file-o',
|
26 |
+
'fa-clock-o' => ' fa-clock-o',
|
27 |
+
'fa-road' => ' fa-road',
|
28 |
+
'fa-download' => ' fa-download',
|
29 |
+
'fa-arrow-circle-o-down' => ' fa-arrow-circle-o-down',
|
30 |
+
'fa-arrow-circle-o-up' => ' fa-arrow-circle-o-up',
|
31 |
+
'fa-inbox' => ' fa-inbox',
|
32 |
+
'fa-play-circle-o' => ' fa-play-circle-o',
|
33 |
+
'fa-repeat' => ' fa-repeat',
|
34 |
+
'fa-refresh' => ' fa-refresh',
|
35 |
+
'fa-list-alt' => ' fa-list-alt',
|
36 |
+
'fa-lock' => ' fa-lock',
|
37 |
+
'fa-flag' => ' fa-flag',
|
38 |
+
'fa-headphones' => ' fa-headphones',
|
39 |
+
'fa-volume-off' => ' fa-volume-off',
|
40 |
+
'fa-volume-down' => ' fa-volume-down',
|
41 |
+
'fa-volume-up' => ' fa-volume-up',
|
42 |
+
'fa-qrcode' => ' fa-qrcode',
|
43 |
+
'fa-barcode' => ' fa-barcode',
|
44 |
+
'fa-tag' => ' fa-tag',
|
45 |
+
'fa-tags' => ' fa-tags',
|
46 |
+
'fa-book' => ' fa-book',
|
47 |
+
'fa-bookmark' => ' fa-bookmark',
|
48 |
+
'fa-print' => ' fa-print',
|
49 |
+
'fa-camera' => ' fa-camera',
|
50 |
+
'fa-font' => ' fa-font',
|
51 |
+
'fa-bold' => ' fa-bold',
|
52 |
+
'fa-italic' => ' fa-italic',
|
53 |
+
'fa-text-height' => ' fa-text-height',
|
54 |
+
'fa-text-width' => ' fa-text-width',
|
55 |
+
'fa-align-left' => ' fa-align-left',
|
56 |
+
'fa-align-center' => ' fa-align-center',
|
57 |
+
'fa-align-right' => ' fa-align-right',
|
58 |
+
'fa-align-justify' => ' fa-align-justify',
|
59 |
+
'fa-list' => ' fa-list',
|
60 |
+
'fa-outdent' => ' fa-outdent',
|
61 |
+
'fa-indent' => ' fa-indent',
|
62 |
+
'fa-video-camera' => ' fa-video-camera',
|
63 |
+
'fa-picture-o' => ' fa-picture-o',
|
64 |
+
'fa-pencil' => ' fa-pencil',
|
65 |
+
'fa-map-marker' => ' fa-map-marker',
|
66 |
+
'fa-adjust' => ' fa-adjust',
|
67 |
+
'fa-tint' => ' fa-tint',
|
68 |
+
'fa-pencil-square-o' => ' fa-pencil-square-o',
|
69 |
+
'fa-share-square-o' => ' fa-share-square-o',
|
70 |
+
'fa-check-square-o' => ' fa-check-square-o',
|
71 |
+
'fa-arrows' => ' fa-arrows',
|
72 |
+
'fa-step-backward' => ' fa-step-backward',
|
73 |
+
'fa-fast-backward' => ' fa-fast-backward',
|
74 |
+
'fa-backward' => ' fa-backward',
|
75 |
+
'fa-play' => ' fa-play',
|
76 |
+
'fa-pause' => ' fa-pause',
|
77 |
+
'fa-stop' => ' fa-stop',
|
78 |
+
'fa-forward' => ' fa-forward',
|
79 |
+
'fa-fast-forward' => ' fa-fast-forward',
|
80 |
+
'fa-step-forward' => ' fa-step-forward',
|
81 |
+
'fa-eject' => ' fa-eject',
|
82 |
+
'fa-chevron-left' => ' fa-chevron-left',
|
83 |
+
'fa-chevron-right' => ' fa-chevron-right',
|
84 |
+
'fa-plus-circle' => ' fa-plus-circle',
|
85 |
+
'fa-minus-circle' => ' fa-minus-circle',
|
86 |
+
'fa-times-circle' => ' fa-times-circle',
|
87 |
+
'fa-check-circle' => ' fa-check-circle',
|
88 |
+
'fa-question-circle' => ' fa-question-circle',
|
89 |
+
'fa-info-circle' => ' fa-info-circle',
|
90 |
+
'fa-crosshairs' => ' fa-crosshairs',
|
91 |
+
'fa-times-circle-o' => ' fa-times-circle-o',
|
92 |
+
'fa-check-circle-o' => ' fa-check-circle-o',
|
93 |
+
'fa-ban' => ' fa-ban',
|
94 |
+
'fa-arrow-left' => ' fa-arrow-left',
|
95 |
+
'fa-arrow-right' => ' fa-arrow-right',
|
96 |
+
'fa-arrow-up' => ' fa-arrow-up',
|
97 |
+
'fa-arrow-down' => ' fa-arrow-down',
|
98 |
+
'fa-share' => ' fa-share',
|
99 |
+
'fa-expand' => ' fa-expand',
|
100 |
+
'fa-compress' => ' fa-compress',
|
101 |
+
'fa-plus' => ' fa-plus',
|
102 |
+
'fa-minus' => ' fa-minus',
|
103 |
+
'fa-asterisk' => ' fa-asterisk',
|
104 |
+
'fa-exclamation-circle' => ' fa-exclamation-circle',
|
105 |
+
'fa-gift' => ' fa-gift',
|
106 |
+
'fa-leaf' => ' fa-leaf',
|
107 |
+
'fa-fire' => ' fa-fire',
|
108 |
+
'fa-eye' => ' fa-eye',
|
109 |
+
'fa-eye-slash' => ' fa-eye-slash',
|
110 |
+
'fa-exclamation-triangle' => ' fa-exclamation-triangle',
|
111 |
+
'fa-plane' => ' fa-plane',
|
112 |
+
'fa-calendar' => ' fa-calendar',
|
113 |
+
'fa-random' => ' fa-random',
|
114 |
+
'fa-comment' => ' fa-comment',
|
115 |
+
'fa-magnet' => ' fa-magnet',
|
116 |
+
'fa-chevron-up' => ' fa-chevron-up',
|
117 |
+
'fa-chevron-down' => ' fa-chevron-down',
|
118 |
+
'fa-retweet' => ' fa-retweet',
|
119 |
+
'fa-shopping-cart' => ' fa-shopping-cart',
|
120 |
+
'fa-folder' => ' fa-folder',
|
121 |
+
'fa-folder-open' => ' fa-folder-open',
|
122 |
+
'fa-arrows-v' => ' fa-arrows-v',
|
123 |
+
'fa-arrows-h' => ' fa-arrows-h',
|
124 |
+
'fa-bar-chart' => ' fa-bar-chart',
|
125 |
+
'fa-twitter-square' => ' fa-twitter-square',
|
126 |
+
'fa-facebook-square' => ' fa-facebook-square',
|
127 |
+
'fa-camera-retro' => ' fa-camera-retro',
|
128 |
+
'fa-key' => ' fa-key',
|
129 |
+
'fa-cogs' => ' fa-cogs',
|
130 |
+
'fa-comments' => ' fa-comments',
|
131 |
+
'fa-thumbs-o-up' => ' fa-thumbs-o-up',
|
132 |
+
'fa-thumbs-o-down' => ' fa-thumbs-o-down',
|
133 |
+
'fa-star-half' => ' fa-star-half',
|
134 |
+
'fa-heart-o' => ' fa-heart-o',
|
135 |
+
'fa-sign-out' => ' fa-sign-out',
|
136 |
+
'fa-linkedin-square' => ' fa-linkedin-square',
|
137 |
+
'fa-thumb-tack' => ' fa-thumb-tack',
|
138 |
+
'fa-external-link' => ' fa-external-link',
|
139 |
+
'fa-sign-in' => ' fa-sign-in',
|
140 |
+
'fa-trophy' => ' fa-trophy',
|
141 |
+
'fa-github-square' => ' fa-github-square',
|
142 |
+
'fa-upload' => ' fa-upload',
|
143 |
+
'fa-lemon-o' => ' fa-lemon-o',
|
144 |
+
'fa-phone' => ' fa-phone',
|
145 |
+
'fa-square-o' => ' fa-square-o',
|
146 |
+
'fa-bookmark-o' => ' fa-bookmark-o',
|
147 |
+
'fa-phone-square' => ' fa-phone-square',
|
148 |
+
'fa-twitter' => ' fa-twitter',
|
149 |
+
'fa-facebook' => ' fa-facebook',
|
150 |
+
'fa-github' => ' fa-github',
|
151 |
+
'fa-unlock' => ' fa-unlock',
|
152 |
+
'fa-credit-card' => ' fa-credit-card',
|
153 |
+
'fa-rss' => ' fa-rss',
|
154 |
+
'fa-hdd-o' => ' fa-hdd-o',
|
155 |
+
'fa-bullhorn' => ' fa-bullhorn',
|
156 |
+
'fa-bell' => ' fa-bell',
|
157 |
+
'fa-certificate' => ' fa-certificate',
|
158 |
+
'fa-hand-o-right' => ' fa-hand-o-right',
|
159 |
+
'fa-hand-o-left' => ' fa-hand-o-left',
|
160 |
+
'fa-hand-o-up' => ' fa-hand-o-up',
|
161 |
+
'fa-hand-o-down' => ' fa-hand-o-down',
|
162 |
+
'fa-arrow-circle-left' => ' fa-arrow-circle-left',
|
163 |
+
'fa-arrow-circle-right' => ' fa-arrow-circle-right',
|
164 |
+
'fa-arrow-circle-up' => ' fa-arrow-circle-up',
|
165 |
+
'fa-arrow-circle-down' => ' fa-arrow-circle-down',
|
166 |
+
'fa-globe' => ' fa-globe',
|
167 |
+
'fa-wrench' => ' fa-wrench',
|
168 |
+
'fa-tasks' => ' fa-tasks',
|
169 |
+
'fa-filter' => ' fa-filter',
|
170 |
+
'fa-briefcase' => ' fa-briefcase',
|
171 |
+
'fa-arrows-alt' => ' fa-arrows-alt',
|
172 |
+
'fa-users' => ' fa-users',
|
173 |
+
'fa-link' => ' fa-link',
|
174 |
+
'fa-cloud' => ' fa-cloud',
|
175 |
+
'fa-flask' => ' fa-flask',
|
176 |
+
'fa-scissors' => ' fa-scissors',
|
177 |
+
'fa-files-o' => ' fa-files-o',
|
178 |
+
'fa-paperclip' => ' fa-paperclip',
|
179 |
+
'fa-floppy-o' => ' fa-floppy-o',
|
180 |
+
'fa-square' => ' fa-square',
|
181 |
+
'fa-bars' => ' fa-bars',
|
182 |
+
'fa-list-ul' => ' fa-list-ul',
|
183 |
+
'fa-list-ol' => ' fa-list-ol',
|
184 |
+
'fa-strikethrough' => ' fa-strikethrough',
|
185 |
+
'fa-underline' => ' fa-underline',
|
186 |
+
'fa-table' => ' fa-table',
|
187 |
+
'fa-magic' => ' fa-magic',
|
188 |
+
'fa-truck' => ' fa-truck',
|
189 |
+
'fa-pinterest' => ' fa-pinterest',
|
190 |
+
'fa-pinterest-square' => ' fa-pinterest-square',
|
191 |
+
'fa-google-plus-square' => ' fa-google-plus-square',
|
192 |
+
'fa-google-plus' => ' fa-google-plus',
|
193 |
+
'fa-money' => ' fa-money',
|
194 |
+
'fa-caret-down' => ' fa-caret-down',
|
195 |
+
'fa-caret-up' => ' fa-caret-up',
|
196 |
+
'fa-caret-left' => ' fa-caret-left',
|
197 |
+
'fa-caret-right' => ' fa-caret-right',
|
198 |
+
'fa-columns' => ' fa-columns',
|
199 |
+
'fa-sort' => ' fa-sort',
|
200 |
+
'fa-sort-desc' => ' fa-sort-desc',
|
201 |
+
'fa-sort-asc' => ' fa-sort-asc',
|
202 |
+
'fa-envelope' => ' fa-envelope',
|
203 |
+
'fa-linkedin' => ' fa-linkedin',
|
204 |
+
'fa-undo' => ' fa-undo',
|
205 |
+
'fa-gavel' => ' fa-gavel',
|
206 |
+
'fa-tachometer' => ' fa-tachometer',
|
207 |
+
'fa-comment-o' => ' fa-comment-o',
|
208 |
+
'fa-comments-o' => ' fa-comments-o',
|
209 |
+
'fa-bolt' => ' fa-bolt',
|
210 |
+
'fa-sitemap' => ' fa-sitemap',
|
211 |
+
'fa-umbrella' => ' fa-umbrella',
|
212 |
+
'fa-clipboard' => ' fa-clipboard',
|
213 |
+
'fa-lightbulb-o' => ' fa-lightbulb-o',
|
214 |
+
'fa-exchange' => ' fa-exchange',
|
215 |
+
'fa-cloud-download' => ' fa-cloud-download',
|
216 |
+
'fa-cloud-upload' => ' fa-cloud-upload',
|
217 |
+
'fa-user-md' => ' fa-user-md',
|
218 |
+
'fa-stethoscope' => ' fa-stethoscope',
|
219 |
+
'fa-suitcase' => ' fa-suitcase',
|
220 |
+
'fa-bell-o' => ' fa-bell-o',
|
221 |
+
'fa-coffee' => ' fa-coffee',
|
222 |
+
'fa-cutlery' => ' fa-cutlery',
|
223 |
+
'fa-file-text-o' => ' fa-file-text-o',
|
224 |
+
'fa-building-o' => ' fa-building-o',
|
225 |
+
'fa-hospital-o' => ' fa-hospital-o',
|
226 |
+
'fa-ambulance' => ' fa-ambulance',
|
227 |
+
'fa-medkit' => ' fa-medkit',
|
228 |
+
'fa-fighter-jet' => ' fa-fighter-jet',
|
229 |
+
'fa-beer' => ' fa-beer',
|
230 |
+
'fa-h-square' => ' fa-h-square',
|
231 |
+
'fa-plus-square' => ' fa-plus-square',
|
232 |
+
'fa-angle-double-left' => ' fa-angle-double-left',
|
233 |
+
'fa-angle-double-right' => ' fa-angle-double-right',
|
234 |
+
'fa-angle-double-up' => ' fa-angle-double-up',
|
235 |
+
'fa-angle-double-down' => ' fa-angle-double-down',
|
236 |
+
'fa-angle-left' => ' fa-angle-left',
|
237 |
+
'fa-angle-right' => ' fa-angle-right',
|
238 |
+
'fa-angle-up' => ' fa-angle-up',
|
239 |
+
'fa-angle-down' => ' fa-angle-down',
|
240 |
+
'fa-desktop' => ' fa-desktop',
|
241 |
+
'fa-laptop' => ' fa-laptop',
|
242 |
+
'fa-tablet' => ' fa-tablet',
|
243 |
+
'fa-mobile' => ' fa-mobile',
|
244 |
+
'fa-circle-o' => ' fa-circle-o',
|
245 |
+
'fa-quote-left' => ' fa-quote-left',
|
246 |
+
'fa-quote-right' => ' fa-quote-right',
|
247 |
+
'fa-spinner' => ' fa-spinner',
|
248 |
+
'fa-circle' => ' fa-circle',
|
249 |
+
'fa-reply' => ' fa-reply',
|
250 |
+
'fa-github-alt' => ' fa-github-alt',
|
251 |
+
'fa-folder-o' => ' fa-folder-o',
|
252 |
+
'fa-folder-open-o' => ' fa-folder-open-o',
|
253 |
+
'fa-smile-o' => ' fa-smile-o',
|
254 |
+
'fa-frown-o' => ' fa-frown-o',
|
255 |
+
'fa-meh-o' => ' fa-meh-o',
|
256 |
+
'fa-gamepad' => ' fa-gamepad',
|
257 |
+
'fa-keyboard-o' => ' fa-keyboard-o',
|
258 |
+
'fa-flag-o' => ' fa-flag-o',
|
259 |
+
'fa-flag-checkered' => ' fa-flag-checkered',
|
260 |
+
'fa-terminal' => ' fa-terminal',
|
261 |
+
'fa-code' => ' fa-code',
|
262 |
+
'fa-reply-all' => ' fa-reply-all',
|
263 |
+
'fa-star-half-o' => ' fa-star-half-o',
|
264 |
+
'fa-location-arrow' => ' fa-location-arrow',
|
265 |
+
'fa-crop' => ' fa-crop',
|
266 |
+
'fa-code-fork' => ' fa-code-fork',
|
267 |
+
'fa-chain-broken' => ' fa-chain-broken',
|
268 |
+
'fa-question' => ' fa-question',
|
269 |
+
'fa-info' => ' fa-info',
|
270 |
+
'fa-exclamation' => ' fa-exclamation',
|
271 |
+
'fa-superscript' => ' fa-superscript',
|
272 |
+
'fa-subscript' => ' fa-subscript',
|
273 |
+
'fa-eraser' => ' fa-eraser',
|
274 |
+
'fa-puzzle-piece' => ' fa-puzzle-piece',
|
275 |
+
'fa-microphone' => ' fa-microphone',
|
276 |
+
'fa-microphone-slash' => ' fa-microphone-slash',
|
277 |
+
'fa-shield' => ' fa-shield',
|
278 |
+
'fa-calendar-o' => ' fa-calendar-o',
|
279 |
+
'fa-fire-extinguisher' => ' fa-fire-extinguisher',
|
280 |
+
'fa-rocket' => ' fa-rocket',
|
281 |
+
'fa-maxcdn' => ' fa-maxcdn',
|
282 |
+
'fa-chevron-circle-left' => ' fa-chevron-circle-left',
|
283 |
+
'fa-chevron-circle-right' => ' fa-chevron-circle-right',
|
284 |
+
'fa-chevron-circle-up' => ' fa-chevron-circle-up',
|
285 |
+
'fa-chevron-circle-down' => ' fa-chevron-circle-down',
|
286 |
+
'fa-html5' => ' fa-html5',
|
287 |
+
'fa-css3' => ' fa-css3',
|
288 |
+
'fa-anchor' => ' fa-anchor',
|
289 |
+
'fa-unlock-alt' => ' fa-unlock-alt',
|
290 |
+
'fa-bullseye' => ' fa-bullseye',
|
291 |
+
'fa-ellipsis-h' => ' fa-ellipsis-h',
|
292 |
+
'fa-ellipsis-v' => ' fa-ellipsis-v',
|
293 |
+
'fa-rss-square' => ' fa-rss-square',
|
294 |
+
'fa-play-circle' => ' fa-play-circle',
|
295 |
+
'fa-ticket' => ' fa-ticket',
|
296 |
+
'fa-minus-square' => ' fa-minus-square',
|
297 |
+
'fa-minus-square-o' => ' fa-minus-square-o',
|
298 |
+
'fa-level-up' => ' fa-level-up',
|
299 |
+
'fa-level-down' => ' fa-level-down',
|
300 |
+
'fa-check-square' => ' fa-check-square',
|
301 |
+
'fa-pencil-square' => ' fa-pencil-square',
|
302 |
+
'fa-external-link-square' => ' fa-external-link-square',
|
303 |
+
'fa-share-square' => ' fa-share-square',
|
304 |
+
'fa-compass' => ' fa-compass',
|
305 |
+
'fa-caret-square-o-down' => ' fa-caret-square-o-down',
|
306 |
+
'fa-caret-square-o-up' => ' fa-caret-square-o-up',
|
307 |
+
'fa-caret-square-o-right' => ' fa-caret-square-o-right',
|
308 |
+
'fa-eur' => ' fa-eur',
|
309 |
+
'fa-gbp' => ' fa-gbp',
|
310 |
+
'fa-usd' => ' fa-usd',
|
311 |
+
'fa-inr' => ' fa-inr',
|
312 |
+
'fa-jpy' => ' fa-jpy',
|
313 |
+
'fa-rub' => ' fa-rub',
|
314 |
+
'fa-krw' => ' fa-krw',
|
315 |
+
'fa-btc' => ' fa-btc',
|
316 |
+
'fa-file' => ' fa-file',
|
317 |
+
'fa-file-text' => ' fa-file-text',
|
318 |
+
'fa-sort-alpha-asc' => ' fa-sort-alpha-asc',
|
319 |
+
'fa-sort-alpha-desc' => ' fa-sort-alpha-desc',
|
320 |
+
'fa-sort-amount-asc' => ' fa-sort-amount-asc',
|
321 |
+
'fa-sort-amount-desc' => ' fa-sort-amount-desc',
|
322 |
+
'fa-sort-numeric-asc' => ' fa-sort-numeric-asc',
|
323 |
+
'fa-sort-numeric-desc' => ' fa-sort-numeric-desc',
|
324 |
+
'fa-thumbs-up' => ' fa-thumbs-up',
|
325 |
+
'fa-thumbs-down' => ' fa-thumbs-down',
|
326 |
+
'fa-youtube-square' => ' fa-youtube-square',
|
327 |
+
'fa-youtube' => ' fa-youtube',
|
328 |
+
'fa-xing' => ' fa-xing',
|
329 |
+
'fa-xing-square' => ' fa-xing-square',
|
330 |
+
'fa-youtube-play' => ' fa-youtube-play',
|
331 |
+
'fa-dropbox' => ' fa-dropbox',
|
332 |
+
'fa-stack-overflow' => ' fa-stack-overflow',
|
333 |
+
'fa-instagram' => ' fa-instagram',
|
334 |
+
'fa-flickr' => ' fa-flickr',
|
335 |
+
'fa-adn' => ' fa-adn',
|
336 |
+
'fa-bitbucket' => ' fa-bitbucket',
|
337 |
+
'fa-bitbucket-square' => ' fa-bitbucket-square',
|
338 |
+
'fa-tumblr' => ' fa-tumblr',
|
339 |
+
'fa-tumblr-square' => ' fa-tumblr-square',
|
340 |
+
'fa-long-arrow-down' => ' fa-long-arrow-down',
|
341 |
+
'fa-long-arrow-up' => ' fa-long-arrow-up',
|
342 |
+
'fa-long-arrow-left' => ' fa-long-arrow-left',
|
343 |
+
'fa-long-arrow-right' => ' fa-long-arrow-right',
|
344 |
+
'fa-apple' => ' fa-apple',
|
345 |
+
'fa-windows' => ' fa-windows',
|
346 |
+
'fa-android' => ' fa-android',
|
347 |
+
'fa-linux' => ' fa-linux',
|
348 |
+
'fa-dribbble' => ' fa-dribbble',
|
349 |
+
'fa-skype' => ' fa-skype',
|
350 |
+
'fa-foursquare' => ' fa-foursquare',
|
351 |
+
'fa-trello' => ' fa-trello',
|
352 |
+
'fa-female' => ' fa-female',
|
353 |
+
'fa-male' => ' fa-male',
|
354 |
+
'fa-gratipay' => ' fa-gratipay',
|
355 |
+
'fa-sun-o' => ' fa-sun-o',
|
356 |
+
'fa-moon-o' => ' fa-moon-o',
|
357 |
+
'fa-archive' => ' fa-archive',
|
358 |
+
'fa-bug' => ' fa-bug',
|
359 |
+
'fa-vk' => ' fa-vk',
|
360 |
+
'fa-weibo' => ' fa-weibo',
|
361 |
+
'fa-renren' => ' fa-renren',
|
362 |
+
'fa-pagelines' => ' fa-pagelines',
|
363 |
+
'fa-stack-exchange' => ' fa-stack-exchange',
|
364 |
+
'fa-arrow-circle-o-right' => ' fa-arrow-circle-o-right',
|
365 |
+
'fa-arrow-circle-o-left' => ' fa-arrow-circle-o-left',
|
366 |
+
'fa-caret-square-o-left' => ' fa-caret-square-o-left',
|
367 |
+
'fa-dot-circle-o' => ' fa-dot-circle-o',
|
368 |
+
'fa-wheelchair' => ' fa-wheelchair',
|
369 |
+
'fa-vimeo-square' => ' fa-vimeo-square',
|
370 |
+
'fa-try' => ' fa-try',
|
371 |
+
'fa-plus-square-o' => ' fa-plus-square-o',
|
372 |
+
'fa-space-shuttle' => ' fa-space-shuttle',
|
373 |
+
'fa-slack' => ' fa-slack',
|
374 |
+
'fa-envelope-square' => ' fa-envelope-square',
|
375 |
+
'fa-wordpress' => ' fa-wordpress',
|
376 |
+
'fa-openid' => ' fa-openid',
|
377 |
+
'fa-university' => ' fa-university',
|
378 |
+
'fa-graduation-cap' => ' fa-graduation-cap',
|
379 |
+
'fa-yahoo' => ' fa-yahoo',
|
380 |
+
'fa-google' => ' fa-google',
|
381 |
+
'fa-reddit' => ' fa-reddit',
|
382 |
+
'fa-reddit-square' => ' fa-reddit-square',
|
383 |
+
'fa-stumbleupon-circle' => ' fa-stumbleupon-circle',
|
384 |
+
'fa-stumbleupon' => ' fa-stumbleupon',
|
385 |
+
'fa-delicious' => ' fa-delicious',
|
386 |
+
'fa-digg' => ' fa-digg',
|
387 |
+
'fa-pied-piper-pp' => ' fa-pied-piper-pp',
|
388 |
+
'fa-pied-piper-alt' => ' fa-pied-piper-alt',
|
389 |
+
'fa-drupal' => ' fa-drupal',
|
390 |
+
'fa-joomla' => ' fa-joomla',
|
391 |
+
'fa-language' => ' fa-language',
|
392 |
+
'fa-fax' => ' fa-fax',
|
393 |
+
'fa-building' => ' fa-building',
|
394 |
+
'fa-child' => ' fa-child',
|
395 |
+
'fa-paw' => ' fa-paw',
|
396 |
+
'fa-spoon' => ' fa-spoon',
|
397 |
+
'fa-cube' => ' fa-cube',
|
398 |
+
'fa-cubes' => ' fa-cubes',
|
399 |
+
'fa-behance' => ' fa-behance',
|
400 |
+
'fa-behance-square' => ' fa-behance-square',
|
401 |
+
'fa-steam' => ' fa-steam',
|
402 |
+
'fa-steam-square' => ' fa-steam-square',
|
403 |
+
'fa-recycle' => ' fa-recycle',
|
404 |
+
'fa-car' => ' fa-car',
|
405 |
+
'fa-taxi' => ' fa-taxi',
|
406 |
+
'fa-tree' => ' fa-tree',
|
407 |
+
'fa-spotify' => ' fa-spotify',
|
408 |
+
'fa-deviantart' => ' fa-deviantart',
|
409 |
+
'fa-soundcloud' => ' fa-soundcloud',
|
410 |
+
'fa-database' => ' fa-database',
|
411 |
+
'fa-file-pdf-o' => ' fa-file-pdf-o',
|
412 |
+
'fa-file-word-o' => ' fa-file-word-o',
|
413 |
+
'fa-file-excel-o' => ' fa-file-excel-o',
|
414 |
+
'fa-file-powerpoint-o' => ' fa-file-powerpoint-o',
|
415 |
+
'fa-file-image-o' => ' fa-file-image-o',
|
416 |
+
'fa-file-archive-o' => ' fa-file-archive-o',
|
417 |
+
'fa-file-audio-o' => ' fa-file-audio-o',
|
418 |
+
'fa-file-video-o' => ' fa-file-video-o',
|
419 |
+
'fa-file-code-o' => ' fa-file-code-o',
|
420 |
+
'fa-vine' => ' fa-vine',
|
421 |
+
'fa-codepen' => ' fa-codepen',
|
422 |
+
'fa-jsfiddle' => ' fa-jsfiddle',
|
423 |
+
'fa-life-ring' => ' fa-life-ring',
|
424 |
+
'fa-circle-o-notch' => ' fa-circle-o-notch',
|
425 |
+
'fa-rebel' => ' fa-rebel',
|
426 |
+
'fa-empire' => ' fa-empire',
|
427 |
+
'fa-git-square' => ' fa-git-square',
|
428 |
+
'fa-git' => ' fa-git',
|
429 |
+
'fa-hacker-news' => ' fa-hacker-news',
|
430 |
+
'fa-tencent-weibo' => ' fa-tencent-weibo',
|
431 |
+
'fa-qq' => ' fa-qq',
|
432 |
+
'fa-weixin' => ' fa-weixin',
|
433 |
+
'fa-paper-plane' => ' fa-paper-plane',
|
434 |
+
'fa-paper-plane-o' => ' fa-paper-plane-o',
|
435 |
+
'fa-history' => ' fa-history',
|
436 |
+
'fa-circle-thin' => ' fa-circle-thin',
|
437 |
+
'fa-header' => ' fa-header',
|
438 |
+
'fa-paragraph' => ' fa-paragraph',
|
439 |
+
'fa-sliders' => ' fa-sliders',
|
440 |
+
'fa-share-alt' => ' fa-share-alt',
|
441 |
+
'fa-share-alt-square' => ' fa-share-alt-square',
|
442 |
+
'fa-bomb' => ' fa-bomb',
|
443 |
+
'fa-futbol-o' => ' fa-futbol-o',
|
444 |
+
'fa-tty' => ' fa-tty',
|
445 |
+
'fa-binoculars' => ' fa-binoculars',
|
446 |
+
'fa-plug' => ' fa-plug',
|
447 |
+
'fa-slideshare' => ' fa-slideshare',
|
448 |
+
'fa-twitch' => ' fa-twitch',
|
449 |
+
'fa-yelp' => ' fa-yelp',
|
450 |
+
'fa-newspaper-o' => ' fa-newspaper-o',
|
451 |
+
'fa-wifi' => ' fa-wifi',
|
452 |
+
'fa-calculator' => ' fa-calculator',
|
453 |
+
'fa-paypal' => ' fa-paypal',
|
454 |
+
'fa-google-wallet' => ' fa-google-wallet',
|
455 |
+
'fa-cc-visa' => ' fa-cc-visa',
|
456 |
+
'fa-cc-mastercard' => ' fa-cc-mastercard',
|
457 |
+
'fa-cc-discover' => ' fa-cc-discover',
|
458 |
+
'fa-cc-amex' => ' fa-cc-amex',
|
459 |
+
'fa-cc-paypal' => ' fa-cc-paypal',
|
460 |
+
'fa-cc-stripe' => ' fa-cc-stripe',
|
461 |
+
'fa-bell-slash' => ' fa-bell-slash',
|
462 |
+
'fa-bell-slash-o' => ' fa-bell-slash-o',
|
463 |
+
'fa-trash' => ' fa-trash',
|
464 |
+
'fa-copyright' => ' fa-copyright',
|
465 |
+
'fa-at' => ' fa-at',
|
466 |
+
'fa-eyedropper' => ' fa-eyedropper',
|
467 |
+
'fa-paint-brush' => ' fa-paint-brush',
|
468 |
+
'fa-birthday-cake' => ' fa-birthday-cake',
|
469 |
+
'fa-area-chart' => ' fa-area-chart',
|
470 |
+
'fa-pie-chart' => ' fa-pie-chart',
|
471 |
+
'fa-line-chart' => ' fa-line-chart',
|
472 |
+
'fa-lastfm' => ' fa-lastfm',
|
473 |
+
'fa-lastfm-square' => ' fa-lastfm-square',
|
474 |
+
'fa-toggle-off' => ' fa-toggle-off',
|
475 |
+
'fa-toggle-on' => ' fa-toggle-on',
|
476 |
+
'fa-bicycle' => ' fa-bicycle',
|
477 |
+
'fa-bus' => ' fa-bus',
|
478 |
+
'fa-ioxhost' => ' fa-ioxhost',
|
479 |
+
'fa-angellist' => ' fa-angellist',
|
480 |
+
'fa-cc' => ' fa-cc',
|
481 |
+
'fa-ils' => ' fa-ils',
|
482 |
+
'fa-meanpath' => ' fa-meanpath',
|
483 |
+
'fa-buysellads' => ' fa-buysellads',
|
484 |
+
'fa-connectdevelop' => ' fa-connectdevelop',
|
485 |
+
'fa-dashcube' => ' fa-dashcube',
|
486 |
+
'fa-forumbee' => ' fa-forumbee',
|
487 |
+
'fa-leanpub' => ' fa-leanpub',
|
488 |
+
'fa-sellsy' => ' fa-sellsy',
|
489 |
+
'fa-shirtsinbulk' => ' fa-shirtsinbulk',
|
490 |
+
'fa-simplybuilt' => ' fa-simplybuilt',
|
491 |
+
'fa-skyatlas' => ' fa-skyatlas',
|
492 |
+
'fa-cart-plus' => ' fa-cart-plus',
|
493 |
+
'fa-cart-arrow-down' => ' fa-cart-arrow-down',
|
494 |
+
'fa-diamond' => ' fa-diamond',
|
495 |
+
'fa-ship' => ' fa-ship',
|
496 |
+
'fa-user-secret' => ' fa-user-secret',
|
497 |
+
'fa-motorcycle' => ' fa-motorcycle',
|
498 |
+
'fa-street-view' => ' fa-street-view',
|
499 |
+
'fa-heartbeat' => ' fa-heartbeat',
|
500 |
+
'fa-venus' => ' fa-venus',
|
501 |
+
'fa-mars' => ' fa-mars',
|
502 |
+
'fa-mercury' => ' fa-mercury',
|
503 |
+
'fa-transgender' => ' fa-transgender',
|
504 |
+
'fa-transgender-alt' => ' fa-transgender-alt',
|
505 |
+
'fa-venus-double' => ' fa-venus-double',
|
506 |
+
'fa-mars-double' => ' fa-mars-double',
|
507 |
+
'fa-venus-mars' => ' fa-venus-mars',
|
508 |
+
'fa-mars-stroke' => ' fa-mars-stroke',
|
509 |
+
'fa-mars-stroke-v' => ' fa-mars-stroke-v',
|
510 |
+
'fa-mars-stroke-h' => ' fa-mars-stroke-h',
|
511 |
+
'fa-neuter' => ' fa-neuter',
|
512 |
+
'fa-genderless' => ' fa-genderless',
|
513 |
+
'fa-facebook-official' => ' fa-facebook-official',
|
514 |
+
'fa-pinterest-p' => ' fa-pinterest-p',
|
515 |
+
'fa-whatsapp' => ' fa-whatsapp',
|
516 |
+
'fa-server' => ' fa-server',
|
517 |
+
'fa-user-plus' => ' fa-user-plus',
|
518 |
+
'fa-user-times' => ' fa-user-times',
|
519 |
+
'fa-bed' => ' fa-bed',
|
520 |
+
'fa-viacoin' => ' fa-viacoin',
|
521 |
+
'fa-train' => ' fa-train',
|
522 |
+
'fa-subway' => ' fa-subway',
|
523 |
+
'fa-medium' => ' fa-medium',
|
524 |
+
'fa-y-combinator' => ' fa-y-combinator',
|
525 |
+
'fa-optin-monster' => ' fa-optin-monster',
|
526 |
+
'fa-opencart' => ' fa-opencart',
|
527 |
+
'fa-expeditedssl' => ' fa-expeditedssl',
|
528 |
+
'fa-battery-full' => ' fa-battery-full',
|
529 |
+
'fa-battery-three-quarters' => ' fa-battery-three-quarters',
|
530 |
+
'fa-battery-half' => ' fa-battery-half',
|
531 |
+
'fa-battery-quarter' => ' fa-battery-quarter',
|
532 |
+
'fa-battery-empty' => ' fa-battery-empty',
|
533 |
+
'fa-mouse-pointer' => ' fa-mouse-pointer',
|
534 |
+
'fa-i-cursor' => ' fa-i-cursor',
|
535 |
+
'fa-object-group' => ' fa-object-group',
|
536 |
+
'fa-object-ungroup' => ' fa-object-ungroup',
|
537 |
+
'fa-sticky-note' => ' fa-sticky-note',
|
538 |
+
'fa-sticky-note-o' => ' fa-sticky-note-o',
|
539 |
+
'fa-cc-jcb' => ' fa-cc-jcb',
|
540 |
+
'fa-cc-diners-club' => ' fa-cc-diners-club',
|
541 |
+
'fa-clone' => ' fa-clone',
|
542 |
+
'fa-balance-scale' => ' fa-balance-scale',
|
543 |
+
'fa-hourglass-o' => ' fa-hourglass-o',
|
544 |
+
'fa-hourglass-start' => ' fa-hourglass-start',
|
545 |
+
'fa-hourglass-half' => ' fa-hourglass-half',
|
546 |
+
'fa-hourglass-end' => ' fa-hourglass-end',
|
547 |
+
'fa-hourglass' => ' fa-hourglass',
|
548 |
+
'fa-hand-rock-o' => ' fa-hand-rock-o',
|
549 |
+
'fa-hand-paper-o' => ' fa-hand-paper-o',
|
550 |
+
'fa-hand-scissors-o' => ' fa-hand-scissors-o',
|
551 |
+
'fa-hand-lizard-o' => ' fa-hand-lizard-o',
|
552 |
+
'fa-hand-spock-o' => ' fa-hand-spock-o',
|
553 |
+
'fa-hand-pointer-o' => ' fa-hand-pointer-o',
|
554 |
+
'fa-hand-peace-o' => ' fa-hand-peace-o',
|
555 |
+
'fa-trademark' => ' fa-trademark',
|
556 |
+
'fa-registered' => ' fa-registered',
|
557 |
+
'fa-creative-commons' => ' fa-creative-commons',
|
558 |
+
'fa-gg' => ' fa-gg',
|
559 |
+
'fa-gg-circle' => ' fa-gg-circle',
|
560 |
+
'fa-tripadvisor' => ' fa-tripadvisor',
|
561 |
+
'fa-odnoklassniki' => ' fa-odnoklassniki',
|
562 |
+
'fa-odnoklassniki-square' => ' fa-odnoklassniki-square',
|
563 |
+
'fa-get-pocket' => ' fa-get-pocket',
|
564 |
+
'fa-wikipedia-w' => ' fa-wikipedia-w',
|
565 |
+
'fa-safari' => ' fa-safari',
|
566 |
+
'fa-chrome' => ' fa-chrome',
|
567 |
+
'fa-firefox' => ' fa-firefox',
|
568 |
+
'fa-opera' => ' fa-opera',
|
569 |
+
'fa-internet-explorer' => ' fa-internet-explorer',
|
570 |
+
'fa-television' => ' fa-television',
|
571 |
+
'fa-contao' => ' fa-contao',
|
572 |
+
'fa-500px' => ' fa-500px',
|
573 |
+
'fa-amazon' => ' fa-amazon',
|
574 |
+
'fa-calendar-plus-o' => ' fa-calendar-plus-o',
|
575 |
+
'fa-calendar-minus-o' => ' fa-calendar-minus-o',
|
576 |
+
'fa-calendar-times-o' => ' fa-calendar-times-o',
|
577 |
+
'fa-calendar-check-o' => ' fa-calendar-check-o',
|
578 |
+
'fa-industry' => ' fa-industry',
|
579 |
+
'fa-map-pin' => ' fa-map-pin',
|
580 |
+
'fa-map-signs' => ' fa-map-signs',
|
581 |
+
'fa-map-o' => ' fa-map-o',
|
582 |
+
'fa-map' => ' fa-map',
|
583 |
+
'fa-commenting' => ' fa-commenting',
|
584 |
+
'fa-commenting-o' => ' fa-commenting-o',
|
585 |
+
'fa-houzz' => ' fa-houzz',
|
586 |
+
'fa-vimeo' => ' fa-vimeo',
|
587 |
+
'fa-black-tie' => ' fa-black-tie',
|
588 |
+
'fa-fonticons' => ' fa-fonticons',
|
589 |
+
'fa-reddit-alien' => ' fa-reddit-alien',
|
590 |
+
'fa-edge' => ' fa-edge',
|
591 |
+
'fa-credit-card-alt' => ' fa-credit-card-alt',
|
592 |
+
'fa-codiepie' => ' fa-codiepie',
|
593 |
+
'fa-modx' => ' fa-modx',
|
594 |
+
'fa-fort-awesome' => ' fa-fort-awesome',
|
595 |
+
'fa-usb' => ' fa-usb',
|
596 |
+
'fa-product-hunt' => ' fa-product-hunt',
|
597 |
+
'fa-mixcloud' => ' fa-mixcloud',
|
598 |
+
'fa-scribd' => ' fa-scribd',
|
599 |
+
'fa-pause-circle' => ' fa-pause-circle',
|
600 |
+
'fa-pause-circle-o' => ' fa-pause-circle-o',
|
601 |
+
'fa-stop-circle' => ' fa-stop-circle',
|
602 |
+
'fa-stop-circle-o' => ' fa-stop-circle-o',
|
603 |
+
'fa-shopping-bag' => ' fa-shopping-bag',
|
604 |
+
'fa-shopping-basket' => ' fa-shopping-basket',
|
605 |
+
'fa-hashtag' => ' fa-hashtag',
|
606 |
+
'fa-bluetooth' => ' fa-bluetooth',
|
607 |
+
'fa-bluetooth-b' => ' fa-bluetooth-b',
|
608 |
+
'fa-percent' => ' fa-percent',
|
609 |
+
'fa-gitlab' => ' fa-gitlab',
|
610 |
+
'fa-wpbeginner' => ' fa-wpbeginner',
|
611 |
+
'fa-wpforms' => ' fa-wpforms',
|
612 |
+
'fa-envira' => ' fa-envira',
|
613 |
+
'fa-universal-access' => ' fa-universal-access',
|
614 |
+
'fa-wheelchair-alt' => ' fa-wheelchair-alt',
|
615 |
+
'fa-question-circle-o' => ' fa-question-circle-o',
|
616 |
+
'fa-blind' => ' fa-blind',
|
617 |
+
'fa-audio-description' => ' fa-audio-description',
|
618 |
+
'fa-volume-control-phone' => ' fa-volume-control-phone',
|
619 |
+
'fa-braille' => ' fa-braille',
|
620 |
+
'fa-assistive-listening-systems' => ' fa-assistive-listening-systems',
|
621 |
+
'fa-american-sign-language-interpreting' => ' fa-american-sign-language-interpreting',
|
622 |
+
'fa-deaf' => ' fa-deaf',
|
623 |
+
'fa-glide' => ' fa-glide',
|
624 |
+
'fa-glide-g' => ' fa-glide-g',
|
625 |
+
'fa-sign-language' => ' fa-sign-language',
|
626 |
+
'fa-low-vision' => ' fa-low-vision',
|
627 |
+
'fa-viadeo' => ' fa-viadeo',
|
628 |
+
'fa-viadeo-square' => ' fa-viadeo-square',
|
629 |
+
'fa-snapchat' => ' fa-snapchat',
|
630 |
+
'fa-snapchat-ghost' => ' fa-snapchat-ghost',
|
631 |
+
'fa-snapchat-square' => ' fa-snapchat-square',
|
632 |
+
'fa-pied-piper' => ' fa-pied-piper',
|
633 |
+
'fa-first-order' => ' fa-first-order',
|
634 |
+
'fa-yoast' => ' fa-yoast',
|
635 |
+
'fa-themeisle' => ' 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.
|
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 |
|