Plugin Directory

Changeset 2837777


Ignore:
Timestamp:
12/22/2022 05:24:07 AM (3 years ago)
Author:
tcordero
Message:

Update to version 1.6.2 from GitHub

Location:
safety-exit
Files:
6 deleted
13 edited
1 copied

Legend:

Unmodified
Added
Removed
  • safety-exit/assets/icon.svg

    • Property svn:mime-type set to image/svg+xml
  • safety-exit/assets/screenshot-1.png

    • Property svn:mime-type changed from application/octet-stream to image/png
  • safety-exit/assets/screenshot-2.png

    • Property svn:mime-type changed from application/octet-stream to image/png
  • safety-exit/tags/1.6.2/lib/Safety_Exit_Admin.php

    r2798111 r2837777  
    5353        // update_option('sftExt_css', $cssString);
    5454    }
     55
    5556    public function safety_exit_add_options_page() {
    5657        // echo $this->root;die;
     
    292293            );
    293294
    294 
    295295            // End Button Display Options
    296296        }
  • safety-exit/tags/1.6.2/lib/Safety_Exit_Frontend.php

    r2800325 r2837777  
    99 * Creates the submenu item for the plugin.
    1010 *
    11  * Registers a new menu item under 'Tools' and uses the dependency passed into
    12  * the constructor in order to display the page corresponding to this menu item.
    13  *
    1411 * @package Frontend_stuff
    1512 */
     
    1815    private $pluginRoot;
    1916
     17    private $buttonInitialized = false;
     18
    2019    public function __construct($file) {
    2120        $this->pluginRoot = $file;
     
    2322    public function init() {
    2423        add_action('wp_enqueue_scripts', array($this, 'sftExt_enqueue'));
    25         add_action( 'wp_body_open', array($this, 'safety_exit_injectTest'), 100 );
     24        add_action( 'wp_body_open', array($this, 'safety_exit_inject'), 100 );
     25        do_action( 'wp_body_open' );
    2626    }
    2727    public function sftExt_enqueue() {
     
    3737        }
    3838    }
    39     public function safety_exit_injectTest() {
     39    public function safety_exit_inject() {
    4040        include_once( 'views/frontend-button.php' );
    4141    }
  • safety-exit/tags/1.6.2/lib/views/frontend-button.php

    r2800325 r2837777  
    3232        }
    3333    }
     34    $hideOnMobile = false;
    3435    if($sftExtSettings['sftExt_hide_mobile'] == 'yes') {
    3536        $hideOnMobile = true;
  • safety-exit/tags/1.6.2/readme.txt

    r2800325 r2837777  
    33Tags: quick exit, safety exit, stop abuse, no domestic violence, safe browsing, exit, fast exit, domestic violence, panic button
    44Donate link: https://tomascordero.com
    5 Requires at least: 4.0.0
    6 Tested up to: 6.0.2
     5Requires at least: 5.2.0
     6Tested up to: 6.1.1
    77Requires PHP: 5.2.4
    8 Stable tag: 1.6.1
     8Stable tag: 1.6.2
    99License: GPL-2.0+
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    1515This plugin will insert a safety exit button onto your site. A safety exit button is ideal for websites dealing with sensitive subjects such as domestic violence, rape, child abuse and others. When the user clicks the button they will instantly redirected to a URL of your choosing and a new tab / window will be opened to a URL of your choosing.
    1616
    17 The button is customizable with options to change the color of the button and font, pick an icon from fontawesome's free icon library, update font size, change what the button says and more features coming in the future. You can see the roadmap here: [Roadmap](https://trello.com/b/Zp7oBfQz/safety-exit)
     17The button is customizable with options to change the color of the button and font, pick an icon from fontawesome's free icon library, update font size, change what the button says and more features coming in the future.
    1818
    1919
     
    3434
    3535= Can I request features? =
    36 Yes! I love feature ideas and requests to make this thing better. You can submit a feature request under the support tab. Check out the roadmap here: [Roadmap](https://trello.com/b/Zp7oBfQz/safety-exit)
     36Yes! I love feature ideas and requests to make this thing better. You can submit a feature request under the support tab.
    3737
    3838= Can I customize the button more than the options you gave me? =
     
    4848
    4949== Changelog ==
     501.6.2:
     51    - Fix: Instead of depending on the theme to run fire the `wp_body_open` hook, we now run it in the plugin's init method.
    50521.6.1:
    5153    - Tweak: Switched from injecting the button in the footer to injecting it to the wp_body_open. This fixes a bug with certain page builders that use a post / page to create the footer.
  • safety-exit/tags/1.6.2/safety-exit.php

    r2800325 r2837777  
    1212 * Plugin URI:
    1313 * Description: This plugin will inject a button on your website that will allow a website user to quickly navigate away from your website.
    14  * Version:     1.6.1
     14 * Version:     1.6.2
    1515 * Author:      Tomas Cordero
    1616 * Author URI:  https://tomascordero.com
  • safety-exit/trunk/lib/Safety_Exit_Admin.php

    r2798111 r2837777  
    5353        // update_option('sftExt_css', $cssString);
    5454    }
     55
    5556    public function safety_exit_add_options_page() {
    5657        // echo $this->root;die;
     
    292293            );
    293294
    294 
    295295            // End Button Display Options
    296296        }
  • safety-exit/trunk/lib/Safety_Exit_Frontend.php

    r2800325 r2837777  
    99 * Creates the submenu item for the plugin.
    1010 *
    11  * Registers a new menu item under 'Tools' and uses the dependency passed into
    12  * the constructor in order to display the page corresponding to this menu item.
    13  *
    1411 * @package Frontend_stuff
    1512 */
     
    1815    private $pluginRoot;
    1916
     17    private $buttonInitialized = false;
     18
    2019    public function __construct($file) {
    2120        $this->pluginRoot = $file;
     
    2322    public function init() {
    2423        add_action('wp_enqueue_scripts', array($this, 'sftExt_enqueue'));
    25         add_action( 'wp_body_open', array($this, 'safety_exit_injectTest'), 100 );
     24        add_action( 'wp_body_open', array($this, 'safety_exit_inject'), 100 );
     25        do_action( 'wp_body_open' );
    2626    }
    2727    public function sftExt_enqueue() {
     
    3737        }
    3838    }
    39     public function safety_exit_injectTest() {
     39    public function safety_exit_inject() {
    4040        include_once( 'views/frontend-button.php' );
    4141    }
  • safety-exit/trunk/lib/views/frontend-button.php

    r2800325 r2837777  
    3232        }
    3333    }
     34    $hideOnMobile = false;
    3435    if($sftExtSettings['sftExt_hide_mobile'] == 'yes') {
    3536        $hideOnMobile = true;
  • safety-exit/trunk/readme.txt

    r2800325 r2837777  
    33Tags: quick exit, safety exit, stop abuse, no domestic violence, safe browsing, exit, fast exit, domestic violence, panic button
    44Donate link: https://tomascordero.com
    5 Requires at least: 4.0.0
    6 Tested up to: 6.0.2
     5Requires at least: 5.2.0
     6Tested up to: 6.1.1
    77Requires PHP: 5.2.4
    8 Stable tag: 1.6.1
     8Stable tag: 1.6.2
    99License: GPL-2.0+
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    1515This plugin will insert a safety exit button onto your site. A safety exit button is ideal for websites dealing with sensitive subjects such as domestic violence, rape, child abuse and others. When the user clicks the button they will instantly redirected to a URL of your choosing and a new tab / window will be opened to a URL of your choosing.
    1616
    17 The button is customizable with options to change the color of the button and font, pick an icon from fontawesome's free icon library, update font size, change what the button says and more features coming in the future. You can see the roadmap here: [Roadmap](https://trello.com/b/Zp7oBfQz/safety-exit)
     17The button is customizable with options to change the color of the button and font, pick an icon from fontawesome's free icon library, update font size, change what the button says and more features coming in the future.
    1818
    1919
     
    3434
    3535= Can I request features? =
    36 Yes! I love feature ideas and requests to make this thing better. You can submit a feature request under the support tab. Check out the roadmap here: [Roadmap](https://trello.com/b/Zp7oBfQz/safety-exit)
     36Yes! I love feature ideas and requests to make this thing better. You can submit a feature request under the support tab.
    3737
    3838= Can I customize the button more than the options you gave me? =
     
    4848
    4949== Changelog ==
     501.6.2:
     51    - Fix: Instead of depending on the theme to run fire the `wp_body_open` hook, we now run it in the plugin's init method.
    50521.6.1:
    5153    - Tweak: Switched from injecting the button in the footer to injecting it to the wp_body_open. This fixes a bug with certain page builders that use a post / page to create the footer.
  • safety-exit/trunk/safety-exit.php

    r2800325 r2837777  
    1212 * Plugin URI:
    1313 * Description: This plugin will inject a button on your website that will allow a website user to quickly navigate away from your website.
    14  * Version:     1.6.1
     14 * Version:     1.6.2
    1515 * Author:      Tomas Cordero
    1616 * Author URI:  https://tomascordero.com
Note: See TracChangeset for help on using the changeset viewer.