HEX
Server: LiteSpeed
System: Linux hz1.serversetup.co 4.18.0-513.18.1.el8_9.x86_64 #1 SMP Thu Feb 22 03:02:37 EST 2024 x86_64
User: axonvira (1009)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system,proc_open,curl_multi_exec,show_source
Upload Files
File: /home/axonvira/.trash/Avada/templates/to-top.php
<?php
/**
 * ToTop template.
 *
 * @author     ThemeFusion
 * @copyright  (c) Copyright by ThemeFusion
 * @link       https://theme-fusion.com
 * @package    Avada
 * @subpackage Core
 */

// Do not allow directly accessing this file.
if ( ! defined( 'ABSPATH' ) ) {
	exit( 'Direct script access denied.' );
}

$is_builder = ( function_exists( 'fusion_is_preview_frame' ) && fusion_is_preview_frame() ) || ( function_exists( 'fusion_is_builder_frame' ) && fusion_is_builder_frame() );

if ( 'off' !== Avada()->settings->get( 'status_totop' ) || $is_builder ) {
	$to_top_position = explode( '_', Avada()->settings->get( 'totop_position' ) );
	$to_top_position = isset( $to_top_position[1] ) ? 'to-top-' . $to_top_position[0] . ' to-top-' . $to_top_position[1] : 'to-top-' . $to_top_position[0];
	
	?>
	<div class="to-top-container <?php echo esc_attr( $to_top_position ); ?>">
		<a href="#" id="toTop" class="fusion-top-top-link">
			<span class="screen-reader-text"><?php esc_html_e( 'Go to Top', 'Avada' ); ?></span>
		</a>
	</div>
	<?php 
}