catchresponsive_scrollup

This function loads Scroll Up Navigation.

Description

catchresponsive_scrollup(); 

Usage

  1. if ( !function_exists( 'catchresponsive_scrollup' ) ) { 
  2. require_once '/inc/catchresponsive-core.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = catchresponsive_scrollup(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/inc/catchresponsive-core.php  
  1. function catchresponsive_scrollup() { 
  2. //catchresponsive_flush_transients(); 
  3. if ( !$catchresponsive_scrollup = get_transient( 'catchresponsive_scrollup' ) ) { 
  4.  
  5. // get the data value from theme options 
  6. echo '<!-- refreshing cache -->'; 
  7.  
  8. //site stats, analytics header code 
  9. if ( ! $options['disable_scrollup'] ) { 
  10. $catchresponsive_scrollup = '<a href="#masthead" id="scrollup" class="genericon"><span class="screen-reader-text">' . __( 'Scroll Up', 'catch-responsive' ) . '</span></a>' ; 
  11.  
  12. set_transient( 'catchresponsive_scrollup', $catchresponsive_scrollup, 86940 ); 
  13. echo $catchresponsive_scrollup;