2016-11-20の作業のまとめ【1】 2016年11月21日

News -various

2016-11-20の作業のまとめ【1】

ざっくり。
1)
http://ch-ch-mics.jp/news/townに、WORDPRESSの初期設定を。
2)
テーマを初期から切り替えて設定。
テーマ採用は Connect  Themes4WP 
採用の理由は2016年11月現在最新系であることと、スタンダードなレイアウトだったから。それ以上に深い理由はない。今のところ、最終的なフルカスタマイズをするのかどうか考えている最中なので、テーマの選定はあまり重要視していない。
3)
プラグインの追加
 デフォルト含め、現時点では下記。

■Akismet
バージョン 3.2 
■Duplicate Post
バージョン 3.0.3 | 作者: Enrico Battocchi | 詳細を表示 | 寄付 | 翻訳
■Jetpack by WordPress.com
バージョン 4.3.2 | 作者: Automattic | 詳細を表示
■Kirki Toolkit
バージョン 2.3.7 | 作者: Aristeides Stathopoulos | 詳細を表示
■LH OGP Meta Tags
バージョン 1.66 | 作者: Peter Shaw | 詳細を表示
■Limit Login Attempts
バージョン 1.7.1 | 作者: Johan Eenfeldt | 詳細を表示
■NextGEN Gallery
バージョン 2.1.57 | 作者: Imagely | 詳細を表示 | Get help | Contribute
■Page Links To
バージョン 2.9.6 | 作者: Mark Jaquith | 詳細を表示 | GitHub
■Post List Generator
バージョン 1.3.0 | 作者: WordPress Biz Plugin | 詳細を表示
■Single Post Template
バージョン 1.4.4 | 作者: Nathan Rice | 詳細を表示
■Social
バージョン 1.4.8 | 作者: Sygnoos | 詳細を表示
■Social Pug
バージョン 1.2.5 | 作者: DevPups, Mihai Iova | 詳細を表示
■WP Content Copy Protection & No Right Click
バージョン 1.5.0.6 | 作者: wp-buy | 詳細を表示
■カスタムフィールドテンプレート
バージョン 2.3.7 | 作者: Hiroaki Miyashita | 詳細を表示

4)
カスタムテンフィールド 設定 2種類。
1つ目はデフォルトを変更。タウン通信【1】
2つ目は市民伝言板を移植。タウン通信【2】

それぞれソースは下記。

[koumoku]
type = text
size = 35
label = タウン通信ニュース項目名

[koumoku]
type = textfield
size = 35
hideKey = true

[bcdh-y]
type = radio
value = 初回放送年 # 2016年 # 2017年 # 2018年 # 2019年 # 2020年 # 2021年 # 2022年 # 2023年 # 2024年 # 2025年 # 2026年 # 2027年 # 2028年 # 2029年 # 2030年 #
default = 初回放送年
clearButton = true

[bcdh-m]
type = radio
value = 初回放送月 # 1月 # 2月 # 3月 # 4月 # 5月 # 6月 #7月 # 8月 # 9月 # 10月 # 11月 # 12月 # 
default = 初回放送月 
clearButton = true

[bcdh-d]
type = radio
value = 初回放送日 # 1日 # 2日 # 3日 # 4日 # 5日 # 6日 #7日 # 8日 # 9日 # 10日 # 11日 # 12日 #  13日 # 14日 # 15日 # 16日 # 17日 # 18日 # 19日 # 20日 # 21日 # 22日 # 23日 # 24日 # 25日 # 26日 # 27日 # 28日 # 29日 # 30日 # 31日 #
default = 初回放送日
clearButton = true

[bcdh-w]
type = checkbox
value = 初回放送曜日 # 月曜日 # 火曜日 # 水曜日 # 木曜日 # 金曜日 # 
default = 初回放送曜日

[bcdh-time]
type = select
value = 初回放送時間 # 18:00~ # 18:15~ # 18:30~ # 18:45~ # 未定 #
default = 初回放送時間

[shuzai-y]
type = radio
value = 取材年 # 2016年 # 2017年 # 2018年 # 2019年 # 2020年 # 2021年 # 2022年 # 2023年 # 2024年 # 2025年 # 2026年 # 2027年 # 2028年 # 2029年 # 2030年 #
default = 取材年
clearButton = true

[shuzai-m]
type = radio
value = 取材月 # 1月 # 2月 # 3月 # 4月 # 5月 # 6月 #7月 # 8月 # 9月 # 10月 # 11月 # 12月 # 
default = 取材月
clearButton = true

[shuzai-d]
type = radio
value = 取材日 # 1日 # 2日 # 3日 # 4日 # 5日 # 6日 #7日 # 8日 # 9日 # 10日 # 11日 # 12日 #  13日 # 14日 # 15日 # 16日 # 17日 # 18日 # 19日 # 20日 # 21日 # 22日 # 23日 # 24日 # 25日 # 26日 # 27日 # 28日 # 29日 # 30日 # 31日 #
default = 取材日
clearButton = true

[shuzai-w]
type = checkbox
value = 取材曜日 #  月曜日 # 火曜日 # 水曜日 # 木曜日 # 金曜日 # 
default = 取材曜日

[shuzai-p]
type = text
size = 50
label = 取材場所

[Category]
type = select
value = 放送種別 # タウン通信ニュース # Weekly News Topics # 広報
default =  放送種別

[Hidden Thought]
type = textarea
rows = 4
cols = 40
tinyMCE = true
htmlEditor = true
mediaButton = true

[File Upload]
type = file

タウン通信【2】

[eventname]
type = text
size = 50
label = 【伝言タイトル】

[party]
type = text
size = 50
label = 【主催団体名】

[event_detail]
type = text
size = 50
label = 【イベント内容】


[bc_day]
type = text
size = 50
label = 【放送日】

[poster_url]
type = text
size = 50
label = 【画像URL】

[movie_filename]
type = text
size = 50
label = 【動画ファイル名】

[place]
type = text
size = 50
label = 【会場】

[event_day]
type = text
size = 50
label = 【開催日】

[event_time]
type = text
size = 50
label = 【開催時間】

[time_note]
type = text
size = 50
label = 【開催時間に関する備考】


[askfor]
type = text
size = 50
label = 【問い合わせ先】

[notice_url]
type = text
size = 50
label = 【関連ホームページ】

[studio_rec]
type = text
size = 35
label = 【スタジオ収録日】

[Map_iframe]
type = text
size = 200
label = 【会場地図】

スタイルシート css

/* ---------------------------------------------------------------------------------------
	13. nakaguchi
--------------------------------------------------------------------------------------- */

table.type02 {
	border-collapse: separate;
	border-spacing: 0;
	text-align: left;
	line-height: 1.5;
	border-top: 1px solid #ccc;
	border-left: 1px solid #ccc;
}
table.type02 th {
	width: 200px;
	padding: 10px;
	font-weight: bold;
	vertical-align: top;
	border-right: 1px solid #ccc;
	border-bottom: 1px solid #ccc;
	border-top: 1px solid #fff;
	border-left: 1px solid #fff;
	background: #eee;
}
table.type02 td {
	width: 350px;
	padding: 10px;
	vertical-align: top;
	border-right: 1px solid #ccc;
	border-bottom: 1px solid #ccc;
}
thumcenter {
 display: block;
 margin-left: auto;
 margin-right: auto;
}
imagecenter {
max-width: 50%;
background-color: #eee8aa;
margin: 0 auto;
}
mr50 {
 display: block;
 margin-left: auto;
 margin-right: 50px;
}
LINE