Permalink
Browse files

Add the hybrid_footer_content() function for outputting a theme's foo…

…ter content.
  • Loading branch information...
1 parent de90d6b commit ab09fc5d53f74e51932c326ebf2c8a3384fcbaa3 @justintadlock committed Jul 5, 2012
Showing with 14 additions and 0 deletions.
  1. +14 −0 functions/utility.php
View
@@ -164,6 +164,20 @@ function hybrid_site_description() {
}
/**
+ * Standardized function for outputting the footer content.
+ *
+ * @since 1.4.0
+ * @access public
+ * @return void
+ */
+function hybrid_footer_content() {
+
+ /* Only run the code if the theme supports the Hybrid Core theme settings. */
+ if ( current_theme_supports( 'hybrid-core-theme-settings' ) )
+ echo apply_atomic_shortcode( 'footer_content', hybrid_get_setting( 'footer_insert' ) );
+}
+
+/**
* Checks if a post of any post type has a custom template. This is the equivalent of WordPress'
* is_page_template() function with the exception that it works for all post types.
*

0 comments on commit ab09fc5

Please sign in to comment.