Pz-LinkCard - Version 1.8.2

Version Description

Download this release

Release Info

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

Code changes from version 1.8.1 to 1.8.2

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-06-18 22:49+0900\n"
8
- "PO-Revision-Date: 2017-06-18 22:49+0900\n"
9
  "Last-Translator: \n"
10
  "Language-Team: poporon\n"
11
  "Language: ja_JP\n"
@@ -23,384 +23,407 @@ msgstr ""
23
  msgid "Incorrect URL specification."
24
  msgstr "URLの指定が誤っています。"
25
 
26
- #: ../pz-linkcard.php:1247 ../lib/pz-linkcard-cacheman.php:6
27
  msgid "LinkCard cache manager"
28
  msgstr "リンクカード/DBキャッシュ管理"
29
 
30
- #: ../pz-linkcard.php:1247
31
  msgid "Pz LkC Cache"
32
  msgstr "Pz カード管理"
33
 
34
- #: ../pz-linkcard.php:1248 ../lib/pz-linkcard-settings.php:4
35
  msgid "LinkCard Settings"
36
  msgstr "リンクカード設定"
37
 
38
- #: ../pz-linkcard.php:1248
39
  msgid "Pz LinkCard"
40
  msgstr "Pz カード設定"
41
 
42
- #: ../pz-linkcard.php:1333
43
  msgid "Settings"
44
  msgstr "設定"
45
 
46
- #: ../pz-linkcard.php:1333
47
  msgid "Manage"
48
  msgstr "管理"
49
 
50
- #: ../lib/pz-linkcard-cacheman.php:70
51
- msgid "Updated cache"
52
- msgstr "キャッシュを更新しました"
 
53
 
54
- #: ../lib/pz-linkcard-cacheman.php:72 ../lib/pz-linkcard-cacheman.php:75
55
- msgid "Update failed"
56
- msgstr "キャッシュの更新に失敗しました"
 
57
 
58
- #: ../lib/pz-linkcard-cacheman.php:80
59
- msgid "Social count renew"
60
- msgstr "ソーシャルカウントの再取得"
 
 
61
 
62
- #: ../lib/pz-linkcard-cacheman.php:90 ../lib/pz-linkcard-cacheman.php:108
63
- #: ../lib/pz-linkcard-cacheman.php:123
64
- msgid "completed"
65
- msgstr "完了しました"
66
 
67
- #: ../lib/pz-linkcard-cacheman.php:96
68
- msgid "Alive check"
69
- msgstr "リンク先のチェック"
70
 
71
- #: ../lib/pz-linkcard-cacheman.php:113
72
- msgid "Cache renew"
73
- msgstr "記事内容の再取得"
 
74
 
75
- #: ../lib/pz-linkcard-cacheman.php:131
76
- msgid "Cache deleted"
77
- msgstr "キャッシュから削除しました"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
78
 
79
- #: ../lib/pz-linkcard-cacheman.php:253
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
80
  msgid "All"
81
  msgstr "すべて"
82
 
83
- #: ../lib/pz-linkcard-cacheman.php:254
84
  msgid "Internal"
85
  msgstr "内部リンク"
86
 
87
- #: ../lib/pz-linkcard-cacheman.php:255
88
  msgid "External"
89
  msgstr "外部リンク"
90
 
91
- #: ../lib/pz-linkcard-cacheman.php:256
92
  msgid "Modify"
93
  msgstr "更新あり"
94
 
95
- #: ../lib/pz-linkcard-cacheman.php:266
96
  msgid "Select batch"
97
  msgstr "一括処理を選択"
98
 
99
- #: ../lib/pz-linkcard-cacheman.php:268 ../lib/pz-linkcard-cacheman.php:339
 
100
  msgid "Select"
101
  msgstr "選択してください"
102
 
103
- #: ../lib/pz-linkcard-cacheman.php:269
104
  msgid "Renew cache"
105
  msgstr "記事内容を再取得する"
106
 
107
- #: ../lib/pz-linkcard-cacheman.php:270
108
  msgid "Renew SNS count"
109
  msgstr "ソーシャルカウントを再取得する"
110
 
111
- #: ../lib/pz-linkcard-cacheman.php:271
112
  msgid "Check status"
113
  msgstr "リンクが有効かチェックする"
114
 
115
- #: ../lib/pz-linkcard-cacheman.php:272
116
  msgid "Delete from cache"
117
  msgstr "キャッシュから削除する"
118
 
119
- #: ../lib/pz-linkcard-cacheman.php:274
120
  msgid "Submit"
121
  msgstr "適用"
122
 
123
- #: ../lib/pz-linkcard-cacheman.php:278
124
  msgid "Select domain"
125
  msgstr "ドメインを選択"
126
 
127
- #: ../lib/pz-linkcard-cacheman.php:280
128
  msgid "All domain"
129
  msgstr "すべてのドメイン"
130
 
131
- #: ../lib/pz-linkcard-cacheman.php:293
132
  msgid "Refine search"
133
  msgstr "絞り込み検索"
134
 
135
- #: ../lib/pz-linkcard-cacheman.php:298
136
  msgid "items"
137
  msgstr "項目"
138
 
139
- #: ../lib/pz-linkcard-cacheman.php:315
140
  msgid "Select all"
141
  msgstr "すべて選択"
142
 
143
- #: ../lib/pz-linkcard-cacheman.php:316 ../lib/pz-linkcard-edit.php:13
144
- msgid "ID"
145
- msgstr ""
146
-
147
- #: ../lib/pz-linkcard-cacheman.php:317 ../lib/pz-linkcard-edit.php:17
148
- msgid "URL key"
149
- msgstr "URLキー"
150
-
151
- #: ../lib/pz-linkcard-cacheman.php:318 ../lib/pz-linkcard-edit.php:21
152
- #: ../lib/pz-linkcard-settings.php:596
153
- msgid "URL"
154
- msgstr "URL"
155
-
156
- #: ../lib/pz-linkcard-cacheman.php:319 ../lib/pz-linkcard-edit.php:37
157
- #: ../lib/pz-linkcard-settings.php:567
158
- msgid "Title"
159
- msgstr "タイトル"
160
-
161
- #: ../lib/pz-linkcard-cacheman.php:320 ../lib/pz-linkcard-edit.php:41
162
- #: ../lib/pz-linkcard-settings.php:624
163
- msgid "Excerpt"
164
- msgstr "抜粋文"
165
-
166
- #: ../lib/pz-linkcard-cacheman.php:321 ../lib/pz-linkcard-edit.php:45
167
- msgid "Charset"
168
- msgstr "文字セット"
169
-
170
- #: ../lib/pz-linkcard-cacheman.php:322 ../lib/pz-linkcard-edit.php:33
171
- msgid "Domain"
172
- msgstr "ドメイン"
173
-
174
- #: ../lib/pz-linkcard-cacheman.php:323 ../lib/pz-linkcard-edit.php:67
175
- msgid "Tw"
176
- msgstr ""
177
-
178
- #: ../lib/pz-linkcard-cacheman.php:324 ../lib/pz-linkcard-edit.php:68
179
- msgid "fb"
180
- msgstr ""
181
-
182
- #: ../lib/pz-linkcard-cacheman.php:325 ../lib/pz-linkcard-edit.php:69
183
- msgid "B!"
184
- msgstr ""
185
-
186
- #: ../lib/pz-linkcard-cacheman.php:326 ../lib/pz-linkcard-edit.php:81
187
- msgid "Regist"
188
- msgstr "登録日時"
189
-
190
- #: ../lib/pz-linkcard-cacheman.php:327 ../lib/pz-linkcard-edit.php:61
191
- msgid "Post ID"
192
- msgstr "記事ID"
193
-
194
- #: ../lib/pz-linkcard-cacheman.php:328 ../lib/pz-linkcard-edit.php:57
195
- msgid "Result code"
196
- msgstr "結果コード"
197
-
198
- #: ../lib/pz-linkcard-cacheman.php:328
199
  msgid "(last)"
200
  msgstr ""
201
 
202
- #: ../lib/pz-linkcard-cacheman.php:358
203
  msgid "edit"
204
  msgstr "編集"
205
 
206
- #: ../lib/pz-linkcard-cacheman.php:359 ../lib/pz-linkcard-cacheman.php:360
 
207
  msgid "Are you sure?"
208
  msgstr "実行します。"
209
 
210
- #: ../lib/pz-linkcard-cacheman.php:359
211
  msgid "renew"
212
  msgstr "再取得"
213
 
214
- #: ../lib/pz-linkcard-cacheman.php:360
215
  msgid "delete"
216
  msgstr "削除"
217
 
218
- #: ../lib/pz-linkcard-edit.php:25
219
- msgid "Link type"
220
- msgstr "外部/内部"
221
 
222
- #: ../lib/pz-linkcard-edit.php:29
223
- msgid "Site name"
224
- msgstr "サイト名称"
225
-
226
- #: ../lib/pz-linkcard-edit.php:46
227
- msgid "->"
228
- msgstr "→"
229
 
230
- #: ../lib/pz-linkcard-edit.php:49
231
- msgid "Thumbnail URL"
232
- msgstr "サムネイルURL"
233
 
234
- #: ../lib/pz-linkcard-edit.php:53
235
- msgid "Favicon URL"
236
- msgstr "ファビコンURL"
237
 
238
- #: ../lib/pz-linkcard-edit.php:65
239
- msgid "SNS"
240
- msgstr ""
 
241
 
242
- #: ../lib/pz-linkcard-edit.php:73
243
- msgid "Uptime"
244
- msgstr "更新日時"
245
 
246
- #: ../lib/pz-linkcard-edit.php:77
247
- msgid "Next update"
248
- msgstr "次回更新日時"
249
 
250
- #: ../lib/pz-linkcard-edit.php:86
251
- msgid "Update"
252
- msgstr "更新"
253
 
254
- #: ../lib/pz-linkcard-edit.php:86
255
- msgid "Cancel"
256
- msgstr "キャンセル"
257
 
258
  #: ../lib/pz-linkcard-settings.php:38
259
  msgid "Short code is not set."
260
  msgstr "ショートコードが指定されていません。"
261
 
262
- #: ../lib/pz-linkcard-settings.php:153
263
  msgid "Changes saved."
264
  msgstr "設定を保存しました。"
265
 
266
- #: ../lib/pz-linkcard-settings.php:155
267
  msgid "Not changed."
268
  msgstr "設定は変更されませんでした。"
269
 
270
- #: ../lib/pz-linkcard-settings.php:164
271
  msgid "Special format"
272
  msgstr "定型書式"
273
 
274
- #: ../lib/pz-linkcard-settings.php:167
275
  msgid "Tiny format"
276
  msgstr "かんたん書式設定"
277
 
278
- #: ../lib/pz-linkcard-settings.php:170 ../lib/pz-linkcard-settings.php:402
279
- #: ../lib/pz-linkcard-settings.php:423 ../lib/pz-linkcard-settings.php:521
280
- #: ../lib/pz-linkcard-settings.php:674 ../lib/pz-linkcard-settings.php:686
281
- #: ../lib/pz-linkcard-settings.php:701 ../lib/pz-linkcard-settings.php:738
282
- #: ../lib/pz-linkcard-settings.php:749 ../lib/pz-linkcard-settings.php:764
283
  msgid "None"
284
  msgstr "なし"
285
 
286
- #: ../lib/pz-linkcard-settings.php:171
287
  msgid "Pz-LkC Default"
288
  msgstr "Pz リンクカード 標準書式"
289
 
290
- #: ../lib/pz-linkcard-settings.php:172
291
  msgid "Simple"
292
  msgstr "シンプル"
293
 
294
- #: ../lib/pz-linkcard-settings.php:173
295
  msgid "Cellophane tape \"center\""
296
  msgstr "セロハンテープ(中央)"
297
 
298
- #: ../lib/pz-linkcard-settings.php:174
299
  msgid "Cellophane tape \"Top corner\""
300
  msgstr "セロハンテープ(左上と右上)"
301
 
302
- #: ../lib/pz-linkcard-settings.php:175
303
  msgid "Cellophane tape \"long\""
304
  msgstr "セロハンテープ(長め)"
305
 
306
- #: ../lib/pz-linkcard-settings.php:176
307
  msgid "Slanting"
308
  msgstr "斜め"
309
 
310
- #: ../lib/pz-linkcard-settings.php:177
311
  msgid "3D Rotate"
312
  msgstr "3D回転"
313
 
314
- #: ../lib/pz-linkcard-settings.php:178
315
  msgid "Curling paper"
316
  msgstr "紙がめくれた効果(テーマとの相性があります)"
317
 
318
- #: ../lib/pz-linkcard-settings.php:179
319
  msgid "Taping and curling"
320
  msgstr "テープと紙めくれ(テーマとの相性があります)"
321
 
322
- #: ../lib/pz-linkcard-settings.php:180
323
  msgid "Stitch blue&red"
324
  msgstr "縫い目(青&赤)"
325
 
326
- #: ../lib/pz-linkcard-settings.php:181
327
  msgid "Stitch green&yellow"
328
  msgstr "縫い目(緑&黄色)"
329
 
330
- #: ../lib/pz-linkcard-settings.php:182
331
  msgid "Neutral"
332
  msgstr "ブルーグリーン(黒背景推奨)"
333
 
334
- #: ../lib/pz-linkcard-settings.php:183
335
  msgid "Orange"
336
  msgstr "オレンジ(黒背景推奨)"
337
 
338
- #: ../lib/pz-linkcard-settings.php:184
339
  msgid "Green"
340
  msgstr "グリーン(黒背景推奨)"
341
 
342
- #: ../lib/pz-linkcard-settings.php:185
343
  msgid "Blue"
344
  msgstr "ブルー(黒背景推奨)"
345
 
346
- #: ../lib/pz-linkcard-settings.php:186
347
  msgid "Pushpin"
348
  msgstr "押しピン"
349
 
350
- #: ../lib/pz-linkcard-settings.php:188
351
  msgid "* It applies over other formatting settings."
352
  msgstr "※ほかの項目よりも優先して適用されます。"
353
 
354
- #: ../lib/pz-linkcard-settings.php:194
355
  msgid "Shortcode"
356
  msgstr "ショートコード "
357
 
358
- #: ../lib/pz-linkcard-settings.php:197
359
  msgid "ShortCode1"
