Version Description
- tested on WP 5.7
Download this release
Release Info
Developer | kubiq |
Plugin | MouseWheel Smooth Scroll |
Version | 5.6 |
Comparing to | |
See all releases |
Code changes from version 5.5 to 5.6
- mousewheel-smooth-scroll.php +8 -8
- readme.txt +5 -2
mousewheel-smooth-scroll.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: MouseWheel Smooth Scroll
|
4 |
Plugin URI: https://kubiq.sk
|
5 |
Description: MouseWheel smooth scrolling for your WordPress website
|
6 |
-
Version: 5.
|
7 |
Author: KubiQ
|
8 |
Author URI: https://kubiq.sk
|
9 |
Text Domain: wpmss
|
@@ -15,7 +15,7 @@ class wpmss{
|
|
15 |
var $settings;
|
16 |
var $tab;
|
17 |
var $uploads;
|
18 |
-
|
19 |
function __construct(){
|
20 |
add_action( 'plugins_loaded', array( $this, 'plugins_loaded' ) );
|
21 |
add_action( 'admin_menu', array( $this, 'plugin_menu_link' ) );
|
@@ -25,13 +25,13 @@ class wpmss{
|
|
25 |
function plugins_loaded(){
|
26 |
load_plugin_textdomain( 'wpmss', FALSE, basename( dirname( __FILE__ ) ) . '/languages/' );
|
27 |
}
|
28 |
-
|
29 |
function filter_plugin_actions( $links, $file ){
|
30 |
$settings_link = '<a href="options-general.php?page=' . basename( __FILE__ ) . '">' . __('Settings') . '</a>';
|
31 |
array_unshift( $links, $settings_link );
|
32 |
return $links;
|
33 |
}
|
34 |
-
|
35 |
function plugin_menu_link(){
|
36 |
$this->plugin_admin_page = add_submenu_page(
|
37 |
'options-general.php',
|
@@ -43,7 +43,7 @@ class wpmss{
|
|
43 |
);
|
44 |
add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), array( $this, 'filter_plugin_actions' ), 10, 2 );
|
45 |
}
|
46 |
-
|
47 |
function plugin_init(){
|
48 |
$this->settings = get_option('wpmss_settings');
|
49 |
if( ! isset( $this->settings['general']['timestamp'] ) ){
|
@@ -85,7 +85,7 @@ class wpmss{
|
|
85 |
wp_enqueue_script( 'SmoothScroll', plugins_url( 'js/SmoothScroll.min.js', __FILE__ ), array('wpmssab'), '1.4.10', 1 );
|
86 |
wp_enqueue_script( 'wpmss', $this->uploads['baseurl'] . '/wpmss/wpmss.min.js', array('SmoothScroll'), $this->settings['general']['timestamp'] + 541410, 1 );
|
87 |
}
|
88 |
-
|
89 |
function plugin_admin_tabs( $current = 'general' ){
|
90 |
$tabs = array( 'general' => __('General'), 'info' => __('Help') ); ?>
|
91 |
<h2 class="nav-tab-wrapper">
|
@@ -160,7 +160,7 @@ class wpmss{
|
|
160 |
</form>
|
161 |
</div><?php
|
162 |
}
|
163 |
-
|
164 |
function plugin_general_options(){ ?>
|
165 |
<style>.default{color:#a0a5aa}</style>
|
166 |
<input type="hidden" name="timestamp" value="<?php echo time() ?>">
|
@@ -317,7 +317,7 @@ class wpmss{
|
|
317 |
</table>
|
318 |
<p class="submit"><input type="submit" class="button button-primary button-large" value="<?php _e('Save') ?>"></p><?php
|
319 |
}
|
320 |
-
|
321 |
function plugin_info_options(){ ?>
|
322 |
<p>This plugin is only WordPress implementation of JS script from <strong title="Blaze (Balázs Galambosi)">gblazex</strong>.</p>
|
323 |
<p>Find more <a href="https://github.com/gblazex/smoothscroll-for-websites" target="_blank">on Github</a></p><?php
|
3 |
Plugin Name: MouseWheel Smooth Scroll
|
4 |
Plugin URI: https://kubiq.sk
|
5 |
Description: MouseWheel smooth scrolling for your WordPress website
|
6 |
+
Version: 5.6
|
7 |
Author: KubiQ
|
8 |
Author URI: https://kubiq.sk
|
9 |
Text Domain: wpmss
|
15 |
var $settings;
|
16 |
var $tab;
|
17 |
var $uploads;
|
18 |
+
|
19 |
function __construct(){
|
20 |
add_action( 'plugins_loaded', array( $this, 'plugins_loaded' ) );
|
21 |
add_action( 'admin_menu', array( $this, 'plugin_menu_link' ) );
|
25 |
function plugins_loaded(){
|
26 |
load_plugin_textdomain( 'wpmss', FALSE, basename( dirname( __FILE__ ) ) . '/languages/' );
|
27 |
}
|
28 |
+
|
29 |
function filter_plugin_actions( $links, $file ){
|
30 |
$settings_link = '<a href="options-general.php?page=' . basename( __FILE__ ) . '">' . __('Settings') . '</a>';
|
31 |
array_unshift( $links, $settings_link );
|
32 |
return $links;
|
33 |
}
|
34 |
+
|
35 |
function plugin_menu_link(){
|
36 |
$this->plugin_admin_page = add_submenu_page(
|
37 |
'options-general.php',
|
43 |
);
|
44 |
add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), array( $this, 'filter_plugin_actions' ), 10, 2 );
|
45 |
}
|
46 |
+
|
47 |
function plugin_init(){
|
48 |
$this->settings = get_option('wpmss_settings');
|
49 |
if( ! isset( $this->settings['general']['timestamp'] ) ){
|
85 |
wp_enqueue_script( 'SmoothScroll', plugins_url( 'js/SmoothScroll.min.js', __FILE__ ), array('wpmssab'), '1.4.10', 1 );
|
86 |
wp_enqueue_script( 'wpmss', $this->uploads['baseurl'] . '/wpmss/wpmss.min.js', array('SmoothScroll'), $this->settings['general']['timestamp'] + 541410, 1 );
|
87 |
}
|
88 |
+
|
89 |
function plugin_admin_tabs( $current = 'general' ){
|
90 |
$tabs = array( 'general' => __('General'), 'info' => __('Help') ); ?>
|
91 |
<h2 class="nav-tab-wrapper">
|
160 |
</form>
|
161 |
</div><?php
|
162 |
}
|
163 |
+
|
164 |
function plugin_general_options(){ ?>
|
165 |
<style>.default{color:#a0a5aa}</style>
|
166 |
<input type="hidden" name="timestamp" value="<?php echo time() ?>">
|
317 |
</table>
|
318 |
<p class="submit"><input type="submit" class="button button-primary button-large" value="<?php _e('Save') ?>"></p><?php
|
319 |
}
|
320 |
+
|
321 |
function plugin_info_options(){ ?>
|
322 |
<p>This plugin is only WordPress implementation of JS script from <strong title="Blaze (Balázs Galambosi)">gblazex</strong>.</p>
|
323 |
<p>Find more <a href="https://github.com/gblazex/smoothscroll-for-websites" target="_blank">on Github</a></p><?php
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: KubiQ
|
|
3 |
Donate link: https://www.paypal.me/jakubnovaksl
|
4 |
Tags: smooth scroll, mousewheel scroll, scrolling
|
5 |
Requires at least: 3.0.1
|
6 |
-
Tested up to: 5.
|
7 |
-
Stable tag: 5.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -26,6 +26,9 @@ Replace basic website scrolling "effect" with nice smooth scroll using mousewhee
|
|
26 |
|
27 |
== Changelog ==
|
28 |
|
|
|
|
|
|
|
29 |
= 5.5 =
|
30 |
* FIX: create config files for new installations
|
31 |
|
3 |
Donate link: https://www.paypal.me/jakubnovaksl
|
4 |
Tags: smooth scroll, mousewheel scroll, scrolling
|
5 |
Requires at least: 3.0.1
|
6 |
+
Tested up to: 5.7
|
7 |
+
Stable tag: 5.6
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
26 |
|
27 |
== Changelog ==
|
28 |
|
29 |
+
= 5.6 =
|
30 |
+
* tested on WP 5.7
|
31 |
+
|
32 |
= 5.5 =
|
33 |
* FIX: create config files for new installations
|
34 |
|