Copyright (C) 2010 - 2019 All Rights Reserved. Contributor(s): Mark J Crane */ if (!class_exists('button')) { class button { static function create($array) { $button_icons = $_SESSION['theme']['button_icons']['text'] != '' ? $_SESSION['theme']['button_icons']['text'] : 'auto'; //button: open $button = ""; //link if ($array['link']) { $button = "".$button.""; } return $button; unset($button); } } } /* //usage example (all possible options) echo button::create(['type'=>'button','label'=>$label,'icon'=>'icon','name'=>'btn','id'=>'btn','value'=>'value','link'=>'url','target'=>'_blank','onclick'=>'action','class'=>'name','style'=>'css','title'=>'title']); */ ?>