360
  msgstr "ショートコード 1"
361
 
362
- #: ../lib/pz-linkcard-settings.php:199 ../lib/pz-linkcard-settings.php:217
363
- #: ../lib/pz-linkcard-settings.php:222 ../lib/pz-linkcard-settings.php:227
364
  msgid "Case-sensitive"
365
  msgstr "大文字と小文字を区別します"
366
 
367
- #: ../lib/pz-linkcard-settings.php:202
368
  msgid "Use inlinetext"
369
  msgstr "ショートコードで囲んだ文字列"
370
 
371
- #: ../lib/pz-linkcard-settings.php:206
372
  msgid "No use"
373
  msgstr "使用しない"
374
 
375
- #: ../lib/pz-linkcard-settings.php:207
376
  msgid "Use to excerpt"
377
  msgstr "抜粋文として使用"
378
 
379
- #: ../lib/pz-linkcard-settings.php:208
380
  msgid "Use to title"
381
  msgstr "タイトルとして使用"
382
 
383
- #: ../lib/pz-linkcard-settings.php:211
384
  msgid "This setting applies only to the Shortcode1"
385
  msgstr "ショートコード1にのみ適用されます"
386
 
387
- #: ../lib/pz-linkcard-settings.php:215
388
  msgid "ShortCode 2"
389
  msgstr "ショートコード 2"
390
 
391
- #: ../lib/pz-linkcard-settings.php:220
392
  msgid "ShortCode 3"
393
  msgstr "ショートコード 3"
394
 
395
- #: ../lib/pz-linkcard-settings.php:225
396
  msgid "ShortCode 4"
397
  msgstr "ショートコード 4"
398
 
399
- #: ../lib/pz-linkcard-settings.php:230
400
  msgid "Parameters"
401
  msgstr "パラメータ"
402
 
403
- #: ../lib/pz-linkcard-settings.php:233
404
  msgid ""
405
  "For any shortcode you can change the title and excerpt with `title` "
406
  "parameter and `content` parameter"
@@ -408,397 +431,398 @@ msgstr ""
408
  "どのショートコードでも title パラメータと content パラメータでタイトルと抜粋"
409
  "文を指定できます。"
410
 
411
- #: ../lib/pz-linkcard-settings.php:239
412
  msgid "Style"
413
  msgstr "表示設定"
414
 
415
- #: ../lib/pz-linkcard-settings.php:243
416
  msgid "Use blockquote tag"
417
  msgstr "BLOCKQUOTEをタグを使用する"
418
 
419
- #: ../lib/pz-linkcard-settings.php:244
420
  msgid "without using DIV tag, and use BLOCKQUOTE tag"
421
  msgstr "<BLOCKQUOTE>で囲んで引用扱いにします"
422
 
423
- #: ../lib/pz-linkcard-settings.php:248
424
  msgid "Link the whole"
425
  msgstr "カード全体をリンク"
426
 
427
- #: ../lib/pz-linkcard-settings.php:252
428
  msgid "Enclose the entire card at anchor"
429
  msgstr ""
430
  "カード全体をAタグで囲って、どこをクリックしてもリンク先を開くようにします。"
431
 
432
- #: ../lib/pz-linkcard-settings.php:258
433
  msgid "Position"
434
  msgstr "配置設定"
435
 
436
- #: ../lib/pz-linkcard-settings.php:265 ../lib/pz-linkcard-settings.php:296
437
  msgid "Margin top"
438
  msgstr "上の余白"
439
 
440
- #: ../lib/pz-linkcard-settings.php:267 ../lib/pz-linkcard-settings.php:282
441
- #: ../lib/pz-linkcard-settings.php:298 ../lib/pz-linkcard-settings.php:312
442
- #: ../lib/pz-linkcard-settings.php:324 ../lib/pz-linkcard-settings.php:344
443
- #: ../lib/pz-linkcard-settings.php:360 ../lib/pz-linkcard-settings.php:377
444
  msgid "Not defined"
445
  msgstr "設定しない"
446
 
447
- #: ../lib/pz-linkcard-settings.php:268 ../lib/pz-linkcard-settings.php:283
448
- #: ../lib/pz-linkcard-settings.php:304 ../lib/pz-linkcard-settings.php:318
449
- #: ../lib/pz-linkcard-settings.php:330 ../lib/pz-linkcard-settings.php:350
450
- #: ../lib/pz-linkcard-settings.php:361 ../lib/pz-linkcard-settings.php:378
451
  msgid "0"
452
  msgstr ""
453
 
454
- #: ../lib/pz-linkcard-settings.php:269 ../lib/pz-linkcard-settings.php:284
455
- #: ../lib/pz-linkcard-settings.php:299 ../lib/pz-linkcard-settings.php:313
456
- #: ../lib/pz-linkcard-settings.php:325 ../lib/pz-linkcard-settings.php:345
457
- #: ../lib/pz-linkcard-settings.php:362 ../lib/pz-linkcard-settings.php:379
458
  msgid "4px"
459
  msgstr ""
460
 
461
- #: ../lib/pz-linkcard-settings.php:270 ../lib/pz-linkcard-settings.php:285
462
- #: ../lib/pz-linkcard-settings.php:300 ../lib/pz-linkcard-settings.php:314
463
- #: ../lib/pz-linkcard-settings.php:326 ../lib/pz-linkcard-settings.php:346
464
- #: ../lib/pz-linkcard-settings.php:363 ../lib/pz-linkcard-settings.php:380
465
  msgid "8px"
466
  msgstr ""
467
 
468
- #: ../lib/pz-linkcard-settings.php:271 ../lib/pz-linkcard-settings.php:286
469
- #: ../lib/pz-linkcard-settings.php:301 ../lib/pz-linkcard-settings.php:315
470
- #: ../lib/pz-linkcard-settings.php:327 ../lib/pz-linkcard-settings.php:347
471
- #: ../lib/pz-linkcard-settings.php:364 ../lib/pz-linkcard-settings.php:381
472
  msgid "16px"
473
  msgstr ""
474
 
475
- #: ../lib/pz-linkcard-settings.php:272 ../lib/pz-linkcard-settings.php:287
476
- #: ../lib/pz-linkcard-settings.php:302 ../lib/pz-linkcard-settings.php:316
477
- #: ../lib/pz-linkcard-settings.php:328 ../lib/pz-linkcard-settings.php:348
478
- #: ../lib/pz-linkcard-settings.php:365 ../lib/pz-linkcard-settings.php:382
479
  msgid "32px"
480
  msgstr ""
481
 
482
- #: ../lib/pz-linkcard-settings.php:273 ../lib/pz-linkcard-settings.php:288
483
- #: ../lib/pz-linkcard-settings.php:303 ../lib/pz-linkcard-settings.php:317
484
- #: ../lib/pz-linkcard-settings.php:329 ../lib/pz-linkcard-settings.php:349
485
- #: ../lib/pz-linkcard-settings.php:366 ../lib/pz-linkcard-settings.php:383
486
  msgid "64px"
487
  msgstr ""
488
 
489
- #: ../lib/pz-linkcard-settings.php:280 ../lib/pz-linkcard-settings.php:310
490
  msgid "Margin left"
491
  msgstr "左の余白"
492
 
493
- #: ../lib/pz-linkcard-settings.php:322 ../lib/pz-linkcard-settings.php:358
494
  msgid "Margin right"
495
  msgstr "右の余白"
496
 
497
- #: ../lib/pz-linkcard-settings.php:336 ../lib/pz-linkcard-settings.php:428
498
- #: ../lib/pz-linkcard-settings.php:505
499
  msgid "Width"
500
  msgstr "幅"
501
 
502
- #: ../lib/pz-linkcard-settings.php:337 ../lib/pz-linkcard-settings.php:559
503
- #: ../lib/pz-linkcard-settings.php:588 ../lib/pz-linkcard-settings.php:617
504
- #: ../lib/pz-linkcard-settings.php:645
505
  msgid "Height"
506
  msgstr "高さ"
507
 
508
- #: ../lib/pz-linkcard-settings.php:342 ../lib/pz-linkcard-settings.php:375
509
  msgid "Margin bottom"
510
  msgstr "下の余白"
511
 
512
- #: ../lib/pz-linkcard-settings.php:372
513
  msgid "Centering"
514
  msgstr "中央に寄せる"
515
 
516
- #: ../lib/pz-linkcard-settings.php:394
517
  msgid "Layout"
518
  msgstr "外観設定"
519
 
520
- #: ../lib/pz-linkcard-settings.php:400 ../lib/pz-linkcard-settings.php:694
521
- #: ../lib/pz-linkcard-settings.php:757 ../lib/pz-linkcard-settings.php:803
522
  msgid "Site information"
523
  msgstr "サイト情報"
524
 
525
- #: ../lib/pz-linkcard-settings.php:403
526
  msgid "Top"
527
  msgstr "上側"
528
 
529
- #: ../lib/pz-linkcard-settings.php:404
530
  msgid "Bottom"
531
  msgstr "下側"
532
 
533
- #: ../lib/pz-linkcard-settings.php:406
534
  msgid "Use SiteName"
535
  msgstr "サイト名称を使用"
536
 
537
- #: ../lib/pz-linkcard-settings.php:411
538
  msgid "Separator line"
539
  msgstr "区切り線"
540
 
541
- #: ../lib/pz-linkcard-settings.php:418
542
  msgid "Display URL"
543
  msgstr "リンク先のURLを表示する"
544
 
545
- #: ../lib/pz-linkcard-settings.php:421 ../lib/pz-linkcard-settings.php:671
546
- #: ../lib/pz-linkcard-settings.php:735 ../lib/pz-linkcard-settings.php:795
547
  msgid "Thumbnail"
548
  msgstr "サムネイル"
549
 
550
- #: ../lib/pz-linkcard-settings.php:424
551
  msgid "Right"
552
  msgstr "右側"
553
 
554
- #: ../lib/pz-linkcard-settings.php:425
555
  msgid "Left"
556
  msgstr "左側"
557
 
558
- #: ../lib/pz-linkcard-settings.php:430 ../lib/pz-linkcard-settings.php:452
559
  msgid "Shadow"
560
  msgstr "影を付ける"
561
 
562
- #: ../lib/pz-linkcard-settings.php:435
563
  msgid "Hollow content area"
564
  msgstr "記事の情報に枠を付ける"
565
 
566
- #: ../lib/pz-linkcard-settings.php:440
567
  msgid "Display excerpt"
568
  msgstr "抜粋文を表示する"
569
 
570
- #: ../lib/pz-linkcard-settings.php:445
571
  msgid "Hollow"
572
  msgstr "内側に影を付ける"
573
 
574
- #: ../lib/pz-linkcard-settings.php:458
575
  msgid "Radius"
576
  msgstr "角を丸める"
577
 
578
- #: ../lib/pz-linkcard-settings.php:486
579
  msgid "Border"
580
  msgstr "枠線の太さ"
581
 
582
- #: ../lib/pz-linkcard-settings.php:488 ../lib/pz-linkcard-settings.php:543
583
- #: ../lib/pz-linkcard-settings.php:572 ../lib/pz-linkcard-settings.php:601
584
- #: ../lib/pz-linkcard-settings.php:629
585
  msgid "Color"
586
  msgstr "色"
587
 
588
- #: ../lib/pz-linkcard-settings.php:493
589
  msgid "none"
590
  msgstr "なし"
591
 
592
- #: ../lib/pz-linkcard-settings.php:494
593
  msgid "solid"
594
  msgstr "solid/実線"
595
 
596
- #: ../lib/pz-linkcard-settings.php:495
597
  msgid "dotted"
598
  msgstr "dotted/点線"
599
 
600
- #: ../lib/pz-linkcard-settings.php:496
601
  msgid "dashed"
602
  msgstr "dashed/破線"
603
 
604
- #: ../lib/pz-linkcard-settings.php:497
605
  msgid "double"
606
  msgstr "double/二重線"
607
 
608
- #: ../lib/pz-linkcard-settings.php:498
609
  msgid "groove"
610
  msgstr "groove/立体(へこみ)"
611
 
612
- #: ../lib/pz-linkcard-settings.php:499
613
  msgid "ridge"
614
  msgstr "ridge/立体(隆起)"
615
 
616
- #: ../lib/pz-linkcard-settings.php:500
617
  msgid "inset"
618
  msgstr "inset/立体(押したボタンのような効果)"
619
 
620
- #: ../lib/pz-linkcard-settings.php:501
621
  msgid "outset"
622
  msgstr "outset/立体(ボタンのような効果)"
623
 
624
- #: ../lib/pz-linkcard-settings.php:513
625
  msgid "Reset img style"
626
  msgstr "CSSリセット(img)"
627
 
628
- #: ../lib/pz-linkcard-settings.php:514
629
  msgid ""
630
  "When unnecessary frame is displayed on the image, you can improve it by case"
631
  msgstr "画像がずれて表示されるときに改善される可能性が有ります(推奨)"
632
 
633
- #: ../lib/pz-linkcard-settings.php:518
634
  msgid "Display SNS Count"
635
  msgstr "シェア数を表示する"
636
 
637
- #: ../lib/pz-linkcard-settings.php:522
638
  msgid "After Title"
639
  msgstr "タイトルの後ろ"
640
 
641
- #: ../lib/pz-linkcard-settings.php:523
642
  msgid "After site-name"
643
  msgstr "サイト情報の後ろ"
644
 
645
- #: ../lib/pz-linkcard-settings.php:525
646
  msgid "Twitter"
647
  msgstr "ツイッター"
648
 
649
- #: ../lib/pz-linkcard-settings.php:526
650
  msgid "Facebook"
651
  msgstr "フェイスブック(シェア数)"
652
 
653
- #: ../lib/pz-linkcard-settings.php:527
654
  msgid "Hatena"
655
  msgstr "はてなブックマーク"
656
 
657
- #: ../lib/pz-linkcard-settings.php:528
658
  msgid ""
659
  "There is a possibility that the screen display is slow If you enable this "
660
  "setting."
661
  msgstr "有効にする取得APIによっては表示が遅くなる場合があります。"
662
 
663
- #: ../lib/pz-linkcard-settings.php:534
664
  msgid "Letters"
665
  msgstr "文字設定"
666
 
667
- #: ../lib/pz-linkcard-settings.php:538
668
  msgid "Site-info."
