Poll, Survey, Quiz, Slideshow, Form, Story & Landing Page - Version 1.0.1

Version Description

N/A

Download this release

Release Info

Developer yoffegil
Plugin Icon 128x128 Poll, Survey, Quiz, Slideshow, Form, Story & Landing Page
Version 1.0.1
Comparing to
See all releases

Code changes from version 1.0 to 1.0.1

images/os-small.png DELETED
Binary file
images/os.png CHANGED
Binary file
opinionstage-functions.php CHANGED
@@ -84,35 +84,22 @@ function opinionstage_parse_response($response) {
84
  }
85
 
86
  /**
87
- * Adds the poll button to the edit bar for new/edited post/page
88
  */
89
  function opinionstage_poll_footer_admin() {
90
- // Javascript Code Courtesy Of WP-AddQuicktag (http://bueltge.de/wp-addquicktags-de-plugin/120/)
91
  echo '<script type="text/javascript">'."\n";
92
  echo '/* <![CDATA[ */'."\n";
93
  echo "\t".'var opsPollBtn = {'."\n";
94
- echo "\t\t".'enter_poll_id: "'.esc_js(__('Enter Poll ID', OPINIONSTAGE_WIDGET_UNIQUE_ID)).'",'."\n";
95
- echo "\t\t".'enter_poll_id_again: "'.esc_js(__('Error: Poll ID must be numeric', OPINIONSTAGE_WIDGET_UNIQUE_ID)).'\n\n'.esc_js(__('Please enter Poll ID again', OPINIONSTAGE_WIDGET_UNIQUE_ID)).'",'."\n";
96
  echo "\t\t".'poll: "'.esc_js(__('social poll', OPINIONSTAGE_WIDGET_UNIQUE_ID)).'",'."\n";
97
  echo "\t\t".'insert_poll: "'.esc_js(__('Insert social poll', OPINIONSTAGE_WIDGET_UNIQUE_ID)).'"'."\n";
98
  echo "\t".'};'."\n";
99
- echo "\t".'function insertOSPoll(where, myField) {'."\n";
100
- echo "\t\t".'var poll_id = jQuery.trim(prompt(opsPollBtn.enter_poll_id));'."\n";
101
- echo "\t\t".'while(isNaN(poll_id)) {'."\n";
102
- echo "\t\t\t".'poll_id = jQuery.trim(prompt(opsPollBtn.enter_poll_id_again));'."\n";
103
- echo "\t\t".'}'."\n";
104
- echo "\t\t".'if (poll_id >= -1 && poll_id != null && poll_id != "") {'."\n";
105
- echo "\t\t\t".'if(where == \'code\') {'."\n";
106
- echo "\t\t\t\t".'edInsertContent(myField, \'['.OPINIONSTAGE_WIDGET_SHORTCODE.' id="\' + poll_id + \'"]\');'."\n";
107
- echo "\t\t\t".'} else {'."\n";
108
- echo "\t\t\t\t".'return \'['.OPINIONSTAGE_WIDGET_SHORTCODE.' id="\' + poll_id + \'"]\';'."\n";
109
- echo "\t\t\t".'}'."\n";
110
- echo "\t\t".'}'."\n";
111
- echo "\t".'}'."\n";
112
  echo "\t".'if(document.getElementById("ed_toolbar")){'."\n";
113
  echo "\t\t".'edButtons[edButtons.length] = new edButton("ed_o_poll",opsPollBtn.poll, "", "","");'."\n";
114
  echo "\t\t".'jQuery(document).ready(function($){'."\n";
115
- echo "\t\t\t".'$(\'#qt_content_ed_o_poll\').replaceWith(\'<input type="button" id="qt_content_ed_o_poll" accesskey="" class="ed_button" onclick="insertOSPoll(\\\'code\\\', edCanvas);" value="\' + opsPollBtn.poll + \'" title="\' + opsPollBtn.insert_poll + \'" />\');'."\n";
 
 
 
116
  echo "\t\t".'});'."\n";
117
  echo "\t".'}'."\n";
118
  echo '/* ]]> */'."\n";
@@ -120,32 +107,89 @@ function opinionstage_poll_footer_admin() {
120
  }
121
 
122
  /**
123
- * Adds the poll button to the edit bar for new/edited post/page
124
  */
125
  function opinionstage_poll_menu() {
126
  if (function_exists('add_menu_page')) {
127
  add_menu_page(__('Add Polls', OPINIONSTAGE_WIDGET_UNIQUE_ID), __('Social Polls', OPINIONSTAGE_WIDGET_UNIQUE_ID), 'edit_posts', OPINIONSTAGE_WIDGET_UNIQUE_LOCATION, 'opinionstage_add_poll_page',
128
- plugins_url(OPINIONSTAGE_WIDGET_UNIQUE_ID.'/images/os-small.png'));
129
  }
130
  }
131
 
132
  /**
133
- * Instructions for adding a poll
134
  */
135
  function opinionstage_add_poll_page() {
136
  ?>
137
  <h1><strong>Opinion Stage Social Polls</strong></h1>
138
- <BR>
139
  <h3><strong>To add a social poll to your post/page:</strong></h3>
140
- <p>1) &nbsp; Start a new poll using the <?php echo opinionstage_create_link('start a poll / debate', 'new_debate', ''); ?> form on OpinionStage.com</p>
141
- <p>2) &nbsp; Copy the embed ID (located near the Embed button on the poll / debate page)</p>
142
- <p>3) &nbsp; From the WordPress post/page text editor, click on the social poll icon to open the embed dialog</p>
143
- <p>4) &nbsp; Paste the ID into the embed dialog</p>
144
- <BR>
145
- Need more information? <?php echo opinionstage_create_link('click here', 'publishers/wordpress', ''); ?>. For support or feedback, please email us at:&nbsp;<a href="mailto:info@opinionstage.com">info@opinionstage.com</a>
146
  <?php
