'form-search-widget', 'action' => $url, 'onsubmit' => 'return false;', 'class' => 'modal-dashboard', 'enctype' => 'multipart/form-data', 'method' => 'POST', ]; $inputs = [ [ 'id' => 'search_input_widget', 'arguments' => [ 'type' => 'text', 'name' => 'search-widget', 'value' => $search, 'size' => '30', 'class' => 'search_input', 'autofocus' => true, ], ], ]; HTML::printForm( [ 'form' => $form, 'inputs' => $inputs, ] ); ui_pagination($total, '#', $offset, 9); $output = '
'; foreach ($widgets as $widget) { $urlWidgets = $config['homedir']; $urlWidgets .= '/include/lib/Dashboard/Widgets/'; $urlWidgets .= $widget['unique_name']; $urlWidgets .= '.php'; if (\file_exists($urlWidgets) === false) { continue; } $imageWidget = '/images/widgets/'.$widget['unique_name'].'.png'; $output .= '
'; $output .= '
'; $output .= \html_print_image( $imageWidget, true, [ 'id' => 'img-add-widget-'.$widget['id'], 'class' => 'img-add-widget', 'alt' => __('Add widget'), ], false, false, false, true ); $output .= '
'; $output .= '
'; $output .= $widget['description']; $output .= '
'; $output .= '
'; } $output .= '
'; echo $output;