"url"), leave url empty if no url //$breadcrumbs["New Crumb"] => "http://url.com" $breadcrumbs["Misc"] = ""; include("inc/ribbon.php"); ?>
create_button('Click Me!', 'danger') ->attr('href', 'http://facebook.com')->attr('target', '_blank') ->icon('fa-gear') ->print_html(true); $btn_spinning = $_ui->create_button('', 'success') ->class(array('bg-color-green', 'txt-color-white')) ->icon('fa-refresh fa-4x fa-spin') ->print_html(true); $btn_circle = $_ui->create_button('', 'primary') ->class('btn-circle')->size('lg') ->icon('fa-check')->print_html(true); $btn_labeled = $_ui->create_button('A Labeled Button', 'success') ->icon('fa-check') ->options('labeled', true) ->print_html(true); // dropdown $items = array( 'Some action', 'Some other action', '-', array( 'content' => 'Hover me for more options', 'submenu' => array( 'Second level', array( 'content' => 'Even More..', 'submenu' => array( '3rd level', '3rd level' ) ), 'Second level', 'Second level' ) ) ); $dropdown = $_ui->create_button('Simple Dropdown') ->dropdown('items', $items)->dropdown('split', false) ->print_html(true); $dropdown_split = $_ui->create_button('Split Dropdown') ->dropdown('items', $items)->dropdown( 'split', array( // set to 'true' for defaults, or string for the type key 'type' => 'success', 'disabled' => false, 'dropup' => false, 'class' => array('class-1', 'class-2', 'class-custom'), 'attr' => array('data-custom-attr' => '12345') ) ) ->dropdown('multilevel', true) ->attr('href', 'http://twitter.com')->attr('data-custom-id', '34343') ->size(Button::BUTTON_SIZE_XSMALL) ->print_html(true); $run_time = $_ui->run_time(false); $widget = $_ui->create_widget(); $body = $btn_simple.$btn_spinning.$btn_circle.$btn_labeled.'
'.$dropdown.'
'.$dropdown_split; $widget->body('content', $body) ->header('title', '

SmartUI::Button

')->print_html(); $options = array( "editbutton" => false, "colorbutton" => false, "collapsed" => true ); // print html output $hb = new HTMLIndent(); $html_snippet = SmartUtil::clean_html_string($hb->indent($body), false); $contents = array( "body" => '
'.$html_snippet.'
', "header" => array( "icon" => 'fa fa-code', "title" => '

HTML Output (Run Time: '.$run_time.')

' ) ); $_ui->create_widget($options, $contents)->color('pink')->print_html(); ?>
parse($md); echo str_replace('