669
  msgstr "サイト情報"
670
 
671
- #: ../lib/pz-linkcard-settings.php:546 ../lib/pz-linkcard-settings.php:575
672
- #: ../lib/pz-linkcard-settings.php:604 ../lib/pz-linkcard-settings.php:632
673
  msgid "Outline"
674
  msgstr "縁取り"
675
 
676
- #: ../lib/pz-linkcard-settings.php:556 ../lib/pz-linkcard-settings.php:585
677
- #: ../lib/pz-linkcard-settings.php:614 ../lib/pz-linkcard-settings.php:642
678
  msgid "Size"
679
  msgstr "大きさ"
680
 
681
- #: ../lib/pz-linkcard-settings.php:562 ../lib/pz-linkcard-settings.php:591
682
- #: ../lib/pz-linkcard-settings.php:648
683
  msgid "Length"
684
  msgstr "桁数"
685
 
686
- #: ../lib/pz-linkcard-settings.php:652
687
  msgid "Resize"
688
  msgstr "幅に合わせて縮小"
689
 
690
- #: ../lib/pz-linkcard-settings.php:653
691
  msgid "Adjust thumbnail and letter size according to width"
692
  msgstr "画面幅に合わせて文字とサムネイルの大きさを調整します。"
693
 
694
- #: ../lib/pz-linkcard-settings.php:659
695
  msgid "External link"
696
  msgstr "外部リンク"
697
 
698
- #: ../lib/pz-linkcard-settings.php:663 ../lib/pz-linkcard-settings.php:727
699
- #: ../lib/pz-linkcard-settings.php:787
700
  msgid "Background Color"
701
  msgstr "背景色"
702
 
703
- #: ../lib/pz-linkcard-settings.php:667
704
  msgid "Background image"
705
  msgstr "背景画像"
706
 
707
- #: ../lib/pz-linkcard-settings.php:675 ../lib/pz-linkcard-settings.php:687
708
- #: ../lib/pz-linkcard-settings.php:739 ../lib/pz-linkcard-settings.php:750
709
  msgid "Direct"
710
  msgstr "直接取得する"
711
 
712
- #: ../lib/pz-linkcard-settings.php:676 ../lib/pz-linkcard-settings.php:688
713
- #: ../lib/pz-linkcard-settings.php:740 ../lib/pz-linkcard-settings.php:751
714
  msgid "Use WebAPI"
715
  msgstr "WebAPIを利用する"
716
 
717
- #: ../lib/pz-linkcard-settings.php:677 ../lib/pz-linkcard-settings.php:689
718
- #: ../lib/pz-linkcard-settings.php:741 ../lib/pz-linkcard-settings.php:752
719
  msgid "Use WebAPI ,If can not direct"
720
  msgstr "直接取得できない場合、WebAPIを利用する"
721
 
722
- #: ../lib/pz-linkcard-settings.php:683 ../lib/pz-linkcard-settings.php:746
723
- #: ../lib/pz-linkcard-settings.php:799
724
  msgid "Favicon"
725
  msgstr "サイトアイコン"
726
 
727
- #: ../lib/pz-linkcard-settings.php:698 ../lib/pz-linkcard-settings.php:761
728
- #: ../lib/pz-linkcard-settings.php:807
729
  msgid "Open new window/tab"
730
  msgstr "新しいウィンドウで開く"
731
 
732
- #: ../lib/pz-linkcard-settings.php:702 ../lib/pz-linkcard-settings.php:765
733
  msgid "All client"
734
  msgstr "すべての端末"
735
 
736
- #: ../lib/pz-linkcard-settings.php:703 ../lib/pz-linkcard-settings.php:766
737
  msgid "Other than mobile"
738
  msgstr "モバイル端末以外"
739
 
740
- #: ../lib/pz-linkcard-settings.php:708 ../lib/pz-linkcard-settings.php:771
741
  msgid "Get contents"
742
  msgstr "記事取得方法"
743
 
744
- #: ../lib/pz-linkcard-settings.php:710 ../lib/pz-linkcard-settings.php:777
745
  msgid "Initially acquired only from the content"
746
  msgstr "カード管理画面に記録されている内容から表示する"
747
 
748
- #: ../lib/pz-linkcard-settings.php:714
749
  msgid "Set nofollow"
750
  msgstr "nofollowを付与する"
751
 
752
- #: ../lib/pz-linkcard-settings.php:715
753
  msgid "In the case of an external site, it puts the \"nofollow\""
754
  msgstr "外部リンクのリンクを nofollow にする"
755
 
756
- #: ../lib/pz-linkcard-settings.php:718
 
 
 
 
 
757
  msgid "Use HatenaBlogCard"
758
  msgstr "はてなブログカードを利用する"
759
 
760
- #: ../lib/pz-linkcard-settings.php:719
761
  msgid "External links will use Always HatenaBlogCard."
762
  msgstr "外部リンクは「はてなブログカード」を利用する"
763
 
764
- #: ../lib/pz-linkcard-settings.php:719 ../lib/pz-linkcard-settings.php:921
765
- msgid "(Not recommended)"
766
- msgstr "(非推奨)"
767
-
768
- #: ../lib/pz-linkcard-settings.php:724
769
  msgid "Internal link"
770
  msgstr "内部リンク"
771
 
772
- #: ../lib/pz-linkcard-settings.php:731 ../lib/pz-linkcard-settings.php:791
773
  msgid "Background Image"
774
  msgstr "背景画像"
775
 
776
- #: ../lib/pz-linkcard-settings.php:775
777
  msgid "Always get the latest from the content"
778
  msgstr "常に最新の記事内容から抜粋文を作成する"
779
 
780
- #: ../lib/pz-linkcard-settings.php:776
781
  msgid "Always get the latest from the excerpt"
782
  msgstr "抜粋文が設定されている投稿はそちらを優先する"
783
 
784
- #: ../lib/pz-linkcard-settings.php:784
785
  msgid "Same-page link"
786
  msgstr "同ページへのリンク"
787
 
788
- #: ../lib/pz-linkcard-settings.php:796 ../lib/pz-linkcard-settings.php:800
789
- #: ../lib/pz-linkcard-settings.php:808
790
  msgid "It is common with setting Internal-link"
791
  msgstr "内部リンク用の設定が使用されます"
792
 
793
- #: ../lib/pz-linkcard-settings.php:813
794
  msgid "Web-API"
795
  msgstr "画像取得APIの指定"
796
 
797
- #: ../lib/pz-linkcard-settings.php:816
798
  msgid "Favicon API"
799
  msgstr "ファビコンの取得API"
800
 
801
- #: ../lib/pz-linkcard-settings.php:819
802
  msgid ""
803
  "%DOMAIN% replace to domain name (ex. poporon.poponet.jp )<br>%DOMAIN_URL% "
804
  "replace to domain URL (ex. http://poporon.poponet.jp )"
@@ -807,173 +831,174 @@ msgstr ""
807
  "%DOMAIN_URL% と記述するとドメインのURL(例.http://poporon.poponet.jp)に置き"
808
  "換わります。"
809
 
810
- #: ../lib/pz-linkcard-settings.php:820 ../lib/pz-linkcard-settings.php:829
811
  msgid "ex1."
812
  msgstr "例1."
813
 
814
- #: ../lib/pz-linkcard-settings.php:821 ../lib/pz-linkcard-settings.php:830
815
  msgid "ex2."
816
  msgstr "例2."
817
 
818
- #: ../lib/pz-linkcard-settings.php:825
819
  msgid "Thumbnail API"
820
  msgstr "サムネイル画像の取得API"
821
 
822
- #: ../lib/pz-linkcard-settings.php:828
823
  msgid "%URL% replace to URL"
824
  msgstr "%URL% と記述するとURLに置き換わります"
825
 
826
- #: ../lib/pz-linkcard-settings.php:836
827
  msgid "Link check"
828
  msgstr "リンク先のチェック"
829
 
830
- #: ../lib/pz-linkcard-settings.php:839
831
  msgid "SSL verification disabled"
832
  msgstr "SSL検証を無効"
833
 
834
- #: ../lib/pz-linkcard-settings.php:840
835
  msgid "Try setting if the contents of the SSL site can not be acquired."
836
  msgstr ""
837
  "SSLサイトのタイトルや記事内容が取得できない場合に設定することで取得できる可能"
838
  "性があります。"
839
 
840
- #: ../lib/pz-linkcard-settings.php:843
841
  msgid "Follow location"
842
  msgstr "リダイレクト処理"
843
 
844
- #: ../lib/pz-linkcard-settings.php:844
845
  msgid "Track when the link destination is redirected."
846
  msgstr "リンク先がリダイレクトされている場合に追跡します。"
847
 
848
- #: ../lib/pz-linkcard-settings.php:847
849
  msgid "Broken link checker"
850
  msgstr "リンク切れチェック"
851
 
852
- #: ../lib/pz-linkcard-settings.php:848
853
  msgid "Alive confirmation of the link destination."
854
  msgstr "リンク先がアクセスできるか定期的に確認します。"
855
 
856
- #: ../lib/pz-linkcard-settings.php:853
857
  msgid "Debug"
858
  msgstr "詳しい人用(Debug)"
859
 
860
- #: ../lib/pz-linkcard-settings.php:856
861
  msgid "Trailing slash"
862
  msgstr "末尾のスラッシュ"
863
 
864
- #: ../lib/pz-linkcard-settings.php:860
865
  msgid "As it"
866
  msgstr "そのまま"
867
 
868
- #: ../lib/pz-linkcard-settings.php:861
869
  msgid "When only domain name, remove"
870
  msgstr "ドメイン名のみのときだけ削除"
871
 
872
- #: ../lib/pz-linkcard-settings.php:862
873
  msgid "Always remove"
874
  msgstr "常に削除"
875
 
876
- #: ../lib/pz-linkcard-settings.php:868
877
  msgid "specified CSS"
878
  msgstr "指定したCSSを使用"
879
 
880
- #: ../lib/pz-linkcard-settings.php:869
881
  msgid "Use specified CSS file"
882
  msgstr "指定したCSSファイルを使用する"
883
 
884
- #: ../lib/pz-linkcard-settings.php:872 ../lib/pz-linkcard-settings.php:876
885
  msgid "CSS file"
886
  msgstr "CSSファイル名"
887
 
888
- #: ../lib/pz-linkcard-settings.php:873
889
- msgid "(ex. http://exsample.com/style.css )"
 
890
  msgstr "例.http://exsample.com/style.css"
891
 
892
- #: ../lib/pz-linkcard-settings.php:880
893
  msgid "CSS URL"
894
  msgstr "CSSファイルのURL"
895
 
896
- #: ../lib/pz-linkcard-settings.php:885
897
  msgid "Class ID to be added(for PC)"
898
  msgstr "PCのときに追加するクラス名"
899
 
900
- #: ../lib/pz-linkcard-settings.php:889
901
  msgid "Class ID to be added(for Mobile)"
902
  msgstr "モバイルのときに追加するクラス名"
903
 
904
- #: ../lib/pz-linkcard-settings.php:894
905
  msgid "Google AMP"
906
  msgstr ""
907
 
908
- #: ../lib/pz-linkcard-settings.php:895
909
  msgid "Corresponds to simple display for Google AMP."
910
  msgstr "アクセスされたURLの末尾が「/amp」の場合、簡易表示に切り替える。"
911
 
912
- #: ../lib/pz-linkcard-settings.php:899
913
  msgid "Display link to author page"
914
  msgstr "プラグイン名を表示する"
915
 
916
- #: ../lib/pz-linkcard-settings.php:903
917
  msgid "Plugin URL"
918
  msgstr "プラグインページURL"
919
 
920
- #: ../lib/pz-linkcard-settings.php:907
921
  msgid "Plugin name"
922
  msgstr "プラグイン名"
923
 
924
- #: ../lib/pz-linkcard-settings.php:911
925
  msgid "Plugin version"
926
  msgstr "プラグインバージョン"
927
 
928
- #: ../lib/pz-linkcard-settings.php:915
929
  msgid "Saved datetime"
930
  msgstr "保存した日時"
931
 
932
- #: ../lib/pz-linkcard-settings.php:920
933
  msgid "Display elapsed time"
934
  msgstr "実行時間の表示"
935
 
936
- #: ../lib/pz-linkcard-settings.php:921
937
  msgid "Output the elapsed time to HTML comment."
938
  msgstr "作成にかかった時間をコメントとしてHTMLへ出力する"
939
 
940
- #: ../lib/pz-linkcard-settings.php:927
941
  msgid "Initialize"
942
  msgstr "初期化"
943
 
944
- #: ../lib/pz-linkcard-settings.php:930
945
  msgid "Return to the initial setting"
946
  msgstr "設定を初期状態へ戻す"
947
 
948
- #: ../lib/pz-linkcard-settings.php:936
949
  msgid "etc"
950
  msgstr "その他"
951
 
952
- #: ../lib/pz-linkcard-settings.php:939
953
  msgid "Author's site"
954
  msgstr "作者のサイト"
955
 
956
- #: ../lib/pz-linkcard-settings.php:940
957
  msgid "Popozure."
958
  msgstr "ぽぽづれ。"
959
 
960
- #: ../lib/pz-linkcard-settings.php:940
961
  msgid "Poporon's PC daily diary"
962
  msgstr "ぽぽろんのパソコンつれづれ(ズレズレ?)日記"
963
 
964
- #: ../lib/pz-linkcard-settings.php:943
965
  msgid "Plugin's page"
966
  msgstr "プラグインのページ"
967
 
968
- #: ../lib/pz-linkcard-settings.php:947
969
  msgid "Donation"
970
  msgstr "寄付"
971
 
972
- #: ../lib/pz-linkcard-style.php:438
973
  msgid "Style sheet saved."
974
  msgstr "設定を元にスタイルシートを自動生成しました。"
975
 
976
- #: ../lib/pz-linkcard-style.php:440
977
  msgid "Style sheet failed."
978
  msgstr "スタイルシートの自動生成に失敗しました。"
979
 
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"
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
+
158
+ #: ../lib/pz-linkcard-cacheman-list.php:120
159
  msgid "All"
160
  msgstr "すべて"
161
 
162
+ #: ../lib/pz-linkcard-cacheman-list.php:121
163
  msgid "Internal"
164
  msgstr "内部リンク"
165
 
