https://t.me/RX1948
Server : Apache
System : Linux server.lienzindia.com 4.18.0-348.7.1.el8_5.x86_64 #1 SMP Wed Dec 22 13:25:12 UTC 2021 x86_64
User : plutus ( 1007)
PHP Version : 7.4.33
Disable Function : NONE
Directory :  /home/plutus/public_html/wp-content/themes/vrm/partials/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/plutus/public_html/wp-content/themes/vrm/partials/scroll-top.php
<?php

/**
 * Scroll back to top button.
 *
 * @package Total WordPress theme
 * @subpackage Partials
 * @version 5.8.0
 */

defined( 'ABSPATH' ) || exit;

$style         = (string) get_theme_mod( 'scroll_top_style' ) ?: 'default';
$arrow         = (string) get_theme_mod( 'scroll_top_arrow' ) ?: 'chevron-up';
$reveal_offset = (string) get_theme_mod( 'local_scroll_reveal_offset' );
$reveal_offset = ( $reveal_offset || '0' === $reveal_offset ) ? absint( $reveal_offset ) : 100;

// Define classnames.
$class = [
	'wpex-flex',
	'wpex-items-center',
	'wpex-justify-center',
	'wpex-fixed',
	'wpex-rounded-full',
	'wpex-text-center',
	'wpex-box-content',
	'wpex-transition-all',
	'wpex-duration-200',
	'wpex-bottom-0',
	'wpex-right-0',
	'wpex-mr-25',
	'wpex-mb-25',
	'wpex-no-underline',
	'wpex-print-hidden',
];

// Add style based classes.
switch ( $style ) {
	case 'default':
		$class[] = 'wpex-surface-2';
		$class[] = 'wpex-text-4';
		$class[] = 'wpex-hover-bg-accent';
	break;
	case 'black':
		$class[] = 'wpex-bg-black';
		$class[] = 'wpex-text-white';
		$class[] = 'wpex-hover-bg-accent';
		$class[] = 'wpex-hover-text-white';
	break;
	case 'accent':
		$class[] = 'wpex-bg-accent';
		$class[] = 'wpex-hover-bg-accent_alt';
	break;
	case 'icon':
		// No extra classes needed for this style.
	break;
}

// Add shadow class.
if ( $shadow = (string) get_theme_mod( 'scroll_top_shadow', '' ) ) {
	$class[] = "wpex-{$shadow}";
}

// Hide arrow if reveal offset isn't 0.
if ( 0 !== $reveal_offset ) {
	$class[] = 'wpex-invisible';
	$class[] = 'wpex-opacity-0';
}

/**
 * Filters the scroll to top link class.
 *
 * @param array $class
 */
$class = (array) apply_filters( 'wpex_scroll_top_class', $class );

// Get local scroll speed.
$speed = (string) get_theme_mod( 'scroll_top_speed' );
$speed = ( $speed || '0' === $speed ) ? absint( $speed ) : wpex_get_local_scroll_speed();

// Open breakpoint wrapper.
if ( $breakpoint = (string) get_theme_mod( 'scroll_top_breakpoint' ) ) {
	echo '<div class="' . wpex_utl_visibility_class( 'hide', $breakpoint ) . '">';
}

// Define link attributes.
$link_attrs = [
	'href'               => '#outer-wrap',
	'id'                 => 'site-scroll-top',
	'class'              => array_map( 'sanitize_html_class', $class ),
	'data-scroll-speed'  => strval( $speed ),
	'data-scroll-offset' => strval( $reveal_offset ),
];

if ( $easing = wpex_get_local_scroll_easing() ) {
	$link_attrs['data-scroll-easing'] = esc_attr( $easing );
}

?>

<a <?php echo wpex_parse_attrs( $link_attrs ); ?><?php wpex_aria_landmark( 'scroll_top' ); ?>><?php

	// Display Icon.
	wpex_theme_icon_html( $arrow );

	// Screen reader text.
	echo '<span class="screen-reader-text">' . esc_html__( 'Back To Top', 'total' ) . '</span>';

?></a>

<?php
// Close breakpoint wrapper.
if ( $breakpoint ) {
	echo '</div>';
}

https://t.me/RX1948 - 2025