147
  }
148
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
149
  /**
150
  * Adds the poll button to the edit bar for new/edited post/page In TinyMCE >= WordPress 2.5
151
  */
@@ -166,19 +210,4 @@ function opinionstage_poll_tinymce_addplugin($plugin_array) {
166
  $plugin_array['ospolls'] = plugins_url(OPINIONSTAGE_WIDGET_UNIQUE_ID.'/tinymce/plugins/polls/editor_plugin.js');
167
  return $plugin_array;
168
  }
169
-
170
- /**
171
- * Utility function to create a link with the correct host and all the required information.
172
- */
173
- function opinionstage_create_link($caption, $page, $params = "", $options = array()) {
174
- $style = empty($options['style']) ? '' : $options['style'];
175
- $new_page = empty($options['new_page']) ? true : $options['new_page'];
176
-
177
- $params_prefix = empty($params) ? "" : "&";
178
-
179
- $link = "http://".OPINIONSTAGE_SERVER_BASE."/".$page."?ref=".OPINIONSTAGE_WIDGET_API_KEY.$params_prefix.$params;
180
-
181
- return "<a href=\"".$link."\"".($new_page ? " target='_blank'" : "")." style=".$style.">".$caption."</a>";
182
- }
183
-
184
  ?>
84
  }
85
 
86
  /**
87
+ * Adds the poll button to the html edit bar for new/edited post/page
88
  */
89
  function opinionstage_poll_footer_admin() {
 
90
  echo '<script type="text/javascript">'."\n";
91
  echo '/* <![CDATA[ */'."\n";
92
  echo "\t".'var opsPollBtn = {'."\n";
 
 
93
  echo "\t\t".'poll: "'.esc_js(__('social poll', OPINIONSTAGE_WIDGET_UNIQUE_ID)).'",'."\n";
94
  echo "\t\t".'insert_poll: "'.esc_js(__('Insert social poll', OPINIONSTAGE_WIDGET_UNIQUE_ID)).'"'."\n";
95
  echo "\t".'};'."\n";
 
 
 
 
 
 
 
 
 
 
 
 
 
96
  echo "\t".'if(document.getElementById("ed_toolbar")){'."\n";
97
  echo "\t\t".'edButtons[edButtons.length] = new edButton("ed_o_poll",opsPollBtn.poll, "", "","");'."\n";
98
  echo "\t\t".'jQuery(document).ready(function($){'."\n";
99
+ echo "\t\t\t".'var popup_width = jQuery(window).width();'."\n";
100
+ echo "\t\t\t".'var popup_height = jQuery(window).height();'."\n";
101
+ echo "\t\t\t".'popup_width = ( 720 < popup_width ) ? 640 : popup_width - 80;'."\n";
102
+ echo "\t\t\t".'$(\'#qt_content_ed_o_poll\').replaceWith(\'<input type="button" id="qt_content_ed_o_poll" accesskey="" class="ed_button" onclick="tb_show( \\\'Insert Poll\\\', \\\'#TB_inline?=&height=popup_height&width=popup_width&inlineId=opinionstage-insert-poll-form\\\' );" value="\' + opsPollBtn.poll + \'" title="\' + opsPollBtn.insert_poll + \'" />\');'."\n";
103
  echo "\t\t".'});'."\n";
104
  echo "\t".'}'."\n";
105
  echo '/* ]]> */'."\n";
107
  }
