Skip to content

Commit a71bc84

Browse files
author
Michael M
committed
Merge branch 'release/1.1.1'
2 parents d88b493 + 9e1e106 commit a71bc84

File tree

5 files changed

+49
-1
lines changed

5 files changed

+49
-1
lines changed

footer.php

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<?php vct_hook_before_footer(); ?>
12
<footer id="footer">
23
<?php
34
if ( get_theme_mod( 'vct_footer_area_widget_area', false ) ):
@@ -84,6 +85,7 @@
8485
</div>
8586
<?php echo get_theme_mod( 'vct_scripts_footer', '' );?>
8687
</footer>
88+
<?php vct_hook_after_footer(); ?>
8789
<?php wp_footer(); ?>
8890
</body>
8991
</html>

functions.php

+1
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ function visualcomposerstarter_setup() {
180180
require get_template_directory() . '/inc/customizer/vct-fonts.class.php';
181181
require get_template_directory() . '/inc/customizer/vct-customizer.class.php';
182182
require get_template_directory() . '/inc/vct-update.class.php';
183+
require get_template_directory() . '/inc/hooks.php';
183184
new VCT_Fonts();
184185
new VCT_Customizer();
185186
new VCT_Update();

header.php

+3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
<!DOCTYPE html>
22
<html <?php language_attributes(); ?>>
33
<head>
4+
<?php vct_hook_after_head(); ?>
45
<meta charset="<?php bloginfo( 'charset' ); ?>">
56
<meta name="viewport" content="width=device-width, initial-scale=1">
67
<?php wp_head() ?>
78
<?php echo get_theme_mod( 'vct_scripts_header', '' );?>
89
</head>
910
<body <?php body_class(); ?>>
11+
<?php vct_hook_before_header(); ?>
1012
<header id="header">
1113
<nav class="navbar">
1214
<div class="<?php echo vct_get_header_container_class(); ?>">
@@ -64,3 +66,4 @@
6466
</div>
6567
<?php endif; ?>
6668
</header>
69+
<?php vct_hook_after_header(); ?>

inc/hooks.php

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
<?php
2+
/**
3+
* Setup theme hooks
4+
*/
5+
6+
/**
7+
* Hook after <head> tag
8+
* @since 1.1.1
9+
*/
10+
function vct_hook_after_head() {
11+
do_action( 'vct_hook_after_head' );
12+
}
13+
14+
/**
15+
* Hook before theme header
16+
* @since 1.1.1
17+
*/
18+
function vct_hook_before_header() {
19+
do_action( 'vct_hook_before_header' );
20+
}
21+
/**
22+
* Hook after theme header
23+
* @since 1.1.1
24+
*/
25+
function vct_hook_after_header() {
26+
do_action( 'vct_hook_after_header' );
27+
}
28+
29+
/**
30+
* Hook before theme footer
31+
* @since 1.1.1
32+
*/
33+
function vct_hook_before_footer() {
34+
do_action( 'vct_hook_before_footer' );
35+
}
36+
/**
37+
* Hook after theme footer
38+
* @since 1.1.1
39+
*/
40+
function vct_hook_after_footer() {
41+
do_action( 'vct_hook_after_footer' );
42+
}

style.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Theme URI: http://visualcomposer.io
44
Author: Michael M - WPBakery
55
Author URI: http://visualcomposer.io
66
Description: Visual Composer Starter theme designed to be a perfect companion for a simple and good looking website.
7-
Version: 1.1
7+
Version: 1.1.1
88
License: GNU General Public License v2 or later
99
License URI: http://www.gnu.org/licenses/gpl-2.0.html
1010
Tags: starter, custom menu, minimalistic, responsive, basic, business, blog, one-column, comments, light, two-columns, white, sandwich menu, theme-options, full-width, boxed, left-sidebar, right-sidebar, sticky-post, translation-ready, custom-background, blue, visual-composer, featured-image, no-sidebar, editor-style, flexible-header, custom-header

0 commit comments

Comments
 (0)