Version Description
- 2019/08/05
- minor bug fixes
- 50,000 installations; 247,643 downloads
Download this release
Release Info
Developer | WebFactory |
Plugin | Easy Smooth Scroll Links |
Version | 2.2 |
Comparing to | |
See all releases |
Code changes from version 1.8 to 2.2
- index.php +65 -79
- options.php +192 -169
- readme.txt +1 -105
- screenshot-1.png +0 -0
- screenshot-2.png +0 -0
- screenshot-3.jpg +0 -0
- screenshot-4.jpg +0 -0
- screenshot-5.png +0 -0
index.php
CHANGED
@@ -1,30 +1,19 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: Easy Smooth Scroll Links
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
Author:
|
8 |
-
|
|
|
|
|
9 |
*/
|
10 |
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
it under the terms of the GNU General Public License as published by
|
16 |
-
the Free Software Foundation, either version 3 of the License, or
|
17 |
-
(at your option) any later version.
|
18 |
-
|
19 |
-
This program is distributed in the hope that it will be useful,
|
20 |
-
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
21 |
-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
22 |
-
GNU General Public License for more details.
|
23 |
-
|
24 |
-
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 |
//Anchor Button to TinyMCE Editor
|
30 |
global $wp_version;
|
@@ -55,7 +44,7 @@ if ( $wp_version < 3.9 ) {
|
|
55 |
//Shortcode
|
56 |
if ( ! function_exists('essl_shortcode') ) {
|
57 |
function essl_shortcode( $atts, $content = null ) {
|
58 |
-
return '<a
|
59 |
}
|
60 |
add_shortcode( 'anchor', 'essl_shortcode' );
|
61 |
}
|
@@ -69,7 +58,7 @@ if(!class_exists('ESSLPluginOptions')) :
|
|
69 |
// DEFINE PLUGIN ID
|
70 |
define('ESSLPluginOptions_ID', 'essl-plugin-options');
|
71 |
// DEFINE PLUGIN NICK
|
72 |
-
define('ESSLPluginOptions_NICK', 'ESSL
|
73 |
|
74 |
class ESSLPluginOptions
|
75 |
{
|
@@ -80,7 +69,7 @@ define('ESSLPluginOptions_NICK', 'ESSL Settings');
|
|
80 |
*/
|
81 |
public static function file_path($file)
|
82 |
{
|
83 |
-
return
|
84 |
}
|
85 |
/** function/method
|
86 |
* Usage: hooking the plugin options/settings
|
@@ -89,6 +78,7 @@ define('ESSLPluginOptions_NICK', 'ESSL Settings');
|
|
89 |
*/
|
90 |
public static function register()
|
91 |
{
|
|
|
92 |
register_setting(ESSLPluginOptions_ID.'_options', 'essl_speed');
|
93 |
register_setting(ESSLPluginOptions_ID.'_options', 'essl_offset');
|
94 |
register_setting(ESSLPluginOptions_ID.'_options', 'essl_easing');
|
@@ -101,12 +91,7 @@ define('ESSLPluginOptions_NICK', 'ESSL Settings');
|
|
101 |
register_setting(ESSLPluginOptions_ID.'_options', 'essl_exclude_match_2');
|
102 |
register_setting(ESSLPluginOptions_ID.'_options', 'essl_exclude_match_3');
|
103 |
register_setting(ESSLPluginOptions_ID.'_options', 'essl_exclude_match_4');
|
104 |
-
register_setting(ESSLPluginOptions_ID.'_options', 'essl_exclude_match_5');
|
105 |
-
|
106 |
-
register_setting(ESSLPluginOptions_ID.'_options', 'essl_top_enabled');
|
107 |
-
register_setting(ESSLPluginOptions_ID.'_options', 'essl_top_speed');
|
108 |
-
register_setting(ESSLPluginOptions_ID.'_options', 'essl_top_easing');
|
109 |
-
register_setting(ESSLPluginOptions_ID.'_options', 'essl_top_offset');
|
110 |
}
|
111 |
/** function/method
|
112 |
* Usage: hooking (registering) the plugin menu
|
@@ -116,7 +101,7 @@ define('ESSLPluginOptions_NICK', 'ESSL Settings');
|
|
116 |
public static function menu()
|
117 |
{
|
118 |
// Create menu tab
|
119 |
-
add_options_page(ESSLPluginOptions_NICK.' Plugin Options',
|
120 |
}
|
121 |
/** function/method
|
122 |
* Usage: show options/settings form page
|
@@ -140,7 +125,7 @@ define('ESSLPluginOptions_NICK', 'ESSL Settings');
|
|
140 |
|
141 |
// Add settings link on plugin page
|
142 |
function essl_plugin_action_links($links) {
|
143 |
-
$settings_link = '<a href="options-general.php?page=essl-plugin-options_options">Settings</a>';
|
144 |
array_unshift($links, $settings_link);
|
145 |
return $links;
|
146 |
}
|
@@ -164,10 +149,10 @@ define('ESSLPluginOptions_NICK', 'ESSL Settings');
|
|
164 |
|
165 |
|
166 |
function essl_enqueue_jquery() {
|
167 |
-
wp_deregister_script(
|
168 |
-
wp_register_script(
|
169 |
-
wp_enqueue_script(
|
170 |
-
wp_enqueue_script('jquery-easing');
|
171 |
}
|
172 |
|
173 |
function essl_script() {
|
@@ -184,14 +169,51 @@ define('ESSLPluginOptions_NICK', 'ESSL Settings');
|
|
184 |
if(get_option('essl_exclude_match_5')){ $essl_exclude_match_5=":not([href='".get_option('essl_exclude_match_5')."'])";}
|
185 |
$essl_exclude_begin= $essl_exclude_begin_1. $essl_exclude_begin_2. $essl_exclude_begin_3. $essl_exclude_begin_4. $essl_exclude_begin_5;
|
186 |
$essl_exclude_match= $essl_exclude_match_1. $essl_exclude_match_2. $essl_exclude_match_3. $essl_exclude_match_4. $essl_exclude_match_5;
|
187 |
-
|
188 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
189 |
<script type="text/javascript">
|
190 |
jQuery.noConflict();
|
191 |
(function( $ ) {
|
192 |
$(function() {
|
193 |
// More code using $ as alias to jQuery
|
194 |
-
$("area[href
|
195 |
if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {
|
196 |
var target = $(this.hash);
|
197 |
target = target.length ? target : $('[name=' + this.hash.slice(1) +']');
|
@@ -205,44 +227,8 @@ define('ESSLPluginOptions_NICK', 'ESSL Settings');
|
|
205 |
});
|
206 |
});
|
207 |
})(jQuery);
|
208 |
-
</script>
|
209 |
-
<?php
|
210 |
-
|
211 |
-
if(get_option('essl_top_enabled')){
|
212 |
-
|
213 |
-
add_action('wp_footer', 'essl_go_to_top',100);
|
214 |
-
function essl_go_to_top() { ?>
|
215 |
-
<a id="esslgotop" href="#essltop">Back to Top</a>
|
216 |
-
<style>#esslgotop{position:fixed;bottom:2em;right:2em;text-decoration:none;color:white;background-color:rgba(0,0,0,0.3); font-size:12px;padding:1em;display:none;} #esslgotop:hover{background-color:rgba(0,0,0,0.6);}</style>
|
217 |
-
<script type="text/javascript">
|
218 |
-
jQuery.noConflict();
|
219 |
-
(function( $ ) {
|
220 |
-
$(function() {
|
221 |
-
//Go to Top Button Script
|
222 |
-
$(document).ready(function(){
|
223 |
-
$("#esslgotop").hide();
|
224 |
-
$(function () {
|
225 |
-
$(window).scroll(function () {
|
226 |
-
if ($(this).scrollTop() > 100) {
|
227 |
-
$('#esslgotop').fadeIn();
|
228 |
-
} else {
|
229 |
-
$('#esslgotop').fadeOut();
|
230 |
-
}
|
231 |
-
});
|
232 |
-
$('a[href=#essltop]').click(function () {
|
233 |
-
$('html, body').animate({scrollTop:<?php if (get_option('essl_top_offset')!='') {echo get_option('essl_top_offset');} else {echo '0';} ?>}, <?php if (get_option('essl_top_speed')!='') {echo get_option('essl_top_speed');} else {echo '900';} ?>,'<?php echo get_option('essl_top_easing','easeInQuint');?>');
|
234 |
-
return false;
|
235 |
-
});
|
236 |
-
});
|
237 |
-
});
|
238 |
-
});
|
239 |
-
})(jQuery);
|
240 |
-
</script>
|
241 |
-
<?php }
|
242 |
-
}
|
243 |
}
|
244 |
-
|
245 |
-
|
246 |
endif;
|
247 |
-
|
248 |
-
?>
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: Easy Smooth Scroll Links
|
4 |
+
Description: Adds interesting scroll animation effects to page anchors, smooth scroll and more.
|
5 |
+
Version: 2.2
|
6 |
+
Author: WebFactory Ltd
|
7 |
+
Author URI: https://www.pandasilk.com/wordpress-easy-smooth-scroll-links-plugin/
|
8 |
+
Text Domain: easy-smooth-scroll-links
|
9 |
+
Domain Path: /languages
|
10 |
+
License: GPLv2 or later
|
11 |
*/
|
12 |
|
13 |
+
function essl_text_domain() {
|
14 |
+
load_plugin_textdomain('easy-smooth-scroll-links', false, basename( dirname( __FILE__ ) ) . '/languages' );
|
15 |
+
}
|
16 |
+
add_action( 'init', 'essl_text_domain' );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
|
18 |
//Anchor Button to TinyMCE Editor
|
19 |
global $wp_version;
|
44 |
//Shortcode
|
45 |
if ( ! function_exists('essl_shortcode') ) {
|
46 |
function essl_shortcode( $atts, $content = null ) {
|
47 |
+
return '<a id="' . $content . '">';
|
48 |
}
|
49 |
add_shortcode( 'anchor', 'essl_shortcode' );
|
50 |
}
|
58 |
// DEFINE PLUGIN ID
|
59 |
define('ESSLPluginOptions_ID', 'essl-plugin-options');
|
60 |
// DEFINE PLUGIN NICK
|
61 |
+
define('ESSLPluginOptions_NICK', 'ESSL');
|
62 |
|
63 |
class ESSLPluginOptions
|
64 |
{
|
69 |
*/
|
70 |
public static function file_path($file)
|
71 |
{
|
72 |
+
return plugin_dir_path( __FILE__ ).$file;
|
73 |
}
|
74 |
/** function/method
|
75 |
* Usage: hooking the plugin options/settings
|
78 |
*/
|
79 |
public static function register()
|
80 |
{
|
81 |
+
register_setting(ESSLPluginOptions_ID.'_options', 'enable_essl_aggressive');
|
82 |
register_setting(ESSLPluginOptions_ID.'_options', 'essl_speed');
|
83 |
register_setting(ESSLPluginOptions_ID.'_options', 'essl_offset');
|
84 |
register_setting(ESSLPluginOptions_ID.'_options', 'essl_easing');
|
91 |
register_setting(ESSLPluginOptions_ID.'_options', 'essl_exclude_match_2');
|
92 |
register_setting(ESSLPluginOptions_ID.'_options', 'essl_exclude_match_3');
|
93 |
register_setting(ESSLPluginOptions_ID.'_options', 'essl_exclude_match_4');
|
94 |
+
register_setting(ESSLPluginOptions_ID.'_options', 'essl_exclude_match_5');
|
|
|
|
|
|
|
|
|
|
|
95 |
}
|
96 |
/** function/method
|
97 |
* Usage: hooking (registering) the plugin menu
|
101 |
public static function menu()
|
102 |
{
|
103 |
// Create menu tab
|
104 |
+
add_options_page(ESSLPluginOptions_NICK.' Plugin Options', 'Easy Smooth Scroll Links', 'manage_options', ESSLPluginOptions_ID.'_options', array('ESSLPluginOptions', 'options_page'));
|
105 |
}
|
106 |
/** function/method
|
107 |
* Usage: show options/settings form page
|
125 |
|
126 |
// Add settings link on plugin page
|
127 |
function essl_plugin_action_links($links) {
|
128 |
+
$settings_link = '<a href="options-general.php?page=essl-plugin-options_options">'.__('Settings', 'easy-smooth-scroll-links' ).'</a>';
|
129 |
array_unshift($links, $settings_link);
|
130 |
return $links;
|
131 |
}
|
149 |
|
150 |
|
151 |
function essl_enqueue_jquery() {
|
152 |
+
wp_deregister_script('jquery-easing');
|
153 |
+
wp_register_script('jquery-easing','//cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.4.1/jquery.easing.min.js');
|
154 |
+
wp_enqueue_script('jquery');
|
155 |
+
wp_enqueue_script('jquery-easing',array('jquery'));
|
156 |
}
|
157 |
|
158 |
function essl_script() {
|
169 |
if(get_option('essl_exclude_match_5')){ $essl_exclude_match_5=":not([href='".get_option('essl_exclude_match_5')."'])";}
|
170 |
$essl_exclude_begin= $essl_exclude_begin_1. $essl_exclude_begin_2. $essl_exclude_begin_3. $essl_exclude_begin_4. $essl_exclude_begin_5;
|
171 |
$essl_exclude_match= $essl_exclude_match_1. $essl_exclude_match_2. $essl_exclude_match_3. $essl_exclude_match_4. $essl_exclude_match_5;
|
172 |
+
|
173 |
+
if(get_option('enable_essl_aggressive')=='1'){ ?>
|
174 |
+
<script type="text/javascript">
|
175 |
+
jQuery.noConflict();
|
176 |
+
(function($){
|
177 |
+
|
178 |
+
var jump=function(e)
|
179 |
+
{
|
180 |
+
if (e){
|
181 |
+
var target = $(this).attr("href");
|
182 |
+
}else{
|
183 |
+
var target = location.hash;
|
184 |
+
}
|
185 |
+
|
186 |
+
var scrollToPosition = $(target).offset().top - <?php if (get_option('essl_offset')!='') {echo get_option('essl_offset');} else {echo '20';} ?>;
|
187 |
+
|
188 |
+
$('html,body').animate({scrollTop: scrollToPosition },<?php if (get_option('essl_speed')!='') {echo get_option('essl_speed');} else {echo '900';} ?> ,'<?php echo get_option('essl_easing','easeInQuint');?>' );
|
189 |
+
|
190 |
+
}
|
191 |
+
|
192 |
+
$('html, body').hide()
|
193 |
+
|
194 |
+
$(document).ready(function()
|
195 |
+
{
|
196 |
+
$("area[href*=\\#],a[href*=\\#]:not([href=\\#]):not([href^='\\#tab']):not([href^='\\#quicktab']):not([href^='\\#pane'])<?php if($essl_exclude_begin) echo $essl_exclude_begin; ?><?php if($essl_exclude_match) echo $essl_exclude_match; ?>").bind("click", jump);
|
197 |
+
|
198 |
+
if (location.hash){
|
199 |
+
setTimeout(function(){
|
200 |
+
$('html, body').scrollTop(0).show()
|
201 |
+
jump()
|
202 |
+
}, 0);
|
203 |
+
}else{
|
204 |
+
$('html, body').show()
|
205 |
+
}
|
206 |
+
});
|
207 |
+
|
208 |
+
})(jQuery)
|
209 |
+
</script>
|
210 |
+
<?php } else { ?>
|
211 |
<script type="text/javascript">
|
212 |
jQuery.noConflict();
|
213 |
(function( $ ) {
|
214 |
$(function() {
|
215 |
// More code using $ as alias to jQuery
|
216 |
+
$("area[href*=\\#],a[href*=\\#]:not([href=\\#]):not([href^='\\#tab']):not([href^='\\#quicktab']):not([href^='\\#pane'])<?php if($essl_exclude_begin) echo $essl_exclude_begin; ?><?php if($essl_exclude_match) echo $essl_exclude_match; ?>").click(function() {
|
217 |
if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {
|
218 |
var target = $(this.hash);
|
219 |
target = target.length ? target : $('[name=' + this.hash.slice(1) +']');
|
227 |
});
|
228 |
});
|
229 |
})(jQuery);
|
230 |
+
</script>
|
231 |
+
<?php }
|
232 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
233 |
}
|
|
|
|
|
234 |
endif;
|
|
|
|
options.php
CHANGED
@@ -1,173 +1,196 @@
|
|
1 |
<div class="wrap">
|
2 |
-
|
3 |
-
<form action="options.php" method="post" id="<?php echo $plugin_id; ?>_options_form" name="<?php echo $plugin_id; ?>_options_form">
|
4 |
-
|
5 |
-
<?php settings_fields($plugin_id.'_options'); ?>
|
6 |
-
|
7 |
-
<h2>Easy Smooth Scroll Links » Settings</h2>
|
8 |
-
<table class="widefat">
|
9 |
-
<thead>
|
10 |
-
<tr>
|
11 |
-
<th><a target="_blank" href="http://www.jeriffcheng.com/wordpress-plugins/easy-smooth-scroll-links">FAQs</a> - <a target="_blank" href="http://wordpress.org/support/view/plugin-reviews/easy-smooth-scroll-links?filter=5#postform">Rate it</a> - <a target="_blank" href="http://wordpress.org/support/plugin/easy-smooth-scroll-links">Support Forum</a> ---- Suggestions? <a target="_blank" href="http://www.jeriffcheng.com/contact">Contact Me</a><br><br><strong style="color: #ff0000;">Everyone should Read this Article: <a target="_blank" href="http://www.jeriffcheng.com/html-5-using-attribute-id-instead-of-attribute-name-for-anchors.html">HTML 5 – Using attribute ‘id’ instead of attribute ‘name’ for Anchors</a></strong></th>
|
12 |
-
<th>
|
13 |
-
</thead>
|
14 |
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
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 |
</tr>
|
89 |
-
|
90 |
-
<
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
|
|
102 |
</tr>
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
<
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
<
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
<option name="essl_top_easing" value="easeInOutQuint" <?php echo (get_option('essl_top_easing') == "easeInOutQuint") ? 'selected="selected"' : ''; ?>>easeInOutQuint</option>
|
128 |
-
<option name="essl_top_easing" value="easeInExpo" <?php echo (get_option('essl_top_easing') == "easeInExpo") ? 'selected="selected"' : ''; ?>>easeInExpo</option>
|
129 |
-
<option name="essl_top_easing" value="easeOutExpo" <?php echo (get_option('essl_top_easing') == "easeOutExpo") ? 'selected="selected"' : ''; ?>>easeOutExpo</option>
|
130 |
-
<option name="essl_top_easing" value="easeInOutExpo" <?php echo (get_option('essl_top_easing') == "easeInOutExpo") ? 'selected="selected"' : ''; ?>>easeInOutExpo</option>
|
131 |
-
<option name="essl_top_easing" value="easeInCubic" <?php echo (get_option('essl_top_easing') == "easeInCubic") ? 'selected="selected"' : ''; ?>>easeInCubic</option>
|
132 |
-
<option name="essl_top_easing" value="easeOutCubic" <?php echo (get_option('essl_top_easing') == "easeOutCubic") ? 'selected="selected"' : ''; ?>>easeOutCubic</option>
|
133 |
-
<option name="essl_top_easing" value="easeInOutCubic" <?php echo (get_option('essl_top_easing') == "easeInOutCubic") ? 'selected="selected"' : ''; ?>>easeInOutCubic</option>
|
134 |
-
<option name="essl_top_easing" value="easeInQuart" <?php echo (get_option('essl_top_easing') == "easeInQuart") ? 'selected="selected"' : ''; ?>>easeInQuart</option>
|
135 |
-
<option name="essl_top_easing" value="easeOutQuart" <?php echo (get_option('essl_top_easing') == "easeOutQuart") ? 'selected="selected"' : ''; ?>>easeOutQuart</option>
|
136 |
-
<option name="essl_top_easing" value="easeInOutQuart" <?php echo (get_option('essl_top_easing') == "easeInOutQuart") ? 'selected="selected"' : ''; ?>>easeInOutQuart</option>
|
137 |
-
<option name="essl_top_easing" value="easeInSine" <?php echo (get_option('essl_top_easing') == "easeInSine") ? 'selected="selected"' : ''; ?>>easeInSine</option>
|
138 |
-
<option name="essl_top_easing" value="easeOutSine" <?php echo (get_option('essl_top_easing') == "easeOutSine") ? 'selected="selected"' : ''; ?>>easeOutSine</option>
|
139 |
-
<option name="essl_top_easing" value="easeInOutSine" <?php echo (get_option('essl_top_easing') == "easeInOutSine") ? 'selected="selected"' : ''; ?>>easeInOutSine</option>
|
140 |
-
<option name="essl_top_easing" value="easeInQuad" <?php echo (get_option('essl_top_easing') == "easeInQuad") ? 'selected="selected"' : ''; ?>>easeInQuad</option>
|
141 |
-
<option name="essl_top_easing" value="easeOutQuad" <?php echo (get_option('essl_top_easing') == "easeOutQuad") ? 'selected="selected"' : ''; ?>>easeOutQuad</option>
|
142 |
-
<option name="essl_top_easing" value="easeInOutQuad" <?php echo (get_option('essl_top_easing') == "easeInOutQuad") ? 'selected="selected"' : ''; ?>>easeInOutQuad</option>
|
143 |
-
</select></p>
|
144 |
-
</label>
|
145 |
-
|
146 |
-
</td>
|
147 |
-
</tr>
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
</tbody>
|
159 |
-
|
160 |
-
|
161 |
-
<tfoot>
|
162 |
-
<tr>
|
163 |
-
<th><input type="submit" name="submit" value="Save Settings" class="button button-primary" onClick="return empty()" /></th>
|
164 |
-
</tr>
|
165 |
-
</tfoot>
|
166 |
-
</table>
|
167 |
-
|
168 |
-
</form>
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
</div>
|
1 |
<div class="wrap">
|
2 |
+
<h2><?php _e('Easy Smooth Scroll Links Setting', 'easy-smooth-scroll-links' ); ?></h2>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
|
4 |
+
<ul>
|
5 |
+
<li>
|
6 |
+
<a href="https://www.pandasilk.com/wordpress-easy-smooth-scroll-links-plugin/" target="_blank" rel="noopener"><?php _e('Documents and Troubleshooting', 'easy-smooth-scroll-links' ); ?>
|
7 |
+
</a>
|
8 |
+
</li>
|
9 |
+
<li>
|
10 |
+
<a href="https://wordpress.org/support/plugin/easy-smooth-scroll-links" target="_blank" rel="noopener"><?php _e('Support Forum on WordPress.org', 'easy-smooth-scroll-links' ); ?>
|
11 |
+
</a>
|
12 |
+
</li>
|
13 |
+
</ul>
|
14 |
+
<form action="options.php" method="post" id="<?php echo $plugin_id; ?>_options_form" name="<?php echo $plugin_id; ?>_options_form">
|
15 |
+
<?php settings_fields($plugin_id.'_options'); ?>
|
16 |
+
<table>
|
17 |
+
<tbody>
|
18 |
+
<tr>
|
19 |
+
<td style="padding:5px;font-family:Verdana, Geneva, sans-serif;color:#666;">
|
20 |
+
<label for="essl_speed">
|
21 |
+
<p><?php _e('Scroll Speed ( smaller number, faster, default is 900 )', 'easy-smooth-scroll-links' ); ?>
|
22 |
+
</p>
|
23 |
+
<p>
|
24 |
+
<input size="10" id="speed" type="text" name="essl_speed" value="<?php echo get_option('essl_speed'); ?>" />
|
25 |
+
</p>
|
26 |
+
</label>
|
27 |
+
</td>
|
28 |
+
</tr>
|
29 |
+
<tr>
|
30 |
+
<td style="padding:5px;font-family:Verdana, Geneva, sans-serif;color:#666;">
|
31 |
+
<label for="essl_offset">
|
32 |
+
<p><?php _e('Offset ( default is 20 )', 'easy-smooth-scroll-links' ); ?>
|
33 |
+
</p>
|
34 |
+
<p>
|
35 |
+
<input size="10" id="offset" type="text" name="essl_offset" value="<?php echo get_option('essl_offset'); ?>" />
|
36 |
+
</p>
|
37 |
+
</label>
|
38 |
+
</td>
|
39 |
+
</tr>
|
40 |
+
<tr>
|
41 |
+
<td style="padding:5px;font-family:Verdana, Geneva, sans-serif;color:#666;">
|
42 |
+
<label for="essl_easing">
|
43 |
+
<p><?php _e('Scrolling Animation Effects ( default is easeInQuint ) ', 'easy-smooth-scroll-links' ); ?>
|
44 |
+
</p>
|
45 |
+
<p>
|
46 |
+
<select name="essl_easing">
|
47 |
+
<option disabled="disabled" ><?php _e('Choose an Animation Effects', 'easy-smooth-scroll-links' ); ?>
|
48 |
+
</option>
|
49 |
+
<option name="essl_easing" value="easeInBounce"
|
50 |
+
<?php echo (get_option('essl_easing') == "easeInBounce") ? 'selected="selected"' : ''; ?>>easeInBounce
|
51 |
+
</option>
|
52 |
+
<option name="essl_easing" value="easeOutBounce"
|
53 |
+
<?php echo (get_option('essl_easing') == "easeOutBounce") ? 'selected="selected"' : ''; ?>>easeOutBounce
|
54 |
+
</option>
|
55 |
+
<option name="essl_easing" value="easeInOutBounce"
|
56 |
+
<?php echo (get_option('essl_easing') == "easeInOutBounce") ? 'selected="selected"' : ''; ?>>easeInOutBounce
|
57 |
+
</option>
|
58 |
+
<option name="essl_easing" value="easeInElastic"
|
59 |
+
<?php echo (get_option('essl_easing') == "easeInElastic") ? 'selected="selected"' : ''; ?>>easeInElastic
|
60 |
+
</option>
|
61 |
+
<option name="essl_easing" value="easeOutElastic"
|
62 |
+
<?php echo (get_option('essl_easing') == "easeOutElastic") ? 'selected="selected"' : ''; ?>>easeOutElastic
|
63 |
+
</option>
|
64 |
+
<option name="essl_easing" value="easeInOutElastic"
|
65 |
+
<?php echo (get_option('essl_easing') == "easeInOutElastic") ? 'selected="selected"' : ''; ?>>easeInOutElastic
|
66 |
+
</option>
|
67 |
+
<option name="essl_easing" value="easeInCirc"
|
68 |
+
<?php echo (get_option('essl_easing') == "easeInCirc") ? 'selected="selected"' : ''; ?>>easeInCirc
|
69 |
+
</option>
|
70 |
+
<option name="essl_easing" value="easeOutCirc"
|
71 |
+
<?php echo (get_option('essl_easing') == "easeOutCirc") ? 'selected="selected"' : ''; ?>>easeOutCirc
|
72 |
+
</option>
|
73 |
+
<option name="essl_easing" value="easeInOutCirc"
|
74 |
+
<?php echo (get_option('essl_easing') == "easeInOutCirc") ? 'selected="selected"' : ''; ?>>easeInOutCirc
|
75 |
+
</option>
|
76 |
+
<option name="essl_easing" value="easeInBack"
|
77 |
+
<?php echo (get_option('essl_easing') == "easeInBack") ? 'selected="selected"' : ''; ?>>easeInBack
|
78 |
+
</option>
|
79 |
+
<option name="essl_easing" value="easeOutBack"
|
80 |
+
<?php echo (get_option('essl_easing') == "easeOutBack") ? 'selected="selected"' : ''; ?>>easeOutBack
|
81 |
+
</option>
|
82 |
+
<option name="essl_easing" value="easeInOutBack"
|
83 |
+
<?php echo (get_option('essl_easing') == "easeInOutBack") ? 'selected="selected"' : ''; ?>>easeInOutBack
|
84 |
+
</option>
|
85 |
+
<option name="essl_easing" value="easeInQuint"
|
86 |
+
<?php echo (get_option('essl_easing') == "easeInQuint") ? 'selected="selected"' : ''; ?>>easeInQuint
|
87 |
+
</option>
|
88 |
+
<option name="essl_easing" value="easeOutQuint"
|
89 |
+
<?php echo (get_option('essl_easing') == "easeOutQuint") ? 'selected="selected"' : ''; ?>>easeOutQuint
|
90 |
+
</option>
|
91 |
+
<option name="essl_easing" value="easeInOutQuint"
|
92 |
+
<?php echo (get_option('essl_easing') == "easeInOutQuint") ? 'selected="selected"' : ''; ?>>easeInOutQuint
|
93 |
+
</option>
|
94 |
+
<option name="essl_easing" value="easeInExpo"
|
95 |
+
<?php echo (get_option('essl_easing') == "easeInExpo") ? 'selected="selected"' : ''; ?>>easeInExpo
|
96 |
+
</option>
|
97 |
+
<option name="essl_easing" value="easeOutExpo"
|
98 |
+
<?php echo (get_option('essl_easing') == "easeOutExpo") ? 'selected="selected"' : ''; ?>>easeOutExpo
|
99 |
+
</option>
|
100 |
+
<option name="essl_easing" value="easeInOutExpo"
|
101 |
+
<?php echo (get_option('essl_easing') == "easeInOutExpo") ? 'selected="selected"' : ''; ?>>easeInOutExpo
|
102 |
+
</option>
|
103 |
+
<option name="essl_easing" value="easeInCubic"
|
104 |
+
<?php echo (get_option('essl_easing') == "easeInCubic") ? 'selected="selected"' : ''; ?>>easeInCubic
|
105 |
+
</option>
|
106 |
+
<option name="essl_easing" value="easeOutCubic"
|
107 |
+
<?php echo (get_option('essl_easing') == "easeOutCubic") ? 'selected="selected"' : ''; ?>>easeOutCubic
|
108 |
+
</option>
|
109 |
+
<option name="essl_easing" value="easeInOutCubic"
|
110 |
+
<?php echo (get_option('essl_easing') == "easeInOutCubic") ? 'selected="selected"' : ''; ?>>easeInOutCubic
|
111 |
+
</option>
|
112 |
+
<option name="essl_easing" value="easeInQuart"
|
113 |
+
<?php echo (get_option('essl_easing') == "easeInQuart") ? 'selected="selected"' : ''; ?>>easeInQuart
|
114 |
+
</option>
|
115 |
+
<option name="essl_easing" value="easeOutQuart"
|
116 |
+
<?php echo (get_option('essl_easing') == "easeOutQuart") ? 'selected="selected"' : ''; ?>>easeOutQuart
|
117 |
+
</option>
|
118 |
+
<option name="essl_easing" value="easeInOutQuart"
|
119 |
+
<?php echo (get_option('essl_easing') == "easeInOutQuart") ? 'selected="selected"' : ''; ?>>easeInOutQuart
|
120 |
+
</option>
|
121 |
+
<option name="essl_easing" value="easeInSine"
|
122 |
+
<?php echo (get_option('essl_easing') == "easeInSine") ? 'selected="selected"' : ''; ?>>easeInSine
|
123 |
+
</option>
|
124 |
+
<option name="essl_easing" value="easeOutSine"
|
125 |
+
<?php echo (get_option('essl_easing') == "easeOutSine") ? 'selected="selected"' : ''; ?>>easeOutSine
|
126 |
+
</option>
|
127 |
+
<option name="essl_easing" value="easeInOutSine"
|
128 |
+
<?php echo (get_option('essl_easing') == "easeInOutSine") ? 'selected="selected"' : ''; ?>>easeInOutSine
|
129 |
+
</option>
|
130 |
+
<option name="essl_easing" value="easeInQuad"
|
131 |
+
<?php echo (get_option('essl_easing') == "easeInQuad") ? 'selected="selected"' : ''; ?>>easeInQuad
|
132 |
+
</option>
|
133 |
+
<option name="essl_easing" value="easeOutQuad"
|
134 |
+
<?php echo (get_option('essl_easing') == "easeOutQuad") ? 'selected="selected"' : ''; ?>>easeOutQuad
|
135 |
+
</option>
|
136 |
+
<option name="essl_easing" value="easeInOutQuad"
|
137 |
+
<?php echo (get_option('essl_easing') == "easeInOutQuad") ? 'selected="selected"' : ''; ?>>easeInOutQuad
|
138 |
+
</option>
|
139 |
+
</select>
|
140 |
+
</p>
|
141 |
+
</label>
|
142 |
+
</td>
|
143 |
+
</tr>
|
144 |
+
<tr>
|
145 |
+
<td style="padding:5px;font-family:Verdana, Geneva, sans-serif;color:#666;">
|
146 |
+
<label for="essl_exclude_begin">
|
147 |
+
<p><?php _e('Exclude Anchors Beginning With ( default is #tab #quicktab #pane ) ', 'easy-smooth-scroll-links' ); ?>
|
148 |
+
</p>
|
149 |
+
<input id="essl_exclude_begin_1" type="text" name="essl_exclude_begin_1" placeholder="#beginwith1" value="<?php echo get_option('essl_exclude_begin_1'); ?>" />
|
150 |
+
<input id="essl_exclude_begin_2" type="text" name="essl_exclude_begin_2" placeholder="#beginwith2" value="<?php echo get_option('essl_exclude_begin_2'); ?>" />
|
151 |
+
<input id="essl_exclude_begin_3" type="text" name="essl_exclude_begin_3" placeholder="#beginwith3" value="<?php echo get_option('essl_exclude_begin_3'); ?>" />
|
152 |
+
<input id="essl_exclude_begin_4" type="text" name="essl_exclude_begin_4" placeholder="#beginwith4" value="<?php echo get_option('essl_exclude_begin_4'); ?>" />
|
153 |
+
<input id="essl_exclude_begin_5" type="text" name="essl_exclude_begin_5" placeholder="#beginwith5" value="<?php echo get_option('essl_exclude_begin_5'); ?>" />
|
154 |
+
</p>
|
155 |
+
</label>
|
156 |
+
</td>
|
157 |
</tr>
|
158 |
+
<tr>
|
159 |
+
<td style="padding:5px;font-family:Verdana, Geneva, sans-serif;color:#666;">
|
160 |
+
<label for="essl_offset">
|
161 |
+
<p><?php _e('Exclude Anchors Exactly Match', 'easy-smooth-scroll-links' ); ?>
|
162 |
+
</p>
|
163 |
+
<p>
|
164 |
+
<input id="offset" type="text" name="essl_exclude_match_1" placeholder="#exactmatch1" value="<?php echo get_option('essl_exclude_match_1'); ?>" />
|
165 |
+
<input id="offset" type="text" name="essl_exclude_match_2" placeholder="#exactmatch2" value="<?php echo get_option('essl_exclude_match_2'); ?>" />
|
166 |
+
<input id="offset" type="text" name="essl_exclude_match_3" placeholder="#exactmatch3" value="<?php echo get_option('essl_exclude_match_3'); ?>" />
|
167 |
+
<input id="offset" type="text" name="essl_exclude_match_4" placeholder="#exactmatch4" value="<?php echo get_option('essl_exclude_match_4'); ?>" />
|
168 |
+
<input id="offset" type="text" name="essl_exclude_match_5" placeholder="#exactmatch5" value="<?php echo get_option('essl_exclude_match_5'); ?>" />
|
169 |
+
</p>
|
170 |
+
</label>
|
171 |
+
</td>
|
172 |
</tr>
|
173 |
+
<tr>
|
174 |
+
<td style="padding:25px;font-family:Verdana, Geneva, sans-serif;color:#666;">
|
175 |
+
<label>
|
176 |
+
<strong><?php _e('Enable Scrolling from One Page to Another ?', 'easy-smooth-scroll-links' ); ?>
|
177 |
+
</strong>
|
178 |
+
</label>
|
179 |
+
<input type="checkbox" name="enable_essl_aggressive" value="1"
|
180 |
+
<?php checked(1,get_option('enable_essl_aggressive'));?> />
|
181 |
+
<br>
|
182 |
+
<strong><?php _e('Warning', 'easy-smooth-scroll-links' ); ?>
|
183 |
+
</strong>:<?php _e(' This feature is experimental, might cause conflict with some slider plugins, or blank pages.', 'easy-smooth-scroll-links' ); ?>
|
184 |
+
</td>
|
185 |
+
</tr>
|
186 |
+
</tbody>
|
187 |
+
<tfoot>
|
188 |
+
<tr>
|
189 |
+
<th>
|
190 |
+
<input type="submit" name="submit" value="Save Settings" class="button button-primary" onClick="return empty()" />
|
191 |
+
</th>
|
192 |
+
</tr>
|
193 |
+
</tfoot>
|
194 |
+
</table>
|
195 |
+
</form>
|
196 |
+
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
readme.txt
CHANGED
@@ -1,105 +1 @@
|
|
1 |
-
=== Easy Smooth Scroll Links ===
|
2 |
-
Contributors: Jeriff Cheng
|
3 |
-
Tags: smooth scroll,jquery smooth scroll div,smooth scroll jquery,smooth scroll chrome,smooth scroll firefox,smooth scroll javascript,smooth scroll to anchor,smooth scroll plugin,smooth scroll tutorial,anchor,anchor text
|
4 |
-
Requires at least: 2.6.5
|
5 |
-
Tested up to: 3.9
|
6 |
-
Stable tag: trunk
|
7 |
-
|
8 |
-
== Description ==
|
9 |
-
Create anchors and add up to to 30 scrolling animation effects to links that link to page anchors. You can set scroll speed and offset value.
|
10 |
-
|
11 |
-
<h4>Features</h4>
|
12 |
-
|
13 |
-
* You can set __scroll speed__ and __offset value__.
|
14 |
-
* Choose from __30 Scrolling Animation Effects__
|
15 |
-
* You can __exclude certain anchors from scrolling__.
|
16 |
-
* Option to enable __Go To Top Button__ (with offset, animation effect and speed settings).
|
17 |
-
* Works on __all major browsers__: IE, Firefox, Chrome, Safari...
|
18 |
-
* __Visual Editor__ Anchor Button
|
19 |
-
* __Shortcode__ Supported [anchor]anchorname[/anchor]
|
20 |
-
|
21 |
-
<h4>Video Tutorial</h4>
|
22 |
-
|
23 |
-
http://www.youtube.com/watch?v=te0FZcPulJs
|
24 |
-
|
25 |
-
For more information,refer to <a rel="follow" href="http://www.jeriffcheng.com/wordpress-plugins/easy-smooth-scroll-links#faqs" target="_blank">Easy Smooth Scroll Links WordPress Plugin</a>
|
26 |
-
|
27 |
-
|
28 |
-
== Installation ==
|
29 |
-
1. Upload the full directory into your wp-content/plugins directory
|
30 |
-
2. Activate the plugin at the plugin administration page
|
31 |
-
3. That's it!
|
32 |
-
|
33 |
-
== Frequently Asked Questions ==
|
34 |
-
For FAQs and bug report,refer to <a target="_blank" rel="follow" href="http://www.jeriffcheng.com/wordpress-plugins/easy-smooth-scroll-links#faqs">ESSL FAQs</a>
|
35 |
-
|
36 |
-
== Screenshots ==
|
37 |
-
|
38 |
-
1. Plugin Options Page
|
39 |
-
2. Animation Effects
|
40 |
-
3. TinyMCE Editor Anchor Button
|
41 |
-
4. Enter Anchor Name
|
42 |
-
5. Go To Top Button
|
43 |
-
|
44 |
-
== Changelog ==
|
45 |
-
|
46 |
-
= 1.8 =
|
47 |
-
|
48 |
-
* Visual Editor Anchor Button now using id attribute instead of name. read more: http://www.jeriffcheng.com/html-5-using-attribute-id-instead-of-attribute-name-for-anchors.html
|
49 |
-
|
50 |
-
= 1.7 =
|
51 |
-
|
52 |
-
* WordPress 3.9 Compatible
|
53 |
-
|
54 |
-
* Links in Image Map are now supported
|
55 |
-
|
56 |
-
= 1.6 =
|
57 |
-
|
58 |
-
*New: Option to set offset for GoToTop Button.
|
59 |
-
|
60 |
-
= 1.5 =
|
61 |
-
|
62 |
-
*New: Option to enable Go To Top Button (with custom scroll speed and animation effect)
|
63 |
-
|
64 |
-
= 1.4 =
|
65 |
-
|
66 |
-
*New: You can now exclude certain anchors from scrolling
|
67 |
-
|
68 |
-
*Imoprove: Set default scrolling animation effect to more smooth 'easeInQuint'
|
69 |
-
|
70 |
-
|
71 |
-
= 1.3.2 =
|
72 |
-
|
73 |
-
*New: Added 30 Scrolling Animation Effects
|
74 |
-
|
75 |
-
*Fix: Prevent saving empty input fields
|
76 |
-
|
77 |
-
= 1.3.1 =
|
78 |
-
|
79 |
-
*Fix: wp enqueue script error when turning WP_DEBUG mode on
|
80 |
-
|
81 |
-
= 1.3 =
|
82 |
-
|
83 |
-
*NEW: You can set scroll speed and offset value on WordPress backend now !
|
84 |
-
|
85 |
-
= 1.2 =
|
86 |
-
|
87 |
-
*FIX:Chrome Compatibility Problem
|
88 |
-
|
89 |
-
*FIX: wp_enqueue_script was called incorrectly
|
90 |
-
|
91 |
-
= 1.1 =
|
92 |
-
|
93 |
-
*NEW : Add Page Anchor Shortcode.
|
94 |
-
|
95 |
-
Changed : Use wp_enqueue_script function to load the script instead of the default <script> tag.
|
96 |
-
|
97 |
-
= 1.0 =
|
98 |
-
|
99 |
-
*First Version
|
100 |
-
|
101 |
-
== Upgrade Notice ==
|
102 |
-
|
103 |
-
= 1.8 =
|
104 |
-
|
105 |
-
* Visual Editor Anchor Button now using id attribute instead of name. read more: http://www.jeriffcheng.com/html-5-using-attribute-id-instead-of-attribute-name-for-anchors.html
|
1 |
+
=== Easy Smooth Scroll Links - Smooth Scrolling Anchor ===
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
screenshot-1.png
DELETED
Binary file
|
screenshot-2.png
DELETED
Binary file
|
screenshot-3.jpg
DELETED
Binary file
|
screenshot-4.jpg
DELETED
Binary file
|
screenshot-5.png
DELETED
Binary file
|