Plugin Directory

Changeset 1005359


Ignore:
Timestamp:
10/10/2014 09:14:04 PM (11 years ago)
Author:
awerhane74
Message:

[Tag 1.1.3] Removed Content_Width mods

Location:
easy-maps/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • easy-maps/trunk/easy-maps.php

    r1001548 r1005359  
    1111 * Description: Enhance your posts with Google Maps.  Use the Trippy Easy Maps plugin to easily create more dynamic content.
    1212 * Plugin URI:
    13  * Version:     1.1.2
     13 * Version:     1.1.3
    1414 * Author:      Team Trippy
    1515 * Author URI:  http://www.trippy.com
     
    153153    global $content_width;
    154154   
     155    $easymaps_content_width = $content_width;
     156   
    155157    $html = str_get_html($contentBody);
    156158   
    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;
    163165    }
    164166   
    165167   
    166168    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);
    175177   
    176178    if (!$mapWidth || $mapWidth == 0) {
     
    250252        $pluginUrl = $trippy_base_url . "/tools/wordpress-easy-maps-plugin";
    251253        if ($currentLayoutMode != "bottom") {
    252           $inline_style = "width:".$content_width."px";
     254          $inline_style = "width:".$easymaps_content_width."px";
    253255        } else {
    254256            $inline_style = "";
  • easy-maps/trunk/readme.txt

    r1001548 r1005359  
    4444== Changelog ==
    4545
     46= 1.1.3 =
     47* Resolved issues with content_width
     48
    4649= 1.1.2 =
    4750* Added support for more post containers
Note: See TracChangeset for help on using the changeset viewer.