
Last updated
1 year ago
Active installs
40+
Requires wp
5.1.1 or higher
Requires PHP
5.3 or higher
Downloads
1,605
Category
Utility
Daily downloads (last 60 days)
Overview
This plugin is used to manage and display images and links. It can be added to the widget area in WordPress for HTML output or used as a shortcode in post content. Default list structure is UL and LI, but it can be modified with arguments. Other options include changing parent-tag, child-tag, parent-class, child-class, a-class, and img-class.
*This overview was generated by AI. We can't guarantee it's accuracy and may not be an accurate representation of what the plugin actually does.
Description
このプラグインは画像とリンクを管理、表示するプラグインです。
ウィジェットを利用する
WordPressの「外観」->「ウィジェット」で「Easy Banner Link」をウィジェットエリアに追加することで、HTML出力されます。
ショートコードを利用する
投稿画面に [inx-easy-banner-link] を記載することでリスト化されたHTMLが出力されます。
デフォルトのリストはULとLIで構成されています。
引数を与えることで、リストのタグを変更したり、クラスを付与することができます。
それぞれの値は以下の通りです。
- parent-tag
- デフォルトulを他のものに変更
- child-tag
- デフォルトliを他のものに変更
- parent-class
- parent-tag に指定されたタグのクラスを付与
- child-class
- child-tag に指定されたタグのクラスを付与
- a-class
- リンク先がある場合、aタグにクラスを付与
- img-class
- imgタグにクラスを付与
ショートコード 例)
[inx-easy-banner-link parent-tag=ol child-class=inx]
出力例)
<ol class=""><li class="inx"><img class="" src="test.jpg" /></li></ol>
HTML出力を利用する
$InxEasyBannerLink->get_html() を記載することでリスト化されたHTMLが出力されます。
デフォルトのリストはULとLIで構成されています。
引数を与えることで、リストのタグを変更したり、クラスを付与することができます。
それぞれの値は上記「ショートコードを利用する」と同様です。
<?php
global $InxEasyBannerLink;
echo $InxEasyBannerLink->get_html();
?>
配列を利用する
$InxEasyBannerLink->get_list() を記載することで配列を取得できます。
- 第一引数
- 並び順を設定します(ASC or DESC)。デフォルトは ASC 。
-
第二引数
- 取得数を設定します(数値)。デフォルトは 5件。
get_list();
?>
Arbitrary section 1
Similar plugins
Recent reviews
More by inexio