Pz-LinkCard - Version 1.6.0

Version Description

  • Modefied: Acquired without the wp_remote_get, modified to use a cURL.
  • Modefied: Fixed character set acquisition method.
  • Modefied: Fixed social count set acquisition method.
  • Added: Add the margins of the inner card.

  • wp_remote_get() cURL

  • charset

  • CSSThanks yunosuke

Download this release

Release Info

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

Code changes from version 1.1.1 to 1.6.0

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: 2015-10-16 01:25+0900\n"
8
- "PO-Revision-Date: 2015-10-16 01:27+0900\n"
9
  "Last-Translator: \n"
10
  "Language-Team: poporon\n"
11
  "Language: ja_JP\n"
@@ -19,7 +19,7 @@ msgstr ""
19
  "Plural-Forms: nplurals=1; plural=0;\n"
20
  "X-Poedit-SearchPath-0: ..\n"
21
 
22
- #: ../pz-linkcard-cacheman.php:6 ../pz-linkcard.php:909
23
  msgid "LinkCard cache manager"
24
  msgstr "リンクカード/DBキャッシュ管理"
25
 
@@ -35,142 +35,142 @@ msgstr "キャッシュの更新に失敗しました"
35
  msgid "Social count renew"
36
  msgstr "ソーシャルカウントの再取得"
37
 
38
- #: ../pz-linkcard-cacheman.php:84 ../pz-linkcard-cacheman.php:97
39
  msgid "completed"
40
  msgstr "完了しました"
41
 
42
- #: ../pz-linkcard-cacheman.php:89
43
  msgid "Cache renew"
44
  msgstr "記事内容の再取得"
45
 
46
- #: ../pz-linkcard-cacheman.php:105
47
  msgid "Cache deleted"
48
  msgstr "キャッシュから削除しました"
49
 
50
- #: ../pz-linkcard-cacheman.php:211
51
  msgid "All"
52
  msgstr "すべて"
53
 
54
- #: ../pz-linkcard-cacheman.php:212
55
  msgid "Internal"
56
  msgstr "内部リンク"
57
 
58
- #: ../pz-linkcard-cacheman.php:213
59
  msgid "External"
60
  msgstr "外部リンク"
61
 
62
- #: ../pz-linkcard-cacheman.php:223
63
  msgid "Select batch"
64
  msgstr "一括処理を選択"
65
 
66
- #: ../pz-linkcard-cacheman.php:225 ../pz-linkcard-cacheman.php:295
67
  msgid "Select"
68
  msgstr "選択してください"
69
 
70
- #: ../pz-linkcard-cacheman.php:226
71
  msgid "Renew cache"
72
  msgstr "記事内容を再取得する"
73
 
74
- #: ../pz-linkcard-cacheman.php:227
75
  msgid "Renew SNS count"
76
  msgstr "ソーシャルカウントを再取得する"
77
 
78
- #: ../pz-linkcard-cacheman.php:228
79
  msgid "Delete from cache"
80
  msgstr "キャッシュから削除する"
81
 
82
- #: ../pz-linkcard-cacheman.php:230
83
  msgid "Submit"
84
  msgstr "適用"
85
 
86
- #: ../pz-linkcard-cacheman.php:234
87
  msgid "Select domain"
88
  msgstr "ドメインを選択"
89
 
90
- #: ../pz-linkcard-cacheman.php:236
91
  msgid "All domain"
92
  msgstr "すべてのドメイン"
93
 
94
- #: ../pz-linkcard-cacheman.php:249
95
  msgid "Refine search"
96
  msgstr "絞り込み検索"
97
 
98
- #: ../pz-linkcard-cacheman.php:254
99
  msgid "items"
100
  msgstr "項目"
101
 
102
- #: ../pz-linkcard-cacheman.php:271
103
  msgid "Select all"
104
  msgstr "すべて選択"
105
 
106
- #: ../pz-linkcard-cacheman.php:272 ../pz-linkcard-edit.php:13
107
  msgid "ID"
108
  msgstr ""
109
 
110
- #: ../pz-linkcard-cacheman.php:273 ../pz-linkcard-edit.php:17
111
  msgid "URL key"
112
  msgstr "URLキー"
113
 
114
- #: ../pz-linkcard-cacheman.php:274 ../pz-linkcard-edit.php:21
115
- #: ../pz-linkcard-settings.php:339
116
  msgid "URL"
117
  msgstr "URL"
118
 
119
- #: ../pz-linkcard-cacheman.php:275 ../pz-linkcard-edit.php:33
120
- #: ../pz-linkcard-settings.php:322
121
  msgid "Title"
122
  msgstr "タイトル"
123
 
124
- #: ../pz-linkcard-cacheman.php:276 ../pz-linkcard-edit.php:37
125
- #: ../pz-linkcard-settings.php:354
126
  msgid "Excerpt"
127
  msgstr "抜粋文"
128
 
129
- #: ../pz-linkcard-cacheman.php:277 ../pz-linkcard-edit.php:41
130
  msgid "Charset"
131
  msgstr "文字セット"
132
 
133
- #: ../pz-linkcard-cacheman.php:278 ../pz-linkcard-edit.php:29
134
  msgid "Domain"
135
  msgstr "ドメイン"
136
 
137
- #: ../pz-linkcard-cacheman.php:279 ../pz-linkcard-edit.php:63
138
  msgid "Tw"
139
  msgstr ""
140
 
141
- #: ../pz-linkcard-cacheman.php:280 ../pz-linkcard-edit.php:64
142
  msgid "fb"
143
  msgstr ""
144
 
145
- #: ../pz-linkcard-cacheman.php:281 ../pz-linkcard-edit.php:65
146
  msgid "B!"
147
  msgstr ""
148
 
149
- #: ../pz-linkcard-cacheman.php:282 ../pz-linkcard-edit.php:77
150
  msgid "Regist"
151
  msgstr "登録日時"
152
 
153
- #: ../pz-linkcard-cacheman.php:283 ../pz-linkcard-edit.php:57
154
  msgid "Post ID"
155
  msgstr "記事ID"
156
 
157
- #: ../pz-linkcard-cacheman.php:284 ../pz-linkcard-edit.php:53
158
  msgid "Result code"
159
  msgstr "結果コード"
160
 
161
- #: ../pz-linkcard-cacheman.php:314
162
  msgid "edit"
163
  msgstr "編集"
164
 
165
- #: ../pz-linkcard-cacheman.php:315 ../pz-linkcard-cacheman.php:316
166
  msgid "Are you sure?"
167
  msgstr "実行します。"
168
 
169
- #: ../pz-linkcard-cacheman.php:315
170
  msgid "renew"
171
  msgstr "再取得"
172
 
173
- #: ../pz-linkcard-cacheman.php:316
174
  msgid "delete"
175
  msgstr "削除"
176
 
@@ -210,7 +210,7 @@ msgstr "更新"
210
  msgid "Cancel"
211
  msgstr "キャンセル"
212
 
213
- #: ../pz-linkcard-settings.php:4 ../pz-linkcard.php:911
214
  msgid "LinkCard Settings"
215
  msgstr "リンクカード設定"
216
 
@@ -218,609 +218,624 @@ msgstr "リンクカード設定"
218
  msgid "Short code is not set."
219
  msgstr "ショートコードが指定されていません。"
220
 
221
- #: ../pz-linkcard-settings.php:60
222
  msgid "Changes saved."
223
  msgstr "設定を保存しました。"
224
 
225
- #: ../pz-linkcard-settings.php:62
226
  msgid "Not changed."
227
  msgstr "設定は変更されませんでした。"
228
 
229
- #: ../pz-linkcard-settings.php:71
230
  msgid "Basic"
231
  msgstr "基本設定"
232
 
233
- #: ../pz-linkcard-settings.php:74
234
  msgid "ShortCode1"
235
  msgstr "ショートコード 1"
236
 
237
- #: ../pz-linkcard-settings.php:76 ../pz-linkcard-settings.php:94
238
- #: ../pz-linkcard-settings.php:99 ../pz-linkcard-settings.php:104
239
  msgid "Case-sensitive"
240
  msgstr "大文字と小文字を区別します"
241
 
242
- #: ../pz-linkcard-settings.php:79
243
  msgid "Use inlinetext"
244
  msgstr "ショートコードで囲んだ文字列"
245
 
246
- #: ../pz-linkcard-settings.php:83
247
  msgid "No use"
248
  msgstr "使用しない"
249
 
250
- #: ../pz-linkcard-settings.php:84
251
  msgid "Use to excerpt"
252
  msgstr "抜粋文として使用"
253
 
254
- #: ../pz-linkcard-settings.php:85
255
  msgid "Use to title"
256
  msgstr "タイトルとして使用"
257
 
258
- #: ../pz-linkcard-settings.php:88
259
  msgid "This setting applies only to the Shortcode1"
260
  msgstr "ショートコード1にのみ適用されます"
261
 
262
- #: ../pz-linkcard-settings.php:92
263
  msgid "ShortCode 2"
264
  msgstr "ショートコード 2"
265
 
266
- #: ../pz-linkcard-settings.php:97
267
  msgid "ShortCode 3"
268
  msgstr "ショートコード 3"
269
 
270
- #: ../pz-linkcard-settings.php:102
271
  msgid "ShortCode 4"
272
  msgstr "ショートコード 4"
273
 
274
- #: ../pz-linkcard-settings.php:108
275
  msgid "Special Format"
276
  msgstr "定型書式"
277
 
278
- #: ../pz-linkcard-settings.php:111 ../pz-linkcard-settings.php:219
279
- #: ../pz-linkcard-settings.php:249 ../pz-linkcard-settings.php:270
280
- #: ../pz-linkcard-settings.php:306 ../pz-linkcard-settings.php:425
281
- #: ../pz-linkcard-settings.php:435 ../pz-linkcard-settings.php:449
282
- #: ../pz-linkcard-settings.php:472 ../pz-linkcard-settings.php:482
283
- #: ../pz-linkcard-settings.php:496
284
  msgid "None"
285
  msgstr "なし"
286
 
287
- #: ../pz-linkcard-settings.php:112
288
  msgid "Pz-LkC Default"
289
  msgstr "Pz リンクカード 標準書式"
290
 
291
- #: ../pz-linkcard-settings.php:113
292
  msgid "Cellophane tape \"center\""
293
  msgstr "セロハンテープ(中央)"
294
 
295
- #: ../pz-linkcard-settings.php:114
296
  msgid "Cellophane tape \"Top corner\""
297
  msgstr "セロハンテープ(左上と右上)"
298
 
299
- #: ../pz-linkcard-settings.php:115
300
  msgid "Cellophane tape \"long\""
301
  msgstr "セロハンテープ(長め)"
302
 
303
- #: ../pz-linkcard-settings.php:116
304
  msgid "Slanting"
305
  msgstr "斜め"
306
 
307
- #: ../pz-linkcard-settings.php:117
308
  msgid "3D Rotate"
309
  msgstr "3D回転"
310
 
311
- #: ../pz-linkcard-settings.php:118
312
  msgid "Curling paper"
313
  msgstr "紙がめくれた効果(テーマとの相性があります)"
314
 
315
- #: ../pz-linkcard-settings.php:119
316
  msgid "Taping and curling"
317
  msgstr "テープと紙めくれ(テーマとの相性があります)"
318
 
319
- #: ../pz-linkcard-settings.php:120
320
  msgid "Neutral"
321
  msgstr "ブルーグリーン(黒背景推奨)"
322
 
323
- #: ../pz-linkcard-settings.php:121
324
  msgid "Orange"
325
  msgstr "オレンジ(黒背景推奨)"
326
 
327
- #: ../pz-linkcard-settings.php:122
328
  msgid "Green"
329
  msgstr "グリーン(黒背景推奨)"
330
 
331
- #: ../pz-linkcard-settings.php:123
332
  msgid "Blue"
333
  msgstr "ブルー(黒背景推奨)"
334
 
335
- #: ../pz-linkcard-settings.php:125
336
  msgid "Will some of the parameters are forcibly changed"
337
  msgstr "選択した定型書式によって、一部の設定が無効になります。"
338
 
339
- #: ../pz-linkcard-settings.php:131
340
  msgid "Style"
341
  msgstr "表示設定"
342
 
343
- #: ../pz-linkcard-settings.php:134
344
  msgid "Position"
345
  msgstr "配置設定"
346
 
347
- #: ../pz-linkcard-settings.php:141
348
  msgid "Margin top"
349
  msgstr "上の余白"
350
 
351
- #: ../pz-linkcard-settings.php:143 ../pz-linkcard-settings.php:158
352
- #: ../pz-linkcard-settings.php:175 ../pz-linkcard-settings.php:192
353
  msgid "Not defined"
354
  msgstr "設定しない"
355
 
356
- #: ../pz-linkcard-settings.php:144 ../pz-linkcard-settings.php:159
357
- #: ../pz-linkcard-settings.php:176 ../pz-linkcard-settings.php:193
358
  msgid "0"
359
  msgstr ""
360
 
361
- #: ../pz-linkcard-settings.php:145 ../pz-linkcard-settings.php:160
362
- #: ../pz-linkcard-settings.php:177 ../pz-linkcard-settings.php:194
363
- #: ../pz-linkcard-settings.php:394 ../pz-linkcard-settings.php:395
364
  msgid "4px"
365
  msgstr ""
366
 
367
- #: ../pz-linkcard-settings.php:146 ../pz-linkcard-settings.php:161
368
- #: ../pz-linkcard-settings.php:178 ../pz-linkcard-settings.php:195
369
  msgid "8px"
370
  msgstr ""
371
 
372
- #: ../pz-linkcard-settings.php:147 ../pz-linkcard-settings.php:162
373
- #: ../pz-linkcard-settings.php:179 ../pz-linkcard-settings.php:196
374
- #: ../pz-linkcard-settings.php:328
375
  msgid "16px"
376
  msgstr ""
377
 
378
- #: ../pz-linkcard-settings.php:148 ../pz-linkcard-settings.php:163
379
- #: ../pz-linkcard-settings.php:180 ../pz-linkcard-settings.php:197
380
  msgid "32px"
381
  msgstr ""
382
 
383
- #: ../pz-linkcard-settings.php:149 ../pz-linkcard-settings.php:164
384
- #: ../pz-linkcard-settings.php:181 ../pz-linkcard-settings.php:198
385
  msgid "64px"
386
  msgstr ""
387
 
388
- #: ../pz-linkcard-settings.php:156
389
  msgid "Margin left"
390
  msgstr "左の余白"
391
 
392
- #: ../pz-linkcard-settings.php:168
393
  msgid "Width"
394
  msgstr "カードの横幅"
395
 
396
- #: ../pz-linkcard-settings.php:169
397
  msgid "Height"
398
  msgstr "カードの高さ"
399
 
400
- #: ../pz-linkcard-settings.php:170
401
- msgid "Trim"
402
- msgstr "文字数"
403
-
404
- #: ../pz-linkcard-settings.php:173
405
  msgid "Margin right"
406
  msgstr "右の余白"
407
 
408
- #: ../pz-linkcard-settings.php:187
409
  msgid "Centering"
410
  msgstr "中央に寄せる"
411
 
412
- #: ../pz-linkcard-settings.php:190
413
  msgid "Margin bottom"
414
  msgstr "下の余白"
415
 
416
- #: ../pz-linkcard-settings.php:209
417
  msgid "Link the whole"
418
  msgstr "カード全体をリンク"
419
 
420
- #: ../pz-linkcard-settings.php:211
421
  msgid "Enclose the entire card at anchor"
422
  msgstr ""
423
  "カード全体をAタグで囲って、どこをクリックしてもリンク先を開くようにします。"
424
 
425
- #: ../pz-linkcard-settings.php:216
426
  msgid "Border"
427
  msgstr "枠線の太さ"
428
 
429
- #: ../pz-linkcard-settings.php:220
430
  msgid "Gray thin"
431
  msgstr "薄い色/細い(1px)"
432
 
433
- #: ../pz-linkcard-settings.php:221
434
  msgid "Gray"
435
  msgstr "薄い色/普通(2px)"
436
 
437
- #: ../pz-linkcard-settings.php:222
438
  msgid "Gray thick"
439
  msgstr "薄い色/太い(4px)"
440
 
441
- #: ../pz-linkcard-settings.php:223
442
  msgid "Black thin"
443
  msgstr "黒/細い(1px)"
444
 
445
- #: ../pz-linkcard-settings.php:224
446
  msgid "Black"
447
  msgstr "黒/普通(2px)"
448
 
449
- #: ../pz-linkcard-settings.php:225
450
  msgid "Black thick"
451
  msgstr "黒/太い(4px)"
452
 
453
- #: ../pz-linkcard-settings.php:226
454
  msgid "Black frame"
455
  msgstr "黒/額縁(8px)"
456
 
457
- #: ../pz-linkcard-settings.php:227
458
  msgid "Dodgerblue"
459
  msgstr "ドジャー・ブルー(明るい青)"
460
 
461
- #: ../pz-linkcard-settings.php:228
462
  msgid "Mediumaquamarine"
463
  msgstr "ミディアム・アクアマリーン(明るい緑)"
464
 
465
- #: ../pz-linkcard-settings.php:229
466
  msgid "Hotpink"
467
  msgstr "ホット・ピンク(明るい赤)"
468
 
469
- #: ../pz-linkcard-settings.php:230
470
  msgid "Double"
471
  msgstr "二重線"
472
 
473
- #: ../pz-linkcard-settings.php:231
474
  msgid "Dotted"
475
  msgstr "点線"
476
 
477
- #: ../pz-linkcard-settings.php:237
478
  msgid "Layout"
479
  msgstr "外観設定"
480
 
481
- #: ../pz-linkcard-settings.php:238
482
  msgid "Radius"
483
  msgstr "角を丸める"
484
 
485
- #: ../pz-linkcard-settings.php:247 ../pz-linkcard-settings.php:442
486
- #: ../pz-linkcard-settings.php:489 ../pz-linkcard-settings.php:524
487
  msgid "Site information"
488
  msgstr "サイト情報"
489
 
490
- #: ../pz-linkcard-settings.php:250
491
  msgid "Top"
492
  msgstr "上側"
493
 
494
- #: ../pz-linkcard-settings.php:251
495
  msgid "Bottom"
496
  msgstr "下側"
497
 
498
- #: ../pz-linkcard-settings.php:253
499
  msgid "Use SiteName"
500
  msgstr "サイト名称を使用"
501
 
502
- #: ../pz-linkcard-settings.php:258
503
  msgid "Separator line"
504
  msgstr "区切り線"
505
 
506
- #: ../pz-linkcard-settings.php:265
507
  msgid "Display URL"
508
  msgstr "リンク先のURLを表示する"
509
 
510
- #: ../pz-linkcard-settings.php:268 ../pz-linkcard-settings.php:422
511
- #: ../pz-linkcard-settings.php:469 ../pz-linkcard-settings.php:516
512
  msgid "Thumbnail"
513
  msgstr "サムネイル"
514
 
515
- #: ../pz-linkcard-settings.php:271
516
  msgid "Right"
517
  msgstr "右側"
518
 
519
- #: ../pz-linkcard-settings.php:272
520
  msgid "Left"
521
  msgstr "左側"
522
 
523
- #: ../pz-linkcard-settings.php:274 ../pz-linkcard-settings.php:299
524
  msgid "Shadow"
525
  msgstr "影を付ける"
526
 
527
- #: ../pz-linkcard-settings.php:279
528
  msgid "Hollow content area"
529
  msgstr "記事の情報に枠を付ける"
530
 
531
- #: ../pz-linkcard-settings.php:284
532
  msgid "Display excerpt"
533
  msgstr "抜粋文を表示する"
534
 
535
- #: ../pz-linkcard-settings.php:289
536
  msgid "Hollow"
537
  msgstr "内側に影を付ける"
538
 
539
- #: ../pz-linkcard-settings.php:303
540
  msgid "Display SNS Count"
541
  msgstr "シェア数を表示する"
542
 
543
- #: ../pz-linkcard-settings.php:307
544
  msgid "After Title"
545
  msgstr "タイトルの後ろ"
546
 
547
- #: ../pz-linkcard-settings.php:308
548
  msgid "After site-name"
549
  msgstr "サイト情報の後ろ"
550
 
551
- #: ../pz-linkcard-settings.php:310
552
  msgid "Twitter"
553
  msgstr "ツイッター"
554
 
555
- #: ../pz-linkcard-settings.php:311
556
  msgid "Facebook"
557
  msgstr "フェイスブック(シェア数)"
558
 
559
- #: ../pz-linkcard-settings.php:312
560
  msgid "Hatena"
561
  msgstr "はてなブックマーク"
562
 
563
- #: ../pz-linkcard-settings.php:313
564
  msgid ""
565
  "There is a possibility that the screen display is slow If you enable this "
566
  "setting."
567
  msgstr "有効にする取得APIによっては表示が遅くなる場合があります。"
568
 
569
- #: ../pz-linkcard-settings.php:319
570
  msgid "Letters"
571
  msgstr "文字設定"
572
 
573
- #: ../pz-linkcard-settings.php:327 ../pz-linkcard-settings.php:346
574
- #: ../pz-linkcard-settings.php:362 ../pz-linkcard-settings.php:379
 
 
 
 
 
 
 
 
 
 
 
 
575
  msgid "14px"
576
  msgstr ""
577
 
578
- #: ../pz-linkcard-settings.php:329
579
  msgid "18px"
580
  msgstr ""
581
 
582
- #: ../pz-linkcard-settings.php:330
583
  msgid "20px"
584
  msgstr ""
585
 
586
- #: ../pz-linkcard-settings.php:331
587
  msgid "24px"
588
  msgstr ""
589
 
590
- #: ../pz-linkcard-settings.php:332 ../pz-linkcard-settings.php:384
 
591
  msgid "100%"
592
  msgstr ""
593
 
594
- #: ../pz-linkcard-settings.php:333
595
  msgid "120%"
596
  msgstr ""
597
 
598
- #: ../pz-linkcard-settings.php:334
599
  msgid "140%"
600
  msgstr ""
601
 
602
- #: ../pz-linkcard-settings.php:344 ../pz-linkcard-settings.php:359
603
- #: ../pz-linkcard-settings.php:375 ../pz-linkcard-settings.php:396
 
 
 
 
 
604
  msgid "9px"
605
  msgstr ""
606
 
607
- #: ../pz-linkcard-settings.php:345 ../pz-linkcard-settings.php:361
608
- #: ../pz-linkcard-settings.php:377
609
  msgid "12px"
610
  msgstr ""
611
 
612
- #: ../pz-linkcard-settings.php:347 ../pz-linkcard-settings.php:363
613
- #: ../pz-linkcard-settings.php:381
614
  msgid "70%"
615
  msgstr ""
616
 
617
- #: ../pz-linkcard-settings.php:348 ../pz-linkcard-settings.php:364
618
- #: ../pz-linkcard-settings.php:382
619
  msgid "80%"
620
  msgstr ""
621
 
622
- #: ../pz-linkcard-settings.php:349 ../pz-linkcard-settings.php:365
623
- #: ../pz-linkcard-settings.php:383
624
  msgid "90%"
625
  msgstr ""
626
 
627
- #: ../pz-linkcard-settings.php:360 ../pz-linkcard-settings.php:376
628
  msgid "11px"
629
  msgstr ""
630
 
631
- #: ../pz-linkcard-settings.php:370
632
  msgid "Site-info."
633
  msgstr "サイト情報"
634
 
635
- #: ../pz-linkcard-settings.php:378
636
  msgid "13px"
637
  msgstr ""
638
 
639
- #: ../pz-linkcard-settings.php:380 ../pz-linkcard-settings.php:397
640
  msgid "60%"
641
  msgstr ""
642
 
643
- #: ../pz-linkcard-settings.php:389
644
  msgid "Plugin link"
645
  msgstr "プラグインのページ"
646
 
647
- #: ../pz-linkcard-settings.php:402
648
  msgid "Plugin-link"
649
  msgstr "プラグイン名"
650
 
651
- #: ../pz-linkcard-settings.php:410
652
  msgid "External link"
653
  msgstr "外部リンク"
654
 
655
- #: ../pz-linkcard-settings.php:414 ../pz-linkcard-settings.php:461
656
- #: ../pz-linkcard-settings.php:508
657
  msgid "Background Color"
658
  msgstr "背景色"
659
 
660
- #: ../pz-linkcard-settings.php:418
661
  msgid "Background image"
662
  msgstr "背景画像"
663
 
664
- #: ../pz-linkcard-settings.php:426 ../pz-linkcard-settings.php:436
665
- #: ../pz-linkcard-settings.php:473 ../pz-linkcard-settings.php:483
666
  msgid "Direct"
667
  msgstr "直接取得する"
668
 
669
- #: ../pz-linkcard-settings.php:427 ../pz-linkcard-settings.php:437
670
- #: ../pz-linkcard-settings.php:474 ../pz-linkcard-settings.php:484
671
  msgid "Use WebAPI"
672
  msgstr "WebAPIを利用する"
673
 
674
- #: ../pz-linkcard-settings.php:432 ../pz-linkcard-settings.php:479
675
- #: ../pz-linkcard-settings.php:520
676
  msgid "Favicon"
677
  msgstr "サイトアイコン"
678
 
679
- #: ../pz-linkcard-settings.php:446 ../pz-linkcard-settings.php:493
680
- #: ../pz-linkcard-settings.php:528
681
  msgid "Open new window/tab"
682
  msgstr "新しいウィンドウで開く"
683
 
684
- #: ../pz-linkcard-settings.php:450 ../pz-linkcard-settings.php:497
685
  msgid "All client"
686
  msgstr "すべての端末"
687
 
688
- #: ../pz-linkcard-settings.php:451 ../pz-linkcard-settings.php:498
689
  msgid "Other than mobile"
690
  msgstr "モバイル端末以外"
691
 
692
- #: ../pz-linkcard-settings.php:458
693
  msgid "Internal link"
694
  msgstr "内部リンク"
695
 
696
- #: ../pz-linkcard-settings.php:465 ../pz-linkcard-settings.php:512
697
  msgid "Background Image"
698
  msgstr "背景画像"
699
 
700
- #: ../pz-linkcard-settings.php:505
701
  msgid "Same-page link"
702
  msgstr "同ページへのリンク"
703
 
704
- #: ../pz-linkcard-settings.php:517 ../pz-linkcard-settings.php:521
705
- #: ../pz-linkcard-settings.php:529
706
  msgid "It is common with setting Internal-link"
707
  msgstr "内部リンク用の設定が使用されます"
708
 
709
- #: ../pz-linkcard-settings.php:534
710
  msgid "Web-API"
711
  msgstr "画像取得APIの指定"
712
 
713
- #: ../pz-linkcard-settings.php:537
714
  msgid "Favicon API"
715
  msgstr "ファビコンの取得API"
716
 
717
- #: ../pz-linkcard-settings.php:539
 
718
  msgid ""
719
- "%DOMAIN% replace to domain name (ex. poporon.poponet.jp )<br />%DOMAIN_URL% "
720
  "replace to domain URL (ex. http://poporon.poponet.jp )"
721
  msgstr ""
