Clever Fox - Version 13.9

Version Description

  • Ampark Theme Files Added
Download this release

Release Info

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

Code changes from version 13.8 to 13.9

clever-fox.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Clever Fox
4
  Plugin URI:
5
  Description: Clever Fox plugin to enhance the functionality of free themes made by Nayra Themes. More than 50000+ trusted websites with Nayra Themes. It provides intuitive features to your website. 20+ Themes compatible with Clever Fox. See below free themes listed here. Avril is one of Popular themes in our collections.
6
- Version: 13.8
7
  Author: nayrathemes
8
  Author URI: https://nayrathemes.com
9
  Text Domain: clever-fox
3
  Plugin Name: Clever Fox
4
  Plugin URI:
5
  Description: Clever Fox plugin to enhance the functionality of free themes made by Nayra Themes. More than 50000+ trusted websites with Nayra Themes. It provides intuitive features to your website. 20+ Themes compatible with Clever Fox. See below free themes listed here. Avril is one of Popular themes in our collections.
6
+ Version: 13.9
7
  Author: nayrathemes
8
  Author URI: https://nayrathemes.com
9
  Text Domain: clever-fox
inc/ampark/ampark.php CHANGED
@@ -7,8 +7,9 @@ require CLEVERFOX_PLUGIN_DIR . 'inc/avril/extras.php';
7
  require CLEVERFOX_PLUGIN_DIR . 'inc/avril/dynamic-style.php';
8
  require CLEVERFOX_PLUGIN_DIR . 'inc/ampark/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/avril/features/avril-slider.php';
@@ -20,7 +21,8 @@ if ( ! function_exists( 'cleverfox_avril_frontpage_sections' ) ) :
20
  require CLEVERFOX_PLUGIN_DIR . 'inc/avril/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;
7
  require CLEVERFOX_PLUGIN_DIR . 'inc/avril/dynamic-style.php';
8
  require CLEVERFOX_PLUGIN_DIR . 'inc/ampark/sections/above-header.php';
9
  require CLEVERFOX_PLUGIN_DIR . 'inc/avril/features/avril-header.php';
10
+ require CLEVERFOX_PLUGIN_DIR . 'inc/avail/features/avril-cta.php';
11
  require CLEVERFOX_PLUGIN_DIR . 'inc/avril/features/avril-features.php';
12
+ require CLEVERFOX_PLUGIN_DIR . 'inc/ampark/features/avril-testimonial.php';
13
  require CLEVERFOX_PLUGIN_DIR . 'inc/avril/features/avril-info.php';
14
  require CLEVERFOX_PLUGIN_DIR . 'inc/avril/features/avril-service.php';
15
  require CLEVERFOX_PLUGIN_DIR . 'inc/avril/features/avril-slider.php';
21
  require CLEVERFOX_PLUGIN_DIR . 'inc/avril/sections/section-info.php';
22
  require CLEVERFOX_PLUGIN_DIR . 'inc/avril/sections/section-service.php';
23
  require CLEVERFOX_PLUGIN_DIR . 'inc/avril/sections/section-features.php';
24
+ require CLEVERFOX_PLUGIN_DIR . 'inc/ampark/sections/section-testimonial.php';
25
+ require CLEVERFOX_PLUGIN_DIR . 'inc/ampark/sections/section-cta-2.php';
26
  }
27
  add_action( 'avril_sections', 'cleverfox_avril_frontpage_sections' );
28
  endif;
