public function display()
 {
     require_once 'AddActionsAndFilters_AdminViewUrlBuilder.php';
     $urlBuilder = new AddActionsAndFilters_AdminViewUrlBuilder();
     $cleanUrl = $urlBuilder->buildUrl();
     // no action value in it
     echo '<div class="wrap">';
     // Header
     $adminUrl = get_admin_url() . 'admin.php?page=';
     printf('<table width="%s"><tbody><tr><td><a href="%s"><img src="%s"/></a></td><td align="right"><span style="white-space: nowrap;"><a href="%s"><img src="%s"/></a><a href="%s"><img src="%s"/></a></span></td></tr></tbody></table>', '100%', $cleanUrl, $this->plugin->getPluginFileUrl('img/admin-banner.png'), $adminUrl . $this->plugin->getImportExportSlug(), $this->plugin->getPluginFileUrl('img/import-export.png'), $adminUrl . $this->plugin->getSettingsSlug(), $this->plugin->getPluginFileUrl('img/settings.png'));
     printf('<table><tbody><tr><td></td></tr></tbody></table>');
     $actions = new AddActionsAndFilters_AdminPageActions();
     printf('<a href="%s%s%s%s%s" class="page-title-action">%s</a>', get_admin_url(), 'admin.php?page=', $this->plugin->getAdminPageSlug(), '&action=', $actions->getEditKey(), __('Add New'));
     // Table Styles
     echo '<style type="text/css">';
     echo '.wp-list-table .column-id { width: 7%; }';
     echo '.wp-list-table .column-enabled { width: 10%; }';
     echo '.wp-list-table .column-shortcode { width: 7%; }';
     echo '.wp-list-table .column-name { width: 25%; }';
     echo '.wp-list-table .column-capability { width: 20%; }';
     echo '.wp-list-table .column-description { width: 31%; }';
     echo '.wp-list-table .item-inactive { font-style: italic; opacity: 0.6; filter: alpha(opacity = 60); /* MSIE */ }';
     echo '</style>';
     // Form for bulk actions
     printf('<form action="%s" method="post">', $cleanUrl);
     // Search box
     $this->table->search_box('search', 'search_id');
     // Code table
     $this->table->display();
     // Closing Tags
     echo '</form>';
     echo '</div>';
 }
 /**
  * @param $item array
  * @return array
  */
 public function createRowActions($item)
 {
     require_once 'AddActionsAndFilters_AdminViewUrlBuilder.php';
     $urlBuilder = new AddActionsAndFilters_AdminViewUrlBuilder();
     $urlBuilder->setParameter('id', $item['id']);
     $rowActions = array();
     $tag = '<a href="%s">%s</a>';
     // Activate/Deactivate Action
     $action = $item['enabled'] ? $action = $this->actions->getDeactivateStrings() : ($action = $this->actions->getActivateStrings());
     $urlBuilder->setParameter('action', $action->getKey());
     $rowActions[$action->getKey()] = sprintf($tag, $urlBuilder->buildUrl(), $action->getDisplay());
     // Edit Action
     $action = $this->actions->getEditStrings();
     $urlBuilder->setParameter('action', $action->getKey());
     $rowActions[$action->getKey()] = sprintf($tag, $urlBuilder->buildUrl(), $action->getDisplay());
     // Delete Action
     $action = $this->actions->getDeleteStrings();
     $urlBuilder->setParameter('action', $action->getKey());
     $rowActions[$action->getKey()] = sprintf($tag, $urlBuilder->buildUrl(), $action->getDisplay());
     return $rowActions;
 }