内容をスキップ
  • ログイン
  • 登録
WordPress.org

日本語

  • テーマ
  • プラグイン
  • ニュース
  • サポート
    • ドキュメンテーション
    • フォーラム
  • 概要
  • 参加・貢献
  • このサイトについて
  • WordPress を入手
WordPress を入手

プラグイン

  • お気に入り
  • ベータテスト
  • 開発者

このプラグインは WordPress の最新3回のメジャーリリースに対してテストされていません。もうメンテナンスやサポートがされていないかもしれず、最新バージョンの WordPress で使用した場合は互換性の問題が発生する可能性があります。

ダウンロード

Logged In Conditional Text Widget

作者: Paul Gregory
  • 詳細
  • レビュー
  • インストール
  • 開発
サポート

説明

Adds three widgets – “Text/List”, “Text/List (If Logged In)” and “Text/List (Not Logged In)”. These can be used much like the normal Text widget, except two of them only display if the condition is met.

Potential Uses:
* Add a link to a Register page, along with some text promoting registration (for example on a site with the bbPress plugin)
* Display adverts to users who are not logged in
* Display useful links to users who are logged in.
* Display a nice list to everyone.

Because the widgets are separate, you can have the logged-in widget in a different place to a logged-out widget. You don’t even have to have pairs of widgets.

Unlike the normal Text widget which just has a toggle for paragraph on/off, this widget has four display options:

  • No formatting
  • Add paragraphs
  • Bullet list (ul)
  • Numbered list (ol)

The list options are useful if you are adding a number of links – simply add each one on a new line and they’ll be turned into a bullet. Please note that this plugin adds no CSS. Often themes style the lists within a widget to make menus look nice, so your theme may (for example) prevent numbers from showing. See FAQ.

You may find that the Text/List widget is useful even without the logged-in / logged-out conditional.

スクリーンショット

  • The "Text (If Logged In)" widget

インストール

There isn’t much to do.

  1. Upload logged-in-conditional-text-widget.php to the /wp-content/plugins/ directory (or install via Add Plugins – search for Logged In Conditional Text Widget or author Paul Gregory)
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Go to Widgets where you’ll see three new widgets: “Text/List (If Logged In)”, “Text/List (Not Logged In)”, “Text/List”.
  4. Add and configure widget instances in the normal way.
  5. You may need to tweak your theme’s CSS to get numbered lists to show as desired. See FAQ. The UL and OL have a class of ‘textlistconditional’ which you can target if required.

FAQ

Why doesn’t my numbered list have numbers?

Most likely, your theme is overriding the default styling of the LI (list item) element so that the number/bullet is hidden. This plugin does not include any CSS. However, the UL and OL have a class of ‘textlistconditional’ which you can target if required in your theme’s CSS.

What about internationalisation?

All text strings are in the pgloggedintext domain. If you’d like to submit a translation, please do.

評価

Working Perfect

convictedvapour 2016年9月3日
As described and works perfectly on WordPress and BuddyPress. Thanks you a life saver!
1件のレビューをすべて表示

貢献者と開発者

Logged In Conditional Text Widget はオープンソースソフトウェアです。以下の人々がこのプラグインに貢献しています。

貢献者
  • Paul Gregory

“Logged In Conditional Text Widget” をあなたの言語に翻訳しましょう。

開発に興味がありますか ?

コードを閲覧するか、SVN リポジトリをチェックするか、開発ログを RSS で購読してみてください。

変更履歴

0.9.3

  • Readme changes

0.9.2

  • Logged in and Logged Out reuse same widget code, actually from the new third type which is a text widget without conditions.
  • Shows title in editor when widget minimised
  • Some labelling changes, e.g. now “Text/List”.
  • Allows shortcodes
  • Class on the UL and OL to assist CSS targeting

0.9.1

  • Bugfix release (2014).

0.9

  • First release (2011)

メタ

  • バージョン: 0.9.2
  • 最終更新日: 9年前
  • 有効インストール数: 20+
  • WordPress バージョン: 2.8またはそれ以降
  • 検証済み最新バージョン: 3.7.41
  • 言語:
    English (US)
  • タグ:
    conditionalloginregisterwidget
  • 詳細を表示

評価

すべて表示
  • 5つ星 1
  • 4つ星 0
  • 3つ星 0
  • 2つ星 0
  • 1つ星 0
レビューを申請するにはログインしてください。

貢献者

  • Paul Gregory

サポート

意見や質問がありますか ?

サポートフォーラムを表示

寄付

このプラグインが今後も改善できるよう応援しませんか ?

このプラグインに寄付

  • WordPress とは
  • ニュース
  • ホスティング
  • 寄付
  • Swag
  • ドキュメンテーション
  • 開発者
  • 参加・貢献
  • Learn
  • ショーケース
  • プラグイン
  • テーマ
  • パターン
  • WordCamp
  • WordPress.TV
  • BuddyPress
  • bbPress
  • WordPress.com
  • マット・マレンウェッグ
  • プライバシー
  • 公開コード
WordPress.org
WordPress.org

日本語

  • Facebook ページへ
  • Twitter アカウントへ
  • Instagram アカウントへ
  • LinkedIn アカウントへ
Code is Poetry.