108
 
109
  /**
110
+ * Sidebar menu
111
  */
112
  function opinionstage_poll_menu() {
113
  if (function_exists('add_menu_page')) {
114
  add_menu_page(__('Add Polls', OPINIONSTAGE_WIDGET_UNIQUE_ID), __('Social Polls', OPINIONSTAGE_WIDGET_UNIQUE_ID), 'edit_posts', OPINIONSTAGE_WIDGET_UNIQUE_LOCATION, 'opinionstage_add_poll_page',
115
+ plugins_url(OPINIONSTAGE_WIDGET_UNIQUE_ID.'/images/os.png'));
116
  }
117
  }
118
 
119
  /**
120
+ * Instructions page for adding a poll
121
  */
122
  function opinionstage_add_poll_page() {
123
  ?>
124
  <h1><strong>Opinion Stage Social Polls</strong></h1>
 
125
  <h3><strong>To add a social poll to your post/page:</strong></h3>
126
+ <p>1) &nbsp; Start a new poll using the <?php echo opinionstage_create_link('start a poll form', 'new_debate', ''); ?> or find an existing poll <?php echo opinionstage_create_link('here', 'topics/all', ''); ?></p>
127
+ <p>2) &nbsp; From the poll page, copy the embed ID (located near the embed button)</p>
128
+ <p>3) &nbsp; From the WordPress post/page text editor, click on the social poll icon to open the insert poll dialog</p>
129
+ <img src="http://a5.opinionstage-res.cloudinary.com/image/upload/c_fit,h_294,w_474/v1332371481/mw4b8djjlljrwjy2w3iqa.jpg" />
130
+ <p>4) &nbsp; Paste the ID into the insert poll dialog</p>
131
+ <?php echo opinionstage_insturctions_html_suffix(); ?>
132
  <?php
133
  }
134
 
