Skip to content

FriendsOfFlarum/bbcode-tabs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BBCode Tabs by FriendsOfFlarum

License Latest Stable Version OpenCollective Donate

A Flarum extension. Add tabs to your posts by using BBCode tags.

Usage

[tabs]
    [tab="hi"]Hi[/tab]
    [tab="hello"]Hello[/tab]
    [tab="lorem" fullheight=]ipsum ....[/tab]
    [tab="custom height" height="50"]custom height tab[/tab]
[/tabs]

To make a tag active by default:

[tab="[NAME]" active="[ANYTHING]"]...[/tab]
[tab name="[NAME]" active="[ANYTHING]"]...[/tab]

BBCode Tags

  • [tabs] wrapper tag with optional attributes:
    • height (optional): numeric height in pixels for tab content (height="240" -> 240px).
    • fullheight (optional): use automatic content height.
  • [tab] child tag with required and optional attributes
    • name (required): tab label text.
    • active (optional): marks that tab as initially selected.
    • height (optional): per-tab pixel height override.
    • fullheight (optional): per-tab automatic height override.

The attributes that do not require a value (active, fullheight) need to have a value, even if it is empty. Thus, just active is not valid but active= and active="..." are valid.

Installation

Install with composer:

composer require fof/bbcode-tabs:"*"

Updating

composer update fof/bbcode-tabs

Links

OpenCollective

An extension by FriendsOfFlarum.

About

Add tabs to your posts by using BBCode tags

Resources

License

Security policy

Stars

Watchers

Forks

Sponsor this project

Packages

 
 
 

Contributors