public function no_items()
 {
     $no_item_message = $this->no_item_message;
     if ($no_item_message === null) {
         parent::no_items();
     } else {
         echo $no_item_message;
     }
 }
Ejemplo n.º 2
0
 function no_items()
 {
     switch ($this->plural) {
         case 'entries':
             $s = isset($_REQUEST['s']) ? $_REQUEST['s'] : '';
             if (!empty($s)) {
                 _e('No Entries Found', 'formidable');
             } else {
                 $frm_form = new FrmForm();
                 $form_id = $this->params['form'];
                 $form = $frm_form->getOne($form_id);
                 $colspan = $this->get_column_count();
                 if ($form) {
                     include FrmAppHelper::plugin_path() . '/classes/views/frm-entries/no_entries.php';
                 }
             }
             break;
         default:
             parent::no_items();
     }
 }
 function no_items()
 {
     switch ($this->plural) {
         case 'entries':
             $s = isset($_REQUEST['s']) ? $_REQUEST['s'] : '';
             if (!empty($s)) {
                 _e('No Entries Found', 'formidable');
             } else {
                 global $frm_form;
                 $form_id = $this->params['form'];
                 $form = $frm_form->getOne($form_id);
                 $colspan = $this->get_column_count();
                 include FRM_VIEWS_PATH . '/frm-entries/no_entries.php';
             }
             break;
         case 'displays':
             _e('No Custom Displays Found.', 'formidable');
             echo ' <a href="?page=formidable-entry-templates&amp;frm_action=new" class="button-secondary">' . __('Add New', 'formidable') . '</a>';
             break;
         default:
             parent::no_items();
     }
 }