135
+ /**
136
+ * Load the js script
137
+ */
138
+ function opinionstage_load_scripts() {
139
+ wp_enqueue_script( 'ospolls', plugins_url(OPINIONSTAGE_WIDGET_UNIQUE_ID.'/opinionstage_plugin.js'), array( 'jquery', 'thickbox' ));
140
+ }
141
+
142
+ function mytheme_tinymce_config( $init ) {
143
+ $valid_shortcode = OPINIONSTAGE_WIDGET_SHORTCODE;
144
+ if ( isset( $init['extended_valid_elements'] ) ) {
145
+ $init['extended_valid_elements'] .= ',' . $valid_shortcode;
146
+ } else {
147
+ $init['extended_valid_elements'] = $valid_shortcode;
148
+ }
149
+ return $init;
150
+ }
151
+
152
+ /**
153
+ * The popup window in the post/page edit/new page
154
+ */
155
+ function opinionstage_add_poll_popup() {
156
+ ?>
157
+ <div id="opinionstage-insert-poll-form" style="display:none;">
158
+ <div id="content">
159
+ <h1><strong>Insert a Social Poll</strong></h1>
160
+ <h3><strong>Enter Poll ID (e.g. 436):</strong></h3>
161
+ <p><input type="text" name="poll-id" id="opinionstage-poll-id" value="" /></p>
162
+ <p class="submit">
163
+ <input type="button" id="opinionstage-submit" class="button-primary" value="Insert Poll" name="submit" />
164
+ </p>
165
+ <br>
166
+ <p><strong>Haven't created a poll yet? / Don't know the poll ID?</strong></p>
167
+ <p>1) &nbsp; Start a new poll using the <?php echo opinionstage_create_link('start a poll form', 'new_debate', ''); ?> or find an existing poll <?php echo opinionstage_create_link('here', 'topics/all', ''); ?></p>
168
+ <p>2) &nbsp; From the poll page, copy the embed ID (located near the embed button)</p>
169
+ <?php echo opinionstage_insturctions_html_suffix(); ?>
170
+ </div>
171
+ </div>
172
+ <?php
173
+ }
174
+
175
+ function opinionstage_insturctions_html_suffix() {
176
+ ?>
177
+ <br>
178
+ Need more information? <?php echo opinionstage_create_link('click here', 'publishers/wordpress', ''); ?>. For support or feedback, please email us at: <a href="mailto:info@opinionstage.com">info@opinionstage.com</a>
179
+ <?php
180
+ }
181
+ /**
182
+ * Utility function to create a link with the correct host and all the required information.
183
+ */
184
+ function opinionstage_create_link($caption, $page, $params = "", $options = array()) {
185
+ $style = empty($options['style']) ? '' : $options['style'];
186
+ $new_page = empty($options['new_page']) ? true : $options['new_page'];
187
+ $params_prefix = empty($params) ? "" : "&";
188
+ $link = "http://".OPINIONSTAGE_SERVER_BASE."/".$page."?ref=".OPINIONSTAGE_WIDGET_API_KEY.$params_prefix.$params;
189
+
190
+ return "<a href=\"".$link."\"".($new_page ? " target='_blank'" : "")." style=".$style.">".$caption."</a>";
191
+ }
192
+
193
  /**
194
  * Adds the poll button to the edit bar for new/edited post/page In TinyMCE >= WordPress 2.5
195
  */
210
  $plugin_array['ospolls'] = plugins_url(OPINIONSTAGE_WIDGET_UNIQUE_ID.'/tinymce/plugins/polls/editor_plugin.js');
211
  return $plugin_array;
212
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
213
  ?>
opinionstage-polls.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Social Polls by OpinionStage
4
  Plugin URI: http://www.opinionstage.com
5
  Description: Adds a highly engaging social polling system to your blog. You can easily add a social poll to your blog post/page by clicking the social poll icon in the WordPress post/page text editor.
6
- Version: 1.0.0
7
  Author: OpinionStage.com
8
  Author URI: http://www.opinionstage.com
9
  */
@@ -11,7 +11,7 @@ Author URI: http://www.opinionstage.com
11
  /* --- Static initializer for Wordpress hooks --- */
12
 
13
  define('OPINIONSTAGE_SERVER_BASE', "www.opinionstage.com"); /* Don't include the protocol, added dynamically */
14
- define('OPINIONSTAGE_WIDGET_VERSION', '1.0.0');
15
  define('OPINIONSTAGE_WIDGET_PLUGIN_NAME', 'Social Polls by OpinionStage');
16
  define('OPINIONSTAGE_WIDGET_API_KEY', 'wp-v-poll');
17
  define('OPINIONSTAGE_WIDGET_SHORTCODE', 'socialpoll');
