Plugin Directory

Changeset 1950347


Ignore:
Timestamp:
10/02/2018 04:13:31 PM (7 years ago)
Author:
jelnet
Message:

Tag the 1.2 release

Location:
tfl-widgets/tags/1.2
Files:
4 edited
1 copied

Legend:

Unmodified
Added
Removed
  • tfl-widgets/tags/1.2/trunk/README.txt

    r1943283 r1950347  
    55Requires at least: 4.4.8
    66Tested up to: 4.9.8
    7 Stable tag: 1.0.1
     7Requires PHP: 5.6.32
     8Stable tag: 1.2
    89License: GPLv2 or later
    910License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    1314== Description ==
    1415
    15 TFL Widgets lets you add Transport For London widgets to your pages using WordPress "shortcodes". This plugin is not created or endorsed by Transport For London.
     16Now with Widget support!!!
    1617
    17 Simply install the plugin, then you can add the shortcodes as follows:
     18TFL Widgets lets you add Transport For London widgets to your pages using WordPress "shortcodes" or as a WordPress Widget.
     19
     20Simply install the plugin, then you can add the shortcodes into pages/posts as follows:
    1821
    1922#### Tube service updates
     
    3336* `[tube-map width="variable"]` - Gives a Tube map of variable width which stretches to fit its container.
    3437
     38You can also drag & drop the TFL Widgets widget into your Blog Sidebar or Footer from Appearance/Widgets in the WordPress Admin. Woohoo!
     39
    3540== Installation ==
    3641
     
    49542. Tube map (`[tube-map]`)
    5055
     563. You can drag the Widget into your...
     57
     584. ... Sidebar or Footer
     59
    5160== Changelog ==
    5261
     
    5564= 1.0.1 =
    5665* Bug fix for fixed width tube map not working
     66= 1.2 =
     67* Widget support added
    5768
    5869== Upgrade Notice ==
     
    6374
    6475Please refer to TFL's [transport data terms and conditions](https://tfl.gov.uk/corporate/terms-and-conditions/transport-data-service) for the terms of use of the data provided from this plugin
     76
     77This plugin is not created or endorsed by Transport For London.
  • tfl-widgets/tags/1.2/trunk/includes/class-jel-tfl-widgets.php

    r1636217 r1950347  
    7070
    7171        $this->plugin_name = 'jel-tfl-widgets';
    72         $this->version = '1.0.0';
     72        $this->version = '1.2';
    7373
    7474        $this->load_dependencies();
     
    120120        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-jel-tfl-widgets-public.php';
    121121
     122        /**
     123         * The class responsible for adding a WP Widget     
     124         */
     125        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-jel-tfl-widgets-wp-widget.php';
     126
    122127        $this->loader = new Jel_Tfl_Widgets_Loader();
    123128
     
    168173        $plugin_public = new Jel_Tfl_Widgets_Public( $this->get_plugin_name(), $this->get_version() );
    169174
    170         //$this->loader->add_action( 'wp_enqueue_scripts', $plugin_public, 'enqueue_styles' );
    171         //$this->loader->add_action( 'wp_enqueue_scripts', $plugin_public, 'enqueue_scripts' );
     175        //$this->loader->add_action( 'wp_enqueue_scripts', $plugin_public, 'enqueue_styles' ); 
    172176        $this->loader->add_action( 'init', $plugin_public, 'register_shortcodes' );
     177        $this->loader->add_action( 'widgets_init', $plugin_public, 'register_WP_widget' );
    173178
    174179    }
  • tfl-widgets/tags/1.2/trunk/jel-tfl-widgets.php

    r1642635 r1950347  
    1616 * Plugin Name:       TFL Widgets
    1717 * Plugin URI:        http://jelnet.uk/wp-plugins/tfl-widgets
    18  * Description:       TFL Widgets lets you add Transport For London widgets to your pages using WordPress "shortcodes".
    19  * Version:           1.0.1
     18 * Description:       TFL Widgets lets you add Transport For London widgets to your pages using WordPress "shortcodes" or as a WordPress Widget.
     19 * Version:           1.2
    2020 * Author:            Jeremy Wray
    2121 * Author URI:        http://jeremywray.co.uk/
  • tfl-widgets/tags/1.2/trunk/public/class-jel-tfl-widgets-public.php

    r1642635 r1950347  
    112112        ), $atts, 'tube-updates' );     
    113113        if ($atts['width'] == "variable") {
    114             return '<script language="JavaScript" src="https://www.tfl.gov.uk/tfl/syndication/widgets/serviceboard/embeddable/serviceboard-iframe-stretchy.js"></script>';
     114            return '<div class="tfl-widgets-tube-updates"><script language="JavaScript" src="https://www.tfl.gov.uk/tfl/syndication/widgets/serviceboard/embeddable/serviceboard-iframe-stretchy.js"></script></div>';
    115115        } else {
    116             return '<div style="width:' . $atts['width'] . '"><script language="JavaScript" src="https://www.tfl.gov.uk/tfl/syndication/widgets/serviceboard/embeddable/serviceboard-iframe-stretchy.js"></script></div>';
     116            return '<div class="tfl-widgets-tube-updates" style="width:' . $atts['width'] . '"><script language="JavaScript" src="https://www.tfl.gov.uk/tfl/syndication/widgets/serviceboard/embeddable/serviceboard-iframe-stretchy.js"></script></div>';
    117117        }
    118118     }
     
    124124        ), $atts, 'tube-map' );     
    125125        if ($atts['width'] == "variable") {
    126             return '<script language="JavaScript" src="https://www.tfl.gov.uk/tfl/syndication/widgets/tubemap/tubemap-iframe-stretchy.js"></script>';
     126            return '<div class="tfl-widgets-tube-map"><script language="JavaScript" src="https://www.tfl.gov.uk/tfl/syndication/widgets/tubemap/tubemap-iframe-stretchy.js"></script></div>';
    127127        } else {
    128             return '<div style="width' . $atts['width'] . '"><script language="JavaScript" src="https://www.tfl.gov.uk/tfl/syndication/widgets/tubemap/tubemap-iframe-stretchy.js"></script></div>';
     128            return '<div class="tfl-widgets-tube-map" style="width:' . $atts['width'] . '"><script language="JavaScript" src="https://www.tfl.gov.uk/tfl/syndication/widgets/tubemap/tubemap-iframe-stretchy.js"></script></div>';
    129129        }
    130130     }
     
    142142        //add_shortcode( 'anothershortcode', array( $this, 'another_shortcode_function') );
    143143    }
     144    /**
     145     * Jel: register the WP Widget.
     146     *
     147     * @since    1.2
     148     */
     149    public function register_WP_widget() {
     150        register_widget( 'jel_tfl_WP_widget' );
     151    }
    144152
    145153}
Note: See TracChangeset for help on using the changeset viewer.