Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Bower components Debian packages RPM packages NuGet packages

jsarnowski / jsarnowski/jet-elements   php

Repository URL to install this package:

Version: 2.5.6 

/ 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'] ); ?></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'] ); ?></div>
		<div class="jet-weather__current-desc"><?php echo $this->get_weather_desc( $data['current']['code'], $data['current']['is_day'] ); ?></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' ); ?></div>

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

		<div class="jet-weather__details-item jet-weather__current-sunrise">
			<?php echo $this->get_weather_svg_icon( 'sunrise' ); ?>
			<?php echo $this->get_weather_astro_time( $data['current']['sunrise'] ); ?>
		</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'] ) );
		?></div>

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

		<div class="jet-weather__details-item jet-weather__current-sunset">
			<?php echo $this->get_weather_svg_icon( 'sunset' ); ?>
			<?php echo $this->get_weather_astro_time( $data['current']['sunset'] ); ?>
		</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'] ) );
		?></div>

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