File: /home/mmickelson/otbproductions.org.old/wp-content/themes/eclipse/core/actions/footer-actions.php
<?php
/**
* Footer actions used by response.
*
* Author: Tyler Cunningham
* Copyright: © 2012
* {@link http://cyberchimps.com/ CyberChimps LLC}
*
* Released under the terms of the GNU General Public License.
* You should have received a copy of the GNU General Public License,
* along with this software. In the main directory, see: /licensing/
* If not, see: {@link http://www.gnu.org/licenses/}.
*
* @package response
* @since 1.0
*/
/**
* response footer actions
*/
add_action ( 'response_footer', 'response_footer_widgets' );
add_action ( 'response_secondary_footer', 'response_secondary_footer_credit' );
//add_action ( 'response_secondary_footer', 'response_secondary_footer_copyright' );
/**
* Set the footer widgetized area.
*
* @since 1.0
*/
function response_footer_widgets() {
if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar("Footer") ) { ?>
<div class="three columns footer-widgets">
<h3 class="footer-widget-title"><?php printf( __( 'Footer Widgets', 'response' )); ?></h3>
<p class="footer-text">To customize this widget area login to your admin account, go to Appearance, then Widgets and drag new widgets into Footer Widgets</p>
</div>
<div class="three columns footer-widgets">
<h3 class="footer-widget-title"><?php printf( __( 'Recent Posts', 'response' )); ?></h3>
<ul>
<?php wp_get_archives('type=postbypost&limit=4'); ?>
</ul>
</div>
<div class="three columns footer-widgets">
<h3 class="footer-widget-title"><?php printf( __( 'WordPress', 'response' )); ?></h3>
<ul>
<?php wp_register(); ?>
<li><?php wp_loginout(); ?></li>
<li><a href="<?php echo esc_url( __('http://wordpress.org/', 'response' )); ?>" target="_blank" title="<?php esc_attr_e('Powered by WordPress, state-of-the-art semantic personal publishing platform.', 'response'); ?>"> <?php printf( __('WordPress', 'response' )); ?></a></li>
<?php wp_meta(); ?>
</ul>
</div>
<div class="three columns footer-widgets">
<h3 class="footer-widget-title"><?php printf( __( 'Search', 'response' )); ?></h3>
<?php get_search_form(); ?>
</div>
<?php }
echo "<div class='clear'></div> ";
}
/**
* Adds the afterfooter copyright area.
*
* @since 1.0
*/
function response_secondary_footer_copyright() {
global $options, $ec_themeslug; //call globals
if ($options->get($ec_themeslug.'_footer_text') == "") {
$copyright = get_bloginfo('name');
}
else {
$copyright = $options->get($ec_themeslug.'_footer_text');
}
echo "<div id='afterfootercopyright' class='six columns'>";
echo "© $copyright";
echo "</div>";
}
/**
* Adds the CyberChimps credit.
*
* @since 1.0
*/
function response_secondary_footer_credit() {
global $options, $ec_themeslug; //call globals
?>
<div id="credit" class="twelve columns">
<a href="http://cyberchimps.com/" target="_blank"><img src="<?php echo get_template_directory_uri(); ?>/images/achimps.png" alt="credit" /></a>
</div>
<?php
}
/**
* End
*/
?>