Server IP : 172.24.0.40 / Your IP : 216.73.216.239 Web Server : Apache System : Linux dbweb26.ust.edu.ph 4.18.0-513.5.1.el8_9.x86_64 #1 SMP Fri Sep 29 05:21:10 EDT 2023 x86_64 User : apache ( 48) PHP Version : 8.2.18 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/lawjournal/public_html/wp-content/themes/oceanwp/partials/ |
Upload File : |
<?php /** * The template for displaying the scroll top button. * * @package OceanWP WordPress theme */ // Exit if accessed directly. if ( ! defined( 'ABSPATH' ) ) { exit; } // If no scroll top button. if ( ! oceanwp_display_scroll_up_button() ) { return; } // Classes. $classes = array(); // Position. $position = apply_filters( 'ocean_scroll_top_position', get_theme_mod( 'ocean_scroll_top_position' ) ); $position = $position ? $position : 'right'; $classes[] = 'scroll-top-' . esc_attr( $position ); // Visibility. $visibility = get_theme_mod( 'ocean_scroll_top_visibility', 'all-devices' ); if ( 'all-devices' !== $visibility ) { $classes[] = $visibility; } // Turn into space seperated list. $classes = implode( ' ', $classes ); // Get arrow. $arrow = apply_filters( 'ocean_scroll_top_arrow', get_theme_mod( 'ocean_scroll_top_arrow', 'angle_up' ) ); $arrow = in_array( $arrow, oceanwp_get_scrolltotop_icons(), true ) && $arrow ? $arrow : 'angle_up'; ?> <a aria-label="<?php echo esc_attr( oceanwp_theme_strings( 'owp-string-scroll-top', false ) ); ?>" href="#" id="scroll-top" class="<?php echo esc_attr( $classes ); ?>"><?php oceanwp_icon( $arrow ); ?></a>