Page scroll to id - Version 1.7.1

Version Description

  • Update plugin's settings page and notices.
Download this release

Release Info

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

Code changes from version 1.7.0 to 1.7.1

css/admin.css CHANGED
@@ -139,4 +139,49 @@
139
 
140
  .mPS2id-show-option-common-values + span.mPS2id-show{
141
  display: block;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
142
  }
139
 
140
  .mPS2id-show-option-common-values + span.mPS2id-show{
141
  display: block;
142
+ }
143
+
144
+ .clearfix::after{
145
+ content: "";
146
+ clear: both;
147
+ display: table;
148
+ }
149
+
150
+ .plugin-body{
151
+ position: relative;
152
+ }
153
+
154
+ .plugin-body-section-2{
155
+ display: block;
156
+ min-height: 100px;
157
+ right: 0;
158
+ top: 0;
159
+ overflow: hidden;
160
+ }
161
+
162
+ .plugin-body-section-2 img{
163
+ max-width: 100%;
164
+ height: auto;
165
+ }
166
+
167
+ @media only screen and (min-width: 480px){
168
+ .plugin-body-section-1{
169
+ margin-right: calc(35vw + 1em);
170
+ }
171
+
172
+ .plugin-body-section-2{
173
+ position: absolute;
174
+ text-align: right;
175
+ width: 35vw;
176
+ }
177
+ }
178
+
179
+ @media only screen and (min-width: 782px){
180
+ .plugin-body-section-1{
181
+ margin-right: calc(25vw + 1em);
182
+ }
183
+
184
+ .plugin-body-section-2{
185
+ width: 25vw;
186
+ }
187
  }
includes/admin.php CHANGED
@@ -53,26 +53,39 @@ $toggle_instance_title=__('Click to toggle', $this->plugin_slug);
53
  <div class="metabox-holder">
54
  <?php endif; ?>
55
 
56
- <form id="<?php echo $this->pl_pfx; ?>form" method="post" action="options.php">
57
-
58
- <?php settings_fields($this->plugin_slug); ?>
59
-
60
- <?php echo '<input type="hidden" id="'.$this->db_prefix.'total_instances'.'" name="'.$this->db_prefix.'total_instances'.'" value="'.$this->index.'" /> '; ?>
61
- <?php echo '<input type="hidden" id="'.$this->db_prefix.'instances'.'" name="'.$this->db_prefix.'instances'.'" value="" /> '; ?>
62
- <?php echo '<input type="hidden" id="'.$this->db_prefix.'reset'.'" name="'.$this->db_prefix.'reset'.'" value="false" /> '; ?>
63
-
64
- <?php do_settings_sections($this->plugin_slug); ?>
65
-
66
- <div class="other-buttons">
67
- <?php if($repeatables) : ?>
68
- <a class="button button-small repeatable-add" href="#"><?php echo $btn_add; ?></a>
69
- <?php endif; ?>
70
- <a class="button button-small reset-to-default" href="#"><?php echo $btn_reset; ?></a>
 
 
 
 
 
 
 
 
 
 
71
  </div>
72
-
73
- <?php submit_button(); ?>
74
-
75
- </form>
 
 
 
76
 
77
  <?php if($repeatables) : ?>
78
  </div>
53
  <div class="metabox-holder">
54
  <?php endif; ?>
55
 
56
+ <div class="plugin-body clearfix">
57
+
58
+ <div class="plugin-body-section-1">
59
+
60
+ <form id="<?php echo $this->pl_pfx; ?>form" method="post" action="options.php">
61
+
62
+ <?php settings_fields($this->plugin_slug); ?>
63
+
64
+ <?php echo '<input type="hidden" id="'.$this->db_prefix.'total_instances'.'" name="'.$this->db_prefix.'total_instances'.'" value="'.$this->index.'" /> '; ?>
65
+ <?php echo '<input type="hidden" id="'.$this->db_prefix.'instances'.'" name="'.$this->db_prefix.'instances'.'" value="" /> '; ?>
66
+ <?php echo '<input type="hidden" id="'.$this->db_prefix.'reset'.'" name="'.$this->db_prefix.'reset'.'" value="false" /> '; ?>
67
+
68
+ <?php do_settings_sections($this->plugin_slug); ?>
69
+
70
+ <div class="other-buttons">
71
+ <?php if($repeatables) : ?>
72
+ <a class="button button-small repeatable-add" href="#"><?php echo $btn_add; ?></a>
73
+ <?php endif; ?>
74
+ <a class="button button-small reset-to-default" href="#"><?php echo $btn_reset; ?></a>
75
+ </div>
76
+
77
+ <?php submit_button(); ?>
78
+
79
+ </form>
80
+
81
  </div>
