db_obj->get_items(); $all_items = CBFunctions()->get_all_charts_count(); $chart_count_per_page = count($items) > 0 ? $all_items/$this->db_obj->get_pagination_count() : 0; $chart_paged = isset($_GET['paged']) && $_GET['paged'] != '' ? absint( sanitize_text_field($_GET['paged'])) : ''; ?>

' . __( 'Add New', "chart-builder" ) . '', esc_attr( $_REQUEST['page'] ), 'add'); ?>

surveys_categories_obj->views(); ?>
surveys_categories_obj->prepare_items(); // $this->surveys_categories_obj->display(); ?> $item ): ?> 1):?>
plugin_name . '-delete-item' ); }else{ $delete_nonce = wp_create_nonce( $this->plugin_name . '-trash-item' ); } $chart_title = stripcslashes( $item['title'] ); $q = esc_attr( $chart_title ); $title = sprintf( '%s', esc_attr( $_REQUEST['page'] ), 'edit', absint( $item['id'] ), $q, stripcslashes($item['title'])); $actions = array(); if($item['status'] == 'trashed'){ $title = sprintf( '%s', $chart_title ); $actions['restore'] = sprintf( ''. __('Restore', "chart-builder") .'', esc_attr( $_REQUEST['page'] ), 'restore', absint( $item['id'] ), $delete_nonce ); $actions['delete'] = sprintf( ''. __('Delete Permanently', "chart-builder") .'', $chart_title, esc_attr( $_REQUEST['page'] ), 'delete', absint( $item['id'] ), $delete_nonce ); }else{ $draft_text = ''; if( $item['status'] == 'draft' && !( isset( $_GET['fstatus'] ) && $_GET['fstatus'] == 'draft' )){ $draft_text = ' — ' . '' . __( "Draft", "chart-builder" ) . ''; } $title = sprintf( '%s%s', esc_attr( $_REQUEST['page'] ), 'edit', absint( $item['id'] ), $q, $chart_title, $draft_text ); $actions['edit'] = sprintf( ''. __('Edit', "chart-builder") .'', esc_attr( $_REQUEST['page'] ), 'edit', absint( $item['id'] ) ); $actions['delete'] = sprintf( ''. __('Delete', "chart-builder") .'', esc_attr( $_REQUEST['page'] ), 'delete', absint( $item['id'] ), $delete_nonce ); } echo wp_kses_post($title); echo '

'; foreach ( $actions as $action => $action_html ){ $link_class = ''; if( $action == 'delete' ){ $link_class = 'link-danger'; } echo '' . $action_html . ''; } echo '

'; ?>
"; echo "" . __('Bar Chart', "chart-builder") . "

"; break; case 'pie_chart': echo "

"; echo "" . __('Pie Chart', "chart-builder") . "

"; break; case 'column_chart': echo "

"; echo "" . __('Column Chart', "chart-builder") . "

"; break; } ?>
">
" />
data->display_name; echo esc_html($author_name); } ?> " . $status . "

"; $html .= "

" . $date . "

"; // $html = "

" . $date . "

"; echo wp_kses_post( $html ); ?>

' . __( 'Add New', "chart-builder" ) . '', esc_attr( $_REQUEST['page'] ), 'add'); ?>