166
+ #: ../lib/pz-linkcard-cacheman-list.php:122
167
  msgid "External"
168
  msgstr "外部リンク"
169
 
170
+ #: ../lib/pz-linkcard-cacheman-list.php:123
171
  msgid "Modify"
172
  msgstr "更新あり"
173
 
174
+ #: ../lib/pz-linkcard-cacheman-list.php:133
175
  msgid "Select batch"
176
  msgstr "一括処理を選択"
177
 
178
+ #: ../lib/pz-linkcard-cacheman-list.php:135
179
+ #: ../lib/pz-linkcard-cacheman-list.php:204
180
  msgid "Select"
181
  msgstr "選択してください"
182
 
183
+ #: ../lib/pz-linkcard-cacheman-list.php:136
184
  msgid "Renew cache"
185
  msgstr "記事内容を再取得する"
186
 
187
+ #: ../lib/pz-linkcard-cacheman-list.php:137
188
  msgid "Renew SNS count"
189
  msgstr "ソーシャルカウントを再取得する"
190
 
191
+ #: ../lib/pz-linkcard-cacheman-list.php:138
192
  msgid "Check status"
193
  msgstr "リンクが有効かチェックする"
194
 
195
+ #: ../lib/pz-linkcard-cacheman-list.php:139
196
  msgid "Delete from cache"
197
  msgstr "キャッシュから削除する"
198
 
199
+ #: ../lib/pz-linkcard-cacheman-list.php:141
200
  msgid "Submit"
201
  msgstr "適用"
202
 
203
+ #: ../lib/pz-linkcard-cacheman-list.php:145
204
  msgid "Select domain"
205
  msgstr "ドメインを選択"
206
 
207
+ #: ../lib/pz-linkcard-cacheman-list.php:147
208
  msgid "All domain"
209
  msgstr "すべてのドメイン"
210
 
211
+ #: ../lib/pz-linkcard-cacheman-list.php:160
212
  msgid "Refine search"
213
  msgstr "絞り込み検索"
214
 
215
+ #: ../lib/pz-linkcard-cacheman-list.php:165
216
  msgid "items"
217
  msgstr "項目"
218
 
219
+ #: ../lib/pz-linkcard-cacheman-list.php:182
220
  msgid "Select all"
221
  msgstr "すべて選択"
222
 
223
+ #: ../lib/pz-linkcard-cacheman-list.php:193
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 "ショートコードが指定されていません。"
284
 
285
+ #: ../lib/pz-linkcard-settings.php:87
286
  msgid "Changes saved."
287
  msgstr "設定を保存しました。"
288
 
289
+ #: ../lib/pz-linkcard-settings.php:89
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"
431
  "どのショートコードでも title パラメータと content パラメータでタイトルと抜粋"
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 "&lt;BLOCKQUOTE&gt;で囲んで引用扱いにします"
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
  "%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
 
997
+ #: ../lib/pz-linkcard-style.php:441
998
  msgid "Style sheet saved."
999
  msgstr "設定を元にスタイルシートを自動生成しました。"
1000
 
1001
+ #: ../lib/pz-linkcard-style.php:443
1002
  msgid "Style sheet failed."
1003
  msgstr "スタイルシートの自動生成に失敗しました。"
1004
 
