Pz-LinkCard - Version 2.0.0

Version Description

Download this release

Release Info

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

Code changes from version 1.8.2 to 2.0.0

js/button.png ADDED
Binary file
js/mce-pz-lkc.js ADDED
@@ -0,0 +1,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, '[link url="' + insert_tag + '"]');
13
+ }
14
+ });
15
+ },
16
+ createControl: function(n, cm) {
17
+ return null;
18
+ }
19
+ });
20
+ tinymce.PluginManager.add('pz_linkcard',tinymce.plugins.pzlinkcard);
21
+ })();
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: 2017-07-06 09:54+0900\n"
8
- "PO-Revision-Date: 2017-07-06 09:55+0900\n"
9
  "Last-Translator: \n"
10
  "Language-Team: poporon\n"
11
  "Language: ja_JP\n"
@@ -19,139 +19,147 @@ msgstr ""
19
  "Plural-Forms: nplurals=1; plural=0;\n"
20
  "X-Poedit-SearchPath-0: ..\n"
21
 
22
- #: ../pz-linkcard.php:231
23
  msgid "Incorrect URL specification."
24
  msgstr "URLの指定が誤っています。"
25
 
26
- #: ../pz-linkcard.php:1257 ../lib/pz-linkcard-cacheman.php:6
 
 
 
 
 
 
 
 
27
  msgid "LinkCard cache manager"
28
  msgstr "リンクカード/DBキャッシュ管理"
29
 
30
- #: ../pz-linkcard.php:1257
31
  msgid "Pz LkC Cache"
32
  msgstr "Pz カード管理"
33
 
34
- #: ../pz-linkcard.php:1258 ../lib/pz-linkcard-settings.php:4
35
  msgid "LinkCard Settings"
36
  msgstr "リンクカード設定"
37
 
38
- #: ../pz-linkcard.php:1258
39
  msgid "Pz LinkCard"
40
  msgstr "Pz カード設定"
41
 
42
- #: ../pz-linkcard.php:1343
43
  msgid "Settings"
44
  msgstr "設定"
45
 
46
- #: ../pz-linkcard.php:1343
47
  msgid "Manage"
48
  msgstr "管理"
49
 
50
- #: ../lib/pz-linkcard-cacheman-edit.php:13
51
  #: ../lib/pz-linkcard-cacheman-list.php:183 ../lib/pz-linkcard-edit.php:13
52
  msgid "ID"
53
  msgstr ""
54
 
55
- #: ../lib/pz-linkcard-cacheman-edit.php:17
56
  #: ../lib/pz-linkcard-cacheman-list.php:184 ../lib/pz-linkcard-edit.php:17
57
  msgid "URL key"
58
  msgstr "URLキー"
59
 
60
- #: ../lib/pz-linkcard-cacheman-edit.php:21
61
  #: ../lib/pz-linkcard-cacheman-list.php:185 ../lib/pz-linkcard-edit.php:21
62
- #: ../lib/pz-linkcard-settings.php:530
63
  msgid "URL"
64
  msgstr "URL"
65
 
66
- #: ../lib/pz-linkcard-cacheman-edit.php:25 ../lib/pz-linkcard-edit.php:25
67
  msgid "Link type"
68
  msgstr "外部/内部"
69
 
70
- #: ../lib/pz-linkcard-cacheman-edit.php:29 ../lib/pz-linkcard-edit.php:29
71
  msgid "Site name"
72
  msgstr "サイト名称"
73
 
74
- #: ../lib/pz-linkcard-cacheman-edit.php:33
75
  #: ../lib/pz-linkcard-cacheman-list.php:189 ../lib/pz-linkcard-edit.php:33
76
  msgid "Domain"
77
  msgstr "ドメイン"
78
 
79
- #: ../lib/pz-linkcard-cacheman-edit.php:37
80
  #: ../lib/pz-linkcard-cacheman-list.php:186 ../lib/pz-linkcard-edit.php:37
81
- #: ../lib/pz-linkcard-settings.php:501
82
  msgid "Title"
83
  msgstr "タイトル"
84
 
85
- #: ../lib/pz-linkcard-cacheman-edit.php:41
86
  #: ../lib/pz-linkcard-cacheman-list.php:187 ../lib/pz-linkcard-edit.php:41
87
- #: ../lib/pz-linkcard-settings.php:558
88
  msgid "Excerpt"
89
  msgstr "抜粋文"
90
 
91
- #: ../lib/pz-linkcard-cacheman-edit.php:45
92
  #: ../lib/pz-linkcard-cacheman-list.php:188 ../lib/pz-linkcard-edit.php:45
93
  msgid "Charset"
94
  msgstr "文字セット"
95
 
96
- #: ../lib/pz-linkcard-cacheman-edit.php:46 ../lib/pz-linkcard-edit.php:46
97
  msgid "->"
98
  msgstr "→"
99
 
100
- #: ../lib/pz-linkcard-cacheman-edit.php:49 ../lib/pz-linkcard-edit.php:49
101
  msgid "Thumbnail URL"
102
  msgstr "サムネイルURL"
103
 
104
- #: ../lib/pz-linkcard-cacheman-edit.php:53 ../lib/pz-linkcard-edit.php:53
105
  msgid "Favicon URL"
106
  msgstr "ファビコンURL"
107
 
108
- #: ../lib/pz-linkcard-cacheman-edit.php:57
109
  #: ../lib/pz-linkcard-cacheman-list.php:193 ../lib/pz-linkcard-edit.php:57
110
  msgid "Result code"
111
  msgstr "結果コード"
112
 
113
- #: ../lib/pz-linkcard-cacheman-edit.php:61
114
  #: ../lib/pz-linkcard-cacheman-list.php:192 ../lib/pz-linkcard-edit.php:61
115
  msgid "Post ID"
116
  msgstr "記事ID"
117
 
118
- #: ../lib/pz-linkcard-cacheman-edit.php:65 ../lib/pz-linkcard-edit.php:65
119
  msgid "SNS"
120
  msgstr ""
121
 
122
- #: ../lib/pz-linkcard-cacheman-edit.php:67
123
  #: ../lib/pz-linkcard-cacheman-list.php:190 ../lib/pz-linkcard-edit.php:67
124
  msgid "Tw"
125
  msgstr ""
126
 
127
- #: ../lib/pz-linkcard-cacheman-edit.php:68
128
  #: ../lib/pz-linkcard-cacheman-list.php:190 ../lib/pz-linkcard-edit.php:68
129
  msgid "fb"
130
  msgstr ""
131
 
132
- #: ../lib/pz-linkcard-cacheman-edit.php:69
133
  #: ../lib/pz-linkcard-cacheman-list.php:190 ../lib/pz-linkcard-edit.php:69
134
  msgid "B!"
135
  msgstr ""
136
 
137
- #: ../lib/pz-linkcard-cacheman-edit.php:73 ../lib/pz-linkcard-edit.php:73
138
  msgid "Uptime"
139
  msgstr "更新日時"
140
 
141
- #: ../lib/pz-linkcard-cacheman-edit.php:77 ../lib/pz-linkcard-edit.php:77
142
  msgid "Next update"
143
  msgstr "次回更新日時"
144
 
145
- #: ../lib/pz-linkcard-cacheman-edit.php:81
146
  #: ../lib/pz-linkcard-cacheman-list.php:191 ../lib/pz-linkcard-edit.php:81
147
  msgid "Regist"
148
  msgstr "登録日時"
149
 
150
- #: ../lib/pz-linkcard-cacheman-edit.php:86 ../lib/pz-linkcard-edit.php:86
151
  msgid "Update"
152
  msgstr "更新"
153
 
154
- #: ../lib/pz-linkcard-cacheman-edit.php:86 ../lib/pz-linkcard-edit.php:86
155
  msgid "Cancel"
156
  msgstr "キャンセル"
157
 
@@ -224,60 +232,76 @@ msgstr "すべて選択"
224
  msgid "(last)"
225
  msgstr ""
226
 
227
- #: ../lib/pz-linkcard-cacheman-list.php:223
228
  msgid "edit"
229
  msgstr "編集"
230
 
231
- #: ../lib/pz-linkcard-cacheman-list.php:224
232
- #: ../lib/pz-linkcard-cacheman-list.php:225
233
  msgid "Are you sure?"
234
  msgstr "実行します。"
235
 
236
- #: ../lib/pz-linkcard-cacheman-list.php:224
237
  msgid "renew"
238
  msgstr "再取得"
239
 
240
- #: ../lib/pz-linkcard-cacheman-list.php:225
241
  msgid "delete"
242
  msgstr "削除"
243
 
244
- #: ../lib/pz-linkcard-cacheman-list.php:267
245
  msgid "Export"
246
  msgstr "エクスポート"
247
 
248
- #: ../lib/pz-linkcard-cacheman.php:70
249
  msgid "Updated cache"
250
  msgstr "キャッシュを更新しました"
251
 
252
- #: ../lib/pz-linkcard-cacheman.php:72 ../lib/pz-linkcard-cacheman.php:75
253
  msgid "Update failed"
254
  msgstr "キャッシュの更新に失敗しました"
255
 
256
- #: ../lib/pz-linkcard-cacheman.php:80
257
  msgid "Social count renew"
258
  msgstr "ソーシャルカウントの再取得"
259
 
260
- #: ../lib/pz-linkcard-cacheman.php:90 ../lib/pz-linkcard-cacheman.php:108
261
- #: ../lib/pz-linkcard-cacheman.php:123
262
  msgid "completed"
263
  msgstr "完了しました"
264
 
265
- #: ../lib/pz-linkcard-cacheman.php:96
266
  msgid "Alive check"
267
  msgstr "リンク先のチェック"
268
 
269
- #: ../lib/pz-linkcard-cacheman.php:113
270
  msgid "Cache renew"
271
  msgstr "記事内容の再取得"
272
 
273
- #: ../lib/pz-linkcard-cacheman.php:131
274
  msgid "Cache deleted"
275
  msgstr "キャッシュから削除しました"
276
 
277
- #: ../lib/pz-linkcard-cacheman.php:151
278
  msgid "Download Export File"
279
  msgstr "エクスポートファイルをダウンロード"
280
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
281
  #: ../lib/pz-linkcard-settings.php:38
282
  msgid "Short code is not set."
283
  msgstr "ショートコードが指定されていません。"
@@ -290,140 +314,140 @@ msgstr "設定を保存しました。"
290
  msgid "Not changed."
291
  msgstr "設定は変更されませんでした。"
292
 
293
- #: ../lib/pz-linkcard-settings.php:98
294
  msgid "Special format"
295
  msgstr "定型書式"
296
 
297
- #: ../lib/pz-linkcard-settings.php:101
298
  msgid "Tiny format"
299
  msgstr "かんたん書式設定"
300
 
301
- #: ../lib/pz-linkcard-settings.php:104 ../lib/pz-linkcard-settings.php:336
302
- #: ../lib/pz-linkcard-settings.php:357 ../lib/pz-linkcard-settings.php:455
303
- #: ../lib/pz-linkcard-settings.php:608 ../lib/pz-linkcard-settings.php:620
304
- #: ../lib/pz-linkcard-settings.php:635 ../lib/pz-linkcard-settings.php:672
305
- #: ../lib/pz-linkcard-settings.php:683 ../lib/pz-linkcard-settings.php:698
306
  msgid "None"
307
  msgstr "なし"
308
 
309
- #: ../lib/pz-linkcard-settings.php:105
310
  msgid "Pz-LkC Default"
311
  msgstr "Pz リンクカード 標準書式"
312
 
313
- #: ../lib/pz-linkcard-settings.php:106
314
  msgid "Simple"
315
  msgstr "シンプル"
316
 
317
- #: ../lib/pz-linkcard-settings.php:107
318
  msgid "Cellophane tape \"center\""
319
  msgstr "セロハンテープ(中央)"
320
 
321
- #: ../lib/pz-linkcard-settings.php:108
322
  msgid "Cellophane tape \"Top corner\""
323
  msgstr "セロハンテープ(左上と右上)"
324
 
325
- #: ../lib/pz-linkcard-settings.php:109
326
  msgid "Cellophane tape \"long\""
327
  msgstr "セロハンテープ(長め)"
328
 
329
- #: ../lib/pz-linkcard-settings.php:110
330
  msgid "Slanting"
331
  msgstr "斜め"
332
 
333
- #: ../lib/pz-linkcard-settings.php:111
334
  msgid "3D Rotate"
335
  msgstr "3D回転"
336
 
337
- #: ../lib/pz-linkcard-settings.php:112
338
  msgid "Curling paper"
339
  msgstr "紙がめくれた効果(テーマとの相性があります)"
340
 
341
- #: ../lib/pz-linkcard-settings.php:113
342
  msgid "Taping and curling"
343
  msgstr "テープと紙めくれ(テーマとの相性があります)"
344
 
345
- #: ../lib/pz-linkcard-settings.php:114
346
  msgid "Stitch blue&red"
347
  msgstr "縫い目(青&赤)"
348
 
349
- #: ../lib/pz-linkcard-settings.php:115
350
  msgid "Stitch green&yellow"
351
  msgstr "縫い目(緑&黄色)"
352
 
353
- #: ../lib/pz-linkcard-settings.php:116
354
  msgid "Neutral"
355
  msgstr "ブルーグリーン(黒背景推奨)"
356
 
357
- #: ../lib/pz-linkcard-settings.php:117
358
  msgid "Orange"
359
  msgstr "オレンジ(黒背景推奨)"
360
 
361
- #: ../lib/pz-linkcard-settings.php:118
362
  msgid "Green"
363
  msgstr "グリーン(黒背景推奨)"
364
 
365
- #: ../lib/pz-linkcard-settings.php:119
366
  msgid "Blue"
367
  msgstr "ブルー(黒背景推奨)"
368
 
369
- #: ../lib/pz-linkcard-settings.php:120
370
  msgid "Pushpin"
371
  msgstr "押しピン"
372
 
373
- #: ../lib/pz-linkcard-settings.php:122
374
  msgid "* It applies over other formatting settings."
375
  msgstr "※ほかの項目よりも優先して適用されます。"
376
 
377
- #: ../lib/pz-linkcard-settings.php:128
378
  msgid "Shortcode"
379
  msgstr "ショートコード "
380
 
381
- #: ../lib/pz-linkcard-settings.php:131
382
- msgid "ShortCode1"
383
  msgstr "ショートコード 1"
384
 
385
- #: ../lib/pz-linkcard-settings.php:133 ../lib/pz-linkcard-settings.php:151
386
- #: ../lib/pz-linkcard-settings.php:156 ../lib/pz-linkcard-settings.php:161
387
  msgid "Case-sensitive"
388
  msgstr "大文字と小文字を区別します"
389
 
390
- #: ../lib/pz-linkcard-settings.php:136
391
  msgid "Use inlinetext"
392
  msgstr "ショートコードで囲んだ文字列"
393
 
394
- #: ../lib/pz-linkcard-settings.php:140
395
  msgid "No use"
396
  msgstr "使用しない"
397
 
398
- #: ../lib/pz-linkcard-settings.php:141
399
  msgid "Use to excerpt"
400
  msgstr "抜粋文として使用"
401
 
402
- #: ../lib/pz-linkcard-settings.php:142
403
  msgid "Use to title"
404
  msgstr "タイトルとして使用"
405
 
406
- #: ../lib/pz-linkcard-settings.php:145
407
  msgid "This setting applies only to the Shortcode1"
408
  msgstr "ショートコード1にのみ適用されます"
409
 
410
- #: ../lib/pz-linkcard-settings.php:149
411
  msgid "ShortCode 2"
412
  msgstr "ショートコード 2"
413
 
414
- #: ../lib/pz-linkcard-settings.php:154
415
  msgid "ShortCode 3"
416
  msgstr "ショートコード 3"
417
 
418
- #: ../lib/pz-linkcard-settings.php:159
419
  msgid "ShortCode 4"
420
  msgstr "ショートコード 4"
421
 
422
- #: ../lib/pz-linkcard-settings.php:164
423
  msgid "Parameters"
424
  msgstr "パラメータ"
425
 
426
- #: ../lib/pz-linkcard-settings.php:167
427
  msgid ""
428
  "For any shortcode you can change the title and excerpt with `title` "
429
  "parameter and `content` parameter"
@@ -432,397 +456,416 @@ msgstr ""
432
  "文を指定できます。"
433
 
434
  #: ../lib/pz-linkcard-settings.php:173
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
435
  msgid "Style"
436
  msgstr "表示設定"
437
 
438
- #: ../lib/pz-linkcard-settings.php:177
439
  msgid "Use blockquote tag"
440
  msgstr "BLOCKQUOTEをタグを使用する"
441
 
442
- #: ../lib/pz-linkcard-settings.php:178
443
  msgid "without using DIV tag, and use BLOCKQUOTE tag"
444
  msgstr "<BLOCKQUOTE>で囲んで引用扱いにします"
445
 
446
- #: ../lib/pz-linkcard-settings.php:182
447
  msgid "Link the whole"
448
  msgstr "カード全体をリンク"
449
 
450
- #: ../lib/pz-linkcard-settings.php:186
451
  msgid "Enclose the entire card at anchor"
452
  msgstr ""
453
  "カード全体をAタグで囲って、どこをクリックしてもリンク先を開くようにします。"
454
 
455
- #: ../lib/pz-linkcard-settings.php:192
456
  msgid "Position"
457
  msgstr "配置設定"
458
 
459
- #: ../lib/pz-linkcard-settings.php:199 ../lib/pz-linkcard-settings.php:230
460
  msgid "Margin top"
461
  msgstr "上の余白"
462
 
463
- #: ../lib/pz-linkcard-settings.php:201 ../lib/pz-linkcard-settings.php:216
464
- #: ../lib/pz-linkcard-settings.php:232 ../lib/pz-linkcard-settings.php:246
465
- #: ../lib/pz-linkcard-settings.php:258 ../lib/pz-linkcard-settings.php:278
466
- #: ../lib/pz-linkcard-settings.php:294 ../lib/pz-linkcard-settings.php:311
467
  msgid "Not defined"
468
  msgstr "設定しない"
469
 
470
- #: ../lib/pz-linkcard-settings.php:202 ../lib/pz-linkcard-settings.php:217
471
- #: ../lib/pz-linkcard-settings.php:238 ../lib/pz-linkcard-settings.php:252
472
- #: ../lib/pz-linkcard-settings.php:264 ../lib/pz-linkcard-settings.php:284
473
- #: ../lib/pz-linkcard-settings.php:295 ../lib/pz-linkcard-settings.php:312
474
  msgid "0"
475
  msgstr ""
476
 
477
- #: ../lib/pz-linkcard-settings.php:203 ../lib/pz-linkcard-settings.php:218
478
- #: ../lib/pz-linkcard-settings.php:233 ../lib/pz-linkcard-settings.php:247
479
- #: ../lib/pz-linkcard-settings.php:259 ../lib/pz-linkcard-settings.php:279
480
- #: ../lib/pz-linkcard-settings.php:296 ../lib/pz-linkcard-settings.php:313
481
  msgid "4px"
482
  msgstr ""
483
 
484
- #: ../lib/pz-linkcard-settings.php:204 ../lib/pz-linkcard-settings.php:219
485
- #: ../lib/pz-linkcard-settings.php:234 ../lib/pz-linkcard-settings.php:248
486
- #: ../lib/pz-linkcard-settings.php:260 ../lib/pz-linkcard-settings.php:280
487
- #: ../lib/pz-linkcard-settings.php:297 ../lib/pz-linkcard-settings.php:314
488
  msgid "8px"
489
  msgstr ""
490
 
491
- #: ../lib/pz-linkcard-settings.php:205 ../lib/pz-linkcard-settings.php:220
492
- #: ../lib/pz-linkcard-settings.php:235 ../lib/pz-linkcard-settings.php:249
493
- #: ../lib/pz-linkcard-settings.php:261 ../lib/pz-linkcard-settings.php:281
494
- #: ../lib/pz-linkcard-settings.php:298 ../lib/pz-linkcard-settings.php:315
495
  msgid "16px"
496
  msgstr ""
497
 
498
- #: ../lib/pz-linkcard-settings.php:206 ../lib/pz-linkcard-settings.php:221
499
- #: ../lib/pz-linkcard-settings.php:236 ../lib/pz-linkcard-settings.php:250
500
- #: ../lib/pz-linkcard-settings.php:262 ../lib/pz-linkcard-settings.php:282
501
- #: ../lib/pz-linkcard-settings.php:299 ../lib/pz-linkcard-settings.php:316
502
  msgid "32px"
503
  msgstr ""
504
 
505
- #: ../lib/pz-linkcard-settings.php:207 ../lib/pz-linkcard-settings.php:222
506
- #: ../lib/pz-linkcard-settings.php:237 ../lib/pz-linkcard-settings.php:251
507
- #: ../lib/pz-linkcard-settings.php:263 ../lib/pz-linkcard-settings.php:283
508
- #: ../lib/pz-linkcard-settings.php:300 ../lib/pz-linkcard-settings.php:317
509
  msgid "64px"
510
  msgstr ""
511
 
512
- #: ../lib/pz-linkcard-settings.php:214 ../lib/pz-linkcard-settings.php:244
513
  msgid "Margin left"
514
  msgstr "左の余白"
515
 
516
- #: ../lib/pz-linkcard-settings.php:256 ../lib/pz-linkcard-settings.php:292
517
  msgid "Margin right"
