@@ -21,16 +21,16 @@ |
||
21 | 21 | $settings = array( |
22 | 22 | 'slug' => 'list', |
23 | 23 | 'type' => 'preset', |
24 | - 'label' => __( 'Job Board', 'gravityview' ), |
|
25 | - 'description' => __( 'Post available jobs in a simple job board.', 'gravityview' ), |
|
26 | - 'logo' => plugins_url( 'includes/presets/job-board/logo-job-board.png', GRAVITYVIEW_FILE ), |
|
24 | + 'label' => __('Job Board', 'gravityview'), |
|
25 | + 'description' => __('Post available jobs in a simple job board.', 'gravityview'), |
|
26 | + 'logo' => plugins_url('includes/presets/job-board/logo-job-board.png', GRAVITYVIEW_FILE), |
|
27 | 27 | 'preview' => 'http://demo.gravityview.co/blog/view/job-board/', |
28 | - 'preset_form' => GRAVITYVIEW_DIR . 'includes/presets/job-board/form-job-board.xml', |
|
29 | - 'preset_fields' => GRAVITYVIEW_DIR . 'includes/presets/job-board/fields-job-board.xml' |
|
28 | + 'preset_form' => GRAVITYVIEW_DIR.'includes/presets/job-board/form-job-board.xml', |
|
29 | + 'preset_fields' => GRAVITYVIEW_DIR.'includes/presets/job-board/fields-job-board.xml' |
|
30 | 30 | |
31 | 31 | ); |
32 | 32 | |
33 | - parent::__construct( $id, $settings ); |
|
33 | + parent::__construct($id, $settings); |
|
34 | 34 | } |
35 | 35 | } |
36 | 36 |
@@ -21,15 +21,15 @@ |
||
21 | 21 | $settings = array( |
22 | 22 | 'slug' => 'list', |
23 | 23 | 'type' => 'preset', |
24 | - 'label' => __( 'People Profiles', 'gravityview' ), |
|
25 | - 'description' => __( 'List people with individual profiles.', 'gravityview' ), |
|
26 | - 'logo' => plugins_url( 'includes/presets/profiles/logo-profiles.png', GRAVITYVIEW_FILE ), |
|
24 | + 'label' => __('People Profiles', 'gravityview'), |
|
25 | + 'description' => __('List people with individual profiles.', 'gravityview'), |
|
26 | + 'logo' => plugins_url('includes/presets/profiles/logo-profiles.png', GRAVITYVIEW_FILE), |
|
27 | 27 | 'preview' => 'http://demo.gravityview.co/blog/view/people-profiles/', |
28 | - 'preset_form' => GRAVITYVIEW_DIR . 'includes/presets/profiles/form-profiles.xml', |
|
29 | - 'preset_fields' => GRAVITYVIEW_DIR . 'includes/presets/profiles/fields-profiles.xml' |
|
28 | + 'preset_form' => GRAVITYVIEW_DIR.'includes/presets/profiles/form-profiles.xml', |
|
29 | + 'preset_fields' => GRAVITYVIEW_DIR.'includes/presets/profiles/fields-profiles.xml' |
|
30 | 30 | ); |
31 | 31 | |
32 | - parent::__construct( $id, $settings ); |
|
32 | + parent::__construct($id, $settings); |
|
33 | 33 | |
34 | 34 | } |
35 | 35 | } |
@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | */ |
14 | 14 | |
15 | 15 | // Load default templates |
16 | -add_action( 'init', 'gravityview_register_default_templates', 11 ); |
|
16 | +add_action('init', 'gravityview_register_default_templates', 11); |
|
17 | 17 | |
18 | 18 | /** |
19 | 19 | * Registers the default templates |
@@ -23,19 +23,19 @@ discard block |
||
23 | 23 | /** @define "GRAVITYVIEW_DIR" "../../" */ |
24 | 24 | |
25 | 25 | // The abstract class required by all template files. |
26 | - require_once GRAVITYVIEW_DIR . 'includes/class-gravityview-template.php'; |
|
26 | + require_once GRAVITYVIEW_DIR.'includes/class-gravityview-template.php'; |
|
27 | 27 | |
28 | - $path = GRAVITYVIEW_DIR . 'includes/presets/'; |
|
29 | - include_once $path . 'default-table/class-gravityview-default-template-table.php'; |
|
30 | - include_once $path . 'default-list/class-gravityview-default-template-list.php'; |
|
31 | - include_once $path . 'default-edit/class-gravityview-default-template-edit.php'; |
|
32 | - include_once $path . 'business-listings/class-gravityview-preset-business-listings.php'; |
|
33 | - include_once $path . 'business-data/class-gravityview-preset-business-data.php'; |
|
34 | - include_once $path . 'profiles/class-gravityview-preset-profiles.php'; |
|
35 | - include_once $path . 'staff-profiles/class-gravityview-preset-staff-profiles.php'; |
|
36 | - include_once $path . 'website-showcase/class-gravityview-preset-website-showcase.php'; |
|
37 | - include_once $path . 'issue-tracker/class-gravityview-preset-issue-tracker.php'; |
|
38 | - include_once $path . 'resume-board/class-gravityview-preset-resume-board.php'; |
|
39 | - include_once $path . 'job-board/class-gravityview-preset-job-board.php'; |
|
40 | - include_once $path . 'event-listings/class-gravityview-preset-event-listings.php'; |
|
28 | + $path = GRAVITYVIEW_DIR.'includes/presets/'; |
|
29 | + include_once $path.'default-table/class-gravityview-default-template-table.php'; |
|
30 | + include_once $path.'default-list/class-gravityview-default-template-list.php'; |
|
31 | + include_once $path.'default-edit/class-gravityview-default-template-edit.php'; |
|
32 | + include_once $path.'business-listings/class-gravityview-preset-business-listings.php'; |
|
33 | + include_once $path.'business-data/class-gravityview-preset-business-data.php'; |
|
34 | + include_once $path.'profiles/class-gravityview-preset-profiles.php'; |
|
35 | + include_once $path.'staff-profiles/class-gravityview-preset-staff-profiles.php'; |
|
36 | + include_once $path.'website-showcase/class-gravityview-preset-website-showcase.php'; |
|
37 | + include_once $path.'issue-tracker/class-gravityview-preset-issue-tracker.php'; |
|
38 | + include_once $path.'resume-board/class-gravityview-preset-resume-board.php'; |
|
39 | + include_once $path.'job-board/class-gravityview-preset-job-board.php'; |
|
40 | + include_once $path.'event-listings/class-gravityview-preset-event-listings.php'; |
|
41 | 41 | } |
42 | 42 | \ No newline at end of file |
@@ -21,15 +21,15 @@ |
||
21 | 21 | $settings = array( |
22 | 22 | 'slug' => 'table', |
23 | 23 | 'type' => 'preset', |
24 | - 'label' => __( 'Resume Board', 'gravityview' ), |
|
25 | - 'description' => __( 'Allow job-seekers to post their resumes.', 'gravityview' ), |
|
26 | - 'logo' => plugins_url( 'includes/presets/resume-board/logo-resume-board.png', GRAVITYVIEW_FILE ), |
|
24 | + 'label' => __('Resume Board', 'gravityview'), |
|
25 | + 'description' => __('Allow job-seekers to post their resumes.', 'gravityview'), |
|
26 | + 'logo' => plugins_url('includes/presets/resume-board/logo-resume-board.png', GRAVITYVIEW_FILE), |
|
27 | 27 | 'preview' => 'http://demo.gravityview.co/blog/view/resume-board/', |
28 | - 'preset_form' => GRAVITYVIEW_DIR . 'includes/presets/resume-board/form-resume-board.xml', |
|
29 | - 'preset_fields' => GRAVITYVIEW_DIR . 'includes/presets/resume-board/fields-resume-board.xml' |
|
28 | + 'preset_form' => GRAVITYVIEW_DIR.'includes/presets/resume-board/form-resume-board.xml', |
|
29 | + 'preset_fields' => GRAVITYVIEW_DIR.'includes/presets/resume-board/fields-resume-board.xml' |
|
30 | 30 | ); |
31 | 31 | |
32 | - parent::__construct( $id, $settings ); |
|
32 | + parent::__construct($id, $settings); |
|
33 | 33 | |
34 | 34 | } |
35 | 35 | } |
@@ -21,15 +21,15 @@ |
||
21 | 21 | $settings = array( |
22 | 22 | 'slug' => 'list', |
23 | 23 | 'type' => 'preset', |
24 | - 'label' => __( 'Staff Profiles', 'gravityview' ), |
|
25 | - 'description' => __( 'List members of your team.', 'gravityview' ), |
|
26 | - 'logo' => plugins_url( 'includes/presets/staff-profiles/logo-staff-profiles.png', GRAVITYVIEW_FILE ), |
|
24 | + 'label' => __('Staff Profiles', 'gravityview'), |
|
25 | + 'description' => __('List members of your team.', 'gravityview'), |
|
26 | + 'logo' => plugins_url('includes/presets/staff-profiles/logo-staff-profiles.png', GRAVITYVIEW_FILE), |
|
27 | 27 | 'preview' => 'http://demo.gravityview.co/blog/view/staff-profiles/', |
28 | - 'preset_form' => GRAVITYVIEW_DIR . 'includes/presets/staff-profiles/form-staff-profiles.xml', |
|
29 | - 'preset_fields' => GRAVITYVIEW_DIR . 'includes/presets/staff-profiles/fields-staff-profiles.xml', |
|
28 | + 'preset_form' => GRAVITYVIEW_DIR.'includes/presets/staff-profiles/form-staff-profiles.xml', |
|
29 | + 'preset_fields' => GRAVITYVIEW_DIR.'includes/presets/staff-profiles/fields-staff-profiles.xml', |
|
30 | 30 | ); |
31 | 31 | |
32 | - parent::__construct( $id, $settings ); |
|
32 | + parent::__construct($id, $settings); |
|
33 | 33 | |
34 | 34 | } |
35 | 35 | } |
@@ -21,15 +21,15 @@ |
||
21 | 21 | $settings = array( |
22 | 22 | 'slug' => 'list', |
23 | 23 | 'type' => 'preset', |
24 | - 'label' => __( 'Website Showcase', 'gravityview' ), |
|
25 | - 'description' => __( 'Feature submitted websites with screenshots.', 'gravityview' ), |
|
26 | - 'logo' => plugins_url( 'includes/presets/website-showcase/logo-website-showcase.png', GRAVITYVIEW_FILE ), |
|
24 | + 'label' => __('Website Showcase', 'gravityview'), |
|
25 | + 'description' => __('Feature submitted websites with screenshots.', 'gravityview'), |
|
26 | + 'logo' => plugins_url('includes/presets/website-showcase/logo-website-showcase.png', GRAVITYVIEW_FILE), |
|
27 | 27 | 'preview' => 'http://demo.gravityview.co/blog/view/website-showcase/', |
28 | - 'preset_form' => GRAVITYVIEW_DIR . 'includes/presets/website-showcase/form-website-showcase.xml', |
|
29 | - 'preset_fields' => GRAVITYVIEW_DIR . 'includes/presets/website-showcase/fields-website-showcase.xml' |
|
28 | + 'preset_form' => GRAVITYVIEW_DIR.'includes/presets/website-showcase/form-website-showcase.xml', |
|
29 | + 'preset_fields' => GRAVITYVIEW_DIR.'includes/presets/website-showcase/fields-website-showcase.xml' |
|
30 | 30 | ); |
31 | 31 | |
32 | - parent::__construct( $id, $settings ); |
|
32 | + parent::__construct($id, $settings); |
|
33 | 33 | |
34 | 34 | } |
35 | 35 | } |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | |
18 | 18 | function __construct() { |
19 | 19 | |
20 | - $this->widget_description = __('Insert custom text or HTML as a widget', 'gravityview' ); |
|
20 | + $this->widget_description = __('Insert custom text or HTML as a widget', 'gravityview'); |
|
21 | 21 | |
22 | 22 | $default_values = array( |
23 | 23 | 'header' => 1, |
@@ -27,8 +27,8 @@ discard block |
||
27 | 27 | $settings = array( |
28 | 28 | 'content' => array( |
29 | 29 | 'type' => 'textarea', |
30 | - 'label' => __( 'Custom Content', 'gravityview' ), |
|
31 | - 'desc' => __( 'Enter text or HTML. Also supports shortcodes.', 'gravityview' ), |
|
30 | + 'label' => __('Custom Content', 'gravityview'), |
|
31 | + 'desc' => __('Enter text or HTML. Also supports shortcodes.', 'gravityview'), |
|
32 | 32 | 'value' => '', |
33 | 33 | 'class' => 'code', |
34 | 34 | 'merge_tags' => false, |
@@ -36,58 +36,58 @@ discard block |
||
36 | 36 | ), |
37 | 37 | 'wpautop' => array( |
38 | 38 | 'type' => 'checkbox', |
39 | - 'label' => __( 'Automatically add paragraphs to content', 'gravityview' ), |
|
40 | - 'tooltip' => __( 'Wrap each block of text in an HTML paragraph tag (recommended for text).', 'gravityview' ), |
|
39 | + 'label' => __('Automatically add paragraphs to content', 'gravityview'), |
|
40 | + 'tooltip' => __('Wrap each block of text in an HTML paragraph tag (recommended for text).', 'gravityview'), |
|
41 | 41 | 'value' => '', |
42 | 42 | ), |
43 | 43 | ); |
44 | 44 | |
45 | - parent::__construct( __( 'Custom Content', 'gravityview' ) , 'custom_content', $default_values, $settings ); |
|
45 | + parent::__construct(__('Custom Content', 'gravityview'), 'custom_content', $default_values, $settings); |
|
46 | 46 | } |
47 | 47 | |
48 | - public function render_frontend( $widget_args, $content = '', $context = '') { |
|
48 | + public function render_frontend($widget_args, $content = '', $context = '') { |
|
49 | 49 | |
50 | - if( !$this->pre_render_frontend() ) { |
|
50 | + if (!$this->pre_render_frontend()) { |
|
51 | 51 | return; |
52 | 52 | } |
53 | 53 | |
54 | - if( !empty( $widget_args['title'] ) ) { |
|
54 | + if (!empty($widget_args['title'])) { |
|
55 | 55 | echo $widget_args['title']; |
56 | 56 | } |
57 | 57 | |
58 | 58 | |
59 | 59 | // Make sure the class is loaded in DataTables |
60 | - if( !class_exists( 'GFFormDisplay' ) ) { |
|
61 | - include_once( GFCommon::get_base_path() . '/form_display.php' ); |
|
60 | + if (!class_exists('GFFormDisplay')) { |
|
61 | + include_once(GFCommon::get_base_path().'/form_display.php'); |
|
62 | 62 | } |
63 | 63 | |
64 | - $widget_args['content'] = trim( rtrim( $widget_args['content'] ) ); |
|
64 | + $widget_args['content'] = trim(rtrim($widget_args['content'])); |
|
65 | 65 | |
66 | 66 | // No custom content |
67 | - if( empty( $widget_args['content'] ) ) { |
|
68 | - do_action('gravityview_log_debug', sprintf( '%s[render_frontend]: No content.', get_class($this)) ); |
|
67 | + if (empty($widget_args['content'])) { |
|
68 | + do_action('gravityview_log_debug', sprintf('%s[render_frontend]: No content.', get_class($this))); |
|
69 | 69 | return; |
70 | 70 | } |
71 | 71 | |
72 | 72 | // Add paragraphs? |
73 | - if( !empty( $widget_args['wpautop'] ) ) { |
|
74 | - $widget_args['content'] = wpautop( $widget_args['content'] ); |
|
73 | + if (!empty($widget_args['wpautop'])) { |
|
74 | + $widget_args['content'] = wpautop($widget_args['content']); |
|
75 | 75 | } |
76 | 76 | |
77 | 77 | $content = $widget_args['content']; |
78 | 78 | |
79 | - $content = GravityView_Merge_Tags::replace_variables( $content ); |
|
79 | + $content = GravityView_Merge_Tags::replace_variables($content); |
|
80 | 80 | |
81 | 81 | // Enqueue scripts needed for Gravity Form display, if form shortcode exists. |
82 | 82 | // Also runs `do_shortcode()` |
83 | - $content = GFCommon::gform_do_shortcode( $content ); |
|
83 | + $content = GFCommon::gform_do_shortcode($content); |
|
84 | 84 | |
85 | 85 | |
86 | 86 | // Add custom class |
87 | - $class = !empty( $widget_args['custom_class'] ) ? $widget_args['custom_class'] : ''; |
|
88 | - $class = gravityview_sanitize_html_class( $class ); |
|
87 | + $class = !empty($widget_args['custom_class']) ? $widget_args['custom_class'] : ''; |
|
88 | + $class = gravityview_sanitize_html_class($class); |
|
89 | 89 | |
90 | - echo '<div class="gv-widget-custom-content '.$class.'">'. $content .'</div>'; |
|
90 | + echo '<div class="gv-widget-custom-content '.$class.'">'.$content.'</div>'; |
|
91 | 91 | |
92 | 92 | } |
93 | 93 |
@@ -11,38 +11,38 @@ discard block |
||
11 | 11 | |
12 | 12 | function __construct() { |
13 | 13 | |
14 | - $this->widget_description = __('Links to multiple pages of results.', 'gravityview' ); |
|
14 | + $this->widget_description = __('Links to multiple pages of results.', 'gravityview'); |
|
15 | 15 | |
16 | - $default_values = array( 'header' => 1, 'footer' => 1 ); |
|
17 | - $settings = array( 'show_all' => array( |
|
16 | + $default_values = array('header' => 1, 'footer' => 1); |
|
17 | + $settings = array('show_all' => array( |
|
18 | 18 | 'type' => 'checkbox', |
19 | - 'label' => __( 'Show each page number', 'gravityview' ), |
|
19 | + 'label' => __('Show each page number', 'gravityview'), |
|
20 | 20 | 'desc' => __('Show every page number instead of summary (eg: 1 2 3 ... 8 »)', 'gravityview'), |
21 | 21 | 'value' => false |
22 | 22 | )); |
23 | - parent::__construct( __( 'Page Links', 'gravityview' ) , 'page_links', $default_values, $settings ); |
|
23 | + parent::__construct(__('Page Links', 'gravityview'), 'page_links', $default_values, $settings); |
|
24 | 24 | |
25 | 25 | } |
26 | 26 | |
27 | - public function render_frontend( $widget_args, $content = '', $context = '') { |
|
27 | + public function render_frontend($widget_args, $content = '', $context = '') { |
|
28 | 28 | $gravityview_view = GravityView_View::getInstance(); |
29 | 29 | |
30 | - if( !$this->pre_render_frontend() ) { |
|
30 | + if (!$this->pre_render_frontend()) { |
|
31 | 31 | return; |
32 | 32 | } |
33 | 33 | |
34 | 34 | $page_size = $gravityview_view->paging['page_size']; |
35 | 35 | $total = $gravityview_view->total_entries; |
36 | 36 | |
37 | - $atts = shortcode_atts( array( |
|
38 | - 'show_all' => !empty( $this->settings['show_all']['default'] ), |
|
39 | - ), $widget_args, 'gravityview_widget_page_links' ); |
|
37 | + $atts = shortcode_atts(array( |
|
38 | + 'show_all' => !empty($this->settings['show_all']['default']), |
|
39 | + ), $widget_args, 'gravityview_widget_page_links'); |
|
40 | 40 | |
41 | 41 | // displaying info |
42 | - $curr_page = empty( $_GET['pagenum'] ) ? 1 : intval( $_GET['pagenum'] ); |
|
42 | + $curr_page = empty($_GET['pagenum']) ? 1 : intval($_GET['pagenum']); |
|
43 | 43 | |
44 | 44 | $page_link_args = array( |
45 | - 'base' => add_query_arg('pagenum','%#%', gv_directory_link() ), |
|
45 | + 'base' => add_query_arg('pagenum', '%#%', gv_directory_link()), |
|
46 | 46 | 'format' => '&pagenum=%#%', |
47 | 47 | 'add_args' => array(), // |
48 | 48 | 'prev_text' => '«', |
@@ -50,9 +50,9 @@ discard block |
||
50 | 50 | 'type' => 'list', |
51 | 51 | 'end_size' => 1, |
52 | 52 | 'mid_size' => 2, |
53 | - 'total' => empty( $page_size ) ? 0 : ceil( $total / $page_size ), |
|
53 | + 'total' => empty($page_size) ? 0 : ceil($total / $page_size), |
|
54 | 54 | 'current' => $curr_page, |
55 | - 'show_all' => !empty( $atts['show_all'] ), // to be available at backoffice |
|
55 | + 'show_all' => !empty($atts['show_all']), // to be available at backoffice |
|
56 | 56 | ); |
57 | 57 | |
58 | 58 | /** |
@@ -60,16 +60,16 @@ discard block |
||
60 | 60 | * @since 1.1.4 |
61 | 61 | * @param array $page_link_args Array of arguments for the `paginate_links()` function. [Read more about `paginate_links()`](http://developer.wordpress.org/reference/functions/paginate_links/) |
62 | 62 | */ |
63 | - $page_link_args = apply_filters('gravityview_page_links_args', $page_link_args ); |
|
63 | + $page_link_args = apply_filters('gravityview_page_links_args', $page_link_args); |
|
64 | 64 | |
65 | - $page_links = paginate_links( $page_link_args ); |
|
65 | + $page_links = paginate_links($page_link_args); |
|
66 | 66 | |
67 | - if( !empty( $page_links )) { |
|
68 | - $class = !empty( $widget_args['custom_class'] ) ? $widget_args['custom_class'] : ''; |
|
69 | - $class = gravityview_sanitize_html_class( $class ); |
|
70 | - echo '<div class="gv-widget-page-links '.$class.'">'. $page_links .'</div>'; |
|
67 | + if (!empty($page_links)) { |
|
68 | + $class = !empty($widget_args['custom_class']) ? $widget_args['custom_class'] : ''; |
|
69 | + $class = gravityview_sanitize_html_class($class); |
|
70 | + echo '<div class="gv-widget-page-links '.$class.'">'.$page_links.'</div>'; |
|
71 | 71 | } else { |
72 | - do_action( 'gravityview_log_debug', 'GravityView_Widget_Page_Links[render_frontend] No page links; paginate_links() returned empty response.' ); |
|
72 | + do_action('gravityview_log_debug', 'GravityView_Widget_Page_Links[render_frontend] No page links; paginate_links() returned empty response.'); |
|
73 | 73 | } |
74 | 74 | |
75 | 75 | } |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | |
17 | 17 | function __construct() { |
18 | 18 | |
19 | - $this->widget_description = __('Summary of the number of visible entries out of the total results.', 'gravityview' ); |
|
19 | + $this->widget_description = __('Summary of the number of visible entries out of the total results.', 'gravityview'); |
|
20 | 20 | |
21 | 21 | $default_values = array( |
22 | 22 | 'header' => 1, |
@@ -25,17 +25,17 @@ discard block |
||
25 | 25 | |
26 | 26 | $settings = array(); |
27 | 27 | |
28 | - parent::__construct( __( 'Show Pagination Info', 'gravityview' ) , 'page_info', $default_values, $settings ); |
|
28 | + parent::__construct(__('Show Pagination Info', 'gravityview'), 'page_info', $default_values, $settings); |
|
29 | 29 | } |
30 | 30 | |
31 | - public function render_frontend( $widget_args, $content = '', $context = '') { |
|
31 | + public function render_frontend($widget_args, $content = '', $context = '') { |
|
32 | 32 | $gravityview_view = GravityView_View::getInstance(); |
33 | 33 | |
34 | - if( !$this->pre_render_frontend() ) { |
|
34 | + if (!$this->pre_render_frontend()) { |
|
35 | 35 | return; |
36 | 36 | } |
37 | 37 | |
38 | - if( !empty( $widget_args['title'] ) ) { |
|
38 | + if (!empty($widget_args['title'])) { |
|
39 | 39 | echo $widget_args['title']; |
40 | 40 | } |
41 | 41 | |
@@ -45,16 +45,16 @@ discard block |
||
45 | 45 | |
46 | 46 | $output = ''; |
47 | 47 | |
48 | - if( ! empty( $pagination_counts ) ) { |
|
48 | + if (!empty($pagination_counts)) { |
|
49 | 49 | |
50 | 50 | $first = $pagination_counts['first']; |
51 | 51 | $last = $pagination_counts['last']; |
52 | 52 | $total = $pagination_counts['total']; |
53 | 53 | |
54 | - $class = !empty( $widget_args['custom_class'] ) ? $widget_args['custom_class'] : ''; |
|
55 | - $class = gravityview_sanitize_html_class( $class ); |
|
54 | + $class = !empty($widget_args['custom_class']) ? $widget_args['custom_class'] : ''; |
|
55 | + $class = gravityview_sanitize_html_class($class); |
|
56 | 56 | |
57 | - $output = '<div class="gv-widget-pagination '.$class.'"><p>'. sprintf(__( 'Displaying %1$s - %2$s of %3$s', 'gravityview' ), number_format_i18n( $first ), number_format_i18n( $last ), number_format_i18n( $total ) ) . '</p></div>'; |
|
57 | + $output = '<div class="gv-widget-pagination '.$class.'"><p>'.sprintf(__('Displaying %1$s - %2$s of %3$s', 'gravityview'), number_format_i18n($first), number_format_i18n($last), number_format_i18n($total)).'</p></div>'; |
|
58 | 58 | } |
59 | 59 | |
60 | 60 | /** |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | * @param int $last Last entry # |
65 | 65 | * @param int $total Total entries # |
66 | 66 | */ |
67 | - echo apply_filters( 'gravityview_pagination_output', $output, $first, $last, $total ); |
|
67 | + echo apply_filters('gravityview_pagination_output', $output, $first, $last, $total); |
|
68 | 68 | |
69 | 69 | } |
70 | 70 |