722
  "%DOMAIN% と記述するとドメイン名(例.poporon.poponet.jp)に、<br />"
723
  "%DOMAIN_URL% と記述するとドメインのURL(例.http://poporon.poponet.jp)に置き"
724
  "換わります。"
725
 
726
- #: ../pz-linkcard-settings.php:542
727
  msgid "Thumbnail API"
728
  msgstr "サムネイル画像の取得API"
729
 
730
- #: ../pz-linkcard-settings.php:544
731
  msgid "%URL% replace to URL"
732
  msgstr "%URL% と記述するとURLに置き換わります"
733
 
734
- #: ../pz-linkcard-settings.php:549
735
  msgid "Debug"
736
  msgstr "詳しい人用(Debug)"
737
 
738
- #: ../pz-linkcard-settings.php:552
739
  msgid "Use blockquote tag"
740
  msgstr "BLOCKQUOTEをタグを使用する"
741
 
742
- #: ../pz-linkcard-settings.php:554
743
  msgid "without using DIV tag, and use BLOCKQUOTE tag"
744
  msgstr "&lt;BLOCKQUOTE&gt;で囲んで引用扱いにします"
745
 
746
- #: ../pz-linkcard-settings.php:557
747
  msgid "Set nofollow"
748
  msgstr "nofollowを付与する"
749
 
750
- #: ../pz-linkcard-settings.php:559
751
  msgid "In the case of an external site, it puts the \"nofollow\""
752
  msgstr "外部リンクのリンクを nofollow にする"
753
 
754
- #: ../pz-linkcard-settings.php:563
755
  msgid "Reset img style"
756
  msgstr "CSSリセット(img)"
757
 
758
- #: ../pz-linkcard-settings.php:565
759
  msgid ""
760
  "When unnecessary frame is displayed on the image, you can improve it by case"
761
  msgstr "画像がずれて表示されるときに改善される可能性が有ります(推奨)"
762
 
763
- #: ../pz-linkcard-settings.php:569
764
  msgid "specified CSS"
765
  msgstr "指定したCSSを使用"
766
 
767
- #: ../pz-linkcard-settings.php:571
768
  msgid "Use specified CSS file"
769
  msgstr "指定したCSSファイルを使用する"
770
 
771
- #: ../pz-linkcard-settings.php:574 ../pz-linkcard-settings.php:579
772
  msgid "CSS file"
773
  msgstr "CSSファイル名"
774
 
775
- #: ../pz-linkcard-settings.php:576
776
  msgid "(ex. http://exsample.com/style.css )"
777
  msgstr "例.http://exsample.com/style.css"
778
 
779
- #: ../pz-linkcard-settings.php:583
780
  msgid "CSS URL"
781
  msgstr "CSSファイルのURL"
782
 
783
- #: ../pz-linkcard-settings.php:588
784
  msgid "Use HatenaBlogCard"
785
  msgstr "はてなブログカードを利用する"
786
 
787
- #: ../pz-linkcard-settings.php:590
788
  msgid "External links will use Always HatenaBlogCard (Not recommended)"
789
  msgstr "外部リンクは「はてなブログカード」を利用する(非推奨)"
790
 
791
- #: ../pz-linkcard-settings.php:594
792
  msgid "Display link to author page"
793
  msgstr "プラグイン名を表示する"
794
 
795
- #: ../pz-linkcard-settings.php:599
796
  msgid "Plugin URL"
797
  msgstr "プラグインページURL"
798
 
799
- #: ../pz-linkcard-settings.php:603
800
  msgid "Plugin name"
801
  msgstr "プラグイン名"
802
 
803
- #: ../pz-linkcard-settings.php:607
804
  msgid "Plugin version"
805
  msgstr "プラグインバージョン"
806
 
807
- #: ../pz-linkcard-settings.php:611
808
  msgid "Saved datetime"
809
  msgstr "保存した日時"
810
 
811
- #: ../pz-linkcard-settings.php:616
812
  msgid "Display elapsed time"
813
  msgstr "実行時間の表示"
814
 
815
- #: ../pz-linkcard-settings.php:618
816
  msgid "Output the elapsed time to HTML comment."
817
  msgstr "作成にかかった時間をコメントとしてHTMLへ出力する"
818
 
819
- #: ../pz-linkcard-settings.php:624
820
  msgid "Initialize"
821
  msgstr "初期化"
822
 
823
- #: ../pz-linkcard-settings.php:627
824
  msgid "Return to the initial setting"
825
  msgstr "設定を初期状態へ戻す"
826
 
@@ -832,22 +847,25 @@ msgstr "設定を元にスタイルシートを自動生成しました。"
832
  msgid "Style sheet failed."
833
  msgstr "スタイルシートの自動生成に失敗しました。"
834
 
835
- #: ../pz-linkcard.php:909
836
  msgid "Pz LkC Cache"
837
  msgstr "Pz カード管理"
838
 
839
- #: ../pz-linkcard.php:911
840
  msgid "Pz LinkCard"
841
  msgstr "Pz カード設定"
842
 
843
- #: ../pz-linkcard.php:972
844
  msgid "Settings"
845
  msgstr "設定"
846
 
847
- #: ../pz-linkcard.php:972
848
  msgid "Manage"
849
  msgstr "管理"
850
 
 
 
 
851
  #, fuzzy
852
  #~ msgid "New window/tab"
853
  #~ msgstr "新しいウィンドウで開く"
4
  msgstr ""
5
  "Project-Id-Version: Pz-LinkCard\n"
6
  "Report-Msgid-Bugs-To: http://wppolyglots.wordpress.com\n"
7
+ "POT-Creation-Date: 2015-11-08 23:17+0900\n"
8
+ "PO-Revision-Date: 2015-11-08 23:18+0900\n"
9
  "Last-Translator: \n"
10
  "Language-Team: poporon\n"
11
  "Language: ja_JP\n"
19
  "Plural-Forms: nplurals=1; plural=0;\n"
20
  "X-Poedit-SearchPath-0: ..\n"
21
 
22
+ #: ../pz-linkcard-cacheman.php:6 ../pz-linkcard.php:935
23
  msgid "LinkCard cache manager"
24
  msgstr "リンクカード/DBキャッシュ管理"
25
 
35
  msgid "Social count renew"
36
  msgstr "ソーシャルカウントの再取得"
37
 
38
+ #: ../pz-linkcard-cacheman.php:85 ../pz-linkcard-cacheman.php:98
39
  msgid "completed"
40
  msgstr "完了しました"
41
 
42
+ #: ../pz-linkcard-cacheman.php:90
43
  msgid "Cache renew"
44
  msgstr "記事内容の再取得"
45
 
46
+ #: ../pz-linkcard-cacheman.php:106
47
  msgid "Cache deleted"
48
  msgstr "キャッシュから削除しました"
49
 
50
+ #: ../pz-linkcard-cacheman.php:212
51
  msgid "All"
52
  msgstr "すべて"
53
 
54
+ #: ../pz-linkcard-cacheman.php:213
55
  msgid "Internal"
56
  msgstr "内部リンク"
57
 
58
+ #: ../pz-linkcard-cacheman.php:214
59
  msgid "External"
60
  msgstr "外部リンク"
61
 
62
+ #: ../pz-linkcard-cacheman.php:224
63
  msgid "Select batch"
64
  msgstr "一括処理を選択"
65
 
66
+ #: ../pz-linkcard-cacheman.php:226 ../pz-linkcard-cacheman.php:296
67
  msgid "Select"
68
  msgstr "選択してください"
69
 
70
+ #: ../pz-linkcard-cacheman.php:227
71
  msgid "Renew cache"
72
  msgstr "記事内容を再取得する"
73
 
74
+ #: ../pz-linkcard-cacheman.php:228
75
  msgid "Renew SNS count"
76
  msgstr "ソーシャルカウントを再取得する"
77
 
78
+ #: ../pz-linkcard-cacheman.php:229
79
  msgid "Delete from cache"
80
  msgstr "キャッシュから削除する"
81
 
82
+ #: ../pz-linkcard-cacheman.php:231
83
  msgid "Submit"
84
  msgstr "適用"
85
 
86
+ #: ../pz-linkcard-cacheman.php:235
87
  msgid "Select domain"
88
  msgstr "ドメインを選択"
89
 
90
+ #: ../pz-linkcard-cacheman.php:237
91
  msgid "All domain"
92
  msgstr "すべてのドメイン"
93
 
94
+ #: ../pz-linkcard-cacheman.php:250
95
  msgid "Refine search"
96
  msgstr "絞り込み検索"
97
 
98
+ #: ../pz-linkcard-cacheman.php:255
99
  msgid "items"
100
  msgstr "項目"
101
 
102
+ #: ../pz-linkcard-cacheman.php:272
103
  msgid "Select all"
104
  msgstr "すべて選択"
105
 
106
+ #: ../pz-linkcard-cacheman.php:273 ../pz-linkcard-edit.php:13
107
  msgid "ID"
108
  msgstr ""
109
 
110
+ #: ../pz-linkcard-cacheman.php:274 ../pz-linkcard-edit.php:17
111
  msgid "URL key"
112
  msgstr "URLキー"
113
 
114
+ #: ../pz-linkcard-cacheman.php:275 ../pz-linkcard-edit.php:21
115
+ #: ../pz-linkcard-settings.php:355
116
  msgid "URL"
117
  msgstr "URL"
118
 
119
+ #: ../pz-linkcard-cacheman.php:276 ../pz-linkcard-edit.php:33
120
+ #: ../pz-linkcard-settings.php:338
121
  msgid "Title"
122
  msgstr "タイトル"
123
 
124
+ #: ../pz-linkcard-cacheman.php:277 ../pz-linkcard-edit.php:37
125
+ #: ../pz-linkcard-settings.php:370
126
  msgid "Excerpt"
127
  msgstr "抜粋文"
128
 
129
+ #: ../pz-linkcard-cacheman.php:278 ../pz-linkcard-edit.php:41
130
  msgid "Charset"
131
  msgstr "文字セット"
132
 
133
+ #: ../pz-linkcard-cacheman.php:279 ../pz-linkcard-edit.php:29
134
  msgid "Domain"
135
  msgstr "ドメイン"
136
 
137
+ #: ../pz-linkcard-cacheman.php:280 ../pz-linkcard-edit.php:63
138
  msgid "Tw"
139
  msgstr ""
140
 
141
+ #: ../pz-linkcard-cacheman.php:281 ../pz-linkcard-edit.php:64
142
  msgid "fb"
143
  msgstr ""
144
 
145
+ #: ../pz-linkcard-cacheman.php:282 ../pz-linkcard-edit.php:65
146
  msgid "B!"
147
  msgstr ""
148
 
149
+ #: ../pz-linkcard-cacheman.php:283 ../pz-linkcard-edit.php:77
150
  msgid "Regist"
151
  msgstr "登録日時"
152
 
153
+ #: ../pz-linkcard-cacheman.php:284 ../pz-linkcard-edit.php:57
154
  msgid "Post ID"
155
  msgstr "記事ID"
156
 
157
+ #: ../pz-linkcard-cacheman.php:285 ../pz-linkcard-edit.php:53
158
  msgid "Result code"
159
  msgstr "結果コード"
160
 
161
+ #: ../pz-linkcard-cacheman.php:315
162
  msgid "edit"
163
  msgstr "編集"
164
 
165
+ #: ../pz-linkcard-cacheman.php:316 ../pz-linkcard-cacheman.php:317
166
  msgid "Are you sure?"
167
  msgstr "実行します。"
168
 
169
+ #: ../pz-linkcard-cacheman.php:316
170
  msgid "renew"
171
  msgstr "再取得"
172
 
173
+ #: ../pz-linkcard-cacheman.php:317
174
  msgid "delete"
175
  msgstr "削除"
176
 
210
  msgid "Cancel"
211
  msgstr "キャンセル"
212
 
213
+ #: ../pz-linkcard-settings.php:4 ../pz-linkcard.php:937
214
  msgid "LinkCard Settings"
215
  msgstr "リンクカード設定"
216
 
218
  msgid "Short code is not set."
219
  msgstr "ショートコードが指定されていません。"
220
 
221
+ #: ../pz-linkcard-settings.php:69
222
  msgid "Changes saved."
223
  msgstr "設定を保存しました。"
224
 
225
+ #: ../pz-linkcard-settings.php:71
226
  msgid "Not changed."
227
  msgstr "設定は変更されませんでした。"
228
 
229
+ #: ../pz-linkcard-settings.php:80
230
  msgid "Basic"
231
  msgstr "基本設定"
232
 
233
+ #: ../pz-linkcard-settings.php:83
234
  msgid "ShortCode1"
235
  msgstr "ショートコード 1"
236
 
237
+ #: ../pz-linkcard-settings.php:85 ../pz-linkcard-settings.php:103
238
+ #: ../pz-linkcard-settings.php:108 ../pz-linkcard-settings.php:113
239
  msgid "Case-sensitive"
240
  msgstr "大文字と小文字を区別します"
241
 
242
+ #: ../pz-linkcard-settings.php:88
243
  msgid "Use inlinetext"
244
  msgstr "ショートコードで囲んだ文字列"
245
 
246
+ #: ../pz-linkcard-settings.php:92
247
  msgid "No use"
248
  msgstr "使用しない"
249
 
250
+ #: ../pz-linkcard-settings.php:93
251
  msgid "Use to excerpt"
252
  msgstr "抜粋文として使用"
253
 
254
+ #: ../pz-linkcard-settings.php:94
255
  msgid "Use to title"
256
  msgstr "タイトルとして使用"
257
 
258
+ #: ../pz-linkcard-settings.php:97
259
  msgid "This setting applies only to the Shortcode1"
260
  msgstr "ショートコード1にのみ適用されます"
261
 
262
+ #: ../pz-linkcard-settings.php:101
263
  msgid "ShortCode 2"
264
  msgstr "ショートコード 2"
265
 
266
+ #: ../pz-linkcard-settings.php:106
267
  msgid "ShortCode 3"
268
  msgstr "ショートコード 3"
269
 
270
+ #: ../pz-linkcard-settings.php:111
271
  msgid "ShortCode 4"
272
  msgstr "ショートコード 4"
273
 
274
+ #: ../pz-linkcard-settings.php:117
275
  msgid "Special Format"
276
  msgstr "定型書式"
277
 
278
+ #: ../pz-linkcard-settings.php:120 ../pz-linkcard-settings.php:230
279
+ #: ../pz-linkcard-settings.php:264 ../pz-linkcard-settings.php:285
280
+ #: ../pz-linkcard-settings.php:322 ../pz-linkcard-settings.php:441
281
+ #: ../pz-linkcard-settings.php:451 ../pz-linkcard-settings.php:465
282
+ #: ../pz-linkcard-settings.php:488 ../pz-linkcard-settings.php:498
283
+ #: ../pz-linkcard-settings.php:512
284
  msgid "None"
285
  msgstr "なし"
286
 
287
+ #: ../pz-linkcard-settings.php:121
288
  msgid "Pz-LkC Default"
289
  msgstr "Pz リンクカード 標準書式"
290
 
291
+ #: ../pz-linkcard-settings.php:122
292
  msgid "Cellophane tape \"center\""
293
  msgstr "セロハンテープ(中央)"
294
 
295
+ #: ../pz-linkcard-settings.php:123
296
  msgid "Cellophane tape \"Top corner\""
297
  msgstr "セロハンテープ(左上と右上)"
298
 
299
+ #: ../pz-linkcard-settings.php:124
300
  msgid "Cellophane tape \"long\""
301
  msgstr "セロハンテープ(長め)"
302
 
303
+ #: ../pz-linkcard-settings.php:125
304
  msgid "Slanting"
305
  msgstr "斜め"
306
 
307
+ #: ../pz-linkcard-settings.php:126
308
  msgid "3D Rotate"
309
  msgstr "3D回転"
310
 
311
+ #: ../pz-linkcard-settings.php:127
312
  msgid "Curling paper"
313
  msgstr "紙がめくれた効果(テーマとの相性があります)"
314
 
315
+ #: ../pz-linkcard-settings.php:128
316
  msgid "Taping and curling"
317
  msgstr "テープと紙めくれ(テーマとの相性があります)"
318
 
319
+ #: ../pz-linkcard-settings.php:129
320
  msgid "Neutral"
321
  msgstr "ブルーグリーン(黒背景推奨)"
322
 
323
+ #: ../pz-linkcard-settings.php:130
324
  msgid "Orange"
325
  msgstr "オレンジ(黒背景推奨)"
326
 
327
+ #: ../pz-linkcard-settings.php:131
328
  msgid "Green"
329
  msgstr "グリーン(黒背景推奨)"
330
 
331
+ #: ../pz-linkcard-settings.php:132
332
  msgid "Blue"
333
  msgstr "ブルー(黒背景推奨)"
334
 
335
+ #: ../pz-linkcard-settings.php:134
336
  msgid "Will some of the parameters are forcibly changed"
337
  msgstr "選択した定型書式によって、一部の設定が無効になります。"
338
 
339
+ #: ../pz-linkcard-settings.php:140
340
  msgid "Style"
341
  msgstr "表示設定"
342
 
343
+ #: ../pz-linkcard-settings.php:143
344
  msgid "Position"
345
  msgstr "配置設定"
346
 
347
+ #: ../pz-linkcard-settings.php:150
348
  msgid "Margin top"
349
  msgstr "上の余白"
350
 
351
+ #: ../pz-linkcard-settings.php:152 ../pz-linkcard-settings.php:167
352
+ #: ../pz-linkcard-settings.php:183 ../pz-linkcard-settings.php:200
353
  msgid "Not defined"
354
  msgstr "設定しない"
355
 
356
+ #: ../pz-linkcard-settings.php:153 ../pz-linkcard-settings.php:168
357
+ #: ../pz-linkcard-settings.php:184 ../pz-linkcard-settings.php:201
358
  msgid "0"
359
  msgstr ""
360
 
361
+ #: ../pz-linkcard-settings.php:154 ../pz-linkcard-settings.php:169
362
+ #: ../pz-linkcard-settings.php:185 ../pz-linkcard-settings.php:202
363
+ #: ../pz-linkcard-settings.php:410 ../pz-linkcard-settings.php:411
364
  msgid "4px"
365
  msgstr ""
366
 
367
+ #: ../pz-linkcard-settings.php:155 ../pz-linkcard-settings.php:170
368
+ #: ../pz-linkcard-settings.php:186 ../pz-linkcard-settings.php:203
369
  msgid "8px"
370
  msgstr ""
371
 
372
+ #: ../pz-linkcard-settings.php:156 ../pz-linkcard-settings.php:171
373
+ #: ../pz-linkcard-settings.php:187 ../pz-linkcard-settings.php:204
374
+ #: ../pz-linkcard-settings.php:343
375
  msgid "16px"
376
  msgstr ""
377
 
378
+ #: ../pz-linkcard-settings.php:157 ../pz-linkcard-settings.php:172
379
+ #: ../pz-linkcard-settings.php:188 ../pz-linkcard-settings.php:205
380
  msgid "32px"
381
  msgstr ""
382
 
383
+ #: ../pz-linkcard-settings.php:158 ../pz-linkcard-settings.php:173
384
+ #: ../pz-linkcard-settings.php:189 ../pz-linkcard-settings.php:206
385
  msgid "64px"
386
  msgstr ""
387
 
388
+ #: ../pz-linkcard-settings.php:165
389
  msgid "Margin left"
390
  msgstr "左の余白"
391
 
392
+ #: ../pz-linkcard-settings.php:177
393
  msgid "Width"
394
  msgstr "カードの横幅"
395
 
396
+ #: ../pz-linkcard-settings.php:178
397
  msgid "Height"
398
  msgstr "カードの高さ"
399
 
400
+ #: ../pz-linkcard-settings.php:181
 
 
 
 
401
  msgid "Margin right"
402
  msgstr "右の余白"
403
 
404
+ #: ../pz-linkcard-settings.php:195
405
  msgid "Centering"
406
  msgstr "中央に寄せる"
407
 
408
+ #: ../pz-linkcard-settings.php:198
409
  msgid "Margin bottom"
410
  msgstr "下の余白"
411
 
412
+ #: ../pz-linkcard-settings.php:217
413
  msgid "Link the whole"
414
  msgstr "カード全体をリンク"
415
 
416
+ #: ../pz-linkcard-settings.php:221
417
  msgid "Enclose the entire card at anchor"
418
  msgstr ""
419
  "カード全体をAタグで囲って、どこをクリックしてもリンク先を開くようにします。"
420
 
421
+ #: ../pz-linkcard-settings.php:227
422
  msgid "Border"
423
  msgstr "枠線の太さ"
424
 
425
+ #: ../pz-linkcard-settings.php:231
426
  msgid "Gray thin"
427
  msgstr "薄い色/細い(1px)"
428
 
429
+ #: ../pz-linkcard-settings.php:232
430
  msgid "Gray"
431
  msgstr "薄い色/普通(2px)"
432
 
433
+ #: ../pz-linkcard-settings.php:233
434
  msgid "Gray thick"
435
  msgstr "薄い色/太い(4px)"
436
 
437
+ #: ../pz-linkcard-settings.php:234
438
  msgid "Black thin"
439
  msgstr "黒/細い(1px)"
440
 
441
+ #: ../pz-linkcard-settings.php:235
442
  msgid "Black"
443
  msgstr "黒/普通(2px)"
444
 
445
+ #: ../pz-linkcard-settings.php:236
446
  msgid "Black thick"
447
  msgstr "黒/太い(4px)"
448
 
449
+ #: ../pz-linkcard-settings.php:237
450
  msgid "Black frame"
451
  msgstr "黒/額縁(8px)"
452
 
453
+ #: ../pz-linkcard-settings.php:238
454
  msgid "Dodgerblue"
455
  msgstr "ドジャー・ブルー(明るい青)"
456
 
457
+ #: ../pz-linkcard-settings.php:239
458
  msgid "Mediumaquamarine"
459
  msgstr "ミディアム・アクアマリーン(明るい緑)"
460
 
461
+ #: ../pz-linkcard-settings.php:240
462
  msgid "Hotpink"
463
  msgstr "ホット・ピンク(明るい赤)"
464
 
465
+ #: ../pz-linkcard-settings.php:241
466
  msgid "Double"
467
  msgstr "二重線"
468
 
469
+ #: ../pz-linkcard-settings.php:242
470
  msgid "Dotted"
471
  msgstr "点線"
472
 
473
+ #: ../pz-linkcard-settings.php:248
474
  msgid "Layout"
475
  msgstr "外観設定"
476
 
477
+ #: ../pz-linkcard-settings.php:251
478
  msgid "Radius"
479
  msgstr "角を丸める"
480
 
481
+ #: ../pz-linkcard-settings.php:262 ../pz-linkcard-settings.php:458
482
+ #: ../pz-linkcard-settings.php:505 ../pz-linkcard-settings.php:540
483
  msgid "Site information"
484
  msgstr "サイト情報"
485
 
486
+ #: ../pz-linkcard-settings.php:265
487
  msgid "Top"
488
  msgstr "上側"
489
 
490
+ #: ../pz-linkcard-settings.php:266
491
  msgid "Bottom"
492
  msgstr "下側"
493
 
494
+ #: ../pz-linkcard-settings.php:268
495
  msgid "Use SiteName"
496
  msgstr "サイト名称を使用"
497
 
498
+ #: ../pz-linkcard-settings.php:273
499
  msgid "Separator line"
500
  msgstr "区切り線"
501
 
502
+ #: ../pz-linkcard-settings.php:280
503
  msgid "Display URL"
504
  msgstr "リンク先のURLを表示する"
505
 
506
+ #: ../pz-linkcard-settings.php:283 ../pz-linkcard-settings.php:438
507
+ #: ../pz-linkcard-settings.php:485 ../pz-linkcard-settings.php:532
508
  msgid "Thumbnail"
509
  msgstr "サムネイル"
510
 
511
+ #: ../pz-linkcard-settings.php:286
512
  msgid "Right"
513
  msgstr "右側"
514
 
515
+ #: ../pz-linkcard-settings.php:287
516
  msgid "Left"
517
  msgstr "左側"
518
 
519
+ #: ../pz-linkcard-settings.php:290 ../pz-linkcard-settings.php:315
520
  msgid "Shadow"
521
  msgstr "影を付ける"
522
 
523
+ #: ../pz-linkcard-settings.php:295
524
  msgid "Hollow content area"
525
  msgstr "記事の情報に枠を付ける"
526
 
527
+ #: ../pz-linkcard-settings.php:300
528
  msgid "Display excerpt"
529
  msgstr "抜粋文を表示する"
530
 
531
+ #: ../pz-linkcard-settings.php:305
532
  msgid "Hollow"
533
  msgstr "内側に影を付ける"
534
 
535
+ #: ../pz-linkcard-settings.php:319
536
  msgid "Display SNS Count"
537
  msgstr "シェア数を表示する"
538
 
539
+ #: ../pz-linkcard-settings.php:323
540
  msgid "After Title"
541
  msgstr "タイトルの後ろ"
542
 
543
+ #: ../pz-linkcard-settings.php:324
544
  msgid "After site-name"
545
  msgstr "サイト情報の後ろ"
546
 
547
+ #: ../pz-linkcard-settings.php:326
548
  msgid "Twitter"
549
  msgstr "ツイッター"
550
 
551
+ #: ../pz-linkcard-settings.php:327
552
  msgid "Facebook"
553
  msgstr "フェイスブック(シェア数)"
554
 
555
+ #: ../pz-linkcard-settings.php:328
556
  msgid "Hatena"
557
  msgstr "はてなブックマーク"
558
 
559
+ #: ../pz-linkcard-settings.php:329
560
  msgid ""
561
  "There is a possibility that the screen display is slow If you enable this "
562
  "setting."
563
  msgstr "有効にする取得APIによっては表示が遅くなる場合があります。"
564
 
565
+ #: ../pz-linkcard-settings.php:335
566
  msgid "Letters"
567
  msgstr "文字設定"
568
 
569
+ #: ../pz-linkcard-settings.php:340 ../pz-linkcard-settings.php:357
570
+ #: ../pz-linkcard-settings.php:372 ../pz-linkcard-settings.php:389
571
+ #: ../pz-linkcard-settings.php:408
572
+ msgid "Color"
573
+ msgstr "色"
574
+
575
+ #: ../pz-linkcard-settings.php:341 ../pz-linkcard-settings.php:358
576
+ #: ../pz-linkcard-settings.php:373 ../pz-linkcard-settings.php:390
577
+ #: ../pz-linkcard-settings.php:409
578
+ msgid "Size"
579
+ msgstr "大きさ"
580
+
581
+ #: ../pz-linkcard-settings.php:342 ../pz-linkcard-settings.php:361
582
+ #: ../pz-linkcard-settings.php:377 ../pz-linkcard-settings.php:395
583
  msgid "14px"
584
  msgstr ""
585
 
586
+ #: ../pz-linkcard-settings.php:344
587
  msgid "18px"
588
  msgstr ""
589
 
590
+ #: ../pz-linkcard-settings.php:345
591
  msgid "20px"
592
  msgstr ""
593
 
594
+ #: ../pz-linkcard-settings.php:346
595
  msgid "24px"