lib/pz-linkcard-cacheman-edit.php ADDED
@@ -0,0 +1,90 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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>
lib/pz-linkcard-cacheman-list.php ADDED
@@ -0,0 +1,335 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php if (!function_exists("get_option")) die; ?>
2
+ <?php
3
+
4
+ $orderby = strtolower($orderby); // 気持ち程度のインジェクション対策
5
+ switch ($orderby) {
6
+ case 'id':
7
+ case 'url':
8
+ case 'url_key':
9
+ case 'link_type':
10
+ case 'site_name':
11
+ case 'domain':
12
+ case 'charset':
13
+ case 'title':
14
+ case 'excerpt':
15
+ case 'result_code':
16
+ case 'alive_result':
17
+ case 'post_id':
18
+ case 'sns_twitter':
19
+ case 'sns_facebook':
20
+ case 'sns_hatena':
21
+ case 'regist':
22
+ case 'nexttime':
23
+ break;
24
+ default:
25
+ $orderby = 'regist';
26
+ $order = 'DESC';
27
+ }
28
+
29
+ $order = strtoupper($order);
30
+ if ($order != 'ASC' && $orderby == $orderby_now) {
31
+ $order = 'DESC';
32
+ }
33
+
34
+ // 抽出条件
35
+ $where = null;
36
+ $link_type = strtolower($link_type);
37
+ switch ($link_type) {
38
+ case 'internal':
39
+ $where = "url LIKE '".get_bloginfo('url')."%'";
40
+ break;
41
+ case 'external':
42
+ $where = "url NOT LIKE '".get_bloginfo('url')."%'";
43
+ break;
44
+ case 'modify':
45
+ $where = "alive_result <> result_code";
46
+ break;
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
+
58
+ // 検索SQL作成
59
+ $sql = "SELECT * FROM $this->db_name";
60
+ if (isset($where) && $where) {
61
+ $sql .= " WHERE $where";
62
+ }
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
+ // ページ数
73
+ $page_min = ($count_now > 0) ? 1 : 0;
74
+ $page_max = ceil($count_now / 10);
75
+ $page_now = ($paged < $page_min) ? $page_min : (($paged > $page_max) ? $page_max : $paged);
76
+ $page_prev = ($page_now > 1) ? $page_now - 1 : null;
77
+ $page_next = ($page_now < $page_max) ? $page_now + 1 : null;
78
+
79
+ $page_top = ($page_now < 1) ? 0 : (($page_now - 1) * 10); // 0 origin
80
+ $page_limit = isset($page_limit) ? intval($page_limit) : 10 ;
81
+
82
+ // 表示用データ
83
+ if (isset($page_limit)) {
84
+ $page_top = intval($page_top);
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";
92
+ if (strpos($sql, '--') || strpos($sql, 'UPDATE') || strpos($sql, 'UNION') ) { // 気持ち程度のインジェクション対策
93
+ die;
94
+ }
95
+ $domain_list = $wpdb->get_results($sql); // テーブルデータ
96
+
97
+ // SUB(CASE WHEN ... END) で一気に取れないぽい?
98
+ $count_all = 0;
99
+ $count_internal = 0;
100
+ $count_external = 0;
101
+ $count_modify = 0;
102
+ $result = $wpdb->get_row("SELECT COUNT(*) AS count FROM $this->db_name");
103
+ if (isset($result) && isset($result->count)) {
104
+ $count_all = $result->count;
105
+ }
106
+ $result = $wpdb->get_row("SELECT COUNT(*) AS count FROM $this->db_name WHERE url LIKE '".get_bloginfo('url')."%'");
107
+ if (isset($result) && isset($result->count)) {
108
+ $count_internal = $result->count;
109
+ }
110
+ $result = $wpdb->get_row("SELECT COUNT(*) AS count FROM $this->db_name WHERE url NOT LIKE '".get_bloginfo('url')."%'");
111
+ if (isset($result) && isset($result->count)) {
112
+ $count_external = $result->count;
113
+ }
114
+ $result = $wpdb->get_row("SELECT COUNT(*) AS count FROM $this->db_name WHERE alive_result <> result_code");
115
+ if (isset($result) && isset($result->count)) {
116
+ $count_modify = $result->count;
117
+ }
118
+ ?>
119
+ <ul class='subsubsub'>
120
+ <li class="all"><a href="?page=pz-linkcard-cache&link_type=all&orderby=regist&order=desc" <?php if ($link_type == 'all') echo 'class="current"'; ?>><?php _e('All', $this->text_domain); ?> <span class="count">(<?php echo $count_all; ?>)</span></a> |</li>
121
+ <li class="all"><a href="?page=pz-linkcard-cache&link_type=internal&orderby=regist&order=desc" <?php if ($link_type == 'internal') echo 'class="current"'; ?>><?php _e('Internal', $this->text_domain); ?> <span class="count">(<?php echo $count_internal; ?>)</span></a> |</li>
122
+ <li class="all"><a href="?page=pz-linkcard-cache&link_type=external&orderby=regist&order=desc" <?php if ($link_type == 'external') echo 'class="current"'; ?>><?php _e('External', $this->text_domain); ?> <span class="count">(<?php echo $count_external; ?>)</span></a> |</li>
123
+ <li class="all"><a href="?page=pz-linkcard-cache&link_type=modify&orderby=regist&order=desc" <?php if ($link_type == 'modify') echo 'class="current"'; ?>><?php _e('Modify', $this->text_domain); ?> <span class="count">(<?php echo $count_modify; ?>)</span></a></li>
124
+ </ul>
125
+
126
+ <form id="posts-filter" action="" method="post">
127
+ <?php wp_nonce_field('pz_cacheman'); ?>
128
+ <input type="hidden" name="page" value="pz-linkcard-cache">
129
+ <input type="hidden" name="paged" value="<?php echo $page_now; ?>">
130
+
131
+ <div class="tablenav top">
132
+ <div class="alignleft bulkactions">
133
+ <label for="bulk-action-selector-top" class="screen-reader-text"><?php _e('Select batch', $this->text_domain); ?></label>
134
+ <select name="action" id="bulk-action-selector-top">
135
+ <option value="-1" selected="selected"><?php _e('Select', $this->text_domain); ?></option>
136
+ <option value="renew"><?php _e('Renew cache', $this->text_domain); ?></option>
137
+ <option value="renew_sns"><?php _e('Renew SNS count', $this->text_domain); ?></option>
138
+ <option value="alive"><?php _e('Check status', $this->text_domain); ?></option>
139
+ <option value="delete"><?php _e('Delete from cache', $this->text_domain); ?></option>
140
+ </select>
141
+ <input type="submit" id="doaction" class="button action" value="<?php _e('Submit', $this->text_domain); ?>" onclick="return confirm(\''.__('Are you sure?', $this->text_domain).'\');" />
142
+ </div>
143
+
144
+ <div class="alignleft bulkactions">
145
+ <label for="bulk-action-selector-top" class="screen-reader-text"><?php _e('Select domain', $this->text_domain); ?></label>
146
+ <select name="refine" id="bulk-action-selector-top">
147
+ <option value="" selected="selected"><?php _e('All domain', $this->text_domain); ?></option>
148
+ <?php
149
+ $i = 0;
150
+ foreach ($domain_list as $rec) {
151
+ $i++;
152
+ echo '<option value="'.$rec->domain.'"';
153
+ if ($rec->domain == $refine) {
154
+ echo 'selected="selecter"';
155
+ }
156
+ echo '>'.$rec->domain.' ('.$rec->count.')</option>';
157
+ }
158
+ ?>
159
+ </select>
160
+ <input type="submit" id="doaction" class="button action" value="<?php _e('Refine search', $this->text_domain); ?>" />
161
+ </div>
162
+
163
+ <?php // ページング
164
+ echo '<div class="tablenav-pages">';
165
+ echo ' <span class="displaying-num">'.$count_all.__('items').'</span>';
166
+ echo ' <span class="pagination-links">';
167
+ echo_PageButton($page_min, $paged, '&laquo;', 'first-page');
168
+ echo_PageButton($page_prev, $paged, '&lsaquo;', 'prev-page');
169
+ echo ' <span class="paging-input"><label for="current-page-selector" class="screen-reader-text"></label><input class="current-page" id="current-page-selector" type="text" name="paged" value="'.$page_now.'" size="2" aria-describedby="table-paging" /> / <span class="total-pages">'.$page_max.'</span></span>';
170
+ echo_PageButton($page_next, $paged, '&rsaquo;', 'first-page');
171
+ echo_PageButton($page_max, $paged, '&raquo;', 'last-page');
172
+ echo ' </span>';
173
+ echo '</div>';
174
+ ?>
175
+ <br class="clear">
176
+ </div>
177
+
178
+ <div id="settings" style="clear:both;">
179
+ <table name="cachelist" class="widefat striped">
180
+ <thead>
181
+ <tr>
182
+ <td id="cb" class="manage-column column-cb check-column"><label class="screen-reader-text" for="cb-select-all-1"><?php _e('Select all', $this->text_domain); ?></label><input id="cb-select-all-1" type="checkbox" /></td>
183
+ <th scope="col" class="id" style="width: 3em;"> <?php echo_THC('id', __('ID', $this->text_domain) ); ?></th>
184
+ <th scope="col" class="url_key" style="width: 9em; display: none;"> <?php echo_THC('url_key', __('URL key', $this->text_domain) ); ?></th>
185
+ <th scope="col" class="url" style="min-width: 10em;"> <?php echo_THC('url', __('URL', $this->text_domain) ); ?></th>
186
+ <th scope="col" class="title" style="min-width: 10em;"> <?php echo_THC('title', __('Title', $this->text_domain) ); ?></th>
187
+ <th scope="col" class="excerpt" style="min-width: 20em;"> <?php echo_THC('excerpt', __('Excerpt', $this->text_domain) ); ?></th>
188
+ <th scope="col" class="charset" style="width: 4em; display: none;"> <?php echo_THC('charset', __('Charset', $this->text_domain) ); ?></th>
189
+ <th scope="col" class="domain" style="min-width: 6em;"> <?php echo_THC('domain', __('Domain', $this->text_domain) ); ?></th>
190
+ <th scope="col" class="sns" style="width: 2.5em;"> <?php echo_THC('sns_twitter', __('Tw', $this->text_domain)); echo '<br>'; echo_THC('sns_facebook', __('fb', $this->text_domain)); echo '<br>'; echo_THC('sns_hatena', __('B!', $this->text_domain)); ?></th>
191
+ <th scope="col" class="regist" style="width: 5em;"> <?php echo_THC('regist', __('Regist', $this->text_domain) ); ?></th>
192
+ <th scope="col" class="postid" style="width: 3em;"> <?php echo_THC('post_id', __('Post ID', $this->text_domain) ); ?></th>
193
+ <th scope="col" class="result" style="width: 2.5em;"> <?php echo_THC('result_code', __('Result code', $this->text_domain) ); ?><br><?php echo_THC('alive_result', __('(last)', $this->text_domain) ); ?></th>
194
+ </tr>
195
+ </thead>
196
+ <tbody>
197
+ <?php
198
+ foreach ($data_all as $data) {
199
+ echo '<tr>';
200
+ // echo '<td colspan=12">'.Pz_LinkCard::pz_getHTML(array('url' => $data->url)).'</td>';
201
+
202
+ $data_id = $data->id;
203
+ echo ' <th scope="row" class="check-column">';
204
+ echo ' <label class="screen-reader-text" for="cb-select-'.$data_id.'">'.__('Select', $this->text_domain).'</label>';
205
+ echo ' <input id="cb-select-'.$data_id.'" type="checkbox" name="id[]" value="'.$data_id.'" />';
206
+ echo ' <div class="locked-indicator"></div>';
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) {
219
+ $thumbnail_key = bin2hex(hash( 'sha256', $data->thumbnail, true));
220
+ $file_path = $this->options['thumbnail-dir'].$thumbnail_key;
221
+ $file_url = $this->options['thumbnail-url'].$thumbnail_key;
222
+ if (file_exists($file_path )) {
223
+ echo '<div><img src="'.$file_url.'" style="max-height: 48px; max-width: 48px;" alt=""></div>';
224
+ }
225
+ }
226
+ }
227
+ echo '</td>';
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%;">';
242
+ echo '<a href="'.wp_nonce_url('?page=pz-linkcard-cache&link_type='.$link_type.'&orderby='.$orderby.'&order='.$order.'&paged='.$page_now.'&refine='.$refine.'&action=edit&id[0]='.$data_id, 'pz_cacheman').'">'.__('edit',$this->text_domain).'</a> | ';
243
+ echo '<a href="'.wp_nonce_url('?page=pz-linkcard-cache&link_type='.$link_type.'&orderby='.$orderby.'&order='.$order.'&paged='.$page_now.'&refine='.$refine.'&action=renew&id[0]='.$data_id, 'pz_cacheman').'" onclick="return confirm(\''.__('Are you sure?', $this->text_domain).'\');">'.__('renew',$this->text_domain).'</a> | ';
244
+ echo '<a href="'.wp_nonce_url('?page=pz-linkcard-cache&link_type='.$link_type.'&orderby='.$orderby.'&order='.$order.'&paged='.$page_now.'&refine='.$refine.'&action=delete&id[0]='.$data_id, 'pz_cacheman').'" onclick="return confirm(\''.__('Are you sure?', $this->text_domain).'\');">'.__('delete',$this->text_domain).'</a>';
245
+ echo '</div>';
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>';
256
+ // echo ' <td><img src="'.$data->favicon.'" style="max-height: 100px; max-width: 100px;"></td>';
257
+ // echo ' <td style="word-break: break-all;">'.$data->favicon.'</td>';
258
+ // echo ' <td></td>';
259
+ echo ' <td style="font-size: 60%; text-align: right;">';
260
+ $sns_count = $data->sns_twitter;
261
+ echo (($sns_count >= 0) ? numKM($sns_count) : '-').'<br>';
262
+ $sns_count = $data->sns_facebook;
263
+ echo (($sns_count >= 0) ? numKM($sns_count) : '-').'<br>';
264
+ $sns_count = $data->sns_hatena;
265
+ echo (($sns_count >= 0) ? numKM($sns_count) : '-').'<br>';
266
+ echo '</td>';
267
+
268
+ echo ' <td>'.$data->regist.'</td>';
269
+ echo ' <td style="word-break: break-all;"><a href="'.get_permalink($data->post_id).'" target="_blank" title="'.get_the_title($data->post_id).'">'.$data->post_id.'</td>';
270
+ echo ' <td>'.$data->result_code.($data->result_code <> $data->alive_result ? '<br><span style="color:#f00;">('.$data->alive_result.')</span>' : '').'</td>';
271
+ echo '</tr>';
272
+ }
273
+
274
+ ?>
275
+ </tbody>
276
+ </table>
277
+ </div>
278
+ </form>
279
+ <!--
280
+ <div class="filemenu">
281
+ <form id="export" action="" method="post">
282
+ <?php wp_nonce_field('pz_cacheman'); ?>
283
+ <input type="hidden" name="page" value="pz-linkcard-cache">
284
+ <input type="hidden" name="action" value="filemenu">
285
+ <p class="submit">
286
+ <input type="submit" id="doaction" class="button" value="<?php echo __('Export'); ?>" />
287
+ </p>
288
+ </form>
289
+ </div>
290
+ -->
291
+ <?php
292
+ function echo_PageButton($page_link, $page_now, $text, $class_name) {
293
+ $orderby = isset($_REQUEST['orderby'] ) ? $_REQUEST['orderby'] : null;
294
+ $order = isset($_REQUEST['order'] ) ? $_REQUEST['order'] : null;
295
+ $refine = isset($_REQUEST['refine'] ) ? $_REQUEST['refine'] : null;
296
+ $link_type = isset($_REQUEST['link_type'] ) ? $_REQUEST['link_type'] : null;
297
+
298
+ if ($page_link != $page_now && !is_null($page_link)) {
299
+ echo '<a class="'.$class_name.'" href="?page=pz-linkcard-cache&link_type='.$link_type.'&orderby='.$orderby.'&order='.$order.'&refine='.$refine.'&paged='.$page_link.'">'.$text.'</a>';
300
+ } else {
301
+ echo '<span class="tablenav-pages-navspan">'.$text.'</span>';
302
+ }
303
+ }
304
+
305
+ function echo_THC($item, $text) {
306
+ $orderby = isset($_REQUEST['orderby'] ) ? $_REQUEST['orderby'] : null;
307
+ $order = isset($_REQUEST['order'] ) ? $_REQUEST['order'] : null;
308
+ $refine = isset($_REQUEST['refine'] ) ? $_REQUEST['refine'] : null;
309
+ $link_type = isset($_REQUEST['link_type'] ) ? $_REQUEST['link_type'] : null;
310
+
311
+ if ($item == $orderby) {
312
+ if ($order == 'DESC') {
313
+ $mark = '▼';
314
+ $order = 'ASC';
315
+ } else {
316
+ $mark = '▲';
317
+ $order = 'DESC';
318
+ }
319
+ } else {
320
+ $mark = '';
321
+ $order = 'DESC';
322
+ }
323
+ echo '<a href="?page=pz-linkcard-cache&link_type='.$link_type.'&orderby='.$item.'&order='.$order.'&refine='.$refine.'">'.$text.$mark.'</a>';
324
+ }
325
+
326
+ function numKM($count_str) {
327
+ $count = intval($count_str);
328
+ if ($count >= 10000000) {
329
+ return number_format($count / 1000000).'&nbsp;m';
330
+ } elseif ($count >= 1000) {
331
+ return number_format($count / 1000).'&nbsp;k';
332
+ } else {
333
+ return number_format($count);
334
+ }
335
+ }
lib/pz-linkcard-cacheman.php CHANGED
@@ -1,427 +1,160 @@
1
- <?php if (!function_exists("get_option")) die; ?>
2
- <?php
3
- if (!is_user_logged_in()) die;
4
-
5
- echo '<div class="wrap">';
6
- echo '<h1>'.__('LinkCard cache manager', $this->text_domain).'</h1>';
7
-
8
- // echo '<pre>';
9
- // print_r($_REQUEST);
10
- // echo '</pre>';
11
-
12
- $update = isset($_REQUEST['update'] ) ? $_REQUEST['update'] : null;
13
- $cancel = isset($_REQUEST['cancel'] ) ? $_REQUEST['cancel'] : null;
14
- $data = null;
15
- if ($update || $cancel) {
16
- if ($update) {
17
- $action = 'update';
18
- if (isset($_REQUEST['data']) && is_array($_REQUEST['data'])) {
19
- $data = $_REQUEST['data'];
20
- }
21
- } else {
22
- $action = null;
23
- }
24
- // $refine = null;
25
- $bulk_id = null;
26
- } else {
27
- $action = isset($_REQUEST['action'] ) ? $_REQUEST['action'] : null;
28
- // $refine = isset($_REQUEST['refine'] ) ? $_REQUEST['refine'] : null;
29
- $bulk_id = isset($_REQUEST['id'] ) ? $_REQUEST['id'] : null;
30
- }
31
- $refine = isset($_REQUEST['refine'] ) ? $_REQUEST['refine'] : null;
32
- $orderby = isset($_REQUEST['orderby'] ) ? $_REQUEST['orderby'] : null;
33
- $order = isset($_REQUEST['order'] ) ? $_REQUEST['order'] : null;
34
- $orderby_now = isset($_REQUEST['orderby_now'] ) ? $_REQUEST['orderby_now'] : null;
35
- $order_now = isset($_REQUEST['order_now'] ) ? $_REQUEST['order_now'] : null;
36
- $link_type = isset($_REQUEST['link_type'] ) ? $_REQUEST['link_type'] : null;
37
- $cache_id = isset($_REQUEST['cache_id'] ) ? $_REQUEST['cache_id'] : null;
38
- $confirm = isset($_REQUEST['confirm'] ) ? $_REQUEST['confirm'] : null;
39
- $result_code = isset($_REQUEST['result_code'] ) ? $_REQUEST['result_code'] : null;
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;
50
-
51
- if (isset($action)) {
52
- check_admin_referer('pz_cacheman');
53
-
54
- switch ($action) {
55
- case 'edit':
56
- if (isset($bulk_id) && is_array($bulk_id)) {
57
- $data = $this->pz_GetCache(array('id' => $bulk_id[0]));
58
- if (isset($data) && is_array($data)) {
59
- require_once ('pz-linkcard-edit.php');
60
- }
61
- }
62
- break;
63
- case 'update':
64
- if (isset($data) && is_array($data) && isset($data['id'])) {
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>';
71
- } else {
72
- echo '<div class="error fade"><p><strong>'.__('Update failed', $this->text_domain).'</strong></p></div>';
73
- }
74
- } else {
75
- echo '<div class="error fade"><p><strong>'.__('Update failed', $this->text_domain).'</strong></p></div>';
76
- }
77
- break;
78
- case 'renew_sns':
79
- if (isset($bulk_id) && is_array($bulk_id)) {
80
- echo '<div class="updated fade"><p><strong>'.__('Social count renew', $this->text_domain).'...';
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
- }
88
- echo '..';
89
- }
90
- echo __('completed', $this->text_domain).'</strong></p></div>';
91
- }
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
- }
108
- echo __('completed', $this->text_domain).'</strong></p></div>';
109
- }
110
- break;
111
- case 'renew':
112
- if (isset($bulk_id) && is_array($bulk_id)) {
113
- echo '<div class="updated fade"><p><strong>'.__('Cache renew', $this->text_domain).'..';
114
- foreach ($bulk_id as $data_id) {
115
- echo '.('.$data_id.').';
116
- $data = $this->pz_GetCache(array('id' => $data_id));
117
- if (isset($data) && is_array($data)) {
118
- $data = $this->pz_GetHTML( array('url' => $data['url'], 'force' => true ) );
119
- $data = $this->pz_SetCache( $data );
120
- }
121
- }
122
- echo '..';
123
- echo __('completed', $this->text_domain).'</strong></p></div>';
124
- }
125
- break;
126
- case 'delete':
127
- if (isset($bulk_id) && is_array($bulk_id)) {
128
- foreach ($bulk_id as $data_id) {
129
- $this->pz_DelCache(array('id' => $data_id) );
130
- }
131
- echo '<div class="updated fade"><p><strong>'.__('Cache deleted', $this->text_domain).'</strong></p></div>';
132
- }
133
- break;
134
- }
135
- }
136
-
137
- $orderby = strtolower($orderby); // 気持ち程度のインジェクション対策
138
- switch ($orderby) {
139
- case 'id':
140
- case 'url':
141
- case 'url_key':
142
- case 'link_type':
143
- case 'site_name':
144
- case 'domain':
145
- case 'charset':
146
- case 'title':
147
- case 'excerpt':
148
- case 'result_code':
149
- case 'alive_result':
150
- case 'post_id':
151
- case 'sns_twitter':
152
- case 'sns_facebook':
153
- case 'sns_hatena':
154
- case 'regist':
155
- case 'nexttime':
156
- break;
157
- default:
158
- $orderby = 'regist';
159
- $order = 'DESC';
160
- }
161
-
162
- $order = strtoupper($order);
163
- if ($order != 'ASC' && $orderby == $orderby_now) {
164
- $order = 'DESC';
165
- }
166
-
167
- // 抽出条件
168
- $where = null;
169
- $link_type = strtolower($link_type);
170
- switch ($link_type) {
171
- case 'internal':
172
- $where = "url LIKE '".get_bloginfo('url')."%'";
173
- break;
174
- case 'external':
175
- $where = "url NOT LIKE '".get_bloginfo('url')."%'";
176
- break;
177
- case 'modify':
178
- $where = "alive_result <> result_code";
179
- break;
180
- default:
181
- $link_type = 'all';
182
- }
183
- if (isset($refine) && $refine) {
184
- if ($where) {
185
- $where .= " AND domain='$refine'";
186
- } else {
187
- $where .= " domain='$refine'";
188
- }
189
- }
190
-
191
- // 検索SQL作成
192
- $sql = "SELECT * FROM $this->db_name";
193
- if (isset($where) && $where) {
194
- $sql .= " WHERE $where";
195
- }
196
- if (isset($orderby) && $orderby) {
197
- $sql .= " ORDER BY $orderby $order";
198
- }
199
- if (strpos($sql, '--') || strpos($sql, 'UPDATE') || strpos($sql, 'UNION') ) { // 気持ち程度のインジェクション対策
200
- die;
201
- }
202
- $data_all = $wpdb->get_results($sql); // テーブルデータ
203
- $count_now = count($data_all);
204
-
205
- // ページ数
206
- $page_min = ($count_now > 0) ? 1 : 0;
207
- $page_max = ceil($count_now / 10);
208
- $page_now = ($paged < $page_min) ? $page_min : (($paged > $page_max) ? $page_max : $paged);
209
- $page_prev = ($page_now > 1) ? $page_now - 1 : null;
210
- $page_next = ($page_now < $page_max) ? $page_now + 1 : null;
211
-
212
- $page_top = ($page_now < 1) ? 0 : (($page_now - 1) * 10); // 0 origin
213
- $page_limit = isset($page_limit) ? intval($page_limit) : 10 ;
214
-
215
- // 表示用データ
216
- if (isset($page_limit)) {
217
- $page_top = intval($page_top);
218
- $page_limit = intval($page_limit);
219
- $sql .= ' LIMIT '.$page_top.' , '.$page_limit;
220
- }
221
- $data_all = $wpdb->get_results($sql); // テーブルデータ
222
-
223
- // ドメイン一覧作成
224
- $sql = "SELECT domain, site_name, count(*) as count FROM $this->db_name GROUP BY domain ASC";
225
- if (strpos($sql, '--') || strpos($sql, 'UPDATE') || strpos($sql, 'UNION') ) { // 気持ち程度のインジェクション対策
226
- die;
227
- }
228
- $domain_list = $wpdb->get_results($sql); // テーブルデータ
229
-
230
- // SUB(CASE WHEN ... END) で一気に取れないぽい?
231
- $count_all = 0;
232
- $count_internal = 0;
233
- $count_external = 0;
234
- $count_modify = 0;
235
- $result = $wpdb->get_row("SELECT COUNT(*) AS count FROM $this->db_name");
236
- if (isset($result) && isset($result->count)) {
237
- $count_all = $result->count;
238
- }
239
- $result = $wpdb->get_row("SELECT COUNT(*) AS count FROM $this->db_name WHERE url LIKE '".get_bloginfo('url')."%'");
240
- if (isset($result) && isset($result->count)) {
241
- $count_internal = $result->count;
242
- }
243
- $result = $wpdb->get_row("SELECT COUNT(*) AS count FROM $this->db_name WHERE url NOT LIKE '".get_bloginfo('url')."%'");
244
- if (isset($result) && isset($result->count)) {
245
- $count_external = $result->count;
246
- }
247
- $result = $wpdb->get_row("SELECT COUNT(*) AS count FROM $this->db_name WHERE alive_result <> result_code");
248
- if (isset($result) && isset($result->count)) {
249
- $count_modify = $result->count;
250
- }
251
- ?>
252
- <ul class='subsubsub'>
253
- <li class="all"><a href="?page=pz-linkcard-cache&link_type=all&orderby=regist&order=desc" <?php if ($link_type == 'all') echo 'class="current"'; ?>><?php _e('All', $this->text_domain); ?> <span class="count">(<?php echo $count_all; ?>)</span></a> |</li>
254
- <li class="all"><a href="?page=pz-linkcard-cache&link_type=internal&orderby=regist&order=desc" <?php if ($link_type == 'internal') echo 'class="current"'; ?>><?php _e('Internal', $this->text_domain); ?> <span class="count">(<?php echo $count_internal; ?>)</span></a> |</li>
255
- <li class="all"><a href="?page=pz-linkcard-cache&link_type=external&orderby=regist&order=desc" <?php if ($link_type == 'external') echo 'class="current"'; ?>><?php _e('External', $this->text_domain); ?> <span class="count">(<?php echo $count_external; ?>)</span></a> |</li>
256
- <li class="all"><a href="?page=pz-linkcard-cache&link_type=modify&orderby=regist&order=desc" <?php if ($link_type == 'modify') echo 'class="current"'; ?>><?php _e('Modify', $this->text_domain); ?> <span class="count">(<?php echo $count_modify; ?>)</span></a></li>
257
- </ul>
258
-
259
- <form id="posts-filter" action="" method="post">
260
- <?php wp_nonce_field('pz_cacheman'); ?>
261
- <input type="hidden" name="page" value="pz-linkcard-cache">
262
- <input type="hidden" name="paged" value="<?php echo $page_now; ?>">
263
-
264
- <div class="tablenav top">
265
- <div class="alignleft actions bulkactions">
266
- <label for="bulk-action-selector-top" class="screen-reader-text"><?php _e('Select batch', $this->text_domain); ?></label>
267
- <select name="action" id="bulk-action-selector-top">
268
- <option value="-1" selected="selected"><?php _e('Select', $this->text_domain); ?></option>
269
- <option value="renew"><?php _e('Renew cache', $this->text_domain); ?></option>
270
- <option value="renew_sns"><?php _e('Renew SNS count', $this->text_domain); ?></option>
271
- <option value="alive"><?php _e('Check status', $this->text_domain); ?></option>
272
- <option value="delete"><?php _e('Delete from cache', $this->text_domain); ?></option>
273
- </select>
274
- <input type="submit" id="doaction" class="button action" value="<?php _e('Submit', $this->text_domain); ?>" onclick="return confirm(\''.__('Are you sure?', $this->text_domain).'\');" />
275
- </div>
276
-
277
- <div class="alignleft actions bulkactions">
278
- <label for="bulk-action-selector-top" class="screen-reader-text"><?php _e('Select domain', $this->text_domain); ?></label>
279
- <select name="refine" id="bulk-action-selector-top">
280
- <option value="" selected="selected"><?php _e('All domain', $this->text_domain); ?></option>
281
- <?php
282
- $i = 0;
283
- foreach ($domain_list as $rec) {
284
- $i++;
285
- echo '<option value="'.$rec->domain.'"';
286
- if ($rec->domain == $refine) {
287
- echo 'selected="selecter"';
288
- }
289
- echo '>'.$rec->domain.' ('.$rec->count.')</option>';
290
- }
291
- ?>
292
- </select>
293
- <input type="submit" id="doaction" class="button action" value="<?php _e('Refine search', $this->text_domain); ?>" />
294
- </div>
295
-
296
- <?php // ページング
297
- echo '<div class="tablenav-pages">';
298
- echo ' <span class="displaying-num">'.$count_all.__('items').'</span>';
299
- echo ' <span class="pagination-links">';
300
- echo_PageButton($page_min, $paged, '&laquo;', 'first-page');
301
- echo_PageButton($page_prev, $paged, '&lsaquo;', 'prev-page');
302
- echo ' <span class="paging-input"><label for="current-page-selector" class="screen-reader-text"></label><input class="current-page" id="current-page-selector" type="text" name="paged" value="'.$page_now.'" size="2" aria-describedby="table-paging" /> / <span class="total-pages">'.$page_max.'</span></span>';
303
- echo_PageButton($page_next, $paged, '&rsaquo;', 'first-page');
304
- echo_PageButton($page_max, $paged, '&raquo;', 'last-page');
305
- echo ' </span>';
306
- echo '</div>';
307
- ?>
308
- <br class="clear">
309
- </div>
310
-
311
- <div id="settings" style="clear:both;">
312
- <table name="cachelist" class="wp-list-table widefat fixed striped posts">
313
- <thead>
314
- <tr>
315
- <td id="cb" class="manage-column column-cb check-column"><label class="screen-reader-text" for="cb-select-all-1"><?php _e('Select all', $this->text_domain); ?></label><input id="cb-select-all-1" type="checkbox" /></td>
316
- <th class="id" style="width: 3em;"><?php echo_THC('id', __('ID', $this->text_domain) ); ?></th>
317
- <th class="url_key" style="width: 9em; display: none;"><?php echo_THC('url_key', __('URL key', $this->text_domain) ); ?></th>
318
- <th class="url" style="min-width: 10em;"><?php echo_THC('url', __('URL', $this->text_domain) ); ?></th>
319
- <th class="title" style="min-width: 10em;"><?php echo_THC('title', __('Title', $this->text_domain) ); ?></th>
320
- <th class="excerpt" style="min-width: 20em;"><?php echo_THC('excerpt', __('Excerpt', $this->text_domain) ); ?></th>
321
- <th class="charset" style="width: 4em;"><?php echo_THC('charset', __('Charset', $this->text_domain) ); ?></th>
322
- <th class="domain" style="min-width: 6em;"><?php echo_THC('domain', __('Domain', $this->text_domain) ); ?></th>
323
- <th class="tw" style="width: 2em;"><?php echo_THC('sns_twitter', __('Tw', $this->text_domain) ); ?></th>
324
- <th class="fb" style="width: 2em;"><?php echo_THC('sns_facebook', __('fb', $this->text_domain) ); ?></th>
325
- <th class="hb" style="width: 2em;"><?php echo_THC('sns_hatena', __('B!', $this->text_domain) ); ?></th>
326
- <th class="regist" style="width: 5em;"><?php echo_THC('regist', __('Regist', $this->text_domain) ); ?></th>
327
- <th class="postid" style="width: 3em;"><?php echo_THC('post_id', __('Post ID', $this->text_domain) ); ?></th>
328
- <th class="result" style="width: 2.5em;"><?php echo_THC('result_code', __('Result code', $this->text_domain) ); ?><br><?php echo_THC('alive_result', __('(last)', $this->text_domain) ); ?></th>
329
- </tr>
330
- </thead>
331
- <tbody>
332
- <?php
333
- foreach ($data_all as $data) {
334
- echo '<tr>';
335
- // echo '<td colspan=12">'.Pz_LinkCard::pz_getHTML(array('url' => $data->url)).'</td>';
336
-
337
- $data_id = $data->id;
338
- echo ' <th scope="row" class="check-column">';
339
- echo ' <label class="screen-reader-text" for="cb-select-'.$data_id.'">'.__('Select', $this->text_domain).'</label>';
340
- echo ' <input id="cb-select-'.$data_id.'" type="checkbox" name="id[]" value="'.$data_id.'" />';
341
- echo ' <div class="locked-indicator"></div>';
342
- echo ' </th>';
343
-
344
- echo ' <td>'.$data_id.'</td>';
345
- echo ' <td style="display: none;">'.bin2hex($data->url_key).'</td>';
346
-
347
- $url = esc_url($data->url);
348
- $title = htmlentities($data->title);
349
- echo ' <td colspan="2">';
350
- echo ' <div style="word-break: break-all; font-size: 60%;">';
351
- if ( $data->domain == $domain ) {
352
- echo '<a href="'.$url.'">'.$url.'</a>';
353
- } else {
354
- echo $url;
355
- }
356
- echo '</div><div>'.$title.'</div>';
357
- echo ' <div id="inline_'.$data_id.'"style="font-size: 90%;">';
358
- echo '<a href="'.wp_nonce_url('?page=pz-linkcard-cache&link_type='.$link_type.'&orderby='.$orderby.'&order='.$order.'&paged='.$page_now.'&refine='.$refine.'&action=edit&id[0]='.$data_id, 'pz_cacheman').'">'.__('edit',$this->text_domain).'</a> | ';
359
- echo '<a href="'.wp_nonce_url('?page=pz-linkcard-cache&link_type='.$link_type.'&orderby='.$orderby.'&order='.$order.'&paged='.$page_now.'&refine='.$refine.'&action=renew&id[0]='.$data_id, 'pz_cacheman').'" onclick="return confirm(\''.__('Are you sure?', $this->text_domain).'\');">'.__('renew',$this->text_domain).'</a> | ';
360
- echo '<a href="'.wp_nonce_url('?page=pz-linkcard-cache&link_type='.$link_type.'&orderby='.$orderby.'&order='.$order.'&paged='.$page_now.'&refine='.$refine.'&action=delete&id[0]='.$data_id, 'pz_cacheman').'" onclick="return confirm(\''.__('Are you sure?', $this->text_domain).'\');">'.__('delete',$this->text_domain).'</a>';
361
- echo '</div>';
362
- echo ' </td>';
363
-
364
- $excerpt= htmlentities(mb_strimwidth(html_entity_decode($data->excerpt), 0, 100, '...'));
365
- echo ' <td>'.$excerpt.'</td>';
366
- echo ' <td>'.$data->charset.'</td>';
367
-
368
- 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>';
369
- // echo ' <td><img src="'.$data->thumbnail.'" style="max-height: 100px; max-width: 100px;"></td>';
370
- // echo ' <td style="word-break: break-all;">'.$data->thumbnail.'</td>';
371
- // echo ' <td></td>';
372
- // echo ' <td><img src="'.$data->favicon.'" style="max-height: 100px; max-width: 100px;"></td>';
373
- // echo ' <td style="word-break: break-all;">'.$data->favicon.'</td>';
374
- // echo ' <td></td>';
375
- $sns_count = $data->sns_twitter;
376
- echo ' <td style="font-size: 60%;">'.(($sns_count >= 0) ? $sns_count : '-').'</td>';
377
- $sns_count = $data->sns_facebook;
378
- echo ' <td style="font-size: 60%;">'.(($sns_count >= 0) ? $sns_count : '-').'</td>';
379
- $sns_count = $data->sns_hatena;
380
- echo ' <td style="font-size: 60%;">'.(($sns_count >= 0) ? $sns_count : '-').'</td>';
381
-
382
- echo ' <td>'.$data->regist.'</td>';
383
- echo ' <td style="word-break: break-all;"><a href="'.get_permalink($data->post_id).'" target="_blank" title="'.get_the_title($data->post_id).'">'.$data->post_id.'</td>';
384
- echo ' <td>'.$data->result_code.($data->result_code <> $data->alive_result ? '<br><span style="color:#f00;">('.$data->alive_result.')</span>' : '').'</td>';
385
- echo '</tr>';
386
- }
387
-
388
- ?>
389
- </tbody>
390
- </table>
391
- </div>
392
- </div>
393
-
394
- <?php
395
- function echo_PageButton($page_link, $page_now, $text, $class_name) {
396
- $orderby = isset($_REQUEST['orderby'] ) ? $_REQUEST['orderby'] : null;
397
- $order = isset($_REQUEST['order'] ) ? $_REQUEST['order'] : null;
398
- $refine = isset($_REQUEST['refine'] ) ? $_REQUEST['refine'] : null;
399
- $link_type = isset($_REQUEST['link_type'] ) ? $_REQUEST['link_type'] : null;
400
-
401
- if ($page_link != $page_now && !is_null($page_link)) {
402
- echo '<a class="'.$class_name.'" href="?page=pz-linkcard-cache&link_type='.$link_type.'&orderby='.$orderby.'&order='.$order.'&refine='.$refine.'&paged='.$page_link.'">'.$text.'</a>';
403
- } else {
404
- echo '<span class="tablenav-pages-navspan">'.$text.'</span>';
405
- }
406
- }
407
-
408
- function echo_THC($item, $text) {
409
- $orderby = isset($_REQUEST['orderby'] ) ? $_REQUEST['orderby'] : null;
410
- $order = isset($_REQUEST['order'] ) ? $_REQUEST['order'] : null;
411
- $refine = isset($_REQUEST['refine'] ) ? $_REQUEST['refine'] : null;
412
- $link_type = isset($_REQUEST['link_type'] ) ? $_REQUEST['link_type'] : null;
413
-
414
- if ($item == $orderby) {
415
- if ($order == 'DESC') {
416
- $mark = '▼';
417
- $order = 'ASC';
418
- } else {
419
- $mark = '▲';
420
- $order = 'DESC';
421
- }
422
- } else {
423
- $mark = '';
424
- $order = 'DESC';
425
- }
426
- echo '<a href="?page=pz-linkcard-cache&link_type='.$link_type.'&orderby='.$item.'&order='.$order.'&refine='.$refine.'">'.$text.$mark.'</a>';
427
- }
1
+ <?php if (!function_exists("get_option")) die; ?>
2
+ <?php
3
+ if (!is_user_logged_in()) die;
4
+
5
+ echo '<div class="wrap">';
6
+ echo '<h1>'.__('LinkCard cache manager', $this->text_domain).'</h1>';
7
+
8
+ // echo '<pre>';
9
+ // print_r($_REQUEST);
10
+ // echo '</pre>';
11
+
12
+ $update = isset($_REQUEST['update'] ) ? $_REQUEST['update'] : null;
13
+ $cancel = isset($_REQUEST['cancel'] ) ? $_REQUEST['cancel'] : null;
14
+ $data = null;
15
+ if ($update || $cancel) {
16
+ if ($update) {
17
+ $action = 'update';
18
+ if (isset($_REQUEST['data']) && is_array($_REQUEST['data'])) {
19
+ $data = $_REQUEST['data'];
20
+ }
21
+ } else {
22
+ $action = null;
23
+ }
24
+ // $refine = null;
25
+ $bulk_id = null;
26
+ } else {
27
+ $action = isset($_REQUEST['action'] ) ? $_REQUEST['action'] : null;
28
+ // $refine = isset($_REQUEST['refine'] ) ? $_REQUEST['refine'] : null;
29
+ $bulk_id = isset($_REQUEST['id'] ) ? $_REQUEST['id'] : null;
30
+ }
31
+ $refine = isset($_REQUEST['refine'] ) ? $_REQUEST['refine'] : null;
32
+ $orderby = isset($_REQUEST['orderby'] ) ? $_REQUEST['orderby'] : null;
33
+ $order = isset($_REQUEST['order'] ) ? $_REQUEST['order'] : null;
34
+ $orderby_now = isset($_REQUEST['orderby_now'] ) ? $_REQUEST['orderby_now'] : null;
35
+ $order_now = isset($_REQUEST['order_now'] ) ? $_REQUEST['order_now'] : null;
36
+ $link_type = isset($_REQUEST['link_type'] ) ? $_REQUEST['link_type'] : null;
37
+ $cache_id = isset($_REQUEST['cache_id'] ) ? $_REQUEST['cache_id'] : null;
38
+ $confirm = isset($_REQUEST['confirm'] ) ? $_REQUEST['confirm'] : null;
39
+ $result_code = isset($_REQUEST['result_code'] ) ? $_REQUEST['result_code'] : null;
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;
50
+
51
+ if (isset($action)) {
52
+ check_admin_referer('pz_cacheman');
53
+
54
+ switch ($action) {
55
+ case 'edit':
56
+ if (isset($bulk_id) && is_array($bulk_id)) {
57
+ $data = $this->pz_GetCache(array('id' => $bulk_id[0]));
58
+ if (isset($data) && is_array($data)) {
59
+ require_once ('pz-linkcard-cacheman-edit.php');
60
+ }
61
+ }
62
+ break;
63
+ case 'update':
64
+ if (isset($data) && is_array($data) && isset($data['id'])) {
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>';
71
+ } else {
72
+ echo '<div class="error fade"><p><strong>'.__('Update failed', $this->text_domain).'</strong></p></div>';
73
+ }
74
+ } else {
75
+ echo '<div class="error fade"><p><strong>'.__('Update failed', $this->text_domain).'</strong></p></div>';
76
+ }
77
+ break;
78
+ case 'renew_sns':
79
+ if (isset($bulk_id) && is_array($bulk_id)) {
80
+ echo '<div class="updated fade"><p><strong>'.__('Social count renew', $this->text_domain).'...';
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
+ }
88
+ echo '..';
89
+ }
90
+ echo __('completed', $this->text_domain).'</strong></p></div>';
91
+ }
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
+ }
108
+ echo __('completed', $this->text_domain).'</strong></p></div>';
109
+ }
110
+ break;
111
+ case 'renew':
112
+ if (isset($bulk_id) && is_array($bulk_id)) {
113
+ echo '<div class="updated fade"><p><strong>'.__('Cache renew', $this->text_domain).'..';
114
+ foreach ($bulk_id as $data_id) {
115
+ echo '.('.$data_id.').';
116
+ $data = $this->pz_GetCache(array('id' => $data_id));
117
+ if (isset($data) && is_array($data)) {
118
+ $data = $this->pz_GetHTML( array('url' => $data['url'], 'force' => true ) );
119
+ $data = $this->pz_SetCache( $data );
120
+ }
121
+ }
122
+ echo '..';
123
+ echo __('completed', $this->text_domain).'</strong></p></div>';
124
+ }
125
+ break;
126
+ case 'delete':
127
+ if (isset($bulk_id) && is_array($bulk_id)) {
128
+ foreach ($bulk_id as $data_id) {
129
+ $this->pz_DelCache(array('id' => $data_id) );
130
+ }
131
+ echo '<div class="updated fade"><p><strong>'.__('Cache deleted', $this->text_domain).'</strong></p></div>';
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');
139
+ $handle2 = fopen($this->plugin_dir_path.'pz-linkcard-export-utf8-bom.csv', 'w');
140
+ if ($handle1 != false && $handle2 != false) {
141
+ fputs($handle1, $item."\n");
142
+ $bom = pack('C*',0xEF,0xBB,0xBF);
143
+ fputs($handle2, $bom.$item."\n");
144
+ foreach($data_all as $data) {
145
+ $rec = (array) $data;
146
+ fputcsv($handle1, $rec);
147
+ fputcsv($handle2, $rec);
148
+ }
149
+ fclose($handle1);
150
+ fclose($handle2);
151
+ echo '<form id="export" action="" method="post"><input type="button" id="export" class="button button-primary" value="'.__('Download Export File').'" onclick="window.open('."'".$this->plugin_dir_url.'pz-linkcard-export-utf8-bom.csv'."'".');" /></form>';
152
+
153
+ }
154
+ break;
155
+ default:
156
+ break;
157
+ }
158
+ }
159
+
160
+ require_once ('pz-linkcard-cacheman-list.php');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
lib/pz-linkcard-init.php CHANGED
@@ -52,7 +52,7 @@
52
  ) ".$wpdb->get_charset_collate()." ;";