518
  msgstr "右の余白"
519
 
520
- #: ../lib/pz-linkcard-settings.php:270 ../lib/pz-linkcard-settings.php:362
521
- #: ../lib/pz-linkcard-settings.php:439
522
  msgid "Width"
523
  msgstr "幅"
524
 
525
- #: ../lib/pz-linkcard-settings.php:271 ../lib/pz-linkcard-settings.php:493
526
- #: ../lib/pz-linkcard-settings.php:522 ../lib/pz-linkcard-settings.php:551
527
- #: ../lib/pz-linkcard-settings.php:579
528
  msgid "Height"
529
  msgstr "高さ"
530
 
531
- #: ../lib/pz-linkcard-settings.php:276 ../lib/pz-linkcard-settings.php:309
532
  msgid "Margin bottom"
533
  msgstr "下の余白"
534
 
535
- #: ../lib/pz-linkcard-settings.php:306
536
  msgid "Centering"
537
  msgstr "中央に寄せる"
538
 
539
- #: ../lib/pz-linkcard-settings.php:328
540
  msgid "Layout"
541
  msgstr "外観設定"
542
 
543
- #: ../lib/pz-linkcard-settings.php:334 ../lib/pz-linkcard-settings.php:628
544
- #: ../lib/pz-linkcard-settings.php:691 ../lib/pz-linkcard-settings.php:737
545
  msgid "Site information"
546
  msgstr "サイト情報"
547
 
548
- #: ../lib/pz-linkcard-settings.php:337
549
  msgid "Top"
550
  msgstr "上側"
551
 
552
- #: ../lib/pz-linkcard-settings.php:338
553
  msgid "Bottom"
554
  msgstr "下側"
555
 
556
- #: ../lib/pz-linkcard-settings.php:340
557
  msgid "Use SiteName"
558
  msgstr "サイト名称を使用"
559
 
560
- #: ../lib/pz-linkcard-settings.php:345
561
  msgid "Separator line"
562
  msgstr "区切り線"
563
 
564
- #: ../lib/pz-linkcard-settings.php:352
565
  msgid "Display URL"
566
  msgstr "リンク先のURLを表示する"
567
 
568
- #: ../lib/pz-linkcard-settings.php:355 ../lib/pz-linkcard-settings.php:605
569
- #: ../lib/pz-linkcard-settings.php:669 ../lib/pz-linkcard-settings.php:729
570
  msgid "Thumbnail"
571
  msgstr "サムネイル"
572
 
573
- #: ../lib/pz-linkcard-settings.php:358
574
  msgid "Right"
575
  msgstr "右側"
576
 
577
- #: ../lib/pz-linkcard-settings.php:359
578
  msgid "Left"
579
  msgstr "左側"
580
 
581
- #: ../lib/pz-linkcard-settings.php:364 ../lib/pz-linkcard-settings.php:386
582
  msgid "Shadow"
583
  msgstr "影を付ける"
584
 
585
- #: ../lib/pz-linkcard-settings.php:369
586
  msgid "Hollow content area"
587
  msgstr "記事の情報に枠を付ける"
588
 
589
- #: ../lib/pz-linkcard-settings.php:374
590
  msgid "Display excerpt"
591
  msgstr "抜粋文を表示する"
592
 
593
- #: ../lib/pz-linkcard-settings.php:379
594
  msgid "Hollow"
595
  msgstr "内側に影を付ける"
596
 
597
- #: ../lib/pz-linkcard-settings.php:392
598
  msgid "Radius"
599
  msgstr "角を丸める"
600
 
601
- #: ../lib/pz-linkcard-settings.php:420
602
  msgid "Border"
603
  msgstr "枠線の太さ"
604
 
605
- #: ../lib/pz-linkcard-settings.php:422 ../lib/pz-linkcard-settings.php:477
606
- #: ../lib/pz-linkcard-settings.php:506 ../lib/pz-linkcard-settings.php:535
607
- #: ../lib/pz-linkcard-settings.php:563
608
  msgid "Color"
609
  msgstr "色"
610
 
611
- #: ../lib/pz-linkcard-settings.php:427
612
  msgid "none"
613
  msgstr "なし"
614
 
615
- #: ../lib/pz-linkcard-settings.php:428
616
  msgid "solid"
617
  msgstr "solid/実線"
618
 
619
- #: ../lib/pz-linkcard-settings.php:429
620
  msgid "dotted"
621
  msgstr "dotted/点線"
622
 
623
- #: ../lib/pz-linkcard-settings.php:430
624
  msgid "dashed"
625
  msgstr "dashed/破線"
626
 
627
- #: ../lib/pz-linkcard-settings.php:431
628
  msgid "double"
629
  msgstr "double/二重線"
630
 
631
- #: ../lib/pz-linkcard-settings.php:432
632
  msgid "groove"
633
  msgstr "groove/立体(へこみ)"
634
 
635
- #: ../lib/pz-linkcard-settings.php:433
636
  msgid "ridge"
637
  msgstr "ridge/立体(隆起)"
638
 
639
- #: ../lib/pz-linkcard-settings.php:434
640
  msgid "inset"
641
  msgstr "inset/立体(押したボタンのような効果)"
642
 
643
- #: ../lib/pz-linkcard-settings.php:435
644
  msgid "outset"
645
  msgstr "outset/立体(ボタンのような効果)"
646
 
647
- #: ../lib/pz-linkcard-settings.php:447
648
  msgid "Reset img style"
649
  msgstr "CSSリセット(img)"
650
 
651
- #: ../lib/pz-linkcard-settings.php:448
652
  msgid ""
653
  "When unnecessary frame is displayed on the image, you can improve it by case"
654
  msgstr "画像がずれて表示されるときに改善される可能性が有ります(推奨)"
655
 
656
- #: ../lib/pz-linkcard-settings.php:452
657
  msgid "Display SNS Count"
658
  msgstr "シェア数を表示する"
659
 
660
- #: ../lib/pz-linkcard-settings.php:456
661
  msgid "After Title"
662
  msgstr "タイトルの後ろ"
663
 
664
- #: ../lib/pz-linkcard-settings.php:457
665
  msgid "After site-name"
666
  msgstr "サイト情報の後ろ"
667
 
668
- #: ../lib/pz-linkcard-settings.php:459
669
  msgid "Twitter"
670
  msgstr "ツイッター"
671
 
672
- #: ../lib/pz-linkcard-settings.php:460
673
  msgid "Facebook"
674
  msgstr "フェイスブック(シェア数)"
675
 
676
- #: ../lib/pz-linkcard-settings.php:461
677
  msgid "Hatena"
678
  msgstr "はてなブックマーク"
679
 
680
- #: ../lib/pz-linkcard-settings.php:462
681
  msgid ""
682
  "There is a possibility that the screen display is slow If you enable this "
683
  "setting."
684
  msgstr "有効にする取得APIによっては表示が遅くなる場合があります。"
685
 
686
- #: ../lib/pz-linkcard-settings.php:468
687
  msgid "Letters"
688
  msgstr "文字設定"
689
 
690
- #: ../lib/pz-linkcard-settings.php:472
691
  msgid "Site-info."
692
  msgstr "サイト情報"
693
 
694
- #: ../lib/pz-linkcard-settings.php:480 ../lib/pz-linkcard-settings.php:509
695
- #: ../lib/pz-linkcard-settings.php:538 ../lib/pz-linkcard-settings.php:566
696
  msgid "Outline"
697
  msgstr "縁取り"
698
 
699
- #: ../lib/pz-linkcard-settings.php:490 ../lib/pz-linkcard-settings.php:519
700
- #: ../lib/pz-linkcard-settings.php:548 ../lib/pz-linkcard-settings.php:576
701
  msgid "Size"
702
  msgstr "大きさ"
703
 
704
- #: ../lib/pz-linkcard-settings.php:496 ../lib/pz-linkcard-settings.php:525
705
- #: ../lib/pz-linkcard-settings.php:582
706
  msgid "Length"
707
  msgstr "桁数"
708
 
709
- #: ../lib/pz-linkcard-settings.php:586
710
  msgid "Resize"
711
  msgstr "幅に合わせて縮小"
712
 
713
- #: ../lib/pz-linkcard-settings.php:587
714
  msgid "Adjust thumbnail and letter size according to width"
715
  msgstr "画面幅に合わせて文字とサムネイルの大きさを調整します。"
716
 
717
- #: ../lib/pz-linkcard-settings.php:593
718
  msgid "External link"
719
  msgstr "外部リンク"
720
 
721
- #: ../lib/pz-linkcard-settings.php:597 ../lib/pz-linkcard-settings.php:661
722
- #: ../lib/pz-linkcard-settings.php:721
723
  msgid "Background Color"
724
  msgstr "背景色"
725
 
726
- #: ../lib/pz-linkcard-settings.php:601
727
  msgid "Background image"
728
  msgstr "背景画像"
729
 
730
- #: ../lib/pz-linkcard-settings.php:609 ../lib/pz-linkcard-settings.php:621
731
- #: ../lib/pz-linkcard-settings.php:673 ../lib/pz-linkcard-settings.php:684
732
  msgid "Direct"
733
  msgstr "直接取得する"
734
 
735
- #: ../lib/pz-linkcard-settings.php:610 ../lib/pz-linkcard-settings.php:622
736
- #: ../lib/pz-linkcard-settings.php:674 ../lib/pz-linkcard-settings.php:685
737
  msgid "Use WebAPI"
738
  msgstr "WebAPIを利用する"
739
 
740
- #: ../lib/pz-linkcard-settings.php:611 ../lib/pz-linkcard-settings.php:623
741
- #: ../lib/pz-linkcard-settings.php:675 ../lib/pz-linkcard-settings.php:686
742
  msgid "Use WebAPI ,If can not direct"
743
  msgstr "直接取得できない場合、WebAPIを利用する"
744
 
745
- #: ../lib/pz-linkcard-settings.php:617 ../lib/pz-linkcard-settings.php:680
746
- #: ../lib/pz-linkcard-settings.php:733
747
  msgid "Favicon"
748
  msgstr "サイトアイコン"
749
 
750
- #: ../lib/pz-linkcard-settings.php:632 ../lib/pz-linkcard-settings.php:695
751
- #: ../lib/pz-linkcard-settings.php:741
752
  msgid "Open new window/tab"
753
  msgstr "新しいウィンドウで開く"
754
 
755
- #: ../lib/pz-linkcard-settings.php:636 ../lib/pz-linkcard-settings.php:699
756
  msgid "All client"
757
  msgstr "すべての端末"
758
 
759
- #: ../lib/pz-linkcard-settings.php:637 ../lib/pz-linkcard-settings.php:700
760
  msgid "Other than mobile"
761
  msgstr "モバイル端末以外"
762
 
763
- #: ../lib/pz-linkcard-settings.php:642 ../lib/pz-linkcard-settings.php:705
764
  msgid "Get contents"
765
  msgstr "記事取得方法"
766
 
767
- #: ../lib/pz-linkcard-settings.php:644 ../lib/pz-linkcard-settings.php:711
768
  msgid "Initially acquired only from the content"
769
  msgstr "カード管理画面に記録されている内容から表示する"
770
 
771
- #: ../lib/pz-linkcard-settings.php:648
772
  msgid "Set nofollow"
773
  msgstr "nofollowを付与する"
774
 
775
- #: ../lib/pz-linkcard-settings.php:649
776
  msgid "In the case of an external site, it puts the \"nofollow\""
777
  msgstr "外部リンクのリンクを nofollow にする"
778
 
779
- #: ../lib/pz-linkcard-settings.php:649 ../lib/pz-linkcard-settings.php:653
780
- #: ../lib/pz-linkcard-settings.php:855
781
- msgid "(Not recommended)"
782
- msgstr "(非推奨)"
783
-
784
- #: ../lib/pz-linkcard-settings.php:652
785
  msgid "Use HatenaBlogCard"
786
  msgstr "はてなブログカードを利用する"
787
 
788
- #: ../lib/pz-linkcard-settings.php:653
789
  msgid "External links will use Always HatenaBlogCard."
790
  msgstr "外部リンクは「はてなブログカード」を利用する"
791
 
792
- #: ../lib/pz-linkcard-settings.php:658
 
 
 
 
793
  msgid "Internal link"
794
  msgstr "内部リンク"
795
 
796
- #: ../lib/pz-linkcard-settings.php:665 ../lib/pz-linkcard-settings.php:725
797
  msgid "Background Image"
798
  msgstr "背景画像"
799
 
800
- #: ../lib/pz-linkcard-settings.php:709
801
  msgid "Always get the latest from the content"
802
  msgstr "常に最新の記事内容から抜粋文を作成する"
803
 
804
- #: ../lib/pz-linkcard-settings.php:710
805
  msgid "Always get the latest from the excerpt"
806
  msgstr "抜粋文が設定されている投稿はそちらを優先する"
807
 
808
- #: ../lib/pz-linkcard-settings.php:718
809
  msgid "Same-page link"
810
  msgstr "同ページへのリンク"
811
 
812
- #: ../lib/pz-linkcard-settings.php:730 ../lib/pz-linkcard-settings.php:734
813
- #: ../lib/pz-linkcard-settings.php:742
814
  msgid "It is common with setting Internal-link"
815
  msgstr "内部リンク用の設定が使用されます"
816
 
817
- #: ../lib/pz-linkcard-settings.php:747
818
  msgid "Web-API"
819
  msgstr "画像取得APIの指定"
820
 
821
- #: ../lib/pz-linkcard-settings.php:750
822
  msgid "Favicon API"
823
  msgstr "ファビコンの取得API"
824
 
825
- #: ../lib/pz-linkcard-settings.php:753
826
  msgid ""
827
  "%DOMAIN% replace to domain name (ex. poporon.poponet.jp )<br>%DOMAIN_URL% "
828
  "replace to domain URL (ex. http://poporon.poponet.jp )"
@@ -831,166 +874,191 @@ msgstr ""
831
  "%DOMAIN_URL% と記述するとドメインのURL(例.http://poporon.poponet.jp)に置き"
832
  "換わります。"
833
 
834
- #: ../lib/pz-linkcard-settings.php:754 ../lib/pz-linkcard-settings.php:763
835
  msgid "ex1."
836
  msgstr "例1."
837
 
838
- #: ../lib/pz-linkcard-settings.php:755 ../lib/pz-linkcard-settings.php:764
839
  msgid "ex2."
840
  msgstr "例2."
841
 
842
- #: ../lib/pz-linkcard-settings.php:759
843
  msgid "Thumbnail API"
844
  msgstr "サムネイル画像の取得API"
845
 
846
- #: ../lib/pz-linkcard-settings.php:762
847
  msgid "%URL% replace to URL"
848
  msgstr "%URL% と記述するとURLに置き換わります"
849
 
850
- #: ../lib/pz-linkcard-settings.php:770
851
  msgid "Link check"
852
  msgstr "リンク先のチェック"
853
 
854
- #: ../lib/pz-linkcard-settings.php:773
855
  msgid "SSL verification disabled"
856
  msgstr "SSL検証を無効"
857
 
858
- #: ../lib/pz-linkcard-settings.php:774
859
  msgid "Try setting if the contents of the SSL site can not be acquired."
860
  msgstr ""
861
  "SSLサイトのタイトルや記事内容が取得できない場合に設定することで取得できる可能"
862
  "性があります。"
863
 
864
- #: ../lib/pz-linkcard-settings.php:777
865
  msgid "Follow location"
866
  msgstr "リダイレクト処理"
867
 
868
- #: ../lib/pz-linkcard-settings.php:778
869
  msgid "Track when the link destination is redirected."
870
  msgstr "リンク先がリダイレクトされている場合に追跡します。"
871
 
872
- #: ../lib/pz-linkcard-settings.php:781
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
873
  msgid "Broken link checker"
874
  msgstr "リンク切れチェック"
875
 
876
- #: ../lib/pz-linkcard-settings.php:782
877
  msgid "Alive confirmation of the link destination."
878
  msgstr "リンク先がアクセスできるか定期的に確認します。"
879
 
880
- #: ../lib/pz-linkcard-settings.php:787
881
  msgid "Debug"
882
  msgstr "詳しい人用(Debug)"
883
 
884
- #: ../lib/pz-linkcard-settings.php:790
885
  msgid "Trailing slash"
886
  msgstr "末尾のスラッシュ"
887
 
888
- #: ../lib/pz-linkcard-settings.php:794
889
  msgid "As it"
890
  msgstr "そのまま"
891
 
892
- #: ../lib/pz-linkcard-settings.php:795
893
  msgid "When only domain name, remove"
894
  msgstr "ドメイン名のみのときだけ削除"
895
 
896
- #: ../lib/pz-linkcard-settings.php:796
897
  msgid "Always remove"
898
  msgstr "常に削除"
899
 
900
- #: ../lib/pz-linkcard-settings.php:802
901
  msgid "specified CSS"
902
  msgstr "指定したCSSを使用"
903
 
904
- #: ../lib/pz-linkcard-settings.php:803
905
  msgid "Use specified CSS file"
906
  msgstr "指定したCSSファイルを使用する"
907
 
908
- #: ../lib/pz-linkcard-settings.php:806 ../lib/pz-linkcard-settings.php:810
909
  msgid "CSS file"
910
  msgstr "CSSファイル名"
911
 
912
- #: ../lib/pz-linkcard-settings.php:807
913
- #, fuzzy
914
  msgid "(ex. https://exsample.com/style.css )"
915
- msgstr "例.http://exsample.com/style.css"
916
 
917
- #: ../lib/pz-linkcard-settings.php:814
918
  msgid "CSS URL"
919
  msgstr "CSSファイルのURL"
920
 
921
- #: ../lib/pz-linkcard-settings.php:819
922
  msgid "Class ID to be added(for PC)"
923
  msgstr "PCのときに追加するクラス名"
924
 
925
- #: ../lib/pz-linkcard-settings.php:823
926
  msgid "Class ID to be added(for Mobile)"
927
  msgstr "モバイルのときに追加するクラス名"
928
 
929
- #: ../lib/pz-linkcard-settings.php:828
930
  msgid "Google AMP"
931
  msgstr ""
932
 
933
- #: ../lib/pz-linkcard-settings.php:829
934
  msgid "Corresponds to simple display for Google AMP."
935
  msgstr "アクセスされたURLの末尾が「/amp」の場合、簡易表示に切り替える。"
936
 
937
- #: ../lib/pz-linkcard-settings.php:833
 
 
 
 
 
 
 
 
 
 
938
  msgid "Display link to author page"
939
  msgstr "プラグイン名を表示する"
940
 
941
- #: ../lib/pz-linkcard-settings.php:837
942
  msgid "Plugin URL"
943
  msgstr "プラグインページURL"
944
 
945
- #: ../lib/pz-linkcard-settings.php:841
946
  msgid "Plugin name"
947
  msgstr "プラグイン名"
948
 
949
- #: ../lib/pz-linkcard-settings.php:845
950
  msgid "Plugin version"
951
  msgstr "プラグインバージョン"
952
 
953
- #: ../lib/pz-linkcard-settings.php:849
954
  msgid "Saved datetime"
955
  msgstr "保存した日時"
956
 
957
- #: ../lib/pz-linkcard-settings.php:854
958
  msgid "Display elapsed time"
959
  msgstr "実行時間の表示"
960
 
961
- #: ../lib/pz-linkcard-settings.php:855
962
  msgid "Output the elapsed time to HTML comment."
963
  msgstr "作成にかかった時間をコメントとしてHTMLへ出力する"
964
 
965
- #: ../lib/pz-linkcard-settings.php:861
966
  msgid "Initialize"
967
  msgstr "初期化"
968
 
969
- #: ../lib/pz-linkcard-settings.php:864
970
  msgid "Return to the initial setting"
971
  msgstr "設定を初期状態へ戻す"
972
 
973
- #: ../lib/pz-linkcard-settings.php:870
974
  msgid "etc"
975
  msgstr "その他"
976
 
977
- #: ../lib/pz-linkcard-settings.php:873
978
  msgid "Author's site"
979
  msgstr "作者のサイト"
980
 
981
- #: ../lib/pz-linkcard-settings.php:874
982
  msgid "Popozure."
983
  msgstr "ぽぽづれ。"
984
 
985
- #: ../lib/pz-linkcard-settings.php:874
986
  msgid "Poporon's PC daily diary"
987
  msgstr "ぽぽろんのパソコンつれづれ(ズレズレ?)日記"
988
 
989
- #: ../lib/pz-linkcard-settings.php:877
990
  msgid "Plugin's page"
991
  msgstr "プラグインのページ"
992
 
993
- #: ../lib/pz-linkcard-settings.php:881
994
  msgid "Donation"
995
  msgstr "寄付"
996
 
@@ -1096,9 +1164,6 @@ msgstr "スタイルシートの自動生成に失敗しました。"
1096
  #~ msgid "Color of title"
1097
  #~ msgstr "タイトルの文字色"
1098
 
1099
- #~ msgid "Color of URL"
1100
- #~ msgstr "URLの文字色"
1101
-
1102
  #~ msgid "Color of excerpt"
1103
  #~ msgstr "抜粋文の文字色"
1104
 
4
  msgstr ""
5
  "Project-Id-Version: Pz-LinkCard\n"
6
  "Report-Msgid-Bugs-To: http://wppolyglots.wordpress.com\n"
