adding hooks & actions
This commit is contained in:
34
inc/roots-actions.php
Normal file
34
inc/roots-actions.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
add_action('roots_header_before', 'roots_1140_header_before');
|
||||
add_action('roots_header_after', 'roots_1140_header_after');
|
||||
add_action('roots_footer_before', 'roots_1140_footer_before');
|
||||
add_action('roots_footer_after', 'roots_1140_footer_after');
|
||||
|
||||
function roots_1140_header_before() {
|
||||
if (get_option('roots_css_framework') === '1140') {
|
||||
echo "<div class=\"row\">";
|
||||
}
|
||||
}
|
||||
|
||||
function roots_1140_header_after() {
|
||||
if (get_option('roots_css_framework') === '1140') {
|
||||
echo "</div><!-- /.row -->";
|
||||
echo "<div class=\"row\">";
|
||||
}
|
||||
}
|
||||
|
||||
function roots_1140_footer_before() {
|
||||
if (get_option('roots_css_framework') === '1140') {
|
||||
echo "</div><!-- /.row -->";
|
||||
echo "<div class=\"row\">";
|
||||
}
|
||||
}
|
||||
|
||||
function roots_1140_footer_after() {
|
||||
if (get_option('roots_css_framework') === '1140') {
|
||||
echo "</div><!-- /.row -->";
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user