53
  dbDelta($sql);
54
 
55
- // バグデータのメンテナンス
56
  $result = (array) $wpdb->get_results("SELECT url,id FROM $this->db_name ORDER BY url,id");
57
  $last_url = null;
58
  $last_id = null;
@@ -65,7 +65,17 @@
65
  $last_id = $data->id;
66
  }
67
  }
68
- // 生存確認用のデータ作成
 
 
 
 
 
 
 
 
 
 
69
  $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");
70
  if (isset($result) && is_array($result) && count($result) > 0) {
71
  foreach($result as $data) {
@@ -80,7 +90,24 @@
80
  }
81
  }
82
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
83
  wp_clear_scheduled_hook('pz_linkcard_check');
84
  wp_clear_scheduled_hook('pz_linkcard_alive');
85
- // wp_schedule_event(time() , 'hourly', 'pz_linkcard_check');
86
- // wp_schedule_event(time() , 'hourly', 'pz_linkcard_alive');
52
  ) ".$wpdb->get_charset_collate()." ;";
53
  dbDelta($sql);
54
 
55
+ // バグデータのメンテナンス(重複URLの削除)
56
  $result = (array) $wpdb->get_results("SELECT url,id FROM $this->db_name ORDER BY url,id");
57
  $last_url = null;
58
  $last_id = null;
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) {
71
+ foreach($result as $data) {
72
+ $new_url_key = hash( 'sha256', esc_url( $data->url ), true);
73
+ if ($data->url_key <> $new_url_key) {
74
+ $wpdb->update($this->db_name, array('url_key' => $new_url_key ) , array('id' => $data->id ) );
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) {
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/';
97
+ if (!is_dir($thumbnail_dir)) {
98
+ if (!wp_mkdir_p($thumbnail_dir)) {
99
+ $thumbnail_dir = $this->plugin_dir_path.'cache/';
100
+ $thumbnail_url = $this->plugin_dir_url .'cache/';
101
+ if (!wp_mkdir_p($file_dir)) {
102
+ $thumbnail_dir = null;
103
+ $thumbnail_url = null;
104
+ }
105
+ }
106
+ }
107
+ $this->options['thumbnail-dir'] = $thumbnail_dir;
108
+ $this->options['thumbnail-url'] = $thumbnail_url;
109
+ update_option('Pz_LinkCard_options', $this->options);
110
+
111
+ // WP-CRONのフック
112
  wp_clear_scheduled_hook('pz_linkcard_check');
113
  wp_clear_scheduled_hook('pz_linkcard_alive');
 
 
lib/pz-linkcard-settings.php CHANGED
@@ -39,98 +39,32 @@
39
  $result = false;
40
  }
41
 
42
- $width = $this->options['width'];
43
  if (substr($width, -1 ) == '%') {
44
- $this->options['width'] = preg_replace('/[^0-9]/', '', $width).'%';
45
- } else {
46
- $width = preg_replace('/[^0-9]/', '', $width);
47
- if ($width == '') {
48
- $this->options['width'] = $this->defaults['width'];
49
  } else {
50
- $this->options['width'] = $width.'px';
51
  }
52
- }
53
-
54
- $height = preg_replace('/[^0-9]/', '', $this->options['content-height']);
55
- if ($height == '') {
56
- $this->options['content-height'] = $this->defaults['content-height'];
57
  } else {
58
- $this->options['content-height'] = $height.'px';
59
- }
60
-
61
- $trim_count = preg_replace('/[^0-9]/', '', $this->options['trim-title']) - 0;
62
- if ($trim_count == 0) {
63
- $trim_count = $this->defaults['trim-title'];
64
- }
65
- $this->options['trim-title'] = $trim_count;
66
-
67
- $trim_count = preg_replace('/[^0-9]/', '', $this->options['trim-count']) - 0;
68
- if ($trim_count == 0) {
69
- $trim_count = $this->defaults['trim-count'];
70
- }
71
- $this->options['trim-count'] = $trim_count;
72
-
73
- $trim_count = preg_replace('/[^0-9]/', '', $this->options['trim-sitename']) - 0;
74
- if ($trim_count == 0) {
75
- $trim_count = $this->defaults['trim-sitename'];
76
- }
77
- $this->options['trim-sitename'] = $trim_count;
78
-
79
- $trim_count = preg_replace('/[^0-9]/', '', $this->options['size-title']) - 0;
80
- if ($trim_count == 0) {
81
- $trim_count = $this->defaults['size-title'];
82
- }
83
- $this->options['size-title'] = $trim_count.'px';
84
- $trim_count = preg_replace('/[^0-9]/', '', $this->options['height-title']) - 0;
85
- if ($trim_count == 0) {
86
- $trim_count = $this->defaults['height-title'];
87
- }
88
- $this->options['height-title'] = $trim_count.'px';
89
-
90
- $trim_count = preg_replace('/[^0-9]/', '', $this->options['size-url']) - 0;
91
- if ($trim_count == 0) {
92
- $trim_count = $this->defaults['size-url'];
93
  }
94
- $this->options['size-url'] = $trim_count.'px';
95
- $trim_count = preg_replace('/[^0-9]/', '', $this->options['height-url']) - 0;
96
- if ($trim_count == 0) {
97
- $trim_count = $this->defaults['height-url'];
98
- }
99
- $this->options['height-url'] = $trim_count.'px';
100
-
101
- $trim_count = preg_replace('/[^0-9]/', '', $this->options['thumbnail-width']) - 0;
102
- if ($trim_count == 0) {
103
- $trim_count = $this->defaults['thumbnail-width'];
104
- }
105
- $this->options['thumbnail-width'] = $trim_count.'px';
106
-
107
- $trim_count = preg_replace('/[^0-9]/', '', $this->options['border-width']) - 0;
108
- if ($trim_count == 0) {
109
- $trim_count = $this->defaults['border-width'];
110
- }
111
- $this->options['border-widtth'] = $trim_count.'px';
112
-
113
- $trim_count = preg_replace('/[^0-9]/', '', $this->options['size-excerpt']) - 0;
114
- if ($trim_count == 0) {
115
- $trim_count = $this->defaults['size-excerpt'];
116
- }
117
- $this->options['size-excerpt'] = $trim_count.'px';
118
- $trim_count = preg_replace('/[^0-9]/', '', $this->options['height-excerpt']) - 0;
119
- if ($trim_count == 0) {
120
- $trim_count = $this->defaults['height-excerpt'];
121
- }
122
- $this->options['height-excerpt'] = $trim_count.'px';
123
 
124
- $trim_count = preg_replace('/[^0-9]/', '', $this->options['size-info']) - 0;
125
- if ($trim_count == 0) {
126
- $trim_count = $this->defaults['size-info'];
127
- }
128
- $this->options['size-info'] = $trim_count.'px';
129
- $trim_count = preg_replace('/[^0-9]/', '', $this->options['height-info']) - 0;
130
- if ($trim_count == 0) {
131
- $trim_count = $this->defaults['height-info'];
132
- }
133
- $this->options['height-info'] = $trim_count.'px';
 
 
 
 
134
 
135
  $color_code = preg_replace('/[^0-9a-f]/i', '', $this->options['border-color']);
136
  $this->options['border-color'] = '#'.$color_code;
@@ -712,7 +646,7 @@
712
  </tr>
713
  <tr valign="top">
714
  <th scope="row"><?php _e('Set nofollow', $this->text_domain); ?></th>
715
- <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>
716
  </tr>
717
  <tr valign="top">
718
  <th scope="row"><?php _e('Use HatenaBlogCard', $this->text_domain); ?></th>
@@ -870,7 +804,7 @@
870
  </tr>
871
  <tr valign="top" style="display: none;">
872
  <th scope="row"><?php _e('CSS file', $this->text_domain); ?></th>
873
- <td><input name="properties[css-file]" type="text" id="inputtext" value="<?php echo esc_attr($this->options['css-file']); ?>" size="80" /><br><p><?php _e('(ex. http://exsample.com/style.css )', $this->text_domain); ?></p></td>
874
  </tr>
875
  <tr valign="top" style="display: none;">
876
  <th scope="row"><?php _e('CSS file', $this->text_domain); ?></th>
@@ -937,13 +871,13 @@
937
  <table class="form-table">
938
  <tr valign="top">
939
  <th scope="row"><?php _e("Author's site", $this->text_domain); ?></th>
940
- <td><?php echo __('Popozure.', $this->text_domain).' ('.__("Poporon's PC daily diary", $this->text_domain).')'; ?><BR><A href="http://popozure.info" target="_blank">http://popozure.info</A></td>
941
  </tr>
942
  <tr valign="top">
943
  <th scope="row"><?php _e("Plugin's page", $this->text_domain); ?></th>
944
- <td><A href="http://popozure.info/pz-linkcard" target="_blank">http://popozure.info/pz-linkcard</A></td>
945
  </tr>
946
- <tr valign="top">
947
  <th scope="row"><?php _e("Donation", $this->text_domain); ?></th>
948
  <td>https://www.amazon.co.jp/gp/registry/wishlist/2KIBQLC1VLA9X</td>
949
  </tr>
@@ -952,3 +886,13 @@
952
  </form>
953
  </div>
954
  </div>
 
 
 
 
 
 
 
 
 
 
39
  $result = false;
40
  }
41
 
42
+ $width = $this->options['width'];
43
  if (substr($width, -1 ) == '%') {
44
+ $width = pz_TrimNum($width, 0);
45
+ if ($width < 1 || $width > 100) {
46
+ $this->options['width'] = $this->defaults['width'];
 
 
47
  } else {
48
+ $this->options['width'] = $width.'%';
49
  }
 
 
 
 
 
50
  } else {
51
+ $this->options['width'] = pz_TrimNum($width, $this->defaults['width']).'px';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
52
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
53
 
54
+ $this->options['content-height'] = pz_TrimNum($this->options['content-height'], $this->defaults['content-height'] ).'px';
55
+ $this->options['trim-title'] = pz_TrimNum($this->options['trim-title'], $this->defaults['trim-title']);
56
+ $this->options['trim-count'] = pz_TrimNum($this->options['trim-count'], $this->defaults['trim-count']);
57
+ $this->options['trim-sitename'] = pz_TrimNum($this->options['trim-sitename'], $this->defaults['trim-sitename']);
58
+ $this->options['size-title'] = pz_TrimNum($this->options['size-title'], $this->defaults['size-title']).'px';
59
+ $this->options['height-title'] = pz_TrimNum($this->options['height-title'], $this->defaults['height-title']).'px';
60
+ $this->options['size-url'] = pz_TrimNum($this->options['size-url'], $this->defaults['size-url']).'px';
61
+ $this->options['height-url'] = pz_TrimNum($this->options['height-url'], $this->defaults['height-url']).'px';
62
+ $this->options['size-excerpt'] = pz_TrimNum($this->options['size-excerpt'], $this->defaults['size-excerpt']).'px';
63
+ $this->options['height-excerpt'] = pz_TrimNum($this->options['height-excerpt'], $this->defaults['height-excerpt']).'px';
64
+ $this->options['size-info'] = pz_TrimNum($this->options['size-info'], $this->defaults['size-info']).'px';
65
+ $this->options['height-info'] = pz_TrimNum($this->options['height-info'], $this->defaults['height-info']).'px';
66
+ $this->options['thumbnail-width'] = pz_TrimNum($this->options['thumbnail-width'], $this->defaults['thumbnail-width']).'px';
67
+ $this->options['border-width'] = pz_TrimNum($this->options['border-width'], $this->defaults['border-width']).'px';
68
 
69
  $color_code = preg_replace('/[^0-9a-f]/i', '', $this->options['border-color']);
70
  $this->options['border-color'] = '#'.$color_code;
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>
804
  </tr>
805
  <tr valign="top" style="display: none;">
806
  <th scope="row"><?php _e('CSS file', $this->text_domain); ?></th>
807
+ <td><input name="properties[css-file]" type="text" id="inputtext" value="<?php echo esc_attr($this->options['css-file']); ?>" size="80" /><br><p><?php _e('(ex. https://exsample.com/style.css )', $this->text_domain); ?></p></td>
808
  </tr>
809
  <tr valign="top" style="display: none;">
810
  <th scope="row"><?php _e('CSS file', $this->text_domain); ?></th>
871
  <table class="form-table">
872
  <tr valign="top">
873
  <th scope="row"><?php _e("Author's site", $this->text_domain); ?></th>
874
+ <td><?php echo __('Popozure.', $this->text_domain).' ('.__("Poporon's PC daily diary", $this->text_domain).')'; ?><BR><A href="https://popozure.info" target="_blank">https://popozure.info</A></td>
875
  </tr>
876
  <tr valign="top">
877
  <th scope="row"><?php _e("Plugin's page", $this->text_domain); ?></th>
878
+ <td><A href="https://popozure.info/pz-linkcard" target="_blank">https://popozure.info/pz-linkcard</A></td>
879
  </tr>
880
+ <tr valign="top" style="display: none;">
881
  <th scope="row"><?php _e("Donation", $this->text_domain); ?></th>
882
  <td>https://www.amazon.co.jp/gp/registry/wishlist/2KIBQLC1VLA9X</td>
883
  </tr>
886
  </form>
887
  </div>
888
  </div>
889
+ <?php
890
+ function pz_TrimNum($val, $zero = 0 ) {
891
+ $val = preg_replace('/[^0-9]/', '', $val) - 0;
892
+ if ($val == 0) {
893
+ $val = $zero;
894
+ $val = preg_replace('/[^0-9]/', '', $val) - 0;
895
+ }
896
+ return $val;
897
+ }
898
+
lib/pz-linkcard-style.php CHANGED
@@ -14,6 +14,9 @@
14
  $css_url = $wp_upload_dir['baseurl'].'/'.$this->slug.'-style.css';
15
  }
16
  }
 
 
 
