Crowdsignal Dashboard – Polls, Surveys & more - Version 3.0.1

Version Description

Revamp wp-admin styles: Crowdsignal dashboard

Download this release

Release Info

Developer cgastrell
Plugin Icon 128x128 Crowdsignal Dashboard – Polls, Surveys & more
Version 3.0.1
Comparing to
See all releases

Code changes from version 3.0.0 to 3.0.1

Files changed (2) hide show
  1. polldaddy.php +8 -5
  2. readme.txt +5 -1
polldaddy.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: Create and manage Crowdsignal polls and ratings in WordPress
6
  * Author: Automattic, Inc.
7
  * Author URL: https://crowdsignal.com/
8
- * Version: 3.0.0
9
  */
10
 
11
  // To hardcode your Polldaddy PartnerGUID (API Key), add the (uncommented) line below with the PartnerGUID to your `wp-config.php`
@@ -61,7 +61,7 @@ class WP_Polldaddy {
61
  $this->log( 'Created WP_Polldaddy Object: constructor' );
62
  $this->errors = new WP_Error;
63
  $this->scheme = 'https';
64
- $this->version = '2.2.6';
65
  $this->multiple_accounts = ! empty( get_option( 'polldaddy_usercode_user' ) );
66
  $this->polldaddy_client_class = 'api_client';
67
  $this->polldaddy_clients = array();
@@ -187,7 +187,7 @@ class WP_Polldaddy {
187
  add_action( "load-$hook", array( &$this, 'management_page_load' ) );
188
  }
189
 
190
- foreach( array( 'polls' => __( 'Dashboard', 'polldaddy' ), 'ratings' => __( 'Ratings', 'polldaddy' ) ) as $menu_slug => $page_title ) {
191
  $menu_title = $page_title;
192
 
193
  $hook = add_submenu_page( $this->has_feedback_menu ? 'feedback' : $slug, $menu_title, $menu_title, $capability, $menu_slug, $function, 99 );
@@ -195,9 +195,9 @@ class WP_Polldaddy {
195
  }
196
 
197
  // Add settings pages.
198
- foreach( array( 'pollsettings' => __( 'Crowdsignal', 'polldaddy' ), 'ratingsettings' => __( 'Rating', 'polldaddy' ) ) as $menu_slug => $page_title ) {
199
  // translators: %s placeholder is the setting page type (Poll or Rating).
200
- $settings_page_title = sprintf( esc_html__( '%s Settings', 'polldaddy' ), $page_title );
201
  $hook = add_options_page( $settings_page_title, $settings_page_title, $menu_slug == 'ratings' ? 'manage_options' : $capability, $menu_slug, array( $this, 'settings_page' ) );
202
  add_action( "load-$hook", array( $this, 'management_page_load' ) );
203
  }
@@ -1438,6 +1438,9 @@ class WP_Polldaddy {
1438
  <?php
1439
  $this->style_edit_form();
1440
  break;
 
 
 
1441
  default:
1442
  $view_type = 'me'; // default (and only) config for self-hosted.
1443
 
5
  * Description: Create and manage Crowdsignal polls and ratings in WordPress
6
  * Author: Automattic, Inc.
7
  * Author URL: https://crowdsignal.com/
8
+ * Version: 3.0.1
9
  */
10
 
11
  // To hardcode your Polldaddy PartnerGUID (API Key), add the (uncommented) line below with the PartnerGUID to your `wp-config.php`
61
  $this->log( 'Created WP_Polldaddy Object: constructor' );
62
  $this->errors = new WP_Error;
63
  $this->scheme = 'https';
64
+ $this->version = '3.0.1';
65
  $this->multiple_accounts = ! empty( get_option( 'polldaddy_usercode_user' ) );
66
  $this->polldaddy_client_class = 'api_client';
67
  $this->polldaddy_clients = array();
187
  add_action( "load-$hook", array( &$this, 'management_page_load' ) );
188
  }
189
 
190
+ foreach( array( 'polls' => __( 'Crowdsignal', 'polldaddy' ), 'ratings' => __( 'Ratings', 'polldaddy' ) ) as $menu_slug => $page_title ) {
191
  $menu_title = $page_title;
192
 
193
  $hook = add_submenu_page( $this->has_feedback_menu ? 'feedback' : $slug, $menu_title, $menu_title, $capability, $menu_slug, $function, 99 );
195
  }
196
 
197
  // Add settings pages.
198
+ foreach( array( 'pollsettings' => __( 'Crowdsignal', 'polldaddy' ), 'ratingsettings' => __( 'Ratings', 'polldaddy' ) ) as $menu_slug => $page_title ) {
199
  // translators: %s placeholder is the setting page type (Poll or Rating).
200
+ $settings_page_title = sprintf( esc_html__( '%s', 'polldaddy' ), $page_title );
201
  $hook = add_options_page( $settings_page_title, $settings_page_title, $menu_slug == 'ratings' ? 'manage_options' : $capability, $menu_slug, array( $this, 'settings_page' ) );
202
  add_action( "load-$hook", array( $this, 'management_page_load' ) );
203
  }
1438
  <?php
1439
  $this->style_edit_form();
1440
  break;
1441
+ case 'landing-page':
1442
+ $this->render_landing_page();
1443
+ break;
1444
  default:
1445
  $view_type = 'me'; // default (and only) config for self-hosted.
1446
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: crowdsignal, polls, poll, polldaddy, wppolls, vote, polling, surveys, rate
4
  Requires at least: 5.5
5
  Requires PHP: 5.6
6
  Tested up to: 5.7.1
7
- Stable tag: 3.0.0
8
 
9
  Create and manage Crowdsignal polls and ratings from within WordPress.
10
 
@@ -127,6 +127,10 @@ Revamp wp-admin styles: Crowdsignal dashboard
127
 
128
  == Changelog ==
129
 
 
 
 
 
130
  = 3.0.0 =
131
  * New dashboard menu
132
  * Show landing page when there are no items available
4
  Requires at least: 5.5
5
  Requires PHP: 5.6
6
  Tested up to: 5.7.1
7
+ Stable tag: 3.0.1
8
 
9
  Create and manage Crowdsignal polls and ratings from within WordPress.
10
 
127
 
128
  == Changelog ==
129
 
130
+ = 3.0.1
131
+ * Allow landing page to be rendered on demand
132
+ * Rename menu entries
133
+
134
  = 3.0.0 =
135
  * New dashboard menu
136
  * Show landing page when there are no items available