inc/ampark/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/ampark/default-pages/upload-media.php ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $file = CLEVERFOX_PLUGIN_URL .'inc/ampark/images/logo.png';
3
+ $ImagePath = CLEVERFOX_PLUGIN_URL .'inc/ampark/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/ampark/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/ampark/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/ampark/features/avril-testimonial.php ADDED
@@ -0,0 +1,260 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ function avril_testimonial_setting( $wp_customize ) {
3
+ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' : 'refresh';
4
+ /*=========================================
5
+ Testimonial Section
6
+ =========================================*/
7
+ $wp_customize->add_section(
8
+ 'testimonial_setting', array(
9
+ 'title' => esc_html__( 'Testimonial Section', 'avril-pro' ),
10
+ 'priority' => 11,
11
+ 'panel' => 'avril_frontpage_sections',
12
+ )
13
+ );
14
+
15
+ // Setting
16
+ $wp_customize->add_setting(
17
+ 'testimonial_setting_head'
18
+ ,array(
19
+ 'capability' => 'edit_theme_options',
20
+ 'sanitize_callback' => 'avril_sanitize_text',
21
+ 'priority' => 2,
22
+ )
23
+ );
24
+
25
+ $wp_customize->add_control(
26
+ 'testimonial_setting_head',
27
+ array(
28
+ 'type' => 'hidden',
29
+ 'label' => __('Setting','clever-fox'),
30
+ 'section' => 'testimonial_setting',
31
+ )
32
+ );
33
+
34
+ $wp_customize->add_setting(
35
+ 'hs_testimonial' ,
36
+ array(
37
+ 'default' => '1',
38
+ 'sanitize_callback' => 'avril_sanitize_checkbox',
39
+ 'capability' => 'edit_theme_options',
40
+ 'priority' => 2,
41
+ )
42
+ );
43
+
44
+ $wp_customize->add_control(
45
+ 'hs_testimonial',
46
+ array(
47
+ 'label' => esc_html__( 'Hide / Show Section', 'clever-fox' ),
48
+ 'section' => 'testimonial_setting',
49
+ 'type' => 'checkbox'
50
+ )
51
+ );
52
+
53
+ // Testimnial Header Section //
54
+ $wp_customize->add_setting(
55
+ 'testimonial_headings'
56
+ ,array(
57
+ 'capability' => 'edit_theme_options',
58
+ 'sanitize_callback' => 'avril_sanitize_text',
59
+ 'priority' => 3,
60
+ )
61
+ );
62
+
63
+ $wp_customize->add_control(
64
+ 'testimonial_headings',
65
+ array(
66
+ 'type' => 'hidden',
67
+ 'label' => __('Header','avril-pro'),
68
+ 'section' => 'testimonial_setting',
69
+ )
70
+ );
71
+
72
+ // Testimonial Title //
73
+ $wp_customize->add_setting(
74
+ 'testimonial_title',
75
+ array(
76
+ 'default' => __('Technology from tomorrow','avril-pro'),
77
+ 'capability' => 'edit_theme_options',
78
+ 'sanitize_callback' => 'avril_sanitize_html',
79
+ 'transport' => $selective_refresh,
80
+ 'priority' => 4,
81
+ )
82
+ );
83
+
84
+ $wp_customize->add_control(
85
+ 'testimonial_title',
86
+ array(
87
+ 'label' => __('Title','avril-pro'),
88
+ 'section' => 'testimonial_setting',
89
+ 'type' => 'text',
90
+ )
91
+ );
92
+
93
+ // Testimonial Subtitle //
94
+ $wp_customize->add_setting(
95
+ 'testimonial_subtitle',
96
+ array(
97
+ 'default' => __('Outstanding <span class="av-heading animate-7"><span class="av-text-wrapper"><b class="is-show">Testimonial</b> <b>Testimonial</b><b>Testimonial</b></span></span>','avril-pro'),
98
+ 'capability' => 'edit_theme_options',
99
+ 'sanitize_callback' => 'avril_sanitize_html',
100
+ 'priority' => 5,
101
+ )
102
+ );
103
+
104
+ $wp_customize->add_control(
105
+ 'testimonial_subtitle',
106
+ array(
107
+ 'label' => __('Subtitle','avril-pro'),
108
+ 'section' => 'testimonial_setting',
109
+ 'type' => 'textarea',
110
+ )
111
+ );
112
+
113
+ // Testimonial Description //
114
+ $wp_customize->add_setting(
115
+ 'testimonial_description',
116
+ array(
117
+ 'default' => __('Lorem Ipsum is simply dummy of printing and typesetting and industry. Lorem Ipsum been.','avril-pro'),
118
+ 'capability' => 'edit_theme_options',
119
+ 'sanitize_callback' => 'avril_sanitize_text',
120
+ 'transport' => $selective_refresh,
121
+ 'priority' => 6,
122
+ )
123
+ );
124
+
125
+ $wp_customize->add_control(
126
+ 'testimonial_description',
127
+ array(
128
+ 'label' => __('Description','avril-pro'),
129
+ 'section' => 'testimonial_setting',
130
+ 'type' => 'textarea',
131
+ )
132
+ );
133
+
134
+ // Testimonial content Section //
135
+
136
+ $wp_customize->add_setting(
137
+ 'test_content_head'
138
+ ,array(
139
+ 'capability' => 'edit_theme_options',
140
+ 'sanitize_callback' => 'avril_sanitize_text',
141
+ 'priority' => 7,
142
+ )
143
+ );
144
+
145
+ $wp_customize->add_control(
146
+ 'test_content_head',
147
+ array(
148
+ 'type' => 'hidden',
149
+ 'label' => __('Content','avril-pro'),
150
+ 'section' => 'testimonial_setting',
151
+ )
152
+ );
153
+
154
+ /**
155
+ * Customizer Repeater for add Testimonial
156
+ */
157
+
158
+ $wp_customize->add_setting( 'testimonials',
159
+ array(
160
+ 'sanitize_callback' => 'avril_repeater_sanitize',
161
+ 'transport' => $selective_refresh,
162
+ 'priority' => 8,
163
+ 'default' => avril_get_testimonial_default()
164
+ )
165
+ );
166
+
167
+ $wp_customize->add_control(
168
+ new Avril_Repeater( $wp_customize,
169
+ 'testimonials',
170
+ array(
171
+ 'label' => esc_html__('Testimonial','avril-pro'),
172
+ 'section' => 'testimonial_setting',
173
+ 'add_field_label' => esc_html__( 'Add New Testimonial', 'avril-pro' ),
174
+ 'item_name' => esc_html__( 'Testimonial', 'avril-pro' ),
175
+ 'customizer_repeater_image_control' => true,
176
+ 'customizer_repeater_title_control' => true,
177
+ 'customizer_repeater_subtitle_control' => true,
178
+ 'customizer_repeater_text_control' => true,
179
+ )
180
+ )
181
+ );
182
+
183
+
184
+ //Pro feature
185
+ class Avril_testimonial__section_upgrade extends WP_Customize_Control {
186
+ public function render_content() {
187
+ ?>
188
+ <a class="customizer_testimonial_upgrade_section up-to-pro" href="https://www.nayrathemes.com/avril-pro/" target="_blank" style="display: none;"><?php _e('Upgrade to Pro','clever-fox'); ?></a>
189
+
190
+ <?php
191
+ }
192
+ }
193
+
194
+ $wp_customize->add_setting( 'avril_testimonial_upgrade_to_pro', array(
195
+ 'capability' => 'edit_theme_options',
196
+ 'sanitize_callback' => 'wp_filter_nohtml_kses',
197
+ 'priority' => 9,
198
+ ));
199
+ $wp_customize->add_control(
200
+ new Avril_testimonial__section_upgrade(
201
+ $wp_customize,
202
+ 'avril_testimonial_upgrade_to_pro',
203
+ array(
204
+ 'section' => 'testimonial_setting',
205
+ )
206
+ )
207
+ );
208
+ }
209
+
210
+ add_action( 'customize_register', 'avril_testimonial_setting' );
211
+
212
+ // Testimonial selective refresh
213
+ function avril_testimonial_section_partials( $wp_customize ){
214
+
215
+ // testimonial_title
216
+ $wp_customize->selective_refresh->add_partial( 'testimonial_title', array(
217
+ 'selector' => '#testimonial-section .heading-default .ttl',
218
+ 'settings' => 'testimonial_title',
219
+ 'render_callback' => 'avril_testimonial_title_render_callback',
220
+
221
+ ) );
222
+
223
+ // testimonial_subtitle
224
+ $wp_customize->selective_refresh->add_partial( 'testimonial_subtitle', array(
225
+ 'selector' => '#testimonial-section .heading-default h3',
226
+ 'settings' => 'testimonial_subtitle',
227
+ 'render_callback' => 'avril_testimonial_subtitle_render_callback',
228
+
229
+ ) );
230
+
231
+ // testimonial_description
232
+ $wp_customize->selective_refresh->add_partial( 'testimonial_description', array(
233
+ 'selector' => '#testimonial-section .heading-default p',
234
+ 'settings' => 'testimonial_description',
235
+ 'render_callback' => 'avril_testimonial_description_render_callback',
236
+
237
+ ) );
238
+ // testimonials
239
+ $wp_customize->selective_refresh->add_partial( 'testimonials', array(
240
+ 'selector' => '#testimonial-section .features-area'
241
+ ) );
242
+
243
+ }
244
+
245
+ add_action( 'customize_register', 'avril_testimonial_section_partials' );
246
+
247
+ // testimonial_title
248
+ function avril_testimonial_title_render_callback() {
249
+ return get_theme_mod( 'testimonial_title' );
250
+ }
251
+
252
+ // testimonial_subtitle
253
+ function avril_testimonial_subtitle_render_callback() {
254
+ return get_theme_mod( 'testimonial_subtitle' );
255
+ }
256
+
257
+ // testimonial_description
258
+ function avril_testimonial_description_render_callback() {
259
+ return get_theme_mod( 'testimonial_description' );
260
+ }
inc/ampark/images/logo-2.png ADDED
Binary file
inc/ampark/images/logo.png ADDED
Binary file
inc/ampark/images/testimonial/img01.png ADDED
Binary file
inc/ampark/images/testimonial/img02.png ADDED
Binary file
inc/ampark/images/testimonial/img03.png ADDED
Binary file
inc/ampark/sections/section-cta-2.php ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if ( ! function_exists( 'avril_lite_cta' ) ) :
3
+ function avril_lite_cta() {
4
+ $hs_cta = get_theme_mod('hs_cta','1');
5
+ $cta_title = get_theme_mod('cta_title','We work in partnership with all the major <i>technology</i> solutions');
6
+ $cta_description = get_theme_mod('cta_description','There are many variations of passages of lorem Ipsum available, but the majority');
7
+ $cta_btn_lbl1 = get_theme_mod('cta_btn_lbl1','Purchase Now');
8
+ $cta_btn_link1 = get_theme_mod('cta_btn_link1');
9
+ $cta_btn_second_ttl = get_theme_mod('cta_btn_second_ttl','Get Quick Support');
10
+ $cta_btn_lbl2 = get_theme_mod('cta_btn_lbl2','+22 24588-55069');
11
+ $cta_btn_link2 = get_theme_mod('cta_btn_link2');
12
+ $cta_image = get_theme_mod('cta_image',CLEVERFOX_PLUGIN_URL . '/inc/avail/images/cta-image.png');
13
+ if($hs_cta == '1') {
14
+ ?>
15
+ <section id="cta-section" class="cta-section cta-3 cta-bg-image home-cta">
16
+ <div class="av-container">
17
+ <div class="av-columns-area">
18
+ <div class="av-column-12">
19
+ <div class="cta-wrapper">
20
+ <div class="cta-content">
21
+ <?php if ( ! empty( $cta_image ) ) : ?>
22
+ <div class="cta-img"><img src="<?php echo esc_url($cta_image); ?>"></div>
23
+ <?php endif; ?>
24
+ <div class="cta-text">
25
+ <?php if ( ! empty( $cta_title ) ) : ?>
26
+ <h4><?php echo wp_kses_post($cta_title); ?></h4>
27
+ <?php endif; ?>
28
+ <?php if ( ! empty($cta_description) ) : ?>
29
+ <p><?php echo wp_kses_post($cta_description); ?></p>
30
+ <?php endif; ?>
31
+ </div>
32
+ </div>
33
+ <div class="cta-btn-wrap text-av-right text-center">
34
+ <?php if ( ! empty( $cta_btn_lbl2 ) ) : ?>
35
+ <a class="cta-more" href="<?php echo esc_url($cta_btn_link2); ?>"><div class="cta-icon"><i class="fa fa-phone"></i></div><div class="cta-label"><span class="cta-label-title"><?php if ( ! empty( $cta_btn_second_ttl ) ) : echo esc_html($cta_btn_second_ttl); endif; ?></span><span class="cta-label-dis"><?php echo esc_html($cta_btn_lbl2); ?></span></div></a>
36
+ <?php endif;?>
37
+ <?php if ( ! empty( $cta_btn_lbl1 ) ) : ?>
38
+ <a href="<?php echo esc_url($cta_btn_link1); ?>" class="av-btn av-btn-white" data-text="Contact With Us"><?php echo esc_html($cta_btn_lbl1); ?></a>
39
+ <?php endif;?>
40
+ </div>
41
+ </div>
42
+ </div>
43
+ </div>
44
+ </div>
45
+ </section>
46
+ <?php
47
+ }} endif;
48
+ if ( function_exists( 'avril_lite_cta' ) ) {
49
+ $section_priority = apply_filters( 'avril_section_priority', 14, 'avril_lite_cta' );
50
+ add_action( 'avril_sections', 'avril_lite_cta', absint( $section_priority ) );
51
+ }
inc/ampark/sections/section-testimonial.php ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if ( ! function_exists( 'cleverfox_ampark_lite_testimonial' ) ) :
3
+ function cleverfox_ampark_lite_testimonial() {
4
+ $hs_testimonial = get_theme_mod('hs_testimonial','1');
5
+ $testimonial_title = get_theme_mod('testimonial_title','Technology from tomorrow');
6
+ $testimonial_subtitle = get_theme_mod('testimonial_subtitle','Outstanding <span class="av-heading animate-7"><span class="av-text-wrapper"><b class="is-show">Testimonial</b> <b>Testimonial</b><b>Testimonial</b></span></span>');
7
+ $testimonial_description = get_theme_mod('testimonial_description','Lorem Ipsum is simply dummy of printing and typesetting and industry. Lorem Ipsum been.');
8
+ $testimonials = get_theme_mod('testimonials',avril_get_testimonial_default());
9
+ if($hs_testimonial=='1'){
10
+ ?>
11
+ <section id="testimonial-section" class="testimonial-section av-py-default">
12
+ <div class="av-container">
13
+ <div class="av-columns-area">
14
+ <div class="av-column-12">
15
+ <div class="heading-default wow fadeInUp">
16
+ <?php if ( ! empty( $testimonial_title ) ) : ?>
17
+ <span class='ttl'><?php echo wp_kses_post($testimonial_title); ?></span>
18
+ <?php endif; ?>
19
+ <?php if ( ! empty( $testimonial_subtitle ) ) : ?>
20
+ <h3><?php echo wp_kses_post($testimonial_subtitle); ?></h3>
21
+ <?php endif; ?>
22
+ <?php if ( ! empty( $testimonial_description ) ) : ?>
23
+ <p><?php echo wp_kses_post($testimonial_description); ?></p>
24
+ <?php endif; ?>
25
+ </div>
26
+ </div>
27
+ </div>
28
+ <div class="testimonial-carousel owl-carousel owl-theme wow fadeInUp">
29
+ <?php
30
+ if ( ! empty( $testimonials ) ) {
31
+ $testimonials = json_decode( $testimonials );
32
+ foreach ( $testimonials as $test_item ) {
33
+ $avril_test_title = ! empty( $test_item->title ) ? apply_filters( 'avril_translate_single_string', $test_item->title, 'Testimonial section' ) : '';
34
+ $subtitle = ! empty( $test_item->subtitle ) ? apply_filters( 'avril_translate_single_string', $test_item->subtitle, 'Testimonial section' ) : '';
35
+ $text = ! empty( $test_item->text ) ? apply_filters( 'avril_translate_single_string', $test_item->text, 'Testimonial section' ) : '';
36
+ $image = ! empty( $test_item->image_url ) ? apply_filters( 'avril_translate_single_string', $test_item->image_url, 'Testimonial section' ) : '';
37
+ ?>
38
+ <div class="testimonial-item">
39
+ <div class="testimonial-content">
40
+ <div class="testimonial-title">
41
+ <?php if ( ! empty( $avril_test_title ) ) : ?>
42
+ <h6 class="service-title"><?php echo esc_html( $avril_test_title ); ?></h6>
43
+ <?php endif; ?>
44
+ <?php if ( ! empty( $subtitle ) ) : ?>
45
+ <p><?php echo esc_html( $subtitle ); ?></p>
46
+ <?php endif; ?>
47
+ </div>
48
+ <?php if ( ! empty( $text ) ) : ?>
49
+ <blockquote><?php echo esc_html( $text ); ?></blockquote>
50
+ <?php endif; ?>
51
+ </div>
52
+ <div class="testimonial-icon">
53
+ <div class="image-box">
54
+ <?php if ( ! empty( $image ) ) : ?>
55
+ <img src="<?php echo esc_url( $image ); ?>" data-img-url="<?php echo esc_url( $image ); ?>" <?php if ( ! empty( $title ) ) : ?> alt="<?php echo esc_attr( $title ); ?>" title="<?php echo esc_attr( $title ); ?>" <?php endif; ?> />
56
+ <?php endif; ?>
57
+ </div>
58
+ </div>
59
+ </div>
60
+ <?php } } ?>
61
+ </div>
62
+ </div>
63
+ </section>
64
+ <?php
65
+ }} endif;
66
+ if ( function_exists( 'cleverfox_ampark_lite_testimonial' ) ) {
67
+ $section_priority = apply_filters( 'avril_section_priority', 14, 'avril_lite_team' );
68
+ add_action( 'avril_sections', 'cleverfox_ampark_lite_testimonial', absint( $section_priority ) );
69
+ }
inc/avril/extras.php CHANGED
@@ -440,4 +440,39 @@ function avril_get_social_icon_default() {
440
  )