7
+ "POT-Creation-Date: 2017-07-11 00:43+0900\n"
8
+ "PO-Revision-Date: 2017-07-11 00:45+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:267
23
  msgid "Incorrect URL specification."
24
  msgstr "URLの指定が誤っています。"
25
 
26
+ #: ../pz-linkcard.php:1321
27
+ msgid "Linkcard"
28
+ msgstr "リンクカード"
29
+
30
+ #: ../pz-linkcard.php:1321
31
+ msgid "Make Linkcard"
32
+ msgstr "リンクカードのショートコードを挿入する"
33
+
34
+ #: ../pz-linkcard.php:1348 ../lib/pz-linkcard-cacheman.php:6
35
  msgid "LinkCard cache manager"
36
  msgstr "リンクカード/DBキャッシュ管理"
37
 
38
+ #: ../pz-linkcard.php:1348
39
  msgid "Pz LkC Cache"
40
  msgstr "Pz カード管理"
41
 
42
+ #: ../pz-linkcard.php:1349 ../lib/pz-linkcard-settings.php:4
43
  msgid "LinkCard Settings"
44
  msgstr "リンクカード設定"
45
 
46
+ #: ../pz-linkcard.php:1349
47
  msgid "Pz LinkCard"
48
  msgstr "Pz カード設定"
49
 
50
+ #: ../pz-linkcard.php:1436
51
  msgid "Settings"
52
  msgstr "設定"
53
 
54
+ #: ../pz-linkcard.php:1436
55
  msgid "Manage"
56
  msgstr "管理"
57
 
58
+ #: ../lib/pz-linkcard-cacheman-edit.php:14
59
  #: ../lib/pz-linkcard-cacheman-list.php:183 ../lib/pz-linkcard-edit.php:13
60
  msgid "ID"
61
  msgstr ""
62
 
63
+ #: ../lib/pz-linkcard-cacheman-edit.php:18
64
  #: ../lib/pz-linkcard-cacheman-list.php:184 ../lib/pz-linkcard-edit.php:17
65
  msgid "URL key"
66
  msgstr "URLキー"
67
 
68
+ #: ../lib/pz-linkcard-cacheman-edit.php:22
69
  #: ../lib/pz-linkcard-cacheman-list.php:185 ../lib/pz-linkcard-edit.php:21
70
+ #: ../lib/pz-linkcard-settings.php:541
71
  msgid "URL"
72
  msgstr "URL"
73
 
74
+ #: ../lib/pz-linkcard-cacheman-edit.php:26 ../lib/pz-linkcard-edit.php:25
75
  msgid "Link type"
76
  msgstr "外部/内部"
77
 
78
+ #: ../lib/pz-linkcard-cacheman-edit.php:30 ../lib/pz-linkcard-edit.php:29
79
  msgid "Site name"
80
  msgstr "サイト名称"
81
 
82
+ #: ../lib/pz-linkcard-cacheman-edit.php:34
83
  #: ../lib/pz-linkcard-cacheman-list.php:189 ../lib/pz-linkcard-edit.php:33
84
  msgid "Domain"
85
  msgstr "ドメイン"
86
 
87
+ #: ../lib/pz-linkcard-cacheman-edit.php:38
88
  #: ../lib/pz-linkcard-cacheman-list.php:186 ../lib/pz-linkcard-edit.php:37
89
+ #: ../lib/pz-linkcard-settings.php:512
90
  msgid "Title"
91
  msgstr "タイトル"
92
 
93
+ #: ../lib/pz-linkcard-cacheman-edit.php:42
94
  #: ../lib/pz-linkcard-cacheman-list.php:187 ../lib/pz-linkcard-edit.php:41
95
+ #: ../lib/pz-linkcard-settings.php:569
96
  msgid "Excerpt"
97
  msgstr "抜粋文"
98
 
99
+ #: ../lib/pz-linkcard-cacheman-edit.php:46
100
  #: ../lib/pz-linkcard-cacheman-list.php:188 ../lib/pz-linkcard-edit.php:45
101
  msgid "Charset"
102
  msgstr "文字セット"
103
 
104
+ #: ../lib/pz-linkcard-cacheman-edit.php:47 ../lib/pz-linkcard-edit.php:46
105
  msgid "->"
106
  msgstr "→"
107
 
108
+ #: ../lib/pz-linkcard-cacheman-edit.php:50 ../lib/pz-linkcard-edit.php:49
109
  msgid "Thumbnail URL"
110
  msgstr "サムネイルURL"
111
 
112
+ #: ../lib/pz-linkcard-cacheman-edit.php:54 ../lib/pz-linkcard-edit.php:53
113
  msgid "Favicon URL"
114
  msgstr "ファビコンURL"
115
 
116
+ #: ../lib/pz-linkcard-cacheman-edit.php:58
117
  #: ../lib/pz-linkcard-cacheman-list.php:193 ../lib/pz-linkcard-edit.php:57
118
  msgid "Result code"
119
  msgstr "結果コード"
120
 
121
+ #: ../lib/pz-linkcard-cacheman-edit.php:62
122
  #: ../lib/pz-linkcard-cacheman-list.php:192 ../lib/pz-linkcard-edit.php:61
123
  msgid "Post ID"
124
  msgstr "記事ID"
125
 
126
+ #: ../lib/pz-linkcard-cacheman-edit.php:66 ../lib/pz-linkcard-edit.php:65
127
  msgid "SNS"
128
  msgstr ""
129
 
130
+ #: ../lib/pz-linkcard-cacheman-edit.php:68
131
  #: ../lib/pz-linkcard-cacheman-list.php:190 ../lib/pz-linkcard-edit.php:67
132
  msgid "Tw"
133
  msgstr ""
134
 
135
+ #: ../lib/pz-linkcard-cacheman-edit.php:69
136
  #: ../lib/pz-linkcard-cacheman-list.php:190 ../lib/pz-linkcard-edit.php:68
137
  msgid "fb"
138
  msgstr ""
139
 
140
+ #: ../lib/pz-linkcard-cacheman-edit.php:70
141
  #: ../lib/pz-linkcard-cacheman-list.php:190 ../lib/pz-linkcard-edit.php:69
142
  msgid "B!"
143
  msgstr ""
144
 
145
+ #: ../lib/pz-linkcard-cacheman-edit.php:74 ../lib/pz-linkcard-edit.php:73
146
  msgid "Uptime"
147
  msgstr "更新日時"
148
 
149
+ #: ../lib/pz-linkcard-cacheman-edit.php:78 ../lib/pz-linkcard-edit.php:77
150
  msgid "Next update"
151
  msgstr "次回更新日時"
152
 
153
+ #: ../lib/pz-linkcard-cacheman-edit.php:82
154
  #: ../lib/pz-linkcard-cacheman-list.php:191 ../lib/pz-linkcard-edit.php:81
155
  msgid "Regist"
156
  msgstr "登録日時"
157
 
158
+ #: ../lib/pz-linkcard-cacheman-edit.php:87 ../lib/pz-linkcard-edit.php:86
159
  msgid "Update"
160
  msgstr "更新"
161
 
162
+ #: ../lib/pz-linkcard-cacheman-edit.php:87 ../lib/pz-linkcard-edit.php:86
163
  msgid "Cancel"
164
  msgstr "キャンセル"
165
 
232
  msgid "(last)"
233
  msgstr ""
234
 
235
+ #: ../lib/pz-linkcard-cacheman-list.php:245
236
  msgid "edit"
237
  msgstr "編集"
238
 
239
+ #: ../lib/pz-linkcard-cacheman-list.php:246
240
+ #: ../lib/pz-linkcard-cacheman-list.php:247
241
  msgid "Are you sure?"
242
  msgstr "実行します。"
243
 
244
+ #: ../lib/pz-linkcard-cacheman-list.php:246
245
  msgid "renew"
246
  msgstr "再取得"
247
 
248
+ #: ../lib/pz-linkcard-cacheman-list.php:247
249
  msgid "delete"
250
  msgstr "削除"
251
 
252
+ #: ../lib/pz-linkcard-cacheman-list.php:292
253
  msgid "Export"
254
  msgstr "エクスポート"
255
 
256
+ #: ../lib/pz-linkcard-cacheman.php:80
257
  msgid "Updated cache"
258
  msgstr "キャッシュを更新しました"
259
 
260
+ #: ../lib/pz-linkcard-cacheman.php:82 ../lib/pz-linkcard-cacheman.php:85
261
  msgid "Update failed"
262
  msgstr "キャッシュの更新に失敗しました"
263
 
264
+ #: ../lib/pz-linkcard-cacheman.php:90
265
  msgid "Social count renew"
266
  msgstr "ソーシャルカウントの再取得"
267
 
268
+ #: ../lib/pz-linkcard-cacheman.php:100 ../lib/pz-linkcard-cacheman.php:128
269
+ #: ../lib/pz-linkcard-cacheman.php:143
270
  msgid "completed"
271
  msgstr "完了しました"
272
 
273
+ #: ../lib/pz-linkcard-cacheman.php:106
274
  msgid "Alive check"
275
  msgstr "リンク先のチェック"
276
 
277
+ #: ../lib/pz-linkcard-cacheman.php:133
278
  msgid "Cache renew"
279
  msgstr "記事内容の再取得"
280
 
281
+ #: ../lib/pz-linkcard-cacheman.php:151
282
  msgid "Cache deleted"
283
  msgstr "キャッシュから削除しました"
284
 
285
+ #: ../lib/pz-linkcard-cacheman.php:171
286
  msgid "Download Export File"
287
  msgstr "エクスポートファイルをダウンロード"
288
 
289
+ #: ../lib/pz-linkcard-js.php:8
290
+ msgid "Insert Pz-LinkCard"
291
+ msgstr "リンクカード作成"
292
+
293
+ #: ../lib/pz-linkcard-js.php:9
294
+ msgid "Input URL"
295
+ msgstr "リンクカードを作成するURLを入力してください"
296
+
297
+ #: ../lib/pz-linkcard-js.php:16
298
+ msgid "Editor button JS saved."
299
+ msgstr "ビジュアルエディタに挿入ボタンを追加しました"
300
+
301
+ #: ../lib/pz-linkcard-js.php:18
302
+ msgid "Editor button JS failed."
303
+ msgstr "ビジュアルエディタのボタンの生成に失敗しました"
304
+
305
  #: ../lib/pz-linkcard-settings.php:38
306
  msgid "Short code is not set."
307
  msgstr "ショートコードが指定されていません。"
314
  msgid "Not changed."
315
  msgstr "設定は変更されませんでした。"
316
 
317
+ #: ../lib/pz-linkcard-settings.php:99
318
  msgid "Special format"
319
  msgstr "定型書式"
320
 
321
+ #: ../lib/pz-linkcard-settings.php:102
322
  msgid "Tiny format"
323
  msgstr "かんたん書式設定"
324
 
325
+ #: ../lib/pz-linkcard-settings.php:105 ../lib/pz-linkcard-settings.php:347
326
+ #: ../lib/pz-linkcard-settings.php:368 ../lib/pz-linkcard-settings.php:466
327
+ #: ../lib/pz-linkcard-settings.php:619 ../lib/pz-linkcard-settings.php:631
328
+ #: ../lib/pz-linkcard-settings.php:646 ../lib/pz-linkcard-settings.php:683
329
+ #: ../lib/pz-linkcard-settings.php:694 ../lib/pz-linkcard-settings.php:709
330
  msgid "None"
331
  msgstr "なし"
332
 
333
+ #: ../lib/pz-linkcard-settings.php:106
334
  msgid "Pz-LkC Default"
335
  msgstr "Pz リンクカード 標準書式"
336
 
337
+ #: ../lib/pz-linkcard-settings.php:107
338
  msgid "Simple"
339
  msgstr "シンプル"
340
 
341
+ #: ../lib/pz-linkcard-settings.php:108
342
  msgid "Cellophane tape \"center\""
343
  msgstr "セロハンテープ(中央)"
344
 
345
+ #: ../lib/pz-linkcard-settings.php:109
346
  msgid "Cellophane tape \"Top corner\""
347
  msgstr "セロハンテープ(左上と右上)"
348
 
349
+ #: ../lib/pz-linkcard-settings.php:110
350
  msgid "Cellophane tape \"long\""
351
  msgstr "セロハンテープ(長め)"
352
 
353
+ #: ../lib/pz-linkcard-settings.php:111
354
  msgid "Slanting"
355
  msgstr "斜め"
356
 
357
+ #: ../lib/pz-linkcard-settings.php:112
358
  msgid "3D Rotate"
359
  msgstr "3D回転"
360
 
361
+ #: ../lib/pz-linkcard-settings.php:113
362
  msgid "Curling paper"
363
  msgstr "紙がめくれた効果(テーマとの相性があります)"
364
 
365
+ #: ../lib/pz-linkcard-settings.php:114
366
  msgid "Taping and curling"
367
  msgstr "テープと紙めくれ(テーマとの相性があります)"
368
 
369
+ #: ../lib/pz-linkcard-settings.php:115
370
  msgid "Stitch blue&red"
371
  msgstr "縫い目(青&赤)"
372
 
373
+ #: ../lib/pz-linkcard-settings.php:116
374
  msgid "Stitch green&yellow"
375
  msgstr "縫い目(緑&黄色)"
376
 
377
+ #: ../lib/pz-linkcard-settings.php:117
378
  msgid "Neutral"
379
  msgstr "ブルーグリーン(黒背景推奨)"
380
 
381
+ #: ../lib/pz-linkcard-settings.php:118
382
  msgid "Orange"
383
  msgstr "オレンジ(黒背景推奨)"
384
 
385
+ #: ../lib/pz-linkcard-settings.php:119
386
  msgid "Green"
387
  msgstr "グリーン(黒背景推奨)"
388
 
389
+ #: ../lib/pz-linkcard-settings.php:120
390
  msgid "Blue"
391
  msgstr "ブルー(黒背景推奨)"
392
 
393
+ #: ../lib/pz-linkcard-settings.php:121
394
  msgid "Pushpin"
395
  msgstr "押しピン"
396
 
397
+ #: ../lib/pz-linkcard-settings.php:123
398
  msgid "* It applies over other formatting settings."
399
  msgstr "※ほかの項目よりも優先して適用されます。"
400
 
401
+ #: ../lib/pz-linkcard-settings.php:129
402
  msgid "Shortcode"
403
  msgstr "ショートコード "
404
 
405
+ #: ../lib/pz-linkcard-settings.php:132
406
+ msgid "ShortCode 1"
407
  msgstr "ショートコード 1"
408
 
409
+ #: ../lib/pz-linkcard-settings.php:134 ../lib/pz-linkcard-settings.php:152
410
+ #: ../lib/pz-linkcard-settings.php:157 ../lib/pz-linkcard-settings.php:162
411
  msgid "Case-sensitive"
412
  msgstr "大文字と小文字を区別します"
413
 
414
+ #: ../lib/pz-linkcard-settings.php:137
415
  msgid "Use inlinetext"
416
  msgstr "ショートコードで囲んだ文字列"
417
 
418
+ #: ../lib/pz-linkcard-settings.php:141
419
  msgid "No use"
420
  msgstr "使用しない"
421
 
422
+ #: ../lib/pz-linkcard-settings.php:142
423
  msgid "Use to excerpt"
424
  msgstr "抜粋文として使用"
425
 
426
+ #: ../lib/pz-linkcard-settings.php:143
427
  msgid "Use to title"
428
  msgstr "タイトルとして使用"
429
 
430
+ #: ../lib/pz-linkcard-settings.php:146
431
  msgid "This setting applies only to the Shortcode1"
432
  msgstr "ショートコード1にのみ適用されます"
433
 
434
+ #: ../lib/pz-linkcard-settings.php:150
435
  msgid "ShortCode 2"
436
  msgstr "ショートコード 2"
437
 
438
+ #: ../lib/pz-linkcard-settings.php:155
439
  msgid "ShortCode 3"
440
  msgstr "ショートコード 3"
441
 
442
+ #: ../lib/pz-linkcard-settings.php:160
443
  msgid "ShortCode 4"
444
  msgstr "ショートコード 4"
445
 
446
+ #: ../lib/pz-linkcard-settings.php:165
447
  msgid "Parameters"
448
  msgstr "パラメータ"
449
 
450
+ #: ../lib/pz-linkcard-settings.php:168
451
  msgid ""
452
  "For any shortcode you can change the title and excerpt with `title` "
453
  "parameter and `content` parameter"
456
  "文を指定できます。"
457
 
458
  #: ../lib/pz-linkcard-settings.php:173
459
+ msgid "Convert text link"
460
+ msgstr "テキストリンク行の変換"
461
+
462
+ #: ../lib/pz-linkcard-settings.php:174
463
+ msgid "Convert lines with text link only to Linkcard."
464
+ msgstr "テキストリンクだけの行をリンクカードに変換する。"
465
+
466
+ #: ../lib/pz-linkcard-settings.php:174 ../lib/pz-linkcard-settings.php:178
467
+ msgid "(Trial)"
468
+ msgstr "(開発テスト中。不具合などはぜひお知らせください。)"
469
+
470
+ #: ../lib/pz-linkcard-settings.php:177
471
+ msgid "Convert URL"
472
+ msgstr "URL行の変換"
473
+
474
+ #: ../lib/pz-linkcard-settings.php:178
475
+ msgid "Convert lines with URL only to Linkcard."
476
+ msgstr "URLだけの行をリンクカードに変換する。"
477
+
478
+ #: ../lib/pz-linkcard-settings.php:184
479
  msgid "Style"
480
  msgstr "表示設定"
481
 
482
+ #: ../lib/pz-linkcard-settings.php:188
483
  msgid "Use blockquote tag"
484
  msgstr "BLOCKQUOTEをタグを使用する"
485
 
486
+ #: ../lib/pz-linkcard-settings.php:189
487
  msgid "without using DIV tag, and use BLOCKQUOTE tag"
488
  msgstr "&lt;BLOCKQUOTE&gt;で囲んで引用扱いにします"
489
 
490
+ #: ../lib/pz-linkcard-settings.php:193
491
  msgid "Link the whole"
492
  msgstr "カード全体をリンク"
493
 
494
+ #: ../lib/pz-linkcard-settings.php:197
495
  msgid "Enclose the entire card at anchor"
496
  msgstr ""
497
  "カード全体をAタグで囲って、どこをクリックしてもリンク先を開くようにします。"
498
 
499
+ #: ../lib/pz-linkcard-settings.php:203
500
  msgid "Position"
501
  msgstr "配置設定"
502
 
503
+ #: ../lib/pz-linkcard-settings.php:210 ../lib/pz-linkcard-settings.php:241
504
  msgid "Margin top"
505
  msgstr "上の余白"
506
 
507
+ #: ../lib/pz-linkcard-settings.php:212 ../lib/pz-linkcard-settings.php:227
508
+ #: ../lib/pz-linkcard-settings.php:243 ../lib/pz-linkcard-settings.php:257
509
+ #: ../lib/pz-linkcard-settings.php:269 ../lib/pz-linkcard-settings.php:289
510
+ #: ../lib/pz-linkcard-settings.php:305 ../lib/pz-linkcard-settings.php:322
511
  msgid "Not defined"
512
  msgstr "設定しない"
513
 
514
+ #: ../lib/pz-linkcard-settings.php:213 ../lib/pz-linkcard-settings.php:228
515
+ #: ../lib/pz-linkcard-settings.php:249 ../lib/pz-linkcard-settings.php:263
516
+ #: ../lib/pz-linkcard-settings.php:275 ../lib/pz-linkcard-settings.php:295
517
+ #: ../lib/pz-linkcard-settings.php:306 ../lib/pz-linkcard-settings.php:323
518
  msgid "0"
519
  msgstr ""
520
 
521
+ #: ../lib/pz-linkcard-settings.php:214 ../lib/pz-linkcard-settings.php:229
522
+ #: ../lib/pz-linkcard-settings.php:244 ../lib/pz-linkcard-settings.php:258
523
+ #: ../lib/pz-linkcard-settings.php:270 ../lib/pz-linkcard-settings.php:290
524
+ #: ../lib/pz-linkcard-settings.php:307 ../lib/pz-linkcard-settings.php:324
525
  msgid "4px"
526
  msgstr ""
527
 
528
+ #: ../lib/pz-linkcard-settings.php:215 ../lib/pz-linkcard-settings.php:230
529
+ #: ../lib/pz-linkcard-settings.php:245 ../lib/pz-linkcard-settings.php:259
530
+ #: ../lib/pz-linkcard-settings.php:271 ../lib/pz-linkcard-settings.php:291
531
+ #: ../lib/pz-linkcard-settings.php:308 ../lib/pz-linkcard-settings.php:325
532
  msgid "8px"
533
  msgstr ""
534
 
535
+ #: ../lib/pz-linkcard-settings.php:216 ../lib/pz-linkcard-settings.php:231
536
+ #: ../lib/pz-linkcard-settings.php:246 ../lib/pz-linkcard-settings.php:260
537
+ #: ../lib/pz-linkcard-settings.php:272 ../lib/pz-linkcard-settings.php:292
538
+ #: ../lib/pz-linkcard-settings.php:309 ../lib/pz-linkcard-settings.php:326
539
  msgid "16px"
540
  msgstr ""
541
 
