Clever Fox - Version 1.8

Version Description

  • Azwa Theme Functionality Added
  • Avril Upsale Links Added
Download this release

Release Info

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

Code changes from version 1.7 to 1.8

Files changed (39) hide show
  1. clever-fox.php +5 -1
  2. inc/ameya/images/footer-logo.png +0 -0
  3. inc/ameya/images/logo.png +0 -0
  4. inc/assets/js/owlCarousel2Thumbs.min.js +84 -4
  5. inc/avril/features/avril-features.php +2 -1
  6. inc/avril/features/avril-header.php +1 -1
  7. inc/avril/features/avril-service.php +1 -1
  8. inc/avril/features/avril-slider.php +1 -1
  9. inc/avril/sections/above-header.php +1 -2
  10. inc/azwa/azwa.php +37 -0
  11. inc/azwa/default-pages/home-page.php +24 -0
  12. inc/azwa/default-pages/upload-media.php +34 -0
  13. inc/azwa/default-widgets/default-widget.php +47 -0
  14. inc/azwa/images/footer-logo.png +0 -0
  15. inc/azwa/images/logo.png +0 -0
  16. inc/azwa/images/shape/shape1.png +0 -0
  17. inc/azwa/images/shape/shape10.png +0 -0
  18. inc/azwa/images/shape/shape11.png +0 -0
  19. inc/azwa/images/shape/shape12.png +0 -0
  20. inc/azwa/images/shape/shape13.png +0 -0
  21. inc/azwa/images/shape/shape14.png +0 -0
  22. inc/azwa/images/shape/shape15.png +0 -0
  23. inc/azwa/images/shape/shape16.png +0 -0
  24. inc/azwa/images/shape/shape17.png +0 -0
  25. inc/azwa/images/shape/shape18.png +0 -0
  26. inc/azwa/images/shape/shape19.svg +1 -0
  27. inc/azwa/images/shape/shape2.png +0 -0
  28. inc/azwa/images/shape/shape3.png +0 -0
  29. inc/azwa/images/shape/shape4.png +0 -0
  30. inc/azwa/images/shape/shape5.png +0 -0
  31. inc/azwa/images/shape/shape6.png +0 -0
  32. inc/azwa/images/shape/shape7.png +0 -0
  33. inc/azwa/images/shape/shape8.png +0 -0
  34. inc/azwa/images/shape/shape9.png +0 -0
  35. inc/azwa/sections/above-header.php +77 -0
  36. inc/azwa/sections/section-service.php +109 -0
  37. inc/azwa/sections/section-slider.php +65 -0
  38. inc/cleverfox-activator.php +6 -0
  39. readme.txt +5 -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: 1.7
7
  Author: nayrathemes
8
  Author URI: https://nayrathemes.com
9
  Text Domain: clever-fox
@@ -53,6 +53,10 @@ function cleverfox_activate() {
53
  require_once('inc/ameya/ameya.php');
54
  }
55
 
 
 
 
 
56
  if( 'Avril' == $theme->name){
57
  require_once('inc/avril/avril.php');
58
  }
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: 1.8
7
  Author: nayrathemes
8
  Author URI: https://nayrathemes.com
9
  Text Domain: clever-fox
53
  require_once('inc/ameya/ameya.php');
54
  }
55
 
56
+ if( 'Azwa' == $theme->name){
57
+ require_once('inc/azwa/azwa.php');
58
+ }
59
+
60
  if( 'Avril' == $theme->name){
61
  require_once('inc/avril/avril.php');
62
  }
inc/ameya/images/footer-logo.png CHANGED
Binary file
inc/ameya/images/logo.png CHANGED
Binary file
inc/assets/js/owlCarousel2Thumbs.min.js CHANGED
@@ -10,15 +10,27 @@ jQuery(function($) {
10
  items: 1,
11
  loop: true,
12
  dots: false,
13
- nav: false,
 
14
  autoplay: true,
15
  autoplayTimeout: 60000,
16
  animateIn: 'pulse',
17
  animateOut: 'fadeOut',
18
- thumbs: true,
19
- thumbImage: true,
20
  thumbContainerClass: 'owl-thumbs',
21
- thumbItemClass: 'owl-thumb-item'
 
 
 
 
 
 
 
 
 
 
 
22
  });
23
 
24
  // Header Slide items with animate.css
@@ -36,5 +48,73 @@ jQuery(function($) {
36
  $('.header-single-slider .boxed-btn').addClass('animated fadeInDown').show();
37
  });
38
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
39
  });
40
 
10
  items: 1,
11
  loop: true,
12
  dots: false,
13
+ navText: ['<i class="fa fa-chevron-left"></i>', '<i class="fa fa-chevron-right"></i>'],
14
+ autoHeight: $("body").hasClass("azwa-template") ? true : false,
15
  autoplay: true,
16
  autoplayTimeout: 60000,
17
  animateIn: 'pulse',
18
  animateOut: 'fadeOut',
