AnonSec Shell
Server IP : 144.76.79.100  /  Your IP : 216.73.216.103   [ Reverse IP ]
Web Server : Apache
System : Linux ch05.wehostwebserver.com 5.14.0-611.5.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Nov 11 08:09:09 EST 2025 x86_64
User : razzlestore ( 1092)
PHP Version : 8.2.29
Disable Function : NONE
Domains : 343 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/razzlestore/public_html/wp-content/themes/zugan/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /home/razzlestore/public_html/wp-content/themes/zugan/functions.php
<?php
/**
 * @author  RadiusTheme
 * @since   1.0
 * @version 1.0
 */
/* STANDARD PAYPAL */
add_filter( 'woocommerce_should_load_paypal_standard', '__return_true' );
/* STANDARD PAYPAL */




$zugan_theme_data = wp_get_theme();	
	$action  = 'zugan_theme_init';
	do_action( $action );
	define( 'ZUGAN_VERSION', ( WP_DEBUG ) ? time() : $zugan_theme_data->get( 'Version' ) );
	define( 'ZUGAN_AUTHOR_URI', $zugan_theme_data->get( 'AuthorURI' ) );

	if ( version_compare( PHP_VERSION, '5.3', '>=' ) ) {
	
		// DIR
		define( 'ZUGAN_BASE_DIR',    get_template_directory(). '/' );
		define( 'ZUGAN_INC_DIR',     ZUGAN_BASE_DIR . 'inc/' );
		define( 'ZUGAN_VIEW_DIR',    ZUGAN_INC_DIR . 'views/' );
		define( 'ZUGAN_LIB_DIR',     ZUGAN_BASE_DIR . 'lib/' );
		define( 'ZUGAN_WID_DIR',     ZUGAN_INC_DIR . 'widgets/' );
		define( 'ZUGAN_PLUGINS_DIR', ZUGAN_INC_DIR . 'plugins/' );
		define( 'ZUGAN_MODULES_DIR', ZUGAN_INC_DIR . 'modules/' );
		define( 'ZUGAN_ASSETS_DIR',  ZUGAN_BASE_DIR . 'assets/' );
		define( 'ZUGAN_CSS_DIR',     ZUGAN_ASSETS_DIR . 'css/' );
		define( 'ZUGAN_JS_DIR',      ZUGAN_ASSETS_DIR . 'js/' );

		// URL
		define( 'ZUGAN_BASE_URL',    get_template_directory_uri(). '/' );
		define( 'ZUGAN_ASSETS_URL',  ZUGAN_BASE_URL . 'assets/' );
		define( 'ZUGAN_CSS_URL',     ZUGAN_ASSETS_URL . 'css/' );
		define( 'ZUGAN_JS_URL',      ZUGAN_ASSETS_URL . 'js/' );
		define( 'ZUGAN_IMG_URL',     ZUGAN_ASSETS_URL . 'img/' );
		define( 'ZUGAN_LIB_URL',     ZUGAN_BASE_URL . 'lib/' );

		//Other Plugins active or not
		define( 'ZUGAN_BBPRESS_IS_ACTIVE', class_exists( 'bbPress' ) );

		// Includes
		require_once ZUGAN_INC_DIR . 'helper-functions.php';
		require_once ZUGAN_INC_DIR . 'redux-config.php';
		require_once ZUGAN_INC_DIR . 'zugan.php';
		require_once ZUGAN_INC_DIR . 'general.php';
		require_once ZUGAN_INC_DIR . 'scripts.php';
		require_once ZUGAN_INC_DIR . 'template-vars.php';
		require_once ZUGAN_INC_DIR . 'sidebar-generator.php';

		// Includes Modules	
		require_once ZUGAN_MODULES_DIR . 'rt-post-ticker.php';
		require_once ZUGAN_MODULES_DIR . 'rt-post-related.php';	
		require_once ZUGAN_MODULES_DIR . 'rt-ad-management.php';		

		// WooCommerce
		if ( class_exists( 'WooCommerce' ) ) {
			require_once ZUGAN_INC_DIR . 'woo-functions.php';
			require_once ZUGAN_INC_DIR . 'woo-hooks.php';
		}
			
		// TGM Plugin Activation
		require_once ZUGAN_LIB_DIR . 'class-tgm-plugin-activation.php';
		require_once ZUGAN_INC_DIR . 'tgm-config.php';
	
	} else {
		
		add_filter( 'template_include', 'zugan_fail_php_template', 99 );
		add_action( 'admin_notices', 'zugan_fail_php_version' );
		
		function zugan_fail_php_template( $template ) {
			$template = locate_template( array( 'fallback.php' ) );
			return $template;
		}

		function zugan_fail_php_version() {
			$msg = sprintf( esc_html__( 'Error: Your current PHP version is %s. You need at least PHP version 5.3+ to make this theme to work. Please ask your hosting provider to upgrade your PHP version into 5.3+', 'zugan' ), PHP_VERSION );
			echo '<div class="error">' . $msg . '</div>';
		}
	}


function zugan_overlap_menu(){
	?>
	<section>
		<div class="offcanvas-navigation"><?php wp_nav_menu( array( 'theme_location' => 'topright','container' => '' ) );?></div>
		<svg class="shape-overlays" viewBox="0 0 100 100" preserveAspectRatio="none">
			<path class="shape-overlays__path" d="M 0 100 C 50 100 50 100 100 100 V 100 H 0"></path>
			<path class="shape-overlays__path" d="M 0 100 C 50 100 50 100 100 100 V 100 H 0"></path>
			<path class="shape-overlays__path" d="M 0 100 C 50 100 50 100 100 100 V 100 H 0"></path>
		</svg>
	</section>
	<?php
}

add_editor_style( 'style-editor.css' );












// PRODUCT IMAGE CLICKABLE START

if ( ! function_exists( 'woocommerce_get_product_thumbnail' ) ) {
	function woocommerce_get_product_thumbnail( $size = 'shop_catalog', $deprecated1 = 0, $deprecated2 = 0 ) {
		global $post;
		if ( has_post_thumbnail() ) {
			return '<a href="' . get_permalink( $post->ID ) . '">' . get_the_post_thumbnail( $post->ID, $size ) . '</a>';
			} elseif ( wc_placeholder_img_src() ) {
			return wc_placeholder_img( $size );
		}
	}
}
// PRODUCT IMAGE CLICKABLE END



add_action( 'woocommerce_single_product_summary', 'woocommerce_output_product_data_tabs', 60 );


Anon7 - 2022
AnonSec Team