Version Description
Download this release
Release Info
Developer | poporon |
Plugin | Pz-LinkCard |
Version | 2.0.3 |
Comparing to | |
See all releases |
Code changes from version 2.0.2 to 2.0.3
- js/mce-pz-lkc.js +2 -2
- languages/pz-linkcard-ja.mo +0 -0
- languages/pz-linkcard-ja.po +97 -85
- lib/pz-linkcard-init.php +20 -18
- lib/pz-linkcard-settings.php +24 -4
- lib/pz-linkcard-style.php +3 -3
- pz-linkcard.php +13 -13
- readme.txt +9 -1
js/mce-pz-lkc.js
CHANGED
@@ -2,12 +2,12 @@
|
|
2 |
tinymce.create('tinymce.plugins.pzlinkcard', {
|
3 |
init: function(ed, url){
|
4 |
ed.addButton('pz_linkcard',{
|
5 |
-
title: '
|
6 |
image: url + '/button.png',
|
7 |
cmd: 'insert_pz_linkcard'
|
8 |
});
|
9 |
ed.addCommand('insert_pz_linkcard', function() {
|
10 |
-
var insert_tag = window.prompt('
|
11 |
if (insert_tag !== null) {
|
12 |
ed.execCommand('mceInsertContent', 0, '[blogcard url="' + insert_tag + '"]');
|
13 |
}
|
2 |
tinymce.create('tinymce.plugins.pzlinkcard', {
|
3 |
init: function(ed, url){
|
4 |
ed.addButton('pz_linkcard',{
|
5 |
+
title: 'リンクカード作成',
|
6 |
image: url + '/button.png',
|
7 |
cmd: 'insert_pz_linkcard'
|
8 |
});
|
9 |
ed.addCommand('insert_pz_linkcard', function() {
|
10 |
+
var insert_tag = window.prompt('リンクカードを作成するURLを入力してください', 'http://');
|
11 |
if (insert_tag !== null) {
|
12 |
ed.execCommand('mceInsertContent', 0, '[blogcard url="' + insert_tag + '"]');
|
13 |
}
|
languages/pz-linkcard-ja.mo
CHANGED
Binary file
|
languages/pz-linkcard-ja.po
CHANGED
@@ -4,8 +4,8 @@ msgid ""
|
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: Pz-LinkCard\n"
|
6 |
"Report-Msgid-Bugs-To: http://wppolyglots.wordpress.com\n"
|
7 |
-
"POT-Creation-Date: 2017-08-
|
8 |
-
"PO-Revision-Date: 2017-08-
|
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.php:
|
23 |
msgid "Incorrect URL specification."
|
24 |
msgstr ""
|
25 |
|
@@ -353,8 +353,8 @@ msgstr "かんたん書式設定"
|
|
353 |
#: ../lib/pz-linkcard-settings.php:105 ../lib/pz-linkcard-settings.php:347
|
354 |
#: ../lib/pz-linkcard-settings.php:368 ../lib/pz-linkcard-settings.php:466
|
355 |
#: ../lib/pz-linkcard-settings.php:619 ../lib/pz-linkcard-settings.php:631
|
356 |
-
#: ../lib/pz-linkcard-settings.php:646 ../lib/pz-linkcard-settings.php:
|
357 |
-
#: ../lib/pz-linkcard-settings.php:
|
358 |
msgid "None"
|
359 |
msgstr "なし"
|
360 |
|
@@ -491,10 +491,6 @@ msgstr "テキストリンク行の変換"
|
|
491 |
msgid "Convert lines with text link only to Linkcard."
|
492 |
msgstr "テキストリンクだけの行をリンクカードに変換する。"
|
493 |
|
494 |
-
#: ../lib/pz-linkcard-settings.php:174 ../lib/pz-linkcard-settings.php:178
|
495 |
-
msgid "(Trial)"
|
496 |
-
msgstr "(開発テスト中。不具合などはぜひお知らせください。)"
|
497 |
-
|
498 |
#: ../lib/pz-linkcard-settings.php:177
|
499 |
msgid "Convert URL"
|
500 |
msgstr "URL行の変換"
|
@@ -613,7 +609,7 @@ msgid "Layout"
|
|
613 |
msgstr "外観設定"
|
614 |
|
615 |
#: ../lib/pz-linkcard-settings.php:345 ../lib/pz-linkcard-settings.php:639
|
616 |
-
#: ../lib/pz-linkcard-settings.php:
|
617 |
msgid "Site information"
|
618 |
msgstr "サイト情報"
|
619 |
|
@@ -638,7 +634,7 @@ msgid "Display URL"
|
|
638 |
msgstr "リンク先のURLを表示する"
|
639 |
|
640 |
#: ../lib/pz-linkcard-settings.php:366 ../lib/pz-linkcard-settings.php:616
|
641 |
-
#: ../lib/pz-linkcard-settings.php:
|
642 |
msgid "Thumbnail"
|
643 |
msgstr "サムネイル"
|
644 |
|
@@ -790,8 +786,8 @@ msgstr "画面幅に合わせて文字とサムネイルの大きさを調整し
|
|
790 |
msgid "External link"
|
791 |
msgstr "外部リンク"
|
792 |
|
793 |
-
#: ../lib/pz-linkcard-settings.php:608 ../lib/pz-linkcard-settings.php:
|
794 |
-
#: ../lib/pz-linkcard-settings.php:
|
795 |
msgid "Background Color"
|
796 |
msgstr "背景色"
|
797 |
|
@@ -800,100 +796,113 @@ msgid "Background image"
|
|
800 |
msgstr "背景画像"
|
801 |
|
802 |
#: ../lib/pz-linkcard-settings.php:620 ../lib/pz-linkcard-settings.php:632
|
803 |
-
#: ../lib/pz-linkcard-settings.php:
|
804 |
msgid "Direct"
|
805 |
msgstr "直接取得する"
|
806 |
|
807 |
#: ../lib/pz-linkcard-settings.php:621 ../lib/pz-linkcard-settings.php:633
|
808 |
-
#: ../lib/pz-linkcard-settings.php:
|
809 |
msgid "Use WebAPI"
|
810 |
msgstr "WebAPIを利用する"
|
811 |
|
812 |
#: ../lib/pz-linkcard-settings.php:622 ../lib/pz-linkcard-settings.php:634
|
813 |
-
#: ../lib/pz-linkcard-settings.php:
|
814 |
msgid "Use WebAPI ,If can not direct"
|
815 |
msgstr "直接取得できない場合、WebAPIを利用する"
|
816 |
|
817 |
-
#: ../lib/pz-linkcard-settings.php:628 ../lib/pz-linkcard-settings.php:
|
818 |
-
#: ../lib/pz-linkcard-settings.php:
|
819 |
msgid "Favicon"
|
820 |
msgstr "サイトアイコン"
|
821 |
|
822 |
-
#: ../lib/pz-linkcard-settings.php:643 ../lib/pz-linkcard-settings.php:
|
823 |
-
#: ../lib/pz-linkcard-settings.php:
|
824 |
msgid "Open new window/tab"
|
825 |
msgstr "新しいウィンドウで開く"
|
826 |
|
827 |
-
#: ../lib/pz-linkcard-settings.php:647 ../lib/pz-linkcard-settings.php:
|
828 |
msgid "All client"
|
829 |
msgstr "すべての端末"
|
830 |
|
831 |
-
#: ../lib/pz-linkcard-settings.php:648 ../lib/pz-linkcard-settings.php:
|
832 |
msgid "Other than mobile"
|
833 |
msgstr "モバイル端末以外"
|
834 |
|
835 |
-
#: ../lib/pz-linkcard-settings.php:653 ../lib/pz-linkcard-settings.php:
|
836 |
msgid "Get contents"
|
837 |
msgstr "記事取得方法"
|
838 |
|
839 |
-
#: ../lib/pz-linkcard-settings.php:655 ../lib/pz-linkcard-settings.php:
|
840 |
msgid "Initially acquired only from the content"
|
841 |
msgstr "カード管理画面に記録されている内容から表示する"
|
842 |
|
843 |
-
#: ../lib/pz-linkcard-settings.php:659
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
844 |
msgid "Set nofollow"
|
845 |
msgstr "nofollowを付与する"
|
846 |
|
847 |
-
#: ../lib/pz-linkcard-settings.php:
|
848 |
msgid "In the case of an external site, it puts the \"nofollow\""
|
849 |
msgstr "外部リンクのリンクを nofollow にする"
|
850 |
|
851 |
-
#: ../lib/pz-linkcard-settings.php:
|
852 |
msgid "Use HatenaBlogCard"
|
853 |
msgstr "はてなブログカードを利用する"
|
854 |
|
855 |
-
#: ../lib/pz-linkcard-settings.php:
|
856 |
msgid "External links will use Always HatenaBlogCard."
|
857 |
msgstr "外部リンクは「はてなブログカード」を利用する"
|
858 |
|
859 |
-
#: ../lib/pz-linkcard-settings.php:
|
860 |
msgid "(Not recommended)"
|
861 |
msgstr "(非推奨)"
|
862 |
|
863 |
-
#: ../lib/pz-linkcard-settings.php:
|
864 |
msgid "Internal link"
|
865 |
msgstr "内部リンク"
|
866 |
|
867 |
-
#: ../lib/pz-linkcard-settings.php:
|
868 |
msgid "Background Image"
|
869 |
msgstr "背景画像"
|
870 |
|
871 |
-
#: ../lib/pz-linkcard-settings.php:
|
872 |
msgid "Always get the latest from the content"
|
873 |
msgstr "常に最新の記事内容から抜粋文を作成する"
|
874 |
|
875 |
-
#: ../lib/pz-linkcard-settings.php:
|
876 |
msgid "Always get the latest from the excerpt"
|
877 |
msgstr "抜粋文が設定されている投稿はそちらを優先する"
|
878 |
|
879 |
-
#: ../lib/pz-linkcard-settings.php:
|
|
|
|
|
|
|
|
|
880 |
msgid "Same-page link"
|
881 |
msgstr "同ページへのリンク"
|
882 |
|
883 |
-
#: ../lib/pz-linkcard-settings.php:
|
884 |
-
#: ../lib/pz-linkcard-settings.php:
|
885 |
msgid "It is common with setting Internal-link"
|
886 |
msgstr "内部リンク用の設定が使用されます"
|
887 |
|
888 |
-
#: ../lib/pz-linkcard-settings.php:
|
889 |
msgid "Web-API"
|
890 |
msgstr "画像取得APIの指定"
|
891 |
|
892 |
-
#: ../lib/pz-linkcard-settings.php:
|
893 |
msgid "Favicon API"
|
894 |
msgstr "ファビコンの取得API"
|
895 |
|
896 |
-
#: ../lib/pz-linkcard-settings.php:
|
897 |
msgid ""
|
898 |
"%DOMAIN% replace to domain name (ex. poporon.poponet.jp )<br>%DOMAIN_URL% "
|
899 |
"replace to domain URL (ex. http://poporon.poponet.jp )"
|
@@ -902,191 +911,191 @@ msgstr ""
|
|
902 |
"%DOMAIN_URL% と記述するとドメインのURL(例.http://poporon.poponet.jp)に置き"
|
903 |
"換わります。"
|
904 |
|
905 |
-
#: ../lib/pz-linkcard-settings.php:
|
906 |
msgid "ex1."
|
907 |
msgstr "例1."
|
908 |
|
909 |
-
#: ../lib/pz-linkcard-settings.php:
|
910 |
msgid "ex2."
|
911 |
msgstr "例2."
|
912 |
|
913 |
-
#: ../lib/pz-linkcard-settings.php:
|
914 |
msgid "Thumbnail API"
|
915 |
msgstr "サムネイル画像の取得API"
|
916 |
|
917 |
-
#: ../lib/pz-linkcard-settings.php:
|
918 |
msgid "%URL% replace to URL"
|
919 |
msgstr "%URL% と記述するとURLに置き換わります"
|
920 |
|
921 |
-
#: ../lib/pz-linkcard-settings.php:
|
922 |
msgid "Link check"
|
923 |
msgstr "リンク先のチェック"
|
924 |
|
925 |
-
#: ../lib/pz-linkcard-settings.php:
|
926 |
msgid "SSL verification disabled"
|
927 |
msgstr "SSL検証を無効"
|
928 |
|
929 |
-
#: ../lib/pz-linkcard-settings.php:
|
930 |
msgid "Try setting if the contents of the SSL site can not be acquired."
|
931 |
msgstr ""
|
932 |
"SSLサイトのタイトルや記事内容が取得できない場合に設定することで取得できる可能"
|
933 |
"性があります。"
|
934 |
|
935 |
-
#: ../lib/pz-linkcard-settings.php:
|
936 |
msgid "Follow location"
|
937 |
msgstr "リダイレクト処理"
|
938 |
|
939 |
-
#: ../lib/pz-linkcard-settings.php:
|
940 |
msgid "Track when the link destination is redirected."
|
941 |
msgstr "リンク先がリダイレクトされている場合に追跡します。"
|
942 |
|
943 |
-
#: ../lib/pz-linkcard-settings.php:
|
944 |
msgid "Set referer"
|
945 |
msgstr "リファラーの通知"
|
946 |
|
947 |
-
#: ../lib/pz-linkcard-settings.php:
|
948 |
msgid "Notify the article URL to the link destination."
|
949 |
msgstr "リンク先に記事のURLを知らせます。"
|
950 |
|
951 |
-
#: ../lib/pz-linkcard-settings.php:
|
952 |
msgid "Use User-Agent"
|
953 |
msgstr "ユーザーエージェントの通知"
|
954 |
|
955 |
-
#: ../lib/pz-linkcard-settings.php:
|
956 |
msgid "Notify using Pz-LinkCard to the link destination."
|
957 |
msgstr "リンク先にPz-LinkCardを使用していることを知らせます。"
|
958 |
|
959 |
-
#: ../lib/pz-linkcard-settings.php:
|
960 |
msgid "Broken link checker"
|
961 |
msgstr "リンク切れチェック"
|
962 |
|
963 |
-
#: ../lib/pz-linkcard-settings.php:
|
964 |
msgid "Alive confirmation of the link destination."
|
965 |
msgstr "リンク先がアクセスできるか定期的に確認します。"
|
966 |
|
967 |
-
#: ../lib/pz-linkcard-settings.php:
|
968 |
msgid "Debug"
|
969 |
msgstr "詳しい人用(Debug)"
|
970 |
|
971 |
-
#: ../lib/pz-linkcard-settings.php:
|
972 |
msgid "Trailing slash"
|
973 |
msgstr "末尾のスラッシュ"
|
974 |
|
975 |
-
#: ../lib/pz-linkcard-settings.php:
|
976 |
msgid "As it"
|
977 |
msgstr "そのまま"
|
978 |
|
979 |
-
#: ../lib/pz-linkcard-settings.php:
|
980 |
msgid "When only domain name, remove"
|
981 |
msgstr "ドメイン名のみのときだけ削除"
|
982 |
|
983 |
-
#: ../lib/pz-linkcard-settings.php:
|
984 |
msgid "Always remove"
|
985 |
msgstr "常に削除"
|
986 |
|
987 |
-
#: ../lib/pz-linkcard-settings.php:
|
988 |
msgid "specified CSS"
|
989 |
msgstr "指定したCSSを使用"
|
990 |
|
991 |
-
#: ../lib/pz-linkcard-settings.php:
|
992 |
msgid "Use specified CSS file"
|
993 |
msgstr "指定したCSSファイルを使用する"
|
994 |
|
995 |
-
#: ../lib/pz-linkcard-settings.php:
|
996 |
msgid "CSS file"
|
997 |
msgstr "CSSファイル名"
|
998 |
|
999 |
-
#: ../lib/pz-linkcard-settings.php:
|
1000 |
msgid "(ex. https://exsample.com/style.css )"
|
1001 |
msgstr "例.https://exsample.com/style.css"
|
1002 |
|
1003 |
-
#: ../lib/pz-linkcard-settings.php:
|
1004 |
msgid "CSS URL"
|
1005 |
msgstr "CSSファイルのURL"
|
1006 |
|
1007 |
-
#: ../lib/pz-linkcard-settings.php:
|
1008 |
msgid "Class ID to be added(for PC)"
|
1009 |
msgstr "PCのときに追加するクラス名"
|
1010 |
|
1011 |
-
#: ../lib/pz-linkcard-settings.php:
|
1012 |
msgid "Class ID to be added(for Mobile)"
|
1013 |
msgstr "モバイルのときに追加するクラス名"
|
1014 |
|
1015 |
-
#: ../lib/pz-linkcard-settings.php:
|
1016 |
msgid "Google AMP"
|
1017 |
msgstr ""
|
1018 |
|
1019 |
-
#: ../lib/pz-linkcard-settings.php:
|
1020 |
msgid "Corresponds to simple display for Google AMP."
|
1021 |
msgstr "アクセスされたURLの末尾が「/amp」の場合、簡易表示に切り替える。"
|
1022 |
|
1023 |
-
#: ../lib/pz-linkcard-settings.php:
|
1024 |
msgid "IDNA Convert"
|
1025 |
msgstr "IDNAドメインの表示"
|
1026 |
|
1027 |
-
#: ../lib/pz-linkcard-settings.php:
|
1028 |
msgid "Convert domain name from IDNA ASCII to Unicode."
|
1029 |
msgstr ""
|
1030 |
"IDNAのASCII方式でエンコードされたドメイン名をUnicodeに変換して表示します(日"
|
1031 |
"本語ドメインなど)"
|
1032 |
|
1033 |
-
#: ../lib/pz-linkcard-settings.php:
|
1034 |
msgid "Display link to author page"
|
1035 |
msgstr "プラグイン名を表示する"
|
1036 |
|
1037 |
-
#: ../lib/pz-linkcard-settings.php:
|
1038 |
msgid "Plugin URL"
|
1039 |
msgstr "プラグインページURL"
|
1040 |
|
1041 |
-
#: ../lib/pz-linkcard-settings.php:
|
1042 |
msgid "Plugin name"
|
1043 |
msgstr "プラグイン名"
|
1044 |
|
1045 |
-
#: ../lib/pz-linkcard-settings.php:
|
1046 |
msgid "Plugin version"
|
1047 |
msgstr "プラグインバージョン"
|
1048 |
|
1049 |
-
#: ../lib/pz-linkcard-settings.php:
|
1050 |
msgid "Saved datetime"
|
1051 |
msgstr "保存した日時"
|
1052 |
|
1053 |
-
#: ../lib/pz-linkcard-settings.php:
|
1054 |
msgid "Display elapsed time"
|
1055 |
msgstr "実行時間の表示"
|
1056 |
|
1057 |
-
#: ../lib/pz-linkcard-settings.php:
|
1058 |
msgid "Output the elapsed time to HTML comment."
|
1059 |
msgstr "作成にかかった時間をコメントとしてHTMLへ出力する"
|
1060 |
|
1061 |
-
#: ../lib/pz-linkcard-settings.php:
|
1062 |
msgid "Initialize"
|
1063 |
msgstr "初期化"
|
1064 |
|
1065 |
-
#: ../lib/pz-linkcard-settings.php:
|
1066 |
msgid "Return to the initial setting"
|
1067 |
msgstr "設定を初期状態へ戻す"
|
1068 |
|
1069 |
-
#: ../lib/pz-linkcard-settings.php:
|
1070 |
msgid "etc"
|
1071 |
msgstr "その他"
|
1072 |
|
1073 |
-
#: ../lib/pz-linkcard-settings.php:
|
1074 |
msgid "Author's site"
|
1075 |
msgstr "作者のサイト"
|
1076 |
|
1077 |
-
#: ../lib/pz-linkcard-settings.php:
|
1078 |
msgid "Popozure."
|
1079 |
msgstr "ぽぽづれ。"
|
1080 |
|
1081 |
-
#: ../lib/pz-linkcard-settings.php:
|
1082 |
msgid "Poporon's PC daily diary"
|
1083 |
msgstr "ぽぽろんのパソコンつれづれ(ズレズレ?)日記"
|
1084 |
|
1085 |
-
#: ../lib/pz-linkcard-settings.php:
|
1086 |
msgid "Plugin's page"
|
1087 |
msgstr "プラグインのページ"
|
1088 |
|
1089 |
-
#: ../lib/pz-linkcard-settings.php:
|
1090 |
msgid "Donation"
|
1091 |
msgstr "寄付"
|
1092 |
|
@@ -1098,6 +1107,9 @@ msgstr "設定を元にスタイルシートを自動生成しました。"
|
|
1098 |
msgid "Style sheet failed."
|
1099 |
msgstr "スタイルシートの自動生成に失敗しました。"
|
1100 |
|
|
|
|
|
|
|
1101 |
#~ msgid "Gray thin"
|
1102 |
#~ msgstr "薄い色/細い(1px)"
|
1103 |
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: Pz-LinkCard\n"
|
6 |
"Report-Msgid-Bugs-To: http://wppolyglots.wordpress.com\n"
|
7 |
+
"POT-Creation-Date: 2017-08-16 21:58+0900\n"
|
8 |
+
"PO-Revision-Date: 2017-08-16 21:59+0900\n"
|
9 |
"Last-Translator: \n"
|
10 |
"Language-Team: poporon\n"
|
11 |
"Language: ja_JP\n"
|
19 |
"Plural-Forms: nplurals=1; plural=0;\n"
|
20 |
"X-Poedit-SearchPath-0: ..\n"
|
21 |
|
22 |
+
#: ../pz-linkcard.php:269
|
23 |
msgid "Incorrect URL specification."
|
24 |
msgstr ""
|
25 |
|
353 |
#: ../lib/pz-linkcard-settings.php:105 ../lib/pz-linkcard-settings.php:347
|
354 |
#: ../lib/pz-linkcard-settings.php:368 ../lib/pz-linkcard-settings.php:466
|
355 |
#: ../lib/pz-linkcard-settings.php:619 ../lib/pz-linkcard-settings.php:631
|
356 |
+
#: ../lib/pz-linkcard-settings.php:646 ../lib/pz-linkcard-settings.php:687
|
357 |
+
#: ../lib/pz-linkcard-settings.php:698 ../lib/pz-linkcard-settings.php:713
|
358 |
msgid "None"
|
359 |
msgstr "なし"
|
360 |
|
491 |
msgid "Convert lines with text link only to Linkcard."
|
492 |
msgstr "テキストリンクだけの行をリンクカードに変換する。"
|
493 |
|
|
|
|
|
|
|
|
|
494 |
#: ../lib/pz-linkcard-settings.php:177
|
495 |
msgid "Convert URL"
|
496 |
msgstr "URL行の変換"
|
609 |
msgstr "外観設定"
|
610 |
|
611 |
#: ../lib/pz-linkcard-settings.php:345 ../lib/pz-linkcard-settings.php:639
|
612 |
+
#: ../lib/pz-linkcard-settings.php:706 ../lib/pz-linkcard-settings.php:756
|
613 |
msgid "Site information"
|
614 |
msgstr "サイト情報"
|
615 |
|
634 |
msgstr "リンク先のURLを表示する"
|
635 |
|
636 |
#: ../lib/pz-linkcard-settings.php:366 ../lib/pz-linkcard-settings.php:616
|
637 |
+
#: ../lib/pz-linkcard-settings.php:684 ../lib/pz-linkcard-settings.php:748
|
638 |
msgid "Thumbnail"
|
639 |
msgstr "サムネイル"
|
640 |
|
786 |
msgid "External link"
|
787 |
msgstr "外部リンク"
|
788 |
|
789 |
+
#: ../lib/pz-linkcard-settings.php:608 ../lib/pz-linkcard-settings.php:676
|
790 |
+
#: ../lib/pz-linkcard-settings.php:740
|
791 |
msgid "Background Color"
|
792 |
msgstr "背景色"
|
793 |
|
796 |
msgstr "背景画像"
|
797 |
|
798 |
#: ../lib/pz-linkcard-settings.php:620 ../lib/pz-linkcard-settings.php:632
|
799 |
+
#: ../lib/pz-linkcard-settings.php:688 ../lib/pz-linkcard-settings.php:699
|
800 |
msgid "Direct"
|
801 |
msgstr "直接取得する"
|
802 |
|
803 |
#: ../lib/pz-linkcard-settings.php:621 ../lib/pz-linkcard-settings.php:633
|
804 |
+
#: ../lib/pz-linkcard-settings.php:689 ../lib/pz-linkcard-settings.php:700
|
805 |
msgid "Use WebAPI"
|
806 |
msgstr "WebAPIを利用する"
|
807 |
|
808 |
#: ../lib/pz-linkcard-settings.php:622 ../lib/pz-linkcard-settings.php:634
|
809 |
+
#: ../lib/pz-linkcard-settings.php:690 ../lib/pz-linkcard-settings.php:701
|
810 |
msgid "Use WebAPI ,If can not direct"
|
811 |
msgstr "直接取得できない場合、WebAPIを利用する"
|
812 |
|
813 |
+
#: ../lib/pz-linkcard-settings.php:628 ../lib/pz-linkcard-settings.php:695
|
814 |
+
#: ../lib/pz-linkcard-settings.php:752
|
815 |
msgid "Favicon"
|
816 |
msgstr "サイトアイコン"
|
817 |
|
818 |
+
#: ../lib/pz-linkcard-settings.php:643 ../lib/pz-linkcard-settings.php:710
|
819 |
+
#: ../lib/pz-linkcard-settings.php:760
|
820 |
msgid "Open new window/tab"
|
821 |
msgstr "新しいウィンドウで開く"
|
822 |
|
823 |
+
#: ../lib/pz-linkcard-settings.php:647 ../lib/pz-linkcard-settings.php:714
|
824 |
msgid "All client"
|
825 |
msgstr "すべての端末"
|
826 |
|
827 |
+
#: ../lib/pz-linkcard-settings.php:648 ../lib/pz-linkcard-settings.php:715
|
828 |
msgid "Other than mobile"
|
829 |
msgstr "モバイル端末以外"
|
830 |
|
831 |
+
#: ../lib/pz-linkcard-settings.php:653 ../lib/pz-linkcard-settings.php:720
|
832 |
msgid "Get contents"
|
833 |
msgstr "記事取得方法"
|
834 |
|
835 |
+
#: ../lib/pz-linkcard-settings.php:655 ../lib/pz-linkcard-settings.php:726
|
836 |
msgid "Initially acquired only from the content"
|
837 |
msgstr "カード管理画面に記録されている内容から表示する"
|
838 |
|
839 |
+
#: ../lib/pz-linkcard-settings.php:659 ../lib/pz-linkcard-settings.php:731
|
840 |
+
#: ../lib/pz-linkcard-settings.php:764
|
841 |
+
msgid "Do not link at error"
|
842 |
+
msgstr "エラーのときリンクしない"
|
843 |
+
|
844 |
+
#: ../lib/pz-linkcard-settings.php:660
|
845 |
+
msgid "When access status is \"403\", \"404\", \"410\", unlink"
|
846 |
+
msgstr "ステータスが「403」「404」「410」のときにリンクを無効にします"
|
847 |
+
|
848 |
+
#: ../lib/pz-linkcard-settings.php:663
|
849 |
msgid "Set nofollow"
|
850 |
msgstr "nofollowを付与する"
|
851 |
|
852 |
+
#: ../lib/pz-linkcard-settings.php:664
|
853 |
msgid "In the case of an external site, it puts the \"nofollow\""
|
854 |
msgstr "外部リンクのリンクを nofollow にする"
|
855 |
|
856 |
+
#: ../lib/pz-linkcard-settings.php:667
|
857 |
msgid "Use HatenaBlogCard"
|
858 |
msgstr "はてなブログカードを利用する"
|
859 |
|
860 |
+
#: ../lib/pz-linkcard-settings.php:668
|
861 |
msgid "External links will use Always HatenaBlogCard."
|
862 |
msgstr "外部リンクは「はてなブログカード」を利用する"
|
863 |
|
864 |
+
#: ../lib/pz-linkcard-settings.php:668 ../lib/pz-linkcard-settings.php:894
|
865 |
msgid "(Not recommended)"
|
866 |
msgstr "(非推奨)"
|
867 |
|
868 |
+
#: ../lib/pz-linkcard-settings.php:673
|
869 |
msgid "Internal link"
|
870 |
msgstr "内部リンク"
|
871 |
|
872 |
+
#: ../lib/pz-linkcard-settings.php:680 ../lib/pz-linkcard-settings.php:744
|
873 |
msgid "Background Image"
|
874 |
msgstr "背景画像"
|
875 |
|
876 |
+
#: ../lib/pz-linkcard-settings.php:724
|
877 |
msgid "Always get the latest from the content"
|
878 |
msgstr "常に最新の記事内容から抜粋文を作成する"
|
879 |
|
880 |
+
#: ../lib/pz-linkcard-settings.php:725
|
881 |
msgid "Always get the latest from the excerpt"
|
882 |
msgstr "抜粋文が設定されている投稿はそちらを優先する"
|
883 |
|
884 |
+
#: ../lib/pz-linkcard-settings.php:732 ../lib/pz-linkcard-settings.php:765
|
885 |
+
msgid "It is common with setting External-link"
|
886 |
+
msgstr "外部リンク用の設定が使用されます"
|
887 |
+
|
888 |
+
#: ../lib/pz-linkcard-settings.php:737
|
889 |
msgid "Same-page link"
|
890 |
msgstr "同ページへのリンク"
|
891 |
|
892 |
+
#: ../lib/pz-linkcard-settings.php:749 ../lib/pz-linkcard-settings.php:753
|
893 |
+
#: ../lib/pz-linkcard-settings.php:761
|
894 |
msgid "It is common with setting Internal-link"
|
895 |
msgstr "内部リンク用の設定が使用されます"
|
896 |
|
897 |
+
#: ../lib/pz-linkcard-settings.php:770
|
898 |
msgid "Web-API"
|
899 |
msgstr "画像取得APIの指定"
|
900 |
|
901 |
+
#: ../lib/pz-linkcard-settings.php:773
|
902 |
msgid "Favicon API"
|
903 |
msgstr "ファビコンの取得API"
|
904 |
|
905 |
+
#: ../lib/pz-linkcard-settings.php:776
|
906 |
msgid ""
|
907 |
"%DOMAIN% replace to domain name (ex. poporon.poponet.jp )<br>%DOMAIN_URL% "
|
908 |
"replace to domain URL (ex. http://poporon.poponet.jp )"
|
911 |
"%DOMAIN_URL% と記述するとドメインのURL(例.http://poporon.poponet.jp)に置き"
|
912 |
"換わります。"
|
913 |
|
914 |
+
#: ../lib/pz-linkcard-settings.php:777 ../lib/pz-linkcard-settings.php:786
|
915 |
msgid "ex1."
|
916 |
msgstr "例1."
|
917 |
|
918 |
+
#: ../lib/pz-linkcard-settings.php:778 ../lib/pz-linkcard-settings.php:787
|
919 |
msgid "ex2."
|
920 |
msgstr "例2."
|
921 |
|
922 |
+
#: ../lib/pz-linkcard-settings.php:782
|
923 |
msgid "Thumbnail API"
|
924 |
msgstr "サムネイル画像の取得API"
|
925 |
|
926 |
+
#: ../lib/pz-linkcard-settings.php:785
|
927 |
msgid "%URL% replace to URL"
|
928 |
msgstr "%URL% と記述するとURLに置き換わります"
|
929 |
|
930 |
+
#: ../lib/pz-linkcard-settings.php:793
|
931 |
msgid "Link check"
|
932 |
msgstr "リンク先のチェック"
|
933 |
|
934 |
+
#: ../lib/pz-linkcard-settings.php:796
|
935 |
msgid "SSL verification disabled"
|
936 |
msgstr "SSL検証を無効"
|
937 |
|
938 |
+
#: ../lib/pz-linkcard-settings.php:797
|
939 |
msgid "Try setting if the contents of the SSL site can not be acquired."
|
940 |
msgstr ""
|
941 |
"SSLサイトのタイトルや記事内容が取得できない場合に設定することで取得できる可能"
|
942 |
"性があります。"
|
943 |
|
944 |
+
#: ../lib/pz-linkcard-settings.php:800
|
945 |
msgid "Follow location"
|
946 |
msgstr "リダイレクト処理"
|
947 |
|
948 |
+
#: ../lib/pz-linkcard-settings.php:801
|
949 |
msgid "Track when the link destination is redirected."
|
950 |
msgstr "リンク先がリダイレクトされている場合に追跡します。"
|
951 |
|
952 |
+
#: ../lib/pz-linkcard-settings.php:804
|
953 |
msgid "Set referer"
|
954 |
msgstr "リファラーの通知"
|
955 |
|
956 |
+
#: ../lib/pz-linkcard-settings.php:805
|
957 |
msgid "Notify the article URL to the link destination."
|
958 |
msgstr "リンク先に記事のURLを知らせます。"
|
959 |
|
960 |
+
#: ../lib/pz-linkcard-settings.php:808
|
961 |
msgid "Use User-Agent"
|
962 |
msgstr "ユーザーエージェントの通知"
|
963 |
|
964 |
+
#: ../lib/pz-linkcard-settings.php:810
|
965 |
msgid "Notify using Pz-LinkCard to the link destination."
|
966 |
msgstr "リンク先にPz-LinkCardを使用していることを知らせます。"
|
967 |
|
968 |
+
#: ../lib/pz-linkcard-settings.php:815
|
969 |
msgid "Broken link checker"
|
970 |
msgstr "リンク切れチェック"
|
971 |
|
972 |
+
#: ../lib/pz-linkcard-settings.php:816
|
973 |
msgid "Alive confirmation of the link destination."
|
974 |
msgstr "リンク先がアクセスできるか定期的に確認します。"
|
975 |
|
976 |
+
#: ../lib/pz-linkcard-settings.php:821
|
977 |
msgid "Debug"
|
978 |
msgstr "詳しい人用(Debug)"
|
979 |
|
980 |
+
#: ../lib/pz-linkcard-settings.php:824
|
981 |
msgid "Trailing slash"
|
982 |
msgstr "末尾のスラッシュ"
|
983 |
|
984 |
+
#: ../lib/pz-linkcard-settings.php:828
|
985 |
msgid "As it"
|
986 |
msgstr "そのまま"
|
987 |
|
988 |
+
#: ../lib/pz-linkcard-settings.php:829
|
989 |
msgid "When only domain name, remove"
|
990 |
msgstr "ドメイン名のみのときだけ削除"
|
991 |
|
992 |
+
#: ../lib/pz-linkcard-settings.php:830
|
993 |
msgid "Always remove"
|
994 |
msgstr "常に削除"
|
995 |
|
996 |
+
#: ../lib/pz-linkcard-settings.php:836
|
997 |
msgid "specified CSS"
|
998 |
msgstr "指定したCSSを使用"
|
999 |
|
1000 |
+
#: ../lib/pz-linkcard-settings.php:837
|
1001 |
msgid "Use specified CSS file"
|
1002 |
msgstr "指定したCSSファイルを使用する"
|
1003 |
|
1004 |
+
#: ../lib/pz-linkcard-settings.php:840 ../lib/pz-linkcard-settings.php:844
|
1005 |
msgid "CSS file"
|
1006 |
msgstr "CSSファイル名"
|
1007 |
|
1008 |
+
#: ../lib/pz-linkcard-settings.php:841
|
1009 |
msgid "(ex. https://exsample.com/style.css )"
|
1010 |
msgstr "例.https://exsample.com/style.css"
|
1011 |
|
1012 |
+
#: ../lib/pz-linkcard-settings.php:848
|
1013 |
msgid "CSS URL"
|
1014 |
msgstr "CSSファイルのURL"
|
1015 |
|
1016 |
+
#: ../lib/pz-linkcard-settings.php:853
|
1017 |
msgid "Class ID to be added(for PC)"
|
1018 |
msgstr "PCのときに追加するクラス名"
|
1019 |
|
1020 |
+
#: ../lib/pz-linkcard-settings.php:857
|
1021 |
msgid "Class ID to be added(for Mobile)"
|
1022 |
msgstr "モバイルのときに追加するクラス名"
|
1023 |
|
1024 |
+
#: ../lib/pz-linkcard-settings.php:862
|
1025 |
msgid "Google AMP"
|
1026 |
msgstr ""
|
1027 |
|
1028 |
+
#: ../lib/pz-linkcard-settings.php:863
|
1029 |
msgid "Corresponds to simple display for Google AMP."
|
1030 |
msgstr "アクセスされたURLの末尾が「/amp」の場合、簡易表示に切り替える。"
|
1031 |
|
1032 |
+
#: ../lib/pz-linkcard-settings.php:867
|
1033 |
msgid "IDNA Convert"
|
1034 |
msgstr "IDNAドメインの表示"
|
1035 |
|
1036 |
+
#: ../lib/pz-linkcard-settings.php:868
|
1037 |
msgid "Convert domain name from IDNA ASCII to Unicode."
|
1038 |
msgstr ""
|
1039 |
"IDNAのASCII方式でエンコードされたドメイン名をUnicodeに変換して表示します(日"
|
1040 |
"本語ドメインなど)"
|
1041 |
|
1042 |
+
#: ../lib/pz-linkcard-settings.php:872
|
1043 |
msgid "Display link to author page"
|
1044 |
msgstr "プラグイン名を表示する"
|
1045 |
|
1046 |
+
#: ../lib/pz-linkcard-settings.php:876
|
1047 |
msgid "Plugin URL"
|
1048 |
msgstr "プラグインページURL"
|
1049 |
|
1050 |
+
#: ../lib/pz-linkcard-settings.php:880
|
1051 |
msgid "Plugin name"
|
1052 |
msgstr "プラグイン名"
|
1053 |
|
1054 |
+
#: ../lib/pz-linkcard-settings.php:884
|
1055 |
msgid "Plugin version"
|
1056 |
msgstr "プラグインバージョン"
|
1057 |
|
1058 |
+
#: ../lib/pz-linkcard-settings.php:888
|
1059 |
msgid "Saved datetime"
|
1060 |
msgstr "保存した日時"
|
1061 |
|
1062 |
+
#: ../lib/pz-linkcard-settings.php:893
|
1063 |
msgid "Display elapsed time"
|
1064 |
msgstr "実行時間の表示"
|
1065 |
|
1066 |
+
#: ../lib/pz-linkcard-settings.php:894
|
1067 |
msgid "Output the elapsed time to HTML comment."
|
1068 |
msgstr "作成にかかった時間をコメントとしてHTMLへ出力する"
|
1069 |
|
1070 |
+
#: ../lib/pz-linkcard-settings.php:900
|
1071 |
msgid "Initialize"
|
1072 |
msgstr "初期化"
|
1073 |
|
1074 |
+
#: ../lib/pz-linkcard-settings.php:903
|
1075 |
msgid "Return to the initial setting"
|
1076 |
msgstr "設定を初期状態へ戻す"
|
1077 |
|
1078 |
+
#: ../lib/pz-linkcard-settings.php:909
|
1079 |
msgid "etc"
|
1080 |
msgstr "その他"
|
1081 |
|
1082 |
+
#: ../lib/pz-linkcard-settings.php:912
|
1083 |
msgid "Author's site"
|
1084 |
msgstr "作者のサイト"
|
1085 |
|
1086 |
+
#: ../lib/pz-linkcard-settings.php:913
|
1087 |
msgid "Popozure."
|
1088 |
msgstr "ぽぽづれ。"
|
1089 |
|
1090 |
+
#: ../lib/pz-linkcard-settings.php:913
|
1091 |
msgid "Poporon's PC daily diary"
|
1092 |
msgstr "ぽぽろんのパソコンつれづれ(ズレズレ?)日記"
|
1093 |
|
1094 |
+
#: ../lib/pz-linkcard-settings.php:916
|
1095 |
msgid "Plugin's page"
|
1096 |
msgstr "プラグインのページ"
|
1097 |
|
1098 |
+
#: ../lib/pz-linkcard-settings.php:920
|
1099 |
msgid "Donation"
|
1100 |
msgstr "寄付"
|
1101 |
|
1107 |
msgid "Style sheet failed."
|
1108 |
msgstr "スタイルシートの自動生成に失敗しました。"
|
1109 |
|
1110 |
+
#~ msgid "(Trial)"
|
1111 |
+
#~ msgstr "(開発テスト中。不具合などはぜひお知らせください。)"
|
1112 |
+
|
1113 |
#~ msgid "Gray thin"
|
1114 |
#~ msgstr "薄い色/細い(1px)"
|
1115 |
|
lib/pz-linkcard-init.php
CHANGED
@@ -7,7 +7,27 @@
|
|
7 |
}
|
8 |
}
|
9 |
|
|
|
10 |
$this->options['plugin-version'] = $this->defaults['plugin-version'];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
update_option('Pz_LinkCard_options', $this->options);
|
12 |
|
13 |
$this->pz_SetStyle(); // スタイルシート生成
|
@@ -136,24 +156,6 @@
|
|
136 |
// 過去バージョンからのコンバート(次回SNS取得日時)
|
137 |
$result = $wpdb->get_results("UPDATE $this->db_name SET sns_time = uptime , sns_nexttime = nexttime WHERE sns_nexttime = 0");
|
138 |
|
139 |
-
// サムネイルのキャッシュディレクトリの用意
|
140 |
-
$wp_upload_dir = wp_upload_dir();
|
141 |
-
$thumbnail_dir = $wp_upload_dir['basedir'].'/'.$this->slug.'/cache/';
|
142 |
-
$thumbnail_url = $wp_upload_dir['baseurl'].'/'.$this->slug.'/cache/';
|
143 |
-
if (!is_dir($thumbnail_dir)) {
|
144 |
-
if (!wp_mkdir_p($thumbnail_dir)) {
|
145 |
-
$thumbnail_dir = $this->plugin_dir_path.'cache/';
|
146 |
-
$thumbnail_url = $this->plugin_dir_url .'cache/';
|
147 |
-
if (!wp_mkdir_p($file_dir)) {
|
148 |
-
$thumbnail_dir = null;
|
149 |
-
$thumbnail_url = null;
|
150 |
-
}
|
151 |
-
}
|
152 |
-
}
|
153 |
-
$this->options['thumbnail-dir'] = $thumbnail_dir;
|
154 |
-
$this->options['thumbnail-url'] = $thumbnail_url;
|
155 |
-
update_option('Pz_LinkCard_options', $this->options);
|
156 |
-
|
157 |
// WP-CRONのフック
|
158 |
wp_clear_scheduled_hook('pz_linkcard_check');
|
159 |
wp_clear_scheduled_hook('pz_linkcard_alive');
|
7 |
}
|
8 |
}
|
9 |
|
10 |
+
// 現バージョン
|
11 |
$this->options['plugin-version'] = $this->defaults['plugin-version'];
|
12 |
+
|
13 |
+
// サムネイルのキャッシュディレクトリの用意
|
14 |
+
$wp_upload_dir = wp_upload_dir();
|
15 |
+
$thumbnail_dir = $wp_upload_dir['basedir'].'/'.$this->slug.'/cache/';
|
16 |
+
$thumbnail_url = $wp_upload_dir['baseurl'].'/'.$this->slug.'/cache/';
|
17 |
+
if (!is_dir($thumbnail_dir)) {
|
18 |
+
if (!wp_mkdir_p($thumbnail_dir)) {
|
19 |
+
$thumbnail_dir = $this->plugin_dir_path.'cache/';
|
20 |
+
$thumbnail_url = $this->plugin_dir_url .'cache/';
|
21 |
+
if (!wp_mkdir_p($file_dir)) {
|
22 |
+
$thumbnail_dir = null;
|
23 |
+
$thumbnail_url = null;
|
24 |
+
}
|
25 |
+
}
|
26 |
+
}
|
27 |
+
$this->options['thumbnail-dir'] = $thumbnail_dir;
|
28 |
+
$this->options['thumbnail-url'] = $thumbnail_url;
|
29 |
+
|
30 |
+
// オプションの更新
|
31 |
update_option('Pz_LinkCard_options', $this->options);
|
32 |
|
33 |
$this->pz_SetStyle(); // スタイルシート生成
|
156 |
// 過去バージョンからのコンバート(次回SNS取得日時)
|
157 |
$result = $wpdb->get_results("UPDATE $this->db_name SET sns_time = uptime , sns_nexttime = nexttime WHERE sns_nexttime = 0");
|
158 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
159 |
// WP-CRONのフック
|
160 |
wp_clear_scheduled_hook('pz_linkcard_check');
|
161 |
wp_clear_scheduled_hook('pz_linkcard_alive');
|
lib/pz-linkcard-settings.php
CHANGED
@@ -17,7 +17,7 @@
|
|
17 |
|
18 |
if (isset($this->options['initialize']) && $this->options['initialize'] == '1') {
|
19 |
delete_option('Pz_LinkCard_options');
|
20 |
-
$this->options
|
21 |
}
|
22 |
|
23 |
$this->options['ex-image'] = stripslashes($this->options['ex-image']);
|
@@ -81,6 +81,22 @@
|
|
81 |
$color_code = preg_replace('/[^0-9a-f]/i', '', $this->options['color-excerpt']);
|
82 |
$this->options['color-excerpt'] = '#'.$color_code;
|
83 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
84 |
if ($result == true) {
|
85 |
$result = update_option('Pz_LinkCard_options', $this->options);
|
86 |
if ($result == true) {
|
@@ -171,11 +187,11 @@
|
|
171 |
|
172 |
<tr valign="top">
|
173 |
<th scope="row"><?php _e('Convert text link', $this->text_domain); ?></th>
|
174 |
-
<td><label><input name="properties[auto-atag]" type="checkbox" id="check" value="1" <?php checked(isset($this->options['auto-atag']) ? $this->options['auto-atag'] : null, 1); ?> /><?php _e('Convert lines with text link only to Linkcard.', $this->text_domain);
|
175 |
</tr>
|
176 |
<tr valign="top">
|
177 |
<th scope="row"><?php _e('Convert URL', $this->text_domain); ?></th>
|
178 |
-
<td><label><input name="properties[auto-url]" type="checkbox" id="check" value="1" <?php checked(isset($this->options['auto-url']) ? $this->options['auto-url'] : null, 1); ?> /><?php _e('Convert lines with URL only to Linkcard.', $this->text_domain);
|
179 |
</tr>
|
180 |
|
181 |
</table>
|
@@ -663,7 +679,7 @@
|
|
663 |
<th scope="row"><?php _e('Use HatenaBlogCard', $this->text_domain); ?></th>
|
664 |
<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.', $this->text_domain); _e('(Not recommended)', $this->text_domain); ?></label></td>
|
665 |
</tr>
|
666 |
-
|
667 |
<?php submit_button(); ?>
|
668 |
|
669 |
<h3><?php _e('Internal link', $this->text_domain); ?></h3>
|
@@ -780,6 +796,10 @@
|
|
780 |
|
781 |
<h3><?php _e('Link check', $this->text_domain); ?></h3>
|
782 |
<table class="form-table">
|
|
|
|
|
|
|
|
|
783 |
<tr valign="top">
|
784 |
<th scope="row"><?php _e('SSL verification disabled', $this->text_domain); ?></th>
|
785 |
<td><label><input name="properties[flg-ssl]" type="checkbox" id="check" value="1" <?php checked(isset($this->options['flg-ssl']) ? $this->options['flg-ssl'] : null, 1); ?> /><?php _e('Try setting if the contents of the SSL site can not be acquired.', $this->text_domain); ?></label></td>
|
17 |
|
18 |
if (isset($this->options['initialize']) && $this->options['initialize'] == '1') {
|
19 |
delete_option('Pz_LinkCard_options');
|
20 |
+
$this->options = $this->defaults;
|
21 |
}
|
22 |
|
23 |
$this->options['ex-image'] = stripslashes($this->options['ex-image']);
|
81 |
$color_code = preg_replace('/[^0-9a-f]/i', '', $this->options['color-excerpt']);
|
82 |
$this->options['color-excerpt'] = '#'.$color_code;
|
83 |
|
84 |
+
// サムネイルのキャッシュディレクトリの用意
|
85 |
+
$wp_upload_dir = wp_upload_dir();
|
86 |
+
$thumbnail_dir = $wp_upload_dir['basedir'].'/'.$this->slug.'/cache/';
|
87 |
+
$thumbnail_url = $wp_upload_dir['baseurl'].'/'.$this->slug.'/cache/';
|
88 |
+
if (!is_dir($thumbnail_dir)) {
|
89 |
+
$thumbnail_dir = $this->plugin_dir_path.'cache/';
|
90 |
+
$thumbnail_url = $this->plugin_dir_url .'cache/';
|
91 |
+
if (!is_dir($thumbnail_dir)) {
|
92 |
+
$thumbnail_dir = null;
|
93 |
+
$thumbnail_url = null;
|
94 |
+
}
|
95 |
+
}
|
96 |
+
$this->options['thumbnail-dir'] = $thumbnail_dir;
|
97 |
+
$this->options['thumbnail-url'] = $thumbnail_url;
|
98 |
+
|
99 |
+
// オプションの更新
|
100 |
if ($result == true) {
|
101 |
$result = update_option('Pz_LinkCard_options', $this->options);
|
102 |
if ($result == true) {
|
187 |
|
188 |
<tr valign="top">
|
189 |
<th scope="row"><?php _e('Convert text link', $this->text_domain); ?></th>
|
190 |
+
<td><label><input name="properties[auto-atag]" type="checkbox" id="check" value="1" <?php checked(isset($this->options['auto-atag']) ? $this->options['auto-atag'] : null, 1); ?> /><?php _e('Convert lines with text link only to Linkcard.', $this->text_domain); ?></label></td>
|
191 |
</tr>
|
192 |
<tr valign="top">
|
193 |
<th scope="row"><?php _e('Convert URL', $this->text_domain); ?></th>
|
194 |
+
<td><label><input name="properties[auto-url]" type="checkbox" id="check" value="1" <?php checked(isset($this->options['auto-url']) ? $this->options['auto-url'] : null, 1); ?> /><?php _e('Convert lines with URL only to Linkcard.', $this->text_domain); ?></label></td>
|
195 |
</tr>
|
196 |
|
197 |
</table>
|
679 |
<th scope="row"><?php _e('Use HatenaBlogCard', $this->text_domain); ?></th>
|
680 |
<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.', $this->text_domain); _e('(Not recommended)', $this->text_domain); ?></label></td>
|
681 |
</tr>
|
682 |
+
</table>
|
683 |
<?php submit_button(); ?>
|
684 |
|
685 |
<h3><?php _e('Internal link', $this->text_domain); ?></h3>
|
796 |
|
797 |
<h3><?php _e('Link check', $this->text_domain); ?></h3>
|
798 |
<table class="form-table">
|
799 |
+
<tr valign="top">
|
800 |
+
<th scope="row"><?php _e('Do not link at error', $this->text_domain); ?></th>
|
801 |
+
<td><label><input name="properties[flg-unlink]" type="checkbox" id="check" value="1" <?php checked(isset($this->options['flg-unlink']) ? $this->options['flg-unlink'] : null, 1); ?> /><?php _e('When access status is "403", "404", "410", unlink', $this->text_domain); ?></label></td>
|
802 |
+
</tr>
|
803 |
<tr valign="top">
|
804 |
<th scope="row"><?php _e('SSL verification disabled', $this->text_domain); ?></th>
|
805 |
<td><label><input name="properties[flg-ssl]" type="checkbox" id="check" value="1" <?php checked(isset($this->options['flg-ssl']) ? $this->options['flg-ssl'] : null, 1); ?> /><?php _e('Try setting if the contents of the SSL site can not be acquired.', $this->text_domain); ?></label></td>
|
lib/pz-linkcard-style.php
CHANGED
@@ -43,9 +43,9 @@
|
|
43 |
$file_text = str_replace('/*THUMBNAIL_POSITION*/', 'float: left;',$file_text );
|
44 |
break;
|
45 |
case 'hbc': // Hatena Blogcard
|
46 |
-
$file_text = str_replace('/*BORDER*/',
|
47 |
-
$file_text = str_replace('/*RADIUS*/',
|
48 |
-
|
49 |
break;
|
50 |
case 'ct1': // Cellophane tape center
|
51 |
$file_text = str_replace('/*WRAP*/', 'position: relative;',$file_text );
|
43 |
$file_text = str_replace('/*THUMBNAIL_POSITION*/', 'float: left;',$file_text );
|
44 |
break;
|
45 |
case 'hbc': // Hatena Blogcard
|
46 |
+
$file_text = str_replace('/*BORDER*/', 'border: 1px solid rgba(0,0,0,0.1);',$file_text );
|
47 |
+
$file_text = str_replace('/*RADIUS*/', 'border-radius: 3px; -webkit-border-radius: 3px; -moz-border-radius: 3px;',$file_text );
|
48 |
+
$file_text = str_replace('/*SHADOW*/', 'box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);', $file_text );
|
49 |
break;
|
50 |
case 'ct1': // Cellophane tape center
|
51 |
$file_text = str_replace('/*WRAP*/', 'position: relative;',$file_text );
|
pz-linkcard.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Pz-LinkCard
|
4 |
Plugin URI: http://poporon.poponet.jp/pz-linkcard
|
5 |
Description: リンクをカード形式で表示します。
|
6 |
-
Version: 2.0.
|
7 |
Author: poporon
|
8 |
Author URI: http://poporon.poponet.jp
|
9 |
License: GPLv2 or later
|
@@ -38,7 +38,7 @@ class Pz_LinkCard {
|
|
38 |
'trail-slash' => '1',
|
39 |
'border-width' => '1px',
|
40 |
'border-style' => 'solid',
|
41 |
-
'border-color' => '#
|
42 |
'width' => '500px',
|
43 |
'content-height' => '108px',
|
44 |
'margin-top' => '4px',
|
@@ -50,10 +50,10 @@ class Pz_LinkCard {
|
|
50 |
'card-bottom' => null,
|
51 |
'card-left' => null,
|
52 |
'centering' => null,
|
53 |
-
'radius' =>
|
54 |
'shadow' => '1',
|
55 |
'shadow-inset' => null,
|
56 |
-
'special-format' =>
|
57 |
'use-inline' => null,
|
58 |
'use-sitename' => '1',
|
59 |
'use-hatena' => null,
|
@@ -85,7 +85,7 @@ class Pz_LinkCard {
|
|
85 |
'outline-color-info' => '#ffffff',
|
86 |
'outline-color-plugin' => '#ffffff',
|
87 |
'ex-bgcolor' => '#ffffff',
|
88 |
-
'in-bgcolor' => '#
|
89 |
'th-bgcolor' => '#eeeeee',
|
90 |
'in-get' => null,
|
91 |
'ex-image' => '',
|
@@ -114,7 +114,8 @@ class Pz_LinkCard {
|
|
114 |
'flg-alive' => '1',
|
115 |
'flg-ssl' => '1',
|
116 |
'flg-amp' => '1',
|
117 |
-
'flg-idn' => '',
|
|
|
118 |
'style-reset-img' => '1',
|
119 |
'style' => null,
|
120 |
'css-file' => null,
|
@@ -134,7 +135,7 @@ class Pz_LinkCard {
|
|
134 |
'thumbnail-url' => null,
|
135 |
'plugin-link' => null,
|
136 |
'plugin-name' => 'Pz-LinkCard',
|
137 |
-
'plugin-version' => '2.0.
|
138 |
'plugin-url' => 'http://poporon.poponet.jp/pz-linkcard',
|
139 |
'pz-hbc-options' => null,
|
140 |
'debug-time' => null
|
@@ -599,8 +600,7 @@ class Pz_LinkCard {
|
|
599 |
}
|
600 |
|
601 |
// リンク先URL
|
602 |
-
$
|
603 |
-
if (array_search($alive_result, $not_allow_code)) {
|
604 |
// Not found の時は見え消ししてリンクしない
|
605 |
$a_op_all = '<span style="cursor: not-allowed;" title="">';
|
606 |
$a_cl_all = '</span>';
|
@@ -1007,15 +1007,15 @@ class Pz_LinkCard {
|
|
1007 |
if ( $post_id ) {
|
1008 |
$result_code = 200; // 外部取得と同じコードをセット
|
1009 |
$post = get_post($post_id); // 記事情報
|
1010 |
-
if ( $this->options['in-get'] ) {
|
1011 |
-
$title = $post->post_title; // 記事タイトル
|
1012 |
-
$excerpt = $post->post_content; // 記事内容から抜粋
|
1013 |
-
} else {
|
1014 |
$title = $post->post_title; // 記事タイトル
|
1015 |
$excerpt = $post->post_excerpt; // 抜粋文優先
|
1016 |
if ($excerpt == '') {
|
1017 |
$excerpt = $post->post_content; // 抜粋文が無かったら記事
|
1018 |
}
|
|
|
|
|
|
|
1019 |
}
|
1020 |
$thumbnail_id = get_post_thumbnail_id( $post_id ); // サムネイル
|
1021 |
if ($this->options['debug-time']) {
|
3 |
Plugin Name: Pz-LinkCard
|
4 |
Plugin URI: http://poporon.poponet.jp/pz-linkcard
|
5 |
Description: リンクをカード形式で表示します。
|
6 |
+
Version: 2.0.3
|
7 |
Author: poporon
|
8 |
Author URI: http://poporon.poponet.jp
|
9 |
License: GPLv2 or later
|
38 |
'trail-slash' => '1',
|
39 |
'border-width' => '1px',
|
40 |
'border-style' => 'solid',
|
41 |
+
'border-color' => '#888888',
|
42 |
'width' => '500px',
|
43 |
'content-height' => '108px',
|
44 |
'margin-top' => '4px',
|
50 |
'card-bottom' => null,
|
51 |
'card-left' => null,
|
52 |
'centering' => null,
|
53 |
+
'radius' => '1',
|
54 |
'shadow' => '1',
|
55 |
'shadow-inset' => null,
|
56 |
+
'special-format' => null,
|
57 |
'use-inline' => null,
|
58 |
'use-sitename' => '1',
|
59 |
'use-hatena' => null,
|
85 |
'outline-color-info' => '#ffffff',
|
86 |
'outline-color-plugin' => '#ffffff',
|
87 |
'ex-bgcolor' => '#ffffff',
|
88 |
+
'in-bgcolor' => '#f8f8f8',
|
89 |
'th-bgcolor' => '#eeeeee',
|
90 |
'in-get' => null,
|
91 |
'ex-image' => '',
|
114 |
'flg-alive' => '1',
|
115 |
'flg-ssl' => '1',
|
116 |
'flg-amp' => '1',
|
117 |
+
'flg-idn' => '1',
|
118 |
+
'flg-unlink' => '1',
|
119 |
'style-reset-img' => '1',
|
120 |
'style' => null,
|
121 |
'css-file' => null,
|
135 |
'thumbnail-url' => null,
|
136 |
'plugin-link' => null,
|
137 |
'plugin-name' => 'Pz-LinkCard',
|
138 |
+
'plugin-version' => '2.0.3',
|
139 |
'plugin-url' => 'http://poporon.poponet.jp/pz-linkcard',
|
140 |
'pz-hbc-options' => null,
|
141 |
'debug-time' => null
|
600 |
}
|
601 |
|
602 |
// リンク先URL
|
603 |
+
if ( (isset($this->options['flg-unlink']) ? true : false) && (array_search($alive_result, array('403','404','410'))) ) {
|
|
|
604 |
// Not found の時は見え消ししてリンクしない
|
605 |
$a_op_all = '<span style="cursor: not-allowed;" title="">';
|
606 |
$a_cl_all = '</span>';
|
1007 |
if ( $post_id ) {
|
1008 |
$result_code = 200; // 外部取得と同じコードをセット
|
1009 |
$post = get_post($post_id); // 記事情報
|
1010 |
+
if ( $this->options['in-get'] == '1') {
|
|
|
|
|
|
|
1011 |
$title = $post->post_title; // 記事タイトル
|
1012 |
$excerpt = $post->post_excerpt; // 抜粋文優先
|
1013 |
if ($excerpt == '') {
|
1014 |
$excerpt = $post->post_content; // 抜粋文が無かったら記事
|
1015 |
}
|
1016 |
+
} else {
|
1017 |
+
$title = $post->post_title; // 記事タイトル
|
1018 |
+
$excerpt = $post->post_content; // 記事内容から抜粋
|
1019 |
}
|
1020 |
$thumbnail_id = get_post_thumbnail_id( $post_id ); // サムネイル
|
1021 |
if ($this->options['debug-time']) {
|
readme.txt
CHANGED
@@ -155,13 +155,21 @@ A5.
|
|
155 |
5. "Write shortcode and url"
|
156 |
|
157 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
158 |
Ver2.0.2
|
159 |
* サイトアイコンのURLを取得するように修正しました。
|
160 |
Fixed: Fix to get URL of site icon.
|
161 |
* サムネイル画像、サイトアイコンが相対指定の場合に対応しました。
|
162 |
Modefied: Corresponds to relative specified URL.
|
163 |
* パラメータが誤っているときにエラーが表示されない場合があったのを修正しました。
|
164 |
-
Fixed:
|
165 |
|
166 |
Ver2.0.1.1
|
167 |
* 警告エラーが発生していたのを修正しました。
|
155 |
5. "Write shortcode and url"
|
156 |
|
157 |
== Changelog ==
|
158 |
+
Ver2.0.3
|
159 |
+
* 404エラーのときでもリンクを有効にする設定を追加しました。
|
160 |
+
Added: Added setting to enable link even on 404 error.
|
161 |
+
* 内部リンクの抜粋が取得できていなかったのを修正しました。
|
162 |
+
Fixed: Fixed an excerpt of the internal link could not be acquired.
|
163 |
+
* 外部リンクのサムネイル取得が出来なくなる不具合を修正しました。
|
164 |
+
Fixed: Fixed a bug that you can not acquire thumbnails of external links.
|
165 |
+
|
166 |
Ver2.0.2
|
167 |
* サイトアイコンのURLを取得するように修正しました。
|
168 |
Fixed: Fix to get URL of site icon.
|
169 |
* サムネイル画像、サイトアイコンが相対指定の場合に対応しました。
|
170 |
Modefied: Corresponds to relative specified URL.
|
171 |
* パラメータが誤っているときにエラーが表示されない場合があったのを修正しました。
|
172 |
+
Fixed: Fix to display error when parameter is wrong.
|
173 |
|
174 |
Ver2.0.1.1
|
175 |
* 警告エラーが発生していたのを修正しました。
|