19
+ thumbs: $("body").hasClass("azwa-template") ? false : true,
20
+ thumbImage: $("body").hasClass("azwa-template") ? false : true,
21
  thumbContainerClass: 'owl-thumbs',
22
+ thumbItemClass: 'owl-thumb-item',
23
+ responsive: {
24
+ 0: {
25
+ nav: false,
26
+ },
27
+ 768: {
28
+ nav: $("body").hasClass("azwa-template") ? true : false,
29
+ },
30
+ 992: {
31
+ nav: $("body").hasClass("azwa-template") ? true : false,
32
+ }
33
+ }
34
  });
35
 
36
  // Header Slide items with animate.css
48
  $('.header-single-slider .boxed-btn').addClass('animated fadeInDown').show();
49
  });
50
  });
51
+ // Animated Typing Text
52
+ var typingText = function (el, toRotate, period) {
53
+ this.toRotate = toRotate;
54
+ this.el = el;
55
+ this.loopNum = 0;
56
+ this.period = parseInt(period, 10) || 2000;
57
+ this.txt = "";
58
+ this.tick();
59
+ this.isDeleting = false;
60
+ };
61
+
62
+ typingText.prototype.tick = function () {
63
+ var i = this.loopNum % this.toRotate.length;
64
+ var fullTxt = this.toRotate[i];
65
+
66
+ if (this.isDeleting) {
67
+ this.txt = fullTxt.substring(0, this.txt.length - 1);
68
+ } else {
69
+ this.txt = fullTxt.substring(0, this.txt.length + 1);
70
+ }
71
+
72
+ this.el.innerHTML = '<span class="wrap">' + this.txt + "</span>";
73
+
74
+ var that = this;
75
+ var delta = 200 - Math.random() * 100;
76
+
77
+ if (this.isDeleting) {
78
+ delta /= 2;
79
+ }
80
+
81
+ if (!this.isDeleting && this.txt === fullTxt) {
82
+ delta = this.period;
83
+ this.isDeleting = true;
84
+ } else if (this.isDeleting && this.txt === "") {
85
+ this.isDeleting = false;
86
+ this.loopNum++;
87
+ delta = 500;
88
+ }
89
+
90
+ setTimeout(function () {
91
+ that.tick();
92
+ }, delta);
93
+ };
94
+
95
+ window.onload = function () {
96
+ var elements = document.getElementsByClassName("typewrite");
97
+ for (var i = 0; i < elements.length; i++) {
98
+ var toRotate = elements[i].getAttribute("data-type");
99
+ var period = elements[i].getAttribute("data-period");
100
+ if (toRotate) {
101
+ new typingText(elements[i], JSON.parse(toRotate), period);
102
+ }
103
+ }
104
+ // INJECT CSS
105
+ var css = document.createElement("style");
106
+ css.type = "text/css";
107
+ css.innerHTML = $("body").hasClass("azwa-template") ? ".typewrite > .wrap { border-right: 0.08em solid #111111}" : ".typewrite > .wrap { border-right: 0.08em solid #ffffff}";
108
+ document.body.appendChild(css);
109
+ };
110
+ // Info Active/Hover
111
+ if ($("body").hasClass("azwa-template")) {
112
+ $('.single-contact').each(function(){
113
+ $(this).hover(function(){
114
+ $(this).parents('.contact-wrapper').find('.single-contact').removeClass('active');
115
+ $(this).addClass('active');
116
+ });
117
+ });
118
+ }
119
  });
120
 
inc/avril/features/avril-features.php CHANGED
@@ -184,7 +184,8 @@ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' :
184
  class Avril_feature__section_upgrade extends WP_Customize_Control {
185
  public function render_content() {
186
  ?>
187
- <span class="customizer_feature_upgrade_section up-to-pro" style="display: none;"><?php _e('More Features are Available in Premium Version','conceptly'); ?></span>
 
188
  <?php
189
  }
190
  }
184
  class Avril_feature__section_upgrade extends WP_Customize_Control {
185
  public function render_content() {
186
  ?>
187
+ <a class="customizer_feature_upgrade_section up-to-pro" href="https://www.nayrathemes.com/avril-pro/" target="_blank"
188
+ style="display: none;"><?php _e('Upgrade to Pro','conceptly'); ?></a>
189
  <?php
190
  }
191
  }
inc/avril/features/avril-header.php CHANGED
@@ -105,7 +105,7 @@ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' :
105
  class Avril_social__section_upgrade extends WP_Customize_Control {
106
  public function render_content() {
107
  ?>
108
- <span class="customizer_social_upgrade_section up-to-pro" style="display: none;"><?php _e('More Icons are Available in Premium Version','conceptly'); ?></span>
109
  <?php
110
  }
111
  }
105
  class Avril_social__section_upgrade extends WP_Customize_Control {
106
  public function render_content() {
107
  ?>
108
+ <a class="customizer_social_upgrade_section up-to-pro" href="https://www.nayrathemes.com/avril-pro/" target="_blank" style="display: none;"><?php _e('Upgrade to Pro','conceptly'); ?></a>
109
  <?php
110
  }
111
  }
