Plugin Directory

Changeset 3398230


Ignore:
Timestamp:
11/18/2025 04:41:43 PM (2 months ago)
Author:
rubel_miah
Message:

Release version 2.1.5

Location:
location-weather
Files:
420 added
7 edited

Legend:

Unmodified
Added
Removed
  • location-weather/trunk/assets/css/admin.css

    r3356961 r3398230  
    44    margin-top: 3px;
    55}
    6 #adminmenu .menu-icon-location_weather div.wp-menu-image{
    7     display: flex;
    8     justify-content: center;
    9     align-items: center;
     6
     7#adminmenu .menu-icon-location_weather div.wp-menu-image {
     8    display: flex;
     9    justify-content: center;
     10    align-items: center;
    1011}
    11 #adminmenu #menu-posts-location_weather li:nth-child(7) a{
    12     color: #f9be48;
     12
     13#adminmenu #menu-posts-location_weather li:nth-child(7) a {
     14    color: #f9be48;
    1315}
     16
    1417#adminmenu #menu-posts-location_weather li a .sp-go-pro-icon {
    15     background-image: url(../images/premium.svg);
    16     width: 20px;
    17     height: 20px;
    18     display: block;
    19     float: left;
    20     margin-right: 1px;
    21     margin-left: -2px;
    22     margin-top: -1px;
     18    background-image: url(../images/premium.svg);
     19    width: 20px;
     20    height: 20px;
     21    display: block;
     22    float: left;
     23    margin-right: 1px;
     24    margin-left: -2px;
     25    margin-top: -1px;
    2326}
     27
    2428.splw-footer-text-star {
    2529    color: #dba617;
     
    3236    border-radius: 5px;
    3337    margin: 20px 20px 0 0;
    34     box-shadow: 0 0 20px 0 rgba(36,39,50,.08);
     38    box-shadow: 0 0 20px 0 rgba(36, 39, 50, .08);
    3539}
     40
    3641#location-weather-review-notice .splw-plugin-icon {
    3742    width: 125px;
     
    4146    margin-left: 8px;
    4247}
     48
    4349#location-weather-review-notice .splw-plugin-icon img {
    4450    max-width: 94px;
     
    4652    margin-right: 8px;
    4753}
     54
    4855#location-weather-review-notice .splw-notice-text {
    4956    overflow: hidden
    5057}
     58
    5159#location-weather-review-notice .splw-notice-text h3 {
    5260    font-size: 24px;
     
    5563    line-height: 1
    5664}
     65
    5766#location-weather-review-notice .splw-notice-text p {
    5867    margin: 10px 0 10px 0;
    5968    font-size: 13px
    6069}
     70
    6171#location-weather-review-notice .splw-notice-text p.splw-review-actions {
    6272    margin: 10px 0 2px 0
    6373}
     74
    6475#location-weather-review-notice .splw-notice-text .splw-review-actions a {
    6576    text-decoration: none;
     
    6980    position: relative
    7081}
     82
    7183#location-weather-review-notice .splw-notice-text .splw-review-actions a span {
    7284    padding-right: 2px
    7385}
     86
    7487#location-weather-review-notice .splw-notice-text .splw-review-actions a.button {
    7588    color: #fff
    7689}
    7790
    78 .rtl  #location-weather-review-notice {
     91.rtl #location-weather-review-notice {
    7992    margin: 20px 0 0 20px;
    8093    padding: 18px 0 18px 15px;
    8194}
    82  
     95
    8396.rtl #location-weather-review-notice .splw-plugin-icon {
    8497    float: right;
     
    87100
    88101.menu-icon-location_weather.wp-not-current-submenu .wp-menu-image.dashicons-before {
    89     background-image: url(../images/menu-weather-gray.svg);
    90     background-position: 10px center;
    91     background-repeat: no-repeat;
     102    background-image: url(../images/menu-weather-gray.svg);
     103    background-position: 10px center;
     104    background-repeat: no-repeat;
    92105}
     106
    93107.menu-icon-location_weather.wp-has-current-submenu .wp-menu-image.dashicons-before {
    94     background-image: url(../images/menu-weather.svg);
    95     background-position: 10px center;
    96     background-repeat: no-repeat;
     108    background-image: url(../images/menu-weather.svg);
     109    background-position: 10px center;
     110    background-repeat: no-repeat;
    97111}
     112
     113/* Admin offer banner */
     114#shapedplugin-offer-banner {
     115    padding: 0;
     116    border: 0;
     117    line-height: 0;
     118    background: transparent;
     119}
     120
     121#shapedplugin-offer-banner a:focus {
     122    outline: 0;
     123    box-shadow: none;
     124}
     125
     126#shapedplugin-offer-banner .notice-dismiss:focus {
     127    outline: 0;
     128    box-shadow: none;
     129}
     130
     131#shapedplugin-offer-banner button.shapedplugin-offer-banner-dismiss:before {
     132    color: #fff;
     133    font-size: 22px;
     134}
  • location-weather/trunk/assets/css/admin.min.css

    r3356961 r3398230  
    1 #adminmenu .menu-icon-location_weather .wp-menu-image img{width:20px;padding:4px 0;margin-top:3px}#adminmenu .menu-icon-location_weather div.wp-menu-image{display:flex;justify-content:center;align-items:center}#adminmenu #menu-posts-location_weather li:nth-child(7) a{color:#f9be48}#adminmenu #menu-posts-location_weather li a .sp-go-pro-icon{background-image:url(../images/premium.svg);width:20px;height:20px;display:block;float:left;margin-right:1px;margin-left:-2px;margin-top:-1px}.splw-footer-text-star{color:#dba617}#location-weather-review-notice{padding:18px 15px 18px 0;background-color:#fff;border-radius:5px;margin:20px 20px 0 0;box-shadow:0 0 20px 0 rgba(36,39,50,.08)}#location-weather-review-notice .splw-plugin-icon{width:125px;float:left;line-height:90px;text-align:center;margin-left:8px}#location-weather-review-notice .splw-plugin-icon img{max-width:94px;vertical-align:middle;margin-right:8px}#location-weather-review-notice .splw-notice-text{overflow:hidden}#location-weather-review-notice .splw-notice-text h3{font-size:24px;margin:0 0 5px;font-weight:400;line-height:1}#location-weather-review-notice .splw-notice-text p{margin:10px 0 10px 0;font-size:13px}#location-weather-review-notice .splw-notice-text p.splw-review-actions{margin:10px 0 2px 0}#location-weather-review-notice .splw-notice-text .splw-review-actions a{text-decoration:none;margin-right:8px;color:#63a37b;display:inline-block;position:relative}#location-weather-review-notice .splw-notice-text .splw-review-actions a span{padding-right:2px}#location-weather-review-notice .splw-notice-text .splw-review-actions a.button{color:#fff}.rtl #location-weather-review-notice{margin:20px 0 0 20px;padding:18px 0 18px 15px}.rtl #location-weather-review-notice .splw-plugin-icon{float:right;margin:0 0 0 8px}.menu-icon-location_weather.wp-not-current-submenu .wp-menu-image.dashicons-before{background-image:url(../images/menu-weather-gray.svg);background-position:10px center;background-repeat:no-repeat}.menu-icon-location_weather.wp-has-current-submenu .wp-menu-image.dashicons-before{background-image:url(../images/menu-weather.svg);background-position:10px center;background-repeat:no-repeat}
     1#adminmenu .menu-icon-location_weather .wp-menu-image img{width:20px;padding:4px 0;margin-top:3px}#adminmenu .menu-icon-location_weather div.wp-menu-image{display:flex;justify-content:center;align-items:center}#adminmenu #menu-posts-location_weather li:nth-child(7) a{color:#f9be48}#adminmenu #menu-posts-location_weather li a .sp-go-pro-icon{background-image:url(../images/premium.svg);width:20px;height:20px;display:block;float:left;margin-right:1px;margin-left:-2px;margin-top:-1px}.splw-footer-text-star{color:#dba617}#location-weather-review-notice{padding:18px 15px 18px 0;background-color:#fff;border-radius:5px;margin:20px 20px 0 0;box-shadow:0 0 20px 0 rgba(36,39,50,.08)}#location-weather-review-notice .splw-plugin-icon{width:125px;float:left;line-height:90px;text-align:center;margin-left:8px}#location-weather-review-notice .splw-plugin-icon img{max-width:94px;vertical-align:middle;margin-right:8px}#location-weather-review-notice .splw-notice-text{overflow:hidden}#location-weather-review-notice .splw-notice-text h3{font-size:24px;margin:0 0 5px;font-weight:400;line-height:1}#location-weather-review-notice .splw-notice-text p{margin:10px 0 10px 0;font-size:13px}#location-weather-review-notice .splw-notice-text p.splw-review-actions{margin:10px 0 2px 0}#location-weather-review-notice .splw-notice-text .splw-review-actions a{text-decoration:none;margin-right:8px;color:#63a37b;display:inline-block;position:relative}#location-weather-review-notice .splw-notice-text .splw-review-actions a span{padding-right:2px}#location-weather-review-notice .splw-notice-text .splw-review-actions a.button{color:#fff}.rtl #location-weather-review-notice{margin:20px 0 0 20px;padding:18px 0 18px 15px}.rtl #location-weather-review-notice .splw-plugin-icon{float:right;margin:0 0 0 8px}.menu-icon-location_weather.wp-not-current-submenu .wp-menu-image.dashicons-before{background-image:url(../images/menu-weather-gray.svg);background-position:10px center;background-repeat:no-repeat}.menu-icon-location_weather.wp-has-current-submenu .wp-menu-image.dashicons-before{background-image:url(../images/menu-weather.svg);background-position:10px center;background-repeat:no-repeat}#shapedplugin-offer-banner{padding:0;border:0;line-height:0;background:0 0}#shapedplugin-offer-banner a:focus{outline:0;box-shadow:none}#shapedplugin-offer-banner .notice-dismiss:focus{outline:0;box-shadow:none}#shapedplugin-offer-banner button.shapedplugin-offer-banner-dismiss:before{color:#fff;font-size:22px}
  • location-weather/trunk/includes/Admin/Admin_Notices.php

    r3356961 r3398230  
    44 *
    55 * @package    Location Weather.
    6  * @subpackage Location Weather/admin/views/notices
     6 * @subpackage Location Weather/Admin
    77 * @author     ShapedPlugin<[email protected]>
    88 */
     
    1515
    1616/**
    17  * This class is responsive for all kinds of admin facing notices.
     17 * This class is responsible for all kinds of admin facing notices.
    1818 */
    1919class Admin_Notices {
  • location-weather/trunk/includes/Frontend/Manage_API.php

    r3356961 r3398230  
    177177                ),
    178178            );
     179        } elseif ( ! empty( $data->error->code ) && 1003 === $data->error->code ) {
     180            return array(
     181                'code'    => 1003,
     182                'message' => $data->error->message ?? '',
     183            );
    179184        }
    180185        // Check if weather is day.
     
    328333            case is_string( $query ) && strpos( $query, 'zip:' ) === 0:
    329334                $sub_query = str_replace( 'zip:', '', $query );
    330                 return 'zip=' . urlencode( $sub_query );
     335                return 'q=' . urlencode( $sub_query );
    331336            case is_string( $query ):
    332337                return 'q=' . urlencode( $query );
  • location-weather/trunk/includes/Frontend/Shortcode.php

    r3356961 r3398230  
    150150            case 'city_id':
    151151                $city_id = $splw_meta['lw-city-id'] ?? '';
    152                 $query   = ! empty( $city_id ) ? (int) $city_id : 2643743;
     152                $query   = ! empty( $city_id ) ? $city_id : 2643743;
    153153                break;
    154154
     
    190190
    191191            // Api call error check.
    192             if ( is_array( $weather_api_data ) && isset( $weather_api_data['code'] ) && ( 1006 === $weather_api_data['code'] || 2006 === $weather_api_data['code'] ) ) {
     192            if ( is_array( $weather_api_data ) && isset( $weather_api_data['code'] ) && ( 1006 === $weather_api_data['code'] || 1003 === $weather_api_data['code'] || 2006 === $weather_api_data['code'] ) ) {
    193193                $weather_error_status = sprintf( '<div id="splw-location-weather-%1$s" class="splw-main-wrapper"><div class="splw-weather-title">%2$s</div><div class="splw-lite-wrapper"><div class="splw-warning">%3$s</div> <div class="splw-weather-attribution"><a href = "https://www.weatherapi.com/docs/key.aspx" target="_blank">' . __( 'Weather from WeatherAPI ', 'location-weather' ) . '</a></div></div></div>', esc_attr( $shortcode_id ), esc_html( get_the_title( $shortcode_id ) ), $weather_api_data['message'] );
    194194                echo $weather_error_status; // phpcs:ignore
  • location-weather/trunk/main.php

    r3356969 r3398230  
    1414 * Author:            ShapedPlugin LLC
    1515 * Author URI:        https://shapedplugin.com/
    16  * Version:           2.1.4
     16 * Version:           2.1.5
    1717 * Requires at least: 5.0
    1818 * Requires PHP:      7.4
     
    3232define( 'LOCATION_WEATHER_URL', plugins_url( '', LOCATION_WEATHER_FILE ) );
    3333define( 'LOCATION_WEATHER_ASSETS', LOCATION_WEATHER_URL . '/assets' );
    34 define( 'LOCATION_WEATHER_VERSION', '2.1.4' );
     34define( 'LOCATION_WEATHER_VERSION', '2.1.5' );
    3535
    3636require_once ABSPATH . 'wp-admin/includes/plugin.php';
     
    5656     * @var string
    5757     */
    58     public $version = '2.1.4';
     58    public $version = '2.1.5';
    5959
    6060    /**
     
    414414 */
    415415function location_weather() {
     416    if ( ! defined( 'SHAPEDPLIUGIN_OFFER_BANNER_LOADED' ) ) {
     417        define( 'SHAPEDPLIUGIN_OFFER_BANNER_LOADED', true );
     418
     419        /**
     420         * The file is responsible for generating admin offer banner.
     421         */
     422        ShapedPlugin\Weather\Admin\ShapedPlugin_Offer_Banner::instance();
     423    }
     424
    416425    return Location_Weather::init();
    417426}
  • location-weather/trunk/readme.txt

    r3356965 r3398230  
    33Tags: weather forecast, weather widget, local weather, temperature, live weather
    44Requires at least: 5.0
    5 Tested up to: 6.8
    6 Stable tag: 2.1.4
     5Tested up to: 6.9
     6Stable tag: 2.1.5
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    476476== Changelog ==
    477477
     478= 2.1.5 - Nov 18, 2025 =
     479* Fix: The warning found for weather by City ID with WeatherAPI
     480* Tested: WordPress 6.9 compatibility.
     481
    478482= 2.1.4 - Sep 06, 2025 =
    479483* Improved: Enhanced plugin security and data validation.
Note: See TracChangeset for help on using the changeset viewer.