82
+
83
+ <div class="plugin-body-section-2">
84
+ <?php // SEO notice --edit-- ?>
85
+ <a href="https://seobuddy.com/seo-checklist/pagescroll" target="_blank"><img src="<?php echo plugins_url('seo-checklist-illustration-3-opt.png', __FILE__); ?>" /></a>
86
+ </div>
87
+
88
+ </div>
89
 
90
  <?php if($repeatables) : ?>
91
  </div>
includes/seo-admin-notice.php ADDED
@@ -0,0 +1,116 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if (!class_exists('SEO_Admin_Notice')) {
3
+
4
+ class SEO_Admin_Notice{
5
+ public function __construct(){
6
+ add_action('admin_notices', array($this, 'admin_notice'));
7
+ add_action('network_admin_notices', array($this, 'admin_notice'));
8
+ add_action('admin_init', array($this, 'dismiss_admin_notice'));
9
+ }
10
+
11
+ public function dismiss_admin_notice(){
12
+ if (!isset($_GET['seo-adaction']) || $_GET['seo-adaction'] != 'seo_dismiss_adnotice') {
13
+ return;
14
+ }
15
+
16
+ $url = admin_url();
17
+ update_option('seo_dismiss_adnotice', 'true');
18
+
19
+ wp_redirect($url);
20
+ exit;
21
+ }
22
+
23
+ public function admin_notice(){
24
+ if (get_option('seo_dismiss_adnotice', 'false') == 'true') {
25
+ return;
26
+ }
27
+
28
+ $dismiss_url = esc_url_raw(
29
+ add_query_arg(
30
+ array(
31
+ 'seo-adaction' => 'seo_dismiss_adnotice'
32
+ ),
33
+ admin_url()
34
+ )
35
+ );
36
+ $this->notice_css();
37
+ $learn_more_url = 'https://seobuddy.com/seo-checklist/pagescroll';
38
+ ?>
39
+ <div id="ps2id-seo-admin-notice" class="notice notice-info">
40
+ <p>
41
+ Thank you for using Page Scroll to id! If you like our plugin and want to support our effort to provide it for free, we would also like to recommend this
42
+ <a href="<?php echo $learn_more_url; ?>" target="_blank"><strong class="em-text">102-Point SEO Checklist</strong></a>. It includes 42 step-by-step guides (SOPs) to every important SEO action you need to take to optimize your website and get more organic traffic. And using discount coupon <em>PAGESCROLL</em> you get a 25% off the original price!
43
+ <br />
44
+ <a href="<?php echo $learn_more_url; ?>" target="_blank" class="seo-checklist-learn-more">Learn more</a>
45
+ <a href="<?php echo $dismiss_url; ?>"><?php _e('Dismiss this notice'); ?></a>
46
+ </p>
47
+ <a href="<?php echo $learn_more_url; ?>" target="_blank" class="seo-checklist-logo" title="Learn more">
48
+ <img src="<?php echo plugins_url('the-seo-checklist-by-seo-buddy.png', __FILE__); ?>" />
49
+ </a>
50
+ <a href="<?php echo $dismiss_url; ?>" class="notice-dismiss seo-checklist-dismiss" title="<?php _e('Dismiss this notice'); ?>">
51
+ <span class="screen-reader-text"><?php _e('Dismiss this notice'); ?>.</span>
52
+ </a>
53
+ </div>
54
+ <?php
55
+ }
56
+
57
+ public function notice_css(){
58
+ ?>
59
+ <style type="text/css">
60
+ #ps2id-seo-admin-notice{
61
+ position: relative;
62
+ padding-right: 48px;
63
+ }
64
+ .seo-checklist-learn-more{
65
+ margin-right: 1em;
66
+ }
67
+ .seo-checklist-logo{
68
+ display: block;
69
+ height: auto;
70
+ max-width: 100%;
71
+ }
72
+ .seo-checklist-logo img{
73
+ height: auto;
74
+ max-width: 100%;
75
+ }
76
+ .em-text{
77
+ font-weight: 400;
78
+ font-size: 110%;
79
+ }
80
+ .notice-dismiss.seo-checklist-dismiss{
81
+ text-decoration: none;
82
+ }
83
+ @media only screen and (min-width: 768px){
84
+ .seo-checklist-logo{
85
+ position: absolute;
86
+ top: 56%;
87
+ transform: translateY(-50%);
88
+ right: 48px;
89
+ }
90
+ #ps2id-seo-admin-notice > p{
91
+ margin-right: 350px;
92
+ }
93
+ }
94
+ @media only screen and (max-width: 767px){
95
+ #ps2id-seo-admin-notice > p{
96
+ margin-bottom: 1em;
97
+ }
98
+ }
99
+ </style>
100
+ <?php
101
+ }
102
+
103
+ public static function instance(){
104
+ static $instance = null;
105
+
106
+ if (is_null($instance)) {
107
+ $instance = new self();
108
+ }
109
+
110
+ return $instance;
111
+ }
112
+ }
113
+ }
114
+
115
+ SEO_Admin_Notice::instance();
116
+ ?>
includes/seo-checklist-illustration-3-opt.png ADDED
Binary file
includes/the-seo-checklist-by-seo-buddy.png ADDED
Binary file
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 (smooth) page scrolling to specific id within the document.
6
- Version: 1.7.0
7
  Author: malihu