inc/avril/features/avril-service.php CHANGED
@@ -184,7 +184,7 @@ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' :
184
  class Avril_service__section_upgrade extends WP_Customize_Control {
185
  public function render_content() {
186
  ?>
187
- <span class="customizer_service_upgrade_section up-to-pro" style="display: none;"><?php _e('More Services are Available in Premium Version','avril'); ?></a>
188
  <?php
189
  }
190
  }
184
  class Avril_service__section_upgrade extends WP_Customize_Control {
185
  public function render_content() {
186
  ?>
187
+ <a class="customizer_service_upgrade_section up-to-pro" href="https://www.nayrathemes.com/avril-pro/" target="_blank" style="display: none;"><?php _e('Upgrade to Pro','avril'); ?></a>
188
  <?php
189
  }
190
  }
inc/avril/features/avril-slider.php CHANGED
@@ -67,7 +67,7 @@ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' :
67
  class Avril_slider__section_upgrade extends WP_Customize_Control {
68
  public function render_content() {
69
  ?>
70
- <span class="customizer_slider_upgrade_section up-to-pro" style="display: none;"><?php _e('More Slides are Available in Premium Version','avril'); ?></span>
71
  <?php
72
  }
73
  }
67
  class Avril_slider__section_upgrade extends WP_Customize_Control {
68
  public function render_content() {
69
  ?>
70
+ <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>
71
  <?php
72
  }
73
  }
inc/avril/sections/above-header.php CHANGED
@@ -6,7 +6,6 @@
6
  $hide_show_social_icon = get_theme_mod( 'hide_show_social_icon','1');
7
  $social_icons = get_theme_mod( 'social_icons',avril_get_social_icon_default());
8
  ?>
9
- <header id="header-section" class="header header-one">
10
  <!--===// Start: Header Above
11
  =================================-->
12
  <div id="above-header" class="header-above-info d-av-block d-none wow fadeInDown">
@@ -65,7 +64,7 @@
65
  <div class="contact-icon">
66
  <i class="fa <?php echo esc_attr($tlh_email_icon); ?>"></i>
67
  </div>
68
- <a href="mailto:email@email.com" class="contact-info">
69
  <span class="text"><?php echo esc_html($tlh_email_title); ?></span>
70
  <span class="title"><?php echo esc_html($tlh_email_sbtitle); ?></span>
71
  </a>
6
  $hide_show_social_icon = get_theme_mod( 'hide_show_social_icon','1');
7
  $social_icons = get_theme_mod( 'social_icons',avril_get_social_icon_default());
8
  ?>
 
9
  <!--===// Start: Header Above
10
  =================================-->
11
  <div id="above-header" class="header-above-info d-av-block d-none wow fadeInDown">
64
  <div class="contact-icon">
65
  <i class="fa <?php echo esc_attr($tlh_email_icon); ?>"></i>
66
  </div>
67
+ <a href="mailto:<?php echo esc_html($tlh_email_sbtitle); ?>" class="contact-info">
68
  <span class="text"><?php echo esc_html($tlh_email_title); ?></span>
69
  <span class="title"><?php echo esc_html($tlh_email_sbtitle); ?></span>
70
  </a>
