Skip to content

Commit 8c013e2

Browse files
committed
improved readme and comments in js/php files
1 parent 52fdfab commit 8c013e2

File tree

7 files changed

+39
-468
lines changed

7 files changed

+39
-468
lines changed

.gitattributes

Lines changed: 0 additions & 22 deletions
This file was deleted.

.gitignore

Lines changed: 0 additions & 215 deletions
This file was deleted.

jquery-smooth-scroll.php

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/*
33
Plugin Name: jQuery Smooth Scroll
4-
Version: 1.2.5
4+
Version: 1.3.0
55
Plugin URI: http://www.blogsynthesis.com/wordpress-jquery-smooth-scroll-plugin/
66
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.
77
Author: BlogSynthesis
@@ -25,6 +25,15 @@
2525
along with this program. If not, see <http://www.gnu.org/licenses/>.
2626
*/
2727

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+
****************************************************************/
2837

2938
// Prevent loading this file directly - Busted!
3039
if ( ! class_exists( 'WP' ) )
@@ -35,12 +44,14 @@
3544
}
3645

3746

47+
// require_once ('include/admin/options.php'); // load admin options
48+
3849
if ( !class_exists( 'jQuerySmoothScroll' ) ) {
3950

4051
class jQuerySmoothScroll {
4152

4253
function jQuerySmoothScroll() {
43-
54+
if ( !is_admin() ) {
4455
$blogsynthesis_jss_plugin_url = trailingslashit ( WP_PLUGIN_URL . '/' . dirname ( plugin_basename ( __FILE__ ) ) );
4556
$pluginname = 'jQuery Smooth Scroll';
4657
$plugin_version = '1.2.5';
@@ -50,6 +61,7 @@ function jQuerySmoothScroll() {
5061

5162
// add move to top button at wp_footer
5263
add_action( 'wp_footer', array( &$this, 'wp_footer') );
64+
}
5365

5466
}
5567

@@ -63,7 +75,7 @@ function wp_head() {
6375
wp_enqueue_style( 'custom_wp_admin_css' );
6476

6577
// enqueue script
66-
wp_enqueue_script( 'script-name', plugin_dir_url( __FILE__ ) . 'js/jss-script.js', array('jquery') );
78+
wp_enqueue_script( 'script-name', plugin_dir_url( __FILE__ ) . 'js/jss-script.min.js', array('jquery') );
6779

6880
// You may now choose easing effect. For more information visit http://www.blogsynthesis.com/?p=860
6981
// wp_enqueue_script("jquery-effects-core");

0 commit comments

Comments
 (0)