596
  msgstr ""
597
 
598
+ #: ../pz-linkcard-settings.php:347 ../pz-linkcard-settings.php:365
599
+ #: ../pz-linkcard-settings.php:381 ../pz-linkcard-settings.php:400
600
  msgid "100%"
601
  msgstr ""
602
 
603
+ #: ../pz-linkcard-settings.php:348
604
  msgid "120%"
605
  msgstr ""
606
 
607
+ #: ../pz-linkcard-settings.php:349
608
  msgid "140%"
609
  msgstr ""
610
 
611
+ #: ../pz-linkcard-settings.php:351 ../pz-linkcard-settings.php:383
612
+ #: ../pz-linkcard-settings.php:402
613
+ msgid "Length"
614
+ msgstr "桁数"
615
+
616
+ #: ../pz-linkcard-settings.php:359 ../pz-linkcard-settings.php:374
617
+ #: ../pz-linkcard-settings.php:391 ../pz-linkcard-settings.php:412
618
  msgid "9px"
619
  msgstr ""
620
 
621
+ #: ../pz-linkcard-settings.php:360 ../pz-linkcard-settings.php:376
622
+ #: ../pz-linkcard-settings.php:393
623
  msgid "12px"
624
  msgstr ""
625
 
626
+ #: ../pz-linkcard-settings.php:362 ../pz-linkcard-settings.php:378
627
+ #: ../pz-linkcard-settings.php:397
628
  msgid "70%"
629
  msgstr ""
630
 
631
+ #: ../pz-linkcard-settings.php:363 ../pz-linkcard-settings.php:379
632
+ #: ../pz-linkcard-settings.php:398
633
  msgid "80%"
634
  msgstr ""
635
 
636
+ #: ../pz-linkcard-settings.php:364 ../pz-linkcard-settings.php:380
637
+ #: ../pz-linkcard-settings.php:399
638
  msgid "90%"
639
  msgstr ""
640
 
641
+ #: ../pz-linkcard-settings.php:375 ../pz-linkcard-settings.php:392
642
  msgid "11px"
643
  msgstr ""
644
 
645
+ #: ../pz-linkcard-settings.php:387
646
  msgid "Site-info."
647
  msgstr "サイト情報"
648
 
649
+ #: ../pz-linkcard-settings.php:394
650
  msgid "13px"
651
  msgstr ""
652
 
653
+ #: ../pz-linkcard-settings.php:396 ../pz-linkcard-settings.php:413
654
  msgid "60%"
655
  msgstr ""
656
 
657
+ #: ../pz-linkcard-settings.php:406
658
  msgid "Plugin link"
659
  msgstr "プラグインのページ"
660
 
661
+ #: ../pz-linkcard-settings.php:418
662
  msgid "Plugin-link"
663
  msgstr "プラグイン名"
664
 
665
+ #: ../pz-linkcard-settings.php:426
666
  msgid "External link"
667
  msgstr "外部リンク"
668
 
669
+ #: ../pz-linkcard-settings.php:430 ../pz-linkcard-settings.php:477
670
+ #: ../pz-linkcard-settings.php:524
671
  msgid "Background Color"
672
  msgstr "背景色"
673
 
674
+ #: ../pz-linkcard-settings.php:434
675
  msgid "Background image"
676
  msgstr "背景画像"
677
 
678
+ #: ../pz-linkcard-settings.php:442 ../pz-linkcard-settings.php:452
679
+ #: ../pz-linkcard-settings.php:489 ../pz-linkcard-settings.php:499
680
  msgid "Direct"
681
  msgstr "直接取得する"
682
 
683
+ #: ../pz-linkcard-settings.php:443 ../pz-linkcard-settings.php:453
684
+ #: ../pz-linkcard-settings.php:490 ../pz-linkcard-settings.php:500
685
  msgid "Use WebAPI"
686
  msgstr "WebAPIを利用する"
687
 
688
+ #: ../pz-linkcard-settings.php:448 ../pz-linkcard-settings.php:495
689
+ #: ../pz-linkcard-settings.php:536
690
  msgid "Favicon"
691
  msgstr "サイトアイコン"
692
 
693
+ #: ../pz-linkcard-settings.php:462 ../pz-linkcard-settings.php:509
694
+ #: ../pz-linkcard-settings.php:544
695
  msgid "Open new window/tab"
696
  msgstr "新しいウィンドウで開く"
697
 
698
+ #: ../pz-linkcard-settings.php:466 ../pz-linkcard-settings.php:513
699
  msgid "All client"
700
  msgstr "すべての端末"
701
 
702
+ #: ../pz-linkcard-settings.php:467 ../pz-linkcard-settings.php:514
703
  msgid "Other than mobile"
704
  msgstr "モバイル端末以外"
705
 
706
+ #: ../pz-linkcard-settings.php:474
707
  msgid "Internal link"
708
  msgstr "内部リンク"
709
 
710
+ #: ../pz-linkcard-settings.php:481 ../pz-linkcard-settings.php:528
711
  msgid "Background Image"
712
  msgstr "背景画像"
713
 
714
+ #: ../pz-linkcard-settings.php:521
715
  msgid "Same-page link"
716
  msgstr "同ページへのリンク"
717
 
718
+ #: ../pz-linkcard-settings.php:533 ../pz-linkcard-settings.php:537
719
+ #: ../pz-linkcard-settings.php:545
720
  msgid "It is common with setting Internal-link"
721
  msgstr "内部リンク用の設定が使用されます"
722
 
723
+ #: ../pz-linkcard-settings.php:550
724
  msgid "Web-API"
725
  msgstr "画像取得APIの指定"
726
 
727
+ #: ../pz-linkcard-settings.php:553
728
  msgid "Favicon API"
729
  msgstr "ファビコンの取得API"
730
 
731
+ #: ../pz-linkcard-settings.php:555
732
+ #, fuzzy
733
  msgid ""
734
+ "%DOMAIN% replace to domain name (ex. poporon.poponet.jp )<br>%DOMAIN_URL% "
735
  "replace to domain URL (ex. http://poporon.poponet.jp )"
736
  msgstr ""
737
  "%DOMAIN% と記述するとドメイン名(例.poporon.poponet.jp)に、<br />"
738
  "%DOMAIN_URL% と記述するとドメインのURL(例.http://poporon.poponet.jp)に置き"
739
  "換わります。"
740
 
741
+ #: ../pz-linkcard-settings.php:558
742
  msgid "Thumbnail API"
743
  msgstr "サムネイル画像の取得API"
744
 
745
+ #: ../pz-linkcard-settings.php:560
746
  msgid "%URL% replace to URL"
747
  msgstr "%URL% と記述するとURLに置き換わります"
748
 
749
+ #: ../pz-linkcard-settings.php:565
750
  msgid "Debug"
751
  msgstr "詳しい人用(Debug)"
752
 
753
+ #: ../pz-linkcard-settings.php:568
754
  msgid "Use blockquote tag"
755
  msgstr "BLOCKQUOTEをタグを使用する"
756
 
757
+ #: ../pz-linkcard-settings.php:569
758
  msgid "without using DIV tag, and use BLOCKQUOTE tag"
759
  msgstr "&lt;BLOCKQUOTE&gt;で囲んで引用扱いにします"
760
 
761
+ #: ../pz-linkcard-settings.php:572
762
  msgid "Set nofollow"
763
  msgstr "nofollowを付与する"
764
 
765
+ #: ../pz-linkcard-settings.php:573
766
  msgid "In the case of an external site, it puts the \"nofollow\""
767
  msgstr "外部リンクのリンクを nofollow にする"
768
 
769
+ #: ../pz-linkcard-settings.php:577
770
  msgid "Reset img style"
771
  msgstr "CSSリセット(img)"
772
 
773
+ #: ../pz-linkcard-settings.php:578
774
  msgid ""
775
  "When unnecessary frame is displayed on the image, you can improve it by case"
776
  msgstr "画像がずれて表示されるときに改善される可能性が有ります(推奨)"
777
 
778
+ #: ../pz-linkcard-settings.php:582
779
  msgid "specified CSS"
780
  msgstr "指定したCSSを使用"
781
 
782
+ #: ../pz-linkcard-settings.php:583
783
  msgid "Use specified CSS file"
784
  msgstr "指定したCSSファイルを使用する"
785
 
786
+ #: ../pz-linkcard-settings.php:586 ../pz-linkcard-settings.php:590
787
  msgid "CSS file"
788
  msgstr "CSSファイル名"
789
 
790
+ #: ../pz-linkcard-settings.php:587
791
  msgid "(ex. http://exsample.com/style.css )"
792
  msgstr "例.http://exsample.com/style.css"
793
 
794
+ #: ../pz-linkcard-settings.php:594
795
  msgid "CSS URL"
796
  msgstr "CSSファイルのURL"
797
 
798
+ #: ../pz-linkcard-settings.php:599
799
  msgid "Use HatenaBlogCard"
800
  msgstr "はてなブログカードを利用する"
801
 
802
+ #: ../pz-linkcard-settings.php:600
803
  msgid "External links will use Always HatenaBlogCard (Not recommended)"
804
  msgstr "外部リンクは「はてなブログカード」を利用する(非推奨)"
805
 
806
+ #: ../pz-linkcard-settings.php:604
807
  msgid "Display link to author page"
808
  msgstr "プラグイン名を表示する"
809
 
810
+ #: ../pz-linkcard-settings.php:608
811
  msgid "Plugin URL"
812
  msgstr "プラグインページURL"
813
 
814
+ #: ../pz-linkcard-settings.php:612
815
  msgid "Plugin name"
816
  msgstr "プラグイン名"
817
 
818
+ #: ../pz-linkcard-settings.php:616
819
  msgid "Plugin version"
820
  msgstr "プラグインバージョン"
821
 
822
+ #: ../pz-linkcard-settings.php:620
823
  msgid "Saved datetime"
824
  msgstr "保存した日時"
825
 
826
+ #: ../pz-linkcard-settings.php:625
827
  msgid "Display elapsed time"
828
  msgstr "実行時間の表示"
829
 
830
+ #: ../pz-linkcard-settings.php:626
831
  msgid "Output the elapsed time to HTML comment."
832
  msgstr "作成にかかった時間をコメントとしてHTMLへ出力する"
833
 
834
+ #: ../pz-linkcard-settings.php:632
835
  msgid "Initialize"
836
  msgstr "初期化"
837
 
838
+ #: ../pz-linkcard-settings.php:635
839
  msgid "Return to the initial setting"
840
  msgstr "設定を初期状態へ戻す"
841
 
847
  msgid "Style sheet failed."
848
  msgstr "スタイルシートの自動生成に失敗しました。"
849
 
850
+ #: ../pz-linkcard.php:935
851
  msgid "Pz LkC Cache"
852
  msgstr "Pz カード管理"
853
 
854
+ #: ../pz-linkcard.php:937
855
  msgid "Pz LinkCard"
856
  msgstr "Pz カード設定"
857
 
858
+ #: ../pz-linkcard.php:1033
859
  msgid "Settings"
860
  msgstr "設定"
861
 
862
+ #: ../pz-linkcard.php:1033
863
  msgid "Manage"
864
  msgstr "管理"
865
 
866
+ #~ msgid "Trim"
867
+ #~ msgstr "文字数"
868
+
869
  #, fuzzy
870
  #~ msgid "New window/tab"
871
  #~ msgstr "新しいウィンドウで開く"
pz-linkcard-cacheman.php CHANGED
@@ -77,12 +77,27 @@ if (isset($action)) {
77
  if (isset($data) && is_array($data)) {
78
  $data['nexttime'] = 0;
79
  $data = $this->pz_SetCache($data);
80
- $this->pz_getHTML(array('url' => $data['url']));
81
  }
82
  echo '..';
83
  }
84
  echo __('completed', $this->text_domain).'</strong></p></div>';
85
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
86
  break;
87
  case 'renew':
88
  if (isset($bulk_id) && is_array($bulk_id)) {
77
  if (isset($data) && is_array($data)) {
78
  $data['nexttime'] = 0;
79
  $data = $this->pz_SetCache($data);
80
+ $data = $this->pz_RenewSNSCount($data);
81
  }
82
  echo '..';
83
  }
84
  echo __('completed', $this->text_domain).'</strong></p></div>';
85
  }
86
+
87
+
88
+ if (isset($bulk_id) && is_array($bulk_id)) {
89
+ echo '<div class="updated fade"><p><strong>'.__('Social count renew', $this->text_domain).'...';
90
+ foreach ($bulk_id as $data_id) {
91
+ $data = $this->pz_GetCache($data);
92
+ if (isset($data) && is_array($data) && isset($data['id'])) {
93
+ $data['nexttime'] = 0;
94
+ $data = $this->pz_SetCache($data);
95
+ }
96
+ $data = $this->pz_RenewSNSCount(array('id' => $data_id));
97
+ echo '..';
98
+ }
99
+ echo __('completed', $this->text_domain).'</strong></p></div>';
100
+ }
101
  break;
102
  case 'renew':
103
  if (isset($bulk_id) && is_array($bulk_id)) {
pz-linkcard-settings.php CHANGED
@@ -47,12 +47,21 @@
47
  } else {
48
  $this->options['content-height'] = $height.'px';
49
  }
50
- $trim_count = preg_replace('/[^0-9]/', '', $this->options['trim-count']);
51
- if ($trim_count == '') {
52
- $this->options['trim-count'] = 130;
53
- } else {
54
- $this->options['trim-count'] = $trim_count;
 
 
 
 
 
 
 
 
55
  }
 
56
 
