Changeset 1005359
- Timestamp:
- 10/10/2014 09:14:04 PM (11 years ago)
- Location:
- easy-maps/trunk
- Files:
-
- 2 edited
-
easy-maps.php (modified) (3 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
easy-maps/trunk/easy-maps.php
r1001548 r1005359 11 11 * Description: Enhance your posts with Google Maps. Use the Trippy Easy Maps plugin to easily create more dynamic content. 12 12 * Plugin URI: 13 * Version: 1.1. 213 * Version: 1.1.3 14 14 * Author: Team Trippy 15 15 * Author URI: http://www.trippy.com … … 153 153 global $content_width; 154 154 155 $easymaps_content_width = $content_width; 156 155 157 $html = str_get_html($contentBody); 156 158 157 if ( ! isset( $ content_width ) || $content_width == 0) {158 $ content_width = 640;159 } 160 161 if ($ content_width > 640) {162 $ content_width = 640;159 if ( ! isset( $easymaps_content_width ) || $easymaps_content_width == 0) { 160 $easymaps_content_width = 640; 161 } 162 163 if ($easymaps_content_width > 640) { 164 $easymaps_content_width = 640; 163 165 } 164 166 165 167 166 168 if ($currentLayoutMode != "bottom") { 167 $ content_width = round($content_width/2);168 } 169 170 if ($ content_width < 250) {171 $ content_width = 250;172 } 173 174 $mapWidth = $isAdminMode ? 250 : round($ content_width);169 $easymaps_content_width = round($easymaps_content_width/2); 170 } 171 172 if ($easymaps_content_width < 250) { 173 $easymaps_content_width = 250; 174 } 175 176 $mapWidth = $isAdminMode ? 250 : round($easymaps_content_width); 175 177 176 178 if (!$mapWidth || $mapWidth == 0) { … … 250 252 $pluginUrl = $trippy_base_url . "/tools/wordpress-easy-maps-plugin"; 251 253 if ($currentLayoutMode != "bottom") { 252 $inline_style = "width:".$ content_width."px";254 $inline_style = "width:".$easymaps_content_width."px"; 253 255 } else { 254 256 $inline_style = ""; -
easy-maps/trunk/readme.txt
r1001548 r1005359 44 44 == Changelog == 45 45 46 = 1.1.3 = 47 * Resolved issues with content_width 48 46 49 = 1.1.2 = 47 50 * Added support for more post containers
Note: See TracChangeset
for help on using the changeset viewer.