[WordPress]Browser Shots & AddQuicktag導入しました。

記事の中に、URLを貼付けたら、そのページを表示してくれる”Browser Shots”です。

Screenshot of www.yahoo.co.jp

ただ、WordpressやXOOPSのページは表示が出来ない。。CMS系の画面は苦手なのかな???
それとめんどくさいのが、いちいちポップアップの画面が出てくること。っで、同じ考えの人が。。
「AddQuicktag」を使いましょうという提案。

Screenshot of www.madeinthepain.com

AddQuicktagプラグインとの連動!というか、AddQuicktagにBrowser Shotsのタグを登録しちゃおうってヤツですね。

マジでこの組み合わせはb便利です!
—-
Browser Shotsに手を入れています。
というのが、標準だと、スクリーンショットをクリックすると同じウィンドウに元の画面が表示されてしまいます。
それを別ウィンドウに表示するように target=”_blank” を挿入しました。

元ソース(browser-shots/browser-shots.php)

if ( !empty( $image_uri ) ) {
$image = '<img src="' . $image_uri . '" alt="' . $alt . '" width="' . $width . '" class="alignnone" />';
return '<div class="browser-shot"><a href="' . $url . '">' . $image . '</a></div>';
}

改造後

if ( !empty( $image_uri ) ) {
$image = '<img src="' . $image_uri . '" alt="' . $alt . '" width="' . $width . '" class="alignnone" />';
return '<div class="browser-shot"><a href="' . $url . '" target="_blank">' . $image . '</a></div>';
}

コメントを残す

メールアドレスが公開されることはありません。 * が付いている欄は必須項目です