57
  if ($result == true) {
58
  $result = update_option('Pz_LinkCard_options', $this->options);
@@ -71,12 +80,12 @@
71
  <h3><?php _e('Basic', $this->text_domain); ?></h3>
72
  <table class="form-table">
73
  <tr valign="top">
74
- <th scope="row"><label for="inputtext"><?php _e('ShortCode1', $this->text_domain); ?></label></th>
75
  <td><input name="properties[code1]" type="text" id="inputtext" value="<?php echo esc_attr($this->options['code1']); ?>" class="regular-text" />
76
  <p><?php _e('Case-sensitive', $this->text_domain); ?></p></td>
77
  </tr>
78
  <tr valign="top">
79
- <th scope="row"><label for="inputtext"><?php _e('Use inlinetext', $this->text_domain); ?></label></th>
80
  <td>
81
  [<?php echo esc_attr($this->options['code1']); ?> url="xxx"]
82
  <select name="properties[use-inline]">
@@ -89,23 +98,23 @@
89
  </td>
90
  </tr>
91
  <tr valign="top">
92
- <th scope="row"><label for="inputtext"><?php _e('ShortCode 2', $this->text_domain); ?></label></th>
93
  <td><input name="properties[code2]" type="text" id="inputtext" value="<?php echo esc_attr($this->options['code2']); ?>" class="regular-text" />
94
  <p><?php _e('Case-sensitive', $this->text_domain); ?></p></td>
95
  </tr>
96
  <tr valign="top">
97
- <th scope="row"><label for="inputtext"><?php _e('ShortCode 3', $this->text_domain); ?></label></th>
98
  <td><input name="properties[code3]" type="text" id="inputtext" value="<?php echo esc_attr($this->options['code3']); ?>" class="regular-text" />
99
  <p><?php _e('Case-sensitive', $this->text_domain); ?></p></td>
100
  </tr>
101
  <tr valign="top" style="display: none;">
102
- <th scope="row"><label for="inputtext"><?php _e('ShortCode 4', $this->text_domain); ?></label></th>
103
  <td><input name="properties[code4]" type="text" id="inputtext" value="<?php echo esc_attr($this->options['code4']); ?>" class="regular-text" />
104
  <p><?php _e('Case-sensitive', $this->text_domain); ?></p></td>
105
  </tr>
106
 
107
  <tr valign="top">
108
- <th scope="row"><label for="inputtext"><?php _e('Special Format', $this->text_domain); ?></label></th>
109
  <td>
110
  <select name="properties[special-format]">
111
  <option value="" <?php if($this->options['special-format'] == '') echo 'selected="selected"'; ?>><?php _e('None', $this->text_domain); ?></option>
@@ -122,8 +131,8 @@
122
  <option value="inE" <?php if($this->options['special-format'] == 'inE') echo 'selected="selected"'; ?>><?php _e('Green', $this->text_domain); ?></option>
123
  <option value="inR" <?php if($this->options['special-format'] == 'inR') echo 'selected="selected"'; ?>><?php _e('Blue', $this->text_domain); ?></option>
124
  </select>
125
- <br /><?php _e('Will some of the parameters are forcibly changed', $this->text_domain); ?></td>
126
- </td>
127
  </tr>
128
  </table>
129
  <?php submit_button(); ?>
@@ -131,14 +140,14 @@
131
  <h3><?php _e('Style', $this->text_domain); ?></h3>
132
  <table class="form-table">
133
  <tr valign="top">
134
- <th scope="row"><label for="inputtext"><?php _e('Position', $this->text_domain); ?></label></th>
135
  <td>
136
  <table style="border: 1px dashed #000; background-color: #eee;">
137
  <tr>
138
  <td>
139
  </td>
140
  <td align="center">
141
- <?php _e('Margin top', $this->text_domain); ?><br />
142
  <select name="properties[margin-top]">
143
  <option value="" <?php if($this->options['margin-top'] == '') echo 'selected="selected"'; ?>><?php _e('Not defined', $this->text_domain); ?></option>
144
  <option value="0" <?php if($this->options['margin-top'] == '0') echo 'selected="selected"'; ?>><?php _e('0', $this->text_domain); ?></option>
@@ -153,7 +162,7 @@
153
  </tr>
154
  <tr>
155
  <td align="center">
156
- <?php _e('Margin left', $this->text_domain); ?><br />
157
  <select name="properties[margin-left]">
158
  <option value="" <?php if($this->options['margin-left'] == '') echo 'selected="selected"'; ?>><?php _e('Not defined', $this->text_domain); ?></option>
159
  <option value="0" <?php if($this->options['margin-left'] == '0') echo 'selected="selected"'; ?>><?php _e('0', $this->text_domain); ?></option>
@@ -165,12 +174,73 @@
165
  </select>
166
  </td>
167
  <td align="center" style="border: 1px solid #000; background-color: #fff;">
168
- <?php _e('Width', $this->text_domain); ?><input name="properties[width]" type="text" id="inputtext" value="<?php echo esc_attr($this->options['width']); ?>" style="width: 80px;" /><br />
169
- <?php _e('Height', $this->text_domain); ?><input name="properties[content-height]" type="text" id="inputtext" value="<?php echo esc_attr($this->options['content-height']); ?>" style="width: 80px;" /><br />
170
- <?php _e('Trim', $this->text_domain); ?><input name="properties[trim-count]" type="text" id="inputtext" value="<?php echo esc_attr($this->options['trim-count']); ?>" style="width: 80px;" /><br />
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
171
  </td>
172
  <td align="center">
173
- <?php _e('Margin right', $this->text_domain); ?><br />
174
  <select name="properties[margin-right]">
175
  <option value="" <?php if($this->options['margin-right'] == '') echo 'selected="selected"'; ?>><?php _e('Not defined', $this->text_domain); ?></option>
176
  <option value="0" <?php if($this->options['margin-right'] == '0') echo 'selected="selected"'; ?>><?php _e('0', $this->text_domain); ?></option>
@@ -187,7 +257,7 @@
187
  <input name="properties[centering]" type="checkbox" id="check" value="1" <?php checked(isset($this->options['centering']) ? $this->options['centering'] : null, 1); ?> /><?php _e('Centering', $this->text_domain); ?>
188
  </td>
189
  <td align="center">
190
- <?php _e('Margin bottom', $this->text_domain); ?><br />
191
  <select name="properties[margin-bottom]">
192
  <option value="" <?php if($this->options['margin-bottom'] == '') echo 'selected="selected"'; ?>><?php _e('Not defined', $this->text_domain); ?></option>
193
  <option value="0" <?php if($this->options['margin-bottom'] == '0') echo 'selected="selected"'; ?>><?php _e('0', $this->text_domain); ?></option>
@@ -206,14 +276,17 @@
206
  </tr>
207
 
208
  <tr valign="top">
209
- <th scope="row"><label for="inputtext"><?php _e('Link the whole', $this->text_domain); ?></label></th>
210
- <td><input name="properties[link-all]" type="checkbox" id="check" value="1" <?php checked(isset($this->options['link-all']) ? $this->options['link-all'] : null, 1); ?> />
211
- <?php _e('Enclose the entire card at anchor', $this->text_domain); ?>
 
 
 
212
  </td>
213
  </tr>
214
 
215
  <tr valign="top">
216
- <th scope="row"><label for="inputtext"><?php _e('Border', $this->text_domain); ?></label></th>
217
  <td>
218
  <select name="properties[border]">
219
  <option value="" <?php if($this->options['border'] == '') echo 'selected="selected"'; ?>><?php _e('None', $this->text_domain); ?></option>
@@ -235,7 +308,11 @@
235
 
236
  <tr valign="top">
237
  <th scope="row"><?php _e('Layout', $this->text_domain); ?></th>
238
- <td><input name="properties[radius]" type="checkbox" id="check" value="1" <?php checked(isset($this->options['radius']) ? $this->options['radius'] : null, 1); ?> /><?php _e('Radius', $this->text_domain); ?></td>
 
 
 
 
239
  </tr>
240
  <tr>
241
  <th scope="row"></th>
@@ -250,43 +327,44 @@
250
  <option value="1" <?php if($this->options['info-position'] == '1') echo 'selected="selected"'; ?>><?php _e('Top', $this->text_domain); ?></option>
251
  <option value="2" <?php if($this->options['info-position'] == '2') echo 'selected="selected"'; ?>><?php _e('Bottom', $this->text_domain); ?></option>
252
  </select>
253
- <input name="properties[use-sitename]" type="checkbox" id="check" value="1" <?php checked(isset($this->options['use-sitename']) ? $this->options['use-sitename'] : null, 1); ?> /><?php _e('Use SiteName', $this->text_domain); ?>
254
  </td>
255
  </tr>
256
  <tr>
257
  <td>
258
- <input name="properties[separator]" type="checkbox" id="check" value="1" <?php checked(isset($this->options['separator']) ? $this->options['separator'] : null, 1); ?> /><?php _e('Separator line', $this->text_domain); ?>
259
  </td>
260
  <td>
261
  </td>
262
  </tr>
263
  <tr>
264
  <td>
265
- <input name="properties[display-url]" type="checkbox" id="check" value="1" <?php checked(isset($this->options['display-url']) ? $this->options['display-url'] : null, 1); ?> /><?php _e('Display URL', $this->text_domain); ?>
266
  </td>
267
  <td rowspan="3" style="border: 1px solid #000;">
268
- <?php _e('Thumbnail', $this->text_domain); ?><br />
269
  <select name="properties[thumbnail-position]">
270
  <option value="0" <?php if($this->options['thumbnail-position'] == '0') echo 'selected="selected"'; ?>><?php _e('None', $this->text_domain); ?></option>
271
  <option value="1" <?php if($this->options['thumbnail-position'] == '1') echo 'selected="selected"'; ?>><?php _e('Right', $this->text_domain); ?></option>
272
  <option value="2" <?php if($this->options['thumbnail-position'] == '2') echo 'selected="selected"'; ?>><?php _e('Left', $this->text_domain); ?></option>
273
  </select>
274
- <br /><input name="properties[thumbnail-shadow]" type="checkbox" id="check" value="1" <?php checked(isset($this->options['thumbnail-shadow']) ? $this->options['thumbnail-shadow'] : null, 1); ?> /><?php _e('Shadow', $this->text_domain); ?>
 
275
  </td>
276
  </tr>
277
  <tr>
278
  <td>
279
- <input name="properties[content-inset]" type="checkbox" id="check" value="1" <?php checked(isset($this->options['content-inset']) ? $this->options['content-inset'] : null, 1); ?> /><?php _e('Hollow content area', $this->text_domain); ?>
280
  </td>
281
  </tr>
282
  <tr>
283
  <td>
284
- <input name="properties[display-excerpt]" type="checkbox" id="check" value="1" <?php checked(isset($this->options['display-excerpt']) ? $this->options['display-excerpt'] : null, 1); ?> /><?php _e('Display excerpt', $this->text_domain); ?>
285
  </td>
286
  </tr>
287
  <tr>
288
  <td>
289
- <input name="properties[shadow-inset]" type="checkbox" id="check" value="1" <?php checked(isset($this->options['shadow-inset']) ? $this->options['shadow-inset'] : null, 1); ?> /><?php _e('Hollow', $this->text_domain); ?>
290
  </td>
291
  <td>
292
  </td>
@@ -296,21 +374,21 @@
296
  </tr>
297
  <tr valign="top">
298
  <th scope="row"></th>
299
- <td><input name="properties[shadow]" type="checkbox" id="check" value="1" <?php checked(isset($this->options['shadow']) ? $this->options['shadow'] : null, 1); ?> /><?php _e('Shadow', $this->text_domain); ?></td>
300
  </tr>
301
 
302
  <tr valign="top">
303
- <th scope="row"><label for="inputtext"><?php _e('Display SNS Count', $this->text_domain); ?></label></th>
304
  <td>
305
  <select name="properties[sns-position]">
306
  <option value="" <?php if($this->options['sns-position'] == '') echo 'selected="selected"'; ?>><?php _e('None', $this->text_domain); ?></option>
307
  <option value="1" <?php if($this->options['sns-position'] == '1') echo 'selected="selected"'; ?>><?php _e('After Title', $this->text_domain); ?></option>
308
  <option value="2" <?php if($this->options['sns-position'] == '2') echo 'selected="selected"'; ?>><?php _e('After site-name', $this->text_domain); ?></option>
309
  </select>
310
- <input name="properties[sns-tw]" type="checkbox" id="check" value="1" <?php checked(isset($this->options['sns-tw']) ? $this->options['sns-tw'] : null, 1); ?> /><?php _e('Twitter', $this->text_domain); ?>
311
- <input name="properties[sns-fb]" type="checkbox" id="check" value="1" <?php checked(isset($this->options['sns-fb']) ? $this->options['sns-fb'] : null, 1); ?> /><?php _e('Facebook', $this->text_domain); ?>
312
- <input name="properties[sns-hb]" type="checkbox" id="check" value="1" <?php checked(isset($this->options['sns-hb']) ? $this->options['sns-hb'] : null, 1); ?> /><?php _e('Hatena', $this->text_domain); ?>
313
- <br /><?php _e('There is a possibility that the screen display is slow If you enable this setting.', $this->text_domain); ?>
314
  </td>
315
  </tr>
316
  </table>
@@ -319,11 +397,10 @@
319
  <h3><?php _e('Letters', $this->text_domain); ?></h3>
320
  <table class="form-table">
321
  <tr valign="top">
322
- <th scope="row"><label for="inputtext"><?php _e('Title', $this->text_domain); ?></label></th>
323
  <td>
324
- <input name="properties[color-title]" type="text" class="color-picker" id="pickedcolor" value="<?php echo esc_attr($this->options['color-title']); ?>" />
325
- <br />
326
- <select name="properties[size-title]">
327
  <option value="14px" <?php if($this->options['size-title'] == '14px') echo 'selected="selected"'; ?>><?php _e('14px', $this->text_domain); ?></option>
328
  <option value="16px" <?php if($this->options['size-title'] == '16px') echo 'selected="selected"'; ?>><?php _e('16px', $this->text_domain); ?></option>
329
  <option value="18px" <?php if($this->options['size-title'] == '18px') echo 'selected="selected"'; ?>><?php _e('18px', $this->text_domain); ?></option>
@@ -333,29 +410,29 @@
333
  <option value="120%" <?php if($this->options['size-title'] == '120%') echo 'selected="selected"'; ?>><?php _e('120%', $this->text_domain); ?></option>
334
  <option value="140%" <?php if($this->options['size-title'] == '140%') echo 'selected="selected"'; ?>><?php _e('140%', $this->text_domain); ?></option>
335
  </select>
 
336
  </td>
337
  </tr>
338
  <tr valign="top">
339
- <th scope="row"><label for="inputtext"><?php _e('URL', $this->text_domain); ?></label></th>
340
  <td>
341
- <input name="properties[color-url]" type="text" class="color-picker" id="pickedcolor" value="<?php echo esc_attr($this->options['color-url']); ?>" />
342
- <br />
343
- <select name="properties[size-url]">
344
  <option value="9px" <?php if($this->options['size-url'] == '9px') echo 'selected="selected"'; ?>><?php _e('9px', $this->text_domain); ?></option>
345
  <option value="12px" <?php if($this->options['size-url'] == '12px') echo 'selected="selected"'; ?>><?php _e('12px', $this->text_domain); ?></option>
346
  <option value="14px" <?php if($this->options['size-url'] == '14px') echo 'selected="selected"'; ?>><?php _e('14px', $this->text_domain); ?></option>
347
  <option value="70%" <?php if($this->options['size-url'] == '70%') echo 'selected="selected"'; ?>><?php _e('70%', $this->text_domain); ?></option>
348
  <option value="80%" <?php if($this->options['size-url'] == '80%') echo 'selected="selected"'; ?>><?php _e('80%', $this->text_domain); ?></option>
349
  <option value="90%" <?php if($this->options['size-url'] == '90%') echo 'selected="selected"'; ?>><?php _e('90%', $this->text_domain); ?></option>
 
350
  </select>
351
  </td>
352
  </tr>
353
  <tr valign="top">
354
- <th scope="row"><label for="inputtext"><?php _e('Excerpt', $this->text_domain); ?></label></th>
355
  <td>
356
- <input name="properties[color-excerpt]" type="text" class="color-picker" id="pickedcolor" value="<?php echo esc_attr($this->options['color-excerpt']); ?>" />
357
- <br />
358
- <select name="properties[size-excerpt]">
359
  <option value="9px" <?php if($this->options['size-excerpt'] == '9px') echo 'selected="selected"'; ?>><?php _e('9px', $this->text_domain); ?></option>
360
  <option value="11px" <?php if($this->options['size-excerpt'] == '11px') echo 'selected="selected"'; ?>><?php _e('11px', $this->text_domain); ?></option>
361
  <option value="12px" <?php if($this->options['size-excerpt'] == '12px') echo 'selected="selected"'; ?>><?php _e('12px', $this->text_domain); ?></option>
@@ -363,15 +440,16 @@
363
  <option value="70%" <?php if($this->options['size-excerpt'] == '70%') echo 'selected="selected"'; ?>><?php _e('70%', $this->text_domain); ?></option>
364
  <option value="80%" <?php if($this->options['size-excerpt'] == '80%') echo 'selected="selected"'; ?>><?php _e('80%', $this->text_domain); ?></option>
365
  <option value="90%" <?php if($this->options['size-excerpt'] == '90%') echo 'selected="selected"'; ?>><?php _e('90%', $this->text_domain); ?></option>
 
366
  </select>
 
367
  </td>
368
  </tr>
369
  <tr valign="top">
370
- <th scope="row"><label for="inputtext"><?php _e('Site-info.', $this->text_domain); ?></label></th>
371
  <td>
372
- <input name="properties[color-info]" type="text" class="color-picker" id="pickedcolor" value="<?php echo esc_attr($this->options['color-info']); ?>" />
373
- <br />
374
- <select name="properties[size-info]">
375
  <option value="9px" <?php if($this->options['size-info'] == '9px') echo 'selected="selected"'; ?>><?php _e('9px', $this->text_domain); ?></option>
376
  <option value="11px" <?php if($this->options['size-info'] == '11px') echo 'selected="selected"'; ?>><?php _e('11px', $this->text_domain); ?></option>
377
  <option value="12px" <?php if($this->options['size-info'] == '12px') echo 'selected="selected"'; ?>><?php _e('12px', $this->text_domain); ?></option>
@@ -383,14 +461,14 @@
383
  <option value="90%" <?php if($this->options['size-info'] == '90%') echo 'selected="selected"'; ?>><?php _e('90%', $this->text_domain); ?></option>
384
  <option value="100%" <?php if($this->options['size-info'] == '100%') echo 'selected="selected"'; ?>><?php _e('100%', $this->text_domain); ?></option>
385
  </select>
 
386
  </td>
387
  </tr>
388
  <tr valign="top" style="display: none;">
389
- <th scope="row"><label for="inputtext"><?php _e('Plugin link', $this->text_domain); ?></label></th>
390
- <td>
391
- <input name="properties[color-plugin]" type="text" class="color-picker" id="pickedcolor" value="<?php echo esc_attr($this->options['color-plugin']); ?>" />
392
- <br />
393
- <select name="properties[size-plugin]">
394
  <option value="4px" <?php if($this->options['size-info'] == '4px') echo 'selected="selected"'; ?>><?php _e('4px', $this->text_domain); ?></option>
395
  <option value="6px" <?php if($this->options['size-info'] == '6px') echo 'selected="selected"'; ?>><?php _e('4px', $this->text_domain); ?></option>
396
  <option value="9px" <?php if($this->options['size-info'] == '9px') echo 'selected="selected"'; ?>><?php _e('9px', $this->text_domain); ?></option>
@@ -399,7 +477,7 @@
399
  </td>
400
  </tr>
401
  <tr valign="top" style="display: none;">
402
- <th scope="row"><label for="inputtext"><?php _e('Plugin-link', $this->text_domain); ?></label></th>
403
  <td><input name="properties[color-plugin]" type="text" class="color-picker" id="pickedcolor" value="<?php echo esc_attr($this->options['color-plugin']); ?>" /></td>
404
  </tr>
405
 
@@ -411,15 +489,15 @@
411
  <table class="form-table">
412
 
413
  <tr valign="top">
414
- <th scope="row"><label for="inputtext"><?php _e('Background Color', $this->text_domain); ?></label></th>
415
  <td><input name="properties[ex-bgcolor]" type="text" class="color-picker" id="pickedcolor" value="<?php echo esc_attr($this->options['ex-bgcolor']); ?>" /></td>
416
  </tr>
417
  <tr valign="top">
418
- <th scope="row"><label for="inputtext"><?php _e('Background image', $this->text_domain); ?></label></th>
419
  <td><input name="properties[ex-image]" type="text" id="inputtext" value="<?php echo esc_attr($this->options['ex-image']); ?>" size="80" /></td>
420
  </tr>
421
  <tr valign="top">
422
- <th scope="row"><label for="inputtext"><?php _e('Thumbnail', $this->text_domain); ?></label></th>
423
  <td>
424
  <select name="properties[ex-thumbnail]">
425
  <option value="" <?php if($this->options['ex-thumbnail'] == '') echo 'selected="selected"'; ?>><?php _e('None', $this->text_domain); ?></option>
@@ -429,7 +507,7 @@
429
  </td>
430
  </tr>
431
  <tr valign="top">
432
- <th scope="row"><label for="inputtext"><?php _e('Favicon', $this->text_domain); ?></label></th>
433
  <td>
434
  <select name="properties[ex-favicon]">
435
  <option value="" <?php if($this->options['ex-favicon'] == '') echo 'selected="selected"'; ?>><?php _e('None', $this->text_domain); ?></option>
@@ -439,11 +517,11 @@
439
  </td>
440
  </tr>
441
  <tr valign="top">
442
- <th scope="row"><label for="inputtext"><?php _e('Site information', $this->text_domain); ?></label></th>
443
  <td><input name="properties[ex-info]" type="text" id="inputtext" value="<?php echo esc_attr($this->options['ex-info']); ?>" class="regular-text" /></td>
444
  </tr>
445
  <tr valign="top">
446
- <th scope="row"><label for="inputtext"><?php _e('Open new window/tab', $this->text_domain); ?></label></th>
447
  <td>
448
  <select name="properties[ex-target]">
449
  <option value="" <?php if($this->options['ex-target'] == '') echo 'selected="selected"'; ?>><?php _e('None', $this->text_domain); ?></option>
@@ -458,15 +536,15 @@
458
  <h3><?php _e('Internal link', $this->text_domain); ?></h3>
459
  <table class="form-table">
460
  <tr valign="top">
461
- <th scope="row"><label for="inputtext"><?php _e('Background Color', $this->text_domain); ?></label></th>
462
  <td><input name="properties[in-bgcolor]" type="text" class="color-picker" id="pickedcolor" value="<?php echo esc_attr($this->options['in-bgcolor']); ?>" /></td>
463
  </tr>
464
  <tr valign="top">
465
- <th scope="row"><label for="inputtext"><?php _e('Background Image', $this->text_domain); ?></label></th>
466
  <td><input name="properties[in-image]" type="text" id="inputtext" value="<?php echo esc_attr($this->options['in-image']); ?>" size="80" /></td>
467
  </tr>
468
  <tr valign="top">
469
- <th scope="row"><label for="inputtext"><?php _e('Thumbnail', $this->text_domain); ?></label></th>
470
  <td>
471
  <select name="properties[in-thumbnail]">
472
  <option value="" <?php if($this->options['in-thumbnail'] == '') echo 'selected="selected"'; ?>><?php _e('None', $this->text_domain); ?></option>
@@ -476,7 +554,7 @@
476
  </td>
477
  </tr>
478
  <tr valign="top">
479
- <th scope="row"><label for="inputtext"><?php _e('Favicon', $this->text_domain); ?></label></th>
480
  <td>
481
  <select name="properties[in-favicon]">
482
  <option value="" <?php if($this->options['in-favicon'] == '') echo 'selected="selected"'; ?>><?php _e('None', $this->text_domain); ?></option>
@@ -486,15 +564,15 @@
486
  </td>
487
  </tr>
488
  <tr valign="top">
489
- <th scope="row"><label for="inputtext"><?php _e('Site information', $this->text_domain); ?></label></th>
490
- <td><input name="properties[in-info]" type="text" id="inputtext" value="<?php echo esc_attr($this->options['in-info']); ?>" class="regular-text" /><br /></td>
491
  </tr>
492
  <tr valign="top">
493
- <th scope="row"><label for="inputtext"><?php _e('Open new window/tab', $this->text_domain); ?></label></th>
494
  <td>
495
  <select name="properties[in-target]">
496
  <option value="" <?php if($this->options['in-target'] == '') echo 'selected="selected"'; ?>><?php _e('None', $this->text_domain); ?></option>
497
- <option value="1" <?php if($this->options['in-target'] == '1') echo 'selected="selected"'; ?>><?php _e('All client', $this->text_domain); ?></option>
498
  <option value="2" <?php if($this->options['in-target'] == '2') echo 'selected="selected"'; ?>><?php _e('Other than mobile', $this->text_domain); ?></option>
499
  </select>
500
  </td>
@@ -505,27 +583,27 @@
505
  <h3><?php _e('Same-page link', $this->text_domain); ?></h3>
506
  <table class="form-table">
507
  <tr valign="top">
508
- <th scope="row"><label for="inputtext"><?php _e('Background Color', $this->text_domain); ?></label></th>
509
  <td><input name="properties[th-bgcolor]" type="text" class="color-picker" id="pickedcolor" value="<?php echo esc_attr($this->options['th-bgcolor']); ?>" /></td>
510
  </tr>
511
  <tr valign="top">
512
- <th scope="row"><label for="inputtext"><?php _e('Background Image', $this->text_domain); ?></label></th>
513
  <td><input name="properties[th-image]" type="text" id="inputtext" value="<?php echo esc_attr($this->options['th-image']); ?>" size="80" /></td>
514
  </tr>
515
  <tr valign="top">
516
- <th scope="row"><label for="inputtext"><?php _e('Thumbnail', $this->text_domain); ?></label></th>
517
  <td><?php _e('It is common with setting Internal-link', $this->text_domain); ?></td>
518
  </re>
519
  <tr valign="top">
520
- <th scope="row"><label for="inputtext"><?php _e('Favicon', $this->text_domain); ?></label></th>
521
  <td><?php _e('It is common with setting Internal-link', $this->text_domain); ?></td>
522
  </re>
523
  <tr valign="top">
524
- <th scope="row"><label for="inputtext"><?php _e('Site information', $this->text_domain); ?></label></th>
525
  <td><input name="properties[th-info]" type="text" id="inputtext" value="<?php echo esc_attr($this->options['th-info']); ?>" class="regular-text" /></td>
526
  </tr>
527
  <tr valign="top">
528
- <th scope="row"><label for="inputtext"><?php _e('Open new window/tab', $this->text_domain); ?></label></th>
529
  <td><?php _e('It is common with setting Internal-link', $this->text_domain); ?></td>
530
  </re>
531
  </table>
@@ -534,12 +612,12 @@
534
  <h3><?php _e('Web-API', $this->text_domain); ?></h3>
535
  <table class="form-table"
536
  <tr valign="top">
537
- <th scope="row"><label for="inputtext"><?php _e('Favicon API', $this->text_domain); ?></label></th>
538
  <td><input name="properties[favicon-api]" type="text" id="inputtext" value="<?php echo esc_attr($this->options['favicon-api']); ?>" size="80" />
539
- <p><?php _e('%DOMAIN% replace to domain name (ex. poporon.poponet.jp )<br />%DOMAIN_URL% replace to domain URL (ex. http://poporon.poponet.jp )', $this->text_domain); ?></p></td>
540
  </tr>
541
  <tr valign="top">
542
- <th scope="row"><label for="inputtext"><?php _e('Thumbnail API', $this->text_domain); ?></label></th>
543
  <td><input name="properties[thumbnail-api]" type="text" id="inputtext" value="<?php echo esc_attr($this->options['thumbnail-api']); ?>" size="80" />
544
  <p><?php _e('%URL% replace to URL', $this->text_domain); ?></p></td>
545
  </tr>
@@ -549,73 +627,65 @@
549
  <h3><?php _e('Debug', $this->text_domain); ?></h3>
550
  <table class="form-table">
551
  <tr valign="top">
552
- <th scope="row"><label for="inputtext"><?php _e('Use blockquote tag', $this->text_domain); ?></label></th>
553
- <td><input name="properties[blockquote]" type="checkbox" id="check" value="1" <?php checked(isset($this->options['blockquote']) ? $this->options['blockquote'] : null, 1); ?> />
554
- <?php _e('without using DIV tag, and use BLOCKQUOTE tag', $this->text_domain); ?></td>
555
  </tr>
556
  <tr valign="top">
557
- <th scope="row"><label for="inputtext"><?php _e('Set nofollow', $this->text_domain); ?></label></th>
558
- <td><input name="properties[nofollow]" type="checkbox" id="check" value="1" <?php checked(isset($this->options['nofollow']) ? $this->options['nofollow'] : null, 1); ?> />
559
- <?php _e('In the case of an external site, it puts the "nofollow"', $this->text_domain); ?></td>
560
  </tr>
561
 
562
  <tr valign="top">
563
- <th scope="row"><label for="inputtext"><?php _e('Reset img style', $this->text_domain); ?></label></th>
564
- <td><input name="properties[style-reset-img]" type="checkbox" id="check" value="1" <?php checked(isset($this->options['style-reset-img']) ? $this->options['style-reset-img'] : null, 1); ?> />
565
- <?php _e('When unnecessary frame is displayed on the image, you can improve it by case', $this->text_domain); ?></td>
566
  </tr>
567
 
568
  <tr valign="top">
569
- <th scope="row"><label for="inputtext"><?php _e('specified CSS', $this->text_domain); ?></label></th>
570
- <td><input name="properties[style]" type="checkbox" id="check" value="1" <?php checked(isset($this->options['style']) ? $this->options['style'] : null, 1); ?> />
571
- <?php _e('Use specified CSS file', $this->text_domain); ?></td>
572
  </tr>
573
  <tr valign="top">
574
- <th scope="row"><label for="inputtext"><?php _e('CSS file', $this->text_domain); ?></label></th>
575
- <td><input name="properties[css-file]" type="text" id="inputtext" value="<?php echo esc_attr($this->options['css-file']); ?>" size="80" /><br />
576
- <p><?php _e('(ex. http://exsample.com/style.css )', $this->text_domain); ?></p></td>
577
  </tr>
578
  <tr valign="top" style="display: none;">
579
- <th scope="row"><label for="inputtext"><?php _e('CSS file', $this->text_domain); ?></label></th>
580
- <td><input name="properties[css-path]" type="text" id="inputtext" value="<?php echo esc_attr($this->options['css-path']); ?>" size="80" /><br />
581
  </tr>
582
  <tr valign="top" style="display: none;">
583
- <th scope="row"><label for="inputtext"><?php _e('CSS URL', $this->text_domain); ?></label></th>
584
- <td><input name="properties[css-url]" type="text" id="inputtext" value="<?php echo esc_attr($this->options['css-url']); ?>" size="80" /><br />
585
  </tr>
586
 
587
  <tr valign="top">
588
- <th scope="row"><label for="inputtext"><?php _e('Use HatenaBlogCard', $this->text_domain); ?></label></th>
589
- <td><input name="properties[use-hatena]" type="checkbox" id="check" value="1" <?php checked(isset($this->options['use-hatena']) ? $this->options['use-hatena'] : null, 1); ?> />
590
- <?php _e('External links will use Always HatenaBlogCard (Not recommended)', $this->text_domain); ?></td>
591
  </tr>
592
 
593
  <tr valign="top">
594
- <th scope="row"><label for="inputtext"><?php _e('Display link to author page', $this->text_domain); ?></label></th>
595
- <td><input name="properties[plugin-link]" type="checkbox" id="check" value="1" <?php checked(isset($this->options['plugin-link']) ? $this->options['plugin-link'] : null, 1); ?> disabled="disabled" />
596
- <a href="<?php echo $this->options['plugin-url']; ?>" target="_blank"><?php echo $this->options['plugin-name']; ?></a></td>
597
  </tr>
598
  <tr valign="top" style="display: none;">
599
- <th scope="row"><label for="inputtext"><?php _e('Plugin URL', $this->text_domain); ?></label></th>
600
  <td><input name="properties[plugin-url]" type="text" id="inputtext" value="<?php echo esc_attr($this->options['plugin-url']); ?>" class="regular-text" /></td>
601
  </tr>
602
  <tr valign="top" style="display: none;">
603
- <th scope="row"><label for="inputtext"><?php _e('Plugin name', $this->text_domain); ?></label></th>
604
  <td><input name="properties[plugin-name]" type="text" id="inputtext" value="<?php echo esc_attr($this->options['plugin-name']); ?>" class="regular-text" /></td>
605
  </tr>
606
  <tr valign="top" style="display: none;">
607
- <th scope="row"><label for="inputtext"><?php _e('Plugin version', $this->text_domain); ?></label></th>
608
  <td><input name="properties[plugin-version]" type="text" id="inputtext" value="<?php echo esc_attr($this->options['plugin-version']); ?>" class="regular-text" /></td>
609
  </tr>
610
  <tr valign="top" style="display: none;">
611
- <th scope="row"><label for="inputtext"><?php _e('Saved datetime', $this->text_domain); ?></label></th>
612
  <td><input name="properties[saved-date]" type="text" id="inputtext" value="<?php echo esc_attr($this->options['saved-date']); ?>" /></td>
613
  </tr>
614
 
615
  <tr valign="top">
616
- <th scope="row"><label for="inputtext"><?php _e('Display elapsed time', $this->text_domain); ?></label></th>
617
- <td><input name="properties[debug-time]" type="checkbox" id="check" value="1" <?php checked(isset($this->options['debug-time']) ? $this->options['debug-time'] : null, 1); ?> />
618
- <?php _e('Output the elapsed time to HTML comment.', $this->text_domain); ?></td>
619
  </tr>
620
 
621
  </table>
@@ -624,8 +694,8 @@
624
  <h3><?php _e('Initialize', $this->text_domain); ?></h3>
625
  <table class="form-table">
626
  <tr valign="top">
627
- <th scope="row"><label for="inputtext"><?php _e('Return to the initial setting', $this->text_domain); ?></label></th>
628
- <td><input name="properties[initialize]" type="checkbox" id="check" value="1" <?php checked(isset($this->options['initialize']) ? $this->options['initialize'] : null, 1); ?> /></td>
629
  </tr>
630
  </table>
631
  <?php submit_button(); ?>
47
  } else {
48
  $this->options['content-height'] = $height.'px';
49
  }
50
+ $trim_count = preg_replace('/[^0-9]/', '', $this->options['trim-title']) - 0;
51
+ if ($trim_count == 0) {
52
+ $trim_count = $this->defaults['trim-title'];
53
+ }
54
+ $this->options['trim-title'] = $trim_count;
55
+ $trim_count = preg_replace('/[^0-9]/', '', $this->options['trim-count']) - 0;
56
+ if ($trim_count == 0) {
57
+ $trim_count = $this->defaults['trim-count'];
58
+ }
59
+ $this->options['trim-count'] = $trim_count;
60
+ $trim_count = preg_replace('/[^0-9]/', '', $this->options['trim-sitename']) - 0;
61
+ if ($trim_count == 0) {
62
+ $trim_count = $this->defaults['trim-sitename'];
63
  }
64
+ $this->options['trim-sitename'] = $trim_count;
65
 
