"url"), leave url empty if no url //$breadcrumbs["New Crumb"] => "http://url.com" $breadcrumbs["Smart UI"] = ""; include("inc/ribbon.php"); ?>
false, ); $widget = $_ui->create_widget($options); //you can also set options this way //$widget->options = $options; //set a widget property by passing closure $widget->attr = function($widget) { return 'data-custom-attr="test" data-some-id="12341111"'; }; //set a widget property by passing an array //$widget->attr = array("data-custom-attr"=>"test", "data-some-id" => "12341111"); //set a widget property by passing string (some properties are required only to have strings) //$widget->attr = 'data-custom-attr="test" data-some-id="12341111"'; //same as attr example, you can do the same with other widget properties //$widget->header = '

Default Widget PHP

'; //Let's do some dynamic content on the header. Passing toolbar and content keys to $widget->header $widget->header = array( "icon" => 'fa-check', "toolbar" => array( array( "id" => "toolbar-id", "content" => '', "class" => 'smart-form' ), array( "attr" => array("data-cool-id" => "123454321"), "content" => '
55 %
' ), '
2.35% (Simple Toolbar)
' ), "title" => "

My PHP Widget

" ); $widget->class = "some-cool-class"; $widget->id = "my-id-here"; $widget->body = array( 'editbox'=>' Change title to update and save instantly!', 'content' => '

Hello World!

I just want to say that word in <h2>

', 'toolbar' => '
', //"class" => "no-padding" ); $result = $widget->print_html(true); $run_time = $_ui->run_time(false); echo $result; ?>
indent($result), false); $options = array( "editbutton" => false, "colorbutton" => false, "collapsed" => true ); $contents = array( "body" => '
'.$html_snippet.'
', "header" => array( "icon" => 'fa-code', "title" => '

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

' ) ); $_ui->create_widget($options, $contents)->color('pink')->print_html(); //setting with callback and chaining (Like jQuery) $widget->body("content", "This is a new value using jQuery style setup.") ->header("toolbar", '') ->header("title", "

Toolbar removed!!!

") ->color('darken', function($w) { $html_result = $w->print_html(true); $hb = new HTMLIndent(); $html_snippet = SmartUtil::clean_html_string($hb->indent($html_result), false); $w->body("content", $w->body("content").'

'.$html_snippet.'
')->print_html(); }); //plog($widget->body); ?>
parse($md); echo str_replace('