WordPress.org

Plugin Directory

Changeset 1689907


Ignore:
Timestamp:
07/03/17 16:50:35 (4 months ago)
Author:
jazzs3quence
Message:

1.1.2 release

Location:
cat-signal/trunk
Files:
2 added
5 edited

Legend:

Unmodified
Added
Removed
  • cat-signal/trunk/cat-signal.php

    r1153003 r1689907  
    44Plugin URI: http://jazzsequence.github.io/Cat-Signal 
    55Description: A WordPress plugin to easily display a banner or a modal alert when the Cat Signal (from the Internet Defense League) is active. For more information visit: http://internetdefenseleague.org/ 
    6 Version: 1.1.1 
     6Version: 1.1.2 
    77Author: Chris Reynolds 
    88Author URI: http://chrisreynolds.io 
     
    209209        if ( $cat_signal_options['type'] == 'banner' ) { 
    210210            wp_enqueue_script( 'idf-banner', CAT_SIGNAL_PLUGIN_URL . 'js/banner.js', array(), '1.0', false ); 
    211         } elseif ( $cat_signal_options['type'] == 'modal' ) { 
    212             wp_enqueue_script( 'idf-modal', CAT_SIGNAL_PLUGIN_URL . 'js/modal.js', array(), '1.0', false ); 
    213211        /*} elseif ( $cat_signal_options['type'] == 'special' ) { // used for special, one-time campaigns 
    214212            $code = ''; 
  • cat-signal/trunk/js/banner.js

    r684592 r1689907  
    11window._idl = {}; 
    2     _idl.variant = "banner"; 
    3     (function() { 
    4         var idl = document.createElement('script'); 
    5         idl.type = 'text/javascript'; 
    6         idl.async = true; 
    7         idl.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'members.internetdefenseleague.org/include/?url=' + (_idl.url || '') + '&campaign=' + (_idl.campaign || '') + '&variant=' + (_idl.variant || 'banner'); 
    8         document.getElementsByTagName('body')[0].appendChild(idl); 
    9     })(); 
     2    _idl.variant = "banner"; 
     3    (function() { 
     4        var idl = document.createElement('script'); 
     5        idl.async = true; 
     6        idl.src = 'https://members.internetdefenseleague.org/include/?url=' + (_idl.url || '') + '&campaign=' + (_idl.campaign || '') + '&variant=' + (_idl.variant); 
     7        document.getElementsByTagName('body')[0].appendChild(idl); 
     8    })(); 
  • cat-signal/trunk/js/modal.js

    r684592 r1689907  
    1     window._idl = {}; 
    2     _idl.variant = "modal"; 
    3     (function() { 
    4         var idl = document.createElement('script'); 
    5         idl.type = 'text/javascript'; 
    6         idl.async = true; 
    7         idl.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'members.internetdefenseleague.org/include/?url=' + (_idl.url || '') + '&campaign=' + (_idl.campaign || '') + '&variant=' + (_idl.variant || 'banner'); 
    8         document.getElementsByTagName('body')[0].appendChild(idl); 
    9     })(); 
     1window._idl = {}; 
     2    _idl.variant = "modal"; 
     3    (function() { 
     4        var idl = document.createElement('script'); 
     5        idl.async = true; 
     6        idl.src = 'https://members.internetdefenseleague.org/include/?url=' + (_idl.url || '') + '&campaign=' + (_idl.campaign || '') + '&variant=' + (_idl.variant); 
     7        document.getElementsByTagName('body')[0].appendChild(idl); 
     8    })(); 
  • cat-signal/trunk/readme.md

    r1153003 r1689907  
    11![cat signal](http://internetdefenseleague.org/images/vector/city_bat_signal.png) 
    2 #Internet Defense League Cat Signal 
     2# Internet Defense League Cat Signal 
    33 
    4 Contributors: jazzs3quence 
    5 Donate link: https://coinbase.com/checkouts/64d7bc3204fb355ff92f4c47b48cfa87 
    6 Tags: internet defense league, activism, cat signal, freedom, online activism 
    7 Requires at least: 2.7 
    8 Tested up to: 4.2.1 
    9 Stable tag: 1.1.1 
     4Contributors: jazzs3quence   
     5Donate link: https://www.paypal.me/jazzsequence   
     6Tags: internet defense league, activism, cat signal, freedom, online activism   
     7Requires at least: 2.7   
     8Tested up to: 4. 
     9Stable tag: 1.1. 
    1010 
    1111A WordPress plugin to automatically load either the modal or the banner Cat Signal when there is an active campaign from the Internet Defense League. 
     
    1313## Description 
    1414 
    15 The Internet Defense League is an online activist group organized to defend your online freedoms. When a bill is threatening to pass that would inhibit the way you live your online life, they put up the Cat Signal, a way to collectively black out or put notices on a large number of websites simultaneously. 
     15The [Internet Defense League](https://internetdefenseleague.org) is an online activist group organized to defend your online freedoms. When a bill is threatening to pass that would inhibit the way you live your online life, they put up the Cat Signal, a way to collectively black out or put notices on a large number of websites simultaneously. 
    1616 
    1717This plugin adds the javascript for the Cat Signal to your site so you don't need to mess with the code. It's enqueued like any other javascript file and has an options page to select either the banner or the modal window option. 
    1818 
    19 The current action centers around the Internet Slowdown campaign, to protest against cable companies that want to inhibit your browsing experience by enabling a "fast-lane" where service providers (like YouTube and Netflix) get priority access to faster speeds for a fee. Learn more on the [Battle for the Net](https://www.battleforthenet.com/sept10th/) site. This campaign will run for one day on September 10th. 
     19### Events Supported 
     20Some of the events supported by this plugin: 
     21 
     22* [Internet Slowdown](https://www.battleforthenet.com/sept10th/) - 10 September, 2014 
     23* [Save Net Neutrality](https://www.battleforthenet.com/july12/) - 12 July, 2017 
    2024 
    2125### About this plugin 
     
    2327At first glance, it may appear that the plugin isn't doing anything because you don't have a banner or a modal window. *Don't panic!!!* What this means is that all is safe in Gotham and the Cat Signal has not been activated (read: there probably isn't an active IDL campaign running). To keep up to date on Internet Defense League campaigns, I recommend signing up for their mailing list (ed. note: I'm not affiliated with them at all, I'm just your friendly neighborhood internet activist). Once you're on the list, you'll get emails when they're about to launch a campaign. 
    2428 
    25 **So how do I know if it's working?** 
     29**This plugin isn't updated often. Did you abandon it?** 
     30 
     31This plugin is a very simple implementation of the javascript code provided by the Internet Defense League to add their campaigns to your site when they go out. It does one thing — load the javascript — and nothing else. The actual code required to load said javascript from the IDL hasn’t changed, so there has been no need to update this plugin — as long as their code remains the same, this plugin will still work. 
     32 
     33The Cat Signal plugin is what could be considered [“complete software”](https://engineering.hmn.md/how-we-work/philosophy/completion/). There’s nothing else that needs to be done. There are no new features it needs, it does only one thing and nothing else, it’s just done. The only thing that I would be doing with each update is editing the readme file to change the version of WordPress it’s been tested up to and that’s not particularly high on my list of priorities, unfortunately. 
     34 
     35**How do I know if it's working?** 
     36 
    2637If you're savvy, you can check the HTML source of your site and check that either the `modal.js` or `banner.js` is loading. If it is, you're good to go, and the banner or modal window will work automagically when the IDL launch a new campaign. 
    2738 
     
    3445## Screenshots 
    3546 
    36 ![modal window](https://github.com/jazzsequence/Cat-Signal/raw/master/screenshot-1.png) 
     47![modal window](https://github.com/jazzsequence/Cat-Signal/raw/master/screenshot-1.png)   
    37481. Modal option 
    3849 
    39 ![banner](https://raw.github.com/jazzsequence/Cat-Signal/master/screenshot-2.png) 
     50![banner](https://raw.github.com/jazzsequence/Cat-Signal/master/screenshot-2.png)   
    40512. Banner option 
    4152 
    42 ![options page](https://raw.github.com/jazzsequence/Cat-Signal/master/screenshot-3.png) 
     53![options page](https://raw.github.com/jazzsequence/Cat-Signal/master/screenshot-3.png)   
    43543. Options page 
    4455 
    4556 
    4657## Changelog 
     58**1.1.2** 
     59- Compatibility bump 
     60- Added FAQ 
     61- Remove http check from js code 
     62- Tweaked js 
     63- Updated readmes 
     64 
    4765**1.1.1** 
    4866- version bump, no major changes 
  • cat-signal/trunk/readme.txt

    r1153003 r1689907  
    11=== Internet Defense League Cat Signal === 
    22Contributors: jazzs3quence 
    3 Donate link: https://coinbase.com/checkouts/64d7bc3204fb355ff92f4c47b48cfa87 
     3Donate link: https://www.paypal.me/jazzsequence 
    44Tags: internet defense league, activism, cat signal, freedom, online activism 
    55Requires at least: 2.7 
    6 Tested up to: 4.2.1 
    7 Stable tag: 1.1.1 
     6Tested up to: 4.8 
     7Stable tag: 1.1.2 
    88 
    99A WordPress plugin to automatically load either the modal or the banner Cat Signal when there is an active campaign from the Internet Defense League. 
     
    1111== Description == 
    1212 
    13 The Internet Defense League is an online activist group organized to defend your online freedoms. When a bill is threatening to pass that would inhibit the way you live your online life, they put up the Cat Signal, a way to collectively black out or put notices on a large number of websites simultaneously. 
     13The [Internet Defense League](https://internetdefenseleague.org) is an online activist group organized to defend your online freedoms. When a bill is threatening to pass that would inhibit the way you live your online life, they put up the Cat Signal, a way to collectively black out or put notices on a large number of websites simultaneously. 
    1414 
    1515This plugin adds the javascript for the Cat Signal to your site so you don't need to mess with the code. It's enqueued like any other javascript file and has an options page to select either the banner or the modal window option. 
    1616 
    17 The current action centers around the Internet Slowdown campaign, to protest against cable companies that want to inhibit your browsing experience by enabling a "fast-lane" where service providers (like YouTube and Netflix) get priority access to faster speeds for a fee. Learn more on the [Battle for the Net](https://www.battleforthenet.com/sept10th/) site. This campaign will run for one day on September 10th. 
     17= Events Supported = 
     18 
     19Some of the events supported by this plugin: 
     20 
     21* [Internet Slowdown](https://www.battleforthenet.com/sept10th/) - 10 September, 2014 
     22* [Save Net Neutrality](https://www.battleforthenet.com/july12/) - 12 July, 2017 
    1823 
    1924= About the plugin = 
     
    2126At first glance, it may appear that the plugin isn't doing anything because you don't have a banner or a modal window. *Don't panic!!!* What this means is that all is safe in Gotham and the Cat Signal has not been activated (read: there probably isn't an active IDL campaign running). To keep up to date on Internet Defense League campaigns, I recommend signing up for their mailing list (ed. note: I'm not affiliated with them at all, I'm just your friendly neighborhood internet activist). Once you're on the list, you'll get emails when they're about to launch a campaign. 
    2227 
    23 **So how do I know if it's working?** 
     28== FAQ == 
     29 
     30**This plugin isn't updated often. Did you abandon it?** 
     31 
     32This plugin is a very simple implementation of the javascript code provided by the Internet Defense League to add their campaigns to your site when they go out. It does one thing — load the javascript — and nothing else. The actual code required to load said javascript from the IDL hasn’t changed, so there has been no need to update this plugin — as long as their code remains the same, this plugin will still work. 
     33 
     34The Cat Signal plugin is what could be considered [“complete software”](https://engineering.hmn.md/how-we-work/philosophy/completion/). There’s nothing else that needs to be done. There are no new features it needs, it does only one thing and nothing else, it’s just done. The only thing that I would be doing with each update is editing the readme file to change the version of WordPress it’s been tested up to and that’s not particularly high on my list of priorities, unfortunately. 
     35 
     36**How do I know if it's working?** 
     37 
    2438If you're savvy, you can check the HTML source of your site and check that either the `modal.js` or `banner.js` is loading. If it is, you're good to go, and the banner or modal window will work automagically when the IDL launch a new campaign. 
    2539 
    2640You can also add `?_idl_test=1` to the end of any page URL configured to display the alert. This will display a banner or modal in the style of the actual alert while not actually displaying a pretty banner or graphic. 
     41 
    2742 
    2843== Installation == 
     
    4156 
    4257== Changelog == 
     58 
     59= 1.1.2 = 
     60- Compatibility bump 
     61- Added FAQ 
     62- Remove http check from js code 
     63- Tweaked js 
     64- Updated readmes 
    4365 
    4466= 1.1.1 = 
     
    6284 
    6385= 1.0.5 = 
    64 - fixes validation _doing_it_wrong() 
     86- fixes validation `_doing_it_wrong()` 
    6587 
    6688= 1.0.4 = 
Note: See TracChangeset for help on using the changeset viewer.