Plugin Directory

Changeset 2246286


Ignore:
Timestamp:
02/18/2020 03:52:44 PM (6 years ago)
Author:
wordpresshandbuch
Message:

1.0.2

Removed flaw that checked on specific admin page. Not necessary and broke form chain. Checked and running 5.3.2.

Location:
wh-eyecatcher/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wh-eyecatcher/trunk/readme.txt

    r2031358 r2246286  
    44Tags: eyecatcher, slogan, float, floating, hover, hovering, attention, notification
    55Requires at least: 4.6
    6 Tested up to: 5.1
    7 Stable tag: 5.1
     6Tested up to: 5.3.2
     7Stable tag: 1.0.2
    88Requires PHP: 5.2.4
    99License: GPLv2 or later
     
    4646= 1.0 =
    4747Initial release.
     48
     49== Upgrade Notice ==
     50
     51= 1.0.1 =
     52Minor corrections and typos.
     53
     54== Upgrade Notice ==
     55
     56= 1.0.2 =
     57Removed flaw that checked on specific admin page. Not necessary and broke form chain. Checked and running 5.3.2.
  • wh-eyecatcher/trunk/wh-eyecatcher.php

    r2073823 r2246286  
    44Plugin URI: https://wordpress-handbuch.com/wh-eyecatcher
    55Description: Add a floating slogan to eyery page of your website
    6 Version: 1.0.1
     6Version: 1.0.2
    77Author: WordPress-Handbuch
    88Author URI: https://wordpress-handbuch.com
     
    2121*/
    2222if( !defined( 'WH_EYECATCHER_VERSION' ) )
    23     define( 'WH_EYECATCHER_VERSION', '1.0.1' );
     23    define( 'WH_EYECATCHER_VERSION', '1.0.2' );
    2424
    2525class WH_Eyecatcher {
     
    4040            'Style 4'   => "position:fixed; top:4vh; right:4vw; z-index:999999; font-size: 8vw; font-weight: bold; line-height: 1.2em; text-align: center; transform: rotate(12deg); color: transparent; text-shadow: -1px -1px 1px #fff, 1px 1px 1px #000;     color: transparent; opacity: 0.8;" ,
    4141            'Style 5'   => "position:fixed; top:4vh; right:4vw; z-index:999999; font-size: 9vw; font-weight: bold; line-height: 1.2em; text-align: center; transform: rotate(12deg); color: #fff; text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px #fff, 0 0 20px #ff2d95, 0 0 30px #ff2d95, 0 0 40px #ff2d95, 0 0 50px #ff2d95, 0 0 75px #ff2d95;    letter-spacing: 5px;",
    42             'Style 6'   => "position:fixed; top:4vh; right:4vw; z-index:999999; font-size: 10vw; font-weight: bold; line-height: 1.2em; text-align: center; transform: rotate(5deg); color: #fff; text-shadow: 0px -1px 4px white, 0px -2px 10px yellow, 0px -10px 20px #ff8000, 0px -18px 40px red;",
     42            'Style 6'   => "position:fixed; top:4vh; right:4vw; z-index:999999; font-size: 10vw; font-weight: bold; line-height: 1.2em; text-align: center; transform: rotate(5deg); color: #fff; text-shadow: 0px -1px 4px white, 0px -2px 10px yellow, 0px -10px 20px #ff8000, 0px -18px 40px red;"
    4343        );
    4444    }
     
    5959
    6060    public function page_init() {
    61         if (isset($_GET['page'])) {
    62             if (($_GET['page'] === 'wh-eyecatcher-page')) {
    63                 register_setting( 'wh_eyecatcher_option_group', 'wh_eyecatcher_slogan' );
    64                 register_setting( 'wh_eyecatcher_option_group', 'wh_eyecatcher_style' );
    65                 register_setting( 'wh_eyecatcher_option_group', 'wh_eyecatcher_css' );
     61        register_setting( 'wh_eyecatcher_option_group', 'wh_eyecatcher_slogan' );
     62        register_setting( 'wh_eyecatcher_option_group', 'wh_eyecatcher_style' );
     63        register_setting( 'wh_eyecatcher_option_group', 'wh_eyecatcher_css' );
    6664
    67                 add_settings_section( 'wh_eyecatcher_configuration', __('Options', 'wh_eyecatcher'), array( $this, 'print_section_info' ), 'wh-eyecatcher-page' );
    68                 add_settings_field( 'wh_eyecatcher_slogan', 'Slogan', array( $this, 'print_form_field_slogan' ), 'wh-eyecatcher-page', 'wh_eyecatcher_configuration' );
    69                 add_settings_field( 'wh_eyecatcher_style', 'Style', array( $this, 'print_form_field_style' ), 'wh-eyecatcher-page', 'wh_eyecatcher_configuration' );
    70                 add_settings_field( 'wh_eyecatcher_css', 'CSS Style', array( $this, 'print_form_field_css' ), 'wh-eyecatcher-page', 'wh_eyecatcher_configuration' );
    71             }
    72         }
     65        add_settings_section( 'wh_eyecatcher_configuration', __('Options', 'wh_eyecatcher'), array( $this, 'print_section_info' ), 'wh-eyecatcher-page' );
     66        add_settings_field( 'wh_eyecatcher_slogan', 'Slogan', array( $this, 'print_form_field_slogan' ), 'wh-eyecatcher-page', 'wh_eyecatcher_configuration' );
     67        add_settings_field( 'wh_eyecatcher_style', 'Style', array( $this, 'print_form_field_style' ), 'wh-eyecatcher-page', 'wh_eyecatcher_configuration' );
     68        add_settings_field( 'wh_eyecatcher_css', 'CSS Style', array( $this, 'print_form_field_css' ), 'wh-eyecatcher-page', 'wh_eyecatcher_configuration' );
    7369    }
    7470
    7571    public function add_menu() {
    76         add_options_page('Eyecatcher', 'WH Eyecatcher', 'manage_options', 'wh-eyecatcher-page', array( $this, 'options_page' ));
     72        add_options_page('WH Eyecatcher', 'WH Eyecatcher', 'manage_options', 'wh-eyecatcher-page', array( $this, 'options_page' ));
    7773    }
    7874
Note: See TracChangeset for help on using the changeset viewer.