Version Description
Update to support WordPress 5.3.
Download this release
Release Info
Developer | looswebstudio |
Plugin | SEO SIMPLE PACK |
Version | 1.2.4 |
Comparing to | |
See all releases |
Code changes from version 1.2.3 to 1.2.4
- class/ssp_init.php +1 -0
- class/ssp_menu.php +66 -48
- inc/page_ogp.php +1 -1
- inc/page_top.php +1 -1
- languages/loos-ssp-ja.mo +0 -0
- languages/loos-ssp-ja.po +78 -0
- readme.txt +6 -3
- seo-simple-pack.php +26 -34
class/ssp_init.php
CHANGED
@@ -7,6 +7,7 @@ class SSP_Init {
|
|
7 |
*/
|
8 |
public function __construct() {
|
9 |
|
|
|
10 |
$this->set_ssp_data();
|
11 |
$this->set_hooks();
|
12 |
SSP_MetaBox::init();
|
7 |
*/
|
8 |
public function __construct() {
|
9 |
|
10 |
+
SSP_Menu::init();
|
11 |
$this->set_ssp_data();
|
12 |
$this->set_hooks();
|
13 |
SSP_MetaBox::init();
|
class/ssp_menu.php
CHANGED
@@ -1,39 +1,80 @@
|
|
1 |
<?php
|
2 |
|
|
|
|
|
3 |
class SSP_Menu {
|
4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
/**
|
6 |
* 外部からのインスタンス化を防ぐ
|
7 |
*/
|
8 |
private function __construct() {}
|
9 |
|
10 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
/**
|
12 |
* トップレベルメニューの設定
|
13 |
*/
|
14 |
const TOP_MENU = [
|
15 |
-
'page_title' => 'SEO PACK',
|
16 |
-
'menu_title' => 'SEO PACK',
|
17 |
-
'capability' => 'manage_options',
|
18 |
-
'menu_slug' => 'ssp_main_setting',
|
19 |
-
'function' => ['SSP_Menu','ssp_top_menu'],
|
20 |
//'icon_url' => SSP_URL.'/assets/img/noimg.gif', //アイコンURL
|
21 |
-
'icon_url' => 'dashicons-list-view',
|
22 |
-
'position' => 81
|
23 |
];
|
24 |
|
25 |
|
26 |
-
|
27 |
-
* サブメニュー「OGP」の設定
|
28 |
-
*/
|
29 |
-
const OGP_MENU = [
|
30 |
-
'parent_slug' => 'ssp_main_setting',
|
31 |
-
'page_title' => 'OGP設定',
|
32 |
-
'menu_title' => 'OGP設定',
|
33 |
-
'capability' => 'administrator',
|
34 |
-
'menu_slug' => 'ssp_ogp_setting',
|
35 |
-
'function' => ['SSP_Menu','ssp_ogp_menu']
|
36 |
-
];
|
37 |
|
38 |
/**
|
39 |
* サブメニュー「HELP」の設定
|
@@ -48,29 +89,6 @@ class SSP_Menu {
|
|
48 |
];
|
49 |
|
50 |
|
51 |
-
/**
|
52 |
-
* トップメニューに表示するタブコンテンツ
|
53 |
-
*/
|
54 |
-
const TOP_MENU_TABS = [
|
55 |
-
'basic' => '基本設定',
|
56 |
-
'post_type' => '投稿ページ',
|
57 |
-
'taxonomy' => 'タクソノミーアーカイブ',
|
58 |
-
'archive' => 'その他アーカイブ',
|
59 |
-
'analytics' => 'Google アナリティクス',
|
60 |
-
'webmaster' => 'ウェブマスターツール'
|
61 |
-
];
|
62 |
-
|
63 |
-
|
64 |
-
/**
|
65 |
-
* OGPメニューに表示するタブコンテンツ
|
66 |
-
*/
|
67 |
-
const OGP_MENU_TABS = [
|
68 |
-
'ogp' => '基本設定',
|
69 |
-
'facebook' => 'Facebook',
|
70 |
-
'twitter' => 'Twitter',
|
71 |
-
];
|
72 |
-
|
73 |
-
|
74 |
/**
|
75 |
* メニューの追加
|
76 |
*/
|
@@ -90,7 +108,7 @@ class SSP_Menu {
|
|
90 |
add_submenu_page(
|
91 |
self::TOP_MENU['menu_slug'],
|
92 |
self::TOP_MENU['menu_title'],
|
93 |
-
'
|
94 |
'administrator', //権限
|
95 |
self::TOP_MENU['menu_slug'],
|
96 |
self::TOP_MENU['function'] //親と同じ関数を呼び出す
|
@@ -98,12 +116,12 @@ class SSP_Menu {
|
|
98 |
|
99 |
//サブメニュー SNS
|
100 |
add_submenu_page(
|
101 |
-
self
|
102 |
-
self
|
103 |
-
self
|
104 |
-
self
|
105 |
-
self
|
106 |
-
self
|
107 |
);
|
108 |
|
109 |
//サブメニュー HELP
|
1 |
<?php
|
2 |
|
3 |
+
|
4 |
+
|
5 |
class SSP_Menu {
|
6 |
|
7 |
+
|
8 |
+
/**
|
9 |
+
* サブメニュー「OGP設定」
|
10 |
+
*/
|
11 |
+
private static $OGP_MENU;
|
12 |
+
|
13 |
+
/**
|
14 |
+
* トップメニューに表示するタブコンテンツ
|
15 |
+
*/
|
16 |
+
private static $TOP_MENU_TABS;
|
17 |
+
|
18 |
+
|
19 |
+
/**
|
20 |
+
* OGPメニューに表示するタブコンテンツ
|
21 |
+
*/
|
22 |
+
private static $OGP_MENU_TABS;
|
23 |
+
|
24 |
+
|
25 |
/**
|
26 |
* 外部からのインスタンス化を防ぐ
|
27 |
*/
|
28 |
private function __construct() {}
|
29 |
|
30 |
|
31 |
+
/**
|
32 |
+
* init
|
33 |
+
*/
|
34 |
+
public static function init() {
|
35 |
+
|
36 |
+
self::$OGP_MENU = [
|
37 |
+
'parent_slug' => 'ssp_main_setting',
|
38 |
+
'page_title' => __('OGP settings', LOOS_SSP_DOMAIN ), //'OGP設定',
|
39 |
+
'menu_title' => __('OGP settings', LOOS_SSP_DOMAIN ), //'OGP設定',
|
40 |
+
'capability' => 'administrator',
|
41 |
+
'menu_slug' => 'ssp_ogp_setting',
|
42 |
+
'function' => ['SSP_Menu','ssp_ogp_menu']
|
43 |
+
];
|
44 |
+
|
45 |
+
self::$TOP_MENU_TABS = [
|
46 |
+
'basic' => __('Basic setting', LOOS_SSP_DOMAIN ), // 基本設定
|
47 |
+
'post_type' => __('Post page', LOOS_SSP_DOMAIN ), // 投稿ページ
|
48 |
+
'taxonomy' => __('Taxonomy archive', LOOS_SSP_DOMAIN ), // タクソノミーアーカイブ
|
49 |
+
'archive' => __('Other archives', LOOS_SSP_DOMAIN ), // その他アーカイブ
|
50 |
+
'analytics' => __('Google Analytics', LOOS_SSP_DOMAIN ), // Googleアナリティクス
|
51 |
+
'webmaster' => __('Webmaster tools', LOOS_SSP_DOMAIN ), // ウェブマスターツール
|
52 |
+
];
|
53 |
+
|
54 |
+
self::$OGP_MENU_TABS = [
|
55 |
+
'ogp' => __('Basic setting', LOOS_SSP_DOMAIN ), //基本設定
|
56 |
+
'facebook' => 'Facebook',
|
57 |
+
'twitter' => 'Twitter',
|
58 |
+
];
|
59 |
+
}
|
60 |
+
|
61 |
+
|
62 |
/**
|
63 |
* トップレベルメニューの設定
|
64 |
*/
|
65 |
const TOP_MENU = [
|
66 |
+
'page_title' => 'SEO PACK', //ページのタイトルタグに表示されるテキスト
|
67 |
+
'menu_title' => 'SEO PACK', //メニュータイトル
|
68 |
+
'capability' => 'manage_options', //必要な権限
|
69 |
+
'menu_slug' => 'ssp_main_setting', //このメニューを参照するスラッグ名
|
70 |
+
'function' => ['SSP_Menu','ssp_top_menu'], //呼び出す関数名
|
71 |
//'icon_url' => SSP_URL.'/assets/img/noimg.gif', //アイコンURL
|
72 |
+
'icon_url' => 'dashicons-list-view', //アイコンURL
|
73 |
+
'position' => 81 //管理画面での表示位置
|
74 |
];
|
75 |
|
76 |
|
77 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
78 |
|
79 |
/**
|
80 |
* サブメニュー「HELP」の設定
|
89 |
];
|
90 |
|
91 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
92 |
/**
|
93 |
* メニューの追加
|
94 |
*/
|
108 |
add_submenu_page(
|
109 |
self::TOP_MENU['menu_slug'],
|
110 |
self::TOP_MENU['menu_title'],
|
111 |
+
__('General settings', LOOS_SSP_DOMAIN ), //サブ側の名前
|
112 |
'administrator', //権限
|
113 |
self::TOP_MENU['menu_slug'],
|
114 |
self::TOP_MENU['function'] //親と同じ関数を呼び出す
|
116 |
|
117 |
//サブメニュー SNS
|
118 |
add_submenu_page(
|
119 |
+
self::$OGP_MENU['parent_slug'],
|
120 |
+
self::$OGP_MENU['page_title'],
|
121 |
+
self::$OGP_MENU['menu_title'],
|
122 |
+
self::$OGP_MENU['capability'],
|
123 |
+
self::$OGP_MENU['menu_slug'],
|
124 |
+
self::$OGP_MENU['function']
|
125 |
);
|
126 |
|
127 |
//サブメニュー HELP
|
inc/page_ogp.php
CHANGED
@@ -16,7 +16,7 @@
|
|
16 |
|
17 |
}
|
18 |
|
19 |
-
$ssp_tab = SSP_Menu
|
20 |
?>
|
21 |
<div id="ssp_wrap" class="wrapp">
|
22 |
|
16 |
|
17 |
}
|
18 |
|
19 |
+
$ssp_tab = SSP_Menu::$OGP_MENU_TABS;
|
20 |
?>
|
21 |
<div id="ssp_wrap" class="wrapp">
|
22 |
|
inc/page_top.php
CHANGED
@@ -16,7 +16,7 @@
|
|
16 |
|
17 |
}
|
18 |
|
19 |
-
$ssp_tab = SSP_Menu
|
20 |
?>
|
21 |
<div id="ssp_wrap" class="wrapp">
|
22 |
|
16 |
|
17 |
}
|
18 |
|
19 |
+
$ssp_tab = SSP_Menu::$TOP_MENU_TABS;
|
20 |
?>
|
21 |
<div id="ssp_wrap" class="wrapp">
|
22 |
|
languages/loos-ssp-ja.mo
ADDED
Binary file
|
languages/loos-ssp-ja.po
ADDED
@@ -0,0 +1,78 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: SEO SIMPLE PACK\n"
|
4 |
+
"POT-Creation-Date: 2019-12-22 17:26+0900\n"
|
5 |
+
"PO-Revision-Date: 2019-12-22 17:28+0900\n"
|
6 |
+
"Last-Translator: \n"
|
7 |
+
"Language-Team: \n"
|
8 |
+
"Language: ja\n"
|
9 |
+
"MIME-Version: 1.0\n"
|
10 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
+
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"X-Generator: Poedit 2.2.4\n"
|
13 |
+
"X-Poedit-Basepath: ..\n"
|
14 |
+
"Plural-Forms: nplurals=1; plural=0;\n"
|
15 |
+
"X-Poedit-Flags-xgettext: --add-comments=translators:\n"
|
16 |
+
"X-Poedit-WPHeader: seo-simple-pack.php\n"
|
17 |
+
"X-Poedit-SourceCharset: UTF-8\n"
|
18 |
+
"X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;"
|
19 |
+
"esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;"
|
20 |
+
"_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
|
21 |
+
"X-Poedit-SearchPath-0: .\n"
|
22 |
+
"X-Poedit-SearchPathExcluded-0: *.min.js\n"
|
23 |
+
|
24 |
+
#: class/ssp_menu.php:38 class/ssp_menu.php:39
|
25 |
+
msgid "OGP settings"
|
26 |
+
msgstr "OGP設定"
|
27 |
+
|
28 |
+
#: class/ssp_menu.php:46 class/ssp_menu.php:55
|
29 |
+
msgid "Basic setting"
|
30 |
+
msgstr "基本設定"
|
31 |
+
|
32 |
+
#: class/ssp_menu.php:47
|
33 |
+
msgid "Post page"
|
34 |
+
msgstr "投稿ページ"
|
35 |
+
|
36 |
+
#: class/ssp_menu.php:48
|
37 |
+
msgid "Taxonomy archive"
|
38 |
+
msgstr "タクソノミーアーカイブ"
|
39 |
+
|
40 |
+
#: class/ssp_menu.php:49
|
41 |
+
msgid "Other archives"
|
42 |
+
msgstr "その他アーカイブ"
|
43 |
+
|
44 |
+
#: class/ssp_menu.php:50
|
45 |
+
msgid "Google Analytics"
|
46 |
+
msgstr "Googleアナリティクス"
|
47 |
+
|
48 |
+
#: class/ssp_menu.php:51
|
49 |
+
msgid "Webmaster tools"
|
50 |
+
msgstr "ウェブマスターツール"
|
51 |
+
|
52 |
+
#: class/ssp_menu.php:111
|
53 |
+
msgid "General settings"
|
54 |
+
msgstr "一般設定"
|
55 |
+
|
56 |
+
#. Plugin Name of the plugin/theme
|
57 |
+
msgid "SEO SIMPLE PACK"
|
58 |
+
msgstr "SEO SIMPLE PACK"
|
59 |
+
|
60 |
+
#. Plugin URI of the plugin/theme
|
61 |
+
msgid "https://wemo.tech/1670"
|
62 |
+
msgstr "SEO SIMPLE PACK"
|
63 |
+
|
64 |
+
#. Description of the plugin/theme
|
65 |
+
msgid ""
|
66 |
+
"A simple SEO plugin. Meta tags and OGP tags can be easily set and customized "
|
67 |
+
"for each page type and post."
|
68 |
+
msgstr ""
|
69 |
+
"シンプルなSEOプラグイン。ページ種別・投稿ごとにmetaタグやOGPタグを簡単に設"
|
70 |
+
"定・カスタマイズできます。"
|
71 |
+
|
72 |
+
#. Author of the plugin/theme
|
73 |
+
msgid "LOOS WEB STUDIO"
|
74 |
+
msgstr "LOOS WEB STUDIO"
|
75 |
+
|
76 |
+
#. Author URI of the plugin/theme
|
77 |
+
msgid "https://loos-web-studio.com/"
|
78 |
+
msgstr "https://loos-web-studio.com/"
|
readme.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
=== SEO SIMPLE PACK ===
|
2 |
Contributors: looswebstudio
|
3 |
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: 5.
|
7 |
-
Stable tag: 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,6 +109,9 @@ wp_head内( `_wp_render_title_tag` )で出力される`title`タグは削除す
|
|
109 |
|
110 |
== Changelog ==
|
111 |
|
|
|
|
|
|
|
112 |
= 1.2.3 =
|
113 |
- 著者アーカイブのメタタグが管理者の名前で表示されてしまう不具合を修正
|
114 |
- カスタム投稿・タクソノミーのベース設定が変更できない不具合を修正
|
1 |
=== SEO SIMPLE PACK ===
|
2 |
Contributors: looswebstudio
|
3 |
Donate link: https://loos-web-studio.com/
|
4 |
+
Tags: SEO, meta, analytics, webmaster, simple, japan, meta tag
|
5 |
Requires at least: 4.6
|
6 |
+
Tested up to: 5.3.2
|
7 |
+
Stable tag: 1.2.4
|
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.2.4 =
|
113 |
+
Update to support WordPress 5.3.
|
114 |
+
|
115 |
= 1.2.3 =
|
116 |
- 著者アーカイブのメタタグが管理者の名前で表示されてしまう不具合を修正
|
117 |
- カスタム投稿・タクソノミーのベース設定が変更できない不具合を修正
|
seo-simple-pack.php
CHANGED
@@ -1,39 +1,17 @@
|
|
1 |
<?php
|
2 |
-
/*
|
3 |
-
Plugin Name: SEO SIMPLE PACK
|
4 |
-
Plugin URI: https://wemo.tech/1670
|
5 |
-
Description: シンプルなSEOプラグイン。ページ種別・投稿ごとにmetaタグやOGPタグを簡単に設定・カスタマイズできます。
|
6 |
-
Version: 1.2.3
|
7 |
-
Author: LOOS WEB STUDIO
|
8 |
-
Author URI: https://loos-web-studio.com/
|
9 |
-
License: GPL2
|
10 |
-
|
11 |
-
/* Copyright 2018 LOOS WEB STUDIO (email : info@loos-web-studio.com)
|
12 |
-
|
13 |
-
This program is free software; you can redistribute it and/or modify
|
14 |
-
it under the terms of the GNU General Public License, version 2, as
|
15 |
-
published by the Free Software Foundation.
|
16 |
-
|
17 |
-
This program is distributed in the hope that it will be useful,
|
18 |
-
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
19 |
-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
20 |
-
GNU General Public License for more details.
|
21 |
-
|
22 |
-
You should have received a copy of the GNU General Public License
|
23 |
-
along with this program; if not, write to the Free Software
|
24 |
-
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
25 |
-
*/
|
26 |
-
|
27 |
-
|
28 |
/**
|
29 |
-
*
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
|
|
|
|
|
|
36 |
|
|
|
37 |
|
38 |
/**
|
39 |
* PHPバージョン5.6以上のみ使用可能の警告
|
@@ -56,7 +34,7 @@ if ( (double) $phpver < 5.6 ) {
|
|
56 |
* 定数宣言
|
57 |
*/
|
58 |
if ( ! defined( 'SSP_VERSION' ) ) {
|
59 |
-
define( 'SSP_VERSION', '1.2.
|
60 |
}
|
61 |
if ( ! defined( 'SSP_FILE' ) ) {
|
62 |
define( 'SSP_FILE', __FILE__ );
|
@@ -72,6 +50,20 @@ if ( ! defined( 'SSP_URL' ) ) {
|
|
72 |
}
|
73 |
|
74 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
75 |
/**
|
76 |
* CLASSファイルの読み込み
|
77 |
*/
|
1 |
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
/**
|
3 |
+
* Plugin Name: SEO SIMPLE PACK
|
4 |
+
* Plugin URI: https://wemo.tech/1670
|
5 |
+
* Description: A simple SEO plugin. Meta tags and OGP tags can be easily set and customized for each page type and post.
|
6 |
+
* Version: 1.2.4
|
7 |
+
* Author: LOOS WEB STUDIO
|
8 |
+
* Author URI: https://loos-web-studio.com/
|
9 |
+
* License: GPL2 or later
|
10 |
+
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
11 |
+
* Text Domain: loos-ssp
|
12 |
+
*/
|
13 |
|
14 |
+
if ( !defined( 'ABSPATH' ) ) exit;
|
15 |
|
16 |
/**
|
17 |
* PHPバージョン5.6以上のみ使用可能の警告
|
34 |
* 定数宣言
|
35 |
*/
|
36 |
if ( ! defined( 'SSP_VERSION' ) ) {
|
37 |
+
define( 'SSP_VERSION', '1.2.4' );
|
38 |
}
|
39 |
if ( ! defined( 'SSP_FILE' ) ) {
|
40 |
define( 'SSP_FILE', __FILE__ );
|
50 |
}
|
51 |
|
52 |
|
53 |
+
/**
|
54 |
+
* 翻訳用のテキストドメインを定義
|
55 |
+
*/
|
56 |
+
if ( ! defined( 'LOOS_SSP_DOMAIN' ) ) {
|
57 |
+
define( 'LOOS_SSP_DOMAIN', 'loos-ssp' );
|
58 |
+
}
|
59 |
+
|
60 |
+
|
61 |
+
/**
|
62 |
+
* 翻訳ファイルを登録
|
63 |
+
*/
|
64 |
+
load_plugin_textdomain( LOOS_SSP_DOMAIN, false, basename( SSP_PATH ) .'/languages' );
|
65 |
+
|
66 |
+
|
67 |
/**
|
68 |
* CLASSファイルの読み込み
|
69 |
*/
|