66
  if ($result == true) {
67
  $result = update_option('Pz_LinkCard_options', $this->options);
80
  <h3><?php _e('Basic', $this->text_domain); ?></h3>
81
  <table class="form-table">
82
  <tr valign="top">
83
+ <th scope="row"><?php _e('ShortCode1', $this->text_domain); ?></th>
84
  <td><input name="properties[code1]" type="text" id="inputtext" value="<?php echo esc_attr($this->options['code1']); ?>" class="regular-text" />
85
  <p><?php _e('Case-sensitive', $this->text_domain); ?></p></td>
86
  </tr>
87
  <tr valign="top">
88
+ <th scope="row"><?php _e('Use inlinetext', $this->text_domain); ?></th>
89
  <td>
90
  [<?php echo esc_attr($this->options['code1']); ?> url="xxx"]
91
  <select name="properties[use-inline]">
98
  </td>
99
  </tr>
100
  <tr valign="top">
101
+ <th scope="row"><?php _e('ShortCode 2', $this->text_domain); ?></th>
102
  <td><input name="properties[code2]" type="text" id="inputtext" value="<?php echo esc_attr($this->options['code2']); ?>" class="regular-text" />
103
  <p><?php _e('Case-sensitive', $this->text_domain); ?></p></td>
104
  </tr>
105
  <tr valign="top">
106
+ <th scope="row"><?php _e('ShortCode 3', $this->text_domain); ?></th>
107
  <td><input name="properties[code3]" type="text" id="inputtext" value="<?php echo esc_attr($this->options['code3']); ?>" class="regular-text" />
108
  <p><?php _e('Case-sensitive', $this->text_domain); ?></p></td>
109
  </tr>
110
  <tr valign="top" style="display: none;">
111
+ <th scope="row"><?php _e('ShortCode 4', $this->text_domain); ?></th>
112
  <td><input name="properties[code4]" type="text" id="inputtext" value="<?php echo esc_attr($this->options['code4']); ?>" class="regular-text" />
113
  <p><?php _e('Case-sensitive', $this->text_domain); ?></p></td>
114
  </tr>
115
 
116
  <tr valign="top">
117
+ <th scope="row"><?php _e('Special Format', $this->text_domain); ?></th>
118
  <td>
119
  <select name="properties[special-format]">
120
  <option value="" <?php if($this->options['special-format'] == '') echo 'selected="selected"'; ?>><?php _e('None', $this->text_domain); ?></option>
131
  <option value="inE" <?php if($this->options['special-format'] == 'inE') echo 'selected="selected"'; ?>><?php _e('Green', $this->text_domain); ?></option>
132
  <option value="inR" <?php if($this->options['special-format'] == 'inR') echo 'selected="selected"'; ?>><?php _e('Blue', $this->text_domain); ?></option>
133
  </select>
134
+ <br><?php _e('Will some of the parameters are forcibly changed', $this->text_domain); ?></td>
135
+ </td>
136
  </tr>
137
  </table>
138
  <?php submit_button(); ?>
140
  <h3><?php _e('Style', $this->text_domain); ?></h3>
141
  <table class="form-table">
142
  <tr valign="top">
143
+ <th scope="row"><?php _e('Position', $this->text_domain); ?></th>
144
  <td>
145
  <table style="border: 1px dashed #000; background-color: #eee;">
146
  <tr>
147
  <td>
148
  </td>
149
  <td align="center">
150
+ <?php _e('Margin top', $this->text_domain); ?><br>
151
  <select name="properties[margin-top]">
152
  <option value="" <?php if($this->options['margin-top'] == '') echo 'selected="selected"'; ?>><?php _e('Not defined', $this->text_domain); ?></option>
153
  <option value="0" <?php if($this->options['margin-top'] == '0') echo 'selected="selected"'; ?>><?php _e('0', $this->text_domain); ?></option>
162
  </tr>
163
  <tr>
164
  <td align="center">
165
+ <?php _e('Margin left', $this->text_domain); ?><br>
166
  <select name="properties[margin-left]">
167
  <option value="" <?php if($this->options['margin-left'] == '') echo 'selected="selected"'; ?>><?php _e('Not defined', $this->text_domain); ?></option>
168
  <option value="0" <?php if($this->options['margin-left'] == '0') echo 'selected="selected"'; ?>><?php _e('0', $this->text_domain); ?></option>
174
  </select>
175
  </td>
176
  <td align="center" style="border: 1px solid #000; background-color: #fff;">
177
+
178
+ <table class="form-table">
179
+ <tr>
180
+ <td colspan="2" align="center">
181
+ <?php _e('Margin top', $this->text_domain); ?><br>
182
+ <select name="properties[card-top]">
183
+ <option value="" <?php if($this->options['card-top'] == '') echo 'selected="selected"'; ?>><?php _e('Not defined', $this->text_domain); ?></option>
184
+ <option value="4px" <?php if($this->options['card-top'] == '4px') echo 'selected="selected"'; ?>><?php _e('4px', $this->text_domain); ?></option>
185
+ <option value="8px" <?php if($this->options['card-top'] == '8px') echo 'selected="selected"'; ?>><?php _e('8px', $this->text_domain); ?></option>
186
+ <option value="16px" <?php if($this->options['card-top'] == '16px') echo 'selected="selected"'; ?>><?php _e('16px', $this->text_domain); ?></option>
187
+ <option value="32px" <?php if($this->options['card-top'] == '32px') echo 'selected="selected"'; ?>><?php _e('32px', $this->text_domain); ?></option>
188
+ <option value="64px" <?php if($this->options['card-top'] == '64px') echo 'selected="selected"'; ?>><?php _e('64px', $this->text_domain); ?></option>
189
+ <option value="0" <?php if($this->options['card-top'] == '0') echo 'selected="selected"'; ?>><?php _e('0', $this->text_domain); ?></option>
190
+ </select>
191
+ </td>
192
+ </tr>
193
+ <tr>
194
+ <td align="center">
195
+ <?php _e('Margin left', $this->text_domain); ?><br>
196
+ <select name="properties[card-left]">
197
+ <option value="" <?php if($this->options['card-left'] == '') echo 'selected="selected"'; ?>><?php _e('Not defined', $this->text_domain); ?></option>
198
+ <option value="4px" <?php if($this->options['card-left'] == '4px') echo 'selected="selected"'; ?>><?php _e('4px', $this->text_domain); ?></option>
199
+ <option value="8px" <?php if($this->options['card-left'] == '8px') echo 'selected="selected"'; ?>><?php _e('8px', $this->text_domain); ?></option>
200
+ <option value="16px" <?php if($this->options['card-left'] == '16px') echo 'selected="selected"'; ?>><?php _e('16px', $this->text_domain); ?></option>
201
+ <option value="32px" <?php if($this->options['card-left'] == '32px') echo 'selected="selected"'; ?>><?php _e('32px', $this->text_domain); ?></option>
202
+ <option value="64px" <?php if($this->options['card-left'] == '64px') echo 'selected="selected"'; ?>><?php _e('64px', $this->text_domain); ?></option>
203
+ <option value="0" <?php if($this->options['card-left'] == '0') echo 'selected="selected"'; ?>><?php _e('0', $this->text_domain); ?></option>
204
+ </select>
205
+ </td>
206
+ <td align="center">
207
+ <?php _e('Margin right', $this->text_domain); ?><br>
208
+ <select name="properties[card-right]">
209
+ <option value="" <?php if($this->options['card-right'] == '') echo 'selected="selected"'; ?>><?php _e('Not defined', $this->text_domain); ?></option>
210
+ <option value="4px" <?php if($this->options['card-right'] == '4px') echo 'selected="selected"'; ?>><?php _e('4px', $this->text_domain); ?></option>
211
+ <option value="8px" <?php if($this->options['card-right'] == '8px') echo 'selected="selected"'; ?>><?php _e('8px', $this->text_domain); ?></option>
212
+ <option value="16px" <?php if($this->options['card-right'] == '16px') echo 'selected="selected"'; ?>><?php _e('16px', $this->text_domain); ?></option>
213
+ <option value="32px" <?php if($this->options['card-right'] == '32px') echo 'selected="selected"'; ?>><?php _e('32px', $this->text_domain); ?></option>
214
+ <option value="64px" <?php if($this->options['card-right'] == '64px') echo 'selected="selected"'; ?>><?php _e('64px', $this->text_domain); ?></option>
215
+ <option value="0" <?php if($this->options['card-right'] == '0') echo 'selected="selected"'; ?>><?php _e('0', $this->text_domain); ?></option>
216
+ </select>
217
+ </td>
218
+ </tr>
219
+ <tr>
220
+ <td colspan="2" align="center">
221
+ <?php _e('Width', $this->text_domain); ?><input name="properties[width]" type="text" id="inputtext" value="<?php echo esc_attr($this->options['width']); ?>" style="width: 80px;" /><br>
222
+ <?php _e('Height', $this->text_domain); ?><input name="properties[content-height]" type="text" id="inputtext" value="<?php echo esc_attr($this->options['content-height']); ?>" style="width: 80px;" /><br>
223
+ </td>
224
+ </tr>
225
+ <tr>
226
+ <td colspan="2" align="center">
227
+ <?php _e('Margin bottom', $this->text_domain); ?><br>
228
+ <select name="properties[card-bottom]">
229
+ <option value="" <?php if($this->options['card-bottom'] == '') echo 'selected="selected"'; ?>><?php _e('Not defined', $this->text_domain); ?></option>
230
+ <option value="4px" <?php if($this->options['card-bottom'] == '4px') echo 'selected="selected"'; ?>><?php _e('4px', $this->text_domain); ?></option>
231
+ <option value="8px" <?php if($this->options['card-bottom'] == '8px') echo 'selected="selected"'; ?>><?php _e('8px', $this->text_domain); ?></option>
232
+ <option value="16px" <?php if($this->options['card-bottom'] == '16px') echo 'selected="selected"'; ?>><?php _e('16px', $this->text_domain); ?></option>
233
+ <option value="32px" <?php if($this->options['card-bottom'] == '32px') echo 'selected="selected"'; ?>><?php _e('32px', $this->text_domain); ?></option>
234
+ <option value="64px" <?php if($this->options['card-bottom'] == '64px') echo 'selected="selected"'; ?>><?php _e('64px', $this->text_domain); ?></option>
235
+ <option value="0" <?php if($this->options['card-bottom'] == '0') echo 'selected="selected"'; ?>><?php _e('0', $this->text_domain); ?></option>
236
+ </select>
237
+ </td>
238
+ </tr>
239
+ </table>
240
+
241
  </td>
242
  <td align="center">
243
+ <?php _e('Margin right', $this->text_domain); ?><br>
244
  <select name="properties[margin-right]">
245
  <option value="" <?php if($this->options['margin-right'] == '') echo 'selected="selected"'; ?>><?php _e('Not defined', $this->text_domain); ?></option>
246
  <option value="0" <?php if($this->options['margin-right'] == '0') echo 'selected="selected"'; ?>><?php _e('0', $this->text_domain); ?></option>
257
  <input name="properties[centering]" type="checkbox" id="check" value="1" <?php checked(isset($this->options['centering']) ? $this->options['centering'] : null, 1); ?> /><?php _e('Centering', $this->text_domain); ?>
258
  </td>
259
  <td align="center">
260
+ <?php _e('Margin bottom', $this->text_domain); ?><br>
261
  <select name="properties[margin-bottom]">
262
  <option value="" <?php if($this->options['margin-bottom'] == '') echo 'selected="selected"'; ?>><?php _e('Not defined', $this->text_domain); ?></option>
263
  <option value="0" <?php if($this->options['margin-bottom'] == '0') echo 'selected="selected"'; ?>><?php _e('0', $this->text_domain); ?></option>
276
  </tr>
277
 
278
  <tr valign="top">
279
+ <th scope="row"><?php _e('Link the whole', $this->text_domain); ?></th>
280
+ <td>
281
+ <label>
282
+ <input name="properties[link-all]" type="checkbox" id="check" value="1" <?php checked(isset($this->options['link-all']) ? $this->options['link-all'] : null, 1); ?> />
283
+ <?php _e('Enclose the entire card at anchor', $this->text_domain); ?>
284
+ </label>
285
  </td>
286
  </tr>
287
 
288
  <tr valign="top">
289
+ <th scope="row"><?php _e('Border', $this->text_domain); ?></th>
290
  <td>
291
  <select name="properties[border]">
292
  <option value="" <?php if($this->options['border'] == '') echo 'selected="selected"'; ?>><?php _e('None', $this->text_domain); ?></option>
308
 
309
  <tr valign="top">
310
  <th scope="row"><?php _e('Layout', $this->text_domain); ?></th>
311
+ <td>
312
+ <label>
313
+ <input name="properties[radius]" type="checkbox" id="check" value="1" <?php checked(isset($this->options['radius']) ? $this->options['radius'] : null, 1); ?> /><?php _e('Radius', $this->text_domain); ?>
314
+ </label>
315
+ </td>
316
  </tr>
317
  <tr>
318
  <th scope="row"></th>
327
  <option value="1" <?php if($this->options['info-position'] == '1') echo 'selected="selected"'; ?>><?php _e('Top', $this->text_domain); ?></option>
328
  <option value="2" <?php if($this->options['info-position'] == '2') echo 'selected="selected"'; ?>><?php _e('Bottom', $this->text_domain); ?></option>
329
  </select>
330
+ <label><input name="properties[use-sitename]" type="checkbox" id="check" value="1" <?php checked(isset($this->options['use-sitename']) ? $this->options['use-sitename'] : null, 1); ?> /><?php _e('Use SiteName', $this->text_domain); ?></label>
331
  </td>
332
  </tr>
333
  <tr>
334
  <td>
335
+ <label><input name="properties[separator]" type="checkbox" id="check" value="1" <?php checked(isset($this->options['separator']) ? $this->options['separator'] : null, 1); ?> /><?php _e('Separator line', $this->text_domain); ?></label>
336
  </td>
337
  <td>
338
  </td>
339
  </tr>
340
  <tr>
341
  <td>
342
+ <label><input name="properties[display-url]" type="checkbox" id="check" value="1" <?php checked(isset($this->options['display-url']) ? $this->options['display-url'] : null, 1); ?> /><?php _e('Display URL', $this->text_domain); ?></label>
343
  </td>
344
  <td rowspan="3" style="border: 1px solid #000;">
345
+ <?php _e('Thumbnail', $this->text_domain); ?><br>
346
  <select name="properties[thumbnail-position]">
347
  <option value="0" <?php if($this->options['thumbnail-position'] == '0') echo 'selected="selected"'; ?>><?php _e('None', $this->text_domain); ?></option>
348
  <option value="1" <?php if($this->options['thumbnail-position'] == '1') echo 'selected="selected"'; ?>><?php _e('Right', $this->text_domain); ?></option>
349
  <option value="2" <?php if($this->options['thumbnail-position'] == '2') echo 'selected="selected"'; ?>><?php _e('Left', $this->text_domain); ?></option>
350
  </select>
351
+ <br>
352
+ <label><input name="properties[thumbnail-shadow]" type="checkbox" id="check" value="1" <?php checked(isset($this->options['thumbnail-shadow']) ? $this->options['thumbnail-shadow'] : null, 1); ?> /><?php _e('Shadow', $this->text_domain); ?></label>
353
  </td>
354
  </tr>
355
  <tr>
356
  <td>
357
+ <label><input name="properties[content-inset]" type="checkbox" id="check" value="1" <?php checked(isset($this->options['content-inset']) ? $this->options['content-inset'] : null, 1); ?> /><?php _e('Hollow content area', $this->text_domain); ?></label>
358
  </td>
359
  </tr>
360
  <tr>
361
  <td>
362
+ <label><input name="properties[display-excerpt]" type="checkbox" id="check" value="1" <?php checked(isset($this->options['display-excerpt']) ? $this->options['display-excerpt'] : null, 1); ?> /><?php _e('Display excerpt', $this->text_domain); ?></label>
363
  </td>
364
  </tr>
365
  <tr>
366
  <td>
367
+ <label><input name="properties[shadow-inset]" type="checkbox" id="check" value="1" <?php checked(isset($this->options['shadow-inset']) ? $this->options['shadow-inset'] : null, 1); ?> /><?php _e('Hollow', $this->text_domain); ?></label>
368
  </td>
369
  <td>
370
  </td>
374
  </tr>
375
  <tr valign="top">
376
  <th scope="row"></th>
377
+ <td><label><input name="properties[shadow]" type="checkbox" id="check" value="1" <?php checked(isset($this->options['shadow']) ? $this->options['shadow'] : null, 1); ?> /><?php _e('Shadow', $this->text_domain); ?></label></td>
378
  </tr>
379
 
380
  <tr valign="top">
381
+ <th scope="row"><?php _e('Display SNS Count', $this->text_domain); ?></th>
382
  <td>
383
  <select name="properties[sns-position]">
384
  <option value="" <?php if($this->options['sns-position'] == '') echo 'selected="selected"'; ?>><?php _e('None', $this->text_domain); ?></option>
385
  <option value="1" <?php if($this->options['sns-position'] == '1') echo 'selected="selected"'; ?>><?php _e('After Title', $this->text_domain); ?></option>
386
  <option value="2" <?php if($this->options['sns-position'] == '2') echo 'selected="selected"'; ?>><?php _e('After site-name', $this->text_domain); ?></option>
387
  </select>
388
+ <label><input name="properties[sns-tw]" type="checkbox" id="check" value="1" <?php checked(isset($this->options['sns-tw']) ? $this->options['sns-tw'] : null, 1); ?> /><?php _e('Twitter', $this->text_domain); ?></label>
389
+ <label><input name="properties[sns-fb]" type="checkbox" id="check" value="1" <?php checked(isset($this->options['sns-fb']) ? $this->options['sns-fb'] : null, 1); ?> /><?php _e('Facebook', $this->text_domain); ?></label>
390
+ <label><input name="properties[sns-hb]" type="checkbox" id="check" value="1" <?php checked(isset($this->options['sns-hb']) ? $this->options['sns-hb'] : null, 1); ?> /><?php _e('Hatena', $this->text_domain); ?></label>
391
+ <br><?php _e('There is a possibility that the screen display is slow If you enable this setting.', $this->text_domain); ?>
392
  </td>
393
  </tr>
394
  </table>
397
  <h3><?php _e('Letters', $this->text_domain); ?></h3>
398
  <table class="form-table">
399
  <tr valign="top">
400
+ <th scope="row"><?php _e('Title', $this->text_domain); ?></th>
401
  <td>
402
+ <?php _e('Color', $this->text_domain); ?><input name="properties[color-title]" type="text" class="color-picker" id="pickedcolor" value="<?php echo esc_attr($this->options['color-title']); ?>" />
403
+ &nbsp;<?php _e('Size', $this->text_domain); ?><select name="properties[size-title]">
 
404
  <option value="14px" <?php if($this->options['size-title'] == '14px') echo 'selected="selected"'; ?>><?php _e('14px', $this->text_domain); ?></option>
405
  <option value="16px" <?php if($this->options['size-title'] == '16px') echo 'selected="selected"'; ?>><?php _e('16px', $this->text_domain); ?></option>
406
  <option value="18px" <?php if($this->options['size-title'] == '18px') echo 'selected="selected"'; ?>><?php _e('18px', $this->text_domain); ?></option>
410
  <option value="120%" <?php if($this->options['size-title'] == '120%') echo 'selected="selected"'; ?>><?php _e('120%', $this->text_domain); ?></option>
411
  <option value="140%" <?php if($this->options['size-title'] == '140%') echo 'selected="selected"'; ?>><?php _e('140%', $this->text_domain); ?></option>
412
  </select>
413
+ &nbsp;<?php _e('Length', $this->text_domain); ?><input name="properties[trim-title]" type="text" id="inputtext" value="<?php echo intval(isset($this->options['trim-title']) ? $this->options['trim-title'] : $this->defaults['trim-title']); ?>" style="width: 3em;" />
414
  </td>
415
  </tr>
416
  <tr valign="top">
417
+ <th scope="row"><?php _e('URL', $this->text_domain); ?></th>
418
  <td>
419
+ <?php _e('Color', $this->text_domain); ?><input name="properties[color-url]" type="text" class="color-picker" id="pickedcolor" value="<?php echo esc_attr($this->options['color-url']); ?>" />
420
+ &nbsp;<?php _e('Size', $this->text_domain); ?><select name="properties[size-url]">
 
421
  <option value="9px" <?php if($this->options['size-url'] == '9px') echo 'selected="selected"'; ?>><?php _e('9px', $this->text_domain); ?></option>
422
  <option value="12px" <?php if($this->options['size-url'] == '12px') echo 'selected="selected"'; ?>><?php _e('12px', $this->text_domain); ?></option>
423
  <option value="14px" <?php if($this->options['size-url'] == '14px') echo 'selected="selected"'; ?>><?php _e('14px', $this->text_domain); ?></option>
424
  <option value="70%" <?php if($this->options['size-url'] == '70%') echo 'selected="selected"'; ?>><?php _e('70%', $this->text_domain); ?></option>
425
  <option value="80%" <?php if($this->options['size-url'] == '80%') echo 'selected="selected"'; ?>><?php _e('80%', $this->text_domain); ?></option>
426
  <option value="90%" <?php if($this->options['size-url'] == '90%') echo 'selected="selected"'; ?>><?php _e('90%', $this->text_domain); ?></option>
427
+ <option value="100%" <?php if($this->options['size-url'] == '100%') echo 'selected="selected"'; ?>><?php _e('100%', $this->text_domain); ?></option>
428
  </select>
429
  </td>
430
  </tr>
431
  <tr valign="top">
432
+ <th scope="row"><?php _e('Excerpt', $this->text_domain); ?></th>
433
  <td>
434
+ <?php _e('Color', $this->text_domain); ?><input name="properties[color-excerpt]" type="text" class="color-picker" id="pickedcolor" value="<?php echo esc_attr($this->options['color-excerpt']); ?>" />
435
+ &nbsp;<?php _e('Size', $this->text_domain); ?><select name="properties[size-excerpt]">
 
436
  <option value="9px" <?php if($this->options['size-excerpt'] == '9px') echo 'selected="selected"'; ?>><?php _e('9px', $this->text_domain); ?></option>
437
  <option value="11px" <?php if($this->options['size-excerpt'] == '11px') echo 'selected="selected"'; ?>><?php _e('11px', $this->text_domain); ?></option>
438
  <option value="12px" <?php if($this->options['size-excerpt'] == '12px') echo 'selected="selected"'; ?>><?php _e('12px', $this->text_domain); ?></option>
440
  <option value="70%" <?php if($this->options['size-excerpt'] == '70%') echo 'selected="selected"'; ?>><?php _e('70%', $this->text_domain); ?></option>
441
  <option value="80%" <?php if($this->options['size-excerpt'] == '80%') echo 'selected="selected"'; ?>><?php _e('80%', $this->text_domain); ?></option>
442
  <option value="90%" <?php if($this->options['size-excerpt'] == '90%') echo 'selected="selected"'; ?>><?php _e('90%', $this->text_domain); ?></option>
443
+ <option value="100%" <?php if($this->options['size-excerpt'] == '100%') echo 'selected="selected"'; ?>><?php _e('100%', $this->text_domain); ?></option>
444
  </select>
445
+ &nbsp;<?php _e('Length', $this->text_domain); ?><input name="properties[trim-count]" type="text" id="inputtext" value="<?php echo intval(isset($this->options['trim-count']) ? $this->options['trim-count'] : $this->defaults['trim-sount']); ?>" style="width: 3em;" />
446
  </td>
447
  </tr>
448
  <tr valign="top">
449
+ <th scope="row"><?php _e('Site-info.', $this->text_domain); ?></th>
450
  <td>
451
+ <?php _e('Color', $this->text_domain); ?><input name="properties[color-info]" type="text" class="color-picker" id="pickedcolor" value="<?php echo esc_attr($this->options['color-info']); ?>" />
452
+ &nbsp;<?php _e('Size', $this->text_domain); ?><select name="properties[size-info]">
 
453
  <option value="9px" <?php if($this->options['size-info'] == '9px') echo 'selected="selected"'; ?>><?php _e('9px', $this->text_domain); ?></option>
454
  <option value="11px" <?php if($this->options['size-info'] == '11px') echo 'selected="selected"'; ?>><?php _e('11px', $this->text_domain); ?></option>
455
  <option value="12px" <?php if($this->options['size-info'] == '12px') echo 'selected="selected"'; ?>><?php _e('12px', $this->text_domain); ?></option>
461
  <option value="90%" <?php if($this->options['size-info'] == '90%') echo 'selected="selected"'; ?>><?php _e('90%', $this->text_domain); ?></option>
462
  <option value="100%" <?php if($this->options['size-info'] == '100%') echo 'selected="selected"'; ?>><?php _e('100%', $this->text_domain); ?></option>
463
  </select>
464
+ &nbsp;<?php _e('Length', $this->text_domain); ?><input name="properties[trim-sitename]" type="text" id="inputtext" value="<?php echo intval(isset($this->options['trim-sitename']) ? $this->options['trim-sitename'] : $this->defaults['trim-sitename']); ?>" style="width: 3em;" />
465
  </td>
466
  </tr>
467
  <tr valign="top" style="display: none;">
468
+ <th scope="row"><?php _e('Plugin link', $this->text_domain); ?></th>
469
+ <td valign="top">
470
+ <?php _e('Color', $this->text_domain); ?><input name="properties[color-plugin]" type="text" class="color-picker" id="pickedcolor" value="<?php echo esc_attr($this->options['color-plugin']); ?>" />
471
+ &nbsp;<?php _e('Size', $this->text_domain); ?><select name="properties[size-plugin]">
 
472
  <option value="4px" <?php if($this->options['size-info'] == '4px') echo 'selected="selected"'; ?>><?php _e('4px', $this->text_domain); ?></option>
473
  <option value="6px" <?php if($this->options['size-info'] == '6px') echo 'selected="selected"'; ?>><?php _e('4px', $this->text_domain); ?></option>
474
  <option value="9px" <?php if($this->options['size-info'] == '9px') echo 'selected="selected"'; ?>><?php _e('9px', $this->text_domain); ?></option>
477
  </td>
478
  </tr>
479
  <tr valign="top" style="display: none;">
480
+ <th scope="row"><?php _e('Plugin-link', $this->text_domain); ?></th>
481
  <td><input name="properties[color-plugin]" type="text" class="color-picker" id="pickedcolor" value="<?php echo esc_attr($this->options['color-plugin']); ?>" /></td>
482
  </tr>
483
 
489
  <table class="form-table">
490
 
491
  <tr valign="top">
492
+ <th scope="row"><?php _e('Background Color', $this->text_domain); ?></th>
493
  <td><input name="properties[ex-bgcolor]" type="text" class="color-picker" id="pickedcolor" value="<?php echo esc_attr($this->options['ex-bgcolor']); ?>" /></td>
494
  </tr>
495
  <tr valign="top">
496
+ <th scope="row"><?php _e('Background image', $this->text_domain); ?></th>
497
  <td><input name="properties[ex-image]" type="text" id="inputtext" value="<?php echo esc_attr($this->options['ex-image']); ?>" size="80" /></td>
498
  </tr>
499
  <tr valign="top">
500
+ <th scope="row"><?php _e('Thumbnail', $this->text_domain); ?></th>
501
  <td>
502
  <select name="properties[ex-thumbnail]">
503
  <option value="" <?php if($this->options['ex-thumbnail'] == '') echo 'selected="selected"'; ?>><?php _e('None', $this->text_domain); ?></option>
507
  </td>
508
  </tr>
509
  <tr valign="top">
510
+ <th scope="row"><?php _e('Favicon', $this->text_domain); ?></th>
511
  <td>
512
  <select name="properties[ex-favicon]">
513
  <option value="" <?php if($this->options['ex-favicon'] == '') echo 'selected="selected"'; ?>><?php _e('None', $this->text_domain); ?></option>
517
  </td>
518
  </tr>
519
  <tr valign="top">
520
+ <th scope="row"><?php _e('Site information', $this->text_domain); ?></th>
521
  <td><input name="properties[ex-info]" type="text" id="inputtext" value="<?php echo esc_attr($this->options['ex-info']); ?>" class="regular-text" /></td>
522
  </tr>
523
  <tr valign="top">
524
+ <th scope="row"><?php _e('Open new window/tab', $this->text_domain); ?></th>
525
  <td>
526
  <select name="properties[ex-target]">
527
  <option value="" <?php if($this->options['ex-target'] == '') echo 'selected="selected"'; ?>><?php _e('None', $this->text_domain); ?></option>
536
  <h3><?php _e('Internal link', $this->text_domain); ?></h3>
537
  <table class="form-table">
538
  <tr valign="top">
539
+ <th scope="row"><?php _e('Background Color', $this->text_domain); ?></th>
540
  <td><input name="properties[in-bgcolor]" type="text" class="color-picker" id="pickedcolor" value="<?php echo esc_attr($this->options['in-bgcolor']); ?>" /></td>
541
  </tr>
542
  <tr valign="top">
543
+ <th scope="row"><?php _e('Background Image', $this->text_domain); ?></th>
544
  <td><input name="properties[in-image]" type="text" id="inputtext" value="<?php echo esc_attr($this->options['in-image']); ?>" size="80" /></td>
545
  </tr>
546
  <tr valign="top">
547
+ <th scope="row"><?php _e('Thumbnail', $this->text_domain); ?></th>
548
  <td>
549
  <select name="properties[in-thumbnail]">
550
  <option value="" <?php if($this->options['in-thumbnail'] == '') echo 'selected="selected"'; ?>><?php _e('None', $this->text_domain); ?></option>
554
  </td>
555
  </tr>
556
  <tr valign="top">
557
+ <th scope="row"><?php _e('Favicon', $this->text_domain); ?></th>
558
  <td>
559
  <select name="properties[in-favicon]">
560
  <option value="" <?php if($this->options['in-favicon'] == '') echo 'selected="selected"'; ?>><?php _e('None', $this->text_domain); ?></option>
564
  </td>
565
  </tr>
566
  <tr valign="top">
567
+ <th scope="row"><?php _e('Site information', $this->text_domain); ?></th>
568
+ <td><input name="properties[in-info]" type="text" id="inputtext" value="<?php echo esc_attr($this->options['in-info']); ?>" class="regular-text" /><br></td>
569
  </tr>
570
  <tr valign="top">
571
+ <th scope="row"><?php _e('Open new window/tab', $this->text_domain); ?></th>
572
  <td>
573
  <select name="properties[in-target]">
574
  <option value="" <?php if($this->options['in-target'] == '') echo 'selected="selected"'; ?>><?php _e('None', $this->text_domain); ?></option>
575
+ <option value="1" <?php if($this->options['ex-target'] == '1') echo 'selected="selected"'; ?>><?php _e('All client', $this->text_domain); ?></option>
576
  <option value="2" <?php if($this->options['in-target'] == '2') echo 'selected="selected"'; ?>><?php _e('Other than mobile', $this->text_domain); ?></option>
577
  </select>
578
  </td>
583
  <h3><?php _e('Same-page link', $this->text_domain); ?></h3>
584
  <table class="form-table">
585
  <tr valign="top">
586
+ <th scope="row"><?php _e('Background Color', $this->text_domain); ?></th>
587
  <td><input name="properties[th-bgcolor]" type="text" class="color-picker" id="pickedcolor" value="<?php echo esc_attr($this->options['th-bgcolor']); ?>" /></td>
588
  </tr>
589
  <tr valign="top">
590
+ <th scope="row"><?php _e('Background Image', $this->text_domain); ?></th>
591
  <td><input name="properties[th-image]" type="text" id="inputtext" value="<?php echo esc_attr($this->options['th-image']); ?>" size="80" /></td>
592
  </tr>
593
  <tr valign="top">
594
+ <th scope="row"><?php _e('Thumbnail', $this->text_domain); ?></th>
595
  <td><?php _e('It is common with setting Internal-link', $this->text_domain); ?></td>
596
  </re>
597
  <tr valign="top">
598
+ <th scope="row"><?php _e('Favicon', $this->text_domain); ?></th>
599
  <td><?php _e('It is common with setting Internal-link', $this->text_domain); ?></td>
600
  </re>
601
  <tr valign="top">
602
+ <th scope="row"><?php _e('Site information', $this->text_domain); ?></th>
603
  <td><input name="properties[th-info]" type="text" id="inputtext" value="<?php echo esc_attr($this->options['th-info']); ?>" class="regular-text" /></td>
604
  </tr>
605
  <tr valign="top">
606
+ <th scope="row"><?php _e('Open new window/tab', $this->text_domain); ?></th>
607
  <td><?php _e('It is common with setting Internal-link', $this->text_domain); ?></td>
608
  </re>
609
  </table>
612
  <h3><?php _e('Web-API', $this->text_domain); ?></h3>
613
  <table class="form-table"
614
  <tr valign="top">
615
+ <th scope="row"><?php _e('Favicon API', $this->text_domain); ?></th>
616
  <td><input name="properties[favicon-api]" type="text" id="inputtext" value="<?php echo esc_attr($this->options['favicon-api']); ?>" size="80" />
617
+ <p><?php _e('%DOMAIN% replace to domain name (ex. poporon.poponet.jp )<br>%DOMAIN_URL% replace to domain URL (ex. http://poporon.poponet.jp )', $this->text_domain); ?></p></td>
618
  </tr>
619
  <tr valign="top">
620
+ <th scope="row"><?php _e('Thumbnail API', $this->text_domain); ?></th>
621
  <td><input name="properties[thumbnail-api]" type="text" id="inputtext" value="<?php echo esc_attr($this->options['thumbnail-api']); ?>" size="80" />
622
  <p><?php _e('%URL% replace to URL', $this->text_domain); ?></p></td>
623
  </tr>
627
  <h3><?php _e('Debug', $this->text_domain); ?></h3>
628
  <table class="form-table">
629
  <tr valign="top">
630
+ <th scope="row"><?php _e('Use blockquote tag', $this->text_domain); ?></th>
631
+ <td><label><input name="properties[blockquote]" type="checkbox" id="check" value="1" <?php checked(isset($this->options['blockquote']) ? $this->options['blockquote'] : null, 1); ?> /><?php _e('without using DIV tag, and use BLOCKQUOTE tag', $this->text_domain); ?></label></td>
 
632
  </tr>
633
  <tr valign="top">
634
+ <th scope="row"><?php _e('Set nofollow', $this->text_domain); ?></th>
635
+ <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>
 
636
  </tr>
637
 
638
  <tr valign="top">
639
+ <th scope="row"><?php _e('Reset img style', $this->text_domain); ?></th>
640
+ <td><label><input name="properties[style-reset-img]" type="checkbox" id="check" value="1" <?php checked(isset($this->options['style-reset-img']) ? $this->options['style-reset-img'] : null, 1); ?> /><?php _e('When unnecessary frame is displayed on the image, you can improve it by case', $this->text_domain); ?></label></td>
 
641
  </tr>
642
 
643
  <tr valign="top">
644
+ <th scope="row"><?php _e('specified CSS', $this->text_domain); ?></th>
645
+ <td><label><input name="properties[style]" type="checkbox" id="check" value="1" <?php checked(isset($this->options['style']) ? $this->options['style'] : null, 1); ?> /><?php _e('Use specified CSS file', $this->text_domain); ?></label></td>
 
646
  </tr>
647
  <tr valign="top">
648
+ <th scope="row"><?php _e('CSS file', $this->text_domain); ?></th>
649
+ <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>
 
650
  </tr>
651
  <tr valign="top" style="display: none;">
652
+ <th scope="row"><?php _e('CSS file', $this->text_domain); ?></th>
653
+ <td><input name="properties[css-path]" type="text" id="inputtext" value="<?php echo esc_attr($this->options['css-path']); ?>" size="80" /><br>
654
  </tr>
655
  <tr valign="top" style="display: none;">
656
+ <th scope="row"><?php _e('CSS URL', $this->text_domain); ?></th>
657
+ <td><input name="properties[css-url]" type="text" id="inputtext" value="<?php echo esc_attr($this->options['css-url']); ?>" size="80" /><br>
658
  </tr>
659
 
660
  <tr valign="top">
661
+ <th scope="row"><?php _e('Use HatenaBlogCard', $this->text_domain); ?></th>
662
+ <td><label><input name="properties[use-hatena]" type="checkbox" id="check" value="1" <?php checked(isset($this->options['use-hatena']) ? $this->options['use-hatena'] : null, 1); ?> /><?php _e('External links will use Always HatenaBlogCard (Not recommended)', $this->text_domain); ?></label></td>
 
663
  </tr>
664
 
665
  <tr valign="top">
666
+ <th scope="row"><?php _e('Display link to author page', $this->text_domain); ?></th>
667
+ <td><input name="properties[plugin-link]" type="checkbox" id="check" value="1" <?php checked(isset($this->options['plugin-link']) ? $this->options['plugin-link'] : null, 1); ?> disabled="disabled" /><a href="<?php echo $this->options['plugin-url']; ?>" target="_blank"><?php echo $this->options['plugin-name']; ?></a></td>
 
668
  </tr>
669
  <tr valign="top" style="display: none;">
670
+ <th scope="row"><?php _e('Plugin URL', $this->text_domain); ?></th>
671
  <td><input name="properties[plugin-url]" type="text" id="inputtext" value="<?php echo esc_attr($this->options['plugin-url']); ?>" class="regular-text" /></td>
672
  </tr>
673
  <tr valign="top" style="display: none;">
674
+ <th scope="row"><?php _e('Plugin name', $this->text_domain); ?></th>
675
  <td><input name="properties[plugin-name]" type="text" id="inputtext" value="<?php echo esc_attr($this->options['plugin-name']); ?>" class="regular-text" /></td>
676
  </tr>
677
  <tr valign="top" style="display: none;">
678
+ <th scope="row"><?php _e('Plugin version', $this->text_domain); ?></th>
679
  <td><input name="properties[plugin-version]" type="text" id="inputtext" value="<?php echo esc_attr($this->options['plugin-version']); ?>" class="regular-text" /></td>
680
  </tr>
681
  <tr valign="top" style="display: none;">
682
+ <th scope="row"><?php _e('Saved datetime', $this->text_domain); ?></th>
683
  <td><input name="properties[saved-date]" type="text" id="inputtext" value="<?php echo esc_attr($this->options['saved-date']); ?>" /></td>
684
  </tr>
685
 
686
  <tr valign="top">
687
+ <th scope="row"><?php _e('Display elapsed time', $this->text_domain); ?></th>
688
+ <td><label><input name="properties[debug-time]" type="checkbox" id="check" value="1" <?php checked(isset($this->options['debug-time']) ? $this->options['debug-time'] : null, 1); ?> /><?php _e('Output the elapsed time to HTML comment.', $this->text_domain); ?></label></td>
 
689
  </tr>
690
 
691
  </table>
694
  <h3><?php _e('Initialize', $this->text_domain); ?></h3>
695
  <table class="form-table">
696
  <tr valign="top">
697
+ <th scope="row"><?php _e('Return to the initial setting', $this->text_domain); ?></th>
698
+ <td><label><input name="properties[initialize]" type="checkbox" id="check" value="1" <?php checked(isset($this->options['initialize']) ? $this->options['initialize'] : null, 1); ?> /></label></td>
699
  </tr>
700
  </table>
701
  <?php submit_button(); ?>
pz-linkcard-style.php CHANGED
@@ -155,7 +155,29 @@
155
  }
