Plugin Directory

Changeset 206751


Ignore:
Timestamp:
02/16/2010 09:39:49 PM (16 years ago)
Author:
DeannaS
Message:

Upgrading to 1.4 version.

Location:
google-maps-embed/trunk
Files:
2 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • google-maps-embed/trunk/cets_EmbedGmaps.php

    r178070 r206751  
    55Description: This plugin adds an icon to the WYSIWYG editor that allows a user to embed a Google Map into a post or page. Cooperative Extension Technology Services does not provide support for Google services.
    66Author: Deanna Schneider
    7 Version: 1.3.1
     7Version: 1.4
    88Author URI: http://deannaschneider.wordpress.com/
    99
     
    6464            'marginheight' => 0,
    6565            'marginwidth' => 0,
    66             'scrolling' => 'no');
     66            'scrolling' => 'no',
     67            'line' => 3);
    6768           
    6869            add_option('cets_embedGmaps_src', $defaults['src']);
     
    7374            add_option('cets_embedGmaps_frameborder', $defaults['frameborder']);
    7475            add_option('cets_embedGmaps_scrolling', $defaults['scrolling']);
     76            add_option('cets_embedGmaps_line', $defaults['line']);
    7577           
    7678   
  • google-maps-embed/trunk/readme.txt

    r201817 r206751  
    24241. Place the cets\_EmbedGmaps folder in the wp-content/plugins folder.
    25251. Activate via the plugin activation screens.
     261. If upgrading from 1.3.1 to 1.4, you can delete the cets\_embedGmaps\_config.php file and the tinymce\window.php file.
    2627
    2728
     
    4041== Changelog ==
    4142
     431.4 - updated to make both the visual and html editor use the same popup, eliminating the need for wp-load.
     44
    42451.3.1 - Updated project structure to work with Wordpress.org auto install/update.
    4346
  • google-maps-embed/trunk/tinymce/editor_plugin.js

    r178070 r206751  
    1818           
    1919           
    20             ed.addCommand('mcecets_EmbedGmaps', function() {
    21                 ed.windowManager.open({
    22                     file : url + '/window.php',
    23                     width : 500 + ed.getLang('cets_EmbedGmaps.delta_width', 0),
    24                     height : 400 + ed.getLang('cets_EmbedGmaps.delta_height', 0),
    25                     inline : 1,
    26                     popup_css: url + '/dialog.css'
    27                 }, {
    28                     plugin_url : url // Plugin absolute URL
    29                 });
    30             });
    31 
    3220            // Register example button
    3321            ed.addButton('cets_EmbedGmaps', {
    3422                title : 'Embed a Google Map',
    35                 cmd : 'mcecets_EmbedGmaps',
    36                 image : url + '/cets_EmbedGmaps.png'
     23                image : url + '/cets_EmbedGmaps.png',
     24                onclick : function() {
     25                    cets_GEButtonClick('cetsEmbedGmap');
     26                }
    3727            });
    3828
  • google-maps-embed/trunk/tinymce/tinymce.php

    r178070 r206751  
    2828        // add the button for wp2.5 in a new way
    2929            add_filter("mce_external_plugins", array (&$this, "add_tinymce_plugin" ), 5);
    30             add_filter('mce_buttons', array (&$this, 'register_button' ), 5);
     30           
     31            $line = get_option('cets_embedGmaps_line');
     32            if ( 1 == $line)
     33                add_filter( 'mce_buttons', array(&$this, 'register_button') );
     34            else
     35                add_filter( 'mce_buttons_' . $line, array(&$this, 'register_button') );
     36           
     37           
    3138        }
    3239    }
Note: See TracChangeset for help on using the changeset viewer.