542
+ #: ../lib/pz-linkcard-settings.php:217 ../lib/pz-linkcard-settings.php:232
543
+ #: ../lib/pz-linkcard-settings.php:247 ../lib/pz-linkcard-settings.php:261
544
+ #: ../lib/pz-linkcard-settings.php:273 ../lib/pz-linkcard-settings.php:293
545
+ #: ../lib/pz-linkcard-settings.php:310 ../lib/pz-linkcard-settings.php:327
546
  msgid "32px"
547
  msgstr ""
548
 
549
+ #: ../lib/pz-linkcard-settings.php:218 ../lib/pz-linkcard-settings.php:233
550
+ #: ../lib/pz-linkcard-settings.php:248 ../lib/pz-linkcard-settings.php:262
551
+ #: ../lib/pz-linkcard-settings.php:274 ../lib/pz-linkcard-settings.php:294
552
+ #: ../lib/pz-linkcard-settings.php:311 ../lib/pz-linkcard-settings.php:328
553
  msgid "64px"
554
  msgstr ""
555
 
556
+ #: ../lib/pz-linkcard-settings.php:225 ../lib/pz-linkcard-settings.php:255
557
  msgid "Margin left"
558
  msgstr "左の余白"
559
 
560
+ #: ../lib/pz-linkcard-settings.php:267 ../lib/pz-linkcard-settings.php:303
561
  msgid "Margin right"
562
  msgstr "右の余白"
563
 
564
+ #: ../lib/pz-linkcard-settings.php:281 ../lib/pz-linkcard-settings.php:373
565
+ #: ../lib/pz-linkcard-settings.php:450
566
  msgid "Width"
567
  msgstr "幅"
568
 
569
+ #: ../lib/pz-linkcard-settings.php:282 ../lib/pz-linkcard-settings.php:504
570
+ #: ../lib/pz-linkcard-settings.php:533 ../lib/pz-linkcard-settings.php:562
571
+ #: ../lib/pz-linkcard-settings.php:590
572
  msgid "Height"
573
  msgstr "高さ"
574
 
575
+ #: ../lib/pz-linkcard-settings.php:287 ../lib/pz-linkcard-settings.php:320
576
  msgid "Margin bottom"
577
  msgstr "下の余白"
578
 
579
+ #: ../lib/pz-linkcard-settings.php:317
580
  msgid "Centering"
581
  msgstr "中央に寄せる"
582
 
583
+ #: ../lib/pz-linkcard-settings.php:339
584
  msgid "Layout"
585
  msgstr "外観設定"
586
 
587
+ #: ../lib/pz-linkcard-settings.php:345 ../lib/pz-linkcard-settings.php:639
588
+ #: ../lib/pz-linkcard-settings.php:702 ../lib/pz-linkcard-settings.php:748
589
  msgid "Site information"
590
  msgstr "サイト情報"
591
 
592
+ #: ../lib/pz-linkcard-settings.php:348
593
  msgid "Top"
594
  msgstr "上側"
595
 
596
+ #: ../lib/pz-linkcard-settings.php:349
597
  msgid "Bottom"
598
  msgstr "下側"
599
 
600
+ #: ../lib/pz-linkcard-settings.php:351
601
  msgid "Use SiteName"
602
  msgstr "サイト名称を使用"
603
 
604
+ #: ../lib/pz-linkcard-settings.php:356
605
  msgid "Separator line"
606
  msgstr "区切り線"
607
 
608
+ #: ../lib/pz-linkcard-settings.php:363
609
  msgid "Display URL"
610
  msgstr "リンク先のURLを表示する"
611
 
612
+ #: ../lib/pz-linkcard-settings.php:366 ../lib/pz-linkcard-settings.php:616
613
+ #: ../lib/pz-linkcard-settings.php:680 ../lib/pz-linkcard-settings.php:740
614
  msgid "Thumbnail"
615
  msgstr "サムネイル"
616
 
617
+ #: ../lib/pz-linkcard-settings.php:369
618
  msgid "Right"
619
  msgstr "右側"
620
 
621
+ #: ../lib/pz-linkcard-settings.php:370
622
  msgid "Left"
623
  msgstr "左側"
624
 
625
+ #: ../lib/pz-linkcard-settings.php:375 ../lib/pz-linkcard-settings.php:397
626
  msgid "Shadow"
627
  msgstr "影を付ける"
628
 
629
+ #: ../lib/pz-linkcard-settings.php:380
630
  msgid "Hollow content area"
631
  msgstr "記事の情報に枠を付ける"
632
 
633
+ #: ../lib/pz-linkcard-settings.php:385
634
  msgid "Display excerpt"
635
  msgstr "抜粋文を表示する"
636
 
637
+ #: ../lib/pz-linkcard-settings.php:390
638
  msgid "Hollow"
639
  msgstr "内側に影を付ける"
640
 
641
+ #: ../lib/pz-linkcard-settings.php:403
642
  msgid "Radius"
643
  msgstr "角を丸める"
644
 
645
+ #: ../lib/pz-linkcard-settings.php:431
646
  msgid "Border"
647
  msgstr "枠線の太さ"
648
 
649
+ #: ../lib/pz-linkcard-settings.php:433 ../lib/pz-linkcard-settings.php:488
650
+ #: ../lib/pz-linkcard-settings.php:517 ../lib/pz-linkcard-settings.php:546
651
+ #: ../lib/pz-linkcard-settings.php:574
652
  msgid "Color"
653
  msgstr "色"
654
 
655
+ #: ../lib/pz-linkcard-settings.php:438
656
  msgid "none"
657
  msgstr "なし"
658
 
659
+ #: ../lib/pz-linkcard-settings.php:439
660
  msgid "solid"
661
  msgstr "solid/実線"
662
 
663
+ #: ../lib/pz-linkcard-settings.php:440
664
  msgid "dotted"
665
  msgstr "dotted/点線"
666
 
667
+ #: ../lib/pz-linkcard-settings.php:441
668
  msgid "dashed"
669
  msgstr "dashed/破線"
670
 
671
+ #: ../lib/pz-linkcard-settings.php:442
672
  msgid "double"
673
  msgstr "double/二重線"
674
 
675
+ #: ../lib/pz-linkcard-settings.php:443
676
  msgid "groove"
677
  msgstr "groove/立体(へこみ)"
678
 
679
+ #: ../lib/pz-linkcard-settings.php:444
680
  msgid "ridge"
681
  msgstr "ridge/立体(隆起)"
682
 
683
+ #: ../lib/pz-linkcard-settings.php:445
684
  msgid "inset"
685
  msgstr "inset/立体(押したボタンのような効果)"
686
 
687
+ #: ../lib/pz-linkcard-settings.php:446
688
  msgid "outset"
689
  msgstr "outset/立体(ボタンのような効果)"
690
 
691
+ #: ../lib/pz-linkcard-settings.php:458
692
  msgid "Reset img style"
693
  msgstr "CSSリセット(img)"
694
 
695
+ #: ../lib/pz-linkcard-settings.php:459
696
  msgid ""
697
  "When unnecessary frame is displayed on the image, you can improve it by case"
698
  msgstr "画像がずれて表示されるときに改善される可能性が有ります(推奨)"
699
 
700
+ #: ../lib/pz-linkcard-settings.php:463
701
  msgid "Display SNS Count"
702
  msgstr "シェア数を表示する"
703
 
704
+ #: ../lib/pz-linkcard-settings.php:467
705
  msgid "After Title"
706
  msgstr "タイトルの後ろ"
707
 
708
+ #: ../lib/pz-linkcard-settings.php:468
709
  msgid "After site-name"
710
  msgstr "サイト情報の後ろ"
711
 
712
+ #: ../lib/pz-linkcard-settings.php:470
713
  msgid "Twitter"
714
  msgstr "ツイッター"
715
 
716
+ #: ../lib/pz-linkcard-settings.php:471
717
  msgid "Facebook"
718
  msgstr "フェイスブック(シェア数)"
719
 
720
+ #: ../lib/pz-linkcard-settings.php:472
721
  msgid "Hatena"
722
  msgstr "はてなブックマーク"
723
 
724
+ #: ../lib/pz-linkcard-settings.php:473
725
  msgid ""
726
  "There is a possibility that the screen display is slow If you enable this "
727
  "setting."
728
  msgstr "有効にする取得APIによっては表示が遅くなる場合があります。"
729
 
730
+ #: ../lib/pz-linkcard-settings.php:479
731
  msgid "Letters"
732
  msgstr "文字設定"
733
 
734
+ #: ../lib/pz-linkcard-settings.php:483
735
  msgid "Site-info."
736
  msgstr "サイト情報"
737
 
738
+ #: ../lib/pz-linkcard-settings.php:491 ../lib/pz-linkcard-settings.php:520
739
+ #: ../lib/pz-linkcard-settings.php:549 ../lib/pz-linkcard-settings.php:577
740
  msgid "Outline"
741
  msgstr "縁取り"
742
 
743
+ #: ../lib/pz-linkcard-settings.php:501 ../lib/pz-linkcard-settings.php:530
744
+ #: ../lib/pz-linkcard-settings.php:559 ../lib/pz-linkcard-settings.php:587
745
  msgid "Size"
746
  msgstr "大きさ"
747
 
748
+ #: ../lib/pz-linkcard-settings.php:507 ../lib/pz-linkcard-settings.php:536
749
+ #: ../lib/pz-linkcard-settings.php:593
750
  msgid "Length"
751
  msgstr "桁数"
752
 
753
+ #: ../lib/pz-linkcard-settings.php:597
754
  msgid "Resize"
755
  msgstr "幅に合わせて縮小"
756
 
757
+ #: ../lib/pz-linkcard-settings.php:598
758
  msgid "Adjust thumbnail and letter size according to width"
759
  msgstr "画面幅に合わせて文字とサムネイルの大きさを調整します。"
760
 
761
+ #: ../lib/pz-linkcard-settings.php:604
762
  msgid "External link"
763
  msgstr "外部リンク"
764
 
765
+ #: ../lib/pz-linkcard-settings.php:608 ../lib/pz-linkcard-settings.php:672
766
+ #: ../lib/pz-linkcard-settings.php:732
767
  msgid "Background Color"
768
  msgstr "背景色"
769
 
770
+ #: ../lib/pz-linkcard-settings.php:612
771
  msgid "Background image"
772
  msgstr "背景画像"
773
 
774
+ #: ../lib/pz-linkcard-settings.php:620 ../lib/pz-linkcard-settings.php:632
775
+ #: ../lib/pz-linkcard-settings.php:684 ../lib/pz-linkcard-settings.php:695
776
  msgid "Direct"
777
  msgstr "直接取得する"
778
 
779
+ #: ../lib/pz-linkcard-settings.php:621 ../lib/pz-linkcard-settings.php:633
780
+ #: ../lib/pz-linkcard-settings.php:685 ../lib/pz-linkcard-settings.php:696
781
  msgid "Use WebAPI"
782
  msgstr "WebAPIを利用する"
783
 
784
+ #: ../lib/pz-linkcard-settings.php:622 ../lib/pz-linkcard-settings.php:634
785
+ #: ../lib/pz-linkcard-settings.php:686 ../lib/pz-linkcard-settings.php:697
786
  msgid "Use WebAPI ,If can not direct"
787
  msgstr "直接取得できない場合、WebAPIを利用する"
788
 
789
+ #: ../lib/pz-linkcard-settings.php:628 ../lib/pz-linkcard-settings.php:691
790
+ #: ../lib/pz-linkcard-settings.php:744
791
  msgid "Favicon"
792
  msgstr "サイトアイコン"
793
 
794
+ #: ../lib/pz-linkcard-settings.php:643 ../lib/pz-linkcard-settings.php:706
795
+ #: ../lib/pz-linkcard-settings.php:752
796
  msgid "Open new window/tab"
797
  msgstr "新しいウィンドウで開く"
798
 
799
+ #: ../lib/pz-linkcard-settings.php:647 ../lib/pz-linkcard-settings.php:710
800
  msgid "All client"
801
  msgstr "すべての端末"
802
 
803
+ #: ../lib/pz-linkcard-settings.php:648 ../lib/pz-linkcard-settings.php:711
804
  msgid "Other than mobile"
805
  msgstr "モバイル端末以外"
806
 
807
+ #: ../lib/pz-linkcard-settings.php:653 ../lib/pz-linkcard-settings.php:716
808
  msgid "Get contents"
809
  msgstr "記事取得方法"
810
 
811
+ #: ../lib/pz-linkcard-settings.php:655 ../lib/pz-linkcard-settings.php:722
812
  msgid "Initially acquired only from the content"
813
  msgstr "カード管理画面に記録されている内容から表示する"
814
 
815
+ #: ../lib/pz-linkcard-settings.php:659
816
  msgid "Set nofollow"
817
  msgstr "nofollowを付与する"
818
 
819
+ #: ../lib/pz-linkcard-settings.php:660
820
  msgid "In the case of an external site, it puts the \"nofollow\""
821
  msgstr "外部リンクのリンクを nofollow にする"
822
 
823
+ #: ../lib/pz-linkcard-settings.php:663
 
 
 
 
 
824
  msgid "Use HatenaBlogCard"
825
  msgstr "はてなブログカードを利用する"
826
 
827
+ #: ../lib/pz-linkcard-settings.php:664
828
  msgid "External links will use Always HatenaBlogCard."
829
  msgstr "外部リンクは「はてなブログカード」を利用する"
830
 
831
+ #: ../lib/pz-linkcard-settings.php:664 ../lib/pz-linkcard-settings.php:882
832
+ msgid "(Not recommended)"
833
+ msgstr "(非推奨)"
834
+
835
+ #: ../lib/pz-linkcard-settings.php:669
836
  msgid "Internal link"
837
  msgstr "内部リンク"
838
 
839
+ #: ../lib/pz-linkcard-settings.php:676 ../lib/pz-linkcard-settings.php:736
840
  msgid "Background Image"
841
  msgstr "背景画像"
842
 
843
+ #: ../lib/pz-linkcard-settings.php:720
844
  msgid "Always get the latest from the content"
845
  msgstr "常に最新の記事内容から抜粋文を作成する"
846
 
847
+ #: ../lib/pz-linkcard-settings.php:721
848
  msgid "Always get the latest from the excerpt"
849
  msgstr "抜粋文が設定されている投稿はそちらを優先する"
850
 
851
+ #: ../lib/pz-linkcard-settings.php:729
852
  msgid "Same-page link"
853
  msgstr "同ページへのリンク"
854
 
855
+ #: ../lib/pz-linkcard-settings.php:741 ../lib/pz-linkcard-settings.php:745
856
+ #: ../lib/pz-linkcard-settings.php:753
857
  msgid "It is common with setting Internal-link"
858
  msgstr "内部リンク用の設定が使用されます"
859
 
860
+ #: ../lib/pz-linkcard-settings.php:758
861
  msgid "Web-API"
862
  msgstr "画像取得APIの指定"
863
 
864
+ #: ../lib/pz-linkcard-settings.php:761
865
  msgid "Favicon API"
866
  msgstr "ファビコンの取得API"
867
 
868
+ #: ../lib/pz-linkcard-settings.php:764
869
  msgid ""
870
  "%DOMAIN% replace to domain name (ex. poporon.poponet.jp )<br>%DOMAIN_URL% "
871
  "replace to domain URL (ex. http://poporon.poponet.jp )"
874
  "%DOMAIN_URL% と記述するとドメインのURL(例.http://poporon.poponet.jp)に置き"
875
  "換わります。"
876
 
877
+ #: ../lib/pz-linkcard-settings.php:765 ../lib/pz-linkcard-settings.php:774
878
  msgid "ex1."
879
  msgstr "例1."
880
 
881
+ #: ../lib/pz-linkcard-settings.php:766 ../lib/pz-linkcard-settings.php:775
882
  msgid "ex2."
883
  msgstr "例2."
884
 
885
+ #: ../lib/pz-linkcard-settings.php:770
886
  msgid "Thumbnail API"
887
  msgstr "サムネイル画像の取得API"
888
 
889
+ #: ../lib/pz-linkcard-settings.php:773
890
  msgid "%URL% replace to URL"
891
  msgstr "%URL% と記述するとURLに置き換わります"
892
 
893
+ #: ../lib/pz-linkcard-settings.php:781
894
  msgid "Link check"
895
  msgstr "リンク先のチェック"
896
 
897
+ #: ../lib/pz-linkcard-settings.php:784
898
  msgid "SSL verification disabled"
899
  msgstr "SSL検証を無効"
900
 
901
+ #: ../lib/pz-linkcard-settings.php:785
902
  msgid "Try setting if the contents of the SSL site can not be acquired."
903
  msgstr ""
904
  "SSLサイトのタイトルや記事内容が取得できない場合に設定することで取得できる可能"
905
  "性があります。"
906
 
907
+ #: ../lib/pz-linkcard-settings.php:788
908
  msgid "Follow location"
909
  msgstr "リダイレクト処理"
910
 
911
+ #: ../lib/pz-linkcard-settings.php:789
912
  msgid "Track when the link destination is redirected."
913
  msgstr "リンク先がリダイレクトされている場合に追跡します。"
914
 
915
+ #: ../lib/pz-linkcard-settings.php:792
916
+ msgid "Set referer"
917
+ msgstr "リファラーの通知"
918
+
919
+ #: ../lib/pz-linkcard-settings.php:793
920
+ msgid "Notify the article URL to the link destination."
921
+ msgstr "リンク先に記事のURLを知らせます。"
922
+
923
+ #: ../lib/pz-linkcard-settings.php:796
924
+ msgid "Use User-Agent"
925
+ msgstr "ユーザーエージェントの通知"
926
+
927
+ #: ../lib/pz-linkcard-settings.php:798
928
+ msgid "Notify using Pz-LinkCard to the link destination."
929
+ msgstr "リンク先にPz-LinkCardを使用していることを知らせます。"
930
+
931
+ #: ../lib/pz-linkcard-settings.php:803
932
  msgid "Broken link checker"
933
  msgstr "リンク切れチェック"
934
 
935
+ #: ../lib/pz-linkcard-settings.php:804
936
  msgid "Alive confirmation of the link destination."
937
  msgstr "リンク先がアクセスできるか定期的に確認します。"
938
 
939
+ #: ../lib/pz-linkcard-settings.php:809
940
  msgid "Debug"
941
  msgstr "詳しい人用(Debug)"
942
 
943
+ #: ../lib/pz-linkcard-settings.php:812
944
  msgid "Trailing slash"
945
  msgstr "末尾のスラッシュ"
946
 
947
+ #: ../lib/pz-linkcard-settings.php:816
948
  msgid "As it"
949
  msgstr "そのまま"
950
 
951
+ #: ../lib/pz-linkcard-settings.php:817
952
  msgid "When only domain name, remove"
953
  msgstr "ドメイン名のみのときだけ削除"
954
 
955
+ #: ../lib/pz-linkcard-settings.php:818
956
  msgid "Always remove"
957
  msgstr "常に削除"
958
 
959
+ #: ../lib/pz-linkcard-settings.php:824
960
  msgid "specified CSS"
961
  msgstr "指定したCSSを使用"
962
 
963
+ #: ../lib/pz-linkcard-settings.php:825
964
  msgid "Use specified CSS file"
965
  msgstr "指定したCSSファイルを使用する"
966
 
967
+ #: ../lib/pz-linkcard-settings.php:828 ../lib/pz-linkcard-settings.php:832
968
  msgid "CSS file"
969
  msgstr "CSSファイル名"
970
 
971
+ #: ../lib/pz-linkcard-settings.php:829
 
972
  msgid "(ex. https://exsample.com/style.css )"
973
+ msgstr "例.https://exsample.com/style.css"
974
 
975
+ #: ../lib/pz-linkcard-settings.php:836
976
  msgid "CSS URL"
977
  msgstr "CSSファイルのURL"
978
 
979
+ #: ../lib/pz-linkcard-settings.php:841
980
  msgid "Class ID to be added(for PC)"
981
  msgstr "PCのときに追加するクラス名"
982
 
983
+ #: ../lib/pz-linkcard-settings.php:845
984
  msgid "Class ID to be added(for Mobile)"
985
  msgstr "モバイルのときに追加するクラス名"
986
 
987
+ #: ../lib/pz-linkcard-settings.php:850
988
  msgid "Google AMP"
989
  msgstr ""
990
 
991
+ #: ../lib/pz-linkcard-settings.php:851
992
  msgid "Corresponds to simple display for Google AMP."
993
  msgstr "アクセスされたURLの末尾が「/amp」の場合、簡易表示に切り替える。"
994
 
995
+ #: ../lib/pz-linkcard-settings.php:855
996
+ msgid "IDNA Convert"
997
+ msgstr "IDNAドメインの表示"
998
+
999
+ #: ../lib/pz-linkcard-settings.php:856
1000
+ msgid "Convert domain name from IDNA ASCII to Unicode."
1001
+ msgstr ""
1002
+ "IDNAのASCII方式でエンコードされたドメイン名をUnicodeに変換して表示します(日"
1003
+ "本語ドメインなど)"
1004
+
1005
+ #: ../lib/pz-linkcard-settings.php:860
1006
  msgid "Display link to author page"
1007
  msgstr "プラグイン名を表示する"
1008
 
1009
+ #: ../lib/pz-linkcard-settings.php:864
1010
  msgid "Plugin URL"
1011
  msgstr "プラグインページURL"
1012
 
1013
+ #: ../lib/pz-linkcard-settings.php:868
1014
  msgid "Plugin name"
1015
  msgstr "プラグイン名"