inc/azwa/azwa.php ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * @package Conceptly
4
+ */
5
+
6
+ require CLEVERFOX_PLUGIN_DIR . 'inc/conceptly/extras.php';
7
+ require CLEVERFOX_PLUGIN_DIR . 'inc/conceptly/dynamic-style.php';
8
+ require CLEVERFOX_PLUGIN_DIR . 'inc/azwa/sections/above-header.php';
9
+ require CLEVERFOX_PLUGIN_DIR . 'inc/conceptly/features/conceptly-header.php';
10
+ require CLEVERFOX_PLUGIN_DIR . 'inc/conceptly/features/conceptly-call-to-action.php';
11
+ require CLEVERFOX_PLUGIN_DIR . 'inc/conceptly/features/conceptly-features.php';
12
+ require CLEVERFOX_PLUGIN_DIR . 'inc/conceptly/features/conceptly-info.php';
13
+ require CLEVERFOX_PLUGIN_DIR . 'inc/conceptly/features/conceptly-service.php';
14
+ require CLEVERFOX_PLUGIN_DIR . 'inc/conceptly/features/conceptly-slider.php';
15
+ require CLEVERFOX_PLUGIN_DIR . 'inc/conceptly/features/conceptly-sponsers.php';
16
+ require CLEVERFOX_PLUGIN_DIR . 'inc/conceptly/features/conceptly-typography.php';
17
+ require CLEVERFOX_PLUGIN_DIR . 'inc/conceptly/features/conceptly-navigation.php';
18
+
19
+ if ( ! function_exists( 'cleverfox_conceptly_frontpage_sections' ) ) :
20
+ function cleverfox_conceptly_frontpage_sections() {
21
+ require CLEVERFOX_PLUGIN_DIR . 'inc/azwa/sections/section-slider.php';
22
+ require CLEVERFOX_PLUGIN_DIR . 'inc/conceptly/sections/section-flash.php';
23
+ require CLEVERFOX_PLUGIN_DIR . 'inc/azwa/sections/section-service.php';
24
+ require CLEVERFOX_PLUGIN_DIR . 'inc/conceptly/sections/section-features.php';
25
+ require CLEVERFOX_PLUGIN_DIR . 'inc/conceptly/sections/section-cta.php';
26
+ require CLEVERFOX_PLUGIN_DIR . 'inc/conceptly/sections/section-sponser.php';
27
+ }
28
+ add_action( 'conceptly_sections', 'cleverfox_conceptly_frontpage_sections' );
29
+ endif;
30
+
31
+ function cleverfox_conceptly_enqueue_scripts() {
32
+ wp_enqueue_style('animate',CLEVERFOX_PLUGIN_URL .'/inc/assets/css/animate.css');
33
+ wp_enqueue_style('owl-carousel-min',CLEVERFOX_PLUGIN_URL .'/inc/assets/css/owl.carousel.min.css');
34
+ wp_enqueue_script( 'owl-carousel', CLEVERFOX_PLUGIN_URL . 'inc/assets/js/owl.carousel.min.js', array('jquery'), false, true);
35
+ wp_enqueue_script('owlCarousel2Thumbs', CLEVERFOX_PLUGIN_URL . 'inc/assets/js/owlCarousel2Thumbs.min.js', array('jquery'), false, true);
36
+ }
37
+ add_action( 'wp_enqueue_scripts', 'cleverfox_conceptly_enqueue_scripts' );
inc/azwa/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/azwa/default-pages/upload-media.php ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $file = CLEVERFOX_PLUGIN_URL .'inc/ameya/images/logo.png';
3
+ $ImagePath = CLEVERFOX_PLUGIN_URL .'inc/ameya/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' => 'hantus 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( 'conceptly_media_id', $ImageId );
33
+
34
+ ?>
inc/azwa/default-widgets/default-widget.php ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $activate = array(
3
+ 'conceptly-sidebar-primary' => array(
4
+ 'search-1',
5
+ 'recent-posts-1',
6
+ 'archives-1',
7
+ ),
8
+ 'conceptly-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/ameya/images/footer-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
+ <ul class="widget-social">
21
+ <li><a href="#"><i class="fa fa-facebook"></i></a></li>
22
+ <li><a href="#"><i class="fa fa-twitter"></i></a></li>
23
+ <li><a href="#"><i class="fa fa-linkedin"></i></a></li>
24
+ <li><a href="#"><i class="fa fa-google-plus"></i></a></li>
25
+ <li><a href="#"><i class="fa fa-pinterest"></i></a></li>
26
+ <li><a href="#"><i class="fa fa-instagram"></i></a></li>
27
+ </ul>
28
+ '),
29
+ 2 => array('title' => 'Recent Posts'),
30
+ 3 => array('title' => 'Categories'),
31
+ ));
32
+ update_option('widget_categories', array(
33
+ 1 => array('title' => 'Categories'),
34
+ 2 => array('title' => 'Categories')));
35
+
36
+ update_option('widget_archives', array(
37
+ 1 => array('title' => 'Archives'),
38
+ 2 => array('title' => 'Archives')));
39
+
40
+ update_option('widget_search', array(
41
+ 1 => array('title' => 'Search'),
42
+ 2 => array('title' => 'Search')));
43
+
44
+ update_option('sidebars_widgets', $activate);
45
+ $MediaId = get_option('conceptly_media_id');
46
+ set_theme_mod( 'custom_logo', $MediaId[0] );
47
+ ?>
inc/azwa/images/footer-logo.png ADDED
Binary file
inc/azwa/images/logo.png ADDED
Binary file
inc/azwa/images/shape/shape1.png ADDED
Binary file
inc/azwa/images/shape/shape10.png ADDED
Binary file
inc/azwa/images/shape/shape11.png ADDED
Binary file
inc/azwa/images/shape/shape12.png ADDED
Binary file
inc/azwa/images/shape/shape13.png ADDED
Binary file
inc/azwa/images/shape/shape14.png ADDED
Binary file
inc/azwa/images/shape/shape15.png ADDED
Binary file
inc/azwa/images/shape/shape16.png ADDED
Binary file
inc/azwa/images/shape/shape17.png ADDED
Binary file
inc/azwa/images/shape/shape18.png ADDED
Binary file
inc/azwa/images/shape/shape19.svg ADDED
@@ -0,0 +1 @@
 
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="300" height="250" viewBox="0 0 20 20"><path fill="#FFF" fill-opacity=".5" d="M9.9 5C6.8 5 4 6.4 2.2 8.7l1.1 1.1c1.6-2 4-3.2 6.7-3.2s5.1 1.3 6.7 3.2l1.1-1.1C15.8 6.4 13 5 9.9 5z"><animate id="d" attributeName="fill-opacity" dur="500ms" values="1;1;1" calcMode="linear" begin="a.end+0.05s"/></path><path fill="#FFF" fill-opacity=".7" d="M9.9 8c-2.3 0-4.3 1.1-5.6 2.8l1.1 1.1c1-1.4 2.6-2.4 4.5-2.4s3.5.9 4.5 2.4l1.1-1.1C14.2 9.1 12.2 8 9.9 8z"><animate id="a" attributeName="fill-opacity" dur="500ms" values="1;1;1" calcMode="linear" begin="b.end+0.05s"/></path><path fill="#FFF" fill-opacity=".7" d="M9.9 11c-1.5 0-2.7.8-3.4 2l1.1 1.1c.4-.9 1.3-1.6 2.3-1.6s2 .7 2.3 1.6l1.1-1.1c-.7-1.2-1.9-2-3.4-2z"><animate id="b" attributeName="fill-opacity" dur="500ms" values="1;1;1" calcMode="linear" begin="c.end+0.05s"/></path><circle fill="#FFF" fill-opacity=".7" cx="9.9" cy="15.3" r="1"><animate id="c" attributeName="fill-opacity" dur="500ms" values="1;1;1" calcMode="linear" begin="0s;d.end+0.05s"/></circle></svg>
inc/azwa/images/shape/shape2.png ADDED
Binary file
inc/azwa/images/shape/shape3.png ADDED
Binary file
inc/azwa/images/shape/shape4.png ADDED
Binary file
inc/azwa/images/shape/shape5.png ADDED
Binary file
inc/azwa/images/shape/shape6.png ADDED
Binary file
inc/azwa/images/shape/shape7.png ADDED
Binary file
inc/azwa/images/shape/shape8.png ADDED
Binary file
inc/azwa/images/shape/shape9.png ADDED
Binary file
inc/azwa/sections/above-header.php ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if ( ! function_exists( 'conceptly_above_header' ) ) :
3
+ function conceptly_above_header() {
4
+ $hide_show_preloader = get_theme_mod('hide_show_preloader','0');
5
+ $hide_show_social_icon = get_theme_mod('hide_show_social_icon','1');
6
+ $social_icons = get_theme_mod('social_icons',conceptly_get_social_icon_default());
7
+ $hide_show_contact_infot = get_theme_mod('hide_show_contact_infot','1');
8
+ $header_email_icon = get_theme_mod('header_email_icon','fa-envelope-o');
9
+ $header_email = get_theme_mod('header_email','email@companyname.com');
10
+ $header_phone_icon = get_theme_mod('header_phone_icon','fa-phone');
11
+ $header_phone_number = get_theme_mod('header_phone_number','+1 514-286-4242');
12
+ $header_faq_icon = get_theme_mod('header_faq_icon','fa-question');
13
+ $header_faq = get_theme_mod('header_faq','Ask Your Question');
14
+ $sticky_header_setting = get_theme_mod('sticky_header_setting','1');
15
+ $hide_show_email_infot = get_theme_mod('hide_show_email_infot','1');
16
+ $hide_show_faq = get_theme_mod('hide_show_faq','1');
17
+ ?>
18
+ <!-- Start: Header Top
19
+ ============================= -->
20
+ <div id="header-top" class="header-above">
21
+ <div class="header-abover-mobile">
22
+ <div class="header-above-button">
23
+ <button type="button" class="pull-down-toggle"><i class="fa fa-chevron-down"></i></button>
24
+ </div>
25
+ <div id="mobi-above" class="mobi-above"></div>
26
+ </div>
27
+ <div class="header-above-desk">
28
+ <div class="container">
29
+ <div class="row">
30
+ <div class="col-lg-3 col-md-12 text-lg-left text-center my-auto">
31
+ <?php if($hide_show_social_icon =='1') { ?>
32
+ <ul class="trh-social d-inline-block">
33
+ <?php
34
+ $social_icons = json_decode($social_icons);
35
+ if( $social_icons!='' )
36
+ {
37
+ foreach($social_icons as $social_item){
38
+ $social_icon = ! empty( $social_item->icon_value ) ? apply_filters( 'conceptly_translate_single_string', $social_item->icon_value, 'Header section' ) : '';
39
+ $social_link = ! empty( $social_item->link ) ? apply_filters( 'conceptly_translate_single_string', $social_item->link, 'Header section' ) : '';
40
+ ?>
41
+ <li><a href="<?php echo esc_url( $social_link ); ?>" ><i class="fa <?php echo esc_attr( $social_icon ); ?> "></i></a></li>
42
+ <?php
43
+ }
44
+ }
45
+ ?>
46
+ </ul>
47
+ <?php } ?>
48
+ </div>
49
+ <div class="col-lg-9 col-md-12 text-lg-right text-center my-auto mb-lg-0 mb-sm-3 mb-3">
50
+ <ul class="header-info d-inline-block">
51
+ <?php if($hide_show_contact_infot =='1'){ ?>
52
+ <?php if($header_phone_number) {?>
53
+ <li class="tlh-phone"><a href="tel:<?php echo esc_html($header_phone_number); ?>"><i class="fa <?php echo esc_attr($header_phone_icon); ?>"></i><?php echo esc_html($header_phone_number); ?></a></li>
54
+ <?php
55
+ }
56
+ }
57
+ ?>
58
+ <?php if($hide_show_email_infot =='1'){ ?>
59
+ <?php if($header_email) {?>
60
+ <li class="tlh-email"><a href="mailto:<?php echo esc_html($header_email); ?>"><i class="fa <?php echo esc_attr( $header_email_icon ); ?>"></i><?php echo $header_email; ?></a></li>
61
+ <?php } ?>
62
+ <?php } ?>
63
+ <?php if($hide_show_faq =='1'){ ?>
64
+ <?php if($header_faq) {?>
65
+ <li class="tlh-faq"><a href="#"><i class="fa <?php echo esc_attr($header_faq_icon); ?>"></i><?php echo $header_faq; ?></a></li>
66
+ <?php } ?>
67
+ <?php } ?>
68
+ </ul>
69
+ </div>
70
+ </div>
71
+ </div>
72
+ </div>
73
+ </div>
74
+ <?php
75
+ } endif;
76
+ add_action('conceptly_above_header', 'conceptly_above_header');
77
+ ?>
inc/azwa/sections/section-service.php ADDED
@@ -0,0 +1,109 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if ( ! function_exists( 'conceptly_lite_service' ) ) :
3
+ function conceptly_lite_service() {
4
+ $default_content = conceptly_get_service_default();
5
+ $hide_show_service = get_theme_mod('hide_show_service','1');
6
+ $service_title = get_theme_mod('service_title','Our Services');
7
+ $service_description = get_theme_mod('service_description','There are many variations of passages of Lorem Ipsum available but the majority have suffered alteration in some form by injected humour.');
8
+ $service_contents = get_theme_mod('service_contents',$default_content);
9
+ if($hide_show_service == '1') {?>
10
+ <section id="our-service" class="section-padding home-service service-section">
11
+ <div class="container">
12
+ <div class="row">
13
+ <div class="col-lg-8 col-md-10 col-12">
14
+ <div class="section-title">
15
+ <?php if ( ! empty( $service_title ) || is_customize_preview() ) : ?>
16
+ <h2><?php echo esc_attr( $service_title ); ?><span></span></h2>
17
+ <?php endif; ?>
18
+ <?php if($service_description) {?>
19
+ <p><?php echo esc_attr( $service_description ); ?></p>
20
+ <?php
21
+ }
22
+ ?>
23
+ </div>
24
+ </div>
25
+ </div>
26
+
27
+ <div class="row" id="service-contents">
28
+ <?php
29
+ if ( ! empty( $service_contents ) ) {
30
+ $allowed_html = array(
31
+ 'br' => array(),
32
+ 'em' => array(),
33
+ 'strong' => array(),
34
+ 'b' => array(),
35
+ 'i' => array(),
36
+ );
37
+ $service_contents = json_decode( $service_contents );
38
+ foreach ( $service_contents as $service_item ) {
39
+ $icon = ! empty( $service_item->icon_value ) ? apply_filters( 'conceptly_translate_single_string', $service_item->icon_value, 'service section' ) : '';
40
+ $title = ! empty( $service_item->title ) ? apply_filters( 'conceptly_translate_single_string', $service_item->title, 'service section' ) : '';
41
+ $subtitle = ! empty( $service_item->subtitle ) ? apply_filters( 'conceptly_translate_single_string', $service_item->subtitle, 'service section' ) : '';
42
+ $text = ! empty( $service_item->text ) ? apply_filters( 'conceptly_translate_single_string', $service_item->text, 'service section' ) : '';
43
+ $text2 = ! empty( $service_item->text2) ? apply_filters( 'conceptly_translate_single_string', $service_item->text2,'service section' ) : '';
44
+ $link = ! empty( $service_item->link ) ? apply_filters( 'conceptly_translate_single_string', $service_item->link, 'service section' ) : '';
45
+ $image = ! empty( $service_item->image_url ) ? apply_filters( 'conceptly_translate_single_string', $service_item->image_url, 'service section' ) : '';
46
+ ?>
47
+ <div class="col-lg-4 col-md-6 col-sm-12 mb-4 mb-lg-0 single_serv">
48
+ <div class="service-azwa">
49
+ <div class="service-azwa-over">
50
+ <div class="item-featured">
51
+ <?php if ( ! empty( $image ) ) : ?>
52
+ <img src="<?php echo esc_url( $image ); ?>" <?php if ( ! empty( $title ) ) : ?> alt="<?php echo esc_attr( $title ); ?>" title="<?php echo esc_attr( $title ); ?>" <?php endif; ?> />
53
+ <?php endif; ?>
54
+ </div>
55
+ <div class="item-holder">
56
+ <div class="item-holder-inner">
57
+ <div class="item-icon"><i class="fa <?php echo esc_html( $icon ); ?>"></i></div>
58
+ <?php if ( ! empty( $title ) ) : ?>
59
+ <h3 class="item-title"><?php echo esc_html( $title );?><br><?php echo esc_html( $subtitle ); ?></h3>
60
+ <?php endif; ?>
61
+ <div class="item-gap"></div>
62
+ <div class="item-content">
63
+ <p><?php echo esc_html( $text ); ?></p>
64
+ </div>
65
+ <?php if ( ! empty( $text2 ) ) : ?>
66
+ <div class="item-btn"><a href="<?php echo esc_url( $link ); ?>" class="boxed-btn"><?php echo $text2 ?><i class="fa fa-arrow-right"></i></a></div>
67
+ <?php endif; ?>
68
+ </div>
69
+ </div>
70
+ <div class="item-meta">
71
+ <div class="item-icon"><i class="fa <?php echo esc_html( $icon ); ?>"></i></div>
72
+ <?php if ( ! empty( $title ) ) : ?>
73
+ <h3 class="item-title"><?php echo esc_html( $title );?><br><?php echo esc_html( $subtitle ); ?></h3>
74
+ <?php endif; ?>
75
+ <div class="item-gap"></div>
76
+ <div class="item-content">
77
+ <p><?php echo esc_html( $text ); ?></p>
78
+ </div>
79
+ <?php if ( ! empty( $text2 ) ) : ?>
80
+ <div class="item-btn">
81
+ <a href="<?php echo esc_url( $link ); ?>" class="boxed-btn"><?php echo $text2 ?><i class="fa fa-arrow-right"></i></a>
82
+ </div>
83
+ <?php endif; ?>
84
+ </div>
85
+ </div>
86
+ </div>
87
+ </div>
88
+ <?php
89
+ }
90
+ }
91
+ ?>
92
+ </div>
93
+ </div>
94
+ <div class="shape2"><img src="<?php echo plugin_dir_url( __DIR__ ); ?>images/shape/shape2.png" alt="image"></div>
95
+ <div class="shape3"><img src="<?php echo plugin_dir_url( __DIR__ ); ?>images/shape/shape3.png" alt="image"></div>
96
+ <div class="shape5"><img src="<?php echo plugin_dir_url( __DIR__ ); ?>images/shape/shape5.png" alt="image"></div>
97
+ <div class="shape6"><img src="<?php echo plugin_dir_url( __DIR__ ); ?>images/shape/shape6.png" alt="image"></div>
98
+ <div class="shape7"><img src="<?php echo plugin_dir_url( __DIR__ ); ?>images/shape/shape7.png" alt="image"></div>
99
+ <div class="shape13"><img src="<?php echo plugin_dir_url( __DIR__ ); ?>images/shape/shape13.png" alt="image"></div>
100
+ </section>
101
+ <?php
102
+ }
103
+ }
104
+ endif;
105
+ if ( function_exists( 'conceptly_lite_service' ) ) {
106
+ $section_priority = apply_filters( 'conceptly_section_priority', 25, 'conceptly_lite_service' );
107
+ add_action( 'conceptly_sections', 'conceptly_lite_service', absint( $section_priority ) );
108
+ }
109
+
inc/azwa/sections/section-slider.php ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if ( ! function_exists( 'conceptly_lite_slider' ) ) :
3
+ function conceptly_lite_slider() {
4
+ $default_content = conceptly_get_slides_default();
5
+ $slider = get_theme_mod('slider',$default_content);
6
+ $hide_show_slider = get_theme_mod('hide_show_slider','1');
7
+
8
+ if($hide_show_slider == '1') { ?>
9
+ <section id="slider" class="azwa-header-slider">
10
+ <div class="header-slider owl-carousel owl-theme">
11
+ <?php
12
+
13
+ if ( ! empty( $slider ) ) {
14
+ $allowed_html = array(
15
+ 'br' => array(),
16
+ 'em' => array(),
17
+ 'strong' => array(),
18
+ 'b' => array(),
19
+ 'i' => array(),
20
+ );
21
+ $slider = json_decode( $slider );
22
+ foreach ( $slider as $slide_item ) {
23
+ //$icon = ! empty( $service_item->icon_value ) ? apply_filters( 'conceptly_translate_single_string', $service_item->icon_value, 'service section' ) : '';
24
+ $title = ! empty( $slide_item->title ) ? apply_filters( 'conceptly_translate_single_string', $slide_item->title, 'slider section' ) : '';
25
+ $subtitle = ! empty( $slide_item->subtitle ) ? apply_filters( 'conceptly_translate_single_string', $slide_item->subtitle, 'slider section' ) : '';
26
+ $text = ! empty( $slide_item->text ) ? apply_filters( 'conceptly_translate_single_string', $slide_item->text, 'slider section' ) : '';
27
+ $button = ! empty( $slide_item->text2) ? apply_filters( 'conceptly_translate_single_string', $slide_item->text2,'slider section' ) : '';
28
+ $link = ! empty( $slide_item->link ) ? apply_filters( 'conceptly_translate_single_string', $slide_item->link, 'slider section' ) : '';
29
+ $image = ! empty( $slide_item->image_url ) ? apply_filters( 'conceptly_translate_single_string', $slide_item->image_url, 'slider section' ) : '';
30
+ $open_new_tab = ! empty( $slide_item->open_new_tab ) ? apply_filters( 'conceptly_translate_single_string', $slide_item->open_new_tab, 'slider section' ) : '';
31
+ $align = $slide_item->slide_align;
32
+ ?>
33
+ <div class="header-single-slider theme-slider azwa-slider">
34
+ <div class="container">
35
+ <div class="row theme-content azwa-content text-<?php echo $align; ?>">
36
+ <div class="col-md-7 col-8">
37
+ <?php if ( ! empty( $title ) ) : ?>
38
+ <h1><?php echo esc_html( $title ); ?><br><span class="typewrite" data-period="2000" data-type='[ "<?php echo esc_html( $subtitle ); ?>"]'></span><span class="wrap"></span></h1>
39
+ <?php endif; ?>
40
+ <?php if ( ! empty( $text ) ) : ?>
41
+ <p><?php echo esc_attr( $text ); ?></p>
42
+ <?php endif; ?>
43
+ <?php if ( ! empty( $button ) ) : ?>
44
+ <a href="<?php echo esc_url( $link ); ?>" <?php if($open_new_tab== 'yes' || $open_new_tab== '1') { echo "target='_blank'"; } ?> class="boxed-btn"><?php echo esc_attr( $button ); ?><i class="fa fa-arrow-right"></i></a>
45
+ <?php endif; ?>
46
+ </div>
47
+ <?php if ( ! empty( $image ) ) : ?>
48
+ <div class="col-md-5 col-4 m-auto">
49
+ <img src="<?php echo esc_url( $image ); ?>" <?php if ( ! empty( $title ) ) : ?> alt="<?php echo esc_attr( $title ); ?>" <?php endif; ?> />
50
+ </div>
51
+ <?php endif; ?>
52
+ </div>
53
+ </div>
54
+ </div>
55
+ <?php } ?>
56
+ </div>
57
+ <?php } ?>
58
+ </section>
59
+ <?php }
60
+ }
61
+ endif;
62
+ if ( function_exists( 'conceptly_lite_slider' ) ) {
63
+ $section_priority = apply_filters( 'conceptly_section_priority', 11, 'conceptly_lite_slider' );
64
+ add_action( 'conceptly_sections', 'conceptly_lite_slider', absint( $section_priority ) );
65
+ }
inc/cleverfox-activator.php CHANGED
@@ -57,6 +57,12 @@ class Cleverfox_Activator {
57
  require CLEVERFOX_PLUGIN_DIR . 'inc/ameya/default-widgets/default-widget.php';
58
  }