441
  )
442
  );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
443
  }
440
  )
441
  )
442
  );
443
+ }
444
+
445
+ /*
446
+ *
447
+ * Testimonial Default
448
+ */
449
+
450
+ function avril_get_testimonial_default() {
451
+ return apply_filters(
452
+ 'avril_get_testimonial_default', json_encode(
453
+ array(
454
+ array(
455
+ 'title' => esc_html__( 'Jack Semper', 'clever-fox' ),
456
+ 'subtitle' => esc_html__( 'Structural Engineer', 'clever-fox' ),
457
+ 'text' => esc_html__( 'There are many variations of dummy passages of Lorem Ipsum available is but the about majority.', 'clever-fox' ),
458
+ 'image_url' => CLEVERFOX_PLUGIN_URL .'inc/ampark/images/testimonial/img01.png',
459
+ 'id' => 'customizer_repeater_testimonial_001',
460
+ ),
461
+ array(
462
+ 'title' => esc_html__( 'Kim Dennis', 'clever-fox' ),
463
+ 'subtitle' => esc_html__( 'Structural Engineer', 'clever-fox' ),
464
+ 'text' => esc_html__( 'There are many variations of dummy passages of Lorem Ipsum available is but the about majority.', 'clever-fox' ),
465
+ 'image_url' => CLEVERFOX_PLUGIN_URL .'inc/ampark/images/testimonial/img02.png',
466
+ 'id' => 'customizer_repeater_testimonial_002',
467
+ ),
468
+ array(
469
+ 'title' => esc_html__( 'Philip Wilson', 'clever-fox' ),
470
+ 'subtitle' => esc_html__( 'Structural Engineer', 'clever-fox' ),
471
+ 'text' => esc_html__( 'There are many variations of dummy passages of Lorem Ipsum available is but the about majority.', 'clever-fox' ),
472
+ 'image_url' => CLEVERFOX_PLUGIN_URL .'inc/ampark/images/testimonial/img03.png',
473
+ 'id' => 'customizer_repeater_testimonial_003',
474
+ )
475
+ )
476
+ )
477
+ );
478
  }
