Version Description
1.1
Download this release
Release Info
Developer | looswebstudio |
Plugin | SEO SIMPLE PACK |
Version | 1.1.2 |
Comparing to | |
See all releases |
Code changes from version 1.1.1 to 1.1.2
- assets/css/ssp.css +32 -0
- class/ssp_activate.php +5 -0
- class/ssp_data.php +4 -3
- class/ssp_init.php +30 -0
- inc/page_ogp.php +1 -1
- inc/page_top.php +1 -1
- readme.txt +5 -1
- seo-simple-pack.php +2 -2
assets/css/ssp.css
CHANGED
@@ -13,6 +13,38 @@
|
|
13 |
margin: 24px 0 24px;
|
14 |
}
|
15 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
/* devエリア */
|
17 |
.dev_area{
|
18 |
padding: 8px;
|
13 |
margin: 24px 0 24px;
|
14 |
}
|
15 |
|
16 |
+
/* 通知クローズボタン */
|
17 |
+
.ssp_notice{
|
18 |
+
position: relative;
|
19 |
+
}
|
20 |
+
.ssp_notice .notice-dismiss{
|
21 |
+
cursor: pointer;
|
22 |
+
}
|
23 |
+
|
24 |
+
.ssp_notice .notice-dismiss:before{
|
25 |
+
display: inline-block;
|
26 |
+
vertical-align: middle;
|
27 |
+
}
|
28 |
+
|
29 |
+
.ssp_notice .notice-dismiss span{
|
30 |
+
vertical-align: middle;
|
31 |
+
}
|
32 |
+
.ssp_notice{
|
33 |
+
border-left-color: #b3c973;
|
34 |
+
}
|
35 |
+
|
36 |
+
|
37 |
+
.notice-dismiss:active,
|
38 |
+
.notice-dismiss:focus,
|
39 |
+
.notice-dismiss:hover {
|
40 |
+
box-shadow: 0 0 4px #ccc;
|
41 |
+
}
|
42 |
+
.notice-dismiss:active:before,
|
43 |
+
.notice-dismiss:focus:before,
|
44 |
+
.notice-dismiss:hover:before {
|
45 |
+
color: #c00;
|
46 |
+
}
|
47 |
+
|
48 |
/* devエリア */
|
49 |
.dev_area{
|
50 |
padding: 8px;
|
class/ssp_activate.php
CHANGED
@@ -28,12 +28,17 @@ class SSP_Activate {
|
|
28 |
$SSP_settings = get_option( SSP_Data::DB_NAME[ 'settings' ] );
|
29 |
$SSP_ogp = get_option( SSP_Data::DB_NAME[ 'ogp' ] );
|
30 |
|
|
|
|
|
|
|
|
|
31 |
}
|
32 |
|
33 |
//DB更新
|
34 |
update_option( SSP_Data::DB_NAME[ 'settings' ], $SSP_settings );
|
35 |
update_option( SSP_Data::DB_NAME[ 'ogp' ], $SSP_ogp );
|
36 |
|
|
|
37 |
}
|
38 |
|
39 |
|
28 |
$SSP_settings = get_option( SSP_Data::DB_NAME[ 'settings' ] );
|
29 |
$SSP_ogp = get_option( SSP_Data::DB_NAME[ 'ogp' ] );
|
30 |
|
31 |
+
if ( get_option( SSP_Data::DB_NAME[ 'notification' ] ) !== 'hide' ) {
|
32 |
+
update_option( SSP_Data::DB_NAME[ 'notification' ], 'show' );
|
33 |
+
}
|
34 |
+
|
35 |
}
|
36 |
|
37 |
//DB更新
|
38 |
update_option( SSP_Data::DB_NAME[ 'settings' ], $SSP_settings );
|
39 |
update_option( SSP_Data::DB_NAME[ 'ogp' ], $SSP_ogp );
|
40 |
|
41 |
+
|
42 |
}
|
43 |
|
44 |
|
class/ssp_data.php
CHANGED
@@ -12,9 +12,10 @@ class SSP_Data {
|
|
12 |
* 使用するDBの名前
|
13 |
*/
|
14 |
const DB_NAME = [
|
15 |
-
'installed'
|
16 |
-
'
|
17 |
-
'
|
|
|
18 |
];
|
19 |
|
20 |
|
12 |
* 使用するDBの名前
|
13 |
*/
|
14 |
const DB_NAME = [
|
15 |
+
'installed' => 'ssp_installed',
|
16 |
+
'notification' => 'ssp_notification',
|
17 |
+
'settings' => 'ssp_settings',
|
18 |
+
'ogp' => 'ssp_ogp',
|
19 |
];
|
20 |
|
21 |
|
class/ssp_init.php
CHANGED
@@ -9,6 +9,7 @@ class SSP_Init {
|
|
9 |
|
10 |
$this->set_ssp_data();
|
11 |
$this->set_hooks();
|
|
|
12 |
|
13 |
}
|
14 |
|
@@ -44,4 +45,33 @@ class SSP_Init {
|
|
44 |
|
45 |
}
|
46 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
47 |
}
|
9 |
|
10 |
$this->set_ssp_data();
|
11 |
$this->set_hooks();
|
12 |
+
$this->set_notification();
|
13 |
|
14 |
}
|
15 |
|
45 |
|
46 |
}
|
47 |
|
48 |
+
/**
|
49 |
+
* アクションフックの登録
|
50 |
+
*/
|
51 |
+
private function set_notification() {
|
52 |
+
|
53 |
+
if ( isset($_POST['ssp_notice_close'] ) ) {
|
54 |
+
//CLOSEボタン押されたら
|
55 |
+
update_option( SSP_Data::DB_NAME[ 'notification' ], 'hide' );
|
56 |
+
}
|
57 |
+
|
58 |
+
// 以前から使用中の方へ向けてのメッセージ
|
59 |
+
$notification_db = get_option( SSP_Data::DB_NAME[ 'notification' ] );
|
60 |
+
if( $notification_db === 'show') {
|
61 |
+
add_action( 'admin_notices', function() { ?>
|
62 |
+
<div class="notice notice-error ssp_notice">
|
63 |
+
<p>
|
64 |
+
<b>[ SEO SIMPLE PACK 更新に伴うお知らせ ]</b><br>
|
65 |
+
個別ページごとの <code>meta robots</code> の設定方法が新しくなりました!<br>
|
66 |
+
以前のバージョンで個別設定をしていた場合は、お手数ですが再度設定をお願いいたします。
|
67 |
+
</p>
|
68 |
+
<form action="" method="post">
|
69 |
+
<button type="submit" name="ssp_notice_close" class="notice-dismiss"><span>この通知を非表示にする</span></button>
|
70 |
+
</form>
|
71 |
+
</div> <?php
|
72 |
+
} );
|
73 |
+
}
|
74 |
+
|
75 |
+
}
|
76 |
+
|
77 |
}
|
inc/page_ogp.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
$is_updated = false;
|
3 |
|
4 |
-
if ( $_SERVER['REQUEST_METHOD'] === 'POST' && !empty( $_POST ) ) {
|
5 |
|
6 |
//$_POSTの無害化
|
7 |
$P = SSP_Methods::sanitize_post_data( $_POST );
|
1 |
<?php
|
2 |
$is_updated = false;
|
3 |
|
4 |
+
if ( $_SERVER['REQUEST_METHOD'] === 'POST' && !empty( $_POST ) && !isset( $_POST['ssp_notice_close'] ) ) {
|
5 |
|
6 |
//$_POSTの無害化
|
7 |
$P = SSP_Methods::sanitize_post_data( $_POST );
|
inc/page_top.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
$is_updated = false;
|
3 |
|
4 |
-
if ( $_SERVER['REQUEST_METHOD'] === 'POST' && !empty( $_POST ) ) {
|
5 |
|
6 |
//$_POSTの無害化
|
7 |
$P = SSP_Methods::sanitize_post_data( $_POST );
|
1 |
<?php
|
2 |
$is_updated = false;
|
3 |
|
4 |
+
if ( $_SERVER['REQUEST_METHOD'] === 'POST' && !empty( $_POST ) && !isset( $_POST['ssp_notice_close'] ) ) {
|
5 |
|
6 |
//$_POSTの無害化
|
7 |
$P = SSP_Methods::sanitize_post_data( $_POST );
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://loos-web-studio.com/
|
|
4 |
Tags: SEO,meta,analytics,webmaster,simple,japan
|
5 |
Requires at least: 4.6
|
6 |
Tested up to: 4.9.8
|
7 |
-
Stable tag: 1.1.
|
8 |
Requires PHP: 5.6
|
9 |
License: GPLv2 or later
|
10 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
@@ -109,6 +109,10 @@ wp_head内( `_wp_render_title_tag` )で出力される`title`タグは削除す
|
|
109 |
|
110 |
== Changelog ==
|
111 |
|
|
|
|
|
|
|
|
|
112 |
= 1.1.1 =
|
113 |
1.1アップデートに伴うバグフィックス
|
114 |
|
4 |
Tags: SEO,meta,analytics,webmaster,simple,japan
|
5 |
Requires at least: 4.6
|
6 |
Tested up to: 4.9.8
|
7 |
+
Stable tag: 1.1.2
|
8 |
Requires PHP: 5.6
|
9 |
License: GPLv2 or later
|
10 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
109 |
|
110 |
== Changelog ==
|
111 |
|
112 |
+
= 1.1.2 =
|
113 |
+
1.1アップデートに伴う重大な変更を管理画面にて通知する設定を追加
|
114 |
+
|
115 |
+
|
116 |
= 1.1.1 =
|
117 |
1.1アップデートに伴うバグフィックス
|
118 |
|
seo-simple-pack.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: SEO SIMPLE PACK
|
4 |
Plugin URI: https://wemo.tech/1670
|
5 |
Description: シンプルなSEOプラグイン。ページ種別・投稿ごとにmetaタグやOGPタグを簡単に設定・カスタマイズできます。
|
6 |
-
Version: 1.1.
|
7 |
Author: LOOS WEB STUDIO
|
8 |
Author URI: https://loos-web-studio.com/
|
9 |
License: GPL2
|
@@ -57,7 +57,7 @@ if ( (double) $phpver < 5.6 ) {
|
|
57 |
* 定数宣言
|
58 |
*/
|
59 |
if ( ! defined( 'SSP_VERSION' ) ) {
|
60 |
-
define( 'SSP_VERSION', '1.1.
|
61 |
}
|
62 |
if ( ! defined( 'SSP_FILE' ) ) {
|
63 |
define( 'SSP_FILE', __FILE__ );
|
3 |
Plugin Name: SEO SIMPLE PACK
|
4 |
Plugin URI: https://wemo.tech/1670
|
5 |
Description: シンプルなSEOプラグイン。ページ種別・投稿ごとにmetaタグやOGPタグを簡単に設定・カスタマイズできます。
|
6 |
+
Version: 1.1.2
|
7 |
Author: LOOS WEB STUDIO
|
8 |
Author URI: https://loos-web-studio.com/
|
9 |
License: GPL2
|
57 |
* 定数宣言
|
58 |
*/
|
59 |
if ( ! defined( 'SSP_VERSION' ) ) {
|
60 |
+
define( 'SSP_VERSION', '1.1.2' );
|
61 |
}
|
62 |
if ( ! defined( 'SSP_FILE' ) ) {
|
63 |
define( 'SSP_FILE', __FILE__ );
|