1016
 
1017
+ #: ../lib/pz-linkcard-settings.php:872
1018
  msgid "Plugin version"
1019
  msgstr "プラグインバージョン"
1020
 
1021
+ #: ../lib/pz-linkcard-settings.php:876
1022
  msgid "Saved datetime"
1023
  msgstr "保存した日時"
1024
 
1025
+ #: ../lib/pz-linkcard-settings.php:881
1026
  msgid "Display elapsed time"
1027
  msgstr "実行時間の表示"
1028
 
1029
+ #: ../lib/pz-linkcard-settings.php:882
1030
  msgid "Output the elapsed time to HTML comment."
1031
  msgstr "作成にかかった時間をコメントとしてHTMLへ出力する"
1032
 
1033
+ #: ../lib/pz-linkcard-settings.php:888
1034
  msgid "Initialize"
1035
  msgstr "初期化"
1036
 
1037
+ #: ../lib/pz-linkcard-settings.php:891
1038
  msgid "Return to the initial setting"
1039
  msgstr "設定を初期状態へ戻す"
1040
 
1041
+ #: ../lib/pz-linkcard-settings.php:897
1042
  msgid "etc"
1043
  msgstr "その他"
1044
 
1045
+ #: ../lib/pz-linkcard-settings.php:900
1046
  msgid "Author's site"
1047
  msgstr "作者のサイト"
1048
 
1049
+ #: ../lib/pz-linkcard-settings.php:901
1050
  msgid "Popozure."
1051
  msgstr "ぽぽづれ。"
1052
 
1053
+ #: ../lib/pz-linkcard-settings.php:901
1054
  msgid "Poporon's PC daily diary"
1055
  msgstr "ぽぽろんのパソコンつれづれ(ズレズレ?)日記"
1056
 
1057
+ #: ../lib/pz-linkcard-settings.php:904
1058
  msgid "Plugin's page"
1059
  msgstr "プラグインのページ"
1060
 
1061
+ #: ../lib/pz-linkcard-settings.php:908
1062
  msgid "Donation"
1063
  msgstr "寄付"
1064
 
1164
  #~ msgid "Color of title"
1165
  #~ msgstr "タイトルの文字色"
1166
 
 
 
 
1167
  #~ msgid "Color of excerpt"
1168
  #~ msgstr "抜粋文の文字色"
1169
 
lib/pz-linkcard-cacheman-edit.php CHANGED
@@ -1,90 +1,87 @@
1
- <?php if (!function_exists("get_option")) die; ?>
2
- <form action="" method="post">
3
- <?php wp_nonce_field('pz_cacheman'); ?>
4
- <input type="hidden" name="page" value="pz-linkcard-cache">
5
- <input type="hidden" name="paged" value="<?php echo $page_now; ?>">
6
- <input type="hidden" name="refine" value="<?php echo $refine; ?>">
7
- <input type="hidden" name="link_type" value="<?php echo $link_type; ?>">
8
- <input type="hidden" name="orderby" value="<?php echo $orderby; ?>">
9
- <input type="hidden" name="order" value="<?php echo $order; ?>">
10
- <div>
11
- <table name="cachelist" class="wp-list-table widefat fixed">
12
- <tr>
13
- <th style="width: 12em;"><?php _e('ID', $this->text_domain) ?></th>
14
- <td><input name="data[id]" type="text" id="inputtext" value="<?php echo $data['id']; ?>" size="5" readonly="readonly" /></td>
15
- </tr>
16
- <tr style="display: none;">
17
- <th><?php _e('URL key', $this->text_domain) ?></th>
18
- <td><input name="key_text" type="text" id="inputtext" value="<?php echo bin2hex($data['url_key']); ?>" size="71" readonly="readonly" /></td>
19
- </tr>
20
- <tr>
21
- <th><?php _e('URL', $this->text_domain) ?></th>
22
- <td><input name="data[url]" type="text" id="inputtext" value="<?php echo $data['url']; ?>" size="71" readonly="readonly" /></td>
23
- </tr>
24
- <tr>
25
- <th><?php _e('Link type', $this->text_domain) ?></th>
26
- <td><input name="data[link_type]" type="text" id="inputtext" value="<?php echo $data['link_type']; ?>" size="5" readonly="readonly" /></td>
27
- </tr>
28
- <tr>
29
- <th><?php _e('Site name', $this->text_domain) ?></th>
30
- <td><input name="data[site_name]" type="text" id="inputtext" value="<?php echo esc_attr($data['site_name']); ?>" size="71" /></td>
31
- </tr>
32
- <tr>
33
- <th><?php _e('Domain', $this->text_domain) ?></th>
34
- <td><input name="data[domain]" type="text" id="inputtext" value="<?php echo $data['domain']; ?>" size="71" readonly="readonly" ondblclick="this.readOnly=false;" /></td>
35
- </tr>
36
- <tr>
37
- <th><?php _e('Title', $this->text_domain) ?></th>
38
- <td><input name="data[title]" type="text" id="inputtext" value="<?php echo esc_attr($data['title']); ?>" size="71" /></td>
39
- </tr>
40
- <tr>
41
- <th><?php _e('Excerpt', $this->text_domain) ?></th>
42
- <td><input name="data[excerpt]" type="text" id="inputtext" value="<?php echo esc_attr($data['excerpt']); ?>" size="71" /></td>
43
- </tr>
44
- <tr>
45
- <th><?php _e('Charset', $this->text_domain) ?></th>
46
- <td><?php echo $data['charset'].'&nbsp;'.__('->', $this->text_domain); ?>&nbsp;<input name="data[charset]" type="text" id="inputtext" value="edit" size="8" readonly="readonly" /></td>
47
- </tr>
48
- <tr>
49
- <th><?php _e('Thumbnail URL', $this->text_domain) ?></th>
50
- <td><input name="data[thumbnail]" type="text" id="inputtext" value="<?php echo $data['thumbnail']; ?>" size="71" readonly="readonly" ondblclick="this.readOnly=false;" /></td>
51
- </tr>
52
- <tr>
53
- <th><?php _e('Favicon URL', $this->text_domain) ?></th>
54
- <td><input name="data[favicon]" type="text" id="inputtext" value="<?php echo $data['favicon']; ?>" size="71" readonly="readonly" ondblclick="this.readOnly=false;" /></td>
55
- </tr>
56
- <tr>
57
- <th><?php _e('Result code', $this->text_domain) ?></th>
58
- <td><input name="data[result_code]" type="text" id="inputtext" value="<?php echo $data['result_code']; ?>" size="5" readonly="readonly" ondblclick="this.readOnly=false;" /></td>
59
- </tr>
60
- <tr>
61
- <th><?php _e('Post ID', $this->text_domain) ?></th>
62
- <td><input name="data[post_id]" type="text" id="inputtext" value="<?php echo $data['post_id']; ?>" size="5" readonly="readonly" /></td>
63
- </tr>
64
- <tr>
65
- <th><?php _e('SNS', $this->text_domain) ?></th>
66
- <td>
67
- <?php _e('Tw', $this->text_domain) ?>:<input name="data[sns_twitter]" type="text" id="inputtext" value="<?php echo $data['sns_twitter']; ?>" size="5" readonly="readonly" ondblclick="this.readOnly=false;" />
68
- <?php _e('fb', $this->text_domain) ?>:<input name="data[sns_facebook]" type="text" id="inputtext" value="<?php echo $data['sns_facebook']; ?>" size="5" readonly="readonly" ondblclick="this.readOnly=false;" />
69
- <?php _e('B!', $this->text_domain) ?>:<input name="data[sns_hatena]" type="text" id="inputtext" value="<?php echo $data['sns_hatena']; ?>" size="5" readonly="readonly" ondblclick="this.readOnly=false;" />
70
- </td>
71
- </tr>
72
- <tr>
73
- <th><?php _e('Uptime', $this->text_domain) ?></th>
74
- <td><input name="data[uptime]" type="text" id="inputtext" value="<?php echo $data['uptime']; ?>" size="10" readonly="readonly" /><?php echo date('Y-m-d H:i:s', $data['uptime']); ?></td>
75
- </tr>
76
- <tr>
77
- <th><?php _e('Next update', $this->text_domain) ?></th>
78
- <td><input name="data[nexttime]" type="text" id="inputtext" value="<?php echo $data['nexttime']; ?>" size="10" readonly="readonly" /><?php echo date('Y-m-d H:i:s', $data['nexttime']); ?></td>
79
- </tr>
80
- <tr>
81
- <th><?php _e('Regist', $this->text_domain) ?></th>
82
- <td><input name="data[regist]" type="text" id="inputtext" value="<?php echo current_time('mysql'); ?>" size="17" readonly="readonly" /><?php echo $data['regist']; ?></td>
83
- </tr>
84
- <tr>
85
- <th></th>
86
- <td><input name="update" type="submit" class="button button-primary button-large" id="publish" value="<?php _e('Update', $this->text_domain) ?>" /> <input name="cancel" type="submit" class="button button-large" id="publish" value="<?php _e('Cancel', $this->text_domain) ?>" /></td>
87
- </tr>
88
- </table>
89
- </div>
90
- </form>
1
+ <?php if (!function_exists("get_option")) die; ?>
2
+ <!-- 編集用フォーム -->
3
+ <form action="" method="post">
4
+ <?php wp_nonce_field('pz_cacheman'); ?>
5
+ <input type="hidden" name="page" value="pz-linkcard-cache">
6
+ <input type="hidden" name="paged" value="<?php echo $page_now; ?>">
7
+ <input type="hidden" name="refine" value="<?php echo $refine; ?>">
8
+ <input type="hidden" name="link_type" value="<?php echo $link_type; ?>">
9
+ <input type="hidden" name="orderby" value="<?php echo $orderby; ?>">
10
+ <input type="hidden" name="order" value="<?php echo $order; ?>">
11
+ <div>
12
+ <table name="cachelist" class="wp-list-table widefat fixed">
13
+ <tr>
14
+ <th style="width: 12em;"><?php _e('ID', $this->text_domain) ?></th>
15
+ <td><input name="data[id]" type="text" id="inputtext" value="<?php echo $data['id']; ?>" size="5" readonly="readonly" /></td>
16
+ </tr>
17
+ <tr style="display: none;">
18
+ <th><?php _e('URL key', $this->text_domain) ?></th>
19
+ <td><input name="key_text" type="text" id="inputtext" value="<?php echo bin2hex($data['url_key']); ?>" size="71" readonly="readonly" /></td>
20
+ </tr>
21
+ <tr>
22
+ <th><?php _e('URL', $this->text_domain) ?></th>
23
+ <td><input name="data[url]" type="text" id="inputtext" value="<?php echo $data['url']; ?>" size="71" readonly="readonly" /></td>
24
+ </tr>
25
+ <tr>
26
+ <th><?php _e('Site name', $this->text_domain) ?></th>
27
+ <td><input name="data[site_name]" type="text" id="inputtext" value="<?php echo esc_attr($data['site_name']); ?>" size="71" /></td>
28
+ </tr>
29
+ <tr>
30
+ <th><?php _e('Domain', $this->text_domain) ?></th>
31
+ <td><input name="data[domain]" type="text" id="inputtext" value="<?php echo $data['domain']; ?>" size="71" readonly="readonly" /></td>
32
+ </tr>
33
+ <tr>
34
+ <th><?php _e('Title', $this->text_domain) ?></th>
35
+ <td><input name="data[title]" type="text" id="inputtext" value="<?php echo esc_attr($data['title']); ?>" size="71" /></td>
36
+ </tr>
37
+ <tr>
38
+ <th><?php _e('Excerpt', $this->text_domain) ?></th>
39
+ <td><input name="data[excerpt]" type="text" id="inputtext" value="<?php echo esc_attr($data['excerpt']); ?>" size="71" /></td>
40
+ </tr>
41
+ <tr>
42
+ <th><?php _e('Charset', $this->text_domain) ?></th>
43
+ <td><?php echo $data['charset'].'&nbsp;'.__('->', $this->text_domain); ?>&nbsp;<input name="data[charset]" type="text" id="inputtext" value="edit" size="8" readonly="readonly" /></td>
44
+ </tr>
45
+ <tr>
46
+ <th><?php _e('Thumbnail URL', $this->text_domain) ?></th>
47
+ <td><input name="data[thumbnail]" type="text" id="inputtext" value="<?php echo $data['thumbnail']; ?>" size="71" readonly="readonly" ondblclick="this.readOnly=false;" /></td>
48
+ </tr>
49
+ <tr>
50
+ <th><?php _e('Favicon URL', $this->text_domain) ?></th>
51
+ <td><input name="data[favicon]" type="text" id="inputtext" value="<?php echo $data['favicon']; ?>" size="71" readonly="readonly" ondblclick="this.readOnly=false;" /></td>
52
+ </tr>
53
+ <tr>
54
+ <th><?php _e('Result code', $this->text_domain) ?></th>
55
+ <td><input name="data[result_code]" type="text" id="inputtext" value="<?php echo $data['result_code']; ?>" size="5" readonly="readonly" ondblclick="this.readOnly=false;" /></td>
56
+ </tr>
57
+ <tr>
58
+ <th><?php _e('Post ID', $this->text_domain) ?></th>
59
+ <td><input name="data[post_id]" type="text" id="inputtext" value="<?php echo $data['post_id']; ?>" size="5" readonly="readonly" /></td>
60
+ </tr>
61
+ <tr>
62
+ <th><?php _e('SNS', $this->text_domain) ?></th>
63
+ <td>
64
+ <?php _e('Tw', $this->text_domain) ?>:<input name="data[sns_twitter]" type="text" id="inputtext" value="<?php echo $data['sns_twitter']; ?>" size="5" readonly="readonly" />
65
+ <?php _e('fb', $this->text_domain) ?>:<input name="data[sns_facebook]" type="text" id="inputtext" value="<?php echo $data['sns_facebook']; ?>" size="5" readonly="readonly" />
66
+ <?php _e('B!', $this->text_domain) ?>:<input name="data[sns_hatena]" type="text" id="inputtext" value="<?php echo $data['sns_hatena']; ?>" size="5" readonly="readonly" />
67
+ </td>
68
+ </tr>
69
+ <tr>
70
+ <th><?php _e('Uptime', $this->text_domain) ?></th>
71
+ <td><input name="data[uptime]" type="text" id="inputtext" value="<?php echo $data['uptime']; ?>" size="10" readonly="readonly" /><?php echo date('Y-m-d H:i:s', $data['uptime']); ?></td>
72
+ </tr>
73
+ <tr>
74
+ <th><?php _e('Next update', $this->text_domain) ?></th>
75
+ <td><input name="data[sns_nexttime]" type="text" id="inputtext" value="<?php echo $data['sns_nexttime']; ?>" size="10" readonly="readonly" /><?php echo date('Y-m-d H:i:s', $data['sns_nexttime']); ?></td>
76
+ </tr>
77
+ <tr>
78
+ <th><?php _e('Regist', $this->text_domain) ?></th>
79
+ <td><input name="data[regist]" type="text" id="inputtext" value="<?php echo $data['regist']; ?>" size="17" readonly="readonly" /></td>
80
+ </tr>
81
+ <tr>
82
+ <th></th>
83
+ <td><input name="update" type="submit" class="button button-primary button-large" id="publish" value="<?php _e('Update', $this->text_domain) ?>" /> <input name="cancel" type="submit" class="button button-large" id="publish" value="<?php _e('Cancel', $this->text_domain) ?>" /></td>
84
+ </tr>
85
+ </table>
86
+ </div>
87
+ </form>
 
 
 
lib/pz-linkcard-cacheman-list.php CHANGED
@@ -19,7 +19,7 @@ case 'sns_twitter':
19
  case 'sns_facebook':
20
  case 'sns_hatena':
21
  case 'regist':
22
- case 'nexttime':
23
  break;
24
  default:
25
  $orderby = 'regist';
@@ -47,11 +47,12 @@ case 'modify':
47
  default:
48
  $link_type = 'all';
49
  }
 
50
  if (isset($refine) && $refine) {
51
  if ($where) {
52
- $where .= " AND domain='$refine'";
53
  } else {
54
- $where .= " domain='$refine'";
55
  }
56
  }
57
 
