Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Matched Jetpack Infinite Scroll plugin footer text to standard footer…

… text.
  • Loading branch information...
commit 4bd4b2f89b9c0e0bb287a730d72b265d3f3f3ad1 1 parent 52c9ff6
Jeremy Clark authored
Showing with 28 additions and 27 deletions.
  1. +1 −2  footer.php
  2. +0 −25 functions.php
  3. +27 −0 functions/tech-template-tags.php
3  footer.php
View
@@ -4,8 +4,7 @@
</div>
<div style="clear:both"></div>
<p class="credit">
- <?php do_action( 'tech_footer' );
- ?>
+ <?php echo tech_footer_text(); ?>
</p>
<?php
if ( has_nav_menu( 'footer' ) ) {
25 functions.php
View
@@ -793,31 +793,6 @@ function tech_content_width() {
return $output;
}
-/**
- * Techozoic footer text function
- *
- * Used to replace shortcodes used in footer_text option with correct values.
- *
- *
- * @access public
- * @since 1.8.8
- */
-
-add_action( 'tech_footer', 'tech_footer_text' ); // Adds custom footer text defined on option page to footer.
-
-function tech_footer_text() {
- if ( function_exists( 'wp_get_theme' ) ) {
- $theme_data = wp_get_theme( 'techozoic-fluid' );
- $version = $theme_data->Version;
- } else {
- $theme_data = get_theme_data( get_template_directory() . '/style.css' );
- $version = $theme_data['Version'];
- }
- $string = of_get_option( 'footer_text', '%COPYRIGHT% %BLOGNAME% | %THEMENAME% %THEMEVER% by %THEMEAUTHOR%. | %TOP% | %LOGIN% <br /> <small>%MYSQL%</small>' );
- $shortcode = array( '/%BLOGNAME%/i', '/%THEMENAME%/i', '/%THEMEVER%/i', '/%THEMEAUTHOR%/i', '/%TOP%/i', '/%COPYRIGHT%/i', '/%MYSQL%/i', '/%LOGIN%/i' );
- $output = array( get_bloginfo( 'name' ), "Techozoic", $version, '<a href="http://clark-technet.com/"> Jeremy Clark</a>', '<a href="#top">' . __( 'Top', 'techozoic' ) . '</a>', '&copy; ' . date( 'Y' ), sprintf( __( '%1$d mySQL queries in %2$s seconds.', 'techozoic' ), get_num_queries(), timer_stop( 0 ) ), wp_loginout(get_permalink(), false) );
- echo preg_replace( $shortcode, $output, $string );
-}
/**
* Techozoic Sidebar Display Function
27 functions/tech-template-tags.php
View
@@ -13,6 +13,33 @@
*/
/**
+ * Techozoic footer text function
+ *
+ * Used to replace shortcodes used in footer_text option with correct values.
+ * add_filter is used to make the Jetpack Infinite Scroll footer use the same text.
+ *
+ *
+ * @access public
+ * @since 1.8.8
+ */
+
+add_filter( 'infinite_scroll_credit', 'tech_footer_text' );
+
+function tech_footer_text() {
+ if ( function_exists( 'wp_get_theme' ) ) {
+ $theme_data = wp_get_theme( 'techozoic-fluid' );
+ $version = $theme_data->Version;
+ } else {
+ $theme_data = get_theme_data( get_template_directory() . '/style.css' );
+ $version = $theme_data['Version'];
+ }
+ $string = of_get_option( 'footer_text', '%COPYRIGHT% %BLOGNAME% | %THEMENAME% %THEMEVER% by %THEMEAUTHOR%. | %TOP% | %LOGIN% <br /> <small>%MYSQL%</small>' );
+ $shortcode = array( '/%BLOGNAME%/i', '/%THEMENAME%/i', '/%THEMEVER%/i', '/%THEMEAUTHOR%/i', '/%TOP%/i', '/%COPYRIGHT%/i', '/%MYSQL%/i', '/%LOGIN%/i' );
+ $output = array( get_bloginfo( 'name' ), "Techozoic", $version, '<a href="http://clark-technet.com/"> Jeremy Clark</a>', '<a href="#top">' . __( 'Top', 'techozoic' ) . '</a>', '&copy; ' . date( 'Y' ), sprintf( __( '%1$d mySQL queries in %2$s seconds.', 'techozoic' ), get_num_queries(), timer_stop( 0 ) ), wp_loginout(get_permalink(), false) );
+ return preg_replace( $shortcode, $output, $string );
+}
+
+/**
* Techozoic Social Media Icons Function
*
* Echos the social media icon links and images as set in options.
Please sign in to comment.
Something went wrong with that request. Please try again.