YOP Poll - Version 5.7.2

Version Description

  • Display poll improvements
Download this release

Release Info

Developer yourownprogrammer
Plugin Icon 128x128 YOP Poll
Version 5.7.2
Comparing to
See all releases

Code changes from version 5.6 to 5.7.2

Files changed (51) hide show
  1. images/images2/image7.jpg +0 -0
  2. inc/admin.php +123 -30
  3. inc/capabilities.php +9 -0
  4. inc/db_schema.php +3730 -2320
  5. inc/import_admin.php +2 -2
  6. inc/maintenance.php +312 -43
  7. inc/options_admin.php +7 -0
  8. inc/plugin-functions.php +4 -0
  9. inc/plugin.php +2 -0
  10. inc/poll_admin.php +338 -27
  11. inc/pro_admin.php +7 -0
  12. inc/public-admin.php +18 -12
  13. inc/templates_admin.php +1 -1
  14. js/jquery-ui-timepicker-addon.js +31 -16
  15. js/polls/wizard-options.js +3 -3
  16. js/polls/yop-poll-add-edit.js +50 -2
  17. js/polls/yop-poll-results-votes.js +24 -3
  18. js/polls/yop-poll-wizard.js +6 -6
  19. js/yop-poll-admin.js +3 -1
  20. js/yop-poll-public.js +31 -21
  21. languages/yop_poll-fr_FR.mo +0 -0
  22. languages/yop_poll-fr_FR.po +2931 -0
  23. languages/yop_poll-fr_FR.pot +2931 -0
  24. lib/Twig/Autoloader.php +1 -1
  25. models/abstract_model.php +25 -28
  26. models/poll_model.php +48 -14
  27. models/yop_poll_model.php +29 -1
  28. readme.txt +17 -1
  29. templates/bans_bans.html +45 -44
  30. templates/imports_imports.html +16 -14
  31. templates/logs_logs.html +40 -39
  32. templates/options_general.html +174 -154
  33. templates/options_poll_options.html +108 -109
  34. templates/polls_add_edit-bk.html +1 -175
  35. templates/polls_add_edit.html +120 -120
  36. templates/polls_add_edit_advanced.html +7 -7
  37. templates/polls_add_edit_beginner.html +4 -3
  38. templates/polls_add_edit_options.html +92 -92
  39. templates/polls_add_edit_questions.html +5 -2
  40. templates/polls_add_edit_results_options.html +38 -19
  41. templates/polls_add_edit_template.html +30 -29
  42. templates/polls_answer_media_template.html +1 -1
  43. templates/polls_answer_template.html +1 -1
  44. templates/polls_base.html +14 -13
  45. templates/polls_pop_up_ban.html +20 -20
  46. templates/polls_question_template.html +48 -43
  47. templates/polls_question_template_media.html +6 -6
  48. templates/polls_results.html +19 -18
  49. templates/polls_results_print.html +566 -0
  50. templates/polls_results_votes.html +204 -100
  51. templates/polls_view.html +37 -36
images/images2/image7.jpg ADDED
Binary file
inc/admin.php CHANGED
@@ -177,12 +177,26 @@ class Yop_Poll_Admin extends Yop_Poll_Plugin {
177
  ) );
178
  }
179
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
180
  if( current_user_can( 'become_yop_poll_pro' ) ) {
181
  $proObj = YOP_POLL_Pro_Admin::get_instance();
182
- $subpage = add_submenu_page( 'yop-polls', __yop_poll( 'Upgrade to Pro' ), __yop_poll( 'Upgrade to Pro' ), 'become_yop_poll_pro', 'yop-polls-become-pro', array(
183
  &$proObj,
184
  "manage_pages"
185
  ) );
 
186
  if( $subpage ) {
187
  $this->add_action( "load-$subpage", "manage_pages_load" );
188
  }
@@ -195,7 +209,24 @@ class Yop_Poll_Admin extends Yop_Poll_Plugin {
195
  }
196
  }
197
 
198
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
199
  public function ajax_modal_option_signup() {
200
  $optin_box_modal_options = get_option( 'yop_poll_optin_box_modal_options_yop' );
201
  $optin_box_modal_options ['modal_had_submit'] = 'yes';
@@ -370,7 +401,7 @@ class Yop_Poll_Admin extends Yop_Poll_Plugin {
370
  <ul class="wf-sortable" id="wf-sort-id">
371
  <li>
372
  <div id="circle"><h1>?</h1></div>
373
- <p><h2><?php _e( 'Need Help?', 'yop_poll' ); ?></h2><br><h3><?php _e( 'Download<br /> YOP Poll User Guide', 'yop_poll' ); ?></h3></p>
374
  </li>
375
  <li class="wf-email" rel="undefined"
376
  style="display: block !important;">
@@ -447,6 +478,14 @@ class Yop_Poll_Admin extends Yop_Poll_Plugin {
447
  'jquery-ui-slider'
448
  ), YOP_POLL_VERSION, true );
449
 
 
 
 
 
 
 
 
 
450
 
451
  $time_format="hh:mm:ss";
452
  $options = get_option('yop_poll_options' );
@@ -985,12 +1024,34 @@ class Yop_Poll_Admin extends Yop_Poll_Plugin {
985
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
986
  <html xmlns="http://www.w3.org/1999/xhtml">
987
  <head>
988
- <title><?php _e( 'Insert Poll', 'yop_poll' ); ?></title>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
989
  <script type="text/javascript"
990
  src="<?php echo get_option( 'siteurl' ) ?>/wp-includes/js/tinymce/tiny_mce_popup.js"></script>
991
  <script type="text/javascript">
992
- function insertYopPollTinyMce(poll_id, tr_id) {
993
  tr_id = typeof tr_id !== 'undefined' ? tr_id : '';
 
 
994
  if( isNaN( poll_id ) ) {
995
  alert( '<?php _e( 'Error: Invalid Yop Poll!\n\nPlease choose the poll again:\n\n', 'yop_poll' ) ?>' );
996
  }
@@ -999,11 +1060,14 @@ class Yop_Poll_Admin extends Yop_Poll_Plugin {
999
  if( tr_id != '' ) {
1000
  tinyMCEPopup.editor.execCommand( 'mceInsertContent', false,
1001
  '[yop_poll id="' + poll_id + '" tr_id="' +
1002
- tr_id + '"]' );
 
1003
  }
1004
  else {
1005
  tinyMCEPopup.editor.execCommand( 'mceInsertContent', false,
1006
- '[yop_poll id="' + poll_id + '"]' );
 
 
1007
  }
1008
  }
1009
  else {
@@ -1016,38 +1080,52 @@ class Yop_Poll_Admin extends Yop_Poll_Plugin {
1016
  </head>
1017
  <body>
1018
  <p>
1019
- <label for="yop-poll-id-dialog"> <span><?php _e( 'Poll to Display', 'yop_poll' ); ?>:</span>
1020
- <select class="widefat" name="yop_poll_id" id="yop-poll-id-dialog">
1021
- <option value="-3"><?php _e( 'Display Random Poll', 'yop_poll' ); ?></option>
1022
- <option value="-2"><?php _e( 'Display Latest Poll', 'yop_poll' ); ?></option>
1023
- <option value="-1"><?php _e( 'Display Current Active Poll', 'yop_poll' ); ?></option>
 
 
 
 
 
 
1024
  <?php
1025
- if( count( $yop_polls ) > 0 ) {
1026
- foreach( $yop_polls as $yop_poll ) {
1027
- ?>
1028
- <option value="<?php echo $yop_poll['ID']; ?>"><?php echo esc_html( stripslashes( $yop_poll['poll_title'] ) ); ?></option>
1029
- <?php
1030
- }
1031
  }
1032
- ?>
1033
- </select>
 
 
 
 
 
 
1034
  </label>
 
1035
  <br/>
1036
- <label for="yop-poll-tr-id-dialog"> <span><?php _e( 'Tracking ID', 'yop_poll' ); ?>:</span><br>
1037
- <input class="widefat" name="yop_poll_tr_id" id="yop-poll-tr-id-dialog"/>
1038
  </label>
 
 
 
 
 
 
 
 
 
 
1039
 
1040
 
1041
  <center><input type="button"
1042
- class="button-primary"
1043
- value="<?php _e( 'Insert Poll', 'yop_poll' ); ?>"
1044
- onclick=" insertYopPollTinyMce( document.getElementById('yop-poll-id-dialog').value, document.getElementById('yop-poll-tr-id-dialog').value );"/>
1045
  </center>
1046
  <br/>
1047
- <center><input type="button"
1048
- class="button-primary"
1049
- value="<?php _e( 'Close', 'yop_poll' ); ?>"
1050
- onclick="tinyMCEPopup.close();"/></center>
1051
  </p>
1052
  </body>
1053
  </html>
@@ -1056,6 +1134,8 @@ class Yop_Poll_Admin extends Yop_Poll_Plugin {
1056
  die ();
1057
  }
1058
 
 
 
1059
  public function ajax_get_polls_for_html_editor() {
1060
  check_ajax_referer( 'yop-poll-html-editor' );
1061
  if( is_admin() ) {
@@ -1079,6 +1159,7 @@ class Yop_Poll_Admin extends Yop_Poll_Plugin {
1079
  ?>
1080
  </select>
1081
  </label>
 
1082
  <br/><br/>
1083
  <label for="yop-poll-tr-id-html-dialog"> <span><?php _e( 'Tracking ID', 'yop_poll' ); ?>:</span>
1084
  <input type="text"
@@ -1087,11 +1168,23 @@ class Yop_Poll_Admin extends Yop_Poll_Plugin {
1087
  class="widefat"
1088
  value=""/>
1089
  </label>
 
 
 
 
 
 
 
 
 
 
 
 
1090
 
1091
  <br/> <br/> <input type="button"
1092
  class=""
1093
  value="<?php _e( 'Insert Poll', 'yop_poll' ); ?>"
1094
- onclick=" insertYopPoll( edCanvas, document.getElementById('yop-poll-id-html-dialog').value, document.getElementById('yop-poll-tr-id-html-dialog').value );"/>
1095
  <br/> <br/> <input type="button"
1096
  class=""
1097
  value="<?php _e( 'Close', 'yop_poll' ); ?>"
177
  ) );
178
  }
179
  }
180
+
181
+ if( current_user_can( 'help_yop_poll_page' ) ) {
182
+ $proObj = YOP_POLL_Pro_Admin::get_instance();
183
+ $subpage = add_submenu_page( 'yop-polls', __yop_poll( "Help" ), __yop_poll( "Help" ), 'help_yop_poll_page', 'yop-polls-help', array(
184
+ &$proObj,
185
+ "yop_poll_help"
186
+ ) );
187
+
188
+ if( $subpage ) {
189
+ $this->add_action( "load-$subpage", "manage_pages_load" );
190
+
191
+ }
192
+ }
193
  if( current_user_can( 'become_yop_poll_pro' ) ) {
194
  $proObj = YOP_POLL_Pro_Admin::get_instance();
195
+ $subpage = add_submenu_page( 'yop-polls', __yop_poll( "Upgrade to Pro" ), __yop_poll( "Upgrade to Pro" ), 'become_yop_poll_pro', 'yop-polls-become-pro', array(
196
  &$proObj,
197
  "manage_pages"
198
  ) );
199
+
200
  if( $subpage ) {
201
  $this->add_action( "load-$subpage", "manage_pages_load" );
202
  }
209
  }
210
  }
211
 
212
+ private static function update_poll_template_in_database2( $template ) {
213
+ global $wpdb;
214
+ $sql = $wpdb->query( $wpdb->prepare( "
215
+ UPDATE " . $wpdb->yop_poll_templates . "
216
+ SET name = %s,
217
+ before_vote_template = %s,
218
+ after_vote_template = %s,
219
+ after_vote_template_chart = %s,
220
+ before_start_date_template = %s,
221
+ after_end_date_template = %s,
222
+ css = %s,
223
+ js = %s,
224
+ last_modified = %s
225
+ WHERE
226
+ id = %d
227
+ ", $template['name'], $template['before_vote_template'], $template['after_vote_template'],$template['after_vote_template_chart'], $template['before_start_date_template'], $template['after_end_date_template'], $template['css'], $template['js'], current_time( 'mysql' ), $template['id'] ) );
228
+ return $sql;
229
+ }
230
  public function ajax_modal_option_signup() {
231
  $optin_box_modal_options = get_option( 'yop_poll_optin_box_modal_options_yop' );
232
  $optin_box_modal_options ['modal_had_submit'] = 'yes';
401
  <ul class="wf-sortable" id="wf-sort-id">
402
  <li>
403
  <div id="circle"><h1>?</h1></div>
404
+ <p><h2><?php _e( "Need Help?", 'yop_poll' ); ?></h2><br><h3><?php _e( "Download<br /> YOP Poll User Guide", 'yop_poll' ); ?></h3></p>
405
  </li>
406
  <li class="wf-email" rel="undefined"
407
  style="display: block !important;">
478
  'jquery-ui-slider'
479
  ), YOP_POLL_VERSION, true );
480
 
481
+ $translation_array_calendar=array("timee"=>__yop_poll("Time"),
482
+ "hourr"=>__yop_poll("Hour"),
483
+ "minutee"=>__yop_poll("Minute"),
484
+ "secondd"=> __yop_poll("Second"),
485
+ "noww" => __yop_poll("Now"),
486
+ "done" =>__yop_poll("Done")
487
+ );
488
+ wp_localize_script("yop-poll-jquery-ui-timepicker-addon","translation_array_calendar",$translation_array_calendar);
489
 
490
  $time_format="hh:mm:ss";
491
  $options = get_option('yop_poll_options' );
1024
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
1025
  <html xmlns="http://www.w3.org/1999/xhtml">
1026
  <head>
1027
+ <style>
1028
+ .label-design{
1029
+ display: inline-block;
1030
+ width: 140px;
1031
+ }
1032
+ .input-design{
1033
+ background: #2ea2cc; font-size: 14px;
1034
+ background: -webkit-gradient(linear, left top, left bottom, from(#2ea2cc), to(#1e8cbe));
1035
+ background: -webkit-linear-gradient(top, #2ea2cc 0%,#1e8cbe 100%);
1036
+ background: linear-gradient(top, #2ea2cc 0%,#1e8cbe 100%);
1037
+ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#2ea2cc', endColorstr='#1e8cbe',GradientType=0 );
1038
+ border-color: #0074a2;
1039
+ -webkit-box-shadow: inset 0 1px 0 rgba(120,200,230,0.5);
1040
+ box-shadow: inset 0 1px 0 rgba(120,200,230,0.5);
1041
+ color: #fff;
1042
+ text-decoration: none;
1043
+ text-shadow: 0 1px 0 rgba(0,86,132,0.7);
1044
+ cursor: pointer;
1045
+ }
1046
+ </style>
1047
+ <title><?php _e( "Insert Poll", 'yop_poll' ); ?></title>
1048
  <script type="text/javascript"
1049
  src="<?php echo get_option( 'siteurl' ) ?>/wp-includes/js/tinymce/tiny_mce_popup.js"></script>
1050
  <script type="text/javascript">
1051
+ function insertYopPollTinyMce(poll_id, tr_id,show_results) {
1052
  tr_id = typeof tr_id !== 'undefined' ? tr_id : '';
1053
+ show_results = typeof show_results !== 'undefined' ? show_results : '';
1054
+
1055
  if( isNaN( poll_id ) ) {
1056
  alert( '<?php _e( 'Error: Invalid Yop Poll!\n\nPlease choose the poll again:\n\n', 'yop_poll' ) ?>' );
1057
  }
1060
  if( tr_id != '' ) {
1061
  tinyMCEPopup.editor.execCommand( 'mceInsertContent', false,
1062
  '[yop_poll id="' + poll_id + '" tr_id="' +
1063
+ tr_id + '"' + '" show_results="' +
1064
+ show_results + '"]' );
1065
  }
1066
  else {
1067
  tinyMCEPopup.editor.execCommand( 'mceInsertContent', false,
1068
+ '[yop_poll id="' + poll_id + '" tr_id="' +
1069
+ tr_id + '"' + '" show_results="' +
1070
+ show_results + '"]' );
1071
  }
1072
  }
1073
  else {
1080
  </head>
1081
  <body>
1082
  <p>
1083
+ <label class="label-design" for="yop-poll-id-dialog"> <span><?php _e("Poll to Display", 'yop_poll' ); ?>:</span>
1084
+ </label>
1085
+ <select class="widefat" name="yop_poll_id" id="yop-poll-id-dialog">
1086
+ <option value="-3"><?php _e( "Display Random Poll", 'yop_poll' ); ?></option>
1087
+ <option value="-2"><?php _e( "Display Latest Poll", 'yop_poll' ); ?></option>
1088
+ <option value="-1"><?php _e( "Display Current Active Poll", 'yop_poll' ); ?></option>
1089
+ <?php
1090
+ if( count( $yop_polls ) > 0 ) {
1091
+ foreach( $yop_polls as $yop_poll ) {
1092
+ ?>
1093
+ <option value="<?php echo $yop_poll['ID']; ?>"><?php echo esc_html( stripslashes( $yop_poll['poll_title'] ) ); ?></option>
1094
  <?php
 
 
 
 
 
 
1095
  }
1096
+ }
1097
+ ?>
1098
+ </select>
1099
+
1100
+ <br/>
1101
+ <br/>
1102
+ <label class="label-design" for="yop-poll-tr-id-dialog"> <span ><?php _e( "Tracking ID", 'yop_poll' ); ?>:</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1103
+
1104
  </label>
1105
+ <input class="widefat" name="yop_poll_tr_id" id="yop-poll-tr-id-dialog"/>
1106
  <br/>
1107
+ <br>
1108
+ <label class="label-design" for="yop-poll-tr-results-html-dialog"> <span ><?php _e( "Display results only", 'yop_poll' ); ?>:</span>
1109
  </label>
1110
+ <select
1111
+ name="show_results"
1112
+ id="yop-poll-tr-results-html-dialog"
1113
+ class="widefat">
1114
+ <option value="-1"><?php _e( "No", 'yop_poll' ); ?></option>
1115
+ <option value="1"><?php _e( "Yes", 'yop_poll' ); ?></option>
1116
+ </select>
1117
+
1118
+
1119
+
1120
 
1121
 
1122
  <center><input type="button"
1123
+ class="button-primary input-design"
1124
+ value="<?php _e( "Insert Poll", 'yop_poll' ); ?>"
1125
+ onclick=" insertYopPollTinyMce( document.getElementById('yop-poll-id-dialog').value, document.getElementById('yop-poll-tr-id-dialog').value ,document.getElementById('yop-poll-tr-results-html-dialog').value);"/>
1126
  </center>
1127
  <br/>
1128
+
 
 
 
1129
  </p>
1130
  </body>
1131
  </html>
1134
  die ();
1135
  }
1136
 
1137
+
1138
+
1139
  public function ajax_get_polls_for_html_editor() {
1140
  check_ajax_referer( 'yop-poll-html-editor' );
1141
  if( is_admin() ) {
1159
  ?>
1160
  </select>
1161
  </label>
1162
+
1163
  <br/><br/>
1164
  <label for="yop-poll-tr-id-html-dialog"> <span><?php _e( 'Tracking ID', 'yop_poll' ); ?>:</span>
1165
  <input type="text"
1168
  class="widefat"
1169
  value=""/>
1170
  </label>
1171
+ <br/><br/>
1172
+ <label for="yop-poll-tr-results-html-dialog"> <span><?php _e( 'Display results only', 'yop_poll' ); ?>:</span>
1173
+ <select
1174
+ name="show_results"
1175
+ id="yop-poll-tr-results-html-dialog"
1176
+ class="widefat"
1177
+ >
1178
+ <option value="-1">-1</option>
1179
+ <option value="1">1</option>
1180
+ </select>
1181
+ </label>
1182
+
1183
 
1184
  <br/> <br/> <input type="button"
1185
  class=""
1186
  value="<?php _e( 'Insert Poll', 'yop_poll' ); ?>"
1187
+ onclick=" insertYopPoll( edCanvas, document.getElementById('yop-poll-id-html-dialog').value, document.getElementById('yop-poll-tr-id-html-dialog').value ,document.getElementById('yop-poll-tr-results-html-dialog'));"/>
1188
  <br/> <br/> <input type="button"
1189
  class=""
1190
  value="<?php _e( 'Close', 'yop_poll' ); ?>"
inc/capabilities.php CHANGED
@@ -191,6 +191,15 @@ class YOP_POLL_Capabilities{
191
  'author' => false,
192
  'contributor' => false,
193
  'subscriber' => false
 
 
 
 
 
 
 
 
 
194
  )
195
  );
196
 
191
  'author' => false,
192
  'contributor' => false,
193
  'subscriber' => false
194
+
195
+ ),
196
+ 'help_yop_poll_page' => array(
197
+ 'administrator' => true,
198
+ 'editor' => true,
199
+ 'author' => true,
200
+ 'contributor' => false,
201
+ 'subscriber' => false
202
+
203
  )
204
  );
205
 
inc/db_schema.php CHANGED
@@ -473,6 +473,7 @@
473
  name varchar(255) NOT NULL,
474
  before_vote_template text NOT NULL,
475
  after_vote_template text NOT NULL,
 
476
  before_start_date_template text NOT NULL,
477
  after_end_date_template text NOT NULL,
478
  css text NOT NULL,
@@ -536,6 +537,7 @@
536
  %POLL-OTHER-ANSWER-LABEL%
537
  <span id = "yop-poll-results-text-%POLL-ID%-%QUESTION-ID%"
538
  class = "yop-poll-results-text-%POLL-ID%">%POLL-ANSWER-RESULT-LABEL%</span>
 
539
  %POLL-OTHER-ANSWER-TEXT-INPUT%
540
  %POLL-ANSWER-RESULT-BAR%
541
  </li>
@@ -620,6 +622,30 @@ NOWDOC;
620
  NOWDOC;
621
  $after_vote_template = addslashes( $after_vote_template );
622
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
623
  $before_start_date_template = <<<NOWDOC
624
  This poll is about to<br>
625
  start on %POLL-START-DATE%<br>
@@ -704,62 +730,109 @@ function strip_results_%POLL-ID%() {
704
  }
705
 
706
  jQuery(document).ready(function(e) {
 
707
  if(typeof window.strip_results_%POLL-ID% == "function")
708
  strip_results_%POLL-ID%();
709
  if(typeof window.tabulate_answers_%POLL-ID% == "function")
710
  tabulate_answers_%POLL-ID%();
711
  if(typeof window.tabulate_results_%POLL-ID% == "function")
712
  tabulate_results_%POLL-ID%();
 
 
 
713
  });
714
 
715
  function equalWidth_%POLL-ID%(obj, cols, findWidest ) {
716
- findWidest = typeof findWidest !== "undefined" ? findWidest : false;
717
- if ( findWidest ) {
718
- obj.each(function() {
719
- var thisWidth = jQuery(this).width();
720
- width = parseInt(thisWidth / cols);
721
- jQuery(this).width(width);
722
- jQuery(this).css("float", "left");
723
- });
724
- }
725
- else {
726
- var widest = 0;
727
- obj.each(function() {
728
- var thisWidth = jQuery(this).width();
729
- if(thisWidth > widest) {
730
- widest = thisWidth;
731
- }
732
- });
733
- width = parseInt( %POLL-WIDTH% / cols[0]);
734
- obj.width(width-20);
735
- obj.css("float", "left");
736
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
737
  }
738
 
739
  function equalWidth2_%POLL-ID%(obj, cols, findWidest ) {
740
- findWidest = typeof findWidest !== "undefined" ? findWidest : false;
741
- if ( findWidest ) {
742
- obj.each(function() {
743
- var thisWidth = jQuery(this).width();
744
- width = parseInt(thisWidth / cols);
745
- jQuery(this).width(width);
746
- jQuery(this).css("float", "left");
747
- });
748
- }
749
- else {
750
- var widest = 0;
751
- obj.each(function() {
752
- var thisWidth = jQuery(this).width();
753
- if(thisWidth > widest) {
754
- widest = thisWidth;
755
- }
756
- });
757
- width = parseInt( %POLL-WIDTH% / cols[1]);
758
- obj.width(width-20);
759
- obj.css("float", "left");
760
- }
761
- }
 
 
 
 
 
 
 
 
 
 
762
 
 
 
 
 
 
 
 
 
 
763
  function tabulate_answers_%POLL-ID%() {
764
 
765
  equalWidth_%POLL-ID%( jQuery("#yop-poll-container-%POLL-ID% .yop-poll-li-answer-%POLL-ID%"), %ANSWERS-TABULATED-COLS% );
@@ -786,2618 +859,3954 @@ NOWDOC;
786
  case 'White':
787
  { //White
788
  $css = <<<NOWDOC
789
- #yop-poll-container-%POLL-ID% {
790
- width: %POLL-WIDTH%;
791
- background:#fff;
792
- padding:10px;
793
- color:#555;
794
- overflow:hidden;
795
- font-size:12px;
796
- }
797
- #yop-poll-container-%POLL-ID% input[type='text'] {
798
- margin:0px 0px 5px 0px;
799
- padding:2%;
800
- width:96%;
801
- text-indent:2%;
802
- font-size:12px;
803
- }
804
-
805
- .yop-poll-name-%POLL-ID% {
806
- font-size:14px;
807
- font-weight:bold;
808
- }
809
-
810
- #yop-poll-questions-container-%POLL-ID% {
811
- font-size:14px;
812
- margin:5px 0px;
813
- }
814
- .yop-poll-question-container-%POLL-ID% {
815
- padding: 2px;
816
- }
817
- .yop-poll-question-%POLL-ID% {
818
- font-style: italic;
819
- text-align: center;
820
- margin-bottom: 21px;
821
- margin-top: -10px;
822
- width: 100%;
823
- }
824
- .yop-poll-answers-%POLL-ID% { }
825
- .yop-poll-answers-%POLL-ID% ul {
826
- list-style: none outside none;
827
- margin: 0;
828
- padding: 0;
829
- }
830
- .yop-poll-li-answer-%POLL-ID% {
831
- font-style:normal;
832
- margin:0px 0px 10px 0px;
833
- padding:0px;
834
- font-size:12px;
835
- margin-bottom:20px;
836
- margin-bottom:20px;
837
- }
838
- .yop-poll-li-answer-%POLL-ID% input {
839
- margin:0px;
840
- float:none;
841
- }
842
- .yop-poll-li-answer-%POLL-ID% label {
843
- margin:0px;
844
- font-style:normal;
845
- font-weight:normal;
846
- font-size:12px;
847
- float:none;
848
- }
849
- .yop-poll-results-%POLL-ID% {
850
- font-size: 12px;
851
- font-style: italic;
852
- font-weight: normal;
853
- margin-left: 15px;
854
- }
855
-
856
- .yop-poll-customs-%POLL-ID% { }
857
- .yop-poll-customs-%POLL-ID% ul {
858
- list-style: none outside none;
859
- margin: 0;
860
- padding: 0;
861
- }
862
- .yop-poll-li-custom-%POLL-ID% {
863
- padding:0px;
864
- margin:0px;
865
- font-size:14px;
866
- }
867
-
868
- /* Start CAPTCHA div style*/
869
- #yop-poll-captcha-input-div-%POLL-ID% {
870
- margin-top:5px;
871
- }
872
- #yop-poll-captcha-helpers-div-%POLL-ID% {
873
- width:30px;
874
- float:left;
875
- margin-left:5px;
876
- height:0px;
877
- }
878
- #yop-poll-captcha-helpers-div-%POLL-ID% img {
879
- margin-bottom:2px;
880
- }
881
- #yop-poll-captcha-image-div-%POLL-ID% {
882
- margin-bottom:5px;
883
- }
884
- #yop_poll_captcha_image_%POLL-ID% {
885
- float:left;
886
- }
887
- /* End CAPTCHA div style*/
888
-
889
- .yop-poll-clear-%POLL-ID% {
890
- clear:both;
891
- }
892
-
893
- #yop-poll-vote-%POLL-ID% {
894
-
895
  }
896
-
897
- /* Start Result bar*/
898
- .yop-poll-results-bar-%POLL-ID% {
899
- background:#f5f5f5;
900
- height:10px;
 
 
 
 
901
  }
902
- .yop-poll-results-bar-%POLL-ID% div {
903
- background:#555;
904
- height:10px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
905
  }
906
- /* End Result bar*/
907
 
908
- /* Start Vote Button*/
909
- #yop-poll-vote-%POLL-ID% div#yop-poll-vote-%POLL-ID% button {
910
- float:left;
911
- }
912
  #yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% {
913
- float: right;
914
- margin-bottom: 20px;
915
- margin-top: -20px;
916
- width: auto;
917
  }
918
  #yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% a {
919
- color:#555;
920
- text-decoration:underline;
921
- font-size:12px;
922
  }
923
  #yop-poll-vote-%POLL-ID% div#yop-poll-back-%POLL-ID% a {
924
- color:#555;
925
- text-decoration:underline;
926
- font-size:12px;
927
- }#yop-poll-vote-%POLL-ID% div#yop-poll-archive-%POLL-ID% a {
928
- color:#555;
929
- text-decoration:underline;
930
- font-size:12px;
931
  }
932
- #yop-poll-vote-%POLL-ID% div {
933
- float:left;
934
- width:100%;
935
- }
936
- /* End Vote Button*/
937
-
938
- /* Start Messages*/
939
- #yop-poll-container-error-%POLL-ID% {
940
- font-size:12px;
941
- font-style:italic;
942
- color:red;
943
- text-transform:lowercase;
944
- margin-bottom:20px;
945
- text-align:center;
946
  }
947
- #yop-poll-container-success-%POLL-ID% {
948
- font-size:12px;
949
- font-style:italic;
950
- color:green;
951
- margin-bottom:20px;
952
- text-align:center;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
953
  }
954
- /* End Messages*/
 
 
955
 
956
- .yop-poll-clear-%POLL-ID% {
957
- clear: both;
958
- }
 
 
 
 
 
 
 
 
 
 
 
959
  NOWDOC;
960
  break;
961
  }
962
  case 'Grey':
963
  { //Grey
964
  $css = <<<NOWDOC
965
- #yop-poll-container-%POLL-ID% {
966
- width: %POLL-WIDTH%;
967
- background:#eee;
968
- padding:10px;
969
- color:#000;
970
- overflow:hidden;
971
- font-size:12px;
972
- }
973
- #yop-poll-container-%POLL-ID% input[type='text'] {
974
- margin:0px 0px 5px 0px;
975
- padding:2%;
976
- width:96%;
977
- text-indent:2%;
978
- font-size:12px;
979
- }
980
-
981
- .yop-poll-name-%POLL-ID% {
982
- font-size:14px;
983
- font-weight:bold;
984
- }
985
-
986
- #yop-poll-questions-container-%POLL-ID% {
987
- font-size:14px;
988
- margin:5px 0px;
989
- }
990
- .yop-poll-question-container-%POLL-ID% {
991
- padding: 2px;
992
- }
993
- .yop-poll-question-%POLL-ID% {
994
- margin-bottom: 21px;
995
- margin-top: -10px;
996
- font-style: italic;
997
- text-align: center;
998
- width: 100%;
999
- }
1000
- .yop-poll-answers-%POLL-ID% { }
1001
- .yop-poll-answers-%POLL-ID% ul {
1002
- list-style: none outside none;
1003
- margin: 0;
1004
- padding: 0;
1005
- }
1006
- .yop-poll-li-answer-%POLL-ID% {
1007
- font-style:normal;
1008
- margin:0px 0px 10px 0px;
1009
- padding:0px;
1010
- font-size:12px;
1011
- margin-bottom:20px;
1012
- }
1013
- .yop-poll-li-answer-%POLL-ID% input {
1014
- margin:0px;
1015
- float:none;
1016
- }
1017
- .yop-poll-li-answer-%POLL-ID% label {
1018
- margin:0px;
1019
- font-style:normal;
1020
- font-weight:normal;
1021
- font-size:12px;
1022
- float:none;
1023
- }
1024
- .yop-poll-results-%POLL-ID% {
1025
- font-size: 12px;
1026
- font-style: italic;
1027
- font-weight: normal;
1028
- margin-left: 15px;
1029
- }
1030
-
1031
- .yop-poll-customs-%POLL-ID% { }
1032
- .yop-poll-customs-%POLL-ID% ul {
1033
- list-style: none outside none;
1034
- margin: 0;
1035
- padding: 0;
1036
- }
1037
- .yop-poll-li-custom-%POLL-ID% {
1038
- padding:0px;
1039
- margin:0px;
1040
- font-size:14px;
1041
- }
1042
-
1043
- /* Start CAPTCHA div style*/
1044
- #yop-poll-captcha-input-div-%POLL-ID% {
1045
- margin-top:5px;
1046
- }
1047
- #yop-poll-captcha-helpers-div-%POLL-ID% {
1048
- width:30px;
1049
- float:left;
1050
- margin-left:5px;
1051
- height:0px;
1052
- }
1053
- #yop-poll-captcha-helpers-div-%POLL-ID% img {
1054
- margin-bottom:2px;
1055
- }
1056
- #yop-poll-captcha-image-div-%POLL-ID% {
1057
- margin-bottom:5px;
1058
- }
1059
- #yop_poll_captcha_image_%POLL-ID% {
1060
- float:left;
1061
- }
1062
- /* End CAPTCHA div style*/
1063
-
1064
- .yop-poll-clear-%POLL-ID% {
1065
- clear:both;
1066
- }
1067
-
1068
- #yop-poll-vote-%POLL-ID% {
1069
-
1070
  }
1071
-
1072
- /* Start Result bar*/
1073
- .yop-poll-results-bar-%POLL-ID% {
1074
- background:#f5f5f5;
1075
- height:10px;
 
 
 
 
1076
  }
1077
- .yop-poll-results-bar-%POLL-ID% div {
1078
- background:#555;
1079
- height:10px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1080
  }
1081
- /* End Result bar*/
1082
 
1083
- /* Start Vote Button*/
1084
- #yop-poll-vote-%POLL-ID% div#yop-poll-vote-%POLL-ID% button {
1085
- float:left;
1086
- }
1087
  #yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% {
1088
- float: right;
1089
- margin-bottom: 20px;
1090
- margin-top: -20px;
1091
- width: auto;
1092
  }
1093
  #yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% a {
1094
- color:#000;
1095
- text-decoration:underline;
1096
- font-size:12px;
1097
  }
1098
  #yop-poll-vote-%POLL-ID% div#yop-poll-back-%POLL-ID% a {
1099
- color:#000;
1100
- text-decoration:underline;
1101
- font-size:12px;
1102
- }#yop-poll-vote-%POLL-ID% div#yop-poll-archive-%POLL-ID% a {
1103
- color:#000;
1104
- text-decoration:underline;
1105
- font-size:12px;
1106
  }
1107
- #yop-poll-vote-%POLL-ID% div {
1108
- float:left;
1109
- width:100%;
1110
- }
1111
- /* End Vote Button*/
1112
-
1113
- /* Start Messages*/
1114
- #yop-poll-container-error-%POLL-ID% {
1115
- font-size:12px;
1116
- font-style:italic;
1117
- color:red;
1118
- text-transform:lowercase;
1119
- margin-bottom:20px;
1120
- text-align:center;
1121
- margin-bottom:20px;
1122
- text-align:center;
1123
  }
1124
- #yop-poll-container-success-%POLL-ID% {
1125
- font-size:12px;
1126
- font-style:italic;
1127
- color:green;
1128
- margin-bottom:20px;
1129
- text-align:center;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1130
  }
1131
- /* End Messages*/
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1132
  NOWDOC;
1133
  break;
1134
  }
1135
  case 'Dark':
1136
  { //Dark
1137
  $css = <<<NOWDOC
1138
- #yop-poll-container-%POLL-ID% {
1139
- width: %POLL-WIDTH%;
1140
- background:#555;
1141
- padding:10px;
1142
- color:#fff;
1143
- overflow:hidden;
1144
- font-size:12px;
1145
- }
1146
- #yop-poll-container-%POLL-ID% input[type='text'] {
1147
- margin:0px 0px 5px 0px;
1148
- padding:2%;
1149
- width:96%;
1150
- text-indent:2%;
1151
- font-size:12px;
1152
- }
1153
-
1154
- .yop-poll-name-%POLL-ID% {
1155
- font-size:14px;
1156
- font-weight:bold;
1157
- }
1158
-
1159
- #yop-poll-questions-container-%POLL-ID% {
1160
- font-size:14px;
1161
- margin:5px 0px;
1162
- }
1163
- .yop-poll-question-container-%POLL-ID% {
1164
- padding: 2px;
1165
- }
1166
- .yop-poll-question-%POLL-ID% {
1167
- margin-bottom: 21px;
1168
- margin-top: -10px;
1169
- font-style: italic;
1170
- text-align: center;
1171
- width: 100%;
1172
- }
1173
- .yop-poll-answers-%POLL-ID% { }
1174
- .yop-poll-answers-%POLL-ID% ul {
1175
- list-style: none outside none;
1176
- margin: 0;
1177
- padding: 0;
1178
- }
1179
- .yop-poll-li-answer-%POLL-ID% {
1180
- font-style:normal;
1181
- margin:0px 0px 10px 0px;
1182
- padding:0px;
1183
- font-size:12px;
1184
- margin-bottom:20px;
1185
- }
1186
- .yop-poll-li-answer-%POLL-ID% input {
1187
- margin:0px;
1188
- float:none;
1189
- }
1190
- .yop-poll-li-answer-%POLL-ID% label {
1191
- margin:0px;
1192
- font-style:normal;
1193
- font-weight:normal;
1194
- font-size:12px;
1195
- float:none;
1196
- }
1197
- .yop-poll-results-%POLL-ID% {
1198
- font-size: 12px;
1199
- font-style: italic;
1200
- font-weight: normal;
1201
- margin-left: 15px;
1202
- }
1203
-
1204
- .yop-poll-customs-%POLL-ID% { }
1205
- .yop-poll-customs-%POLL-ID% ul {
1206
- list-style: none outside none;
1207
- margin: 0;
1208
- padding: 0;
1209
- }
1210
- .yop-poll-li-custom-%POLL-ID% {
1211
- padding:0px;
1212
- margin:0px;
1213
- font-size:14px;
1214
- }
1215
-
1216
- /* Start CAPTCHA div style*/
1217
- #yop-poll-captcha-input-div-%POLL-ID% {
1218
- margin-top:5px;
1219
- }
1220
- #yop-poll-captcha-helpers-div-%POLL-ID% {
1221
- width:30px;
1222
- float:left;
1223
- margin-left:5px;
1224
- height:0px;
1225
- }
1226
- #yop-poll-captcha-helpers-div-%POLL-ID% img {
1227
- margin-bottom:2px;
1228
  }
1229
- #yop-poll-captcha-image-div-%POLL-ID% {
1230
- margin-bottom:5px;
1231
  }
1232
- #yop_poll_captcha_image_%POLL-ID% {
1233
- float:left;
 
 
 
 
 
 
 
1234
  }
1235
- /* End CAPTCHA div style*/
 
1236
 
1237
- .yop-poll-clear-%POLL-ID% {
1238
- clear:both;
1239
  }
1240
 
1241
- #yop-poll-vote-%POLL-ID% {
1242
 
1243
  }
1244
-
1245
- /* Start Result bar*/
1246
- .yop-poll-results-bar-%POLL-ID% {
1247
- background:#f5f5f5;
1248
- height:10px;
 
 
 
 
 
1249
  }
1250
- .yop-poll-results-bar-%POLL-ID% div {
1251
- background:#333333;
1252
- height:10px;
 
 
 
 
 
 
1253
  }
1254
- /* End Result bar*/
1255
-
1256
- /* Start Vote Button*/
1257
- #yop-poll-vote-%POLL-ID% div#yop-poll-vote-%POLL-ID% button {
1258
- float:left;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1259
  }
 
1260
  #yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% {
1261
- float: right;
1262
- margin-bottom: 20px;
1263
- margin-top: -20px;
1264
- width: auto;
1265
  }
1266
  #yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% a {
1267
- color:#fff;
1268
- text-decoration:underline;
1269
- font-size:12px;
1270
  }
1271
  #yop-poll-vote-%POLL-ID% div#yop-poll-back-%POLL-ID% a {
1272
- color:#fff;
1273
- text-decoration:underline;
1274
- font-size:12px;
1275
- }#yop-poll-vote-%POLL-ID% div#yop-poll-archive-%POLL-ID% a {
1276
- color:#fff;
1277
- text-decoration:underline;
1278
- font-size:12px;
1279
  }
1280
- #yop-poll-vote-%POLL-ID% div {
1281
- float:left;
1282
- width:100%;
1283
- }
1284
- /* End Vote Button*/
1285
-
1286
- /* Start Messages*/
1287
- #yop-poll-container-error-%POLL-ID% {
1288
- font-size:12px;
1289
- font-style:italic;
1290
- color:red;
1291
- text-transform:lowercase;
1292
- margin-bottom:20px;
1293
- text-align:center;
1294
  }
1295
- #yop-poll-container-success-%POLL-ID% {
1296
- font-size:12px;
1297
- font-style:italic;
1298
- color:green;
1299
- margin-bottom:20px;
1300
- text-align:center;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1301
  }
1302
- /* End Messages*/
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1303
  NOWDOC;
1304
  break;
1305
  }
1306
  case 'Blue v1':
1307
  { //Blue v1
1308
  $css = <<<NOWDOC
1309
- #yop-poll-container-%POLL-ID% {
1310
- width: %POLL-WIDTH%;
1311
- background:#327BD6;
1312
- padding:10px;
1313
- color:#fff;
1314
- overflow:hidden;
1315
- font-size:12px;
1316
- }
1317
- #yop-poll-container-%POLL-ID% input[type='text'] {
1318
- margin:0px 0px 5px 0px;
1319
- padding:2%;
1320
- width:96%;
1321
- text-indent:2%;
1322
- font-size:12px;
1323
- }
1324
-
1325
- .yop-poll-name-%POLL-ID% {
1326
- font-size:14px;
1327
- font-weight:bold;
1328
- }
1329
-
1330
- #yop-poll-questions-container-%POLL-ID% {
1331
- font-size:14px;
1332
- margin:5px 0px;
1333
- }
1334
- .yop-poll-question-container-%POLL-ID% {
1335
- padding: 2px;
1336
- }
1337
- .yop-poll-question-%POLL-ID% {
1338
- margin-bottom: 21px;
1339
- margin-top: -10px;
1340
- font-style: italic;
1341
- text-align: center;
1342
- width: 100%;
1343
- }
1344
- .yop-poll-answers-%POLL-ID% { }
1345
- .yop-poll-answers-%POLL-ID% ul {
1346
- list-style: none outside none;
1347
- margin: 0;
1348
- padding: 0;
1349
- }
1350
- .yop-poll-li-answer-%POLL-ID% {
1351
- font-style:normal;
1352
- margin:0px 0px 10px 0px;
1353
- padding:0px;
1354
- font-size:12px;
1355
- margin-bottom:20px;
1356
- }
1357
- .yop-poll-li-answer-%POLL-ID% input {
1358
- margin:0px;
1359
- float:none;
1360
- }
1361
- .yop-poll-li-answer-%POLL-ID% label {
1362
- margin:0px;
1363
- font-style:normal;
1364
- font-weight:normal;
1365
- font-size:12px;
1366
- float:none;
1367
- }
1368
- .yop-poll-results-%POLL-ID% {
1369
- font-size: 12px;
1370
- font-style: italic;
1371
- font-weight: normal;
1372
- margin-left: 15px;
1373
- }
1374
-
1375
- .yop-poll-customs-%POLL-ID% { }
1376
- .yop-poll-customs-%POLL-ID% ul {
1377
- list-style: none outside none;
1378
- margin: 0;
1379
- padding: 0;
1380
- }
1381
- .yop-poll-li-custom-%POLL-ID% {
1382
- padding:0px;
1383
- margin:0px;
1384
- font-size:14px;
1385
- }
1386
-
1387
- /* Start CAPTCHA div style*/
1388
- #yop-poll-captcha-input-div-%POLL-ID% {
1389
- margin-top:5px;
1390
- }
1391
- #yop-poll-captcha-helpers-div-%POLL-ID% {
1392
- width:30px;
1393
- float:left;
1394
- margin-left:5px;
1395
- height:0px;
1396
- }
1397
- #yop-poll-captcha-helpers-div-%POLL-ID% img {
1398
- margin-bottom:2px;
1399
  }
1400
- #yop-poll-captcha-image-div-%POLL-ID% {
1401
- margin-bottom:5px;
1402
  }
1403
- #yop_poll_captcha_image_%POLL-ID% {
1404
- float:left;
 
 
 
 
 
 
 
1405
  }
1406
- /* End CAPTCHA div style*/
 
1407
 
1408
- .yop-poll-clear-%POLL-ID% {
1409
- clear:both;
1410
  }
1411
 
1412
- #yop-poll-vote-%POLL-ID% {
1413
 
1414
  }
1415
-
1416
- /* Start Result bar*/
1417
- .yop-poll-results-bar-%POLL-ID% {
1418
- background:#f5f5f5;
1419
- height:10px;
 
 
 
 
 
1420
  }
1421
- .yop-poll-results-bar-%POLL-ID% div {
1422
- background:#555;
1423
- height:10px;
 
 
 
 
 
 
1424
  }
1425
- /* End Result bar*/
1426
-
1427
- /* Start Vote Button*/
1428
- #yop-poll-vote-%POLL-ID% div#yop-poll-vote-%POLL-ID% button {
1429
- float:left;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1430
  }
 
1431
  #yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% {
1432
- float: right;
1433
- margin-bottom: 20px;
1434
- margin-top: -20px;
1435
- width: auto;
1436
  }
1437
  #yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% a {
1438
- color:#fff;
1439
- text-decoration:underline;
1440
- font-size:12px;
1441
  }
1442
  #yop-poll-vote-%POLL-ID% div#yop-poll-back-%POLL-ID% a {
1443
- color:#fff;
1444
- text-decoration:underline;
1445
- font-size:12px;
1446
  }
1447
  #yop-poll-vote-%POLL-ID% div#yop-poll-archive-%POLL-ID% a {
1448
- color:#fff;
1449
- text-decoration:underline;
1450
- font-size:12px;
1451
  }
1452
  #yop-poll-vote-%POLL-ID% div {
1453
- float:left;
1454
- width:100%;
1455
- }
1456
- /* End Vote Button*/
1457
-
1458
- /* Start Messages*/
1459
- #yop-poll-container-error-%POLL-ID% {
1460
- font-size:12px;
1461
- font-style:italic;
1462
- color:red;
1463
- text-transform:lowercase;
1464
- margin-bottom:20px;
1465
- text-align:center;
1466
- }
1467
- #yop-poll-container-success-%POLL-ID% {
1468
- font-size:12px;
1469
- font-style:italic;
1470
- color:green;
1471
- margin-bottom:20px;
1472
- text-align:center;
 
 
 
 
 
 
1473
  }
1474
- /* End Messages*/
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1475
  NOWDOC;
1476
  break;
1477
  }
1478
  case 'Blue v2':
1479
  { //Blue v2
1480
  $css = <<<NOWDOC
1481
- #yop-poll-container-%POLL-ID% {
1482
- width: %POLL-WIDTH%;
1483
- background:#fff;
1484
- padding:10px;
1485
- color:#555;
1486
- overflow:hidden;
1487
- font-size:12px;
1488
- }
1489
- #yop-poll-container-%POLL-ID% input[type='text'] {
1490
- margin:0px 0px 5px 0px;
1491
- padding:2%;
1492
- width:96%;
1493
- text-indent:2%;
1494
- font-size:12px;
1495
- }
1496
-
1497
- .yop-poll-name-%POLL-ID% {
1498
- font-weight:bold;
1499
- background:#327BD6;
1500
- color:#fff;
1501
- padding:5px;
1502
- text-align:center;
1503
- font-size:12px;
1504
- }
1505
-
1506
- #yop-poll-questions-container-%POLL-ID% {
1507
- font-size:14px;
1508
- margin:5px 0px;
1509
- }
1510
- .yop-poll-question-container-%POLL-ID% {
1511
- padding: 2px;
1512
- }
1513
- .yop-poll-question-%POLL-ID% {
1514
- background:#327BD6;
1515
- color:#fff;
1516
- margin-bottom: 21px;
1517
- margin-top: -10px;
1518
- font-style: italic;
1519
- text-align: center;
1520
- width: 100%;
1521
- padding:5px;
1522
- }
1523
- .yop-poll-answers-%POLL-ID% { }
1524
- .yop-poll-answers-%POLL-ID% ul {
1525
- list-style: none outside none;
1526
- margin: 0;
1527
- padding: 0;
1528
- }
1529
- .yop-poll-li-answer-%POLL-ID% {
1530
- font-style:normal;
1531
- margin:0px 0px 10px 0px;
1532
- padding:0px;
1533
- font-size:12px;
1534
- margin-bottom:20px;
1535
- }
1536
- .yop-poll-li-answer-%POLL-ID% input {
1537
- margin:0px;
1538
- float:none;
1539
- }
1540
- .yop-poll-li-answer-%POLL-ID% label {
1541
- margin:0px;
1542
- font-style:normal;
1543
- font-weight:normal;
1544
- font-size:12px;
1545
- float:none;
1546
- }
1547
- .yop-poll-results-%POLL-ID% {
1548
- font-size: 12px;
1549
- font-style: italic;
1550
- font-weight: normal;
1551
- margin-left: 15px;
1552
- }
1553
-
1554
- .yop-poll-customs-%POLL-ID% { }
1555
- .yop-poll-customs-%POLL-ID% ul {
1556
- list-style: none outside none;
1557
- margin: 0;
1558
- padding: 0;
1559
- }
1560
- .yop-poll-li-custom-%POLL-ID% {
1561
- padding:0px;
1562
- margin:0px;
1563
- font-size:14px;
1564
- }
1565
-
1566
- /* Start CAPTCHA div style*/
1567
- #yop-poll-captcha-input-div-%POLL-ID% {
1568
- margin-top:5px;
1569
- }
1570
- #yop-poll-captcha-helpers-div-%POLL-ID% {
1571
- width:30px;
1572
- float:left;
1573
- margin-left:5px;
1574
- height:0px;
1575
- }
1576
- #yop-poll-captcha-helpers-div-%POLL-ID% img {
1577
- margin-bottom:2px;
1578
  }
1579
- #yop-poll-captcha-image-div-%POLL-ID% {
1580
- margin-bottom:5px;
1581
  }
1582
- #yop_poll_captcha_image_%POLL-ID% {
1583
- float:left;
 
 
 
 
 
 
 
1584
  }
1585
- /* End CAPTCHA div style*/
 
1586
 
1587
- .yop-poll-clear-%POLL-ID% {
1588
- clear:both;
1589
  }
1590
 
1591
- #yop-poll-vote-%POLL-ID% {
1592
 
1593
  }
1594
-
1595
- /* Start Result bar*/
1596
- .yop-poll-results-bar-%POLL-ID% {
1597
- background:#f5f5f5;
1598
- height:10px;
 
 
 
 
 
1599
  }
1600
- .yop-poll-results-bar-%POLL-ID% div {
1601
- background:#555;
1602
- height:10px;
 
 
 
 
 
 
1603
  }
1604
- /* End Result bar*/
1605
-
1606
- /* Start Vote Button*/
1607
- #yop-poll-vote-%POLL-ID% div#yop-poll-vote-%POLL-ID% button {
1608
- float:left;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1609
  }
 
1610
  #yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% {
1611
- float: right;
1612
- margin-bottom: 20px;
1613
- margin-top: -20px;
1614
- width: auto;
1615
  }
1616
  #yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% a {
1617
- color:#fff;
1618
- text-decoration:underline;
1619
- font-size:12px;
1620
  }
1621
  #yop-poll-vote-%POLL-ID% div#yop-poll-back-%POLL-ID% a {
1622
- color:#555;
1623
- text-decoration:underline;
1624
- font-size:12px;
1625
  }
1626
  #yop-poll-vote-%POLL-ID% div#yop-poll-archive-%POLL-ID% a {
1627
- color:#555;
1628
- text-decoration:underline;
1629
- font-size:12px;
1630
  }
1631
  #yop-poll-vote-%POLL-ID% div {
1632
- float:left;
1633
- width:100%;
1634
- }
1635
- /* End Vote Button*/
1636
-
1637
- /* Start Messages*/
1638
- #yop-poll-container-error-%POLL-ID% {
1639
- font-size:12px;
1640
- font-style:italic;
1641
- color:red;
1642
- text-transform:lowercase;
1643
- margin-bottom:20px;
1644
- text-align:center;
1645
- }
1646
- #yop-poll-container-success-%POLL-ID% {
1647
- font-size:12px;
1648
- font-style:italic;
1649
- color:green;
1650
- margin-bottom:20px;
1651
- text-align:center;
 
 
 
 
 
 
1652
  }
1653
- /* End Messages*/
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1654
  NOWDOC;
1655
  break;
1656
  }
1657
  case 'Blue v3':
1658
  { //Blue v3
1659
  $css = <<<NOWDOC
1660
- #yop-poll-container-%POLL-ID% {
1661
- width: %POLL-WIDTH%;
1662
- background:#fff;
1663
- padding:10px;
1664
- color:#555;
1665
- overflow:hidden;
1666
- font-size:12px;
1667
- border: 5px solid #327BD6;
1668
- }
1669
- #yop-poll-container-%POLL-ID% input[type='text'] {
1670
- margin:0px 0px 5px 0px;
1671
- padding:2%;
1672
- width:96%;
1673
- text-indent:2%;
1674
- font-size:12px;
1675
- }
1676
-
1677
- .yop-poll-name-%POLL-ID% {
1678
- font-size:14px;
1679
- font-weight:bold;
1680
- }
1681
-
1682
- #yop-poll-questions-container-%POLL-ID% {
1683
- font-size:14px;
1684
- margin:5px 0px;
1685
- }
1686
- .yop-poll-question-container-%POLL-ID% {
1687
- padding: 2px;
1688
- }
1689
- .yop-poll-question-%POLL-ID% {
1690
- margin-bottom: 21px;
1691
- margin-top: -10px;
1692
- font-style: italic;
1693
- text-align: center;
1694
- width: 100%;
1695
- }
1696
- .yop-poll-answers-%POLL-ID% { }
1697
- .yop-poll-answers-%POLL-ID% ul {
1698
- list-style: none outside none;
1699
- margin: 0;
1700
- padding: 0;
1701
- }
1702
- .yop-poll-li-answer-%POLL-ID% {
1703
- font-style:normal;
1704
- margin:0px 0px 10px 0px;
1705
- padding:0px;
1706
- font-size:12px;
1707
- margin-bottom:20px;
1708
- }
1709
- .yop-poll-li-answer-%POLL-ID% input {
1710
- margin:0px;
1711
- float:none;
1712
- }
1713
- .yop-poll-li-answer-%POLL-ID% label {
1714
- margin:0px;
1715
- font-style:normal;
1716
- font-weight:normal;
1717
- font-size:12px;
1718
- float:none;
1719
- }
1720
- .yop-poll-results-%POLL-ID% {
1721
- font-size: 12px;
1722
- font-style: italic;
1723
- font-weight: normal;
1724
- margin-left: 15px;
1725
- }
1726
-
1727
- .yop-poll-customs-%POLL-ID% { }
1728
- .yop-poll-customs-%POLL-ID% ul {
1729
- list-style: none outside none;
1730
- margin: 0;
1731
- padding: 0;
1732
- }
1733
- .yop-poll-li-custom-%POLL-ID% {
1734
- padding:0px;
1735
- margin:0px;
1736
- font-size:14px;
1737
- }
1738
-
1739
- /* Start CAPTCHA div style*/
1740
- #yop-poll-captcha-input-div-%POLL-ID% {
1741
- margin-top:5px;
1742
- }
1743
- #yop-poll-captcha-helpers-div-%POLL-ID% {
1744
- width:30px;
1745
- float:left;
1746
- margin-left:5px;
1747
- height:0px;
1748
- }
1749
- #yop-poll-captcha-helpers-div-%POLL-ID% img {
1750
- margin-bottom:2px;
1751
- }
1752
- #yop-poll-captcha-image-div-%POLL-ID% {
1753
- margin-bottom:5px;
1754
- }
1755
- #yop_poll_captcha_image_%POLL-ID% {
1756
- float:left;
1757
- }
1758
- /* End CAPTCHA div style*/
1759
-
1760
- .yop-poll-clear-%POLL-ID% {
1761
- clear:both;
1762
- }
1763
-
1764
- #yop-poll-vote-%POLL-ID% {
1765
-
1766
  }
1767
-
1768
- /* Start Result bar*/
1769
- .yop-poll-results-bar-%POLL-ID% {
1770
- background:#f5f5f5;
1771
- height:10px;
 
 
 
 
1772
  }
1773
- .yop-poll-results-bar-%POLL-ID% div {
1774
- background:#555;
1775
- height:10px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1776
  }
1777
- /* End Result bar*/
1778
 
1779
- /* Start Vote Button*/
1780
- #yop-poll-vote-%POLL-ID% div#yop-poll-vote-%POLL-ID% button {
1781
- float:left;
1782
- }
1783
  #yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% {
1784
- float: right;
1785
- margin-bottom: 20px;
1786
- margin-top: -20px;
1787
- width: auto;
1788
  }
1789
  #yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% a {
1790
- color:#555;
1791
- text-decoration:underline;
1792
- font-size:12px;
1793
  }
1794
  #yop-poll-vote-%POLL-ID% div#yop-poll-back-%POLL-ID% a {
1795
- color:#555;
1796
- text-decoration:underline;
1797
- font-size:12px;
1798
  }
1799
  #yop-poll-vote-%POLL-ID% div#yop-poll-archive-%POLL-ID% a {
1800
- color:#555;
1801
- text-decoration:underline;
1802
- font-size:12px;
1803
  }
1804
  #yop-poll-vote-%POLL-ID% div {
1805
- float:left;
1806
- width:100%;
1807
- }
1808
- /* End Vote Button*/
1809
-
1810
- /* Start Messages*/
1811
- #yop-poll-container-error-%POLL-ID% {
1812
- font-size:12px;
1813
- font-style:italic;
1814
- color:red;
1815
- text-transform:lowercase;
1816
- margin-bottom:20px;
1817
- text-align:center;
1818
- }
1819
- #yop-poll-container-success-%POLL-ID% {
1820
- font-size:12px;
1821
- font-style:italic;
1822
- color:green;
1823
- margin-bottom:20px;
1824
- text-align:center;
 
 
 
 
 
 
1825
  }
1826
- /* End Messages*/
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1827
  NOWDOC;
1828
  break;
1829
  }
1830
  case 'Red v1':
1831
  { //Red v1
1832
  $css = <<<NOWDOC
1833
- #yop-poll-container-%POLL-ID% {
1834
- width: %POLL-WIDTH%;
1835
- background:#B70004;
1836
- padding:10px;
1837
- color:#fff;
1838
- overflow:hidden;
1839
- font-size:12px;
1840
- }
1841
- #yop-poll-container-%POLL-ID% input[type='text'] {
1842
- margin:0px 0px 5px 0px;
1843
- padding:2%;
1844
- width:96%;
1845
- text-indent:2%;
1846
- font-size:12px;
1847
- }
1848
-
1849
- .yop-poll-name-%POLL-ID% {
1850
- font-size:14px;
1851
- font-weight:bold;
1852
- }
1853
-
1854
- #yop-poll-questions-container-%POLL-ID% {
1855
- font-size:14px;
1856
- margin:5px 0px;
1857
- }
1858
- .yop-poll-question-container-%POLL-ID% {
1859
- padding: 2px;
1860
- }
1861
- .yop-poll-question-%POLL-ID% {
1862
- margin-bottom: 21px;
1863
- margin-top: -10px;
1864
- font-style: italic;
1865
- text-align: center;
1866
- width: 100%;
1867
- }
1868
- .yop-poll-answers-%POLL-ID% { }
1869
- .yop-poll-answers-%POLL-ID% ul {
1870
- list-style: none outside none;
1871
- margin: 0;
1872
- padding: 0;
1873
- }
1874
- .yop-poll-li-answer-%POLL-ID% {
1875
- font-style:normal;
1876
- margin:0px 0px 10px 0px;
1877
- padding:0px;
1878
- font-size:12px;
1879
- margin-bottom:20px;
1880
- }
1881
- .yop-poll-li-answer-%POLL-ID% input {
1882
- margin:0px;
1883
- float:none;
1884
- }
1885
- .yop-poll-li-answer-%POLL-ID% label {
1886
- margin:0px;
1887
- font-style:normal;
1888
- font-weight:normal;
1889
- font-size:12px;
1890
- float:none;
1891
- }
1892
- .yop-poll-results-%POLL-ID% {
1893
- font-size: 12px;
1894
- font-style: italic;
1895
- font-weight: normal;
1896
- margin-left: 15px;
1897
- }
1898
-
1899
- .yop-poll-customs-%POLL-ID% { }
1900
- .yop-poll-customs-%POLL-ID% ul {
1901
- list-style: none outside none;
1902
- margin: 0;
1903
- padding: 0;
1904
- }
1905
- .yop-poll-li-custom-%POLL-ID% {
1906
- padding:0px;
1907
- margin:0px;
1908
- font-size:14px;
1909
- }
1910
-
1911
- /* Start CAPTCHA div style*/
1912
- #yop-poll-captcha-input-div-%POLL-ID% {
1913
- margin-top:5px;
1914
- }
1915
- #yop-poll-captcha-helpers-div-%POLL-ID% {
1916
- width:30px;
1917
- float:left;
1918
- margin-left:5px;
1919
- height:0px;
1920
- }
1921
- #yop-poll-captcha-helpers-div-%POLL-ID% img {
1922
- margin-bottom:2px;
1923
  }
1924
- #yop-poll-captcha-image-div-%POLL-ID% {
1925
- margin-bottom:5px;
1926
  }
1927
- #yop_poll_captcha_image_%POLL-ID% {
1928
- float:left;
 
 
 
 
 
 
 
1929
  }
1930
- /* End CAPTCHA div style*/
 
1931
 
1932
- .yop-poll-clear-%POLL-ID% {
1933
- clear:both;
1934
  }
1935
 
1936
- #yop-poll-vote-%POLL-ID% {
1937
 
1938
  }
1939
-
1940
- /* Start Result bar*/
1941
- .yop-poll-results-bar-%POLL-ID% {
1942
- background:#f5f5f5;
1943
- height:10px;
 
 
 
 
 
1944
  }
1945
- .yop-poll-results-bar-%POLL-ID% div {
1946
- background:#555;
1947
- height:10px;
 
 
 
 
 
 
1948
  }
1949
- /* End Result bar*/
1950
-
1951
- /* Start Vote Button*/
1952
- #yop-poll-vote-%POLL-ID% div#yop-poll-vote-%POLL-ID% button {
1953
- float:left;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1954
  }
 
1955
  #yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% {
1956
- float: right;
1957
- margin-bottom: 20px;
1958
- margin-top: -20px;
1959
- width: auto;
1960
  }
1961
  #yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% a {
1962
- color:#fff;
1963
- text-decoration:underline;
1964
- font-size:12px;
1965
  }
1966
  #yop-poll-vote-%POLL-ID% div#yop-poll-back-%POLL-ID% a {
1967
- color:#fff;
1968
- text-decoration:underline;
1969
- font-size:12px;
1970
  }
1971
  #yop-poll-vote-%POLL-ID% div#yop-poll-archive-%POLL-ID% a {
1972
- color:#fff;
1973
- text-decoration:underline;
1974
- font-size:12px;
1975
  }
1976
  #yop-poll-vote-%POLL-ID% div {
1977
- float:left;
1978
- width:100%;
1979
- }
1980
- /* End Vote Button*/
1981
-
1982
- /* Start Messages*/
1983
- #yop-poll-container-error-%POLL-ID% {
1984
- font-size:12px;
1985
- font-style:italic;
1986
- color:red;
1987
- text-transform:lowercase;
1988
- margin-bottom:20px;
1989
- text-align:center;
1990
- }
1991
- #yop-poll-container-success-%POLL-ID% {
1992
- font-size:12px;
1993
- font-style:italic;
1994
- color:green;
1995
- margin-bottom:20px;
1996
- text-align:center;
 
 
 
 
 
 
1997
  }
1998
- /* End Messages*/
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1999
  NOWDOC;
2000
  break;
2001
  }
2002
  case 'Red v2':
2003
  { //Red v2
2004
  $css = <<<NOWDOC
2005
- #yop-poll-container-%POLL-ID% {
2006
- width: %POLL-WIDTH%;
2007
- background:#fff;
2008
- padding:0px;
2009
- color:#555;
2010
- overflow:hidden;
2011
- font-size:12px;
2012
- }
2013
- #yop-poll-container-%POLL-ID% input[type='text'] {
2014
- margin:0px 0px 5px 0px;
2015
- padding:2%;
2016
- width:96%;
2017
- text-indent:2%;
2018
- font-size:12px;
2019
- }
2020
-
2021
- .yop-poll-name-%POLL-ID% {
2022
- font-weight:bold;
2023
- background:#B70004;
2024
- color:#fff;
2025
- padding:5px;
2026
- text-align:center;
2027
- font-size:12px;
2028
- }
2029
-
2030
- #yop-poll-questions-container-%POLL-ID% {
2031
- font-size:14px;
2032
- margin:5px 0px;
2033
- }
2034
- .yop-poll-question-container-%POLL-ID% {
2035
- padding: 2px;
2036
- }
2037
- .yop-poll-question-%POLL-ID% {
2038
- margin-bottom: 21px;
2039
- background:#B70004;
2040
- color:#fff;
2041
- margin-top: -10px;
2042
- font-style: italic;
2043
- text-align: center;
2044
- width: 100%;
2045
- padding:5px;
2046
- }
2047
- .yop-poll-answers-%POLL-ID% { }
2048
- .yop-poll-answers-%POLL-ID% ul {
2049
- list-style: none outside none;
2050
- margin: 0;
2051
- padding: 0;
2052
- }
2053
- .yop-poll-li-answer-%POLL-ID% {
2054
- font-style:normal;
2055
- margin:0px 0px 10px 0px;
2056
- padding:0px;
2057
- font-size:12px;
2058
- margin-bottom:20px;
2059
- }
2060
- .yop-poll-li-answer-%POLL-ID% input {
2061
- margin:0px;
2062
- float:none;
2063
- }
2064
- .yop-poll-li-answer-%POLL-ID% label {
2065
- margin:0px;
2066
- font-style:normal;
2067
- font-weight:normal;
2068
- font-size:12px;
2069
- float:none;
2070
- }
2071
- .yop-poll-results-%POLL-ID% {
2072
- font-size: 12px;
2073
- font-style: italic;
2074
- font-weight: normal;
2075
- margin-left: 15px;
2076
- }
2077
-
2078
- .yop-poll-customs-%POLL-ID% { }
2079
- .yop-poll-customs-%POLL-ID% ul {
2080
- list-style: none outside none;
2081
- margin: 0;
2082
- padding: 0;
2083
- }
2084
- .yop-poll-li-custom-%POLL-ID% {
2085
- padding:0px;
2086
- margin:0px;
2087
- font-size:14px;
2088
- }
2089
-
2090
- /* Start CAPTCHA div style*/
2091
- #yop-poll-captcha-input-div-%POLL-ID% {
2092
- margin-top:5px;
2093
- }
2094
- #yop-poll-captcha-helpers-div-%POLL-ID% {
2095
- width:30px;
2096
- float:left;
2097
- margin-left:5px;
2098
- height:0px;
2099
- }
2100
- #yop-poll-captcha-helpers-div-%POLL-ID% img {
2101
- margin-bottom:2px;
2102
- }
2103
- #yop-poll-captcha-image-div-%POLL-ID% {
2104
- margin-bottom:5px;
2105
- }
2106
- #yop_poll_captcha_image_%POLL-ID% {
2107
- float:left;
2108
- }
2109
- /* End CAPTCHA div style*/
2110
-
2111
- .yop-poll-clear-%POLL-ID% {
2112
- clear:both;
2113
  }
2114
-
2115
- #yop-poll-vote-%POLL-ID% {}
2116
-
2117
- /* Start Result bar*/
2118
- .yop-poll-results-bar-%POLL-ID% {
2119
- background:#f5f5f5;
2120
- height:10px;
 
 
2121
  }
2122
- .yop-poll-results-bar-%POLL-ID% div {
2123
- background:#555;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2124
  }
2125
- /* End Result bar*/
2126
 
2127
- /* Start Vote Button*/
2128
- #yop-poll-vote-%POLL-ID% div#yop-poll-vote-%POLL-ID% button {
2129
- float:left;
2130
- }
2131
  #yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% {
2132
- float: right;
2133
- margin-bottom: 20px;
2134
- margin-top: -20px;
2135
- width: auto;
2136
  }
2137
  #yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% a {
2138
- color:#B70004;
2139
- text-decoration:underline;
2140
- font-size:12px;
2141
  }
2142
  #yop-poll-vote-%POLL-ID% div#yop-poll-back-%POLL-ID% a {
2143
- color:#B70004;
2144
- text-decoration:underline;
2145
- font-size:12px;
2146
  }
2147
  #yop-poll-vote-%POLL-ID% div#yop-poll-archive-%POLL-ID% a {
2148
- color:#B70004;
2149
- text-decoration:underline;
2150
- font-size:12px;
2151
  }
2152
  #yop-poll-vote-%POLL-ID% div {
2153
- float:left;
2154
- width:100%;
2155
- }
2156
- /* End Vote Button*/
2157
-
2158
- /* Start Messages*/
2159
- #yop-poll-container-error-%POLL-ID% {
2160
- font-size:12px;
2161
- font-style:italic;
2162
- color:red;
2163
- text-transform: capitalize;
2164
- margin-bottom:20px;
2165
- text-align:center;
2166
- }
2167
- #yop-poll-container-success-%POLL-ID% {
2168
- font-size:12px;
2169
- font-style:italic;
2170
- color:green;
2171
- margin-bottom:20px;
2172
- text-align:center;
 
 
 
 
 
 
2173
  }
2174
- /* End Messages*/
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2175
  NOWDOC;
2176
  break;
2177
  }
2178
  case 'Red v3':
2179
  { //Red v3
2180
  $css = <<<NOWDOC
2181
- #yop-poll-container-%POLL-ID% {
2182
- width: %POLL-WIDTH%;
2183
- background:#fff;
2184
- padding:10px;
2185
- color:#555;
2186
- overflow:hidden;
2187
- font-size:12px;
2188
- border:5px solid #B70004;
2189
- }
2190
- #yop-poll-container-%POLL-ID% input[type='text'] {
2191
- margin:0px 0px 5px 0px;
2192
- padding:2%;
2193
- width:96%;
2194
- text-indent:2%;
2195
- font-size:12px;
2196
- }
2197
-
2198
- .yop-poll-name-%POLL-ID% {
2199
- font-weight:bold;
2200
- font-size:14px;
2201
- }
2202
-
2203
- #yop-poll-questions-container-%POLL-ID% {
2204
- font-size:14px;
2205
- margin:5px 0px;
2206
- }
2207
- .yop-poll-question-container-%POLL-ID% {
2208
- padding: 2px;
2209
- }
2210
- .yop-poll-question-%POLL-ID% {
2211
- margin-bottom: 21px;
2212
- margin-top: -10px;
2213
- font-style: italic;
2214
- text-align: center;
2215
- width: 100%;
2216
- }
2217
- .yop-poll-answers-%POLL-ID% { }
2218
- .yop-poll-answers-%POLL-ID% ul {
2219
- list-style: none outside none;
2220
- margin: 0;
2221
- padding: 0;
2222
- }
2223
- .yop-poll-li-answer-%POLL-ID% {
2224
- font-style:normal;
2225
- margin:0px 0px 10px 0px;
2226
- padding:0px;
2227
- font-size:12px;
2228
- margin-bottom:20px;
2229
- }
2230
- .yop-poll-li-answer-%POLL-ID% input {
2231
- margin:0px;
2232
- float:none;
2233
- }
2234
- .yop-poll-li-answer-%POLL-ID% label {
2235
- margin:0px;
2236
- font-style:normal;
2237
- font-weight:normal;
2238
- font-size:12px;
2239
- float:none;
2240
- }
2241
- .yop-poll-results-%POLL-ID% {
2242
- font-size: 12px;
2243
- font-style: italic;
2244
- font-weight: normal;
2245
- margin-left: 15px;
2246
- }
2247
-
2248
- .yop-poll-customs-%POLL-ID% { }
2249
- .yop-poll-customs-%POLL-ID% ul {
2250
- list-style: none outside none;
2251
- margin: 0;
2252
- padding: 0;
2253
- }
2254
- .yop-poll-li-custom-%POLL-ID% {
2255
- padding:0px;
2256
- margin:0px;
2257
- font-size:14px;
2258
- }
2259
-
2260
- /* Start CAPTCHA div style*/
2261
- #yop-poll-captcha-input-div-%POLL-ID% {
2262
- margin-top:5px;
2263
- }
2264
- #yop-poll-captcha-helpers-div-%POLL-ID% {
2265
- width:30px;
2266
- float:left;
2267
- margin-left:5px;
2268
- height:0px;
2269
- }
2270
- #yop-poll-captcha-helpers-div-%POLL-ID% img {
2271
- margin-bottom:2px;
2272
- }
2273
- #yop-poll-captcha-image-div-%POLL-ID% {
2274
- margin-bottom:5px;
2275
- }
2276
- #yop_poll_captcha_image_%POLL-ID% {
2277
- float:left;
2278
- }
2279
- /* End CAPTCHA div style*/
2280
-
2281
- .yop-poll-clear-%POLL-ID% {
2282
- clear:both;
2283
- }
2284
-
2285
- #yop-poll-vote-%POLL-ID% {
2286
-
2287
  }
2288
-
2289
- /* Start Result bar*/
2290
- .yop-poll-results-bar-%POLL-ID% {
2291
- background:#f5f5f5;
2292
- height:10px;
 
 
 
 
2293
  }
2294
- .yop-poll-results-bar-%POLL-ID% div {
2295
- background:#555;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2296
  }
2297
- /* End Result bar*/
2298
 
2299
- /* Start Vote Button*/
2300
- #yop-poll-vote-%POLL-ID% div#yop-poll-vote-%POLL-ID% button {
2301
- float:left;
2302
- }
2303
  #yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% {
2304
- float: right;
2305
- margin-bottom: 20px;
2306
- margin-top: -20px;
2307
- width: auto;
2308
  }
2309
  #yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% a {
2310
- color:#B70004;
2311
- text-decoration:underline;
2312
- font-size:12px;
2313
  }
2314
  #yop-poll-vote-%POLL-ID% div#yop-poll-back-%POLL-ID% a {
2315
- color:#B70004;
2316
- text-decoration:underline;
2317
- font-size:12px;
2318
  }
2319
  #yop-poll-vote-%POLL-ID% div#yop-poll-archive-%POLL-ID% a {
2320
- color:#B70004;
2321
- text-decoration:underline;
2322
- font-size:12px;
2323
  }
2324
  #yop-poll-vote-%POLL-ID% div {
2325
- float:left;
2326
- width:100%;
2327
- }
2328
- /* End Vote Button*/
2329
-
2330
- /* Start Messages*/
2331
- #yop-poll-container-error-%POLL-ID% {
2332
- font-size:12px;
2333
- font-style:italic;
2334
- color:red;
2335
- text-transform: capitalize;
2336
- margin-bottom:20px;
2337
- text-align:center;
2338
- }
2339
- #yop-poll-container-success-%POLL-ID% {
2340
- font-size:12px;
2341
- font-style:italic;
2342
- color:green;
2343
- margin-bottom:20px;
2344
- text-align:center;
 
 
 
 
 
 
2345
  }
2346
- /* End Messages*/
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2347
  NOWDOC;
2348
  break;
2349
  }
2350
  case 'Green v1':
2351
  { //Green v1
2352
  $css = <<<NOWDOC
2353
- #yop-poll-container-%POLL-ID% {
2354
- width:%POLL-WIDTH%;
2355
- background:#3F8B43;
2356
- padding:10px;
2357
- color:#fff;
2358
- overflow:hidden;
2359
- font-size:12px;
2360
- }
2361
- #yop-poll-container-%POLL-ID% input[type='text'] {
2362
- margin:0px 0px 5px 0px;
2363
- padding:2%;
2364
- width:96%;
2365
- text-indent:2%;
2366
- font-size:12px;
2367
- }
2368
-
2369
- .yop-poll-name-%POLL-ID% {
2370
- font-size:14px;
2371
- font-weight:bold;
2372
- }
2373
-
2374
- #yop-poll-questions-container-%POLL-ID% {
2375
- font-size:14px;
2376
- margin:5px 0px;
2377
- }
2378
- .yop-poll-question-container-%POLL-ID% {
2379
- padding: 2px;
2380
- }
2381
- .yop-poll-question-%POLL-ID% {
2382
- margin-bottom: 21px;
2383
- margin-top: -10px;
2384
- font-style: italic;
2385
- text-align: center;
2386
- width: 100%;
2387
- }
2388
- .yop-poll-answers-%POLL-ID% { }
2389
- .yop-poll-answers-%POLL-ID% ul {
2390
- list-style: none outside none;
2391
- margin: 0;
2392
- padding: 0;
2393
- }
2394
- .yop-poll-li-answer-%POLL-ID% {
2395
- font-style:normal;
2396
- margin:0px 0px 10px 0px;
2397
- padding:0px;
2398
- font-size:12px;
2399
- margin-bottom:20px;
2400
- }
2401
- .yop-poll-li-answer-%POLL-ID% input {
2402
- margin:0px;
2403
- float:none;
2404
- }
2405
- .yop-poll-li-answer-%POLL-ID% label {
2406
- margin:0px;
2407
- font-style:normal;
2408
- font-weight:normal;
2409
- font-size:12px;
2410
- float:none;
2411
- }
2412
- .yop-poll-results-%POLL-ID% {
2413
- font-size: 12px;
2414
- font-style: italic;
2415
- font-weight: normal;
2416
- margin-left: 15px;
2417
- }
2418
-
2419
- .yop-poll-customs-%POLL-ID% { }
2420
- .yop-poll-customs-%POLL-ID% ul {
2421
- list-style: none outside none;
2422
- margin: 0;
2423
- padding: 0;
2424
- }
2425
- .yop-poll-li-custom-%POLL-ID% {
2426
- padding:0px;
2427
- margin:0px;
2428
- font-size:14px;
2429
- }
2430
-
2431
- /* Start CAPTCHA div style*/
2432
- #yop-poll-captcha-input-div-%POLL-ID% {
2433
- margin-top:5px;
2434
- }
2435
- #yop-poll-captcha-helpers-div-%POLL-ID% {
2436
- width:30px;
2437
- float:left;
2438
- margin-left:5px;
2439
- height:0px;
2440
- }
2441
- #yop-poll-captcha-helpers-div-%POLL-ID% img {
2442
- margin-bottom:2px;
2443
  }
2444
- #yop-poll-captcha-image-div-%POLL-ID% {
2445
- margin-bottom:5px;
2446
  }
2447
- #yop_poll_captcha_image_%POLL-ID% {
2448
- float:left;
 
 
 
 
 
 
 
2449
  }
2450
- /* End CAPTCHA div style*/
 
2451
 
2452
- .yop-poll-clear-%POLL-ID% {
2453
- clear:both;
2454
  }
2455
 
2456
- #yop-poll-vote-%POLL-ID% {
2457
 
2458
  }
2459
-
2460
- /* Start Result bar*/
2461
- .yop-poll-results-bar-%POLL-ID% {
2462
- background:#f5f5f5;
2463
- height:10px;
 
 
 
 
 
2464
  }
2465
- .yop-poll-results-bar-%POLL-ID% div {
2466
- background:#555;
 
 
 
 
 
 
 
2467
  }
2468
- /* End Result bar*/
2469
-
2470
- /* Start Vote Button*/
2471
- #yop-poll-vote-%POLL-ID% div#yop-poll-vote-%POLL-ID% button {
2472
- float:left;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2473
  }
 
2474
  #yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% {
2475
- float: right;
2476
- margin-bottom: 20px;
2477
- margin-top: -20px;
2478
- width: auto;
2479
  }
2480
  #yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% a {
2481
- color:#fff;
2482
- text-decoration:underline;
2483
- font-size:12px;
2484
  }
2485
  #yop-poll-vote-%POLL-ID% div#yop-poll-back-%POLL-ID% a {
2486
- color:#fff;
2487
- text-decoration:underline;
2488
- font-size:12px;
2489
  }
2490
  #yop-poll-vote-%POLL-ID% div#yop-poll-archive-%POLL-ID% a {
2491
- color:#fff;
2492
- text-decoration:underline;
2493
- font-size:12px;
2494
  }
2495
  #yop-poll-vote-%POLL-ID% div {
2496
- float:left;
2497
- width:100%;
2498
- }
2499
- /* End Vote Button*/
2500
-
2501
- /* Start Messages*/
2502
- #yop-poll-container-error-%POLL-ID% {
2503
- font-size:12px;
2504
- font-style:italic;
2505
- color:red;
2506
- text-transform:capitalize;
2507
- margin-bottom:20px;
2508
- text-align:center;
2509
- }
2510
- #yop-poll-container-success-%POLL-ID% {
2511
- font-size:12px;
2512
- font-style:italic;
2513
- color:green;
2514
- margin-bottom:20px;
2515
- text-align:center;
 
 
 
 
 
 
2516
  }
2517
- /* End Messages*/
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2518
  NOWDOC;
2519
  break;
2520
  }
2521
  case 'Green v2':
2522
  { //Green v2
2523
  $css = <<<NOWDOC
2524
- #yop-poll-container-%POLL-ID% {
2525
- width:%POLL-WIDTH%;
2526
- background:#fff;
2527
- padding:0px;
2528
- color:#555;
2529
- overflow:hidden;
2530
- font-size:12px;
2531
- }
2532
- #yop-poll-container-%POLL-ID% input[type='text'] {
2533
- margin:0px 0px 5px 0px;
2534
- padding:2%;
2535
- width:96%;
2536
- text-indent:2%;
2537
- font-size:12px;
2538
- }
2539
-
2540
- .yop-poll-name-%POLL-ID% {
2541
- font-weight:bold;
2542
- background:#3F8B43;
2543
- color:#fff;
2544
- padding:5px;
2545
- text-align:center;
2546
- font-size:12px;
2547
- }
2548
-
2549
- #yop-poll-questions-container-%POLL-ID% {
2550
- font-size:14px;
2551
- margin:5px 0px;
2552
- }
2553
- .yop-poll-question-container-%POLL-ID% {
2554
- padding: 2px;
2555
- }
2556
- .yop-poll-question-%POLL-ID% {
2557
- margin-bottom: 21px;
2558
- margin-top: -10px;
2559
- font-style: italic;
2560
- text-align: center;
2561
- width: 100%;
2562
- background:#3F8B43;
2563
- color:#fff;
2564
- padding:5px;
2565
- }
2566
- .yop-poll-answers-%POLL-ID% { }
2567
- .yop-poll-answers-%POLL-ID% ul {
2568
- list-style: none outside none;
2569
- margin: 0;
2570
- padding: 0;
2571
- }
2572
- .yop-poll-li-answer-%POLL-ID% {
2573
- font-style:normal;
2574
- margin:0px 0px 10px 0px;
2575
- padding:0px;
2576
- font-size:12px;
2577
- margin-bottom:20px;
2578
- }
2579
- .yop-poll-li-answer-%POLL-ID% input {
2580
- margin:0px;
2581
- float:none;
2582
- }
2583
- .yop-poll-li-answer-%POLL-ID% label {
2584
- margin:0px;
2585
- font-style:normal;
2586
- font-weight:normal;
2587
- font-size:12px;
2588
- float:none;
2589
- }
2590
- .yop-poll-results-%POLL-ID% {
2591
- font-size: 12px;
2592
- font-style: italic;
2593
- font-weight: normal;
2594
- margin-left: 15px;
2595
- }
2596
-
2597
- .yop-poll-customs-%POLL-ID% { }
2598
- .yop-poll-customs-%POLL-ID% ul {
2599
- list-style: none outside none;
2600
- margin: 0;
2601
- padding: 0;
2602
- }
2603
- .yop-poll-li-custom-%POLL-ID% {
2604
- padding:0px;
2605
- margin:0px;
2606
- font-size:14px;
2607
- }
2608
-
2609
- /* Start CAPTCHA div style*/
2610
- #yop-poll-captcha-input-div-%POLL-ID% {
2611
- margin-top:5px;
2612
- }
2613
- #yop-poll-captcha-helpers-div-%POLL-ID% {
2614
- width:30px;
2615
- float:left;
2616
- margin-left:5px;
2617
- height:0px;
2618
- }
2619
- #yop-poll-captcha-helpers-div-%POLL-ID% img {
2620
- margin-bottom:2px;
2621
- }
2622
- #yop-poll-captcha-image-div-%POLL-ID% {
2623
- margin-bottom:5px;
2624
- }
2625
- #yop_poll_captcha_image_%POLL-ID% {
2626
- float:left;
2627
- }
2628
- /* End CAPTCHA div style*/
2629
-
2630
- .yop-poll-clear-%POLL-ID% {
2631
- clear:both;
2632
- }
2633
-
2634
- #yop-poll-vote-%POLL-ID% {
2635
-
2636
  }
2637
-
2638
- /* Start Result bar*/
2639
- .yop-poll-results-bar-%POLL-ID% {
2640
- background:#f5f5f5;
2641
- height:10px;
 
 
 
 
2642
  }
2643
- .yop-poll-results-bar-%POLL-ID% div {
2644
- background:#555;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2645
  }
2646
- /* End Result bar*/
2647
 
2648
- /* Start Vote Button*/
2649
- #yop-poll-vote-%POLL-ID% div#yop-poll-vote-%POLL-ID% button {
2650
- float:left;
2651
- }
2652
  #yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% {
2653
- float: right;
2654
- margin-bottom: 20px;
2655
- margin-top: -20px;
2656
- width: auto;
2657
  }
2658
  #yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% a {
2659
- color:#3F8B43;
2660
- text-decoration:underline;
2661
- font-size:12px;
2662
  }
2663
  #yop-poll-vote-%POLL-ID% div#yop-poll-back-%POLL-ID% a {
2664
- color:#3F8B43;
2665
- text-decoration:underline;
2666
- font-size:12px;
2667
  }
2668
  #yop-poll-vote-%POLL-ID% div#yop-poll-archive-%POLL-ID% a {
2669
- color:#3F8B43;
2670
- text-decoration:underline;
2671
- font-size:12px;
2672
  }
2673
  #yop-poll-vote-%POLL-ID% div {
2674
- float:left;
2675
- width:100%;
2676
- }
2677
- /* End Vote Button*/
2678
-
2679
- /* Start Messages*/
2680
- #yop-poll-container-error-%POLL-ID% {
2681
- font-size:12px;
2682
- font-style:italic;
2683
- color:red;
2684
- text-transform:capitalize;
2685
- margin-bottom:20px;
2686
- text-align:center;
2687
- }
2688
- #yop-poll-container-success-%POLL-ID% {
2689
- font-size:12px;
2690
- font-style:italic;
2691
- color:green;
2692
- text-transform:capitalize;
2693
- margin-bottom:20px;
2694
- text-align:center;
 
 
 
 
 
2695
  }
2696
- /* End Messages*/
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2697
  NOWDOC;
2698
  break;
2699
  }
2700
  case 'Green v3':
2701
  { //Green v3
2702
  $css = <<<NOWDOC
2703
- #yop-poll-container-%POLL-ID% {
2704
- width:%POLL-WIDTH%;
2705
- background:#fff;
2706
- padding:10px;
2707
- color:#555;
2708
- overflow:hidden;
2709
- font-size:12px;
2710
- border:5px solid #3F8B43;
2711
- }
2712
- #yop-poll-container-%POLL-ID% input[type='text'] {
2713
- margin:0px 0px 5px 0px;
2714
- padding:2%;
2715
- width:96%;
2716
- text-indent:2%;
2717
- font-size:12px;
2718
- }
2719
-
2720
- .yop-poll-name-%POLL-ID% {
2721
- font-weight:bold;
2722
- font-size:14x;
2723
- }
2724
-
2725
- #yop-poll-questions-container-%POLL-ID% {
2726
- font-size:14px;
2727
- margin:5px 0px;
2728
- }
2729
- .yop-poll-question-container-%POLL-ID% {
2730
- padding: 2px;
2731
- }
2732
- .yop-poll-question-%POLL-ID% {
2733
- margin-bottom: 21px;
2734
- margin-top: -10px;
2735
- font-style: italic;
2736
- text-align: center;
2737
- width: 100%;
2738
- }
2739
- .yop-poll-answers-%POLL-ID% { }
2740
- .yop-poll-answers-%POLL-ID% ul {
2741
- list-style: none outside none;
2742
- margin: 0;
2743
- padding: 0;
2744
- }
2745
- .yop-poll-li-answer-%POLL-ID% {
2746
- font-style:normal;
2747
- margin:0px 0px 10px 0px;
2748
- padding:0px;
2749
- font-size:12px;
2750
- margin-bottom:20px;
2751
- }
2752
- .yop-poll-li-answer-%POLL-ID% input {
2753
- margin:0px;
2754
- float:none;
2755
- }
2756
- .yop-poll-li-answer-%POLL-ID% label {
2757
- margin:0px;
2758
- font-style:normal;
2759
- font-weight:normal;
2760
- font-size:12px;
2761
- float:none;
2762
- }
2763
- .yop-poll-results-%POLL-ID% {
2764
- font-size: 12px;
2765
- font-style: italic;
2766
- font-weight: normal;
2767
- margin-left: 15px;
2768
- }
2769
-
2770
- .yop-poll-customs-%POLL-ID% { }
2771
- .yop-poll-customs-%POLL-ID% ul {
2772
- list-style: none outside none;
2773
- margin: 0;
2774
- padding: 0;
2775
- }
2776
- .yop-poll-li-custom-%POLL-ID% {
2777
- padding:0px;
2778
- margin:0px;
2779
- font-size:14px;
2780
- }
2781
-
2782
- /* Start CAPTCHA div style*/
2783
- #yop-poll-captcha-input-div-%POLL-ID% {
2784
- margin-top:5px;
2785
- }
2786
- #yop-poll-captcha-helpers-div-%POLL-ID% {
2787
- width:30px;
2788
- float:left;
2789
- margin-left:5px;
2790
- height:0px;
2791
- }
2792
- #yop-poll-captcha-helpers-div-%POLL-ID% img {
2793
- margin-bottom:2px;
2794
- }
2795
- #yop-poll-captcha-image-div-%POLL-ID% {
2796
- margin-bottom:5px;
2797
- }
2798
- #yop_poll_captcha_image_%POLL-ID% {
2799
- float:left;
2800
- }
2801
- /* End CAPTCHA div style*/
2802
-
2803
- .yop-poll-clear-%POLL-ID% {
2804
- clear:both;
2805
- }
2806
-
2807
- #yop-poll-vote-%POLL-ID% {
2808
-
2809
  }
2810
-
2811
- /* Start Result bar*/
2812
- .yop-poll-results-bar-%POLL-ID% {
2813
- background:#f5f5f5;
2814
- height:10px;
 
 
 
 
2815
  }
2816
- .yop-poll-results-bar-%POLL-ID% div {
2817
- background:#555;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2818
  }
2819
- /* End Result bar*/
2820
 
2821
- /* Start Vote Button*/
2822
- #yop-poll-vote-%POLL-ID% div#yop-poll-vote-%POLL-ID% button {
2823
- float:left;
2824
- }
2825
  #yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% {
2826
- float: right;
2827
- margin-bottom: 20px;
2828
- margin-top: -20px;
2829
- width: auto;
2830
  }
2831
  #yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% a {
2832
- color:#3F8B43;
2833
- text-decoration:underline;
2834
- font-size:12px;
2835
  }
2836
  #yop-poll-vote-%POLL-ID% div#yop-poll-back-%POLL-ID% a {
2837
- color:#3F8B43;
2838
- text-decoration:underline;
2839
- font-size:12px;
2840
  }
2841
  #yop-poll-vote-%POLL-ID% div#yop-poll-archive-%POLL-ID% a {
2842
- color:#3F8B43;
2843
- text-decoration:underline;
2844
- font-size:12px;
2845
  }
2846
  #yop-poll-vote-%POLL-ID% div {
2847
- float:left;
2848
- width:100%;
2849
- }
2850
- /* End Vote Button*/
2851
-
2852
- /* Start Messages*/
2853
- #yop-poll-container-error-%POLL-ID% {
2854
- font-size:12px;
2855
- font-style:italic;
2856
- color:red;
2857
- text-transform:capitalize;
2858
- margin-bottom:20px;
2859
- text-align:center;
2860
- }
2861
- #yop-poll-container-success-%POLL-ID% {
2862
- font-size:12px;
2863
- font-style:italic;
2864
- color:green;
2865
- text-transform:capitalize;
2866
- margin-bottom:20px;
2867
- text-align:center;
 
 
 
 
 
2868
  }
2869
- /* End Messages*/
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2870
  NOWDOC;
2871
  break;
2872
  }
2873
  case 'Orange v1':
2874
  { //Orange v1
2875
  $css = <<<NOWDOC
2876
- #yop-poll-container-%POLL-ID% {
2877
- width:%POLL-WIDTH%;
2878
- background:#FB6911;
2879
- padding:10px;
2880
- color:#fff;
2881
- overflow:hidden;
2882
- font-size:12px;
2883
- }
2884
- #yop-poll-container-%POLL-ID% input[type='text'] {
2885
- margin:0px 0px 5px 0px;
2886
- padding:2%;
2887
- width:96%;
2888
- text-indent:2%;
2889
- font-size:12px;
2890
- }
2891
-
2892
- .yop-poll-name-%POLL-ID% {
2893
- font-size:14px;
2894
- font-weight:bold;
2895
- }
2896
-
2897
- #yop-poll-questions-container-%POLL-ID% {
2898
- font-size:14px;
2899
- margin:5px 0px;
2900
- }
2901
- .yop-poll-question-container-%POLL-ID% {
2902
- padding: 2px;
2903
- }
2904
- .yop-poll-question-%POLL-ID% {
2905
- margin-bottom: 21px;
2906
- margin-top: -10px;
2907
- font-style: italic;
2908
- text-align: center;
2909
- width: 100%;
2910
- }
2911
- .yop-poll-answers-%POLL-ID% { }
2912
- .yop-poll-answers-%POLL-ID% ul {
2913
- list-style: none outside none;
2914
- margin: 0;
2915
- padding: 0;
2916
- }
2917
- .yop-poll-li-answer-%POLL-ID% {
2918
- font-style:normal;
2919
- margin:0px 0px 10px 0px;
2920
- padding:0px;
2921
- font-size:12px;
2922
- margin-bottom:20px;
2923
- }
2924
- .yop-poll-li-answer-%POLL-ID% input {
2925
- margin:0px;
2926
- float:none;
2927
- }
2928
- .yop-poll-li-answer-%POLL-ID% label {
2929
- margin:0px;
2930
- font-style:normal;
2931
- font-weight:normal;
2932
- font-size:12px;
2933
- float:none;
2934
- }
2935
- .yop-poll-results-%POLL-ID% {
2936
- font-size: 12px;
2937
- font-style: italic;
2938
- font-weight: normal;
2939
- margin-left: 15px;
2940
- }
2941
-
2942
- .yop-poll-customs-%POLL-ID% { }
2943
- .yop-poll-customs-%POLL-ID% ul {
2944
- list-style: none outside none;
2945
- margin: 0;
2946
- padding: 0;
2947
- }
2948
- .yop-poll-li-custom-%POLL-ID% {
2949
- padding:0px;
2950
- margin:0px;
2951
- font-size:14px;
2952
- }
2953
-
2954
- /* Start CAPTCHA div style*/
2955
- #yop-poll-captcha-input-div-%POLL-ID% {
2956
- margin-top:5px;
2957
- }
2958
- #yop-poll-captcha-helpers-div-%POLL-ID% {
2959
- width:30px;
2960
- float:left;
2961
- margin-left:5px;
2962
- height:0px;
2963
- }
2964
- #yop-poll-captcha-helpers-div-%POLL-ID% img {
2965
- margin-bottom:2px;
2966
  }
2967
- #yop-poll-captcha-image-div-%POLL-ID% {
2968
- margin-bottom:5px;
2969
  }
2970
- #yop_poll_captcha_image_%POLL-ID% {
2971
- float:left;
 
 
 
 
 
 
 
2972
  }
2973
- /* End CAPTCHA div style*/
 
2974
 
2975
- .yop-poll-clear-%POLL-ID% {
2976
- clear:both;
2977
  }
2978
 
2979
- #yop-poll-vote-%POLL-ID% {
2980
 
2981
  }
2982
-
2983
- /* Start Result bar*/
2984
- .yop-poll-results-bar-%POLL-ID% {
2985
- background:#f5f5f5;
2986
- height:10px;
 
 
 
 
 
2987
  }
2988
- .yop-poll-results-bar-%POLL-ID% div {
2989
- background:#555;
 
 
 
 
 
 
 
2990
  }
2991
- /* End Result bar*/
2992
-
2993
- /* Start Vote Button*/
2994
- #yop-poll-vote-%POLL-ID% div#yop-poll-vote-%POLL-ID% button {
2995
- float:left;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2996
  }
 
2997
  #yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% {
2998
- float: right;
2999
- margin-bottom: 20px;
3000
- margin-top: -20px;
3001
- width: auto;
3002
  }
3003
  #yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% a {
3004
- color:#fff;
3005
- text-decoration:underline;
3006
- font-size:12px;
3007
  }
3008
  #yop-poll-vote-%POLL-ID% div#yop-poll-back-%POLL-ID% a {
3009
- color:#fff;
3010
- text-decoration:underline;
3011
- font-size:12px;
3012
  }
3013
  #yop-poll-vote-%POLL-ID% div#yop-poll-archive-%POLL-ID% a {
3014
- color:#fff;
3015
- text-decoration:underline;
3016
- font-size:12px;
3017
  }
3018
  #yop-poll-vote-%POLL-ID% div {
3019
- float:left;
3020
- width:100%;
3021
- }
3022
- /* End Vote Button*/
3023
-
3024
- /* Start Messages*/
3025
- #yop-poll-container-error-%POLL-ID% {
3026
- font-size:12px;
3027
- font-style:italic;
3028
- color:red;
3029
- text-transform:capitalize;
3030
- margin-bottom:20px;
3031
- text-align:center;
3032
- }
3033
- #yop-poll-container-success-%POLL-ID% {
3034
- font-size:12px;
3035
- font-style:italic;
3036
- color:green;
3037
- text-transform:capitalize;
3038
- margin-bottom:20px;
3039
- text-align:center;
 
 
 
 
 
3040
  }
3041
- /* End Messages*/
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3042
  NOWDOC;
3043
  break;
3044
  }
3045
  case 'Orange v2':
3046
  { //Orange v2
3047
  $css = <<<NOWDOC
3048
- #yop-poll-container-%POLL-ID% {
3049
- width:%POLL-WIDTH%;
3050
- background:#fff;
3051
- padding:0px;
3052
- color:#555;
3053
- overflow:hidden;
3054
- font-size:12px;;
3055
- }
3056
- #yop-poll-container-%POLL-ID% input[type='text'] {
3057
- margin:0px 0px 5px 0px;
3058
- padding:2%;
3059
- width:96%;
3060
- text-indent:2%;
3061
- font-size:12px;
3062
- }
3063
-
3064
- .yop-poll-name-%POLL-ID% {
3065
- font-weight:bold;
3066
- background:#FB6911;
3067
- color:#fff;
3068
- padding:5px;
3069
- text-align:center;
3070
- font-size:12px;
3071
- }
3072
-
3073
- #yop-poll-questions-container-%POLL-ID% {
3074
- font-size:14px;
3075
- margin:5px 0px;
3076
- }
3077
- .yop-poll-question-container-%POLL-ID% {
3078
- padding: 2px;
3079
- }
3080
- .yop-poll-question-%POLL-ID% {
3081
- margin-bottom: 21px;
3082
- margin-top: -10px;
3083
- font-style: italic;
3084
- text-align: center;
3085
- width: 100%;
3086
- background:#FB6911;
3087
- color:#fff;
3088
- padding:5px;
3089
- }
3090
- .yop-poll-answers-%POLL-ID% { }
3091
- .yop-poll-answers-%POLL-ID% ul {
3092
- list-style: none outside none;
3093
- margin: 0;
3094
- padding: 0;
3095
- }
3096
- .yop-poll-li-answer-%POLL-ID% {
3097
- font-style:normal;
3098
- margin:0px 0px 10px 0px;
3099
- padding:0px;
3100
- font-size:12px;
3101
- margin-bottom:20px;
3102
- }
3103
- .yop-poll-li-answer-%POLL-ID% input {
3104
- margin:0px;
3105
- float:none;
3106
- }
3107
- .yop-poll-li-answer-%POLL-ID% label {
3108
- margin:0px;
3109
- font-style:normal;
3110
- font-weight:normal;
3111
- font-size:12px;
3112
- float:none;
3113
- }
3114
- .yop-poll-results-%POLL-ID% {
3115
- font-size: 12px;
3116
- font-style: italic;
3117
- font-weight: normal;
3118
- margin-left: 15px;
3119
- }
3120
-
3121
- .yop-poll-customs-%POLL-ID% { }
3122
- .yop-poll-customs-%POLL-ID% ul {
3123
- list-style: none outside none;
3124
- margin: 0;
3125
- padding: 0;
3126
- }
3127
- .yop-poll-li-custom-%POLL-ID% {
3128
- padding:0px;
3129
- margin:0px;
3130
- font-size:14px;
3131
- }
3132
-
3133
- /* Start CAPTCHA div style*/
3134
- #yop-poll-captcha-input-div-%POLL-ID% {
3135
- margin-top:5px;
3136
- }
3137
- #yop-poll-captcha-helpers-div-%POLL-ID% {
3138
- width:30px;
3139
- float:left;
3140
- margin-left:5px;
3141
- height:0px;
3142
- }
3143
- #yop-poll-captcha-helpers-div-%POLL-ID% img {
3144
- margin-bottom:2px;
3145
- }
3146
- #yop-poll-captcha-image-div-%POLL-ID% {
3147
- margin-bottom:5px;
3148
- }
3149
- #yop_poll_captcha_image_%POLL-ID% {
3150
- float:left;
3151
- }
3152
- /* End CAPTCHA div style*/
3153
-
3154
- .yop-poll-clear-%POLL-ID% {
3155
- clear:both;
3156
- }
3157
-
3158
- #yop-poll-vote-%POLL-ID% {
3159
-
3160
  }
3161
-
3162
- /* Start Result bar*/
3163
- .yop-poll-results-bar-%POLL-ID% {
3164
- background:#f5f5f5;
3165
- height:10px;
 
 
 
 
3166
  }
3167
- .yop-poll-results-bar-%POLL-ID% div {
3168
- background:#555;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3169
  }
3170
- /* End Result bar*/
3171
 
3172
- /* Start Vote Button*/
3173
- #yop-poll-vote-%POLL-ID% div#yop-poll-vote-%POLL-ID% button {
3174
- float:left;
3175
- }
3176
  #yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% {
3177
- float: right;
3178
- margin-bottom: 20px;
3179
- margin-top: -20px;
3180
- width: auto;
3181
  }
3182
  #yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% a {
3183
- color:#FB6911;
3184
- text-decoration:underline;
3185
- font-size:12px;
3186
  }
3187
  #yop-poll-vote-%POLL-ID% div#yop-poll-back-%POLL-ID% a {
3188
- color:#FB6911;
3189
- text-decoration:underline;
3190
- font-size:12px;
3191
  }
3192
  #yop-poll-vote-%POLL-ID% div#yop-poll-archive-%POLL-ID% a {
3193
- color:#FB6911;
3194
- text-decoration:underline;
3195
- font-size:12px;
3196
  }
3197
  #yop-poll-vote-%POLL-ID% div {
3198
- float:left;
3199
- width:100%;
3200
- }
3201
- /* End Vote Button*/
3202
-
3203
- /* Start Messages*/
3204
- #yop-poll-container-error-%POLL-ID% {
3205
- font-size:12px;
3206
- font-style:italic;
3207
- color:red;
3208
- text-transform:capitalize;
3209
- margin-bottom:20px;
3210
- text-align:center;
3211
- }
3212
- #yop-poll-container-success-%POLL-ID% {
3213
- font-size:12px;
3214
- font-style:italic;
3215
- color:green;
3216
- text-transform:capitalize;
3217
- margin-bottom:20px;
3218
- text-align:center;
 
 
 
 
 
3219
  }
3220
- /* End Messages*/
3221
- NOWDOC;
3222
- break;
3223
- }
3224
 
 
3225
 
 
3226
 
3227
 
 
 
3228
 
 
3229
 
 
 
3230
 
 
 
 
 
3231
  case 'Orange v3':
3232
  { //Orange v3
3233
  $css = <<<NOWDOC
3234
- #yop-poll-container-%POLL-ID% {
3235
- width:%POLL-WIDTH%;
3236
- background:#fff;
3237
- padding:10px;
3238
- color:#555;
3239
- overflow:hidden;
3240
- font-size:12px;
3241
- border:5px solid #FB6911;
3242
- }
3243
- #yop-poll-container-%POLL-ID% input[type='text'] {
3244
- margin:0px 0px 5px 0px;
3245
- padding:2%;
3246
- width:96%;
3247
- text-indent:2%;
3248
- font-size:12px;
3249
- }
3250
-
3251
- .yop-poll-name-%POLL-ID% {
3252
- font-weight:bold;
3253
- font-size:14x;
3254
- }
3255
-
3256
- #yop-poll-questions-container-%POLL-ID% {
3257
- font-size:14px;
3258
- margin:5px 0px;
3259
- }
3260
- .yop-poll-question-container-%POLL-ID% {
3261
- padding: 2px;
3262
- }
3263
- .yop-poll-question-%POLL-ID% {
3264
- margin-bottom: 21px;
3265
- margin-top: -10px;
3266
- font-style: italic;
3267
- text-align: center;
3268
- width: 100%;
3269
- }
3270
- .yop-poll-answers-%POLL-ID% { }
3271
- .yop-poll-answers-%POLL-ID% ul {
3272
- list-style: none outside none;
3273
- margin: 0;
3274
- padding: 0;
3275
- }
3276
- .yop-poll-li-answer-%POLL-ID% {
3277
- font-style:normal;
3278
- margin:0px 0px 10px 0px;
3279
- padding:0px;
3280
- font-size:12px;
3281
- margin-bottom:20px;
3282
- }
3283
- .yop-poll-li-answer-%POLL-ID% input {
3284
- margin:0px;
3285
- float:none;
3286
- }
3287
- .yop-poll-li-answer-%POLL-ID% label {
3288
- margin:0px;
3289
- font-style:normal;
3290
- font-weight:normal;
3291
- font-size:12px;
3292
- float:none;
3293
- }
3294
- .yop-poll-results-%POLL-ID% {
3295
- font-size: 12px;
3296
- font-style: italic;
3297
- font-weight: normal;
3298
- margin-left: 15px;
3299
- }
3300
-
3301
- .yop-poll-customs-%POLL-ID% { }
3302
- .yop-poll-customs-%POLL-ID% ul {
3303
- list-style: none outside none;
3304
- margin: 0;
3305
- padding: 0;
3306
- }
3307
- .yop-poll-li-custom-%POLL-ID% {
3308
- padding:0px;
3309
- margin:0px;
3310
- font-size:14px;
3311
- }
3312
-
3313
- /* Start CAPTCHA div style*/
3314
- #yop-poll-captcha-input-div-%POLL-ID% {
3315
- margin-top:5px;
3316
- }
3317
- #yop-poll-captcha-helpers-div-%POLL-ID% {
3318
- width:30px;
3319
- float:left;
3320
- margin-left:5px;
3321
- height:0px;
3322
- }
3323
- #yop-poll-captcha-helpers-div-%POLL-ID% img {
3324
- margin-bottom:2px;
3325
- }
3326
- #yop-poll-captcha-image-div-%POLL-ID% {
3327
- margin-bottom:5px;
3328
- }
3329
- #yop_poll_captcha_image_%POLL-ID% {
3330
- float:left;
3331
- }
3332
- /* End CAPTCHA div style*/
3333
-
3334
- .yop-poll-clear-%POLL-ID% {
3335
- clear:both;
3336
- }
3337
-
3338
- #yop-poll-vote-%POLL-ID% {
3339
-
3340
  }
3341
-
3342
- /* Start Result bar*/
3343
- .yop-poll-results-bar-%POLL-ID% {
3344
- background:#f5f5f5;
3345
- height:10px;
 
 
 
 
3346
  }
3347
- .yop-poll-results-bar-%POLL-ID% div {
3348
- background:#555;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3349
  }
3350
- /* End Result bar*/
3351
 
3352
- /* Start Vote Button*/
3353
- #yop-poll-vote-%POLL-ID% div#yop-poll-vote-%POLL-ID% button {
3354
- float:left;
3355
- }
3356
  #yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% {
3357
- float: right;
3358
- margin-bottom: 20px;
3359
- margin-top: -20px;
3360
- width: auto;
3361
  }
3362
  #yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% a {
3363
- color:#FB6911;
3364
- text-decoration:underline;
3365
- font-size:12px;
3366
  }
3367
  #yop-poll-vote-%POLL-ID% div#yop-poll-back-%POLL-ID% a {
3368
- color:#FB6911;
3369
- text-decoration:underline;
3370
- font-size:12px;
3371
  }
3372
  #yop-poll-vote-%POLL-ID% div#yop-poll-archive-%POLL-ID% a {
3373
- color:#FB6911;
3374
- text-decoration:underline;
3375
- font-size:12px;
3376
  }
3377
  #yop-poll-vote-%POLL-ID% div {
3378
- float:left;
3379
- width:100%;
3380
- }
3381
- /* End Vote Button*/
3382
-
3383
- /* Start Messages*/
3384
- #yop-poll-container-error-%POLL-ID% {
3385
- font-size:12px;
3386
- font-style:italic;
3387
- color:red;
3388
- text-transform:capitalize;
3389
- margin-bottom:20px;
3390
- text-align:center;
3391
- }
3392
- #yop-poll-container-success-%POLL-ID% {
3393
- font-size:12px;
3394
- font-style:italic;
3395
- color:green;
3396
- text-transform:capitalize;
3397
- margin-bottom:20px;
3398
- text-align:center;
 
 
 
 
 
3399
  }
3400
- /* End Messages*/
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3401
  NOWDOC;
3402
  break;
3403
  }
@@ -3411,6 +4820,7 @@ NOWDOC;
3411
 
3412
  $sql .= "`before_vote_template` = '{$before_vote_template}',
3413
  `after_vote_template` = '{$after_vote_template}',
 
3414
  `before_start_date_template` = '{$before_start_date_template}',
3415
  `after_end_date_template` = '{$after_end_date_template}',
3416
  `js` = '$js',
473
  name varchar(255) NOT NULL,
474
  before_vote_template text NOT NULL,
475
  after_vote_template text NOT NULL,
476
+ after_vote_template_chart text NOT NULL,
477
  before_start_date_template text NOT NULL,
478
  after_end_date_template text NOT NULL,
479
  css text NOT NULL,
537
  %POLL-OTHER-ANSWER-LABEL%
538
  <span id = "yop-poll-results-text-%POLL-ID%-%QUESTION-ID%"
539
  class = "yop-poll-results-text-%POLL-ID%">%POLL-ANSWER-RESULT-LABEL%</span>
540
+
541
  %POLL-OTHER-ANSWER-TEXT-INPUT%
542
  %POLL-ANSWER-RESULT-BAR%
543
  </li>
622
  NOWDOC;
623
  $after_vote_template = addslashes( $after_vote_template );
624
 
625
+ $after_vote_template_chart = <<<NOWDOC
626
+ [QUESTION_CONTAINER]
627
+ <div id = "yop-poll-question-container-%POLL-ID%-%QUESTION-ID%" class = "yop-poll-question-container-%POLL-ID%">
628
+ <div id = "yop-poll-question-%POLL-ID%-%QUESTION-ID%"
629
+ class = "yop-poll-question-%POLL-ID%">%POLL-QUESTION%</div>
630
+ <div id = "yop-poll-answers-%POLL-ID%-%QUESTION-ID%" class = "yop-poll-answers-%POLL-ID%">
631
+ <div id = "yop-poll-answers-chart-canvas-%POLL-ID%-%QUESTION-ID%" style="text-align:center;" class="yop-poll-answers-container-chart-%POLL-ID% yop-poll-center-chart">
632
+ <canvas id="yop-poll-answers-chart-%POLL-ID%-%QUESTION-ID%" class="yop-poll-answers-chart"></canvas>
633
+ </div>
634
+ </div>
635
+ </div>
636
+ <div class = "yop-poll-clear-%POLL-ID%"></div>
637
+ [/QUESTION_CONTAINER]
638
+ <div id = "yop-poll-vote-%POLL-ID%" class = "yop-poll-footer">
639
+ <div>%POLL-TOTAL-ANSWERS-LABEL%</div>
640
+ <div>%POLL-TOTAL-VOTES-LABEL%</div>
641
+ <div id = "yop-poll-back-%POLL-ID%">%POLL-BACK-TO-VOTE-LINK%</div>
642
+ <div id = "yop-poll-archive-%POLL-ID%">%POLL-VIEW-ARCHIVE-LINK%</div>
643
+ %SHARE-BUTTON%
644
+ </div>
645
+ NOWDOC;
646
+
647
+ $after_vote_template_chart= addslashes( $after_vote_template_chart );
648
+
649
  $before_start_date_template = <<<NOWDOC
650
  This poll is about to<br>
651
  start on %POLL-START-DATE%<br>
730
  }
731
 
732
  jQuery(document).ready(function(e) {
733
+ jQuery('.yop-poll-forms').removeClass('yop-poll-forms-display');
734
  if(typeof window.strip_results_%POLL-ID% == "function")
735
  strip_results_%POLL-ID%();
736
  if(typeof window.tabulate_answers_%POLL-ID% == "function")
737
  tabulate_answers_%POLL-ID%();
738
  if(typeof window.tabulate_results_%POLL-ID% == "function")
739
  tabulate_results_%POLL-ID%();
740
+
741
+
742
+
743
  });
744
 
745
  function equalWidth_%POLL-ID%(obj, cols, findWidest ) {
746
+
747
+ findWidest = typeof findWidest !== "undefined" ? findWidest : false;
748
+ var quest=0;
749
+ if ( findWidest ) {
750
+ obj.each(function() {
751
+ var thisWidth = jQuery(this).width();
752
+ width = parseInt(thisWidth / cols);
753
+ jQuery(this).width(width);
754
+ jQuery(this).css("float", "left");
755
+ });
756
+ }
757
+ else {
758
+ var widest = 0;
759
+ var count = 0;
760
+ var poz_each_question=0;
761
+
762
+ obj.each(function() {
763
+
764
+ count++;
765
+ cols[quest][2]=(jQuery('#yop-poll-answers-%POLL-ID%-'+ cols[quest][3] +' li').length);
766
+ var thisWidth = jQuery(this).width();
767
+ if(thisWidth > widest) {
768
+ widest = thisWidth;
769
+ }
770
+ if(count<cols[quest][2])
771
+ { width = parseInt( %POLL-WIDTH% / cols[quest][0]);
772
+ if(cols[quest][0]==1)
773
+ jQuery(".yop-poll-li-answer-%POLL-ID%-"+cols[quest][3]).css("width","100%");
774
+ else
775
+ jQuery(".yop-poll-li-answer-%POLL-ID%-"+cols[quest][3]).width(width-20);
776
+ jQuery(".yop-poll-li-answer-%POLL-ID%-"+cols[quest][3]).css("float", "left");
777
+ }
778
+ else
779
+ {
780
+ count=0;
781
+
782
+
783
+ width = parseInt( %POLL-WIDTH% / cols[quest][0]);
784
+ jQuery(".yop-poll-li-answer-%POLL-ID%-"+cols[quest][3]).width(width-20);
785
+ jQuery(".yop-poll-li-answer-%POLL-ID%-"+cols[quest][3]).css("float", "left");
786
+ quest++;
787
+ }
788
+
789
+ });
790
+ }
791
  }
792
 
793
  function equalWidth2_%POLL-ID%(obj, cols, findWidest ) {
794
+ findWidest = typeof findWidest !== "undefined" ? findWidest : false;
795
+ var quest=0;
796
+
797
+ if ( findWidest ) {
798
+ obj.each(function() {
799
+ var thisWidth = jQuery(this).width();
800
+ width = parseInt(thisWidth / cols);
801
+ jQuery(this).width(width);
802
+ jQuery(this).css("float", "left");
803
+ });
804
+ }
805
+ else {
806
+ var widest = 0;
807
+ var count = 0;
808
+ var poz_each_question=0;
809
+
810
+ obj.each(function() {
811
+ count++;
812
+ cols[quest][2]=(jQuery('#yop-poll-answers-%POLL-ID%-'+ cols[quest][3] +' li').length);
813
+ var thisWidth = jQuery(this).width();
814
+ if(thisWidth > widest) {
815
+ widest = thisWidth;
816
+ }
817
+ if(count<cols[quest][2])
818
+ { width = parseInt( %POLL-WIDTH% / cols[quest][1]);
819
+ jQuery(".yop-poll-li-result-%POLL-ID%-"+cols[quest][3]).width(width-20);
820
+ jQuery(".yop-poll-li-result-%POLL-ID%-"+cols[quest][3]).css("float", "left");
821
+ }
822
+ else
823
+ {
824
+ count=0;
825
+
826
 
827
+ width = parseInt( %POLL-WIDTH% / cols[quest][1]);
828
+ jQuery(".yop-poll-li-result-%POLL-ID%-"+cols[quest][3]).width(width-20);
829
+ jQuery(".yop-poll-li-result-%POLL-ID%-"+cols[quest][3]).css("float", "left");
830
+ quest++;
831
+ }
832
+
833
+ });
834
+ }
835
+ }
836
  function tabulate_answers_%POLL-ID%() {
837
 
838
  equalWidth_%POLL-ID%( jQuery("#yop-poll-container-%POLL-ID% .yop-poll-li-answer-%POLL-ID%"), %ANSWERS-TABULATED-COLS% );
859
  case 'White':
860
  { //White
861
  $css = <<<NOWDOC
862
+ /*
863
+ Main Container
864
+ ---------------------------------------------------------------------------
865
+ */
866
+ #yop-poll-other-answer-%POLL-ID%-other {
867
+ border:1px solid #000000;
868
+ color:#000000;
869
+ }
870
+ .yop-poll-customfield-%POLL-ID% {
871
+ border:1px solid #000000;
872
+ color:#000000;
873
+ }
874
+ div#yop-poll-container-%POLL-ID% {
875
+ background:#fff;
876
+ box-sizing: border-box;
877
+ color: #555;
878
+ display: inline-block;
879
+ font-size: 14px;
880
+ padding: 10px;
881
+ width: %POLL-WIDTH%;
882
+ zoom: 1;
883
+ }
884
+ /* A nice little reset */
885
+ div.yop-poll-container * {
886
+
887
+ }
888
+
889
+ form#yop-poll-form-%POLL-ID% {
890
+
891
+ }
892
+ /*
893
+ Error message
894
+ ..................................
895
+ */
896
+ div#yop-poll-container-error-%POLL-ID% {
897
+ font-size:.8em;
898
+ font-style:italic;
899
+ color:red;
900
+ text-transform:lowercase;
901
+ text-align:center;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
902
  }
903
+ /*
904
+ Success message
905
+ ..................................
906
+ */
907
+ div#yop-poll-container-success-%POLL-ID% {
908
+ font-size:.8em;
909
+ font-style:italic;
910
+ color:green;
911
+ text-align:center;
912
  }
913
+ /*
914
+ Poll Question
915
+ ---------------------------------------------------------------------------
916
+ */
917
+ div#yop-poll-questions-container-%POLL-ID% { margin:.5em; }
918
+ div.yop-poll-question-container-%POLL-ID% { margin: 0; }
919
+ div.yop-poll-question-%POLL-ID% {
920
+ border: 0 none;
921
+ margin: 0 0 2em;
922
+ padding: .25em;
923
+ text-align: center;
924
+ font-size: 14px;
925
+ }
926
+ /*
927
+ Poll Options / Answers
928
+ ---------------------------------------------------------------------------
929
+ */
930
+ div.yop-poll-answers-%POLL-ID% {}
931
+ div.yop-poll-answers-%POLL-ID% ul {
932
+ list-style: none;
933
+ margin: 0;
934
+ padding: 0;
935
+
936
+ }
937
+ div.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-answer-%POLL-ID%,
938
+ div.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-result-%POLL-ID% {
939
+ list-style: none;
940
+ margin: 0;
941
+ padding: 0;
942
+ font-size: 14px;
943
+ line-height: 2em;
944
+
945
+ }
946
+ div.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-result-%POLL-ID% {padding-bottom: 1em;}
947
+ /*
948
+ Label
949
+ ..................................
950
+ */
951
+ div.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-answer-%POLL-ID% label {
952
+ margin:0px;
953
+ font-style:normal;
954
+ font-weight:normal;
955
+ font-size:14px;
956
+ float:none;
957
+ display:inline-block;
958
+ }
959
+ /* Actual text label of the answer */
960
+ div.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-answer-%POLL-ID% label:nth-of-type(2) {
961
+
962
+ }
963
+ /*
964
+ Custom answer / Other
965
+ ..................................
966
+ */
967
+ div.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-answer-%POLL-ID% label:nth-of-type(3) {
968
+ width: 100%;
969
+ overflow: hidden;
970
+ }
971
+ div#yop-poll-container-%POLL-ID% li.yop-poll-li-answer-%POLL-ID% label:nth-of-type(3) input[type="text"] {
972
+ width: 94%;
973
+ overflow: hidden;
974
+ }
975
+ /*
976
+ Custom checkbox and radio button style
977
+ ---------------------------------------------------------------------------
978
+ */
979
+
980
+
981
+ /*
982
+ Custom fields
983
+ ---------------------------------------------------------------------------
984
+ */
985
+ div.yop-poll-customs-%POLL-ID% {
986
+ clear: both;
987
+
988
+ }
989
+ div.yop-poll-customs-%POLL-ID% ul {
990
+ list-style: none;
991
+ margin: 0;
992
+ padding: 0;
993
+ overflow: hidden;
994
+ width: 100%;
995
+ }
996
+ div.yop-poll-customs-%POLL-ID% ul li.yop-poll-li-custom-%POLL-ID% {
997
+ display: block;
998
+ font-size:14px;
999
+ list-style: none;
1000
+ }
1001
+ div.yop-poll-customs-%POLL-ID% ul li.yop-poll-li-custom-%POLL-ID% label {
1002
+ display: block;
1003
+ }
1004
+ div#yop-poll-container-%POLL-ID% li.yop-poll-li-custom-%POLL-ID% input[type="text"] {
1005
+ width: 94%;
1006
+ }
1007
+ /*
1008
+ Vote Button
1009
+ ---------------------------------------------------------------------------
1010
+ */
1011
+ .yop-poll-footer { /*height: 4em;*/ }
1012
+
1013
+ .yop-poll-vote-centered-%POLL-ID% { text-align:center; }
1014
+
1015
+ #yop-poll-vote-%POLL-ID% div button {
1016
+
1017
+ cursor:pointer;
1018
+ display: block;
1019
+ font-size:14px;
1020
+ margin: 0 auto;
1021
+ }
1022
+
1023
+
1024
+ #yop-poll-vote-%POLL-ID% div button.yop_poll_vote_button {}
1025
+ #yop-poll-vote-%POLL-ID% div button.yop_poll_wordpress_vote_button { margin: 1em auto 0; }
1026
+ #yop-poll-vote-%POLL-ID% div button.yop_poll_anonymous_vote_button { margin: 1em auto 0; }
1027
+
1028
+ /*
1029
+ Results
1030
+ ---------------------------------------------------------------------------
1031
+ */
1032
+
1033
+ li.yop-poll-results-%POLL-ID% {
1034
+ font-size: 12px;
1035
+ font-style: italic;
1036
+ font-weight: normal;
1037
+ margin-left: 15px;
1038
+ color: #38595E;
1039
+ }
1040
+ /*
1041
+ Style for results that are displayed on columns
1042
+ ..................................
1043
+ */
1044
+ li.yop-poll-li-answer-%POLL-ID% {
1045
+ float: left;
1046
+ display: inline-block;
1047
+ width: 46%;
1048
+ padding: 1%;
1049
+ margin: 1%;
1050
  }
 
1051
 
 
 
 
 
1052
  #yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% {
1053
+ float: right;
1054
+ width: auto;
 
 
1055
  }
1056
  #yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% a {
1057
+ color:#000;
1058
+ text-decoration:underline;
1059
+ font-size:12px;
1060
  }
1061
  #yop-poll-vote-%POLL-ID% div#yop-poll-back-%POLL-ID% a {
1062
+ color:#000;
1063
+ text-decoration:underline;
1064
+ font-size:12px;
 
 
 
 
1065
  }
1066
+ #yop-poll-vote-%POLL-ID% div#yop-poll-archive-%POLL-ID% a {
1067
+ color:#000;
1068
+ text-decoration:underline;
1069
+ font-size:12px;
 
 
 
 
 
 
 
 
 
 
1070
  }
1071
+ #yop-poll-vote-%POLL-ID% div {
1072
+ float:left;
1073
+ width:100%;
1074
+ }
1075
+ /*
1076
+ Result Bar
1077
+ ..................................
1078
+ */
1079
+
1080
+ .yop-poll-results-bar-%POLL-ID% div { background:#555; width:90%;}
1081
+
1082
+
1083
+ /*
1084
+ ---------------------------------------------------------------------------
1085
+ EXTRAS
1086
+ ---------------------------------------------------------------------------
1087
+ */
1088
+ /*
1089
+ CAPTCHA
1090
+ ..................................
1091
+ */
1092
+ #yop-poll-captcha-input-div-%POLL-ID% { margin-top:5px; }
1093
+ #yop-poll-captcha-helpers-div-%POLL-ID% {
1094
+ width:30px;
1095
+ float:left;
1096
+ margin-left:5px;
1097
+ height:0px;
1098
  }
1099
+ #yop-poll-captcha-helpers-div-%POLL-ID% img { margin-bottom:2px; }
1100
+ #yop-poll-captcha-image-div-%POLL-ID% { margin-bottom:5px; }
1101
+ #yop_poll_captcha_image_%POLL-ID% { float:left; }
1102
 
1103
+ .yop-poll-clear-%POLL-ID% { clear:both; }
1104
+
1105
+ .yop-poll-name-%POLL-ID% { color:#38595E; font-size: 18px; }
1106
+
1107
+
1108
+ .yop-poll-li-answer-%POLL-ID% label img { max-width: 98%; }
1109
+ .yop-poll-li-result-%POLL-ID% label span img { max-width: 98%; }
1110
+
1111
+ .content { position :unset !important; }
1112
+
1113
+ div.yop-poll-container br,
1114
+ div#yop-poll-container-%POLL-ID% br { display: none; }
1115
+
1116
+ div#yop_poll_vote_options_div-%POLL-ID% div:nth-last-of-type(1) { display: none; }
1117
  NOWDOC;
1118
  break;
1119
  }
1120
  case 'Grey':
1121
  { //Grey
1122
  $css = <<<NOWDOC
1123
+ /*
1124
+ Main Container
1125
+ ---------------------------------------------------------------------------
1126
+ */
1127
+ #yop-poll-other-answer-%POLL-ID%-other {
1128
+ border:1px solid #000000;
1129
+ color:#000000;
1130
+
1131
+ }
1132
+ .yop-poll-customfield-%POLL-ID% {
1133
+ border:1px solid #000000;
1134
+ color:#000000;
1135
+ }
1136
+ div#yop-poll-container-%POLL-ID% {
1137
+ background:#eee;
1138
+ box-sizing: border-box;
1139
+ color: #fff;
1140
+ display: inline-block;
1141
+ font-size: 14px;
1142
+ color:#000;
1143
+ padding: 10px;
1144
+ width: %POLL-WIDTH%;
1145
+ zoom: 1;
1146
+ }
1147
+ /* A nice little reset */
1148
+ div.yop-poll-container * {
1149
+
1150
+ }
1151
+
1152
+ form#yop-poll-form-%POLL-ID% {
1153
+
1154
+ }
1155
+ /*
1156
+ Error message
1157
+ ..................................
1158
+ */
1159
+ div#yop-poll-container-error-%POLL-ID% {
1160
+ font-size:.8em;
1161
+ font-style:italic;
1162
+ color:red;
1163
+ text-transform:lowercase;
1164
+ text-align:center;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1165
  }
1166
+ /*
1167
+ Success message
1168
+ ..................................
1169
+ */
1170
+ div#yop-poll-container-success-%POLL-ID% {
1171
+ font-size:.8em;
1172
+ font-style:italic;
1173
+ color:green;
1174
+ text-align:center;
1175
  }
1176
+ /*
1177
+ Poll Question
1178
+ ---------------------------------------------------------------------------
1179
+ */
1180
+ div#yop-poll-questions-container-%POLL-ID% { margin:.5em; }
1181
+ div.yop-poll-question-container-%POLL-ID% { margin: 0; }
1182
+ div.yop-poll-question-%POLL-ID% {
1183
+ border: 0 none;
1184
+ margin: 0 0 2em;
1185
+ padding: .25em;
1186
+ text-align: center;
1187
+ font-size: 14px;
1188
+ }
1189
+ /*
1190
+ Poll Options / Answers
1191
+ ---------------------------------------------------------------------------
1192
+ */
1193
+ div.yop-poll-answers-%POLL-ID% {}
1194
+ div.yop-poll-answers-%POLL-ID% ul {
1195
+ list-style: none;
1196
+ margin: 0;
1197
+ padding: 0;
1198
+
1199
+ }
1200
+ div.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-answer-%POLL-ID%,
1201
+ div.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-result-%POLL-ID% {
1202
+ list-style: none;
1203
+ margin: 0;
1204
+ padding: 0;
1205
+ font-size: 14px;
1206
+ line-height: 2em;
1207
+
1208
+ }
1209
+ div.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-result-%POLL-ID% {padding-bottom: 1em;}
1210
+ /*
1211
+ Label
1212
+ ..................................
1213
+ */
1214
+ div.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-answer-%POLL-ID% label {
1215
+ margin:0px;
1216
+ font-style:normal;
1217
+ font-weight:normal;
1218
+ font-size:14px;
1219
+ float:none;
1220
+ display:inline-block;
1221
+ }
1222
+ /* Actual text label of the answer */
1223
+ div.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-answer-%POLL-ID% label:nth-of-type(2) {
1224
+
1225
+ }
1226
+ /*
1227
+ Custom answer / Other
1228
+ ..................................
1229
+ */
1230
+ div.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-answer-%POLL-ID% label:nth-of-type(3) {
1231
+ width: 100%;
1232
+ overflow: hidden;
1233
+ }
1234
+ div#yop-poll-container-%POLL-ID% li.yop-poll-li-answer-%POLL-ID% label:nth-of-type(3) input[type="text"] {
1235
+ width: 94%;
1236
+ overflow: hidden;
1237
+ }
1238
+ /*
1239
+ Custom checkbox and radio button style
1240
+ ---------------------------------------------------------------------------
1241
+ */
1242
+
1243
+
1244
+ /*
1245
+ Custom fields
1246
+ ---------------------------------------------------------------------------
1247
+ */
1248
+ div.yop-poll-customs-%POLL-ID% {
1249
+ clear: both;
1250
+
1251
+ }
1252
+ div.yop-poll-customs-%POLL-ID% ul {
1253
+ list-style: none;
1254
+ margin: 0;
1255
+ padding: 0;
1256
+ overflow: hidden;
1257
+ width: 100%;
1258
+ }
1259
+ div.yop-poll-customs-%POLL-ID% ul li.yop-poll-li-custom-%POLL-ID% {
1260
+ display: block;
1261
+ font-size:14px;
1262
+ list-style: none;
1263
+ }
1264
+ div.yop-poll-customs-%POLL-ID% ul li.yop-poll-li-custom-%POLL-ID% label {
1265
+ display: block;
1266
+ }
1267
+ div#yop-poll-container-%POLL-ID% li.yop-poll-li-custom-%POLL-ID% input[type="text"] {
1268
+ width: 94%;
1269
+ }
1270
+ /*
1271
+ Vote Button
1272
+ ---------------------------------------------------------------------------
1273
+ */
1274
+ .yop-poll-footer { /*height: 4em;*/ }
1275
+
1276
+ .yop-poll-vote-centered-%POLL-ID% { text-align:center; }
1277
+
1278
+ #yop-poll-vote-%POLL-ID% div button {
1279
+
1280
+ cursor:pointer;
1281
+ display: block;
1282
+ font-size:14px;
1283
+ margin: 0 auto;
1284
+ }
1285
+
1286
+
1287
+ #yop-poll-vote-%POLL-ID% div button.yop_poll_vote_button {}
1288
+ #yop-poll-vote-%POLL-ID% div button.yop_poll_wordpress_vote_button { margin: 1em auto 0; }
1289
+ #yop-poll-vote-%POLL-ID% div button.yop_poll_anonymous_vote_button { margin: 1em auto 0; }
1290
+
1291
+ /*
1292
+ Results
1293
+ ---------------------------------------------------------------------------
1294
+ */
1295
+
1296
+ li.yop-poll-results-%POLL-ID% {
1297
+ font-size: 12px;
1298
+ font-style: italic;
1299
+ font-weight: normal;
1300
+ margin-left: 15px;
1301
+ color: #38595E;
1302
+ }
1303
+ /*
1304
+ Style for results that are displayed on columns
1305
+ ..................................
1306
+ */
1307
+ li.yop-poll-li-answer-%POLL-ID% {
1308
+ float: left;
1309
+ display: inline-block;
1310
+ width: 46%;
1311
+ padding: 1%;
1312
+ margin: 1%;
1313
  }
 
1314
 
 
 
 
 
1315
  #yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% {
1316
+ float: right;
1317
+ width: auto;
 
 
1318
  }
1319
  #yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% a {
1320
+ color:#000;
1321
+ text-decoration:underline;
1322
+ font-size:12px;
1323
  }
1324
  #yop-poll-vote-%POLL-ID% div#yop-poll-back-%POLL-ID% a {
1325
+ color:#000;
1326
+ text-decoration:underline;
1327
+ font-size:12px;
 
 
 
 
1328
  }
1329
+ #yop-poll-vote-%POLL-ID% div#yop-poll-archive-%POLL-ID% a {
1330
+ color:#000;
1331
+ text-decoration:underline;
1332
+ font-size:12px;
 
 
 
 
 
 
 
 
 
 
 
 
1333
  }
1334
+ #yop-poll-vote-%POLL-ID% div {
1335
+ float:left;
1336
+ width:100%;
1337
+ }
1338
+ /*
1339
+ Result Bar
1340
+ ..................................
1341
+ */
1342
+
1343
+ .yop-poll-results-bar-%POLL-ID% div { background:#555; width:90%;}
1344
+
1345
+
1346
+ /*
1347
+ ---------------------------------------------------------------------------
1348
+ EXTRAS
1349
+ ---------------------------------------------------------------------------
1350
+ */
1351
+ /*
1352
+ CAPTCHA
1353
+ ..................................
1354
+ */
1355
+ #yop-poll-captcha-input-div-%POLL-ID% { margin-top:5px; }
1356
+ #yop-poll-captcha-helpers-div-%POLL-ID% {
1357
+ width:30px;
1358
+ float:left;
1359
+ margin-left:5px;
1360
+ height:0px;
1361
  }
1362
+ #yop-poll-captcha-helpers-div-%POLL-ID% img { margin-bottom:2px; }
1363
+ #yop-poll-captcha-image-div-%POLL-ID% { margin-bottom:5px; }
1364
+ #yop_poll_captcha_image_%POLL-ID% { float:left; }
1365
+
1366
+ .yop-poll-clear-%POLL-ID% { clear:both; }
1367
+
1368
+ .yop-poll-name-%POLL-ID% { color:#38595E; font-size: 18px; }
1369
+
1370
+
1371
+ .yop-poll-li-answer-%POLL-ID% label img { max-width: 98%; }
1372
+ .yop-poll-li-result-%POLL-ID% label span img { max-width: 98%; }
1373
+
1374
+ .content { position :unset !important; }
1375
+
1376
+ div.yop-poll-container br,
1377
+ div#yop-poll-container-%POLL-ID% br { display: none; }
1378
+
1379
+ div#yop_poll_vote_options_div-%POLL-ID% div:nth-last-of-type(1) { display: none; }
1380
+
1381
+
1382
+
1383
+
1384
+
1385
+
1386
+
1387
  NOWDOC;
1388
  break;
1389
  }
1390
  case 'Dark':
1391
  { //Dark
1392
  $css = <<<NOWDOC
1393
+ /*
1394
+ Main Container
1395
+ ---------------------------------------------------------------------------
1396
+ */
1397
+ #yop-poll-other-answer-%POLL-ID%-other {
1398
+ color:#000000;
1399
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1400
  }
1401
+ .yop-poll-customfield-%POLL-ID% {
1402
+ color:#000000;
1403
  }
1404
+ div#yop-poll-container-%POLL-ID% {
1405
+ background:#555;
1406
+ box-sizing: border-box;
1407
+ color: #fff;
1408
+ display: inline-block;
1409
+ font-size: 14px;
1410
+ padding: 10px;
1411
+ width: %POLL-WIDTH%;
1412
+ zoom: 1;
1413
  }
1414
+ /* A nice little reset */
1415
+ div.yop-poll-container * {
1416
 
 
 
1417
  }
1418
 
1419
+ form#yop-poll-form-%POLL-ID% {
1420
 
1421
  }
1422
+ /*
1423
+ Error message
1424
+ ..................................
1425
+ */
1426
+ div#yop-poll-container-error-%POLL-ID% {
1427
+ font-size:.8em;
1428
+ font-style:italic;
1429
+ color:red;
1430
+ text-transform:lowercase;
1431
+ text-align:center;
1432
  }
1433
+ /*
1434
+ Success message
1435
+ ..................................
1436
+ */
1437
+ div#yop-poll-container-success-%POLL-ID% {
1438
+ font-size:.8em;
1439
+ font-style:italic;
1440
+ color:green;
1441
+ text-align:center;
1442
  }
1443
+ /*
1444
+ Poll Question
1445
+ ---------------------------------------------------------------------------
1446
+ */
1447
+ div#yop-poll-questions-container-%POLL-ID% { margin:.5em; }
1448
+ div.yop-poll-question-container-%POLL-ID% { margin: 0; }
1449
+ div.yop-poll-question-%POLL-ID% {
1450
+ border: 0 none;
1451
+ margin: 0 0 2em;
1452
+ padding: .25em;
1453
+ text-align: center;
1454
+ font-size: 14px;
1455
+ }
1456
+ /*
1457
+ Poll Options / Answers
1458
+ ---------------------------------------------------------------------------
1459
+ */
1460
+ div.yop-poll-answers-%POLL-ID% {}
1461
+ div.yop-poll-answers-%POLL-ID% ul {
1462
+ list-style: none;
1463
+ margin: 0;
1464
+ padding: 0;
1465
+
1466
+ }
1467
+ div.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-answer-%POLL-ID%,
1468
+ div.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-result-%POLL-ID% {
1469
+ list-style: none;
1470
+ margin: 0;
1471
+ padding: 0;
1472
+ font-size: 14px;
1473
+ line-height: 2em;
1474
+
1475
+ }
1476
+ div.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-result-%POLL-ID% {padding-bottom: 1em;}
1477
+ /*
1478
+ Label
1479
+ ..................................
1480
+ */
1481
+ div.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-answer-%POLL-ID% label {
1482
+ margin:0px;
1483
+ font-style:normal;
1484
+ font-weight:normal;
1485
+ font-size:14px;
1486
+ float:none;
1487
+ display:inline-block;
1488
+ }
1489
+ /* Actual text label of the answer */
1490
+ div.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-answer-%POLL-ID% label:nth-of-type(2) {
1491
+
1492
+ }
1493
+ /*
1494
+ Custom answer / Other
1495
+ ..................................
1496
+ */
1497
+ div.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-answer-%POLL-ID% label:nth-of-type(3) {
1498
+ width: 100%;
1499
+ overflow: hidden;
1500
+ }
1501
+ div#yop-poll-container-%POLL-ID% li.yop-poll-li-answer-%POLL-ID% label:nth-of-type(3) input[type="text"] {
1502
+ width: 94%;
1503
+ overflow: hidden;
1504
+ }
1505
+ /*
1506
+ Custom checkbox and radio button style
1507
+ ---------------------------------------------------------------------------
1508
+ */
1509
+
1510
+
1511
+ /*
1512
+ Custom fields
1513
+ ---------------------------------------------------------------------------
1514
+ */
1515
+ div.yop-poll-customs-%POLL-ID% {
1516
+ clear: both;
1517
+
1518
+ }
1519
+ div.yop-poll-customs-%POLL-ID% ul {
1520
+ list-style: none;
1521
+ margin: 0;
1522
+ padding: 0;
1523
+ overflow: hidden;
1524
+ width: 100%;
1525
+ }
1526
+ div.yop-poll-customs-%POLL-ID% ul li.yop-poll-li-custom-%POLL-ID% {
1527
+ display: block;
1528
+ font-size:14px;
1529
+ list-style: none;
1530
+ }
1531
+ div.yop-poll-customs-%POLL-ID% ul li.yop-poll-li-custom-%POLL-ID% label {
1532
+ display: block;
1533
+ }
1534
+ div#yop-poll-container-%POLL-ID% li.yop-poll-li-custom-%POLL-ID% input[type="text"] {
1535
+ width: 94%;
1536
+ }
1537
+ /*
1538
+ Vote Button
1539
+ ---------------------------------------------------------------------------
1540
+ */
1541
+ .yop-poll-footer { /*height: 4em;*/ }
1542
+
1543
+ .yop-poll-vote-centered-%POLL-ID% { text-align:center; }
1544
+
1545
+ #yop-poll-vote-%POLL-ID% div button {
1546
+
1547
+ cursor:pointer;
1548
+ display: block;
1549
+ font-size:14px;
1550
+ margin: 0 auto;
1551
+ }
1552
+
1553
+
1554
+ #yop-poll-vote-%POLL-ID% div button.yop_poll_vote_button {}
1555
+ #yop-poll-vote-%POLL-ID% div button.yop_poll_wordpress_vote_button { margin: 1em auto 0; }
1556
+ #yop-poll-vote-%POLL-ID% div button.yop_poll_anonymous_vote_button { margin: 1em auto 0; }
1557
+
1558
+ /*
1559
+ Results
1560
+ ---------------------------------------------------------------------------
1561
+ */
1562
+
1563
+ li.yop-poll-results-%POLL-ID% {
1564
+ font-size: 12px;
1565
+ font-style: italic;
1566
+ font-weight: normal;
1567
+ margin-left: 15px;
1568
+ color: #38595E;
1569
+ }
1570
+ /*
1571
+ Style for results that are displayed on columns
1572
+ ..................................
1573
+ */
1574
+ li.yop-poll-li-answer-%POLL-ID% {
1575
+ float: left;
1576
+ display: inline-block;
1577
+ width: 46%;
1578
+ padding: 1%;
1579
+ margin: 1%;
1580
  }
1581
+
1582
  #yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% {
1583
+ float: right;
1584
+ width: auto;
 
 
1585
  }
1586
  #yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% a {
1587
+ color:#000;
1588
+ text-decoration:underline;
1589
+ font-size:12px;
1590
  }
1591
  #yop-poll-vote-%POLL-ID% div#yop-poll-back-%POLL-ID% a {
1592
+ color:#000;
1593
+ text-decoration:underline;
1594
+ font-size:12px;
 
 
 
 
1595
  }
1596
+ #yop-poll-vote-%POLL-ID% div#yop-poll-archive-%POLL-ID% a {
1597
+ color:#000;
1598
+ text-decoration:underline;
1599
+ font-size:12px;
 
 
 
 
 
 
 
 
 
 
1600
  }
1601
+ #yop-poll-vote-%POLL-ID% div {
1602
+ float:left;
1603
+ width:100%;
1604
+ }
1605
+ /*
1606
+ Result Bar
1607
+ ..................................
1608
+ */
1609
+
1610
+ .yop-poll-results-bar-%POLL-ID% div { background:#555; width:90%;}
1611
+
1612
+
1613
+ /*
1614
+ ---------------------------------------------------------------------------
1615
+ EXTRAS
1616
+ ---------------------------------------------------------------------------
1617
+ */
1618
+ /*
1619
+ CAPTCHA
1620
+ ..................................
1621
+ */
1622
+ #yop-poll-captcha-input-div-%POLL-ID% { margin-top:5px; }
1623
+ #yop-poll-captcha-helpers-div-%POLL-ID% {
1624
+ width:30px;
1625
+ float:left;
1626
+ margin-left:5px;
1627
+ height:0px;
1628
  }
1629
+ #yop-poll-captcha-helpers-div-%POLL-ID% img { margin-bottom:2px; }
1630
+ #yop-poll-captcha-image-div-%POLL-ID% { margin-bottom:5px; }
1631
+ #yop_poll_captcha_image_%POLL-ID% { float:left; }
1632
+
1633
+ .yop-poll-clear-%POLL-ID% { clear:both; }
1634
+
1635
+ .yop-poll-name-%POLL-ID% { color:#38595E; font-size: 18px; }
1636
+
1637
+
1638
+ .yop-poll-li-answer-%POLL-ID% label img { max-width: 98%; }
1639
+ .yop-poll-li-result-%POLL-ID% label span img { max-width: 98%; }
1640
+
1641
+ .content { position :unset !important; }
1642
+
1643
+ div.yop-poll-container br,
1644
+ div#yop-poll-container-%POLL-ID% br { display: none; }
1645
+
1646
+ div#yop_poll_vote_options_div-%POLL-ID% div:nth-last-of-type(1) { display: none; }
1647
+
1648
+
1649
+
1650
+
1651
+
1652
+
1653
+
1654
+
1655
  NOWDOC;
1656
  break;
1657
  }
1658
  case 'Blue v1':
1659
  { //Blue v1
1660
  $css = <<<NOWDOC
1661
+ /*
1662
+ Main Container
1663
+ ---------------------------------------------------------------------------
1664
+ */
1665
+ #yop-poll-other-answer-%POLL-ID%-other {
1666
+ color:#000000;
1667
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1668
  }
1669
+ .yop-poll-customfield-%POLL-ID% {
1670
+ color:#000000;
1671
  }
1672
+ div#yop-poll-container-%POLL-ID% {
1673
+ background:#327BD6;
1674
+ box-sizing: border-box;
1675
+ color: #fff;
1676
+ display: inline-block;
1677
+ font-size: 14px;
1678
+ padding: 10px;
1679
+ width: %POLL-WIDTH%;
1680
+ zoom: 1;
1681
  }
1682
+ /* A nice little reset */
1683
+ div.yop-poll-container * {
1684
 
 
 
1685
  }
1686
 
1687
+ form#yop-poll-form-%POLL-ID% {
1688
 
1689
  }
1690
+ /*
1691
+ Error message
1692
+ ..................................
1693
+ */
1694
+ div#yop-poll-container-error-%POLL-ID% {
1695
+ font-size:.8em;
1696
+ font-style:italic;
1697
+ color:red;
1698
+ text-transform:lowercase;
1699
+ text-align:center;
1700
  }
1701
+ /*
1702
+ Success message
1703
+ ..................................
1704
+ */
1705
+ div#yop-poll-container-success-%POLL-ID% {
1706
+ font-size:.8em;
1707
+ font-style:italic;
1708
+ color:green;
1709
+ text-align:center;
1710
  }
1711
+ /*
1712
+ Poll Question
1713
+ ---------------------------------------------------------------------------
1714
+ */
1715
+ div#yop-poll-questions-container-%POLL-ID% { margin:.5em; }
1716
+ div.yop-poll-question-container-%POLL-ID% { margin: 0; }
1717
+ div.yop-poll-question-%POLL-ID% {
1718
+ border: 0 none;
1719
+ margin: 0 0 2em;
1720
+ padding: .25em;
1721
+ text-align: center;
1722
+ font-size: 14px;
1723
+ }
1724
+ /*
1725
+ Poll Options / Answers
1726
+ ---------------------------------------------------------------------------
1727
+ */
1728
+ div.yop-poll-answers-%POLL-ID% {}
1729
+ div.yop-poll-answers-%POLL-ID% ul {
1730
+ list-style: none;
1731
+ margin: 0;
1732
+ padding: 0;
1733
+
1734
+ }
1735
+ div.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-answer-%POLL-ID%,
1736
+ div.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-result-%POLL-ID% {
1737
+ list-style: none;
1738
+ margin: 0;
1739
+ padding: 0;
1740
+ font-size: 14px;
1741
+ line-height: 2em;
1742
+
1743
+ }
1744
+ div.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-result-%POLL-ID% {padding-bottom: 1em;}
1745
+ /*
1746
+ Label
1747
+ ..................................
1748
+ */
1749
+ div.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-answer-%POLL-ID% label {
1750
+ margin:0px;
1751
+ font-style:normal;
1752
+ font-weight:normal;
1753
+ font-size:14px;
1754
+ float:none;
1755
+ display:inline-block;
1756
+ }
1757
+ /* Actual text label of the answer */
1758
+ div.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-answer-%POLL-ID% label:nth-of-type(2) {
1759
+
1760
+ }
1761
+ /*
1762
+ Custom answer / Other
1763
+ ..................................
1764
+ */
1765
+ div.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-answer-%POLL-ID% label:nth-of-type(3) {
1766
+ width: 100%;
1767
+ overflow: hidden;
1768
+ }
1769
+ div#yop-poll-container-%POLL-ID% li.yop-poll-li-answer-%POLL-ID% label:nth-of-type(3) input[type="text"] {
1770
+ width: 94%;
1771
+ overflow: hidden;
1772
+ }
1773
+ /*
1774
+ Custom checkbox and radio button style
1775
+ ---------------------------------------------------------------------------
1776
+ */
1777
+
1778
+
1779
+ /*
1780
+ Custom fields
1781
+ ---------------------------------------------------------------------------
1782
+ */
1783
+ div.yop-poll-customs-%POLL-ID% {
1784
+ clear: both;
1785
+
1786
+ }
1787
+ div.yop-poll-customs-%POLL-ID% ul {
1788
+ list-style: none;
1789
+ margin: 0;
1790
+ padding: 0;
1791
+ overflow: hidden;
1792
+ width: 100%;
1793
+ }
1794
+ div.yop-poll-customs-%POLL-ID% ul li.yop-poll-li-custom-%POLL-ID% {
1795
+ display: block;
1796
+ font-size:14px;
1797
+ list-style: none;
1798
+ }
1799
+ div.yop-poll-customs-%POLL-ID% ul li.yop-poll-li-custom-%POLL-ID% label {
1800
+ display: block;
1801
+ }
1802
+ div#yop-poll-container-%POLL-ID% li.yop-poll-li-custom-%POLL-ID% input[type="text"] {
1803
+ width: 94%;
1804
+ }
1805
+ /*
1806
+ Vote Button
1807
+ ---------------------------------------------------------------------------
1808
+ */
1809
+ .yop-poll-footer { /*height: 4em;*/ }
1810
+
1811
+ .yop-poll-vote-centered-%POLL-ID% { text-align:center; }
1812
+
1813
+ #yop-poll-vote-%POLL-ID% div button {
1814
+
1815
+ cursor:pointer;
1816
+ display: block;
1817
+ font-size:14px;
1818
+ margin: 0 auto;
1819
+ }
1820
+
1821
+
1822
+ #yop-poll-vote-%POLL-ID% div button.yop_poll_vote_button {}
1823
+ #yop-poll-vote-%POLL-ID% div button.yop_poll_wordpress_vote_button { margin: 1em auto 0; }
1824
+ #yop-poll-vote-%POLL-ID% div button.yop_poll_anonymous_vote_button { margin: 1em auto 0; }
1825
+
1826
+ /*
1827
+ Results
1828
+ ---------------------------------------------------------------------------
1829
+ */
1830
+
1831
+ li.yop-poll-results-%POLL-ID% {
1832
+ font-size: 12px;
1833
+ font-style: italic;
1834
+ font-weight: normal;
1835
+ margin-left: 15px;
1836
+ color: #38595E;
1837
+ }
1838
+ /*
1839
+ Style for results that are displayed on columns
1840
+ ..................................
1841
+ */
1842
+ li.yop-poll-li-answer-%POLL-ID% {
1843
+ float: left;
1844
+ display: inline-block;
1845
+ width: 46%;
1846
+ padding: 1%;
1847
+ margin: 1%;
1848
  }
1849
+
1850
  #yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% {
1851
+ float: right;
1852
+ width: auto;
 
 
1853
  }
1854
  #yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% a {
1855
+ color:#000;
1856
+ text-decoration:underline;
1857
+ font-size:12px;
1858
  }
1859
  #yop-poll-vote-%POLL-ID% div#yop-poll-back-%POLL-ID% a {
1860
+ color:#000;
1861
+ text-decoration:underline;
1862
+ font-size:12px;
1863
  }
1864
  #yop-poll-vote-%POLL-ID% div#yop-poll-archive-%POLL-ID% a {
1865
+ color:#000;
1866
+ text-decoration:underline;
1867
+ font-size:12px;
1868
  }
1869
  #yop-poll-vote-%POLL-ID% div {
1870
+ float:left;
1871
+ width:100%;
1872
+ }
1873
+ /*
1874
+ Result Bar
1875
+ ..................................
1876
+ */
1877
+
1878
+ .yop-poll-results-bar-%POLL-ID% div { background:#555; width:90%;}
1879
+
1880
+
1881
+ /*
1882
+ ---------------------------------------------------------------------------
1883
+ EXTRAS
1884
+ ---------------------------------------------------------------------------
1885
+ */
1886
+ /*
1887
+ CAPTCHA
1888
+ ..................................
1889
+ */
1890
+ #yop-poll-captcha-input-div-%POLL-ID% { margin-top:5px; }
1891
+ #yop-poll-captcha-helpers-div-%POLL-ID% {
1892
+ width:30px;
1893
+ float:left;
1894
+ margin-left:5px;
1895
+ height:0px;
1896
  }
1897
+ #yop-poll-captcha-helpers-div-%POLL-ID% img { margin-bottom:2px; }
1898
+ #yop-poll-captcha-image-div-%POLL-ID% { margin-bottom:5px; }
1899
+ #yop_poll_captcha_image_%POLL-ID% { float:left; }
1900
+
1901
+ .yop-poll-clear-%POLL-ID% { clear:both; }
1902
+
1903
+ .yop-poll-name-%POLL-ID% { color:#38595E; font-size: 18px; }
1904
+
1905
+
1906
+ .yop-poll-li-answer-%POLL-ID% label img { max-width: 98%; }
1907
+ .yop-poll-li-result-%POLL-ID% label span img { max-width: 98%; }
1908
+
1909
+ .content { position :unset !important; }
1910
+
1911
+ div.yop-poll-container br,
1912
+ div#yop-poll-container-%POLL-ID% br { display: none; }
1913
+
1914
+ div#yop_poll_vote_options_div-%POLL-ID% div:nth-last-of-type(1) { display: none; }
1915
  NOWDOC;
1916
  break;
1917
  }
1918
  case 'Blue v2':
1919
  { //Blue v2
1920
  $css = <<<NOWDOC
1921
+ /*
1922
+ Main Container
1923
+ ---------------------------------------------------------------------------
1924
+ */
1925
+ #yop-poll-other-answer-%POLL-ID%-other {
1926
+ color:#000000;
1927
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1928
  }
1929
+ .yop-poll-customfield-%POLL-ID% {
1930
+ color:#000000;
1931
  }
1932
+ div#yop-poll-container-%POLL-ID% {
1933
+ background:#fff;
1934
+ box-sizing: border-box;
1935
+ display: inline-block;
1936
+ font-size: 14px;
1937
+ color:#555;
1938
+ padding: 10px;
1939
+ width: %POLL-WIDTH%;
1940
+ zoom: 1;
1941
  }
1942
+ /* A nice little reset */
1943
+ div.yop-poll-container * {
1944
 
 
 
1945
  }
1946
 
1947
+ form#yop-poll-form-%POLL-ID% {
1948
 
1949
  }
1950
+ /*
1951
+ Error message
1952
+ ..................................
1953
+ */
1954
+ div#yop-poll-container-error-%POLL-ID% {
1955
+ font-size:.8em;
1956
+ font-style:italic;
1957
+ color:red;
1958
+ text-transform:lowercase;
1959
+ text-align:center;
1960
  }
1961
+ /*
1962
+ Success message
1963
+ ..................................
1964
+ */
1965
+ div#yop-poll-container-success-%POLL-ID% {
1966
+ font-size:.8em;
1967
+ font-style:italic;
1968
+ color:green;
1969
+ text-align:center;
1970
  }
1971
+ /*
1972
+ Poll Question
1973
+ ---------------------------------------------------------------------------
1974
+ */
1975
+ div#yop-poll-questions-container-%POLL-ID% { margin:.5em; }
1976
+ div.yop-poll-question-container-%POLL-ID% { margin: 0; }
1977
+ div.yop-poll-question-%POLL-ID% {
1978
+ background:#327BD6;
1979
+ color:#fff;
1980
+ border: 0 none;
1981
+ margin: 0 0 2em;
1982
+ padding: .25em;
1983
+ text-align: center;
1984
+ font-size: 14px;
1985
+ }
1986
+ /*
1987
+ Poll Options / Answers
1988
+ ---------------------------------------------------------------------------
1989
+ */
1990
+ div.yop-poll-answers-%POLL-ID% {}
1991
+ div.yop-poll-answers-%POLL-ID% ul {
1992
+ list-style: none;
1993
+ margin: 0;
1994
+ padding: 0;
1995
+
1996
+ }
1997
+ div.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-answer-%POLL-ID%,
1998
+ div.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-result-%POLL-ID% {
1999
+ list-style: none;
2000
+ margin: 0;
2001
+ padding: 0;
2002
+ font-size: 14px;
2003
+ line-height: 2em;
2004
+
2005
+ }
2006
+ div.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-result-%POLL-ID% {padding-bottom: 1em;}
2007
+ /*
2008
+ Label
2009
+ ..................................
2010
+ */
2011
+ div.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-answer-%POLL-ID% label {
2012
+ margin:0px;
2013
+ font-style:normal;
2014
+ font-weight:normal;
2015
+ font-size:14px;
2016
+ float:none;
2017
+ display:inline-block;
2018
+ }
2019
+ /* Actual text label of the answer */
2020
+ div.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-answer-%POLL-ID% label:nth-of-type(2) {
2021
+
2022
+ }
2023
+ /*
2024
+ Custom answer / Other
2025
+ ..................................
2026
+ */
2027
+ div.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-answer-%POLL-ID% label:nth-of-type(3) {
2028
+ width: 100%;
2029
+ overflow: hidden;
2030
+ }
2031
+ div#yop-poll-container-%POLL-ID% li.yop-poll-li-answer-%POLL-ID% label:nth-of-type(3) input[type="text"] {
2032
+ width: 94%;
2033
+ overflow: hidden;
2034
+ }
2035
+ /*
2036
+ Custom checkbox and radio button style
2037
+ ---------------------------------------------------------------------------
2038
+ */
2039
+
2040
+
2041
+ /*
2042
+ Custom fields
2043
+ ---------------------------------------------------------------------------
2044
+ */
2045
+ div.yop-poll-customs-%POLL-ID% {
2046
+ clear: both;
2047
+
2048
+ }
2049
+ div.yop-poll-customs-%POLL-ID% ul {
2050
+ list-style: none;
2051
+ margin: 0;
2052
+ padding: 0;
2053
+ overflow: hidden;
2054
+ width: 100%;
2055
+ }
2056
+ div.yop-poll-customs-%POLL-ID% ul li.yop-poll-li-custom-%POLL-ID% {
2057
+ display: block;
2058
+ font-size:14px;
2059
+ list-style: none;
2060
+ }
2061
+ div.yop-poll-customs-%POLL-ID% ul li.yop-poll-li-custom-%POLL-ID% label {
2062
+ display: block;
2063
+ }
2064
+ div#yop-poll-container-%POLL-ID% li.yop-poll-li-custom-%POLL-ID% input[type="text"] {
2065
+ width: 94%;
2066
+ }
2067
+ /*
2068
+ Vote Button
2069
+ ---------------------------------------------------------------------------
2070
+ */
2071
+ .yop-poll-footer { /*height: 4em;*/ }
2072
+
2073
+ .yop-poll-vote-centered-%POLL-ID% { text-align:center; }
2074
+
2075
+ #yop-poll-vote-%POLL-ID% div button {
2076
+
2077
+ cursor:pointer;
2078
+ display: block;
2079
+ font-size:14px;
2080
+ margin: 0 auto;
2081
+ }
2082
+
2083
+
2084
+ #yop-poll-vote-%POLL-ID% div button.yop_poll_vote_button {}
2085
+ #yop-poll-vote-%POLL-ID% div button.yop_poll_wordpress_vote_button { margin: 1em auto 0; }
2086
+ #yop-poll-vote-%POLL-ID% div button.yop_poll_anonymous_vote_button { margin: 1em auto 0; }
2087
+
2088
+ /*
2089
+ Results
2090
+ ---------------------------------------------------------------------------
2091
+ */
2092
+
2093
+ li.yop-poll-results-%POLL-ID% {
2094
+ font-size: 12px;
2095
+ font-style: italic;
2096
+ font-weight: normal;
2097
+ margin-left: 15px;
2098
+ color: #38595E;
2099
+ }
2100
+ /*
2101
+ Style for results that are displayed on columns
2102
+ ..................................
2103
+ */
2104
+ li.yop-poll-li-answer-%POLL-ID% {
2105
+ float: left;
2106
+ display: inline-block;
2107
+ width: 46%;
2108
+ padding: 1%;
2109
+ margin: 1%;
2110
  }
2111
+
2112
  #yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% {
2113
+ float: right;
2114
+ width: auto;
 
 
2115
  }
2116
  #yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% a {
2117
+ color:#000;
2118
+ text-decoration:underline;
2119
+ font-size:12px;
2120
  }
2121
  #yop-poll-vote-%POLL-ID% div#yop-poll-back-%POLL-ID% a {
2122
+ color:#000;
2123
+ text-decoration:underline;
2124
+ font-size:12px;
2125
  }
2126
  #yop-poll-vote-%POLL-ID% div#yop-poll-archive-%POLL-ID% a {
2127
+ color:#000;
2128
+ text-decoration:underline;
2129
+ font-size:12px;
2130
  }
2131
  #yop-poll-vote-%POLL-ID% div {
2132
+ float:left;
2133
+ width:100%;
2134
+ }
2135
+ /*
2136
+ Result Bar
2137
+ ..................................
2138
+ */
2139
+
2140
+ .yop-poll-results-bar-%POLL-ID% div { background:#555; width:90%;}
2141
+
2142
+
2143
+ /*
2144
+ ---------------------------------------------------------------------------
2145
+ EXTRAS
2146
+ ---------------------------------------------------------------------------
2147
+ */
2148
+ /*
2149
+ CAPTCHA
2150
+ ..................................
2151
+ */
2152
+ #yop-poll-captcha-input-div-%POLL-ID% { margin-top:5px; }
2153
+ #yop-poll-captcha-helpers-div-%POLL-ID% {
2154
+ width:30px;
2155
+ float:left;
2156
+ margin-left:5px;
2157
+ height:0px;
2158
  }
2159
+ #yop-poll-captcha-helpers-div-%POLL-ID% img { margin-bottom:2px; }
2160
+ #yop-poll-captcha-image-div-%POLL-ID% { margin-bottom:5px; }
2161
+ #yop_poll_captcha_image_%POLL-ID% { float:left; }
2162
+
2163
+ .yop-poll-clear-%POLL-ID% { clear:both; }
2164
+
2165
+ .yop-poll-name-%POLL-ID% { color:#38595E; font-size: 18px; }
2166
+
2167
+
2168
+ .yop-poll-li-answer-%POLL-ID% label img { max-width: 98%; }
2169
+ .yop-poll-li-result-%POLL-ID% label span img { max-width: 98%; }
2170
+
2171
+ .content { position :unset !important; }
2172
+
2173
+ div.yop-poll-container br,
2174
+ div#yop-poll-container-%POLL-ID% br { display: none; }
2175
+
2176
+ div#yop_poll_vote_options_div-%POLL-ID% div:nth-last-of-type(1) { display: none; }
2177
  NOWDOC;
2178
  break;
2179
  }
2180
  case 'Blue v3':
2181
  { //Blue v3
2182
  $css = <<<NOWDOC
2183
+ /*
2184
+ Main Container
2185
+ ---------------------------------------------------------------------------
2186
+ */
2187
+ #yop-poll-other-answer-%POLL-ID%-other {
2188
+ border:1px solid #000000;
2189
+ color:#000000;
2190
+
2191
+ }
2192
+ .yop-poll-customfield-%POLL-ID% {
2193
+ border:1px solid #000000;
2194
+ color:#000000;
2195
+ }
2196
+ div#yop-poll-container-%POLL-ID% {
2197
+ background:#fff;
2198
+ box-sizing: border-box;
2199
+ display: inline-block;
2200
+ font-size: 14px;
2201
+ color:#555;
2202
+ padding: 10px;
2203
+ width: %POLL-WIDTH%;
2204
+ zoom: 1;
2205
+ border: 5px solid #327BD6;
2206
+ }
2207
+ /* A nice little reset */
2208
+ div.yop-poll-container * {
2209
+
2210
+ }
2211
+
2212
+ form#yop-poll-form-%POLL-ID% {
2213
+
2214
+ }
2215
+ /*
2216
+ Error message
2217
+ ..................................
2218
+ */
2219
+ div#yop-poll-container-error-%POLL-ID% {
2220
+ font-size:.8em;
2221
+ font-style:italic;
2222
+ color:red;
2223
+ text-transform:lowercase;
2224
+ text-align:center;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2225
  }
2226
+ /*
2227
+ Success message
2228
+ ..................................
2229
+ */
2230
+ div#yop-poll-container-success-%POLL-ID% {
2231
+ font-size:.8em;
2232
+ font-style:italic;
2233
+ color:green;
2234
+ text-align:center;
2235
  }
2236
+ /*
2237
+ Poll Question
2238
+ ---------------------------------------------------------------------------
2239
+ */
2240
+ div#yop-poll-questions-container-%POLL-ID% { margin:.5em; }
2241
+ div.yop-poll-question-container-%POLL-ID% { margin: 0; }
2242
+ div.yop-poll-question-%POLL-ID% {
2243
+ border: 0 none;
2244
+ margin: 0 0 2em;
2245
+ padding: .25em;
2246
+ text-align: center;
2247
+ font-size: 14px;
2248
+ }
2249
+ /*
2250
+ Poll Options / Answers
2251
+ ---------------------------------------------------------------------------
2252
+ */
2253
+ div.yop-poll-answers-%POLL-ID% {}
2254
+ div.yop-poll-answers-%POLL-ID% ul {
2255
+ list-style: none;
2256
+ margin: 0;
2257
+ padding: 0;
2258
+
2259
+ }
2260
+ div.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-answer-%POLL-ID%,
2261
+ div.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-result-%POLL-ID% {
2262
+ list-style: none;
2263
+ margin: 0;
2264
+ padding: 0;
2265
+ font-size: 14px;
2266
+ line-height: 2em;
2267
+
2268
+ }
2269
+ div.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-result-%POLL-ID% {padding-bottom: 1em;}
2270
+ /*
2271
+ Label
2272
+ ..................................
2273
+ */
2274
+ div.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-answer-%POLL-ID% label {
2275
+ margin:0px;
2276
+ font-style:normal;
2277
+ font-weight:normal;
2278
+ font-size:14px;
2279
+ float:none;
2280
+ display:inline-block;
2281
+ }
2282
+ /* Actual text label of the answer */
2283
+ div.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-answer-%POLL-ID% label:nth-of-type(2) {
2284
+
2285
+ }
2286
+ /*
2287
+ Custom answer / Other
2288
+ ..................................
2289
+ */
2290
+ div.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-answer-%POLL-ID% label:nth-of-type(3) {
2291
+ width: 100%;
2292
+ overflow: hidden;
2293
+ }
2294
+ div#yop-poll-container-%POLL-ID% li.yop-poll-li-answer-%POLL-ID% label:nth-of-type(3) input[type="text"] {
2295
+ width: 94%;
2296
+ overflow: hidden;
2297
+ }
2298
+ /*
2299
+ Custom checkbox and radio button style
2300
+ ---------------------------------------------------------------------------
2301
+ */
2302
+
2303
+
2304
+ /*
2305
+ Custom fields
2306
+ ---------------------------------------------------------------------------
2307
+ */
2308
+ div.yop-poll-customs-%POLL-ID% {
2309
+ clear: both;
2310
+
2311
+ }
2312
+ div.yop-poll-customs-%POLL-ID% ul {
2313
+ list-style: none;
2314
+ margin: 0;
2315
+ padding: 0;
2316
+ overflow: hidden;
2317
+ width: 100%;
2318
+ }
2319
+ div.yop-poll-customs-%POLL-ID% ul li.yop-poll-li-custom-%POLL-ID% {
2320
+ display: block;
2321
+ font-size:14px;
2322
+ list-style: none;
2323
+ }
2324
+ div.yop-poll-customs-%POLL-ID% ul li.yop-poll-li-custom-%POLL-ID% label {
2325
+ display: block;
2326
+ }
2327
+ div#yop-poll-container-%POLL-ID% li.yop-poll-li-custom-%POLL-ID% input[type="text"] {
2328
+ width: 94%;
2329
+ }
2330
+ /*
2331
+ Vote Button
2332
+ ---------------------------------------------------------------------------
2333
+ */
2334
+ .yop-poll-footer { /*height: 4em;*/ }
2335
+
2336
+ .yop-poll-vote-centered-%POLL-ID% { text-align:center; }
2337
+
2338
+ #yop-poll-vote-%POLL-ID% div button {
2339
+
2340
+ cursor:pointer;
2341
+ display: block;
2342
+ font-size:14px;
2343
+ margin: 0 auto;
2344
+ }
2345
+
2346
+
2347
+ #yop-poll-vote-%POLL-ID% div button.yop_poll_vote_button {}
2348
+ #yop-poll-vote-%POLL-ID% div button.yop_poll_wordpress_vote_button { margin: 1em auto 0; }
2349
+ #yop-poll-vote-%POLL-ID% div button.yop_poll_anonymous_vote_button { margin: 1em auto 0; }
2350
+
2351
+ /*
2352
+ Results
2353
+ ---------------------------------------------------------------------------
2354
+ */
2355
+
2356
+ li.yop-poll-results-%POLL-ID% {
2357
+ font-size: 12px;
2358
+ font-style: italic;
2359
+ font-weight: normal;
2360
+ margin-left: 15px;
2361
+ color: #38595E;
2362
+ }
2363
+ /*
2364
+ Style for results that are displayed on columns
2365
+ ..................................
2366
+ */
2367
+ li.yop-poll-li-answer-%POLL-ID% {
2368
+ float: left;
2369
+ display: inline-block;
2370
+ width: 46%;
2371
+ padding: 1%;
2372
+ margin: 1%;
2373
  }
 
2374
 
 
 
 
 
2375
  #yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% {
2376
+ float: right;
2377
+ width: auto;
 
 
2378
  }
2379
  #yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% a {
2380
+ color:#000;
2381
+ text-decoration:underline;
2382
+ font-size:12px;
2383
  }
2384
  #yop-poll-vote-%POLL-ID% div#yop-poll-back-%POLL-ID% a {
2385
+ color:#000;
2386
+ text-decoration:underline;
2387
+ font-size:12px;
2388
  }
2389
  #yop-poll-vote-%POLL-ID% div#yop-poll-archive-%POLL-ID% a {
2390
+ color:#000;
2391
+ text-decoration:underline;
2392
+ font-size:12px;
2393
  }
2394
  #yop-poll-vote-%POLL-ID% div {
2395
+ float:left;
2396
+ width:100%;
2397
+ }
2398
+ /*
2399
+ Result Bar
2400
+ ..................................
2401
+ */
2402
+
2403
+ .yop-poll-results-bar-%POLL-ID% div { background:#555; width:90%;}
2404
+
2405
+
2406
+ /*
2407
+ ---------------------------------------------------------------------------
2408
+ EXTRAS
2409
+ ---------------------------------------------------------------------------
2410
+ */
2411
+ /*
2412
+ CAPTCHA
2413
+ ..................................
2414
+ */
2415
+ #yop-poll-captcha-input-div-%POLL-ID% { margin-top:5px; }
2416
+ #yop-poll-captcha-helpers-div-%POLL-ID% {
2417
+ width:30px;
2418
+ float:left;
2419
+ margin-left:5px;
2420
+ height:0px;
2421
  }
2422
+ #yop-poll-captcha-helpers-div-%POLL-ID% img { margin-bottom:2px; }
2423
+ #yop-poll-captcha-image-div-%POLL-ID% { margin-bottom:5px; }
2424
+ #yop_poll_captcha_image_%POLL-ID% { float:left; }
2425
+
2426
+ .yop-poll-clear-%POLL-ID% { clear:both; }
2427
+
2428
+ .yop-poll-name-%POLL-ID% { color:#38595E; font-size: 18px; }
2429
+
2430
+
2431
+ .yop-poll-li-answer-%POLL-ID% label img { max-width: 98%; }
2432
+ .yop-poll-li-result-%POLL-ID% label span img { max-width: 98%; }
2433
+
2434
+ .content { position :unset !important; }
2435
+
2436
+ div.yop-poll-container br,
2437
+ div#yop-poll-container-%POLL-ID% br { display: none; }
2438
+
2439
+ div#yop_poll_vote_options_div-%POLL-ID% div:nth-last-of-type(1) { display: none; }
2440
  NOWDOC;
2441
  break;
2442
  }
2443
  case 'Red v1':
2444
  { //Red v1
2445
  $css = <<<NOWDOC
2446
+ /*
2447
+ Main Container
2448
+ ---------------------------------------------------------------------------
2449
+ */
2450
+ #yop-poll-other-answer-%POLL-ID%-other {
2451
+ color:#000000;
2452
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2453
  }
2454
+ .yop-poll-customfield-%POLL-ID% {
2455
+ color:#000000;
2456
  }
2457
+ div#yop-poll-container-%POLL-ID% {
2458
+ background:#B70004;
2459
+ box-sizing: border-box;
2460
+ display: inline-block;
2461
+ font-size: 14px;
2462
+ color:white;
2463
+ padding: 10px;
2464
+ width: %POLL-WIDTH%;
2465
+ zoom: 1;
2466
  }
2467
+ /* A nice little reset */
2468
+ div.yop-poll-container * {
2469
 
 
 
2470
  }
2471
 
2472
+ form#yop-poll-form-%POLL-ID% {
2473
 
2474
  }
2475
+ /*
2476
+ Error message
2477
+ ..................................
2478
+ */
2479
+ div#yop-poll-container-error-%POLL-ID% {
2480
+ font-size:.8em;
2481
+ font-style:italic;
2482
+ color:red;
2483
+ text-transform:lowercase;
2484
+ text-align:center;
2485
  }
2486
+ /*
2487
+ Success message
2488
+ ..................................
2489
+ */
2490
+ div#yop-poll-container-success-%POLL-ID% {
2491
+ font-size:.8em;
2492
+ font-style:italic;
2493
+ color:green;
2494
+ text-align:center;
2495
  }
2496
+ /*
2497
+ Poll Question
2498
+ ---------------------------------------------------------------------------
2499
+ */
2500
+ div#yop-poll-questions-container-%POLL-ID% { margin:.5em; }
2501
+ div.yop-poll-question-container-%POLL-ID% { margin: 0; }
2502
+ div.yop-poll-question-%POLL-ID% {
2503
+ border: 0 none;
2504
+ margin: 0 0 2em;
2505
+ padding: .25em;
2506
+ text-align: center;
2507
+ font-size: 14px;
2508
+ }
2509
+ /*
2510
+ Poll Options / Answers
2511
+ ---------------------------------------------------------------------------
2512
+ */
2513
+ div.yop-poll-answers-%POLL-ID% {}
2514
+ div.yop-poll-answers-%POLL-ID% ul {
2515
+ list-style: none;
2516
+ margin: 0;
2517
+ padding: 0;
2518
+
2519
+ }
2520
+ div.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-answer-%POLL-ID%,
2521
+ div.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-result-%POLL-ID% {
2522
+ list-style: none;
2523
+ margin: 0;
2524
+ padding: 0;
2525
+ font-size: 14px;
2526
+ line-height: 2em;
2527
+
2528
+ }
2529
+ div.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-result-%POLL-ID% {padding-bottom: 1em;}
2530
+ /*
2531
+ Label
2532
+ ..................................
2533
+ */
2534
+ div.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-answer-%POLL-ID% label {
2535
+ margin:0px;
2536
+ font-style:normal;
2537
+ font-weight:normal;
2538
+ font-size:14px;
2539
+ float:none;
2540
+ display:inline-block;
2541
+ }
2542
+ /* Actual text label of the answer */
2543
+ div.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-answer-%POLL-ID% label:nth-of-type(2) {
2544
+
2545
+ }
2546
+ /*
2547
+ Custom answer / Other
2548
+ ..................................
2549
+ */
2550
+ div.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-answer-%POLL-ID% label:nth-of-type(3) {
2551
+ width: 100%;
2552
+ overflow: hidden;
2553
+ }
2554
+ div#yop-poll-container-%POLL-ID% li.yop-poll-li-answer-%POLL-ID% label:nth-of-type(3) input[type="text"] {
2555
+ width: 94%;
2556
+ overflow: hidden;
2557
+ }
2558
+ /*
2559
+ Custom checkbox and radio button style
2560
+ ---------------------------------------------------------------------------
2561
+ */
2562
+
2563
+
2564
+ /*
2565
+ Custom fields
2566
+ ---------------------------------------------------------------------------
2567
+ */
2568
+ div.yop-poll-customs-%POLL-ID% {
2569
+ clear: both;
2570
+
2571
+ }
2572
+ div.yop-poll-customs-%POLL-ID% ul {
2573
+ list-style: none;
2574
+ margin: 0;
2575
+ padding: 0;
2576
+ overflow: hidden;
2577
+ width: 100%;
2578
+ }
2579
+ div.yop-poll-customs-%POLL-ID% ul li.yop-poll-li-custom-%POLL-ID% {
2580
+ display: block;
2581
+ font-size:14px;
2582
+ list-style: none;
2583
+ }
2584
+ div.yop-poll-customs-%POLL-ID% ul li.yop-poll-li-custom-%POLL-ID% label {
2585
+ display: block;
2586
+ }
2587
+ div#yop-poll-container-%POLL-ID% li.yop-poll-li-custom-%POLL-ID% input[type="text"] {
2588
+ width: 94%;
2589
+ }
2590
+ /*
2591
+ Vote Button
2592
+ ---------------------------------------------------------------------------
2593
+ */
2594
+ .yop-poll-footer { /*height: 4em;*/ }
2595
+
2596
+ .yop-poll-vote-centered-%POLL-ID% { text-align:center; }
2597
+
2598
+ #yop-poll-vote-%POLL-ID% div button {
2599
+
2600
+ cursor:pointer;
2601
+ display: block;
2602
+ font-size:14px;
2603
+ margin: 0 auto;
2604
+ }
2605
+
2606
+
2607
+ #yop-poll-vote-%POLL-ID% div button.yop_poll_vote_button {}
2608
+ #yop-poll-vote-%POLL-ID% div button.yop_poll_wordpress_vote_button { margin: 1em auto 0; }
2609
+ #yop-poll-vote-%POLL-ID% div button.yop_poll_anonymous_vote_button { margin: 1em auto 0; }
2610
+
2611
+ /*
2612
+ Results
2613
+ ---------------------------------------------------------------------------
2614
+ */
2615
+
2616
+ li.yop-poll-results-%POLL-ID% {
2617
+ font-size: 12px;
2618
+ font-style: italic;
2619
+ font-weight: normal;
2620
+ margin-left: 15px;
2621
+ color: #38595E;
2622
+ }
2623
+ /*
2624
+ Style for results that are displayed on columns
2625
+ ..................................
2626
+ */
2627
+ li.yop-poll-li-answer-%POLL-ID% {
2628
+ float: left;
2629
+ display: inline-block;
2630
+ width: 46%;
2631
+ padding: 1%;
2632
+ margin: 1%;
2633
  }
2634
+
2635
  #yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% {
2636
+ float: right;
2637
+ width: auto;
 
 
2638
  }
2639
  #yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% a {
2640
+ color:#000;
2641
+ text-decoration:underline;
2642
+ font-size:12px;
2643
  }
2644
  #yop-poll-vote-%POLL-ID% div#yop-poll-back-%POLL-ID% a {
2645
+ color:#000;
2646
+ text-decoration:underline;
2647
+ font-size:12px;
2648
  }
2649
  #yop-poll-vote-%POLL-ID% div#yop-poll-archive-%POLL-ID% a {
2650
+ color:#000;
2651
+ text-decoration:underline;
2652
+ font-size:12px;
2653
  }
2654
  #yop-poll-vote-%POLL-ID% div {
2655
+ float:left;
2656
+ width:100%;
2657
+ }
2658
+ /*
2659
+ Result Bar
2660
+ ..................................
2661
+ */
2662
+
2663
+ .yop-poll-results-bar-%POLL-ID% div { background:#555; width:90%;}
2664
+
2665
+
2666
+ /*
2667
+ ---------------------------------------------------------------------------
2668
+ EXTRAS
2669
+ ---------------------------------------------------------------------------
2670
+ */
2671
+ /*
2672
+ CAPTCHA
2673
+ ..................................
2674
+ */
2675
+ #yop-poll-captcha-input-div-%POLL-ID% { margin-top:5px; }
2676
+ #yop-poll-captcha-helpers-div-%POLL-ID% {
2677
+ width:30px;
2678
+ float:left;
2679
+ margin-left:5px;
2680
+ height:0px;
2681
  }
2682
+ #yop-poll-captcha-helpers-div-%POLL-ID% img { margin-bottom:2px; }
2683
+ #yop-poll-captcha-image-div-%POLL-ID% { margin-bottom:5px; }
2684
+ #yop_poll_captcha_image_%POLL-ID% { float:left; }
2685
+
2686
+ .yop-poll-clear-%POLL-ID% { clear:both; }
2687
+
2688
+ .yop-poll-name-%POLL-ID% { color:#38595E; font-size: 18px; }
2689
+
2690
+
2691
+ .yop-poll-li-answer-%POLL-ID% label img { max-width: 98%; }
2692
+ .yop-poll-li-result-%POLL-ID% label span img { max-width: 98%; }
2693
+
2694
+ .content { position :unset !important; }
2695
+
2696
+ div.yop-poll-container br,
2697
+ div#yop-poll-container-%POLL-ID% br { display: none; }
2698
+
2699
+ div#yop_poll_vote_options_div-%POLL-ID% div:nth-last-of-type(1) { display: none; }
2700
  NOWDOC;
2701
  break;
2702
  }
2703
  case 'Red v2':
2704
  { //Red v2
2705
  $css = <<<NOWDOC
2706
+ /*
2707
+ Main Container
2708
+ ---------------------------------------------------------------------------
2709
+ */
2710
+ #yop-poll-other-answer-%POLL-ID%-other {
2711
+ border:1px solid #000000;
2712
+ color:#000000;
2713
+
2714
+ }
2715
+ .yop-poll-customfield-%POLL-ID% {
2716
+ border:1px solid #000000;
2717
+ color:#000000;
2718
+ }
2719
+ div#yop-poll-container-%POLL-ID% {
2720
+ background:#fff;
2721
+ box-sizing: border-box;
2722
+ display: inline-block;
2723
+ font-size: 14px;
2724
+ color:#555;
2725
+ padding: 10px;
2726
+ width: %POLL-WIDTH%;
2727
+ zoom: 1;
2728
+ }
2729
+ /* A nice little reset */
2730
+ div.yop-poll-container * {
2731
+
2732
+ }
2733
+
2734
+ form#yop-poll-form-%POLL-ID% {
2735
+
2736
+ }
2737
+ /*
2738
+ Error message
2739
+ ..................................
2740
+ */
2741
+ div#yop-poll-container-error-%POLL-ID% {
2742
+ font-size:.8em;
2743
+ font-style:italic;
2744
+ color:red;
2745
+ text-transform:lowercase;
2746
+ text-align:center;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2747
  }
2748
+ /*
2749
+ Success message
2750
+ ..................................
2751
+ */
2752
+ div#yop-poll-container-success-%POLL-ID% {
2753
+ font-size:.8em;
2754
+ font-style:italic;
2755
+ color:green;
2756
+ text-align:center;
2757
  }
2758
+ /*
2759
+ Poll Question
2760
+ ---------------------------------------------------------------------------
2761
+ */
2762
+ div#yop-poll-questions-container-%POLL-ID% { margin:.5em; }
2763
+ div.yop-poll-question-container-%POLL-ID% { margin: 0; }
2764
+ div.yop-poll-question-%POLL-ID% {
2765
+ background:#B70004;
2766
+ color:#fff;
2767
+ border: 0 none;
2768
+ margin: 0 0 2em;
2769
+ padding: .25em;
2770
+ text-align: center;
2771
+ font-size: 14px;
2772
+ }
2773
+ /*
2774
+ Poll Options / Answers
2775
+ ---------------------------------------------------------------------------
2776
+ */
2777
+ div.yop-poll-answers-%POLL-ID% {}
2778
+ div.yop-poll-answers-%POLL-ID% ul {
2779
+ list-style: none;
2780
+ margin: 0;
2781
+ padding: 0;
2782
+
2783
+ }
2784
+ div.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-answer-%POLL-ID%,
2785
+ div.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-result-%POLL-ID% {
2786
+ list-style: none;
2787
+ margin: 0;
2788
+ padding: 0;
2789
+ font-size: 14px;
2790
+ line-height: 2em;
2791
+
2792
+ }
2793
+ div.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-result-%POLL-ID% {padding-bottom: 1em;}
2794
+ /*
2795
+ Label
2796
+ ..................................
2797
+ */
2798
+ div.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-answer-%POLL-ID% label {
2799
+ margin:0px;
2800
+ font-style:normal;
2801
+ font-weight:normal;
2802
+ font-size:14px;
2803
+ float:none;
2804
+ display:inline-block;
2805
+ }
2806
+ /* Actual text label of the answer */
2807
+ div.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-answer-%POLL-ID% label:nth-of-type(2) {
2808
+
2809
+ }
2810
+ /*
2811
+ Custom answer / Other
2812
+ ..................................
2813
+ */
2814
+ div.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-answer-%POLL-ID% label:nth-of-type(3) {
2815
+ width: 100%;
2816
+ overflow: hidden;
2817
+ }
2818
+ div#yop-poll-container-%POLL-ID% li.yop-poll-li-answer-%POLL-ID% label:nth-of-type(3) input[type="text"] {
2819
+ width: 94%;
2820
+ overflow: hidden;
2821
+ }
2822
+ /*
2823
+ Custom checkbox and radio button style
2824
+ ---------------------------------------------------------------------------
2825
+ */
2826
+
2827
+
2828
+ /*
2829
+ Custom fields
2830
+ ---------------------------------------------------------------------------
2831
+ */
2832
+ div.yop-poll-customs-%POLL-ID% {
2833
+ clear: both;
2834
+
2835
+ }
2836
+ div.yop-poll-customs-%POLL-ID% ul {
2837
+ list-style: none;
2838
+ margin: 0;
2839
+ padding: 0;
2840
+ overflow: hidden;
2841
+ width: 100%;
2842
+ }
2843
+ div.yop-poll-customs-%POLL-ID% ul li.yop-poll-li-custom-%POLL-ID% {
2844
+ display: block;
2845
+ font-size:14px;
2846
+ list-style: none;
2847
+ }
2848
+ div.yop-poll-customs-%POLL-ID% ul li.yop-poll-li-custom-%POLL-ID% label {
2849
+ display: block;
2850
+ }
2851
+ div#yop-poll-container-%POLL-ID% li.yop-poll-li-custom-%POLL-ID% input[type="text"] {
2852
+ width: 94%;
2853
+ }
2854
+ /*
2855
+ Vote Button
2856
+ ---------------------------------------------------------------------------
2857
+ */
2858
+ .yop-poll-footer { /*height: 4em;*/ }
2859
+
2860
+ .yop-poll-vote-centered-%POLL-ID% { text-align:center; }
2861
+
2862
+ #yop-poll-vote-%POLL-ID% div button {
2863
+
2864
+ cursor:pointer;
2865
+ display: block;
2866
+ font-size:14px;
2867
+ margin: 0 auto;
2868
+ }
2869
+
2870
+
2871
+ #yop-poll-vote-%POLL-ID% div button.yop_poll_vote_button {}
2872
+ #yop-poll-vote-%POLL-ID% div button.yop_poll_wordpress_vote_button { margin: 1em auto 0; }
2873
+ #yop-poll-vote-%POLL-ID% div button.yop_poll_anonymous_vote_button { margin: 1em auto 0; }
2874
+
2875
+ /*
2876
+ Results
2877
+ ---------------------------------------------------------------------------
2878
+ */
2879
+
2880
+ li.yop-poll-results-%POLL-ID% {
2881
+ font-size: 12px;
2882
+ font-style: italic;
2883
+ font-weight: normal;
2884
+ margin-left: 15px;
2885
+ color: #38595E;
2886
+ }
2887
+ /*
2888
+ Style for results that are displayed on columns
2889
+ ..................................
2890
+ */
2891
+ li.yop-poll-li-answer-%POLL-ID% {
2892
+ float: left;
2893
+ display: inline-block;
2894
+ width: 46%;
2895
+ padding: 1%;
2896
+ margin: 1%;
2897
  }
 
2898
 
 
 
 
 
2899
  #yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% {
2900
+ float: right;
2901
+ width: auto;
 
 
2902
  }
2903
  #yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% a {
2904
+ color:#000;
2905
+ text-decoration:underline;
2906
+ font-size:12px;
2907
  }
2908
  #yop-poll-vote-%POLL-ID% div#yop-poll-back-%POLL-ID% a {
2909
+ color:#000;
2910
+ text-decoration:underline;
2911
+ font-size:12px;
2912
  }
2913
  #yop-poll-vote-%POLL-ID% div#yop-poll-archive-%POLL-ID% a {
2914
+ color:#000;
2915
+ text-decoration:underline;
2916
+ font-size:12px;
2917
  }
2918
  #yop-poll-vote-%POLL-ID% div {
2919
+ float:left;
2920
+ width:100%;
2921
+ }
2922
+ /*
2923
+ Result Bar
2924
+ ..................................
2925
+ */
2926
+
2927
+ .yop-poll-results-bar-%POLL-ID% div { background:#555; width:90%;}
2928
+
2929
+
2930
+ /*
2931
+ ---------------------------------------------------------------------------
2932
+ EXTRAS
2933
+ ---------------------------------------------------------------------------
2934
+ */
2935
+ /*
2936
+ CAPTCHA
2937
+ ..................................
2938
+ */
2939
+ #yop-poll-captcha-input-div-%POLL-ID% { margin-top:5px; }
2940
+ #yop-poll-captcha-helpers-div-%POLL-ID% {
2941
+ width:30px;
2942
+ float:left;
2943
+ margin-left:5px;
2944
+ height:0px;
2945
  }
2946
+ #yop-poll-captcha-helpers-div-%POLL-ID% img { margin-bottom:2px; }
2947
+ #yop-poll-captcha-image-div-%POLL-ID% { margin-bottom:5px; }
2948
+ #yop_poll_captcha_image_%POLL-ID% { float:left; }
2949
+
2950
+ .yop-poll-clear-%POLL-ID% { clear:both; }
2951
+
2952
+ .yop-poll-name-%POLL-ID% { color:#38595E; font-size: 18px; }
2953
+
2954
+
2955
+ .yop-poll-li-answer-%POLL-ID% label img { max-width: 98%; }
2956
+ .yop-poll-li-result-%POLL-ID% label span img { max-width: 98%; }
2957
+
2958
+ .content { position :unset !important; }
2959
+
2960
+ div.yop-poll-container br,
2961
+ div#yop-poll-container-%POLL-ID% br { display: none; }
2962
+
2963
+ div#yop_poll_vote_options_div-%POLL-ID% div:nth-last-of-type(1) { display: none; }
2964
  NOWDOC;
2965
  break;
2966
  }
2967
  case 'Red v3':
2968
  { //Red v3
2969
  $css = <<<NOWDOC
2970
+ /*
2971
+ Main Container
2972
+ ---------------------------------------------------------------------------
2973
+ */
2974
+ #yop-poll-other-answer-%POLL-ID%-other {
2975
+ border:1px solid #000000;
2976
+ color:#000000;
2977
+
2978
+ }
2979
+ .yop-poll-customfield-%POLL-ID% {
2980
+ border:1px solid #000000;
2981
+ color:#000000;
2982
+ }
2983
+ div#yop-poll-container-%POLL-ID% {
2984
+ background:#fff;
2985
+ box-sizing: border-box;
2986
+ display: inline-block;
2987
+ font-size: 14px;
2988
+ color:#555;
2989
+ padding: 10px;
2990
+ width: %POLL-WIDTH%;
2991
+ zoom: 1;
2992
+ border:5px solid #B70004;
2993
+ }
2994
+ /* A nice little reset */
2995
+ div.yop-poll-container * {
2996
+
2997
+ }
2998
+
2999
+ form#yop-poll-form-%POLL-ID% {
3000
+
3001
+ }
3002
+ /*
3003
+ Error message
3004
+ ..................................
3005
+ */
3006
+ div#yop-poll-container-error-%POLL-ID% {
3007
+ font-size:.8em;
3008
+ font-style:italic;
3009
+ color:red;
3010
+ text-transform:lowercase;
3011
+ text-align:center;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3012
  }
3013
+ /*
3014
+ Success message
3015
+ ..................................
3016
+ */
3017
+ div#yop-poll-container-success-%POLL-ID% {
3018
+ font-size:.8em;
3019
+ font-style:italic;
3020
+ color:green;
3021
+ text-align:center;
3022
  }
3023
+ /*
3024
+ Poll Question
3025
+ ---------------------------------------------------------------------------
3026
+ */
3027
+ div#yop-poll-questions-container-%POLL-ID% { margin:.5em; }
3028
+ div.yop-poll-question-container-%POLL-ID% { margin: 0; }
3029
+ div.yop-poll-question-%POLL-ID% {
3030
+ border: 0 none;
3031
+ margin: 0 0 2em;
3032
+ padding: .25em;
3033
+ text-align: center;
3034
+ font-size: 14px;
3035
+ }
3036
+ /*
3037
+ Poll Options / Answers
3038
+ ---------------------------------------------------------------------------
3039
+ */
3040
+ div.yop-poll-answers-%POLL-ID% {}
3041
+ div.yop-poll-answers-%POLL-ID% ul {
3042
+ list-style: none;
3043
+ margin: 0;
3044
+ padding: 0;
3045
+
3046
+ }
3047
+ div.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-answer-%POLL-ID%,
3048
+ div.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-result-%POLL-ID% {
3049
+ list-style: none;
3050
+ margin: 0;
3051
+ padding: 0;
3052
+ font-size: 14px;
3053
+ line-height: 2em;
3054
+
3055
+ }
3056
+ div.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-result-%POLL-ID% {padding-bottom: 1em;}
3057
+ /*
3058
+ Label
3059
+ ..................................
3060
+ */
3061
+ div.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-answer-%POLL-ID% label {
3062
+ margin:0px;
3063
+ font-style:normal;
3064
+ font-weight:normal;
3065
+ font-size:14px;
3066
+ float:none;
3067
+ display:inline-block;
3068
+ }
3069
+ /* Actual text label of the answer */
3070
+ div.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-answer-%POLL-ID% label:nth-of-type(2) {
3071
+
3072
+ }
3073
+ /*
3074
+ Custom answer / Other
3075
+ ..................................
3076
+ */
3077
+ div.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-answer-%POLL-ID% label:nth-of-type(3) {
3078
+ width: 100%;
3079
+ overflow: hidden;
3080
+ }
3081
+ div#yop-poll-container-%POLL-ID% li.yop-poll-li-answer-%POLL-ID% label:nth-of-type(3) input[type="text"] {
3082
+ width: 94%;
3083
+ overflow: hidden;
3084
+ }
3085
+ /*
3086
+ Custom checkbox and radio button style
3087
+ ---------------------------------------------------------------------------
3088
+ */
3089
+
3090
+
3091
+ /*
3092
+ Custom fields
3093
+ ---------------------------------------------------------------------------
3094
+ */
3095
+ div.yop-poll-customs-%POLL-ID% {
3096
+ clear: both;
3097
+
3098
+ }
3099
+ div.yop-poll-customs-%POLL-ID% ul {
3100
+ list-style: none;
3101
+ margin: 0;
3102
+ padding: 0;
3103
+ overflow: hidden;
3104
+ width: 100%;
3105
+ }
3106
+ div.yop-poll-customs-%POLL-ID% ul li.yop-poll-li-custom-%POLL-ID% {
3107
+ display: block;
3108
+ font-size:14px;
3109
+ list-style: none;
3110
+ }
3111
+ div.yop-poll-customs-%POLL-ID% ul li.yop-poll-li-custom-%POLL-ID% label {
3112
+ display: block;
3113
+ }
3114
+ div#yop-poll-container-%POLL-ID% li.yop-poll-li-custom-%POLL-ID% input[type="text"] {
3115
+ width: 94%;
3116
+ }
3117
+ /*
3118
+ Vote Button
3119
+ ---------------------------------------------------------------------------
3120
+ */
3121
+ .yop-poll-footer { /*height: 4em;*/ }
3122
+
3123
+ .yop-poll-vote-centered-%POLL-ID% { text-align:center; }
3124
+
3125
+ #yop-poll-vote-%POLL-ID% div button {
3126
+
3127
+ cursor:pointer;
3128
+ display: block;
3129
+ font-size:14px;
3130
+ margin: 0 auto;
3131
+ }
3132
+
3133
+
3134
+ #yop-poll-vote-%POLL-ID% div button.yop_poll_vote_button {}
3135
+ #yop-poll-vote-%POLL-ID% div button.yop_poll_wordpress_vote_button { margin: 1em auto 0; }
3136
+ #yop-poll-vote-%POLL-ID% div button.yop_poll_anonymous_vote_button { margin: 1em auto 0; }
3137
+
3138
+ /*
3139
+ Results
3140
+ ---------------------------------------------------------------------------
3141
+ */
3142
+
3143
+ li.yop-poll-results-%POLL-ID% {
3144
+ font-size: 12px;
3145
+ font-style: italic;
3146
+ font-weight: normal;
3147
+ margin-left: 15px;
3148
+ color: #38595E;
3149
+ }
3150
+ /*
3151
+ Style for results that are displayed on columns
3152
+ ..................................
3153
+ */
3154
+ li.yop-poll-li-answer-%POLL-ID% {
3155
+ float: left;
3156
+ display: inline-block;
3157
+ width: 46%;
3158
+ padding: 1%;
3159
+ margin: 1%;
3160
  }
 
3161
 
 
 
 
 
3162
  #yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% {
3163
+ float: right;
3164
+ width: auto;
 
 
3165
  }
3166
  #yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% a {
3167
+ color:#000;
3168
+ text-decoration:underline;
3169
+ font-size:12px;
3170
  }
3171
  #yop-poll-vote-%POLL-ID% div#yop-poll-back-%POLL-ID% a {
3172
+ color:#000;
3173
+ text-decoration:underline;
3174
+ font-size:12px;
3175
  }
3176
  #yop-poll-vote-%POLL-ID% div#yop-poll-archive-%POLL-ID% a {
3177
+ color:#000;
3178
+ text-decoration:underline;
3179
+ font-size:12px;
3180
  }
3181
  #yop-poll-vote-%POLL-ID% div {
3182
+ float:left;
3183
+ width:100%;
3184
+ }
3185
+ /*
3186
+ Result Bar
3187
+ ..................................
3188
+ */
3189
+
3190
+ .yop-poll-results-bar-%POLL-ID% div { background:#555; width:90%;}
3191
+
3192
+
3193
+ /*
3194
+ ---------------------------------------------------------------------------
3195
+ EXTRAS
3196
+ ---------------------------------------------------------------------------
3197
+ */
3198
+ /*
3199
+ CAPTCHA
3200
+ ..................................
3201
+ */
3202
+ #yop-poll-captcha-input-div-%POLL-ID% { margin-top:5px; }
3203
+ #yop-poll-captcha-helpers-div-%POLL-ID% {
3204
+ width:30px;
3205
+ float:left;
3206
+ margin-left:5px;
3207
+ height:0px;
3208
  }
3209
+ #yop-poll-captcha-helpers-div-%POLL-ID% img { margin-bottom:2px; }
3210
+ #yop-poll-captcha-image-div-%POLL-ID% { margin-bottom:5px; }
3211
+ #yop_poll_captcha_image_%POLL-ID% { float:left; }
3212
+
3213
+ .yop-poll-clear-%POLL-ID% { clear:both; }
3214
+
3215
+ .yop-poll-name-%POLL-ID% { color:#38595E; font-size: 18px; }
3216
+
3217
+
3218
+ .yop-poll-li-answer-%POLL-ID% label img { max-width: 98%; }
3219
+ .yop-poll-li-result-%POLL-ID% label span img { max-width: 98%; }
3220
+
3221
+ .content { position :unset !important; }
3222
+
3223
+ div.yop-poll-container br,
3224
+ div#yop-poll-container-%POLL-ID% br { display: none; }
3225
+
3226
+ div#yop_poll_vote_options_div-%POLL-ID% div:nth-last-of-type(1) { display: none; }
3227
  NOWDOC;
3228
  break;
3229
  }
3230
  case 'Green v1':
3231
  { //Green v1
3232
  $css = <<<NOWDOC
3233
+ /*
3234
+ Main Container
3235
+ ---------------------------------------------------------------------------
3236
+ */
3237
+ #yop-poll-other-answer-%POLL-ID%-other {
3238
+ color:#000000;
3239
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3240
  }
3241
+ .yop-poll-customfield-%POLL-ID% {
3242
+ color:#000000;
3243
  }
3244
+ div#yop-poll-container-%POLL-ID% {
3245
+ background:#3F8B43;
3246
+ box-sizing: border-box;
3247
+ display: inline-block;
3248
+ font-size: 14px;
3249
+ color:white;
3250
+ padding: 10px;
3251
+ width: %POLL-WIDTH%;
3252
+ zoom: 1;
3253
  }
3254
+ /* A nice little reset */
3255
+ div.yop-poll-container * {
3256
 
 
 
3257
  }
3258
 
3259
+ form#yop-poll-form-%POLL-ID% {
3260
 
3261
  }
3262
+ /*
3263
+ Error message
3264
+ ..................................
3265
+ */
3266
+ div#yop-poll-container-error-%POLL-ID% {
3267
+ font-size:.8em;
3268
+ font-style:italic;
3269
+ color:red;
3270
+ text-transform:lowercase;
3271
+ text-align:center;
3272
  }
3273
+ /*
3274
+ Success message
3275
+ ..................................
3276
+ */
3277
+ div#yop-poll-container-success-%POLL-ID% {
3278
+ font-size:.8em;
3279
+ font-style:italic;
3280
+ color:green;
3281
+ text-align:center;
3282
  }
3283
+ /*
3284
+ Poll Question
3285
+ ---------------------------------------------------------------------------
3286
+ */
3287
+ div#yop-poll-questions-container-%POLL-ID% { margin:.5em; }
3288
+ div.yop-poll-question-container-%POLL-ID% { margin: 0; }
3289
+ div.yop-poll-question-%POLL-ID% {
3290
+ border: 0 none;
3291
+ margin: 0 0 2em;
3292
+ padding: .25em;
3293
+ text-align: center;
3294
+ font-size: 14px;
3295
+ }
3296
+ /*
3297
+ Poll Options / Answers
3298
+ ---------------------------------------------------------------------------
3299
+ */
3300
+ div.yop-poll-answers-%POLL-ID% {}
3301
+ div.yop-poll-answers-%POLL-ID% ul {
3302
+ list-style: none;
3303
+ margin: 0;
3304
+ padding: 0;
3305
+
3306
+ }
3307
+ div.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-answer-%POLL-ID%,
3308
+ div.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-result-%POLL-ID% {
3309
+ list-style: none;
3310
+ margin: 0;
3311
+ padding: 0;
3312
+ font-size: 14px;
3313
+ line-height: 2em;
3314
+
3315
+ }
3316
+ div.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-result-%POLL-ID% {padding-bottom: 1em;}
3317
+ /*
3318
+ Label
3319
+ ..................................
3320
+ */
3321
+ div.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-answer-%POLL-ID% label {
3322
+ margin:0px;
3323
+ font-style:normal;
3324
+ font-weight:normal;
3325
+ font-size:14px;
3326
+ float:none;
3327
+ display:inline-block;
3328
+ }
3329
+ /* Actual text label of the answer */
3330
+ div.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-answer-%POLL-ID% label:nth-of-type(2) {
3331
+
3332
+ }
3333
+ /*
3334
+ Custom answer / Other
3335
+ ..................................
3336
+ */
3337
+ div.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-answer-%POLL-ID% label:nth-of-type(3) {
3338
+ width: 100%;
3339
+ overflow: hidden;
3340
+ }
3341
+ div#yop-poll-container-%POLL-ID% li.yop-poll-li-answer-%POLL-ID% label:nth-of-type(3) input[type="text"] {
3342
+ width: 94%;
3343
+ overflow: hidden;
3344
+ }
3345
+ /*
3346
+ Custom checkbox and radio button style
3347
+ ---------------------------------------------------------------------------
3348
+ */
3349
+
3350
+
3351
+ /*
3352
+ Custom fields
3353
+ ---------------------------------------------------------------------------
3354
+ */
3355
+ div.yop-poll-customs-%POLL-ID% {
3356
+ clear: both;
3357
+
3358
+ }
3359
+ div.yop-poll-customs-%POLL-ID% ul {
3360
+ list-style: none;
3361
+ margin: 0;
3362
+ padding: 0;
3363
+ overflow: hidden;
3364
+ width: 100%;
3365
+ }
3366
+ div.yop-poll-customs-%POLL-ID% ul li.yop-poll-li-custom-%POLL-ID% {
3367
+ display: block;
3368
+ font-size:14px;
3369
+ list-style: none;
3370
+ }
3371
+ div.yop-poll-customs-%POLL-ID% ul li.yop-poll-li-custom-%POLL-ID% label {
3372
+ display: block;
3373
+ }
3374
+ div#yop-poll-container-%POLL-ID% li.yop-poll-li-custom-%POLL-ID% input[type="text"] {
3375
+ width: 94%;
3376
+ }
3377
+ /*
3378
+ Vote Button
3379
+ ---------------------------------------------------------------------------
3380
+ */
3381
+ .yop-poll-footer { /*height: 4em;*/ }
3382
+
3383
+ .yop-poll-vote-centered-%POLL-ID% { text-align:center; }
3384
+
3385
+ #yop-poll-vote-%POLL-ID% div button {
3386
+
3387
+ cursor:pointer;
3388
+ display: block;
3389
+ font-size:14px;
3390
+ margin: 0 auto;
3391
+ }
3392
+
3393
+
3394
+ #yop-poll-vote-%POLL-ID% div button.yop_poll_vote_button {}
3395
+ #yop-poll-vote-%POLL-ID% div button.yop_poll_wordpress_vote_button { margin: 1em auto 0; }
3396
+ #yop-poll-vote-%POLL-ID% div button.yop_poll_anonymous_vote_button { margin: 1em auto 0; }
3397
+
3398
+ /*
3399
+ Results
3400
+ ---------------------------------------------------------------------------
3401
+ */
3402
+
3403
+ li.yop-poll-results-%POLL-ID% {
3404
+ font-size: 12px;
3405
+ font-style: italic;
3406
+ font-weight: normal;
3407
+ margin-left: 15px;
3408
+ color: #38595E;
3409
+ }
3410
+ /*
3411
+ Style for results that are displayed on columns
3412
+ ..................................
3413
+ */
3414
+ li.yop-poll-li-answer-%POLL-ID% {
3415
+ float: left;
3416
+ display: inline-block;
3417
+ width: 46%;
3418
+ padding: 1%;
3419
+ margin: 1%;
3420
  }
3421
+
3422
  #yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% {
3423
+ float: right;
3424
+ width: auto;
 
 
3425
  }
3426
  #yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% a {
3427
+ color:#000;
3428
+ text-decoration:underline;
3429
+ font-size:12px;
3430
  }
3431
  #yop-poll-vote-%POLL-ID% div#yop-poll-back-%POLL-ID% a {
3432
+ color:#000;
3433
+ text-decoration:underline;
3434
+ font-size:12px;
3435
  }
3436
  #yop-poll-vote-%POLL-ID% div#yop-poll-archive-%POLL-ID% a {
3437
+ color:#000;
3438
+ text-decoration:underline;
3439
+ font-size:12px;
3440
  }
3441
  #yop-poll-vote-%POLL-ID% div {
3442
+ float:left;
3443
+ width:100%;
3444
+ }
3445
+ /*
3446
+ Result Bar
3447
+ ..................................
3448
+ */
3449
+
3450
+ .yop-poll-results-bar-%POLL-ID% div { background:#555; width:90%;}
3451
+
3452
+
3453
+ /*
3454
+ ---------------------------------------------------------------------------
3455
+ EXTRAS
3456
+ ---------------------------------------------------------------------------
3457
+ */
3458
+ /*
3459
+ CAPTCHA
3460
+ ..................................
3461
+ */
3462
+ #yop-poll-captcha-input-div-%POLL-ID% { margin-top:5px; }
3463
+ #yop-poll-captcha-helpers-div-%POLL-ID% {
3464
+ width:30px;
3465
+ float:left;
3466
+ margin-left:5px;
3467
+ height:0px;
3468
  }
3469
+ #yop-poll-captcha-helpers-div-%POLL-ID% img { margin-bottom:2px; }
3470
+ #yop-poll-captcha-image-div-%POLL-ID% { margin-bottom:5px; }
3471
+ #yop_poll_captcha_image_%POLL-ID% { float:left; }
3472
+
3473
+ .yop-poll-clear-%POLL-ID% { clear:both; }
3474
+
3475
+ .yop-poll-name-%POLL-ID% { color:#38595E; font-size: 18px; }
3476
+
3477
+
3478
+ .yop-poll-li-answer-%POLL-ID% label img { max-width: 98%; }
3479
+ .yop-poll-li-result-%POLL-ID% label span img { max-width: 98%; }
3480
+
3481
+ .content { position :unset !important; }
3482
+
3483
+ div.yop-poll-container br,
3484
+ div#yop-poll-container-%POLL-ID% br { display: none; }
3485
+
3486
+ div#yop_poll_vote_options_div-%POLL-ID% div:nth-last-of-type(1) { display: none; }
3487
  NOWDOC;
3488
  break;
3489
  }
3490
  case 'Green v2':
3491
  { //Green v2
3492
  $css = <<<NOWDOC
3493
+ /*
3494
+ Main Container
3495
+ ---------------------------------------------------------------------------
3496
+ */
3497
+ #yop-poll-other-answer-%POLL-ID%-other {
3498
+ border:1px solid #000000;
3499
+ color:#000000;
3500
+
3501
+ }
3502
+ .yop-poll-customfield-%POLL-ID% {
3503
+ border:1px solid #000000;
3504
+ color:#000000;
3505
+ }
3506
+ div#yop-poll-container-%POLL-ID% {
3507
+ background:#fff;
3508
+ box-sizing: border-box;
3509
+ display: inline-block;
3510
+ font-size: 14px;
3511
+ color:#555;
3512
+ padding: 10px;
3513
+ width: %POLL-WIDTH%;
3514
+ zoom: 1;
3515
+ }
3516
+ /* A nice little reset */
3517
+ div.yop-poll-container * {
3518
+
3519
+ }
3520
+
3521
+ form#yop-poll-form-%POLL-ID% {
3522
+
3523
+ }
3524
+ /*
3525
+ Error message
3526
+ ..................................
3527
+ */
3528
+ div#yop-poll-container-error-%POLL-ID% {
3529
+ font-size:.8em;
3530
+ font-style:italic;
3531
+ color:red;
3532
+ text-transform:lowercase;
3533
+ text-align:center;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3534
  }
3535
+ /*
3536
+ Success message
3537
+ ..................................
3538
+ */
3539
+ div#yop-poll-container-success-%POLL-ID% {
3540
+ font-size:.8em;
3541
+ font-style:italic;
3542
+ color:green;
3543
+ text-align:center;
3544
  }
3545
+ /*
3546
+ Poll Question
3547
+ ---------------------------------------------------------------------------
3548
+ */
3549
+ div#yop-poll-questions-container-%POLL-ID% { margin:.5em; }
3550
+ div.yop-poll-question-container-%POLL-ID% { margin: 0; }
3551
+ div.yop-poll-question-%POLL-ID% {
3552
+ background:#3F8B43;
3553
+ color:#fff;
3554
+ border: 0 none;
3555
+ margin: 0 0 2em;
3556
+ padding: .25em;
3557
+ text-align: center;
3558
+ font-size: 14px;
3559
+ }
3560
+ /*
3561
+ Poll Options / Answers
3562
+ ---------------------------------------------------------------------------
3563
+ */
3564
+ div.yop-poll-answers-%POLL-ID% {}
3565
+ div.yop-poll-answers-%POLL-ID% ul {
3566
+ list-style: none;
3567
+ margin: 0;
3568
+ padding: 0;
3569
+
3570
+ }
3571
+ div.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-answer-%POLL-ID%,
3572
+ div.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-result-%POLL-ID% {
3573
+ list-style: none;
3574
+ margin: 0;
3575
+ padding: 0;
3576
+ font-size: 14px;
3577
+ line-height: 2em;
3578
+
3579
+ }
3580
+ div.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-result-%POLL-ID% {padding-bottom: 1em;}
3581
+ /*
3582
+ Label
3583
+ ..................................
3584
+ */
3585
+ div.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-answer-%POLL-ID% label {
3586
+ margin:0px;
3587
+ font-style:normal;
3588
+ font-weight:normal;
3589
+ font-size:14px;
3590
+ float:none;
3591
+ display:inline-block;
3592
+ }
3593
+ /* Actual text label of the answer */
3594
+ div.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-answer-%POLL-ID% label:nth-of-type(2) {
3595
+
3596
+ }
3597
+ /*
3598
+ Custom answer / Other
3599
+ ..................................
3600
+ */
3601
+ div.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-answer-%POLL-ID% label:nth-of-type(3) {
3602
+ width: 100%;
3603
+ overflow: hidden;
3604
+ }
3605
+ div#yop-poll-container-%POLL-ID% li.yop-poll-li-answer-%POLL-ID% label:nth-of-type(3) input[type="text"] {
3606
+ width: 94%;
3607
+ overflow: hidden;
3608
+ }
3609
+ /*
3610
+ Custom checkbox and radio button style
3611
+ ---------------------------------------------------------------------------
3612
+ */
3613
+
3614
+
3615
+ /*
3616
+ Custom fields
3617
+ ---------------------------------------------------------------------------
3618
+ */
3619
+ div.yop-poll-customs-%POLL-ID% {
3620
+ clear: both;
3621
+
3622
+ }
3623
+ div.yop-poll-customs-%POLL-ID% ul {
3624
+ list-style: none;
3625
+ margin: 0;
3626
+ padding: 0;
3627
+ overflow: hidden;
3628
+ width: 100%;
3629
+ }
3630
+ div.yop-poll-customs-%POLL-ID% ul li.yop-poll-li-custom-%POLL-ID% {
3631
+ display: block;
3632
+ font-size:14px;
3633
+ list-style: none;
3634
+ }
3635
+ div.yop-poll-customs-%POLL-ID% ul li.yop-poll-li-custom-%POLL-ID% label {
3636
+ display: block;
3637
+ }
3638
+ div#yop-poll-container-%POLL-ID% li.yop-poll-li-custom-%POLL-ID% input[type="text"] {
3639
+ width: 94%;
3640
+ }
3641
+ /*
3642
+ Vote Button
3643
+ ---------------------------------------------------------------------------
3644
+ */
3645
+ .yop-poll-footer { /*height: 4em;*/ }
3646
+
3647
+ .yop-poll-vote-centered-%POLL-ID% { text-align:center; }
3648
+
3649
+ #yop-poll-vote-%POLL-ID% div button {
3650
+
3651
+ cursor:pointer;
3652
+ display: block;
3653
+ font-size:14px;
3654
+ margin: 0 auto;
3655
+ }
3656
+
3657
+
3658
+ #yop-poll-vote-%POLL-ID% div button.yop_poll_vote_button {}
3659
+ #yop-poll-vote-%POLL-ID% div button.yop_poll_wordpress_vote_button { margin: 1em auto 0; }
3660
+ #yop-poll-vote-%POLL-ID% div button.yop_poll_anonymous_vote_button { margin: 1em auto 0; }
3661
+
3662
+ /*
3663
+ Results
3664
+ ---------------------------------------------------------------------------
3665
+ */
3666
+
3667
+ li.yop-poll-results-%POLL-ID% {
3668
+ font-size: 12px;
3669
+ font-style: italic;
3670
+ font-weight: normal;
3671
+ margin-left: 15px;
3672
+ color: #38595E;
3673
+ }
3674
+ /*
3675
+ Style for results that are displayed on columns
3676
+ ..................................
3677
+ */
3678
+ li.yop-poll-li-answer-%POLL-ID% {
3679
+ float: left;
3680
+ display: inline-block;
3681
+ width: 46%;
3682
+ padding: 1%;
3683
+ margin: 1%;
3684
  }
 
3685
 
 
 
 
 
3686
  #yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% {
3687
+ float: right;
3688
+ width: auto;
 
 
3689
  }
3690
  #yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% a {
3691
+ color:#000;
3692
+ text-decoration:underline;
3693
+ font-size:12px;
3694
  }
3695
  #yop-poll-vote-%POLL-ID% div#yop-poll-back-%POLL-ID% a {
3696
+ color:#000;
3697
+ text-decoration:underline;
3698
+ font-size:12px;
3699
  }
3700
  #yop-poll-vote-%POLL-ID% div#yop-poll-archive-%POLL-ID% a {
3701
+ color:#000;
3702
+ text-decoration:underline;
3703
+ font-size:12px;
3704
  }
3705
  #yop-poll-vote-%POLL-ID% div {
3706
+ float:left;
3707
+ width:100%;
3708
+ }
3709
+ /*
3710
+ Result Bar
3711
+ ..................................
3712
+ */
3713
+
3714
+ .yop-poll-results-bar-%POLL-ID% div { background:#555; width:90%;}
3715
+
3716
+
3717
+ /*
3718
+ ---------------------------------------------------------------------------
3719
+ EXTRAS
3720
+ ---------------------------------------------------------------------------
3721
+ */
3722
+ /*
3723
+ CAPTCHA
3724
+ ..................................
3725
+ */
3726
+ #yop-poll-captcha-input-div-%POLL-ID% { margin-top:5px; }
3727
+ #yop-poll-captcha-helpers-div-%POLL-ID% {
3728
+ width:30px;
3729
+ float:left;
3730
+ margin-left:5px;
3731
+ height:0px;
3732
  }
3733
+ #yop-poll-captcha-helpers-div-%POLL-ID% img { margin-bottom:2px; }
3734
+ #yop-poll-captcha-image-div-%POLL-ID% { margin-bottom:5px; }
3735
+ #yop_poll_captcha_image_%POLL-ID% { float:left; }
3736
+
3737
+ .yop-poll-clear-%POLL-ID% { clear:both; }
3738
+
3739
+ .yop-poll-name-%POLL-ID% { color:#38595E; font-size: 18px; }
3740
+
3741
+
3742
+ .yop-poll-li-answer-%POLL-ID% label img { max-width: 98%; }
3743
+ .yop-poll-li-result-%POLL-ID% label span img { max-width: 98%; }
3744
+
3745
+ .content { position :unset !important; }
3746
+
3747
+ div.yop-poll-container br,
3748
+ div#yop-poll-container-%POLL-ID% br { display: none; }
3749
+
3750
+ div#yop_poll_vote_options_div-%POLL-ID% div:nth-last-of-type(1) { display: none; }
3751
+
3752
  NOWDOC;
3753
  break;
3754
  }
3755
  case 'Green v3':
3756
  { //Green v3
3757
  $css = <<<NOWDOC
3758
+ /*
3759
+ Main Container
3760
+ ---------------------------------------------------------------------------
3761
+ */
3762
+ #yop-poll-other-answer-%POLL-ID%-other {
3763
+ border:1px solid #000000;
3764
+ color:#000000;
3765
+
3766
+ }
3767
+ .yop-poll-customfield-%POLL-ID% {
3768
+ border:1px solid #000000;
3769
+ color:#000000;
3770
+ }
3771
+ div#yop-poll-container-%POLL-ID% {
3772
+ background:#fff;
3773
+ box-sizing: border-box;
3774
+ display: inline-block;
3775
+ font-size: 14px;
3776
+ color:#555;
3777
+ padding: 10px;
3778
+ width: %POLL-WIDTH%;
3779
+ zoom: 1;
3780
+ border:5px solid #3F8B43;
3781
+ }
3782
+ /* A nice little reset */
3783
+ div.yop-poll-container * {
3784
+
3785
+ }
3786
+
3787
+ form#yop-poll-form-%POLL-ID% {
3788
+
3789
+ }
3790
+ /*
3791
+ Error message
3792
+ ..................................
3793
+ */
3794
+ div#yop-poll-container-error-%POLL-ID% {
3795
+ font-size:.8em;
3796
+ font-style:italic;
3797
+ color:red;
3798
+ text-transform:lowercase;
3799
+ text-align:center;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3800
  }
3801
+ /*
3802
+ Success message
3803
+ ..................................
3804
+ */
3805
+ div#yop-poll-container-success-%POLL-ID% {
3806
+ font-size:.8em;
3807
+ font-style:italic;
3808
+ color:green;
3809
+ text-align:center;
3810
  }
3811
+ /*
3812
+ Poll Question
3813
+ ---------------------------------------------------------------------------
3814
+ */
3815
+ div#yop-poll-questions-container-%POLL-ID% { margin:.5em; }
3816
+ div.yop-poll-question-container-%POLL-ID% { margin: 0; }
3817
+ div.yop-poll-question-%POLL-ID% {
3818
+ border: 0 none;
3819
+ margin: 0 0 2em;
3820
+ padding: .25em;
3821
+ text-align: center;
3822
+ font-size: 14px;
3823
+ }
3824
+ /*
3825
+ Poll Options / Answers
3826
+ ---------------------------------------------------------------------------
3827
+ */
3828
+ div.yop-poll-answers-%POLL-ID% {}
3829
+ div.yop-poll-answers-%POLL-ID% ul {
3830
+ list-style: none;
3831
+ margin: 0;
3832
+ padding: 0;
3833
+
3834
+ }
3835
+ div.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-answer-%POLL-ID%,
3836
+ div.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-result-%POLL-ID% {
3837
+ list-style: none;
3838
+ margin: 0;
3839
+ padding: 0;
3840
+ font-size: 14px;
3841
+ line-height: 2em;
3842
+
3843
+ }
3844
+ div.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-result-%POLL-ID% {padding-bottom: 1em;}
3845
+ /*
3846
+ Label
3847
+ ..................................
3848
+ */
3849
+ div.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-answer-%POLL-ID% label {
3850
+ margin:0px;
3851
+ font-style:normal;
3852
+ font-weight:normal;
3853
+ font-size:14px;
3854
+ float:none;
3855
+ display:inline-block;
3856
+ }
3857
+ /* Actual text label of the answer */
3858
+ div.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-answer-%POLL-ID% label:nth-of-type(2) {
3859
+
3860
+ }
3861
+ /*
3862
+ Custom answer / Other
3863
+ ..................................
3864
+ */
3865
+ div.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-answer-%POLL-ID% label:nth-of-type(3) {
3866
+ width: 100%;
3867
+ overflow: hidden;
3868
+ }
3869
+ div#yop-poll-container-%POLL-ID% li.yop-poll-li-answer-%POLL-ID% label:nth-of-type(3) input[type="text"] {
3870
+ width: 94%;
3871
+ overflow: hidden;
3872
+ }
3873
+ /*
3874
+ Custom checkbox and radio button style
3875
+ ---------------------------------------------------------------------------
3876
+ */
3877
+
3878
+
3879
+ /*
3880
+ Custom fields
3881
+ ---------------------------------------------------------------------------
3882
+ */
3883
+ div.yop-poll-customs-%POLL-ID% {
3884
+ clear: both;
3885
+
3886
+ }
3887
+ div.yop-poll-customs-%POLL-ID% ul {
3888
+ list-style: none;
3889
+ margin: 0;
3890
+ padding: 0;
3891
+ overflow: hidden;
3892
+ width: 100%;
3893
+ }
3894
+ div.yop-poll-customs-%POLL-ID% ul li.yop-poll-li-custom-%POLL-ID% {
3895
+ display: block;
3896
+ font-size:14px;
3897
+ list-style: none;
3898
+ }
3899
+ div.yop-poll-customs-%POLL-ID% ul li.yop-poll-li-custom-%POLL-ID% label {
3900
+ display: block;
3901
+ }
3902
+ div#yop-poll-container-%POLL-ID% li.yop-poll-li-custom-%POLL-ID% input[type="text"] {
3903
+ width: 94%;
3904
+ }
3905
+ /*
3906
+ Vote Button
3907
+ ---------------------------------------------------------------------------
3908
+ */
3909
+ .yop-poll-footer { /*height: 4em;*/ }
3910
+
3911
+ .yop-poll-vote-centered-%POLL-ID% { text-align:center; }
3912
+
3913
+ #yop-poll-vote-%POLL-ID% div button {
3914
+
3915
+ cursor:pointer;
3916
+ display: block;
3917
+ font-size:14px;
3918
+ margin: 0 auto;
3919
+ }
3920
+
3921
+
3922
+ #yop-poll-vote-%POLL-ID% div button.yop_poll_vote_button {}
3923
+ #yop-poll-vote-%POLL-ID% div button.yop_poll_wordpress_vote_button { margin: 1em auto 0; }
3924
+ #yop-poll-vote-%POLL-ID% div button.yop_poll_anonymous_vote_button { margin: 1em auto 0; }
3925
+
3926
+ /*
3927
+ Results
3928
+ ---------------------------------------------------------------------------
3929
+ */
3930
+
3931
+ li.yop-poll-results-%POLL-ID% {
3932
+ font-size: 12px;
3933
+ font-style: italic;
3934
+ font-weight: normal;
3935
+ margin-left: 15px;
3936
+ color: #38595E;
3937
+ }
3938
+ /*
3939
+ Style for results that are displayed on columns
3940
+ ..................................
3941
+ */
3942
+ li.yop-poll-li-answer-%POLL-ID% {
3943
+ float: left;
3944
+ display: inline-block;
3945
+ width: 46%;
3946
+ padding: 1%;
3947
+ margin: 1%;
3948
  }
 
3949
 
 
 
 
 
3950
  #yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% {
3951
+ float: right;
3952
+ width: auto;
 
 
3953
  }
3954
  #yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% a {
3955
+ color:#000;
3956
+ text-decoration:underline;
3957
+ font-size:12px;
3958
  }
3959
  #yop-poll-vote-%POLL-ID% div#yop-poll-back-%POLL-ID% a {
3960
+ color:#000;
3961
+ text-decoration:underline;
3962
+ font-size:12px;
3963
  }
3964
  #yop-poll-vote-%POLL-ID% div#yop-poll-archive-%POLL-ID% a {
3965
+ color:#000;
3966
+ text-decoration:underline;
3967
+ font-size:12px;
3968
  }
3969
  #yop-poll-vote-%POLL-ID% div {
3970
+ float:left;
3971
+ width:100%;
3972
+ }
3973
+ /*
3974
+ Result Bar
3975
+ ..................................
3976
+ */
3977
+
3978
+ .yop-poll-results-bar-%POLL-ID% div { background:#555; width:90%;}
3979
+
3980
+
3981
+ /*
3982
+ ---------------------------------------------------------------------------
3983
+ EXTRAS
3984
+ ---------------------------------------------------------------------------
3985
+ */
3986
+ /*
3987
+ CAPTCHA
3988
+ ..................................
3989
+ */
3990
+ #yop-poll-captcha-input-div-%POLL-ID% { margin-top:5px; }
3991
+ #yop-poll-captcha-helpers-div-%POLL-ID% {
3992
+ width:30px;
3993
+ float:left;
3994
+ margin-left:5px;
3995
+ height:0px;
3996
  }
3997
+ #yop-poll-captcha-helpers-div-%POLL-ID% img { margin-bottom:2px; }
3998
+ #yop-poll-captcha-image-div-%POLL-ID% { margin-bottom:5px; }
3999
+ #yop_poll_captcha_image_%POLL-ID% { float:left; }
4000
+
4001
+ .yop-poll-clear-%POLL-ID% { clear:both; }
4002
+
4003
+ .yop-poll-name-%POLL-ID% { color:#38595E; font-size: 18px; }
4004
+
4005
+
4006
+ .yop-poll-li-answer-%POLL-ID% label img { max-width: 98%; }
4007
+ .yop-poll-li-result-%POLL-ID% label span img { max-width: 98%; }
4008
+
4009
+ .content { position :unset !important; }
4010
+
4011
+ div.yop-poll-container br,
4012
+ div#yop-poll-container-%POLL-ID% br { display: none; }
4013
+
4014
+ div#yop_poll_vote_options_div-%POLL-ID% div:nth-last-of-type(1) { display: none; }
4015
  NOWDOC;
4016
  break;
4017
  }
4018
  case 'Orange v1':
4019
  { //Orange v1
4020
  $css = <<<NOWDOC
4021
+ /*
4022
+ Main Container
4023
+ ---------------------------------------------------------------------------
4024
+ */
4025
+ #yop-poll-other-answer-%POLL-ID%-other {
4026
+ color:#000000;
4027
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4028
  }
4029
+ .yop-poll-customfield-%POLL-ID% {
4030
+ color:#000000;
4031
  }
4032
+ div#yop-poll-container-%POLL-ID% {
4033
+ background:#FB6911;
4034
+ box-sizing: border-box;
4035
+ display: inline-block;
4036
+ font-size: 14px;
4037
+ color:white;
4038
+ padding: 10px;
4039
+ width: %POLL-WIDTH%;
4040
+ zoom: 1;
4041
  }
4042
+ /* A nice little reset */
4043
+ div.yop-poll-container * {
4044
 
 
 
4045
  }
4046
 
4047
+ form#yop-poll-form-%POLL-ID% {
4048
 
4049
  }
4050
+ /*
4051
+ Error message
4052
+ ..................................
4053
+ */
4054
+ div#yop-poll-container-error-%POLL-ID% {
4055
+ font-size:.8em;
4056
+ font-style:italic;
4057
+ color:red;
4058
+ text-transform:lowercase;
4059
+ text-align:center;
4060
  }
4061
+ /*
4062
+ Success message
4063
+ ..................................
4064
+ */
4065
+ div#yop-poll-container-success-%POLL-ID% {
4066
+ font-size:.8em;
4067
+ font-style:italic;
4068
+ color:green;
4069
+ text-align:center;
4070
  }
4071
+ /*
4072
+ Poll Question
4073
+ ---------------------------------------------------------------------------
4074
+ */
4075
+ div#yop-poll-questions-container-%POLL-ID% { margin:.5em; }
4076
+ div.yop-poll-question-container-%POLL-ID% { margin: 0; }
4077
+ div.yop-poll-question-%POLL-ID% {
4078
+ border: 0 none;
4079
+ margin: 0 0 2em;
4080
+ padding: .25em;
4081
+ text-align: center;
4082
+ font-size: 14px;
4083
+ }
4084
+ /*
4085
+ Poll Options / Answers
4086
+ ---------------------------------------------------------------------------
4087
+ */
4088
+ div.yop-poll-answers-%POLL-ID% {}
4089
+ div.yop-poll-answers-%POLL-ID% ul {
4090
+ list-style: none;
4091
+ margin: 0;
4092
+ padding: 0;
4093
+
4094
+ }
4095
+ div.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-answer-%POLL-ID%,
4096
+ div.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-result-%POLL-ID% {
4097
+ list-style: none;
4098
+ margin: 0;
4099
+ padding: 0;
4100
+ font-size: 14px;
4101
+ line-height: 2em;
4102
+
4103
+ }
4104
+ div.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-result-%POLL-ID% {padding-bottom: 1em;}
4105
+ /*
4106
+ Label
4107
+ ..................................
4108
+ */
4109
+ div.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-answer-%POLL-ID% label {
4110
+ margin:0px;
4111
+ font-style:normal;
4112
+ font-weight:normal;
4113
+ font-size:14px;
4114
+ float:none;
4115
+ display:inline-block;
4116
+ }
4117
+ /* Actual text label of the answer */
4118
+ div.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-answer-%POLL-ID% label:nth-of-type(2) {
4119
+
4120
+ }
4121
+ /*
4122
+ Custom answer / Other
4123
+ ..................................
4124
+ */
4125
+ div.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-answer-%POLL-ID% label:nth-of-type(3) {
4126
+ width: 100%;
4127
+ overflow: hidden;
4128
+ }
4129
+ div#yop-poll-container-%POLL-ID% li.yop-poll-li-answer-%POLL-ID% label:nth-of-type(3) input[type="text"] {
4130
+ width: 94%;
4131
+ overflow: hidden;
4132
+ }
4133
+ /*
4134
+ Custom checkbox and radio button style
4135
+ ---------------------------------------------------------------------------
4136
+ */
4137
+
4138
+
4139
+ /*
4140
+ Custom fields
4141
+ ---------------------------------------------------------------------------
4142
+ */
4143
+ div.yop-poll-customs-%POLL-ID% {
4144
+ clear: both;
4145
+
4146
+ }
4147
+ div.yop-poll-customs-%POLL-ID% ul {
4148
+ list-style: none;
4149
+ margin: 0;
4150
+ padding: 0;
4151
+ overflow: hidden;
4152
+ width: 100%;
4153
+ }
4154
+ div.yop-poll-customs-%POLL-ID% ul li.yop-poll-li-custom-%POLL-ID% {
4155
+ display: block;
4156
+ font-size:14px;
4157
+ list-style: none;
4158
+ }
4159
+ div.yop-poll-customs-%POLL-ID% ul li.yop-poll-li-custom-%POLL-ID% label {
4160
+ display: block;
4161
+ }
4162
+ div#yop-poll-container-%POLL-ID% li.yop-poll-li-custom-%POLL-ID% input[type="text"] {
4163
+ width: 94%;
4164
+ }
4165
+ /*
4166
+ Vote Button
4167
+ ---------------------------------------------------------------------------
4168
+ */
4169
+ .yop-poll-footer { /*height: 4em;*/ }
4170
+
4171
+ .yop-poll-vote-centered-%POLL-ID% { text-align:center; }
4172
+
4173
+ #yop-poll-vote-%POLL-ID% div button {
4174
+
4175
+ cursor:pointer;
4176
+ display: block;
4177
+ font-size:14px;
4178
+ margin: 0 auto;
4179
+ }
4180
+
4181
+
4182
+ #yop-poll-vote-%POLL-ID% div button.yop_poll_vote_button {}
4183
+ #yop-poll-vote-%POLL-ID% div button.yop_poll_wordpress_vote_button { margin: 1em auto 0; }
4184
+ #yop-poll-vote-%POLL-ID% div button.yop_poll_anonymous_vote_button { margin: 1em auto 0; }
4185
+
4186
+ /*
4187
+ Results
4188
+ ---------------------------------------------------------------------------
4189
+ */
4190
+
4191
+ li.yop-poll-results-%POLL-ID% {
4192
+ font-size: 12px;
4193
+ font-style: italic;
4194
+ font-weight: normal;
4195
+ margin-left: 15px;
4196
+ color: #38595E;
4197
+ }
4198
+ /*
4199
+ Style for results that are displayed on columns
4200
+ ..................................
4201
+ */
4202
+ li.yop-poll-li-answer-%POLL-ID% {
4203
+ float: left;
4204
+ display: inline-block;
4205
+ width: 46%;
4206
+ padding: 1%;
4207
+ margin: 1%;
4208
  }
4209
+
4210
  #yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% {
4211
+ float: right;
4212
+ width: auto;
 
 
4213
  }
4214
  #yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% a {
4215
+ color:#000;
4216
+ text-decoration:underline;
4217
+ font-size:12px;
4218
  }
4219
  #yop-poll-vote-%POLL-ID% div#yop-poll-back-%POLL-ID% a {
4220
+ color:#000;
4221
+ text-decoration:underline;
4222
+ font-size:12px;
4223
  }
4224
  #yop-poll-vote-%POLL-ID% div#yop-poll-archive-%POLL-ID% a {
4225
+ color:#000;
4226
+ text-decoration:underline;
4227
+ font-size:12px;
4228
  }
4229
  #yop-poll-vote-%POLL-ID% div {
4230
+ float:left;
4231
+ width:100%;
4232
+ }
4233
+ /*
4234
+ Result Bar
4235
+ ..................................
4236
+ */
4237
+
4238
+ .yop-poll-results-bar-%POLL-ID% div { background:#555; width:90%;}
4239
+
4240
+
4241
+ /*
4242
+ ---------------------------------------------------------------------------
4243
+ EXTRAS
4244
+ ---------------------------------------------------------------------------
4245
+ */
4246
+ /*
4247
+ CAPTCHA
4248
+ ..................................
4249
+ */
4250
+ #yop-poll-captcha-input-div-%POLL-ID% { margin-top:5px; }
4251
+ #yop-poll-captcha-helpers-div-%POLL-ID% {
4252
+ width:30px;
4253
+ float:left;
4254
+ margin-left:5px;
4255
+ height:0px;
4256
  }
4257
+ #yop-poll-captcha-helpers-div-%POLL-ID% img { margin-bottom:2px; }
4258
+ #yop-poll-captcha-image-div-%POLL-ID% { margin-bottom:5px; }
4259
+ #yop_poll_captcha_image_%POLL-ID% { float:left; }
4260
+
4261
+ .yop-poll-clear-%POLL-ID% { clear:both; }
4262
+
4263
+ .yop-poll-name-%POLL-ID% { color:#38595E; font-size: 18px; }
4264
+
4265
+
4266
+ .yop-poll-li-answer-%POLL-ID% label img { max-width: 98%; }
4267
+ .yop-poll-li-result-%POLL-ID% label span img { max-width: 98%; }
4268
+
4269
+ .content { position :unset !important; }
4270
+
4271
+ div.yop-poll-container br,
4272
+ div#yop-poll-container-%POLL-ID% br { display: none; }
4273
+
4274
+ div#yop_poll_vote_options_div-%POLL-ID% div:nth-last-of-type(1) { display: none; }
4275
+
4276
  NOWDOC;
4277
  break;
4278
  }
4279
  case 'Orange v2':
4280
  { //Orange v2
4281
  $css = <<<NOWDOC
4282
+ /*
4283
+ Main Container
4284
+ ---------------------------------------------------------------------------
4285
+ */
4286
+ #yop-poll-other-answer-%POLL-ID%-other {
4287
+ border:1px solid #000000;
4288
+ color:#000000;
4289
+
4290
+ }
4291
+ .yop-poll-customfield-%POLL-ID% {
4292
+ border:1px solid #000000;
4293
+ color:#000000;
4294
+ }
4295
+ div#yop-poll-container-%POLL-ID% {
4296
+ background:#fff;
4297
+ box-sizing: border-box;
4298
+ display: inline-block;
4299
+ font-size: 14px;
4300
+ color:#555;
4301
+ padding: 10px;
4302
+ width: %POLL-WIDTH%;
4303
+ zoom: 1;
4304
+ }
4305
+ /* A nice little reset */
4306
+ div.yop-poll-container * {
4307
+
4308
+ }
4309
+
4310
+ form#yop-poll-form-%POLL-ID% {
4311
+
4312
+ }
4313
+ /*
4314
+ Error message
4315
+ ..................................
4316
+ */
4317
+ div#yop-poll-container-error-%POLL-ID% {
4318
+ font-size:.8em;
4319
+ font-style:italic;
4320
+ color:red;
4321
+ text-transform:lowercase;
4322
+ text-align:center;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4323
  }
4324
+ /*
4325
+ Success message
4326
+ ..................................
4327
+ */
4328
+ div#yop-poll-container-success-%POLL-ID% {
4329
+ font-size:.8em;
4330
+ font-style:italic;
4331
+ color:green;
4332
+ text-align:center;
4333
  }
4334
+ /*
4335
+ Poll Question
4336
+ ---------------------------------------------------------------------------
4337
+ */
4338
+ div#yop-poll-questions-container-%POLL-ID% { margin:.5em; }
4339
+ div.yop-poll-question-container-%POLL-ID% { margin: 0; }
4340
+ div.yop-poll-question-%POLL-ID% {
4341
+ background:#FB6911;
4342
+ color:#fff;
4343
+ border: 0 none;
4344
+ margin: 0 0 2em;
4345
+ padding: .25em;
4346
+ text-align: center;
4347
+ font-size: 14px;
4348
+ }
4349
+ /*
4350
+ Poll Options / Answers
4351
+ ---------------------------------------------------------------------------
4352
+ */
4353
+ div.yop-poll-answers-%POLL-ID% {}
4354
+ div.yop-poll-answers-%POLL-ID% ul {
4355
+ list-style: none;
4356
+ margin: 0;
4357
+ padding: 0;
4358
+
4359
+ }
4360
+ div.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-answer-%POLL-ID%,
4361
+ div.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-result-%POLL-ID% {
4362
+ list-style: none;
4363
+ margin: 0;
4364
+ padding: 0;
4365
+ font-size: 14px;
4366
+ line-height: 2em;
4367
+
4368
+ }
4369
+ div.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-result-%POLL-ID% {padding-bottom: 1em;}
4370
+ /*
4371
+ Label
4372
+ ..................................
4373
+ */
4374
+ div.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-answer-%POLL-ID% label {
4375
+ margin:0px;
4376
+ font-style:normal;
4377
+ font-weight:normal;
4378
+ font-size:14px;
4379
+ float:none;
4380
+ display:inline-block;
4381
+ }
4382
+ /* Actual text label of the answer */
4383
+ div.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-answer-%POLL-ID% label:nth-of-type(2) {
4384
+
4385
+ }
4386
+ /*
4387
+ Custom answer / Other
4388
+ ..................................
4389
+ */
4390
+ div.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-answer-%POLL-ID% label:nth-of-type(3) {
4391
+ width: 100%;
4392
+ overflow: hidden;
4393
+ }
4394
+ div#yop-poll-container-%POLL-ID% li.yop-poll-li-answer-%POLL-ID% label:nth-of-type(3) input[type="text"] {
4395
+ width: 94%;
4396
+ overflow: hidden;
4397
+ }
4398
+ /*
4399
+ Custom checkbox and radio button style
4400
+ ---------------------------------------------------------------------------
4401
+ */
4402
+
4403
+
4404
+ /*
4405
+ Custom fields
4406
+ ---------------------------------------------------------------------------
4407
+ */
4408
+ div.yop-poll-customs-%POLL-ID% {
4409
+ clear: both;
4410
+
4411
+ }
4412
+ div.yop-poll-customs-%POLL-ID% ul {
4413
+ list-style: none;
4414
+ margin: 0;
4415
+ padding: 0;
4416
+ overflow: hidden;
4417
+ width: 100%;
4418
+ }
4419
+ div.yop-poll-customs-%POLL-ID% ul li.yop-poll-li-custom-%POLL-ID% {
4420
+ display: block;
4421
+ font-size:14px;
4422
+ list-style: none;
4423
+ }
4424
+ div.yop-poll-customs-%POLL-ID% ul li.yop-poll-li-custom-%POLL-ID% label {
4425
+ display: block;
4426
+ }
4427
+ div#yop-poll-container-%POLL-ID% li.yop-poll-li-custom-%POLL-ID% input[type="text"] {
4428
+ width: 94%;
4429
+ }
4430
+ /*
4431
+ Vote Button
4432
+ ---------------------------------------------------------------------------
4433
+ */
4434
+ .yop-poll-footer { /*height: 4em;*/ }
4435
+
4436
+ .yop-poll-vote-centered-%POLL-ID% { text-align:center; }
4437
+
4438
+ #yop-poll-vote-%POLL-ID% div button {
4439
+
4440
+ cursor:pointer;
4441
+ display: block;
4442
+ font-size:14px;
4443
+ margin: 0 auto;
4444
+ }
4445
+
4446
+
4447
+ #yop-poll-vote-%POLL-ID% div button.yop_poll_vote_button {}
4448
+ #yop-poll-vote-%POLL-ID% div button.yop_poll_wordpress_vote_button { margin: 1em auto 0; }
4449
+ #yop-poll-vote-%POLL-ID% div button.yop_poll_anonymous_vote_button { margin: 1em auto 0; }
4450
+
4451
+ /*
4452
+ Results
4453
+ ---------------------------------------------------------------------------
4454
+ */
4455
+
4456
+ li.yop-poll-results-%POLL-ID% {
4457
+ font-size: 12px;
4458
+ font-style: italic;
4459
+ font-weight: normal;
4460
+ margin-left: 15px;
4461
+ color: #38595E;
4462
+ }
4463
+ /*
4464
+ Style for results that are displayed on columns
4465
+ ..................................
4466
+ */
4467
+ li.yop-poll-li-answer-%POLL-ID% {
4468
+ float: left;
4469
+ display: inline-block;
4470
+ width: 46%;
4471
+ padding: 1%;
4472
+ margin: 1%;
4473
  }
 
4474
 
 
 
 
 
4475
  #yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% {
4476
+ float: right;
4477
+ width: auto;
 
 
4478
  }
4479
  #yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% a {
4480
+ color:#000;
4481
+ text-decoration:underline;
4482
+ font-size:12px;
4483
  }
4484
  #yop-poll-vote-%POLL-ID% div#yop-poll-back-%POLL-ID% a {
4485
+ color:#000;
4486
+ text-decoration:underline;
4487
+ font-size:12px;
4488
  }
4489
  #yop-poll-vote-%POLL-ID% div#yop-poll-archive-%POLL-ID% a {
4490
+ color:#000;
4491
+ text-decoration:underline;
4492
+ font-size:12px;
4493
  }
4494
  #yop-poll-vote-%POLL-ID% div {
4495
+ float:left;
4496
+ width:100%;
4497
+ }
4498
+ /*
4499
+ Result Bar
4500
+ ..................................
4501
+ */
4502
+
4503
+ .yop-poll-results-bar-%POLL-ID% div { background:#555; width:90%;}
4504
+
4505
+
4506
+ /*
4507
+ ---------------------------------------------------------------------------
4508
+ EXTRAS
4509
+ ---------------------------------------------------------------------------
4510
+ */
4511
+ /*
4512
+ CAPTCHA
4513
+ ..................................
4514
+ */
4515
+ #yop-poll-captcha-input-div-%POLL-ID% { margin-top:5px; }
4516
+ #yop-poll-captcha-helpers-div-%POLL-ID% {
4517
+ width:30px;
4518
+ float:left;
4519
+ margin-left:5px;
4520
+ height:0px;
4521
  }
4522
+ #yop-poll-captcha-helpers-div-%POLL-ID% img { margin-bottom:2px; }
4523
+ #yop-poll-captcha-image-div-%POLL-ID% { margin-bottom:5px; }
4524
+ #yop_poll_captcha_image_%POLL-ID% { float:left; }
 
4525
 
4526
+ .yop-poll-clear-%POLL-ID% { clear:both; }
4527
 
4528
+ .yop-poll-name-%POLL-ID% { color:#38595E; font-size: 18px; }
4529
 
4530
 
4531
+ .yop-poll-li-answer-%POLL-ID% label img { max-width: 98%; }
4532
+ .yop-poll-li-result-%POLL-ID% label span img { max-width: 98%; }
4533
 
4534
+ .content { position :unset !important; }
4535
 
4536
+ div.yop-poll-container br,
4537
+ div#yop-poll-container-%POLL-ID% br { display: none; }
4538
 
4539
+ div#yop_poll_vote_options_div-%POLL-ID% div:nth-last-of-type(1) { display: none; }
4540
+ NOWDOC;
4541
+ break;
4542
+ }
4543
  case 'Orange v3':
4544
  { //Orange v3
4545
  $css = <<<NOWDOC
4546
+ /*
4547
+ Main Container
4548
+ ---------------------------------------------------------------------------
4549
+ */
4550
+ #yop-poll-other-answer-%POLL-ID%-other {
4551
+ border:1px solid #000000;
4552
+ color:#000000;
4553
+
4554
+ }
4555
+ .yop-poll-customfield-%POLL-ID% {
4556
+ border:1px solid #000000;
4557
+ color:#000000;
4558
+ }
4559
+ div#yop-poll-container-%POLL-ID% {
4560
+ background:#fff;
4561
+ box-sizing: border-box;
4562
+ display: inline-block;
4563
+ font-size: 14px;
4564
+ color:#555;
4565
+ padding: 10px;
4566
+ width: %POLL-WIDTH%;
4567
+ zoom: 1;
4568
+ border:5px solid #FB6911;
4569
+ }
4570
+ /* A nice little reset */
4571
+ div.yop-poll-container * {
4572
+
4573
+ }
4574
+
4575
+ form#yop-poll-form-%POLL-ID% {
4576
+
4577
+ }
4578
+ /*
4579
+ Error message
4580
+ ..................................
4581
+ */
4582
+ div#yop-poll-container-error-%POLL-ID% {
4583
+ font-size:.8em;
4584
+ font-style:italic;
4585
+ color:red;
4586
+ text-transform:lowercase;
4587
+ text-align:center;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4588
  }
4589
+ /*
4590
+ Success message
4591
+ ..................................
4592
+ */
4593
+ div#yop-poll-container-success-%POLL-ID% {
4594
+ font-size:.8em;
4595
+ font-style:italic;
4596
+ color:green;
4597
+ text-align:center;
4598
  }
4599
+ /*
4600
+ Poll Question
4601
+ ---------------------------------------------------------------------------
4602
+ */
4603
+ div#yop-poll-questions-container-%POLL-ID% { margin:.5em; }
4604
+ div.yop-poll-question-container-%POLL-ID% { margin: 0; }
4605
+ div.yop-poll-question-%POLL-ID% {
4606
+ border: 0 none;
4607
+ margin: 0 0 2em;
4608
+ padding: .25em;
4609
+ text-align: center;
4610
+ font-size: 14px;
4611
+ }
4612
+ /*
4613
+ Poll Options / Answers
4614
+ ---------------------------------------------------------------------------
4615
+ */
4616
+ div.yop-poll-answers-%POLL-ID% {}
4617
+ div.yop-poll-answers-%POLL-ID% ul {
4618
+ list-style: none;
4619
+ margin: 0;
4620
+ padding: 0;
4621
+
4622
+ }
4623
+ div.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-answer-%POLL-ID%,
4624
+ div.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-result-%POLL-ID% {
4625
+ list-style: none;
4626
+ margin: 0;
4627
+ padding: 0;
4628
+ font-size: 14px;
4629
+ line-height: 2em;
4630
+
4631
+ }
4632
+ div.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-result-%POLL-ID% {padding-bottom: 1em;}
4633
+ /*
4634
+ Label
4635
+ ..................................
4636
+ */
4637
+ div.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-answer-%POLL-ID% label {
4638
+ margin:0px;
4639
+ font-style:normal;
4640
+ font-weight:normal;
4641
+ font-size:14px;
4642
+ float:none;
4643
+ display:inline-block;
4644
+ }
4645
+ /* Actual text label of the answer */
4646
+ div.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-answer-%POLL-ID% label:nth-of-type(2) {
4647
+ }
4648
+ /*
4649
+ Custom answer / Other
4650
+ ..................................
4651
+ */
4652
+ div.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-answer-%POLL-ID% label:nth-of-type(3) {
4653
+ width: 100%;
4654
+ overflow: hidden;
4655
+ }
4656
+ div#yop-poll-container-%POLL-ID% li.yop-poll-li-answer-%POLL-ID% label:nth-of-type(3) input[type="text"] {
4657
+ width: 94%;
4658
+ overflow: hidden;
4659
+ }
4660
+ /*
4661
+ Custom checkbox and radio button style
4662
+ ---------------------------------------------------------------------------
4663
+ */
4664
+
4665
+
4666
+ /*
4667
+ Custom fields
4668
+ ---------------------------------------------------------------------------
4669
+ */
4670
+ div.yop-poll-customs-%POLL-ID% {
4671
+ clear: both;
4672
+
4673
+ }
4674
+ div.yop-poll-customs-%POLL-ID% ul {
4675
+ list-style: none;
4676
+ margin: 0;
4677
+ padding: 0;
4678
+ overflow: hidden;
4679
+ width: 100%;
4680
+ }
4681
+ div.yop-poll-customs-%POLL-ID% ul li.yop-poll-li-custom-%POLL-ID% {
4682
+ display: block;
4683
+ font-size:14px;
4684
+ list-style: none;
4685
+ }
4686
+ div.yop-poll-customs-%POLL-ID% ul li.yop-poll-li-custom-%POLL-ID% label {
4687
+ display: block;
4688
+ }
4689
+ div#yop-poll-container-%POLL-ID% li.yop-poll-li-custom-%POLL-ID% input[type="text"] {
4690
+ width: 94%;
4691
+ }
4692
+ /*
4693
+ Vote Button
4694
+ ---------------------------------------------------------------------------
4695
+ */
4696
+ .yop-poll-footer { /*height: 4em;*/ }
4697
+
4698
+ .yop-poll-vote-centered-%POLL-ID% { text-align:center; }
4699
+
4700
+ #yop-poll-vote-%POLL-ID% div button {
4701
+
4702
+ cursor:pointer;
4703
+ display: block;
4704
+ font-size:14px;
4705
+ margin: 0 auto;
4706
+ }
4707
+
4708
+
4709
+ #yop-poll-vote-%POLL-ID% div button.yop_poll_vote_button {}
4710
+ #yop-poll-vote-%POLL-ID% div button.yop_poll_wordpress_vote_button { margin: 1em auto 0; }
4711
+ #yop-poll-vote-%POLL-ID% div button.yop_poll_anonymous_vote_button { margin: 1em auto 0; }
4712
+
4713
+ /*
4714
+ Results
4715
+ ---------------------------------------------------------------------------
4716
+ */
4717
+
4718
+ li.yop-poll-results-%POLL-ID% {
4719
+ font-size: 12px;
4720
+ font-style: italic;
4721
+ font-weight: normal;
4722
+ margin-left: 15px;
4723
+ color: #38595E;
4724
+ }
4725
+ /*
4726
+ Style for results that are displayed on columns
4727
+ ..................................
4728
+ */
4729
+ li.yop-poll-li-answer-%POLL-ID% {
4730
+ float: left;
4731
+ display: inline-block;
4732
+ width: 46%;
4733
+ padding: 1%;
4734
+ margin: 1%;
4735
  }
 
4736
 
 
 
 
 
4737
  #yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% {
4738
+ float: right;
4739
+ width: auto;
 
 
4740
  }
4741
  #yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% a {
4742
+ color:#000;
4743
+ text-decoration:underline;
4744
+ font-size:12px;
4745
  }
4746
  #yop-poll-vote-%POLL-ID% div#yop-poll-back-%POLL-ID% a {
4747
+ color:#000;
4748
+ text-decoration:underline;
4749
+ font-size:12px;
4750
  }
4751
  #yop-poll-vote-%POLL-ID% div#yop-poll-archive-%POLL-ID% a {
4752
+ color:#000;
4753
+ text-decoration:underline;
4754
+ font-size:12px;
4755
  }
4756
  #yop-poll-vote-%POLL-ID% div {
4757
+ float:left;
4758
+ width:100%;
4759
+ }
4760
+ /*
4761
+ Result Bar
4762
+ ..................................
4763
+ */
4764
+
4765
+ .yop-poll-results-bar-%POLL-ID% div { background:#555; width:90%;}
4766
+
4767
+
4768
+ /*
4769
+ ---------------------------------------------------------------------------
4770
+ EXTRAS
4771
+ ---------------------------------------------------------------------------
4772
+ */
4773
+ /*
4774
+ CAPTCHA
4775
+ ..................................
4776
+ */
4777
+ #yop-poll-captcha-input-div-%POLL-ID% { margin-top:5px; }
4778
+ #yop-poll-captcha-helpers-div-%POLL-ID% {
4779
+ width:30px;
4780
+ float:left;
4781
+ margin-left:5px;
4782
+ height:0px;
4783
  }
4784
+ #yop-poll-captcha-helpers-div-%POLL-ID% img { margin-bottom:2px; }
4785
+ #yop-poll-captcha-image-div-%POLL-ID% { margin-bottom:5px; }
4786
+ #yop_poll_captcha_image_%POLL-ID% { float:left; }
4787
+
4788
+ .yop-poll-clear-%POLL-ID% { clear:both; }
4789
+
4790
+ .yop-poll-name-%POLL-ID% { color:#38595E; font-size: 18px; }
4791
+
4792
+
4793
+ .yop-poll-li-answer-%POLL-ID% label img { max-width: 98%; }
4794
+ .yop-poll-li-result-%POLL-ID% label span img { max-width: 98%; }
4795
+
4796
+ .content { position :unset !important; }
4797
+
4798
+ div.yop-poll-container br,
4799
+ div#yop-poll-container-%POLL-ID% br { display: none; }
4800
+
4801
+ div#yop_poll_vote_options_div-%POLL-ID% div:nth-last-of-type(1) { display: none; }
4802
+
4803
+
4804
+
4805
+
4806
+
4807
+
4808
+
4809
+
4810
  NOWDOC;
4811
  break;
4812
  }
4820
 
4821
  $sql .= "`before_vote_template` = '{$before_vote_template}',
4822
  `after_vote_template` = '{$after_vote_template}',
4823
+ `after_vote_template_chart` = '{$after_vote_template_chart}',
4824
  `before_start_date_template` = '{$before_start_date_template}',
4825
  `after_end_date_template` = '{$after_end_date_template}',
4826
  `js` = '$js',
inc/import_admin.php CHANGED
@@ -483,7 +483,7 @@
483
 
484
 
485
 
486
- $data['title']='Import Polls from Wp-Poll';
487
 
488
 
489
 
@@ -756,7 +756,7 @@
756
 
757
 
758
  }
759
- $data['title']='Import Polls from Wp-Poll';
760
 
761
  $this->display('imports.html',$data);
762
 
483
 
484
 
485
 
486
+ $data['title']=__yop_poll("Import Polls from Wp-Poll");
487
 
488
 
489
 
756
 
757
 
758
  }
759
+ $data['title']=__yop_poll("Import Polls from Wp-Poll");
760
 
761
  $this->display('imports.html',$data);
762
 
inc/maintenance.php CHANGED
@@ -556,7 +556,228 @@ NOWDOC;
556
  if ( version_compare( $installed_version, '5.5', '<=' ) ){
557
  update_option( "yop_poll_version", YOP_POLL_VERSION );
558
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
559
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
560
  }
561
  public function yop_poll_get_polls_for_body_mail_update(){
562
  global $wpdb;
@@ -630,7 +851,7 @@ NOWDOC;
630
  $old_blog = $GLOBALS['wpdb']->blogid;
631
  switch_to_blog( $blog_id );
632
  yop_poll_create_table_names( $GLOBALS['wpdb']->prefix );
633
- $this->deactivate( null );
634
  require_once( YOP_POLL_INC . 'db_schema.php' );
635
  // Yop_Poll_DbSchema::delete_database_tables();
636
  $capObj = YOP_POLL_Capabilities::get_instance();
@@ -719,60 +940,108 @@ function strip_results_%POLL-ID%() {
719
  }
720
 
721
  jQuery(document).ready(function(e) {
 
722
  if(typeof window.strip_results_%POLL-ID% == "function")
723
  strip_results_%POLL-ID%();
724
  if(typeof window.tabulate_answers_%POLL-ID% == "function")
725
  tabulate_answers_%POLL-ID%();
726
  if(typeof window.tabulate_results_%POLL-ID% == "function")
727
  tabulate_results_%POLL-ID%();
 
 
 
728
  });
729
 
730
  function equalWidth_%POLL-ID%(obj, cols, findWidest ) {
731
- findWidest = typeof findWidest !== "undefined" ? findWidest : false;
732
- if ( findWidest ) {
733
- obj.each(function() {
734
- var thisWidth = jQuery(this).width();
735
- width = parseInt(thisWidth / cols);
736
- jQuery(this).width(width);
737
- jQuery(this).css("float", "left");
738
- });
739
- }
740
- else {
741
- var widest = 0;
742
- obj.each(function() {
743
- var thisWidth = jQuery(this).width();
744
- if(thisWidth > widest) {
745
- widest = thisWidth;
746
- }
747
- });
748
- width = parseInt( %POLL-WIDTH% / cols[0]);
749
- obj.width(width-20);
750
- obj.css("float", "left");
751
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
752
  }
753
 
754
  function equalWidth2_%POLL-ID%(obj, cols, findWidest ) {
755
- findWidest = typeof findWidest !== "undefined" ? findWidest : false;
756
- if ( findWidest ) {
757
- obj.each(function() {
758
- var thisWidth = jQuery(this).width();
759
- width = parseInt(thisWidth / cols);
760
- jQuery(this).width(width);
761
- jQuery(this).css("float", "left");
762
- });
763
- }
764
- else {
765
- var widest = 0;
766
- obj.each(function() {
767
- var thisWidth = jQuery(this).width();
768
- if(thisWidth > widest) {
769
- widest = thisWidth;
770
- }
771
- });
772
- width = parseInt( %POLL-WIDTH% / cols[1]);
773
- obj.width(width-20);
774
- obj.css("float", "left");
775
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
776
  }
777
  function tabulate_answers_%POLL-ID%() {
778
 
556
  if ( version_compare( $installed_version, '5.5', '<=' ) ){
557
  update_option( "yop_poll_version", YOP_POLL_VERSION );
558
  }
559
+ $installed_version = get_option( "yop_poll_version" );
560
+
561
+ if ( version_compare( $installed_version, '5.6', '<=' ) ){
562
+ global $wpdb;
563
+ update_option( "yop_poll_version", YOP_POLL_VERSION );
564
+ $default_poll_options = get_option( 'yop_poll_options' );
565
+ $default_poll_options['show_results_in']="bar";
566
+ update_option( 'yop_poll_options', $default_poll_options );
567
+
568
+ $wpdb->query( 'ALTER TABLE `' . $wpdb->yop_poll_templates . '` ADD `after_vote_template_chart` text' );
569
+ update_option( "yop_poll_version", '5.7' );
570
+
571
+ }
572
+ if ( version_compare( $installed_version, '5.7', '<=' ) ){
573
+ global $wpdb;
574
+ update_option( "yop_poll_version", YOP_POLL_VERSION );
575
+
576
+ $templates = self::yop_poll_get_templates_new_version_from_db();
577
+ foreach($templates as $template){
578
+ $template['js']= <<<NOWDOC
579
+ function stripBorder_%POLL-ID%(object) {
580
+ object.each(function() {
581
+ if( parseInt(jQuery(this).width() ) > 0) {
582
+ jQuery(this).width(
583
+ parseInt(
584
+ jQuery(this).width() ) -
585
+ parseInt(jQuery(this).css("border-left-width")) -
586
+ parseInt(jQuery(this).css("border-right-width"))
587
+ );
588
+ }
589
+ else {
590
+ jQuery(this).css("border-left-width", "0px");
591
+ jQuery(this).css("border-right-width", "0px");
592
+ }
593
+ });
594
+ }
595
+ function stripPadding_%POLL-ID%(object) {
596
+ object.each(function() {
597
+ jQuery(this).width(
598
+ parseInt( jQuery(this).width() ) -
599
+ parseInt(jQuery(this).css("padding-left")) -
600
+ parseInt(jQuery(this).css("padding-left"))
601
+ );
602
+ });
603
+ }
604
 
605
+ function strip_results_%POLL-ID%() {
606
+ stripPadding_%POLL-ID%( jQuery("#yop-poll-container-%POLL-ID% .yop_poll_li_result-%POLL-ID%") );
607
+ stripBorder_%POLL-ID%( jQuery("#yop-poll-container-%POLL-ID% .yop-poll-result-bar-%POLL-ID%") );
608
+ }
609
+
610
+ jQuery(document).ready(function(e) {
611
+ jQuery('.yop-poll-forms').removeClass('yop-poll-forms-display');
612
+ if(typeof window.strip_results_%POLL-ID% == "function")
613
+ strip_results_%POLL-ID%();
614
+ if(typeof window.tabulate_answers_%POLL-ID% == "function")
615
+ tabulate_answers_%POLL-ID%();
616
+ if(typeof window.tabulate_results_%POLL-ID% == "function")
617
+ tabulate_results_%POLL-ID%();
618
+
619
+
620
+
621
+ });
622
+
623
+ function equalWidth_%POLL-ID%(obj, cols, findWidest ) {
624
+
625
+ findWidest = typeof findWidest !== "undefined" ? findWidest : false;
626
+ var quest=0;
627
+ if ( findWidest ) {
628
+ obj.each(function() {
629
+ var thisWidth = jQuery(this).width();
630
+ width = parseInt(thisWidth / cols);
631
+ jQuery(this).width(width);
632
+ jQuery(this).css("float", "left");
633
+ });
634
+ }
635
+ else {
636
+ var widest = 0;
637
+ var count = 0;
638
+ var poz_each_question=0;
639
+
640
+ obj.each(function() {
641
+
642
+ count++;
643
+ cols[quest][2]=(jQuery('#yop-poll-answers-%POLL-ID%-'+ cols[quest][3] +' li').length);
644
+ var thisWidth = jQuery(this).width();
645
+ if(thisWidth > widest) {
646
+ widest = thisWidth;
647
+ }
648
+ if(count<cols[quest][2])
649
+ { width = parseInt( %POLL-WIDTH% / cols[quest][0]);
650
+ if(cols[quest][0]==1)
651
+ jQuery(".yop-poll-li-answer-%POLL-ID%-"+cols[quest][3]).css("width","100%");
652
+ else
653
+ jQuery(".yop-poll-li-answer-%POLL-ID%-"+cols[quest][3]).width(width-20);
654
+ jQuery(".yop-poll-li-answer-%POLL-ID%-"+cols[quest][3]).css("float", "left");
655
+ }
656
+ else
657
+ {
658
+ count=0;
659
+
660
+
661
+ width = parseInt( %POLL-WIDTH% / cols[quest][0]);
662
+ jQuery(".yop-poll-li-answer-%POLL-ID%-"+cols[quest][3]).width(width-20);
663
+ jQuery(".yop-poll-li-answer-%POLL-ID%-"+cols[quest][3]).css("float", "left");
664
+ quest++;
665
+ }
666
+
667
+ });
668
+ }
669
+ }
670
+
671
+ function equalWidth2_%POLL-ID%(obj, cols, findWidest ) {
672
+ findWidest = typeof findWidest !== "undefined" ? findWidest : false;
673
+ var quest=0;
674
+
675
+ if ( findWidest ) {
676
+ obj.each(function() {
677
+ var thisWidth = jQuery(this).width();
678
+ width = parseInt(thisWidth / cols);
679
+ jQuery(this).width(width);
680
+ jQuery(this).css("float", "left");
681
+ });
682
+ }
683
+ else {
684
+ var widest = 0;
685
+ var count = 0;
686
+ var poz_each_question=0;
687
+
688
+ obj.each(function() {
689
+ count++;
690
+ cols[quest][2]=(jQuery('#yop-poll-answers-%POLL-ID%-'+ cols[quest][3] +' li').length);
691
+ var thisWidth = jQuery(this).width();
692
+ if(thisWidth > widest) {
693
+ widest = thisWidth;
694
+ }
695
+ if(count<cols[quest][2])
696
+ { width = parseInt( %POLL-WIDTH% / cols[quest][1]);
697
+ jQuery(".yop-poll-li-result-%POLL-ID%-"+cols[quest][3]).width(width-20);
698
+ jQuery(".yop-poll-li-result-%POLL-ID%-"+cols[quest][3]).css("float", "left");
699
+ }
700
+ else
701
+ {
702
+ count=0;
703
+
704
+
705
+ width = parseInt( %POLL-WIDTH% / cols[quest][1]);
706
+ jQuery(".yop-poll-li-result-%POLL-ID%-"+cols[quest][3]).width(width-20);
707
+ jQuery(".yop-poll-li-result-%POLL-ID%-"+cols[quest][3]).css("float", "left");
708
+ quest++;
709
+ }
710
+
711
+ });
712
+ }
713
+ }
714
+ function tabulate_answers_%POLL-ID%() {
715
+
716
+ equalWidth_%POLL-ID%( jQuery("#yop-poll-container-%POLL-ID% .yop-poll-li-answer-%POLL-ID%"), %ANSWERS-TABULATED-COLS% );
717
+ //equalWidth_%POLL-ID%( jQuery("#yop-poll-container-%POLL-ID% .yop-poll-li-answer-%POLL-ID% .yop-poll-results-bar-%POLL-ID% div "), %ANSWERS-TABULATED-COLS%, true );
718
+ }
719
+
720
+ function tabulate_results_%POLL-ID%() {
721
+ equalWidth2_%POLL-ID%( jQuery("#yop-poll-container-%POLL-ID% .yop-poll-li-result-%POLL-ID%"), %RESULTS-TABULATED-COLS% );
722
+ //equalWidth_%POLL-ID%( jQuery("#yop-poll-container-%POLL-ID% .yop-poll-li-result-%POLL-ID% .yop-poll-results-bar-%POLL-ID% div "), %RESULTS-TABULATED-COLS%, true );
723
+ }
724
+
725
+ jQuery(document).ready(function(){
726
+ runOnPollStateChange_%POLL-ID%();
727
+ });
728
+
729
+ function runOnPollStateChange_%POLL-ID%() {
730
+
731
+ };
732
+ NOWDOC;
733
+ $template['after_vote_template_chart']= <<<NOWDOC
734
+ [QUESTION_CONTAINER]
735
+ <div id = "yop-poll-question-container-%POLL-ID%-%QUESTION-ID%" class = "yop-poll-question-container-%POLL-ID%">
736
+ <div id = "yop-poll-question-%POLL-ID%-%QUESTION-ID%"
737
+ class = "yop-poll-question-%POLL-ID%">%POLL-QUESTION%</div>
738
+ <div id = "yop-poll-answers-%POLL-ID%-%QUESTION-ID%" class = "yop-poll-answers-%POLL-ID%">
739
+ <div id = "yop-poll-answers-chart-canvas-%POLL-ID%-%QUESTION-ID%" style="text-align:center;" class="yop-poll-answers-container-chart-%POLL-ID% yop-poll-center-chart">
740
+ <canvas id="yop-poll-answers-chart-%POLL-ID%-%QUESTION-ID%" class="yop-poll-answers-chart"></canvas>
741
+ </div>
742
+ </div>
743
+ </div>
744
+ <div class = "yop-poll-clear-%POLL-ID%"></div>
745
+ [/QUESTION_CONTAINER]
746
+ <div id = "yop-poll-vote-%POLL-ID%" class = "yop-poll-footer">
747
+ <div>%POLL-TOTAL-ANSWERS-LABEL%</div>
748
+ <div>%POLL-TOTAL-VOTES-LABEL%</div>
749
+ <div id = "yop-poll-back-%POLL-ID%">%POLL-BACK-TO-VOTE-LINK%</div>
750
+ <div id = "yop-poll-archive-%POLL-ID%">%POLL-VIEW-ARCHIVE-LINK%</div>
751
+ %SHARE-BUTTON%
752
+ </div>
753
+ NOWDOC;
754
+ self::update_poll_template_in_database2($template);
755
+ }
756
+ update_option( "yop_poll_version", '5.7.1' );
757
+
758
+ }
759
+ if ( version_compare( $installed_version, '5.7.1', '<=' ) ){
760
+ global $wpdb;
761
+ update_option( "yop_poll_version", '5.7.2' );
762
+ }
763
+ }
764
+ private static function update_poll_template_in_database2( $template ) {
765
+ global $wpdb;
766
+ $sql = $wpdb->query( $wpdb->prepare( "
767
+ UPDATE " . $wpdb->yop_poll_templates . "
768
+ SET name = %s,
769
+ before_vote_template = %s,
770
+ after_vote_template = %s,
771
+ after_vote_template_chart = %s,
772
+ before_start_date_template = %s,
773
+ after_end_date_template = %s,
774
+ css = %s,
775
+ js = %s,
776
+ last_modified = %s
777
+ WHERE
778
+ id = %d
779
+ ", $template['name'], $template['before_vote_template'], $template['after_vote_template'],$template['after_vote_template_chart'], $template['before_start_date_template'], $template['after_end_date_template'], $template['css'], $template['js'], current_time( 'mysql' ), $template['id'] ) );
780
+ return $sql;
781
  }
782
  public function yop_poll_get_polls_for_body_mail_update(){
783
  global $wpdb;
851
  $old_blog = $GLOBALS['wpdb']->blogid;
852
  switch_to_blog( $blog_id );
853
  yop_poll_create_table_names( $GLOBALS['wpdb']->prefix );
854
+ $this->deactivatedelete( null );
855
  require_once( YOP_POLL_INC . 'db_schema.php' );
856
  // Yop_Poll_DbSchema::delete_database_tables();
857
  $capObj = YOP_POLL_Capabilities::get_instance();
940
  }
941
 
942
  jQuery(document).ready(function(e) {
943
+ jQuery('.yop-poll-forms').removeClass('yop-poll-forms-display');
944
  if(typeof window.strip_results_%POLL-ID% == "function")
945
  strip_results_%POLL-ID%();
946
  if(typeof window.tabulate_answers_%POLL-ID% == "function")
947
  tabulate_answers_%POLL-ID%();
948
  if(typeof window.tabulate_results_%POLL-ID% == "function")
949
  tabulate_results_%POLL-ID%();
950
+
951
+
952
+
953
  });
954
 
955
  function equalWidth_%POLL-ID%(obj, cols, findWidest ) {
956
+
957
+ findWidest = typeof findWidest !== "undefined" ? findWidest : false;
958
+ var quest=0;
959
+ if ( findWidest ) {
960
+ obj.each(function() {
961
+ var thisWidth = jQuery(this).width();
962
+ width = parseInt(thisWidth / cols);
963
+ jQuery(this).width(width);
964
+ jQuery(this).css("float", "left");
965
+ });
966
+ }
967
+ else {
968
+ var widest = 0;
969
+ var count = 0;
970
+ var poz_each_question=0;
971
+
972
+ obj.each(function() {
973
+
974
+ count++;
975
+ cols[quest][2]=(jQuery('#yop-poll-answers-%POLL-ID%-'+ cols[quest][3] +' li').length);
976
+ var thisWidth = jQuery(this).width();
977
+ if(thisWidth > widest) {
978
+ widest = thisWidth;
979
+ }
980
+ if(count<cols[quest][2])
981
+ { width = parseInt( %POLL-WIDTH% / cols[quest][0]);
982
+ if(cols[quest][0]==1)
983
+ jQuery(".yop-poll-li-answer-%POLL-ID%-"+cols[quest][3]).css("width","100%");
984
+ else
985
+ jQuery(".yop-poll-li-answer-%POLL-ID%-"+cols[quest][3]).width(width-20);
986
+ jQuery(".yop-poll-li-answer-%POLL-ID%-"+cols[quest][3]).css("float", "left");
987
+ }
988
+ else
989
+ {
990
+ count=0;
991
+
992
+
993
+ width = parseInt( %POLL-WIDTH% / cols[quest][0]);
994
+ jQuery(".yop-poll-li-answer-%POLL-ID%-"+cols[quest][3]).width(width-20);
995
+ jQuery(".yop-poll-li-answer-%POLL-ID%-"+cols[quest][3]).css("float", "left");
996
+ quest++;
997
+ }
998
+
999
+ });
1000
+ }
1001
  }
1002
 
1003
  function equalWidth2_%POLL-ID%(obj, cols, findWidest ) {
1004
+ findWidest = typeof findWidest !== "undefined" ? findWidest : false;
1005
+ var quest=0;
1006
+
1007
+ if ( findWidest ) {
1008
+ obj.each(function() {
1009
+ var thisWidth = jQuery(this).width();
1010
+ width = parseInt(thisWidth / cols);
1011
+ jQuery(this).width(width);
1012
+ jQuery(this).css("float", "left");
1013
+ });
1014
+ }
1015
+ else {
1016
+ var widest = 0;
1017
+ var count = 0;
1018
+ var poz_each_question=0;
1019
+
1020
+ obj.each(function() {
1021
+ count++;
1022
+ cols[quest][2]=(jQuery('#yop-poll-answers-%POLL-ID%-'+ cols[quest][3] +' li').length);
1023
+ var thisWidth = jQuery(this).width();
1024
+ if(thisWidth > widest) {
1025
+ widest = thisWidth;
1026
+ }
1027
+ if(count<cols[quest][2])
1028
+ { width = parseInt( %POLL-WIDTH% / cols[quest][1]);
1029
+ jQuery(".yop-poll-li-result-%POLL-ID%-"+cols[quest][3]).width(width-20);
1030
+ jQuery(".yop-poll-li-result-%POLL-ID%-"+cols[quest][3]).css("float", "left");
1031
+ }
1032
+ else
1033
+ {
1034
+ count=0;
1035
+
1036
+
1037
+ width = parseInt( %POLL-WIDTH% / cols[quest][1]);
1038
+ jQuery(".yop-poll-li-result-%POLL-ID%-"+cols[quest][3]).width(width-20);
1039
+ jQuery(".yop-poll-li-result-%POLL-ID%-"+cols[quest][3]).css("float", "left");
1040
+ quest++;
1041
+ }
1042
+
1043
+ });
1044
+ }
1045
  }
1046
  function tabulate_answers_%POLL-ID%() {
1047
 
inc/options_admin.php CHANGED
@@ -46,6 +46,13 @@ class YOP_POLL_General_Options extends YOP_POLL_Abstract_Admin {
46
  require_once( ABSPATH . '/wp-admin/options-head.php' );
47
  wp_enqueue_style( 'yop-poll-wizard-css', YOP_POLL_URL . 'css/yop-poll-wizard.css', array(), YOP_POLL_VERSION );
48
  wp_enqueue_script( 'yop-poll-wizard-js', YOP_POLL_URL . 'js/polls/wizard-options.js', array( 'jquery' ), YOP_POLL_VERSION, true );
 
 
 
 
 
 
 
49
  wp_enqueue_script( 'jquery-ui-dialog' );
50
  $isdone = array( 1 );
51
 
46
  require_once( ABSPATH . '/wp-admin/options-head.php' );
47
  wp_enqueue_style( 'yop-poll-wizard-css', YOP_POLL_URL . 'css/yop-poll-wizard.css', array(), YOP_POLL_VERSION );
48
  wp_enqueue_script( 'yop-poll-wizard-js', YOP_POLL_URL . 'js/polls/wizard-options.js', array( 'jquery' ), YOP_POLL_VERSION, true );
49
+ $translation_array = array(
50
+ 'next_next' => __( "Next" ),
51
+ 'prev_prev' => __yop_poll( "Previous" ),
52
+ 'savee' => __('Save'),
53
+ 'empty_answer' => __yop_poll( "Please fill in empty answers from Question" )
54
+ );
55
+ wp_localize_script( 'yop-poll-wizard-js', 'button_yop', $translation_array );
56
  wp_enqueue_script( 'jquery-ui-dialog' );
57
  $isdone = array( 1 );
58
 
inc/plugin-functions.php CHANGED
@@ -226,6 +226,8 @@ function yop_poll_default_options() {
226
 
227
  'bar_border_color' => 'EDB918',
228
 
 
 
229
  'bar_border_width' => 2,
230
 
231
  'bar_border_style' => 'solid',
@@ -411,6 +413,8 @@ function yop_poll_poll_default_options() {
411
 
412
  'bar_border_color' => 'EDB918',
413
 
 
 
414
  'bar_border_width' => 2,
415
 
416
  'bar_border_style' => 'solid',
226
 
227
  'bar_border_color' => 'EDB918',
228
 
229
+ 'show_results_in' => 'bar',
230
+
231
  'bar_border_width' => 2,
232
 
233
  'bar_border_style' => 'solid',
413
 
414
  'bar_border_color' => 'EDB918',
415
 
416
+ 'show_results_in' => 'bar',
417
+
418
  'bar_border_width' => 2,
419
 
420
  'bar_border_style' => 'solid',
inc/plugin.php CHANGED
@@ -5,6 +5,8 @@
5
 
6
  public function __construct( Yop_Poll_Config $config ) {
7
  $this->_config = $config;
 
 
8
  $this->init();
9
  }
10
 
5
 
6
  public function __construct( Yop_Poll_Config $config ) {
7
  $this->_config = $config;
8
+ $plugin_path = $this->_config->plugin_dir . '/' . $this->_config->languages_dir;
9
+ load_plugin_textdomain( 'yop_poll', false, $plugin_path );
10
  $this->init();
11
  }
12
 
inc/poll_admin.php CHANGED
@@ -38,6 +38,9 @@ class YOP_POLL_Poll_Admin extends YOP_POLL_Abstract_Admin {
38
  case "addvote":
39
  self::add_vote();
40
  break;
 
 
 
41
  case "reset_votes":
42
  self::reset_stats();
43
  break;
@@ -151,6 +154,13 @@ class YOP_POLL_Poll_Admin extends YOP_POLL_Abstract_Admin {
151
  if( isset( $poll_options['user_interface_type'] ) && $poll_options['user_interface_type'] == 'beginner' ) {
152
  wp_enqueue_style( 'yop-poll-wizard-css', YOP_POLL_URL . 'css/yop-poll-wizard.css', array(), YOP_POLL_VERSION );
153
  wp_enqueue_script( 'yop-poll-wizard-js', YOP_POLL_URL . 'js/polls/yop-poll-wizard.js', array( 'jquery' ), YOP_POLL_VERSION, true );
 
 
 
 
 
 
 
154
  wp_enqueue_script( 'jquery-ui-dialog' );
155
  $isdone = array( - 1 );
156
  if( 'edit' == $action_type ) {
@@ -369,9 +379,263 @@ class YOP_POLL_Poll_Admin extends YOP_POLL_Abstract_Admin {
369
  private function view_all_polls_operations() {
370
 
371
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
372
 
373
  private function export_answers() {
374
- $data['title'] = __( "Results" );
375
  $data['poll_id'] = ( isset ( $_GET ['id'] ) ? intval( $_GET ['id'] ) : 0 );
376
  $data['results_order_by'] = ( isset ( $_GET ['results_order_by'] ) ? $_GET ['results_order_by'] : 'id' );
377
  $data['results_order'] = ( isset ( $_GET ['results_order'] ) ? $_GET ['results_order'] : 'ASC' );
@@ -558,7 +822,7 @@ class YOP_POLL_Poll_Admin extends YOP_POLL_Abstract_Admin {
558
  $poll_id = ( isset ( $_GET ['id'] ) ? intval( $_GET ['id'] ) : 0 );
559
  $data = array();
560
  $data['action_type'] = $action_type;
561
- $data['title'] = __yop_poll( 'Add New Poll' );
562
  $data['templates'] = YOP_POLL_MODEL::get_yop_poll_templates_search( 'id', 'asc' );
563
  $data['poll_url']=YOP_POLL_URL;
564
  $n = count( $data['templates'] );
@@ -1290,7 +1554,7 @@ class YOP_POLL_Poll_Admin extends YOP_POLL_Abstract_Admin {
1290
  'poll_id' => $_REQUEST['id'],
1291
  'return_fields' => 'COUNT(*) as total_results',
1292
  'search' => array(
1293
- 'fields' => array( 'ip' ),
1294
  'value' => isset ( $_REQUEST ['s_ip'] ) ? $_REQUEST ['s_ip'] : ''
1295
  ),
1296
  'orderby' => $orderby,
@@ -1404,7 +1668,7 @@ class YOP_POLL_Poll_Admin extends YOP_POLL_Abstract_Admin {
1404
 
1405
  $data['cf_sdate'] = ( isset ( $_GET ['cf_sdate'] ) ? $_GET ['cf_sdate'] : '' );
1406
  $data['cf_edate'] = ( isset ( $_GET ['cf_edate'] ) ? $_GET ['cf_edate'] : '' );
1407
- $data['title'] = "Results";
1408
  $data['custom_fields'] = array();
1409
 
1410
  foreach ( $current_poll->questions as $question ) {
@@ -1475,6 +1739,8 @@ class YOP_POLL_Poll_Admin extends YOP_POLL_Abstract_Admin {
1475
  $this->display( 'results_votes.html', $data );
1476
 
1477
  }
 
 
1478
  public function view_poll_results() {
1479
  global $page, $action, $current_user;
1480
  $poll_id = ( isset ( $_GET ['id'] ) ? intval( $_GET ['id'] ) : 0 );
@@ -1841,7 +2107,17 @@ class YOP_POLL_Poll_Admin extends YOP_POLL_Abstract_Admin {
1841
  $sql_search = '';
1842
  if( count( $search['fields'] ) > 0 ) {
1843
  foreach( $search['fields'] as $field ) {
1844
- $sql_search .= $GLOBALS['wpdb']->prepare( ' `' . esc_attr( $field ) . '` like \'%%%s%%\' OR', $search['value'] );
 
 
 
 
 
 
 
 
 
 
1845
  }
1846
  $sql_search = ' AND ( ' . trim( $sql_search, 'OR' ) . ' ) ';
1847
  }
@@ -1900,7 +2176,17 @@ class YOP_POLL_Poll_Admin extends YOP_POLL_Abstract_Admin {
1900
  $sql_search = '';
1901
  if( count( $search['fields'] ) > 0 ) {
1902
  foreach( $search['fields'] as $field ) {
1903
- $sql_search .= $GLOBALS['wpdb']->prepare( ' `' . esc_attr( $field ) . '` like \'%%%s%%\' OR', $search['value'] );
 
 
 
 
 
 
 
 
 
 
1904
  }
1905
  $sql_search = ' AND ( ' . trim( $sql_search, 'OR' ) . ' ) ';
1906
  }
@@ -2021,24 +2307,29 @@ class YOP_POLL_Poll_Admin extends YOP_POLL_Abstract_Admin {
2021
 
2022
  $csv_file_name = 'votes_export.' . date( 'YmdHis' ) . '.csv';
2023
  $csv_header_array = array(
2024
- __( 'Vote ID', 'yop_poll' ),
2025
  __( 'Vote details', 'yop_poll' ),
2026
- __( 'User_type', 'yop_poll' ),
2027
- __( 'Traking Id', 'yop_poll' ),
2028
  __( 'Ip', 'yop_poll' ),
2029
  __( 'Vote date', 'yop_poll' ),
2030
- __( 'Custom Fields', 'yop_poll' )
2031
  );
 
2032
  header( "Content-Type: text/csv" );
2033
  header( "Cache-Control: must-revalidate, post-check=0,pre-check=0" );
2034
  header( "Content-Transfer-Encoding: binary\n" );
2035
  header( 'Content-Disposition: attachment; filename="' . $csv_file_name . '"' );
2036
  ob_start();
2037
  $f = fopen( 'php://output', 'w' ) or show_error( __( "Can't open php://output!", 'yop_poll' ) );
2038
-
 
 
 
 
 
2039
  if( ! fputcsv( $f, $csv_header_array ) ) {
2040
  _e( "Can't write header!", 'yop_poll' );
2041
  }
 
2042
  if( $_REQUEST ['export'] != "all" ) {
2043
  $votes = array();
2044
 
@@ -2049,32 +2340,39 @@ class YOP_POLL_Poll_Admin extends YOP_POLL_Abstract_Admin {
2049
  foreach( $data['results'] as &$result ) {
2050
  $result['votes_details'] = json_decode( $result['result_details'], true );
2051
  foreach( $result['votes_details'] as $question ) {
2052
- $vote_answer = $question['question'] . ": ";
2053
  foreach( $question['answers'] as $answer ) {
2054
- $vote_answer .= $answer . ", ";
2055
  }
2056
  $result['vote_answers'] .= $vote_answer . ".\n";
2057
  if( isset( $question['cf'] ) ) {
2058
  $custom_fields_details = "";
2059
  foreach( $question['cf'] as $cf_id ) {
2060
- $custom_field_log = self::get_custom_field_log_by_id( $cf_id );
2061
- $custom_field = self::get_custom_field_by_id( $custom_field_log[0]['custom_field_id'] );
2062
- $custom_fields_details .= $custom_field[0]['custom_field'] . ": " . $custom_field_log[0]['custom_field_value'] . "";
 
2063
 
2064
  }
 
2065
  $result['custom_fields'] = $custom_fields_details;
2066
 
2067
  }
2068
  }
2069
  }
2070
  foreach( $data['results'] as $detail ) {
2071
- $votes[] = $detail['vote_id'];
2072
  $votes[] = $detail['vote_answers'];
2073
- $votes[] = $detail['user_type'];
2074
- $votes[] = $detail['tr_id'];
2075
  $votes[] = $detail['ip'];
2076
  $votes[] = $detail['vote_date'];
2077
- $votes[] = $detail['custom_fields'];
 
 
 
 
 
 
2078
  if( ! fputcsv( $f, $votes ) ) {
2079
  _e( "Can't write header!", 'yop_poll' );
2080
  }
@@ -2098,9 +2396,9 @@ class YOP_POLL_Poll_Admin extends YOP_POLL_Abstract_Admin {
2098
  if( isset( $question['cf'] ) ) {
2099
  $custom_fields_details = "";
2100
  foreach( $question['cf'] as $cf_id ) {
2101
- $custom_field_log = self::get_custom_field_log_by_id( $cf_id );
2102
- $custom_field = self::get_custom_field_by_id( $custom_field_log[0]['custom_field_id'] );
2103
- $custom_fields_details .= $custom_field[0]['custom_field'] . ": " . $custom_field_log[0]['custom_field_value'] . ".";
2104
 
2105
  }
2106
  $result['custom_fields'] = $custom_fields_details;
@@ -2108,14 +2406,18 @@ class YOP_POLL_Poll_Admin extends YOP_POLL_Abstract_Admin {
2108
  }
2109
  }
2110
  }
 
2111
  foreach( $data['results'] as $detail ) {
2112
- $votes[] = $detail['vote_id'];
2113
  $votes[] = $detail['vote_answers'];
2114
- $votes[] = $detail['user_type'];
2115
- $votes[] = $detail['tr_id'];
2116
  $votes[] = $detail['ip'];
2117
  $votes[] = $detail['vote_date'];
2118
- $votes[] = $detail['custom_fields'];
 
 
 
 
 
2119
  if( ! fputcsv( $f, $votes ) ) {
2120
  _e( "Can't write header!", 'yop_poll' );
2121
  }
@@ -2543,7 +2845,16 @@ class YOP_POLL_Poll_Admin extends YOP_POLL_Abstract_Admin {
2543
 
2544
  return $result;
2545
  }
 
 
 
 
 
 
 
2546
 
 
 
2547
  public function yop_poll_get_results_by_poll_id( $poll_id ) {
2548
  global $wpdb;
2549
  $result = $wpdb->get_results( $wpdb->prepare( "
38
  case "addvote":
39
  self::add_vote();
40
  break;
41
+ case "print_votes":
42
+ $this->print_votes();
43
+ break;
44
  case "reset_votes":
45
  self::reset_stats();
46
  break;
154
  if( isset( $poll_options['user_interface_type'] ) && $poll_options['user_interface_type'] == 'beginner' ) {
155
  wp_enqueue_style( 'yop-poll-wizard-css', YOP_POLL_URL . 'css/yop-poll-wizard.css', array(), YOP_POLL_VERSION );
156
  wp_enqueue_script( 'yop-poll-wizard-js', YOP_POLL_URL . 'js/polls/yop-poll-wizard.js', array( 'jquery' ), YOP_POLL_VERSION, true );
157
+ $translation_array = array(
158
+ 'next_next' => __( "Next" ),
159
+ 'prev_prev' => __yop_poll( "Previous" ),
160
+ 'savee' => __('Save'),
161
+ 'empty_answer' => __yop_poll( "Please fill in empty answers from Question" )
162
+ );
163
+ wp_localize_script( 'yop-poll-wizard-js', 'button_yop', $translation_array );
164
  wp_enqueue_script( 'jquery-ui-dialog' );
165
  $isdone = array( - 1 );
166
  if( 'edit' == $action_type ) {
379
  private function view_all_polls_operations() {
380
 
381
  }
382
+ public function print_votes() {
383
+ global $message;
384
+ $time_format="H:i:s";
385
+ $options = get_option('yop_poll_options' );
386
+ if($options['date_format']=="UE")
387
+ $date_format="d-m-Y"; else{
388
+ $date_format="m-d-Y";
389
+ }
390
+ $data['date_format']=$date_format.' '.$time_format;
391
+ wp_enqueue_style( 'yop-poll-slider-css', YOP_POLL_URL . 'css/yop-poll-slider.css', array(), YOP_POLL_VERSION );
392
+
393
+ wp_enqueue_script( 'yop-poll-add-edit-js', YOP_POLL_URL . 'js/polls/yop-poll-add-edit.js', array(
394
+ 'jquery',
395
+ 'jquery-ui-sortable',
396
+ 'jquery-ui-dialog',
397
+ ), YOP_POLL_VERSION, true );
398
+
399
+ wp_enqueue_script( 'yop-poll-slider-js', YOP_POLL_URL . 'js/yop-poll-slider.js', array(
400
+ 'jquery',
401
+ 'jquery-ui-dialog'
402
+ ), YOP_POLL_VERSION, true );
403
+
404
+ wp_enqueue_script( 'yop-poll-results-votes-js', YOP_POLL_URL . '/js/polls/yop-poll-results-votes.js', array(
405
+ 'jquery',
406
+ 'jquery-ui-dialog'
407
+ ), YOP_POLL_VERSION, true );
408
+ wp_enqueue_style( 'yop-poll-add-edit-css', YOP_POLL_URL . 'css/polls/add-edit.css', array(), YOP_POLL_VERSION );
409
+
410
+ $data = array();
411
+ if(isset($_POST['question_print']))
412
+ $data['question_print']=true;
413
+ if(isset($_POST['other_print']))
414
+ $data['other_print']=true;
415
+ if(isset($_POST['custom_print']))
416
+ $data['custom_print']=true;
417
+
418
+ if(isset($_POST['votes_print']))
419
+ $data['votes_print']=true;
420
+ if(isset($_POST['votes_id']))
421
+ $data['votes_id']=true;
422
+ if(isset($_POST['user_type']))
423
+ $data['user_type']=true;
424
+
425
+ if(isset($_POST['track_id']))
426
+ $data['track_id']=true;
427
+ if(isset($_POST['ip_print']))
428
+ $data['ip_print']=true;
429
+ if(isset($_POST['date_print']))
430
+ $data['date_print']=true;
431
+ $data['poll_url']= YOP_POLL_URL;
432
+ $data['poll_id'] = $_REQUEST['id'];
433
+ $current_poll = new YOP_POLL_Poll_Model( $data['poll_id'] );
434
+ $data['poll_title'] = $current_poll->poll_name;
435
+ $data['per_page'] = ( isset( $_REQUEST ['per_page'] ) && intval( $_REQUEST ['per_page'] ) > 0 ) ? intval( $_REQUEST ['per_page'] ) : 100;
436
+ $data['page_no'] = ( isset( $_REQUEST ['page_no'] ) && intval( $_REQUEST ['page_no'] ) > 0 ) ? intval( $_REQUEST ['page_no'] ) : 1;
437
+ $orderby = ( empty ( $GLOBALS['orderby'] ) ) ? 'ip' : $GLOBALS['orderby'];
438
+ $order = ( empty ( $GLOBALS['order'] ) ) ? 'desc' : $GLOBALS['order'];
439
+ $data['request']['s_ip'] = ( isset ( $_REQUEST ['s_ip'] ) ? $_REQUEST ['s_ip'] : '' );
440
+ $order_fields = array(
441
+ 'vote_date',
442
+ 'user_type',
443
+ 'ip'
444
+ );
445
+ $args = array(
446
+ 'poll_id' => $_REQUEST['id'],
447
+ 'return_fields' => 'COUNT(*) as total_results',
448
+ 'search' => array(
449
+ 'fields' => array( 'ip' ),
450
+ 'value' => isset ( $_REQUEST ['s_ip'] ) ? $_REQUEST ['s_ip'] : ''
451
+ ),
452
+ 'orderby' => $orderby,
453
+ 'order' => $order
454
+ );
455
+ $total_results = self::get_polls_results_filter_search( $args );
456
+ if( ! isset( $total_results[0]['total_results'] ) ) {
457
+ $total_results[0]['total_results'] = 0;
458
+ }
459
+ $data['total_results'] = $total_results[0]['total_results'];
460
+ $total_results_pages = ceil( $total_results[0]['total_results'] / $data['per_page'] );
461
+ if( intval( $data['page_no'] ) > intval( $total_results_pages ) ) {
462
+ $data['page_no'] = 1;
463
+ }
464
+ $args['limit'] = ( $data['page_no'] - 1 ) * $data['per_page'] . ', ' . $data['per_page'];
465
+ $args['return_fields'] = "*";
466
+ $data['REQUEST'] = $_REQUEST;
467
+ $data['orderby'] = $orderby;
468
+ $data['order'] = $order;
469
+ $data['order_direction'] = $this->make_order_array( $order_fields, 'asc', $orderby, ( 'desc' == $order ) ? 'asc' : 'desc' );
470
+ $data['order_sortable'] = $this->make_order_array( $order_fields, 'sortable', $orderby, 'sorted' );
471
+ $data['order_direction_reverse'] = $this->make_order_array( $order_fields, 'desc', $orderby, ( 'desc' == $order ) ? 'desc' : 'asc' );
472
+ $data['results'] = self::get_polls_results_for_view( $args );
473
+ $data['total_items'] = $total_results[0]['total_results'];
474
+ $data['current_user'] = $GLOBALS['current_user'];
475
+ $data['message']['success'] = $message['success'];
476
+ $data['message']['error'] = $message['error'];
477
+ foreach( $data['results'] as &$result ) {
478
+ $result['votes_details'] = json_decode( $result['result_details'], true );
479
+ foreach( $result['votes_details'] as $question ) {
480
+ $vote_answer = $question['question'] . ": ";
481
+ foreach( $question['answers'] as $answer ) {
482
+ $vote_answer .= $answer . ", ";
483
+ }
484
+ $result['vote_answers'] .= $vote_answer . ".\n";
485
+ $result['vote_answers']=str_replace(", .",".",$result['vote_answers']);
486
+ if( isset( $question['cf'] ) ) {
487
+ $custom_fields_details = "";
488
+ foreach( $question['cf'] as $cf_id ) {
489
+ $custom_field_log = self::get_custom_field_log_by_id( $cf_id );
490
+ $custom_field = self::get_custom_field_by_id( $custom_field_log[0]['custom_field_id'] );
491
+ if($custom_field_log[0]['custom_field_value'])
492
+ $custom_fields_details .= $custom_field[0]['custom_field'] . ": " . $custom_field_log[0]['custom_field_value'] . ".\n";
493
+
494
+ }
495
+ $result['custom_fields'] = $custom_fields_details;
496
+ }
497
+ }
498
+ }
499
+ $paginate_args = array(
500
+ 'base' => remove_query_arg( 'page_no', $_SERVER ['REQUEST_URI'] ) . '%_%',
501
+ 'format' => '&page_no=%#%',
502
+ 'total' => $total_results_pages,
503
+ 'current' => max( 1, $data['page_no'] ),
504
+ 'prev_next' => true,
505
+ 'prev_text' => __yop_poll( '&laquo; Previous' ),
506
+ 'next_text' => __yop_poll( 'Next &raquo;' )
507
+ );
508
+ $_SERVER ['REQUEST_URI'] = remove_query_arg( array( 'action' ), $_SERVER ['REQUEST_URI'] );
509
+ $data['pagination'] = paginate_links( $paginate_args );
510
+ $data['poll'] = new YOP_POLL_Poll_Model( $data['poll_id'] );
511
+ $data['title'] = "Votes";
512
+
513
+
514
+
515
+
516
+
517
+
518
+
519
+
520
+ wp_enqueue_script( 'yop-poll-results-votes-js', YOP_POLL_URL . '/js/polls/yop-poll-results-votes.js', array( 'jquery' ), YOP_POLL_VERSION, true );
521
+ $index=1;$data['title'] = __( "Results" );
522
+ $data['poll_id'] = ( isset ( $_GET ['id'] ) ? intval( $_GET ['id'] ) : 0 );
523
+ $data['results_order_by'] = ( isset ( $_GET ['results_order_by'] ) ? $_GET ['results_order_by'] : 'id' );
524
+ $data['results_order'] = ( isset ( $_GET ['results_order'] ) ? $_GET ['results_order'] : 'ASC' );
525
+ $data['soav'] = ( isset ( $_GET ['soav'] ) ? $_GET ['soav'] : 'no' );
526
+ $data['a'] = ( isset ( $_GET ['a'] ) ? $_GET ['a'] : 'no' );
527
+ $current_poll = new YOP_POLL_Poll_Model( $data['poll_id'], $is_view_results = "no", $question_sort = "poll_order", $question_sort_rule = "ASC", $answer_sort = $data['results_order_by'], $answer_sort_rule = $data['results_order'] );
528
+ $data['poll_details'] = array( 'name' => $current_poll->poll_title, 'question' => $current_poll->questions );
529
+ if ( 'yes' == $data['soav'] ){
530
+ $data['display_other_answers_values'] = true;
531
+ }
532
+ else {
533
+ $data['display_other_answers_values'] = false;
534
+ }
535
+ $percentages = array();
536
+ $total_votes = array();
537
+ $i = 0;
538
+ foreach ( $current_poll->questions as $question ) {
539
+ $total_votes[$i] = 0;
540
+ foreach ( $question->answers as $answer ) {
541
+ $total_votes[$i] += floatval( $answer->votes );
542
+ }
543
+ $i++;
544
+ }
545
+ $i = 0;
546
+
547
+ foreach ( $current_poll->questions as $question ) {
548
+ foreach ( $question->answers as $answer ) {
549
+ if ( $answer->votes > 0 ){
550
+ $answer->status = round( ( $answer->votes * 100 ) / $total_votes[$i], 1 );
551
+ }
552
+ else {
553
+ $percentages[$i][] = 0;
554
+ $answer->status = 0;
555
+ }
556
+ }
557
+ $i++;
558
+ }
559
+
560
+
561
+ $data['cf_sdate'] = ( isset ( $_GET ['cf_sdate'] ) ? $_GET ['cf_sdate'] : '' );
562
+ $data['cf_edate'] = ( isset ( $_GET ['cf_edate'] ) ? $_GET ['cf_edate'] : '' );
563
+ $data['title'] = "View Votes";
564
+ $data['custom_fields'] = array();
565
+
566
+ foreach ( $current_poll->questions as $question ) {
567
+ $data['cf_per_page'] = ( isset ( $_REQUEST ['cf_per_page'] ) ? intval( $_REQUEST ['cf_per_page'] ) : 100 );
568
+ $data['cf_page_no'] = ( isset ( $_REQUEST ['cf_page_no'] ) ? ( int )$_REQUEST ['cf_page_no'] : 1 );
569
+
570
+ $poll_custom_fields = self::get_poll_customfields( $data['poll_id'], $question->ID );
571
+ $custom_fields_logs = self::get_poll_customfields_logs( $data['poll_id'], $question->ID, 'vote_id', 'asc', ( $data['cf_page_no'] - 1 ) * $data['cf_per_page'], $data['cf_per_page'], $data['cf_sdate'], $data['cf_edate'] );
572
+ unset( $column_custom_fields_ids );
573
+ foreach ( $poll_custom_fields as $custom_field ) {
574
+ $column_custom_fields_ids [] = $custom_field ['ID'];
575
+
576
+ }
577
+ if ( count( $custom_fields_logs ) > 0 ){
578
+ foreach ( $custom_fields_logs as &$logs ) {
579
+ foreach ( $column_custom_fields_ids as $custom_field_id ) {
580
+ $vote_log_values = array();
581
+ $vote_logs = explode( '<#!,>', $logs ['vote_log'] );
582
+ if ( count( $vote_logs ) > 0 ){
583
+ foreach ( $vote_logs as $vote_log ) {
584
+ $temp = explode( '<#!->', $vote_log );
585
+ $vote_log_values [$temp [1]] = stripslashes( $temp [0] );
586
+ }
587
+ }
588
+ }
589
+ $custom_fields_logs_details[] = array( 'vote_id' => $logs['vote_id'], "tr_id" => $logs['tr_id'], "vote_date" => $logs['vote_date'], "custom_fields_value" => $vote_log_values, 'column_custom_fields_ids' => $column_custom_fields_ids, );
590
+ }
591
+
592
+ }
593
+ $data['total_custom_fields_logs'] = self::get_poll_total_customfields_logs( $data['poll_id'], $question->ID, $data['cf_sdate'], $data['cf_edate'] );
594
+ $data['total_custom_fields_logs_pages'] = ceil( $data['total_custom_fields_logs'] / $data['cf_per_page'] );
595
+ $data['column_custom_fields_ids'] = array();
596
+
597
+ if ( intval( $data['cf_page_no'] ) > intval( $data['total_custom_fields_logs_pages'] ) ){
598
+ $data['cf_page_no'] = 1;
599
+ }
600
+ $data['cf_args'] = array( 'base' => remove_query_arg( 'cf_page_no', $_SERVER ['REQUEST_URI'] ) . '%_%', 'format' => '&cf_page_no=%#%', 'total' => $data['total_custom_fields_logs_pages'], 'current' => max( 1, $data['cf_page_no'] ), 'prev_next' => true, 'prev_text' => __( '&laquo; Previous' ), 'next_text' => __( 'Next &raquo;' ) );
601
+ $data['cf_pagination'] = paginate_links( $data['cf_args'] );
602
+ $chart_answer[$index][0][]="Answer";$i=1;
603
+ $chart_answer[$index][0][]="Votes";
604
+ foreach ( $question->answers as $answer ) {
605
+ if(($answer->type=="other"&& $data['display_other_answers_values'] ==1)||$answer->type!="other"){
606
+ $chart_answer[$index][$i][0]=$answer->answer;
607
+ $chart_answer[$index][$i][1]=(int)$answer->votes;
608
+ $i++;
609
+ }
610
+ }
611
+
612
+
613
+ $question_detail[] = array( 'other_answer' => $question->other_answers_label, 'name' => $question->question, 'answers' => $question->answers, 'custom_fields' => self::get_poll_customfields( $data['poll_id'], $question->ID ), 'custom_fields_logs_details' => $custom_fields_logs_details, 'q_id' => $question->ID, 'total_custom_fields_logs' => $data['total_custom_fields_logs'], 'cf_pagination' => $data['cf_pagination'] );
614
+ $data['questions_details'] = $question_detail;
615
+
616
+ unset( $custom_fields_logs_details );
617
+ unset( $column_custom_fields_ids );
618
+ $index++;
619
+ }
620
+ wp_localize_script( 'yop-poll-results-votes-js', 'charts_answer', $chart_answer );
621
+
622
+ $data['total_logs_other_answers'] = 0;
623
+ foreach ( $current_poll->questions as $question ) {
624
+ foreach ( $question->answers as $other_answer ) {
625
+ if ( $other_answer->type == 'other' ){
626
+ $data['total_logs_other_answers']++;
627
+ }
628
+ }
629
+ }
630
+
631
+
632
+ $this->display( 'results_print.html', $data );
633
+
634
+ }
635
+
636
 
637
  private function export_answers() {
638
+ $data['title'] = __( "View Votes" );
639
  $data['poll_id'] = ( isset ( $_GET ['id'] ) ? intval( $_GET ['id'] ) : 0 );
640
  $data['results_order_by'] = ( isset ( $_GET ['results_order_by'] ) ? $_GET ['results_order_by'] : 'id' );
641
  $data['results_order'] = ( isset ( $_GET ['results_order'] ) ? $_GET ['results_order'] : 'ASC' );
822
  $poll_id = ( isset ( $_GET ['id'] ) ? intval( $_GET ['id'] ) : 0 );
823
  $data = array();
824
  $data['action_type'] = $action_type;
825
+ $data['title'] = __yop_poll( "Add New Poll" );
826
  $data['templates'] = YOP_POLL_MODEL::get_yop_poll_templates_search( 'id', 'asc' );
827
  $data['poll_url']=YOP_POLL_URL;
828
  $n = count( $data['templates'] );
1554
  'poll_id' => $_REQUEST['id'],
1555
  'return_fields' => 'COUNT(*) as total_results',
1556
  'search' => array(
1557
+ 'fields' => array( $_REQUEST['searchbox'] ),
1558
  'value' => isset ( $_REQUEST ['s_ip'] ) ? $_REQUEST ['s_ip'] : ''
1559
  ),
1560
  'orderby' => $orderby,
1668
 
1669
  $data['cf_sdate'] = ( isset ( $_GET ['cf_sdate'] ) ? $_GET ['cf_sdate'] : '' );
1670
  $data['cf_edate'] = ( isset ( $_GET ['cf_edate'] ) ? $_GET ['cf_edate'] : '' );
1671
+ $data['title'] = "View Votes";
1672
  $data['custom_fields'] = array();
1673
 
1674
  foreach ( $current_poll->questions as $question ) {
1739
  $this->display( 'results_votes.html', $data );
1740
 
1741
  }
1742
+
1743
+
1744
  public function view_poll_results() {
1745
  global $page, $action, $current_user;
1746
  $poll_id = ( isset ( $_GET ['id'] ) ? intval( $_GET ['id'] ) : 0 );
2107
  $sql_search = '';
2108
  if( count( $search['fields'] ) > 0 ) {
2109
  foreach( $search['fields'] as $field ) {
2110
+ if(!isset($field) || $field=='all'){
2111
+ $sql_search .= $GLOBALS['wpdb']->prepare( ' `' . esc_attr( 'ip' ) . '` like \'%%%s%%\' OR', $search['value'] );
2112
+ $sql_search .= $GLOBALS['wpdb']->prepare( ' `' . esc_attr('vote_id') . '` like \'%%%s%%\' OR', $search['value'] );
2113
+ $sql_search .= $GLOBALS['wpdb']->prepare( ' `' . esc_attr('user_type') . '` like \'%%%s%%\' OR', $search['value'] );
2114
+ $sql_search .= $GLOBALS['wpdb']->prepare( ' `' . esc_attr('tr_id') . '` like \'%%%s%%\' OR', $search['value'] );
2115
+ $sql_search .= $GLOBALS['wpdb']->prepare( ' `' . esc_attr('vote_date') . '` like \'%%%s%%\' OR', $search['value'] );
2116
+ }
2117
+ else
2118
+ {
2119
+ $sql_search .= $GLOBALS['wpdb']->prepare( ' `' . esc_attr( $field ) . '` like \'%%%s%%\' OR', $search['value'] );
2120
+ }
2121
  }
2122
  $sql_search = ' AND ( ' . trim( $sql_search, 'OR' ) . ' ) ';
2123
  }
2176
  $sql_search = '';
2177
  if( count( $search['fields'] ) > 0 ) {
2178
  foreach( $search['fields'] as $field ) {
2179
+ if(!isset($field) || $field=='all'){
2180
+ $sql_search .= $GLOBALS['wpdb']->prepare( ' `' . esc_attr( 'ip' ) . '` like \'%%%s%%\' OR', $search['value'] );
2181
+ $sql_search .= $GLOBALS['wpdb']->prepare( ' `' . esc_attr('vote_id') . '` like \'%%%s%%\' OR', $search['value'] );
2182
+ $sql_search .= $GLOBALS['wpdb']->prepare( ' `' . esc_attr('user_type') . '` like \'%%%s%%\' OR', $search['value'] );
2183
+ $sql_search .= $GLOBALS['wpdb']->prepare( ' `' . esc_attr('tr_id') . '` like \'%%%s%%\' OR', $search['value'] );
2184
+ $sql_search .= $GLOBALS['wpdb']->prepare( ' `' . esc_attr('vote_date') . '` like \'%%%s%%\' OR', $search['value'] );
2185
+ }
2186
+ else
2187
+ {
2188
+ $sql_search .= $GLOBALS['wpdb']->prepare( ' `' . esc_attr( $field ) . '` like \'%%%s%%\' OR', $search['value'] );
2189
+ }
2190
  }
2191
  $sql_search = ' AND ( ' . trim( $sql_search, 'OR' ) . ' ) ';
2192
  }
2307
 
2308
  $csv_file_name = 'votes_export.' . date( 'YmdHis' ) . '.csv';
2309
  $csv_header_array = array(
2310
+
2311
  __( 'Vote details', 'yop_poll' ),
 
 
2312
  __( 'Ip', 'yop_poll' ),
2313
  __( 'Vote date', 'yop_poll' ),
2314
+
2315
  );
2316
+
2317
  header( "Content-Type: text/csv" );
2318
  header( "Cache-Control: must-revalidate, post-check=0,pre-check=0" );
2319
  header( "Content-Transfer-Encoding: binary\n" );
2320
  header( 'Content-Disposition: attachment; filename="' . $csv_file_name . '"' );
2321
  ob_start();
2322
  $f = fopen( 'php://output', 'w' ) or show_error( __( "Can't open php://output!", 'yop_poll' ) );
2323
+ $custom=self::get_custom_field_by_poll_id( $data['poll_id'] );
2324
+ $custom_to_export=array();
2325
+ foreach($custom as $cust){
2326
+ array_push($csv_header_array,$cust['custom_field']);
2327
+ array_push($custom_to_export,$cust['ID']);
2328
+ }
2329
  if( ! fputcsv( $f, $csv_header_array ) ) {
2330
  _e( "Can't write header!", 'yop_poll' );
2331
  }
2332
+
2333
  if( $_REQUEST ['export'] != "all" ) {
2334
  $votes = array();
2335
 
2340
  foreach( $data['results'] as &$result ) {
2341
  $result['votes_details'] = json_decode( $result['result_details'], true );
2342
  foreach( $result['votes_details'] as $question ) {
2343
+ $vote_answer = "";
2344
  foreach( $question['answers'] as $answer ) {
2345
+ $vote_answer .= $answer . "\n";
2346
  }
2347
  $result['vote_answers'] .= $vote_answer . ".\n";
2348
  if( isset( $question['cf'] ) ) {
2349
  $custom_fields_details = "";
2350
  foreach( $question['cf'] as $cf_id ) {
2351
+ $custom_field_log = self::get_custom_field_log_by_id($cf_id);
2352
+ $custom_field = self::get_custom_field_by_id($custom_field_log[0]['custom_field_id']);
2353
+
2354
+ $custom_fields_details[$custom_field_log[0]['custom_field_id']]=$custom_field_log[0]['custom_field_value'];
2355
 
2356
  }
2357
+
2358
  $result['custom_fields'] = $custom_fields_details;
2359
 
2360
  }
2361
  }
2362
  }
2363
  foreach( $data['results'] as $detail ) {
2364
+
2365
  $votes[] = $detail['vote_answers'];
2366
+
 
2367
  $votes[] = $detail['ip'];
2368
  $votes[] = $detail['vote_date'];
2369
+
2370
+ foreach($custom_to_export as $export)
2371
+
2372
+ if(isset($detail['custom_fields'][$export]))
2373
+ $votes[] = $detail['custom_fields'][$export];
2374
+ else
2375
+ $votes[] = " ";
2376
  if( ! fputcsv( $f, $votes ) ) {
2377
  _e( "Can't write header!", 'yop_poll' );
2378
  }
2396
  if( isset( $question['cf'] ) ) {
2397
  $custom_fields_details = "";
2398
  foreach( $question['cf'] as $cf_id ) {
2399
+ $custom_field_log = self::get_custom_field_log_by_id($cf_id);
2400
+ $custom_field = self::get_custom_field_by_id($custom_field_log[0]['custom_field_id']);
2401
+ $custom_fields_details[$custom_field_log[0]['custom_field_id']]=$custom_field_log[0]['custom_field_value'];
2402
 
2403
  }
2404
  $result['custom_fields'] = $custom_fields_details;
2406
  }
2407
  }
2408
  }
2409
+
2410
  foreach( $data['results'] as $detail ) {
2411
+
2412
  $votes[] = $detail['vote_answers'];
 
 
2413
  $votes[] = $detail['ip'];
2414
  $votes[] = $detail['vote_date'];
2415
+
2416
+ foreach($custom_to_export as $export)
2417
+ if(isset($detail['custom_fields'][$export]))
2418
+ $votes[] = $detail['custom_fields'][$export];
2419
+ else
2420
+ $votes[] = " ";
2421
  if( ! fputcsv( $f, $votes ) ) {
2422
  _e( "Can't write header!", 'yop_poll' );
2423
  }
2845
 
2846
  return $result;
2847
  }
2848
+ public function get_custom_field_by_poll_id( $poll_id ) {
2849
+ global $wpdb;
2850
+ $result = $wpdb->get_results( $wpdb->prepare( "
2851
+ SELECT *
2852
+ FROM $wpdb->yop_poll_custom_fields
2853
+ WHERE poll_id = %d ORDER BY ID Asc
2854
+ ", $poll_id ), ARRAY_A );
2855
 
2856
+ return $result;
2857
+ }
2858
  public function yop_poll_get_results_by_poll_id( $poll_id ) {
2859
  global $wpdb;
2860
  $result = $wpdb->get_results( $wpdb->prepare( "
inc/pro_admin.php CHANGED
@@ -16,7 +16,14 @@ class YOP_POLL_Pro_Admin extends YOP_POLL_Abstract_Admin {
16
  protected function __construct() {
17
  parent::__construct( 'pro' );
18
  }
 
 
 
 
 
 
19
 
 
20
  public function manage_pages() {
21
  global $action;
22
  switch( $action ) {
16
  protected function __construct() {
17
  parent::__construct( 'pro' );
18
  }
19
+ public function yop_poll_help() {
20
+ $data = array();
21
+ $data['title'] = __yop_poll( "Help!" );
22
+ $data['REQUEST'] = $_REQUEST;
23
+ $data['poll_url'] =YOP_POLL_URL;
24
+ $this->display( 'help.html', $data );
25
 
26
+ }
27
  public function manage_pages() {
28
  global $action;
29
  switch( $action ) {
inc/public-admin.php CHANGED
@@ -188,7 +188,7 @@
188
 
189
 
190
 
191
- public function return_yop_poll( $id, $results, $tr_id = '', $offset = 0 ) {
192
  //$pro_options = get_option( 'yop_poll_pro_options' );
193
  $options = get_option( 'yop_poll_options' );
194
  require_once( YOP_POLL_MODELS . "poll_model.php" );
@@ -260,10 +260,13 @@
260
  if( $results ) {
261
  $yop_poll_model->vote = true;
262
  }
263
- $template = $yop_poll_model->return_poll_html( array( 'tr_id' => $tr_id,
264
- 'location' => 'page',
265
- 'load_css' => true, 'load_js' => true
266
- ) );
 
 
 
267
  $yop_poll_public_config = array(
268
  'poll_options' => array(
269
  'vote_permisions' => $yop_poll_model->vote_permisions,
@@ -333,9 +336,10 @@
333
  if( 'tabulated' == $question->display_results )
334
  $tabulate['results']=true;
335
  }
336
- wp_localize_script( 'yop-poll-public-js', 'tabulate', $tabulate );
337
 
338
  wp_enqueue_script( 'yop-poll-public-js', YOP_POLL_URL . "js/yop-poll-public.js", array( 'jquery' ), YOP_POLL_VERSION, true );
 
339
  wp_enqueue_script( 'yop-poll-supercookie-js', YOP_POLL_URL . "js/yop-poll-supercookie.js", array( 'jquery' ), YOP_POLL_VERSION, true );
340
  wp_enqueue_script( 'superCookie-min-js', YOP_POLL_URL . "js/super-cookie/superCookie-min.js", array( 'jquery' ), YOP_POLL_VERSION, true );
341
  wp_enqueue_script( 'swfobject-js', YOP_POLL_URL . "js/super-cookie/swfobject/swfobject.js", array( 'jquery' ), YOP_POLL_VERSION, true );
@@ -365,13 +369,15 @@
365
  }
366
 
367
  public function yop_poll_shortcode_function( $atts, $content = null ) {
 
368
  extract( shortcode_atts( array(
369
- 'id' => - 1,
370
- 'results' => 0,
371
- 'tr_id' => '',
372
- 'offset' => 0,
373
- ), $atts ) );
374
- return $this->return_yop_poll( $id, $results, $tr_id, $offset );
 
375
 
376
  }
377
 
188
 
189
 
190
 
191
+ public function return_yop_poll( $id, $results, $tr_id = '',$show_results="", $offset = 0 ) {
192
  //$pro_options = get_option( 'yop_poll_pro_options' );
193
  $options = get_option( 'yop_poll_options' );
194
  require_once( YOP_POLL_MODELS . "poll_model.php" );
260
  if( $results ) {
261
  $yop_poll_model->vote = true;
262
  }
263
+ $template = $yop_poll_model->return_poll_html( array( 'tr_id' => $tr_id,
264
+
265
+ 'location' => 'page',
266
+ 'load_css' => true,
267
+ 'load_js' => true ,
268
+ 'show_results'=>$show_results
269
+ ) );
270
  $yop_poll_public_config = array(
271
  'poll_options' => array(
272
  'vote_permisions' => $yop_poll_model->vote_permisions,
336
  if( 'tabulated' == $question->display_results )
337
  $tabulate['results']=true;
338
  }
339
+
340
 
341
  wp_enqueue_script( 'yop-poll-public-js', YOP_POLL_URL . "js/yop-poll-public.js", array( 'jquery' ), YOP_POLL_VERSION, true );
342
+ wp_localize_script( 'yop-poll-public-js', 'tabulate', $tabulate );
343
  wp_enqueue_script( 'yop-poll-supercookie-js', YOP_POLL_URL . "js/yop-poll-supercookie.js", array( 'jquery' ), YOP_POLL_VERSION, true );
344
  wp_enqueue_script( 'superCookie-min-js', YOP_POLL_URL . "js/super-cookie/superCookie-min.js", array( 'jquery' ), YOP_POLL_VERSION, true );
345
  wp_enqueue_script( 'swfobject-js', YOP_POLL_URL . "js/super-cookie/swfobject/swfobject.js", array( 'jquery' ), YOP_POLL_VERSION, true );
369
  }
370
 
371
  public function yop_poll_shortcode_function( $atts, $content = null ) {
372
+
373
  extract( shortcode_atts( array(
374
+ 'id' => - 1,
375
+ 'results' => 0,
376
+ 'tr_id' => '',
377
+ 'offset' => 0,
378
+ 'show_results'=>''
379
+ ), $atts ) );
380
+ return $this->return_yop_poll( $id, $results, $tr_id,$show_results, $offset );
381
 
382
  }
383
 
inc/templates_admin.php CHANGED
@@ -1 +1 @@
1
- <?php
2
  return 'html';
3
  private static $_instance = NULL;
4
  protected function __construct() {
5
  parent::__construct( 'templates' );
6
  }
7
  public static function get_instance() {
8
  if ( self::$_instance == NULL ){
9
  $class = __CLASS__;
10
  self::$_instance = new $class;
11
  }
12
  return self::$_instance;
13
  }
14
  public function manage_templates() {
15
  switch ( $GLOBALS['page'] ) {
16
  default:
17
  $this->manage_options();
18
  break;
19
  }
20
  }
21
  public function admin_loader() {
22
  $this->wp_ajax_action( 'yop_poll_add_new_template_config' );
23
  }
24
  public function manage_load_templates() {
25
  wp_enqueue_script( 'yop-poll-admin-templates-js', YOP_POLL_URL . "js/yop-poll-admin-templates.js", array( 'jquery' ), YOP_POLL_VERSION, true );
26
  wp_enqueue_style( 'yop-poll-timepicker', YOP_POLL_URL . "css/timepicker.css", array(), YOP_POLL_VERSION );
27
  wp_enqueue_style( 'yop-poll-jquery-ui', YOP_POLL_URL . "css/jquery-ui.css", array(), YOP_POLL_VERSION );
28
  }
29
  public function id_used_template($id){
30
  global $wpdb;
31
  $results = $wpdb->get_results( $wpdb->prepare( "
32
  foreach($results as $result){
33
  $meta=unserialize($result->meta_value);
34
  // yop_poll_dump($result );
35
  if($meta['template']==$id||$meta['widget']==$id){
36
  return false;
37
  }
38
  }
39
  return true;
40
  }
41
  private function manage_options() {
42
  global $page, $action, $message;
43
  switch ( $action ) {
44
  case "after-buy":
45
  YOP_POLL_Pro_Admin::after_buy();
46
  break;
47
  case "do-buy":
48
  YOP_POLL_Pro_Admin::do_buy();
49
  break;
50
  case 'add-new-template':
51
  {
52
  self:: view_add_edit_templates( 'add-new' );
53
  break;
54
  }
55
  case 'delete':
56
  {
57
  $message = $this->delete_templates( $_GET );
58
  $this->view_templates();
59
  break;
60
  }
61
  case 'clone':
62
  {
63
  $message = $this->clone_templates( $_POST );
64
  $this->view_templates();
65
  break;
66
  }
67
  case 'edit':
68
  {
69
  self:: view_add_edit_templates( 'edit' );
70
  break;
71
  }
72
  default: {
73
  $this->view_templates();
74
  break;
75
  }
76
  }
77
  }
78
  public function view_templates() {
79
  wp_enqueue_script( 'yop-poll-admin-js', YOP_POLL_URL . '/js/polls/yop-poll-admin.js', array(
80
  'jquery',
81
  'jquery-ui-datepicker'
82
  ), YOP_POLL_VERSION, true );
83
  wp_enqueue_style( 'yop-poll-slider-css', YOP_POLL_URL . 'css/yop-poll-slider.css', array(), YOP_POLL_VERSION );
84
  wp_enqueue_script( 'yop-poll-slider-js', YOP_POLL_URL . 'js/yop-poll-slider.js', array(
85
  'jquery',
86
  'jquery-ui-dialog'
87
  ), YOP_POLL_VERSION, true );
88
  global $wpdb, $message;
89
  global $page, $action, $orderby, $order, $current_user;
90
  $orderby = ( empty ( $GLOBALS['orderby'] ) ) ? 'name' : $GLOBALS['orderby'];
91
  $order = ( empty ( $GLOBALS['order'] ) ) ? 'desc' : $GLOBALS['order'];
92
  $data['per_page'] = ( isset ( $_REQUEST ['per_page'] ) ? intval( $_REQUEST ['per_page'] ) : 100 );
93
  $data['page_no'] = isset ( $_REQUEST ['page_no'] ) ? ( int )$_REQUEST ['page_no'] : 1;
94
  $order_fields = array( 'name', 'last_modified' );
95
  $data['title'] = __yop_poll( "Templates" );
96
  $data['REQUEST'] = $_REQUEST;
97
  $data['poll_url'] =YOP_POLL_URL;
98
  $data['orderby'] = ( empty ( $data['REQUEST']['orderby'] ) ) ? 'name' : $data['REQUEST']['orderby'];
99
  $data['order'] = ( empty ( $data['REQUEST']['order'] ) ) ? 'desc' : $data['REQUEST']['order'];
100
  $data['order_direction'] = $this->make_order_array( $order_fields, 'asc', $orderby, ( 'desc' == $order ) ? 'asc' : 'desc' );
101
  $data['order_sortable'] = $this->make_order_array( $order_fields, 'sortable', $orderby, 'sorted' );
102
  $data['order_direction_reverse'] = $this->make_order_array( $order_fields, 'desc', $orderby, ( 'desc' == $order ) ? 'desc' : 'asc' );
103
  $data['search'] = array( 'fields' => array( 'name', 'last_modified' ), 'value' => isset ( $_REQUEST['s'] ) ? $_REQUEST ['s'] : '' );
104
  $data['yop_poll_templates'] = Yop_Poll_Model::get_yop_poll_templates_search( $data['orderby'], $data['order'], $data['search'], $data['page_no'] - 1, $data['per_page'] );
105
  $data['total_templates'] = self::count_yop_poll_templates_search( $data['orderby'], $data['order'], $data['search'] );
106
  $data['message'] = array( 'error' => $message['error'], 'succes' => $message['success'] );
107
  $data['templates'] = YOP_POLL_MODEL::get_yop_poll_templates_search( 'id', 'desc' );
108
  $n = count( $data['templates'] );
109
  for( $i = 0; $i < $n; $i ++ ) {
110
  $data['templates'][$i]['preview'] = YOP_POLL_Poll_Model::return_template_preview_html( $data['templates'][$i]['id'] );
111
  }
112
  if ( intval( $data['page_no'] ) > intval( $data['total_templates'] ) ){
113
  $data['page_no'] = 1;
114
  }
115
  $args = array(
116
  'base' => remove_query_arg(
117
  'page_no',
118
  $_SERVER ['REQUEST_URI'] ) . '%_%',
119
  'format' => '&page_no=%#%',
120
  'current' => max( 1, $data['page_no'] ),
121
  'total' => ceil( $data['total_templates'] / $data['per_page'] ),
122
  'prev_next' => true,
123
  'prev_text' => __( '&laquo;' ),
124
  'next_text' => __( '&raquo;' )
125
  );
126
  $data['pagination'] = paginate_links( $args );
127
  $_SERVER ['REQUEST_URI'] = remove_query_arg( array( 'action' ), $_SERVER ['REQUEST_URI'] );
128
  $data['request']['uri'] = $_SERVER["REQUEST_URI"];
129
  $this->display( 'templates.html', $data );
130
  }
131
  private function view_add_edit_templates( $act ) {
132
  global $action, $current_user;
133
  add_filter( 'wp_default_editor', 'force_default_editor' );
134
  $data['title'] = __yop_poll( "Templates" );
135
  $data['page_name'] = __yop_poll( 'Add New Poll Template' );
136
  $data['action_type'] = $action;
137
  $data['template_id'] = '';
138
  if ( 'edit' == $data['action_type'] ){
139
  $data['template_id'] = ( isset ( $_GET ['id'] ) ? intval( $_GET ['id'] ) : 0 );
140
  }
141
  $data['current_template'] = self::get_poll_template_from_database_by_id( $data['template_id'] );
142
  $data['template_author_name'] = self::get_poll_template_field_from_database_by_id( 1 );
143
  $this->display( 'templates_add_edit.html', $data );
144
  }
145
  public static function count_yop_poll_templates_search( $orderby = 'last_modified', $order = 'desc', $search = array( 'fields' => array(), 'value' => NULL ) ) {
146
  global $wpdb;
147
  $sql = "SELECT COUNT(*) AS templates_no FROM " . $wpdb->yop_poll_templates;
148
  $sql_search = '';
149
  if ( count( $search['fields'] ) > 0 ){
150
  $sql_search .= ' ( ';
151
  foreach ( $search['fields'] as $field ) {
152
  $sql_search .= $wpdb->prepare( ' `' . $field . '` like \'%%%s%%\' OR', $search['value'] );
153
  }
154
  $sql_search = trim( $sql_search, 'OR' );
155
  $sql_search .= ' ) ';
156
  }
157
  if ( count( $search['fields'] ) > 0 ){
158
  $sql .= ' WHERE ' . $sql_search;
159
  }
160
  $sql .= ' ORDER BY ' . $orderby . ' ' . $order;
161
  $result = $wpdb->get_var( $sql );
162
  return $result;
163
  }
164
  private function delete_templates( $request ) {
165
  global $message;
166
  $message['success'] = "";
167
  $message['error'] = "";
168
  if ( isset ( $_REQUEST ['templatecheck'] ) ){
169
  $bulktemplates = ( array )$_REQUEST ['templatecheck'];
170
  foreach ( $bulktemplates as $template_id ) {
171
  $template_id = ( int )$template_id;
172
  $message = self::delete_template_from_db( $template_id );
173
  }
174
  return $message;
175
  }
176
  else {
177
  if( check_admin_referer('yop-poll-templates-add-edit-action', 'yop-poll-templates-add-edit-name') ) {
178
  if ( isset ( $_REQUEST ['id'] ) ){
179
  if(self::id_used_template( $_REQUEST ['id'])){
180
  self::delete_template_from_db( $_REQUEST['id'] );
181
  }
182
  else $message['error']='This template is used to display a poll';
183
  }
184
  }
185
  else {
186
  wp_die( __yop_poll('You do not have enough permission to add a template'));
187
  }
188
  }
189
  return $message;
190
  }
191
  private function delete_template_from_db( $template_id ) {
192
  global $wpdb;
193
  $response['success'] = "";
194
  $response['error'] = "";
195
  if( check_admin_referer('yop-poll-templates-add-edit-action', 'yop-poll-templates-add-edit-name') ) {
196
  if ( current_user_can( 'delete_own_yop_polls_templates' ) ){
197
  $sql = $wpdb->query( $wpdb->prepare( "
198
  $template_id ) );
199
  if ( $sql ){
200
  $response['success'] = __yop_poll( 'Template deleted' );
201
  }
202
  else {
203
  $response['error'] = __yop_poll( 'Could not delete template from database! Please try again!' );
204
  }
205
  }
206
  else {
207
  $response['error'] = __yop_poll( 'You do not have enough permission to delete a template' );
208
  }
209
  return $response;
210
  }
211
  else {
212
  wp_die( __yop_poll('You do not have enough permission to add a template'));
213
  }
214
  }
215
  private function clone_templates( $request ) {
216
  global $message;
217
  $message['success'] = "";
218
  $message['error'] = "";
219
  if ( isset ( $_REQUEST ['templatecheck'] ) ){
220
  $bulktemplates = ( array )$_REQUEST ['templatecheck'];
221
  foreach ( $bulktemplates as $template_id ) {
222
  $template_details = self::get_poll_template_from_database_by_id( $template_id );
223
  $clone_number = self::count_poll_template_from_database_like_name( $template_details['name'] . ' - clone' );
224
  if ( $template_details ){
225
  $template = array( 'name' => $template_details['name'] . ' - clone' . ( 0 == $clone_number ? '' : $clone_number ), 'before_vote_template' => $template_details['before_vote_template'], 'after_vote_template' => $template_details['after_vote_template'], 'before_start_date_template' => $template_details['before_start_date_template'], 'after_end_date_template' => $template_details['after_end_date_template'], 'css' => $template_details['css'], 'js' => $template_details['js'], 'status' => ( 'default' == $template_details['status'] ) ? 'other' : $template_details['status'], 'date_added' => NULL, 'last_modified' => NULL );
226
  $message = self::insert_poll_template_to_database( $template );
227
  }
228
  }
229
  $this->view_templates();
230
  }
231
  else {
232
  if ( isset ( $_REQUEST ['id'] ) ){
233
  $template_details = self::get_poll_template_from_database_by_id( $_REQUEST ['id'] );
234
  $clone_number = self::count_poll_template_from_database_like_name( $template_details['name'] . ' - clone' );
235
  if ( $template_details ){
236
  $template = array( 'name' => $template_details['name'] . ' - clone' . ( 0 == $clone_number ? '' : $clone_number ), 'before_vote_template' => $template_details['before_vote_template'], 'after_vote_template' => $template_details['after_vote_template'], 'before_start_date_template' => $template_details['before_start_date_template'], 'after_end_date_template' => $template_details['after_end_date_template'], 'css' => $template_details['css'], 'js' => $template_details['js'], 'status' => ( 'default' == $template_details['status'] ) ? 'other' : $template_details['status'], 'date_added' => NULL, 'last_modified' => NULL );
237
  return self::insert_poll_template_to_database( $template );
238
  }
239
  }
240
  $this->view_templates();
241
  }
242
  $this->view_templates();
243
  }
244
  private static function get_poll_template_from_database_by_id( $template_id = 0 ) {
245
  global $wpdb;
246
  $result = $wpdb->get_row( $wpdb->prepare( "
247
  return $result;
248
  }
249
  private static function count_poll_template_from_database_like_name( $template_name ) {
250
  global $wpdb;
251
  $result = $wpdb->get_var( $wpdb->prepare( "
252
  return $result;
253
  }
254
  private static function insert_poll_template_to_database( $template ) {
255
  $response['success'] = "";
256
  $response['error'] = "";
257
  global $wpdb;
258
  global $current_user;
259
  wp_get_current_user();
260
  if( check_admin_referer('yop-poll-templates-add-edit-action', 'yop-poll-templates-add-edit-name') ) {
261
  if ( current_user_can( 'clone_own_yop_polls_templates' ) ){
262
  $sql = $wpdb->query( $wpdb->prepare( "
263
  if ( $sql ){
264
  $response['success'] = __yop_poll( 'Template cloned!' );
265
  }
266
  else {
267
  $response['error'] = __yop_poll( 'Could not clone template from database! Please try again!' );
268
  }
269
  }
270
  else {
271
  $response['error'] = __yop_poll( 'You do not have enough permission to clone a template' );
272
  }
273
  return $response;
274
  }
275
  else {
276
  wp_die( __yop_poll( 'You do not have enough permission to add a template' ) );
277
  }
278
  }
279
  public function do_add_edit_template() {
280
  if ( 'add-new' == $_POST['action'] ){
281
  if ( ( !current_user_can( 'edit_yop_polls_templates' ) ) && ( !current_user_can( 'edit_yop_polls' ) ) ){
282
  wp_die( __yop_poll( 'You are not allowed to edit this item.' ) );
283
  }
284
  }
285
  self::save_template();
286
  }
287
  public function do_reset_template() {
288
  if ( ( !current_user_can( 'edit_yop_polls_templates' ) ) && ( !current_user_can( 'edit_yop_polls' ) ) ){
289
  wp_die( __yop_poll( 'You are not allowed to reset this item.' ) );
290
  }
291
  self::reset_template();
292
  }
293
  private static function reset_template() {
294
  $template['name'] = $_POST['yop_poll_template_name'];
295
  $template['before_vote_template'] = $_POST['yop-poll-before-vote-template-input'];
296
  $template['after_vote_template'] = $_POST['yop-poll-after-vote-template-input'];
297
  $template['before_start_date_template'] = $_POST['yop-poll-template-before-start-date-input'];
298
  $template['after_end_date_template'] = $_POST['yop-poll-template-after-end-date-input'];
299
  $template['css'] = $_POST['yop-poll-template-css-input'];
300
  $template['js'] = $_POST['yop-poll-template-js-input'];
301
  $template['status'] = "other";
302
  $template['id'] = $_POST['template_id'];
303
  $data['action'] = $_POST['action'];
304
  $data['name'] = $_POST['yop_poll_reset_template_id'];
305
  $result = self::add_update_templates_in_database( $data['action'], $data['name'], $template['name'] );
306
  if ( $result ){
307
  wp_die( __yop_poll( 'Template reseted!' ) );
308
  }
309
  else {
310
  wp_die( __yop_poll( 'Could not resete template in database! Please try again!' ) );
311
  }
312
  }
313
  private static function save_template() {
314
  $template['name'] = $_POST['yop_poll_template_name'];
315
  $template['before_vote_template'] = $_POST['yop-poll-before-vote-template-input'];
316
  $template['after_vote_template'] = $_POST['yop-poll-after-vote-template-input'];
317
  $template['before_start_date_template'] = $_POST['yop-poll-template-before-start-date-input'];
318
  $template['after_end_date_template'] = $_POST['yop-poll-template-after-end-date-input'];
319
  $template['css'] = $_POST['yop-poll-template-css-input'];
320
  $template['js'] = $_POST['yop-poll-template-js-input'];
321
  $template['status'] = "other";
322
  $template['id'] = $_POST['template_id'];
323
  if ( $_POST['action_type'] == "add-new-template" ){
324
  if ( $template['name'] != "" ){
325
  $result = self::get_poll_template_from_database_by_name( $template['name'] );
326
  if ( $result ){
327
  wp_die( __yop_poll( 'This template already exists! Please choose another name!' ) );
328
  }
329
  }
330
  else {
331
  wp_die( __yop_poll( 'Please enter a template name!' ) );
332
  }
333
  $result = self:: insert_poll_template_to_database( $template );
334
  if ( $result ){
335
  wp_die( __yop_poll( 'Template added!' ) );
336
  }
337
  else {
338
  wp_die( __yop_poll( 'Could not add template in database! Please try again!' ) );
339
  }
340
  }
341
  else {
342
  if ( $_POST['action_type'] == "edit" ){
343
  if ( $template['name'] == "" ){
344
  wp_die( __yop_poll( 'Please enter a template name!' ) );
345
  }
346
  else {
347
  $result = self:: update_poll_template_in_database( $template );
348
  if ( $result ){
349
  wp_die( __yop_poll( 'Template edited!' ) );
350
  }
351
  else {
352
  wp_die( __yop_poll( 'Could not edit template in database! Please try again!' ) );
353
  }
354
  }
355
  }
356
  }
357
  }
358
  private static function get_poll_template_field_from_database_by_id( $template_id ) {
359
  global $wpdb;
360
  $result = $wpdb->get_row( $wpdb->prepare( "
361
  return $result;
362
  }
363
  private static function get_poll_template_from_database_by_name( $template_name ) {
364
  global $wpdb;
365
  $sql = $wpdb->query( $wpdb->prepare( "
366
  return $sql;
367
  }
368
  private static function update_poll_template_in_database( $template ) {
369
  global $wpdb;
370
  $sql = $wpdb->query( $wpdb->prepare( "
371
  return $sql;
372
  }
373
  private static function add_update_templates_in_database( $action = 'add', $template_name, $template_to_reset ) {
374
  global $wpdb;
375
  global $current_user;
376
  wp_get_current_user();
377
  $sql = "UPDATE `" . $wpdb->yop_poll_templates . "` SET ";
378
  $before_vote_template = <<<NOWDOC
379
  class = "yop-poll-question-%POLL-ID%">%POLL-QUESTION%</div>
380
  [ANSWER_DESCRIPTION_CONTAINER]
381
  <span class = "yop-poll-description-%POLL-ID%">%ANSWER-DESCRIPTION%</span>
382
  [/ANSWER_DESCRIPTION_CONTAINER]
383
  [ANSWER_RESULT_CONTAINER]
384
  [/ANSWER_RESULT_CONTAINER]
385
  class = "yop-poll-results-text-%POLL-ID%">%POLL-ANSWER-RESULT-LABEL%</span>
386
  $after_vote_template = <<<NOWDOC
387
  class = "yop-poll-question-%POLL-ID%">%POLL-QUESTION%</div>
388
  [ANSWER_DESCRIPTION_CONTAINER]
389
  <span class = "yop-poll-description-%POLL-ID%">%ANSWER-DESCRIPTION%</span>
390
  [/ANSWER_DESCRIPTION_CONTAINER]
391
  class = "pds-feedback-result-%POLL-ID%">
392
  <div>
393
  %POLL-ANSWER-RESULT-BAR%
394
  </div>
395
  $after_vote_template = addslashes( $after_vote_template );
396
  $before_start_date_template = <<<NOWDOC
397
  start on %POLL-START-DATE%<br>
398
  $before_start_date_template = addslashes( $before_start_date_template );
399
  $after_end_date_template = <<<NOWDOC
400
  class = "yop-poll-question-%POLL-ID%">%POLL-QUESTION%</div>
401
  [ANSWER_DESCRIPTION_CONTAINER]
402
  <span class = "yop-poll-description-%POLL-ID%">%ANSWER-DESCRIPTION%</span>
403
  [/ANSWER_DESCRIPTION_CONTAINER]
404
  class = "pds-feedback-result-%POLL-ID%">
405
  <div>
406
  %POLL-ANSWER-RESULT-BAR%
407
  </div>
408
  $after_end_date_template = addslashes( $after_end_date_template );
409
  $js = <<<NOWDOC
410
  $js = addslashes( $js );
411
  $css = "";
412
  switch( $template_name ) {
413
  case 'White':
414
  { //White
415
  $css = <<<NOWDOC
416
  margin-top: -37px;
417
  text-align:center;
418
  text-align:center;
419
  break;
420
  }
421
  case 'Grey':
422
  { //Grey
423
  $css = <<<NOWDOC
424
  margin-bottom: 35px;
425
  margin-top: -37px;
426
  text-align:center;
427
  margin-bottom:20px;
428
  text-align:center;
429
  text-align:center;
430
  break;
431
  }
432
  case 'Dark':
433
  { //Dark
434
  $css = <<<NOWDOC
435
  margin-top: -37px;
436
  text-align:center;
437
  text-align:center;
438
  break;
439
  }
440
  case 'Blue v1':
441
  { //Blue v1
442
  $css = <<<NOWDOC
443
  margin-bottom: 35px;
444
  margin-top: -39px;
445
  text-align:center;
446
  text-align:center;
447
  break;
448
  }
449
  case 'Blue v2':
450
  { //Blue v2
451
  $css = <<<NOWDOC
452
  margin-top: -52px;
453
  padding:5px;
454
  text-align:center;
455
  text-align:center;
456
  break;
457
  }
458
  case 'Blue v3':
459
  { //Blue v3
460
  $css = <<<NOWDOC
461
  margin-top: -52px;
462
  text-align:center;
463
  text-align:center;
464
  break;
465
  }
466
  case 'Red v1':
467
  { //Red v1
468
  $css = <<<NOWDOC
469
  margin-bottom: 35px;
470
  margin-top: -47px;
471
  text-align:center;
472
  text-align:center;
473
  break;
474
  }
475
  case 'Red v2':
476
  { //Red v2
477
  $css = <<<NOWDOC
478
  margin-bottom: 35px;
479
  margin-top: -39px;
480
  margin-bottom:20px;
481
  text-align:center;
482
  text-align:center;
483
  break;
484
  }
485
  case 'Red v3':
486
  { //Red v3
487
  $css = <<<NOWDOC
488
  margin-bottom: 35px;
489
  margin-top: -39px;
490
  text-align:center;
491
  text-align:center;
492
  break;
493
  }
494
  case 'Green v1':
495
  { //Green v1
496
  $css = <<<NOWDOC
497
  margin-bottom: 35px;
498
  margin-top: -31px;
499
  text-align:center;
500
  text-align:center;
501
  break;
502
  }
503
  case 'Green v2':
504
  { //Green v2
505
  $css = <<<NOWDOC
506
  margin-bottom: 35px;
507
  margin-top: -21px;
508
  text-align:center;
509
  text-align:center;
510
  break;
511
  }
512
  case 'Green v3':
513
  { //Green v3
514
  $css = <<<NOWDOC
515
  margin-bottom: 35px;
516
  margin-top: -39px;
517
  text-align:center;
518
  text-align:center;
519
  break;
520
  }
521
  case 'Orange v1':
522
  { //Orange v1
523
  $css = <<<NOWDOC
524
  margin-bottom: 35px;
525
  margin-top: -31px;
526
  text-align:center;
527
  margin-bottom:20px;
528
  text-align:center;
529
  break;
530
  }
531
  case 'Orange v2':
532
  { //Orange v2
533
  $css = <<<NOWDOC
534
  margin-bottom: 35px;
535
  margin-top: -35px;
536
  text-align:center;
537
  text-align:center;
538
  break;
539
  }
540
  case 'Orange v3':
541
  { //Orange v3
542
  $css = <<<NOWDOC
543
  margin-bottom: 35px;
544
  margin-top: -46px;
545
  text-align:center;
546
  text-align:center;
547
  break;
548
  }
549
  }
550
  $css.= "#yop-poll-container-%POLL-ID% img {
551
  max-width: %POLL-WIDTH%;
552
  $css = addslashes($css);
553
  $before_vote_template = addslashes( $before_vote_template );
554
  $sql .= "`before_vote_template` = '{$before_vote_template}',
555
  $sql .= $wpdb->prepare( ' WHERE name = %s', $template_to_reset );
556
  return $wpdb->query( $sql );
557
  }
 
558
  private static $_instance = NULL;
559
  protected function __construct() {
560
  parent::__construct( 'templates' );
561
  }
562
  public static function get_instance() {
563
  if ( self::$_instance == NULL ){
564
  $class = __CLASS__;
565
  self::$_instance = new $class;
566
  }
567
  return self::$_instance;
568
  }
569
  public function manage_templates() {
570
  switch ( $GLOBALS['page'] ) {
571
  default:
572
  $this->manage_options();
573
  break;
574
  }
575
  }
576
  public function admin_loader() {
577
  $this->wp_ajax_action( 'yop_poll_add_new_template_config' );
578
  }
579
  public function manage_load_templates() {
580
  wp_enqueue_script( 'yop-poll-admin-templates-js', YOP_POLL_URL . "js/yop-poll-admin-templates.js", array( 'jquery' ), YOP_POLL_VERSION, true );
581
  wp_enqueue_style( 'yop-poll-timepicker', YOP_POLL_URL . "css/timepicker.css", array(), YOP_POLL_VERSION );
582
  wp_enqueue_style( 'yop-poll-jquery-ui', YOP_POLL_URL . "css/jquery-ui.css", array(), YOP_POLL_VERSION );
583
  }
584
  public function id_used_template($id){
585
  global $wpdb;
586
  $results = $wpdb->get_results( $wpdb->prepare( "
587
  foreach($results as $result){
588
  $meta=unserialize($result->meta_value);
589
  // yop_poll_dump($result );
590
  if($meta['template']==$id||$meta['widget']==$id){
591
  return false;
592
  }
593
  }
594
  return true;
595
  }
596
  private function manage_options() {
597
  global $page, $action, $message;
598
  switch ( $action ) {
599
  case "after-buy":
600
  YOP_POLL_Pro_Admin::after_buy();
601
  break;
602
  case "do-buy":
603
  YOP_POLL_Pro_Admin::do_buy();
604
  break;
605
  case 'add-new-template':
606
  {
607
  self:: view_add_edit_templates( 'add-new' );
608
  break;
609
  }
610
  case 'delete':
611
  {
612
  $message = $this->delete_templates( $_GET );
613
  $this->view_templates();
614
  break;
615
  }
616
  case 'clone':
617
  {
618
  $message = $this->clone_templates( $_POST );
619
  $this->view_templates();
620
  break;
621
  }
622
  case 'edit':
623
  {
624
  self:: view_add_edit_templates( 'edit' );
625
  break;
626
  }
627
  default: {
628
  $this->view_templates();
629
  break;
630
  }
631
  }
632
  }
633
  public function view_templates() {
634
  wp_enqueue_script( 'yop-poll-admin-js', YOP_POLL_URL . '/js/polls/yop-poll-admin.js', array(
635
  'jquery',
636
  'jquery-ui-datepicker'
637
  ), YOP_POLL_VERSION, true );
638
  wp_enqueue_style( 'yop-poll-slider-css', YOP_POLL_URL . 'css/yop-poll-slider.css', array(), YOP_POLL_VERSION );
639
  wp_enqueue_script( 'yop-poll-slider-js', YOP_POLL_URL . 'js/yop-poll-slider.js', array(
640
  'jquery',
641
  'jquery-ui-dialog'
642
  ), YOP_POLL_VERSION, true );
643
  global $wpdb, $message;
644
  global $page, $action, $orderby, $order, $current_user;
645
  $orderby = ( empty ( $GLOBALS['orderby'] ) ) ? 'name' : $GLOBALS['orderby'];
646
  $order = ( empty ( $GLOBALS['order'] ) ) ? 'desc' : $GLOBALS['order'];
647
  $data['per_page'] = ( isset ( $_REQUEST ['per_page'] ) ? intval( $_REQUEST ['per_page'] ) : 100 );
648
  $data['page_no'] = isset ( $_REQUEST ['page_no'] ) ? ( int )$_REQUEST ['page_no'] : 1;
649
  $order_fields = array( 'name', 'last_modified' );
650
  $data['title'] = __yop_poll( "Templates" );
651
  $data['REQUEST'] = $_REQUEST;
652
  $data['poll_url'] =YOP_POLL_URL;
653
  $data['orderby'] = ( empty ( $data['REQUEST']['orderby'] ) ) ? 'name' : $data['REQUEST']['orderby'];
654
  $data['order'] = ( empty ( $data['REQUEST']['order'] ) ) ? 'desc' : $data['REQUEST']['order'];
655
  $data['order_direction'] = $this->make_order_array( $order_fields, 'asc', $orderby, ( 'desc' == $order ) ? 'asc' : 'desc' );
656
  $data['order_sortable'] = $this->make_order_array( $order_fields, 'sortable', $orderby, 'sorted' );
657
  $data['order_direction_reverse'] = $this->make_order_array( $order_fields, 'desc', $orderby, ( 'desc' == $order ) ? 'desc' : 'asc' );
658
  $data['search'] = array( 'fields' => array( 'name', 'last_modified' ), 'value' => isset ( $_REQUEST['s'] ) ? $_REQUEST ['s'] : '' );
659
  $data['yop_poll_templates'] = Yop_Poll_Model::get_yop_poll_templates_search( $data['orderby'], $data['order'], $data['search'], $data['page_no'] - 1, $data['per_page'] );
660
  $data['total_templates'] = self::count_yop_poll_templates_search( $data['orderby'], $data['order'], $data['search'] );
661
  $data['message'] = array( 'error' => $message['error'], 'succes' => $message['success'] );
662
  $data['templates'] = YOP_POLL_MODEL::get_yop_poll_templates_search( 'id', 'desc' );
663
  $n = count( $data['templates'] );
664
  for( $i = 0; $i < $n; $i ++ ) {
665
  $data['templates'][$i]['preview'] = YOP_POLL_Poll_Model::return_template_preview_html( $data['templates'][$i]['id'] );
666
  }
667
  if ( intval( $data['page_no'] ) > intval( $data['total_templates'] ) ){
668
  $data['page_no'] = 1;
669
  }
670
  $args = array(
671
  'base' => remove_query_arg(
672
  'page_no',
673
  $_SERVER ['REQUEST_URI'] ) . '%_%',
674
  'format' => '&page_no=%#%',
675
  'current' => max( 1, $data['page_no'] ),
676
  'total' => ceil( $data['total_templates'] / $data['per_page'] ),
677
  'prev_next' => true,
678
  'prev_text' => __( '&laquo;' ),
679
  'next_text' => __( '&raquo;' )
680
  );
681
  $data['pagination'] = paginate_links( $args );
682
  $_SERVER ['REQUEST_URI'] = remove_query_arg( array( 'action' ), $_SERVER ['REQUEST_URI'] );
683
  $data['request']['uri'] = $_SERVER["REQUEST_URI"];
684
  $this->display( 'templates.html', $data );
685
  }
686
  private function view_add_edit_templates( $act ) {
687
  global $action, $current_user;
688
  add_filter( 'wp_default_editor', 'force_default_editor' );
689
  $data['title'] = __yop_poll( "Templates" );
690
  $data['page_name'] = __yop_poll( "Add New Poll Template" );
691
  $data['action_type'] = $action;
692
  $data['template_id'] = '';
693
  if ( 'edit' == $data['action_type'] ){
694
  $data['template_id'] = ( isset ( $_GET ['id'] ) ? intval( $_GET ['id'] ) : 0 );
695
  }
696
  $data['current_template'] = self::get_poll_template_from_database_by_id( $data['template_id'] );
697
  $data['template_author_name'] = self::get_poll_template_field_from_database_by_id( 1 );
698
  $this->display( 'templates_add_edit.html', $data );
699
  }
700
  public static function count_yop_poll_templates_search( $orderby = 'last_modified', $order = 'desc', $search = array( 'fields' => array(), 'value' => NULL ) ) {
701
  global $wpdb;
702
  $sql = "SELECT COUNT(*) AS templates_no FROM " . $wpdb->yop_poll_templates;
703
  $sql_search = '';
704
  if ( count( $search['fields'] ) > 0 ){
705
  $sql_search .= ' ( ';
706
  foreach ( $search['fields'] as $field ) {
707
  $sql_search .= $wpdb->prepare( ' `' . $field . '` like \'%%%s%%\' OR', $search['value'] );
708
  }
709
  $sql_search = trim( $sql_search, 'OR' );
710
  $sql_search .= ' ) ';
711
  }
712
  if ( count( $search['fields'] ) > 0 ){
713
  $sql .= ' WHERE ' . $sql_search;
714
  }
715
  $sql .= ' ORDER BY ' . $orderby . ' ' . $order;
716
  $result = $wpdb->get_var( $sql );
717
  return $result;
718
  }
719
  private function delete_templates( $request ) {
720
  global $message;
721
  $message['success'] = "";
722
  $message['error'] = "";
723
  if ( isset ( $_REQUEST ['templatecheck'] ) ){
724
  $bulktemplates = ( array )$_REQUEST ['templatecheck'];
725
  foreach ( $bulktemplates as $template_id ) {
726
  $template_id = ( int )$template_id;
727
  $message = self::delete_template_from_db( $template_id );
728
  }
729
  return $message;
730
  }
731
  else {
732
  if( check_admin_referer('yop-poll-templates-add-edit-action', 'yop-poll-templates-add-edit-name') ) {
733
  if ( isset ( $_REQUEST ['id'] ) ){
734
  if(self::id_used_template( $_REQUEST ['id'])){
735
  self::delete_template_from_db( $_REQUEST['id'] );
736
  }
737
  else $message['error']='This template is used to display a poll';
738
  }
739
  }
740
  else {
741
  wp_die( __yop_poll('You do not have enough permission to add a template'));
742
  }
743
  }
744
  return $message;
745
  }
746
  private function delete_template_from_db( $template_id ) {
747
  global $wpdb;
748
  $response['success'] = "";
749
  $response['error'] = "";
750
  if( check_admin_referer('yop-poll-templates-add-edit-action', 'yop-poll-templates-add-edit-name') ) {
751
  if ( current_user_can( 'delete_own_yop_polls_templates' ) ){
752
  $sql = $wpdb->query( $wpdb->prepare( "
753
  $template_id ) );
754
  if ( $sql ){
755
  $response['success'] = __yop_poll( 'Template deleted' );
756
  }
757
  else {
758
  $response['error'] = __yop_poll( 'Could not delete template from database! Please try again!' );
759
  }
760
  }
761
  else {
762
  $response['error'] = __yop_poll( 'You do not have enough permission to delete a template' );
763
  }
764
  return $response;
765
  }
766
  else {
767
  wp_die( __yop_poll('You do not have enough permission to add a template'));
768
  }
769
  }
770
  private function clone_templates( $request ) {
771
  global $message;
772
  $message['success'] = "";
773
  $message['error'] = "";
774
  if ( isset ( $_REQUEST ['templatecheck'] ) ){
775
  $bulktemplates = ( array )$_REQUEST ['templatecheck'];
776
  foreach ( $bulktemplates as $template_id ) {
777
  $template_details = self::get_poll_template_from_database_by_id( $template_id );
778
  $clone_number = self::count_poll_template_from_database_like_name( $template_details['name'] . ' - clone' );
779
  if ( $template_details ){
780
  $template = array( 'name' => $template_details['name'] . ' - clone' . ( 0 == $clone_number ? '' : $clone_number ), 'before_vote_template' => $template_details['before_vote_template'], 'after_vote_template' => $template_details['after_vote_template'], 'before_start_date_template' => $template_details['before_start_date_template'], 'after_end_date_template' => $template_details['after_end_date_template'], 'css' => $template_details['css'], 'js' => $template_details['js'], 'status' => ( 'default' == $template_details['status'] ) ? 'other' : $template_details['status'], 'date_added' => NULL, 'last_modified' => NULL );
781
  $message = self::insert_poll_template_to_database( $template );
782
  }
783
  }
784
  $this->view_templates();
785
  }
786
  else {
787
  if ( isset ( $_REQUEST ['id'] ) ){
788
  $template_details = self::get_poll_template_from_database_by_id( $_REQUEST ['id'] );
789
  $clone_number = self::count_poll_template_from_database_like_name( $template_details['name'] . ' - clone' );
790
  if ( $template_details ){
791
  $template = array( 'name' => $template_details['name'] . ' - clone' . ( 0 == $clone_number ? '' : $clone_number ), 'before_vote_template' => $template_details['before_vote_template'], 'after_vote_template' => $template_details['after_vote_template'], 'before_start_date_template' => $template_details['before_start_date_template'], 'after_end_date_template' => $template_details['after_end_date_template'], 'css' => $template_details['css'], 'js' => $template_details['js'], 'status' => ( 'default' == $template_details['status'] ) ? 'other' : $template_details['status'], 'date_added' => NULL, 'last_modified' => NULL );
792
  return self::insert_poll_template_to_database( $template );
793
  }
794
  }
795
  $this->view_templates();
796
  }
797
  $this->view_templates();
798
  }
799
  private static function get_poll_template_from_database_by_id( $template_id = 0 ) {
800
  global $wpdb;
801
  $result = $wpdb->get_row( $wpdb->prepare( "
802
  return $result;
803
  }
804
  private static function count_poll_template_from_database_like_name( $template_name ) {
805
  global $wpdb;
806
  $result = $wpdb->get_var( $wpdb->prepare( "
807
  return $result;
808
  }
809
  private static function insert_poll_template_to_database( $template ) {
810
  $response['success'] = "";
811
  $response['error'] = "";
812
  global $wpdb;
813
  global $current_user;
814
  wp_get_current_user();
815
  if( check_admin_referer('yop-poll-templates-add-edit-action', 'yop-poll-templates-add-edit-name') ) {
816
  if ( current_user_can( 'clone_own_yop_polls_templates' ) ){
817
  $sql = $wpdb->query( $wpdb->prepare( "
818
  if ( $sql ){
819
  $response['success'] = __yop_poll( 'Template cloned!' );
820
  }
821
  else {
822
  $response['error'] = __yop_poll( 'Could not clone template from database! Please try again!' );
823
  }
824
  }
825
  else {
826
  $response['error'] = __yop_poll( 'You do not have enough permission to clone a template' );
827
  }
828
  return $response;
829
  }
830
  else {
831
  wp_die( __yop_poll( 'You do not have enough permission to add a template' ) );
832
  }
833
  }
834
  public function do_add_edit_template() {
835
  if ( 'add-new' == $_POST['action'] ){
836
  if ( ( !current_user_can( 'edit_yop_polls_templates' ) ) && ( !current_user_can( 'edit_yop_polls' ) ) ){
837
  wp_die( __yop_poll( 'You are not allowed to edit this item.' ) );
838
  }
839
  }
840
  self::save_template();
841
  }
842
  public function do_reset_template() {
843
  if ( ( !current_user_can( 'edit_yop_polls_templates' ) ) && ( !current_user_can( 'edit_yop_polls' ) ) ){
844
  wp_die( __yop_poll( 'You are not allowed to reset this item.' ) );
845
  }
846
  self::reset_template();
847
  }
848
  private static function reset_template() {
849
  $template['name'] = $_POST['yop_poll_template_name'];
850
  $template['before_vote_template'] = $_POST['yop-poll-before-vote-template-input'];
851
  $template['after_vote_template'] = $_POST['yop-poll-after-vote-template-input'];
852
  $template['before_start_date_template'] = $_POST['yop-poll-template-before-start-date-input'];
853
  $template['after_end_date_template'] = $_POST['yop-poll-template-after-end-date-input'];
854
  $template['css'] = $_POST['yop-poll-template-css-input'];
855
  $template['js'] = $_POST['yop-poll-template-js-input'];
856
  $template['status'] = "other";
857
  $template['id'] = $_POST['template_id'];
858
  $data['action'] = $_POST['action'];
859
  $data['name'] = $_POST['yop_poll_reset_template_id'];
860
  $result = self::add_update_templates_in_database( $data['action'], $data['name'], $template['name'] );
861
  if ( $result ){
862
  wp_die( __yop_poll( 'Template reseted!' ) );
863
  }
864
  else {
865
  wp_die( __yop_poll( 'Could not resete template in database! Please try again!' ) );
866
  }
867
  }
868
  private static function save_template() {
869
  $template['name'] = $_POST['yop_poll_template_name'];
870
  $template['before_vote_template'] = $_POST['yop-poll-before-vote-template-input'];
871
  $template['after_vote_template'] = $_POST['yop-poll-after-vote-template-input'];
872
  $template['before_start_date_template'] = $_POST['yop-poll-template-before-start-date-input'];
873
  $template['after_end_date_template'] = $_POST['yop-poll-template-after-end-date-input'];
874
  $template['css'] = $_POST['yop-poll-template-css-input'];
875
  $template['js'] = $_POST['yop-poll-template-js-input'];
876
  $template['status'] = "other";
877
  $template['id'] = $_POST['template_id'];
878
  if ( $_POST['action_type'] == "add-new-template" ){
879
  if ( $template['name'] != "" ){
880
  $result = self::get_poll_template_from_database_by_name( $template['name'] );
881
  if ( $result ){
882
  wp_die( __yop_poll( 'This template already exists! Please choose another name!' ) );
883
  }
884
  }
885
  else {
886
  wp_die( __yop_poll( 'Please enter a template name!' ) );
887
  }
888
  $result = self:: insert_poll_template_to_database( $template );
889
  if ( $result ){
890
  wp_die( __yop_poll( 'Template added!' ) );
891
  }
892
  else {
893
  wp_die( __yop_poll( 'Could not add template in database! Please try again!' ) );
894
  }
895
  }
896
  else {
897
  if ( $_POST['action_type'] == "edit" ){
898
  if ( $template['name'] == "" ){
899
  wp_die( __yop_poll( 'Please enter a template name!' ) );
900
  }
901
  else {
902
  $result = self:: update_poll_template_in_database( $template );
903
  if ( $result ){
904
  wp_die( __yop_poll( 'Template edited!' ) );
905
  }
906
  else {
907
  wp_die( __yop_poll( 'Could not edit template in database! Please try again!' ) );
908
  }
909
  }
910
  }
911
  }
912
  }
913
  private static function get_poll_template_field_from_database_by_id( $template_id ) {
914
  global $wpdb;
915
  $result = $wpdb->get_row( $wpdb->prepare( "
916
  return $result;
917
  }
918
  private static function get_poll_template_from_database_by_name( $template_name ) {
919
  global $wpdb;
920
  $sql = $wpdb->query( $wpdb->prepare( "
921
  return $sql;
922
  }
923
  private static function update_poll_template_in_database( $template ) {
924
  global $wpdb;
925
  $sql = $wpdb->query( $wpdb->prepare( "
926
  return $sql;
927
  }
928
  private static function add_update_templates_in_database( $action = 'add', $template_name, $template_to_reset ) {
929
  global $wpdb;
930
  global $current_user;
931
  wp_get_current_user();
932
  $sql = "UPDATE `" . $wpdb->yop_poll_templates . "` SET ";
933
  $before_vote_template = <<<NOWDOC
934
  class = "yop-poll-question-%POLL-ID%">%POLL-QUESTION%</div>
935
  [ANSWER_DESCRIPTION_CONTAINER]
936
  <span class = "yop-poll-description-%POLL-ID%">%ANSWER-DESCRIPTION%</span>
937
  [/ANSWER_DESCRIPTION_CONTAINER]
938
  [ANSWER_RESULT_CONTAINER]
939
  [/ANSWER_RESULT_CONTAINER]
940
  class = "yop-poll-results-text-%POLL-ID%">%POLL-ANSWER-RESULT-LABEL%</span>
941
  $after_vote_template = <<<NOWDOC
942
  class = "yop-poll-question-%POLL-ID%">%POLL-QUESTION%</div>
943
  [ANSWER_DESCRIPTION_CONTAINER]
944
  <span class = "yop-poll-description-%POLL-ID%">%ANSWER-DESCRIPTION%</span>
945
  [/ANSWER_DESCRIPTION_CONTAINER]
946
  class = "pds-feedback-result-%POLL-ID%">
947
  <div>
948
  %POLL-ANSWER-RESULT-BAR%
949
  </div>
950
  $after_vote_template = addslashes( $after_vote_template );
951
  $before_start_date_template = <<<NOWDOC
952
  start on %POLL-START-DATE%<br>
953
  $before_start_date_template = addslashes( $before_start_date_template );
954
  $after_end_date_template = <<<NOWDOC
955
  class = "yop-poll-question-%POLL-ID%">%POLL-QUESTION%</div>
956
  [ANSWER_DESCRIPTION_CONTAINER]
957
  <span class = "yop-poll-description-%POLL-ID%">%ANSWER-DESCRIPTION%</span>
958
  [/ANSWER_DESCRIPTION_CONTAINER]
959
  class = "pds-feedback-result-%POLL-ID%">
960
  <div>
961
  %POLL-ANSWER-RESULT-BAR%
962
  </div>
963
  $after_end_date_template = addslashes( $after_end_date_template );
964
  $js = <<<NOWDOC
965
  jQuery('.yop-poll-forms').removeClass('yop-poll-forms-display');
966
  findWidest = typeof findWidest !== "undefined" ? findWidest : false;
967
  var quest=0;
968
  if ( findWidest ) {
969
  obj.each(function() {
970
  var thisWidth = jQuery(this).width();
971
  width = parseInt(thisWidth / cols);
972
  jQuery(this).width(width);
973
  jQuery(this).css("float", "left");
974
  });
975
  }
976
  else {
977
  var widest = 0;
978
  var count = 0;
979
  var poz_each_question=0;
980
  obj.each(function() {
981
  count++;
982
  cols[quest][2]=(jQuery('#yop-poll-answers-%POLL-ID%-'+ cols[quest][3] +' li').length);
983
  var thisWidth = jQuery(this).width();
984
  if(thisWidth > widest) {
985
  widest = thisWidth;
986
  }
987
  if(count<cols[quest][2])
988
  { width = parseInt( %POLL-WIDTH% / cols[quest][0]);
989
  if(cols[quest][0]==1)
990
  jQuery(".yop-poll-li-answer-%POLL-ID%-"+cols[quest][3]).css("width","100%");
991
  else
992
  jQuery(".yop-poll-li-answer-%POLL-ID%-"+cols[quest][3]).width(width-20);
993
  jQuery(".yop-poll-li-answer-%POLL-ID%-"+cols[quest][3]).css("float", "left");
994
  }
995
  else
996
  {
997
  count=0;
998
  width = parseInt( %POLL-WIDTH% / cols[quest][0]);
999
  jQuery(".yop-poll-li-answer-%POLL-ID%-"+cols[quest][3]).width(width-20);
1000
  jQuery(".yop-poll-li-answer-%POLL-ID%-"+cols[quest][3]).css("float", "left");
1001
  quest++;
1002
  }
1003
  });
1004
  findWidest = typeof findWidest !== "undefined" ? findWidest : false;
1005
  var quest=0;
1006
  if ( findWidest ) {
1007
  obj.each(function() {
1008
  var thisWidth = jQuery(this).width();
1009
  width = parseInt(thisWidth / cols);
1010
  jQuery(this).width(width);
1011
  jQuery(this).css("float", "left");
1012
  });
1013
  }
1014
  else {
1015
  var widest = 0;
1016
  var count = 0;
1017
  var poz_each_question=0;
1018
  obj.each(function() {
1019
  count++;
1020
  cols[quest][2]=(jQuery('#yop-poll-answers-%POLL-ID%-'+ cols[quest][3] +' li').length);
1021
  var thisWidth = jQuery(this).width();
1022
  if(thisWidth > widest) {
1023
  widest = thisWidth;
1024
  }
1025
  if(count<cols[quest][2])
1026
  { width = parseInt( %POLL-WIDTH% / cols[quest][1]);
1027
  jQuery(".yop-poll-li-result-%POLL-ID%-"+cols[quest][3]).width(width-20);
1028
  jQuery(".yop-poll-li-result-%POLL-ID%-"+cols[quest][3]).css("float", "left");
1029
  }
1030
  else
1031
  {
1032
  count=0;
1033
  width = parseInt( %POLL-WIDTH% / cols[quest][1]);
1034
  jQuery(".yop-poll-li-result-%POLL-ID%-"+cols[quest][3]).width(width-20);
1035
  jQuery(".yop-poll-li-result-%POLL-ID%-"+cols[quest][3]).css("float", "left");
1036
  quest++;
1037
  }
1038
  });
1039
  $js = addslashes( $js );
1040
  $css = "";
1041
  switch( $template_name ) {
1042
  case 'White':
1043
  { //White
1044
  $css = <<<NOWDOC
1045
  Main Container
1046
  ---------------------------------------------------------------------------
1047
  border:1px solid #000000;
1048
  color:#000000;
1049
  color:#000000;
1050
  background:#fff;
1051
  box-sizing: border-box;
1052
  color: #555;
1053
  display: inline-block;
1054
  font-size: 14px;
1055
  padding: 10px;
1056
  width: %POLL-WIDTH%;
1057
  zoom: 1;
1058
  Error message
1059
  ..................................
1060
  font-size:.8em;
1061
  font-style:italic;
1062
  color:red;
1063
  text-transform:lowercase;
1064
  text-align:center;
1065
  Success message
1066
  ..................................
1067
  font-size:.8em;
1068
  font-style:italic;
1069
  color:green;
1070
  text-align:center;
1071
  Poll Question
1072
  ---------------------------------------------------------------------------
1073
  border: 0 none;
1074
  margin: 0 0 2em;
1075
  padding: .25em;
1076
  text-align: center;
1077
  font-size: 14px;
1078
  Poll Options / Answers
1079
  ---------------------------------------------------------------------------
1080
  list-style: none;
1081
  margin: 0;
1082
  padding: 0;
1083
  list-style: none;
1084
  margin: 0;
1085
  padding: 0;
1086
  font-size: 14px;
1087
  line-height: 2em;
1088
  Label
1089
  ..................................
1090
  margin:0px;
1091
  font-style:normal;
1092
  font-weight:normal;
1093
  font-size:14px;
1094
  float:none;
1095
  display:inline-block;
1096
  Custom answer / Other
1097
  ..................................
1098
  width: 100%;
1099
  overflow: hidden;
1100
  width: 94%;
1101
  overflow: hidden;
1102
  Custom checkbox and radio button style
1103
  ---------------------------------------------------------------------------
1104
  Custom fields
1105
  ---------------------------------------------------------------------------
1106
  clear: both;
1107
  list-style: none;
1108
  margin: 0;
1109
  padding: 0;
1110
  overflow: hidden;
1111
  width: 100%;
1112
  display: block;
1113
  font-size:14px;
1114
  list-style: none;
1115
  display: block;
1116
  width: 94%;
1117
  Vote Button
1118
  ---------------------------------------------------------------------------
1119
  cursor:pointer;
1120
  display: block;
1121
  font-size:14px;
1122
  margin: 0 auto;
1123
  }
1124
  Results
1125
  ---------------------------------------------------------------------------
1126
  font-size: 12px;
1127
  font-style: italic;
1128
  font-weight: normal;
1129
  margin-left: 15px;
1130
  color: #38595E;
1131
  Style for results that are displayed on columns
1132
  ..................................
1133
  float: left;
1134
  display: inline-block;
1135
  width: 46%;
1136
  padding: 1%;
1137
  margin: 1%;
1138
  float: right;
1139
  width: auto;
1140
  color:#000;
1141
  text-decoration:underline;
1142
  font-size:12px;
1143
  color:#000;
1144
  text-decoration:underline;
1145
  font-size:12px;
1146
  color:#000;
1147
  text-decoration:underline;
1148
  font-size:12px;
1149
  float:left;
1150
  width:100%;
1151
  Result Bar
1152
  ..................................
1153
  ---------------------------------------------------------------------------
1154
  EXTRAS
1155
  ---------------------------------------------------------------------------
1156
  CAPTCHA
1157
  ..................................
1158
  width:30px;
1159
  float:left;
1160
  margin-left:5px;
1161
  height:0px;
1162
  break;
1163
  }
1164
  case 'Grey':
1165
  { //Grey
1166
  $css = <<<NOWDOC
1167
  Main Container
1168
  ---------------------------------------------------------------------------
1169
  border:1px solid #000000;
1170
  color:#000000;
1171
  color:#000000;
1172
  background:#eee;
1173
  box-sizing: border-box;
1174
  color: #fff;
1175
  display: inline-block;
1176
  font-size: 14px;
1177
  color:#000;
1178
  padding: 10px;
1179
  width: %POLL-WIDTH%;
1180
  zoom: 1;
1181
  Error message
1182
  ..................................
1183
  font-size:.8em;
1184
  font-style:italic;
1185
  color:red;
1186
  text-transform:lowercase;
1187
  text-align:center;
1188
  Success message
1189
  ..................................
1190
  font-size:.8em;
1191
  font-style:italic;
1192
  color:green;
1193
  text-align:center;
1194
  Poll Question
1195
  ---------------------------------------------------------------------------
1196
  border: 0 none;
1197
  margin: 0 0 2em;
1198
  padding: .25em;
1199
  text-align: center;
1200
  font-size: 14px;
1201
  Poll Options / Answers
1202
  ---------------------------------------------------------------------------
1203
  list-style: none;
1204
  margin: 0;
1205
  padding: 0;
1206
  list-style: none;
1207
  margin: 0;
1208
  padding: 0;
1209
  font-size: 14px;
1210
  line-height: 2em;
1211
  Label
1212
  ..................................
1213
  margin:0px;
1214
  font-style:normal;
1215
  font-weight:normal;
1216
  font-size:14px;
1217
  float:none;
1218
  display:inline-block;
1219
  Custom answer / Other
1220
  ..................................
1221
  width: 100%;
1222
  overflow: hidden;
1223
  width: 94%;
1224
  overflow: hidden;
1225
  Custom checkbox and radio button style
1226
  ---------------------------------------------------------------------------
1227
  Custom fields
1228
  ---------------------------------------------------------------------------
1229
  clear: both;
1230
  list-style: none;
1231
  margin: 0;
1232
  padding: 0;
1233
  overflow: hidden;
1234
  width: 100%;
1235
  display: block;
1236
  font-size:14px;
1237
  list-style: none;
1238
  display: block;
1239
  width: 94%;
1240
  Vote Button
1241
  ---------------------------------------------------------------------------
1242
  cursor:pointer;
1243
  display: block;
1244
  font-size:14px;
1245
  margin: 0 auto;
1246
  }
1247
  Results
1248
  ---------------------------------------------------------------------------
1249
  font-size: 12px;
1250
  font-style: italic;
1251
  font-weight: normal;
1252
  margin-left: 15px;
1253
  color: #38595E;
1254
  Style for results that are displayed on columns
1255
  ..................................
1256
  float: left;
1257
  display: inline-block;
1258
  width: 46%;
1259
  padding: 1%;
1260
  margin: 1%;
1261
  float: right;
1262
  width: auto;
1263
  color:#000;
1264
  text-decoration:underline;
1265
  font-size:12px;
1266
  color:#000;
1267
  text-decoration:underline;
1268
  font-size:12px;
1269
  color:#000;
1270
  text-decoration:underline;
1271
  font-size:12px;
1272
  float:left;
1273
  width:100%;
1274
  Result Bar
1275
  ..................................
1276
  ---------------------------------------------------------------------------
1277
  EXTRAS
1278
  ---------------------------------------------------------------------------
1279
  CAPTCHA
1280
  ..................................
1281
  width:30px;
1282
  float:left;
1283
  margin-left:5px;
1284
  height:0px;
1285
  break;
1286
  }
1287
  case 'Dark':
1288
  { //Dark
1289
  $css = <<<NOWDOC
1290
  Main Container
1291
  ---------------------------------------------------------------------------
1292
  color:#000000;
1293
  color:#000000;
1294
  background:#555;
1295
  box-sizing: border-box;
1296
  color: #fff;
1297
  display: inline-block;
1298
  font-size: 14px;
1299
  padding: 10px;
1300
  width: %POLL-WIDTH%;
1301
  zoom: 1;
1302
  Error message
1303
  ..................................
1304
  font-size:.8em;
1305
  font-style:italic;
1306
  color:red;
1307
  text-transform:lowercase;
1308
  text-align:center;
1309
  Success message
1310
  ..................................
1311
  font-size:.8em;
1312
  font-style:italic;
1313
  color:green;
1314
  text-align:center;
1315
  Poll Question
1316
  ---------------------------------------------------------------------------
1317
  border: 0 none;
1318
  margin: 0 0 2em;
1319
  padding: .25em;
1320
  text-align: center;
1321
  font-size: 14px;
1322
  Poll Options / Answers
1323
  ---------------------------------------------------------------------------
1324
  list-style: none;
1325
  margin: 0;
1326
  padding: 0;
1327
  list-style: none;
1328
  margin: 0;
1329
  padding: 0;
1330
  font-size: 14px;
1331
  line-height: 2em;
1332
  Label
1333
  ..................................
1334
  margin:0px;
1335
  font-style:normal;
1336
  font-weight:normal;
1337
  font-size:14px;
1338
  float:none;
1339
  display:inline-block;
1340
  Custom answer / Other
1341
  ..................................
1342
  width: 100%;
1343
  overflow: hidden;
1344
  width: 94%;
1345
  overflow: hidden;
1346
  Custom checkbox and radio button style
1347
  ---------------------------------------------------------------------------
1348
  Custom fields
1349
  ---------------------------------------------------------------------------
1350
  clear: both;
1351
  list-style: none;
1352
  margin: 0;
1353
  padding: 0;
1354
  overflow: hidden;
1355
  width: 100%;
1356
  display: block;
1357
  font-size:14px;
1358
  list-style: none;
1359
  display: block;
1360
  width: 94%;
1361
  Vote Button
1362
  ---------------------------------------------------------------------------
1363
  cursor:pointer;
1364
  display: block;
1365
  font-size:14px;
1366
  margin: 0 auto;
1367
  }
1368
  Results
1369
  ---------------------------------------------------------------------------
1370
  font-size: 12px;
1371
  font-style: italic;
1372
  font-weight: normal;
1373
  margin-left: 15px;
1374
  color: #38595E;
1375
  Style for results that are displayed on columns
1376
  ..................................
1377
  float: left;
1378
  display: inline-block;
1379
  width: 46%;
1380
  padding: 1%;
1381
  margin: 1%;
1382
  float: right;
1383
  width: auto;
1384
  color:#000;
1385
  text-decoration:underline;
1386
  font-size:12px;
1387
  color:#000;
1388
  text-decoration:underline;
1389
  font-size:12px;
1390
  color:#000;
1391
  text-decoration:underline;
1392
  font-size:12px;
1393
  float:left;
1394
  width:100%;
1395
  Result Bar
1396
  ..................................
1397
  ---------------------------------------------------------------------------
1398
  EXTRAS
1399
  ---------------------------------------------------------------------------
1400
  CAPTCHA
1401
  ..................................
1402
  width:30px;
1403
  float:left;
1404
  margin-left:5px;
1405
  height:0px;
1406
  break;
1407
  }
1408
  case 'Blue v1':
1409
  { //Blue v1
1410
  $css = <<<NOWDOC
1411
  Main Container
1412
  ---------------------------------------------------------------------------
1413
  color:#000000;
1414
  color:#000000;
1415
  background:#327BD6;
1416
  box-sizing: border-box;
1417
  color: #fff;
1418
  display: inline-block;
1419
  font-size: 14px;
1420
  padding: 10px;
1421
  width: %POLL-WIDTH%;
1422
  zoom: 1;
1423
  Error message
1424
  ..................................
1425
  font-size:.8em;
1426
  font-style:italic;
1427
  color:red;
1428
  text-transform:lowercase;
1429
  text-align:center;
1430
  Success message
1431
  ..................................
1432
  font-size:.8em;
1433
  font-style:italic;
1434
  color:green;
1435
  text-align:center;
1436
  Poll Question
1437
  ---------------------------------------------------------------------------
1438
  border: 0 none;
1439
  margin: 0 0 2em;
1440
  padding: .25em;
1441
  text-align: center;
1442
  font-size: 14px;
1443
  Poll Options / Answers
1444
  ---------------------------------------------------------------------------
1445
  list-style: none;
1446
  margin: 0;
1447
  padding: 0;
1448
  list-style: none;
1449
  margin: 0;
1450
  padding: 0;
1451
  font-size: 14px;
1452
  line-height: 2em;
1453
  Label
1454
  ..................................
1455
  margin:0px;
1456
  font-style:normal;
1457
  font-weight:normal;
1458
  font-size:14px;
1459
  float:none;
1460
  display:inline-block;
1461
  Custom answer / Other
1462
  ..................................
1463
  width: 100%;
1464
  overflow: hidden;
1465
  width: 94%;
1466
  overflow: hidden;
1467
  Custom checkbox and radio button style
1468
  ---------------------------------------------------------------------------
1469
  Custom fields
1470
  ---------------------------------------------------------------------------
1471
  clear: both;
1472
  list-style: none;
1473
  margin: 0;
1474
  padding: 0;
1475
  overflow: hidden;
1476
  width: 100%;
1477
  display: block;
1478
  font-size:14px;
1479
  list-style: none;
1480
  display: block;
1481
  width: 94%;
1482
  Vote Button
1483
  ---------------------------------------------------------------------------
1484
  cursor:pointer;
1485
  display: block;
1486
  font-size:14px;
1487
  margin: 0 auto;
1488
  }
1489
  Results
1490
  ---------------------------------------------------------------------------
1491
  font-size: 12px;
1492
  font-style: italic;
1493
  font-weight: normal;
1494
  margin-left: 15px;
1495
  color: #38595E;
1496
  Style for results that are displayed on columns
1497
  ..................................
1498
  float: left;
1499
  display: inline-block;
1500
  width: 46%;
1501
  padding: 1%;
1502
  margin: 1%;
1503
  float: right;
1504
  width: auto;
1505
  color:#000;
1506
  text-decoration:underline;
1507
  font-size:12px;
1508
  color:#000;
1509
  text-decoration:underline;
1510
  font-size:12px;
1511
  color:#000;
1512
  text-decoration:underline;
1513
  font-size:12px;
1514
  float:left;
1515
  width:100%;
1516
  Result Bar
1517
  ..................................
1518
  ---------------------------------------------------------------------------
1519
  EXTRAS
1520
  ---------------------------------------------------------------------------
1521
  CAPTCHA
1522
  ..................................
1523
  width:30px;
1524
  float:left;
1525
  margin-left:5px;
1526
  height:0px;
1527
  break;
1528
  }
1529
  case 'Blue v2':
1530
  { //Blue v2
1531
  $css = <<<NOWDOC
1532
  Main Container
1533
  ---------------------------------------------------------------------------
1534
  border:1px solid #000000;
1535
  color:#000000;
1536
  color:#000000;
1537
  background:#fff;
1538
  box-sizing: border-box;
1539
  display: inline-block;
1540
  font-size: 14px;
1541
  color:#555;
1542
  padding: 10px;
1543
  width: %POLL-WIDTH%;
1544
  zoom: 1;
1545
  Error message
1546
  ..................................
1547
  font-size:.8em;
1548
  font-style:italic;
1549
  color:red;
1550
  text-transform:lowercase;
1551
  text-align:center;
1552
  Success message
1553
  ..................................
1554
  font-size:.8em;
1555
  font-style:italic;
1556
  color:green;
1557
  text-align:center;
1558
  Poll Question
1559
  ---------------------------------------------------------------------------
1560
  background:#327BD6;
1561
  color:#fff;
1562
  border: 0 none;
1563
  margin: 0 0 2em;
1564
  padding: .25em;
1565
  text-align: center;
1566
  font-size: 14px;
1567
  Poll Options / Answers
1568
  ---------------------------------------------------------------------------
1569
  list-style: none;
1570
  margin: 0;
1571
  padding: 0;
1572
  list-style: none;
1573
  margin: 0;
1574
  padding: 0;
1575
  font-size: 14px;
1576
  line-height: 2em;
1577
  Label
1578
  ..................................
1579
  margin:0px;
1580
  font-style:normal;
1581
  font-weight:normal;
1582
  font-size:14px;
1583
  float:none;
1584
  display:inline-block;
1585
  Custom answer / Other
1586
  ..................................
1587
  width: 100%;
1588
  overflow: hidden;
1589
  width: 94%;
1590
  overflow: hidden;
1591
  Custom checkbox and radio button style
1592
  ---------------------------------------------------------------------------
1593
  Custom fields
1594
  ---------------------------------------------------------------------------
1595
  clear: both;
1596
  list-style: none;
1597
  margin: 0;
1598
  padding: 0;
1599
  overflow: hidden;
1600
  width: 100%;
1601
  display: block;
1602
  font-size:14px;
1603
  list-style: none;
1604
  display: block;
1605
  width: 94%;
1606
  Vote Button
1607
  ---------------------------------------------------------------------------
1608
  cursor:pointer;
1609
  display: block;
1610
  font-size:14px;
1611
  margin: 0 auto;
1612
  }
1613
  Results
1614
  ---------------------------------------------------------------------------
1615
  font-size: 12px;
1616
  font-style: italic;
1617
  font-weight: normal;
1618
  margin-left: 15px;
1619
  color: #38595E;
1620
  Style for results that are displayed on columns
1621
  ..................................
1622
  float: left;
1623
  display: inline-block;
1624
  width: 46%;
1625
  padding: 1%;
1626
  margin: 1%;
1627
  float: right;
1628
  width: auto;
1629
  color:#000;
1630
  text-decoration:underline;
1631
  font-size:12px;
1632
  color:#000;
1633
  text-decoration:underline;
1634
  font-size:12px;
1635
  color:#000;
1636
  text-decoration:underline;
1637
  font-size:12px;
1638
  float:left;
1639
  width:100%;
1640
  Result Bar
1641
  ..................................
1642
  ---------------------------------------------------------------------------
1643
  EXTRAS
1644
  ---------------------------------------------------------------------------
1645
  CAPTCHA
1646
  ..................................
1647
  width:30px;
1648
  float:left;
1649
  margin-left:5px;
1650
  height:0px;
1651
  break;
1652
  }
1653
  case 'Blue v3':
1654
  { //Blue v3
1655
  $css = <<<NOWDOC
1656
  Main Container
1657
  ---------------------------------------------------------------------------
1658
  border:1px solid #000000;
1659
  color:#000000;
1660
  color:#000000;
1661
  background:#fff;
1662
  box-sizing: border-box;
1663
  display: inline-block;
1664
  font-size: 14px;
1665
  color:#555;
1666
  padding: 10px;
1667
  width: %POLL-WIDTH%;
1668
  zoom: 1;
1669
  border: 5px solid #327BD6;
1670
  Error message
1671
  ..................................
1672
  font-size:.8em;
1673
  font-style:italic;
1674
  color:red;
1675
  text-transform:lowercase;
1676
  text-align:center;
1677
  Success message
1678
  ..................................
1679
  font-size:.8em;
1680
  font-style:italic;
1681
  color:green;
1682
  text-align:center;
1683
  Poll Question
1684
  ---------------------------------------------------------------------------
1685
  border: 0 none;
1686
  margin: 0 0 2em;
1687
  padding: .25em;
1688
  text-align: center;
1689
  font-size: 14px;
1690
  Poll Options / Answers
1691
  ---------------------------------------------------------------------------
1692
  list-style: none;
1693
  margin: 0;
1694
  padding: 0;
1695
  list-style: none;
1696
  margin: 0;
1697
  padding: 0;
1698
  font-size: 14px;
1699
  line-height: 2em;
1700
  Label
1701
  ..................................
1702
  margin:0px;
1703
  font-style:normal;
1704
  font-weight:normal;
1705
  font-size:14px;
1706
  float:none;
1707
  display:inline-block;
1708
  Custom answer / Other
1709
  ..................................
1710
  width: 100%;
1711
  overflow: hidden;
1712
  width: 94%;
1713
  overflow: hidden;
1714
  Custom checkbox and radio button style
1715
  ---------------------------------------------------------------------------
1716
  Custom fields
1717
  ---------------------------------------------------------------------------
1718
  clear: both;
1719
  list-style: none;
1720
  margin: 0;
1721
  padding: 0;
1722
  overflow: hidden;
1723
  width: 100%;
1724
  display: block;
1725
  font-size:14px;
1726
  list-style: none;
1727
  display: block;
1728
  width: 94%;
1729
  Vote Button
1730
  ---------------------------------------------------------------------------
1731
  cursor:pointer;
1732
  display: block;
1733
  font-size:14px;
1734
  margin: 0 auto;
1735
  }
1736
  Results
1737
  ---------------------------------------------------------------------------
1738
  font-size: 12px;
1739
  font-style: italic;
1740
  font-weight: normal;
1741
  margin-left: 15px;
1742
  color: #38595E;
1743
  Style for results that are displayed on columns
1744
  ..................................
1745
  float: left;
1746
  display: inline-block;
1747
  width: 46%;
1748
  padding: 1%;
1749
  margin: 1%;
1750
  float: right;
1751
  width: auto;
1752
  color:#000;
1753
  text-decoration:underline;
1754
  font-size:12px;
1755
  color:#000;
1756
  text-decoration:underline;
1757
  font-size:12px;
1758
  color:#000;
1759
  text-decoration:underline;
1760
  font-size:12px;
1761
  float:left;
1762
  width:100%;
1763
  Result Bar
1764
  ..................................
1765
  ---------------------------------------------------------------------------
1766
  EXTRAS
1767
  ---------------------------------------------------------------------------
1768
  CAPTCHA
1769
  ..................................
1770
  width:30px;
1771
  float:left;
1772
  margin-left:5px;
1773
  height:0px;
1774
  break;
1775
  }
1776
  case 'Red v1':
1777
  { //Red v1
1778
  $css = <<<NOWDOC
1779
  Main Container
1780
  ---------------------------------------------------------------------------
1781
  color:#000000;
1782
  color:#000000;
1783
  background:#B70004;
1784
  box-sizing: border-box;
1785
  display: inline-block;
1786
  font-size: 14px;
1787
  color:white;
1788
  padding: 10px;
1789
  width: %POLL-WIDTH%;
1790
  zoom: 1;
1791
  Error message
1792
  ..................................
1793
  font-size:.8em;
1794
  font-style:italic;
1795
  color:red;
1796
  text-transform:lowercase;
1797
  text-align:center;
1798
  Success message
1799
  ..................................
1800
  font-size:.8em;
1801
  font-style:italic;
1802
  color:green;
1803
  text-align:center;
1804
  Poll Question
1805
  ---------------------------------------------------------------------------
1806
  border: 0 none;
1807
  margin: 0 0 2em;
1808
  padding: .25em;
1809
  text-align: center;
1810
  font-size: 14px;
1811
  Poll Options / Answers
1812
  ---------------------------------------------------------------------------
1813
  list-style: none;
1814
  margin: 0;
1815
  padding: 0;
1816
  list-style: none;
1817
  margin: 0;
1818
  padding: 0;
1819
  font-size: 14px;
1820
  line-height: 2em;
1821
  Label
1822
  ..................................
1823
  margin:0px;
1824
  font-style:normal;
1825
  font-weight:normal;
1826
  font-size:14px;
1827
  float:none;
1828
  display:inline-block;
1829
  Custom answer / Other
1830
  ..................................
1831
  width: 100%;
1832
  overflow: hidden;
1833
  width: 94%;
1834
  overflow: hidden;
1835
  Custom checkbox and radio button style
1836
  ---------------------------------------------------------------------------
1837
  Custom fields
1838
  ---------------------------------------------------------------------------
1839
  clear: both;
1840
  list-style: none;
1841
  margin: 0;
1842
  padding: 0;
1843
  overflow: hidden;
1844
  width: 100%;
1845
  display: block;
1846
  font-size:14px;
1847
  list-style: none;
1848
  display: block;
1849
  width: 94%;
1850
  Vote Button
1851
  ---------------------------------------------------------------------------
1852
  cursor:pointer;
1853
  display: block;
1854
  font-size:14px;
1855
  margin: 0 auto;
1856
  }
1857
  Results
1858
  ---------------------------------------------------------------------------
1859
  font-size: 12px;
1860
  font-style: italic;
1861
  font-weight: normal;
1862
  margin-left: 15px;
1863
  color: #38595E;
1864
  Style for results that are displayed on columns
1865
  ..................................
1866
  float: left;
1867
  display: inline-block;
1868
  width: 46%;
1869
  padding: 1%;
1870
  margin: 1%;
1871
  float: right;
1872
  width: auto;
1873
  color:#000;
1874
  text-decoration:underline;
1875
  font-size:12px;
1876
  color:#000;
1877
  text-decoration:underline;
1878
  font-size:12px;
1879
  color:#000;
1880
  text-decoration:underline;
1881
  font-size:12px;
1882
  float:left;
1883
  width:100%;
1884
  Result Bar
1885
  ..................................
1886
  ---------------------------------------------------------------------------
1887
  EXTRAS
1888
  ---------------------------------------------------------------------------
1889
  CAPTCHA
1890
  ..................................
1891
  width:30px;
1892
  float:left;
1893
  margin-left:5px;
1894
  height:0px;
1895
  break;
1896
  }
1897
  case 'Red v2':
1898
  { //Red v2
1899
  $css = <<<NOWDOC
1900
  Main Container
1901
  ---------------------------------------------------------------------------
1902
  border:1px solid #000000;
1903
  color:#000000;
1904
  color:#000000;
1905
  background:#fff;
1906
  box-sizing: border-box;
1907
  display: inline-block;
1908
  font-size: 14px;
1909
  color:#555;
1910
  padding: 10px;
1911
  width: %POLL-WIDTH%;
1912
  zoom: 1;
1913
  Error message
1914
  ..................................
1915
  font-size:.8em;
1916
  font-style:italic;
1917
  color:red;
1918
  text-transform:lowercase;
1919
  text-align:center;
1920
  Success message
1921
  ..................................
1922
  font-size:.8em;
1923
  font-style:italic;
1924
  color:green;
1925
  text-align:center;
1926
  Poll Question
1927
  ---------------------------------------------------------------------------
1928
  background:#B70004;
1929
  color:#fff;
1930
  border: 0 none;
1931
  margin: 0 0 2em;
1932
  padding: .25em;
1933
  text-align: center;
1934
  font-size: 14px;
1935
  Poll Options / Answers
1936
  ---------------------------------------------------------------------------
1937
  list-style: none;
1938
  margin: 0;
1939
  padding: 0;
1940
  list-style: none;
1941
  margin: 0;
1942
  padding: 0;
1943
  font-size: 14px;
1944
  line-height: 2em;
1945
  Label
1946
  ..................................
1947
  margin:0px;
1948
  font-style:normal;
1949
  font-weight:normal;
1950
  font-size:14px;
1951
  float:none;
1952
  display:inline-block;
1953
  Custom answer / Other
1954
  ..................................
1955
  width: 100%;
1956
  overflow: hidden;
1957
  width: 94%;
1958
  overflow: hidden;
1959
  Custom checkbox and radio button style
1960
  ---------------------------------------------------------------------------
1961
  Custom fields
1962
  ---------------------------------------------------------------------------
1963
  clear: both;
1964
  list-style: none;
1965
  margin: 0;
1966
  padding: 0;
1967
  overflow: hidden;
1968
  width: 100%;
1969
  display: block;
1970
  font-size:14px;
1971
  list-style: none;
1972
  display: block;
1973
  width: 94%;
1974
  Vote Button
1975
  ---------------------------------------------------------------------------
1976
  cursor:pointer;
1977
  display: block;
1978
  font-size:14px;
1979
  margin: 0 auto;
1980
  }
1981
  Results
1982
  ---------------------------------------------------------------------------
1983
  font-size: 12px;
1984
  font-style: italic;
1985
  font-weight: normal;
1986
  margin-left: 15px;
1987
  color: #38595E;
1988
  Style for results that are displayed on columns
1989
  ..................................
1990
  float: left;
1991
  display: inline-block;
1992
  width: 46%;
1993
  padding: 1%;
1994
  margin: 1%;
1995
  float: right;
1996
  width: auto;
1997
  color:#000;
1998
  text-decoration:underline;
1999
  font-size:12px;
2000
  color:#000;
2001
  text-decoration:underline;
2002
  font-size:12px;
2003
  color:#000;
2004
  text-decoration:underline;
2005
  font-size:12px;
2006
  float:left;
2007
  width:100%;
2008
  Result Bar
2009
  ..................................
2010
  ---------------------------------------------------------------------------
2011
  EXTRAS
2012
  ---------------------------------------------------------------------------
2013
  CAPTCHA
2014
  ..................................
2015
  width:30px;
2016
  float:left;
2017
  margin-left:5px;
2018
  height:0px;
2019
  break;
2020
  }
2021
  case 'Red v3':
2022
  { //Red v3
2023
  $css = <<<NOWDOC
2024
  Main Container
2025
  ---------------------------------------------------------------------------
2026
  border:1px solid #000000;
2027
  color:#000000;
2028
  color:#000000;
2029
  background:#fff;
2030
  box-sizing: border-box;
2031
  display: inline-block;
2032
  font-size: 14px;
2033
  color:#555;
2034
  padding: 10px;
2035
  width: %POLL-WIDTH%;
2036
  zoom: 1;
2037
  border:5px solid #B70004;
2038
  Error message
2039
  ..................................
2040
  font-size:.8em;
2041
  font-style:italic;
2042
  color:red;
2043
  text-transform:lowercase;
2044
  text-align:center;
2045
  Success message
2046
  ..................................
2047
  font-size:.8em;
2048
  font-style:italic;
2049
  color:green;
2050
  text-align:center;
2051
  Poll Question
2052
  ---------------------------------------------------------------------------
2053
  border: 0 none;
2054
  margin: 0 0 2em;
2055
  padding: .25em;
2056
  text-align: center;
2057
  font-size: 14px;
2058
  Poll Options / Answers
2059
  ---------------------------------------------------------------------------
2060
  list-style: none;
2061
  margin: 0;
2062
  padding: 0;
2063
  list-style: none;
2064
  margin: 0;
2065
  padding: 0;
2066
  font-size: 14px;
2067
  line-height: 2em;
2068
  Label
2069
  ..................................
2070
  margin:0px;
2071
  font-style:normal;
2072
  font-weight:normal;
2073
  font-size:14px;
2074
  float:none;
2075
  display:inline-block;
2076
  Custom answer / Other
2077
  ..................................
2078
  width: 100%;
2079
  overflow: hidden;
2080
  width: 94%;
2081
  overflow: hidden;
2082
  Custom checkbox and radio button style
2083
  ---------------------------------------------------------------------------
2084
  Custom fields
2085
  ---------------------------------------------------------------------------
2086
  clear: both;
2087
  list-style: none;
2088
  margin: 0;
2089
  padding: 0;
2090
  overflow: hidden;
2091
  width: 100%;
2092
  display: block;
2093
  font-size:14px;
2094
  list-style: none;
2095
  display: block;
2096
  width: 94%;
2097
  Vote Button
2098
  ---------------------------------------------------------------------------
2099
  cursor:pointer;
2100
  display: block;
2101
  font-size:14px;
2102
  margin: 0 auto;
2103
  }
2104
  Results
2105
  ---------------------------------------------------------------------------
2106
  font-size: 12px;
2107
  font-style: italic;
2108
  font-weight: normal;
2109
  margin-left: 15px;
2110
  color: #38595E;
2111
  Style for results that are displayed on columns
2112
  ..................................
2113
  float: left;
2114
  display: inline-block;
2115
  width: 46%;
2116
  padding: 1%;
2117
  margin: 1%;
2118
  float: right;
2119
  width: auto;
2120
  color:#000;
2121
  text-decoration:underline;
2122
  font-size:12px;
2123
  color:#000;
2124
  text-decoration:underline;
2125
  font-size:12px;
2126
  color:#000;
2127
  text-decoration:underline;
2128
  font-size:12px;
2129
  float:left;
2130
  width:100%;
2131
  Result Bar
2132
  ..................................
2133
  ---------------------------------------------------------------------------
2134
  EXTRAS
2135
  ---------------------------------------------------------------------------
2136
  CAPTCHA
2137
  ..................................
2138
  width:30px;
2139
  float:left;
2140
  margin-left:5px;
2141
  height:0px;
2142
  break;
2143
  }
2144
  case 'Green v1':
2145
  { //Green v1
2146
  $css = <<<NOWDOC
2147
  Main Container
2148
  ---------------------------------------------------------------------------
2149
  color:#000000;
2150
  color:#000000;
2151
  background:#3F8B43;
2152
  box-sizing: border-box;
2153
  display: inline-block;
2154
  font-size: 14px;
2155
  color:white;
2156
  padding: 10px;
2157
  width: %POLL-WIDTH%;
2158
  zoom: 1;
2159
  Error message
2160
  ..................................
2161
  font-size:.8em;
2162
  font-style:italic;
2163
  color:red;
2164
  text-transform:lowercase;
2165
  text-align:center;
2166
  Success message
2167
  ..................................
2168
  font-size:.8em;
2169
  font-style:italic;
2170
  color:green;
2171
  text-align:center;
2172
  Poll Question
2173
  ---------------------------------------------------------------------------
2174
  border: 0 none;
2175
  margin: 0 0 2em;
2176
  padding: .25em;
2177
  text-align: center;
2178
  font-size: 14px;
2179
  Poll Options / Answers
2180
  ---------------------------------------------------------------------------
2181
  list-style: none;
2182
  margin: 0;
2183
  padding: 0;
2184
  list-style: none;
2185
  margin: 0;
2186
  padding: 0;
2187
  font-size: 14px;
2188
  line-height: 2em;
2189
  Label
2190
  ..................................
2191
  margin:0px;
2192
  font-style:normal;
2193
  font-weight:normal;
2194
  font-size:14px;
2195
  float:none;
2196
  display:inline-block;
2197
  Custom answer / Other
2198
  ..................................
2199
  width: 100%;
2200
  overflow: hidden;
2201
  width: 94%;
2202
  overflow: hidden;
2203
  Custom checkbox and radio button style
2204
  ---------------------------------------------------------------------------
2205
  Custom fields
2206
  ---------------------------------------------------------------------------
2207
  clear: both;
2208
  list-style: none;
2209
  margin: 0;
2210
  padding: 0;
2211
  overflow: hidden;
2212
  width: 100%;
2213
  display: block;
2214
  font-size:14px;
2215
  list-style: none;
2216
  display: block;
2217
  width: 94%;
2218
  Vote Button
2219
  ---------------------------------------------------------------------------
2220
  cursor:pointer;
2221
  display: block;
2222
  font-size:14px;
2223
  margin: 0 auto;
2224
  }
2225
  Results
2226
  ---------------------------------------------------------------------------
2227
  font-size: 12px;
2228
  font-style: italic;
2229
  font-weight: normal;
2230
  margin-left: 15px;
2231
  color: #38595E;
2232
  Style for results that are displayed on columns
2233
  ..................................
2234
  float: left;
2235
  display: inline-block;
2236
  width: 46%;
2237
  padding: 1%;
2238
  margin: 1%;
2239
  float: right;
2240
  width: auto;
2241
  color:#000;
2242
  text-decoration:underline;
2243
  font-size:12px;
2244
  color:#000;
2245
  text-decoration:underline;
2246
  font-size:12px;
2247
  color:#000;
2248
  text-decoration:underline;
2249
  font-size:12px;
2250
  float:left;
2251
  width:100%;
2252
  Result Bar
2253
  ..................................
2254
  ---------------------------------------------------------------------------
2255
  EXTRAS
2256
  ---------------------------------------------------------------------------
2257
  CAPTCHA
2258
  ..................................
2259
  width:30px;
2260
  float:left;
2261
  margin-left:5px;
2262
  height:0px;
2263
  break;
2264
  }
2265
  case 'Green v2':
2266
  { //Green v2
2267
  $css = <<<NOWDOC
2268
  Main Container
2269
  ---------------------------------------------------------------------------
2270
  border:1px solid #000000;
2271
  color:#000000;
2272
  color:#000000;
2273
  background:#fff;
2274
  box-sizing: border-box;
2275
  display: inline-block;
2276
  font-size: 14px;
2277
  color:#555;
2278
  padding: 10px;
2279
  width: %POLL-WIDTH%;
2280
  zoom: 1;
2281
  Error message
2282
  ..................................
2283
  font-size:.8em;
2284
  font-style:italic;
2285
  color:red;
2286
  text-transform:lowercase;
2287
  text-align:center;
2288
  Success message
2289
  ..................................
2290
  font-size:.8em;
2291
  font-style:italic;
2292
  color:green;
2293
  text-align:center;
2294
  Poll Question
2295
  ---------------------------------------------------------------------------
2296
  background:#3F8B43;
2297
  color:#fff;
2298
  border: 0 none;
2299
  margin: 0 0 2em;
2300
  padding: .25em;
2301
  text-align: center;
2302
  font-size: 14px;
2303
  Poll Options / Answers
2304
  ---------------------------------------------------------------------------
2305
  list-style: none;
2306
  margin: 0;
2307
  padding: 0;
2308
  list-style: none;
2309
  margin: 0;
2310
  padding: 0;
2311
  font-size: 14px;
2312
  line-height: 2em;
2313
  Label
2314
  ..................................
2315
  margin:0px;
2316
  font-style:normal;
2317
  font-weight:normal;
2318
  font-size:14px;
2319
  float:none;
2320
  display:inline-block;
2321
  Custom answer / Other
2322
  ..................................
2323
  width: 100%;
2324
  overflow: hidden;
2325
  width: 94%;
2326
  overflow: hidden;
2327
  Custom checkbox and radio button style
2328
  ---------------------------------------------------------------------------
2329
  Custom fields
2330
  ---------------------------------------------------------------------------
2331
  clear: both;
2332
  list-style: none;
2333
  margin: 0;
2334
  padding: 0;
2335
  overflow: hidden;
2336
  width: 100%;
2337
  display: block;
2338
  font-size:14px;
2339
  list-style: none;
2340
  display: block;
2341
  width: 94%;
2342
  Vote Button
2343
  ---------------------------------------------------------------------------
2344
  cursor:pointer;
2345
  display: block;
2346
  font-size:14px;
2347
  margin: 0 auto;
2348
  }
2349
  Results
2350
  ---------------------------------------------------------------------------
2351
  font-size: 12px;
2352
  font-style: italic;
2353
  font-weight: normal;
2354
  margin-left: 15px;
2355
  color: #38595E;
2356
  Style for results that are displayed on columns
2357
  ..................................
2358
  float: left;
2359
  display: inline-block;
2360
  width: 46%;
2361
  padding: 1%;
2362
  margin: 1%;
2363
  float: right;
2364
  width: auto;
2365
  color:#000;
2366
  text-decoration:underline;
2367
  font-size:12px;
2368
  color:#000;
2369
  text-decoration:underline;
2370
  font-size:12px;
2371
  color:#000;
2372
  text-decoration:underline;
2373
  font-size:12px;
2374
  float:left;
2375
  width:100%;
2376
  Result Bar
2377
  ..................................
2378
  ---------------------------------------------------------------------------
2379
  EXTRAS
2380
  ---------------------------------------------------------------------------
2381
  CAPTCHA
2382
  ..................................
2383
  width:30px;
2384
  float:left;
2385
  margin-left:5px;
2386
  height:0px;
2387
  break;
2388
  }
2389
  case 'Green v3':
2390
  { //Green v3
2391
  $css = <<<NOWDOC
2392
  Main Container
2393
  ---------------------------------------------------------------------------
2394
  border:1px solid #000000;
2395
  color:#000000;
2396
  color:#000000;
2397
  background:#fff;
2398
  box-sizing: border-box;
2399
  display: inline-block;
2400
  font-size: 14px;
2401
  color:#555;
2402
  padding: 10px;
2403
  width: %POLL-WIDTH%;
2404
  zoom: 1;
2405
  border:5px solid #3F8B43;
2406
  Error message
2407
  ..................................
2408
  font-size:.8em;
2409
  font-style:italic;
2410
  color:red;
2411
  text-transform:lowercase;
2412
  text-align:center;
2413
  Success message
2414
  ..................................
2415
  font-size:.8em;
2416
  font-style:italic;
2417
  color:green;
2418
  text-align:center;
2419
  Poll Question
2420
  ---------------------------------------------------------------------------
2421
  border: 0 none;
2422
  margin: 0 0 2em;
2423
  padding: .25em;
2424
  text-align: center;
2425
  font-size: 14px;
2426
  Poll Options / Answers
2427
  ---------------------------------------------------------------------------
2428
  list-style: none;
2429
  margin: 0;
2430
  padding: 0;
2431
  list-style: none;
2432
  margin: 0;
2433
  padding: 0;
2434
  font-size: 14px;
2435
  line-height: 2em;
2436
  Label
2437
  ..................................
2438
  margin:0px;
2439
  font-style:normal;
2440
  font-weight:normal;
2441
  font-size:14px;
2442
  float:none;
2443
  display:inline-block;
2444
  Custom answer / Other
2445
  ..................................
2446
  width: 100%;
2447
  overflow: hidden;
2448
  width: 94%;
2449
  overflow: hidden;
2450
  Custom checkbox and radio button style
2451
  ---------------------------------------------------------------------------
2452
  Custom fields
2453
  ---------------------------------------------------------------------------
2454
  clear: both;
2455
  list-style: none;
2456
  margin: 0;
2457
  padding: 0;
2458
  overflow: hidden;
2459
  width: 100%;
2460
  display: block;
2461
  font-size:14px;
2462
  list-style: none;
2463
  display: block;
2464
  width: 94%;
2465
  Vote Button
2466
  ---------------------------------------------------------------------------
2467
  cursor:pointer;
2468
  display: block;
2469
  font-size:14px;
2470
  margin: 0 auto;
2471
  }
2472
  Results
2473
  ---------------------------------------------------------------------------
2474
  font-size: 12px;
2475
  font-style: italic;
2476
  font-weight: normal;
2477
  margin-left: 15px;
2478
  color: #38595E;
2479
  Style for results that are displayed on columns
2480
  ..................................
2481
  float: left;
2482
  display: inline-block;
2483
  width: 46%;
2484
  padding: 1%;
2485
  margin: 1%;
2486
  float: right;
2487
  width: auto;
2488
  color:#000;
2489
  text-decoration:underline;
2490
  font-size:12px;
2491
  color:#000;
2492
  text-decoration:underline;
2493
  font-size:12px;
2494
  color:#000;
2495
  text-decoration:underline;
2496
  font-size:12px;
2497
  float:left;
2498
  width:100%;
2499
  Result Bar
2500
  ..................................
2501
  ---------------------------------------------------------------------------
2502
  EXTRAS
2503
  ---------------------------------------------------------------------------
2504
  CAPTCHA
2505
  ..................................
2506
  width:30px;
2507
  float:left;
2508
  margin-left:5px;
2509
  height:0px;
2510
  break;
2511
  }
2512
  case 'Orange v1':
2513
  { //Orange v1
2514
  $css = <<<NOWDOC
2515
  Main Container
2516
  ---------------------------------------------------------------------------
2517
  color:#000000;
2518
  color:#000000;
2519
  background:#FB6911;
2520
  box-sizing: border-box;
2521
  display: inline-block;
2522
  font-size: 14px;
2523
  color:white;
2524
  padding: 10px;
2525
  width: %POLL-WIDTH%;
2526
  zoom: 1;
2527
  Error message
2528
  ..................................
2529
  font-size:.8em;
2530
  font-style:italic;
2531
  color:red;
2532
  text-transform:lowercase;
2533
  text-align:center;
2534
  Success message
2535
  ..................................
2536
  font-size:.8em;
2537
  font-style:italic;
2538
  color:green;
2539
  text-align:center;
2540
  Poll Question
2541
  ---------------------------------------------------------------------------
2542
  border: 0 none;
2543
  margin: 0 0 2em;
2544
  padding: .25em;
2545
  text-align: center;
2546
  font-size: 14px;
2547
  Poll Options / Answers
2548
  ---------------------------------------------------------------------------
2549
  list-style: none;
2550
  margin: 0;
2551
  padding: 0;
2552
  list-style: none;
2553
  margin: 0;
2554
  padding: 0;
2555
  font-size: 14px;
2556
  line-height: 2em;
2557
  Label
2558
  ..................................
2559
  margin:0px;
2560
  font-style:normal;
2561
  font-weight:normal;
2562
  font-size:14px;
2563
  float:none;
2564
  display:inline-block;
2565
  Custom answer / Other
2566
  ..................................
2567
  width: 100%;
2568
  overflow: hidden;
2569
  width: 94%;
2570
  overflow: hidden;
2571
  Custom checkbox and radio button style
2572
  ---------------------------------------------------------------------------
2573
  Custom fields
2574
  ---------------------------------------------------------------------------
2575
  clear: both;
2576
  list-style: none;
2577
  margin: 0;
2578
  padding: 0;
2579
  overflow: hidden;
2580
  width: 100%;
2581
  display: block;
2582
  font-size:14px;
2583
  list-style: none;
2584
  display: block;
2585
  width: 94%;
2586
  Vote Button
2587
  ---------------------------------------------------------------------------
2588
  cursor:pointer;
2589
  display: block;
2590
  font-size:14px;
2591
  margin: 0 auto;
2592
  }
2593
  Results
2594
  ---------------------------------------------------------------------------
2595
  font-size: 12px;
2596
  font-style: italic;
2597
  font-weight: normal;
2598
  margin-left: 15px;
2599
  color: #38595E;
2600
  Style for results that are displayed on columns
2601
  ..................................
2602
  float: left;
2603
  display: inline-block;
2604
  width: 46%;
2605
  padding: 1%;
2606
  margin: 1%;
2607
  float: right;
2608
  width: auto;
2609
  color:#000;
2610
  text-decoration:underline;
2611
  font-size:12px;
2612
  color:#000;
2613
  text-decoration:underline;
2614
  font-size:12px;
2615
  color:#000;
2616
  text-decoration:underline;
2617
  font-size:12px;
2618
  float:left;
2619
  width:100%;
2620
  Result Bar
2621
  ..................................
2622
  ---------------------------------------------------------------------------
2623
  EXTRAS
2624
  ---------------------------------------------------------------------------
2625
  CAPTCHA
2626
  ..................................
2627
  width:30px;
2628
  float:left;
2629
  margin-left:5px;
2630
  height:0px;
2631
  break;
2632
  }
2633
  case 'Orange v2':
2634
  { //Orange v2
2635
  $css = <<<NOWDOC
2636
  Main Container
2637
  ---------------------------------------------------------------------------
2638
  border:1px solid #000000;
2639
  color:#000000;
2640
  color:#000000;
2641
  background:#fff;
2642
  box-sizing: border-box;
2643
  display: inline-block;
2644
  font-size: 14px;
2645
  color:#555;
2646
  padding: 10px;
2647
  width: %POLL-WIDTH%;
2648
  zoom: 1;
2649
  Error message
2650
  ..................................
2651
  font-size:.8em;
2652
  font-style:italic;
2653
  color:red;
2654
  text-transform:lowercase;
2655
  text-align:center;
2656
  Success message
2657
  ..................................
2658
  font-size:.8em;
2659
  font-style:italic;
2660
  color:green;
2661
  text-align:center;
2662
  Poll Question
2663
  ---------------------------------------------------------------------------
2664
  background:#FB6911;
2665
  color:#fff;
2666
  border: 0 none;
2667
  margin: 0 0 2em;
2668
  padding: .25em;
2669
  text-align: center;
2670
  font-size: 14px;
2671
  Poll Options / Answers
2672
  ---------------------------------------------------------------------------
2673
  list-style: none;
2674
  margin: 0;
2675
  padding: 0;
2676
  list-style: none;
2677
  margin: 0;
2678
  padding: 0;
2679
  font-size: 14px;
2680
  line-height: 2em;
2681
  Label
2682
  ..................................
2683
  margin:0px;
2684
  font-style:normal;
2685
  font-weight:normal;
2686
  font-size:14px;
2687
  float:none;
2688
  display:inline-block;
2689
  Custom answer / Other
2690
  ..................................
2691
  width: 100%;
2692
  overflow: hidden;
2693
  width: 94%;
2694
  overflow: hidden;
2695
  Custom checkbox and radio button style
2696
  ---------------------------------------------------------------------------
2697
  Custom fields
2698
  ---------------------------------------------------------------------------
2699
  clear: both;
2700
  list-style: none;
2701
  margin: 0;
2702
  padding: 0;
2703
  overflow: hidden;
2704
  width: 100%;
2705
  display: block;
2706
  font-size:14px;
2707
  list-style: none;
2708
  display: block;
2709
  width: 94%;
2710
  Vote Button
2711
  ---------------------------------------------------------------------------
2712
  cursor:pointer;
2713
  display: block;
2714
  font-size:14px;
2715
  margin: 0 auto;
2716
  }
2717
  Results
2718
  ---------------------------------------------------------------------------
2719
  font-size: 12px;
2720
  font-style: italic;
2721
  font-weight: normal;
2722
  margin-left: 15px;
2723
  color: #38595E;
2724
  Style for results that are displayed on columns
2725
  ..................................
2726
  float: left;
2727
  display: inline-block;
2728
  width: 46%;
2729
  padding: 1%;
2730
  margin: 1%;
2731
  float: right;
2732
  width: auto;
2733
  color:#000;
2734
  text-decoration:underline;
2735
  font-size:12px;
2736
  color:#000;
2737
  text-decoration:underline;
2738
  font-size:12px;
2739
  color:#000;
2740
  text-decoration:underline;
2741
  font-size:12px;
2742
  float:left;
2743
  width:100%;
2744
  Result Bar
2745
  ..................................
2746
  ---------------------------------------------------------------------------
2747
  EXTRAS
2748
  ---------------------------------------------------------------------------
2749
  CAPTCHA
2750
  ..................................
2751
  width:30px;
2752
  float:left;
2753
  margin-left:5px;
2754
  height:0px;
2755
  break;
2756
  }
2757
  case 'Orange v3':
2758
  { //Orange v3
2759
  $css = <<<NOWDOC
2760
  Main Container
2761
  ---------------------------------------------------------------------------
2762
  border:1px solid #000000;
2763
  color:#000000;
2764
  color:#000000;
2765
  background:#fff;
2766
  box-sizing: border-box;
2767
  display: inline-block;
2768
  font-size: 14px;
2769
  color:#555;
2770
  padding: 10px;
2771
  width: %POLL-WIDTH%;
2772
  zoom: 1;
2773
  border:5px solid #FB6911;
2774
  Error message
2775
  ..................................
2776
  font-size:.8em;
2777
  font-style:italic;
2778
  color:red;
2779
  text-transform:lowercase;
2780
  text-align:center;
2781
  Success message
2782
  ..................................
2783
  font-size:.8em;
2784
  font-style:italic;
2785
  color:green;
2786
  text-align:center;
2787
  Poll Question
2788
  ---------------------------------------------------------------------------
2789
  border: 0 none;
2790
  margin: 0 0 2em;
2791
  padding: .25em;
2792
  text-align: center;
2793
  font-size: 14px;
2794
  Poll Options / Answers
2795
  ---------------------------------------------------------------------------
2796
  list-style: none;
2797
  margin: 0;
2798
  padding: 0;
2799
  list-style: none;
2800
  margin: 0;
2801
  padding: 0;
2802
  font-size: 14px;
2803
  line-height: 2em;
2804
  Label
2805
  ..................................
2806
  margin:0px;
2807
  font-style:normal;
2808
  font-weight:normal;
2809
  font-size:14px;
2810
  float:none;
2811
  display:inline-block;
2812
  Custom answer / Other
2813
  ..................................
2814
  width: 100%;
2815
  overflow: hidden;
2816
  width: 94%;
2817
  overflow: hidden;
2818
  Custom checkbox and radio button style
2819
  ---------------------------------------------------------------------------
2820
  Custom fields
2821
  ---------------------------------------------------------------------------
2822
  clear: both;
2823
  list-style: none;
2824
  margin: 0;
2825
  padding: 0;
2826
  overflow: hidden;
2827
  width: 100%;
2828
  display: block;
2829
  font-size:14px;
2830
  list-style: none;
2831
  display: block;
2832
  width: 94%;
2833
  Vote Button
2834
  ---------------------------------------------------------------------------
2835
  cursor:pointer;
2836
  display: block;
2837
  font-size:14px;
2838
  margin: 0 auto;
2839
  }
2840
  Results
2841
  ---------------------------------------------------------------------------
2842
  font-size: 12px;
2843
  font-style: italic;
2844
  font-weight: normal;
2845
  margin-left: 15px;
2846
  color: #38595E;
2847
  Style for results that are displayed on columns
2848
  ..................................
2849
  float: left;
2850
  display: inline-block;
2851
  width: 46%;
2852
  padding: 1%;
2853
  margin: 1%;
2854
  float: right;
2855
  width: auto;
2856
  color:#000;
2857
  text-decoration:underline;
2858
  font-size:12px;
2859
  color:#000;
2860
  text-decoration:underline;
2861
  font-size:12px;
2862
  color:#000;
2863
  text-decoration:underline;
2864
  font-size:12px;
2865
  float:left;
2866
  width:100%;
2867
  Result Bar
2868
  ..................................
2869
  ---------------------------------------------------------------------------
2870
  EXTRAS
2871
  ---------------------------------------------------------------------------
2872
  CAPTCHA
2873
  ..................................
2874
  width:30px;
2875
  float:left;
2876
  margin-left:5px;
2877
  height:0px;
2878
  break;
2879
  }
2880
  }
2881
  $css.= "#yop-poll-container-%POLL-ID% img {
2882
  max-width: %POLL-WIDTH%;
2883
  $css = addslashes($css);
2884
  $before_vote_template = addslashes( $before_vote_template );
2885
  $sql .= "`before_vote_template` = '{$before_vote_template}',
2886
  $sql .= $wpdb->prepare( ' WHERE name = %s', $template_to_reset );
2887
  return $wpdb->query( $sql );
2888
  }
2889
  return 'html';
 
1
  return 'html';
2
  private static $_instance = NULL;
3
  protected function __construct() {
4
  parent::__construct( 'templates' );
5
  }
6
  public static function get_instance() {
7
  if ( self::$_instance == NULL ){
8
  $class = __CLASS__;
9
  self::$_instance = new $class;
10
  }
11
  return self::$_instance;
12
  }
13
  public function manage_templates() {
14
  switch ( $GLOBALS['page'] ) {
15
  default:
16
  $this->manage_options();
17
  break;
18
  }
19
  }
20
  public function admin_loader() {
21
  $this->wp_ajax_action( 'yop_poll_add_new_template_config' );
22
  }
23
  public function manage_load_templates() {
24
  wp_enqueue_script( 'yop-poll-admin-templates-js', YOP_POLL_URL . "js/yop-poll-admin-templates.js", array( 'jquery' ), YOP_POLL_VERSION, true );
25
  wp_enqueue_style( 'yop-poll-timepicker', YOP_POLL_URL . "css/timepicker.css", array(), YOP_POLL_VERSION );
26
  wp_enqueue_style( 'yop-poll-jquery-ui', YOP_POLL_URL . "css/jquery-ui.css", array(), YOP_POLL_VERSION );
27
  }
28
  public function id_used_template($id){
29
  global $wpdb;
30
  $results = $wpdb->get_results( $wpdb->prepare( "
31
  foreach($results as $result){
32
  $meta=unserialize($result->meta_value);
33
  // yop_poll_dump($result );
34
  if($meta['template']==$id||$meta['widget']==$id){
35
  return false;
36
  }
37
  }
38
  return true;
39
  }
40
  private function manage_options() {
41
  global $page, $action, $message;
42
  switch ( $action ) {
43
  case "after-buy":
44
  YOP_POLL_Pro_Admin::after_buy();
45
  break;
46
  case "do-buy":
47
  YOP_POLL_Pro_Admin::do_buy();
48
  break;
49
  case 'add-new-template':
50
  {
51
  self:: view_add_edit_templates( 'add-new' );
52
  break;
53
  }
54
  case 'delete':
55
  {
56
  $message = $this->delete_templates( $_GET );
57
  $this->view_templates();
58
  break;
59
  }
60
  case 'clone':
61
  {
62
  $message = $this->clone_templates( $_POST );
63
  $this->view_templates();
64
  break;
65
  }
66
  case 'edit':
67
  {
68
  self:: view_add_edit_templates( 'edit' );
69
  break;
70
  }
71
  default: {
72
  $this->view_templates();
73
  break;
74
  }
75
  }
76
  }
77
  public function view_templates() {
78
  wp_enqueue_script( 'yop-poll-admin-js', YOP_POLL_URL . '/js/polls/yop-poll-admin.js', array(
79
  'jquery',
80
  'jquery-ui-datepicker'
81
  ), YOP_POLL_VERSION, true );
82
  wp_enqueue_style( 'yop-poll-slider-css', YOP_POLL_URL . 'css/yop-poll-slider.css', array(), YOP_POLL_VERSION );
83
  wp_enqueue_script( 'yop-poll-slider-js', YOP_POLL_URL . 'js/yop-poll-slider.js', array(
84
  'jquery',
85
  'jquery-ui-dialog'
86
  ), YOP_POLL_VERSION, true );
87
  global $wpdb, $message;
88
  global $page, $action, $orderby, $order, $current_user;
89
  $orderby = ( empty ( $GLOBALS['orderby'] ) ) ? 'name' : $GLOBALS['orderby'];
90
  $order = ( empty ( $GLOBALS['order'] ) ) ? 'desc' : $GLOBALS['order'];
91
  $data['per_page'] = ( isset ( $_REQUEST ['per_page'] ) ? intval( $_REQUEST ['per_page'] ) : 100 );
92
  $data['page_no'] = isset ( $_REQUEST ['page_no'] ) ? ( int )$_REQUEST ['page_no'] : 1;
93
  $order_fields = array( 'name', 'last_modified' );
94
  $data['title'] = __yop_poll( "Templates" );
95
  $data['REQUEST'] = $_REQUEST;
96
  $data['poll_url'] =YOP_POLL_URL;
97
  $data['orderby'] = ( empty ( $data['REQUEST']['orderby'] ) ) ? 'name' : $data['REQUEST']['orderby'];
98
  $data['order'] = ( empty ( $data['REQUEST']['order'] ) ) ? 'desc' : $data['REQUEST']['order'];
99
  $data['order_direction'] = $this->make_order_array( $order_fields, 'asc', $orderby, ( 'desc' == $order ) ? 'asc' : 'desc' );
100
  $data['order_sortable'] = $this->make_order_array( $order_fields, 'sortable', $orderby, 'sorted' );
101
  $data['order_direction_reverse'] = $this->make_order_array( $order_fields, 'desc', $orderby, ( 'desc' == $order ) ? 'desc' : 'asc' );
102
  $data['search'] = array( 'fields' => array( 'name', 'last_modified' ), 'value' => isset ( $_REQUEST['s'] ) ? $_REQUEST ['s'] : '' );
103
  $data['yop_poll_templates'] = Yop_Poll_Model::get_yop_poll_templates_search( $data['orderby'], $data['order'], $data['search'], $data['page_no'] - 1, $data['per_page'] );
104
  $data['total_templates'] = self::count_yop_poll_templates_search( $data['orderby'], $data['order'], $data['search'] );
105
  $data['message'] = array( 'error' => $message['error'], 'succes' => $message['success'] );
106
  $data['templates'] = YOP_POLL_MODEL::get_yop_poll_templates_search( 'id', 'desc' );
107
  $n = count( $data['templates'] );
108
  for( $i = 0; $i < $n; $i ++ ) {
109
  $data['templates'][$i]['preview'] = YOP_POLL_Poll_Model::return_template_preview_html( $data['templates'][$i]['id'] );
110
  }
111
  if ( intval( $data['page_no'] ) > intval( $data['total_templates'] ) ){
112
  $data['page_no'] = 1;
113
  }
114
  $args = array(
115
  'base' => remove_query_arg(
116
  'page_no',
117
  $_SERVER ['REQUEST_URI'] ) . '%_%',
118
  'format' => '&page_no=%#%',
119
  'current' => max( 1, $data['page_no'] ),
120
  'total' => ceil( $data['total_templates'] / $data['per_page'] ),
121
  'prev_next' => true,
122
  'prev_text' => __( '&laquo;' ),
123
  'next_text' => __( '&raquo;' )
124
  );
125
  $data['pagination'] = paginate_links( $args );
126
  $_SERVER ['REQUEST_URI'] = remove_query_arg( array( 'action' ), $_SERVER ['REQUEST_URI'] );
127
  $data['request']['uri'] = $_SERVER["REQUEST_URI"];
128
  $this->display( 'templates.html', $data );
129
  }
130
  private function view_add_edit_templates( $act ) {
131
  global $action, $current_user;
132
  add_filter( 'wp_default_editor', 'force_default_editor' );
133
  $data['title'] = __yop_poll( "Templates" );
134
  $data['page_name'] = __yop_poll( 'Add New Poll Template' );
135
  $data['action_type'] = $action;
136
  $data['template_id'] = '';
137
  if ( 'edit' == $data['action_type'] ){
138
  $data['template_id'] = ( isset ( $_GET ['id'] ) ? intval( $_GET ['id'] ) : 0 );
139
  }
140
  $data['current_template'] = self::get_poll_template_from_database_by_id( $data['template_id'] );
141
  $data['template_author_name'] = self::get_poll_template_field_from_database_by_id( 1 );
142
  $this->display( 'templates_add_edit.html', $data );
143
  }
144
  public static function count_yop_poll_templates_search( $orderby = 'last_modified', $order = 'desc', $search = array( 'fields' => array(), 'value' => NULL ) ) {
145
  global $wpdb;
146
  $sql = "SELECT COUNT(*) AS templates_no FROM " . $wpdb->yop_poll_templates;
147
  $sql_search = '';
148
  if ( count( $search['fields'] ) > 0 ){
149
  $sql_search .= ' ( ';
150
  foreach ( $search['fields'] as $field ) {
151
  $sql_search .= $wpdb->prepare( ' `' . $field . '` like \'%%%s%%\' OR', $search['value'] );
152
  }
153
  $sql_search = trim( $sql_search, 'OR' );
154
  $sql_search .= ' ) ';
155
  }
156
  if ( count( $search['fields'] ) > 0 ){
157
  $sql .= ' WHERE ' . $sql_search;
158
  }
159
  $sql .= ' ORDER BY ' . $orderby . ' ' . $order;
160
  $result = $wpdb->get_var( $sql );
161
  return $result;
162
  }
163
  private function delete_templates( $request ) {
164
  global $message;
165
  $message['success'] = "";
166
  $message['error'] = "";
167
  if ( isset ( $_REQUEST ['templatecheck'] ) ){
168
  $bulktemplates = ( array )$_REQUEST ['templatecheck'];
169
  foreach ( $bulktemplates as $template_id ) {
170
  $template_id = ( int )$template_id;
171
  $message = self::delete_template_from_db( $template_id );
172
  }
173
  return $message;
174
  }
175
  else {
176
  if( check_admin_referer('yop-poll-templates-add-edit-action', 'yop-poll-templates-add-edit-name') ) {
177
  if ( isset ( $_REQUEST ['id'] ) ){
178
  if(self::id_used_template( $_REQUEST ['id'])){
179
  self::delete_template_from_db( $_REQUEST['id'] );
180
  }
181
  else $message['error']='This template is used to display a poll';
182
  }
183
  }
184
  else {
185
  wp_die( __yop_poll('You do not have enough permission to add a template'));
186
  }
187
  }
188
  return $message;
189
  }
190
  private function delete_template_from_db( $template_id ) {
191
  global $wpdb;
192
  $response['success'] = "";
193
  $response['error'] = "";
194
  if( check_admin_referer('yop-poll-templates-add-edit-action', 'yop-poll-templates-add-edit-name') ) {
195
  if ( current_user_can( 'delete_own_yop_polls_templates' ) ){
196
  $sql = $wpdb->query( $wpdb->prepare( "
197
  $template_id ) );
198
  if ( $sql ){
199
  $response['success'] = __yop_poll( 'Template deleted' );
200
  }
201
  else {
202
  $response['error'] = __yop_poll( 'Could not delete template from database! Please try again!' );
203
  }
204
  }
205
  else {
206
  $response['error'] = __yop_poll( 'You do not have enough permission to delete a template' );
207
  }
208
  return $response;
209
  }
210
  else {
211
  wp_die( __yop_poll('You do not have enough permission to add a template'));
212
  }
213
  }
214
  private function clone_templates( $request ) {
215
  global $message;
216
  $message['success'] = "";
217
  $message['error'] = "";
218
  if ( isset ( $_REQUEST ['templatecheck'] ) ){
219
  $bulktemplates = ( array )$_REQUEST ['templatecheck'];
220
  foreach ( $bulktemplates as $template_id ) {
221
  $template_details = self::get_poll_template_from_database_by_id( $template_id );
222
  $clone_number = self::count_poll_template_from_database_like_name( $template_details['name'] . ' - clone' );
223
  if ( $template_details ){
224
  $template = array( 'name' => $template_details['name'] . ' - clone' . ( 0 == $clone_number ? '' : $clone_number ), 'before_vote_template' => $template_details['before_vote_template'], 'after_vote_template' => $template_details['after_vote_template'], 'before_start_date_template' => $template_details['before_start_date_template'], 'after_end_date_template' => $template_details['after_end_date_template'], 'css' => $template_details['css'], 'js' => $template_details['js'], 'status' => ( 'default' == $template_details['status'] ) ? 'other' : $template_details['status'], 'date_added' => NULL, 'last_modified' => NULL );
225
  $message = self::insert_poll_template_to_database( $template );
226
  }
227
  }
228
  $this->view_templates();
229
  }
230
  else {
231
  if ( isset ( $_REQUEST ['id'] ) ){
232
  $template_details = self::get_poll_template_from_database_by_id( $_REQUEST ['id'] );
233
  $clone_number = self::count_poll_template_from_database_like_name( $template_details['name'] . ' - clone' );
234
  if ( $template_details ){
235
  $template = array( 'name' => $template_details['name'] . ' - clone' . ( 0 == $clone_number ? '' : $clone_number ), 'before_vote_template' => $template_details['before_vote_template'], 'after_vote_template' => $template_details['after_vote_template'], 'before_start_date_template' => $template_details['before_start_date_template'], 'after_end_date_template' => $template_details['after_end_date_template'], 'css' => $template_details['css'], 'js' => $template_details['js'], 'status' => ( 'default' == $template_details['status'] ) ? 'other' : $template_details['status'], 'date_added' => NULL, 'last_modified' => NULL );
236
  return self::insert_poll_template_to_database( $template );
237
  }
238
  }
239
  $this->view_templates();
240
  }
241
  $this->view_templates();
242
  }
243
  private static function get_poll_template_from_database_by_id( $template_id = 0 ) {
244
  global $wpdb;
245
  $result = $wpdb->get_row( $wpdb->prepare( "
246
  return $result;
247
  }
248
  private static function count_poll_template_from_database_like_name( $template_name ) {
249
  global $wpdb;
250
  $result = $wpdb->get_var( $wpdb->prepare( "
251
  return $result;
252
  }
253
  private static function insert_poll_template_to_database( $template ) {
254
  $response['success'] = "";
255
  $response['error'] = "";
256
  global $wpdb;
257
  global $current_user;
258
  wp_get_current_user();
259
  if( check_admin_referer('yop-poll-templates-add-edit-action', 'yop-poll-templates-add-edit-name') ) {
260
  if ( current_user_can( 'clone_own_yop_polls_templates' ) ){
261
  $sql = $wpdb->query( $wpdb->prepare( "
262
  if ( $sql ){
263
  $response['success'] = __yop_poll( 'Template cloned!' );
264
  }
265
  else {
266
  $response['error'] = __yop_poll( 'Could not clone template from database! Please try again!' );
267
  }
268
  }
269
  else {
270
  $response['error'] = __yop_poll( 'You do not have enough permission to clone a template' );
271
  }
272
  return $response;
273
  }
274
  else {
275
  wp_die( __yop_poll( 'You do not have enough permission to add a template' ) );
276
  }
277
  }
278
  public function do_add_edit_template() {
279
  if ( 'add-new' == $_POST['action'] ){
280
  if ( ( !current_user_can( 'edit_yop_polls_templates' ) ) && ( !current_user_can( 'edit_yop_polls' ) ) ){
281
  wp_die( __yop_poll( 'You are not allowed to edit this item.' ) );
282
  }
283
  }
284
  self::save_template();
285
  }
286
  public function do_reset_template() {
287
  if ( ( !current_user_can( 'edit_yop_polls_templates' ) ) && ( !current_user_can( 'edit_yop_polls' ) ) ){
288
  wp_die( __yop_poll( 'You are not allowed to reset this item.' ) );
289
  }
290
  self::reset_template();
291
  }
292
  private static function reset_template() {
293
  $template['name'] = $_POST['yop_poll_template_name'];
294
  $template['before_vote_template'] = $_POST['yop-poll-before-vote-template-input'];
295
  $template['after_vote_template'] = $_POST['yop-poll-after-vote-template-input'];
296
  $template['before_start_date_template'] = $_POST['yop-poll-template-before-start-date-input'];
297
  $template['after_end_date_template'] = $_POST['yop-poll-template-after-end-date-input'];
298
  $template['css'] = $_POST['yop-poll-template-css-input'];
299
  $template['js'] = $_POST['yop-poll-template-js-input'];
300
  $template['status'] = "other";
301
  $template['id'] = $_POST['template_id'];
302
  $data['action'] = $_POST['action'];
303
  $data['name'] = $_POST['yop_poll_reset_template_id'];
304
  $result = self::add_update_templates_in_database( $data['action'], $data['name'], $template['name'] );
305
  if ( $result ){
306
  wp_die( __yop_poll( 'Template reseted!' ) );
307
  }
308
  else {
309
  wp_die( __yop_poll( 'Could not resete template in database! Please try again!' ) );
310
  }
311
  }
312
  private static function save_template() {
313
  $template['name'] = $_POST['yop_poll_template_name'];
314
  $template['before_vote_template'] = $_POST['yop-poll-before-vote-template-input'];
315
  $template['after_vote_template'] = $_POST['yop-poll-after-vote-template-input'];
316
  $template['before_start_date_template'] = $_POST['yop-poll-template-before-start-date-input'];
317
  $template['after_end_date_template'] = $_POST['yop-poll-template-after-end-date-input'];
318
  $template['css'] = $_POST['yop-poll-template-css-input'];
319
  $template['js'] = $_POST['yop-poll-template-js-input'];
320
  $template['status'] = "other";
321
  $template['id'] = $_POST['template_id'];
322
  if ( $_POST['action_type'] == "add-new-template" ){
323
  if ( $template['name'] != "" ){
324
  $result = self::get_poll_template_from_database_by_name( $template['name'] );
325
  if ( $result ){
326
  wp_die( __yop_poll( 'This template already exists! Please choose another name!' ) );
327
  }
328
  }
329
  else {
330
  wp_die( __yop_poll( 'Please enter a template name!' ) );
331
  }
332
  $result = self:: insert_poll_template_to_database( $template );
333
  if ( $result ){
334
  wp_die( __yop_poll( 'Template added!' ) );
335
  }
336
  else {
337
  wp_die( __yop_poll( 'Could not add template in database! Please try again!' ) );
338
  }
339
  }
340
  else {
341
  if ( $_POST['action_type'] == "edit" ){
342
  if ( $template['name'] == "" ){
343
  wp_die( __yop_poll( 'Please enter a template name!' ) );
344
  }
345
  else {
346
  $result = self:: update_poll_template_in_database( $template );
347
  if ( $result ){
348
  wp_die( __yop_poll( 'Template edited!' ) );
349
  }
350
  else {
351
  wp_die( __yop_poll( 'Could not edit template in database! Please try again!' ) );
352
  }
353
  }
354
  }
355
  }
356
  }
357
  private static function get_poll_template_field_from_database_by_id( $template_id ) {
358
  global $wpdb;
359
  $result = $wpdb->get_row( $wpdb->prepare( "
360
  return $result;
361
  }
362
  private static function get_poll_template_from_database_by_name( $template_name ) {
363
  global $wpdb;
364
  $sql = $wpdb->query( $wpdb->prepare( "
365
  return $sql;
366
  }
367
  private static function update_poll_template_in_database( $template ) {
368
  global $wpdb;
369
  $sql = $wpdb->query( $wpdb->prepare( "
370
  return $sql;
371
  }
372
  private static function add_update_templates_in_database( $action = 'add', $template_name, $template_to_reset ) {
373
  global $wpdb;
374
  global $current_user;
375
  wp_get_current_user();
376
  $sql = "UPDATE `" . $wpdb->yop_poll_templates . "` SET ";
377
  $before_vote_template = <<<NOWDOC
378
  class = "yop-poll-question-%POLL-ID%">%POLL-QUESTION%</div>
379
  [ANSWER_DESCRIPTION_CONTAINER]
380
  <span class = "yop-poll-description-%POLL-ID%">%ANSWER-DESCRIPTION%</span>
381
  [/ANSWER_DESCRIPTION_CONTAINER]
382
  [ANSWER_RESULT_CONTAINER]
383
  [/ANSWER_RESULT_CONTAINER]
384
  class = "yop-poll-results-text-%POLL-ID%">%POLL-ANSWER-RESULT-LABEL%</span>
385
  $after_vote_template = <<<NOWDOC
386
  class = "yop-poll-question-%POLL-ID%">%POLL-QUESTION%</div>
387
  [ANSWER_DESCRIPTION_CONTAINER]
388
  <span class = "yop-poll-description-%POLL-ID%">%ANSWER-DESCRIPTION%</span>
389
  [/ANSWER_DESCRIPTION_CONTAINER]
390
  class = "pds-feedback-result-%POLL-ID%">
391
  <div>
392
  %POLL-ANSWER-RESULT-BAR%
393
  </div>
394
  $after_vote_template = addslashes( $after_vote_template );
395
  $before_start_date_template = <<<NOWDOC
396
  start on %POLL-START-DATE%<br>
397
  $before_start_date_template = addslashes( $before_start_date_template );
398
  $after_end_date_template = <<<NOWDOC
399
  class = "yop-poll-question-%POLL-ID%">%POLL-QUESTION%</div>
400
  [ANSWER_DESCRIPTION_CONTAINER]
401
  <span class = "yop-poll-description-%POLL-ID%">%ANSWER-DESCRIPTION%</span>
402
  [/ANSWER_DESCRIPTION_CONTAINER]
403
  class = "pds-feedback-result-%POLL-ID%">
404
  <div>
405
  %POLL-ANSWER-RESULT-BAR%
406
  </div>
407
  $after_end_date_template = addslashes( $after_end_date_template );
408
  $js = <<<NOWDOC
409
  $js = addslashes( $js );
410
  $css = "";
411
  switch( $template_name ) {
412
  case 'White':
413
  { //White
414
  $css = <<<NOWDOC
415
  margin-top: -37px;
416
  text-align:center;
417
  text-align:center;
418
  break;
419
  }
420
  case 'Grey':
421
  { //Grey
422
  $css = <<<NOWDOC
423
  margin-bottom: 35px;
424
  margin-top: -37px;
425
  text-align:center;
426
  margin-bottom:20px;
427
  text-align:center;
428
  text-align:center;
429
  break;
430
  }
431
  case 'Dark':
432
  { //Dark
433
  $css = <<<NOWDOC
434
  margin-top: -37px;
435
  text-align:center;
436
  text-align:center;
437
  break;
438
  }
439
  case 'Blue v1':
440
  { //Blue v1
441
  $css = <<<NOWDOC
442
  margin-bottom: 35px;
443
  margin-top: -39px;
444
  text-align:center;
445
  text-align:center;
446
  break;
447
  }
448
  case 'Blue v2':
449
  { //Blue v2
450
  $css = <<<NOWDOC
451
  margin-top: -52px;
452
  padding:5px;
453
  text-align:center;
454
  text-align:center;
455
  break;
456
  }
457
  case 'Blue v3':
458
  { //Blue v3
459
  $css = <<<NOWDOC
460
  margin-top: -52px;
461
  text-align:center;
462
  text-align:center;
463
  break;
464
  }
465
  case 'Red v1':
466
  { //Red v1
467
  $css = <<<NOWDOC
468
  margin-bottom: 35px;
469
  margin-top: -47px;
470
  text-align:center;
471
  text-align:center;
472
  break;
473
  }
474
  case 'Red v2':
475
  { //Red v2
476
  $css = <<<NOWDOC
477
  margin-bottom: 35px;
478
  margin-top: -39px;
479
  margin-bottom:20px;
480
  text-align:center;
481
  text-align:center;
482
  break;
483
  }
484
  case 'Red v3':
485
  { //Red v3
486
  $css = <<<NOWDOC
487
  margin-bottom: 35px;
488
  margin-top: -39px;
489
  text-align:center;
490
  text-align:center;
491
  break;
492
  }
493
  case 'Green v1':
494
  { //Green v1
495
  $css = <<<NOWDOC
496
  margin-bottom: 35px;
497
  margin-top: -31px;
498
  text-align:center;
499
  text-align:center;
500
  break;
501
  }
502
  case 'Green v2':
503
  { //Green v2
504
  $css = <<<NOWDOC
505
  margin-bottom: 35px;
506
  margin-top: -21px;
507
  text-align:center;
508
  text-align:center;
509
  break;
510
  }
511
  case 'Green v3':
512
  { //Green v3
513
  $css = <<<NOWDOC
514
  margin-bottom: 35px;
515
  margin-top: -39px;
516
  text-align:center;
517
  text-align:center;
518
  break;
519
  }
520
  case 'Orange v1':
521
  { //Orange v1
522
  $css = <<<NOWDOC
523
  margin-bottom: 35px;
524
  margin-top: -31px;
525
  text-align:center;
526
  margin-bottom:20px;
527
  text-align:center;
528
  break;
529
  }
530
  case 'Orange v2':
531
  { //Orange v2
532
  $css = <<<NOWDOC
533
  margin-bottom: 35px;
534
  margin-top: -35px;
535
  text-align:center;
536
  text-align:center;
537
  break;
538
  }
539
  case 'Orange v3':
540
  { //Orange v3
541
  $css = <<<NOWDOC
542
  margin-bottom: 35px;
543
  margin-top: -46px;
544
  text-align:center;
545
  text-align:center;
546
  break;
547
  }
548
  }
549
  $css.= "#yop-poll-container-%POLL-ID% img {
550
  max-width: %POLL-WIDTH%;
551
  $css = addslashes($css);
552
  $before_vote_template = addslashes( $before_vote_template );
553
  $sql .= "`before_vote_template` = '{$before_vote_template}',
554
  $sql .= $wpdb->prepare( ' WHERE name = %s', $template_to_reset );
555
  return $wpdb->query( $sql );
556
  }
557
+ <?php
558
  private static $_instance = NULL;
559
  protected function __construct() {
560
  parent::__construct( 'templates' );
561
  }
562
  public static function get_instance() {
563
  if ( self::$_instance == NULL ){
564
  $class = __CLASS__;
565
  self::$_instance = new $class;
566
  }
567
  return self::$_instance;
568
  }
569
  public function manage_templates() {
570
  switch ( $GLOBALS['page'] ) {
571
  default:
572
  $this->manage_options();
573
  break;
574
  }
575
  }
576
  public function admin_loader() {
577
  $this->wp_ajax_action( 'yop_poll_add_new_template_config' );
578
  }
579
  public function manage_load_templates() {
580
  wp_enqueue_script( 'yop-poll-admin-templates-js', YOP_POLL_URL . "js/yop-poll-admin-templates.js", array( 'jquery' ), YOP_POLL_VERSION, true );
581
  wp_enqueue_style( 'yop-poll-timepicker', YOP_POLL_URL . "css/timepicker.css", array(), YOP_POLL_VERSION );
582
  wp_enqueue_style( 'yop-poll-jquery-ui', YOP_POLL_URL . "css/jquery-ui.css", array(), YOP_POLL_VERSION );
583
  }
584
  public function id_used_template($id){
585
  global $wpdb;
586
  $results = $wpdb->get_results( $wpdb->prepare( "
587
  foreach($results as $result){
588
  $meta=unserialize($result->meta_value);
589
  // yop_poll_dump($result );
590
  if($meta['template']==$id||$meta['widget']==$id){
591
  return false;
592
  }
593
  }
594
  return true;
595
  }
596
  private function manage_options() {
597
  global $page, $action, $message;
598
  switch ( $action ) {
599
  case "after-buy":
600
  YOP_POLL_Pro_Admin::after_buy();
601
  break;
602
  case "do-buy":
603
  YOP_POLL_Pro_Admin::do_buy();
604
  break;
605
  case 'add-new-template':
606
  {
607
  self:: view_add_edit_templates( 'add-new' );
608
  break;
609
  }
610
  case 'delete':
611
  {
612
  $message = $this->delete_templates( $_GET );
613
  $this->view_templates();
614
  break;
615
  }
616
  case 'clone':
617
  {
618
  $message = $this->clone_templates( $_POST );
619
  $this->view_templates();
620
  break;
621
  }
622
  case 'edit':
623
  {
624
  self:: view_add_edit_templates( 'edit' );
625
  break;
626
  }
627
  default: {
628
  $this->view_templates();
629
  break;
630
  }
631
  }
632
  }
633
  public function view_templates() {
634
  wp_enqueue_script( 'yop-poll-admin-js', YOP_POLL_URL . '/js/polls/yop-poll-admin.js', array(
635
  'jquery',
636
  'jquery-ui-datepicker'
637
  ), YOP_POLL_VERSION, true );
638
  wp_enqueue_style( 'yop-poll-slider-css', YOP_POLL_URL . 'css/yop-poll-slider.css', array(), YOP_POLL_VERSION );
639
  wp_enqueue_script( 'yop-poll-slider-js', YOP_POLL_URL . 'js/yop-poll-slider.js', array(
640
  'jquery',
641
  'jquery-ui-dialog'
642
  ), YOP_POLL_VERSION, true );
643
  global $wpdb, $message;
644
  global $page, $action, $orderby, $order, $current_user;
645
  $orderby = ( empty ( $GLOBALS['orderby'] ) ) ? 'name' : $GLOBALS['orderby'];
646
  $order = ( empty ( $GLOBALS['order'] ) ) ? 'desc' : $GLOBALS['order'];
647
  $data['per_page'] = ( isset ( $_REQUEST ['per_page'] ) ? intval( $_REQUEST ['per_page'] ) : 100 );
648
  $data['page_no'] = isset ( $_REQUEST ['page_no'] ) ? ( int )$_REQUEST ['page_no'] : 1;
649
  $order_fields = array( 'name', 'last_modified' );
650
  $data['title'] = __yop_poll( "Templates" );
651
  $data['REQUEST'] = $_REQUEST;
652
  $data['poll_url'] =YOP_POLL_URL;
653
  $data['orderby'] = ( empty ( $data['REQUEST']['orderby'] ) ) ? 'name' : $data['REQUEST']['orderby'];
654
  $data['order'] = ( empty ( $data['REQUEST']['order'] ) ) ? 'desc' : $data['REQUEST']['order'];
655
  $data['order_direction'] = $this->make_order_array( $order_fields, 'asc', $orderby, ( 'desc' == $order ) ? 'asc' : 'desc' );
656
  $data['order_sortable'] = $this->make_order_array( $order_fields, 'sortable', $orderby, 'sorted' );
657
  $data['order_direction_reverse'] = $this->make_order_array( $order_fields, 'desc', $orderby, ( 'desc' == $order ) ? 'desc' : 'asc' );
658
  $data['search'] = array( 'fields' => array( 'name', 'last_modified' ), 'value' => isset ( $_REQUEST['s'] ) ? $_REQUEST ['s'] : '' );
659
  $data['yop_poll_templates'] = Yop_Poll_Model::get_yop_poll_templates_search( $data['orderby'], $data['order'], $data['search'], $data['page_no'] - 1, $data['per_page'] );
660
  $data['total_templates'] = self::count_yop_poll_templates_search( $data['orderby'], $data['order'], $data['search'] );
661
  $data['message'] = array( 'error' => $message['error'], 'succes' => $message['success'] );
662
  $data['templates'] = YOP_POLL_MODEL::get_yop_poll_templates_search( 'id', 'desc' );
663
  $n = count( $data['templates'] );
664
  for( $i = 0; $i < $n; $i ++ ) {
665
  $data['templates'][$i]['preview'] = YOP_POLL_Poll_Model::return_template_preview_html( $data['templates'][$i]['id'] );
666
  }
667
  if ( intval( $data['page_no'] ) > intval( $data['total_templates'] ) ){
668
  $data['page_no'] = 1;
669
  }
670
  $args = array(
671
  'base' => remove_query_arg(
672
  'page_no',
673
  $_SERVER ['REQUEST_URI'] ) . '%_%',
674
  'format' => '&page_no=%#%',
675
  'current' => max( 1, $data['page_no'] ),
676
  'total' => ceil( $data['total_templates'] / $data['per_page'] ),
677
  'prev_next' => true,
678
  'prev_text' => __( '&laquo;' ),
679
  'next_text' => __( '&raquo;' )
680
  );
681
  $data['pagination'] = paginate_links( $args );
682
  $_SERVER ['REQUEST_URI'] = remove_query_arg( array( 'action' ), $_SERVER ['REQUEST_URI'] );
683
  $data['request']['uri'] = $_SERVER["REQUEST_URI"];
684
  $this->display( 'templates.html', $data );
685
  }
686
  private function view_add_edit_templates( $act ) {
687
  global $action, $current_user;
688
  add_filter( 'wp_default_editor', 'force_default_editor' );
689
  $data['title'] = __yop_poll( "Templates" );
690
  $data['page_name'] = __yop_poll( "Add New Poll Template" );
691
  $data['action_type'] = $action;
692
  $data['template_id'] = '';
693
  if ( 'edit' == $data['action_type'] ){
694
  $data['template_id'] = ( isset ( $_GET ['id'] ) ? intval( $_GET ['id'] ) : 0 );
695
  }
696
  $data['current_template'] = self::get_poll_template_from_database_by_id( $data['template_id'] );
697
  $data['template_author_name'] = self::get_poll_template_field_from_database_by_id( 1 );
698
  $this->display( 'templates_add_edit.html', $data );
699
  }
700
  public static function count_yop_poll_templates_search( $orderby = 'last_modified', $order = 'desc', $search = array( 'fields' => array(), 'value' => NULL ) ) {
701
  global $wpdb;
702
  $sql = "SELECT COUNT(*) AS templates_no FROM " . $wpdb->yop_poll_templates;
703
  $sql_search = '';
704
  if ( count( $search['fields'] ) > 0 ){
705
  $sql_search .= ' ( ';
706
  foreach ( $search['fields'] as $field ) {
707
  $sql_search .= $wpdb->prepare( ' `' . $field . '` like \'%%%s%%\' OR', $search['value'] );
708
  }
709
  $sql_search = trim( $sql_search, 'OR' );
710
  $sql_search .= ' ) ';
711
  }
712
  if ( count( $search['fields'] ) > 0 ){
713
  $sql .= ' WHERE ' . $sql_search;
714
  }
715
  $sql .= ' ORDER BY ' . $orderby . ' ' . $order;
716
  $result = $wpdb->get_var( $sql );
717
  return $result;
718
  }
719
  private function delete_templates( $request ) {
720
  global $message;
721
  $message['success'] = "";
722
  $message['error'] = "";
723
  if ( isset ( $_REQUEST ['templatecheck'] ) ){
724
  $bulktemplates = ( array )$_REQUEST ['templatecheck'];
725
  foreach ( $bulktemplates as $template_id ) {
726
  $template_id = ( int )$template_id;
727
  $message = self::delete_template_from_db( $template_id );
728
  }
729
  return $message;
730
  }
731
  else {
732
  if( check_admin_referer('yop-poll-templates-add-edit-action', 'yop-poll-templates-add-edit-name') ) {
733
  if ( isset ( $_REQUEST ['id'] ) ){
734
  if(self::id_used_template( $_REQUEST ['id'])){
735
  self::delete_template_from_db( $_REQUEST['id'] );
736
  }
737
  else $message['error']='This template is used to display a poll';
738
  }
739
  }
740
  else {
741
  wp_die( __yop_poll('You do not have enough permission to add a template'));
742
  }
743
  }
744
  return $message;
745
  }
746
  private function delete_template_from_db( $template_id ) {
747
  global $wpdb;
748
  $response['success'] = "";
749
  $response['error'] = "";
750
  if( check_admin_referer('yop-poll-templates-add-edit-action', 'yop-poll-templates-add-edit-name') ) {
751
  if ( current_user_can( 'delete_own_yop_polls_templates' ) ){
752
  $sql = $wpdb->query( $wpdb->prepare( "
753
  $template_id ) );
754
  if ( $sql ){
755
  $response['success'] = __yop_poll( 'Template deleted' );
756
  }
757
  else {
758
  $response['error'] = __yop_poll( 'Could not delete template from database! Please try again!' );
759
  }
760
  }
761
  else {
762
  $response['error'] = __yop_poll( 'You do not have enough permission to delete a template' );
763
  }
764
  return $response;
765
  }
766
  else {
767
  wp_die( __yop_poll('You do not have enough permission to add a template'));
768
  }
769
  }
770
  private function clone_templates( $request ) {
771
  global $message;
772
  $message['success'] = "";
773
  $message['error'] = "";
774
  if ( isset ( $_REQUEST ['templatecheck'] ) ){
775
  $bulktemplates = ( array )$_REQUEST ['templatecheck'];
776
  foreach ( $bulktemplates as $template_id ) {
777
  $template_details = self::get_poll_template_from_database_by_id( $template_id );
778
  $clone_number = self::count_poll_template_from_database_like_name( $template_details['name'] . ' - clone' );
779
  if ( $template_details ){
780
  $template = array( 'name' => $template_details['name'] . ' - clone' . ( 0 == $clone_number ? '' : $clone_number ), 'before_vote_template' => $template_details['before_vote_template'], 'after_vote_template' => $template_details['after_vote_template'], 'before_start_date_template' => $template_details['before_start_date_template'], 'after_end_date_template' => $template_details['after_end_date_template'], 'css' => $template_details['css'], 'js' => $template_details['js'], 'status' => ( 'default' == $template_details['status'] ) ? 'other' : $template_details['status'], 'date_added' => NULL, 'last_modified' => NULL );
781
  $message = self::insert_poll_template_to_database( $template );
782
  }
783
  }
784
  $this->view_templates();
785
  }
786
  else {
787
  if ( isset ( $_REQUEST ['id'] ) ){
788
  $template_details = self::get_poll_template_from_database_by_id( $_REQUEST ['id'] );
789
  $clone_number = self::count_poll_template_from_database_like_name( $template_details['name'] . ' - clone' );
790
  if ( $template_details ){
791
  $template = array( 'name' => $template_details['name'] . ' - clone' . ( 0 == $clone_number ? '' : $clone_number ), 'before_vote_template' => $template_details['before_vote_template'], 'after_vote_template' => $template_details['after_vote_template'], 'before_start_date_template' => $template_details['before_start_date_template'], 'after_end_date_template' => $template_details['after_end_date_template'], 'css' => $template_details['css'], 'js' => $template_details['js'], 'status' => ( 'default' == $template_details['status'] ) ? 'other' : $template_details['status'], 'date_added' => NULL, 'last_modified' => NULL );
792
  return self::insert_poll_template_to_database( $template );
793
  }
794
  }
795
  $this->view_templates();
796
  }
797
  $this->view_templates();
798
  }
799
  private static function get_poll_template_from_database_by_id( $template_id = 0 ) {
800
  global $wpdb;
801
  $result = $wpdb->get_row( $wpdb->prepare( "
802
  return $result;
803
  }
804
  private static function count_poll_template_from_database_like_name( $template_name ) {
805
  global $wpdb;
806
  $result = $wpdb->get_var( $wpdb->prepare( "
807
  return $result;
808
  }
809
  private static function insert_poll_template_to_database( $template ) {
810
  $response['success'] = "";
811
  $response['error'] = "";
812
  global $wpdb;
813
  global $current_user;
814
  wp_get_current_user();
815
  if( check_admin_referer('yop-poll-templates-add-edit-action', 'yop-poll-templates-add-edit-name') ) {
816
  if ( current_user_can( 'clone_own_yop_polls_templates' ) ){
817
  $sql = $wpdb->query( $wpdb->prepare( "
818
  if ( $sql ){
819
  $response['success'] = __yop_poll( 'Template cloned!' );
820
  }
821
  else {
822
  $response['error'] = __yop_poll( 'Could not clone template from database! Please try again!' );
823
  }
824
  }
825
  else {
826
  $response['error'] = __yop_poll( 'You do not have enough permission to clone a template' );
827
  }
828
  return $response;
829
  }
830
  else {
831
  wp_die( __yop_poll( 'You do not have enough permission to add a template' ) );
832
  }
833
  }
834
  public function do_add_edit_template() {
835
  if ( 'add-new' == $_POST['action'] ){
836
  if ( ( !current_user_can( 'edit_yop_polls_templates' ) ) && ( !current_user_can( 'edit_yop_polls' ) ) ){
837
  wp_die( __yop_poll( 'You are not allowed to edit this item.' ) );
838
  }
839
  }
840
  self::save_template();
841
  }
842
  public function do_reset_template() {
843
  if ( ( !current_user_can( 'edit_yop_polls_templates' ) ) && ( !current_user_can( 'edit_yop_polls' ) ) ){
844
  wp_die( __yop_poll( 'You are not allowed to reset this item.' ) );
845
  }
846
  self::reset_template();
847
  }
848
  private static function reset_template() {
849
  $template['name'] = $_POST['yop_poll_template_name'];
850
  $template['before_vote_template'] = $_POST['yop-poll-before-vote-template-input'];
851
  $template['after_vote_template'] = $_POST['yop-poll-after-vote-template-input'];
852
  $template['before_start_date_template'] = $_POST['yop-poll-template-before-start-date-input'];
853
  $template['after_end_date_template'] = $_POST['yop-poll-template-after-end-date-input'];
854
  $template['css'] = $_POST['yop-poll-template-css-input'];
855
  $template['js'] = $_POST['yop-poll-template-js-input'];
856
  $template['status'] = "other";
857
  $template['id'] = $_POST['template_id'];
858
  $data['action'] = $_POST['action'];
859
  $data['name'] = $_POST['yop_poll_reset_template_id'];
860
  $result = self::add_update_templates_in_database( $data['action'], $data['name'], $template['name'] );
861
  if ( $result ){
862
  wp_die( __yop_poll( 'Template reseted!' ) );
863
  }
864
  else {
865
  wp_die( __yop_poll( 'Could not resete template in database! Please try again!' ) );
866
  }
867
  }
868
  private static function save_template() {
869
  $template['name'] = $_POST['yop_poll_template_name'];
870
  $template['before_vote_template'] = $_POST['yop-poll-before-vote-template-input'];
871
  $template['after_vote_template'] = $_POST['yop-poll-after-vote-template-input'];
872
  $template['before_start_date_template'] = $_POST['yop-poll-template-before-start-date-input'];
873
  $template['after_end_date_template'] = $_POST['yop-poll-template-after-end-date-input'];
874
  $template['css'] = $_POST['yop-poll-template-css-input'];
875
  $template['js'] = $_POST['yop-poll-template-js-input'];
876
  $template['status'] = "other";
877
  $template['id'] = $_POST['template_id'];
878
  if ( $_POST['action_type'] == "add-new-template" ){
879
  if ( $template['name'] != "" ){
880
  $result = self::get_poll_template_from_database_by_name( $template['name'] );
881
  if ( $result ){
882
  wp_die( __yop_poll( 'This template already exists! Please choose another name!' ) );
883
  }
884
  }
885
  else {
886
  wp_die( __yop_poll( 'Please enter a template name!' ) );
887
  }
888
  $result = self:: insert_poll_template_to_database( $template );
889
  if ( $result ){
890
  wp_die( __yop_poll( 'Template added!' ) );
891
  }
892
  else {
893
  wp_die( __yop_poll( 'Could not add template in database! Please try again!' ) );
894
  }
895
  }
896
  else {
897
  if ( $_POST['action_type'] == "edit" ){
898
  if ( $template['name'] == "" ){
899
  wp_die( __yop_poll( 'Please enter a template name!' ) );
900
  }
901
  else {
902
  $result = self:: update_poll_template_in_database( $template );
903
  if ( $result ){
904
  wp_die( __yop_poll( 'Template edited!' ) );
905
  }
906
  else {
907
  wp_die( __yop_poll( 'Could not edit template in database! Please try again!' ) );
908
  }
909
  }
910
  }
911
  }
912
  }
913
  private static function get_poll_template_field_from_database_by_id( $template_id ) {
914
  global $wpdb;
915
  $result = $wpdb->get_row( $wpdb->prepare( "
916
  return $result;
917
  }
918
  private static function get_poll_template_from_database_by_name( $template_name ) {
919
  global $wpdb;
920
  $sql = $wpdb->query( $wpdb->prepare( "
921
  return $sql;
922
  }
923
  private static function update_poll_template_in_database( $template ) {
924
  global $wpdb;
925
  $sql = $wpdb->query( $wpdb->prepare( "
926
  return $sql;
927
  }
928
  private static function add_update_templates_in_database( $action = 'add', $template_name, $template_to_reset ) {
929
  global $wpdb;
930
  global $current_user;
931
  wp_get_current_user();
932
  $sql = "UPDATE `" . $wpdb->yop_poll_templates . "` SET ";
933
  $before_vote_template = <<<NOWDOC
934
  class = "yop-poll-question-%POLL-ID%">%POLL-QUESTION%</div>
935
  [ANSWER_DESCRIPTION_CONTAINER]
936
  <span class = "yop-poll-description-%POLL-ID%">%ANSWER-DESCRIPTION%</span>
937
  [/ANSWER_DESCRIPTION_CONTAINER]
938
  [ANSWER_RESULT_CONTAINER]
939
  [/ANSWER_RESULT_CONTAINER]
940
  class = "yop-poll-results-text-%POLL-ID%">%POLL-ANSWER-RESULT-LABEL%</span>
941
  $after_vote_template = <<<NOWDOC
942
  class = "yop-poll-question-%POLL-ID%">%POLL-QUESTION%</div>
943
  [ANSWER_DESCRIPTION_CONTAINER]
944
  <span class = "yop-poll-description-%POLL-ID%">%ANSWER-DESCRIPTION%</span>
945
  [/ANSWER_DESCRIPTION_CONTAINER]
946
  class = "pds-feedback-result-%POLL-ID%">
947
  <div>
948
  %POLL-ANSWER-RESULT-BAR%
949
  </div>
950
  $after_vote_template = addslashes( $after_vote_template );
951
  $before_start_date_template = <<<NOWDOC
952
  start on %POLL-START-DATE%<br>
953
  $before_start_date_template = addslashes( $before_start_date_template );
954
  $after_end_date_template = <<<NOWDOC
955
  class = "yop-poll-question-%POLL-ID%">%POLL-QUESTION%</div>
956
  [ANSWER_DESCRIPTION_CONTAINER]
957
  <span class = "yop-poll-description-%POLL-ID%">%ANSWER-DESCRIPTION%</span>
958
  [/ANSWER_DESCRIPTION_CONTAINER]
959
  class = "pds-feedback-result-%POLL-ID%">
960
  <div>
961
  %POLL-ANSWER-RESULT-BAR%
962
  </div>
963
  $after_end_date_template = addslashes( $after_end_date_template );
964
  $js = <<<NOWDOC
965
  jQuery('.yop-poll-forms').removeClass('yop-poll-forms-display');
966
  findWidest = typeof findWidest !== "undefined" ? findWidest : false;
967
  var quest=0;
968
  if ( findWidest ) {
969
  obj.each(function() {
970
  var thisWidth = jQuery(this).width();
971
  width = parseInt(thisWidth / cols);
972
  jQuery(this).width(width);
973
  jQuery(this).css("float", "left");
974
  });
975
  }
976
  else {
977
  var widest = 0;
978
  var count = 0;
979
  var poz_each_question=0;
980
  obj.each(function() {
981
  count++;
982
  cols[quest][2]=(jQuery('#yop-poll-answers-%POLL-ID%-'+ cols[quest][3] +' li').length);
983
  var thisWidth = jQuery(this).width();
984
  if(thisWidth > widest) {
985
  widest = thisWidth;
986
  }
987
  if(count<cols[quest][2])
988
  { width = parseInt( %POLL-WIDTH% / cols[quest][0]);
989
  if(cols[quest][0]==1)
990
  jQuery(".yop-poll-li-answer-%POLL-ID%-"+cols[quest][3]).css("width","100%");
991
  else
992
  jQuery(".yop-poll-li-answer-%POLL-ID%-"+cols[quest][3]).width(width-20);
993
  jQuery(".yop-poll-li-answer-%POLL-ID%-"+cols[quest][3]).css("float", "left");
994
  }
995
  else
996
  {
997
  count=0;
998
  width = parseInt( %POLL-WIDTH% / cols[quest][0]);
999
  jQuery(".yop-poll-li-answer-%POLL-ID%-"+cols[quest][3]).width(width-20);
1000
  jQuery(".yop-poll-li-answer-%POLL-ID%-"+cols[quest][3]).css("float", "left");
1001
  quest++;
1002
  }
1003
  });
1004
  findWidest = typeof findWidest !== "undefined" ? findWidest : false;
1005
  var quest=0;
1006
  if ( findWidest ) {
1007
  obj.each(function() {
1008
  var thisWidth = jQuery(this).width();
1009
  width = parseInt(thisWidth / cols);
1010
  jQuery(this).width(width);
1011
  jQuery(this).css("float", "left");
1012
  });
1013
  }
1014
  else {
1015
  var widest = 0;
1016
  var count = 0;
1017
  var poz_each_question=0;
1018
  obj.each(function() {
1019
  count++;
1020
  cols[quest][2]=(jQuery('#yop-poll-answers-%POLL-ID%-'+ cols[quest][3] +' li').length);
1021
  var thisWidth = jQuery(this).width();
1022
  if(thisWidth > widest) {
1023
  widest = thisWidth;
1024
  }
1025
  if(count<cols[quest][2])
1026
  { width = parseInt( %POLL-WIDTH% / cols[quest][1]);
1027
  jQuery(".yop-poll-li-result-%POLL-ID%-"+cols[quest][3]).width(width-20);
1028
  jQuery(".yop-poll-li-result-%POLL-ID%-"+cols[quest][3]).css("float", "left");
1029
  }
1030
  else
1031
  {
1032
  count=0;
1033
  width = parseInt( %POLL-WIDTH% / cols[quest][1]);
1034
  jQuery(".yop-poll-li-result-%POLL-ID%-"+cols[quest][3]).width(width-20);
1035
  jQuery(".yop-poll-li-result-%POLL-ID%-"+cols[quest][3]).css("float", "left");
1036
  quest++;
1037
  }
1038
  });
1039
  $js = addslashes( $js );
1040
  $css = "";
1041
  switch( $template_name ) {
1042
  case 'White':
1043
  { //White
1044
  $css = <<<NOWDOC
1045
  Main Container
1046
  ---------------------------------------------------------------------------
1047
  border:1px solid #000000;
1048
  color:#000000;
1049
  color:#000000;
1050
  background:#fff;
1051
  box-sizing: border-box;
1052
  color: #555;
1053
  display: inline-block;
1054
  font-size: 14px;
1055
  padding: 10px;
1056
  width: %POLL-WIDTH%;
1057
  zoom: 1;
1058
  Error message
1059
  ..................................
1060
  font-size:.8em;
1061
  font-style:italic;
1062
  color:red;
1063
  text-transform:lowercase;
1064
  text-align:center;
1065
  Success message
1066
  ..................................
1067
  font-size:.8em;
1068
  font-style:italic;
1069
  color:green;
1070
  text-align:center;
1071
  Poll Question
1072
  ---------------------------------------------------------------------------
1073
  border: 0 none;
1074
  margin: 0 0 2em;
1075
  padding: .25em;
1076
  text-align: center;
1077
  font-size: 14px;
1078
  Poll Options / Answers
1079
  ---------------------------------------------------------------------------
1080
  list-style: none;
1081
  margin: 0;
1082
  padding: 0;
1083
  list-style: none;
1084
  margin: 0;
1085
  padding: 0;
1086
  font-size: 14px;
1087
  line-height: 2em;
1088
  Label
1089
  ..................................
1090
  margin:0px;
1091
  font-style:normal;
1092
  font-weight:normal;
1093
  font-size:14px;
1094
  float:none;
1095
  display:inline-block;
1096
  Custom answer / Other
1097
  ..................................
1098
  width: 100%;
1099
  overflow: hidden;
1100
  width: 94%;
1101
  overflow: hidden;
1102
  Custom checkbox and radio button style
1103
  ---------------------------------------------------------------------------
1104
  Custom fields
1105
  ---------------------------------------------------------------------------
1106
  clear: both;
1107
  list-style: none;
1108
  margin: 0;
1109
  padding: 0;
1110
  overflow: hidden;
1111
  width: 100%;
1112
  display: block;
1113
  font-size:14px;
1114
  list-style: none;
1115
  display: block;
1116
  width: 94%;
1117
  Vote Button
1118
  ---------------------------------------------------------------------------
1119
  cursor:pointer;
1120
  display: block;
1121
  font-size:14px;
1122
  margin: 0 auto;
1123
  }
1124
  Results
1125
  ---------------------------------------------------------------------------
1126
  font-size: 12px;
1127
  font-style: italic;
1128
  font-weight: normal;
1129
  margin-left: 15px;
1130
  color: #38595E;
1131
  Style for results that are displayed on columns
1132
  ..................................
1133
  float: left;
1134
  display: inline-block;
1135
  width: 46%;
1136
  padding: 1%;
1137
  margin: 1%;
1138
  float: right;
1139
  width: auto;
1140
  color:#000;
1141
  text-decoration:underline;
1142
  font-size:12px;
1143
  color:#000;
1144
  text-decoration:underline;
1145
  font-size:12px;
1146
  color:#000;
1147
  text-decoration:underline;
1148
  font-size:12px;
1149
  float:left;
1150
  width:100%;
1151
  Result Bar
1152
  ..................................
1153
  ---------------------------------------------------------------------------
1154
  EXTRAS
1155
  ---------------------------------------------------------------------------
1156
  CAPTCHA
1157
  ..................................
1158
  width:30px;
1159
  float:left;
1160
  margin-left:5px;
1161
  height:0px;
1162
  break;
1163
  }
1164
  case 'Grey':
1165
  { //Grey
1166
  $css = <<<NOWDOC
1167
  Main Container
1168
  ---------------------------------------------------------------------------
1169
  border:1px solid #000000;
1170
  color:#000000;
1171
  color:#000000;
1172
  background:#eee;
1173
  box-sizing: border-box;
1174
  color: #fff;
1175
  display: inline-block;
1176
  font-size: 14px;
1177
  color:#000;
1178
  padding: 10px;
1179
  width: %POLL-WIDTH%;
1180
  zoom: 1;
1181
  Error message
1182
  ..................................
1183
  font-size:.8em;
1184
  font-style:italic;
1185
  color:red;
1186
  text-transform:lowercase;
1187
  text-align:center;
1188
  Success message
1189
  ..................................
1190
  font-size:.8em;
1191
  font-style:italic;
1192
  color:green;
1193
  text-align:center;
1194
  Poll Question
1195
  ---------------------------------------------------------------------------
1196
  border: 0 none;
1197
  margin: 0 0 2em;
1198
  padding: .25em;
1199
  text-align: center;
1200
  font-size: 14px;
1201
  Poll Options / Answers
1202
  ---------------------------------------------------------------------------
1203
  list-style: none;
1204
  margin: 0;
1205
  padding: 0;
1206
  list-style: none;
1207
  margin: 0;
1208
  padding: 0;
1209
  font-size: 14px;
1210
  line-height: 2em;
1211
  Label
1212
  ..................................
1213
  margin:0px;
1214
  font-style:normal;
1215
  font-weight:normal;
1216
  font-size:14px;
1217
  float:none;
1218
  display:inline-block;
1219
  Custom answer / Other
1220
  ..................................
1221
  width: 100%;
1222
  overflow: hidden;
1223
  width: 94%;
1224
  overflow: hidden;
1225
  Custom checkbox and radio button style
1226
  ---------------------------------------------------------------------------
1227
  Custom fields
1228
  ---------------------------------------------------------------------------
1229
  clear: both;
1230
  list-style: none;
1231
  margin: 0;
1232
  padding: 0;
1233
  overflow: hidden;
1234
  width: 100%;
1235
  display: block;
1236
  font-size:14px;
1237
  list-style: none;
1238
  display: block;
1239
  width: 94%;
1240
  Vote Button
1241
  ---------------------------------------------------------------------------
1242
  cursor:pointer;
1243
  display: block;
1244
  font-size:14px;
1245
  margin: 0 auto;
1246
  }
1247
  Results
1248
  ---------------------------------------------------------------------------
1249
  font-size: 12px;
1250
  font-style: italic;
1251
  font-weight: normal;
1252
  margin-left: 15px;
1253
  color: #38595E;
1254
  Style for results that are displayed on columns
1255
  ..................................
1256
  float: left;
1257
  display: inline-block;
1258
  width: 46%;
1259
  padding: 1%;
1260
  margin: 1%;
1261
  float: right;
1262
  width: auto;
1263
  color:#000;
1264
  text-decoration:underline;
1265
  font-size:12px;
1266
  color:#000;
1267
  text-decoration:underline;
1268
  font-size:12px;
1269
  color:#000;
1270
  text-decoration:underline;
1271
  font-size:12px;
1272
  float:left;
1273
  width:100%;
1274
  Result Bar
1275
  ..................................
1276
  ---------------------------------------------------------------------------
1277
  EXTRAS
1278
  ---------------------------------------------------------------------------
1279
  CAPTCHA
1280
  ..................................
1281
  width:30px;
1282
  float:left;
1283
  margin-left:5px;
1284
  height:0px;
1285
  break;
1286
  }
1287
  case 'Dark':
1288
  { //Dark
1289
  $css = <<<NOWDOC
1290
  Main Container
1291
  ---------------------------------------------------------------------------
1292
  color:#000000;
1293
  color:#000000;
1294
  background:#555;
1295
  box-sizing: border-box;
1296
  color: #fff;
1297
  display: inline-block;
1298
  font-size: 14px;
1299
  padding: 10px;
1300
  width: %POLL-WIDTH%;
1301
  zoom: 1;
1302
  Error message
1303
  ..................................
1304
  font-size:.8em;
1305
  font-style:italic;
1306
  color:red;
1307
  text-transform:lowercase;
1308
  text-align:center;
1309
  Success message
1310
  ..................................
1311
  font-size:.8em;
1312
  font-style:italic;
1313
  color:green;
1314
  text-align:center;
1315
  Poll Question
1316
  ---------------------------------------------------------------------------
1317
  border: 0 none;
1318
  margin: 0 0 2em;
1319
  padding: .25em;
1320
  text-align: center;
1321
  font-size: 14px;
1322
  Poll Options / Answers
1323
  ---------------------------------------------------------------------------
1324
  list-style: none;
1325
  margin: 0;
1326
  padding: 0;
1327
  list-style: none;
1328
  margin: 0;
1329
  padding: 0;
1330
  font-size: 14px;
1331
  line-height: 2em;
1332
  Label
1333
  ..................................
1334
  margin:0px;
1335
  font-style:normal;
1336
  font-weight:normal;
1337
  font-size:14px;
1338
  float:none;
1339
  display:inline-block;
1340
  Custom answer / Other
1341
  ..................................
1342
  width: 100%;
1343
  overflow: hidden;
1344
  width: 94%;
1345
  overflow: hidden;
1346
  Custom checkbox and radio button style
1347
  ---------------------------------------------------------------------------
1348
  Custom fields
1349
  ---------------------------------------------------------------------------
1350
  clear: both;
1351
  list-style: none;
1352
  margin: 0;
1353
  padding: 0;
1354
  overflow: hidden;
1355
  width: 100%;
1356
  display: block;
1357
  font-size:14px;
1358
  list-style: none;
1359
  display: block;
1360
  width: 94%;
1361
  Vote Button
1362
  ---------------------------------------------------------------------------
1363
  cursor:pointer;
1364
  display: block;
1365
  font-size:14px;
1366
  margin: 0 auto;
1367
  }
1368
  Results
1369
  ---------------------------------------------------------------------------
1370
  font-size: 12px;
1371
  font-style: italic;
1372
  font-weight: normal;
1373
  margin-left: 15px;
1374
  color: #38595E;
1375
  Style for results that are displayed on columns
1376
  ..................................
1377
  float: left;
1378
  display: inline-block;
1379
  width: 46%;
1380
  padding: 1%;
1381
  margin: 1%;
1382
  float: right;
1383
  width: auto;
1384
  color:#000;
1385
  text-decoration:underline;
1386
  font-size:12px;
1387
  color:#000;
1388
  text-decoration:underline;
1389
  font-size:12px;
1390
  color:#000;
1391
  text-decoration:underline;
1392
  font-size:12px;
1393
  float:left;
1394
  width:100%;
1395
  Result Bar
1396
  ..................................
1397
  ---------------------------------------------------------------------------
1398
  EXTRAS
1399
  ---------------------------------------------------------------------------
1400
  CAPTCHA
1401
  ..................................
1402
  width:30px;
1403
  float:left;
1404
  margin-left:5px;
1405
  height:0px;
1406
  break;
1407
  }
1408
  case 'Blue v1':
1409
  { //Blue v1
1410
  $css = <<<NOWDOC
1411
  Main Container
1412
  ---------------------------------------------------------------------------
1413
  color:#000000;
1414
  color:#000000;
1415
  background:#327BD6;
1416
  box-sizing: border-box;
1417
  color: #fff;
1418
  display: inline-block;
1419
  font-size: 14px;
1420
  padding: 10px;
1421
  width: %POLL-WIDTH%;
1422
  zoom: 1;
1423
  Error message
1424
  ..................................
1425
  font-size:.8em;
1426
  font-style:italic;
1427
  color:red;
1428
  text-transform:lowercase;
1429
  text-align:center;
1430
  Success message
1431
  ..................................
1432
  font-size:.8em;
1433
  font-style:italic;
1434
  color:green;
1435
  text-align:center;
1436
  Poll Question
1437
  ---------------------------------------------------------------------------
1438
  border: 0 none;
1439
  margin: 0 0 2em;
1440
  padding: .25em;
1441
  text-align: center;
1442
  font-size: 14px;
1443
  Poll Options / Answers
1444
  ---------------------------------------------------------------------------
1445
  list-style: none;
1446
  margin: 0;
1447
  padding: 0;
1448
  list-style: none;
1449
  margin: 0;
1450
  padding: 0;
1451
  font-size: 14px;
1452
  line-height: 2em;
1453
  Label
1454
  ..................................
1455
  margin:0px;
1456
  font-style:normal;
1457
  font-weight:normal;
1458
  font-size:14px;
1459
  float:none;
1460
  display:inline-block;
1461
  Custom answer / Other
1462
  ..................................
1463
  width: 100%;
1464
  overflow: hidden;
1465
  width: 94%;
1466
  overflow: hidden;
1467
  Custom checkbox and radio button style
1468
  ---------------------------------------------------------------------------
1469
  Custom fields
1470
  ---------------------------------------------------------------------------
1471
  clear: both;
1472
  list-style: none;
1473
  margin: 0;
1474
  padding: 0;
1475
  overflow: hidden;
1476
  width: 100%;
1477
  display: block;
1478
  font-size:14px;
1479
  list-style: none;
1480
  display: block;
1481
  width: 94%;
1482
  Vote Button
1483
  ---------------------------------------------------------------------------
1484
  cursor:pointer;
1485
  display: block;
1486
  font-size:14px;
1487
  margin: 0 auto;
1488
  }
1489
  Results
1490
  ---------------------------------------------------------------------------
1491
  font-size: 12px;
1492
  font-style: italic;
1493
  font-weight: normal;
1494
  margin-left: 15px;
1495
  color: #38595E;
1496
  Style for results that are displayed on columns
1497
  ..................................
1498
  float: left;
1499
  display: inline-block;
1500
  width: 46%;
1501
  padding: 1%;
1502
  margin: 1%;
1503
  float: right;
1504
  width: auto;
1505
  color:#000;
1506
  text-decoration:underline;
1507
  font-size:12px;
1508
  color:#000;
1509
  text-decoration:underline;
1510
  font-size:12px;
1511
  color:#000;
1512
  text-decoration:underline;
1513
  font-size:12px;
1514
  float:left;
1515
  width:100%;
1516
  Result Bar
1517
  ..................................
1518
  ---------------------------------------------------------------------------
1519
  EXTRAS
1520
  ---------------------------------------------------------------------------
1521
  CAPTCHA
1522
  ..................................
1523
  width:30px;
1524
  float:left;
1525
  margin-left:5px;
1526
  height:0px;
1527
  break;
1528
  }
1529
  case 'Blue v2':
1530
  { //Blue v2
1531
  $css = <<<NOWDOC
1532
  Main Container
1533
  ---------------------------------------------------------------------------
1534
  border:1px solid #000000;
1535
  color:#000000;
1536
  color:#000000;
1537
  background:#fff;
1538
  box-sizing: border-box;
1539
  display: inline-block;
1540
  font-size: 14px;
1541
  color:#555;
1542
  padding: 10px;
1543
  width: %POLL-WIDTH%;
1544
  zoom: 1;
1545
  Error message
1546
  ..................................
1547
  font-size:.8em;
1548
  font-style:italic;
1549
  color:red;
1550
  text-transform:lowercase;
1551
  text-align:center;
1552
  Success message
1553
  ..................................
1554
  font-size:.8em;
1555
  font-style:italic;
1556
  color:green;
1557
  text-align:center;
1558
  Poll Question
1559
  ---------------------------------------------------------------------------
1560
  background:#327BD6;
1561
  color:#fff;
1562
  border: 0 none;
1563
  margin: 0 0 2em;
1564
  padding: .25em;
1565
  text-align: center;
1566
  font-size: 14px;
1567
  Poll Options / Answers
1568
  ---------------------------------------------------------------------------
1569
  list-style: none;
1570
  margin: 0;
1571
  padding: 0;
1572
  list-style: none;
1573
  margin: 0;
1574
  padding: 0;
1575
  font-size: 14px;
1576
  line-height: 2em;
1577
  Label
1578
  ..................................
1579
  margin:0px;
1580
  font-style:normal;
1581
  font-weight:normal;
1582
  font-size:14px;
1583
  float:none;
1584
  display:inline-block;
1585
  Custom answer / Other
1586
  ..................................
1587
  width: 100%;
1588
  overflow: hidden;
1589
  width: 94%;
1590
  overflow: hidden;
1591
  Custom checkbox and radio button style
1592
  ---------------------------------------------------------------------------
1593
  Custom fields
1594
  ---------------------------------------------------------------------------
1595
  clear: both;
1596
  list-style: none;
1597
  margin: 0;
1598
  padding: 0;
1599
  overflow: hidden;
1600
  width: 100%;
1601
  display: block;
1602
  font-size:14px;
1603
  list-style: none;
1604
  display: block;
1605
  width: 94%;
1606
  Vote Button
1607
  ---------------------------------------------------------------------------
1608
  cursor:pointer;
1609
  display: block;
1610
  font-size:14px;
1611
  margin: 0 auto;
1612
  }
1613
  Results
1614
  ---------------------------------------------------------------------------
1615
  font-size: 12px;
1616
  font-style: italic;
1617
  font-weight: normal;
1618
  margin-left: 15px;
1619
  color: #38595E;
1620
  Style for results that are displayed on columns
1621
  ..................................
1622
  float: left;
1623
  display: inline-block;
1624
  width: 46%;
1625
  padding: 1%;
1626
  margin: 1%;
1627
  float: right;
1628
  width: auto;
1629
  color:#000;
1630
  text-decoration:underline;
1631
  font-size:12px;
1632
  color:#000;
1633
  text-decoration:underline;
1634
  font-size:12px;
1635
  color:#000;
1636
  text-decoration:underline;
1637
  font-size:12px;
1638
  float:left;
1639
  width:100%;
1640
  Result Bar
1641
  ..................................
1642
  ---------------------------------------------------------------------------
1643
  EXTRAS
1644
  ---------------------------------------------------------------------------
1645
  CAPTCHA
1646
  ..................................
1647
  width:30px;
1648
  float:left;
1649
  margin-left:5px;
1650
  height:0px;
1651
  break;
1652
  }
1653
  case 'Blue v3':
1654
  { //Blue v3
1655
  $css = <<<NOWDOC
1656
  Main Container
1657
  ---------------------------------------------------------------------------
1658
  border:1px solid #000000;
1659
  color:#000000;
1660
  color:#000000;
1661
  background:#fff;
1662
  box-sizing: border-box;
1663
  display: inline-block;
1664
  font-size: 14px;
1665
  color:#555;
1666
  padding: 10px;
1667
  width: %POLL-WIDTH%;
1668
  zoom: 1;
1669
  border: 5px solid #327BD6;
1670
  Error message
1671
  ..................................
1672
  font-size:.8em;
1673
  font-style:italic;
1674
  color:red;
1675
  text-transform:lowercase;
1676
  text-align:center;
1677
  Success message
1678
  ..................................
1679
  font-size:.8em;
1680
  font-style:italic;
1681
  color:green;
1682
  text-align:center;
1683
  Poll Question
1684
  ---------------------------------------------------------------------------
1685
  border: 0 none;
1686
  margin: 0 0 2em;
1687
  padding: .25em;
1688
  text-align: center;
1689
  font-size: 14px;
1690
  Poll Options / Answers
1691
  ---------------------------------------------------------------------------
1692
  list-style: none;
1693
  margin: 0;
1694
  padding: 0;
1695
  list-style: none;
1696
  margin: 0;
1697
  padding: 0;
1698
  font-size: 14px;
1699
  line-height: 2em;
1700
  Label
1701
  ..................................
1702
  margin:0px;
1703
  font-style:normal;
1704
  font-weight:normal;
1705
  font-size:14px;
1706
  float:none;
1707
  display:inline-block;
1708
  Custom answer / Other
1709
  ..................................
1710
  width: 100%;
1711
  overflow: hidden;
1712
  width: 94%;
1713
  overflow: hidden;
1714
  Custom checkbox and radio button style
1715
  ---------------------------------------------------------------------------
1716
  Custom fields
1717
  ---------------------------------------------------------------------------
1718
  clear: both;
1719
  list-style: none;
1720
  margin: 0;
1721
  padding: 0;
1722
  overflow: hidden;
1723
  width: 100%;
1724
  display: block;
1725
  font-size:14px;
1726
  list-style: none;
1727
  display: block;
1728
  width: 94%;
1729
  Vote Button
1730
  ---------------------------------------------------------------------------
1731
  cursor:pointer;
1732
  display: block;
1733
  font-size:14px;
1734
  margin: 0 auto;
1735
  }
1736
  Results
1737
  ---------------------------------------------------------------------------
1738
  font-size: 12px;
1739
  font-style: italic;
1740
  font-weight: normal;
1741
  margin-left: 15px;
1742
  color: #38595E;
1743
  Style for results that are displayed on columns
1744
  ..................................
1745
  float: left;
1746
  display: inline-block;
1747
  width: 46%;
1748
  padding: 1%;
1749
  margin: 1%;
1750
  float: right;
1751
  width: auto;
1752
  color:#000;
1753
  text-decoration:underline;
1754
  font-size:12px;
1755
  color:#000;
1756
  text-decoration:underline;
1757
  font-size:12px;
1758
  color:#000;
1759
  text-decoration:underline;
1760
  font-size:12px;
1761
  float:left;
1762
  width:100%;
1763
  Result Bar
1764
  ..................................
1765
  ---------------------------------------------------------------------------
1766
  EXTRAS
1767
  ---------------------------------------------------------------------------
1768
  CAPTCHA
1769
  ..................................
1770
  width:30px;
1771
  float:left;
1772
  margin-left:5px;
1773
  height:0px;
1774
  break;
1775
  }
1776
  case 'Red v1':
1777
  { //Red v1
1778
  $css = <<<NOWDOC
1779
  Main Container
1780
  ---------------------------------------------------------------------------
1781
  color:#000000;
1782
  color:#000000;
1783
  background:#B70004;
1784
  box-sizing: border-box;
1785
  display: inline-block;
1786
  font-size: 14px;
1787
  color:white;
1788
  padding: 10px;
1789
  width: %POLL-WIDTH%;
1790
  zoom: 1;
1791
  Error message
1792
  ..................................
1793
  font-size:.8em;
1794
  font-style:italic;
1795
  color:red;
1796
  text-transform:lowercase;
1797
  text-align:center;
1798
  Success message
1799
  ..................................
1800
  font-size:.8em;
1801
  font-style:italic;
1802
  color:green;
1803
  text-align:center;
1804
  Poll Question
1805
  ---------------------------------------------------------------------------
1806
  border: 0 none;
1807
  margin: 0 0 2em;
1808
  padding: .25em;
1809
  text-align: center;
1810
  font-size: 14px;
1811
  Poll Options / Answers
1812
  ---------------------------------------------------------------------------
1813
  list-style: none;
1814
  margin: 0;
1815
  padding: 0;
1816
  list-style: none;
1817
  margin: 0;
1818
  padding: 0;
1819
  font-size: 14px;
1820
  line-height: 2em;
1821
  Label
1822
  ..................................
1823
  margin:0px;
1824
  font-style:normal;
1825
  font-weight:normal;
1826
  font-size:14px;
1827
  float:none;
1828
  display:inline-block;
1829
  Custom answer / Other
1830
  ..................................
1831
  width: 100%;
1832
  overflow: hidden;
1833
  width: 94%;
1834
  overflow: hidden;
1835
  Custom checkbox and radio button style
1836
  ---------------------------------------------------------------------------
1837
  Custom fields
1838
  ---------------------------------------------------------------------------
1839
  clear: both;
1840
  list-style: none;
1841
  margin: 0;
1842
  padding: 0;
1843
  overflow: hidden;
1844
  width: 100%;
1845
  display: block;
1846
  font-size:14px;
1847
  list-style: none;
1848
  display: block;
1849
  width: 94%;
1850
  Vote Button
1851
  ---------------------------------------------------------------------------
1852
  cursor:pointer;
1853
  display: block;
1854
  font-size:14px;
1855
  margin: 0 auto;
1856
  }
1857
  Results
1858
  ---------------------------------------------------------------------------
1859
  font-size: 12px;
1860
  font-style: italic;
1861
  font-weight: normal;
1862
  margin-left: 15px;
1863
  color: #38595E;
1864
  Style for results that are displayed on columns
1865
  ..................................
1866
  float: left;
1867
  display: inline-block;
1868
  width: 46%;
1869
  padding: 1%;
1870
  margin: 1%;
1871
  float: right;
1872
  width: auto;
1873
  color:#000;
1874
  text-decoration:underline;
1875
  font-size:12px;
1876
  color:#000;
1877
  text-decoration:underline;
1878
  font-size:12px;
1879
  color:#000;
1880
  text-decoration:underline;
1881
  font-size:12px;
1882
  float:left;
1883
  width:100%;
1884
  Result Bar
1885
  ..................................
1886
  ---------------------------------------------------------------------------
1887
  EXTRAS
1888
  ---------------------------------------------------------------------------
1889
  CAPTCHA
1890
  ..................................
1891
  width:30px;
1892
  float:left;
1893
  margin-left:5px;
1894
  height:0px;
1895
  break;
1896
  }
1897
  case 'Red v2':
1898
  { //Red v2
1899
  $css = <<<NOWDOC
1900
  Main Container
1901
  ---------------------------------------------------------------------------
1902
  border:1px solid #000000;
1903
  color:#000000;
1904
  color:#000000;
1905
  background:#fff;
1906
  box-sizing: border-box;
1907
  display: inline-block;
1908
  font-size: 14px;
1909
  color:#555;
1910
  padding: 10px;
1911
  width: %POLL-WIDTH%;
1912
  zoom: 1;
1913
  Error message
1914
  ..................................
1915
  font-size:.8em;
1916
  font-style:italic;
1917
  color:red;
1918
  text-transform:lowercase;
1919
  text-align:center;
1920
  Success message
1921
  ..................................
1922
  font-size:.8em;
1923
  font-style:italic;
1924
  color:green;
1925
  text-align:center;
1926
  Poll Question
1927
  ---------------------------------------------------------------------------
1928
  background:#B70004;
1929
  color:#fff;
1930
  border: 0 none;
1931
  margin: 0 0 2em;
1932
  padding: .25em;
1933
  text-align: center;
1934
  font-size: 14px;
1935
  Poll Options / Answers
1936
  ---------------------------------------------------------------------------
1937
  list-style: none;
1938
  margin: 0;
1939
  padding: 0;
1940
  list-style: none;
1941
  margin: 0;
1942
  padding: 0;
1943
  font-size: 14px;
1944
  line-height: 2em;
1945
  Label
1946
  ..................................
1947
  margin:0px;
1948
  font-style:normal;
1949
  font-weight:normal;
1950
  font-size:14px;
1951
  float:none;
1952
  display:inline-block;
1953
  Custom answer / Other
1954
  ..................................
1955
  width: 100%;
1956
  overflow: hidden;
1957
  width: 94%;
1958
  overflow: hidden;
1959
  Custom checkbox and radio button style
1960
  ---------------------------------------------------------------------------
1961
  Custom fields
1962
  ---------------------------------------------------------------------------
1963
  clear: both;
1964
  list-style: none;
1965
  margin: 0;
1966
  padding: 0;
1967
  overflow: hidden;
1968
  width: 100%;
1969
  display: block;
1970
  font-size:14px;
1971
  list-style: none;
1972
  display: block;
1973
  width: 94%;
1974
  Vote Button
1975
  ---------------------------------------------------------------------------
1976
  cursor:pointer;
1977
  display: block;
1978
  font-size:14px;
1979
  margin: 0 auto;
1980
  }
1981
  Results
1982
  ---------------------------------------------------------------------------
1983
  font-size: 12px;
1984
  font-style: italic;
1985
  font-weight: normal;
1986
  margin-left: 15px;
1987
  color: #38595E;
1988
  Style for results that are displayed on columns
1989
  ..................................
1990
  float: left;
1991
  display: inline-block;
1992
  width: 46%;
1993
  padding: 1%;
1994
  margin: 1%;
1995
  float: right;
1996
  width: auto;
1997
  color:#000;
1998
  text-decoration:underline;
1999
  font-size:12px;
2000
  color:#000;
2001
  text-decoration:underline;
2002
  font-size:12px;
2003
  color:#000;
2004
  text-decoration:underline;
2005
  font-size:12px;
2006
  float:left;
2007
  width:100%;
2008
  Result Bar
2009
  ..................................
2010
  ---------------------------------------------------------------------------
2011
  EXTRAS
2012
  ---------------------------------------------------------------------------
2013
  CAPTCHA
2014
  ..................................
2015
  width:30px;
2016
  float:left;
2017
  margin-left:5px;
2018
  height:0px;
2019
  break;
2020
  }
2021
  case 'Red v3':
2022
  { //Red v3
2023
  $css = <<<NOWDOC
2024
  Main Container
2025
  ---------------------------------------------------------------------------
2026
  border:1px solid #000000;
2027
  color:#000000;
2028
  color:#000000;
2029
  background:#fff;
2030
  box-sizing: border-box;
2031
  display: inline-block;
2032
  font-size: 14px;
2033
  color:#555;
2034
  padding: 10px;
2035
  width: %POLL-WIDTH%;
2036
  zoom: 1;
2037
  border:5px solid #B70004;
2038
  Error message
2039
  ..................................
2040
  font-size:.8em;
2041
  font-style:italic;
2042
  color:red;
2043
  text-transform:lowercase;
2044
  text-align:center;
2045
  Success message
2046
  ..................................
2047
  font-size:.8em;
2048
  font-style:italic;
2049
  color:green;
2050
  text-align:center;
2051
  Poll Question
2052
  ---------------------------------------------------------------------------
2053
  border: 0 none;
2054
  margin: 0 0 2em;
2055
  padding: .25em;
2056
  text-align: center;
2057
  font-size: 14px;
2058
  Poll Options / Answers
2059
  ---------------------------------------------------------------------------
2060
  list-style: none;
2061
  margin: 0;
2062
  padding: 0;
2063
  list-style: none;
2064
  margin: 0;
2065
  padding: 0;
2066
  font-size: 14px;
2067
  line-height: 2em;
2068
  Label
2069
  ..................................
2070
  margin:0px;
2071
  font-style:normal;
2072
  font-weight:normal;
2073
  font-size:14px;
2074
  float:none;
2075
  display:inline-block;
2076
  Custom answer / Other
2077
  ..................................
2078
  width: 100%;
2079
  overflow: hidden;
2080
  width: 94%;
2081
  overflow: hidden;
2082
  Custom checkbox and radio button style
2083
  ---------------------------------------------------------------------------
2084
  Custom fields
2085
  ---------------------------------------------------------------------------
2086
  clear: both;
2087
  list-style: none;
2088
  margin: 0;
2089
  padding: 0;
2090
  overflow: hidden;
2091
  width: 100%;
2092
  display: block;
2093
  font-size:14px;
2094
  list-style: none;
2095
  display: block;
2096
  width: 94%;
2097
  Vote Button
2098
  ---------------------------------------------------------------------------
2099
  cursor:pointer;
2100
  display: block;
2101
  font-size:14px;
2102
  margin: 0 auto;
2103
  }
2104
  Results
2105
  ---------------------------------------------------------------------------
2106
  font-size: 12px;
2107
  font-style: italic;
2108
  font-weight: normal;
2109
  margin-left: 15px;
2110
  color: #38595E;
2111
  Style for results that are displayed on columns
2112
  ..................................
2113
  float: left;
2114
  display: inline-block;
2115
  width: 46%;
2116
  padding: 1%;
2117
  margin: 1%;
2118
  float: right;
2119
  width: auto;
2120
  color:#000;
2121
  text-decoration:underline;
2122
  font-size:12px;
2123
  color:#000;
2124
  text-decoration:underline;
2125
  font-size:12px;
2126
  color:#000;
2127
  text-decoration:underline;
2128
  font-size:12px;
2129
  float:left;
2130
  width:100%;
2131
  Result Bar
2132
  ..................................
2133
  ---------------------------------------------------------------------------
2134
  EXTRAS
2135
  ---------------------------------------------------------------------------
2136
  CAPTCHA
2137
  ..................................
2138
  width:30px;
2139
  float:left;
2140
  margin-left:5px;
2141
  height:0px;
2142
  break;
2143
  }
2144
  case 'Green v1':
2145
  { //Green v1
2146
  $css = <<<NOWDOC
2147
  Main Container
2148
  ---------------------------------------------------------------------------
2149
  color:#000000;
2150
  color:#000000;
2151
  background:#3F8B43;
2152
  box-sizing: border-box;
2153
  display: inline-block;
2154
  font-size: 14px;
2155
  color:white;
2156
  padding: 10px;
2157
  width: %POLL-WIDTH%;
2158
  zoom: 1;
2159
  Error message
2160
  ..................................
2161
  font-size:.8em;
2162
  font-style:italic;
2163
  color:red;
2164
  text-transform:lowercase;
2165
  text-align:center;
2166
  Success message
2167
  ..................................
2168
  font-size:.8em;
2169
  font-style:italic;
2170
  color:green;
2171
  text-align:center;
2172
  Poll Question
2173
  ---------------------------------------------------------------------------
2174
  border: 0 none;
2175
  margin: 0 0 2em;
2176
  padding: .25em;
2177
  text-align: center;
2178
  font-size: 14px;
2179
  Poll Options / Answers
2180
  ---------------------------------------------------------------------------
2181
  list-style: none;
2182
  margin: 0;
2183
  padding: 0;
2184
  list-style: none;
2185
  margin: 0;
2186
  padding: 0;
2187
  font-size: 14px;
2188
  line-height: 2em;
2189
  Label
2190
  ..................................
2191
  margin:0px;
2192
  font-style:normal;
2193
  font-weight:normal;
2194
  font-size:14px;
2195
  float:none;
2196
  display:inline-block;
2197
  Custom answer / Other
2198
  ..................................
2199
  width: 100%;
2200
  overflow: hidden;
2201
  width: 94%;
2202
  overflow: hidden;
2203
  Custom checkbox and radio button style
2204
  ---------------------------------------------------------------------------
2205
  Custom fields
2206
  ---------------------------------------------------------------------------
2207
  clear: both;
2208
  list-style: none;
2209
  margin: 0;
2210
  padding: 0;
2211
  overflow: hidden;
2212
  width: 100%;
2213
  display: block;
2214
  font-size:14px;
2215
  list-style: none;
2216
  display: block;
2217
  width: 94%;
2218
  Vote Button
2219
  ---------------------------------------------------------------------------
2220
  cursor:pointer;
2221
  display: block;
2222
  font-size:14px;
2223
  margin: 0 auto;
2224
  }
2225
  Results
2226
  ---------------------------------------------------------------------------
2227
  font-size: 12px;
2228
  font-style: italic;
2229
  font-weight: normal;
2230
  margin-left: 15px;
2231
  color: #38595E;
2232
  Style for results that are displayed on columns
2233
  ..................................
2234
  float: left;
2235
  display: inline-block;
2236
  width: 46%;
2237
  padding: 1%;
2238
  margin: 1%;
2239
  float: right;
2240
  width: auto;
2241
  color:#000;
2242
  text-decoration:underline;
2243
  font-size:12px;
2244
  color:#000;
2245
  text-decoration:underline;
2246
  font-size:12px;
2247
  color:#000;
2248
  text-decoration:underline;
2249
  font-size:12px;
2250
  float:left;
2251
  width:100%;
2252
  Result Bar
2253
  ..................................
2254
  ---------------------------------------------------------------------------
2255
  EXTRAS
2256
  ---------------------------------------------------------------------------
2257
  CAPTCHA
2258
  ..................................
2259
  width:30px;
2260
  float:left;
2261
  margin-left:5px;
2262
  height:0px;
2263
  break;
2264
  }
2265
  case 'Green v2':
2266
  { //Green v2
2267
  $css = <<<NOWDOC
2268
  Main Container
2269
  ---------------------------------------------------------------------------
2270
  border:1px solid #000000;
2271
  color:#000000;
2272
  color:#000000;
2273
  background:#fff;
2274
  box-sizing: border-box;
2275
  display: inline-block;
2276
  font-size: 14px;
2277
  color:#555;
2278
  padding: 10px;
2279
  width: %POLL-WIDTH%;
2280
  zoom: 1;
2281
  Error message
2282
  ..................................
2283
  font-size:.8em;
2284
  font-style:italic;
2285
  color:red;
2286
  text-transform:lowercase;
2287
  text-align:center;
2288
  Success message
2289
  ..................................
2290
  font-size:.8em;
2291
  font-style:italic;
2292
  color:green;
2293
  text-align:center;
2294
  Poll Question
2295
  ---------------------------------------------------------------------------
2296
  background:#3F8B43;
2297
  color:#fff;
2298
  border: 0 none;
2299
  margin: 0 0 2em;
2300
  padding: .25em;
2301
  text-align: center;
2302
  font-size: 14px;
2303
  Poll Options / Answers
2304
  ---------------------------------------------------------------------------
2305
  list-style: none;
2306
  margin: 0;
2307
  padding: 0;
2308
  list-style: none;
2309
  margin: 0;
2310
  padding: 0;
2311
  font-size: 14px;
2312
  line-height: 2em;
2313
  Label
2314
  ..................................
2315
  margin:0px;
2316
  font-style:normal;
2317
  font-weight:normal;
2318
  font-size:14px;
2319
  float:none;
2320
  display:inline-block;
2321
  Custom answer / Other
2322
  ..................................
2323
  width: 100%;
2324
  overflow: hidden;
2325
  width: 94%;
2326
  overflow: hidden;
2327
  Custom checkbox and radio button style
2328
  ---------------------------------------------------------------------------
2329
  Custom fields
2330
  ---------------------------------------------------------------------------
2331
  clear: both;
2332
  list-style: none;
2333
  margin: 0;
2334
  padding: 0;
2335
  overflow: hidden;
2336
  width: 100%;
2337
  display: block;
2338
  font-size:14px;
2339
  list-style: none;
2340
  display: block;
2341
  width: 94%;
2342
  Vote Button
2343
  ---------------------------------------------------------------------------
2344
  cursor:pointer;
2345
  display: block;
2346
  font-size:14px;
2347
  margin: 0 auto;
2348
  }
2349
  Results
2350
  ---------------------------------------------------------------------------
2351
  font-size: 12px;
2352
  font-style: italic;
2353
  font-weight: normal;
2354
  margin-left: 15px;
2355
  color: #38595E;
2356
  Style for results that are displayed on columns
2357
  ..................................
2358
  float: left;
2359
  display: inline-block;
2360
  width: 46%;
2361
  padding: 1%;
2362
  margin: 1%;
2363
  float: right;
2364
  width: auto;
2365
  color:#000;
2366
  text-decoration:underline;
2367
  font-size:12px;
2368
  color:#000;
2369
  text-decoration:underline;
2370
  font-size:12px;
2371
  color:#000;
2372
  text-decoration:underline;
2373
  font-size:12px;
2374
  float:left;
2375
  width:100%;
2376
  Result Bar
2377
  ..................................
2378
  ---------------------------------------------------------------------------
2379
  EXTRAS
2380
  ---------------------------------------------------------------------------
2381
  CAPTCHA
2382
  ..................................
2383
  width:30px;
2384
  float:left;
2385
  margin-left:5px;
2386
  height:0px;
2387
  break;
2388
  }
2389
  case 'Green v3':
2390
  { //Green v3
2391
  $css = <<<NOWDOC
2392
  Main Container
2393
  ---------------------------------------------------------------------------
2394
  border:1px solid #000000;
2395
  color:#000000;
2396
  color:#000000;
2397
  background:#fff;
2398
  box-sizing: border-box;
2399
  display: inline-block;
2400
  font-size: 14px;
2401
  color:#555;
2402
  padding: 10px;
2403
  width: %POLL-WIDTH%;
2404
  zoom: 1;
2405
  border:5px solid #3F8B43;
2406
  Error message
2407
  ..................................
2408
  font-size:.8em;
2409
  font-style:italic;
2410
  color:red;
2411
  text-transform:lowercase;
2412
  text-align:center;
2413
  Success message
2414
  ..................................
2415
  font-size:.8em;
2416
  font-style:italic;
2417
  color:green;
2418
  text-align:center;
2419
  Poll Question
2420
  ---------------------------------------------------------------------------
2421
  border: 0 none;
2422
  margin: 0 0 2em;
2423
  padding: .25em;
2424
  text-align: center;
2425
  font-size: 14px;
2426
  Poll Options / Answers
2427
  ---------------------------------------------------------------------------
2428
  list-style: none;
2429
  margin: 0;
2430
  padding: 0;
2431
  list-style: none;
2432
  margin: 0;
2433
  padding: 0;
2434
  font-size: 14px;
2435
  line-height: 2em;
2436
  Label
2437
  ..................................
2438
  margin:0px;
2439
  font-style:normal;
2440
  font-weight:normal;
2441
  font-size:14px;
2442
  float:none;
2443
  display:inline-block;
2444
  Custom answer / Other
2445
  ..................................
2446
  width: 100%;
2447
  overflow: hidden;
2448
  width: 94%;
2449
  overflow: hidden;
2450
  Custom checkbox and radio button style
2451
  ---------------------------------------------------------------------------
2452
  Custom fields
2453
  ---------------------------------------------------------------------------
2454
  clear: both;
2455
  list-style: none;
2456
  margin: 0;
2457
  padding: 0;
2458
  overflow: hidden;
2459
  width: 100%;
2460
  display: block;
2461
  font-size:14px;
2462
  list-style: none;
2463
  display: block;
2464
  width: 94%;
2465
  Vote Button
2466
  ---------------------------------------------------------------------------
2467
  cursor:pointer;
2468
  display: block;
2469
  font-size:14px;
2470
  margin: 0 auto;
2471
  }
2472
  Results
2473
  ---------------------------------------------------------------------------
2474
  font-size: 12px;
2475
  font-style: italic;
2476
  font-weight: normal;
2477
  margin-left: 15px;
2478
  color: #38595E;
2479
  Style for results that are displayed on columns
2480
  ..................................
2481
  float: left;
2482
  display: inline-block;
2483
  width: 46%;
2484
  padding: 1%;
2485
  margin: 1%;
2486
  float: right;
2487
  width: auto;
2488
  color:#000;
2489
  text-decoration:underline;
2490
  font-size:12px;
2491
  color:#000;
2492
  text-decoration:underline;
2493
  font-size:12px;
2494
  color:#000;
2495
  text-decoration:underline;
2496
  font-size:12px;
2497
  float:left;
2498
  width:100%;
2499
  Result Bar
2500
  ..................................
2501
  ---------------------------------------------------------------------------
2502
  EXTRAS
2503
  ---------------------------------------------------------------------------
2504
  CAPTCHA
2505
  ..................................
2506
  width:30px;
2507
  float:left;
2508
  margin-left:5px;
2509
  height:0px;
2510
  break;
2511
  }
2512
  case 'Orange v1':
2513
  { //Orange v1
2514
  $css = <<<NOWDOC
2515
  Main Container
2516
  ---------------------------------------------------------------------------
2517
  color:#000000;
2518
  color:#000000;
2519
  background:#FB6911;
2520
  box-sizing: border-box;
2521
  display: inline-block;
2522
  font-size: 14px;
2523
  color:white;
2524
  padding: 10px;
2525
  width: %POLL-WIDTH%;
2526
  zoom: 1;
2527
  Error message
2528
  ..................................
2529
  font-size:.8em;
2530
  font-style:italic;
2531
  color:red;
2532
  text-transform:lowercase;
2533
  text-align:center;
2534
  Success message
2535
  ..................................
2536
  font-size:.8em;
2537
  font-style:italic;
2538
  color:green;
2539
  text-align:center;
2540
  Poll Question
2541
  ---------------------------------------------------------------------------
2542
  border: 0 none;
2543
  margin: 0 0 2em;
2544
  padding: .25em;
2545
  text-align: center;
2546
  font-size: 14px;
2547
  Poll Options / Answers
2548
  ---------------------------------------------------------------------------
2549
  list-style: none;
2550
  margin: 0;
2551
  padding: 0;
2552
  list-style: none;
2553
  margin: 0;
2554
  padding: 0;
2555
  font-size: 14px;
2556
  line-height: 2em;
2557
  Label
2558
  ..................................
2559
  margin:0px;
2560
  font-style:normal;
2561
  font-weight:normal;
2562
  font-size:14px;
2563
  float:none;
2564
  display:inline-block;
2565
  Custom answer / Other
2566
  ..................................
2567
  width: 100%;
2568
  overflow: hidden;
2569
  width: 94%;
2570
  overflow: hidden;
2571
  Custom checkbox and radio button style
2572
  ---------------------------------------------------------------------------
2573
  Custom fields
2574
  ---------------------------------------------------------------------------
2575
  clear: both;
2576
  list-style: none;
2577
  margin: 0;
2578
  padding: 0;
2579
  overflow: hidden;
2580
  width: 100%;
2581
  display: block;
2582
  font-size:14px;
2583
  list-style: none;
2584
  display: block;
2585
  width: 94%;
2586
  Vote Button
2587
  ---------------------------------------------------------------------------
2588
  cursor:pointer;
2589
  display: block;
2590
  font-size:14px;
2591
  margin: 0 auto;
2592
  }
2593
  Results
2594
  ---------------------------------------------------------------------------
2595
  font-size: 12px;
2596
  font-style: italic;
2597
  font-weight: normal;
2598
  margin-left: 15px;
2599
  color: #38595E;
2600
  Style for results that are displayed on columns
2601
  ..................................
2602
  float: left;
2603
  display: inline-block;
2604
  width: 46%;
2605
  padding: 1%;
2606
  margin: 1%;
2607
  float: right;
2608
  width: auto;
2609
  color:#000;
2610
  text-decoration:underline;
2611
  font-size:12px;
2612
  color:#000;
2613
  text-decoration:underline;
2614
  font-size:12px;
2615
  color:#000;
2616
  text-decoration:underline;
2617
  font-size:12px;
2618
  float:left;
2619
  width:100%;
2620
  Result Bar
2621
  ..................................
2622
  ---------------------------------------------------------------------------
2623
  EXTRAS
2624
  ---------------------------------------------------------------------------
2625
  CAPTCHA
2626
  ..................................
2627
  width:30px;
2628
  float:left;
2629
  margin-left:5px;
2630
  height:0px;
2631
  break;
2632
  }
2633
  case 'Orange v2':
2634
  { //Orange v2
2635
  $css = <<<NOWDOC
2636
  Main Container
2637
  ---------------------------------------------------------------------------
2638
  border:1px solid #000000;
2639
  color:#000000;
2640
  color:#000000;
2641
  background:#fff;
2642
  box-sizing: border-box;
2643
  display: inline-block;
2644
  font-size: 14px;
2645
  color:#555;
2646
  padding: 10px;
2647
  width: %POLL-WIDTH%;
2648
  zoom: 1;
2649
  Error message
2650
  ..................................
2651
  font-size:.8em;
2652
  font-style:italic;
2653
  color:red;
2654
  text-transform:lowercase;
2655
  text-align:center;
2656
  Success message
2657
  ..................................
2658
  font-size:.8em;
2659
  font-style:italic;
2660
  color:green;
2661
  text-align:center;
2662
  Poll Question
2663
  ---------------------------------------------------------------------------
2664
  background:#FB6911;
2665
  color:#fff;
2666
  border: 0 none;
2667
  margin: 0 0 2em;
2668
  padding: .25em;
2669
  text-align: center;
2670
  font-size: 14px;
2671
  Poll Options / Answers
2672
  ---------------------------------------------------------------------------
2673
  list-style: none;
2674
  margin: 0;
2675
  padding: 0;
2676
  list-style: none;
2677
  margin: 0;
2678
  padding: 0;
2679
  font-size: 14px;
2680
  line-height: 2em;
2681
  Label
2682
  ..................................
2683
  margin:0px;
2684
  font-style:normal;
2685
  font-weight:normal;
2686
  font-size:14px;
2687
  float:none;
2688
  display:inline-block;
2689
  Custom answer / Other
2690
  ..................................
2691
  width: 100%;
2692
  overflow: hidden;
2693
  width: 94%;
2694
  overflow: hidden;
2695
  Custom checkbox and radio button style
2696
  ---------------------------------------------------------------------------
2697
  Custom fields
2698
  ---------------------------------------------------------------------------
2699
  clear: both;
2700
  list-style: none;
2701
  margin: 0;
2702
  padding: 0;
2703
  overflow: hidden;
2704
  width: 100%;
2705
  display: block;
2706
  font-size:14px;
2707
  list-style: none;
2708
  display: block;
2709
  width: 94%;
2710
  Vote Button
2711
  ---------------------------------------------------------------------------
2712
  cursor:pointer;
2713
  display: block;
2714
  font-size:14px;
2715
  margin: 0 auto;
2716
  }
2717
  Results
2718
  ---------------------------------------------------------------------------
2719
  font-size: 12px;
2720
  font-style: italic;
2721
  font-weight: normal;
2722
  margin-left: 15px;
2723
  color: #38595E;
2724
  Style for results that are displayed on columns
2725
  ..................................
2726
  float: left;
2727
  display: inline-block;
2728
  width: 46%;
2729
  padding: 1%;
2730
  margin: 1%;
2731
  float: right;
2732
  width: auto;
2733
  color:#000;
2734
  text-decoration:underline;
2735
  font-size:12px;
2736
  color:#000;
2737
  text-decoration:underline;
2738
  font-size:12px;
2739
  color:#000;
2740
  text-decoration:underline;
2741
  font-size:12px;
2742
  float:left;
2743
  width:100%;
2744
  Result Bar
2745
  ..................................
2746
  ---------------------------------------------------------------------------
2747
  EXTRAS
2748
  ---------------------------------------------------------------------------
2749
  CAPTCHA
2750
  ..................................
2751
  width:30px;
2752
  float:left;
2753
  margin-left:5px;
2754
  height:0px;
2755
  break;
2756
  }
2757
  case 'Orange v3':
2758
  { //Orange v3
2759
  $css = <<<NOWDOC
2760
  Main Container
2761
  ---------------------------------------------------------------------------
2762
  border:1px solid #000000;
2763
  color:#000000;
2764
  color:#000000;
2765
  background:#fff;
2766
  box-sizing: border-box;
2767
  display: inline-block;
2768
  font-size: 14px;
2769
  color:#555;
2770
  padding: 10px;
2771
  width: %POLL-WIDTH%;
2772
  zoom: 1;
2773
  border:5px solid #FB6911;
2774
  Error message
2775
  ..................................
2776
  font-size:.8em;
2777
  font-style:italic;
2778
  color:red;
2779
  text-transform:lowercase;
2780
  text-align:center;
2781
  Success message
2782
  ..................................
2783
  font-size:.8em;
2784
  font-style:italic;
2785
  color:green;
2786
  text-align:center;
2787
  Poll Question
2788
  ---------------------------------------------------------------------------
2789
  border: 0 none;
2790
  margin: 0 0 2em;
2791
  padding: .25em;
2792
  text-align: center;
2793
  font-size: 14px;
2794
  Poll Options / Answers
2795
  ---------------------------------------------------------------------------
2796
  list-style: none;
2797
  margin: 0;
2798
  padding: 0;
2799
  list-style: none;
2800
  margin: 0;
2801
  padding: 0;
2802
  font-size: 14px;
2803
  line-height: 2em;
2804
  Label
2805
  ..................................
2806
  margin:0px;
2807
  font-style:normal;
2808
  font-weight:normal;
2809
  font-size:14px;
2810
  float:none;
2811
  display:inline-block;
2812
  Custom answer / Other
2813
  ..................................
2814
  width: 100%;
2815
  overflow: hidden;
2816
  width: 94%;
2817
  overflow: hidden;
2818
  Custom checkbox and radio button style
2819
  ---------------------------------------------------------------------------
2820
  Custom fields
2821
  ---------------------------------------------------------------------------
2822
  clear: both;
2823
  list-style: none;
2824
  margin: 0;
2825
  padding: 0;
2826
  overflow: hidden;
2827
  width: 100%;
2828
  display: block;
2829
  font-size:14px;
2830
  list-style: none;
2831
  display: block;
2832
  width: 94%;
2833
  Vote Button
2834
  ---------------------------------------------------------------------------
2835
  cursor:pointer;
2836
  display: block;
2837
  font-size:14px;
2838
  margin: 0 auto;
2839
  }
2840
  Results
2841
  ---------------------------------------------------------------------------
2842
  font-size: 12px;
2843
  font-style: italic;
2844
  font-weight: normal;
2845
  margin-left: 15px;
2846
  color: #38595E;
2847
  Style for results that are displayed on columns
2848
  ..................................
2849
  float: left;
2850
  display: inline-block;
2851
  width: 46%;
2852
  padding: 1%;
2853
  margin: 1%;
2854
  float: right;
2855
  width: auto;
2856
  color:#000;
2857
  text-decoration:underline;
2858
  font-size:12px;
2859
  color:#000;
2860
  text-decoration:underline;
2861
  font-size:12px;
2862
  color:#000;
2863
  text-decoration:underline;
2864
  font-size:12px;
2865
  float:left;
2866
  width:100%;
2867
  Result Bar
2868
  ..................................
2869
  ---------------------------------------------------------------------------
2870
  EXTRAS
2871
  ---------------------------------------------------------------------------
2872
  CAPTCHA
2873
  ..................................
2874
  width:30px;
2875
  float:left;
2876
  margin-left:5px;
2877
  height:0px;
2878
  break;
2879
  }
2880
  }
2881
  $css.= "#yop-poll-container-%POLL-ID% img {
2882
  max-width: %POLL-WIDTH%;
2883
  $css = addslashes($css);
2884
  $before_vote_template = addslashes( $before_vote_template );
2885
  $sql .= "`before_vote_template` = '{$before_vote_template}',
2886
  $sql .= $wpdb->prepare( ' WHERE name = %s', $template_to_reset );
2887
  return $wpdb->query( $sql );
2888
  }
2889
  return 'html';
js/jquery-ui-timepicker-addon.js CHANGED
@@ -46,22 +46,37 @@
46
  * allowing multiple different settings on the same page.
47
  */
48
  function Timepicker() {
49
- this.regional = []; // Available regional settings, indexed by language code
50
- this.regional[''] = { // Default regional settings
51
- currentText: 'Now',
52
- closeText: 'Done',
53
- ampm: false,
54
- amNames: ['AM', 'A'],
55
- pmNames: ['PM', 'P'],
56
- timeFormat: 'hh:mm tt',
57
- timeSuffix: '',
58
- timeOnlyTitle: 'Choose Time',
59
- timeText: 'Time',
60
- hourText: 'Hour',
61
- minuteText: 'Minute',
62
- secondText: 'Second',
63
- millisecText: 'Millisecond',
64
- timezoneText: 'Time Zone'
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
65
  };
66
  this._defaults = { // Global defaults for all the datetime picker instances
67
  showButtonPanel: true,
46
  * allowing multiple different settings on the same page.
47
  */
48
  function Timepicker() {
49
+ this.regional = []; // Available regional settings, indexed by language code
50
+
51
+ this.regional[''] = { // Default regional settings
52
+
53
+ currentText: translation_array_calendar.noww,
54
+
55
+ closeText: translation_array_calendar.done,
56
+
57
+ ampm: false,
58
+
59
+ amNames: ['AM', 'A'],
60
+
61
+ pmNames: ['PM', 'P'],
62
+
63
+ timeFormat: 'hh:mm tt',
64
+
65
+ timeSuffix: '',
66
+
67
+ timeOnlyTitle: 'Choose Time',
68
+
69
+ timeText: translation_array_calendar.timee,
70
+
71
+ hourText: translation_array_calendar.hourr,
72
+
73
+ minuteText: translation_array_calendar.minutee,
74
+
75
+ secondText: translation_array_calendar.secondd,
76
+
77
+ millisecText: 'Millisecond',
78
+
79
+ timezoneText: 'Time Zone'
80
  };
81
  this._defaults = { // Global defaults for all the datetime picker instances
82
  showButtonPanel: true,
js/polls/wizard-options.js CHANGED
@@ -39,9 +39,9 @@ function SmartWizard( target, options ) {
39
  this.elmStepContainer = jQuery( '<div></div>' ).addClass( "stepContainer" );
40
  this.loader = jQuery( '<div>Loading</div>' ).addClass( "loader" );
41
  this.buttons = {
42
- next: jQuery( '<a>' + options.labelNext + '</a>' ).attr( "href", "#" ).addClass( "buttonNext" ),
43
- previous: jQuery( '<a>' + options.labelPrevious + '</a>' ).attr( "href", "#" ).addClass( "buttonPrevious" ),
44
- finish: jQuery( '<a>' + options.labelFinish + '</a>' ).attr( "href", "#" ).addClass( "buttonFinish" )
45
  };
46
 
47
  /*
39
  this.elmStepContainer = jQuery( '<div></div>' ).addClass( "stepContainer" );
40
  this.loader = jQuery( '<div>Loading</div>' ).addClass( "loader" );
41
  this.buttons = {
42
+ next: jQuery( '<a>' +button_yop.next_next+ '</a>' ).attr( "href", "#" ).addClass( "buttonNext" ),
43
+ previous: jQuery( '<a>' + button_yop.prev_prev + '</a>' ).attr( "href", "#" ).addClass( "buttonPrevious" ),
44
+ finish: jQuery( '<a>' +button_yop.savee + '</a>' ).attr( "href", "#" ).addClass( "buttonFinish" )
45
  };
46
 
47
  /*
js/polls/yop-poll-add-edit.js CHANGED
@@ -446,6 +446,20 @@ jQuery( document ).ready( function( jQuery ) {
446
  jQuery('.flex-prev').css("opacity","0.7");
447
  jQuery('.flex-next').css("opacity","0.7");
448
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
449
  }
450
  });
451
 
@@ -805,10 +819,21 @@ function yop_poll_select_template( id, location ) {
805
  }
806
 
807
  function yop_poll_preview_add_edit() {
808
- jQuery.ajax( {
 
 
 
 
 
 
 
 
 
 
 
809
  type: 'POST',
810
  url: yop_poll_global_settings.ajax_url,
811
- data: 'action=yop_poll_preview_add_edit' + '&' + jQuery( "#yop-poll-edit-add-new-form" ).serialize(),
812
  cache: false,
813
  beforeSend: function() {
814
  jQuery( "#yop-poll-spinner" ).css( "display", "inline" );
@@ -817,15 +842,38 @@ function yop_poll_preview_add_edit() {
817
  },
818
  success: function( data ) {
819
  jQuery( '#yop-poll-dialog' ).html( data );
 
820
  jQuery( '#yop-poll-dialog button' ).click( function() { return false; } );
821
  jQuery( '#yop-poll-dialog' ).dialog( "option", "modal", true );
822
  jQuery( '#yop-poll-dialog' ).dialog( "open" );
 
 
823
  },
 
824
  complete: function() {
825
  jQuery( "#yop-poll-spinner" ).css( "display", "none" );
826
  }
827
  } );
 
828
  return false;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
829
  }
830
  function yop_poll_show_poll_shortcode(poll_id){
831
  jQuery("#yop_poll_shortcode_input" ).val( "[yop_poll id="+'"'+poll_id+'"'+"]");
446
  jQuery('.flex-prev').css("opacity","0.7");
447
  jQuery('.flex-next').css("opacity","0.7");
448
 
449
+
450
+ }
451
+ if(id=='yop_poll_results_doughnut' || id=='yop_poll_results_polar' ||
452
+ id=='yop_poll_results_bar_pie'){
453
+ jQuery('.yop-poll-buy-template-li').removeClass('flex-active-slide');
454
+ jQuery('#yop-poll-buy-template-7').addClass('flex-active-slide');
455
+ jQuery('.flexslider').flexslider({
456
+ startAt: 5,
457
+ slideshow: true,
458
+ slideshowSpeed: 8000
459
+ });
460
+ jQuery(".flexslider").data('flexslider').flexAnimate(5, false);
461
+ jQuery('.flex-prev').css("opacity","0.7");
462
+ jQuery('.flex-next').css("opacity","0.7");
463
  }
464
  });
465
 
819
  }
820
 
821
  function yop_poll_preview_add_edit() {
822
+ var answers_display,tabulated_cols=0;
823
+ if(jQuery('.yop-poll-vertical-question').prop('checked'))
824
+ answers_display="vertical-answers";
825
+ else
826
+ if(jQuery('.yop-poll-orizontal-question').prop('checked'))
827
+ answers_display="orizontal-answers";
828
+ else
829
+ answers_display="tabulated-answers";
830
+ tabulated_cols=jQuery('.yop-poll-tabulated-cols').val();
831
+
832
+
833
+ jQuery.ajax( {
834
  type: 'POST',
835
  url: yop_poll_global_settings.ajax_url,
836
+ data: 'action=yop_poll_preview_add_edit' + '&' + jQuery( "#yop-poll-edit-add-new-form" ).serialize() ,
837
  cache: false,
838
  beforeSend: function() {
839
  jQuery( "#yop-poll-spinner" ).css( "display", "inline" );
842
  },
843
  success: function( data ) {
844
  jQuery( '#yop-poll-dialog' ).html( data );
845
+
846
  jQuery( '#yop-poll-dialog button' ).click( function() { return false; } );
847
  jQuery( '#yop-poll-dialog' ).dialog( "option", "modal", true );
848
  jQuery( '#yop-poll-dialog' ).dialog( "open" );
849
+ jQuery('.yop-poll-forms-display').css('opacity','1');
850
+ yop_poll_check_tabulate(answers_display,tabulated_cols);
851
  },
852
+
853
  complete: function() {
854
  jQuery( "#yop-poll-spinner" ).css( "display", "none" );
855
  }
856
  } );
857
+
858
  return false;
859
+ }
860
+ function yop_poll_check_tabulate(answers_display,tabulated_cols) {
861
+ console.log(answers_display);
862
+ console.log(tabulated_cols);
863
+ if(answers_display=='vertical-answers')
864
+ jQuery('.yop-poll-li-answer-preview').css('width',"100%");
865
+ else
866
+ if(answers_display=='orizontal-answers')
867
+ {
868
+ answersss=jQuery(".yop-poll-answers-preview ul li").length;
869
+ jQuery(".yop-poll-li-answer-preview").css('width',jQuery('.yop-poll-question-container-preview').width()/answersss)
870
+ }
871
+ else
872
+ {
873
+ jQuery(".yop-poll-li-answer-preview").css('width',jQuery('.yop-poll-question-container-preview').width()/tabulated_cols)
874
+ }
875
+
876
+
877
  }
878
  function yop_poll_show_poll_shortcode(poll_id){
879
  jQuery("#yop_poll_shortcode_input" ).val( "[yop_poll id="+'"'+poll_id+'"'+"]");
js/polls/yop-poll-results-votes.js CHANGED
@@ -28,6 +28,10 @@ jQuery( document ).ready( function( jQuery ) {
28
 
29
  jQuery(".yop_poll_pro_feature").dialog('close');
30
  });
 
 
 
 
31
  });
32
  function show_poll_to_vote(){
33
 
@@ -45,12 +49,30 @@ function show_poll_to_vote(){
45
  modal: true
46
 
47
  });
 
 
 
 
 
 
 
 
48
 
49
 
 
 
 
50
 
 
51
 
52
- }
 
 
 
 
53
 
 
 
54
 
55
  function add_votes( ) {
56
 
@@ -227,12 +249,11 @@ function show_details(){
227
  if(jQuery(this).closest('tr').next('tr').is(":visible") ){
228
 
229
  jQuery(this).closest('tr').next('tr').hide();
230
- alert(1);
231
  }
232
 
233
  else
234
 
235
- { alert(2);
236
 
237
  jQuery(".results_details").each(function( i ) {
238
 
28
 
29
  jQuery(".yop_poll_pro_feature").dialog('close');
30
  });
31
+ if(jQuery("#yop-poll-answer-votes-print").is(":checked"))
32
+ jQuery(".yop-poll-print-votes-votes").css('display','inline');
33
+ else
34
+ jQuery(".yop-poll-print-votes-votes").css('display','none');
35
  });
36
  function show_poll_to_vote(){
37
 
49
  modal: true
50
 
51
  });
52
+ }
53
+ function yop_poll_print_values(){
54
+ if(jQuery("#yop-poll-answer-votes-print").is(":checked"))
55
+ jQuery(".yop-poll-print-votes-votes").css('display','block');
56
+ else
57
+ jQuery(".yop-poll-print-votes-votes").css('display','none');
58
+ }
59
+ function show_poll_print_options(){
60
 
61
 
62
+ jQuery( "#success>p" ).remove();
63
+ jQuery( "#error>p" ).remove();
64
+ jQuery("#yop_poll_print_votes").dialog({
65
 
66
+ minHeight: 'auto',
67
 
68
+ minWidth: 'auto',
69
+
70
+
71
+
72
+ modal: true
73
 
74
+ });
75
+ }
76
 
77
  function add_votes( ) {
78
 
249
  if(jQuery(this).closest('tr').next('tr').is(":visible") ){
250
 
251
  jQuery(this).closest('tr').next('tr').hide();
 
252
  }
253
 
254
  else
255
 
256
+ {
257
 
258
  jQuery(".results_details").each(function( i ) {
259
 
js/polls/yop-poll-wizard.js CHANGED
@@ -21,11 +21,11 @@ function SmartWizard( target, options ) {
21
  this.elmStepContainer = jQuery( '<div></div>' ).addClass( "stepContainer" );
22
  this.loader = jQuery( '<div>Loading</div>' ).addClass( "loader" );
23
  this.buttons = {
24
- next: jQuery( '<a>' + options.labelNext + '</a>' ).attr( "href", "#" ).addClass( "buttonNext" ),
25
- previous: jQuery( '<a>' + options.labelPrevious + '</a>' ).attr( "href", "#" ).addClass( "buttonPrevious" ),
26
- finish: jQuery( '<a>' + options.labelFinish + '</a>' ).attr( "href", "#" ).addClass( "buttonFinish" )
27
  };
28
-
29
  /*
30
  * Private functions
31
  */
@@ -396,9 +396,9 @@ function SmartWizard( target, options ) {
396
  }
397
  }
398
  else {
399
- jQuery( this.buttons.finish ).addClass( "buttonDisabled" );
400
  if( this.options.hideButtonsOnDisabled ) {
401
- jQuery( this.buttons.finish ).hide();
402
  }
403
  }
404
  }
21
  this.elmStepContainer = jQuery( '<div></div>' ).addClass( "stepContainer" );
22
  this.loader = jQuery( '<div>Loading</div>' ).addClass( "loader" );
23
  this.buttons = {
24
+ next: jQuery( '<a>' + button_yop.next_next + '</a>' ).attr( "href", "#" ).addClass( "buttonNext" ),
25
+ previous: jQuery( '<a>' + button_yop.prev_prev+ '</a>' ).attr( "href", "#" ).addClass( "buttonPrevious" ),
26
+ finish: jQuery( '<a>' + button_yop.savee + '</a>' ).attr( "href", "#" ).addClass( "buttonFinish" )
27
  };
28
+ jQuery("#yop-poll-edit-add-new-form-submit").hide();
29
  /*
30
  * Private functions
31
  */
396
  }
397
  }
398
  else {
399
+ // jQuery( this.buttons.finish ).addClass( "buttonDisabled" );
400
  if( this.options.hideButtonsOnDisabled ) {
401
+ jQuery( this.buttons.finish ).show();
402
  }
403
  }
404
  }
js/yop-poll-admin.js CHANGED
@@ -51,7 +51,9 @@ jQuery(".yop_poll_tooltip-buy_pro" ).click( function(){
51
  id=='yop-poll-vote-permisions-show-g-share-button-yes'|| id=='yop-poll-vote-permisions-show-g-share-button-no' ||
52
  id=='yop_poll_google_integration-yes' || id=='yop_poll_google_integration-no'
53
  || id=='yop-poll-for-slider-page-4'||id=='yop-poll-for-slider-page2'
54
- || id=='yop-poll-for-slider-page3' || id=='yop-poll-vote-permisions-facebook-yes'){
 
 
55
 
56
 
57
 
51
  id=='yop-poll-vote-permisions-show-g-share-button-yes'|| id=='yop-poll-vote-permisions-show-g-share-button-no' ||
52
  id=='yop_poll_google_integration-yes' || id=='yop_poll_google_integration-no'
53
  || id=='yop-poll-for-slider-page-4'||id=='yop-poll-for-slider-page2'
54
+ || id=='yop-poll-for-slider-page3' || id=='yop-poll-vote-permisions-facebook-yes' ||
55
+ id=='yop_poll_results_bar_pie' || id=='yop_poll_results_polar' ||
56
+ id=='yop_poll_results_doughnut'){
57
 
58
 
59
 
js/yop-poll-public.js CHANGED
@@ -52,18 +52,20 @@ jQuery(document).ready(function(){
52
 
53
  });
54
  function yop_poll_runEval(poll_id, unique_id) {
55
-
56
  eval("if(typeof window.strip_results_" + poll_id + unique_id + " == 'function') strip_results_"+poll_id + unique_id +"();");
57
- if(tabulate.results || tabulate.orizontal_results!=0)
58
- eval( "if(typeof window.tabulate_results_" + poll_id + unique_id + " == 'function') tabulate_results_" + poll_id + unique_id + "(); " )
59
 
60
- if(tabulate.answers || tabulate.orizontal_answers!=0)
 
 
 
 
61
  eval( "if(typeof window.tabulate_answers_" + poll_id + unique_id + " == 'function') tabulate_answers_" + poll_id + unique_id + "(); " );
62
 
63
 
64
  eval( "if(typeof runOnPollStateChange_" + poll_id + unique_id + " == 'function') runOnPollStateChange_" + poll_id +
65
  unique_id + "(); " );
66
-
67
 
68
  }
69
 
@@ -99,14 +101,7 @@ function yop_poll_show_message(message, poll_id, unique_id, type, scrollTo) {
99
  var container = jQuery('html body'),
100
  scrollTo = jQuery('#yop-poll-container-error-' + poll_id + unique_id );
101
 
102
- container.scrollTop(
103
- scrollTo.offset().top - container.offset().top + container.scrollTop()
104
- );
105
 
106
- // Or you can animate the scrolling:
107
- container.animate({
108
- scrollTop: scrollTo.offset().top - container.offset().top + container.scrollTop()
109
- })
110
  }
111
  else {
112
  jQuery( '#yop-poll-container-error-' + poll_id + unique_id ).html( "" );
@@ -114,7 +109,7 @@ function yop_poll_show_message(message, poll_id, unique_id, type, scrollTo) {
114
  }
115
  if( scrollTo ) {
116
  var top = jQuery( "#yop-poll-container-" + type + "-" + poll_id + unique_id ).position().top;
117
- jQuery( 'html, body' ).animate( {scrollTop: top + "px"}, 800 );
118
  }
119
  }
120
 
@@ -275,7 +270,7 @@ function yop_poll_vote_on_multiple_options(poll_id, vote_type, poll_location, un
275
  jQuery( '#yop_poll_wordpress-vote-button-' + poll_id + unique_id ).hide();
276
  jQuery( '#yop_poll_anonimous-vote-button-' + poll_id + unique_id).hide();
277
  var back_to_vote_loading_image = document.createElement( 'img' );
278
- jQuery( back_to_vote_loading_image).css('margin-left','40%')
279
  back_to_vote_loading_image.src = yop_poll_public_config.loading_image_src;
280
  back_to_vote_loading_image.alt = yop_poll_public_config.loading_image_alt;
281
  back_to_vote_loading_image.id = 'yop_poll_wordpress_loading_img-' + poll_id + unique_id;
@@ -324,7 +319,7 @@ function yop_poll_vote_on_multiple_options(poll_id, vote_type, poll_location, un
324
  jQuery( '#yop_poll_wordpress-vote-button-' + poll_id + unique_id ).hide();
325
  jQuery( '#yop_poll_anonimous-vote-button-' + poll_id + unique_id).hide();
326
  var back_to_vote_loading_image = document.createElement( 'img' );
327
- jQuery( back_to_vote_loading_image).css('margin-left','40%')
328
  back_to_vote_loading_image.src = yop_poll_public_config.loading_image_src;
329
  back_to_vote_loading_image.alt = yop_poll_public_config.loading_image_alt;
330
  back_to_vote_loading_image.id = 'yop_poll_wordpress_loading_img-' + poll_id + unique_id;
@@ -581,7 +576,7 @@ function yop_poll_view_results( poll_id, poll_location, unique_id ) {
581
  result_link_loading_image.id = 'yop_poll_result_link_loading_img-' + poll_id + unique_id;
582
 
583
  jQuery( '#yop_poll_result_link' + poll_id + unique_id ).after( result_link_loading_image );
584
- jQuery( result_link_loading_image).css('padding-right','80%')
585
 
586
  //jQuery( '#yop_poll_result_link_loading_img-' + poll_id + unique_id ).css( 'border', 'none' );
587
  /* jQuery( result_link_loading_image).css(
@@ -609,10 +604,11 @@ function yop_poll_view_results( poll_id, poll_location, unique_id ) {
609
  jQuery( '#yop_poll_result_link_loading_img-' + poll_id + unique_id ).remove();
610
 
611
  jQuery( '#yop_poll_result_link' + poll_id + unique_id ).show();
612
-
613
  },
614
 
615
  success: function( data ) {
 
616
  data = yop_poll_extractResponse( data );
617
 
618
 
@@ -624,7 +620,7 @@ function yop_poll_view_results( poll_id, poll_location, unique_id ) {
624
 
625
  //jQuery( '#yop_poll_vote_button_loading_img-' + poll_id + unique_id ).remove();
626
 
627
-
628
  jQuery( '#yop-poll-container-error-' + poll_id + unique_id ).html( response.error );
629
 
630
  jQuery( '#yop-poll-container-success-' + poll_id + unique_id ).html( '' );
@@ -640,7 +636,7 @@ function yop_poll_view_results( poll_id, poll_location, unique_id ) {
640
  jQuery( '#yop-poll-container-error-' + poll_id + unique_id ).html( '' );
641
 
642
  jQuery( '#yop-poll-container-success-' + poll_id + unique_id ).html( response.success );
643
-
644
  yop_poll_runEval( poll_id, unique_id );
645
 
646
  }
@@ -659,9 +655,12 @@ function yop_poll_view_results( poll_id, poll_location, unique_id ) {
659
 
660
  jQuery( '#yop_poll_result_link' + poll_id + unique_id ).show();
661
 
 
662
  }
663
 
664
  } );
 
 
665
  }
666
 
667
  function yop_poll_back_to_vote(poll_id, poll_location, unique_id) {
@@ -670,7 +669,7 @@ function yop_poll_back_to_vote(poll_id, poll_location, unique_id) {
670
  var yop_poll_public_config = window['yop_poll_public_config_' + poll_id + unique_id ];
671
  jQuery( '#yop_poll_back_to_vote_link' + poll_id + unique_id ).hide();
672
  var back_to_vote_loading_image = document.createElement( 'img' );
673
- jQuery( back_to_vote_loading_image).css('margin-left','40%')
674
  back_to_vote_loading_image.src = yop_poll_public_config.loading_image_src;
675
  back_to_vote_loading_image.alt = yop_poll_public_config.loading_image_alt;
676
  back_to_vote_loading_image.id = 'yop_poll_back_to_vote_loading_img-' + poll_id + unique_id;
@@ -687,13 +686,18 @@ function yop_poll_back_to_vote(poll_id, poll_location, unique_id) {
687
  alert( 'An error has occured!' );
688
  jQuery( '#yop_poll_back_to_vote_loading_img-' + poll_id + unique_id ).remove();
689
  jQuery( '#yop_poll_result_link' + poll_id + unique_id ).show();
 
 
690
  },
691
  success: function(data) {
692
  data = yop_poll_extractResponse( data );
693
  response = JSON.parse( data );
 
694
  if( '' != response.error ) {
695
  jQuery( '#yop-poll-container-error-' + poll_id + unique_id ).html( response.error );
696
  jQuery( '#yop-poll-container-success-' + poll_id + unique_id ).html( '' );
 
 
697
  }
698
  else {
699
  if( '' != response.message ) {
@@ -701,24 +705,30 @@ function yop_poll_back_to_vote(poll_id, poll_location, unique_id) {
701
  jQuery( '#yop-poll-container-error-' + poll_id + unique_id ).html( '' );
702
  jQuery( '#yop-poll-container-success-' + poll_id +
703
  unique_id ).html( response.success );
 
704
  yop_poll_runEval( poll_id, unique_id );
 
705
  }
706
  else {
707
  jQuery( '#yop-poll-container-error-' + poll_id +
708
  unique_id ).html( 'An Error Has Occured!' );
709
  jQuery( '#yop-poll-container-success-' + poll_id + unique_id ).html( '' );
 
710
  }
711
  }
712
  jQuery( '#yop_poll_back_to_vote_loading_img-' + poll_id + unique_id ).remove();
713
  jQuery( '#yop_poll_result_link' + poll_id + unique_id ).show();
 
 
714
  }
715
  } );
 
716
  }
717
 
718
  function yop_poll_show_loading(target, loading_img_id, yop_poll_public_config) {
719
  jQuery( '#' + target ).hide();
720
  var target_loading_image = document.createElement( 'img' );
721
- jQuery(target_loading_image).css('margin-left','40%')
722
  target_loading_image.src = yop_poll_public_config.loading_image_src;
723
  target_loading_image.alt = yop_poll_public_config.loading_image_alt;
724
  target_loading_image.id = loading_img_id;
52
 
53
  });
54
  function yop_poll_runEval(poll_id, unique_id) {
55
+
56
  eval("if(typeof window.strip_results_" + poll_id + unique_id + " == 'function') strip_results_"+poll_id + unique_id +"();");
 
 
57
 
58
+ if (typeof tabulate !== 'undefined')
59
+ if(tabulate.results || tabulate.orizontal_results!=0)
60
+ eval( "if(typeof window.tabulate_results_" + poll_id + unique_id + " == 'function') tabulate_results_" + poll_id + unique_id + "(); " )
61
+
62
+ //if(tabulate.answers || tabulate.orizontal_answers!=0)
63
  eval( "if(typeof window.tabulate_answers_" + poll_id + unique_id + " == 'function') tabulate_answers_" + poll_id + unique_id + "(); " );
64
 
65
 
66
  eval( "if(typeof runOnPollStateChange_" + poll_id + unique_id + " == 'function') runOnPollStateChange_" + poll_id +
67
  unique_id + "(); " );
68
+ jQuery('.yop-poll-forms').removeClass("yop-poll-forms-display");
69
 
70
  }
71
 
101
  var container = jQuery('html body'),
102
  scrollTo = jQuery('#yop-poll-container-error-' + poll_id + unique_id );
103
 
 
 
 
104
 
 
 
 
 
105
  }
106
  else {
107
  jQuery( '#yop-poll-container-error-' + poll_id + unique_id ).html( "" );
109
  }
110
  if( scrollTo ) {
111
  var top = jQuery( "#yop-poll-container-" + type + "-" + poll_id + unique_id ).position().top;
112
+ jQuery( 'html, body' ).scrollTop( top);
113
  }
114
  }
115
 
270
  jQuery( '#yop_poll_wordpress-vote-button-' + poll_id + unique_id ).hide();
271
  jQuery( '#yop_poll_anonimous-vote-button-' + poll_id + unique_id).hide();
272
  var back_to_vote_loading_image = document.createElement( 'img' );
273
+ jQuery( back_to_vote_loading_image).css('margin-left','45%')
274
  back_to_vote_loading_image.src = yop_poll_public_config.loading_image_src;
275
  back_to_vote_loading_image.alt = yop_poll_public_config.loading_image_alt;
276
  back_to_vote_loading_image.id = 'yop_poll_wordpress_loading_img-' + poll_id + unique_id;
319
  jQuery( '#yop_poll_wordpress-vote-button-' + poll_id + unique_id ).hide();
320
  jQuery( '#yop_poll_anonimous-vote-button-' + poll_id + unique_id).hide();
321
  var back_to_vote_loading_image = document.createElement( 'img' );
322
+ jQuery( back_to_vote_loading_image).css('margin-left','45%')
323
  back_to_vote_loading_image.src = yop_poll_public_config.loading_image_src;
324
  back_to_vote_loading_image.alt = yop_poll_public_config.loading_image_alt;
325
  back_to_vote_loading_image.id = 'yop_poll_wordpress_loading_img-' + poll_id + unique_id;
576
  result_link_loading_image.id = 'yop_poll_result_link_loading_img-' + poll_id + unique_id;
577
 
578
  jQuery( '#yop_poll_result_link' + poll_id + unique_id ).after( result_link_loading_image );
579
+ jQuery( result_link_loading_image).css('padding-right','50%')
580
 
581
  //jQuery( '#yop_poll_result_link_loading_img-' + poll_id + unique_id ).css( 'border', 'none' );
582
  /* jQuery( result_link_loading_image).css(
604
  jQuery( '#yop_poll_result_link_loading_img-' + poll_id + unique_id ).remove();
605
 
606
  jQuery( '#yop_poll_result_link' + poll_id + unique_id ).show();
607
+ jQuery('.yop-poll-forms').removeClass('yop-poll-forms-display');
608
  },
609
 
610
  success: function( data ) {
611
+
612
  data = yop_poll_extractResponse( data );
613
 
614
 
620
 
621
  //jQuery( '#yop_poll_vote_button_loading_img-' + poll_id + unique_id ).remove();
622
 
623
+ jQuery('.yop-poll-forms').removeClass('yop-poll-forms-display');
624
  jQuery( '#yop-poll-container-error-' + poll_id + unique_id ).html( response.error );
625
 
626
  jQuery( '#yop-poll-container-success-' + poll_id + unique_id ).html( '' );
636
  jQuery( '#yop-poll-container-error-' + poll_id + unique_id ).html( '' );
637
 
638
  jQuery( '#yop-poll-container-success-' + poll_id + unique_id ).html( response.success );
639
+ jQuery('.yop-poll-forms').removeClass('yop-poll-forms-display');
640
  yop_poll_runEval( poll_id, unique_id );
641
 
642
  }
655
 
656
  jQuery( '#yop_poll_result_link' + poll_id + unique_id ).show();
657
 
658
+
659
  }
660
 
661
  } );
662
+ jQuery('.yop-poll-forms').removeClass('yop-poll-forms-display');
663
+
664
  }
665
 
666
  function yop_poll_back_to_vote(poll_id, poll_location, unique_id) {
669
  var yop_poll_public_config = window['yop_poll_public_config_' + poll_id + unique_id ];
670
  jQuery( '#yop_poll_back_to_vote_link' + poll_id + unique_id ).hide();
671
  var back_to_vote_loading_image = document.createElement( 'img' );
672
+ jQuery( back_to_vote_loading_image).css('margin-left','45%')
673
  back_to_vote_loading_image.src = yop_poll_public_config.loading_image_src;
674
  back_to_vote_loading_image.alt = yop_poll_public_config.loading_image_alt;
675
  back_to_vote_loading_image.id = 'yop_poll_back_to_vote_loading_img-' + poll_id + unique_id;
686
  alert( 'An error has occured!' );
687
  jQuery( '#yop_poll_back_to_vote_loading_img-' + poll_id + unique_id ).remove();
688
  jQuery( '#yop_poll_result_link' + poll_id + unique_id ).show();
689
+ jQuery('.yop-poll-forms').removeClass('yop-poll-forms-display');
690
+
691
  },
692
  success: function(data) {
693
  data = yop_poll_extractResponse( data );
694
  response = JSON.parse( data );
695
+ jQuery('.yop-poll-forms').removeClass('yop-poll-forms-display');
696
  if( '' != response.error ) {
697
  jQuery( '#yop-poll-container-error-' + poll_id + unique_id ).html( response.error );
698
  jQuery( '#yop-poll-container-success-' + poll_id + unique_id ).html( '' );
699
+ jQuery('.yop-poll-forms').removeClass('yop-poll-forms-display');
700
+
701
  }
702
  else {
703
  if( '' != response.message ) {
705
  jQuery( '#yop-poll-container-error-' + poll_id + unique_id ).html( '' );
706
  jQuery( '#yop-poll-container-success-' + poll_id +
707
  unique_id ).html( response.success );
708
+ jQuery('.yop-poll-forms').removeClass('yop-poll-forms-display');
709
  yop_poll_runEval( poll_id, unique_id );
710
+
711
  }
712
  else {
713
  jQuery( '#yop-poll-container-error-' + poll_id +
714
  unique_id ).html( 'An Error Has Occured!' );
715
  jQuery( '#yop-poll-container-success-' + poll_id + unique_id ).html( '' );
716
+ jQuery('.yop-poll-forms').removeClass('yop-poll-forms-display');
717
  }
718
  }
719
  jQuery( '#yop_poll_back_to_vote_loading_img-' + poll_id + unique_id ).remove();
720
  jQuery( '#yop_poll_result_link' + poll_id + unique_id ).show();
721
+ jQuery('.yop-poll-forms').removeClass('yop-poll-forms-display');
722
+
723
  }
724
  } );
725
+ jQuery('.yop-poll-forms').removeClass('yop-poll-forms-display');
726
  }
727
 
728
  function yop_poll_show_loading(target, loading_img_id, yop_poll_public_config) {
729
  jQuery( '#' + target ).hide();
730
  var target_loading_image = document.createElement( 'img' );
731
+ jQuery(target_loading_image).css('margin-left','45%')
732
  target_loading_image.src = yop_poll_public_config.loading_image_src;
733
  target_loading_image.alt = yop_poll_public_config.loading_image_alt;
734
  target_loading_image.id = loading_img_id;
languages/yop_poll-fr_FR.mo ADDED
Binary file
languages/yop_poll-fr_FR.po ADDED
@@ -0,0 +1,2931 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: YOP\n"
4
+ "POT-Creation-Date: 2015-04-07 13:41+0200\n"
5
+ "PO-Revision-Date: 2015-04-07 13:42+0200\n"
6
+ "Last-Translator: Marius <marius_0156@yahoo.com>\n"
7
+ "Language-Team: YOP <YOP>\n"
8
+ "Language: fr\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Generator: Poedit 1.7.4\n"
13
+ "X-Poedit-Basepath: .\n"
14
+ "Plural-Forms: nplurals=2; plural=(n > 1);\n"
15
+ "X-Poedit-SourceCharset: UTF-8\n"
16
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;"
17
+ "_n_noop:1,2;_c;_nc:4c,1,2;_x:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;_ex:1,2c;"
18
+ "esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;"
19
+ "__yop_poll;gettext\n"
20
+ "X-Poedit-SearchPath-0: .\n"
21
+
22
+ #: inc/admin.php:183
23
+ msgid "Help"
24
+ msgstr "Au Secours"
25
+
26
+ #: inc/admin.php:195
27
+ msgid "Upgrade to Pro"
28
+ msgstr "Passer à Pro"
29
+
30
+ #: inc/admin.php:404 templates/polls_view.html:37
31
+ msgid "Need Help?"
32
+ msgstr "Besoin D'Aide?"
33
+
34
+ #: inc/admin.php:404
35
+ msgid "Download<br /> YOP Poll User Guide"
36
+ msgstr "Télécharger <br /> YOP Sondage Guide de l'utilisateur"
37
+
38
+ #: inc/admin.php:481
39
+ msgid "Time"
40
+ msgstr "Du Temps"
41
+
42
+ #: inc/admin.php:482
43
+ msgid "Hour"
44
+ msgstr "Heure"
45
+
46
+ #: inc/admin.php:483
47
+ msgid "Minute"
48
+ msgstr "Minute"
49
+
50
+ #: inc/admin.php:484
51
+ msgid "Second"
52
+ msgstr "Deuxième"
53
+
54
+ #: inc/admin.php:485
55
+ msgid "Now"
56
+ msgstr "Maintenant"
57
+
58
+ #: inc/admin.php:486
59
+ msgid "Done"
60
+ msgstr "Fini"
61
+
62
+ #: inc/admin.php:881
63
+ msgid "Please log in to cast your vote"
64
+ msgstr "S'il vous plaît vous connecter pour voter"
65
+
66
+ #: inc/bans_admin.php:68
67
+ msgid "Poll Bans"
68
+ msgstr "Sondage interdit"
69
+
70
+ #: inc/import_admin.php:486 inc/import_admin.php:759
71
+ msgid "Import Polls from Wp-Poll"
72
+ msgstr "Importer un sondage à partir de Wp-Poll"
73
+
74
+ #: inc/logs_admin.php:62 inc/logs_admin.php:198
75
+ msgid "Logs"
76
+ msgstr "Logs"
77
+
78
+ #: inc/logs_admin.php:163 inc/poll_admin.php:700 inc/poll_admin.php:784
79
+ #: inc/poll_admin.php:2322
80
+ msgid "Can't open php://output!"
81
+ msgstr "Impossible d'ouvrir php://output!"
82
+
83
+ #: inc/logs_admin.php:165 inc/logs_admin.php:171 inc/poll_admin.php:704
84
+ #: inc/poll_admin.php:788 inc/poll_admin.php:2330 inc/poll_admin.php:2377
85
+ #: inc/poll_admin.php:2422
86
+ msgid "Can't write header!"
87
+ msgstr "Impossible d'écrire l'entête."
88
+
89
+ #: inc/logs_admin.php:176 inc/poll_admin.php:736 inc/poll_admin.php:813
90
+ #: inc/poll_admin.php:2429
91
+ msgid "Can't close php://output!"
92
+ msgstr "Impossible de fermer php://output!"
93
+
94
+ #: inc/maintenance.php:323 inc/plugin-functions.php:297
95
+ #: inc/plugin-functions.php:430
96
+ msgid "vote"
97
+ msgstr "vote"
98
+
99
+ #: inc/maintenance.php:324 inc/plugin-functions.php:299
100
+ #: inc/plugin-functions.php:432
101
+ msgid "votes"
102
+ msgstr "votes"
103
+
104
+ #: inc/options_admin.php:50 inc/poll_admin.php:158
105
+ msgid "Next"
106
+ msgstr "Suivant"
107
+
108
+ #: inc/options_admin.php:51 inc/poll_admin.php:159
109
+ msgid "Previous"
110
+ msgstr "Précédent"
111
+
112
+ #: inc/options_admin.php:53 inc/poll_admin.php:161
113
+ msgid "Please fill in empty answers from Question"
114
+ msgstr "Se il vous plaît remplir dans les réponses vides de Question"
115
+
116
+ #: inc/options_admin.php:86
117
+ msgid "General Options"
118
+ msgstr "Options générales."
119
+
120
+ #: inc/poll_admin.php:521 inc/poll_admin.php:1629 inc/poll_admin.php:2937
121
+ #: templates/options_general.html:42 templates/polls_view.html:300
122
+ msgid "Results"
123
+ msgstr "Résultats"
124
+
125
+ #: inc/poll_admin.php:638
126
+ msgid "View Votes"
127
+ msgstr "Voir Votes"
128
+
129
+ #: inc/poll_admin.php:717 inc/poll_admin.php:728 inc/poll_admin.php:808
130
+ msgid "Can't write record!"
131
+ msgstr "Impossible d'écrire un rapport"
132
+
133
+ #: inc/poll_admin.php:825
134
+ msgid "Add New Poll"
135
+ msgstr "Ajouter un nouveau sondage"
136
+
137
+ #: inc/pro_admin.php:21
138
+ msgid "Help!"
139
+ msgstr "Aidez-Moi!"
140
+
141
+ #: inc/pro_admin.php:45
142
+ msgid "Before You Buy"
143
+ msgstr "Avant que vous achetiez"
144
+
145
+ #: inc/pro_admin.php:198
146
+ msgid "here"
147
+ msgstr "ici"
148
+
149
+ #: inc/pro_admin.php:202
150
+ msgid ""
151
+ "There was an error while determining your domain name. Please try again "
152
+ "later or contact support team if problem persists!"
153
+ msgstr ""
154
+ "Il y a eu une erreur lors de la détermination de votre nom de domaine. S'il "
155
+ "vous plaît essayer à nouveau plus tard, ou l'équipe de support de contact si "
156
+ "le problème persiste!"
157
+
158
+ #: inc/pro_admin.php:212
159
+ msgid "Finish Upgrade"
160
+ msgstr "Mise à jour terminée."
161
+
162
+ #: inc/templates_admin.php:122 inc/templates_admin.php:196
163
+ msgid "Templates"
164
+ msgstr "Modèles"
165
+
166
+ #: inc/templates_admin.php:197
167
+ msgid "Add New Poll Template"
168
+ msgstr "Ajouter un nouveau modèle de sondage"
169
+
170
+ #: yop_poll.php:167
171
+ msgid ""
172
+ "Php version isn't high enough! Yop Poll will be automatically downgraded!"
173
+ "Please upgrade your Php version!"
174
+ msgstr ""
175
+ "Version de PHP est pas assez élevé! Yop sondage sera automatiquement "
176
+ "déclassé! Se il vous plaît mettre à jour votre version de PHP!"
177
+
178
+ #: templates/bans_bans.html:9 templates/polls_view.html:4
179
+ #: templates/templates_templates.html:5
180
+ #: templates/templates_templates_add_edit.html:4
181
+ msgid "Add New"
182
+ msgstr "Ajouter un sondage"
183
+
184
+ #: templates/bans_bans.html:37 templates/polls_pop_up_ban.html:6
185
+ msgid "Ban IP, Username or Email"
186
+ msgstr "IP, utilisateur ou courriel interdit"
187
+
188
+ #: templates/bans_bans.html:55 templates/options_general.html:38
189
+ #: templates/polls_pop_up_ban.html:15 templates/polls_results_votes.html:193
190
+ msgid "Poll"
191
+ msgstr "Sondage"
192
+
193
+ #: templates/bans_bans.html:63 templates/polls_pop_up_ban.html:19
194
+ msgid "Bans For All Polls"
195
+ msgstr "Interdits pour tous les sondages"
196
+
197
+ #: templates/bans_bans.html:85 templates/polls_pop_up_ban.html:30
198
+ #: templates/polls_results_votes.html:205
199
+ msgid "Type"
200
+ msgstr "Type"
201
+
202
+ #: templates/bans_bans.html:91 templates/polls_pop_up_ban.html:33
203
+ #: templates/polls_results_votes.html:211
204
+ msgid "Choose Ban Type"
205
+ msgstr "Choisir le type d'interdiction"
206
+
207
+ #: templates/bans_bans.html:93 templates/logs_logs.html:145
208
+ #: templates/logs_logs.html:213 templates/polls_pop_up_ban.html:34
209
+ #: templates/polls_results_votes.html:213
210
+ #: templates/polls_results_votes.html:825
211
+ #: templates/polls_results_votes.html:921
212
+ msgid "Ip"
213
+ msgstr "Ip"
214
+
215
+ #: templates/bans_bans.html:95 templates/bans_bans.html:259
216
+ #: templates/polls_pop_up_ban.html:35
217
+ msgid "Username"
218
+ msgstr "Nom d'utilisateur"
219
+
220
+ #: templates/bans_bans.html:97 templates/bans_bans.html:261
221
+ #: templates/polls_pop_up_ban.html:36
222
+ msgid "Email"
223
+ msgstr "Courriel"
224
+
225
+ #: templates/bans_bans.html:107 templates/polls_results_votes.html:225
226
+ msgid "Period&Unit"
227
+ msgstr "Période & Unité"
228
+
229
+ #: templates/bans_bans.html:117 templates/polls_pop_up_ban.html:50
230
+ #: templates/polls_results_votes.html:234
231
+ msgid "Choose Unit"
232
+ msgstr "Choisir l'unité"
233
+
234
+ #: templates/bans_bans.html:119 templates/polls_pop_up_ban.html:51
235
+ #: templates/polls_results_votes.html:236
236
+ msgid "Hours"
237
+ msgstr "Heures"
238
+
239
+ #: templates/bans_bans.html:121 templates/polls_pop_up_ban.html:52
240
+ #: templates/polls_results_votes.html:238
241
+ msgid "Days"
242
+ msgstr "Jours"
243
+
244
+ #: templates/bans_bans.html:123 templates/polls_pop_up_ban.html:53
245
+ #: templates/polls_results_votes.html:240
246
+ msgid "Weeks"
247
+ msgstr "Semaines"
248
+
249
+ #: templates/bans_bans.html:125 templates/polls_pop_up_ban.html:54
250
+ #: templates/polls_results_votes.html:242
251
+ msgid "Months"
252
+ msgstr "Mois"
253
+
254
+ #: templates/bans_bans.html:137 templates/polls_pop_up_ban.html:59
255
+ #: templates/polls_results_print.html:81
256
+ #: templates/polls_results_votes.html:256
257
+ #: templates/polls_results_votes.html:511
258
+ msgid "Value"
259
+ msgstr "Valeur"
260
+
261
+ #: templates/bans_bans.html:141 templates/polls_pop_up_ban.html:61
262
+ #: templates/polls_results_votes.html:260
263
+ msgid "One Value Per Line"
264
+ msgstr "Une valeur par ligne"
265
+
266
+ #: templates/bans_bans.html:189
267
+ msgid "Search Poll Bans"
268
+ msgstr "Recherche de sondage interdit"
269
+
270
+ #: templates/bans_bans.html:209 templates/imports_imports.html:39
271
+ #: templates/logs_logs.html:31 templates/polls_results_votes.html:693
272
+ #: templates/polls_view.html:113
273
+ msgid "Bulk Actions"
274
+ msgstr "Actions globales"
275
+
276
+ #: templates/bans_bans.html:211 templates/bans_bans.html:452
277
+ #: templates/logs_logs.html:33 templates/logs_logs.html:35
278
+ #: templates/logs_logs.html:256 templates/polls_answer_template.html:21
279
+ #: templates/polls_results_votes.html:695
280
+ #: templates/polls_results_votes.html:1000 templates/polls_view.html:115
281
+ #: templates/polls_view.html:294 templates/templates_templates.html:210
282
+ msgid "Delete"
283
+ msgstr "Effacer"
284
+
285
+ #: templates/bans_bans.html:227
286
+ msgid "All Polls"
287
+ msgstr "Tous les sondages"
288
+
289
+ #: templates/bans_bans.html:255
290
+ msgid "All Ban Types"
291
+ msgstr "Tous les types d'interdictions"
292
+
293
+ #: templates/bans_bans.html:257 templates/polls_results_votes.html:425
294
+ #: templates/polls_results_votes.html:669
295
+ msgid "IP"
296
+ msgstr "IP"
297
+
298
+ #: templates/bans_bans.html:264 templates/logs_logs.html:60
299
+ #: templates/polls_results.html:35 templates/polls_results_votes.html:311
300
+ #: templates/polls_view.html:144
301
+ msgid "Filter"
302
+ msgstr "Filtre"
303
+
304
+ #: templates/bans_bans.html:275 templates/imports_imports.html:49
305
+ #: templates/polls_results_print.html:124
306
+ #: templates/polls_results_votes.html:548
307
+ #: templates/polls_results_votes.html:743 templates/polls_view.html:151
308
+ msgid "Items Per Page"
309
+ msgstr "Items par page"
310
+
311
+ #: templates/bans_bans.html:287 templates/bans_bans.html:528
312
+ msgid "Bans"
313
+ msgstr "Interdictions"
314
+
315
+ #: templates/bans_bans.html:320
316
+ msgid "ID"
317
+ msgstr "ID"
318
+
319
+ #: templates/bans_bans.html:334
320
+ msgid "Poll Name"
321
+ msgstr "Nom de sondage"
322
+
323
+ #: templates/bans_bans.html:348
324
+ msgid "Ban Type"
325
+ msgstr "Type d'interdiction"
326
+
327
+ #: templates/bans_bans.html:364
328
+ msgid "Ban value"
329
+ msgstr "Valeur d'interdiction"
330
+
331
+ #: templates/bans_bans.html:382 templates/polls_pop_up_ban.html:41
332
+ msgid "Period"
333
+ msgstr "Période"
334
+
335
+ #: templates/bans_bans.html:402 templates/polls_pop_up_ban.html:47
336
+ msgid "Unit"
337
+ msgstr "Unité"
338
+
339
+ #: templates/bans_bans.html:472 templates/polls_view.html:277
340
+ #: templates/templates_templates.html:203
341
+ msgid "Edit"
342
+ msgstr "Éditer"
343
+
344
+ #: templates/imports_imports.html:24 templates/imports_imports.html:28
345
+ msgid "Search WP-Polls"
346
+ msgstr "Recherche WP-Polls"
347
+
348
+ #: templates/imports_imports.html:40 templates/imports_imports.html:116
349
+ msgid "Import"
350
+ msgstr "Importer"
351
+
352
+ #: templates/imports_imports.html:55
353
+ msgid "Wp-Polls"
354
+ msgstr "WP-Polls"
355
+
356
+ #: templates/imports_imports.html:71 templates/polls_view.html:179
357
+ #: templates/polls_view.html:383
358
+ msgid "Title"
359
+ msgstr "Titre"
360
+
361
+ #: templates/imports_imports.html:78 templates/polls_view.html:191
362
+ #: templates/polls_view.html:395
363
+ msgid "Total Votes"
364
+ msgstr "Total de votes"
365
+
366
+ #: templates/imports_imports.html:85 templates/logs_logs.html:51
367
+ #: templates/options_poll_options.html:18 templates/polls_add_edit.html:135
368
+ #: templates/polls_add_edit_options.html:17 templates/polls_view.html:205
369
+ #: templates/polls_view.html:409
370
+ msgid "Start Date"
371
+ msgstr "Date de début"
372
+
373
+ #: templates/imports_imports.html:92 templates/options_poll_options.html:26
374
+ #: templates/polls_add_edit.html:143 templates/polls_add_edit_options.html:25
375
+ #: templates/polls_view.html:217 templates/polls_view.html:421
376
+ msgid "End Date"
377
+ msgstr "Date de fin"
378
+
379
+ #: templates/imports_imports.html:143
380
+ msgid "Wp-polls"
381
+ msgstr "Wp-polls"
382
+
383
+ #: templates/logs_logs.html:20
384
+ msgid "Search Poll Logs"
385
+ msgstr "Rechercher registre de sondage"
386
+
387
+ #: templates/logs_logs.html:43
388
+ msgid "All Logs"
389
+ msgstr "Tous les registres"
390
+
391
+ #: templates/logs_logs.html:67 templates/logs_logs.html:72
392
+ #: templates/polls_results_print.html:141
393
+ #: templates/polls_results_votes.html:565
394
+ #: templates/polls_results_votes.html:713
395
+ msgid "This Page"
396
+ msgstr "Cette page"
397
+
398
+ #: templates/logs_logs.html:68 templates/polls_results_print.html:142
399
+ #: templates/polls_results_votes.html:566
400
+ msgid "All Pages"
401
+ msgstr "Toutes les pages"
402
+
403
+ #: templates/logs_logs.html:89
404
+ msgid "logs"
405
+ msgstr "logs"
406
+
407
+ #: templates/logs_logs.html:106 templates/logs_logs.html:176
408
+ #: templates/polls_results_print.html:161
409
+ #: templates/polls_results_votes.html:585
410
+ #: templates/polls_results_votes.html:663
411
+ #: templates/polls_results_votes.html:785
412
+ msgid "Vote ID"
413
+ msgstr "Identifiant du vote"
414
+
415
+ #: templates/logs_logs.html:114 templates/logs_logs.html:182
416
+ msgid "Poll Title"
417
+ msgstr "Titre du sondage"
418
+
419
+ #: templates/logs_logs.html:124 templates/logs_logs.html:192
420
+ #: templates/polls_results_votes.html:665
421
+ #: templates/polls_results_votes.html:801
422
+ #: templates/polls_results_votes.html:897
423
+ msgid "User Type"
424
+ msgstr "Type d'utilisateur"
425
+
426
+ #: templates/logs_logs.html:155 templates/logs_logs.html:219
427
+ #: templates/polls_results_print.html:165
428
+ #: templates/polls_results_votes.html:432
429
+ #: templates/polls_results_votes.html:589
430
+ #: templates/polls_results_votes.html:671
431
+ #: templates/polls_results_votes.html:845
432
+ #: templates/polls_results_votes.html:943
433
+ msgid "Vote Date"
434
+ msgstr "Date du vote"
435
+
436
+ #: templates/logs_logs.html:162 templates/logs_logs.html:227
437
+ msgid "Message"
438
+ msgstr "Message"
439
+
440
+ #: templates/logs_logs.html:187
441
+ msgid "Vote Details"
442
+ msgstr "Détails du vote"
443
+
444
+ #: templates/logs_logs.html:197
445
+ msgid "User"
446
+ msgstr "Utilisateur"
447
+
448
+ #: templates/logs_logs.html:202
449
+ msgid "User Email"
450
+ msgstr "Courriel d'utilisateur"
451
+
452
+ #: templates/logs_logs.html:208 templates/polls_results_print.html:163
453
+ #: templates/polls_results_votes.html:418
454
+ #: templates/polls_results_votes.html:587
455
+ #: templates/polls_results_votes.html:667
456
+ msgid "Tracking ID"
457
+ msgstr "Numéro de suivi"
458
+
459
+ #: templates/options_general.html:19 templates/polls_add_edit-bk.html:45
460
+ #: templates/polls_add_edit.html:32 templates/polls_add_edit_advanced.html:45
461
+ #: templates/templates_templates_add_edit.html:122
462
+ msgid "Save"
463
+ msgstr "Enregistrer"
464
+
465
+ #: templates/options_general.html:24
466
+ msgid "Save Changes"
467
+ msgstr "Enregistrer les modifications"
468
+
469
+ #: templates/options_general.html:40 templates/polls_add_edit.html:52
470
+ #: templates/polls_add_edit_advanced.html:65
471
+ #: templates/polls_results_print.html:466
472
+ #: templates/polls_results_print.html:483
473
+ #: templates/polls_results_votes.html:376
474
+ #: templates/polls_results_votes.html:1064
475
+ msgid "Questions"
476
+ msgstr "Les Questions"
477
+
478
+ #: templates/options_general.html:44
479
+ msgid "Archive"
480
+ msgstr "Archives"
481
+
482
+ #: templates/options_general.html:46
483
+ msgid "Notifications"
484
+ msgstr "Notifications"
485
+
486
+ #: templates/options_general.html:47
487
+ msgid "Media"
488
+ msgstr "Média"
489
+
490
+ #: templates/options_general.html:73
491
+ msgid "Questions Options"
492
+ msgstr "Options de questions"
493
+
494
+ #: templates/options_general.html:79
495
+ #: templates/polls_question_template.html:103
496
+ msgid "Allow other answers"
497
+ msgstr "Toutes les autres réponses"
498
+
499
+ #: templates/options_general.html:81 templates/options_general.html:98
500
+ #: templates/options_general.html:105 templates/options_general.html:115
501
+ #: templates/options_general.html:122 templates/options_general.html:423
502
+ #: templates/options_general.html:442 templates/options_poll_options.html:89
503
+ #: templates/options_poll_options.html:102
504
+ #: templates/options_poll_options.html:115
505
+ #: templates/options_poll_options.html:129
506
+ #: templates/options_poll_options.html:158
507
+ #: templates/options_poll_options.html:172
508
+ #: templates/options_poll_options.html:179
509
+ #: templates/options_poll_options.html:195
510
+ #: templates/options_poll_options.html:209
511
+ #: templates/options_poll_options.html:219
512
+ #: templates/options_poll_options.html:236
513
+ #: templates/options_poll_options.html:273
514
+ #: templates/options_poll_options.html:292
515
+ #: templates/options_poll_options.html:312
516
+ #: templates/options_poll_options.html:326
517
+ #: templates/options_poll_options.html:333
518
+ #: templates/options_poll_options.html:340
519
+ #: templates/options_poll_options.html:347
520
+ #: templates/options_poll_options.html:355 templates/polls_add_edit.html:201
521
+ #: templates/polls_add_edit.html:214 templates/polls_add_edit.html:227
522
+ #: templates/polls_add_edit.html:241 templates/polls_add_edit.html:284
523
+ #: templates/polls_add_edit.html:299 templates/polls_add_edit.html:333
524
+ #: templates/polls_add_edit.html:352 templates/polls_add_edit.html:365
525
+ #: templates/polls_add_edit.html:378 templates/polls_add_edit.html:385
526
+ #: templates/polls_add_edit.html:392 templates/polls_add_edit.html:399
527
+ #: templates/polls_add_edit.html:406 templates/polls_add_edit_options.html:83
528
+ #: templates/polls_add_edit_options.html:90
529
+ #: templates/polls_add_edit_options.html:97
530
+ #: templates/polls_add_edit_options.html:104
531
+ #: templates/polls_add_edit_options.html:118
532
+ #: templates/polls_add_edit_options.html:126
533
+ #: templates/polls_add_edit_options.html:134
534
+ #: templates/polls_add_edit_options.html:150
535
+ #: templates/polls_add_edit_options.html:187
536
+ #: templates/polls_add_edit_options.html:202
537
+ #: templates/polls_add_edit_options.html:216
538
+ #: templates/polls_add_edit_options.html:242
539
+ #: templates/polls_add_edit_options.html:250
540
+ #: templates/polls_add_edit_options.html:265
541
+ #: templates/polls_add_edit_options.html:272
542
+ #: templates/polls_add_edit_options.html:294
543
+ #: templates/polls_question_template.html:105
544
+ #: templates/polls_question_template.html:122
545
+ #: templates/polls_question_template.html:129
546
+ #: templates/polls_question_template.html:136
547
+ msgid "Yes"
548
+ msgstr "Oui"
549
+
550
+ #: templates/options_general.html:82 templates/options_general.html:99
551
+ #: templates/options_general.html:106 templates/options_general.html:116
552
+ #: templates/options_general.html:123 templates/options_general.html:424
553
+ #: templates/options_general.html:443 templates/options_poll_options.html:90
554
+ #: templates/options_poll_options.html:103
555
+ #: templates/options_poll_options.html:116
556
+ #: templates/options_poll_options.html:130
557
+ #: templates/options_poll_options.html:159
558
+ #: templates/options_poll_options.html:173
559
+ #: templates/options_poll_options.html:180
560
+ #: templates/options_poll_options.html:196
561
+ #: templates/options_poll_options.html:210
562
+ #: templates/options_poll_options.html:220
563
+ #: templates/options_poll_options.html:237
564
+ #: templates/options_poll_options.html:274
565
+ #: templates/options_poll_options.html:293
566
+ #: templates/options_poll_options.html:313
567
+ #: templates/options_poll_options.html:327
568
+ #: templates/options_poll_options.html:334
569
+ #: templates/options_poll_options.html:341
570
+ #: templates/options_poll_options.html:348
571
+ #: templates/options_poll_options.html:356 templates/polls_add_edit.html:202
572
+ #: templates/polls_add_edit.html:215 templates/polls_add_edit.html:228
573
+ #: templates/polls_add_edit.html:242 templates/polls_add_edit.html:285
574
+ #: templates/polls_add_edit.html:300 templates/polls_add_edit.html:334
575
+ #: templates/polls_add_edit.html:353 templates/polls_add_edit.html:366
576
+ #: templates/polls_add_edit.html:379 templates/polls_add_edit.html:386
577
+ #: templates/polls_add_edit.html:393 templates/polls_add_edit.html:400
578
+ #: templates/polls_add_edit.html:407 templates/polls_add_edit_options.html:84
579
+ #: templates/polls_add_edit_options.html:91
580
+ #: templates/polls_add_edit_options.html:98
581
+ #: templates/polls_add_edit_options.html:105
582
+ #: templates/polls_add_edit_options.html:119
583
+ #: templates/polls_add_edit_options.html:127
584
+ #: templates/polls_add_edit_options.html:135
585
+ #: templates/polls_add_edit_options.html:151
586
+ #: templates/polls_add_edit_options.html:188
587
+ #: templates/polls_add_edit_options.html:203
588
+ #: templates/polls_add_edit_options.html:217
589
+ #: templates/polls_add_edit_options.html:243
590
+ #: templates/polls_add_edit_options.html:251
591
+ #: templates/polls_add_edit_options.html:266
592
+ #: templates/polls_add_edit_options.html:273
593
+ #: templates/polls_add_edit_options.html:295
594
+ #: templates/polls_question_template.html:106
595
+ #: templates/polls_question_template.html:123
596
+ #: templates/polls_question_template.html:130
597
+ #: templates/polls_question_template.html:137
598
+ msgid "No"
599
+ msgstr "Non"
600
+
601
+ #: templates/options_general.html:86
602
+ #: templates/polls_question_template.html:110
603
+ msgid "Other answer label"
604
+ msgstr "Autres étiquette de réponse"
605
+
606
+ #: templates/options_general.html:94
607
+ msgid "Add the values submitted in 'Other' as answers"
608
+ msgstr "Ajouter les valeurs soumises dans «Autre» comme réponses"
609
+
610
+ #: templates/options_general.html:95
611
+ msgid ""
612
+ "all the values submitted in this field by your users will be automatically "
613
+ "added as an available 'Answer' "
614
+ msgstr ""
615
+ "Toutes les valeurs présentées dans ce domaine par vos utilisateurs seront "
616
+ "automatiquement ajoutés comme une «réponse» disponibles"
617
+
618
+ #: templates/options_general.html:103
619
+ #: templates/polls_question_template.html:127
620
+ msgid "Display Other Answers Values"
621
+ msgstr "Afficher d'autres valeurs de réponses"
622
+
623
+ #: templates/options_general.html:110
624
+ msgid "Make 'Other answer' default answer"
625
+ msgstr "Mettre 'Autres réponses' par défaut"
626
+
627
+ #: templates/options_general.html:111
628
+ msgid " 'Other Answer' will be autoselected"
629
+ msgstr "\"Autre réponse\" sera sélectionné automatiquement"
630
+
631
+ #: templates/options_general.html:120
632
+ #: templates/polls_question_template.html:134
633
+ msgid "Allow Multiple Answers"
634
+ msgstr "Autoriser plusieurs réponses"
635
+
636
+ #: templates/options_general.html:127
637
+ #: templates/polls_question_template.html:141
638
+ msgid "Maximum Number of allowed answers"
639
+ msgstr "Nombre maximal de réponses permises"
640
+
641
+ #: templates/options_general.html:133
642
+ #: templates/polls_question_template.html:147
643
+ msgid "Minimum Number of allowed answers"
644
+ msgstr "Nombre minimum de réponses permises"
645
+
646
+ #: templates/options_general.html:139
647
+ #: templates/polls_question_template.html:153
648
+ msgid "Display Answers"
649
+ msgstr "Afficher les réponses"
650
+
651
+ #: templates/options_general.html:141 templates/options_general.html:215
652
+ #: templates/polls_add_edit.html:459
653
+ #: templates/polls_question_template.html:155
654
+ #: templates/polls_question_template.html:169
655
+ msgid "Vertical"
656
+ msgstr "Vertical"
657
+
658
+ #: templates/options_general.html:142 templates/options_general.html:216
659
+ #: templates/polls_add_edit.html:460
660
+ #: templates/polls_question_template.html:156
661
+ #: templates/polls_question_template.html:170
662
+ msgid "Horizontal"
663
+ msgstr "Horizontal"
664
+
665
+ #: templates/options_general.html:143 templates/options_general.html:217
666
+ #: templates/polls_add_edit.html:461
667
+ #: templates/polls_question_template.html:157
668
+ #: templates/polls_question_template.html:171
669
+ msgid "Tabulated"
670
+ msgstr "Tableau"
671
+
672
+ #: templates/options_general.html:147 templates/options_general.html:221
673
+ #: templates/polls_add_edit.html:465
674
+ #: templates/polls_question_template.html:161
675
+ #: templates/polls_question_template.html:175
676
+ msgid "Columns"
677
+ msgstr "Colonnes"
678
+
679
+ #: templates/options_general.html:164 templates/polls_add_edit.html:426
680
+ #: templates/polls_add_edit_results_options.html:7
681
+ msgid "Results Options"
682
+ msgstr "Options de résultats"
683
+
684
+ #: templates/options_general.html:170 templates/polls_add_edit.html:432
685
+ #: templates/polls_add_edit_results_options.html:14
686
+ msgid "Sort Results"
687
+ msgstr "Trier les résultats"
688
+
689
+ #: templates/options_general.html:172 templates/options_general.html:322
690
+ #: templates/polls_add_edit.html:434
691
+ #: templates/polls_add_edit_results_options.html:16
692
+ msgid "As Defined"
693
+ msgstr "Tel que défini"
694
+
695
+ #: templates/options_general.html:173 templates/polls_add_edit.html:436
696
+ #: templates/polls_add_edit_results_options.html:17
697
+ msgid "Alphabetical Order"
698
+ msgstr "Ordre alphabétique"
699
+
700
+ #: templates/options_general.html:174 templates/options_general.html:324
701
+ #: templates/polls_add_edit.html:437
702
+ #: templates/polls_add_edit_results_options.html:18
703
+ msgid "by Number of Votes"
704
+ msgstr "par nombre de votes"
705
+
706
+ #: templates/options_general.html:178 templates/polls_add_edit.html:441
707
+ #: templates/polls_add_edit_results_options.html:23
708
+ msgid "Sort Results Rule"
709
+ msgstr "Trier les résultats de la règle"
710
+
711
+ #: templates/options_general.html:180 templates/options_general.html:330
712
+ #: templates/polls_add_edit.html:443
713
+ #: templates/polls_add_edit_results_options.html:25
714
+ msgid "Ascending"
715
+ msgstr "Ascendant"
716
+
717
+ #: templates/options_general.html:181 templates/options_general.html:331
718
+ #: templates/polls_add_edit.html:444
719
+ #: templates/polls_add_edit_results_options.html:26
720
+ msgid "Descending"
721
+ msgstr "Descendant"
722
+
723
+ #: templates/options_general.html:185 templates/polls_add_edit.html:448
724
+ msgid "Poll Answer Result Votes Number Label"
725
+ msgstr "L'étiquette pour le nombre des votes du résultat du sondage"
726
+
727
+ #: templates/options_general.html:187 templates/polls_add_edit.html:450
728
+ msgid "Singular"
729
+ msgstr "Singulier"
730
+
731
+ #: templates/options_general.html:189 templates/polls_add_edit.html:452
732
+ msgid "Plural"
733
+ msgstr "Pluriel"
734
+
735
+ #: templates/options_general.html:195
736
+ #: templates/polls_add_edit_results_options.html:31
737
+ msgid "Display Results as"
738
+ msgstr "Montrez les résultats en"
739
+
740
+ #: templates/options_general.html:199
741
+ #: templates/polls_add_edit_results_options.html:35
742
+ msgid "Bar"
743
+ msgstr "Barre"
744
+
745
+ #: templates/options_general.html:201
746
+ #: templates/polls_add_edit_results_options.html:37
747
+ msgid "Pie"
748
+ msgstr "Pointe de tarte"
749
+
750
+ #: templates/options_general.html:203
751
+ #: templates/polls_add_edit_results_options.html:39
752
+ msgid "Polar Area"
753
+ msgstr "Zone Polar"
754
+
755
+ #: templates/options_general.html:205
756
+ #: templates/polls_add_edit_results_options.html:41
757
+ msgid "Doughnut"
758
+ msgstr "Donut"
759
+
760
+ #: templates/options_general.html:213 templates/options_poll_options.html:40
761
+ #: templates/polls_add_edit.html:153 templates/polls_add_edit.html:457
762
+ #: templates/polls_add_edit_options.html:35
763
+ #: templates/polls_question_template.html:167
764
+ msgid "Display Results"
765
+ msgstr "Afficher les résultats"
766
+
767
+ #: templates/options_general.html:227
768
+ msgid "Poll Bar Style"
769
+ msgstr "Style de la barre du sondage"
770
+
771
+ #: templates/options_general.html:232
772
+ #: templates/polls_add_edit_results_options.html:53
773
+ msgid "Background Color"
774
+ msgstr "Couleur de fond"
775
+
776
+ #: templates/options_general.html:243
777
+ #: templates/polls_add_edit_results_options.html:63
778
+ msgid "Height"
779
+ msgstr "Hauteur"
780
+
781
+ #: templates/options_general.html:253
782
+ #: templates/polls_add_edit_results_options.html:73
783
+ msgid "Border Color"
784
+ msgstr "Couleur de bordure"
785
+
786
+ #: templates/options_general.html:264
787
+ #: templates/polls_add_edit_results_options.html:83
788
+ msgid "Border Width"
789
+ msgstr "Largeur de bordure"
790
+
791
+ #: templates/options_general.html:275
792
+ #: templates/polls_add_edit_results_options.html:94
793
+ msgid "Border Style"
794
+ msgstr "Style de bordure"
795
+
796
+ #: templates/options_general.html:281
797
+ #: templates/polls_add_edit_results_options.html:99
798
+ msgid "Solid"
799
+ msgstr "Solide"
800
+
801
+ #: templates/options_general.html:282
802
+ #: templates/polls_add_edit_results_options.html:100
803
+ msgid "Dashed"
804
+ msgstr "Hachuré"
805
+
806
+ #: templates/options_general.html:283
807
+ #: templates/polls_add_edit_results_options.html:101
808
+ msgid "Dotted"
809
+ msgstr "Pointillé"
810
+
811
+ #: templates/options_general.html:288
812
+ #: templates/polls_add_edit_results_options.html:106
813
+ msgid "Bar Preview"
814
+ msgstr "Aperçu de la barre"
815
+
816
+ #: templates/options_general.html:314
817
+ msgid "Archive Options"
818
+ msgstr "Options d'archives"
819
+
820
+ #: templates/options_general.html:320
821
+ msgid "Order polls"
822
+ msgstr "Ordre de sondage"
823
+
824
+ #: templates/options_general.html:323
825
+ msgid "Database Order"
826
+ msgstr "Ordre de la base de données"
827
+
828
+ #: templates/options_general.html:335
829
+ msgid "Archive page"
830
+ msgstr "Page d'archive"
831
+
832
+ #: templates/options_general.html:341
833
+ msgid "Poll Archive Link Label"
834
+ msgstr "L'étiquette pour voir le chemin de l'archive du sondage"
835
+
836
+ #: templates/options_general.html:347
837
+ msgid "Polls per Page"
838
+ msgstr "Sondages par page"
839
+
840
+ #: templates/options_general.html:365
841
+ msgid "Notification Options"
842
+ msgstr "Option de notification"
843
+
844
+ #: templates/options_general.html:371
845
+ #: templates/polls_add_edit_options.html:275
846
+ msgid "From Name"
847
+ msgstr "De nom"
848
+
849
+ #: templates/options_general.html:377
850
+ #: templates/polls_add_edit_options.html:277
851
+ msgid "From Email"
852
+ msgstr "Formulaire de courriel"
853
+
854
+ #: templates/options_general.html:383
855
+ #: templates/polls_add_edit_options.html:279
856
+ msgid "Recipients"
857
+ msgstr "Destinataire"
858
+
859
+ #: templates/options_general.html:383
860
+ msgid "Use comma separated email addresses: email@xmail.com,email2@ymail.com"
861
+ msgstr ""
862
+ "Utilisez des adresses courriel séparées par des virgules: email @ xmail.com, "
863
+ "email2 @ ymail.com"
864
+
865
+ #: templates/options_general.html:390
866
+ #: templates/polls_add_edit_options.html:281
867
+ msgid "Subject"
868
+ msgstr "Sujet"
869
+
870
+ #: templates/options_general.html:397
871
+ #: templates/polls_add_edit_options.html:283
872
+ msgid "Body"
873
+ msgstr "Corps"
874
+
875
+ #: templates/options_general.html:415
876
+ msgid "Media Integration"
877
+ msgstr "Intégration des médias"
878
+
879
+ #: templates/options_general.html:421
880
+ msgid "Use Facebook integration"
881
+ msgstr "Utiliser l'intégration de Facebook"
882
+
883
+ #: templates/options_general.html:429 templates/options_general.html:448
884
+ msgid "App ID"
885
+ msgstr "Identifiant de l'application"
886
+
887
+ #: templates/options_general.html:434 templates/options_general.html:454
888
+ msgid "App Secret"
889
+ msgstr "App Secret"
890
+
891
+ #: templates/options_general.html:440
892
+ msgid "Use Google+ integration"
893
+ msgstr "Utiliser l'intégration de Google+"
894
+
895
+ #: templates/options_general.html:477
896
+ #: templates/polls_add_edit_beginner.html:203
897
+ msgid "Please wait"
898
+ msgstr "Se il vous plaît attendre"
899
+
900
+ #: templates/options_poll_options.html:10 templates/polls_add_edit.html:128
901
+ #: templates/polls_add_edit_options.html:9
902
+ msgid "Poll Options"
903
+ msgstr "Options de sondage"
904
+
905
+ #: templates/options_poll_options.html:34
906
+ #: templates/polls_add_edit_options.html:29 templates/polls_view.html:135
907
+ msgid "No end date"
908
+ msgstr "Pas de date de fin"
909
+
910
+ #: templates/options_poll_options.html:42 templates/polls_add_edit.html:155
911
+ #: templates/polls_add_edit_options.html:37
912
+ msgid "Before Vote"
913
+ msgstr "Avant le vote"
914
+
915
+ #: templates/options_poll_options.html:43 templates/polls_add_edit.html:156
916
+ #: templates/polls_add_edit_options.html:38
917
+ msgid "After Vote"
918
+ msgstr "Après le vote"
919
+
920
+ #: templates/options_poll_options.html:44 templates/polls_add_edit.html:157
921
+ #: templates/polls_add_edit_options.html:39
922
+ msgid "After Poll End Date"
923
+ msgstr "Après la date de fin du sondage"
924
+
925
+ #: templates/options_poll_options.html:45 templates/polls_add_edit.html:158
926
+ #: templates/polls_add_edit_options.html:40
927
+ msgid "Never"
928
+ msgstr "Jamais"
929
+
930
+ #: templates/options_poll_options.html:46 templates/polls_add_edit.html:159
931
+ #: templates/polls_add_edit_options.html:41
932
+ msgid "Custom Date"
933
+ msgstr "Dat epersonnalisée"
934
+
935
+ #: templates/options_poll_options.html:49 templates/polls_add_edit.html:162
936
+ #: templates/polls_add_edit_options.html:45
937
+ msgid "Results display date"
938
+ msgstr "Date d'affichage des résultats"
939
+
940
+ #: templates/options_poll_options.html:50
941
+ msgid ""
942
+ "(the users will be able to view poll results starting with following date)"
943
+ msgstr ""
944
+ "(les utilisateurs seront en mesure de voir les résultats du sondage à partir "
945
+ "de la date suivante)"
946
+
947
+ #: templates/options_poll_options.html:59 templates/polls_add_edit.html:170
948
+ #: templates/polls_add_edit_options.html:53
949
+ msgid "Display Results Permissions"
950
+ msgstr "Afficher les permissions de résultats"
951
+
952
+ #: templates/options_poll_options.html:61
953
+ #: templates/options_poll_options.html:149
954
+ #: templates/polls_add_edit_options.html:55
955
+ #: templates/polls_add_edit_options.html:111
956
+ msgid "Guest"
957
+ msgstr "Invité"
958
+
959
+ #: templates/options_poll_options.html:62
960
+ #: templates/options_poll_options.html:150
961
+ #: templates/polls_add_edit_options.html:56
962
+ #: templates/polls_add_edit_options.html:112
963
+ msgid "Registered"
964
+ msgstr "Inscrit"
965
+
966
+ #: templates/options_poll_options.html:66 templates/polls_add_edit.html:178
967
+ #: templates/polls_add_edit_options.html:60
968
+ msgid "Results Display"
969
+ msgstr "Affichage des résultats"
970
+
971
+ #: templates/options_poll_options.html:68 templates/polls_add_edit.html:180
972
+ msgid "By Votes Number"
973
+ msgstr "Par nombre de votes"
974
+
975
+ #: templates/options_poll_options.html:69 templates/polls_add_edit.html:181
976
+ #: templates/polls_add_edit_options.html:63
977
+ msgid "Percentages"
978
+ msgstr "Pourcentage"
979
+
980
+ #: templates/options_poll_options.html:70 templates/polls_add_edit.html:182
981
+ msgid "by Votes Number and Percentages"
982
+ msgstr "par nombre de votes et pourcentages"
983
+
984
+ #: templates/options_poll_options.html:74 templates/polls_add_edit.html:186
985
+ #: templates/polls_add_edit_options.html:68
986
+ msgid "Poll Answer Result Label"
987
+ msgstr "L'étiquette du résultat du sondage"
988
+
989
+ #: templates/options_poll_options.html:77 templates/polls_add_edit.html:189
990
+ #: templates/polls_add_edit_options.html:71
991
+ msgid ""
992
+ "Use %POLL-ANSWER-RESULT-PERCENTAGES% for showing answer percentages and "
993
+ "%POLL-ANSWER-RESULT-VOTES% for showing answer number of votes"
994
+ msgstr ""
995
+ "Utiliser %POLL-ANSWER-RESULT-PERCENTAGES% pour montrer le pourcentage de "
996
+ "réponse et %POLL-ANSWER-RESULT-VOTES% pour afficher le nombre de réponse de "
997
+ "votes"
998
+
999
+ #: templates/options_poll_options.html:81 templates/polls_add_edit.html:193
1000
+ #: templates/polls_add_edit_options.html:75
1001
+ msgid "Vote Button Label"
1002
+ msgstr "L'étiquette du bouton de vote"
1003
+
1004
+ #: templates/options_poll_options.html:87 templates/polls_add_edit.html:199
1005
+ #: templates/polls_add_edit_options.html:81
1006
+ msgid "Display Results Link"
1007
+ msgstr "Afficher le lien des résultats"
1008
+
1009
+ #: templates/options_poll_options.html:94 templates/polls_add_edit.html:206
1010
+ msgid "Results Link Label"
1011
+ msgstr "L'étiquette du lien des résultats"
1012
+
1013
+ #: templates/options_poll_options.html:100 templates/polls_add_edit.html:212
1014
+ #: templates/polls_add_edit_options.html:88
1015
+ msgid "Display Back To Vote Link"
1016
+ msgstr "Afficher le lien Retour au vote"
1017
+
1018
+ #: templates/options_poll_options.html:107 templates/polls_add_edit.html:219
1019
+ msgid "Back To Vote Link Label"
1020
+ msgstr "L'Étiquette du lien Retour au vote"
1021
+
1022
+ #: templates/options_poll_options.html:113 templates/polls_add_edit.html:225
1023
+ #: templates/polls_add_edit_options.html:95
1024
+ msgid "Display Total Votes"
1025
+ msgstr "Afficher le total des votes"
1026
+
1027
+ #: templates/options_poll_options.html:120 templates/polls_add_edit.html:232
1028
+ msgid "Total Votes Label"
1029
+ msgstr "L'Étiquette du total des votes"
1030
+
1031
+ #: templates/options_poll_options.html:123 templates/polls_add_edit.html:235
1032
+ msgid "Use %POLL-TOTAL-VOTES% for displaying poll's total number of votes"
1033
+ msgstr ""
1034
+ "Utilisez% Poll-TOTAL-VOTES% pour afficher le nombre total de sondage de votes"
1035
+
1036
+ #: templates/options_poll_options.html:127 templates/polls_add_edit.html:239
1037
+ #: templates/polls_add_edit_options.html:102
1038
+ msgid "Display Total Answers"
1039
+ msgstr "Afficher le total des réponses"
1040
+
1041
+ #: templates/options_poll_options.html:134 templates/polls_add_edit.html:246
1042
+ msgid "Total Answers Label"
1043
+ msgstr "L'étiquette du total des réponses"
1044
+
1045
+ #: templates/options_poll_options.html:137
1046
+ msgid "Use %POLL-TOTAL-ANSWERS% for displaying poll's total number of answers"
1047
+ msgstr ""
1048
+ "Utilisez% Poll-TOTAL-RÉPONSES% pour afficher le nombre total de sondage des "
1049
+ "réponses"
1050
+
1051
+ #: templates/options_poll_options.html:141 templates/polls_add_edit.html:252
1052
+ msgid "Message After Vote"
1053
+ msgstr "Message après le vote"
1054
+
1055
+ #: templates/options_poll_options.html:147 templates/polls_add_edit.html:258
1056
+ #: templates/polls_add_edit_options.html:109
1057
+ msgid "Vote Permissions"
1058
+ msgstr "Permissions de vote"
1059
+
1060
+ #: templates/options_poll_options.html:154 templates/polls_add_edit.html:267
1061
+ #: templates/polls_add_edit_options.html:116
1062
+ msgid "Vote as Facebook User"
1063
+ msgstr "Voter en tant qu'utilisateur Facebook"
1064
+
1065
+ #: templates/options_poll_options.html:155 templates/polls_add_edit.html:267
1066
+ #: templates/polls_add_edit_options.html:116
1067
+ msgid "Will force users to login into Facebook"
1068
+ msgstr "Va forcer les utilisateurs à se connecter à Facebook"
1069
+
1070
+ #: templates/options_poll_options.html:164 templates/polls_add_edit.html:275
1071
+ msgid "'Vote as Facebook User' Button Label"
1072
+ msgstr "L'étiquette 'Voter en tant qu'utilisateur Facebook"
1073
+
1074
+ #: templates/options_poll_options.html:170
1075
+ msgid "Show Comments Widget"
1076
+ msgstr "Afficher le widget de commentaire"
1077
+
1078
+ #: templates/options_poll_options.html:177
1079
+ msgid "Share after vote"
1080
+ msgstr "Partager après le vote"
1081
+
1082
+ #: templates/options_poll_options.html:185
1083
+ msgid "Share Description"
1084
+ msgstr "Partager la description"
1085
+
1086
+ #: templates/options_poll_options.html:191
1087
+ #: templates/polls_add_edit_options.html:124
1088
+ msgid "Vote as Google User"
1089
+ msgstr "Voter en tant qu'utilisateur Google"
1090
+
1091
+ #: templates/options_poll_options.html:192
1092
+ #: templates/polls_add_edit_options.html:124
1093
+ msgid "Will force users to login into Google+"
1094
+ msgstr "Va forcer les utilisateurs à ouvrir une session dans Google+"
1095
+
1096
+ #: templates/options_poll_options.html:201
1097
+ msgid "'Vote as google User' Button Label"
1098
+ msgstr "L'étiquette du bouton 'Voter en tant qu'utilisateur Google+'"
1099
+
1100
+ #: templates/options_poll_options.html:207
1101
+ msgid "Show +1 Button after vote"
1102
+ msgstr "Afficher le Bouton +1 après le vote"
1103
+
1104
+ #: templates/options_poll_options.html:215 templates/polls_add_edit.html:282
1105
+ #: templates/polls_add_edit_options.html:132
1106
+ msgid "Vote as Wordpress User"
1107
+ msgstr "Voter en tant qu'utilisateur Wordpress"
1108
+
1109
+ #: templates/options_poll_options.html:216 templates/polls_add_edit.html:282
1110
+ #: templates/polls_add_edit_options.html:132
1111
+ msgid "Will force users to login"
1112
+ msgstr "Va forcer les utilisateurs à ouvrir une session"
1113
+
1114
+ #: templates/options_poll_options.html:225 templates/polls_add_edit.html:289
1115
+ #: templates/polls_add_edit_options.html:140
1116
+ msgid "'Vote as Wordpress User' Button Label"
1117
+ msgstr "L'étiquette du bouton 'Voter en tant qu'utilisateur Wordpress'"
1118
+
1119
+ #: templates/options_poll_options.html:232 templates/polls_add_edit.html:296
1120
+ #: templates/polls_add_edit_options.html:147
1121
+ msgid "Vote as Anonymous User"
1122
+ msgstr "Voter de façon anonyme"
1123
+
1124
+ #: templates/options_poll_options.html:233 templates/polls_add_edit.html:296
1125
+ #: templates/polls_add_edit_options.html:147
1126
+ msgid "Logged users will be treated as anonymous"
1127
+ msgstr "Les utilisateurs connectés seront traités comme des anonymes"
1128
+
1129
+ #: templates/options_poll_options.html:241 templates/polls_add_edit.html:304
1130
+ #: templates/polls_add_edit_options.html:155
1131
+ msgid "'Vote as Anonymous User' Button Label"
1132
+ msgstr "L'étiquette du bouton 'Voter en tant qu'utilisateur anonyme'"
1133
+
1134
+ #: templates/options_poll_options.html:247 templates/polls_add_edit.html:310
1135
+ #: templates/polls_add_edit_options.html:161
1136
+ msgid "Blocking Voters"
1137
+ msgstr "Le blocage des électeurs"
1138
+
1139
+ #: templates/options_poll_options.html:249 templates/polls_add_edit.html:312
1140
+ #: templates/polls_add_edit_options.html:163
1141
+ msgid "Don't Block"
1142
+ msgstr "Ne pas bloquer"
1143
+
1144
+ #: templates/options_poll_options.html:250 templates/polls_add_edit.html:313
1145
+ #: templates/polls_add_edit_options.html:164
1146
+ msgid "By Cookie"
1147
+ msgstr "Par cookie"
1148
+
1149
+ #: templates/options_poll_options.html:251 templates/polls_add_edit.html:314
1150
+ #: templates/polls_add_edit_options.html:165
1151
+ msgid "By IP"
1152
+ msgstr "Par IP"
1153
+
1154
+ #: templates/options_poll_options.html:252
1155
+ #: templates/polls_add_edit_options.html:166
1156
+ msgid "By User ID"
1157
+ msgstr "Par identifaint d'utilisateur"
1158
+
1159
+ #: templates/options_poll_options.html:253
1160
+ #: templates/polls_add_edit_options.html:167
1161
+ msgid "By SuperCookie"
1162
+ msgstr "Par SuperCookie"
1163
+
1164
+ #: templates/options_poll_options.html:257 templates/polls_add_edit.html:320
1165
+ #: templates/polls_add_edit_options.html:172
1166
+ msgid "Blocking Voters Interval"
1167
+ msgstr "Interval du blocage des électeurs"
1168
+
1169
+ #: templates/options_poll_options.html:270 templates/polls_add_edit.html:331
1170
+ #: templates/polls_add_edit_options.html:185
1171
+ msgid "Limit Number of Votes per User"
1172
+ msgstr "Limite du nombre de vote par utilisateur"
1173
+
1174
+ #: templates/options_poll_options.html:278 templates/polls_add_edit.html:338
1175
+ #: templates/polls_add_edit_options.html:194
1176
+ msgid "Number of Votes per User"
1177
+ msgstr "Nombre de vote par utilisateur"
1178
+
1179
+ #: templates/options_poll_options.html:284 templates/polls_add_edit.html:344
1180
+ msgid "Percentages Decimals"
1181
+ msgstr "Les décimales des pourcentages"
1182
+
1183
+ #: templates/options_poll_options.html:290 templates/polls_add_edit.html:350
1184
+ msgid "Use Default Loading Image"
1185
+ msgstr "Utiliser l'image de chargement par défaut"
1186
+
1187
+ #: templates/options_poll_options.html:297 templates/polls_add_edit.html:357
1188
+ msgid "Loading Image Url"
1189
+ msgstr "L'adresse de l'image de chargement"
1190
+
1191
+ #: templates/options_poll_options.html:303
1192
+ msgid "Date Format"
1193
+ msgstr "Format de date"
1194
+
1195
+ #: templates/options_poll_options.html:310 templates/polls_add_edit.html:363
1196
+ #: templates/polls_add_edit_options.html:200
1197
+ msgid "Redirect After Vote"
1198
+ msgstr "Redirection après le vote"
1199
+
1200
+ #: templates/options_poll_options.html:317 templates/polls_add_edit.html:370
1201
+ #: templates/polls_add_edit_options.html:208
1202
+ msgid "Redirect After Vote URL"
1203
+ msgstr "URL de redirection après le vote"
1204
+
1205
+ #: templates/options_poll_options.html:324 templates/polls_add_edit.html:376
1206
+ #: templates/polls_add_edit_options.html:240
1207
+ msgid "Display Archive Link"
1208
+ msgstr "Afficher le lien d'archive"
1209
+
1210
+ #: templates/options_poll_options.html:331 templates/polls_add_edit.html:383
1211
+ #: templates/polls_add_edit_options.html:248
1212
+ msgid "Auto Generate Poll Page"
1213
+ msgstr "Générer automatiquement la page de sondage"
1214
+
1215
+ #: templates/options_poll_options.html:338 templates/polls_add_edit.html:390
1216
+ #: templates/polls_add_edit_options.html:263
1217
+ msgid "Use CAPTCHA"
1218
+ msgstr "Utiliser CAPTCHA"
1219
+
1220
+ #: templates/options_poll_options.html:345 templates/polls_add_edit.html:397
1221
+ #: templates/polls_add_edit_options.html:270
1222
+ msgid "Send Email Notifications"
1223
+ msgstr "Envoyer un courriel de notification"
1224
+
1225
+ #: templates/options_poll_options.html:353 templates/polls_add_edit.html:404
1226
+ #: templates/polls_add_edit_options.html:292
1227
+ msgid "Show Poll In Archive"
1228
+ msgstr "Afficher le sondage dans l'archive"
1229
+
1230
+ #: templates/options_poll_options.html:360 templates/polls_add_edit.html:411
1231
+ #: templates/polls_add_edit_options.html:300
1232
+ msgid "Poll Archive Order"
1233
+ msgstr "Ordre des sondage dans l'archive"
1234
+
1235
+ #: templates/polls_add_edit-bk.html:23 templates/polls_add_edit.html:19
1236
+ #: templates/polls_add_edit_advanced.html:30
1237
+ msgid "Enter Poll Title Here"
1238
+ msgstr "Entrer un titre de sondage ici"
1239
+
1240
+ #: templates/polls_add_edit-bk.html:87 templates/polls_add_edit-bk.html:213
1241
+ #: templates/polls_question_template.html:7
1242
+ msgid "Question "
1243
+ msgstr "Question"
1244
+
1245
+ #: templates/polls_add_edit-bk.html:117 templates/polls_add_edit-bk.html:147
1246
+ #: templates/polls_add_edit-bk.html:177 templates/polls_add_edit-bk.html:243
1247
+ #: templates/polls_add_edit-bk.html:273 templates/polls_add_edit-bk.html:303
1248
+ msgid "Answer "
1249
+ msgstr "Réponse"
1250
+
1251
+ #: templates/polls_add_edit-bk.html:127 templates/polls_add_edit-bk.html:157
1252
+ #: templates/polls_add_edit-bk.html:187 templates/polls_add_edit-bk.html:253
1253
+ #: templates/polls_add_edit-bk.html:283 templates/polls_add_edit-bk.html:313
1254
+ msgid "Enter Your Answer Here"
1255
+ msgstr "Entrer votre réponse ici"
1256
+
1257
+ #: templates/polls_add_edit-bk.html:223
1258
+ #: templates/polls_question_template.html:29
1259
+ #: templates/polls_question_template_media.html:27
1260
+ msgid "Enter Your Question Here"
1261
+ msgstr "Entrer votre question ici"
1262
+
1263
+ #: templates/polls_add_edit-bk.html:335 templates/polls_add_edit.html:63
1264
+ msgid "Add New Question"
1265
+ msgstr "Ajouter une nouvelle question"
1266
+
1267
+ #: templates/polls_add_edit.html:9
1268
+ msgid "Shortcode"
1269
+ msgstr "Shortcode"
1270
+
1271
+ #: templates/polls_add_edit.html:73 templates/polls_add_edit_template.html:9
1272
+ #: templates/templates_templates.html:60
1273
+ msgid "Poll Templates"
1274
+ msgstr "Modèle de sondage"
1275
+
1276
+ #: templates/polls_add_edit.html:78 templates/polls_add_edit_template.html:19
1277
+ msgid "Page Template"
1278
+ msgstr "Modèle de page"
1279
+
1280
+ #: templates/polls_add_edit.html:100
1281
+ #: templates/polls_add_edit_template.html:203
1282
+ msgid "Widget Template"
1283
+ msgstr "Modèle de Widget"
1284
+
1285
+ #: templates/polls_add_edit.html:163 templates/polls_add_edit_options.html:46
1286
+ msgid ""
1287
+ "(the users will be able to view poll results starting with following date )"
1288
+ msgstr ""
1289
+ "(les utilisateurs seront en mesure de voir les résultats du sondage à partir "
1290
+ "de la date suivante)"
1291
+
1292
+ #: templates/polls_add_edit.html:172 templates/polls_add_edit.html:260
1293
+ msgid "Guest Only"
1294
+ msgstr "Seulement clients"
1295
+
1296
+ #: templates/polls_add_edit.html:173 templates/polls_add_edit.html:261
1297
+ msgid "Registered Only"
1298
+ msgstr "Enregistré Seulement"
1299
+
1300
+ #: templates/polls_add_edit.html:174 templates/polls_add_edit.html:262
1301
+ msgid "Guest & Registered Users"
1302
+ msgstr "Clients et utilisateurs enregistrés"
1303
+
1304
+ #: templates/polls_add_edit.html:315
1305
+ msgid "By Username"
1306
+ msgstr "En Nom d'utilisateur"
1307
+
1308
+ #: templates/polls_add_edit.html:316
1309
+ msgid "By Cookie and Ip"
1310
+ msgstr "Par Cookie et Ip"
1311
+
1312
+ #: templates/polls_add_edit.html:435
1313
+ msgid "Database Id"
1314
+ msgstr "Base de données Id"
1315
+
1316
+ #: templates/polls_add_edit_advanced.html:10
1317
+ #: templates/polls_add_edit_advanced.html:19
1318
+ msgid "Use this shortcode to display your poll"
1319
+ msgstr "Utiliser ce shortcode pour afficher le sondage"
1320
+
1321
+ #: templates/polls_add_edit_beginner.html:82
1322
+ msgid "Preview"
1323
+ msgstr "Aperçu"
1324
+
1325
+ #: templates/polls_add_edit_beginner.html:133
1326
+ msgid "Result Options"
1327
+ msgstr "Options de résultat"
1328
+
1329
+ #: templates/polls_add_edit_options.html:62
1330
+ msgid "Votes Number"
1331
+ msgstr "Nombre de Votes"
1332
+
1333
+ #: templates/polls_add_edit_options.html:64
1334
+ msgid "Votes Number and Percentages"
1335
+ msgstr "Votes nombre et le pourcentage"
1336
+
1337
+ #: templates/polls_add_edit_options.html:214
1338
+ msgid "Reset Poll Stats Automatically"
1339
+ msgstr "Réinitialiser automatiquement les statistiques de sondage"
1340
+
1341
+ #: templates/polls_add_edit_options.html:222
1342
+ msgid "Reset Stats Date"
1343
+ msgstr "Réinitialiser les dates de statistiques"
1344
+
1345
+ #: templates/polls_add_edit_options.html:230
1346
+ msgid "Reset Stats Every"
1347
+ msgstr "Réinitialiser les statistiques à chaque"
1348
+
1349
+ #: templates/polls_add_edit_options.html:256
1350
+ msgid "Poll Page Url"
1351
+ msgstr "L'url de la page de sondage"
1352
+
1353
+ #: templates/polls_add_edit_questions.html:17
1354
+ msgid "Add Text Question"
1355
+ msgstr "Ajouter une question texte"
1356
+
1357
+ #: templates/polls_add_edit_questions.html:20
1358
+ msgid "Add Media Question"
1359
+ msgstr "Ajouter une question média"
1360
+
1361
+ #: templates/polls_add_edit_results_options.html:49
1362
+ msgid "Result Bar Style"
1363
+ msgstr "Style de la barre de résultat"
1364
+
1365
+ #: templates/polls_add_edit_template.html:23
1366
+ msgid "Template Width"
1367
+ msgstr "Largeur du modèle"
1368
+
1369
+ #: templates/polls_add_edit_template.html:198
1370
+ msgid "Use the same template for widgets"
1371
+ msgstr "Utiliser le même modèle pour le widget"
1372
+
1373
+ #: templates/polls_add_edit_template.html:207
1374
+ msgid "Widget Template Width"
1375
+ msgstr "Largeur du modèle de widget"
1376
+
1377
+ #: templates/polls_answer_media_template.html:28
1378
+ #: templates/polls_answer_media_template.html:65
1379
+ msgid "Image"
1380
+ msgstr "Image"
1381
+
1382
+ #: templates/polls_answer_media_template.html:30
1383
+ #: templates/polls_answer_media_template.html:67
1384
+ msgid "Video"
1385
+ msgstr "Vidéo"
1386
+
1387
+ #: templates/polls_answer_media_template.html:39
1388
+ #: templates/polls_answer_media_template.html:76
1389
+ msgid "Enter a URL or upload a file!"
1390
+ msgstr "Entrer un une url ou téléverser un fichier"
1391
+
1392
+ #: templates/polls_answer_media_template.html:40
1393
+ #: templates/polls_answer_media_template.html:77
1394
+ msgid "Enter embeded code!"
1395
+ msgstr "Entrer le code d'intégration"
1396
+
1397
+ #: templates/polls_answer_media_template.html:46
1398
+ #: templates/polls_answer_media_template.html:82
1399
+ msgid "Description"
1400
+ msgstr "Description"
1401
+
1402
+ #: templates/polls_answer_template.html:19
1403
+ msgid "Default Answer"
1404
+ msgstr "Réponse par défaut"
1405
+
1406
+ #: templates/polls_base.html:15 templates/polls_results_votes.html:160
1407
+ msgid "Please buy pro version to use this feature!"
1408
+ msgstr ""
1409
+ "Se il vous plaît acheter la version pro pour utiliser cette fonctionnalité!"
1410
+
1411
+ #: templates/polls_base.html:54 templates/polls_results_votes.html:147
1412
+ #: templates/pro_pre_upgrade.html:41
1413
+ msgid "Upgrade to Pro for only $17"
1414
+ msgstr "Upgrade to Pro pour seulement $ 17"
1415
+
1416
+ #: templates/polls_base.html:57 templates/pro_pre_upgrade.html:44
1417
+ msgid "60 days money back guarantee"
1418
+ msgstr "60 jours garantie de remboursement"
1419
+
1420
+ #: templates/polls_base.html:61 templates/pro_help.html:16
1421
+ #: templates/pro_pre_upgrade.html:50
1422
+ msgid "Top class software and support"
1423
+ msgstr "Logiciel de classe supérieure et de soutien"
1424
+
1425
+ #: templates/polls_base.html:62 templates/pro_help.html:18
1426
+ #: templates/pro_pre_upgrade.html:52
1427
+ msgid "I love this software and the support service."
1428
+ msgstr "Je adore ce logiciel et le service de support."
1429
+
1430
+ #: templates/polls_base.html:64 templates/pro_help.html:20
1431
+ #: templates/pro_pre_upgrade.html:54
1432
+ msgid ""
1433
+ "This is definitely the #1 poll plugin for WP. I give this software and its "
1434
+ "support service a A++++."
1435
+ msgstr ""
1436
+ "Ce est certainement le # 1 vote plugin pour WP. Je donne ce logiciel et son "
1437
+ "service de soutien a A ++++."
1438
+
1439
+ #: templates/polls_base.html:66 templates/pro_help.html:22
1440
+ #: templates/pro_pre_upgrade.html:56
1441
+ msgid ""
1442
+ "I'm so glad to be a Pro version user. The US$17 upgrade worth every cent..."
1443
+ msgstr ""
1444
+ "Je suis si heureux d'être une version utilisateur Pro. La mise à niveau de "
1445
+ "17 $ US vaut chaque centime ..."
1446
+
1447
+ #: templates/polls_base.html:68
1448
+ msgid ""
1449
+ "I originally had some difficulties with the tool, and I reported them. (This "
1450
+ "is normal for all software.) "
1451
+ msgstr ""
1452
+ "Je ai eu quelques difficultés à l'origine avec l'outil, et je leur ai "
1453
+ "signalé. (Ce est normal pour tous les logiciels.)"
1454
+
1455
+ #: templates/polls_base.html:69
1456
+ msgid ""
1457
+ "After I reported my issues, the support got in touch with me very quickly "
1458
+ "and have the problem resolved. "
1459
+ msgstr ""
1460
+ "Après je ai rapporté mes questions, le soutien a pris contact avec moi très "
1461
+ "rapidement et ont le problème résolu."
1462
+
1463
+ #: templates/polls_base.html:70
1464
+ msgid ""
1465
+ "Also, they listened to my suggestions and worked with me to have things "
1466
+ "implemented and resolved. "
1467
+ msgstr ""
1468
+ "En outre, ils ont écouté mes suggestions et a travaillé avec moi pour avoir "
1469
+ "des choses mises en œuvre et résolus."
1470
+
1471
+ #: templates/polls_base.html:71 templates/pro_help.html:27
1472
+ #: templates/pro_pre_upgrade.html:61
1473
+ msgid "This is definitely a TOP CLASS service."
1474
+ msgstr "Ce est vraiment un service de première classe."
1475
+
1476
+ #: templates/polls_base.html:73 templates/pro_help.html:30
1477
+ #: templates/pro_pre_upgrade.html:64
1478
+ msgid "edwintam, wordpress user"
1479
+ msgstr "edwintam, les utilisateurs de WordPress"
1480
+
1481
+ #: templates/polls_pop_up_ban.html:42 templates/polls_pop_up_ban.html:61
1482
+ #: templates/polls_results_votes.html:207
1483
+ #: templates/polls_results_votes.html:227
1484
+ #: templates/polls_results_votes.html:260
1485
+ msgid "(required)"
1486
+ msgstr "(requis)"
1487
+
1488
+ #: templates/polls_question_template.html:21
1489
+ #: templates/polls_question_template_media.html:19
1490
+ msgid "Question Text"
1491
+ msgstr "Texte de la question"
1492
+
1493
+ #: templates/polls_question_template.html:46
1494
+ #: templates/polls_question_template_media.html:44
1495
+ msgid "Answers"
1496
+ msgstr "Réponse"
1497
+
1498
+ #: templates/polls_question_template.html:78
1499
+ msgid "Add New Answer"
1500
+ msgstr "Ajouter une nouvelle Réponse"
1501
+
1502
+ #: templates/polls_question_template.html:92
1503
+ msgid "Question Options"
1504
+ msgstr "Options de question"
1505
+
1506
+ #: templates/polls_question_template.html:118
1507
+ msgid "Add the values submitted in 'Other' as answers "
1508
+ msgstr "Ajouter des valeurs soumises dans 'Autre' comme réponses"
1509
+
1510
+ #: templates/polls_question_template.html:119
1511
+ msgid ""
1512
+ "all the values submitted in this field by your users will be automatically "
1513
+ "added as an available 'Answer'"
1514
+ msgstr ""
1515
+ "toutes les valeurs présentées dans ce domaine par vos utilisateurs seront "
1516
+ "automatiquement ajoutée comme une 'réponse' disponibles"
1517
+
1518
+ #: templates/polls_question_template.html:193
1519
+ #: templates/polls_results_print.html:118
1520
+ #: templates/polls_results_print.html:468
1521
+ #: templates/polls_results_print.html:485
1522
+ #: templates/polls_results_votes.html:542
1523
+ #: templates/polls_results_votes.html:1066
1524
+ msgid "Custom Fields"
1525
+ msgstr "Champs personnalisés"
1526
+
1527
+ #: templates/polls_question_template.html:203
1528
+ msgid "Custom field"
1529
+ msgstr "Champ personnalisé"
1530
+
1531
+ #: templates/polls_question_template.html:222
1532
+ msgid "Required?"
1533
+ msgstr "Requis ?"
1534
+
1535
+ #: templates/polls_question_template.html:243
1536
+ msgid "Add New Custom Field"
1537
+ msgstr "Ajouter un nouveau champ personnalisé"
1538
+
1539
+ #: templates/polls_question_template_media.html:7
1540
+ #: templates/polls_results.html:53 templates/polls_results_print.html:25
1541
+ #: templates/polls_results_votes.html:463
1542
+ msgid "Question"
1543
+ msgstr "Question"
1544
+
1545
+ #: templates/polls_results.html:4
1546
+ msgid "All Polls"
1547
+ msgstr "Tous les sondages"
1548
+
1549
+ #: templates/polls_results.html:23 templates/polls_results_votes.html:298
1550
+ msgid "Order By"
1551
+ msgstr "Trié par"
1552
+
1553
+ #: templates/polls_results.html:25 templates/polls_results_votes.html:300
1554
+ msgid "Answer Value"
1555
+ msgstr "Valeur de réponse"
1556
+
1557
+ #: templates/polls_results.html:26 templates/polls_results.html:65
1558
+ #: templates/polls_results.html:101 templates/polls_results_print.html:38
1559
+ #: templates/polls_results_print.html:82
1560
+ #: templates/polls_results_votes.html:301
1561
+ #: templates/polls_results_votes.html:397
1562
+ #: templates/polls_results_votes.html:476
1563
+ #: templates/polls_results_votes.html:512
1564
+ msgid "Votes"
1565
+ msgstr "Votes"
1566
+
1567
+ #: templates/polls_results.html:29 templates/polls_results_votes.html:304
1568
+ msgid "ASC"
1569
+ msgstr "ASC"
1570
+
1571
+ #: templates/polls_results.html:30 templates/polls_results_votes.html:305
1572
+ msgid "DESC"
1573
+ msgstr "DESC"
1574
+
1575
+ #: templates/polls_results.html:34 templates/polls_results_votes.html:310
1576
+ msgid "Show Other Answers Values"
1577
+ msgstr "Afficher les autres valeurs de réponses"
1578
+
1579
+ #: templates/polls_results.html:64 templates/polls_results_print.html:37
1580
+ #: templates/polls_results_votes.html:475
1581
+ msgid "Answer"
1582
+ msgstr "Réponse"
1583
+
1584
+ #: templates/polls_results.html:66 templates/polls_results_print.html:39
1585
+ #: templates/polls_results_votes.html:477
1586
+ msgid "Percent"
1587
+ msgstr "Pourcent"
1588
+
1589
+ #: templates/polls_results.html:94
1590
+ msgid "Other Answers"
1591
+ msgstr "Autres réponses"
1592
+
1593
+ #: templates/polls_results.html:100
1594
+ msgid "Other Answer"
1595
+ msgstr "Autre réponse"
1596
+
1597
+ #: templates/polls_results_print.html:74
1598
+ #: templates/polls_results_votes.html:504
1599
+ msgid "Poll Other Answers"
1600
+ msgstr "Autres réponses de sondage"
1601
+
1602
+ #: templates/polls_results_print.html:132
1603
+ #: templates/polls_results_votes.html:556 templates/polls_view.html:157
1604
+ msgid "items"
1605
+ msgstr "items"
1606
+
1607
+ #: templates/polls_results_print.html:188
1608
+ #: templates/polls_results_votes.html:612
1609
+ msgid "No Custom Field Defined"
1610
+ msgstr "Aucun champ personnalisé défini"
1611
+
1612
+ #: templates/polls_results_votes.html:56
1613
+ msgid "Multiple questions"
1614
+ msgstr "Plusieurs questions"
1615
+
1616
+ #: templates/polls_results_votes.html:60
1617
+ msgid "Want your visitors' opinion on more than a topic?"
1618
+ msgstr "Voulez-vous l'opinion de vos visiteurs sur plus d'un sujet?"
1619
+
1620
+ #: templates/polls_results_votes.html:61
1621
+ msgid "No need to create a new poll every time."
1622
+ msgstr "Pas besoin de créer un nouveau sondage à chaque fois."
1623
+
1624
+ #: templates/polls_results_votes.html:62
1625
+ msgid ""
1626
+ "YOP Poll Pro allows you to add as many questions as you want within a single "
1627
+ "poll."
1628
+ msgstr ""
1629
+ "YOP Sondage Pro vous permet d'ajouter autant de questions que vous voulez "
1630
+ "dans un seul scrutin."
1631
+
1632
+ #: templates/polls_results_votes.html:68
1633
+ msgid "Media Questions"
1634
+ msgstr "Questions des médias"
1635
+
1636
+ #: templates/polls_results_votes.html:72
1637
+ msgid "Want to run a media poll?"
1638
+ msgstr "Vous voulez lancer un sondage de médias?"
1639
+
1640
+ #: templates/polls_results_votes.html:73
1641
+ msgid "Simply add your images or videos and you'r all set."
1642
+ msgstr "Il suffit d'ajouter vos images ou vidéos et you'r tous ensemble."
1643
+
1644
+ #: templates/polls_results_votes.html:74
1645
+ msgid "Can't get any easier than this."
1646
+ msgstr "Vous ne pouvez pas faire plus simple que cela."
1647
+
1648
+ #: templates/polls_results_votes.html:80
1649
+ msgid "Facebook/Google+"
1650
+ msgstr "Facebook/Google+"
1651
+
1652
+ #: templates/polls_results_votes.html:84
1653
+ msgid "YOP Poll Pro integrates with facebook and google+."
1654
+ msgstr "YOP Sondage Les intègre Pro avec Facebook et Google +."
1655
+
1656
+ #: templates/polls_results_votes.html:85
1657
+ msgid "Let your friends vote with their facebook or google+ account."
1658
+ msgstr "Laissez vos amis votent avec leur facebook ou google + compte."
1659
+
1660
+ #: templates/polls_results_votes.html:92
1661
+ msgid "New Templates"
1662
+ msgstr "Nouveaux Modèles"
1663
+
1664
+ #: templates/polls_results_votes.html:96
1665
+ msgid "Tired of the old templates?"
1666
+ msgstr "Fatigué des anciens modèles?"
1667
+
1668
+ #: templates/polls_results_votes.html:97
1669
+ msgid "We've added new ones. Much better looking."
1670
+ msgstr "Nous avons ajouté de nouveaux. Beaucoup plus beau."
1671
+
1672
+ #: templates/polls_results_votes.html:98
1673
+ msgid "And easy to edit to"
1674
+ msgstr "Et facile à modifier pour"
1675
+
1676
+ #: templates/polls_results_votes.html:99
1677
+ msgid "match your website look."
1678
+ msgstr "Correspondre à votre site look."
1679
+
1680
+ #: templates/polls_results_votes.html:105
1681
+ msgid " Stats"
1682
+ msgstr "Statistiques"
1683
+
1684
+ #: templates/polls_results_votes.html:109
1685
+ msgid "Get the most info out of your voters with our built in reporting tool."
1686
+ msgstr ""
1687
+ "Obtenez le plus d'informations sur vos électeurs avec notre outil de "
1688
+ "reporting intégré."
1689
+
1690
+ #: templates/polls_results_votes.html:115
1691
+ msgid "Premium support"
1692
+ msgstr "Premium support"
1693
+
1694
+ #: templates/polls_results_votes.html:119
1695
+ msgid "Having a hard time integrating yop poll with your website?"
1696
+ msgstr "Ayant du mal à intégrer sondage yop avec votre site web?"
1697
+
1698
+ #: templates/polls_results_votes.html:120
1699
+ msgid " We' re one email distance."
1700
+ msgstr "Nous sommes une distance de courriel."
1701
+
1702
+ #: templates/polls_results_votes.html:175
1703
+ msgid "Ban: IP, UserID"
1704
+ msgstr "Interit : IP, identifiant"
1705
+
1706
+ #: templates/polls_results_votes.html:215
1707
+ msgid "UserID"
1708
+ msgstr "identifiant d'utilisateur"
1709
+
1710
+ #: templates/polls_results_votes.html:383
1711
+ msgid "Other answers"
1712
+ msgstr "Autres réponses"
1713
+
1714
+ #: templates/polls_results_votes.html:390
1715
+ msgid "Custom fields"
1716
+ msgstr "Les champs personnalisés"
1717
+
1718
+ #: templates/polls_results_votes.html:404
1719
+ msgid "Votes ID"
1720
+ msgstr "Votes ID"
1721
+
1722
+ #: templates/polls_results_votes.html:411
1723
+ msgid "User Type"
1724
+ msgstr "Type d'utilisateur"
1725
+
1726
+ #: templates/polls_results_votes.html:651
1727
+ msgid "Search IP"
1728
+ msgstr "Recherche IP"
1729
+
1730
+ #: templates/polls_results_votes.html:661
1731
+ msgid "All Columns"
1732
+ msgstr "Toutes les colonnes"
1733
+
1734
+ #: templates/polls_results_votes.html:751
1735
+ #: templates/polls_results_votes.html:1087
1736
+ msgid "results"
1737
+ msgstr "Résultats"
1738
+
1739
+ #: templates/polls_results_votes.html:881
1740
+ msgid "Poll ID"
1741
+ msgstr "Identifiant du sondage"
1742
+
1743
+ #: templates/polls_results_votes.html:1005
1744
+ msgid "Ban"
1745
+ msgstr "Interdiction"
1746
+
1747
+ #: templates/polls_results_votes.html:1110
1748
+ msgid "Your poll doesn`t exist!"
1749
+ msgstr "Votre sondage n'existe pas"
1750
+
1751
+ #: templates/polls_view.html:16
1752
+ msgid "Use this shortcode to display your poll:"
1753
+ msgstr "Utiliser ce shortcode pour afficher votre sondage :"
1754
+
1755
+ #: templates/polls_view.html:37
1756
+ msgid "Download"
1757
+ msgstr "Télécharger"
1758
+
1759
+ #: templates/polls_view.html:37
1760
+ msgid "YOP Poll User Guide"
1761
+ msgstr "YOP Sondage Guide de l'utilisateur"
1762
+
1763
+ #: templates/polls_view.html:54
1764
+ msgid "Send me the FREE guide!"
1765
+ msgstr "Envoyez-moi le guide GRATUIT!"
1766
+
1767
+ #: templates/polls_view.html:76
1768
+ msgid " Have you found this plugin useful?"
1769
+ msgstr "Avez-vous trouvé ce plugin utile?"
1770
+
1771
+ #: templates/polls_view.html:77
1772
+ msgid " Rate YOP POLL 5★'s on WordPress.org"
1773
+ msgstr "Taux YOP SONDAGE 5 s 'sur ★ WordPress.org"
1774
+
1775
+ #: templates/polls_view.html:97
1776
+ msgid "Search Polls"
1777
+ msgstr "Rechercher un sondage"
1778
+
1779
+ #: templates/polls_view.html:117 templates/polls_view.html:285
1780
+ #: templates/templates_templates.html:216
1781
+ msgid "Clone"
1782
+ msgstr "Dupliquer"
1783
+
1784
+ #: templates/polls_view.html:119
1785
+ msgid "Reset Votes"
1786
+ msgstr "Réinitialiser les votes"
1787
+
1788
+ #: templates/polls_view.html:121
1789
+ msgid "Delete Logs"
1790
+ msgstr "Effacer les logs"
1791
+
1792
+ #: templates/polls_view.html:124
1793
+ msgid "Apply"
1794
+ msgstr "Appliquer"
1795
+
1796
+ #: templates/polls_view.html:133
1797
+ msgid "View All Polls"
1798
+ msgstr "Voir tous les sondages"
1799
+
1800
+ #: templates/polls_view.html:137
1801
+ msgid "Expired"
1802
+ msgstr "Expiré"
1803
+
1804
+ #: templates/polls_view.html:139
1805
+ msgid "Started"
1806
+ msgstr "Débuté"
1807
+
1808
+ #: templates/polls_view.html:141
1809
+ msgid "Not Started"
1810
+ msgstr "Non commencé"
1811
+
1812
+ #: templates/polls_view.html:199
1813
+ msgid "Author"
1814
+ msgstr "Auteur"
1815
+
1816
+ #: templates/polls_view.html:271
1817
+ msgid "Get Code"
1818
+ msgstr "Obtenir le code"
1819
+
1820
+ #: templates/polls_view.html:306
1821
+ msgid "View votes"
1822
+ msgstr "Voir les votes"
1823
+
1824
+ #: templates/polls_view.html:359
1825
+ msgid "No polls found!"
1826
+ msgstr "Aucun sondage trouvé"
1827
+
1828
+ #: templates/pro_after_upgrade.html:12
1829
+ msgid ""
1830
+ "Congrats! You've completed the payment. Click here to proceed with upgrading "
1831
+ "plugin!"
1832
+ msgstr ""
1833
+ "Félicitations! Vous avez terminé le paiement. Cliquez ici pour procéder à la "
1834
+ "mise à niveau plug-in!"
1835
+
1836
+ #: templates/pro_help.html:24 templates/pro_pre_upgrade.html:58
1837
+ msgid ""
1838
+ "I originally had some difficulties with the tool, and I reported them. (This "
1839
+ "is normal for all software.)"
1840
+ msgstr ""
1841
+ "Je ai eu quelques difficultés à l'origine avec l'outil, et je leur ai "
1842
+ "signalé. (Ce est normal pour tous les logiciels.)"
1843
+
1844
+ #: templates/pro_help.html:25 templates/pro_pre_upgrade.html:59
1845
+ msgid ""
1846
+ "After I reported my issues, the support got in touch with me very quickly "
1847
+ "and have the problem resolved."
1848
+ msgstr ""
1849
+ "Après je ai rapporté mes questions, le soutien a pris contact avec moi très "
1850
+ "rapidement et ont le problème résolu."
1851
+
1852
+ #: templates/pro_help.html:26 templates/pro_pre_upgrade.html:60
1853
+ msgid ""
1854
+ "Also, they listened to my suggestions and worked with me to have things "
1855
+ "implemented and resolved."
1856
+ msgstr ""
1857
+ "En outre, ils ont écouté mes suggestions et a travaillé avec moi pour avoir "
1858
+ "des choses mises en œuvre et résolus."
1859
+
1860
+ #: templates/pro_help.html:35 templates/pro_pre_upgrade.html:69
1861
+ msgid "Great support for a very useful product"
1862
+ msgstr "Grand soutien pour un produit très utile"
1863
+
1864
+ #: templates/pro_help.html:38 templates/pro_pre_upgrade.html:72
1865
+ msgid ""
1866
+ "I used yop poll standard and tried upgrading. I ran into an issue and send "
1867
+ "support an email. I got the best suppor timaginable. They immediately "
1868
+ "(within the hour) started working on the issue, solved it and solved a bunch "
1869
+ "of other stuff in the running."
1870
+ msgstr ""
1871
+ "Je ai utilisé la norme de sondage yop et la modernisation essayé. Je ai "
1872
+ "couru dans un problème et envoie soutenir un email. Je ai eu le meilleur "
1873
+ "timaginable de suppor. Ils ont immédiatement (dans l'heure) ont commencé à "
1874
+ "travailler sur la question, résolus et résolu un tas d'autres choses dans la "
1875
+ "course."
1876
+
1877
+ #: templates/pro_help.html:40 templates/pro_pre_upgrade.html:74
1878
+ msgid "Superb Support, absolutely worth paying for!"
1879
+ msgstr "Superbe soutien, absolument la peine de payer pour!"
1880
+
1881
+ #: templates/pro_help.html:43 templates/pro_pre_upgrade.html:77
1882
+ msgid "fredverhoeven, wordpress user"
1883
+ msgstr "fredverhoeven, les utilisateurs de WordPress"
1884
+
1885
+ #: templates/pro_pre_upgrade.html:5
1886
+ msgid ""
1887
+ "If you already have a license, please enter it below to activate YOP Poll "
1888
+ "Pro:"
1889
+ msgstr ""
1890
+ "Si vous avez déjà une licence, se il vous plaît saisir ci-dessous pour "
1891
+ "activer YOP Sondage Pro:"
1892
+
1893
+ #: templates/templates_templates_add_edit.html:23
1894
+ msgid "Template Name"
1895
+ msgstr "Nom du modèle"
1896
+
1897
+ #: templates/templates_templates_add_edit.html:30
1898
+ msgid "Example: Test Poll Template"
1899
+ msgstr "Exemple : Test de modèle de sondage"
1900
+
1901
+ #: templates/templates_templates_add_edit.html:35
1902
+ msgid "Template Before Vote"
1903
+ msgstr "Modèle avant le vote"
1904
+
1905
+ #: templates/templates_templates_add_edit.html:43
1906
+ msgid "Template After Vote"
1907
+ msgstr "Modèle après le vote"
1908
+
1909
+ #: templates/templates_templates_add_edit.html:54
1910
+ msgid "Template Before Start Date"
1911
+ msgstr "Modèle avant la date de début"
1912
+
1913
+ #: templates/templates_templates_add_edit.html:67
1914
+ msgid "Template After End Date"
1915
+ msgstr "Modèle après la date de fin"
1916
+
1917
+ #: templates/templates_templates_add_edit.html:80
1918
+ msgid "Css"
1919
+ msgstr "Css"
1920
+
1921
+ #: templates/templates_templates_add_edit.html:93
1922
+ msgid "JavaScript"
1923
+ msgstr "JavaScript"
1924
+
1925
+ #: templates/templates_templates_add_edit.html:152
1926
+ msgid "Tools"
1927
+ msgstr "Outils"
1928
+
1929
+ #: templates/templates_templates_add_edit.html:160
1930
+ msgid "Template Author"
1931
+ msgstr "Auteur du modèle"
1932
+
1933
+ #: templates/templates_templates_add_edit.html:175
1934
+ msgid "Select Template For Reset"
1935
+ msgstr "Sélectionner un modèle pour la réinitialisation"
1936
+
1937
+ #: templates/templates_templates_add_edit.html:203
1938
+ msgid "Reset Poll Template"
1939
+ msgstr "Réinitialiser le gabarit de sondage"
1940
+
1941
+ #~ msgid "Please wait a moment while we process your request..."
1942
+ #~ msgstr ""
1943
+ #~ "S'il vous plaît attendez un moment pendant que nous traitons votre "
1944
+ #~ "demande ..."
1945
+
1946
+ #~ msgid "An error has occured..."
1947
+ #~ msgstr "Une erreur est survenue..."
1948
+
1949
+ #~ msgid "You are not allowed to access this request."
1950
+ #~ msgstr "Vous n'êtes pas autorisé à accéder à cette demande."
1951
+
1952
+ #~ msgid "Request Failed"
1953
+ #~ msgstr "Échec de la demande"
1954
+
1955
+ #~ msgid "You must choose a yop poll!"
1956
+ #~ msgstr "Vous devez choisir un sondage Yop-Poll"
1957
+
1958
+ #~ msgid "Invalid Yop Poll! Please try again!"
1959
+ #~ msgstr "Sondage Yop-Poll non-valide. S'il vous plaît essayer de nouveau!"
1960
+
1961
+ #~ msgid "You must choose a ban type!"
1962
+ #~ msgstr "Vous devez choisir un type d'interdiction !"
1963
+
1964
+ #~ msgid "You must choose a ban period!"
1965
+ #~ msgstr "Vous devez choisir une période d'interdiction !"
1966
+
1967
+ #~ msgid "You must choose a ban unit!"
1968
+ #~ msgstr "Vous devez choisir une unité d'interdiction !"
1969
+
1970
+ #~ msgid "You must choose a ban value!"
1971
+ #~ msgstr "Vous devez choisir une valeur d'interdiction!"
1972
+
1973
+ #~ msgid "Ban added"
1974
+ #~ msgstr "Interdiction ajoutée."
1975
+
1976
+ #~ msgid "Could not insert ban into database! Please try again!"
1977
+ #~ msgstr ""
1978
+ #~ "Impossible d'insérer l'interdiction dans la base de données. S'il vous "
1979
+ #~ "plaît essayer de nouveau!"
1980
+
1981
+ #~ msgid "You do not have enough permission to add a ban"
1982
+ #~ msgstr ""
1983
+ #~ "Vous ne disposez pas des permissions nécessaires pour ajouter une "
1984
+ #~ "interdiction."
1985
+
1986
+ #~ msgid "Ban deleted"
1987
+ #~ msgstr "Interdiction effacée."
1988
+
1989
+ #~ msgid "Could not delete ban from database! Please try again!"
1990
+ #~ msgstr ""
1991
+ #~ "Impossible de supprimer l'interdiction de la base de données. S'il vous "
1992
+ #~ "plaît, essayer de nouveau."
1993
+
1994
+ #~ msgid "You do not have enough permission to delete a ban"
1995
+ #~ msgstr ""
1996
+ #~ "Vous ne disposez pas des permissions nécessaires pour supprimer une "
1997
+ #~ "interdiction."
1998
+
1999
+ #~ msgid "You must choose a ban type"
2000
+ #~ msgstr "Vous devez choisir un type d'interdiction"
2001
+
2002
+ #~ msgid "Ban edited"
2003
+ #~ msgstr "Interdiction éditée."
2004
+
2005
+ #~ msgid "Could not edit ban from database! Please try again!"
2006
+ #~ msgstr ""
2007
+ #~ "Impossible de modifier l'interdiction par la base de données. S'il vous "
2008
+ #~ "plaît, essayer de nouveau."
2009
+
2010
+ #~ msgid "You do not have enough permission to edit a ban"
2011
+ #~ msgstr ""
2012
+ #~ "Vous ne disposez des permissions nécessaires pour éditer cette "
2013
+ #~ "interdiction."
2014
+
2015
+ #~ msgid "You do not have enough permission to import a Wp-poll"
2016
+ #~ msgstr ""
2017
+ #~ "Vous ne disposez pas des permissions nécessaires pour importer un Wp-poll."
2018
+
2019
+ #~ msgid "Polls imported!"
2020
+ #~ msgstr "Sondage importé."
2021
+
2022
+ #~ msgid "Could not import polls into database!"
2023
+ #~ msgstr "Impossible d'importer le sondage dans la base de données."
2024
+
2025
+ #~ msgid "You do not have enough permission to delete a log"
2026
+ #~ msgstr ""
2027
+ #~ "Vous ne disposez pas des permissions nécessaires pour supprimer un "
2028
+ #~ "registre."
2029
+
2030
+ #~ msgid "Log deleted"
2031
+ #~ msgstr "Registre effacé."
2032
+
2033
+ #~ msgid "Could not delete log from database! Please try again!"
2034
+ #~ msgstr ""
2035
+ #~ "Impossible de supprimer le registre de la base de données. S'il vous "
2036
+ #~ "plaît, essayer de nouveau."
2037
+
2038
+ #~ msgid "You do not have enough permission to delete a log!"
2039
+ #~ msgstr ""
2040
+ #~ "Vous ne disposez pas des permissions nécessaires pour supprimer un "
2041
+ #~ "registre."
2042
+
2043
+ #~ msgid "You need permissions to activate this plugin"
2044
+ #~ msgstr "Vous devez avoir la permissions d'activer cet extension."
2045
+
2046
+ #~ msgid "Error: Wordpress Activation Permissions Problem"
2047
+ #~ msgstr "Erreur : Wordpress problème d'activation de permissions."
2048
+
2049
+ #~ msgid "You need at least Wordpress version %s to use this plugin"
2050
+ #~ msgstr ""
2051
+ #~ "Vous devez minimalement avoir la version %s de Wordpress pour utiliser "
2052
+ #~ "cet extension."
2053
+
2054
+ #~ msgid "Error: Wordpress Version Problem"
2055
+ #~ msgstr "Erreur : Problème de version de Wordpress."
2056
+
2057
+ #~ msgid "Bad Request!"
2058
+ #~ msgstr "Mauvaise requête"
2059
+
2060
+ #~ msgid "Changes Saved!"
2061
+ #~ msgstr "Modifications enregistrées!"
2062
+
2063
+ #~ msgid "View Results"
2064
+ #~ msgstr "Voir les résultats"
2065
+
2066
+ #~ msgid "Back to vote"
2067
+ #~ msgstr "Retour au vote"
2068
+
2069
+ #~ msgid "Poll total votes: %POLL-TOTAL-VOTES%"
2070
+ #~ msgstr "Total de vote pour %POLL-TOTAL-VOTES%"
2071
+
2072
+ #~ msgid "Poll total answers: %POLL-TOTAL-ANSWERS%"
2073
+ #~ msgstr "Réponses totales du sondage : %POLL-TOTAL-ANSWERS%"
2074
+
2075
+ #~ msgid "Thank you for voting!"
2076
+ #~ msgstr "Merci d'avoir voté !"
2077
+
2078
+ #~ msgid "Just casted an YOP Poll vote on"
2079
+ #~ msgstr "Viens tout juste de soumettre un sondage Yop Poll sur"
2080
+
2081
+ #~ msgid "Vote as G+ User"
2082
+ #~ msgstr "Voter en tant qu'utilisateur G+"
2083
+
2084
+ #~ msgid "Other"
2085
+ #~ msgstr "Autre"
2086
+
2087
+ #~ msgid "New Yop Poll Vote"
2088
+ #~ msgstr "Nouveau vote Yop-Poll"
2089
+
2090
+ #~ msgid "Log added"
2091
+ #~ msgstr "Registre ajouté"
2092
+
2093
+ #~ msgid "Could not insert log into database!"
2094
+ #~ msgstr "Impossible d'insérer dans la base de données"
2095
+
2096
+ #~ msgid "Votes Added!"
2097
+ #~ msgstr "Votes ajoutés"
2098
+
2099
+ #~ msgid "Could not insert vote into database!"
2100
+ #~ msgstr "Impossible d'insérer le vote dans la base de données !"
2101
+
2102
+ #~ msgid "Yop Poll"
2103
+ #~ msgstr "Yop Poll"
2104
+
2105
+ #~ msgid "&laquo; Previous"
2106
+ #~ msgstr "&laquo; Précédent"
2107
+
2108
+ #~ msgid "Next &raquo;"
2109
+ #~ msgstr "Suivant &raquo;"
2110
+
2111
+ #~ msgid "Edit Poll"
2112
+ #~ msgstr "Éditer le sondage"
2113
+
2114
+ #~ msgid "Custom Text Field"
2115
+ #~ msgstr "Champ de texte personnalisé"
2116
+
2117
+ #~ msgid "Required"
2118
+ #~ msgstr "Requis"
2119
+
2120
+ #~ msgid "More Options"
2121
+ #~ msgstr "Plus d'options"
2122
+
2123
+ #~ msgid "Change Number Of Votes"
2124
+ #~ msgstr "Modifier le nombre de votes"
2125
+
2126
+ #~ msgid "Change Number Of Total Votes"
2127
+ #~ msgstr "Modifier le nombre total de votes"
2128
+
2129
+ #~ msgid "Change Number Of Total Answers"
2130
+ #~ msgstr "Modifier le nombre total de réponses"
2131
+
2132
+ #~ msgid "Make this the default answer"
2133
+ #~ msgstr "Choisir cette réponse par défaut"
2134
+
2135
+ #~ msgid "Use Template Result Bar"
2136
+ #~ msgstr "Utiliser la barre de résultat du modèle"
2137
+
2138
+ #~ msgid "Yop Poll Bar Style"
2139
+ #~ msgstr "Style de la barre Yop Poll"
2140
+
2141
+ #~ msgid "Yop Poll Bar Preview"
2142
+ #~ msgstr "Aperçu de la barre Yop Poll"
2143
+
2144
+ #~ msgid "You are not allowed to edit this item."
2145
+ #~ msgstr "Vous n'êtes pas autorisé à modifier cet item."
2146
+
2147
+ #~ msgid "You are not allowed to clone this item."
2148
+ #~ msgstr "Vous n'êtes pas autorisé à dupliquer cet item."
2149
+
2150
+ #~ msgid "Result deleted"
2151
+ #~ msgstr "Résultat effacé"
2152
+
2153
+ #~ msgid "Could not delete result from database! Please try again!"
2154
+ #~ msgstr ""
2155
+ #~ "Impossible d'effacer le résultat de la base de données. S'il vous plaît "
2156
+ #~ "essayer de nouveau."
2157
+
2158
+ #~ msgid "You are not allowed to reset votes for this poll."
2159
+ #~ msgstr "Vous n'êtes pas autorisé à réinitialiser les votes de ce sondage."
2160
+
2161
+ #~ msgid ""
2162
+ #~ "Please wait until we redirect you to paypal.com. If you are not "
2163
+ #~ "redirected within 10 seconds, please click "
2164
+ #~ msgstr ""
2165
+ #~ "S'il vous plaît attendre jusqu'à ce que nous vous soyez redirigé vers "
2166
+ #~ "paypal.com. Si vous n'êtes pas redirigé dans les 10 secondes, s'il vous "
2167
+ #~ "plaît cliquez"
2168
+
2169
+ #~ msgid "Loading"
2170
+ #~ msgstr "Chargement"
2171
+
2172
+ #~ msgid "You do not have enough permission to add a template"
2173
+ #~ msgstr ""
2174
+ #~ "Vous n'avez pas les permissions nécessaires pour ajouter un gabarit."
2175
+
2176
+ #~ msgid "Template deleted"
2177
+ #~ msgstr "Gabarit effacé"
2178
+
2179
+ #~ msgid "Could not delete template from database! Please try again!"
2180
+ #~ msgstr ""
2181
+ #~ "Impossible de supprimer le gabarit à partir de la base de données ! S'il "
2182
+ #~ "vous plaît essayer de nouveau."
2183
+
2184
+ #~ msgid "You do not have enough permission to delete a template"
2185
+ #~ msgstr "Vous n'avez les permission de supprimer un modèle"
2186
+
2187
+ #~ msgid "Template cloned!"
2188
+ #~ msgstr "Gabarit dupliqué."
2189
+
2190
+ #~ msgid "Could not clone template from database! Please try again!"
2191
+ #~ msgstr "Vous n'avez pas les permissions pour supprimer un gabarit"
2192
+
2193
+ #~ msgid "You do not have enough permission to clone a template"
2194
+ #~ msgstr "Vous n'avez pas les permissions pour dupliquer un gabarit"
2195
+
2196
+ #~ msgid "You are not allowed to reset this item."
2197
+ #~ msgstr "Vous n'êtes pas autorisé à réinitialiser cet item."
2198
+
2199
+ #~ msgid "Template reseted!"
2200
+ #~ msgstr "Gabarit réinitialisé"
2201
+
2202
+ #~ msgid "Could not resete template in database! Please try again!"
2203
+ #~ msgstr ""
2204
+ #~ "Impossible de réinitialiser ce gabarit dans la base de données! S'il vous "
2205
+ #~ "plaît essayer de nouveau!"
2206
+
2207
+ #~ msgid "This template already exists! Please choose another name!"
2208
+ #~ msgstr "Ce gabarit existe déjà. S'il vous plaît choisir un autre nom."
2209
+
2210
+ #~ msgid "Please enter a template name!"
2211
+ #~ msgstr "S'il vous plaît entrer un nom de gabarit"
2212
+
2213
+ #~ msgid "Template added!"
2214
+ #~ msgstr "Gabarit ajouté"
2215
+
2216
+ #~ msgid "Could not add template in database! Please try again!"
2217
+ #~ msgstr ""
2218
+ #~ "Impossible d'ajouter ce gabarit dans la base de données! S'il vous plaît "
2219
+ #~ "essayer de nouveau!"
2220
+
2221
+ #~ msgid "Template edited!"
2222
+ #~ msgstr "Gabarit édité"
2223
+
2224
+ #~ msgid "Could not edit template in database! Please try again!"
2225
+ #~ msgstr ""
2226
+ #~ "Impossible d'éditer ce gabarit dans la base de données. S'il vous plaît "
2227
+ #~ "essayer de nouveau"
2228
+
2229
+ #~ msgid "Yop Poll Widget"
2230
+ #~ msgstr "Widget Yop Poll"
2231
+
2232
+ #~ msgid "Never Expire"
2233
+ #~ msgstr "N'expire jamais"
2234
+
2235
+ #~ msgid "Enter the code"
2236
+ #~ msgstr "Entrer le code"
2237
+
2238
+ #~ msgid "An Error Has Occured!"
2239
+ #~ msgstr "Une erreur s'est produite!"
2240
+
2241
+ #~ msgid "Facebook user not found"
2242
+ #~ msgstr "Utilisateur Facebook introuvable"
2243
+
2244
+ #~ msgid ""
2245
+ #~ "You Don`t Have Permission to Vote! You must authorize YOP POLL "
2246
+ #~ "application in your facebook account!"
2247
+ #~ msgstr ""
2248
+ #~ "Vous n'avez pas la permission de voter! Vous devez autoriser "
2249
+ #~ "l'application YOP POLL dans votre compte facebook!"
2250
+
2251
+ #~ msgid "Facebook not authorized"
2252
+ #~ msgstr "Facebook n'est pas autorisé"
2253
+
2254
+ #~ msgid "You Don`t Have Permission to Vote!"
2255
+ #~ msgstr "Vous n'avez pas la permission de voter!"
2256
+
2257
+ #~ msgid "Google permission denied"
2258
+ #~ msgstr "Permission Google refusé"
2259
+
2260
+ #~ msgid "Google user not found"
2261
+ #~ msgstr "Utilisateur Google introuvable"
2262
+
2263
+ #~ msgid "This poll is closed!"
2264
+ #~ msgstr "Ce sondage est fermé."
2265
+
2266
+ #~ msgid "Poll Closed"
2267
+ #~ msgstr "Sondage fermé."
2268
+
2269
+ #~ msgid "Other answer for question"
2270
+ #~ msgstr "Autre réponse à la question"
2271
+
2272
+ #~ msgid "could not be inserted!"
2273
+ #~ msgstr "ne pouvait pas être inséré!"
2274
+
2275
+ #~ msgid " could not be inserted"
2276
+ #~ msgstr " ne pouvait pas être inséré"
2277
+
2278
+ #~ msgid "Other answer from question"
2279
+ #~ msgstr "Autre réponse de la question"
2280
+
2281
+ #~ msgid "is empty"
2282
+ #~ msgstr "est vide"
2283
+
2284
+ #~ msgid "Too few answers selected for question"
2285
+ #~ msgstr "Trop peu de réponses sélectionnés pour la question"
2286
+
2287
+ #~ msgid "! Only more than"
2288
+ #~ msgstr "! Seulement plus que"
2289
+
2290
+ #~ msgid "answers allowed!"
2291
+ #~ msgstr "réponses possibles!"
2292
+
2293
+ #~ msgid "Too many answers selected for question"
2294
+ #~ msgstr "Trop de réponses sélectionnés pour la question"
2295
+
2296
+ #~ msgid "! Only"
2297
+ #~ msgstr "! Seulement"
2298
+
2299
+ #~ msgid "could not be inserted"
2300
+ #~ msgstr "ne pouvait pas être inséré"
2301
+
2302
+ #~ msgid "Other answer from question "
2303
+ #~ msgstr "Autre réponse de la question"
2304
+
2305
+ #~ msgid "empty"
2306
+ #~ msgstr "vide"
2307
+
2308
+ #~ msgid "from question"
2309
+ #~ msgstr "de la question"
2310
+
2311
+ #~ msgid "is required"
2312
+ #~ msgstr "est requis"
2313
+
2314
+ #~ msgid "required"
2315
+ #~ msgstr "requis"
2316
+
2317
+ #~ msgid "is missing"
2318
+ #~ msgstr "est manquant"
2319
+
2320
+ #~ msgid "missing"
2321
+ #~ msgstr "manquant"
2322
+
2323
+ #~ msgid "Custom fields from question"
2324
+ #~ msgstr "Champ personnalisé de la question"
2325
+
2326
+ #~ msgid "are missing"
2327
+ #~ msgstr "sont manquantes"
2328
+
2329
+ #~ msgid "Incorrect security code entered!"
2330
+ #~ msgstr "Code de sécurité incorrect !"
2331
+
2332
+ #~ msgid "Incorrect security code entered"
2333
+ #~ msgstr "Code de sécurité incorrect !"
2334
+
2335
+ #~ msgid "No vote registered!"
2336
+ #~ msgstr "Aucun vote enregistré!"
2337
+
2338
+ #~ msgid "No vote registered"
2339
+ #~ msgstr "Aucun vote enregistré!"
2340
+
2341
+ #~ msgid "No answer selected for question"
2342
+ #~ msgstr "Aucune réponse sélectionnée pour la question"
2343
+
2344
+ #~ msgid "You have run out of votes!"
2345
+ #~ msgstr "Vous n'avez plus de votes!"
2346
+
2347
+ #~ msgid "Run out of votes"
2348
+ #~ msgstr "À court de vote"
2349
+
2350
+ #~ msgid "You Already voted!"
2351
+ #~ msgstr "Vous avez déjà voté!"
2352
+
2353
+ #~ msgid "Already Voted"
2354
+ #~ msgstr "Déjà voté"
2355
+
2356
+ #~ msgid "You can vote once the poll starts!"
2357
+ #~ msgstr "Vous pouvez voter après le commencement du sondage!"
2358
+
2359
+ #~ msgid "Poll not started"
2360
+ #~ msgstr "Sondage pas démarré"
2361
+
2362
+ #~ msgid "You are not allowed to vote!"
2363
+ #~ msgstr "Vous n'êtes pas autorisé à voter!"
2364
+
2365
+ #~ msgid "Not allowed to vote"
2366
+ #~ msgstr "Non autorisé à voter"
2367
+
2368
+ #~ msgid "Bad request"
2369
+ #~ msgstr "Mauvaise requête"
2370
+
2371
+ #~ msgid "Success"
2372
+ #~ msgstr "Succès"
2373
+
2374
+ #~ msgid "Poll title is missing!"
2375
+ #~ msgstr "Le titre du sondage est manquant"
2376
+
2377
+ #~ msgid "Custom Field"
2378
+ #~ msgstr "Champ personnalisé"
2379
+
2380
+ #~ msgid "from Question"
2381
+ #~ msgstr "de la Question"
2382
+
2383
+ #~ msgid "is empty!"
2384
+ #~ msgstr "est vide !"
2385
+
2386
+ #~ msgid "Please add a question!"
2387
+ #~ msgstr "S'il vous plaît jaouté une question !"
2388
+
2389
+ #~ msgid "This poll already exists! Please choose another name!"
2390
+ #~ msgstr "Ce sondage existe déjà! S'il vous plaît choisir un autre nom!"
2391
+
2392
+ #~ msgid "Poll successfully saved!"
2393
+ #~ msgstr "Sondage sauvegardé avec succès!"
2394
+
2395
+ #~ msgid "Poll couldn`t be saved!"
2396
+ #~ msgstr "Sondage n'a pas pu être sauvegardé !"
2397
+
2398
+ #~ msgid ""
2399
+ #~ "Option 'Poll Archive Order' NOT Updated! You must fill in with a numeric "
2400
+ #~ "value!"
2401
+ #~ msgstr ""
2402
+ #~ "Option 'Commande d'archive de sondage' pas mis à jour! Vous devez remplir "
2403
+ #~ "avec une valeur numérique."
2404
+
2405
+ #~ msgid ""
2406
+ #~ "Option 'Show Poll in Archive' NOT Updated! Please choose between 'yes' or "
2407
+ #~ "'no'!"
2408
+ #~ msgstr ""
2409
+ #~ "Option 'Afficher le sondage dans archive 'pas mis à jour! S'il vous plaît "
2410
+ #~ "choisir entre «oui» ou «non»"
2411
+
2412
+ #~ msgid "'Other Answer' will be autoselected"
2413
+ #~ msgstr "'Autres réponses' sera automatiquement sélectionné"
2414
+
2415
+ #~ msgid "Poll Order Rule"
2416
+ #~ msgstr "Ordre des règles de sondage"
2417
+
2418
+ #~ msgid "Please wait..."
2419
+ #~ msgstr "S'il vous plaît attendre..."
2420
+
2421
+ #~ msgid "Questions & Answers"
2422
+ #~ msgstr "Questions et réponses"
2423
+
2424
+ #~ msgid "Only for logged users"
2425
+ #~ msgstr "Pour utilisateurs connectés seulement"
2426
+
2427
+ #~ msgid "Current Server Time"
2428
+ #~ msgstr "Heure actuelle du serveur"
2429
+
2430
+ #~ msgid "Description:"
2431
+ #~ msgstr "Description:"
2432
+
2433
+ #~ msgid "Show description"
2434
+ #~ msgstr "Afficher la description"
2435
+
2436
+ #~ msgid "Delete Question"
2437
+ #~ msgstr "Supprimer la Question"
2438
+
2439
+ #~ msgid "Add the values submitted in Other as answers"
2440
+ #~ msgstr "Ajoutez les valeurs présentées dans 'Autres comme réponses'"
2441
+
2442
+ #~ msgid ""
2443
+ #~ "all the values submitted in this field by your users will be "
2444
+ #~ "automatically added as an available Answer"
2445
+ #~ msgstr ""
2446
+ #~ "toutes les valeurs présentées dans ce domaine par vos utilisateurs seront "
2447
+ #~ "automatiquement ajoutée comme réponse disponibles"
2448
+
2449
+ #~ msgid ""
2450
+ #~ "all the values submitted in this field by your users will be "
2451
+ #~ "automatically added as an available Answer "
2452
+ #~ msgstr ""
2453
+ #~ "toutes les valeurs présentées dans ce domaine par vos utilisateurs seront "
2454
+ #~ "automatiquement ajoutée comme réponse disponibles"
2455
+
2456
+ #~ msgid "Results for:"
2457
+ #~ msgstr "Résultats pour:"
2458
+
2459
+ #~ msgid "Show Other Answers Value"
2460
+ #~ msgstr "Afficher les autres valeurs de réponses"
2461
+
2462
+ #~ msgid "View votes evolution"
2463
+ #~ msgstr "Voir votes évolution"
2464
+
2465
+ #~ msgid "View votes per country"
2466
+ #~ msgstr "Voir votes par pays"
2467
+
2468
+ #~ msgid "Social Chart"
2469
+ #~ msgstr "Charte sociale"
2470
+
2471
+ #~ msgid "Line"
2472
+ #~ msgstr "Ligne"
2473
+
2474
+ #~ msgid "Pie3d"
2475
+ #~ msgstr "Pointe de tarte 3D"
2476
+
2477
+ #~ msgid "View Chart"
2478
+ #~ msgstr "Voir Graphique"
2479
+
2480
+ #~ msgid "All Answers"
2481
+ #~ msgstr "Toutes les réponses"
2482
+
2483
+ #~ msgid "No answers defined!"
2484
+ #~ msgstr "Aucune réponse définies"
2485
+
2486
+ #~ msgid "Age"
2487
+ #~ msgstr "Âge"
2488
+
2489
+ #~ msgid "Gender"
2490
+ #~ msgstr "Sexe"
2491
+
2492
+ #~ msgid "Questions Other Charts"
2493
+ #~ msgstr "Charte d'Autres questions"
2494
+
2495
+ #~ msgid "Show more results"
2496
+ #~ msgstr "Afficher plus de résultats"
2497
+
2498
+ #~ msgid "Show more other answers"
2499
+ #~ msgstr "Afficher plus d'autres réponses"
2500
+
2501
+ #~ msgid "No other answers defined!"
2502
+ #~ msgstr "Aucune autre réponse de définies"
2503
+
2504
+ #~ msgid "#"
2505
+ #~ msgstr "#"
2506
+
2507
+ #~ msgid "Reset Stats"
2508
+ #~ msgstr "Réinitialiser les statistiques"
2509
+
2510
+ #~ msgid ""
2511
+ #~ "Congrats! You've completed the payment. Click here to proceed with "
2512
+ #~ "upgrading plugin"
2513
+ #~ msgstr ""
2514
+ #~ "Félicitations! Vous avez terminé le paiement. Cliquez ici pour procéder à "
2515
+ #~ "la mise à niveau de l'extension"
2516
+
2517
+ #~ msgid "Template After Vote Chart Results"
2518
+ #~ msgstr "Modèle Après Résultats Vote Graphique"
2519
+
2520
+ #~ msgid "Add Template"
2521
+ #~ msgstr "Ajouter un gabarit"
2522
+
2523
+ #~ msgid "Save changes"
2524
+ #~ msgstr "Enregistrer les modifications"
2525
+
2526
+ #~ msgid "Print Votes"
2527
+ #~ msgstr "Imprimer les votes"
2528
+
2529
+ #~ msgid "Search Wp Polls"
2530
+ #~ msgstr "Rechercher WP Sondages "
2531
+
2532
+ #~ msgid "Options"
2533
+ #~ msgstr "Options"
2534
+
2535
+ #~ msgid "Insert Poll"
2536
+ #~ msgstr "Insérer un sondage"
2537
+
2538
+ #~ msgid "Error: Invalid Yop Poll!\\n\\nPlease choose the poll again:\\n\\n"
2539
+ #~ msgstr ""
2540
+ #~ "Erreur : Sondage Yop invalide!\\n\\n S'il vous plaît choisir à nouveau le "
2541
+ #~ "sondage."
2542
+
2543
+ #~ msgid "Poll to Display"
2544
+ #~ msgstr "Sondage à afficher"
2545
+
2546
+ #~ msgid "Display Random Poll"
2547
+ #~ msgstr "Affichage aléatoire des sondage"
2548
+
2549
+ #~ msgid "Display Latest Poll"
2550
+ #~ msgstr "Afficher le plus récent sondage"
2551
+
2552
+ #~ msgid "Display Current Active Poll"
2553
+ #~ msgstr "Afficher le sondage présentement actif"
2554
+
2555
+ #~ msgid "Display results only"
2556
+ #~ msgstr "Afficher les résultats seulement"
2557
+
2558
+ #~ msgid "Close"
2559
+ #~ msgstr "Fermer"
2560
+
2561
+ #~ msgid "Please insert the poll ID:\\n\\n"
2562
+ #~ msgstr "S'il vous plaît, insérer le numéro de sondage"
2563
+
2564
+ #~ msgid ""
2565
+ #~ "Error: Poll Id must be numeric!\\n\\nPlease insert the poll ID Again:\\n"
2566
+ #~ "\\n"
2567
+ #~ msgstr "Erreur : L'identifiant du sondage doit être numérique"
2568
+
2569
+ #~ msgid "You must choose a yop poll! "
2570
+ #~ msgstr "Vous devez choisir un sondage yop poll !"
2571
+
2572
+ #~ msgid "Invalid Yop Poll! Please try again! "
2573
+ #~ msgstr "Yop Poll invalid. S'il vous plaît essayer de nouveau ! "
2574
+
2575
+ #~ msgid "&laquo;"
2576
+ #~ msgstr "&laquo;"
2577
+
2578
+ #~ msgid "&raquo;"
2579
+ #~ msgstr "&raquo;"
2580
+
2581
+ #~ msgid "POLL Name"
2582
+ #~ msgstr "Nom du sondage"
2583
+
2584
+ #~ msgid ""
2585
+ #~ "It looks like you've been enjoying YOP POLL Plugin for at least 30 days."
2586
+ #~ msgstr ""
2587
+ #~ "Il semble que vous appréciez l'extension YOP Poll depuis au moins 30 "
2588
+ #~ "jours."
2589
+
2590
+ #~ msgid ""
2591
+ #~ "Would you consider a small donation to help support continued development "
2592
+ #~ "of the plugin?"
2593
+ #~ msgstr ""
2594
+ #~ "Envisageriez-vous un petit don pour aider à soutenir la poursuite du "
2595
+ #~ "développement de cet extension ?"
2596
+
2597
+ #~ msgid "Support This Plugin"
2598
+ #~ msgstr "Supportez cet extension"
2599
+
2600
+ #~ msgid "Rate it 5&#9733;'s"
2601
+ #~ msgstr "Notez le 5&#9733;'s"
2602
+
2603
+ #~ msgid "Tell Your Followers"
2604
+ #~ msgstr "Avisez vos abonnés."
2605
+
2606
+ #~ msgid "Don't Bug Me Again"
2607
+ #~ msgstr "Ne plus m'embêter."
2608
+
2609
+ #~ msgid "Option \"User Interface Type\" Updated!"
2610
+ #~ msgstr "Option \"Type d'interface d'utilisateur\" mise à jour."
2611
+
2612
+ #~ msgid "Option \"Poll Start Date\" Updated!"
2613
+ #~ msgstr "Option \"Date de début du sondage\" mise à jour."
2614
+
2615
+ #~ msgid "Option \"Poll End Date\" Updated!"
2616
+ #~ msgstr "Option \"Date de fin du sondage\" mise à jour."
2617
+
2618
+ #~ msgid "Option \"Use Facebook Integration\" Updated!"
2619
+ #~ msgstr "Option \"Utiliser l'intégration Facebook\" mise à jour."
2620
+
2621
+ #~ msgid "Option \"Facebook App ID\" Updated!"
2622
+ #~ msgstr "Option \"Identifiant Facebook App\" mise à jour."
2623
+
2624
+ #~ msgid "Option \"Use Google+ Integration\" Updated!"
2625
+ #~ msgstr "Option \"Utiliser l'intégration Google+\" mise à jour."
2626
+
2627
+ #~ msgid "Option \"Google+ App ID\" Updated!"
2628
+ #~ msgstr "Option \"Identifiant Google+ App\" mise à jour."
2629
+
2630
+ #~ msgid "Option \"Google+ App Secret\" Updated!"
2631
+ #~ msgstr "Option \"Google+ App Secret\" mise à jour."
2632
+
2633
+ #~ msgid "Option \"View Results\" Updated!"
2634
+ #~ msgstr "Option \"Voir les résultats\" mise à jour."
2635
+
2636
+ #~ msgid "Option \"View Results Custom Date\" Updated!"
2637
+ #~ msgstr "Option \"Voir les résultats par date personnalisées\" mise à jour."
2638
+
2639
+ #~ msgid "Option \"View Results Custom Date\" Not Updated! Field is empty"
2640
+ #~ msgstr ""
2641
+ #~ "Option \"Voir les résultats par date personnalisées\" non mise à jour. Le "
2642
+ #~ "champ est vide."
2643
+
2644
+ #~ msgid "Option \"View Results Permissions\" Updated!"
2645
+ #~ msgstr "Option \"Voir les résultats de permissions\" mise à jour"
2646
+
2647
+ #~ msgid "Option \"View Results Type\" Updated!"
2648
+ #~ msgstr "Option \"Voir les types de résultats\" mise à jour"
2649
+
2650
+ #~ msgid "Option \"Poll Answer Result Label\" Updated!"
2651
+ #~ msgstr "Option \"Étiquette de résultat de réponse du sondage\" mise à jour."
2652
+
2653
+ #~ msgid "Option \"Vote Button Label\" Updated!"
2654
+ #~ msgstr "Option \"Étiquette du bouton de vote\" mise à jour."
2655
+
2656
+ #~ msgid "Option \"View Results Link\" Updated!"
2657
+ #~ msgstr "Option \"Voir le lien des résultats \" mise à jour."
2658
+
2659
+ #~ msgid "Option \"View Results Link Label\" Updated!"
2660
+ #~ msgstr "Option \"Voir l'étiquette du lien de résultats\" mise à jour."
2661
+
2662
+ #~ msgid "Option \"View Back To Vote Link\" Updated!"
2663
+ #~ msgstr "Option \"Voir le lien Retour au vote\" mise à jour."
2664
+
2665
+ #~ msgid "Option \"View Back to Vote Link Label\" Updated!"
2666
+ #~ msgstr "Option \"Voir l'étiquette du lien Retour au vote\" mise à jour."
2667
+
2668
+ #~ msgid "Option \"View Total Votes\" Updated!"
2669
+ #~ msgstr "Option \"Voir total des votes\" mise à jour."
2670
+
2671
+ #~ msgid "Option \"View Total Votes Label\" Updated!"
2672
+ #~ msgstr "Option \"Voir l'étiquette total des votes\" mise à jour."
2673
+
2674
+ #~ msgid "Option \"View Total Answers\" Updated!"
2675
+ #~ msgstr "Option \"Voir le total de réponses\" mise à jour"
2676
+
2677
+ #~ msgid "Option \"View Total Answers Label\" Updated!"
2678
+ #~ msgstr "Option \"View l'étiquette Total de réponses\" mise à jour."
2679
+
2680
+ #~ msgid "Option \"Message After Vote\" Updated!"
2681
+ #~ msgstr "Option \"Message après vote\" mise à jour."
2682
+
2683
+ #~ msgid "Option \"Vote Permissions\" Updated!"
2684
+ #~ msgstr "Option \"Permissions de vote\" mise à jour."
2685
+
2686
+ #~ msgid "Option \"Vote as Facebook User\" Updated!"
2687
+ #~ msgstr "Option \"Voter en tant qu'utilisateur Facebook\" mise à jour."
2688
+
2689
+ #~ msgid "Option \"Vote as Facebook User Buton Label\" Updated!"
2690
+ #~ msgstr ""
2691
+ #~ "Option \"Étiquette du bouton Voter en tant qu'utilisateur Facebook\" mise "
2692
+ #~ "à jour."
2693
+
2694
+ #~ msgid "Option \"Facebook Share after vote\" Updated!"
2695
+ #~ msgstr "Option \"Partage Facebook après le vote\" mise à jour."
2696
+
2697
+ #~ msgid "Option \"Facebook Share Description\" Updated!"
2698
+ #~ msgstr "Option \"Description du partage Facebook\" mise à jour."
2699
+
2700
+ #~ msgid "Option \"Facebook Show comments Widget\" Updated!"
2701
+ #~ msgstr "Option \"Montrer les commentaires Facebook du Widget\" mise à jour."
2702
+
2703
+ #~ msgid "Option \"Vote as Google+ User\" Updated!"
2704
+ #~ msgstr "Option \"Voter en tant qu'utilisateur Google+\" mise à jour."
2705
+
2706
+ #~ msgid "Option \"Vote as Google+ User Buton Label\" Updated!"
2707
+ #~ msgstr ""
2708
+ #~ "Option \"Étiquette du bouton Voter en tant qu'utilisateur Google+\" mise "
2709
+ #~ "à jour."
2710
+
2711
+ #~ msgid "Option \"Show +1 Button after vote\" Updated!"
2712
+ #~ msgstr "Option \"Montrer bouton +1 après le vote\" mise à jour."
2713
+
2714
+ #~ msgid "Option \"Vote as Wordpress User\" Updated!"
2715
+ #~ msgstr "Option \"Voter en tant qu'utilisateur Wordpress\" mise à jour."
2716
+
2717
+ #~ msgid "Option \"Vote as Wordpress User Buton Label\" Updated!"
2718
+ #~ msgstr ""
2719
+ #~ "Option \"Étiquette du bouton Voter en tant qu'utilisateur Wordpress\" "
2720
+ #~ "mise à jour."
2721
+
2722
+ #~ msgid "Option \"Vote as Anonymous User\" Updated!"
2723
+ #~ msgstr "Option \"Voter en tant qu'utilisateur anonyme\" mise à jour."
2724
+
2725
+ #~ msgid "Option \"Vote as Anonymous User Buton Label\" Updated!"
2726
+ #~ msgstr ""
2727
+ #~ "Option \"Étiquette du bouton Voter en tant qu'utilisateur anonyme\" mise "
2728
+ #~ "à jour."
2729
+
2730
+ #~ msgid "Option \"Blocking Voters\" Updated!"
2731
+ #~ msgstr "Option \"Bloquer un sondé\" mise à jour."
2732
+
2733
+ #~ msgid "Option \"Blocking Voters Interval Value\" Updated!"
2734
+ #~ msgstr "Option \"Valeur d'intervalle de blocage de sondés\" mise à jour."
2735
+
2736
+ #~ msgid "Option \"Blocking Voters Interval Unit\" Updated!"
2737
+ #~ msgstr "Option \"Unité d'intervalle de blocage de sondé\" mise à jour."
2738
+
2739
+ #~ msgid "Option \"Limit Number of Votes per User\" Updated!"
2740
+ #~ msgstr "Option \"Nombre limite de vote par utilisateur\" mise à jour."
2741
+
2742
+ #~ msgid "Option \"Number of Votes per User\" Updated!"
2743
+ #~ msgstr "Option \"Nombre de vote par utilisateur\" mise à jour."
2744
+
2745
+ #~ msgid "Option \"Percentages Decimals\" Updated!"
2746
+ #~ msgstr "Option \"Décimales de pourcentage\" mise à jour."
2747
+
2748
+ #~ msgid "Option \"Use Default Loading Image\" Updated!"
2749
+ #~ msgstr "Option \"Utiliser l'image de chargement par défaut\" mise à jour."
2750
+
2751
+ #~ msgid "Option \"Loading Image Url\" Updated!"
2752
+ #~ msgstr "Option \"Chemin de l'image de chargement\" mise à jour."
2753
+
2754
+ #~ msgid "Option \"Redirect After Vote\" Updated!"
2755
+ #~ msgstr "Option \"Rediriger après le vote\" mise à jour."
2756
+
2757
+ #~ msgid "Option \"Redirect After Vote Url\" Updated!"
2758
+ #~ msgstr "Option \"Adresse de redirection après le vote\" mise à jour."
2759
+
2760
+ #~ msgid "Option \"Poll Date Format\" Updated!"
2761
+ #~ msgstr "Option \"Format de date du sondage\" mise à jour."
2762
+
2763
+ #~ msgid "Option \"View Poll Archive Link\" Updated!"
2764
+ #~ msgstr "Option \"Voir le lien des archives de sondages\" mise à jour."
2765
+
2766
+ #~ msgid "Option \"Auto Generate Poll Page\" Updated!"
2767
+ #~ msgstr "Option \"Page de sondage générée automatiquement\" mise à jour."
2768
+
2769
+ #~ msgid "Option \"Use CAPTCHA\" Updated!"
2770
+ #~ msgstr "Option \"Utiliser CAPTCHA\" mise à jour."
2771
+
2772
+ #~ msgid "Option \"Send Email Notifications\" Updated!"
2773
+ #~ msgstr "Option \"Envoyer une notification par courriel\" mise à jour."
2774
+
2775
+ #~ msgid "Option \"Allow Other Answer\" Updated!"
2776
+ #~ msgstr "Option \"Permettre d'autres réponses\" mise à jour."
2777
+
2778
+ #~ msgid "Option \"Other Answer Label\" Updated!"
2779
+ #~ msgstr "Option \"Étiquette d'une autre réponse\" mise à jour."
2780
+
2781
+ #~ msgid "Option \"Make 'Other answer' default answer\" Updated!"
2782
+ #~ msgstr ""
2783
+ #~ "Option \"Mettre 'Autre réponse' comme réponse par défaut\" mise à jour."
2784
+
2785
+ #~ msgid "Option \"Add the values submitted in 'Other' as answers\" Updated!"
2786
+ #~ msgstr ""
2787
+ #~ "Option \"Ajouter des valeurs soumises dans 'Autre' comme réponses\" mise "
2788
+ #~ "à jour."
2789
+
2790
+ #~ msgid "Option \"Display Other Answers Values\" Updated!"
2791
+ #~ msgstr "Option \"Afficher d'autres valeurs de réponses\" mise à jour."
2792
+
2793
+ #~ msgid "Option \"Allow Multiple Answers\" Updated!"
2794
+ #~ msgstr "Option \"Permettre des réponses multiples\" mise à jour."
2795
+
2796
+ #~ msgid "Option \"Max Number of allowed answers\" Updated!"
2797
+ #~ msgstr "Option \"Nombre maximum de réponses permises\" mise à jour."
2798
+
2799
+ #~ msgid "Option \"Min Number of allowed answers\" Updated!"
2800
+ #~ msgstr "Option \"Nombre minimum de réponse permise\" mise à jour."
2801
+
2802
+ #~ msgid "Option \"Display Answers\" Updated!"
2803
+ #~ msgstr "Option \"Afficher les réponses\" mise à jour."
2804
+
2805
+ #~ msgid "Option \"Columns for Tabulated Display Answers\" Updated!"
2806
+ #~ msgstr "Option \"Colonnes pour affiches de tableaux réponses\" mise à jour."
2807
+
2808
+ #~ msgid "Option \"Sort Results\" Updated!"
2809
+ #~ msgstr "Option \"Trier les résultats\" mise à jour."
2810
+
2811
+ #~ msgid "Option \"Sort Results Direction\" Updated!"
2812
+ #~ msgstr "Option \"Direction du tri des résultats\" mise à jour."
2813
+
2814
+ #~ msgid "Option \"Poll Answer Result Votes Number Singular Label\" Updated!"
2815
+ #~ msgstr ""
2816
+ #~ "Option \"Étiquette résultat des réponses du sondage par de nombre de vote "
2817
+ #~ "unique\" mise à jour."
2818
+
2819
+ #~ msgid "Option \"Poll Answer Result Votes Number Plural Label\" Updated!"
2820
+ #~ msgstr ""
2821
+ #~ "Option \"Étiquette résultat des réponses du sondage par de nombre de vote "
2822
+ #~ "multiple\" mise à jour."
2823
+
2824
+ #~ msgid "Option \"Display Results\" Updated!"
2825
+ #~ msgstr "Option \"Afficher les résultats\" mise à jour."
2826
+
2827
+ #~ msgid "Option \"Columns for Tabulated Display Results\" Updated!"
2828
+ #~ msgstr ""
2829
+ #~ "Option \"Colonnes pour affichage de résultats tabulés\" mise à jour."
2830
+
2831
+ #~ msgid "Option \"Result Bar Background Color\" Updated!"
2832
+ #~ msgstr "Option \"Couleur de fond de la barre de résultats\" mise à jour."
2833
+
2834
+ #~ msgid "Option \"Result Bar Height\" Updated!"
2835
+ #~ msgstr "Option \"Hauteur de la barre de résultats\" mise à jour."
2836
+
2837
+ #~ msgid "Option \"Result Bar Border Color\" Updated!"
2838
+ #~ msgstr "Option \"Couleur de bordure de la barre de résultats\" mise à jour."
2839
+
2840
+ #~ msgid "Option \"Result Bar Border Width\" Updated!"
2841
+ #~ msgstr "Option \"Largeur de la barre de résultats\" mise à jour."
2842
+
2843
+ #~ msgid "Option \"Result Bar Border Style\" Updated!"
2844
+ #~ msgstr "Option \"Style de bordure de la barre de résultats\" mise à jour."
2845
+
2846
+ #~ msgid "Option \"Sort Archive Polls!\" Updated"
2847
+ #~ msgstr "Option \"Trier l'archive des sondages\" mise à jour."
2848
+
2849
+ #~ msgid "Option \"Sort Archive Polls Rule!\" Updated"
2850
+ #~ msgstr "Option \"Trier les règles d'archivage des sondages\" mise à jour."
2851
+
2852
+ #~ msgid "Option \"Archive Page\" Updated!"
2853
+ #~ msgstr "Option \"Page d'archive \" mise à jour."
2854
+
2855
+ #~ msgid "Option \"Poll Archive Link Label\" Updated!"
2856
+ #~ msgstr "Option \"Lien d'étiquette d'archive de sondage\" mise à jour."
2857
+
2858
+ #~ msgid "Option \"Polls Per Page\" Updated"
2859
+ #~ msgstr "Option \"Sondages par page\" mise à jour."
2860
+
2861
+ #~ msgid "Option \"Notifications From Name\" Updated!"
2862
+ #~ msgstr "Option \"Notifications par nom\" mise à jour."
2863
+
2864
+ #~ msgid "Option \"Notifications From Email\" Updated!"
2865
+ #~ msgstr "Option \"Notifications par courriel\" mise à jour."
2866
+
2867
+ #~ msgid "Option \"Email Notifications Recipients\" Updated!"
2868
+ #~ msgstr ""
2869
+ #~ "Option \"Courriel du destinataire pour les notifications\" mise à jour."
2870
+
2871
+ #~ msgid "Option \"Email Notifications Subject\" Updated!"
2872
+ #~ msgstr "Option \"Sujet ddes courriels de notifications\" mise à jour."
2873
+
2874
+ #~ msgid "Option \"Email Notifications Body\" Updated!"
2875
+ #~ msgstr "Option \"Corps du courriel de notifications\" mise à jour."
2876
+
2877
+ #~ msgid "if \"yes\", answer will be autoselected when poll is displayed"
2878
+ #~ msgstr ""
2879
+ #~ "si \"oui\", cette réponse sera automatiquement sélectionnée lorsque le "
2880
+ #~ "sondage sera affiché"
2881
+
2882
+ #~ msgid "Vote details"
2883
+ #~ msgstr "Détails du vote"
2884
+
2885
+ #~ msgid "Vote date"
2886
+ #~ msgstr "Date du vote"
2887
+
2888
+ #~ msgid "Invalid Response From Api Server!"
2889
+ #~ msgstr "Réponse invalide du serveur API"
2890
+
2891
+ #~ msgid "Do NOT Display Poll (Disable)"
2892
+ #~ msgstr "Ne PAS afficher le sondage (Désactiver)"
2893
+
2894
+ #~ msgid "Reload"
2895
+ #~ msgstr "Recharger"
2896
+
2897
+ #~ msgid "Other answer for question "
2898
+ #~ msgstr "Autre réponse à la question"
2899
+
2900
+ #~ msgid " could not be inserted!"
2901
+ #~ msgstr " ne pouvait pas être inséré!"
2902
+
2903
+ #~ msgid " is empty"
2904
+ #~ msgstr "est vide"
2905
+
2906
+ #~ msgid "Too few answers selected for question "
2907
+ #~ msgstr "Trop peu de réponses sélectionnés pour la question"
2908
+
2909
+ #~ msgid "! Only more than "
2910
+ #~ msgstr "! Seulement plus"
2911
+
2912
+ #~ msgid " answers allowed!"
2913
+ #~ msgstr "réponses permises!"
2914
+
2915
+ #~ msgid "Too many answers selected for question "
2916
+ #~ msgstr "Trop de réponses sélectionnés pour la question"
2917
+
2918
+ #~ msgid "! Only "
2919
+ #~ msgstr "! Seulement"
2920
+
2921
+ #~ msgid "Custom field "
2922
+ #~ msgstr "Champ personnalisé"
2923
+
2924
+ #~ msgid " from question "
2925
+ #~ msgstr " de la question"
2926
+
2927
+ #~ msgid "Custom fields from question "
2928
+ #~ msgstr "Les champs personnalisés de question"
2929
+
2930
+ #~ msgid "No answer selected for question "
2931
+ #~ msgstr "Aucune réponse sélectionnée pour la question"
languages/yop_poll-fr_FR.pot ADDED
@@ -0,0 +1,2931 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: YOP\n"
4
+ "POT-Creation-Date: 2015-04-07 13:41+0200\n"
5
+ "PO-Revision-Date: 2015-04-07 13:42+0200\n"
6
+ "Last-Translator: Marius <marius_0156@yahoo.com>\n"
7
+ "Language-Team: YOP <YOP>\n"
8
+ "Language: fr\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Generator: Poedit 1.7.4\n"
13
+ "X-Poedit-Basepath: .\n"
14
+ "Plural-Forms: nplurals=2; plural=(n > 1);\n"
15
+ "X-Poedit-SourceCharset: UTF-8\n"
16
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;"
17
+ "_n_noop:1,2;_c;_nc:4c,1,2;_x:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;_ex:1,2c;"
18
+ "esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;"
19
+ "__yop_poll;gettext\n"
20
+ "X-Poedit-SearchPath-0: .\n"
21
+
22
+ #: inc/admin.php:183
23
+ msgid "Help"
24
+ msgstr "Au Secours"
25
+
26
+ #: inc/admin.php:195
27
+ msgid "Upgrade to Pro"
28
+ msgstr "Passer à Pro"
29
+
30
+ #: inc/admin.php:404 templates/polls_view.html:37
31
+ msgid "Need Help?"
32
+ msgstr "Besoin D'Aide?"
33
+
34
+ #: inc/admin.php:404
35
+ msgid "Download<br /> YOP Poll User Guide"
36
+ msgstr "Télécharger <br /> YOP Sondage Guide de l'utilisateur"
37
+
38
+ #: inc/admin.php:481
39
+ msgid "Time"
40
+ msgstr "Du Temps"
41
+
42
+ #: inc/admin.php:482
43
+ msgid "Hour"
44
+ msgstr "Heure"
45
+
46
+ #: inc/admin.php:483
47
+ msgid "Minute"
48
+ msgstr "Minute"
49
+
50
+ #: inc/admin.php:484
51
+ msgid "Second"
52
+ msgstr "Deuxième"
53
+
54
+ #: inc/admin.php:485
55
+ msgid "Now"
56
+ msgstr "Maintenant"
57
+
58
+ #: inc/admin.php:486
59
+ msgid "Done"
60
+ msgstr "Fini"
61
+
62
+ #: inc/admin.php:881
63
+ msgid "Please log in to cast your vote"
64
+ msgstr "S'il vous plaît vous connecter pour voter"
65
+
66
+ #: inc/bans_admin.php:68
67
+ msgid "Poll Bans"
68
+ msgstr "Sondage interdit"
69
+
70
+ #: inc/import_admin.php:486 inc/import_admin.php:759
71
+ msgid "Import Polls from Wp-Poll"
72
+ msgstr "Importer un sondage à partir de Wp-Poll"
73
+
74
+ #: inc/logs_admin.php:62 inc/logs_admin.php:198
75
+ msgid "Logs"
76
+ msgstr "Logs"
77
+
78
+ #: inc/logs_admin.php:163 inc/poll_admin.php:700 inc/poll_admin.php:784
79
+ #: inc/poll_admin.php:2322
80
+ msgid "Can't open php://output!"
81
+ msgstr "Impossible d'ouvrir php://output!"
82
+
83
+ #: inc/logs_admin.php:165 inc/logs_admin.php:171 inc/poll_admin.php:704
84
+ #: inc/poll_admin.php:788 inc/poll_admin.php:2330 inc/poll_admin.php:2377
85
+ #: inc/poll_admin.php:2422
86
+ msgid "Can't write header!"
87
+ msgstr "Impossible d'écrire l'entête."
88
+
89
+ #: inc/logs_admin.php:176 inc/poll_admin.php:736 inc/poll_admin.php:813
90
+ #: inc/poll_admin.php:2429
91
+ msgid "Can't close php://output!"
92
+ msgstr "Impossible de fermer php://output!"
93
+
94
+ #: inc/maintenance.php:323 inc/plugin-functions.php:297
95
+ #: inc/plugin-functions.php:430
96
+ msgid "vote"
97
+ msgstr "vote"
98
+
99
+ #: inc/maintenance.php:324 inc/plugin-functions.php:299
100
+ #: inc/plugin-functions.php:432
101
+ msgid "votes"
102
+ msgstr "votes"
103
+
104
+ #: inc/options_admin.php:50 inc/poll_admin.php:158
105
+ msgid "Next"
106
+ msgstr "Suivant"
107
+
108
+ #: inc/options_admin.php:51 inc/poll_admin.php:159
109
+ msgid "Previous"
110
+ msgstr "Précédent"
111
+
112
+ #: inc/options_admin.php:53 inc/poll_admin.php:161
113
+ msgid "Please fill in empty answers from Question"
114
+ msgstr "Se il vous plaît remplir dans les réponses vides de Question"
115
+
116
+ #: inc/options_admin.php:86
117
+ msgid "General Options"
118
+ msgstr "Options générales."
119
+
120
+ #: inc/poll_admin.php:521 inc/poll_admin.php:1629 inc/poll_admin.php:2937
121
+ #: templates/options_general.html:42 templates/polls_view.html:300
122
+ msgid "Results"
123
+ msgstr "Résultats"
124
+
125
+ #: inc/poll_admin.php:638
126
+ msgid "View Votes"
127
+ msgstr "Voir Votes"
128
+
129
+ #: inc/poll_admin.php:717 inc/poll_admin.php:728 inc/poll_admin.php:808
130
+ msgid "Can't write record!"
131
+ msgstr "Impossible d'écrire un rapport"
132
+
133
+ #: inc/poll_admin.php:825
134
+ msgid "Add New Poll"
135
+ msgstr "Ajouter un nouveau sondage"
136
+
137
+ #: inc/pro_admin.php:21
138
+ msgid "Help!"
139
+ msgstr "Aidez-Moi!"
140
+
141
+ #: inc/pro_admin.php:45
142
+ msgid "Before You Buy"
143
+ msgstr "Avant que vous achetiez"
144
+
145
+ #: inc/pro_admin.php:198
146
+ msgid "here"
147
+ msgstr "ici"
148
+
149
+ #: inc/pro_admin.php:202
150
+ msgid ""
151
+ "There was an error while determining your domain name. Please try again "
152
+ "later or contact support team if problem persists!"
153
+ msgstr ""
154
+ "Il y a eu une erreur lors de la détermination de votre nom de domaine. S'il "
155
+ "vous plaît essayer à nouveau plus tard, ou l'équipe de support de contact si "
156
+ "le problème persiste!"
157
+
158
+ #: inc/pro_admin.php:212
159
+ msgid "Finish Upgrade"
160
+ msgstr "Mise à jour terminée."
161
+
162
+ #: inc/templates_admin.php:122 inc/templates_admin.php:196
163
+ msgid "Templates"
164
+ msgstr "Modèles"
165
+
166
+ #: inc/templates_admin.php:197
167
+ msgid "Add New Poll Template"
168
+ msgstr "Ajouter un nouveau modèle de sondage"
169
+
170
+ #: yop_poll.php:167
171
+ msgid ""
172
+ "Php version isn't high enough! Yop Poll will be automatically downgraded!"
173
+ "Please upgrade your Php version!"
174
+ msgstr ""
175
+ "Version de PHP est pas assez élevé! Yop sondage sera automatiquement "
176
+ "déclassé! Se il vous plaît mettre à jour votre version de PHP!"
177
+
178
+ #: templates/bans_bans.html:9 templates/polls_view.html:4
179
+ #: templates/templates_templates.html:5
180
+ #: templates/templates_templates_add_edit.html:4
181
+ msgid "Add New"
182
+ msgstr "Ajouter un sondage"
183
+
184
+ #: templates/bans_bans.html:37 templates/polls_pop_up_ban.html:6
185
+ msgid "Ban IP, Username or Email"
186
+ msgstr "IP, utilisateur ou courriel interdit"
187
+
188
+ #: templates/bans_bans.html:55 templates/options_general.html:38
189
+ #: templates/polls_pop_up_ban.html:15 templates/polls_results_votes.html:193
190
+ msgid "Poll"
191
+ msgstr "Sondage"
192
+
193
+ #: templates/bans_bans.html:63 templates/polls_pop_up_ban.html:19
194
+ msgid "Bans For All Polls"
195
+ msgstr "Interdits pour tous les sondages"
196
+
197
+ #: templates/bans_bans.html:85 templates/polls_pop_up_ban.html:30
198
+ #: templates/polls_results_votes.html:205
199
+ msgid "Type"
200
+ msgstr "Type"
201
+
202
+ #: templates/bans_bans.html:91 templates/polls_pop_up_ban.html:33
203
+ #: templates/polls_results_votes.html:211
204
+ msgid "Choose Ban Type"
205
+ msgstr "Choisir le type d'interdiction"
206
+
207
+ #: templates/bans_bans.html:93 templates/logs_logs.html:145
208
+ #: templates/logs_logs.html:213 templates/polls_pop_up_ban.html:34
209
+ #: templates/polls_results_votes.html:213
210
+ #: templates/polls_results_votes.html:825
211
+ #: templates/polls_results_votes.html:921
212
+ msgid "Ip"
213
+ msgstr "Ip"
214
+
215
+ #: templates/bans_bans.html:95 templates/bans_bans.html:259
216
+ #: templates/polls_pop_up_ban.html:35
217
+ msgid "Username"
218
+ msgstr "Nom d'utilisateur"
219
+
220
+ #: templates/bans_bans.html:97 templates/bans_bans.html:261
221
+ #: templates/polls_pop_up_ban.html:36
222
+ msgid "Email"
223
+ msgstr "Courriel"
224
+
225
+ #: templates/bans_bans.html:107 templates/polls_results_votes.html:225
226
+ msgid "Period&Unit"
227
+ msgstr "Période & Unité"
228
+
229
+ #: templates/bans_bans.html:117 templates/polls_pop_up_ban.html:50
230
+ #: templates/polls_results_votes.html:234
231
+ msgid "Choose Unit"
232
+ msgstr "Choisir l'unité"
233
+
234
+ #: templates/bans_bans.html:119 templates/polls_pop_up_ban.html:51
235
+ #: templates/polls_results_votes.html:236
236
+ msgid "Hours"
237
+ msgstr "Heures"
238
+
239
+ #: templates/bans_bans.html:121 templates/polls_pop_up_ban.html:52
240
+ #: templates/polls_results_votes.html:238
241
+ msgid "Days"
242
+ msgstr "Jours"
243
+
244
+ #: templates/bans_bans.html:123 templates/polls_pop_up_ban.html:53
245
+ #: templates/polls_results_votes.html:240
246
+ msgid "Weeks"
247
+ msgstr "Semaines"
248
+
249
+ #: templates/bans_bans.html:125 templates/polls_pop_up_ban.html:54
250
+ #: templates/polls_results_votes.html:242
251
+ msgid "Months"
252
+ msgstr "Mois"
253
+
254
+ #: templates/bans_bans.html:137 templates/polls_pop_up_ban.html:59
255
+ #: templates/polls_results_print.html:81
256
+ #: templates/polls_results_votes.html:256
257
+ #: templates/polls_results_votes.html:511
258
+ msgid "Value"
259
+ msgstr "Valeur"
260
+
261
+ #: templates/bans_bans.html:141 templates/polls_pop_up_ban.html:61
262
+ #: templates/polls_results_votes.html:260
263
+ msgid "One Value Per Line"
264
+ msgstr "Une valeur par ligne"
265
+
266
+ #: templates/bans_bans.html:189
267
+ msgid "Search Poll Bans"
268
+ msgstr "Recherche de sondage interdit"
269
+
270
+ #: templates/bans_bans.html:209 templates/imports_imports.html:39
271
+ #: templates/logs_logs.html:31 templates/polls_results_votes.html:693
272
+ #: templates/polls_view.html:113
273
+ msgid "Bulk Actions"
274
+ msgstr "Actions globales"
275
+
276
+ #: templates/bans_bans.html:211 templates/bans_bans.html:452
277
+ #: templates/logs_logs.html:33 templates/logs_logs.html:35
278
+ #: templates/logs_logs.html:256 templates/polls_answer_template.html:21
279
+ #: templates/polls_results_votes.html:695
280
+ #: templates/polls_results_votes.html:1000 templates/polls_view.html:115
281
+ #: templates/polls_view.html:294 templates/templates_templates.html:210
282
+ msgid "Delete"
283
+ msgstr "Effacer"
284
+
285
+ #: templates/bans_bans.html:227
286
+ msgid "All Polls"
287
+ msgstr "Tous les sondages"
288
+
289
+ #: templates/bans_bans.html:255
290
+ msgid "All Ban Types"
291
+ msgstr "Tous les types d'interdictions"
292
+
293
+ #: templates/bans_bans.html:257 templates/polls_results_votes.html:425
294
+ #: templates/polls_results_votes.html:669
295
+ msgid "IP"
296
+ msgstr "IP"
297
+
298
+ #: templates/bans_bans.html:264 templates/logs_logs.html:60
299
+ #: templates/polls_results.html:35 templates/polls_results_votes.html:311
300
+ #: templates/polls_view.html:144
301
+ msgid "Filter"
302
+ msgstr "Filtre"
303
+
304
+ #: templates/bans_bans.html:275 templates/imports_imports.html:49
305
+ #: templates/polls_results_print.html:124
306
+ #: templates/polls_results_votes.html:548
307
+ #: templates/polls_results_votes.html:743 templates/polls_view.html:151
308
+ msgid "Items Per Page"
309
+ msgstr "Items par page"
310
+
311
+ #: templates/bans_bans.html:287 templates/bans_bans.html:528
312
+ msgid "Bans"
313
+ msgstr "Interdictions"
314
+
315
+ #: templates/bans_bans.html:320
316
+ msgid "ID"
317
+ msgstr "ID"
318
+
319
+ #: templates/bans_bans.html:334
320
+ msgid "Poll Name"
321
+ msgstr "Nom de sondage"
322
+
323
+ #: templates/bans_bans.html:348
324
+ msgid "Ban Type"
325
+ msgstr "Type d'interdiction"
326
+
327
+ #: templates/bans_bans.html:364
328
+ msgid "Ban value"
329
+ msgstr "Valeur d'interdiction"
330
+
331
+ #: templates/bans_bans.html:382 templates/polls_pop_up_ban.html:41
332
+ msgid "Period"
333
+ msgstr "Période"
334
+
335
+ #: templates/bans_bans.html:402 templates/polls_pop_up_ban.html:47
336
+ msgid "Unit"
337
+ msgstr "Unité"
338
+
339
+ #: templates/bans_bans.html:472 templates/polls_view.html:277
340
+ #: templates/templates_templates.html:203
341
+ msgid "Edit"
342
+ msgstr "Éditer"
343
+
344
+ #: templates/imports_imports.html:24 templates/imports_imports.html:28
345
+ msgid "Search WP-Polls"
346
+ msgstr "Recherche WP-Polls"
347
+
348
+ #: templates/imports_imports.html:40 templates/imports_imports.html:116
349
+ msgid "Import"
350
+ msgstr "Importer"
351
+
352
+ #: templates/imports_imports.html:55
353
+ msgid "Wp-Polls"
354
+ msgstr "WP-Polls"
355
+
356
+ #: templates/imports_imports.html:71 templates/polls_view.html:179
357
+ #: templates/polls_view.html:383
358
+ msgid "Title"
359
+ msgstr "Titre"
360
+
361
+ #: templates/imports_imports.html:78 templates/polls_view.html:191
362
+ #: templates/polls_view.html:395
363
+ msgid "Total Votes"
364
+ msgstr "Total de votes"
365
+
366
+ #: templates/imports_imports.html:85 templates/logs_logs.html:51
367
+ #: templates/options_poll_options.html:18 templates/polls_add_edit.html:135
368
+ #: templates/polls_add_edit_options.html:17 templates/polls_view.html:205
369
+ #: templates/polls_view.html:409
370
+ msgid "Start Date"
371
+ msgstr "Date de début"
372
+
373
+ #: templates/imports_imports.html:92 templates/options_poll_options.html:26
374
+ #: templates/polls_add_edit.html:143 templates/polls_add_edit_options.html:25
375
+ #: templates/polls_view.html:217 templates/polls_view.html:421
376
+ msgid "End Date"
377
+ msgstr "Date de fin"
378
+
379
+ #: templates/imports_imports.html:143
380
+ msgid "Wp-polls"
381
+ msgstr "Wp-polls"
382
+
383
+ #: templates/logs_logs.html:20
384
+ msgid "Search Poll Logs"
385
+ msgstr "Rechercher registre de sondage"
386
+
387
+ #: templates/logs_logs.html:43
388
+ msgid "All Logs"
389
+ msgstr "Tous les registres"
390
+
391
+ #: templates/logs_logs.html:67 templates/logs_logs.html:72
392
+ #: templates/polls_results_print.html:141
393
+ #: templates/polls_results_votes.html:565
394
+ #: templates/polls_results_votes.html:713
395
+ msgid "This Page"
396
+ msgstr "Cette page"
397
+
398
+ #: templates/logs_logs.html:68 templates/polls_results_print.html:142
399
+ #: templates/polls_results_votes.html:566
400
+ msgid "All Pages"
401
+ msgstr "Toutes les pages"
402
+
403
+ #: templates/logs_logs.html:89
404
+ msgid "logs"
405
+ msgstr "logs"
406
+
407
+ #: templates/logs_logs.html:106 templates/logs_logs.html:176
408
+ #: templates/polls_results_print.html:161
409
+ #: templates/polls_results_votes.html:585
410
+ #: templates/polls_results_votes.html:663
411
+ #: templates/polls_results_votes.html:785
412
+ msgid "Vote ID"
413
+ msgstr "Identifiant du vote"
414
+
415
+ #: templates/logs_logs.html:114 templates/logs_logs.html:182
416
+ msgid "Poll Title"
417
+ msgstr "Titre du sondage"
418
+
419
+ #: templates/logs_logs.html:124 templates/logs_logs.html:192
420
+ #: templates/polls_results_votes.html:665
421
+ #: templates/polls_results_votes.html:801
422
+ #: templates/polls_results_votes.html:897
423
+ msgid "User Type"
424
+ msgstr "Type d'utilisateur"
425
+
426
+ #: templates/logs_logs.html:155 templates/logs_logs.html:219
427
+ #: templates/polls_results_print.html:165
428
+ #: templates/polls_results_votes.html:432
429
+ #: templates/polls_results_votes.html:589
430
+ #: templates/polls_results_votes.html:671
431
+ #: templates/polls_results_votes.html:845
432
+ #: templates/polls_results_votes.html:943
433
+ msgid "Vote Date"
434
+ msgstr "Date du vote"
435
+
436
+ #: templates/logs_logs.html:162 templates/logs_logs.html:227
437
+ msgid "Message"
438
+ msgstr "Message"
439
+
440
+ #: templates/logs_logs.html:187
441
+ msgid "Vote Details"
442
+ msgstr "Détails du vote"
443
+
444
+ #: templates/logs_logs.html:197
445
+ msgid "User"
446
+ msgstr "Utilisateur"
447
+
448
+ #: templates/logs_logs.html:202
449
+ msgid "User Email"
450
+ msgstr "Courriel d'utilisateur"
451
+
452
+ #: templates/logs_logs.html:208 templates/polls_results_print.html:163
453
+ #: templates/polls_results_votes.html:418
454
+ #: templates/polls_results_votes.html:587
455
+ #: templates/polls_results_votes.html:667
456
+ msgid "Tracking ID"
457
+ msgstr "Numéro de suivi"
458
+
459
+ #: templates/options_general.html:19 templates/polls_add_edit-bk.html:45
460
+ #: templates/polls_add_edit.html:32 templates/polls_add_edit_advanced.html:45
461
+ #: templates/templates_templates_add_edit.html:122
462
+ msgid "Save"
463
+ msgstr "Enregistrer"
464
+
465
+ #: templates/options_general.html:24
466
+ msgid "Save Changes"
467
+ msgstr "Enregistrer les modifications"
468
+
469
+ #: templates/options_general.html:40 templates/polls_add_edit.html:52
470
+ #: templates/polls_add_edit_advanced.html:65
471
+ #: templates/polls_results_print.html:466
472
+ #: templates/polls_results_print.html:483
473
+ #: templates/polls_results_votes.html:376
474
+ #: templates/polls_results_votes.html:1064
475
+ msgid "Questions"
476
+ msgstr "Les Questions"
477
+
478
+ #: templates/options_general.html:44
479
+ msgid "Archive"
480
+ msgstr "Archives"
481
+
482
+ #: templates/options_general.html:46
483
+ msgid "Notifications"
484
+ msgstr "Notifications"
485
+
486
+ #: templates/options_general.html:47
487
+ msgid "Media"
488
+ msgstr "Média"
489
+
490
+ #: templates/options_general.html:73
491
+ msgid "Questions Options"
492
+ msgstr "Options de questions"
493
+
494
+ #: templates/options_general.html:79
495
+ #: templates/polls_question_template.html:103
496
+ msgid "Allow other answers"
497
+ msgstr "Toutes les autres réponses"
498
+
499
+ #: templates/options_general.html:81 templates/options_general.html:98
500
+ #: templates/options_general.html:105 templates/options_general.html:115
501
+ #: templates/options_general.html:122 templates/options_general.html:423
502
+ #: templates/options_general.html:442 templates/options_poll_options.html:89
503
+ #: templates/options_poll_options.html:102
504
+ #: templates/options_poll_options.html:115
505
+ #: templates/options_poll_options.html:129
506
+ #: templates/options_poll_options.html:158
507
+ #: templates/options_poll_options.html:172
508
+ #: templates/options_poll_options.html:179
509
+ #: templates/options_poll_options.html:195
510
+ #: templates/options_poll_options.html:209
511
+ #: templates/options_poll_options.html:219
512
+ #: templates/options_poll_options.html:236
513
+ #: templates/options_poll_options.html:273
514
+ #: templates/options_poll_options.html:292
515
+ #: templates/options_poll_options.html:312
516
+ #: templates/options_poll_options.html:326
517
+ #: templates/options_poll_options.html:333
518
+ #: templates/options_poll_options.html:340
519
+ #: templates/options_poll_options.html:347
520
+ #: templates/options_poll_options.html:355 templates/polls_add_edit.html:201
521
+ #: templates/polls_add_edit.html:214 templates/polls_add_edit.html:227
522
+ #: templates/polls_add_edit.html:241 templates/polls_add_edit.html:284
523
+ #: templates/polls_add_edit.html:299 templates/polls_add_edit.html:333
524
+ #: templates/polls_add_edit.html:352 templates/polls_add_edit.html:365
525
+ #: templates/polls_add_edit.html:378 templates/polls_add_edit.html:385
526
+ #: templates/polls_add_edit.html:392 templates/polls_add_edit.html:399
527
+ #: templates/polls_add_edit.html:406 templates/polls_add_edit_options.html:83
528
+ #: templates/polls_add_edit_options.html:90
529
+ #: templates/polls_add_edit_options.html:97
530
+ #: templates/polls_add_edit_options.html:104
531
+ #: templates/polls_add_edit_options.html:118
532
+ #: templates/polls_add_edit_options.html:126
533
+ #: templates/polls_add_edit_options.html:134
534
+ #: templates/polls_add_edit_options.html:150
535
+ #: templates/polls_add_edit_options.html:187
536
+ #: templates/polls_add_edit_options.html:202
537
+ #: templates/polls_add_edit_options.html:216
538
+ #: templates/polls_add_edit_options.html:242
539
+ #: templates/polls_add_edit_options.html:250
540
+ #: templates/polls_add_edit_options.html:265
541
+ #: templates/polls_add_edit_options.html:272
542
+ #: templates/polls_add_edit_options.html:294
543
+ #: templates/polls_question_template.html:105
544
+ #: templates/polls_question_template.html:122
545
+ #: templates/polls_question_template.html:129
546
+ #: templates/polls_question_template.html:136
547
+ msgid "Yes"
548
+ msgstr "Oui"
549
+
550
+ #: templates/options_general.html:82 templates/options_general.html:99
551
+ #: templates/options_general.html:106 templates/options_general.html:116
552
+ #: templates/options_general.html:123 templates/options_general.html:424
553
+ #: templates/options_general.html:443 templates/options_poll_options.html:90
554
+ #: templates/options_poll_options.html:103
555
+ #: templates/options_poll_options.html:116
556
+ #: templates/options_poll_options.html:130
557
+ #: templates/options_poll_options.html:159
558
+ #: templates/options_poll_options.html:173
559
+ #: templates/options_poll_options.html:180
560
+ #: templates/options_poll_options.html:196
561
+ #: templates/options_poll_options.html:210
562
+ #: templates/options_poll_options.html:220
563
+ #: templates/options_poll_options.html:237
564
+ #: templates/options_poll_options.html:274
565
+ #: templates/options_poll_options.html:293
566
+ #: templates/options_poll_options.html:313
567
+ #: templates/options_poll_options.html:327
568
+ #: templates/options_poll_options.html:334
569
+ #: templates/options_poll_options.html:341
570
+ #: templates/options_poll_options.html:348
571
+ #: templates/options_poll_options.html:356 templates/polls_add_edit.html:202
572
+ #: templates/polls_add_edit.html:215 templates/polls_add_edit.html:228
573
+ #: templates/polls_add_edit.html:242 templates/polls_add_edit.html:285
574
+ #: templates/polls_add_edit.html:300 templates/polls_add_edit.html:334
575
+ #: templates/polls_add_edit.html:353 templates/polls_add_edit.html:366
576
+ #: templates/polls_add_edit.html:379 templates/polls_add_edit.html:386
577
+ #: templates/polls_add_edit.html:393 templates/polls_add_edit.html:400
578
+ #: templates/polls_add_edit.html:407 templates/polls_add_edit_options.html:84
579
+ #: templates/polls_add_edit_options.html:91
580
+ #: templates/polls_add_edit_options.html:98
581
+ #: templates/polls_add_edit_options.html:105
582
+ #: templates/polls_add_edit_options.html:119
583
+ #: templates/polls_add_edit_options.html:127
584
+ #: templates/polls_add_edit_options.html:135
585
+ #: templates/polls_add_edit_options.html:151
586
+ #: templates/polls_add_edit_options.html:188
587
+ #: templates/polls_add_edit_options.html:203
588
+ #: templates/polls_add_edit_options.html:217
589
+ #: templates/polls_add_edit_options.html:243
590
+ #: templates/polls_add_edit_options.html:251
591
+ #: templates/polls_add_edit_options.html:266
592
+ #: templates/polls_add_edit_options.html:273
593
+ #: templates/polls_add_edit_options.html:295
594
+ #: templates/polls_question_template.html:106
595
+ #: templates/polls_question_template.html:123
596
+ #: templates/polls_question_template.html:130
597
+ #: templates/polls_question_template.html:137
598
+ msgid "No"
599
+ msgstr "Non"
600
+
601
+ #: templates/options_general.html:86
602
+ #: templates/polls_question_template.html:110
603
+ msgid "Other answer label"
604
+ msgstr "Autres étiquette de réponse"
605
+
606
+ #: templates/options_general.html:94
607
+ msgid "Add the values submitted in 'Other' as answers"
608
+ msgstr "Ajouter les valeurs soumises dans «Autre» comme réponses"
609
+
610
+ #: templates/options_general.html:95
611
+ msgid ""
612
+ "all the values submitted in this field by your users will be automatically "
613
+ "added as an available 'Answer' "
614
+ msgstr ""
615
+ "Toutes les valeurs présentées dans ce domaine par vos utilisateurs seront "
616
+ "automatiquement ajoutés comme une «réponse» disponibles"
617
+
618
+ #: templates/options_general.html:103
619
+ #: templates/polls_question_template.html:127
620
+ msgid "Display Other Answers Values"
621
+ msgstr "Afficher d'autres valeurs de réponses"
622
+
623
+ #: templates/options_general.html:110
624
+ msgid "Make 'Other answer' default answer"
625
+ msgstr "Mettre 'Autres réponses' par défaut"
626
+
627
+ #: templates/options_general.html:111
628
+ msgid " 'Other Answer' will be autoselected"
629
+ msgstr "\"Autre réponse\" sera sélectionné automatiquement"
630
+
631
+ #: templates/options_general.html:120
632
+ #: templates/polls_question_template.html:134
633
+ msgid "Allow Multiple Answers"
634
+ msgstr "Autoriser plusieurs réponses"
635
+
636
+ #: templates/options_general.html:127
637
+ #: templates/polls_question_template.html:141
638
+ msgid "Maximum Number of allowed answers"
639
+ msgstr "Nombre maximal de réponses permises"
640
+
641
+ #: templates/options_general.html:133
642
+ #: templates/polls_question_template.html:147
643
+ msgid "Minimum Number of allowed answers"
644
+ msgstr "Nombre minimum de réponses permises"
645
+
646
+ #: templates/options_general.html:139
647
+ #: templates/polls_question_template.html:153
648
+ msgid "Display Answers"
649
+ msgstr "Afficher les réponses"
650
+
651
+ #: templates/options_general.html:141 templates/options_general.html:215
652
+ #: templates/polls_add_edit.html:459
653
+ #: templates/polls_question_template.html:155
654
+ #: templates/polls_question_template.html:169
655
+ msgid "Vertical"
656
+ msgstr "Vertical"
657
+
658
+ #: templates/options_general.html:142 templates/options_general.html:216
659
+ #: templates/polls_add_edit.html:460
660
+ #: templates/polls_question_template.html:156
661
+ #: templates/polls_question_template.html:170
662
+ msgid "Horizontal"
663
+ msgstr "Horizontal"
664
+
665
+ #: templates/options_general.html:143 templates/options_general.html:217
666
+ #: templates/polls_add_edit.html:461
667
+ #: templates/polls_question_template.html:157
668
+ #: templates/polls_question_template.html:171
669
+ msgid "Tabulated"
670
+ msgstr "Tableau"
671
+
672
+ #: templates/options_general.html:147 templates/options_general.html:221
673
+ #: templates/polls_add_edit.html:465
674
+ #: templates/polls_question_template.html:161
675
+ #: templates/polls_question_template.html:175
676
+ msgid "Columns"
677
+ msgstr "Colonnes"
678
+
679
+ #: templates/options_general.html:164 templates/polls_add_edit.html:426
680
+ #: templates/polls_add_edit_results_options.html:7
681
+ msgid "Results Options"
682
+ msgstr "Options de résultats"
683
+
684
+ #: templates/options_general.html:170 templates/polls_add_edit.html:432
685
+ #: templates/polls_add_edit_results_options.html:14
686
+ msgid "Sort Results"
687
+ msgstr "Trier les résultats"
688
+
689
+ #: templates/options_general.html:172 templates/options_general.html:322
690
+ #: templates/polls_add_edit.html:434
691
+ #: templates/polls_add_edit_results_options.html:16
692
+ msgid "As Defined"
693
+ msgstr "Tel que défini"
694
+
695
+ #: templates/options_general.html:173 templates/polls_add_edit.html:436
696
+ #: templates/polls_add_edit_results_options.html:17
697
+ msgid "Alphabetical Order"
698
+ msgstr "Ordre alphabétique"
699
+
700
+ #: templates/options_general.html:174 templates/options_general.html:324
701
+ #: templates/polls_add_edit.html:437
702
+ #: templates/polls_add_edit_results_options.html:18
703
+ msgid "by Number of Votes"
704
+ msgstr "par nombre de votes"
705
+
706
+ #: templates/options_general.html:178 templates/polls_add_edit.html:441
707
+ #: templates/polls_add_edit_results_options.html:23
708
+ msgid "Sort Results Rule"
709
+ msgstr "Trier les résultats de la règle"
710
+
711
+ #: templates/options_general.html:180 templates/options_general.html:330
712
+ #: templates/polls_add_edit.html:443
713
+ #: templates/polls_add_edit_results_options.html:25
714
+ msgid "Ascending"
715
+ msgstr "Ascendant"
716
+
717
+ #: templates/options_general.html:181 templates/options_general.html:331
718
+ #: templates/polls_add_edit.html:444
719
+ #: templates/polls_add_edit_results_options.html:26
720
+ msgid "Descending"
721
+ msgstr "Descendant"
722
+
723
+ #: templates/options_general.html:185 templates/polls_add_edit.html:448
724
+ msgid "Poll Answer Result Votes Number Label"
725
+ msgstr "L'étiquette pour le nombre des votes du résultat du sondage"
726
+
727
+ #: templates/options_general.html:187 templates/polls_add_edit.html:450
728
+ msgid "Singular"
729
+ msgstr "Singulier"
730
+
731
+ #: templates/options_general.html:189 templates/polls_add_edit.html:452
732
+ msgid "Plural"
733
+ msgstr "Pluriel"
734
+
735
+ #: templates/options_general.html:195
736
+ #: templates/polls_add_edit_results_options.html:31
737
+ msgid "Display Results as"
738
+ msgstr "Montrez les résultats en"
739
+
740
+ #: templates/options_general.html:199
741
+ #: templates/polls_add_edit_results_options.html:35
742
+ msgid "Bar"
743
+ msgstr "Barre"
744
+
745
+ #: templates/options_general.html:201
746
+ #: templates/polls_add_edit_results_options.html:37
747
+ msgid "Pie"
748
+ msgstr "Pointe de tarte"
749
+
750
+ #: templates/options_general.html:203
751
+ #: templates/polls_add_edit_results_options.html:39
752
+ msgid "Polar Area"
753
+ msgstr "Zone Polar"
754
+
755
+ #: templates/options_general.html:205
756
+ #: templates/polls_add_edit_results_options.html:41
757
+ msgid "Doughnut"
758
+ msgstr "Donut"
759
+
760
+ #: templates/options_general.html:213 templates/options_poll_options.html:40
761
+ #: templates/polls_add_edit.html:153 templates/polls_add_edit.html:457
762
+ #: templates/polls_add_edit_options.html:35
763
+ #: templates/polls_question_template.html:167
764
+ msgid "Display Results"
765
+ msgstr "Afficher les résultats"
766
+
767
+ #: templates/options_general.html:227
768
+ msgid "Poll Bar Style"
769
+ msgstr "Style de la barre du sondage"
770
+
771
+ #: templates/options_general.html:232
772
+ #: templates/polls_add_edit_results_options.html:53
773
+ msgid "Background Color"
774
+ msgstr "Couleur de fond"
775
+
776
+ #: templates/options_general.html:243
777
+ #: templates/polls_add_edit_results_options.html:63
778
+ msgid "Height"
779
+ msgstr "Hauteur"
780
+
781
+ #: templates/options_general.html:253
782
+ #: templates/polls_add_edit_results_options.html:73
783
+ msgid "Border Color"
784
+ msgstr "Couleur de bordure"
785
+
786
+ #: templates/options_general.html:264
787
+ #: templates/polls_add_edit_results_options.html:83
788
+ msgid "Border Width"
789
+ msgstr "Largeur de bordure"
790
+
791
+ #: templates/options_general.html:275
792
+ #: templates/polls_add_edit_results_options.html:94
793
+ msgid "Border Style"
794
+ msgstr "Style de bordure"
795
+
796
+ #: templates/options_general.html:281
797
+ #: templates/polls_add_edit_results_options.html:99
798
+ msgid "Solid"
799
+ msgstr "Solide"
800
+
801
+ #: templates/options_general.html:282
802
+ #: templates/polls_add_edit_results_options.html:100
803
+ msgid "Dashed"
804
+ msgstr "Hachuré"
805
+
806
+ #: templates/options_general.html:283
807
+ #: templates/polls_add_edit_results_options.html:101
808
+ msgid "Dotted"
809
+ msgstr "Pointillé"
810
+
811
+ #: templates/options_general.html:288
812
+ #: templates/polls_add_edit_results_options.html:106
813
+ msgid "Bar Preview"
814
+ msgstr "Aperçu de la barre"
815
+
816
+ #: templates/options_general.html:314
817
+ msgid "Archive Options"
818
+ msgstr "Options d'archives"
819
+
820
+ #: templates/options_general.html:320
821
+ msgid "Order polls"
822
+ msgstr "Ordre de sondage"
823
+
824
+ #: templates/options_general.html:323
825
+ msgid "Database Order"
826
+ msgstr "Ordre de la base de données"
827
+
828
+ #: templates/options_general.html:335
829
+ msgid "Archive page"
830
+ msgstr "Page d'archive"
831
+
832
+ #: templates/options_general.html:341
833
+ msgid "Poll Archive Link Label"
834
+ msgstr "L'étiquette pour voir le chemin de l'archive du sondage"
835
+
836
+ #: templates/options_general.html:347
837
+ msgid "Polls per Page"
838
+ msgstr "Sondages par page"
839
+
840
+ #: templates/options_general.html:365
841
+ msgid "Notification Options"
842
+ msgstr "Option de notification"
843
+
844
+ #: templates/options_general.html:371
845
+ #: templates/polls_add_edit_options.html:275
846
+ msgid "From Name"
847
+ msgstr "De nom"
848
+
849
+ #: templates/options_general.html:377
850
+ #: templates/polls_add_edit_options.html:277
851
+ msgid "From Email"
852
+ msgstr "Formulaire de courriel"
853
+
854
+ #: templates/options_general.html:383
855
+ #: templates/polls_add_edit_options.html:279
856
+ msgid "Recipients"
857
+ msgstr "Destinataire"
858
+
859
+ #: templates/options_general.html:383
860
+ msgid "Use comma separated email addresses: email@xmail.com,email2@ymail.com"
861
+ msgstr ""
862
+ "Utilisez des adresses courriel séparées par des virgules: email @ xmail.com, "
863
+ "email2 @ ymail.com"
864
+
865
+ #: templates/options_general.html:390
866
+ #: templates/polls_add_edit_options.html:281
867
+ msgid "Subject"
868
+ msgstr "Sujet"
869
+
870
+ #: templates/options_general.html:397
871
+ #: templates/polls_add_edit_options.html:283
872
+ msgid "Body"
873
+ msgstr "Corps"
874
+
875
+ #: templates/options_general.html:415
876
+ msgid "Media Integration"
877
+ msgstr "Intégration des médias"
878
+
879
+ #: templates/options_general.html:421
880
+ msgid "Use Facebook integration"
881
+ msgstr "Utiliser l'intégration de Facebook"
882
+
883
+ #: templates/options_general.html:429 templates/options_general.html:448
884
+ msgid "App ID"
885
+ msgstr "Identifiant de l'application"
886
+
887
+ #: templates/options_general.html:434 templates/options_general.html:454
888
+ msgid "App Secret"
889
+ msgstr "App Secret"
890
+
891
+ #: templates/options_general.html:440
892
+ msgid "Use Google+ integration"
893
+ msgstr "Utiliser l'intégration de Google+"
894
+
895
+ #: templates/options_general.html:477
896
+ #: templates/polls_add_edit_beginner.html:203
897
+ msgid "Please wait"
898
+ msgstr "Se il vous plaît attendre"
899
+
900
+ #: templates/options_poll_options.html:10 templates/polls_add_edit.html:128
901
+ #: templates/polls_add_edit_options.html:9
902
+ msgid "Poll Options"
903
+ msgstr "Options de sondage"
904
+
905
+ #: templates/options_poll_options.html:34
906
+ #: templates/polls_add_edit_options.html:29 templates/polls_view.html:135
907
+ msgid "No end date"
908
+ msgstr "Pas de date de fin"
909
+
910
+ #: templates/options_poll_options.html:42 templates/polls_add_edit.html:155
911
+ #: templates/polls_add_edit_options.html:37
912
+ msgid "Before Vote"
913
+ msgstr "Avant le vote"
914
+
915
+ #: templates/options_poll_options.html:43 templates/polls_add_edit.html:156
916
+ #: templates/polls_add_edit_options.html:38
917
+ msgid "After Vote"
918
+ msgstr "Après le vote"
919
+
920
+ #: templates/options_poll_options.html:44 templates/polls_add_edit.html:157
921
+ #: templates/polls_add_edit_options.html:39
922
+ msgid "After Poll End Date"
923
+ msgstr "Après la date de fin du sondage"
924
+
925
+ #: templates/options_poll_options.html:45 templates/polls_add_edit.html:158
926
+ #: templates/polls_add_edit_options.html:40
927
+ msgid "Never"
928
+ msgstr "Jamais"
929
+
930
+ #: templates/options_poll_options.html:46 templates/polls_add_edit.html:159
931
+ #: templates/polls_add_edit_options.html:41
932
+ msgid "Custom Date"
933
+ msgstr "Dat epersonnalisée"
934
+
935
+ #: templates/options_poll_options.html:49 templates/polls_add_edit.html:162
936
+ #: templates/polls_add_edit_options.html:45
937
+ msgid "Results display date"
938
+ msgstr "Date d'affichage des résultats"
939
+
940
+ #: templates/options_poll_options.html:50
941
+ msgid ""
942
+ "(the users will be able to view poll results starting with following date)"
943
+ msgstr ""
944
+ "(les utilisateurs seront en mesure de voir les résultats du sondage à partir "
945
+ "de la date suivante)"
946
+
947
+ #: templates/options_poll_options.html:59 templates/polls_add_edit.html:170
948
+ #: templates/polls_add_edit_options.html:53
949
+ msgid "Display Results Permissions"
950
+ msgstr "Afficher les permissions de résultats"
951
+
952
+ #: templates/options_poll_options.html:61
953
+ #: templates/options_poll_options.html:149
954
+ #: templates/polls_add_edit_options.html:55
955
+ #: templates/polls_add_edit_options.html:111
956
+ msgid "Guest"
957
+ msgstr "Invité"
958
+
959
+ #: templates/options_poll_options.html:62
960
+ #: templates/options_poll_options.html:150
961
+ #: templates/polls_add_edit_options.html:56
962
+ #: templates/polls_add_edit_options.html:112
963
+ msgid "Registered"
964
+ msgstr "Inscrit"
965
+
966
+ #: templates/options_poll_options.html:66 templates/polls_add_edit.html:178
967
+ #: templates/polls_add_edit_options.html:60
968
+ msgid "Results Display"
969
+ msgstr "Affichage des résultats"
970
+
971
+ #: templates/options_poll_options.html:68 templates/polls_add_edit.html:180
972
+ msgid "By Votes Number"
973
+ msgstr "Par nombre de votes"
974
+
975
+ #: templates/options_poll_options.html:69 templates/polls_add_edit.html:181
976
+ #: templates/polls_add_edit_options.html:63
977
+ msgid "Percentages"
978
+ msgstr "Pourcentage"
979
+
980
+ #: templates/options_poll_options.html:70 templates/polls_add_edit.html:182
981
+ msgid "by Votes Number and Percentages"
982
+ msgstr "par nombre de votes et pourcentages"
983
+
984
+ #: templates/options_poll_options.html:74 templates/polls_add_edit.html:186
985
+ #: templates/polls_add_edit_options.html:68
986
+ msgid "Poll Answer Result Label"
987
+ msgstr "L'étiquette du résultat du sondage"
988
+
989
+ #: templates/options_poll_options.html:77 templates/polls_add_edit.html:189
990
+ #: templates/polls_add_edit_options.html:71
991
+ msgid ""
992
+ "Use %POLL-ANSWER-RESULT-PERCENTAGES% for showing answer percentages and "
993
+ "%POLL-ANSWER-RESULT-VOTES% for showing answer number of votes"
994
+ msgstr ""
995
+ "Utiliser %POLL-ANSWER-RESULT-PERCENTAGES% pour montrer le pourcentage de "
996
+ "réponse et %POLL-ANSWER-RESULT-VOTES% pour afficher le nombre de réponse de "
997
+ "votes"
998
+
999
+ #: templates/options_poll_options.html:81 templates/polls_add_edit.html:193
1000
+ #: templates/polls_add_edit_options.html:75
1001
+ msgid "Vote Button Label"
1002
+ msgstr "L'étiquette du bouton de vote"
1003
+
1004
+ #: templates/options_poll_options.html:87 templates/polls_add_edit.html:199
1005
+ #: templates/polls_add_edit_options.html:81
1006
+ msgid "Display Results Link"
1007
+ msgstr "Afficher le lien des résultats"
1008
+
1009
+ #: templates/options_poll_options.html:94 templates/polls_add_edit.html:206
1010
+ msgid "Results Link Label"
1011
+ msgstr "L'étiquette du lien des résultats"
1012
+
1013
+ #: templates/options_poll_options.html:100 templates/polls_add_edit.html:212
1014
+ #: templates/polls_add_edit_options.html:88
1015
+ msgid "Display Back To Vote Link"
1016
+ msgstr "Afficher le lien Retour au vote"
1017
+
1018
+ #: templates/options_poll_options.html:107 templates/polls_add_edit.html:219
1019
+ msgid "Back To Vote Link Label"
1020
+ msgstr "L'Étiquette du lien Retour au vote"
1021
+
1022
+ #: templates/options_poll_options.html:113 templates/polls_add_edit.html:225
1023
+ #: templates/polls_add_edit_options.html:95
1024
+ msgid "Display Total Votes"
1025
+ msgstr "Afficher le total des votes"
1026
+
1027
+ #: templates/options_poll_options.html:120 templates/polls_add_edit.html:232
1028
+ msgid "Total Votes Label"
1029
+ msgstr "L'Étiquette du total des votes"
1030
+
1031
+ #: templates/options_poll_options.html:123 templates/polls_add_edit.html:235
1032
+ msgid "Use %POLL-TOTAL-VOTES% for displaying poll's total number of votes"
1033
+ msgstr ""
1034
+ "Utilisez% Poll-TOTAL-VOTES% pour afficher le nombre total de sondage de votes"
1035
+
1036
+ #: templates/options_poll_options.html:127 templates/polls_add_edit.html:239
1037
+ #: templates/polls_add_edit_options.html:102
1038
+ msgid "Display Total Answers"
1039
+ msgstr "Afficher le total des réponses"
1040
+
1041
+ #: templates/options_poll_options.html:134 templates/polls_add_edit.html:246
1042
+ msgid "Total Answers Label"
1043
+ msgstr "L'étiquette du total des réponses"
1044
+
1045
+ #: templates/options_poll_options.html:137
1046
+ msgid "Use %POLL-TOTAL-ANSWERS% for displaying poll's total number of answers"
1047
+ msgstr ""
1048
+ "Utilisez% Poll-TOTAL-RÉPONSES% pour afficher le nombre total de sondage des "
1049
+ "réponses"
1050
+
1051
+ #: templates/options_poll_options.html:141 templates/polls_add_edit.html:252
1052
+ msgid "Message After Vote"
1053
+ msgstr "Message après le vote"
1054
+
1055
+ #: templates/options_poll_options.html:147 templates/polls_add_edit.html:258
1056
+ #: templates/polls_add_edit_options.html:109
1057
+ msgid "Vote Permissions"
1058
+ msgstr "Permissions de vote"
1059
+
1060
+ #: templates/options_poll_options.html:154 templates/polls_add_edit.html:267
1061
+ #: templates/polls_add_edit_options.html:116
1062
+ msgid "Vote as Facebook User"
1063
+ msgstr "Voter en tant qu'utilisateur Facebook"
1064
+
1065
+ #: templates/options_poll_options.html:155 templates/polls_add_edit.html:267
1066
+ #: templates/polls_add_edit_options.html:116
1067
+ msgid "Will force users to login into Facebook"
1068
+ msgstr "Va forcer les utilisateurs à se connecter à Facebook"
1069
+
1070
+ #: templates/options_poll_options.html:164 templates/polls_add_edit.html:275
1071
+ msgid "'Vote as Facebook User' Button Label"
1072
+ msgstr "L'étiquette 'Voter en tant qu'utilisateur Facebook"
1073
+
1074
+ #: templates/options_poll_options.html:170
1075
+ msgid "Show Comments Widget"
1076
+ msgstr "Afficher le widget de commentaire"
1077
+
1078
+ #: templates/options_poll_options.html:177
1079
+ msgid "Share after vote"
1080
+ msgstr "Partager après le vote"
1081
+
1082
+ #: templates/options_poll_options.html:185
1083
+ msgid "Share Description"
1084
+ msgstr "Partager la description"
1085
+
1086
+ #: templates/options_poll_options.html:191
1087
+ #: templates/polls_add_edit_options.html:124
1088
+ msgid "Vote as Google User"
1089
+ msgstr "Voter en tant qu'utilisateur Google"
1090
+
1091
+ #: templates/options_poll_options.html:192
1092
+ #: templates/polls_add_edit_options.html:124
1093
+ msgid "Will force users to login into Google+"
1094
+ msgstr "Va forcer les utilisateurs à ouvrir une session dans Google+"
1095
+
1096
+ #: templates/options_poll_options.html:201
1097
+ msgid "'Vote as google User' Button Label"
1098
+ msgstr "L'étiquette du bouton 'Voter en tant qu'utilisateur Google+'"
1099
+
1100
+ #: templates/options_poll_options.html:207
1101
+ msgid "Show +1 Button after vote"
1102
+ msgstr "Afficher le Bouton +1 après le vote"
1103
+
1104
+ #: templates/options_poll_options.html:215 templates/polls_add_edit.html:282
1105
+ #: templates/polls_add_edit_options.html:132
1106
+ msgid "Vote as Wordpress User"
1107
+ msgstr "Voter en tant qu'utilisateur Wordpress"
1108
+
1109
+ #: templates/options_poll_options.html:216 templates/polls_add_edit.html:282
1110
+ #: templates/polls_add_edit_options.html:132
1111
+ msgid "Will force users to login"
1112
+ msgstr "Va forcer les utilisateurs à ouvrir une session"
1113
+
1114
+ #: templates/options_poll_options.html:225 templates/polls_add_edit.html:289
1115
+ #: templates/polls_add_edit_options.html:140
1116
+ msgid "'Vote as Wordpress User' Button Label"
1117
+ msgstr "L'étiquette du bouton 'Voter en tant qu'utilisateur Wordpress'"
1118
+
1119
+ #: templates/options_poll_options.html:232 templates/polls_add_edit.html:296
1120
+ #: templates/polls_add_edit_options.html:147
1121
+ msgid "Vote as Anonymous User"
1122
+ msgstr "Voter de façon anonyme"
1123
+
1124
+ #: templates/options_poll_options.html:233 templates/polls_add_edit.html:296
1125
+ #: templates/polls_add_edit_options.html:147
1126
+ msgid "Logged users will be treated as anonymous"
1127
+ msgstr "Les utilisateurs connectés seront traités comme des anonymes"
1128
+
1129
+ #: templates/options_poll_options.html:241 templates/polls_add_edit.html:304
1130
+ #: templates/polls_add_edit_options.html:155
1131
+ msgid "'Vote as Anonymous User' Button Label"
1132
+ msgstr "L'étiquette du bouton 'Voter en tant qu'utilisateur anonyme'"
1133
+
1134
+ #: templates/options_poll_options.html:247 templates/polls_add_edit.html:310
1135
+ #: templates/polls_add_edit_options.html:161
1136
+ msgid "Blocking Voters"
1137
+ msgstr "Le blocage des électeurs"
1138
+
1139
+ #: templates/options_poll_options.html:249 templates/polls_add_edit.html:312
1140
+ #: templates/polls_add_edit_options.html:163
1141
+ msgid "Don't Block"
1142
+ msgstr "Ne pas bloquer"
1143
+
1144
+ #: templates/options_poll_options.html:250 templates/polls_add_edit.html:313
1145
+ #: templates/polls_add_edit_options.html:164
1146
+ msgid "By Cookie"
1147
+ msgstr "Par cookie"
1148
+
1149
+ #: templates/options_poll_options.html:251 templates/polls_add_edit.html:314
1150
+ #: templates/polls_add_edit_options.html:165
1151
+ msgid "By IP"
1152
+ msgstr "Par IP"
1153
+
1154
+ #: templates/options_poll_options.html:252
1155
+ #: templates/polls_add_edit_options.html:166
1156
+ msgid "By User ID"
1157
+ msgstr "Par identifaint d'utilisateur"
1158
+
1159
+ #: templates/options_poll_options.html:253
1160
+ #: templates/polls_add_edit_options.html:167
1161
+ msgid "By SuperCookie"
1162
+ msgstr "Par SuperCookie"
1163
+
1164
+ #: templates/options_poll_options.html:257 templates/polls_add_edit.html:320
1165
+ #: templates/polls_add_edit_options.html:172
1166
+ msgid "Blocking Voters Interval"
1167
+ msgstr "Interval du blocage des électeurs"
1168
+
1169
+ #: templates/options_poll_options.html:270 templates/polls_add_edit.html:331
1170
+ #: templates/polls_add_edit_options.html:185
1171
+ msgid "Limit Number of Votes per User"
1172
+ msgstr "Limite du nombre de vote par utilisateur"
1173
+
1174
+ #: templates/options_poll_options.html:278 templates/polls_add_edit.html:338
1175
+ #: templates/polls_add_edit_options.html:194
1176
+ msgid "Number of Votes per User"
1177
+ msgstr "Nombre de vote par utilisateur"
1178
+
1179
+ #: templates/options_poll_options.html:284 templates/polls_add_edit.html:344
1180
+ msgid "Percentages Decimals"
1181
+ msgstr "Les décimales des pourcentages"
1182
+
1183
+ #: templates/options_poll_options.html:290 templates/polls_add_edit.html:350
1184
+ msgid "Use Default Loading Image"
1185
+ msgstr "Utiliser l'image de chargement par défaut"
1186
+
1187
+ #: templates/options_poll_options.html:297 templates/polls_add_edit.html:357
1188
+ msgid "Loading Image Url"
1189
+ msgstr "L'adresse de l'image de chargement"
1190
+
1191
+ #: templates/options_poll_options.html:303
1192
+ msgid "Date Format"
1193
+ msgstr "Format de date"
1194
+
1195
+ #: templates/options_poll_options.html:310 templates/polls_add_edit.html:363
1196
+ #: templates/polls_add_edit_options.html:200
1197
+ msgid "Redirect After Vote"
1198
+ msgstr "Redirection après le vote"
1199
+
1200
+ #: templates/options_poll_options.html:317 templates/polls_add_edit.html:370
1201
+ #: templates/polls_add_edit_options.html:208
1202
+ msgid "Redirect After Vote URL"
1203
+ msgstr "URL de redirection après le vote"
1204
+
1205
+ #: templates/options_poll_options.html:324 templates/polls_add_edit.html:376
1206
+ #: templates/polls_add_edit_options.html:240
1207
+ msgid "Display Archive Link"
1208
+ msgstr "Afficher le lien d'archive"
1209
+
1210
+ #: templates/options_poll_options.html:331 templates/polls_add_edit.html:383
1211
+ #: templates/polls_add_edit_options.html:248
1212
+ msgid "Auto Generate Poll Page"
1213
+ msgstr "Générer automatiquement la page de sondage"
1214
+
1215
+ #: templates/options_poll_options.html:338 templates/polls_add_edit.html:390
1216
+ #: templates/polls_add_edit_options.html:263
1217
+ msgid "Use CAPTCHA"
1218
+ msgstr "Utiliser CAPTCHA"
1219
+
1220
+ #: templates/options_poll_options.html:345 templates/polls_add_edit.html:397
1221
+ #: templates/polls_add_edit_options.html:270
1222
+ msgid "Send Email Notifications"
1223
+ msgstr "Envoyer un courriel de notification"
1224
+
1225
+ #: templates/options_poll_options.html:353 templates/polls_add_edit.html:404
1226
+ #: templates/polls_add_edit_options.html:292
1227
+ msgid "Show Poll In Archive"
1228
+ msgstr "Afficher le sondage dans l'archive"
1229
+
1230
+ #: templates/options_poll_options.html:360 templates/polls_add_edit.html:411
1231
+ #: templates/polls_add_edit_options.html:300
1232
+ msgid "Poll Archive Order"
1233
+ msgstr "Ordre des sondage dans l'archive"
1234
+
1235
+ #: templates/polls_add_edit-bk.html:23 templates/polls_add_edit.html:19
1236
+ #: templates/polls_add_edit_advanced.html:30
1237
+ msgid "Enter Poll Title Here"
1238
+ msgstr "Entrer un titre de sondage ici"
1239
+
1240
+ #: templates/polls_add_edit-bk.html:87 templates/polls_add_edit-bk.html:213
1241
+ #: templates/polls_question_template.html:7
1242
+ msgid "Question "
1243
+ msgstr "Question"
1244
+
1245
+ #: templates/polls_add_edit-bk.html:117 templates/polls_add_edit-bk.html:147
1246
+ #: templates/polls_add_edit-bk.html:177 templates/polls_add_edit-bk.html:243
1247
+ #: templates/polls_add_edit-bk.html:273 templates/polls_add_edit-bk.html:303
1248
+ msgid "Answer "
1249
+ msgstr "Réponse"
1250
+
1251
+ #: templates/polls_add_edit-bk.html:127 templates/polls_add_edit-bk.html:157
1252
+ #: templates/polls_add_edit-bk.html:187 templates/polls_add_edit-bk.html:253
1253
+ #: templates/polls_add_edit-bk.html:283 templates/polls_add_edit-bk.html:313
1254
+ msgid "Enter Your Answer Here"
1255
+ msgstr "Entrer votre réponse ici"
1256
+
1257
+ #: templates/polls_add_edit-bk.html:223
1258
+ #: templates/polls_question_template.html:29
1259
+ #: templates/polls_question_template_media.html:27
1260
+ msgid "Enter Your Question Here"
1261
+ msgstr "Entrer votre question ici"
1262
+
1263
+ #: templates/polls_add_edit-bk.html:335 templates/polls_add_edit.html:63
1264
+ msgid "Add New Question"
1265
+ msgstr "Ajouter une nouvelle question"
1266
+
1267
+ #: templates/polls_add_edit.html:9
1268
+ msgid "Shortcode"
1269
+ msgstr "Shortcode"
1270
+
1271
+ #: templates/polls_add_edit.html:73 templates/polls_add_edit_template.html:9
1272
+ #: templates/templates_templates.html:60
1273
+ msgid "Poll Templates"
1274
+ msgstr "Modèle de sondage"
1275
+
1276
+ #: templates/polls_add_edit.html:78 templates/polls_add_edit_template.html:19
1277
+ msgid "Page Template"
1278
+ msgstr "Modèle de page"
1279
+
1280
+ #: templates/polls_add_edit.html:100
1281
+ #: templates/polls_add_edit_template.html:203
1282
+ msgid "Widget Template"
1283
+ msgstr "Modèle de Widget"
1284
+
1285
+ #: templates/polls_add_edit.html:163 templates/polls_add_edit_options.html:46
1286
+ msgid ""
1287
+ "(the users will be able to view poll results starting with following date )"
1288
+ msgstr ""
1289
+ "(les utilisateurs seront en mesure de voir les résultats du sondage à partir "
1290
+ "de la date suivante)"
1291
+
1292
+ #: templates/polls_add_edit.html:172 templates/polls_add_edit.html:260
1293
+ msgid "Guest Only"
1294
+ msgstr "Seulement clients"
1295
+
1296
+ #: templates/polls_add_edit.html:173 templates/polls_add_edit.html:261
1297
+ msgid "Registered Only"
1298
+ msgstr "Enregistré Seulement"
1299
+
1300
+ #: templates/polls_add_edit.html:174 templates/polls_add_edit.html:262
1301
+ msgid "Guest & Registered Users"
1302
+ msgstr "Clients et utilisateurs enregistrés"
1303
+
1304
+ #: templates/polls_add_edit.html:315
1305
+ msgid "By Username"
1306
+ msgstr "En Nom d'utilisateur"
1307
+
1308
+ #: templates/polls_add_edit.html:316
1309
+ msgid "By Cookie and Ip"
1310
+ msgstr "Par Cookie et Ip"
1311
+
1312
+ #: templates/polls_add_edit.html:435
1313
+ msgid "Database Id"
1314
+ msgstr "Base de données Id"
1315
+
1316
+ #: templates/polls_add_edit_advanced.html:10
1317
+ #: templates/polls_add_edit_advanced.html:19
1318
+ msgid "Use this shortcode to display your poll"
1319
+ msgstr "Utiliser ce shortcode pour afficher le sondage"
1320
+
1321
+ #: templates/polls_add_edit_beginner.html:82
1322
+ msgid "Preview"
1323
+ msgstr "Aperçu"
1324
+
1325
+ #: templates/polls_add_edit_beginner.html:133
1326
+ msgid "Result Options"
1327
+ msgstr "Options de résultat"
1328
+
1329
+ #: templates/polls_add_edit_options.html:62
1330
+ msgid "Votes Number"
1331
+ msgstr "Nombre de Votes"
1332
+
1333
+ #: templates/polls_add_edit_options.html:64
1334
+ msgid "Votes Number and Percentages"
1335
+ msgstr "Votes nombre et le pourcentage"
1336
+
1337
+ #: templates/polls_add_edit_options.html:214
1338
+ msgid "Reset Poll Stats Automatically"
1339
+ msgstr "Réinitialiser automatiquement les statistiques de sondage"
1340
+
1341
+ #: templates/polls_add_edit_options.html:222
1342
+ msgid "Reset Stats Date"
1343
+ msgstr "Réinitialiser les dates de statistiques"
1344
+
1345
+ #: templates/polls_add_edit_options.html:230
1346
+ msgid "Reset Stats Every"
1347
+ msgstr "Réinitialiser les statistiques à chaque"
1348
+
1349
+ #: templates/polls_add_edit_options.html:256
1350
+ msgid "Poll Page Url"
1351
+ msgstr "L'url de la page de sondage"
1352
+
1353
+ #: templates/polls_add_edit_questions.html:17
1354
+ msgid "Add Text Question"
1355
+ msgstr "Ajouter une question texte"
1356
+
1357
+ #: templates/polls_add_edit_questions.html:20
1358
+ msgid "Add Media Question"
1359
+ msgstr "Ajouter une question média"
1360
+
1361
+ #: templates/polls_add_edit_results_options.html:49
1362
+ msgid "Result Bar Style"
1363
+ msgstr "Style de la barre de résultat"
1364
+
1365
+ #: templates/polls_add_edit_template.html:23
1366
+ msgid "Template Width"
1367
+ msgstr "Largeur du modèle"
1368
+
1369
+ #: templates/polls_add_edit_template.html:198
1370
+ msgid "Use the same template for widgets"
1371
+ msgstr "Utiliser le même modèle pour le widget"
1372
+
1373
+ #: templates/polls_add_edit_template.html:207
1374
+ msgid "Widget Template Width"
1375
+ msgstr "Largeur du modèle de widget"
1376
+
1377
+ #: templates/polls_answer_media_template.html:28
1378
+ #: templates/polls_answer_media_template.html:65
1379
+ msgid "Image"
1380
+ msgstr "Image"
1381
+
1382
+ #: templates/polls_answer_media_template.html:30
1383
+ #: templates/polls_answer_media_template.html:67
1384
+ msgid "Video"
1385
+ msgstr "Vidéo"
1386
+
1387
+ #: templates/polls_answer_media_template.html:39
1388
+ #: templates/polls_answer_media_template.html:76
1389
+ msgid "Enter a URL or upload a file!"
1390
+ msgstr "Entrer un une url ou téléverser un fichier"
1391
+
1392
+ #: templates/polls_answer_media_template.html:40
1393
+ #: templates/polls_answer_media_template.html:77
1394
+ msgid "Enter embeded code!"
1395
+ msgstr "Entrer le code d'intégration"
1396
+
1397
+ #: templates/polls_answer_media_template.html:46
1398
+ #: templates/polls_answer_media_template.html:82
1399
+ msgid "Description"
1400
+ msgstr "Description"
1401
+
1402
+ #: templates/polls_answer_template.html:19
1403
+ msgid "Default Answer"
1404
+ msgstr "Réponse par défaut"
1405
+
1406
+ #: templates/polls_base.html:15 templates/polls_results_votes.html:160
1407
+ msgid "Please buy pro version to use this feature!"
1408
+ msgstr ""
1409
+ "Se il vous plaît acheter la version pro pour utiliser cette fonctionnalité!"
1410
+
1411
+ #: templates/polls_base.html:54 templates/polls_results_votes.html:147
1412
+ #: templates/pro_pre_upgrade.html:41
1413
+ msgid "Upgrade to Pro for only $17"
1414
+ msgstr "Upgrade to Pro pour seulement $ 17"
1415
+
1416
+ #: templates/polls_base.html:57 templates/pro_pre_upgrade.html:44
1417
+ msgid "60 days money back guarantee"
1418
+ msgstr "60 jours garantie de remboursement"
1419
+
1420
+ #: templates/polls_base.html:61 templates/pro_help.html:16
1421
+ #: templates/pro_pre_upgrade.html:50
1422
+ msgid "Top class software and support"
1423
+ msgstr "Logiciel de classe supérieure et de soutien"
1424
+
1425
+ #: templates/polls_base.html:62 templates/pro_help.html:18
1426
+ #: templates/pro_pre_upgrade.html:52
1427
+ msgid "I love this software and the support service."
1428
+ msgstr "Je adore ce logiciel et le service de support."
1429
+
1430
+ #: templates/polls_base.html:64 templates/pro_help.html:20
1431
+ #: templates/pro_pre_upgrade.html:54
1432
+ msgid ""
1433
+ "This is definitely the #1 poll plugin for WP. I give this software and its "
1434
+ "support service a A++++."
1435
+ msgstr ""
1436
+ "Ce est certainement le # 1 vote plugin pour WP. Je donne ce logiciel et son "
1437
+ "service de soutien a A ++++."
1438
+
1439
+ #: templates/polls_base.html:66 templates/pro_help.html:22
1440
+ #: templates/pro_pre_upgrade.html:56
1441
+ msgid ""
1442
+ "I'm so glad to be a Pro version user. The US$17 upgrade worth every cent..."
1443
+ msgstr ""
1444
+ "Je suis si heureux d'être une version utilisateur Pro. La mise à niveau de "
1445
+ "17 $ US vaut chaque centime ..."
1446
+
1447
+ #: templates/polls_base.html:68
1448
+ msgid ""
1449
+ "I originally had some difficulties with the tool, and I reported them. (This "
1450
+ "is normal for all software.) "
1451
+ msgstr ""
1452
+ "Je ai eu quelques difficultés à l'origine avec l'outil, et je leur ai "
1453
+ "signalé. (Ce est normal pour tous les logiciels.)"
1454
+
1455
+ #: templates/polls_base.html:69
1456
+ msgid ""
1457
+ "After I reported my issues, the support got in touch with me very quickly "
1458
+ "and have the problem resolved. "
1459
+ msgstr ""
1460
+ "Après je ai rapporté mes questions, le soutien a pris contact avec moi très "
1461
+ "rapidement et ont le problème résolu."
1462
+
1463
+ #: templates/polls_base.html:70
1464
+ msgid ""
1465
+ "Also, they listened to my suggestions and worked with me to have things "
1466
+ "implemented and resolved. "
1467
+ msgstr ""
1468
+ "En outre, ils ont écouté mes suggestions et a travaillé avec moi pour avoir "
1469
+ "des choses mises en œuvre et résolus."
1470
+
1471
+ #: templates/polls_base.html:71 templates/pro_help.html:27
1472
+ #: templates/pro_pre_upgrade.html:61
1473
+ msgid "This is definitely a TOP CLASS service."
1474
+ msgstr "Ce est vraiment un service de première classe."
1475
+
1476
+ #: templates/polls_base.html:73 templates/pro_help.html:30
1477
+ #: templates/pro_pre_upgrade.html:64
1478
+ msgid "edwintam, wordpress user"
1479
+ msgstr "edwintam, les utilisateurs de WordPress"
1480
+
1481
+ #: templates/polls_pop_up_ban.html:42 templates/polls_pop_up_ban.html:61
1482
+ #: templates/polls_results_votes.html:207
1483
+ #: templates/polls_results_votes.html:227
1484
+ #: templates/polls_results_votes.html:260
1485
+ msgid "(required)"
1486
+ msgstr "(requis)"
1487
+
1488
+ #: templates/polls_question_template.html:21
1489
+ #: templates/polls_question_template_media.html:19
1490
+ msgid "Question Text"
1491
+ msgstr "Texte de la question"
1492
+
1493
+ #: templates/polls_question_template.html:46
1494
+ #: templates/polls_question_template_media.html:44
1495
+ msgid "Answers"
1496
+ msgstr "Réponse"
1497
+
1498
+ #: templates/polls_question_template.html:78
1499
+ msgid "Add New Answer"
1500
+ msgstr "Ajouter une nouvelle Réponse"
1501
+
1502
+ #: templates/polls_question_template.html:92
1503
+ msgid "Question Options"
1504
+ msgstr "Options de question"
1505
+
1506
+ #: templates/polls_question_template.html:118
1507
+ msgid "Add the values submitted in 'Other' as answers "
1508
+ msgstr "Ajouter des valeurs soumises dans 'Autre' comme réponses"
1509
+
1510
+ #: templates/polls_question_template.html:119
1511
+ msgid ""
1512
+ "all the values submitted in this field by your users will be automatically "
1513
+ "added as an available 'Answer'"
1514
+ msgstr ""
1515
+ "toutes les valeurs présentées dans ce domaine par vos utilisateurs seront "
1516
+ "automatiquement ajoutée comme une 'réponse' disponibles"
1517
+
1518
+ #: templates/polls_question_template.html:193
1519
+ #: templates/polls_results_print.html:118
1520
+ #: templates/polls_results_print.html:468
1521
+ #: templates/polls_results_print.html:485
1522
+ #: templates/polls_results_votes.html:542
1523
+ #: templates/polls_results_votes.html:1066
1524
+ msgid "Custom Fields"
1525
+ msgstr "Champs personnalisés"
1526
+
1527
+ #: templates/polls_question_template.html:203
1528
+ msgid "Custom field"
1529
+ msgstr "Champ personnalisé"
1530
+
1531
+ #: templates/polls_question_template.html:222
1532
+ msgid "Required?"
1533
+ msgstr "Requis ?"
1534
+
1535
+ #: templates/polls_question_template.html:243
1536
+ msgid "Add New Custom Field"
1537
+ msgstr "Ajouter un nouveau champ personnalisé"
1538
+
1539
+ #: templates/polls_question_template_media.html:7
1540
+ #: templates/polls_results.html:53 templates/polls_results_print.html:25
1541
+ #: templates/polls_results_votes.html:463
1542
+ msgid "Question"
1543
+ msgstr "Question"
1544
+
1545
+ #: templates/polls_results.html:4
1546
+ msgid "All Polls"
1547
+ msgstr "Tous les sondages"
1548
+
1549
+ #: templates/polls_results.html:23 templates/polls_results_votes.html:298
1550
+ msgid "Order By"
1551
+ msgstr "Trié par"
1552
+
1553
+ #: templates/polls_results.html:25 templates/polls_results_votes.html:300
1554
+ msgid "Answer Value"
1555
+ msgstr "Valeur de réponse"
1556
+
1557
+ #: templates/polls_results.html:26 templates/polls_results.html:65
1558
+ #: templates/polls_results.html:101 templates/polls_results_print.html:38
1559
+ #: templates/polls_results_print.html:82
1560
+ #: templates/polls_results_votes.html:301
1561
+ #: templates/polls_results_votes.html:397
1562
+ #: templates/polls_results_votes.html:476
1563
+ #: templates/polls_results_votes.html:512
1564
+ msgid "Votes"
1565
+ msgstr "Votes"
1566
+
1567
+ #: templates/polls_results.html:29 templates/polls_results_votes.html:304
1568
+ msgid "ASC"
1569
+ msgstr "ASC"
1570
+
1571
+ #: templates/polls_results.html:30 templates/polls_results_votes.html:305
1572
+ msgid "DESC"
1573
+ msgstr "DESC"
1574
+
1575
+ #: templates/polls_results.html:34 templates/polls_results_votes.html:310
1576
+ msgid "Show Other Answers Values"
1577
+ msgstr "Afficher les autres valeurs de réponses"
1578
+
1579
+ #: templates/polls_results.html:64 templates/polls_results_print.html:37
1580
+ #: templates/polls_results_votes.html:475
1581
+ msgid "Answer"
1582
+ msgstr "Réponse"
1583
+
1584
+ #: templates/polls_results.html:66 templates/polls_results_print.html:39
1585
+ #: templates/polls_results_votes.html:477
1586
+ msgid "Percent"
1587
+ msgstr "Pourcent"
1588
+
1589
+ #: templates/polls_results.html:94
1590
+ msgid "Other Answers"
1591
+ msgstr "Autres réponses"
1592
+
1593
+ #: templates/polls_results.html:100
1594
+ msgid "Other Answer"
1595
+ msgstr "Autre réponse"
1596
+
1597
+ #: templates/polls_results_print.html:74
1598
+ #: templates/polls_results_votes.html:504
1599
+ msgid "Poll Other Answers"
1600
+ msgstr "Autres réponses de sondage"
1601
+
1602
+ #: templates/polls_results_print.html:132
1603
+ #: templates/polls_results_votes.html:556 templates/polls_view.html:157
1604
+ msgid "items"
1605
+ msgstr "items"
1606
+
1607
+ #: templates/polls_results_print.html:188
1608
+ #: templates/polls_results_votes.html:612
1609
+ msgid "No Custom Field Defined"
1610
+ msgstr "Aucun champ personnalisé défini"
1611
+
1612
+ #: templates/polls_results_votes.html:56
1613
+ msgid "Multiple questions"
1614
+ msgstr "Plusieurs questions"
1615
+
1616
+ #: templates/polls_results_votes.html:60
1617
+ msgid "Want your visitors' opinion on more than a topic?"
1618
+ msgstr "Voulez-vous l'opinion de vos visiteurs sur plus d'un sujet?"
1619
+
1620
+ #: templates/polls_results_votes.html:61
1621
+ msgid "No need to create a new poll every time."
1622
+ msgstr "Pas besoin de créer un nouveau sondage à chaque fois."
1623
+
1624
+ #: templates/polls_results_votes.html:62
1625
+ msgid ""
1626
+ "YOP Poll Pro allows you to add as many questions as you want within a single "
1627
+ "poll."
1628
+ msgstr ""
1629
+ "YOP Sondage Pro vous permet d'ajouter autant de questions que vous voulez "
1630
+ "dans un seul scrutin."
1631
+
1632
+ #: templates/polls_results_votes.html:68
1633
+ msgid "Media Questions"
1634
+ msgstr "Questions des médias"
1635
+
1636
+ #: templates/polls_results_votes.html:72
1637
+ msgid "Want to run a media poll?"
1638
+ msgstr "Vous voulez lancer un sondage de médias?"
1639
+
1640
+ #: templates/polls_results_votes.html:73
1641
+ msgid "Simply add your images or videos and you'r all set."
1642
+ msgstr "Il suffit d'ajouter vos images ou vidéos et you'r tous ensemble."
1643
+
1644
+ #: templates/polls_results_votes.html:74
1645
+ msgid "Can't get any easier than this."
1646
+ msgstr "Vous ne pouvez pas faire plus simple que cela."
1647
+
1648
+ #: templates/polls_results_votes.html:80
1649
+ msgid "Facebook/Google+"
1650
+ msgstr "Facebook/Google+"
1651
+
1652
+ #: templates/polls_results_votes.html:84
1653
+ msgid "YOP Poll Pro integrates with facebook and google+."
1654
+ msgstr "YOP Sondage Les intègre Pro avec Facebook et Google +."
1655
+
1656
+ #: templates/polls_results_votes.html:85
1657
+ msgid "Let your friends vote with their facebook or google+ account."
1658
+ msgstr "Laissez vos amis votent avec leur facebook ou google + compte."
1659
+
1660
+ #: templates/polls_results_votes.html:92
1661
+ msgid "New Templates"
1662
+ msgstr "Nouveaux Modèles"
1663
+
1664
+ #: templates/polls_results_votes.html:96
1665
+ msgid "Tired of the old templates?"
1666
+ msgstr "Fatigué des anciens modèles?"
1667
+
1668
+ #: templates/polls_results_votes.html:97
1669
+ msgid "We've added new ones. Much better looking."
1670
+ msgstr "Nous avons ajouté de nouveaux. Beaucoup plus beau."
1671
+
1672
+ #: templates/polls_results_votes.html:98
1673
+ msgid "And easy to edit to"
1674
+ msgstr "Et facile à modifier pour"
1675
+
1676
+ #: templates/polls_results_votes.html:99
1677
+ msgid "match your website look."
1678
+ msgstr "Correspondre à votre site look."
1679
+
1680
+ #: templates/polls_results_votes.html:105
1681
+ msgid " Stats"
1682
+ msgstr "Statistiques"
1683
+
1684
+ #: templates/polls_results_votes.html:109
1685
+ msgid "Get the most info out of your voters with our built in reporting tool."
1686
+ msgstr ""
1687
+ "Obtenez le plus d'informations sur vos électeurs avec notre outil de "
1688
+ "reporting intégré."
1689
+
1690
+ #: templates/polls_results_votes.html:115
1691
+ msgid "Premium support"
1692
+ msgstr "Premium support"
1693
+
1694
+ #: templates/polls_results_votes.html:119
1695
+ msgid "Having a hard time integrating yop poll with your website?"
1696
+ msgstr "Ayant du mal à intégrer sondage yop avec votre site web?"
1697
+
1698
+ #: templates/polls_results_votes.html:120
1699
+ msgid " We' re one email distance."
1700
+ msgstr "Nous sommes une distance de courriel."
1701
+
1702
+ #: templates/polls_results_votes.html:175
1703
+ msgid "Ban: IP, UserID"
1704
+ msgstr "Interit : IP, identifiant"
1705
+
1706
+ #: templates/polls_results_votes.html:215
1707
+ msgid "UserID"
1708
+ msgstr "identifiant d'utilisateur"
1709
+
1710
+ #: templates/polls_results_votes.html:383
1711
+ msgid "Other answers"
1712
+ msgstr "Autres réponses"
1713
+
1714
+ #: templates/polls_results_votes.html:390
1715
+ msgid "Custom fields"
1716
+ msgstr "Les champs personnalisés"
1717
+
1718
+ #: templates/polls_results_votes.html:404
1719
+ msgid "Votes ID"
1720
+ msgstr "Votes ID"
1721
+
1722
+ #: templates/polls_results_votes.html:411
1723
+ msgid "User Type"
1724
+ msgstr "Type d'utilisateur"
1725
+
1726
+ #: templates/polls_results_votes.html:651
1727
+ msgid "Search IP"
1728
+ msgstr "Recherche IP"
1729
+
1730
+ #: templates/polls_results_votes.html:661
1731
+ msgid "All Columns"
1732
+ msgstr "Toutes les colonnes"
1733
+
1734
+ #: templates/polls_results_votes.html:751
1735
+ #: templates/polls_results_votes.html:1087
1736
+ msgid "results"
1737
+ msgstr "Résultats"
1738
+
1739
+ #: templates/polls_results_votes.html:881
1740
+ msgid "Poll ID"
1741
+ msgstr "Identifiant du sondage"
1742
+
1743
+ #: templates/polls_results_votes.html:1005
1744
+ msgid "Ban"
1745
+ msgstr "Interdiction"
1746
+
1747
+ #: templates/polls_results_votes.html:1110
1748
+ msgid "Your poll doesn`t exist!"
1749
+ msgstr "Votre sondage n'existe pas"
1750
+
1751
+ #: templates/polls_view.html:16
1752
+ msgid "Use this shortcode to display your poll:"
1753
+ msgstr "Utiliser ce shortcode pour afficher votre sondage :"
1754
+
1755
+ #: templates/polls_view.html:37
1756
+ msgid "Download"
1757
+ msgstr "Télécharger"
1758
+
1759
+ #: templates/polls_view.html:37
1760
+ msgid "YOP Poll User Guide"
1761
+ msgstr "YOP Sondage Guide de l'utilisateur"
1762
+
1763
+ #: templates/polls_view.html:54
1764
+ msgid "Send me the FREE guide!"
1765
+ msgstr "Envoyez-moi le guide GRATUIT!"
1766
+
1767
+ #: templates/polls_view.html:76
1768
+ msgid " Have you found this plugin useful?"
1769
+ msgstr "Avez-vous trouvé ce plugin utile?"
1770
+
1771
+ #: templates/polls_view.html:77
1772
+ msgid " Rate YOP POLL 5★'s on WordPress.org"
1773
+ msgstr "Taux YOP SONDAGE 5 s 'sur ★ WordPress.org"
1774
+
1775
+ #: templates/polls_view.html:97
1776
+ msgid "Search Polls"
1777
+ msgstr "Rechercher un sondage"
1778
+
1779
+ #: templates/polls_view.html:117 templates/polls_view.html:285
1780
+ #: templates/templates_templates.html:216
1781
+ msgid "Clone"
1782
+ msgstr "Dupliquer"
1783
+
1784
+ #: templates/polls_view.html:119
1785
+ msgid "Reset Votes"
1786
+ msgstr "Réinitialiser les votes"
1787
+
1788
+ #: templates/polls_view.html:121
1789
+ msgid "Delete Logs"
1790
+ msgstr "Effacer les logs"
1791
+
1792
+ #: templates/polls_view.html:124
1793
+ msgid "Apply"
1794
+ msgstr "Appliquer"
1795
+
1796
+ #: templates/polls_view.html:133
1797
+ msgid "View All Polls"
1798
+ msgstr "Voir tous les sondages"
1799
+
1800
+ #: templates/polls_view.html:137
1801
+ msgid "Expired"
1802
+ msgstr "Expiré"
1803
+
1804
+ #: templates/polls_view.html:139
1805
+ msgid "Started"
1806
+ msgstr "Débuté"
1807
+
1808
+ #: templates/polls_view.html:141
1809
+ msgid "Not Started"
1810
+ msgstr "Non commencé"
1811
+
1812
+ #: templates/polls_view.html:199
1813
+ msgid "Author"
1814
+ msgstr "Auteur"
1815
+
1816
+ #: templates/polls_view.html:271
1817
+ msgid "Get Code"
1818
+ msgstr "Obtenir le code"
1819
+
1820
+ #: templates/polls_view.html:306
1821
+ msgid "View votes"
1822
+ msgstr "Voir les votes"
1823
+
1824
+ #: templates/polls_view.html:359
1825
+ msgid "No polls found!"
1826
+ msgstr "Aucun sondage trouvé"
1827
+
1828
+ #: templates/pro_after_upgrade.html:12
1829
+ msgid ""
1830
+ "Congrats! You've completed the payment. Click here to proceed with upgrading "
1831
+ "plugin!"
1832
+ msgstr ""
1833
+ "Félicitations! Vous avez terminé le paiement. Cliquez ici pour procéder à la "
1834
+ "mise à niveau plug-in!"
1835
+
1836
+ #: templates/pro_help.html:24 templates/pro_pre_upgrade.html:58
1837
+ msgid ""
1838
+ "I originally had some difficulties with the tool, and I reported them. (This "
1839
+ "is normal for all software.)"
1840
+ msgstr ""
1841
+ "Je ai eu quelques difficultés à l'origine avec l'outil, et je leur ai "
1842
+ "signalé. (Ce est normal pour tous les logiciels.)"
1843
+
1844
+ #: templates/pro_help.html:25 templates/pro_pre_upgrade.html:59
1845
+ msgid ""
1846
+ "After I reported my issues, the support got in touch with me very quickly "
1847
+ "and have the problem resolved."
1848
+ msgstr ""
1849
+ "Après je ai rapporté mes questions, le soutien a pris contact avec moi très "
1850
+ "rapidement et ont le problème résolu."
1851
+
1852
+ #: templates/pro_help.html:26 templates/pro_pre_upgrade.html:60
1853
+ msgid ""
1854
+ "Also, they listened to my suggestions and worked with me to have things "
1855
+ "implemented and resolved."
1856
+ msgstr ""
1857
+ "En outre, ils ont écouté mes suggestions et a travaillé avec moi pour avoir "
1858
+ "des choses mises en œuvre et résolus."
1859
+
1860
+ #: templates/pro_help.html:35 templates/pro_pre_upgrade.html:69
1861
+ msgid "Great support for a very useful product"
1862
+ msgstr "Grand soutien pour un produit très utile"
1863
+
1864
+ #: templates/pro_help.html:38 templates/pro_pre_upgrade.html:72
1865
+ msgid ""
1866
+ "I used yop poll standard and tried upgrading. I ran into an issue and send "
1867
+ "support an email. I got the best suppor timaginable. They immediately "
1868
+ "(within the hour) started working on the issue, solved it and solved a bunch "
1869
+ "of other stuff in the running."
1870
+ msgstr ""
1871
+ "Je ai utilisé la norme de sondage yop et la modernisation essayé. Je ai "
1872
+ "couru dans un problème et envoie soutenir un email. Je ai eu le meilleur "
1873
+ "timaginable de suppor. Ils ont immédiatement (dans l'heure) ont commencé à "
1874
+ "travailler sur la question, résolus et résolu un tas d'autres choses dans la "
1875
+ "course."
1876
+
1877
+ #: templates/pro_help.html:40 templates/pro_pre_upgrade.html:74
1878
+ msgid "Superb Support, absolutely worth paying for!"
1879
+ msgstr "Superbe soutien, absolument la peine de payer pour!"
1880
+
1881
+ #: templates/pro_help.html:43 templates/pro_pre_upgrade.html:77
1882
+ msgid "fredverhoeven, wordpress user"
1883
+ msgstr "fredverhoeven, les utilisateurs de WordPress"
1884
+
1885
+ #: templates/pro_pre_upgrade.html:5
1886
+ msgid ""
1887
+ "If you already have a license, please enter it below to activate YOP Poll "
1888
+ "Pro:"
1889
+ msgstr ""
1890
+ "Si vous avez déjà une licence, se il vous plaît saisir ci-dessous pour "
1891
+ "activer YOP Sondage Pro:"
1892
+
1893
+ #: templates/templates_templates_add_edit.html:23
1894
+ msgid "Template Name"
1895
+ msgstr "Nom du modèle"
1896
+
1897
+ #: templates/templates_templates_add_edit.html:30
1898
+ msgid "Example: Test Poll Template"
1899
+ msgstr "Exemple : Test de modèle de sondage"
1900
+
1901
+ #: templates/templates_templates_add_edit.html:35
1902
+ msgid "Template Before Vote"
1903
+ msgstr "Modèle avant le vote"
1904
+
1905
+ #: templates/templates_templates_add_edit.html:43
1906
+ msgid "Template After Vote"
1907
+ msgstr "Modèle après le vote"
1908
+
1909
+ #: templates/templates_templates_add_edit.html:54
1910
+ msgid "Template Before Start Date"
1911
+ msgstr "Modèle avant la date de début"
1912
+
1913
+ #: templates/templates_templates_add_edit.html:67
1914
+ msgid "Template After End Date"
1915
+ msgstr "Modèle après la date de fin"
1916
+
1917
+ #: templates/templates_templates_add_edit.html:80
1918
+ msgid "Css"
1919
+ msgstr "Css"
1920
+
1921
+ #: templates/templates_templates_add_edit.html:93
1922
+ msgid "JavaScript"
1923
+ msgstr "JavaScript"
1924
+
1925
+ #: templates/templates_templates_add_edit.html:152
1926
+ msgid "Tools"
1927
+ msgstr "Outils"
1928
+
1929
+ #: templates/templates_templates_add_edit.html:160
1930
+ msgid "Template Author"
1931
+ msgstr "Auteur du modèle"
1932
+
1933
+ #: templates/templates_templates_add_edit.html:175
1934
+ msgid "Select Template For Reset"
1935
+ msgstr "Sélectionner un modèle pour la réinitialisation"
1936
+
1937
+ #: templates/templates_templates_add_edit.html:203
1938
+ msgid "Reset Poll Template"
1939
+ msgstr "Réinitialiser le gabarit de sondage"
1940
+
1941
+ #~ msgid "Please wait a moment while we process your request..."
1942
+ #~ msgstr ""
1943
+ #~ "S'il vous plaît attendez un moment pendant que nous traitons votre "
1944
+ #~ "demande ..."
1945
+
1946
+ #~ msgid "An error has occured..."
1947
+ #~ msgstr "Une erreur est survenue..."
1948
+
1949
+ #~ msgid "You are not allowed to access this request."
1950
+ #~ msgstr "Vous n'êtes pas autorisé à accéder à cette demande."
1951
+
1952
+ #~ msgid "Request Failed"
1953
+ #~ msgstr "Échec de la demande"
1954
+
1955
+ #~ msgid "You must choose a yop poll!"
1956
+ #~ msgstr "Vous devez choisir un sondage Yop-Poll"
1957
+
1958
+ #~ msgid "Invalid Yop Poll! Please try again!"
1959
+ #~ msgstr "Sondage Yop-Poll non-valide. S'il vous plaît essayer de nouveau!"
1960
+
1961
+ #~ msgid "You must choose a ban type!"
1962
+ #~ msgstr "Vous devez choisir un type d'interdiction !"
1963
+
1964
+ #~ msgid "You must choose a ban period!"
1965
+ #~ msgstr "Vous devez choisir une période d'interdiction !"
1966
+
1967
+ #~ msgid "You must choose a ban unit!"
1968
+ #~ msgstr "Vous devez choisir une unité d'interdiction !"
1969
+
1970
+ #~ msgid "You must choose a ban value!"
1971
+ #~ msgstr "Vous devez choisir une valeur d'interdiction!"
1972
+
1973
+ #~ msgid "Ban added"
1974
+ #~ msgstr "Interdiction ajoutée."
1975
+
1976
+ #~ msgid "Could not insert ban into database! Please try again!"
1977
+ #~ msgstr ""
1978
+ #~ "Impossible d'insérer l'interdiction dans la base de données. S'il vous "
1979
+ #~ "plaît essayer de nouveau!"
1980
+
1981
+ #~ msgid "You do not have enough permission to add a ban"
1982
+ #~ msgstr ""
1983
+ #~ "Vous ne disposez pas des permissions nécessaires pour ajouter une "
1984
+ #~ "interdiction."
1985
+
1986
+ #~ msgid "Ban deleted"
1987
+ #~ msgstr "Interdiction effacée."
1988
+
1989
+ #~ msgid "Could not delete ban from database! Please try again!"
1990
+ #~ msgstr ""
1991
+ #~ "Impossible de supprimer l'interdiction de la base de données. S'il vous "
1992
+ #~ "plaît, essayer de nouveau."
1993
+
1994
+ #~ msgid "You do not have enough permission to delete a ban"
1995
+ #~ msgstr ""
1996
+ #~ "Vous ne disposez pas des permissions nécessaires pour supprimer une "
1997
+ #~ "interdiction."
1998
+
1999
+ #~ msgid "You must choose a ban type"
2000
+ #~ msgstr "Vous devez choisir un type d'interdiction"
2001
+
2002
+ #~ msgid "Ban edited"
2003
+ #~ msgstr "Interdiction éditée."
2004
+
2005
+ #~ msgid "Could not edit ban from database! Please try again!"
2006
+ #~ msgstr ""
2007
+ #~ "Impossible de modifier l'interdiction par la base de données. S'il vous "
2008
+ #~ "plaît, essayer de nouveau."
2009
+
2010
+ #~ msgid "You do not have enough permission to edit a ban"
2011
+ #~ msgstr ""
2012
+ #~ "Vous ne disposez des permissions nécessaires pour éditer cette "
2013
+ #~ "interdiction."
2014
+
2015
+ #~ msgid "You do not have enough permission to import a Wp-poll"
2016
+ #~ msgstr ""
2017
+ #~ "Vous ne disposez pas des permissions nécessaires pour importer un Wp-poll."
2018
+
2019
+ #~ msgid "Polls imported!"
2020
+ #~ msgstr "Sondage importé."
2021
+
2022
+ #~ msgid "Could not import polls into database!"
2023
+ #~ msgstr "Impossible d'importer le sondage dans la base de données."
2024
+
2025
+ #~ msgid "You do not have enough permission to delete a log"
2026
+ #~ msgstr ""
2027
+ #~ "Vous ne disposez pas des permissions nécessaires pour supprimer un "
2028
+ #~ "registre."
2029
+
2030
+ #~ msgid "Log deleted"
2031
+ #~ msgstr "Registre effacé."
2032
+
2033
+ #~ msgid "Could not delete log from database! Please try again!"
2034
+ #~ msgstr ""
2035
+ #~ "Impossible de supprimer le registre de la base de données. S'il vous "
2036
+ #~ "plaît, essayer de nouveau."
2037
+
2038
+ #~ msgid "You do not have enough permission to delete a log!"
2039
+ #~ msgstr ""
2040
+ #~ "Vous ne disposez pas des permissions nécessaires pour supprimer un "
2041
+ #~ "registre."
2042
+
2043
+ #~ msgid "You need permissions to activate this plugin"
2044
+ #~ msgstr "Vous devez avoir la permissions d'activer cet extension."
2045
+
2046
+ #~ msgid "Error: Wordpress Activation Permissions Problem"
2047
+ #~ msgstr "Erreur : Wordpress problème d'activation de permissions."
2048
+
2049
+ #~ msgid "You need at least Wordpress version %s to use this plugin"
2050
+ #~ msgstr ""
2051
+ #~ "Vous devez minimalement avoir la version %s de Wordpress pour utiliser "
2052
+ #~ "cet extension."
2053
+
2054
+ #~ msgid "Error: Wordpress Version Problem"
2055
+ #~ msgstr "Erreur : Problème de version de Wordpress."
2056
+
2057
+ #~ msgid "Bad Request!"
2058
+ #~ msgstr "Mauvaise requête"
2059
+
2060
+ #~ msgid "Changes Saved!"
2061
+ #~ msgstr "Modifications enregistrées!"
2062
+
2063
+ #~ msgid "View Results"
2064
+ #~ msgstr "Voir les résultats"
2065
+
2066
+ #~ msgid "Back to vote"
2067
+ #~ msgstr "Retour au vote"
2068
+
2069
+ #~ msgid "Poll total votes: %POLL-TOTAL-VOTES%"
2070
+ #~ msgstr "Total de vote pour %POLL-TOTAL-VOTES%"
2071
+
2072
+ #~ msgid "Poll total answers: %POLL-TOTAL-ANSWERS%"
2073
+ #~ msgstr "Réponses totales du sondage : %POLL-TOTAL-ANSWERS%"
2074
+
2075
+ #~ msgid "Thank you for voting!"
2076
+ #~ msgstr "Merci d'avoir voté !"
2077
+
2078
+ #~ msgid "Just casted an YOP Poll vote on"
2079
+ #~ msgstr "Viens tout juste de soumettre un sondage Yop Poll sur"
2080
+
2081
+ #~ msgid "Vote as G+ User"
2082
+ #~ msgstr "Voter en tant qu'utilisateur G+"
2083
+
2084
+ #~ msgid "Other"
2085
+ #~ msgstr "Autre"
2086
+
2087
+ #~ msgid "New Yop Poll Vote"
2088
+ #~ msgstr "Nouveau vote Yop-Poll"
2089
+
2090
+ #~ msgid "Log added"
2091
+ #~ msgstr "Registre ajouté"
2092
+
2093
+ #~ msgid "Could not insert log into database!"
2094
+ #~ msgstr "Impossible d'insérer dans la base de données"
2095
+
2096
+ #~ msgid "Votes Added!"
2097
+ #~ msgstr "Votes ajoutés"
2098
+
2099
+ #~ msgid "Could not insert vote into database!"
2100
+ #~ msgstr "Impossible d'insérer le vote dans la base de données !"
2101
+
2102
+ #~ msgid "Yop Poll"
2103
+ #~ msgstr "Yop Poll"
2104
+
2105
+ #~ msgid "&laquo; Previous"
2106
+ #~ msgstr "&laquo; Précédent"
2107
+
2108
+ #~ msgid "Next &raquo;"
2109
+ #~ msgstr "Suivant &raquo;"
2110
+
2111
+ #~ msgid "Edit Poll"
2112
+ #~ msgstr "Éditer le sondage"
2113
+
2114
+ #~ msgid "Custom Text Field"
2115
+ #~ msgstr "Champ de texte personnalisé"
2116
+
2117
+ #~ msgid "Required"
2118
+ #~ msgstr "Requis"
2119
+
2120
+ #~ msgid "More Options"
2121
+ #~ msgstr "Plus d'options"
2122
+
2123
+ #~ msgid "Change Number Of Votes"
2124
+ #~ msgstr "Modifier le nombre de votes"
2125
+
2126
+ #~ msgid "Change Number Of Total Votes"
2127
+ #~ msgstr "Modifier le nombre total de votes"
2128
+
2129
+ #~ msgid "Change Number Of Total Answers"
2130
+ #~ msgstr "Modifier le nombre total de réponses"
2131
+
2132
+ #~ msgid "Make this the default answer"
2133
+ #~ msgstr "Choisir cette réponse par défaut"
2134
+
2135
+ #~ msgid "Use Template Result Bar"
2136
+ #~ msgstr "Utiliser la barre de résultat du modèle"
2137
+
2138
+ #~ msgid "Yop Poll Bar Style"
2139
+ #~ msgstr "Style de la barre Yop Poll"
2140
+
2141
+ #~ msgid "Yop Poll Bar Preview"
2142
+ #~ msgstr "Aperçu de la barre Yop Poll"
2143
+
2144
+ #~ msgid "You are not allowed to edit this item."
2145
+ #~ msgstr "Vous n'êtes pas autorisé à modifier cet item."
2146
+
2147
+ #~ msgid "You are not allowed to clone this item."
2148
+ #~ msgstr "Vous n'êtes pas autorisé à dupliquer cet item."
2149
+
2150
+ #~ msgid "Result deleted"
2151
+ #~ msgstr "Résultat effacé"
2152
+
2153
+ #~ msgid "Could not delete result from database! Please try again!"
2154
+ #~ msgstr ""
2155
+ #~ "Impossible d'effacer le résultat de la base de données. S'il vous plaît "
2156
+ #~ "essayer de nouveau."
2157
+
2158
+ #~ msgid "You are not allowed to reset votes for this poll."
2159
+ #~ msgstr "Vous n'êtes pas autorisé à réinitialiser les votes de ce sondage."
2160
+
2161
+ #~ msgid ""
2162
+ #~ "Please wait until we redirect you to paypal.com. If you are not "
2163
+ #~ "redirected within 10 seconds, please click "
2164
+ #~ msgstr ""
2165
+ #~ "S'il vous plaît attendre jusqu'à ce que nous vous soyez redirigé vers "
2166
+ #~ "paypal.com. Si vous n'êtes pas redirigé dans les 10 secondes, s'il vous "
2167
+ #~ "plaît cliquez"
2168
+
2169
+ #~ msgid "Loading"
2170
+ #~ msgstr "Chargement"
2171
+
2172
+ #~ msgid "You do not have enough permission to add a template"
2173
+ #~ msgstr ""
2174
+ #~ "Vous n'avez pas les permissions nécessaires pour ajouter un gabarit."
2175
+
2176
+ #~ msgid "Template deleted"
2177
+ #~ msgstr "Gabarit effacé"
2178
+
2179
+ #~ msgid "Could not delete template from database! Please try again!"
2180
+ #~ msgstr ""
2181
+ #~ "Impossible de supprimer le gabarit à partir de la base de données ! S'il "
2182
+ #~ "vous plaît essayer de nouveau."
2183
+
2184
+ #~ msgid "You do not have enough permission to delete a template"
2185
+ #~ msgstr "Vous n'avez les permission de supprimer un modèle"
2186
+
2187
+ #~ msgid "Template cloned!"
2188
+ #~ msgstr "Gabarit dupliqué."
2189
+
2190
+ #~ msgid "Could not clone template from database! Please try again!"
2191
+ #~ msgstr "Vous n'avez pas les permissions pour supprimer un gabarit"
2192
+
2193
+ #~ msgid "You do not have enough permission to clone a template"
2194
+ #~ msgstr "Vous n'avez pas les permissions pour dupliquer un gabarit"
2195
+
2196
+ #~ msgid "You are not allowed to reset this item."
2197
+ #~ msgstr "Vous n'êtes pas autorisé à réinitialiser cet item."
2198
+
2199
+ #~ msgid "Template reseted!"
2200
+ #~ msgstr "Gabarit réinitialisé"
2201
+
2202
+ #~ msgid "Could not resete template in database! Please try again!"
2203
+ #~ msgstr ""
2204
+ #~ "Impossible de réinitialiser ce gabarit dans la base de données! S'il vous "
2205
+ #~ "plaît essayer de nouveau!"
2206
+
2207
+ #~ msgid "This template already exists! Please choose another name!"
2208
+ #~ msgstr "Ce gabarit existe déjà. S'il vous plaît choisir un autre nom."
2209
+
2210
+ #~ msgid "Please enter a template name!"
2211
+ #~ msgstr "S'il vous plaît entrer un nom de gabarit"
2212
+
2213
+ #~ msgid "Template added!"
2214
+ #~ msgstr "Gabarit ajouté"
2215
+
2216
+ #~ msgid "Could not add template in database! Please try again!"
2217
+ #~ msgstr ""
2218
+ #~ "Impossible d'ajouter ce gabarit dans la base de données! S'il vous plaît "
2219
+ #~ "essayer de nouveau!"
2220
+
2221
+ #~ msgid "Template edited!"
2222
+ #~ msgstr "Gabarit édité"
2223
+
2224
+ #~ msgid "Could not edit template in database! Please try again!"
2225
+ #~ msgstr ""
2226
+ #~ "Impossible d'éditer ce gabarit dans la base de données. S'il vous plaît "
2227
+ #~ "essayer de nouveau"
2228
+
2229
+ #~ msgid "Yop Poll Widget"
2230
+ #~ msgstr "Widget Yop Poll"
2231
+
2232
+ #~ msgid "Never Expire"
2233
+ #~ msgstr "N'expire jamais"
2234
+
2235
+ #~ msgid "Enter the code"
2236
+ #~ msgstr "Entrer le code"
2237
+
2238
+ #~ msgid "An Error Has Occured!"
2239
+ #~ msgstr "Une erreur s'est produite!"
2240
+
2241
+ #~ msgid "Facebook user not found"
2242
+ #~ msgstr "Utilisateur Facebook introuvable"
2243
+
2244
+ #~ msgid ""
2245
+ #~ "You Don`t Have Permission to Vote! You must authorize YOP POLL "
2246
+ #~ "application in your facebook account!"
2247
+ #~ msgstr ""
2248
+ #~ "Vous n'avez pas la permission de voter! Vous devez autoriser "
2249
+ #~ "l'application YOP POLL dans votre compte facebook!"
2250
+
2251
+ #~ msgid "Facebook not authorized"
2252
+ #~ msgstr "Facebook n'est pas autorisé"
2253
+
2254
+ #~ msgid "You Don`t Have Permission to Vote!"
2255
+ #~ msgstr "Vous n'avez pas la permission de voter!"
2256
+
2257
+ #~ msgid "Google permission denied"
2258
+ #~ msgstr "Permission Google refusé"
2259
+
2260
+ #~ msgid "Google user not found"
2261
+ #~ msgstr "Utilisateur Google introuvable"
2262
+
2263
+ #~ msgid "This poll is closed!"
2264
+ #~ msgstr "Ce sondage est fermé."
2265
+
2266
+ #~ msgid "Poll Closed"
2267
+ #~ msgstr "Sondage fermé."
2268
+
2269
+ #~ msgid "Other answer for question"
2270
+ #~ msgstr "Autre réponse à la question"
2271
+
2272
+ #~ msgid "could not be inserted!"
2273
+ #~ msgstr "ne pouvait pas être inséré!"
2274
+
2275
+ #~ msgid " could not be inserted"
2276
+ #~ msgstr " ne pouvait pas être inséré"
2277
+
2278
+ #~ msgid "Other answer from question"
2279
+ #~ msgstr "Autre réponse de la question"
2280
+
2281
+ #~ msgid "is empty"
2282
+ #~ msgstr "est vide"
2283
+
2284
+ #~ msgid "Too few answers selected for question"
2285
+ #~ msgstr "Trop peu de réponses sélectionnés pour la question"
2286
+
2287
+ #~ msgid "! Only more than"
2288
+ #~ msgstr "! Seulement plus que"
2289
+
2290
+ #~ msgid "answers allowed!"
2291
+ #~ msgstr "réponses possibles!"
2292
+
2293
+ #~ msgid "Too many answers selected for question"
2294
+ #~ msgstr "Trop de réponses sélectionnés pour la question"
2295
+
2296
+ #~ msgid "! Only"
2297
+ #~ msgstr "! Seulement"
2298
+
2299
+ #~ msgid "could not be inserted"
2300
+ #~ msgstr "ne pouvait pas être inséré"
2301
+
2302
+ #~ msgid "Other answer from question "
2303
+ #~ msgstr "Autre réponse de la question"
2304
+
2305
+ #~ msgid "empty"
2306
+ #~ msgstr "vide"
2307
+
2308
+ #~ msgid "from question"
2309
+ #~ msgstr "de la question"
2310
+
2311
+ #~ msgid "is required"
2312
+ #~ msgstr "est requis"
2313
+
2314
+ #~ msgid "required"
2315
+ #~ msgstr "requis"
2316
+
2317
+ #~ msgid "is missing"
2318
+ #~ msgstr "est manquant"
2319
+
2320
+ #~ msgid "missing"
2321
+ #~ msgstr "manquant"
2322
+
2323
+ #~ msgid "Custom fields from question"
2324
+ #~ msgstr "Champ personnalisé de la question"
2325
+
2326
+ #~ msgid "are missing"
2327
+ #~ msgstr "sont manquantes"
2328
+
2329
+ #~ msgid "Incorrect security code entered!"
2330
+ #~ msgstr "Code de sécurité incorrect !"
2331
+
2332
+ #~ msgid "Incorrect security code entered"
2333
+ #~ msgstr "Code de sécurité incorrect !"
2334
+
2335
+ #~ msgid "No vote registered!"
2336
+ #~ msgstr "Aucun vote enregistré!"
2337
+
2338
+ #~ msgid "No vote registered"
2339
+ #~ msgstr "Aucun vote enregistré!"
2340
+
2341
+ #~ msgid "No answer selected for question"
2342
+ #~ msgstr "Aucune réponse sélectionnée pour la question"
2343
+
2344
+ #~ msgid "You have run out of votes!"
2345
+ #~ msgstr "Vous n'avez plus de votes!"
2346
+
2347
+ #~ msgid "Run out of votes"
2348
+ #~ msgstr "À court de vote"
2349
+
2350
+ #~ msgid "You Already voted!"
2351
+ #~ msgstr "Vous avez déjà voté!"
2352
+
2353
+ #~ msgid "Already Voted"
2354
+ #~ msgstr "Déjà voté"
2355
+
2356
+ #~ msgid "You can vote once the poll starts!"
2357
+ #~ msgstr "Vous pouvez voter après le commencement du sondage!"
2358
+
2359
+ #~ msgid "Poll not started"
2360
+ #~ msgstr "Sondage pas démarré"
2361
+
2362
+ #~ msgid "You are not allowed to vote!"
2363
+ #~ msgstr "Vous n'êtes pas autorisé à voter!"
2364
+
2365
+ #~ msgid "Not allowed to vote"
2366
+ #~ msgstr "Non autorisé à voter"
2367
+
2368
+ #~ msgid "Bad request"
2369
+ #~ msgstr "Mauvaise requête"
2370
+
2371
+ #~ msgid "Success"
2372
+ #~ msgstr "Succès"
2373
+
2374
+ #~ msgid "Poll title is missing!"
2375
+ #~ msgstr "Le titre du sondage est manquant"
2376
+
2377
+ #~ msgid "Custom Field"
2378
+ #~ msgstr "Champ personnalisé"
2379
+
2380
+ #~ msgid "from Question"
2381
+ #~ msgstr "de la Question"
2382
+
2383
+ #~ msgid "is empty!"
2384
+ #~ msgstr "est vide !"
2385
+
2386
+ #~ msgid "Please add a question!"
2387
+ #~ msgstr "S'il vous plaît jaouté une question !"
2388
+
2389
+ #~ msgid "This poll already exists! Please choose another name!"
2390
+ #~ msgstr "Ce sondage existe déjà! S'il vous plaît choisir un autre nom!"
2391
+
2392
+ #~ msgid "Poll successfully saved!"
2393
+ #~ msgstr "Sondage sauvegardé avec succès!"
2394
+
2395
+ #~ msgid "Poll couldn`t be saved!"
2396
+ #~ msgstr "Sondage n'a pas pu être sauvegardé !"
2397
+
2398
+ #~ msgid ""
2399
+ #~ "Option 'Poll Archive Order' NOT Updated! You must fill in with a numeric "
2400
+ #~ "value!"
2401
+ #~ msgstr ""
2402
+ #~ "Option 'Commande d'archive de sondage' pas mis à jour! Vous devez remplir "
2403
+ #~ "avec une valeur numérique."
2404
+
2405
+ #~ msgid ""
2406
+ #~ "Option 'Show Poll in Archive' NOT Updated! Please choose between 'yes' or "
2407
+ #~ "'no'!"
2408
+ #~ msgstr ""
2409
+ #~ "Option 'Afficher le sondage dans archive 'pas mis à jour! S'il vous plaît "
2410
+ #~ "choisir entre «oui» ou «non»"
2411
+
2412
+ #~ msgid "'Other Answer' will be autoselected"
2413
+ #~ msgstr "'Autres réponses' sera automatiquement sélectionné"
2414
+
2415
+ #~ msgid "Poll Order Rule"
2416
+ #~ msgstr "Ordre des règles de sondage"
2417
+
2418
+ #~ msgid "Please wait..."
2419
+ #~ msgstr "S'il vous plaît attendre..."
2420
+
2421
+ #~ msgid "Questions & Answers"
2422
+ #~ msgstr "Questions et réponses"
2423
+
2424
+ #~ msgid "Only for logged users"
2425
+ #~ msgstr "Pour utilisateurs connectés seulement"
2426
+
2427
+ #~ msgid "Current Server Time"
2428
+ #~ msgstr "Heure actuelle du serveur"
2429
+
2430
+ #~ msgid "Description:"
2431
+ #~ msgstr "Description:"
2432
+
2433
+ #~ msgid "Show description"
2434
+ #~ msgstr "Afficher la description"
2435
+
2436
+ #~ msgid "Delete Question"
2437
+ #~ msgstr "Supprimer la Question"
2438
+
2439
+ #~ msgid "Add the values submitted in Other as answers"
2440
+ #~ msgstr "Ajoutez les valeurs présentées dans 'Autres comme réponses'"
2441
+
2442
+ #~ msgid ""
2443
+ #~ "all the values submitted in this field by your users will be "
2444
+ #~ "automatically added as an available Answer"
2445
+ #~ msgstr ""
2446
+ #~ "toutes les valeurs présentées dans ce domaine par vos utilisateurs seront "
2447
+ #~ "automatiquement ajoutée comme réponse disponibles"
2448
+
2449
+ #~ msgid ""
2450
+ #~ "all the values submitted in this field by your users will be "
2451
+ #~ "automatically added as an available Answer "
2452
+ #~ msgstr ""
2453
+ #~ "toutes les valeurs présentées dans ce domaine par vos utilisateurs seront "
2454
+ #~ "automatiquement ajoutée comme réponse disponibles"
2455
+
2456
+ #~ msgid "Results for:"
2457
+ #~ msgstr "Résultats pour:"
2458
+
2459
+ #~ msgid "Show Other Answers Value"
2460
+ #~ msgstr "Afficher les autres valeurs de réponses"
2461
+
2462
+ #~ msgid "View votes evolution"
2463
+ #~ msgstr "Voir votes évolution"
2464
+
2465
+ #~ msgid "View votes per country"
2466
+ #~ msgstr "Voir votes par pays"
2467
+
2468
+ #~ msgid "Social Chart"
2469
+ #~ msgstr "Charte sociale"
2470
+
2471
+ #~ msgid "Line"
2472
+ #~ msgstr "Ligne"
2473
+
2474
+ #~ msgid "Pie3d"
2475
+ #~ msgstr "Pointe de tarte 3D"
2476
+
2477
+ #~ msgid "View Chart"
2478
+ #~ msgstr "Voir Graphique"
2479
+
2480
+ #~ msgid "All Answers"
2481
+ #~ msgstr "Toutes les réponses"
2482
+
2483
+ #~ msgid "No answers defined!"
2484
+ #~ msgstr "Aucune réponse définies"
2485
+
2486
+ #~ msgid "Age"
2487
+ #~ msgstr "Âge"
2488
+
2489
+ #~ msgid "Gender"
2490
+ #~ msgstr "Sexe"
2491
+
2492
+ #~ msgid "Questions Other Charts"
2493
+ #~ msgstr "Charte d'Autres questions"
2494
+
2495
+ #~ msgid "Show more results"
2496
+ #~ msgstr "Afficher plus de résultats"
2497
+
2498
+ #~ msgid "Show more other answers"
2499
+ #~ msgstr "Afficher plus d'autres réponses"
2500
+
2501
+ #~ msgid "No other answers defined!"
2502
+ #~ msgstr "Aucune autre réponse de définies"
2503
+
2504
+ #~ msgid "#"
2505
+ #~ msgstr "#"
2506
+
2507
+ #~ msgid "Reset Stats"
2508
+ #~ msgstr "Réinitialiser les statistiques"
2509
+
2510
+ #~ msgid ""
2511
+ #~ "Congrats! You've completed the payment. Click here to proceed with "
2512
+ #~ "upgrading plugin"
2513
+ #~ msgstr ""
2514
+ #~ "Félicitations! Vous avez terminé le paiement. Cliquez ici pour procéder à "
2515
+ #~ "la mise à niveau de l'extension"
2516
+
2517
+ #~ msgid "Template After Vote Chart Results"
2518
+ #~ msgstr "Modèle Après Résultats Vote Graphique"
2519
+
2520
+ #~ msgid "Add Template"
2521
+ #~ msgstr "Ajouter un gabarit"
2522
+
2523
+ #~ msgid "Save changes"
2524
+ #~ msgstr "Enregistrer les modifications"
2525
+
2526
+ #~ msgid "Print Votes"
2527
+ #~ msgstr "Imprimer les votes"
2528
+
2529
+ #~ msgid "Search Wp Polls"
2530
+ #~ msgstr "Rechercher WP Sondages "
2531
+
2532
+ #~ msgid "Options"
2533
+ #~ msgstr "Options"
2534
+
2535
+ #~ msgid "Insert Poll"
2536
+ #~ msgstr "Insérer un sondage"
2537
+
2538
+ #~ msgid "Error: Invalid Yop Poll!\\n\\nPlease choose the poll again:\\n\\n"
2539
+ #~ msgstr ""
2540
+ #~ "Erreur : Sondage Yop invalide!\\n\\n S'il vous plaît choisir à nouveau le "
2541
+ #~ "sondage."
2542
+
2543
+ #~ msgid "Poll to Display"
2544
+ #~ msgstr "Sondage à afficher"
2545
+
2546
+ #~ msgid "Display Random Poll"
2547
+ #~ msgstr "Affichage aléatoire des sondage"
2548
+
2549
+ #~ msgid "Display Latest Poll"
2550
+ #~ msgstr "Afficher le plus récent sondage"
2551
+
2552
+ #~ msgid "Display Current Active Poll"
2553
+ #~ msgstr "Afficher le sondage présentement actif"
2554
+
2555
+ #~ msgid "Display results only"
2556
+ #~ msgstr "Afficher les résultats seulement"
2557
+
2558
+ #~ msgid "Close"
2559
+ #~ msgstr "Fermer"
2560
+
2561
+ #~ msgid "Please insert the poll ID:\\n\\n"
2562
+ #~ msgstr "S'il vous plaît, insérer le numéro de sondage"
2563
+
2564
+ #~ msgid ""
2565
+ #~ "Error: Poll Id must be numeric!\\n\\nPlease insert the poll ID Again:\\n"
2566
+ #~ "\\n"
2567
+ #~ msgstr "Erreur : L'identifiant du sondage doit être numérique"
2568
+
2569
+ #~ msgid "You must choose a yop poll! "
2570
+ #~ msgstr "Vous devez choisir un sondage yop poll !"
2571
+
2572
+ #~ msgid "Invalid Yop Poll! Please try again! "
2573
+ #~ msgstr "Yop Poll invalid. S'il vous plaît essayer de nouveau ! "
2574
+
2575
+ #~ msgid "&laquo;"
2576
+ #~ msgstr "&laquo;"
2577
+
2578
+ #~ msgid "&raquo;"
2579
+ #~ msgstr "&raquo;"
2580
+
2581
+ #~ msgid "POLL Name"
2582
+ #~ msgstr "Nom du sondage"
2583
+
2584
+ #~ msgid ""
2585
+ #~ "It looks like you've been enjoying YOP POLL Plugin for at least 30 days."
2586
+ #~ msgstr ""
2587
+ #~ "Il semble que vous appréciez l'extension YOP Poll depuis au moins 30 "
2588
+ #~ "jours."
2589
+
2590
+ #~ msgid ""
2591
+ #~ "Would you consider a small donation to help support continued development "
2592
+ #~ "of the plugin?"
2593
+ #~ msgstr ""
2594
+ #~ "Envisageriez-vous un petit don pour aider à soutenir la poursuite du "
2595
+ #~ "développement de cet extension ?"
2596
+
2597
+ #~ msgid "Support This Plugin"
2598
+ #~ msgstr "Supportez cet extension"
2599
+
2600
+ #~ msgid "Rate it 5&#9733;'s"
2601
+ #~ msgstr "Notez le 5&#9733;'s"
2602
+
2603
+ #~ msgid "Tell Your Followers"
2604
+ #~ msgstr "Avisez vos abonnés."
2605
+
2606
+ #~ msgid "Don't Bug Me Again"
2607
+ #~ msgstr "Ne plus m'embêter."
2608
+
2609
+ #~ msgid "Option \"User Interface Type\" Updated!"
2610
+ #~ msgstr "Option \"Type d'interface d'utilisateur\" mise à jour."
2611
+
2612
+ #~ msgid "Option \"Poll Start Date\" Updated!"
2613
+ #~ msgstr "Option \"Date de début du sondage\" mise à jour."
2614
+
2615
+ #~ msgid "Option \"Poll End Date\" Updated!"
2616
+ #~ msgstr "Option \"Date de fin du sondage\" mise à jour."
2617
+
2618
+ #~ msgid "Option \"Use Facebook Integration\" Updated!"
2619
+ #~ msgstr "Option \"Utiliser l'intégration Facebook\" mise à jour."
2620
+
2621
+ #~ msgid "Option \"Facebook App ID\" Updated!"
2622
+ #~ msgstr "Option \"Identifiant Facebook App\" mise à jour."
2623
+
2624
+ #~ msgid "Option \"Use Google+ Integration\" Updated!"
2625
+ #~ msgstr "Option \"Utiliser l'intégration Google+\" mise à jour."
2626
+
2627
+ #~ msgid "Option \"Google+ App ID\" Updated!"
2628
+ #~ msgstr "Option \"Identifiant Google+ App\" mise à jour."
2629
+
2630
+ #~ msgid "Option \"Google+ App Secret\" Updated!"
2631
+ #~ msgstr "Option \"Google+ App Secret\" mise à jour."
2632
+
2633
+ #~ msgid "Option \"View Results\" Updated!"
2634
+ #~ msgstr "Option \"Voir les résultats\" mise à jour."
2635
+
2636
+ #~ msgid "Option \"View Results Custom Date\" Updated!"
2637
+ #~ msgstr "Option \"Voir les résultats par date personnalisées\" mise à jour."
2638
+
2639
+ #~ msgid "Option \"View Results Custom Date\" Not Updated! Field is empty"
2640
+ #~ msgstr ""
2641
+ #~ "Option \"Voir les résultats par date personnalisées\" non mise à jour. Le "
2642
+ #~ "champ est vide."
2643
+
2644
+ #~ msgid "Option \"View Results Permissions\" Updated!"
2645
+ #~ msgstr "Option \"Voir les résultats de permissions\" mise à jour"
2646
+
2647
+ #~ msgid "Option \"View Results Type\" Updated!"
2648
+ #~ msgstr "Option \"Voir les types de résultats\" mise à jour"
2649
+
2650
+ #~ msgid "Option \"Poll Answer Result Label\" Updated!"
2651
+ #~ msgstr "Option \"Étiquette de résultat de réponse du sondage\" mise à jour."
2652
+
2653
+ #~ msgid "Option \"Vote Button Label\" Updated!"
2654
+ #~ msgstr "Option \"Étiquette du bouton de vote\" mise à jour."
2655
+
2656
+ #~ msgid "Option \"View Results Link\" Updated!"
2657
+ #~ msgstr "Option \"Voir le lien des résultats \" mise à jour."
2658
+
2659
+ #~ msgid "Option \"View Results Link Label\" Updated!"
2660
+ #~ msgstr "Option \"Voir l'étiquette du lien de résultats\" mise à jour."
2661
+
2662
+ #~ msgid "Option \"View Back To Vote Link\" Updated!"
2663
+ #~ msgstr "Option \"Voir le lien Retour au vote\" mise à jour."
2664
+
2665
+ #~ msgid "Option \"View Back to Vote Link Label\" Updated!"
2666
+ #~ msgstr "Option \"Voir l'étiquette du lien Retour au vote\" mise à jour."
2667
+
2668
+ #~ msgid "Option \"View Total Votes\" Updated!"
2669
+ #~ msgstr "Option \"Voir total des votes\" mise à jour."
2670
+
2671
+ #~ msgid "Option \"View Total Votes Label\" Updated!"
2672
+ #~ msgstr "Option \"Voir l'étiquette total des votes\" mise à jour."
2673
+
2674
+ #~ msgid "Option \"View Total Answers\" Updated!"
2675
+ #~ msgstr "Option \"Voir le total de réponses\" mise à jour"
2676
+
2677
+ #~ msgid "Option \"View Total Answers Label\" Updated!"
2678
+ #~ msgstr "Option \"View l'étiquette Total de réponses\" mise à jour."
2679
+
2680
+ #~ msgid "Option \"Message After Vote\" Updated!"
2681
+ #~ msgstr "Option \"Message après vote\" mise à jour."
2682
+
2683
+ #~ msgid "Option \"Vote Permissions\" Updated!"
2684
+ #~ msgstr "Option \"Permissions de vote\" mise à jour."
2685
+
2686
+ #~ msgid "Option \"Vote as Facebook User\" Updated!"
2687
+ #~ msgstr "Option \"Voter en tant qu'utilisateur Facebook\" mise à jour."
2688
+
2689
+ #~ msgid "Option \"Vote as Facebook User Buton Label\" Updated!"
2690
+ #~ msgstr ""
2691
+ #~ "Option \"Étiquette du bouton Voter en tant qu'utilisateur Facebook\" mise "
2692
+ #~ "à jour."
2693
+
2694
+ #~ msgid "Option \"Facebook Share after vote\" Updated!"
2695
+ #~ msgstr "Option \"Partage Facebook après le vote\" mise à jour."
2696
+
2697
+ #~ msgid "Option \"Facebook Share Description\" Updated!"
2698
+ #~ msgstr "Option \"Description du partage Facebook\" mise à jour."
2699
+
2700
+ #~ msgid "Option \"Facebook Show comments Widget\" Updated!"
2701
+ #~ msgstr "Option \"Montrer les commentaires Facebook du Widget\" mise à jour."
2702
+
2703
+ #~ msgid "Option \"Vote as Google+ User\" Updated!"
2704
+ #~ msgstr "Option \"Voter en tant qu'utilisateur Google+\" mise à jour."
2705
+
2706
+ #~ msgid "Option \"Vote as Google+ User Buton Label\" Updated!"
2707
+ #~ msgstr ""
2708
+ #~ "Option \"Étiquette du bouton Voter en tant qu'utilisateur Google+\" mise "
2709
+ #~ "à jour."
2710
+
2711
+ #~ msgid "Option \"Show +1 Button after vote\" Updated!"
2712
+ #~ msgstr "Option \"Montrer bouton +1 après le vote\" mise à jour."
2713
+
2714
+ #~ msgid "Option \"Vote as Wordpress User\" Updated!"
2715
+ #~ msgstr "Option \"Voter en tant qu'utilisateur Wordpress\" mise à jour."
2716
+
2717
+ #~ msgid "Option \"Vote as Wordpress User Buton Label\" Updated!"
2718
+ #~ msgstr ""
2719
+ #~ "Option \"Étiquette du bouton Voter en tant qu'utilisateur Wordpress\" "
2720
+ #~ "mise à jour."
2721
+
2722
+ #~ msgid "Option \"Vote as Anonymous User\" Updated!"
2723
+ #~ msgstr "Option \"Voter en tant qu'utilisateur anonyme\" mise à jour."
2724
+
2725
+ #~ msgid "Option \"Vote as Anonymous User Buton Label\" Updated!"
2726
+ #~ msgstr ""
2727
+ #~ "Option \"Étiquette du bouton Voter en tant qu'utilisateur anonyme\" mise "
2728
+ #~ "à jour."
2729
+
2730
+ #~ msgid "Option \"Blocking Voters\" Updated!"
2731
+ #~ msgstr "Option \"Bloquer un sondé\" mise à jour."
2732
+
2733
+ #~ msgid "Option \"Blocking Voters Interval Value\" Updated!"
2734
+ #~ msgstr "Option \"Valeur d'intervalle de blocage de sondés\" mise à jour."
2735
+
2736
+ #~ msgid "Option \"Blocking Voters Interval Unit\" Updated!"
2737
+ #~ msgstr "Option \"Unité d'intervalle de blocage de sondé\" mise à jour."
2738
+
2739
+ #~ msgid "Option \"Limit Number of Votes per User\" Updated!"
2740
+ #~ msgstr "Option \"Nombre limite de vote par utilisateur\" mise à jour."
2741
+
2742
+ #~ msgid "Option \"Number of Votes per User\" Updated!"
2743
+ #~ msgstr "Option \"Nombre de vote par utilisateur\" mise à jour."
2744
+
2745
+ #~ msgid "Option \"Percentages Decimals\" Updated!"
2746
+ #~ msgstr "Option \"Décimales de pourcentage\" mise à jour."
2747
+
2748
+ #~ msgid "Option \"Use Default Loading Image\" Updated!"
2749
+ #~ msgstr "Option \"Utiliser l'image de chargement par défaut\" mise à jour."
2750
+
2751
+ #~ msgid "Option \"Loading Image Url\" Updated!"
2752
+ #~ msgstr "Option \"Chemin de l'image de chargement\" mise à jour."
2753
+
2754
+ #~ msgid "Option \"Redirect After Vote\" Updated!"
2755
+ #~ msgstr "Option \"Rediriger après le vote\" mise à jour."
2756
+
2757
+ #~ msgid "Option \"Redirect After Vote Url\" Updated!"
2758
+ #~ msgstr "Option \"Adresse de redirection après le vote\" mise à jour."
2759
+
2760
+ #~ msgid "Option \"Poll Date Format\" Updated!"
2761
+ #~ msgstr "Option \"Format de date du sondage\" mise à jour."
2762
+
2763
+ #~ msgid "Option \"View Poll Archive Link\" Updated!"
2764
+ #~ msgstr "Option \"Voir le lien des archives de sondages\" mise à jour."
2765
+
2766
+ #~ msgid "Option \"Auto Generate Poll Page\" Updated!"
2767
+ #~ msgstr "Option \"Page de sondage générée automatiquement\" mise à jour."
2768
+
2769
+ #~ msgid "Option \"Use CAPTCHA\" Updated!"
2770
+ #~ msgstr "Option \"Utiliser CAPTCHA\" mise à jour."
2771
+
2772
+ #~ msgid "Option \"Send Email Notifications\" Updated!"
2773
+ #~ msgstr "Option \"Envoyer une notification par courriel\" mise à jour."
2774
+
2775
+ #~ msgid "Option \"Allow Other Answer\" Updated!"
2776
+ #~ msgstr "Option \"Permettre d'autres réponses\" mise à jour."
2777
+
2778
+ #~ msgid "Option \"Other Answer Label\" Updated!"
2779
+ #~ msgstr "Option \"Étiquette d'une autre réponse\" mise à jour."
2780
+
2781
+ #~ msgid "Option \"Make 'Other answer' default answer\" Updated!"
2782
+ #~ msgstr ""
2783
+ #~ "Option \"Mettre 'Autre réponse' comme réponse par défaut\" mise à jour."
2784
+
2785
+ #~ msgid "Option \"Add the values submitted in 'Other' as answers\" Updated!"
2786
+ #~ msgstr ""
2787
+ #~ "Option \"Ajouter des valeurs soumises dans 'Autre' comme réponses\" mise "
2788
+ #~ "à jour."
2789
+
2790
+ #~ msgid "Option \"Display Other Answers Values\" Updated!"
2791
+ #~ msgstr "Option \"Afficher d'autres valeurs de réponses\" mise à jour."
2792
+
2793
+ #~ msgid "Option \"Allow Multiple Answers\" Updated!"
2794
+ #~ msgstr "Option \"Permettre des réponses multiples\" mise à jour."
2795
+
2796
+ #~ msgid "Option \"Max Number of allowed answers\" Updated!"
2797
+ #~ msgstr "Option \"Nombre maximum de réponses permises\" mise à jour."
2798
+
2799
+ #~ msgid "Option \"Min Number of allowed answers\" Updated!"
2800
+ #~ msgstr "Option \"Nombre minimum de réponse permise\" mise à jour."
2801
+
2802
+ #~ msgid "Option \"Display Answers\" Updated!"
2803
+ #~ msgstr "Option \"Afficher les réponses\" mise à jour."
2804
+
2805
+ #~ msgid "Option \"Columns for Tabulated Display Answers\" Updated!"
2806
+ #~ msgstr "Option \"Colonnes pour affiches de tableaux réponses\" mise à jour."
2807
+
2808
+ #~ msgid "Option \"Sort Results\" Updated!"
2809
+ #~ msgstr "Option \"Trier les résultats\" mise à jour."
2810
+
2811
+ #~ msgid "Option \"Sort Results Direction\" Updated!"
2812
+ #~ msgstr "Option \"Direction du tri des résultats\" mise à jour."
2813
+
2814
+ #~ msgid "Option \"Poll Answer Result Votes Number Singular Label\" Updated!"
2815
+ #~ msgstr ""
2816
+ #~ "Option \"Étiquette résultat des réponses du sondage par de nombre de vote "
2817
+ #~ "unique\" mise à jour."
2818
+
2819
+ #~ msgid "Option \"Poll Answer Result Votes Number Plural Label\" Updated!"
2820
+ #~ msgstr ""
2821
+ #~ "Option \"Étiquette résultat des réponses du sondage par de nombre de vote "
2822
+ #~ "multiple\" mise à jour."
2823
+
2824
+ #~ msgid "Option \"Display Results\" Updated!"
2825
+ #~ msgstr "Option \"Afficher les résultats\" mise à jour."
2826
+
2827
+ #~ msgid "Option \"Columns for Tabulated Display Results\" Updated!"
2828
+ #~ msgstr ""
2829
+ #~ "Option \"Colonnes pour affichage de résultats tabulés\" mise à jour."
2830
+
2831
+ #~ msgid "Option \"Result Bar Background Color\" Updated!"
2832
+ #~ msgstr "Option \"Couleur de fond de la barre de résultats\" mise à jour."
2833
+
2834
+ #~ msgid "Option \"Result Bar Height\" Updated!"
2835
+ #~ msgstr "Option \"Hauteur de la barre de résultats\" mise à jour."
2836
+
2837
+ #~ msgid "Option \"Result Bar Border Color\" Updated!"
2838
+ #~ msgstr "Option \"Couleur de bordure de la barre de résultats\" mise à jour."
2839
+
2840
+ #~ msgid "Option \"Result Bar Border Width\" Updated!"
2841
+ #~ msgstr "Option \"Largeur de la barre de résultats\" mise à jour."
2842
+
2843
+ #~ msgid "Option \"Result Bar Border Style\" Updated!"
2844
+ #~ msgstr "Option \"Style de bordure de la barre de résultats\" mise à jour."
2845
+
2846
+ #~ msgid "Option \"Sort Archive Polls!\" Updated"
2847
+ #~ msgstr "Option \"Trier l'archive des sondages\" mise à jour."
2848
+
2849
+ #~ msgid "Option \"Sort Archive Polls Rule!\" Updated"
2850
+ #~ msgstr "Option \"Trier les règles d'archivage des sondages\" mise à jour."
2851
+
2852
+ #~ msgid "Option \"Archive Page\" Updated!"
2853
+ #~ msgstr "Option \"Page d'archive \" mise à jour."
2854
+
2855
+ #~ msgid "Option \"Poll Archive Link Label\" Updated!"
2856
+ #~ msgstr "Option \"Lien d'étiquette d'archive de sondage\" mise à jour."
2857
+
2858
+ #~ msgid "Option \"Polls Per Page\" Updated"
2859
+ #~ msgstr "Option \"Sondages par page\" mise à jour."
2860
+
2861
+ #~ msgid "Option \"Notifications From Name\" Updated!"
2862
+ #~ msgstr "Option \"Notifications par nom\" mise à jour."
2863
+
2864
+ #~ msgid "Option \"Notifications From Email\" Updated!"
2865
+ #~ msgstr "Option \"Notifications par courriel\" mise à jour."
2866
+
2867
+ #~ msgid "Option \"Email Notifications Recipients\" Updated!"
2868
+ #~ msgstr ""
2869
+ #~ "Option \"Courriel du destinataire pour les notifications\" mise à jour."
2870
+
2871
+ #~ msgid "Option \"Email Notifications Subject\" Updated!"
2872
+ #~ msgstr "Option \"Sujet ddes courriels de notifications\" mise à jour."
2873
+
2874
+ #~ msgid "Option \"Email Notifications Body\" Updated!"
2875
+ #~ msgstr "Option \"Corps du courriel de notifications\" mise à jour."
2876
+
2877
+ #~ msgid "if \"yes\", answer will be autoselected when poll is displayed"
2878
+ #~ msgstr ""
2879
+ #~ "si \"oui\", cette réponse sera automatiquement sélectionnée lorsque le "
2880
+ #~ "sondage sera affiché"
2881
+
2882
+ #~ msgid "Vote details"
2883
+ #~ msgstr "Détails du vote"
2884
+
2885
+ #~ msgid "Vote date"
2886
+ #~ msgstr "Date du vote"
2887
+
2888
+ #~ msgid "Invalid Response From Api Server!"
2889
+ #~ msgstr "Réponse invalide du serveur API"
2890
+
2891
+ #~ msgid "Do NOT Display Poll (Disable)"
2892
+ #~ msgstr "Ne PAS afficher le sondage (Désactiver)"
2893
+
2894
+ #~ msgid "Reload"
2895
+ #~ msgstr "Recharger"
2896
+
2897
+ #~ msgid "Other answer for question "
2898
+ #~ msgstr "Autre réponse à la question"
2899
+
2900
+ #~ msgid " could not be inserted!"
2901
+ #~ msgstr " ne pouvait pas être inséré!"
2902
+
2903
+ #~ msgid " is empty"
2904
+ #~ msgstr "est vide"
2905
+
2906
+ #~ msgid "Too few answers selected for question "
2907
+ #~ msgstr "Trop peu de réponses sélectionnés pour la question"
2908
+
2909
+ #~ msgid "! Only more than "
2910
+ #~ msgstr "! Seulement plus"
2911
+
2912
+ #~ msgid " answers allowed!"
2913
+ #~ msgstr "réponses permises!"
2914
+
2915
+ #~ msgid "Too many answers selected for question "
2916
+ #~ msgstr "Trop de réponses sélectionnés pour la question"
2917
+
2918
+ #~ msgid "! Only "
2919
+ #~ msgstr "! Seulement"
2920
+
2921
+ #~ msgid "Custom field "
2922
+ #~ msgstr "Champ personnalisé"
2923
+
2924
+ #~ msgid " from question "
2925
+ #~ msgstr " de la question"
2926
+
2927
+ #~ msgid "Custom fields from question "
2928
+ #~ msgstr "Les champs personnalisés de question"
2929
+
2930
+ #~ msgid "No answer selected for question "
2931
+ #~ msgstr "Aucune réponse sélectionnée pour la question"
lib/Twig/Autoloader.php CHANGED
@@ -14,7 +14,7 @@
14
  *
15
  * @author Fabien Potencier <fabien@symfony.com>
16
  */
17
- class Twig_Autoloader
18
  {
19
  /**
20
  * Registers Twig_Autoloader as an SPL autoloader.
14
  *
15
  * @author Fabien Potencier <fabien@symfony.com>
16
  */
17
+ class Yop_Twig_Autoloader
18
  {
19
  /**
20
  * Registers Twig_Autoloader as an SPL autoloader.
models/abstract_model.php CHANGED
@@ -1316,8 +1316,7 @@ abstract class YOP_POLL_Abstract_Model {
1316
 
1317
 
1318
 
1319
- protected function is_voted( $vote_type = 'default', $facebook_user_details = null, $from_register = null, $SuperCookie = null ) {
1320
-
1321
  if( $this->vote ) {
1322
 
1323
  return true;
@@ -1325,7 +1324,6 @@ abstract class YOP_POLL_Abstract_Model {
1325
  }
1326
 
1327
 
1328
-
1329
  if( isset( $this->blocking_voters ) ) {
1330
 
1331
  $is_voted = false;
@@ -1344,6 +1342,7 @@ abstract class YOP_POLL_Abstract_Model {
1344
 
1345
  if( in_array( "cookie", $this->blocking_voters ) ) {
1346
 
 
1347
  $is_voted = $is_voted || $this->is_voted_cookie();
1348
 
1349
  }
@@ -1351,8 +1350,8 @@ abstract class YOP_POLL_Abstract_Model {
1351
  if( in_array( "user_id", $this->blocking_voters ) ) {
1352
 
1353
  $is_voted = $is_voted || $this->is_voted_username( $vote_type = 'default', $facebook_user_details = null, $google_user_details, $from_register );
1354
-
1355
  }
 
1356
  if( in_array( "supercookie", $this->blocking_voters ) ) {
1357
 
1358
  }
@@ -1366,7 +1365,6 @@ abstract class YOP_POLL_Abstract_Model {
1366
  }
1367
 
1368
 
1369
-
1370
  private function is_ban( $vote_type = 'default', $facebook_user_details = null, $google_user_details = null ) {
1371
 
1372
  global $wpdb, $current_user;
@@ -1752,12 +1750,12 @@ abstract class YOP_POLL_Abstract_Model {
1752
 
1753
 
1754
  if( ! $from_register ) {
1755
-
1756
- $vote_type = in_array( $_COOKIE['yop_poll_vote_type_' . $this->poll['id']], array("anonymous")) ? $_COOKIE['yop_poll_vote_type_' . $this->poll['id']] : 'default';
1757
-
1758
- $facebook_user_details['id'] = $_COOKIE['yop_poll_vote_facebook_user_' . $this->poll['id']];
1759
-
1760
- $google_user_details['id'] = $_COOKIE['yop_poll_vote_google_user_' . $this->poll['id']];
1761
 
1762
  }
1763
 
@@ -1765,9 +1763,9 @@ abstract class YOP_POLL_Abstract_Model {
1765
 
1766
  $unit = 'DAY';
1767
 
1768
- if( isset( $this->poll_options['blocking_voters_interval_unit'] ) ) {
1769
 
1770
- switch( $this->poll_options['blocking_voters_interval_unit'] ) {
1771
 
1772
  case 'seconds' :
1773
 
@@ -1813,9 +1811,9 @@ abstract class YOP_POLL_Abstract_Model {
1813
 
1814
  $value = 30;
1815
 
1816
- if( isset( $this->poll_options['blocking_voters_interval_value'] ) ) {
1817
 
1818
- $value = $this->poll_options['blocking_voters_interval_value'];
1819
 
1820
  }
1821
 
@@ -1851,27 +1849,25 @@ abstract class YOP_POLL_Abstract_Model {
1851
 
1852
 
1853
 
1854
- $log_id = $wpdb->query( $wpdb->prepare( "
1855
-
1856
- SELECT id
1857
-
1858
- FROM " . $wpdb->yop_poll_results . "
1859
 
1860
  WHERE poll_id = %d AND
1861
 
1862
  user_id = %d AND
1863
 
1864
- vote_date >= DATE_ADD( %s, INTERVAL -%d " . $unit . ")
1865
-
1866
- ", $this->ID, $user_id, current_time( 'mysql' ), $value ) );
1867
 
 
 
1868
 
1869
- return $log_id;
 
 
 
1870
 
1871
  }
1872
 
1873
-
1874
-
1875
  protected function get_voter_number_of_votes( $voter ) {
1876
 
1877
  global $wpdb;
@@ -1913,6 +1909,7 @@ abstract class YOP_POLL_Abstract_Model {
1913
 
1914
 
1915
  public static function convert_date( $original_date, $new_format = '' ) {
 
1916
  $original_date=str_replace('-', '/', $original_date);
1917
  return date_i18n( $new_format, strtotime( $original_date ) );
1918
 
@@ -1946,7 +1943,7 @@ abstract class YOP_POLL_Abstract_Model {
1946
 
1947
  }
1948
 
1949
- if( $this->get_votes_number_from_supercookie( $cookie ) >= $poll_options['number_of_votes_per_user'] ) {
1950
 
1951
  return false;
1952
 
@@ -1991,7 +1988,7 @@ abstract class YOP_POLL_Abstract_Model {
1991
  $template = '';
1992
 
1993
  foreach( $q as $question ) {
1994
- yop_poll_dump($m[5]);
1995
  $temp_question_body = str_ireplace( "%QUESTION_TEXT%", $question->question, $m[5] );
1996
 
1997
 
1316
 
1317
 
1318
 
1319
+ protected function is_voted( $vote_type = 'default', $facebook_user_details = null, $from_register = null, $SuperCookie = null,$google_user_details=null ) {
 
1320
  if( $this->vote ) {
1321
 
1322
  return true;
1324
  }
1325
 
1326
 
 
1327
  if( isset( $this->blocking_voters ) ) {
1328
 
1329
  $is_voted = false;
1342
 
1343
  if( in_array( "cookie", $this->blocking_voters ) ) {
1344
 
1345
+
1346
  $is_voted = $is_voted || $this->is_voted_cookie();
1347
 
1348
  }
1350
  if( in_array( "user_id", $this->blocking_voters ) ) {
1351
 
1352
  $is_voted = $is_voted || $this->is_voted_username( $vote_type = 'default', $facebook_user_details = null, $google_user_details, $from_register );
 
1353
  }
1354
+
1355
  if( in_array( "supercookie", $this->blocking_voters ) ) {
1356
 
1357
  }
1365
  }
1366
 
1367
 
 
1368
  private function is_ban( $vote_type = 'default', $facebook_user_details = null, $google_user_details = null ) {
1369
 
1370
  global $wpdb, $current_user;
1750
 
1751
 
1752
  if( ! $from_register ) {
1753
+ if(isset($_COOKIE['yop_poll_vote_type_' . $this->poll['id']]))
1754
+ $vote_type = in_array( $_COOKIE['yop_poll_vote_type_' . $this->poll['id']], array("anonymous")) ? $_COOKIE['yop_poll_vote_type_' . $this->poll['id']] : 'default';
1755
+ if(isset($_COOKIE['yop_poll_vote_facebook_user_' . $this->poll['id']]))
1756
+ $facebook_user_details['id'] = $_COOKIE['yop_poll_vote_facebook_user_' . $this->poll['id']];
1757
+ if(isset($_COOKIE['yop_poll_vote_google_user_' . $this->poll['id']]))
1758
+ $google_user_details['id'] = $_COOKIE['yop_poll_vote_google_user_' . $this->poll['id']];
1759
 
1760
  }
1761
 
1763
 
1764
  $unit = 'DAY';
1765
 
1766
+ if( isset( $this->options['blocking_voters_interval_unit'] ) ) {
1767
 
1768
+ switch( $this->options['blocking_voters_interval_unit'] ) {
1769
 
1770
  case 'seconds' :
1771
 
1811
 
1812
  $value = 30;
1813
 
1814
+ if( isset( $this->options['blocking_voters_interval_value'] ) ) {
1815
 
1816
+ $value = $this->options['blocking_voters_interval_value'];
1817
 
1818
  }
1819
 
1849
 
1850
 
1851
 
1852
+ $sql= $wpdb->prepare( "
1853
+ SELECT * FROM " . $wpdb->yop_poll_results . "
 
 
 
1854
 
1855
  WHERE poll_id = %d AND
1856
 
1857
  user_id = %d AND
1858
 
1859
+ vote_date >= DATE_SUB( NOW(), INTERVAL %d " . $unit . ")
 
 
1860
 
1861
+ LIMIT 1", $this->ID, $user_id, $value );
1862
+ $result = $wpdb->get_results($sql,ARRAY_A );
1863
 
1864
+ if(isset($result[0]['vote_date']))
1865
+ return true;
1866
+ else
1867
+ return false;
1868
 
1869
  }
1870
 
 
 
1871
  protected function get_voter_number_of_votes( $voter ) {
1872
 
1873
  global $wpdb;
1909
 
1910
 
1911
  public static function convert_date( $original_date, $new_format = '' ) {
1912
+ $original_date=convert_date( $original_date, 'Y-m-d H:i:s' );
1913
  $original_date=str_replace('-', '/', $original_date);
1914
  return date_i18n( $new_format, strtotime( $original_date ) );
1915
 
1943
 
1944
  }
1945
 
1946
+ if( $this->get_votes_number_from_supercookie( $cookie ) >= $poll_options['number_of_votes_per_user'] && in_array( "cookie", $this->blocking_voters ) ) {
1947
 
1948
  return false;
1949
 
1988
  $template = '';
1989
 
1990
  foreach( $q as $question ) {
1991
+ //yop_poll_dump($m[5]);
1992
  $temp_question_body = str_ireplace( "%QUESTION_TEXT%", $question->question, $m[5] );
1993
 
1994
 
models/poll_model.php CHANGED
@@ -11,6 +11,7 @@ Class YOP_POLL_Poll_Model extends YOP_POLL_Abstract_Model {
11
  }
12
 
13
  public static function return_template_preview_html( $template_id = '', $loc = 1 ) {
 
14
  if( '' == $template_id ) {
15
  return "";
16
  }
@@ -165,6 +166,8 @@ Class YOP_POLL_Poll_Model extends YOP_POLL_Abstract_Model {
165
  $location = isset( $attr['location'] ) ? $attr['location'] : 'page';
166
  if( $preview ) {
167
  $template = $css;
 
 
168
  $template = str_ireplace( "%POLL-ID%", 'preview-' . $attr['template_id'] . '', $template );
169
  $template = str_ireplace( "%POLL-WIDTH%", '200px', $template );
170
  return stripslashes( $template );
@@ -279,7 +282,7 @@ Class YOP_POLL_Poll_Model extends YOP_POLL_Abstract_Model {
279
  $results_tabulated_cols = $question->display_results_tabulated_cols;
280
  }
281
 
282
- $tabulate= array( $answers_tabulated_cols, $results_tabulated_cols );
283
  }
284
 
285
  $template = $template_details['js'];
@@ -290,7 +293,6 @@ Class YOP_POLL_Poll_Model extends YOP_POLL_Abstract_Model {
290
  $template = str_ireplace( '%POLL-ID%', $poll_id . $unique_id, $template );
291
  $template = str_ireplace( '%ANSWERS-TABULATED-COLS%', json_encode( $tabulate ), $template );
292
  $template = str_ireplace( '%POLL-WIDTH%',str_replace( "px","",$this->template_width), $template );
293
- //yop_poll_dump($this->template_width);
294
  $template = str_ireplace( '%RESULTS-TABULATED-COLS%', json_encode( $tabulate ), $template );
295
  return stripslashes( $template );
296
  }
@@ -300,10 +302,13 @@ Class YOP_POLL_Poll_Model extends YOP_POLL_Abstract_Model {
300
  $return_string = "";
301
  $that=$this;
302
  foreach( $this->questions as $question ) {
 
303
  $qunique_id = $question->ID;
304
  $temp = str_ireplace( '%QUESTION-ID%', $qunique_id, $m[5] );
305
  $temp = str_ireplace( '%POLL-QUESTION%', $question->question, $temp );
306
 
 
 
307
  if( ! $is_voted ) {
308
  /** Start Anwer replace */
309
  if( $this->count_answers( $question ) > 0 ) {
@@ -316,6 +321,8 @@ Class YOP_POLL_Poll_Model extends YOP_POLL_Abstract_Model {
316
 
317
  /** Start Other Answer replace */
318
  $pattern = '\[(\[?)(OTHER_ANSWER_CONTAINER)\b([^\]\/]*(?:\/(?!\])[^\]\/]*)*?)(?:(\/)\]|\](?:([^\[]*+(?:\[(?!\/\2\])[^\[]*+)*+)\[\/\2\])?)(\]?)';
 
 
319
  $temp = preg_replace_callback( "/$pattern/s", function ( $m ) use ( $that, $question ) {
320
  return $that->other_answer_replace_callback( $m[5], $question );
321
  }, $temp );
@@ -360,10 +367,14 @@ Class YOP_POLL_Poll_Model extends YOP_POLL_Abstract_Model {
360
  $model = "";
361
 
362
  /** Get question total votes( default + other ) */
363
- $total_votes = $this->get_question_votes( $question );
 
 
 
364
 
365
  /**Is allowed to display other answers?*/
366
  $display_other_answers = false;
 
367
  if( isset( $question->allow_other_answers ) && 'yes' == $question->allow_other_answers ) {
368
  if( isset( $question->display_other_answers_values ) && 'yes' == $question->display_other_answers_values ) {
369
  $display_other_answers = true;
@@ -376,19 +387,23 @@ Class YOP_POLL_Poll_Model extends YOP_POLL_Abstract_Model {
376
  }
377
 
378
  $id = $this->ID;
 
379
  $view_results = $this->is_view_poll_results();
 
380
  $that=$this;
381
  foreach( $question->answers as $answer ) {
382
  /**Check if is allowed to display current answers*/
383
  if( ( $answer->type == "other" ) && ! $display_other_answers ) {
384
  continue;
385
  }
 
386
  if( $answer->votes > 0 ) {
387
  $percentages = floatval( $answer->votes * 100 / $total_votes );
388
  }
389
  else {
390
  $percentages = 0;
391
  }
 
392
  if( function_exists( 'icl_translate' ) ) {
393
  $answer->answer = icl_translate( 'yop_poll', $answer->ID . '_answer', $answer->answer );
394
  }
@@ -415,14 +430,14 @@ Class YOP_POLL_Poll_Model extends YOP_POLL_Abstract_Model {
415
  return $that->answer_description_replace_callback( $m[5], $answer, $id, $unique_id );
416
  }, $temp_answer_model );
417
  /** End Answer Description replace */
418
-
419
  /** Start Answer Result replace */
420
  $pattern = '\[(\[?)(ANSWER_RESULT_CONTAINER)\b([^\]\/]*(?:\/(?!\])[^\]\/]*)*?)(?:(\/)\]|\](?:([^\[]*+(?:\[(?!\/\2\])[^\[]*+)*+)\[\/\2\])?)(\]?)';
421
  $temp_answer_model = preg_replace_callback( "/$pattern/s", function ( $m ) use ( $that,$answer, $view_results, $id, $unique_id, $percentages, $percentages_decimals ) {
422
  return $that->answer_result_bar_callback( $m[5], $answer, $view_results, $id, $unique_id, $percentages, $percentages_decimals );
423
  }, $temp_answer_model );
424
  /** End Answer Result replace */
425
-
426
  if( $answer->type == "text" ) {
427
  $temp_answer_model = str_ireplace( '%POLL-ANSWER-LABEL%', '<label for="yop-poll-answer-' . $this->ID . $unique_id . '-' . $answer->ID . '">' . yop_poll_kses( stripslashes( $answer->answer ) ) . '</label>', $temp_answer_model );
428
  }
@@ -463,6 +478,7 @@ Class YOP_POLL_Poll_Model extends YOP_POLL_Abstract_Model {
463
  if( $view_results ) {
464
  $tmp = str_ireplace( '%POLL-ANSWER-RESULT-BAR%', self::display_poll_result_bar( $answer->ID, $percentages, $this->options, $id . $unique_id ), $m );
465
  $tmp = str_ireplace( '%POLL-ANSWER-RESULT-VOTES%', self::display_poll_result_votes( $answer->votes, $this->options ), $tmp );
 
466
  $tmp = str_ireplace( '%POLL-ANSWER-RESULT-PERCENTAGES%', self::display_poll_result_percentages( round( $percentages, $percentages_decimals ), $this->options ), $tmp );
467
  return $tmp;
468
  }
@@ -542,8 +558,8 @@ Class YOP_POLL_Poll_Model extends YOP_POLL_Abstract_Model {
542
  else {
543
  $temp_answer_model = str_ireplace( '%POLL-OTHER-ANSWER-CHECK-INPUT%', '<input type="radio" value="other" name="yop_poll_answer[' . $question->ID . ']" id="yop-poll-answer-' . $this->ID . $unique_id . '-' . $question->ID . '-other" />', $m );
544
  }
545
- $temp_answer_model = str_ireplace( '%POLL-OTHER-ANSWER-LABEL%', '<label for="yop-poll-answer-' . $this->ID . $unique_id . '-' . $question->ID . '-other">' . $other_answer_label . '</label>', $temp_answer_model );
546
- $temp_answer_model = str_ireplace( '%POLL-OTHER-ANSWER-TEXT-INPUT%', '<label><input onclick="document.getElementById(\'yop-poll-answer-' . $this->ID . $unique_id . '-' . $question->ID . '-other' . '\').checked=true;" type="text" value="" name="yop_poll_other_answer[' . $question->ID . ']" id="yop-poll-other-answer-' . $this->ID . $unique_id . '-other" /></label>', $temp_answer_model );
547
 
548
  if( $this->is_view_poll_results() ) {
549
  /**Display only if other answers were not displayed */
@@ -569,6 +585,8 @@ Class YOP_POLL_Poll_Model extends YOP_POLL_Abstract_Model {
569
  if( $this->is_view_poll_results() ) {
570
  $temp_answer_model = str_ireplace( '%POLL-OTHER-ANSWER-RESULT-BAR%', self::display_poll_result_bar( 'other', $percentages, $this->options, $this->ID . $unique_id ), $temp_answer_model );
571
  $temp_answer_model = str_ireplace( '%POLL-ANSWER-RESULT-VOTES%', self::display_poll_result_votes( $other_votes, $this->options ), $temp_answer_model );
 
 
572
  $temp_answer_model = str_ireplace( '%POLL-ANSWER-RESULT-PERCENTAGES%', self::display_poll_result_percentages( round( $percentages, $percentages_decimals ), $this->options ), $temp_answer_model );
573
  }
574
  }
@@ -600,7 +618,7 @@ Class YOP_POLL_Poll_Model extends YOP_POLL_Abstract_Model {
600
  }
601
  $temp_string = str_ireplace( '%POLL-CUSTOM-FIELD-LABEL%', '<label for="yop-poll-customfield-' . $this->ID . $unique_id . '-' . $custom_field->ID . '">' . yop_poll_kses( $custom_field->custom_field ) . '</label>', $m );
602
 
603
- $temp_string = str_ireplace( '%POLL-CUSTOM-FIELD-TEXT-INPUT%', '<input type="text" value="" name="yop_poll_customfield[' . $question->ID . '][' . $custom_field->ID . ']" id="yop-poll-customfield-' . $this->ID . $unique_id .'-'.$custom_field->ID.'" />', $temp_string );
604
  $model .= $temp_string;
605
  }
606
  }
@@ -694,9 +712,11 @@ Class YOP_POLL_Poll_Model extends YOP_POLL_Abstract_Model {
694
  if( $ans->type == "text" ) {
695
  $temp_string = str_ireplace( '%POLL-ANSWER-LABEL%', '<span>' . yop_poll_kses( stripslashes( $ans->answer ) ) . '</span>', $temp_string );
696
  }
 
697
 
698
 
699
  $temp_string = str_ireplace( '%POLL-ANSWER-RESULT-VOTES%', self::display_poll_result_votes( $ans->votes, $this->options ), $temp_string );
 
700
  $temp_string = str_ireplace( '%POLL-ANSWER-RESULT-PERCENTAGES%', self::display_poll_result_percentages( round( $percentages, $percentages_decimals ), $this->options ), $temp_string );
701
  $temp_string = str_ireplace( '%POLL-ANSWER-RESULT-BAR%', self::display_poll_result_bar( $ans->ID, $percentages, $this->options, $this->ID . $unique_id ), $temp_string );
702
  $return_string .= $temp_string;
@@ -707,6 +727,7 @@ Class YOP_POLL_Poll_Model extends YOP_POLL_Abstract_Model {
707
  }
708
 
709
  public function register_vote( $request ) {
 
710
  global $current_user;
711
  $poll_id = $this->id;
712
  $unique_id = strip_tags(xss_clean($this->unique_id));
@@ -835,8 +856,8 @@ Class YOP_POLL_Poll_Model extends YOP_POLL_Abstract_Model {
835
  $new_answer['user_id'] = $current_user->ID;
836
 
837
  $new_answer['user_type'] = 'default';
838
- if( in_array( $vote_type, $this->vote_types ) ) {
839
- $answer['user_type'] = $vote_type;
840
  }
841
 
842
  $new_answer['http_referer'] = $_SERVER['HTTP_REFERER'];
@@ -941,12 +962,14 @@ Class YOP_POLL_Poll_Model extends YOP_POLL_Abstract_Model {
941
  $new_custom_field['user_id'] = $current_user->ID;
942
 
943
  $new_custom_field['user_type'] = 'default';
944
- if( in_array( $vote_type, $this->vote_types ) ) {
 
945
  $new_custom_field['user_type'] = $vote_type;
946
  }
947
 
948
  $new_custom_field['custom_field_value'] = strip_tags( trim( $request['yop_poll_customfield'][$question->ID][$custom_field->ID] ) );
949
  $custom_fields[] = $new_custom_field;
 
950
  }
951
  }
952
  }
@@ -1252,7 +1275,8 @@ Class YOP_POLL_Poll_Model extends YOP_POLL_Abstract_Model {
1252
  'tr_id' => '',
1253
  'location' => 'page',
1254
  'load_css' => false,
1255
- 'load_js' => false
 
1256
  )
1257
  ) {
1258
  $time_format="H:i:s";
@@ -1263,6 +1287,7 @@ Class YOP_POLL_Poll_Model extends YOP_POLL_Abstract_Model {
1263
  }
1264
  $date_format=$date_format.' '.$time_format;
1265
  $tr_id = isset( $attr['tr_id'] ) ? $attr['tr_id'] : '';
 
1266
  $location = isset( $attr['location'] ) ? $attr['location'] : 'page';
1267
  $load_css = isset( $attr['load_css'] ) ? $attr['load_css'] : false;
1268
  $unique_id = $this->unique_id;
@@ -1344,6 +1369,11 @@ Class YOP_POLL_Poll_Model extends YOP_POLL_Abstract_Model {
1344
  if( ! $is_voted ) {
1345
  //user hasn't voted yet
1346
  $template = $template_details['before_vote_template'];
 
 
 
 
 
1347
  if( in_array( 'before', $this->view_results ) ) {
1348
  if( $this->is_view_poll_results() ) {
1349
  $template = str_ireplace( '%POLL-ANSWER-RESULT-LABEL%', $this->answer_result_label, $template );
@@ -1466,6 +1496,7 @@ Class YOP_POLL_Poll_Model extends YOP_POLL_Abstract_Model {
1466
  }
1467
 
1468
  $that=$this;
 
1469
  /** Start Question replace*/
1470
  $pattern = '\[(\[?)(QUESTION_CONTAINER)\b([^\]\/]*(?:\/(?!\])[^\]\/]*)*?)(?:(\/)\]|\](?:([^\[]*+(?:\[(?!\/\2\])[^\[]*+)*+)\[\/\2\])?)(\]?)';
1471
  $template = preg_replace_callback( "/$pattern/s", function($m) use ($that){
@@ -1486,9 +1517,11 @@ Class YOP_POLL_Poll_Model extends YOP_POLL_Abstract_Model {
1486
 
1487
  $template = "";
1488
  if( $load_css ) {
1489
- $template .= '<style scoped>' . self::return_poll_css( $template_css, array( "location" => $location ) ) . '</style>';
 
1490
  }
1491
 
 
1492
  $template .= '<div id="yop-poll-container-' . $this->ID . $unique_id . '" class="yop-poll-container">';
1493
  if( ! $msgDivS ) {
1494
  $template .= '<div id="yop-poll-container-success-' . $this->ID . $unique_id . '" class="yop-poll-container-success"></div>';
@@ -1497,7 +1530,8 @@ Class YOP_POLL_Poll_Model extends YOP_POLL_Abstract_Model {
1497
  $template .= '<div id="yop-poll-container-error-' . $this->ID . $unique_id . '" class="yop-poll-container-error"></div>';
1498
  }
1499
 
1500
- $template .= '<form id="yop-poll-form-' . $this->ID . $unique_id . '" class="yop-poll-forms">' . $temp . '<input type="hidden" id="yop-poll-tr-id-' . $this->ID . $unique_id . '" name="yop_poll_tr_id" value="' . $tr_id . '"/>' . wp_nonce_field( 'yop_poll-' . $this->ID . $unique_id . '-user-actions', 'yop-poll-nonce-' . $this->ID . $unique_id, false, false ) . '</form></div>';
 
1501
 
1502
 
1503
  return $template;
11
  }
12
 
13
  public static function return_template_preview_html( $template_id = '', $loc = 1 ) {
14
+
15
  if( '' == $template_id ) {
16
  return "";
17
  }
166
  $location = isset( $attr['location'] ) ? $attr['location'] : 'page';
167
  if( $preview ) {
168
  $template = $css;
169
+ $template.="li.yop-poll-li-answer-%POLL-ID% {width:100%}";
170
+ $template.="div.yop-poll-answers-%POLL-ID% ul{width:100%}";
171
  $template = str_ireplace( "%POLL-ID%", 'preview-' . $attr['template_id'] . '', $template );
172
  $template = str_ireplace( "%POLL-WIDTH%", '200px', $template );
173
  return stripslashes( $template );
282
  $results_tabulated_cols = $question->display_results_tabulated_cols;
283
  }
284
 
285
+ array_push($tabulate, array( $answers_tabulated_cols, $results_tabulated_cols,$ans_per_question,$question->ID) );
286
  }
287
 
288
  $template = $template_details['js'];
293
  $template = str_ireplace( '%POLL-ID%', $poll_id . $unique_id, $template );
294
  $template = str_ireplace( '%ANSWERS-TABULATED-COLS%', json_encode( $tabulate ), $template );
295
  $template = str_ireplace( '%POLL-WIDTH%',str_replace( "px","",$this->template_width), $template );
 
296
  $template = str_ireplace( '%RESULTS-TABULATED-COLS%', json_encode( $tabulate ), $template );
297
  return stripslashes( $template );
298
  }
302
  $return_string = "";
303
  $that=$this;
304
  foreach( $this->questions as $question ) {
305
+
306
  $qunique_id = $question->ID;
307
  $temp = str_ireplace( '%QUESTION-ID%', $qunique_id, $m[5] );
308
  $temp = str_ireplace( '%POLL-QUESTION%', $question->question, $temp );
309
 
310
+ $temp = str_ireplace('class = '.'"'. 'yop-poll-li-answer-' . $this->ID . $this->unique_id ,'class='.'"'. 'yop-poll-li-answer-' . $this->ID . $this->unique_id . ' yop-poll-li-answer-' . $this->ID . $this->unique_id."-".$question->ID, $temp);
311
+
312
  if( ! $is_voted ) {
313
  /** Start Anwer replace */
314
  if( $this->count_answers( $question ) > 0 ) {
321
 
322
  /** Start Other Answer replace */
323
  $pattern = '\[(\[?)(OTHER_ANSWER_CONTAINER)\b([^\]\/]*(?:\/(?!\])[^\]\/]*)*?)(?:(\/)\]|\](?:([^\[]*+(?:\[(?!\/\2\])[^\[]*+)*+)\[\/\2\])?)(\]?)';
324
+ $temp = str_ireplace('class = '.'"'. 'yop-poll-li-answer-' . $this->ID . $this->unique_id ,'class='.'"'. 'yop-poll-li-answer-' . $this->ID . $this->unique_id . ' yop-poll-li-answer-' . $this->ID . $this->unique_id."-".$question->ID, $temp);
325
+
326
  $temp = preg_replace_callback( "/$pattern/s", function ( $m ) use ( $that, $question ) {
327
  return $that->other_answer_replace_callback( $m[5], $question );
328
  }, $temp );
367
  $model = "";
368
 
369
  /** Get question total votes( default + other ) */
370
+ $total_votes=1;
371
+
372
+ if($this->view_total_votes!="no")
373
+ $total_votes = $this->get_question_votes( $question );
374
 
375
  /**Is allowed to display other answers?*/
376
  $display_other_answers = false;
377
+
378
  if( isset( $question->allow_other_answers ) && 'yes' == $question->allow_other_answers ) {
379
  if( isset( $question->display_other_answers_values ) && 'yes' == $question->display_other_answers_values ) {
380
  $display_other_answers = true;
387
  }
388
 
389
  $id = $this->ID;
390
+
391
  $view_results = $this->is_view_poll_results();
392
+ //yop_poll_dump($view_results);
393
  $that=$this;
394
  foreach( $question->answers as $answer ) {
395
  /**Check if is allowed to display current answers*/
396
  if( ( $answer->type == "other" ) && ! $display_other_answers ) {
397
  continue;
398
  }
399
+ if($view_results){
400
  if( $answer->votes > 0 ) {
401
  $percentages = floatval( $answer->votes * 100 / $total_votes );
402
  }
403
  else {
404
  $percentages = 0;
405
  }
406
+ }
407
  if( function_exists( 'icl_translate' ) ) {
408
  $answer->answer = icl_translate( 'yop_poll', $answer->ID . '_answer', $answer->answer );
409
  }
430
  return $that->answer_description_replace_callback( $m[5], $answer, $id, $unique_id );
431
  }, $temp_answer_model );
432
  /** End Answer Description replace */
433
+ if($view_results){
434
  /** Start Answer Result replace */
435
  $pattern = '\[(\[?)(ANSWER_RESULT_CONTAINER)\b([^\]\/]*(?:\/(?!\])[^\]\/]*)*?)(?:(\/)\]|\](?:([^\[]*+(?:\[(?!\/\2\])[^\[]*+)*+)\[\/\2\])?)(\]?)';
436
  $temp_answer_model = preg_replace_callback( "/$pattern/s", function ( $m ) use ( $that,$answer, $view_results, $id, $unique_id, $percentages, $percentages_decimals ) {
437
  return $that->answer_result_bar_callback( $m[5], $answer, $view_results, $id, $unique_id, $percentages, $percentages_decimals );
438
  }, $temp_answer_model );
439
  /** End Answer Result replace */
440
+ }
441
  if( $answer->type == "text" ) {
442
  $temp_answer_model = str_ireplace( '%POLL-ANSWER-LABEL%', '<label for="yop-poll-answer-' . $this->ID . $unique_id . '-' . $answer->ID . '">' . yop_poll_kses( stripslashes( $answer->answer ) ) . '</label>', $temp_answer_model );
443
  }
478
  if( $view_results ) {
479
  $tmp = str_ireplace( '%POLL-ANSWER-RESULT-BAR%', self::display_poll_result_bar( $answer->ID, $percentages, $this->options, $id . $unique_id ), $m );
480
  $tmp = str_ireplace( '%POLL-ANSWER-RESULT-VOTES%', self::display_poll_result_votes( $answer->votes, $this->options ), $tmp );
481
+ $tmp = str_ireplace( '- ( )', self::display_poll_result_votes( $answer->votes, $this->options ), $tmp );
482
  $tmp = str_ireplace( '%POLL-ANSWER-RESULT-PERCENTAGES%', self::display_poll_result_percentages( round( $percentages, $percentages_decimals ), $this->options ), $tmp );
483
  return $tmp;
484
  }
558
  else {
559
  $temp_answer_model = str_ireplace( '%POLL-OTHER-ANSWER-CHECK-INPUT%', '<input type="radio" value="other" name="yop_poll_answer[' . $question->ID . ']" id="yop-poll-answer-' . $this->ID . $unique_id . '-' . $question->ID . '-other" />', $m );
560
  }
561
+ $temp_answer_model = str_ireplace( '%POLL-OTHER-ANSWER-LABEL%', '<label for="yop-poll-answer-' . $this->ID . $unique_id . '-' . $question->ID . '-other">' . $other_answer_label . '</label>', $temp_answer_model );
562
+ $temp_answer_model = str_ireplace( '%POLL-OTHER-ANSWER-TEXT-INPUT%', '<label style="width:100%;"><input onclick="document.getElementById(\'yop-poll-answer-' . $this->ID . $unique_id . '-' . $question->ID . '-other' . '\').checked=true;" type="text" value="" name="yop_poll_other_answer[' . $question->ID . ']" id="yop-poll-other-answer-' . $this->ID . $unique_id . '-other" /></label>', $temp_answer_model );
563
 
564
  if( $this->is_view_poll_results() ) {
565
  /**Display only if other answers were not displayed */
585
  if( $this->is_view_poll_results() ) {
586
  $temp_answer_model = str_ireplace( '%POLL-OTHER-ANSWER-RESULT-BAR%', self::display_poll_result_bar( 'other', $percentages, $this->options, $this->ID . $unique_id ), $temp_answer_model );
587
  $temp_answer_model = str_ireplace( '%POLL-ANSWER-RESULT-VOTES%', self::display_poll_result_votes( $other_votes, $this->options ), $temp_answer_model );
588
+ $temp_answer_model = str_ireplace( '- ( )', self::display_poll_result_votes( $other_votes, $this->options ), $temp_answer_model );
589
+
590
  $temp_answer_model = str_ireplace( '%POLL-ANSWER-RESULT-PERCENTAGES%', self::display_poll_result_percentages( round( $percentages, $percentages_decimals ), $this->options ), $temp_answer_model );
591
  }
592
  }
618
  }
619
  $temp_string = str_ireplace( '%POLL-CUSTOM-FIELD-LABEL%', '<label for="yop-poll-customfield-' . $this->ID . $unique_id . '-' . $custom_field->ID . '">' . yop_poll_kses( $custom_field->custom_field ) . '</label>', $m );
620
 
621
+ $temp_string = str_ireplace( '%POLL-CUSTOM-FIELD-TEXT-INPUT%', '<input type="text" value="" name="yop_poll_customfield[' . $question->ID . '][' . $custom_field->ID . ']" id="yop-poll-customfield-' . $this->ID . $unique_id .'-'.$custom_field->ID.'" class='.'"yop-poll-customfield-' . $this->ID . $unique_id .'"/>', $temp_string );
622
  $model .= $temp_string;
623
  }
624
  }
712
  if( $ans->type == "text" ) {
713
  $temp_string = str_ireplace( '%POLL-ANSWER-LABEL%', '<span>' . yop_poll_kses( stripslashes( $ans->answer ) ) . '</span>', $temp_string );
714
  }
715
+ $temp_string = str_ireplace('class = '.'"'. 'yop-poll-li-result-' . $this->ID . $this->unique_id ,'class='.'"'. 'yop-poll-li-result-' . $this->ID . $this->unique_id . ' yop-poll-li-result-' . $this->ID . $this->unique_id."-".$question->ID, $temp_string);
716
 
717
 
718
  $temp_string = str_ireplace( '%POLL-ANSWER-RESULT-VOTES%', self::display_poll_result_votes( $ans->votes, $this->options ), $temp_string );
719
+ $temp_string = str_ireplace( '- ( )', self::display_poll_result_votes( $ans->votes, $this->options ), $temp_string );
720
  $temp_string = str_ireplace( '%POLL-ANSWER-RESULT-PERCENTAGES%', self::display_poll_result_percentages( round( $percentages, $percentages_decimals ), $this->options ), $temp_string );
721
  $temp_string = str_ireplace( '%POLL-ANSWER-RESULT-BAR%', self::display_poll_result_bar( $ans->ID, $percentages, $this->options, $this->ID . $unique_id ), $temp_string );
722
  $return_string .= $temp_string;
727
  }
728
 
729
  public function register_vote( $request ) {
730
+
731
  global $current_user;
732
  $poll_id = $this->id;
733
  $unique_id = strip_tags(xss_clean($this->unique_id));
856
  $new_answer['user_id'] = $current_user->ID;
857
 
858
  $new_answer['user_type'] = 'default';
859
+ if( $vote_type=='anonymous' || $vote_type=='wordpress' ) {
860
+ $new_answer['user_type'] = $vote_type;
861
  }
862
 
863
  $new_answer['http_referer'] = $_SERVER['HTTP_REFERER'];
962
  $new_custom_field['user_id'] = $current_user->ID;
963
 
964
  $new_custom_field['user_type'] = 'default';
965
+
966
+ if( $vote_type=='wordpress' || $vote_type=='anonymous' ) {
967
  $new_custom_field['user_type'] = $vote_type;
968
  }
969
 
970
  $new_custom_field['custom_field_value'] = strip_tags( trim( $request['yop_poll_customfield'][$question->ID][$custom_field->ID] ) );
971
  $custom_fields[] = $new_custom_field;
972
+
973
  }
974
  }
975
  }
1275
  'tr_id' => '',
1276
  'location' => 'page',
1277
  'load_css' => false,
1278
+ 'load_js' => false,
1279
+ 'show_results'=>''
1280
  )
1281
  ) {
1282
  $time_format="H:i:s";
1287
  }
1288
  $date_format=$date_format.' '.$time_format;
1289
  $tr_id = isset( $attr['tr_id'] ) ? $attr['tr_id'] : '';
1290
+ $show_results = isset( $attr['show_results'] ) ? $attr['show_results'] : '';
1291
  $location = isset( $attr['location'] ) ? $attr['location'] : 'page';
1292
  $load_css = isset( $attr['load_css'] ) ? $attr['load_css'] : false;
1293
  $unique_id = $this->unique_id;
1369
  if( ! $is_voted ) {
1370
  //user hasn't voted yet
1371
  $template = $template_details['before_vote_template'];
1372
+ if(isset($show_results)&&$show_results==1){
1373
+
1374
+ $template = $template_details['after_vote_template'];
1375
+ $this->view_results=array('before');
1376
+ }
1377
  if( in_array( 'before', $this->view_results ) ) {
1378
  if( $this->is_view_poll_results() ) {
1379
  $template = str_ireplace( '%POLL-ANSWER-RESULT-LABEL%', $this->answer_result_label, $template );
1496
  }
1497
 
1498
  $that=$this;
1499
+
1500
  /** Start Question replace*/
1501
  $pattern = '\[(\[?)(QUESTION_CONTAINER)\b([^\]\/]*(?:\/(?!\])[^\]\/]*)*?)(?:(\/)\]|\](?:([^\[]*+(?:\[(?!\/\2\])[^\[]*+)*+)\[\/\2\])?)(\]?)';
1502
  $template = preg_replace_callback( "/$pattern/s", function($m) use ($that){
1517
 
1518
  $template = "";
1519
  if( $load_css ) {
1520
+ $template .= '<style scoped>' . self::return_poll_css( $template_css, array( "location" => $location ) ) .' .yop-poll-forms-display{ opacity:0;}' . '</style>';
1521
+
1522
  }
1523
 
1524
+
1525
  $template .= '<div id="yop-poll-container-' . $this->ID . $unique_id . '" class="yop-poll-container">';
1526
  if( ! $msgDivS ) {
1527
  $template .= '<div id="yop-poll-container-success-' . $this->ID . $unique_id . '" class="yop-poll-container-success"></div>';
1530
  $template .= '<div id="yop-poll-container-error-' . $this->ID . $unique_id . '" class="yop-poll-container-error"></div>';
1531
  }
1532
 
1533
+ $template .= '<form id="yop-poll-form-' . $this->ID . $unique_id . '" class="yop-poll-forms yop-poll-forms-display">' . $temp . '<input type="hidden" id="yop-poll-tr-id-' . $this->ID . $unique_id . '" name="yop_poll_tr_id" value="' . $tr_id . '"/>' . wp_nonce_field( 'yop_poll-' . $this->ID . $unique_id . '-user-actions', 'yop-poll-nonce-' . $this->ID . $unique_id, false, false ) . '</form></div>';
1534
+
1535
 
1536
 
1537
  return $template;
models/yop_poll_model.php CHANGED
@@ -48,7 +48,7 @@
48
  }
49
 
50
  $sql_search = '';
51
- if( count( $search['fields'] ) > 0 ) {
52
  foreach( $search['fields'] as $field ) {
53
  $sql_search .= $GLOBALS['wpdb']->prepare( ' `' . esc_attr( $field ) . '` like \'%%%s%%\' OR', $search['value'] );
54
  }
@@ -478,4 +478,32 @@
478
  $sql .= $wpdb->prepare( ' LIMIT %d, %d', $offset, $per_page );
479
  return $wpdb->get_results( $sql, ARRAY_A );
480
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
481
  }
48
  }
49
 
50
  $sql_search = '';
51
+ if( isset( $search['fields']) && count( $search['fields'] ) > 0 ) {
52
  foreach( $search['fields'] as $field ) {
53
  $sql_search .= $GLOBALS['wpdb']->prepare( ' `' . esc_attr( $field ) . '` like \'%%%s%%\' OR', $search['value'] );
54
  }
478
  $sql .= $wpdb->prepare( ' LIMIT %d, %d', $offset, $per_page );
479
  return $wpdb->get_results( $sql, ARRAY_A );
480
  }
481
+
482
+ public static function get_poll_options_by_id( $poll_id = 0 ) {
483
+
484
+ $poll_options = get_yop_poll_meta( $poll_id, 'options', true );
485
+
486
+ $default_options = get_option( 'yop_poll_options', false );
487
+
488
+ if( is_array( $default_options ) ) {
489
+
490
+ if( count( $default_options ) > 0 ) {
491
+
492
+ foreach( $default_options as $option_name => $option_value ) {
493
+
494
+ if( ! isset( $poll_options [$option_name] ) ) {
495
+
496
+ $poll_options [$option_name] = $option_value;
497
+
498
+ }
499
+
500
+ }
501
+
502
+ }
503
+
504
+ }
505
+
506
+ return $poll_options;
507
+
508
+ }
509
  }
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: yourownprogrammer
3
  Donate Link: http://www.yop-poll.com
4
  Tags: booth, create poll, poll plugin, poll, polls, wordpress poll, vote, voting, survey, polling, yop poll, yop
5
  Requires at least: 3.3
6
- Tested up to: 4.1.1
7
  Stable tag: trunk
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.htm
@@ -142,6 +142,22 @@ You can have only one question per poll. If you want to ask more than one questi
142
 
143
  == Changelog ==
144
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
145
  = 5.6 =
146
  * Fixed issue with login popup
147
  * Fixed issue with vote button
3
  Donate Link: http://www.yop-poll.com
4
  Tags: booth, create poll, poll plugin, poll, polls, wordpress poll, vote, voting, survey, polling, yop poll, yop
5
  Requires at least: 3.3
6
+ Tested up to: 4.2.2
7
  Stable tag: trunk
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.htm
142
 
143
  == Changelog ==
144
 
145
+ = 5.7.2 =
146
+ * Display poll improvements
147
+
148
+ = 5.7.1 =
149
+ * Fixed issue with polls not being displayed
150
+
151
+ = 5.7 =
152
+ * Fixed issue with random polls
153
+ * Fixed issue with tabulated display
154
+ * Removed autoscroll after a failed vote
155
+ * Fixed issue with inserted code when using html editor
156
+ * Fixed issue with blocking voters option
157
+ * Fixed issue with in_array causing errors
158
+ * Fixed twig compatibility
159
+ * Added Print Votes page
160
+
161
  = 5.6 =
162
  * Fixed issue with login popup
163
  * Fixed issue with vote button
templates/bans_bans.html CHANGED
@@ -6,7 +6,7 @@
6
 
7
 
8
 
9
- <a id="yop-poll-add-new-ban" class="add-new-h2" href="javascript:void(0);">{{ __('Add New') }} </a>
10
 
11
  {% endblock addnew %}
12
 
@@ -34,7 +34,7 @@
34
 
35
  <div id='yop-poll-add-ban-div' style="display:none ;">
36
 
37
- <p>{{__( 'Ban IP, Username or Email' ) }}</p>
38
 
39
  <form action="?page=yop-polls-bans&action=add-new" method="post" id="add-edit-ban">
40
 
@@ -52,7 +52,7 @@
52
 
53
  <tr class="form-field form-required">
54
 
55
- <th scope="row"><label for="yop-poll-name">{{__( 'Poll' ) }} <span
56
 
57
  class="description">(required)</span></label></th>
58
 
@@ -60,7 +60,7 @@
60
 
61
 
62
 
63
- <option id="choose-option" value="0">{{__( 'Bans For All Polls' )}}</option>
64
 
65
  {% if count( yop_polls ) > 0 %}
66
 
@@ -82,19 +82,19 @@
82
 
83
  <tr class="form-field form-required">
84
 
85
- <th scope="row"><label for="yop-poll-type">{{__( 'Type' )}} <span
86
 
87
  class="description">(required)</span></label></th>
88
 
89
  <td><select name="ban_type" style="width: 15%" id="yop-poll-bans-type">
90
 
91
- <option id="choose-option-type" value="">{{__( 'Choose Ban Type' )}} </option>
92
 
93
- <option value="ip">{{__( 'Ip' ) }}</option>
94
 
95
- <option value="username">{{__( 'Username' ) }} </option>
96
 
97
- <option value="email">{{__( 'Email' ) }}</option></select>
98
 
99
  </td>
100
 
@@ -104,7 +104,7 @@
104
 
105
  <tr class="form-field form-required">
106
 
107
- <th scope="row"><label for="yop-poll-ban-period" value="">{{__( 'Period&Unit' )}} <span
108
 
109
  class="description">(required)</span></label></th>
110
 
@@ -114,15 +114,15 @@
114
 
115
  <select id="yop-poll-bans-unit" name="ban_unit" style="width: 15%;align:left">
116
 
117
- <option value="">{{__( 'Choose Unit' )}} </option>
118
 
119
- <option value="hours">{{__( 'Hours' ) }}</option>
120
 
121
- <option value="days">{{__( 'Days' ) }} </option>
122
 
123
- <option value="weeks">{{__( 'Weeks' ) }}</option>
124
 
125
- <option value="months">{{__( 'Months' ) }}</option>
126
 
127
  </select> </td>
128
 
@@ -134,11 +134,11 @@
134
 
135
  <tr class="form-field form-required">
136
 
137
- <th scope="row"><label for="yop-poll-ban-value">{{__( 'Value' )}}
138
 
139
  <span
140
 
141
- class="description">(required)</span><br> <small><i>{{__( 'One Value Per Line' ) }}</i></small></label></th>
142
 
143
  <td><textarea rows="5" cols="5" style="width: 32%" id="yop-poll-ban-value"
144
 
@@ -152,11 +152,11 @@
152
 
153
  <p class="submit">
154
 
155
- <input id="add-new-ban" type="submit" value="{{__( 'Add Ban') }} "
156
 
157
  class="button-primary"/> <input id="yop-poll-add-ban-close"
158
 
159
- type="button" value="{{__( 'Close' )}} "
160
 
161
  class="button-primary">
162
 
@@ -186,7 +186,7 @@
186
 
187
 
188
 
189
- <label class="screen-reader-text" for="yop-poll-search-input">{{__( 'Search Poll Bans' )}}</label>
190
 
191
  <input id="yop-poll-search-input" type="search"
192
 
@@ -194,7 +194,7 @@
194
 
195
  name="s"/> <input id="search-submit" class="button" type="submit"
196
 
197
- value="{{__( 'Search Poll Bans')}}" name=""/>
198
 
199
  </p>
200
 
@@ -206,15 +206,15 @@
206
 
207
  <select name="action">
208
 
209
- <option selected="selected" value="-1">{{__( 'Bulk Actions')}}</option>
210
 
211
- <option value="delete">{{__( 'Delete' )}}</option>
212
 
213
  </select>
214
 
215
  <input type="submit"
216
 
217
- value="{{__( 'Apply' )}}"
218
 
219
  class="button-secondary action" id="doaction" name="">
220
 
@@ -224,7 +224,7 @@
224
 
225
  <select name="poll_id">
226
 
227
- <option value="">{{__( 'All Polls' )}}</option>
228
 
229
  {% if count( yop_polls ) > 0 %}
230
 
@@ -252,19 +252,19 @@
252
 
253
  <select name="type">
254
 
255
- <option value="">{{__( 'All Ban Types' )}}</option>
256
 
257
- <option {{ selected( 'ip', type )}} value="ip">{{__( 'IP' ) }}</option>
258
 
259
- <option {{ selected( 'username', type )}} value="username">{{__( 'Username' ) }}</option>
260
 
261
- <option {{ selected( 'email', type )}} value="email">{{__( 'Email' )}}</option>
262
 
263
  </select>
264
-
265
  <input type="submit"
266
-
267
- value="{{__( 'Filter' ) }}"
268
 
269
  class="button-secondary" id="post-query-submit" name="">
270
 
@@ -272,7 +272,7 @@
272
 
273
  <div class="tablenav-pages one-page">
274
  <span style="margin:0 16px 0 0;">
275
- <label for="yop-poll-items-per-page" class="displaying-num">{{__( 'Items Per Page' )}}
276
 
277
  :</label>
278
 
@@ -280,11 +280,12 @@
280
 
281
  value="{{per_page | raw}}"/> <input name="a" class="button-secondary"
282
 
283
- value="{{__( 'Set' )}}" type="submit"/>&nbsp;&nbsp;
284
  </span>
285
  <span class="displaying-num">{{count( bans ) }} / {{total_bans}}
286
 
287
- {{__( 'Bans')}} </span>
 
288
 
289
  {{pagination | raw}}
290
 
@@ -316,7 +317,7 @@
316
 
317
  href="{{ esc_url( add_query_arg( { 'orderby' : 'id', 'order' : order_direction.id } ) ) | raw }}">
318
 
319
- <span>{{__( 'ID')}}</span> <span
320
 
321
  class="sorting-indicator"></span>
322
 
@@ -330,7 +331,7 @@
330
 
331
  href="{{ esc_url( add_query_arg( { 'orderby' : 'name', 'order' : order_direction.name } ) ) | raw }}">
332
 
333
- <span>{{__( 'Poll Name' )}}</span> <span
334
 
335
  class="sorting-indicator"></span>
336
 
@@ -344,7 +345,7 @@
344
 
345
  href="{{ esc_url( add_query_arg( { 'orderby' : 'type', 'order' : order_direction.type } ) ) | raw }}">
346
 
347
- <span>{{__( 'Ban Type' )}}</span> <span
348
 
349
  class="sorting-indicator"></span>
350
 
@@ -360,7 +361,7 @@
360
 
361
 
362
 
363
- <span>{{__( 'Ban value' )}}</span> <span
364
 
365
 
366
 
@@ -378,7 +379,7 @@
378
 
379
 
380
 
381
- <span>{{__( 'Period' )}}</span> <span
382
 
383
 
384
 
@@ -398,7 +399,7 @@
398
 
399
 
400
 
401
- <span>{{__( 'Unit' )}}</span> <span
402
 
403
 
404
 
@@ -448,7 +449,7 @@
448
 
449
  href="{{ wp_nonce_url( add_query_arg( { 'action' : 'delete', 'id' : ban.id } ) ,'yop-poll-bans', 'yop-poll-ban') | raw }}"
450
 
451
- >{{__('Delete')}}
452
 
453
 
454
 
@@ -468,7 +469,7 @@
468
 
469
  href="javascript:edit_yopp_ban ({{id_poll}}, {{ban.poll_id}},'{{ban_type}}',{{ban.period}},'{{ban.unit}}','{{ban.value}}' ); "
470
 
471
- >{{__('Edit')}}
472
 
473
  </a>
474
 
@@ -524,7 +525,7 @@
524
 
525
  <span class="displaying-num">{{ count( bans )}} / {{total_bans}}
526
 
527
- {{__( 'Bans' )}} </span>
528
 
529
  {{pagination | raw}}
530
 
6
 
7
 
8
 
9
+ <a id="yop-poll-add-new-ban" class="add-new-h2" href="javascript:void(0);">{{ __("Add New") }} </a>
10
 
11
  {% endblock addnew %}
12
 
34
 
35
  <div id='yop-poll-add-ban-div' style="display:none ;">
36
 
37
+ <p>{{__( "Ban IP, Username or Email" ) }}</p>
38
 
39
  <form action="?page=yop-polls-bans&action=add-new" method="post" id="add-edit-ban">
40
 
52
 
53
  <tr class="form-field form-required">
54
 
55
+ <th scope="row"><label for="yop-poll-name">{{__( "Poll" ) }} <span
56
 
57
  class="description">(required)</span></label></th>
58
 
60
 
61
 
62
 
63
+ <option id="choose-option" value="0">{{__( "Bans For All Polls" )}}</option>
64
 
65
  {% if count( yop_polls ) > 0 %}
66
 
82
 
83
  <tr class="form-field form-required">
84
 
85
+ <th scope="row"><label for="yop-poll-type">{{__( "Type" )}} <span
86
 
87
  class="description">(required)</span></label></th>
88
 
89
  <td><select name="ban_type" style="width: 15%" id="yop-poll-bans-type">
90
 
91
+ <option id="choose-option-type" value="">{{__( "Choose Ban Type" )}} </option>
92
 
93
+ <option value="ip">{{__( "Ip" ) }}</option>
94
 
95
+ <option value="username">{{__( "Username" ) }} </option>
96
 
97
+ <option value="email">{{__( "Email" ) }}</option></select>
98
 
99
  </td>
100
 
104
 
105
  <tr class="form-field form-required">
106
 
107
+ <th scope="row"><label for="yop-poll-ban-period" value="">{{__( "Period&Unit" )}} <span
108
 
109
  class="description">(required)</span></label></th>
110
 
114
 
115
  <select id="yop-poll-bans-unit" name="ban_unit" style="width: 15%;align:left">
116
 
117
+ <option value="">{{__( "Choose Unit" )}} </option>
118
 
119
+ <option value="hours">{{__( "Hours" ) }}</option>
120
 
121
+ <option value="days">{{__( "Days" ) }} </option>
122
 
123
+ <option value="weeks">{{__( "Weeks" ) }}</option>
124
 
125
+ <option value="months">{{__( "Months" ) }}</option>
126
 
127
  </select> </td>
128
 
134
 
135
  <tr class="form-field form-required">
136
 
137
+ <th scope="row"><label for="yop-poll-ban-value">{{__( "Value" )}}
138
 
139
  <span
140
 
141
+ class="description">(required)</span><br> <small><i>{{__( "One Value Per Line" ) }}</i></small></label></th>
142
 
143
  <td><textarea rows="5" cols="5" style="width: 32%" id="yop-poll-ban-value"
144
 
152
 
153
  <p class="submit">
154
 
155
+ <input id="add-new-ban" type="submit" value='{{__( "Add Ban") }} '
156
 
157
  class="button-primary"/> <input id="yop-poll-add-ban-close"
158
 
159
+ type="button" value='{{__( "Close" )}} '
160
 
161
  class="button-primary">
162
 
186
 
187
 
188
 
189
+ <label class="screen-reader-text" for="yop-poll-search-input">{{__( "Search Poll Bans" )}}</label>
190
 
191
  <input id="yop-poll-search-input" type="search"
192
 
194
 
195
  name="s"/> <input id="search-submit" class="button" type="submit"
196
 
197
+ value='{{__( "Search Poll Bans")}}' name=""/>
198
 
199
  </p>
200
 
206
 
207
  <select name="action">
208
 
209
+ <option selected="selected" value="-1">{{__( "Bulk Actions")}}</option>
210
 
211
+ <option value="delete">{{__( "Delete" )}}</option>
212
 
213
  </select>
214
 
215
  <input type="submit"
216
 
217
+ value='{{__( "Apply" )}}'
218
 
219
  class="button-secondary action" id="doaction" name="">
220
 
224
 
225
  <select name="poll_id">
226
 
227
+ <option value="">{{__( "All Polls" )}}</option>
228
 
229
  {% if count( yop_polls ) > 0 %}
230
 
252
 
253
  <select name="type">
254
 
255
+ <option value="">{{__( "All Ban Types" )}}</option>
256
 
257
+ <option {{ selected( 'ip', type )}} value="ip">{{__( "IP" ) }}</option>
258
 
259
+ <option {{ selected( 'username', type )}} value="username">{{__( "Username" ) }}</option>
260
 
261
+ <option {{ selected( 'email', type )}} value="email">{{__( "Email" )}}</option>
262
 
263
  </select>
264
+ <label for="post-query-submit" class="button-secondary">{{__( "Filter" ) }}</label>
265
  <input type="submit"
266
+ style="display: none"
267
+ value='{{__( "Filter" ) }}'
268
 
269
  class="button-secondary" id="post-query-submit" name="">
270
 
272
 
273
  <div class="tablenav-pages one-page">
274
  <span style="margin:0 16px 0 0;">
275
+ <label for="yop-poll-items-per-page" class="displaying-num">{{__( "Items Per Page" )}}
276
 
277
  :</label>
278
 
280
 
281
  value="{{per_page | raw}}"/> <input name="a" class="button-secondary"
282
 
283
+ value='{{__( "Set" )}}' type="submit"/>&nbsp;&nbsp;
284
  </span>
285
  <span class="displaying-num">{{count( bans ) }} / {{total_bans}}
286
 
287
+ {{__( "Bans")}} </span>
288
+
289
 
290
  {{pagination | raw}}
291
 
317
 
318
  href="{{ esc_url( add_query_arg( { 'orderby' : 'id', 'order' : order_direction.id } ) ) | raw }}">
319
 
320
+ <span>{{__( "ID")}}</span> <span
321
 
322
  class="sorting-indicator"></span>
323
 
331
 
332
  href="{{ esc_url( add_query_arg( { 'orderby' : 'name', 'order' : order_direction.name } ) ) | raw }}">
333
 
334
+ <span>{{__( "Poll Name" )}}</span> <span
335
 
336
  class="sorting-indicator"></span>
337
 
345
 
346
  href="{{ esc_url( add_query_arg( { 'orderby' : 'type', 'order' : order_direction.type } ) ) | raw }}">
347
 
348
+ <span>{{__( "Ban Type" )}}</span> <span
349
 
350
  class="sorting-indicator"></span>
351
 
361
 
362
 
363
 
364
+ <span>{{__( "Ban value" )}}</span> <span
365
 
366
 
367
 
379
 
380
 
381
 
382
+ <span>{{__( "Period" )}}</span> <span
383
 
384
 
385
 
399
 
400
 
401
 
402
+ <span>{{__( "Unit" )}}</span> <span
403
 
404
 
405
 
449
 
450
  href="{{ wp_nonce_url( add_query_arg( { 'action' : 'delete', 'id' : ban.id } ) ,'yop-poll-bans', 'yop-poll-ban') | raw }}"
451
 
452
+ >{{__("Delete")}}
453
 
454
 
455
 
469
 
470
  href="javascript:edit_yopp_ban ({{id_poll}}, {{ban.poll_id}},'{{ban_type}}',{{ban.period}},'{{ban.unit}}','{{ban.value}}' ); "
471
 
472
+ >{{__("Edit")}}
473
 
474
  </a>
475
 
525
 
526
  <span class="displaying-num">{{ count( bans )}} / {{total_bans}}
527
 
528
+ {{__( "Bans" )}} </span>
529
 
530
  {{pagination | raw}}
531
 
templates/imports_imports.html CHANGED
@@ -21,11 +21,13 @@
21
 
22
  <p class="search-box">
23
 
24
- <label class="screen-reader-text" for="yop-poll-search-input">{{__( 'Search WP-Polls' )}}</label>
25
  <input id="yop-poll-search-input" type="search"
26
  value="{% if request.s is defined %}: {{ stripslashes(request.s) |e}} {% endif %} "
27
- name="s"/> <input id="search-submit" class="button" type="submit"
28
- value="{{__( 'Search Wp Polls')}}" name=""/>
 
 
29
  </p>
30
 
31
 
@@ -34,23 +36,23 @@
34
  <div class="alignleft actions">
35
  <select name="action">
36
 
37
- <option selected="selected" value="-1">{{ __('Bulk Actions') }}</option>
38
- <option value="import">{{ __('Import') }}</option>
39
 
40
  </select>
41
- <input type="submit" value="{{ __('Apply') }}" class="button-secondary action" id="doaction" name="">
42
  </div>
43
  <div class="clear">
44
  </div>
45
 
46
  <div class="tablenav-pages one-page" style="float: right; margin-right: 2px">
47
- <label for="yop-poll-items-per-page" class="displaying-num">{{__( 'Items Per Page' )}}
48
  :</label>
49
  <input id="yop-poll-items-per-page" type="text" name="per_page"
50
  value="{{per_page | raw}}"/>
51
  <input name="a" class="button-secondary" value="{{__( 'Set' )}}" type="submit"/>&nbsp;&nbsp;
52
  <span class="displaying-num">{{count( wp_polls ) }} / {{total_polls}}
53
- {{__( 'Wp-Polls')}} </span>
54
  {{pagination | raw}}
55
  </div>
56
  <br class="clear">
@@ -66,28 +68,28 @@
66
  class="manage-column {{order_sortable.pollq_question}} {{order_direction_reverse.pollq_question}}"
67
  style="width: 25%" scope="col"><a
68
  href="{{ esc_url( add_query_arg( { 'orderby' : 'pollq_question', 'order' : pollq_question} ) ) | raw }}">
69
- <span>{{__( 'Title' )}}</span> <span
70
  class="sorting-indicator"></span>
71
  </a></th>
72
  <th id="type"
73
  class="manage-column {{order_sortable.pollq_totalvoters}} {{order_direction_reverse.pollq_totalvoters}}"
74
  style="width: 25%" scope="col"><a
75
  href="{{ esc_url( add_query_arg( { 'orderby' : 'pollq_totalvoters', 'order' : order_direction.pollq_totalvoters } ) ) | raw }}">
76
- <span>{{__( 'Total Votes' )}}</span> <span
77
  class="sorting-indicator"></span>
78
  </a></th>
79
  <th id="value"
80
  class="manage-column {{order_sortable.value}} {{order_direction_reverse.value}}"
81
  style="width: 15%" scope="col">
82
 
83
- <span>{{__( 'Start Date' )}}</span> <span
84
 
85
  class="sorting-indicator"></span>
86
 
87
  </a></th> <th id="period"
88
  class="manage-column {{order_sortable.type}} {{order_direction_reverse.type}}"
89
  style="width: 15%" scope="col">
90
- <span>{{__( 'End Date' )}}</span><span
91
 
92
  class="sorting-indicator"></span>
93
 
@@ -111,7 +113,7 @@
111
  <span class="delete">
112
  <a onclick="return confirm( '{{ __( "You are about to import this poll" ) }}: {{ wp_poll.pollq_question }} \n{{ __( "Cancel" ) }} {{ __( "to stop" ) }}, {{ __( "OK" ) }} {{ __( "to import" ) }}' )"
113
  href="{{ wp_nonce_url( add_query_arg( { 'action' : 'import', 'id' : wp_poll.pollq_id } ) ,'yop-poll-import', 'yop-poll-imports') | raw }}"
114
- >{{__('Import')}}
115
 
116
  </a>
117
  </span>
@@ -138,7 +140,7 @@
138
  <div class="tablenav bottom">
139
  <div class="tablenav-pages one-page" >
140
  <span class="displaying-num">{{ count( wp_polls )}} / {{total_polls}}
141
- {{__( 'Wp-polls' )}} </span>
142
  {{pagination | raw}}
143
  </div>
144
  </div>
21
 
22
  <p class="search-box">
23
 
24
+ <label class="screen-reader-text" for="yop-poll-search-input">{{__( "Search WP-Polls" )}}</label>
25
  <input id="yop-poll-search-input" type="search"
26
  value="{% if request.s is defined %}: {{ stripslashes(request.s) |e}} {% endif %} "
27
+ name="s"/>
28
+ <label class="button" for="search-submit" >{{__( "Search WP-Polls" )}} </label>
29
+ <input style="display: none" id="search-submit" class="button" type="submit"
30
+ value='{{__( "Search Wp Polls")}}' name=""/>
31
  </p>
32
 
33
 
36
  <div class="alignleft actions">
37
  <select name="action">
38
 
39
+ <option selected="selected" value="-1">{{ __("Bulk Actions") }}</option>
40
+ <option value="import">{{ __("Import") }}</option>
41
 
42
  </select>
43
+ <input type="submit" value="{{ __("Apply") }}" class="button-secondary action" id="doaction" name="">
44
  </div>
45
  <div class="clear">
46
  </div>
47
 
48
  <div class="tablenav-pages one-page" style="float: right; margin-right: 2px">
49
+ <label for="yop-poll-items-per-page" class="displaying-num">{{__( "Items Per Page" )}}
50
  :</label>
51
  <input id="yop-poll-items-per-page" type="text" name="per_page"
52
  value="{{per_page | raw}}"/>
53
  <input name="a" class="button-secondary" value="{{__( 'Set' )}}" type="submit"/>&nbsp;&nbsp;
54
  <span class="displaying-num">{{count( wp_polls ) }} / {{total_polls}}
55
+ {{__( "Wp-Polls")}} </span>
56
  {{pagination | raw}}
57
  </div>
58
  <br class="clear">
68
  class="manage-column {{order_sortable.pollq_question}} {{order_direction_reverse.pollq_question}}"
69
  style="width: 25%" scope="col"><a
70
  href="{{ esc_url( add_query_arg( { 'orderby' : 'pollq_question', 'order' : pollq_question} ) ) | raw }}">
71
+ <span>{{__( "Title" )}}</span> <span
72
  class="sorting-indicator"></span>
73
  </a></th>
74
  <th id="type"
75
  class="manage-column {{order_sortable.pollq_totalvoters}} {{order_direction_reverse.pollq_totalvoters}}"
76
  style="width: 25%" scope="col"><a
77
  href="{{ esc_url( add_query_arg( { 'orderby' : 'pollq_totalvoters', 'order' : order_direction.pollq_totalvoters } ) ) | raw }}">
78
+ <span>{{__( "Total Votes" )}}</span> <span
79
  class="sorting-indicator"></span>
80
  </a></th>
81
  <th id="value"
82
  class="manage-column {{order_sortable.value}} {{order_direction_reverse.value}}"
83
  style="width: 15%" scope="col">
84
 
85
+ <span>{{__( "Start Date" )}}</span> <span
86
 
87
  class="sorting-indicator"></span>
88
 
89
  </a></th> <th id="period"
90
  class="manage-column {{order_sortable.type}} {{order_direction_reverse.type}}"
91
  style="width: 15%" scope="col">
92
+ <span>{{__( "End Date" )}}</span><span
93
 
94
  class="sorting-indicator"></span>
95
 
113
  <span class="delete">
114
  <a onclick="return confirm( '{{ __( "You are about to import this poll" ) }}: {{ wp_poll.pollq_question }} \n{{ __( "Cancel" ) }} {{ __( "to stop" ) }}, {{ __( "OK" ) }} {{ __( "to import" ) }}' )"
115
  href="{{ wp_nonce_url( add_query_arg( { 'action' : 'import', 'id' : wp_poll.pollq_id } ) ,'yop-poll-import', 'yop-poll-imports') | raw }}"
116
+ >{{__("Import")}}
117
 
118
  </a>
119
  </span>
140
  <div class="tablenav bottom">
141
  <div class="tablenav-pages one-page" >
142
  <span class="displaying-num">{{ count( wp_polls )}} / {{total_polls}}
143
+ {{__( "Wp-polls" )}} </span>
144
  {{pagination | raw}}
145
  </div>
146
  </div>
templates/logs_logs.html CHANGED
@@ -17,30 +17,30 @@
17
  <input type="hidden" name="orderby" value="{{orderby}}"/>
18
  <input type="hidden" name="page" value="yop-polls-logs"/>
19
  <p class="search-box">
20
- <label class="screen-reader-text" for="yop-poll-search-input">{{__( 'Search Poll Logs')}}</label>
21
  <input id="yop-poll-search-input" type="search"
22
  value="{%if request.s %}{{esc_html( stripslashes( request.s ))}}{%endif%}"
23
  name="s"/> <input id="search-submit" class="button" type="submit"
24
- value="{{__( 'Search Poll Logs')}}" name=""/>
25
  </p>
26
 
27
  </div>
28
  <div class="tablenav top">
29
  <div class="alignleft actions">
30
  <select name="action">
31
- <option selected="selected" value="-1">{{__( 'Bulk Actions')}}</option>
32
  {% if group_by == 'vote' %}
33
- <option value="delete_group">{{__( 'Delete')}}</option>
34
  {% else %}
35
- <option value="delete">{{__( 'Delete')}}</option>
36
  {%endif%}
37
  </select> <input type="submit"
38
- value="{{__( 'Apply')}}"
39
  class="button-secondary action" id="doaction" name=""><span style="line-height: 2em;">&nbsp;|&nbsp;</span>
40
  </div>
41
  <div class="alignleft actions">
42
  <select name="poll_id">
43
- <option value="-1">{{__( 'All Logs')}}</option>
44
  {% if count( yop_polls ) > 0 %}
45
  {% for yop_poll in yop_polls%}
46
  <option {{ selected( poll_id, yop_poll.ID )}}
@@ -48,44 +48,45 @@
48
  {%endfor%}
49
  {%endif%}
50
  </select>
51
- <label for="yop-poll-logs-start-date-input">{{__( 'Start Date')}}
52
  :</label>
53
  <input id="yop-poll-logs-start-date-input" class="hasDatePicker" style="margin-top:3px" type="text"
54
  name="log_sdate" value="{{log_sdate}}"/>&nbsp;&nbsp; <label
55
- for="yop-poll-logs-end-date-input">{{( 'End Date')}}
56
  </label>
57
 
58
  <input id="yop-poll-logs-end-date-input" type="text" class="hasDatePicker"
59
  name="log_edate" value="{{log_edate}}"/>&nbsp;&nbsp;
 
60
  <input
61
- type="submit" value="{{( 'Filter')}}"
62
  class="button-secondary" id="post-query-submit" name="">&nbsp;|&nbsp;
63
  </div>
64
  <div class="alignleft actions">
65
  <select name="export">
66
- <option value="page">{{__( 'This Page')}}</option>
67
- <option value="all">{{( 'All Pages')}}</option>
68
 
69
  </select>
70
  <select name="page_no" hidden="true">
71
- <option value="{{page_no}}">{{__( 'This Page')}}</option>
72
  </select>
73
 
74
  <input type="submit"
75
- value="{{__( 'Export')}}"
76
  class="button-secondary action" id="doaction" name="a">
77
  &nbsp;&nbsp;&nbsp;
78
 
79
  </div>
80
  <div class="tablenav-pages one-page" >
81
  <span style="margin:0 19px 0 0; ">
82
- <label for="yop-poll-items-per-page" class="displaying-num">{{( 'Items Per Page')}}
83
  :</label>
84
  <input id="yop-poll-items-per-page" type="text" name="per_page"
85
  value="{{per_page}}"/> <input name="a" class="button-secondary"
86
- value="{{__( 'Set')}}" type="submit"/>&nbsp;&nbsp;
87
  </span> <span class="displaying-num" >{{count( logs )}} / {{total_logs}}
88
- logs</span>
89
  {{pagination | raw}}
90
  </div>
91
  <br class="clear">
@@ -102,7 +103,7 @@
102
  style="width: 15%" scope="col"><a
103
  href="{{ esc_url( add_query_arg( { 'orderby' : 'vote_id', 'order' : order_direction.vote_id } ) ) | raw }}">
104
 
105
- <span>{{__( 'Vote ID')}}</span> <span
106
 
107
  class="sorting-indicator"></span>
108
 
@@ -110,38 +111,38 @@
110
  <th id="name"
111
  class="manage-column {{order_sortable.name}} {{order_direction_reverse.name}}"
112
  style="width: 20%" scope="col">
113
- <span>{{__( 'Poll Title')}}</span>
114
  </a></th>
115
  <th id="total_votes"
116
  class="manage-column {{order_sortable.answer}} {{order_direction_reverse.answer}}"
117
  style="width: 18%" scope="col">
118
- <span>{{( 'Vote Details' )}}</span> </span>
119
  </a></th>
120
  <th id="user_from"
121
  class="manage-column {{order_sortable.user_from}} {{order_direction_reverse.user_from}}"
122
  style="width: 10%" scope="col">
123
- <span>{{__( 'User Type')}}</span>
124
  </a></th>
125
  <th id="user_nicename"
126
  class="manage-column {{order_sortable.user_nicename}} {{order_direction_reverse.user_nicename}}"
127
  style="width: 10%" scope="col">
128
- <span>{{( 'User' )}}</span>
129
  </a></th>
130
  <th id="user_email"
131
  class="manage-column {{order_sortable.user_email}} {{order_direction_reverse.user_email}}"
132
  style="width: 10%" scope="col">
133
- <span>{{( 'User Email')}}</span>
134
  </a></th>
135
  <th id="tr_id"
136
  class="manage-column {{order_sortable.tr_id}} {{order_direction_reverse.tr_id}}"
137
  href="{{esc_url( add_query_arg( array( {'orderby' : 'tr_id', 'order' : order_direction.tr_id} ) ) )}}"
138
  style="width: 10%" scope="col">
139
- <span>{{( 'Tracking ID')}}</span>
140
  </a></th>
141
  <th id="ip"
142
  class="manage-column {{order_sortable.ip}} {{order_direction_reverse.ip}}"
143
  style="width: 5%" scope="col">
144
- <span>{{__( 'Ip' )}}</span>
145
  </a></th>
146
 
147
 
@@ -151,14 +152,14 @@
151
  style="width: 15%" scope="col"><a
152
  href="{{ esc_url( add_query_arg( { 'orderby' : 'vote_date', 'order' : order_direction.vote_date } ) ) | raw }}">
153
 
154
- <span>{{__( 'Vote Date')}}</span> <span
155
 
156
  class="sorting-indicator"></span>
157
  </a></th>
158
  <th id="message"
159
  class="manage-column {{order_sortable.ip}} {{order_direction_reverse.ip}}"
160
  style="width: 15%" scope="col">
161
- <span>{{__( 'Message' )}}</span>
162
  </a></th>
163
  </tr>
164
  </thead>
@@ -172,50 +173,50 @@
172
  class="manage-column {{order_sortable.vote_id}} {{order_direction_reverse.vote_id}}"
173
  style="width: 38%;" scope="col"><a
174
  href="{{ esc_url( add_query_arg( { 'orderby' : 'vote_id', 'order' : order_direction.vote_id} ) ) | raw }}">
175
- <span>{{__( 'Vote ID')}}</span> <span
176
  class="sorting-indicator"></span>
177
  </a></th>
178
  <th id="name"
179
  class="manage-column {{order_sortable.name}} {{order_direction_reverse.name}}"
180
  style="width: 20%" scope="col">
181
- <span>{{__( 'Poll Title')}}</span>
182
  </a></th>
183
  <th id="total_votes"
184
  class="manage-column {{order_sortable.answer}} {{order_direction_reverse.answer}}"
185
  style="width: 18%" scope="col">
186
- <span>{{( 'Vote Details' )}}</span> </span>
187
  </a></th>
188
  <th id="user_from"
189
  class="manage-column {{order_sortable.user_from}} {{order_direction_reverse.user_from}}"
190
  style="width: 10%" scope="col">
191
- <span>{{__( 'User Type')}}</span>
192
  </a></th>
193
  <th id="user_nicename"
194
  class="manage-column {{order_sortable.user_nicename}} {{order_direction_reverse.user_nicename}}"
195
  style="width: 10%" scope="col">
196
- <span>{{( 'User' )}}</span>
197
  </a></th>
198
  <th id="user_email"
199
  class="manage-column {{order_sortable.user_email}} {{order_direction_reverse.user_email}}"
200
  style="width: 10%" scope="col">
201
- <span>{{( 'User Email')}}</span>
202
  </a></th>
203
  <th id="tr_id"
204
  class="manage-column {{order_sortable.tr_id}} {{order_direction_reverse.tr_id}}"
205
  href="{{esc_url( add_query_arg( array( {'orderby' : 'tr_id', 'order' : order_direction.tr_id} ) ) )}}"
206
  style="width: 10%" scope="col">
207
- <span>{{( 'Tracking ID')}}</span>
208
  </a></th>
209
  <th id="ip"
210
  class="manage-column {{order_sortable.ip}} {{order_direction_reverse.ip}}"
211
  style="width: 5%" scope="col">
212
- <span>{{__( 'Ip' )}}</span>
213
  </a></th>
214
  <th id="vote_date"
215
  class="manage-column {{order_sortable.vote_date}} {{order_direction_reverse.vote_date}}"
216
  style="width: 10%" scope="col"><a
217
  href="{{ esc_url( add_query_arg( { 'orderby' : 'vote_date', 'order' : order_direction.vote_date} ) ) | raw }}">
218
- <span>{{__( 'Vote Date')}}</span> <span
219
  class="sorting-indicator"></span>
220
 
221
  </a></th>
@@ -223,7 +224,7 @@
223
  <th id="message"
224
  class="manage-column {{order_sortable.ip}} {{order_direction_reverse.ip}}"
225
  style="width: 15%" scope="col">
226
- <span>{{__( 'Message' )}}</span>
227
  </a></th>
228
  </tr>
229
  </tfoot>
@@ -252,7 +253,7 @@
252
  <span class="delete"><a
253
  <a onclick="return confirm( '{{ __( "You are about to delete this vote log" ) }}: {{ __( "Cancel" ) }} {{ __( "to stop" ) }}, {{ __( "OK" ) }} {{ __( "to delete" ) }}' )"
254
  href="{{ wp_nonce_url( add_query_arg( array ({ 'action' : 'delete_group', 'id' : log.ID }) ),'yop-poll-logs','yop-poll-log' ) | raw }}"
255
- class="submitdelete">{{__( 'Delete')}}</a></span>
256
 
257
 
258
  {%endif%}
@@ -293,7 +294,7 @@
293
  <div class="tablenav bottom">
294
  <div class="tablenav-pages one-page">
295
  <span class="displaying-num">{{count( logs )}} / {{total_logs}}
296
- logs</span>
297
  {{pagination | raw}}
298
  </div>
299
  </div>
17
  <input type="hidden" name="orderby" value="{{orderby}}"/>
18
  <input type="hidden" name="page" value="yop-polls-logs"/>
19
  <p class="search-box">
20
+ <label class="screen-reader-text" for="yop-poll-search-input">{{__( "Search Poll Logs")}}</label>
21
  <input id="yop-poll-search-input" type="search"
22
  value="{%if request.s %}{{esc_html( stripslashes( request.s ))}}{%endif%}"
23
  name="s"/> <input id="search-submit" class="button" type="submit"
24
+ value='{{__( "Search Poll Logs")}}' name=""/>
25
  </p>
26
 
27
  </div>
28
  <div class="tablenav top">
29
  <div class="alignleft actions">
30
  <select name="action">
31
+ <option selected="selected" value="-1">{{__( "Bulk Actions")}}</option>
32
  {% if group_by == 'vote' %}
33
+ <option value="delete_group">{{__( "Delete")}}</option>
34
  {% else %}
35
+ <option value="delete">{{__( "Delete")}}</option>
36
  {%endif%}
37
  </select> <input type="submit"
38
+ value='{{__( "Apply")}}'
39
  class="button-secondary action" id="doaction" name=""><span style="line-height: 2em;">&nbsp;|&nbsp;</span>
40
  </div>
41
  <div class="alignleft actions">
42
  <select name="poll_id">
43
+ <option value="-1">{{__( "All Logs")}}</option>
44
  {% if count( yop_polls ) > 0 %}
45
  {% for yop_poll in yop_polls%}
46
  <option {{ selected( poll_id, yop_poll.ID )}}
48
  {%endfor%}
49
  {%endif%}
50
  </select>
51
+ <label for="yop-poll-logs-start-date-input">{{__( "Start Date")}}
52
  :</label>
53
  <input id="yop-poll-logs-start-date-input" class="hasDatePicker" style="margin-top:3px" type="text"
54
  name="log_sdate" value="{{log_sdate}}"/>&nbsp;&nbsp; <label
55
+ for="yop-poll-logs-end-date-input">{{( "End Date")}}
56
  </label>
57
 
58
  <input id="yop-poll-logs-end-date-input" type="text" class="hasDatePicker"
59
  name="log_edate" value="{{log_edate}}"/>&nbsp;&nbsp;
60
+ <label for="post-query-submit" class="button-secondary">{{__( "Filter" ) }}</label>
61
  <input
62
+ type="submit" value='{{( "Filter")}}' style="display: none"
63
  class="button-secondary" id="post-query-submit" name="">&nbsp;|&nbsp;
64
  </div>
65
  <div class="alignleft actions">
66
  <select name="export">
67
+ <option value="page">{{__( "This Page")}}</option>
68
+ <option value="all">{{__( "All Pages")}}</option>
69
 
70
  </select>
71
  <select name="page_no" hidden="true">
72
+ <option value="{{page_no}}">{{__( "This Page")}}</option>
73
  </select>
74
 
75
  <input type="submit"
76
+ value='{{__( "Export")}}'
77
  class="button-secondary action" id="doaction" name="a">
78
  &nbsp;&nbsp;&nbsp;
79
 
80
  </div>
81
  <div class="tablenav-pages one-page" >
82
  <span style="margin:0 19px 0 0; ">
83
+ <label for="yop-poll-items-per-page" class="displaying-num">{{( "Items Per Page")}}
84
  :</label>
85
  <input id="yop-poll-items-per-page" type="text" name="per_page"
86
  value="{{per_page}}"/> <input name="a" class="button-secondary"
87
+ value='{{__( "Set")}}' type="submit"/>&nbsp;&nbsp;
88
  </span> <span class="displaying-num" >{{count( logs )}} / {{total_logs}}
89
+ {{__("logs")}}</span>
90
  {{pagination | raw}}
91
  </div>
92
  <br class="clear">
103
  style="width: 15%" scope="col"><a
104
  href="{{ esc_url( add_query_arg( { 'orderby' : 'vote_id', 'order' : order_direction.vote_id } ) ) | raw }}">
105
 
106
+ <span>{{__( "Vote ID")}}</span> <span
107
 
108
  class="sorting-indicator"></span>
109
 
111
  <th id="name"
112
  class="manage-column {{order_sortable.name}} {{order_direction_reverse.name}}"
113
  style="width: 20%" scope="col">
114
+ <span>{{__( "Poll Title")}}</span>
115
  </a></th>
116
  <th id="total_votes"
117
  class="manage-column {{order_sortable.answer}} {{order_direction_reverse.answer}}"
118
  style="width: 18%" scope="col">
119
+ <span>{{( "Vote Details" )}}</span> </span>
120
  </a></th>
121
  <th id="user_from"
122
  class="manage-column {{order_sortable.user_from}} {{order_direction_reverse.user_from}}"
123
  style="width: 10%" scope="col">
124
+ <span>{{__( "User Type")}}</span>
125
  </a></th>
126
  <th id="user_nicename"
127
  class="manage-column {{order_sortable.user_nicename}} {{order_direction_reverse.user_nicename}}"
128
  style="width: 10%" scope="col">
129
+ <span>{{( "User" )}}</span>
130
  </a></th>
131
  <th id="user_email"
132
  class="manage-column {{order_sortable.user_email}} {{order_direction_reverse.user_email}}"
133
  style="width: 10%" scope="col">
134
+ <span>{{( "User Email")}}</span>
135
  </a></th>
136
  <th id="tr_id"
137
  class="manage-column {{order_sortable.tr_id}} {{order_direction_reverse.tr_id}}"
138
  href="{{esc_url( add_query_arg( array( {'orderby' : 'tr_id', 'order' : order_direction.tr_id} ) ) )}}"
139
  style="width: 10%" scope="col">
140
+ <span>{{( "Tracking ID")}}</span>
141
  </a></th>
142
  <th id="ip"
143
  class="manage-column {{order_sortable.ip}} {{order_direction_reverse.ip}}"
144
  style="width: 5%" scope="col">
145
+ <span>{{__( "Ip" )}}</span>
146
  </a></th>
147
 
148
 
152
  style="width: 15%" scope="col"><a
153
  href="{{ esc_url( add_query_arg( { 'orderby' : 'vote_date', 'order' : order_direction.vote_date } ) ) | raw }}">
154
 
155
+ <span>{{__( "Vote Date")}}</span> <span
156
 
157
  class="sorting-indicator"></span>
158
  </a></th>
159
  <th id="message"
160
  class="manage-column {{order_sortable.ip}} {{order_direction_reverse.ip}}"
161
  style="width: 15%" scope="col">
162
+ <span>{{__( "Message" )}}</span>
163
  </a></th>
164
  </tr>
165
  </thead>
173
  class="manage-column {{order_sortable.vote_id}} {{order_direction_reverse.vote_id}}"
174
  style="width: 38%;" scope="col"><a
175
  href="{{ esc_url( add_query_arg( { 'orderby' : 'vote_id', 'order' : order_direction.vote_id} ) ) | raw }}">
176
+ <span>{{__( "Vote ID")}}</span> <span
177
  class="sorting-indicator"></span>
178
  </a></th>
179
  <th id="name"
180
  class="manage-column {{order_sortable.name}} {{order_direction_reverse.name}}"
181
  style="width: 20%" scope="col">
182
+ <span>{{__( "Poll Title")}}</span>
183
  </a></th>
184
  <th id="total_votes"
185
  class="manage-column {{order_sortable.answer}} {{order_direction_reverse.answer}}"
186
  style="width: 18%" scope="col">
187
+ <span>{{__( "Vote Details" )}}</span> </span>
188
  </a></th>
189
  <th id="user_from"
190
  class="manage-column {{order_sortable.user_from}} {{order_direction_reverse.user_from}}"
191
  style="width: 10%" scope="col">
192
+ <span>{{__( "User Type")}}</span>
193
  </a></th>
194
  <th id="user_nicename"
195
  class="manage-column {{order_sortable.user_nicename}} {{order_direction_reverse.user_nicename}}"
196
  style="width: 10%" scope="col">
197
+ <span>{{__( "User" )}}</span>
198
  </a></th>
199
  <th id="user_email"
200
  class="manage-column {{order_sortable.user_email}} {{order_direction_reverse.user_email}}"
201
  style="width: 10%" scope="col">
202
+ <span>{{__( "User Email")}}</span>
203
  </a></th>
204
  <th id="tr_id"
205
  class="manage-column {{order_sortable.tr_id}} {{order_direction_reverse.tr_id}}"
206
  href="{{esc_url( add_query_arg( array( {'orderby' : 'tr_id', 'order' : order_direction.tr_id} ) ) )}}"
207
  style="width: 10%" scope="col">
208
+ <span>{{__( "Tracking ID")}}</span>
209
  </a></th>
210
  <th id="ip"
211
  class="manage-column {{order_sortable.ip}} {{order_direction_reverse.ip}}"
212
  style="width: 5%" scope="col">
213
+ <span>{{__( "Ip" )}}</span>
214
  </a></th>
215
  <th id="vote_date"
216
  class="manage-column {{order_sortable.vote_date}} {{order_direction_reverse.vote_date}}"
217
  style="width: 10%" scope="col"><a
218
  href="{{ esc_url( add_query_arg( { 'orderby' : 'vote_date', 'order' : order_direction.vote_date} ) ) | raw }}">
219
+ <span>{{__( "Vote Date")}}</span> <span
220
  class="sorting-indicator"></span>
221
 
222
  </a></th>
224
  <th id="message"
225
  class="manage-column {{order_sortable.ip}} {{order_direction_reverse.ip}}"
226
  style="width: 15%" scope="col">
227
+ <span>{{__( "Message" )}}</span>
228
  </a></th>
229
  </tr>
230
  </tfoot>
253
  <span class="delete"><a
254
  <a onclick="return confirm( '{{ __( "You are about to delete this vote log" ) }}: {{ __( "Cancel" ) }} {{ __( "to stop" ) }}, {{ __( "OK" ) }} {{ __( "to delete" ) }}' )"
255
  href="{{ wp_nonce_url( add_query_arg( array ({ 'action' : 'delete_group', 'id' : log.ID }) ),'yop-poll-logs','yop-poll-log' ) | raw }}"
256
+ class="submitdelete">{{__( "Delete")}}</a></span>
257
 
258
 
259
  {%endif%}
294
  <div class="tablenav bottom">
295
  <div class="tablenav-pages one-page">
296
  <span class="displaying-num">{{count( logs )}} / {{total_logs}}
297
+ {{("logs")}}</span>
298
  {{pagination | raw}}
299
  </div>
300
  </div>
templates/options_general.html CHANGED
@@ -12,16 +12,17 @@
12
  <!-- start postbox-container-1 -->
13
  <div class="postbox-container" id="postbox-container-1">
14
  <div class="postbox stuffbox">
15
- <div title="{{ __('Click to toggle') }}" class="handlediv">
16
  <br/>
17
  </div>
18
  <h3 class="hndle">
19
- <span>{{ __('Save') }}</span>
20
  </h3>
21
  <div class="inside">
22
  <div id="submitlink" class="submitbox">
23
  <div id="major-publishing-actions">
24
- <input type="submit" accesskey="p" class="button-primary" value="{{ __('Save Changes') }}" id="yop-poll-general-options-form-submit"/>
 
25
  <div class="clear"></div>
26
  </div>
27
  <div class="clear"></div>
@@ -34,16 +35,16 @@
34
 
35
  <ul class="steps_options">
36
 
37
- <li><a tabindex="199" href="#step-1">{{ __( 'Poll' ) }}</a></li>
38
 
39
- <li><a tabindex="199" href="#step-2">{{ __( 'Questions' ) }}</a></li>
40
 
41
- <li><a tabindex="199" href="#step-3">{{ __( 'Results' ) }}</a></li>
42
 
43
- <li><a tabindex="199" href="#step-4">{{ __( 'Archive' ) }}</a></li>
44
 
45
- <li><a tabindex="199" href="#step-5">{{ __( 'Notifications' ) }}</a></li>
46
- <li><a tabindex="199" href="#step-6">{{ __( 'Media' ) }}</a></li>
47
 
48
  </ul>
49
 
@@ -66,150 +67,169 @@
66
  </div>
67
  <!-- Start Questions Options -->
68
  <div class="step-pane active" id="step-2">
69
- <div class="postbox stuffbox" id="2">
70
- <div title="{{ __('Click to toggle') }}" class="handlediv"><br/></div>
71
- <h3 class="hndle" style="border-bottom: 1px solid #AAAAAA;">
72
- <span>{{ __( 'Questions Options' ) }}</span>
73
- </h3>
74
- <div class="inside">
75
- <table width="100%" cellspacing="0" class="yop-poll-options-table links-table">
76
- <tbody>
77
- <tr>
78
- <th> {{ __('Allow other answers') }}:</th>
79
- <td>
80
- {{ label( 'Yes', 'yop-poll-allow-other-answers-yes', 'yop_poll_options[allow_other_answers]', "yes", "radio", "", yop_poll_options.allow_other_answers, "yes" ) }}
81
- {{ label( 'No', 'yop-poll-allow-other-answers-no', 'yop_poll_options[allow_other_answers]', "no", "radio", "", yop_poll_options.allow_other_answers, "no" ) }}
82
- </td>
83
- </tr>
84
- <tr class="yop_poll_suboption yop-poll-other-answers-label-div" id="yop-poll-other-answers-label-div" style="{% if 'yes' != yop_poll_options.allow_other_answers %} display: none; {% endif %}">
85
- <th> {{ __('Other answer label') }}:</th>
86
- <td>
87
- {{ input( yop_poll_options.other_answers_label, 'yop-poll-other-answers-label', 'yop_poll_options[other_answers_label]' ) }}
88
- {{ input( yop_poll_options.other_answers_id, '' , 'yop_poll_options[other_answers_id]', 'hidden' ) }}
89
- </td>
90
- </tr>
91
- <tr class="yop_poll_suboption yop-poll-other-answers-label-div" id="yop-poll-other-answers-label-div" style="{% if 'yes' != yop_poll_options.allow_other_answers %} display: none; {% endif %}">
92
- <th>
93
- {{ __( 'Add the values submitted in "Other" as answers ' ) }}:<br>
94
- <small> {{ __('all the values submitted in this field by your users will be automatically added as an available "Answer"') }}</small>
95
- </th>
96
- <td>
97
- {{ label( 'Yes', 'yop-poll-add-other-answers-to-default-answers-yes', 'yop_poll_options[add_other_answers_to_default_answers]', "yes", "radio", "", yop_poll_options.add_other_answers_to_default_answers, "yes" ) }}
98
- {{ label( 'No', 'yop-poll-add-other-answers-to-default-answers-no', 'yop_poll_options[add_other_answers_to_default_answers]', "no", "radio", "", yop_poll_options.add_other_answers_to_default_answers, "no" ) }}
99
- </td>
100
- </tr>
101
- <tr class="yop_poll_suboption" id="yop-poll-display-other-answers-values-div" style="{% if 'yes' != yop_poll_options.allow_other_answers %} display: none; {% endif %}">
102
- <th> {{__( 'Display Other Answers Values' ) }}: </th>
103
- <td>
104
- {{ label( 'Yes', 'yop-poll-display-other-answers-values-yes', 'yop_poll_options[display_other_answers_values]', "yes", "radio", "", yop_poll_options.display_other_answers_values, "yes" ) }}
105
- {{ label( 'No', 'yop-poll-display-other-answers-values-no', 'yop_poll_options[display_other_answers_values]', "no", "radio", "", yop_poll_options.display_other_answers_values, "no" ) }}
106
- </td>
107
- </tr>
108
- <tr class="yop_poll_suboption" id="yop-poll-is-default-other-answers-values-div" style="{% if 'yes' != yop_poll_options.allow_other_answers %} display: none; {% endif %}">
109
- <th> {{__( 'Make "Other answer" default answer' ) }}:<br>
110
- <small>{{ __('"Other Answer" will be autoselected') }}</small>
111
- </th>
112
- <td>
113
 
114
- {{ label( 'Yes', 'yop-poll-is-default-other-answers-yes', 'yop_poll_options[is_default_other_answer]', "yes", "radio", "", yop_poll_options.is_default_other_answer, "yes" ) }}
115
- {{ label( 'No', 'yop-poll-is-default-other-answers-no', 'yop_poll_options[is_default_other_answer]', "no", "radio", "", yop_poll_options.is_default_other_answer, "no" ) }}
116
- </td>
117
- </tr>
118
- <tr>
119
- <th> {{__( 'Allow Multiple Answers' ) }}: </th>
120
- <td>
121
- {{ label( 'Yes', 'yop-poll-allow-multiple-answers-yes', 'yop_poll_options[allow_multiple_answers]', "yes", "radio", "", yop_poll_options.allow_multiple_answers, "yes" ) }}
122
- {{ label( 'No', 'yop-poll-allow-multiple-answers-no', 'yop_poll_options[allow_multiple_answers]', "no", "radio", "", yop_poll_options.allow_multiple_answers, "no" ) }}
123
- </td>
124
- </tr>
125
- <tr class="yop_poll_suboption" id="yop-poll-allow-multiple-answers-div" style="{% if 'yes' != yop_poll_options.allow_multiple_answers %} display: none; {% endif %}">
126
- <th> {{__( 'Maximum Number of allowed answers' ) }}: </th>
127
- <td>
128
- {{ input( yop_poll_options.allow_multiple_answers_number, 'yop-poll-allow-multiple-answers-number', 'yop_poll_options[allow_multiple_answers_number]' )}}
129
- </td>
130
- </tr>
131
- <tr class="yop_poll_suboption" id="yop-poll-allow-multiple-answers-div1" style="{% if 'yes' != yop_poll_options.allow_multiple_answers %} display: none; {% endif %}">
132
- <th> {{__( 'Minimum Number of allowed answers' ) }}: </th>
133
- <td>
134
- {{ input( yop_poll_options.allow_multiple_answers_min_number, 'yop-poll-allow-multiple-answers-min-number', 'yop_poll_options[allow_multiple_answers_min_number]' )}}
135
- </td>
136
- </tr>
137
- <tr>
138
- <th>{{ __('Display Answers') }}:</th>
139
- <td>
140
- {{ label( 'Vertical', 'yop-poll-display-answers-vertical', 'yop_poll_options[display_answers]', "vertical", "radio", "", yop_poll_options.display_answers, "vertical" ) }}
141
- {{ label( 'Horizontal', 'yop-poll-display-answers-orizontal', 'yop_poll_options[display_answers]', "orizontal", "radio", "", yop_poll_options.display_answers, "orizontal" ) }}
142
- {{ label( 'Tabulated', 'yop-poll-display-answers-tabulated', 'yop_poll_options[display_answers]', "tabulated", "radio", "", yop_poll_options.display_answers, "tabulated" ) }}
143
- </td>
144
- </tr>
145
- <tr class="yop_poll_suboption" id="yop-poll-display-answers-tabulated-div" style="{% if 'tabulated' != yop_poll_options.display_answers %} display: none; {% endif %}">
146
- <th>{{ __('Columns') }}:</th>
147
- <td>
148
- {{ input( yop_poll_options.display_answers_tabulated_cols, 'yop-poll-display-answers-tabulated-cols', 'yop_poll_options[display_answers_tabulated_cols]' )}}
149
- </td>
150
- </tr>
151
- </tbody>
152
- </table>
153
- </div>
154
- </div>
155
- <!-- End Questions Options -->
156
- </div>
157
 
158
  <!-- Start Results Options -->
159
  <div class="step-pane active" id="step-3">
160
  <div class="postbox stuffbox" id="3">
161
- <div title="{{ __('Click to toggle') }}" class="handlediv"><br/></div>
162
  <h3 class="hndle" style="border-bottom: 1px solid #AAAAAA;">
163
- <span>{{ __( 'Results Options' ) }}</span>
164
  </h3>
165
  <div class="inside">
166
  <table width="100%" cellspacing="0" class="yop-poll-options-table links-table">
167
  <tbody>
168
  <tr>
169
- <th>{{ __('Sort Results') }}:</th>
170
  <td>
171
- {{ label( 'As Defined', 'yop_poll_sorting_results_as_defined', 'yop_poll_options[sorting_results]', "as_defined", "radio", "", yop_poll_options.sorting_results, "as_defined" ) }}
172
- {{ label( 'Alphabetical Order', 'yop_poll_sorting_results_alphabetical', 'yop_poll_options[sorting_results]', "alphabetical", "radio", "", yop_poll_options.sorting_results, "alphabetical" ) }}
173
- {{ label( 'by Number of Votes', 'yop_poll_sorting_results_votes', 'yop_poll_options[sorting_results]', "votes", "radio", "", yop_poll_options.sorting_results, "votes" ) }}
174
  </td>
175
  </tr>
176
  <tr>
177
- <th>{{ __('Sort Results Rule') }}:</th>
178
  <td>
179
- {{ label('Ascending', 'yop_poll_sorting_results_asc', 'yop_poll_options[sorting_results_direction]', 'asc', 'radio', '', yop_poll_options.sorting_results_direction, "asc" ) }}
180
- {{ label('Descending', 'yop_poll_sorting_results_desc', 'yop_poll_options[sorting_results_direction]', 'desc', 'radio', '', yop_poll_options.sorting_results_direction, "desc") }}
181
  </td>
182
  </tr>
183
  <tr>
184
- <th> {{ __('Poll Answer Result Votes Number Label') }}: </th>
185
  <td>
186
- {{ __('Singular') }}
187
  {{ input( yop_poll_options.singular_answer_result_votes_number_label, 'yop-poll-singular-answer-result-votes-number-label', 'yop_poll_options[singular_answer_result_votes_number_label]') }}
188
- {{ __('Plural') }}
189
  {{ input( yop_poll_options.plural_answer_result_votes_number_label, 'yop-poll-plural-answer-result-votes-number-label', 'yop_poll_options[plural_answer_result_votes_number_label]') }}
190
  </td>
191
  </tr>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
192
  <tr>
193
- <th>{{ __('Display Results') }}: </th>
194
  <td>
195
- {{ label( 'Vertical', 'yop-poll-display-results-vertical', 'yop_poll_options[display_results]', "vertical", "radio", "", yop_poll_options.display_results, "vertical" ) }}
196
- {{ label( 'Horizontal', 'yop-poll-display-results-orizontal', 'yop_poll_options[display_results]', "orizontal", "radio", "", yop_poll_options.display_results, "orizontal" ) }}
197
- {{ label( 'Tabulated', 'yop-poll-display-results-tabulated', 'yop_poll_options[display_results]', "tabulated", "radio", "", yop_poll_options.display_results, "tabulated" ) }}
198
  </td>
199
  </tr>
200
  <tr class="yop_poll_suboption" id="yop-poll-display-results-tabulated-div" style="{% if 'tabulated' != yop_poll_options.display_results %} display: none; {% endif %}">
201
- <th> {{ __( 'Columns' ) }}: </th>
202
  <td>
203
  {{ input( yop_poll_options.display_results_tabulated_cols, 'yop-poll-display-results-tabulated-cols', 'yop_poll_options[display_results_tabulated_cols]') }}
204
  </td>
205
  </tr>
206
  <tr>
207
- <th> {{ __('Poll Bar Style') }}: </th>
208
  <td></td>
209
  </tr>
210
  <tr class="yop-poll-custom-result-bar-table yop_poll_suboption">
211
  <th>
212
- <label for="yop-poll-bar-background">{{ __('Background Color') }}:</label>
213
  </th>
214
  <td>#<input class="yop-small-input hascolorpicker"
215
  id="yop-poll-bar-background"
@@ -220,7 +240,7 @@
220
  </tr>
221
  <tr class="yop-poll-custom-result-bar-table yop_poll_suboption">
222
  <th>
223
- <label for="yop-poll-bar-height">{{ __('Height') }}:</label>
224
  </th>
225
  <td>&nbsp;&nbsp;
226
  <input class="yop-small-input" id="yop-poll-bar-height"
@@ -230,7 +250,7 @@
230
  </tr>
231
  <tr class="yop-poll-custom-result-bar-table yop_poll_suboption">
232
  <th>
233
- <label for="yop-poll-bar-border-color">{{ __('Border Color') }}: </label>
234
  </th>
235
  <td>#<input class="yop-small-input hascolorpicker"
236
  id="yop-poll-bar-border-color"
@@ -241,7 +261,7 @@
241
  </tr>
242
  <tr class="yop-poll-custom-result-bar-table yop_poll_suboption">
243
  <th>
244
- <label for="yop-poll-bar-border-width">{{ __('Border Width') }}:</label>
245
  </th>
246
  <td>&nbsp;&nbsp;
247
  <input class="yop-small-input"
@@ -252,20 +272,20 @@
252
  </tr>
253
  <tr class="yop-poll-custom-result-bar-table yop_poll_suboption">
254
  <th>
255
- <label for="yop-poll-bar-border-style">{{ __('Border Style') }}:</label>
256
  </th>
257
  <td>&nbsp;&nbsp;
258
  <select id="yop-poll-bar-border-style"
259
  onchange="yop_poll_update_bar_style('#yop-poll-bar-preview', 'border-style', this.value)"
260
  name="yop_poll_options[bar_border_style]">
261
- <option value="solid" {{ selected(yop_poll_options.bar_border_style, 'solid') }} >Solid </option>
262
- <option value="dashed" {{ selected(yop_poll_options.bar_border_style, 'dashed') }} >Dashed</option>
263
- <option value="dotted" {{ selected(yop_poll_options.bar_border_style, 'dotted') }} >Dotted</option>
264
  </select></td>
265
  </tr>
266
  <tr class="yop-poll-custom-result-bar-table yop_poll_suboption">
267
  <th>
268
- <label>{{ __('Bar Preview') }}</label>
269
  </th>
270
  <td>&nbsp;&nbsp;
271
  <div id="yop-poll-bar-preview"
@@ -289,42 +309,42 @@
289
  <!-- Start Archive Options -->
290
  <div class="step-pane active" id="step-4">
291
  <div class="postbox stuffbox" id="4">
292
- <div title="{{ __('Click to toggle') }}" class="handlediv"><br/></div>
293
  <h3 class="hndle" style="border-bottom: 1px solid #AAAAAA;">
294
- <span>{{ __( 'Archive Options' ) }}</span>
295
  </h3>
296
  <div class="inside">
297
  <table width="100%" cellspacing="0" class="yop-poll-options-table links-table">
298
  <tbody>
299
  <tr>
300
- <th>{{ __('Order polls') }}:</th>
301
  <td>
302
- {{ label( 'As Defined', 'yop_poll_sorting_archive_polls_as_defined', 'yop_poll_options[sorting_archive_polls]', "as_defined", "radio", "", yop_poll_options.sorting_archive_polls, "as_defined" ) }}
303
- {{ label( 'Database Order', 'yop_poll_sorting_archive_polls_database', 'yop_poll_options[sorting_archive_polls]', "database", "radio", "", yop_poll_options.sorting_archive_polls, "database" ) }}
304
- {{ label( 'by Number of Votes', 'yop_poll_sorting_archive_polls_votes', 'yop_poll_options[sorting_archive_polls]', "votes", "radio", "", yop_poll_options.sorting_archive_polls, "votes" ) }}
305
  </td>
306
  </tr>
307
  <tr class="yop_poll_suboption" id='yop-poll-sort-archive-polls-rule-div' style="{% if 'as_defined' == yop_poll_options.sorting_archive_polls %} display: none; {% endif %}">
308
  <th> {{ __( 'Poll Order Rule' ) }}: </th>
309
  <td>
310
- {{ label( 'Ascending', 'yop_poll_sorting_archive_polls_rule-asc', 'yop_poll_options[sorting_archive_polls_rule]', "asc", "radio", "", yop_poll_options.sorting_archive_polls_rule, "asc" ) }}
311
- {{ label( 'Descending', 'yop_poll_sorting_archive_polls_rule-desc', 'yop_poll_options[sorting_archive_polls_rule]', "desc", "radio", "", yop_poll_options.sorting_archive_polls_rule, "desc") }}
312
  </td>
313
  </tr>
314
  <tr>
315
- <th> {{ __( 'Archive page') }} </th>
316
  <td>
317
  {{poll_archive|raw}}
318
  </td>
319
  </tr>
320
  <tr>
321
- <th> {{ __( 'Poll Archive Link Label') }} </th>
322
  <td>
323
  {{ input( yop_poll_options.archive_link_label, 'yop-poll-archive-link-label', 'yop_poll_options[archive_link_label]' )}}
324
  </td>
325
  </tr>
326
  <tr>
327
- <th> {{ __( 'Polls per Page') }} </th>
328
  <td>
329
  {{ input( yop_poll_options.archive_polls_per_page, 'yop-poll-archive-polls-per-page', 'yop_poll_options[archive_polls_per_page]' )}}
330
  </td>
@@ -340,41 +360,41 @@
340
  <!-- Start Notification Options -->
341
  <div class="step-pane active" id="step-5">
342
  <div class="postbox stuffbox" id="5">
343
- <div title="{{ __('Click to toggle') }}" class="handlediv"><br/></div>
344
  <h3 class="hndle" style="border-bottom: 1px solid #AAAAAA;">
345
- <span>{{ __( ' Notification Options' ) }}</span>
346
  </h3>
347
  <div class="inside">
348
  <table width="100%" cellspacing="0" class="yop-poll-options-table links-table">
349
  <tbody>
350
  <tr>
351
- <th> {{ __('From Name') }}: </th>
352
  <td valign="top">
353
  {{ input( yop_poll_options.email_notifications_from_name, 'yop-poll-email-notifications-from-name', 'yop_poll_options[email_notifications_from_name]' )}}
354
  </td>
355
  </tr>
356
  <tr>
357
- <th> {{ __('From Email') }}: </th>
358
  <td valign="top">
359
  {{ input( yop_poll_options.email_notifications_from_email, 'yop-poll-email-notifications-from-email', 'yop_poll_options[email_notifications_from_email]' )}}
360
  </td>
361
  </tr>
362
  <tr>
363
- <th> {{ __('Recipients') }}: <br><small>({{ __('Use comma separated email addresses: email@xmail.com,email2@ymail.com') }})</small>
364
  </th>
365
  <td valign="top">
366
  {{ input( yop_poll_options.email_notifications_recipients, 'yop-poll-email-notifications-recipients', 'yop_poll_options[email_notifications_recipients]' )}}
367
  </td>
368
  </tr>
369
  <tr>
370
- <th> {{ __('Subject') }}:</th>
371
  <td>
372
 
373
  {{ input( yop_poll_options.email_notifications_subject, 'yop-poll-email-notifications-subject', 'yop_poll_options[email_notifications_subject]' )}}
374
  </td>
375
  </tr>
376
  <tr>
377
- <th>{{ __('Body') }}:</th>
378
  <td>
379
  <textarea id="yop-poll-email-notifications-body" rows="10" name="yop_poll_options[email_notifications_body]">{{ stripslashes(yop_poll_options.email_notifications_body )|e }}</textarea>
380
  </td>
@@ -390,48 +410,48 @@
390
  <!-- Start Media Integration Options -->
391
  <div class="step-pane active" id="step-6">
392
  <div class="postbox stuffbox" id="5">
393
- <div title="{{ __('Click to toggle') }}" class="handlediv"><br/></div>
394
  <h3 class="hndle" style="border-bottom: 1px solid #AAAAAA;">
395
- <span>{{ __( 'Media Integration' ) }}</span>
396
  </h3>
397
  <div class="inside">
398
  <table width="100%" cellspacing="0" class="yop-poll-options-table links-table">
399
  <tbody>
400
  <tr class="yop-poll-vote-as-div yop_poll_suboption" id="yop-poll-vote-permisions-google-share-div" >
401
- <th> {{ __('Use Facebook integration') }}: </th>
402
  <td valign="top">
403
- {{ label( 'Yes', 'yop_poll_google_integration-yes', 'yop_poll_options[google_integration]', "yes", "radio", "yop_poll_tooltip-buy_pro yop_poll_tooltip-buy", yop_poll_options.google_integration, "yes","","" ) }}
404
- {{ label( 'No' , 'yop_poll_google_integration-no' , 'yop_poll_options[google_integration]', "no" , "radio", "yop_poll_tooltip-buy_pro yop_poll_tooltip-buy", yop_poll_options.google_integration, "no","", "" ) }}
405
  <input name="yop_poll_options[google_integration]" style="display:none" checked>
406
  </td>
407
  </tr>
408
  <tr class="yop_poll_suboption yop-poll-facebook-integration-div" id='yop-poll-facebook-integration-div' style="{% if 'no' == yop_poll_options.facebook_integration %} display: none; {% endif %}">
409
- <th> {{ __( 'App ID' ) }}: </th>
410
  <td>
411
  <input id='yop-poll-for-slider-page2' type="text" readonly class="yop_poll_tooltip-buy_pro">
412
  </tr>
413
  <tr class="yop_poll_suboption yop-poll-facebook-integration-div" id='yop-poll-facebook-integration-div' style="{% if 'no' == yop_poll_options.facebook_integration %} display: none; {% endif %}">
414
- <th> {{ __( 'App Secret' ) }}: </th>
415
  <td>
416
  <input id='yop-poll-for-slider-page3' type="text" readonly class="yop_poll_tooltip-buy_pro">
417
  </td>
418
  </tr>
419
  <tr class="yop-poll-vote-as-div yop_poll_suboption" id="yop-poll-vote-permisions-google-share-div" >
420
- <th> {{ __('Use Google+ integration') }}: </th>
421
  <td valign="top">
422
- {{ label( 'Yes', 'yop_poll_google_integration-yes', 'yop_poll_options[google_integration]', "yes", "radio", "yop_poll_tooltip-buy_pro yop_poll_tooltip-buy", yop_poll_options.google_integration, "yes","","" ) }}
423
- {{ label( 'No' , 'yop_poll_google_integration-no' , 'yop_poll_options[google_integration]', "no" , "radio", "yop_poll_tooltip-buy_pro yop_poll_tooltip-buy", yop_poll_options.google_integration, "no","", "" ) }}
424
  <input name="yop_poll_options[google_integration]" style="display:none" checked>
425
  </td>
426
  </tr>
427
  <tr class="yop_poll_suboption yop-poll-google-integration-div" id='yop-poll-facebook-integration-div' style="{% if 'no' == yop_poll_options.facebook_integration %} display: none; {% endif %}">
428
- <th> {{ __( 'App ID' ) }}: </th>
429
  <td>
430
  <input id='yop-poll-for-slider-page' type="text" readonly class="yop_poll_tooltip-buy_pro">
431
  </td>
432
  </tr>
433
  <tr class="yop_poll_suboption yop-poll-google-integration-div" id='yop-poll-facebook-integration-div' style="{% if 'no' == yop_poll_options.google_integration %} display: none; {% endif %}">
434
- <th> {{ __( 'App Secret' ) }}: </th>
435
  <td>
436
  <input id='yop-poll-for-slider-page1' type="text" readonly class="yop_poll_tooltip-buy_pro">
437
  </td>
@@ -454,6 +474,6 @@
454
  </form>
455
  <div id="loading" style="position:absolute; margin-left: 500px; text-align:justify;
456
  top:300px;"> <br> <br>
457
- <span style="position: static; float:left;margin-left: -15px;">Please wait...</span> </div>
458
  </body>
459
  {% endblock content %}
12
  <!-- start postbox-container-1 -->
13
  <div class="postbox-container" id="postbox-container-1">
14
  <div class="postbox stuffbox">
15
+ <div title='{{ __("Click to toggle") }}' class="handlediv">
16
  <br/>
17
  </div>
18
  <h3 class="hndle">
19
+ <span>{{ __("Save") }}</span>
20
  </h3>
21
  <div class="inside">
22
  <div id="submitlink" class="submitbox">
23
  <div id="major-publishing-actions">
24
+ <label class="button-primary" for="yop-poll-general-options-form-submit" >{{ __("Save Changes") }}</label>
25
+ <input type="submit" accesskey="p" style="display: none" class="button-primary" value='{{ __("Save Changes") }}' id="yop-poll-general-options-form-submit"/>
26
  <div class="clear"></div>
27
  </div>
28
  <div class="clear"></div>
35
 
36
  <ul class="steps_options">
37
 
38
+ <li><a tabindex="199" href="#step-1">{{ __( "Poll" ) }}</a></li>
39
 
40
+ <li><a tabindex="199" href="#step-2">{{ __( "Questions" ) }}</a></li>
41
 
42
+ <li><a tabindex="199" href="#step-3">{{ __( "Results" ) }}</a></li>
43
 
44
+ <li><a tabindex="199" href="#step-4">{{ __( "Archive" ) }}</a></li>
45
 
46
+ <li><a tabindex="199" href="#step-5">{{ __( "Notifications" ) }}</a></li>
47
+ <li><a tabindex="199" href="#step-6">{{ __( "Media" ) }}</a></li>
48
 
49
  </ul>
50
 
67
  </div>
68
  <!-- Start Questions Options -->
69
  <div class="step-pane active" id="step-2">
70
+ <div class="postbox stuffbox" id="2">
71
+ <div title='{{ __("Click to toggle") }}' class="handlediv"><br/></div>
72
+ <h3 class="hndle" style="border-bottom: 1px solid #AAAAAA;">
73
+ <span>{{ __( "Questions Options" ) }}</span>
74
+ </h3>
75
+ <div class="inside">
76
+ <table width="100%" cellspacing="0" class="yop-poll-options-table links-table">
77
+ <tbody>
78
+ <tr>
79
+ <th> {{ __("Allow other answers") }}:</th>
80
+ <td>
81
+ {{ label( __("Yes"), 'yop-poll-allow-other-answers-yes', 'yop_poll_options[allow_other_answers]', "yes", "radio", "", yop_poll_options.allow_other_answers, "yes" ) }}
82
+ {{ label( __("No"), 'yop-poll-allow-other-answers-no', 'yop_poll_options[allow_other_answers]', "no", "radio", "", yop_poll_options.allow_other_answers, "no" ) }}
83
+ </td>
84
+ </tr>
85
+ <tr class="yop_poll_suboption yop-poll-other-answers-label-div" id="yop-poll-other-answers-label-div" style="{% if 'yes' != yop_poll_options.allow_other_answers %} display: none; {% endif %}">
86
+ <th> {{ __("Other answer label") }}:</th>
87
+ <td>
88
+ {{ input( yop_poll_options.other_answers_label, 'yop-poll-other-answers-label', 'yop_poll_options[other_answers_label]' ) }}
89
+ {{ input( yop_poll_options.other_answers_id, '' , 'yop_poll_options[other_answers_id]', 'hidden' ) }}
90
+ </td>
91
+ </tr>
92
+ <tr class="yop_poll_suboption yop-poll-other-answers-label-div" id="yop-poll-other-answers-label-div" style="{% if 'yes' != yop_poll_options.allow_other_answers %} display: none; {% endif %}">
93
+ <th>
94
+ {{ __( "Add the values submitted in 'Other' as answers" ) }}:<br>
95
+ <small> {{ __("all the values submitted in this field by your users will be automatically added as an available 'Answer' ") }}</small>
96
+ </th>
97
+ <td>
98
+ {{ label( __("Yes"), 'yop-poll-add-other-answers-to-default-answers-yes', 'yop_poll_options[add_other_answers_to_default_answers]', "yes", "radio", "", yop_poll_options.add_other_answers_to_default_answers, "yes" ) }}
99
+ {{ label( __("No"), 'yop-poll-add-other-answers-to-default-answers-no', 'yop_poll_options[add_other_answers_to_default_answers]', "no", "radio", "", yop_poll_options.add_other_answers_to_default_answers, "no" ) }}
100
+ </td>
101
+ </tr>
102
+ <tr class="yop_poll_suboption" id="yop-poll-display-other-answers-values-div" style="{% if 'yes' != yop_poll_options.allow_other_answers %} display: none; {% endif %}">
103
+ <th> {{__( "Display Other Answers Values" ) }}: </th>
104
+ <td>
105
+ {{ label( __("Yes"), 'yop-poll-display-other-answers-values-yes', 'yop_poll_options[display_other_answers_values]', "yes", "radio", "", yop_poll_options.display_other_answers_values, "yes" ) }}
106
+ {{ label( __("No"), 'yop-poll-display-other-answers-values-no', 'yop_poll_options[display_other_answers_values]', "no", "radio", "", yop_poll_options.display_other_answers_values, "no" ) }}
107
+ </td>
108
+ </tr>
109
+ <tr class="yop_poll_suboption" id="yop-poll-is-default-other-answers-values-div" style="{% if 'yes' != yop_poll_options.allow_other_answers %} display: none; {% endif %}">
110
+ <th> {{__( "Make 'Other answer' default answer" ) }}:<br>
111
+ <small>{{ __(" 'Other Answer' will be autoselected") }}</small>
112
+ </th>
113
+ <td>
114
 
115
+ {{ label( __("Yes"), 'yop-poll-is-default-other-answers-yes', 'yop_poll_options[is_default_other_answer]', "yes", "radio", "", yop_poll_options.is_default_other_answer, "yes" ) }}
116
+ {{ label( __("No"), 'yop-poll-is-default-other-answers-no', 'yop_poll_options[is_default_other_answer]', "no", "radio", "", yop_poll_options.is_default_other_answer, "no" ) }}
117
+ </td>
118
+ </tr>
119
+ <tr>
120
+ <th> {{__( "Allow Multiple Answers" ) }}: </th>
121
+ <td>
122
+ {{ label( __("Yes"), 'yop-poll-allow-multiple-answers-yes', 'yop_poll_options[allow_multiple_answers]', "yes", "radio", "", yop_poll_options.allow_multiple_answers, "yes" ) }}
123
+ {{ label( __("No"), 'yop-poll-allow-multiple-answers-no', 'yop_poll_options[allow_multiple_answers]', "no", "radio", "", yop_poll_options.allow_multiple_answers, "no" ) }}
124
+ </td>
125
+ </tr>
126
+ <tr class="yop_poll_suboption" id="yop-poll-allow-multiple-answers-div" style="{% if 'yes' != yop_poll_options.allow_multiple_answers %} display: none; {% endif %}">
127
+ <th> {{__( "Maximum Number of allowed answers" ) }}: </th>
128
+ <td>
129
+ {{ input( yop_poll_options.allow_multiple_answers_number, 'yop-poll-allow-multiple-answers-number', 'yop_poll_options[allow_multiple_answers_number]' )}}
130
+ </td>
131
+ </tr>
132
+ <tr class="yop_poll_suboption" id="yop-poll-allow-multiple-answers-div1" style="{% if 'yes' != yop_poll_options.allow_multiple_answers %} display: none; {% endif %}">
133
+ <th> {{__( "Minimum Number of allowed answers") }}: </th>
134
+ <td>
135
+ {{ input( yop_poll_options.allow_multiple_answers_min_number, 'yop-poll-allow-multiple-answers-min-number', 'yop_poll_options[allow_multiple_answers_min_number]' )}}
136
+ </td>
137
+ </tr>
138
+ <tr>
139
+ <th>{{ __("Display Answers") }}:</th>
140
+ <td>
141
+ {{ label( __("Vertical"), 'yop-poll-display-answers-vertical', 'yop_poll_options[display_answers]', "vertical", "radio", "", yop_poll_options.display_answers, "vertical" ) }}
142
+ {{ label( __("Horizontal"), 'yop-poll-display-answers-orizontal', 'yop_poll_options[display_answers]', "orizontal", "radio", "", yop_poll_options.display_answers, "orizontal" ) }}
143
+ {{ label( __("Tabulated"), 'yop-poll-display-answers-tabulated', 'yop_poll_options[display_answers]', "tabulated", "radio", "", yop_poll_options.display_answers, "tabulated" ) }}
144
+ </td>
145
+ </tr>
146
+ <tr class="yop_poll_suboption" id="yop-poll-display-answers-tabulated-div" style="{% if 'tabulated' != yop_poll_options.display_answers %} display: none; {% endif %}">
147
+ <th>{{ __("Columns") }}:</th>
148
+ <td>
149
+ {{ input( yop_poll_options.display_answers_tabulated_cols, 'yop-poll-display-answers-tabulated-cols', 'yop_poll_options[display_answers_tabulated_cols]' )}}
150
+ </td>
151
+ </tr>
152
+ </tbody>
153
+ </table>
154
+ </div>
155
+ </div>
156
+ <!-- End Questions Options -->
157
+ </div>
158
 
159
  <!-- Start Results Options -->
160
  <div class="step-pane active" id="step-3">
161
  <div class="postbox stuffbox" id="3">
162
+ <div title='{{ __("Click to toggle") }}' class="handlediv"><br/></div>
163
  <h3 class="hndle" style="border-bottom: 1px solid #AAAAAA;">
164
+ <span>{{ __( "Results Options" ) }}</span>
165
  </h3>
166
  <div class="inside">
167
  <table width="100%" cellspacing="0" class="yop-poll-options-table links-table">
168
  <tbody>
169
  <tr>
170
+ <th>{{ __("Sort Results") }}:</th>
171
  <td>
172
+ {{ label( __("As Defined"), 'yop_poll_sorting_results_as_defined', 'yop_poll_options[sorting_results]', "as_defined", "radio", "", yop_poll_options.sorting_results, "as_defined" ) }}
173
+ {{ label( __("Alphabetical Order"), 'yop_poll_sorting_results_alphabetical', 'yop_poll_options[sorting_results]', "alphabetical", "radio", "", yop_poll_options.sorting_results, "alphabetical" ) }}
174
+ {{ label( __("by Number of Votes"), 'yop_poll_sorting_results_votes', 'yop_poll_options[sorting_results]', "votes", "radio", "", yop_poll_options.sorting_results, "votes" ) }}
175
  </td>
176
  </tr>
177
  <tr>
178
+ <th>{{ __("Sort Results Rule") }}:</th>
179
  <td>
180
+ {{ label(__("Ascending"), 'yop_poll_sorting_results_asc', 'yop_poll_options[sorting_results_direction]', 'asc', 'radio', '', yop_poll_options.sorting_results_direction, "asc" ) }}
181
+ {{ label(__("Descending"), 'yop_poll_sorting_results_desc', 'yop_poll_options[sorting_results_direction]', 'desc', 'radio', '', yop_poll_options.sorting_results_direction, "desc") }}
182
  </td>
183
  </tr>
184
  <tr>
185
+ <th> {{ __("Poll Answer Result Votes Number Label") }}: </th>
186
  <td>
187
+ {{ __("Singular") }}
188
  {{ input( yop_poll_options.singular_answer_result_votes_number_label, 'yop-poll-singular-answer-result-votes-number-label', 'yop_poll_options[singular_answer_result_votes_number_label]') }}
189
+ {{ __("Plural") }}
190
  {{ input( yop_poll_options.plural_answer_result_votes_number_label, 'yop-poll-plural-answer-result-votes-number-label', 'yop_poll_options[plural_answer_result_votes_number_label]') }}
191
  </td>
192
  </tr>
193
+ <tr >
194
+
195
+ <th>{{ __("Display Results as") }}: </th>
196
+
197
+ <td>
198
+
199
+ {{ label(__("Bar"), 'yop_poll_results_bar', 'yop_poll_options[show_results_in]', 'bar', 'radio', '', yop_poll_options.show_results_in, "bar" ) }}
200
+
201
+ {{ label(__("Pie"), 'yop_poll_results_bar_pie', 'yop_poll_options[show_results_in]', 'bar', 'radio', 'yop_poll_tooltip-buy_pro yop_poll_tooltip-buy', "bar") }}
202
+
203
+ {{ label(__("Polar Area"), 'yop_poll_results_polar', 'yop_poll_options[show_results_in]', 'bar', 'radio', 'yop_poll_tooltip-buy_pro yop_poll_tooltip-buy', "bar" ) }}
204
+
205
+ {{ label(__("Doughnut"), 'yop_poll_results_doughnut', 'yop_poll_options[show_results_in]', 'bar', 'radio', 'yop_poll_tooltip-buy_pro yop_poll_tooltip-buy', "bar") }}
206
+
207
+ </td>
208
+
209
+ <td></td>
210
+
211
+ </tr>
212
  <tr>
213
+ <th>{{ __("Display Results") }}: </th>
214
  <td>
215
+ {{ label( __("Vertical"), 'yop-poll-display-results-vertical', 'yop_poll_options[display_results]', "vertical", "radio", "", yop_poll_options.display_results, "vertical" ) }}
216
+ {{ label( __("Horizontal"), 'yop-poll-display-results-orizontal', 'yop_poll_options[display_results]', "orizontal", "radio", "", yop_poll_options.display_results, "orizontal" ) }}
217
+ {{ label( __("Tabulated"), 'yop-poll-display-results-tabulated', 'yop_poll_options[display_results]', "tabulated", "radio", "", yop_poll_options.display_results, "tabulated" ) }}
218
  </td>
219
  </tr>
220
  <tr class="yop_poll_suboption" id="yop-poll-display-results-tabulated-div" style="{% if 'tabulated' != yop_poll_options.display_results %} display: none; {% endif %}">
221
+ <th> {{ __( "Columns" ) }}: </th>
222
  <td>
223
  {{ input( yop_poll_options.display_results_tabulated_cols, 'yop-poll-display-results-tabulated-cols', 'yop_poll_options[display_results_tabulated_cols]') }}
224
  </td>
225
  </tr>
226
  <tr>
227
+ <th> {{ __("Poll Bar Style") }}: </th>
228
  <td></td>
229
  </tr>
230
  <tr class="yop-poll-custom-result-bar-table yop_poll_suboption">
231
  <th>
232
+ <label for="yop-poll-bar-background">{{ __("Background Color") }}:</label>
233
  </th>
234
  <td>#<input class="yop-small-input hascolorpicker"
235
  id="yop-poll-bar-background"
240
  </tr>
241
  <tr class="yop-poll-custom-result-bar-table yop_poll_suboption">
242
  <th>
243
+ <label for="yop-poll-bar-height">{{ __("Height") }}:</label>
244
  </th>
245
  <td>&nbsp;&nbsp;
246
  <input class="yop-small-input" id="yop-poll-bar-height"
250
  </tr>
251
  <tr class="yop-poll-custom-result-bar-table yop_poll_suboption">
252
  <th>
253
+ <label for="yop-poll-bar-border-color">{{ __("Border Color") }}: </label>
254
  </th>
255
  <td>#<input class="yop-small-input hascolorpicker"
256
  id="yop-poll-bar-border-color"
261
  </tr>
262
  <tr class="yop-poll-custom-result-bar-table yop_poll_suboption">
263
  <th>
264
+ <label for="yop-poll-bar-border-width">{{ __("Border Width") }}:</label>
265
  </th>
266
  <td>&nbsp;&nbsp;
267
  <input class="yop-small-input"
272
  </tr>
273
  <tr class="yop-poll-custom-result-bar-table yop_poll_suboption">
274
  <th>
275
+ <label for="yop-poll-bar-border-style">{{ __("Border Style") }}:</label>
276
  </th>
277
  <td>&nbsp;&nbsp;
278
  <select id="yop-poll-bar-border-style"
279
  onchange="yop_poll_update_bar_style('#yop-poll-bar-preview', 'border-style', this.value)"
280
  name="yop_poll_options[bar_border_style]">
281
+ <option value="solid" {{ selected(yop_poll_options.bar_border_style, 'solid') }} >{{__("Solid")}} </option>
282
+ <option value="dashed" {{ selected(yop_poll_options.bar_border_style, 'dashed') }} >{{__("Dashed")}}</option>
283
+ <option value="dotted" {{ selected(yop_poll_options.bar_border_style, 'dotted') }} >{{__("Dotted")}}</option>
284
  </select></td>
285
  </tr>
286
  <tr class="yop-poll-custom-result-bar-table yop_poll_suboption">
287
  <th>
288
+ <label>{{ __("Bar Preview") }}</label>
289
  </th>
290
  <td>&nbsp;&nbsp;
291
  <div id="yop-poll-bar-preview"
309
  <!-- Start Archive Options -->
310
  <div class="step-pane active" id="step-4">
311
  <div class="postbox stuffbox" id="4">
312
+ <div title='{{ __("Click to toggle") }}' class="handlediv"><br/></div>
313
  <h3 class="hndle" style="border-bottom: 1px solid #AAAAAA;">
314
+ <span>{{ __( "Archive Options" ) }}</span>
315
  </h3>
316
  <div class="inside">
317
  <table width="100%" cellspacing="0" class="yop-poll-options-table links-table">
318
  <tbody>
319
  <tr>
320
+ <th>{{ __("Order polls") }}:</th>
321
  <td>
322
+ {{ label( __("As Defined"), 'yop_poll_sorting_archive_polls_as_defined', 'yop_poll_options[sorting_archive_polls]', "as_defined", "radio", "", yop_poll_options.sorting_archive_polls, "as_defined" ) }}
323
+ {{ label( __("Database Order"), 'yop_poll_sorting_archive_polls_database', 'yop_poll_options[sorting_archive_polls]', "database", "radio", "", yop_poll_options.sorting_archive_polls, "database" ) }}
324
+ {{ label( __("by Number of Votes"), 'yop_poll_sorting_archive_polls_votes', 'yop_poll_options[sorting_archive_polls]', "votes", "radio", "", yop_poll_options.sorting_archive_polls, "votes" ) }}
325
  </td>
326
  </tr>
327
  <tr class="yop_poll_suboption" id='yop-poll-sort-archive-polls-rule-div' style="{% if 'as_defined' == yop_poll_options.sorting_archive_polls %} display: none; {% endif %}">
328
  <th> {{ __( 'Poll Order Rule' ) }}: </th>
329
  <td>
330
+ {{ label( __("Ascending"), 'yop_poll_sorting_archive_polls_rule-asc', 'yop_poll_options[sorting_archive_polls_rule]', "asc", "radio", "", yop_poll_options.sorting_archive_polls_rule, "asc" ) }}
331
+ {{ label( __("Descending"), 'yop_poll_sorting_archive_polls_rule-desc', 'yop_poll_options[sorting_archive_polls_rule]', "desc", "radio", "", yop_poll_options.sorting_archive_polls_rule, "desc") }}
332
  </td>
333
  </tr>
334
  <tr>
335
+ <th> {{ __( "Archive page") }} </th>
336
  <td>
337
  {{poll_archive|raw}}
338
  </td>
339
  </tr>
340
  <tr>
341
+ <th> {{ __( "Poll Archive Link Label") }} </th>
342
  <td>
343
  {{ input( yop_poll_options.archive_link_label, 'yop-poll-archive-link-label', 'yop_poll_options[archive_link_label]' )}}
344
  </td>
345
  </tr>
346
  <tr>
347
+ <th> {{ __( "Polls per Page") }} </th>
348
  <td>
349
  {{ input( yop_poll_options.archive_polls_per_page, 'yop-poll-archive-polls-per-page', 'yop_poll_options[archive_polls_per_page]' )}}
350
  </td>
360
  <!-- Start Notification Options -->
361
  <div class="step-pane active" id="step-5">
362
  <div class="postbox stuffbox" id="5">
363
+ <div title='{{ __("Click to toggle") }}' class="handlediv"><br/></div>
364
  <h3 class="hndle" style="border-bottom: 1px solid #AAAAAA;">
365
+ <span>{{ __( "Notification Options" ) }}</span>
366
  </h3>
367
  <div class="inside">
368
  <table width="100%" cellspacing="0" class="yop-poll-options-table links-table">
369
  <tbody>
370
  <tr>
371
+ <th> {{ __("From Name") }}: </th>
372
  <td valign="top">
373
  {{ input( yop_poll_options.email_notifications_from_name, 'yop-poll-email-notifications-from-name', 'yop_poll_options[email_notifications_from_name]' )}}
374
  </td>
375
  </tr>
376
  <tr>
377
+ <th> {{ __("From Email") }}: </th>
378
  <td valign="top">
379
  {{ input( yop_poll_options.email_notifications_from_email, 'yop-poll-email-notifications-from-email', 'yop_poll_options[email_notifications_from_email]' )}}
380
  </td>
381
  </tr>
382
  <tr>
383
+ <th> {{ __("Recipients") }}: <br><small>({{ __("Use comma separated email addresses: email@xmail.com,email2@ymail.com") }})</small>
384
  </th>
385
  <td valign="top">
386
  {{ input( yop_poll_options.email_notifications_recipients, 'yop-poll-email-notifications-recipients', 'yop_poll_options[email_notifications_recipients]' )}}
387
  </td>
388
  </tr>
389
  <tr>
390
+ <th> {{ __("Subject") }}:</th>
391
  <td>
392
 
393
  {{ input( yop_poll_options.email_notifications_subject, 'yop-poll-email-notifications-subject', 'yop_poll_options[email_notifications_subject]' )}}
394
  </td>
395
  </tr>
396
  <tr>
397
+ <th>{{ __("Body") }}:</th>
398
  <td>
399
  <textarea id="yop-poll-email-notifications-body" rows="10" name="yop_poll_options[email_notifications_body]">{{ stripslashes(yop_poll_options.email_notifications_body )|e }}</textarea>
400
  </td>
410
  <!-- Start Media Integration Options -->
411
  <div class="step-pane active" id="step-6">
412
  <div class="postbox stuffbox" id="5">
413
+ <div title='{{ __("Click to toggle") }}' class="handlediv"><br/></div>
414
  <h3 class="hndle" style="border-bottom: 1px solid #AAAAAA;">
415
+ <span>{{ __( "Media Integration" ) }}</span>
416
  </h3>
417
  <div class="inside">
418
  <table width="100%" cellspacing="0" class="yop-poll-options-table links-table">
419
  <tbody>
420
  <tr class="yop-poll-vote-as-div yop_poll_suboption" id="yop-poll-vote-permisions-google-share-div" >
421
+ <th> {{ __("Use Facebook integration") }}: </th>
422
  <td valign="top">
423
+ {{ label( __("Yes"), 'yop_poll_google_integration-yes', 'yop_poll_options[google_integration]', "yes", "radio", "yop_poll_tooltip-buy_pro yop_poll_tooltip-buy", yop_poll_options.google_integration, "yes","","" ) }}
424
+ {{ label( __("No") , 'yop_poll_google_integration-no' , 'yop_poll_options[google_integration]', "no" , "radio", "yop_poll_tooltip-buy_pro yop_poll_tooltip-buy", yop_poll_options.google_integration, "no","", "" ) }}
425
  <input name="yop_poll_options[google_integration]" style="display:none" checked>
426
  </td>
427
  </tr>
428
  <tr class="yop_poll_suboption yop-poll-facebook-integration-div" id='yop-poll-facebook-integration-div' style="{% if 'no' == yop_poll_options.facebook_integration %} display: none; {% endif %}">
429
+ <th> {{ __( "App ID" ) }}: </th>
430
  <td>
431
  <input id='yop-poll-for-slider-page2' type="text" readonly class="yop_poll_tooltip-buy_pro">
432
  </tr>
433
  <tr class="yop_poll_suboption yop-poll-facebook-integration-div" id='yop-poll-facebook-integration-div' style="{% if 'no' == yop_poll_options.facebook_integration %} display: none; {% endif %}">
434
+ <th> {{ __( "App Secret" ) }}: </th>
435
  <td>
436
  <input id='yop-poll-for-slider-page3' type="text" readonly class="yop_poll_tooltip-buy_pro">
437
  </td>
438
  </tr>
439
  <tr class="yop-poll-vote-as-div yop_poll_suboption" id="yop-poll-vote-permisions-google-share-div" >
440
+ <th> {{ __("Use Google+ integration") }}: </th>
441
  <td valign="top">
442
+ {{ label( __("Yes"), 'yop_poll_google_integration-yes', 'yop_poll_options[google_integration]', "yes", "radio", "yop_poll_tooltip-buy_pro yop_poll_tooltip-buy", yop_poll_options.google_integration, "yes","","" ) }}
443
+ {{ label( __("No") , 'yop_poll_google_integration-no' , 'yop_poll_options[google_integration]', "no" , "radio", "yop_poll_tooltip-buy_pro yop_poll_tooltip-buy", yop_poll_options.google_integration, "no","", "" ) }}
444
  <input name="yop_poll_options[google_integration]" style="display:none" checked>
445
  </td>
446
  </tr>
447
  <tr class="yop_poll_suboption yop-poll-google-integration-div" id='yop-poll-facebook-integration-div' style="{% if 'no' == yop_poll_options.facebook_integration %} display: none; {% endif %}">
448
+ <th> {{ __( "App ID" ) }}: </th>
449
  <td>
450
  <input id='yop-poll-for-slider-page' type="text" readonly class="yop_poll_tooltip-buy_pro">
451
  </td>
452
  </tr>
453
  <tr class="yop_poll_suboption yop-poll-google-integration-div" id='yop-poll-facebook-integration-div' style="{% if 'no' == yop_poll_options.google_integration %} display: none; {% endif %}">
454
+ <th> {{ __( "App Secret" ) }}: </th>
455
  <td>
456
  <input id='yop-poll-for-slider-page1' type="text" readonly class="yop_poll_tooltip-buy_pro">
457
  </td>
474
  </form>
475
  <div id="loading" style="position:absolute; margin-left: 500px; text-align:justify;
476
  top:300px;"> <br> <br>
477
+ <span style="position: static; float:left;margin-left: -15px;">{{__("Please wait")}}...</span> </div>
478
  </body>
479
  {% endblock content %}
templates/options_poll_options.html CHANGED
@@ -5,9 +5,9 @@
5
  {% set current_poll = yop_poll_options %}
6
 
7
  <div class="postbox stuffbox {% if ( 'advanced' == user_interface_type ) %} closed {% endif %}">
8
- <div title="{{ __('Click to toggle') }}" class="handlediv"><br/></div>
9
  <h3 class="hndle" style="border-bottom: 1px solid #AAAAAA;">
10
- <span>{{ __('Poll Options') }}</span>
11
  </h3>
12
 
13
  <div class="inside">
@@ -15,7 +15,7 @@
15
  <tbody>
16
  <tr>
17
  <th>
18
- {{__( 'Start Date' ) }}:
19
  </th>
20
  <td valign="top">
21
  {{ input(convert_date(current_poll.poll_start_date,date_format), 'yop-poll-start-date', 'yop_poll_options[poll_start_date]', 'text', '', 'hasDatePicker' ) }}
@@ -23,7 +23,7 @@
23
  </tr>
24
  <tr>
25
  <th>
26
- {{__( 'End Date' ) }}:
27
  </th>
28
  <td valign="top">
29
  <label for="yop-poll-never-expire">
@@ -31,24 +31,23 @@
31
  {% if convert_date(current_poll.poll_end_date , 'd-m-Y H:i:s') == convert_date( "01-01-2038 23:59:59", 'd-m-Y H:i:s') %} checked="checked"{% endif %}
32
  onclick="end_date_option()"
33
  >
34
- {{ __('No end date') }}
35
  </label>
36
  <input {% if convert_date(current_poll.poll_end_date , 'd-m-Y H:i:s') == convert_date( "01-01-2038 23:59:59", 'd-m-Y H:i:s') %}style="display:none;"{% endif %} type="text" name="yop_poll_options[poll_end_date]" id="yop-poll-end-date-input" value="{{ convert_date(current_poll.poll_end_date ,date_format)}}" class='hasDatePicker' />
37
  </td>
38
  </tr>
39
  <tr>
40
- <th>{{__('Display Results')}}:</th>
41
  <td>
42
- {{ label( 'Before Vote', 'yop-poll-view-results-before-vote', 'yop_poll_options[view_results][]', "before", "checkbox", "yop-poll-view-results-uncheck-nc", current_poll.view_results, "before" ) }}
43
- {{ label( 'After Vote', 'yop-poll-view-results-after-vote', 'yop_poll_options[view_results][]', "after", "checkbox", "yop-poll-view-results-uncheck-nc", current_poll.view_results, "after" ) }}
44
- {{ label( 'After Poll End Date','yop-poll-view-results-after-poll-end-date', 'yop_poll_options[view_results][]', "after-poll-end-date","checkbox", "yop-poll-view-results-uncheck-nc", current_poll.view_results, "after-poll-end-date" ) }}
45
- {{ label( 'Never', 'yop-poll-view-results-never', 'yop_poll_options[view_results][]', "never", "checkbox", "yop-poll-view-results-uncheck-n-all", current_poll.view_results, "never" ) }}
46
- {{ label( 'Custom Date', 'yop-poll-view-results-custom', 'yop_poll_options[view_results][]', "custom-date", "checkbox", "yop-poll-view-results-uncheck-c-all", current_poll.view_results, "custom-date" ) }}
47
  <div id="yop-poll-display-view-results-div" >
48
  <label for="yop-poll-view-results-start-date">
49
- {{__('Results display date')}}
50
- <small>{{__('(the users will be able to view poll results starting with following date
51
- )')}}
52
  </small>
53
  :
54
  <input type="text" id="yop-poll-view-results-start-date" name="yop_poll_options[view_results_start_date]" value="{{ convert_date(current_poll.view_results_start_date,date_format) }}" class='hasDatePicker'>
@@ -57,201 +56,201 @@
57
  </td>
58
  </tr>
59
  <tr>
60
- <th> {{ __('Display Results Permissions')}}</th>
61
  <td>
62
- {{ label( 'Guest', 'yop-poll-view-results-permissions-guest', 'yop_poll_options[view_results_permissions][]', "guest", "checkbox", "", current_poll.view_results_permissions, "guest" ) }}
63
- {{ label( 'Registered', 'yop-poll-view-results-permissions-registered', 'yop_poll_options[view_results_permissions][]', "registered", "checkbox", "", current_poll.view_results_permissions, "registered" ) }}
64
  </td>
65
  </tr>
66
  <tr>
67
- <th> {{__( 'Results Display')}}:</th>
68
  <td>
69
- {{ label( 'By Votes Number', 'yop-poll-view-results-votes-number', 'yop_poll_options[view_results_type]', "votes-number", "radio", "", current_poll.view_results_type, "votes-number" ) }}
70
- {{ label( 'Percentages', 'yop-poll-view-results-percentages', 'yop_poll_options[view_results_type]', "percentages", "radio", "", current_poll.view_results_type, "percentages" ) }}
71
- {{ label( 'by Votes Number and Percentages', 'yop-poll-view-results-votes-number-and-percentages', 'yop_poll_options[view_results_type]', "votes-number-and-percentages", "radio", "", current_poll.view_results_type, "votes-number-and-percentages" ) }}
72
  </td>
73
  </tr>
74
  <tr>
75
- <th> {{__( 'Poll Answer Result Label')}}:</th>
76
  <td>
77
  {{ input(current_poll.answer_result_label, 'yop-poll-answer-result-label', 'yop_poll_options[answer_result_label]', 'text' ) }}
78
- <small><i> {{ __('Use %POLL-ANSWER-RESULT-PERCENTAGES% for showing answer percentages and %POLL-ANSWER-RESULT-VOTES% for showing answer number of votes' ) }}</i></small>
79
  </td>
80
  </tr>
81
  <tr>
82
- <th> {{ __('Vote Button Label') }}:</th>
83
  <td>
84
  {{ input( current_poll.vote_button_label, 'yop-poll-vote-button-label', 'yop_poll_options[vote_button_label]') }}
85
  </td>
86
  </tr>
87
  <tr>
88
- <th> {{ __('Display Results Link') }}:</th>
89
  <td>
90
- {{ label( 'Yes', 'yop-poll-view-results-link-yes', 'yop_poll_options[view_results_link]', "yes", "radio", "", current_poll.view_results_link, "yes" ) }}
91
- {{ label( 'No', 'yop-poll-view-results-link-no', 'yop_poll_options[view_results_link]', "no", "radio", "", current_poll.view_results_link, "no" ) }}
92
  </td>
93
  </tr>
94
  <tr class="yop_poll_suboption" id="yop-poll-view-results-link-div" >
95
- <th> {{ __('Results Link Label') }}:</th>
96
  <td>
97
  {{ input( current_poll.view_results_link_label, 'yop-poll-view-results-link-label', 'yop_poll_options[view_results_link_label]') }}<br/>
98
  </td>
99
  </tr>
100
  <tr>
101
- <th> {{ __('Display Back To Vote Link') }}:</th>
102
  <td>
103
- {{ label( 'Yes', 'yop-poll-view-back-to-vote-link-yes', 'yop_poll_options[view_back_to_vote_link]', "yes", "radio", "", current_poll.view_back_to_vote_link, "yes" ) }}
104
- {{ label( 'No', 'yop-poll-view-back-to-vote-link-no', 'yop_poll_options[view_back_to_vote_link]', "no", "radio", "", current_poll.view_back_to_vote_link, "no" ) }}
105
  </td>
106
  </tr>
107
  <tr class="yop_poll_suboption" id="yop-poll-view-back-to-vote-link-div" >
108
- <th> {{ __('Back To Vote Link Label') }}:</th>
109
  <td>
110
  {{ input( current_poll.view_back_to_vote_link_label, 'yop-poll-view-back-to-vote-link-label', 'yop_poll_options[view_back_to_vote_link_label]') }}
111
  </td>
112
  </tr>
113
  <tr>
114
- <th> {{ __('Display Total Votes') }}:</th>
115
  <td>
116
- {{ label( 'Yes', 'yop-poll-view-total-votes-yes', 'yop_poll_options[view_total_votes]', "yes", "radio", "", current_poll.view_total_votes, "yes" ) }}
117
- {{ label( 'No', 'yop-poll-view-total-votes-no', 'yop_poll_options[view_total_votes]', "no", "radio", "", current_poll.view_total_votes, "no" ) }}
118
  </td>
119
  </tr>
120
  <tr class="yop_poll_suboption" id="yop-poll-view-total-votes-div">
121
- <th> {{ __('Total Votes Label') }}:</th>
122
  <td>
123
  {{ input( current_poll.view_total_votes_label, 'yop-poll-view-total-votes-label', 'yop_poll_options[view_total_votes_label]') }}<br>
124
- <small><i> {{ __('Use %POLL-TOTAL-VOTES% for displaying poll\'s total number of votes' ) }}</i></small>
125
  </td>
126
  </tr>
127
  <tr>
128
- <th> {{ __('Display Total Answers') }}:</th>
129
  <td>
130
- {{ label( 'Yes', 'yop-poll-view-total-answers-yes', 'yop_poll_options[view_total_answers]', "yes", "radio", "", current_poll.view_total_answers, "yes" ) }}
131
- {{ label( 'No', 'yop-poll-view-total-answers-no', 'yop_poll_options[view_total_answers]', "no", "radio", "", current_poll.view_total_answers, "no" ) }}
132
  </td>
133
  </tr>
134
  <tr class="yop_poll_suboption" id="yop-poll-view-total-answers-div" >
135
- <th> {{ __('Total Answers Label') }}:</th>
136
  <td>
137
  {{ input( current_poll.view_total_answers_label, 'yop-poll-view-total-answers-label', 'yop_poll_options[view_total_answers_label]') }}<br>
138
- <small><i> {{ __('Use %POLL-TOTAL-ANSWERS% for displaying poll\'s total number of answers' ) }}</i></small>
139
  </td>
140
  </tr>
141
  <tr>
142
- <th> {{ __('Message After Vote') }}</th>
143
  <td>
144
  {{ input( current_poll.message_after_vote, 'yop-poll-message-after-vote', 'yop_poll_options[message_after_vote]') }}
145
  </td>
146
  </tr>
147
  <tr>
148
- <th> {{ __('Vote Permissions') }}</th>
149
  <td>
150
- {{ label( 'Guest', 'yop-poll-vote-permisions-guest', 'yop_poll_options[vote_permisions][]', "guest", "checkbox", "", current_poll.vote_permisions, "guest" ) }}
151
- {{ label( 'Registered', 'yop-poll-vote-permisions-registered', 'yop_poll_options[vote_permisions][]', "registered", "checkbox", "", current_poll.vote_permisions, "registered" ) }}
152
  </td>
153
  </tr>
154
  <tr class="yop-poll-vote-as-div" >
155
  <th>{{ __("Vote as Facebook User") }} <br>
156
- <small> {{ __('Will force users to login into Facebook')}}</small>
157
  </th>
158
  <td>
159
- {{ label( 'Yes', 'yop-poll-vote-permisions-facebook-yes', 'yop_poll_options[vote_permisions_facebook]', "yes", "radio", "yop_poll_tooltip-buy_pro yop_poll_tooltip-buy", current_poll.vote_permisions_facebook, "yes","","" ) }}
160
- {{ label( 'No', 'yop-poll-vote-permisions-facebook-no', 'yop_poll_options[vote_permisions_facebook]', "no", "radio", "yop_poll_tooltip-buy_pro yop_poll_tooltip-buy", current_poll.vote_permisions_facebook, "no","","" ) }}
161
  <input id="yop-poll-for-slider-page1" type="radio" style="display: none" name="yop_poll_options[vote_permisions_facebook]" checked >
162
  </td>
163
  </tr>
164
  <tr class="yop-poll-vote-as-div yop_poll_suboption" id="yop-poll-vote-permisions-facebook-div" >
165
- <th>{{ __('"Vote as Facebook User" Button Label') }}:</th>
166
  <td>
167
  <input id="yop-poll-for-slider-page-4" type="text" readonly class="yop_poll_tooltip-buy_pro">
168
  </td>
169
  </tr>
170
  <tr class="yop-poll-vote-as-div yop_poll_suboption" id="yop-poll-facebook-show-comments-widget" >
171
- <th>{{ __('Show Comments Widget') }}:</th>
172
  <td>
173
- {{ label( 'Yes', 'yop-poll-facebook-share-after-vote-yes', 'yop_poll_options[facebook_share_after_vote]', "yes", "radio","yop_poll_tooltip-buy_pro yop_poll_tooltip-buy", current_poll.facebook_share_after_vote, "yes","","" ) }}
174
- {{ label( 'No', 'yop-poll-facebook-share-after-vote-no', 'yop_poll_options[facebook_share_after_vote]', "no", "radio", "yop_poll_tooltip-buy_pro yop_poll_tooltip-buy", current_poll.facebook_share_after_vote, "no","","" ) }}
175
  </td>
176
  </tr>
177
  <tr class="yop-poll-vote-as-div yop_poll_suboption" id="yop-poll-facebook-share-after-vote-div" >
178
- <th>{{ __('Share after vote') }}:</th>
179
  <td>
180
- {{ label( 'Yes', 'yop-poll-facebook-share-after-vote-yes', 'yop_poll_options[facebook_share_after_vote]', "yes", "radio","yop_poll_tooltip-buy_pro yop_poll_tooltip-buy", current_poll.facebook_share_after_vote, "yes","","" ) }}
181
- {{ label( 'No', 'yop-poll-facebook-share-after-vote-no', 'yop_poll_options[facebook_share_after_vote]', "no", "radio", "yop_poll_tooltip-buy_pro yop_poll_tooltip-buy", current_poll.facebook_share_after_vote, "no","","" ) }}
182
  <input id="yop-poll-for-slider-page2" type="radio" style="display: none" name="yop_poll_options[facebook_share_after_vote]" checked >
183
  </td>
184
  </tr>
185
  <tr class="yop-poll-vote-as-div yop_poll_suboption" id="yop-poll-facebook-share-description-div" >
186
- <th>{{ __('Share Description') }}:</th>
187
  <td>
188
  <input id="yop-poll-for-slider-page3" type="text" readonly class="yop_poll_tooltip-buy_pro">
189
  </td>
190
  </tr>
191
  <tr class="yop-poll-vote-as-div">
192
  <th>{{ __("Vote as Google User") }} <br>
193
- <small> {{ __('Will force users to login into Google+')}}</small>
194
  </th>
195
  <td>
196
- {{ label( 'Yes', 'yop-poll-vote-permisions-google-yes', 'yop_poll_options[vote_permisions_google]', "yes", "radio", "yop_poll_tooltip-buy_pro yop_poll_tooltip-buy", current_poll.vote_permisions_google, "yes","","" ) }}
197
- {{ label( 'No', 'yop-poll-vote-permisions-google-no', 'yop_poll_options[vote_permisions_google]', "no", "radio", "yop_poll_tooltip-buy_pro yop_poll_tooltip-buy", current_poll.vote_permisions_google, "no","","" ) }}
198
  <input type="radio" style="display: none" name="yop_poll_options[vote_permisions_google]" checked >
199
  </td>
200
  </tr>
201
  <tr class="yop-poll-vote-as-div yop_poll_suboption" id="yop-poll-vote-permisions-google-label-div">
202
- <th>{{ __('"Vote as google User" Button Label') }}:</th>
203
  <td>
204
  <input type="text" readonly class="yop_poll_tooltip-buy_pro">
205
  </td>
206
  </tr>
207
  <tr class="yop-poll-vote-as-div yop_poll_suboption" id="yop-poll-vote-permisions-google-share-div" >
208
- <th>{{ __('Show +1 Button after vote') }}:</th>
209
  <td>
210
- {{ label( 'Yes', 'yop-poll-vote-permisions-show-g-share-button-yes', 'yop_poll_options[show_google_share_button]', "yes", "radio", "yop_poll_tooltip-buy_pro yop_poll_tooltip-buy", current_poll.show_google_share_button, "yes","","" ) }}
211
- {{ label( 'No', 'yop-poll-vote-permisions-show-g-share-button-no', 'yop_poll_options[show_google_share_button]', "no", "radio", "yop_poll_tooltip-buy_pro yop_poll_tooltip-buy", current_poll.show_google_share_button, "no","","" ) }}
212
  <input type="radio" style="display: none" name="yop_poll_options[show_google_share_button]" checked >
213
  </td>
214
  </tr>
215
  <tr class="yop-poll-vote-as-div" >
216
  <th>{{ __("Vote as Wordpress User") }} <br>
217
- <small> {{ __('Will force users to login')}}</small>
218
  </th>
219
  <td>
220
- {{ label( 'Yes', 'yop-poll-vote-permisions-wordpress-yes', 'yop_poll_options[vote_permisions_wordpress]', "yes", "radio", "", current_poll.vote_permisions_wordpress, "yes" ) }}
221
- {{ label( 'No', 'yop-poll-vote-permisions-wordpress-no', 'yop_poll_options[vote_permisions_wordpress]', "no", "radio", "", current_poll.vote_permisions_wordpress, "no" ) }}
222
  </td>
223
  </tr>
224
  <tr class="yop-poll-vote-as-div yop_poll_suboption" id="yop-poll-vote-permisions-wordpress-div" >
225
  <th>
226
- {{ __('"Vote as Wordpress User" Button Label') }}:
227
  </th>
228
  <td>
229
  {{ input( current_poll.vote_permisions_wordpress_label, 'yop-poll-vote-permisions-wordpress-label', 'yop_poll_options[vote_permisions_wordpress_label]') }}
230
  </td>
231
  </tr>
232
  <tr class="yop-poll-vote-as-div">
233
- <th>{{ __('Vote as Anonymous User') }}:<br>
234
- <small>( {{ __('Logged users will be treated as anonymous') }} )</small>
235
  </th>
236
  <td>
237
- {{ label( 'Yes', 'yop-poll-vote-permisions-anonymous-yes', 'yop_poll_options[vote_permisions_anonymous]', "yes", "radio", "", current_poll.vote_permisions_anonymous, "yes" ) }}
238
- {{ label( 'No', 'yop-poll-vote-permisions-anonymous-no', 'yop_poll_options[vote_permisions_anonymous]', "no", "radio", "", current_poll.vote_permisions_anonymous, "no" ) }}
239
  </td>
240
  </tr>
241
  <tr class="yop-poll-vote-as-div yop_poll_suboption" id="yop-poll-vote-permisions-anonymous-label-div" >
242
- <th> {{ __('"Vote as Anonymous User" Button Label') }}</th>
243
  <td>
244
  {{ input( current_poll.vote_permisions_anonymous_label, 'yop-poll-vote-permisions-anonymous-label', 'yop_poll_options[vote_permisions_anonymous_label]') }}
245
  </td>
246
  </tr>
247
  <tr>
248
- <th> {{ __('Blocking Voters') }}:</th>
249
  <td>
250
- {{ label( 'Don\'t Block', 'yop-poll-blocking-voters-dont-block', 'yop_poll_options[blocking_voters][]', "dont-block", "checkbox", "yop-poll-blocking-voters-hide-interval", current_poll.blocking_voters, "dont-block" ) }}
251
- {{ label( 'By Cookie', 'yop-poll-blocking-voters-cookie', 'yop_poll_options[blocking_voters][]', "cookie", "checkbox", "yop-poll-blocking-voters-show-interval", current_poll.blocking_voters, "cookie" ) }}
252
- {{ label( 'By IP', 'yop-poll-blocking-voters-ip', 'yop_poll_options[blocking_voters][]', "ip", "checkbox", "yop-poll-blocking-voters-show-interval", current_poll.blocking_voters, "ip" ) }}
253
- {{ label( 'By User ID', 'yop-poll-blocking-voters-user_id', 'yop_poll_options[blocking_voters][]', "user_id", "checkbox", "yop-poll-blocking-voters-show-interval", current_poll.blocking_voters, "user_id" ) }}
254
- {{ label( 'By SuperCookie', 'yop-poll-blocking-voters-supercookie', 'yop_poll_options[blocking_voters][]', "supercookie", "checkbox", "yop-poll-blocking-voters-show-interval", current_poll.blocking_voters, "supercookie" ) }}
255
  </td>
256
  </tr>
257
  <tr class="yop_poll_suboption" id="yop-poll-blocking-voters-interval-div" >
@@ -268,97 +267,97 @@
268
  </td>
269
  </tr>
270
  <tr class="yop-poll-limit-number-of-votes-per-user-div">
271
- <th> {{ __('Limit Number of Votes per User') }}:<br>
272
  </th>
273
  <td>
274
- {{ label( 'Yes', 'yop-poll-limit-number-of-votes-per-user-yes', 'yop_poll_options[limit_number_of_votes_per_user]', "yes", "radio", "", current_poll.limit_number_of_votes_per_user, "yes" ) }}
275
- {{ label( 'No', 'yop-poll-limit-number-of-votes-per-user-no', 'yop_poll_options[limit_number_of_votes_per_user]', "no", "radio", "", current_poll.limit_number_of_votes_per_user, "no" ) }}
276
  </td>
277
  </tr>
278
  <tr class="yop-poll-limit-number-of-votes-per-user-divs yop_poll_suboption" id="yop-poll-number-of-votes-per-user-div" >
279
- <th> {{ __('Number of Votes per User') }}:</th>
280
  <td>
281
  {{ input( current_poll.number_of_votes_per_user, 'yop-poll-number-of-votes-per-user', 'yop_poll_options[number_of_votes_per_user]' )}}
282
  </td>
283
  </tr>
284
  <tr>
285
- <th> {{ __('Percentages Decimals') }}:</th>
286
  <td>
287
  {{ input( current_poll.percentages_decimals, 'yop-poll-percentages-decimals', 'yop_poll_options[percentages_decimals]' )}}
288
  </td>
289
  </tr>
290
  <tr>
291
- <th> {{ __('Use Default Loading Image') }}:</th>
292
  <td>
293
- {{ label( 'Yes', 'yop-poll-use-default-loading-image-yes', 'yop_poll_options[use_default_loading_image]', "yes", "radio", "", current_poll.use_default_loading_image, "yes" ) }}
294
- {{ label( 'No', 'yop-poll-use-default-loading-image-no', 'yop_poll_options[use_default_loading_image]', "no", "radio", "", current_poll.use_default_loading_image, "no" ) }}
295
  </td>
296
  </tr>
297
  <tr class="yop_poll_suboption" id="yop-poll-use-default-loading-image-div" >
298
- <th>{{ __('Loading Image Url') }}:</th>
299
  <td>
300
  {{ input( current_poll.loading_image_url, 'yop-poll-loading-image-url', 'yop_poll_options[loading_image_url]' ) }}
301
  </td>
302
  </tr>
303
  <tr>
304
- <th> {{ __('Date Format') }} :</th>
305
  <td>
306
  {{ label( 'EU', 'yop-poll-date-format-ue', 'yop_poll_options[date_format]', "UE", "radio", "", current_poll.date_format, "UE" ) }}
307
  {{ label( 'US', 'yoyop-poll-date-format-us', 'yop_poll_options[date_format]', "US", "radio", "", current_poll.date_format, "US" ) }}
308
  </td>
309
  </tr>
310
  <tr>
311
- <th> {{ __('Redirect After Vote') }} :</th>
312
  <td>
313
- {{ label( 'Yes', 'yop-poll-redirect-after-vote-yes', 'yop_poll_options[redirect_after_vote]', "yes", "radio", "", current_poll.redirect_after_vote, "yes" ) }}
314
- {{ label( 'No', 'yop-poll-redirect-after-vote-no', 'yop_poll_options[redirect_after_vote]', "no", "radio", "", current_poll.redirect_after_vote, "no" ) }}
315
  </td>
316
  </tr>
317
  <tr class="yop_poll_suboption" id="yop-poll-redirect-after-vote-url-div" >
318
- <th> {{ __('Redirect After Vote URL') }} :</th>
319
  <td>
320
  {{ input ( current_poll.redirect_after_vote_url, 'yop-poll-redirect-after-vote-url', 'yop_poll_options[redirect_after_vote_url]' ) }}
321
  </td>
322
  </tr>
323
 
324
  <tr>
325
- <th>{{ __('Display Archive Link') }}:</th>
326
  <td>
327
- {{ label( 'Yes', 'yop-poll-view-poll-archive-link-yes', 'yop_poll_options[view_poll_archive_link]', "yes", "radio", "", current_poll.view_poll_archive_link, "yes" ) }}
328
- {{ label( 'No', 'yop-poll-view-poll-archive-link-no', 'yop_poll_options[view_poll_archive_link]', "no", "radio", "", current_poll.view_poll_archive_link, "no" ) }}
329
  </td>
330
  </tr>
331
  <tr>
332
- <th> {{ __('Auto Generate Poll Page') }}:</th>
333
  <td>
334
- {{ label( 'Yes', 'yop-poll-auto-generate-poll-page-yes', 'yop_poll_options[auto_generate_poll_page]', "yes", "radio", "", current_poll.auto_generate_poll_page, "yes" ) }}
335
- {{ label( 'No', 'yop-poll-auto-generate-poll-page-no', 'yop_poll_options[auto_generate_poll_page]', "no", "radio", "", current_poll.auto_generate_poll_page, "no" ) }}
336
  </td>
337
  </tr>
338
  <tr>
339
- <th> {{ __('Use CAPTCHA') }}:</th>
340
  <td>
341
- {{ label( 'Yes', 'yop-poll-use-captcha-yes', 'yop_poll_options[use_captcha]', "yes", "radio", "", current_poll.use_captcha, "yes" ) }}
342
- {{ label( 'No', 'yop-poll-use-captcha-no', 'yop_poll_options[use_captcha]', "no", "radio", "", current_poll.use_captcha, "no" ) }}
343
  </td>
344
  </tr>
345
  <tr>
346
- <th> {{ __('Send Email Notifications') }}:</th>
347
  <td>
348
- {{ label( 'Yes', 'yop-poll-send-email-notifications-yes', 'yop_poll_options[send_email_notifications]', "yes", "radio", "", current_poll.send_email_notifications, "yes" ) }}
349
- {{ label( 'No', 'yop-poll-send-email-notifications-no', 'yop_poll_options[send_email_notifications]', "no", "radio", "", current_poll.send_email_notifications, "no" ) }}
350
 
351
  </td>
352
  </tr>
353
  <tr>
354
- <th> {{ __('Show Poll In Archive') }}:</th>
355
  <td>
356
- {{ label( 'Yes', 'yop-poll-show-poll-in-archive-yes', 'yop_poll_options[show_poll_in_archive]', "yes", "radio", "", current_poll.show_poll_in_archive, "yes" ) }}
357
- {{ label( 'No', 'yop-poll-show-poll-in-archive-no', 'yop_poll_options[show_poll_in_archive]', "no", "radio", "", current_poll.show_poll_in_archive, "no" ) }}
358
  </td>
359
  </tr>
360
  <tr class="yop_poll_suboption" id="yop-poll-show-poll-in-archive-div" >
361
- <th> {{ __('Poll Archive Order') }}:</th>
362
  <td>
363
  {{ input( current_poll.poll_archive_order, 'yop-poll-poll-archive-order', 'poll_archive_order' )}}
364
  </td>
5
  {% set current_poll = yop_poll_options %}
6
 
7
  <div class="postbox stuffbox {% if ( 'advanced' == user_interface_type ) %} closed {% endif %}">
8
+ <div title='{{ __("Click to toggle") }}' class="handlediv"><br/></div>
9
  <h3 class="hndle" style="border-bottom: 1px solid #AAAAAA;">
10
+ <span>{{ __("Poll Options") }}</span>
11
  </h3>
12
 
13
  <div class="inside">
15
  <tbody>
16
  <tr>
17
  <th>
18
+ {{__( "Start Date" ) }}:
19
  </th>
20
  <td valign="top">
21
  {{ input(convert_date(current_poll.poll_start_date,date_format), 'yop-poll-start-date', 'yop_poll_options[poll_start_date]', 'text', '', 'hasDatePicker' ) }}
23
  </tr>
24
  <tr>
25
  <th>
26
+ {{__( "End Date" ) }}:
27
  </th>
28
  <td valign="top">
29
  <label for="yop-poll-never-expire">
31
  {% if convert_date(current_poll.poll_end_date , 'd-m-Y H:i:s') == convert_date( "01-01-2038 23:59:59", 'd-m-Y H:i:s') %} checked="checked"{% endif %}
32
  onclick="end_date_option()"
33
  >
34
+ {{ __("No end date") }}
35
  </label>
36
  <input {% if convert_date(current_poll.poll_end_date , 'd-m-Y H:i:s') == convert_date( "01-01-2038 23:59:59", 'd-m-Y H:i:s') %}style="display:none;"{% endif %} type="text" name="yop_poll_options[poll_end_date]" id="yop-poll-end-date-input" value="{{ convert_date(current_poll.poll_end_date ,date_format)}}" class='hasDatePicker' />
37
  </td>
38
  </tr>
39
  <tr>
40
+ <th>{{__("Display Results")}}:</th>
41
  <td>
42
+ {{ label( __("Before Vote"), 'yop-poll-view-results-before-vote', 'yop_poll_options[view_results][]', "before", "checkbox", "yop-poll-view-results-uncheck-nc", current_poll.view_results, "before" ) }}
43
+ {{ label( __("After Vote"), 'yop-poll-view-results-after-vote', 'yop_poll_options[view_results][]', "after", "checkbox", "yop-poll-view-results-uncheck-nc", current_poll.view_results, "after" ) }}
44
+ {{ label( __("After Poll End Date"),'yop-poll-view-results-after-poll-end-date', 'yop_poll_options[view_results][]', "after-poll-end-date","checkbox", "yop-poll-view-results-uncheck-nc", current_poll.view_results, "after-poll-end-date" ) }}
45
+ {{ label( __("Never"), 'yop-poll-view-results-never', 'yop_poll_options[view_results][]', "never", "checkbox", "yop-poll-view-results-uncheck-n-all", current_poll.view_results, "never" ) }}
46
+ {{ label( __("Custom Date"), 'yop-poll-view-results-custom', 'yop_poll_options[view_results][]', "custom-date", "checkbox", "yop-poll-view-results-uncheck-c-all", current_poll.view_results, "custom-date" ) }}
47
  <div id="yop-poll-display-view-results-div" >
48
  <label for="yop-poll-view-results-start-date">
49
+ {{__("Results display date")}}
50
+ <small>{{__("(the users will be able to view poll results starting with following date)")}}
 
51
  </small>
52
  :
53
  <input type="text" id="yop-poll-view-results-start-date" name="yop_poll_options[view_results_start_date]" value="{{ convert_date(current_poll.view_results_start_date,date_format) }}" class='hasDatePicker'>
56
  </td>
57
  </tr>
58
  <tr>
59
+ <th> {{ __("Display Results Permissions")}}</th>
60
  <td>
61
+ {{ label( __("Guest"), 'yop-poll-view-results-permissions-guest', 'yop_poll_options[view_results_permissions][]', "guest", "checkbox", "", current_poll.view_results_permissions, "guest" ) }}
62
+ {{ label( __("Registered"), 'yop-poll-view-results-permissions-registered', 'yop_poll_options[view_results_permissions][]', "registered", "checkbox", "", current_poll.view_results_permissions, "registered" ) }}
63
  </td>
64
  </tr>
65
  <tr>
66
+ <th> {{__( "Results Display")}}:</th>
67
  <td>
68
+ {{ label( __("By Votes Number"), 'yop-poll-view-results-votes-number', 'yop_poll_options[view_results_type]', "votes-number", "radio", "", current_poll.view_results_type, "votes-number" ) }}
69
+ {{ label( __("Percentages"), 'yop-poll-view-results-percentages', 'yop_poll_options[view_results_type]', "percentages", "radio", "", current_poll.view_results_type, "percentages" ) }}
70
+ {{ label( __("by Votes Number and Percentages"), 'yop-poll-view-results-votes-number-and-percentages', 'yop_poll_options[view_results_type]', "votes-number-and-percentages", "radio", "", current_poll.view_results_type, "votes-number-and-percentages" ) }}
71
  </td>
72
  </tr>
73
  <tr>
74
+ <th> {{__( "Poll Answer Result Label")}}:</th>
75
  <td>
76
  {{ input(current_poll.answer_result_label, 'yop-poll-answer-result-label', 'yop_poll_options[answer_result_label]', 'text' ) }}
77
+ <small><i> {{ __("Use %POLL-ANSWER-RESULT-PERCENTAGES% for showing answer percentages and %POLL-ANSWER-RESULT-VOTES% for showing answer number of votes" ) }}</i></small>
78
  </td>
79
  </tr>
80
  <tr>
81
+ <th> {{ __("Vote Button Label") }}:</th>
82
  <td>
83
  {{ input( current_poll.vote_button_label, 'yop-poll-vote-button-label', 'yop_poll_options[vote_button_label]') }}
84
  </td>
85
  </tr>
86
  <tr>
87
+ <th> {{ __("Display Results Link") }}:</th>
88
  <td>
89
+ {{ label( __("Yes"), 'yop-poll-view-results-link-yes', 'yop_poll_options[view_results_link]', "yes", "radio", "", current_poll.view_results_link, "yes" ) }}
90
+ {{ label( __("No"), 'yop-poll-view-results-link-no', 'yop_poll_options[view_results_link]', "no", "radio", "", current_poll.view_results_link, "no" ) }}
91
  </td>
92
  </tr>
93
  <tr class="yop_poll_suboption" id="yop-poll-view-results-link-div" >
94
+ <th> {{ __("Results Link Label") }}:</th>
95
  <td>
96
  {{ input( current_poll.view_results_link_label, 'yop-poll-view-results-link-label', 'yop_poll_options[view_results_link_label]') }}<br/>
97
  </td>
98
  </tr>
99
  <tr>
100
+ <th> {{ __("Display Back To Vote Link") }}:</th>
101
  <td>
102
+ {{ label( __("Yes"), 'yop-poll-view-back-to-vote-link-yes', 'yop_poll_options[view_back_to_vote_link]', "yes", "radio", "", current_poll.view_back_to_vote_link, "yes" ) }}
103
+ {{ label( __("No"), 'yop-poll-view-back-to-vote-link-no', 'yop_poll_options[view_back_to_vote_link]', "no", "radio", "", current_poll.view_back_to_vote_link, "no" ) }}
104
  </td>
105
  </tr>
106
  <tr class="yop_poll_suboption" id="yop-poll-view-back-to-vote-link-div" >
107
+ <th> {{ __("Back To Vote Link Label") }}:</th>
108
  <td>
109
  {{ input( current_poll.view_back_to_vote_link_label, 'yop-poll-view-back-to-vote-link-label', 'yop_poll_options[view_back_to_vote_link_label]') }}
110
  </td>
111
  </tr>
112
  <tr>
113
+ <th> {{ __("Display Total Votes") }}:</th>
114
  <td>
115
+ {{ label( __("Yes"), 'yop-poll-view-total-votes-yes', 'yop_poll_options[view_total_votes]', "yes", "radio", "", current_poll.view_total_votes, "yes" ) }}
116
+ {{ label( __("No"), 'yop-poll-view-total-votes-no', 'yop_poll_options[view_total_votes]', "no", "radio", "", current_poll.view_total_votes, "no" ) }}
117
  </td>
118
  </tr>
119
  <tr class="yop_poll_suboption" id="yop-poll-view-total-votes-div">
120
+ <th> {{ __("Total Votes Label") }}:</th>
121
  <td>
122
  {{ input( current_poll.view_total_votes_label, 'yop-poll-view-total-votes-label', 'yop_poll_options[view_total_votes_label]') }}<br>
123
+ <small><i> {{ __("Use %POLL-TOTAL-VOTES% for displaying poll\'s total number of votes" ) }}</i></small>
124
  </td>
125
  </tr>
126
  <tr>
127
+ <th> {{ __("Display Total Answers") }}:</th>
128
  <td>
129
+ {{ label( __("Yes"), 'yop-poll-view-total-answers-yes', 'yop_poll_options[view_total_answers]', "yes", "radio", "", current_poll.view_total_answers, "yes" ) }}
130
+ {{ label( __("No"), 'yop-poll-view-total-answers-no', 'yop_poll_options[view_total_answers]', "no", "radio", "", current_poll.view_total_answers, "no" ) }}
131
  </td>
132
  </tr>
133
  <tr class="yop_poll_suboption" id="yop-poll-view-total-answers-div" >
134
+ <th> {{ __("Total Answers Label") }}:</th>
135
  <td>
136
  {{ input( current_poll.view_total_answers_label, 'yop-poll-view-total-answers-label', 'yop_poll_options[view_total_answers_label]') }}<br>
137
+ <small><i> {{ __("Use %POLL-TOTAL-ANSWERS% for displaying poll\'s total number of answers" ) }}</i></small>
138
  </td>
139
  </tr>
140
  <tr>
141
+ <th> {{ __("Message After Vote") }}</th>
142
  <td>
143
  {{ input( current_poll.message_after_vote, 'yop-poll-message-after-vote', 'yop_poll_options[message_after_vote]') }}
144
  </td>
145
  </tr>
146
  <tr>
147
+ <th> {{ __("Vote Permissions") }}</th>
148
  <td>
149
+ {{ label( __("Guest"), 'yop-poll-vote-permisions-guest', 'yop_poll_options[vote_permisions][]', "guest", "checkbox", "", current_poll.vote_permisions, "guest" ) }}
150
+ {{ label( __("Registered"), 'yop-poll-vote-permisions-registered', 'yop_poll_options[vote_permisions][]', "registered", "checkbox", "", current_poll.vote_permisions, "registered" ) }}
151
  </td>
152
  </tr>
153
  <tr class="yop-poll-vote-as-div" >
154
  <th>{{ __("Vote as Facebook User") }} <br>
155
+ <small> {{ __("Will force users to login into Facebook")}}</small>
156
  </th>
157
  <td>
158
+ {{ label( __("Yes"), 'yop-poll-vote-permisions-facebook-yes', 'yop_poll_options[vote_permisions_facebook]', "yes", "radio", "yop_poll_tooltip-buy_pro yop_poll_tooltip-buy", current_poll.vote_permisions_facebook, "yes","","" ) }}
159
+ {{ label( __("No"), 'yop-poll-vote-permisions-facebook-no', 'yop_poll_options[vote_permisions_facebook]', "no", "radio", "yop_poll_tooltip-buy_pro yop_poll_tooltip-buy", current_poll.vote_permisions_facebook, "no","","" ) }}
160
  <input id="yop-poll-for-slider-page1" type="radio" style="display: none" name="yop_poll_options[vote_permisions_facebook]" checked >
161
  </td>
162
  </tr>
163
  <tr class="yop-poll-vote-as-div yop_poll_suboption" id="yop-poll-vote-permisions-facebook-div" >
164
+ <th>{{ __("'Vote as Facebook User' Button Label") }}:</th>
165
  <td>
166
  <input id="yop-poll-for-slider-page-4" type="text" readonly class="yop_poll_tooltip-buy_pro">
167
  </td>
168
  </tr>
169
  <tr class="yop-poll-vote-as-div yop_poll_suboption" id="yop-poll-facebook-show-comments-widget" >
170
+ <th>{{ __("Show Comments Widget") }}:</th>
171
  <td>
172
+ {{ label( __("Yes"), 'yop-poll-facebook-share-after-vote-yes', 'yop_poll_options[facebook_share_after_vote]', "yes", "radio","yop_poll_tooltip-buy_pro yop_poll_tooltip-buy", current_poll.facebook_share_after_vote, "yes","","" ) }}
173
+ {{ label( __("No"), 'yop-poll-facebook-share-after-vote-no', 'yop_poll_options[facebook_share_after_vote]', "no", "radio", "yop_poll_tooltip-buy_pro yop_poll_tooltip-buy", current_poll.facebook_share_after_vote, "no","","" ) }}
174
  </td>
175
  </tr>
176
  <tr class="yop-poll-vote-as-div yop_poll_suboption" id="yop-poll-facebook-share-after-vote-div" >
177
+ <th>{{ __("Share after vote") }}:</th>
178
  <td>
179
+ {{ label( __("Yes"), 'yop-poll-facebook-share-after-vote-yes', 'yop_poll_options[facebook_share_after_vote]', "yes", "radio","yop_poll_tooltip-buy_pro yop_poll_tooltip-buy", current_poll.facebook_share_after_vote, "yes","","" ) }}
180
+ {{ label( __("No"), 'yop-poll-facebook-share-after-vote-no', 'yop_poll_options[facebook_share_after_vote]', "no", "radio", "yop_poll_tooltip-buy_pro yop_poll_tooltip-buy", current_poll.facebook_share_after_vote, "no","","" ) }}
181
  <input id="yop-poll-for-slider-page2" type="radio" style="display: none" name="yop_poll_options[facebook_share_after_vote]" checked >
182
  </td>
183
  </tr>
184
  <tr class="yop-poll-vote-as-div yop_poll_suboption" id="yop-poll-facebook-share-description-div" >
185
+ <th>{{ __("Share Description") }}:</th>
186
  <td>
187
  <input id="yop-poll-for-slider-page3" type="text" readonly class="yop_poll_tooltip-buy_pro">
188
  </td>
189
  </tr>
190
  <tr class="yop-poll-vote-as-div">
191
  <th>{{ __("Vote as Google User") }} <br>
192
+ <small> {{ __("Will force users to login into Google+")}}</small>
193
  </th>
194
  <td>
195
+ {{ label( __("Yes"), 'yop-poll-vote-permisions-google-yes', 'yop_poll_options[vote_permisions_google]', "yes", "radio", "yop_poll_tooltip-buy_pro yop_poll_tooltip-buy", current_poll.vote_permisions_google, "yes","","" ) }}
196
+ {{ label( __("No"), 'yop-poll-vote-permisions-google-no', 'yop_poll_options[vote_permisions_google]', "no", "radio", "yop_poll_tooltip-buy_pro yop_poll_tooltip-buy", current_poll.vote_permisions_google, "no","","" ) }}
197
  <input type="radio" style="display: none" name="yop_poll_options[vote_permisions_google]" checked >
198
  </td>
199
  </tr>
200
  <tr class="yop-poll-vote-as-div yop_poll_suboption" id="yop-poll-vote-permisions-google-label-div">
201
+ <th>{{ __("'Vote as google User' Button Label") }}:</th>
202
  <td>
203
  <input type="text" readonly class="yop_poll_tooltip-buy_pro">
204
  </td>
205
  </tr>
206
  <tr class="yop-poll-vote-as-div yop_poll_suboption" id="yop-poll-vote-permisions-google-share-div" >
207
+ <th>{{ __("Show +1 Button after vote") }}:</th>
208
  <td>
209
+ {{ label( __("Yes"), 'yop-poll-vote-permisions-show-g-share-button-yes', 'yop_poll_options[show_google_share_button]', "yes", "radio", "yop_poll_tooltip-buy_pro yop_poll_tooltip-buy", current_poll.show_google_share_button, "yes","","" ) }}
210
+ {{ label( __("No"), 'yop-poll-vote-permisions-show-g-share-button-no', 'yop_poll_options[show_google_share_button]', "no", "radio", "yop_poll_tooltip-buy_pro yop_poll_tooltip-buy", current_poll.show_google_share_button, "no","","" ) }}
211
  <input type="radio" style="display: none" name="yop_poll_options[show_google_share_button]" checked >
212
  </td>
213
  </tr>
214
  <tr class="yop-poll-vote-as-div" >
215
  <th>{{ __("Vote as Wordpress User") }} <br>
216
+ <small> {{ __("Will force users to login")}}</small>
217
  </th>
218
  <td>
219
+ {{ label( __("Yes"), 'yop-poll-vote-permisions-wordpress-yes', 'yop_poll_options[vote_permisions_wordpress]', "yes", "radio", "", current_poll.vote_permisions_wordpress, "yes" ) }}
220
+ {{ label( __("No"), 'yop-poll-vote-permisions-wordpress-no', 'yop_poll_options[vote_permisions_wordpress]', "no", "radio", "", current_poll.vote_permisions_wordpress, "no" ) }}
221
  </td>
222
  </tr>
223
  <tr class="yop-poll-vote-as-div yop_poll_suboption" id="yop-poll-vote-permisions-wordpress-div" >
224
  <th>
225
+ {{ __("'Vote as Wordpress User' Button Label") }}:
226
  </th>
227
  <td>
228
  {{ input( current_poll.vote_permisions_wordpress_label, 'yop-poll-vote-permisions-wordpress-label', 'yop_poll_options[vote_permisions_wordpress_label]') }}
229
  </td>
230
  </tr>
231
  <tr class="yop-poll-vote-as-div">
232
+ <th>{{ __("Vote as Anonymous User") }}:<br>
233
+ <small>( {{ __("Logged users will be treated as anonymous") }} )</small>
234
  </th>
235
  <td>
236
+ {{ label( __("Yes"), 'yop-poll-vote-permisions-anonymous-yes', 'yop_poll_options[vote_permisions_anonymous]', "yes", "radio", "", current_poll.vote_permisions_anonymous, "yes" ) }}
237
+ {{ label( __("No"), 'yop-poll-vote-permisions-anonymous-no', 'yop_poll_options[vote_permisions_anonymous]', "no", "radio", "", current_poll.vote_permisions_anonymous, "no" ) }}
238
  </td>
239
  </tr>
240
  <tr class="yop-poll-vote-as-div yop_poll_suboption" id="yop-poll-vote-permisions-anonymous-label-div" >
241
+ <th> {{ __("'Vote as Anonymous User' Button Label") }}</th>
242
  <td>
243
  {{ input( current_poll.vote_permisions_anonymous_label, 'yop-poll-vote-permisions-anonymous-label', 'yop_poll_options[vote_permisions_anonymous_label]') }}
244
  </td>
245
  </tr>
246
  <tr>
247
+ <th> {{ __("Blocking Voters") }}:</th>
248
  <td>
249
+ {{ label( __("Don\'t Block"), 'yop-poll-blocking-voters-dont-block', 'yop_poll_options[blocking_voters][]', "dont-block", "checkbox", "yop-poll-blocking-voters-hide-interval", current_poll.blocking_voters, "dont-block" ) }}
250
+ {{ label( __("By Cookie"), 'yop-poll-blocking-voters-cookie', 'yop_poll_options[blocking_voters][]', "cookie", "checkbox", "yop-poll-blocking-voters-show-interval", current_poll.blocking_voters, "cookie" ) }}
251
+ {{ label( __("By IP"), 'yop-poll-blocking-voters-ip', 'yop_poll_options[blocking_voters][]', "ip", "checkbox", "yop-poll-blocking-voters-show-interval", current_poll.blocking_voters, "ip" ) }}
252
+ {{ label( __("By User ID"), 'yop-poll-blocking-voters-user_id', 'yop_poll_options[blocking_voters][]', "user_id", "checkbox", "yop-poll-blocking-voters-show-interval", current_poll.blocking_voters, "user_id" ) }}
253
+ {{ label( __("By SuperCookie"), 'yop-poll-blocking-voters-supercookie', 'yop_poll_options[blocking_voters][]', "supercookie", "checkbox", "yop-poll-blocking-voters-show-interval", current_poll.blocking_voters, "supercookie" ) }}
254
  </td>
255
  </tr>
256
  <tr class="yop_poll_suboption" id="yop-poll-blocking-voters-interval-div" >
267
  </td>
268
  </tr>
269
  <tr class="yop-poll-limit-number-of-votes-per-user-div">
270
+ <th> {{ __("Limit Number of Votes per User") }}:<br>
271
  </th>
272
  <td>
273
+ {{ label( __("Yes"), 'yop-poll-limit-number-of-votes-per-user-yes', 'yop_poll_options[limit_number_of_votes_per_user]', "yes", "radio", "", current_poll.limit_number_of_votes_per_user, "yes" ) }}
274
+ {{ label( __("No"), 'yop-poll-limit-number-of-votes-per-user-no', 'yop_poll_options[limit_number_of_votes_per_user]', "no", "radio", "", current_poll.limit_number_of_votes_per_user, "no" ) }}
275
  </td>
276
  </tr>
277
  <tr class="yop-poll-limit-number-of-votes-per-user-divs yop_poll_suboption" id="yop-poll-number-of-votes-per-user-div" >
278
+ <th> {{ __("Number of Votes per User") }}:</th>
279
  <td>
280
  {{ input( current_poll.number_of_votes_per_user, 'yop-poll-number-of-votes-per-user', 'yop_poll_options[number_of_votes_per_user]' )}}
281
  </td>
282
  </tr>
283
  <tr>
284
+ <th> {{ __("Percentages Decimals") }}:</th>
285
  <td>
286
  {{ input( current_poll.percentages_decimals, 'yop-poll-percentages-decimals', 'yop_poll_options[percentages_decimals]' )}}
287
  </td>
288
  </tr>
289
  <tr>
290
+ <th> {{ __("Use Default Loading Image") }}:</th>
291
  <td>
292
+ {{ label( __("Yes"), 'yop-poll-use-default-loading-image-yes', 'yop_poll_options[use_default_loading_image]', "yes", "radio", "", current_poll.use_default_loading_image, "yes" ) }}
293
+ {{ label( __("No"), 'yop-poll-use-default-loading-image-no', 'yop_poll_options[use_default_loading_image]', "no", "radio", "", current_poll.use_default_loading_image, "no" ) }}
294
  </td>
295
  </tr>
296
  <tr class="yop_poll_suboption" id="yop-poll-use-default-loading-image-div" >
297
+ <th>{{ __("Loading Image Url") }}:</th>
298
  <td>
299
  {{ input( current_poll.loading_image_url, 'yop-poll-loading-image-url', 'yop_poll_options[loading_image_url]' ) }}
300
  </td>
301
  </tr>
302
  <tr>
303
+ <th> {{ __("Date Format") }} :</th>
304
  <td>
305
  {{ label( 'EU', 'yop-poll-date-format-ue', 'yop_poll_options[date_format]', "UE", "radio", "", current_poll.date_format, "UE" ) }}
306
  {{ label( 'US', 'yoyop-poll-date-format-us', 'yop_poll_options[date_format]', "US", "radio", "", current_poll.date_format, "US" ) }}
307
  </td>
308
  </tr>
309
  <tr>
310
+ <th> {{ __("Redirect After Vote") }} :</th>
311
  <td>
312
+ {{ label( __("Yes"), 'yop-poll-redirect-after-vote-yes', 'yop_poll_options[redirect_after_vote]', "yes", "radio", "", current_poll.redirect_after_vote, "yes" ) }}
313
+ {{ label( __("No"), 'yop-poll-redirect-after-vote-no', 'yop_poll_options[redirect_after_vote]', "no", "radio", "", current_poll.redirect_after_vote, "no" ) }}
314
  </td>
315
  </tr>
316
  <tr class="yop_poll_suboption" id="yop-poll-redirect-after-vote-url-div" >
317
+ <th> {{ __("Redirect After Vote URL") }} :</th>
318
  <td>
319
  {{ input ( current_poll.redirect_after_vote_url, 'yop-poll-redirect-after-vote-url', 'yop_poll_options[redirect_after_vote_url]' ) }}
320
  </td>
321
  </tr>
322
 
323
  <tr>
324
+ <th>{{ __("Display Archive Link") }}:</th>
325
  <td>
326
+ {{ label( __("Yes"), 'yop-poll-view-poll-archive-link-yes', 'yop_poll_options[view_poll_archive_link]', "yes", "radio", "", current_poll.view_poll_archive_link, "yes" ) }}
327
+ {{ label( __("No"), 'yop-poll-view-poll-archive-link-no', 'yop_poll_options[view_poll_archive_link]', "no", "radio", "", current_poll.view_poll_archive_link, "no" ) }}
328
  </td>
329
  </tr>
330
  <tr>
331
+ <th> {{ __("Auto Generate Poll Page") }}:</th>
332
  <td>
333
+ {{ label( __("Yes"), 'yop-poll-auto-generate-poll-page-yes', 'yop_poll_options[auto_generate_poll_page]', "yes", "radio", "", current_poll.auto_generate_poll_page, "yes" ) }}
334
+ {{ label( __("No"), 'yop-poll-auto-generate-poll-page-no', 'yop_poll_options[auto_generate_poll_page]', "no", "radio", "", current_poll.auto_generate_poll_page, "no" ) }}
335
  </td>
336
  </tr>
337
  <tr>
338
+ <th> {{ __("Use CAPTCHA") }}:</th>
339
  <td>
340
+ {{ label( __("Yes"), 'yop-poll-use-captcha-yes', 'yop_poll_options[use_captcha]', "yes", "radio", "", current_poll.use_captcha, "yes" ) }}
341
+ {{ label( __("No"), 'yop-poll-use-captcha-no', 'yop_poll_options[use_captcha]', "no", "radio", "", current_poll.use_captcha, "no" ) }}
342
  </td>
343
  </tr>
344
  <tr>
345
+ <th> {{ __("Send Email Notifications") }}:</th>
346
  <td>
347
+ {{ label( __("Yes"), 'yop-poll-send-email-notifications-yes', 'yop_poll_options[send_email_notifications]', "yes", "radio", "", current_poll.send_email_notifications, "yes" ) }}
348
+ {{ label( __("No"), 'yop-poll-send-email-notifications-no', 'yop_poll_options[send_email_notifications]', "no", "radio", "", current_poll.send_email_notifications, "no" ) }}
349
 
350
  </td>
351
  </tr>
352
  <tr>
353
+ <th> {{ __("Show Poll In Archive") }}:</th>
354
  <td>
355
+ {{ label( __("Yes"), 'yop-poll-show-poll-in-archive-yes', 'yop_poll_options[show_poll_in_archive]', "yes", "radio", "", current_poll.show_poll_in_archive, "yes" ) }}
356
+ {{ label( __("No"), 'yop-poll-show-poll-in-archive-no', 'yop_poll_options[show_poll_in_archive]', "no", "radio", "", current_poll.show_poll_in_archive, "no" ) }}
357
  </td>
358
  </tr>
359
  <tr class="yop_poll_suboption" id="yop-poll-show-poll-in-archive-div" >
360
+ <th> {{ __("Poll Archive Order") }}:</th>
361
  <td>
362
  {{ input( current_poll.poll_archive_order, 'yop-poll-poll-archive-order', 'poll_archive_order' )}}
363
  </td>
templates/polls_add_edit-bk.html CHANGED
@@ -1,175 +1 @@
1
- {% extends "polls_base.html" %}
2
-
3
- {% block content %}
4
- <form method="post" name="yop_poll_edit_add_new_form" id="yop-poll-edit-add-new-form" >
5
- {{ wp_nonce_field( 'yop-poll-edit-add-action', 'yop-poll-edit-add-name', false, false ) | raw }}
6
- {% if ( 'edit' == action ) %}<span> Shortcode: <input id="yop_poll_shortcode" type="text" value='[yop_poll id="{{ current_poll.ID }}"]' readonly="readonly"> </span>{% endif %}
7
- <div id="poststuff">
8
- <div id="post-body" class="metabox-holder columns-2">
9
- <div id="post-body-content">
10
- <div class="yop-poll-titlediv">
11
- <div class="yop-poll-titlewrap">
12
- <label for="title" class="yop-poll-title-prompt-text">{{ __( 'Enter Poll Title Here') }}</label>
13
- <input type="text" class="yop-poll-title" value="{{ current_poll.poll_title }}asdasd" size="30" name="poll_title">
14
- </div><!-- titlewrap -->
15
- </div><!-- titlediv -->
16
- </div><!-- post-body-content -->
17
- <div class="postbox-container" id="postbox-container-1">
18
- <div class="postbox">
19
- <div title="{{ __('Click to toggle') }}" class="handlediv">
20
- <br />
21
- </div>
22
- <h3 class="hndle">
23
- <span>{{ __('Save') }}</span>
24
- </h3>
25
- <div class="inside">
26
- <div id="submitlink" class="submitbox">
27
- <div id="major-publishing-actions">
28
- <div id="publishing-action">
29
- <input type="button" accesskey="p" class="button-primary" value="{{ __('Save') }}" id="yop-poll-edit-add-new-form-submit1" />
30
- </div>
31
- <div class="clear"></div>
32
- </div>
33
- <div class="clear"></div>
34
- </div>
35
- </div>
36
- </div>
37
- </div><!-- postbox-container-1 -->
38
- <div id="postbox-container-2" class="postbox-container">
39
- <div class="yop-poll-sortable">
40
- {% set question = { 'id': 1 } %}
41
- <div class="stuffbox" id="stuffbox-question-{{ question.id }}">
42
- <div title="{{ __('Click to toggle') }}" class="handlediv"><br /> </div>
43
- <h3 class="hndle">
44
- <span>{{ __('Question ') }}{{ question.id }}</span>
45
- </h3>
46
- <div class="inside">
47
- <div class="yop-poll-titlediv">
48
- <div class="yop-poll-titlewrap">
49
- <label id="yop-poll-question-label-{{ question.id }}" class="yop-poll-title-prompt-text" for="yop-poll-question-input{{ question.id }}">{{ __('Enter Your Question Here') }}</label>
50
- <input id="yop-poll-question-input{{ question.id }}" class="yop-poll-title" type="text" name="yop_poll_question[{{ poll.ID }}][]" size="30" value="adasdad">
51
- </div>
52
- </div>
53
-
54
- <div class="yop-poll-sortable">
55
- {% set answer = { 'id': 2 } %}
56
- <div class="stuffbox" id="stuffbox-answer-{{ answer.id }}">
57
- <div title="{{ __('Click to toggle') }}" class="handlediv"><br /> </div>
58
- <h3 class="hndle">
59
- <span>{{ __('Answer ') }}{{ answer.id }}</span>
60
- </h3>
61
- <div class="inside">
62
- <div class="yop-poll-titlediv">
63
- <div class="yop-poll-titlewrap">
64
- <label id="yop-poll-answer-label-{{ answer.id }}" class="yop-poll-title-prompt-text" for="yop-poll-answer-input{{ answer.id }}">{{ __('Enter Your Answer Here') }}</label>
65
- <input id="yop-poll-answer-input{{ answer.id }}" class="yop-poll-title" type="text" name="answer[{{ poll.ID }}][{{ question.ID }}][]" size="30" value="adasdad">
66
- </div>
67
- </div>
68
- </div>
69
- </div><!-- stuffbox -->
70
- {% set answer = { 'id': 3 } %}
71
- <div class="stuffbox" id="stuffbox-answer-{{ answer.id }}">
72
- <div title="{{ __('Click to toggle') }}" class="handlediv"><br /> </div>
73
- <h3 class="hndle">
74
- <span>{{ __('Answer ') }}{{ answer.id }}</span>
75
- </h3>
76
- <div class="inside">
77
- <div class="yop-poll-titlediv">
78
- <div class="yop-poll-titlewrap">
79
- <label id="yop-poll-answer-label-{{ answer.id }}" class="yop-poll-title-prompt-text" for="yop-poll-answer-input{{ answer.id }}">{{ __('Enter Your Answer Here') }}</label>
80
- <input id="yop-poll-answer-input{{ answer.id }}" class="yop-poll-title" type="text" name="answer[{{ poll.ID }}][{{ question.ID }}][]" size="30" value="adasdad">
81
- </div>
82
- </div>
83
- </div>
84
- </div><!-- stuffbox -->
85
- {% set answer = { 'id': 4 } %}
86
- <div class="stuffbox" id="stuffbox-answer-{{ answer.id }}">
87
- <div title="{{ __('Click to toggle') }}" class="handlediv"><br /> </div>
88
- <h3 class="hndle">
89
- <span>{{ __('Answer ') }}{{ answer.id }}</span>
90
- </h3>
91
- <div class="inside">
92
- <div class="yop-poll-titlediv">
93
- <div class="yop-poll-titlewrap">
94
- <label id="yop-poll-answer-label-{{ answer.id }}" class="yop-poll-title-prompt-text" for="yop-poll-answer-input{{ answer.id }}">{{ __('Enter Your Answer Here') }}</label>
95
- <input id="yop-poll-answer-input{{ answer.id }}" class="yop-poll-title" type="text" name="answer[{{ poll.ID }}][{{ question.ID }}][]" size="30" value="adasdad">
96
- </div>
97
- </div>
98
- </div>
99
- </div><!-- stuffbox -->
100
- </div>
101
- </div>
102
- </div>
103
- {% set question = { 'id': 2 } %}
104
- <div class="stuffbox" id="stuffbox-question-{{ question.id }}">
105
- <div title="{{ __('Click to toggle') }}" class="handlediv"><br /> </div>
106
- <h3 class="hndle">
107
- <span>{{ __('Question ') }}{{ question.id }}</span>
108
- </h3>
109
- <div class="inside">
110
- <div class="yop-poll-titlediv">
111
- <div class="yop-poll-titlewrap">
112
- <label id="yop-poll-question-label-{{ question.id }}" class="yop-poll-title-prompt-text" for="yop-poll-question-input{{ question.id }}">{{ __('Enter Your Question Here') }}</label>
113
- <input id="yop-poll-question-input{{ question.id }}" class="yop-poll-title" type="text" name="yop_poll_question[{{ poll.ID }}][]" size="30" value="adasdad">
114
- </div>
115
- </div>
116
-
117
- <div class="yop-poll-sortable">
118
- {% set answer = { 'id': 5 } %}
119
- <div class="stuffbox" id="stuffbox-answer-{{ answer.id }}">
120
- <div title="{{ __('Click to toggle') }}" class="handlediv"><br /> </div>
121
- <h3 class="hndle">
122
- <span>{{ __('Answer ') }}{{ answer.id }}</span>
123
- </h3>
124
- <div class="inside">
125
- <div class="yop-poll-titlediv">
126
- <div class="yop-poll-titlewrap">
127
- <label id="yop-poll-answer-label-{{ answer.id }}" class="yop-poll-title-prompt-text" for="yop-poll-answer-input{{ answer.id }}">{{ __('Enter Your Answer Here') }}</label>
128
- <input id="yop-poll-answer-input{{ answer.id }}" class="yop-poll-title" type="text" name="answer[{{ poll.ID }}][{{ question.ID }}][]" size="30" value="adasdad">
129
- </div>
130
- </div>
131
- </div>
132
- </div><!-- stuffbox -->
133
- {% set answer = { 'id': 6 } %}
134
- <div class="stuffbox" id="stuffbox-answer-{{ answer.id }}">
135
- <div title="{{ __('Click to toggle') }}" class="handlediv"><br /> </div>
136
- <h3 class="hndle">
137
- <span>{{ __('Answer ') }}{{ answer.id }}</span>
138
- </h3>
139
- <div class="inside">
140
- <div class="yop-poll-titlediv">
141
- <div class="yop-poll-titlewrap">
142
- <label id="yop-poll-answer-label-{{ answer.id }}" class="yop-poll-title-prompt-text" for="yop-poll-answer-input{{ answer.id }}">{{ __('Enter Your Answer Here') }}</label>
143
- <input id="yop-poll-answer-input{{ answer.id }}" class="yop-poll-title" type="text" name="answer[{{ poll.ID }}][{{ question.ID }}][]" size="30" value="adasdad">
144
- </div>
145
- </div>
146
- </div>
147
- </div><!-- stuffbox -->
148
- {% set answer = { 'id': 7 } %}
149
- <div class="stuffbox" id="stuffbox-answer-{{ answer.id }}">
150
- <div title="{{ __('Click to toggle') }}" class="handlediv"><br /> </div>
151
- <h3 class="hndle">
152
- <span>{{ __('Answer ') }}{{ answer.id }}</span>
153
- </h3>
154
- <div class="inside">
155
- <div class="yop-poll-titlediv">
156
- <div class="yop-poll-titlewrap">
157
- <label id="yop-poll-answer-label-{{ answer.id }}" class="yop-poll-title-prompt-text" for="yop-poll-answer-input{{ answer.id }}">{{ __('Enter Your Answer Here') }}</label>
158
- <input id="yop-poll-answer-input{{ answer.id }}" class="yop-poll-title" type="text" name="answer[{{ poll.ID }}][{{ question.ID }}][]" size="30" value="adasdad">
159
- </div>
160
- </div>
161
- </div>
162
- </div><!-- stuffbox -->
163
- </div>
164
- </div>
165
- </div>
166
- </div><!-- questions-sortable -->
167
- <div>
168
- <button class="button button-primary right" id="yop-poll-add-question-button">Add New Question</button>
169
- </div>
170
- <div class="clear"></div>
171
- </div><!-- postbox-container-2 -->
172
- </div><!-- post-body -->
173
- </div><!-- poststuff -->
174
- </form>
175
- {% endblock content %}
1
+ {% extends "polls_base.html" %}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
templates/polls_add_edit.html CHANGED
@@ -6,7 +6,7 @@
6
  <form method="post" name="yop_poll_edit_add_new_form" id="yop-poll-edit-add-new-form">
7
  {{ wp_nonce_field( 'yop-poll-add-edit-action', 'yop-poll-add-edit-name', false, false ) | raw }}
8
  {% if ( 'edit' == action_type ) %}
9
- <span> {{ __( 'Shortcode' ) }}:
10
  <input id="yop_poll_shortcode" type="text" value='[yop_poll id="{{ current_poll.ID }}"]' readonly="readonly">
11
  </span>
12
  {% endif %}
@@ -16,7 +16,7 @@
16
  <div id="post-body-content">
17
  <div class="yop-poll-titlediv">
18
  <div class="yop-poll-titlewrap">
19
- <label for="yop-poll-title" class="yop-poll-title-prompt-text">{{ __( 'Enter Poll Title Here') }}</label>
20
  <input type="text" id="yop-poll-title" class="yop-poll-title" value="{{ current_poll.poll_title }}" size="30" name="poll_title" >
21
  </div><!-- titlewrap -->
22
  </div><!-- titlediv -->
@@ -25,11 +25,11 @@
25
 
26
  <div class="postbox-container" id="postbox-container-1">
27
  <div class="postbox stuffbox">
28
- <div title="{{ __('Click to toggle') }}" class="handlediv">
29
  <br/>
30
  </div>
31
  <h3 class="hndle">
32
- <span>{{ __('Save') }}</span>
33
  </h3>
34
  <div class="inside">
35
  <div id="submitlink" class="submitbox">
@@ -37,7 +37,7 @@
37
  <div id="publishing-action">
38
  <input type="hidden" value="{{ current_poll.ID }}" name="poll_id"/>
39
  <input type="hidden" value="{{ action_type }}" name="action_type"/>
40
- <input type="button" accesskey="p" class="button-primary" value="{{ __('Save') }}" id="yop-poll-edit-add-new-form-submit" onclick="save_poll()"/>
41
  </div>
42
  <div class="clear"></div>
43
  </div>
@@ -49,7 +49,7 @@
49
 
50
  <div class="postbox-container" id="postbox-container-2">
51
  <div class="icon32-yop-poll-question-section">&nbsp;</div>
52
- <h2 class="yop-poll-section-header">{{ __( 'Questions' ) }}:</h2>
53
  <div class="yop-poll-questions-sortable">
54
  {% for question in current_poll.questions %}
55
  {% include 'polls_question_template.html' %}
@@ -60,7 +60,7 @@
60
  </div>
61
  <div id="publishing-action">
62
  <span class="spinner"></span>
63
- {{ input( __('Add New Question') , 'yop-poll-edit-add-new-question', '', 'button', '', 'button-primary', "yop_poll_add_new_question( \'\', this )" ) }}
64
  </div>
65
  <div class="clear"></div>
66
  <hr class="yop-poll-sections-delimiter"/>
@@ -68,14 +68,14 @@
68
 
69
  <!-- Start Poll Template -->
70
  <div class="postbox stuffbox">
71
- <div title="{{ __('Click to toggle') }}" class="handlediv"><br/> </div>
72
  <h3 class="hndle" style="border-bottom: 1px solid #AAAAAA;">
73
- <span>{{ __('Poll Templates') }}</span>
74
  </h3>
75
  <div class="inside yop-poll-slider">
76
  <div class="yop-poll-slider-container">
77
  <h4 class="hndle">
78
- <span>{{ __('Page Template') }}:</span>
79
  </h4>
80
  <input type="hidden" id="yop-poll-page-template" name="yop_poll_options[template]" value="{{ current_poll.template }}">
81
  <div class="yop-poll-page-slider" id="yop-poll-page-template-slider">
@@ -97,7 +97,7 @@
97
  </div>
98
  <div class="yop-poll-slider-container">
99
  <h4 class="hndle">
100
- <span>{{ __('Widget Template') }}:</span>
101
  </h4>
102
  <input type="hidden" id="yop-poll-widget-template" name="yop_poll_options[widget_template]" value="{{ current_poll.widget_template }}">
103
  <div class="yop-poll-widget-slider" id="yop-poll-widget-template-slider">
@@ -123,16 +123,16 @@
123
 
124
  <!-- Start Poll Options -->
125
  <div class="postbox stuffbox closed">
126
- <div title="{{ __('Click to toggle') }}" class="handlediv"><br/> </div>
127
  <h3 class="hndle" style="border-bottom: 1px solid #AAAAAA;">
128
- <span>{{ __('Poll Options') }}</span>
129
  </h3>
130
  <div class="inside">
131
  <table width="100%" cellspacing="0" class="yop-poll-options-table links-table">
132
  <tbody>
133
  <tr>
134
  <th>
135
- {{__( 'Start Date' ) }}:
136
  </th>
137
  <td valign="top">
138
  {{ input(current_poll.poll_start_date, 'yop-poll-start-date', 'poll_start_date', 'text', '', 'hasDatePicker' ) }}
@@ -140,7 +140,7 @@
140
  </tr>
141
  <tr>
142
  <th>
143
- {{__( 'End Date' ) }}:
144
  </th>
145
  <td valign="top">
146
  <label for="yop-poll-never-expire">
@@ -150,121 +150,121 @@
150
  </td>
151
  </tr>
152
  <tr>
153
- <th>{{__('Display Results')}}:</th>
154
  <td>
155
- {{ label( 'Before Vote', 'yop-poll-view-results-before-vote', 'yop_poll_options[view_results]', "before", "radio", "yop-poll-view-results-hide-custom", current_poll.view_results, "before" ) }}
156
- {{ label( 'After Vote', 'yop-poll-view-results-after-vote', 'yop_poll_options[view_results]', "after", "radio", "yop-poll-view-results-hide-custom", current_poll.view_results, "after" ) }}
157
- {{ label( 'After Poll End Date','yop-poll-view-results-after-poll-end-date', 'yop_poll_options[view_results]', "after-poll-end-date", "radio", "yop-poll-view-results-hide-custom", current_poll.view_results, "after-poll-end-date" ) }}
158
- {{ label( 'Never', 'yop-poll-view-results-never', 'yop_poll_options[view_results]', "never", "radio", "yop-poll-view-results-hide-custom", current_poll.view_results, "never" ) }}
159
- {{ label( 'Custom Date', 'yop-poll-view-results-custom', 'yop_poll_options[view_results]', "custom-date", "radio", "yop-poll-view-results-show-custom", current_poll.view_results, "custom-date" ) }}
160
  <div id="yop-poll-display-view-results-div" style="{% if current_poll.view_results != 'custom-date' %} display: none; {% endif %}">
161
  <label for="yop-poll-view-results-start-date">
162
- {{__('Results display date')}}
163
- <small>{{__('(the users will be able to view poll results starting with following date )')}}</small>:
164
  <input type="text" id="yop-poll-view-results-start-date" name="yop_poll_options[view_results_start_date]" value="{{ current_poll.view_results_start_date }}" class='hasDatePicker'>
165
  </label>
166
  </div>
167
  </td>
168
  </tr>
169
  <tr>
170
- <th> {{ __('Display Results Permissions')}} </th>
171
  <td>
172
- {{ label( 'Guest Only', 'yop-poll-view-results-permissions-quest-only', 'yop_poll_options[view_results_permissions]', "guest-only", "radio", "", current_poll.view_results_permissions, "guest-only" ) }}
173
- {{ label( 'Registered Only', 'yop-poll-view-results-permissions-registered-only', 'yop_poll_options[view_results_permissions]', "registered-only", "radio", "", current_poll.view_results_permissions, "registered-only" ) }}
174
- {{ label( 'Guest & Registered Users', 'yop-poll-view-results-permissions-guest-registered', 'yop_poll_options[view_results_permissions]', "guest-registered", "radio", "", current_poll.view_results_permissions, "guest-registered" ) }}
175
  </td>
176
  </tr>
177
  <tr>
178
- <th> {{__( 'Results Display')}}: </th>
179
  <td>
180
- {{ label( 'By Votes Number', 'yop-poll-view-results-votes-number', 'yop_poll_options[view_results_type]', "votes-number", "radio", "", current_poll.view_results_type, "votes-number" ) }}
181
- {{ label( 'Percentages', 'yop-poll-view-results-percentages', 'yop_poll_options[view_results_type]', "percentages", "radio", "", current_poll.view_results_type, "percentages" ) }}
182
- {{ label( 'by Votes Number and Percentages', 'yop-poll-view-results-votes-number-and-percentages', 'yop_poll_options[view_results_type]', "votes-number-and-percentages", "radio", "", current_poll.view_results_type, "votes-number-and-percentages" ) }}
183
  </td>
184
  </tr>
185
  <tr>
186
- <th> {{__( 'Poll Answer Result Label')}}: </th>
187
  <td>
188
  {{ input(current_poll.answer_result_label, 'yop-poll-answer-result-label', 'yop_poll_options[answer_result_label]', 'text' ) }}
189
- <small><i> {{ __('Use %POLL-ANSWER-RESULT-PERCENTAGES% for showing answer percentages and %POLL-ANSWER-RESULT-VOTES% for showing answer number of votes' ) }}</i></small>
190
  </td>
191
  </tr>
192
  <tr>
193
- <th> {{ __('Vote Button Label') }}: </th>
194
  <td>
195
  {{ input( current_poll.vote_button_label, 'yop-poll-vote-button-label', 'yop_poll_options[vote_button_label]') }}
196
  </td>
197
  </tr>
198
  <tr>
199
- <th> {{ __('Display Results Link') }}: </th>
200
  <td>
201
- {{ label( 'Yes', 'yop-poll-view-results-link-yes', 'yop_poll_options[view_results_link]', "yes", "radio", "", current_poll.view_results_link, "yes" ) }}
202
- {{ label( 'No', 'yop-poll-view-results-link-no', 'yop_poll_options[view_results_link]', "no", "radio", "", current_poll.view_results_link, "no" ) }}
203
  </td>
204
  </tr>
205
  <tr class="yop_poll_suboption" id="yop-poll-view-results-link-div" style="{% if current_poll.view_results_link != 'yes' %} display: none; {% endif %}">
206
- <th> {{ __('Results Link Label') }}: </th>
207
  <td>
208
  {{ input( current_poll.view_results_link_label, 'yop-poll-view-results-link-label', 'yop_poll_options[view_results_link_label]') }}
209
  </td>
210
  </tr>
211
  <tr>
212
- <th> {{ __('Display Back To Vote Link') }}: </th>
213
  <td>
214
- {{ label( 'Yes', 'yop-poll-view-back-to-vote-link-yes', 'yop_poll_options[view_back_to_vote_link]', "yes", "radio", "", current_poll.view_back_to_vote_link, "yes" ) }}
215
- {{ label( 'No', 'yop-poll-view-back-to-vote-link-no', 'yop_poll_options[view_back_to_vote_link]', "no", "radio", "", current_poll.view_back_to_vote_link, "no" ) }}
216
  </td>
217
  </tr>
218
  <tr class="yop_poll_suboption" id="yop-poll-view-back-to-vote-link-div" style="{% if current_poll.view_back_to_vote_link != 'yes' %} display: none; {% endif %}">
219
- <th> {{ __('Back To Vote Link Label') }}: </th>
220
  <td>
221
  {{ input( current_poll.view_back_to_vote_link_label, 'yop-poll-view-back-to-vote-link-label', 'yop_poll_options[view_back_to_vote_link_label]') }}
222
  </td>
223
  </tr>
224
  <tr>
225
- <th> {{ __('Display Total Votes') }}: </th>
226
  <td>
227
- {{ label( 'Yes', 'yop-poll-view-total-votes-yes', 'yop_poll_options[view_total_votes]', "yes", "radio", "", current_poll.view_total_votes, "yes" ) }}
228
- {{ label( 'No', 'yop-poll-view-total-votes-no', 'yop_poll_options[view_total_votes]', "no", "radio", "", current_poll.view_total_votes, "no" ) }}
229
  </td>
230
  </tr>
231
  <tr class="yop_poll_suboption" id="yop-poll-view-total-votes-div" style="{% if current_poll.view_total_votes != 'yes' %} display: none; {% endif %}">
232
- <th> {{ __('Total Votes Label') }}: </th>
233
  <td>
234
  {{ input( current_poll.view_total_votes_label, 'yop-poll-view-total-votes-label', 'yop_poll_options[view_total_votes_label]') }}
235
- <br><small><i> {{ __('Use %POLL-TOTAL-VOTES% for displaying poll\'s total number of votes' ) }}</i></small>
236
  </td>
237
  </tr>
238
  <tr>
239
- <th> {{ __('Display Total Answers') }}: </th>
240
  <td>
241
- {{ label( 'Yes', 'yop-poll-view-total-answers-yes', 'yop_poll_options[view_total_answers]', "yes", "radio", "", current_poll.view_total_answers, "yes" ) }}
242
- {{ label( 'No', 'yop-poll-view-total-answers-no', 'yop_poll_options[view_total_answers]', "no", "radio", "", current_poll.view_total_answers, "no" ) }}
243
  </td>
244
  </tr>
245
  <tr class="yop_poll_suboption" id="yop-poll-view-total-answers-div" style="{% if current_poll.view_total_answers != 'yes' %} display: none; {% endif %}">
246
- <th> {{ __('Total Answers Label') }}: </th>
247
  <td>
248
  {{ input( current_poll.view_total_answers_label, 'yop-poll-view-total-answers-label', 'yop_poll_options[view_total_answers_label]') }}
249
  </td>
250
  </tr>
251
  <tr>
252
- <th> {{ __('Message After Vote') }} </th>
253
  <td>
254
  {{ input( current_poll.message_after_vote, 'yop-poll-message-after-vote', 'yop_poll_options[message_after_vote]') }}
255
  </td>
256
  </tr>
257
  <tr>
258
- <th> {{ __('Vote Permissions') }} </th>
259
  <td>
260
- {{ label( 'Guest Only', 'yop-poll-vote-permisions-quest-only', 'yop_poll_options[vote_permisions]', "guest-only", "radio", "", current_poll.vote_permisions, "guest-only" ) }}
261
- {{ label( 'Registered Only', 'yop-poll-vote-permisions-registered-only', 'yop_poll_options[vote_permisions]', "registered-only", "radio", "", current_poll.vote_permisions, "registered-only" ) }}
262
- {{ label( 'Guest & Registered Users', 'yop-poll-vote-permisions-guest-registered','yop_poll_options[vote_permisions]', "guest-registered","radio", "", current_poll.vote_permisions, "guest-registered" ) }}
263
  </td>
264
  </tr>
265
  {% if current_poll.is_pro == true %}
266
  <tr class="yop-poll-vote-as-div" style="{% if current_poll.vote_permisions == 'guest-only' %} display: none; {% endif %}">
267
- <th>{{ __("Vote as Facebook User") }} <br><small> {{ __('Will force users to login into Facebook')}}</small> </th>
268
  <td>
269
  <input type="radio" value="Yes" name="vote_with_facebook" disabled>
270
  <input type="radio" value="No" name="vote_with_facebook" disabled>
@@ -272,48 +272,48 @@
272
  </td>
273
  </tr>
274
  <tr class="yop-poll-vote-as-div yop_poll_suboption" id="yop-poll-vote-permisions-wordpress-div" style="{% if current_poll.vote_permisions_wordpress != 'yes' %} display: none; {% elseif current_poll.vote_permisions == 'guest-only' %} display: none; {% endif %}">
275
- <th>{{ __('"Vote as Facebook User" Button Label') }}:</th>
276
  <td>
277
  {{ input( current_poll.vote_permisions_facebook_label, 'yop-poll-vote-permisions-facebook-label', 'yop_poll_options[vote_permisions_facebook_label]') }}
278
  </td>
279
  </tr>
280
  {% endif %}
281
  <tr class="yop-poll-vote-as-div" style="{% if current_poll.vote_permisions == 'guest-only' %} display: none; {% endif %}">
282
- <th>{{ __("Vote as Wordpress User") }} <br><small> {{ __('Will force users to login')}}</small> </th>
283
  <td>
284
- {{ label( 'Yes', 'yop-poll-vote-permisions-wordpress-yes', 'yop_poll_options[vote_permisions_wordpress]', "yes", "radio", "", current_poll.vote_permisions_wordpress, "yes" ) }}
285
- {{ label( 'No', 'yop-poll-vote-permisions-wordpress-no', 'yop_poll_options[vote_permisions_wordpress]', "no", "radio", "", current_poll.vote_permisions_wordpress, "no" ) }}
286
  </td>
287
  </tr>
288
  <tr class="yop-poll-vote-as-div yop_poll_suboption" id="yop-poll-vote-permisions-wordpress-div" style="{% if current_poll.vote_permisions_wordpress != 'yes' %} display: none; {% elseif current_poll.vote_permisions == 'guest-only' %} display: none {% endif %}">
289
- <th>{{ __('"Vote as Wordpress User" Button Label') }}:
290
  </th>
291
  <td>
292
  {{ input( current_poll.vote_permisions_wordpress_label, 'yop-poll-vote-permisions-wordpress-label', 'yop_poll_options[vote_permisions_wordpress_label]') }}
293
  </td>
294
  </tr>
295
  <tr class="yop-poll-vote-as-div" style="{% if current_poll.vote_permisions == 'guest-only' %} display: none; {% endif %}">
296
- <th>{{ __('Vote as Anonymous User') }} <br><small>( {{ __('Logged users will be treated as anonymous') }} )</small>:
297
  </th>
298
  <td>
299
- {{ label( 'Yes', 'yop-poll-vote-permisions-anonymous-yes', 'yop_poll_options[vote_permisions_anonymous]', "yes", "radio", "", current_poll.vote_permisions_anonymous, "yes" ) }}
300
- {{ label( 'No', 'yop-poll-vote-permisions-anonymous-no', 'yop_poll_options[vote_permisions_anonymous]', "no", "radio", "", current_poll.vote_permisions_anonymous, "no" ) }}
301
  </td>
302
  </tr>
303
  <tr class="yop-poll-vote-as-div yop_poll_suboption" id="yop-poll-vote-permisions-anonymous-label-div" style="{% if current_poll.vote_permisions_anonymous != 'yes' %} display: none; {% elseif current_poll.vote_permisions == 'guest-only' %} display: none; {% endif %}">
304
- <th> {{ __('"Vote as Anonymous User" Button Label') }} </th>
305
  <td>
306
  {{ input( current_poll.vote_permisions_anonymous_label, 'yop-poll-vote-permisions-anonymous-label', 'yop_poll_options[vote_permisions_anonymous_label]') }}
307
  </td>
308
  </tr>
309
  <tr>
310
- <th> {{ __('Blocking Voters') }}: </th>
311
  <td>
312
- {{ label( 'Don\'t Block', 'yop-poll-blocking-voters-dont-block', 'yop_poll_options[blocking_voters]', "dont-block", "radio", "yop-poll-blocking-voters-hide-interval", current_poll.blocking_voters, "dont-block" ) }}
313
- {{ label( 'By Cookie', 'yop-poll-blocking-voters-cookie', 'yop_poll_options[blocking_voters]', "cookie", "radio", "yop-poll-blocking-voters-show-interval", current_poll.blocking_voters, "cookie" ) }}
314
- {{ label( 'By IP', 'yop-poll-blocking-voters-ip', 'yop_poll_options[blocking_voters]', "ip", "radio", "yop-poll-blocking-voters-show-interval", current_poll.blocking_voters, "ip" ) }}
315
- {{ label( 'By Username', 'yop-poll-blocking-voters-username', 'yop_poll_options[blocking_voters]', "username", "radio", "yop-poll-blocking-voters-show-interval", current_poll.blocking_voters, "username" ) }}
316
- {{ label( 'By Cookie and Ip', 'yop-poll-blocking-voters-cookie-ip', 'yop_poll_options[blocking_voters]', "cookie-ip", "radio", "yop-poll-blocking-voters-show-interval", current_poll.blocking_voters, "cookie-ip" ) }}
317
  </td>
318
  </tr>
319
  <tr class="yop_poll_suboption" id="yop-poll-blocking-voters-interval-div" style="{% if current_poll.blocking_voters == 'dont-block' %} display: none; {% endif %}">
@@ -328,87 +328,87 @@
328
  </td>
329
  </tr>
330
  <tr class="yop-poll-limit-number-of-votes-per-user-div">
331
- <th> {{ __('Limit Number of Votes per User') }}: </th>
332
  <td>
333
- {{ label( 'Yes', 'yop-poll-limit-number-of-votes-per-user-yes', 'yop_poll_options[limit_number_of_votes_per_user]', "yes", "radio", "", current_poll.limit_number_of_votes_per_user, "yes" ) }}
334
- {{ label( 'No', 'yop-poll-limit-number-of-votes-per-user-no', 'yop_poll_options[limit_number_of_votes_per_user]', "no", "radio", "", current_poll.limit_number_of_votes_per_user, "no" ) }}
335
  </td>
336
  </tr>
337
  <tr class="yop-poll-limit-number-of-votes-per-user-divs yop_poll_suboption" id="yop-poll-number-of-votes-per-user-div" style="{% if current_poll.limit_number_of_votes_per_user != 'yes' %} display: none; {% endif %}">
338
- <th> {{ __('Number of Votes per User') }}: </th>
339
  <td>
340
  {{ input( current_poll.number_of_votes_per_user, 'yop-poll-number-of-votes-per-user', 'yop_poll_options[number_of_votes_per_user]' )}}
341
  </td>
342
  </tr>
343
  <tr>
344
- <th> {{ __('Percentages Decimals') }}: </th>
345
  <td>
346
  {{ input( current_poll.percentages_decimals, 'yop-poll-percentages-decimals', 'yop_poll_options[percentages_decimals]' )}}
347
  </td>
348
  </tr>
349
  <tr>
350
- <th> {{ __('Use Default Loading Image') }}: </th>
351
  <td>
352
- {{ label( 'Yes', 'yop-poll-use-default-loading-image-yes', 'yop_poll_options[use_default_loading_image]', "yes", "radio", "", current_poll.use_default_loading_image, "yes" ) }}
353
- {{ label( 'No', 'yop-poll-use-default-loading-image-no', 'yop_poll_options[use_default_loading_image]', "no", "radio", "", current_poll.use_default_loading_image, "no" ) }}
354
  </td>
355
  </tr>
356
  <tr class="yop_poll_suboption" id="yop-poll-use-default-loading-image-div" style="{% if 'yes' == current_poll.use_default_loading_image %} display: none; {% endif %} ">
357
- <th>{{ __('Loading Image Url') }}: </th>
358
  <td>
359
  {{ input( current_poll.loading_image_url, 'yop-poll-loading-image-url', 'yop_poll_options[loading_image_url]' ) }}
360
  </td>
361
  </tr>
362
  <tr>
363
- <th> {{ __('Redirect After Vote') }} : </th>
364
  <td>
365
- {{ label( 'Yes', 'yop-poll-redirect-after-vote-yes', 'yop_poll_options[redirect_after_vote]', "yes", "radio", "", current_poll.redirect_after_vote, "yes" ) }}
366
- {{ label( 'No', 'yop-poll-redirect-after-vote-no', 'yop_poll_options[redirect_after_vote]', "no", "radio", "", current_poll.redirect_after_vote, "no" ) }}
367
  </td>
368
  </tr>
369
  <tr class="yop_poll_suboption" id="yop-poll-redirect-after-vote-url-div" style="{%if 'no' == current_poll.redirect_after_vote %} 'display: none; {% endif %}}">
370
- <th> {{ __('Redirect After Vote URL') }} : </th>
371
  <td>
372
  {{ input ( current_poll.redirect_after_vote_url, 'yop-poll-redirect-after-vote-url', 'yop_poll_options[redirect_after_vote_url]' ) }}
373
  </td>
374
  </tr>
375
  <tr>
376
- <th>{{ __('Display Archive Link') }}: </th>
377
  <td>
378
- {{ label( 'Yes', 'yop-poll-view-poll-archive-link-yes', 'yop_poll_options[view_poll_archive_link]', "yes", "radio", "", current_poll.view_poll_archive_link, "yes" ) }}
379
- {{ label( 'No', 'yop-poll-view-poll-archive-link-no', 'yop_poll_options[view_poll_archive_link]', "no", "radio", "", current_poll.view_poll_archive_link, "no" ) }}
380
  </td>
381
  </tr>
382
  <tr>
383
- <th> {{ __('Auto Generate Poll Page') }}: </th>
384
  <td>
385
- {{ label( 'Yes', 'yop-poll-auto-generate-poll-page-yes', 'yop_poll_options[auto_generate_poll_page]', "yes", "radio", "", current_poll.auto_generate_poll_page, "yes" ) }}
386
- {{ label( 'No', 'yop-poll-auto-generate-poll-page-no', 'yop_poll_options[auto_generate_poll_page]', "no", "radio", "", current_poll.auto_generate_poll_page, "no" ) }}
387
  </td>
388
  </tr>
389
  <tr>
390
- <th> {{ __('Use CAPTCHA') }}: </th>
391
  <td>
392
- {{ label( 'Yes', 'yop-poll-use-captcha-yes', 'yop_poll_options[use_captcha]', "yes", "radio", "", current_poll.use_captcha, "yes" ) }}
393
- {{ label( 'No', 'yop-poll-use-captcha-no', 'yop_poll_options[use_captcha]', "no", "radio", "", current_poll.use_captcha, "no" ) }}
394
  </td>
395
  </tr>
396
  <tr>
397
- <th> {{ __('Send Email Notifications') }}: </th>
398
  <td>
399
- {{ label( 'Yes', 'yop-poll-send-email-notifications-yes', 'yop_poll_options[send_email_notifications]', "yes", "radio", "", current_poll.send_email_notifications, "yes" ) }}
400
- {{ label( 'No', 'yop-poll-send-email-notifications-no', 'yop_poll_options[send_email_notifications]', "no", "radio", "", current_poll.send_email_notifications, "no" ) }}
401
  </td>
402
  </tr>
403
  <tr>
404
- <th> {{ __('Show Poll In Archive') }}: </th>
405
  <td>
406
- {{ label( 'Yes', 'yop-poll-show-poll-in-archive-yes', 'yop_poll_options[show_poll_in_archive]', "yes", "radio", "", current_poll.show_poll_in_archive, "yes" ) }}
407
- {{ label( 'No', 'yop-poll-show-poll-in-archive-no', 'yop_poll_options[show_poll_in_archive]', "no", "radio", "", current_poll.show_poll_in_archive, "no" ) }}
408
  </td>
409
  </tr>
410
  <tr class="yop_poll_suboption" id="yop-poll-show-poll-in-archive-div" style="{% if current_poll.show_poll_in_archive != 'yes' %} display: none; {% endif %}">
411
- <th> {{ __('Poll Archive Order') }}: </th>
412
  <td>
413
  {{ input( current_poll.poll_archive_order, 'yop-poll-poll-archive-order', 'poll_archive_order' )}}
414
  </td>
@@ -421,48 +421,48 @@
421
 
422
  <!-- Start Results Options -->
423
  <div class="postbox stuffbox closed" id="3">
424
- <div title="{{ __('Click to toggle') }}" class="handlediv"><br/></div>
425
  <h3 class="hndle" style="border-bottom: 1px solid #AAAAAA;">
426
- <span>{{ __( 'Results Options' ) }}</span>
427
  </h3>
428
  <div class="inside">
429
  <table width="100%" cellspacing="0" class="yop-poll-options-table links-table">
430
  <tbody>
431
  <tr>
432
- <th>{{ __('Sort Results') }}:</th>
433
  <td>
434
- {{ label( 'As Defined', 'yop_poll_sorting_results_as_defined', 'yop_poll_options[sorting_results]', "as_defined", "radio", "", current_poll.sorting_results, "as_defined" ) }}
435
- {{ label( 'Database Id', 'yop_poll_sorting_results_database', 'yop_poll_options[sorting_results]', "database", "radio", "", current_poll.sorting_results, "database" ) }}
436
- {{ label( 'Alphabetical Order', 'yop_poll_sorting_results_alphabetical', 'yop_poll_options[sorting_results]', "alphabetical", "radio", "", current_poll.sorting_results, "alphabetical" ) }}
437
- {{ label( 'by Number of Votes', 'yop_poll_sorting_results_votes', 'yop_poll_options[sorting_results]', "votes", "radio", "", current_poll.sorting_results, "votes" ) }}
438
  </td>
439
  </tr>
440
  <tr>
441
- <th>{{ __('Sort Results Rule') }}:</th>
442
  <td>
443
- {{ label('Ascending', 'yop_poll_sorting_results_asc', 'yop_poll_options[sorting_results_direction]', 'asc', 'radio', '', current_poll.sorting_results_direction, "asc" ) }}
444
- {{ label('Descending', 'yop_poll_sorting_results_desc', 'yop_poll_options[sorting_results_direction]', 'desc', 'radio', '', current_poll.sorting_results_direction, "desc") }}
445
  </td>
446
  </tr>
447
  <tr>
448
- <th> {{ __('Poll Answer Result Votes Number Label') }}: </th>
449
  <td>
450
- {{ __('Singular') }}
451
  {{ input( current_poll.singular_answer_result_votes_number_label, 'yop-poll-singular-answer-result-votes-number-label', 'yop_poll_options[singular_answer_result_votes_number_label]') }}
452
- {{ __('Plural') }}
453
  {{ input( current_poll.plural_answer_result_votes_number_label, 'yop-poll-plural-answer-result-votes-number-label', 'yop_poll_options[plural_answer_result_votes_number_label]') }}
454
  </td>
455
  </tr>
456
  <tr>
457
- <th>{{ __('Display Results') }}: </th>
458
  <td>
459
- {{ label( 'Vertical', 'yop-poll-display-results-vertical', 'yop_poll_options[display_results]', "vertical", "radio", "", current_poll.display_results, "vertical" ) }}
460
- {{ label( 'Horizontal', 'yop-poll-display-results-orizontal', 'yop_poll_options[display_results]', "orizontal", "radio", "", current_poll.display_results, "orizontal" ) }}
461
- {{ label( 'Tabulated', 'yop-poll-display-results-tabulated', 'yop_poll_options[display_results]', "tabulated", "radio", "", current_poll.display_results, "tabulated" ) }}
462
  </td>
463
  </tr>
464
  <tr class="yop_poll_suboption" id="yop-poll-display-results-tabulated-div" style="{% if 'tabulated' != current_poll.display_results %} display: none; {% endif %}">
465
- <th> {{ __( 'Columns' ) }}: </th>
466
  <td>
467
  {{ input( current_poll.display_results_tabulated_cols, 'yop-poll-display-results-tabulated-cols', 'yop_poll_options[display_results_tabulated_cols]') }}
468
  </td>
@@ -480,6 +480,6 @@
480
  </div><!-- postbox-container-2 -->
481
  </div>
482
  </div><!-- post-body -->
483
- </div><!-- poststuff -->
484
  </form>
485
  {% endblock content %}
6
  <form method="post" name="yop_poll_edit_add_new_form" id="yop-poll-edit-add-new-form">
7
  {{ wp_nonce_field( 'yop-poll-add-edit-action', 'yop-poll-add-edit-name', false, false ) | raw }}
8
  {% if ( 'edit' == action_type ) %}
9
+ <span> {{ __( "Shortcode" ) }}:
10
  <input id="yop_poll_shortcode" type="text" value='[yop_poll id="{{ current_poll.ID }}"]' readonly="readonly">
11
  </span>
12
  {% endif %}
16
  <div id="post-body-content">
17
  <div class="yop-poll-titlediv">
18
  <div class="yop-poll-titlewrap">
19
+ <label for="yop-poll-title" class="yop-poll-title-prompt-text">{{ __( "Enter Poll Title Here") }}</label>
20
  <input type="text" id="yop-poll-title" class="yop-poll-title" value="{{ current_poll.poll_title }}" size="30" name="poll_title" >
21
  </div><!-- titlewrap -->
22
  </div><!-- titlediv -->
25
 
26
  <div class="postbox-container" id="postbox-container-1">
27
  <div class="postbox stuffbox">
28
+ <div title='{{ __("Click to toggle") }}' class="handlediv">
29
  <br/>
30
  </div>
31
  <h3 class="hndle">
32
+ <span>{{ __("Save") }}</span>
33
  </h3>
34
  <div class="inside">
35
  <div id="submitlink" class="submitbox">
37
  <div id="publishing-action">
38
  <input type="hidden" value="{{ current_poll.ID }}" name="poll_id"/>
39
  <input type="hidden" value="{{ action_type }}" name="action_type"/>
40
+ <input type="button" accesskey="p" class="button-primary" value='{{ __("Save") }}' id="yop-poll-edit-add-new-form-submit" onclick="save_poll()"/>
41
  </div>
42
  <div class="clear"></div>
43
  </div>
49
 
50
  <div class="postbox-container" id="postbox-container-2">
51
  <div class="icon32-yop-poll-question-section">&nbsp;</div>
52
+ <h2 class="yop-poll-section-header">{{ __( "Questions" ) }}:</h2>
53
  <div class="yop-poll-questions-sortable">
54
  {% for question in current_poll.questions %}
55
  {% include 'polls_question_template.html' %}
60
  </div>
61
  <div id="publishing-action">
62
  <span class="spinner"></span>
63
+ {{ input( __("Add New Question") , 'yop-poll-edit-add-new-question', '', 'button', '', 'button-primary', "yop_poll_add_new_question( \'\', this )" ) }}
64
  </div>
65
  <div class="clear"></div>
66
  <hr class="yop-poll-sections-delimiter"/>
68
 
69
  <!-- Start Poll Template -->
70
  <div class="postbox stuffbox">
71
+ <div title='{{ __("Click to toggle") }}' class="handlediv"><br/> </div>
72
  <h3 class="hndle" style="border-bottom: 1px solid #AAAAAA;">
73
+ <span>{{ __("Poll Templates") }}</span>
74
  </h3>
75
  <div class="inside yop-poll-slider">
76
  <div class="yop-poll-slider-container">
77
  <h4 class="hndle">
78
+ <span>{{ __("Page Template") }}:</span>
79
  </h4>
80
  <input type="hidden" id="yop-poll-page-template" name="yop_poll_options[template]" value="{{ current_poll.template }}">
81
  <div class="yop-poll-page-slider" id="yop-poll-page-template-slider">
97
  </div>
98
  <div class="yop-poll-slider-container">
99
  <h4 class="hndle">
100
+ <span>{{ __("Widget Template") }}:</span>
101
  </h4>
102
  <input type="hidden" id="yop-poll-widget-template" name="yop_poll_options[widget_template]" value="{{ current_poll.widget_template }}">
103
  <div class="yop-poll-widget-slider" id="yop-poll-widget-template-slider">
123
 
124
  <!-- Start Poll Options -->
125
  <div class="postbox stuffbox closed">
126
+ <div title='{{ __("Click to toggle") }}' class="handlediv"><br/> </div>
127
  <h3 class="hndle" style="border-bottom: 1px solid #AAAAAA;">
128
+ <span>{{ __("Poll Options") }}</span>
129
  </h3>
130
  <div class="inside">
131
  <table width="100%" cellspacing="0" class="yop-poll-options-table links-table">
132
  <tbody>
133
  <tr>
134
  <th>
135
+ {{__( "Start Date" ) }}:
136
  </th>
137
  <td valign="top">
138
  {{ input(current_poll.poll_start_date, 'yop-poll-start-date', 'poll_start_date', 'text', '', 'hasDatePicker' ) }}
140
  </tr>
141
  <tr>
142
  <th>
143
+ {{__( "End Date" ) }}:
144
  </th>
145
  <td valign="top">
146
  <label for="yop-poll-never-expire">
150
  </td>
151
  </tr>
152
  <tr>
153
+ <th>{{__("Display Results")}}:</th>
154
  <td>
155
+ {{ label( __("Before Vote"), 'yop-poll-view-results-before-vote', 'yop_poll_options[view_results]', "before", "radio", "yop-poll-view-results-hide-custom", current_poll.view_results, "before" ) }}
156
+ {{ label( __("After Vote"), 'yop-poll-view-results-after-vote', 'yop_poll_options[view_results]', "after", "radio", "yop-poll-view-results-hide-custom", current_poll.view_results, "after" ) }}
157
+ {{ label( __("After Poll End Date"),'yop-poll-view-results-after-poll-end-date', 'yop_poll_options[view_results]', "after-poll-end-date", "radio", "yop-poll-view-results-hide-custom", current_poll.view_results, "after-poll-end-date" ) }}
158
+ {{ label( __("Never"), 'yop-poll-view-results-never', 'yop_poll_options[view_results]', "never", "radio", "yop-poll-view-results-hide-custom", current_poll.view_results, "never" ) }}
159
+ {{ label( __("Custom Date"), 'yop-poll-view-results-custom', 'yop_poll_options[view_results]', "custom-date", "radio", "yop-poll-view-results-show-custom", current_poll.view_results, "custom-date" ) }}
160
  <div id="yop-poll-display-view-results-div" style="{% if current_poll.view_results != 'custom-date' %} display: none; {% endif %}">
161
  <label for="yop-poll-view-results-start-date">
162
+ {{__("Results display date")}}
163
+ <small>{{__("(the users will be able to view poll results starting with following date )")}}</small>:
164
  <input type="text" id="yop-poll-view-results-start-date" name="yop_poll_options[view_results_start_date]" value="{{ current_poll.view_results_start_date }}" class='hasDatePicker'>
165
  </label>
166
  </div>
167
  </td>
168
  </tr>
169
  <tr>
170
+ <th> {{ __("Display Results Permissions")}} </th>
171
  <td>
172
+ {{ label( __("Guest Only"), 'yop-poll-view-results-permissions-quest-only', 'yop_poll_options[view_results_permissions]', "guest-only", "radio", "", current_poll.view_results_permissions, "guest-only" ) }}
173
+ {{ label( __("Registered Only"), 'yop-poll-view-results-permissions-registered-only', 'yop_poll_options[view_results_permissions]', "registered-only", "radio", "", current_poll.view_results_permissions, "registered-only" ) }}
174
+ {{ label( __("Guest & Registered Users"), 'yop-poll-view-results-permissions-guest-registered', 'yop_poll_options[view_results_permissions]', "guest-registered", "radio", "", current_poll.view_results_permissions, "guest-registered" ) }}
175
  </td>
176
  </tr>
177
  <tr>
178
+ <th> {{__( "Results Display")}}: </th>
179
  <td>
180
+ {{ label( __("By Votes Number"), 'yop-poll-view-results-votes-number', 'yop_poll_options[view_results_type]', "votes-number", "radio", "", current_poll.view_results_type, "votes-number" ) }}
181
+ {{ label( __("Percentages"), 'yop-poll-view-results-percentages', 'yop_poll_options[view_results_type]', "percentages", "radio", "", current_poll.view_results_type, "percentages" ) }}
182
+ {{ label( __("by Votes Number and Percentages"), 'yop-poll-view-results-votes-number-and-percentages', 'yop_poll_options[view_results_type]', "votes-number-and-percentages", "radio", "", current_poll.view_results_type, "votes-number-and-percentages" ) }}
183
  </td>
184
  </tr>
185
  <tr>
186
+ <th> {{__( "Poll Answer Result Label")}}: </th>
187
  <td>
188
  {{ input(current_poll.answer_result_label, 'yop-poll-answer-result-label', 'yop_poll_options[answer_result_label]', 'text' ) }}
189
+ <small><i> {{ __("Use %POLL-ANSWER-RESULT-PERCENTAGES% for showing answer percentages and %POLL-ANSWER-RESULT-VOTES% for showing answer number of votes" ) }}</i></small>
190
  </td>
191
  </tr>
192
  <tr>
193
+ <th> {{ __("Vote Button Label") }}: </th>
194
  <td>
195
  {{ input( current_poll.vote_button_label, 'yop-poll-vote-button-label', 'yop_poll_options[vote_button_label]') }}
196
  </td>
197
  </tr>
198
  <tr>
199
+ <th> {{ __("Display Results Link") }}: </th>
200
  <td>
201
+ {{ label( __("Yes"), 'yop-poll-view-results-link-yes', 'yop_poll_options[view_results_link]', "yes", "radio", "", current_poll.view_results_link, "yes" ) }}
202
+ {{ label( __("No"), 'yop-poll-view-results-link-no', 'yop_poll_options[view_results_link]', "no", "radio", "", current_poll.view_results_link, "no" ) }}
203
  </td>
204
  </tr>
205
  <tr class="yop_poll_suboption" id="yop-poll-view-results-link-div" style="{% if current_poll.view_results_link != 'yes' %} display: none; {% endif %}">
206
+ <th> {{ __("Results Link Label") }}: </th>
207
  <td>
208
  {{ input( current_poll.view_results_link_label, 'yop-poll-view-results-link-label', 'yop_poll_options[view_results_link_label]') }}
209
  </td>
210
  </tr>
211
  <tr>
212
+ <th> {{ __("Display Back To Vote Link") }}: </th>
213
  <td>
214
+ {{ label( __("Yes"), 'yop-poll-view-back-to-vote-link-yes', 'yop_poll_options[view_back_to_vote_link]', "yes", "radio", "", current_poll.view_back_to_vote_link, "yes" ) }}
215
+ {{ label( __("No"), 'yop-poll-view-back-to-vote-link-no', 'yop_poll_options[view_back_to_vote_link]', "no", "radio", "", current_poll.view_back_to_vote_link, "no" ) }}
216
  </td>
217
  </tr>
218
  <tr class="yop_poll_suboption" id="yop-poll-view-back-to-vote-link-div" style="{% if current_poll.view_back_to_vote_link != 'yes' %} display: none; {% endif %}">
219
+ <th> {{ __("Back To Vote Link Label") }}: </th>
220
  <td>
221
  {{ input( current_poll.view_back_to_vote_link_label, 'yop-poll-view-back-to-vote-link-label', 'yop_poll_options[view_back_to_vote_link_label]') }}
222
  </td>
223
  </tr>
224
  <tr>
225
+ <th> {{ __("Display Total Votes") }}: </th>
226
  <td>
227
+ {{ label( __("Yes"), 'yop-poll-view-total-votes-yes', 'yop_poll_options[view_total_votes]', "yes", "radio", "", current_poll.view_total_votes, "yes" ) }}
228
+ {{ label( __("No"), 'yop-poll-view-total-votes-no', 'yop_poll_options[view_total_votes]', "no", "radio", "", current_poll.view_total_votes, "no" ) }}
229
  </td>
230
  </tr>
231
  <tr class="yop_poll_suboption" id="yop-poll-view-total-votes-div" style="{% if current_poll.view_total_votes != 'yes' %} display: none; {% endif %}">
232
+ <th> {{ __("Total Votes Label") }}: </th>
233
  <td>
234
  {{ input( current_poll.view_total_votes_label, 'yop-poll-view-total-votes-label', 'yop_poll_options[view_total_votes_label]') }}
235
+ <br><small><i> {{ __("Use %POLL-TOTAL-VOTES% for displaying poll\'s total number of votes" ) }}</i></small>
236
  </td>
237
  </tr>
238
  <tr>
239
+ <th> {{ __("Display Total Answers") }}: </th>
240
  <td>
241
+ {{ label( __("Yes"), 'yop-poll-view-total-answers-yes', 'yop_poll_options[view_total_answers]', "yes", "radio", "", current_poll.view_total_answers, "yes" ) }}
242
+ {{ label( __("No"), 'yop-poll-view-total-answers-no', 'yop_poll_options[view_total_answers]', "no", "radio", "", current_poll.view_total_answers, "no" ) }}
243
  </td>
244
  </tr>
245
  <tr class="yop_poll_suboption" id="yop-poll-view-total-answers-div" style="{% if current_poll.view_total_answers != 'yes' %} display: none; {% endif %}">
246
+ <th> {{ __("Total Answers Label") }}: </th>
247
  <td>
248
  {{ input( current_poll.view_total_answers_label, 'yop-poll-view-total-answers-label', 'yop_poll_options[view_total_answers_label]') }}
249
  </td>
250
  </tr>
251
  <tr>
252
+ <th> {{ __("Message After Vote") }} </th>
253
  <td>
254
  {{ input( current_poll.message_after_vote, 'yop-poll-message-after-vote', 'yop_poll_options[message_after_vote]') }}
255
  </td>
256
  </tr>
257
  <tr>
258
+ <th> {{ __("Vote Permissions") }} </th>
259
  <td>
260
+ {{ label( __("Guest Only"), 'yop-poll-vote-permisions-quest-only', 'yop_poll_options[vote_permisions]', "guest-only", "radio", "", current_poll.vote_permisions, "guest-only" ) }}
261
+ {{ label( __("Registered Only"), 'yop-poll-vote-permisions-registered-only', 'yop_poll_options[vote_permisions]', "registered-only", "radio", "", current_poll.vote_permisions, "registered-only" ) }}
262
+ {{ label( __("Guest & Registered Users"), 'yop-poll-vote-permisions-guest-registered','yop_poll_options[vote_permisions]', "guest-registered","radio", "", current_poll.vote_permisions, "guest-registered" ) }}
263
  </td>
264
  </tr>
265
  {% if current_poll.is_pro == true %}
266
  <tr class="yop-poll-vote-as-div" style="{% if current_poll.vote_permisions == 'guest-only' %} display: none; {% endif %}">
267
+ <th>{{ __("Vote as Facebook User") }} <br><small> {{ __("Will force users to login into Facebook")}}</small> </th>
268
  <td>
269
  <input type="radio" value="Yes" name="vote_with_facebook" disabled>
270
  <input type="radio" value="No" name="vote_with_facebook" disabled>
272
  </td>
273
  </tr>
274
  <tr class="yop-poll-vote-as-div yop_poll_suboption" id="yop-poll-vote-permisions-wordpress-div" style="{% if current_poll.vote_permisions_wordpress != 'yes' %} display: none; {% elseif current_poll.vote_permisions == 'guest-only' %} display: none; {% endif %}">
275
+ <th>{{ __("'Vote as Facebook User' Button Label") }}:</th>
276
  <td>
277
  {{ input( current_poll.vote_permisions_facebook_label, 'yop-poll-vote-permisions-facebook-label', 'yop_poll_options[vote_permisions_facebook_label]') }}
278
  </td>
279
  </tr>
280
  {% endif %}
281
  <tr class="yop-poll-vote-as-div" style="{% if current_poll.vote_permisions == 'guest-only' %} display: none; {% endif %}">
282
+ <th>{{ __("Vote as Wordpress User") }} <br><small> {{ __("Will force users to login")}}</small> </th>
283
  <td>
284
+ {{ label( __("Yes"), 'yop-poll-vote-permisions-wordpress-yes', 'yop_poll_options[vote_permisions_wordpress]', "yes", "radio", "", current_poll.vote_permisions_wordpress, "yes" ) }}
285
+ {{ label( __("No"), 'yop-poll-vote-permisions-wordpress-no', 'yop_poll_options[vote_permisions_wordpress]', "no", "radio", "", current_poll.vote_permisions_wordpress, "no" ) }}
286
  </td>
287
  </tr>
288
  <tr class="yop-poll-vote-as-div yop_poll_suboption" id="yop-poll-vote-permisions-wordpress-div" style="{% if current_poll.vote_permisions_wordpress != 'yes' %} display: none; {% elseif current_poll.vote_permisions == 'guest-only' %} display: none {% endif %}">
289
+ <th>{{ __("'Vote as Wordpress User' Button Label") }}:
290
  </th>
291
  <td>
292
  {{ input( current_poll.vote_permisions_wordpress_label, 'yop-poll-vote-permisions-wordpress-label', 'yop_poll_options[vote_permisions_wordpress_label]') }}
293
  </td>
294
  </tr>
295
  <tr class="yop-poll-vote-as-div" style="{% if current_poll.vote_permisions == 'guest-only' %} display: none; {% endif %}">
296
+ <th>{{ __("Vote as Anonymous User") }} <br><small>( {{ __("Logged users will be treated as anonymous") }} )</small>:
297
  </th>
298
  <td>
299
+ {{ label( __("Yes"), 'yop-poll-vote-permisions-anonymous-yes', 'yop_poll_options[vote_permisions_anonymous]', "yes", "radio", "", current_poll.vote_permisions_anonymous, "yes" ) }}
300
+ {{ label( __("No"), 'yop-poll-vote-permisions-anonymous-no', 'yop_poll_options[vote_permisions_anonymous]', "no", "radio", "", current_poll.vote_permisions_anonymous, "no" ) }}
301
  </td>
302
  </tr>
303
  <tr class="yop-poll-vote-as-div yop_poll_suboption" id="yop-poll-vote-permisions-anonymous-label-div" style="{% if current_poll.vote_permisions_anonymous != 'yes' %} display: none; {% elseif current_poll.vote_permisions == 'guest-only' %} display: none; {% endif %}">
304
+ <th> {{ __("'Vote as Anonymous User' Button Label") }} </th>
305
  <td>
306
  {{ input( current_poll.vote_permisions_anonymous_label, 'yop-poll-vote-permisions-anonymous-label', 'yop_poll_options[vote_permisions_anonymous_label]') }}
307
  </td>
308
  </tr>
309
  <tr>
310
+ <th> {{ __("Blocking Voters") }}: </th>
311
  <td>
312
+ {{ label( __("Don\'t Block"), 'yop-poll-blocking-voters-dont-block', 'yop_poll_options[blocking_voters]', "dont-block", "radio", "yop-poll-blocking-voters-hide-interval", current_poll.blocking_voters, "dont-block" ) }}
313
+ {{ label( __("By Cookie"), 'yop-poll-blocking-voters-cookie', 'yop_poll_options[blocking_voters]', "cookie", "radio", "yop-poll-blocking-voters-show-interval", current_poll.blocking_voters, "cookie" ) }}
314
+ {{ label( __("By IP"), 'yop-poll-blocking-voters-ip', 'yop_poll_options[blocking_voters]', "ip", "radio", "yop-poll-blocking-voters-show-interval", current_poll.blocking_voters, "ip" ) }}
315
+ {{ label( __("By Username"), 'yop-poll-blocking-voters-username', 'yop_poll_options[blocking_voters]', "username", "radio", "yop-poll-blocking-voters-show-interval", current_poll.blocking_voters, "username" ) }}
316
+ {{ label( __("By Cookie and Ip"), 'yop-poll-blocking-voters-cookie-ip', 'yop_poll_options[blocking_voters]', "cookie-ip", "radio", "yop-poll-blocking-voters-show-interval", current_poll.blocking_voters, "cookie-ip" ) }}
317
  </td>
318
  </tr>
319
  <tr class="yop_poll_suboption" id="yop-poll-blocking-voters-interval-div" style="{% if current_poll.blocking_voters == 'dont-block' %} display: none; {% endif %}">
328
  </td>
329
  </tr>
330
  <tr class="yop-poll-limit-number-of-votes-per-user-div">
331
+ <th> {{ __("Limit Number of Votes per User") }}: </th>
332
  <td>
333
+ {{ label( __("Yes"), 'yop-poll-limit-number-of-votes-per-user-yes', 'yop_poll_options[limit_number_of_votes_per_user]', "yes", "radio", "", current_poll.limit_number_of_votes_per_user, "yes" ) }}
334
+ {{ label( __("No"), 'yop-poll-limit-number-of-votes-per-user-no', 'yop_poll_options[limit_number_of_votes_per_user]', "no", "radio", "", current_poll.limit_number_of_votes_per_user, "no" ) }}
335
  </td>
336
  </tr>
337
  <tr class="yop-poll-limit-number-of-votes-per-user-divs yop_poll_suboption" id="yop-poll-number-of-votes-per-user-div" style="{% if current_poll.limit_number_of_votes_per_user != 'yes' %} display: none; {% endif %}">
338
+ <th> {{ __("Number of Votes per User") }}: </th>
339
  <td>
340
  {{ input( current_poll.number_of_votes_per_user, 'yop-poll-number-of-votes-per-user', 'yop_poll_options[number_of_votes_per_user]' )}}
341
  </td>
342
  </tr>
343
  <tr>
344
+ <th> {{ __("Percentages Decimals") }}: </th>
345
  <td>
346
  {{ input( current_poll.percentages_decimals, 'yop-poll-percentages-decimals', 'yop_poll_options[percentages_decimals]' )}}
347
  </td>
348
  </tr>
349
  <tr>
350
+ <th> {{ __("Use Default Loading Image") }}: </th>
351
  <td>
352
+ {{ label( __("Yes"), 'yop-poll-use-default-loading-image-yes', 'yop_poll_options[use_default_loading_image]', "yes", "radio", "", current_poll.use_default_loading_image, "yes" ) }}
353
+ {{ label( __("No"), 'yop-poll-use-default-loading-image-no', 'yop_poll_options[use_default_loading_image]', "no", "radio", "", current_poll.use_default_loading_image, "no" ) }}
354
  </td>
355
  </tr>
356
  <tr class="yop_poll_suboption" id="yop-poll-use-default-loading-image-div" style="{% if 'yes' == current_poll.use_default_loading_image %} display: none; {% endif %} ">
357
+ <th>{{ __("Loading Image Url") }}: </th>
358
  <td>
359
  {{ input( current_poll.loading_image_url, 'yop-poll-loading-image-url', 'yop_poll_options[loading_image_url]' ) }}
360
  </td>
361
  </tr>
362
  <tr>
363
+ <th> {{ __("Redirect After Vote") }} : </th>
364
  <td>
365
+ {{ label( __("Yes"), 'yop-poll-redirect-after-vote-yes', 'yop_poll_options[redirect_after_vote]', "yes", "radio", "", current_poll.redirect_after_vote, "yes" ) }}
366
+ {{ label( __("No"), 'yop-poll-redirect-after-vote-no', 'yop_poll_options[redirect_after_vote]', "no", "radio", "", current_poll.redirect_after_vote, "no" ) }}
367
  </td>
368
  </tr>
369
  <tr class="yop_poll_suboption" id="yop-poll-redirect-after-vote-url-div" style="{%if 'no' == current_poll.redirect_after_vote %} 'display: none; {% endif %}}">
370
+ <th> {{ __("Redirect After Vote URL") }} : </th>
371
  <td>
372
  {{ input ( current_poll.redirect_after_vote_url, 'yop-poll-redirect-after-vote-url', 'yop_poll_options[redirect_after_vote_url]' ) }}
373
  </td>
374
  </tr>
375
  <tr>
376
+ <th>{{ __("Display Archive Link") }}: </th>
377
  <td>
378
+ {{ label( __("Yes"), 'yop-poll-view-poll-archive-link-yes', 'yop_poll_options[view_poll_archive_link]', "yes", "radio", "", current_poll.view_poll_archive_link, "yes" ) }}
379
+ {{ label( __("No"), 'yop-poll-view-poll-archive-link-no', 'yop_poll_options[view_poll_archive_link]', "no", "radio", "", current_poll.view_poll_archive_link, "no" ) }}
380
  </td>
381
  </tr>
382
  <tr>
383
+ <th> {{ __("Auto Generate Poll Page") }}: </th>
384
  <td>
385
+ {{ label( __("Yes"), 'yop-poll-auto-generate-poll-page-yes', 'yop_poll_options[auto_generate_poll_page]', "yes", "radio", "", current_poll.auto_generate_poll_page, "yes" ) }}
386
+ {{ label( __("No"), 'yop-poll-auto-generate-poll-page-no', 'yop_poll_options[auto_generate_poll_page]', "no", "radio", "", current_poll.auto_generate_poll_page, "no" ) }}
387
  </td>
388
  </tr>
389
  <tr>
390
+ <th> {{ __("Use CAPTCHA") }}: </th>
391
  <td>
392
+ {{ label( __("Yes"), 'yop-poll-use-captcha-yes', 'yop_poll_options[use_captcha]', "yes", "radio", "", current_poll.use_captcha, "yes" ) }}
393
+ {{ label( __("No"), 'yop-poll-use-captcha-no', 'yop_poll_options[use_captcha]', "no", "radio", "", current_poll.use_captcha, "no" ) }}
394
  </td>
395
  </tr>
396
  <tr>
397
+ <th> {{ __("Send Email Notifications") }}: </th>
398
  <td>
399
+ {{ label( __("Yes"), 'yop-poll-send-email-notifications-yes', 'yop_poll_options[send_email_notifications]', "yes", "radio", "", current_poll.send_email_notifications, "yes" ) }}
400
+ {{ label( __("No"), 'yop-poll-send-email-notifications-no', 'yop_poll_options[send_email_notifications]', "no", "radio", "", current_poll.send_email_notifications, "no" ) }}
401
  </td>
402
  </tr>
403
  <tr>
404
+ <th> {{ __("Show Poll In Archive") }}: </th>
405
  <td>
406
+ {{ label( __("Yes"), 'yop-poll-show-poll-in-archive-yes', 'yop_poll_options[show_poll_in_archive]', "yes", "radio", "", current_poll.show_poll_in_archive, "yes" ) }}
407
+ {{ label( __("No"), 'yop-poll-show-poll-in-archive-no', 'yop_poll_options[show_poll_in_archive]', "no", "radio", "", current_poll.show_poll_in_archive, "no" ) }}
408
  </td>
409
  </tr>
410
  <tr class="yop_poll_suboption" id="yop-poll-show-poll-in-archive-div" style="{% if current_poll.show_poll_in_archive != 'yes' %} display: none; {% endif %}">
411
+ <th> {{ __("Poll Archive Order") }}: </th>
412
  <td>
413
  {{ input( current_poll.poll_archive_order, 'yop-poll-poll-archive-order', 'poll_archive_order' )}}
414
  </td>
421
 
422
  <!-- Start Results Options -->
423
  <div class="postbox stuffbox closed" id="3">
424
+ <div title='{{ __("Click to toggle") }}' class="handlediv"><br/></div>
425
  <h3 class="hndle" style="border-bottom: 1px solid #AAAAAA;">
426
+ <span>{{ __( "Results Options" ) }}</span>
427
  </h3>
428
  <div class="inside">
429
  <table width="100%" cellspacing="0" class="yop-poll-options-table links-table">
430
  <tbody>
431
  <tr>
432
+ <th>{{ __("Sort Results") }}:</th>
433
  <td>
434
+ {{ label( __("As Defined"), 'yop_poll_sorting_results_as_defined', 'yop_poll_options[sorting_results]', "as_defined", "radio", "", current_poll.sorting_results, "as_defined" ) }}
435
+ {{ label( __("Database Id"), 'yop_poll_sorting_results_database', 'yop_poll_options[sorting_results]', "database", "radio", "", current_poll.sorting_results, "database" ) }}
436
+ {{ label( __("Alphabetical Order"), 'yop_poll_sorting_results_alphabetical', 'yop_poll_options[sorting_results]', "alphabetical", "radio", "", current_poll.sorting_results, "alphabetical" ) }}
437
+ {{ label( __("by Number of Votes"), 'yop_poll_sorting_results_votes', 'yop_poll_options[sorting_results]', "votes", "radio", "", current_poll.sorting_results, "votes" ) }}
438
  </td>
439
  </tr>
440
  <tr>
441
+ <th>{{ __("Sort Results Rule") }}:</th>
442
  <td>
443
+ {{ label(__("Ascending"), 'yop_poll_sorting_results_asc', 'yop_poll_options[sorting_results_direction]', 'asc', 'radio', '', current_poll.sorting_results_direction, "asc" ) }}
444
+ {{ label(__("Descending"), 'yop_poll_sorting_results_desc', 'yop_poll_options[sorting_results_direction]', 'desc', 'radio', '', current_poll.sorting_results_direction, "desc") }}
445
  </td>
446
  </tr>
447
  <tr>
448
+ <th> {{ __("Poll Answer Result Votes Number Label") }}: </th>
449
  <td>
450
+ {{ __("Singular") }}
451
  {{ input( current_poll.singular_answer_result_votes_number_label, 'yop-poll-singular-answer-result-votes-number-label', 'yop_poll_options[singular_answer_result_votes_number_label]') }}
452
+ {{ __("Plural") }}
453
  {{ input( current_poll.plural_answer_result_votes_number_label, 'yop-poll-plural-answer-result-votes-number-label', 'yop_poll_options[plural_answer_result_votes_number_label]') }}
454
  </td>
455
  </tr>
456
  <tr>
457
+ <th>{{ __("Display Results") }}: </th>
458
  <td>
459
+ {{ label( __("Vertical"), 'yop-poll-display-results-vertical', 'yop_poll_options[display_results]', "vertical", "radio", "", current_poll.display_results, "vertical" ) }}
460
+ {{ label( __("Horizontal"), 'yop-poll-display-results-orizontal', 'yop_poll_options[display_results]', "orizontal", "radio", "", current_poll.display_results, "orizontal" ) }}
461
+ {{ label( __("Tabulated"), 'yop-poll-display-results-tabulated', 'yop_poll_options[display_results]', "tabulated", "radio", "", current_poll.display_results, "tabulated" ) }}
462
  </td>
463
  </tr>
464
  <tr class="yop_poll_suboption" id="yop-poll-display-results-tabulated-div" style="{% if 'tabulated' != current_poll.display_results %} display: none; {% endif %}">
465
+ <th> {{ __( "Columns" ) }}: </th>
466
  <td>
467
  {{ input( current_poll.display_results_tabulated_cols, 'yop-poll-display-results-tabulated-cols', 'yop_poll_options[display_results_tabulated_cols]') }}
468
  </td>
480
  </div><!-- postbox-container-2 -->
481
  </div>
482
  </div><!-- post-body -->
483
+ </div><!-- poststuff -->
484
  </form>
485
  {% endblock content %}
templates/polls_add_edit_advanced.html CHANGED
@@ -7,7 +7,7 @@
7
  <form method="post" name="yop_poll_edit_add_new_form" id="yop-poll-edit-add-new-form">
8
  <div class="" id="yop_poll_show_shortcode" style="display:none;text-align: center;padding: 12px;">
9
 
10
- <span> {{ __( 'Use this shortcode to display your poll' ) }}: <br><br>
11
 
12
  <input id="yop_poll_shortcode_input" type="text" value='' readonly="readonly">
13
 
@@ -16,7 +16,7 @@
16
  </div>
17
  {{ wp_nonce_field( 'yop-poll-add-edit-action', 'yop-poll-add-edit-name', false, false ) | raw }}
18
  {% if ( 'edit' == action_type ) %}
19
- <span> {{ __( 'Use this shortcode to display your poll' ) }}:
20
  <input style="text-align: center" id="yop_poll_shortcode" type="text" value='[yop_poll id="{{ current_poll.ID }}"]' readonly="readonly">
21
  </span>
22
  {% endif %}
@@ -27,7 +27,7 @@
27
  <div class="yop-poll-titlediv">
28
  <div class="yop-poll-titlewrap">
29
  {% if ( 'edit' != action_type ) %}
30
- <label for="yop-poll-title" class="yop-poll-title-prompt-text">{{ __( 'Enter Poll Title Here') }}</label>
31
  {% endif %}
32
 
33
  <input type="text" id="yop-poll-title" class="yop-poll-title" value="{{ current_poll.poll_title }}" size="30" name="poll_title" autofocus="true">
@@ -38,11 +38,11 @@
38
 
39
  <div class="postbox-container" id="postbox-container-1">
40
  <div class="postbox stuffbox">
41
- <div title="{{ __('Click to toggle') }}" class="handlediv">
42
  <br/>
43
  </div>
44
  <h3 class="hndle">
45
- <span>{{ __('Save') }}</span>
46
  </h3>
47
  <div class="inside">
48
  <div id="submitlink" class="submitbox">
@@ -50,7 +50,7 @@
50
  <div id="publishing-action">
51
  <input type="hidden" value="{{ current_poll.ID }}" name="poll_id"/>
52
  <input type="hidden" value="{{ action_type }}" name="action_type"/>
53
- <input tabindex="200" type="button" accesskey="p" class="button-primary" value="{{ __('Save') }}" id="yop-poll-edit-add-new-form-submit" onclick="save_poll()"/>
54
  </div>
55
  <div class="clear"></div>
56
  </div>
@@ -62,7 +62,7 @@
62
 
63
  <div class="postbox-container" id="postbox-container-2">
64
  <div class="icon32-yop-poll-question-section">&nbsp;</div>
65
- <h2 class="yop-poll-section-header">{{ __( 'Questions' ) }}:</h2>
66
  {% if action_type!='edit'%}
67
  {% set question = new_obj( 'question', '', { 'id': uniqid('q_') , 'poll_order' : 1} ) %}
68
  {% include 'polls_question_template.html' %}
7
  <form method="post" name="yop_poll_edit_add_new_form" id="yop-poll-edit-add-new-form">
8
  <div class="" id="yop_poll_show_shortcode" style="display:none;text-align: center;padding: 12px;">
9
 
10
+ <span> {{ __( "Use this shortcode to display your poll" ) }}: <br><br>
11
 
12
  <input id="yop_poll_shortcode_input" type="text" value='' readonly="readonly">
13
 
16
  </div>
17
  {{ wp_nonce_field( 'yop-poll-add-edit-action', 'yop-poll-add-edit-name', false, false ) | raw }}
18
  {% if ( 'edit' == action_type ) %}
19
+ <span> {{ __( "Use this shortcode to display your poll" ) }}:
20
  <input style="text-align: center" id="yop_poll_shortcode" type="text" value='[yop_poll id="{{ current_poll.ID }}"]' readonly="readonly">
21
  </span>
22
  {% endif %}
27
  <div class="yop-poll-titlediv">
28
  <div class="yop-poll-titlewrap">
29
  {% if ( 'edit' != action_type ) %}
30
+ <label for="yop-poll-title" class="yop-poll-title-prompt-text">{{ __( "Enter Poll Title Here") }}</label>
31
  {% endif %}
32
 
33
  <input type="text" id="yop-poll-title" class="yop-poll-title" value="{{ current_poll.poll_title }}" size="30" name="poll_title" autofocus="true">
38
 
39
  <div class="postbox-container" id="postbox-container-1">
40
  <div class="postbox stuffbox">
41
+ <div title='{{ __("Click to toggle") }}' class="handlediv">
42
  <br/>
43
  </div>
44
  <h3 class="hndle">
45
+ <span>{{ __("Save") }}</span>
46
  </h3>
47
  <div class="inside">
48
  <div id="submitlink" class="submitbox">
50
  <div id="publishing-action">
51
  <input type="hidden" value="{{ current_poll.ID }}" name="poll_id"/>
52
  <input type="hidden" value="{{ action_type }}" name="action_type"/>
53
+ <input tabindex="200" type="button" accesskey="p" class="button-primary" value='{{ __("Save") }}' id="yop-poll-edit-add-new-form-submit" onclick="save_poll()"/>
54
  </div>
55
  <div class="clear"></div>
56
  </div>
62
 
63
  <div class="postbox-container" id="postbox-container-2">
64
  <div class="icon32-yop-poll-question-section">&nbsp;</div>
65
+ <h2 class="yop-poll-section-header">{{ __( "Questions" ) }}:</h2>
66
  {% if action_type!='edit'%}
67
  {% set question = new_obj( 'question', '', { 'id': uniqid('q_') , 'poll_order' : 1} ) %}
68
  {% include 'polls_question_template.html' %}
templates/polls_add_edit_beginner.html CHANGED
@@ -79,7 +79,8 @@
79
 
80
  <div class="misc-pub-section">
81
 
82
- <input tabindex="200" type="button" class="button-primary" value="Preview"
 
83
 
84
  onclick="yop_poll_preview_add_edit()">
85
 
@@ -129,7 +130,7 @@
129
 
130
  <li><a tabindex="199" href="#step-3">{{ __( 'Poll Options' ) }}</a></li>
131
 
132
- <li><a tabindex="199" href="#step-4">{{ __( 'Result Options' ) }}</a></li>
133
 
134
  <li><a tabindex="199" href="#step-5">{{ __( 'Shortcode' ) }}</a></li>
135
 
@@ -199,7 +200,7 @@
199
  <body>
200
  <div id="loading" style="position:absolute; margin-left: 500px; text-align:justify;
201
  top:300px;"> <br> <br>
202
- <span style="position: static; float:left;margin-left: -15px;">Please wait...</span>
203
 
204
  </div>
205
 
79
 
80
  <div class="misc-pub-section">
81
 
82
+ <label for="yop-poll-preview-button-1" class="button-primary">{{__("Preview")}}</label>
83
+ <input tabindex="200" type="button" class="button-primary" value="Preview" id="yop-poll-preview-button-1" style="display: none"
84
 
85
  onclick="yop_poll_preview_add_edit()">
86
 
130
 
131
  <li><a tabindex="199" href="#step-3">{{ __( 'Poll Options' ) }}</a></li>
132
 
133
+ <li><a tabindex="199" href="#step-4">{{ __( "Result Options" ) }}</a></li>
134
 
135
  <li><a tabindex="199" href="#step-5">{{ __( 'Shortcode' ) }}</a></li>
136
 
200
  <body>
201
  <div id="loading" style="position:absolute; margin-left: 500px; text-align:justify;
202
  top:300px;"> <br> <br>
203
+ <span style="position: static; float:left;margin-left: -15px;">{{__("Please wait")}}...</span>
204
 
205
  </div>
206
 
templates/polls_add_edit_options.html CHANGED
@@ -6,7 +6,7 @@
6
  xmlns="http://www.w3.org/1999/html">
7
  <div title="{{ __('Click to toggle') }}" class="handlediv"><br/> </div>
8
  <h3 class="hndle" style="border-bottom: 1px solid #AAAAAA;">
9
- <span>{{ __('Poll Options') }}</span>
10
  </h3>
11
  <div class="inside">
12
  <table width="100%" cellspacing="0"
@@ -14,7 +14,7 @@
14
  <tbody>
15
  <tr>
16
  <th>
17
- {{__( 'Start Date' ) }}:
18
  </th>
19
  <td valign="top">
20
  {{ input(convert_date(current_poll.poll_start_date,date_format), 'yop-poll-start-date', 'poll_start_date', 'text', '', 'hasDatePicker' ) }}
@@ -22,149 +22,149 @@
22
  </tr>
23
  <tr>
24
  <th>
25
- {{__( 'End Date' ) }}:
26
  </th>
27
  <td valign="top">
28
  <label for="yop-poll-never-expire">
29
- <input type="checkbox" value="yes" name="poll_never_expire" id="yop-poll-never-expire" {% if convert_date(current_poll.poll_end_date , 'd-m-Y H:i:s') == convert_date( "01-01-2038 23:59:59", 'd-m-Y H:i:s') %}checked="checked"{% endif %} onclick="end_date_option()"> {{ __('No end date') }}
30
  </label>
31
  <input {% if convert_date(current_poll.poll_end_date , 'd-m-Y H:i:s') == convert_date( "01-01-2038 23:59:59", 'd-m-Y H:i:s') %}style="display:none;"{% endif %} type="text" name="poll_end_date" id="yop-poll-end-date-input" value="{{ convert_date(current_poll.poll_end_date ,date_format)}}" class='hasDatePicker' />
32
  </td>
33
  </tr>
34
  <tr>
35
- <th>{{__('Display Results')}}:</th>
36
  <td>
37
- {{ label( 'Before Vote', 'yop-poll-view-results-before-vote', 'yop_poll_options[view_results][]', "before", "checkbox", "yop-poll-view-results-uncheck-nc", current_poll.view_results, "before" ) }}
38
- {{ label( 'After Vote', 'yop-poll-view-results-after-vote', 'yop_poll_options[view_results][]', "after", "checkbox", "yop-poll-view-results-uncheck-nc", current_poll.view_results, "after" ) }}
39
- {{ label( 'After Poll End Date','yop-poll-view-results-after-poll-end-date','yop_poll_options[view_results][]', "after-poll-end-date", "checkbox", "yop-poll-view-results-uncheck-nc", current_poll.view_results, "after-poll-end-date" ) }}
40
- {{ label( 'Never', 'yop-poll-view-results-never', 'yop_poll_options[view_results][]', "never", "checkbox", "yop-poll-view-results-uncheck-n-all", current_poll.view_results, "never" ) }}
41
- {{ label( 'Custom Date', 'yop-poll-view-results-custom', 'yop_poll_options[view_results][]', "custom-date", "checkbox", "yop-poll-view-results-uncheck-c-all", current_poll.view_results, "custom-date" ) }}
42
  <div id="yop-poll-display-view-results-div"
43
  style="{% if current_poll.view_results != 'custom-date' %} display: none; {% endif %}">
44
  <label for="yop-poll-view-results-start-date">
45
- {{__('Results display date')}}
46
- <small>{{__('(the users will be able to view poll results starting with following date )')}}</small>:
47
  <input type="text" id="yop-poll-view-results-start-date" name="yop_poll_options[view_results_start_date]" value="{{ convert_date(current_poll.view_results_start_date,date_format) }}" class='hasDatePicker'>
48
  </label>
49
  </div>
50
  </td>
51
  </tr>
52
  <tr>
53
- <th> {{ __('Display Results Permissions')}} </th>
54
  <td>
55
- {{ label( 'Guest', 'yop-poll-view-results-permissions-guest', 'yop_poll_options[view_results_permissions][]', "guest", "checkbox", "", current_poll.view_results_permissions, "guest" ) }}
56
- {{ label( 'Registered', 'yop-poll-view-results-permissions-registered', 'yop_poll_options[view_results_permissions][]', "registered", "checkbox", "", current_poll.view_results_permissions, "registered" ) }}
57
  </td>
58
  </tr>
59
  <tr>
60
- <th> {{__( 'Results Display')}}: </th>
61
  <td>
62
- {{ label( 'Votes Number', 'yop-poll-view-results-votes-number', 'yop_poll_options[view_results_type]', "votes-number", "radio", "", current_poll.view_results_type, "votes-number" ) }}
63
- {{ label( 'Percentages', 'yop-poll-view-results-percentages', 'yop_poll_options[view_results_type]', "percentages", "radio", "", current_poll.view_results_type, "percentages" ) }}
64
- {{ label( 'Votes Number and Percentages', 'yop-poll-view-results-votes-number-and-percentages', 'yop_poll_options[view_results_type]', "votes-number-and-percentages", "radio", "", current_poll.view_results_type, "votes-number-and-percentages" ) }}
65
  </td>
66
  </tr>
67
  <tr>
68
- <th> {{__( 'Poll Answer Result Label')}}: </th>
69
  <td>
70
  {{ input(current_poll.answer_result_label, 'yop-poll-answer-result-label', 'yop_poll_options[answer_result_label]', 'text' ) }}
71
- <small><i> {{ __('Use %POLL-ANSWER-RESULT-PERCENTAGES% for showing answer percentages and %POLL-ANSWER-RESULT-VOTES% for showing answer number of votes' ) }}</i></small>
72
  </td>
73
  </tr>
74
  <tr>
75
- <th> {{ __('Vote Button Label') }}:</th>
76
  <td>
77
  {{ input( current_poll.vote_button_label, 'yop-poll-vote-button-label', 'yop_poll_options[vote_button_label]') }}
78
  </td>
79
  </tr>
80
  <tr>
81
- <th> {{ __('Display Results Link') }}: </th>
82
  <td>
83
- {{ label( 'Yes', 'yop-poll-view-results-link-yes', 'yop_poll_options[view_results_link]', "yes", "radio", "", current_poll.view_results_link, "yes" ) }}
84
- {{ label( 'No', 'yop-poll-view-results-link-no', 'yop_poll_options[view_results_link]', "no", "radio", "", current_poll.view_results_link, "no" ) }}
85
  </td>
86
  </tr>
87
  <tr>
88
- <th> {{ __('Display Back To Vote Link') }}: </th>
89
  <td>
90
- {{ label( 'Yes', 'yop-poll-view-back-to-vote-link-yes', 'yop_poll_options[view_back_to_vote_link]', "yes", "radio", "", current_poll.view_back_to_vote_link, "yes" ) }}
91
- {{ label( 'No', 'yop-poll-view-back-to-vote-link-no', 'yop_poll_options[view_back_to_vote_link]', "no", "radio", "", current_poll.view_back_to_vote_link, "no" ) }}
92
  </td>
93
  </tr>
94
  <tr>
95
- <th> {{ __('Display Total Votes') }}: </th>
96
  <td>
97
- {{ label( 'Yes', 'yop-poll-view-total-votes-yes', 'yop_poll_options[view_total_votes]', "yes", "radio", "", current_poll.view_total_votes, "yes" ) }}
98
- {{ label( 'No', 'yop-poll-view-total-votes-no', 'yop_poll_options[view_total_votes]', "no", "radio", "", current_poll.view_total_votes, "no" ) }}
99
  </td>
100
  </tr>
101
  <tr>
102
- <th> {{ __('Display Total Answers') }}: </th>
103
  <td>
104
- {{ label( 'Yes', 'yop-poll-view-total-answers-yes', 'yop_poll_options[view_total_answers]', "yes", "radio", "", current_poll.view_total_answers, "yes" ) }}
105
- {{ label( 'No', 'yop-poll-view-total-answers-no', 'yop_poll_options[view_total_answers]', "no", "radio", "", current_poll.view_total_answers, "no" ) }}
106
  </td>
107
  </tr>
108
  <tr>
109
- <th> {{ __('Vote Permissions') }} </th>
110
  <td>
111
- {{ label( 'Guest', 'yop-poll-vote-permisions-guest', 'yop_poll_options[vote_permisions][]', "guest", "checkbox", "", current_poll.vote_permisions, "guest" ) }}
112
- {{ label( 'Registered', 'yop-poll-vote-permisions-registered', 'yop_poll_options[vote_permisions][]', "registered", "checkbox", "", current_poll.vote_permisions, "registered" ) }}
113
  </td>
114
  </tr>
115
  <tr class="yop-poll-vote-as-div" style="{% if not in_array( 'registered', current_poll.vote_permisions ) %} display: none; {% endif %}">
116
- <th>{{ __("Vote as Facebook User") }} <br><small> {{ __('Will force users to login into Facebook')}}</small> </th>
117
  <td>
118
- {{ label( 'Yes', 'yop-poll-vote-permisions-facebook-integration-yes', 'yop_poll_options[vote_facebook_integration]', "yes", "radio", "yop_poll_tooltip-buy_pro yop_poll_tooltip-buy", current_poll.vote_permisions_facebook_integration, "yes", "", "") }}
119
- {{ label( 'No', 'yop-poll-vote-permisions-facebook-integration-yes', 'yop_poll_options[vote_facebook_integration]', "yes", "radio", "yop_poll_tooltip-buy_pro yop_poll_tooltip-buy", current_poll.vote_permisions_facebook_integration, "yes", "", "") }}
120
  <input type="radio" name="yop_poll_options[vote_facebook_integration]" style="display: none" checked>
121
  </td>
122
  </tr>
123
  <tr class="yop-poll-vote-as-div" style="{% if not in_array( 'registered', current_poll.vote_permisions ) %} display: none; {% endif %}">
124
- <th>{{ __("Vote as Google User") }} <br><small> {{ __('Will force users to login into Google+')}}</small> </th>
125
  <td>
126
- {{ label( 'Yes', 'yop-poll-vote-permisions-facebook-integration-yes', 'yop_poll_options[vote_facebook_integration]', "yes", "radio", "yop_poll_tooltip-buy_pro yop_poll_tooltip-buy", current_poll.vote_permisions_google_integration, "yes", "", "") }}
127
- {{ label( 'No', 'yop-poll-vote-permisions-facebook-integration-yes', 'yop_poll_options[vote_facebook_integration]', "yes", "radio", "yop_poll_tooltip-buy_pro yop_poll_tooltip-buy", current_poll.vote_permisions_google_integration, "yes", "", "") }}
128
  <input type="radio" name="yop_poll_options[vote_facebook_integration]" style="display: none" checked>
129
  </td>
130
  </tr>
131
  <tr class="yop-poll-vote-as-div" style="{% if not in_array( 'registered', current_poll.vote_permisions ) %} display: none; {% endif %}">
132
- <th>{{ __("Vote as Wordpress User") }} <br><small> {{ __('Will force users to login')}}</small> </th>
133
  <td>
134
- {{ label( 'Yes', 'yop-poll-vote-permisions-wordpress-yes', 'yop_poll_options[vote_permisions_wordpress]', "yes", "radio", "", current_poll.vote_permisions_wordpress, "yes" ) }}
135
- {{ label( 'No', 'yop-poll-vote-permisions-wordpress-no', 'yop_poll_options[vote_permisions_wordpress]', "no", "radio", "", current_poll.vote_permisions_wordpress, "no" ) }}
136
  </td>
137
  </tr>
138
  <tr class="yop_poll_suboption yop-poll-vote-as-div" id="yop-poll-vote-permisions-wordpress-div" >
139
  <th>
140
- {{ __('"Vote as Wordpress User" Button Label') }}:
141
  </th>
142
  <td>
143
  {{ input( current_poll.vote_permisions_wordpress_label, 'yop-poll-vote-permisions-wordpress-label', 'yop_poll_options[vote_permisions_wordpress_label]') }}
144
  </td>
145
  </tr>
146
  <tr class="yop-poll-vote-as-div" id="yop-poll-vote-anonymous" style="{% if not in_array( 'registered', current_poll.vote_permisions ) %} display: none; {% endif %}">
147
- <th>{{ __('Vote as Anonymous User') }}: <br><small>( {{ __('Logged users will be treated as anonymous') }} )</small>
148
  </th>
149
  <td>
150
- {{ label( 'Yes', 'yop-poll-vote-permisions-anonymous-yes', 'yop_poll_options[vote_permisions_anonymous]', "yes", "radio", "", current_poll.vote_permisions_anonymous, "yes" ) }}
151
- {{ label( 'No', 'yop-poll-vote-permisions-anonymous-no', 'yop_poll_options[vote_permisions_anonymous]', "no", "radio", "", current_poll.vote_permisions_anonymous, "no" ) }}
152
  </td>
153
  </tr>
154
  <tr class="yop_poll_suboption" id="yop-poll-vote-permisions-anonymous-label-div" >
155
- <th> {{ __('"Vote as Anonymous User" Button Label') }}</th>
156
  <td>
157
  {{ input( current_poll.vote_permisions_anonymous_label, 'yop-poll-vote-permisions-anonymous-label', 'yop_poll_options[vote_permisions_anonymous_label]') }}
158
  </td>
159
  </tr>
160
  <tr>
161
- <th> {{ __('Blocking Voters') }}: </th>
162
  <td>
163
- {{ label( 'Don\'t Block', 'yop-poll-blocking-voters-dont-block', 'yop_poll_options[blocking_voters][]', "dont-block", "checkbox", "yop-poll-blocking-voters-hide-interval", current_poll.blocking_voters, "dont-block" ) }}
164
- {{ label( 'By Cookie', 'yop-poll-blocking-voters-cookie', 'yop_poll_options[blocking_voters][]', "cookie", "checkbox", "yop-poll-blocking-voters-show-interval", current_poll.blocking_voters, "cookie" ) }}
165
- {{ label( 'By IP', 'yop-poll-blocking-voters-ip', 'yop_poll_options[blocking_voters][]', "ip", "checkbox", "yop-poll-blocking-voters-show-interval", current_poll.blocking_voters, "ip" ) }}
166
- {{ label( 'By User ID', 'yop-poll-blocking-voters-user_id', 'yop_poll_options[blocking_voters][]', "user_id", "checkbox", "yop-poll-blocking-voters-show-interval", current_poll.blocking_voters, "user_id" ) }}
167
- {{ label( 'By SuperCookie', 'yop-poll-blocking-voters-supercookie', 'yop_poll_options[blocking_voters][]', "supercookie", "checkbox", "yop-poll-blocking-voters-show-interval", current_poll.blocking_voters, "supercookie" ) }}
168
  </td>
169
  </tr>
170
 
@@ -182,44 +182,44 @@
182
  </td>
183
  </tr>
184
  <tr class="yop-poll-limit-number-of-votes-per-user-div">
185
- <th> {{ __('Limit Number of Votes per User') }}: </th>
186
  <td>
187
- {{ label( 'Yes', 'yop-poll-limit-number-of-votes-per-user-yes', 'yop_poll_options[limit_number_of_votes_per_user]', "yes", "radio", "", current_poll.limit_number_of_votes_per_user, "yes" ) }}
188
- {{ label( 'No', 'yop-poll-limit-number-of-votes-per-user-no', 'yop_poll_options[limit_number_of_votes_per_user]', "no", "radio", "", current_poll.limit_number_of_votes_per_user, "no" ) }}
189
  </td>
190
  </tr>
191
  <tr class="yop-poll-limit-number-of-votes-per-user-divs yop_poll_suboption"
192
  id="yop-poll-number-of-votes-per-user-div"
193
  style="{% if current_poll.limit_number_of_votes_per_user != 'yes' %} display: none; {% endif %}">
194
- <th> {{ __('Number of Votes per User') }}: </th>
195
  <td>
196
  {{ input( current_poll.number_of_votes_per_user, 'yop-poll-number-of-votes-per-user', 'yop_poll_options[number_of_votes_per_user]' )}}
197
  </td>
198
  </tr>
199
  <tr>
200
- <th> {{ __('Redirect After Vote') }} : </th>
201
  <td>
202
- {{ label( 'Yes', 'yop-poll-redirect-after-vote-yes', 'yop_poll_options[redirect_after_vote]', "yes", "radio", "", current_poll.redirect_after_vote, "yes" ) }}
203
- {{ label( 'No', 'yop-poll-redirect-after-vote-no', 'yop_poll_options[redirect_after_vote]', "no", "radio", "", current_poll.redirect_after_vote, "no" ) }}
204
  </td>
205
  </tr>
206
  <tr class="yop_poll_suboption" id="yop-poll-redirect-after-vote-url-div"
207
  style="{%if 'no' == current_poll.redirect_after_vote %} display: none; {% endif %}">
208
- <th> {{ __('Redirect After Vote URL') }} : </th>
209
  <td>
210
  {{ input ( current_poll.redirect_after_vote_url, 'yop-poll-redirect-after-vote-url', 'yop_poll_options[redirect_after_vote_url]' ) }}
211
  </td>
212
  </tr>
213
  <tr>
214
- <th>{{ __('Reset Poll Stats Automatically') }}:</th>
215
  <td>
216
- {{ label( 'Yes', 'yop-poll-schedule-reset-poll-stats-yes', 'yop_poll_options[schedule_reset_poll_stats]', "yes", "radio", "", current_poll.schedule_reset_poll_stats, "yes" ) }}
217
- {{ label( 'No', 'yop-poll-schedule-reset-poll-stats-no', 'yop_poll_options[schedule_reset_poll_stats]', "no", "radio", "", current_poll.schedule_reset_poll_stats, "no" ) }}
218
  </td>
219
  </tr>
220
  <tr class="yop-poll-schedule-reset-poll-stats-options-div yop_poll_suboption" style="{% if current_poll.schedule_reset_poll_stats == 'no' %} display: none;{% endif %}">
221
  <th>
222
- {{__('Reset Stats Date')}}:<br>
223
  <small>({{__('Current Server Time')}}: {{ convert_date(current_time( 'mysql' ),date_format)}}</small>
224
  </th>
225
  <td>
@@ -227,7 +227,7 @@
227
  </td>
228
  </tr>
229
  <tr class="yop-poll-schedule-reset-poll-stats-options-div yop_poll_suboption" style="{% if current_poll.schedule_reset_poll_stats == 'no' %} display: none;{% endif %}">
230
- <th>{{__('Reset Stats Every')}}:</th>
231
  <td>
232
  {{ input( current_poll.schedule_reset_poll_recurring_value, 'yop-poll-schedule-reset-poll-stats-recurring-value', 'yop_poll_options[schedule_reset_poll_recurring_value]', "text", 'width: 20%;' ) }}
233
  <select name="yop_poll_options[schedule_reset_poll_recurring_unit]">
@@ -237,50 +237,50 @@
237
  </td>
238
  </tr>
239
  <tr>
240
- <th>{{ __('Display Archive Link') }}: </th>
241
  <td>
242
- {{ label( 'Yes', 'yop-poll-view-poll-archive-link-yes', 'yop_poll_options[view_poll_archive_link]', "yes", "radio", "", current_poll.view_poll_archive_link, "yes" ) }}
243
- {{ label( 'No', 'yop-poll-view-poll-archive-link-no', 'yop_poll_options[view_poll_archive_link]', "no", "radio", "", current_poll.view_poll_archive_link, "no" ) }}
244
  </td>
245
  </tr>
246
  {% if current_poll.has_auto_generate_poll_page != 'yes' %}
247
  <tr>
248
- <th> {{ __('Auto Generate Poll Page') }}: </th>
249
  <td>
250
- {{ label( 'Yes', 'yop-poll-auto-generate-poll-page-yes', 'yop_poll_options[auto_generate_poll_page]', "yes", "radio", "", current_poll.auto_generate_poll_page, "yes" ) }}
251
- {{ label( 'No', 'yop-poll-auto-generate-poll-page-no', 'yop_poll_options[auto_generate_poll_page]', "no", "radio", "", current_poll.auto_generate_poll_page, "no" ) }}
252
  </td>
253
  </tr>
254
  {% else %}
255
  <tr>
256
- <th>{{ __('Poll Page Url') }}</th>
257
  <td>
258
  {{ input( current_poll.poll_page_url, 'yop-poll-poll-page-url', 'yop_poll_options[poll_page_url]' ) }}
259
  </td>
260
  </tr>
261
  {% endif %}
262
  <tr>
263
- <th> {{ __('Use CAPTCHA') }}: </th>
264
  <td>
265
- {{ label( 'Yes', 'yop-poll-use-captcha-yes', 'yop_poll_options[use_captcha]', "yes", "radio", "", current_poll.use_captcha, "yes" ) }}
266
- {{ label( 'No', 'yop-poll-use-captcha-no', 'yop_poll_options[use_captcha]', "no", "radio", "", current_poll.use_captcha, "no" ) }}
267
  </td>
268
  </tr>
269
  <tr>
270
- <th> {{ __('Send Email Notifications') }}: </th>
271
  <td>
272
- {{ label( 'Yes', 'yop-poll-send-email-notifications-yes', 'yop_poll_options[send_email_notifications]', "yes", "radio", "", current_poll.send_email_notifications, "yes" ) }}
273
- {{ label( 'No', 'yop-poll-send-email-notifications-no', 'yop_poll_options[send_email_notifications]', "no", "radio", "", current_poll.send_email_notifications, "no" ) }}
274
  <div class="notification" id="yop_poll_email_notification">
275
- {{ __('From Name') }}:
276
  {{ input( current_poll.email_notifications_from_name, 'yop-poll-email-notifications-from-name', 'yop_poll_options[email_notifications_from_name]' )}}
277
- {{ __('From Email') }}:
278
  {{ input( current_poll.email_notifications_from_email, 'yop-poll-email-notifications-from-email', 'yop_poll_options[email_notifications_from_email]' )}}
279
- {{ __('Recipients') }}: <br><small>({{ __('Use comma separated email addresses: email@xmail.com,email2@ymail.com') }})</small>
280
  {{ input( current_poll.email_notifications_recipients, 'yop-poll-email-notifications-recipients', 'yop_poll_options[email_notifications_recipients]' )}}
281
- {{ __('Subject') }}:
282
  {{ input( current_poll.email_notifications_subject, 'yop-poll-email-notifications-subject', 'yop_poll_options[email_notifications_subject]' )}}
283
- {{ __('Body') }}
284
  <textarea id="yop-poll-email-notifications-body" rows="10" name="yop_poll_options[email_notifications_body]">{{ stripslashes(current_poll.email_notifications_body )|e }}</textarea>
285
 
286
 
@@ -289,15 +289,15 @@
289
  </td>
290
  </tr>
291
  <tr>
292
- <th> {{ __('Show Poll In Archive') }}: </th>
293
  <td>
294
- {{ label( 'Yes', 'yop-poll-show-poll-in-archive-yes', 'yop_poll_options[show_poll_in_archive]', "yes", "radio", "", current_poll.show_poll_in_archive, "yes" ) }}
295
- {{ label( 'No', 'yop-poll-show-poll-in-archive-no', 'yop_poll_options[show_poll_in_archive]', "no", "radio", "", current_poll.show_poll_in_archive, "no" ) }}
296
  </td>
297
  </tr>
298
  <tr class="yop_poll_suboption" id="yop-poll-show-poll-in-archive-div"
299
  style="{% if current_poll.show_poll_in_archive != 'yes' %} display: none; {% endif %}">
300
- <th> {{ __('Poll Archive Order') }}: </th>
301
  <td>
302
  {{ input( current_poll.poll_archive_order, 'yop-poll-poll-archive-order', 'poll_archive_order' )}}
303
  </td>
6
  xmlns="http://www.w3.org/1999/html">
7
  <div title="{{ __('Click to toggle') }}" class="handlediv"><br/> </div>
8
  <h3 class="hndle" style="border-bottom: 1px solid #AAAAAA;">
9
+ <span>{{ __("Poll Options") }}</span>
10
  </h3>
11
  <div class="inside">
12
  <table width="100%" cellspacing="0"
14
  <tbody>
15
  <tr>
16
  <th>
17
+ {{__( "Start Date" ) }}:
18
  </th>
19
  <td valign="top">
20
  {{ input(convert_date(current_poll.poll_start_date,date_format), 'yop-poll-start-date', 'poll_start_date', 'text', '', 'hasDatePicker' ) }}
22
  </tr>
23
  <tr>
24
  <th>
25
+ {{__( "End Date" ) }}:
26
  </th>
27
  <td valign="top">
28
  <label for="yop-poll-never-expire">
29
+ <input type="checkbox" value="yes" name="poll_never_expire" id="yop-poll-never-expire" {% if convert_date(current_poll.poll_end_date , 'd-m-Y H:i:s') == convert_date( "01-01-2038 23:59:59", 'd-m-Y H:i:s') %}checked="checked"{% endif %} onclick="end_date_option()"> {{ __("No end date") }}
30
  </label>
31
  <input {% if convert_date(current_poll.poll_end_date , 'd-m-Y H:i:s') == convert_date( "01-01-2038 23:59:59", 'd-m-Y H:i:s') %}style="display:none;"{% endif %} type="text" name="poll_end_date" id="yop-poll-end-date-input" value="{{ convert_date(current_poll.poll_end_date ,date_format)}}" class='hasDatePicker' />
32
  </td>
33
  </tr>
34
  <tr>
35
+ <th>{{__("Display Results")}}:</th>
36
  <td>
37
+ {{ label( __("Before Vote"), 'yop-poll-view-results-before-vote', 'yop_poll_options[view_results][]', "before", "checkbox", "yop-poll-view-results-uncheck-nc", current_poll.view_results, "before" ) }}
38
+ {{ label( __("After Vote"), 'yop-poll-view-results-after-vote', 'yop_poll_options[view_results][]', "after", "checkbox", "yop-poll-view-results-uncheck-nc", current_poll.view_results, "after" ) }}
39
+ {{ label( __("After Poll End Date"),'yop-poll-view-results-after-poll-end-date','yop_poll_options[view_results][]', "after-poll-end-date", "checkbox", "yop-poll-view-results-uncheck-nc", current_poll.view_results, "after-poll-end-date" ) }}
40
+ {{ label( __("Never"), 'yop-poll-view-results-never', 'yop_poll_options[view_results][]', "never", "checkbox", "yop-poll-view-results-uncheck-n-all", current_poll.view_results, "never" ) }}
41
+ {{ label( __("Custom Date"), 'yop-poll-view-results-custom', 'yop_poll_options[view_results][]', "custom-date", "checkbox", "yop-poll-view-results-uncheck-c-all", current_poll.view_results, "custom-date" ) }}
42
  <div id="yop-poll-display-view-results-div"
43
  style="{% if current_poll.view_results != 'custom-date' %} display: none; {% endif %}">
44
  <label for="yop-poll-view-results-start-date">
45
+ {{__("Results display date")}}
46
+ <small>{{__("(the users will be able to view poll results starting with following date )")}}</small>:
47
  <input type="text" id="yop-poll-view-results-start-date" name="yop_poll_options[view_results_start_date]" value="{{ convert_date(current_poll.view_results_start_date,date_format) }}" class='hasDatePicker'>
48
  </label>
49
  </div>
50
  </td>
51
  </tr>
52
  <tr>
53
+ <th> {{ __("Display Results Permissions")}} </th>
54
  <td>
55
+ {{ label( __("Guest"), 'yop-poll-view-results-permissions-guest', 'yop_poll_options[view_results_permissions][]', "guest", "checkbox", "", current_poll.view_results_permissions, "guest" ) }}
56
+ {{ label( __("Registered"), 'yop-poll-view-results-permissions-registered', 'yop_poll_options[view_results_permissions][]', "registered", "checkbox", "", current_poll.view_results_permissions, "registered" ) }}
57
  </td>
58
  </tr>
59
  <tr>
60
+ <th> {{__( "Results Display")}}: </th>
61
  <td>
62
+ {{ label( __("Votes Number"), 'yop-poll-view-results-votes-number', 'yop_poll_options[view_results_type]', "votes-number", "radio", "", current_poll.view_results_type, "votes-number" ) }}
63
+ {{ label( __("Percentages"), 'yop-poll-view-results-percentages', 'yop_poll_options[view_results_type]', "percentages", "radio", "", current_poll.view_results_type, "percentages" ) }}
64
+ {{ label( __("Votes Number and Percentages"), 'yop-poll-view-results-votes-number-and-percentages', 'yop_poll_options[view_results_type]', "votes-number-and-percentages", "radio", "", current_poll.view_results_type, "votes-number-and-percentages" ) }}
65
  </td>
66
  </tr>
67
  <tr>
68
+ <th> {{__( "Poll Answer Result Label")}}: </th>
69
  <td>
70
  {{ input(current_poll.answer_result_label, 'yop-poll-answer-result-label', 'yop_poll_options[answer_result_label]', 'text' ) }}
71
+ <small><i> {{ __("Use %POLL-ANSWER-RESULT-PERCENTAGES% for showing answer percentages and %POLL-ANSWER-RESULT-VOTES% for showing answer number of votes" ) }}</i></small>
72
  </td>
73
  </tr>
74
  <tr>
75
+ <th> {{ __("Vote Button Label") }}:</th>
76
  <td>
77
  {{ input( current_poll.vote_button_label, 'yop-poll-vote-button-label', 'yop_poll_options[vote_button_label]') }}
78
  </td>
79
  </tr>
80
  <tr>
81
+ <th> {{ __("Display Results Link") }}: </th>
82
  <td>
83
+ {{ label( __("Yes"), 'yop-poll-view-results-link-yes', 'yop_poll_options[view_results_link]', "yes", "radio", "", current_poll.view_results_link, "yes" ) }}
84
+ {{ label( __("No"), 'yop-poll-view-results-link-no', 'yop_poll_options[view_results_link]', "no", "radio", "", current_poll.view_results_link, "no" ) }}
85
  </td>
86
  </tr>
87
  <tr>
88
+ <th> {{ __("Display Back To Vote Link") }}: </th>
89
  <td>
90
+ {{ label( __("Yes"), 'yop-poll-view-back-to-vote-link-yes', 'yop_poll_options[view_back_to_vote_link]', "yes", "radio", "", current_poll.view_back_to_vote_link, "yes" ) }}
91
+ {{ label( __("No"), 'yop-poll-view-back-to-vote-link-no', 'yop_poll_options[view_back_to_vote_link]', "no", "radio", "", current_poll.view_back_to_vote_link, "no" ) }}
92
  </td>
93
  </tr>
94
  <tr>
95
+ <th> {{ __("Display Total Votes") }}: </th>
96
  <td>
97
+ {{ label( __("Yes"), 'yop-poll-view-total-votes-yes', 'yop_poll_options[view_total_votes]', "yes", "radio", "", current_poll.view_total_votes, "yes" ) }}
98
+ {{ label( __("No"), 'yop-poll-view-total-votes-no', 'yop_poll_options[view_total_votes]', "no", "radio", "", current_poll.view_total_votes, "no" ) }}
99
  </td>
100
  </tr>
101
  <tr>
102
+ <th> {{ __("Display Total Answers") }}: </th>
103
  <td>
104
+ {{ label( __("Yes"), 'yop-poll-view-total-answers-yes', 'yop_poll_options[view_total_answers]', "yes", "radio", "", current_poll.view_total_answers, "yes" ) }}
105
+ {{ label( __("No"), 'yop-poll-view-total-answers-no', 'yop_poll_options[view_total_answers]', "no", "radio", "", current_poll.view_total_answers, "no" ) }}
106
  </td>
107
  </tr>
108
  <tr>
109
+ <th> {{ __("Vote Permissions") }} </th>
110
  <td>
111
+ {{ label( __("Guest"), 'yop-poll-vote-permisions-guest', 'yop_poll_options[vote_permisions][]', "guest", "checkbox", "", current_poll.vote_permisions, "guest" ) }}
112
+ {{ label( __("Registered"), 'yop-poll-vote-permisions-registered', 'yop_poll_options[vote_permisions][]', "registered", "checkbox", "", current_poll.vote_permisions, "registered" ) }}
113
  </td>
114
  </tr>
115
  <tr class="yop-poll-vote-as-div" style="{% if not in_array( 'registered', current_poll.vote_permisions ) %} display: none; {% endif %}">
116
+ <th>{{ __("Vote as Facebook User") }} <br><small> {{ __("Will force users to login into Facebook")}}</small> </th>
117
  <td>
118
+ {{ label( __("Yes"), 'yop-poll-vote-permisions-facebook-integration-yes', 'yop_poll_options[vote_facebook_integration]', "yes", "radio", "yop_poll_tooltip-buy_pro yop_poll_tooltip-buy", current_poll.vote_permisions_facebook_integration, "yes", "", "") }}
119
+ {{ label( __("No"), 'yop-poll-vote-permisions-facebook-integration-yes', 'yop_poll_options[vote_facebook_integration]', "yes", "radio", "yop_poll_tooltip-buy_pro yop_poll_tooltip-buy", current_poll.vote_permisions_facebook_integration, "yes", "", "") }}
120
  <input type="radio" name="yop_poll_options[vote_facebook_integration]" style="display: none" checked>
121
  </td>
122
  </tr>
123
  <tr class="yop-poll-vote-as-div" style="{% if not in_array( 'registered', current_poll.vote_permisions ) %} display: none; {% endif %}">
124
+ <th>{{ __("Vote as Google User") }} <br><small> {{ __("Will force users to login into Google+")}}</small> </th>
125
  <td>
126
+ {{ label( __("Yes"), 'yop-poll-vote-permisions-facebook-integration-yes', 'yop_poll_options[vote_facebook_integration]', "yes", "radio", "yop_poll_tooltip-buy_pro yop_poll_tooltip-buy", current_poll.vote_permisions_google_integration, "yes", "", "") }}
127
+ {{ label( __("No"), 'yop-poll-vote-permisions-facebook-integration-yes', 'yop_poll_options[vote_facebook_integration]', "yes", "radio", "yop_poll_tooltip-buy_pro yop_poll_tooltip-buy", current_poll.vote_permisions_google_integration, "yes", "", "") }}
128
  <input type="radio" name="yop_poll_options[vote_facebook_integration]" style="display: none" checked>
129
  </td>
130
  </tr>
131
  <tr class="yop-poll-vote-as-div" style="{% if not in_array( 'registered', current_poll.vote_permisions ) %} display: none; {% endif %}">
132
+ <th>{{ __("Vote as Wordpress User") }} <br><small> {{ __("Will force users to login")}}</small> </th>
133
  <td>
134
+ {{ label( __("Yes"), 'yop-poll-vote-permisions-wordpress-yes', 'yop_poll_options[vote_permisions_wordpress]', "yes", "radio", "", current_poll.vote_permisions_wordpress, "yes" ) }}
135
+ {{ label( __("No"), 'yop-poll-vote-permisions-wordpress-no', 'yop_poll_options[vote_permisions_wordpress]', "no", "radio", "", current_poll.vote_permisions_wordpress, "no" ) }}
136
  </td>
137
  </tr>
138
  <tr class="yop_poll_suboption yop-poll-vote-as-div" id="yop-poll-vote-permisions-wordpress-div" >
139
  <th>
140
+ {{ __("'Vote as Wordpress User' Button Label") }}:
141
  </th>
142
  <td>
143
  {{ input( current_poll.vote_permisions_wordpress_label, 'yop-poll-vote-permisions-wordpress-label', 'yop_poll_options[vote_permisions_wordpress_label]') }}
144
  </td>
145
  </tr>
146
  <tr class="yop-poll-vote-as-div" id="yop-poll-vote-anonymous" style="{% if not in_array( 'registered', current_poll.vote_permisions ) %} display: none; {% endif %}">
147
+ <th>{{ __("Vote as Anonymous User") }}: <br><small>( {{ __("Logged users will be treated as anonymous") }} )</small>
148
  </th>
149
  <td>
150
+ {{ label( __("Yes"), 'yop-poll-vote-permisions-anonymous-yes', 'yop_poll_options[vote_permisions_anonymous]', "yes", "radio", "", current_poll.vote_permisions_anonymous, "yes" ) }}
151
+ {{ label( __("No"), 'yop-poll-vote-permisions-anonymous-no', 'yop_poll_options[vote_permisions_anonymous]', "no", "radio", "", current_poll.vote_permisions_anonymous, "no" ) }}
152
  </td>
153
  </tr>
154
  <tr class="yop_poll_suboption" id="yop-poll-vote-permisions-anonymous-label-div" >
155
+ <th> {{ __("'Vote as Anonymous User' Button Label") }}</th>
156
  <td>
157
  {{ input( current_poll.vote_permisions_anonymous_label, 'yop-poll-vote-permisions-anonymous-label', 'yop_poll_options[vote_permisions_anonymous_label]') }}
158
  </td>
159
  </tr>
160
  <tr>
161
+ <th> {{ __("Blocking Voters") }}: </th>
162
  <td>
163
+ {{ label( __("Don\'t Block"), 'yop-poll-blocking-voters-dont-block', 'yop_poll_options[blocking_voters][]', "dont-block", "checkbox", "yop-poll-blocking-voters-hide-interval", current_poll.blocking_voters, "dont-block" ) }}
164
+ {{ label( __("By Cookie"), 'yop-poll-blocking-voters-cookie', 'yop_poll_options[blocking_voters][]', "cookie", "checkbox", "yop-poll-blocking-voters-show-interval", current_poll.blocking_voters, "cookie" ) }}
165
+ {{ label( __("By IP"), 'yop-poll-blocking-voters-ip', 'yop_poll_options[blocking_voters][]', "ip", "checkbox", "yop-poll-blocking-voters-show-interval", current_poll.blocking_voters, "ip" ) }}
166
+ {{ label( __("By User ID"), 'yop-poll-blocking-voters-user_id', 'yop_poll_options[blocking_voters][]', "user_id", "checkbox", "yop-poll-blocking-voters-show-interval", current_poll.blocking_voters, "user_id" ) }}
167
+ {{ label( __("By SuperCookie"), 'yop-poll-blocking-voters-supercookie', 'yop_poll_options[blocking_voters][]', "supercookie", "checkbox", "yop-poll-blocking-voters-show-interval", current_poll.blocking_voters, "supercookie" ) }}
168
  </td>
169
  </tr>
170
 
182
  </td>
183
  </tr>
184
  <tr class="yop-poll-limit-number-of-votes-per-user-div">
185
+ <th> {{ __("Limit Number of Votes per User") }}: </th>
186
  <td>
187
+ {{ label( __("Yes"), 'yop-poll-limit-number-of-votes-per-user-yes', 'yop_poll_options[limit_number_of_votes_per_user]', "yes", "radio", "", current_poll.limit_number_of_votes_per_user, "yes" ) }}
188
+ {{ label( __("No"), 'yop-poll-limit-number-of-votes-per-user-no', 'yop_poll_options[limit_number_of_votes_per_user]', "no", "radio", "", current_poll.limit_number_of_votes_per_user, "no" ) }}
189
  </td>
190
  </tr>
191
  <tr class="yop-poll-limit-number-of-votes-per-user-divs yop_poll_suboption"
192
  id="yop-poll-number-of-votes-per-user-div"
193
  style="{% if current_poll.limit_number_of_votes_per_user != 'yes' %} display: none; {% endif %}">
194
+ <th> {{ __("Number of Votes per User") }}: </th>
195
  <td>
196
  {{ input( current_poll.number_of_votes_per_user, 'yop-poll-number-of-votes-per-user', 'yop_poll_options[number_of_votes_per_user]' )}}
197
  </td>
198
  </tr>
199
  <tr>
200
+ <th> {{ __("Redirect After Vote") }} : </th>
201
  <td>
202
+ {{ label( __("Yes"), 'yop-poll-redirect-after-vote-yes', 'yop_poll_options[redirect_after_vote]', "yes", "radio", "", current_poll.redirect_after_vote, "yes" ) }}
203
+ {{ label( __("No"), 'yop-poll-redirect-after-vote-no', 'yop_poll_options[redirect_after_vote]', "no", "radio", "", current_poll.redirect_after_vote, "no" ) }}
204
  </td>
205
  </tr>
206
  <tr class="yop_poll_suboption" id="yop-poll-redirect-after-vote-url-div"
207
  style="{%if 'no' == current_poll.redirect_after_vote %} display: none; {% endif %}">
208
+ <th> {{ __("Redirect After Vote URL") }} : </th>
209
  <td>
210
  {{ input ( current_poll.redirect_after_vote_url, 'yop-poll-redirect-after-vote-url', 'yop_poll_options[redirect_after_vote_url]' ) }}
211
  </td>
212
  </tr>
213
  <tr>
214
+ <th>{{ __("Reset Poll Stats Automatically") }}:</th>
215
  <td>
216
+ {{ label( __("Yes"), 'yop-poll-schedule-reset-poll-stats-yes', 'yop_poll_options[schedule_reset_poll_stats]', "yes", "radio", "", current_poll.schedule_reset_poll_stats, "yes" ) }}
217
+ {{ label( __("No"), 'yop-poll-schedule-reset-poll-stats-no', 'yop_poll_options[schedule_reset_poll_stats]', "no", "radio", "", current_poll.schedule_reset_poll_stats, "no" ) }}
218
  </td>
219
  </tr>
220
  <tr class="yop-poll-schedule-reset-poll-stats-options-div yop_poll_suboption" style="{% if current_poll.schedule_reset_poll_stats == 'no' %} display: none;{% endif %}">
221
  <th>
222
+ {{__("Reset Stats Date")}}:<br>
223
  <small>({{__('Current Server Time')}}: {{ convert_date(current_time( 'mysql' ),date_format)}}</small>
224
  </th>
225
  <td>
227
  </td>
228
  </tr>
229
  <tr class="yop-poll-schedule-reset-poll-stats-options-div yop_poll_suboption" style="{% if current_poll.schedule_reset_poll_stats == 'no' %} display: none;{% endif %}">
230
+ <th>{{__("Reset Stats Every")}}:</th>
231
  <td>
232
  {{ input( current_poll.schedule_reset_poll_recurring_value, 'yop-poll-schedule-reset-poll-stats-recurring-value', 'yop_poll_options[schedule_reset_poll_recurring_value]', "text", 'width: 20%;' ) }}
233
  <select name="yop_poll_options[schedule_reset_poll_recurring_unit]">
237
  </td>
238
  </tr>
239
  <tr>
240
+ <th>{{ __("Display Archive Link") }}: </th>
241
  <td>
242
+ {{ label( __("Yes"), 'yop-poll-view-poll-archive-link-yes', 'yop_poll_options[view_poll_archive_link]', "yes", "radio", "", current_poll.view_poll_archive_link, "yes" ) }}
243
+ {{ label( __("No"), 'yop-poll-view-poll-archive-link-no', 'yop_poll_options[view_poll_archive_link]', "no", "radio", "", current_poll.view_poll_archive_link, "no" ) }}
244
  </td>
245
  </tr>
246
  {% if current_poll.has_auto_generate_poll_page != 'yes' %}
247
  <tr>
248
+ <th> {{ __("Auto Generate Poll Page") }}: </th>
249
  <td>
250
+ {{ label( __("Yes"), 'yop-poll-auto-generate-poll-page-yes', 'yop_poll_options[auto_generate_poll_page]', "yes", "radio", "", current_poll.auto_generate_poll_page, "yes" ) }}
251
+ {{ label( __("No"), 'yop-poll-auto-generate-poll-page-no', 'yop_poll_options[auto_generate_poll_page]', "no", "radio", "", current_poll.auto_generate_poll_page, "no" ) }}
252
  </td>
253
  </tr>
254
  {% else %}
255
  <tr>
256
+ <th>{{ __("Poll Page Url") }}</th>
257
  <td>
258
  {{ input( current_poll.poll_page_url, 'yop-poll-poll-page-url', 'yop_poll_options[poll_page_url]' ) }}
259
  </td>
260
  </tr>
261
  {% endif %}
262
  <tr>
263
+ <th> {{ __("Use CAPTCHA") }}: </th>
264
  <td>
265
+ {{ label( __("Yes"), 'yop-poll-use-captcha-yes', 'yop_poll_options[use_captcha]', "yes", "radio", "", current_poll.use_captcha, "yes" ) }}
266
+ {{ label( __("No"), 'yop-poll-use-captcha-no', 'yop_poll_options[use_captcha]', "no", "radio", "", current_poll.use_captcha, "no" ) }}
267
  </td>
268
  </tr>
269
  <tr>
270
+ <th> {{ __("Send Email Notifications") }}: </th>
271
  <td>
272
+ {{ label( __("Yes"), 'yop-poll-send-email-notifications-yes', 'yop_poll_options[send_email_notifications]', "yes", "radio", "", current_poll.send_email_notifications, "yes" ) }}
273
+ {{ label( __("No"), 'yop-poll-send-email-notifications-no', 'yop_poll_options[send_email_notifications]', "no", "radio", "", current_poll.send_email_notifications, "no" ) }}
274
  <div class="notification" id="yop_poll_email_notification">
275
+ {{ __("From Name") }}:
276
  {{ input( current_poll.email_notifications_from_name, 'yop-poll-email-notifications-from-name', 'yop_poll_options[email_notifications_from_name]' )}}
277
+ {{ __("From Email") }}:
278
  {{ input( current_poll.email_notifications_from_email, 'yop-poll-email-notifications-from-email', 'yop_poll_options[email_notifications_from_email]' )}}
279
+ {{ __("Recipients") }}: <br><small>({{ __('Use comma separated email addresses: email@xmail.com,email2@ymail.com') }})</small>
280
  {{ input( current_poll.email_notifications_recipients, 'yop-poll-email-notifications-recipients', 'yop_poll_options[email_notifications_recipients]' )}}
281
+ {{ __("Subject") }}:
282
  {{ input( current_poll.email_notifications_subject, 'yop-poll-email-notifications-subject', 'yop_poll_options[email_notifications_subject]' )}}
283
+ {{ __("Body") }}
284
  <textarea id="yop-poll-email-notifications-body" rows="10" name="yop_poll_options[email_notifications_body]">{{ stripslashes(current_poll.email_notifications_body )|e }}</textarea>
285
 
286
 
289
  </td>
290
  </tr>
291
  <tr>
292
+ <th> {{ __("Show Poll In Archive") }}: </th>
293
  <td>
294
+ {{ label( __("Yes"), 'yop-poll-show-poll-in-archive-yes', 'yop_poll_options[show_poll_in_archive]', "yes", "radio", "", current_poll.show_poll_in_archive, "yes" ) }}
295
+ {{ label( __("No"), 'yop-poll-show-poll-in-archive-no', 'yop_poll_options[show_poll_in_archive]', "no", "radio", "", current_poll.show_poll_in_archive, "no" ) }}
296
  </td>
297
  </tr>
298
  <tr class="yop_poll_suboption" id="yop-poll-show-poll-in-archive-div"
299
  style="{% if current_poll.show_poll_in_archive != 'yes' %} display: none; {% endif %}">
300
+ <th> {{ __("Poll Archive Order") }}: </th>
301
  <td>
302
  {{ input( current_poll.poll_archive_order, 'yop-poll-poll-archive-order', 'poll_archive_order' )}}
303
  </td>
templates/polls_add_edit_questions.html CHANGED
@@ -14,6 +14,9 @@
14
  </div>
15
  <div id = "publishing-action">
16
  <span class = "spinner"></span>
17
- <input style="opacity: 0.5" type="button" value="Add Text Question" class="yop_poll_tooltip-buy_pro button-primary" onclick="return false" id="add_new_text_question2">
18
- <input style="opacity: 0.5" type="button" value="Add Media Question" class="yop_poll_tooltip-buy_pro button-primary" onclick="return false" id="add_new_media_question2">
 
 
 
19
  </div>
14
  </div>
15
  <div id = "publishing-action">
16
  <span class = "spinner"></span>
17
+ <label for="add_new_text_question2" class="yop_poll_tooltip-buy_pro button-primary" style="opacity: 0.5;"> {{__("Add Text Question")}}</label>
18
+ <input style="opacity: 0.5; display:none" type="button" value="Add Text Question" class="yop_poll_tooltip-buy_pro button-primary" onclick="return false" id="add_new_text_question2">
19
+
20
+ <label for="add_new_media_question2" class="yop_poll_tooltip-buy_pro button-primary" style="opacity: 0.5; margin-right: 4px"> {{__("Add Media Question")}}</label>
21
+ <input style="opacity: 0.5; display: none" type="button" value="Add Media Question" class="yop_poll_tooltip-buy_pro button-primary" onclick="return false" id="add_new_media_question2">
22
  </div>
templates/polls_add_edit_results_options.html CHANGED
@@ -2,36 +2,55 @@
2
  {% from "form_macros.html" import yop_poll_input_field as input %}
3
  {% from "form_macros.html" import yop_poll_select as select %}
4
  <div class = "postbox stuffbox {% if ( 'advanced' == user_interface_type ) %} closed {% endif %}" id = "3">
5
- <div title = "{{ __('Click to toggle') }}" class = "handlediv"><br/></div>
6
  <h3 class = "hndle" style = "border-bottom: 1px solid #AAAAAA;">
7
- <span>{{ __( 'Results Options' ) }}</span>
8
  </h3>
9
  <div class = "inside">
10
  <table width = "100%" cellspacing = "0"
11
  class = "yop-poll-options-table links-table">
12
  <tbody>
13
  <tr>
14
- <th>{{ __('Sort Results') }}:</th>
15
  <td>
16
- {{ label( 'As Defined', 'yop_poll_sorting_results_as_defined', 'yop_poll_options[sorting_results]', "as_defined", "radio", "", current_poll.sorting_results, "as_defined" ) }}
17
- {{ label( 'Alphabetical Order', 'yop_poll_sorting_results_alphabetical', 'yop_poll_options[sorting_results]', "alphabetical", "radio", "", current_poll.sorting_results, "alphabetical" ) }}
18
- {{ label( 'by Number of Votes', 'yop_poll_sorting_results_votes', 'yop_poll_options[sorting_results]', "votes", "radio", "", current_poll.sorting_results, "votes" ) }}
19
  </td>
20
  </tr>
21
  <tr class = "yop_poll_suboption" id = "yop_poll_sort_results_rule-div"
22
  style = "{% if current_poll.sorting_results == 'as_defined' %} display: none; {% endif %}">
23
- <th>{{ __('Sort Results Rule') }}:</th>
24
  <td>
25
- {{ label('Ascending', 'yop_poll_sorting_results_asc', 'yop_poll_options[sorting_results_direction]', 'asc', 'radio', '', current_poll.sorting_results_direction, "asc" ) }}
26
- {{ label('Descending', 'yop_poll_sorting_results_desc', 'yop_poll_options[sorting_results_direction]', 'desc', 'radio', '', current_poll.sorting_results_direction, "desc") }}
27
  </td>
28
  </tr>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
29
  <tr>
30
- <th>{{ __('Result Bar Style') }}: </th>
31
  <td></td>
32
  </tr>
33
  <tr class="yop_poll_suboption">
34
- <th><label for="yop-poll-bar-background" >{{ __('Background Color') }}:</label></th>
35
  <td>#<input class="yop-small-input hascolorpicker"
36
  id="yop-poll-bar-background"
37
  value="{{ current_poll.bar_background }}"
@@ -41,7 +60,7 @@
41
  </td>
42
  </tr>
43
  <tr class="yop_poll_suboption">
44
- <th><label for="yop-poll-bar-height">{{ __('Height') }}:</label></th>
45
  <td>&nbsp;
46
  <input class="yop-small-input" id="yop-poll-bar-height"
47
  value="{{current_poll.bar_height }}"
@@ -51,7 +70,7 @@
51
  </td>
52
  </tr>
53
  <tr class="yop_poll_suboption">
54
- <th><label for="yop-poll-bar-border-color">{{ __('Border Color') }}: </label></th>
55
  <td>#<input class="yop-small-input hascolorpicker"
56
  id="yop-poll-bar-border-color"
57
  value="{{ current_poll.bar_border_color }}"
@@ -61,7 +80,7 @@
61
  </td>
62
  </tr>
63
  <tr class="yop_poll_suboption">
64
- <th><label for="yop-poll-bar-border-width">{{ __('Border Width') }}:</label></th>
65
  <td>&nbsp;
66
  <input class="yop-small-input"
67
  id="yop-poll-bar-border-width"
@@ -72,19 +91,19 @@
72
  </td>
73
  </tr>
74
  <tr class="yop_poll_suboption">
75
- <th><label for="yop-poll-bar-border-style">{{ __('Border Style') }}:</label></th>
76
  <td>&nbsp;
77
  <select id="yop-poll-bar-border-style"
78
  onchange="yop_poll_update_bar_style('#yop-poll-bar-preview', 'border-style', this.value)"
79
  name="yop_poll_options[bar_border_style]">
80
- <option value="solid" {{ selected(current_poll.bar_border_style, 'solid') }} >Solid </option>
81
- <option value="dashed" {{ selected(current_poll.bar_border_style, 'dashed') }} >Dashed</option>
82
- <option value="dotted" {{ selected(current_poll.bar_border_style, 'dotted') }} >Dotted</option>
83
  </select>
84
  </td>
85
  </tr>
86
  <tr class="yop_poll_suboption">
87
- <th><label>{{ __('Bar Preview') }}</label></th>
88
  <td>&nbsp;&nbsp;
89
  <div id="yop-poll-bar-preview"
90
  style="
2
  {% from "form_macros.html" import yop_poll_input_field as input %}
3
  {% from "form_macros.html" import yop_poll_select as select %}
4
  <div class = "postbox stuffbox {% if ( 'advanced' == user_interface_type ) %} closed {% endif %}" id = "3">
5
+ <div title = '{{ __("Click to toggle") }}' class = "handlediv"><br/></div>
6
  <h3 class = "hndle" style = "border-bottom: 1px solid #AAAAAA;">
7
+ <span>{{ __( "Results Options" ) }}</span>
8
  </h3>
9
  <div class = "inside">
10
  <table width = "100%" cellspacing = "0"
11
  class = "yop-poll-options-table links-table">
12
  <tbody>
13
  <tr>
14
+ <th>{{ __("Sort Results") }}:</th>
15
  <td>
16
+ {{ label( __("As Defined"), 'yop_poll_sorting_results_as_defined', 'yop_poll_options[sorting_results]', "as_defined", "radio", "", current_poll.sorting_results, "as_defined" ) }}
17
+ {{ label( __("Alphabetical Order"), 'yop_poll_sorting_results_alphabetical', 'yop_poll_options[sorting_results]', "alphabetical", "radio", "", current_poll.sorting_results, "alphabetical" ) }}
18
+ {{ label( __("by Number of Votes"), 'yop_poll_sorting_results_votes', 'yop_poll_options[sorting_results]', "votes", "radio", "", current_poll.sorting_results, "votes" ) }}
19
  </td>
20
  </tr>
21
  <tr class = "yop_poll_suboption" id = "yop_poll_sort_results_rule-div"
22
  style = "{% if current_poll.sorting_results == 'as_defined' %} display: none; {% endif %}">
23
+ <th>{{ __("Sort Results Rule") }}:</th>
24
  <td>
25
+ {{ label(__("Ascending"), 'yop_poll_sorting_results_asc', 'yop_poll_options[sorting_results_direction]', 'asc', 'radio', '', current_poll.sorting_results_direction, "asc" ) }}
26
+ {{ label(__("Descending"), 'yop_poll_sorting_results_desc', 'yop_poll_options[sorting_results_direction]', 'desc', 'radio', '', current_poll.sorting_results_direction, "desc") }}
27
  </td>
28
  </tr>
29
+ <tr >
30
+
31
+ <th>{{ __("Display Results as") }}: </th>
32
+
33
+ <td>
34
+
35
+ {{ label(__("Bar"), 'yop_poll_results_bar', 'yop_poll_options[show_results_in]', 'bar', 'radio', '', current_poll.show_results_in, "bar" ) }}
36
+
37
+ {{ label(__("Pie"), 'yop_poll_results_bar_pie', 'yop_poll_options[show_results_in]', 'bar', 'radio', 'yop_poll_tooltip-buy_pro yop_poll_tooltip-buy', "bar") }}
38
+
39
+ {{ label(__("Polar Area"), 'yop_poll_results_polar', 'yop_poll_options[show_results_in]', 'bar', 'radio', 'yop_poll_tooltip-buy_pro yop_poll_tooltip-buy', "bar" ) }}
40
+
41
+ {{ label(__("Doughnut"), 'yop_poll_results_doughnut', 'yop_poll_options[show_results_in]', 'bar', 'radio', 'yop_poll_tooltip-buy_pro yop_poll_tooltip-buy', "bar") }}
42
+
43
+ </td>
44
+
45
+ <td></td>
46
+
47
+ </tr>
48
  <tr>
49
+ <th>{{ __("Result Bar Style") }}: </th>
50
  <td></td>
51
  </tr>
52
  <tr class="yop_poll_suboption">
53
+ <th><label for="yop-poll-bar-background" >{{ __("Background Color") }}:</label></th>
54
  <td>#<input class="yop-small-input hascolorpicker"
55
  id="yop-poll-bar-background"
56
  value="{{ current_poll.bar_background }}"
60
  </td>
61
  </tr>
62
  <tr class="yop_poll_suboption">
63
+ <th><label for="yop-poll-bar-height">{{ __("Height") }}:</label></th>
64
  <td>&nbsp;
65
  <input class="yop-small-input" id="yop-poll-bar-height"
66
  value="{{current_poll.bar_height }}"
70
  </td>
71
  </tr>
72
  <tr class="yop_poll_suboption">
73
+ <th><label for="yop-poll-bar-border-color">{{ __("Border Color") }}: </label></th>
74
  <td>#<input class="yop-small-input hascolorpicker"
75
  id="yop-poll-bar-border-color"
76
  value="{{ current_poll.bar_border_color }}"
80
  </td>
81
  </tr>
82
  <tr class="yop_poll_suboption">
83
+ <th><label for="yop-poll-bar-border-width">{{ __("Border Width") }}:</label></th>
84
  <td>&nbsp;
85
  <input class="yop-small-input"
86
  id="yop-poll-bar-border-width"
91
  </td>
92
  </tr>
93
  <tr class="yop_poll_suboption">
94
+ <th><label for="yop-poll-bar-border-style">{{ __("Border Style") }}:</label></th>
95
  <td>&nbsp;
96
  <select id="yop-poll-bar-border-style"
97
  onchange="yop_poll_update_bar_style('#yop-poll-bar-preview', 'border-style', this.value)"
98
  name="yop_poll_options[bar_border_style]">
99
+ <option value="solid" {{ selected(current_poll.bar_border_style, 'solid') }} >{{__("Solid")}} </option>
100
+ <option value="dashed" {{ selected(current_poll.bar_border_style, 'dashed') }} >{{__("Dashed")}}</option>
101
+ <option value="dotted" {{ selected(current_poll.bar_border_style, 'dotted') }} >{{__("Dotted")}}</option>
102
  </select>
103
  </td>
104
  </tr>
105
  <tr class="yop_poll_suboption">
106
+ <th><label>{{ __("Bar Preview") }}</label></th>
107
  <td>&nbsp;&nbsp;
108
  <div id="yop-poll-bar-preview"
109
  style="
templates/polls_add_edit_template.html CHANGED
@@ -2,11 +2,11 @@
2
 
3
  <div class="postbox stuffbox">
4
 
5
- <div title="{{ __('Click to toggle') }}" class="handlediv"><br/> </div>
6
 
7
  <h3 class="hndle" style="border-bottom: 1px solid #AAAAAA;">
8
 
9
- <span>{{ __('Poll Templates') }}</span>
10
 
11
  </h3>
12
 
@@ -16,11 +16,11 @@
16
 
17
  <h4 class="hndle">
18
 
19
- <span>{{ __('Page Template') }}</span>
20
 
21
  </h4>
22
 
23
- <span>{{ __('Template Width') }}:</span><input type="text"
24
 
25
  id="yop-poll-template-width"
26
 
@@ -37,6 +37,29 @@
37
  <div class="yop-poll-page-slider" id="yop-poll-page-template-slider">
38
 
39
  <ul>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
40
  <li id="yop-poll-1"style="cursor: pointer;margin-left:2px;margin-right:2px"
41
 
42
  class='yop_poll_tooltip-buy_pro yop-poll-page-template-li {% if current_poll.template == template.id %} yop-poll-page-template-selected {% endif%}' >
@@ -148,29 +171,7 @@
148
 
149
 
150
 
151
- {% if count( templates ) > 0 %}
152
-
153
- {% set i = 0 %}
154
-
155
- {% for template in templates %}
156
-
157
- <li id="yop-poll-page-template-{{template.id}}" style="cursor: pointer;margin-left:4px;margin-right:4px"
158
-
159
- class='yop-poll-page-template-li {% if current_poll.template == template.id %} yop-poll-page-template-selected {% endif%}'
160
-
161
- onclick="yop_poll_select_template({{template.id}}, 'page')">
162
 
163
- <p>{{template.name|e}}</p> <br>
164
-
165
- {{template.preview|raw}}
166
-
167
- </li>
168
-
169
- {% set i = i+1 %}
170
-
171
- {% endfor %}
172
-
173
- {% endif %}
174
 
175
  </ul>
176
 
@@ -195,16 +196,16 @@
195
  <input type="checkbox" value="yes" name="yop_poll_options[use_the_same_template_for_widget]" id="yop-poll-use-same-template-for-widget"
196
  {% if ( current_poll.use_the_same_template_for_widget == 'yes' ) %}checked="checked"{% endif %}
197
  >
198
- {{__('Use the same template for widgets')}}!</label>
199
  <div id="widget-templates" style="{% if ( current_poll.use_the_same_template_for_widget == 'yes' ) %} display: none; {% endif %}"> <div class="yop-poll-slider-container">
200
  <input type="hidden" value=" {%if ( current_poll.use_the_same_template_for_widget == 'yes' ) %}0{%else%}1{% endif %}" id="slider_init">
201
  <h4 class="hndle">
202
 
203
- <span>{{ __('Widget Template') }}</span>
204
 
205
  </h4>
206
 
207
- <span>{{ __('Widget Template Width') }}:</span><input type="text"
208
 
209
  id="yop-poll-widget-template-width"
210
 
2
 
3
  <div class="postbox stuffbox">
4
 
5
+ <div title='{{ __("Click to toggle") }}' class="handlediv"><br/> </div>
6
 
7
  <h3 class="hndle" style="border-bottom: 1px solid #AAAAAA;">
8
 
9
+ <span>{{ __("Poll Templates") }}</span>
10
 
11
  </h3>
12
 
16
 
17
  <h4 class="hndle">
18
 
19
+ <span>{{ __("Page Template") }}</span>
20
 
21
  </h4>
22
 
23
+ <span>{{ __("Template Width") }}:</span><input type="text"
24
 
25
  id="yop-poll-template-width"
26
 
37
  <div class="yop-poll-page-slider" id="yop-poll-page-template-slider">
38
 
39
  <ul>
40
+ {% if count( templates ) > 0 %}
41
+
42
+ {% set i = 0 %}
43
+
44
+ {% for template in templates %}
45
+
46
+ <li id="yop-poll-page-template-{{template.id}}" style="cursor: pointer;margin-left:4px;margin-right:4px"
47
+
48
+ class='yop-poll-page-template-li {% if current_poll.template == template.id %} yop-poll-page-template-selected {% endif%}'
49
+
50
+ onclick="yop_poll_select_template({{template.id}}, 'page')">
51
+
52
+ <p>{{template.name|e}}</p> <br>
53
+
54
+ {{template.preview|raw}}
55
+
56
+ </li>
57
+
58
+ {% set i = i+1 %}
59
+
60
+ {% endfor %}
61
+
62
+ {% endif %}
63
  <li id="yop-poll-1"style="cursor: pointer;margin-left:2px;margin-right:2px"
64
 
65
  class='yop_poll_tooltip-buy_pro yop-poll-page-template-li {% if current_poll.template == template.id %} yop-poll-page-template-selected {% endif%}' >
171
 
172
 
173
 
 
 
 
 
 
 
 
 
 
 
 
174
 
 
 
 
 
 
 
 
 
 
 
 
175
 
176
  </ul>
177
 
196
  <input type="checkbox" value="yes" name="yop_poll_options[use_the_same_template_for_widget]" id="yop-poll-use-same-template-for-widget"
197
  {% if ( current_poll.use_the_same_template_for_widget == 'yes' ) %}checked="checked"{% endif %}
198
  >
199
+ {{__("Use the same template for widgets")}}!</label>
200
  <div id="widget-templates" style="{% if ( current_poll.use_the_same_template_for_widget == 'yes' ) %} display: none; {% endif %}"> <div class="yop-poll-slider-container">
201
  <input type="hidden" value=" {%if ( current_poll.use_the_same_template_for_widget == 'yes' ) %}0{%else%}1{% endif %}" id="slider_init">
202
  <h4 class="hndle">
203
 
204
+ <span>{{ __("Widget Template") }}</span>
205
 
206
  </h4>
207
 
208
+ <span>{{ __("Widget Template Width") }}:</span><input type="text"
209
 
210
  id="yop-poll-widget-template-width"
211
 
templates/polls_answer_media_template.html CHANGED
@@ -1 +1 @@
1
- {%if answer.type!="other"%}
2
  <td class="yop-poll-movable">&nbsp;</td>
3
  <td>
4
  <table cellspacing="0" cellpadding="0" width="100%" id="yop-poll-answer-{{ question.ID }}-{{ answer.get('ID') }}-table">
5
  <tbody>
6
  <tr>
7
  <td>
8
  <div class="yop-poll-subtitlediv">
9
  {%if action_type == 'edit' %}
10
  {%if answer.type == 'image'%}
11
  <input type="hidden" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][answer_id]" value="{{ answer.get('ID') }}">
12
  <input type="hidden" id="type_of_answer_{{answer.ID}}" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][type]" value="image">
13
  <input type="radio" name="media_{{answer.ID}}" value="image" onchange="change_answer_type_to_image('{{answer.ID}}')" checked/>Image
14
  <input type="radio" name="media_{{answer.ID}}" value="video" onchange="change_answer_type_to_video('{{answer.ID}}')"/>Video<br>
15
  <label for="upload_file">
16
  <textarea hidden="true" id="upload_file_{{answer.ID}}_media_save_image" type="text" size="36" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][answer]" value="{{answer.answer}}"></textarea><br>
17
  <textarea hidden="true" id="upload_file_{{answer.ID}}_media_save_video" type="text" size="36" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][answer]" value=""></textarea>
18
  <textarea rows="2" cols="50" id="upload_file_{{answer.ID}}_media" type="text" style="width: 400px; height:40px;"name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][answer]" value="{{answer.answer}}">{{answer.answer}}</textarea><br>
19
  <small id="small_for_image_{{answer.ID}}">{{__('Enter a URL or upload a file!')}}</small>
20
  <small id="small_for_video_{{answer.ID}}" style="display: none">{{__('Enter embeded code!')}}</small><br>
21
  <input id="upload_image_{{answer.ID}}_media" type="button" style="background: none repeat scroll 0 0 #2EA2CC;border-color: #0074A2;box-shadow: 0 1px 0 rgba(120, 200, 230, 0.5) inset, 0 1px 0 rgba(0, 0, 0, 0.15); color: #FFFFFF;
22
  text-decoration: none;" value="Upload File"onclick="upload('{{answer.ID}}')" /><br>
23
  Description:<input type="text" id="description_of_answer_{{answer.ID}}_image" style="width: 318px" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][description_image]" value="{{answer.description}}">
24
  <input type="text" hidden="true" id="description_of_answer_{{answer.ID}}_video" style="width: 318px" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][description_video]" value="">
25
  </label>
26
  {%endif%}
27
  {%if answer.type == 'video'%}
28
  <input type="hidden" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][answer_id]" value="{{ answer.get('ID') }}">
29
  <input type="hidden" id="type_of_answer_{{answer.ID}}" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][type]" value="video">
30
  <input type="radio" name="media_{{answer.ID}}" value="image" onchange="change_answer_type_to_image('{{answer.ID}}')"/>Image
31
  <input type="radio" name="media_{{answer.ID}}" value="video" onchange="change_answer_type_to_video('{{answer.ID}}')" checked/>Video<br>
32
  <label for="upload_file">
33
  <textarea hidden="true" id="upload_file_{{answer.ID}}_media_save_image" type="text" size="36" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][answer]" value=""></textarea>
34
  <textarea hidden="true" id="upload_file_{{answer.ID}}_media_save_video" type="text" size="36" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][answer]" value="{{answer.answer}}"></textarea>
35
  <textarea rows="2" cols="50" style="width: 400px; height:40px;"id="upload_file_{{answer.ID}}_media" type="text" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][answer]" value="{{answer.answer}}">{{answer.answer}}</textarea><br>
36
  <small id="small_for_image_{{answer.ID}}"style="display: none">{{__('Enter a URL or upload a file!')}}</small>
37
  <small id="small_for_video_{{answer.ID}}" >{{__('Enter embeded code!')}}</small><br>
38
  <input id="upload_image_{{answer.ID}}_media" type="button" style="background: none repeat scroll 0 0 #2EA2CC;border-color: #0074A2;box-shadow: 0 1px 0 rgba(120, 200, 230, 0.5) inset, 0 1px 0 rgba(0, 0, 0, 0.15); color: #FFFFFF;
39
  text-decoration: none;" value="Upload File"onclick="upload('{{answer.ID}}')" /><br>
40
  Description:<input hidden="true" type="text" id="description_of_answer_{{answer.ID}}_image"style="width: 318px" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][description_image]" value="">
41
  <input type="text" id="description_of_answer_{{answer.ID}}_video"style="width: 318px" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][description_video]" value="{{answer.description}}">
42
  </label>
43
  {%endif%}
44
  {%else%}
45
  <input type="hidden" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][answer_id]" value="{{ answer.get('ID') }}">
46
  <input type="hidden" id="type_of_answer_{{answer.ID}}" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][type]" value="image">
47
  <input type="radio" name="media_{{answer.ID}}" value="image" onchange="change_answer_type_to_image('{{answer.ID}}')" checked/>Image
48
  <input type="radio" name="media_{{answer.ID}}" value="video" onchange="change_answer_type_to_video('{{answer.ID}}')"/>Video<br>
49
  <label for="upload_file">
50
  <textarea hidden="true" id="upload_file_{{answer.ID}}_media_save_image" type="text" size="36" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][answer]" value=""></textarea>
51
  <textarea hidden="true" id="upload_file_{{answer.ID}}_media_save_video" type="text" size="36" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][answer]" value=""></textarea>
52
  <textarea rows="1" cols="50" style="width: 400px; height:40px;" id="upload_file_{{answer.ID}}_media" type="text" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][answer]" value=""></textarea><br>
53
  <small id="small_for_image_{{answer.ID}}">{{__('Enter a URL or upload a file!')}}</small>
54
  <small id="small_for_video_{{answer.ID}}" style="display: none">{{__('Enter embeded code!')}}</small><br>
55
  <input id="upload_image_{{answer.ID}}_media" type="button" style="background: none repeat scroll 0 0 #2EA2CC;border-color: #0074A2;box-shadow: 0 1px 0 rgba(120, 200, 230, 0.5) inset, 0 1px 0 rgba(0, 0, 0, 0.15); color: #FFFFFF;
56
  text-decoration: none;" value="Upload File"onclick="upload('{{answer.ID}}')" /><br>
57
  Description:<input type="text" id="description_of_answer_{{answer.ID}}_image" style="width: 318px" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][description_image]" value="">
58
  <input type="text" id="description_of_answer_{{answer.ID}}_video" style="width: 318px"hidden="true" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][description_video]" value="">
59
  </label>
60
  {%endif%}
61
  </div>
62
  </td>
63
  <td align="right">
64
  <label style="float: left"for="yop-poll-is-default-answer-yes-{{ question.ID }}-{{ answer.get('ID') }}">{{__( 'Default Answer' ) }}? </label>
65
  <input type="checkbox" style="float: left;" {{ checked(answer.is_default_answer, 'yes') }} value="yes" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][is_default_answer]" class="yop-poll-default-answer_{{question.ID}}" id="yop-poll-is-default-answer-yes-{{ question.ID }}-{{ answer.get('ID') }}" onclick="yop_poll_default_answer( this, '.yop-poll-default-answer_{{question.ID}}' );" >
66
  <input type="button" class="button yop-poll-button-delete" value="{{ __('Delete') }}" onclick="yop_poll_remove_answer('{{ question.ID }}', '{{ answer.get('ID') }}')">
67
  <input class="yop-poll-question-{{ question.ID }}-answer-order yop-poll-answer-order-input" type="hidden" style="width: 30px;" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][question_order]" value="{{ answer.question_order }}">
68
  </td>
69
  </tr>
70
  </tbody>
71
  </table>
72
  </td>
73
  {%endif%}
 
74
  <td class="yop-poll-movable">&nbsp;</td>
75
  <td>
76
  <table cellspacing="0" cellpadding="0" width="100%" id="yop-poll-answer-{{ question.ID }}-{{ answer.get('ID') }}-table">
77
  <tbody>
78
  <tr>
79
  <td>
80
  <div class="yop-poll-subtitlediv">
81
  {%if action_type == 'edit' %}
82
  {%if answer.type == 'image'%}
83
  <input type="hidden" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][answer_id]" value="{{ answer.get('ID') }}">
84
  <input type="hidden" id="type_of_answer_{{answer.ID}}" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][type]" value="image">
85
  <input type="radio" name="media_{{answer.ID}}" value="image" onchange="change_answer_type_to_image('{{answer.ID}}')" checked/>{{__("Image")}}
86
  <input type="radio" name="media_{{answer.ID}}" value="video" onchange="change_answer_type_to_video('{{answer.ID}}')"/>{{__("Video")}}<br>
87
  <label for="upload_file">
88
  <textarea hidden="true" id="upload_file_{{answer.ID}}_media_save_image" type="text" size="36" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][answer]" value="{{answer.answer}}"></textarea><br>
89
  <textarea hidden="true" id="upload_file_{{answer.ID}}_media_save_video" type="text" size="36" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][answer]" value=""></textarea>
90
  <textarea rows="2" cols="50" id="upload_file_{{answer.ID}}_media" type="text" style="width: 400px; height:40px;"name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][answer]" value="{{answer.answer}}">{{answer.answer}}</textarea><br>
91
  <small id="small_for_image_{{answer.ID}}">{{__("Enter a URL or upload a file!")}}</small>
92
  <small id="small_for_video_{{answer.ID}}" style="display: none">{{__("Enter embeded code!")}}</small><br>
93
  <input id="upload_image_{{answer.ID}}_media" type="button" style="background: none repeat scroll 0 0 #2EA2CC;border-color: #0074A2;box-shadow: 0 1px 0 rgba(120, 200, 230, 0.5) inset, 0 1px 0 rgba(0, 0, 0, 0.15); color: #FFFFFF;
94
  text-decoration: none;" value="Upload File"onclick="upload('{{answer.ID}}')" /><br>
95
  {{__("Description")}}:<input type="text" id="description_of_answer_{{answer.ID}}_image" style="width: 318px" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][description_image]" value="{{answer.description}}">
96
  <input type="text" hidden="true" id="description_of_answer_{{answer.ID}}_video" style="width: 318px" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][description_video]" value="">
97
  </label>
98
  {%endif%}
99
  {%if answer.type == 'video'%}
100
  <input type="hidden" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][answer_id]" value="{{ answer.get('ID') }}">
101
  <input type="hidden" id="type_of_answer_{{answer.ID}}" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][type]" value="video">
102
  <input type="radio" name="media_{{answer.ID}}" value="image" onchange="change_answer_type_to_image('{{answer.ID}}')"/>{{__("Image")}}
103
  <input type="radio" name="media_{{answer.ID}}" value="video" onchange="change_answer_type_to_video('{{answer.ID}}')" checked/>{{__("Video")}}<br>
104
  <label for="upload_file">
105
  <textarea hidden="true" id="upload_file_{{answer.ID}}_media_save_image" type="text" size="36" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][answer]" value=""></textarea>
106
  <textarea hidden="true" id="upload_file_{{answer.ID}}_media_save_video" type="text" size="36" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][answer]" value="{{answer.answer}}"></textarea>
107
  <textarea rows="2" cols="50" style="width: 400px; height:40px;"id="upload_file_{{answer.ID}}_media" type="text" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][answer]" value="{{answer.answer}}">{{answer.answer}}</textarea><br>
108
  <small id="small_for_image_{{answer.ID}}"style="display: none">{{__("Enter a URL or upload a file!")}}</small>
109
  <small id="small_for_video_{{answer.ID}}" >{{__("Enter embeded code!")}}</small><br>
110
  <input id="upload_image_{{answer.ID}}_media" type="button" style="background: none repeat scroll 0 0 #2EA2CC;border-color: #0074A2;box-shadow: 0 1px 0 rgba(120, 200, 230, 0.5) inset, 0 1px 0 rgba(0, 0, 0, 0.15); color: #FFFFFF;
111
  text-decoration: none;" value="Upload File"onclick="upload('{{answer.ID}}')" /><br>
112
  {{__("Description")}}:<input hidden="true" type="text" id="description_of_answer_{{answer.ID}}_image"style="width: 318px" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][description_image]" value="">
113
  <input type="text" id="description_of_answer_{{answer.ID}}_video"style="width: 318px" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][description_video]" value="{{answer.description}}">
114
  </label>
115
  {%endif%}
116
  {%else%}
117
  <input type="hidden" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][answer_id]" value="{{ answer.get('ID') }}">
118
  <input type="hidden" id="type_of_answer_{{answer.ID}}" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][type]" value="image">
119
  <input type="radio" name="media_{{answer.ID}}" value="image" onchange="change_answer_type_to_image('{{answer.ID}}')" checked/>Image
120
  <input type="radio" name="media_{{answer.ID}}" value="video" onchange="change_answer_type_to_video('{{answer.ID}}')"/>Video<br>
121
  <label for="upload_file">
122
  <textarea hidden="true" id="upload_file_{{answer.ID}}_media_save_image" type="text" size="36" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][answer]" value=""></textarea>
123
  <textarea hidden="true" id="upload_file_{{answer.ID}}_media_save_video" type="text" size="36" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][answer]" value=""></textarea>
124
  <textarea rows="1" cols="50" style="width: 400px; height:40px;" id="upload_file_{{answer.ID}}_media" type="text" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][answer]" value=""></textarea><br>
125
  <small id="small_for_image_{{answer.ID}}">{{__('Enter a URL or upload a file!')}}</small>
126
  <small id="small_for_video_{{answer.ID}}" style="display: none">{{__('Enter embeded code!')}}</small><br>
127
  <input id="upload_image_{{answer.ID}}_media" type="button" style="background: none repeat scroll 0 0 #2EA2CC;border-color: #0074A2;box-shadow: 0 1px 0 rgba(120, 200, 230, 0.5) inset, 0 1px 0 rgba(0, 0, 0, 0.15); color: #FFFFFF;
128
  text-decoration: none;" value="Upload File"onclick="upload('{{answer.ID}}')" /><br>
129
  Description:<input type="text" id="description_of_answer_{{answer.ID}}_image" style="width: 318px" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][description_image]" value="">
130
  <input type="text" id="description_of_answer_{{answer.ID}}_video" style="width: 318px"hidden="true" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][description_video]" value="">
131
  </label>
132
  {%endif%}
133
  </div>
134
  </td>
135
  <td align="right">
136
  <label style="float: left"for="yop-poll-is-default-answer-yes-{{ question.ID }}-{{ answer.get('ID') }}">{{__( 'Default Answer' ) }}? </label>
137
  <input type="checkbox" style="float: left;" {{ checked(answer.is_default_answer, 'yes') }} value="yes" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][is_default_answer]" class="yop-poll-default-answer_{{question.ID}}" id="yop-poll-is-default-answer-yes-{{ question.ID }}-{{ answer.get('ID') }}" onclick="yop_poll_default_answer( this, '.yop-poll-default-answer_{{question.ID}}' );" >
138
  <input type="button" class="button yop-poll-button-delete" value="{{ __('Delete') }}" onclick="yop_poll_remove_answer('{{ question.ID }}', '{{ answer.get('ID') }}')">
139
  <input class="yop-poll-question-{{ question.ID }}-answer-order yop-poll-answer-order-input" type="hidden" style="width: 30px;" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][question_order]" value="{{ answer.question_order }}">
140
  </td>
141
  </tr>
142
  </tbody>
143
  </table>
144
  </td>
145
  {%endif%}
 
1
  <td class="yop-poll-movable">&nbsp;</td>
2
  <td>
3
  <table cellspacing="0" cellpadding="0" width="100%" id="yop-poll-answer-{{ question.ID }}-{{ answer.get('ID') }}-table">
4
  <tbody>
5
  <tr>
6
  <td>
7
  <div class="yop-poll-subtitlediv">
8
  {%if action_type == 'edit' %}
9
  {%if answer.type == 'image'%}
10
  <input type="hidden" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][answer_id]" value="{{ answer.get('ID') }}">
11
  <input type="hidden" id="type_of_answer_{{answer.ID}}" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][type]" value="image">
12
  <input type="radio" name="media_{{answer.ID}}" value="image" onchange="change_answer_type_to_image('{{answer.ID}}')" checked/>Image
13
  <input type="radio" name="media_{{answer.ID}}" value="video" onchange="change_answer_type_to_video('{{answer.ID}}')"/>Video<br>
14
  <label for="upload_file">
15
  <textarea hidden="true" id="upload_file_{{answer.ID}}_media_save_image" type="text" size="36" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][answer]" value="{{answer.answer}}"></textarea><br>
16
  <textarea hidden="true" id="upload_file_{{answer.ID}}_media_save_video" type="text" size="36" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][answer]" value=""></textarea>
17
  <textarea rows="2" cols="50" id="upload_file_{{answer.ID}}_media" type="text" style="width: 400px; height:40px;"name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][answer]" value="{{answer.answer}}">{{answer.answer}}</textarea><br>
18
  <small id="small_for_image_{{answer.ID}}">{{__('Enter a URL or upload a file!')}}</small>
19
  <small id="small_for_video_{{answer.ID}}" style="display: none">{{__('Enter embeded code!')}}</small><br>
20
  <input id="upload_image_{{answer.ID}}_media" type="button" style="background: none repeat scroll 0 0 #2EA2CC;border-color: #0074A2;box-shadow: 0 1px 0 rgba(120, 200, 230, 0.5) inset, 0 1px 0 rgba(0, 0, 0, 0.15); color: #FFFFFF;
21
  text-decoration: none;" value="Upload File"onclick="upload('{{answer.ID}}')" /><br>
22
  Description:<input type="text" id="description_of_answer_{{answer.ID}}_image" style="width: 318px" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][description_image]" value="{{answer.description}}">
23
  <input type="text" hidden="true" id="description_of_answer_{{answer.ID}}_video" style="width: 318px" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][description_video]" value="">
24
  </label>
25
  {%endif%}
26
  {%if answer.type == 'video'%}
27
  <input type="hidden" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][answer_id]" value="{{ answer.get('ID') }}">
28
  <input type="hidden" id="type_of_answer_{{answer.ID}}" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][type]" value="video">
29
  <input type="radio" name="media_{{answer.ID}}" value="image" onchange="change_answer_type_to_image('{{answer.ID}}')"/>Image
30
  <input type="radio" name="media_{{answer.ID}}" value="video" onchange="change_answer_type_to_video('{{answer.ID}}')" checked/>Video<br>
31
  <label for="upload_file">
32
  <textarea hidden="true" id="upload_file_{{answer.ID}}_media_save_image" type="text" size="36" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][answer]" value=""></textarea>
33
  <textarea hidden="true" id="upload_file_{{answer.ID}}_media_save_video" type="text" size="36" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][answer]" value="{{answer.answer}}"></textarea>
34
  <textarea rows="2" cols="50" style="width: 400px; height:40px;"id="upload_file_{{answer.ID}}_media" type="text" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][answer]" value="{{answer.answer}}">{{answer.answer}}</textarea><br>
35
  <small id="small_for_image_{{answer.ID}}"style="display: none">{{__('Enter a URL or upload a file!')}}</small>
36
  <small id="small_for_video_{{answer.ID}}" >{{__('Enter embeded code!')}}</small><br>
37
  <input id="upload_image_{{answer.ID}}_media" type="button" style="background: none repeat scroll 0 0 #2EA2CC;border-color: #0074A2;box-shadow: 0 1px 0 rgba(120, 200, 230, 0.5) inset, 0 1px 0 rgba(0, 0, 0, 0.15); color: #FFFFFF;
38
  text-decoration: none;" value="Upload File"onclick="upload('{{answer.ID}}')" /><br>
39
  Description:<input hidden="true" type="text" id="description_of_answer_{{answer.ID}}_image"style="width: 318px" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][description_image]" value="">
40
  <input type="text" id="description_of_answer_{{answer.ID}}_video"style="width: 318px" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][description_video]" value="{{answer.description}}">
41
  </label>
42
  {%endif%}
43
  {%else%}
44
  <input type="hidden" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][answer_id]" value="{{ answer.get('ID') }}">
45
  <input type="hidden" id="type_of_answer_{{answer.ID}}" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][type]" value="image">
46
  <input type="radio" name="media_{{answer.ID}}" value="image" onchange="change_answer_type_to_image('{{answer.ID}}')" checked/>Image
47
  <input type="radio" name="media_{{answer.ID}}" value="video" onchange="change_answer_type_to_video('{{answer.ID}}')"/>Video<br>
48
  <label for="upload_file">
49
  <textarea hidden="true" id="upload_file_{{answer.ID}}_media_save_image" type="text" size="36" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][answer]" value=""></textarea>
50
  <textarea hidden="true" id="upload_file_{{answer.ID}}_media_save_video" type="text" size="36" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][answer]" value=""></textarea>
51
  <textarea rows="1" cols="50" style="width: 400px; height:40px;" id="upload_file_{{answer.ID}}_media" type="text" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][answer]" value=""></textarea><br>
52
  <small id="small_for_image_{{answer.ID}}">{{__('Enter a URL or upload a file!')}}</small>
53
  <small id="small_for_video_{{answer.ID}}" style="display: none">{{__('Enter embeded code!')}}</small><br>
54
  <input id="upload_image_{{answer.ID}}_media" type="button" style="background: none repeat scroll 0 0 #2EA2CC;border-color: #0074A2;box-shadow: 0 1px 0 rgba(120, 200, 230, 0.5) inset, 0 1px 0 rgba(0, 0, 0, 0.15); color: #FFFFFF;
55
  text-decoration: none;" value="Upload File"onclick="upload('{{answer.ID}}')" /><br>
56
  Description:<input type="text" id="description_of_answer_{{answer.ID}}_image" style="width: 318px" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][description_image]" value="">
57
  <input type="text" id="description_of_answer_{{answer.ID}}_video" style="width: 318px"hidden="true" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][description_video]" value="">
58
  </label>
59
  {%endif%}
60
  </div>
61
  </td>
62
  <td align="right">
63
  <label style="float: left"for="yop-poll-is-default-answer-yes-{{ question.ID }}-{{ answer.get('ID') }}">{{__( 'Default Answer' ) }}? </label>
64
  <input type="checkbox" style="float: left;" {{ checked(answer.is_default_answer, 'yes') }} value="yes" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][is_default_answer]" class="yop-poll-default-answer_{{question.ID}}" id="yop-poll-is-default-answer-yes-{{ question.ID }}-{{ answer.get('ID') }}" onclick="yop_poll_default_answer( this, '.yop-poll-default-answer_{{question.ID}}' );" >
65
  <input type="button" class="button yop-poll-button-delete" value="{{ __('Delete') }}" onclick="yop_poll_remove_answer('{{ question.ID }}', '{{ answer.get('ID') }}')">
66
  <input class="yop-poll-question-{{ question.ID }}-answer-order yop-poll-answer-order-input" type="hidden" style="width: 30px;" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][question_order]" value="{{ answer.question_order }}">
67
  </td>
68
  </tr>
69
  </tbody>
70
  </table>
71
  </td>
72
  {%endif%}
73
+ {%if answer.type!="other"%}
74
  <td class="yop-poll-movable">&nbsp;</td>
75
  <td>
76
  <table cellspacing="0" cellpadding="0" width="100%" id="yop-poll-answer-{{ question.ID }}-{{ answer.get('ID') }}-table">
77
  <tbody>
78
  <tr>
79
  <td>
80
  <div class="yop-poll-subtitlediv">
81
  {%if action_type == 'edit' %}
82
  {%if answer.type == 'image'%}
83
  <input type="hidden" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][answer_id]" value="{{ answer.get('ID') }}">
84
  <input type="hidden" id="type_of_answer_{{answer.ID}}" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][type]" value="image">
85
  <input type="radio" name="media_{{answer.ID}}" value="image" onchange="change_answer_type_to_image('{{answer.ID}}')" checked/>{{__("Image")}}
86
  <input type="radio" name="media_{{answer.ID}}" value="video" onchange="change_answer_type_to_video('{{answer.ID}}')"/>{{__("Video")}}<br>
87
  <label for="upload_file">
88
  <textarea hidden="true" id="upload_file_{{answer.ID}}_media_save_image" type="text" size="36" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][answer]" value="{{answer.answer}}"></textarea><br>
89
  <textarea hidden="true" id="upload_file_{{answer.ID}}_media_save_video" type="text" size="36" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][answer]" value=""></textarea>
90
  <textarea rows="2" cols="50" id="upload_file_{{answer.ID}}_media" type="text" style="width: 400px; height:40px;"name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][answer]" value="{{answer.answer}}">{{answer.answer}}</textarea><br>
91
  <small id="small_for_image_{{answer.ID}}">{{__("Enter a URL or upload a file!")}}</small>
92
  <small id="small_for_video_{{answer.ID}}" style="display: none">{{__("Enter embeded code!")}}</small><br>
93
  <input id="upload_image_{{answer.ID}}_media" type="button" style="background: none repeat scroll 0 0 #2EA2CC;border-color: #0074A2;box-shadow: 0 1px 0 rgba(120, 200, 230, 0.5) inset, 0 1px 0 rgba(0, 0, 0, 0.15); color: #FFFFFF;
94
  text-decoration: none;" value="Upload File"onclick="upload('{{answer.ID}}')" /><br>
95
  {{__("Description")}}:<input type="text" id="description_of_answer_{{answer.ID}}_image" style="width: 318px" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][description_image]" value="{{answer.description}}">
96
  <input type="text" hidden="true" id="description_of_answer_{{answer.ID}}_video" style="width: 318px" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][description_video]" value="">
97
  </label>
98
  {%endif%}
99
  {%if answer.type == 'video'%}
100
  <input type="hidden" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][answer_id]" value="{{ answer.get('ID') }}">
101
  <input type="hidden" id="type_of_answer_{{answer.ID}}" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][type]" value="video">
102
  <input type="radio" name="media_{{answer.ID}}" value="image" onchange="change_answer_type_to_image('{{answer.ID}}')"/>{{__("Image")}}
103
  <input type="radio" name="media_{{answer.ID}}" value="video" onchange="change_answer_type_to_video('{{answer.ID}}')" checked/>{{__("Video")}}<br>
104
  <label for="upload_file">
105
  <textarea hidden="true" id="upload_file_{{answer.ID}}_media_save_image" type="text" size="36" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][answer]" value=""></textarea>
106
  <textarea hidden="true" id="upload_file_{{answer.ID}}_media_save_video" type="text" size="36" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][answer]" value="{{answer.answer}}"></textarea>
107
  <textarea rows="2" cols="50" style="width: 400px; height:40px;"id="upload_file_{{answer.ID}}_media" type="text" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][answer]" value="{{answer.answer}}">{{answer.answer}}</textarea><br>
108
  <small id="small_for_image_{{answer.ID}}"style="display: none">{{__("Enter a URL or upload a file!")}}</small>
109
  <small id="small_for_video_{{answer.ID}}" >{{__("Enter embeded code!")}}</small><br>
110
  <input id="upload_image_{{answer.ID}}_media" type="button" style="background: none repeat scroll 0 0 #2EA2CC;border-color: #0074A2;box-shadow: 0 1px 0 rgba(120, 200, 230, 0.5) inset, 0 1px 0 rgba(0, 0, 0, 0.15); color: #FFFFFF;
111
  text-decoration: none;" value="Upload File"onclick="upload('{{answer.ID}}')" /><br>
112
  {{__("Description")}}:<input hidden="true" type="text" id="description_of_answer_{{answer.ID}}_image"style="width: 318px" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][description_image]" value="">
113
  <input type="text" id="description_of_answer_{{answer.ID}}_video"style="width: 318px" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][description_video]" value="{{answer.description}}">
114
  </label>
115
  {%endif%}
116
  {%else%}
117
  <input type="hidden" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][answer_id]" value="{{ answer.get('ID') }}">
118
  <input type="hidden" id="type_of_answer_{{answer.ID}}" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][type]" value="image">
119
  <input type="radio" name="media_{{answer.ID}}" value="image" onchange="change_answer_type_to_image('{{answer.ID}}')" checked/>Image
120
  <input type="radio" name="media_{{answer.ID}}" value="video" onchange="change_answer_type_to_video('{{answer.ID}}')"/>Video<br>
121
  <label for="upload_file">
122
  <textarea hidden="true" id="upload_file_{{answer.ID}}_media_save_image" type="text" size="36" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][answer]" value=""></textarea>
123
  <textarea hidden="true" id="upload_file_{{answer.ID}}_media_save_video" type="text" size="36" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][answer]" value=""></textarea>
124
  <textarea rows="1" cols="50" style="width: 400px; height:40px;" id="upload_file_{{answer.ID}}_media" type="text" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][answer]" value=""></textarea><br>
125
  <small id="small_for_image_{{answer.ID}}">{{__('Enter a URL or upload a file!')}}</small>
126
  <small id="small_for_video_{{answer.ID}}" style="display: none">{{__('Enter embeded code!')}}</small><br>
127
  <input id="upload_image_{{answer.ID}}_media" type="button" style="background: none repeat scroll 0 0 #2EA2CC;border-color: #0074A2;box-shadow: 0 1px 0 rgba(120, 200, 230, 0.5) inset, 0 1px 0 rgba(0, 0, 0, 0.15); color: #FFFFFF;
128
  text-decoration: none;" value="Upload File"onclick="upload('{{answer.ID}}')" /><br>
129
  Description:<input type="text" id="description_of_answer_{{answer.ID}}_image" style="width: 318px" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][description_image]" value="">
130
  <input type="text" id="description_of_answer_{{answer.ID}}_video" style="width: 318px"hidden="true" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][description_video]" value="">
131
  </label>
132
  {%endif%}
133
  </div>
134
  </td>
135
  <td align="right">
136
  <label style="float: left"for="yop-poll-is-default-answer-yes-{{ question.ID }}-{{ answer.get('ID') }}">{{__( 'Default Answer' ) }}? </label>
137
  <input type="checkbox" style="float: left;" {{ checked(answer.is_default_answer, 'yes') }} value="yes" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][is_default_answer]" class="yop-poll-default-answer_{{question.ID}}" id="yop-poll-is-default-answer-yes-{{ question.ID }}-{{ answer.get('ID') }}" onclick="yop_poll_default_answer( this, '.yop-poll-default-answer_{{question.ID}}' );" >
138
  <input type="button" class="button yop-poll-button-delete" value="{{ __('Delete') }}" onclick="yop_poll_remove_answer('{{ question.ID }}', '{{ answer.get('ID') }}')">
139
  <input class="yop-poll-question-{{ question.ID }}-answer-order yop-poll-answer-order-input" type="hidden" style="width: 30px;" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][question_order]" value="{{ answer.question_order }}">
140
  </td>
141
  </tr>
142
  </tbody>
143
  </table>
144
  </td>
145
  {%endif%}
templates/polls_answer_template.html CHANGED
@@ -1 +1 @@
1
- {%if answer.type!="other"%}
2
  <td class="yop-poll-movable">&nbsp;</td>
3
  <td>
4
  <table cellspacing="0" cellpadding="0" width="100%" id="yop-poll-answer-{{ question.ID }}-{{ answer.get('ID') }}-table">
5
  <tbody>
6
  <tr>
7
  <td>
8
  <input type="hidden" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][answer_id]" value="{{ answer.get('ID') }}">
9
  <input type="hidden" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][type]" value="text">
10
  <div class="yop-poll-subtitlediv">
11
  <div class="yop-poll-subtitlewrap">
12
  <input id="yop-poll-answer-input-{{ question.ID }}-{{ answer.get('ID') }}" class="yop-poll-subtitle answers_focus" type="text" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][answer]" size="30" value="{{answer.answer}}" >
13
  </div>
14
  </div>
15
  </td>
16
  <td align="right">
17
  <label style="float: left" for="yop-poll-is-default-answer-yes-{{ question.ID }}-{{ answer.get('ID') }}">&nbsp{{__( 'Default Answer' ) }}? </label>
18
  <input style="float: left"type="checkbox" {{ checked(answer.is_default_answer, 'yes') }} value="yes" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][is_default_answer]" class="yop-poll-default-answer_{{question.ID}}" id="yop-poll-is-default-answer-yes-{{ question.ID }}-{{ answer.get('ID') }}" onclick="yop_poll_default_answer( this, '.yop-poll-default-answer_{{question.ID}}' );" >
19
  <input type="button" class="button yop-poll-button-delete" value="{{ __('Delete') }}" onclick="yop_poll_remove_answer('{{ question.ID }}', '{{ answer.get('ID') }}')">
20
  <input class="yop-poll-question-{{ question.ID }}-answer-order yop-poll-answer-order-input" type="hidden" style="width: 30px;" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][question_order]" value="{{ answer.question_order }}">
21
  </td>
22
  </tr>
23
  </tbody>
24
  </table>
25
  </td>
 
26
  <td class="yop-poll-movable">&nbsp;</td>
27
  <td>
28
  <table cellspacing="0" cellpadding="0" width="100%" id="yop-poll-answer-{{ question.ID }}-{{ answer.get('ID') }}-table">
29
  <tbody>
30
  <tr>
31
  <td>
32
  <input type="hidden" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][answer_id]" value="{{ answer.get('ID') }}">
33
  <input type="hidden" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][type]" value="text">
34
  <div class="yop-poll-subtitlediv">
35
  <div class="yop-poll-subtitlewrap">
36
  <input id="yop-poll-answer-input-{{ question.ID }}-{{ answer.get('ID') }}" class="yop-poll-subtitle answers_focus" type="text" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][answer]" size="30" value="{{answer.answer}}" >
37
  </div>
38
  </div>
39
  </td>
40
  <td align="right">
41
  <label style="float: left" for="yop-poll-is-default-answer-yes-{{ question.ID }}-{{ answer.get('ID') }}">&nbsp{{__( "Default Answer" ) }}? </label>
42
  <input style="float: left"type="checkbox"{{ checked(answer.is_default_answer, 'yes') }} value="yes" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][is_default_answer]" class="yop-poll-default-answer_{{question.ID}}" id="yop-poll-is-default-answer-yes-{{ question.ID }}-{{ answer.get('ID') }}" onclick="yop_poll_default_answer( this, '.yop-poll-default-answer_{{question.ID}}' );" >
43
  <label for="yop-poll-answer-delete-{{ answer.get('ID')}}" class="button yop-poll-button-delete">{{ __("Delete") }}</label>
44
  <input type="button" id="yop-poll-answer-delete-{{ answer.get('ID')}}" class="button yop-poll-button-delete" style="display: none" value="{{ __('Delete') }}" onclick="yop_poll_remove_answer('{{ question.ID }}', '{{ answer.get('ID') }}')">
45
  <input class="yop-poll-question-{{ question.ID }}-answer-order yop-poll-answer-order-input" type="hidden" style="width: 30px;" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][question_order]" value="{{ answer.question_order }}">
46
  </td>
47
  </tr>
48
  </tbody>
49
  </table>
50
  </td>
 
1
  <td class="yop-poll-movable">&nbsp;</td>
2
  <td>
3
  <table cellspacing="0" cellpadding="0" width="100%" id="yop-poll-answer-{{ question.ID }}-{{ answer.get('ID') }}-table">
4
  <tbody>
5
  <tr>
6
  <td>
7
  <input type="hidden" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][answer_id]" value="{{ answer.get('ID') }}">
8
  <input type="hidden" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][type]" value="text">
9
  <div class="yop-poll-subtitlediv">
10
  <div class="yop-poll-subtitlewrap">
11
  <input id="yop-poll-answer-input-{{ question.ID }}-{{ answer.get('ID') }}" class="yop-poll-subtitle answers_focus" type="text" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][answer]" size="30" value="{{answer.answer}}" >
12
  </div>
13
  </div>
14
  </td>
15
  <td align="right">
16
  <label style="float: left" for="yop-poll-is-default-answer-yes-{{ question.ID }}-{{ answer.get('ID') }}">&nbsp{{__( 'Default Answer' ) }}? </label>
17
  <input style="float: left"type="checkbox" {{ checked(answer.is_default_answer, 'yes') }} value="yes" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][is_default_answer]" class="yop-poll-default-answer_{{question.ID}}" id="yop-poll-is-default-answer-yes-{{ question.ID }}-{{ answer.get('ID') }}" onclick="yop_poll_default_answer( this, '.yop-poll-default-answer_{{question.ID}}' );" >
18
  <input type="button" class="button yop-poll-button-delete" value="{{ __('Delete') }}" onclick="yop_poll_remove_answer('{{ question.ID }}', '{{ answer.get('ID') }}')">
19
  <input class="yop-poll-question-{{ question.ID }}-answer-order yop-poll-answer-order-input" type="hidden" style="width: 30px;" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][question_order]" value="{{ answer.question_order }}">
20
  </td>
21
  </tr>
22
  </tbody>
23
  </table>
24
  </td>
25
+ {%if answer.type!="other"%}
26
  <td class="yop-poll-movable">&nbsp;</td>
27
  <td>
28
  <table cellspacing="0" cellpadding="0" width="100%" id="yop-poll-answer-{{ question.ID }}-{{ answer.get('ID') }}-table">
29
  <tbody>
30
  <tr>
31
  <td>
32
  <input type="hidden" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][answer_id]" value="{{ answer.get('ID') }}">
33
  <input type="hidden" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][type]" value="text">
34
  <div class="yop-poll-subtitlediv">
35
  <div class="yop-poll-subtitlewrap">
36
  <input id="yop-poll-answer-input-{{ question.ID }}-{{ answer.get('ID') }}" class="yop-poll-subtitle answers_focus" type="text" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][answer]" size="30" value="{{answer.answer}}" >
37
  </div>
38
  </div>
39
  </td>
40
  <td align="right">
41
  <label style="float: left" for="yop-poll-is-default-answer-yes-{{ question.ID }}-{{ answer.get('ID') }}">&nbsp{{__( "Default Answer" ) }}? </label>
42
  <input style="float: left"type="checkbox"{{ checked(answer.is_default_answer, 'yes') }} value="yes" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][is_default_answer]" class="yop-poll-default-answer_{{question.ID}}" id="yop-poll-is-default-answer-yes-{{ question.ID }}-{{ answer.get('ID') }}" onclick="yop_poll_default_answer( this, '.yop-poll-default-answer_{{question.ID}}' );" >
43
  <label for="yop-poll-answer-delete-{{ answer.get('ID')}}" class="button yop-poll-button-delete">{{ __("Delete") }}</label>
44
  <input type="button" id="yop-poll-answer-delete-{{ answer.get('ID')}}" class="button yop-poll-button-delete" style="display: none" value="{{ __('Delete') }}" onclick="yop_poll_remove_answer('{{ question.ID }}', '{{ answer.get('ID') }}')">
45
  <input class="yop-poll-question-{{ question.ID }}-answer-order yop-poll-answer-order-input" type="hidden" style="width: 30px;" name="yop_poll_answer[{{ question.ID }}][answer_{{ answer.get('ID') }}][question_order]" value="{{ answer.question_order }}">
46
  </td>
47
  </tr>
48
  </tbody>
49
  </table>
50
  </td>
templates/polls_base.html CHANGED
@@ -12,7 +12,7 @@
12
  {% endblock message %}
13
  <form style="display: none;text-align:center;font-size: 20px;font-weight: bold; " class="yop_poll_buy_pro" method="post" action="">
14
  <div >
15
- <p>Please buy pro version to use this feature!</p>
16
  <input type = "hidden" name = "action" value = "do-buy">
17
 
18
  {{ wp_nonce_field('yop-poll-before-buy')|raw }}
@@ -46,32 +46,33 @@
46
  <img src="{{poll_url}}images/images2/image6.jpg" />
47
 
48
  </li>
 
 
 
 
49
  </ul>
50
  </div>
51
  <p style="text-align:center; font-weight: bold; font-size: 16px">
52
 
53
  <input type = "hidden" name = "action" value = "do-buy">
54
-
55
- <input type = "submit" name = "do_buy" class = "upgrade_button" value = "Upgrade to Pro for only $17">
56
  <br />
57
- 60 days money back guarantee
58
  </p>
59
  </div>
60
  <div class="yop_testimonials">
61
  <p class="yop_testimonials_header">{{ __ ("Top class software and support")}}
62
- <p class="yop_testimonials_content">{{ __ ("
63
- I love this software and the support service.")}}
64
  <br />
65
  {{ __ ("This is definitely the #1 poll plugin for WP. I give this software and its support service a A++++.")}}
66
  <br /><br />
67
- {{ __ ("
68
- I'm so glad to be a Pro version user. The US$17 upgrade worth every cent...")}}
69
  <br /><br />
70
- {{ __ ("
71
- I originally had some difficulties with the tool, and I reported them. \(This is normal for all software.\)
72
- After I reported my issues, the support got in touch with me very quickly and have the problem resolved.
73
- Also, they listened to my suggestions and worked with me to have things implemented and resolved.
74
- This is definitely a TOP CLASS service.")}}
75
  <p class="yop_testimonials_client">
76
  {{ __ ("edwintam, wordpress user")|e}}
77
  </p>
12
  {% endblock message %}
13
  <form style="display: none;text-align:center;font-size: 20px;font-weight: bold; " class="yop_poll_buy_pro" method="post" action="">
14
  <div >
15
+ <p>{{__("Please buy pro version to use this feature!")}}</p>
16
  <input type = "hidden" name = "action" value = "do-buy">
17
 
18
  {{ wp_nonce_field('yop-poll-before-buy')|raw }}
46
  <img src="{{poll_url}}images/images2/image6.jpg" />
47
 
48
  </li>
49
+ <li id="yop-poll-buy-template-7" class='yop-poll-buy-template-li'>
50
+ <img src="{{poll_url}}images/images2/image7.jpg" />
51
+
52
+ </li>
53
  </ul>
54
  </div>
55
  <p style="text-align:center; font-weight: bold; font-size: 16px">
56
 
57
  <input type = "hidden" name = "action" value = "do-buy">
58
+ <label for="yop-poll-buy-pro-version" class="upgrade_button">{{__("Upgrade to Pro for only $17")}}</label>
59
+ <input style="display: none" id="yop-poll-buy-pro-version" type = "submit" name = "do_buy" class = "upgrade_button" value = '{{__("Upgrade to Pro for only $17")}}'>
60
  <br />
61
+ {{__("60 days money back guarantee")}}
62
  </p>
63
  </div>
64
  <div class="yop_testimonials">
65
  <p class="yop_testimonials_header">{{ __ ("Top class software and support")}}
66
+ <p class="yop_testimonials_content">{{ __ ("I love this software and the support service.")}}
 
67
  <br />
68
  {{ __ ("This is definitely the #1 poll plugin for WP. I give this software and its support service a A++++.")}}
69
  <br /><br />
70
+ {{ __ ("I'm so glad to be a Pro version user. The US$17 upgrade worth every cent...")}}
 
71
  <br /><br />
72
+ {{ __ ("I originally had some difficulties with the tool, and I reported them. \(This is normal for all software.\) ")}}
73
+ {{ __ ("After I reported my issues, the support got in touch with me very quickly and have the problem resolved. ")}}
74
+ {{ __ ("Also, they listened to my suggestions and worked with me to have things implemented and resolved. ")}}
75
+ {{ __ ("This is definitely a TOP CLASS service.")}}
 
76
  <p class="yop_testimonials_client">
77
  {{ __ ("edwintam, wordpress user")|e}}
78
  </p>
templates/polls_pop_up_ban.html CHANGED
@@ -3,7 +3,7 @@
3
 
4
  <body>
5
  <div id='yop-poll-add-ban-div' >
6
- <p>{{__( 'Ban IP, Username or Email' ) }}</p>
7
  <form action="?page=yop-polls-bans&action=add-new" method="post" id="add-edit-ban">
8
  <input type="hidden" name="page" value="yop-polls-bans"/>
9
  <input id="action" type="hidden" name="action" value="add-ban"/>
@@ -12,11 +12,11 @@
12
  <table class="form-table">
13
  <tbody>
14
  <tr class="form-field form-required">
15
- <th scope="row"><label for="yop-poll-name">{{__( 'Poll' ) }} <span
16
  class="description">(required)</span></label></th>
17
  <td><select name="ban_poll_id" id="yop-poll-bans-polls">
18
 
19
- <option id="choose-option" value="0">{{__( 'Bans For All Polls' )}}</option>
20
  {% if count( yop_polls ) > 0 %}
21
  {% for yop_poll in yop_polls %}
22
  <option id="" value="{{ yop_poll.ID }}">{{yop_poll.poll_title}}</option>
@@ -27,47 +27,47 @@
27
  </tr>
28
  </tr>
29
  <tr class="form-field form-required">
30
- <th scope="row"><label for="yop-poll-type">{{__( 'Type' )}} <span
31
  class="description">(required)</span></label></th>
32
  <td><select name="ban_type" style="width: 15%" id="yop-poll-bans-type">
33
- <option id="choose-option-type" value="">{{__( 'Choose Ban Type' )}} </option>
34
- <option value="ip">{{__( 'Ip' ) }}</option>
35
- <option value="username">{{__( 'Username' ) }} </option>
36
- <option value="email">{{__( 'Email' ) }}</option></select>
37
  </td>
38
 
39
  </tr>
40
  <tr class="form-field form-required">
41
- <th scope="row"><label for="yop-poll-ban-period" value="">{{__( 'Period' )}} <span
42
- class="description">(required)</span></label></th>
43
  <td><input type="text" id="yop-poll-ban-period" style="width: 15%" name="ban_period">
44
  </input> </td>
45
  </tr>
46
  <tr class="form-field form-required">
47
- <th scope="row"><label for="yop-poll-ban-unit">{{__( 'Unit' )}} <span
48
  class="description">(required)</span></label></th>
49
  <td><select id="yop-poll-bans-unit" name="ban_unit" style="width: 15%">
50
- <option value="">{{__( 'Choose Unit' )}} </option>
51
- <option value="hours">{{__( 'Hours' ) }}</option>
52
- <option value="days">{{__( 'Days' ) }} </option>
53
- <option value="weeks">{{__( 'Weeks' ) }}</option>
54
- <option value="months">{{__( 'Months' ) }}</option>
55
  </select> </td>
56
  </tr>
57
 
58
  <tr class="form-field form-required">
59
- <th scope="row"><label for="yop-poll-ban-value">{{__( 'Value' )}}
60
  <span
61
- class="description">(required)</span><br> <small><i>{{__( 'One Value Per Line' ) }}</i></small></label></th>
62
  <td><textarea rows="5" cols="20" id="yop-poll-ban-value"
63
  name="ban_value" value=""></textarea></td>
64
  </tr>
65
  </tbody>
66
  </table>
67
  <p class="submit">
68
- <input id="add-new-ban" type="submit" value="{{__( 'Add Ban') }} "
69
  class="button-primary"/> <input id="yop-poll-add-ban-close"
70
- type="button" value="{{__( 'Close' )}} "
71
  class="button-primary">
72
 
73
  </p>
3
 
4
  <body>
5
  <div id='yop-poll-add-ban-div' >
6
+ <p>{{__( "Ban IP, Username or Email" ) }}</p>
7
  <form action="?page=yop-polls-bans&action=add-new" method="post" id="add-edit-ban">
8
  <input type="hidden" name="page" value="yop-polls-bans"/>
9
  <input id="action" type="hidden" name="action" value="add-ban"/>
12
  <table class="form-table">
13
  <tbody>
14
  <tr class="form-field form-required">
15
+ <th scope="row"><label for="yop-poll-name">{{__( "Poll" ) }} <span
16
  class="description">(required)</span></label></th>
17
  <td><select name="ban_poll_id" id="yop-poll-bans-polls">
18
 
19
+ <option id="choose-option" value="0">{{__( "Bans For All Polls" )}}</option>
20
  {% if count( yop_polls ) > 0 %}
21
  {% for yop_poll in yop_polls %}
22
  <option id="" value="{{ yop_poll.ID }}">{{yop_poll.poll_title}}</option>
27
  </tr>
28
  </tr>
29
  <tr class="form-field form-required">
30
+ <th scope="row"><label for="yop-poll-type">{{__( "Type" )}} <span
31
  class="description">(required)</span></label></th>
32
  <td><select name="ban_type" style="width: 15%" id="yop-poll-bans-type">
33
+ <option id="choose-option-type" value="">{{__( "Choose Ban Type" )}} </option>
34
+ <option value="ip">{{__( "Ip" ) }}</option>
35
+ <option value="username">{{__( "Username" ) }} </option>
36
+ <option value="email">{{__( "Email" ) }}</option></select>
37
  </td>
38
 
39
  </tr>
40
  <tr class="form-field form-required">
41
+ <th scope="row"><label for="yop-poll-ban-period" value="">{{__( "Period" )}} <span
42
+ class="description">{{__( "(required)" )}}</span></label></th>
43
  <td><input type="text" id="yop-poll-ban-period" style="width: 15%" name="ban_period">
44
  </input> </td>
45
  </tr>
46
  <tr class="form-field form-required">
47
+ <th scope="row"><label for="yop-poll-ban-unit">{{__( "Unit" )}} <span
48
  class="description">(required)</span></label></th>
49
  <td><select id="yop-poll-bans-unit" name="ban_unit" style="width: 15%">
50
+ <option value="">{{__( "Choose Unit" )}} </option>
51
+ <option value="hours">{{__( "Hours" ) }}</option>
52
+ <option value="days">{{__( "Days" ) }} </option>
53
+ <option value="weeks">{{__( "Weeks" ) }}</option>
54
+ <option value="months">{{__( "Months" ) }}</option>
55
  </select> </td>
56
  </tr>
57
 
58
  <tr class="form-field form-required">
59
+ <th scope="row"><label for="yop-poll-ban-value">{{__( "Value" )}}
60
  <span
61
+ class="description">{{__( "(required)" ) }}</span><br> <small><i>{{__( "One Value Per Line" ) }}</i></small></label></th>
62
  <td><textarea rows="5" cols="20" id="yop-poll-ban-value"
63
  name="ban_value" value=""></textarea></td>
64
  </tr>
65
  </tbody>
66
  </table>
67
  <p class="submit">
68
+ <input id="add-new-ban" type="submit" value='{{__( "Add Ban") }} '
69
  class="button-primary"/> <input id="yop-poll-add-ban-close"
70
+ type="button" value='{{__( "Close" )}} '
71
  class="button-primary">
72
 
73
  </p>
templates/polls_question_template.html CHANGED
@@ -1,10 +1,10 @@
1
  <div class="postbox stuffbox" id="stuffbox-question-{{ question.ID }}">
2
 
3
- <div title="{{ __('Click to toggle') }}" class="handlediv"><br/> </div>
4
 
5
  <h3 class="hndle">
6
 
7
- <div class="yop-poll-movable yop-poll-movable-div"></div><span>{{ __('Question ') }} <span class="yop-poll-question-order-span">{{ question.poll_order }}</span> <span id="yop-poll-question-{{ question.ID }}-summar">{% if question.question %} - {{ substr( question.question, 0, 30 ) }}... {% endif %}</span></span>
8
 
9
  <input type="hidden" name="yop_poll_question[question_{{ question.ID }}][type]" value="text"/>
10
 
@@ -18,7 +18,7 @@
18
 
19
  <div class="yop-poll-subsection">
20
 
21
- <h4 class="yop-poll-subsection-title">{{ __('Question Text') }}:</h4>
22
 
23
  <div class="yop-poll-subsection-body">
24
 
@@ -26,7 +26,7 @@
26
 
27
  <div class="yop-poll-subtitlewrap">
28
 
29
- <label id="yop-poll-question-label-{{ question.ID }}" class="yop-poll-subtitle-prompt-text screen-reader-text" for="yop-poll-question-input{{ question.ID }}">{{ __('Enter Your Question Here') }}</label>
30
 
31
  <input id="yop-poll-question-input{{ question.ID }}" class="yop-poll-subtitle" type="text" name="yop_poll_question[question_{{ question.ID }}][question]" size="30" value="{{ question.question }}" onchange="yop_poll_change_question_summar( '{{ question.ID}}', this.value )">
32
 
@@ -43,7 +43,7 @@
43
  <!-- Start Answers section -->
44
  <div class="yop-poll-subsection">
45
 
46
- <h4 class="yop-poll-subsection-title">{{ __('Answers') }}:</h4>
47
 
48
  <div class="yop-poll-subsection-body">
49
 
@@ -75,8 +75,8 @@
75
  <div id="publishing-action">
76
 
77
  <span class="spinner"></span>
78
-
79
- <input type="button" class="button-primary" value="{{ __('Add New Answer') }}" onclick="yop_poll_add_new_answer( '{{ question.ID }}', '', this,'text' )" id="yop-poll-edit-add-new-question-{{ question.ID }}-answer"/>
80
 
81
  </div>
82
  <!-- End Answers section -->
@@ -87,9 +87,9 @@
87
  <!-- Start Question Options section -->
88
  <div class="yop-poll-subsection postbox closed" style="">
89
 
90
- <div title="{{ __('Click to toggle') }}" class="handlediv"><br/> </div>
91
 
92
- <h4 class="yop-poll-subsection-title hndle" style="padding-top: 5px; padding-bottom: 5px; padding-left: 10px;">{{ __( 'Question Options' ) }}:</h4>
93
 
94
  <div class="inside" style="border-top: 1px solid #AAAAAA;; padding-top: 5px;">
95
 
@@ -100,14 +100,14 @@
100
  {% from "form_macros.html" import yop_poll_input_field as input %}
101
  {% from "form_macros.html" import yop_poll_select as select %}
102
  <tr>
103
- <th> {{ __('Allow other answers') }}:</th>
104
  <td>
105
- {{ label( 'Yes', 'yop-poll-question-'~question.ID~'-allow-other-answers-yes', 'yop_poll_question[question_'~question.ID~'][options][allow_other_answers]', "yes", "radio", "", question.allow_other_answers, "yes", 'yop_poll_show_div( \'.yop-poll-question-'~question.ID~'-other-answers-label-div\' )' ) }}
106
- {{ label( 'No', 'yop-poll-question-'~question.ID~'-allow-other-answers-no', 'yop_poll_question[question_'~question.ID~'][options][allow_other_answers]', "no", "radio", "", question.allow_other_answers, "no" , 'yop_poll_hide_div( \'.yop-poll-question-'~question.ID~'-other-answers-label-div\' )') }}
107
  </td>
108
  </tr>
109
  <tr class="yop_poll_suboption yop-poll-question-{{ question.ID }}-other-answers-label-div" id="yop-poll-other-answers-label-div" style="{% if 'yes' != question.allow_other_answers %} display: none; {% endif %}">
110
- <th> {{ __('Other answer label') }}:</th>
111
  <td>
112
  {{ input( question.other_answers_label, 'yop-poll-other-answers-label', 'yop_poll_question[question_'~question.ID~'][options][other_answers_label]' ) }}
113
  {{ input( question.other_answers_id, '' , 'yop_poll_question[question_'~question.ID~'][options][other_answers_id]', 'hidden' ) }}
@@ -115,64 +115,64 @@
115
  </tr>
116
  <tr class="yop_poll_suboption yop-poll-question-{{ question.ID }}-other-answers-label-div" id="yop-poll-other-answers-label-div" style="{% if 'yes' != question.allow_other_answers %} display: none; {% endif %}">
117
  <th>
118
- {{ __( 'Add the values submitted in "Other" as answers ' ) }}:<br>
119
- <small> {{ __('all the values submitted in this field by your users will be automatically added as an available "Answer"') }}</small>
120
  </th>
121
  <td>
122
- {{ label( 'Yes', 'yop-poll-question-'~question.ID~'-add-other-answers-to-default-answers-yes', 'yop_poll_question[question_'~question.ID~'][options][add_other_answers_to_default_answers]', "yes", "radio", "", question.add_other_answers_to_default_answers, "yes" ) }}
123
- {{ label( 'No', 'yop-poll-question-'~question.ID~'-add-other-answers-to-default-answers-no', 'yop_poll_question[question_'~question.ID~'][options][add_other_answers_to_default_answers]', "no", "radio", "", question.add_other_answers_to_default_answers, "no" ) }}
124
  </td>
125
  </tr>
126
  <tr class="yop_poll_suboption yop-poll-question-{{ question.ID }}-other-answers-label-div" id="yop-poll-display-other-answers-values-div" style="{% if 'yes' != question.allow_other_answers %} display: none; {% endif %}">
127
- <th> {{__( 'Display Other Answers Values' ) }}: </th>
128
  <td>
129
- {{ label( 'Yes', 'yop-poll-question-'~question.ID~'-display-other-answers-values-yes', 'yop_poll_question[question_'~question.ID~'][options][display_other_answers_values]', "yes", "radio", "", question.display_other_answers_values, "yes" ) }}
130
- {{ label( 'No', 'yop-poll-question-'~question.ID~'-display-other-answers-values-no', 'yop_poll_question[question_'~question.ID~'][options][display_other_answers_values]', "no", "radio", "", question.display_other_answers_values, "no" ) }}
131
  </td>
132
  </tr>
133
  <tr>
134
- <th> {{__( 'Allow Multiple Answers' ) }}: </th>
135
  <td>
136
- {{ label( 'Yes', 'yop-poll-question-'~question.ID~'-allow-multiple-answers-yes', 'yop_poll_question[question_'~question.ID~'][options][allow_multiple_answers]', "yes", "radio", "", question.allow_multiple_answers, "yes", 'yop_poll_show_div( \'.yop-poll-question-'~question.ID~'-allow-multiple-answers-div\' )' ) }}
137
- {{ label( 'No', 'yop-poll-question-'~question.ID~'-allow-multiple-answers-no', 'yop_poll_question[question_'~question.ID~'][options][allow_multiple_answers]', "no", "radio", "", question.allow_multiple_answers, "no" , 'yop_poll_hide_div( \'.yop-poll-question-'~question.ID~'-allow-multiple-answers-div\' )' ) }}
138
  </td>
139
  </tr>
140
  <tr class="yop_poll_suboption yop-poll-question-{{ question.ID }}-allow-multiple-answers-div" id="yop-poll-allow-multiple-answers-div" style="{% if 'yes' != question.allow_multiple_answers %} display: none; {% endif %}">
141
- <th> {{__( 'Maximum Number of allowed answers' ) }}: </th>
142
  <td>
143
  {{ input( question.allow_multiple_answers_number, 'yop-poll-question-'~question.ID~'-allow-multiple-answers-number', 'yop_poll_question[question_'~question.ID~'][options][allow_multiple_answers_number]' )}}
144
  </td>
145
  </tr>
146
  <tr class="yop_poll_suboption yop-poll-question-{{ question.ID }}-allow-multiple-answers-div" id="yop-poll-allow-multiple-answers-div1" style="{% if 'yes' != question.allow_multiple_answers %} display: none; {% endif %}">
147
- <th> {{__( 'Minimum Number of allowed answers' ) }}: </th>
148
  <td>
149
  {{ input( question.allow_multiple_answers_min_number, 'yop-poll-question-'~question.ID~'-allow-multiple-answers-min-number', 'yop_poll_question[question_'~question.ID~'][options][allow_multiple_answers_min_number]' )}}
150
  </td>
151
  </tr>
152
  <tr>
153
- <th>{{ __('Display Answers') }}:</th>
154
  <td>
155
- {{ label( 'Vertical', 'yop-poll-question-'~question.ID~'-display-answers-vertical', 'yop_poll_question[question_'~question.ID~'][options][display_answers]', "vertical", "radio", "", question.display_answers, "vertical", 'yop_poll_hide_div( \'.yop-poll-question-'~question.ID~'-display-answers-tabulated-div\' )' ) }}
156
- {{ label( 'Horizontal', 'yop-poll-question-'~question.ID~'-display-answers-orizontal', 'yop_poll_question[question_'~question.ID~'][options][display_answers]', "orizontal", "radio", "", question.display_answers, "orizontal", 'yop_poll_hide_div( \'.yop-poll-question-'~question.ID~'-display-answers-tabulated-div\' )' ) }}
157
- {{ label( 'Tabulated', 'yop-poll-question-'~question.ID~'-display-answers-tabulated', 'yop_poll_question[question_'~question.ID~'][options][display_answers]', "tabulated", "radio", "", question.display_answers, "tabulated", 'yop_poll_show_div( \'.yop-poll-question-'~question.ID~'-display-answers-tabulated-div\' )' ) }}
158
  </td>
159
  </tr>
160
  <tr class="yop_poll_suboption yop-poll-question-{{ question.ID }}-display-answers-tabulated-div" id="yop-poll-question-{{question.ID}}-display-answers-tabulated-div" style="{% if 'tabulated' != question.display_answers %} display: none; {% endif %}">
161
- <th>{{ __('Columns') }}:</th>
162
  <td>
163
- {{ input( question.display_answers_tabulated_cols, 'yop-poll-question-'~question.ID~'-display-answers-tabulated-cols', 'yop_poll_question[question_'~question.ID~'][options][display_answers_tabulated_cols]' )}}
164
  </td>
165
  </tr>
166
  <tr>
167
- <th>{{ __('Display Results') }}: </th>
168
  <td>
169
- {{ label( 'Vertical', 'yop-poll-question-'~question.ID~'-display-results-vertical', 'yop_poll_question[question_'~question.ID~'][options][display_results]', "vertical", "radio", "", question.display_results, "vertical", 'yop_poll_hide_div( \'.yop-poll-question-'~question.ID~'-display-results-tabulated-div\' )' ) }}
170
- {{ label( 'Horizontal', 'yop-poll-question-'~question.ID~'-display-results-orizontal', 'yop_poll_question[question_'~question.ID~'][options][display_results]', "orizontal", "radio", "", question.display_results, "orizontal", 'yop_poll_hide_div( \'.yop-poll-question-'~question.ID~'-display-results-tabulated-div\' )' ) }}
171
- {{ label( 'Tabulated', 'yop-poll-question-'~question.ID~'-display-results-tabulated', 'yop_poll_question[question_'~question.ID~'][options][display_results]', "tabulated", "radio", "", question.display_results, "tabulated", 'yop_poll_show_div( \'.yop-poll-question-'~question.ID~'-display-results-tabulated-div\' )' ) }}
172
  </td>
173
  </tr>
174
  <tr class="yop_poll_suboption yop-poll-question-{{ question.ID }}-display-results-tabulated-div" id="yop-poll-question-{{question.ID}}-display-results-tabulated-div" style="{% if 'tabulated' != question.display_results %} display: none; {% endif %}">
175
- <th> {{ __( 'Columns' ) }}: </th>
176
  <td>
177
  {{ input( question.display_results_tabulated_cols, 'yop-poll-question-'~question.ID~'-display-results-tabulated-cols', 'yop_poll_question[question_'~question.ID~'][options][display_results_tabulated_cols]') }}
178
  </td>
@@ -189,8 +189,8 @@
189
 
190
  <!-- Start Custom Fields section -->
191
  <div class="yop-poll-subsection postbox closed" id="yop-poll-customfieldsdiv">
192
- <div title="{{ __('Click to toggle') }}" class="handlediv"><br/> </div>
193
- <h4 class="yop-poll-subsection-title hndle" style="padding-top: 5px; padding-bottom: 5px; padding-left: 10px;">{{__( 'Custom Fields' ) }}:</h4>
194
  <div class="inside" style="border-top: 1px solid #AAAAAA;; padding-top: 5px;">
195
  <table cellspacing="0" class="links-table"
196
  id='yop-poll-customfields-table-{{question.ID}}'>
@@ -200,7 +200,7 @@
200
  <tr class="yop_poll_tr_customfields" id="yop_poll_tr_customfield-{{question.ID}}-{{ i+1 }}">
201
  <th scope="row">
202
  <label class="yop_poll_customfield_label" for="yop_poll_customfield-{{question.ID }}-{{ i+1 }}">
203
- {{ __('Custom field') }} {{ i+1 }}
204
  </label>
205
  </th>
206
  <td>
@@ -219,14 +219,16 @@
219
  type="checkbox"
220
  name="yop_poll_question[question_{{question.ID}}][custom_fields][{{i+1}}][required]"
221
  {{ checked( custom_field.required, 'yes' ) }}>
222
- {{ __('Required?') }}
223
  </label>
224
  </td>
225
  <td align="right">
 
226
  <input
227
  onclick="yop_poll_remove_customfield( '#yop-poll-customfields-table-{{question.ID}}', '{{question.ID}}', '{{ i+1 }}' )"
228
  type="button"
229
- value="{{ __( 'Delete' )}}"
 
230
  class="button yop-poll-button-delete"/></td>
231
  </tr>
232
  {% set i = i+1 %}
@@ -238,11 +240,13 @@
238
  <span class="spinner"></span>
239
  <p id="yop-poll-add-customfield-holder" style="display: block; float:right; ">
240
  <input type="hidden" id="yop-poll-question-{{question.ID}}-custom-fields-no" value="{{ i+1 }}">
241
- <input
 
242
  type="button"
 
243
  id="yop-poll-add-customfield-button"
244
  class="button-primary"
245
- value="{{ __( 'Add New Custom Field' ) }}"
246
  onclick="yop_poll_add_table_customfield( '#yop-poll-customfields-table-{{question.ID}}' , '{{ question.ID }}' )">
247
  </p> <br> <br>
248
 
@@ -263,3 +267,4 @@
263
 
264
  </div><!-- stuffbox -->
265
 
 
1
  <div class="postbox stuffbox" id="stuffbox-question-{{ question.ID }}">
2
 
3
+ <div title='{{ __("Click to toggle") }}' class="handlediv"><br/> </div>
4
 
5
  <h3 class="hndle">
6
 
7
+ <div class="yop-poll-movable yop-poll-movable-div"></div><span>{{ __("Question ") }} <span class="yop-poll-question-order-span">{{ question.poll_order }}</span> <span id="yop-poll-question-{{ question.ID }}-summar">{% if question.question %} - {{ substr( question.question, 0, 30 ) }}... {% endif %}</span></span>
8
 
9
  <input type="hidden" name="yop_poll_question[question_{{ question.ID }}][type]" value="text"/>
10
 
18
 
19
  <div class="yop-poll-subsection">
20
 
21
+ <h4 class="yop-poll-subsection-title">{{ __("Question Text") }}:</h4>
22
 
23
  <div class="yop-poll-subsection-body">
24
 
26
 
27
  <div class="yop-poll-subtitlewrap">
28
 
29
+ <label id="yop-poll-question-label-{{ question.ID }}" class="yop-poll-subtitle-prompt-text screen-reader-text" for="yop-poll-question-input{{ question.ID }}">{{ __("Enter Your Question Here") }}</label>
30
 
31
  <input id="yop-poll-question-input{{ question.ID }}" class="yop-poll-subtitle" type="text" name="yop_poll_question[question_{{ question.ID }}][question]" size="30" value="{{ question.question }}" onchange="yop_poll_change_question_summar( '{{ question.ID}}', this.value )">
32
 
43
  <!-- Start Answers section -->
44
  <div class="yop-poll-subsection">
45
 
46
+ <h4 class="yop-poll-subsection-title">{{ __("Answers") }}:</h4>
47
 
48
  <div class="yop-poll-subsection-body">
49
 
75
  <div id="publishing-action">
76
 
77
  <span class="spinner"></span>
78
+ <label for="yop-poll-edit-add-new-question-{{ question.ID }}-answer" class="button-primary">{{ __("Add New Answer") }}</label>
79
+ <input type="button" class="button-primary" value='{{ __("Add New Answer") }}' onclick="yop_poll_add_new_answer( '{{ question.ID }}', '', this,'text' )" style="display: none" id="yop-poll-edit-add-new-question-{{ question.ID }}-answer"/>
80
 
81
  </div>
82
  <!-- End Answers section -->
87
  <!-- Start Question Options section -->
88
  <div class="yop-poll-subsection postbox closed" style="">
89
 
90
+ <div title='{{ __("Click to toggle") }}' class="handlediv"><br/> </div>
91
 
92
+ <h4 class="yop-poll-subsection-title hndle" style="padding-top: 5px; padding-bottom: 5px; padding-left: 10px;">{{ __( "Question Options" ) }}:</h4>
93
 
94
  <div class="inside" style="border-top: 1px solid #AAAAAA;; padding-top: 5px;">
95
 
100
  {% from "form_macros.html" import yop_poll_input_field as input %}
101
  {% from "form_macros.html" import yop_poll_select as select %}
102
  <tr>
103
+ <th> {{ __("Allow other answers") }}:</th>
104
  <td>
105
+ {{ label( __("Yes"), 'yop-poll-question-'~question.ID~'-allow-other-answers-yes', 'yop_poll_question[question_'~question.ID~'][options][allow_other_answers]', "yes", "radio", "", question.allow_other_answers, "yes", 'yop_poll_show_div( \'.yop-poll-question-'~question.ID~'-other-answers-label-div\' )' ) }}
106
+ {{ label( __("No"), 'yop-poll-question-'~question.ID~'-allow-other-answers-no', 'yop_poll_question[question_'~question.ID~'][options][allow_other_answers]', "no", "radio", "", question.allow_other_answers, "no" , 'yop_poll_hide_div( \'.yop-poll-question-'~question.ID~'-other-answers-label-div\' )') }}
107
  </td>
108
  </tr>
109
  <tr class="yop_poll_suboption yop-poll-question-{{ question.ID }}-other-answers-label-div" id="yop-poll-other-answers-label-div" style="{% if 'yes' != question.allow_other_answers %} display: none; {% endif %}">
110
+ <th> {{ __("Other answer label") }}:</th>
111
  <td>
112
  {{ input( question.other_answers_label, 'yop-poll-other-answers-label', 'yop_poll_question[question_'~question.ID~'][options][other_answers_label]' ) }}
113
  {{ input( question.other_answers_id, '' , 'yop_poll_question[question_'~question.ID~'][options][other_answers_id]', 'hidden' ) }}
115
  </tr>
116
  <tr class="yop_poll_suboption yop-poll-question-{{ question.ID }}-other-answers-label-div" id="yop-poll-other-answers-label-div" style="{% if 'yes' != question.allow_other_answers %} display: none; {% endif %}">
117
  <th>
118
+ {{ __( "Add the values submitted in 'Other' as answers " ) }}:<br>
119
+ <small> {{ __("all the values submitted in this field by your users will be automatically added as an available 'Answer'") }}</small>
120
  </th>
121
  <td>
122
+ {{ label( __("Yes"), 'yop-poll-question-'~question.ID~'-add-other-answers-to-default-answers-yes', 'yop_poll_question[question_'~question.ID~'][options][add_other_answers_to_default_answers]', "yes", "radio", "", question.add_other_answers_to_default_answers, "yes" ) }}
123
+ {{ label( __("No"), 'yop-poll-question-'~question.ID~'-add-other-answers-to-default-answers-no', 'yop_poll_question[question_'~question.ID~'][options][add_other_answers_to_default_answers]', "no", "radio", "", question.add_other_answers_to_default_answers, "no" ) }}
124
  </td>
125
  </tr>
126
  <tr class="yop_poll_suboption yop-poll-question-{{ question.ID }}-other-answers-label-div" id="yop-poll-display-other-answers-values-div" style="{% if 'yes' != question.allow_other_answers %} display: none; {% endif %}">
127
+ <th> {{__( "Display Other Answers Values" ) }}: </th>
128
  <td>
129
+ {{ label( __("Yes"), 'yop-poll-question-'~question.ID~'-display-other-answers-values-yes', 'yop_poll_question[question_'~question.ID~'][options][display_other_answers_values]', "yes", "radio", "", question.display_other_answers_values, "yes" ) }}
130
+ {{ label( __("No"), 'yop-poll-question-'~question.ID~'-display-other-answers-values-no', 'yop_poll_question[question_'~question.ID~'][options][display_other_answers_values]', "no", "radio", "", question.display_other_answers_values, "no" ) }}
131
  </td>
132
  </tr>
133
  <tr>
134
+ <th> {{__( "Allow Multiple Answers" ) }}: </th>
135
  <td>
136
+ {{ label( __("Yes"), 'yop-poll-question-'~question.ID~'-allow-multiple-answers-yes', 'yop_poll_question[question_'~question.ID~'][options][allow_multiple_answers]', "yes", "radio", "", question.allow_multiple_answers, "yes", 'yop_poll_show_div( \'.yop-poll-question-'~question.ID~'-allow-multiple-answers-div\' )' ) }}
137
+ {{ label( __("No"), 'yop-poll-question-'~question.ID~'-allow-multiple-answers-no', 'yop_poll_question[question_'~question.ID~'][options][allow_multiple_answers]', "no", "radio", "", question.allow_multiple_answers, "no" , 'yop_poll_hide_div( \'.yop-poll-question-'~question.ID~'-allow-multiple-answers-div\' )' ) }}
138
  </td>
139
  </tr>
140
  <tr class="yop_poll_suboption yop-poll-question-{{ question.ID }}-allow-multiple-answers-div" id="yop-poll-allow-multiple-answers-div" style="{% if 'yes' != question.allow_multiple_answers %} display: none; {% endif %}">
141
+ <th> {{__( "Maximum Number of allowed answers" ) }}: </th>
142
  <td>
143
  {{ input( question.allow_multiple_answers_number, 'yop-poll-question-'~question.ID~'-allow-multiple-answers-number', 'yop_poll_question[question_'~question.ID~'][options][allow_multiple_answers_number]' )}}
144
  </td>
145
  </tr>
146
  <tr class="yop_poll_suboption yop-poll-question-{{ question.ID }}-allow-multiple-answers-div" id="yop-poll-allow-multiple-answers-div1" style="{% if 'yes' != question.allow_multiple_answers %} display: none; {% endif %}">
147
+ <th> {{__( "Minimum Number of allowed answers" ) }}: </th>
148
  <td>
149
  {{ input( question.allow_multiple_answers_min_number, 'yop-poll-question-'~question.ID~'-allow-multiple-answers-min-number', 'yop_poll_question[question_'~question.ID~'][options][allow_multiple_answers_min_number]' )}}
150
  </td>
151
  </tr>
152
  <tr>
153
+ <th>{{ __("Display Answers") }}:</th>
154
  <td>
155
+ {{ label( __("Vertical"), 'yop-poll-question-'~question.ID~'-display-answers-vertical', 'yop_poll_question[question_'~question.ID~'][options][display_answers]', "vertical", "radio", "yop-poll-vertical-question", question.display_answers, "vertical", 'yop_poll_hide_div( \'.yop-poll-question-'~question.ID~'-display-answers-tabulated-div\' )' ) }}
156
+ {{ label( __("Horizontal"), 'yop-poll-question-'~question.ID~'-display-answers-orizontal', 'yop_poll_question[question_'~question.ID~'][options][display_answers]', "orizontal", "radio", "yop-poll-orizontal-question", question.display_answers, "orizontal", 'yop_poll_hide_div( \'.yop-poll-question-'~question.ID~'-display-answers-tabulated-div\' )' ) }}
157
+ {{ label( __("Tabulated"), 'yop-poll-question-'~question.ID~'-display-answers-tabulated', 'yop_poll_question[question_'~question.ID~'][options][display_answers]', "tabulated", "radio", "", question.display_answers, "tabulated", 'yop_poll_show_div( \'.yop-poll-question-'~question.ID~'-display-answers-tabulated-div\' )' ) }}
158
  </td>
159
  </tr>
160
  <tr class="yop_poll_suboption yop-poll-question-{{ question.ID }}-display-answers-tabulated-div" id="yop-poll-question-{{question.ID}}-display-answers-tabulated-div" style="{% if 'tabulated' != question.display_answers %} display: none; {% endif %}">
161
+ <th>{{ __("Columns") }}:</th>
162
  <td>
163
+ {{ input( question.display_answers_tabulated_cols,'yop-poll-question-'~question.ID~'-display-answers-tabulated-cols','yop_poll_question[question_'~question.ID~'][options][display_answers_tabulated_cols]','text','','yop-poll-tabulated-cols' )}}
164
  </td>
165
  </tr>
166
  <tr>
167
+ <th>{{ __("Display Results") }}: </th>
168
  <td>
169
+ {{ label( __("Vertical"), 'yop-poll-question-'~question.ID~'-display-results-vertical', 'yop_poll_question[question_'~question.ID~'][options][display_results]', "vertical", "radio", "", question.display_results, "vertical", 'yop_poll_hide_div( \'.yop-poll-question-'~question.ID~'-display-results-tabulated-div\' )' ) }}
170
+ {{ label( __("Horizontal"), 'yop-poll-question-'~question.ID~'-display-results-orizontal', 'yop_poll_question[question_'~question.ID~'][options][display_results]', "orizontal", "radio", "", question.display_results, "orizontal", 'yop_poll_hide_div( \'.yop-poll-question-'~question.ID~'-display-results-tabulated-div\' )' ) }}
171
+ {{ label( __("Tabulated"), 'yop-poll-question-'~question.ID~'-display-results-tabulated', 'yop_poll_question[question_'~question.ID~'][options][display_results]', "tabulated", "radio", "", question.display_results, "tabulated", 'yop_poll_show_div( \'.yop-poll-question-'~question.ID~'-display-results-tabulated-div\' )' ) }}
172
  </td>
173
  </tr>
174
  <tr class="yop_poll_suboption yop-poll-question-{{ question.ID }}-display-results-tabulated-div" id="yop-poll-question-{{question.ID}}-display-results-tabulated-div" style="{% if 'tabulated' != question.display_results %} display: none; {% endif %}">
175
+ <th> {{ __( "Columns" ) }}: </th>
176
  <td>
177
  {{ input( question.display_results_tabulated_cols, 'yop-poll-question-'~question.ID~'-display-results-tabulated-cols', 'yop_poll_question[question_'~question.ID~'][options][display_results_tabulated_cols]') }}
178
  </td>
189
 
190
  <!-- Start Custom Fields section -->
191
  <div class="yop-poll-subsection postbox closed" id="yop-poll-customfieldsdiv">
192
+ <div title='{{ __("Click to toggle") }}' class="handlediv"><br/> </div>
193
+ <h4 class="yop-poll-subsection-title hndle" style="padding-top: 5px; padding-bottom: 5px; padding-left: 10px;">{{__( "Custom Fields" ) }}:</h4>
194
  <div class="inside" style="border-top: 1px solid #AAAAAA;; padding-top: 5px;">
195
  <table cellspacing="0" class="links-table"
196
  id='yop-poll-customfields-table-{{question.ID}}'>
200
  <tr class="yop_poll_tr_customfields" id="yop_poll_tr_customfield-{{question.ID}}-{{ i+1 }}">
201
  <th scope="row">
202
  <label class="yop_poll_customfield_label" for="yop_poll_customfield-{{question.ID }}-{{ i+1 }}">
203
+ {{ __("Custom field") }} {{ i+1 }}
204
  </label>
205
  </th>
206
  <td>
219
  type="checkbox"
220
  name="yop_poll_question[question_{{question.ID}}][custom_fields][{{i+1}}][required]"
221
  {{ checked( custom_field.required, 'yes' ) }}>
222
+ {{ __("Required?") }}
223
  </label>
224
  </td>
225
  <td align="right">
226
+
227
  <input
228
  onclick="yop_poll_remove_customfield( '#yop-poll-customfields-table-{{question.ID}}', '{{question.ID}}', '{{ i+1 }}' )"
229
  type="button"
230
+
231
+ value='{{ __( "Delete" )}}'
232
  class="button yop-poll-button-delete"/></td>
233
  </tr>
234
  {% set i = i+1 %}
240
  <span class="spinner"></span>
241
  <p id="yop-poll-add-customfield-holder" style="display: block; float:right; ">
242
  <input type="hidden" id="yop-poll-question-{{question.ID}}-custom-fields-no" value="{{ i+1 }}">
243
+ <label for="yop-poll-add-customfield-button" class="button-primary">{{ __( "Add New Custom Field" ) }}</label>
244
+ <input
245
  type="button"
246
+ style="display: none"
247
  id="yop-poll-add-customfield-button"
248
  class="button-primary"
249
+ value='{{ __( "Add New Custom Field" ) }}'
250
  onclick="yop_poll_add_table_customfield( '#yop-poll-customfields-table-{{question.ID}}' , '{{ question.ID }}' )">
251
  </p> <br> <br>
252
 
267
 
268
  </div><!-- stuffbox -->
269
 
270
+
templates/polls_question_template_media.html CHANGED
@@ -1,10 +1,10 @@
1
  <div class="postbox stuffbox" id="stuffbox-question-{{ question.ID }}">
2
 
3
- <div title="{{ __('Click to toggle') }}" class="handlediv"><br/> </div>
4
 
5
  <h3 class="hndle">
6
 
7
- <div class="yop-poll-movable yop-poll-movable-div"></div><span>{{ __('Question ') }} <span class="yop-poll-question-order-span">{{ question.poll_order }}</span> <span id="yop-poll-question-{{ question.ID }}-summar">{% if question.question %} - {{ substr( question.question, 0, 30 ) }}... {% endif %}</span></span>
8
  <input type="hidden" name="yop_poll_question[question_{{ question.ID }}][type]" value="media"/>
9
  <input type="hidden" name="yop_poll_question[question_{{ question.ID }}][question_id]" value="{{ question.ID }}"/>
10
 
@@ -16,7 +16,7 @@
16
 
17
  <div class="yop-poll-subsection">
18
 
19
- <h4 class="yop-poll-subsection-title">{{ __('Question Text') }}:</h4>
20
 
21
  <div class="yop-poll-subsection-body">
22
 
@@ -24,7 +24,7 @@
24
 
25
  <div class="yop-poll-subtitlewrap">
26
 
27
- <label id="yop-poll-question-label-{{ question.ID }}" class="yop-poll-subtitle-prompt-text screen-reader-text" for="yop-poll-question-input{{ question.ID }}">{{ __('Enter Your Question Here') }}</label>
28
 
29
  <input id="yop-poll-question-input{{ question.ID }}" class="yop-poll-subtitle" type="text" name="yop_poll_question[question_{{ question.ID }}][question]" size="30" value="{{ question.question }}" onchange="yop_poll_change_question_summar( '{{ question.ID}}', this.value )">
30
 
@@ -41,7 +41,7 @@
41
  <!-- Start Answers section -->
42
  <div class="yop-poll-subsection">
43
 
44
- <h4 class="yop-poll-subsection-title">{{ __('Answers') }}:</h4>
45
 
46
  <div class="yop-poll-subsection-body">
47
 
@@ -75,7 +75,7 @@
75
 
76
  <span class="spinner"></span>
77
 
78
- <input type="button" class="button-primary" value="{{ __('Add New Answer') }}" onclick="yop_poll_add_new_answer( '{{ question.ID }}', '', this,'media' )" id="yop-poll-edit-add-new-question-{{ question.ID }}-answer"/>
79
 
80
  </div>
81
  <!-- End Answers section -->
1
  <div class="postbox stuffbox" id="stuffbox-question-{{ question.ID }}">
2
 
3
+ <div title='{{ __("Click to toggle") }}' class="handlediv"><br/> </div>
4
 
5
  <h3 class="hndle">
6
 
7
+ <div class="yop-poll-movable yop-poll-movable-div"></div><span>{{ __("Question") }} <span class="yop-poll-question-order-span">{{ question.poll_order }}</span> <span id="yop-poll-question-{{ question.ID }}-summar">{% if question.question %} - {{ substr( question.question, 0, 30 ) }}... {% endif %}</span></span>
8
  <input type="hidden" name="yop_poll_question[question_{{ question.ID }}][type]" value="media"/>
9
  <input type="hidden" name="yop_poll_question[question_{{ question.ID }}][question_id]" value="{{ question.ID }}"/>
10
 
16
 
17
  <div class="yop-poll-subsection">
18
 
19
+ <h4 class="yop-poll-subsection-title">{{ __("Question Text") }}:</h4>
20
 
21
  <div class="yop-poll-subsection-body">
22
 
24
 
25
  <div class="yop-poll-subtitlewrap">
26
 
27
+ <label id="yop-poll-question-label-{{ question.ID }}" class="yop-poll-subtitle-prompt-text screen-reader-text" for="yop-poll-question-input{{ question.ID }}">{{ __("Enter Your Question Here") }}</label>
28
 
29
  <input id="yop-poll-question-input{{ question.ID }}" class="yop-poll-subtitle" type="text" name="yop_poll_question[question_{{ question.ID }}][question]" size="30" value="{{ question.question }}" onchange="yop_poll_change_question_summar( '{{ question.ID}}', this.value )">
30
 
41
  <!-- Start Answers section -->
42
  <div class="yop-poll-subsection">
43
 
44
+ <h4 class="yop-poll-subsection-title">{{ __("Answers") }}:</h4>
45
 
46
  <div class="yop-poll-subsection-body">
47
 
75
 
76
  <span class="spinner"></span>
77
 
78
+ <input type="button" class="button-primary" value='{{ __("Add New Answer") }}' onclick="yop_poll_add_new_answer( '{{ question.ID }}', '', this,'media' )" id="yop-poll-edit-add-new-question-{{ question.ID }}-answer"/>
79
 
80
  </div>
81
  <!-- End Answers section -->
templates/polls_results.html CHANGED
@@ -1,7 +1,7 @@
1
  {% extends "polls_base.html" %}
2
  {%block addnew%}
3
  <a class = "add-new-h2"
4
- href = "{{ esc_url( add_query_arg( { 'page' : 'yop-polls', 'id' : false, 'deleted' : false, 'cloned' : false,'action':false } ) ) | raw }}">{{__( 'All Polls')}}</a>
5
  {%endblock addnew%}
6
 
7
  {%block content%}
@@ -20,21 +20,22 @@
20
  <input type = "hidden" name = "oa_per_page" value = "{{oa_per_page}}"/>
21
  <div class = "tablenav top">
22
  <div class = "alignleft actions">
23
- <div style = "display:inline; float:left; margin:7px;">{{__( 'Order By' )}}</div>
24
  <select name = "results_order_by">
25
- <option {{selected( results_order_by, 'answer' )}} value="answer">{{__( 'Answer Value' )}}</option>
26
- <option {{ selected( results_order_by, 'votes' )}} value="votes">{{__( 'Votes' )}}</option>
27
  </select>
28
  <select name = "results_order">
29
- <option {{ selected( results_order, 'ASC' )}} value="ASC">{{__( 'ASC' )}}</option>
30
- <option {{ selected( results_order, 'DESC' )}} value="DESC">{{__( 'DESC' )}}</option>
31
  </select>
32
  &nbsp;| &nbsp;
33
  <input type = "checkbox" value = "yes" {{checked( soav, 'yes' )}} name="soav" id="yop-poll-show_other_answers_values"/>
34
- <label for = "yop-poll-show_other_answers_values">{{__( 'Show Other Answers Values')}}</label>
 
35
  <input type = "submit"
36
- value = "{{__( 'Filter' )}}"
37
- class = "button-secondary action" id = "doaction" name = "a">
38
  </div>
39
 
40
  </div>
@@ -47,9 +48,9 @@
47
  {% for question_detail in questions_details%}
48
  {%set i=i+1%}
49
  <div class = "postbox stuffbox">
50
- <div title = "{{ __('Click to toggle') }}" class = "handlediv"><br/></div>
51
  <h3 class = "hndle">
52
- <span>{{ __('Question') }}:
53
  <span class = "yop-poll-question-order-span">{{ question.poll_order }}</span>
54
  <span id = "yop-poll-question-{{ question_detail.q_id }}-summar">{{ esc_html( stripslashes( question_detail.name) )}}</span>
55
  </span>
@@ -60,9 +61,9 @@
60
  <table class="wp-list-table widefat fixed" cellspacing="0">
61
  <thead>
62
  <tr>
63
- <th id="" class="column-answer" style="width: 40%;" scope="col">{{ __ ('Answer') }}</th>
64
- <th id="" class="column-votes" style="width: 5%;" scope="col">{{ __ ('Votes') }}</th>
65
- <th id="" class="column-percent" style="width: 5%;" scope="col">{{ __ ('Percent') }}</th>
66
  <th id="" class="column-bar" style="width: 45%;" scope="col"></th>
67
  </tr>
68
 
@@ -88,16 +89,16 @@
88
 
89
 
90
  </div>
91
- <div title = "{{ __('Click to toggle') }}" class = "handlediv"><br/> </div>
92
 
93
- <h4 class = "yop-poll-subsection-title hndle" style = "padding-top: 5px; padding-bottom: 5px; padding-left: 10px;">{{__( 'Other Answers')}}:</h4>
94
 
95
  <div class = "inside" style = "border-top: 1px solid #AAAAAA; padding: 0px;">
96
 
97
  <table class="wp-list-table widefat fixed" cellspacing="0">
98
  <thead>
99
- <th id="" class="column-answer" style="width: 40%;" scope="col">{{ __ ('Other Answer') }}</th>
100
- <th id="" class="column-votes" style="width: 5%;" scope="col">{{ __ ('Votes') }}</th>
101
  </thead>
102
  <tbody>
103
  {%for answerr in question_detail.answers%}
1
  {% extends "polls_base.html" %}
2
  {%block addnew%}
3
  <a class = "add-new-h2"
4
+ href = "{{ esc_url( add_query_arg( { 'page' : 'yop-polls', 'id' : false, 'deleted' : false, 'cloned' : false,'action':false } ) ) | raw }}">{{__( "All Polls")}}</a>
5
  {%endblock addnew%}
6
 
7
  {%block content%}
20
  <input type = "hidden" name = "oa_per_page" value = "{{oa_per_page}}"/>
21
  <div class = "tablenav top">
22
  <div class = "alignleft actions">
23
+ <div style = "display:inline; float:left; margin:7px;">{{__( "Order By" )}}</div>
24
  <select name = "results_order_by">
25
+ <option {{selected( results_order_by, 'answer' )}} value="answer">{{__( "Answer Value" )}}</option>
26
+ <option {{ selected( results_order_by, 'votes' )}} value="votes">{{__( "Votes" )}}</option>
27
  </select>
28
  <select name = "results_order">
29
+ <option {{ selected( results_order, 'ASC' )}} value="ASC">{{__( "ASC" )}}</option>
30
+ <option {{ selected( results_order, 'DESC' )}} value="DESC">{{__( "DESC" )}}</option>
31
  </select>
32
  &nbsp;| &nbsp;
33
  <input type = "checkbox" value = "yes" {{checked( soav, 'yes' )}} name="soav" id="yop-poll-show_other_answers_values"/>
34
+ <label for = "yop-poll-show_other_answers_values">{{__( "Show Other Answers Values")}}</label>
35
+ <label for="doaction2" class="button-secondary">{{__( "Filter" ) }}</label>
36
  <input type = "submit"
37
+ value = '{{__( "Filter" )}}' style="display: none"
38
+ class = "button-secondary action" id = "doaction2" name = "a">
39
  </div>
40
 
41
  </div>
48
  {% for question_detail in questions_details%}
49
  {%set i=i+1%}
50
  <div class = "postbox stuffbox">
51
+ <div title = '{{ __("Click to toggle") }}' class = "handlediv"><br/></div>
52
  <h3 class = "hndle">
53
+ <span>{{ __("Question") }}:
54
  <span class = "yop-poll-question-order-span">{{ question.poll_order }}</span>
55
  <span id = "yop-poll-question-{{ question_detail.q_id }}-summar">{{ esc_html( stripslashes( question_detail.name) )}}</span>
56
  </span>
61
  <table class="wp-list-table widefat fixed" cellspacing="0">
62
  <thead>
63
  <tr>
64
+ <th id="" class="column-answer" style="width: 40%;" scope="col">{{ __ ("Answer") }}</th>
65
+ <th id="" class="column-votes" style="width: 5%;" scope="col">{{ __ ("Votes") }}</th>
66
+ <th id="" class="column-percent" style="width: 5%;" scope="col">{{ __ ("Percent") }}</th>
67
  <th id="" class="column-bar" style="width: 45%;" scope="col"></th>
68
  </tr>
69
 
89
 
90
 
91
  </div>
92
+ <div title = '{{ __("Click to toggle") }}' class = "handlediv"><br/> </div>
93
 
94
+ <h4 class = "yop-poll-subsection-title hndle" style = "padding-top: 5px; padding-bottom: 5px; padding-left: 10px;">{{__( "Other Answers")}}:</h4>
95
 
96
  <div class = "inside" style = "border-top: 1px solid #AAAAAA; padding: 0px;">
97
 
98
  <table class="wp-list-table widefat fixed" cellspacing="0">
99
  <thead>
100
+ <th id="" class="column-answer" style="width: 40%;" scope="col">{{ __ ("Other Answer") }}</th>
101
+ <th id="" class="column-votes" style="width: 5%;" scope="col">{{ __ ("Votes") }}</th>
102
  </thead>
103
  <tbody>
104
  {%for answerr in question_detail.answers%}
templates/polls_results_print.html ADDED
@@ -0,0 +1,566 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+
3
+
4
+
5
+ {%block content%}
6
+
7
+
8
+ <div class = "wrap results_not_remove" style = "position: relative;">
9
+
10
+ {% if poll_details %}
11
+
12
+
13
+ <div id = "poststuff">
14
+ <div id = "post-body" class = "metabox-holder columns-1">
15
+ <div class = "meta-box-sortables ui-sortable">
16
+ <div class = "postbox-container content">
17
+ {%set i=0%}
18
+
19
+ {% for question_detail in questions_details%}
20
+ {%set i=i+1%}
21
+ {%if question_print %}
22
+ <div class = "postbox stuffbox">
23
+ <div title = '{{ __("Click to toggle") }}' class = "handlediv"><br/></div>
24
+ <h3 class = "hndle">
25
+ <span>{{ __("Question") }}:
26
+ <span class = "yop-poll-question-order-span">{{ question.poll_order }}</span>
27
+ <span id = "yop-poll-question-{{ question_detail.q_id }}-summar">{{ esc_html( stripslashes( question_detail.name) )}}</span>
28
+ </span>
29
+ </h3>
30
+
31
+ <div class = "inside" style = "padding: 0px;">
32
+ <div id = "poststuff1">
33
+ <div class = "yop-poll-subsection postbox">
34
+ <table class="wp-list-table widefat fixed" cellspacing="0">
35
+ <thead>
36
+ <tr>
37
+ <th class="column-answer" style="width: 40%;" scope="col">{{ __ ("Answer") }}</th>
38
+ <th class="column-votes" style="width: 5%;" scope="col">{{ __ ("Votes") }}</th>
39
+ <th class="column-percent" style="width: 5%;" scope="col">{{ __ ("Percent") }}</th>
40
+ <th class="column-bar" style="width: 45%;" scope="col"></th>
41
+ </tr>
42
+
43
+
44
+ </thead>
45
+
46
+ <tbody>
47
+ {% for answerr in question_detail.answers%}
48
+ <tr>
49
+ <th> {{answerr.answer}}</th>
50
+ <th>{{answerr.votes}}</th>
51
+ <th>{{answerr.status}} %</th>
52
+ <td><span class="yop-poll-admin-result-bar" style="width:{{(answerr.status*5)}}px">
53
+ </span></td>
54
+ </tr>
55
+ {%endfor%}
56
+ </tbody>
57
+ </table>
58
+
59
+
60
+ </div>
61
+ </div>
62
+ </div>
63
+
64
+ </div>
65
+ {% endif%}
66
+ <br>
67
+ {%if other_print%}
68
+ <div class="postbox stuffbox">
69
+ <div class = "inside" style = "padding: 0px;">
70
+ <div class = "yop-poll-subsection postbox">
71
+
72
+ <div title = "{{ __('Click to toggle') }}" class = "handlediv"><br/> </div>
73
+
74
+ <h4 class = "yop-poll-subsection-title hndle" style = "padding-top: 5px; padding-bottom: 5px; padding-left: 10px;">{{__( "Poll Other Answers")}}:</h4>
75
+
76
+ <div class = "inside" style = " padding: 0px;">
77
+ <div>
78
+ <table class = "wp-list-table widefat fixed" cellspacing = "0">
79
+ <thead>
80
+ <tr>
81
+ <th class = "column-answer" scope = "col">{{__( "Value" )}}</th>
82
+ <th class = "column-votes" scope = "col">{{__( "Votes" )}}</th>
83
+
84
+ </tr>
85
+ </thead>
86
+ <tbody>
87
+ {%set index=0%}
88
+ {% for answer in question_detail.answers%}
89
+ <tr>
90
+ {% if answer.type == 'other' %}
91
+ <th>{{ esc_html( stripslashes( answer.answer ) )}}</th>
92
+ <td>{{ esc_html( stripslashes( answer.votes ) )}}</td>
93
+ {%set index=1 %}
94
+ {%endif%}
95
+ </tr>
96
+ {%endfor%}
97
+ {% if index==0 %}
98
+ <tr>
99
+ <td colspan = "2">{{__( 'No other answers defined!')}}</td>
100
+ </tr>
101
+ {%endif%}
102
+ </tbody>
103
+ </table>
104
+ </div>
105
+ </div>
106
+ </div>
107
+ </div>
108
+ </div>
109
+ {% endif%}
110
+ <br>
111
+ {%if custom_print%}
112
+ <div class="postbox stuffbox">
113
+ <div class = "inside" style = "padding: 0px;">
114
+ <div class = "yop-poll-subsection postbox">
115
+
116
+ <div title = '{{ __("Click to toggle") }}' class = "handlediv"><br/> </div>
117
+
118
+ <h4 class = "yop-poll-subsection-title hndle" style = "padding-top: 5px; padding-bottom: 5px; padding-left: 10px;">
119
+ {{__( "Custom Fields")}}:
120
+ </h4>
121
+ <form method = "get" action = "">
122
+ <div>
123
+ <div style = "position: absolute; float: right; top: 0px; right: 30px;">
124
+ {{ wp_nonce_field( 'yop-poll-custom-fields', 'yop-poll-custom-fields', false, false ) | raw }}
125
+ <label for = "yop-poll-items-per-page" class = "displaying-num">{{__( "Items Per Page" )}}:</label>
126
+ <input style="margin-top: 4px;"
127
+ id = "yop-poll-items-per-page" type = "text" name = "cf_per_page"
128
+ value = "{{cf_per_page}}"/>
129
+ <input name = "a"
130
+ value = '{{__( "Set")}}' class="button-secondary" style="margin-top: 2px;"
131
+ type = "submit"/>&nbsp;&nbsp;
132
+ <span class = "displaying-num">
133
+ {{ count( question_detail.custom_fields_logs_details)}} / {{question_detail.total_custom_fields_logs}} {{__( "items")}}
134
+ </span>
135
+ <input type="hidden" name="page" value="yop-polls">
136
+ <input type="hidden" name="action" value="resultvotes">
137
+ <input type="hidden" name="cf_page_no" value="{{cf_page_no}}">
138
+ <input type = "hidden" name = "id" value = "{{poll_id}}"/>
139
+ <input type = "hidden" name = "q_id" value = "{{ question_detail.q_id }}"/>
140
+ {{question_detail.cf_pagination | raw}}
141
+ <select name = "export">
142
+ <option value = "page">{{__( "This Page")}}</option>
143
+ <option value = "all">{{__( "All Pages")}}</option>
144
+ </select>
145
+ <input type = "submit" value = '{{__( "Export" )}}' class = "button-secondary action" id = "doaction" name = "a">
146
+ </div>
147
+ </div>
148
+ </form>
149
+
150
+ <div class = "inside" style = "border-top: 1px solid #AAAAAA; padding: 0px;">
151
+ <table class = "wp-list-table widefat fixed">
152
+ <thead>
153
+ <tr>
154
+ <th class = "column-answer" scope = "col">{{__( '#' )}}</th>
155
+ {% for custom_field in question_detail.custom_fields %}
156
+
157
+ <th id = "custom_field_{{custom_field.ID}}"
158
+ class = "column-custom-field"
159
+ scope = "col">{{ ucfirst( custom_field.custom_field )}}</th>
160
+ {%endfor%}
161
+ <th class = "column-vote-id" style = "width:20%"
162
+ scope = "col">{{__( "Vote ID")}}</th>
163
+ <th class = "column-tr-id" style = "width:15%"
164
+ scope = "col">{{__( "Tracking ID" )}}</th>
165
+ <th class = "column-vote-date" style = "width:15%"
166
+ scope = "col">{{__( "Vote Date")}}</th>
167
+ </tr>
168
+ </thead>
169
+ <tbody>
170
+ {%set index=0%}
171
+ {%for custom_field_detail in question_detail.custom_fields_logs_details%}
172
+ <tr>
173
+ {%set index=index+1%}
174
+ <td>{{index}}</td>
175
+ {%for id in custom_field_detail.column_custom_fields_ids%}
176
+ {%set value=custom_field_detail.custom_fields_value%}
177
+
178
+ <td>{{value[id]}}</td>
179
+
180
+ {%endfor%}
181
+ <td>{{custom_field_detail.vote_id}}</td>
182
+ <td>{{custom_field_detail.tr_id}}</td>
183
+ <td>{{custom_field_detail.vote_date}}</td>
184
+
185
+ </tr>
186
+ {% else %}
187
+ <tr>
188
+ <td colspan="4">
189
+ {{ __("No Custom Field Defined") }}
190
+ </td>
191
+ </tr>
192
+ {%endfor%}
193
+ </tbody>
194
+ </table>
195
+ </div>
196
+ </div>
197
+ </div>
198
+ </div>
199
+ {% endif%}
200
+ <br>
201
+ {% endfor %}
202
+
203
+ </div>
204
+ </div>
205
+ </div>
206
+ </div>
207
+
208
+ <form method="" id="show_results">
209
+
210
+
211
+
212
+ {{ wp_nonce_field( 'yop-poll-results_vote','yop-poll-results_votes', false, false ) | raw }}
213
+
214
+
215
+
216
+
217
+ {%if votes_print%}
218
+ <table class="wp-list-table widefat fixed" cellspacing="0" id="table_results">
219
+
220
+ <thead>
221
+
222
+ <tr>
223
+
224
+
225
+
226
+
227
+
228
+
229
+ {%if votes_id%}
230
+ </th> <th
231
+
232
+ style="width: 30%" scope="col">
233
+
234
+
235
+
236
+ <span>{{__( 'Vote ID')}}</span>
237
+
238
+
239
+
240
+ </a></th>
241
+ {%endif%}
242
+
243
+
244
+
245
+ {%if user_type%}
246
+ <th
247
+
248
+ class="manage-column {{order_sortable.user_type}} {{order_direction_reverse.user_type}}"
249
+
250
+ style="width: 22%" scope="col">
251
+
252
+ <span>{{__( 'User Type')}}</span>
253
+
254
+ </a></th>
255
+ {%endif%}
256
+
257
+ {%if track_id%}
258
+ <th
259
+
260
+ class="manage-column {{order_sortable.tr_id}} {{order_direction_reverse.tr_id}}"
261
+
262
+ href="{{esc_url( add_query_arg( array( {'orderby' : 'tr_id', 'order' : order_direction.tr_id,'action' :'resultvotes'} ) ) )}}"
263
+
264
+ style="width: 16%" scope="col">
265
+
266
+ <span>{{( 'Tracking ID')}}</span>
267
+
268
+ </a></th>
269
+ {%endif%}
270
+
271
+ {%if ip_print%}
272
+ <th
273
+
274
+ class="manage-column {{order_sortable.ip}} {{order_direction_reverse.ip}}"
275
+
276
+ style="width: 22%" scope="col">
277
+
278
+ <span>{{__( 'Ip' )}}</span>
279
+
280
+ </a></th>
281
+ {%endif%}
282
+
283
+
284
+
285
+
286
+
287
+ {%if date_print%}
288
+ </a></th> <th
289
+
290
+ class="manage-column {{order_sortable.vote_date}} {{order_direction_reverse.vote_date}}"
291
+
292
+ style="width: 25%" scope="col">
293
+
294
+
295
+
296
+ <span>{{__( 'Vote Date')}}</span> <span
297
+
298
+
299
+
300
+ ></span>
301
+
302
+
303
+
304
+
305
+ {%endif%}
306
+ <th style="width: 19%;">
307
+
308
+ <span>{{__( 'Vote')}}</span>
309
+
310
+ </th>
311
+ </tr>
312
+
313
+ </thead>
314
+ <tfoot>
315
+
316
+ <tr>
317
+
318
+
319
+
320
+
321
+
322
+
323
+ {%if votes_id%}
324
+ <th
325
+
326
+ style="width: 12%" scope="col">
327
+
328
+
329
+
330
+ <span>{{__( 'Vote ID')}}</span>
331
+
332
+
333
+
334
+ </a></th>
335
+ {%endif%}
336
+
337
+
338
+
339
+ {%if user_type%}
340
+ <th id="user_from"
341
+
342
+ class="manage-column {{order_sortable.user_type}} {{order_direction_reverse.user_type}}"
343
+
344
+ style="width: 6%" scope="col">
345
+
346
+ <span>{{__( 'User Type')}}</span>
347
+
348
+ </a></th>
349
+ {%endif%}
350
+
351
+ {%if track_id%}
352
+ <th id="tr_id"
353
+
354
+ class="manage-column {{order_sortable.tr_id}} {{order_direction_reverse.tr_id}}"
355
+
356
+ href="{{esc_url( add_query_arg( array( {'orderby' : 'tr_id', 'order' : order_direction.tr_id,'action' :'resultvotes'} ) ) )}}"
357
+
358
+ style="width: 16%" scope="col">
359
+
360
+ <span>{{( 'Tracking ID')}}</span>
361
+
362
+ </a></th>
363
+ {%endif%}
364
+ {%if ip_print%}
365
+ <th id="ip"
366
+
367
+ class="manage-column {{order_sortable.ip}} {{order_direction_reverse.ip}}"
368
+
369
+ style="width: 8%" scope="col">
370
+
371
+ <span>{{__( 'Ip' )}}</span>
372
+
373
+ </a></th>
374
+ {%endif%}
375
+
376
+
377
+
378
+
379
+
380
+ {%if date_print%}
381
+ </a></th> <th id="period"
382
+
383
+ class="manage-column {{order_sortable.vote_date}} {{order_direction_reverse.vote_date}}"
384
+
385
+ style="width: 11%" scope="col">
386
+
387
+
388
+
389
+ <span>{{__( 'Vote Date')}}</span> <span ></span>
390
+
391
+
392
+ {%endif%}
393
+ <th style="width: 19%;">
394
+
395
+ <span>{{__( 'Vote')}}</span>
396
+
397
+ </th>
398
+ </tr>
399
+
400
+ </tfoot>
401
+
402
+
403
+ {%set index=1%}
404
+
405
+
406
+
407
+
408
+
409
+ <tbody id="the-list">
410
+ {% if count( results ) > 0 %}
411
+
412
+ {% for result in results %}
413
+
414
+ <tr valign="middle" class="alternate"
415
+
416
+ id="yop-poll-log{{log.id}}">
417
+
418
+
419
+ {%if votes_id%}
420
+ <td><strong>{{result.vote_id}}</strong><br>
421
+
422
+ <br>
423
+
424
+ <div class="row-actions">
425
+
426
+
427
+
428
+
429
+
430
+
431
+ </div></td>
432
+ {%endif%}
433
+ <td style="display: none"><input id="yop-poll-results-ip_{{index}}" value="{{esc_html( stripslashes( result.ip ))}}"><input></td>
434
+
435
+ <td style="display: none"><input id="yop-poll-results-userid_{{index}}" value="{{esc_html( stripslashes( result.user_id ))}}"><input></td>
436
+
437
+
438
+ {%if user_type%}
439
+ <td>
440
+
441
+ {{esc_html( stripslashes(result.user_type ))}}
442
+
443
+ </td>
444
+ {%endif%}
445
+ {%if track_id%}
446
+ <td>
447
+
448
+ {{esc_html( stripslashes( result.tr_id ))}}
449
+
450
+ </td>
451
+ {%endif%}
452
+ {%if ip_print%}
453
+ <td>
454
+
455
+ {{esc_html( stripslashes( result.ip ))}}
456
+
457
+ </td>
458
+ {%endif%}
459
+ {%if date_print%}
460
+ <td>
461
+
462
+ {{esc_html( stripslashes( result.vote_date ))}}
463
+
464
+ </td>
465
+ {%endif%}
466
+ <td>
467
+ {{__("Questions")}}<br><strong> {{result.vote_answers |nl2br}}</strong><br>
468
+ {%if strlen (result.custom_fields)>1%}
469
+ {{__("Custom Fields")}}<br><strong>{{ result.custom_fields|nl2br}}</strong>
470
+
471
+
472
+ </td>
473
+ {%endif%}
474
+
475
+ </tr>
476
+
477
+ <tr style="display: none; " class="results_details">
478
+
479
+ <td></td> <td></td>
480
+
481
+
482
+
483
+ <td>
484
+ {{__("Questions")}}<br><strong> {{result.vote_answers |nl2br}}</strong><br>
485
+ {%if strlen (result.custom_fields)>1%}
486
+ {{__("Custom Fields")}}<br><strong>{{ result.custom_fields|nl2br}}</strong>
487
+ </td>
488
+
489
+ </td>
490
+ {%endif%}
491
+ </tr>
492
+ {%set index=index+1%}
493
+
494
+ {%endfor%}
495
+
496
+ {%endif%}
497
+
498
+ </tbody>
499
+
500
+
501
+
502
+ </table>
503
+
504
+ <div class="tablenav bottom">
505
+
506
+ <div class="tablenav-pages one-page">
507
+
508
+ <span class="displaying-num">{{count( results )}} / {{total_results}}
509
+
510
+ results</span>
511
+
512
+ {{pagination | raw}}
513
+
514
+ </div>
515
+
516
+ </div>
517
+ {%endif%}
518
+ </form>
519
+
520
+ </div>
521
+
522
+
523
+
524
+
525
+
526
+
527
+ </div>
528
+
529
+
530
+
531
+ {%else %}
532
+ <h3>{{__( 'Your poll doesn`t exist!' )}}</h3>
533
+ {%endif%}
534
+ </div>
535
+ <div style="position: absolute">
536
+ </div>
537
+
538
+ <script type="text/javascript">
539
+
540
+
541
+
542
+ jQuery(".results_not_remove").parents().each(function(){
543
+ if(jQuery(this).is('div'))
544
+ jQuery(".results_not_remove").unwrap();
545
+ }) ;
546
+ jQuery('body').find('div').each(function(){
547
+ if(!jQuery(this).hasClass('results_not_remove'))
548
+ jQuery(this).remove();
549
+ else{
550
+ jQuery(this).find('*').each(function(){
551
+ jQuery(this).addClass("results_not_remove")
552
+ });
553
+ }
554
+ });
555
+ jQuery(document).ready(function(){
556
+ var e = document.getElementById('wpfooter');
557
+ e.style.display="none";
558
+ });
559
+
560
+ </script>
561
+
562
+
563
+
564
+
565
+
566
+ {%endblock content%}
templates/polls_results_votes.html CHANGED
@@ -3,8 +3,8 @@
3
  {%block addnew%}
4
 
5
 
6
- <input id="add-new-vote" type="button" value="{{__( 'Add Vote(s)') }} " class="button-primary" onclick="show_poll_to_vote();"/>
7
-
8
  {%endblock addnew%}
9
 
10
  {% block message %}
@@ -53,71 +53,71 @@
53
 
54
  class=' yop-poll-buy-template-li '>
55
  <p style="margin: 0 auto; text-align: center">
56
- {{ __('Multiple questions')}}
57
  </p><br>
58
  <img src="{{poll_url}}images/image_two.jpg"/> <br><br>
59
  <div style="text-align: center">
60
- <strong>{{ __ ('Want your visitors\' opinion on more than a topic?') }}<br>
61
- {{__('No need to create a new poll every time.
62
- YOP Poll Pro allows you to add as many questions as you want within a single poll.') }}</strong><br></div>
63
  </li>
64
  <li id="yop-poll-buy-template-2"style="margin-left:2px;margin-right:2px ;width:582px;"
65
 
66
  class=' yop-poll-buy-template-li '>
67
  <p style="margin: 0 auto; text-align: center">
68
- {{ __('Media Questions')}}
69
  </p><br>
70
  <img src="{{poll_url}}images/image_three.jpg"/> <br><br>
71
  <div style="text-align: center">
72
- <strong>{{ __ ('Want to run a media poll?') }}<br>
73
- {{ __ ('Simply add your images or videos and you\'r all set.
74
- Can\'t get any easier than this.') }}</strong><br></div>
75
  </li>
76
  <li id="yop-poll-buy-template-3"style="margin-left:2px;margin-right:2px ;width:582px;"
77
 
78
  class=' yop-poll-buy-template-li '>
79
  <p style="margin: 0 auto; text-align: center">
80
- {{ __('Facebook/Google+')}}
81
  </p><br>
82
  <img src="{{poll_url}}images/image_four.jpg"/> <br><br>
83
  <div style="text-align: center">
84
- <strong>{{ __ ('YOP Poll Pro integrates with facebook and google+.
85
- Let your friends vote with their facebook or google+ account.') }}
86
  </strong></div>
87
  </li>
88
  <li id="yop-poll-buy-template-4"style="margin-left:2px;margin-right:2px ;width:582px;"
89
 
90
  class=' yop-poll-buy-template-li '>
91
  <p style="margin: 0 auto; text-align: center">
92
- {{ __('New Templates')}}
93
  </p><br>
94
  <img src="{{poll_url}}images/image_five.jpg"/> <br><br>
95
  <div style="text-align: center">
96
- <strong>{{ __ ('Tired of the old templates?') }}<br>
97
- {{ __ ('We\'ve added new ones. Much better looking.') }}
98
- {{ __ ('And easy to edit to') }}<br>
99
- {{ __ ('match your website look.') }}</strong><br></div>
100
  </li>
101
  <li id="yop-poll-buy-template-5"style="margin-left:2px;margin-right:2px ;width:582px;"
102
 
103
  class=' yop-poll-buy-template-li '>
104
  <p style="margin: 0 auto; text-align: center">
105
- {{__(' Stats')}}
106
  </p><br>
107
  <img src="{{poll_url}}images/image_six.jpg"/> <br><br>
108
  <div style="text-align: center">
109
- <strong>{{ __ ('Get the most info out of your voters with our built in reporting tool.') }}</strong><br></div>
110
  </li>
111
  <li id="yop-poll-buy-template-6"style="margin-left:2px;margin-right:2px ;width:582px;"
112
 
113
  class=' yop-poll-buy-template-li '>
114
  <p style="margin: 0 auto; text-align: center">
115
- {{__(' Premium support')}}
116
  </p><br>
117
  <img src="{{poll_url}}images/image_seven.jpg"/> <br><br>
118
  <div style="text-align: center">
119
- <strong>{{ __ ('Havin a hard time integrating yop poll with your website?') }}
120
- {{ __(' We\'\ re one email distance.') }}</strong><br>
121
  </div>
122
  </li>
123
 
@@ -144,8 +144,8 @@
144
  <p style="text-align:center; font-weight: bold; font-size: 16px">
145
 
146
  <input type = "hidden" name = "action" value = "do-buy">
147
-
148
- <input type = "submit" name = "do_buy" class = "button-primary" value = "Upgrade to Pro for only $17">
149
  </p>
150
 
151
 
@@ -157,7 +157,7 @@
157
 
158
  <form style="display: none;text-align:center;font-size: 20px;font-weight: bold;" class="yop_poll_buy_pro" method="post" action="">
159
  <div >
160
- <p>Please buy pro version to use this feature!</p>
161
  <input type = "hidden" name = "action" value = "do-buy">
162
 
163
  {{ wp_nonce_field('yop-poll-before-buy')|raw }}
@@ -172,7 +172,7 @@
172
  <form method="post" id="add-edit-ban_votes">
173
  <div id="error_ban" style="color: red;text-align: center"></div>
174
  <div id="success_ban" style="color: green;text-align: center;"></div>
175
- <p>{{__( 'Ban: IP, UserID' ) }}</p>
176
  <input type="hidden" name="retain_id"value="{{poll_id}}">
177
 
178
 
@@ -190,7 +190,7 @@
190
 
191
  <tr class="form-field form-required">
192
 
193
- <th scope="row"><label for="yop-poll-name">{{__( 'Poll' ) }} <span
194
 
195
  class="description">(required)</span></label></th>
196
 
@@ -202,17 +202,17 @@
202
 
203
  <tr class="form-field form-required">
204
 
205
- <th scope="row"><label for="yop-poll-type">{{__( 'Type' )}} <span
206
 
207
- class="description">(required)</span></label></th>
208
 
209
  <td><select name="ban_type" style="width: 63%" id="yop-poll-bans-type">
210
 
211
- <option id="choose-option-type" value="">{{__( 'Choose Ban Type' )}} </option>
212
 
213
- <option value="ip">{{__( 'Ip' ) }}</option>
214
 
215
- <option value="userid">{{__( 'UserID' ) }} </option>
216
 
217
  </td>
218
 
@@ -222,24 +222,24 @@
222
 
223
  <tr class="form-field form-required">
224
 
225
- <th scope="row"><label for="yop-poll-ban-period" value="">{{__( 'Period&Unit' )}} <span
226
 
227
- class="description">(required)</span></label></th>
228
 
229
  <td><input type="text" id="yop-poll-ban-period" style="width: 20%" name="ban_period" >
230
 
231
  </input>
232
  <select id="yop-poll-bans-unit" name="ban_unit" style="width: 40% ">
233
 
234
- <option value="">{{__( 'Choose Unit' )}} </option>
235
 
236
- <option value="hours">{{__( 'Hours' ) }}</option>
237
 
238
- <option value="days">{{__( 'Days' ) }} </option>
239
 
240
- <option value="weeks">{{__( 'Weeks' ) }}</option>
241
 
242
- <option value="months">{{__( 'Months' ) }}</option>
243
 
244
  </select>
245
  </td>
@@ -253,11 +253,11 @@
253
 
254
  <tr class="form-field form-required">
255
 
256
- <th scope="row"><label for="yop-poll-ban-value">{{__( 'Value' )}}
257
 
258
  <span
259
 
260
- class="description">(required)</span><br> <small><i>{{__( 'One Value Per Line' ) }}</i></small></label></th>
261
 
262
  <td><textarea rows="5" cols="30" id="yop-poll-ban-value"
263
 
@@ -271,11 +271,11 @@
271
 
272
  <p class="submit">
273
 
274
- <input id="add-new-ban" onclick="add_bans()" value="{{__( 'Add Ban') }} " type="button"
275
 
276
  class="button-primary"/> <input id="yop-poll-add-ban-close"
277
 
278
- type="button" value="{{__( 'Close' )}} "
279
 
280
  class="button-primary">
281
 
@@ -295,23 +295,23 @@
295
  <input type = "hidden" name = "oa_per_page" value = "{{oa_per_page}}"/>
296
  <div class = "tablenav top">
297
  <div class = "alignleft actions">
298
- <div style = "display:inline; float:left; margin:7px;">{{__( 'Order By' )}}</div>
299
  <select name = "results_order_by">
300
- <option {{selected( results_order_by, 'answer' )}} value="answer">{{__( 'Answer Value' )}}</option>
301
- <option {{ selected( results_order_by, 'votes' )}} value="votes">{{__( 'Votes' )}}</option>
302
  </select>
303
  <select name = "results_order">
304
- <option {{ selected( results_order, 'ASC' )}} value="ASC">{{__( 'ASC' )}}</option>
305
- <option {{ selected( results_order, 'DESC' )}} value="DESC">{{__( 'DESC' )}}</option>
306
  </select>
307
  <span style="line-height: 2.1em;">&nbsp;| &nbsp;</span>
308
 
309
  <input style="margin-bottom: -7px;" type = "checkbox" value = "yes" {{checked( soav, 'yes' )}} name="soav" id="yop-poll-show_other_answers_values"/>
310
- <label for = "yop-poll-show_other_answers_values">{{__( 'Show Other Answers Values')}}</label>
311
-
312
  <input type = "submit"
313
- value = "{{__( 'Filter' )}}"
314
- class = "button-secondary action" id = "doaction" name = "a">
315
  </div>
316
  </div>
317
  </form>
@@ -355,13 +355,98 @@
355
  {%endfor%}
356
 
357
  <div style="text-align:center" id="add_votes">
358
- <input id="add-new-votes" onclick="add_votes()" style="margin-top: 30px" type="button" value="{{__( 'Add Vote(s)') }}"class="button-primary"/>
359
  </div>
360
  </div>
361
 
362
  </form >
363
 
364
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
365
 
366
  <div id="container" style="overflow-x: hidden; " ></div>
367
 
@@ -373,9 +458,9 @@
373
  {% for question_detail in questions_details%}
374
  {%set i=i+1%}
375
  <div class = "postbox stuffbox">
376
- <div title = "{{ __('Click to toggle') }}" class = "handlediv"><br/></div>
377
  <h3 class = "hndle">
378
- <span>{{ __('Question') }}:
379
  <span class = "yop-poll-question-order-span">{{ question.poll_order }}</span>
380
  <span id = "yop-poll-question-{{ question_detail.q_id }}-summar">{{ esc_html( stripslashes( question_detail.name) )}}</span>
381
  </span>
@@ -387,9 +472,9 @@
387
  <table class="wp-list-table widefat fixed" cellspacing="0">
388
  <thead>
389
  <tr>
390
- <th id="" class="column-answer" style="width: 40%;" scope="col">{{ __ ('Answer') }}</th>
391
- <th id="" class="column-votes" style="width: 5%;" scope="col">{{ __ ('Votes') }}</th>
392
- <th id="" class="column-percent" style="width: 5%;" scope="col">{{ __ ('Percent') }}</th>
393
  <th id="" class="column-bar" style="width: 45%;" scope="col"></th>
394
  </tr>
395
 
@@ -416,15 +501,16 @@
416
 
417
  <div title = "{{ __('Click to toggle') }}" class = "handlediv"><br/> </div>
418
 
419
- <h4 class = "yop-poll-subsection-title hndle" style = "padding-top: 5px; padding-bottom: 5px; padding-left: 10px;">{{__( 'Poll Other Answers')}}:</h4>
420
 
421
  <div class = "inside" style = "border-top: 1px solid #AAAAAA; padding: 0px;">
422
  <div>
423
  <table class = "wp-list-table widefat fixed" cellspacing = "0">
424
  <thead>
425
  <tr>
426
- <th class = "column-answer" scope = "col">{{__( 'Value' )}}</th>
427
- <th class = "column-votes" scope = "col">{{__( 'Votes' )}}</th>
 
428
  </tr>
429
  </thead>
430
  <tbody>
@@ -451,24 +537,24 @@
451
 
452
  <div class = "yop-poll-subsection postbox">
453
 
454
- <div title = "{{ __('Click to toggle') }}" class = "handlediv"><br/> </div>
455
 
456
  <h4 class = "yop-poll-subsection-title hndle" style = "padding-top: 5px; padding-bottom: 5px; padding-left: 10px;">
457
- {{__( 'Custom Fields')}}:
458
  </h4>
459
  <form method = "get" action = "">
460
  <div>
461
  <div style = "position: absolute; float: right; top: 0px; right: 30px;">
462
  {{ wp_nonce_field( 'yop-poll-custom-fields', 'yop-poll-custom-fields', false, false ) | raw }}
463
- <label for = "yop-poll-items-per-page" class = "displaying-num">{{__( 'Items Per Page' )}}:</label>
464
  <input style="margin-top: 4px;"
465
  id = "yop-poll-items-per-page" type = "text" name = "cf_per_page"
466
  value = "{{cf_per_page}}"/>
467
  <input name = "a"
468
- value = "{{__( 'Set')}}" class="button-secondary" style="margin-top: 2px;"
469
  type = "submit"/>&nbsp;&nbsp;
470
  <span class = "displaying-num">
471
- {{ count( question_detail.custom_fields_logs_details)}} / {{question_detail.total_custom_fields_logs}} items
472
  </span>
473
  <input type="hidden" name="page" value="yop-polls">
474
  <input type="hidden" name="action" value="resultvotes">
@@ -477,10 +563,10 @@
477
  <input type = "hidden" name = "q_id" value = "{{ question_detail.q_id }}"/>
478
  {{question_detail.cf_pagination | raw}}
479
  <select name = "export">
480
- <option value = "page">{{__( 'This Page')}}</option>
481
- <option value = "all">{{__( 'All Pages')}}</option>
482
  </select>
483
- <input type = "submit" value = "{{__( 'Export' )}}" class = "button-secondary action" id = "doaction" name = "a">
484
  </div>
485
  </div>
486
  </form>
@@ -497,11 +583,11 @@
497
  scope = "col">{{ ucfirst( custom_field.custom_field )}}</th>
498
  {%endfor%}
499
  <th class = "column-vote-id" style = "width:20%"
500
- scope = "col">{{__( 'Vote ID')}}</th>
501
  <th class = "column-tr-id" style = "width:15%"
502
- scope = "col">{{__( 'Tracking ID' )}}</th>
503
  <th class = "column-vote-date" style = "width:15%"
504
- scope = "col">{{__( 'Vote Date')}}</th>
505
  </tr>
506
  </thead>
507
  <tbody>
@@ -524,7 +610,7 @@
524
  {% else %}
525
  <tr>
526
  <td colspan="4">
527
- {{ __('No Custom Field Defined') }}
528
  </td>
529
  </tr>
530
  {%endfor%}
@@ -563,15 +649,33 @@
563
 
564
  <p class="search-box">
565
 
566
- <label class="screen-reader-text" for="yop-poll-search-input">{{__( 'Search IP')}}</label>
567
 
568
  <input id="yop-poll-search-input" type="search"
569
 
570
  value="{%if request.s_ip %}{{esc_html( stripslashes( request.s_ip ))}}{%endif%}"
571
 
572
- name="s_ip"/> <input id="search-submit" class="button" type="submit"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
573
 
574
- value="{{__( 'Search Ip')}}" name=""/>
575
 
576
  </p>
577
 
@@ -587,15 +691,15 @@
587
 
588
  <select name="action">
589
 
590
- <option selected="selected" value="resultvotes">{{__( 'Bulk Actions')}}</option>
591
 
592
- <option value="delete_result">{{__( 'Delete')}}</option>
593
 
594
 
595
 
596
  </select> <input type="submit"
597
 
598
- value="{{__( 'Apply')}}"
599
 
600
  class="button-secondary action" id="doaction" name=""><span style="line-height: 2.1em;">&nbsp;|&nbsp;</span>
601
 
@@ -607,9 +711,9 @@
607
 
608
  <select name="export">
609
 
610
- <option value="page">{{__( 'This Page')}}</option>
611
 
612
- <option value="all">{{( 'All Pages')}}</option>
613
 
614
 
615
 
@@ -617,7 +721,7 @@
617
 
618
  <input type="submit"
619
 
620
- value="{{__( 'Export')}}"
621
 
622
  class="button-secondary action" id="doaction" name="a_v">
623
 
@@ -637,15 +741,15 @@
637
 
638
  <div class="tablenav-pages one-page" style="margin-top: 4px;">
639
 
640
- <label for="yop-poll-items-per-page" class="displaying-num">{{ __('Items Per Page') }}:</label>
641
 
642
  <input id="yop-poll-items-per-page" type="text" name="per_page" value="{{ per_page }}" />
643
 
644
- <input name="a" value="{{ __( 'Set' ) }}" class="button-secondary" type="submit" />&nbsp;&nbsp;
645
 
646
  <span class="displaying-num">{{count( results )}} / {{total_results}}
647
 
648
- results</span>
649
 
650
  {{pagination | raw}}
651
 
@@ -679,7 +783,7 @@
679
 
680
 
681
 
682
- <span>{{__( 'Vote ID')}}</span>
683
 
684
 
685
 
@@ -695,7 +799,7 @@
695
 
696
  style="width: 6%" scope="col">
697
 
698
- <span>{{__( 'User Type')}}</span>
699
 
700
  </a></th>
701
 
@@ -709,7 +813,7 @@
709
 
710
  style="width: 10%" scope="col">
711
 
712
- <span>{{( 'Tracking ID')}}</span>
713
 
714
  </a></th>
715
 
@@ -719,7 +823,7 @@
719
 
720
  style="width: 8%" scope="col">
721
 
722
- <span>{{__( 'Ip' )}}</span>
723
 
724
  </a></th>
725
 
@@ -739,7 +843,7 @@
739
 
740
 
741
 
742
- <span>{{__( 'Vote Date')}}</span> <span
743
 
744
 
745
 
@@ -775,7 +879,7 @@
775
 
776
 
777
 
778
- <span>{{__( 'Poll ID')}}</span>
779
 
780
 
781
 
@@ -791,7 +895,7 @@
791
 
792
  style="width: 10%" scope="col">
793
 
794
- <span>{{__( 'User Type')}}</span>
795
 
796
  </a></th>
797
 
@@ -805,7 +909,7 @@
805
 
806
  style="width: 10%" scope="col">
807
 
808
- <span>{{( 'Tracking ID')}}</span>
809
 
810
  </a></th>
811
 
@@ -815,7 +919,7 @@
815
 
816
  style="width: 5%" scope="col">
817
 
818
- <span>{{__( 'Ip' )}}</span>
819
 
820
  </a></th>
821
 
@@ -837,7 +941,7 @@
837
 
838
 
839
 
840
- <span>{{__( 'Vote Date')}}</span> <span
841
 
842
 
843
 
@@ -894,12 +998,12 @@
894
 
895
  href="{{ wp_nonce_url( add_query_arg( array ({ 'action' : 'delete_result', 'resultid' : result.ID}) ),'yop-poll-results_vote','yop-poll-results_votes' ) | raw }}"
896
 
897
- class="submitdelete">{{__( 'Delete')}}</a></span>|<span class="delete">
898
 
899
 
900
  <a class="yop_poll_tooltip-buy_pro"
901
 
902
- style="cursor: pointer">{{__( 'Ban')}}</a></span>
903
 
904
 
905
  </div></td>
@@ -981,7 +1085,7 @@
981
 
982
  <span class="displaying-num">{{count( results )}} / {{total_results}}
983
 
984
- results</span>
985
 
986
  {{pagination | raw}}
987
 
@@ -1004,7 +1108,7 @@
1004
 
1005
 
1006
  {%else %}
1007
- <h3>{{__( 'Your poll doesn`t exist!' )}}</h3>
1008
  {%endif%}
1009
  </div>
1010
 
3
  {%block addnew%}
4
 
5
 
6
+ <input id="add-new-vote" type="button" value='{{__( "Add Vote(s)") }} ' class="button-primary" onclick="show_poll_to_vote();"/>
7
+ <input id="add-new-vote2" type="button" value='{{__( "Print Vote(s)") }} ' class="button-primary" onclick="show_poll_print_options();"/>
8
  {%endblock addnew%}
9
 
10
  {% block message %}
53
 
54
  class=' yop-poll-buy-template-li '>
55
  <p style="margin: 0 auto; text-align: center">
56
+ {{ __("Multiple questions")}}
57
  </p><br>
58
  <img src="{{poll_url}}images/image_two.jpg"/> <br><br>
59
  <div style="text-align: center">
60
+ <strong>{{ __ ("Want your visitors\' opinion on more than a topic?") }}<br>
61
+ {{__("No need to create a new poll every time.") }}
62
+ {{__("YOP Poll Pro allows you to add as many questions as you want within a single poll.") }}</strong><br></div>
63
  </li>
64
  <li id="yop-poll-buy-template-2"style="margin-left:2px;margin-right:2px ;width:582px;"
65
 
66
  class=' yop-poll-buy-template-li '>
67
  <p style="margin: 0 auto; text-align: center">
68
+ {{ __("Media Questions")}}
69
  </p><br>
70
  <img src="{{poll_url}}images/image_three.jpg"/> <br><br>
71
  <div style="text-align: center">
72
+ <strong>{{ __ ("Want to run a media poll?") }}<br>
73
+ {{ __ ("Simply add your images or videos and you\'r all set.")}}
74
+ {{ __ ("Can\'t get any easier than this.")}}</strong><br></div>
75
  </li>
76
  <li id="yop-poll-buy-template-3"style="margin-left:2px;margin-right:2px ;width:582px;"
77
 
78
  class=' yop-poll-buy-template-li '>
79
  <p style="margin: 0 auto; text-align: center">
80
+ {{ __("Facebook/Google+")}}
81
  </p><br>
82
  <img src="{{poll_url}}images/image_four.jpg"/> <br><br>
83
  <div style="text-align: center">
84
+ <strong>{{ __ ("YOP Poll Pro integrates with facebook and google+.") }}
85
+ {{ __ ("Let your friends vote with their facebook or google+ account.") }}
86
  </strong></div>
87
  </li>
88
  <li id="yop-poll-buy-template-4"style="margin-left:2px;margin-right:2px ;width:582px;"
89
 
90
  class=' yop-poll-buy-template-li '>
91
  <p style="margin: 0 auto; text-align: center">
92
+ {{ __("New Templates")}}
93
  </p><br>
94
  <img src="{{poll_url}}images/image_five.jpg"/> <br><br>
95
  <div style="text-align: center">
96
+ <strong>{{ __ ("Tired of the old templates?") }}<br>
97
+ {{ __ ("We\'ve added new ones. Much better looking.") }}
98
+ {{ __ ("And easy to edit to") }}<br>
99
+ {{ __ ("match your website look.") }}</strong><br></div>
100
  </li>
101
  <li id="yop-poll-buy-template-5"style="margin-left:2px;margin-right:2px ;width:582px;"
102
 
103
  class=' yop-poll-buy-template-li '>
104
  <p style="margin: 0 auto; text-align: center">
105
+ {{__(" Stats")}}
106
  </p><br>
107
  <img src="{{poll_url}}images/image_six.jpg"/> <br><br>
108
  <div style="text-align: center">
109
+ <strong>{{ __ ("Get the most info out of your voters with our built in reporting tool.") }}</strong><br></div>
110
  </li>
111
  <li id="yop-poll-buy-template-6"style="margin-left:2px;margin-right:2px ;width:582px;"
112
 
113
  class=' yop-poll-buy-template-li '>
114
  <p style="margin: 0 auto; text-align: center">
115
+ {{__("Premium support")}}
116
  </p><br>
117
  <img src="{{poll_url}}images/image_seven.jpg"/> <br><br>
118
  <div style="text-align: center">
119
+ <strong>{{ __ ("Having a hard time integrating yop poll with your website?") }}
120
+ {{ __(" We\'\ re one email distance.") }}</strong><br>
121
  </div>
122
  </li>
123
 
144
  <p style="text-align:center; font-weight: bold; font-size: 16px">
145
 
146
  <input type = "hidden" name = "action" value = "do-buy">
147
+ <label for="yop-poll-buy-pro-version" class="upgrade_button">{{__("Upgrade to Pro for only $17")}}</label>
148
+ <input id="yop-poll-buy-pro-version" style="display: none" type = "submit" name = "do_buy" class = "button-primary" value = '{{ __("Upgrade to Pro for only $17")}}'>
149
  </p>
150
 
151
 
157
 
158
  <form style="display: none;text-align:center;font-size: 20px;font-weight: bold;" class="yop_poll_buy_pro" method="post" action="">
159
  <div >
160
+ <p>{{ __("Please buy pro version to use this feature!")}}</p>
161
  <input type = "hidden" name = "action" value = "do-buy">
162
 
163
  {{ wp_nonce_field('yop-poll-before-buy')|raw }}
172
  <form method="post" id="add-edit-ban_votes">
173
  <div id="error_ban" style="color: red;text-align: center"></div>
174
  <div id="success_ban" style="color: green;text-align: center;"></div>
175
+ <p>{{__( "Ban: IP, UserID" ) }}</p>
176
  <input type="hidden" name="retain_id"value="{{poll_id}}">
177
 
178
 
190
 
191
  <tr class="form-field form-required">
192
 
193
+ <th scope="row"><label for="yop-poll-name">{{__( "Poll" ) }} <span
194
 
195
  class="description">(required)</span></label></th>
196
 
202
 
203
  <tr class="form-field form-required">
204
 
205
+ <th scope="row"><label for="yop-poll-type">{{__( "Type" )}} <span
206
 
207
+ class="description">{{__( "(required)")}}</span></label></th>
208
 
209
  <td><select name="ban_type" style="width: 63%" id="yop-poll-bans-type">
210
 
211
+ <option id="choose-option-type" value="">{{__( "Choose Ban Type" )}} </option>
212
 
213
+ <option value="ip">{{__( "Ip" ) }}</option>
214
 
215
+ <option value="userid">{{__( "UserID" ) }} </option>
216
 
217
  </td>
218
 
222
 
223
  <tr class="form-field form-required">
224
 
225
+ <th scope="row"><label for="yop-poll-ban-period" value="">{{__( "Period&Unit" )}} <span
226
 
227
+ class="description">{{__( "(required)")}}</span></label></th>
228
 
229
  <td><input type="text" id="yop-poll-ban-period" style="width: 20%" name="ban_period" >
230
 
231
  </input>
232
  <select id="yop-poll-bans-unit" name="ban_unit" style="width: 40% ">
233
 
234
+ <option value="">{{__( "Choose Unit" )}} </option>
235
 
236
+ <option value="hours">{{__( "Hours" ) }}</option>
237
 
238
+ <option value="days">{{__( "Days" ) }} </option>
239
 
240
+ <option value="weeks">{{__( "Weeks" ) }}</option>
241
 
242
+ <option value="months">{{__( "Months" ) }}</option>
243
 
244
  </select>
245
  </td>
253
 
254
  <tr class="form-field form-required">
255
 
256
+ <th scope="row"><label for="yop-poll-ban-value">{{__( "Value" )}}
257
 
258
  <span
259
 
260
+ class="description">{{__( "(required)" )}}</span><br> <small><i>{{__( "One Value Per Line" ) }}</i></small></label></th>
261
 
262
  <td><textarea rows="5" cols="30" id="yop-poll-ban-value"
263
 
271
 
272
  <p class="submit">
273
 
274
+ <input id="add-new-ban" onclick="add_bans()" value='{{__( "Add Ban") }} ' type="button"
275
 
276
  class="button-primary"/> <input id="yop-poll-add-ban-close"
277
 
278
+ type="button" value='{{__( "Close" )}} '
279
 
280
  class="button-primary">
281
 
295
  <input type = "hidden" name = "oa_per_page" value = "{{oa_per_page}}"/>
296
  <div class = "tablenav top">
297
  <div class = "alignleft actions">
298
+ <div style = "display:inline; float:left; margin:7px;">{{__( "Order By" )}}</div>
299
  <select name = "results_order_by">
300
+ <option {{selected( results_order_by, 'answer' )}} value="answer">{{__( "Answer Value" )}}</option>
301
+ <option {{ selected( results_order_by, 'votes' )}} value="votes">{{__( "Votes" )}}</option>
302
  </select>
303
  <select name = "results_order">
304
+ <option {{ selected( results_order, 'ASC' )}} value="ASC">{{__( "ASC" )}}</option>
305
+ <option {{ selected( results_order, 'DESC' )}} value="DESC">{{__( "DESC" )}}</option>
306
  </select>
307
  <span style="line-height: 2.1em;">&nbsp;| &nbsp;</span>
308
 
309
  <input style="margin-bottom: -7px;" type = "checkbox" value = "yes" {{checked( soav, 'yes' )}} name="soav" id="yop-poll-show_other_answers_values"/>
310
+ <label for = "yop-poll-show_other_answers_values">{{__( "Show Other Answers Values")}}</label>
311
+ <label for="doaction3" class="button-secondary">{{__( "Filter" ) }}</label>
312
  <input type = "submit"
313
+ value = '{{__( "Filter" )}}' style="display: none"
314
+ class = "button-secondary action" id = "doaction3" name = "a">
315
  </div>
316
  </div>
317
  </form>
355
  {%endfor%}
356
 
357
  <div style="text-align:center" id="add_votes">
358
+ <input id="add-new-votes" onclick="add_votes()" style="margin-top: 30px" type="button" value='{{__( "Add Vote(s)") }}'class="button-primary"/>
359
  </div>
360
  </div>
361
 
362
  </form >
363
 
364
 
365
+ <form method="post" action="?page=yop-polls&action=print_votes&id={{poll.ID}}" style="display: none" id="yop_poll_print_votes" target="_blank">
366
+
367
+
368
+ <div >
369
+
370
+
371
+ <table style="margin-left: auto; margin-right: auto;">
372
+ <tbody>
373
+ <tr>
374
+ <td> <input type="checkbox" value="question_p" class="checkboxes" id="yop-poll-question-print" name="question_print">
375
+ <label for="yop-poll-question-print">
376
+ {{ __("Questions")}}
377
+ </label>
378
+ </td>
379
+ </tr>
380
+ <tr>
381
+ <td> <input type="checkbox" value="other_p" class="checkboxes" id="yop-poll-question-other" name="other_print">
382
+ <label for="yop-poll-question-other">
383
+ {{ __("Other answers")}}
384
+ </label>
385
+ </td>
386
+ </tr>
387
+ <tr>
388
+ <td> <input type="checkbox" value="custom_p" class="checkboxes" id="yop-poll-answer-custom-print" name="custom_print">
389
+ <label for="yop-poll-answer-custom-print">
390
+ {{ __("Custom fields")}}
391
+ </label>
392
+ </td>
393
+ </tr>
394
+ <tr>
395
+ <td> <input type="checkbox" value="votes_p" class="checkboxes" id="yop-poll-answer-votes-print" onclick=" return yop_poll_print_values()" name="votes_print">
396
+ <label for="yop-poll-answer-votes-print">
397
+ {{ __("Votes")}}
398
+ </label>
399
+ </td>
400
+ </tr>
401
+ <tr class="yop-poll-print-votes-votes">
402
+ <td> <input type="checkbox" style="margin-left: 14px;" value="votes_id_p" class="checkboxes" id="yop-poll-answer-votes-print-id" name="votes_id">
403
+ <label for="yop-poll-answer-votes-print-id">
404
+ {{ __("Votes ID")}}
405
+ </label>
406
+ </td>
407
+ </tr>
408
+ <tr class="yop-poll-print-votes-votes">
409
+ <td> <input type="checkbox" style="margin-left: 14px;" value="user_p" class="checkboxes" id="yop-poll-answer-votes-print-user" name="user_type">
410
+ <label for="yop-poll-answer-votes-print-user">
411
+ {{ __("User Type")}}
412
+ </label>
413
+ </td>
414
+ </tr>
415
+ <tr class="yop-poll-print-votes-votes">
416
+ <td> <input type="checkbox" style="margin-left: 14px;" value="track_p" class="checkboxes" id="yop-poll-answer-votes-tracking" name="track_id">
417
+ <label for="yop-poll-answer-votes-tracking">
418
+ {{ __("Tracking ID")}}
419
+ </label>
420
+ </td>
421
+ </tr>
422
+ <tr class="yop-poll-print-votes-votes">
423
+ <td> <input type="checkbox" style="margin-left: 14px;" value="ip_p" class="checkboxes" id="yop-poll-answer-votes-ip" name="ip_print">
424
+ <label for="yop-poll-answer-votes-ip">
425
+ {{ __("IP")}}
426
+ </label>
427
+ </td>
428
+ </tr>
429
+ <tr class="yop-poll-print-votes-votes">
430
+ <td> <input type="checkbox" style="margin-left: 14px;" value="date_p" class="checkboxes" id="yop-poll-answer-votes-date" name="date_print">
431
+ <label for="yop-poll-answer-votes-date">
432
+ {{ __("Vote Date")}}
433
+ </label>
434
+ </td>
435
+ </tr>
436
+
437
+ </tbody>
438
+
439
+ </table>
440
+
441
+ <div style="text-align:center" id="print_votes">
442
+
443
+ <input id="add-d-votes" style="margin-top: 30px" type="submit" value='{{__( "Print Vote(s)") }}'class="button-primary"/>
444
+ </div>
445
+ </div>
446
+
447
+ </form >
448
+
449
+
450
 
451
  <div id="container" style="overflow-x: hidden; " ></div>
452
 
458
  {% for question_detail in questions_details%}
459
  {%set i=i+1%}
460
  <div class = "postbox stuffbox">
461
+ <div title = '{{ __("Click to toggle") }}' class = "handlediv"><br/></div>
462
  <h3 class = "hndle">
463
+ <span>{{ __("Question") }}:
464
  <span class = "yop-poll-question-order-span">{{ question.poll_order }}</span>
465
  <span id = "yop-poll-question-{{ question_detail.q_id }}-summar">{{ esc_html( stripslashes( question_detail.name) )}}</span>
466
  </span>
472
  <table class="wp-list-table widefat fixed" cellspacing="0">
473
  <thead>
474
  <tr>
475
+ <th id="" class="column-answer" style="width: 40%;" scope="col">{{ __ ("Answer") }}</th>
476
+ <th id="" class="column-votes" style="width: 5%;" scope="col">{{ __ ("Votes") }}</th>
477
+ <th id="" class="column-percent" style="width: 5%;" scope="col">{{ __ ("Percent") }}</th>
478
  <th id="" class="column-bar" style="width: 45%;" scope="col"></th>
479
  </tr>
480
 
501
 
502
  <div title = "{{ __('Click to toggle') }}" class = "handlediv"><br/> </div>
503
 
504
+ <h4 class = "yop-poll-subsection-title hndle" style = "padding-top: 5px; padding-bottom: 5px; padding-left: 10px;">{{__( "Poll Other Answers")}}:</h4>
505
 
506
  <div class = "inside" style = "border-top: 1px solid #AAAAAA; padding: 0px;">
507
  <div>
508
  <table class = "wp-list-table widefat fixed" cellspacing = "0">
509
  <thead>
510
  <tr>
511
+ <th class = "column-answer" scope = "col">{{__( "Value" )}}</th>
512
+ <th class = "column-votes" scope = "col">{{__( "Votes" )}}</th>
513
+
514
  </tr>
515
  </thead>
516
  <tbody>
537
 
538
  <div class = "yop-poll-subsection postbox">
539
 
540
+ <div title = '{{ __("Click to toggle") }}' class = "handlediv"><br/> </div>
541
 
542
  <h4 class = "yop-poll-subsection-title hndle" style = "padding-top: 5px; padding-bottom: 5px; padding-left: 10px;">
543
+ {{__( "Custom Fields")}}:
544
  </h4>
545
  <form method = "get" action = "">
546
  <div>
547
  <div style = "position: absolute; float: right; top: 0px; right: 30px;">
548
  {{ wp_nonce_field( 'yop-poll-custom-fields', 'yop-poll-custom-fields', false, false ) | raw }}
549
+ <label for = "yop-poll-items-per-page" class = "displaying-num">{{__( "Items Per Page" )}}:</label>
550
  <input style="margin-top: 4px;"
551
  id = "yop-poll-items-per-page" type = "text" name = "cf_per_page"
552
  value = "{{cf_per_page}}"/>
553
  <input name = "a"
554
+ value = '{{__( "Set")}}' class="button-secondary" style="margin-top: 2px;"
555
  type = "submit"/>&nbsp;&nbsp;
556
  <span class = "displaying-num">
557
+ {{ count( question_detail.custom_fields_logs_details)}} / {{question_detail.total_custom_fields_logs}} {{__( "items")}}
558
  </span>
559
  <input type="hidden" name="page" value="yop-polls">
560
  <input type="hidden" name="action" value="resultvotes">
563
  <input type = "hidden" name = "q_id" value = "{{ question_detail.q_id }}"/>
564
  {{question_detail.cf_pagination | raw}}
565
  <select name = "export">
566
+ <option value = "page">{{__( "This Page")}}</option>
567
+ <option value = "all">{{__( "All Pages")}}</option>
568
  </select>
569
+ <input type = "submit" value = '{{__( "Export" )}}' class = "button-secondary action" id = "doaction" name = "a">
570
  </div>
571
  </div>
572
  </form>
583
  scope = "col">{{ ucfirst( custom_field.custom_field )}}</th>
584
  {%endfor%}
585
  <th class = "column-vote-id" style = "width:20%"
586
+ scope = "col">{{__( "Vote ID")}}</th>
587
  <th class = "column-tr-id" style = "width:15%"
588
+ scope = "col">{{__( "Tracking ID" )}}</th>
589
  <th class = "column-vote-date" style = "width:15%"
590
+ scope = "col">{{__( "Vote Date")}}</th>
591
  </tr>
592
  </thead>
593
  <tbody>
610
  {% else %}
611
  <tr>
612
  <td colspan="4">
613
+ {{ __("No Custom Field Defined") }}
614
  </td>
615
  </tr>
616
  {%endfor%}
649
 
650
  <p class="search-box">
651
 
652
+ <label class="screen-reader-text" for="yop-poll-search-input">{{__( "Search IP")}}</label>
653
 
654
  <input id="yop-poll-search-input" type="search"
655
 
656
  value="{%if request.s_ip %}{{esc_html( stripslashes( request.s_ip ))}}{%endif%}"
657
 
658
+ name="s_ip"/>
659
+
660
+ <select name="searchbox" style="float: unset ">
661
+
662
+ <option value="all">{{__( "All Columns")}}</option>
663
+
664
+ <option value="vote_id">{{__( "Vote ID")}}</option>
665
+
666
+ <option value="user_type">{{__( "User Type")}}</option>
667
+
668
+ <option value="tr_id">{{__( "Tracking ID")}}</option>
669
+
670
+ <option value="ip">{{__( "IP")}}</option>
671
+
672
+ <option value="vote_date">{{__( "Vote Date")}}</option>
673
+
674
+ </select>
675
+
676
+ <input id="search-submit" class="button" type="submit"
677
 
678
+ value='{{__( "Search")}}' name=""/>
679
 
680
  </p>
681
 
691
 
692
  <select name="action">
693
 
694
+ <option selected="selected" value="resultvotes">{{__( "Bulk Actions")}}</option>
695
 
696
+ <option value="delete_result">{{__( "Delete")}}</option>
697
 
698
 
699
 
700
  </select> <input type="submit"
701
 
702
+ value='{{__( "Apply")}}'
703
 
704
  class="button-secondary action" id="doaction" name=""><span style="line-height: 2.1em;">&nbsp;|&nbsp;</span>
705
 
711
 
712
  <select name="export">
713
 
714
+ <option value="page">{{__( "This Page")}}</option>
715
 
716
+ <option value="all">{{( "All Pages")}}</option>
717
 
718
 
719
 
721
 
722
  <input type="submit"
723
 
724
+ value='{{__( "Export")}}'
725
 
726
  class="button-secondary action" id="doaction" name="a_v">
727
 
741
 
742
  <div class="tablenav-pages one-page" style="margin-top: 4px;">
743
 
744
+ <label for="yop-poll-items-per-page" class="displaying-num">{{ __("Items Per Page") }}:</label>
745
 
746
  <input id="yop-poll-items-per-page" type="text" name="per_page" value="{{ per_page }}" />
747
 
748
+ <input name="a" value='{{ __( "Set" ) }}' class="button-secondary" type="submit" />&nbsp;&nbsp;
749
 
750
  <span class="displaying-num">{{count( results )}} / {{total_results}}
751
 
752
+ {{ __("results")}}</span>
753
 
754
  {{pagination | raw}}
755
 
783
 
784
 
785
 
786
+ <span>{{__( "Vote ID")}}</span>
787
 
788
 
789
 
799
 
800
  style="width: 6%" scope="col">
801
 
802
+ <span>{{__( "User Type")}}</span>
803
 
804
  </a></th>
805
 
813
 
814
  style="width: 10%" scope="col">
815
 
816
+ <span>{{( "Tracking ID")}}</span>
817
 
818
  </a></th>
819
 
823
 
824
  style="width: 8%" scope="col">
825
 
826
+ <span>{{__( "Ip" )}}</span>
827
 
828
  </a></th>
829
 
843
 
844
 
845
 
846
+ <span>{{__( "Vote Date")}}</span> <span
847
 
848
 
849
 
879
 
880
 
881
 
882
+ <span>{{__( "Poll ID")}}</span>
883
 
884
 
885
 
895
 
896
  style="width: 10%" scope="col">
897
 
898
+ <span>{{__( "User Type")}}</span>
899
 
900
  </a></th>
901
 
909
 
910
  style="width: 10%" scope="col">
911
 
912
+ <span>{{( "Tracking ID")}}</span>
913
 
914
  </a></th>
915
 
919
 
920
  style="width: 5%" scope="col">
921
 
922
+ <span>{{__( "Ip" )}}</span>
923
 
924
  </a></th>
925
 
941
 
942
 
943
 
944
+ <span>{{__( "Vote Date")}}</span> <span
945
 
946
 
947
 
998
 
999
  href="{{ wp_nonce_url( add_query_arg( array ({ 'action' : 'delete_result', 'resultid' : result.ID}) ),'yop-poll-results_vote','yop-poll-results_votes' ) | raw }}"
1000
 
1001
+ class="submitdelete">{{__( "Delete")}}</a></span>|<span class="delete">
1002
 
1003
 
1004
  <a class="yop_poll_tooltip-buy_pro"
1005
 
1006
+ style="cursor: pointer">{{__( "Ban")}}</a></span>
1007
 
1008
 
1009
  </div></td>
1085
 
1086
  <span class="displaying-num">{{count( results )}} / {{total_results}}
1087
 
1088
+ {{__("results")}}</span>
1089
 
1090
  {{pagination | raw}}
1091
 
1108
 
1109
 
1110
  {%else %}
1111
+ <h3>{{__( "Your poll doesn`t exist!" )}}</h3>
1112
  {%endif%}
1113
  </div>
1114
 
templates/polls_view.html CHANGED
@@ -1,7 +1,7 @@
1
  {% extends "polls_base.html" %}
2
 
3
 
4
- {% block addnew %} <a class="add-new-h2" href="{{ esc_url( add_query_arg( { 'page' : 'yop-polls-add-new', 'id' : false, 'deleted' : false, 'cloned' : false } ) ) | raw }}">{{ __('Add New') }}</a>{% endblock addnew %}
5
 
6
  {% block content %}
7
 
@@ -13,7 +13,7 @@
13
  <form style="display: none ;width: auto; min-height: 0px; " id="yop_poll_show_shortcode">
14
  <div>
15
  <span style="display: block; text-align: center">
16
- Use this shortcode to display your poll:
17
  <br><br>
18
  <input style="text-align: center" id="yop_poll_shortcode_input" type="text" readonly="readonly" value="">
19
 
@@ -34,7 +34,7 @@
34
  <ul class="wf-sortable" id="wf-sort-id">
35
  <li>
36
  <div id="circle"><h1>?</h1></div>
37
- <p><h2>{{__('Need Help?')}}</h2><br><h3>{{__( 'Download')}}<br /> {{__('YOP Poll User Guide')}}</h3></p>
38
  </li>
39
  <li class="wf-email" rel="undefined"
40
  style="display: block !important;">
@@ -42,7 +42,7 @@
42
  <div class="wf-inputpos">
43
  <label for="email" data-icon="e"/>
44
  <input id="email" type="text" class="wf-input wf-req wf-valid__email"
45
- name="email" placeholder="{{__( 'Email')}}"></input>
46
  </div>
47
  <em class="clearfix clearer"></em>
48
  </div>
@@ -51,7 +51,8 @@
51
  style="display: block !important;">
52
  <div class="wf-contbox">
53
  <div class="wf-inputpos">
54
- <input type="submit" value="{{__( 'Send me the FREE guide!')}}" class="wf-button" name="submit"></input>
 
55
  </div>
56
  <em class="clearfix clearer"></em>
57
  </div>
@@ -72,8 +73,8 @@
72
  </div>
73
  <input type="hidden" name="webform_id" value="394041"/>
74
  <div style="margin-bottom:15px">
75
- <p style="margin: 0px"> Have you found this plugin useful? </p>
76
- <a href="http://wordpress.org/support/view/plugin-reviews/yop-poll?filter=5" target="_blank"> Rate YOP POLL 5★'s on WordPress.org </a>
77
  </div>
78
  </form>
79
  </div>
@@ -93,11 +94,11 @@
93
 
94
  <p class="search-box" style="margin: 0 12px 2px 0 !important;">
95
 
96
- <label class="screen-reader-text" for="yop-poll-search-input">{{ __( 'Search Polls' ) }}</label>
97
 
98
  <input id="yop-poll-search-input" class="align-with-item-per-page" type="search" value="{% if REQUEST.s %}{{ REQUEST.s }}{% endif %}" name="s"/>
99
 
100
- <input id="search-submit" class="button" type="submit" value="{{ __( 'Search Polls' ) }}"/>
101
 
102
  </p>
103
 
@@ -109,19 +110,19 @@
109
 
110
 
111
 
112
- <option selected="selected" value="-1">{{ __('Bulk Actions') }}</option>
113
 
114
- <option value="delete">{{ __('Delete') }}</option>
115
 
116
- <option value="clone">{{ __('Clone') }}</option>
117
 
118
- <option value="reset_votes">{{ __('Reset Votes') }}</option>
119
 
120
- <option value="delete_logs">{{ __('Delete Logs') }}</option>
121
 
122
  </select>
123
-
124
- <input type="submit" value="{{ __('Apply') }}" class="button-secondary action" id="doaction" name="">
125
 
126
  </div>
127
 
@@ -129,31 +130,31 @@
129
 
130
  <select name="filters">
131
 
132
- <option value="0">{{ __('View All Polls') }}</option>
133
 
134
- <option {{ selected( REQUEST.filters, 'never_expire', false )| raw }} value="never_expire">{{ __('No end date') }}</option>
135
 
136
- <option {{ selected( REQUEST.filters, 'expired', false )| raw }} value="expired">{{ __('Expired') }}</option>
137
 
138
- <option {{ selected( REQUEST.filters, 'started', false )| raw }} value="started">{{ __('Started') }}</option>
139
 
140
- <option {{ selected( REQUEST.filters, 'not_started', false )| raw }} value="not_started">{{ __('Not Started') }}</option>
141
 
142
  </select>
143
-
144
- <input type="submit" value="{{ __('Filter') }}" class="button-secondary" id="post-query-submit" name="">
145
 
146
  </div>
147
 
148
  <div class="tablenav-pages one-page">
149
 
150
- <label for="yop-poll-items-per-page" class="displaying-num">{{ __('Items Per Page') }}:</label>
151
 
152
  <input id="yop-poll-items-per-page" class="align-with-item-per-page2" type="text" name="per_page" value="{{ per_page }}"/>
153
 
154
- <input name="a" class="button-secondary" value="{{ __( 'Set' ) }}" type="submit"/>&nbsp;&nbsp;
155
 
156
- <span class="displaying-num">{{ count( polls ) }} / {{ total_items }} items</span>
157
 
158
  {{ pagination | raw }}
159
 
@@ -175,7 +176,7 @@
175
 
176
  <a href="{{ esc_url( add_query_arg( { 'orderby' : 'poll_title', 'order' : order_direction.poll_title } ) ) | raw }}">
177
 
178
- <span>{{ __('Title' ) }}</span>
179
 
180
  <span class="sorting-indicator"></span>
181
 
@@ -187,7 +188,7 @@
187
 
188
  <a href="{{ esc_url( add_query_arg( { 'orderby' : 'poll_total_votes', 'order' : order_direction.poll_total_votes } ) ) | raw }}">
189
 
190
- <span>{{ __('Total Votes' ) }}</span>
191
 
192
  <span class="sorting-indicator"></span>
193
 
@@ -195,13 +196,13 @@
195
 
196
  </th>
197
 
198
- <th id="poll_author" class="manage-column" style="width: 10%" scope="col"><span>{{ __('Author') }}</span></th>
199
 
200
  <th id="start-date" class="manage-column {{ order_sortable.poll_start_date }} {{ order_direction_reverse.poll_start_date }}" style="" scope="col">
201
 
202
  <a href="{{ esc_url( add_query_arg( { 'orderby' : 'poll_start_date', 'order' : order_direction.poll_start_date } ) ) | raw }}">
203
 
204
- <span>{{ __('Start Date') }}</span>
205
 
206
  <span class="sorting-indicator"></span>
207
 
@@ -213,7 +214,7 @@
213
 
214
  <a href="{{ esc_url( add_query_arg( { 'orderby' : 'poll_end_date', 'order' : order_direction.poll_end_date } ) ) | raw }}">
215
 
216
- <span>{{ __('End Date') }}</span>
217
 
218
  <span class="sorting-indicator"></span>
219
 
@@ -267,13 +268,13 @@
267
  <i>
268
  {% if ( current_user_can( 'edit_own_yop_polls') and poll.poll_author == current_user.ID ) or ( current_user_can( 'edit_yop_polls' ) ) %}
269
  <span class="edit">
270
- <a style="cursor: pointer" onclick="yop_poll_show_poll_shortcode({{poll.ID}})">{{ __( 'Get Code' ) }}</a> |
271
  </span>
272
  {%endif%}
273
 
274
  {% if ( current_user_can( 'edit_own_yop_polls') and poll.poll_author == current_user.ID ) or ( current_user_can( 'edit_yop_polls' ) ) %}
275
  <span class="edit">
276
- <a href="{{ esc_url( add_query_arg( {'action' : 'edit', 'id' : poll.ID } ) ) | raw }}">{{ __( 'Edit' ) }}</a> |
277
  </span>
278
  {% endif %}
279
 
@@ -281,7 +282,7 @@
281
  <span class="clone">
282
  <a onclick="return confirm( '{{ __( " You are about to clone this poll" ) }}: {{ poll.poll_title }} \n{{ __( "Cancel" ) }} {{ __( "to stop" ) }}, {{ __( "OK" ) }} {{ __( "to clone" ) }}' )"
283
  href="{{ wp_nonce_url( add_query_arg( {'action' : 'clone', 'id' : poll.ID } ),'yop-poll-view-action', 'yop-poll-view-name' ) | raw }}"
284
- class="submitclone">{{ __( 'Clone' ) }}</a> |
285
  </span>
286
  {% endif %}
287
 
@@ -290,19 +291,19 @@
290
  <span class="delete">
291
  <a onclick="return confirm( '{{ __( " You are about to delete this poll" ) }}: {{ poll.poll_title }} \n{{ __( "Cancel" ) }} {{ __( "to stop" ) }}, {{ __( "OK" ) }} {{ __( "to delete" ) }}' )"
292
  href="{{ wp_nonce_url( add_query_arg( {'action' : 'delete', 'id' : poll.ID } ), 'yop-poll-delete' ) | raw }}"
293
- class="submitdelete">{{ __('Delete' ) }}</a>
294
  | </span>
295
  {% endif %}
296
 
297
  {% if ( current_user_can( 'view_own_yop_polls_results') and poll.poll_author == current_user.ID ) or ( current_user_can( 'view_yop_polls_results' ) ) %}
298
  <span class="results" >
299
- <a id="yop-poll-for-slider-page-7" href="/" onclick="return false" class="yop_poll_tooltip-buy_pro yop_poll_slider">{{ __( 'Results' ) }}</a> |
300
 
1
  {% extends "polls_base.html" %}
2
 
3
 
4
+ {% block addnew %} <a class="add-new-h2" href="{{ esc_url( add_query_arg( { 'page' : 'yop-polls-add-new', 'id' : false, 'deleted' : false, 'cloned' : false } ) ) | raw }}">{{ __("Add New") }}</a>{% endblock addnew %}
5
 
6
  {% block content %}
7
 
13
  <form style="display: none ;width: auto; min-height: 0px; " id="yop_poll_show_shortcode">
14
  <div>
15
  <span style="display: block; text-align: center">
16
+ {{ __("Use this shortcode to display your poll:")}}
17
  <br><br>
18
  <input style="text-align: center" id="yop_poll_shortcode_input" type="text" readonly="readonly" value="">
19
 
34
  <ul class="wf-sortable" id="wf-sort-id">
35
  <li>
36
  <div id="circle"><h1>?</h1></div>
37
+ <p><h2>{{__("Need Help?")}}</h2><br><h3>{{__( "Download")}}<br /> {{__("YOP Poll User Guide")}}</h3></p>
38
  </li>
39
  <li class="wf-email" rel="undefined"
40
  style="display: block !important;">
42
  <div class="wf-inputpos">
43
  <label for="email" data-icon="e"/>
44
  <input id="email" type="text" class="wf-input wf-req wf-valid__email"
45
+ name="email" placeholder='{{__( "Email")}}'></input>
46
  </div>
47
  <em class="clearfix clearer"></em>
48
  </div>
51
  style="display: block !important;">
52
  <div class="wf-contbox">
53
  <div class="wf-inputpos">
54
+ <label for="send-me-fre-guide" class="wf-button"> {{__( "Send me the FREE guide!")}}</label>
55
+ <input style="display: none" id="send-me-fre-guide" type="submit" value='{{__( "Send me the FREE guide!")}}' class="wf-button" name="submit"></input>
56
  </div>
57
  <em class="clearfix clearer"></em>
58
  </div>
73
  </div>
74
  <input type="hidden" name="webform_id" value="394041"/>
75
  <div style="margin-bottom:15px">
76
+ <p style="margin: 0px"> {{__(" Have you found this plugin useful?")}} </p>
77
+ <a href="http://wordpress.org/support/view/plugin-reviews/yop-poll?filter=5" target="_blank"> {{__(" Rate YOP POLL 5★'s on WordPress.org")}} </a>
78
  </div>
79
  </form>
80
  </div>
94
 
95
  <p class="search-box" style="margin: 0 12px 2px 0 !important;">
96
 
97
+ <label class="screen-reader-text" for="yop-poll-search-input">{{ __( "Search Polls" ) }}</label>
98
 
99
  <input id="yop-poll-search-input" class="align-with-item-per-page" type="search" value="{% if REQUEST.s %}{{ REQUEST.s }}{% endif %}" name="s"/>
100
 
101
+ <input id="search-submit" class="button" type="submit" value='{{ __( "Search Polls" ) }}'/>
102
 
103
  </p>
104
 
110
 
111
 
112
 
113
+ <option selected="selected" value="-1">{{ __("Bulk Actions") }}</option>
114
 
115
+ <option value="delete">{{ __("Delete") }}</option>
116
 
117
+ <option value="clone">{{ __("Clone") }}</option>
118
 
119
+ <option value="reset_votes">{{ __("Reset Votes") }}</option>
120
 
121
+ <option value="delete_logs">{{ __("Delete Logs") }}</option>
122
 
123
  </select>
124
+ <label style="display: none" for="doaction" class="button-secondary action">{{ __("Apply") }}</label>
125
+ <input type="submit" value='{{ __("Apply") }}' class="button-secondary action" id="doaction" name="">
126
 
127
  </div>
128
 
130
 
131
  <select name="filters">
132
 
133
+ <option value="0">{{ __("View All Polls") }}</option>
134
 
135
+ <option {{ selected( REQUEST.filters, 'never_expire', false )| raw }} value="never_expire"}>{{ __("No end date") }}</option>
136
 
137
+ <option {{ selected( REQUEST.filters, 'expired', false )| raw }} value="expired">{{ __("Expired") }}</option>
138
 
139
+ <option {{ selected( REQUEST.filters, 'started', false )| raw }} value="started">{{ __("Started") }}</option>
140
 
141
+ <option {{ selected( REQUEST.filters, 'not_started', false )| raw }} value="not_started">{{ __("Not Started") }}</option>
142
 
143
  </select>
144
+ <label for="post-query-submit" class="button-secondary">{{__( "Filter" ) }}</label>
145
+ <input type="submit" value='{{ __("Filter") }}' class="button-secondary" id="post-query-submit" name="" style="display: none">
146
 
147
  </div>
148
 
149
  <div class="tablenav-pages one-page">
150
 
151
+ <label for="yop-poll-items-per-page" class="displaying-num">{{ __("Items Per Page") }}:</label>
152
 
153
  <input id="yop-poll-items-per-page" class="align-with-item-per-page2" type="text" name="per_page" value="{{ per_page }}"/>
154
 
155
+ <input name="a" class="button-secondary" value='{{ __( "Set" ) }}' type="submit"/>&nbsp;&nbsp;
156
 
157
+ <span class="displaying-num">{{ count( polls ) }} / {{ total_items }} {{__("items" ) }}</span>
158
 
159
  {{ pagination | raw }}
160
 
176
 
177
  <a href="{{ esc_url( add_query_arg( { 'orderby' : 'poll_title', 'order' : order_direction.poll_title } ) ) | raw }}">
178
 
179
+ <span>{{ __("Title" ) }}</span>
180
 
181
  <span class="sorting-indicator"></span>
182
 
188
 
189
  <a href="{{ esc_url( add_query_arg( { 'orderby' : 'poll_total_votes', 'order' : order_direction.poll_total_votes } ) ) | raw }}">
190
 
191
+ <span>{{ __("Total Votes" ) }}</span>
192
 
193
  <span class="sorting-indicator"></span>
194
 
196
 
197
  </th>
198
 
199
+ <th id="poll_author" class="manage-column" style="width: 10%" scope="col"><span>{{ __("Author") }}</span></th>
200
 
201
  <th id="start-date" class="manage-column {{ order_sortable.poll_start_date }} {{ order_direction_reverse.poll_start_date }}" style="" scope="col">
202
 
203
  <a href="{{ esc_url( add_query_arg( { 'orderby' : 'poll_start_date', 'order' : order_direction.poll_start_date } ) ) | raw }}">
204
 
205
+ <span>{{ __("Start Date") }}</span>
206
 
207
  <span class="sorting-indicator"></span>
208
 
214
 
215
  <a href="{{ esc_url( add_query_arg( { 'orderby' : 'poll_end_date', 'order' : order_direction.poll_end_date } ) ) | raw }}">
216
 
217
+ <span>{{ __("End Date") }}</span>
218
 
219
  <span class="sorting-indicator"></span>
220
 
268
  <i>
269
  {% if ( current_user_can( 'edit_own_yop_polls') and poll.poll_author == current_user.ID ) or ( current_user_can( 'edit_yop_polls' ) ) %}
270
  <span class="edit">
271
+ <a style="cursor: pointer" onclick="yop_poll_show_poll_shortcode({{poll.ID}})">{{ __( "Get Code" ) }}</a> |
272
  </span>
273
  {%endif%}
274
 
275
  {% if ( current_user_can( 'edit_own_yop_polls') and poll.poll_author == current_user.ID ) or ( current_user_can( 'edit_yop_polls' ) ) %}
276
  <span class="edit">
277
+ <a href="{{ esc_url( add_query_arg( {'action' : 'edit', 'id' : poll.ID } ) ) | raw }}">{{ __( "Edit" ) }}</a> |
278
  </span>
279
  {% endif %}
280
 
282
  <span class="clone">
283
  <a onclick="return confirm( '{{ __( " You are about to clone this poll" ) }}: {{ poll.poll_title }} \n{{ __( "Cancel" ) }} {{ __( "to stop" ) }}, {{ __( "OK" ) }} {{ __( "to clone" ) }}' )"
284
  href="{{ wp_nonce_url( add_query_arg( {'action' : 'clone', 'id' : poll.ID } ),'yop-poll-view-action', 'yop-poll-view-name' ) | raw }}"
285
+ class="submitclone">{{ __( "Clone" ) }}</a> |
286
  </span>
287
  {% endif %}
288
 
291
  <span class="delete">
292
  <a onclick="return confirm( '{{ __( " You are about to delete this poll" ) }}: {{ poll.poll_title }} \n{{ __( "Cancel" ) }} {{ __( "to stop" ) }}, {{ __( "OK" ) }} {{ __( "to delete" ) }}' )"
293
  href="{{ wp_nonce_url( add_query_arg( {'action' : 'delete', 'id' : poll.ID } ), 'yop-poll-delete' ) | raw }}"
294
+ class="submitdelete">{{ __("Delete" ) }}</a>
295
  | </span>
296
  {% endif %}
297
 
298
  {% if ( current_user_can( 'view_own_yop_polls_results') and poll.poll_author == current_user.ID ) or ( current_user_can( 'view_yop_polls_results' ) ) %}
299
  <span class="results" >
300
+ <a id="yop-poll-for-slider-page-7" href="/" onclick="return false" class="yop_poll_tooltip-buy_pro yop_poll_slider">{{ __( "Results" ) }}</a> |
301