@@ -63,10 +64,15 @@ if (isset($where) && $where) {
63
  if (isset($orderby) && $orderby) {
64
  $sql .= " ORDER BY $orderby $order";
65
  }
66
- if (strpos($sql, '--') || strpos($sql, 'UPDATE') || strpos($sql, 'UNION') ) { // 気持ち程度のインジェクション対策
67
- die;
 
 
 
 
 
 
68
  }
69
- $data_all = $wpdb->get_results($sql); // テーブルデータ
70
  $count_now = count($data_all);
71
 
72
  // ページ数
@@ -85,7 +91,11 @@ if (isset($page_limit)) {
85
  $page_limit = intval($page_limit);
86
  $sql .= ' LIMIT '.$page_top.' , '.$page_limit;
87
  }
88
- $data_all = $wpdb->get_results($sql); // テーブルデータ
 
 
 
 
89
 
90
  // ドメイン一覧作成
91
  $sql = "SELECT domain, site_name, count(*) as count FROM $this->db_name GROUP BY domain ASC";
@@ -207,12 +217,12 @@ foreach ($data_all as $data) {
207
  echo ' </th>';
208
 
209
  echo ' <td>'.$data_id;
210
- if ( $data->domain == $domain ) {
211
  $post_id = url_to_postid( $data->url ); // 記事IDを取得
212
  $thumbnail_id = get_post_thumbnail_id( $post_id ); // サムネイルIDを取得
213
  $attach = wp_get_attachment_image_src( $thumbnail_id, 'thumbnail', true ); // サムネイルを取得
214
- if (isset($attach) && count($attach) && isset($attach[0])) {
215
- echo '<div><img src="'.$attach[0].'" style="max-height: 48px; max-width: 48px;" alt=""></div>';
216
  }
217
  } else {
218
  if ($data->thumbnail) {
@@ -228,14 +238,28 @@ foreach ($data_all as $data) {
228
 
229
  echo ' <td style="display: none;">'.bin2hex($data->url_key).'</td>';
230
 
231
- $url = esc_url($data->url);
 
 
 
 
 
 
 
 
 
 
 
232
  $title = htmlspecialchars($data->title);
 
 
 
233
  echo ' <td colspan="2">';
234
  echo ' <div style="word-break: break-all; font-size: 60%;">';
235
- if ( $data->domain == $domain ) {
236
- echo '<a href="'.$url.'">'.$url.'</a>';
237
  } else {
238
- echo $url;
239
  }
240
  echo '</div><div>'.$title.'</div>';
241
  echo ' <div id="inline_'.$data_id.'"style="font-size: 90%;">';
@@ -246,10 +270,13 @@ foreach ($data_all as $data) {
246
  echo ' </td>';
247
 
248
  $excerpt= htmlspecialchars(mb_strimwidth(html_entity_decode($data->excerpt), 0, 100, '...'));
 
 
 
249
  echo ' <td>'.$excerpt.'</td>';
250
  echo ' <td style="display: none;">'.$data->charset.'</td>';
251
 
252
- echo ' <td><div title="'.$data->domain.'">'.$data->domain.'</div><div><span style="background-color: #888; color: #fff; font-size: 9px;">'.$data->site_name.'</span></div></td>';
253
  // echo ' <td><img src="'.$data->thumbnail.'" style="max-height: 100px; max-width: 100px;"></td>';
254
  // echo ' <td style="word-break: break-all;">'.$data->thumbnail.'</td>';
255
  // echo ' <td></td>';
19
  case 'sns_facebook':
20
  case 'sns_hatena':
21
  case 'regist':
22
+ case 'sns_nexttime':
23
  break;
24
  default:
25
  $orderby = 'regist';
47
  default:
48
  $link_type = 'all';
49
  }
50
+
51
  if (isset($refine) && $refine) {
52
  if ($where) {
53
+ $where .= " AND domain=%s";
54
  } else {
55
+ $where .= " domain=%s";
56
  }
57
  }
58
 
64
  if (isset($orderby) && $orderby) {
65
  $sql .= " ORDER BY $orderby $order";
66
  }
67
+ if ( strpos($sql, 'UPDATE') || strpos($sql, 'UNION') ) { // 気持ち程度のインジェクション対策
68
+ $sql = '';
69
+ }
70
+
71
+ if (isset($refine) && $refine) {
72
+ $data_all = $wpdb->get_results($wpdb->prepare($sql, $refine)); // ドメイン指定
73
+ } else {
74
+ $data_all = $wpdb->get_results($sql); // テーブルデータ
75
  }
 
76
  $count_now = count($data_all);
77
 
78
  // ページ数
91
  $page_limit = intval($page_limit);
92
  $sql .= ' LIMIT '.$page_top.' , '.$page_limit;
93
  }
94
+ if (isset($refine) && $refine) {
95
+ $data_all = $wpdb->get_results($wpdb->prepare($sql, $refine)); // ドメイン指定
96
+ } else {
97
+ $data_all = $wpdb->get_results($sql); // テーブルデータ
98
+ }
99
 
100
  // ドメイン一覧作成
101
  $sql = "SELECT domain, site_name, count(*) as count FROM $this->db_name GROUP BY domain ASC";
217
  echo ' </th>';
218
 
219
  echo ' <td>'.$data_id;
220
+ if ( $data->domain == $mydomain ) {
221
  $post_id = url_to_postid( $data->url ); // 記事IDを取得
222
  $thumbnail_id = get_post_thumbnail_id( $post_id ); // サムネイルIDを取得
223
  $attach = wp_get_attachment_image_src( $thumbnail_id, 'thumbnail', true ); // サムネイルを取得
224
+ if (isset($attach) && count($attach) > 3 && isset($attach[0])) {
225
+ echo '<div><img src="'.$attach[0].'" style="max-height: 48px; max-width: 48px;" alt=""></div>';
226
  }
227
  } else {
228
  if ($data->thumbnail) {
238
 
239
  echo ' <td style="display: none;">'.bin2hex($data->url_key).'</td>';
240
 
241
+ $url = esc_url($data->url);
242
+ $disp_url = $url;
243
+ $domain = $data->domain;
244
+ // 日本語ドメイン対応
245
+ if (isset($this->options['flg-idn']) ? true : false) {
246
+ if ( substr( $domain, 0, 4 ) == 'xn--') {
247
+ $domain = idn_to_utf8( $domain );
248
+ $url_m = parse_url( $url );
249
+ $url_m['host'] = idn_to_utf8( $url_m[host] );
250
+ $disp_url = $url_m['scheme'].'://'.$url_m['host'].$url_m['path'].$url_m['query'].$url_m['fragment'];
251
+ }
252
+ }
253
  $title = htmlspecialchars($data->title);
254
+ if ($data->mod_title) {
255
+ $title = '<b>'.$title.'</b>';
256
+ }
257
  echo ' <td colspan="2">';
258
  echo ' <div style="word-break: break-all; font-size: 60%;">';
259
+ if ( $data->domain == $mydomain ) {
260
+ echo '<a href="'.$url.'">'.$disp_url.'</a>';
261
  } else {
262
+ echo $disp_url;
263
  }
264
  echo '</div><div>'.$title.'</div>';
265
  echo ' <div id="inline_'.$data_id.'"style="font-size: 90%;">';
270
  echo ' </td>';
271
 
272
  $excerpt= htmlspecialchars(mb_strimwidth(html_entity_decode($data->excerpt), 0, 100, '...'));
273
+ if ($data->mod_excerpt) {
274
+ $excerpt = '<b>'.$excerpt.'</b>';
275
+ }
276
  echo ' <td>'.$excerpt.'</td>';
277
  echo ' <td style="display: none;">'.$data->charset.'</td>';
278
 
279
+ echo ' <td><div title="'.$domain.'">'.$domain.'</div><div><span style="background-color: #888; color: #fff; font-size: 9px;">'.$data->site_name.'</span></div></td>';
280
  // echo ' <td><img src="'.$data->thumbnail.'" style="max-height: 100px; max-width: 100px;"></td>';
281
  // echo ' <td style="word-break: break-all;">'.$data->thumbnail.'</td>';
282
  // echo ' <td></td>';
lib/pz-linkcard-cacheman.php CHANGED
@@ -40,10 +40,10 @@ $result_code = isset($_REQUEST['result_code'] ) ? $_REQUEST['result_code'] : nul
40
  $alive_result = isset($_REQUEST['alive_result'] ) ? $_REQUEST['alive_result'] : null;
41
  $paged = (isset($_REQUEST['paged'] ) ? $_REQUEST['paged'] : 1) - 0;
42
 
43
- $domain = null;
44
  if (preg_match('{https?://(.*)/}i', home_url().'/',$m)) {
45
- $domain_url = $m[0];
46
- $domain = $m[1];
47
  }
48
 
49
  global $wpdb;
@@ -65,6 +65,16 @@ if (isset($action)) {
65
  $data['title'] = stripslashes($data['title']);
66
  $data['excerpt'] = stripslashes($data['excerpt']);
67
  $data['site_name'] = stripslashes($data['site_name']);
 
 
 
 
 
 
 
 
 
 
68
  $data = $this->pz_SetCache($data);
69
  if (isset($data) && is_array($data) && isset($data['id'])) {
70
  echo '<div class="updated fade"><p><strong>'.__('Updated cache', $this->text_domain).'</strong></p></div>';
@@ -81,7 +91,7 @@ if (isset($action)) {
81
  foreach ($bulk_id as $data_id) {
82
  $data = $this->pz_GetCache(array('id' => $data_id));
83
  if (isset($data) && is_array($data)) {
84
- $data['nexttime'] = 0;
85
  $data = $this->pz_SetCache($data);
86
  $data = $this->pz_RenewSNSCount($data);
87
  }
@@ -92,16 +102,25 @@ if (isset($action)) {
92
  break;
93
  case 'alive':
94
  if (isset($bulk_id) && is_array($bulk_id)) {
95
- $now = current_time('timestamp');
96
  echo '<div class="updated fade"><p><strong>'.__('Alive check', $this->text_domain).'...';
97
  foreach ($bulk_id as $data_id) {
98
  $data = $this->pz_GetCache(array('id' => $data_id));
99
  if (isset($data) && is_array($data)) {
100
- $data = $this->pz_GetCache($data);
101
- $after = $this->pz_GetCURL($data);
102
- $data['alive_result'] = $after['result_code'];
103
- $data['alive_time'] = $now;
104
- $data = $this->pz_SetCache($data);
 
 
 
 
 
 
 
 
 
 
105
  }
106
  echo '..';
107
  }
@@ -132,7 +151,7 @@ if (isset($action)) {
132
  }
133
  break;
134
  case 'filemenu':
135
- // �G�N�X�|�[�g�t�@�C���̏���
136
  $item = 'id,url,site_name,domain,title,excerpt,thumbnail,favicon,sns_twitter,sns_facebook,sns_hatena,result_code,regist';
137
  $data_all = $wpdb->get_results("SELECT ".$item." FROM $this->db_name");
138
  $handle1 = fopen($this->plugin_dir_path.'pz-linkcard-export-utf8.csv', 'w');
40
  $alive_result = isset($_REQUEST['alive_result'] ) ? $_REQUEST['alive_result'] : null;
41
  $paged = (isset($_REQUEST['paged'] ) ? $_REQUEST['paged'] : 1) - 0;
42
 
43
+ $mydomain = null;
44
  if (preg_match('{https?://(.*)/}i', home_url().'/',$m)) {
45
+ $mydomain_url = $m[0];
46
+ $mydomain = $m[1];
47
  }
48
 
49
  global $wpdb;
65
  $data['title'] = stripslashes($data['title']);
66
  $data['excerpt'] = stripslashes($data['excerpt']);
67
  $data['site_name'] = stripslashes($data['site_name']);
68
+ if ($data['title'] == $data['regist_title']) {
69
+ $data['mod_title'] = 0;
70
+ } else {
71
+ $data['mod_title'] = 1;
72
+ }
73
+ if ($data['excerpt'] == $data['regist_excerpt']) {
74
+ $data['mod_excerpt'] = 0;
75
+ } else {
76
+ $data['mod_excerpt'] = 1;
77
+ }
78
  $data = $this->pz_SetCache($data);
79
  if (isset($data) && is_array($data) && isset($data['id'])) {
80
  echo '<div class="updated fade"><p><strong>'.__('Updated cache', $this->text_domain).'</strong></p></div>';
91
  foreach ($bulk_id as $data_id) {
92
  $data = $this->pz_GetCache(array('id' => $data_id));
93
  if (isset($data) && is_array($data)) {
94
+ $data['sns_nexttime'] = 0;
95
  $data = $this->pz_SetCache($data);
96
  $data = $this->pz_RenewSNSCount($data);
97
  }
102
  break;
103
  case 'alive':
104
  if (isset($bulk_id) && is_array($bulk_id)) {
 
105
  echo '<div class="updated fade"><p><strong>'.__('Alive check', $this->text_domain).'...';
106
  foreach ($bulk_id as $data_id) {
107
  $data = $this->pz_GetCache(array('id' => $data_id));
108
  if (isset($data) && is_array($data)) {
109
+ $data = $this->pz_GetCache($data);
110
+ $after = $this->pz_GetCURL($data);
111
+ $data['alive_result'] = $after['result_code'];
112
+ $data['alive_time'] = $this->now;
113
+ if ($data['title'] == $after['title']) {
114
+ $data['mod_title'] = 0;
115
+ } else {
116
+ $data['mod_title'] = 1;
117
+ }
118
+ if ($data['excerpt'] == $after['excerpt']) {
119
+ $data['mod_excerpt'] = 0;
120
+ } else {
121
+ $data['mod_excerpt'] = 1;
122
+ }
123
+ $data = $this->pz_SetCache($data);
124
  }
125
  echo '..';
126
  }
151
  }
152
  break;
153
  case 'filemenu':
154
+ // エクスポートファイルの準備
155
  $item = 'id,url,site_name,domain,title,excerpt,thumbnail,favicon,sns_twitter,sns_facebook,sns_hatena,result_code,regist';
156
  $data_all = $wpdb->get_results("SELECT ".$item." FROM $this->db_name");
157
  $handle1 = fopen($this->plugin_dir_path.'pz-linkcard-export-utf8.csv', 'w');
lib/pz-linkcard-init.php CHANGED
@@ -10,7 +10,8 @@
10
  $this->options['plugin-version'] = $this->defaults['plugin-version'];
11
  update_option('Pz_LinkCard_options', $this->options);
12
 
13
- $this->pz_SetStyle();
 
14
 
15
  global $wpdb;
16
  $wpdb->hide_errors();
@@ -36,10 +37,15 @@
36
  sns_facebook INT DEFAULT -1,
37
  sns_hatena INT DEFAULT -1,
38
  post_id INT UNSIGNED,
 
 
 
39
  regist_time BIGINT UNSIGNED NOT NULL DEFAULT 0,
40
  regist_result INT DEFAULT -1,
41
  update_time BIGINT UNSIGNED NOT NULL DEFAULT 0,
42
  update_result INT DEFAULT -1,
 
 
43
  alive_time BIGINT UNSIGNED NOT NULL DEFAULT 0,
44
  alive_result INT DEFAULT -1,
45
  uptime BIGINT UNSIGNED NOT NULL DEFAULT 0,
@@ -65,6 +71,7 @@
65
  $last_id = $data->id;
66
  }
67
  }
 
68
  // バグデータのメンテナンス(ハッシュURLの再生成)
69
  $result = (array) $wpdb->get_results("SELECT id,url,url_key FROM $this->db_name ORDER BY id");
70
  if (isset($result) && is_array($result) && count($result) > 0) {
@@ -75,22 +82,18 @@
75
  }
76
  }
77
  }
 
78
  // 過去バージョンからのコンバート(生存確認用のデータ作成)
79
- $result = (array) $wpdb->get_results("SELECT * FROM $this->db_name WHERE alive_result IS NULL OR alive_result=0 OR result_code=0 ORDER BY url");
80
- if (isset($result) && is_array($result) && count($result) > 0) {
81
- foreach($result as $data) {
82
- if ( $data->result_code == 0 ) {
83
- $data->result_code = 200;
84
- }
85
- if ( $data->alive_result == 0 OR is_null($data->alive_result) ) {
86
- $data->alive_result = $data->result_code;
87
- }
88
- $after = (array) $data;
89
- $after = $wpdb->update( $this->db_name, $after, array( 'id' => $data->id ) );
90
- }
91
- }
92
 
93
- // サムネイルのキャッシュ
94
  $wp_upload_dir = wp_upload_dir();
95
  $thumbnail_dir = $wp_upload_dir['basedir'].'/'.$this->slug.'/cache/';
96
  $thumbnail_url = $wp_upload_dir['baseurl'].'/'.$this->slug.'/cache/';
10
  $this->options['plugin-version'] = $this->defaults['plugin-version'];
11
  update_option('Pz_LinkCard_options', $this->options);
12
 
13
+ $this->pz_SetStyle(); // スタイルシート生成
14
+ $this->pz_SetJS(); // JavaScript生成
15
 
16
  global $wpdb;
17
  $wpdb->hide_errors();
37
  sns_facebook INT DEFAULT -1,
38
  sns_hatena INT DEFAULT -1,
39
  post_id INT UNSIGNED,
40
+ regist_title VARCHAR(200) DEFAULT '',
41
+ regist_excerpt VARCHAR(500) DEFAULT '',
42
+ regist_charset VARCHAR(32) DEFAULT '',
43
  regist_time BIGINT UNSIGNED NOT NULL DEFAULT 0,
44
  regist_result INT DEFAULT -1,
45
  update_time BIGINT UNSIGNED NOT NULL DEFAULT 0,
46
  update_result INT DEFAULT -1,
47
+ mod_title INT UNSIGNED NOT NULL DEFAULT 0,
48
+ mod_excerpt INT UNSIGNED NOT NULL DEFAULT 0,
49
  alive_time BIGINT UNSIGNED NOT NULL DEFAULT 0,
50
  alive_result INT DEFAULT -1,
51
  uptime BIGINT UNSIGNED NOT NULL DEFAULT 0,
71
  $last_id = $data->id;
72
  }
73
  }
74
+
75
  // バグデータのメンテナンス(ハッシュURLの再生成)
76
  $result = (array) $wpdb->get_results("SELECT id,url,url_key FROM $this->db_name ORDER BY id");
77
  if (isset($result) && is_array($result) && count($result) > 0) {
82
  }
83
  }
84
  }
85
+
86
  // 過去バージョンからのコンバート(生存確認用のデータ作成)
87
+ $result = $wpdb->get_results("UPDATE $this->db_name SET result_code = 200 WHERE result_code IS NULL OR result_code = 0");
88
+ $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");
89
+
90
+ // 過去バージョンからのコンバート(取得時テキストの作成)
91
+ $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 <> '')");
92
+
93
+ // 過去バージョンからのコンバート(次回SNS取得日時)
94
+ $result = $wpdb->get_results("UPDATE $this->db_name SET sns_time = uptime , sns_nexttime = nexttime WHERE sns_nexttime = 0");
 
 
 
 
 
95
 
96
+ // サムネイルのキャッシュディレクトリの用意
97
  $wp_upload_dir = wp_upload_dir();
98
  $thumbnail_dir = $wp_upload_dir['basedir'].'/'.$this->slug.'/cache/';
99
  $thumbnail_url = $wp_upload_dir['baseurl'].'/'.$this->slug.'/cache/';
lib/pz-linkcard-js.php ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php if (!function_exists("get_option")) die; ?>
2
+ <?php
3
+ $temp_file = $this->plugin_dir_path.'templete/mce-pz-lkc-templete.js';
4
+ $js_file = $this->plugin_dir_path.'js/mce-pz-lkc.js';
5
+
6
+ $file_text = file_get_contents($temp_file);
7
+ if ($file_text) {
8
+ $file_text = str_replace('/*TITLE*/', __('Insert Pz-LinkCard', $this->text_domain), $file_text );
9
+ $file_text = str_replace('/*PROMPT*/', __('Input URL', $this->text_domain), $file_text );
10
+ $file_text = str_replace('/*CODE*/', $this->options['code1'], $file_text );
11
+
12
+ $result = file_put_contents($js_file, $file_text );
13
+ global $pagenow;
14
+ if (isset($pagenow) && $pagenow == 'options-general.php') {
15
+ if ($result == true) {
16
+ echo '<div class="updated fade"><p><strong>'.__('Editor button JS saved.', $this->text_domain).'</strong></p></div>';
17
+ } else {
18
+ echo '<div class="error fade"><p><strong>'.__('Editor button JS failed.', $this->text_domain).'</strong></p></div>';
19
+ }
20
+ }
21
+ }
22
+ unset($temp_file);
23
+ unset($js_file);
24
+ unset($file_text);
25
+ unset($result);
lib/pz-linkcard-settings.php CHANGED
@@ -8,7 +8,7 @@
8
  check_admin_referer('pz_options');
9
  $this->options = $_POST['properties'];
10
 
11
- // �Z�b�g����Ă��Ȃ��I�v�V�������ڂ�null�ŃZ�b�g����
12
  foreach ($this->defaults as $key => $value) {
13
  if (!isset($this->options[$key])) {
14
  $this->options[$key] = null;
@@ -89,6 +89,7 @@
89
  echo '<div class="error fade"><p><strong>'.__('Not changed.', $this->text_domain).'</strong></p></div>';
90
  }
91
  $this->pz_SetStyle();
 
92
  }
93
  }
94
  ?>
@@ -128,7 +129,7 @@
128
  <h3><?php _e('Shortcode', $this->text_domain); ?></h3>
129
  <table class="form-table">
130
  <tr valign="top">
131
- <th scope="row"><?php _e('ShortCode1', $this->text_domain); ?></th>
132
  <td>[<input name="properties[code1]" type="text" id="inputtext" value="<?php echo esc_attr($this->options['code1']); ?>" 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>]
133
  <p><?php _e('Case-sensitive', $this->text_domain); ?></p></td>
134
  </tr>
@@ -167,6 +168,16 @@
167
  <?php _e('For any shortcode you can change the title and excerpt with `title` parameter and `content` parameter', $this->text_domain); ?>
168
  </ts>
169
  </tr>
 
 
 
 
 
 
 
 
 
 
170
  </table>
171
  <?php submit_button(); ?>
172
 
@@ -646,7 +657,7 @@
646
  </tr>
647
  <tr valign="top">
648
  <th scope="row"><?php _e('Set nofollow', $this->text_domain); ?></th>
649
- <td><label><input name="properties[nofollow]" type="checkbox" id="check" value="1" <?php checked(isset($this->options['nofollow']) ? $this->options['nofollow'] : null, 1); ?> /><?php _e('In the case of an external site, it puts the "nofollow"', $this->text_domain); _e('(Not recommended)', $this->text_domain); ?></label></td>
650
  </tr>
651
  <tr valign="top">
652
  <th scope="row"><?php _e('Use HatenaBlogCard', $this->text_domain); ?></th>
@@ -777,6 +788,17 @@
777
  <th scope="row"><?php _e('Follow location', $this->text_domain); ?></th>
778
  <td><label><input name="properties[flg-redir]" type="checkbox" id="check" value="1" <?php checked(isset($this->options['flg-redir']) ? $this->options['flg-redir'] : null, 1); ?> /><?php _e('Track when the link destination is redirected.', $this->text_domain); ?></label></td>
779
  </tr>
 
 
 
 
 
 
 
 
 
 
 
780
  <tr valign="top">
781
  <th scope="row"><?php _e('Broken link checker', $this->text_domain); ?></th>
782
  <td><label><input name="properties[flg-alive]" type="checkbox" id="check" value="1" <?php checked(isset($this->options['flg-alive']) ? $this->options['flg-alive'] : null, 1); ?> /><?php _e('Alive confirmation of the link destination.', $this->text_domain); ?></label></td>
@@ -829,6 +851,11 @@
829
  <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>
830
  </tr>
831
 
 
 
 
 
 
832
  <tr valign="top" style="display: none;">
833
  <th scope="row"><?php _e('Display link to author page', $this->text_domain); ?></th>
834
  <td><input name="properties[plugin-link]" type="checkbox" id="check" value="1" <?php checked(isset($this->options['plugin-link']) ? $this->options['plugin-link'] : null, 1); ?> disabled="disabled" /><a href="<?php echo $this->options['plugin-url']; ?>" target="_blank"><?php echo $this->options['plugin-name']; ?></a></td>
@@ -895,4 +922,3 @@
895
  }
896
  return $val;
897
  }
898
-
8
  check_admin_referer('pz_options');
9
  $this->options = $_POST['properties'];
10
 
11
+ // セットされていないオプション項目をnullでセットする
12
  foreach ($this->defaults as $key => $value) {
13
  if (!isset($this->options[$key])) {
14
  $this->options[$key] = null;
89
  echo '<div class="error fade"><p><strong>'.__('Not changed.', $this->text_domain).'</strong></p></div>';
90
  }
91
  $this->pz_SetStyle();
92
+ $this->pz_SetJS();
93
  }
94
  }
95
  ?>
129
  <h3><?php _e('Shortcode', $this->text_domain); ?></h3>
130
  <table class="form-table">
131
  <tr valign="top">
132
+ <th scope="row"><?php _e('ShortCode 1', $this->text_domain); ?></th>
133
  <td>[<input name="properties[code1]" type="text" id="inputtext" value="<?php echo esc_attr($this->options['code1']); ?>" 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>]
134
  <p><?php _e('Case-sensitive', $this->text_domain); ?></p></td>
135
  </tr>
168
  <?php _e('For any shortcode you can change the title and excerpt with `title` parameter and `content` parameter', $this->text_domain); ?>
169
  </ts>
170
  </tr>
171
+
172
+ <tr valign="top">
173
+ <th scope="row"><?php _e('Convert text link', $this->text_domain); ?></th>
174
+ <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); _e('(Trial)', $this->text_domain); ?></label></td>
175
+ </tr>
176
+ <tr valign="top">
177
+ <th scope="row"><?php _e('Convert URL', $this->text_domain); ?></th>
178
+ <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); _e('(Trial)', $this->text_domain); ?></label></td>
179
+ </tr>
180
+
181
  </table>
182
  <?php submit_button(); ?>
183
 
657
  </tr>
658
  <tr valign="top">
659
  <th scope="row"><?php _e('Set nofollow', $this->text_domain); ?></th>
660
+ <td><label><input name="properties[nofollow]" type="checkbox" id="check" value="1" <?php checked(isset($this->options['nofollow']) ? $this->options['nofollow'] : null, 1); ?> /><?php _e('In the case of an external site, it puts the "nofollow"', $this->text_domain); ?></label></td>
661
  </tr>
