adding hooks & actions

This commit is contained in:
Ben Word
2011-05-26 00:27:06 -06:00
parent c2f44c8422
commit f3c1b46d18
21 changed files with 238 additions and 77 deletions

34
inc/roots-actions.php Normal file
View 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 -->";
}
}
?>