Plugin Directory

Changeset 3127808


Ignore:
Timestamp:
07/30/2024 05:50:39 AM (19 months ago)
Author:
hullcode
Message:

Some fields escaped

Location:
weather-in-any-city-widget/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • weather-in-any-city-widget/trunk/README.txt

    r3097742 r3127808  
    44Tested up to: 6.5
    55Requires PHP: 5.3
    6 Stable tag: 1.1.40
     6Stable tag: 1.1.41
    77License: GPLv2 or later
    88
  • weather-in-any-city-widget/trunk/weather-in-any-city-widget.php

    r3097742 r3127808  
    44 * Plugin URI: https://weatherin.org
    55 * Description: Weather Widget Pro provides a complete weather forecast for any location around the world.
    6  * Version: 1.1.40
     6 * Version: 1.1.41
    77 * Author: El tiempo
    88 * Author URI: https://eltiempoen.com
     
    1616defined( 'ABSPATH' ) or die( 'ABSPATH not defined' );
    1717
    18 define ('WIYCW_VERSION', '1.1.40');
     18define ('WIYCW_VERSION', '1.1.41');
    1919define ('WIYCW_DEF_PLUGIN', 'weather-in-any-city-widget');
    2020define ('WIYCW_DEF_BASEURL', plugins_url('', __FILE__));
     
    747747    if(!empty($instance['url_en']) && !empty($instance['url_es'])){
    748748        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>";
    750750        }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>";
    752752        }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>";
    754754        }
    755755    }else{
     
    780780        $output .= "<div class='WIYCW-shortcode'>";
    781781    }
    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'])."'";
    784784    $output .= " data-version='".esc_attr(WIYCW_VERSION)."'";
    785785    $output .= " data-path='".esc_url(WIYCW_DEF_BASEURL)."'";
     
    836836        $output .=  "<div class='WIYCW-now-row-info'>";
    837837        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>";
    840840        }
    841841        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>";
    843843        }
    844844
    845845        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>";
    847847        }
    848848
    849849        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>";
    851851        }
    852852
    853853        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>";
    855855        }
    856856
     
    860860
    861861    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'])."'>";
    863863
    864864        for($WIYCWcounter=0; $WIYCWcounter < $instance['days']; $WIYCWcounter++){
     
    873873            }
    874874            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>";
    876876            }
    877877            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>";
    879879            }
    880880
Note: See TracChangeset for help on using the changeset viewer.