Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
LLMS_Metabox_Repeater_Field::get_button()
Retrieve the HTML for the repeater add more button
Contents
Return Return
(string)
Source Source
File: includes/admin/post-types/meta-boxes/fields/llms.class.meta.box.repeater.php
$btn = $this->field['button'];
// Setup class list.
$classes = explode( ' ', $btn['classes'] );
$classes[] = sprintf( 'llms-button-%s', $btn['style'] );
$classes[] = 'llms-repeater-new-btn';
$classes = implode( ' ', $classes );
// Setup icon.
if ( $btn['icon'] && 0 === strpos( $btn['icon'], 'dashicons-' ) ) {
$icon = '<span class="dashicons ' . $btn['icon'] . '"></span> ';
} else {
$icon = $btn['icon'];
}
?>
<button class="<?php echo esc_attr( $classes ); ?>" type="button"><?php echo wp_kses_post( $icon ) . esc_html( $btn['text'] ); ?></button>
<?php
}
private function output_row( $index ) {
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 3.11.0 | Introduced. |