HEX
Server: Apache/2.4.65 (Debian)
System: Linux wordpress-7cb4c6b6f6-4fw4s 5.15.0-131-generic #141-Ubuntu SMP Fri Jan 10 21:18:28 UTC 2025 x86_64
User: www-data (33)
PHP: 8.3.27
Disabled: NONE
Upload Files
File: /var/www/html/wp-content/plugins/jet-elements/templates/jet-weather/global/current.php
<?php
/**
 * Current weather template.
 */
$settings = $this->get_settings_for_display();
$data     = $this->weather_data;
?>
<div class="jet-weather__current">
	<div class="jet-weather__current-temp"><?php echo $this->get_weather_temp( $data['current']['temp'] ); // phpcs:ignore ?></div>

	<div class="jet-weather__current-icon-box">
		<div class="jet-weather__current-icon"><?php echo $this->get_weather_svg_icon( $data['current']['code'], true, $data['current']['is_day'] ); // phpcs:ignore ?></div>
		<div class="jet-weather__current-desc"><?php echo $this->get_weather_desc( $data['current']['code'], $data['current']['is_day'] ); // phpcs:ignore ?></div>
	</div>
</div>
<?php if ( isset( $settings['show_current_weather_details'] ) && 'true' === $settings['show_current_weather_details'] ) { ?>
	<div class="jet-weather__details">
		<div class="jet-weather__details-item jet-weather__current-day"><?php echo date_i18n( 'l' ); // phpcs:ignore ?></div>

		<div class="jet-weather__details-item jet-weather__current-humidity">
			<?php echo $this->get_weather_svg_icon( 'humidity' ); // phpcs:ignore ?>
			<?php echo $data['current']['humidity']; // phpcs:ignore ?>
		</div>

		<div class="jet-weather__details-item jet-weather__current-sunrise">
			<?php echo $this->get_weather_svg_icon( 'sunrise' ); // phpcs:ignore ?>
			<?php echo $this->get_weather_astro_time( $data['current']['sunrise'] ); // phpcs:ignore ?>
		</div>

		<div class="jet-weather__details-item jet-weather__current-min-temp"><?php
			printf( '%1$s %2$s', esc_html__( 'Min:', 'jet-elements' ), $this->get_weather_temp( $data['current']['temp_min'] ) ); // phpcs:ignore
		?></div>

		<div class="jet-weather__details-item jet-weather__current-pressure">
			<?php echo $this->get_weather_svg_icon( 'pressure' ); // phpcs:ignore ?>
			<?php echo $this->get_weather_pressure( $data['current']['pressure'] ); // phpcs:ignore ?>
		</div>

		<div class="jet-weather__details-item jet-weather__current-sunset">
			<?php echo $this->get_weather_svg_icon( 'sunset' ); // phpcs:ignore ?>
			<?php echo $this->get_weather_astro_time( $data['current']['sunset'] ); // phpcs:ignore ?>
		</div>

		<div class="jet-weather__details-item jet-weather__current-max-temp"><?php
			printf( '%1$s %2$s', esc_html__( 'Max:', 'jet-elements' ), $this->get_weather_temp( $data['current']['temp_max'] ) ); // phpcs:ignore
		?></div>

		<div class="jet-weather__details-item jet-weather__current-wind">
			<?php echo $this->get_weather_svg_icon( 'wind' ); // phpcs:ignore ?>
			<?php echo $this->get_wind( $data['current']['wind_speed'], $data['current']['wind_dir'] ); // phpcs:ignore ?>
		</div>
	</div>
<?php } ?>