59
 
 
 
 
 
 
 
60
  if ( 'Avril' == $theme->name){
61
  require CLEVERFOX_PLUGIN_DIR . 'inc/avril/default-pages/upload-media.php';
62
  require CLEVERFOX_PLUGIN_DIR . 'inc/avril/default-pages/home-page.php';
57
  require CLEVERFOX_PLUGIN_DIR . 'inc/ameya/default-widgets/default-widget.php';
58
  }
59
 
60
+ if ( 'Azwa' == $theme->name){
61
+ require CLEVERFOX_PLUGIN_DIR . 'inc/azwa/default-pages/upload-media.php';
62
+ require CLEVERFOX_PLUGIN_DIR . 'inc/azwa/default-pages/home-page.php';
63
+ require CLEVERFOX_PLUGIN_DIR . 'inc/azwa/default-widgets/default-widget.php';
64
+ }
65
+
66
  if ( 'Avril' == $theme->name){
67
  require CLEVERFOX_PLUGIN_DIR . 'inc/avril/default-pages/upload-media.php';
68
  require CLEVERFOX_PLUGIN_DIR . 'inc/avril/default-pages/home-page.php';
readme.txt CHANGED
@@ -32,6 +32,7 @@ Clever Fox is a plugin build to enhance the functionality of WordPress Theme mad
32
  - [Hantus](https://wordpress.org/themes/hantus/)
33
  - [Conceptly](https://wordpress.org/themes/conceptly/)
34
  - [Ameya](https://wordpress.org/themes/ameya/)
 
35
 
36
  == License ==
37
 
@@ -41,6 +42,10 @@ Clever Fox WordPress plugin is licensed under the GPL3 (https://www.gnu.org/lice
41
 
42
  == Changelog ==
43
 
 
 
 
 
44
  = 1.7 =
45
  * Avril Theme Functionality Added
46
 
32
  - [Hantus](https://wordpress.org/themes/hantus/)
33
  - [Conceptly](https://wordpress.org/themes/conceptly/)
34
  - [Ameya](https://wordpress.org/themes/ameya/)
35
+ - [Avril](https://wordpress.org/themes/avril/)
36
 
37
  == License ==
38
 
42
 
43
  == Changelog ==
44
 
45
+ = 1.8 =
46
+ * Azwa Theme Functionality Added
47
+ * Avril Upsale Links Added
48
+
49
  = 1.7 =
50
  * Avril Theme Functionality Added
51