8
  Author URI: http://manos.malihu.gr
9
  License: MIT License (MIT)
@@ -47,7 +47,7 @@ if(!class_exists('malihuPageScroll2id')){ // --edit--
47
 
48
  class malihuPageScroll2id{ // --edit--
49
 
50
- protected $version='1.7.0'; // Plugin version --edit--
51
  protected $update_option=null;
52
 
53
  protected $plugin_name='Page scroll to id'; // Plugin name --edit--
@@ -1168,6 +1168,9 @@ if(class_exists('malihuPageScroll2id')){ // --edit--
1168
 
1169
  // MO notice class --edit--
1170
  //require_once(plugin_dir_path( __FILE__ ).'includes/mo-admin-notice.php');
 
 
 
1171
 
1172
  }
1173
  ?>
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 (smooth) page scrolling to specific id within the document.
6
+ Version: 1.7.1
7
  Author: malihu
8
  Author URI: http://manos.malihu.gr
9
  License: MIT License (MIT)
47
 
48
  class malihuPageScroll2id{ // --edit--
49
 
50
+ protected $version='1.7.1'; // Plugin version --edit--
51
  protected $update_option=null;
52
 
53
  protected $plugin_name='Page scroll to id'; // Plugin name --edit--
1168
 
1169
  // MO notice class --edit--
1170
  //require_once(plugin_dir_path( __FILE__ ).'includes/mo-admin-notice.php');
1171
+ // SEO notice class --edit--
1172
+ // See also admin.php and admin.css for settings page banner
1173
+ require_once(plugin_dir_path( __FILE__ ).'includes/seo-admin-notice.php');
1174
 
1175
  }
1176
  ?>
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
4
  Tags: page scrolling, page animation, smooth scroll, navigation, single-page navigation
5
  Requires at least: 3.3
6
  Tested up to: 5.6
7
- Stable tag: 1.7.0
8
  License: The MIT License (MIT)
9
  License URI: http://opensource.org/licenses/MIT
10
 
@@ -100,6 +100,10 @@ Because it works and it already has a ton of features. The plugin has little dep
100
 
101
  == Changelog ==
102
 
 
 
 
 
103
  = 1.7.0 =
104
 
105
  * Removed recommended plugins.
@@ -270,6 +274,10 @@ Because it works and it already has a ton of features. The plugin has little dep
270
 
271
  == Upgrade Notice ==
272
 
 
 
 
 
273
  = 1.7.0 =
274
 
275
  Removed recommended plugins, updated plugin screenshots and readme.txt.
4
  Tags: page scrolling, page animation, smooth scroll, navigation, single-page navigation
5
  Requires at least: 3.3
6
  Tested up to: 5.6
7
+ Stable tag: 1.7.1
8
  License: The MIT License (MIT)
9
  License URI: http://opensource.org/licenses/MIT
10
 
100
 
101
  == Changelog ==
102
 
103
+ = 1.7.1 =
104
+
105
+ * Update plugin's settings page and notices.
106
+
107
  = 1.7.0 =
108
 
109
  * Removed recommended plugins.
274
 
275
  == Upgrade Notice ==
276
 
277
+ = 1.7.1 =
278
+
279
+ Update plugin's settings page and notices.
280
+
281
  = 1.7.0 =
282
 
283
  Removed recommended plugins, updated plugin screenshots and readme.txt.