=== Pz-LinkCard === Contributors: poporon Tags: LinkCard, BlogCard, Internal Link, External Link Requires at least: 4.3 Tested up to: 5.6 Stable tag: trunk License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Donate link: https://www.amazon.co.jp/gp/registry/wishlist/2KIBQLC1VLA9X This plugin is intended to display a link in a blog card format. The goodbye to the text-only link. == Description == This plugin is intended to display a link in a blog card format. Easy to use. Just to write a short code. You can change the appearance in the `settings` screen . You can edit or delete the cache on the `manage` screen . The goodbye to the text-only link. * 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. このプラグインはショートコードでURLを指定することで、リンクをブログカード形式で表示させるものです。 外部リンクと内部リンクで、カードの色や新しくウィンドウを開くかなど、設定を変更することができます。 リンク先の情報はキャッシュされるため、ソーシャルカウント等も表示されるカード形式のリンクとしては高速に表示されます。 カード管理画面から、キャッシュされた情報の再取得や編集、削除等が行えます。 テキストにリンク設定しただけでは物足りないと感じていたら、ぜひお試しください。 ※このプラグインはサムネイルの取得やサイトアイコンの取得のためにリンク先のURLをWebAPIに送信します。また、タイトル・抜粋文をDBへ保存します。詳細は「Arbitrary section」をお読みください。 == Installation == WordPressダッシュボードからのインストール (From your WordPress dashboard) 1. 「プラグイン」→「新規追加」を選びます (Plugins menu > Add New) 2. 「Pz-LinkCard」を検索します (Search for Pz-HatenaBlogCard) 3. プラグイン名と作者を確認していただき、「今すぐインストール」を押します (Install) 4. 「有効化する」を選び、有効化します (Activate) WordPress.org からのダウンロードおよびインストール (From WordPress.org) 1. WordPress.orgのプラグイン一覧から「Pz-LinkCard」を検索します (Search "pz-linkcard" plugin from wordpress.org) 2. プラグイン名と作者を確認していただき、ダウンロードします (Download ZIP file) 3. WordPressをインストールしているディレクトリ配下の、「/wp-content/plugins」ディレクトリ配下に「pz-linkcard」ディレクトリを作成します (Upload pz-linkcard directory to the /wp-content/plugins/ directory) 4. ダウンロードしたZIPファイルを展開します 5. プラグイン一覧から「有効化」を選んで、有効化します (Activate the plugin through the 'Plugins' menu in WordPress) 新しいバージョンを有効化したら動作しなくなった場合 1. Pz-LinkCard がインストールされているディレクトリ名を変更もしくは削除します 2. WordPressダッシュボードに入ると、プラグインが無効化されたというメッセージが表示されます 3. 先ほど変更したディレクトリ名を戻します(戻してもプラグインは勝手に有効化されません) 4. 当サイトから古い安定版をダウンロードします 5. 上書きコピーを行ったあと、有効化を選んで、有効化します 6. 不具合が起きた状態や状況、テストサイトであれば、アクセスするためのURLを教えていただけると早急に修正できる場合があります == Frequently asked questions == Q1. データベースの容量を圧迫しませんか? A1. リンク先サイトのURL、タイトル、抜粋文を取得してデータベースに格納します。 URLごとに保存されるため、別の記事でも同一URLを指定した場合にデータは増えません。 結果として記事内にタイトルや抜粋文を記述してリンクを設定するのと大きな差は無いと思います。 記事からショートコードを消してもデータベースからキャッシュ情報は削除されません。 キャッシュ情報を削除する場合、カード管理画面から個別で削除してください。 また、アンインストール時にプラグインと設定内容、キャッシュ用のデータベースを削除します。 外部サイトのサムネイルに「直接取得」を指定すると、リンク先サイトの画像を取得してサイズを拡大・縮小したファイルを作成します。 画像サイズを大きくするとファイル容量が増えるのでご注意ください。 Q2. 自サイト内への記事でも新しいウィンドウで開きたいのですが? A2. 設定画面から「外部リンク」と「内部リンク」、それぞれ「新しいウィンドウで開く」のチェックボックスが用意されています。(ウィンドウとなっていますが、実際の動作はタブに読み替えてください) 普段は外部サイトは新しいウィンドウで開き、モバイルで閲覧時のみ同一ウィンドウで開くこともできます。 Q3. WordPressのピンバックがリンク先へ飛びません。 A3. WordPressピンバックは記事中にリンクを直接記述しないと飛びません。 ショートコード内にURLを記述した場合、ピンバックは飛びません。 直接URLを記述し、設定画面の「エディタ」タブから「URL行の変換」を有効にすることで対応できます。 Q4. SSLサイトの内容が取得できません。 A4. ブログサイトのcURLでアクセスを行った際にサーバー側にSSL証明書が更新されていないためにSSL検証が失敗されるためと思われます。SSL検証を行わない設定を有効にしてみてください。(非推奨) Q5. nofollowの設定は重要ですか? A5. 外部サイトにのみnofollowが設定できます。 Googleではnofollowを指定したリンク先はリンク元のサイトの評価に使用しないとしています。 通常は使用しない事をお勧めしますが、サイトの運用ポリシーによって使用する事は差し支えありません。 Q6. 直接取得にしたサムネイルの画像が粗い。 A6. 外部サイトのサムネイル直接取得は著作権法上の引用の範囲を超えることのないように低解像度(100px四方)としていました。 Ver2.1.2から200px四方に変更、Ver2.4.1から自由に指定できるように変更しました。 イラストや写真が載っているサイトの画像を高画質で取得し、ギャラリーのような形で表示した場合などは違法と判断される恐れがあります。 Q7. 「続きを読む」ボタンが表示されない。 A7. カードの「高さ」を空欄にして記事内容が全て表示されるように指定しないと表示されないことがあります。 == Screenshots == 1. "Options screen" 2. "Cache manager screen" 3. "Edit cache data" 4. "The appearance of the 'LinkCard'" 5. "Write shortcode and url" == Changelog == Ver.2.4.2.2 * 追加するCSSファイルが呼び出せていなかった不具合を修正。(Thanks @longer_n) Fixed: Fixed a bug that the additional CSS function does not work properly * CSSのURLが正しくなくてスタイルシートが適用されない不具合を修正。(Thanks @longer_n) Fixed a bug that CSS could not be read correctly Ver2.4.2.1 * 外部サイトのサムネイル画像に失敗してエラーが出てしまう不具合を修正。(Ver2.4.1で発生)(Thanks ‎@kotobatoad) Fixed: Fixed a bug that an error occurs when thumbnail images on external sites fail. * カード管理画面で外部サイトのサムネイル画像が表示されない不具合を修正。(Ver2.4.2で発生) Fixed: Fixed a bug that thumbnail images of external sites are not displayed on the card management screen. Ver2.4.2 * 設定画面の「画像」タブにて、指定した画像サイズによってはエラーが発生する不具合を修正。(Thanks @miya_gal_ossan) Fixed: Fixed image size error on settings screen * 設定画面で使用するjQueryを修正。 Fixed: Review and fix jQuery on the settings screen. * ビジュアル エディタ(クラシック エディタ)で使用するjQueryを修正。 Fixed: Review and fix jQuery in classic editor. * アンインストール時にファイルが残ったままだったのを削除するように修正。 Fixed: Fixed to delete the directory that remained at the time of uninstallation. * ドキュメント(readme.txt)修正。 Modified: Modify `readme.txt`. * 設定画面の項目名を一部修正。 Modified: Corrected the item name on the setting screen. * 設定画面の「配置」タブにて、BLOCKQUOTEの設定を非推奨に変更。 Modified: Modified blockquote setting on the setting screen to deprecated. * 設定画面の「外部リンク」タブにて、「rel="nofollow"」の設定を非推奨に変更。 Modified: Mofified nofollow setting on the setting screen to deprecated. * 設定画面の「エディタ」タブにて、ショートコード1を設定しなくてもエラーとしないように変更。 Modified: Modified shortcode to optional on the setting screen * 設定画面の設定保存等のメッセージを閉じられるように変更。 Modified: Modified to close the message on the setting screen. * 設定画面で内容が変更されていない場合、設定の保存は行わずスタイルシートの再生成のみ行うように変更。 Modified: Modified not to save if there is no change on the setting screen. * 設定画面でのカラーピッカーを表示したときに、レイアウトが崩れるのを修正。 Modified: Modified the behavior of color-picker on the setting screen. * カード管理画面の編集画面に表示される日時のフォーマットをWordPressの一般設定に合わせるように変更。 Modified: Modified date format on card management screen. * 設定を更新した時、ブラウザのキャッシュに関係無くCSSファイルを読み直すように修正。 Modified: Modified to read the CSS file again when updating the settings * facebookのシェア数が取得できないため、API利用を停止。 Modified: Suspended because the number of shares on facebook cannot be obtained. * 設定画面に「CSS」タブを追加。 Added: Added "CSS" tab to the setting screen. * 設定画面の「エラー」タブにて、URLエラーのある記事の行へのリンクを追加。 Added: Added a link to an article with an error on the settings screen. * 設定画面の「外部リンク」タブに、「rel="noopener"」の設定を追加。 Added: Added noopener setting on the setting screen. * 設定画面の「画像」タブに、キャッシュ画像のディレクトリ名と使用量の表示を追加。 Added: Added display of image usage to the setting screen. * 設定画面の「画像」タブに、キャッシュ画像のディレクトリURLの表示を追加。 Added: Added display of image directory to setting screen * 設定画面の「上級者向け」タブに、URLエラーをWordPress管理画面に表示しない設定を追加。 Added: Added a setting to hide the url error of the management screen on the setting screen. * 設定画面の「上級者向け」タブに、設定を保存した日時の表示を追加。 Added: Added the saved date to the setting screen. * 設定画面の「エディタ」タブの「ショートコード実行」の初期選択をチェック有りに変更。 Modified: Modified the initial settings. * 当バージョンへバージョンアップした際、「ショートコード実行」をチェック有りに強制変更。 Modified: Forcibly set "Do shortcode" to on. * 「ショートコード実行」がオンになっている場合の動作を「URL行の変換」もしくは「リンク行の変換」がオンになっている場合のみに変更。 Modified: Modified the condition of "Do shortcode". Ver2.4.1 * WordPress 5.6 での動作確認。 Compatible with WordPress 5.6. * 外部サイトの画像をキャッシュするときのサイズを選択できる機能を追加。(Thanks @peacediner) Added: Added settings to allow you to choose the size when caching images from external sites. Ver2.4.0 * WordPress 5.4.2 での動作確認。 Compatible with WordPress 5.4.2. * WordPress 5.5 での動作確認。 Compatible with WordPress 5.5. * WordPress 5.5.3 での動作確認。 Compatible with WordPress 5.5.3. * 記事では無いページでURL無効のエラーが出てしまうのを抑制。(Thanks @rindark , @Rina_sendai) Fixed: Suppressed incorrect error display. * サブディレクトリ型マルチサイトの判定においてエラーが出てしまうのを抑制。 Fixed: Suppressed incorrect error display. Ver2.3.1 * WordPress 5.3 での動作確認。 Compatible with WordPress 5.3. * ビジュアル エディタのボタンが表示されない不具合を修正。 Fixed a bug that the button of the visual editor is not displayed. Ver2.3.0 * プラグインなどのインストール状況によって設定画面のタブが動作しない不具合を修正。 Fixed: Fixed a bug that the tab of the setting screen does not respond. Ver2.2.9 * WordPress 5.2.3 での動作確認。 Compatible with WordPress 5.2.3. * 設定画面の「かんたん書式設定」に「コンパクト」を追加。 Added: Tiny format 'Compact'. * カード管理画面にヘルプアイコンを設置。 Added: A help icon has been added to the "Pz Card Manager" screen. * 設定画面にヘルプアイコンを設置。 Added: A help icon has been added to the "Pz Card Settings" screen. * 設定画面をタブ方式に変更。 Modified: Changed the "Pz card setting" screen to tab method. * 外部リンク、内部リンク、同ページでそれぞれ枠線の色を選択できるように機能を追加。 Added: Added settings so that you can select the border color for external links, internal links, and the same page. Ver2.2.8 * WordPressテーマ「Cocoon」を使用しているとき、外部リンクのアイコンが表示されないように修正。 Fixed: When using the WordPress theme "Cocoon", the external link icon was not displayed. * WordPressテーマ「JIN」を使用しているとき、余分な空行が表示されないように修正。 Fixed: When using the WordPress theme "JIN", it has been corrected so that extra blank lines are not displayed. * 「付加情報」をSPAN要素からDIV要素に変更。(Thanks @metro_eight) Modified: "Additional information" changed from SPAN element to DIV element. * 「シェア数」をSPAN要素からDIV要素に変更。 Modified: "Share information" changed from SPAN element to DIV element. * 「続きを読む」ボタンをSPAN要素からDIV要素に変更。 Modified: "Read more button" changed from SPAN element to DIV element. Ver2.2.7 * サイトアイコンの垂直位置(vertical-align)をテキスト下(text-bottom)から中央(middle)へ変更。 Modified: Changed the vertical position of the site icon (vertical-align) from the bottom of the text (text-bottom) to the middle (middle). * サイト追加情報をSPANタグからDIVタグへ変更。 Modified: Changed site addition information from SPAN to DIV. * 設定画面にタイトルを折り返さない設定を追加。 Added: Added a setting that does not wrap the title. * 設定画面にURLを折り返さない設定を追加。 Added: Added a setting that does not wrap the URL. * 設定画面の「文字の設定」のレイアウトを変更。 Modified: Changed the layout of "Text Settings" on the setting screen. * 設定画面の「かんたん書式設定」に「囲み」を追加。 Modified: Added tiny format "Enclose". * 設定画面の「かんたん書式設定」に「反射」を追加。 Modified: Added tiny format "Reflection". * 設定画面の「かんたん書式設定」に「セロハンテープ(斜め)」を追加。 Modified: Added tiny format "Cellophane tape (digonal)". * 設定画面の「かんたん書式設定」に「Windows 95」を追加。 Modified: Added tiny format "Windows 95". * 設定画面の「かんたん書式設定」に「Windows XP」を追加。 Modified: Added tiny format "Windows XP". * 内部リンクがキャッシュされない不具合を修正。(Thanks @Masa_s_Record) Fixed: Fixed a bug that internal links are not cached. * サイトアイコンが取得できないときに警告エラーが発生していたのを修正。 Fixed: Fixed a bug. Ver2.2.6.2 * バグ修正。 Fixed: Fixed a bug. Ver2.2.6.1 * バグ修正。 Fixed: Fixed a bug. Ver2.2.6 * 設定画面の「余白」に「40px」を追加。 Added: Added "40px" to "Margin" value. * ドメイン名(サイト名称)にマウスカーソルを重ねたときにアンダーラインが表示されないように変更。 Modified: Changed so that the underline is not displayed when the mouse cursor is moved over the domain name (site name). * 挿入ボタンを押したとき、モーダルウィンドウが開くように変更。 Modified: Changed to open a modal window when the insert button is pressed. Ver2.2.5 * 内部リンクでもnofollow指定できるように修正。 Modified: Fixed to be able to specify nofollow even for internal links. * 押しピンの画像がクリック無効になるように修正。 Modified: Fixed push pin image to be click invalid. Ver2.2.4 * WordPress 5.2.2 での動作確認。 Compatible with WordPress 5.2.2. * ショートコードごとにnofollowを追加できる機能を追加。 Added: Added the function to add nofollow per short code. * スタイルシートの取得方法を変更。 Modified: Changed style sheet acquisition method. * 内部リンクのサムネイルのURLからスキームを省略するように変更。 Modified: Changed to omit scheme from URL of internal link thumbnail. Ver2.2.3 * 設定画面にショートコードを強制的に展開する機能を追加。 Added: Added the function to forcibly expand the short code to the setting. * WordPress 5.2 での動作確認。 Compatible with WordPress 5.2. * WordPress 5.2.1 での動作確認。 Compatible with WordPress 5.2.1. Ver2.2.2.1 * ビジュアル エディタでエラーが表示されてしまうことがあるのを修正。 Fixed: Fixed a bug. Ver2.2.2 * ビジュアルエディタの挿入ボタンの仕組みを見直。 Modified: Review the mechanism of the insert button in the visual editor. Ver2.2.1 * WordPress 5.0.1 での動作確認。 Compatible with WordPress 5.0.1. * WordPress 5.0.2 での動作確認。 Compatible with WordPress 5.0.2. * WordPress 5.0.3 での動作確認。 Compatible with WordPress 5.0.3. * WordPress 5.1 での動作確認。 Compatible with WordPress 5.1. * URLエラーの解除方法のメッセージを追加。 Modified: Added a message on how to cancel the URL error. * 編集画面で警告が出ていたのを修正。 Fixed: Fix warning on edit screen. Ver2.2.0 * WordPress 5.0 での動作確認。 Compatible with WordPress 5.0. * 存在しないURLを指定したときに警告エラーが発生していたのを修正。 Fixed: Fixed a bug. * カード管理画面で警告エラーが発生していたのを修正。 Fixed: Fixed a bug. Ver2.1.9.1 * カード管理画面で警告エラーが発生していたのを修正。 Fixed: Fixed a bug. Ver2.1.9 * 相対URLを指定したときにサイトURLを補完する機能を追加。 Added: Added a function to supplement site URL when relative URL is specified. Ver2.1.8.4 * サイト情報が「なし」の場合、「続きを読む」ボタンが表示されなかったのを修正。(Thanks Andrew) Fixed: Fixed a bug that the `Read more` button is not displayed. Ver2.1.8.3 * カード管理画面で警告エラーが発生していたのを修正。(Thanks @sayataro98) Fixed: Fixed a bug. * 「続きを読む」ボタンが表示されなかったのを修正。(Thanks Andrew) Fixed: Fixed a bug that the `Read more` button is not displayed. Ver2.1.8.2 * 警告エラーが発生していたのを修正。 Fixed: Fixed a bug. Ver 2.1.8.1 * フィルターの優先度を指定するように修正。 Modified: Fix to specify filter priority. * リンク切れチェックの周期が長くなるように修正。 Modified: Correction was made so that the link break check cycle becomes longer. * 編集画面に次回のリンク切れチェック日時を表示。 Modified: The next link break check date and time was displayed on the edit screen. Ver 2.1.8 * 設定画面の「かんたん書式設定」の「Pzカード 標準書式」を「Pzカード オリジナル」に名称変更。 Modified: Minor fixes. * 設定画面の「かんたん書式設定」の「Pzカード 標準書式」を微調整。 Modified: Fine adjustment tiny format "Pz LinkCard Default". * 設定画面の「かんたん書式設定」の「見出し」を微調整。 Modified: Fine adjustment tiny format "Header". * 設定画面の「かんたん書式設定」の「シンプル」を「ノーマル(はてなブログカード風)」に名称変更。 Modified: Modified tiny format "Simple" to "Normal". * 設定画面の「かんたん書式設定」に「シンプル」を追加。 Added: Added tiny format "Simple". * 設定画面の「かんたん書式設定」の「押しピン」を微調整。 Modified: Added tiny format "Pushpin". * 設定画面のサイト情報の位置に「タイトルの上側」を追加。 Added: Added setting to set Above the title. * 設定画面の「サイト情報」を「付加情報」に修正。 Fixed: Modified "Site information" to "Added information". * カード管理画面の並び順の表示が昇順になっていたのを修正。 Fixed: Fixed a bug. * ソーシャルカウントに「Pocket」を追加。 Added: Added Pocket social count. * アンカーテキストの装飾を無効にする。 Added: Added setting to disable anchor text decoration. Ver2.1.7.1 * 設定画面の「かんたん書式設定」に「見出し」を追加。 Added: Tiny format 'Headline'. * スタイルシートを整理。 Modified: Minor fixes. Ver2.1.7 * 「外部サイト」「内部サイト」「同ページ」の判定方法を修正。 Modified: Change judgment method. * 設定画面に外部リンクのみ変換する設定を追加。(テーマに内部リンクのカード化機能がある場合を想定)(Thanks @mocochat) Added: Added 'Convert only external link'. * 文字コードを自動判断したときの結果を修正。 Modified: Minor fixes. Ver2.1.6.2 * アンカーテキストのアンダーラインが表示されてしまうのを修正。 Fixed: Fixed a bug. Ver2.1.6.1 * サイト情報を表示しないとき、ワーニングが出ていたのを修正。 Fixed: Fixed a bug.(Thanks @ryuji120912) Ver2.1.6 * 設定画面にTwitterアカウントを表示。 Added: Added 'When in trouble'. * タイトル取得(正規表現)を修正。 Modified: Fixed title acquisition method. * アンカーテキストのアンダーラインを無しに。 Modified: Changed the text-decoration to "none". Ver2.1.5 * 文字装飾を「無し」(none)に変更。 Modified: Changed the text-decoration to "none". * 設定画面の「影」の初期設定を「影を付けない」に変更。 Modified: Changed the initial setting to "Do not add shadows". * 設定画面の「角をまるめる」の初期設定を「角を丸めない」に変更。 Modified: Changed the initial setting to "Do not round". * 設定画面の外部サイトのサムネイルの初期設定を「直接取得できない場合、WebAPIを利用する」に変更。 Modified: Changed the initial setting to "Use WebAPI ,If can not direct". * 設定画面の「角をまるめる」にサイズを追加。 Modified: Square rounding has added some sizes. * 設定画面の「カードの余白」に「24px」を追加。 Modified: 24px was added to the card margin. * 設定画面のサムネイル取得WebAPIのHeartRail社の例をhttpsに変更。 Modified: Modified HeartRail API URL to support SSL. * facebookのシェア数取得APIをhttpsに変更。 Modified: Modified facebook API URL to support SSL. * Twitterのツイート数取得APIをhttpsに変更。 Modified: Modified Twitter API URL to support SSL. * Tweet(s)をクリックしたときの動作をツイート検索に変更。 Modified: From registration to search at Twitter. * User(s)をクリックしたときの動作をはてなブックマーク数表示に変更。 Modified: From registration to search at Hatena. * 設定画面の「サイト情報」から「サイト名称」と「付加情報」を別項目に変更。 Added: Add additional information. * 設定画面の「文字の設定」に「付加情報」の文字設定を追加。 Added: Add character setting of additional information. * 設定画面の「付加情報」を「見出し表示」にする設定を追加。(Thanks @hituji_1234) Added: Added setting to set additional information as heading. Ver2.1.4.2 * WordPress 4.9.8 での動作確認。 Compatible with WordPress 4.9.8. Ver2.1.4.1 * URLの記述ミスを修正。 Modified: Corresponded to URL mistake. Ver2.1.4 * CHARSETを判断できないパターンがあったのを修正。(Thanks サイノア) Fixed: There was a pattern which can not judge CHARSET, so I fixed it. * カード管理画面で「すべて」を選んだときに「内部リンク」のみが表示されていたのを修正。 Fixed: Fixed a bug in card management. Ver2.1.3.1 * WordPress 4.9.6 での動作確認。 Compatible with WordPress 4.9.6. Ver2.1.3 * WordPress管理画面のカード管理画面のサブメニュー項目の横にリンク切れの件数を表示する機能を追加。(Thanks @Oncle1316) Added: Added setting to display the number of broken links next to the submenu. Ver2.1.2.2 * 定義されていない変数を使用していたためNoriceエラーが出てしまうのを修正。 Fixed: Fixed a bug. Ver2.1.2.1 * プラグインの新規インストールもしくは停止から有効化した際にエラーが出てしまうのを修正。 Fixed: Fixed a bug. Ver2.1.2 * 直接取得サムネイルのサイズを100pxから200pxへ変更。 Fixed: Directly acquired thumbnail size was changed from 100px to 200px. * 横幅に合わせて縮小表示させるときのフォントサイズと行の高さを調整。 Fixed: Adjusted the font size and line height when reducing the display to fit the width. * URLを表示できる場所を「タイトルの下」の他に「サイト情報の後ろ」が選べるように変更。 Added: "Behind site-info" has been added as the display location of the URL. * カード管理画面に文字列検索を追加。 Added: A character string search was added to the card management screen. * カード管理画面の一括メニューに「サムネイルの再取得」を追加。 Added: "Renew thumbnail" was added to the batch menu of the card management screen. Ver2.1.1.1 * WordPress 4.9.5 での動作確認。 Compatible with WordPress 4.9.5 Ver2.1.1 * 設定画面に「続きを読む」ボタンの文字の色とサイズを追加。 Added: Added setting of color and size of "Read more". Ver2.1.0.1 * カード管理画面に「リンク切れ」の項目を追加。 Added: Added "Link broken" item to card management. * スタイルシートを読み込まないときに簡易表示するように修正。(Google AMP対応) Modified: If CSS is not loaded, display simple. * テキストエディタのクイックタグを表示するかを選択できるように設定を追加。 Added: Added settings to allow you to choose whether to display quick tags in a text editor. * ビジュアルエディタの挿入ボタンを表示するかを選択できるように設定を追加。 Added: Added settings to allow you to choose whether to display the insert button in the visual editor. * 続きを読むボタンを追加できるように修正。(Thanks @R18otomegame) Added: Added so that you can set the Read more button * 設定画面の誤記を修正。 Fixed: The mistyping was corrected. * 設定画面の設定項目を再配置。 Modified: The setting items on the setting screen have been relocated. * 設定画面にバージョン表記を追加。 Modified: Version was written on setting screen. Ver2.0.8 * WordPress 4.9.4 での動作確認。 Compatible with WordPress 4.9.4 * 設定画面の、ショートコードの表示を修正。 Fixed: Fixed so that the short code is displayed immediately on the setting screen. * 設定画面に、スタイルシートを追加できる設定を追加。 Fixed: Fix to be able to add stylesheet. * カード管理画面で警告エラーが出ていたのを修正。 Fixed: Fixed a bug. Ver2.0.7.2 * WordPress 4.9.2 での動作確認。 Compatible with WordPress 4.9.2 * 設定画面の一部が日本語表記になっていなかったのを修正。 Fixed: A part of the setting screen was not written in Japanese was fixed. Ver2.0.7.1 * バグ修正。 Fixed: Fixed a bug. Ver2.0.7 * WordPress 4.9 での動作確認。 Compatible with WordPress 4.9 * URLパラメーターが無効な場合にエラー表示する機能から一部のURLを除外。 Modified: Exclude some URLs from errors * サブディレクトリ型のマルチサイトのとき、メインサイトからサブサイトを外部リンクと判定する設定を追加。 Added: In the case of the multi-site of the subdirectory type, the site under the subdirectory is judged as an external site. Ver2.0.6 * URLパラメーターが無効な場合にエラー表示する機能を追加。 Added the function to display URL parameter. Ver2.0.5 * 内部リンクの記事ID取得が失敗した場合に外部アクセスする機能を追加。(サイト全体に負荷がかかる可能性があります) Added: If the PostID can not be acquired, the URL of the redirect destination is acquired. Ver2.0.4.1 * アクセスされたURLの末尾が「/?amp=1」だった場合に簡易表示する設定を追加。(Google AMP暫定対応) Added: Simple display if the end of URL is `/?amp=1`. * ドキュメント(readme.txt)修正。 Fixed: Fixed a typo in `readme.txt`. Ver2.0.4 * WordPress 4.8.2 での動作確認。 Compatible with WordPress 4.8.2 * 「外部リンクにはてなブログカードを使用」した際のURLを変更。 Modified: Hatena URL changed. * ショートコード記述時のURLの記述ミスに対応。 Modified: Corresponded to URL mistake. * 「押しピン」の画像を変更。 Modified: Changed the image of "push pin". * 設定画面の「かんたん書式設定」にWordPress標準ブログカード風の「スクエア」を追加。 Added: Tiny format 'Square'. * 設定画面の「サムネイルの位置」に「上側」を追加。 Added: "Upper" has been added to the position of the thumbnail. Ver2.0.3 * 404エラーのときでもリンクを有効にする設定を追加。(Thanks @toru1231) Added: Added setting to enable link even on 404 error. * 内部リンクの抜粋文が取得できていなかったのを修正。 Fixed: Fixed an excerpt of the internal link could not be acquired. * 外部リンクのサムネイル取得が出来なくなる不具合を修正。 Fixed: Fixed a bug that you can not acquire thumbnails of external links. Ver2.0.2 * サイトアイコンのURLを取得するように修正。 Fixed: Fix to get URL of site icon. * サムネイル画像、サイトアイコンが相対指定の場合に対応。 Modified: Corresponds to relative specified URL. * パラメータが誤っているときにエラーが表示されない場合があったのを修正。 Fixed: Fix to display error when parameter is wrong. Ver2.0.1.1 * 警告エラーが発生していたのを修正。 Fixed: Fixed a bug. Ver2.0.1 * 内部リンクのカテゴリーページ/タグページに対応。 Added: Supported display of category page. Ver2.0.0.3 * Ver2.0.0.2で発生した内部リンクが取得できない不具合を修正。 Fixed: Fixed a bug. Ver2.0.0.2 * 未実装のJavaScriptを呼び出し、サーバーログにエラーが出ていたのを修正。 Fixed: Fixed a bug. Ver2.0.0.1 * idn_to_utf8()が実装されていない環境でエラーが出ていたのを修正。 Fixed: Fixed a bug. Ver2.0.0 * ショートコードでURLを指定する際に「href」も使用できるように変更。(Thanks @weblearninglog) Modified: "href" was added to the parameter that specifies the URL. * 設定画面に、テキストエディタへの「クイックタグ」追加の設定を追加。(Thanks @kumasan_kenkou) Added: A quick tag was added to the text editor. * 設定画面に、ビジュアルエディタへの「リンクカード作成」ボタン追加の設定を追加。 Added: A card insertion button was added to the visual editor. * 設定画面に、テキストリンクだけが記載されている行をリンクカードに変更する機能を追加。 Added: Added the function to convert text link to card. * 設定画面に、URLだけが記載されている行をリンクカードに変更する機能を追加。(Thanks @hina01011) Added: Added the function to convert URL to card. * カード管理画面のタイトルと抜粋文を変更されている場合に太文字で表示するように変更。 Modified: Changed so that changed parts are displayed in bold letters on the card management screen. * 設定画面に、日本語ドメイン(IDNA ASCIIドメイン)に対応する設定を追加。(Thanks @ichinosecom) Added: It supports display of IDNA ASCII domain. Ver1.8.2 * スタイルシートのURLからスキームを削除。(Thanks @mataku_hair) Modified: The style sheet URL was corrected. * InstantWPで使用した場合にカード管理画面が文字化けするのを修正。(Thanks aya) Fixed: Fixed garbled characters on the management screen. * 外部サイトのサムネイルの保存ディレクトリを変更。 Modified: Changed directory to save thumbnails. * カード管理画面を狭い画面で見ると表示が崩れるのを修正。 Fixed: Fixed display collapse of the management screen. * カード管理画面の文字セットの列を非表示に変更。 Modified: The character set column of the management screen was deleted. * カード管理画面のソーシャルカウントの表示を複数列から1列に変更。 Modified: Changed the social count column of the management screen. * カード管理画面に外部サイトのサムネイル画像の表示を追加。 Modified: The thumbnail display was added to the management screen. Ver1.8.1 * WordPress 4.8 での動作確認。 Compatible with WordPress 4.8 * 内部リンクのサムネイル取得について、フルサイズの画像を取得していたのを修正。(Thanks @cstudyupdate) Fixed: Fixed a bug. Corrected the size of thumbnail to be acquired. * 設定画面の外部サイトのサムネイルの取得方法に「直接取得」が選べるように機能を追加。 Added: Added setting the direct acquisition of the thumbnail of the external site. * 設定画面の「かんたん書式設定」にはてなブログカード風の「シンプル」を追加。 Added: Tiny format 'Simple'. Ver1.8.0 * 設定画面のカラーコード入力にチェックを追加。 Added: Added color code check. * 設定画面に、アクセスされたURLの末尾が「/amp」「/amp/」だった場合に簡易表示する設定を追加。(Google AMP暫定対応)(Thanks @misoji_13) Added: Simple display if the end of URL is `/amp`. * 設定画面の「かんたん書式設定」に「押しピン」を追加。(Thanks @kautakku ) Added: Tiny format 'Pushpin'. Ver1.7.9.1 * 抜粋文の文字フォントサイズが枠線のものになってしまう不具合を修正。(Thanks @cgrio0822) Fixed: Fixed a bug. Incorrect font size of excerpt. Ver1.7.9 * キャッシュ用DBが作成されず、CPUが高負荷になってしまう不具合を修正。 Fixed: Fixed a bug that table is not created. * METAタグの名前が大文字が混ざっていると取得できなかったのを修正。(Thanks @J_kindan) * 内部リンクが取得できない時に外部アクセスしていたのが高負荷に繋がっていたため、外部アクセスしないように修正。(Thanks @J_kindan) Fixed: Fixed a high load bug Ver1.7.8 * キャッシュ用DBが作成されず、CPUが高負荷になってしまう不具合を修正。(Thanks @J_kindan) Fixed: Fixed a bug that table is not created. Ver1.7.7 * アイキャッチ画像が設定されていないテーマの場合にエラーが発生してしまうのを修正。(Thanks enomoto , sato) Fixed: Fixed a bug Ver1.7.6 * 設定画面に、用例などを追加。 Added: Add tips at settings screen * 設定画面の「かんたん書式設定」に「縫い目」を追加。(Thanks @i_tsu_tsu) Added: Tiny format 'Stitch'. * 設定画面に、サムネイル画像のサイズの設定を追加。(Thanks @misoji_13) Modified: Able to change the size of the thumbnail. Ver1.7.5 * WordPress 4.7.1 での動作確認。 Compatible with WordPress 4.7.1. * アクティベート/バージョンアップ時に重複データを削除する機能を追加。 Cleaning up garbage from the database at activation. * 設定画面の項目追加と整理。 Modified: Cleaned up the settings screen * 設定画面に用例などを追加。 Added: Add tips at settings screen * 設定画面に、サイト情報、タイトル、URL、抜粋文部分の行の高さを追加。(Thanks @keitaihoo , @ud_fibonacci) Added: Added setting. `Height` in letter. * 設定画面に、「ドメイン名のみ」以外の場合でも末尾のスラッシュを除去する設定を追加。 Added: Added setting. Trailing slash. * facebookのシェア数が取得できなくなっていたのを修正。(Thanks @i_tsu_tsu) Modified: Fixed that the number of shares of facebook could not be obtained. * カード管理画面での内部リンクの判定方法を修正。 Modified: Corrected the method of determining internal links on the Pz card management screen. * 内部リンクのキャッシュが正常に作成されない場合があったのを修正。(Thanks @i_tsu_tsu) Fixed: Fixed not being cached properly when using internal links. * 内部リンクをキャッシュから取得した場合に画像が表示されなかったのを修正。(Thanks @i_tsu_tsu) Fixed: Fixed the image not being displayed properly when using an internal link. * 設定画面に、リンク先がリダイレクトされているときに追尾するかどうかの設定を追加。(Thanks @fumieblog) Added: Added a setting so that you can choose whether to track when the link destination is redirected. * 設定画面に、リンク先がリンク切れになっているかチェックするかどうかの設定を追加。(Thanks @misoji_13) Added: Added a setting so that you can choose whether to check if the link destination is broken. * 設定画面に、リンク先がリンク切れの場合、Aタグを無効にするかどうかの設定を追加。 Added: Added a setting so that you can choose whether to disable the A tag when the link destination is broken. * WebAPIに使用しているURLのデフォルトをSSL対応のものに変更。(Thanks @fumieblog , @hareannie01) Modified: Supports SSL for WebAPI URL. Ver1.7.4 * キャッシュ用DBが作成されず、CPUが高負荷になってしまう不具合を修正。 Fixed: Fixed a bug that table is not created. Ver1.7.3 * ドメイン名が取得できていない不具合を修正。 Fixed: Fixed a bug that domain-name disappears. Ver1.7.2 * WordPress 4.6 での動作確認。 Compatible with WordPress 4.6. * 幅に合わせて縮小を有効にしたとき、サムネイルと合わせて文字サイズも小さくするように修正。(Thanks @fumieblog) Modified: Modified so as also to small character size to fit the size of screen. * カード管理画面で再取得時にソーシャルカウントが消えてしまう不具合を修正。(1.7.1で発生)(Thanks @i_tsu_tsu) Fixed: Fixed a bug that social count disappears. * 内部リンクの画像が取得できない不具合を修正。(1.7.1で発生)(Thanks @i_tsu_tsu) Fixed: Fixed a bug that thumbnail can not display. * マルチサイトへの対応方法が誤っていたため修正。(1.7.1で発生)(Thanks @kyutechnabe) Fixed: When the multi-site, fixes a bug that setting is not properly reflected. Ver1.7.1 * 記事内容がキャッシュされない不具合を修正。(Thanks @i_tsu_tsu) Fixed: Fixed a bug that article content can not be acquired. * 取得時エラーのサイトのサムネイル表示をしないように修正。(Thanks @misoji_13) Modified: Time of the error, modified so that it does not display the thumbnail. * マルチサイトへの仮対応。(Thanks @kyutechnabe) Modified: Modification of the order to respond to multi-site. Ver1.7.0 * ドメイン名のみのときに最後のスラッシュを削除する機能を追加。(Thanks @toru1231) Added: Added setting. `In the case of domain names, to ignore the trailing-slash`. * 定型書式に「小麦色」を追加。(Thanks @fumieblog) Added: Added border `Wheat'. Ver1.6.9 * WordPress 4.5.3 での動作確認。 Compatible with WordPress 4.5.3. * 設定画面で表示幅によってサムネイルを調整する「幅に合わせて縮小」を初期選択するように変更。 Modified: Scaled down to fit the screen size in setting. Default change `disabled` to `enabled`. * Twitter代替API「count.jsoon」を使用してツイート数の取得に対応。 Modified: Use an alternative API to get the Twitter count. * 内部リンクのときでWordPress標準のサイトアイコンが設定されていない場合、内部取得を選べないように修正。(Thanks @meiko2285) Fixed: Fix the method of acquiring the site icon in the internal site. * 内部リンクのときでサムネイル(アイキャッチ)が設定されていない場合、WebAPIを利用する設定を追加。(Thanks @fumieblog) Added: Added thumbnail acquisition method at the internal links. * SSL証明書の検証を無効にする機能を設定に追加。 Added: Added the ability to disable the verification of SSL certificate. * リンク切れチェック機能の追加にあたってプログラムを一部見直し。(Thanks @misoji_13) Ver1.6.8 * WordPress 4.5.2 での動作確認。 Compatible with WordPress 4.5.2. * 警告エラーが発生していたのを修正。(@junya_0606) Fixed: Fixed a notice. * 指定したリンク先によってはMETAタグを内部テーブルに展開するのに失敗してFatalエラーが出るのを修正。(Thanks @misoji_13 , @ryu-blacknd) Fixed: Fixed an error. In had failed Perth META tags. * カード管理画面のPHPショートタグを使用しないように修正。(Thanks @toru1231) Fixed: Fixed so as not to use PHP-short-tags. Ver1.6.7 * 設定画面にて、内部リンクの記事抜粋方法を選択できるように修正。(Thanks @okamurajun) Added: Added a method of article excerpt internal link in setting. Ver1.6.6 * 設定画面に「画面の幅によってサムネイルを小さくする」機能を追加。(Thanks 弁保社長) Added: Scaled down to fit the screen size in setting. Ver1.6.5 * WordPress 4.4 での動作確認。 Compatible with WordPress 4.4. * 設定画面に文字のふちどり指定を追加。(Thanks @okaerinasainet) Added: Add a border of letters in setting. * facebookのシェアURLの指定が誤っていたため修正。 Fixed: Fixed incorrect facebook API URL. Ver1.6.4 * facebookのシェア数が2以上でも1と表示されていたのを修正。(Thanks 弁保社長) Fixed: Shares of facebook has not been able to properly get. * 設定画面にリンクカードのDIV要素に任意のクラス名を設定できるように追加。(Thanks @misoji_13) Added: Grant function of any class name Ver1.6.3 * ツイッターのツイート数取得API終了に伴い、ツイート数取得処理を削除。設定画面に更新されない旨のメッセージを追加。 Modified: Correspondence associated with the end Tweets number acquiring API. * 設定画面のツイート数表示の初期選択を「表示しない」に変更。 Modified: Changed the initial selection of the number of tweets display on the setting screen to "Hide". * カード管理画面からソーシャルカウントの再取得を行ったとき、処理を二度行っていたので修正。(1.6.0で発生した不具合) Fixed: Bugfix. Ver1.6.2 * サンフランシスコ時間で11月20日を経過したが、ツイート数が取得できているので制限を一時的に解除。 Modified: Deadline of Tweets number get me grew day. Ver1.6.1 * 標準時間で11月20日を経過したが、ツイート数が取得できているので制限を一日延長。 Modified: Deadline of Tweets number get me grew day. Ver1.6.0 * リンク先の取得に wp_remote_get() を使用していたのを、cURL に変更。 Modified: Acquired without the wp_remote_get, modified to use a cURL. * charsetの取得方法を変更。 Modified: Fixed character set acquisition method. * ソーシャルカウントの取得をスケジュール方式に変更。 Modified: Fixed social count set acquisition method. * 「カード内側の余白」の設定を追加と、それに伴うCSS修正。(Thanks yunosuke) Added: Add the margins of the inner card. Ver1.1.1 * METAタグの取得方法を修正。 Fixed: Fixed to had failed parsing of meta tags. Ver1.1.0 * 2015年11月20日までのTwitter非公式API廃止に伴い、同日以降取得しないように修正。 Modified: Since November 20, 2015 , it does not use the Twitter API. * 設定画面の「新しいウィンドウで開く」をチェックボックスからリストに変更。 Modified: Change "Open in new window" from the check box to the list on the setting screen. * 設定画面の「新しいウィンドウで開く」に「モバイル以外(パソコンのみ新しいウィンドウで開く)」を追加。(Thanks @misoji_13) Added: Added "Other than mobile" to "Open in new window" on the settings screen. Ver1.0.3 * キャッシュ保存時にキーが正しく設定されないことがあったのを修正。 * カード管理画面で内部ID(連番)の表示を追加。 * 定型書式「紙がめくれる効果」を修正。(テーマによってはレイアウトが崩れる可能性があります) * 定型書式「テープと紙めくれ」を追加。(テーマによってはレイアウトが崩れる可能性があります) Ver1.0.2 * カード管理画面でキャッシュを編集したとき、一部の文字をエスケープしていなかったのを修正。 * バージョンアップの度に一部のパラメータがデフォルトに戻っていたのを修正。 * プログラム内でのキャッシュの読み書き方法の改善。 Ver1.0.1 * カード管理画面でキャッシュを編集したとき、内部IDがクリアされてしまう不具合を修正。 Ver1.0.0 * 全体的なプログラムの見直し。 * URLが空欄などの場合の対応。 * 文字エンコードまわりを修正。 * DBキャッシュまわりを修正。 * ショートコードの囲い文字の扱いの仕様変更。 * ショートコード1にのみ適用されるように修正。 * タイトルがURLになってしまう不具合修正。 * ショートコード3を解放。 * カード管理画面を修正。 * リンク先単体の「編集」「再取得」「削除」が行えるように修正。 * 一括処理に「再取得」を追加。 * 抽出条件にドメイン名を追加。 * 内部リンクのURLにもリンク(Aタグ)を追加。 * ページング機能を追加。 Ver0.1.4 * にprefixなどがあるときに、metaタグの解析に失敗していたのを修正。 * パラメータに閉じの「半角角かっこ(大かっこ)」がある場合に、URLに余分なコードが入ってしまうのを修正。 Ver0.1.3 * content=''となっているOGP情報は無視するように修正。 * metaタグ表記にシングルクォートが使われている場合でも取得できるように修正。 * 定型書式「Pzカード標準書式」を使用し、「サイト情報」を「下側」にしている場合、サイト名が見えなくなるのを修正。 * カード管理画面のセキュリティを強化。 * 設定画面の「サイト情報」の位置を追加。 * 設定画面に「サイト情報」と「記事内容」の間を区切るための「区切り線」を追加。 * サムネイル取得APIの初期設定をWordPress.comのものに変更。 * タイトルや抜粋文をパラメータ等で設定した場合にもHTML等を除去するように変更。 Ver0.1.2 * 「新しいウィンドウで開く」の設定を追加。 * カード管理画面のソート順を修正。 * facebookの表記を「f」から「fb」へ変更。 Ver0.1.1 * 公開後発見されたバグを修正。 Ver0.1.0 * 公式プラグインディレクトリでの最初の公開バージョン。 Ver0.0.1 * サイト「ぽぽづれ」内での最初の公開バージョン。 Ver0.0.0 * 途中まで作成していたバージョンを破棄。 * Pz-HatenaBlogCard ver1.2.5 を元にDBアクセス部分を移植してPz-LinkCardを作成。 * サイト「ぽぽづれ(開発環境)」での動作検証。 * サイト「ぽぽづれ」での動作検証。 == Upgrade notice == == Arbitrary section == == Display and DB cache == This plug-in one create a DB table when you have activated. ( Prefix + "pz_linkcard") Open the pages of the article when the "For the first time it appears " , and caches by obtaining the title excerpt from the linked site to the DB. Therefore , the display for the first time is slow , the second and subsequent display is fast. == Create files == CSS file are stored in a custom folder under `/wp-content/Uploads` . == Use Web API == Number of SNS share have been acquired by the JSON request. * Twitter ... https://jsoon.digitiminimi.com/twitter/count.json?url=[URL] * Facebook ... https://graph.facebook.com?fields=og_object{engagement}&id=[URL] * Hatena ... http://api.b.st-hatena.com/entry.count?url=[URL] * Pocket ... https://widgets.getpocket.com/api/saves?url=[URL] Displays using the `Google-favicon API` to get the favicon. This can be changed. Displays using the `WordPress.org mshots API` to get the thumbnail. This can be changed. == 表示とキャッシュ == このプラグインは、有効化したときにDBテーブルを一つ作成します。(プレフィックス+「pz_linkcard」) 外部リンクを設定した場合、記事のページを開いて「初めて表示された」ときに、リンク先のサイトからタイトル・抜粋文を取得してDBへキャッシュします。 カードの枚数分、外部サイトへのアクセスが発生するため多量のリンクを作成すると表示に時間がかかります。 次回の表示はDBキャッシュから行うので高速に表示を行います。 (内部でのDBアクセスが発生しますが、通常は軽微なものです。カード1枚表示のたびに、取得のために1クエリ発行します。更新が発生した場合には挿入・更新のためのクエリが1回発生します。) == ソーシャルカウントの取得 == ソーシャルカウントについては、「Twitter(ツイッター)のツイート数」「facebook(フェイスブック)のシェア数」「はてなブックマークのブックマーク数」「Pocketの登録数」の4種類に対応しています。 それぞれAPIへのJSONリクエストにより値を取得します。 バックグラウンドで取得するため、ページの表示速度には影響がありません。 取得した値はタイトルや抜粋文と同様、DBへキャッシュを行うため、直近の表示にはAPIアクセスが発生しません。 ソーシャルカウントの再取得は、最後の取得から4時間~36時間程度のランダムな時間で行います。 また、各APIについては、仕様変更やサービス終了に伴い、正常に取得できなくなる場合があります。 == 画像取得WebAPIの利用 == 設定画面からサムネイル取得のWebAPIが指定できます。 「WebAPIを利用する」にすることでページのスクリーンショット画像を取得します。 参考.画像取得APIの設定について https://popozure.info/20151004/9317 設定画面からサイトアイコン(ファビコン)取得のWebAPIが指定できます。 サイトアイコンの場所はサイトによってバリエーションが多いため、WebAPIを使用する前提となります。 正式に公開されているWebAPIでは無いため、仕様変更やサービス終了に伴い、正常に取得できなくなく場合があります。 == その他 == Pz-HatenaBlogCard からの設定引き継ぎ機能はありません。この機会に触ったことのなかった設定項目にも触れていただければ幸いです。 ショートコードを変えることで、Pz-HatenaBlogCard と併用利用することができますが、通常はリソース消費が増えるだけなので、推奨はしません。 ショートコード内にURLを記述した場合、WordPressピンバックは飛びません。 設定項目については、WordPress標準の options に設定内容を保存します。キーは「Pz-LinkCard_options」の1レコードです。 なお、アンインストールを行う際には、キャッシュを保管するDBテーブルと、options内の設定ファイルは削除されます。 アンインストール時の削除に関してはプラグインディレクトリ内の uninstall.php で行っています。