662
  <tr valign="top">
663
  <th scope="row"><?php _e('Use HatenaBlogCard', $this->text_domain); ?></th>
788
  <th scope="row"><?php _e('Follow location', $this->text_domain); ?></th>
789
  <td><label><input name="properties[flg-redir]" type="checkbox" id="check" value="1" <?php checked(isset($this->options['flg-redir']) ? $this->options['flg-redir'] : null, 1); ?> /><?php _e('Track when the link destination is redirected.', $this->text_domain); ?></label></td>
790
  </tr>
791
+ <tr valign="top">
792
+ <th scope="row"><?php _e('Set referer', $this->text_domain); ?></th>
793
+ <td><label><input name="properties[flg-referer]" type="checkbox" id="check" value="1" <?php checked(isset($this->options['flg-referer']) ? $this->options['flg-referer'] : null, 1); ?> /><?php _e('Notify the article URL to the link destination.', $this->text_domain); ?></label></td>
794
+ </tr>
795
+ <tr valign="top">
796
+ <th scope="row"><?php _e('Use User-Agent', $this->text_domain); ?></th>
797
+ <td>
798
+ <label><input name="properties[flg-agent]" type="checkbox" id="check" value="1" <?php checked(isset($this->options['flg-agent']) ? $this->options['flg-agent'] : null, 1); ?> /></label><?php _e('Notify using Pz-LinkCard to the link destination.', $this->text_domain); ?></label>
799
+ <p style="margin-left: 20px;"><input name="properties[user-agent]" type="text" id="inputtext" value="<?php echo esc_attr('Pz-LinkCard-Crawler/'.$this->options['plugin-version']); ?>" size="77" readonly /></p>
800
+ </td>
801
+ </tr>
802
  <tr valign="top">
803
  <th scope="row"><?php _e('Broken link checker', $this->text_domain); ?></th>
804
  <td><label><input name="properties[flg-alive]" type="checkbox" id="check" value="1" <?php checked(isset($this->options['flg-alive']) ? $this->options['flg-alive'] : null, 1); ?> /><?php _e('Alive confirmation of the link destination.', $this->text_domain); ?></label></td>
851
  <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>
852
  </tr>
853
 
854
+ <tr valign="top">
855
+ <th scope="row"><?php _e('IDNA Convert', $this->text_domain); ?></th>
856
+ <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>
857
+ </tr>
858
+
859
  <tr valign="top" style="display: none;">
860
  <th scope="row"><?php _e('Display link to author page', $this->text_domain); ?></th>
861
  <td><input name="properties[plugin-link]" type="checkbox" id="check" value="1" <?php checked(isset($this->options['plugin-link']) ? $this->options['plugin-link'] : null, 1); ?> disabled="disabled" /><a href="<?php echo $this->options['plugin-url']; ?>" target="_blank"><?php echo $this->options['plugin-name']; ?></a></td>
922
  }
923
  return $val;
924
  }
 
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: 1.8.2
7
  Author: poporon
8
  Author URI: http://poporon.poponet.jp
9
  License: GPLv2 or later