@@ -23,7 +23,6 @@ require_once(WP_PLUGIN_DIR."/".OPINIONSTAGE_WIDGET_UNIQUE_ID."/opinionstage-func
23
 
24
  /* --- Static initializer for Wordpress hooks --- */
25
 
26
-
27
  add_shortcode(OPINIONSTAGE_WIDGET_SHORTCODE, 'opinionstage_add_poll');
28
 
29
  // Post creation/edit hooks
@@ -38,4 +37,9 @@ add_action('init', 'opinionstage_poll_tinymce_addbuttons');
38
  // Side menu
39
  add_action('admin_menu', 'opinionstage_poll_menu');
40
 
 
 
 
 
 
41
  ?>
3
  Plugin Name: Social Polls by OpinionStage
4
  Plugin URI: http://www.opinionstage.com
5
  Description: Adds a highly engaging social polling system to your blog. You can easily add a social poll to your blog post/page by clicking the social poll icon in the WordPress post/page text editor.
6
+ Version: 1.0.1
7
  Author: OpinionStage.com
8
  Author URI: http://www.opinionstage.com
9
  */
11
  /* --- Static initializer for Wordpress hooks --- */
12
 
13
  define('OPINIONSTAGE_SERVER_BASE', "www.opinionstage.com"); /* Don't include the protocol, added dynamically */
14
+ define('OPINIONSTAGE_WIDGET_VERSION', '1.0.1');
15
  define('OPINIONSTAGE_WIDGET_PLUGIN_NAME', 'Social Polls by OpinionStage');
16
  define('OPINIONSTAGE_WIDGET_API_KEY', 'wp-v-poll');
17
  define('OPINIONSTAGE_WIDGET_SHORTCODE', 'socialpoll');
23
 
24
  /* --- Static initializer for Wordpress hooks --- */
25
 
 
26
  add_shortcode(OPINIONSTAGE_WIDGET_SHORTCODE, 'opinionstage_add_poll');
27
 
28
  // Post creation/edit hooks
37
  // Side menu
38
  add_action('admin_menu', 'opinionstage_poll_menu');
39
 
40
+ add_action('admin_enqueue_scripts', 'opinionstage_load_scripts');
41
+
42
+ // Insert poll popup
43
+ add_filter('admin_footer_text', 'opinionstage_add_poll_popup');
44
+
45
  ?>
opinionstage_plugin.dev.js ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function(){
2
+ jQuery(function($){
3
+ $("#content_ospolls").click(function() {
4
+ $("os_insert_poll").click();
5
+ return false;
6
+ });
7
+ $(document).ready(function() {
8
+ $('#opinionstage-submit').click(function(){
9
+ var poll_id = $('#opinionstage-poll-id').val();
10
+ var ed;
11
+ if (typeof(tinymce) != 'undefined' && tinymce.isIE && ( ed = tinymce.get(wpActiveEditor) ) && !ed.isHidden()) {
12
+ ed.focus();
13
+ ed.windowManager.insertimagebookmark = ed.selection.getBookmark();
14
+ }
15
+ l = window.dialogArguments || opener || parent || top;
16
+ l.send_to_editor("[socialpoll id=\"" + poll_id.toString() + "\"]");
17
+ tb_remove();
18
+ });
19
+ });
20
+ });
21
+ })();
opinionstage_plugin.js ADDED
@@ -0,0 +1 @@
 
1
+ (function(){jQuery(function($){$("#content_ospolls").click(function(){$("os_insert_poll").click();return false});$(document).ready(function(){$('#opinionstage-submit').click(function(){var poll_id=$('#opinionstage-poll-id').val();var ed;if(typeof(tinymce)!='undefined'&&tinymce.isIE&&(ed=tinymce.get(wpActiveEditor))&&!ed.isHidden()){ed.focus();ed.windowManager.insertimagebookmark=ed.selection.getBookmark()}l=window.dialogArguments||opener||parent||top;l.send_to_editor("[socialpoll id=\""+poll_id.toString()+"\"]");tb_remove()})})})})();
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link:
4
  Tags: poll, polls, polling, vote, voting, debate, survey, social, opinionstage, opinion stage
5
 
6
  Requires at least: 2.8
7
- Tested up to: 3.3.2
8
  Stable tag: trunk
9
 
10
  Add a social polling system to your blog. To add a social poll click on the social poll icon in the post/page text editor.
@@ -73,8 +73,8 @@ Yes, we plan to add the option to allow debating the poll. Users will be able to
73
 
74
  Follow these steps:
75
 
76
- 1. Create a new poll / debate from <a href="http://www.opinionstage.com?ref=wp-v-poll" target="_blank">here</a>
77
- 2. Copy the embed ID displayed on the poll
78
  3. Click on the poll icon in the WordPress text editor to open the embed dialog
79
  4. Paste the ID you copied in the embed dialog
80
 
@@ -100,5 +100,7 @@ Yes, just post the following syntax into any post/page: [socialpoll ID="xyz"], w
100
  N/A
101
 
102
  == Changelog ==
 
 
103
  = Version 1.0.0 (15 Aug 2012) =
104
- * First social poll version
4
  Tags: poll, polls, polling, vote, voting, debate, survey, social, opinionstage, opinion stage
5
 
6
  Requires at least: 2.8
7
+ Tested up to: 3.4.1
8
  Stable tag: trunk
9
 
10
  Add a social polling system to your blog. To add a social poll click on the social poll icon in the post/page text editor.
73
 
