Premium Addons Pro.', 'premium-addons-for-elementor' );
echo wp_kses_post( $message );
?>
settings = $settings;
$id = $this->get_id();
$api_key = apply_filters( 'pa_weather_api', $settings['api_key'] );
if ( empty( $api_key ) ) {
$notice = __( 'Please enter a valid API key.', 'premium-addons-for-elementor' );
?>
get_render_attribute_string( 'outer_wrapper' ) ); ?>>
render_weather_icon( $current['weather'][0]['icon'] ); ?>
render_hourly_forecast( $hourly_forecast, $timezone ); ?>
render_forecast_tabs( $weather_data['tabs_data'] );
} else {
$this->render_forecast_days( $weather_data['daily'], $settings['forecast_days'], $forecast_icon, $show_temp_icon );
}
}
?>
render_weather_icon( $current['weather'][0]['icon'] ); ?>
Feels Like:
render_forecast_tabs( $weather_data['tabs_data'] );
} else {
$this->render_forecast_days( $weather_data['daily'], $settings['forecast_days'], $forecast_icon, $show_temp_icon );
}
}
?>
render_weather_icon( $current['weather'][0]['icon'] ); ?>
Feels Like:
render_hourly_forecast( $hourly_forecast, $timezone ); ?>
render_forecast_tabs( $weather_data['tabs_data'] );
} else {
$this->render_forecast_days( $weather_data['daily'], $settings['forecast_days'], $forecast_icon, $show_temp_icon );
}
}
?>
settings['forecast_layouts'];
?>
render_weather_icon( $item['weather'][0]['icon'] ); ?>
render_weather_icon( $item['weather'][0]['icon'] ); ?>
render_extra_weather( $weather_conditions, $item ); ?>
settings;
$code = $this->get_weather_icon_code( $code );
$enable_custom_icons = 'yes' === $settings['enable_custom_icon'] ? true : false;
$custom_icons = $enable_custom_icons ? $this->get_custom_icons() : array();
$default_icons = array(
'01d' => '
render_forecast_tabs_headers( array_keys( $forecast_data ) );
$this->render_forecast_tabs_content( $forecast_data );
?>
settings;
$limit = $settings['forecast_days'];
$date_format = $settings['date_format'];
$headers = empty( $settings['forecast_dates'] ) ? $headers : $this->extract_forecast_dates( $settings['forecast_dates'] );
?>
settings;
$limit = $settings['forecast_days'];
$headers = empty( $settings['forecast_dates'] ) ? array_keys( $forecast_data ) : $this->extract_forecast_dates( $settings['forecast_dates'] );
$i = 0;
$weather_conditions = $settings['tabs_weather_data'];
$conditions_arr = array(
'desc_icon' => in_array( 'desc_icon', $weather_conditions, true ) ? true : false,
'temp' => in_array( 'temp', $weather_conditions, true ) ? true : false,
'wind' => in_array( 'wind', $weather_conditions, true ) ? true : false,
'wind_dir' => in_array( 'wind_dir', $weather_conditions, true ) ? true : false,
'humidity' => in_array( 'humidity', $weather_conditions, true ) ? true : false,
'pressure' => in_array( 'pressure', $weather_conditions, true ) ? true : false,
'desc' => in_array( 'desc', $weather_conditions, true ) ? true : false,
'feels_like' => in_array( 'feels_like', $weather_conditions, true ) ? true : false,
);
?>
'>
render_tabs_hourly_forecast( $forecast_data[ $date ], $conditions_arr );
} else {
?>
settings['forecast_days'] ) );
return $dates;
}
private function render_tabs_hourly_forecast( $data, $conditions_arr ) {
$settings = $this->settings;
$limit = $settings['tabs_hourly_max'];
$weather_conditions = $settings['tabs_weather_data'];
for ( $i = 0; $i < $limit; $i++ ) {
$item = isset( $data[ $i ] ) ? $data[ $i ] : false;
if ( $item ) {
$weather_desc = $item['weather'][0]['description'];
?>
render_weather_icon( $item['weather'][0]['icon'] ); ?>
render_extra_weather( $weather_conditions, $item['main'], true );
?>