@@ -17,6 +17,9 @@ class Pz_LinkCard {
17
 
18
  public $charset;
19
 
 
 
 
20
  public $plugin_basename;
21
  public $plugin_dir_path;
22
  public $plugin_dir_url;
@@ -30,6 +33,8 @@ class Pz_LinkCard {
30
  'code2' => null,
31
  'code3' => null,
32
  'code4' => null,
 
 
33
  'trail-slash' => '1',
34
  'border-width' => '1px',
35
  'border-style' => 'solid',
@@ -102,10 +107,14 @@ class Pz_LinkCard {
102
  'thumbnail-shadow' => '1',
103
  'thumbnail-resize' => '1',
104
  'cache-time' => 31536000,
 
 
 
105
  'flg-redir' => '1',
106
  'flg-alive' => '1',
107
  'flg-ssl' => '1',
108
  'flg-amp' => '1',
 
109
  'style-reset-img' => '1',
110
  'style' => null,
111
  'css-file' => null,
@@ -125,7 +134,7 @@ class Pz_LinkCard {
125
  'thumbnail-url' => null,
126
  'plugin-link' => null,
127
  'plugin-name' => 'Pz-LinkCard',
128
- 'plugin-version' => '1.8.2',
129
  'plugin-url' => 'http://poporon.poponet.jp/pz-linkcard',
130
  'pz-hbc-options' => null,
131
  'debug-time' => null
@@ -137,6 +146,9 @@ class Pz_LinkCard {
137
 
138
  $this->charset = get_bloginfo('charset');
139
 
 
 
 
140
  $this->plugin_basename = plugin_basename(__FILE__);
141
  $this->plugin_dir_path = plugin_dir_path(__FILE__);
142
  $this->plugin_dir_url = plugin_dir_url (__FILE__);
@@ -151,7 +163,7 @@ class Pz_LinkCard {
151
  // DB
152
  global $wpdb;
153
  $this->db_name = $wpdb->prefix.'pz_linkcard';
154
-
155
  // バージョンが違っていたら、DBとオプションを更新する
156
  if ($this->options['plugin-version'] <> $this->defaults['plugin-version']) {
157
  $this->activate();
@@ -163,6 +175,10 @@ class Pz_LinkCard {
163
  }
164
 
165
  // ショートコードの設定
 
 
 
 
166
  if ($this->options['code1'] <> '') {
167
  add_shortcode($this->options['code1'], array($this, 'shortcode'));
168
  }
@@ -176,14 +192,19 @@ class Pz_LinkCard {
176
  add_shortcode($this->options['code4'], array($this, 'shortcode'));
177
  }
178
 
 
 
 
179
  // 管理画面のとき
180
  if (is_admin()) {
181
- load_plugin_textdomain ($this->text_domain, false, $this->slug.'/languages'); // 管理画面のみ日本語化
182
- register_activation_hook (__FILE__, array($this, 'activate')); // 有効化したときの処理
183
- register_deactivation_hook (__FILE__, array($this, 'deactivate')); // 無効化したときの処理
184
- add_action ('admin_menu', array($this, 'add_menu')); // 設定メニュー
185
- add_action ('admin_enqueue_scripts', array($this, 'enqueue_admin')); // 設定メニュー用スクリプト
186
- add_filter ('plugin_action_links_'.$this->plugin_basename, array($this, 'action_links')); // プラグイン画面
 
 
187
 
188
  if (!isset($this->options['style']) || $this->options['style'] == '') {
189
  if (!isset($this->options['css-path']) || !file_exists($this->options['css-path'])) {
@@ -207,11 +228,22 @@ class Pz_LinkCard {
207
  // wp_schedule_single_event( time() + 10 , 'pz_linkcard_check');
208
  }
209
  if (!wp_next_scheduled('pz_linkcard_alive')) {
210
- wp_schedule_event ( time() + 30 , 'hourly', 'pz_linkcard_alive');
211
  // wp_schedule_single_event( time() + 30 , 'pz_linkcard_alive');
212
  }
213
  }
214
 
 
 
 
 
 
 
 
 
 
 
 
215
  // ショートコード処理
216
  public function shortcode($atts, $content = null, $shortcode) {
217
  // 実行時間
@@ -220,17 +252,19 @@ class Pz_LinkCard {
220
  }
221
 
222
  // URL
223
- $url = isset( $atts['url'] ) ? $this->pz_TrimURL( $atts['url'] ) : null;
224
- // 密かに記述ミス対応(URIでもUR1でもURLとして判定する)
225
- if ( is_null( $url ) ) {
226
- $url = isset( $atts['uri'] ) ? $this->pz_TrimURL( $atts['uri'] ) : null;
227
- if ( is_null( $url ) ) {
228
- $url = isset( $atts['ur1'] ) ? $this->pz_TrimURL( $atts['ur1'] ) : null;
 
 
229
  }
230
- $atts['url'] = $url;
231
  }
232
  if ( is_null( $url ) ) {
233
- return $slug.': '.__('Incorrect URL specification.', $text_domain);
234
  }
235
 
236
  // パラメータ
@@ -493,9 +527,9 @@ class Pz_LinkCard {
493
  }
494
  }
495
  }
496
-
497
  // データベースへの保存が終わったので、表示用の編集
498
-
499
  // タイトル
500
  if (!isset($title) || $title == '') {
501
  $title = esc_html($url); // タイトル取得できていなかったらURLをセットする
@@ -553,6 +587,12 @@ class Pz_LinkCard {
553
  }
554
  } else {
555
  $site_name = $domain;
 
 
 
 
 
 
556
  }
557
 
558
  // リンク先URL
@@ -625,10 +665,19 @@ class Pz_LinkCard {
625
  // サイト情報
626
  $domain_info = '<div class="lkc-info">'.$a_op.'<span class="lkc-domain"'.$site_title.'>'.$favicon.'&nbsp;'.$site_name.$info.'</span>'.$a_cl.'&nbsp;'.$sns_info.$this->plugin_link.'</div>';
627
 
 
 
 
 
 
 
 
 
 
628
  // 記事内容
629
  $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>';
630
 
631
- // Google AMP対応
632
  // if ( (isset($this->options['flg-amp']) ? true : false) && function_exists('is_amp_endpoint') && is_amp_endpoint() ) {
633
  if ( (isset($this->options['flg-amp']) ? true : false) && preg_match('{/amp/?$}i', $_SERVER["REQUEST_URI"]) ) {
634
  $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>';
@@ -704,8 +753,7 @@ class Pz_LinkCard {
704
  $opt = array( 'timeout' => 30 );
705
 
706
  // 保存期間満了でソーシャルカウントをリセット
707
- $now = current_time('timestamp');
708
- if ($now > $data['nexttime'] && $data['result_code'] <= 200 ) {
709
  $sns_renew = true;
710
  }
711
 
@@ -754,10 +802,11 @@ class Pz_LinkCard {
754
  }
755
  }
756
 
757
- if ($update_cnt || ($now - strtotime($data['regist']) < WEEK_IN_SECONDS)) {
758
- $nexttime = $now + DAY_IN_SECONDS + rand(0, DAY_IN_SECONDS); // 1day + 0-24h
 
759
  } else {
760
- $nexttime = $now + WEEK_IN_SECONDS + rand(0, DAY_IN_SECONDS); // 7days + 0-24h
761
  }
762
  // MINUTE_IN_SECONDS = 60
763
  // HOUR_IN_SECONDS = 60 * MINUTE_IN_SECONDS = 3600
@@ -772,8 +821,9 @@ class Pz_LinkCard {
772
  'sns_twitter' => $data['sns_twitter'],
773
  'sns_facebook' => $data['sns_facebook'],
774
  'sns_hatena' => $data['sns_hatena'],
775
- 'uptime' => $now,
776
- 'nexttime' => $nexttime
 
777
  ),
778
  array(
779
  'id' => $data['id']
@@ -797,6 +847,9 @@ class Pz_LinkCard {
797
  } else {
798
  return null;
799
  }
 
 
 
800
  if (is_wp_error($data)) {
801
  return null;
802
  }
@@ -817,7 +870,7 @@ class Pz_LinkCard {
817
  if (!isset($data['url_key']) || is_null($data['url_key']) || $data['url_key'] == '' ) {
818
  $data['url_key'] = hash( 'sha256', esc_url( $url ), true);
819
  }
820
- $data['uptime'] = current_time('timestamp'); // 最終更新日時
821
 
822
  // 更新してみる
823
  if ( isset($data['id']) ) {
@@ -838,7 +891,7 @@ class Pz_LinkCard {
838
  );
839
  }
840
  if (!$result) {
841
- $data['regist'] = current_time('mysql'); // 登録日
842
  // 更新できなかったら挿入
843
  unset($data['id']);
844
  $result = $wpdb->insert(
@@ -919,7 +972,7 @@ class Pz_LinkCard {
919
  echo '<!-- Pz-LkC [TID='.$thumbnail_id.'] /-->'.PHP_EOL;
920
  }
921
  $attach = wp_get_attachment_image_src( $thumbnail_id, 'thumbnail', true );
922
- if (isset($attach) && count($attach) && isset($attach[0])) {
923
  $thumbnail = $attach[0];
924
  }
925
  } else {
@@ -964,9 +1017,20 @@ class Pz_LinkCard {
964
  }
965
 
966
  // データセット
 
 
 
 
 
 
 
 
 
 
967
  $data['title'] = $title;
968
  $data['excerpt'] = $excerpt;
969
  $data['thumbnail'] = $thumbnail;
 
970
  $data['result_code'] = $result_code;
971
  $data['alive_result'] = $result_code;
972
  $data['domain'] = $domain;
@@ -994,24 +1058,17 @@ class Pz_LinkCard {
994
  $charset = null;
995
  $result_code = null;
996
 
997
- $data['id'] = (isset( $data['id'] ) ? $data['id'] : null );
998
- $data['url_key'] = (isset( $data['url_key'] ) ? $data['url_key'] : null );
999
- $data['domain'] = (isset( $data['domain'] ) ? $data['domain'] : null );
1000
- $data['site_name'] = (isset( $data['site_name'] ) ? $data['site_name'] : null );
1001
- $data['title'] = (isset( $data['title'] ) ? $data['title'] : null );
1002
- $data['excerpt'] = (isset( $data['excerpt'] ) ? $data['excerpt'] : null );
1003
- $data['charset'] = (isset( $data['charset'] ) ? $data['charset'] : null );
1004
- $data['thumbnail'] = (isset( $data['thumbnail'] ) ? $data['thumbnail'] : null );
1005
- $data['favicon'] = (isset( $data['favicon'] ) ? $data['favicon'] : null );
1006
- $data['result_code'] = (isset( $data['result_code'] ) ? $data['result_code'] : null );
1007
  $data['post_id'] = (isset( $data['post_id'] ) ? $data['post_id'] : get_the_ID() );
1008
  $data['sns_twitter'] = (isset( $data['sns_twitter'] ) ? $data['sns_twitter'] : -1 );
1009
  $data['sns_facebook'] = (isset( $data['sns_facebook'] ) ? $data['sns_facebook'] : -1 );
1010
  $data['sns_hatena'] = (isset( $data['sns_hatena'] ) ? $data['sns_hatena'] : -1 );
 
1011
  $data['uptime'] = (isset( $data['uptime'] ) ? $data['uptime'] : 0 );
1012
- $data['nexttime'] = (isset( $data['nexttime'] ) ? $data['nexttime'] : 0 );
1013
  $data['alive_time'] = (isset( $data['alive_time'] ) ? $data['alive_time'] : 0 );
1014
  $data['alive_result'] = (isset( $data['alive_result'] ) ? $data['alive_result'] : 0 );
 
 
 
1015
  if ( isset( $data['domain'] ) ) {
1016
  $domain_url = $data['domain'];
1017
  $domain = $data['domain'];
@@ -1030,7 +1087,15 @@ class Pz_LinkCard {
1030
  $ch = curl_init($url);
1031
  curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true ); // データで取得
1032
  curl_setopt( $ch, CURLOPT_TIMEOUT, 8 ); // タイムアウト
1033
- curl_setopt( $ch, CURLOPT_USERAGENT, esc_html( $_SERVER['HTTP_USER_AGENT'] ) ); // ユーザーエージェント
 
 
 
 
 
 
 
 
1034
  if (isset($this->options['flg-redir']) ? true : false) {
1035
  curl_setopt( $ch, CURLOPT_FOLLOWLOCATION, true ); // リダイレクトを処理する
1036
  curl_setopt( $ch, CURLOPT_MAXREDIRS, 8 ); // リダイレクトを処理する階層
@@ -1065,14 +1130,16 @@ class Pz_LinkCard {
1065
  }
1066
  }
1067
 
1068
- // 文字コード判定(タグはいい加減なサイトが多いので変換して判定する)
1069
  $charset = null;
1070
  if ($html <> '') {
1071
  if (preg_match('/charset\s*=\s*([^>\/\s]*).*<\/head/si', $html, $m)) {
1072
  $m[1] = trim(trim($m[1]), '\'\"');
1073
  $charset = $m[1];
1074
  } else {
 
1075
  foreach(array('UTF-8','SJIS','EUC-JP','eucJP-win','ASCII','JIS','SJIS-win') as $c_charset) {
 
1076
  if (mb_convert_encoding($html, $this->charset, $c_charset) == $html) {
1077
  $charset = $c_charset;
1078
  break;
@@ -1156,15 +1223,22 @@ class Pz_LinkCard {
1156
  $data['excerpt'] = $excerpt;
1157
  $data['charset'] = $charset;
1158
  if (isset($atts['force']) && $atts['force'] == true) {
1159
- $data['regist'] = current_time('mysql'); // 登録日
1160
  }
1161
  }
1162
- $data['url'] = $url;
1163
- $data['thumbnail'] = ( isset($thumbnail_url) ? $thumbnail_url : null );
1164
- $data['result_code'] = $result_code;
1165
- $data['alive_result'] = $result_code;
1166
- $data['domain'] = $domain;
1167
- $data['favicon'] = ( isset($favicon_url) ? $favicon_url : null );
 
 
 
 
 
 
 
1168
 
1169
  return $data;
1170
  }
@@ -1243,6 +1317,23 @@ class Pz_LinkCard {
1243
  wp_enqueue_script ('media-uploader', plugins_url("media-uploader.js", __FILE__), array('jquery'), false, false);
1244
  }
1245
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1246
  // 通常時のスタイルシート
1247
  public function enqueue($hook) {
1248
  if (!isset($this->options['style'])) {
@@ -1267,8 +1358,7 @@ class Pz_LinkCard {
1267
  }
1268
 
1269
  global $wpdb;
1270
- $now = current_time('timestamp');
1271
- $result = (array) $wpdb->get_results($wpdb->prepare("SELECT url,nexttime FROM $this->db_name WHERE nexttime<%d ORDER BY nexttime ASC", $now));
1272
  $i = 0;
1273
  if (isset($result) && is_array($result) && count($result) > 0) {
1274
  foreach($result as $data) {
@@ -1291,34 +1381,32 @@ class Pz_LinkCard {
1291
  }
1292
 
1293
  global $wpdb;
1294
- $now = current_time('timestamp');
1295
- $result = (array) $wpdb->get_results($wpdb->prepare("SELECT url,alive_time FROM $this->db_name WHERE alive_time<%d ORDER BY alive_time ASC", $now - WEEK_IN_SECONDS ));
1296
  $i = 0;
1297
  if (isset($result) && is_array($result) && count($result) > 0) {
1298
  foreach($result as $data) {
1299
  $i++;
1300
- if ($i > 10) {
1301
- wp_schedule_single_event(time() + 30, 'pz_linkcard_alive');
1302
  break;
1303
  }
1304
  if (isset($data) && isset($data->url)) {
1305
  $before = $this->pz_GetCache( array( 'url' => $data->url ) );
1306
  $after = $this->pz_GetCURL( $before );
1307
- if ($before['alive_result'] <> $after['result_code'] ) { // 結果コードが違っている
1308
- $before['alive_result'] = $after['result_code'];
 
 
 
 
 
1309
  } else {
1310
- if ($before['title'] <> $after['title'] ) {
1311
- if ($before['excerpt'] <> $after['excerpt'] ) {
1312
- $before['alive_result'] = -3; // タイトルと抜粋文変更あり
1313
- }
1314
- $before['alive_result'] = -1; // タイトル変更あり
1315
- } else {
1316
- if ($before['excerpt'] <> $after['excerpt'] ) {
1317
- $before['alive_result'] = -2; // 抜粋文変更あり
1318
- }
1319
- }
1320
  }
1321
- $before['alive_time'] = $now;
 
 
 
1322
  $before = $this->pz_SetCache( $before );
1323
  }
1324
  }
@@ -1330,6 +1418,11 @@ class Pz_LinkCard {
1330
  require_once ('lib/pz-linkcard-style.php');
1331
  }
1332
 
 
 
 
 
 
1333
  // Pz カード管理 キャッシュ・マネージャ
1334
  public function page_cacheman() {
1335
  require_once ('lib/pz-linkcard-cacheman.php');
3
  Plugin Name: Pz-LinkCard
4
  Plugin URI: http://poporon.poponet.jp/pz-linkcard
5
  Description: リンクをカード形式で表示します。
6
+ Version: 2.0.0
7
  Author: poporon
8
  Author URI: http://poporon.poponet.jp
9
  License: GPLv2 or later
17
 
18
  public $charset;
19
 
20
+ public $now; // 現在日時(ローカル時間)
21
+ public $now_mysql; // 現在日時(SQL形式)
22
+
23
  public $plugin_basename;
24
  public $plugin_dir_path;
25
  public $plugin_dir_url;
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',
107
  'thumbnail-shadow' => '1',
108
  'thumbnail-resize' => '1',
109
  'cache-time' => 31536000,
110
+ 'user-agent' => '',
111
+ 'flg-referer' => '1',
112
+ 'flg-agent' => '1',
113
  'flg-redir' => '1',
114
  'flg-alive' => '1',
115
  'flg-ssl' => '1',
116
  'flg-amp' => '1',
117
+ 'flg-idn' => '1',
118
  'style-reset-img' => '1',
119
  'style' => null,
120
  'css-file' => null,
134
  'thumbnail-url' => null,
135
  'plugin-link' => null,
136
  'plugin-name' => 'Pz-LinkCard',
137
+ 'plugin-version' => '2.0.0',
138
  'plugin-url' => 'http://poporon.poponet.jp/pz-linkcard',
139
  'pz-hbc-options' => null,
140
  'debug-time' => null
146
 
147
  $this->charset = get_bloginfo('charset');
148
 
149
+ $this->now = current_time('timestamp', false);
150
+ $this->now_mysql = current_time('mysql');
151
+
152
  $this->plugin_basename = plugin_basename(__FILE__);
153
  $this->plugin_dir_path = plugin_dir_path(__FILE__);
154
  $this->plugin_dir_url = plugin_dir_url (__FILE__);
163
  // DB
164
  global $wpdb;
165
  $this->db_name = $wpdb->prefix.'pz_linkcard';
166
+
167
  // バージョンが違っていたら、DBとオプションを更新する
168
  if ($this->options['plugin-version'] <> $this->defaults['plugin-version']) {
169
  $this->activate();
175
  }
176
 
177
  // ショートコードの設定
178
+ if ($this->options['auto-atag'] <> '' || $this->options['auto-url'] <> '') {
179
+ add_filter ('the_content', array($this, 'auto_replace') ); // 自動置き換え
180
+ add_shortcode ('pz-linkcard-auto-replace', array($this, 'shortcode') ); // 自動置き換え専用ショートコード
181
+ }
182
  if ($this->options['code1'] <> '') {
183
  add_shortcode($this->options['code1'], array($this, 'shortcode'));
184
  }
192
  add_shortcode($this->options['code4'], array($this, 'shortcode'));
193
  }
194
 
195
+ // 日本語化
196
+ load_plugin_textdomain ($this->text_domain, false, $this->slug.'/languages');
197
+
198
  // 管理画面のとき
199
  if (is_admin()) {
200
+ register_activation_hook (__FILE__, array($this, 'activate') ); // 有効化したときの処理
201
+ register_deactivation_hook (__FILE__, array($this, 'deactivate') ); // 無効化したときの処理
202
+ add_action ('admin_menu', array($this, 'add_menu') ); // 設定メニュー
203
+ add_action ('admin_enqueue_scripts', array($this, 'enqueue_admin') ); // 設定メニュー用スクリプト
204
+ add_action ('admin_print_footer_scripts', array($this, 'add_qtag') ); // テキストエディタ用クイックタグ
205
+ add_filter ('mce_buttons', array($this, 'add_mce_button') ); // ビジュアルエディタ用ボタン
206
+ add_filter ('mce_external_plugins', array($this, 'add_mce_plugin') ); // ビジュアルエディタ用ボタン
207
+ add_filter ('plugin_action_links_'.$this->plugin_basename, array($this, 'action_links') ); // プラグイン画面
208
 
209
  if (!isset($this->options['style']) || $this->options['style'] == '') {
210
  if (!isset($this->options['css-path']) || !file_exists($this->options['css-path'])) {
228
  // wp_schedule_single_event( time() + 10 , 'pz_linkcard_check');
229
  }
230
  if (!wp_next_scheduled('pz_linkcard_alive')) {
231
+ wp_schedule_event ( time() + 1800 , 'daily', 'pz_linkcard_alive');
232
  // wp_schedule_single_event( time() + 30 , 'pz_linkcard_alive');
233
  }
234
  }
235
 
236
+ // ショートコード処理(コードが単純になるので、直接HTMLタグにするのでは無くショートコードに変換する。)
237
+ public function auto_replace($contents) {
238
+ if (isset($this->options['auto-atag']) && $this->options['auto-atag']) {
239
+ $contents = preg_replace( '/(^|<br ?\/?>)(<p.*>)?<a .*href=[\'"](https?:\/\/[-_\.!~*()a-zA-Z0-9;\/?:\@&=+\$,%#]+)[\'"]((?!<IMG).)*<\/a>(<\/p>)?$/im', '[pz-linkcard-auto-replace url="$3"]', $contents);
240
+ }
241
+ if (isset($this->options['auto-url']) && $this->options['auto-url']) {
242
+ $contents = preg_replace( '/(^|<br ?\/?>)(<p.*>)?(https?:\/\/[-_\.!~*()a-zA-Z0-9;\/?:\@&=+\$,%#]+)(<\/p>|<br ?\/?>)?$/im', '[pz-linkcard-auto-replace url="$3"]', $contents);
243
+ }
244
+ return $contents;
245
+ }
246
+
247
  // ショートコード処理
248
  public function shortcode($atts, $content = null, $shortcode) {
249
  // 実行時間
252
  }
253
 
254
  // URL
255
+ $url = isset( $atts['url'] ) ? $this->pz_TrimURL( $atts['url'] ) : null;
256
+ if (is_null( $url ) ) {
257
+ if (isset( $atts['href'] ) ) {
258
+ $url = $this->pz_TrimURL( $atts['href'] ); // Aタグのようにhrefパラメータも有効にする
259
+ } elseif (isset( $atts['uri'] ) ) {
260
+ $url = $this->pz_TrimURL( $atts['uri'] ); // 密かに記述ミス対応(uriやurIでもurlとして判定する)
261
+ } elseif (isset( $atts['ur1'] ) ) {
262
+ $url = $this->pz_TrimURL( $atts['ur1'] ); // 密かに記述ミス対応(ur1でもurlとして判定する)
263
  }
264
+ $atts['url'] = $url; // urlパラメータを指定していたことにする
265
  }
266
  if ( is_null( $url ) ) {
267
+ return $this->slug.': '.__('Incorrect URL specification.', $text_domain);
268
  }
269
 
270
  // パラメータ
527
  }
528
  }
529
  }
530
+
531
  // データベースへの保存が終わったので、表示用の編集
532
+
533
  // タイトル
534
  if (!isset($title) || $title == '') {
535
  $title = esc_html($url); // タイトル取得できていなかったらURLをセットする
587
  }
588
  } else {
589
  $site_name = $domain;
590
+ // 日本語ドメイン対応
591
+ if (isset($this->options['flg-idn']) ? true : false) {
592
+ if ( substr( $site_name, 0, 4 ) == 'xn--') {
593
+ $site_name = idn_to_utf8( $site_name );
594
+ }
595
+ }
596
  }
597
 
598
  // リンク先URL
665
  // サイト情報
666
  $domain_info = '<div class="lkc-info">'.$a_op.'<span class="lkc-domain"'.$site_title.'>'.$favicon.'&nbsp;'.$site_name.$info.'</span>'.$a_cl.'&nbsp;'.$sns_info.$this->plugin_link.'</div>';
667
 
668
+ // 日本語ドメイン対応
669
+ if (isset($this->options['flg-idn']) ? true : false) {
670
+ $url_m = parse_url( $url );
671
+ if ( substr( $url_m['host'], 0, 4 ) == 'xn--') {
672
+ $url_m['host'] = idn_to_utf8( $url_m[host] );
673
+ $url = $url_m['scheme'].'://'.$url_m['host'].$url_m['path'].$url_m['query'].$url_m['fragment'];
674
+ }
675
+ }
676
+
677
  // 記事内容
678
  $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>';
679
 
680
+ // Google AMPに暫定対応
681
  // if ( (isset($this->options['flg-amp']) ? true : false) && function_exists('is_amp_endpoint') && is_amp_endpoint() ) {
682
  if ( (isset($this->options['flg-amp']) ? true : false) && preg_match('{/amp/?$}i', $_SERVER["REQUEST_URI"]) ) {
683
  $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>';
753
  $opt = array( 'timeout' => 30 );
754
 
755
  // 保存期間満了でソーシャルカウントをリセット
756
+ if ($this->now > $data['sns_nexttime'] && $data['result_code'] <= 200 ) {
 
757
  $sns_renew = true;
758
  }
759
 
802
  }
803
  }
804
 
805
+ // 登録してから一週間までは毎日、それ以降は週一回更新
806
+ if ($update_cnt || ($this->now - strtotime($data['regist']) < WEEK_IN_SECONDS)) {
807
+ $sns_nexttime = $this->now + DAY_IN_SECONDS + rand(0, DAY_IN_SECONDS); // 1day + 0-24h
808
  } else {
809
+ $sns_nexttime = $this->now + WEEK_IN_SECONDS + rand(0, DAY_IN_SECONDS); // 7days + 0-24h
810
  }
811
  // MINUTE_IN_SECONDS = 60
812
  // HOUR_IN_SECONDS = 60 * MINUTE_IN_SECONDS = 3600
821
  'sns_twitter' => $data['sns_twitter'],
822
  'sns_facebook' => $data['sns_facebook'],
823
  'sns_hatena' => $data['sns_hatena'],
824
+ 'sns_time' => $this->now,
825
+ 'sns_nexttime' => $sns_nexttime,
826
+ 'uptime' => $this->now
827
  ),
828
  array(
829
  'id' => $data['id']
847
  } else {
848
  return null;
849
  }
850
+ if ($wpdb->last_error <> '') { // DBエラーのとき、初期化する
851
+ $this->activate();
852
+ }
853
  if (is_wp_error($data)) {
854
  return null;
855
  }
870
  if (!isset($data['url_key']) || is_null($data['url_key']) || $data['url_key'] == '' ) {
871
  $data['url_key'] = hash( 'sha256', esc_url( $url ), true);
872
  }
873
+ $data['uptime'] = $this->now; // 最終更新日時
874
 
875
  // 更新してみる
876
  if ( isset($data['id']) ) {
891
  );
892
  }
893
  if (!$result) {
894
+ $data['regist'] = $this->now_mysql; // 登録日
895
  // 更新できなかったら挿入
896
  unset($data['id']);
897
  $result = $wpdb->insert(
972
  echo '<!-- Pz-LkC [TID='.$thumbnail_id.'] /-->'.PHP_EOL;
973
  }
974
  $attach = wp_get_attachment_image_src( $thumbnail_id, 'thumbnail', true );
975
+ if (isset($attach) && count($attach) > 3 && isset($attach[0])) {
976
  $thumbnail = $attach[0];
977
  }
978
  } else {
1017
  }
1018
 
1019
  // データセット
1020
+ if ($data['title'] == $title ) {
1021
+ $before['mod_title'] = 0;
1022
+ } else {
1023
+ $before['mod_title'] = 1;
1024
+ }
1025
+ if ($data['excerpt'] == $excerpt ) {
1026
+ $before['mod_excerpt'] = 0;
1027
+ } else {
1028
+ $before['mod_excerpt'] = 1;
1029
+ }
1030
  $data['title'] = $title;
1031
  $data['excerpt'] = $excerpt;
1032
  $data['thumbnail'] = $thumbnail;
1033
+ $data['favicon'] = $favicon;
1034
  $data['result_code'] = $result_code;
1035
  $data['alive_result'] = $result_code;
1036
  $data['domain'] = $domain;
1058
  $charset = null;
1059
  $result_code = null;
1060
 
 
 
 
 
 
 
 
 
 
 
1061
  $data['post_id'] = (isset( $data['post_id'] ) ? $data['post_id'] : get_the_ID() );
1062
  $data['sns_twitter'] = (isset( $data['sns_twitter'] ) ? $data['sns_twitter'] : -1 );
1063
  $data['sns_facebook'] = (isset( $data['sns_facebook'] ) ? $data['sns_facebook'] : -1 );
1064
  $data['sns_hatena'] = (isset( $data['sns_hatena'] ) ? $data['sns_hatena'] : -1 );
1065
+ $data['sns_nexttime'] = (isset( $data['sns_nexttime'] ) ? $data['sns_nexttime'] : 0 );
1066
  $data['uptime'] = (isset( $data['uptime'] ) ? $data['uptime'] : 0 );
 
1067
  $data['alive_time'] = (isset( $data['alive_time'] ) ? $data['alive_time'] : 0 );
1068
  $data['alive_result'] = (isset( $data['alive_result'] ) ? $data['alive_result'] : 0 );
1069
+ $data['mod_title'] = 0;
1070
+ $data['mod_excerpt'] = 0;
1071
+
1072
  if ( isset( $data['domain'] ) ) {
1073
  $domain_url = $data['domain'];
1074
  $domain = $data['domain'];
1087
  $ch = curl_init($url);
1088
  curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true ); // データで取得
1089
  curl_setopt( $ch, CURLOPT_TIMEOUT, 8 ); // タイムアウト
1090
+ if (isset($this->options['flg-referer']) ? true : false) {
1091
+ curl_setopt( $ch, CURLOPT_REFERER, get_permalink() ); // リファラ
1092
+ }
1093
+ if (isset($this->options['flg-agent']) ? true : false) {
1094
+ curl_setopt( $ch, CURLOPT_USERAGENT, $this->options['user-agent'] ); // ユーザーエージェント
1095
+ // curl_setopt( $ch, CURLOPT_USERAGENT, 'Pz-LinkCard-Crawler/'.$this->options['plugin-version'].' WordPress/'.get_bloginfo('version').' cURL/'.curl_version()['version'].' PHP/'.phpversion() );
1096
+ } else {
1097
+ curl_setopt( $ch, CURLOPT_USERAGENT, esc_html( $_SERVER['HTTP_USER_AGENT'] ) ); // ユーザーエージェント
1098
+ }
1099
  if (isset($this->options['flg-redir']) ? true : false) {
1100
  curl_setopt( $ch, CURLOPT_FOLLOWLOCATION, true ); // リダイレクトを処理する
1101
  curl_setopt( $ch, CURLOPT_MAXREDIRS, 8 ); // リダイレクトを処理する階層
1130
  }
1131
  }
1132
 
1133
+ // 文字コード判定
1134
  $charset = null;
1135
  if ($html <> '') {
1136
  if (preg_match('/charset\s*=\s*([^>\/\s]*).*<\/head/si', $html, $m)) {
1137
  $m[1] = trim(trim($m[1]), '\'\"');
1138
  $charset = $m[1];
1139
  } else {
1140
+ // $charset = mb_detect_encoding( $html );
1141
  foreach(array('UTF-8','SJIS','EUC-JP','eucJP-win','ASCII','JIS','SJIS-win') as $c_charset) {
1142
+ // 文字コード変換してみて内容が変わらないものを文字セットと判断する
1143
  if (mb_convert_encoding($html, $this->charset, $c_charset) == $html) {
1144
  $charset = $c_charset;
1145
  break;
1223
  $data['excerpt'] = $excerpt;
1224
  $data['charset'] = $charset;
1225
  if (isset($atts['force']) && $atts['force'] == true) {
1226
+ $data['regist'] = $this->now_mysql; // 登録日
1227
  }
1228
  }
1229
+ $data['url'] = $url;
1230
+ $data['thumbnail'] = ( isset($thumbnail_url) ? $thumbnail_url : null );
1231
+ $data['result_code'] = $result_code;
1232
+ $data['alive_result'] = $result_code;
1233
+ $data['domain'] = $domain;
1234
+ $data['favicon'] = ( isset($favicon_url) ? $favicon_url : null );
1235
+ if (!$data['regist_result']) {
1236
+ $data['regist_title'] = $title;
1237
+ $data['regist_excerpt'] = $excerpt;
1238
+ $data['regist_charset'] = $charset;
1239
+ $data['regist_result'] = $result_code;
1240
+ $data['regist_time'] = $this->now;
1241
+ }
1242
 
1243
  return $data;
1244
  }
1317
  wp_enqueue_script ('media-uploader', plugins_url("media-uploader.js", __FILE__), array('jquery'), false, false);
1318
  }
1319
 
1320
+ // 管理画面時のスタイルシート、スクリプト設定
1321
+ public function add_qtag() {
1322
+ if (wp_script_is('quicktags') ) {
1323
+ echo '<script>QTags.addButton(\'pz-lkc\',\''.__('Linkcard', $this->text_domain ).'\',\'['.$this->options['code1'].' url="\',\'"]\',\'\',\''.__('Make Linkcard', $this->text_domain ).'\');</script>';
1324
+ }
1325
+ }
1326
+
1327
+ // 管理画面時のスタイルシート、スクリプト設定
1328
+ public function add_mce_button($buttons) {
1329
+ $buttons[] = 'pz_linkcard';
1330
+ return $buttons;
1331
+ }
1332
+ public function add_mce_plugin($plugins) {
1333
+ $plugins['pz_linkcard'] = $this->plugin_dir_url.'js/mce-pz-lkc.js';
1334
+ return $plugins;
1335
+ }
1336
+
1337
  // 通常時のスタイルシート
1338
  public function enqueue($hook) {
1339
  if (!isset($this->options['style'])) {
1358
  }
1359
 
1360
  global $wpdb;
1361
+ $result = (array) $wpdb->get_results($wpdb->prepare("SELECT url,sns_nexttime FROM $this->db_name WHERE sns_nexttime<%d ORDER BY sns_nexttime ASC", $this->now));
 
1362
  $i = 0;
1363
  if (isset($result) && is_array($result) && count($result) > 0) {
1364
  foreach($result as $data) {
1381
  }
1382
 
1383
  global $wpdb;
1384
+ $result = (array) $wpdb->get_results($wpdb->prepare("SELECT url,alive_time FROM $this->db_name WHERE alive_time<%d ORDER BY alive_time ASC, id ASC", $this->now - WEEK_IN_SECONDS ));
 
1385
  $i = 0;
1386
  if (isset($result) && is_array($result) && count($result) > 0) {
1387
  foreach($result as $data) {
1388
  $i++;
1389
+ if ($i > 5) {
1390
+ wp_schedule_single_event(time() + 3600, 'pz_linkcard_alive');
1391
  break;
1392
  }
1393
  if (isset($data) && isset($data->url)) {
1394
  $before = $this->pz_GetCache( array( 'url' => $data->url ) );
1395
  $after = $this->pz_GetCURL( $before );
1396
+ if ($before['title'] == $after['title'] ) {
1397
+ $before['mod_title'] = 0;
1398
+ } else {
1399
+ $before['mod_title'] = 1;
1400
+ }
1401
+ if ($before['excerpt'] == $after['excerpt'] ) {
1402
+ $before['mod_excerpt'] = 0;
1403
  } else {
1404
+ $before['mod_excerpt'] = 1;
 
 
 
 
 
 
 
 
 
1405
  }
1406
+ $before['alive_result'] = $after['result_code'];
1407
+ $before['alive_time'] = $this->now;
1408
+ $before['thumbnail'] = $after['thumbnail'];
1409
+ $before['favicon'] = $after['favicon'];
1410
  $before = $this->pz_SetCache( $before );
1411
  }
1412
  }
1418
  require_once ('lib/pz-linkcard-style.php');
1419
  }
1420
 
1421
+ // JS生成
1422
+ public function pz_SetJS() {
1423
+ require_once ('lib/pz-linkcard-js.php');
1424
+ }
1425
+
1426
  // Pz カード管理 キャッシュ・マネージャ
1427
  public function page_cacheman() {
1428
  require_once ('lib/pz-linkcard-cacheman.php');
readme.txt CHANGED
@@ -155,6 +155,21 @@ A5.
155
  5. "Write shortcode and url"
156
 
157
  == Changelog ==
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
158
 
159
  Ver1.8.2
160
  * スタイルシートのURLからスキームを削除しました。(Thanks @mataku_hair)
155
  5. "Write shortcode and url"
156
 
157
  == Changelog ==
158
+ Ver2.0.0
159
+ * URL指定に「href」も使用できるように変更しました。(Thanks @weblearninglog)
160
+ Modefied: "href" was added to the parameter that specifies the URL.
161
+ * テキストエディタにクイックタグを追加しました。(Thanks @kumasan_kenkou)
162
+ Added: A quick tag was added to the text editor.
163
+ * ビジュアルエディタにリンクカード作成ボタンを追加しました。
164
+ Added: A card insertion button was added to the visual editor.
165
+ * テキストリンクだけが記載されている行をリンクカードに変更する機能を追加しました。
166
+ Added: Added the function to convert text link to card.
167
+ * URLだけが記載されている行をリンクカードに変更する機能を追加しました。(Thanks @hina01011)
168
+ Added: Added the function to convert URL to card.
169
+ * カード管理画面のタイトルと抜粋文を変更されている場合に太文字で表示するようにしました。
170
+ Modefied: Changed so that changed parts are displayed in bold letters on the card management screen.
171
+ * 日本語ドメイン(IDNA ASCIIドメイン)の表示に対応しました。(Thanks @ichinosecom)
172
+ Added: It supports display of IDNA ASCII domain.
173
 
174
  Ver1.8.2
175
  * スタイルシートのURLからスキームを削除しました。(Thanks @mataku_hair)
templete/mce-pz-lkc-templete.js ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function() {
2
+ tinymce.create('tinymce.plugins.pzlinkcard', {
3
+ init: function(ed, url){
4
+ ed.addButton('pz_linkcard',{
5
+ title: '/*TITLE*/',
6
+ image: url + '/button.png',
7
+ cmd: 'insert_pz_linkcard'
8
+ });
9
+ ed.addCommand('insert_pz_linkcard', function() {
10
+ var insert_tag = window.prompt('/*PROMPT*/', 'http://');
11
+ if (insert_tag !== null) {
12
+ ed.execCommand('mceInsertContent', 0, '[/*CODE*/ url="' + insert_tag + '"]');
13
+ }
14
+ });
15
+ },
16
+ createControl: function(n, cm) {
17
+ return null;
18
+ }
19
+ });
20
+ tinymce.PluginManager.add('pz_linkcard',tinymce.plugins.pzlinkcard);
21
+ })();