Page scroll to id - Version 1.5.4

Version Description

  • Fixed a minor bug in jquery.malihu.PageScroll2id-init.js.
  • updated screenshots.
  • updated readme.txt.
Download this release

Release Info

Developer malihu
Plugin Icon 128x128 Page scroll to id
Version 1.5.4
Comparing to
See all releases

Code changes from version 1.5.3 to 1.5.4

js/jquery.malihu.PageScroll2id-init.js CHANGED
@@ -2,7 +2,7 @@
2
  $(window).load(function(){
3
  var _p="mPS2id",
4
  _o=mPS2id_params;
5
- for(i=0; i<_o.total_instances; i++){
6
  var shortcodeClass=_o.shortcode_class; // Shortcode without suffix
7
  //var shortcodeClass=_o.shortcode_class+"_"+(i+1); // Shortcode with suffix
8
  $(_o.instances[_p+"_instance_"+i]["selector"]["value"]+",."+shortcodeClass).mPageScroll2id({
2
  $(window).load(function(){
3
  var _p="mPS2id",
4
  _o=mPS2id_params;
5
+ for(var i=0; i<_o.total_instances; i++){
6
  var shortcodeClass=_o.shortcode_class; // Shortcode without suffix
7
  //var shortcodeClass=_o.shortcode_class+"_"+(i+1); // Shortcode with suffix
8
  $(_o.instances[_p+"_instance_"+i]["selector"]["value"]+",."+shortcodeClass).mPageScroll2id({
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.3
7
  Author: malihu
8
  Author URI: http://manos.malihu.gr
9
  License: MIT License (MIT)
@@ -45,7 +45,7 @@ if(!class_exists('malihuPageScroll2id')){ // --edit--
45
 
46
  class malihuPageScroll2id{ // --edit--
47
 
48
- protected $version='1.5.3'; // Plugin version --edit--
49
  protected $update_option=null;
50
 
51
  protected $plugin_name='Page scroll to id'; // Plugin name --edit--
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.4
7
  Author: malihu
8
  Author URI: http://manos.malihu.gr
9
  License: MIT License (MIT)
45
 
46
  class malihuPageScroll2id{ // --edit--
47
 
48
+ protected $version='1.5.4'; // Plugin version --edit--
49
  protected $update_option=null;
50
 
51
  protected $plugin_name='Page scroll to id'; // Plugin name --edit--
readme.txt CHANGED
@@ -3,10 +3,10 @@ Contributors: malihu
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=UYJ5G65M6ZA28
4
  Tags: page scrolling, page animation, navigation, single-page navigation
5
  Requires at least: 3.3
6
- Tested up to: 3.8
7
- Stable tag: 1.5.3
8
- License: GPLv2 or later
9
- License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
11
  Page scroll to id is an easy-to-use jQuery plugin that enables animated page scrolling to specific id within the document.
12
 
@@ -66,7 +66,7 @@ Configure plugin options by clicking 'Settings' or through the 'Settings > Page
66
 
67
  = How to use the plugin with WP custom/native menus? =
68
 
69
- While on the 'Menus' admin page, click 'Screen Options' and check 'Link Relationship (XFN)'. To enable the plugin on a menu item, click the arrow on the right of the item and insert `m_PageScroll2id` in the 'Link Relationship (XFN)' field (assuming your menu contains links with `URL` value in the form of `#id` or `/somepage/#id`).
70
 
71
  = How to use the plugin without editing my theme's markup? =
72
 
@@ -84,9 +84,9 @@ The plugin provides a ready-to-use class for styling highlighted links (the link
84
 
85
  Make sure your link has href value `#` with the id of the section you want to scroll-to (e.g. `<a href="#id" rel="m_PageScroll2id">link</a>`) and a section with such an id exists in your page (e.g. `<div id="id">target</div>`).
86
 
87
- = How do I make my links work from other/different pages? =
88
 
89
- To make your links work from any page, you need to add the full (or absolute) address in your links href (instead of just the hash with the id). For example, you'll need to change `<a href="#id" rel="m_PageScroll2id">link</a>` to something like `<a href="http://mysite.com/some-page/#id" rel="m_PageScroll2id">link</a>`. The same applies for your WP custom menus. You'll need to insert the full address in the `URL` field.
90
 
91
  = The page doesn't scroll exactly where I want =
92
 
@@ -124,6 +124,11 @@ Yes but you probably need to implement the plugin in your theme **manually**. Se
124
 
125
  == Changelog ==
126
 
 
 
 
 
 
127
  = 1.5.3 =
128
  * Extended Offset option to accept element selectors in addition to fixed pixels values.
129
  * Added `ps2id` shortcode for creating links in content editor.
@@ -164,6 +169,10 @@ Yes but you probably need to implement the plugin in your theme **manually**. Se
164
 
165
  == Upgrade Notice ==
166
 
 
 
 
 
167
  = 1.5.3 =
168
 
169
  Extended Offset option, added shortcodes for link creation, updated documentation and added more external resources.
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=UYJ5G65M6ZA28
4
  Tags: page scrolling, page animation, navigation, single-page navigation
5
  Requires at least: 3.3
6
+ Tested up to: 3.8.1
7
+ Stable tag: 1.5.4
8
+ License: The MIT License (MIT)
9
+ License URI: http://opensource.org/licenses/MIT
10
 
11
  Page scroll to id is an easy-to-use jQuery plugin that enables animated page scrolling to specific id within the document.
12
 
66
 
67
  = How to use the plugin with WP custom/native menus? =
68
 
69
+ While on the 'Menus' admin page, click 'Screen Options' and check 'Link Relationship (XFN)'. To enable the plugin on a menu item, click the arrow on the right of the item and insert `m_PageScroll2id` in the 'Link Relationship (XFN)' field (assuming your menu contains links with `URL` value in the form of `#id`).
70
 
71
  = How to use the plugin without editing my theme's markup? =
72
 
84
 
85
  Make sure your link has href value `#` with the id of the section you want to scroll-to (e.g. `<a href="#id" rel="m_PageScroll2id">link</a>`) and a section with such an id exists in your page (e.g. `<div id="id">target</div>`).
86
 
87
+ = How do I make my links work from other/different pages =
88
 
89
+ To make your links work from any page, you need to add the full address in your links href (instead of just the hash with the id). For example, you'll need to change `<a href="#id" rel="m_PageScroll2id">link</a>` to something like `<a href="http://mysite.com/some-page/#id" rel="m_PageScroll2id">link</a>`. The same applies for your WP custom menus. You'll need to insert the full address in the `URL` field.
90
 
91
  = The page doesn't scroll exactly where I want =
92
 
124
 
125
  == Changelog ==
126
 
127
+ = 1.5.4 =
128
+ * Fixed a minor bug in jquery.malihu.PageScroll2id-init.js.
129
+ * updated screenshots.
130
+ * updated readme.txt.
131
+
132
  = 1.5.3 =
133
  * Extended Offset option to accept element selectors in addition to fixed pixels values.
134
  * Added `ps2id` shortcode for creating links in content editor.
169
 
170
  == Upgrade Notice ==
171
 
172
+ = 1.5.4 =
173
+
174
+ Fixed a minor bug in jquery.malihu.PageScroll2id-init.js, updated screenshots and readme.txt.
175
+
176
  = 1.5.3 =
177
 
178
  Extended Offset option, added shortcodes for link creation, updated documentation and added more external resources.
screenshot-1.png CHANGED
Binary file