Version Description
- Improvement: now tab links will be skipped. Should support Woocommerce.
- jQuery warning fixed.
- Compatibility checked with WP 4.5
Download this release
Release Info
Developer | BlogSynthesis |
Plugin | jQuery Smooth Scroll |
Version | 1.4.1 |
Comparing to | |
See all releases |
Code changes from version 1.2.3 to 1.4.1
- css/jss-style.css +20 -0
- css/jss-style.min.css +1 -1
- images/arrow.png +0 -0
- images/blogsynthesis-100px.png +0 -0
- images/email-16px.png +0 -0
- images/paypal-donate.gif +0 -0
- jquery-smooth-scroll.php +135 -93
- js/jss-script.js +48 -94
- js/jss-script.min.js +1 -1
- readme.txt +58 -22
css/jss-style.css
CHANGED
@@ -20,4 +20,24 @@ a#scroll-to-top {
|
|
20 |
cursor: pointer;
|
21 |
outline: 0;
|
22 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
}
|
20 |
cursor: pointer;
|
21 |
outline: 0;
|
22 |
|
23 |
+
}
|
24 |
+
|
25 |
+
body.rtl a#scroll-to-top {
|
26 |
+
left: 30px;
|
27 |
+
}
|
28 |
+
|
29 |
+
/* Responsive Design Support */
|
30 |
+
@media only screen and (max-width: 480px) {
|
31 |
+
|
32 |
+
a#scroll-to-top {
|
33 |
+
|
34 |
+
/* Changing Position */
|
35 |
+
right: 0;
|
36 |
+
bottom: 0;
|
37 |
+
}
|
38 |
+
|
39 |
+
body.rtl a#scroll-to-top {
|
40 |
+
left: 0;
|
41 |
+
bottom: 0;
|
42 |
+
}
|
43 |
}
|
css/jss-style.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
a#scroll-to-top{background:url(../images/arrow.png) no-repeat center center;width:35px;height:35px;position:fixed;right:30px;bottom:30px;text-indent:-9999px;font-size:0;cursor:pointer;outline:0}
|
1 |
+
a#scroll-to-top{background:url(../images/arrow.png) no-repeat center center;width:35px;height:35px;position:fixed;right:30px;bottom:30px;text-indent:-9999px;font-size:0;cursor:pointer;outline:0}body.rtl a#scroll-to-top{left:30px}@media only screen and (max-width:480px){a#scroll-to-top{right:0;bottom:0}body.rtl a#scroll-to-top{left:0;bottom:0}}
|
images/arrow.png
CHANGED
Binary file
|
images/blogsynthesis-100px.png
ADDED
Binary file
|
images/email-16px.png
ADDED
Binary file
|
images/paypal-donate.gif
ADDED
Binary file
|
jquery-smooth-scroll.php
CHANGED
@@ -1,15 +1,15 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: jQuery Smooth Scroll
|
4 |
-
Version: 1.
|
5 |
-
Plugin URI: http://www.blogsynthesis.com/wordpress-jquery-smooth-scroll-plugin
|
6 |
Description: The plugin not only add smooth scroll to top feature/link in the lower-right corner of long pages while scrolling but also makes all jump links to scroll smoothly.
|
7 |
Author: BlogSynthesis
|
8 |
Author URI: http://www.blogsynthesis.com/
|
9 |
License: GPL v3
|
10 |
|
11 |
-
jQuery Smooth Scroll
|
12 |
-
Copyright (C)
|
13 |
|
14 |
This program is free software: you can redistribute it and/or modify
|
15 |
it under the terms of the GNU General Public License as published by
|
@@ -25,92 +25,134 @@ You should have received a copy of the GNU General Public License
|
|
25 |
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
26 |
*/
|
27 |
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: jQuery Smooth Scroll
|
4 |
+
Version: 1.4.1
|
5 |
+
Plugin URI: http://www.blogsynthesis.com/wordpress-jquery-smooth-scroll-plugin/
|
6 |
Description: The plugin not only add smooth scroll to top feature/link in the lower-right corner of long pages while scrolling but also makes all jump links to scroll smoothly.
|
7 |
Author: BlogSynthesis
|
8 |
Author URI: http://www.blogsynthesis.com/
|
9 |
License: GPL v3
|
10 |
|
11 |
+
jQuery Smooth Scroll
|
12 |
+
Copyright (C) 2013-16, Anand Kumar <anand@anandkumar.net>
|
13 |
|
14 |
This program is free software: you can redistribute it and/or modify
|
15 |
it under the terms of the GNU General Public License as published by
|
25 |
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
26 |
*/
|
27 |
|
28 |
+
/****************************************************************
|
29 |
+
*
|
30 |
+
* THERE ARE A FEW THINGS YOU SHOULD MUST KNOW
|
31 |
+
* BEFORE EDITING THE PLUGIN
|
32 |
+
*
|
33 |
+
* FOR DETAILS VISIT:
|
34 |
+
* http://www.blogsynthesis.com/?p=860
|
35 |
+
* *
|
36 |
+
****************************************************************/
|
37 |
+
|
38 |
+
// Prevent loading this file directly - Busted!
|
39 |
+
if ( ! class_exists( 'WP' ) )
|
40 |
+
{
|
41 |
+
header( 'Status: 403 Forbidden' );
|
42 |
+
header( 'HTTP/1.1 403 Forbidden' );
|
43 |
+
exit;
|
44 |
+
}
|
45 |
+
|
46 |
+
|
47 |
+
if ( !class_exists( 'jQuerySmoothScroll' ) ) {
|
48 |
+
|
49 |
+
class jQuerySmoothScroll {
|
50 |
+
|
51 |
+
public function __construct() {
|
52 |
+
|
53 |
+
$blogsynthesis_jss_plugin_url = trailingslashit ( WP_PLUGIN_URL . '/' . dirname ( plugin_basename ( __FILE__ ) ) );
|
54 |
+
$pluginname = 'jQuery Smooth Scroll';
|
55 |
+
$plugin_version = '1.4.1';
|
56 |
+
|
57 |
+
// load plugin Scripts
|
58 |
+
//changed to action 'wp_enqueue_scripts' as its the recommended way to enqueue scripts and styles
|
59 |
+
// see http://codex.wordpress.org/Plugin_API/Action_Reference/wp_enqueue_scripts
|
60 |
+
add_action( 'wp_enqueue_scripts', array( &$this, 'wp_head') );
|
61 |
+
|
62 |
+
// add move to top button at wp_footer
|
63 |
+
add_action( 'wp_footer', array( &$this, 'wp_footer') );
|
64 |
+
|
65 |
+
}
|
66 |
+
|
67 |
+
// load our css to the head
|
68 |
+
public function wp_head() {
|
69 |
+
|
70 |
+
if ( !is_admin() ) {
|
71 |
+
global $blogsynthesis_jss_plugin_url;
|
72 |
+
|
73 |
+
// register and enqueue CSS
|
74 |
+
wp_register_style( 'jquery-smooth-scroll', plugin_dir_url( __FILE__ ) . 'css/jss-style.css', false );
|
75 |
+
wp_enqueue_style( 'jquery-smooth-scroll' );
|
76 |
+
|
77 |
+
// enqueue script
|
78 |
+
wp_enqueue_script('jquery');
|
79 |
+
$extension='.min.js';
|
80 |
+
if( defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ) {
|
81 |
+
$extension='.js';
|
82 |
+
}
|
83 |
+
wp_enqueue_script( 'jquery-smooth-scroll', plugin_dir_url( __FILE__ ) . 'js/jss-script'.$extension, array('jquery'),false, true );
|
84 |
+
|
85 |
+
// You may now choose easing effect. For more information visit http://www.blogsynthesis.com/?p=860
|
86 |
+
// wp_enqueue_script("jquery-effects-core");
|
87 |
+
}
|
88 |
+
}
|
89 |
+
|
90 |
+
public function wp_footer() {
|
91 |
+
// the html button which will be added to wp_footer ?>
|
92 |
+
<a id="scroll-to-top" href="#" title="<?php _e('Scroll to Top','blogsynthesis'); ?>"><?php _e('Top','blogsynthesis'); ?></a>
|
93 |
+
<?php
|
94 |
+
}
|
95 |
+
|
96 |
+
}
|
97 |
+
|
98 |
+
|
99 |
+
//////////////////////////////////////////////////////////////////////////////
|
100 |
+
|
101 |
+
add_action('wp_dashboard_setup', 'blogsynthesis_jss_dashboard_widgets');
|
102 |
+
|
103 |
+
function blogsynthesis_jss_dashboard_widgets() {
|
104 |
+
global $wp_meta_boxes;
|
105 |
+
wp_add_dashboard_widget('blogsynthesisshfswidget', 'Latest from BlogSynthesis', 'blogsynthesis_jss_widget');
|
106 |
+
}
|
107 |
+
|
108 |
+
function blogsynthesis_jss_widget() {
|
109 |
+
include_once( ABSPATH . WPINC . '/feed.php' );
|
110 |
+
|
111 |
+
$rss = fetch_feed( 'http://feeds2.feedburner.com/blogsynthesis' );
|
112 |
+
|
113 |
+
if ( ! is_wp_error( $rss ) ) :
|
114 |
+
|
115 |
+
// Figure out how many total items there are, but limit it to 10.
|
116 |
+
$maxitems = $rss->get_item_quantity( 10 );
|
117 |
+
|
118 |
+
// Build an array of all the items, starting with element 0 (first element).
|
119 |
+
$rss_items = $rss->get_items( 0, $maxitems );
|
120 |
+
|
121 |
+
endif;
|
122 |
+
|
123 |
+
{ ?>
|
124 |
+
<div class="rss-widget">
|
125 |
+
<a href="http://www.blogsynthesis.com/support/#utm_source=wpadmin&utm_medium=dashboardwidget&utm_term=newsitemlogo&utm_campaign=jss" title="BlogSynthesis - For Bloggers" target="_blank"><img src="<?php echo plugin_dir_url( __FILE__ ); ?>images/blogsynthesis-100px.png" class="alignright" alt="BlogSynthesis"/></a>
|
126 |
+
<ul>
|
127 |
+
<?php if ( $maxitems == 0 ) : ?>
|
128 |
+
<li><?php _e( 'No items', 'shfs-text-domain' ); ?></li>
|
129 |
+
<?php else : ?>
|
130 |
+
<?php // Loop through each feed item and display each item as a hyperlink. ?>
|
131 |
+
<?php foreach ( $rss_items as $item ) : ?>
|
132 |
+
<li>
|
133 |
+
<a href="<?php echo esc_url( $item->get_permalink() ); ?>#utm_source=wpadmin&utm_medium=dashboardwidget&utm_term=newsitem&utm_campaign=shfs"
|
134 |
+
title="<?php printf( __( 'Posted %s', 'shfs-text-domain' ), $item->get_date('j F Y | g:i a') ); ?>" target="_blank">
|
135 |
+
<?php echo esc_html( $item->get_title() ); ?>
|
136 |
+
</a>
|
137 |
+
</li>
|
138 |
+
<?php endforeach; ?>
|
139 |
+
<?php endif; ?>
|
140 |
+
</ul>
|
141 |
+
<div style="border-top: 1px solid #ddd; padding-top: 10px; text-align:center;">
|
142 |
+
<span class="addthis_toolbox addthis_default_style" style="float:left;">
|
143 |
+
<a class="addthis_button_facebook_follow" addthis:userid="blogsynthesis"></a>
|
144 |
+
<a class="addthis_button_twitter_follow" addthis:userid="blogsynthesis"></a>
|
145 |
+
<a class="addthis_button_google_follow" addthis:userid="+BlogSynthesis"></a>
|
146 |
+
<a class="addthis_button_rss_follow" addthis:userid="http://feeds2.feedburner.com/blogsynthesis"></a>
|
147 |
+
</span>
|
148 |
+
<a href="http://www.blogsynthesis.com/support/#utm_source=wpadmin&utm_medium=dashboardwidget&utm_term=newsitemlogo&utm_campaign=jss"><img src="<?php echo plugin_dir_url( __FILE__ ); ?>images/email-16px.png" alt="Subscribe via Email"/>Get Plugin Support</a>
|
149 |
+
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-525ab1d176544441"></script>
|
150 |
+
</div>
|
151 |
+
</div>
|
152 |
+
<?php }
|
153 |
+
|
154 |
+
}
|
155 |
+
|
156 |
+
$jQuerySmoothScroll = new jQuerySmoothScroll();
|
157 |
+
|
158 |
+
}
|
js/jss-script.js
CHANGED
@@ -1,8 +1,9 @@
|
|
1 |
-
/* Smooth Back to Top, Get This functionality from: http://wordpress.org/extend/plugins/cudazi-scroll-to-top/ */
|
2 |
-
|
3 |
jQuery.noConflict();
|
4 |
jQuery(function($) {
|
5 |
-
|
|
|
|
|
|
|
6 |
// When to show the scroll link
|
7 |
// higher number = scroll link appears further down the page
|
8 |
var upperLimit = 100;
|
@@ -10,8 +11,17 @@ jQuery(function($) {
|
|
10 |
// Our scroll link element
|
11 |
var scrollElem = $('a#scroll-to-top');
|
12 |
|
13 |
-
// Scroll to
|
14 |
-
var scrollSpeed =
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
|
16 |
// Show and hide the scroll to top link based on scroll position
|
17 |
scrollElem.hide();
|
@@ -26,95 +36,39 @@ jQuery(function($) {
|
|
26 |
|
27 |
// Scroll to top animation on click
|
28 |
$(scrollElem).click(function(){
|
29 |
-
$('html, body').animate({scrollTop:0}, scrollSpeed); return false;
|
30 |
});
|
31 |
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
}
|
52 |
-
|
53 |
-
|
54 |
-
}
|
55 |
-
if (target.nodeName.toLowerCase() != 'a') return;
|
56 |
-
anchor = target.hash.substr(1);
|
57 |
-
var allLinks = document.getElementsByTagName('a');
|
58 |
-
var destinationLink = null;
|
59 |
-
for (var i = 0; i < allLinks.length; i++) {
|
60 |
-
var lnk = allLinks[i];
|
61 |
-
if (lnk.name && (lnk.name == anchor)) {
|
62 |
-
destinationLink = lnk;
|
63 |
-
break;
|
64 |
-
}
|
65 |
-
}
|
66 |
-
if (!destinationLink) destinationLink = document.getElementById(anchor);
|
67 |
-
if (!destinationLink) return true;
|
68 |
-
var destx = destinationLink.offsetLeft;
|
69 |
-
var desty = destinationLink.offsetTop;
|
70 |
-
var thisNode = destinationLink;
|
71 |
-
while (thisNode.offsetParent && (thisNode.offsetParent != document.body)) {
|
72 |
-
thisNode = thisNode.offsetParent;
|
73 |
-
destx += thisNode.offsetLeft;
|
74 |
-
desty += thisNode.offsetTop;
|
75 |
-
}
|
76 |
-
clearInterval(ss.INTERVAL);
|
77 |
-
cypos = ss.getCurrentYPos();
|
78 |
-
ss_stepsize = parseInt((desty - cypos) / ss.STEPS);
|
79 |
-
ss.INTERVAL = setInterval('ss.scrollWindow(' + ss_stepsize + ',' + desty + ',"' + anchor + '")', 10);
|
80 |
-
if (window.event) {
|
81 |
-
window.event.cancelBubble = true;
|
82 |
-
window.event.returnValue = false;
|
83 |
-
}
|
84 |
-
if (e && e.preventDefault && e.stopPropagation) {
|
85 |
-
e.preventDefault();
|
86 |
-
e.stopPropagation();
|
87 |
-
}
|
88 |
-
},
|
89 |
-
scrollWindow: function (scramount, dest, anchor) {
|
90 |
-
wascypos = ss.getCurrentYPos();
|
91 |
-
isAbove = (wascypos < dest);
|
92 |
-
window.scrollTo(0, wascypos + scramount);
|
93 |
-
iscypos = ss.getCurrentYPos();
|
94 |
-
isAboveNow = (iscypos < dest);
|
95 |
-
if ((isAbove != isAboveNow) || (wascypos == iscypos)) {
|
96 |
-
window.scrollTo(0, dest);
|
97 |
-
clearInterval(ss.INTERVAL);
|
98 |
-
location.hash = anchor;
|
99 |
-
}
|
100 |
-
},
|
101 |
-
getCurrentYPos: function () {
|
102 |
-
if (document.body && document.body.scrollTop) return document.body.scrollTop;
|
103 |
-
if (document.documentElement && document.documentElement.scrollTop) return document.documentElement.scrollTop;
|
104 |
-
if (window.pageYOffset) return window.pageYOffset;
|
105 |
-
return 0;
|
106 |
-
},
|
107 |
-
addEvent: function (elm, evType, fn, useCapture) {
|
108 |
-
if (elm.addEventListener) {
|
109 |
-
elm.addEventListener(evType, fn, useCapture);
|
110 |
-
return true;
|
111 |
-
} else if (elm.attachEvent) {
|
112 |
-
var r = elm.attachEvent("on" + evType, fn);
|
113 |
-
return r;
|
114 |
-
} else {
|
115 |
-
alert("Handler could not be removed");
|
116 |
-
}
|
117 |
}
|
118 |
-
}
|
119 |
-
|
120 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
jQuery.noConflict();
|
2 |
jQuery(function($) {
|
3 |
+
|
4 |
+
|
5 |
+
// Customize Settings: For more information visit www.blogsynthesis.com/plugins/jquery-smooth-scroll/
|
6 |
+
|
7 |
// When to show the scroll link
|
8 |
// higher number = scroll link appears further down the page
|
9 |
var upperLimit = 100;
|
11 |
// Our scroll link element
|
12 |
var scrollElem = $('a#scroll-to-top');
|
13 |
|
14 |
+
// Scroll Speed. Change the number to change the speed
|
15 |
+
var scrollSpeed = 600;
|
16 |
+
|
17 |
+
// Choose your easing effect http://jqueryui.com/resources/demos/effect/easing.html
|
18 |
+
var scrollStyle = 'swing';
|
19 |
+
|
20 |
+
/****************************************************
|
21 |
+
* *
|
22 |
+
* JUMP TO ANCHOR LINK SCRIPT START *
|
23 |
+
* *
|
24 |
+
****************************************************/
|
25 |
|
26 |
// Show and hide the scroll to top link based on scroll position
|
27 |
scrollElem.hide();
|
36 |
|
37 |
// Scroll to top animation on click
|
38 |
$(scrollElem).click(function(){
|
39 |
+
$('html, body').animate({scrollTop:0}, scrollSpeed, scrollStyle ); return false;
|
40 |
});
|
41 |
|
42 |
+
/****************************************************
|
43 |
+
* *
|
44 |
+
* JUMP TO ANCHOR LINK SCRIPT START *
|
45 |
+
* *
|
46 |
+
****************************************************/
|
47 |
+
|
48 |
+
$('a[href*="#"]:not([href="#"]):not([href^="#tab"])').click(function()
|
49 |
+
{
|
50 |
+
if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'')
|
51 |
+
|| location.hostname == this.hostname)
|
52 |
+
{
|
53 |
+
|
54 |
+
var target = $(this.hash),
|
55 |
+
headerHeight = $(".primary-header").height() + 5; // Get fixed header height
|
56 |
+
|
57 |
+
target = target.length ? target : $('[name=' + this.hash.slice(1) +']');
|
58 |
+
|
59 |
+
if (target.length)
|
60 |
+
{
|
61 |
+
$('html,body').animate({ scrollTop: target.offset().top }, scrollSpeed, scrollStyle );
|
62 |
+
return false;
|
63 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
64 |
}
|
65 |
+
});
|
66 |
+
|
67 |
+
|
68 |
+
/****************************************************
|
69 |
+
* *
|
70 |
+
* FOLLOW BLOGSYNTHESIS.COM FOR WORDPRESS TIPS *
|
71 |
+
* *
|
72 |
+
****************************************************/
|
73 |
+
|
74 |
+
});
|
js/jss-script.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
jQuery.noConflict()
|
1 |
+
jQuery.noConflict(),jQuery(function(o){var t=100,e=o("a#scroll-to-top"),n=600,a="swing";e.hide(),o(window).scroll(function(){var n=o(document).scrollTop();n>t?o(e).stop().fadeTo(300,1):o(e).stop().fadeTo(300,0)}),o(e).click(function(){return o("html, body").animate({scrollTop:0},n,a),!1}),o('a[href*="#"]:not([href="#"]):not([href^="#tab"])').click(function(){if(location.pathname.replace(/^\//,"")==this.pathname.replace(/^\//,"")||location.hostname==this.hostname){var t=o(this.hash);o(".primary-header").height()+5;if(t=t.length?t:o("[name="+this.hash.slice(1)+"]"),t.length)return o("html,body").animate({scrollTop:t.offset().top},n,a),!1}})});
|
readme.txt
CHANGED
@@ -1,44 +1,51 @@
|
|
1 |
=== jQuery Smooth Scroll ===
|
2 |
-
Contributors: BlogSynthesis
|
3 |
Tags: Smooth Scroll, smooth scroll anchor, scroll to top, scroll, back to top, jquery, top of page
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
12 |
-
|
13 |
|
14 |
== Description ==
|
15 |
|
16 |
This plugin makes your anchor text to smooth scroll adds a smooth scroll to top feature/link in the lower-right corner of long pages. Appears after a set scrolling point and hides after scrolling near the top. This plugin is based on cudazi's plugin "Scroll to Top", and you may use this plugin if you need "Scroll to top" feature.
|
17 |
|
18 |
-
Features include:
|
19 |
-
|
20 |
* Smooth Scrolling for all anchor texts.
|
21 |
* A back to top button on right hand side.
|
22 |
* No unnecessary menu item in WordPress Dashboard.
|
23 |
* Easy customization with some css/js code edit.
|
24 |
* All CSS and JS files are compressed to score high in Google Page Speed score.
|
|
|
25 |
|
26 |
-
|
|
|
|
|
|
|
|
|
27 |
|
28 |
-
|
29 |
|
30 |
-
|
31 |
|
32 |
== Installation ==
|
33 |
|
34 |
-
1. Upload the plugin in
|
35 |
-
2. Activate the plugin through the
|
36 |
3. Visit a long page and start scrolling down to see the link appear.
|
37 |
|
38 |
== Frequently Asked Questions ==
|
39 |
|
40 |
= Why I am not able to find any menu link in my WordPress Dashboard? =
|
41 |
-
Because there is
|
|
|
|
|
|
|
42 |
|
43 |
= Can I use a custom icon? =
|
44 |
|
@@ -55,7 +62,7 @@ Because these files are compressed. I have included reader friendly files i.e. j
|
|
55 |
= I don't want to add a plugin. How do I add these functionality without a plugin? =
|
56 |
Of course you can do this. I will add a blog post about how to do this without any plugin. But remember, you can't get automatic upgrade in this condition. BTW, Follow [BlogSynthesis](http://www.blogsynthesis.com) for any update.
|
57 |
|
58 |
-
Note: This plugin is based on "Cudazi scroll to top"
|
59 |
|
60 |
== Screenshots ==
|
61 |
|
@@ -64,22 +71,51 @@ Note: This plugin is based on "Cudazi scroll to top" and "easy smooth scroll lin
|
|
64 |
|
65 |
== Changelog ==
|
66 |
|
67 |
-
= 1.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
68 |
* Fixed Incompatibility with Hello Bar Plugin.
|
69 |
* Added Easy Smooth Scroll links script.
|
70 |
|
71 |
= 1.2.0 =
|
72 |
-
* Major js change
|
73 |
|
74 |
-
|
75 |
-
* Youtube video added
|
76 |
|
77 |
= 1.0.1 =
|
|
|
78 |
* Improved readme.txt for WordPress.org plugin library.
|
79 |
* Initial release at [WordPress.org](http://wordpress.org/extend/plugins/jquery-smooth-scroll/)
|
80 |
|
81 |
= 1.0.0 =
|
82 |
-
|
|
|
83 |
|
84 |
== Upgrade Notice ==
|
85 |
-
|
1 |
=== jQuery Smooth Scroll ===
|
2 |
+
Contributors: digitalliberation, anand_kumar, BlogSynthesis
|
3 |
Tags: Smooth Scroll, smooth scroll anchor, scroll to top, scroll, back to top, jquery, top of page
|
4 |
+
Donate link: https://digitalliberation.org
|
5 |
+
Requires at least: 4.0
|
6 |
+
Tested up to: 4.9.1
|
7 |
+
Stable tag: 1.4.1
|
8 |
+
Requires PHP: 5.2.4
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
12 |
+
Activate the plugin for smooth scrolling and smooth "back to top" feature.
|
13 |
|
14 |
== Description ==
|
15 |
|
16 |
This plugin makes your anchor text to smooth scroll adds a smooth scroll to top feature/link in the lower-right corner of long pages. Appears after a set scrolling point and hides after scrolling near the top. This plugin is based on cudazi's plugin "Scroll to Top", and you may use this plugin if you need "Scroll to top" feature.
|
17 |
|
18 |
+
= Features include: =
|
|
|
19 |
* Smooth Scrolling for all anchor texts.
|
20 |
* A back to top button on right hand side.
|
21 |
* No unnecessary menu item in WordPress Dashboard.
|
22 |
* Easy customization with some css/js code edit.
|
23 |
* All CSS and JS files are compressed to score high in Google Page Speed score.
|
24 |
+
* Now change easing effect with the help of jQueruyUI
|
25 |
|
26 |
+
= Important Links: =
|
27 |
+
* [**Support**](https://digitalliberation.org/wordpress)
|
28 |
+
* [**Github Repo**](https://github.com/anandkumar/jquery-smooth-scroll)
|
29 |
+
* [Donate](http://www.blogsynthesis.com/donate/)
|
30 |
+
* [WordPress Tips](http://www.blogsynthesis.com/category/tutorials/)
|
31 |
|
32 |
+
BTW, The plugin might not be now compatible with some plugins. If there are some specific tabs or anchor links we may exclude them mannually. Ask in support forums for help. Please report compatibility issue on the [GitHub repository](https://github.com/anandkumar/jquery-smooth-scroll). You are welcomed to contribute towards the development of the plugin.
|
33 |
|
34 |
+
http://www.youtube.com/watch?v=2gsdGOPfqF0
|
35 |
|
36 |
== Installation ==
|
37 |
|
38 |
+
1. Upload the plugin in `Plugins > Add New` or FTP into the `/wp-content/plugins/` directory.
|
39 |
+
2. Activate the plugin through the `Plugins` menu in WordPress.
|
40 |
3. Visit a long page and start scrolling down to see the link appear.
|
41 |
|
42 |
== Frequently Asked Questions ==
|
43 |
|
44 |
= Why I am not able to find any menu link in my WordPress Dashboard? =
|
45 |
+
Because there is none. All you have to install and activate the plugin. However, There might be some compatibility issues especially with a slider or tab. Please consult us for help.
|
46 |
+
|
47 |
+
= I am looking for PSD file. =
|
48 |
+
You may [download the PSD file from here](http://www.blogsynthesis.com/plugins/jquery-smooth-scroll/).
|
49 |
|
50 |
= Can I use a custom icon? =
|
51 |
|
62 |
= I don't want to add a plugin. How do I add these functionality without a plugin? =
|
63 |
Of course you can do this. I will add a blog post about how to do this without any plugin. But remember, you can't get automatic upgrade in this condition. BTW, Follow [BlogSynthesis](http://www.blogsynthesis.com) for any update.
|
64 |
|
65 |
+
Note: This plugin is based on "Cudazi scroll to top".
|
66 |
|
67 |
== Screenshots ==
|
68 |
|
71 |
|
72 |
== Changelog ==
|
73 |
|
74 |
+
= 1.4.1 =
|
75 |
+
* Improvement: now tab links will be skipped. Should support Woocommerce.
|
76 |
+
* jQuery warning fixed.
|
77 |
+
* Compatibility checked with WP 4.5
|
78 |
+
|
79 |
+
= 1.4.0 =
|
80 |
+
* Improvement: PHP5 style construct. made the plugin future proof
|
81 |
+
* Compatibility checked with WP 4.4.2
|
82 |
+
|
83 |
+
= 1.3.2 =
|
84 |
+
* Bugfix
|
85 |
+
* Compatibility checked with WP 4.0
|
86 |
+
|
87 |
+
= 1.3.1 =
|
88 |
+
* Fixed compatibility issue with OptimizePress Plugin.
|
89 |
+
(There was a prablem with Live Editor)
|
90 |
+
|
91 |
+
= 1.3.0 =
|
92 |
+
|
93 |
+
* Now you may easily customize speed and easing effect
|
94 |
+
* Fixed compatibility issue with other plugins.
|
95 |
+
|
96 |
+
= 1.2.4 =
|
97 |
+
|
98 |
+
* Compatibility check for WordPress 3.7.1
|
99 |
+
* Asking for feedback and listing incompatibility.
|
100 |
+
* Minor improvement.
|
101 |
+
|
102 |
+
= 1.2.3 =
|
103 |
+
|
104 |
* Fixed Incompatibility with Hello Bar Plugin.
|
105 |
* Added Easy Smooth Scroll links script.
|
106 |
|
107 |
= 1.2.0 =
|
|
|
108 |
|
109 |
+
* Major js change
|
|
|
110 |
|
111 |
= 1.0.1 =
|
112 |
+
|
113 |
* Improved readme.txt for WordPress.org plugin library.
|
114 |
* Initial release at [WordPress.org](http://wordpress.org/extend/plugins/jquery-smooth-scroll/)
|
115 |
|
116 |
= 1.0.0 =
|
117 |
+
|
118 |
+
* Initial release at [blogsynthesis.com](https://www.blogsynthesis.com/plugins/jquery-smooth-scroll/)
|
119 |
|
120 |
== Upgrade Notice ==
|
121 |
+
Any modification made to the plugin files will be gone after upgrade. Please consider backing up before this upgrade. [Contact us](https://digitalliberation.org/wordpress) any clarification.
|