-
Notifications
You must be signed in to change notification settings - Fork 6
Custom Links Buttons
Patrick Garske edited this page Jan 26, 2019
·
1 revision
element
- Defines the link style. Valid options are:
-
badge
- Badge, most commonly used as Notification display -
pill
- Rounded Badge -
button
- Regular button -
button-sm
- Small button -
button-lg
- Big button -
outline-button
- Regular outline colored button -
outline-button-sm
- Small outline colored button -
outline-button-lg
- Big outline colored button -
button-block
- Regular block button -
button-block-sm
- Small block button -
button-block-lg
- Big block button
links_to
- Defines the URL where the user is taken after clicking the button
content
- Defines the button's label
style
- Alters the appearance and color of the button. Valid options are all bootstrap color identifiers: primary
, secondary
, success
, danger
, warning
, info
, light
and dark
disabled
- If set to true
, the button will be grayed out and cannot be pressed.
echo custom_link("badge", "https://github.com/amazonshitcarshow/BootstraPHP", "Visit our GitHub", "info", no_arg());
echo custom_link("button-block-sm", "https://en.wikipedia.org/wiki/BootstraPHP", "Small Block Button", "primary", no_arg());
echo custom_link("button-block-lg", "#", "Large Block Button", "secondary", no_arg());
echo custom_link("outline-button", "#", "Outline Button", "success", no_arg());
echo custom_link("pill", "#", "Blue Pill", "primary", no_arg());
echo custom_link("pill", "#", "Red Pill", "danger", no_arg());