Changeset 1917968
- Timestamp:
- 08/01/2018 05:10:06 AM (7 years ago)
- Location:
- snazzy-maps/trunk
- Files:
-
- 1 added
- 6 edited
-
admin/explore.php (modified) (2 diffs)
-
admin/helpers.php (added)
-
admin/index.php (modified) (3 diffs)
-
admin/settings.php (modified) (1 diff)
-
admin/styles.php (modified) (4 diffs)
-
readme.txt (modified) (2 diffs)
-
snazzymaps.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
snazzy-maps/trunk/admin/explore.php
r1181217 r1917968 8 8 foreach((array)$options as $value => $text){ 9 9 ?> 10 <option value="<?php echo $value;?>" 11 <?php echo $value == $selected ? 'selected' : '' ?>> 12 <?php echo $text;?> 10 <option value="<?php echo esc_attr($value);?>" <?php echo esc_attr($value == $selected ? 'selected' : '') ?>> 11 <?php echo esc_html($text);?> 13 12 </option> 14 13 <?php … … 32 31 <form id="search-form" class="clearfix"> 33 32 <div class="search-box"> 34 <input name="text" type="text" placeholder="Search..." value="<?php echo $text?>"/>33 <input name="text" type="text" placeholder="Search..." value="<?php echo esc_attr($text) ?>"/> 35 34 <button class="button" type="submit">Search Styles</button> 36 35 </div> -
snazzy-maps/trunk/admin/index.php
r1423614 r1917968 6 6 include_once(plugin_dir_path(__FILE__) . _DS . 'settings.php'); 7 7 include_once(plugin_dir_path(__FILE__) . _DS . 'help.php'); 8 include_once(plugin_dir_path(__FILE__) . _DS . 'helpers.php'); 8 9 9 10 … … 96 97 <?php if(!get_option('HideWelcomeMessage', false)) { ?> 97 98 <div id="welcome-panel" class="box-shadow-cell welcome-panel"> 98 <a href=" ?page=snazzy_maps&tab=<?php echo $active_tab; ?>&welcome=hide" class="welcome-panel-close">Dismiss</a>99 <a href="<?php echo esc_rel_url('?page=snazzy_maps&tab=' . $active_tab . '&welcome=hide'); ?>" class="welcome-panel-close">Dismiss</a> 99 100 <div class="row"> 100 101 <div class="col-md-10 col-lg-6"> … … 115 116 foreach((array)$tabs as $index => $tab){ 116 117 ?> 117 <a href=" ?page=snazzy_maps&tab=<?php echo $index;?>"118 class="nav-tab <?php echo $active_tab == $index ? 'nav-tab-active' : '';?>">119 <?php echo $tab;?>118 <a href="<?php echo esc_rel_url('?page=snazzy_maps&tab=' . $index);?>" 119 class="nav-tab <?php echo esc_attr($active_tab == $index ? 'nav-tab-active' : '');?>"> 120 <?php echo esc_html($tab);?> 120 121 </a> 121 122 <?php -
snazzy-maps/trunk/admin/settings.php
r1102757 r1917968 29 29 <label for="api_key"><strong>API Key</strong></label> 30 30 <input type="text" id="api_key" name="api_key" 31 placeholder="Enter your API Key" value="<?php echo $api_key; ?>"/>31 placeholder="Enter your API Key" value="<?php echo esc_attr($api_key); ?>"/> 32 32 <button type="submit" class="button button-primary">SAVE</button> 33 33 <?php if(!is_null($api_key)){ ?> -
snazzy-maps/trunk/admin/styles.php
r1203307 r1917968 1 1 <?php 2 2 defined( 'ABSPATH' ) OR exit; 3 include_once(plugin_dir_path(__FILE__) . _DS . 'helpers.php'); 3 4 4 5 //Removed closures for PHP 5.0.x support … … 17 18 18 19 function _styleAction(&$style, $action){ 19 return "?page=snazzy_maps&tab=0&action=$action&style=" . $style['id'];20 return esc_rel_url("?page=snazzy_maps&tab=0&action=$action&style=" . $style['id']); 20 21 }; 21 22 … … 95 96 $isEnabled = !is_null($defaultStyle) && $defaultStyle['id'] == $style['id']; 96 97 ?> 97 <div class="style col-sm-6 col-md-4 <?php echo $isEnabled ? 'enabled' : '';?>">98 <div class="style col-sm-6 col-md-4 <?php echo esc_attr($isEnabled ? 'enabled' : '');?>"> 98 99 <div class="sm-style"> 99 100 <div class="sm-map"> 100 <img src="<?php echo $style['imageUrl']; ?>"101 alt="<?php echo $style['name']; ?>"/>101 <img src="<?php echo esc_url($style['imageUrl']); ?>" 102 alt="<?php echo esc_attr($style['name']); ?>"/> 102 103 <?php 103 104 if($isEnabled) { … … 111 112 <div class="sm-content info"> 112 113 <h3> 113 <a href="<?php echo $style['url']; ?>" class="title" target="_blank">114 <?php echo $style['name']; ?>114 <a href="<?php echo esc_url($style['url']); ?>" class="title" target="_blank"> 115 <?php echo esc_html($style['name']); ?> 115 116 </a> 116 117 </h3> 117 118 <div class="author"> 118 by <?php echo $style['createdBy']['name'];?></span>119 by <?php echo esc_html($style['createdBy']['name']);?></span> 119 120 </div> 120 121 <div class="stats"> 121 122 <div class="views"> 122 123 <span class="icon-eye"></span> 123 <?php echo $style['views']; ?> views124 <?php echo esc_html($style['views']); ?> views 124 125 </div> 125 126 <div class="favorites"> 126 127 <span class="icon-star"></span> 127 <?php echo $style['favorites']; ?> favorites128 <?php echo esc_html($style['favorites']); ?> favorites 128 129 </div> 129 130 </div> -
snazzy-maps/trunk/readme.txt
r1612105 r1917968 4 4 Tags: google,maps,google maps,styled maps,styles,color,schemes,themes 5 5 Requires at least: 2.8 6 Tested up to: 4. 7.37 Stable tag: 1.1. 36 Tested up to: 4.9.7 7 Stable tag: 1.1.4 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 99 99 == Changelog == 100 100 101 = 1.1.4 = 102 Release Date: July 31st, 2018 103 104 * Update: Security fixes. 105 * Update: Verified that the plugin works with newer versions of WordPress up to 4.9.7. 106 101 107 = 1.1.3 = 102 108 Release Date: March 10th, 2017 -
snazzy-maps/trunk/snazzymaps.php
r1612105 r1917968 4 4 * Plugin URI: https://snazzymaps.com/plugins 5 5 * Description: Apply styles to your Google Maps with the official Snazzy Maps WordPress plugin. 6 * Version: 1.1. 36 * Version: 1.1.4 7 7 * Author: Atmist 8 8 * Author URI: http://atmist.com/ … … 31 31 define('API_BASE', 'https://snazzymaps.com/'); 32 32 define('API_KEY', 'ecaccc3c-44fa-486c-9503-5d473587a493'); 33 define('SNAZZY_VERSION_NUMBER', '1.1. 3');33 define('SNAZZY_VERSION_NUMBER', '1.1.4'); 34 34 35 35 if(!defined('_DS')) {
Note: See TracChangeset
for help on using the changeset viewer.