Version Description
- Techine Theme Functionality Added
Download this release
Release Info
Developer | nayrathemes |
Plugin | Clever Fox |
Version | 11.1 |
Comparing to | |
See all releases |
Code changes from version 11.0 to 11.1
- clever-fox.php +5 -1
- inc/cleverfox-activator.php +6 -0
- inc/techine/default-pages/home-page.php +24 -0
- inc/techine/default-pages/upload-media.php +34 -0
- inc/techine/default-widgets/default-widget.php +47 -0
- inc/techine/features/techine-header.php +103 -0
- inc/techine/images/footer-logo.png +0 -0
- inc/techine/images/logo.png +0 -0
- inc/techine/sections/above-header.php +99 -0
- inc/techine/sections/section-flash.php +64 -0
- inc/techine/techine.php +38 -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 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: 11.
|
7 |
Author: nayrathemes
|
8 |
Author URI: https://nayrathemes.com
|
9 |
Text Domain: clever-fox
|
@@ -124,6 +124,10 @@ function cleverfox_activate() {
|
|
124 |
require_once('inc/comoxa/comoxa.php');
|
125 |
}
|
126 |
|
|
|
|
|
|
|
|
|
127 |
}
|
128 |
add_action( 'init', 'cleverfox_activate' );
|
129 |
|
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: 11.1
|
7 |
Author: nayrathemes
|
8 |
Author URI: https://nayrathemes.com
|
9 |
Text Domain: clever-fox
|
124 |
require_once('inc/comoxa/comoxa.php');
|
125 |
}
|
126 |
|
127 |
+
if( 'Techine' == $theme->name){
|
128 |
+
require_once('inc/techine/techine.php');
|
129 |
+
}
|
130 |
+
|
131 |
}
|
132 |
add_action( 'init', 'cleverfox_activate' );
|
133 |
|
inc/cleverfox-activator.php
CHANGED
@@ -70,6 +70,12 @@ class Cleverfox_Activator {
|
|
70 |
require CLEVERFOX_PLUGIN_DIR . 'inc/azwa/default-widgets/default-widget.php';
|
71 |
}
|
72 |
|
|
|
|
|
|
|
|
|
|
|
|
|
73 |
if ( 'Avril' == $theme->name){
|
74 |
require CLEVERFOX_PLUGIN_DIR . 'inc/avril/default-pages/upload-media.php';
|
75 |
require CLEVERFOX_PLUGIN_DIR . 'inc/avril/default-pages/home-page.php';
|
70 |
require CLEVERFOX_PLUGIN_DIR . 'inc/azwa/default-widgets/default-widget.php';
|
71 |
}
|
72 |
|
73 |
+
if ( 'Techine' == $theme->name){
|
74 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/techine/default-pages/upload-media.php';
|
75 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/techine/default-pages/home-page.php';
|
76 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/techine/default-widgets/default-widget.php';
|
77 |
+
}
|
78 |
+
|
79 |
if ( 'Avril' == $theme->name){
|
80 |
require CLEVERFOX_PLUGIN_DIR . 'inc/avril/default-pages/upload-media.php';
|
81 |
require CLEVERFOX_PLUGIN_DIR . 'inc/avril/default-pages/home-page.php';
|
inc/techine/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/techine/default-pages/upload-media.php
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$file = CLEVERFOX_PLUGIN_URL .'inc/techine/images/logo.png';
|
3 |
+
$ImagePath = CLEVERFOX_PLUGIN_URL .'inc/techine/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/techine/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/techine/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/techine/features/techine-header.php
ADDED
@@ -0,0 +1,103 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
function techine_lite_header_setting( $wp_customize ){
|
3 |
+
$selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' : 'refresh';
|
4 |
+
|
5 |
+
// Company
|
6 |
+
$wp_customize->add_setting(
|
7 |
+
'hdr_top_Company'
|
8 |
+
,array(
|
9 |
+
'capability' => 'edit_theme_options',
|
10 |
+
'sanitize_callback' => 'conceptly_sanitize_text',
|
11 |
+
'priority' => 13,
|
12 |
+
)
|
13 |
+
);
|
14 |
+
|
15 |
+
$wp_customize->add_control(
|
16 |
+
'hdr_top_Company',
|
17 |
+
array(
|
18 |
+
'type' => 'hidden',
|
19 |
+
'label' => __('Company','clever-fox'),
|
20 |
+
'section' => 'header_contact',
|
21 |
+
)
|
22 |
+
);
|
23 |
+
|
24 |
+
//Hide/Show//
|
25 |
+
$wp_customize->add_setting(
|
26 |
+
'hs_hdr_company' ,
|
27 |
+
array(
|
28 |
+
'default' => '1',
|
29 |
+
'capability' => 'edit_theme_options',
|
30 |
+
'sanitize_callback' => 'sanitize_text_field',
|
31 |
+
'priority' => 14,
|
32 |
+
)
|
33 |
+
);
|
34 |
+
|
35 |
+
$wp_customize->add_control( new Conceptly_Customizer_Toggle_Control( $wp_customize,
|
36 |
+
'hs_hdr_company',
|
37 |
+
array(
|
38 |
+
'label' => esc_html__( 'Hide / Show Section', 'clever-fox' ),
|
39 |
+
'section' => 'header_contact',
|
40 |
+
'type' => 'ios', // light, ios, flat
|
41 |
+
)
|
42 |
+
));
|
43 |
+
|
44 |
+
// icon //
|
45 |
+
$wp_customize->add_setting(
|
46 |
+
'hdr_company_icon',
|
47 |
+
array(
|
48 |
+
'default' => __('fa-user','clever-fox'),
|
49 |
+
'sanitize_callback' => 'conceptly_sanitize_text',
|
50 |
+
'capability' => 'edit_theme_options',
|
51 |
+
'priority' => 15,
|
52 |
+
)
|
53 |
+
);
|
54 |
+
|
55 |
+
$wp_customize->add_control(new Conceptly_Icon_Picker_Control($wp_customize,
|
56 |
+
'hdr_company_icon',
|
57 |
+
array(
|
58 |
+
'label' => __('Company Icon','clever-fox'),
|
59 |
+
'section' => 'header_contact',
|
60 |
+
'iconset' => 'fa',
|
61 |
+
))
|
62 |
+
);
|
63 |
+
// Title //
|
64 |
+
$wp_customize->add_setting(
|
65 |
+
'hdr_company_ttl',
|
66 |
+
array(
|
67 |
+
'default' => __('Welcome to Best Consulting Services Company','clever-fox'),
|
68 |
+
'sanitize_callback' => 'conceptly_sanitize_text',
|
69 |
+
'capability' => 'edit_theme_options',
|
70 |
+
'priority' => 16,
|
71 |
+
)
|
72 |
+
);
|
73 |
+
|
74 |
+
$wp_customize->add_control(
|
75 |
+
'hdr_company_ttl',
|
76 |
+
array(
|
77 |
+
'label' => __('Title','clever-fox'),
|
78 |
+
'section' => 'header_contact',
|
79 |
+
'description' => __( '', 'clever-fox' ),
|
80 |
+
'type' => 'textarea'
|
81 |
+
)
|
82 |
+
);
|
83 |
+
};
|
84 |
+
add_action( 'customize_register', 'techine_lite_header_setting' );
|
85 |
+
|
86 |
+
// header selective refresh
|
87 |
+
function techine_clverfox_header_section_partials( $wp_customize ){
|
88 |
+
|
89 |
+
// hdr_company_ttl
|
90 |
+
$wp_customize->selective_refresh->add_partial(
|
91 |
+
'hdr_company_ttl', array(
|
92 |
+
'selector' => '#header-top .li',
|
93 |
+
'settings' => 'hdr_company_ttl',
|
94 |
+
'render_callback' => 'header_section_hdr_company_ttl_render_callback',
|
95 |
+
) );
|
96 |
+
|
97 |
+
}
|
98 |
+
add_action( 'customize_register', 'techine_clverfox_header_section_partials' );
|
99 |
+
|
100 |
+
// hdr_company_ttl
|
101 |
+
function header_section_hdr_company_ttl_render_callback() {
|
102 |
+
return get_theme_mod( 'hdr_company_ttl' );
|
103 |
+
}
|
inc/techine/images/footer-logo.png
ADDED
Binary file
|
inc/techine/images/logo.png
ADDED
Binary file
|
inc/techine/sections/above-header.php
ADDED
@@ -0,0 +1,99 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
if ( ! function_exists( 'conceptly_above_header' ) ) :
|
3 |
+
function conceptly_above_header() {
|
4 |
+
$hide_show_social_icon = get_theme_mod('hide_show_social_icon','1');
|
5 |
+
$social_icons = get_theme_mod('social_icons',conceptly_get_social_icon_default());
|
6 |
+
$hdr_company_icon = get_theme_mod('hdr_company_icon','fa-user');
|
7 |
+
$hdr_company_ttl = get_theme_mod('hdr_company_ttl','Welcome to Best Consulting Services Company');
|
8 |
+
$hs_hdr_company = get_theme_mod('hs_hdr_company','1');
|
9 |
+
if($hide_show_social_icon =='1' || $hs_hdr_company =='1') {
|
10 |
+
?>
|
11 |
+
|
12 |
+
<!-- Start: Header Top
|
13 |
+
============================= -->
|
14 |
+
<div id="header-top" class="header-above">
|
15 |
+
<div class="header-abover-mobile">
|
16 |
+
<div class="header-above-button">
|
17 |
+
<button type="button" class="pull-down-toggle"><i class="fa fa-chevron-down"></i></button>
|
18 |
+
</div>
|
19 |
+
<div id="mobi-above" class="mobi-above"></div>
|
20 |
+
</div>
|
21 |
+
<div class="header-above-desk">
|
22 |
+
<div class="container">
|
23 |
+
<div class="row">
|
24 |
+
<div class="col-lg-3 col-md-12 text-lg-left text-center my-auto mb-lg-0 mb-sm-3 mb-3 ">
|
25 |
+
<?php if($hide_show_social_icon =='1') { ?>
|
26 |
+
<ul class="trh-social d-inline-block">
|
27 |
+
<?php
|
28 |
+
$social_icons = json_decode($social_icons);
|
29 |
+
if( $social_icons!='' )
|
30 |
+
{
|
31 |
+
foreach($social_icons as $social_item){
|
32 |
+
$social_icon = ! empty( $social_item->icon_value ) ? apply_filters( 'conceptly_translate_single_string', $social_item->icon_value, 'Header section' ) : '';
|
33 |
+
$social_link = ! empty( $social_item->link ) ? apply_filters( 'conceptly_translate_single_string', $social_item->link, 'Header section' ) : '';
|
34 |
+
?>
|
35 |
+
<li><a href="<?php echo esc_url( $social_link ); ?>" ><i class="fa <?php echo esc_attr( $social_icon ); ?> "></i></a></li>
|
36 |
+
<?php
|
37 |
+
}
|
38 |
+
}
|
39 |
+
?>
|
40 |
+
</ul>
|
41 |
+
<?php } ?>
|
42 |
+
</div>
|
43 |
+
<div class="col-lg-9 col-md-12 text-lg-right text-center my-auto">
|
44 |
+
<ul class="header-info d-inline-block">
|
45 |
+
<?php if($hs_hdr_company =='1'){ ?>
|
46 |
+
<?php if($hdr_company_ttl) {?>
|
47 |
+
<li class="tlh-faq"><a href="#"><i class="fa <?php echo esc_attr($hdr_company_icon); ?>"></i><?php echo $hdr_company_ttl; ?></a></li>
|
48 |
+
<?php } ?>
|
49 |
+
<?php } ?>
|
50 |
+
</ul>
|
51 |
+
</div>
|
52 |
+
</div>
|
53 |
+
</div>
|
54 |
+
</div>
|
55 |
+
</div>
|
56 |
+
<?php
|
57 |
+
}} endif;
|
58 |
+
add_action('conceptly_above_header', 'conceptly_above_header');
|
59 |
+
|
60 |
+
|
61 |
+
if ( ! function_exists( 'conceptly_header_nav' ) ) :
|
62 |
+
function conceptly_header_nav() {
|
63 |
+
$hide_show_contact_infot = get_theme_mod('hide_show_contact_infot','1');
|
64 |
+
$header_email_icon = get_theme_mod('header_email_icon','fa-envelope-o');
|
65 |
+
$header_email = get_theme_mod('header_email','email@companyname.com');
|
66 |
+
$header_phone_icon = get_theme_mod('header_phone_icon','fa-phone');
|
67 |
+
$header_phone_number = get_theme_mod('header_phone_number','+1 514-286-4242');
|
68 |
+
$header_faq_icon = get_theme_mod('header_faq_icon','fa-question');
|
69 |
+
$header_faq = get_theme_mod('header_faq','Ask Your Question');
|
70 |
+
$sticky_header_setting = get_theme_mod('sticky_header_setting','1');
|
71 |
+
$hide_show_email_infot = get_theme_mod('hide_show_email_infot','1');
|
72 |
+
$hide_show_faq = get_theme_mod('hide_show_faq','1');
|
73 |
+
|
74 |
+
?>
|
75 |
+
<div class="header-above my-auto">
|
76 |
+
<ul class="header-info">
|
77 |
+
<?php if($hide_show_contact_infot =='1'){ ?>
|
78 |
+
<?php if($header_phone_number) {?>
|
79 |
+
<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>
|
80 |
+
<?php
|
81 |
+
}
|
82 |
+
}
|
83 |
+
?>
|
84 |
+
<?php if($hide_show_email_infot =='1'){ ?>
|
85 |
+
<?php if($header_email) {?>
|
86 |
+
<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>
|
87 |
+
<?php } ?>
|
88 |
+
<?php } ?>
|
89 |
+
<?php if($hide_show_faq =='1'){ ?>
|
90 |
+
<?php if($header_faq) {?>
|
91 |
+
<li class="tlh-faq"><a href="#"><i class="fa <?php echo esc_attr($header_faq_icon); ?>"></i><?php echo $header_faq; ?></a></li>
|
92 |
+
<?php } ?>
|
93 |
+
<?php } ?>
|
94 |
+
</ul>
|
95 |
+
</div>
|
96 |
+
<?php
|
97 |
+
} endif;
|
98 |
+
add_action('conceptly_header_nav', 'conceptly_header_nav');
|
99 |
+
|
inc/techine/sections/section-flash.php
ADDED
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
if ( ! function_exists( 'conceptly_lite_info' ) ) :
|
3 |
+
function conceptly_lite_info() {
|
4 |
+
$hide_show_info = get_theme_mod('hide_show_info','1');
|
5 |
+
$info_title = get_theme_mod('info_title','Email Address');
|
6 |
+
$info_description = get_theme_mod('info_description','email@example.com');
|
7 |
+
$info_title2 = get_theme_mod('info_title2','Customer Support');
|
8 |
+
$info_description2 = get_theme_mod('info_description2','70 975 975 70');
|
9 |
+
$info_title3 = get_theme_mod('info_title3','Office Address');
|
10 |
+
$info_description3 = get_theme_mod('info_description3','California Floor, USA 1208');
|
11 |
+
$infos_first_icon_setting= get_theme_mod('infos_first_icon_setting','fa-envelope');
|
12 |
+
$infos_second_icon_setting= get_theme_mod('infos_second_icon_setting','fa-life-ring');
|
13 |
+
$infos_third_icon_setting= get_theme_mod('infos_third_icon_setting','fa-map-marker');
|
14 |
+
?>
|
15 |
+
<!-- Start: Contact
|
16 |
+
============================= -->
|
17 |
+
<?php if($hide_show_info == '1') { ?>
|
18 |
+
<section id="contact-info">
|
19 |
+
<div class="container">
|
20 |
+
<div class="contact-wrapper d-flex flex-wrap">
|
21 |
+
<div class="single-contact info-first">
|
22 |
+
<div class="d-flex flex-column align-items-center">
|
23 |
+
<div class="single-icon">
|
24 |
+
<i class="fa <?php echo esc_attr($infos_first_icon_setting);?>"></i>
|
25 |
+
</div>
|
26 |
+
<div class="text-center text-md-center">
|
27 |
+
<h5><?php echo esc_attr( $info_title ); ?></h5>
|
28 |
+
<p class="info-first-desc"><?php echo esc_attr( $info_description );?></p>
|
29 |
+
</div>
|
30 |
+
</div>
|
31 |
+
</div>
|
32 |
+
<div class="single-contact info-second">
|
33 |
+
<div class="d-flex flex-column align-items-center">
|
34 |
+
<div class="single-icon">
|
35 |
+
<i class="fa <?php echo esc_attr($infos_second_icon_setting);?>"></i>
|
36 |
+
</div>
|
37 |
+
<div class="text-center text-md-center">
|
38 |
+
<h5><?php echo esc_attr( $info_title2 ); ?></h5>
|
39 |
+
<p class="info-second-desc"><?php echo esc_attr( $info_description2 );?></p>
|
40 |
+
</div>
|
41 |
+
</div>
|
42 |
+
</div>
|
43 |
+
<div class="single-contact info-third">
|
44 |
+
<div class="d-flex flex-column align-items-center">
|
45 |
+
<div class="single-icon">
|
46 |
+
<i class="fa <?php echo esc_attr($infos_third_icon_setting);?>"></i>
|
47 |
+
</div>
|
48 |
+
<div class="text-center text-md-center">
|
49 |
+
<h5><?php echo esc_attr( $info_title3 ); ?></h5>
|
50 |
+
<p class="info-third-desc"><?php echo esc_attr( $info_description3 );?></p>
|
51 |
+
</div>
|
52 |
+
</div>
|
53 |
+
</div>
|
54 |
+
</div>
|
55 |
+
</div>
|
56 |
+
</section>
|
57 |
+
<?php
|
58 |
+
}
|
59 |
+
} endif; ?>
|
60 |
+
<?php
|
61 |
+
if ( function_exists( 'conceptly_lite_info' ) ) {
|
62 |
+
$section_priority = apply_filters( 'conceptly_section_priority', 12, 'conceptly_lite_info' );
|
63 |
+
add_action( 'conceptly_sections', 'conceptly_lite_info', absint( $section_priority ) );
|
64 |
+
}
|
inc/techine/techine.php
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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/techine/sections/above-header.php';
|
9 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/conceptly/features/conceptly-header.php';
|
10 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/techine/features/techine-header.php';
|
11 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/conceptly/features/conceptly-call-to-action.php';
|
12 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/conceptly/features/conceptly-features.php';
|
13 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/conceptly/features/conceptly-info.php';
|
14 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/conceptly/features/conceptly-service.php';
|
15 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/conceptly/features/conceptly-slider.php';
|
16 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/conceptly/features/conceptly-sponsers.php';
|
17 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/conceptly/features/conceptly-typography.php';
|
18 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/conceptly/features/conceptly-navigation.php';
|
19 |
+
|
20 |
+
if ( ! function_exists( 'cleverfox_conceptly_frontpage_sections' ) ) :
|
21 |
+
function cleverfox_conceptly_frontpage_sections() {
|
22 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/conceptly/sections/section-slider.php';
|
23 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/techine/sections/section-flash.php';
|
24 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/conceptly/sections/section-service.php';
|
25 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/conceptly/sections/section-features.php';
|
26 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/conceptly/sections/section-cta.php';
|
27 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/conceptly/sections/section-sponser.php';
|
28 |
+
}
|
29 |
+
add_action( 'conceptly_sections', 'cleverfox_conceptly_frontpage_sections' );
|
30 |
+
endif;
|
31 |
+
|
32 |
+
function cleverfox_conceptly_enqueue_scripts() {
|
33 |
+
wp_enqueue_style('animate',CLEVERFOX_PLUGIN_URL .'/inc/assets/css/animate.css');
|
34 |
+
wp_enqueue_style('owl-carousel-min',CLEVERFOX_PLUGIN_URL .'/inc/assets/css/owl.carousel.min.css');
|
35 |
+
wp_enqueue_script( 'owl-carousel', CLEVERFOX_PLUGIN_URL . 'inc/assets/js/owl.carousel.min.js', array('jquery'), false, true);
|
36 |
+
wp_enqueue_script('owlCarousel2Thumbs', CLEVERFOX_PLUGIN_URL . 'inc/assets/js/owlCarousel2Thumbs.min.js', array('jquery'), false, true);
|
37 |
+
}
|
38 |
+
add_action( 'wp_enqueue_scripts', 'cleverfox_conceptly_enqueue_scripts' );
|
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: 5.9
|
6 |
Requires PHP: 5.6
|
7 |
-
Stable tag: 11.
|
8 |
License: GPLv3 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
|
10 |
|
@@ -126,6 +126,9 @@ Clever Fox WordPress plugin is licensed under the GPL3 (https://www.gnu.org/lice
|
|
126 |
|
127 |
== Changelog ==
|
128 |
|
|
|
|
|
|
|
129 |
= 11.0 =
|
130 |
* Conceptly Theme Escaping Issue Fixed in Service Section
|
131 |
|
4 |
Requires at least: 4.0
|
5 |
Tested up to: 5.9
|
6 |
Requires PHP: 5.6
|
7 |
+
Stable tag: 11.1
|
8 |
License: GPLv3 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
|
10 |
|
126 |
|
127 |
== Changelog ==
|
128 |
|
129 |
+
= 11.1 =
|
130 |
+
* Techine Theme Functionality Added
|
131 |
+
|
132 |
= 11.0 =
|
133 |
* Conceptly Theme Escaping Issue Fixed in Service Section
|
134 |
|