} $input .= "<option value='{$key}' {$selectedhtml}>{$val}</option>\n"; } $input .= "</select>\n"; return $input; } public function button($label, $href, $label_class = null, $style = null) { $input = sprintf('<a class="btn btn-default" style="%s" href="%s"><i class="fa fa-pencil-square-o"></i>%s</a>', $style, $href, $label); return $input; } public function link($link) { if (empty($link['style'])) { $link['style'] = null; } $input = sprintf('<a href="%s" %s><i class="fa fa-pencil-square-o"></i> %s</a> ', $link['href'], $link['style'], $link['label']); return $input; } } $engine = new engine(); $error = new error(); $go = new go(); $input = new input(); include $engine->func('Parsedown'); $Parsedown = new Parsedown(); function random_gravatar($size = 100, $email = "") { $random_image = array('mm'); return "http://www.gravatar.com/avatar/" . md5(strtolower(trim($email))) . "?r=g&s=" . $size . "&d=" . $random_image[array_rand($random_image)]; }