156
 
157
  // カードの余白等調整
158
- $file_text = str_replace('/*PADDING*/', 'padding: 6px 0px;',$file_text );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
159
 
160
  // img のスタイルを強制リセット
161
  if (isset($this->options['style-reset-img'])) {
155
  }
156
 
157
  // カードの余白等調整
158
+ $file_text = str_replace('/*PADDING*/', 'padding: 0;',$file_text );
159
+
160
+ // カード内側の余白
161
+ if ($this->options['card-top']) {
162
+ $file_text = str_replace('/*CARD-TOP*/', 'margin-top: '.$this->options['card-top'].';',$file_text );
163
+ } else {
164
+ $file_text = str_replace('/*CARD-TOP*/', 'margin-top: 7px;',$file_text );
165
+ }
166
+ if ($this->options['card-right']) {
167
+ $file_text = str_replace('/*CARD-RIGHT*/', 'margin-right: '.$this->options['card-right'].';',$file_text );
168
+ } else {
169
+ $file_text = str_replace('/*CARD-RIGHT*/', 'margin-right: 7px;',$file_text );
170
+ }
171
+ if ($this->options['card-bottom']) {
172
+ $file_text = str_replace('/*CARD-BOTTOM*/', 'margin-bottom: '.$this->options['card-bottom'].';',$file_text );
173
+ } else {
174
+ $file_text = str_replace('/*CARD-BOTTOM*/', 'margin-bottom: 7px;',$file_text );
175
+ }
176
+ if ($this->options['card-left']) {
177
+ $file_text = str_replace('/*CARD-LEFT*/', 'margin-left: '.$this->options['card-left'].';',$file_text );
178
+ } else {
179
+ $file_text = str_replace('/*CARD-LEFT*/', 'margin-left: 7px;',$file_text );
180
+ }
181
 
182
  // img のスタイルを強制リセット
