|
|
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;
}
?> |
//= esc_attr('[ays_chart id="'. $item['id'] .'"]') ?>
|
data->display_name;
echo esc_html($author_name);
}
?> |
" . $status . "";
$html .= " " . $date . " ";
// $html = "" . $date . " ";
echo wp_kses_post( $html );
?> |
|