Version Description
- Aera Theme Functionality Added
Download this release
Release Info
Developer | nayrathemes |
Plugin | Clever Fox |
Version | 2.3 |
Comparing to | |
See all releases |
Code changes from version 2.2 to 2.3
- clever-fox.php +5 -1
- inc/aera/aera.php +33 -0
- inc/aera/default-pages/home-page.php +24 -0
- inc/aera/default-pages/upload-media.php +32 -0
- inc/aera/default-widgets/default-widget.php +38 -0
- inc/aera/features/aera-slider.php +120 -0
- inc/aera/images/logo-2.png +0 -0
- inc/aera/images/logo.png +0 -0
- inc/aera/sections/section-info.php +95 -0
- inc/aera/sections/section-slider.php +88 -0
- inc/assets/js/owl.carousel.min.js +3 -2
- inc/avril/features/avril-info.php +1 -0
- inc/avril/sections/section-slider.php +5 -4
- inc/cleverfox-activator.php +6 -0
- readme.txt +3 -0
clever-fox.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Clever Fox
|
4 |
Plugin URI:
|
5 |
Description: The Clever Fox plugin adds sections functionality to the Startkit theme and Others Nayra's Themes. This plugin for only startkit themes. Clever Fox is a plugin build to enhance the functionality of WordPress Theme made by Nayra Themes.
|
6 |
-
Version: 2.
|
7 |
Author: nayrathemes
|
8 |
Author URI: https://nayrathemes.com
|
9 |
Text Domain: clever-fox
|
@@ -61,6 +61,10 @@ function cleverfox_activate() {
|
|
61 |
require_once('inc/avril/avril.php');
|
62 |
}
|
63 |
|
|
|
|
|
|
|
|
|
64 |
}
|
65 |
add_action( 'init', 'cleverfox_activate' );
|
66 |
|
3 |
Plugin Name: Clever Fox
|
4 |
Plugin URI:
|
5 |
Description: The Clever Fox plugin adds sections functionality to the Startkit theme and Others Nayra's Themes. This plugin for only startkit themes. Clever Fox is a plugin build to enhance the functionality of WordPress Theme made by Nayra Themes.
|
6 |
+
Version: 2.3
|
7 |
Author: nayrathemes
|
8 |
Author URI: https://nayrathemes.com
|
9 |
Text Domain: clever-fox
|
61 |
require_once('inc/avril/avril.php');
|
62 |
}
|
63 |
|
64 |
+
if( 'Aera' == $theme->name){
|
65 |
+
require_once('inc/aera/aera.php');
|
66 |
+
}
|
67 |
+
|
68 |
}
|
69 |
add_action( 'init', 'cleverfox_activate' );
|
70 |
|
inc/aera/aera.php
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* @package Easypress
|
4 |
+
*/
|
5 |
+
|
6 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/avril/extras.php';
|
7 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/avril/dynamic-style.php';
|
8 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/avril/sections/above-header.php';
|
9 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/avril/features/avril-header.php';
|
10 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/avril/features/avril-cta.php';
|
11 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/avril/features/avril-features.php';
|
12 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/avril/features/avril-info.php';
|
13 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/avril/features/avril-service.php';
|
14 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/aera/features/aera-slider.php';
|
15 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/avril/features/avril-typography.php';
|
16 |
+
|
17 |
+
if ( ! function_exists( 'cleverfox_avril_frontpage_sections' ) ) :
|
18 |
+
function cleverfox_avril_frontpage_sections() {
|
19 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/aera/sections/section-slider.php';
|
20 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/aera/sections/section-info.php';
|
21 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/avril/sections/section-service.php';
|
22 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/avril/sections/section-features.php';
|
23 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/avril/sections/section-cta-2.php';
|
24 |
+
}
|
25 |
+
add_action( 'avril_sections', 'cleverfox_avril_frontpage_sections' );
|
26 |
+
endif;
|
27 |
+
|
28 |
+
function cleverfox_avril_enqueue_scripts() {
|
29 |
+
wp_enqueue_style('animate',CLEVERFOX_PLUGIN_URL .'/inc/assets/css/animate.css');
|
30 |
+
wp_enqueue_style('owl-carousel-min',CLEVERFOX_PLUGIN_URL .'/inc/assets/css/owl.carousel.min.css');
|
31 |
+
wp_enqueue_script( 'owl-carousel', CLEVERFOX_PLUGIN_URL . 'inc/assets/js/owl.carousel.min.js', array('jquery'), false, true);
|
32 |
+
}
|
33 |
+
add_action( 'wp_enqueue_scripts', 'cleverfox_avril_enqueue_scripts' );
|
inc/aera/default-pages/home-page.php
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
}
|
24 |
+
?>
|
inc/aera/default-pages/upload-media.php
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$file = CLEVERFOX_PLUGIN_URL .'inc/aera/images/logo.png';
|
3 |
+
$ImagePath = CLEVERFOX_PLUGIN_URL .'inc/aera/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' => 'avril 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( 'avril_media_id', $ImageId );
|
inc/aera/default-widgets/default-widget.php
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$activate = array(
|
3 |
+
'avril-sidebar-primary' => array(
|
4 |
+
'search-1',
|
5 |
+
'recent-posts-1',
|
6 |
+
'archives-1',
|
7 |
+
),
|
8 |
+
'avril-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/aera/images/logo-2.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('avril_media_id');
|
38 |
+
set_theme_mod( 'custom_logo', $MediaId[0] );
|
inc/aera/features/aera-slider.php
ADDED
@@ -0,0 +1,120 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
function avril_slider_setting( $wp_customize ) {
|
3 |
+
$selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' : 'refresh';
|
4 |
+
$wp_customize->add_section(
|
5 |
+
'slider_setting', array(
|
6 |
+
'title' => esc_html__( 'Slider Section', 'avril' ),
|
7 |
+
'panel' => 'avril_frontpage_sections',
|
8 |
+
'priority' => 1,
|
9 |
+
)
|
10 |
+
);
|
11 |
+
|
12 |
+
// slider Contents
|
13 |
+
$wp_customize->add_setting(
|
14 |
+
'slider_content_head'
|
15 |
+
,array(
|
16 |
+
'capability' => 'edit_theme_options',
|
17 |
+
'sanitize_callback' => 'avril_sanitize_text',
|
18 |
+
'priority' => 4,
|
19 |
+
)
|
20 |
+
);
|
21 |
+
|
22 |
+
$wp_customize->add_control(
|
23 |
+
'slider_content_head',
|
24 |
+
array(
|
25 |
+
'type' => 'hidden',
|
26 |
+
'label' => __('Contents','avril'),
|
27 |
+
'section' => 'slider_setting',
|
28 |
+
)
|
29 |
+
);
|
30 |
+
|
31 |
+
/**
|
32 |
+
* Customizer Repeater for add slides
|
33 |
+
*/
|
34 |
+
|
35 |
+
$wp_customize->add_setting( 'slider',
|
36 |
+
array(
|
37 |
+
'sanitize_callback' => 'avril_repeater_sanitize',
|
38 |
+
'priority' => 5,
|
39 |
+
'default' => avril_get_slider_default()
|
40 |
+
)
|
41 |
+
);
|
42 |
+
|
43 |
+
$wp_customize->add_control(
|
44 |
+
new Avril_Repeater( $wp_customize,
|
45 |
+
'slider',
|
46 |
+
array(
|
47 |
+
'label' => esc_html__('Slide','avril'),
|
48 |
+
'section' => 'slider_setting',
|
49 |
+
'add_field_label' => esc_html__( 'Add New Slider', 'avril' ),
|
50 |
+
'item_name' => esc_html__( 'Slider', 'avril' ),
|
51 |
+
|
52 |
+
|
53 |
+
'customizer_repeater_icon_control' => false,
|
54 |
+
'customizer_repeater_title_control' => true,
|
55 |
+
'customizer_repeater_subtitle_control' => true,
|
56 |
+
'customizer_repeater_text_control' => true,
|
57 |
+
'customizer_repeater_text2_control'=> true,
|
58 |
+
'customizer_repeater_link_control' => true,
|
59 |
+
'customizer_repeater_slide_align' => true,
|
60 |
+
'customizer_repeater_checkbox_control' => true,
|
61 |
+
'customizer_repeater_image_control' => true,
|
62 |
+
'customizer_repeater_image2_control' => true,
|
63 |
+
)
|
64 |
+
)
|
65 |
+
);
|
66 |
+
|
67 |
+
//Pro feature
|
68 |
+
class Avril_slider__section_upgrade extends WP_Customize_Control {
|
69 |
+
public function render_content() {
|
70 |
+
?>
|
71 |
+
<a class="customizer_slider_upgrade_section up-to-pro" href="https://www.nayrathemes.com/avril-pro/" target="_blank" style="display: none;"><?php _e('Upgrade to Pro','avril'); ?></a>
|
72 |
+
<?php
|
73 |
+
}
|
74 |
+
}
|
75 |
+
|
76 |
+
$wp_customize->add_setting( 'avril_slider_upgrade_to_pro', array(
|
77 |
+
'capability' => 'edit_theme_options',
|
78 |
+
'sanitize_callback' => 'wp_filter_nohtml_kses',
|
79 |
+
'priority' => 5,
|
80 |
+
));
|
81 |
+
$wp_customize->add_control(
|
82 |
+
new Avril_slider__section_upgrade(
|
83 |
+
$wp_customize,
|
84 |
+
'avril_slider_upgrade_to_pro',
|
85 |
+
array(
|
86 |
+
'section' => 'slider_setting',
|
87 |
+
'settings' => 'avril_slider_upgrade_to_pro',
|
88 |
+
)
|
89 |
+
)
|
90 |
+
);
|
91 |
+
|
92 |
+
// slider opacity
|
93 |
+
if ( class_exists( 'Cleverfox_Customizer_Range_Slider_Control' ) ) {
|
94 |
+
$wp_customize->add_setting(
|
95 |
+
'slider_opacity',
|
96 |
+
array(
|
97 |
+
'default' => '0.5',
|
98 |
+
'capability' => 'edit_theme_options',
|
99 |
+
//'sanitize_callback' => 'avril_sanitize_range_value',
|
100 |
+
'priority' => 7,
|
101 |
+
)
|
102 |
+
);
|
103 |
+
$wp_customize->add_control(
|
104 |
+
new Cleverfox_Customizer_Range_Slider_Control( $wp_customize, 'slider_opacity',
|
105 |
+
array(
|
106 |
+
'label' => __( 'opacity', 'avril' ),
|
107 |
+
'section' => 'slider_setting',
|
108 |
+
'input_attrs' => array(
|
109 |
+
'min' => 0,
|
110 |
+
'max' => 0.9,
|
111 |
+
'step' => 0.1,
|
112 |
+
//'suffix' => 'px', //optional suffix
|
113 |
+
),
|
114 |
+
) )
|
115 |
+
);
|
116 |
+
}
|
117 |
+
|
118 |
+
}
|
119 |
+
|
120 |
+
add_action( 'customize_register', 'avril_slider_setting' );
|
inc/aera/images/logo-2.png
ADDED
Binary file
|
inc/aera/images/logo.png
ADDED
Binary file
|
inc/aera/sections/section-info.php
ADDED
@@ -0,0 +1,95 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
if ( ! function_exists( 'avril_lite_info' ) ) :
|
3 |
+
function avril_lite_info() {
|
4 |
+
$hs_info = get_theme_mod('hs_info','1');
|
5 |
+
$info_first_icon_setting= get_theme_mod('info_first_icon_setting','fa-clock-o');
|
6 |
+
$info_title = get_theme_mod('info_title','Opening Hours');
|
7 |
+
$info_description = get_theme_mod('info_description','Monday-Friday: 09:00-22:00');
|
8 |
+
$info_link = get_theme_mod('info_link','#');
|
9 |
+
|
10 |
+
$info_second_icon_setting= get_theme_mod('info_second_icon_setting','fa-home');
|
11 |
+
$info_title2 = get_theme_mod('info_title2','Our Location');
|
12 |
+
$info_description2 = get_theme_mod('info_description2','California Floor, USA 1208');
|
13 |
+
$info_link2 = get_theme_mod('info_link2','#');
|
14 |
+
|
15 |
+
$info_third_icon_setting= get_theme_mod('info_third_icon_setting','fa-calendar');
|
16 |
+
$info_title3 = get_theme_mod('info_title3','Booking Now');
|
17 |
+
$info_description3 = get_theme_mod('info_description3','+00-245-152-5500');
|
18 |
+
$info_link3 = get_theme_mod('info_link3','#');
|
19 |
+
if($hs_info == '1') {
|
20 |
+
?>
|
21 |
+
<div id="info-section" class="info-section">
|
22 |
+
<div class="av-container">
|
23 |
+
<div class="av-columns-area">
|
24 |
+
<div class="av-column-12">
|
25 |
+
<div class="info-area">
|
26 |
+
<div class="svg-clip-art">
|
27 |
+
<svg xmlns="http://www.w3.org/2000/svg" width="100%" viewBox="0 0 100 100" version="1.1" preserveAspectRatio="none"><path stroke-width="0" d="M0 0 C50 100 50 100 100 0 L100 100 0 100"></path></svg>
|
28 |
+
</div>
|
29 |
+
<ul class="info-wrapper wow fadeInUp">
|
30 |
+
<li class="info-first">
|
31 |
+
<aside class="widget widget-contact">
|
32 |
+
<div class="contact-area">
|
33 |
+
<div class="contact-icon">
|
34 |
+
<i class="fa <?php echo esc_attr( $info_first_icon_setting ); ?>"></i>
|
35 |
+
</div>
|
36 |
+
<a href="<?php echo esc_url( $info_link ); ?>" class="contact-info">
|
37 |
+
<span class="text"><?php echo esc_html($info_title); ?></span>
|
38 |
+
<span class="title"><?php echo esc_html( $info_description ); ?></span>
|
39 |
+
</a>
|
40 |
+
<?php if ( ! empty( $info_link ) ) : ?>
|
41 |
+
<div class="contact-more">
|
42 |
+
<a class="btn-arrow" href="<?php echo esc_url( $info_link ); ?>">Read More</a>
|
43 |
+
</div>
|
44 |
+
<?php endif; ?>
|
45 |
+
</div>
|
46 |
+
</aside>
|
47 |
+
</li>
|
48 |
+
<li class="info-second">
|
49 |
+
<aside class="widget widget-contact">
|
50 |
+
<div class="contact-area">
|
51 |
+
<div class="contact-icon">
|
52 |
+
<i class="fa <?php echo esc_attr( $info_second_icon_setting ); ?>"></i>
|
53 |
+
</div>
|
54 |
+
<a href="<?php echo esc_url( $info_link2 ); ?>" class="contact-info">
|
55 |
+
<span class="text"><?php echo esc_html($info_title2); ?></span>
|
56 |
+
<span class="title"><?php echo esc_html($info_description2); ?></span>
|
57 |
+
</a>
|
58 |
+
<?php if ( ! empty( $info_link2 ) ) : ?>
|
59 |
+
<div class="contact-more">
|
60 |
+
<a class="btn-arrow" href="<?php echo esc_url( $info_link2 ); ?>">Read More</a>
|
61 |
+
</div>
|
62 |
+
<?php endif; ?>
|
63 |
+
</div>
|
64 |
+
</aside>
|
65 |
+
</li>
|
66 |
+
<li class="info-third">
|
67 |
+
<aside class="widget widget-contact">
|
68 |
+
<div class="contact-area">
|
69 |
+
<div class="contact-icon">
|
70 |
+
<i class="fa <?php echo esc_attr( $info_third_icon_setting ); ?>"></i>
|
71 |
+
</div>
|
72 |
+
<a href="<?php echo esc_url( $info_link3 ); ?>" class="contact-info">
|
73 |
+
<span class="text"><?php echo esc_html($info_title3); ?></span>
|
74 |
+
<span class="title"><?php echo esc_html($info_description3); ?></span>
|
75 |
+
</a>
|
76 |
+
<?php if ( ! empty( $info_link3 ) ) : ?>
|
77 |
+
<div class="contact-more">
|
78 |
+
<a class="btn-arrow" href="<?php echo esc_url( $info_link3 ); ?>">Read More</a>
|
79 |
+
</div>
|
80 |
+
<?php endif; ?>
|
81 |
+
</div>
|
82 |
+
</aside>
|
83 |
+
</li>
|
84 |
+
</ul>
|
85 |
+
</div>
|
86 |
+
</div>
|
87 |
+
</div>
|
88 |
+
</div>
|
89 |
+
</div>
|
90 |
+
<?php
|
91 |
+
}} endif;
|
92 |
+
if ( function_exists( 'avril_lite_info' ) ) {
|
93 |
+
$section_priority = apply_filters( 'avril_section_priority', 12, 'avril_lite_info' );
|
94 |
+
add_action( 'avril_sections', 'avril_lite_info', absint( $section_priority ) );
|
95 |
+
}
|
inc/aera/sections/section-slider.php
ADDED
@@ -0,0 +1,88 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!--===// Start: Slider
|
2 |
+
=================================-->
|
3 |
+
<?php
|
4 |
+
if ( ! function_exists( 'avril_lite_slider' ) ) :
|
5 |
+
function avril_lite_slider() {
|
6 |
+
$slider = get_theme_mod('slider',avril_get_slider_default());
|
7 |
+
?>
|
8 |
+
<style type="text/css">
|
9 |
+
.theme-slider:after {
|
10 |
+
background: #d61523;
|
11 |
+
}
|
12 |
+
</style>
|
13 |
+
<section id="slider-section" class="slider-wrapper">
|
14 |
+
<div class="main-slider owl-carousel owl-theme">
|
15 |
+
<?php
|
16 |
+
if ( ! empty( $slider ) ) {
|
17 |
+
$slider = json_decode( $slider );
|
18 |
+
foreach ( $slider as $slide_item ) {
|
19 |
+
$avril_slide_title = ! empty( $slide_item->title ) ? apply_filters( 'avril_translate_single_string', $slide_item->title, 'slider section' ) : '';
|
20 |
+
$subtitle = ! empty( $slide_item->subtitle ) ? apply_filters( 'avril_translate_single_string', $slide_item->subtitle, 'slider section' ) : '';
|
21 |
+
$text = ! empty( $slide_item->text ) ? apply_filters( 'avril_translate_single_string', $slide_item->text, 'slider section' ) : '';
|
22 |
+
$button = ! empty( $slide_item->text2) ? apply_filters( 'avril_translate_single_string', $slide_item->text2,'slider section' ) : '';
|
23 |
+
$link = ! empty( $slide_item->link ) ? apply_filters( 'avril_translate_single_string', $slide_item->link, 'slider section' ) : '';
|
24 |
+
$image = ! empty( $slide_item->image_url ) ? apply_filters( 'avril_translate_single_string', $slide_item->image_url, 'slider section' ) : '';
|
25 |
+
$image2 = ! empty( $slide_item->image_url2 ) ? apply_filters( 'avril_translate_single_string', $slide_item->image_url2, 'slider section' ) : '';
|
26 |
+
$open_new_tab = ! empty( $slide_item->open_new_tab ) ? apply_filters( 'avril_translate_single_string', $slide_item->open_new_tab, 'slider section' ) : '';
|
27 |
+
//$align = $slide_item->slide_align;
|
28 |
+
$align = ! empty( $slide_item->slide_align ) ? apply_filters( 'avril_translate_single_string', $slide_item->slide_align, 'slider section' ) : '';
|
29 |
+
?>
|
30 |
+
<?php if ( ! empty( $image ) ) : ?>
|
31 |
+
<div class="item" style="background-image:url('<?php echo esc_url( $image ); ?>')">
|
32 |
+
<?php else : ?>
|
33 |
+
<div class="item">
|
34 |
+
<?php endif; ?>
|
35 |
+
<div class="theme-slider">
|
36 |
+
<div class="theme-table">
|
37 |
+
<div class="theme-table-cell">
|
38 |
+
<div class="av-container">
|
39 |
+
<div class="av-columns-area theme-content text-<?php echo esc_attr($align); ?>">
|
40 |
+
<?php if ( ! empty( $image2 ) ) { ?>
|
41 |
+
<div class="av-column-7 my-auto">
|
42 |
+
<?php } else { ?>
|
43 |
+
<div class="av-column-12">
|
44 |
+
<?php } ?>
|
45 |
+
<?php if ( ! empty( $avril_slide_title ) ) : ?>
|
46 |
+
<h3 data-animation="fadeInUp" data-delay="150ms"><?php echo esc_html( $avril_slide_title ); ?></h3>
|
47 |
+
<?php endif; ?>
|
48 |
+
|
49 |
+
<?php if ( ! empty( $subtitle ) ) : ?>
|
50 |
+
<h1 data-animation="fadeInUp" data-delay="200ms"><span><?php echo esc_html( $subtitle ); ?></span></h1>
|
51 |
+
<?php endif; ?>
|
52 |
+
|
53 |
+
<?php if ( ! empty( $text ) ) : ?>
|
54 |
+
<p data-animation="fadeInUp" data-delay="500ms"><?php echo esc_html( $text ); ?></p>
|
55 |
+
<?php endif; ?>
|
56 |
+
<?php if ( ! empty( $button ) ) : ?>
|
57 |
+
<a data-animation="fadeInUp" data-delay="800ms" href="<?php echo esc_url( $link ); ?>" <?php if($open_new_tab== 'yes' || $open_new_tab== '1') { echo "target='_blank'"; } ?> class="av-btn av-btn-primary"><?php echo esc_html( $button ); ?></a>
|
58 |
+
<?php endif; ?>
|
59 |
+
</div>
|
60 |
+
<?php if ( ! empty( $image2 ) ) : ?>
|
61 |
+
<div class="av-column-5 mb-av-0 mx-auto my-auto">
|
62 |
+
<div class="aera-img">
|
63 |
+
<img src="<?php echo esc_url( $image2 ); ?>" data-img-url="<?php echo esc_url( $image2 ); ?>" <?php if ( ! empty( $avril_slide_title ) ) : ?> alt="<?php echo esc_attr( $avril_slide_title ); ?>" title="<?php echo esc_attr( $avril_slide_title ); ?>" <?php endif; ?> />
|
64 |
+
</div>
|
65 |
+
</div>
|
66 |
+
<?php endif; ?>
|
67 |
+
</div>
|
68 |
+
</div>
|
69 |
+
</div>
|
70 |
+
</div>
|
71 |
+
</div>
|
72 |
+
</div>
|
73 |
+
<?php } } ?>
|
74 |
+
</div>
|
75 |
+
<div class="svg-clip-art">
|
76 |
+
<svg xmlns="http://www.w3.org/2000/svg" width="100%" viewBox="0 0 100 100" version="1.1" preserveAspectRatio="none"><path stroke-width="0" d="M0 0 C50 100 50 100 100 0 L100 100 0 100"></path></svg>
|
77 |
+
</div>
|
78 |
+
</section>
|
79 |
+
<?php
|
80 |
+
}
|
81 |
+
endif;
|
82 |
+
if ( function_exists( 'avril_lite_slider' ) ) {
|
83 |
+
$section_priority = apply_filters( 'avril_section_priority', 11, 'avril_lite_slider' );
|
84 |
+
add_action( 'avril_sections', 'avril_lite_slider', absint( $section_priority ) );
|
85 |
+
}
|
86 |
+
?>
|
87 |
+
<!-- End: Slider
|
88 |
+
=================================-->
|
inc/assets/js/owl.carousel.min.js
CHANGED
@@ -39,10 +39,11 @@ jQuery(function($) {
|
|
39 |
loop: true,
|
40 |
dots: false,
|
41 |
navText: ['<i class="fa fa-arrow-left"></i>', '<i class="fa fa-arrow-right"></i>'],
|
|
|
42 |
autoplay: true,
|
43 |
autoplayTimeout: 9000,
|
44 |
-
animateIn: 'pulse',
|
45 |
-
|
46 |
smartSpeed: 1000,
|
47 |
responsive: {
|
48 |
0: {
|
39 |
loop: true,
|
40 |
dots: false,
|
41 |
navText: ['<i class="fa fa-arrow-left"></i>', '<i class="fa fa-arrow-right"></i>'],
|
42 |
+
autoHeight: $("body").hasClass("aera-theme") ? true : false,
|
43 |
autoplay: true,
|
44 |
autoplayTimeout: 9000,
|
45 |
+
animateIn: $("body").hasClass("aera-theme") ? false : 'pulse',
|
46 |
+
animateOut: $("body").hasClass("aera-theme") ? false : 'fadeOut',
|
47 |
smartSpeed: 1000,
|
48 |
responsive: {
|
49 |
0: {
|
inc/avril/features/avril-info.php
CHANGED
@@ -347,6 +347,7 @@ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' :
|
|
347 |
$wp_customize->add_control(
|
348 |
'info_description3',
|
349 |
array(
|
|
|
350 |
'section' => 'info_setting',
|
351 |
'settings'=> 'info_description3',
|
352 |
'type' => 'text',
|
347 |
$wp_customize->add_control(
|
348 |
'info_description3',
|
349 |
array(
|
350 |
+
'label' => __('Description','avril'),
|
351 |
'section' => 'info_setting',
|
352 |
'settings'=> 'info_description3',
|
353 |
'type' => 'text',
|
inc/avril/sections/section-slider.php
CHANGED
@@ -21,10 +21,11 @@ if ( ! function_exists( 'avril_lite_slider' ) ) :
|
|
21 |
//$align = $slide_item->slide_align;
|
22 |
$align = ! empty( $slide_item->slide_align ) ? apply_filters( 'avril_translate_single_string', $slide_item->slide_align, 'slider section' ) : '';
|
23 |
?>
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
|
|
28 |
<div class="theme-slider">
|
29 |
<div class="theme-table">
|
30 |
<div class="theme-table-cell">
|
21 |
//$align = $slide_item->slide_align;
|
22 |
$align = ! empty( $slide_item->slide_align ) ? apply_filters( 'avril_translate_single_string', $slide_item->slide_align, 'slider section' ) : '';
|
23 |
?>
|
24 |
+
<?php if ( ! empty( $image ) ) : ?>
|
25 |
+
<div class="item" style="background-image:url('<?php echo esc_url( $image ); ?>')">
|
26 |
+
<?php else : ?>
|
27 |
+
<div class="item">
|
28 |
+
<?php endif; ?>
|
29 |
<div class="theme-slider">
|
30 |
<div class="theme-table">
|
31 |
<div class="theme-table-cell">
|
inc/cleverfox-activator.php
CHANGED
@@ -69,6 +69,12 @@ class Cleverfox_Activator {
|
|
69 |
require CLEVERFOX_PLUGIN_DIR . 'inc/avril/default-widgets/default-widget.php';
|
70 |
}
|
71 |
|
|
|
|
|
|
|
|
|
|
|
|
|
72 |
update_option( 'item_details_page', 'Done' );
|
73 |
}
|
74 |
}
|
69 |
require CLEVERFOX_PLUGIN_DIR . 'inc/avril/default-widgets/default-widget.php';
|
70 |
}
|
71 |
|
72 |
+
if ( 'Aera' == $theme->name){
|
73 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/aera/default-pages/upload-media.php';
|
74 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/aera/default-pages/home-page.php';
|
75 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/aera/default-widgets/default-widget.php';
|
76 |
+
}
|
77 |
+
|
78 |
update_option( 'item_details_page', 'Done' );
|
79 |
}
|
80 |
}
|
readme.txt
CHANGED
@@ -43,6 +43,9 @@ Clever Fox WordPress plugin is licensed under the GPL3 (https://www.gnu.org/lice
|
|
43 |
|
44 |
== Changelog ==
|
45 |
|
|
|
|
|
|
|
46 |
= 2.2 =
|
47 |
* Azwa Slider Images Changed
|
48 |
|
43 |
|
44 |
== Changelog ==
|
45 |
|
46 |
+
= 2.3 =
|
47 |
+
* Aera Theme Functionality Added
|
48 |
+
|
49 |
= 2.2 =
|
50 |
* Azwa Slider Images Changed
|
51 |
|