Changeset 3127808
- Timestamp:
- 07/30/2024 05:50:39 AM (19 months ago)
- Location:
- weather-in-any-city-widget/trunk
- Files:
-
- 2 edited
-
README.txt (modified) (1 diff)
-
weather-in-any-city-widget.php (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
weather-in-any-city-widget/trunk/README.txt
r3097742 r3127808 4 4 Tested up to: 6.5 5 5 Requires PHP: 5.3 6 Stable tag: 1.1.4 06 Stable tag: 1.1.41 7 7 License: GPLv2 or later 8 8 -
weather-in-any-city-widget/trunk/weather-in-any-city-widget.php
r3097742 r3127808 4 4 * Plugin URI: https://weatherin.org 5 5 * Description: Weather Widget Pro provides a complete weather forecast for any location around the world. 6 * Version: 1.1.4 06 * Version: 1.1.41 7 7 * Author: El tiempo 8 8 * Author URI: https://eltiempoen.com … … 16 16 defined( 'ABSPATH' ) or die( 'ABSPATH not defined' ); 17 17 18 define ('WIYCW_VERSION', '1.1.4 0');18 define ('WIYCW_VERSION', '1.1.41'); 19 19 define ('WIYCW_DEF_PLUGIN', 'weather-in-any-city-widget'); 20 20 define ('WIYCW_DEF_BASEURL', plugins_url('', __FILE__)); … … 747 747 if(!empty($instance['url_en']) && !empty($instance['url_es'])){ 748 748 if($lang == "es" || $lang == "es_ES" || $lang == "es_CL"){ 749 $credits = "<a class='WIYCW-credit' style='text-decoration: none; color:".esc_attr($instance['textColor'])."' href='https://eltiempoen.com/". $instance['url_es']."'>El tiempo en ".$instance['city']."</a>";749 $credits = "<a class='WIYCW-credit' style='text-decoration: none; color:".esc_attr($instance['textColor'])."' href='https://eltiempoen.com/".esc_attr($instance['url_es'])."'>El tiempo en ".esc_attr($instance['city'])."</a>"; 750 750 }else if(str_starts_with($lang, 'es')){ 751 $credits = "<a class='WIYCW-credit' style='text-decoration: none; color:".esc_attr($instance['textColor'])."' href='https://eltiempoen.com/". $instance['url_es']."'>Clima en ".$instance['city']."</a>";751 $credits = "<a class='WIYCW-credit' style='text-decoration: none; color:".esc_attr($instance['textColor'])."' href='https://eltiempoen.com/".esc_attr($instance['url_es'])."'>Clima en ".esc_attr($instance['city'])."</a>"; 752 752 }else{ 753 $credits = "<a class='WIYCW-credit' style='text-decoration: none; color:".esc_attr($instance['textColor'])."' href='https://weatherin.org/". $instance['url_en']."'>".$instance['city']." weather</a>";753 $credits = "<a class='WIYCW-credit' style='text-decoration: none; color:".esc_attr($instance['textColor'])."' href='https://weatherin.org/".esc_attr($instance['url_en'])."'>".esc_attr($instance['city'])." weather</a>"; 754 754 } 755 755 }else{ … … 780 780 $output .= "<div class='WIYCW-shortcode'>"; 781 781 } 782 $output .= "<div class='WIYCW-wrapper $shadowClass'";783 $output .= " style='font-size:". $instance['fontSize']."px;color:".$instance['textColor']."; background-color:".$instance['backgroundColor']."; border: solid 1px ".$instance['borderColor']."'";782 $output .= "<div class='WIYCW-wrapper ".esc_attr($shadowClass)."'"; 783 $output .= " style='font-size:".esc_attr($instance['fontSize'])."px;color:".esc_attr($instance['textColor'])."; background-color:".esc_attr($instance['backgroundColor'])."; border: solid 1px ".esc_attr($instance['borderColor'])."'"; 784 784 $output .= " data-version='".esc_attr(WIYCW_VERSION)."'"; 785 785 $output .= " data-path='".esc_url(WIYCW_DEF_BASEURL)."'"; … … 836 836 $output .= "<div class='WIYCW-now-row-info'>"; 837 837 if($instance['now_sunrise'] == "on"){ 838 $output .= "<div class='WIYCW-now-row-info-col'><img alt='Sunrise' class='WIYCW-item-icon $iconColorClass' src='$baseURL/resources/icons/ui-icons/sunrise.svg' style='width: 11px; height: 11px;'>-</div>";839 $output .= "<div class='WIYCW-now-row-info-col'><img alt='Sunset' class='WIYCW-item-icon $iconColorClass' src='$baseURL/resources/icons/ui-icons/sunset.svg' style='width: 11px; height: 11px;'>-</div>";838 $output .= "<div class='WIYCW-now-row-info-col'><img alt='Sunrise' class='WIYCW-item-icon ".esc_attr($iconColorClass)."' src='".esc_attr($baseURL)."/resources/icons/ui-icons/sunrise.svg' style='width: 11px; height: 11px;'>-</div>"; 839 $output .= "<div class='WIYCW-now-row-info-col'><img alt='Sunset' class='WIYCW-item-icon ".esc_attr($iconColorClass)."' src='".esc_attr($baseURL)."/resources/icons/ui-icons/sunset.svg' style='width: 11px; height: 11px;'>-</div>"; 840 840 } 841 841 if($instance['now_humidity'] == "on"){ 842 $output .= "<div class='WIYCW-now-row-info-col'><img alt='Humidity'class='WIYCW-item-icon $iconColorClass' src='$baseURL/resources/icons/ui-icons/dew-point.svg' style='width: 11px; height: 11px;'>-</div>";842 $output .= "<div class='WIYCW-now-row-info-col'><img alt='Humidity'class='WIYCW-item-icon ".esc_attr($iconColorClass)."' src='".esc_attr($baseURL)."/resources/icons/ui-icons/dew-point.svg' style='width: 11px; height: 11px;'>-</div>"; 843 843 } 844 844 845 845 if($instance['now_wind'] == "on"){ 846 $output .= "<div class='WIYCW-now-row-info-col'><img alt='Wind direction' class='WIYCW-item-icon $iconColorClass' src='$baseURL/resources/icons/ui-icons/arrow.svg' style='width: 11px; height: 11px;transform: rotate(0deg)'>-</div>";846 $output .= "<div class='WIYCW-now-row-info-col'><img alt='Wind direction' class='WIYCW-item-icon ".esc_attr($iconColorClass)."' src='".esc_attr($baseURL)."/resources/icons/ui-icons/arrow.svg' style='width: 11px; height: 11px;transform: rotate(0deg)'>-</div>"; 847 847 } 848 848 849 849 if($instance['now_pressure'] == "on"){ 850 $output .= "<div class='WIYCW-now-row-info-col'><img alt='Pressure' class='WIYCW-item-icon $iconColorClass' src='$baseURL/resources/icons/ui-icons/pressure.svg' style='width: 11px; height: 11px;'>-</div>";850 $output .= "<div class='WIYCW-now-row-info-col'><img alt='Pressure' class='WIYCW-item-icon ".esc_attr($iconColorClass)."' src='".esc_attr($baseURL)."/resources/icons/ui-icons/pressure.svg' style='width: 11px; height: 11px;'>-</div>"; 851 851 } 852 852 853 853 if($instance['now_cloudiness'] == "on"){ 854 $output .= "<div class='WIYCW-now-row-info-col'><img alt='Cloudiness'class='WIYCW-item-icon $iconColorClass' src='$baseURL/resources/icons/ui-icons/clouds.svg' style='width: 11px; height: 11px;'>-</div>";854 $output .= "<div class='WIYCW-now-row-info-col'><img alt='Cloudiness'class='WIYCW-item-icon ".esc_attr($iconColorClass)."' src='".esc_attr($baseURL)."/resources/icons/ui-icons/clouds.svg' style='width: 11px; height: 11px;'>-</div>"; 855 855 } 856 856 … … 860 860 861 861 if($instance['days'] != "off"){ 862 $output .= "<div class='WIYCW-forecast WIYCW-forecast-". $instance['layout']."'>";862 $output .= "<div class='WIYCW-forecast WIYCW-forecast-".esc_attr($instance['layout'])."'>"; 863 863 864 864 for($WIYCWcounter=0; $WIYCWcounter < $instance['days']; $WIYCWcounter++){ … … 873 873 } 874 874 if($instance['rainChance'] == "on"){ 875 $output .= "<div class='WIYCW-forecast-pop WIYCW-col-1'><img alt='Rain chance' class='WIYCW-item-icon $iconColorClass' src='$baseURL/resources/icons/ui-icons/umbrella.svg' style='width: 11px; height: 11px;'>-</div>";875 $output .= "<div class='WIYCW-forecast-pop WIYCW-col-1'><img alt='Rain chance' class='WIYCW-item-icon ".esc_attr($iconColorClass)."' src='".esc_attr($baseURL)."/resources/icons/ui-icons/umbrella.svg' style='width: 11px; height: 11px;'>-</div>"; 876 876 } 877 877 if($instance['wind'] == "on"){ 878 $output .= "<div class='WIYCW-forecast-pop WIYCW-col-1'><img alt='Wind direction' class='WIYCW-item-icon $iconColorClass' src='$baseURL/resources/icons/ui-icons/arrow.svg' style='width: 11px; height: 11px;transform: rotate(0deg);'>-</div>";878 $output .= "<div class='WIYCW-forecast-pop WIYCW-col-1'><img alt='Wind direction' class='WIYCW-item-icon ".esc_attr($iconColorClass)."' src='".esc_attr($baseURL)."/resources/icons/ui-icons/arrow.svg' style='width: 11px; height: 11px;transform: rotate(0deg);'>-</div>"; 879 879 } 880 880
Note: See TracChangeset
for help on using the changeset viewer.