Pz-LinkCard - Version 2.1.0

Version Description

Download this release

Release Info

Developer poporon
Plugin Icon 128x128 Pz-LinkCard
Version 2.1.0
Comparing to
See all releases

Code changes from version 2.0.8 to 2.1.0

color-picker.js DELETED
@@ -1 +0,0 @@
1
- (function($) { $('.color-picker').wpColorPicker(); })( jQuery );
 
js/mce-pz-lkc.js CHANGED
@@ -1,21 +1,13 @@
1
  (function() {
2
  tinymce.create('tinymce.plugins.pzlinkcard', {
3
  init: function(ed, url){
4
- var language = (window.navigator.userLanguage || window.navigator.language || window.navigator.browserLanguage).substr(0,2) == "ja" ? "ja" : "en";
5
- if (language == "ja") {
6
- var msg1 = 'リンクカード作成';
7
- var msg2 = 'リンクカードを作成するURLを入力してください';
8
- } else {
9
- var msg1 = 'Make LinkCard';
10
- var msg2 = 'Input URL';
11
- }
12
  ed.addButton('pz_linkcard',{
13
- title: msg1,
14
  image: url + '/button.png',
15
  cmd: 'insert_pz_linkcard'
16
  });
17
  ed.addCommand('insert_pz_linkcard', function() {
18
- var insert_tag = window.prompt(msg2, 'http://');
19
  if (insert_tag !== null) {
20
  ed.execCommand('mceInsertContent', 0, '[blogcard url="' + insert_tag + '"]');
21
  }
1
  (function() {
2
  tinymce.create('tinymce.plugins.pzlinkcard', {
3
  init: function(ed, url){
 
 
 
 
 
 
 
 
4
  ed.addButton('pz_linkcard',{
5
+ title: 'Insert Pz-LinkCard',
6
  image: url + '/button.png',
7
  cmd: 'insert_pz_linkcard'
8
  });
9
  ed.addCommand('insert_pz_linkcard', function() {
10
+ var insert_tag = window.prompt('Input URL', 'http://');
11
  if (insert_tag !== null) {
12
  ed.execCommand('mceInsertContent', 0, '[blogcard url="' + insert_tag + '"]');
13
  }
languages/pz-linkcard-ja.mo CHANGED
Binary file
languages/pz-linkcard-ja.po CHANGED
@@ -4,8 +4,8 @@ msgid ""
4
  msgstr ""
5
  "Project-Id-Version: Pz-LinkCard\n"
6
  "Report-Msgid-Bugs-To: http://wppolyglots.wordpress.com\n"
7
- "POT-Creation-Date: 2018-01-17 21:31+0900\n"
8
- "PO-Revision-Date: 2018-01-17 21:32+0900\n"
9
  "Last-Translator: \n"
10
  "Language-Team: poporon\n"
11
  "Language: ja_JP\n"
@@ -19,87 +19,87 @@ msgstr ""
19
  "Plural-Forms: nplurals=1; plural=0;\n"
20
  "X-Poedit-SearchPath-0: ..\n"
21
 
22
- #: ../pz-linkcard.php:293
23
  msgid "Incorrect URL specification."
24
  msgstr ""
25
 
26
- #: ../pz-linkcard.php:1096
27
  msgid "Category"
28
  msgstr "カテゴリー"
29
 
30
- #: ../pz-linkcard.php:1096 ../pz-linkcard.php:1109
31
  msgid "‘"
32
  msgstr "「"
33
 
34
- #: ../pz-linkcard.php:1096 ../pz-linkcard.php:1109
35
  msgid "’"
36
  msgstr "」"
37
 
38
- #: ../pz-linkcard.php:1097 ../pz-linkcard.php:1110
39
  msgid "("
40
  msgstr "("
41
 
42
- #: ../pz-linkcard.php:1097 ../pz-linkcard.php:1110
43
  msgid "Count"
44
  msgstr "件数"
45
 
46
- #: ../pz-linkcard.php:1097 ../pz-linkcard.php:1110
47
  msgid ")"
48
  msgstr ")"
49
 
50
- #: ../pz-linkcard.php:1109
51
  msgid "Tag"
52
  msgstr "タグ"
53
 
54
- #: ../pz-linkcard.php:1502
55
  msgid "Linkcard"
56
  msgstr "リンクカード"
57
 
58
- #: ../pz-linkcard.php:1502
59
  msgid "Make Linkcard"
60
  msgstr "リンクカードのショートコードを挿入する"
61
 
62
- #: ../pz-linkcard.php:1509
63
  msgid "Invalid URL parameter in "
64
  msgstr "URLパラメーターの指定が無効です→"
65
 
66
- #: ../pz-linkcard.php:1536 ../lib/pz-linkcard-cacheman.php:6
67
  msgid "LinkCard cache manager"
68
  msgstr "リンクカード/DBキャッシュ管理"
69
 
70
- #: ../pz-linkcard.php:1536
71
  msgid "Pz LkC Cache"
72
  msgstr "Pz カード管理"
73
 
74
- #: ../pz-linkcard.php:1537 ../lib/pz-linkcard-settings.php:4
75
  msgid "LinkCard Settings"
76
  msgstr "リンクカード設定"
77
 
78
- #: ../pz-linkcard.php:1537
79
  msgid "Pz LinkCard"
80
  msgstr "Pz カード設定"
81
 
82
- #: ../pz-linkcard.php:1624
83
  msgid "Settings"
84
  msgstr "設定"
85
 
86
- #: ../pz-linkcard.php:1624
87
  msgid "Manage"
88
  msgstr "管理"
89
 
90
  #: ../lib/pz-linkcard-cacheman-edit.php:14
91
- #: ../lib/pz-linkcard-cacheman-list.php:198 ../lib/pz-linkcard-edit.php:13
92
  msgid "ID"
93
  msgstr ""
94
 
95
  #: ../lib/pz-linkcard-cacheman-edit.php:18
96
- #: ../lib/pz-linkcard-cacheman-list.php:199 ../lib/pz-linkcard-edit.php:17
97
  msgid "URL key"
98
  msgstr "URLキー"
99
 
100
  #: ../lib/pz-linkcard-cacheman-edit.php:22
101
- #: ../lib/pz-linkcard-cacheman-list.php:200 ../lib/pz-linkcard-edit.php:21
102
- #: ../lib/pz-linkcard-settings.php:581
103
  msgid "URL"
104
  msgstr "URL"
105
 
@@ -108,24 +108,24 @@ msgid "Site name"
108
  msgstr "サイト名称"
109
 
110
  #: ../lib/pz-linkcard-cacheman-edit.php:30
111
- #: ../lib/pz-linkcard-cacheman-list.php:204 ../lib/pz-linkcard-edit.php:33
112
  msgid "Domain"
113
  msgstr "ドメイン"
114
 
115
  #: ../lib/pz-linkcard-cacheman-edit.php:34
116
- #: ../lib/pz-linkcard-cacheman-list.php:201 ../lib/pz-linkcard-edit.php:37
117
- #: ../lib/pz-linkcard-settings.php:552
118
  msgid "Title"
119
  msgstr "タイトル"
120
 
121
  #: ../lib/pz-linkcard-cacheman-edit.php:38
122
- #: ../lib/pz-linkcard-cacheman-list.php:202 ../lib/pz-linkcard-edit.php:41
123
- #: ../lib/pz-linkcard-settings.php:609
124
  msgid "Excerpt"
125
  msgstr "抜粋文"
126
 
127
  #: ../lib/pz-linkcard-cacheman-edit.php:42
128
- #: ../lib/pz-linkcard-cacheman-list.php:203 ../lib/pz-linkcard-edit.php:45
129
  msgid "Charset"
130
  msgstr "文字セット"
131
 
@@ -142,12 +142,12 @@ msgid "Favicon URL"
142
  msgstr "ファビコンURL"
143
 
144
  #: ../lib/pz-linkcard-cacheman-edit.php:54
145
- #: ../lib/pz-linkcard-cacheman-list.php:208 ../lib/pz-linkcard-edit.php:57
146
  msgid "Result code"
147
  msgstr "結果コード"
148
 
149
  #: ../lib/pz-linkcard-cacheman-edit.php:92
150
- #: ../lib/pz-linkcard-cacheman-list.php:207 ../lib/pz-linkcard-edit.php:61
151
  msgid "Post ID"
152
  msgstr "記事ID"
153
 
@@ -156,17 +156,17 @@ msgid "SNS"
156
  msgstr ""
157
 
158
  #: ../lib/pz-linkcard-cacheman-edit.php:103
159
- #: ../lib/pz-linkcard-cacheman-list.php:205 ../lib/pz-linkcard-edit.php:67
160
  msgid "Tw"
161
  msgstr ""
162
 
163
  #: ../lib/pz-linkcard-cacheman-edit.php:104
164
- #: ../lib/pz-linkcard-cacheman-list.php:205 ../lib/pz-linkcard-edit.php:68
165
  msgid "fb"
166
  msgstr ""
167
 
168
  #: ../lib/pz-linkcard-cacheman-edit.php:105
169
- #: ../lib/pz-linkcard-cacheman-list.php:205 ../lib/pz-linkcard-edit.php:69
170
  msgid "B!"
171
  msgstr ""
172
 
@@ -179,7 +179,7 @@ msgid "Next update"
179
  msgstr "次回更新日時"
180
 
181
  #: ../lib/pz-linkcard-cacheman-edit.php:117
182
- #: ../lib/pz-linkcard-cacheman-list.php:206 ../lib/pz-linkcard-edit.php:81
183
  msgid "Regist"
184
  msgstr "登録日時"
185
 
@@ -191,93 +191,97 @@ msgstr "更新"
191
  msgid "Cancel"
192
  msgstr "キャンセル"
193
 
194
- #: ../lib/pz-linkcard-cacheman-list.php:135
195
  msgid "All"
196
  msgstr "すべて"
197
 
198
- #: ../lib/pz-linkcard-cacheman-list.php:136
199
  msgid "Internal"
200
  msgstr "内部リンク"
201
 
202
- #: ../lib/pz-linkcard-cacheman-list.php:137
203
  msgid "External"
204
  msgstr "外部リンク"
205
 
206
- #: ../lib/pz-linkcard-cacheman-list.php:138
207
  msgid "Modify"
208
  msgstr "更新あり"
209
 
210
- #: ../lib/pz-linkcard-cacheman-list.php:148
 
 
 
 
211
  msgid "Select batch"
212
  msgstr "一括処理を選択"
213
 
214
- #: ../lib/pz-linkcard-cacheman-list.php:150
215
- #: ../lib/pz-linkcard-cacheman-list.php:219
216
  msgid "Select"
217
  msgstr "選択してください"
218
 
219
- #: ../lib/pz-linkcard-cacheman-list.php:151
220
  msgid "Renew cache"
221
  msgstr "記事内容を再取得する"
222
 
223
- #: ../lib/pz-linkcard-cacheman-list.php:152
224
  msgid "Renew SNS count"
225
  msgstr "ソーシャルカウントを再取得する"
226
 
227
- #: ../lib/pz-linkcard-cacheman-list.php:153
228
  msgid "Check status"
229
  msgstr "リンクが有効かチェックする"
230
 
231
- #: ../lib/pz-linkcard-cacheman-list.php:154
232
  msgid "Delete from cache"
233
  msgstr "キャッシュから削除する"
234
 
235
- #: ../lib/pz-linkcard-cacheman-list.php:156
236
  msgid "Submit"
237
  msgstr "適用"
238
 
239
- #: ../lib/pz-linkcard-cacheman-list.php:160
240
  msgid "Select domain"
241
  msgstr "ドメインを選択"
242
 
243
- #: ../lib/pz-linkcard-cacheman-list.php:162
244
  msgid "All domain"
245
  msgstr "すべてのドメイン"
246
 
247
- #: ../lib/pz-linkcard-cacheman-list.php:175
248
  msgid "Refine search"
249
  msgstr "絞り込み検索"
250
 
251
- #: ../lib/pz-linkcard-cacheman-list.php:180
252
  msgid "items"
253
  msgstr "項目"
254
 
255
- #: ../lib/pz-linkcard-cacheman-list.php:197
256
  msgid "Select all"
257
  msgstr "すべて選択"
258
 
259
- #: ../lib/pz-linkcard-cacheman-list.php:208
260
  msgid "(last)"
261
  msgstr ""
262
 
263
- #: ../lib/pz-linkcard-cacheman-list.php:273
264
  msgid "edit"
265
  msgstr "編集"
266
 
267
- #: ../lib/pz-linkcard-cacheman-list.php:274
268
- #: ../lib/pz-linkcard-cacheman-list.php:275
269
  msgid "Are you sure?"
270
  msgstr "実行します。"
271
 
272
- #: ../lib/pz-linkcard-cacheman-list.php:274
273
  msgid "renew"
274
  msgstr "再取得"
275
 
276
- #: ../lib/pz-linkcard-cacheman-list.php:275
277
  msgid "delete"
278
  msgstr "削除"
279
 
280
- #: ../lib/pz-linkcard-cacheman-list.php:330
281
  msgid "Export"
282
  msgstr "エクスポート"
283
 
@@ -338,598 +342,554 @@ msgstr "ビジュアルエディタのボタンの生成に失敗しました"
338
  msgid "Short code is not set."
339
  msgstr "ショートコードが指定されていません。"
340
 
341
- #: ../lib/pz-linkcard-settings.php:104
342
  msgid "Changes saved."
343
  msgstr "設定を保存しました。"
344
 
345
- #: ../lib/pz-linkcard-settings.php:106
346
  msgid "Not changed."
347
  msgstr "設定は変更されませんでした。"
348
 
349
- #: ../lib/pz-linkcard-settings.php:117
350
  msgid "Error"
351
  msgstr "エラー表示"
352
 
353
- #: ../lib/pz-linkcard-settings.php:120
354
  msgid "Invalid URL"
355
  msgstr "URL指定エラー"
356
 
357
- #: ../lib/pz-linkcard-settings.php:121
358
  msgid "Uncheck to cancel the error condition."
359
  msgstr "チェックを外すとエラー状態を解除します。"
360
 
361
- #: ../lib/pz-linkcard-settings.php:124
362
  msgid "Error URL"
363
  msgstr "URL指定エラー"
364
 
365
- #: ../lib/pz-linkcard-settings.php:128
366
  msgid "Error Time"
367
  msgstr "エラー発生時刻"
368
 
369
- #: ../lib/pz-linkcard-settings.php:135
370
- msgid "Special format"
371
- msgstr "定型書式"
372
 
373
- #: ../lib/pz-linkcard-settings.php:138
374
- msgid "Tiny format"
375
  msgstr "かんたん書式設定"
376
 
377
- #: ../lib/pz-linkcard-settings.php:141 ../lib/pz-linkcard-settings.php:384
378
- #: ../lib/pz-linkcard-settings.php:405 ../lib/pz-linkcard-settings.php:506
379
- #: ../lib/pz-linkcard-settings.php:659 ../lib/pz-linkcard-settings.php:671
380
- #: ../lib/pz-linkcard-settings.php:686 ../lib/pz-linkcard-settings.php:723
381
- #: ../lib/pz-linkcard-settings.php:734 ../lib/pz-linkcard-settings.php:749
 
382
  msgid "None"
383
  msgstr "なし"
384
 
385
- #: ../lib/pz-linkcard-settings.php:142
386
  msgid "Pz-LkC Default"
387
  msgstr "Pz リンクカード 標準書式"
388
 
389
- #: ../lib/pz-linkcard-settings.php:143
390
  msgid "Simple"
391
  msgstr "シンプル"
392
 
393
- #: ../lib/pz-linkcard-settings.php:144
394
  msgid "Square"
395
  msgstr "スクエア"
396
 
397
- #: ../lib/pz-linkcard-settings.php:145
398
  msgid "Cellophane tape \"center\""
399
  msgstr "セロハンテープ(中央)"
400
 
401
- #: ../lib/pz-linkcard-settings.php:146
402
  msgid "Cellophane tape \"Top corner\""
403
  msgstr "セロハンテープ(左上と右上)"
404
 
405
- #: ../lib/pz-linkcard-settings.php:147
406
  msgid "Cellophane tape \"long\""
407
  msgstr "セロハンテープ(長め)"
408
 
409
- #: ../lib/pz-linkcard-settings.php:148
410
  msgid "Slanting"
411
  msgstr "斜め"
412
 
413
- #: ../lib/pz-linkcard-settings.php:149
414
  msgid "3D Rotate"
415
  msgstr "3D回転"
416
 
417
- #: ../lib/pz-linkcard-settings.php:150
418
  msgid "Curling paper"
419
  msgstr "紙がめくれた効果(テーマとの相性があります)"
420
 
421
- #: ../lib/pz-linkcard-settings.php:151
422
  msgid "Taping and curling"
423
  msgstr "テープと紙めくれ(テーマとの相性があります)"
424
 
425
- #: ../lib/pz-linkcard-settings.php:152
426
  msgid "Stitch blue&red"
427
  msgstr "縫い目(青&赤)"
428
 
429
- #: ../lib/pz-linkcard-settings.php:153
430
  msgid "Stitch green&yellow"
431
  msgstr "縫い目(緑&黄色)"
432
 
433
- #: ../lib/pz-linkcard-settings.php:154
434
  msgid "Neutral"
435
  msgstr "ブルーグリーン(黒背景推奨)"
436
 
437
- #: ../lib/pz-linkcard-settings.php:155
438
  msgid "Orange"
439
  msgstr "オレンジ(黒背景推奨)"
440
 
441
- #: ../lib/pz-linkcard-settings.php:156
442
  msgid "Green"
443
  msgstr "グリーン(黒背景推奨)"
444
 
445
- #: ../lib/pz-linkcard-settings.php:157
446
  msgid "Blue"
447
  msgstr "ブルー(黒背景推奨)"
448
 
449
- #: ../lib/pz-linkcard-settings.php:158
450
  msgid "Pushpin"
451
  msgstr "押しピン"
452
 
453
- #: ../lib/pz-linkcard-settings.php:160
454
  msgid "* It applies over other formatting settings."
455
  msgstr "※ほかの項目よりも優先して適用されます。"
456
 
457
- #: ../lib/pz-linkcard-settings.php:166
458
- msgid "Shortcode"
459
- msgstr "ショートコード "
460
-
461
  #: ../lib/pz-linkcard-settings.php:169
462
- msgid "ShortCode 1"
463
- msgstr "ショートコード 1"
464
-
465
- #: ../lib/pz-linkcard-settings.php:171 ../lib/pz-linkcard-settings.php:189
466
- #: ../lib/pz-linkcard-settings.php:194 ../lib/pz-linkcard-settings.php:199
467
- msgid "Case-sensitive"
468
- msgstr "大文字と小文字を区別します"
469
 
470
- #: ../lib/pz-linkcard-settings.php:174
471
- msgid "Use inlinetext"
472
- msgstr "ショートコードで囲んだ文字列"
473
-
474
- #: ../lib/pz-linkcard-settings.php:178
475
- msgid "No use"
476
- msgstr "使用しない"
477
-
478
- #: ../lib/pz-linkcard-settings.php:179
479
- msgid "Use to excerpt"
480
- msgstr "抜粋文として使用"
481
 
482
  #: ../lib/pz-linkcard-settings.php:180
483
- msgid "Use to title"
484
- msgstr "タイトルとして使用"
485
-
486
- #: ../lib/pz-linkcard-settings.php:183
487
- msgid "This setting applies only to the Shortcode1"
488
- msgstr "ショートコード1にのみ適用されます"
489
-
490
- #: ../lib/pz-linkcard-settings.php:187
491
- msgid "ShortCode 2"
492
- msgstr "ショートコード 2"
493
-
494
- #: ../lib/pz-linkcard-settings.php:192
495
- msgid "ShortCode 3"
496
- msgstr "ショートコード 3"
497
-
498
- #: ../lib/pz-linkcard-settings.php:197
499
- msgid "ShortCode 4"
500
- msgstr "ショートコード 4"
501
-
502
- #: ../lib/pz-linkcard-settings.php:202
503
- msgid "Parameters"
504
- msgstr "パラメータ"
505
-
506
- #: ../lib/pz-linkcard-settings.php:205
507
- msgid ""
508
- "For any shortcode you can change the title and excerpt with `title` "
509
- "parameter and `content` parameter"
510
- msgstr ""
511
- "どのショートコードでも title パラメータと content パラメータでタイトルと抜粋"
512
- "文を指定できます。"
513
-
514
- #: ../lib/pz-linkcard-settings.php:210
515
- msgid "Convert text link"
516
- msgstr "テキストリンク行の変換"
517
-
518
- #: ../lib/pz-linkcard-settings.php:211
519
- msgid "Convert lines with text link only to Linkcard."
520
- msgstr "テキストリンクだけの行をリンクカードに変換する。"
521
-
522
- #: ../lib/pz-linkcard-settings.php:214
523
- msgid "Convert URL"
524
- msgstr "URL行の変換"
525
-
526
- #: ../lib/pz-linkcard-settings.php:215
527
- msgid "Convert lines with URL only to Linkcard."
528
- msgstr "URLだけの行をリンクカードに変換する。"
529
-
530
- #: ../lib/pz-linkcard-settings.php:221
531
- msgid "Style"
532
- msgstr "表示設定"
533
-
534
- #: ../lib/pz-linkcard-settings.php:225
535
- msgid "Use blockquote tag"
536
- msgstr "BLOCKQUOTEをタグを使用する"
537
-
538
- #: ../lib/pz-linkcard-settings.php:226
539
- msgid "without using DIV tag, and use BLOCKQUOTE tag"
540
- msgstr "<BLOCKQUOTE>で囲んで引用扱いにします"
541
-
542
- #: ../lib/pz-linkcard-settings.php:230
543
  msgid "Link the whole"
544
  msgstr "カード全体をリンク"
545
 
546
- #: ../lib/pz-linkcard-settings.php:234
547
  msgid "Enclose the entire card at anchor"
548
  msgstr ""
549
  "カード全体をAタグで囲って、どこをクリックしてもリンク先を開くようにします。"
550
 
551
- #: ../lib/pz-linkcard-settings.php:240
552
- msgid "Position"
553
- msgstr "配置設定"
554
 
555
- #: ../lib/pz-linkcard-settings.php:247 ../lib/pz-linkcard-settings.php:278
556
  msgid "Margin top"
557
  msgstr "上の余白"
558
 
559
- #: ../lib/pz-linkcard-settings.php:249 ../lib/pz-linkcard-settings.php:264
560
- #: ../lib/pz-linkcard-settings.php:280 ../lib/pz-linkcard-settings.php:294
561
- #: ../lib/pz-linkcard-settings.php:306 ../lib/pz-linkcard-settings.php:326
562
- #: ../lib/pz-linkcard-settings.php:342 ../lib/pz-linkcard-settings.php:359
563
  msgid "Not defined"
564
  msgstr "設定しない"
565
 
566
- #: ../lib/pz-linkcard-settings.php:250 ../lib/pz-linkcard-settings.php:265
567
- #: ../lib/pz-linkcard-settings.php:286 ../lib/pz-linkcard-settings.php:300
568
- #: ../lib/pz-linkcard-settings.php:312 ../lib/pz-linkcard-settings.php:332
569
- #: ../lib/pz-linkcard-settings.php:343 ../lib/pz-linkcard-settings.php:360
570
  msgid "0"
571
  msgstr ""
572
 
573
- #: ../lib/pz-linkcard-settings.php:251 ../lib/pz-linkcard-settings.php:266
574
- #: ../lib/pz-linkcard-settings.php:281 ../lib/pz-linkcard-settings.php:295
575
- #: ../lib/pz-linkcard-settings.php:307 ../lib/pz-linkcard-settings.php:327
576
- #: ../lib/pz-linkcard-settings.php:344 ../lib/pz-linkcard-settings.php:361
577
  msgid "4px"
578
  msgstr ""
579
 
580
- #: ../lib/pz-linkcard-settings.php:252 ../lib/pz-linkcard-settings.php:267
581
- #: ../lib/pz-linkcard-settings.php:282 ../lib/pz-linkcard-settings.php:296
582
- #: ../lib/pz-linkcard-settings.php:308 ../lib/pz-linkcard-settings.php:328
583
- #: ../lib/pz-linkcard-settings.php:345 ../lib/pz-linkcard-settings.php:362
584
  msgid "8px"
585
  msgstr ""
586
 
587
- #: ../lib/pz-linkcard-settings.php:253 ../lib/pz-linkcard-settings.php:268
588
- #: ../lib/pz-linkcard-settings.php:283 ../lib/pz-linkcard-settings.php:297
589
- #: ../lib/pz-linkcard-settings.php:309 ../lib/pz-linkcard-settings.php:329
590
- #: ../lib/pz-linkcard-settings.php:346 ../lib/pz-linkcard-settings.php:363
591
  msgid "16px"
592
  msgstr ""
593
 
594
- #: ../lib/pz-linkcard-settings.php:254 ../lib/pz-linkcard-settings.php:269
595
- #: ../lib/pz-linkcard-settings.php:284 ../lib/pz-linkcard-settings.php:298
596
- #: ../lib/pz-linkcard-settings.php:310 ../lib/pz-linkcard-settings.php:330
597
- #: ../lib/pz-linkcard-settings.php:347 ../lib/pz-linkcard-settings.php:364
598
  msgid "32px"
599
  msgstr ""
600
 
601
- #: ../lib/pz-linkcard-settings.php:255 ../lib/pz-linkcard-settings.php:270
602
- #: ../lib/pz-linkcard-settings.php:285 ../lib/pz-linkcard-settings.php:299
603
- #: ../lib/pz-linkcard-settings.php:311 ../lib/pz-linkcard-settings.php:331
604
- #: ../lib/pz-linkcard-settings.php:348 ../lib/pz-linkcard-settings.php:365
605
  msgid "64px"
606
  msgstr ""
607
 
608
- #: ../lib/pz-linkcard-settings.php:262 ../lib/pz-linkcard-settings.php:292
609
  msgid "Margin left"
610
  msgstr "左の余白"
611
 
612
- #: ../lib/pz-linkcard-settings.php:304 ../lib/pz-linkcard-settings.php:340
613
  msgid "Margin right"
614
  msgstr "右の余白"
615
 
616
- #: ../lib/pz-linkcard-settings.php:318 ../lib/pz-linkcard-settings.php:411
617
- #: ../lib/pz-linkcard-settings.php:490
618
  msgid "Width"
619
  msgstr "幅"
620
 
621
- #: ../lib/pz-linkcard-settings.php:319 ../lib/pz-linkcard-settings.php:413
622
- #: ../lib/pz-linkcard-settings.php:544 ../lib/pz-linkcard-settings.php:573
623
- #: ../lib/pz-linkcard-settings.php:602 ../lib/pz-linkcard-settings.php:630
624
  msgid "Height"
625
  msgstr "高さ"
626
 
627
- #: ../lib/pz-linkcard-settings.php:324 ../lib/pz-linkcard-settings.php:357
628
  msgid "Margin bottom"
629
  msgstr "下の余白"
630
 
631
- #: ../lib/pz-linkcard-settings.php:354
632
  msgid "Centering"
633
  msgstr "中央に寄せる"
634
 
635
- #: ../lib/pz-linkcard-settings.php:376
 
 
 
 
 
 
 
 
 
 
 
 
636
  msgid "Layout"
637
  msgstr "外観設定"
638
 
639
- #: ../lib/pz-linkcard-settings.php:382 ../lib/pz-linkcard-settings.php:679
640
- #: ../lib/pz-linkcard-settings.php:742 ../lib/pz-linkcard-settings.php:792
641
  msgid "Site information"
642
  msgstr "サイト情報"
643
 
644
- #: ../lib/pz-linkcard-settings.php:385
645
  msgid "Top"
646
  msgstr "上側"
647
 
648
- #: ../lib/pz-linkcard-settings.php:386
649
  msgid "Bottom"
650
  msgstr "下側"
651
 
652
- #: ../lib/pz-linkcard-settings.php:388
653
  msgid "Use SiteName"
654
  msgstr "サイト名称を使用"
655
 
656
- #: ../lib/pz-linkcard-settings.php:393
657
  msgid "Separator line"
658
  msgstr "区切り線"
659
 
660
- #: ../lib/pz-linkcard-settings.php:400
661
  msgid "Display URL"
662
  msgstr "リンク先のURLを表示する"
663
 
664
- #: ../lib/pz-linkcard-settings.php:403 ../lib/pz-linkcard-settings.php:656
665
- #: ../lib/pz-linkcard-settings.php:720 ../lib/pz-linkcard-settings.php:784
666
  msgid "Thumbnail"
667
  msgstr "サムネイル"
668
 
669
- #: ../lib/pz-linkcard-settings.php:406
670
  msgid "Right"
671
  msgstr "右側"
672
 
673
- #: ../lib/pz-linkcard-settings.php:407
674
  msgid "Left"
675
  msgstr "左側"
676
 
677
- #: ../lib/pz-linkcard-settings.php:408
678
  msgid "Upper"
679
  msgstr "上側"
680
 
681
- #: ../lib/pz-linkcard-settings.php:415 ../lib/pz-linkcard-settings.php:437
682
  msgid "Shadow"
683
  msgstr "影を付ける"
684
 
685
- #: ../lib/pz-linkcard-settings.php:420
686
  msgid "Hollow content area"
687
  msgstr "記事の情報に枠を付ける"
688
 
689
- #: ../lib/pz-linkcard-settings.php:425
690
  msgid "Display excerpt"
691
  msgstr "抜粋文を表示する"
692
 
693
- #: ../lib/pz-linkcard-settings.php:430
694
  msgid "Hollow"
695
  msgstr "内側に影を付ける"
696
 
697
- #: ../lib/pz-linkcard-settings.php:443
698
  msgid "Radius"
699
  msgstr "角を丸める"
700
 
701
- #: ../lib/pz-linkcard-settings.php:471
702
  msgid "Border"
703
  msgstr "枠線の太さ"
704
 
705
- #: ../lib/pz-linkcard-settings.php:473 ../lib/pz-linkcard-settings.php:528
706
- #: ../lib/pz-linkcard-settings.php:557 ../lib/pz-linkcard-settings.php:586
707
- #: ../lib/pz-linkcard-settings.php:614
708
  msgid "Color"
709
  msgstr "色"
710
 
711
- #: ../lib/pz-linkcard-settings.php:478
712
  msgid "none"
713
  msgstr "なし"
714
 
715
- #: ../lib/pz-linkcard-settings.php:479
716
  msgid "solid"
717
  msgstr "solid/実線"
718
 
719
- #: ../lib/pz-linkcard-settings.php:480
720
  msgid "dotted"
721
  msgstr "dotted/点線"
722
 
723
- #: ../lib/pz-linkcard-settings.php:481
724
  msgid "dashed"
725
  msgstr "dashed/破線"
726
 
727
- #: ../lib/pz-linkcard-settings.php:482
728
  msgid "double"
729
  msgstr "double/二重線"
730
 
731
- #: ../lib/pz-linkcard-settings.php:483
732
  msgid "groove"
733
  msgstr "groove/立体(へこみ)"
734
 
735
- #: ../lib/pz-linkcard-settings.php:484
736
  msgid "ridge"
737
  msgstr "ridge/立体(隆起)"
738
 
739
- #: ../lib/pz-linkcard-settings.php:485
740
  msgid "inset"
741
  msgstr "inset/立体(押したボタンのような効果)"
742
 
743
- #: ../lib/pz-linkcard-settings.php:486
744
  msgid "outset"
745
  msgstr "outset/立体(ボタンのような効果)"
746
 
747
- #: ../lib/pz-linkcard-settings.php:498
748
  msgid "Reset img style"
749
  msgstr "CSSリセット(img)"
750
 
751
- #: ../lib/pz-linkcard-settings.php:499
752
  msgid ""
753
  "When unnecessary frame is displayed on the image, you can improve it by case"
754
  msgstr "画像がずれて表示されるときに改善される可能性が有ります(推奨)"
755
 
756
- #: ../lib/pz-linkcard-settings.php:503
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
757
  msgid "Display SNS Count"
758
  msgstr "シェア数を表示する"
759
 
760
- #: ../lib/pz-linkcard-settings.php:507
761
  msgid "After Title"
762
  msgstr "タイトルの後ろ"
763
 
764
- #: ../lib/pz-linkcard-settings.php:508
765
  msgid "After site-name"
766
  msgstr "サイト情報の後ろ"
767
 
768
- #: ../lib/pz-linkcard-settings.php:510
769
  msgid "Twitter"
770
  msgstr "ツイッター"
771
 
772
- #: ../lib/pz-linkcard-settings.php:511
773
  msgid "Facebook"
774
  msgstr "フェイスブック(シェア数)"
775
 
776
- #: ../lib/pz-linkcard-settings.php:512
777
  msgid "Hatena"
778
  msgstr "はてなブックマーク"
779
 
780
- #: ../lib/pz-linkcard-settings.php:513
781
- msgid ""
782
- "There is a possibility that the screen display is slow If you enable this "
783
- "setting."
784
- msgstr "有効にする取得APIによっては表示が遅くなる場合があります。"
785
-
786
- #: ../lib/pz-linkcard-settings.php:519
787
- msgid "Letters"
788
- msgstr "文字設定"
789
 
790
- #: ../lib/pz-linkcard-settings.php:523
791
  msgid "Site-info."
792
  msgstr "サイト情報"
793
 
794
- #: ../lib/pz-linkcard-settings.php:531 ../lib/pz-linkcard-settings.php:560
795
- #: ../lib/pz-linkcard-settings.php:589 ../lib/pz-linkcard-settings.php:617
796
  msgid "Outline"
797
  msgstr "縁取り"
798
 
799
- #: ../lib/pz-linkcard-settings.php:541 ../lib/pz-linkcard-settings.php:570
800
- #: ../lib/pz-linkcard-settings.php:599 ../lib/pz-linkcard-settings.php:627
801
  msgid "Size"
802
  msgstr "大きさ"
803
 
804
- #: ../lib/pz-linkcard-settings.php:547 ../lib/pz-linkcard-settings.php:576
805
- #: ../lib/pz-linkcard-settings.php:633
806
  msgid "Length"
807
  msgstr "桁数"
808
 
809
- #: ../lib/pz-linkcard-settings.php:637
810
  msgid "Resize"
811
  msgstr "幅に合わせて縮小"
812
 
813
- #: ../lib/pz-linkcard-settings.php:638
814
  msgid "Adjust thumbnail and letter size according to width"
815
  msgstr "画面幅に合わせて文字とサムネイルの大きさを調整します。"
816
 
817
- #: ../lib/pz-linkcard-settings.php:644
818
- msgid "External link"
819
- msgstr "外部リンク"
820
 
821
- #: ../lib/pz-linkcard-settings.php:648 ../lib/pz-linkcard-settings.php:712
822
- #: ../lib/pz-linkcard-settings.php:776
823
  msgid "Background Color"
824
  msgstr "背景色"
825
 
826
- #: ../lib/pz-linkcard-settings.php:652
827
  msgid "Background image"
828
  msgstr "背景画像"
829
 
830
- #: ../lib/pz-linkcard-settings.php:660 ../lib/pz-linkcard-settings.php:672
831
- #: ../lib/pz-linkcard-settings.php:724 ../lib/pz-linkcard-settings.php:735
832
  msgid "Direct"
833
  msgstr "直接取得する"
834
 
835
- #: ../lib/pz-linkcard-settings.php:661 ../lib/pz-linkcard-settings.php:673
836
- #: ../lib/pz-linkcard-settings.php:725 ../lib/pz-linkcard-settings.php:736
837
  msgid "Use WebAPI"
838
  msgstr "WebAPIを利用する"
839
 
840
- #: ../lib/pz-linkcard-settings.php:662 ../lib/pz-linkcard-settings.php:674
841
- #: ../lib/pz-linkcard-settings.php:726 ../lib/pz-linkcard-settings.php:737
842
  msgid "Use WebAPI ,If can not direct"
843
  msgstr "直接取得できない場合、WebAPIを利用する"
844
 
845
- #: ../lib/pz-linkcard-settings.php:668 ../lib/pz-linkcard-settings.php:731
846
- #: ../lib/pz-linkcard-settings.php:788
847
  msgid "Favicon"
848
  msgstr "サイトアイコン"
849
 
850
- #: ../lib/pz-linkcard-settings.php:683 ../lib/pz-linkcard-settings.php:746
851
- #: ../lib/pz-linkcard-settings.php:796
 
 
 
 
852
  msgid "Open new window/tab"
853
  msgstr "新しいウィンドウで開く"
854
 
855
- #: ../lib/pz-linkcard-settings.php:687 ../lib/pz-linkcard-settings.php:750
856
  msgid "All client"
857
  msgstr "すべての端末"
858
 
859
- #: ../lib/pz-linkcard-settings.php:688 ../lib/pz-linkcard-settings.php:751
860
  msgid "Other than mobile"
861
  msgstr "モバイル端末以外"
862
 
863
- #: ../lib/pz-linkcard-settings.php:693 ../lib/pz-linkcard-settings.php:756
864
  msgid "Get contents"
865
  msgstr "記事取得方法"
866
 
867
- #: ../lib/pz-linkcard-settings.php:695 ../lib/pz-linkcard-settings.php:762
868
  msgid "Initially acquired only from the content"
869
  msgstr "カード管理画面に記録されている内容から表示する"
870
 
871
- #: ../lib/pz-linkcard-settings.php:699
872
  msgid "Set nofollow"
873
  msgstr "nofollowを付与する"
874
 
875
- #: ../lib/pz-linkcard-settings.php:700
876
  msgid "In the case of an external site, it puts the \"nofollow\""
877
  msgstr "外部リンクのリンクを nofollow にする"
878
 
879
- #: ../lib/pz-linkcard-settings.php:703
880
  msgid "Use HatenaBlogCard"
881
  msgstr "はてなブログカードを利用する"
882
 
883
- #: ../lib/pz-linkcard-settings.php:704
884
  msgid "External links will use Always HatenaBlogCard."
885
  msgstr "外部リンクは「はてなブログカード」を利用する"
886
 
887
- #: ../lib/pz-linkcard-settings.php:704 ../lib/pz-linkcard-settings.php:934
888
  msgid "(Not recommended)"
889
  msgstr "(非推奨)"
890
 
891
- #: ../lib/pz-linkcard-settings.php:709
892
- msgid "Internal link"
893
- msgstr "内部リンク"
894
 
895
- #: ../lib/pz-linkcard-settings.php:716 ../lib/pz-linkcard-settings.php:780
896
  msgid "Background Image"
897
  msgstr "背景画像"
898
 
899
- #: ../lib/pz-linkcard-settings.php:760
900
  msgid "Always get the latest from the content"
901
  msgstr "常に最新の記事内容から抜粋文を作成する"
902
 
903
- #: ../lib/pz-linkcard-settings.php:761
904
  msgid "Always get the latest from the excerpt"
905
  msgstr "抜粋文が設定されている投稿はそちらを優先する"
906
 
907
- #: ../lib/pz-linkcard-settings.php:767
908
  msgid "Retry get PID"
909
  msgstr "記事URLの再取得"
910
 
911
- #: ../lib/pz-linkcard-settings.php:768
912
  msgid "When the `Post ID` can not be acquired, it is acquired again."
913
  msgstr "記事IDが取得できなかった場合に、リダイレクト先のURLを取得する。"
914
 
915
- #: ../lib/pz-linkcard-settings.php:773
916
- msgid "Same-page link"
917
- msgstr "同ページへのリンク"
918
 
919
- #: ../lib/pz-linkcard-settings.php:785 ../lib/pz-linkcard-settings.php:789
920
- #: ../lib/pz-linkcard-settings.php:797
921
  msgid "It is common with setting Internal-link"
922
  msgstr "内部リンク用の設定が使用されます"
923
 
924
- #: ../lib/pz-linkcard-settings.php:802
925
- msgid "Web-API"
926
- msgstr "画像取得APIの指定"
927
 
928
- #: ../lib/pz-linkcard-settings.php:805
929
  msgid "Favicon API"
930
  msgstr "ファビコンの取得API"
931
 
932
- #: ../lib/pz-linkcard-settings.php:808
933
  msgid ""
934
  "%DOMAIN% replace to domain name (ex. poporon.poponet.jp )<br>%DOMAIN_URL% "
935
  "replace to domain URL (ex. http://poporon.poponet.jp )"
@@ -938,81 +898,81 @@ msgstr ""
938
  "%DOMAIN_URL% と記述するとドメインのURL(例.http://poporon.poponet.jp)に置き"
939
  "換わります。"
940
 
941
- #: ../lib/pz-linkcard-settings.php:809 ../lib/pz-linkcard-settings.php:818
 
 
 
 
942
  msgid "ex1."
943
  msgstr "例1."
944
 
945
- #: ../lib/pz-linkcard-settings.php:810 ../lib/pz-linkcard-settings.php:819
946
  msgid "ex2."
947
  msgstr "例2."
948
 
949
- #: ../lib/pz-linkcard-settings.php:814
950
  msgid "Thumbnail API"
951
  msgstr "サムネイル画像の取得API"
952
 
953
- #: ../lib/pz-linkcard-settings.php:817
954
- msgid "%URL% replace to URL"
955
- msgstr "%URL% と記述するとURLに置き換わります"
956
-
957
- #: ../lib/pz-linkcard-settings.php:825
958
- msgid "Link check"
959
- msgstr "リンク先のチェック"
960
 
961
- #: ../lib/pz-linkcard-settings.php:828
962
  msgid "Do not link at error"
963
  msgstr "エラーのときリンクしない"
964
 
965
- #: ../lib/pz-linkcard-settings.php:829
966
  msgid "When access status is \"403\", \"404\", \"410\", unlink"
967
  msgstr "ステータスが「403」「404」「410」のときにリンクを無効にします"
968
 
969
- #: ../lib/pz-linkcard-settings.php:832
970
  msgid "SSL verification disabled"
971
  msgstr "SSL検証を無効"
972
 
973
- #: ../lib/pz-linkcard-settings.php:833
974
  msgid "Try setting if the contents of the SSL site can not be acquired."
975
  msgstr ""
976
  "SSLサイトのタイトルや記事内容が取得できない場合に設定することで取得できる可能"
977
  "性があります。"
978
 
979
- #: ../lib/pz-linkcard-settings.php:836
980
  msgid "Follow location"
981
  msgstr "リダイレクト処理"
982
 
983
- #: ../lib/pz-linkcard-settings.php:837
984
  msgid "Track when the link destination is redirected."
985
  msgstr "リンク先がリダイレクトされている場合に追跡します。"
986
 
987
- #: ../lib/pz-linkcard-settings.php:840
988
  msgid "Set referer"
989
  msgstr "リファラーの通知"
990
 
991
- #: ../lib/pz-linkcard-settings.php:841
992
  msgid "Notify the article URL to the link destination."
993
  msgstr "リンク先に記事のURLを知らせます。"
994
 
995
- #: ../lib/pz-linkcard-settings.php:844
996
  msgid "Use User-Agent"
997
  msgstr "ユーザーエージェントの通知"
998
 
999
- #: ../lib/pz-linkcard-settings.php:846
1000
  msgid "Notify using Pz-LinkCard to the link destination."
1001
  msgstr "リンク先にPz-LinkCardを使用していることを知らせます。"
1002
 
1003
- #: ../lib/pz-linkcard-settings.php:851
1004
  msgid "Broken link checker"
1005
  msgstr "リンク切れチェック"
1006
 
1007
- #: ../lib/pz-linkcard-settings.php:852
1008
  msgid "Alive confirmation of the link destination."
1009
  msgstr "リンク先がアクセスできるか定期的に確認します。"
1010
 
1011
- #: ../lib/pz-linkcard-settings.php:855
1012
  msgid "Multi-site compatible"
1013
  msgstr "サブディレクトリを外部リンクにする"
1014
 
1015
- #: ../lib/pz-linkcard-settings.php:856
1016
  msgid ""
1017
  "In the case of the multi-site of the subdirectory type, the site under the "
1018
  "subdirectory is judged as an external site."
@@ -1020,142 +980,259 @@ msgstr ""
1020
  "サブディレクトリ型のマルチサイトの場合で、メインサイトからサブサイトを外部サ"
1021
  "イトとして判定する。"
1022
 
1023
- #: ../lib/pz-linkcard-settings.php:861
1024
- msgid "Debug"
1025
- msgstr "詳しい人用(Debug)"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1026
 
1027
- #: ../lib/pz-linkcard-settings.php:864
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1028
  msgid "Trailing slash"
1029
  msgstr "末尾のスラッシュ"
1030
 
1031
- #: ../lib/pz-linkcard-settings.php:868
1032
  msgid "As it"
1033
  msgstr "そのまま"
1034
 
1035
- #: ../lib/pz-linkcard-settings.php:869
1036
  msgid "When only domain name, remove"
1037
  msgstr "ドメイン名のみのときだけ削除"
1038
 
1039
- #: ../lib/pz-linkcard-settings.php:870
1040
  msgid "Always remove"
1041
  msgstr "常に削除"
1042
 
1043
- #: ../lib/pz-linkcard-settings.php:876
 
 
 
 
1044
  msgid "specified CSS"
1045
  msgstr "指定したCSSを使用"
1046
 
1047
- #: ../lib/pz-linkcard-settings.php:877
1048
  msgid "Use specified CSS file"
1049
  msgstr "指定したCSSファイルを使用する"
1050
 
1051
- #: ../lib/pz-linkcard-settings.php:880 ../lib/pz-linkcard-settings.php:884
1052
  msgid "CSS file"
1053
  msgstr "CSSファイル名"
1054
 
1055
- #: ../lib/pz-linkcard-settings.php:881
1056
  msgid "(ex. https://exsample.com/style.css )"
1057
  msgstr "例.https://exsample.com/style.css"
1058
 
1059
- #: ../lib/pz-linkcard-settings.php:888
1060
  msgid "CSS URL"
1061
  msgstr "CSSファイルのURL"
1062
 
1063
- #: ../lib/pz-linkcard-settings.php:893
1064
  msgid "Class ID to be added(for PC)"
1065
  msgstr "PCのときに追加するクラス名"
1066
 
1067
- #: ../lib/pz-linkcard-settings.php:897
1068
  msgid "Class ID to be added(for Mobile)"
1069
  msgstr "モバイルのときに追加するクラス名"
1070
 
1071
- #: ../lib/pz-linkcard-settings.php:902
1072
- msgid "Google AMP"
1073
- msgstr ""
1074
 
1075
- #: ../lib/pz-linkcard-settings.php:903
1076
- msgid "Corresponds to simple display for Google AMP."
1077
  msgstr ""
1078
  "アクセスされたURLの末尾が「/amp」「/amp/」「/?amp=1」の場合、簡易表示に切り替"
1079
  "える。"
1080
 
1081
- #: ../lib/pz-linkcard-settings.php:907
1082
  msgid "IDNA Convert"
1083
  msgstr "IDNAドメインの表示"
1084
 
1085
- #: ../lib/pz-linkcard-settings.php:908
1086
  msgid "Convert domain name from IDNA ASCII to Unicode."
1087
  msgstr ""
1088
  "IDNAのASCII方式でエンコードされたドメイン名をUnicodeに変換して表示します(日"
1089
  "本語ドメインなど)"
1090
 
1091
- #: ../lib/pz-linkcard-settings.php:912
1092
  msgid "Display link to author page"
1093
  msgstr "プラグイン名を表示する"
1094
 
1095
- #: ../lib/pz-linkcard-settings.php:916
1096
  msgid "Plugin URL"
1097
  msgstr "プラグインページURL"
1098
 
1099
- #: ../lib/pz-linkcard-settings.php:920
1100
  msgid "Plugin name"
1101
  msgstr "プラグイン名"
1102
 
1103
- #: ../lib/pz-linkcard-settings.php:924
1104
  msgid "Plugin version"
1105
  msgstr "プラグインバージョン"
1106
 
1107
- #: ../lib/pz-linkcard-settings.php:928
1108
  msgid "Saved datetime"
1109
  msgstr "保存した日時"
1110
 
1111
- #: ../lib/pz-linkcard-settings.php:933
1112
  msgid "Display elapsed time"
1113
  msgstr "実行時間の表示"
1114
 
1115
- #: ../lib/pz-linkcard-settings.php:934
1116
  msgid "Output the elapsed time to HTML comment."
1117
  msgstr "作成にかかった時間をコメントとしてHTMLへ出力する"
1118
 
1119
- #: ../lib/pz-linkcard-settings.php:940
1120
  msgid "Initialize"
1121
  msgstr "初期化"
1122
 
1123
- #: ../lib/pz-linkcard-settings.php:943
1124
  msgid "Return to the initial setting"
1125
  msgstr "設定を初期状態へ戻す"
1126
 
1127
- #: ../lib/pz-linkcard-settings.php:949
1128
  msgid "etc"
1129
  msgstr "その他"
1130
 
1131
- #: ../lib/pz-linkcard-settings.php:952
1132
  msgid "Author's site"
1133
  msgstr "作者のサイト"
1134
 
1135
- #: ../lib/pz-linkcard-settings.php:953
1136
  msgid "Popozure."
1137
  msgstr "ぽぽづれ。"
1138
 
1139
- #: ../lib/pz-linkcard-settings.php:953
1140
  msgid "Poporon's PC daily diary"
1141
  msgstr "ぽぽろんのパソコンつれづれ(ズレズレ?)日記"
1142
 
1143
- #: ../lib/pz-linkcard-settings.php:956
1144
- msgid "Plugin's page"
1145
- msgstr "プラグインのページ"
1146
-
1147
- #: ../lib/pz-linkcard-settings.php:960
1148
  msgid "Donation"
1149
  msgstr "寄付"
1150
 
1151
- #: ../lib/pz-linkcard-style.php:461
1152
  msgid "Style sheet saved."
1153
  msgstr "設定を元にスタイルシートを自動生成しました。"
1154
 
1155
- #: ../lib/pz-linkcard-style.php:463
1156
  msgid "Style sheet failed."
1157
  msgstr "スタイルシートの自動生成に失敗しました。"
1158
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1159
  #~ msgid "It is common with setting External-link"
1160
  #~ msgstr "外部リンク用の設定が使用されます"
1161
 
4
  msgstr ""
5
  "Project-Id-Version: Pz-LinkCard\n"
6
  "Report-Msgid-Bugs-To: http://wppolyglots.wordpress.com\n"
7
+ "POT-Creation-Date: 2018-03-07 22:24+0900\n"
8
+ "PO-Revision-Date: 2018-03-07 22:28+0900\n"
9
  "Last-Translator: \n"
10
  "Language-Team: poporon\n"
11
  "Language: ja_JP\n"
19
  "Plural-Forms: nplurals=1; plural=0;\n"
20
  "X-Poedit-SearchPath-0: ..\n"
21
 
22
+ #: ../pz-linkcard.php:304
23
  msgid "Incorrect URL specification."
24
  msgstr ""
25
 
26
+ #: ../pz-linkcard.php:1120
27
  msgid "Category"
28
  msgstr "カテゴリー"
29
 
30
+ #: ../pz-linkcard.php:1120 ../pz-linkcard.php:1133
31
  msgid "‘"
32
  msgstr "「"
33
 
34
+ #: ../pz-linkcard.php:1120 ../pz-linkcard.php:1133
35
  msgid "’"
36
  msgstr "」"
37
 
38
+ #: ../pz-linkcard.php:1121 ../pz-linkcard.php:1134
39
  msgid "("
40
  msgstr "("
41
 
42
+ #: ../pz-linkcard.php:1121 ../pz-linkcard.php:1134
43
  msgid "Count"
44
  msgstr "件数"
45
 
46
+ #: ../pz-linkcard.php:1121 ../pz-linkcard.php:1134
47
  msgid ")"
48
  msgstr ")"
49
 
50
+ #: ../pz-linkcard.php:1133
51
  msgid "Tag"
52
  msgstr "タグ"
53
 
54
+ #: ../pz-linkcard.php:1527
55
  msgid "Linkcard"
56
  msgstr "リンクカード"
57
 
58
+ #: ../pz-linkcard.php:1527
59
  msgid "Make Linkcard"
60
  msgstr "リンクカードのショートコードを挿入する"
61
 
62
+ #: ../pz-linkcard.php:1535
63
  msgid "Invalid URL parameter in "
64
  msgstr "URLパラメーターの指定が無効です→"
65
 
66
+ #: ../pz-linkcard.php:1566 ../lib/pz-linkcard-cacheman.php:6
67
  msgid "LinkCard cache manager"
68
  msgstr "リンクカード/DBキャッシュ管理"
69
 
70
+ #: ../pz-linkcard.php:1566
71
  msgid "Pz LkC Cache"
72
  msgstr "Pz カード管理"
73
 
74
+ #: ../pz-linkcard.php:1567 ../lib/pz-linkcard-settings.php:4
75
  msgid "LinkCard Settings"
76
  msgstr "リンクカード設定"
77
 
78
+ #: ../pz-linkcard.php:1567
79
  msgid "Pz LinkCard"
80
  msgstr "Pz カード設定"
81
 
82
+ #: ../pz-linkcard.php:1654
83
  msgid "Settings"
84
  msgstr "設定"
85
 
86
+ #: ../pz-linkcard.php:1654
87
  msgid "Manage"
88
  msgstr "管理"
89
 
90
  #: ../lib/pz-linkcard-cacheman-edit.php:14
91
+ #: ../lib/pz-linkcard-cacheman-list.php:206 ../lib/pz-linkcard-edit.php:13
92
  msgid "ID"
93
  msgstr ""
94
 
95
  #: ../lib/pz-linkcard-cacheman-edit.php:18
96
+ #: ../lib/pz-linkcard-cacheman-list.php:207 ../lib/pz-linkcard-edit.php:17
97
  msgid "URL key"
98
  msgstr "URLキー"
99
 
100
  #: ../lib/pz-linkcard-cacheman-edit.php:22
101
+ #: ../lib/pz-linkcard-cacheman-list.php:208 ../lib/pz-linkcard-edit.php:21
102
+ #: ../lib/pz-linkcard-settings.php:552
103
  msgid "URL"
104
  msgstr "URL"
105
 
108
  msgstr "サイト名称"
109
 
110
  #: ../lib/pz-linkcard-cacheman-edit.php:30
111
+ #: ../lib/pz-linkcard-cacheman-list.php:212 ../lib/pz-linkcard-edit.php:33
112
  msgid "Domain"
113
  msgstr "ドメイン"
114
 
115
  #: ../lib/pz-linkcard-cacheman-edit.php:34
116
+ #: ../lib/pz-linkcard-cacheman-list.php:209 ../lib/pz-linkcard-edit.php:37
117
+ #: ../lib/pz-linkcard-settings.php:523
118
  msgid "Title"
119
  msgstr "タイトル"
120
 
121
  #: ../lib/pz-linkcard-cacheman-edit.php:38
122
+ #: ../lib/pz-linkcard-cacheman-list.php:210 ../lib/pz-linkcard-edit.php:41
123
+ #: ../lib/pz-linkcard-settings.php:580
124
  msgid "Excerpt"
125
  msgstr "抜粋文"
126
 
127
  #: ../lib/pz-linkcard-cacheman-edit.php:42
128
+ #: ../lib/pz-linkcard-cacheman-list.php:211 ../lib/pz-linkcard-edit.php:45
129
  msgid "Charset"
130
  msgstr "文字セット"
131
 
142
  msgstr "ファビコンURL"
143
 
144
  #: ../lib/pz-linkcard-cacheman-edit.php:54
145
+ #: ../lib/pz-linkcard-cacheman-list.php:216 ../lib/pz-linkcard-edit.php:57
146
  msgid "Result code"
147
  msgstr "結果コード"
148
 
149
  #: ../lib/pz-linkcard-cacheman-edit.php:92
150
+ #: ../lib/pz-linkcard-cacheman-list.php:215 ../lib/pz-linkcard-edit.php:61
151
  msgid "Post ID"
152
  msgstr "記事ID"
153
 
156
  msgstr ""
157
 
158
  #: ../lib/pz-linkcard-cacheman-edit.php:103
159
+ #: ../lib/pz-linkcard-cacheman-list.php:213 ../lib/pz-linkcard-edit.php:67
160
  msgid "Tw"
161
  msgstr ""
162
 
163
  #: ../lib/pz-linkcard-cacheman-edit.php:104
164
+ #: ../lib/pz-linkcard-cacheman-list.php:213 ../lib/pz-linkcard-edit.php:68
165
  msgid "fb"
166
  msgstr ""
167
 
168
  #: ../lib/pz-linkcard-cacheman-edit.php:105
169
+ #: ../lib/pz-linkcard-cacheman-list.php:213 ../lib/pz-linkcard-edit.php:69
170
  msgid "B!"
171
  msgstr ""
172
 
179
  msgstr "次回更新日時"
180
 
181
  #: ../lib/pz-linkcard-cacheman-edit.php:117
182
+ #: ../lib/pz-linkcard-cacheman-list.php:214 ../lib/pz-linkcard-edit.php:81
183
  msgid "Regist"
184
  msgstr "登録日時"
185
 
191
  msgid "Cancel"
192
  msgstr "キャンセル"
193
 
194
+ #: ../lib/pz-linkcard-cacheman-list.php:142
195
  msgid "All"
196
  msgstr "すべて"
197
 
198
+ #: ../lib/pz-linkcard-cacheman-list.php:143
199
  msgid "Internal"
200
  msgstr "内部リンク"
201
 
202
+ #: ../lib/pz-linkcard-cacheman-list.php:144
203
  msgid "External"
204
  msgstr "外部リンク"
205
 
206
+ #: ../lib/pz-linkcard-cacheman-list.php:145
207
  msgid "Modify"
208
  msgstr "更新あり"
209
 
210
+ #: ../lib/pz-linkcard-cacheman-list.php:146
211
+ msgid "Unlink"
212
+ msgstr "リンク切れ"
213
+
214
+ #: ../lib/pz-linkcard-cacheman-list.php:156
215
  msgid "Select batch"
216
  msgstr "一括処理を選択"
217
 
218
+ #: ../lib/pz-linkcard-cacheman-list.php:158
219
+ #: ../lib/pz-linkcard-cacheman-list.php:227
220
  msgid "Select"
221
  msgstr "選択してください"
222
 
223
+ #: ../lib/pz-linkcard-cacheman-list.php:159
224
  msgid "Renew cache"
225
  msgstr "記事内容を再取得する"
226
 
227
+ #: ../lib/pz-linkcard-cacheman-list.php:160
228
  msgid "Renew SNS count"
229
  msgstr "ソーシャルカウントを再取得する"
230
 
231
+ #: ../lib/pz-linkcard-cacheman-list.php:161
232
  msgid "Check status"
233
  msgstr "リンクが有効かチェックする"
234
 
235
+ #: ../lib/pz-linkcard-cacheman-list.php:162
236
  msgid "Delete from cache"
237
  msgstr "キャッシュから削除する"
238
 
239
+ #: ../lib/pz-linkcard-cacheman-list.php:164
240
  msgid "Submit"
241
  msgstr "適用"
242
 
243
+ #: ../lib/pz-linkcard-cacheman-list.php:168
244
  msgid "Select domain"
245
  msgstr "ドメインを選択"
246
 
247
+ #: ../lib/pz-linkcard-cacheman-list.php:170
248
  msgid "All domain"
249
  msgstr "すべてのドメイン"
250
 
251
+ #: ../lib/pz-linkcard-cacheman-list.php:183
252
  msgid "Refine search"
253
  msgstr "絞り込み検索"
254
 
255
+ #: ../lib/pz-linkcard-cacheman-list.php:188
256
  msgid "items"
257
  msgstr "項目"
258
 
259
+ #: ../lib/pz-linkcard-cacheman-list.php:205
260
  msgid "Select all"
261
  msgstr "すべて選択"
262
 
263
+ #: ../lib/pz-linkcard-cacheman-list.php:216
264
  msgid "(last)"
265
  msgstr ""
266
 
267
+ #: ../lib/pz-linkcard-cacheman-list.php:281
268
  msgid "edit"
269
  msgstr "編集"
270
 
271
+ #: ../lib/pz-linkcard-cacheman-list.php:282
272
+ #: ../lib/pz-linkcard-cacheman-list.php:283
273
  msgid "Are you sure?"
274
  msgstr "実行します。"
275
 
276
+ #: ../lib/pz-linkcard-cacheman-list.php:282
277
  msgid "renew"
278
  msgstr "再取得"
279
 
280
+ #: ../lib/pz-linkcard-cacheman-list.php:283
281
  msgid "delete"
282
  msgstr "削除"
283
 
284
+ #: ../lib/pz-linkcard-cacheman-list.php:338
285
  msgid "Export"
286
  msgstr "エクスポート"
287
 
342
  msgid "Short code is not set."
343
  msgstr "ショートコードが指定されていません。"
344
 
345
+ #: ../lib/pz-linkcard-settings.php:108
346
  msgid "Changes saved."
347
  msgstr "設定を保存しました。"
348
 
349
+ #: ../lib/pz-linkcard-settings.php:110
350
  msgid "Not changed."
351
  msgstr "設定は変更されませんでした。"
352
 
353
+ #: ../lib/pz-linkcard-settings.php:121
354
  msgid "Error"
355
  msgstr "エラー表示"
356
 
357
+ #: ../lib/pz-linkcard-settings.php:124
358
  msgid "Invalid URL"
359
  msgstr "URL指定エラー"
360
 
361
+ #: ../lib/pz-linkcard-settings.php:125
362
  msgid "Uncheck to cancel the error condition."
363
  msgstr "チェックを外すとエラー状態を解除します。"
364
 
365
+ #: ../lib/pz-linkcard-settings.php:128
366
  msgid "Error URL"
367
  msgstr "URL指定エラー"
368
 
369
+ #: ../lib/pz-linkcard-settings.php:132
370
  msgid "Error Time"
371
  msgstr "エラー発生時刻"
372
 
373
+ #: ../lib/pz-linkcard-settings.php:139
374
+ msgid "Basic settings"
375
+ msgstr "基本の設定"
376
 
377
+ #: ../lib/pz-linkcard-settings.php:142
378
+ msgid "Easy format"
379
  msgstr "かんたん書式設定"
380
 
381
+ #: ../lib/pz-linkcard-settings.php:145 ../lib/pz-linkcard-settings.php:344
382
+ #: ../lib/pz-linkcard-settings.php:365 ../lib/pz-linkcard-settings.php:466
383
+ #: ../lib/pz-linkcard-settings.php:478 ../lib/pz-linkcard-settings.php:630
384
+ #: ../lib/pz-linkcard-settings.php:642 ../lib/pz-linkcard-settings.php:661
385
+ #: ../lib/pz-linkcard-settings.php:698 ../lib/pz-linkcard-settings.php:709
386
+ #: ../lib/pz-linkcard-settings.php:728
387
  msgid "None"
388
  msgstr "なし"
389
 
390
+ #: ../lib/pz-linkcard-settings.php:146
391
  msgid "Pz-LkC Default"
392
  msgstr "Pz リンクカード 標準書式"
393
 
394
+ #: ../lib/pz-linkcard-settings.php:147
395
  msgid "Simple"
396
  msgstr "シンプル"
397
 
398
+ #: ../lib/pz-linkcard-settings.php:148
399
  msgid "Square"
400
  msgstr "スクエア"
401
 
402
+ #: ../lib/pz-linkcard-settings.php:149
403
  msgid "Cellophane tape \"center\""
404
  msgstr "セロハンテープ(中央)"
405
 
406
+ #: ../lib/pz-linkcard-settings.php:150
407
  msgid "Cellophane tape \"Top corner\""
408
  msgstr "セロハンテープ(左上と右上)"
409
 
410
+ #: ../lib/pz-linkcard-settings.php:151
411
  msgid "Cellophane tape \"long\""
412
  msgstr "セロハンテープ(長め)"
413
 
414
+ #: ../lib/pz-linkcard-settings.php:152
415
  msgid "Slanting"
416
  msgstr "斜め"
417
 
418
+ #: ../lib/pz-linkcard-settings.php:153
419
  msgid "3D Rotate"
420
  msgstr "3D回転"
421
 
422
+ #: ../lib/pz-linkcard-settings.php:154
423
  msgid "Curling paper"
424
  msgstr "紙がめくれた効果(テーマとの相性があります)"
425
 
426
+ #: ../lib/pz-linkcard-settings.php:155
427
  msgid "Taping and curling"
428
  msgstr "テープと紙めくれ(テーマとの相性があります)"
429
 
430
+ #: ../lib/pz-linkcard-settings.php:156
431
  msgid "Stitch blue&red"
432
  msgstr "縫い目(青&赤)"
433
 
434
+ #: ../lib/pz-linkcard-settings.php:157
435
  msgid "Stitch green&yellow"
436
  msgstr "縫い目(緑&黄色)"
437
 
438
+ #: ../lib/pz-linkcard-settings.php:158
439
  msgid "Neutral"
440
  msgstr "ブルーグリーン(黒背景推奨)"
441
 
442
+ #: ../lib/pz-linkcard-settings.php:159
443
  msgid "Orange"
444
  msgstr "オレンジ(黒背景推奨)"
445
 
446
+ #: ../lib/pz-linkcard-settings.php:160
447
  msgid "Green"
448
  msgstr "グリーン(黒背景推奨)"
449
 
450
+ #: ../lib/pz-linkcard-settings.php:161
451
  msgid "Blue"
452
  msgstr "ブルー(黒背景推奨)"
453
 
454
+ #: ../lib/pz-linkcard-settings.php:162
455
  msgid "Pushpin"
456
  msgstr "押しピン"
457
 
458
+ #: ../lib/pz-linkcard-settings.php:164
459
  msgid "* It applies over other formatting settings."
460
  msgstr "※ほかの項目よりも優先して適用されます。"
461
 
 
 
 
 
462
  #: ../lib/pz-linkcard-settings.php:169
463
+ msgid "How to (Japanese only)"
464
+ msgstr "使い方"
 
 
 
 
 
465
 
466
+ #: ../lib/pz-linkcard-settings.php:177
467
+ msgid "Position settings"
468
+ msgstr "配置の設定"
 
 
 
 
 
 
 
 
469
 
470
  #: ../lib/pz-linkcard-settings.php:180
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
471
  msgid "Link the whole"
472
  msgstr "カード全体をリンク"
473
 
474
+ #: ../lib/pz-linkcard-settings.php:184
475
  msgid "Enclose the entire card at anchor"
476
  msgstr ""
477
  "カード全体をAタグで囲って、どこをクリックしてもリンク先を開くようにします。"
478
 
479
+ #: ../lib/pz-linkcard-settings.php:190
480
+ msgid "Margin"
481
+ msgstr "余白"
482
 
483
+ #: ../lib/pz-linkcard-settings.php:197 ../lib/pz-linkcard-settings.php:228
484
  msgid "Margin top"
485
  msgstr "上の余白"
486
 
487
+ #: ../lib/pz-linkcard-settings.php:199 ../lib/pz-linkcard-settings.php:214
488
+ #: ../lib/pz-linkcard-settings.php:230 ../lib/pz-linkcard-settings.php:244
489
+ #: ../lib/pz-linkcard-settings.php:256 ../lib/pz-linkcard-settings.php:276
490
+ #: ../lib/pz-linkcard-settings.php:292 ../lib/pz-linkcard-settings.php:309
491
  msgid "Not defined"
492
  msgstr "設定しない"
493
 
494
+ #: ../lib/pz-linkcard-settings.php:200 ../lib/pz-linkcard-settings.php:215
495
+ #: ../lib/pz-linkcard-settings.php:236 ../lib/pz-linkcard-settings.php:250
496
+ #: ../lib/pz-linkcard-settings.php:262 ../lib/pz-linkcard-settings.php:282
497
+ #: ../lib/pz-linkcard-settings.php:293 ../lib/pz-linkcard-settings.php:310
498
  msgid "0"
499
  msgstr ""
500
 
501
+ #: ../lib/pz-linkcard-settings.php:201 ../lib/pz-linkcard-settings.php:216
502
+ #: ../lib/pz-linkcard-settings.php:231 ../lib/pz-linkcard-settings.php:245
503
+ #: ../lib/pz-linkcard-settings.php:257 ../lib/pz-linkcard-settings.php:277
504
+ #: ../lib/pz-linkcard-settings.php:294 ../lib/pz-linkcard-settings.php:311
505
  msgid "4px"
506
  msgstr ""
507
 
508
+ #: ../lib/pz-linkcard-settings.php:202 ../lib/pz-linkcard-settings.php:217
509
+ #: ../lib/pz-linkcard-settings.php:232 ../lib/pz-linkcard-settings.php:246
510
+ #: ../lib/pz-linkcard-settings.php:258 ../lib/pz-linkcard-settings.php:278
511
+ #: ../lib/pz-linkcard-settings.php:295 ../lib/pz-linkcard-settings.php:312
512
  msgid "8px"
513
  msgstr ""
514
 
515
+ #: ../lib/pz-linkcard-settings.php:203 ../lib/pz-linkcard-settings.php:218
516
+ #: ../lib/pz-linkcard-settings.php:233 ../lib/pz-linkcard-settings.php:247
517
+ #: ../lib/pz-linkcard-settings.php:259 ../lib/pz-linkcard-settings.php:279
518
+ #: ../lib/pz-linkcard-settings.php:296 ../lib/pz-linkcard-settings.php:313
519
  msgid "16px"
520
  msgstr ""
521
 
522
+ #: ../lib/pz-linkcard-settings.php:204 ../lib/pz-linkcard-settings.php:219
523
+ #: ../lib/pz-linkcard-settings.php:234 ../lib/pz-linkcard-settings.php:248
524
+ #: ../lib/pz-linkcard-settings.php:260 ../lib/pz-linkcard-settings.php:280
525
+ #: ../lib/pz-linkcard-settings.php:297 ../lib/pz-linkcard-settings.php:314
526
  msgid "32px"
527
  msgstr ""
528
 
529
+ #: ../lib/pz-linkcard-settings.php:205 ../lib/pz-linkcard-settings.php:220
530
+ #: ../lib/pz-linkcard-settings.php:235 ../lib/pz-linkcard-settings.php:249
531
+ #: ../lib/pz-linkcard-settings.php:261 ../lib/pz-linkcard-settings.php:281
532
+ #: ../lib/pz-linkcard-settings.php:298 ../lib/pz-linkcard-settings.php:315
533
  msgid "64px"
534
  msgstr ""
535
 
536
+ #: ../lib/pz-linkcard-settings.php:212 ../lib/pz-linkcard-settings.php:242
537
  msgid "Margin left"
538
  msgstr "左の余白"
539
 
540
+ #: ../lib/pz-linkcard-settings.php:254 ../lib/pz-linkcard-settings.php:290
541
  msgid "Margin right"
542
  msgstr "右の余白"
543
 
544
+ #: ../lib/pz-linkcard-settings.php:268 ../lib/pz-linkcard-settings.php:371
545
+ #: ../lib/pz-linkcard-settings.php:450
546
  msgid "Width"
547
  msgstr "幅"
548
 
549
+ #: ../lib/pz-linkcard-settings.php:269 ../lib/pz-linkcard-settings.php:373
550
+ #: ../lib/pz-linkcard-settings.php:515 ../lib/pz-linkcard-settings.php:544
551
+ #: ../lib/pz-linkcard-settings.php:573 ../lib/pz-linkcard-settings.php:601
552
  msgid "Height"
553
  msgstr "高さ"
554
 
555
+ #: ../lib/pz-linkcard-settings.php:274 ../lib/pz-linkcard-settings.php:307
556
  msgid "Margin bottom"
557
  msgstr "下の余白"
558
 
559
+ #: ../lib/pz-linkcard-settings.php:304
560
  msgid "Centering"
561
  msgstr "中央に寄せる"
562
 
563
+ #: ../lib/pz-linkcard-settings.php:326
564
+ msgid "Use blockquote tag"
565
+ msgstr "BLOCKQUOTEタグを使用する"
566
+
567
+ #: ../lib/pz-linkcard-settings.php:327
568
+ msgid "without using DIV tag, and use BLOCKQUOTE tag"
569
+ msgstr "&lt;BLOCKQUOTE&gt;で囲んで引用扱いにします"
570
+
571
+ #: ../lib/pz-linkcard-settings.php:333
572
+ msgid "Display settings"
573
+ msgstr "表示の設定"
574
+
575
+ #: ../lib/pz-linkcard-settings.php:336
576
  msgid "Layout"
577
  msgstr "外観設定"
578
 
579
+ #: ../lib/pz-linkcard-settings.php:342 ../lib/pz-linkcard-settings.php:650
580
+ #: ../lib/pz-linkcard-settings.php:717 ../lib/pz-linkcard-settings.php:771
581
  msgid "Site information"
582
  msgstr "サイト情報"
583
 
584
+ #: ../lib/pz-linkcard-settings.php:345
585
  msgid "Top"
586
  msgstr "上側"
587
 
588
+ #: ../lib/pz-linkcard-settings.php:346
589
  msgid "Bottom"
590
  msgstr "下側"
591
 
592
+ #: ../lib/pz-linkcard-settings.php:348
593
  msgid "Use SiteName"
594
  msgstr "サイト名称を使用"
595
 
596
+ #: ../lib/pz-linkcard-settings.php:353
597
  msgid "Separator line"
598
  msgstr "区切り線"
599
 
600
+ #: ../lib/pz-linkcard-settings.php:360
601
  msgid "Display URL"
602
  msgstr "リンク先のURLを表示する"
603
 
604
+ #: ../lib/pz-linkcard-settings.php:363 ../lib/pz-linkcard-settings.php:627
605
+ #: ../lib/pz-linkcard-settings.php:695 ../lib/pz-linkcard-settings.php:763
606
  msgid "Thumbnail"
607
  msgstr "サムネイル"
608
 
609
+ #: ../lib/pz-linkcard-settings.php:366
610
  msgid "Right"
611
  msgstr "右側"
612
 
613
+ #: ../lib/pz-linkcard-settings.php:367
614
  msgid "Left"
615
  msgstr "左側"
616
 
617
+ #: ../lib/pz-linkcard-settings.php:368
618
  msgid "Upper"
619
  msgstr "上側"
620
 
621
+ #: ../lib/pz-linkcard-settings.php:375 ../lib/pz-linkcard-settings.php:397
622
  msgid "Shadow"
623
  msgstr "影を付ける"
624
 
625
+ #: ../lib/pz-linkcard-settings.php:380
626
  msgid "Hollow content area"
627
  msgstr "記事の情報に枠を付ける"
628
 
629
+ #: ../lib/pz-linkcard-settings.php:385
630
  msgid "Display excerpt"
631
  msgstr "抜粋文を表示する"
632
 
633
+ #: ../lib/pz-linkcard-settings.php:390
634
  msgid "Hollow"
635
  msgstr "内側に影を付ける"
636
 
637
+ #: ../lib/pz-linkcard-settings.php:403
638
  msgid "Radius"
639
  msgstr "角を丸める"
640
 
641
+ #: ../lib/pz-linkcard-settings.php:431
642
  msgid "Border"
643
  msgstr "枠線の太さ"
644
 
645
+ #: ../lib/pz-linkcard-settings.php:433 ../lib/pz-linkcard-settings.php:499
646
+ #: ../lib/pz-linkcard-settings.php:528 ../lib/pz-linkcard-settings.php:557
647
+ #: ../lib/pz-linkcard-settings.php:585
648
  msgid "Color"
649
  msgstr "色"
650
 
651
+ #: ../lib/pz-linkcard-settings.php:438
652
  msgid "none"
653
  msgstr "なし"
654
 
655
+ #: ../lib/pz-linkcard-settings.php:439
656
  msgid "solid"
657
  msgstr "solid/実線"
658
 
659
+ #: ../lib/pz-linkcard-settings.php:440
660
  msgid "dotted"
661
  msgstr "dotted/点線"
662
 
663
+ #: ../lib/pz-linkcard-settings.php:441
664
  msgid "dashed"
665
  msgstr "dashed/破線"
666
 
667
+ #: ../lib/pz-linkcard-settings.php:442
668
  msgid "double"
669
  msgstr "double/二重線"
670
 
671
+ #: ../lib/pz-linkcard-settings.php:443
672
  msgid "groove"
673
  msgstr "groove/立体(へこみ)"
674
 
675
+ #: ../lib/pz-linkcard-settings.php:444
676
  msgid "ridge"
677
  msgstr "ridge/立体(隆起)"
678
 
679
+ #: ../lib/pz-linkcard-settings.php:445
680
  msgid "inset"
681
  msgstr "inset/立体(押したボタンのような効果)"
682
 
683
+ #: ../lib/pz-linkcard-settings.php:446
684
  msgid "outset"
685
  msgstr "outset/立体(ボタンのような効果)"
686
 
687
+ #: ../lib/pz-linkcard-settings.php:458
688
  msgid "Reset img style"
689
  msgstr "CSSリセット(img)"
690
 
691
+ #: ../lib/pz-linkcard-settings.php:459
692
  msgid ""
693
  "When unnecessary frame is displayed on the image, you can improve it by case"
694
  msgstr "画像がずれて表示されるときに改善される可能性が有ります(推奨)"
695
 
696
+ #: ../lib/pz-linkcard-settings.php:463
697
+ msgid "More button"
698
+ msgstr "続きを読むボタン"
699
+
700
+ #: ../lib/pz-linkcard-settings.php:467
701
+ msgid "Text link"
702
+ msgstr "テキストリンク"
703
+
704
+ #: ../lib/pz-linkcard-settings.php:468
705
+ msgid "Simple button"
706
+ msgstr "シンプルなボタン"
707
+
708
+ #: ../lib/pz-linkcard-settings.php:470
709
+ msgid "*"
710
+ msgstr "※"
711
+
712
+ #: ../lib/pz-linkcard-settings.php:470
713
+ msgid ""
714
+ "It is recommended that you leave the card height blank when using this "
715
+ "setting."
716
+ msgstr "この設定を使用するときはカードの高さを空欄にすることをお勧めします。"
717
+
718
+ #: ../lib/pz-linkcard-settings.php:475
719
  msgid "Display SNS Count"
720
  msgstr "シェア数を表示する"
721
 
722
+ #: ../lib/pz-linkcard-settings.php:479
723
  msgid "After Title"
724
  msgstr "タイトルの後ろ"
725
 
726
+ #: ../lib/pz-linkcard-settings.php:480
727
  msgid "After site-name"
728
  msgstr "サイト情報の後ろ"
729
 
730
+ #: ../lib/pz-linkcard-settings.php:482
731
  msgid "Twitter"
732
  msgstr "ツイッター"
733
 
734
+ #: ../lib/pz-linkcard-settings.php:483
735
  msgid "Facebook"
736
  msgstr "フェイスブック(シェア数)"
737
 
738
+ #: ../lib/pz-linkcard-settings.php:484
739
  msgid "Hatena"
740
  msgstr "はてなブックマーク"
741
 
742
+ #: ../lib/pz-linkcard-settings.php:490
743
+ msgid "Letter settings"
744
+ msgstr "文字の設定"
 
 
 
 
 
 
745
 
746
+ #: ../lib/pz-linkcard-settings.php:494
747
  msgid "Site-info."
748
  msgstr "サイト情報"
749
 
750
+ #: ../lib/pz-linkcard-settings.php:502 ../lib/pz-linkcard-settings.php:531
751
+ #: ../lib/pz-linkcard-settings.php:560 ../lib/pz-linkcard-settings.php:588
752
  msgid "Outline"
753
  msgstr "縁取り"
754
 
755
+ #: ../lib/pz-linkcard-settings.php:512 ../lib/pz-linkcard-settings.php:541
756
+ #: ../lib/pz-linkcard-settings.php:570 ../lib/pz-linkcard-settings.php:598
757
  msgid "Size"
758
  msgstr "大きさ"
759
 
760
+ #: ../lib/pz-linkcard-settings.php:518 ../lib/pz-linkcard-settings.php:547
761
+ #: ../lib/pz-linkcard-settings.php:604
762
  msgid "Length"
763
  msgstr "桁数"
764
 
765
+ #: ../lib/pz-linkcard-settings.php:608
766
  msgid "Resize"
767
  msgstr "幅に合わせて縮小"
768
 
769
+ #: ../lib/pz-linkcard-settings.php:609
770
  msgid "Adjust thumbnail and letter size according to width"
771
  msgstr "画面幅に合わせて文字とサムネイルの大きさを調整します。"
772
 
773
+ #: ../lib/pz-linkcard-settings.php:615
774
+ msgid "External link settings"
775
+ msgstr "外部リンクの設定"
776
 
777
+ #: ../lib/pz-linkcard-settings.php:619 ../lib/pz-linkcard-settings.php:687
778
+ #: ../lib/pz-linkcard-settings.php:755
779
  msgid "Background Color"
780
  msgstr "背景色"
781
 
782
+ #: ../lib/pz-linkcard-settings.php:623
783
  msgid "Background image"
784
  msgstr "背景画像"
785
 
786
+ #: ../lib/pz-linkcard-settings.php:631 ../lib/pz-linkcard-settings.php:643
787
+ #: ../lib/pz-linkcard-settings.php:699 ../lib/pz-linkcard-settings.php:710
788
  msgid "Direct"
789
  msgstr "直接取得する"
790
 
791
+ #: ../lib/pz-linkcard-settings.php:632 ../lib/pz-linkcard-settings.php:644
792
+ #: ../lib/pz-linkcard-settings.php:700 ../lib/pz-linkcard-settings.php:711
793
  msgid "Use WebAPI"
794
  msgstr "WebAPIを利用する"
795
 
796
+ #: ../lib/pz-linkcard-settings.php:633 ../lib/pz-linkcard-settings.php:645
797
+ #: ../lib/pz-linkcard-settings.php:701 ../lib/pz-linkcard-settings.php:712
798
  msgid "Use WebAPI ,If can not direct"
799
  msgstr "直接取得できない場合、WebAPIを利用する"
800
 
801
+ #: ../lib/pz-linkcard-settings.php:639 ../lib/pz-linkcard-settings.php:706
802
+ #: ../lib/pz-linkcard-settings.php:767
803
  msgid "Favicon"
804
  msgstr "サイトアイコン"
805
 
806
+ #: ../lib/pz-linkcard-settings.php:654 ../lib/pz-linkcard-settings.php:721
807
+ msgid "Text of more button"
808
+ msgstr "続きを読むボタンの文字"
809
+
810
+ #: ../lib/pz-linkcard-settings.php:658 ../lib/pz-linkcard-settings.php:725
811
+ #: ../lib/pz-linkcard-settings.php:775
812
  msgid "Open new window/tab"
813
  msgstr "新しいウィンドウで開く"
814
 
815
+ #: ../lib/pz-linkcard-settings.php:662 ../lib/pz-linkcard-settings.php:729
816
  msgid "All client"
817
  msgstr "すべての端末"
818
 
819
+ #: ../lib/pz-linkcard-settings.php:663 ../lib/pz-linkcard-settings.php:730
820
  msgid "Other than mobile"
821
  msgstr "モバイル端末以外"
822
 
823
+ #: ../lib/pz-linkcard-settings.php:668 ../lib/pz-linkcard-settings.php:735
824
  msgid "Get contents"
825
  msgstr "記事取得方法"
826
 
827
+ #: ../lib/pz-linkcard-settings.php:670 ../lib/pz-linkcard-settings.php:741
828
  msgid "Initially acquired only from the content"
829
  msgstr "カード管理画面に記録されている内容から表示する"
830
 
831
+ #: ../lib/pz-linkcard-settings.php:674
832
  msgid "Set nofollow"
833
  msgstr "nofollowを付与する"
834
 
835
+ #: ../lib/pz-linkcard-settings.php:675
836
  msgid "In the case of an external site, it puts the \"nofollow\""
837
  msgstr "外部リンクのリンクを nofollow にする"
838
 
839
+ #: ../lib/pz-linkcard-settings.php:678
840
  msgid "Use HatenaBlogCard"
841
  msgstr "はてなブログカードを利用する"
842
 
843
+ #: ../lib/pz-linkcard-settings.php:679
844
  msgid "External links will use Always HatenaBlogCard."
845
  msgstr "外部リンクは「はてなブログカード」を利用する"
846
 
847
+ #: ../lib/pz-linkcard-settings.php:679 ../lib/pz-linkcard-settings.php:982
848
  msgid "(Not recommended)"
849
  msgstr "(非推奨)"
850
 
851
+ #: ../lib/pz-linkcard-settings.php:684
852
+ msgid "Internal link settings"
853
+ msgstr "内部リンクの設定"
854
 
855
+ #: ../lib/pz-linkcard-settings.php:691 ../lib/pz-linkcard-settings.php:759
856
  msgid "Background Image"
857
  msgstr "背景画像"
858
 
859
+ #: ../lib/pz-linkcard-settings.php:739
860
  msgid "Always get the latest from the content"
861
  msgstr "常に最新の記事内容から抜粋文を作成する"
862
 
863
+ #: ../lib/pz-linkcard-settings.php:740
864
  msgid "Always get the latest from the excerpt"
865
  msgstr "抜粋文が設定されている投稿はそちらを優先する"
866
 
867
+ #: ../lib/pz-linkcard-settings.php:746
868
  msgid "Retry get PID"
869
  msgstr "記事URLの再取得"
870
 
871
+ #: ../lib/pz-linkcard-settings.php:747
872
  msgid "When the `Post ID` can not be acquired, it is acquired again."
873
  msgstr "記事IDが取得できなかった場合に、リダイレクト先のURLを取得する。"
874
 
875
+ #: ../lib/pz-linkcard-settings.php:752
876
+ msgid "Same-page link settings"
877
+ msgstr "同ページへのリンクの設定"
878
 
879
+ #: ../lib/pz-linkcard-settings.php:764 ../lib/pz-linkcard-settings.php:768
880
+ #: ../lib/pz-linkcard-settings.php:776
881
  msgid "It is common with setting Internal-link"
882
  msgstr "内部リンク用の設定が使用されます"
883
 
884
+ #: ../lib/pz-linkcard-settings.php:781
885
+ msgid "Web-API settings"
886
+ msgstr "画像取得APIの設定"
887
 
888
+ #: ../lib/pz-linkcard-settings.php:784
889
  msgid "Favicon API"
890
  msgstr "ファビコンの取得API"
891
 
892
+ #: ../lib/pz-linkcard-settings.php:787
893
  msgid ""
894
  "%DOMAIN% replace to domain name (ex. poporon.poponet.jp )<br>%DOMAIN_URL% "
895
  "replace to domain URL (ex. http://poporon.poponet.jp )"
898
  "%DOMAIN_URL% と記述するとドメインのURL(例.http://poporon.poponet.jp)に置き"
899
  "換わります。"
900
 
901
+ #: ../lib/pz-linkcard-settings.php:788 ../lib/pz-linkcard-settings.php:797
902
+ msgid "%URL% replace to URL."
903
+ msgstr "%URL% と記述すると記事のURLに置き換わります。"
904
+
905
+ #: ../lib/pz-linkcard-settings.php:789 ../lib/pz-linkcard-settings.php:798
906
  msgid "ex1."
907
  msgstr "例1."
908
 
909
+ #: ../lib/pz-linkcard-settings.php:790 ../lib/pz-linkcard-settings.php:799
910
  msgid "ex2."
911
  msgstr "例2."
912
 
913
+ #: ../lib/pz-linkcard-settings.php:794
914
  msgid "Thumbnail API"
915
  msgstr "サムネイル画像の取得API"
916
 
917
+ #: ../lib/pz-linkcard-settings.php:805
918
+ msgid "Check link settings"
919
+ msgstr "リンク先チェックの設定"
 
 
 
 
920
 
921
+ #: ../lib/pz-linkcard-settings.php:808
922
  msgid "Do not link at error"
923
  msgstr "エラーのときリンクしない"
924
 
925
+ #: ../lib/pz-linkcard-settings.php:809
926
  msgid "When access status is \"403\", \"404\", \"410\", unlink"
927
  msgstr "ステータスが「403」「404」「410」のときにリンクを無効にします"
928
 
929
+ #: ../lib/pz-linkcard-settings.php:812
930
  msgid "SSL verification disabled"
931
  msgstr "SSL検証を無効"
932
 
933
+ #: ../lib/pz-linkcard-settings.php:813
934
  msgid "Try setting if the contents of the SSL site can not be acquired."
935
  msgstr ""
936
  "SSLサイトのタイトルや記事内容が取得できない場合に設定することで取得できる可能"
937
  "性があります。"
938
 
939
+ #: ../lib/pz-linkcard-settings.php:816
940
  msgid "Follow location"
941
  msgstr "リダイレクト処理"
942
 
943
+ #: ../lib/pz-linkcard-settings.php:817
944
  msgid "Track when the link destination is redirected."
945
  msgstr "リンク先がリダイレクトされている場合に追跡します。"
946
 
947
+ #: ../lib/pz-linkcard-settings.php:820
948
  msgid "Set referer"
949
  msgstr "リファラーの通知"
950
 
951
+ #: ../lib/pz-linkcard-settings.php:821
952
  msgid "Notify the article URL to the link destination."
953
  msgstr "リンク先に記事のURLを知らせます。"
954
 
955
+ #: ../lib/pz-linkcard-settings.php:824
956
  msgid "Use User-Agent"
957
  msgstr "ユーザーエージェントの通知"
958
 
959
+ #: ../lib/pz-linkcard-settings.php:826
960
  msgid "Notify using Pz-LinkCard to the link destination."
961
  msgstr "リンク先にPz-LinkCardを使用していることを知らせます。"
962
 
963
+ #: ../lib/pz-linkcard-settings.php:831
964
  msgid "Broken link checker"
965
  msgstr "リンク切れチェック"
966
 
967
+ #: ../lib/pz-linkcard-settings.php:832
968
  msgid "Alive confirmation of the link destination."
969
  msgstr "リンク先がアクセスできるか定期的に確認します。"
970
 
971
+ #: ../lib/pz-linkcard-settings.php:835
972
  msgid "Multi-site compatible"
973
  msgstr "サブディレクトリを外部リンクにする"
974
 
975
+ #: ../lib/pz-linkcard-settings.php:836
976
  msgid ""
977
  "In the case of the multi-site of the subdirectory type, the site under the "
978
  "subdirectory is judged as an external site."
980
  "サブディレクトリ型のマルチサイトの場合で、メインサイトからサブサイトを外部サ"
981
  "イトとして判定する。"
982
 
983
+ #: ../lib/pz-linkcard-settings.php:841
984
+ msgid "Editor settings"
985
+ msgstr "エディターの設定"
986
+
987
+ #: ../lib/pz-linkcard-settings.php:844
988
+ msgid "ShortCode 1"
989
+ msgstr "ショートコード 1"
990
+
991
+ #: ../lib/pz-linkcard-settings.php:846 ../lib/pz-linkcard-settings.php:864
992
+ #: ../lib/pz-linkcard-settings.php:869 ../lib/pz-linkcard-settings.php:874
993
+ msgid "Case-sensitive"
994
+ msgstr "大文字と小文字を区別します"
995
+
996
+ #: ../lib/pz-linkcard-settings.php:849
997
+ msgid "Use inlinetext"
998
+ msgstr "ショートコードで囲んだ文字列"
999
+
1000
+ #: ../lib/pz-linkcard-settings.php:853
1001
+ msgid "No use"
1002
+ msgstr "使用しない"
1003
+
1004
+ #: ../lib/pz-linkcard-settings.php:854
1005
+ msgid "Use to excerpt"
1006
+ msgstr "抜粋文として使用"
1007
+
1008
+ #: ../lib/pz-linkcard-settings.php:855
1009
+ msgid "Use to title"
1010
+ msgstr "タイトルとして使用"
1011
+
1012
+ #: ../lib/pz-linkcard-settings.php:858
1013
+ msgid "This setting applies only to the Shortcode1"
1014
+ msgstr "ショートコード1にのみ適用されます"
1015
+
1016
+ #: ../lib/pz-linkcard-settings.php:862
1017
+ msgid "ShortCode 2"
1018
+ msgstr "ショートコード 2"
1019
+
1020
+ #: ../lib/pz-linkcard-settings.php:867
1021
+ msgid "ShortCode 3"
1022
+ msgstr "ショートコード 3"
1023
+
1024
+ #: ../lib/pz-linkcard-settings.php:872
1025
+ msgid "ShortCode 4"
1026
+ msgstr "ショートコード 4"
1027
+
1028
+ #: ../lib/pz-linkcard-settings.php:877
1029
+ msgid "Parameters"
1030
+ msgstr "パラメータ"
1031
+
1032
+ #: ../lib/pz-linkcard-settings.php:880
1033
+ msgid ""
1034
+ "For any shortcode you can change the title and excerpt with `title` "
1035
+ "parameter and `content` parameter"
1036
+ msgstr ""
1037
+ "どのショートコードでも title パラメータと content パラメータでタイトルと抜粋"
1038
+ "文を指定できます。"
1039
+
1040
+ #: ../lib/pz-linkcard-settings.php:885
1041
+ msgid "Convert text link"
1042
+ msgstr "テキストリンク行の変換"
1043
+
1044
+ #: ../lib/pz-linkcard-settings.php:886
1045
+ msgid "Convert lines with text link only to Linkcard."
1046
+ msgstr "テキストリンクだけの行をリンクカードに変換する。"
1047
+
1048
+ #: ../lib/pz-linkcard-settings.php:889
1049
+ msgid "Convert URL"
1050
+ msgstr "URL行の変換"
1051
+
1052
+ #: ../lib/pz-linkcard-settings.php:890
1053
+ msgid "Convert lines with URL only to Linkcard."
1054
+ msgstr "URLだけの行をリンクカードに変換する。"
1055
 
1056
+ #: ../lib/pz-linkcard-settings.php:894
1057
+ msgid "Add insert button"
1058
+ msgstr "リンクカードボタンを追加"
1059
+
1060
+ #: ../lib/pz-linkcard-settings.php:895
1061
+ msgid "Add insert button to visual editor."
1062
+ msgstr "ビジュアルエディタにリンクカードを挿入するボタンを追加する。"
1063
+
1064
+ #: ../lib/pz-linkcard-settings.php:898
1065
+ msgid "Add quick tag"
1066
+ msgstr "クイックタグを追加"
1067
+
1068
+ #: ../lib/pz-linkcard-settings.php:899
1069
+ msgid "Add quick tag button to text editor."
1070
+ msgstr "テキストエディタにリンクカードを挿入するボタンを追加する。"
1071
+
1072
+ #: ../lib/pz-linkcard-settings.php:905
1073
+ msgid "Advanced settings"
1074
+ msgstr "詳しい人向けの設定"
1075
+
1076
+ #: ../lib/pz-linkcard-settings.php:908
1077
  msgid "Trailing slash"
1078
  msgstr "末尾のスラッシュ"
1079
 
1080
+ #: ../lib/pz-linkcard-settings.php:912
1081
  msgid "As it"
1082
  msgstr "そのまま"
1083
 
1084
+ #: ../lib/pz-linkcard-settings.php:913
1085
  msgid "When only domain name, remove"
1086
  msgstr "ドメイン名のみのときだけ削除"
1087
 
1088
+ #: ../lib/pz-linkcard-settings.php:914
1089
  msgid "Always remove"
1090
  msgstr "常に削除"
1091
 
1092
+ #: ../lib/pz-linkcard-settings.php:920
1093
+ msgid "CSS to be added"
1094
+ msgstr "追加するスタイルシート"
1095
+
1096
+ #: ../lib/pz-linkcard-settings.php:924
1097
  msgid "specified CSS"
1098
  msgstr "指定したCSSを使用"
1099
 
1100
+ #: ../lib/pz-linkcard-settings.php:925
1101
  msgid "Use specified CSS file"
1102
  msgstr "指定したCSSファイルを使用する"
1103
 
1104
+ #: ../lib/pz-linkcard-settings.php:928 ../lib/pz-linkcard-settings.php:932
1105
  msgid "CSS file"
1106
  msgstr "CSSファイル名"
1107
 
1108
+ #: ../lib/pz-linkcard-settings.php:929
1109
  msgid "(ex. https://exsample.com/style.css )"
1110
  msgstr "例.https://exsample.com/style.css"
1111
 
1112
+ #: ../lib/pz-linkcard-settings.php:936
1113
  msgid "CSS URL"
1114
  msgstr "CSSファイルのURL"
1115
 
1116
+ #: ../lib/pz-linkcard-settings.php:941
1117
  msgid "Class ID to be added(for PC)"
1118
  msgstr "PCのときに追加するクラス名"
1119
 
1120
+ #: ../lib/pz-linkcard-settings.php:945
1121
  msgid "Class ID to be added(for Mobile)"
1122
  msgstr "モバイルのときに追加するクラス名"
1123
 
1124
+ #: ../lib/pz-linkcard-settings.php:950
1125
+ msgid "Google AMP URL"
1126
+ msgstr "URLによるAMP判断"
1127
 
1128
+ #: ../lib/pz-linkcard-settings.php:951
1129
+ msgid "If the URL is AMP, display simple."
1130
  msgstr ""
1131
  "アクセスされたURLの末尾が「/amp」「/amp/」「/?amp=1」の場合、簡易表示に切り替"
1132
  "える。"
1133
 
1134
+ #: ../lib/pz-linkcard-settings.php:955
1135
  msgid "IDNA Convert"
1136
  msgstr "IDNAドメインの表示"
1137
 
1138
+ #: ../lib/pz-linkcard-settings.php:956
1139
  msgid "Convert domain name from IDNA ASCII to Unicode."
1140
  msgstr ""
1141
  "IDNAのASCII方式でエンコードされたドメイン名をUnicodeに変換して表示します(日"
1142
  "本語ドメインなど)"
1143
 
1144
+ #: ../lib/pz-linkcard-settings.php:960
1145
  msgid "Display link to author page"
1146
  msgstr "プラグイン名を表示する"
1147
 
1148
+ #: ../lib/pz-linkcard-settings.php:964
1149
  msgid "Plugin URL"
1150
  msgstr "プラグインページURL"
1151
 
1152
+ #: ../lib/pz-linkcard-settings.php:968
1153
  msgid "Plugin name"
1154
  msgstr "プラグイン名"
1155
 
1156
+ #: ../lib/pz-linkcard-settings.php:972
1157
  msgid "Plugin version"
1158
  msgstr "プラグインバージョン"
1159
 
1160
+ #: ../lib/pz-linkcard-settings.php:976
1161
  msgid "Saved datetime"
1162
  msgstr "保存した日時"
1163
 
1164
+ #: ../lib/pz-linkcard-settings.php:981
1165
  msgid "Display elapsed time"
1166
  msgstr "実行時間の表示"
1167
 
1168
+ #: ../lib/pz-linkcard-settings.php:982
1169
  msgid "Output the elapsed time to HTML comment."
1170
  msgstr "作成にかかった時間をコメントとしてHTMLへ出力する"
1171
 
1172
+ #: ../lib/pz-linkcard-settings.php:988
1173
  msgid "Initialize"
1174
  msgstr "初期化"
1175
 
1176
+ #: ../lib/pz-linkcard-settings.php:991
1177
  msgid "Return to the initial setting"
1178
  msgstr "設定を初期状態へ戻す"
1179
 
1180
+ #: ../lib/pz-linkcard-settings.php:997
1181
  msgid "etc"
1182
  msgstr "その他"
1183
 
1184
+ #: ../lib/pz-linkcard-settings.php:1000
1185
  msgid "Author's site"
1186
  msgstr "作者のサイト"
1187
 
1188
+ #: ../lib/pz-linkcard-settings.php:1001
1189
  msgid "Popozure."
1190
  msgstr "ぽぽづれ。"
1191
 
1192
+ #: ../lib/pz-linkcard-settings.php:1001
1193
  msgid "Poporon's PC daily diary"
1194
  msgstr "ぽぽろんのパソコンつれづれ(ズレズレ?)日記"
1195
 
1196
+ #: ../lib/pz-linkcard-settings.php:1004
 
 
 
 
1197
  msgid "Donation"
1198
  msgstr "寄付"
1199
 
1200
+ #: ../lib/pz-linkcard-style.php:480
1201
  msgid "Style sheet saved."
1202
  msgstr "設定を元にスタイルシートを自動生成しました。"
1203
 
1204
+ #: ../lib/pz-linkcard-style.php:482
1205
  msgid "Style sheet failed."
1206
  msgstr "スタイルシートの自動生成に失敗しました。"
1207
 
1208
+ #~ msgid "Special format"
1209
+ #~ msgstr "定型書式"
1210
+
1211
+ #~ msgid "Plugin's page"
1212
+ #~ msgstr "プラグインのページ"
1213
+
1214
+ #~ msgid ""
1215
+ #~ "There is a possibility that the screen display is slow If you enable this "
1216
+ #~ "setting."
1217
+ #~ msgstr "有効にする取得APIによっては表示が遅くなる場合があります。"
1218
+
1219
+ #~ msgid "Shortcode"
1220
+ #~ msgstr "ショートコード "
1221
+
1222
+ #~ msgid "Style"
1223
+ #~ msgstr "表示設定"
1224
+
1225
+ #~ msgid "Link check"
1226
+ #~ msgstr "リンク先のチェック"
1227
+
1228
+ #~ msgid "Debug"
1229
+ #~ msgstr "詳しい人用(Debug)"
1230
+
1231
+ #~ msgid "Corresponds to simple display for Google AMP."
1232
+ #~ msgstr ""
1233
+ #~ "アクセスされたURLの末尾が「/amp」「/amp/」「/?amp=1」の場合、簡易表示に切"
1234
+ #~ "り替える。"
1235
+
1236
  #~ msgid "It is common with setting External-link"
1237
  #~ msgstr "外部リンク用の設定が使用されます"
1238
 
lib/pz-linkcard-cacheman-list.php CHANGED
@@ -49,6 +49,9 @@ case 'external':
49
  case 'modify':
50
  $where = "alive_result <> result_code";
51
  break;
 
 
 
52
  default:
53
  $link_type = 'all';
54
  }
@@ -130,12 +133,17 @@ $result = $wpdb->get_row("SELECT COUNT(*) AS count FROM $this->db_name WHERE a
130
  if (isset($result) && isset($result->count)) {
131
  $count_modify = $result->count;
132
  }
 
 
 
 
133
  ?>
134
  <ul class='subsubsub'>
135
  <li class="all"><a href="?page=pz-linkcard-cache&link_type=all&orderby=regist&order=desc" <?php if ($link_type == 'all') echo 'class="current"'; ?>><?php _e('All', $this->text_domain); ?> <span class="count">(<?php echo $count_all; ?>)</span></a> |</li>
136
  <li class="all"><a href="?page=pz-linkcard-cache&link_type=internal&orderby=regist&order=desc" <?php if ($link_type == 'internal') echo 'class="current"'; ?>><?php _e('Internal', $this->text_domain); ?> <span class="count">(<?php echo $count_internal; ?>)</span></a> |</li>
137
  <li class="all"><a href="?page=pz-linkcard-cache&link_type=external&orderby=regist&order=desc" <?php if ($link_type == 'external') echo 'class="current"'; ?>><?php _e('External', $this->text_domain); ?> <span class="count">(<?php echo $count_external; ?>)</span></a> |</li>
138
- <li class="all"><a href="?page=pz-linkcard-cache&link_type=modify&orderby=regist&order=desc" <?php if ($link_type == 'modify') echo 'class="current"'; ?>><?php _e('Modify', $this->text_domain); ?> <span class="count">(<?php echo $count_modify; ?>)</span></a></li>
 
139
  </ul>
140
 
141
  <form id="posts-filter" action="" method="post">
49
  case 'modify':
50
  $where = "alive_result <> result_code";
51
  break;
52
+ case 'unlink':
53
+ $where = "alive_result = '404'";
54
+ break;
55
  default:
56
  $link_type = 'all';
57
  }
133
  if (isset($result) && isset($result->count)) {
134
  $count_modify = $result->count;
135
  }
136
+ $result = $wpdb->get_row("SELECT COUNT(*) AS count FROM $this->db_name WHERE alive_result = '404'");
137
+ if (isset($result) && isset($result->count)) {
138
+ $count_unlink = $result->count;
139
+ }
140
  ?>
141
  <ul class='subsubsub'>
142
  <li class="all"><a href="?page=pz-linkcard-cache&link_type=all&orderby=regist&order=desc" <?php if ($link_type == 'all') echo 'class="current"'; ?>><?php _e('All', $this->text_domain); ?> <span class="count">(<?php echo $count_all; ?>)</span></a> |</li>
143
  <li class="all"><a href="?page=pz-linkcard-cache&link_type=internal&orderby=regist&order=desc" <?php if ($link_type == 'internal') echo 'class="current"'; ?>><?php _e('Internal', $this->text_domain); ?> <span class="count">(<?php echo $count_internal; ?>)</span></a> |</li>
144
  <li class="all"><a href="?page=pz-linkcard-cache&link_type=external&orderby=regist&order=desc" <?php if ($link_type == 'external') echo 'class="current"'; ?>><?php _e('External', $this->text_domain); ?> <span class="count">(<?php echo $count_external; ?>)</span></a> |</li>
145
+ <li class="all"><a href="?page=pz-linkcard-cache&link_type=modify&orderby=regist&order=desc" <?php if ($link_type == 'modify') echo 'class="current"'; ?>><?php _e('Modify', $this->text_domain); ?> <span class="count">(<?php echo $count_modify; ?>)</span></a> |</li>
146
+ <li class="all"><a href="?page=pz-linkcard-cache&link_type=unlink&orderby=regist&order=desc" <?php if ($link_type == 'unlink') echo 'class="current"'; ?>><?php _e('Unlink', $this->text_domain); ?> <span class="count">(<?php echo $count_unlink; ?>)</span></a></li>
147
  </ul>
148
 
149
  <form id="posts-filter" action="" method="post">
lib/pz-linkcard-init.php CHANGED
@@ -11,21 +11,25 @@
11
  $this->options['plugin-version'] = $this->defaults['plugin-version'];
12
 
13
  // サムネイルのキャッシュディレクトリの用意
14
- $wp_upload_dir = wp_upload_dir();
15
- $thumbnail_dir = $wp_upload_dir['basedir'].'/'.$this->slug.'/cache/';
16
- $thumbnail_url = $wp_upload_dir['baseurl'].'/'.$this->slug.'/cache/';
17
  if (!is_dir($thumbnail_dir)) {
18
  if (!wp_mkdir_p($thumbnail_dir)) {
19
- $thumbnail_dir = $this->plugin_dir_path.'cache/';
20
- $thumbnail_url = $this->plugin_dir_url .'cache/';
21
  if (!wp_mkdir_p($file_dir)) {
22
- $thumbnail_dir = null;
23
- $thumbnail_url = null;
24
  }
25
  }
26
  }
27
- $this->options['thumbnail-dir'] = $thumbnail_dir;
28
- $this->options['thumbnail-url'] = $thumbnail_url;
 
 
 
 
29
 
30
  // オプションの更新
31
  update_option('Pz_LinkCard_options', $this->options);
@@ -38,7 +42,7 @@
38
 
39
  require_once (ABSPATH.'wp-admin/includes/upgrade.php');
40
  $sql = "CREATE TABLE ".$this->db_name." (
41
- id INT UNSIGNED NOT NULL AUTO_INCREMENT,
42
  url VARCHAR(2048) DEFAULT '',
43
  url_key VARBINARY(255) NOT NULL,
44
  scheme VARCHAR(16) DEFAULT '',
@@ -111,7 +115,7 @@
111
  }
112
 
113
  // 記事IDの再取得
114
- $result = $wpdb->get_results("UPDATE $this->db_name SET use_post_id1 = post_id , post_id = 0 WHERE (use_post_id1 IS NULL OR result_code = 0) AND post_id > 0");
115
 
116
  // // 記事IDの再取得(時間がかかるので未実行)
117
  // $result = (array) $wpdb->get_results("SELECT id,url,use_post_id1,use_post_id2,use_post_id3,use_post_id4,use_post_id5,use_post_id6 FROM $this->db_name ORDER BY id");
@@ -147,14 +151,14 @@
147
  // }
148
 
149
  // 過去バージョンからのコンバート(生存確認用のデータ作成)
150
- $result = $wpdb->get_results("UPDATE $this->db_name SET result_code = 200 WHERE result_code IS NULL OR result_code = 0");
151
- $result = $wpdb->get_results("UPDATE $this->db_name SET alive_result = result_code , alive_time = uptime WHERE alive_result IS NULL OR alive_result = 0 OR alive_time = 0");
152
 
153
  // 過去バージョンからのコンバート(取得時テキストの作成)
154
- $result = $wpdb->get_results("UPDATE $this->db_name SET regist_title = title , regist_excerpt = excerpt , regist_time = uptime , regist_result = result_code , regist_charset = charset WHERE (regist_title = '' AND regist_excerpt = '' ) AND (title <> '' OR excerpt <> '')");
155
 
156
  // 過去バージョンからのコンバート(次回SNS取得日時)
157
- $result = $wpdb->get_results("UPDATE $this->db_name SET sns_time = uptime , sns_nexttime = nexttime WHERE sns_nexttime = 0");
158
 
159
  // WP-CRONのフック
160
  wp_clear_scheduled_hook('pz_linkcard_check');
11
  $this->options['plugin-version'] = $this->defaults['plugin-version'];
12
 
13
  // サムネイルのキャッシュディレクトリの用意
14
+ $wp_upload_dir = wp_upload_dir();
15
+ $thumbnail_dir = $wp_upload_dir['basedir'].'/'.$this->slug.'/cache/';
16
+ $thumbnail_url = $wp_upload_dir['baseurl'].'/'.$this->slug.'/cache/';
17
  if (!is_dir($thumbnail_dir)) {
18
  if (!wp_mkdir_p($thumbnail_dir)) {
19
+ $thumbnail_dir = $this->plugin_dir_path.'cache/';
20
+ $thumbnail_url = $this->plugin_dir_url .'cache/';
21
  if (!wp_mkdir_p($file_dir)) {
22
+ $thumbnail_dir = null;
23
+ $thumbnail_url = null;
24
  }
25
  }
26
  }
27
+ $this->options['thumbnail-dir'] = $thumbnail_dir;
28
+ $this->options['thumbnail-url'] = $thumbnail_url;
29
+
30
+ // 暫定措置
31
+ $this->options['flg-button'] = '1';
32
+ $this->options['flg-qtag'] = '1';
33
 
34
  // オプションの更新
35
  update_option('Pz_LinkCard_options', $this->options);
42
 
43
  require_once (ABSPATH.'wp-admin/includes/upgrade.php');
44
  $sql = "CREATE TABLE ".$this->db_name." (
45
+ id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT,
46
  url VARCHAR(2048) DEFAULT '',
47
  url_key VARBINARY(255) NOT NULL,
48
  scheme VARCHAR(16) DEFAULT '',
115
  }
116
 
117
  // 記事IDの再取得
118
+ $result = $wpdb->get_results("UPDATE $this->db_name SET use_post_id1 = post_id , post_id = 0 WHERE (use_post_id1 IS NULL OR result_code = 0) AND post_id > 0");
119
 
120
  // // 記事IDの再取得(時間がかかるので未実行)
121
  // $result = (array) $wpdb->get_results("SELECT id,url,use_post_id1,use_post_id2,use_post_id3,use_post_id4,use_post_id5,use_post_id6 FROM $this->db_name ORDER BY id");
151
  // }
152
 
153
  // 過去バージョンからのコンバート(生存確認用のデータ作成)
154
+ $result = $wpdb->get_results("UPDATE $this->db_name SET result_code = 200 WHERE result_code IS NULL OR result_code = 0");
155
+ $result = $wpdb->get_results("UPDATE $this->db_name SET alive_result = result_code , alive_time = uptime WHERE alive_result IS NULL OR alive_result = 0 OR alive_time = 0");
156
 
157
  // 過去バージョンからのコンバート(取得時テキストの作成)
158
+ $result = $wpdb->get_results("UPDATE $this->db_name SET regist_title = title , regist_excerpt = excerpt , regist_time = uptime , regist_result = result_code , regist_charset = charset WHERE (regist_title = '' AND regist_excerpt = '' ) AND (title <> '' OR excerpt <> '')");
159
 
160
  // 過去バージョンからのコンバート(次回SNS取得日時)
161
+ $result = $wpdb->get_results("UPDATE $this->db_name SET sns_time = uptime , sns_nexttime = nexttime WHERE sns_nexttime = 0");
162
 
163
  // WP-CRONのフック
164
  wp_clear_scheduled_hook('pz_linkcard_check');
lib/pz-linkcard-settings.php CHANGED
@@ -1,8 +1,8 @@
1
  <?php if (!function_exists("get_option")) die; ?>
2
  <div class="wrap">
3
  <div id="icon-options-general" class="icon32"></div>
4
- <h2><?php _e('LinkCard Settings', $this->text_domain); ?></h2>
5
- <div id="settings" style="clear:both;">
6
  <?php
7
  if ( isset($_POST['properties'])) {
8
  check_admin_referer('pz_options');
@@ -40,18 +40,22 @@
40
  }
41
 
42
  $width = $this->options['width'];
43
- if (substr($width, -1 ) == '%') {
44
- $width = pz_TrimNum($width, 0);
45
- if ($width < 1 || $width > 100) {
46
- $this->options['width'] = $this->defaults['width'];
 
 
 
 
47
  } else {
48
- $this->options['width'] = $width.'%';
49
  }
50
- } else {
51
- $this->options['width'] = pz_TrimNum($width, $this->defaults['width']).'px';
52
  }
53
 
54
- $this->options['content-height'] = pz_TrimNum($this->options['content-height'], $this->defaults['content-height'] ).'px';
 
 
55
  $this->options['trim-title'] = pz_TrimNum($this->options['trim-title'], $this->defaults['trim-title']);
56
  $this->options['trim-count'] = pz_TrimNum($this->options['trim-count'], $this->defaults['trim-count']);
57
  $this->options['trim-sitename'] = pz_TrimNum($this->options['trim-sitename'], $this->defaults['trim-sitename']);
@@ -132,10 +136,10 @@
132
  <?php submit_button(); ?>
133
  </div>
134
 
135
- <h3><?php _e('Special format', $this->text_domain); ?></h3>
136
  <table class="form-table">
137
  <tr valign="top">
138
- <th scope="row"><?php _e('Tiny format', $this->text_domain); ?></th>
139
  <td>
140
  <select name="properties[special-format]">
141
  <option value="" <?php if($this->options['special-format'] == '') echo 'selected="selected"'; ?>><?php _e('None', $this->text_domain); ?></option>
@@ -160,67 +164,18 @@
160
  <br><span style="color: #ff8844;"><?php _e('* It applies over other formatting settings.', $this->text_domain); ?></span>
161
  </td>
162
  </tr>
163
- </table>
164
- <?php submit_button(); ?>
165
 
166
- <h3><?php _e('Shortcode', $this->text_domain); ?></h3>
167
- <table class="form-table">
168
- <tr valign="top">
169
- <th scope="row"><?php _e('ShortCode 1', $this->text_domain); ?></th>
170
- <td>[<input name="properties[code1]" type="text" id="code1" value="<?php echo esc_attr($this->options['code1']); ?>" class="regular-text" style="width: 8em;" onKeyUp="document.getElementById('open1').innerText = document.getElementById('code1').value; document.getElementById('close1').innerText = document.getElementById('code1').value; document.getElementById('open2').innerText = document.getElementById('code1').value;" /> url="http://xxx" <span style="color: #aabbff; font-weight: bold;">title=</span><span style="color: #aabbff;">"xxxxxx"</span> <span style="color: #bbaaff; font-weight: bold;">content=</span><span style="color: #bbaaff;">"xxxxxx"</span>]
171
- <p><?php _e('Case-sensitive', $this->text_domain); ?></p></td>
172
- </tr>
173
- <tr valign="top">
174
- <th scope="row"><?php _e('Use inlinetext', $this->text_domain); ?></th>
175
- <td>
176
- [<span style="color: #888888;" id="open1"><?php echo esc_attr($this->options['code1']); ?></span> url="http://xxx"]
177
- <select name="properties[use-inline]">
178
- <option value="" <?php if($this->options['use-inline'] == '') echo 'selected="selected"'; ?>><?php _e('No use', $this->text_domain); ?></option>
179
- <option value="1" <?php if($this->options['use-inline'] == '1') echo 'selected="selected"'; ?>><?php _e('Use to excerpt', $this->text_domain); ?></option>
180
- <option value="2" <?php if($this->options['use-inline'] == '2') echo 'selected="selected"'; ?>><?php _e('Use to title', $this->text_domain); ?></option>
181
- </select>
182
- [/<span style="color: #888888;" id="close1"><?php echo esc_attr($this->options['code1']); ?></span>]
183
- <p><?php _e('This setting applies only to the Shortcode1', $this->text_domain); ?></p></td>
184
- </td>
185
- </tr>
186
- <tr valign="top">
187
- <th scope="row"><?php _e('ShortCode 2', $this->text_domain); ?></th>
188
- <td>[<input name="properties[code2]" type="text" id="inputtext" value="<?php echo esc_attr($this->options['code2']); ?>" class="regular-text" style="width: 8em;" /> url="http://xxx" <span style="color: #aabbff; font-weight: bold;">title=</span><span style="color: #aabbff;">"xxxxxx"</span> <span style="color: #bbaaff; font-weight: bold;">content=</span><span style="color: #bbaaff;">"xxxxxx"</span>]
189
- <p><?php _e('Case-sensitive', $this->text_domain); ?></p></td>
190
- </tr>
191
- <tr valign="top">
192
- <th scope="row"><?php _e('ShortCode 3', $this->text_domain); ?></th>
193
- <td>[<input name="properties[code3]" type="text" id="inputtext" value="<?php echo esc_attr($this->options['code3']); ?>"class="regular-text" style="width: 8em;" /> url="http://xxx" <span style="color: #aabbff; font-weight: bold;">title=</span><span style="color: #aabbff;">"xxxxxx"</span> <span style="color: #bbaaff; font-weight: bold;">content=</span><span style="color: #bbaaff;">"xxxxxx"</span>]
194
- <p><?php _e('Case-sensitive', $this->text_domain); ?></p></td>
195
- </tr>
196
- <tr valign="top" style="display: none;">
197
- <th scope="row"><?php _e('ShortCode 4', $this->text_domain); ?></th>
198
- <td>[<input name="properties[code4]" type="text" id="inputtext" value="<?php echo esc_attr($this->options['code4']); ?>" class="regular-text" style="width: 8em;" /> url="http://xxx" <span style="color: #aabbff; font-weight: bold;">title=</span><span style="color: #aabbff;">"xxxxxx"</span> <span style="color: #bbaaff; font-weight: bold;">content=</span><span style="color: #bbaaff;">"xxxxxx"</span>]
199
- <p><?php _e('Case-sensitive', $this->text_domain); ?></p></td>
200
- </tr>
201
  <tr valign="top">
202
- <th scope="row"><?php _e('Parameters', $this->text_domain); ?></th>
203
- <td>
204
- [<span style="color: #888888;" id="open2"><?php echo esc_attr($this->options['code1']); ?></span> url="http://xxx" <span style="color: #4488ff; font-weight: bold;">title=</span>"xxxxxx" <span style="color: #8844ff; font-weight: bold;">content=</span>"xxxxxx"]<br>
205
- <?php _e('For any shortcode you can change the title and excerpt with `title` parameter and `content` parameter', $this->text_domain); ?>
206
- </ts>
207
  </tr>
 
208
 
209
- <tr valign="top">
210
- <th scope="row"><?php _e('Convert text link', $this->text_domain); ?></th>
211
- <td><label><input name="properties[auto-atag]" type="checkbox" id="check" value="1" <?php checked(isset($this->options['auto-atag']) ? $this->options['auto-atag'] : null, 1); ?> /><?php _e('Convert lines with text link only to Linkcard.', $this->text_domain); ?></label></td>
212
- </tr>
213
- <tr valign="top">
214
- <th scope="row"><?php _e('Convert URL', $this->text_domain); ?></th>
215
- <td><label><input name="properties[auto-url]" type="checkbox" id="check" value="1" <?php checked(isset($this->options['auto-url']) ? $this->options['auto-url'] : null, 1); ?> /><?php _e('Convert lines with URL only to Linkcard.', $this->text_domain); ?></label></td>
216
- </tr>
217
 
218
- </table>
219
  <?php submit_button(); ?>
220
 
221
- <h3><?php _e('Style', $this->text_domain); ?></h3>
222
  <table class="form-table">
223
-
224
  <tr valign="top">
225
  <th scope="row"><?php _e('Use blockquote tag', $this->text_domain); ?></th>
226
  <td><label><input name="properties[blockquote]" type="checkbox" id="check" value="1" <?php checked(isset($this->options['blockquote']) ? $this->options['blockquote'] : null, 1); ?> /><?php _e('without using DIV tag, and use BLOCKQUOTE tag', $this->text_domain); ?></label></td>
@@ -237,7 +192,7 @@
237
  </tr>
238
 
239
  <tr valign="top">
240
- <th scope="row"><?php _e('Position', $this->text_domain); ?></th>
241
  <td>
242
  <table style="border: 1px dashed #000; background-color: #eee; width: 600px;">
243
  <tr>
@@ -371,7 +326,11 @@
371
  </table>
372
  </td>
373
  </tr>
 
 
374
 
 
 
375
  <tr>
376
  <th scope="row"><?php _e('Layout', $this->text_domain); ?></th>
377
  <td>
@@ -499,6 +458,18 @@
499
  <td><label><input name="properties[style-reset-img]" type="checkbox" id="check" value="1" <?php checked(isset($this->options['style-reset-img']) ? $this->options['style-reset-img'] : null, 1); ?> /><?php _e('When unnecessary frame is displayed on the image, you can improve it by case', $this->text_domain); ?></label></td>
500
  </tr>
501
 
 
 
 
 
 
 
 
 
 
 
 
 
502
  <tr valign="top">
503
  <th scope="row"><?php _e('Display SNS Count', $this->text_domain); ?></th>
504
  <td>
@@ -510,13 +481,12 @@
510
  <label><input name="properties[sns-tw]" type="checkbox" id="check" value="1" <?php checked(isset($this->options['sns-tw']) ? $this->options['sns-tw'] : null, 1); ?> /><?php _e('Twitter', $this->text_domain); ?></label>
511
  <label><input name="properties[sns-fb]" type="checkbox" id="check" value="1" <?php checked(isset($this->options['sns-fb']) ? $this->options['sns-fb'] : null, 1); ?> /><?php _e('Facebook', $this->text_domain); ?></label>
512
  <label><input name="properties[sns-hb]" type="checkbox" id="check" value="1" <?php checked(isset($this->options['sns-hb']) ? $this->options['sns-hb'] : null, 1); ?> /><?php _e('Hatena', $this->text_domain); ?></label>
513
- <br><?php _e('There is a possibility that the screen display is slow If you enable this setting.', $this->text_domain); ?>
514
  </td>
515
  </tr>
516
  </table>
517
  <?php submit_button(); ?>
518
 
519
- <h3><?php _e('Letters', $this->text_domain); ?></h3>
520
  <table class="form-table" style="max-width: 900px;">
521
 
522
  <tr valign="top">
@@ -641,7 +611,7 @@
641
  <?php submit_button(); ?>
642
 
643
 
644
- <h3><?php _e('External link', $this->text_domain); ?></h3>
645
  <table class="form-table">
646
 
647
  <tr valign="top">
@@ -679,6 +649,10 @@
679
  <th scope="row"><?php _e('Site information', $this->text_domain); ?></th>
680
  <td><input name="properties[ex-info]" type="text" id="inputtext" value="<?php echo esc_attr($this->options['ex-info']); ?>" class="regular-text" /></td>
681
  </tr>
 
 
 
 
682
  <tr valign="top">
683
  <th scope="row"><?php _e('Open new window/tab', $this->text_domain); ?></th>
684
  <td>
@@ -706,7 +680,7 @@
706
  </table>
707
  <?php submit_button(); ?>
708
 
709
- <h3><?php _e('Internal link', $this->text_domain); ?></h3>
710
  <table class="form-table">
711
  <tr valign="top">
712
  <th scope="row"><?php _e('Background Color', $this->text_domain); ?></th>
@@ -742,6 +716,10 @@
742
  <th scope="row"><?php _e('Site information', $this->text_domain); ?></th>
743
  <td><input name="properties[in-info]" type="text" id="inputtext" value="<?php echo esc_attr($this->options['in-info']); ?>" class="regular-text" /><br></td>
744
  </tr>
 
 
 
 
745
  <tr valign="top">
746
  <th scope="row"><?php _e('Open new window/tab', $this->text_domain); ?></th>
747
  <td>
@@ -770,7 +748,7 @@
770
  </table>
771
  <?php submit_button(); ?>
772
 
773
- <h3><?php _e('Same-page link', $this->text_domain); ?></h3>
774
  <table class="form-table">
775
  <tr valign="top">
776
  <th scope="row"><?php _e('Background Color', $this->text_domain); ?></th>
@@ -799,13 +777,14 @@
799
  </table>
800
  <?php submit_button(); ?>
801
 
802
- <h3><?php _e('Web-API', $this->text_domain); ?></h3>
803
  <table class="form-table"
804
  <tr valign="top">
805
  <th scope="row"><?php _e('Favicon API', $this->text_domain); ?></th>
806
  <td>
807
  <input name="properties[favicon-api]" type="text" id="inputtext" value="<?php echo esc_attr($this->options['favicon-api']); ?>" size="80" onclick="this.select(0,this.value.length);" />
808
  <p><?php _e('%DOMAIN% replace to domain name (ex. poporon.poponet.jp )<br>%DOMAIN_URL% replace to domain URL (ex. http://poporon.poponet.jp )', $this->text_domain); ?></p>
 
809
  <p><?php _e('ex1.', $this->text_domain); ?><input name="" type="text" id="inputtext" value="https://www.google.com/s2/favicons?domain=%DOMAIN%" size="70" onclick="this.select(0,this.value.length);" readonly /></p>
810
  <p><?php _e('ex2.', $this->text_domain); ?><input name="" type="text" id="inputtext" value="https://favicon.hatena.ne.jp/?url=%URL%" size="70" onclick="this.select(0,this.value.length);" readonly /></p>
811
  </td>
@@ -814,7 +793,7 @@
814
  <th scope="row" rowspan="3"><?php _e('Thumbnail API', $this->text_domain); ?></th>
815
  <td>
816
  <input name="properties[thumbnail-api]" type="text" id="inputtext" value="<?php echo esc_attr($this->options['thumbnail-api']); ?>" size="80" onclick="this.select(0,this.value.length);" />
817
- <p><?php _e('%URL% replace to URL', $this->text_domain); ?></p>
818
  <p><?php _e('ex1.', $this->text_domain); ?><input name="" type="text" id="inputtext" value="https://s.wordpress.com/mshots/v1/%URL%?w=100" size="70" onclick="this.select(0,this.value.length);" readonly /></p>
819
  <p><?php _e('ex2.', $this->text_domain); ?><input name="" type="text" id="inputtext" value="http://capture.heartrails.com/100x100?%URL%" size="70" onclick="this.select(0,this.value.length);" readonly /></p>
820
  </td>
@@ -822,7 +801,7 @@
822
  </table>
823
  <?php submit_button(); ?>
824
 
825
- <h3><?php _e('Link check', $this->text_domain); ?></h3>
826
  <table class="form-table">
827
  <tr valign="top">
828
  <th scope="row"><?php _e('Do not link at error', $this->text_domain); ?></th>
@@ -858,7 +837,71 @@
858
  </table>
859
  <?php submit_button(); ?>
860
 
861
- <h3><?php _e('Debug', $this->text_domain); ?></h3>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
862
  <table class="form-table">
863
  <tr valign="top">
864
  <th scope="row"><?php _e('Trailing slash', $this->text_domain); ?></th>
@@ -872,9 +915,13 @@
872
  </td>
873
  </tr>
874
 
 
 
 
 
875
  <tr valign="top" style="display: none;">
876
  <th scope="row"><?php _e('specified CSS', $this->text_domain); ?></th>
877
- <td><label><input name="properties[style]" type="checkbox" id="check" value="1" <?php checked(isset($this->options['style']) ? $this->options['style'] : null, 1); ?> /><?php _e('Use specified CSS file', $this->text_domain); ?></label></td>
878
  </tr>
879
  <tr valign="top" style="display: none;">
880
  <th scope="row"><?php _e('CSS file', $this->text_domain); ?></th>
@@ -899,13 +946,13 @@
899
  </tr>
900
 
901
  <tr valign="top">
902
- <th scope="row"><?php _e('Google AMP', $this->text_domain); ?></th>
903
- <td><label><input name="properties[flg-amp]" type="checkbox" id="check" value="1" <?php checked(isset($this->options['flg-amp']) ? $this->options['flg-amp'] : null, 1); ?> /><?php _e('Corresponds to simple display for Google AMP.', $this->text_domain); ?></label></td>
904
  </tr>
905
 
906
  <tr valign="top">
907
  <th scope="row"><?php _e('IDNA Convert', $this->text_domain); ?></th>
908
- <td><label><input name="properties[flg-idn]" type="checkbox" id="check" value="1" <?php checked(isset($this->options['flg-idn']) ? $this->options['flg-idn'] : null, 1); ?> /><?php _e('Convert domain name from IDNA ASCII to Unicode.', $this->text_domain); ?></label></td>
909
  </tr>
910
 
911
  <tr valign="top" style="display: none;">
@@ -952,10 +999,6 @@
952
  <th scope="row"><?php _e("Author's site", $this->text_domain); ?></th>
953
  <td><?php echo __('Popozure.', $this->text_domain).' ('.__("Poporon's PC daily diary", $this->text_domain).')'; ?><BR><A href="https://popozure.info" target="_blank">https://popozure.info</A></td>
954
  </tr>
955
- <tr valign="top">
956
- <th scope="row"><?php _e("Plugin's page", $this->text_domain); ?></th>
957
- <td><A href="https://popozure.info/pz-linkcard" target="_blank">https://popozure.info/pz-linkcard</A></td>
958
- </tr>
959
  <tr valign="top" style="display: none;">
960
  <th scope="row"><?php _e("Donation", $this->text_domain); ?></th>
961
  <td>https://www.amazon.co.jp/gp/registry/wishlist/2KIBQLC1VLA9X</td>
1
  <?php if (!function_exists("get_option")) die; ?>
2
  <div class="wrap">
3
  <div id="icon-options-general" class="icon32"></div>
4
+ <h2><?php echo __('LinkCard Settings', $this->text_domain).' ver.'.$this->options['plugin-version'];?></h2>
5
+ <div id="settings" style="clear:both;">
6
  <?php
7
  if ( isset($_POST['properties'])) {
8
  check_admin_referer('pz_options');
40
  }
41
 
42
  $width = $this->options['width'];
43
+ if ($width) {
44
+ if (substr($width, -1 ) == '%') {
45
+ $width = pz_TrimNum($width, 0);
46
+ if ($width < 1 || $width > 100) {
47
+ $this->options['width'] = $this->defaults['width'];
48
+ } else {
49
+ $this->options['width'] = $width.'%';
50
+ }
51
  } else {
52
+ $this->options['width'] = pz_TrimNum($width, $this->defaults['width']).'px';
53
  }
 
 
54
  }
55
 
56
+ if ($this->options['content-height']) {
57
+ $this->options['content-height'] = pz_TrimNum($this->options['content-height'], $this->defaults['content-height'] ).'px';
58
+ }
59
  $this->options['trim-title'] = pz_TrimNum($this->options['trim-title'], $this->defaults['trim-title']);
60
  $this->options['trim-count'] = pz_TrimNum($this->options['trim-count'], $this->defaults['trim-count']);
61
  $this->options['trim-sitename'] = pz_TrimNum($this->options['trim-sitename'], $this->defaults['trim-sitename']);
136
  <?php submit_button(); ?>
137
  </div>
138
 
139
+ <h3><?php _e('Basic settings', $this->text_domain); ?></h3>
140
  <table class="form-table">
141
  <tr valign="top">
142
+ <th scope="row"><?php _e('Easy format', $this->text_domain); ?></th>
143
  <td>
144
  <select name="properties[special-format]">
145
  <option value="" <?php if($this->options['special-format'] == '') echo 'selected="selected"'; ?>><?php _e('None', $this->text_domain); ?></option>
164
  <br><span style="color: #ff8844;"><?php _e('* It applies over other formatting settings.', $this->text_domain); ?></span>
165
  </td>
166
  </tr>
 
 
167
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
168
  <tr valign="top">
169
+ <th scope="row"><?php _e("How to (Japanese only)", $this->text_domain); ?></th>
170
+ <td><A href="https://popozure.info/pz-linkcard" target="_blank">https://popozure.info/pz-linkcard</A></td>
 
 
 
171
  </tr>
172
+ </table>
173
 
 
 
 
 
 
 
 
 
174
 
 
175
  <?php submit_button(); ?>
176
 
177
+ <h3><?php _e('Position settings', $this->text_domain); ?></h3>
178
  <table class="form-table">
 
179
  <tr valign="top">
180
  <th scope="row"><?php _e('Use blockquote tag', $this->text_domain); ?></th>
181
  <td><label><input name="properties[blockquote]" type="checkbox" id="check" value="1" <?php checked(isset($this->options['blockquote']) ? $this->options['blockquote'] : null, 1); ?> /><?php _e('without using DIV tag, and use BLOCKQUOTE tag', $this->text_domain); ?></label></td>
192
  </tr>
193
 
194
  <tr valign="top">
195
+ <th scope="row"><?php _e('Margin', $this->text_domain); ?></th>
196
  <td>
197
  <table style="border: 1px dashed #000; background-color: #eee; width: 600px;">
198
  <tr>
326
  </table>
327
  </td>
328
  </tr>
329
+ </table>
330
+ <?php submit_button(); ?>
331
 
332
+ <h3><?php _e('Display settings', $this->text_domain); ?></h3>
333
+ <table class="form-table">
334
  <tr>
335
  <th scope="row"><?php _e('Layout', $this->text_domain); ?></th>
336
  <td>
458
  <td><label><input name="properties[style-reset-img]" type="checkbox" id="check" value="1" <?php checked(isset($this->options['style-reset-img']) ? $this->options['style-reset-img'] : null, 1); ?> /><?php _e('When unnecessary frame is displayed on the image, you can improve it by case', $this->text_domain); ?></label></td>
459
  </tr>
460
 
461
+ <tr valign="top">
462
+ <th scope="row"><?php _e('More button', $this->text_domain); ?></th>
463
+ <td>
464
+ <select name="properties[flg-more]">
465
+ <option value="" <?php if($this->options['flg-more'] == '') echo 'selected="selected"'; ?>><?php _e('None', $this->text_domain); ?></option>
466
+ <option value="1" <?php if($this->options['flg-more'] == '1') echo 'selected="selected"'; ?>><?php _e('Text link', $this->text_domain); ?></option>
467
+ <option value="2" <?php if($this->options['flg-more'] == '2') echo 'selected="selected"'; ?>><?php _e('Simple button', $this->text_domain); ?></option>
468
+ </select>
469
+ <p><?php _e('*', $this->text_domain); ?> <?php _e('It is recommended that you leave the card height blank when using this setting.', $this->text_domain); ?></p>
470
+ </td>
471
+ </tr>
472
+
473
  <tr valign="top">
474
  <th scope="row"><?php _e('Display SNS Count', $this->text_domain); ?></th>
475
  <td>
481
  <label><input name="properties[sns-tw]" type="checkbox" id="check" value="1" <?php checked(isset($this->options['sns-tw']) ? $this->options['sns-tw'] : null, 1); ?> /><?php _e('Twitter', $this->text_domain); ?></label>
482
  <label><input name="properties[sns-fb]" type="checkbox" id="check" value="1" <?php checked(isset($this->options['sns-fb']) ? $this->options['sns-fb'] : null, 1); ?> /><?php _e('Facebook', $this->text_domain); ?></label>
483
  <label><input name="properties[sns-hb]" type="checkbox" id="check" value="1" <?php checked(isset($this->options['sns-hb']) ? $this->options['sns-hb'] : null, 1); ?> /><?php _e('Hatena', $this->text_domain); ?></label>
 
484
  </td>
485
  </tr>
486
  </table>
487
  <?php submit_button(); ?>
488
 
489
+ <h3><?php _e('Letter settings', $this->text_domain); ?></h3>
490
  <table class="form-table" style="max-width: 900px;">
491
 
492
  <tr valign="top">
611
  <?php submit_button(); ?>
612
 
613
 
614
+ <h3><?php _e('External link settings', $this->text_domain); ?></h3>
615
  <table class="form-table">
616
 
617
  <tr valign="top">
649
  <th scope="row"><?php _e('Site information', $this->text_domain); ?></th>
650
  <td><input name="properties[ex-info]" type="text" id="inputtext" value="<?php echo esc_attr($this->options['ex-info']); ?>" class="regular-text" /></td>
651
  </tr>
652
+ <tr valign="top">
653
+ <th scope="row"><?php _e('Text of more button', $this->text_domain); ?></th>
654
+ <td><input name="properties[ex-more-text]" type="text" id="inputtext" value="<?php echo esc_attr($this->options['ex-more-text']); ?>" class="regular-text" /></td>
655
+ </tr>
656
  <tr valign="top">
657
  <th scope="row"><?php _e('Open new window/tab', $this->text_domain); ?></th>
658
  <td>
680
  </table>
681
  <?php submit_button(); ?>
682
 
683
+ <h3><?php _e('Internal link settings', $this->text_domain); ?></h3>
684
  <table class="form-table">
685
  <tr valign="top">
686
  <th scope="row"><?php _e('Background Color', $this->text_domain); ?></th>
716
  <th scope="row"><?php _e('Site information', $this->text_domain); ?></th>
717
  <td><input name="properties[in-info]" type="text" id="inputtext" value="<?php echo esc_attr($this->options['in-info']); ?>" class="regular-text" /><br></td>
718
  </tr>
719
+ <tr valign="top">
720
+ <th scope="row"><?php _e('Text of more button', $this->text_domain); ?></th>
721
+ <td><input name="properties[in-more-text]" type="text" id="inputtext" value="<?php echo esc_attr($this->options['in-more-text']); ?>" class="regular-text" /></td>
722
+ </tr>
723
  <tr valign="top">
724
  <th scope="row"><?php _e('Open new window/tab', $this->text_domain); ?></th>
725
  <td>
748
  </table>
749
  <?php submit_button(); ?>
750
 
751
+ <h3><?php _e('Same-page link settings', $this->text_domain); ?></h3>
752
  <table class="form-table">
753
  <tr valign="top">
754
  <th scope="row"><?php _e('Background Color', $this->text_domain); ?></th>
777
  </table>
778
  <?php submit_button(); ?>
779
 
780
+ <h3><?php _e('Web-API settings', $this->text_domain); ?></h3>
781
  <table class="form-table"
782
  <tr valign="top">
783
  <th scope="row"><?php _e('Favicon API', $this->text_domain); ?></th>
784
  <td>
785
  <input name="properties[favicon-api]" type="text" id="inputtext" value="<?php echo esc_attr($this->options['favicon-api']); ?>" size="80" onclick="this.select(0,this.value.length);" />
786
  <p><?php _e('%DOMAIN% replace to domain name (ex. poporon.poponet.jp )<br>%DOMAIN_URL% replace to domain URL (ex. http://poporon.poponet.jp )', $this->text_domain); ?></p>
787
+ <p><?php _e('%URL% replace to URL.', $this->text_domain); ?></p>
788
  <p><?php _e('ex1.', $this->text_domain); ?><input name="" type="text" id="inputtext" value="https://www.google.com/s2/favicons?domain=%DOMAIN%" size="70" onclick="this.select(0,this.value.length);" readonly /></p>
789
  <p><?php _e('ex2.', $this->text_domain); ?><input name="" type="text" id="inputtext" value="https://favicon.hatena.ne.jp/?url=%URL%" size="70" onclick="this.select(0,this.value.length);" readonly /></p>
790
  </td>
793
  <th scope="row" rowspan="3"><?php _e('Thumbnail API', $this->text_domain); ?></th>
794
  <td>
795
  <input name="properties[thumbnail-api]" type="text" id="inputtext" value="<?php echo esc_attr($this->options['thumbnail-api']); ?>" size="80" onclick="this.select(0,this.value.length);" />
796
+ <p><?php _e('%URL% replace to URL.', $this->text_domain); ?></p>
797
  <p><?php _e('ex1.', $this->text_domain); ?><input name="" type="text" id="inputtext" value="https://s.wordpress.com/mshots/v1/%URL%?w=100" size="70" onclick="this.select(0,this.value.length);" readonly /></p>
798
  <p><?php _e('ex2.', $this->text_domain); ?><input name="" type="text" id="inputtext" value="http://capture.heartrails.com/100x100?%URL%" size="70" onclick="this.select(0,this.value.length);" readonly /></p>
799
  </td>
801
  </table>
802
  <?php submit_button(); ?>
803
 
804
+ <h3><?php _e('Check link settings', $this->text_domain); ?></h3>
805
  <table class="form-table">
806
  <tr valign="top">
807
  <th scope="row"><?php _e('Do not link at error', $this->text_domain); ?></th>
837
  </table>
838
  <?php submit_button(); ?>
839
 
840
+ <h3><?php _e('Editor settings', $this->text_domain); ?></h3>
841
+ <table class="form-table">
842
+ <tr valign="top">
843
+ <th scope="row"><?php _e('ShortCode 1', $this->text_domain); ?></th>
844
+ <td>[<input name="properties[code1]" type="text" id="code1" value="<?php echo esc_attr($this->options['code1']); ?>" class="regular-text" style="width: 8em;" onKeyUp="document.getElementById('open1').innerText = document.getElementById('code1').value; document.getElementById('close1').innerText = document.getElementById('code1').value; document.getElementById('open2').innerText = document.getElementById('code1').value;" /> url="http://xxx" <span style="color: #aabbff; font-weight: bold;">title=</span><span style="color: #aabbff;">"xxxxxx"</span> <span style="color: #bbaaff; font-weight: bold;">content=</span><span style="color: #bbaaff;">"xxxxxx"</span>]
845
+ <p><?php _e('Case-sensitive', $this->text_domain); ?></p></td>
846
+ </tr>
847
+ <tr valign="top">
848
+ <th scope="row"><?php _e('Use inlinetext', $this->text_domain); ?></th>
849
+ <td>
850
+ [<span style="color: #888888;" id="open1"><?php echo esc_attr($this->options['code1']); ?></span> url="http://xxx"]
851
+ <select name="properties[use-inline]">
852
+ <option value="" <?php if($this->options['use-inline'] == '') echo 'selected="selected"'; ?>><?php _e('No use', $this->text_domain); ?></option>
853
+ <option value="1" <?php if($this->options['use-inline'] == '1') echo 'selected="selected"'; ?>><?php _e('Use to excerpt', $this->text_domain); ?></option>
854
+ <option value="2" <?php if($this->options['use-inline'] == '2') echo 'selected="selected"'; ?>><?php _e('Use to title', $this->text_domain); ?></option>
855
+ </select>
856
+ [/<span style="color: #888888;" id="close1"><?php echo esc_attr($this->options['code1']); ?></span>]
857
+ <p><?php _e('This setting applies only to the Shortcode1', $this->text_domain); ?></p></td>
858
+ </td>
859
+ </tr>
860
+ <tr valign="top">
861
+ <th scope="row"><?php _e('ShortCode 2', $this->text_domain); ?></th>
862
+ <td>[<input name="properties[code2]" type="text" id="inputtext" value="<?php echo esc_attr($this->options['code2']); ?>" class="regular-text" style="width: 8em;" /> url="http://xxx" <span style="color: #aabbff; font-weight: bold;">title=</span><span style="color: #aabbff;">"xxxxxx"</span> <span style="color: #bbaaff; font-weight: bold;">content=</span><span style="color: #bbaaff;">"xxxxxx"</span>]
863
+ <p><?php _e('Case-sensitive', $this->text_domain); ?></p></td>
864
+ </tr>
865
+ <tr valign="top">
866
+ <th scope="row"><?php _e('ShortCode 3', $this->text_domain); ?></th>
867
+ <td>[<input name="properties[code3]" type="text" id="inputtext" value="<?php echo esc_attr($this->options['code3']); ?>"class="regular-text" style="width: 8em;" /> url="http://xxx" <span style="color: #aabbff; font-weight: bold;">title=</span><span style="color: #aabbff;">"xxxxxx"</span> <span style="color: #bbaaff; font-weight: bold;">content=</span><span style="color: #bbaaff;">"xxxxxx"</span>]
868
+ <p><?php _e('Case-sensitive', $this->text_domain); ?></p></td>
869
+ </tr>
870
+ <tr valign="top" style="display: none;">
871
+ <th scope="row"><?php _e('ShortCode 4', $this->text_domain); ?></th>
872
+ <td>[<input name="properties[code4]" type="text" id="inputtext" value="<?php echo esc_attr($this->options['code4']); ?>" class="regular-text" style="width: 8em;" /> url="http://xxx" <span style="color: #aabbff; font-weight: bold;">title=</span><span style="color: #aabbff;">"xxxxxx"</span> <span style="color: #bbaaff; font-weight: bold;">content=</span><span style="color: #bbaaff;">"xxxxxx"</span>]
873
+ <p><?php _e('Case-sensitive', $this->text_domain); ?></p></td>
874
+ </tr>
875
+ <tr valign="top">
876
+ <th scope="row"><?php _e('Parameters', $this->text_domain); ?></th>
877
+ <td>
878
+ [<span style="color: #888888;" id="open2"><?php echo esc_attr($this->options['code1']); ?></span> url="http://xxx" <span style="color: #4488ff; font-weight: bold;">title=</span>"xxxxxx" <span style="color: #8844ff; font-weight: bold;">content=</span>"xxxxxx"]<br>
879
+ <?php _e('For any shortcode you can change the title and excerpt with `title` parameter and `content` parameter', $this->text_domain); ?>
880
+ </ts>
881
+ </tr>
882
+
883
+ <tr valign="top">
884
+ <th scope="row"><?php _e('Convert text link', $this->text_domain); ?></th>
885
+ <td><label><input name="properties[auto-atag]" type="checkbox" id="check" value="1" <?php checked(isset($this->options['auto-atag']) ? $this->options['auto-atag'] : null, 1); ?> /><?php _e('Convert lines with text link only to Linkcard.', $this->text_domain); ?></label></td>
886
+ </tr>
887
+ <tr valign="top">
888
+ <th scope="row"><?php _e('Convert URL', $this->text_domain); ?></th>
889
+ <td><label><input name="properties[auto-url]" type="checkbox" id="check" value="1" <?php checked(isset($this->options['auto-url']) ? $this->options['auto-url'] : null, 1); ?> /><?php _e('Convert lines with URL only to Linkcard.', $this->text_domain); ?></label></td>
890
+ </tr>
891
+
892
+ <tr valign="top">
893
+ <th scope="row"><?php _e('Add insert button', $this->text_domain); ?></th>
894
+ <td><label><input name="properties[flg-edit-insert]" type="checkbox" id="check" value="1" <?php checked(isset($this->options['flg-edit-insert']) ? $this->options['flg-edit-insert'] : null, 1); ?> /><?php _e('Add insert button to visual editor.', $this->text_domain); ?></label></td>
895
+ </tr>
896
+ <tr valign="top">
897
+ <th scope="row"><?php _e('Add quick tag', $this->text_domain); ?></th>
898
+ <td><label><input name="properties[flg-edit-qtag]" type="checkbox" id="check" value="1" <?php checked(isset($this->options['flg-edit-qtag']) ? $this->options['flg-edit-qtag'] : null, 1); ?> /><?php _e('Add quick tag button to text editor.', $this->text_domain); ?></label></td>
899
+ </tr>
900
+
901
+ </table>
902
+ <?php submit_button(); ?>
903
+
904
+ <h3><?php _e('Advanced settings', $this->text_domain); ?></h3>
905
  <table class="form-table">
906
  <tr valign="top">
907
  <th scope="row"><?php _e('Trailing slash', $this->text_domain); ?></th>
915
  </td>
916
  </tr>
917
 
918
+ <tr valign="top">
919
+ <th scope="row"><?php _e('CSS to be added', $this->text_domain); ?></th>
920
+ <td><input name="properties[css-add]" type="text" id="inputtext" value="<?php echo (isset($this->options['css-add']) ? esc_attr($this->options['css-add']) : ''); ?>" size="80" /><br>
921
+ </tr>
922
  <tr valign="top" style="display: none;">
923
  <th scope="row"><?php _e('specified CSS', $this->text_domain); ?></th>
924
+ <td><label><input name="properties[css-sp]" type="checkbox" id="check" value="1" <?php checked(isset($this->options['css-sp']) ? $this->options['css-sp'] : null, 1); ?> /><?php _e('Use specified CSS file', $this->text_domain); ?></label></td>
925
  </tr>
926
  <tr valign="top" style="display: none;">
927
  <th scope="row"><?php _e('CSS file', $this->text_domain); ?></th>
946
  </tr>
947
 
948
  <tr valign="top">
949
+ <th scope="row"><?php _e('Google AMP URL', $this->text_domain); ?></th>
950
+ <td><label><input name="properties[flg-amp-url]" type="checkbox" id="check" value="1" <?php checked(isset($this->options['flg-amp-url']) ? $this->options['flg-amp-url'] : null, 1); ?> /><?php _e('If the URL is AMP, display simple.', $this->text_domain); ?></label></td>
951
  </tr>
952
 
953
  <tr valign="top">
954
  <th scope="row"><?php _e('IDNA Convert', $this->text_domain); ?></th>
955
+ <td><label><input name="properties[flg-idn]" type="checkbox" id="check" value="1" <?php checked( (isset($this->options['flg-idn']) && function_exists('idn_to_utf8') ) ? $this->options['flg-idn'] : null, 1); ?> /><?php _e('Convert domain name from IDNA ASCII to Unicode.', $this->text_domain); ?></label></td>
956
  </tr>
957
 
958
  <tr valign="top" style="display: none;">
999
  <th scope="row"><?php _e("Author's site", $this->text_domain); ?></th>
1000
  <td><?php echo __('Popozure.', $this->text_domain).' ('.__("Poporon's PC daily diary", $this->text_domain).')'; ?><BR><A href="https://popozure.info" target="_blank">https://popozure.info</A></td>
1001
  </tr>
 
 
 
 
1002
  <tr valign="top" style="display: none;">
1003
  <th scope="row"><?php _e("Donation", $this->text_domain); ?></th>
1004
  <td>https://www.amazon.co.jp/gp/registry/wishlist/2KIBQLC1VLA9X</td>
lib/pz-linkcard-style.php CHANGED
@@ -33,290 +33,290 @@
33
  // オマケ書式
34
  switch ($this->options['special-format']) {
35
  case 'LkC': // Pz-LkC Default
36
- $file_text = str_replace('/*EX-IMAGE*/', 'background-image: linear-gradient(#78f 0%, #78f 10%, #fff 30%);',$file_text );
37
- $file_text = str_replace('/*IN-IMAGE*/', 'background-image: linear-gradient(#ca4 0%, #ca4 10%, #fff 30%);',$file_text );
38
- $file_text = str_replace('/*TH-IMAGE*/', 'background-image: linear-gradient(#ca4 0%, #ca4 10%, #eee 30%);',$file_text );
39
  switch ($this->options['info-position']) {
40
  case '1':
41
- $file_text = str_replace('/*COLOR-INFO*/', 'color: #fff;',$file_text );
42
  }
43
- $file_text = str_replace('/*THUMBNAIL_POSITION*/', 'float: left;',$file_text );
44
  break;
45
  case 'hbc': // Hatena Blogcard
46
- $file_text = str_replace('/*BORDER*/', 'border: 1px solid rgba(0,0,0,0.1);',$file_text );
47
- $file_text = str_replace('/*RADIUS*/', 'border-radius: 3px; -webkit-border-radius: 3px; -moz-border-radius: 3px;',$file_text );
48
- $file_text = str_replace('/*SHADOW*/', 'box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);', $file_text );
49
  break;
50
  case 'sqr': // Square
51
- $file_text = str_replace('/*HEIGHT*/', 'height: 337px;',$file_text );
52
- $file_text = str_replace('/*CONTENT-HEIGHT*/', 'height: 300px;',$file_text );
53
- $thumbnail_width = preg_replace('/[^0-9]/', '', isset($this->options['width']) ? $this->options['width'] : $this->defaults['thumbnail-width'] ) - 0;
54
- $file_text = str_replace('/*THUMBNAIL-WIDTH*/', 'display: block; overflow: hidden;', $file_text );
55
- $file_text = str_replace('/*THUMBNAIL-HEIGHT*/', 'max-height: 200px;', $file_text );
56
- $file_text = str_replace('/*THUMBNAIL-IMG-WIDTH*/', 'width: '.$thumbnail_width .'px;', $file_text );
57
- $file_text = str_replace('/*THUMBNAIL-IMG-HEIGHT*/', '', $file_text );
58
  break;
59
  case 'ct1': // Cellophane tape center
60
- $file_text = str_replace('/*WRAP*/', 'position: relative;',$file_text );
61
- $file_text = str_replace('/*WRAP-BEFORE*/', 'content: "";display: block;position: absolute;left: 40%;top: -16px;width: 95px;height: 25px;z-index: 2;background-color: rgba(243,245,228,0.5);border: 2px solid rgba(255,255,255,0.5);-webkit-box-shadow: 1px 1px 4px rgba(200,200,180,0.8);-moz-box-shadow: 1px 1px 4px rgba(200,200,180,0.8);box-shadow: 1px 1px 4px rgba(200,200,180,0.8);-webkit-transform: rotate(3deg);-moz-transform: rotate(3deg);-o-transform: rotate(3deg);', $file_text );
62
- $file_text = str_replace('/*SHADOW*/', 'box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.2);', $file_text );
63
  break;
64
  case 'ct2': // Cellophane tape left right
65
- $file_text = str_replace('/*WRAP*/', 'position: relative;',$file_text );
66
- $file_text = str_replace('/*MARGIN-LEFT*/', 'margin-left: 40px;',$file_text );
67
  $file_text = str_replace('/*WRAP-BEFORE*/', 'content: "";display: block;position: absolute;left: -40px;top: -4px;width: 75px;height: 25px;z-index: 2;background-color: rgba(243,245,228,0.5);border: 2px solid rgba(255,255,255,0.5);-webkit-box-shadow: 1px 1px 4px rgba(200,200,180,0.8);-moz-box-shadow: 1px 1px 4px rgba(200,200,180,0.8);box-shadow: 1px 1px 4px rgba(200,200,180,0.8);-webkit-transform: rotate(-45deg);-moz-transform: rotate(-45deg);-o-transform: rotate(-45deg);', $file_text );
68
  $file_text = str_replace('/*WRAP-AFTER*/', 'content: "";display: block;position: absolute;right: -20px;top: -2px;width: 75px;height: 25px;z-index: 2;background-color: rgba(243,245,228,0.5);border: 2px solid rgba(255,255,255,0.5);-webkit-box-shadow: 1px 1px 4px rgba(200,200,180,0.8);-moz-box-shadow: 1px 1px 4px rgba(200,200,180,0.8);box-shadow: 1px 1px 4px rgba(200,200,180,0.8);-webkit-transform: rotate(16deg);-moz-transform: rotate(16deg);-o-transform: rotate(16deg);transform: rotate(16deg);', $file_text );
69
- $file_text = str_replace('/*MARGIN-RIGHT*/', 'margin-right: 25px;',$file_text );
70
- $file_text = str_replace('/*SHADOW*/', 'box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.2);', $file_text );
71
  break;
72
  case 'ct3': // Cellophane long
73
- $file_text = str_replace('/*WRAP*/', 'position: relative;',$file_text );
74
- $file_text = str_replace('/*WRAP-BEFORE*/', 'content: "";display: block;position: absolute;left: -5%;top: -12px;width: 110%;height: 25px;z-index: 2;background-color: rgba(243,245,228,0.5);border: 2px solid rgba(255,255,255,0.5);-webkit-box-shadow: 1px 1px 4px rgba(200,200,180,0.8);-moz-box-shadow: 1px 1px 4px rgba(200,200,180,0.8);box-shadow: 1px 1px 4px rgba(200,200,180,0.8);-webkit-transform: rotate(-3deg);-moz-transform: rotate(-3deg);-o-transform: rotate(-3deg);', $file_text );
75
- $file_text = str_replace('/*MARGIN-LEFT*/', 'margin-left: 32px;',$file_text );
76
- $file_text = str_replace('/*MARGIN-RIGHT*/', 'margin-right: 32px;',$file_text );
77
- $file_text = str_replace('/*SHADOW*/', 'box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.2);', $file_text );
78
  break;
79
  case 'slt': // Slanting
80
- $file_text = str_replace('/*WRAP*/', 'transform:skew(-10deg) rotate(1deg);-webkit-transform: skew(-10deg) rotate(1deg);-moz-transform:skew(-10deg) rotate(1deg);', $file_text );
81
- $file_text = str_replace('/*MARGIN-LEFT*/', 'margin-left: 12px;',$file_text );
82
- $file_text = str_replace('/*MARGIN-RIGHT*/', 'margin-right: 30px;',$file_text );
83
  break;
84
  case '3Dr': // 3D rotate
85
- $file_text = str_replace('/*WRAP*/', '-webkit-transform:perspective(150px) scale3d(0.84,0.9,1) rotate3d(1,0,0,12deg);', $file_text );
86
- $file_text = str_replace('/*SHADOW*/', 'box-shadow: 0 20px 16px rgba(0, 0, 0, 0.6) , 0px 32px 32px rgba(0, 0, 0, 0.2) inset;', $file_text );
87
  break;
88
  case 'ppc': // Paper Curling
89
- $file_text = str_replace('/*WRAP*/', 'position: relative;',$file_text );
90
- $file_text = str_replace('/*WRAP-AFTER*/', 'z-index: -1; content:""; height: 10px; width: 60%; position: absolute; right: 16px; bottom: 14px; left: auto; transform: skew(5deg) rotate(3deg); -webkit-transform: skew(5deg) rotate(3deg); -moz-transform: skew(5deg) rotate(3deg); box-shadow: 0 16px 16px rgba(0,0,0,1); -webkit-box-shadow: 0 16px 16px rgba(0,0,0,1); -moz-box-shadow: 0 16px 12px rgba(0,0,0,1);', $file_text );
91
- $file_text = str_replace('/*SHADOW*/', 'box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.8);', $file_text );
92
- $file_text = str_replace('/*OPTION*/', 'article { position: relative; z-index: 0; } article blockquote { position: relative; z-index: 0; }', $file_text );
93
  break;
94
  case 'tac': // Taping and curling
95
- $file_text = str_replace('/*WRAP*/', 'position: relative;',$file_text );
96
- $file_text = str_replace('/*WRAP-BEFORE*/', 'content: ""; display: block; position: absolute; left: -24px; top: 0px; width: 200px; height: 25px; z-index: 2; background-color: rgba(243,245,228,0.5); border: 2px solid rgba(255,255,255,0.5); -webkit-box-shadow: 1px 1px 4px rgba(200,200,180,0.8); -moz-box-shadow: 1px 1px 4px rgba(200,200,180,0.8); box-shadow: 1px 1px 4px rgba(200,200,180,0.8); -webkit-transform: rotate(-8deg); -moz-transform: rotate(-8deg); -o-transform: rotate(-8deg);', $file_text );
97
- $file_text = str_replace('/*WRAP-AFTER*/', 'z-index: -1; content:""; height: 10px; width: 60%; position: absolute; right: 16px; bottom: 14px; left: auto; transform: skew(5deg) rotate(3deg); -webkit-transform: skew(5deg) rotate(3deg); -moz-transform: skew(5deg) rotate(3deg); box-shadow: 0 16px 16px rgba(0,0,0,1); -webkit-box-shadow: 0 16px 16px rgba(0,0,0,1); -moz-box-shadow: 0 16px 12px rgba(0,0,0,1);', $file_text );
98
- $file_text = str_replace('/*MARGIN-LEFT*/', 'margin-left: 24px;',$file_text );
99
- $file_text = str_replace('/*SHADOW*/', 'box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.8);', $file_text );
100
- $file_text = str_replace('/*OPTION*/', 'article { position: relative; z-index: 0; } article blockquote { position: relative; z-index: 0; }', $file_text );
101
  break;
102
  case 'stR': // Stitch red
103
- $file_text = str_replace('/*WRAP*/', 'position: relative;',$file_text );
104
- $file_text = str_replace('/*WRAP-BEFORE*/', 'content: ""; display: block; position: absolute; left: -24px; top: 0px; width: 200px; height: 25px; z-index: 2; background-color: rgba(243,245,228,0.5); border: 2px solid rgba(255,255,255,0.5); -webkit-box-shadow: 1px 1px 4px rgba(200,200,180,0.8); -moz-box-shadow: 1px 1px 4px rgba(200,200,180,0.8); box-shadow: 1px 1px 4px rgba(200,200,180,0.8); -webkit-transform: rotate(-8deg); -moz-transform: rotate(-8deg); -o-transform: rotate(-8deg);', $file_text );
105
- $file_text = str_replace('/*WRAP-AFTER*/', 'z-index: -1; content:""; height: 10px; width: 60%; position: absolute; right: 16px; bottom: 14px; left: auto; transform: skew(5deg) rotate(3deg); -webkit-transform: skew(5deg) rotate(3deg); -moz-transform: skew(5deg) rotate(3deg); box-shadow: 0 16px 16px rgba(0,0,0,1); -webkit-box-shadow: 0 16px 16px rgba(0,0,0,1); -moz-box-shadow: 0 16px 12px rgba(0,0,0,1);', $file_text );
106
- $file_text = str_replace('/*MARGIN-LEFT*/', 'margin-left: 24px;',$file_text );
107
- $file_text = str_replace('/*SHADOW*/', 'box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.8);', $file_text );
108
- $file_text = str_replace('/*OPTION*/', 'article { position: relative; z-index: 0; } article blockquote { position: relative; z-index: 0; }', $file_text );
109
  break;
110
  case 'pin': // Pushpin
111
- $file_text = str_replace('/*WRAP*/', 'position: relative;',$file_text );
112
- $file_text = str_replace('/*WRAP-AFTER*/', 'content: ""; display: block; position: absolute; background-image: url("'.$this->plugin_dir_url.'img/pin.png"); background-repeat: no-repeat; background-position: center; left: 0px; top: -40px; width: 100%; height: 100px; z-index: 2;', $file_text );
113
  break;
114
  case 'inN': // Neutral
115
- $file_text = str_replace('/*BORDER*/', 'border: 4px solid #59fbea;',$file_text );
116
- $file_text = str_replace('/*COLOR-TITLE*/', 'color: #59fbea;',$file_text );
117
- $file_text = str_replace('/*COLOR-URL*/', 'color: #59fbea;',$file_text );
118
- $file_text = str_replace('/*COLOR-EXCERPT*/', 'color: #59fbea;',$file_text );
119
- $file_text = str_replace('/*COLOR-INFO*/', 'color: #59fbea;',$file_text );
120
- $file_text = str_replace('/*COLOR-PLUGIN*/', 'color: #59fbea;',$file_text );
121
- $file_text = str_replace('/*EX-BGCOLOR*/', 'background-color: rgba( 35,100, 93,0.9);',$file_text );
122
- $file_text = str_replace('/*IN-BGCOLOR*/', 'background-color: rgba( 8, 25, 23,0.9);',$file_text );
123
- $file_text = str_replace('/*TH-BGCOLOR*/', 'background-color: rgba( 89,251,234,0.05);',$file_text );
124
  break;
125
  case 'inI': // Orange
126
- $file_text = str_replace('/*BORDER*/', 'border: 4px solid #ebbc4a;',$file_text );
127
- $file_text = str_replace('/*COLOR-TITLE*/', 'color: #ebbc4a;',$file_text );
128
- $file_text = str_replace('/*COLOR-URL*/', 'color: #ebbc4a;',$file_text );
129
- $file_text = str_replace('/*COLOR-EXCERPT*/', 'color: #ebbc4a;',$file_text );
130
- $file_text = str_replace('/*COLOR-INFO*/', 'color: #ebbc4a;',$file_text );
131
- $file_text = str_replace('/*COLOR-PLUGIN*/', 'color: #ebbc4a;',$file_text );
132
- $file_text = str_replace('/*EX-BGCOLOR*/', 'background-color: rgba( 94, 75, 29,0.9);',$file_text );
133
- $file_text = str_replace('/*IN-BGCOLOR*/', 'background-color: rgba( 23, 18, 7,0.9);',$file_text );
134
- $file_text = str_replace('/*TH-BGCOLOR*/', 'background-color: rgba(235,188, 74,0.05);',$file_text );
135
  break;
136
  case 'inE': // Green
137
- $file_text = str_replace('/*BORDER*/', 'border: 4px solid #28f428;',$file_text );
138
- $file_text = str_replace('/*COLOR-TITLE*/', 'color: #28f428;',$file_text );
139
- $file_text = str_replace('/*COLOR-URL*/', 'color: #28f428;',$file_text );
140
- $file_text = str_replace('/*COLOR-EXCERPT*/', 'color: #28f428;',$file_text );
141
- $file_text = str_replace('/*COLOR-INFO*/', 'color: #28f428;',$file_text );
142
- $file_text = str_replace('/*COLOR-PLUGIN*/', 'color: #28f428;',$file_text );
143
- $file_text = str_replace('/*EX-BGCOLOR*/', 'background-color: rgba( 16, 97, 16,0.9);',$file_text );
144
- $file_text = str_replace('/*IN-BGCOLOR*/', 'background-color: rgba( 4, 24, 4,0.9);',$file_text );
145
- $file_text = str_replace('/*TH-BGCOLOR*/', 'background-color: rgba( 40,244, 40,0.05);',$file_text );
146
  break;
147
  case 'inR': // Blue
148
- $file_text = str_replace('/*BORDER*/', 'border: 4px solid #00c2ff;',$file_text );
149
- $file_text = str_replace('/*COLOR-TITLE*/', 'color: #00c2ff;',$file_text );
150
- $file_text = str_replace('/*COLOR-URL*/', 'color: #00c2ff;',$file_text );
151
- $file_text = str_replace('/*COLOR-EXCERPT*/', 'color: #00c2ff;',$file_text );
152
- $file_text = str_replace('/*COLOR-INFO*/', 'color: #00c2ff;',$file_text );
153
- $file_text = str_replace('/*COLOR-PLUGIN*/', 'color: #00c2ff;',$file_text );
154
- $file_text = str_replace('/*EX-BGCOLOR*/', 'background-color: rgba( 0, 77,102,0.9);',$file_text );
155
- $file_text = str_replace('/*IN-BGCOLOR*/', 'background-color: rgba( 0, 19, 25,0.9);',$file_text );
156
- $file_text = str_replace('/*TH-BGCOLOR*/', 'background-color: rgba( 0,194,255,0.05);',$file_text );
157
  break;
158
  case 'sBR': // Stitch blue&red
159
- $file_text = str_replace('/*BORDER*/', 'border: 2px dashed rgba(255,255,255,0.5);',$file_text );
160
- $file_text = str_replace('/*EX-BGCOLOR*/', 'background: #bcddff; box-shadow: 0 0 0 5px #aabbee, 3px 3px 6px 4px rgba(0,0,0,0.6); -moz-box-shadow: 0 0 0 5px #aabbee, 3px 3px 6px 4px rgba(0,0,0,0.6); -webkit-box-shadow: 0 0 0 5px #aabbee, 3px 3px 6px 4px rgba(0,0,0,0.6);',$file_text );
161
- $file_text = str_replace('/*IN-BGCOLOR*/', 'background: #f8d0d0; box-shadow: 0 0 0 5px #e8a8a8, 3px 3px 6px 4px rgba(0,0,0,0.6); -moz-box-shadow: 0 0 0 5px #e8a8a8, 3px 3px 6px 4px rgba(0,0,0,0.6); -webkit-box-shadow: 0 0 0 5px #e8a8a8, 3px 3px 6px 4px rgba(0,0,0,0.6);',$file_text );
162
- $file_text = str_replace('/*TH-BGCOLOR*/', 'background: #f29db0; box-shadow: 0 0 0 5px #de8899, 3px 3px 6px 4px rgba(0,0,0,0.6); -moz-box-shadow: 0 0 0 5px #de8899, 3px 3px 6px 4px rgba(0,0,0,0.6); -webkit-box-shadow: 0 0 0 5px #de8899, 3px 3px 6px 4px rgba(0,0,0,0.6);',$file_text );
163
  break;
164
  case 'sGY': // Stitch green&yellow
165
- $file_text = str_replace('/*BORDER*/', 'border: 2px dashed rgba(255,255,255,0.5);',$file_text );
166
- $file_text = str_replace('/*EX-BGCOLOR*/', 'background: #acefdd; box-shadow: 0 0 0 5px #8abecb, 3px 3px 6px 4px rgba(0,0,0,0.6); -moz-box-shadow: 0 0 0 5px #8abecb, 3px 3px 6px 4px rgba(0,0,0,0.6); -webkit-box-shadow: 0 0 0 5px #8abecb, 3px 3px 6px 4px rgba(0,0,0,0.6);',$file_text );
167
- $file_text = str_replace('/*IN-BGCOLOR*/', 'background: #ffde51; box-shadow: 0 0 0 5px #fbca4d, 3px 3px 6px 4px rgba(0,0,0,0.6); -moz-box-shadow: 0 0 0 5px #fbca4d, 3px 3px 6px 4px rgba(0,0,0,0.6); -webkit-box-shadow: 0 0 0 5px #fbca4d, 3px 3px 6px 4px rgba(0,0,0,0.6);',$file_text );
168
- $file_text = str_replace('/*TH-BGCOLOR*/', 'background: #f0e0b0; box-shadow: 0 0 0 5px #decca0, 3px 3px 6px 4px rgba(0,0,0,0.6); -moz-box-shadow: 0 0 0 5px #decca0, 3px 3px 6px 4px rgba(0,0,0,0.6); -webkit-box-shadow: 0 0 0 5px #decca0, 3px 3px 6px 4px rgba(0,0,0,0.6);',$file_text );
169
  break;
170
  }
171
 
172
  // 文字色
173
- $file_text = str_replace('/*COLOR-TITLE*/', 'color: '.$this->options['color-title'].';',$file_text );
174
- $file_text = str_replace('/*COLOR-URL*/', 'color: '.$this->options['color-url'].';',$file_text );
175
- $file_text = str_replace('/*COLOR-EXCERPT*/', 'color: '.$this->options['color-excerpt'].';',$file_text );
176
- $file_text = str_replace('/*COLOR-INFO*/', 'color: '.$this->options['color-info'].';',$file_text );
177
- $file_text = str_replace('/*COLOR-PLUGIN*/', 'color: '.$this->options['color-plugin'].';',$file_text );
178
 
179
  // 文字の大きさ
180
- $file_text = str_replace('/*SIZE-TITLE*/', 'font-size: '.$this->options['size-title'].';',$file_text );
181
- $file_text = str_replace('/*SIZE-URL*/', 'font-size: '.$this->options['size-url'].';',$file_text );
182
- $file_text = str_replace('/*SIZE-EXCERPT*/', 'font-size: '.$this->options['size-excerpt'].';',$file_text );
183
- $file_text = str_replace('/*SIZE-INFO*/', 'font-size: '.$this->options['size-info'].';',$file_text );
184
- $file_text = str_replace('/*SIZE-PLUGIN*/', 'font-size: '.$this->options['size-plugin'].';',$file_text );
185
 
186
  // 行の高さ
187
- $file_text = str_replace('/*HEIGHT-TITLE*/', 'line-height: '.$this->options['height-title'].';',$file_text );
188
- $file_text = str_replace('/*HEIGHT-URL*/', 'line-height: '.$this->options['height-url'].';',$file_text );
189
- $file_text = str_replace('/*HEIGHT-EXCERPT*/', 'line-height: '.$this->options['height-excerpt'].';',$file_text );
190
- $file_text = str_replace('/*HEIGHT-INFO*/', 'line-height: '.$this->options['height-info'].';',$file_text );
191
- $file_text = str_replace('/*HEIGHT-PLUGIN*/', 'line-height: '.$this->options['height-plugin'].';',$file_text );
192
 
193
  // 文字の縁取り
194
  //
195
  if (isset($this->options['outline-title']) && $this->options['outline-title'] == '1') {
196
- $file_text = str_replace('/*OUTCOLOR-TITLE*/', 'text-shadow: 0 -1px '.$this->options['outline-color-title'].', 1px -1px '.$this->options['outline-color-title'].', 1px 0 '.$this->options['outline-color-title'].', 1px 1px '.$this->options['outline-color-title'].', 0 1px '.$this->options['outline-color-title'].', -1px 1px '.$this->options['outline-color-title'].', -1px 0 '.$this->options['outline-color-title'].', -1px -1px '.$this->options['outline-color-title'].';',$file_text );
197
  }
198
  if (isset($this->options['outline-url']) && $this->options['outline-url'] == '1') {
199
- $file_text = str_replace('/*OUTCOLOR-URL*/', 'text-shadow: 0 -1px '.$this->options['outline-color-url'].', 1px -1px '.$this->options['outline-color-url'].', 1px 0 '.$this->options['outline-color-url'].', 1px 1px '.$this->options['outline-color-url'].', 0 1px '.$this->options['outline-color-url'].', -1px 1px '.$this->options['outline-color-url'].', -1px 0 '.$this->options['outline-color-url'].', -1px -1px '.$this->options['outline-color-url'].';',$file_text );
200
  }
201
  if (isset($this->options['outline-excerpt']) && $this->options['outline-excerpt'] == '1') {
202
- $file_text = str_replace('/*OUTCOLOR-EXCERPT*/','text-shadow: 0 -1px '.$this->options['outline-color-excerpt'].', 1px -1px '.$this->options['outline-color-excerpt'].', 1px 0 '.$this->options['outline-color-excerpt'].', 1px 1px '.$this->options['outline-color-excerpt'].', 0 1px '.$this->options['outline-color-excerpt'].', -1px 1px '.$this->options['outline-color-excerpt'].', -1px 0 '.$this->options['outline-color-excerpt'].', -1px -1px '.$this->options['outline-color-excerpt'].';',$file_text );
203
  }
204
  if (isset($this->options['outline-info']) && $this->options['outline-info'] == '1') {
205
- $file_text = str_replace('/*OUTCOLOR-INFO*/', 'text-shadow: 0 -1px '.$this->options['outline-color-info'].', 1px -1px '.$this->options['outline-color-info'].', 1px 0 '.$this->options['outline-color-info'].', 1px 1px '.$this->options['outline-color-info'].', 0 1px '.$this->options['outline-color-info'].', -1px 1px '.$this->options['outline-color-info'].', -1px 0 '.$this->options['outline-color-info'].', -1px -1px '.$this->options['outline-color-info'].';',$file_text );
206
  }
207
  if (isset($this->options['outline-plugin']) && $this->options['outline-plugin'] == '1') {
208
- $file_text = str_replace('/*OUTCOLOR-PLUGIN*/', 'text-shadow: 0 -1px '.$this->options['outline-color-plugin'].', 1px -1px '.$this->options['outline-color-plugin'].', 1px 0 '.$this->options['outline-color-plugin'].', 1px 1px '.$this->options['outline-color-plugin'].', 0 1px '.$this->options['outline-color-plugin'].', -1px 1px '.$this->options['outline-color-plugin'].', -1px 0 '.$this->options['outline-color-plugin'].', -1px -1px '.$this->options['outline-color-plugin'].';',$file_text );
209
  }
210
 
211
  // カードの周りへの余白
212
  if ($this->options['margin-top']) {
213
- $file_text = str_replace('/*MARGIN-TOP*/', 'margin-top: '.$this->options['margin-top'].';',$file_text );
214
  }
215
  if ($this->options['margin-right']) {
216
- $file_text = str_replace('/*MARGIN-RIGHT*/', 'margin-right: '.$this->options['margin-right'].';',$file_text );
217
  }
218
  if ($this->options['margin-bottom']) {
219
- $file_text = str_replace('/*MARGIN-BOTTOM*/', 'margin-bottom: '.$this->options['margin-bottom'].';',$file_text );
220
  }
221
  if ($this->options['margin-left']) {
222
- $file_text = str_replace('/*MARGIN-LEFT*/', 'margin-left: '.$this->options['margin-left'].';',$file_text );
223
  }
224
 
225
  // カードの余白等調整
226
- $file_text = str_replace('/*PADDING*/', 'padding: 0;',$file_text );
227
 
228
  // カード内側の余白
229
  if ($this->options['card-top']) {
230
- $file_text = str_replace('/*CARD-TOP*/', 'margin-top: '.$this->options['card-top'].';',$file_text );
231
  } else {
232
- $file_text = str_replace('/*CARD-TOP*/', 'margin-top: 7px;',$file_text );
233
  }
234
  if ($this->options['card-right']) {
235
- $file_text = str_replace('/*CARD-RIGHT*/', 'margin-right: '.$this->options['card-right'].';',$file_text );
236
  } else {
237
- $file_text = str_replace('/*CARD-RIGHT*/', 'margin-right: 7px;',$file_text );
238
  }
239
  if ($this->options['card-bottom']) {
240
- $file_text = str_replace('/*CARD-BOTTOM*/', 'margin-bottom: '.$this->options['card-bottom'].';',$file_text );
241
  } else {
242
- $file_text = str_replace('/*CARD-BOTTOM*/', 'margin-bottom: 7px;',$file_text );
243
  }
244
  if ($this->options['card-left']) {
245
- $file_text = str_replace('/*CARD-LEFT*/', 'margin-left: '.$this->options['card-left'].';',$file_text );
246
  } else {
247
- $file_text = str_replace('/*CARD-LEFT*/', 'margin-left: 7px;',$file_text );
248
  }
249
 
250
  // img のスタイルを強制リセット
251
  if (isset($this->options['style-reset-img'])) {
252
- $file_text = str_replace('/*RESET-IMG*/', 'margin: 0 !important; padding: 0; border: none;', $file_text );
253
- $file_text = str_replace('/*STATIC*/', 'position: static !important;',$file_text );
254
- $file_text = str_replace('/*IMPORTANT*/', '!important',$file_text );
255
  } else {
256
- $file_text = str_replace('/*IMPORTANT*/', '',$file_text );
257
  }
258
 
259
  // 外部リンク背景
260
  if ($this->options['ex-bgcolor']) {
261
- $file_text = str_replace('/*EX-BGCOLOR*/', 'background-color: '.$this->options['ex-bgcolor'].';',$file_text );
262
  }
263
  if ($this->options['ex-image']) {
264
  if (preg_match('/https?(:\/\/[-_.!~*\'()a-zA-Z0-9;\/?:\@&=+\$,%#]+)$/', $this->options['ex-image'])) {
265
- $file_text = str_replace('/*EX-IMAGE*/', 'background-image: url("'.$this->options['ex-image'].'");',$file_text );
266
  } else {
267
- $file_text = str_replace('/*EX-IMAGE*/', 'background-image: '.$this->options['ex-image'].';',$file_text );
268
  }
269
  }
270
 
271
  // 内部リンク背景
272
  if ($this->options['in-bgcolor']) {
273
- $file_text = str_replace('/*IN-BGCOLOR*/', 'background-color: '.$this->options['in-bgcolor'].';',$file_text );
274
  }
275
  if ($this->options['in-image']) {
276
  if (preg_match('/https?(:\/\/[-_.!~*\'()a-zA-Z0-9;\/?:\@&=+\$,%#]+)$/', $this->options['in-image'])) {
277
- $file_text = str_replace('/*IN-IMAGE*/', 'background-image: url("'.$this->options['in-image'].'");',$file_text );
278
  } else {
279
- $file_text = str_replace('/*IN-IMAGE*/', 'background-image: '.$this->options['in-image'].';',$file_text );
280
  }
281
  }
282
 
283
  // 同ページリンク背景色
284
  if ($this->options['th-bgcolor']) {
285
- $file_text = str_replace('/*TH-BGCOLOR*/', 'background-color: '.$this->options['th-bgcolor'].';',$file_text );
286
  }
287
  if ($this->options['th-image']) {
288
  if (preg_match('/https?(:\/\/[-_.!~*\'()a-zA-Z0-9;\/?:\@&=+\$,%#]+)$/', $this->options['th-image'])) {
289
- $file_text = str_replace('/*TH-IMAGE*/', 'background-image: url("'.$this->options['th-image'].'");',$file_text );
290
  } else {
291
- $file_text = str_replace('/*TH-IMAGE*/', 'background-image: '.$this->options['th-image'].';',$file_text );
292
  }
293
  }
294
 
295
  // センタリング指定あり
296
  if (isset($this->options['centering']) && $this->options['centering'] == '1') {
297
- $file_text = str_replace('/*LINKCARD-WRAP-MARGIN*/', 'margin: 0 auto;',$file_text );
298
- $file_text = str_replace('/*HATENA-WRAP-MARGIN*/', 'margin: 0 auto;',$file_text );
299
  } else {
300
- $file_text = str_replace('/*LINKCARD-WRAP-MARGIN*/', 'margin: 0;',$file_text );
301
- $file_text = str_replace('/*HATENA-WRAP-MARGIN*/', 'margin: 0;',$file_text );
302
  }
303
 
304
  // 角まる指定あり
305
  if (isset($this->options['radius']) && $this->options['radius'] == '1') {
306
- $file_text = str_replace('/*RADIUS*/', 'border-radius: 8px; -webkit-border-radius: 8px; -moz-border-radius: 8px;',$file_text );
307
- $file_text = str_replace('/*THUMBNAIL-RADIUS*/', 'border-radius: 6px; -webkit-border-radius: 6px; -moz-border-radius: 6px;',$file_text );
308
  }
309
 
310
  // 影あり
311
  if (isset($this->options['shadow']) && $this->options['shadow'] == '1') {
312
  if (isset($this->options['shadow-inset']) && $this->options['shadow-inset'] == '1') {
313
- $file_text = str_replace('/*SHADOW*/', 'box-shadow: 8px 8px 8px rgba(0, 0, 0, 0.5) , 0 0 16px rgba(0, 0, 0, 0.3) inset;',$file_text );
314
  } else {
315
- $file_text = str_replace('/*SHADOW*/', 'box-shadow: 8px 8px 8px rgba(0, 0, 0, 0.5);',$file_text );
316
  }
317
  } else {
318
  if (isset($this->options['shadow-inset']) && $this->options['shadow-inset'] == '1') {
319
- $file_text = str_replace('/*SHADOW*/', 'box-shadow: 0 0 16px rgba(0, 0, 0, 0.5) inset;',$file_text );
320
  }
321
  }
322
 
@@ -327,29 +327,29 @@
327
  $content_height = preg_replace('/[^0-9]/', '', isset($this->options['content-height'] ) ? $this->options['content-height'] : $this->defaults['content-height'] ) - 0;
328
  switch ($this->options['thumbnail-position']) {
329
  case '1':
330
- $file_text = str_replace('/*THUMBNAIL_POSITION*/', 'float: right;;',$file_text );
331
- $file_text = str_replace('/*THUMBNAIL-WIDTH*/', 'max-width: '.$thumbnail_width .'px;', $file_text );
332
- $file_text = str_replace('/*THUMBNAIL-HEIGHT*/', 'max-height: '.$thumbnail_height.'px;', $file_text );
333
- $file_text = str_replace('/*THUMBNAIL-IMG-WIDTH*/', 'width: '.$thumbnail_width .'px;', $file_text );
334
- $file_text = str_replace('/*THUMBNAIL-IMG-HEIGHT*/','max-height: '.$thumbnail_height.'px;', $file_text );
335
  break;
336
  case '2':
337
- $file_text = str_replace('/*THUMBNAIL_POSITION*/', 'float: left;',$file_text );
338
- $file_text = str_replace('/*THUMBNAIL-WIDTH*/', 'max-width: '.$thumbnail_width .'px;', $file_text );
339
- $file_text = str_replace('/*THUMBNAIL-HEIGHT*/', 'max-height: '.$thumbnail_height.'px;', $file_text );
340
- $file_text = str_replace('/*THUMBNAIL-IMG-WIDTH*/', 'width: '.$thumbnail_width .'px;', $file_text );
341
- $file_text = str_replace('/*THUMBNAIL-IMG-HEIGHT*/','max-height: '.$thumbnail_height.'px;', $file_text );
342
  break;
343
  case '3':
344
- $file_text = str_replace('/*THUMBNAIL_POSITION*/', 'display: block;',$file_text );
345
- $file_text = str_replace('/*THUMBNAIL-HEIGHT*/', 'height: '.$thumbnail_height.'px; overflow: hidden;', $file_text );
346
- $file_text = str_replace('/*THUMBNAIL-IMG-WIDTH*/', 'width: '.$content_width .'px;', $file_text );
347
  break;
348
  }
349
 
350
  // サムネイル影あり
351
  if (isset($this->options['thumbnail-shadow']) && $this->options['thumbnail-shadow'] == '1') {
352
- $file_text = str_replace('/*THUMBNAIL-SHADOW*/', 'box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);',$file_text );
353
  }
354
 
355
  // サムネイルのリサイズ
@@ -357,70 +357,68 @@
357
  $file_text = str_replace('/*RESIZE*/',
358
  '@media screen and (max-width: 600px) {'.PHP_EOL.'.lkc-title {'.PHP_EOL.'font-size: 90%;'.PHP_EOL.'line-height: 90%;'.PHP_EOL.'}'.PHP_EOL.'.lkc-excerpt {'.PHP_EOL.'font-size: 80%;'.PHP_EOL.'}'.PHP_EOL.'.lkc-thumbnail {'.PHP_EOL.'max-width: 70px;'.PHP_EOL.'max-height: 70px;'.PHP_EOL.'}'.PHP_EOL.'.lkc-thumbnail-img {'.PHP_EOL.'max-width: 70px;'.PHP_EOL.'max-height: 70px;'.PHP_EOL.'}'.PHP_EOL.'}'.PHP_EOL.
359
  '@media screen and (max-width: 480px) {'.PHP_EOL.'.lkc-title {'.PHP_EOL.'font-size: 80%;'.PHP_EOL.'line-height: 80%;'.PHP_EOL.'}'.PHP_EOL.'.lkc-excerpt {'.PHP_EOL.'font-size: 65%;'.PHP_EOL.'}'.PHP_EOL.'.lkc-thumbnail {'.PHP_EOL.'max-width: 60px;'.PHP_EOL.'max-height: 60px;'.PHP_EOL.'}'.PHP_EOL.'.lkc-thumbnail-img {'.PHP_EOL.'max-width: 60px;'.PHP_EOL.'max-height: 60px;'.PHP_EOL.'}'.PHP_EOL.'}'.PHP_EOL.
360
- '@media screen and (max-width: 320px) {'.PHP_EOL.'.lkc-title {'.PHP_EOL.'font-size: 70%;'.PHP_EOL.'line-height: 70%;'.PHP_EOL.'}'.PHP_EOL.'.lkc-excerpt {'.PHP_EOL.'font-size: 50%;'.PHP_EOL.'}'.PHP_EOL.'.lkc-thumbnail {'.PHP_EOL.'max-width: 50px;'.PHP_EOL.'max-height: 50px;'.PHP_EOL.'}'.PHP_EOL.'.lkc-thumbnail-img {'.PHP_EOL.'max-width: 50px;'.PHP_EOL.'max-height: 50px;'.PHP_EOL.'}'.PHP_EOL.'}',$file_text );
361
  }
362
 
363
  // 横幅
364
- if ($this->options['width'] == '') {
365
- $file_text = str_replace('/*WIDTH*/', 'max-width: 100%;',$file_text );
366
  } else {
367
- $file_text = str_replace('/*WIDTH*/', 'max-width: '.$this->options['width'].';',$file_text );
368
  }
369
 
370
  // 記事情報の高さ
371
- if ($this->options['content-height'] == '') {
372
- $file_text = str_replace('/*CONTENT-HEIGHT*/', 'height: 108px;',$file_text );
373
- } else {
374
- $file_text = str_replace('/*CONTENT-HEIGHT*/', 'height: '.$this->options['content-height'].';',$file_text );
375
  }
376
 
377
  // リンク先のURLを表示する
378
  if (isset($this->options['display-url']) && $this->options['display-url'] == '1') {
379
- $file_text = str_replace('/*DISPLAY-URL*/', 'display: block;',$file_text );
380
  } else {
381
- $file_text = str_replace('/*DISPLAY-URL*/', 'display: none;',$file_text );
382
  }
383
 
384
  // 枠線の太さ
385
  switch (isset($this->options['border']) ? $this->options['border'] : '') {
386
  case '1gr':
387
- $file_text = str_replace('/*BORDER*/', 'border: 1px solid #ddd;',$file_text );
388
  break;
389
  case '2gr':
390
- $file_text = str_replace('/*BORDER*/', 'border: 2px solid #ddd;',$file_text );
391
  break;
392
  case '4gr':
393
- $file_text = str_replace('/*BORDER*/', 'border: 4px solid #ddd;',$file_text );
394
  break;
395
  case '1bk':
396
- $file_text = str_replace('/*BORDER*/', 'border: 1px solid #444;',$file_text );
397
  break;
398
  case '2bk':
399
- $file_text = str_replace('/*BORDER*/', 'border: 2px solid #444;',$file_text );
400
  break;
401
  case '4bk':
402
- $file_text = str_replace('/*BORDER*/', 'border: 4px solid #444;',$file_text );
403
  break;
404
  case '8bk':
405
- $file_text = str_replace('/*BORDER*/', 'border: 8px solid #444;',$file_text );
406
  break;
407
  case 'blu':
408
- $file_text = str_replace('/*BORDER*/', 'border: 4px solid #1e90ff;',$file_text );
409
  break;
410
  case 'gre':
411
- $file_text = str_replace('/*BORDER*/', 'border: 4px solid #66cdaa;',$file_text );
412
  break;
413
  case 'red':
414
- $file_text = str_replace('/*BORDER*/', 'border: 4px solid #ff69b4;',$file_text );
415
  break;
416
  case 'wht': // Wheat
417
- $file_text = str_replace('/*BORDER*/', 'border: 4px solid #f5deb3;',$file_text );
418
  break;
419
  case 'dbl':
420
- $file_text = str_replace('/*BORDER*/', 'border: 4px double #444;',$file_text );
421
  break;
422
  case 'dot':
423
- $file_text = str_replace('/*BORDER*/', 'border: 1px dotted #444;',$file_text );
424
  break;
425
  default:
426
  break;
@@ -430,33 +428,52 @@
430
  $border = (preg_replace('/[^0-9]/', '', $this->options['border-width']) - 0).'px ';
431
  $border .= (isset($this->options['border-style']) ? $this->options['border-style'] : $this->defaults['border-style']).' ';
432
  $border .= (isset($this->options['border-color']) ? $this->options['border-color'] : $this->defaults['border-color']).';';
433
- $file_text = str_replace('/*BORDER*/', 'border: '.$border,$file_text );
434
 
435
  // 抜粋文の部分を凹ませる
436
  if (isset($this->options['content-inset']) && $this->options['content-inset'] == '1') {
437
- $file_text = str_replace('/*CONTENT-PADDING*/', 'padding: 6px;',$file_text );
438
- $file_text = str_replace('/*CONTENT-INSET*/', 'box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.5) inset;',$file_text );
439
- $file_text = str_replace('/*CONTENT-BGCOLOR*/', 'background-color: rgba(255, 255, 255, 0.8 );',$file_text );
440
  }
441
 
442
  // サイト情報の区切り線
443
  if (isset($this->options['separator']) && $this->options['separator'] == '1') {
444
  switch ($this->options['info-position']) {
445
  case '1':
446
- $file_text = str_replace('/*SEPARATOR*/', 'border-top: 1px solid '.$this->options['color-info'].';',$file_text );
 
447
  case '2':
448
- $file_text = str_replace('/*SEPARATOR*/', 'border-bottom: 1px solid '.$this->options['color-info'].';',$file_text );
 
449
  }
450
  }
451
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
452
  // ぽぽづれ。へのリンクを表示する
453
  if (isset($this->options['plugin-link']) && $this->options['plugin-link'] == '1') {
454
- $file_text = str_replace('/*CREDIT*/', 'display: block;',$file_text );
455
  } else {
456
- $file_text = str_replace('/*CREDIT*/', 'display: none;',$file_text );
457
  }
458
 
459
- $result = file_put_contents($css_path,$file_text);
460
  global $pagenow;
461
  if (isset($pagenow) && $pagenow == 'options-general.php') {
462
  if ($result == true) {
33
  // オマケ書式
34
  switch ($this->options['special-format']) {
35
  case 'LkC': // Pz-LkC Default
36
+ $file_text = str_replace('/*EX-IMAGE*/', 'background-image: linear-gradient(#78f 0%, #78f 10%, #fff 30%);', $file_text );
37
+ $file_text = str_replace('/*IN-IMAGE*/', 'background-image: linear-gradient(#ca4 0%, #ca4 10%, #fff 30%);', $file_text );
38
+ $file_text = str_replace('/*TH-IMAGE*/', 'background-image: linear-gradient(#ca4 0%, #ca4 10%, #eee 30%);', $file_text );
39
  switch ($this->options['info-position']) {
40
  case '1':
41
+ $file_text = str_replace('/*COLOR-INFO*/', 'color: #fff;', $file_text );
42
  }
43
+ $file_text = str_replace('/*THUMBNAIL_POSITION*/', 'float: left;', $file_text );
44
  break;
45
  case 'hbc': // Hatena Blogcard
46
+ $file_text = str_replace('/*BORDER*/', 'border: 1px solid rgba(0,0,0,0.1);', $file_text );
47
+ $file_text = str_replace('/*RADIUS*/', 'border-radius: 3px; -webkit-border-radius: 3px; -moz-border-radius: 3px;', $file_text );
48
+ $file_text = str_replace('/*SHADOW*/', 'box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);', $file_text );
49
  break;
50
  case 'sqr': // Square
51
+ $file_text = str_replace('/*HEIGHT*/', 'height: 337px;', $file_text );
52
+ $file_text = str_replace('/*CONTENT-HEIGHT*/', 'height: 300px;', $file_text );
53
+ $thumbnail_width = preg_replace('/[^0-9]/', '', isset($this->options['width']) ? $this->options['width'] : $this->defaults['thumbnail-width'] ) - 0;
54
+ $file_text = str_replace('/*THUMBNAIL-WIDTH*/', 'display: block; overflow: hidden;', $file_text );
55
+ $file_text = str_replace('/*THUMBNAIL-HEIGHT*/', 'max-height: 200px;', $file_text );
56
+ $file_text = str_replace('/*THUMBNAIL-IMG-WIDTH*/', 'width: '.$thumbnail_width .'px;', $file_text );
57
+ $file_text = str_replace('/*THUMBNAIL-IMG-HEIGHT*/', '', $file_text );
58
  break;
59
  case 'ct1': // Cellophane tape center
60
+ $file_text = str_replace('/*WRAP*/', 'position: relative;', $file_text );
61
+ $file_text = str_replace('/*WRAP-BEFORE*/', 'content: "";display: block;position: absolute;left: 40%;top: -16px;width: 95px;height: 25px;z-index: 2;background-color: rgba(243,245,228,0.5);border: 2px solid rgba(255,255,255,0.5);-webkit-box-shadow: 1px 1px 4px rgba(200,200,180,0.8);-moz-box-shadow: 1px 1px 4px rgba(200,200,180,0.8);box-shadow: 1px 1px 4px rgba(200,200,180,0.8);-webkit-transform: rotate(3deg);-moz-transform: rotate(3deg);-o-transform: rotate(3deg);', $file_text );
62
+ $file_text = str_replace('/*SHADOW*/', 'box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.2);', $file_text );
63
  break;
64
  case 'ct2': // Cellophane tape left right
65
+ $file_text = str_replace('/*WRAP*/', 'position: relative;', $file_text );
66
+ $file_text = str_replace('/*MARGIN-LEFT*/', 'margin-left: 40px;', $file_text );
67
  $file_text = str_replace('/*WRAP-BEFORE*/', 'content: "";display: block;position: absolute;left: -40px;top: -4px;width: 75px;height: 25px;z-index: 2;background-color: rgba(243,245,228,0.5);border: 2px solid rgba(255,255,255,0.5);-webkit-box-shadow: 1px 1px 4px rgba(200,200,180,0.8);-moz-box-shadow: 1px 1px 4px rgba(200,200,180,0.8);box-shadow: 1px 1px 4px rgba(200,200,180,0.8);-webkit-transform: rotate(-45deg);-moz-transform: rotate(-45deg);-o-transform: rotate(-45deg);', $file_text );
68
  $file_text = str_replace('/*WRAP-AFTER*/', 'content: "";display: block;position: absolute;right: -20px;top: -2px;width: 75px;height: 25px;z-index: 2;background-color: rgba(243,245,228,0.5);border: 2px solid rgba(255,255,255,0.5);-webkit-box-shadow: 1px 1px 4px rgba(200,200,180,0.8);-moz-box-shadow: 1px 1px 4px rgba(200,200,180,0.8);box-shadow: 1px 1px 4px rgba(200,200,180,0.8);-webkit-transform: rotate(16deg);-moz-transform: rotate(16deg);-o-transform: rotate(16deg);transform: rotate(16deg);', $file_text );
69
+ $file_text = str_replace('/*MARGIN-RIGHT*/', 'margin-right: 25px;', $file_text );
70
+ $file_text = str_replace('/*SHADOW*/', 'box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.2);', $file_text );
71
  break;
72
  case 'ct3': // Cellophane long
73
+ $file_text = str_replace('/*WRAP*/', 'position: relative;', $file_text );
74
+ $file_text = str_replace('/*WRAP-BEFORE*/', 'content: "";display: block;position: absolute;left: -5%;top: -12px;width: 110%;height: 25px;z-index: 2;background-color: rgba(243,245,228,0.5);border: 2px solid rgba(255,255,255,0.5);-webkit-box-shadow: 1px 1px 4px rgba(200,200,180,0.8);-moz-box-shadow: 1px 1px 4px rgba(200,200,180,0.8);box-shadow: 1px 1px 4px rgba(200,200,180,0.8);-webkit-transform: rotate(-3deg);-moz-transform: rotate(-3deg);-o-transform: rotate(-3deg);', $file_text );
75
+ $file_text = str_replace('/*MARGIN-LEFT*/', 'margin-left: 32px;', $file_text );
76
+ $file_text = str_replace('/*MARGIN-RIGHT*/', 'margin-right: 32px;', $file_text );
77
+ $file_text = str_replace('/*SHADOW*/', 'box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.2);', $file_text );
78
  break;
79
  case 'slt': // Slanting
80
+ $file_text = str_replace('/*WRAP*/', 'transform:skew(-10deg) rotate(1deg);-webkit-transform: skew(-10deg) rotate(1deg);-moz-transform:skew(-10deg) rotate(1deg);', $file_text );
81
+ $file_text = str_replace('/*MARGIN-LEFT*/', 'margin-left: 12px;', $file_text );
82
+ $file_text = str_replace('/*MARGIN-RIGHT*/', 'margin-right: 30px;', $file_text );
83
  break;
84
  case '3Dr': // 3D rotate
85
+ $file_text = str_replace('/*WRAP*/', '-webkit-transform:perspective(150px) scale3d(0.84,0.9,1) rotate3d(1,0,0,12deg);', $file_text );
86
+ $file_text = str_replace('/*SHADOW*/', 'box-shadow: 0 20px 16px rgba(0, 0, 0, 0.6) , 0px 32px 32px rgba(0, 0, 0, 0.2) inset;', $file_text );
87
  break;
88
  case 'ppc': // Paper Curling
89
+ $file_text = str_replace('/*WRAP*/', 'position: relative;', $file_text );
90
+ $file_text = str_replace('/*WRAP-AFTER*/', 'z-index: -1; content:""; height: 10px; width: 60%; position: absolute; right: 16px; bottom: 14px; left: auto; transform: skew(5deg) rotate(3deg); -webkit-transform: skew(5deg) rotate(3deg); -moz-transform: skew(5deg) rotate(3deg); box-shadow: 0 16px 16px rgba(0,0,0,1); -webkit-box-shadow: 0 16px 16px rgba(0,0,0,1); -moz-box-shadow: 0 16px 12px rgba(0,0,0,1);', $file_text );
91
+ $file_text = str_replace('/*SHADOW*/', 'box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.8);', $file_text );
92
+ $file_text = str_replace('/*OPTION*/', 'article { position: relative; z-index: 0; } article blockquote { position: relative; z-index: 0; }', $file_text );
93
  break;
94
  case 'tac': // Taping and curling
95
+ $file_text = str_replace('/*WRAP*/', 'position: relative;', $file_text );
96
+ $file_text = str_replace('/*WRAP-BEFORE*/', 'content: ""; display: block; position: absolute; left: -24px; top: 0px; width: 200px; height: 25px; z-index: 2; background-color: rgba(243,245,228,0.5); border: 2px solid rgba(255,255,255,0.5); -webkit-box-shadow: 1px 1px 4px rgba(200,200,180,0.8); -moz-box-shadow: 1px 1px 4px rgba(200,200,180,0.8); box-shadow: 1px 1px 4px rgba(200,200,180,0.8); -webkit-transform: rotate(-8deg); -moz-transform: rotate(-8deg); -o-transform: rotate(-8deg);', $file_text );
97
+ $file_text = str_replace('/*WRAP-AFTER*/', 'z-index: -1; content:""; height: 10px; width: 60%; position: absolute; right: 16px; bottom: 14px; left: auto; transform: skew(5deg) rotate(3deg); -webkit-transform: skew(5deg) rotate(3deg); -moz-transform: skew(5deg) rotate(3deg); box-shadow: 0 16px 16px rgba(0,0,0,1); -webkit-box-shadow: 0 16px 16px rgba(0,0,0,1); -moz-box-shadow: 0 16px 12px rgba(0,0,0,1);', $file_text );
98
+ $file_text = str_replace('/*MARGIN-LEFT*/', 'margin-left: 24px;', $file_text );
99
+ $file_text = str_replace('/*SHADOW*/', 'box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.8);', $file_text );
100
+ $file_text = str_replace('/*OPTION*/', 'article { position: relative; z-index: 0; } article blockquote { position: relative; z-index: 0; }', $file_text );
101
  break;
102
  case 'stR': // Stitch red
103
+ $file_text = str_replace('/*WRAP*/', 'position: relative;', $file_text );
104
+ $file_text = str_replace('/*WRAP-BEFORE*/', 'content: ""; display: block; position: absolute; left: -24px; top: 0px; width: 200px; height: 25px; z-index: 2; background-color: rgba(243,245,228,0.5); border: 2px solid rgba(255,255,255,0.5); -webkit-box-shadow: 1px 1px 4px rgba(200,200,180,0.8); -moz-box-shadow: 1px 1px 4px rgba(200,200,180,0.8); box-shadow: 1px 1px 4px rgba(200,200,180,0.8); -webkit-transform: rotate(-8deg); -moz-transform: rotate(-8deg); -o-transform: rotate(-8deg);', $file_text );
105
+ $file_text = str_replace('/*WRAP-AFTER*/', 'z-index: -1; content:""; height: 10px; width: 60%; position: absolute; right: 16px; bottom: 14px; left: auto; transform: skew(5deg) rotate(3deg); -webkit-transform: skew(5deg) rotate(3deg); -moz-transform: skew(5deg) rotate(3deg); box-shadow: 0 16px 16px rgba(0,0,0,1); -webkit-box-shadow: 0 16px 16px rgba(0,0,0,1); -moz-box-shadow: 0 16px 12px rgba(0,0,0,1);', $file_text );
106
+ $file_text = str_replace('/*MARGIN-LEFT*/', 'margin-left: 24px;', $file_text );
107
+ $file_text = str_replace('/*SHADOW*/', 'box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.8);', $file_text );
108
+ $file_text = str_replace('/*OPTION*/', 'article { position: relative; z-index: 0; } article blockquote { position: relative; z-index: 0; }', $file_text );
109
  break;
110
  case 'pin': // Pushpin
111
+ $file_text = str_replace('/*WRAP*/', 'position: relative;', $file_text );
112
+ $file_text = str_replace('/*WRAP-AFTER*/', 'content: ""; display: block; position: absolute; background-image: url("'.$this->plugin_dir_url.'img/pin.png"); background-repeat: no-repeat; background-position: center; left: 0px; top: -40px; width: 100%; height: 100px; z-index: 2;', $file_text );
113
  break;
114
  case 'inN': // Neutral
115
+ $file_text = str_replace('/*BORDER*/', 'border: 4px solid #59fbea;', $file_text );
116
+ $file_text = str_replace('/*COLOR-TITLE*/', 'color: #59fbea;', $file_text );
117
+ $file_text = str_replace('/*COLOR-URL*/', 'color: #59fbea;', $file_text );
118
+ $file_text = str_replace('/*COLOR-EXCERPT*/', 'color: #59fbea;', $file_text );
119
+ $file_text = str_replace('/*COLOR-INFO*/', 'color: #59fbea;', $file_text );
120
+ $file_text = str_replace('/*COLOR-PLUGIN*/', 'color: #59fbea;', $file_text );
121
+ $file_text = str_replace('/*EX-BGCOLOR*/', 'background-color: rgba( 35,100, 93,0.9);', $file_text );
122
+ $file_text = str_replace('/*IN-BGCOLOR*/', 'background-color: rgba( 8, 25, 23,0.9);', $file_text );
123
+ $file_text = str_replace('/*TH-BGCOLOR*/', 'background-color: rgba( 89,251,234,0.05);', $file_text );
124
  break;
125
  case 'inI': // Orange
126
+ $file_text = str_replace('/*BORDER*/', 'border: 4px solid #ebbc4a;', $file_text );
127
+ $file_text = str_replace('/*COLOR-TITLE*/', 'color: #ebbc4a;', $file_text );
128
+ $file_text = str_replace('/*COLOR-URL*/', 'color: #ebbc4a;', $file_text );
129
+ $file_text = str_replace('/*COLOR-EXCERPT*/', 'color: #ebbc4a;', $file_text );
130
+ $file_text = str_replace('/*COLOR-INFO*/', 'color: #ebbc4a;', $file_text );
131
+ $file_text = str_replace('/*COLOR-PLUGIN*/', 'color: #ebbc4a;', $file_text );
132
+ $file_text = str_replace('/*EX-BGCOLOR*/', 'background-color: rgba( 94, 75, 29,0.9);', $file_text );
133
+ $file_text = str_replace('/*IN-BGCOLOR*/', 'background-color: rgba( 23, 18, 7,0.9);', $file_text );
134
+ $file_text = str_replace('/*TH-BGCOLOR*/', 'background-color: rgba(235,188, 74,0.05);', $file_text );
135
  break;
136
  case 'inE': // Green
137
+ $file_text = str_replace('/*BORDER*/', 'border: 4px solid #28f428;', $file_text );
138
+ $file_text = str_replace('/*COLOR-TITLE*/', 'color: #28f428;', $file_text );
139
+ $file_text = str_replace('/*COLOR-URL*/', 'color: #28f428;', $file_text );
140
+ $file_text = str_replace('/*COLOR-EXCERPT*/', 'color: #28f428;', $file_text );
141
+ $file_text = str_replace('/*COLOR-INFO*/', 'color: #28f428;', $file_text );
142
+ $file_text = str_replace('/*COLOR-PLUGIN*/', 'color: #28f428;', $file_text );
143
+ $file_text = str_replace('/*EX-BGCOLOR*/', 'background-color: rgba( 16, 97, 16,0.9);', $file_text );
144
+ $file_text = str_replace('/*IN-BGCOLOR*/', 'background-color: rgba( 4, 24, 4,0.9);', $file_text );
145
+ $file_text = str_replace('/*TH-BGCOLOR*/', 'background-color: rgba( 40,244, 40,0.05);', $file_text );
146
  break;
147
  case 'inR': // Blue
148
+ $file_text = str_replace('/*BORDER*/', 'border: 4px solid #00c2ff;', $file_text );
149
+ $file_text = str_replace('/*COLOR-TITLE*/', 'color: #00c2ff;', $file_text );
150
+ $file_text = str_replace('/*COLOR-URL*/', 'color: #00c2ff;', $file_text );
151
+ $file_text = str_replace('/*COLOR-EXCERPT*/', 'color: #00c2ff;', $file_text );
152
+ $file_text = str_replace('/*COLOR-INFO*/', 'color: #00c2ff;', $file_text );
153
+ $file_text = str_replace('/*COLOR-PLUGIN*/', 'color: #00c2ff;', $file_text );
154
+ $file_text = str_replace('/*EX-BGCOLOR*/', 'background-color: rgba( 0, 77,102,0.9);', $file_text );
155
+ $file_text = str_replace('/*IN-BGCOLOR*/', 'background-color: rgba( 0, 19, 25,0.9);', $file_text );
156
+ $file_text = str_replace('/*TH-BGCOLOR*/', 'background-color: rgba( 0,194,255,0.05);', $file_text );
157
  break;
158
  case 'sBR': // Stitch blue&red
159
+ $file_text = str_replace('/*BORDER*/', 'border: 2px dashed rgba(255,255,255,0.5);', $file_text );
160
+ $file_text = str_replace('/*EX-BGCOLOR*/', 'background: #bcddff; box-shadow: 0 0 0 5px #aabbee, 3px 3px 6px 4px rgba(0,0,0,0.6); -moz-box-shadow: 0 0 0 5px #aabbee, 3px 3px 6px 4px rgba(0,0,0,0.6); -webkit-box-shadow: 0 0 0 5px #aabbee, 3px 3px 6px 4px rgba(0,0,0,0.6);', $file_text );
161
+ $file_text = str_replace('/*IN-BGCOLOR*/', 'background: #f8d0d0; box-shadow: 0 0 0 5px #e8a8a8, 3px 3px 6px 4px rgba(0,0,0,0.6); -moz-box-shadow: 0 0 0 5px #e8a8a8, 3px 3px 6px 4px rgba(0,0,0,0.6); -webkit-box-shadow: 0 0 0 5px #e8a8a8, 3px 3px 6px 4px rgba(0,0,0,0.6);', $file_text );
162
+ $file_text = str_replace('/*TH-BGCOLOR*/', 'background: #f29db0; box-shadow: 0 0 0 5px #de8899, 3px 3px 6px 4px rgba(0,0,0,0.6); -moz-box-shadow: 0 0 0 5px #de8899, 3px 3px 6px 4px rgba(0,0,0,0.6); -webkit-box-shadow: 0 0 0 5px #de8899, 3px 3px 6px 4px rgba(0,0,0,0.6);', $file_text );
163
  break;
164
  case 'sGY': // Stitch green&yellow
165
+ $file_text = str_replace('/*BORDER*/', 'border: 2px dashed rgba(255,255,255,0.5);', $file_text );
166
+ $file_text = str_replace('/*EX-BGCOLOR*/', 'background: #acefdd; box-shadow: 0 0 0 5px #8abecb, 3px 3px 6px 4px rgba(0,0,0,0.6); -moz-box-shadow: 0 0 0 5px #8abecb, 3px 3px 6px 4px rgba(0,0,0,0.6); -webkit-box-shadow: 0 0 0 5px #8abecb, 3px 3px 6px 4px rgba(0,0,0,0.6);', $file_text );
167
+ $file_text = str_replace('/*IN-BGCOLOR*/', 'background: #ffde51; box-shadow: 0 0 0 5px #fbca4d, 3px 3px 6px 4px rgba(0,0,0,0.6); -moz-box-shadow: 0 0 0 5px #fbca4d, 3px 3px 6px 4px rgba(0,0,0,0.6); -webkit-box-shadow: 0 0 0 5px #fbca4d, 3px 3px 6px 4px rgba(0,0,0,0.6);', $file_text );
168
+ $file_text = str_replace('/*TH-BGCOLOR*/', 'background: #f0e0b0; box-shadow: 0 0 0 5px #decca0, 3px 3px 6px 4px rgba(0,0,0,0.6); -moz-box-shadow: 0 0 0 5px #decca0, 3px 3px 6px 4px rgba(0,0,0,0.6); -webkit-box-shadow: 0 0 0 5px #decca0, 3px 3px 6px 4px rgba(0,0,0,0.6);', $file_text );
169
  break;
170
  }
171
 
172
  // 文字色
173
+ $file_text = str_replace('/*COLOR-TITLE*/', 'color: '.$this->options['color-title'].';', $file_text );
174
+ $file_text = str_replace('/*COLOR-URL*/', 'color: '.$this->options['color-url'].';', $file_text );
175
+ $file_text = str_replace('/*COLOR-EXCERPT*/', 'color: '.$this->options['color-excerpt'].';', $file_text );
176
+ $file_text = str_replace('/*COLOR-INFO*/', 'color: '.$this->options['color-info'].';', $file_text );
177
+ $file_text = str_replace('/*COLOR-PLUGIN*/', 'color: '.$this->options['color-plugin'].';', $file_text );
178
 
179
  // 文字の大きさ
180
+ $file_text = str_replace('/*SIZE-TITLE*/', 'font-size: '.$this->options['size-title'].';', $file_text );
181
+ $file_text = str_replace('/*SIZE-URL*/', 'font-size: '.$this->options['size-url'].';', $file_text );
182
+ $file_text = str_replace('/*SIZE-EXCERPT*/', 'font-size: '.$this->options['size-excerpt'].';', $file_text );
183
+ $file_text = str_replace('/*SIZE-INFO*/', 'font-size: '.$this->options['size-info'].';', $file_text );
184
+ $file_text = str_replace('/*SIZE-PLUGIN*/', 'font-size: '.$this->options['size-plugin'].';', $file_text );
185
 
186
  // 行の高さ
187
+ $file_text = str_replace('/*HEIGHT-TITLE*/', 'line-height: '.$this->options['height-title'].';', $file_text );
188
+ $file_text = str_replace('/*HEIGHT-URL*/', 'line-height: '.$this->options['height-url'].';', $file_text );
189
+ $file_text = str_replace('/*HEIGHT-EXCERPT*/', 'line-height: '.$this->options['height-excerpt'].';', $file_text );
190
+ $file_text = str_replace('/*HEIGHT-INFO*/', 'line-height: '.$this->options['height-info'].';', $file_text );
191
+ $file_text = str_replace('/*HEIGHT-PLUGIN*/', 'line-height: '.$this->options['height-plugin'].';', $file_text );
192
 
193
  // 文字の縁取り
194
  //
195
  if (isset($this->options['outline-title']) && $this->options['outline-title'] == '1') {
196
+ $file_text = str_replace('/*OUTCOLOR-TITLE*/', 'text-shadow: 0 -1px '.$this->options['outline-color-title'].', 1px -1px '.$this->options['outline-color-title'].', 1px 0 '.$this->options['outline-color-title'].', 1px 1px '.$this->options['outline-color-title'].', 0 1px '.$this->options['outline-color-title'].', -1px 1px '.$this->options['outline-color-title'].', -1px 0 '.$this->options['outline-color-title'].', -1px -1px '.$this->options['outline-color-title'].';', $file_text );
197
  }
198
  if (isset($this->options['outline-url']) && $this->options['outline-url'] == '1') {
199
+ $file_text = str_replace('/*OUTCOLOR-URL*/', 'text-shadow: 0 -1px '.$this->options['outline-color-url'].', 1px -1px '.$this->options['outline-color-url'].', 1px 0 '.$this->options['outline-color-url'].', 1px 1px '.$this->options['outline-color-url'].', 0 1px '.$this->options['outline-color-url'].', -1px 1px '.$this->options['outline-color-url'].', -1px 0 '.$this->options['outline-color-url'].', -1px -1px '.$this->options['outline-color-url'].';', $file_text );
200
  }
201
  if (isset($this->options['outline-excerpt']) && $this->options['outline-excerpt'] == '1') {
202
+ $file_text = str_replace('/*OUTCOLOR-EXCERPT*/','text-shadow: 0 -1px '.$this->options['outline-color-excerpt'].', 1px -1px '.$this->options['outline-color-excerpt'].', 1px 0 '.$this->options['outline-color-excerpt'].', 1px 1px '.$this->options['outline-color-excerpt'].', 0 1px '.$this->options['outline-color-excerpt'].', -1px 1px '.$this->options['outline-color-excerpt'].', -1px 0 '.$this->options['outline-color-excerpt'].', -1px -1px '.$this->options['outline-color-excerpt'].';', $file_text );
203
  }
204
  if (isset($this->options['outline-info']) && $this->options['outline-info'] == '1') {
205
+ $file_text = str_replace('/*OUTCOLOR-INFO*/', 'text-shadow: 0 -1px '.$this->options['outline-color-info'].', 1px -1px '.$this->options['outline-color-info'].', 1px 0 '.$this->options['outline-color-info'].', 1px 1px '.$this->options['outline-color-info'].', 0 1px '.$this->options['outline-color-info'].', -1px 1px '.$this->options['outline-color-info'].', -1px 0 '.$this->options['outline-color-info'].', -1px -1px '.$this->options['outline-color-info'].';', $file_text );
206
  }
207
  if (isset($this->options['outline-plugin']) && $this->options['outline-plugin'] == '1') {
208
+ $file_text = str_replace('/*OUTCOLOR-PLUGIN*/', 'text-shadow: 0 -1px '.$this->options['outline-color-plugin'].', 1px -1px '.$this->options['outline-color-plugin'].', 1px 0 '.$this->options['outline-color-plugin'].', 1px 1px '.$this->options['outline-color-plugin'].', 0 1px '.$this->options['outline-color-plugin'].', -1px 1px '.$this->options['outline-color-plugin'].', -1px 0 '.$this->options['outline-color-plugin'].', -1px -1px '.$this->options['outline-color-plugin'].';', $file_text );
209
  }
210
 
211
  // カードの周りへの余白
212
  if ($this->options['margin-top']) {
213
+ $file_text = str_replace('/*MARGIN-TOP*/', 'margin-top: '.$this->options['margin-top'].';', $file_text );
214
  }
215
  if ($this->options['margin-right']) {
216
+ $file_text = str_replace('/*MARGIN-RIGHT*/', 'margin-right: '.$this->options['margin-right'].';', $file_text );
217
  }
218
  if ($this->options['margin-bottom']) {
219
+ $file_text = str_replace('/*MARGIN-BOTTOM*/', 'margin-bottom: '.$this->options['margin-bottom'].';', $file_text );
220
  }
221
  if ($this->options['margin-left']) {
222
+ $file_text = str_replace('/*MARGIN-LEFT*/', 'margin-left: '.$this->options['margin-left'].';', $file_text );
223
  }
224
 
225
  // カードの余白等調整
226
+ $file_text = str_replace('/*PADDING*/', 'padding: 0;', $file_text );
227
 
228
  // カード内側の余白
229
  if ($this->options['card-top']) {
230
+ $file_text = str_replace('/*CARD-TOP*/', 'margin-top: '.$this->options['card-top'].';', $file_text );
231
  } else {
232
+ $file_text = str_replace('/*CARD-TOP*/', 'margin-top: 7px;', $file_text );
233
  }
234
  if ($this->options['card-right']) {
235
+ $file_text = str_replace('/*CARD-RIGHT*/', 'margin-right: '.$this->options['card-right'].';', $file_text );
236
  } else {
237
+ $file_text = str_replace('/*CARD-RIGHT*/', 'margin-right: 7px;', $file_text );
238
  }
239
  if ($this->options['card-bottom']) {
240
+ $file_text = str_replace('/*CARD-BOTTOM*/', 'margin-bottom: '.$this->options['card-bottom'].';', $file_text );
241
  } else {
242
+ $file_text = str_replace('/*CARD-BOTTOM*/', 'margin-bottom: 7px;', $file_text );
243
  }
244
  if ($this->options['card-left']) {
245
+ $file_text = str_replace('/*CARD-LEFT*/', 'margin-left: '.$this->options['card-left'].';', $file_text );
246
  } else {
247
+ $file_text = str_replace('/*CARD-LEFT*/', 'margin-left: 7px;', $file_text );
248
  }
249
 
250
  // img のスタイルを強制リセット
251
  if (isset($this->options['style-reset-img'])) {
252
+ $file_text = str_replace('/*RESET-IMG*/', 'margin: 0 !important; padding: 0; border: none;', $file_text );
253
+ $file_text = str_replace('/*STATIC*/', 'position: static !important;', $file_text );
254
+ $file_text = str_replace('/*IMPORTANT*/', '!important', $file_text );
255
  } else {
256
+ $file_text = str_replace('/*IMPORTANT*/', '', $file_text );
257
  }
258
 
259
  // 外部リンク背景
260
  if ($this->options['ex-bgcolor']) {
261
+ $file_text = str_replace('/*EX-BGCOLOR*/', 'background-color: '.$this->options['ex-bgcolor'].';', $file_text );
262
  }
263
  if ($this->options['ex-image']) {
264
  if (preg_match('/https?(:\/\/[-_.!~*\'()a-zA-Z0-9;\/?:\@&=+\$,%#]+)$/', $this->options['ex-image'])) {
265
+ $file_text = str_replace('/*EX-IMAGE*/', 'background-image: url("'.$this->options['ex-image'].'");', $file_text );
266
  } else {
267
+ $file_text = str_replace('/*EX-IMAGE*/', 'background-image: '.$this->options['ex-image'].';', $file_text );
268
  }
269
  }
270
 
271
  // 内部リンク背景
272
  if ($this->options['in-bgcolor']) {
273
+ $file_text = str_replace('/*IN-BGCOLOR*/', 'background-color: '.$this->options['in-bgcolor'].';', $file_text );
274
  }
275
  if ($this->options['in-image']) {
276
  if (preg_match('/https?(:\/\/[-_.!~*\'()a-zA-Z0-9;\/?:\@&=+\$,%#]+)$/', $this->options['in-image'])) {
277
+ $file_text = str_replace('/*IN-IMAGE*/', 'background-image: url("'.$this->options['in-image'].'");', $file_text );
278
  } else {
279
+ $file_text = str_replace('/*IN-IMAGE*/', 'background-image: '.$this->options['in-image'].';', $file_text );
280
  }
281
  }
282
 
283
  // 同ページリンク背景色
284
  if ($this->options['th-bgcolor']) {
285
+ $file_text = str_replace('/*TH-BGCOLOR*/', 'background-color: '.$this->options['th-bgcolor'].';', $file_text );
286
  }
287
  if ($this->options['th-image']) {
288
  if (preg_match('/https?(:\/\/[-_.!~*\'()a-zA-Z0-9;\/?:\@&=+\$,%#]+)$/', $this->options['th-image'])) {
289
+ $file_text = str_replace('/*TH-IMAGE*/', 'background-image: url("'.$this->options['th-image'].'");', $file_text );
290
  } else {
291
+ $file_text = str_replace('/*TH-IMAGE*/', 'background-image: '.$this->options['th-image'].';', $file_text );
292
  }
293
  }
294
 
295
  // センタリング指定あり
296
  if (isset($this->options['centering']) && $this->options['centering'] == '1') {
297
+ $file_text = str_replace('/*LINKCARD-WRAP-MARGIN*/', 'margin: 0 auto;', $file_text );
298
+ $file_text = str_replace('/*HATENA-WRAP-MARGIN*/', 'margin: 0 auto;', $file_text );
299
  } else {
300
+ $file_text = str_replace('/*LINKCARD-WRAP-MARGIN*/', 'margin: 0;', $file_text );
301
+ $file_text = str_replace('/*HATENA-WRAP-MARGIN*/', 'margin: 0;', $file_text );
302
  }
303
 
304
  // 角まる指定あり
305
  if (isset($this->options['radius']) && $this->options['radius'] == '1') {
306
+ $file_text = str_replace('/*RADIUS*/', 'border-radius: 8px; -webkit-border-radius: 8px; -moz-border-radius: 8px;', $file_text );
307
+ $file_text = str_replace('/*THUMBNAIL-RADIUS*/', 'border-radius: 6px; -webkit-border-radius: 6px; -moz-border-radius: 6px;', $file_text );
308
  }
309
 
310
  // 影あり
311
  if (isset($this->options['shadow']) && $this->options['shadow'] == '1') {
312
  if (isset($this->options['shadow-inset']) && $this->options['shadow-inset'] == '1') {
313
+ $file_text = str_replace('/*SHADOW*/', 'box-shadow: 8px 8px 8px rgba(0, 0, 0, 0.5) , 0 0 16px rgba(0, 0, 0, 0.3) inset;', $file_text );
314
  } else {
315
+ $file_text = str_replace('/*SHADOW*/', 'box-shadow: 8px 8px 8px rgba(0, 0, 0, 0.5);', $file_text );
316
  }
317
  } else {
318
  if (isset($this->options['shadow-inset']) && $this->options['shadow-inset'] == '1') {
319
+ $file_text = str_replace('/*SHADOW*/', 'box-shadow: 0 0 16px rgba(0, 0, 0, 0.5) inset;', $file_text );
320
  }
321
  }
322
 
327
  $content_height = preg_replace('/[^0-9]/', '', isset($this->options['content-height'] ) ? $this->options['content-height'] : $this->defaults['content-height'] ) - 0;
328
  switch ($this->options['thumbnail-position']) {
329
  case '1':
330
+ $file_text = str_replace('/*THUMBNAIL_POSITION*/', 'float: right;', $file_text );
331
+ $file_text = str_replace('/*THUMBNAIL-WIDTH*/', 'max-width: '.$thumbnail_width .'px;', $file_text );
332
+ $file_text = str_replace('/*THUMBNAIL-HEIGHT*/', 'max-height: '.$thumbnail_height.'px;', $file_text );
333
+ $file_text = str_replace('/*THUMBNAIL-IMG-WIDTH*/', 'width: '.$thumbnail_width .'px;', $file_text );
334
+ $file_text = str_replace('/*THUMBNAIL-IMG-HEIGHT*/','max-height: '.$thumbnail_height.'px;', $file_text );
335
  break;
336
  case '2':
337
+ $file_text = str_replace('/*THUMBNAIL_POSITION*/', 'float: left;', $file_text );
338
+ $file_text = str_replace('/*THUMBNAIL-WIDTH*/', 'max-width: '.$thumbnail_width .'px;', $file_text );
339
+ $file_text = str_replace('/*THUMBNAIL-HEIGHT*/', 'max-height: '.$thumbnail_height.'px;', $file_text );
340
+ $file_text = str_replace('/*THUMBNAIL-IMG-WIDTH*/', 'width: '.$thumbnail_width .'px;', $file_text );
341
+ $file_text = str_replace('/*THUMBNAIL-IMG-HEIGHT*/','max-height: '.$thumbnail_height.'px;', $file_text );
342
  break;
343
  case '3':
344
+ $file_text = str_replace('/*THUMBNAIL_POSITION*/', 'display: block;', $file_text );
345
+ $file_text = str_replace('/*THUMBNAIL-HEIGHT*/', 'height: '.$thumbnail_height.'px; overflow: hidden;', $file_text );
346
+ $file_text = str_replace('/*THUMBNAIL-IMG-WIDTH*/', 'width: '.$content_width .'px;', $file_text );
347
  break;
348
  }
349
 
350
  // サムネイル影あり
351
  if (isset($this->options['thumbnail-shadow']) && $this->options['thumbnail-shadow'] == '1') {
352
+ $file_text = str_replace('/*THUMBNAIL-SHADOW*/', 'box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);', $file_text );
353
  }
354
 
355
  // サムネイルのリサイズ
357
  $file_text = str_replace('/*RESIZE*/',
358
  '@media screen and (max-width: 600px) {'.PHP_EOL.'.lkc-title {'.PHP_EOL.'font-size: 90%;'.PHP_EOL.'line-height: 90%;'.PHP_EOL.'}'.PHP_EOL.'.lkc-excerpt {'.PHP_EOL.'font-size: 80%;'.PHP_EOL.'}'.PHP_EOL.'.lkc-thumbnail {'.PHP_EOL.'max-width: 70px;'.PHP_EOL.'max-height: 70px;'.PHP_EOL.'}'.PHP_EOL.'.lkc-thumbnail-img {'.PHP_EOL.'max-width: 70px;'.PHP_EOL.'max-height: 70px;'.PHP_EOL.'}'.PHP_EOL.'}'.PHP_EOL.
359
  '@media screen and (max-width: 480px) {'.PHP_EOL.'.lkc-title {'.PHP_EOL.'font-size: 80%;'.PHP_EOL.'line-height: 80%;'.PHP_EOL.'}'.PHP_EOL.'.lkc-excerpt {'.PHP_EOL.'font-size: 65%;'.PHP_EOL.'}'.PHP_EOL.'.lkc-thumbnail {'.PHP_EOL.'max-width: 60px;'.PHP_EOL.'max-height: 60px;'.PHP_EOL.'}'.PHP_EOL.'.lkc-thumbnail-img {'.PHP_EOL.'max-width: 60px;'.PHP_EOL.'max-height: 60px;'.PHP_EOL.'}'.PHP_EOL.'}'.PHP_EOL.
360
+ '@media screen and (max-width: 320px) {'.PHP_EOL.'.lkc-title {'.PHP_EOL.'font-size: 70%;'.PHP_EOL.'line-height: 70%;'.PHP_EOL.'}'.PHP_EOL.'.lkc-excerpt {'.PHP_EOL.'font-size: 50%;'.PHP_EOL.'}'.PHP_EOL.'.lkc-thumbnail {'.PHP_EOL.'max-width: 50px;'.PHP_EOL.'max-height: 50px;'.PHP_EOL.'}'.PHP_EOL.'.lkc-thumbnail-img {'.PHP_EOL.'max-width: 50px;'.PHP_EOL.'max-height: 50px;'.PHP_EOL.'}'.PHP_EOL.'}', $file_text );
361
  }
362
 
363
  // 横幅
364
+ if ($this->options['width']) {
365
+ $file_text = str_replace('/*WIDTH*/', 'max-width: '.$this->options['width'].';', $file_text );
366
  } else {
367
+ $file_text = str_replace('/*WIDTH*/', 'max-width: 100%;', $file_text );
368
  }
369
 
370
  // 記事情報の高さ
371
+ if ($this->options['content-height']) {
372
+ $file_text = str_replace('/*CONTENT-HEIGHT*/', 'height: '.$this->options['content-height'].';', $file_text );
 
 
373
  }
374
 
375
  // リンク先のURLを表示する
376
  if (isset($this->options['display-url']) && $this->options['display-url'] == '1') {
377
+ $file_text = str_replace('/*DISPLAY-URL*/', 'display: block;', $file_text );
378
  } else {
379
+ $file_text = str_replace('/*DISPLAY-URL*/', 'display: none;', $file_text );
380
  }
381
 
382
  // 枠線の太さ
383
  switch (isset($this->options['border']) ? $this->options['border'] : '') {
384
  case '1gr':
385
+ $file_text = str_replace('/*BORDER*/', 'border: 1px solid #ddd;', $file_text );
386
  break;
387
  case '2gr':
388
+ $file_text = str_replace('/*BORDER*/', 'border: 2px solid #ddd;', $file_text );
389
  break;
390
  case '4gr':
391
+ $file_text = str_replace('/*BORDER*/', 'border: 4px solid #ddd;', $file_text );
392
  break;
393
  case '1bk':
394
+ $file_text = str_replace('/*BORDER*/', 'border: 1px solid #444;', $file_text );
395
  break;
396
  case '2bk':
397
+ $file_text = str_replace('/*BORDER*/', 'border: 2px solid #444;', $file_text );
398
  break;
399
  case '4bk':
400
+ $file_text = str_replace('/*BORDER*/', 'border: 4px solid #444;', $file_text );
401
  break;
402
  case '8bk':
403
+ $file_text = str_replace('/*BORDER*/', 'border: 8px solid #444;', $file_text );
404
  break;
405
  case 'blu':
406
+ $file_text = str_replace('/*BORDER*/', 'border: 4px solid #1e90ff;', $file_text );
407
  break;
408
  case 'gre':
409
+ $file_text = str_replace('/*BORDER*/', 'border: 4px solid #66cdaa;', $file_text );
410
  break;
411
  case 'red':
412
+ $file_text = str_replace('/*BORDER*/', 'border: 4px solid #ff69b4;', $file_text );
413
  break;
414
  case 'wht': // Wheat
415
+ $file_text = str_replace('/*BORDER*/', 'border: 4px solid #f5deb3;', $file_text );
416
  break;
417
  case 'dbl':
418
+ $file_text = str_replace('/*BORDER*/', 'border: 4px double #444;', $file_text );
419
  break;
420
  case 'dot':
421
+ $file_text = str_replace('/*BORDER*/', 'border: 1px dotted #444;', $file_text );
422
  break;
423
  default:
424
  break;
428
  $border = (preg_replace('/[^0-9]/', '', $this->options['border-width']) - 0).'px ';
429
  $border .= (isset($this->options['border-style']) ? $this->options['border-style'] : $this->defaults['border-style']).' ';
430
  $border .= (isset($this->options['border-color']) ? $this->options['border-color'] : $this->defaults['border-color']).';';
431
+ $file_text = str_replace('/*BORDER*/', 'border: '.$border, $file_text );
432
 
433
  // 抜粋文の部分を凹ませる
434
  if (isset($this->options['content-inset']) && $this->options['content-inset'] == '1') {
435
+ $file_text = str_replace('/*CONTENT-PADDING*/', 'padding: 6px;', $file_text );
436
+ $file_text = str_replace('/*CONTENT-INSET*/', 'box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.5) inset;', $file_text );
437
+ $file_text = str_replace('/*CONTENT-BGCOLOR*/', 'background-color: rgba(255, 255, 255, 0.8 );', $file_text );
438
  }
439
 
440
  // サイト情報の区切り線
441
  if (isset($this->options['separator']) && $this->options['separator'] == '1') {
442
  switch ($this->options['info-position']) {
443
  case '1':
444
+ $file_text = str_replace('/*SEPARATOR*/', 'border-top: 1px solid '.$this->options['color-info'].';', $file_text );
445
+ break;
446
  case '2':
447
+ $file_text = str_replace('/*SEPARATOR*/', 'border-bottom: 1px solid '.$this->options['color-info'].';', $file_text );
448
+ break;
449
  }
450
  }
451
 
452
+ // 続きを読むボタン
453
+ switch ($this->options['flg-more']) {
454
+ case '1':
455
+ $file_text = str_replace('/*MORE-TEXT*/', 'font-size: 10px; padding: 4px; margin: 4px 0;', $file_text );
456
+ break;
457
+ case '2':
458
+ $file_text = str_replace('/*MORE-TEXT*/', 'color: #0; font-size: 10px; border: 1px solid #888; text-align: center; padding: 4px; margin: 4px 0;', $file_text );
459
+ break;
460
+ }
461
+
462
+ // 追加CSS
463
+ if (isset($this->options['css-add'])) {
464
+ $file_text = str_replace('/*SPECIAL*/', $this->options['css-add'], $file_text );
465
+ } else {
466
+ $file_text = str_replace('/*SPECIAL*/', '', $file_text );
467
+ }
468
+
469
  // ぽぽづれ。へのリンクを表示する
470
  if (isset($this->options['plugin-link']) && $this->options['plugin-link'] == '1') {
471
+ $file_text = str_replace('/*CREDIT*/', 'display: block;', $file_text );
472
  } else {
473
+ $file_text = str_replace('/*CREDIT*/', 'display: none;', $file_text );
474
  }
475
 
476
+ $result = file_put_contents($css_path, $file_text);
477
  global $pagenow;
478
  if (isset($pagenow) && $pagenow == 'options-general.php') {
479
  if ($result == true) {
link.png DELETED
Binary file
pin.png DELETED
Binary file
pz-linkcard.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Pz-LinkCard
4
  Plugin URI: http://poporon.poponet.jp/pz-linkcard
5
  Description: リンクをカード形式で表示します。
6
- Version: 2.0.7.2
7
  Author: poporon
8
  Author URI: http://poporon.poponet.jp
9
  License: GPLv2 or later
@@ -17,6 +17,8 @@ class Pz_LinkCard {
17
 
18
  public $charset;
19
 
 
 
20
  public $now; // 現在日時(ローカル時間)
21
  public $now_mysql; // 現在日時(SQL形式)
22
 
@@ -29,136 +31,145 @@ class Pz_LinkCard {
29
 
30
  public $options;
31
  protected $defaults = array(
32
- 'code1' => 'blogcard',
33
- 'code2' => null,
34
- 'code3' => null,
35
- 'code4' => null,
36
- 'auto-atag' => null,
37
- 'auto-url' => null,
38
- 'trail-slash' => '1',
39
- 'border-width' => '1px',
40
- 'border-style' => 'solid',
41
- 'border-color' => '#888888',
42
- 'width' => '500px',
43
- 'content-height' => '108px',
44
- 'margin-top' => '4px',
45
- 'margin-right' => '16px',
46
- 'margin-bottom' => '16px',
47
- 'margin-left' => '4px',
48
- 'card-top' => null,
49
- 'card-right' => null,
50
- 'card-bottom' => null,
51
- 'card-left' => null,
52
- 'centering' => null,
53
- 'radius' => '1',
54
- 'shadow' => '1',
55
- 'shadow-inset' => null,
56
- 'special-format' => null,
57
- 'use-inline' => null,
58
- 'use-sitename' => '1',
59
- 'use-hatena' => null,
60
- 'display-url' => '1',
61
- 'display-excerpt' => '1',
62
- 'trim-title' => 80,
63
- 'trim-count' => 250,
64
- 'trim-sitename' => 45,
65
- 'info-position' => '1',
66
- 'separator' => null,
67
- 'size-title' => '16px',
68
- 'size-url' => '10px',
69
- 'size-excerpt' => '11px',
70
- 'size-info' => '12px',
71
- 'size-plugin' => '10px',
72
- 'height-title' => '24px',
73
- 'height-url' => '10px',
74
- 'height-excerpt' => '17px',
75
- 'height-info' => '12px',
76
- 'height-plugin' => '10px',
77
- 'color-title' => '#111111',
78
- 'color-url' => '#4466ff',
79
- 'color-excerpt' => '#333333',
80
- 'color-info' => '#222222',
81
- 'color-plugin' => '#888888',
82
- 'outline-color-title' => '#ffffff',
83
- 'outline-color-url' => '#ffffff',
84
- 'outline-color-excerpt' => '#ffffff',
85
- 'outline-color-info' => '#ffffff',
86
- 'outline-color-plugin' => '#ffffff',
87
- 'ex-bgcolor' => '#ffffff',
88
- 'in-bgcolor' => '#f8f8f8',
89
- 'th-bgcolor' => '#eeeeee',
90
- 'in-get' => null,
91
- 'ex-image' => '',
92
- 'in-image' => '',
93
- 'th-image' => '',
94
- 'ex-info' => null,
95
- 'in-info' => null,
96
- 'th-info' => null,
97
- 'in-target' => null,
98
- 'ex-target' => '2',
99
- 'ex-thumbnail' => '3',
100
- 'in-thumbnail' => '1',
101
- 'ex-favicon' => '3',
102
- 'in-favicon' => '3',
103
- 'favicon-api' => 'https://www.google.com/s2/favicons?domain=%DOMAIN%',
104
- 'thumbnail-api' => 'https://s.wordpress.com/mshots/v1/%URL%?w=100',
105
- 'thumbnail-position'=> '2',
106
- 'thumbnail-width' => '100px',
107
- 'thumbnail-height' => '108px',
108
- 'thumbnail-shadow' => '1',
109
- 'thumbnail-resize' => '1',
110
- 'cache-time' => 31536000,
111
- 'user-agent' => '',
112
- 'flg-referer' => '1',
113
- 'flg-agent' => '1',
114
- 'flg-redir' => '1',
115
- 'flg-alive' => '1',
116
- 'flg-ssl' => '1',
117
- 'flg-amp' => '1',
118
- 'flg-idn' => '1',
119
- 'flg-unlink' => '1',
120
- 'flg-get-pid' => null,
121
- 'flg-subdir' => '1',
122
- 'flg-invalid' => null,
123
- 'style-reset-img' => '1',
124
- 'style' => null,
125
- 'css-file' => null,
126
- 'css-path' => null,
127
- 'css-url' => null,
128
- 'class-pc' => null,
129
- 'class-mobile' => null,
130
- 'sns-position' => '2',
131
- 'sns-tw' => '1',
132
- 'sns-fb' => '1',
133
- 'sns-hb' => '1',
134
- 'link-all' => '1',
135
- 'blockquote' => null,
136
- 'nofollow' => null,
137
- 'presence' => null,
138
- 'thumbnail-dir' => null,
139
- 'thumbnail-url' => null,
140
- 'invalid-url' => null,
141
- 'invalid-time' => null,
142
- 'plugin-link' => null,
143
- 'plugin-name' => 'Pz-LinkCard',
144
- 'plugin-version' => '2.0.7.1',
145
- 'plugin-url' => 'http://poporon.poponet.jp/pz-linkcard',
146
- 'pz-hbc-options' => null,
147
- 'debug-time' => null
 
 
 
 
 
 
 
148
  );
149
 
150
  public function __construct() {
151
- $this->slug = basename(dirname(__FILE__));
152
- $this->text_domain = $this->slug;
 
 
153
 
154
- $this->charset = get_bloginfo('charset');
155
 
156
- $this->now = current_time('timestamp', false);
157
- $this->now_mysql = current_time('mysql');
158
 
159
- $this->plugin_basename = plugin_basename(__FILE__);
160
- $this->plugin_dir_path = plugin_dir_path(__FILE__);
161
- $this->plugin_dir_url = plugin_dir_url (__FILE__);
162
 
163
  $this->options = get_option('Pz_LinkCard_options', $this->defaults );
164
  foreach ($this->defaults as $key => $value) {
@@ -496,25 +507,31 @@ class Pz_LinkCard {
496
  // ラッピング
497
  switch ($link_type) {
498
  case '1':
499
- $wrap_op = '<div class="lkc-this-wrap">';
500
- $wrap_cl = '</div>';
501
- $info = isset($this->options['th-info']) ? $this->options['th-info'] : '' ;
502
- $sw_thumbnail = isset($this->options['in-thumbnail']) ? $this->options['in-thumbnail'] : '0' ;
503
- $sw_favicon = isset($this->options['in-favicon']) ? $this->options['in-favicon'] : '0' ;
 
 
504
  break;
505
  case '2':
506
- $wrap_op = '<div class="lkc-internal-wrap">';
507
- $wrap_cl = '</div>';
508
- $info = isset($this->options['in-info']) ? $this->options['in-info'] : '' ;
509
- $sw_thumbnail = isset($this->options['in-thumbnail']) ? $this->options['in-thumbnail'] : '0' ;
510
- $sw_favicon = isset($this->options['in-favicon']) ? $this->options['in-favicon'] : '0' ;
 
 
511
  break;
512
  default:
513
- $wrap_op = '<div class="lkc-external-wrap">';
514
- $wrap_cl = '</div>';
515
- $info = isset($this->options['ex-info']) ? $this->options['ex-info'] : '' ;
516
- $sw_thumbnail = isset($this->options['ex-thumbnail']) ? $this->options['ex-thumbnail'] : '0' ;
517
- $sw_favicon = isset($this->options['ex-favicon']) ? $this->options['ex-favicon'] : '0' ;
 
 
518
  break;
519
  }
520
 
@@ -724,11 +741,18 @@ class Pz_LinkCard {
724
  }
725
  }
726
 
 
 
 
 
 
 
 
727
  // 記事内容
728
- $content = '<div class="lkc-content">'.$a_op.$thumbnail.'<span class="lkc-title">'.$title.'</span>'.$a_cl.$sns_title.'<div class="lkc-url"><cite>'.$st_op.$a_op.$url.$st_cl.$a_cl.'</cite></div><div class="lkc-excerpt">'.$excerpt.'</div></div>';
729
 
730
- // Google AMPに暫定対応
731
- if ( (isset($this->options['flg-amp']) ? true : false) && (preg_match('/\/amp\/?$/i', $_SERVER["REQUEST_URI"]) || preg_match('/\?amp=1$/i', $_SERVER["REQUEST_URI"]) || (function_exists('is_amp_endpoint') && is_amp_endpoint()) ) ) {
732
  // 簡易タグ作成
733
  $tag = '<table border="1" cellspacing="0" cellpadding="4"><tbody></tr><tr><td>'.$excerpt.'<br>'.$a_op_all.$a_op.$title.$a_cl.$a_cl_all.' - '.$site_name.'</td></tr></tbody></table>';
734
  } else {
@@ -1448,44 +1472,44 @@ class Pz_LinkCard {
1448
  return $tags;
1449
  }
1450
 
1451
- // サムネイル画像取得
1452
  public function pz_GetThumbnail($url) {
1453
  if (!isset($url) || $url == '' || $url == 'https://s0.wp.com/i/blank.jpg') {
1454
  return null;
1455
  }
1456
 
1457
- $file_dir = $this->options['thumbnail-dir'];
1458
  if (!is_dir($file_dir)) {
1459
  return null;
1460
  }
1461
 
1462
- $file_name = bin2hex(hash('sha256', esc_url( $url ), true));
1463
- $file_path = $file_dir.$file_name;
1464
- $file_url = $this->options['thumbnail-url'].$file_name;
1465
 
1466
- if (file_exists($file_path )) {
1467
  return $file_url;
1468
  }
1469
 
1470
- list($width, $height) = @getimagesize($url);
1471
- if (!isset($width) || !isset($height) || $width < 8 || $height < 8) {
1472
  return null;
1473
  }
1474
- $image = imagecreatefromstring( file_get_contents($url) );
1475
-
1476
- $new_width = 100;
1477
- $new_height = 100;
1478
- if ($width <> $height) {
1479
- if ($width > $height) {
1480
- $new_height = $height * ( $new_width / $width );
1481
- } else {
1482
- $new_width = $width * ( $new_height / $height );
1483
  }
1484
  }
1485
- $image_p = imagecreatetruecolor($new_width, $new_height);
1486
- imagecopyresampled($image_p, $image, 0, 0, 0, 0, $new_width, $new_height, $width, $height);
1487
- imagejpeg($image_p, $file_path);
1488
- return $file_url;
1489
  }
1490
 
1491
  // 管理画面時のスタイルシート、スクリプト設定
@@ -1498,8 +1522,10 @@ class Pz_LinkCard {
1498
 
1499
  // 管理画面時のスタイルシート、スクリプト設定
1500
  public function add_qtag() {
1501
- if (wp_script_is('quicktags') ) {
1502
- echo '<script>QTags.addButton(\'pz-lkc\',\''.__('Linkcard', $this->text_domain ).'\',\'['.$this->options['code1'].' url="\',\'"]\',\'\',\''.__('Make Linkcard', $this->text_domain ).'\');</script>';
 
 
1503
  }
1504
  }
1505
 
@@ -1512,7 +1538,9 @@ class Pz_LinkCard {
1512
 
1513
  // 管理画面時のスタイルシート、スクリプト設定
1514
  public function add_mce_button($buttons) {
1515
- $buttons[] = 'pz_linkcard';
 
 
1516
  return $buttons;
1517
  }
1518
  public function add_mce_plugin($plugins) {
@@ -1522,6 +1550,8 @@ class Pz_LinkCard {
1522
 
1523
  // 通常時のスタイルシート
1524
  public function enqueue($hook) {
 
 
1525
  if (!isset($this->options['style'])) {
1526
  wp_enqueue_style ('pz-linkcard', $this->options['css-url']);
1527
  } else {
3
  Plugin Name: Pz-LinkCard
4
  Plugin URI: http://poporon.poponet.jp/pz-linkcard
5
  Description: リンクをカード形式で表示します。
6
+ Version: 2.1.0
7
  Author: poporon
8
  Author URI: http://poporon.poponet.jp
9
  License: GPLv2 or later
17
 
18
  public $charset;
19
 
20
+ public $amp; // Google AMP
21
+
22
  public $now; // 現在日時(ローカル時間)
23
  public $now_mysql; // 現在日時(SQL形式)
24
 
31
 
32
  public $options;
33
  protected $defaults = array(
34
+ 'code1' => 'blogcard',
35
+ 'code2' => null,
36
+ 'code3' => null,
37
+ 'code4' => null,
38
+ 'auto-atag' => null,
39
+ 'auto-url' => null,
40
+ 'trail-slash' => '1',
41
+ 'border-width' => '1px',
42
+ 'border-style' => 'solid',
43
+ 'border-color' => '#888888',
44
+ 'width' => '500px',
45
+ 'content-height' => '108px',
46
+ 'margin-top' => '4px',
47
+ 'margin-right' => '16px',
48
+ 'margin-bottom' => '16px',
49
+ 'margin-left' => '4px',
50
+ 'card-top' => null,
51
+ 'card-right' => null,
52
+ 'card-bottom' => null,
53
+ 'card-left' => null,
54
+ 'centering' => null,
55
+ 'radius' => '1',
56
+ 'shadow' => '1',
57
+ 'shadow-inset' => null,
58
+ 'special-format' => null,
59
+ 'use-inline' => null,
60
+ 'use-sitename' => '1',
61
+ 'use-hatena' => null,
62
+ 'display-url' => '1',
63
+ 'display-excerpt' => '1',
64
+ 'trim-title' => 80,
65
+ 'trim-count' => 250,
66
+ 'trim-sitename' => 45,
67
+ 'info-position' => '1',
68
+ 'separator' => null,
69
+ 'size-title' => '16px',
70
+ 'size-url' => '10px',
71
+ 'size-excerpt' => '11px',
72
+ 'size-info' => '12px',
73
+ 'size-plugin' => '10px',
74
+ 'height-title' => '24px',
75
+ 'height-url' => '10px',
76
+ 'height-excerpt' => '17px',
77
+ 'height-info' => '12px',
78
+ 'height-plugin' => '10px',
79
+ 'color-title' => '#111111',
80
+ 'color-url' => '#4466ff',
81
+ 'color-excerpt' => '#333333',
82
+ 'color-info' => '#222222',
83
+ 'color-plugin' => '#888888',
84
+ 'outline-color-title' => '#ffffff',
85
+ 'outline-color-url' => '#ffffff',
86
+ 'outline-color-excerpt' => '#ffffff',
87
+ 'outline-color-info' => '#ffffff',
88
+ 'outline-color-plugin' => '#ffffff',
89
+ 'ex-bgcolor' => '#ffffff',
90
+ 'in-bgcolor' => '#f8f8f8',
91
+ 'th-bgcolor' => '#eeeeee',
92
+ 'in-get' => null,
93
+ 'ex-image' => null,
94
+ 'in-image' => null,
95
+ 'th-image' => null,
96
+ 'ex-info' => null,
97
+ 'in-more-text' => null,
98
+ 'th-more-text' => null,
99
+ 'ex-more-text' => null,
100
+ 'in-info' => null,
101
+ 'th-info' => null,
102
+ 'in-target' => null,
103
+ 'ex-target' => '2',
104
+ 'ex-thumbnail' => '3',
105
+ 'in-thumbnail' => '1',
106
+ 'ex-favicon' => '3',
107
+ 'in-favicon' => '3',
108
+ 'favicon-api' => 'https://www.google.com/s2/favicons?domain=%DOMAIN%',
109
+ 'thumbnail-api' => 'https://s.wordpress.com/mshots/v1/%URL%?w=100',
110
+ 'thumbnail-position'=> '2',
111
+ 'thumbnail-width' => '100px',
112
+ 'thumbnail-height' => '108px',
113
+ 'thumbnail-shadow' => '1',
114
+ 'thumbnail-resize' => '1',
115
+ 'cache-time' => 31536000,
116
+ 'user-agent' => null,
117
+ 'flg-more' => null,
118
+ 'flg-referer' => '1',
119
+ 'flg-agent' => '1',
120
+ 'flg-redir' => '1',
121
+ 'flg-alive' => '1',
122
+ 'flg-ssl' => '1',
123
+ 'flg-amp-url' => null,
124
+ 'flg-idn' => '1',
125
+ 'flg-unlink' => '1',
126
+ 'flg-get-pid' => null,
127
+ 'flg-subdir' => '1',
128
+ 'flg-invalid' => null,
129
+ 'flg-edit-insert' => '1',
130
+ 'flg-edit-qtag' => '1',
131
+ 'style-reset-img' => '1',
132
+ 'css-add' => null,
133
+ 'css-sp' => null,
134
+ 'css-file' => null,
135
+ 'css-path' => null,
136
+ 'css-url' => null,
137
+ 'class-pc' => null,
138
+ 'class-mobile' => null,
139
+ 'sns-position' => '2',
140
+ 'sns-tw' => '1',
141
+ 'sns-fb' => '1',
142
+ 'sns-hb' => '1',
143
+ 'link-all' => '1',
144
+ 'blockquote' => null,
145
+ 'nofollow' => null,
146
+ 'presence' => null,
147
+ 'thumbnail-dir' => null,
148
+ 'thumbnail-url' => null,
149
+ 'invalid-url' => null,
150
+ 'invalid-time' => null,
151
+ 'plugin-link' => null,
152
+ 'plugin-name' => 'Pz-LinkCard',
153
+ 'plugin-version' => '2.1.0',
154
+ 'plugin-url' => 'https://popozure.info/pz-linkcard',
155
+ 'pz-hbc-options' => null,
156
+ 'debug-time' => null
157
  );
158
 
159
  public function __construct() {
160
+ $this->slug = basename(dirname(__FILE__));
161
+ $this->text_domain = $this->slug;
162
+
163
+ $this->charset = get_bloginfo('charset');
164
 
165
+ $this->amp = '1';
166
 
167
+ $this->now = current_time('timestamp', false);
168
+ $this->now_mysql = current_time('mysql');
169
 
170
+ $this->plugin_basename = plugin_basename(__FILE__);
171
+ $this->plugin_dir_path = plugin_dir_path(__FILE__);
172
+ $this->plugin_dir_url = plugin_dir_url (__FILE__);
173
 
174
  $this->options = get_option('Pz_LinkCard_options', $this->defaults );
175
  foreach ($this->defaults as $key => $value) {
507
  // ラッピング
508
  switch ($link_type) {
509
  case '1':
510
+ $wrap_op = '<div class="lkc-this-wrap">';
511
+ $wrap_cl = '</div>';
512
+ $more = null;
513
+ $more_text = null;
514
+ $info = isset($this->options['th-info']) ? $this->options['th-info'] : null ;
515
+ $sw_thumbnail = isset($this->options['in-thumbnail']) ? $this->options['in-thumbnail'] : '0' ;
516
+ $sw_favicon = isset($this->options['in-favicon']) ? $this->options['in-favicon'] : '0' ;
517
  break;
518
  case '2':
519
+ $wrap_op = '<div class="lkc-internal-wrap">';
520
+ $wrap_cl = '</div>';
521
+ $more = isset($this->options['flg-more']) ? $this->options['flg-more'] : null ;
522
+ $more_text = isset($this->options['in-more-text']) ? $this->options['in-more-text'] : null ;
523
+ $info = isset($this->options['in-info']) ? $this->options['in-info'] : null ;
524
+ $sw_thumbnail = isset($this->options['in-thumbnail']) ? $this->options['in-thumbnail'] : '0' ;
525
+ $sw_favicon = isset($this->options['in-favicon']) ? $this->options['in-favicon'] : '0' ;
526
  break;
527
  default:
528
+ $wrap_op = '<div class="lkc-external-wrap">';
529
+ $wrap_cl = '</div>';
530
+ $more = isset($this->options['flg-more']) ? $this->options['flg-more'] : null ;
531
+ $more_text = isset($this->options['ex-more-text']) ? $this->options['ex-more-text'] : null ;
532
+ $info = isset($this->options['ex-info']) ? $this->options['ex-info'] : '' ;
533
+ $sw_thumbnail = isset($this->options['ex-thumbnail']) ? $this->options['ex-thumbnail'] : '0' ;
534
+ $sw_favicon = isset($this->options['ex-favicon']) ? $this->options['ex-favicon'] : '0' ;
535
  break;
536
  }
537
 
741
  }
742
  }
743
 
744
+ // 続きを読むボタン
745
+ if ( $more && $more_text ) {
746
+ $moretag = '<div class="lkc-more">'.$a_op.'<span class="lkc-more-text">'.$more_text.'</span>'.$a_cl.'</div>';
747
+ } else {
748
+ $moretag = null;
749
+ }
750
+
751
  // 記事内容
752
+ $content = '<div class="lkc-content">'.$a_op.$thumbnail.'<span class="lkc-title">'.$title.'</span>'.$a_cl.$sns_title.'<div class="lkc-url"><cite>'.$st_op.$a_op.$url.$st_cl.$a_cl.'</cite></div><div class="lkc-excerpt">'.$excerpt.'</div>'.$moretag.'</div>';
753
 
754
+ // Google AMPに対応
755
+ if ( (function_exists('is_amp_endpoint') && is_amp_endpoint()) || isset($this->amp) || ( isset($this->options['flg-amp-url']) && ( preg_match('/\/amp\/?$/i', $_SERVER["REQUEST_URI"]) || preg_match('/\?amp=1$/i', $_SERVER["REQUEST_URI"]) ) ) ) {
756
  // 簡易タグ作成
757
  $tag = '<table border="1" cellspacing="0" cellpadding="4"><tbody></tr><tr><td>'.$excerpt.'<br>'.$a_op_all.$a_op.$title.$a_cl.$a_cl_all.' - '.$site_name.'</td></tr></tbody></table>';
758
  } else {
1472
  return $tags;
1473
  }
1474
 
1475
+ // サムネイル取得(外部リンクOGP画像取得)
1476
  public function pz_GetThumbnail($url) {
1477
  if (!isset($url) || $url == '' || $url == 'https://s0.wp.com/i/blank.jpg') {
1478
  return null;
1479
  }
1480
 
1481
+ $file_dir = $this->options['thumbnail-dir']; // サムネイルのディレクトリ
1482
  if (!is_dir($file_dir)) {
1483
  return null;
1484
  }
1485
 
1486
+ $file_name = bin2hex(hash('sha256', esc_url( $url ), true)); // URLをハッシュしてファイル名を生成する
1487
+ $file_path = $file_dir.$file_name; // ファイルのフルパス
1488
+ $file_url = $this->options['thumbnail-url'].$file_name; // 画像URL
1489
 
1490
+ if (file_exists($file_path )) { // 既にあれば画像URLを返す
1491
  return $file_url;
1492
  }
1493
 
1494
+ list($width, $height) = @getimagesize($url); // サイズを取得
1495
+ if (!isset($width) || !isset($height) || $width < 8 || $height < 8) { // 8x8未満は画像ではないと見なす
1496
  return null;
1497
  }
1498
+ $image = imagecreatefromstring( file_get_contents($url) ); // 画像読み込み
1499
+
1500
+ $new_width = 100; // 幅100px
1501
+ $new_height = 100; // 高さ100px
1502
+ if ($width <> $height) { // 正方形でない
1503
+ if ($width > $height) { // 幅の方が大きい
1504
+ $new_height = $height * ( $new_width / $width ); // 幅に合わせる
1505
+ } else { // 高さの方が大きい
1506
+ $new_width = $width * ( $new_height / $height ); // 高さに合わせる
1507
  }
1508
  }
1509
+ $image_p = imagecreatetruecolor($new_width, $new_height); // パレットを用意
1510
+ imagecopyresampled($image_p, $image, 0, 0, 0, 0, $new_width, $new_height, $width, $height); // サイズ変更してコピー
1511
+ imagejpeg($image_p, $file_path); // JPEGで保存
1512
+ return $file_url; // 画像URLを返す
1513
  }
1514
 
1515
  // 管理画面時のスタイルシート、スクリプト設定
1522
 
1523
  // 管理画面時のスタイルシート、スクリプト設定
1524
  public function add_qtag() {
1525
+ if ($this->options['flg-edit-qtag']) {
1526
+ if (wp_script_is('quicktags') ) {
1527
+ echo '<script>QTags.addButton(\'pz-lkc\',\''.__('Linkcard', $this->text_domain ).'\',\'['.$this->options['code1'].' url="\',\'"]\',\'\',\''.__('Make Linkcard', $this->text_domain ).'\');</script>';
1528
+ }
1529
  }
1530
  }
1531
 
1538
 
1539
  // 管理画面時のスタイルシート、スクリプト設定
1540
  public function add_mce_button($buttons) {
1541
+ if ($this->options['flg-edit-insert']) {
1542
+ $buttons[] = 'pz_linkcard';
1543
+ }
1544
  return $buttons;
1545
  }
1546
  public function add_mce_plugin($plugins) {
1550
 
1551
  // 通常時のスタイルシート
1552
  public function enqueue($hook) {
1553
+ $this->amp = null;
1554
+
1555
  if (!isset($this->options['style'])) {
1556
  wp_enqueue_style ('pz-linkcard', $this->options['css-url']);
1557
  } else {
readme.txt CHANGED
@@ -111,40 +111,48 @@ A1.
111
  リンク先サイトのURL、タイトル、抜粋文を取得してデータベースに格納します。
112
  URLごとに保存されるため、複数の記事に同一のURLを指定してもデータは増えません。
113
  結果として記事内にタイトルや抜粋文を記述してリンクを設定するのと大きな差は無いと思います。
114
- ただし、リンクを削除したとしてもデータベースからキャッシュ情報は削除されません。
115
- これは「Pz カード管理」画面から個別で削除することができます。
116
- また、アンインストール時にプラグインとともにキャッシュ用のデータベースは削除されます。
117
 
118
  Q2.
119
- ページの表示が遅くなりました。
120
 
121
  A2.
122
- リンク先のURLを使ったリンクカードを「初めて表示」するときにタイトルや抜粋文、ソーシャルカウント等を取得します。
123
- このため、複数のリンクカードを埋め込んだ記事を最初に表示するときには非常に時間がかかる場合があります。
124
- ソーシャルカウントを取得する場合にはリンクカード1個につき、2~10秒ほどかかる場合があります。
125
- ただし、2回目以降の表示はキャッシュから取得するので高速に表示されます。
126
- つまり、投稿直後もしくは執筆中にプレビューをすることで自分で記事を1回表示しておけば、閲覧者は遅延無く記事を見ることができます。
127
 
128
  Q3.
129
- 自サイト内への記事でも新しいウィンドウで開きたいのですが?
130
 
131
  A3.
132
- 「Pz カード設定」の画面から、外部リンク、内部リンク、それぞれ「新しいウィンドウで開く」のチェックボックスが用意されています。
133
- 外部サイトも同一ウィンドウで開くこともできます。
134
- 普段は外部サイトは新しいウィンドウで開き、モバイルで閲覧時のみ同一ウィンドウで開くこともできます。
135
 
136
  Q4.
137
- WordPressピンバックが飛びません。
138
 
139
  A4.
140
- WordPressピンバックは記事中にリンクを直接記述しないと飛びません。
141
- 当プラグインはショートコードをカードの書式とリンクを展開するのでピンバックは飛びません。
142
 
143
  Q5.
144
- SSLサイトの内容が取得できません。
145
 
146
  A5.
147
- ブログサイトのcURLでアクセスを行った際にサーバー側にSSL証明書が更新されていないためにSSL検証が失敗されるためと思われます。SSL検証を行わない設定を有効にしてみてください。
 
 
 
 
 
 
 
 
 
 
 
 
 
148
 
149
  == Screenshots ==
150
 
@@ -155,11 +163,29 @@ A5.
155
  5. "Write shortcode and url"
156
 
157
  == Changelog ==
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
158
  Ver2.0.8
159
  * WordPress 4.9.4 での動作確認。
160
  Compatible with WordPress 4.9.4
161
  * 設定画面のショートコードの表示を修正しました。
162
  Fixed: Fixed so that the short code is displayed immediately on the setting screen.
 
 
163
  * 管理画面でワーニングが出ていたのを修正しました。
164
  Fixed: Fixed a bug.
165
 
111
  リンク先サイトのURL、タイトル、抜粋文を取得してデータベースに格納します。
112
  URLごとに保存されるため、複数の記事に同一のURLを指定してもデータは増えません。
113
  結果として記事内にタイトルや抜粋文を記述してリンクを設定するのと大きな差は無いと思います。
114
+ 記事からショートコードを消してもデータベースからキャッシュ情報は削除されないので「Pz カード管理」画面から個別で消してください。
115
+ また、アンインストール時にプラグインと設定内容、キャッシュ用のデータベースを削除します。
 
116
 
117
  Q2.
118
+ 自サイト内への記事でも新しいウィンドウで開きたいのですが?
119
 
120
  A2.
121
+ 「Pz カード設定」の画面から、外部リンク、内部リンク、それぞれ「新しいウィンドウで開く」のチェックボックスが用意されています。
122
+ 外部サイト同一をウィンドウで開くこともできます。
123
+ 普段は外部サイトは新しいウィンドウで開き、モバイルで閲覧時のみ同一ウィンドウで開くこともできます。
 
 
124
 
125
  Q3.
126
+ WordPressピンバックが飛びません。
127
 
128
  A3.
129
+ WordPressピンバックは記事中にリンクを直接記述しないと飛びません。
130
+ 当プラグインはショートコードをカードの書式とリンクを展開するのでピンバックは飛びません。
 
131
 
132
  Q4.
133
+ SSLサイトの内容が取得できません。
134
 
135
  A4.
136
+ ブログサイトのcURLでアクセスを行った際にサーバー側にSSL証明書が更新されていないためにSSL検証が失敗されるためと思われます。SSL検証を行わない設定を有効にしてみてください。
 
137
 
138
  Q5.
139
+ nofollowの設定は重要ですか?
140
 
141
  A5.
142
+ Googleではnofollowを指定したリンク先はリンク元のサイトの評価に使用しないとしています。
143
+ 通常のサイトでは指定しないことをお勧めします。
144
+
145
+ Q6.
146
+ 直接取得にしたサムネイルの画像が粗い。
147
+
148
+ A6.
149
+ 外部サイトのサムネイル直接取得は引用の範囲を超えることのないように低解像度としています。
150
+
151
+ Q7.
152
+ 「続きを読む」ボタンが表示されない。
153
+
154
+ A7.
155
+ カードの「高さ」を空欄にして記事内容が全て表示されるように指定しないと表示されないことがあります。
156
 
157
  == Screenshots ==
158
 
163
  5. "Write shortcode and url"
164
 
165
  == Changelog ==
166
+ Ver2.1.0
167
+ * カード管理に「リンク切れ」の項目を追加しました。
168
+ Added: Added "Link broken" item to card management.
169
+ * スタイルシートを読み込まないときに簡易表示するように修正しました。(Google AMP対応)
170
+ Modified: If CSS is not loaded, display simple.
171
+ * テキストエディタのクイックタグを表示するかを選択できるように変更しました。
172
+ Modified: Changed so that you can choose whether to display the quick tag of the text editor.
173
+ * ビジュアルエディタの挿入ボタンを表示するかを選択できるように変更しました。
174
+ Modified: Changed so that you can choose whether to display the insert button of the visual editor.
175
+ * 設定画面の誤記を修正しました。
176
+ Fixed: The mistyping was corrected.
177
+ * 設定画面の設定項目を再配置しました。
178
+ Modified: The setting items on the setting screen have been relocated.
179
+ * 設定画面にバージョンを表記しました。
180
+ Modified: Version was written on setting screen.
181
+
182
  Ver2.0.8
183
  * WordPress 4.9.4 での動作確認。
184
  Compatible with WordPress 4.9.4
185
  * 設定画面のショートコードの表示を修正しました。
186
  Fixed: Fixed so that the short code is displayed immediately on the setting screen.
187
+ * スタイルシートを追加できるように修正しました。
188
+ Fixed: Fix to be able to add stylesheet.
189
  * 管理画面でワーニングが出ていたのを修正しました。
190
  Fixed: Fixed a bug.
191
 
templete/pz-linkcard-templete.css CHANGED
@@ -115,6 +115,9 @@
115
  margin: 0;
116
  overflow: hidden;
117
  }
 
 
 
118
  .lkc-thumbnail {
119
  /*THUMBNAIL-WIDTH*/
120
  /*THUMBNAIL-HEIGHT*/
@@ -249,5 +252,5 @@ blockquote.lkc-quote {
249
  width: 100%;
250
  }
251
  /*OPTION*/
252
-
253
  /*RESIZE*/
115
  margin: 0;
116
  overflow: hidden;
117
  }
118
+ .lkc-more-text {
119
+ /*MORE-TEXT*/
120
+ }
121
  .lkc-thumbnail {
122
  /*THUMBNAIL-WIDTH*/
123
  /*THUMBNAIL-HEIGHT*/
252
  width: 100%;
253
  }
254
  /*OPTION*/
255
+ /*SPECIAL*/
256
  /*RESIZE*/