Instantly share code, notes, and snippets.
josueochoa/footer.php Secret
Created
September 5, 2013 03:09
Star
You must be signed in to star a gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//set a few javascript vars for the slideshow: autoplay, autoplay duration, should slidecontrolls be displayed | |
echo "\n<!-- some parameters set in the backend and necessary for avia.js to work-->"; | |
echo "\n<script type='text/javascript'>\n"; | |
echo "\tvar avia_autoplay = '".avia_get_modified_option('slideshow_autoplay','_overwrite_slideshow_default')."';\n"; | |
echo "\tvar avia_slideshow_controlls = '".avia_get_modified_option('slideshow_controlls','_overwrite_slideshow_default')."';\n"; | |
echo "\tvar avia_autoplay_duration = '".avia_get_modified_option('slideshow_duration','_overwrite_slideshow_default')."';\n"; | |
echo "</script>\n"; | |
//reset wordpress query in case we modified it | |
wp_reset_query(); | |
/** | |
* The footer default dummy widgets are defined in folder includes/register-widget-area.php | |
* If you add a widget to the appropriate widget area in your wordpress backend the | |
* dummy widget will be removed and replaced by the real one previously defined | |
*/ | |
?> | |
<!-- ####### FOOTER CONTAINER ####### --> | |
<div class='container_wrap' id='footer'> | |
<div class='container'> | |
<div class="one_third first"> | |
<span class='arrow-down'></span> | |
<?php if (function_exists('dynamic_sidebar') && dynamic_sidebar('Footer - column1') ) : else : avia_dummy_widget(1); endif; // dummy widgets defined at the bottom of sidebar-widgets.php ?> | |
</div> | |
<div class="one_third"> | |
<span class='arrow-down'></span> | |
<?php if (function_exists('dynamic_sidebar') && dynamic_sidebar('Footer - column2') ) : else : avia_dummy_widget(2); endif; // dummy widgets defined at the bottom of sidebar-widgets.php ?> | |
</div> | |
<div class="one_third"> | |
<span class='arrow-down'></span> | |
<?php if (function_exists('dynamic_sidebar') && dynamic_sidebar('Footer - column5') ) : else : ?> | |
<a href='<?php echo get_permalink(avia_get_option('avia, email_page'));?>' class='custom_button rounded'><strong><?php _e('Contact Form','avia_framework'); ?></strong><span><?php _e('get in touch with us','avia_framework'); ?></span></a> | |
<p><?php _e('This site uses valid HTML and CSS. All contents Copyright ©','avia_framework'); echo get_bloginfo('name');?></p> | |
<?php endif;?> | |
</div> | |
</div> | |
</div> | |
<!-- ####### END FOOTER CONTAINER ####### --> | |
<!-- ####### SOCKET CONTAINER ####### --> | |
<div class='container_wrap' id='socket'> | |
<div class='container'> | |
<span class='copyright'>© <?php _e('Copyright','avia_framework'); ?> - <a href='<?php echo home_url('/'); ?>'><?php echo get_bloginfo('name');?></a> - <a href='http://www.kriesi.at'>Theme Design by Kriesi.at</a></span> | |
<ul class="social_bookmarks"> | |
<li class='rss'><a href="<?php bloginfo('rss2_url'); ?>">RSS</a></li> | |
<?php | |
if($twitter = avia_get_option('avia, twitter')) echo "<li class='twitter'><a href='http://twitter.com/".$twitter."'>Twitter</a></li>"; | |
if($facebook = avia_get_option('avia, facebook')) echo "<li class='facebook'><a href='".$facebook."'>Twitter</a></li>"; | |
?> | |
</ul><!-- end social_bookmarks--> | |
</div> | |
</div> | |
<!-- ####### END SOCKET CONTAINER ####### --> | |
</div><!-- end wrap_all --> | |
<?php | |
/* Always have wp_footer() just before the closing </body> | |
* tag of your theme, or you will break many plugins, which | |
* generally use this hook to reference JavaScript files. | |
*/ | |
avia_option('analytics', false, true, true); | |
wp_footer(); | |
?> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment