Version Description
- 2021-02-19
- fixed one really really visible typo
- added custom footer text on plugin's admin page
- lowered the price for the team package
Download this release
Release Info
Developer | WebFactory |
Plugin | Sticky Menu (or Anything!) on Scroll |
Version | 2.31 |
Comparing to | |
See all releases |
Code changes from version 2.30 to 2.31
- assets/faq.php +1 -1
- readme.txt +12 -5
- sticky-menu-or-anything.php +22 -7
- wf-flyout/config.php +3 -2
- wf-flyout/icons/301-logo.png +0 -0
assets/faq.php
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
<p><strong><?php _e('Q: I need help please!','sticky-menu-or-anything-on-scroll'); ?></strong><br />
|
2 |
If you upgrade to WP Sticky PRO you'll have access to <a href="#" class="open-sticky-pro-dialog pro-feature" data-pro-feature="support">premium email support</a> directly from plugin devs.<br><br>
|
3 |
-
<?php _e('Please read the FAQ below first as well as the <a href="https://wpsticky.com/documentation/?
|
4 |
|
5 |
<p><strong><?php _e('Q: I selected a class/ID in the settings screen, but the element doesn\'t stick when I scroll down. Why not?','sticky-menu-or-anything-on-scroll'); ?></strong><br />
|
6 |
<?php _e('First, make sure that if you select the element by its classname, it is preceded by a dot (e.g. ".main-menu"), and if you select it by its ID, that it\'s preceded by a pound/hash/number sign (e.g. "#main-menu"). Also, make sure there is only ONE element on the page with the selector you\'re using. If there is none, or more than one element that matches your selector, nothing will happen.','sticky-menu-or-anything-on-scroll'); ?></p>
|
1 |
<p><strong><?php _e('Q: I need help please!','sticky-menu-or-anything-on-scroll'); ?></strong><br />
|
2 |
If you upgrade to WP Sticky PRO you'll have access to <a href="#" class="open-sticky-pro-dialog pro-feature" data-pro-feature="support">premium email support</a> directly from plugin devs.<br><br>
|
3 |
+
<?php _e('Please read the FAQ below first as well as the <a href="https://wpsticky.com/documentation/?ref=sticky-free-docs" target="_blank">official documentation</a> and then go to the plugin\'s <a href="https://wordpress.org/support/plugin/sticky-menu-or-anything-on-scroll" target="_blank">community support forum</a> and post a message (include a link to your site). Support is provided on a voluntary basis.','sticky-menu-or-anything-on-scroll'); ?></p>
|
4 |
|
5 |
<p><strong><?php _e('Q: I selected a class/ID in the settings screen, but the element doesn\'t stick when I scroll down. Why not?','sticky-menu-or-anything-on-scroll'); ?></strong><br />
|
6 |
<?php _e('First, make sure that if you select the element by its classname, it is preceded by a dot (e.g. ".main-menu"), and if you select it by its ID, that it\'s preceded by a pound/hash/number sign (e.g. "#main-menu"). Also, make sure there is only ONE element on the page with the selector you\'re using. If there is none, or more than one element that matches your selector, nothing will happen.','sticky-menu-or-anything-on-scroll'); ?></p>
|
readme.txt
CHANGED
@@ -1,19 +1,19 @@
|
|
1 |
-
=== Sticky Menu
|
2 |
Contributors: WebFactory
|
3 |
Tags: sticky header, sticky menu, sticky, header, sticky widget, floating menu, menu
|
4 |
Plugin URI: https://wpsticky.com/
|
5 |
Requires at least: 3.6
|
6 |
-
Tested up to:
|
7 |
-
Stable tag: 2.
|
8 |
Requires PHP: 5.2
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
12 |
-
Sticky Menu or Sticky Header
|
13 |
|
14 |
== Description ==
|
15 |
|
16 |
-
The <a href="https://wpsticky.com/?ref=wp-org-readme1">WP Sticky</a> Menu (or Sticky Header) On Scroll plugin allows you to **make any element on your pages "sticky"** as soon as it hits the top of the page when you scroll down. Although this is commonly used to keep menus at the top of your page to create floating menus, the plugin allows you to make any element sticky. Make a sticky header, stick menu, sticky widget, sticky logo, sticky call to action or a floating menu.
|
17 |
|
18 |
You just need to know how to pick the right selector for the element you want to make sticky, and you need to be sure it's a unique selector. Sometimes a simple selector like "nav", "#main-menu", ".menu-main-menu-1" is enough. Other times you will have to be more detailed and use a more specific selector such as "header > ul:first-child" or "nav.top .menu-header ul.main". If you don't like messing with any code check out out the visual element picker in <a href="https://wpsticky.com/?ref=wp-org-readme2">WP Sticky PRO</a>.
|
19 |
|
@@ -30,6 +30,7 @@ You just need to know how to pick the right selector for the element you want to
|
|
30 |
* **Dynamic Mode**: some issues that frequently appear in responsive themes have been address by adding a Dynamic Mode (Legacy Mode only). See FAQ for details.
|
31 |
* **Debug Mode:** find out possible reasons why your element doesn't stick by switching on Debug Mode, and error messages will appear in your browser's console.
|
32 |
|
|
|
33 |
|
34 |
== Installation ==
|
35 |
|
@@ -132,6 +133,12 @@ Please go to the plugin's [support forum on WordPress.org](https://wordpress.org
|
|
132 |
|
133 |
== Changelog ==
|
134 |
|
|
|
|
|
|
|
|
|
|
|
|
|
135 |
= 2.30 =
|
136 |
* 2021-02-13
|
137 |
* better clean-up on delete and deactivate
|
1 |
+
=== Sticky Menu & Sticky Header ===
|
2 |
Contributors: WebFactory
|
3 |
Tags: sticky header, sticky menu, sticky, header, sticky widget, floating menu, menu
|
4 |
Plugin URI: https://wpsticky.com/
|
5 |
Requires at least: 3.6
|
6 |
+
Tested up to: 6.1
|
7 |
+
Stable tag: 2.31
|
8 |
Requires PHP: 5.2
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
12 |
+
Sticky Menu or Sticky Header sticks elements at the top of the screen when you scroll, or create a floating sticky menu or fixed widget.
|
13 |
|
14 |
== Description ==
|
15 |
|
16 |
+
The <a href="https://wpsticky.com/?ref=wp-org-readme1">WP Sticky</a> Menu (or Sticky Header) On Scroll plugin allows you to **make any element on your pages "sticky"** as soon as it hits the top of the page when you scroll down. Although this is commonly used to keep menus at the top of your page to create floating menus, the plugin allows you to make any element sticky. Make a sticky header, stick menu, sticky widget (fixed widget), sticky logo, sticky call to action or a floating menu.
|
17 |
|
18 |
You just need to know how to pick the right selector for the element you want to make sticky, and you need to be sure it's a unique selector. Sometimes a simple selector like "nav", "#main-menu", ".menu-main-menu-1" is enough. Other times you will have to be more detailed and use a more specific selector such as "header > ul:first-child" or "nav.top .menu-header ul.main". If you don't like messing with any code check out out the visual element picker in <a href="https://wpsticky.com/?ref=wp-org-readme2">WP Sticky PRO</a>.
|
19 |
|
30 |
* **Dynamic Mode**: some issues that frequently appear in responsive themes have been address by adding a Dynamic Mode (Legacy Mode only). See FAQ for details.
|
31 |
* **Debug Mode:** find out possible reasons why your element doesn't stick by switching on Debug Mode, and error messages will appear in your browser's console.
|
32 |
|
33 |
+
Having **problems with SSL**? Moving a site from HTTP to HTTPS? Install our free <a href="https://wordpress.org/plugins/wp-force-ssl/">WP Force SSL</a> plugin. It’s a great way to fix all SSL problems.
|
34 |
|
35 |
== Installation ==
|
36 |
|
133 |
|
134 |
== Changelog ==
|
135 |
|
136 |
+
= 2.31 =
|
137 |
+
* 2021-02-19
|
138 |
+
* fixed one really really visible typo
|
139 |
+
* added custom footer text on plugin's admin page
|
140 |
+
* lowered the price for the team package
|
141 |
+
|
142 |
= 2.30 =
|
143 |
* 2021-02-13
|
144 |
* better clean-up on delete and deactivate
|
sticky-menu-or-anything.php
CHANGED
@@ -5,9 +5,9 @@ Plugin URI: https://wpsticky.com/
|
|
5 |
Description: Pick any element on the page, and it will stick when it reaches the top of the page when you scroll down. Handy for navigation menus, but can be used for any element on the page.
|
6 |
Author: WebFactory Ltd
|
7 |
Author URI: https://www.webfactoryltd.com/
|
8 |
-
Version: 2.
|
9 |
Requires at least: 3.6
|
10 |
-
Tested up to:
|
11 |
Requires PHP: 5.2
|
12 |
*/
|
13 |
|
@@ -26,7 +26,7 @@ new wf_flyout(__FILE__);
|
|
26 |
*/
|
27 |
if (!function_exists('sticky_anything_activate')) {
|
28 |
function sticky_anything_activate() {
|
29 |
-
$versionNum = '2.
|
30 |
if (get_option('sticky_anything_options') === false) {
|
31 |
$new_options['sa_version'] = $versionNum;
|
32 |
$new_options['sa_element'] = '';
|
@@ -157,14 +157,14 @@ if (!function_exists('sticky_anything_settings_link')) {
|
|
157 |
function sticky_anything_settings_link($links) {
|
158 |
$settings_link = '<a href="options-general.php?page=stickyanythingmenu">Settings</a>';
|
159 |
array_unshift($links, $settings_link);
|
160 |
-
$links[] = '<a href="https://wpsticky.com/?
|
161 |
|
162 |
return $links;
|
163 |
}
|
164 |
}
|
165 |
|
166 |
function sticky_plugin_meta_links($links, $file) {
|
167 |
-
$support_link = '<a target="_blank" href="https://wpsticky.com/documentation/?
|
168 |
|
169 |
if ($file == plugin_basename(__FILE__)) {
|
170 |
$links[] = $support_link;
|
@@ -173,6 +173,20 @@ function sticky_plugin_meta_links($links, $file) {
|
|
173 |
return $links;
|
174 |
} // sticky_plugin_meta_links
|
175 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
176 |
|
177 |
/**
|
178 |
* --- THE WHOLE ADMIN SETTINGS PAGE -------------------------------------------------------------------
|
@@ -186,7 +200,7 @@ if (!function_exists('sticky_anything_config_page')) {
|
|
186 |
<div id="sticky-anything-settings-general" class="wrap">
|
187 |
<h2 style="margin-bottom: 12px;"><img class="header-logo" src="<?php echo plugin_dir_url(__FILE__); ?>assets/img/wp-sticky-pro.png" alt="<?php _e('Sticky Menu (or Anything!) on Scroll','sticky-menu-or-anything-on-scroll'); ?>" title="<?php _e('Sticky Menu (or Anything!) on Scroll','sticky-menu-or-anything-on-scroll'); ?>"><?php _e('Sticky Menu (or Anything!) on Scroll','sticky-menu-or-anything-on-scroll'); ?></h2>
|
188 |
|
189 |
-
<p><?php _e('Pick any element on
|
190 |
<?php
|
191 |
if (!empty($sticky_anything_options['sa_element']) && empty($sticky_anything_options['sa_hide_review_notification'])) {
|
192 |
$dismiss_url = add_query_arg(array('action' => 'sticky_hide_review_notification', 'redirect' => urlencode($_SERVER['REQUEST_URI'])), admin_url('admin.php'));
|
@@ -797,7 +811,7 @@ function sticky_anything_admin_footer() {
|
|
797 |
{
|
798 |
$pointers = array();
|
799 |
|
800 |
-
$pointers['welcome'] = array('target' => '#menu-settings', 'edge' => 'left', 'align' => 'right', 'content' => 'Thank you for using the <b style="font-weight: 700;">Sticky Menu (or
|
801 |
|
802 |
return $pointers;
|
803 |
} // sticky_get_pointers
|
@@ -873,5 +887,6 @@ add_action('admin_footer', 'sticky_anything_admin_footer');
|
|
873 |
add_action('admin_enqueue_scripts', 'sticky_anything_styles' );
|
874 |
add_filter("plugin_action_links_$plugin", 'sticky_anything_settings_link' );
|
875 |
add_filter('plugin_row_meta', 'sticky_plugin_meta_links', 10, 2);
|
|
|
876 |
add_action('admin_action_sticky_hide_review_notification', 'sticky_hide_review_notification');
|
877 |
add_action('wp_ajax_sticky_dismiss_notice', 'sticky_ajax_dismiss_notice');
|
5 |
Description: Pick any element on the page, and it will stick when it reaches the top of the page when you scroll down. Handy for navigation menus, but can be used for any element on the page.
|
6 |
Author: WebFactory Ltd
|
7 |
Author URI: https://www.webfactoryltd.com/
|
8 |
+
Version: 2.31
|
9 |
Requires at least: 3.6
|
10 |
+
Tested up to: 6.0
|
11 |
Requires PHP: 5.2
|
12 |
*/
|
13 |
|
26 |
*/
|
27 |
if (!function_exists('sticky_anything_activate')) {
|
28 |
function sticky_anything_activate() {
|
29 |
+
$versionNum = '2.31';
|
30 |
if (get_option('sticky_anything_options') === false) {
|
31 |
$new_options['sa_version'] = $versionNum;
|
32 |
$new_options['sa_element'] = '';
|
157 |
function sticky_anything_settings_link($links) {
|
158 |
$settings_link = '<a href="options-general.php?page=stickyanythingmenu">Settings</a>';
|
159 |
array_unshift($links, $settings_link);
|
160 |
+
$links[] = '<a href="https://wpsticky.com/?ref=sticky-free-plugins-table" target="_blank"><b>Get PRO</b></a>';
|
161 |
|
162 |
return $links;
|
163 |
}
|
164 |
}
|
165 |
|
166 |
function sticky_plugin_meta_links($links, $file) {
|
167 |
+
$support_link = '<a target="_blank" href="https://wpsticky.com/documentation/?ref=sticky-free-support" title="Get help">Support</a>';
|
168 |
|
169 |
if ($file == plugin_basename(__FILE__)) {
|
170 |
$links[] = $support_link;
|
173 |
return $links;
|
174 |
} // sticky_plugin_meta_links
|
175 |
|
176 |
+
// additional powered by text in admin footer; only on Sticky page
|
177 |
+
function sticky_admin_footer_text($text) {
|
178 |
+
$screen = get_current_screen();
|
179 |
+
if ($screen->id != 'settings_page_stickyanythingmenu') {
|
180 |
+
return;
|
181 |
+
}
|
182 |
+
|
183 |
+
$plugin_data = get_file_data(__FILE__, array('version' => 'Version'), 'plugin');
|
184 |
+
|
185 |
+
$text = '<i><a href="https://wpsticky.com/?ref=sticky-free-footer" title="Visit WP Sticky site for more info" target="_blank">WP Sticky</a> v' . $plugin_data['version'] . ' by <a href="https://www.webfactoryltd.com/" title="Visit our site to get more great plugins" target="_blank">WebFactory Ltd</a>. Please <a target="_blank" href="https://wordpress.org/support/plugin/sticky-menu-or-anything-on-scroll/reviews/#new-post" title="Rate the plugin">rate the plugin <span>★★★★★</span></a> to help us spread the word. Thank you!</i>';
|
186 |
+
|
187 |
+
return $text;
|
188 |
+
} // admin_footer_text
|
189 |
+
|
190 |
|
191 |
/**
|
192 |
* --- THE WHOLE ADMIN SETTINGS PAGE -------------------------------------------------------------------
|
200 |
<div id="sticky-anything-settings-general" class="wrap">
|
201 |
<h2 style="margin-bottom: 12px;"><img class="header-logo" src="<?php echo plugin_dir_url(__FILE__); ?>assets/img/wp-sticky-pro.png" alt="<?php _e('Sticky Menu (or Anything!) on Scroll','sticky-menu-or-anything-on-scroll'); ?>" title="<?php _e('Sticky Menu (or Anything!) on Scroll','sticky-menu-or-anything-on-scroll'); ?>"><?php _e('Sticky Menu (or Anything!) on Scroll','sticky-menu-or-anything-on-scroll'); ?></h2>
|
202 |
|
203 |
+
<p><?php _e('Pick any element on the page, and it will stick when it reaches the top of the page when you scroll down. Great for headers and navigation menus, but can be used for any page element.','sticky-menu-or-anything-on-scroll'); ?><br><br></p>
|
204 |
<?php
|
205 |
if (!empty($sticky_anything_options['sa_element']) && empty($sticky_anything_options['sa_hide_review_notification'])) {
|
206 |
$dismiss_url = add_query_arg(array('action' => 'sticky_hide_review_notification', 'redirect' => urlencode($_SERVER['REQUEST_URI'])), admin_url('admin.php'));
|
811 |
{
|
812 |
$pointers = array();
|
813 |
|
814 |
+
$pointers['welcome'] = array('target' => '#menu-settings', 'edge' => 'left', 'align' => 'right', 'content' => 'Thank you for using the <b style="font-weight: 700;">Sticky Menu (or Anything!) on Scroll</b> plugin.<br>Open <a href="' . admin_url('options-general.php?page=stickyanythingmenu') . '">Settings - Sticky Menu</a> to make anything sticky.');
|
815 |
|
816 |
return $pointers;
|
817 |
} // sticky_get_pointers
|
887 |
add_action('admin_enqueue_scripts', 'sticky_anything_styles' );
|
888 |
add_filter("plugin_action_links_$plugin", 'sticky_anything_settings_link' );
|
889 |
add_filter('plugin_row_meta', 'sticky_plugin_meta_links', 10, 2);
|
890 |
+
add_filter('admin_footer_text', 'sticky_admin_footer_text');
|
891 |
add_action('admin_action_sticky_hide_review_notification', 'sticky_hide_review_notification');
|
892 |
add_action('wp_ajax_sticky_dismiss_notice', 'sticky_ajax_dismiss_notice');
|
wf-flyout/config.php
CHANGED
@@ -9,11 +9,12 @@ $config['icon_image'] = 'sticky.png';
|
|
9 |
$config['icon_padding'] = '9px';
|
10 |
$config['icon_size'] = '55px';
|
11 |
$config['menu_accent_color'] = '#ffde66';
|
12 |
-
$config['custom_css'] = '#wf-flyout .wff-menu-item .dashicons.dashicons-universal-access { font-size: 30px; padding: 0px 10px 0px 0; } #wf-flyout .ucp-icon .wff-icon img { max-width: 70%; } #wf-flyout .ucp-icon .wff-icon { line-height: 57px; } #wf-flyout .wff-menu-item .dashicons.dashicons-admin-post { color: #3f3e40; }';
|
13 |
|
14 |
$config['menu_items'] = array(
|
15 |
array('href' => '#', 'label' => 'Get WP Sticky PRO with 50% off', 'icon' => 'dashicons-admin-post', 'class' => 'accent open-sticky-pro-dialog', 'data' => 'data-pro-feature="flyout"'),
|
16 |
-
array('href' => 'https://
|
|
|
17 |
array('href' => 'https://underconstructionpage.com/?ref=wff-sticky&coupon=welcome', 'target' => '_blank', 'label' => 'Create the perfect Under Construction Page', 'icon' => 'ucp.png', 'class' => 'ucp-icon'),
|
18 |
array('href' => 'https://wordpress.org/support/plugin/sticky-menu-or-anything-on-scroll/reviews/?filter=5#new-post', 'target' => '_blank', 'label' => 'Rate the Plugin', 'icon' => 'dashicons-thumbs-up'),
|
19 |
array('href' => 'https://wordpress.org/support/plugin/sticky-menu-or-anything-on-scroll/#new-post', 'target' => '_blank', 'label' => 'Get Support', 'icon' => 'dashicons-sos'),
|
9 |
$config['icon_padding'] = '9px';
|
10 |
$config['icon_size'] = '55px';
|
11 |
$config['menu_accent_color'] = '#ffde66';
|
12 |
+
$config['custom_css'] = '#wf-flyout .wff-menu-item .dashicons.dashicons-universal-access { font-size: 30px; padding: 0px 10px 0px 0; } #wf-flyout .ucp-icon .wff-icon img { max-width: 70%; } #wf-flyout .ucp-icon .wff-icon { line-height: 57px; } #wf-flyout .wff-menu-item .dashicons.dashicons-admin-post { color: #3f3e40; } #wf-flyout .wp301-icon .wff-icon img { max-width: 70%; } #wf-flyout .wp301-icon .wff-icon { line-height: 57px; }';
|
13 |
|
14 |
$config['menu_items'] = array(
|
15 |
array('href' => '#', 'label' => 'Get WP Sticky PRO with 50% off', 'icon' => 'dashicons-admin-post', 'class' => 'accent open-sticky-pro-dialog', 'data' => 'data-pro-feature="flyout"'),
|
16 |
+
array('href' => 'https://wp301redirects.com/?ref=wff-sticky&coupon=50off', 'label' => 'Get WP 301 Redirects PRO with 50% off', 'icon' => '301-logo.png', 'class' => 'wp301-icon'),
|
17 |
+
array('href' => 'https://wpreset.com/?ref=wff-sticky&coupon=50off', 'target' => '_blank', 'label' => 'Get WP Reset PRO with 50% off', 'icon' => 'wp-reset.png'),
|
18 |
array('href' => 'https://underconstructionpage.com/?ref=wff-sticky&coupon=welcome', 'target' => '_blank', 'label' => 'Create the perfect Under Construction Page', 'icon' => 'ucp.png', 'class' => 'ucp-icon'),
|
19 |
array('href' => 'https://wordpress.org/support/plugin/sticky-menu-or-anything-on-scroll/reviews/?filter=5#new-post', 'target' => '_blank', 'label' => 'Rate the Plugin', 'icon' => 'dashicons-thumbs-up'),
|
20 |
array('href' => 'https://wordpress.org/support/plugin/sticky-menu-or-anything-on-scroll/#new-post', 'target' => '_blank', 'label' => 'Get Support', 'icon' => 'dashicons-sos'),
|
wf-flyout/icons/301-logo.png
ADDED
Binary file
|