11 public $icon =
'dashicons-info';
21 $this->widget_description = __(
'Summary of the number of visible entries out of the total results.',
'gk-gravityview' );
23 $default_values = array(
30 parent::__construct( __(
'Show Pagination Info',
'gk-gravityview' ) ,
'page_info', $default_values,
$settings );
40 if( !empty( $widget_args[
'title'] ) ) {
41 echo $widget_args[
'title'];
46 $total = $first = $last = null;
50 if( ! empty( $pagination_counts ) ) {
52 $first = $pagination_counts[
'first'];
53 $last = $pagination_counts[
'last'];
54 $total = $pagination_counts[
'total'];
56 $class = !empty( $widget_args[
'custom_class'] ) ? $widget_args[
'custom_class'] :
'';
59 $output =
'<div class="gv-widget-pagination '.$class.
'"><p>'. sprintf(__(
'Displaying %1$s - %2$s of %3$s',
'gk-gravityview' ), number_format_i18n( $first ), number_format_i18n( $last ), number_format_i18n( $total ) ) .
'</p></div>';
69 echo apply_filters(
'gravityview_pagination_output',
$output, $first, $last, $total );
static getInstance( $passed_post=NULL)
$gravityview_view
array $entry array $form array $field_settings
if(empty( $field_settings['content'])) $content