Changeset 2246286
- Timestamp:
- 02/18/2020 03:52:44 PM (6 years ago)
- Location:
- wh-eyecatcher/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (2 diffs)
-
wh-eyecatcher.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wh-eyecatcher/trunk/readme.txt
r2031358 r2246286 4 4 Tags: eyecatcher, slogan, float, floating, hover, hovering, attention, notification 5 5 Requires at least: 4.6 6 Tested up to: 5. 17 Stable tag: 5.16 Tested up to: 5.3.2 7 Stable tag: 1.0.2 8 8 Requires PHP: 5.2.4 9 9 License: GPLv2 or later … … 46 46 = 1.0 = 47 47 Initial release. 48 49 == Upgrade Notice == 50 51 = 1.0.1 = 52 Minor corrections and typos. 53 54 == Upgrade Notice == 55 56 = 1.0.2 = 57 Removed 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 4 4 Plugin URI: https://wordpress-handbuch.com/wh-eyecatcher 5 5 Description: Add a floating slogan to eyery page of your website 6 Version: 1.0. 16 Version: 1.0.2 7 7 Author: WordPress-Handbuch 8 8 Author URI: https://wordpress-handbuch.com … … 21 21 */ 22 22 if( !defined( 'WH_EYECATCHER_VERSION' ) ) 23 define( 'WH_EYECATCHER_VERSION', '1.0. 1' );23 define( 'WH_EYECATCHER_VERSION', '1.0.2' ); 24 24 25 25 class WH_Eyecatcher { … … 40 40 '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;" , 41 41 '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;" 43 43 ); 44 44 } … … 59 59 60 60 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' ); 66 64 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' ); 73 69 } 74 70 75 71 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' )); 77 73 } 78 74
Note: See TracChangeset
for help on using the changeset viewer.