公開準備
This commit is contained in:
@@ -15,8 +15,8 @@ if ( ! class_exists( 'cnv_protection_txt' ) ) {
|
|||||||
|
|
||||||
public function add_pages() {
|
public function add_pages() {
|
||||||
add_menu_page(
|
add_menu_page(
|
||||||
'アクセス権限ページ設定',
|
'限定公開ページテキストカスタマイズ',
|
||||||
'アクセス権限ページ設定',
|
'限定公開ページテキストカスタマイズ',
|
||||||
'level_8',
|
'level_8',
|
||||||
__FILE__,
|
__FILE__,
|
||||||
array(
|
array(
|
||||||
|
|||||||
@@ -1,13 +1,25 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Plugin Name: Convert Protection Text
|
Plugin Name: Convert Protection Text
|
||||||
Plugin URI: http://URI_Of_Page_Describing_Plugin_and_Updates
|
Plugin URI: https://develop.n-k-y.net/wordpress/convert-protection-text
|
||||||
Description: A brief description of the Plugin.
|
Author: NBK45
|
||||||
Version: 1.0
|
Author URI: https://develop.n-k-y.net
|
||||||
Author: nobu
|
Description: Convert Protection Text はWordPressで記事(ページ)の公開状態を限定公開(「パスワード保護」)にしたときのテキストをカスタマイズするプラグインです。
|
||||||
Author URI: http://URI_Of_The_Plugin_Author
|
Version: 1.0.0
|
||||||
License: A "Slug" license name e.g. GPL2
|
License: GPLv2
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* Copyright 2021 NBK45 (email : nbk.develop@gmail.com)
|
||||||
|
This program is free software; you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License, version 2, as
|
||||||
|
published by the Free Software Foundation.
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with this program; if not, write to the Free Software
|
||||||
|
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
include_once __DIR__ . '/class/cnv_protection_txt_settings.php';
|
include_once __DIR__ . '/class/cnv_protection_txt_settings.php';
|
||||||
|
|||||||
+55
@@ -0,0 +1,55 @@
|
|||||||
|
=== Convert Protection Text ===
|
||||||
|
Contributors: NBK45
|
||||||
|
Tags: logout,rememberme
|
||||||
|
Requires at least: 4.9
|
||||||
|
Tested up to: 6.5
|
||||||
|
Requires PHP: 7.4
|
||||||
|
Stable tag: 1.0.0
|
||||||
|
License: GPLv2 or later
|
||||||
|
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
||||||
|
|
||||||
|
Convert Protection Text はWordPressで記事(ページ)の公開状態を限定公開(「パスワード保護」)にしたときのテキストをカスタマイズするプラグインです。
|
||||||
|
|
||||||
|
== Description ==
|
||||||
|
|
||||||
|
WordPressで記事(ページ)の限定公開(「パスワード保護」)時に表示される認証ページをカスタマイズします。
|
||||||
|
・保護中の表示・非表示の切り替え
|
||||||
|
・ページメッセージ
|
||||||
|
・パスワードフォームのラベル
|
||||||
|
・確定ボタンのラベル
|
||||||
|
|
||||||
|
= 仕様 =
|
||||||
|
1)保護中の表示・非表示の切り替え
|
||||||
|
「保護中」の表示と非表示を切り替えます。
|
||||||
|
|
||||||
|
2)ページメッセージ
|
||||||
|
標準のメッセージから任意のメッセージに変更します。
|
||||||
|
テキストエリアの改行は維持されますが、HTMLタグは除去されます。
|
||||||
|
|
||||||
|
3)パスワードフォームのラベル
|
||||||
|
ラベルを「パスワード」から任意のテキストに変更します。
|
||||||
|
|
||||||
|
4)確定ボタンのラベル
|
||||||
|
ボタンラベルの「確定」を任意のテキストに変更します。
|
||||||
|
|
||||||
|
== Installation ==
|
||||||
|
|
||||||
|
= 自動インストール =
|
||||||
|
1. プラグインの検索フィールドより「Convert Protection Text」と入力し、"プラグインの検索"をクリックします。
|
||||||
|
2. 当プラグインを見つけたら、"今すぐインストール"をクリックしてインストールし、プラグインを有効化してください。
|
||||||
|
|
||||||
|
= 手動インストール =
|
||||||
|
1. プラグインをダウンロードします。
|
||||||
|
2. プラグインフォルダ内にアップロードし、管理画面よりプラグインを有効化してください。
|
||||||
|
|
||||||
|
== Frequently Asked Questions ==
|
||||||
|
|
||||||
|
== Screenshots ==
|
||||||
|
screenshot-1.png
|
||||||
|
|
||||||
|
== Changelog ==
|
||||||
|
= 1.0.0 =
|
||||||
|
初回リリース
|
||||||
|
|
||||||
|
== Upgrade Notice ==
|
||||||
|
No information
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<h2>アクセス権限ページ設定</h2>
|
<h2>限定公開ページテキストカスタマイズ</h2>
|
||||||
<form action="" method="post">
|
<form action="" method="post">
|
||||||
<?php
|
<?php
|
||||||
wp_nonce_field( 'cnv_options' );
|
wp_nonce_field( 'cnv_options' );
|
||||||
|
|||||||
Reference in New Issue
Block a user