Version Description
- Minor code tweaks
Download this release
Release Info
Developer | malihu |
Plugin | Page scroll to id |
Version | 1.5.2 |
Comparing to | |
See all releases |
Code changes from version 1.5.1 to 1.5.2
- malihu-pagescroll2id.php +2 -20
- readme.txt +4 -1
malihu-pagescroll2id.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Page scroll to id
|
4 |
Plugin URI: http://manos.malihu.gr/page-scroll-to-id
|
5 |
Description: Page scroll to id is an easy-to-use jQuery plugin that enables animated page scrolling to specific id within the document.
|
6 |
-
Version: 1.5.
|
7 |
Author: malihu
|
8 |
Author URI: http://manos.malihu.gr
|
9 |
License: GNU GENERAL PUBLIC LICENSE Version 3
|
@@ -40,7 +40,7 @@ if(!class_exists('malihuPageScroll2id')){ // --edit--
|
|
40 |
|
41 |
class malihuPageScroll2id{ // --edit--
|
42 |
|
43 |
-
protected $version='1.5.
|
44 |
protected $update_option=null;
|
45 |
|
46 |
protected $plugin_name='Page scroll to id'; // Plugin name --edit--
|
@@ -153,7 +153,6 @@ if(!class_exists('malihuPageScroll2id')){ // --edit--
|
|
153 |
wp_register_script($this->plugin_slug.'-plugin-init-script', plugins_url('js/'.$this->plugin_init_script, __FILE__), array('jquery', $this->plugin_slug.'-plugin-script'), $this->version, 1);
|
154 |
wp_enqueue_script($this->plugin_slug.'-plugin-init-script');
|
155 |
$this->plugin_fn_call();
|
156 |
-
//$this->add_plugin_shortcode(); // Remove/comment for plugin without any shortcodes --edit--
|
157 |
}
|
158 |
|
159 |
public function add_plugin_admin_menu(){
|
@@ -297,23 +296,6 @@ if(!class_exists('malihuPageScroll2id')){ // --edit--
|
|
297 |
wp_localize_script($this->plugin_slug.'-plugin-init-script', $this->pl_pfx.'params', $params);
|
298 |
}
|
299 |
|
300 |
-
public function add_plugin_shortcode(){
|
301 |
-
$pl_shortcodes=array();
|
302 |
-
$instances=get_option($this->db_prefix.'instances');
|
303 |
-
for($i=1; $i<=count($instances); $i++){
|
304 |
-
$pl_shortcodes[]='pl_shortcode_fn_'.$i;
|
305 |
-
$shortcode_class=$this->sc_pfx;
|
306 |
-
// --edit--
|
307 |
-
$pl_shortcodes[$i]=function($atts, $content=null) use ($i,$shortcode_class){
|
308 |
-
extract(shortcode_atts(array(
|
309 |
-
'att' => '',
|
310 |
-
), $atts));
|
311 |
-
return '';
|
312 |
-
};
|
313 |
-
add_shortcode($this->sc_pfx.$i, $pl_shortcodes[$i]);
|
314 |
-
}
|
315 |
-
}
|
316 |
-
|
317 |
public function validate_plugin_settings(){
|
318 |
if(!empty($_POST)){
|
319 |
if($_POST[$this->db_prefix.'reset']==='true' ){
|
3 |
Plugin Name: Page scroll to id
|
4 |
Plugin URI: http://manos.malihu.gr/page-scroll-to-id
|
5 |
Description: Page scroll to id is an easy-to-use jQuery plugin that enables animated page scrolling to specific id within the document.
|
6 |
+
Version: 1.5.2
|
7 |
Author: malihu
|
8 |
Author URI: http://manos.malihu.gr
|
9 |
License: GNU GENERAL PUBLIC LICENSE Version 3
|
40 |
|
41 |
class malihuPageScroll2id{ // --edit--
|
42 |
|
43 |
+
protected $version='1.5.2'; // Plugin version --edit--
|
44 |
protected $update_option=null;
|
45 |
|
46 |
protected $plugin_name='Page scroll to id'; // Plugin name --edit--
|
153 |
wp_register_script($this->plugin_slug.'-plugin-init-script', plugins_url('js/'.$this->plugin_init_script, __FILE__), array('jquery', $this->plugin_slug.'-plugin-script'), $this->version, 1);
|
154 |
wp_enqueue_script($this->plugin_slug.'-plugin-init-script');
|
155 |
$this->plugin_fn_call();
|
|
|
156 |
}
|
157 |
|
158 |
public function add_plugin_admin_menu(){
|
296 |
wp_localize_script($this->plugin_slug.'-plugin-init-script', $this->pl_pfx.'params', $params);
|
297 |
}
|
298 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
299 |
public function validate_plugin_settings(){
|
300 |
if(!empty($_POST)){
|
301 |
if($_POST[$this->db_prefix.'reset']==='true' ){
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
|
|
3 |
Tags: page scrolling, page animation, navigation, single-page navigation
|
4 |
Requires at least: 3.3
|
5 |
Tested up to: 3.8
|
6 |
-
Stable tag: 1.5.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -110,6 +110,9 @@ Yes but you probably need to implement the plugin in your theme **manually**. Se
|
|
110 |
|
111 |
== Changelog ==
|
112 |
|
|
|
|
|
|
|
113 |
= 1.5.1 =
|
114 |
* Minor code tweaks
|
115 |
* Minified scripts
|
3 |
Tags: page scrolling, page animation, navigation, single-page navigation
|
4 |
Requires at least: 3.3
|
5 |
Tested up to: 3.8
|
6 |
+
Stable tag: 1.5.2
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
110 |
|
111 |
== Changelog ==
|
112 |
|
113 |
+
= 1.5.2 =
|
114 |
+
* Minor code tweaks
|
115 |
+
|
116 |
= 1.5.1 =
|
117 |
* Minor code tweaks
|
118 |
* Minified scripts
|