17
  if (is_null($this->options['css-path']) || is_null($this->options['css-url']) || $this->options['css-path'] <> $css_path || $this->options['css-url'] <> $css_url) {
18
  $this->options['css-path'] = $css_path;
19
  $this->options['css-url'] = $css_url;
14
  $css_url = $wp_upload_dir['baseurl'].'/'.$this->slug.'-style.css';
15
  }
16
  }
17
+ if (preg_match('/.*(\/\/.*)/', $css_url, $m)) {
18
+ $css_url = $m[1];
19
+ }
20
  if (is_null($this->options['css-path']) || is_null($this->options['css-url']) || $this->options['css-path'] <> $css_path || $this->options['css-url'] <> $css_url) {
21
  $this->options['css-path'] = $css_path;
22
  $this->options['css-url'] = $css_url;
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.1
7
  Author: poporon
8
  Author URI: http://poporon.poponet.jp
9
  License: GPLv2 or later
@@ -48,7 +48,7 @@ class Pz_LinkCard {
48
  'radius' => null,
49
  'shadow' => '1',
50
  'shadow-inset' => null,
51
- 'special-format' => 'LkC',
52
  'use-inline' => null,
53
  'use-sitename' => '1',
54
  'use-hatena' => null,
@@ -121,9 +121,11 @@ class Pz_LinkCard {
121
  'blockquote' => null,
122
  'nofollow' => null,
123
  'presence' => null,
 
 
124
  'plugin-link' => null,
125
  'plugin-name' => 'Pz-LinkCard',
126
- 'plugin-version' => '1.8.1',
127
  'plugin-url' => 'http://poporon.poponet.jp/pz-linkcard',
128
  'pz-hbc-options' => null,
129
  'debug-time' => null
@@ -554,7 +556,7 @@ class Pz_LinkCard {
554
  }
555
 
556
  // リンク先URL
557
- $not_allow_code = array('403','410');
558
  if (array_search($alive_result, $not_allow_code)) {
559
  $a_op_all = '<span style="cursor: not-allowed;" title="">';
560
  $a_cl_all = '</span>';
@@ -1198,18 +1200,26 @@ class Pz_LinkCard {
1198
  if (!isset($url) || $url == '' || $url == 'https://s0.wp.com/i/blank.jpg') {
1199
  return null;
1200
  }
1201
- $file_name = 'thumbnail/'.bin2hex(hash('sha256', $url, true));
1202
- //$file_name = 'thumbnail/'.rawurlencode($url).'.thumbnail';
1203
- $file_path = $this->plugin_dir_path.$file_name;
1204
- $file_url = $this->plugin_dir_url.$file_name;
 
 
 
 
 
 
1205
  if (file_exists($file_path )) {
1206
  return $file_url;
1207
  }
 
1208
  list($width, $height) = @getimagesize($url);
1209
  if (!isset($width) || !isset($height) || $width < 8 || $height < 8) {
1210
  return null;
1211
  }
1212
- $image = imagecreatefromstring(file_get_contents($url));
 
1213
  $new_width = 100;
1214
  $new_height = 100;
1215
  if ($width <> $height) {
@@ -1228,7 +1238,9 @@ class Pz_LinkCard {
1228
  // 管理画面時のスタイルシート、スクリプト設定
1229
  public function enqueue_admin($hook) {
1230
  wp_enqueue_style ('wp-color-picker');
1231
- wp_enqueue_script ('colorpicker-script', plugins_url('color-picker.js', __FILE__), array('wp-color-picker'), false, true);
 
 
1232
  }
1233
 
1234
  // 通常時のスタイルシート
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
48
  'radius' => null,
49
  'shadow' => '1',
50
  'shadow-inset' => null,
51
+ 'special-format' => 'hbc',
52
  'use-inline' => null,
53
  'use-sitename' => '1',
54
  'use-hatena' => null,
121
  'blockquote' => null,
122
  'nofollow' => null,
123
  'presence' => null,
124
+ 'thumbnail-dir' => null,
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
556
  }
557
 
558
  // リンク先URL
559
+ $not_allow_code = array('403','404','410');
560
  if (array_search($alive_result, $not_allow_code)) {
561
  $a_op_all = '<span style="cursor: not-allowed;" title="">';
562
  $a_cl_all = '</span>';
1200
  if (!isset($url) || $url == '' || $url == 'https://s0.wp.com/i/blank.jpg') {
1201
  return null;
1202
  }
1203
+
1204
+ $file_dir = $this->options['thumbnail-dir'];
1205
+ if (!is_dir($file_dir)) {
1206
+ return null;
1207
+ }
1208
+
1209
+ $file_name = bin2hex(hash('sha256', esc_url( $url ), true));
1210
+ $file_path = $file_dir.$file_name;
1211
+ $file_url = $this->options['thumbnail-url'].$file_name;
1212
+
1213
  if (file_exists($file_path )) {
1214
  return $file_url;
1215
  }
1216
+
1217
  list($width, $height) = @getimagesize($url);
1218
  if (!isset($width) || !isset($height) || $width < 8 || $height < 8) {
1219
  return null;
1220
  }
1221
+ $image = imagecreatefromstring( file_get_contents($url) );
1222
+
1223
  $new_width = 100;
1224
  $new_height = 100;
1225
  if ($width <> $height) {
1238
  // 管理画面時のスタイルシート、スクリプト設定
1239
  public function enqueue_admin($hook) {
1240
  wp_enqueue_style ('wp-color-picker');
1241
+ wp_enqueue_script ('colorpicker-script', plugins_url('color-picker.js', __FILE__), array('wp-color-picker'), false, true);
1242
+ wp_enqueue_media();
1243
+ wp_enqueue_script ('media-uploader', plugins_url("media-uploader.js", __FILE__), array('jquery'), false, false);
1244
  }
1245
 
1246
  // 通常時のスタイルシート
readme.txt CHANGED
@@ -156,6 +156,22 @@ A5.
156
 
157
  == Changelog ==
158
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
159
  Ver1.8.1
160
  * WordPress 4.8 での動作確認。
161
  Compatible with WordPress 4.8
@@ -175,9 +191,9 @@ Ver1.8.0
175
  Added: Tiny format 'Pushpin'.
176
 
177
  Ver1.7.9.1
178
- * Fixed: Fixed a bug. Incorrect font size of excerpt.
179
-
180
  * 抜粋文の文字フォントサイズが枠線のものになってしまう不具合を修正。(Thanks @cgrio0822)
 
 
181
 
182
  Ver1.7.9
183
  * Fixed: Fixed a bug that table is not created.
156
 
157
  == Changelog ==
158
 
159
+ Ver1.8.2
160
+ * スタイルシートのURLからスキームを削除しました。(Thanks @mataku_hair)
161
+ Modefied: The style sheet URL was corrected.
162
+ * InstantWPで使用した場合にカード管理画面が文字化けするのを修正しました。(Thanks aya)
163
+ Fixed: Fixed garbled characters on the management screen.
164
+ * 外部サイトのサムネイルの保存ディレクトリを変更しました。
165
+ Modefied: Changed directory to save thumbnails.
166
+ * カード管理画面を狭い画面で見ると表示が崩れるのを修正しました。
167
+ Fixed: Fixed display collapse of the management screen.
168
+ * カード管理画面の文字セットの列を非表示にしました。
169
+ Modefied: The character set column of the management screen was deleted.
170
+ * カード管理画面のソーシャルカウントの列をまとめました。
171
+ Modefied: Changed the social count column of the management screen.
172
+ * カード管理画面に外部サイトのサムネイル画像の表示を追加しました。
173
+ Modefied: The thumbnail display was added to the management screen.
174
+
175
  Ver1.8.1
176
  * WordPress 4.8 での動作確認。
177
  Compatible with WordPress 4.8
191
  Added: Tiny format 'Pushpin'.
192
 
193
  Ver1.7.9.1
 
 
194
  * 抜粋文の文字フォントサイズが枠線のものになってしまう不具合を修正。(Thanks @cgrio0822)
195
+ Fixed: Fixed a bug. Incorrect font size of excerpt.
196
+
197
 
198
  Ver1.7.9
199
  * Fixed: Fixed a bug that table is not created.