inc/cleverfox-activator.php CHANGED
@@ -118,6 +118,12 @@ class Cleverfox_Activator {
118
  require CLEVERFOX_PLUGIN_DIR . 'inc/avitech/default-widgets/default-widget.php';
119
  }
120
 
 
 
 
 
 
 
121
  if ( 'Fiona Blog' == $theme->name || 'Fiona Food' == $theme->name || 'Fiona News' == $theme->name){
122
  require CLEVERFOX_PLUGIN_DIR . 'inc/fiona-blog/default-pages/upload-media.php';
123
  require CLEVERFOX_PLUGIN_DIR . 'inc/fiona-blog/default-pages/home-page.php';
118
  require CLEVERFOX_PLUGIN_DIR . 'inc/avitech/default-widgets/default-widget.php';
119
  }
120
 
121
+ if ( 'Ampark' == $theme->name){
122
+ require CLEVERFOX_PLUGIN_DIR . 'inc/ampark/default-pages/upload-media.php';
123
+ require CLEVERFOX_PLUGIN_DIR . 'inc/ampark/default-pages/home-page.php';
124
+ require CLEVERFOX_PLUGIN_DIR . 'inc/ampark/default-widgets/default-widget.php';
125
+ }
126
+
127
  if ( 'Fiona Blog' == $theme->name || 'Fiona Food' == $theme->name || 'Fiona News' == $theme->name){
128
  require CLEVERFOX_PLUGIN_DIR . 'inc/fiona-blog/default-pages/upload-media.php';
129
  require CLEVERFOX_PLUGIN_DIR . 'inc/fiona-blog/default-pages/home-page.php';
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: homepage, companion, demo, sections, customizer, widget, settings
4
  Requires at least: 4.0
5
  Tested up to: 6.0
6
  Requires PHP: 5.6
7
- Stable tag: 13.8
8
  License: GPLv3 or later
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
10
 
@@ -134,6 +134,9 @@ Clever Fox WordPress plugin is licensed under the GPL3 (https://www.gnu.org/lice
134
 
135
  == Changelog ==
136
 
 
 
 
137
  = 13.8 =
138
  * Ampark Theme Files Added
139
 
4
  Requires at least: 4.0
5
  Tested up to: 6.0
6
  Requires PHP: 5.6
7
+ Stable tag: 13.9
8
  License: GPLv3 or later
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
10
 
134
 
135
  == Changelog ==
136
 
137
+ = 13.9 =
138
+ * Ampark Theme Files Added
139
+
140
  = 13.8 =
141
  * Ampark Theme Files Added
142