Server IP : 15.235.198.142 / Your IP : 216.73.216.67 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ballsack 6.8.0-45-generic #45-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 30 12:02:04 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/yme/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>