183
  if (isset($this->options['style-reset-img'])) {
pz-linkcard-templete.css CHANGED
@@ -1,4 +1,4 @@
1
- /* [Pz-LkC][1.0.3] CSS */
2
  .linkcard {
3
  /*MARGIN-TOP*/
4
  /*MARGIN-BOTTOM*/
@@ -11,7 +11,7 @@
11
  .linkcard img {
12
  /*RESET-IMG*/
13
  }
14
- .linkcard-internal-wrapper {
15
  /*LINKCARD-WRAP-MARGIN*/
16
  /*BORDER*/
17
  /*PADDING*/
@@ -24,13 +24,13 @@
24
  line-height: 100%;
25
  /*WRAP*/
26
  }
27
- .linkcard-internal-wrapper::after {
28
  /*WRAP-AFTER*/
29
  }
30
- .linkcard-internal-wrapper::before {
31
  /*WRAP-BEFORE*/
32
  }
33
- .linkcard-external-wrapper {
34
  /*LINKCARD-WRAP-MARGIN*/
35
  /*BORDER*/
36
  /*PADDING*/
@@ -43,13 +43,13 @@
43
  line-height: 100%;
44
  /*WRAP*/
45
  }
46
- .linkcard-external-wrapper::after {
47
  /*WRAP-AFTER*/
48
  }
49
- .linkcard-external-wrapper::before {
50
  /*WRAP-BEFORE*/
51
  }
52
- .linkcard-this-wrapper {
53
  /*LINKCARD-WRAP-MARGIN*/
54
  /*BORDER*/
55
  /*PADDING*/
@@ -62,27 +62,30 @@
62
  line-height: 100%;
63
  /*WRAP*/
64
  }
65
- .linkcard-this-wrapper::after {
66
  /*WRAP-AFTER*/
67
  }
68
- .linkcard-this-wrapper::before {
69
  /*WRAP-BEFORE*/
70
  }
71
- .linkcard-link {
72
- text-decoration: none;
 
 
 
73
  }
74
- .linkcard-content {
75
  /*CONTENT-PADDING*/
76
  /*CONTENT-INSET*/
77
  /*CONTENT-BGCOLOR*/
78
  /*CONTENT-HEIGHT*/
79
- margin: 8px 8px 0 8px;
80
  word-break: break-all;
81
  white-space: normal;
82
  overflow: hidden;
83
  /*SEPARATOR*/
84
  }
85
- .linkcard-title {
86
  /*COLOR-TITLE*/
87
  /*SIZE-TITLE*/
88
  font-weight: bold;
@@ -90,10 +93,10 @@
90
  overflow: hidden;
91
  word-break: break-all;
92
  }
93
- .linkcard-title:hover {
94
  text-decoration: underline;
95
  }
96
- .linkcard-url {
97
  /*COLOR-URL*/
98
  /*SIZE-URL*/
99
  font-weight: normal;
@@ -104,47 +107,48 @@
104
  text-overflow: ellipsis;
105
  /*DISPLAY-URL*/
106
  }
107
- .linkcard-excerpt {
108
  /*COLOR-EXCERPT*/
109
  /*SIZE-EXCERPT*/
110
- padding: 8px 0 0;
 
111
  line-height: 15px;
112
  overflow: hidden;
113
  }
114
- .linkcard-thumbnail {
115
  max-width: 100px;
116
  max-height: 100px;
117
- /* padding: 0 6px; */
118
- margin: 0 6px;
119
  /*THUMBNAIL_POSITION*/
120
  }
121
- .linkcard-thumbnail-image {
122
  max-width: 100px;
123
  max-height: 100px;
124
  border: 1px solid #222;
125
  /*THUMBNAIL-RADIUS*/
126
  /*THUMBNAIL-SHADOW*/
127
  }
128
- .linkcard-info {
129
- margin: 8px;
130
  /*COLOR-INFO*/
131
  /*SIZE-INFO*/
132
  overflow: hidden;
133
  display: inline /*IMPORTANT*/;
134
  }
135
- .linkcard-domain {
136
  /*COLOR-INFO*/
137
  /*SIZE-INFO*/
138
  text-decoration: none;
139
  display: inline /*IMPORTANT*/;
140
  }
141
- .linkcard-domain:hover {
142
  /*COLOR-INFO*/
143
  /*SIZE-INFO*/
144
  text-decoration: underline;
145
  display: inline /*IMPORTANT*/;
146
  }
147
- .linkcard-favicon {
148
  height: 16px;
149
  width: 16px;
150
  margin: 0 4px;
@@ -152,14 +156,7 @@
152
  vertical-align: top;
153
  display: inline /*IMPORTANT*/;
154
  }
155
- .linkcard-hatena {
156
- margin: 0 0 0 5px;
157
- padding: 0;
158
- border: none;
159
- vertical-align: top;
160
- display: inline /*IMPORTANT*/;
161
- }
162
- .linkcard-name a {
163
  margin: 0;
164
  padding: 0;
165
  float: right;
@@ -169,61 +166,61 @@
169
  text-decoration: none;
170
  /*CREDIT*/
171
  }
172
- .linkcard-sns-hatena {
173
  margin: 0;
174
  padding: 0 1px;
175
- color: #ff6464 /*IMPORTANT*/;
176
- background-color: #ffefef /*IMPORTANT*/;
177
  font-size: 9px;
178
- text-decoration: underline /*IMPORTANT*/;
179
- font-weight: bold /*IMPORTANT*/;
180
  white-space: nowrap;
181
  }
182
- .linkcard-sns-facebook {
183
  margin: 0;
184
  padding: 0 1px;
185
- color: #ffffff /*IMPORTANT*/;
186
- background-color: #3864a3 /*IMPORTANT*/;
187
  font-size: 9px;
188
- text-decoration: underline /*IMPORTANT*/;
189
- font-weight: bold /*IMPORTANT*/;
190
  white-space: nowrap;
191
  }
192
- .linkcard-sns-twitter {
193
  margin: 0;
194
  padding: 0 1px;
195
- color: #5ea9dd /*IMPORTANT*/;
196
- background-color: #f5f8fa /*IMPORTANT*/;
197
  font-size: 9px;
198
- text-decoration: underline /*IMPORTANT*/;
199
- font-weight: bold /*IMPORTANT*/;
200
  white-space: nowrap;
201
  }
202
- .linkcard-sns-google-plus {
203
  margin: 0;
204
  padding: 0 1px;
205
- color: #dd4e42 /*IMPORTANT*/;
206
- background-color: #ffffff /*IMPORTANT*/;
207
  font-size: 9px;
208
- text-decoration: underline /*IMPORTANT*/;
209
- font-weight: bold /*IMPORTANT*/;
210
  white-space: nowrap;
211
  }
212
- .linkcard-sns-pocket {
213
  margin: 0;
214
  padding: 0 1px;
215
- color: #eeeeee /*IMPORTANT*/;
216
- background-color: #ee4055 /*IMPORTANT*/;
217
  font-size: 9px;
218
- text-decoration: underline /*IMPORTANT*/;
219
- font-weight: bold /*IMPORTANT*/;
220
  white-space: nowrap;
221
  }
222
  .clear {
223
  clear: both;
224
  }
225
 
226
- blockquote.linkcard-quote {
227
  background-color: transparent;
228
  background-image: none;
229
  padding: 0;
@@ -231,27 +228,13 @@ blockquote.linkcard-quote {
231
  border: none;
232
  }
233
 
234
- .hatena-webcard-wrapper {
235
  /*HATENA-WRAP-MARGIN*/
236
- /*HEIGHT*/
237
  /*WIDTH*/
238
- /*WRAP*/
239
- }
240
- .hatena-webcard-wrapper::after {
241
- /*WRAP-AFTER*/
242
- }
243
- .hatena-webcard-wrapper::before {
244
- /*WRAP-BEFORE*/
245
  }
246
- .hatena-webcard-iframe {
247
- /*STATIC*/
248
- /*BORDER*/
249
- /*RADIUS*/
250
- /*SHADOW*/
251
  padding: 0;
252
  margin: 0;
253
  width: 100%;
254
- height: 149px;
255
- /*EX-BGCOLOR*/
256
  }
257
  /*OPTION*/
1
+ /* [Pz-LkC][1.6.0] CSS */
2
  .linkcard {
3
  /*MARGIN-TOP*/
4
  /*MARGIN-BOTTOM*/
11
  .linkcard img {
12
  /*RESET-IMG*/
13
  }
14
+ .lkc-internal-wrap {
15
  /*LINKCARD-WRAP-MARGIN*/
16
  /*BORDER*/
17
  /*PADDING*/
24
  line-height: 100%;
25
  /*WRAP*/
26
  }
27
+ .lkc-internal-wrap::after {
28
  /*WRAP-AFTER*/
29
  }
30
+ .lkc-internal-wrap::before {
31
  /*WRAP-BEFORE*/
32
  }
33
+ .lkc-external-wrap {
34
  /*LINKCARD-WRAP-MARGIN*/
35
  /*BORDER*/
36
  /*PADDING*/
43
  line-height: 100%;
44
  /*WRAP*/
45
  }
46
+ .lkc-external-wrap::after {
47
  /*WRAP-AFTER*/
48
  }
49
+ .lkc-external-wrap::before {
50
  /*WRAP-BEFORE*/
51
  }
52
+ .lkc-this-wrap {
53
  /*LINKCARD-WRAP-MARGIN*/
54
  /*BORDER*/
55
  /*PADDING*/
62
  line-height: 100%;
63
  /*WRAP*/
64
  }
65
+ .lkc-this-wrap::after {
66
  /*WRAP-AFTER*/
67
  }
68
+ .lkc-this-wrap::before {
69
  /*WRAP-BEFORE*/
70
  }
71
+ .lkc-card {
72
+ /*CARD-TOP*/
73
+ /*CARD-RIGHT*/
74
+ /*CARD-BOTTOM*/
75
+ /*CARD-LEFT*/
76
  }
77
+ .lkc-content {
78
  /*CONTENT-PADDING*/
79
  /*CONTENT-INSET*/
80
  /*CONTENT-BGCOLOR*/
81
  /*CONTENT-HEIGHT*/
82
+ margin-top: 6px;
83
  word-break: break-all;
84
  white-space: normal;
85
  overflow: hidden;
86
  /*SEPARATOR*/
87
  }
88
+ .lkc-title {
89
  /*COLOR-TITLE*/
90
  /*SIZE-TITLE*/
91
  font-weight: bold;
93
  overflow: hidden;
94
  word-break: break-all;
95
  }
96
+ .lkc-title:hover {
97
  text-decoration: underline;
98
  }
99
+ .lkc-url {
100
  /*COLOR-URL*/
101
  /*SIZE-URL*/
102
  font-weight: normal;
107
  text-overflow: ellipsis;
108
  /*DISPLAY-URL*/
109
  }
110
+ .lkc-excerpt {
111
  /*COLOR-EXCERPT*/
112
  /*SIZE-EXCERPT*/
113
+ padding: 0;
114
+ margin: 6px 0 0 0;
115
  line-height: 15px;
116
  overflow: hidden;
117
  }
118
+ .lkc-thumbnail {
119
  max-width: 100px;
120
  max-height: 100px;
121
+ padding: 0;
122
+ margin: 0 6px 4px 4px;
123
  /*THUMBNAIL_POSITION*/
124
  }
125
+ .lkc-thumbnail-img {
126
  max-width: 100px;
127
  max-height: 100px;
128
  border: 1px solid #222;
129
  /*THUMBNAIL-RADIUS*/
130
  /*THUMBNAIL-SHADOW*/
131
  }
132
+ .lkc-info {
133
+ padding: 0;
134
  /*COLOR-INFO*/
135
  /*SIZE-INFO*/
136
  overflow: hidden;
137
  display: inline /*IMPORTANT*/;
138
  }
139
+ .lkc-domain {
140
  /*COLOR-INFO*/
141
  /*SIZE-INFO*/
142
  text-decoration: none;
143
  display: inline /*IMPORTANT*/;
144
  }
145
+ .lkc-domain:hover {
146
  /*COLOR-INFO*/
147
  /*SIZE-INFO*/
148
  text-decoration: underline;
149
  display: inline /*IMPORTANT*/;
150
  }
151
+ .lkc-favicon {
152
  height: 16px;
153
  width: 16px;
154
  margin: 0 4px;
156
  vertical-align: top;
157
  display: inline /*IMPORTANT*/;
158
  }
159
+ .lkc-name a {
 
 
 
 
 
 
 
160
  margin: 0;
161
  padding: 0;
162
  float: right;
166
  text-decoration: none;
167
  /*CREDIT*/
168
  }
169
+ .lkc-sns-tw {
170
  margin: 0;
171
  padding: 0 1px;
172
+ color: #5ea9dd /*IMPORTANT*/;
173
+ background-color: #f5f8fa /*IMPORTANT*/;
174
  font-size: 9px;
175
+ text-decoration: underline /*IMPORTANT*/;
176
+ font-weight: bold /*IMPORTANT*/;
177
  white-space: nowrap;
178
  }
179
+ .lkc-sns-fb {
180
  margin: 0;
181
  padding: 0 1px;
182
+ color: #ffffff /*IMPORTANT*/;
183
+ background-color: #3864a3 /*IMPORTANT*/;
184
  font-size: 9px;
185
+ text-decoration: underline /*IMPORTANT*/;
186
+ font-weight: bold /*IMPORTANT*/;
187
  white-space: nowrap;
188
  }
189
+ .lkc-sns-hb {
190
  margin: 0;
191
  padding: 0 1px;
192
+ color: #ff6464 /*IMPORTANT*/;
193
+ background-color: #ffefef /*IMPORTANT*/;
194
  font-size: 9px;
195
+ text-decoration: underline /*IMPORTANT*/;
196
+ font-weight: bold /*IMPORTANT*/;
197
  white-space: nowrap;
198
  }
199
+ .lkc-sns-gp {
200
  margin: 0;
201
  padding: 0 1px;
202
+ color: #dd4e42 /*IMPORTANT*/;
203
+ background-color: #ffffff /*IMPORTANT*/;
204
  font-size: 9px;
205
+ text-decoration: underline /*IMPORTANT*/;
206
+ font-weight: bold /*IMPORTANT*/;
207
  white-space: nowrap;
208
  }
209
+ .lkc-sns-po {
210
  margin: 0;
211
  padding: 0 1px;
212
+ color: #eeeeee /*IMPORTANT*/;
213
+ background-color: #ee4055 /*IMPORTANT*/;
214
  font-size: 9px;
215
+ text-decoration: underline /*IMPORTANT*/;
216
+ font-weight: bold /*IMPORTANT*/;
217
  white-space: nowrap;
218
  }
219
  .clear {
220
  clear: both;
221
  }
222
 
223
+ blockquote.lkc-quote {
224
  background-color: transparent;
225
  background-image: none;
226
  padding: 0;
228
  border: none;
229
  }
230
 
231
+ .lkc-iframe-wrap {
232
  /*HATENA-WRAP-MARGIN*/
 
233
  /*WIDTH*/
 
 
 
 
 
 
 
234
  }
235
+ .lkc-iframe {
 
 
 
 
236
  padding: 0;
237
  margin: 0;
238
  width: 100%;
 
 
239
  }
240
  /*OPTION*/
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.1.1
7
  Author: poporon
8
  Author URI: http://poporon.poponet.jp
9
  License: GPLv2 or later
@@ -33,9 +33,13 @@ class Pz_LinkCard {
33
  'width' => '500px',
34
  'content-height' => '108px',
35
  'margin-top' => '4px',
 
36
  'margin-bottom' => '16px',
37
  'margin-left' => '4px',
38
- 'margin-right' => '16px',
 
 
 
39
  'centering' => null,
40
  'radius' => null,
41
  'shadow' => '1',
@@ -46,7 +50,9 @@ class Pz_LinkCard {
46
  'use-hatena' => null,
47
  'display-url' => '1',
48
  'display-excerpt' => '1',
 
49
  'trim-count' => 250,
 
50
  'info-position' => '1',
51
  'separator' => null,
52
  'size-info' => '12px',
@@ -94,7 +100,7 @@ class Pz_LinkCard {
94
  'nofollow' => null,
95
  'plugin-link' => null,
96
  'plugin-name' => 'Pz-LinkCard',
97
- 'plugin-version' => '1.1.1',
98
  'plugin-url' => 'http://poporon.poponet.jp/pz-linkcard',
99
  'pz-hbc-options' => null,
100
  'debug-time' => null
@@ -142,7 +148,7 @@ class Pz_LinkCard {
142
 
143
  // 管理画面のとき
144
  if (is_admin()) {
145
- load_plugin_textdomain ($this->text_domain, false, $this->slug.'/languages' ); // 管理画面のみ日本語化
146
  register_activation_hook (__FILE__, array($this, 'activation')); // 有効化したときの処理
147
  register_deactivation_hook (__FILE__, array($this, 'deactivation')); // 無効化したときの処理
148
  add_action ('admin_menu', array($this, 'add_menu')); // 設定メニュー
@@ -160,8 +166,14 @@ class Pz_LinkCard {
160
  require_once ('pz-linkcard-style.php');
161
  }
162
  }
163
- add_action ('wp_enqueue_scripts', array($this, 'enqueue'));
164
  }
 
 
 
 
 
 
165
  }
166
 
167
  public function shortcode($atts, $content = null, $shortcode) {
@@ -201,6 +213,7 @@ class Pz_LinkCard {
201
  } else {
202
  $url = html_entity_decode($url);
203
  $url = preg_replace('/^[\s \'\"‘’“”″]*(.*?)[\s \'\"‘’“”″]*$/u', '\1', $url);
 
204
  $url = htmlentities($url);
205
  $url = esc_url($url); // プロトコル除外など
206
  }
@@ -211,7 +224,6 @@ class Pz_LinkCard {
211
  global $wpdb;
212
 
213
  $update = false;
214
- $update_cnt = false;
215
  $error = false;
216
  $data = null;
217
 
@@ -310,11 +322,11 @@ class Pz_LinkCard {
310
 
311
  if ($link_type == '1') {
312
  $info = isset($this->options['th-info']) ? $this->options['th-info'] : '' ;
313
- $wrap_op = '<div class="linkcard-this-wrapper">';
314
  $wrap_cl = '</div>';
315
  } else {
316
  $info = isset($this->options['in-info']) ? $this->options['in-info'] : '' ;
317
- $wrap_op = '<div class="linkcard-internal-wrapper">';
318
  $wrap_cl = '</div>';
319
  }
320
  $site_name = get_bloginfo('name'); // サイト名
@@ -345,19 +357,19 @@ class Pz_LinkCard {
345
 
346
  $sw_thumbnail = isset($this->options['in-thumbnail']) ? $this->options['in-thumbnail'] : '0' ;
347
  if ($sw_thumbnail == '1') {
348
- $thumbnail = get_the_post_thumbnail($id, 'thumbnail' , array('class' => 'linkcard-thumbnail-image'));
349
  }
350
  $sw_favicon = isset($this->options['in-favicon']) ? $this->options['in-favicon'] : '0' ;
351
  if ($sw_favicon == '1') {
352
  if (function_exists('has_site_icon')) {
353
- $favicon = '<img class="linkcard-favicon" src="'.get_site_icon_url(16, '', 0).'" alt="" />';
354
  } else {
355
  $sw_favicon = isset($this->options['ex-favicon']) ? $this->options['ex-favicon'] : '0' ;
356
  }
357
  }
358
 
359
  } else { // 外部サイト
360
- $wrap_op = '<div class="linkcard-external-wrapper">'; // ラッピング
361
  $wrap_cl = '</div>';
362
  $info = isset($this->options['ex-info']) ? $this->options['ex-info'] : '' ;
363
  $sw_thumbnail = isset($this->options['ex-thumbnail']) ? $this->options['ex-thumbnail'] : '0' ;
@@ -365,9 +377,9 @@ class Pz_LinkCard {
365
 
366
  if (isset($this->options['use-hatena']) && !is_null($this->options['use-hatena'])) {
367
  // 「はてなブログカード」をそのまま利用する
368
- $tag = '<div class="hatena-webcard-wrapper"><iframe src="http://hatenablog.com/embed?url='.$url.'" class="hatena-webcard-iframe" scrolling="no" frameborder="0"></iframe></div>';
369
  if (isset($this->options['blockquote']) ? $this->options['blockquote'] : null == '1') {
370
- $tag = '<div class="linkcard"><blockquote class="linkcard-quote">'.$tag.'</blockquote></div>';
371
  } else {
372
  $tag = '<div class="linkcard">'.$tag.'</div>';
373
  }
@@ -378,69 +390,97 @@ class Pz_LinkCard {
378
  $html = null;
379
  $error = true;
380
 
381
- $result = wp_remote_get($url);
382
-
383
- if (is_wp_error($result)) {
384
- $error = false;
385
- $update = true;
386
-
387
- $result_code = -1;
 
 
 
 
 
 
 
 
 
388
  } else {
389
- $result_code = $result['response']['code'];
390
- if ($result_code >= 100 && $result_code <= 499 ) {
391
- $error = false;
392
- $update = true;
393
-
394
- $html = $result['body'];
395
- $charset = null;
396
- foreach(array('UTF-8','SJIS','EUC-JP','ASCII','JIS') as $c_charset) {
 
 
 
 
 
 
 
 
397
  if (mb_convert_encoding($html, $this->charset, $c_charset) == $html) {
398
  $charset = $c_charset;
399
- $html = mb_convert_encoding($html, $this->charset, $charset);
400
  }
401
  }
402
- if (is_null($charset)) {
403
- $charset = 'auto';
404
- $html = mb_convert_encoding($html, $this->charset, 'ASCII,JIS,UTF-7,EUC-JP,SJIS,UTF-8');
405
- }
406
- $tags = null;
407
-
408
- // HEADタグ
409
- $head = null;
410
- if (preg_match('/<\s*head\s*[^>]*>(.*)<\s*\/head\s*>/si', $html, $m)) {
411
- $head = $m[1];
412
- }
413
-
414
- $tags = null;
415
- $tags = $this->pz_GetMeta($head);
416
-
417
- // タイトル
418
- if (isset( $tags['og:title'] ) && $tags['og:title'] ) {
419
- $title = $tags['og:title'] ;
420
- } elseif (isset( $tags['title'] ) && $tags['title'] ) {
421
- $title = $tags['title'] ;
422
- }
 
 
 
 
 
 
 
 
 
 
 
423
 
424
- // 抜粋文・概要文
425
- if (isset( $tags['og:description'] ) && $tags['og:description'] ) {
426
- $excerpt = $tags['og:description'] ;
427
- } elseif (isset( $tags['description'] ) && $tags['description'] ) {
428
- $excerpt = $tags['description'] ;
429
- } elseif (isset( $tags['first-p'] ) && $tags['first-p'] ) {
430
- $excerpt = $tags['first-p'] ;
431
- }
432
 
433
- // // OGPから画像URL取得
434
- // if ($sw_thumbnail == '1' && isset($tags['og:image'])) {
435
- // $thumbnail_url = $tags['og:image'];
436
- // $thumbnail = '<img class="linkcard-thumbnail-image" src="'.$thumbnail_url.'" alt="" />';
437
- // }
438
 
439
- // // サイト名
440
- if (isset( $tags['og:site_name'] ) && $tags['og:site_name'] ) {
441
- $site_name = $tags['og:site_name'] ;
442
- }
443
 
 
 
444
  }
445
  }
446
  }
@@ -495,116 +535,13 @@ class Pz_LinkCard {
495
  }
496
 
497
  $data = $this->pz_SetCache($data);
498
-
 
499
  if (isset($data['id'])) {
500
  $update = false;
501
  }
502
  }
503
-
504
- // ソーシャルカウント
505
- $sns = null;
506
- $sns_info = null;
507
- $sns_title = null;
508
- $sns_renew = false;
509
- if (!$error && (isset($this->options['sns-position']) ? $this->options['sns-position'] : null)) {
510
- $opt = array( 'timeout' => 5 );
511
-
512
- // 保存期間満了でソーシャルカウントをリセット
513
- $now = current_time('timestamp');
514
- if ($now > $nexttime && $result_code <= 200) {
515
- $sns_renew = true;
516
- $update_cnt = true;
517
- }
518
-
519
- if ($now < 1447945200) { // 2015年11月20日以降ツイッターの取得をしない
520
- if (isset($this->options['sns-tw']) && !is_null($this->options['sns-tw'])) {
521
- $count = $sns_tw;
522
- $count_before = $count;
523
- if ($sns_renew || $count < 0) {
524
- $result = wp_remote_get( 'http://urls.api.twitter.com/1/urls/count.json?url=' .rawurlencode($url), $opt );
525
- if (!isset($result) || is_wp_error($result)) {
526
- $count = 0;
527
- } elseif ($result['response']['code'] <> 200) {
528
- $count = -1;
529
- } else {
530
- $count = json_decode($result['body'])->count - 0;
531
- }
532
- if ($count <> $count_before) {
533
- $sns_tw = $count;
534
- $update_cnt = true;
535
- }
536
- }
537
- }
538
- }
539
- if (isset($this->options['sns-fb']) && !is_null($this->options['sns-fb'])) {
540
- $count = $sns_fb;
541
- $count_before = $count;
542
- if ($sns_renew || $count < 0) {
543
- $result = wp_remote_get( 'http://graph.facebook.com/?id=' .rawurlencode($url), $opt );
544
- if (!isset($result) || is_wp_error($result)) {
545
- $count = 0;
546
- } elseif ($result['response']['code'] <> 200) {
547
- $count = -1;
548
- } else {
549
- $json = json_decode($result['body']);
550
- $count = (isset($json->shares) ? isset($json->shares) : 0) - 0;
551
- }
552
- if ($count <> $count_before) {
553
- $sns_fb = $count;
554
- $update_cnt = true;
555
- }
556
- }
557
- }
558
- if (isset($this->options['sns-hb']) && !is_null($this->options['sns-hb'])) {
559
- $count = $sns_hb;
560
- $count_before = $count;
561
- if ($sns_renew || $count < 0) {
562
- $result = wp_remote_get( 'http://api.b.st-hatena.com/entry.count?url=' .rawurlencode($url), $opt );
563
- if (!isset($result) || is_wp_error($result)) {
564
- $count = 0;
565
- } elseif ($result['response']['code'] <> 200) {
566
- $count = -1;
567
- } else {
568
- $count = $result['body'] - 0;
569
- }
570
- if ($count <> $count_before) {
571
- $sns_hb = $count;
572
- $update_cnt = true;
573
- }
574
- }
575
- }
576
-
577
- $sns = '<span class="linkcard-share">';
578
- if ((isset($this->options['link-all']) ? $this->options['link-all'] : null) == '1') {
579
- if (isset($this->options['sns-tw']) && !is_null($this->options['sns-tw']) && $sns_tw > 0) {
580
- $sns .= ' <span class="linkcard-sns-twitter no_icon">' .$sns_tw .'&nbsp;tweet' .(($sns_tw > 1) ? 's' : '').'</span>';
581
- }
582
- if (isset($this->options['sns-fb']) && !is_null($this->options['sns-fb']) && $sns_fb > 0) {
583
- $sns .= ' <span class="linkcard-sns-facebook no_icon">' .$sns_fb .'&nbsp;share' .(($sns_fb > 1) ? 's' : '').'</span>';
584
- }
585
- if (isset($this->options['sns-hb']) && !is_null($this->options['sns-hb']) && $sns_hb > 0) {
586
- $sns .= ' <span class="linkcard-sns-hatena no_icon">' .$sns_hb .'&nbsp;user' .(($sns_hb > 1) ? 's' : '').'</span>';
587
- }
588
- } else {
589
- if (isset($this->options['sns-tw']) && !is_null($this->options['sns-tw']) && $sns_tw > 0) {
590
- $sns .= ' <a class="linkcard-sns-twitter no_icon" href="https://twitter.com/intent/tweet?url=' .rawurlencode($url).'&text='.esc_html($title).'" target="_blank">' .$sns_tw .'&nbsp;tweet' .(($count > 1) ? 's' : '').'</a>';
591
- }
592
- if (isset($this->options['sns-fb']) && !is_null($this->options['sns-fb']) && $sns_fb > 0) {
593
- $sns .= ' <a class="linkcard-sns-facebook no_icon" href="https://www.facebook.com/sharer/sharer.php?u="' .rawurlencode($url).' target="_blank">' .$sns_fb .'&nbsp;share' .(($count > 1) ? 's' : '').'</a>';
594
- }
595
- if (isset($this->options['sns-hb']) && !is_null($this->options['sns-hb']) && $sns_hb > 0) {
596
- $sns .= ' <a class="linkcard-sns-hatena no_icon" href="http://b.hatena.ne.jp/entry/' .rawurlencode($url).'" target="_blank">' .$sns_hb .'&nbsp;user' .(($count > 1) ? 's' : '').'</a>';
597
- }
598
- }
599
- $sns .= '</span>';
600
-
601
- if ($this->options['sns-position'] == '1') {
602
- $sns_title = $sns;
603
- } else {
604
- $sns_info = $sns;
605
- }
606
- }
607
-
608
  // サムネイル取得
609
  if (!$this->options['thumbnail-position'] || $error) {
610
  $thumbnail = null;
@@ -615,7 +552,7 @@ class Pz_LinkCard {
615
  $thumbnail = preg_replace('/%DOMAIN_URL%/', $domain_url, $this->options['thumbnail-api'] );
616
  $thumbnail = preg_replace('/%DOMAIN%/', $domain, $thumbnail);
617
  $thumbnail = preg_replace('/%URL%/', rawurlencode($url), $thumbnail);
618
- $thumbnail = '<img class="linkcard-thumbnail-image" src="'.$thumbnail.'" alt="" />';
619
  }
620
  }
621
  }
@@ -630,34 +567,18 @@ class Pz_LinkCard {
630
  $favicon = preg_replace('/%DOMAIN_URL%/', $domain_url, $this->options['favicon-api'] );
631
  $favicon = preg_replace('/%DOMAIN%/', $domain, $favicon);
632
  $favicon = preg_replace('/%URL%/', rawurlencode($url), $favicon);
633
- $favicon = '<img class="linkcard-favicon" src="'.$favicon.'" alt="" />';
634
  }
635
  }
636
  }
637
 
638
- if ($update_cnt) { // ソーシャルカウントのみ更新
639
- $wpdb->update(
640
- $this->db_name,
641
- array(
642
- 'sns_twitter' => $sns_tw,
643
- 'sns_facebook' => $sns_fb,
644
- 'sns_hatena' => $sns_hb,
645
- 'uptime' => current_time('timestamp'),
646
- 'nexttime' => current_time('timestamp') + 43200 + rand(0, 21600),
647
- ),
648
- array(
649
- 'url' => $url
650
- )
651
- );
652
- }
653
-
654
  // データベースへの保存が終わったので、表示用の編集
655
 
656
  // タイトル
657
  if (!isset($title) || $title == '') {
658
  $title = esc_html($url); // タイトル取得できていなかったらURLをセットする
659
  }
660
-
661
  // パラメータ取得(タイトル・抜粋文)
662
  if (isset($atts['title'])) { // titleパラメータ
663
  $title = $atts['title'];
@@ -672,80 +593,124 @@ class Pz_LinkCard {
672
  $excerpt = $atts['description'];
673
  }
674
  }
675
-
676
  // タイトル整形
677
  if (isset($title)) {
678
  $str = $title;
679
  $str = strip_tags($str); // タグの除去
680
  $str = str_replace(array("\r", "\n"), '', $str); // 改行削除
681
  $str = esc_html($str); // 念のためエスケープ
682
- $str = mb_strimwidth($str, 0, 200, '...'); // タイトルは無条件で200文字で切る
683
  $title = $str;
684
  }
685
-
686
  // 抜粋文整形
687
- if (isset($excerpt)) {
688
- $str = $excerpt;
689
- $str = strip_tags($str); // タグの除去
690
- $str = preg_replace('/<!--more-->.+/is', '', $str); // moreタグ以降削除
691
- $str = preg_replace('/\[[^]]*\]/', '', $str); // ショートコードすべて除去
692
- $str = str_replace(array("\r", "\n"), '', $str); // 改行削除
693
- $str = esc_html($str); // 念のためエスケープ
694
- $str = mb_strimwidth($str, 0, 500, '...'); // ここでは500文字で切る
695
- $excerpt = $str;
 
 
 
 
 
696
  }
697
-
698
  // サイト名称を使わない場合、ドメイン名で上書き
 
699
  if (is_null($this->options['use-sitename']) || $site_name == '') {
700
  $site_name = $domain;
701
- }
702
-
703
- // 抜粋文非表示の場合、空欄にする
704
- if (!isset($this->options['display-excerpt']) || is_null($this->options['display-excerpt'])) {
705
- $excerpt = '';
706
  } else {
707
- // 抜粋文の文字数
708
- $excerpt = mb_strimwidth($excerpt, 0, (isset($this->options['trim-count']) ? $this->options['trim-count'] : 130 ) , '...');
 
 
 
709
  }
710
-
711
  // リンク先URL
712
  $a_op = '<a class="no_icon" href="'.$url.'"'.$target.$nofollow.'>';
713
  $a_cl = '</a>';
714
  if ((isset($this->options['link-all']) ? $this->options['link-all'] : null) == '1') {
715
- $a_op_all = $a_op;
716
- $a_cl_all = $a_cl;
717
- $a_op = '';
718
- $a_cl = '';
719
  } else {
720
- $a_op_all = '';
721
- $a_cl_all = '';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
722
  }
723
-
724
  // サイト情報
725
- $domain_info = '<div class="linkcard-info">'.$a_op.'<span class="linkcard-domain">'.$favicon.'&nbsp;'.$site_name.$info.'</span>'.$a_cl.'&nbsp;'.$sns_info.$this->plugin_link.'</div>';
726
-
727
  // 記事内容
728
- $content = '<div class="linkcard-content">'.$a_op.'<span class="linkcard-thumbnail">'.$thumbnail.'</span><span class="linkcard-title">'.$title.$a_cl.'</span>'.$sns_title.'<div class="linkcard-url"><cite>'.$a_op.$url.$a_cl.'</cite></div><div class="linkcard-excerpt">'.$excerpt.'</div></div>';
729
-
730
  // HTMLタグ作成
731
  switch (isset($this->options['info-position']) ? $this->options['info-position'] : null) {
732
  case '1':
733
- $tag = $a_op_all.$wrap_op.$domain_info.$content.'<div class="clear"></div>'.$wrap_cl.$a_cl_all;
734
  break;
735
  case '2':
736
- $tag = $a_op_all.$wrap_op.$content.$domain_info.'<div class="clear"></div>'.$wrap_cl.$a_cl_all;
737
  break;
738
  default:
739
- $tag = $a_op_all.$wrap_op.$content.'<div class="clear"></div>'.$wrap_cl.$a_cl_all;
740
  }
741
-
742
  // 引用文扱い
743
  if (isset($this->options['blockquote']) ? $this->options['blockquote'] : null == '1') {
744
- $tag = '<div class="linkcard"><blockquote class="linkcard-quote">'.$tag.'</blockquote></div>';
745
  } else {
746
  $tag = '<div class="linkcard">'.$tag.'</div>';
747
  }
748
-
749
  // 実行時間
750
  if (is_user_logged_in()) {
751
  if (isset($this->options['debug-time'])) {
@@ -757,11 +722,106 @@ class Pz_LinkCard {
757
  return $tag;
758
  }
759
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
760
  public function pz_GetCache($data) {
761
- global $wpdb;
762
  if (!isset($data) || !is_array($data)) {
763
  return null;
764
  }
 
765
  if (isset($data['url']) && !is_null($data['url'])) {
766
  $url = $this->pz_TrimURL($data['url']);
767
  $data = $wpdb->get_row($wpdb->prepare("SELECT * FROM $this->db_name WHERE url=%s", $url));
@@ -844,25 +904,23 @@ class Pz_LinkCard {
844
  return null;
845
  }
846
 
847
- function pz_GetMeta($html, $tags = null) {
 
 
 
 
848
  // TITLEタグ
849
  if (preg_match('/<\s*title\s*[^>]*>\s*(.*)\s*<\s*\/title\s*[^>]*>/si', $html, $m)) {
850
  $tags['title'] = esc_html($m[1]);
851
  }
852
-
853
- // // 最初のPタグ(これは全体から)/ヘッダやメニューに<p>があることがあるので停止
854
- // if (preg_match('/<p>\s*(.*)<\/p>/i', $html, $m)) {
855
- // $tags['first-p'] = esc_html($m[1]);
856
- // }
857
-
858
  // metaタグ パース
859
  $match = null;
860
  preg_match_all('/<\s*meta\s(?=[^>]*?\b(?:name|property)\s*=\s*(?|"\s*([^"]*?)\s*"|\'\s*([^\']*?)\s*\'|([^"\'>]*?)(?=\s*\/?\s*>|\s\w+\s*=)))[^>]*?\bcontent\s*=\s*(?|"\s*([^"]*?)\s*"|\'\s*([^\']*?)\s*\'|([^"\'>]*?)(?=\s*\/?\s*>|\s\w+\s*=))[^>]*>/is', $html, $match);
861
  if (isset($match) && is_array($match) && count($match) == 3) {
862
- for ($i=0, $to_i=count($match[1]); $i < $to_i; $i++) {
863
- $tags[$match[1][$i]] = esc_html($match[2][$i]);
864
- }
865
  }
 
866
  return $tags;
867
  }
868
 
@@ -873,10 +931,10 @@ class Pz_LinkCard {
873
 
874
  public function enqueue($hook) {
875
  if (!isset($this->options['style'])) {
876
- wp_enqueue_style ('Pz-LinkCard', $this->options['css-url']);
877
  } else {
878
  if (isset($this->options['css-file'])) {
879
- wp_enqueue_style('Pz-LinkCard', $this->options['css-file']);
880
  }
881
  }
882
  }
@@ -887,12 +945,35 @@ class Pz_LinkCard {
887
  add_options_page (__('LinkCard Settings', $this->text_domain),__('Pz LinkCard', $this->text_domain),'manage_options', 'pz-linkcard-settings', array($this, 'page_settings') );
888
  }
889
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
890
  public function page_cacheman() {
891
- require_once('pz-linkcard-cacheman.php');
892
  }
893
 
894
  public function page_settings() {
895
- require_once('pz-linkcard-settings.php');
896
  }
897
 
898
  public function activation() {
@@ -904,10 +985,16 @@ class Pz_LinkCard {
904
  }
905
  // $this->options += $this->defaults;
906
 
 
 
 
 
 
 
907
  $this->options['plugin-version'] = $this->defaults['plugin-version'];
908
  update_option('Pz_LinkCard_options', $this->options);
909
 
910
- require_once('pz-linkcard-style.php');
911
 
912
  global $wpdb;
913
  $wpdb->hide_errors();
@@ -929,24 +1016,26 @@ class Pz_LinkCard {
929
  sns_twitter INT ,
930
  sns_facebook INT ,
931
  sns_hatena INT ,
932
- sns_pocket INT ,
933
- sns_gplus INT ,
934
  uptime BIGINT UNSIGNED NOT NULL DEFAULT 0,
935
  nexttime BIGINT UNSIGNED NOT NULL DEFAULT 0,
936
  regist DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
937
  PRIMARY KEY ( id ),
938
  UNIQUE KEY ( url_key )
939
  ) ".$wpdb->get_charset_collate()." ;";
940
- require_once(ABSPATH.'wp-admin/includes/upgrade.php');
941
  dbDelta($sql);
 
 
 
942
  }
943
 
944
  public function deactivation() {
 
945
  }
946
 
947
  public function action_links($links) {
948
- $links = array( '<a href="options-general.php?page=pz-linkcard-settings">'.__('Settings', $this->text_domain).'</a>' , '<a href="tools.php?page=pz-linkcard-cache">'.__('Manage', $this->text_domain).'</a>' ) + $links;
949
  return $links;
950
  }
951
  }
952
- $Pz_LinkCard = new Pz_LinkCard;
3
  Plugin Name: Pz-LinkCard
4
  Plugin URI: http://poporon.poponet.jp/pz-linkcard
5
  Description: リンクをカード形式で表示します。
6
+ Version: 1.6.0
7
  Author: poporon
8
  Author URI: http://poporon.poponet.jp
9
  License: GPLv2 or later
33
  'width' => '500px',
34
  'content-height' => '108px',
35
  'margin-top' => '4px',
36
+ 'margin-right' => '16px',
37
  'margin-bottom' => '16px',
38
  'margin-left' => '4px',
39
+ 'card-top' => null,
40
+ 'card-right' => null,
41
+ 'card-bottom' => null,
42
+ 'card-left' => null,
43
  'centering' => null,
44
  'radius' => null,
45
  'shadow' => '1',
50
  'use-hatena' => null,
51
  'display-url' => '1',
52
  'display-excerpt' => '1',
53
+ 'trim-title' => 200,
54
  'trim-count' => 250,
55
+ 'trim-sitename' => 100,
56
  'info-position' => '1',
57
  'separator' => null,
58
  'size-info' => '12px',
100
  'nofollow' => null,
101
  'plugin-link' => null,
102
  'plugin-name' => 'Pz-LinkCard',
103
+ 'plugin-version' => '1.6.0',
104
  'plugin-url' => 'http://poporon.poponet.jp/pz-linkcard',
105
  'pz-hbc-options' => null,
106
  'debug-time' => null
148
 
149
  // 管理画面のとき
150
  if (is_admin()) {
151
+ load_plugin_textdomain ($this->text_domain, false, $this->slug.'/languages'); // 管理画面のみ日本語化
152
  register_activation_hook (__FILE__, array($this, 'activation')); // 有効化したときの処理
153
  register_deactivation_hook (__FILE__, array($this, 'deactivation')); // 無効化したときの処理
154
  add_action ('admin_menu', array($this, 'add_menu')); // 設定メニュー
166
  require_once ('pz-linkcard-style.php');
167
  }
168
  }
169
+ add_action('wp_enqueue_scripts', array($this, 'enqueue'));
170
  }
171
+
172
+ // if (!wp_next_scheduled('pz_linkcard_check')) {
173
+ // wp_schedule_event( time(), 'hourly', 'pz_linkcard_check');
174
+ // wp_schedule_single_event( time() + 10, 'pz_linkcard_check');
175
+ // }
176
+ add_action('pz_linkcard_check', array($this, 'schedule_hook'));
177
  }
178
 
179
  public function shortcode($atts, $content = null, $shortcode) {
213
  } else {
214
  $url = html_entity_decode($url);
215
  $url = preg_replace('/^[\s \'\"‘’“”″]*(.*?)[\s \'\"‘’“”″]*$/u', '\1', $url);
216
+ $url = strip_tags($url);
217
  $url = htmlentities($url);
218
  $url = esc_url($url); // プロトコル除外など
219
  }
224
  global $wpdb;
225
 
226
  $update = false;
 
227
  $error = false;
228
  $data = null;
229
 
322
 
323
  if ($link_type == '1') {
324
  $info = isset($this->options['th-info']) ? $this->options['th-info'] : '' ;
325
+ $wrap_op = '<div class="lkc-this-wrap">';
326
  $wrap_cl = '</div>';
327
  } else {
328
  $info = isset($this->options['in-info']) ? $this->options['in-info'] : '' ;
329
+ $wrap_op = '<div class="lkc-internal-wrap">';
330
  $wrap_cl = '</div>';
331
  }
332
  $site_name = get_bloginfo('name'); // サイト名
357
 
358
  $sw_thumbnail = isset($this->options['in-thumbnail']) ? $this->options['in-thumbnail'] : '0' ;
359
  if ($sw_thumbnail == '1') {
360
+ $thumbnail = get_the_post_thumbnail($id, 'thumbnail' , array('class' => 'lkc-thumbnail-img'));
361
  }
362
  $sw_favicon = isset($this->options['in-favicon']) ? $this->options['in-favicon'] : '0' ;
363
  if ($sw_favicon == '1') {
364
  if (function_exists('has_site_icon')) {
365
+ $favicon = '<img class="lkc-favicon" src="'.get_site_icon_url(16, '', 0).'" alt="" />';
366
  } else {
367
  $sw_favicon = isset($this->options['ex-favicon']) ? $this->options['ex-favicon'] : '0' ;
368
  }
369
  }
370
 
371
  } else { // 外部サイト
372
+ $wrap_op = '<div class="lkc-external-wrap">'; // ラッピング
373
  $wrap_cl = '</div>';
374
  $info = isset($this->options['ex-info']) ? $this->options['ex-info'] : '' ;
375
  $sw_thumbnail = isset($this->options['ex-thumbnail']) ? $this->options['ex-thumbnail'] : '0' ;
377
 
378
  if (isset($this->options['use-hatena']) && !is_null($this->options['use-hatena'])) {
379
  // 「はてなブログカード」をそのまま利用する
380
+ $tag = '<div class="lkc-iframe-wrap"><iframe src="http://hatenablog.com/embed?url='.$url.'" class="lkc-iframe" scrolling="no" frameborder="0"></iframe></div>';
381
  if (isset($this->options['blockquote']) ? $this->options['blockquote'] : null == '1') {
382
+ $tag = '<div class="linkcard"><blockquote class="lkc-quote">'.$tag.'</blockquote></div>';
383
  } else {
384
  $tag = '<div class="linkcard">'.$tag.'</div>';
385
  }
390
  $html = null;
391
  $error = true;
392
 
393
+ if (function_exists('curl_init')) {
394
+ $ch = curl_init($url);
395
+ // curl_setopt($ch, CURLOPT_TIMEOUT, 8);
396
+ curl_setopt($ch, CURLOPT_USERAGENT, esc_html($_SERVER['HTTP_USER_AGENT']));
397
+ curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
398
+ curl_setopt($ch, CURLOPT_MAXREDIRS, 3);
399
+ curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
400
+ $html = curl_exec($ch);
401
+ if (curl_errno($ch)) {
402
+ $html = '';
403
+ $result_code = 0 - intval(curl_errno($ch));
404
+ } else {
405
+ $header = curl_getinfo($ch);
406
+ $result_code = $header['http_code'];
407
+ }
408
+ curl_close($ch);
409
  } else {
410
+ $result = wp_remote_get($url);
411
+ if (!is_wp_error($result)) {
412
+ $html = $result['body'];
413
+ $result_code = $result['response']['code'];
414
+ } else {
415
+ $html = '';
416
+ $result_code = -1;
417
+ }
418
+ }
419
+ $charset = null;
420
+ if ($html <> '') {
421
+ if (preg_match('/charset\s*=\s*([^>\/\s]*).*<\/head/si', $html, $m)) {
422
+ $m[1] = trim(trim($m[1]), '\'\"');
423
+ $charset = $m[1];
424
+ } else {
425
+ foreach(array('UTF-8','SJIS','EUC-JP','eucJP-win','ASCII','JIS','SJIS-win') as $c_charset) {
426
  if (mb_convert_encoding($html, $this->charset, $c_charset) == $html) {
427
  $charset = $c_charset;
428
+ break;
429
  }
430
  }
431
+ }
432
+ if (is_null($charset)) {
433
+ $charset = 'auto';
434
+ $html = mb_convert_encoding($html, $this->charset, 'ASCII,JIS,UTF-7,EUC-JP,SJIS,UTF-8');
435
+ } elseif ($this->charset <> $charset) {
436
+ $html = mb_convert_encoding($html, $this->charset, $charset);
437
+ }
438
+ }
439
+
440
+ if ($result_code < 0) {
441
+ $error = false;
442
+ $update = true;
443
+ } else {
444
+ $error = false;
445
+ $update = true;
446
+
447
+ $tags = null;
448
+ // HEADタグ
449
+ $head = null;
450
+ if (preg_match('/<\s*head\s*[^>]*>(.*)<\s*\/head\s*>/si', $html, $m)) {
451
+ $head = $m[1];
452
+ }
453
+
454
+ $tags = null;
455
+ $tags = $this->pz_GetMeta($head);
456
+
457
+ // タイトル
458
+ if (isset( $tags['og:title'] ) && $tags['og:title'] ) {
459
+ $title = $tags['og:title'] ;
460
+ } elseif (isset( $tags['title'] ) && $tags['title'] ) {
461
+ $title = $tags['title'] ;
462
+ }
463
 
464
+ // 抜粋文・概要文
465
+ if (isset( $tags['og:description'] ) && $tags['og:description'] ) {
466
+ $excerpt = $tags['og:description'] ;
467
+ } elseif (isset( $tags['description'] ) && $tags['description'] ) {
468
+ $excerpt = $tags['description'] ;
469
+ }
 
 
470
 
471
+ // // OGPから画像URL取得
472
+ // if ($sw_thumbnail == '1' && isset($tags['og:image'])) {
473
+ // $thumbnail_url = $tags['og:image'];
474
+ // $thumbnail = '<img class="lkc-thumbnail-img" src="'.$thumbnail_url.'" alt="" />';
475
+ // }
476
 
477
+ // サイト名
478
+ if (isset( $tags['og:site_name'] ) && $tags['og:site_name'] ) {
479
+ $site_name = $tags['og:site_name'] ;
480
+ }
481
 
482
+ if ($result_code <> 200) {
483
+ $title = null;
484
  }
485
  }
486
  }
535
  }
536
 
537
  $data = $this->pz_SetCache($data);
538
+ wp_schedule_single_event(time() + 10, 'pz_linkcard_check');
539
+
540
  if (isset($data['id'])) {
541
  $update = false;
542
  }
543
  }
544
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
545
  // サムネイル取得
546
  if (!$this->options['thumbnail-position'] || $error) {
547
  $thumbnail = null;
552
  $thumbnail = preg_replace('/%DOMAIN_URL%/', $domain_url, $this->options['thumbnail-api'] );
553
  $thumbnail = preg_replace('/%DOMAIN%/', $domain, $thumbnail);
554
  $thumbnail = preg_replace('/%URL%/', rawurlencode($url), $thumbnail);
555
+ $thumbnail = '<img class="lkc-thumbnail-img" src="'.$thumbnail.'" alt="" />';
556
  }
557
  }
558
  }
567
  $favicon = preg_replace('/%DOMAIN_URL%/', $domain_url, $this->options['favicon-api'] );
568
  $favicon = preg_replace('/%DOMAIN%/', $domain, $favicon);
569
  $favicon = preg_replace('/%URL%/', rawurlencode($url), $favicon);
570
+ $favicon = '<img class="lkc-favicon" src="'.$favicon.'" alt="" />';
571
  }
572
  }
573
  }
574
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
575
  // データベースへの保存が終わったので、表示用の編集
576
 
577
  // タイトル
578
  if (!isset($title) || $title == '') {
579
  $title = esc_html($url); // タイトル取得できていなかったらURLをセットする
580
  }
581
+
582
  // パラメータ取得(タイトル・抜粋文)
583
  if (isset($atts['title'])) { // titleパラメータ
584
  $title = $atts['title'];
593
  $excerpt = $atts['description'];
594
  }
595
  }
596
+
597
  // タイトル整形
598
  if (isset($title)) {
599
  $str = $title;
600
  $str = strip_tags($str); // タグの除去
601
  $str = str_replace(array("\r", "\n"), '', $str); // 改行削除
602
  $str = esc_html($str); // 念のためエスケープ
603
+ $str = mb_strimwidth($str, 0, (isset($this->options['trim-title']) ? $this->options['trim-title'] : $this->defaults['trim-title'] ) , '...');
604
  $title = $str;
605
  }
606
+
607
  // 抜粋文整形
608
+ // 抜粋文非表示の場合、空欄にする
609
+ if (!isset($this->options['display-excerpt']) || is_null($this->options['display-excerpt'])) {
610
+ $excerpt = '';
611
+ } else {
612
+ if (isset($excerpt)) {
613
+ $str = $excerpt;
614
+ $str = strip_tags($str); // タグの除去
615
+ $str = preg_replace('/<!--more-->.+/is', '', $str); // moreタグ以降削除
616
+ $str = preg_replace('/\[[^]]*\]/', '', $str); // ショートコードすべて除去
617
+ $str = str_replace(array("\r", "\n"), '', $str); // 改行削除
618
+ $str = esc_html($str); // 念のためエスケープ
619
+ $str = mb_strimwidth($str, 0, (isset($this->options['trim-count']) ? $this->options['trim-count'] : $this->defaults['trim-count'] ) , '...');
620
+ $excerpt = $str;
621
+ }
622
  }
623
+
624
  // サイト名称を使わない場合、ドメイン名で上書き
625
+ $site_title = '';
626
  if (is_null($this->options['use-sitename']) || $site_name == '') {
627
  $site_name = $domain;
 
 
 
 
 
628
  } else {
629
+ $c_site_name = $site_name;
630
+ $site_name = mb_strimwidth($site_name, 0, (isset($this->options['trim-sitename']) ? $this->options['trim-sitename'] : $this->defaults['trim-sitename'] ) , '...');
631
+ if ($site_name <> $c_site_name) {
632
+ $site_title = ' title="'.$c_site_name.'"';
633
+ }
634
  }
635
+
636
  // リンク先URL
637
  $a_op = '<a class="no_icon" href="'.$url.'"'.$target.$nofollow.'>';
638
  $a_cl = '</a>';
639
  if ((isset($this->options['link-all']) ? $this->options['link-all'] : null) == '1') {
640
+ $a_op_all = $a_op;
641
+ $a_cl_all = $a_cl;
642
+ $a_op = '';
643
+ $a_cl = '';
644
  } else {
645
+ $a_op_all = '';
646
+ $a_cl_all = '';
647
+ }
648
+
649
+ // ソーシャルカウント(class="no_icon"は他プラグインの対応)
650
+ $sns = null;
651
+ $sns_info = null;
652
+ $sns_title = null;
653
+ if (!$error && (isset($this->options['sns-position']) ? $this->options['sns-position'] : null)) {
654
+ $sns = '<span class="lkc-share">';
655
+ if ((isset($this->options['link-all']) ? $this->options['link-all'] : null) == '1') {
656
+ if (isset($this->options['sns-tw']) && !is_null($this->options['sns-tw']) && $sns_tw > 0) {
657
+ $sns .= ' <span class="lkc-sns-tw no_icon">'.$sns_tw.'&nbsp;tweet'.(($sns_tw > 1) ? 's' : '').'</span>';
658
+ }
659
+ if (isset($this->options['sns-fb']) && !is_null($this->options['sns-fb']) && $sns_fb > 0) {
660
+ $sns .= ' <span class="lkc-sns-fb no_icon">'.$sns_fb.'&nbsp;share'.(($sns_fb > 1) ? 's' : '').'</span>';
661
+ }
662
+ if (isset($this->options['sns-hb']) && !is_null($this->options['sns-hb']) && $sns_hb > 0) {
663
+ $sns .= ' <span class="lkc-sns-hb no_icon">'.$sns_hb.'&nbsp;user'.(($sns_hb > 1) ? 's' : '').'</span>';
664
+ }
665
+ } else {
666
+ if (isset($this->options['sns-tw']) && !is_null($this->options['sns-tw']) && $sns_tw > 0) {
667
+ $sns .= ' <a class="lkc-sns-tw no_icon" href="https://twitter.com/intent/tweet?url=' .rawurlencode($url).'&text='.esc_html($title).'" target="_blank">'.$sns_tw.'&nbsp;tweet'.(($sns_tw > 1) ? 's' : '').'</a>';
668
+ }
669
+ if (isset($this->options['sns-fb']) && !is_null($this->options['sns-fb']) && $sns_fb > 0) {
670
+ $sns .= ' <a class="lkc-sns-fb no_icon" href="https://www.facebook.com/sharer/sharer.php?u="' .rawurlencode($url).' target="_blank">'.$sns_fb.'&nbsp;share'.(($sns_fb > 1) ? 's' : '').'</a>';
671
+ }
672
+ if (isset($this->options['sns-hb']) && !is_null($this->options['sns-hb']) && $sns_hb > 0) {
673
+ $sns .= ' <a class="lkc-sns-hb no_icon" href="http://b.hatena.ne.jp/entry/' .rawurlencode($url).'" target="_blank">'.$sns_hb.'&nbsp;user'.(($sns_hb > 1) ? 's' : '').'</a>';
674
+ }
675
+ }
676
+ $sns .= '</span>';
677
+
678
+ if ($this->options['sns-position'] == '1') {
679
+ $sns_title = $sns;
680
+ } else {
681
+ $sns_info = $sns;
682
+ }
683
+ }
684
+
685
+ // サムネイル
686
+ if ($thumbnail) {
687
+ $thumbnail = '<span class="lkc-thumbnail">'.$thumbnail.'</span>';
688
  }
 
689
  // サイト情報
690
+ $domain_info = '<div class="lkc-info">'.$a_op.'<span class="lkc-domain"'.$site_title.'>'.$favicon.'&nbsp;'.$site_name.$info.'</span>'.$a_cl.'&nbsp;'.$sns_info.$this->plugin_link.'</div>';
691
+
692
  // 記事内容
693
+ $content = '<div class="lkc-content">'.$a_op.$thumbnail.'<span class="lkc-title">'.$title.'</span>'.$a_cl.$sns_title.'<div class="lkc-url"><cite>'.$a_op.$url.$a_cl.'</cite></div><div class="lkc-excerpt">'.$excerpt.'</div></div>';
694
+
695
  // HTMLタグ作成
696
  switch (isset($this->options['info-position']) ? $this->options['info-position'] : null) {
697
  case '1':
698
+ $tag = $a_op_all.$wrap_op.'<div class="lkc-card">'.$domain_info.$content.'<div class="clear"></div></div>'.$wrap_cl.$a_cl_all;
699
  break;
700
  case '2':
701
+ $tag = $a_op_all.$wrap_op.'<div class="lkc-card">'.$content.$domain_info.'<div class="clear"></div></div>'.$wrap_cl.$a_cl_all;
702
  break;
703
  default:
704
+ $tag = $a_op_all.$wrap_op.'<div class="lkc-card">'.$content.'<div class="clear"></div></div>'.$wrap_cl.$a_cl_all;
705
  }
706
+
707
  // 引用文扱い
708
  if (isset($this->options['blockquote']) ? $this->options['blockquote'] : null == '1') {
709
+ $tag = '<div class="linkcard"><blockquote class="lkc-quote">'.$tag.'</blockquote></div>';
710
  } else {
711
  $tag = '<div class="linkcard">'.$tag.'</div>';
712
  }
713
+
714
  // 実行時間
715
  if (is_user_logged_in()) {
716
  if (isset($this->options['debug-time'])) {
722
  return $tag;
723
  }
724
 
725
+ public function pz_RenewSNSCount($data) {
726
+ if (!isset($this->options['sns-position']) || $this->options['sns-position'] == '') {
727
+ return null;
728
+ }
729
+ if (!isset($data) || !is_array($data)) {
730
+ return null;
731
+ }
732
+
733
+ $data = $this->pz_GetCache($data);
734
+ if (!isset($data) || !is_array($data)) {
735
+ return null;
736
+ }
737
+
738
+ // ソーシャルカウント
739
+ $sns_renew = false;
740
+ $update_cnt = false;
741
+
742
+ // タイムオーバー
743
+ $opt = array( 'timeout' => 30 );
744
+
745
+ // 保存期間満了でソーシャルカウントをリセット
746
+ $now = current_time('timestamp');
747
+ if ($now > $data['nexttime'] && $data['result_code'] <= 200 ) {
748
+ $sns_renew = true;
749
+ }
750
+
751
+ if ($now < 1447945200) { // 2015年11月20日以降ツイッターの取得をしない
752
+ if (isset($this->options['sns-tw']) && !is_null($this->options['sns-tw'])) {
753
+ $count_before = intval(isset($data['sns_twitter']) ? $data['sns_twitter'] : -1);
754
+ if ($sns_renew || $count_before < 0) {
755
+ $result = wp_remote_get( 'http://urls.api.twitter.com/1/urls/count.json?url=' .rawurlencode($data['url']), $opt );
756
+ if (isset($result) && !is_wp_error($result) && $result['response']['code'] == 200) {
757
+ $count = intval(json_decode($result['body'])->count);
758
+ if ($count <> $count_before) {
759
+ $data['sns_twitter'] = $count;
760
+ $update_cnt = true;
761
+ }
762
+ }
763
+ }
764
+ }
765
+ }
766
+
767
+ if (isset($this->options['sns-fb']) && !is_null($this->options['sns-fb'])) {
768
+ $count_before = intval(isset($data['sns_facebook']) ? $data['sns_facebook'] : -1);
769
+ if ($sns_renew || $count_before < 0) {
770
+ $result = wp_remote_get( 'http://graph.facebook.com/?id=' .rawurlencode($data['url']), $opt );
771
+ if (isset($result) && !is_wp_error($result) && $result['response']['code'] == 200) {
772
+ $json = json_decode($result['body']);
773
+ $count = intval(isset($json->shares) ? isset($json->shares) : 0);
774
+ if ($count <> $count_before) {
775
+ $data['sns_facebook'] = $count;
776
+ $update_cnt = true;
777
+ }
778
+ }
779
+ }
780
+ }
781
+
782
+ if (isset($this->options['sns-hb']) && !is_null($this->options['sns-hb'])) {
783
+ $count_before = intval(isset($data['sns_hatena']) ? $data['sns_hatena'] : -1);
784
+ if ($sns_renew || $count_before < 0) {
785
+ $result = wp_remote_get( 'http://api.b.st-hatena.com/entry.count?url=' .rawurlencode($data['url']), $opt );
786
+ if (isset($result) && !is_wp_error($result) && $result['response']['code'] == 200) {
787
+ $count = intval($result['body']);
788
+ if ($count <> $count_before) {
789
+ $data['sns_hatena'] = $count;
790
+ $update_cnt = true;
791
+ }
792
+ }
793
+ }
794
+ }
795
+
796
+ if ($update_cnt || ($now - strtotime($data['regist']) < 604800)) {
797
+ $nexttime = $now + 86400 + rand(0, 86400); // 1day + 0-24h
798
+ // 1h...3600 12h...43200 24h...86400 3day...259200 7day...604800
799
+ } else {
800
+ $nexttime = $now + 604800 + rand(0, 86400); // 7days + 0-24h
801
+ }
802
+
803
+ global $wpdb;
804
+ $wpdb->update(
805
+ $this->db_name,
806
+ array(
807
+ 'sns_twitter' => $data['sns_twitter'],
808
+ 'sns_facebook' => $data['sns_facebook'],
809
+ 'sns_hatena' => $data['sns_hatena'],
810
+ 'uptime' => $now,
811
+ 'nexttime' => $nexttime
812
+ ),
813
+ array(
814
+ 'url_key' => $data['url_key']
815
+ )
816
+ );
817
+ return $data;
818
+ }
819
+
820
  public function pz_GetCache($data) {
 
821
  if (!isset($data) || !is_array($data)) {
822
  return null;
823
  }
824
+ global $wpdb;
825
  if (isset($data['url']) && !is_null($data['url'])) {
826
  $url = $this->pz_TrimURL($data['url']);
827
  $data = $wpdb->get_row($wpdb->prepare("SELECT * FROM $this->db_name WHERE url=%s", $url));
904
  return null;
905
  }
906
 
907
+ function pz_GetMeta($html, $tags = null, $clear = false) {
908
+ if ($clear == true) {
909
+ $tags = null;
910
+ }
911
+
912
  // TITLEタグ
913
  if (preg_match('/<\s*title\s*[^>]*>\s*(.*)\s*<\s*\/title\s*[^>]*>/si', $html, $m)) {
914
  $tags['title'] = esc_html($m[1]);
915
  }
916
+
 
 
 
 
 
917
  // metaタグ パース
918
  $match = null;
919
  preg_match_all('/<\s*meta\s(?=[^>]*?\b(?:name|property)\s*=\s*(?|"\s*([^"]*?)\s*"|\'\s*([^\']*?)\s*\'|([^"\'>]*?)(?=\s*\/?\s*>|\s\w+\s*=)))[^>]*?\bcontent\s*=\s*(?|"\s*([^"]*?)\s*"|\'\s*([^\']*?)\s*\'|([^"\'>]*?)(?=\s*\/?\s*>|\s\w+\s*=))[^>]*>/is', $html, $match);
920
  if (isset($match) && is_array($match) && count($match) == 3) {
921
+ $tags += array_combine($match[1], $match[2]);
 
 
922
  }
923
+
924
  return $tags;
925
  }
926
 
931
 
932
  public function enqueue($hook) {
933
  if (!isset($this->options['style'])) {
934
+ wp_enqueue_style ('pz-linkcard', $this->options['css-url']);
935
  } else {
936
  if (isset($this->options['css-file'])) {
937
+ wp_enqueue_style('pz-linkcard', $this->options['css-file']);
938
  }
939
  }
940
  }
945
  add_options_page (__('LinkCard Settings', $this->text_domain),__('Pz LinkCard', $this->text_domain),'manage_options', 'pz-linkcard-settings', array($this, 'page_settings') );
946
  }
947
 
948
+ public function schedule_hook() {
949
+ if (!isset($this->options['sns-position']) || $this->options['sns-position'] == '') {
950
+ return null;
951
+ }
952
+
953
+ global $wpdb;
954
+ $now = current_time('timestamp');
955
+ $result = (array) $wpdb->get_results($wpdb->prepare("SELECT url,nexttime FROM $this->db_name WHERE nexttime<%d ORDER BY nexttime ASC", $now));
956
+ $i = 0;
957
+ if (isset($result) && is_array($result) && count($result) > 0) {
958
+ foreach($result as $data) {
959
+ $i++;
960
+ if ($i > 10) {
961
+ // wp_schedule_single_event(time() + 30, 'pz_linkcard_check');
962
+ break;
963
+ }
964
+ if (isset($data) && isset($data->url)) {
965
+ $data = $this->pz_RenewSNSCount(array('url' => $data->url) );
966
+ }
967
+ }
968
+ }
969
+ }
970
+
971
  public function page_cacheman() {
972
+ require_once ('pz-linkcard-cacheman.php');
973
  }
974
 
975
  public function page_settings() {
976
+ require_once ('pz-linkcard-settings.php');
977
  }
978
 
979
  public function activation() {
985
  }
986
  // $this->options += $this->defaults;
987
 
988
+ foreach ($this->defaults as $key => $value) {
989
+ if (!isset($this->options[$key])) {
990
+ $this->options[$key] = null;
991
+ }
992
+ }
993
+
994
  $this->options['plugin-version'] = $this->defaults['plugin-version'];
995
  update_option('Pz_LinkCard_options', $this->options);
996
 
997
+ require_once ('pz-linkcard-style.php');
998
 
999
  global $wpdb;
1000
  $wpdb->hide_errors();
1016
  sns_twitter INT ,
1017
  sns_facebook INT ,
1018
  sns_hatena INT ,
 
 
1019
  uptime BIGINT UNSIGNED NOT NULL DEFAULT 0,
1020
  nexttime BIGINT UNSIGNED NOT NULL DEFAULT 0,
1021
  regist DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
1022
  PRIMARY KEY ( id ),
1023
  UNIQUE KEY ( url_key )
1024
  ) ".$wpdb->get_charset_collate()." ;";
1025
+ require_once (ABSPATH.'wp-admin/includes/upgrade.php');
1026
  dbDelta($sql);
1027
+
1028
+ wp_clear_scheduled_hook('pz_linkcard_check');
1029
+ wp_schedule_event(time() + 30, 'hourly', 'pz_linkcard_check');
1030
  }
