Version Description
- Fixed some code.
- Added a little English translation.
Download this release
Release Info
Developer | looswebstudio |
Plugin | SEO SIMPLE PACK |
Version | 1.2.8 |
Comparing to | |
See all releases |
Code changes from version 1.2.7 to 1.2.8
- assets/css/ssp.css +8 -8
- assets/js/ssp.js +43 -24
- assets/js/ssp_common.js +2 -2
- class/ssp_init.php +3 -0
- class/ssp_menu.php +1 -1
- class/ssp_methods.php +26 -20
- inc/page_help.php +28 -22
- inc/page_ogp.php +10 -10
- inc/page_top.php +10 -10
- inc/parts/tab_basic.php +16 -13
- languages/loos-ssp-ja.mo +0 -0
- languages/loos-ssp-ja.po +133 -7
- readme.txt +6 -2
- seo-simple-pack.php +7 -6
assets/css/ssp.css
CHANGED
@@ -304,7 +304,7 @@ tr[data-disable="1"] + tr + tr + tr{
|
|
304 |
|
305 |
|
306 |
/* The switch - the box around the slider */
|
307 |
-
.
|
308 |
position: relative;
|
309 |
display: inline-block;
|
310 |
width: 64px;
|
@@ -313,10 +313,10 @@ tr[data-disable="1"] + tr + tr + tr{
|
|
313 |
}
|
314 |
|
315 |
/* Hide default HTML checkbox */
|
316 |
-
.
|
317 |
|
318 |
/* The slider */
|
319 |
-
.
|
320 |
position: absolute;
|
321 |
cursor: pointer;
|
322 |
top: 0;
|
@@ -328,7 +328,7 @@ tr[data-disable="1"] + tr + tr + tr{
|
|
328 |
transition: .4s;
|
329 |
}
|
330 |
|
331 |
-
.
|
332 |
position: absolute;
|
333 |
content: "";
|
334 |
height: 20px;
|
@@ -340,20 +340,20 @@ tr[data-disable="1"] + tr + tr + tr{
|
|
340 |
transition: .4s;
|
341 |
}
|
342 |
|
343 |
-
input:checked + .
|
344 |
background-color: #2196F3;
|
345 |
}
|
346 |
|
347 |
-
input:checked + .
|
348 |
right: 40px;
|
349 |
}
|
350 |
|
351 |
/* Rounded sliders */
|
352 |
-
.
|
353 |
border-radius: 34px;
|
354 |
}
|
355 |
|
356 |
-
.
|
357 |
border-radius: 50%;
|
358 |
}
|
359 |
|
304 |
|
305 |
|
306 |
/* The switch - the box around the slider */
|
307 |
+
.ssp_switch_box {
|
308 |
position: relative;
|
309 |
display: inline-block;
|
310 |
width: 64px;
|
313 |
}
|
314 |
|
315 |
/* Hide default HTML checkbox */
|
316 |
+
.ssp_switch_box input {display:none;}
|
317 |
|
318 |
/* The slider */
|
319 |
+
.ssp_switch_box__slider {
|
320 |
position: absolute;
|
321 |
cursor: pointer;
|
322 |
top: 0;
|
328 |
transition: .4s;
|
329 |
}
|
330 |
|
331 |
+
.ssp_switch_box__slider:before {
|
332 |
position: absolute;
|
333 |
content: "";
|
334 |
height: 20px;
|
340 |
transition: .4s;
|
341 |
}
|
342 |
|
343 |
+
input:checked + .ssp_switch_box__slider {
|
344 |
background-color: #2196F3;
|
345 |
}
|
346 |
|
347 |
+
input:checked + .ssp_switch_box__slider:before {
|
348 |
right: 40px;
|
349 |
}
|
350 |
|
351 |
/* Rounded sliders */
|
352 |
+
.ssp_switch_box__slider.-round {
|
353 |
border-radius: 34px;
|
354 |
}
|
355 |
|
356 |
+
.ssp_switch_box__slider.-round:before {
|
357 |
border-radius: 50%;
|
358 |
}
|
359 |
|
assets/js/ssp.js
CHANGED
@@ -3,32 +3,51 @@
|
|
3 |
*/
|
4 |
addEventListener('DOMContentLoaded', function () {
|
5 |
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
document.
|
12 |
-
document.
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
document.querySelector('.tab-contents.act_').classList.remove('act_');
|
27 |
-
tabC[i].classList.add('act_');
|
28 |
}
|
29 |
-
}
|
30 |
|
31 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
32 |
});
|
33 |
|
34 |
/**
|
3 |
*/
|
4 |
addEventListener('DOMContentLoaded', function () {
|
5 |
|
6 |
+
// 設定タブの切替処理
|
7 |
+
(function () {
|
8 |
+
// ページ上部へ
|
9 |
+
window.scrollTo(0, 0);
|
10 |
+
|
11 |
+
const tabNavs = document.querySelectorAll('.nav-tab');
|
12 |
+
const tabContents = document.querySelectorAll('.tab-contents');
|
13 |
+
|
14 |
+
if (location.hash) {
|
15 |
+
const hashTarget = document.querySelector(location.hash);
|
16 |
+
const hashTab = document.querySelector(
|
17 |
+
'[href="' + location.hash + '"]'
|
18 |
+
);
|
19 |
+
const actTabNav = document.querySelector('.nav-tab.act_');
|
20 |
+
const actTabContent = document.querySelector('.tab-contents.act_');
|
21 |
+
if (hashTarget && hashTab && actTabNav && actTabContent) {
|
22 |
+
actTabNav.classList.remove('act_');
|
23 |
+
actTabContent.classList.remove('act_');
|
24 |
+
hashTarget.classList.add('act_');
|
25 |
+
hashTab.classList.add('act_');
|
|
|
|
|
26 |
}
|
27 |
+
}
|
28 |
|
29 |
+
for (let i = 0; i < tabNavs.length; i++) {
|
30 |
+
tabNavs[i].addEventListener('click', function (e) {
|
31 |
+
e.preventDefault();
|
32 |
+
const targetHash = e.target.getAttribute('href');
|
33 |
+
|
34 |
+
// History APIでURLを書き換える( location.hash でやると 移動してしまう)
|
35 |
+
history.replaceState(null, null, targetHash);
|
36 |
+
|
37 |
+
if (!tabNavs[i].classList.contains('act_')) {
|
38 |
+
document
|
39 |
+
.querySelector('.nav-tab.act_')
|
40 |
+
.classList.remove('act_');
|
41 |
+
tabNavs[i].classList.add('act_');
|
42 |
+
|
43 |
+
document
|
44 |
+
.querySelector('.tab-contents.act_')
|
45 |
+
.classList.remove('act_');
|
46 |
+
tabContents[i].classList.add('act_');
|
47 |
+
}
|
48 |
+
});
|
49 |
+
}
|
50 |
+
})();
|
51 |
});
|
52 |
|
53 |
/**
|
assets/js/ssp_common.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
(function ($) {
|
2 |
//noindex switch
|
3 |
-
$switchBox = $('.
|
4 |
$switchBox.click(function (e){
|
5 |
var labelFor = $(this).attr('for');
|
6 |
var p = $(this).closest('tr');
|
@@ -13,4 +13,4 @@
|
|
13 |
}
|
14 |
}, 10);
|
15 |
});
|
16 |
-
})(jQuery);
|
1 |
(function ($) {
|
2 |
//noindex switch
|
3 |
+
$switchBox = $('.ssp_switch_box');
|
4 |
$switchBox.click(function (e){
|
5 |
var labelFor = $(this).attr('for');
|
6 |
var p = $(this).closest('tr');
|
13 |
}
|
14 |
}, 10);
|
15 |
});
|
16 |
+
})(window.jQuery);
|
class/ssp_init.php
CHANGED
@@ -50,6 +50,9 @@ class SSP_Init {
|
|
50 |
//titleタグの除去
|
51 |
remove_action('wp_head', '_wp_render_title_tag', 1);
|
52 |
|
|
|
|
|
|
|
53 |
}
|
54 |
|
55 |
/**
|
50 |
//titleタグの除去
|
51 |
remove_action('wp_head', '_wp_render_title_tag', 1);
|
52 |
|
53 |
+
// canonicalの削除
|
54 |
+
remove_action('wp_head', 'rel_canonical');
|
55 |
+
|
56 |
}
|
57 |
|
58 |
/**
|
class/ssp_menu.php
CHANGED
@@ -68,7 +68,7 @@ class SSP_Menu {
|
|
68 |
'capability' => 'manage_options', //必要な権限
|
69 |
'menu_slug' => 'ssp_main_setting', //このメニューを参照するスラッグ名
|
70 |
'function' => ['SSP_Menu','ssp_top_menu'], //呼び出す関数名
|
71 |
-
//'icon_url' => SSP_URL.'
|
72 |
'icon_url' => 'dashicons-list-view', //アイコンURL
|
73 |
'position' => 81 //管理画面での表示位置
|
74 |
];
|
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 |
];
|
class/ssp_methods.php
CHANGED
@@ -105,34 +105,40 @@ class SSP_Methods {
|
|
105 |
/**
|
106 |
* CSS Scriptの読み込み
|
107 |
*/
|
108 |
-
public static function include_files( $
|
109 |
|
110 |
-
|
|
|
|
|
|
|
111 |
|
112 |
wp_enqueue_media();
|
113 |
wp_enqueue_script(
|
114 |
'ssp-script',
|
115 |
plugins_url( 'assets/js/ssp.js', SSP_FILE ),
|
116 |
-
array(),
|
117 |
SSP_VERSION,
|
118 |
true
|
119 |
);
|
120 |
|
121 |
}
|
122 |
-
wp_enqueue_script(
|
123 |
-
'ssp-common-script',
|
124 |
-
plugins_url( 'assets/js/ssp_common.js', SSP_FILE ),
|
125 |
-
array(),
|
126 |
-
SSP_VERSION,
|
127 |
-
true
|
128 |
-
);
|
129 |
-
wp_enqueue_style(
|
130 |
-
'ssp-css',
|
131 |
-
plugins_url( "assets/css/ssp.css", SSP_FILE ),
|
132 |
-
array(),
|
133 |
-
SSP_VERSION
|
134 |
-
);
|
135 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
136 |
}
|
137 |
|
138 |
|
@@ -302,12 +308,12 @@ class SSP_Methods {
|
|
302 |
$data_disable = 'data-disable="'.(int) $db[$key].'"';
|
303 |
}
|
304 |
|
305 |
-
$form_item = '<span>はい</span><label class="
|
306 |
|
307 |
$form_item .= $db[ $key ]
|
308 |
? '<input type="checkbox" name="" id="'.$key.'" checked>'
|
309 |
: '<input type="checkbox" name="" id="'.$key.'">';
|
310 |
-
$form_item .= '<span class="
|
311 |
$form_item .= '<input type="hidden" name="'.$key.'" value="'.esc_attr( $db[$key] ).'">';
|
312 |
|
313 |
} else {
|
@@ -336,9 +342,9 @@ class SSP_Methods {
|
|
336 |
<p>', $row['desc'], '</p>',
|
337 |
'</div>',
|
338 |
$row['prev'] ?
|
339 |
-
'<div class="ssp_prev">┗
|
340 |
SSP_Methods::replace_snippets_forpv( esc_html( $db[ $key ] ) ).
|
341 |
-
'</p><a href="'.admin_url().'admin.php?page=ssp_help" target="_blank" title="使用可能なスニペットタグについて" class="ssp_help">?</a></div>'
|
342 |
: "",
|
343 |
'</div>',
|
344 |
'</td>',
|
105 |
/**
|
106 |
* CSS Scriptの読み込み
|
107 |
*/
|
108 |
+
public static function include_files( $hook_suffix ) {
|
109 |
|
110 |
+
$is_editor_page = 'post.php' === $hook_suffix || 'post-new.php' === $hook_suffix;
|
111 |
+
$is_ssp_page = false !== strpos( $hook_suffix, 'ssp_' );
|
112 |
+
|
113 |
+
if ( $is_ssp_page ) {
|
114 |
|
115 |
wp_enqueue_media();
|
116 |
wp_enqueue_script(
|
117 |
'ssp-script',
|
118 |
plugins_url( 'assets/js/ssp.js', SSP_FILE ),
|
119 |
+
array('jquery'),
|
120 |
SSP_VERSION,
|
121 |
true
|
122 |
);
|
123 |
|
124 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
125 |
|
126 |
+
// 設定ページだけでなく編集画面でも読み込みたい
|
127 |
+
if ( $is_editor_page || $is_ssp_page ) {
|
128 |
+
wp_enqueue_script(
|
129 |
+
'ssp-common-script',
|
130 |
+
plugins_url( 'assets/js/ssp_common.js', SSP_FILE ),
|
131 |
+
array('jquery'),
|
132 |
+
SSP_VERSION,
|
133 |
+
true
|
134 |
+
);
|
135 |
+
wp_enqueue_style(
|
136 |
+
'ssp-css',
|
137 |
+
plugins_url( "assets/css/ssp.css", SSP_FILE ),
|
138 |
+
array(),
|
139 |
+
SSP_VERSION
|
140 |
+
);
|
141 |
+
}
|
142 |
}
|
143 |
|
144 |
|
308 |
$data_disable = 'data-disable="'.(int) $db[$key].'"';
|
309 |
}
|
310 |
|
311 |
+
$form_item = '<span>はい</span><label class="ssp_switch_box" for="'.$key.'">';
|
312 |
|
313 |
$form_item .= $db[ $key ]
|
314 |
? '<input type="checkbox" name="" id="'.$key.'" checked>'
|
315 |
: '<input type="checkbox" name="" id="'.$key.'">';
|
316 |
+
$form_item .= '<span class="ssp_switch_box__slider -round"></span></label><span>いいえ</span>';
|
317 |
$form_item .= '<input type="hidden" name="'.$key.'" value="'.esc_attr( $db[$key] ).'">';
|
318 |
|
319 |
} else {
|
342 |
<p>', $row['desc'], '</p>',
|
343 |
'</div>',
|
344 |
$row['prev'] ?
|
345 |
+
'<div class="ssp_prev">┗ '. __( 'Preview', LOOS_SSP_DOMAIN ) .' : <p>'.
|
346 |
SSP_Methods::replace_snippets_forpv( esc_html( $db[ $key ] ) ).
|
347 |
+
'</p><a href="' . admin_url() . 'admin.php?page=ssp_help" target="_blank" title="使用可能なスニペットタグについて" class="ssp_help">?</a></div>'
|
348 |
: "",
|
349 |
'</div>',
|
350 |
'</td>',
|
inc/page_help.php
CHANGED
@@ -1,51 +1,57 @@
|
|
1 |
<div id="ssp_wrap" class="wrapp">
|
2 |
-
<h1 id="ssp_title"
|
3 |
|
4 |
<div id="poststuff">
|
5 |
<div class="ssp_help_page">
|
6 |
-
|
|
|
7 |
<?php
|
8 |
$tags = [
|
9 |
-
'site_title' => '
|
10 |
-
'phrase' => '
|
11 |
-
'description' => '
|
12 |
-
'page_title' =>
|
13 |
-
'cat_name' => '
|
14 |
-
'tag_name' => '
|
15 |
-
'term_name' => '
|
16 |
-
'term_description' => '
|
17 |
-
'tax_name' => '
|
18 |
-
'post_type' => '
|
19 |
-
'page_contents' => '
|
20 |
-
'date' => '
|
21 |
-
'author_name' =>
|
22 |
-
'search_phrase' => '
|
23 |
-
'format_name' => '
|
24 |
-
'sep' => '
|
25 |
];
|
26 |
?>
|
27 |
<table class="ssp_help_table">
|
28 |
<thead>
|
29 |
<tr>
|
30 |
<th>
|
31 |
-
|
32 |
</th>
|
33 |
<th>
|
34 |
-
|
35 |
</th>
|
36 |
</tr>
|
37 |
</thead>
|
38 |
<tbody>
|
39 |
<?php
|
40 |
foreach ($tags as $key => $val) {
|
41 |
-
echo '<tr><th>%_'
|
42 |
}
|
43 |
?>
|
44 |
</tbody>
|
45 |
</table>
|
46 |
|
47 |
<p>
|
48 |
-
|
|
|
|
|
|
|
|
|
|
|
49 |
</p>
|
50 |
</div>
|
51 |
</div>
|
1 |
<div id="ssp_wrap" class="wrapp">
|
2 |
+
<h1 id="ssp_title"><?=__('Help page', LOOS_SSP_DOMAIN )?></h1>
|
3 |
|
4 |
<div id="poststuff">
|
5 |
<div class="ssp_help_page">
|
6 |
+
<?=__('About available "snippet tags"', LOOS_SSP_DOMAIN )?>
|
7 |
+
<br>
|
8 |
<?php
|
9 |
$tags = [
|
10 |
+
'site_title' => __( 'Site title', LOOS_SSP_DOMAIN ),
|
11 |
+
'phrase' => __( 'Site catchphrase', LOOS_SSP_DOMAIN ),
|
12 |
+
'description' => __( 'Home description', LOOS_SSP_DOMAIN ),
|
13 |
+
'page_title' => __( 'Post title', LOOS_SSP_DOMAIN ),
|
14 |
+
'cat_name' => __( 'Category name', LOOS_SSP_DOMAIN ),
|
15 |
+
'tag_name' => __( 'Tag name', LOOS_SSP_DOMAIN ),
|
16 |
+
'term_name' => __( 'Term name', LOOS_SSP_DOMAIN ),
|
17 |
+
'term_description' => __( 'Term description', LOOS_SSP_DOMAIN ),
|
18 |
+
'tax_name' => __( 'Taxonomy name', LOOS_SSP_DOMAIN ),
|
19 |
+
'post_type' => __( 'Post type name', LOOS_SSP_DOMAIN ),
|
20 |
+
'page_contents' => __( 'Page content', LOOS_SSP_DOMAIN ),
|
21 |
+
'date' => __( 'The date that is searching in the date archive', LOOS_SSP_DOMAIN ),
|
22 |
+
'author_name' => __( 'Author name', LOOS_SSP_DOMAIN ),
|
23 |
+
'search_phrase' => __( 'Search word', LOOS_SSP_DOMAIN ),
|
24 |
+
'format_name' => __( 'Post format name', LOOS_SSP_DOMAIN ),
|
25 |
+
'sep' => __( 'Delimiter', LOOS_SSP_DOMAIN ),
|
26 |
];
|
27 |
?>
|
28 |
<table class="ssp_help_table">
|
29 |
<thead>
|
30 |
<tr>
|
31 |
<th>
|
32 |
+
<?=__('Snippet tag', LOOS_SSP_DOMAIN )?>
|
33 |
</th>
|
34 |
<th>
|
35 |
+
<?=__('Contents to be expanded', LOOS_SSP_DOMAIN )?>
|
36 |
</th>
|
37 |
</tr>
|
38 |
</thead>
|
39 |
<tbody>
|
40 |
<?php
|
41 |
foreach ($tags as $key => $val) {
|
42 |
+
echo '<tr><th>%_' . $key . '_%</th><td>' . $val . '</td></tr>';
|
43 |
}
|
44 |
?>
|
45 |
</tbody>
|
46 |
</table>
|
47 |
|
48 |
<p>
|
49 |
+
<?php
|
50 |
+
echo sprintf(
|
51 |
+
__( 'See %s for more information about "SEO SIMPLE PACK".', LOOS_SSP_DOMAIN ),
|
52 |
+
'<a href="https://wemo.tech/1670" target="_blank">'. __( '"How to use the plugin"', LOOS_SSP_DOMAIN ).'</a>'
|
53 |
+
);
|
54 |
+
?>
|
55 |
</p>
|
56 |
</div>
|
57 |
</div>
|
inc/page_ogp.php
CHANGED
@@ -20,14 +20,14 @@
|
|
20 |
?>
|
21 |
<div id="ssp_wrap" class="wrapp">
|
22 |
|
23 |
-
<h1 id="ssp_title"
|
24 |
<?php
|
25 |
if ( $is_updated ) {
|
26 |
-
echo '<div id="ssp_updated" class="updated notice is-dismissible">'
|
27 |
-
'<p><strong
|
28 |
-
'<button type="button" class="notice-dismiss">'
|
29 |
-
'<span class="screen-reader-text"
|
30 |
-
'</button>'
|
31 |
'</div>';
|
32 |
}
|
33 |
?>
|
@@ -35,8 +35,8 @@
|
|
35 |
<?php
|
36 |
foreach ( $ssp_tab as $key => $val ) {
|
37 |
|
38 |
-
$nav_class = ( $val === reset( $ssp_tab ) ) ?
|
39 |
-
echo '<a href="#'
|
40 |
|
41 |
}
|
42 |
?>
|
@@ -47,7 +47,7 @@
|
|
47 |
foreach ( $ssp_tab as $key => $val ) {
|
48 |
|
49 |
$tab_class = ( $val === reset( $ssp_tab ) ) ? "tab-contents act_" : "tab-contents";
|
50 |
-
echo '<div id="'
|
51 |
|
52 |
//タブコンテンツ用ファイルの読み込み
|
53 |
if ( file_exists( SSP_PATH.'inc/parts/tab_'.$key.'.php' ) ) {
|
@@ -61,7 +61,7 @@
|
|
61 |
?>
|
62 |
<input type="hidden" name="db_name" value="<?php echo esc_attr( SSP_Data::DB_NAME['ogp'] ); ?>">
|
63 |
<?php wp_nonce_field( SSP_Data::NOUNCE_ACTION, SSP_Data::NOUNCE_NAME ); ?>
|
64 |
-
<button type="submit" class="button button-primary"
|
65 |
</form>
|
66 |
</div>
|
67 |
</div>
|
20 |
?>
|
21 |
<div id="ssp_wrap" class="wrapp">
|
22 |
|
23 |
+
<h1 id="ssp_title"><?=__('OGP settings', LOOS_SSP_DOMAIN )?></h1>
|
24 |
<?php
|
25 |
if ( $is_updated ) {
|
26 |
+
echo '<div id="ssp_updated" class="updated notice is-dismissible">'.
|
27 |
+
'<p><strong>'. __('Your settings have been saved.', LOOS_SSP_DOMAIN ) .'</strong></p>'.
|
28 |
+
'<button type="button" class="notice-dismiss">'.
|
29 |
+
'<span class="screen-reader-text">'. __('Hide this notification.', LOOS_SSP_DOMAIN ) .'</span>'.
|
30 |
+
'</button>'.
|
31 |
'</div>';
|
32 |
}
|
33 |
?>
|
35 |
<?php
|
36 |
foreach ( $ssp_tab as $key => $val ) {
|
37 |
|
38 |
+
$nav_class = ( $val === reset( $ssp_tab ) ) ? 'nav-tab act_' : 'nav-tab';
|
39 |
+
echo '<a href="#' . $key . '" class="' . $nav_class . '">' . $val . '</a>';
|
40 |
|
41 |
}
|
42 |
?>
|
47 |
foreach ( $ssp_tab as $key => $val ) {
|
48 |
|
49 |
$tab_class = ( $val === reset( $ssp_tab ) ) ? "tab-contents act_" : "tab-contents";
|
50 |
+
echo '<div id="' . $key . '" class="' . $tab_class . '">';
|
51 |
|
52 |
//タブコンテンツ用ファイルの読み込み
|
53 |
if ( file_exists( SSP_PATH.'inc/parts/tab_'.$key.'.php' ) ) {
|
61 |
?>
|
62 |
<input type="hidden" name="db_name" value="<?php echo esc_attr( SSP_Data::DB_NAME['ogp'] ); ?>">
|
63 |
<?php wp_nonce_field( SSP_Data::NOUNCE_ACTION, SSP_Data::NOUNCE_NAME ); ?>
|
64 |
+
<button type="submit" class="button button-primary"><?=__( 'Save settings', LOOS_SSP_DOMAIN )?></button>
|
65 |
</form>
|
66 |
</div>
|
67 |
</div>
|
inc/page_top.php
CHANGED
@@ -20,14 +20,14 @@
|
|
20 |
?>
|
21 |
<div id="ssp_wrap" class="wrapp">
|
22 |
|
23 |
-
<h1 id="ssp_title">SEO SIMPLE PACK
|
24 |
<?php
|
25 |
if ( $is_updated ) {
|
26 |
-
echo '<div id="ssp_updated" class="updated notice is-dismissible">'
|
27 |
-
'<p><strong
|
28 |
-
'<button type="button" class="notice-dismiss">'
|
29 |
-
'<span class="screen-reader-text"
|
30 |
-
'</button>'
|
31 |
'</div>';
|
32 |
}
|
33 |
?>
|
@@ -35,8 +35,8 @@
|
|
35 |
<?php
|
36 |
foreach ( $ssp_tab as $key => $val ) {
|
37 |
|
38 |
-
$nav_class = ( $val === reset( $ssp_tab ) ) ?
|
39 |
-
echo '<a href="#'
|
40 |
|
41 |
}
|
42 |
?>
|
@@ -47,7 +47,7 @@
|
|
47 |
foreach ( $ssp_tab as $key => $val ) {
|
48 |
|
49 |
$tab_class = ( $val === reset( $ssp_tab ) ) ? "tab-contents act_" : "tab-contents";
|
50 |
-
echo '<div id="'
|
51 |
|
52 |
//タブコンテンツ用ファイルの読み込み
|
53 |
if ( file_exists( SSP_PATH.'inc/parts/tab_'.$key.'.php' ) ) {
|
@@ -61,7 +61,7 @@
|
|
61 |
?>
|
62 |
<input type="hidden" name="db_name" value="<?php echo esc_attr( SSP_Data::DB_NAME['settings'] ); ?>">
|
63 |
<?php wp_nonce_field( SSP_Data::NOUNCE_ACTION, SSP_Data::NOUNCE_NAME ); ?>
|
64 |
-
<button type="submit" class="button button-primary"
|
65 |
</form>
|
66 |
</div>
|
67 |
</div>
|
20 |
?>
|
21 |
<div id="ssp_wrap" class="wrapp">
|
22 |
|
23 |
+
<h1 id="ssp_title">SEO SIMPLE PACK <?=__('General settings', LOOS_SSP_DOMAIN )?></h1>
|
24 |
<?php
|
25 |
if ( $is_updated ) {
|
26 |
+
echo '<div id="ssp_updated" class="updated notice is-dismissible">'.
|
27 |
+
'<p><strong>'. __('Your settings have been saved.'. LOOS_SSP_DOMAIN ) .'</strong></p>'.
|
28 |
+
'<button type="button" class="notice-dismiss">'.
|
29 |
+
'<span class="screen-reader-text">'. __('Hide this notification.', LOOS_SSP_DOMAIN ) .'</span>'.
|
30 |
+
'</button>'.
|
31 |
'</div>';
|
32 |
}
|
33 |
?>
|
35 |
<?php
|
36 |
foreach ( $ssp_tab as $key => $val ) {
|
37 |
|
38 |
+
$nav_class = ( $val === reset( $ssp_tab ) ) ? 'nav-tab act_' : 'nav-tab';
|
39 |
+
echo '<a href="#' . $key . '" class="' . $nav_class . '">' . $val . '</a>';
|
40 |
|
41 |
}
|
42 |
?>
|
47 |
foreach ( $ssp_tab as $key => $val ) {
|
48 |
|
49 |
$tab_class = ( $val === reset( $ssp_tab ) ) ? "tab-contents act_" : "tab-contents";
|
50 |
+
echo '<div id="' . $key . '" class="' . $tab_class . '">';
|
51 |
|
52 |
//タブコンテンツ用ファイルの読み込み
|
53 |
if ( file_exists( SSP_PATH.'inc/parts/tab_'.$key.'.php' ) ) {
|
61 |
?>
|
62 |
<input type="hidden" name="db_name" value="<?php echo esc_attr( SSP_Data::DB_NAME['settings'] ); ?>">
|
63 |
<?php wp_nonce_field( SSP_Data::NOUNCE_ACTION, SSP_Data::NOUNCE_NAME ); ?>
|
64 |
+
<button type="submit" class="button button-primary"><?=__( 'Save settings', LOOS_SSP_DOMAIN )?></button>
|
65 |
</form>
|
66 |
</div>
|
67 |
</div>
|
inc/parts/tab_basic.php
CHANGED
@@ -1,40 +1,43 @@
|
|
1 |
<div class="postbox">
|
2 |
<h2 class="hndle">
|
3 |
-
<span
|
4 |
</h2>
|
5 |
<div class="inside">
|
6 |
<table class="form-table">
|
7 |
<tbody>
|
8 |
<?php $table_rows = [
|
9 |
'site_title' => [
|
10 |
-
'title'=>'
|
11 |
'reqired' => false,
|
12 |
'class' => '',
|
13 |
'is_checkbox' => false,
|
14 |
'item' => '<input type="text" name="" value="'.esc_attr( SSP_Data::$site_title ).'" disabled>',
|
15 |
'prev' => false,
|
16 |
-
'desc' => '「<a href="'.admin_url().'options-general.php" target="_blanc">一般設定</a>」 -> 「サイトのタイトル」の値です。<br><code>%_site_title_%</code> として扱われます。',
|
17 |
],
|
18 |
'site_catch_phrase' => [
|
19 |
-
'title'=>'
|
20 |
'reqired' => false,
|
21 |
'class' => '',
|
22 |
'is_checkbox' => false,
|
23 |
-
'item' => '<input type="text" name="" value="'.esc_attr( SSP_Data::$site_catch_phrase ).'" disabled>',
|
24 |
'prev' => false,
|
25 |
-
'desc' => '「<a href="'.admin_url().'options-general.php" target="_blanc">一般設定</a>」 -> 「キャッチフレーズ」の値です。<br><code>%_phrase_%</code> として扱われます。',
|
26 |
],
|
27 |
'home_title' => [
|
28 |
-
'title'=>'
|
29 |
'reqired' => false,
|
30 |
'class' => '',
|
31 |
'is_checkbox' => false,
|
32 |
'item' => '',
|
33 |
'prev' => true,
|
34 |
-
'desc' =>
|
|
|
|
|
|
|
35 |
],
|
36 |
'separator' => [
|
37 |
-
'title'=>'
|
38 |
'reqired' => false,
|
39 |
'class' => 'sep',
|
40 |
'is_checkbox' => false,
|
@@ -43,7 +46,7 @@
|
|
43 |
'desc' => 'ここで選択した 区切り文字 は <code>%_sep_%</code> として扱われます。',
|
44 |
],
|
45 |
'home_desc' => [
|
46 |
-
'title'=>'
|
47 |
'reqired' => false,
|
48 |
'class' => 'textarea',
|
49 |
'is_checkbox' => false,
|
@@ -52,7 +55,7 @@
|
|
52 |
'desc' => 'ホーム の <code>meta:description</code> タグの設定です。<br>入力内容が空の場合、「キャッチフレーズ」の内容が優先されます。<br>また、ここで入力された内容は <code>%_description_%</code> として扱われます。',
|
53 |
],
|
54 |
'home_keyword' => [
|
55 |
-
'title'=>'
|
56 |
'reqired' => false,
|
57 |
'class' => '',
|
58 |
'is_checkbox' => false,
|
@@ -90,7 +93,7 @@ SSP_Methods::output_table_rows( $table_rows ); ?>
|
|
90 |
<tbody>
|
91 |
<?php $table_rows = [
|
92 |
'search_title' => [
|
93 |
-
'title'=>'検索結果ページタイトル',
|
94 |
'reqired' => false,
|
95 |
'class' => '',
|
96 |
'is_checkbox' => false,
|
@@ -99,7 +102,7 @@ SSP_Methods::output_table_rows( $table_rows ); ?>
|
|
99 |
'desc' => '検索結果ページ に出力する <code><title></code> タグの設定です。',
|
100 |
],
|
101 |
'404_title' => [
|
102 |
-
'title'=>'404ページタイトル',
|
103 |
'reqired' => false,
|
104 |
'class' => '',
|
105 |
'is_checkbox' => false,
|
1 |
<div class="postbox">
|
2 |
<h2 class="hndle">
|
3 |
+
<span><?=__('Basic setting', LOOS_SSP_DOMAIN )?></span>
|
4 |
</h2>
|
5 |
<div class="inside">
|
6 |
<table class="form-table">
|
7 |
<tbody>
|
8 |
<?php $table_rows = [
|
9 |
'site_title' => [
|
10 |
+
'title' => __('Site title', LOOS_SSP_DOMAIN ) . ' ('. __( 'For confirmation', LOOS_SSP_DOMAIN ) .')',
|
11 |
'reqired' => false,
|
12 |
'class' => '',
|
13 |
'is_checkbox' => false,
|
14 |
'item' => '<input type="text" name="" value="'.esc_attr( SSP_Data::$site_title ).'" disabled>',
|
15 |
'prev' => false,
|
16 |
+
'desc' => '「<a href="'. admin_url() .'options-general.php" target="_blanc">一般設定</a>」 -> 「サイトのタイトル」の値です。<br><code>%_site_title_%</code> として扱われます。',
|
17 |
],
|
18 |
'site_catch_phrase' => [
|
19 |
+
'title' => __('Site catchphrase', LOOS_SSP_DOMAIN ) . ' ('. __( 'For confirmation', LOOS_SSP_DOMAIN ) .')',
|
20 |
'reqired' => false,
|
21 |
'class' => '',
|
22 |
'is_checkbox' => false,
|
23 |
+
'item' => '<input type="text" name="" value="'. esc_attr( SSP_Data::$site_catch_phrase ) .'" disabled>',
|
24 |
'prev' => false,
|
25 |
+
'desc' => '「<a href="'. admin_url() .'options-general.php" target="_blanc">一般設定</a>」 -> 「キャッチフレーズ」の値です。<br><code>%_phrase_%</code> として扱われます。',
|
26 |
],
|
27 |
'home_title' => [
|
28 |
+
'title' => __('Home title', LOOS_SSP_DOMAIN ),
|
29 |
'reqired' => false,
|
30 |
'class' => '',
|
31 |
'is_checkbox' => false,
|
32 |
'item' => '',
|
33 |
'prev' => true,
|
34 |
+
'desc' => sprintf(
|
35 |
+
__( 'It is the setting of %s that is output to the home page.', LOOS_SSP_DOMAIN ),
|
36 |
+
'<code><title></code> '. __( 'tag', LOOS_SSP_DOMAIN )
|
37 |
+
),//'ホームページに出力する <code><title></code> タグの設定です。',
|
38 |
],
|
39 |
'separator' => [
|
40 |
+
'title' => __( 'Delimiter', LOOS_SSP_DOMAIN ),
|
41 |
'reqired' => false,
|
42 |
'class' => 'sep',
|
43 |
'is_checkbox' => false,
|
46 |
'desc' => 'ここで選択した 区切り文字 は <code>%_sep_%</code> として扱われます。',
|
47 |
],
|
48 |
'home_desc' => [
|
49 |
+
'title' => __( 'Home description', LOOS_SSP_DOMAIN ),
|
50 |
'reqired' => false,
|
51 |
'class' => 'textarea',
|
52 |
'is_checkbox' => false,
|
55 |
'desc' => 'ホーム の <code>meta:description</code> タグの設定です。<br>入力内容が空の場合、「キャッチフレーズ」の内容が優先されます。<br>また、ここで入力された内容は <code>%_description_%</code> として扱われます。',
|
56 |
],
|
57 |
'home_keyword' => [
|
58 |
+
'title' => __( 'Keyword', LOOS_SSP_DOMAIN ),
|
59 |
'reqired' => false,
|
60 |
'class' => '',
|
61 |
'is_checkbox' => false,
|
93 |
<tbody>
|
94 |
<?php $table_rows = [
|
95 |
'search_title' => [
|
96 |
+
'title' => '検索結果ページタイトル',
|
97 |
'reqired' => false,
|
98 |
'class' => '',
|
99 |
'is_checkbox' => false,
|
102 |
'desc' => '検索結果ページ に出力する <code><title></code> タグの設定です。',
|
103 |
],
|
104 |
'404_title' => [
|
105 |
+
'title' => '404ページタイトル',
|
106 |
'reqired' => false,
|
107 |
'class' => '',
|
108 |
'is_checkbox' => false,
|
languages/loos-ssp-ja.mo
CHANGED
Binary file
|
languages/loos-ssp-ja.po
CHANGED
@@ -1,15 +1,15 @@
|
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: SEO SIMPLE PACK\n"
|
4 |
-
"POT-Creation-Date:
|
5 |
-
"PO-Revision-Date:
|
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.
|
13 |
"X-Poedit-Basepath: ..\n"
|
14 |
"Plural-Forms: nplurals=1; plural=0;\n"
|
15 |
"X-Poedit-Flags-xgettext: --add-comments=translators:\n"
|
@@ -21,11 +21,11 @@ msgstr ""
|
|
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 |
|
@@ -49,17 +49,143 @@ msgstr "Googleアナリティクス"
|
|
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 "
|
63 |
|
64 |
#. Description of the plugin/theme
|
65 |
msgid ""
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: SEO SIMPLE PACK\n"
|
4 |
+
"POT-Creation-Date: 2020-08-06 21:43+0900\n"
|
5 |
+
"PO-Revision-Date: 2020-08-06 21:43+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.4\n"
|
13 |
"X-Poedit-Basepath: ..\n"
|
14 |
"Plural-Forms: nplurals=1; plural=0;\n"
|
15 |
"X-Poedit-Flags-xgettext: --add-comments=translators:\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 inc/page_ogp.php:23
|
25 |
msgid "OGP settings"
|
26 |
msgstr "OGP設定"
|
27 |
|
28 |
+
#: class/ssp_menu.php:46 class/ssp_menu.php:55 inc/parts/tab_basic.php:3
|
29 |
msgid "Basic setting"
|
30 |
msgstr "基本設定"
|
31 |
|
49 |
msgid "Webmaster tools"
|
50 |
msgstr "ウェブマスターツール"
|
51 |
|
52 |
+
#: class/ssp_menu.php:111 inc/page_top.php:23
|
53 |
msgid "General settings"
|
54 |
msgstr "一般設定"
|
55 |
|
56 |
+
#: class/ssp_methods.php:345
|
57 |
+
msgid "Preview"
|
58 |
+
msgstr "プレビュー"
|
59 |
+
|
60 |
+
#: inc/page_help.php:2
|
61 |
+
msgid "Help page"
|
62 |
+
msgstr "ヘルプページ"
|
63 |
+
|
64 |
+
#: inc/page_help.php:6
|
65 |
+
msgid "About available \"snippet tags\""
|
66 |
+
msgstr "使用可能な\"スニペットタグ\"について"
|
67 |
+
|
68 |
+
#: inc/page_help.php:10 inc/parts/tab_basic.php:10
|
69 |
+
msgid "Site title"
|
70 |
+
msgstr "サイトのタイトル"
|
71 |
+
|
72 |
+
#: inc/page_help.php:11 inc/parts/tab_basic.php:19
|
73 |
+
msgid "Site catchphrase"
|
74 |
+
msgstr "サイトのキャッチフレーズ"
|
75 |
+
|
76 |
+
#: inc/page_help.php:12 inc/parts/tab_basic.php:49
|
77 |
+
msgid "Home description"
|
78 |
+
msgstr "ホームのディスクリプション"
|
79 |
+
|
80 |
+
#: inc/page_help.php:13
|
81 |
+
msgid "Post title"
|
82 |
+
msgstr "投稿のタイトル"
|
83 |
+
|
84 |
+
#: inc/page_help.php:14
|
85 |
+
msgid "Category name"
|
86 |
+
msgstr "カテゴリー名"
|
87 |
+
|
88 |
+
#: inc/page_help.php:15
|
89 |
+
msgid "Tag name"
|
90 |
+
msgstr "タグ名"
|
91 |
+
|
92 |
+
#: inc/page_help.php:16
|
93 |
+
msgid "Term name"
|
94 |
+
msgstr "ターム名"
|
95 |
+
|
96 |
+
#: inc/page_help.php:17
|
97 |
+
msgid "Term description"
|
98 |
+
msgstr "タームの説明"
|
99 |
+
|
100 |
+
#: inc/page_help.php:18
|
101 |
+
msgid "Taxonomy name"
|
102 |
+
msgstr "タクソノミー名"
|
103 |
+
|
104 |
+
#: inc/page_help.php:19
|
105 |
+
msgid "Post type name"
|
106 |
+
msgstr "投稿タイプ名"
|
107 |
+
|
108 |
+
#: inc/page_help.php:20
|
109 |
+
msgid "Page content"
|
110 |
+
msgstr "ページコンテンツ"
|
111 |
+
|
112 |
+
#: inc/page_help.php:21
|
113 |
+
msgid "The date that is searching in the date archive"
|
114 |
+
msgstr "日付アーカイブで検索中の日付"
|
115 |
+
|
116 |
+
#: inc/page_help.php:22
|
117 |
+
msgid "Author name"
|
118 |
+
msgstr "著者名"
|
119 |
+
|
120 |
+
#: inc/page_help.php:23
|
121 |
+
msgid "Search word"
|
122 |
+
msgstr "検索ワード"
|
123 |
+
|
124 |
+
#: inc/page_help.php:24
|
125 |
+
msgid "Post format name"
|
126 |
+
msgstr "投稿フォーマット名"
|
127 |
+
|
128 |
+
#: inc/page_help.php:25 inc/parts/tab_basic.php:40
|
129 |
+
msgid "Delimiter"
|
130 |
+
msgstr "区切り文字"
|
131 |
+
|
132 |
+
#: inc/page_help.php:32
|
133 |
+
msgid "Snippet tag"
|
134 |
+
msgstr "スニペットタグ"
|
135 |
+
|
136 |
+
#: inc/page_help.php:35
|
137 |
+
msgid "Contents to be expanded"
|
138 |
+
msgstr "展開される内容"
|
139 |
+
|
140 |
+
#: inc/page_help.php:51
|
141 |
+
#, php-format
|
142 |
+
msgid "See %s for more information about \"SEO SIMPLE PACK\"."
|
143 |
+
msgstr "「SEO SIMPLE PACK」に関する詳しい説明は %s をご覧ください。"
|
144 |
+
|
145 |
+
#: inc/page_help.php:52
|
146 |
+
msgid "\"How to use the plugin\""
|
147 |
+
msgstr "「プラグインの使い方」"
|
148 |
+
|
149 |
+
#: inc/page_ogp.php:27 inc/page_top.php:27
|
150 |
+
msgid "Your settings have been saved."
|
151 |
+
msgstr "設定を保存しました。"
|
152 |
+
|
153 |
+
#: inc/page_ogp.php:29 inc/page_top.php:29
|
154 |
+
msgid "Hide this notification."
|
155 |
+
msgstr "この通知を非表示にする。"
|
156 |
+
|
157 |
+
#: inc/page_ogp.php:64 inc/page_top.php:64
|
158 |
+
msgid "Save settings"
|
159 |
+
msgstr "設定を保存する"
|
160 |
+
|
161 |
+
#: inc/parts/tab_basic.php:10 inc/parts/tab_basic.php:19
|
162 |
+
msgid "For confirmation"
|
163 |
+
msgstr "確認用"
|
164 |
+
|
165 |
+
#: inc/parts/tab_basic.php:28
|
166 |
+
msgid "Home title"
|
167 |
+
msgstr "ホームのタイトル"
|
168 |
+
|
169 |
+
#: inc/parts/tab_basic.php:35
|
170 |
+
#, php-format
|
171 |
+
msgid "It is the setting of %s that is output to the home page."
|
172 |
+
msgstr "ホームページに出力する %s の設定です。"
|
173 |
+
|
174 |
+
#: inc/parts/tab_basic.php:36
|
175 |
+
msgid "tag"
|
176 |
+
msgstr "タグ"
|
177 |
+
|
178 |
+
#: inc/parts/tab_basic.php:58
|
179 |
+
msgid "Keyword"
|
180 |
+
msgstr "キーワード"
|
181 |
+
|
182 |
#. Plugin Name of the plugin/theme
|
183 |
msgid "SEO SIMPLE PACK"
|
184 |
msgstr "SEO SIMPLE PACK"
|
185 |
|
186 |
#. Plugin URI of the plugin/theme
|
187 |
msgid "https://wemo.tech/1670"
|
188 |
+
msgstr "https://wemo.tech/1670"
|
189 |
|
190 |
#. Description of the plugin/theme
|
191 |
msgid ""
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ 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.
|
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,10 @@ wp_head内( `_wp_render_title_tag` )で出力される`title`タグは削除す
|
|
109 |
|
110 |
== Changelog ==
|
111 |
|
|
|
|
|
|
|
|
|
112 |
= 1.2.7 =
|
113 |
Increased the priority of hooks that output meta tags.
|
114 |
|
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.5
|
7 |
+
Stable tag: 1.2.8
|
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.8 =
|
113 |
+
- Fixed some code.
|
114 |
+
- Added a little English translation.
|
115 |
+
|
116 |
= 1.2.7 =
|
117 |
Increased the priority of hooks that output meta tags.
|
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: 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.
|
7 |
* Author: LOOS WEB STUDIO
|
8 |
* Author URI: https://loos-web-studio.com/
|
9 |
* License: GPL2 or later
|
@@ -11,7 +11,7 @@
|
|
11 |
* Text Domain: loos-ssp
|
12 |
*/
|
13 |
|
14 |
-
if ( !defined( 'ABSPATH' ) ) exit;
|
15 |
|
16 |
/**
|
17 |
* PHPバージョン5.6以上のみ使用可能の警告
|
@@ -34,7 +34,7 @@ if ( (double) $phpver < 5.6 ) {
|
|
34 |
* 定数宣言
|
35 |
*/
|
36 |
if ( ! defined( 'SSP_VERSION' ) ) {
|
37 |
-
define( 'SSP_VERSION', '1.2.
|
38 |
}
|
39 |
if ( ! defined( 'SSP_FILE' ) ) {
|
40 |
define( 'SSP_FILE', __FILE__ );
|
@@ -46,7 +46,7 @@ if ( ! defined( 'SSP_BASENAME' ) ) {
|
|
46 |
define( 'SSP_BASENAME', plugin_basename( SSP_FILE ) );
|
47 |
}
|
48 |
if ( ! defined( 'SSP_URL' ) ) {
|
49 |
-
define( 'SSP_URL', plugins_url( '', __FILE__ ) );
|
50 |
}
|
51 |
|
52 |
|
@@ -59,9 +59,10 @@ if ( ! defined( 'LOOS_SSP_DOMAIN' ) ) {
|
|
59 |
|
60 |
|
61 |
/**
|
62 |
-
* 翻訳ファイルを登録
|
63 |
*/
|
64 |
-
|
|
|
65 |
|
66 |
|
67 |
/**
|
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.8
|
7 |
* Author: LOOS WEB STUDIO
|
8 |
* Author URI: https://loos-web-studio.com/
|
9 |
* License: GPL2 or later
|
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', ( defined( 'WP_DEBUG' ) && WP_DEBUG ) ? date('mdGis') : '1.2.8');
|
38 |
}
|
39 |
if ( ! defined( 'SSP_FILE' ) ) {
|
40 |
define( 'SSP_FILE', __FILE__ );
|
46 |
define( 'SSP_BASENAME', plugin_basename( SSP_FILE ) );
|
47 |
}
|
48 |
if ( ! defined( 'SSP_URL' ) ) {
|
49 |
+
define( 'SSP_URL', plugins_url( '/', __FILE__ ) );
|
50 |
}
|
51 |
|
52 |
|
59 |
|
60 |
|
61 |
/**
|
62 |
+
* 翻訳ファイルを登録 ( 自前の翻訳ファイルを読み込む )
|
63 |
*/
|
64 |
+
load_textdomain( LOOS_SSP_DOMAIN, SSP_PATH . 'languages/loos-ssp-ja.mo');
|
65 |
+
// load_plugin_textdomain( LOOS_SSP_DOMAIN, false, basename( SSP_PATH ) .'/languages' );
|
66 |
|
67 |
|
68 |
/**
|