74
  Follow these steps:
75
 
76
+ 1. Create a new poll / debate from <a href="http://www.opinionstage.com/new_debate?ref=wp-v-poll" target="_blank">here</a>
77
+ 2. From the poll page, copy the embed ID located near the embed button
78
  3. Click on the poll icon in the WordPress text editor to open the embed dialog
79
  4. Paste the ID you copied in the embed dialog
80
 
100
  N/A
101
 
102
  == Changelog ==
103
+ = Version 1.0.1 (26 Aug 2012) =
104
+ * Improvements in the embed flow to ease insertion of polls
105
  = Version 1.0.0 (15 Aug 2012) =
106
+ * First social poll version
screenshot-6.png CHANGED
Binary file
tinymce/plugins/polls/editor_plugin.dev.js ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function () {
2
+ tinymce.PluginManager.requireLangPack('ospolls');
3
+ tinymce.create("tinymce.plugins.OSPolls", {
4
+ init: function (a, b) {
5
+ a.addButton("ospolls", {
6
+ title: "ospolls.insert_poll",
7
+ onclick : function() {
8
+ // triggers the thickbox
9
+ var width = jQuery(window).width(), H = jQuery(window).height(), W = ( 720 < width ) ? 720 : width;
10
+ W = W - 80;
11
+ H = H - 84;
12
+ tb_show( 'Insert Poll', '#TB_inline?width=' + W + '&height=' + H + '&inlineId=opinionstage-insert-poll-form' );
13
+ },
14
+ image: b + "/img/os.png"
15
+ });
16
+ a.onNodeChange.add(function (d, c, e) {
17
+ c.setActive("ospolls", e.nodeName == "IMG");
18
+ })
19
+ },
20
+ createControl: function (b, a) {
21
+ return null;
22
+ },
23
+ getInfo: function () {
24
+ return {
25
+ longname: "Social-Polls-by-OpinionStage",
26
+ author: "Opinion Stage",
27
+ authorurl: "http://www.opinionstage.com",
28
+ infourl: "http://www.opinionstage.com/about",
29
+ version: "1.0"
30
+ }
31
+ }
32
+ });
33
+ tinymce.PluginManager.add("ospolls", tinymce.plugins.OSPolls)
34
+ })();
tinymce/plugins/polls/editor_plugin.js CHANGED
@@ -1 +1 @@
1
- (function(){tinymce.PluginManager.requireLangPack('ospolls');tinymce.create("tinymce.plugins.OSPolls",{init:function(a,b){a.addCommand("mceOSPollInsert",function(){a.execCommand("mceInsertContent",0,insertOSPoll("visual",""))});a.addButton("ospolls",{title:"ospolls.insert_poll",cmd:"mceOSPollInsert",image:b+"/img/os.png"});a.onNodeChange.add(function(d,c,e){c.setActive("ospolls",e.nodeName=="IMG")})},createControl:function(b,a){return null},getInfo:function(){return{longname:"Social-Polls-by-OpinionStage",author:"Opinion Stage",authorurl:"http://www.opinionstage.com",infourl:"http://www.opinionstage.com/about",version:"1.0"}}});tinymce.PluginManager.add("ospolls",tinymce.plugins.OSPolls)})();
1
+ (function(){tinymce.PluginManager.requireLangPack('ospolls');tinymce.create("tinymce.plugins.OSPolls",{init:function(a,b){a.addButton("ospolls",{title:"ospolls.insert_poll",onclick:function(){var width=jQuery(window).width(),H=jQuery(window).height(),W=(720<width)?720:width;W=W-80;H=H-84;tb_show('Insert Poll','#TB_inline?width='+W+'&height='+H+'&inlineId=opinionstage-insert-poll-form')},image:b+"/img/os.png"});a.onNodeChange.add(function(d,c,e){c.setActive("ospolls",e.nodeName=="IMG")})},createControl:function(b,a){return null},getInfo:function(){return{longname:"Social-Polls-by-OpinionStage",author:"Opinion Stage",authorurl:"http://www.opinionstage.com",infourl:"http://www.opinionstage.com/about",version:"1.0"}}});tinymce.PluginManager.add("ospolls",tinymce.plugins.OSPolls)})();
tinymce/plugins/polls/img/os.png CHANGED
Binary file