1031
 
1032
  public function deactivation() {
1033
+ wp_clear_scheduled_hook('pz_linkcard_check');
1034
  }
1035
 
1036
  public function action_links($links) {
1037
+ $links = array('<a href="options-general.php?page=pz-linkcard-settings">'.__('Settings', $this->text_domain).'</a>' , '<a href="tools.php?page=pz-linkcard-cache">'.__('Manage', $this->text_domain).'</a>' ) + $links;
1038
  return $links;
1039
  }
1040
  }
1041
+ $Pz_LinkCard = new Pz_LinkCard;
readme.txt CHANGED
@@ -21,6 +21,8 @@ You can edit or delete the cache on the `manage` screen .
21
 
22
  The goodbye to the text-only link.
23
 
 
 
24
 
25
  このプラグインはショートコードでURLを指定することで、リンクをブログカード形式で表示させるものです。
26
 
@@ -34,6 +36,8 @@ The goodbye to the text-only link.
34
 
35
  (ショートコード内にURLを記述した場合、ピンバックは飛びません。ピンバックを使用したい方は記事中にテキストリンクを張るなどで対応してください。)
36
 
 
 
37
 
38
  まだ成熟したプラグインでは無いので、ご意見やご要望があればなるべくお応えしていきたいと思います。
39
 
@@ -160,17 +164,28 @@ WordPressピンバックは記事中にリンクを直接記述しないと飛
160
 
161
  == Changelog ==
162
 
 
 
 
 
 
 
 
 
 
 
 
163
  = 1.1.1 =
164
  * Fixed: Fixed to had failed parsing of meta tags.
165
 
166
- * metaタグの解析に失敗していたのを修正。(Thanks @misoji_13)
167
 
168
  = 1.1.0 =
169
  * Modefied: Since November 20, 2015 , it does not use the Twitter API.
170
  * Added: It can be selected "Other than mobile" and "All client" in the setting of "Open new window/tab".
171
 
172
  * 2015年11月20日までのTwitter非公式API廃止に伴い、同日以降取得しないように修正。
173
- * 「新しいウィンドウで開く」をチェックボックスからリストに変更し、「モバイル以外(のみ新しいウィンドウで開く)」を追加。(Thanks @misoji_13)
174
 
175
  = 1.0.3 =
176
  * キャッシュ保存時にキーが正しく設定されないことがあったのを修正。
21
 
22
  The goodbye to the text-only link.
23
 
24
+ * It will access to WebAPI for the thumbnail image acquisition and site icon of acquisition. In addition , it will save the title and excerpt statement to the database. For more information you want to read the item of "arbitrary section" about this.
25
+
26
 
27
  このプラグインはショートコードでURLを指定することで、リンクをブログカード形式で表示させるものです。
28
 
36
 
37
  (ショートコード内にURLを記述した場合、ピンバックは飛びません。ピンバックを使用したい方は記事中にテキストリンクを張るなどで対応してください。)
38
 
39
+ ※このプラグインはサムネイルの取得やサイトアイコンの取得のためにリンク先のURLをWebAPIに送信します。また、タイトル・抜粋文をDBへ保存します。詳細は「Arbitrary section」をお読みください。
40
+
41
 
42
  まだ成熟したプラグインでは無いので、ご意見やご要望があればなるべくお応えしていきたいと思います。
43
 
164
 
165
  == Changelog ==
166
 
167
+ = 1.6.0 =
168
+ * Modefied: Acquired without the wp_remote_get, modified to use a cURL.
169
+ * Modefied: Fixed character set acquisition method.
170
+ * Modefied: Fixed social count set acquisition method.
171
+ * Added: Add the margins of the inner card.
172
+
173
+ * リンク先の取得に wp_remote_get() を使用していたのを、cURL に変更。
174
+ * charset の取得方法を変更。
175
+ * ソーシャルカウントの取得をスケジュール方式に変更。
176
+ * 「カード内側の余白」の設定を追加と、それに伴うCSS修正。(Thanks yunosuke)
177
+
178
  = 1.1.1 =
179
  * Fixed: Fixed to had failed parsing of meta tags.
180
 
181
+ * METAタグの取得方法を修正しました。
182
 
183
  = 1.1.0 =
184
  * Modefied: Since November 20, 2015 , it does not use the Twitter API.
185
  * Added: It can be selected "Other than mobile" and "All client" in the setting of "Open new window/tab".
186
 
187
  * 2015年11月20日までのTwitter非公式API廃止に伴い、同日以降取得しないように修正。
188
+ * 「新しいウィンドウで開く」をチェックボックスからリストに変更し、「モバイル以外(のみ新しいウィンドウで開く)」を追加。(Thanks 三十路!)
189
 
190
  = 1.0.3 =
191
  * キャッシュ保存時にキーが正しく設定されないことがあったのを修正。