403Webshell
Server IP : 104.21.28.229  /  Your IP : 216.73.216.216
Web Server : Apache/2
System : Linux hosting8537.lvs 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User : mienphi ( 1014)
PHP Version : 8.2.14
Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/mienphi/domains/mienphi.org/public_html/wp-content/themes/eduma/inc/header/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/mienphi/domains/mienphi.org/public_html/wp-content/themes/eduma/inc/header/logo-mobile.php
<?php
$theme_options_data = get_theme_mods();
if ( wp_is_mobile() && ( isset( $theme_options_data['thim_config_logo_mobile'] ) && $theme_options_data['thim_config_logo_mobile'] == 'custom_logo' ) ) {
	// custom logo mobile
	//add_action( 'thim_logo', 'thim_logo_mobile', 2 );
	if ( !function_exists( 'thim_logo_mobile' ) ) :
		function thim_logo_mobile() {

			$theme_options_data = get_theme_mods();
			if ( !empty( $theme_options_data['thim_logo_mobile'] ) ) {
				$thim_logo       = $theme_options_data['thim_logo_mobile'];
				//$logo_attachment = wp_get_attachment_image_src( $thim_logo, 'full' );
				if ( $thim_logo ) {
					$src   = $thim_logo;
					$style = '';
				} else {
					// Default image
					// Case: image ID from demo data
					$src   = get_template_directory_uri() . '/images/logo.png';
					$style = 'width="153" height="40"';
				}
			} else {
				// Default image
				// Case: The first install
				$src   = get_template_directory_uri() . '/images/logo.png';
				$style = 'width="153" height="40"';
			}

			echo '<a href="' . esc_url( home_url( '/' ) ) . '" rel="home" class="no-sticky-logo-mobile">';
			echo '<img src="' . esc_url( $src ) . '" alt="' . esc_attr( get_bloginfo( 'name' ) ) . '" ' . $style . '>';
			echo '</a>';

		}
	endif;

	if ( ( isset( $theme_options_data['thim_logo_mobile'] ) && $theme_options_data['thim_logo_mobile'] <> '' ) || ( isset( $theme_options_data['thim_sticky_logo_mobile'] ) && $theme_options_data['thim_sticky_logo_mobile'] <> '' ) ) {
		//add_action( 'thim_sticky_logo', 'thim_sticky_logo_mobile', 2 );
		// get sticky logo
		if ( !function_exists( 'thim_sticky_logo_mobile' ) ) :
			function thim_sticky_logo_mobile() {
				$theme_options_data = get_theme_mods();
				if ( !empty( $theme_options_data['thim_sticky_logo_mobile'] ) ) {
					$thim_logo       = $theme_options_data['thim_sticky_logo_mobile'];
					//$logo_attachment = wp_get_attachment_image_src( $thim_logo, 'full' );
					if ( $thim_logo ) {
						$src   = $thim_logo;
						$style = '';
					} else {
						// Default image
						// Case: image ID from demo data
						$src   = get_template_directory_uri() . '/images/logo.png';
						$style = 'width="153" height="40"';
					}
				} else {
					// Default image
					// Case: The first install
					$src   = get_template_directory_uri() . '/images/logo.png';
					$style = 'width="153" height="40"';
				}

				echo '<a href="' . esc_url( home_url( '/' ) ) . '" rel="home" class="sticky-logo-mobile">';
				echo '<img src="' . esc_url( $src ) . '" alt="' . esc_attr( get_bloginfo( 'name' ) ) . '" ' . $style . '>';
				echo '</a>';
			}
		endif; // thim_sticky_logo
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit