YOP Poll - Version 1.8

Version Description

  • Fixed bug with wordpress editor
Download this release

Release Info

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

Code changes from version 1.7 to 1.8

inc/admin.php CHANGED
@@ -53,6 +53,7 @@
53
$this->add_action( 'wp_ajax_yop_poll_html_editor', 'ajax_get_polls_for_html_editor', 1 );
54
$this->add_action( 'wp_ajax_yop_poll_edit_add_new_poll', 'ajax_edit_add_new_poll', 1 );
55
$this->add_action( 'wp_ajax_yop_poll_edit_add_new_poll_template', 'ajax_edit_add_new_poll_template', 1 );
56
57
$this->add_action( 'wp_ajax_nopriv_yop_poll_do_vote', 'yop_poll_do_vote', 1 );
58
$this->add_action( 'wp_ajax_yop_poll_do_vote', 'yop_poll_do_vote', 1 );
@@ -296,6 +297,7 @@
296
wp_enqueue_script('xfn');
297
break;
298
case 'yop-polls-templates' :
299
wp_enqueue_script(array('editor', 'thickbox'));
300
wp_enqueue_style('thickbox');
301
wp_enqueue_style( 'yop-poll-admin-templates', "{$this->_config->plugin_url}/css/yop-poll-admin-templates.css", array(), $this->_config->version );
@@ -304,6 +306,7 @@
304
'ajax' => array(
305
'url' => admin_url('admin-ajax.php', (is_ssl() ? 'https' : 'http')),
306
'action' => 'yop_poll_edit_add_new_poll_template',
307
'beforeSendMessage' => __( 'Please wait a moment while we process your request...', 'yop_poll' ),
308
'errorMessage' => __( 'An error has occured...', 'yop_poll' )
309
)
@@ -4259,7 +4262,8 @@
4259
4260
<input type="hidden" value="<?php echo $current_template['id']; ?>" name="template_id" id="yop-poll-edit-add-new-template-form-template-id" />
4261
<input type="hidden" value="<?php echo $action_type ?>" name="action_type" id="yop-poll-edit-add-new-template-form-action-type" />
4262
- <input type="button" class="button-primary" value="<?php _e('Save', 'yop_poll' ) ?>" id="yop-poll-edit-add-new-template-form-submit" />
4263
</div>
4264
</div>
4265
<br class="clear">
@@ -4338,6 +4342,30 @@
4338
}
4339
die();
4340
}
4341
4342
public function yop_poll_do_vote() {
4343
$error = '';
53
$this->add_action( 'wp_ajax_yop_poll_html_editor', 'ajax_get_polls_for_html_editor', 1 );
54
$this->add_action( 'wp_ajax_yop_poll_edit_add_new_poll', 'ajax_edit_add_new_poll', 1 );
55
$this->add_action( 'wp_ajax_yop_poll_edit_add_new_poll_template', 'ajax_edit_add_new_poll_template', 1 );
56
+ $this->add_action( 'wp_ajax_yop_poll_reset_poll_template', 'ajax_reset_poll_template', 1 );
57
58
$this->add_action( 'wp_ajax_nopriv_yop_poll_do_vote', 'yop_poll_do_vote', 1 );
59
$this->add_action( 'wp_ajax_yop_poll_do_vote', 'yop_poll_do_vote', 1 );
297
wp_enqueue_script('xfn');
298
break;
299
case 'yop-polls-templates' :
300
+ add_filter( 'user_can_richedit' , create_function ( '$a' , 'return false;' ) , 1 );
301
wp_enqueue_script(array('editor', 'thickbox'));
302
wp_enqueue_style('thickbox');
303
wp_enqueue_style( 'yop-poll-admin-templates', "{$this->_config->plugin_url}/css/yop-poll-admin-templates.css", array(), $this->_config->version );
306
'ajax' => array(
307
'url' => admin_url('admin-ajax.php', (is_ssl() ? 'https' : 'http')),
308
'action' => 'yop_poll_edit_add_new_poll_template',
309
+ 'reset_action' => 'yop_poll_reset_poll_template',
310
'beforeSendMessage' => __( 'Please wait a moment while we process your request...', 'yop_poll' ),
311
'errorMessage' => __( 'An error has occured...', 'yop_poll' )
312
)
4262
4263
<input type="hidden" value="<?php echo $current_template['id']; ?>" name="template_id" id="yop-poll-edit-add-new-template-form-template-id" />
4264
<input type="hidden" value="<?php echo $action_type ?>" name="action_type" id="yop-poll-edit-add-new-template-form-action-type" />
4265
+ <input type="button" class="button-primary" value="<?php _e('Save', 'yop_poll' ) ?>" id="yop-poll-edit-add-new-template-form-save" />
4266
+ <input type="button" class="button-primary" value="<?php _e('Reset to default template', 'yop_poll' ) ?>" id="yop-poll-edit-add-new-template-form-reset" />
4267
</div>
4268
</div>
4269
<br class="clear">
4342
}
4343
die();
4344
}
4345
+
4346
+ function ajax_reset_poll_template() {
4347
+ if ( is_admin() ) {
4348
+ global $wpdb;
4349
+ check_ajax_referer('yop-poll-edit-add-new-template');
4350
+ require_once( $this->_config->plugin_inc_dir.'/yop_poll_model.php');
4351
+ $yop_poll_model = new Yop_Poll_Model();
4352
+ if ( 'edit' == $_REQUEST['action_type'] ) {
4353
+ if( ctype_digit( $_REQUEST['template_id'] )) {
4354
+ $yop_poll_template_id = $yop_poll_model->reset_poll_template( $_REQUEST, $this->_config );
4355
+ if( $yop_poll_template_id ) {
4356
+ _e( 'Poll Template Successfully Reseted!', 'yop_poll' );
4357
+ }
4358
+ else {
4359
+ echo $yop_poll_model->error;
4360
+ }
4361
+ }
4362
+ else
4363
+ _e( 'We\'re unable to reset your poll template!', 'yop_poll' );
4364
+ }
4365
+ unset( $yop_poll_model );
4366
+ }
4367
+ die();
4368
+ }
4369
4370
public function yop_poll_do_vote() {
4371
$error = '';
inc/db_schema.php CHANGED
@@ -122,22 +122,22 @@
122
123
//adding templates
124
$wpdb->query(
125
- "INSERT INTO `". $wpdb->yop_poll_templates . "` (`name`, `before_vote_template`, `after_vote_template`, `before_start_date_template`, `after_end_date_template`, `css`, `js`, `status`, `last_modified`, `date_added`) VALUES('White', '<div id=\\".'"'."yop-poll-name-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-name\\".'"'.">%POLL-NAME%</div>\r\n<div id=\\".'"'."yop-poll-question-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-question\\".'"'.">%POLL-QUESTION%</div>\r\n<div id=\\".'"'."yop-poll-answers-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-answers\\".'"'.">\r\n <ul>\r\n [ANSWER_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-answer-%POLL-ID%\\".'"'.">\r\n %POLL-ANSWER-CHECK-INPUT% \r\n %POLL-ANSWER-LABEL%\r\n <div class=\\".'"'."yop-poll-results-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-RESULT-LABEL%</div>\r\n <div class=\\".'"'."yop-poll-results-bar-%POLL-ID%\\".'"'.">\r\n %POLL-ANSWER-RESULT-BAR%\r\n </div>\r\n </li>\r\n [/ANSWER_CONTAINER]\r\n [OTHER_ANSWER_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-answer-%POLL-ID%\\".'"'.">\r\n %POLL-OTHER-ANSWER-CHECK-INPUT% \r\n %POLL-OTHER-ANSWER-LABEL% \r\n %POLL-ANSWER-RESULT-LABEL% \r\n %POLL-OTHER-ANSWER-TEXT-INPUT% \r\n <div class=\\".'"'."yop-poll-results-bar-%POLL-ID%\\".'"'.">\r\n %POLL-ANSWER-RESULT-BAR%\r\n </div>\r\n </li>\r\n [/OTHER_ANSWER_CONTAINER]\r\n </ul>\r\n</div>\r\n<div id=\\".'"'."yop-poll-custom-%POLL-ID%\\".'"'.">\r\n <ul>\r\n [CUSTOM_FIELD_CONTAINER]\r\n <li>%POLL-CUSTOM-FIELD-LABEL% %POLL-CUSTOM-FIELD-TEXT-INPUT%</li>\r\n [/CUSTOM_FIELD_CONTAINER]\r\n </ul>\r\n</div> \r\n<div id=\\".'"'."yop-poll-vote-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-footer\\".'"'.">\r\n <div>%POLL-VOTE-BUTTON%</div>\r\n <div id=\\".'"'."yop-poll-results-%POLL-ID%\\".'"'.">%POLL-VIEW-RESULT-LINK%</div>\r\n <div>%POLL-TOTAL-VOTERS%</div>\r\n <div>%POLL-TOTAL-VOTES%</div>\r\n</div>', '<div id=\\".'"'."yop-poll-name-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-name\\".'"'.">%POLL-NAME%</div>\r\n<div id=\\".'"'."yop-poll-question-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-question\\".'"'.">%POLL-QUESTION%</div>\r\n<div id=\\".'"'."yop-poll-answers-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-answers\\".'"'.">\r\n <ul>\r\n [ANSWER_RESULT_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-result-%POLL-ID%\\".'"'.">\r\n <label class=\\".'"'."pds-feedback-label-%POLL-ID%\\".'"'.">\r\n <span class=\\".'"'."pds-answer-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-LABEL%</span>\r\n <span class=\\".'"'."pds-feedback-result-%POLL-ID%\\".'"'.">\r\n <span class=\\".'"'."pds-feedback-per-%POLL-ID%\\".'"'."> %POLL-ANSWER-RESULT-LABEL%</span>\r\n </span>\r\n </label>\r\n <div>\r\n %POLL-ANSWER-RESULT-BAR%\r\n </div>\r\n </li>\r\n [/ANSWER_RESULT_CONTAINER]\r\n </ul>\r\n</div>\r\n<div id=\\".'"'."yop-poll-vote-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-footer\\".'"'.">\r\n <div>%POLL-TOTAL-VOTERS%</div>\r\n <div>%POLL-TOTAL-VOTES%</div>\r\n <div id=\\".'"'."yop-poll-back-%POLL-ID%\\".'"'.">%POLL-BACK-TO-VOTE-LINK%</div>\r\n</div>', 'This poll is about to <br>\r\nstart at %POLL-START-DATE%<br>\r\nand finish at %POLL-END-DATE%<br>', 'This poll is closed!\r\nPoll activity: <br>\r\nstart_date %POLL-START-DATE%<br>\r\nend_date %POLL-END-DATE%<br>\r\n\r\nPoll Results:\r\n<div id=\\".'"'."yop-poll-question-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-question\\".'"'.">%POLL-QUESTION%</div>\r\n<div id=\\".'"'."yop-poll-answers-1\\".'"'." class=\\".'"'."yop-poll-answers\\".'"'.">\r\n <ul>\r\n [ANSWER_RESULT_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-result-%POLL-ID%\\".'"'.">\r\n <label class=\\".'"'."pds-feedback-label\\".'"'.">\r\n <span class=\\".'"'."pds-answer-text\\".'"'.">%POLL-ANSWER-LABEL%</span>\r\n <span class=\\".'"'."pds-feedback-result\\".'"'.">\r\n <span class=\\".'"'."pds-feedback-per\\".'"'."> %POLL-ANSWER-RESULT-LABEL%</span>\r\n </span>\r\n </label>\r\n <span class=\\".'"'."pds-clear\\".'"'." style=\\".'"'."display: block;clear: both;height:1px;line-height:1px;\\".'"'."> </span>\r\n %POLL-ANSWER-RESULT-BAR%\r\n </li>\r\n [/ANSWER_RESULT_CONTAINER]\r\n </ul>\r\n</div>\r\n%POLL-VOTE-BUTTON%', '#yop-poll-container-%POLL-ID% {\r\n width:200px;\r\n background:#fff;\r\n padding:10px;\r\n color:#555;\r\n overflow:hidden;\r\n font-size:12px;\r\n}\r\n#yop-poll-name-%POLL-ID% {\r\n font-size:14px;\r\n font-weight:bold;\r\n}\r\n\r\n#yop-poll-question-%POLL-ID% {\r\n font-size:14px;\r\n margin:5px 0px;\r\n}\r\n#yop-poll-answers-%POLL-ID% { }\r\n#yop-poll-answers-%POLL-ID% ul {\r\n list-style: none outside none;\r\n margin: 0;\r\n padding: 0;\r\n}\r\n#yop-poll-answers-%POLL-ID% ul li { \r\n font-style:normal;\r\n margin:0px 0px 10px 0px;\r\n padding:0px;\r\n font-size:12px;\r\n}\r\n#yop-poll-answers-%POLL-ID% ul li input { \r\n margin:0px; \r\n float:none;\r\n}\r\n#yop-poll-answers-%POLL-ID% ul li label { \r\n margin:0px; \r\n font-style:normal; \r\n font-weight:normal; \r\n font-size:12px; \r\n float:none;\r\n}\r\n.yop-poll-results-%POLL-ID% {\r\n font-size: 12px;\r\n font-style: italic;\r\n font-weight: normal;\r\n margin-left: 15px;\r\n}\r\n\r\n#yop-poll-custom-%POLL-ID% { }\r\n#yop-poll-custom-%POLL-ID% ul {\r\n list-style: none outside none;\r\n margin: 0;\r\n padding: 0;\r\n}\r\n#yop-poll-custom-%POLL-ID% ul li { \r\n padding:0px;\r\n margin:0px; \r\n font-size:14px;\r\n}\r\n#yop-poll-custom-%POLL-ID% ul li input { margin:0px 0px 5px 0px; padding:2%; width:96%; text-indent:2%; font-size:12px; }\r\n\r\n#yop-poll-vote-%POLL-ID% {\r\n\r\n}\r\n.yop-poll-results-bar-%POLL-ID% { background:#f5f5f5; }\r\n.yop-poll-results-bar-%POLL-ID% div { background:#555 !important; }\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-vote-%POLL-ID% button { float:left; }\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% {\r\n float: right;\r\n margin-bottom: 20px;\r\n margin-top: -20px;\r\n width: auto;\r\n}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% a { color:#555; text-decoration:underline; font-size:12px;}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-back-%POLL-ID% a { color:#555; text-decoration:underline; font-size:12px;}\r\n#yop-poll-vote-%POLL-ID% div { float:left; width:100%; }\r\n\r\n#yop-poll-container-error-%POLL-ID% {\r\n font-size:12px;\r\n font-style:italic;\r\n color:red;\r\n text-transform:lowercase;\r\n}', 'function stripBorder_%POLL-ID%(object) {\r\n object.each(function() {\r\n if( parseInt(jQuery(this).width() ) > 0) {\r\n jQuery(this).width( parseInt( jQuery(this).width() ) - parseInt(jQuery(this).css(\\".'"'."border-left-width\\".'"'.")) - parseInt(jQuery(this).css(\\".'"'."border-right-width\\".'"'.")) );\r\n }\r\n else {\r\n jQuery(this).css(\\".'"'."border-left-width\\".'"'.", \'0px\');\r\n jQuery(this).css(\\".'"'."border-right-width\\".'"'.", \'0px\');\r\n }\r\n });\r\n}\r\nfunction stripPadding_%POLL-ID%(object) {\r\n object.each(function() { \r\n jQuery(this).width( parseInt( jQuery(this).width() ) - parseInt(jQuery(this).css(\\".'"'."padding-left\\".'"'.")) - parseInt(jQuery(this).css(\\".'"'."padding-left\\".'"'.")) );\r\n });\r\n}\r\n\r\nfunction strip_results_%POLL-ID%() {\r\n stripPadding_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop_poll_li_result-%POLL-ID%\\".'"'.") ); \r\n stripBorder_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-result-bar-%POLL-ID%\\".'"'."));\r\n}\r\n\r\njQuery(document).ready(function(e) {\r\n if(typeof window.strip_results_%POLL-ID% == \'function\') \r\n strip_results_%POLL-ID%();\r\n \r\n if(typeof window.tabulate_answers_%POLL-ID% == \'function\') \r\n tabulate_answers_%POLL-ID%();\r\n \r\n if(typeof window.tabulate_results_%POLL-ID% == \'function\') \r\n tabulate_results_%POLL-ID%();\r\n \r\n});\r\n\r\nfunction equalWidth_%POLL-ID%(obj, cols) {\r\n var widest = 0; \r\n obj.each(function() {\r\n var thisWidth = jQuery(this).width();\r\n if(thisWidth > widest) {\r\n widest = thisWidth; \r\n } \r\n }); \r\n width = parseInt( widest / cols); \r\n obj.width(width); \r\n obj.css(\'float\', \'left\');\r\n}\r\n\r\nfunction tabulate_answers_%POLL-ID%() {\r\n equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-answer-%POLL-ID%\\".'"'."), %ANSWERS-TABULATED-COLS% );\r\n}\r\n\r\nfunction tabulate_results_%POLL-ID%() {\r\n equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-result-%POLL-ID%\\".'"'."), %RESULTS-TABULATED-COLS% );\r\n}', 'default', '2012-11-05 12:50:08', '2012-11-01 20:56:08'),
126
- ('Grey', '<div id=\\".'"'."yop-poll-name-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-name\\".'"'.">%POLL-NAME%</div>\r\n<div id=\\".'"'."yop-poll-question-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-question\\".'"'.">%POLL-QUESTION%</div>\r\n<div id=\\".'"'."yop-poll-answers-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-answers\\".'"'.">\r\n <ul>\r\n [ANSWER_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-answer-%POLL-ID%\\".'"'.">\r\n %POLL-ANSWER-CHECK-INPUT% \r\n %POLL-ANSWER-LABEL%\r\n <div class=\\".'"'."yop-poll-results-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-RESULT-LABEL%</div>\r\n <div class=\\".'"'."yop-poll-results-bar-%POLL-ID%\\".'"'.">\r\n %POLL-ANSWER-RESULT-BAR%\r\n </div>\r\n </li>\r\n [/ANSWER_CONTAINER]\r\n [OTHER_ANSWER_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-answer-%POLL-ID%\\".'"'.">\r\n %POLL-OTHER-ANSWER-CHECK-INPUT% \r\n %POLL-OTHER-ANSWER-LABEL% \r\n %POLL-ANSWER-RESULT-LABEL% \r\n %POLL-OTHER-ANSWER-TEXT-INPUT% \r\n <div class=\\".'"'."yop-poll-results-bar-%POLL-ID%\\".'"'.">\r\n %POLL-ANSWER-RESULT-BAR%\r\n </div>\r\n </li>\r\n [/OTHER_ANSWER_CONTAINER]\r\n </ul>\r\n</div>\r\n<div id=\\".'"'."yop-poll-custom-%POLL-ID%\\".'"'.">\r\n <ul>\r\n [CUSTOM_FIELD_CONTAINER]\r\n <li>%POLL-CUSTOM-FIELD-LABEL% %POLL-CUSTOM-FIELD-TEXT-INPUT%</li>\r\n [/CUSTOM_FIELD_CONTAINER]\r\n </ul>\r\n</div> \r\n<div id=\\".'"'."yop-poll-vote-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-footer\\".'"'.">\r\n <div>%POLL-VOTE-BUTTON%</div>\r\n <div id=\\".'"'."yop-poll-results-%POLL-ID%\\".'"'.">%POLL-VIEW-RESULT-LINK%</div>\r\n <div>%POLL-TOTAL-VOTERS%</div>\r\n <div>%POLL-TOTAL-VOTES%</div>\r\n</div>', '<div id=\\".'"'."yop-poll-name-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-name\\".'"'.">%POLL-NAME%</div>\r\n<div id=\\".'"'."yop-poll-question-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-question\\".'"'.">%POLL-QUESTION%</div>\r\n<div id=\\".'"'."yop-poll-answers-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-answers\\".'"'.">\r\n <ul>\r\n [ANSWER_RESULT_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-result-%POLL-ID%\\".'"'.">\r\n <label class=\\".'"'."pds-feedback-label-%POLL-ID%\\".'"'.">\r\n <span class=\\".'"'."pds-answer-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-LABEL%</span>\r\n <span class=\\".'"'."pds-feedback-result-%POLL-ID%\\".'"'.">\r\n <span class=\\".'"'."pds-feedback-per-%POLL-ID%\\".'"'."> %POLL-ANSWER-RESULT-LABEL%</span>\r\n </span>\r\n </label>\r\n <div>\r\n %POLL-ANSWER-RESULT-BAR%\r\n </div>\r\n </li>\r\n [/ANSWER_RESULT_CONTAINER]\r\n </ul>\r\n</div>\r\n<div id=\\".'"'."yop-poll-vote-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-footer\\".'"'.">\r\n <div>%POLL-TOTAL-VOTERS%</div>\r\n <div>%POLL-TOTAL-VOTES%</div>\r\n <div id=\\".'"'."yop-poll-back-%POLL-ID%\\".'"'.">%POLL-BACK-TO-VOTE-LINK%</div>\r\n</div>', 'This poll is about to <br>\r\nstart at %POLL-START-DATE%<br>\r\nand finish at %POLL-END-DATE%<br>', 'This poll is closed!\r\nPoll activity: <br>\r\nstart_date %POLL-START-DATE%<br>\r\nend_date %POLL-END-DATE%<br>\r\n\r\nPoll Results:\r\n<div id=\\".'"'."yop-poll-question-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-question\\".'"'.">%POLL-QUESTION%</div>\r\n<div id=\\".'"'."yop-poll-answers-1\\".'"'." class=\\".'"'."yop-poll-answers\\".'"'.">\r\n <ul>\r\n [ANSWER_RESULT_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-result-%POLL-ID%\\".'"'.">\r\n <label class=\\".'"'."pds-feedback-label\\".'"'.">\r\n <span class=\\".'"'."pds-answer-text\\".'"'.">%POLL-ANSWER-LABEL%</span>\r\n <span class=\\".'"'."pds-feedback-result\\".'"'.">\r\n <span class=\\".'"'."pds-feedback-per\\".'"'."> %POLL-ANSWER-RESULT-LABEL%</span>\r\n </span>\r\n </label>\r\n <span class=\\".'"'."pds-clear\\".'"'." style=\\".'"'."display: block;clear: both;height:1px;line-height:1px;\\".'"'."> </span>\r\n %POLL-ANSWER-RESULT-BAR%\r\n </li>\r\n [/ANSWER_RESULT_CONTAINER]\r\n </ul>\r\n</div>\r\n%POLL-VOTE-BUTTON%', '#yop-poll-container-%POLL-ID% {\r\n width:200px;\r\n background:#eee;\r\n padding:10px;\r\n color:#000;\r\n overflow:hidden;\r\n font-size:12px;\r\n}\r\n#yop-poll-name-%POLL-ID% {\r\n font-size:14px;\r\n font-weight:bold;\r\n}\r\n\r\n#yop-poll-question-%POLL-ID% {\r\n font-size:14px;\r\n margin:5px 0px;\r\n}\r\n#yop-poll-answers-%POLL-ID% { }\r\n#yop-poll-answers-%POLL-ID% ul {\r\n list-style: none outside none;\r\n margin: 0;\r\n padding: 0;\r\n}\r\n#yop-poll-answers-%POLL-ID% ul li { \r\n font-style:normal;\r\n margin:0px 0px 10px 0px;\r\n padding:0px;\r\n font-size:12px;\r\n}\r\n#yop-poll-answers-%POLL-ID% ul li input { \r\n margin:0px; \r\n float:none;\r\n}\r\n#yop-poll-answers-%POLL-ID% ul li label { \r\n margin:0px; \r\n font-style:normal; \r\n font-weight:normal; \r\n font-size:12px; \r\n float:none;\r\n}\r\n.yop-poll-results-%POLL-ID% {\r\n font-size: 12px;\r\n font-style: italic;\r\n font-weight: normal;\r\n margin-left: 15px;\r\n}\r\n\r\n#yop-poll-custom-%POLL-ID% { }\r\n#yop-poll-custom-%POLL-ID% ul {\r\n list-style: none outside none;\r\n margin: 0;\r\n padding: 0;\r\n}\r\n#yop-poll-custom-%POLL-ID% ul li { \r\n padding:0px;\r\n margin:0px; \r\n font-size:14px;\r\n}\r\n#yop-poll-custom-%POLL-ID% ul li input { margin:0px 0px 5px 0px; padding:2%; width:96%; text-indent:2%; font-size:12px; }\r\n\r\n#yop-poll-vote-%POLL-ID% {\r\n\r\n}\r\n.yop-poll-results-bar-%POLL-ID% { background:#f5f5f5; }\r\n.yop-poll-results-bar-%POLL-ID% div { background:#555 !important; }\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-vote-%POLL-ID% button { float:left; }\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% {\r\n float: right;\r\n margin-bottom: 20px;\r\n margin-top: -20px;\r\n width: auto;\r\n}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% a { color:#000; text-decoration:underline; font-size:12px;}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-back-%POLL-ID% a { color:#000; text-decoration:underline; font-size:12px;}\r\n#yop-poll-vote-%POLL-ID% div { float:left; width:100%; }\r\n\r\n#yop-poll-container-error-%POLL-ID% {\r\n font-size:12px;\r\n font-style:italic;\r\n color:red;\r\n text-transform:lowercase;\r\n}', 'function stripBorder_%POLL-ID%(object) {\r\n object.each(function() {\r\n if( parseInt(jQuery(this).width() ) > 0) {\r\n jQuery(this).width( parseInt( jQuery(this).width() ) - parseInt(jQuery(this).css(\\".'"'."border-left-width\\".'"'.")) - parseInt(jQuery(this).css(\\".'"'."border-right-width\\".'"'.")) );\r\n }\r\n else {\r\n jQuery(this).css(\\".'"'."border-left-width\\".'"'.", \'0px\');\r\n jQuery(this).css(\\".'"'."border-right-width\\".'"'.", \'0px\');\r\n }\r\n });\r\n}\r\nfunction stripPadding_%POLL-ID%(object) {\r\n object.each(function() { \r\n jQuery(this).width( parseInt( jQuery(this).width() ) - parseInt(jQuery(this).css(\\".'"'."padding-left\\".'"'.")) - parseInt(jQuery(this).css(\\".'"'."padding-left\\".'"'.")) );\r\n });\r\n}\r\n\r\nfunction strip_results_%POLL-ID%() {\r\n stripPadding_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop_poll_li_result-%POLL-ID%\\".'"'.") ); \r\n stripBorder_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-result-bar-%POLL-ID%\\".'"'."));\r\n}\r\n\r\njQuery(document).ready(function(e) {\r\n if(typeof window.strip_results_%POLL-ID% == \'function\') \r\n strip_results_%POLL-ID%();\r\n \r\n if(typeof window.tabulate_answers_%POLL-ID% == \'function\') \r\n tabulate_answers_%POLL-ID%();\r\n \r\n if(typeof window.tabulate_results_%POLL-ID% == \'function\') \r\n tabulate_results_%POLL-ID%();\r\n \r\n});\r\n\r\nfunction equalWidth_%POLL-ID%(obj, cols) {\r\n var widest = 0; \r\n obj.each(function() {\r\n var thisWidth = jQuery(this).width();\r\n if(thisWidth > widest) {\r\n widest = thisWidth; \r\n } \r\n }); \r\n width = parseInt( widest / cols); \r\n obj.width(width); \r\n obj.css(\'float\', \'left\');\r\n}\r\n\r\nfunction tabulate_answers_%POLL-ID%() {\r\n equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-answer-%POLL-ID%\\".'"'."), %ANSWERS-TABULATED-COLS% );\r\n}\r\n\r\nfunction tabulate_results_%POLL-ID%() {\r\n equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-result-%POLL-ID%\\".'"'."), %RESULTS-TABULATED-COLS% );\r\n}', 'other', '2012-11-05 12:50:36', '2012-11-01 20:56:08'),
127
- ('Dark', '<div id=\\".'"'."yop-poll-name-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-name\\".'"'.">%POLL-NAME%</div>\r\n<div id=\\".'"'."yop-poll-question-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-question\\".'"'.">%POLL-QUESTION%</div>\r\n<div id=\\".'"'."yop-poll-answers-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-answers\\".'"'.">\r\n <ul>\r\n [ANSWER_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-answer-%POLL-ID%\\".'"'.">\r\n %POLL-ANSWER-CHECK-INPUT% \r\n %POLL-ANSWER-LABEL%\r\n <div class=\\".'"'."yop-poll-results-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-RESULT-LABEL%</div>\r\n <div class=\\".'"'."yop-poll-results-bar-%POLL-ID%\\".'"'.">\r\n %POLL-ANSWER-RESULT-BAR%\r\n </div>\r\n </li>\r\n [/ANSWER_CONTAINER]\r\n [OTHER_ANSWER_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-answer-%POLL-ID%\\".'"'.">\r\n %POLL-OTHER-ANSWER-CHECK-INPUT% \r\n %POLL-OTHER-ANSWER-LABEL% \r\n %POLL-ANSWER-RESULT-LABEL% \r\n %POLL-OTHER-ANSWER-TEXT-INPUT% \r\n <div class=\\".'"'."yop-poll-results-bar-%POLL-ID%\\".'"'.">\r\n %POLL-ANSWER-RESULT-BAR%\r\n </div>\r\n </li>\r\n [/OTHER_ANSWER_CONTAINER]\r\n </ul>\r\n</div>\r\n<div id=\\".'"'."yop-poll-custom-%POLL-ID%\\".'"'.">\r\n <ul>\r\n [CUSTOM_FIELD_CONTAINER]\r\n <li>%POLL-CUSTOM-FIELD-LABEL% %POLL-CUSTOM-FIELD-TEXT-INPUT%</li>\r\n [/CUSTOM_FIELD_CONTAINER]\r\n </ul>\r\n</div> \r\n<div id=\\".'"'."yop-poll-vote-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-footer\\".'"'.">\r\n <div>%POLL-VOTE-BUTTON%</div>\r\n <div id=\\".'"'."yop-poll-results-%POLL-ID%\\".'"'.">%POLL-VIEW-RESULT-LINK%</div>\r\n <div>%POLL-TOTAL-VOTERS%</div>\r\n <div>%POLL-TOTAL-VOTES%</div>\r\n</div>', '<div id=\\".'"'."yop-poll-name-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-name\\".'"'.">%POLL-NAME%</div>\r\n<div id=\\".'"'."yop-poll-question-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-question\\".'"'.">%POLL-QUESTION%</div>\r\n<div id=\\".'"'."yop-poll-answers-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-answers\\".'"'.">\r\n <ul>\r\n [ANSWER_RESULT_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-result-%POLL-ID%\\".'"'.">\r\n <label class=\\".'"'."pds-feedback-label-%POLL-ID%\\".'"'.">\r\n <span class=\\".'"'."pds-answer-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-LABEL%</span>\r\n <span class=\\".'"'."pds-feedback-result-%POLL-ID%\\".'"'.">\r\n <span class=\\".'"'."pds-feedback-per-%POLL-ID%\\".'"'."> %POLL-ANSWER-RESULT-LABEL%</span>\r\n </span>\r\n </label>\r\n <div>\r\n %POLL-ANSWER-RESULT-BAR%\r\n </div>\r\n </li>\r\n [/ANSWER_RESULT_CONTAINER]\r\n </ul>\r\n</div>\r\n<div id=\\".'"'."yop-poll-vote-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-footer\\".'"'.">\r\n <div>%POLL-TOTAL-VOTERS%</div>\r\n <div>%POLL-TOTAL-VOTES%</div>\r\n <div id=\\".'"'."yop-poll-back-%POLL-ID%\\".'"'.">%POLL-BACK-TO-VOTE-LINK%</div>\r\n</div>', 'This poll is about to <br>\r\nstart at %POLL-START-DATE%<br>\r\nand finish at %POLL-END-DATE%<br>', 'This poll is closed!\r\nPoll activity: <br>\r\nstart_date %POLL-START-DATE%<br>\r\nend_date %POLL-END-DATE%<br>\r\n\r\nPoll Results:\r\n<div id=\\".'"'."yop-poll-question-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-question\\".'"'.">%POLL-QUESTION%</div>\r\n<div id=\\".'"'."yop-poll-answers-1\\".'"'." class=\\".'"'."yop-poll-answers\\".'"'.">\r\n <ul>\r\n [ANSWER_RESULT_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-result-%POLL-ID%\\".'"'.">\r\n <label class=\\".'"'."pds-feedback-label\\".'"'.">\r\n <span class=\\".'"'."pds-answer-text\\".'"'.">%POLL-ANSWER-LABEL%</span>\r\n <span class=\\".'"'."pds-feedback-result\\".'"'.">\r\n <span class=\\".'"'."pds-feedback-per\\".'"'."> %POLL-ANSWER-RESULT-LABEL%</span>\r\n </span>\r\n </label>\r\n <span class=\\".'"'."pds-clear\\".'"'." style=\\".'"'."display: block;clear: both;height:1px;line-height:1px;\\".'"'."> </span>\r\n %POLL-ANSWER-RESULT-BAR%\r\n </li>\r\n [/ANSWER_RESULT_CONTAINER]\r\n </ul>\r\n</div>\r\n%POLL-VOTE-BUTTON%', '#yop-poll-container-%POLL-ID% {\r\n width:200px;\r\n background:#555;\r\n padding:10px;\r\n color:#fff;\r\n overflow:hidden;\r\n font-size:12px;\r\n}\r\n#yop-poll-name-%POLL-ID% {\r\n font-size:14px;\r\n font-weight:bold;\r\n}\r\n\r\n#yop-poll-question-%POLL-ID% {\r\n font-size:14px;\r\n margin:5px 0px;\r\n}\r\n#yop-poll-answers-%POLL-ID% { }\r\n#yop-poll-answers-%POLL-ID% ul {\r\n list-style: none outside none;\r\n margin: 0;\r\n padding: 0;\r\n}\r\n#yop-poll-answers-%POLL-ID% ul li { \r\n font-style:normal;\r\n margin:0px 0px 10px 0px;\r\n padding:0px;\r\n font-size:12px;\r\n}\r\n#yop-poll-answers-%POLL-ID% ul li input { \r\n margin:0px; \r\n float:none;\r\n}\r\n#yop-poll-answers-%POLL-ID% ul li label { \r\n margin:0px; \r\n font-style:normal; \r\n font-weight:normal; \r\n font-size:12px; \r\n float:none;\r\n}\r\n.yop-poll-results-%POLL-ID% {\r\n font-size: 12px;\r\n font-style: italic;\r\n font-weight: normal;\r\n margin-left: 15px;\r\n}\r\n\r\n#yop-poll-custom-%POLL-ID% { }\r\n#yop-poll-custom-%POLL-ID% ul {\r\n list-style: none outside none;\r\n margin: 0;\r\n padding: 0;\r\n}\r\n#yop-poll-custom-%POLL-ID% ul li { \r\n padding:0px;\r\n margin:0px; \r\n font-size:14px;\r\n}\r\n#yop-poll-custom-%POLL-ID% ul li input { margin:0px 0px 5px 0px; padding:2%; width:96%; text-indent:2%; font-size:12px; }\r\n\r\n#yop-poll-vote-%POLL-ID% {\r\n\r\n}\r\n.yop-poll-results-bar-%POLL-ID% { background:#f5f5f5; }\r\n.yop-poll-results-bar-%POLL-ID% div { background:#555 !important; }\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-vote-%POLL-ID% button { float:left; }\r\n#yop-poll-vote-4 div#yop-poll-results-4 {\r\n float: right;\r\n margin-bottom: 20px;\r\n margin-top: -20px;\r\n width: auto;\r\n}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% a { color:#fff; text-decoration:underline; font-size:12px;}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-back-%POLL-ID% a { color:#fff; text-decoration:underline; font-size:12px;}\r\n#yop-poll-vote-%POLL-ID% div { float:left; width:100%; }\r\n\r\n#yop-poll-container-error-%POLL-ID% {\r\n font-size:12px;\r\n font-style:italic;\r\n color:red;\r\n text-transform:lowercase;\r\n}', 'function stripBorder_%POLL-ID%(object) {\r\n object.each(function() {\r\n if( parseInt(jQuery(this).width() ) > 0) {\r\n jQuery(this).width( parseInt( jQuery(this).width() ) - parseInt(jQuery(this).css(\\".'"'."border-left-width\\".'"'.")) - parseInt(jQuery(this).css(\\".'"'."border-right-width\\".'"'.")) );\r\n }\r\n else {\r\n jQuery(this).css(\\".'"'."border-left-width\\".'"'.", \'0px\');\r\n jQuery(this).css(\\".'"'."border-right-width\\".'"'.", \'0px\');\r\n }\r\n });\r\n}\r\nfunction stripPadding_%POLL-ID%(object) {\r\n object.each(function() { \r\n jQuery(this).width( parseInt( jQuery(this).width() ) - parseInt(jQuery(this).css(\\".'"'."padding-left\\".'"'.")) - parseInt(jQuery(this).css(\\".'"'."padding-left\\".'"'.")) );\r\n });\r\n}\r\n\r\nfunction strip_results_%POLL-ID%() {\r\n stripPadding_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop_poll_li_result-%POLL-ID%\\".'"'.") ); \r\n stripBorder_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-result-bar-%POLL-ID%\\".'"'."));\r\n}\r\n\r\njQuery(document).ready(function(e) {\r\n if(typeof window.strip_results_%POLL-ID% == \'function\') \r\n strip_results_%POLL-ID%();\r\n \r\n if(typeof window.tabulate_answers_%POLL-ID% == \'function\') \r\n tabulate_answers_%POLL-ID%();\r\n \r\n if(typeof window.tabulate_results_%POLL-ID% == \'function\') \r\n tabulate_results_%POLL-ID%();\r\n \r\n});\r\n\r\nfunction equalWidth_%POLL-ID%(obj, cols) {\r\n var widest = 0; \r\n obj.each(function() {\r\n var thisWidth = jQuery(this).width();\r\n if(thisWidth > widest) {\r\n widest = thisWidth; \r\n } \r\n }); \r\n width = parseInt( widest / cols); \r\n obj.width(width); \r\n obj.css(\'float\', \'left\');\r\n}\r\n\r\nfunction tabulate_answers_%POLL-ID%() {\r\n equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-answer-%POLL-ID%\\".'"'."), %ANSWERS-TABULATED-COLS% );\r\n}\r\n\r\nfunction tabulate_results_%POLL-ID%() {\r\n equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-result-%POLL-ID%\\".'"'."), %RESULTS-TABULATED-COLS% );\r\n}', 'other', '2012-11-05 12:51:06', '2012-11-01 20:56:08'),
128
- ('Blue v1', '<div id=\\".'"'."yop-poll-name-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-name\\".'"'.">%POLL-NAME%</div>\r\n<div id=\\".'"'."yop-poll-question-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-question\\".'"'.">%POLL-QUESTION%</div>\r\n<div id=\\".'"'."yop-poll-answers-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-answers\\".'"'.">\r\n <ul>\r\n [ANSWER_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-answer-%POLL-ID%\\".'"'.">\r\n %POLL-ANSWER-CHECK-INPUT% \r\n %POLL-ANSWER-LABEL%\r\n <div class=\\".'"'."yop-poll-results-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-RESULT-LABEL%</div>\r\n <div class=\\".'"'."yop-poll-results-bar-%POLL-ID%\\".'"'.">\r\n %POLL-ANSWER-RESULT-BAR%\r\n </div>\r\n </li>\r\n [/ANSWER_CONTAINER]\r\n [OTHER_ANSWER_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-answer-%POLL-ID%\\".'"'.">\r\n %POLL-OTHER-ANSWER-CHECK-INPUT% \r\n %POLL-OTHER-ANSWER-LABEL% \r\n %POLL-ANSWER-RESULT-LABEL% \r\n %POLL-OTHER-ANSWER-TEXT-INPUT% \r\n <div class=\\".'"'."yop-poll-results-bar-%POLL-ID%\\".'"'.">\r\n %POLL-ANSWER-RESULT-BAR%\r\n </div>\r\n </li>\r\n [/OTHER_ANSWER_CONTAINER]\r\n </ul>\r\n</div>\r\n<div id=\\".'"'."yop-poll-custom-%POLL-ID%\\".'"'.">\r\n <ul>\r\n [CUSTOM_FIELD_CONTAINER]\r\n <li>%POLL-CUSTOM-FIELD-LABEL% %POLL-CUSTOM-FIELD-TEXT-INPUT%</li>\r\n [/CUSTOM_FIELD_CONTAINER]\r\n </ul>\r\n</div> \r\n<div id=\\".'"'."yop-poll-vote-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-footer\\".'"'.">\r\n <div>%POLL-VOTE-BUTTON%</div>\r\n <div id=\\".'"'."yop-poll-results-%POLL-ID%\\".'"'.">%POLL-VIEW-RESULT-LINK%</div>\r\n <div>%POLL-TOTAL-VOTERS%</div>\r\n <div>%POLL-TOTAL-VOTES%</div>\r\n</div>', '<div id=\\".'"'."yop-poll-name-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-name\\".'"'.">%POLL-NAME%</div>\r\n<div id=\\".'"'."yop-poll-question-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-question\\".'"'.">%POLL-QUESTION%</div>\r\n<div id=\\".'"'."yop-poll-answers-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-answers\\".'"'.">\r\n <ul>\r\n [ANSWER_RESULT_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-result-%POLL-ID%\\".'"'.">\r\n <label class=\\".'"'."pds-feedback-label-%POLL-ID%\\".'"'.">\r\n <span class=\\".'"'."pds-answer-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-LABEL%</span>\r\n <span class=\\".'"'."pds-feedback-result-%POLL-ID%\\".'"'.">\r\n <span class=\\".'"'."pds-feedback-per-%POLL-ID%\\".'"'."> %POLL-ANSWER-RESULT-LABEL%</span>\r\n </span>\r\n </label>\r\n <div>\r\n %POLL-ANSWER-RESULT-BAR%\r\n </div>\r\n </li>\r\n [/ANSWER_RESULT_CONTAINER]\r\n </ul>\r\n</div>\r\n<div id=\\".'"'."yop-poll-vote-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-footer\\".'"'.">\r\n <div>%POLL-TOTAL-VOTERS%</div>\r\n <div>%POLL-TOTAL-VOTES%</div>\r\n <div id=\\".'"'."yop-poll-back-%POLL-ID%\\".'"'.">%POLL-BACK-TO-VOTE-LINK%</div>\r\n</div>', 'This poll is about to <br>\r\nstart at %POLL-START-DATE%<br>\r\nand finish at %POLL-END-DATE%<br>', 'This poll is closed!\r\nPoll activity: <br>\r\nstart_date %POLL-START-DATE%<br>\r\nend_date %POLL-END-DATE%<br>\r\n\r\nPoll Results:\r\n<div id=\\".'"'."yop-poll-question-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-question\\".'"'.">%POLL-QUESTION%</div>\r\n<div id=\\".'"'."yop-poll-answers-1\\".'"'." class=\\".'"'."yop-poll-answers\\".'"'.">\r\n <ul>\r\n [ANSWER_RESULT_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-result-%POLL-ID%\\".'"'.">\r\n <label class=\\".'"'."pds-feedback-label\\".'"'.">\r\n <span class=\\".'"'."pds-answer-text\\".'"'.">%POLL-ANSWER-LABEL%</span>\r\n <span class=\\".'"'."pds-feedback-result\\".'"'.">\r\n <span class=\\".'"'."pds-feedback-per\\".'"'."> %POLL-ANSWER-RESULT-LABEL%</span>\r\n </span>\r\n </label>\r\n <span class=\\".'"'."pds-clear\\".'"'." style=\\".'"'."display: block;clear: both;height:1px;line-height:1px;\\".'"'."> </span>\r\n %POLL-ANSWER-RESULT-BAR%\r\n </li>\r\n [/ANSWER_RESULT_CONTAINER]\r\n </ul>\r\n</div>\r\n%POLL-VOTE-BUTTON%', '#yop-poll-container-%POLL-ID% {\r\n width:200px;\r\n background:#327BD6;\r\n padding:10px;\r\n color:#fff;\r\n overflow:hidden;\r\n font-size:12px;\r\n}\r\n#yop-poll-name-%POLL-ID% {\r\n font-size:14px;\r\n font-weight:bold;\r\n}\r\n\r\n#yop-poll-question-%POLL-ID% {\r\n font-size:14px;\r\n margin:5px 0px;\r\n}\r\n#yop-poll-answers-%POLL-ID% { }\r\n#yop-poll-answers-%POLL-ID% ul {\r\n list-style: none outside none;\r\n margin: 0;\r\n padding: 0;\r\n}\r\n#yop-poll-answers-%POLL-ID% ul li { \r\n font-style:normal;\r\n margin:0px 0px 10px 0px;\r\n padding:0px;\r\n font-size:12px;\r\n}\r\n#yop-poll-answers-%POLL-ID% ul li input { \r\n margin:0px; \r\n float:none;\r\n}\r\n#yop-poll-answers-%POLL-ID% ul li label { \r\n margin:0px; \r\n font-style:normal; \r\n font-weight:normal; \r\n font-size:12px; \r\n float:none;\r\n}\r\n.yop-poll-results-%POLL-ID% {\r\n font-size: 12px;\r\n font-style: italic;\r\n font-weight: normal;\r\n margin-left: 15px;\r\n}\r\n\r\n#yop-poll-custom-%POLL-ID% { }\r\n#yop-poll-custom-%POLL-ID% ul {\r\n list-style: none outside none;\r\n margin: 0;\r\n padding: 0;\r\n}\r\n#yop-poll-custom-%POLL-ID% ul li { \r\n padding:0px;\r\n margin:0px; \r\n font-size:14px;\r\n}\r\n#yop-poll-custom-%POLL-ID% ul li input { margin:0px 0px 5px 0px; padding:2%; width:96%; text-indent:2%; font-size:12px; }\r\n\r\n#yop-poll-vote-%POLL-ID% {\r\n\r\n}\r\n.yop-poll-results-bar-%POLL-ID% { background:#f5f5f5; }\r\n.yop-poll-results-bar-%POLL-ID% div { background:#555 !important; }\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-vote-%POLL-ID% button { float:left; }\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% {\r\n float: right;\r\n margin-bottom: 20px;\r\n margin-top: -20px;\r\n width: auto;\r\n}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% a { color:#fff; text-decoration:underline; font-size:12px;}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-back-%POLL-ID% a { color:#fff; text-decoration:underline; font-size:12px;}\r\n#yop-poll-vote-%POLL-ID% div { float:left; width:100%; }\r\n\r\n#yop-poll-container-error-%POLL-ID% {\r\n font-size:12px;\r\n font-style:italic;\r\n color:red;\r\n text-transform:lowercase;\r\n}', 'function stripBorder_%POLL-ID%(object) {\r\n object.each(function() {\r\n if( parseInt(jQuery(this).width() ) > 0) {\r\n jQuery(this).width( parseInt( jQuery(this).width() ) - parseInt(jQuery(this).css(\\".'"'."border-left-width\\".'"'.")) - parseInt(jQuery(this).css(\\".'"'."border-right-width\\".'"'.")) );\r\n }\r\n else {\r\n jQuery(this).css(\\".'"'."border-left-width\\".'"'.", \'0px\');\r\n jQuery(this).css(\\".'"'."border-right-width\\".'"'.", \'0px\');\r\n }\r\n });\r\n}\r\nfunction stripPadding_%POLL-ID%(object) {\r\n object.each(function() { \r\n jQuery(this).width( parseInt( jQuery(this).width() ) - parseInt(jQuery(this).css(\\".'"'."padding-left\\".'"'.")) - parseInt(jQuery(this).css(\\".'"'."padding-left\\".'"'.")) );\r\n });\r\n}\r\n\r\nfunction strip_results_%POLL-ID%() {\r\n stripPadding_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop_poll_li_result-%POLL-ID%\\".'"'.") ); \r\n stripBorder_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-result-bar-%POLL-ID%\\".'"'."));\r\n}\r\n\r\njQuery(document).ready(function(e) {\r\n if(typeof window.strip_results_%POLL-ID% == \'function\') \r\n strip_results_%POLL-ID%();\r\n \r\n if(typeof window.tabulate_answers_%POLL-ID% == \'function\') \r\n tabulate_answers_%POLL-ID%();\r\n \r\n if(typeof window.tabulate_results_%POLL-ID% == \'function\') \r\n tabulate_results_%POLL-ID%();\r\n \r\n});\r\n\r\nfunction equalWidth_%POLL-ID%(obj, cols) {\r\n var widest = 0; \r\n obj.each(function() {\r\n var thisWidth = jQuery(this).width();\r\n if(thisWidth > widest) {\r\n widest = thisWidth; \r\n } \r\n }); \r\n width = parseInt( widest / cols); \r\n obj.width(width); \r\n obj.css(\'float\', \'left\');\r\n}\r\n\r\nfunction tabulate_answers_%POLL-ID%() {\r\n equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-answer-%POLL-ID%\\".'"'."), %ANSWERS-TABULATED-COLS% );\r\n}\r\n\r\nfunction tabulate_results_%POLL-ID%() {\r\n equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-result-%POLL-ID%\\".'"'."), %RESULTS-TABULATED-COLS% );\r\n}', 'other', '2012-11-05 12:51:28', '2012-11-01 20:56:08'),
129
- ('Blue v2', '<div id=\\".'"'."yop-poll-name-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-name\\".'"'.">%POLL-NAME%</div>\r\n<div id=\\".'"'."yop-poll-question-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-question\\".'"'.">%POLL-QUESTION%</div>\r\n<div id=\\".'"'."yop-poll-answers-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-answers\\".'"'.">\r\n <ul>\r\n [ANSWER_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-answer-%POLL-ID%\\".'"'.">\r\n %POLL-ANSWER-CHECK-INPUT% \r\n %POLL-ANSWER-LABEL%\r\n <div class=\\".'"'."yop-poll-results-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-RESULT-LABEL%</div>\r\n <div class=\\".'"'."yop-poll-results-bar-%POLL-ID%\\".'"'.">\r\n %POLL-ANSWER-RESULT-BAR%\r\n </div>\r\n </li>\r\n [/ANSWER_CONTAINER]\r\n [OTHER_ANSWER_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-answer-%POLL-ID%\\".'"'.">\r\n %POLL-OTHER-ANSWER-CHECK-INPUT% \r\n %POLL-OTHER-ANSWER-LABEL% \r\n %POLL-ANSWER-RESULT-LABEL% \r\n %POLL-OTHER-ANSWER-TEXT-INPUT% \r\n <div class=\\".'"'."yop-poll-results-bar-%POLL-ID%\\".'"'.">\r\n %POLL-ANSWER-RESULT-BAR%\r\n </div>\r\n </li>\r\n [/OTHER_ANSWER_CONTAINER]\r\n </ul>\r\n</div>\r\n<div id=\\".'"'."yop-poll-custom-%POLL-ID%\\".'"'.">\r\n <ul>\r\n [CUSTOM_FIELD_CONTAINER]\r\n <li>%POLL-CUSTOM-FIELD-LABEL% %POLL-CUSTOM-FIELD-TEXT-INPUT%</li>\r\n [/CUSTOM_FIELD_CONTAINER]\r\n </ul>\r\n</div> \r\n<div id=\\".'"'."yop-poll-vote-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-footer\\".'"'.">\r\n <div>%POLL-VOTE-BUTTON%</div>\r\n <div id=\\".'"'."yop-poll-results-%POLL-ID%\\".'"'.">%POLL-VIEW-RESULT-LINK%</div>\r\n <div>%POLL-TOTAL-VOTERS%</div>\r\n <div>%POLL-TOTAL-VOTES%</div>\r\n</div>', '<div id=\\".'"'."yop-poll-name-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-name\\".'"'.">%POLL-NAME%</div>\r\n<div id=\\".'"'."yop-poll-question-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-question\\".'"'.">%POLL-QUESTION%</div>\r\n<div id=\\".'"'."yop-poll-answers-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-answers\\".'"'.">\r\n <ul>\r\n [ANSWER_RESULT_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-result-%POLL-ID%\\".'"'.">\r\n <label class=\\".'"'."pds-feedback-label-%POLL-ID%\\".'"'.">\r\n <span class=\\".'"'."pds-answer-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-LABEL%</span>\r\n <span class=\\".'"'."pds-feedback-result-%POLL-ID%\\".'"'.">\r\n <span class=\\".'"'."pds-feedback-per-%POLL-ID%\\".'"'."> %POLL-ANSWER-RESULT-LABEL%</span>\r\n </span>\r\n </label>\r\n <div>\r\n %POLL-ANSWER-RESULT-BAR%\r\n </div>\r\n </li>\r\n [/ANSWER_RESULT_CONTAINER]\r\n </ul>\r\n</div>\r\n<div id=\\".'"'."yop-poll-vote-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-footer\\".'"'.">\r\n <div>%POLL-TOTAL-VOTERS%</div>\r\n <div>%POLL-TOTAL-VOTES%</div>\r\n <div id=\\".'"'."yop-poll-back-%POLL-ID%\\".'"'.">%POLL-BACK-TO-VOTE-LINK%</div>\r\n</div>', 'This poll is about to <br>\r\nstart at %POLL-START-DATE%<br>\r\nand finish at %POLL-END-DATE%<br>', 'This poll is closed!\r\nPoll activity: <br>\r\nstart_date %POLL-START-DATE%<br>\r\nend_date %POLL-END-DATE%<br>\r\n\r\nPoll Results:\r\n<div id=\\".'"'."yop-poll-question-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-question\\".'"'.">%POLL-QUESTION%</div>\r\n<div id=\\".'"'."yop-poll-answers-1\\".'"'." class=\\".'"'."yop-poll-answers\\".'"'.">\r\n <ul>\r\n [ANSWER_RESULT_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-result-%POLL-ID%\\".'"'.">\r\n <label class=\\".'"'."pds-feedback-label\\".'"'.">\r\n <span class=\\".'"'."pds-answer-text\\".'"'.">%POLL-ANSWER-LABEL%</span>\r\n <span class=\\".'"'."pds-feedback-result\\".'"'.">\r\n <span class=\\".'"'."pds-feedback-per\\".'"'."> %POLL-ANSWER-RESULT-LABEL%</span>\r\n </span>\r\n </label>\r\n <span class=\\".'"'."pds-clear\\".'"'." style=\\".'"'."display: block;clear: both;height:1px;line-height:1px;\\".'"'."> </span>\r\n %POLL-ANSWER-RESULT-BAR%\r\n </li>\r\n [/ANSWER_RESULT_CONTAINER]\r\n </ul>\r\n</div>\r\n%POLL-VOTE-BUTTON%', '#yop-poll-container-%POLL-ID% {\r\n width:200px;\r\n background:#fff;\r\n padding:0px;\r\n color:#555;\r\n overflow:hidden;\r\n font-size:12px;\r\n}\r\n#yop-poll-name-%POLL-ID% {\r\n font-weight:bold;\r\n background:#327BD6;\r\n color:#fff;\r\n padding:5px;\r\n text-align:center;\r\n font-size:12px;\r\n}\r\n\r\n#yop-poll-question-%POLL-ID% {\r\n font-size:14px;\r\n margin:5px 0px;\r\n}\r\n#yop-poll-answers-%POLL-ID% { }\r\n#yop-poll-answers-%POLL-ID% ul {\r\n list-style: none outside none;\r\n margin: 0;\r\n padding: 0;\r\n}\r\n#yop-poll-answers-%POLL-ID% ul li { \r\n font-style:normal;\r\n margin:0px 0px 10px 0px;\r\n padding:0px;\r\n font-size:12px;\r\n}\r\n#yop-poll-answers-%POLL-ID% ul li input { \r\n margin:0px; \r\n float:none;\r\n}\r\n#yop-poll-answers-%POLL-ID% ul li label { \r\n margin:0px; \r\n font-style:normal; \r\n font-weight:normal; \r\n font-size:12px; \r\n float:none;\r\n}\r\n.yop-poll-results-%POLL-ID% {\r\n font-size: 12px;\r\n font-style: italic;\r\n font-weight: normal;\r\n margin-left: 15px;\r\n}\r\n\r\n#yop-poll-custom-%POLL-ID% { }\r\n#yop-poll-custom-%POLL-ID% ul {\r\n list-style: none outside none;\r\n margin: 0;\r\n padding: 0;\r\n}\r\n#yop-poll-custom-%POLL-ID% ul li { \r\n padding:0px;\r\n margin:0px; \r\n font-size:14px;\r\n}\r\n#yop-poll-custom-%POLL-ID% ul li input { margin:0px 0px 5px 0px; padding:2%; width:95%; text-indent:2%; font-size:12px; }\r\n\r\n#yop-poll-vote-%POLL-ID% {\r\n\r\n}\r\n.yop-poll-results-bar-%POLL-ID% { background:#f5f5f5; }\r\n.yop-poll-results-bar-%POLL-ID% div { background:#555 !important; }\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-vote-%POLL-ID% button { float:left; }\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% {\r\n float: right;\r\n margin-bottom: 20px;\r\n margin-top: -20px;\r\n width: auto;\r\n}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% a { color:#327BD6; text-decoration:underline; font-size:12px;}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-back-%POLL-ID% a { color:#327BD6; text-decoration:underline; font-size:12px;}\r\n#yop-poll-vote-%POLL-ID% div { float:left; width:100%; }\r\n\r\n#yop-poll-container-error-%POLL-ID% {\r\n font-size:12px;\r\n font-style:italic;\r\n color:red;\r\n text-transform:lowercase;\r\n}', 'function stripBorder_%POLL-ID%(object) {\r\n object.each(function() {\r\n if( parseInt(jQuery(this).width() ) > 0) {\r\n jQuery(this).width( parseInt( jQuery(this).width() ) - parseInt(jQuery(this).css(\\".'"'."border-left-width\\".'"'.")) - parseInt(jQuery(this).css(\\".'"'."border-right-width\\".'"'.")) );\r\n }\r\n else {\r\n jQuery(this).css(\\".'"'."border-left-width\\".'"'.", \'0px\');\r\n jQuery(this).css(\\".'"'."border-right-width\\".'"'.", \'0px\');\r\n }\r\n });\r\n}\r\nfunction stripPadding_%POLL-ID%(object) {\r\n object.each(function() { \r\n jQuery(this).width( parseInt( jQuery(this).width() ) - parseInt(jQuery(this).css(\\".'"'."padding-left\\".'"'.")) - parseInt(jQuery(this).css(\\".'"'."padding-left\\".'"'.")) );\r\n });\r\n}\r\n\r\nfunction strip_results_%POLL-ID%() {\r\n stripPadding_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop_poll_li_result-%POLL-ID%\\".'"'.") ); \r\n stripBorder_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-result-bar-%POLL-ID%\\".'"'."));\r\n}\r\n\r\njQuery(document).ready(function(e) {\r\n if(typeof window.strip_results_%POLL-ID% == \'function\') \r\n strip_results_%POLL-ID%();\r\n \r\n if(typeof window.tabulate_answers_%POLL-ID% == \'function\') \r\n tabulate_answers_%POLL-ID%();\r\n \r\n if(typeof window.tabulate_results_%POLL-ID% == \'function\') \r\n tabulate_results_%POLL-ID%();\r\n \r\n});\r\n\r\nfunction equalWidth_%POLL-ID%(obj, cols) {\r\n var widest = 0; \r\n obj.each(function() {\r\n var thisWidth = jQuery(this).width();\r\n if(thisWidth > widest) {\r\n widest = thisWidth; \r\n } \r\n }); \r\n width = parseInt( widest / cols); \r\n obj.width(width); \r\n obj.css(\'float\', \'left\');\r\n}\r\n\r\nfunction tabulate_answers_%POLL-ID%() {\r\n equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-answer-%POLL-ID%\\".'"'."), %ANSWERS-TABULATED-COLS% );\r\n}\r\n\r\nfunction tabulate_results_%POLL-ID%() {\r\n equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-result-%POLL-ID%\\".'"'."), %RESULTS-TABULATED-COLS% );\r\n}', 'other', '2012-11-05 12:51:59', '2012-11-01 20:56:08'),
130
- ('Blue v3', '<div id=\\".'"'."yop-poll-name-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-name\\".'"'.">%POLL-NAME%</div>\r\n<div id=\\".'"'."yop-poll-question-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-question\\".'"'.">%POLL-QUESTION%</div>\r\n<div id=\\".'"'."yop-poll-answers-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-answers\\".'"'.">\r\n <ul>\r\n [ANSWER_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-answer-%POLL-ID%\\".'"'.">\r\n %POLL-ANSWER-CHECK-INPUT% \r\n %POLL-ANSWER-LABEL%\r\n <div class=\\".'"'."yop-poll-results-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-RESULT-LABEL%</div>\r\n <div class=\\".'"'."yop-poll-results-bar-%POLL-ID%\\".'"'.">\r\n %POLL-ANSWER-RESULT-BAR%\r\n </div>\r\n </li>\r\n [/ANSWER_CONTAINER]\r\n [OTHER_ANSWER_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-answer-%POLL-ID%\\".'"'.">\r\n %POLL-OTHER-ANSWER-CHECK-INPUT% \r\n %POLL-OTHER-ANSWER-LABEL% \r\n %POLL-ANSWER-RESULT-LABEL% \r\n %POLL-OTHER-ANSWER-TEXT-INPUT% \r\n <div class=\\".'"'."yop-poll-results-bar-%POLL-ID%\\".'"'.">\r\n %POLL-ANSWER-RESULT-BAR%\r\n </div>\r\n </li>\r\n [/OTHER_ANSWER_CONTAINER]\r\n </ul>\r\n</div>\r\n<div id=\\".'"'."yop-poll-custom-%POLL-ID%\\".'"'.">\r\n <ul>\r\n [CUSTOM_FIELD_CONTAINER]\r\n <li>%POLL-CUSTOM-FIELD-LABEL% %POLL-CUSTOM-FIELD-TEXT-INPUT%</li>\r\n [/CUSTOM_FIELD_CONTAINER]\r\n </ul>\r\n</div> \r\n<div id=\\".'"'."yop-poll-vote-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-footer\\".'"'.">\r\n <div>%POLL-VOTE-BUTTON%</div>\r\n <div id=\\".'"'."yop-poll-results-%POLL-ID%\\".'"'.">%POLL-VIEW-RESULT-LINK%</div>\r\n <div>%POLL-TOTAL-VOTERS%</div>\r\n <div>%POLL-TOTAL-VOTES%</div>\r\n</div>', '<div id=\\".'"'."yop-poll-name-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-name\\".'"'.">%POLL-NAME%</div>\r\n<div id=\\".'"'."yop-poll-question-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-question\\".'"'.">%POLL-QUESTION%</div>\r\n<div id=\\".'"'."yop-poll-answers-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-answers\\".'"'.">\r\n <ul>\r\n [ANSWER_RESULT_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-result-%POLL-ID%\\".'"'.">\r\n <label class=\\".'"'."pds-feedback-label-%POLL-ID%\\".'"'.">\r\n <span class=\\".'"'."pds-answer-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-LABEL%</span>\r\n <span class=\\".'"'."pds-feedback-result-%POLL-ID%\\".'"'.">\r\n <span class=\\".'"'."pds-feedback-per-%POLL-ID%\\".'"'."> %POLL-ANSWER-RESULT-LABEL%</span>\r\n </span>\r\n </label>\r\n <div>\r\n %POLL-ANSWER-RESULT-BAR%\r\n </div>\r\n </li>\r\n [/ANSWER_RESULT_CONTAINER]\r\n </ul>\r\n</div>\r\n<div id=\\".'"'."yop-poll-vote-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-footer\\".'"'.">\r\n <div>%POLL-TOTAL-VOTERS%</div>\r\n <div>%POLL-TOTAL-VOTES%</div>\r\n <div id=\\".'"'."yop-poll-back-%POLL-ID%\\".'"'.">%POLL-BACK-TO-VOTE-LINK%</div>\r\n</div>', 'This poll is about to <br>\r\nstart at %POLL-START-DATE%<br>\r\nand finish at %POLL-END-DATE%<br>', 'This poll is closed!\r\nPoll activity: <br>\r\nstart_date %POLL-START-DATE%<br>\r\nend_date %POLL-END-DATE%<br>\r\n\r\nPoll Results:\r\n<div id=\\".'"'."yop-poll-question-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-question\\".'"'.">%POLL-QUESTION%</div>\r\n<div id=\\".'"'."yop-poll-answers-1\\".'"'." class=\\".'"'."yop-poll-answers\\".'"'.">\r\n <ul>\r\n [ANSWER_RESULT_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-result-%POLL-ID%\\".'"'.">\r\n <label class=\\".'"'."pds-feedback-label\\".'"'.">\r\n <span class=\\".'"'."pds-answer-text\\".'"'.">%POLL-ANSWER-LABEL%</span>\r\n <span class=\\".'"'."pds-feedback-result\\".'"'.">\r\n <span class=\\".'"'."pds-feedback-per\\".'"'."> %POLL-ANSWER-RESULT-LABEL%</span>\r\n </span>\r\n </label>\r\n <span class=\\".'"'."pds-clear\\".'"'." style=\\".'"'."display: block;clear: both;height:1px;line-height:1px;\\".'"'."> </span>\r\n %POLL-ANSWER-RESULT-BAR%\r\n </li>\r\n [/ANSWER_RESULT_CONTAINER]\r\n </ul>\r\n</div>\r\n%POLL-VOTE-BUTTON%', '#yop-poll-container-%POLL-ID% {\r\n width:200px;\r\n background:#fff;\r\n padding:10px;\r\n color:#555;\r\n overflow:hidden;\r\n font-size:12px;\r\n border:5px solid #327BD6;\r\n}\r\n#yop-poll-name-%POLL-ID% {\r\n font-size:14px;\r\n font-weight:bold;\r\n}\r\n\r\n#yop-poll-question-%POLL-ID% {\r\n font-size:14px;\r\n margin:5px 0px;\r\n}\r\n#yop-poll-answers-%POLL-ID% { }\r\n#yop-poll-answers-%POLL-ID% ul {\r\n list-style: none outside none;\r\n margin: 0;\r\n padding: 0;\r\n}\r\n#yop-poll-answers-%POLL-ID% ul li { \r\n font-style:normal;\r\n margin:0px 0px 10px 0px;\r\n padding:0px;\r\n font-size:12px;\r\n}\r\n#yop-poll-answers-%POLL-ID% ul li input { \r\n margin:0px; \r\n float:none;\r\n}\r\n#yop-poll-answers-%POLL-ID% ul li label { \r\n margin:0px; \r\n font-style:normal; \r\n font-weight:normal; \r\n font-size:12px; \r\n float:none;\r\n}\r\n.yop-poll-results-%POLL-ID% {\r\n font-size: 12px;\r\n font-style: italic;\r\n font-weight: normal;\r\n margin-left: 15px;\r\n}\r\n\r\n#yop-poll-custom-%POLL-ID% { }\r\n#yop-poll-custom-%POLL-ID% ul {\r\n list-style: none outside none;\r\n margin: 0;\r\n padding: 0;\r\n}\r\n#yop-poll-custom-%POLL-ID% ul li { \r\n padding:0px;\r\n margin:0px; \r\n font-size:14px;\r\n}\r\n#yop-poll-custom-%POLL-ID% ul li input { margin:0px 0px 5px 0px; padding:2%; width:96%; text-indent:2%; font-size:12px; }\r\n\r\n#yop-poll-vote-%POLL-ID% {\r\n\r\n}\r\n.yop-poll-results-bar-%POLL-ID% { background:#f5f5f5; }\r\n.yop-poll-results-bar-%POLL-ID% div { background:#555 !important; }\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-vote-%POLL-ID% button { float:left; }\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% {\r\n float: right;\r\n margin-bottom: 20px;\r\n margin-top: -20px;\r\n width: auto;\r\n}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% a { color:#327BD6; text-decoration:underline; font-size:12px;}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-back-%POLL-ID% a { color:#327BD6; text-decoration:underline; font-size:12px;}\r\n#yop-poll-vote-%POLL-ID% div { float:left; width:100%; }\r\n\r\n#yop-poll-container-error-%POLL-ID% {\r\n font-size:12px;\r\n font-style:italic;\r\n color:red;\r\n text-transform:lowercase;\r\n}', 'function stripBorder_%POLL-ID%(object) {\r\n object.each(function() {\r\n if( parseInt(jQuery(this).width() ) > 0) {\r\n jQuery(this).width( parseInt( jQuery(this).width() ) - parseInt(jQuery(this).css(\\".'"'."border-left-width\\".'"'.")) - parseInt(jQuery(this).css(\\".'"'."border-right-width\\".'"'.")) );\r\n }\r\n else {\r\n jQuery(this).css(\\".'"'."border-left-width\\".'"'.", \'0px\');\r\n jQuery(this).css(\\".'"'."border-right-width\\".'"'.", \'0px\');\r\n }\r\n });\r\n}\r\nfunction stripPadding_%POLL-ID%(object) {\r\n object.each(function() { \r\n jQuery(this).width( parseInt( jQuery(this).width() ) - parseInt(jQuery(this).css(\\".'"'."padding-left\\".'"'.")) - parseInt(jQuery(this).css(\\".'"'."padding-left\\".'"'.")) );\r\n });\r\n}\r\n\r\nfunction strip_results_%POLL-ID%() {\r\n stripPadding_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop_poll_li_result-%POLL-ID%\\".'"'.") ); \r\n stripBorder_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-result-bar-%POLL-ID%\\".'"'."));\r\n}\r\n\r\njQuery(document).ready(function(e) {\r\n if(typeof window.strip_results_%POLL-ID% == \'function\') \r\n strip_results_%POLL-ID%();\r\n \r\n if(typeof window.tabulate_answers_%POLL-ID% == \'function\') \r\n tabulate_answers_%POLL-ID%();\r\n \r\n if(typeof window.tabulate_results_%POLL-ID% == \'function\') \r\n tabulate_results_%POLL-ID%();\r\n \r\n});\r\n\r\nfunction equalWidth_%POLL-ID%(obj, cols) {\r\n var widest = 0; \r\n obj.each(function() {\r\n var thisWidth = jQuery(this).width();\r\n if(thisWidth > widest) {\r\n widest = thisWidth; \r\n } \r\n }); \r\n width = parseInt( widest / cols); \r\n obj.width(width); \r\n obj.css(\'float\', \'left\');\r\n}\r\n\r\nfunction tabulate_answers_%POLL-ID%() {\r\n equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-answer-%POLL-ID%\\".'"'."), %ANSWERS-TABULATED-COLS% );\r\n}\r\n\r\nfunction tabulate_results_%POLL-ID%() {\r\n equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-result-%POLL-ID%\\".'"'."), %RESULTS-TABULATED-COLS% );\r\n}', 'other', '2012-11-05 12:52:21', '2012-11-01 20:56:08'),
131
- ('Red v1', '<div id=\\".'"'."yop-poll-name-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-name\\".'"'.">%POLL-NAME%</div>\r\n<div id=\\".'"'."yop-poll-question-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-question\\".'"'.">%POLL-QUESTION%</div>\r\n<div id=\\".'"'."yop-poll-answers-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-answers\\".'"'.">\r\n <ul>\r\n [ANSWER_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-answer-%POLL-ID%\\".'"'.">\r\n %POLL-ANSWER-CHECK-INPUT% \r\n %POLL-ANSWER-LABEL%\r\n <div class=\\".'"'."yop-poll-results-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-RESULT-LABEL%</div>\r\n <div class=\\".'"'."yop-poll-results-bar-%POLL-ID%\\".'"'.">\r\n %POLL-ANSWER-RESULT-BAR%\r\n </div>\r\n </li>\r\n [/ANSWER_CONTAINER]\r\n [OTHER_ANSWER_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-answer-%POLL-ID%\\".'"'.">\r\n %POLL-OTHER-ANSWER-CHECK-INPUT% \r\n %POLL-OTHER-ANSWER-LABEL% \r\n %POLL-ANSWER-RESULT-LABEL% \r\n %POLL-OTHER-ANSWER-TEXT-INPUT% \r\n <div class=\\".'"'."yop-poll-results-bar-%POLL-ID%\\".'"'.">\r\n %POLL-ANSWER-RESULT-BAR%\r\n </div>\r\n </li>\r\n [/OTHER_ANSWER_CONTAINER]\r\n </ul>\r\n</div>\r\n<div id=\\".'"'."yop-poll-custom-%POLL-ID%\\".'"'.">\r\n <ul>\r\n [CUSTOM_FIELD_CONTAINER]\r\n <li>%POLL-CUSTOM-FIELD-LABEL% %POLL-CUSTOM-FIELD-TEXT-INPUT%</li>\r\n [/CUSTOM_FIELD_CONTAINER]\r\n </ul>\r\n</div> \r\n<div id=\\".'"'."yop-poll-vote-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-footer\\".'"'.">\r\n <div>%POLL-VOTE-BUTTON%</div>\r\n <div id=\\".'"'."yop-poll-results-%POLL-ID%\\".'"'.">%POLL-VIEW-RESULT-LINK%</div>\r\n <div>%POLL-TOTAL-VOTERS%</div>\r\n <div>%POLL-TOTAL-VOTES%</div>\r\n</div>', '<div id=\\".'"'."yop-poll-name-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-name\\".'"'.">%POLL-NAME%</div>\r\n<div id=\\".'"'."yop-poll-question-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-question\\".'"'.">%POLL-QUESTION%</div>\r\n<div id=\\".'"'."yop-poll-answers-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-answers\\".'"'.">\r\n <ul>\r\n [ANSWER_RESULT_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-result-%POLL-ID%\\".'"'.">\r\n <label class=\\".'"'."pds-feedback-label-%POLL-ID%\\".'"'.">\r\n <span class=\\".'"'."pds-answer-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-LABEL%</span>\r\n <span class=\\".'"'."pds-feedback-result-%POLL-ID%\\".'"'.">\r\n <span class=\\".'"'."pds-feedback-per-%POLL-ID%\\".'"'."> %POLL-ANSWER-RESULT-LABEL%</span>\r\n </span>\r\n </label>\r\n <div>\r\n %POLL-ANSWER-RESULT-BAR%\r\n </div>\r\n </li>\r\n [/ANSWER_RESULT_CONTAINER]\r\n </ul>\r\n</div>\r\n<div id=\\".'"'."yop-poll-vote-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-footer\\".'"'.">\r\n <div>%POLL-TOTAL-VOTERS%</div>\r\n <div>%POLL-TOTAL-VOTES%</div>\r\n <div id=\\".'"'."yop-poll-back-%POLL-ID%\\".'"'.">%POLL-BACK-TO-VOTE-LINK%</div>\r\n</div>', 'This poll is about to <br>\r\nstart at %POLL-START-DATE%<br>\r\nand finish at %POLL-END-DATE%<br>', 'This poll is closed!\r\nPoll activity: <br>\r\nstart_date %POLL-START-DATE%<br>\r\nend_date %POLL-END-DATE%<br>\r\n\r\nPoll Results:\r\n<div id=\\".'"'."yop-poll-question-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-question\\".'"'.">%POLL-QUESTION%</div>\r\n<div id=\\".'"'."yop-poll-answers-1\\".'"'." class=\\".'"'."yop-poll-answers\\".'"'.">\r\n <ul>\r\n [ANSWER_RESULT_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-result-%POLL-ID%\\".'"'.">\r\n <label class=\\".'"'."pds-feedback-label\\".'"'.">\r\n <span class=\\".'"'."pds-answer-text\\".'"'.">%POLL-ANSWER-LABEL%</span>\r\n <span class=\\".'"'."pds-feedback-result\\".'"'.">\r\n <span class=\\".'"'."pds-feedback-per\\".'"'."> %POLL-ANSWER-RESULT-LABEL%</span>\r\n </span>\r\n </label>\r\n <span class=\\".'"'."pds-clear\\".'"'." style=\\".'"'."display: block;clear: both;height:1px;line-height:1px;\\".'"'."> </span>\r\n %POLL-ANSWER-RESULT-BAR%\r\n </li>\r\n [/ANSWER_RESULT_CONTAINER]\r\n </ul>\r\n</div>\r\n%POLL-VOTE-BUTTON%', '#yop-poll-container-%POLL-ID% {\r\n width:200px;\r\n background:#B70004;\r\n padding:10px;\r\n color:#fff;\r\n overflow:hidden;\r\n font-size:12px;\r\n}\r\n#yop-poll-name-%POLL-ID% {\r\n font-size:14px;\r\n font-weight:bold;\r\n}\r\n\r\n#yop-poll-question-%POLL-ID% {\r\n font-size:14px;\r\n margin:5px 0px;\r\n}\r\n#yop-poll-answers-%POLL-ID% { }\r\n#yop-poll-answers-%POLL-ID% ul {\r\n list-style: none outside none;\r\n margin: 0;\r\n padding: 0;\r\n}\r\n#yop-poll-answers-%POLL-ID% ul li { \r\n font-style:normal;\r\n margin:0px 0px 10px 0px;\r\n padding:0px;\r\n font-size:12px;\r\n}\r\n#yop-poll-answers-%POLL-ID% ul li input { \r\n margin:0px; \r\n float:none;\r\n}\r\n#yop-poll-answers-%POLL-ID% ul li label { \r\n margin:0px; \r\n font-style:normal; \r\n font-weight:normal; \r\n font-size:12px; \r\n float:none;\r\n}\r\n.yop-poll-results-%POLL-ID% {\r\n font-size: 12px;\r\n font-style: italic;\r\n font-weight: normal;\r\n margin-left: 15px;\r\n}\r\n\r\n#yop-poll-custom-%POLL-ID% { }\r\n#yop-poll-custom-%POLL-ID% ul {\r\n list-style: none outside none;\r\n margin: 0;\r\n padding: 0;\r\n}\r\n#yop-poll-custom-%POLL-ID% ul li { \r\n padding:0px;\r\n margin:0px; \r\n font-size:14px;\r\n}\r\n#yop-poll-custom-%POLL-ID% ul li input { margin:0px 0px 5px 0px; padding:2%; width:96%; text-indent:2%; font-size:12px; }\r\n\r\n#yop-poll-vote-%POLL-ID% {\r\n\r\n}\r\n.yop-poll-results-bar-%POLL-ID% { background:#f5f5f5; }\r\n.yop-poll-results-bar-%POLL-ID% div { background:#555 !important; }\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-vote-%POLL-ID% button { float:left; }\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% {\r\n float: right;\r\n margin-bottom: 20px;\r\n margin-top: -20px;\r\n width: auto;\r\n}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% a { color:#fff; text-decoration:underline; font-size:12px;}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-back-%POLL-ID% a { color:#fff; text-decoration:underline; font-size:12px;}\r\n#yop-poll-vote-%POLL-ID% div { float:left; width:100%; }\r\n\r\n#yop-poll-container-error-%POLL-ID% {\r\n font-size:12px;\r\n font-style:italic;\r\n color:red;\r\n text-transform:lowercase;\r\n}', 'function stripBorder_%POLL-ID%(object) {\r\n object.each(function() {\r\n if( parseInt(jQuery(this).width() ) > 0) {\r\n jQuery(this).width( parseInt( jQuery(this).width() ) - parseInt(jQuery(this).css(\\".'"'."border-left-width\\".'"'.")) - parseInt(jQuery(this).css(\\".'"'."border-right-width\\".'"'.")) );\r\n }\r\n else {\r\n jQuery(this).css(\\".'"'."border-left-width\\".'"'.", \'0px\');\r\n jQuery(this).css(\\".'"'."border-right-width\\".'"'.", \'0px\');\r\n }\r\n });\r\n}\r\nfunction stripPadding_%POLL-ID%(object) {\r\n object.each(function() { \r\n jQuery(this).width( parseInt( jQuery(this).width() ) - parseInt(jQuery(this).css(\\".'"'."padding-left\\".'"'.")) - parseInt(jQuery(this).css(\\".'"'."padding-left\\".'"'.")) );\r\n });\r\n}\r\n\r\nfunction strip_results_%POLL-ID%() {\r\n stripPadding_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop_poll_li_result-%POLL-ID%\\".'"'.") ); \r\n stripBorder_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-result-bar-%POLL-ID%\\".'"'."));\r\n}\r\n\r\njQuery(document).ready(function(e) {\r\n if(typeof window.strip_results_%POLL-ID% == \'function\') \r\n strip_results_%POLL-ID%();\r\n \r\n if(typeof window.tabulate_answers_%POLL-ID% == \'function\') \r\n tabulate_answers_%POLL-ID%();\r\n \r\n if(typeof window.tabulate_results_%POLL-ID% == \'function\') \r\n tabulate_results_%POLL-ID%();\r\n \r\n});\r\n\r\nfunction equalWidth_%POLL-ID%(obj, cols) {\r\n var widest = 0; \r\n obj.each(function() {\r\n var thisWidth = jQuery(this).width();\r\n if(thisWidth > widest) {\r\n widest = thisWidth; \r\n } \r\n }); \r\n width = parseInt( widest / cols); \r\n obj.width(width); \r\n obj.css(\'float\', \'left\');\r\n}\r\n\r\nfunction tabulate_answers_%POLL-ID%() {\r\n equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-answer-%POLL-ID%\\".'"'."), %ANSWERS-TABULATED-COLS% );\r\n}\r\n\r\nfunction tabulate_results_%POLL-ID%() {\r\n equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-result-%POLL-ID%\\".'"'."), %RESULTS-TABULATED-COLS% );\r\n}', 'other', '2012-11-05 12:52:44', '2012-11-01 20:56:08'),
132
- ('Green v1', '<div id=\\".'"'."yop-poll-name-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-name\\".'"'.">%POLL-NAME%</div>\r\n<div id=\\".'"'."yop-poll-question-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-question\\".'"'.">%POLL-QUESTION%</div>\r\n<div id=\\".'"'."yop-poll-answers-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-answers\\".'"'.">\r\n <ul>\r\n [ANSWER_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-answer-%POLL-ID%\\".'"'.">\r\n %POLL-ANSWER-CHECK-INPUT% \r\n %POLL-ANSWER-LABEL%\r\n <div class=\\".'"'."yop-poll-results-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-RESULT-LABEL%</div>\r\n <div class=\\".'"'."yop-poll-results-bar-%POLL-ID%\\".'"'.">\r\n %POLL-ANSWER-RESULT-BAR%\r\n </div>\r\n </li>\r\n [/ANSWER_CONTAINER]\r\n [OTHER_ANSWER_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-answer-%POLL-ID%\\".'"'.">\r\n %POLL-OTHER-ANSWER-CHECK-INPUT% \r\n %POLL-OTHER-ANSWER-LABEL% \r\n %POLL-ANSWER-RESULT-LABEL% \r\n %POLL-OTHER-ANSWER-TEXT-INPUT% \r\n <div class=\\".'"'."yop-poll-results-bar-%POLL-ID%\\".'"'.">\r\n %POLL-ANSWER-RESULT-BAR%\r\n </div>\r\n </li>\r\n [/OTHER_ANSWER_CONTAINER]\r\n </ul>\r\n</div>\r\n<div id=\\".'"'."yop-poll-custom-%POLL-ID%\\".'"'.">\r\n <ul>\r\n [CUSTOM_FIELD_CONTAINER]\r\n <li>%POLL-CUSTOM-FIELD-LABEL% %POLL-CUSTOM-FIELD-TEXT-INPUT%</li>\r\n [/CUSTOM_FIELD_CONTAINER]\r\n </ul>\r\n</div> \r\n<div id=\\".'"'."yop-poll-vote-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-footer\\".'"'.">\r\n <div>%POLL-VOTE-BUTTON%</div>\r\n <div id=\\".'"'."yop-poll-results-%POLL-ID%\\".'"'.">%POLL-VIEW-RESULT-LINK%</div>\r\n <div>%POLL-TOTAL-VOTERS%</div>\r\n <div>%POLL-TOTAL-VOTES%</div>\r\n</div>', '<div id=\\".'"'."yop-poll-name-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-name\\".'"'.">%POLL-NAME%</div>\r\n<div id=\\".'"'."yop-poll-question-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-question\\".'"'.">%POLL-QUESTION%</div>\r\n<div id=\\".'"'."yop-poll-answers-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-answers\\".'"'.">\r\n <ul>\r\n [ANSWER_RESULT_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-result-%POLL-ID%\\".'"'.">\r\n <label class=\\".'"'."pds-feedback-label-%POLL-ID%\\".'"'.">\r\n <span class=\\".'"'."pds-answer-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-LABEL%</span>\r\n <span class=\\".'"'."pds-feedback-result-%POLL-ID%\\".'"'.">\r\n <span class=\\".'"'."pds-feedback-per-%POLL-ID%\\".'"'."> %POLL-ANSWER-RESULT-LABEL%</span>\r\n </span>\r\n </label>\r\n <div>\r\n %POLL-ANSWER-RESULT-BAR%\r\n </div>\r\n </li>\r\n [/ANSWER_RESULT_CONTAINER]\r\n </ul>\r\n</div>\r\n<div id=\\".'"'."yop-poll-vote-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-footer\\".'"'.">\r\n <div>%POLL-TOTAL-VOTERS%</div>\r\n <div>%POLL-TOTAL-VOTES%</div>\r\n <div id=\\".'"'."yop-poll-back-%POLL-ID%\\".'"'.">%POLL-BACK-TO-VOTE-LINK%</div>\r\n</div>', 'This poll is about to <br>\r\nstart at %POLL-START-DATE%<br>\r\nand finish at %POLL-END-DATE%<br>', 'This poll is closed!\r\nPoll activity: <br>\r\nstart_date %POLL-START-DATE%<br>\r\nend_date %POLL-END-DATE%<br>\r\n\r\nPoll Results:\r\n<div id=\\".'"'."yop-poll-question-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-question\\".'"'.">%POLL-QUESTION%</div>\r\n<div id=\\".'"'."yop-poll-answers-1\\".'"'." class=\\".'"'."yop-poll-answers\\".'"'.">\r\n <ul>\r\n [ANSWER_RESULT_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-result-%POLL-ID%\\".'"'.">\r\n <label class=\\".'"'."pds-feedback-label\\".'"'.">\r\n <span class=\\".'"'."pds-answer-text\\".'"'.">%POLL-ANSWER-LABEL%</span>\r\n <span class=\\".'"'."pds-feedback-result\\".'"'.">\r\n <span class=\\".'"'."pds-feedback-per\\".'"'."> %POLL-ANSWER-RESULT-LABEL%</span>\r\n </span>\r\n </label>\r\n <span class=\\".'"'."pds-clear\\".'"'." style=\\".'"'."display: block;clear: both;height:1px;line-height:1px;\\".'"'."> </span>\r\n %POLL-ANSWER-RESULT-BAR%\r\n </li>\r\n [/ANSWER_RESULT_CONTAINER]\r\n </ul>\r\n</div>\r\n%POLL-VOTE-BUTTON%', '#yop-poll-container-%POLL-ID% {\r\n width:200px;\r\n background:#3F8B43;\r\n padding:10px;\r\n color:#fff;\r\n overflow:hidden;\r\n font-size:12px;\r\n}\r\n#yop-poll-name-%POLL-ID% {\r\n font-size:14px;\r\n font-weight:bold;\r\n}\r\n\r\n#yop-poll-question-%POLL-ID% {\r\n font-size:14px;\r\n margin:5px 0px;\r\n}\r\n#yop-poll-answers-%POLL-ID% { }\r\n#yop-poll-answers-%POLL-ID% ul {\r\n list-style: none outside none;\r\n margin: 0;\r\n padding: 0;\r\n}\r\n#yop-poll-answers-%POLL-ID% ul li { \r\n font-style:normal;\r\n margin:0px 0px 10px 0px;\r\n padding:0px;\r\n font-size:12px;\r\n}\r\n#yop-poll-answers-%POLL-ID% ul li input { \r\n margin:0px; \r\n float:none;\r\n}\r\n#yop-poll-answers-%POLL-ID% ul li label { \r\n margin:0px; \r\n font-style:normal; \r\n font-weight:normal; \r\n font-size:12px; \r\n float:none;\r\n}\r\n.yop-poll-results-%POLL-ID% {\r\n font-size: 12px;\r\n font-style: italic;\r\n font-weight: normal;\r\n margin-left: 15px;\r\n}\r\n\r\n#yop-poll-custom-%POLL-ID% { }\r\n#yop-poll-custom-%POLL-ID% ul {\r\n list-style: none outside none;\r\n margin: 0;\r\n padding: 0;\r\n}\r\n#yop-poll-custom-%POLL-ID% ul li { \r\n padding:0px;\r\n margin:0px; \r\n font-size:14px;\r\n}\r\n#yop-poll-custom-%POLL-ID% ul li input { margin:0px 0px 5px 0px; padding:2%; width:96%; text-indent:2%; font-size:12px; }\r\n\r\n#yop-poll-vote-%POLL-ID% {\r\n\r\n}\r\n.yop-poll-results-bar-%POLL-ID% { background:#f5f5f5; }\r\n.yop-poll-results-bar-%POLL-ID% div { background:#555 !important; }\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-vote-%POLL-ID% button { float:left; }\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% {\r\n float: right;\r\n margin-bottom: 20px;\r\n margin-top: -20px;\r\n width: auto;\r\n}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% a { color:#fff; text-decoration:underline; font-size:12px;}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-back-%POLL-ID% a { color:#fff; text-decoration:underline; font-size:12px;}\r\n#yop-poll-vote-%POLL-ID% div { float:left; width:100%; }\r\n\r\n#yop-poll-container-error-%POLL-ID% {\r\n font-size:12px;\r\n font-style:italic;\r\n color:red;\r\n text-transform:lowercase;\r\n}', 'function stripBorder_%POLL-ID%(object) {\r\n object.each(function() {\r\n if( parseInt(jQuery(this).width() ) > 0) {\r\n jQuery(this).width( parseInt( jQuery(this).width() ) - parseInt(jQuery(this).css(\\".'"'."border-left-width\\".'"'.")) - parseInt(jQuery(this).css(\\".'"'."border-right-width\\".'"'.")) );\r\n }\r\n else {\r\n jQuery(this).css(\\".'"'."border-left-width\\".'"'.", \'0px\');\r\n jQuery(this).css(\\".'"'."border-right-width\\".'"'.", \'0px\');\r\n }\r\n });\r\n}\r\nfunction stripPadding_%POLL-ID%(object) {\r\n object.each(function() { \r\n jQuery(this).width( parseInt( jQuery(this).width() ) - parseInt(jQuery(this).css(\\".'"'."padding-left\\".'"'.")) - parseInt(jQuery(this).css(\\".'"'."padding-left\\".'"'.")) );\r\n });\r\n}\r\n\r\nfunction strip_results_%POLL-ID%() {\r\n stripPadding_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop_poll_li_result-%POLL-ID%\\".'"'.") ); \r\n stripBorder_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-result-bar-%POLL-ID%\\".'"'."));\r\n}\r\n\r\njQuery(document).ready(function(e) {\r\n if(typeof window.strip_results_%POLL-ID% == \'function\') \r\n strip_results_%POLL-ID%();\r\n \r\n if(typeof window.tabulate_answers_%POLL-ID% == \'function\') \r\n tabulate_answers_%POLL-ID%();\r\n \r\n if(typeof window.tabulate_results_%POLL-ID% == \'function\') \r\n tabulate_results_%POLL-ID%();\r\n \r\n});\r\n\r\nfunction equalWidth_%POLL-ID%(obj, cols) {\r\n var widest = 0; \r\n obj.each(function() {\r\n var thisWidth = jQuery(this).width();\r\n if(thisWidth > widest) {\r\n widest = thisWidth; \r\n } \r\n }); \r\n width = parseInt( widest / cols); \r\n obj.width(width); \r\n obj.css(\'float\', \'left\');\r\n}\r\n\r\nfunction tabulate_answers_%POLL-ID%() {\r\n equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-answer-%POLL-ID%\\".'"'."), %ANSWERS-TABULATED-COLS% );\r\n}\r\n\r\nfunction tabulate_results_%POLL-ID%() {\r\n equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-result-%POLL-ID%\\".'"'."), %RESULTS-TABULATED-COLS% );\r\n}', 'other', '2012-11-05 12:53:35', '2012-11-01 20:56:08'),
133
- ('Red v2', '<div id=".'"'."yop-poll-name-%POLL-ID%".'"'." class=".'"'."yop-poll-name".'"'.">%POLL-NAME%</div>\r\n<div id=".'"'."yop-poll-question-%POLL-ID%".'"'." class=".'"'."yop-poll-question".'"'.">%POLL-QUESTION%</div>\r\n<div id=".'"'."yop-poll-answers-%POLL-ID%".'"'." class=".'"'."yop-poll-answers".'"'.">\r\n <ul>\r\n [ANSWER_CONTAINER]\r\n <li class=".'"'."yop-poll-li-answer-%POLL-ID%".'"'.">\r\n %POLL-ANSWER-CHECK-INPUT% \r\n %POLL-ANSWER-LABEL%\r\n <div class=".'"'."yop-poll-results-text-%POLL-ID%".'"'.">%POLL-ANSWER-RESULT-LABEL%</div>\r\n <div class=".'"'."yop-poll-results-bar-%POLL-ID%".'"'.">\r\n %POLL-ANSWER-RESULT-BAR%\r\n </div>\r\n </li>\r\n [/ANSWER_CONTAINER]\r\n [OTHER_ANSWER_CONTAINER]\r\n <li class=".'"'."yop-poll-li-answer-%POLL-ID%".'"'.">\r\n %POLL-OTHER-ANSWER-CHECK-INPUT% \r\n %POLL-OTHER-ANSWER-LABEL% \r\n %POLL-ANSWER-RESULT-LABEL% \r\n %POLL-OTHER-ANSWER-TEXT-INPUT% \r\n <div class=".'"'."yop-poll-results-bar-%POLL-ID%".'"'.">\r\n %POLL-ANSWER-RESULT-BAR%\r\n </div>\r\n </li>\r\n [/OTHER_ANSWER_CONTAINER]\r\n </ul>\r\n</div>\r\n<div id=".'"'."yop-poll-custom-%POLL-ID%".'"'.">\r\n <ul>\r\n [CUSTOM_FIELD_CONTAINER]\r\n <li>%POLL-CUSTOM-FIELD-LABEL% %POLL-CUSTOM-FIELD-TEXT-INPUT%</li>\r\n [/CUSTOM_FIELD_CONTAINER]\r\n </ul>\r\n</div> \r\n<div id=".'"'."yop-poll-vote-%POLL-ID%".'"'." class=".'"'."yop-poll-footer".'"'.">\r\n <div>%POLL-VOTE-BUTTON%</div>\r\n <div id=".'"'."yop-poll-results-%POLL-ID%".'"'.">%POLL-VIEW-RESULT-LINK%</div>\r\n <div>%POLL-TOTAL-VOTERS%</div>\r\n <div>%POLL-TOTAL-VOTES%</div>\r\n</div>', '<div id=".'"'."yop-poll-name-%POLL-ID%".'"'." class=".'"'."yop-poll-name".'"'.">%POLL-NAME%</div>\r\n<div id=".'"'."yop-poll-question-%POLL-ID%".'"'." class=".'"'."yop-poll-question".'"'.">%POLL-QUESTION%</div>\r\n<div id=".'"'."yop-poll-answers-%POLL-ID%".'"'." class=".'"'."yop-poll-answers".'"'.">\r\n <ul>\r\n [ANSWER_RESULT_CONTAINER]\r\n <li class=".'"'."yop-poll-li-result-%POLL-ID%".'"'.">\r\n <label class=".'"'."pds-feedback-label-%POLL-ID%".'"'.">\r\n <span class=".'"'."pds-answer-text-%POLL-ID%".'"'.">%POLL-ANSWER-LABEL%</span>\r\n <span class=".'"'."pds-feedback-result-%POLL-ID%".'"'.">\r\n <span class=".'"'."pds-feedback-per-%POLL-ID%".'"'."> %POLL-ANSWER-RESULT-LABEL%</span>\r\n </span>\r\n </label>\r\n <div>\r\n %POLL-ANSWER-RESULT-BAR%\r\n </div>\r\n </li>\r\n [/ANSWER_RESULT_CONTAINER]\r\n </ul>\r\n</div>\r\n<div id=".'"'."yop-poll-vote-%POLL-ID%".'"'." class=".'"'."yop-poll-footer".'"'.">\r\n <div>%POLL-TOTAL-VOTERS%</div>\r\n <div>%POLL-TOTAL-VOTES%</div>\r\n <div id=".'"'."yop-poll-back-%POLL-ID%".'"'.">%POLL-BACK-TO-VOTE-LINK%</div>\r\n</div>', 'This poll is about to <br>\r\nstart at %POLL-START-DATE%<br>\r\nand finish at %POLL-END-DATE%<br>', 'This poll is closed!\r\nPoll activity: <br>\r\nstart_date %POLL-START-DATE%<br>\r\nend_date %POLL-END-DATE%<br>\r\n\r\nPoll Results:\r\n<div id=".'"'."yop-poll-question-%POLL-ID%".'"'." class=".'"'."yop-poll-question".'"'.">%POLL-QUESTION%</div>\r\n<div id=".'"'."yop-poll-answers-1".'"'." class=".'"'."yop-poll-answers".'"'.">\r\n <ul>\r\n [ANSWER_RESULT_CONTAINER]\r\n <li class=".'"'."yop-poll-li-result-%POLL-ID%".'"'.">\r\n <label class=".'"'."pds-feedback-label".'"'.">\r\n <span class=".'"'."pds-answer-text".'"'.">%POLL-ANSWER-LABEL%</span>\r\n <span class=".'"'."pds-feedback-result".'"'.">\r\n <span class=".'"'."pds-feedback-per".'"'."> %POLL-ANSWER-RESULT-LABEL%</span>\r\n </span>\r\n </label>\r\n <span class=".'"'."pds-clear".'"'." style=".'"'."display: block;clear: both;height:1px;line-height:1px;".'"'."> </span>\r\n %POLL-ANSWER-RESULT-BAR%\r\n </li>\r\n [/ANSWER_RESULT_CONTAINER]\r\n </ul>\r\n</div>\r\n%POLL-VOTE-BUTTON%', '#yop-poll-container-%POLL-ID% {\r\n width:200px;\r\n background:#fff;\r\n padding:0px;\r\n color:#555;\r\n overflow:hidden;\r\n font-size:12px;\r\n}\r\n#yop-poll-name-%POLL-ID% {\r\n font-weight:bold;\r\n background:#B70004;\r\n color:#fff;\r\n padding:5px;\r\n text-align:center;\r\n font-size:12px;\r\n}\r\n\r\n#yop-poll-question-%POLL-ID% {\r\n font-size:14px;\r\n margin:5px 0px;\r\n}\r\n#yop-poll-answers-%POLL-ID% { }\r\n#yop-poll-answers-%POLL-ID% ul {\r\n list-style: none outside none;\r\n margin: 0;\r\n padding: 0;\r\n}\r\n#yop-poll-answers-%POLL-ID% ul li { \r\n font-style:normal;\r\n margin:0px 0px 10px 0px;\r\n padding:0px;\r\n font-size:12px;\r\n}\r\n#yop-poll-answers-%POLL-ID% ul li input { \r\n margin:0px; \r\n float:none;\r\n}\r\n#yop-poll-answers-%POLL-ID% ul li label { \r\n margin:0px; \r\n font-style:normal; \r\n font-weight:normal; \r\n font-size:12px; \r\n float:none;\r\n}\r\n.yop-poll-results-%POLL-ID% {\r\n font-size: 12px;\r\n font-style: italic;\r\n font-weight: normal;\r\n margin-left: 15px;\r\n}\r\n\r\n#yop-poll-custom-%POLL-ID% { }\r\n#yop-poll-custom-%POLL-ID% ul {\r\n list-style: none outside none;\r\n margin: 0;\r\n padding: 0;\r\n}\r\n#yop-poll-custom-%POLL-ID% ul li { \r\n padding:0px;\r\n margin:0px; \r\n font-size:14px;\r\n}\r\n#yop-poll-custom-%POLL-ID% ul li input { margin:0px 0px 5px 0px; padding:2%; width:95%; text-indent:2%; font-size:12px; }\r\n\r\n#yop-poll-vote-%POLL-ID% {\r\n\r\n}\r\n.yop-poll-results-bar-%POLL-ID% { background:#f5f5f5; }\r\n.yop-poll-results-bar-%POLL-ID% div { background:#555 !important; }\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-vote-%POLL-ID% button { float:left; }\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% {\r\n float: right;\r\n margin-bottom: 20px;\r\n margin-top: -20px;\r\n width: auto;\r\n}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% a { color:#B70004; text-decoration:underline; font-size:12px;}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-back-%POLL-ID% a { color:#B70004; text-decoration:underline; font-size:12px;}\r\n#yop-poll-vote-%POLL-ID% div { float:left; width:100%; }\r\n\r\n#yop-poll-container-error-%POLL-ID% {\r\n font-size:12px;\r\n font-style:italic;\r\n color:red;\r\n text-transform:lowercase;\r\n}', 'function stripBorder_%POLL-ID%(object) {\r\n object.each(function() {\r\n if( parseInt(jQuery(this).width() ) > 0) {\r\n jQuery(this).width( parseInt( jQuery(this).width() ) - parseInt(jQuery(this).css(".'"'."border-left-width".'"'.")) - parseInt(jQuery(this).css(".'"'."border-right-width".'"'.")) );\r\n }\r\n else {\r\n jQuery(this).css(".'"'."border-left-width".'"'.", ''0px'');\r\n jQuery(this).css(".'"'."border-right-width".'"'.", ''0px'');\r\n }\r\n });\r\n}\r\nfunction stripPadding_%POLL-ID%(object) {\r\n object.each(function() { \r\n jQuery(this).width( parseInt( jQuery(this).width() ) - parseInt(jQuery(this).css(".'"'."padding-left".'"'.")) - parseInt(jQuery(this).css(".'"'."padding-left".'"'.")) );\r\n });\r\n}\r\n\r\nfunction tabulate_answers_%POLL-ID%() {\r\n equalWidth_%POLL-ID%( jQuery(".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-answer-%POLL-ID%".'"'."), %TABULATED-COLS% );\r\n}\r\n\r\nfunction strip_results_%POLL-ID%() {\r\n stripPadding_%POLL-ID%( jQuery(".'"'."#yop-poll-container-%POLL-ID% .yop_poll_li_result-%POLL-ID%".'"'.") ); \r\n stripBorder_%POLL-ID%( jQuery(".'"'."#yop-poll-container-%POLL-ID% .yop-poll-result-bar-%POLL-ID%".'"'."));\r\n}\r\n\r\nfunction tabulate_results_%POLL-ID%() {\r\n equalWidth_%POLL-ID%( jQuery(".'"'."#yop-poll-container-%POLL-ID% .yop_poll_li_result-%POLL-ID%".'"'."), %TABULATED-COLS% );\r\n}\r\n\r\njQuery(document).ready(function(e) {\r\n if(typeof window.strip_results_%POLL-ID% == ''function'') \r\n strip_results_%POLL-ID%();\r\n \r\n if(typeof window.tabulate_answers_%POLL-ID% == ''function'') \r\n tabulate_answers_%POLL-ID%();\r\n \r\n if(typeof window.tabulate_results_%POLL-ID% == ''function'') \r\n tabulate_results_%POLL-ID%();\r\n \r\n});', 'other', '2012-11-01 20:56:08', '2012-11-01 20:56:08'),
134
- ('Red v2', '<div id=".'"'."yop-poll-name-%POLL-ID%".'"'." class=".'"'."yop-poll-name".'"'.">%POLL-NAME%</div>\r\n<div id=".'"'."yop-poll-question-%POLL-ID%".'"'." class=".'"'."yop-poll-question".'"'.">%POLL-QUESTION%</div>\r\n<div id=".'"'."yop-poll-answers-%POLL-ID%".'"'." class=".'"'."yop-poll-answers".'"'.">\r\n <ul>\r\n [ANSWER_CONTAINER]\r\n <li class=".'"'."yop-poll-li-answer-%POLL-ID%".'"'.">\r\n %POLL-ANSWER-CHECK-INPUT% \r\n %POLL-ANSWER-LABEL%\r\n <div class=".'"'."yop-poll-results-text-%POLL-ID%".'"'.">%POLL-ANSWER-RESULT-LABEL%</div>\r\n <div class=".'"'."yop-poll-results-bar-%POLL-ID%".'"'.">\r\n %POLL-ANSWER-RESULT-BAR%\r\n </div>\r\n </li>\r\n [/ANSWER_CONTAINER]\r\n [OTHER_ANSWER_CONTAINER]\r\n <li class=".'"'."yop-poll-li-answer-%POLL-ID%".'"'.">\r\n %POLL-OTHER-ANSWER-CHECK-INPUT% \r\n %POLL-OTHER-ANSWER-LABEL% \r\n %POLL-ANSWER-RESULT-LABEL% \r\n %POLL-OTHER-ANSWER-TEXT-INPUT% \r\n <div class=".'"'."yop-poll-results-bar-%POLL-ID%".'"'.">\r\n %POLL-ANSWER-RESULT-BAR%\r\n </div>\r\n </li>\r\n [/OTHER_ANSWER_CONTAINER]\r\n </ul>\r\n</div>\r\n<div id=".'"'."yop-poll-custom-%POLL-ID%".'"'.">\r\n <ul>\r\n [CUSTOM_FIELD_CONTAINER]\r\n <li>%POLL-CUSTOM-FIELD-LABEL% %POLL-CUSTOM-FIELD-TEXT-INPUT%</li>\r\n [/CUSTOM_FIELD_CONTAINER]\r\n </ul>\r\n</div> \r\n<div id=".'"'."yop-poll-vote-%POLL-ID%".'"'." class=".'"'."yop-poll-footer".'"'.">\r\n <div>%POLL-VOTE-BUTTON%</div>\r\n <div id=".'"'."yop-poll-results-%POLL-ID%".'"'.">%POLL-VIEW-RESULT-LINK%</div>\r\n <div>%POLL-TOTAL-VOTERS%</div>\r\n <div>%POLL-TOTAL-VOTES%</div>\r\n</div>', '<div id=".'"'."yop-poll-name-%POLL-ID%".'"'." class=".'"'."yop-poll-name".'"'.">%POLL-NAME%</div>\r\n<div id=".'"'."yop-poll-question-%POLL-ID%".'"'." class=".'"'."yop-poll-question".'"'.">%POLL-QUESTION%</div>\r\n<div id=".'"'."yop-poll-answers-%POLL-ID%".'"'." class=".'"'."yop-poll-answers".'"'.">\r\n <ul>\r\n [ANSWER_RESULT_CONTAINER]\r\n <li class=".'"'."yop-poll-li-result-%POLL-ID%".'"'.">\r\n <label class=".'"'."pds-feedback-label-%POLL-ID%".'"'.">\r\n <span class=".'"'."pds-answer-text-%POLL-ID%".'"'.">%POLL-ANSWER-LABEL%</span>\r\n <span class=".'"'."pds-feedback-result-%POLL-ID%".'"'.">\r\n <span class=".'"'."pds-feedback-per-%POLL-ID%".'"'."> %POLL-ANSWER-RESULT-LABEL%</span>\r\n </span>\r\n </label>\r\n <div>\r\n %POLL-ANSWER-RESULT-BAR%\r\n </div>\r\n </li>\r\n [/ANSWER_RESULT_CONTAINER]\r\n </ul>\r\n</div>\r\n<div id=".'"'."yop-poll-vote-%POLL-ID%".'"'." class=".'"'."yop-poll-footer".'"'.">\r\n <div>%POLL-TOTAL-VOTERS%</div>\r\n <div>%POLL-TOTAL-VOTES%</div>\r\n <div id=".'"'."yop-poll-back-%POLL-ID%".'"'.">%POLL-BACK-TO-VOTE-LINK%</div>\r\n</div>', 'This poll is about to <br>\r\nstart at %POLL-START-DATE%<br>\r\nand finish at %POLL-END-DATE%<br>', 'This poll is closed!\r\nPoll activity: <br>\r\nstart_date %POLL-START-DATE%<br>\r\nend_date %POLL-END-DATE%<br>\r\n\r\nPoll Results:\r\n<div id=".'"'."yop-poll-question-%POLL-ID%".'"'." class=".'"'."yop-poll-question".'"'.">%POLL-QUESTION%</div>\r\n<div id=".'"'."yop-poll-answers-1".'"'." class=".'"'."yop-poll-answers".'"'.">\r\n <ul>\r\n [ANSWER_RESULT_CONTAINER]\r\n <li class=".'"'."yop-poll-li-result-%POLL-ID%".'"'.">\r\n <label class=".'"'."pds-feedback-label".'"'.">\r\n <span class=".'"'."pds-answer-text".'"'.">%POLL-ANSWER-LABEL%</span>\r\n <span class=".'"'."pds-feedback-result".'"'.">\r\n <span class=".'"'."pds-feedback-per".'"'."> %POLL-ANSWER-RESULT-LABEL%</span>\r\n </span>\r\n </label>\r\n <span class=".'"'."pds-clear".'"'." style=".'"'."display: block;clear: both;height:1px;line-height:1px;".'"'."> </span>\r\n %POLL-ANSWER-RESULT-BAR%\r\n </li>\r\n [/ANSWER_RESULT_CONTAINER]\r\n </ul>\r\n</div>\r\n%POLL-VOTE-BUTTON%', '#yop-poll-container-%POLL-ID% {\r\n width:200px;\r\n background:#fff;\r\n padding:0px;\r\n color:#555;\r\n overflow:hidden;\r\n font-size:12px;\r\n}\r\n#yop-poll-name-%POLL-ID% {\r\n font-weight:bold;\r\n background:#B70004;\r\n color:#fff;\r\n padding:5px;\r\n text-align:center;\r\n font-size:12px;\r\n}\r\n\r\n#yop-poll-question-%POLL-ID% {\r\n font-size:14px;\r\n margin:5px 0px;\r\n}\r\n#yop-poll-answers-%POLL-ID% { }\r\n#yop-poll-answers-%POLL-ID% ul {\r\n list-style: none outside none;\r\n margin: 0;\r\n padding: 0;\r\n}\r\n#yop-poll-answers-%POLL-ID% ul li { \r\n font-style:normal;\r\n margin:0px 0px 10px 0px;\r\n padding:0px;\r\n font-size:12px;\r\n}\r\n#yop-poll-answers-%POLL-ID% ul li input { \r\n margin:0px; \r\n float:none;\r\n}\r\n#yop-poll-answers-%POLL-ID% ul li label { \r\n margin:0px; \r\n font-style:normal; \r\n font-weight:normal; \r\n font-size:12px; \r\n float:none;\r\n}\r\n.yop-poll-results-%POLL-ID% {\r\n font-size: 12px;\r\n font-style: italic;\r\n font-weight: normal;\r\n margin-left: 15px;\r\n}\r\n\r\n#yop-poll-custom-%POLL-ID% { }\r\n#yop-poll-custom-%POLL-ID% ul {\r\n list-style: none outside none;\r\n margin: 0;\r\n padding: 0;\r\n}\r\n#yop-poll-custom-%POLL-ID% ul li { \r\n padding:0px;\r\n margin:0px; \r\n font-size:14px;\r\n}\r\n#yop-poll-custom-%POLL-ID% ul li input { margin:0px 0px 5px 0px; padding:2%; width:95%; text-indent:2%; font-size:12px; }\r\n\r\n#yop-poll-vote-%POLL-ID% {\r\n\r\n}\r\n.yop-poll-results-bar-%POLL-ID% { background:#f5f5f5; }\r\n.yop-poll-results-bar-%POLL-ID% div { background:#555 !important; }\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-vote-%POLL-ID% button { float:left; }\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% {\r\n float: right;\r\n margin-bottom: 20px;\r\n margin-top: -20px;\r\n width: auto;\r\n}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% a { color:#B70004; text-decoration:underline; font-size:12px;}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-back-%POLL-ID% a { color:#B70004; text-decoration:underline; font-size:12px;}\r\n#yop-poll-vote-%POLL-ID% div { float:left; width:100%; }\r\n\r\n#yop-poll-container-error-%POLL-ID% {\r\n font-size:12px;\r\n font-style:italic;\r\n color:red;\r\n text-transform:lowercase;\r\n}', 'function stripBorder_%POLL-ID%(object) {\r\n object.each(function() {\r\n if( parseInt(jQuery(this).width() ) > 0) {\r\n jQuery(this).width( parseInt( jQuery(this).width() ) - parseInt(jQuery(this).css(".'"'."border-left-width".'"'.")) - parseInt(jQuery(this).css(".'"'."border-right-width".'"'.")) );\r\n }\r\n else {\r\n jQuery(this).css(".'"'."border-left-width".'"'.", ''0px'');\r\n jQuery(this).css(".'"'."border-right-width".'"'.", ''0px'');\r\n }\r\n });\r\n}\r\nfunction stripPadding_%POLL-ID%(object) {\r\n object.each(function() { \r\n jQuery(this).width( parseInt( jQuery(this).width() ) - parseInt(jQuery(this).css(".'"'."padding-left".'"'.")) - parseInt(jQuery(this).css(".'"'."padding-left".'"'.")) );\r\n });\r\n}\r\n\r\nfunction tabulate_answers_%POLL-ID%() {\r\n equalWidth_%POLL-ID%( jQuery(".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-answer-%POLL-ID%".'"'."), %TABULATED-COLS% );\r\n}\r\n\r\nfunction strip_results_%POLL-ID%() {\r\n stripPadding_%POLL-ID%( jQuery(".'"'."#yop-poll-container-%POLL-ID% .yop_poll_li_result-%POLL-ID%".'"'.") ); \r\n stripBorder_%POLL-ID%( jQuery(".'"'."#yop-poll-container-%POLL-ID% .yop-poll-result-bar-%POLL-ID%".'"'."));\r\n}\r\n\r\nfunction tabulate_results_%POLL-ID%() {\r\n equalWidth_%POLL-ID%( jQuery(".'"'."#yop-poll-container-%POLL-ID% .yop_poll_li_result-%POLL-ID%".'"'."), %TABULATED-COLS% );\r\n}\r\n\r\njQuery(document).ready(function(e) {\r\n if(typeof window.strip_results_%POLL-ID% == ''function'') \r\n strip_results_%POLL-ID%();\r\n \r\n if(typeof window.tabulate_answers_%POLL-ID% == ''function'') \r\n tabulate_answers_%POLL-ID%();\r\n \r\n if(typeof window.tabulate_results_%POLL-ID% == ''function'') \r\n tabulate_results_%POLL-ID%();\r\n \r\n});', 'other', '2012-11-01 20:56:08', '2012-11-01 20:56:08'),
135
- ('Green v2', '<div id=\\".'"'."yop-poll-name-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-name\\".'"'.">%POLL-NAME%</div>\r\n<div id=\\".'"'."yop-poll-question-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-question\\".'"'.">%POLL-QUESTION%</div>\r\n<div id=\\".'"'."yop-poll-answers-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-answers\\".'"'.">\r\n <ul>\r\n [ANSWER_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-answer-%POLL-ID%\\".'"'.">\r\n %POLL-ANSWER-CHECK-INPUT% \r\n %POLL-ANSWER-LABEL%\r\n <div class=\\".'"'."yop-poll-results-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-RESULT-LABEL%</div>\r\n <div class=\\".'"'."yop-poll-results-bar-%POLL-ID%\\".'"'.">\r\n %POLL-ANSWER-RESULT-BAR%\r\n </div>\r\n </li>\r\n [/ANSWER_CONTAINER]\r\n [OTHER_ANSWER_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-answer-%POLL-ID%\\".'"'.">\r\n %POLL-OTHER-ANSWER-CHECK-INPUT% \r\n %POLL-OTHER-ANSWER-LABEL% \r\n %POLL-ANSWER-RESULT-LABEL% \r\n %POLL-OTHER-ANSWER-TEXT-INPUT% \r\n <div class=\\".'"'."yop-poll-results-bar-%POLL-ID%\\".'"'.">\r\n %POLL-ANSWER-RESULT-BAR%\r\n </div>\r\n </li>\r\n [/OTHER_ANSWER_CONTAINER]\r\n </ul>\r\n</div>\r\n<div id=\\".'"'."yop-poll-custom-%POLL-ID%\\".'"'.">\r\n <ul>\r\n [CUSTOM_FIELD_CONTAINER]\r\n <li>%POLL-CUSTOM-FIELD-LABEL% %POLL-CUSTOM-FIELD-TEXT-INPUT%</li>\r\n [/CUSTOM_FIELD_CONTAINER]\r\n </ul>\r\n</div> \r\n<div id=\\".'"'."yop-poll-vote-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-footer\\".'"'.">\r\n <div>%POLL-VOTE-BUTTON%</div>\r\n <div id=\\".'"'."yop-poll-results-%POLL-ID%\\".'"'.">%POLL-VIEW-RESULT-LINK%</div>\r\n <div>%POLL-TOTAL-VOTERS%</div>\r\n <div>%POLL-TOTAL-VOTES%</div>\r\n</div>', '<div id=\\".'"'."yop-poll-name-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-name\\".'"'.">%POLL-NAME%</div>\r\n<div id=\\".'"'."yop-poll-question-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-question\\".'"'.">%POLL-QUESTION%</div>\r\n<div id=\\".'"'."yop-poll-answers-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-answers\\".'"'.">\r\n <ul>\r\n [ANSWER_RESULT_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-result-%POLL-ID%\\".'"'.">\r\n <label class=\\".'"'."pds-feedback-label-%POLL-ID%\\".'"'.">\r\n <span class=\\".'"'."pds-answer-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-LABEL%</span>\r\n <span class=\\".'"'."pds-feedback-result-%POLL-ID%\\".'"'.">\r\n <span class=\\".'"'."pds-feedback-per-%POLL-ID%\\".'"'."> %POLL-ANSWER-RESULT-LABEL%</span>\r\n </span>\r\n </label>\r\n <div>\r\n %POLL-ANSWER-RESULT-BAR%\r\n </div>\r\n </li>\r\n [/ANSWER_RESULT_CONTAINER]\r\n </ul>\r\n</div>\r\n<div id=\\".'"'."yop-poll-vote-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-footer\\".'"'.">\r\n <div>%POLL-TOTAL-VOTERS%</div>\r\n <div>%POLL-TOTAL-VOTES%</div>\r\n <div id=\\".'"'."yop-poll-back-%POLL-ID%\\".'"'.">%POLL-BACK-TO-VOTE-LINK%</div>\r\n</div>', 'This poll is about to <br>\r\nstart at %POLL-START-DATE%<br>\r\nand finish at %POLL-END-DATE%<br>', 'This poll is closed!\r\nPoll activity: <br>\r\nstart_date %POLL-START-DATE%<br>\r\nend_date %POLL-END-DATE%<br>\r\n\r\nPoll Results:\r\n<div id=\\".'"'."yop-poll-question-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-question\\".'"'.">%POLL-QUESTION%</div>\r\n<div id=\\".'"'."yop-poll-answers-1\\".'"'." class=\\".'"'."yop-poll-answers\\".'"'.">\r\n <ul>\r\n [ANSWER_RESULT_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-result-%POLL-ID%\\".'"'.">\r\n <label class=\\".'"'."pds-feedback-label\\".'"'.">\r\n <span class=\\".'"'."pds-answer-text\\".'"'.">%POLL-ANSWER-LABEL%</span>\r\n <span class=\\".'"'."pds-feedback-result\\".'"'.">\r\n <span class=\\".'"'."pds-feedback-per\\".'"'."> %POLL-ANSWER-RESULT-LABEL%</span>\r\n </span>\r\n </label>\r\n <span class=\\".'"'."pds-clear\\".'"'." style=\\".'"'."display: block;clear: both;height:1px;line-height:1px;\\".'"'."> </span>\r\n %POLL-ANSWER-RESULT-BAR%\r\n </li>\r\n [/ANSWER_RESULT_CONTAINER]\r\n </ul>\r\n</div>\r\n%POLL-VOTE-BUTTON%', '#yop-poll-container-%POLL-ID% {\r\n width:200px;\r\n background:#fff;\r\n padding:0px;\r\n color:#555;\r\n overflow:hidden;\r\n font-size:12px;\r\n}\r\n#yop-poll-name-%POLL-ID% {\r\n font-weight:bold;\r\n background:#3F8B43;\r\n color:#fff;\r\n padding:5px;\r\n text-align:center;\r\n font-size:12px;\r\n}\r\n\r\n#yop-poll-question-%POLL-ID% {\r\n font-size:14px;\r\n margin:5px 0px;\r\n}\r\n#yop-poll-answers-%POLL-ID% { }\r\n#yop-poll-answers-%POLL-ID% ul {\r\n list-style: none outside none;\r\n margin: 0;\r\n padding: 0;\r\n}\r\n#yop-poll-answers-%POLL-ID% ul li { \r\n font-style:normal;\r\n margin:0px 0px 10px 0px;\r\n padding:0px;\r\n font-size:12px;\r\n}\r\n#yop-poll-answers-%POLL-ID% ul li input { \r\n margin:0px; \r\n float:none;\r\n}\r\n#yop-poll-answers-%POLL-ID% ul li label { \r\n margin:0px; \r\n font-style:normal; \r\n font-weight:normal; \r\n font-size:12px; \r\n float:none;\r\n}\r\n.yop-poll-results-%POLL-ID% {\r\n font-size: 12px;\r\n font-style: italic;\r\n font-weight: normal;\r\n margin-left: 15px;\r\n}\r\n\r\n#yop-poll-custom-%POLL-ID% { }\r\n#yop-poll-custom-%POLL-ID% ul {\r\n list-style: none outside none;\r\n margin: 0;\r\n padding: 0;\r\n}\r\n#yop-poll-custom-%POLL-ID% ul li { \r\n padding:0px;\r\n margin:0px; \r\n font-size:14px;\r\n}\r\n#yop-poll-custom-%POLL-ID% ul li input { margin:0px 0px 5px 0px; padding:2%; width:95%; text-indent:2%; font-size:12px; }\r\n\r\n#yop-poll-vote-%POLL-ID% {\r\n\r\n}\r\n.yop-poll-results-bar-%POLL-ID% { background:#f5f5f5; }\r\n.yop-poll-results-bar-%POLL-ID% div { background:#555 !important; }\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-vote-%POLL-ID% button { float:left; }\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% {\r\n float: right;\r\n margin-bottom: 20px;\r\n margin-top: -20px;\r\n width: auto;\r\n}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% a { color:#3F8B43; text-decoration:underline; font-size:12px;}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-back-%POLL-ID% a { color:#3F8B43; text-decoration:underline; font-size:12px;}\r\n#yop-poll-vote-%POLL-ID% div { float:left; width:100%; }\r\n\r\n#yop-poll-container-error-%POLL-ID% {\r\n font-size:12px;\r\n font-style:italic;\r\n color:red;\r\n text-transform:lowercase;\r\n}', 'function stripBorder_%POLL-ID%(object) {\r\n object.each(function() {\r\n if( parseInt(jQuery(this).width() ) > 0) {\r\n jQuery(this).width( parseInt( jQuery(this).width() ) - parseInt(jQuery(this).css(\\".'"'."border-left-width\\".'"'.")) - parseInt(jQuery(this).css(\\".'"'."border-right-width\\".'"'.")) );\r\n }\r\n else {\r\n jQuery(this).css(\\".'"'."border-left-width\\".'"'.", \'0px\');\r\n jQuery(this).css(\\".'"'."border-right-width\\".'"'.", \'0px\');\r\n }\r\n });\r\n}\r\nfunction stripPadding_%POLL-ID%(object) {\r\n object.each(function() { \r\n jQuery(this).width( parseInt( jQuery(this).width() ) - parseInt(jQuery(this).css(\\".'"'."padding-left\\".'"'.")) - parseInt(jQuery(this).css(\\".'"'."padding-left\\".'"'.")) );\r\n });\r\n}\r\n\r\nfunction strip_results_%POLL-ID%() {\r\n stripPadding_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop_poll_li_result-%POLL-ID%\\".'"'.") ); \r\n stripBorder_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-result-bar-%POLL-ID%\\".'"'."));\r\n}\r\n\r\njQuery(document).ready(function(e) {\r\n if(typeof window.strip_results_%POLL-ID% == \'function\') \r\n strip_results_%POLL-ID%();\r\n \r\n if(typeof window.tabulate_answers_%POLL-ID% == \'function\') \r\n tabulate_answers_%POLL-ID%();\r\n \r\n if(typeof window.tabulate_results_%POLL-ID% == \'function\') \r\n tabulate_results_%POLL-ID%();\r\n \r\n});\r\n\r\nfunction equalWidth_%POLL-ID%(obj, cols) {\r\n var widest = 0; \r\n obj.each(function() {\r\n var thisWidth = jQuery(this).width();\r\n if(thisWidth > widest) {\r\n widest = thisWidth; \r\n } \r\n }); \r\n width = parseInt( widest / cols); \r\n obj.width(width); \r\n obj.css(\'float\', \'left\');\r\n}\r\n\r\nfunction tabulate_answers_%POLL-ID%() {\r\n equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-answer-%POLL-ID%\\".'"'."), %ANSWERS-TABULATED-COLS% );\r\n}\r\n\r\nfunction tabulate_results_%POLL-ID%() {\r\n equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-result-%POLL-ID%\\".'"'."), %RESULTS-TABULATED-COLS% );\r\n}', 'other', '2012-11-05 12:54:40', '2012-11-01 20:56:08'),
136
- ('Red v3', '<div id=\\".'"'."yop-poll-name-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-name\\".'"'.">%POLL-NAME%</div>\r\n<div id=\\".'"'."yop-poll-question-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-question\\".'"'.">%POLL-QUESTION%</div>\r\n<div id=\\".'"'."yop-poll-answers-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-answers\\".'"'.">\r\n <ul>\r\n [ANSWER_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-answer-%POLL-ID%\\".'"'.">\r\n %POLL-ANSWER-CHECK-INPUT% \r\n %POLL-ANSWER-LABEL%\r\n <div class=\\".'"'."yop-poll-results-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-RESULT-LABEL%</div>\r\n <div class=\\".'"'."yop-poll-results-bar-%POLL-ID%\\".'"'.">\r\n %POLL-ANSWER-RESULT-BAR%\r\n </div>\r\n </li>\r\n [/ANSWER_CONTAINER]\r\n [OTHER_ANSWER_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-answer-%POLL-ID%\\".'"'.">\r\n %POLL-OTHER-ANSWER-CHECK-INPUT% \r\n %POLL-OTHER-ANSWER-LABEL% \r\n %POLL-ANSWER-RESULT-LABEL% \r\n %POLL-OTHER-ANSWER-TEXT-INPUT% \r\n <div class=\\".'"'."yop-poll-results-bar-%POLL-ID%\\".'"'.">\r\n %POLL-ANSWER-RESULT-BAR%\r\n </div>\r\n </li>\r\n [/OTHER_ANSWER_CONTAINER]\r\n </ul>\r\n</div>\r\n<div id=\\".'"'."yop-poll-custom-%POLL-ID%\\".'"'.">\r\n <ul>\r\n [CUSTOM_FIELD_CONTAINER]\r\n <li>%POLL-CUSTOM-FIELD-LABEL% %POLL-CUSTOM-FIELD-TEXT-INPUT%</li>\r\n [/CUSTOM_FIELD_CONTAINER]\r\n </ul>\r\n</div> \r\n<div id=\\".'"'."yop-poll-vote-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-footer\\".'"'.">\r\n <div>%POLL-VOTE-BUTTON%</div>\r\n <div id=\\".'"'."yop-poll-results-%POLL-ID%\\".'"'.">%POLL-VIEW-RESULT-LINK%</div>\r\n <div>%POLL-TOTAL-VOTERS%</div>\r\n <div>%POLL-TOTAL-VOTES%</div>\r\n</div>', '<div id=\\".'"'."yop-poll-name-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-name\\".'"'.">%POLL-NAME%</div>\r\n<div id=\\".'"'."yop-poll-question-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-question\\".'"'.">%POLL-QUESTION%</div>\r\n<div id=\\".'"'."yop-poll-answers-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-answers\\".'"'.">\r\n <ul>\r\n [ANSWER_RESULT_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-result-%POLL-ID%\\".'"'.">\r\n <label class=\\".'"'."pds-feedback-label-%POLL-ID%\\".'"'.">\r\n <span class=\\".'"'."pds-answer-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-LABEL%</span>\r\n <span class=\\".'"'."pds-feedback-result-%POLL-ID%\\".'"'.">\r\n <span class=\\".'"'."pds-feedback-per-%POLL-ID%\\".'"'."> %POLL-ANSWER-RESULT-LABEL%</span>\r\n </span>\r\n </label>\r\n <div>\r\n %POLL-ANSWER-RESULT-BAR%\r\n </div>\r\n </li>\r\n [/ANSWER_RESULT_CONTAINER]\r\n </ul>\r\n</div>\r\n<div id=\\".'"'."yop-poll-vote-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-footer\\".'"'.">\r\n <div>%POLL-TOTAL-VOTERS%</div>\r\n <div>%POLL-TOTAL-VOTES%</div>\r\n <div id=\\".'"'."yop-poll-back-%POLL-ID%\\".'"'.">%POLL-BACK-TO-VOTE-LINK%</div>\r\n</div>', 'This poll is about to <br>\r\nstart at %POLL-START-DATE%<br>\r\nand finish at %POLL-END-DATE%<br>', 'This poll is closed!\r\nPoll activity: <br>\r\nstart_date %POLL-START-DATE%<br>\r\nend_date %POLL-END-DATE%<br>\r\n\r\nPoll Results:\r\n<div id=\\".'"'."yop-poll-question-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-question\\".'"'.">%POLL-QUESTION%</div>\r\n<div id=\\".'"'."yop-poll-answers-1\\".'"'." class=\\".'"'."yop-poll-answers\\".'"'.">\r\n <ul>\r\n [ANSWER_RESULT_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-result-%POLL-ID%\\".'"'.">\r\n <label class=\\".'"'."pds-feedback-label\\".'"'.">\r\n <span class=\\".'"'."pds-answer-text\\".'"'.">%POLL-ANSWER-LABEL%</span>\r\n <span class=\\".'"'."pds-feedback-result\\".'"'.">\r\n <span class=\\".'"'."pds-feedback-per\\".'"'."> %POLL-ANSWER-RESULT-LABEL%</span>\r\n </span>\r\n </label>\r\n <span class=\\".'"'."pds-clear\\".'"'." style=\\".'"'."display: block;clear: both;height:1px;line-height:1px;\\".'"'."> </span>\r\n %POLL-ANSWER-RESULT-BAR%\r\n </li>\r\n [/ANSWER_RESULT_CONTAINER]\r\n </ul>\r\n</div>\r\n%POLL-VOTE-BUTTON%', '#yop-poll-container-%POLL-ID% {\r\n width:200px;\r\n background:#fff;\r\n padding:10px;\r\n color:#555;\r\n overflow:hidden;\r\n font-size:12px;\r\n border:5px solid #B70004;\r\n}\r\n#yop-poll-name-%POLL-ID% {\r\n font-size:14px;\r\n font-weight:bold;\r\n}\r\n\r\n#yop-poll-question-%POLL-ID% {\r\n font-size:14px;\r\n margin:5px 0px;\r\n}\r\n#yop-poll-answers-%POLL-ID% { }\r\n#yop-poll-answers-%POLL-ID% ul {\r\n list-style: none outside none;\r\n margin: 0;\r\n padding: 0;\r\n}\r\n#yop-poll-answers-%POLL-ID% ul li { \r\n font-style:normal;\r\n margin:0px 0px 10px 0px;\r\n padding:0px;\r\n font-size:12px;\r\n}\r\n#yop-poll-answers-%POLL-ID% ul li input { \r\n margin:0px; \r\n float:none;\r\n}\r\n#yop-poll-answers-%POLL-ID% ul li label { \r\n margin:0px; \r\n font-style:normal; \r\n font-weight:normal; \r\n font-size:12px; \r\n float:none;\r\n}\r\n.yop-poll-results-%POLL-ID% {\r\n font-size: 12px;\r\n font-style: italic;\r\n font-weight: normal;\r\n margin-left: 15px;\r\n}\r\n\r\n#yop-poll-custom-%POLL-ID% { }\r\n#yop-poll-custom-%POLL-ID% ul {\r\n list-style: none outside none;\r\n margin: 0;\r\n padding: 0;\r\n}\r\n#yop-poll-custom-%POLL-ID% ul li { \r\n padding:0px;\r\n margin:0px; \r\n font-size:14px;\r\n}\r\n#yop-poll-custom-%POLL-ID% ul li input { margin:0px 0px 5px 0px; padding:2%; width:96%; text-indent:2%; font-size:12px; }\r\n\r\n#yop-poll-vote-%POLL-ID% {\r\n\r\n}\r\n.yop-poll-results-bar-%POLL-ID% { background:#f5f5f5; }\r\n.yop-poll-results-bar-%POLL-ID% div { background:#555 !important; }\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-vote-%POLL-ID% button { float:left; }\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% {\r\n float: right;\r\n margin-bottom: 20px;\r\n margin-top: -20px;\r\n width: auto;\r\n}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% a { color:#B70004; text-decoration:underline; font-size:12px;}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-back-%POLL-ID% a { color:#B70004; text-decoration:underline; font-size:12px;}\r\n#yop-poll-vote-%POLL-ID% div { float:left; width:100%; }\r\n\r\n#yop-poll-container-error-%POLL-ID% {\r\n font-size:12px;\r\n font-style:italic;\r\n color:red;\r\n text-transform:lowercase;\r\n}', 'function stripBorder_%POLL-ID%(object) {\r\n object.each(function() {\r\n if( parseInt(jQuery(this).width() ) > 0) {\r\n jQuery(this).width( parseInt( jQuery(this).width() ) - parseInt(jQuery(this).css(\\".'"'."border-left-width\\".'"'.")) - parseInt(jQuery(this).css(\\".'"'."border-right-width\\".'"'.")) );\r\n }\r\n else {\r\n jQuery(this).css(\\".'"'."border-left-width\\".'"'.", \'0px\');\r\n jQuery(this).css(\\".'"'."border-right-width\\".'"'.", \'0px\');\r\n }\r\n });\r\n}\r\nfunction stripPadding_%POLL-ID%(object) {\r\n object.each(function() { \r\n jQuery(this).width( parseInt( jQuery(this).width() ) - parseInt(jQuery(this).css(\\".'"'."padding-left\\".'"'.")) - parseInt(jQuery(this).css(\\".'"'."padding-left\\".'"'.")) );\r\n });\r\n}\r\n\r\nfunction strip_results_%POLL-ID%() {\r\n stripPadding_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop_poll_li_result-%POLL-ID%\\".'"'.") ); \r\n stripBorder_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-result-bar-%POLL-ID%\\".'"'."));\r\n}\r\n\r\njQuery(document).ready(function(e) {\r\n if(typeof window.strip_results_%POLL-ID% == \'function\') \r\n strip_results_%POLL-ID%();\r\n \r\n if(typeof window.tabulate_answers_%POLL-ID% == \'function\') \r\n tabulate_answers_%POLL-ID%();\r\n \r\n if(typeof window.tabulate_results_%POLL-ID% == \'function\') \r\n tabulate_results_%POLL-ID%();\r\n \r\n});\r\n\r\nfunction equalWidth_%POLL-ID%(obj, cols) {\r\n var widest = 0; \r\n obj.each(function() {\r\n var thisWidth = jQuery(this).width();\r\n if(thisWidth > widest) {\r\n widest = thisWidth; \r\n } \r\n }); \r\n width = parseInt( widest / cols); \r\n obj.width(width); \r\n obj.css(\'float\', \'left\');\r\n}\r\n\r\nfunction tabulate_answers_%POLL-ID%() {\r\n equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-answer-%POLL-ID%\\".'"'."), %ANSWERS-TABULATED-COLS% );\r\n}\r\n\r\nfunction tabulate_results_%POLL-ID%() {\r\n equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-result-%POLL-ID%\\".'"'."), %RESULTS-TABULATED-COLS% );\r\n}', 'other', '2012-11-05 12:55:03', '2012-11-01 20:56:08'),
137
- ('Green v3', '<div id=\\".'"'."yop-poll-name-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-name\\".'"'.">%POLL-NAME%</div>\r\n<div id=\\".'"'."yop-poll-question-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-question\\".'"'.">%POLL-QUESTION%</div>\r\n<div id=\\".'"'."yop-poll-answers-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-answers\\".'"'.">\r\n <ul>\r\n [ANSWER_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-answer-%POLL-ID%\\".'"'.">\r\n %POLL-ANSWER-CHECK-INPUT% \r\n %POLL-ANSWER-LABEL%\r\n <div class=\\".'"'."yop-poll-results-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-RESULT-LABEL%</div>\r\n <div class=\\".'"'."yop-poll-results-bar-%POLL-ID%\\".'"'.">\r\n %POLL-ANSWER-RESULT-BAR%\r\n </div>\r\n </li>\r\n [/ANSWER_CONTAINER]\r\n [OTHER_ANSWER_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-answer-%POLL-ID%\\".'"'.">\r\n %POLL-OTHER-ANSWER-CHECK-INPUT% \r\n %POLL-OTHER-ANSWER-LABEL% \r\n %POLL-ANSWER-RESULT-LABEL% \r\n %POLL-OTHER-ANSWER-TEXT-INPUT% \r\n <div class=\\".'"'."yop-poll-results-bar-%POLL-ID%\\".'"'.">\r\n %POLL-ANSWER-RESULT-BAR%\r\n </div>\r\n </li>\r\n [/OTHER_ANSWER_CONTAINER]\r\n </ul>\r\n</div>\r\n<div id=\\".'"'."yop-poll-custom-%POLL-ID%\\".'"'.">\r\n <ul>\r\n [CUSTOM_FIELD_CONTAINER]\r\n <li>%POLL-CUSTOM-FIELD-LABEL% %POLL-CUSTOM-FIELD-TEXT-INPUT%</li>\r\n [/CUSTOM_FIELD_CONTAINER]\r\n </ul>\r\n</div> \r\n<div id=\\".'"'."yop-poll-vote-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-footer\\".'"'.">\r\n <div>%POLL-VOTE-BUTTON%</div>\r\n <div id=\\".'"'."yop-poll-results-%POLL-ID%\\".'"'.">%POLL-VIEW-RESULT-LINK%</div>\r\n <div>%POLL-TOTAL-VOTERS%</div>\r\n <div>%POLL-TOTAL-VOTES%</div>\r\n</div>', '<div id=\\".'"'."yop-poll-name-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-name\\".'"'.">%POLL-NAME%</div>\r\n<div id=\\".'"'."yop-poll-question-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-question\\".'"'.">%POLL-QUESTION%</div>\r\n<div id=\\".'"'."yop-poll-answers-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-answers\\".'"'.">\r\n <ul>\r\n [ANSWER_RESULT_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-result-%POLL-ID%\\".'"'.">\r\n <label class=\\".'"'."pds-feedback-label-%POLL-ID%\\".'"'.">\r\n <span class=\\".'"'."pds-answer-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-LABEL%</span>\r\n <span class=\\".'"'."pds-feedback-result-%POLL-ID%\\".'"'.">\r\n <span class=\\".'"'."pds-feedback-per-%POLL-ID%\\".'"'."> %POLL-ANSWER-RESULT-LABEL%</span>\r\n </span>\r\n </label>\r\n <div>\r\n %POLL-ANSWER-RESULT-BAR%\r\n </div>\r\n </li>\r\n [/ANSWER_RESULT_CONTAINER]\r\n </ul>\r\n</div>\r\n<div id=\\".'"'."yop-poll-vote-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-footer\\".'"'.">\r\n <div>%POLL-TOTAL-VOTERS%</div>\r\n <div>%POLL-TOTAL-VOTES%</div>\r\n <div id=\\".'"'."yop-poll-back-%POLL-ID%\\".'"'.">%POLL-BACK-TO-VOTE-LINK%</div>\r\n</div>', 'This poll is about to <br>\r\nstart at %POLL-START-DATE%<br>\r\nand finish at %POLL-END-DATE%<br>', 'This poll is closed!\r\nPoll activity: <br>\r\nstart_date %POLL-START-DATE%<br>\r\nend_date %POLL-END-DATE%<br>\r\n\r\nPoll Results:\r\n<div id=\\".'"'."yop-poll-question-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-question\\".'"'.">%POLL-QUESTION%</div>\r\n<div id=\\".'"'."yop-poll-answers-1\\".'"'." class=\\".'"'."yop-poll-answers\\".'"'.">\r\n <ul>\r\n [ANSWER_RESULT_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-result-%POLL-ID%\\".'"'.">\r\n <label class=\\".'"'."pds-feedback-label\\".'"'.">\r\n <span class=\\".'"'."pds-answer-text\\".'"'.">%POLL-ANSWER-LABEL%</span>\r\n <span class=\\".'"'."pds-feedback-result\\".'"'.">\r\n <span class=\\".'"'."pds-feedback-per\\".'"'."> %POLL-ANSWER-RESULT-LABEL%</span>\r\n </span>\r\n </label>\r\n <span class=\\".'"'."pds-clear\\".'"'." style=\\".'"'."display: block;clear: both;height:1px;line-height:1px;\\".'"'."> </span>\r\n %POLL-ANSWER-RESULT-BAR%\r\n </li>\r\n [/ANSWER_RESULT_CONTAINER]\r\n </ul>\r\n</div>\r\n%POLL-VOTE-BUTTON%', '#yop-poll-container-%POLL-ID% {\r\n width:200px;\r\n background:#fff;\r\n padding:10px;\r\n color:#555;\r\n overflow:hidden;\r\n font-size:12px;\r\n border:5px solid #3F8B43;\r\n}\r\n#yop-poll-name-%POLL-ID% {\r\n font-size:14px;\r\n font-weight:bold;\r\n}\r\n\r\n#yop-poll-question-%POLL-ID% {\r\n font-size:14px;\r\n margin:5px 0px;\r\n}\r\n#yop-poll-answers-%POLL-ID% { }\r\n#yop-poll-answers-%POLL-ID% ul {\r\n list-style: none outside none;\r\n margin: 0;\r\n padding: 0;\r\n}\r\n#yop-poll-answers-%POLL-ID% ul li { \r\n font-style:normal;\r\n margin:0px 0px 10px 0px;\r\n padding:0px;\r\n font-size:12px;\r\n}\r\n#yop-poll-answers-%POLL-ID% ul li input { \r\n margin:0px; \r\n float:none;\r\n}\r\n#yop-poll-answers-%POLL-ID% ul li label { \r\n margin:0px; \r\n font-style:normal; \r\n font-weight:normal; \r\n font-size:12px; \r\n float:none;\r\n}\r\n.yop-poll-results-%POLL-ID% {\r\n font-size: 12px;\r\n font-style: italic;\r\n font-weight: normal;\r\n margin-left: 15px;\r\n}\r\n\r\n#yop-poll-custom-%POLL-ID% { }\r\n#yop-poll-custom-%POLL-ID% ul {\r\n list-style: none outside none;\r\n margin: 0;\r\n padding: 0;\r\n}\r\n#yop-poll-custom-%POLL-ID% ul li { \r\n padding:0px;\r\n margin:0px; \r\n font-size:14px;\r\n}\r\n#yop-poll-custom-%POLL-ID% ul li input { margin:0px 0px 5px 0px; padding:2%; width:96%; text-indent:2%; font-size:12px; }\r\n\r\n#yop-poll-vote-%POLL-ID% {\r\n\r\n}\r\n.yop-poll-results-bar-%POLL-ID% { background:#f5f5f5; }\r\n.yop-poll-results-bar-%POLL-ID% div { background:#555 !important; }\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-vote-%POLL-ID% button { float:left; }\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% {\r\n float: right;\r\n margin-bottom: 20px;\r\n margin-top: -20px;\r\n width: auto;\r\n}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% a { color:#3F8B43; text-decoration:underline; font-size:12px;}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-back-%POLL-ID% a { color:#3F8B43; text-decoration:underline; font-size:12px;}\r\n#yop-poll-vote-%POLL-ID% div { float:left; width:100%; }\r\n\r\n#yop-poll-container-error-%POLL-ID% {\r\n font-size:12px;\r\n font-style:italic;\r\n color:red;\r\n text-transform:lowercase;\r\n}', 'function stripBorder_%POLL-ID%(object) {\r\n object.each(function() {\r\n if( parseInt(jQuery(this).width() ) > 0) {\r\n jQuery(this).width( parseInt( jQuery(this).width() ) - parseInt(jQuery(this).css(\\".'"'."border-left-width\\".'"'.")) - parseInt(jQuery(this).css(\\".'"'."border-right-width\\".'"'.")) );\r\n }\r\n else {\r\n jQuery(this).css(\\".'"'."border-left-width\\".'"'.", \'0px\');\r\n jQuery(this).css(\\".'"'."border-right-width\\".'"'.", \'0px\');\r\n }\r\n });\r\n}\r\nfunction stripPadding_%POLL-ID%(object) {\r\n object.each(function() { \r\n jQuery(this).width( parseInt( jQuery(this).width() ) - parseInt(jQuery(this).css(\\".'"'."padding-left\\".'"'.")) - parseInt(jQuery(this).css(\\".'"'."padding-left\\".'"'.")) );\r\n });\r\n}\r\n\r\nfunction strip_results_%POLL-ID%() {\r\n stripPadding_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop_poll_li_result-%POLL-ID%\\".'"'.") ); \r\n stripBorder_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-result-bar-%POLL-ID%\\".'"'."));\r\n}\r\n\r\njQuery(document).ready(function(e) {\r\n if(typeof window.strip_results_%POLL-ID% == \'function\') \r\n strip_results_%POLL-ID%();\r\n \r\n if(typeof window.tabulate_answers_%POLL-ID% == \'function\') \r\n tabulate_answers_%POLL-ID%();\r\n \r\n if(typeof window.tabulate_results_%POLL-ID% == \'function\') \r\n tabulate_results_%POLL-ID%();\r\n \r\n});\r\n\r\nfunction equalWidth_%POLL-ID%(obj, cols) {\r\n var widest = 0; \r\n obj.each(function() {\r\n var thisWidth = jQuery(this).width();\r\n if(thisWidth > widest) {\r\n widest = thisWidth; \r\n } \r\n }); \r\n width = parseInt( widest / cols); \r\n obj.width(width); \r\n obj.css(\'float\', \'left\');\r\n}\r\n\r\nfunction tabulate_answers_%POLL-ID%() {\r\n equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-answer-%POLL-ID%\\".'"'."), %ANSWERS-TABULATED-COLS% );\r\n}\r\n\r\nfunction tabulate_results_%POLL-ID%() {\r\n equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-result-%POLL-ID%\\".'"'."), %RESULTS-TABULATED-COLS% );\r\n}', 'other', '2012-11-05 12:55:23', '2012-11-01 20:56:08'),
138
- ('Orange v1', '<div id=\\".'"'."yop-poll-name-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-name\\".'"'.">%POLL-NAME%</div>\r\n<div id=\\".'"'."yop-poll-question-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-question\\".'"'.">%POLL-QUESTION%</div>\r\n<div id=\\".'"'."yop-poll-answers-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-answers\\".'"'.">\r\n <ul>\r\n [ANSWER_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-answer-%POLL-ID%\\".'"'.">\r\n %POLL-ANSWER-CHECK-INPUT% \r\n %POLL-ANSWER-LABEL%\r\n <div class=\\".'"'."yop-poll-results-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-RESULT-LABEL%</div>\r\n <div class=\\".'"'."yop-poll-results-bar-%POLL-ID%\\".'"'.">\r\n %POLL-ANSWER-RESULT-BAR%\r\n </div>\r\n </li>\r\n [/ANSWER_CONTAINER]\r\n [OTHER_ANSWER_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-answer-%POLL-ID%\\".'"'.">\r\n %POLL-OTHER-ANSWER-CHECK-INPUT% \r\n %POLL-OTHER-ANSWER-LABEL% \r\n %POLL-ANSWER-RESULT-LABEL% \r\n %POLL-OTHER-ANSWER-TEXT-INPUT% \r\n <div class=\\".'"'."yop-poll-results-bar-%POLL-ID%\\".'"'.">\r\n %POLL-ANSWER-RESULT-BAR%\r\n </div>\r\n </li>\r\n [/OTHER_ANSWER_CONTAINER]\r\n </ul>\r\n</div>\r\n<div id=\\".'"'."yop-poll-custom-%POLL-ID%\\".'"'.">\r\n <ul>\r\n [CUSTOM_FIELD_CONTAINER]\r\n <li>%POLL-CUSTOM-FIELD-LABEL% %POLL-CUSTOM-FIELD-TEXT-INPUT%</li>\r\n [/CUSTOM_FIELD_CONTAINER]\r\n </ul>\r\n</div> \r\n<div id=\\".'"'."yop-poll-vote-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-footer\\".'"'.">\r\n <div>%POLL-VOTE-BUTTON%</div>\r\n <div id=\\".'"'."yop-poll-results-%POLL-ID%\\".'"'.">%POLL-VIEW-RESULT-LINK%</div>\r\n <div>%POLL-TOTAL-VOTERS%</div>\r\n <div>%POLL-TOTAL-VOTES%</div>\r\n</div>', '<div id=\\".'"'."yop-poll-name-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-name\\".'"'.">%POLL-NAME%</div>\r\n<div id=\\".'"'."yop-poll-question-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-question\\".'"'.">%POLL-QUESTION%</div>\r\n<div id=\\".'"'."yop-poll-answers-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-answers\\".'"'.">\r\n <ul>\r\n [ANSWER_RESULT_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-result-%POLL-ID%\\".'"'.">\r\n <label class=\\".'"'."pds-feedback-label-%POLL-ID%\\".'"'.">\r\n <span class=\\".'"'."pds-answer-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-LABEL%</span>\r\n <span class=\\".'"'."pds-feedback-result-%POLL-ID%\\".'"'.">\r\n <span class=\\".'"'."pds-feedback-per-%POLL-ID%\\".'"'."> %POLL-ANSWER-RESULT-LABEL%</span>\r\n </span>\r\n </label>\r\n <div>\r\n %POLL-ANSWER-RESULT-BAR%\r\n </div>\r\n </li>\r\n [/ANSWER_RESULT_CONTAINER]\r\n </ul>\r\n</div>\r\n<div id=\\".'"'."yop-poll-vote-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-footer\\".'"'.">\r\n <div>%POLL-TOTAL-VOTERS%</div>\r\n <div>%POLL-TOTAL-VOTES%</div>\r\n <div id=\\".'"'."yop-poll-back-%POLL-ID%\\".'"'.">%POLL-BACK-TO-VOTE-LINK%</div>\r\n</div>', 'This poll is about to <br>\r\nstart at %POLL-START-DATE%<br>\r\nand finish at %POLL-END-DATE%<br>', 'This poll is closed!\r\nPoll activity: <br>\r\nstart_date %POLL-START-DATE%<br>\r\nend_date %POLL-END-DATE%<br>\r\n\r\nPoll Results:\r\n<div id=\\".'"'."yop-poll-question-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-question\\".'"'.">%POLL-QUESTION%</div>\r\n<div id=\\".'"'."yop-poll-answers-1\\".'"'." class=\\".'"'."yop-poll-answers\\".'"'.">\r\n <ul>\r\n [ANSWER_RESULT_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-result-%POLL-ID%\\".'"'.">\r\n <label class=\\".'"'."pds-feedback-label\\".'"'.">\r\n <span class=\\".'"'."pds-answer-text\\".'"'.">%POLL-ANSWER-LABEL%</span>\r\n <span class=\\".'"'."pds-feedback-result\\".'"'.">\r\n <span class=\\".'"'."pds-feedback-per\\".'"'."> %POLL-ANSWER-RESULT-LABEL%</span>\r\n </span>\r\n </label>\r\n <span class=\\".'"'."pds-clear\\".'"'." style=\\".'"'."display: block;clear: both;height:1px;line-height:1px;\\".'"'."> </span>\r\n %POLL-ANSWER-RESULT-BAR%\r\n </li>\r\n [/ANSWER_RESULT_CONTAINER]\r\n </ul>\r\n</div>\r\n%POLL-VOTE-BUTTON%', '#yop-poll-container-%POLL-ID% {\r\n width:200px;\r\n background:#FB6911;\r\n padding:10px;\r\n color:#fff;\r\n overflow:hidden;\r\n font-size:12px;\r\n}\r\n#yop-poll-name-%POLL-ID% {\r\n font-size:14px;\r\n font-weight:bold;\r\n}\r\n\r\n#yop-poll-question-%POLL-ID% {\r\n font-size:14px;\r\n margin:5px 0px;\r\n}\r\n#yop-poll-answers-%POLL-ID% { }\r\n#yop-poll-answers-%POLL-ID% ul {\r\n list-style: none outside none;\r\n margin: 0;\r\n padding: 0;\r\n}\r\n#yop-poll-answers-%POLL-ID% ul li { \r\n font-style:normal;\r\n margin:0px 0px 10px 0px;\r\n padding:0px;\r\n font-size:12px;\r\n}\r\n#yop-poll-answers-%POLL-ID% ul li input { \r\n margin:0px; \r\n float:none;\r\n}\r\n#yop-poll-answers-%POLL-ID% ul li label { \r\n margin:0px; \r\n font-style:normal; \r\n font-weight:normal; \r\n font-size:12px; \r\n float:none;\r\n}\r\n.yop-poll-results-%POLL-ID% {\r\n font-size: 12px;\r\n font-style: italic;\r\n font-weight: normal;\r\n margin-left: 15px;\r\n}\r\n\r\n#yop-poll-custom-%POLL-ID% { }\r\n#yop-poll-custom-%POLL-ID% ul {\r\n list-style: none outside none;\r\n margin: 0;\r\n padding: 0;\r\n}\r\n#yop-poll-custom-%POLL-ID% ul li { \r\n padding:0px;\r\n margin:0px; \r\n font-size:14px;\r\n}\r\n#yop-poll-custom-%POLL-ID% ul li input { margin:0px 0px 5px 0px; padding:2%; width:96%; text-indent:2%; font-size:12px; }\r\n\r\n#yop-poll-vote-%POLL-ID% {\r\n\r\n}\r\n.yop-poll-results-bar-%POLL-ID% { background:#f5f5f5; }\r\n.yop-poll-results-bar-%POLL-ID% div { background:#555 !important; }\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-vote-%POLL-ID% button { float:left; }\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% {\r\n float: right;\r\n margin-bottom: 20px;\r\n margin-top: -20px;\r\n width: auto;\r\n}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% a { color:#fff; text-decoration:underline; font-size:12px;}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-back-%POLL-ID% a { color:#fff; text-decoration:underline; font-size:12px;}\r\n#yop-poll-vote-%POLL-ID% div { float:left; width:100%; }\r\n\r\n#yop-poll-container-error-%POLL-ID% {\r\n font-size:12px;\r\n font-style:italic;\r\n color:red;\r\n text-transform:lowercase;\r\n}', 'function stripBorder_%POLL-ID%(object) {\r\n object.each(function() {\r\n if( parseInt(jQuery(this).width() ) > 0) {\r\n jQuery(this).width( parseInt( jQuery(this).width() ) - parseInt(jQuery(this).css(\\".'"'."border-left-width\\".'"'.")) - parseInt(jQuery(this).css(\\".'"'."border-right-width\\".'"'.")) );\r\n }\r\n else {\r\n jQuery(this).css(\\".'"'."border-left-width\\".'"'.", \'0px\');\r\n jQuery(this).css(\\".'"'."border-right-width\\".'"'.", \'0px\');\r\n }\r\n });\r\n}\r\nfunction stripPadding_%POLL-ID%(object) {\r\n object.each(function() { \r\n jQuery(this).width( parseInt( jQuery(this).width() ) - parseInt(jQuery(this).css(\\".'"'."padding-left\\".'"'.")) - parseInt(jQuery(this).css(\\".'"'."padding-left\\".'"'.")) );\r\n });\r\n}\r\n\r\nfunction strip_results_%POLL-ID%() {\r\n stripPadding_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop_poll_li_result-%POLL-ID%\\".'"'.") ); \r\n stripBorder_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-result-bar-%POLL-ID%\\".'"'."));\r\n}\r\n\r\njQuery(document).ready(function(e) {\r\n if(typeof window.strip_results_%POLL-ID% == \'function\') \r\n strip_results_%POLL-ID%();\r\n \r\n if(typeof window.tabulate_answers_%POLL-ID% == \'function\') \r\n tabulate_answers_%POLL-ID%();\r\n \r\n if(typeof window.tabulate_results_%POLL-ID% == \'function\') \r\n tabulate_results_%POLL-ID%();\r\n \r\n});\r\n\r\nfunction equalWidth_%POLL-ID%(obj, cols) {\r\n var widest = 0; \r\n obj.each(function() {\r\n var thisWidth = jQuery(this).width();\r\n if(thisWidth > widest) {\r\n widest = thisWidth; \r\n } \r\n }); \r\n width = parseInt( widest / cols); \r\n obj.width(width); \r\n obj.css(\'float\', \'left\');\r\n}\r\n\r\nfunction tabulate_answers_%POLL-ID%() {\r\n equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-answer-%POLL-ID%\\".'"'."), %ANSWERS-TABULATED-COLS% );\r\n}\r\n\r\nfunction tabulate_results_%POLL-ID%() {\r\n equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-result-%POLL-ID%\\".'"'."), %RESULTS-TABULATED-COLS% );\r\n}', 'other', '2012-11-05 12:55:49', '2012-11-01 20:56:08'),
139
- ('Orange v2', '<div id=\\".'"'."yop-poll-name-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-name\\".'"'.">%POLL-NAME%</div>\r\n<div id=\\".'"'."yop-poll-question-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-question\\".'"'.">%POLL-QUESTION%</div>\r\n<div id=\\".'"'."yop-poll-answers-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-answers\\".'"'.">\r\n <ul>\r\n [ANSWER_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-answer-%POLL-ID%\\".'"'.">\r\n %POLL-ANSWER-CHECK-INPUT% \r\n %POLL-ANSWER-LABEL%\r\n <div class=\\".'"'."yop-poll-results-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-RESULT-LABEL%</div>\r\n <div class=\\".'"'."yop-poll-results-bar-%POLL-ID%\\".'"'.">\r\n %POLL-ANSWER-RESULT-BAR%\r\n </div>\r\n </li>\r\n [/ANSWER_CONTAINER]\r\n [OTHER_ANSWER_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-answer-%POLL-ID%\\".'"'.">\r\n %POLL-OTHER-ANSWER-CHECK-INPUT% \r\n %POLL-OTHER-ANSWER-LABEL% \r\n %POLL-ANSWER-RESULT-LABEL% \r\n %POLL-OTHER-ANSWER-TEXT-INPUT% \r\n <div class=\\".'"'."yop-poll-results-bar-%POLL-ID%\\".'"'.">\r\n %POLL-ANSWER-RESULT-BAR%\r\n </div>\r\n </li>\r\n [/OTHER_ANSWER_CONTAINER]\r\n </ul>\r\n</div>\r\n<div id=\\".'"'."yop-poll-custom-%POLL-ID%\\".'"'.">\r\n <ul>\r\n [CUSTOM_FIELD_CONTAINER]\r\n <li>%POLL-CUSTOM-FIELD-LABEL% %POLL-CUSTOM-FIELD-TEXT-INPUT%</li>\r\n [/CUSTOM_FIELD_CONTAINER]\r\n </ul>\r\n</div> \r\n<div id=\\".'"'."yop-poll-vote-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-footer\\".'"'.">\r\n <div>%POLL-VOTE-BUTTON%</div>\r\n <div id=\\".'"'."yop-poll-results-%POLL-ID%\\".'"'.">%POLL-VIEW-RESULT-LINK%</div>\r\n <div>%POLL-TOTAL-VOTERS%</div>\r\n <div>%POLL-TOTAL-VOTES%</div>\r\n</div>', '<div id=\\".'"'."yop-poll-name-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-name\\".'"'.">%POLL-NAME%</div>\r\n<div id=\\".'"'."yop-poll-question-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-question\\".'"'.">%POLL-QUESTION%</div>\r\n<div id=\\".'"'."yop-poll-answers-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-answers\\".'"'.">\r\n <ul>\r\n [ANSWER_RESULT_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-result-%POLL-ID%\\".'"'.">\r\n <label class=\\".'"'."pds-feedback-label-%POLL-ID%\\".'"'.">\r\n <span class=\\".'"'."pds-answer-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-LABEL%</span>\r\n <span class=\\".'"'."pds-feedback-result-%POLL-ID%\\".'"'.">\r\n <span class=\\".'"'."pds-feedback-per-%POLL-ID%\\".'"'."> %POLL-ANSWER-RESULT-LABEL%</span>\r\n </span>\r\n </label>\r\n <div>\r\n %POLL-ANSWER-RESULT-BAR%\r\n </div>\r\n </li>\r\n [/ANSWER_RESULT_CONTAINER]\r\n </ul>\r\n</div>\r\n<div id=\\".'"'."yop-poll-vote-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-footer\\".'"'.">\r\n <div>%POLL-TOTAL-VOTERS%</div>\r\n <div>%POLL-TOTAL-VOTES%</div>\r\n <div id=\\".'"'."yop-poll-back-%POLL-ID%\\".'"'.">%POLL-BACK-TO-VOTE-LINK%</div>\r\n</div>', 'This poll is about to <br>\r\nstart at %POLL-START-DATE%<br>\r\nand finish at %POLL-END-DATE%<br>', 'This poll is closed!\r\nPoll activity: <br>\r\nstart_date %POLL-START-DATE%<br>\r\nend_date %POLL-END-DATE%<br>\r\n\r\nPoll Results:\r\n<div id=\\".'"'."yop-poll-question-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-question\\".'"'.">%POLL-QUESTION%</div>\r\n<div id=\\".'"'."yop-poll-answers-1\\".'"'." class=\\".'"'."yop-poll-answers\\".'"'.">\r\n <ul>\r\n [ANSWER_RESULT_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-result-%POLL-ID%\\".'"'.">\r\n <label class=\\".'"'."pds-feedback-label\\".'"'.">\r\n <span class=\\".'"'."pds-answer-text\\".'"'.">%POLL-ANSWER-LABEL%</span>\r\n <span class=\\".'"'."pds-feedback-result\\".'"'.">\r\n <span class=\\".'"'."pds-feedback-per\\".'"'."> %POLL-ANSWER-RESULT-LABEL%</span>\r\n </span>\r\n </label>\r\n <span class=\\".'"'."pds-clear\\".'"'." style=\\".'"'."display: block;clear: both;height:1px;line-height:1px;\\".'"'."> </span>\r\n %POLL-ANSWER-RESULT-BAR%\r\n </li>\r\n [/ANSWER_RESULT_CONTAINER]\r\n </ul>\r\n</div>\r\n%POLL-VOTE-BUTTON%', '#yop-poll-container-%POLL-ID% {\r\n width:200px;\r\n background:#fff;\r\n padding:0px;\r\n color:#555;\r\n overflow:hidden;\r\n font-size:12px;\r\n}\r\n#yop-poll-name-%POLL-ID% {\r\n font-weight:bold;\r\n background:#FB6911;\r\n color:#fff;\r\n padding:5px;\r\n text-align:center;\r\n font-size:12px;\r\n}\r\n\r\n#yop-poll-question-%POLL-ID% {\r\n font-size:14px;\r\n margin:5px 0px;\r\n}\r\n#yop-poll-answers-%POLL-ID% { }\r\n#yop-poll-answers-%POLL-ID% ul {\r\n list-style: none outside none;\r\n margin: 0;\r\n padding: 0;\r\n}\r\n#yop-poll-answers-%POLL-ID% ul li { \r\n font-style:normal;\r\n margin:0px 0px 10px 0px;\r\n padding:0px;\r\n font-size:12px;\r\n}\r\n#yop-poll-answers-%POLL-ID% ul li input { \r\n margin:0px; \r\n float:none;\r\n}\r\n#yop-poll-answers-%POLL-ID% ul li label { \r\n margin:0px; \r\n font-style:normal; \r\n font-weight:normal; \r\n font-size:12px; \r\n float:none;\r\n}\r\n.yop-poll-results-%POLL-ID% {\r\n font-size: 12px;\r\n font-style: italic;\r\n font-weight: normal;\r\n margin-left: 15px;\r\n}\r\n\r\n#yop-poll-custom-%POLL-ID% { }\r\n#yop-poll-custom-%POLL-ID% ul {\r\n list-style: none outside none;\r\n margin: 0;\r\n padding: 0;\r\n}\r\n#yop-poll-custom-%POLL-ID% ul li { \r\n padding:0px;\r\n margin:0px; \r\n font-size:14px;\r\n}\r\n#yop-poll-custom-%POLL-ID% ul li input { margin:0px 0px 5px 0px; padding:2%; width:95%; text-indent:2%; font-size:12px; }\r\n\r\n#yop-poll-vote-%POLL-ID% {\r\n\r\n}\r\n.yop-poll-results-bar-%POLL-ID% { background:#f5f5f5; }\r\n.yop-poll-results-bar-%POLL-ID% div { background:#555 !important; }\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-vote-%POLL-ID% button { float:left; }\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% {\r\n float: right;\r\n margin-bottom: 20px;\r\n margin-top: -20px;\r\n width: auto;\r\n}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% a { color:#FB6911; text-decoration:underline; font-size:12px;}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-back-%POLL-ID% a { color:#FB6911; text-decoration:underline; font-size:12px;}\r\n#yop-poll-vote-%POLL-ID% div { float:left; width:100%; }\r\n\r\n#yop-poll-container-error-%POLL-ID% {\r\n font-size:12px;\r\n font-style:italic;\r\n color:red;\r\n text-transform:lowercase;\r\n}', 'function stripBorder_%POLL-ID%(object) {\r\n object.each(function() {\r\n if( parseInt(jQuery(this).width() ) > 0) {\r\n jQuery(this).width( parseInt( jQuery(this).width() ) - parseInt(jQuery(this).css(\\".'"'."border-left-width\\".'"'.")) - parseInt(jQuery(this).css(\\".'"'."border-right-width\\".'"'.")) );\r\n }\r\n else {\r\n jQuery(this).css(\\".'"'."border-left-width\\".'"'.", \'0px\');\r\n jQuery(this).css(\\".'"'."border-right-width\\".'"'.", \'0px\');\r\n }\r\n });\r\n}\r\nfunction stripPadding_%POLL-ID%(object) {\r\n object.each(function() { \r\n jQuery(this).width( parseInt( jQuery(this).width() ) - parseInt(jQuery(this).css(\\".'"'."padding-left\\".'"'.")) - parseInt(jQuery(this).css(\\".'"'."padding-left\\".'"'.")) );\r\n });\r\n}\r\n\r\nfunction strip_results_%POLL-ID%() {\r\n stripPadding_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop_poll_li_result-%POLL-ID%\\".'"'.") ); \r\n stripBorder_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-result-bar-%POLL-ID%\\".'"'."));\r\n}\r\n\r\njQuery(document).ready(function(e) {\r\n if(typeof window.strip_results_%POLL-ID% == \'function\') \r\n strip_results_%POLL-ID%();\r\n \r\n if(typeof window.tabulate_answers_%POLL-ID% == \'function\') \r\n tabulate_answers_%POLL-ID%();\r\n \r\n if(typeof window.tabulate_results_%POLL-ID% == \'function\') \r\n tabulate_results_%POLL-ID%();\r\n \r\n});\r\n\r\nfunction equalWidth_%POLL-ID%(obj, cols) {\r\n var widest = 0; \r\n obj.each(function() {\r\n var thisWidth = jQuery(this).width();\r\n if(thisWidth > widest) {\r\n widest = thisWidth; \r\n } \r\n }); \r\n width = parseInt( widest / cols); \r\n obj.width(width); \r\n obj.css(\'float\', \'left\');\r\n}\r\n\r\nfunction tabulate_answers_%POLL-ID%() {\r\n equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-answer-%POLL-ID%\\".'"'."), %ANSWERS-TABULATED-COLS% );\r\n}\r\n\r\nfunction tabulate_results_%POLL-ID%() {\r\n equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-result-%POLL-ID%\\".'"'."), %RESULTS-TABULATED-COLS% );\r\n}', 'other', '2012-11-05 12:56:14', '2012-11-01 20:56:08'),
140
- ('Orange v3', '<div id=\\".'"'."yop-poll-name-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-name\\".'"'.">%POLL-NAME%</div>\r\n<div id=\\".'"'."yop-poll-question-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-question\\".'"'.">%POLL-QUESTION%</div>\r\n<div id=\\".'"'."yop-poll-answers-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-answers\\".'"'.">\r\n <ul>\r\n [ANSWER_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-answer-%POLL-ID%\\".'"'.">\r\n %POLL-ANSWER-CHECK-INPUT% \r\n %POLL-ANSWER-LABEL%\r\n <div class=\\".'"'."yop-poll-results-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-RESULT-LABEL%</div>\r\n <div class=\\".'"'."yop-poll-results-bar-%POLL-ID%\\".'"'.">\r\n %POLL-ANSWER-RESULT-BAR%\r\n </div>\r\n </li>\r\n [/ANSWER_CONTAINER]\r\n [OTHER_ANSWER_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-answer-%POLL-ID%\\".'"'.">\r\n %POLL-OTHER-ANSWER-CHECK-INPUT% \r\n %POLL-OTHER-ANSWER-LABEL% \r\n %POLL-ANSWER-RESULT-LABEL% \r\n %POLL-OTHER-ANSWER-TEXT-INPUT% \r\n <div class=\\".'"'."yop-poll-results-bar-%POLL-ID%\\".'"'.">\r\n %POLL-ANSWER-RESULT-BAR%\r\n </div>\r\n </li>\r\n [/OTHER_ANSWER_CONTAINER]\r\n </ul>\r\n</div>\r\n<div id=\\".'"'."yop-poll-custom-%POLL-ID%\\".'"'.">\r\n <ul>\r\n [CUSTOM_FIELD_CONTAINER]\r\n <li>%POLL-CUSTOM-FIELD-LABEL% %POLL-CUSTOM-FIELD-TEXT-INPUT%</li>\r\n [/CUSTOM_FIELD_CONTAINER]\r\n </ul>\r\n</div> \r\n<div id=\\".'"'."yop-poll-vote-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-footer\\".'"'.">\r\n <div>%POLL-VOTE-BUTTON%</div>\r\n <div id=\\".'"'."yop-poll-results-%POLL-ID%\\".'"'.">%POLL-VIEW-RESULT-LINK%</div>\r\n <div>%POLL-TOTAL-VOTERS%</div>\r\n <div>%POLL-TOTAL-VOTES%</div>\r\n</div>', '<div id=\\".'"'."yop-poll-name-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-name\\".'"'.">%POLL-NAME%</div>\r\n<div id=\\".'"'."yop-poll-question-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-question\\".'"'.">%POLL-QUESTION%</div>\r\n<div id=\\".'"'."yop-poll-answers-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-answers\\".'"'.">\r\n <ul>\r\n [ANSWER_RESULT_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-result-%POLL-ID%\\".'"'.">\r\n <label class=\\".'"'."pds-feedback-label-%POLL-ID%\\".'"'.">\r\n <span class=\\".'"'."pds-answer-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-LABEL%</span>\r\n <span class=\\".'"'."pds-feedback-result-%POLL-ID%\\".'"'.">\r\n <span class=\\".'"'."pds-feedback-per-%POLL-ID%\\".'"'."> %POLL-ANSWER-RESULT-LABEL%</span>\r\n </span>\r\n </label>\r\n <div>\r\n %POLL-ANSWER-RESULT-BAR%\r\n </div>\r\n </li>\r\n [/ANSWER_RESULT_CONTAINER]\r\n </ul>\r\n</div>\r\n<div id=\\".'"'."yop-poll-vote-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-footer\\".'"'.">\r\n <div>%POLL-TOTAL-VOTERS%</div>\r\n <div>%POLL-TOTAL-VOTES%</div>\r\n <div id=\\".'"'."yop-poll-back-%POLL-ID%\\".'"'.">%POLL-BACK-TO-VOTE-LINK%</div>\r\n</div>', 'This poll is about to <br>\r\nstart at %POLL-START-DATE%<br>\r\nand finish at %POLL-END-DATE%<br>', 'This poll is closed!\r\nPoll activity: <br>\r\nstart_date %POLL-START-DATE%<br>\r\nend_date %POLL-END-DATE%<br>\r\n\r\nPoll Results:\r\n<div id=\\".'"'."yop-poll-question-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-question\\".'"'.">%POLL-QUESTION%</div>\r\n<div id=\\".'"'."yop-poll-answers-1\\".'"'." class=\\".'"'."yop-poll-answers\\".'"'.">\r\n <ul>\r\n [ANSWER_RESULT_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-result-%POLL-ID%\\".'"'.">\r\n <label class=\\".'"'."pds-feedback-label\\".'"'.">\r\n <span class=\\".'"'."pds-answer-text\\".'"'.">%POLL-ANSWER-LABEL%</span>\r\n <span class=\\".'"'."pds-feedback-result\\".'"'.">\r\n <span class=\\".'"'."pds-feedback-per\\".'"'."> %POLL-ANSWER-RESULT-LABEL%</span>\r\n </span>\r\n </label>\r\n <span class=\\".'"'."pds-clear\\".'"'." style=\\".'"'."display: block;clear: both;height:1px;line-height:1px;\\".'"'."> </span>\r\n %POLL-ANSWER-RESULT-BAR%\r\n </li>\r\n [/ANSWER_RESULT_CONTAINER]\r\n </ul>\r\n</div>\r\n%POLL-VOTE-BUTTON%', '#yop-poll-container-%POLL-ID% {\r\n width:200px;\r\n background:#fff;\r\n padding:10px;\r\n color:#555;\r\n overflow:hidden;\r\n font-size:12px;\r\n border:5px solid #FB6911;\r\n}\r\n#yop-poll-name-%POLL-ID% {\r\n font-size:14px;\r\n font-weight:bold;\r\n}\r\n\r\n#yop-poll-question-%POLL-ID% {\r\n font-size:14px;\r\n margin:5px 0px;\r\n}\r\n#yop-poll-answers-%POLL-ID% { }\r\n#yop-poll-answers-%POLL-ID% ul {\r\n list-style: none outside none;\r\n margin: 0;\r\n padding: 0;\r\n}\r\n#yop-poll-answers-%POLL-ID% ul li { \r\n font-style:normal;\r\n margin:0px 0px 10px 0px;\r\n padding:0px;\r\n font-size:12px;\r\n}\r\n#yop-poll-answers-%POLL-ID% ul li input { \r\n margin:0px; \r\n float:none;\r\n}\r\n#yop-poll-answers-%POLL-ID% ul li label { \r\n margin:0px; \r\n font-style:normal; \r\n font-weight:normal; \r\n font-size:12px; \r\n float:none;\r\n}\r\n.yop-poll-results-%POLL-ID% {\r\n font-size: 12px;\r\n font-style: italic;\r\n font-weight: normal;\r\n margin-left: 15px;\r\n}\r\n\r\n#yop-poll-custom-%POLL-ID% { }\r\n#yop-poll-custom-%POLL-ID% ul {\r\n list-style: none outside none;\r\n margin: 0;\r\n padding: 0;\r\n}\r\n#yop-poll-custom-%POLL-ID% ul li { \r\n padding:0px;\r\n margin:0px; \r\n font-size:14px;\r\n}\r\n#yop-poll-custom-%POLL-ID% ul li input { margin:0px 0px 5px 0px; padding:2%; width:96%; text-indent:2%; font-size:12px; }\r\n\r\n#yop-poll-vote-%POLL-ID% {\r\n\r\n}\r\n.yop-poll-results-bar-%POLL-ID% { background:#f5f5f5; }\r\n.yop-poll-results-bar-%POLL-ID% div { background:#555 !important; }\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-vote-%POLL-ID% button { float:left; }\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% {\r\n float: right;\r\n margin-bottom: 20px;\r\n margin-top: -20px;\r\n width: auto;\r\n}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% a { color:#FB6911; text-decoration:underline; font-size:12px;}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-back-%POLL-ID% a { color:#FB6911; text-decoration:underline; font-size:12px;}\r\n#yop-poll-vote-%POLL-ID% div { float:left; width:100%; }\r\n\r\n#yop-poll-container-error-%POLL-ID% {\r\n font-size:12px;\r\n font-style:italic;\r\n color:red;\r\n text-transform:lowercase;\r\n}', 'function stripBorder_%POLL-ID%(object) {\r\n object.each(function() {\r\n if( parseInt(jQuery(this).width() ) > 0) {\r\n jQuery(this).width( parseInt( jQuery(this).width() ) - parseInt(jQuery(this).css(\\".'"'."border-left-width\\".'"'.")) - parseInt(jQuery(this).css(\\".'"'."border-right-width\\".'"'.")) );\r\n }\r\n else {\r\n jQuery(this).css(\\".'"'."border-left-width\\".'"'.", \'0px\');\r\n jQuery(this).css(\\".'"'."border-right-width\\".'"'.", \'0px\');\r\n }\r\n });\r\n}\r\nfunction stripPadding_%POLL-ID%(object) {\r\n object.each(function() { \r\n jQuery(this).width( parseInt( jQuery(this).width() ) - parseInt(jQuery(this).css(\\".'"'."padding-left\\".'"'.")) - parseInt(jQuery(this).css(\\".'"'."padding-left\\".'"'.")) );\r\n });\r\n}\r\n\r\nfunction strip_results_%POLL-ID%() {\r\n stripPadding_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop_poll_li_result-%POLL-ID%\\".'"'.") ); \r\n stripBorder_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-result-bar-%POLL-ID%\\".'"'."));\r\n}\r\n\r\njQuery(document).ready(function(e) {\r\n if(typeof window.strip_results_%POLL-ID% == \'function\') \r\n strip_results_%POLL-ID%();\r\n \r\n if(typeof window.tabulate_answers_%POLL-ID% == \'function\') \r\n tabulate_answers_%POLL-ID%();\r\n \r\n if(typeof window.tabulate_results_%POLL-ID% == \'function\') \r\n tabulate_results_%POLL-ID%();\r\n \r\n});\r\n\r\nfunction equalWidth_%POLL-ID%(obj, cols) {\r\n var widest = 0; \r\n obj.each(function() {\r\n var thisWidth = jQuery(this).width();\r\n if(thisWidth > widest) {\r\n widest = thisWidth; \r\n } \r\n }); \r\n width = parseInt( widest / cols); \r\n obj.width(width); \r\n obj.css(\'float\', \'left\');\r\n}\r\n\r\nfunction tabulate_answers_%POLL-ID%() {\r\n equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-answer-%POLL-ID%\\".'"'."), %ANSWERS-TABULATED-COLS% );\r\n}\r\n\r\nfunction tabulate_results_%POLL-ID%() {\r\n equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-result-%POLL-ID%\\".'"'."), %RESULTS-TABULATED-COLS% );\r\n}', 'other', '2012-11-05 12:56:35', '2012-11-01 20:56:08')
141
"
142
);
143
}
122
123
//adding templates
124
$wpdb->query(
125
+ "INSERT INTO `". $wpdb->yop_poll_templates . "` (`name`, `before_vote_template`, `after_vote_template`, `before_start_date_template`, `after_end_date_template`, `css`, `js`, `status`, `last_modified`, `date_added`) VALUES
126
+ ('White', '<div id=\\".'"'."yop-poll-name-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-name\\".'"'.">%POLL-NAME%</div>\r\n<div id=\\".'"'."yop-poll-question-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-question\\".'"'.">%POLL-QUESTION%</div>\r\n<div id=\\".'"'."yop-poll-answers-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-answers\\".'"'.">\r\n <ul>\r\n [ANSWER_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-answer-%POLL-ID%\\".'"'.">\r\n %POLL-ANSWER-CHECK-INPUT% \r\n %POLL-ANSWER-LABEL%\r\n <div class=\\".'"'."yop-poll-results-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-RESULT-LABEL%</div>\r\n <div class=\\".'"'."yop-poll-results-bar-%POLL-ID%\\".'"'.">\r\n %POLL-ANSWER-RESULT-BAR%\r\n </div>\r\n </li>\r\n [/ANSWER_CONTAINER]\r\n [OTHER_ANSWER_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-answer-%POLL-ID%\\".'"'.">\r\n %POLL-OTHER-ANSWER-CHECK-INPUT% \r\n %POLL-OTHER-ANSWER-LABEL% \r\n %POLL-ANSWER-RESULT-LABEL% \r\n %POLL-OTHER-ANSWER-TEXT-INPUT% \r\n <div class=\\".'"'."yop-poll-results-bar-%POLL-ID%\\".'"'.">\r\n %POLL-ANSWER-RESULT-BAR%\r\n </div>\r\n </li>\r\n [/OTHER_ANSWER_CONTAINER]\r\n </ul>\r\n</div>\r\n<div id=\\".'"'."yop-poll-custom-%POLL-ID%\\".'"'.">\r\n <ul>\r\n [CUSTOM_FIELD_CONTAINER]\r\n <li>%POLL-CUSTOM-FIELD-LABEL% %POLL-CUSTOM-FIELD-TEXT-INPUT%</li>\r\n [/CUSTOM_FIELD_CONTAINER]\r\n </ul>\r\n</div> \r\n<div id=\\".'"'."yop-poll-vote-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-footer\\".'"'.">\r\n <div>%POLL-VOTE-BUTTON%</div>\r\n <div id=\\".'"'."yop-poll-results-%POLL-ID%\\".'"'.">%POLL-VIEW-RESULT-LINK%</div>\r\n <div>%POLL-TOTAL-VOTERS%</div>\r\n <div>%POLL-TOTAL-VOTES%</div>\r\n</div>', '<div id=\\".'"'."yop-poll-name-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-name\\".'"'.">%POLL-NAME%</div>\r\n<div id=\\".'"'."yop-poll-question-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-question\\".'"'.">%POLL-QUESTION%</div>\r\n<div id=\\".'"'."yop-poll-answers-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-answers\\".'"'.">\r\n <ul>\r\n [ANSWER_RESULT_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-result-%POLL-ID%\\".'"'.">\r\n <label class=\\".'"'."pds-feedback-label-%POLL-ID%\\".'"'.">\r\n <span class=\\".'"'."pds-answer-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-LABEL%</span>\r\n <span class=\\".'"'."pds-feedback-result-%POLL-ID%\\".'"'.">\r\n <span class=\\".'"'."pds-feedback-per-%POLL-ID%\\".'"'."> %POLL-ANSWER-RESULT-LABEL%</span>\r\n </span>\r\n </label>\r\n <div>\r\n %POLL-ANSWER-RESULT-BAR%\r\n </div>\r\n </li>\r\n [/ANSWER_RESULT_CONTAINER]\r\n </ul>\r\n</div>\r\n<div id=\\".'"'."yop-poll-vote-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-footer\\".'"'.">\r\n <div>%POLL-TOTAL-VOTERS%</div>\r\n <div>%POLL-TOTAL-VOTES%</div>\r\n <div id=\\".'"'."yop-poll-back-%POLL-ID%\\".'"'.">%POLL-BACK-TO-VOTE-LINK%</div>\r\n</div>', 'This poll is about to <br>\r\nstart at %POLL-START-DATE%<br>\r\nand finish at %POLL-END-DATE%<br>', 'This poll is closed!\r\nPoll activity: <br>\r\nstart_date %POLL-START-DATE%<br>\r\nend_date %POLL-END-DATE%<br>\r\n\r\nPoll Results:\r\n<div id=\\".'"'."yop-poll-question-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-question\\".'"'.">%POLL-QUESTION%</div>\r\n<div id=\\".'"'."yop-poll-answers-1\\".'"'." class=\\".'"'."yop-poll-answers\\".'"'.">\r\n <ul>\r\n [ANSWER_RESULT_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-result-%POLL-ID%\\".'"'.">\r\n <label class=\\".'"'."pds-feedback-label\\".'"'.">\r\n <span class=\\".'"'."pds-answer-text\\".'"'.">%POLL-ANSWER-LABEL%</span>\r\n <span class=\\".'"'."pds-feedback-result\\".'"'.">\r\n <span class=\\".'"'."pds-feedback-per\\".'"'."> %POLL-ANSWER-RESULT-LABEL%</span>\r\n </span>\r\n </label>\r\n <span class=\\".'"'."pds-clear\\".'"'." style=\\".'"'."display: block;clear: both;height:1px;line-height:1px;\\".'"'."> </span>\r\n %POLL-ANSWER-RESULT-BAR%\r\n </li>\r\n [/ANSWER_RESULT_CONTAINER]\r\n </ul>\r\n</div>\r\n%POLL-VOTE-BUTTON%', '#yop-poll-container-%POLL-ID% {\r\n width:200px;\r\n background:#fff;\r\n padding:10px;\r\n color:#555;\r\n overflow:hidden;\r\n font-size:12px;\r\n}\r\n#yop-poll-name-%POLL-ID% {\r\n font-size:14px;\r\n font-weight:bold;\r\n}\r\n\r\n#yop-poll-question-%POLL-ID% {\r\n font-size:14px;\r\n margin:5px 0px;\r\n}\r\n#yop-poll-answers-%POLL-ID% { }\r\n#yop-poll-answers-%POLL-ID% ul {\r\n list-style: none outside none;\r\n margin: 0;\r\n padding: 0;\r\n}\r\n#yop-poll-answers-%POLL-ID% ul li { \r\n font-style:normal;\r\n margin:0px 0px 10px 0px;\r\n padding:0px;\r\n font-size:12px;\r\n}\r\n#yop-poll-answers-%POLL-ID% ul li input { \r\n margin:0px; \r\n float:none;\r\n}\r\n#yop-poll-answers-%POLL-ID% ul li label { \r\n margin:0px; \r\n font-style:normal; \r\n font-weight:normal; \r\n font-size:12px; \r\n float:none;\r\n}\r\n.yop-poll-results-%POLL-ID% {\r\n font-size: 12px;\r\n font-style: italic;\r\n font-weight: normal;\r\n margin-left: 15px;\r\n}\r\n\r\n#yop-poll-custom-%POLL-ID% { }\r\n#yop-poll-custom-%POLL-ID% ul {\r\n list-style: none outside none;\r\n margin: 0;\r\n padding: 0;\r\n}\r\n#yop-poll-custom-%POLL-ID% ul li { \r\n padding:0px;\r\n margin:0px; \r\n font-size:14px;\r\n}\r\n#yop-poll-custom-%POLL-ID% ul li input { margin:0px 0px 5px 0px; padding:2%; width:96%; text-indent:2%; font-size:12px; }\r\n\r\n#yop-poll-vote-%POLL-ID% {\r\n\r\n}\r\n.yop-poll-results-bar-%POLL-ID% { background:#f5f5f5; }\r\n.yop-poll-results-bar-%POLL-ID% div { background:#555 !important; }\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-vote-%POLL-ID% button { float:left; }\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% {\r\n float: right;\r\n margin-bottom: 20px;\r\n margin-top: -20px;\r\n width: auto;\r\n}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% a { color:#555; text-decoration:underline; font-size:12px;}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-back-%POLL-ID% a { color:#555; text-decoration:underline; font-size:12px;}\r\n#yop-poll-vote-%POLL-ID% div { float:left; width:100%; }\r\n\r\n#yop-poll-container-error-%POLL-ID% {\r\n font-size:12px;\r\n font-style:italic;\r\n color:red;\r\n text-transform:lowercase;\r\n}', 'function stripBorder_%POLL-ID%(object) {\r\n object.each(function() {\r\n if( parseInt(jQuery(this).width() ) > 0) {\r\n jQuery(this).width( parseInt( jQuery(this).width() ) - parseInt(jQuery(this).css(\\".'"'."border-left-width\\".'"'.")) - parseInt(jQuery(this).css(\\".'"'."border-right-width\\".'"'.")) );\r\n }\r\n else {\r\n jQuery(this).css(\\".'"'."border-left-width\\".'"'.", \'0px\');\r\n jQuery(this).css(\\".'"'."border-right-width\\".'"'.", \'0px\');\r\n }\r\n });\r\n}\r\nfunction stripPadding_%POLL-ID%(object) {\r\n object.each(function() { \r\n jQuery(this).width( parseInt( jQuery(this).width() ) - parseInt(jQuery(this).css(\\".'"'."padding-left\\".'"'.")) - parseInt(jQuery(this).css(\\".'"'."padding-left\\".'"'.")) );\r\n });\r\n}\r\n\r\nfunction strip_results_%POLL-ID%() {\r\n stripPadding_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop_poll_li_result-%POLL-ID%\\".'"'.") ); \r\n stripBorder_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-result-bar-%POLL-ID%\\".'"'."));\r\n}\r\n\r\njQuery(document).ready(function(e) {\r\n if(typeof window.strip_results_%POLL-ID% == \'function\') \r\n strip_results_%POLL-ID%();\r\n \r\n if(typeof window.tabulate_answers_%POLL-ID% == \'function\') \r\n tabulate_answers_%POLL-ID%();\r\n \r\n if(typeof window.tabulate_results_%POLL-ID% == \'function\') \r\n tabulate_results_%POLL-ID%();\r\n \r\n});\r\n\r\nfunction equalWidth_%POLL-ID%(obj, cols) {\r\n var widest = 0; \r\n obj.each(function() {\r\n var thisWidth = jQuery(this).width();\r\n if(thisWidth > widest) {\r\n widest = thisWidth; \r\n } \r\n }); \r\n width = parseInt( widest / cols); \r\n obj.width(width); \r\n obj.css(\'float\', \'left\');\r\n}\r\n\r\nfunction tabulate_answers_%POLL-ID%() {\r\n equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-answer-%POLL-ID%\\".'"'."), %ANSWERS-TABULATED-COLS% );\r\n}\r\n\r\nfunction tabulate_results_%POLL-ID%() {\r\n equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-result-%POLL-ID%\\".'"'."), %RESULTS-TABULATED-COLS% );\r\n}', 'default', NOW(), NOW()),
127
+ ('Grey', '<div id=\\".'"'."yop-poll-name-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-name\\".'"'.">%POLL-NAME%</div>\r\n<div id=\\".'"'."yop-poll-question-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-question\\".'"'.">%POLL-QUESTION%</div>\r\n<div id=\\".'"'."yop-poll-answers-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-answers\\".'"'.">\r\n <ul>\r\n [ANSWER_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-answer-%POLL-ID%\\".'"'.">\r\n %POLL-ANSWER-CHECK-INPUT% \r\n %POLL-ANSWER-LABEL%\r\n <div class=\\".'"'."yop-poll-results-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-RESULT-LABEL%</div>\r\n <div class=\\".'"'."yop-poll-results-bar-%POLL-ID%\\".'"'.">\r\n %POLL-ANSWER-RESULT-BAR%\r\n </div>\r\n </li>\r\n [/ANSWER_CONTAINER]\r\n [OTHER_ANSWER_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-answer-%POLL-ID%\\".'"'.">\r\n %POLL-OTHER-ANSWER-CHECK-INPUT% \r\n %POLL-OTHER-ANSWER-LABEL% \r\n %POLL-ANSWER-RESULT-LABEL% \r\n %POLL-OTHER-ANSWER-TEXT-INPUT% \r\n <div class=\\".'"'."yop-poll-results-bar-%POLL-ID%\\".'"'.">\r\n %POLL-ANSWER-RESULT-BAR%\r\n </div>\r\n </li>\r\n [/OTHER_ANSWER_CONTAINER]\r\n </ul>\r\n</div>\r\n<div id=\\".'"'."yop-poll-custom-%POLL-ID%\\".'"'.">\r\n <ul>\r\n [CUSTOM_FIELD_CONTAINER]\r\n <li>%POLL-CUSTOM-FIELD-LABEL% %POLL-CUSTOM-FIELD-TEXT-INPUT%</li>\r\n [/CUSTOM_FIELD_CONTAINER]\r\n </ul>\r\n</div> \r\n<div id=\\".'"'."yop-poll-vote-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-footer\\".'"'.">\r\n <div>%POLL-VOTE-BUTTON%</div>\r\n <div id=\\".'"'."yop-poll-results-%POLL-ID%\\".'"'.">%POLL-VIEW-RESULT-LINK%</div>\r\n <div>%POLL-TOTAL-VOTERS%</div>\r\n <div>%POLL-TOTAL-VOTES%</div>\r\n</div>', '<div id=\\".'"'."yop-poll-name-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-name\\".'"'.">%POLL-NAME%</div>\r\n<div id=\\".'"'."yop-poll-question-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-question\\".'"'.">%POLL-QUESTION%</div>\r\n<div id=\\".'"'."yop-poll-answers-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-answers\\".'"'.">\r\n <ul>\r\n [ANSWER_RESULT_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-result-%POLL-ID%\\".'"'.">\r\n <label class=\\".'"'."pds-feedback-label-%POLL-ID%\\".'"'.">\r\n <span class=\\".'"'."pds-answer-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-LABEL%</span>\r\n <span class=\\".'"'."pds-feedback-result-%POLL-ID%\\".'"'.">\r\n <span class=\\".'"'."pds-feedback-per-%POLL-ID%\\".'"'."> %POLL-ANSWER-RESULT-LABEL%</span>\r\n </span>\r\n </label>\r\n <div>\r\n %POLL-ANSWER-RESULT-BAR%\r\n </div>\r\n </li>\r\n [/ANSWER_RESULT_CONTAINER]\r\n </ul>\r\n</div>\r\n<div id=\\".'"'."yop-poll-vote-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-footer\\".'"'.">\r\n <div>%POLL-TOTAL-VOTERS%</div>\r\n <div>%POLL-TOTAL-VOTES%</div>\r\n <div id=\\".'"'."yop-poll-back-%POLL-ID%\\".'"'.">%POLL-BACK-TO-VOTE-LINK%</div>\r\n</div>', 'This poll is about to <br>\r\nstart at %POLL-START-DATE%<br>\r\nand finish at %POLL-END-DATE%<br>', 'This poll is closed!\r\nPoll activity: <br>\r\nstart_date %POLL-START-DATE%<br>\r\nend_date %POLL-END-DATE%<br>\r\n\r\nPoll Results:\r\n<div id=\\".'"'."yop-poll-question-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-question\\".'"'.">%POLL-QUESTION%</div>\r\n<div id=\\".'"'."yop-poll-answers-1\\".'"'." class=\\".'"'."yop-poll-answers\\".'"'.">\r\n <ul>\r\n [ANSWER_RESULT_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-result-%POLL-ID%\\".'"'.">\r\n <label class=\\".'"'."pds-feedback-label\\".'"'.">\r\n <span class=\\".'"'."pds-answer-text\\".'"'.">%POLL-ANSWER-LABEL%</span>\r\n <span class=\\".'"'."pds-feedback-result\\".'"'.">\r\n <span class=\\".'"'."pds-feedback-per\\".'"'."> %POLL-ANSWER-RESULT-LABEL%</span>\r\n </span>\r\n </label>\r\n <span class=\\".'"'."pds-clear\\".'"'." style=\\".'"'."display: block;clear: both;height:1px;line-height:1px;\\".'"'."> </span>\r\n %POLL-ANSWER-RESULT-BAR%\r\n </li>\r\n [/ANSWER_RESULT_CONTAINER]\r\n </ul>\r\n</div>\r\n%POLL-VOTE-BUTTON%', '#yop-poll-container-%POLL-ID% {\r\n width:200px;\r\n background:#eee;\r\n padding:10px;\r\n color:#000;\r\n overflow:hidden;\r\n font-size:12px;\r\n}\r\n#yop-poll-name-%POLL-ID% {\r\n font-size:14px;\r\n font-weight:bold;\r\n}\r\n\r\n#yop-poll-question-%POLL-ID% {\r\n font-size:14px;\r\n margin:5px 0px;\r\n}\r\n#yop-poll-answers-%POLL-ID% { }\r\n#yop-poll-answers-%POLL-ID% ul {\r\n list-style: none outside none;\r\n margin: 0;\r\n padding: 0;\r\n}\r\n#yop-poll-answers-%POLL-ID% ul li { \r\n font-style:normal;\r\n margin:0px 0px 10px 0px;\r\n padding:0px;\r\n font-size:12px;\r\n}\r\n#yop-poll-answers-%POLL-ID% ul li input { \r\n margin:0px; \r\n float:none;\r\n}\r\n#yop-poll-answers-%POLL-ID% ul li label { \r\n margin:0px; \r\n font-style:normal; \r\n font-weight:normal; \r\n font-size:12px; \r\n float:none;\r\n}\r\n.yop-poll-results-%POLL-ID% {\r\n font-size: 12px;\r\n font-style: italic;\r\n font-weight: normal;\r\n margin-left: 15px;\r\n}\r\n\r\n#yop-poll-custom-%POLL-ID% { }\r\n#yop-poll-custom-%POLL-ID% ul {\r\n list-style: none outside none;\r\n margin: 0;\r\n padding: 0;\r\n}\r\n#yop-poll-custom-%POLL-ID% ul li { \r\n padding:0px;\r\n margin:0px; \r\n font-size:14px;\r\n}\r\n#yop-poll-custom-%POLL-ID% ul li input { margin:0px 0px 5px 0px; padding:2%; width:96%; text-indent:2%; font-size:12px; }\r\n\r\n#yop-poll-vote-%POLL-ID% {\r\n\r\n}\r\n.yop-poll-results-bar-%POLL-ID% { background:#f5f5f5; }\r\n.yop-poll-results-bar-%POLL-ID% div { background:#555 !important; }\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-vote-%POLL-ID% button { float:left; }\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% {\r\n float: right;\r\n margin-bottom: 20px;\r\n margin-top: -20px;\r\n width: auto;\r\n}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% a { color:#000; text-decoration:underline; font-size:12px;}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-back-%POLL-ID% a { color:#000; text-decoration:underline; font-size:12px;}\r\n#yop-poll-vote-%POLL-ID% div { float:left; width:100%; }\r\n\r\n#yop-poll-container-error-%POLL-ID% {\r\n font-size:12px;\r\n font-style:italic;\r\n color:red;\r\n text-transform:lowercase;\r\n}', 'function stripBorder_%POLL-ID%(object) {\r\n object.each(function() {\r\n if( parseInt(jQuery(this).width() ) > 0) {\r\n jQuery(this).width( parseInt( jQuery(this).width() ) - parseInt(jQuery(this).css(\\".'"'."border-left-width\\".'"'.")) - parseInt(jQuery(this).css(\\".'"'."border-right-width\\".'"'.")) );\r\n }\r\n else {\r\n jQuery(this).css(\\".'"'."border-left-width\\".'"'.", \'0px\');\r\n jQuery(this).css(\\".'"'."border-right-width\\".'"'.", \'0px\');\r\n }\r\n });\r\n}\r\nfunction stripPadding_%POLL-ID%(object) {\r\n object.each(function() { \r\n jQuery(this).width( parseInt( jQuery(this).width() ) - parseInt(jQuery(this).css(\\".'"'."padding-left\\".'"'.")) - parseInt(jQuery(this).css(\\".'"'."padding-left\\".'"'.")) );\r\n });\r\n}\r\n\r\nfunction strip_results_%POLL-ID%() {\r\n stripPadding_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop_poll_li_result-%POLL-ID%\\".'"'.") ); \r\n stripBorder_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-result-bar-%POLL-ID%\\".'"'."));\r\n}\r\n\r\njQuery(document).ready(function(e) {\r\n if(typeof window.strip_results_%POLL-ID% == \'function\') \r\n strip_results_%POLL-ID%();\r\n \r\n if(typeof window.tabulate_answers_%POLL-ID% == \'function\') \r\n tabulate_answers_%POLL-ID%();\r\n \r\n if(typeof window.tabulate_results_%POLL-ID% == \'function\') \r\n tabulate_results_%POLL-ID%();\r\n \r\n});\r\n\r\nfunction equalWidth_%POLL-ID%(obj, cols) {\r\n var widest = 0; \r\n obj.each(function() {\r\n var thisWidth = jQuery(this).width();\r\n if(thisWidth > widest) {\r\n widest = thisWidth; \r\n } \r\n }); \r\n width = parseInt( widest / cols); \r\n obj.width(width); \r\n obj.css(\'float\', \'left\');\r\n}\r\n\r\nfunction tabulate_answers_%POLL-ID%() {\r\n equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-answer-%POLL-ID%\\".'"'."), %ANSWERS-TABULATED-COLS% );\r\n}\r\n\r\nfunction tabulate_results_%POLL-ID%() {\r\n equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-result-%POLL-ID%\\".'"'."), %RESULTS-TABULATED-COLS% );\r\n}', 'other', NOW(), NOW()),
128
+ ('Dark', '<div id=\\".'"'."yop-poll-name-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-name\\".'"'.">%POLL-NAME%</div>\r\n<div id=\\".'"'."yop-poll-question-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-question\\".'"'.">%POLL-QUESTION%</div>\r\n<div id=\\".'"'."yop-poll-answers-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-answers\\".'"'.">\r\n <ul>\r\n [ANSWER_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-answer-%POLL-ID%\\".'"'.">\r\n %POLL-ANSWER-CHECK-INPUT% \r\n %POLL-ANSWER-LABEL%\r\n <div class=\\".'"'."yop-poll-results-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-RESULT-LABEL%</div>\r\n <div class=\\".'"'."yop-poll-results-bar-%POLL-ID%\\".'"'.">\r\n %POLL-ANSWER-RESULT-BAR%\r\n </div>\r\n </li>\r\n [/ANSWER_CONTAINER]\r\n [OTHER_ANSWER_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-answer-%POLL-ID%\\".'"'.">\r\n %POLL-OTHER-ANSWER-CHECK-INPUT% \r\n %POLL-OTHER-ANSWER-LABEL% \r\n %POLL-ANSWER-RESULT-LABEL% \r\n %POLL-OTHER-ANSWER-TEXT-INPUT% \r\n <div class=\\".'"'."yop-poll-results-bar-%POLL-ID%\\".'"'.">\r\n %POLL-ANSWER-RESULT-BAR%\r\n </div>\r\n </li>\r\n [/OTHER_ANSWER_CONTAINER]\r\n </ul>\r\n</div>\r\n<div id=\\".'"'."yop-poll-custom-%POLL-ID%\\".'"'.">\r\n <ul>\r\n [CUSTOM_FIELD_CONTAINER]\r\n <li>%POLL-CUSTOM-FIELD-LABEL% %POLL-CUSTOM-FIELD-TEXT-INPUT%</li>\r\n [/CUSTOM_FIELD_CONTAINER]\r\n </ul>\r\n</div> \r\n<div id=\\".'"'."yop-poll-vote-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-footer\\".'"'.">\r\n <div>%POLL-VOTE-BUTTON%</div>\r\n <div id=\\".'"'."yop-poll-results-%POLL-ID%\\".'"'.">%POLL-VIEW-RESULT-LINK%</div>\r\n <div>%POLL-TOTAL-VOTERS%</div>\r\n <div>%POLL-TOTAL-VOTES%</div>\r\n</div>', '<div id=\\".'"'."yop-poll-name-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-name\\".'"'.">%POLL-NAME%</div>\r\n<div id=\\".'"'."yop-poll-question-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-question\\".'"'.">%POLL-QUESTION%</div>\r\n<div id=\\".'"'."yop-poll-answers-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-answers\\".'"'.">\r\n <ul>\r\n [ANSWER_RESULT_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-result-%POLL-ID%\\".'"'.">\r\n <label class=\\".'"'."pds-feedback-label-%POLL-ID%\\".'"'.">\r\n <span class=\\".'"'."pds-answer-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-LABEL%</span>\r\n <span class=\\".'"'."pds-feedback-result-%POLL-ID%\\".'"'.">\r\n <span class=\\".'"'."pds-feedback-per-%POLL-ID%\\".'"'."> %POLL-ANSWER-RESULT-LABEL%</span>\r\n </span>\r\n </label>\r\n <div>\r\n %POLL-ANSWER-RESULT-BAR%\r\n </div>\r\n </li>\r\n [/ANSWER_RESULT_CONTAINER]\r\n </ul>\r\n</div>\r\n<div id=\\".'"'."yop-poll-vote-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-footer\\".'"'.">\r\n <div>%POLL-TOTAL-VOTERS%</div>\r\n <div>%POLL-TOTAL-VOTES%</div>\r\n <div id=\\".'"'."yop-poll-back-%POLL-ID%\\".'"'.">%POLL-BACK-TO-VOTE-LINK%</div>\r\n</div>', 'This poll is about to <br>\r\nstart at %POLL-START-DATE%<br>\r\nand finish at %POLL-END-DATE%<br>', 'This poll is closed!\r\nPoll activity: <br>\r\nstart_date %POLL-START-DATE%<br>\r\nend_date %POLL-END-DATE%<br>\r\n\r\nPoll Results:\r\n<div id=\\".'"'."yop-poll-question-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-question\\".'"'.">%POLL-QUESTION%</div>\r\n<div id=\\".'"'."yop-poll-answers-1\\".'"'." class=\\".'"'."yop-poll-answers\\".'"'.">\r\n <ul>\r\n [ANSWER_RESULT_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-result-%POLL-ID%\\".'"'.">\r\n <label class=\\".'"'."pds-feedback-label\\".'"'.">\r\n <span class=\\".'"'."pds-answer-text\\".'"'.">%POLL-ANSWER-LABEL%</span>\r\n <span class=\\".'"'."pds-feedback-result\\".'"'.">\r\n <span class=\\".'"'."pds-feedback-per\\".'"'."> %POLL-ANSWER-RESULT-LABEL%</span>\r\n </span>\r\n </label>\r\n <span class=\\".'"'."pds-clear\\".'"'." style=\\".'"'."display: block;clear: both;height:1px;line-height:1px;\\".'"'."> </span>\r\n %POLL-ANSWER-RESULT-BAR%\r\n </li>\r\n [/ANSWER_RESULT_CONTAINER]\r\n </ul>\r\n</div>\r\n%POLL-VOTE-BUTTON%', '#yop-poll-container-%POLL-ID% {\r\n width:200px;\r\n background:#555;\r\n padding:10px;\r\n color:#fff;\r\n overflow:hidden;\r\n font-size:12px;\r\n}\r\n#yop-poll-name-%POLL-ID% {\r\n font-size:14px;\r\n font-weight:bold;\r\n}\r\n\r\n#yop-poll-question-%POLL-ID% {\r\n font-size:14px;\r\n margin:5px 0px;\r\n}\r\n#yop-poll-answers-%POLL-ID% { }\r\n#yop-poll-answers-%POLL-ID% ul {\r\n list-style: none outside none;\r\n margin: 0;\r\n padding: 0;\r\n}\r\n#yop-poll-answers-%POLL-ID% ul li { \r\n font-style:normal;\r\n margin:0px 0px 10px 0px;\r\n padding:0px;\r\n font-size:12px;\r\n}\r\n#yop-poll-answers-%POLL-ID% ul li input { \r\n margin:0px; \r\n float:none;\r\n}\r\n#yop-poll-answers-%POLL-ID% ul li label { \r\n margin:0px; \r\n font-style:normal; \r\n font-weight:normal; \r\n font-size:12px; \r\n float:none;\r\n}\r\n.yop-poll-results-%POLL-ID% {\r\n font-size: 12px;\r\n font-style: italic;\r\n font-weight: normal;\r\n margin-left: 15px;\r\n}\r\n\r\n#yop-poll-custom-%POLL-ID% { }\r\n#yop-poll-custom-%POLL-ID% ul {\r\n list-style: none outside none;\r\n margin: 0;\r\n padding: 0;\r\n}\r\n#yop-poll-custom-%POLL-ID% ul li { \r\n padding:0px;\r\n margin:0px; \r\n font-size:14px;\r\n}\r\n#yop-poll-custom-%POLL-ID% ul li input { margin:0px 0px 5px 0px; padding:2%; width:96%; text-indent:2%; font-size:12px; }\r\n\r\n#yop-poll-vote-%POLL-ID% {\r\n\r\n}\r\n.yop-poll-results-bar-%POLL-ID% { background:#f5f5f5; }\r\n.yop-poll-results-bar-%POLL-ID% div { background:#555 !important; }\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-vote-%POLL-ID% button { float:left; }\r\n#yop-poll-vote-4 div#yop-poll-results-4 {\r\n float: right;\r\n margin-bottom: 20px;\r\n margin-top: -20px;\r\n width: auto;\r\n}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% a { color:#fff; text-decoration:underline; font-size:12px;}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-back-%POLL-ID% a { color:#fff; text-decoration:underline; font-size:12px;}\r\n#yop-poll-vote-%POLL-ID% div { float:left; width:100%; }\r\n\r\n#yop-poll-container-error-%POLL-ID% {\r\n font-size:12px;\r\n font-style:italic;\r\n color:red;\r\n text-transform:lowercase;\r\n}', 'function stripBorder_%POLL-ID%(object) {\r\n object.each(function() {\r\n if( parseInt(jQuery(this).width() ) > 0) {\r\n jQuery(this).width( parseInt( jQuery(this).width() ) - parseInt(jQuery(this).css(\\".'"'."border-left-width\\".'"'.")) - parseInt(jQuery(this).css(\\".'"'."border-right-width\\".'"'.")) );\r\n }\r\n else {\r\n jQuery(this).css(\\".'"'."border-left-width\\".'"'.", \'0px\');\r\n jQuery(this).css(\\".'"'."border-right-width\\".'"'.", \'0px\');\r\n }\r\n });\r\n}\r\nfunction stripPadding_%POLL-ID%(object) {\r\n object.each(function() { \r\n jQuery(this).width( parseInt( jQuery(this).width() ) - parseInt(jQuery(this).css(\\".'"'."padding-left\\".'"'.")) - parseInt(jQuery(this).css(\\".'"'."padding-left\\".'"'.")) );\r\n });\r\n}\r\n\r\nfunction strip_results_%POLL-ID%() {\r\n stripPadding_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop_poll_li_result-%POLL-ID%\\".'"'.") ); \r\n stripBorder_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-result-bar-%POLL-ID%\\".'"'."));\r\n}\r\n\r\njQuery(document).ready(function(e) {\r\n if(typeof window.strip_results_%POLL-ID% == \'function\') \r\n strip_results_%POLL-ID%();\r\n \r\n if(typeof window.tabulate_answers_%POLL-ID% == \'function\') \r\n tabulate_answers_%POLL-ID%();\r\n \r\n if(typeof window.tabulate_results_%POLL-ID% == \'function\') \r\n tabulate_results_%POLL-ID%();\r\n \r\n});\r\n\r\nfunction equalWidth_%POLL-ID%(obj, cols) {\r\n var widest = 0; \r\n obj.each(function() {\r\n var thisWidth = jQuery(this).width();\r\n if(thisWidth > widest) {\r\n widest = thisWidth; \r\n } \r\n }); \r\n width = parseInt( widest / cols); \r\n obj.width(width); \r\n obj.css(\'float\', \'left\');\r\n}\r\n\r\nfunction tabulate_answers_%POLL-ID%() {\r\n equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-answer-%POLL-ID%\\".'"'."), %ANSWERS-TABULATED-COLS% );\r\n}\r\n\r\nfunction tabulate_results_%POLL-ID%() {\r\n equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-result-%POLL-ID%\\".'"'."), %RESULTS-TABULATED-COLS% );\r\n}', 'other', NOW(), NOW()),
129
+ ('Blue v1', '<div id=\\".'"'."yop-poll-name-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-name\\".'"'.">%POLL-NAME%</div>\r\n<div id=\\".'"'."yop-poll-question-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-question\\".'"'.">%POLL-QUESTION%</div>\r\n<div id=\\".'"'."yop-poll-answers-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-answers\\".'"'.">\r\n <ul>\r\n [ANSWER_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-answer-%POLL-ID%\\".'"'.">\r\n %POLL-ANSWER-CHECK-INPUT% \r\n %POLL-ANSWER-LABEL%\r\n <div class=\\".'"'."yop-poll-results-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-RESULT-LABEL%</div>\r\n <div class=\\".'"'."yop-poll-results-bar-%POLL-ID%\\".'"'.">\r\n %POLL-ANSWER-RESULT-BAR%\r\n </div>\r\n </li>\r\n [/ANSWER_CONTAINER]\r\n [OTHER_ANSWER_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-answer-%POLL-ID%\\".'"'.">\r\n %POLL-OTHER-ANSWER-CHECK-INPUT% \r\n %POLL-OTHER-ANSWER-LABEL% \r\n %POLL-ANSWER-RESULT-LABEL% \r\n %POLL-OTHER-ANSWER-TEXT-INPUT% \r\n <div class=\\".'"'."yop-poll-results-bar-%POLL-ID%\\".'"'.">\r\n %POLL-ANSWER-RESULT-BAR%\r\n </div>\r\n </li>\r\n [/OTHER_ANSWER_CONTAINER]\r\n </ul>\r\n</div>\r\n<div id=\\".'"'."yop-poll-custom-%POLL-ID%\\".'"'.">\r\n <ul>\r\n [CUSTOM_FIELD_CONTAINER]\r\n <li>%POLL-CUSTOM-FIELD-LABEL% %POLL-CUSTOM-FIELD-TEXT-INPUT%</li>\r\n [/CUSTOM_FIELD_CONTAINER]\r\n </ul>\r\n</div> \r\n<div id=\\".'"'."yop-poll-vote-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-footer\\".'"'.">\r\n <div>%POLL-VOTE-BUTTON%</div>\r\n <div id=\\".'"'."yop-poll-results-%POLL-ID%\\".'"'.">%POLL-VIEW-RESULT-LINK%</div>\r\n <div>%POLL-TOTAL-VOTERS%</div>\r\n <div>%POLL-TOTAL-VOTES%</div>\r\n</div>', '<div id=\\".'"'."yop-poll-name-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-name\\".'"'.">%POLL-NAME%</div>\r\n<div id=\\".'"'."yop-poll-question-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-question\\".'"'.">%POLL-QUESTION%</div>\r\n<div id=\\".'"'."yop-poll-answers-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-answers\\".'"'.">\r\n <ul>\r\n [ANSWER_RESULT_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-result-%POLL-ID%\\".'"'.">\r\n <label class=\\".'"'."pds-feedback-label-%POLL-ID%\\".'"'.">\r\n <span class=\\".'"'."pds-answer-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-LABEL%</span>\r\n <span class=\\".'"'."pds-feedback-result-%POLL-ID%\\".'"'.">\r\n <span class=\\".'"'."pds-feedback-per-%POLL-ID%\\".'"'."> %POLL-ANSWER-RESULT-LABEL%</span>\r\n </span>\r\n </label>\r\n <div>\r\n %POLL-ANSWER-RESULT-BAR%\r\n </div>\r\n </li>\r\n [/ANSWER_RESULT_CONTAINER]\r\n </ul>\r\n</div>\r\n<div id=\\".'"'."yop-poll-vote-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-footer\\".'"'.">\r\n <div>%POLL-TOTAL-VOTERS%</div>\r\n <div>%POLL-TOTAL-VOTES%</div>\r\n <div id=\\".'"'."yop-poll-back-%POLL-ID%\\".'"'.">%POLL-BACK-TO-VOTE-LINK%</div>\r\n</div>', 'This poll is about to <br>\r\nstart at %POLL-START-DATE%<br>\r\nand finish at %POLL-END-DATE%<br>', 'This poll is closed!\r\nPoll activity: <br>\r\nstart_date %POLL-START-DATE%<br>\r\nend_date %POLL-END-DATE%<br>\r\n\r\nPoll Results:\r\n<div id=\\".'"'."yop-poll-question-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-question\\".'"'.">%POLL-QUESTION%</div>\r\n<div id=\\".'"'."yop-poll-answers-1\\".'"'." class=\\".'"'."yop-poll-answers\\".'"'.">\r\n <ul>\r\n [ANSWER_RESULT_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-result-%POLL-ID%\\".'"'.">\r\n <label class=\\".'"'."pds-feedback-label\\".'"'.">\r\n <span class=\\".'"'."pds-answer-text\\".'"'.">%POLL-ANSWER-LABEL%</span>\r\n <span class=\\".'"'."pds-feedback-result\\".'"'.">\r\n <span class=\\".'"'."pds-feedback-per\\".'"'."> %POLL-ANSWER-RESULT-LABEL%</span>\r\n </span>\r\n </label>\r\n <span class=\\".'"'."pds-clear\\".'"'." style=\\".'"'."display: block;clear: both;height:1px;line-height:1px;\\".'"'."> </span>\r\n %POLL-ANSWER-RESULT-BAR%\r\n </li>\r\n [/ANSWER_RESULT_CONTAINER]\r\n </ul>\r\n</div>\r\n%POLL-VOTE-BUTTON%', '#yop-poll-container-%POLL-ID% {\r\n width:200px;\r\n background:#327BD6;\r\n padding:10px;\r\n color:#fff;\r\n overflow:hidden;\r\n font-size:12px;\r\n}\r\n#yop-poll-name-%POLL-ID% {\r\n font-size:14px;\r\n font-weight:bold;\r\n}\r\n\r\n#yop-poll-question-%POLL-ID% {\r\n font-size:14px;\r\n margin:5px 0px;\r\n}\r\n#yop-poll-answers-%POLL-ID% { }\r\n#yop-poll-answers-%POLL-ID% ul {\r\n list-style: none outside none;\r\n margin: 0;\r\n padding: 0;\r\n}\r\n#yop-poll-answers-%POLL-ID% ul li { \r\n font-style:normal;\r\n margin:0px 0px 10px 0px;\r\n padding:0px;\r\n font-size:12px;\r\n}\r\n#yop-poll-answers-%POLL-ID% ul li input { \r\n margin:0px; \r\n float:none;\r\n}\r\n#yop-poll-answers-%POLL-ID% ul li label { \r\n margin:0px; \r\n font-style:normal; \r\n font-weight:normal; \r\n font-size:12px; \r\n float:none;\r\n}\r\n.yop-poll-results-%POLL-ID% {\r\n font-size: 12px;\r\n font-style: italic;\r\n font-weight: normal;\r\n margin-left: 15px;\r\n}\r\n\r\n#yop-poll-custom-%POLL-ID% { }\r\n#yop-poll-custom-%POLL-ID% ul {\r\n list-style: none outside none;\r\n margin: 0;\r\n padding: 0;\r\n}\r\n#yop-poll-custom-%POLL-ID% ul li { \r\n padding:0px;\r\n margin:0px; \r\n font-size:14px;\r\n}\r\n#yop-poll-custom-%POLL-ID% ul li input { margin:0px 0px 5px 0px; padding:2%; width:96%; text-indent:2%; font-size:12px; }\r\n\r\n#yop-poll-vote-%POLL-ID% {\r\n\r\n}\r\n.yop-poll-results-bar-%POLL-ID% { background:#f5f5f5; }\r\n.yop-poll-results-bar-%POLL-ID% div { background:#555 !important; }\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-vote-%POLL-ID% button { float:left; }\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% {\r\n float: right;\r\n margin-bottom: 20px;\r\n margin-top: -20px;\r\n width: auto;\r\n}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% a { color:#fff; text-decoration:underline; font-size:12px;}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-back-%POLL-ID% a { color:#fff; text-decoration:underline; font-size:12px;}\r\n#yop-poll-vote-%POLL-ID% div { float:left; width:100%; }\r\n\r\n#yop-poll-container-error-%POLL-ID% {\r\n font-size:12px;\r\n font-style:italic;\r\n color:red;\r\n text-transform:lowercase;\r\n}', 'function stripBorder_%POLL-ID%(object) {\r\n object.each(function() {\r\n if( parseInt(jQuery(this).width() ) > 0) {\r\n jQuery(this).width( parseInt( jQuery(this).width() ) - parseInt(jQuery(this).css(\\".'"'."border-left-width\\".'"'.")) - parseInt(jQuery(this).css(\\".'"'."border-right-width\\".'"'.")) );\r\n }\r\n else {\r\n jQuery(this).css(\\".'"'."border-left-width\\".'"'.", \'0px\');\r\n jQuery(this).css(\\".'"'."border-right-width\\".'"'.", \'0px\');\r\n }\r\n });\r\n}\r\nfunction stripPadding_%POLL-ID%(object) {\r\n object.each(function() { \r\n jQuery(this).width( parseInt( jQuery(this).width() ) - parseInt(jQuery(this).css(\\".'"'."padding-left\\".'"'.")) - parseInt(jQuery(this).css(\\".'"'."padding-left\\".'"'.")) );\r\n });\r\n}\r\n\r\nfunction strip_results_%POLL-ID%() {\r\n stripPadding_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop_poll_li_result-%POLL-ID%\\".'"'.") ); \r\n stripBorder_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-result-bar-%POLL-ID%\\".'"'."));\r\n}\r\n\r\njQuery(document).ready(function(e) {\r\n if(typeof window.strip_results_%POLL-ID% == \'function\') \r\n strip_results_%POLL-ID%();\r\n \r\n if(typeof window.tabulate_answers_%POLL-ID% == \'function\') \r\n tabulate_answers_%POLL-ID%();\r\n \r\n if(typeof window.tabulate_results_%POLL-ID% == \'function\') \r\n tabulate_results_%POLL-ID%();\r\n \r\n});\r\n\r\nfunction equalWidth_%POLL-ID%(obj, cols) {\r\n var widest = 0; \r\n obj.each(function() {\r\n var thisWidth = jQuery(this).width();\r\n if(thisWidth > widest) {\r\n widest = thisWidth; \r\n } \r\n }); \r\n width = parseInt( widest / cols); \r\n obj.width(width); \r\n obj.css(\'float\', \'left\');\r\n}\r\n\r\nfunction tabulate_answers_%POLL-ID%() {\r\n equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-answer-%POLL-ID%\\".'"'."), %ANSWERS-TABULATED-COLS% );\r\n}\r\n\r\nfunction tabulate_results_%POLL-ID%() {\r\n equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-result-%POLL-ID%\\".'"'."), %RESULTS-TABULATED-COLS% );\r\n}', 'other', NOW(), NOW()),
130
+ ('Blue v2', '<div id=\\".'"'."yop-poll-name-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-name\\".'"'.">%POLL-NAME%</div>\r\n<div id=\\".'"'."yop-poll-question-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-question\\".'"'.">%POLL-QUESTION%</div>\r\n<div id=\\".'"'."yop-poll-answers-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-answers\\".'"'.">\r\n <ul>\r\n [ANSWER_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-answer-%POLL-ID%\\".'"'.">\r\n %POLL-ANSWER-CHECK-INPUT% \r\n %POLL-ANSWER-LABEL%\r\n <div class=\\".'"'."yop-poll-results-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-RESULT-LABEL%</div>\r\n <div class=\\".'"'."yop-poll-results-bar-%POLL-ID%\\".'"'.">\r\n %POLL-ANSWER-RESULT-BAR%\r\n </div>\r\n </li>\r\n [/ANSWER_CONTAINER]\r\n [OTHER_ANSWER_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-answer-%POLL-ID%\\".'"'.">\r\n %POLL-OTHER-ANSWER-CHECK-INPUT% \r\n %POLL-OTHER-ANSWER-LABEL% \r\n %POLL-ANSWER-RESULT-LABEL% \r\n %POLL-OTHER-ANSWER-TEXT-INPUT% \r\n <div class=\\".'"'."yop-poll-results-bar-%POLL-ID%\\".'"'.">\r\n %POLL-ANSWER-RESULT-BAR%\r\n </div>\r\n </li>\r\n [/OTHER_ANSWER_CONTAINER]\r\n </ul>\r\n</div>\r\n<div id=\\".'"'."yop-poll-custom-%POLL-ID%\\".'"'.">\r\n <ul>\r\n [CUSTOM_FIELD_CONTAINER]\r\n <li>%POLL-CUSTOM-FIELD-LABEL% %POLL-CUSTOM-FIELD-TEXT-INPUT%</li>\r\n [/CUSTOM_FIELD_CONTAINER]\r\n </ul>\r\n</div> \r\n<div id=\\".'"'."yop-poll-vote-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-footer\\".'"'.">\r\n <div>%POLL-VOTE-BUTTON%</div>\r\n <div id=\\".'"'."yop-poll-results-%POLL-ID%\\".'"'.">%POLL-VIEW-RESULT-LINK%</div>\r\n <div>%POLL-TOTAL-VOTERS%</div>\r\n <div>%POLL-TOTAL-VOTES%</div>\r\n</div>', '<div id=\\".'"'."yop-poll-name-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-name\\".'"'.">%POLL-NAME%</div>\r\n<div id=\\".'"'."yop-poll-question-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-question\\".'"'.">%POLL-QUESTION%</div>\r\n<div id=\\".'"'."yop-poll-answers-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-answers\\".'"'.">\r\n <ul>\r\n [ANSWER_RESULT_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-result-%POLL-ID%\\".'"'.">\r\n <label class=\\".'"'."pds-feedback-label-%POLL-ID%\\".'"'.">\r\n <span class=\\".'"'."pds-answer-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-LABEL%</span>\r\n <span class=\\".'"'."pds-feedback-result-%POLL-ID%\\".'"'.">\r\n <span class=\\".'"'."pds-feedback-per-%POLL-ID%\\".'"'."> %POLL-ANSWER-RESULT-LABEL%</span>\r\n </span>\r\n </label>\r\n <div>\r\n %POLL-ANSWER-RESULT-BAR%\r\n </div>\r\n </li>\r\n [/ANSWER_RESULT_CONTAINER]\r\n </ul>\r\n</div>\r\n<div id=\\".'"'."yop-poll-vote-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-footer\\".'"'.">\r\n <div>%POLL-TOTAL-VOTERS%</div>\r\n <div>%POLL-TOTAL-VOTES%</div>\r\n <div id=\\".'"'."yop-poll-back-%POLL-ID%\\".'"'.">%POLL-BACK-TO-VOTE-LINK%</div>\r\n</div>', 'This poll is about to <br>\r\nstart at %POLL-START-DATE%<br>\r\nand finish at %POLL-END-DATE%<br>', 'This poll is closed!\r\nPoll activity: <br>\r\nstart_date %POLL-START-DATE%<br>\r\nend_date %POLL-END-DATE%<br>\r\n\r\nPoll Results:\r\n<div id=\\".'"'."yop-poll-question-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-question\\".'"'.">%POLL-QUESTION%</div>\r\n<div id=\\".'"'."yop-poll-answers-1\\".'"'." class=\\".'"'."yop-poll-answers\\".'"'.">\r\n <ul>\r\n [ANSWER_RESULT_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-result-%POLL-ID%\\".'"'.">\r\n <label class=\\".'"'."pds-feedback-label\\".'"'.">\r\n <span class=\\".'"'."pds-answer-text\\".'"'.">%POLL-ANSWER-LABEL%</span>\r\n <span class=\\".'"'."pds-feedback-result\\".'"'.">\r\n <span class=\\".'"'."pds-feedback-per\\".'"'."> %POLL-ANSWER-RESULT-LABEL%</span>\r\n </span>\r\n </label>\r\n <span class=\\".'"'."pds-clear\\".'"'." style=\\".'"'."display: block;clear: both;height:1px;line-height:1px;\\".'"'."> </span>\r\n %POLL-ANSWER-RESULT-BAR%\r\n </li>\r\n [/ANSWER_RESULT_CONTAINER]\r\n </ul>\r\n</div>\r\n%POLL-VOTE-BUTTON%', '#yop-poll-container-%POLL-ID% {\r\n width:200px;\r\n background:#fff;\r\n padding:0px;\r\n color:#555;\r\n overflow:hidden;\r\n font-size:12px;\r\n}\r\n#yop-poll-name-%POLL-ID% {\r\n font-weight:bold;\r\n background:#327BD6;\r\n color:#fff;\r\n padding:5px;\r\n text-align:center;\r\n font-size:12px;\r\n}\r\n\r\n#yop-poll-question-%POLL-ID% {\r\n font-size:14px;\r\n margin:5px 0px;\r\n}\r\n#yop-poll-answers-%POLL-ID% { }\r\n#yop-poll-answers-%POLL-ID% ul {\r\n list-style: none outside none;\r\n margin: 0;\r\n padding: 0;\r\n}\r\n#yop-poll-answers-%POLL-ID% ul li { \r\n font-style:normal;\r\n margin:0px 0px 10px 0px;\r\n padding:0px;\r\n font-size:12px;\r\n}\r\n#yop-poll-answers-%POLL-ID% ul li input { \r\n margin:0px; \r\n float:none;\r\n}\r\n#yop-poll-answers-%POLL-ID% ul li label { \r\n margin:0px; \r\n font-style:normal; \r\n font-weight:normal; \r\n font-size:12px; \r\n float:none;\r\n}\r\n.yop-poll-results-%POLL-ID% {\r\n font-size: 12px;\r\n font-style: italic;\r\n font-weight: normal;\r\n margin-left: 15px;\r\n}\r\n\r\n#yop-poll-custom-%POLL-ID% { }\r\n#yop-poll-custom-%POLL-ID% ul {\r\n list-style: none outside none;\r\n margin: 0;\r\n padding: 0;\r\n}\r\n#yop-poll-custom-%POLL-ID% ul li { \r\n padding:0px;\r\n margin:0px; \r\n font-size:14px;\r\n}\r\n#yop-poll-custom-%POLL-ID% ul li input { margin:0px 0px 5px 0px; padding:2%; width:95%; text-indent:2%; font-size:12px; }\r\n\r\n#yop-poll-vote-%POLL-ID% {\r\n\r\n}\r\n.yop-poll-results-bar-%POLL-ID% { background:#f5f5f5; }\r\n.yop-poll-results-bar-%POLL-ID% div { background:#555 !important; }\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-vote-%POLL-ID% button { float:left; }\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% {\r\n float: right;\r\n margin-bottom: 20px;\r\n margin-top: -20px;\r\n width: auto;\r\n}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% a { color:#327BD6; text-decoration:underline; font-size:12px;}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-back-%POLL-ID% a { color:#327BD6; text-decoration:underline; font-size:12px;}\r\n#yop-poll-vote-%POLL-ID% div { float:left; width:100%; }\r\n\r\n#yop-poll-container-error-%POLL-ID% {\r\n font-size:12px;\r\n font-style:italic;\r\n color:red;\r\n text-transform:lowercase;\r\n}', 'function stripBorder_%POLL-ID%(object) {\r\n object.each(function() {\r\n if( parseInt(jQuery(this).width() ) > 0) {\r\n jQuery(this).width( parseInt( jQuery(this).width() ) - parseInt(jQuery(this).css(\\".'"'."border-left-width\\".'"'.")) - parseInt(jQuery(this).css(\\".'"'."border-right-width\\".'"'.")) );\r\n }\r\n else {\r\n jQuery(this).css(\\".'"'."border-left-width\\".'"'.", \'0px\');\r\n jQuery(this).css(\\".'"'."border-right-width\\".'"'.", \'0px\');\r\n }\r\n });\r\n}\r\nfunction stripPadding_%POLL-ID%(object) {\r\n object.each(function() { \r\n jQuery(this).width( parseInt( jQuery(this).width() ) - parseInt(jQuery(this).css(\\".'"'."padding-left\\".'"'.")) - parseInt(jQuery(this).css(\\".'"'."padding-left\\".'"'.")) );\r\n });\r\n}\r\n\r\nfunction strip_results_%POLL-ID%() {\r\n stripPadding_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop_poll_li_result-%POLL-ID%\\".'"'.") ); \r\n stripBorder_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-result-bar-%POLL-ID%\\".'"'."));\r\n}\r\n\r\njQuery(document).ready(function(e) {\r\n if(typeof window.strip_results_%POLL-ID% == \'function\') \r\n strip_results_%POLL-ID%();\r\n \r\n if(typeof window.tabulate_answers_%POLL-ID% == \'function\') \r\n tabulate_answers_%POLL-ID%();\r\n \r\n if(typeof window.tabulate_results_%POLL-ID% == \'function\') \r\n tabulate_results_%POLL-ID%();\r\n \r\n});\r\n\r\nfunction equalWidth_%POLL-ID%(obj, cols) {\r\n var widest = 0; \r\n obj.each(function() {\r\n var thisWidth = jQuery(this).width();\r\n if(thisWidth > widest) {\r\n widest = thisWidth; \r\n } \r\n }); \r\n width = parseInt( widest / cols); \r\n obj.width(width); \r\n obj.css(\'float\', \'left\');\r\n}\r\n\r\nfunction tabulate_answers_%POLL-ID%() {\r\n equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-answer-%POLL-ID%\\".'"'."), %ANSWERS-TABULATED-COLS% );\r\n}\r\n\r\nfunction tabulate_results_%POLL-ID%() {\r\n equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-result-%POLL-ID%\\".'"'."), %RESULTS-TABULATED-COLS% );\r\n}', 'other', NOW(), NOW()),
131
+ ('Blue v3', '<div id=\\".'"'."yop-poll-name-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-name\\".'"'.">%POLL-NAME%</div>\r\n<div id=\\".'"'."yop-poll-question-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-question\\".'"'.">%POLL-QUESTION%</div>\r\n<div id=\\".'"'."yop-poll-answers-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-answers\\".'"'.">\r\n <ul>\r\n [ANSWER_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-answer-%POLL-ID%\\".'"'.">\r\n %POLL-ANSWER-CHECK-INPUT% \r\n %POLL-ANSWER-LABEL%\r\n <div class=\\".'"'."yop-poll-results-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-RESULT-LABEL%</div>\r\n <div class=\\".'"'."yop-poll-results-bar-%POLL-ID%\\".'"'.">\r\n %POLL-ANSWER-RESULT-BAR%\r\n </div>\r\n </li>\r\n [/ANSWER_CONTAINER]\r\n [OTHER_ANSWER_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-answer-%POLL-ID%\\".'"'.">\r\n %POLL-OTHER-ANSWER-CHECK-INPUT% \r\n %POLL-OTHER-ANSWER-LABEL% \r\n %POLL-ANSWER-RESULT-LABEL% \r\n %POLL-OTHER-ANSWER-TEXT-INPUT% \r\n <div class=\\".'"'."yop-poll-results-bar-%POLL-ID%\\".'"'.">\r\n %POLL-ANSWER-RESULT-BAR%\r\n </div>\r\n </li>\r\n [/OTHER_ANSWER_CONTAINER]\r\n </ul>\r\n</div>\r\n<div id=\\".'"'."yop-poll-custom-%POLL-ID%\\".'"'.">\r\n <ul>\r\n [CUSTOM_FIELD_CONTAINER]\r\n <li>%POLL-CUSTOM-FIELD-LABEL% %POLL-CUSTOM-FIELD-TEXT-INPUT%</li>\r\n [/CUSTOM_FIELD_CONTAINER]\r\n </ul>\r\n</div> \r\n<div id=\\".'"'."yop-poll-vote-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-footer\\".'"'.">\r\n <div>%POLL-VOTE-BUTTON%</div>\r\n <div id=\\".'"'."yop-poll-results-%POLL-ID%\\".'"'.">%POLL-VIEW-RESULT-LINK%</div>\r\n <div>%POLL-TOTAL-VOTERS%</div>\r\n <div>%POLL-TOTAL-VOTES%</div>\r\n</div>', '<div id=\\".'"'."yop-poll-name-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-name\\".'"'.">%POLL-NAME%</div>\r\n<div id=\\".'"'."yop-poll-question-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-question\\".'"'.">%POLL-QUESTION%</div>\r\n<div id=\\".'"'."yop-poll-answers-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-answers\\".'"'.">\r\n <ul>\r\n [ANSWER_RESULT_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-result-%POLL-ID%\\".'"'.">\r\n <label class=\\".'"'."pds-feedback-label-%POLL-ID%\\".'"'.">\r\n <span class=\\".'"'."pds-answer-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-LABEL%</span>\r\n <span class=\\".'"'."pds-feedback-result-%POLL-ID%\\".'"'.">\r\n <span class=\\".'"'."pds-feedback-per-%POLL-ID%\\".'"'."> %POLL-ANSWER-RESULT-LABEL%</span>\r\n </span>\r\n </label>\r\n <div>\r\n %POLL-ANSWER-RESULT-BAR%\r\n </div>\r\n </li>\r\n [/ANSWER_RESULT_CONTAINER]\r\n </ul>\r\n</div>\r\n<div id=\\".'"'."yop-poll-vote-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-footer\\".'"'.">\r\n <div>%POLL-TOTAL-VOTERS%</div>\r\n <div>%POLL-TOTAL-VOTES%</div>\r\n <div id=\\".'"'."yop-poll-back-%POLL-ID%\\".'"'.">%POLL-BACK-TO-VOTE-LINK%</div>\r\n</div>', 'This poll is about to <br>\r\nstart at %POLL-START-DATE%<br>\r\nand finish at %POLL-END-DATE%<br>', 'This poll is closed!\r\nPoll activity: <br>\r\nstart_date %POLL-START-DATE%<br>\r\nend_date %POLL-END-DATE%<br>\r\n\r\nPoll Results:\r\n<div id=\\".'"'."yop-poll-question-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-question\\".'"'.">%POLL-QUESTION%</div>\r\n<div id=\\".'"'."yop-poll-answers-1\\".'"'." class=\\".'"'."yop-poll-answers\\".'"'.">\r\n <ul>\r\n [ANSWER_RESULT_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-result-%POLL-ID%\\".'"'.">\r\n <label class=\\".'"'."pds-feedback-label\\".'"'.">\r\n <span class=\\".'"'."pds-answer-text\\".'"'.">%POLL-ANSWER-LABEL%</span>\r\n <span class=\\".'"'."pds-feedback-result\\".'"'.">\r\n <span class=\\".'"'."pds-feedback-per\\".'"'."> %POLL-ANSWER-RESULT-LABEL%</span>\r\n </span>\r\n </label>\r\n <span class=\\".'"'."pds-clear\\".'"'." style=\\".'"'."display: block;clear: both;height:1px;line-height:1px;\\".'"'."> </span>\r\n %POLL-ANSWER-RESULT-BAR%\r\n </li>\r\n [/ANSWER_RESULT_CONTAINER]\r\n </ul>\r\n</div>\r\n%POLL-VOTE-BUTTON%', '#yop-poll-container-%POLL-ID% {\r\n width:200px;\r\n background:#fff;\r\n padding:10px;\r\n color:#555;\r\n overflow:hidden;\r\n font-size:12px;\r\n border:5px solid #327BD6;\r\n}\r\n#yop-poll-name-%POLL-ID% {\r\n font-size:14px;\r\n font-weight:bold;\r\n}\r\n\r\n#yop-poll-question-%POLL-ID% {\r\n font-size:14px;\r\n margin:5px 0px;\r\n}\r\n#yop-poll-answers-%POLL-ID% { }\r\n#yop-poll-answers-%POLL-ID% ul {\r\n list-style: none outside none;\r\n margin: 0;\r\n padding: 0;\r\n}\r\n#yop-poll-answers-%POLL-ID% ul li { \r\n font-style:normal;\r\n margin:0px 0px 10px 0px;\r\n padding:0px;\r\n font-size:12px;\r\n}\r\n#yop-poll-answers-%POLL-ID% ul li input { \r\n margin:0px; \r\n float:none;\r\n}\r\n#yop-poll-answers-%POLL-ID% ul li label { \r\n margin:0px; \r\n font-style:normal; \r\n font-weight:normal; \r\n font-size:12px; \r\n float:none;\r\n}\r\n.yop-poll-results-%POLL-ID% {\r\n font-size: 12px;\r\n font-style: italic;\r\n font-weight: normal;\r\n margin-left: 15px;\r\n}\r\n\r\n#yop-poll-custom-%POLL-ID% { }\r\n#yop-poll-custom-%POLL-ID% ul {\r\n list-style: none outside none;\r\n margin: 0;\r\n padding: 0;\r\n}\r\n#yop-poll-custom-%POLL-ID% ul li { \r\n padding:0px;\r\n margin:0px; \r\n font-size:14px;\r\n}\r\n#yop-poll-custom-%POLL-ID% ul li input { margin:0px 0px 5px 0px; padding:2%; width:96%; text-indent:2%; font-size:12px; }\r\n\r\n#yop-poll-vote-%POLL-ID% {\r\n\r\n}\r\n.yop-poll-results-bar-%POLL-ID% { background:#f5f5f5; }\r\n.yop-poll-results-bar-%POLL-ID% div { background:#555 !important; }\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-vote-%POLL-ID% button { float:left; }\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% {\r\n float: right;\r\n margin-bottom: 20px;\r\n margin-top: -20px;\r\n width: auto;\r\n}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% a { color:#327BD6; text-decoration:underline; font-size:12px;}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-back-%POLL-ID% a { color:#327BD6; text-decoration:underline; font-size:12px;}\r\n#yop-poll-vote-%POLL-ID% div { float:left; width:100%; }\r\n\r\n#yop-poll-container-error-%POLL-ID% {\r\n font-size:12px;\r\n font-style:italic;\r\n color:red;\r\n text-transform:lowercase;\r\n}', 'function stripBorder_%POLL-ID%(object) {\r\n object.each(function() {\r\n if( parseInt(jQuery(this).width() ) > 0) {\r\n jQuery(this).width( parseInt( jQuery(this).width() ) - parseInt(jQuery(this).css(\\".'"'."border-left-width\\".'"'.")) - parseInt(jQuery(this).css(\\".'"'."border-right-width\\".'"'.")) );\r\n }\r\n else {\r\n jQuery(this).css(\\".'"'."border-left-width\\".'"'.", \'0px\');\r\n jQuery(this).css(\\".'"'."border-right-width\\".'"'.", \'0px\');\r\n }\r\n });\r\n}\r\nfunction stripPadding_%POLL-ID%(object) {\r\n object.each(function() { \r\n jQuery(this).width( parseInt( jQuery(this).width() ) - parseInt(jQuery(this).css(\\".'"'."padding-left\\".'"'.")) - parseInt(jQuery(this).css(\\".'"'."padding-left\\".'"'.")) );\r\n });\r\n}\r\n\r\nfunction strip_results_%POLL-ID%() {\r\n stripPadding_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop_poll_li_result-%POLL-ID%\\".'"'.") ); \r\n stripBorder_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-result-bar-%POLL-ID%\\".'"'."));\r\n}\r\n\r\njQuery(document).ready(function(e) {\r\n if(typeof window.strip_results_%POLL-ID% == \'function\') \r\n strip_results_%POLL-ID%();\r\n \r\n if(typeof window.tabulate_answers_%POLL-ID% == \'function\') \r\n tabulate_answers_%POLL-ID%();\r\n \r\n if(typeof window.tabulate_results_%POLL-ID% == \'function\') \r\n tabulate_results_%POLL-ID%();\r\n \r\n});\r\n\r\nfunction equalWidth_%POLL-ID%(obj, cols) {\r\n var widest = 0; \r\n obj.each(function() {\r\n var thisWidth = jQuery(this).width();\r\n if(thisWidth > widest) {\r\n widest = thisWidth; \r\n } \r\n }); \r\n width = parseInt( widest / cols); \r\n obj.width(width); \r\n obj.css(\'float\', \'left\');\r\n}\r\n\r\nfunction tabulate_answers_%POLL-ID%() {\r\n equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-answer-%POLL-ID%\\".'"'."), %ANSWERS-TABULATED-COLS% );\r\n}\r\n\r\nfunction tabulate_results_%POLL-ID%() {\r\n equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-result-%POLL-ID%\\".'"'."), %RESULTS-TABULATED-COLS% );\r\n}', 'other', NOW(), NOW()),
132
+ ('Red v1', '<div id=\\".'"'."yop-poll-name-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-name\\".'"'.">%POLL-NAME%</div>\r\n<div id=\\".'"'."yop-poll-question-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-question\\".'"'.">%POLL-QUESTION%</div>\r\n<div id=\\".'"'."yop-poll-answers-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-answers\\".'"'.">\r\n <ul>\r\n [ANSWER_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-answer-%POLL-ID%\\".'"'.">\r\n %POLL-ANSWER-CHECK-INPUT% \r\n %POLL-ANSWER-LABEL%\r\n <div class=\\".'"'."yop-poll-results-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-RESULT-LABEL%</div>\r\n <div class=\\".'"'."yop-poll-results-bar-%POLL-ID%\\".'"'.">\r\n %POLL-ANSWER-RESULT-BAR%\r\n </div>\r\n </li>\r\n [/ANSWER_CONTAINER]\r\n [OTHER_ANSWER_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-answer-%POLL-ID%\\".'"'.">\r\n %POLL-OTHER-ANSWER-CHECK-INPUT% \r\n %POLL-OTHER-ANSWER-LABEL% \r\n %POLL-ANSWER-RESULT-LABEL% \r\n %POLL-OTHER-ANSWER-TEXT-INPUT% \r\n <div class=\\".'"'."yop-poll-results-bar-%POLL-ID%\\".'"'.">\r\n %POLL-ANSWER-RESULT-BAR%\r\n </div>\r\n </li>\r\n [/OTHER_ANSWER_CONTAINER]\r\n </ul>\r\n</div>\r\n<div id=\\".'"'."yop-poll-custom-%POLL-ID%\\".'"'.">\r\n <ul>\r\n [CUSTOM_FIELD_CONTAINER]\r\n <li>%POLL-CUSTOM-FIELD-LABEL% %POLL-CUSTOM-FIELD-TEXT-INPUT%</li>\r\n [/CUSTOM_FIELD_CONTAINER]\r\n </ul>\r\n</div> \r\n<div id=\\".'"'."yop-poll-vote-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-footer\\".'"'.">\r\n <div>%POLL-VOTE-BUTTON%</div>\r\n <div id=\\".'"'."yop-poll-results-%POLL-ID%\\".'"'.">%POLL-VIEW-RESULT-LINK%</div>\r\n <div>%POLL-TOTAL-VOTERS%</div>\r\n <div>%POLL-TOTAL-VOTES%</div>\r\n</div>', '<div id=\\".'"'."yop-poll-name-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-name\\".'"'.">%POLL-NAME%</div>\r\n<div id=\\".'"'."yop-poll-question-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-question\\".'"'.">%POLL-QUESTION%</div>\r\n<div id=\\".'"'."yop-poll-answers-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-answers\\".'"'.">\r\n <ul>\r\n [ANSWER_RESULT_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-result-%POLL-ID%\\".'"'.">\r\n <label class=\\".'"'."pds-feedback-label-%POLL-ID%\\".'"'.">\r\n <span class=\\".'"'."pds-answer-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-LABEL%</span>\r\n <span class=\\".'"'."pds-feedback-result-%POLL-ID%\\".'"'.">\r\n <span class=\\".'"'."pds-feedback-per-%POLL-ID%\\".'"'."> %POLL-ANSWER-RESULT-LABEL%</span>\r\n </span>\r\n </label>\r\n <div>\r\n %POLL-ANSWER-RESULT-BAR%\r\n </div>\r\n </li>\r\n [/ANSWER_RESULT_CONTAINER]\r\n </ul>\r\n</div>\r\n<div id=\\".'"'."yop-poll-vote-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-footer\\".'"'.">\r\n <div>%POLL-TOTAL-VOTERS%</div>\r\n <div>%POLL-TOTAL-VOTES%</div>\r\n <div id=\\".'"'."yop-poll-back-%POLL-ID%\\".'"'.">%POLL-BACK-TO-VOTE-LINK%</div>\r\n</div>', 'This poll is about to <br>\r\nstart at %POLL-START-DATE%<br>\r\nand finish at %POLL-END-DATE%<br>', 'This poll is closed!\r\nPoll activity: <br>\r\nstart_date %POLL-START-DATE%<br>\r\nend_date %POLL-END-DATE%<br>\r\n\r\nPoll Results:\r\n<div id=\\".'"'."yop-poll-question-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-question\\".'"'.">%POLL-QUESTION%</div>\r\n<div id=\\".'"'."yop-poll-answers-1\\".'"'." class=\\".'"'."yop-poll-answers\\".'"'.">\r\n <ul>\r\n [ANSWER_RESULT_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-result-%POLL-ID%\\".'"'.">\r\n <label class=\\".'"'."pds-feedback-label\\".'"'.">\r\n <span class=\\".'"'."pds-answer-text\\".'"'.">%POLL-ANSWER-LABEL%</span>\r\n <span class=\\".'"'."pds-feedback-result\\".'"'.">\r\n <span class=\\".'"'."pds-feedback-per\\".'"'."> %POLL-ANSWER-RESULT-LABEL%</span>\r\n </span>\r\n </label>\r\n <span class=\\".'"'."pds-clear\\".'"'." style=\\".'"'."display: block;clear: both;height:1px;line-height:1px;\\".'"'."> </span>\r\n %POLL-ANSWER-RESULT-BAR%\r\n </li>\r\n [/ANSWER_RESULT_CONTAINER]\r\n </ul>\r\n</div>\r\n%POLL-VOTE-BUTTON%', '#yop-poll-container-%POLL-ID% {\r\n width:200px;\r\n background:#B70004;\r\n padding:10px;\r\n color:#fff;\r\n overflow:hidden;\r\n font-size:12px;\r\n}\r\n#yop-poll-name-%POLL-ID% {\r\n font-size:14px;\r\n font-weight:bold;\r\n}\r\n\r\n#yop-poll-question-%POLL-ID% {\r\n font-size:14px;\r\n margin:5px 0px;\r\n}\r\n#yop-poll-answers-%POLL-ID% { }\r\n#yop-poll-answers-%POLL-ID% ul {\r\n list-style: none outside none;\r\n margin: 0;\r\n padding: 0;\r\n}\r\n#yop-poll-answers-%POLL-ID% ul li { \r\n font-style:normal;\r\n margin:0px 0px 10px 0px;\r\n padding:0px;\r\n font-size:12px;\r\n}\r\n#yop-poll-answers-%POLL-ID% ul li input { \r\n margin:0px; \r\n float:none;\r\n}\r\n#yop-poll-answers-%POLL-ID% ul li label { \r\n margin:0px; \r\n font-style:normal; \r\n font-weight:normal; \r\n font-size:12px; \r\n float:none;\r\n}\r\n.yop-poll-results-%POLL-ID% {\r\n font-size: 12px;\r\n font-style: italic;\r\n font-weight: normal;\r\n margin-left: 15px;\r\n}\r\n\r\n#yop-poll-custom-%POLL-ID% { }\r\n#yop-poll-custom-%POLL-ID% ul {\r\n list-style: none outside none;\r\n margin: 0;\r\n padding: 0;\r\n}\r\n#yop-poll-custom-%POLL-ID% ul li { \r\n padding:0px;\r\n margin:0px; \r\n font-size:14px;\r\n}\r\n#yop-poll-custom-%POLL-ID% ul li input { margin:0px 0px 5px 0px; padding:2%; width:96%; text-indent:2%; font-size:12px; }\r\n\r\n#yop-poll-vote-%POLL-ID% {\r\n\r\n}\r\n.yop-poll-results-bar-%POLL-ID% { background:#f5f5f5; }\r\n.yop-poll-results-bar-%POLL-ID% div { background:#555 !important; }\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-vote-%POLL-ID% button { float:left; }\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% {\r\n float: right;\r\n margin-bottom: 20px;\r\n margin-top: -20px;\r\n width: auto;\r\n}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% a { color:#fff; text-decoration:underline; font-size:12px;}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-back-%POLL-ID% a { color:#fff; text-decoration:underline; font-size:12px;}\r\n#yop-poll-vote-%POLL-ID% div { float:left; width:100%; }\r\n\r\n#yop-poll-container-error-%POLL-ID% {\r\n font-size:12px;\r\n font-style:italic;\r\n color:red;\r\n text-transform:lowercase;\r\n}', 'function stripBorder_%POLL-ID%(object) {\r\n object.each(function() {\r\n if( parseInt(jQuery(this).width() ) > 0) {\r\n jQuery(this).width( parseInt( jQuery(this).width() ) - parseInt(jQuery(this).css(\\".'"'."border-left-width\\".'"'.")) - parseInt(jQuery(this).css(\\".'"'."border-right-width\\".'"'.")) );\r\n }\r\n else {\r\n jQuery(this).css(\\".'"'."border-left-width\\".'"'.", \'0px\');\r\n jQuery(this).css(\\".'"'."border-right-width\\".'"'.", \'0px\');\r\n }\r\n });\r\n}\r\nfunction stripPadding_%POLL-ID%(object) {\r\n object.each(function() { \r\n jQuery(this).width( parseInt( jQuery(this).width() ) - parseInt(jQuery(this).css(\\".'"'."padding-left\\".'"'.")) - parseInt(jQuery(this).css(\\".'"'."padding-left\\".'"'.")) );\r\n });\r\n}\r\n\r\nfunction strip_results_%POLL-ID%() {\r\n stripPadding_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop_poll_li_result-%POLL-ID%\\".'"'.") ); \r\n stripBorder_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-result-bar-%POLL-ID%\\".'"'."));\r\n}\r\n\r\njQuery(document).ready(function(e) {\r\n if(typeof window.strip_results_%POLL-ID% == \'function\') \r\n strip_results_%POLL-ID%();\r\n \r\n if(typeof window.tabulate_answers_%POLL-ID% == \'function\') \r\n tabulate_answers_%POLL-ID%();\r\n \r\n if(typeof window.tabulate_results_%POLL-ID% == \'function\') \r\n tabulate_results_%POLL-ID%();\r\n \r\n});\r\n\r\nfunction equalWidth_%POLL-ID%(obj, cols) {\r\n var widest = 0; \r\n obj.each(function() {\r\n var thisWidth = jQuery(this).width();\r\n if(thisWidth > widest) {\r\n widest = thisWidth; \r\n } \r\n }); \r\n width = parseInt( widest / cols); \r\n obj.width(width); \r\n obj.css(\'float\', \'left\');\r\n}\r\n\r\nfunction tabulate_answers_%POLL-ID%() {\r\n equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-answer-%POLL-ID%\\".'"'."), %ANSWERS-TABULATED-COLS% );\r\n}\r\n\r\nfunction tabulate_results_%POLL-ID%() {\r\n equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-result-%POLL-ID%\\".'"'."), %RESULTS-TABULATED-COLS% );\r\n}', 'other', NOW(), NOW()),
133
+ ('Green v1', '<div id=\\".'"'."yop-poll-name-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-name\\".'"'.">%POLL-NAME%</div>\r\n<div id=\\".'"'."yop-poll-question-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-question\\".'"'.">%POLL-QUESTION%</div>\r\n<div id=\\".'"'."yop-poll-answers-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-answers\\".'"'.">\r\n <ul>\r\n [ANSWER_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-answer-%POLL-ID%\\".'"'.">\r\n %POLL-ANSWER-CHECK-INPUT% \r\n %POLL-ANSWER-LABEL%\r\n <div class=\\".'"'."yop-poll-results-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-RESULT-LABEL%</div>\r\n <div class=\\".'"'."yop-poll-results-bar-%POLL-ID%\\".'"'.">\r\n %POLL-ANSWER-RESULT-BAR%\r\n </div>\r\n </li>\r\n [/ANSWER_CONTAINER]\r\n [OTHER_ANSWER_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-answer-%POLL-ID%\\".'"'.">\r\n %POLL-OTHER-ANSWER-CHECK-INPUT% \r\n %POLL-OTHER-ANSWER-LABEL% \r\n %POLL-ANSWER-RESULT-LABEL% \r\n %POLL-OTHER-ANSWER-TEXT-INPUT% \r\n <div class=\\".'"'."yop-poll-results-bar-%POLL-ID%\\".'"'.">\r\n %POLL-ANSWER-RESULT-BAR%\r\n </div>\r\n </li>\r\n [/OTHER_ANSWER_CONTAINER]\r\n </ul>\r\n</div>\r\n<div id=\\".'"'."yop-poll-custom-%POLL-ID%\\".'"'.">\r\n <ul>\r\n [CUSTOM_FIELD_CONTAINER]\r\n <li>%POLL-CUSTOM-FIELD-LABEL% %POLL-CUSTOM-FIELD-TEXT-INPUT%</li>\r\n [/CUSTOM_FIELD_CONTAINER]\r\n </ul>\r\n</div> \r\n<div id=\\".'"'."yop-poll-vote-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-footer\\".'"'.">\r\n <div>%POLL-VOTE-BUTTON%</div>\r\n <div id=\\".'"'."yop-poll-results-%POLL-ID%\\".'"'.">%POLL-VIEW-RESULT-LINK%</div>\r\n <div>%POLL-TOTAL-VOTERS%</div>\r\n <div>%POLL-TOTAL-VOTES%</div>\r\n</div>', '<div id=\\".'"'."yop-poll-name-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-name\\".'"'.">%POLL-NAME%</div>\r\n<div id=\\".'"'."yop-poll-question-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-question\\".'"'.">%POLL-QUESTION%</div>\r\n<div id=\\".'"'."yop-poll-answers-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-answers\\".'"'.">\r\n <ul>\r\n [ANSWER_RESULT_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-result-%POLL-ID%\\".'"'.">\r\n <label class=\\".'"'."pds-feedback-label-%POLL-ID%\\".'"'.">\r\n <span class=\\".'"'."pds-answer-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-LABEL%</span>\r\n <span class=\\".'"'."pds-feedback-result-%POLL-ID%\\".'"'.">\r\n <span class=\\".'"'."pds-feedback-per-%POLL-ID%\\".'"'."> %POLL-ANSWER-RESULT-LABEL%</span>\r\n </span>\r\n </label>\r\n <div>\r\n %POLL-ANSWER-RESULT-BAR%\r\n </div>\r\n </li>\r\n [/ANSWER_RESULT_CONTAINER]\r\n </ul>\r\n</div>\r\n<div id=\\".'"'."yop-poll-vote-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-footer\\".'"'.">\r\n <div>%POLL-TOTAL-VOTERS%</div>\r\n <div>%POLL-TOTAL-VOTES%</div>\r\n <div id=\\".'"'."yop-poll-back-%POLL-ID%\\".'"'.">%POLL-BACK-TO-VOTE-LINK%</div>\r\n</div>', 'This poll is about to <br>\r\nstart at %POLL-START-DATE%<br>\r\nand finish at %POLL-END-DATE%<br>', 'This poll is closed!\r\nPoll activity: <br>\r\nstart_date %POLL-START-DATE%<br>\r\nend_date %POLL-END-DATE%<br>\r\n\r\nPoll Results:\r\n<div id=\\".'"'."yop-poll-question-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-question\\".'"'.">%POLL-QUESTION%</div>\r\n<div id=\\".'"'."yop-poll-answers-1\\".'"'." class=\\".'"'."yop-poll-answers\\".'"'.">\r\n <ul>\r\n [ANSWER_RESULT_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-result-%POLL-ID%\\".'"'.">\r\n <label class=\\".'"'."pds-feedback-label\\".'"'.">\r\n <span class=\\".'"'."pds-answer-text\\".'"'.">%POLL-ANSWER-LABEL%</span>\r\n <span class=\\".'"'."pds-feedback-result\\".'"'.">\r\n <span class=\\".'"'."pds-feedback-per\\".'"'."> %POLL-ANSWER-RESULT-LABEL%</span>\r\n </span>\r\n </label>\r\n <span class=\\".'"'."pds-clear\\".'"'." style=\\".'"'."display: block;clear: both;height:1px;line-height:1px;\\".'"'."> </span>\r\n %POLL-ANSWER-RESULT-BAR%\r\n </li>\r\n [/ANSWER_RESULT_CONTAINER]\r\n </ul>\r\n</div>\r\n%POLL-VOTE-BUTTON%', '#yop-poll-container-%POLL-ID% {\r\n width:200px;\r\n background:#3F8B43;\r\n padding:10px;\r\n color:#fff;\r\n overflow:hidden;\r\n font-size:12px;\r\n}\r\n#yop-poll-name-%POLL-ID% {\r\n font-size:14px;\r\n font-weight:bold;\r\n}\r\n\r\n#yop-poll-question-%POLL-ID% {\r\n font-size:14px;\r\n margin:5px 0px;\r\n}\r\n#yop-poll-answers-%POLL-ID% { }\r\n#yop-poll-answers-%POLL-ID% ul {\r\n list-style: none outside none;\r\n margin: 0;\r\n padding: 0;\r\n}\r\n#yop-poll-answers-%POLL-ID% ul li { \r\n font-style:normal;\r\n margin:0px 0px 10px 0px;\r\n padding:0px;\r\n font-size:12px;\r\n}\r\n#yop-poll-answers-%POLL-ID% ul li input { \r\n margin:0px; \r\n float:none;\r\n}\r\n#yop-poll-answers-%POLL-ID% ul li label { \r\n margin:0px; \r\n font-style:normal; \r\n font-weight:normal; \r\n font-size:12px; \r\n float:none;\r\n}\r\n.yop-poll-results-%POLL-ID% {\r\n font-size: 12px;\r\n font-style: italic;\r\n font-weight: normal;\r\n margin-left: 15px;\r\n}\r\n\r\n#yop-poll-custom-%POLL-ID% { }\r\n#yop-poll-custom-%POLL-ID% ul {\r\n list-style: none outside none;\r\n margin: 0;\r\n padding: 0;\r\n}\r\n#yop-poll-custom-%POLL-ID% ul li { \r\n padding:0px;\r\n margin:0px; \r\n font-size:14px;\r\n}\r\n#yop-poll-custom-%POLL-ID% ul li input { margin:0px 0px 5px 0px; padding:2%; width:96%; text-indent:2%; font-size:12px; }\r\n\r\n#yop-poll-vote-%POLL-ID% {\r\n\r\n}\r\n.yop-poll-results-bar-%POLL-ID% { background:#f5f5f5; }\r\n.yop-poll-results-bar-%POLL-ID% div { background:#555 !important; }\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-vote-%POLL-ID% button { float:left; }\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% {\r\n float: right;\r\n margin-bottom: 20px;\r\n margin-top: -20px;\r\n width: auto;\r\n}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% a { color:#fff; text-decoration:underline; font-size:12px;}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-back-%POLL-ID% a { color:#fff; text-decoration:underline; font-size:12px;}\r\n#yop-poll-vote-%POLL-ID% div { float:left; width:100%; }\r\n\r\n#yop-poll-container-error-%POLL-ID% {\r\n font-size:12px;\r\n font-style:italic;\r\n color:red;\r\n text-transform:lowercase;\r\n}', 'function stripBorder_%POLL-ID%(object) {\r\n object.each(function() {\r\n if( parseInt(jQuery(this).width() ) > 0) {\r\n jQuery(this).width( parseInt( jQuery(this).width() ) - parseInt(jQuery(this).css(\\".'"'."border-left-width\\".'"'.")) - parseInt(jQuery(this).css(\\".'"'."border-right-width\\".'"'.")) );\r\n }\r\n else {\r\n jQuery(this).css(\\".'"'."border-left-width\\".'"'.", \'0px\');\r\n jQuery(this).css(\\".'"'."border-right-width\\".'"'.", \'0px\');\r\n }\r\n });\r\n}\r\nfunction stripPadding_%POLL-ID%(object) {\r\n object.each(function() { \r\n jQuery(this).width( parseInt( jQuery(this).width() ) - parseInt(jQuery(this).css(\\".'"'."padding-left\\".'"'.")) - parseInt(jQuery(this).css(\\".'"'."padding-left\\".'"'.")) );\r\n });\r\n}\r\n\r\nfunction strip_results_%POLL-ID%() {\r\n stripPadding_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop_poll_li_result-%POLL-ID%\\".'"'.") ); \r\n stripBorder_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-result-bar-%POLL-ID%\\".'"'."));\r\n}\r\n\r\njQuery(document).ready(function(e) {\r\n if(typeof window.strip_results_%POLL-ID% == \'function\') \r\n strip_results_%POLL-ID%();\r\n \r\n if(typeof window.tabulate_answers_%POLL-ID% == \'function\') \r\n tabulate_answers_%POLL-ID%();\r\n \r\n if(typeof window.tabulate_results_%POLL-ID% == \'function\') \r\n tabulate_results_%POLL-ID%();\r\n \r\n});\r\n\r\nfunction equalWidth_%POLL-ID%(obj, cols) {\r\n var widest = 0; \r\n obj.each(function() {\r\n var thisWidth = jQuery(this).width();\r\n if(thisWidth > widest) {\r\n widest = thisWidth; \r\n } \r\n }); \r\n width = parseInt( widest / cols); \r\n obj.width(width); \r\n obj.css(\'float\', \'left\');\r\n}\r\n\r\nfunction tabulate_answers_%POLL-ID%() {\r\n equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-answer-%POLL-ID%\\".'"'."), %ANSWERS-TABULATED-COLS% );\r\n}\r\n\r\nfunction tabulate_results_%POLL-ID%() {\r\n equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-result-%POLL-ID%\\".'"'."), %RESULTS-TABULATED-COLS% );\r\n}', 'other', NOW(), NOW()),
134
+ ('Red v2', '<div id=".'"'."yop-poll-name-%POLL-ID%".'"'." class=".'"'."yop-poll-name".'"'.">%POLL-NAME%</div>\r\n<div id=".'"'."yop-poll-question-%POLL-ID%".'"'." class=".'"'."yop-poll-question".'"'.">%POLL-QUESTION%</div>\r\n<div id=".'"'."yop-poll-answers-%POLL-ID%".'"'." class=".'"'."yop-poll-answers".'"'.">\r\n <ul>\r\n [ANSWER_CONTAINER]\r\n <li class=".'"'."yop-poll-li-answer-%POLL-ID%".'"'.">\r\n %POLL-ANSWER-CHECK-INPUT% \r\n %POLL-ANSWER-LABEL%\r\n <div class=".'"'."yop-poll-results-text-%POLL-ID%".'"'.">%POLL-ANSWER-RESULT-LABEL%</div>\r\n <div class=".'"'."yop-poll-results-bar-%POLL-ID%".'"'.">\r\n %POLL-ANSWER-RESULT-BAR%\r\n </div>\r\n </li>\r\n [/ANSWER_CONTAINER]\r\n [OTHER_ANSWER_CONTAINER]\r\n <li class=".'"'."yop-poll-li-answer-%POLL-ID%".'"'.">\r\n %POLL-OTHER-ANSWER-CHECK-INPUT% \r\n %POLL-OTHER-ANSWER-LABEL% \r\n %POLL-ANSWER-RESULT-LABEL% \r\n %POLL-OTHER-ANSWER-TEXT-INPUT% \r\n <div class=".'"'."yop-poll-results-bar-%POLL-ID%".'"'.">\r\n %POLL-ANSWER-RESULT-BAR%\r\n </div>\r\n </li>\r\n [/OTHER_ANSWER_CONTAINER]\r\n </ul>\r\n</div>\r\n<div id=".'"'."yop-poll-custom-%POLL-ID%".'"'.">\r\n <ul>\r\n [CUSTOM_FIELD_CONTAINER]\r\n <li>%POLL-CUSTOM-FIELD-LABEL% %POLL-CUSTOM-FIELD-TEXT-INPUT%</li>\r\n [/CUSTOM_FIELD_CONTAINER]\r\n </ul>\r\n</div> \r\n<div id=".'"'."yop-poll-vote-%POLL-ID%".'"'." class=".'"'."yop-poll-footer".'"'.">\r\n <div>%POLL-VOTE-BUTTON%</div>\r\n <div id=".'"'."yop-poll-results-%POLL-ID%".'"'.">%POLL-VIEW-RESULT-LINK%</div>\r\n <div>%POLL-TOTAL-VOTERS%</div>\r\n <div>%POLL-TOTAL-VOTES%</div>\r\n</div>', '<div id=".'"'."yop-poll-name-%POLL-ID%".'"'." class=".'"'."yop-poll-name".'"'.">%POLL-NAME%</div>\r\n<div id=".'"'."yop-poll-question-%POLL-ID%".'"'." class=".'"'."yop-poll-question".'"'.">%POLL-QUESTION%</div>\r\n<div id=".'"'."yop-poll-answers-%POLL-ID%".'"'." class=".'"'."yop-poll-answers".'"'.">\r\n <ul>\r\n [ANSWER_RESULT_CONTAINER]\r\n <li class=".'"'."yop-poll-li-result-%POLL-ID%".'"'.">\r\n <label class=".'"'."pds-feedback-label-%POLL-ID%".'"'.">\r\n <span class=".'"'."pds-answer-text-%POLL-ID%".'"'.">%POLL-ANSWER-LABEL%</span>\r\n <span class=".'"'."pds-feedback-result-%POLL-ID%".'"'.">\r\n <span class=".'"'."pds-feedback-per-%POLL-ID%".'"'."> %POLL-ANSWER-RESULT-LABEL%</span>\r\n </span>\r\n </label>\r\n <div>\r\n %POLL-ANSWER-RESULT-BAR%\r\n </div>\r\n </li>\r\n [/ANSWER_RESULT_CONTAINER]\r\n </ul>\r\n</div>\r\n<div id=".'"'."yop-poll-vote-%POLL-ID%".'"'." class=".'"'."yop-poll-footer".'"'.">\r\n <div>%POLL-TOTAL-VOTERS%</div>\r\n <div>%POLL-TOTAL-VOTES%</div>\r\n <div id=".'"'."yop-poll-back-%POLL-ID%".'"'.">%POLL-BACK-TO-VOTE-LINK%</div>\r\n</div>', 'This poll is about to <br>\r\nstart at %POLL-START-DATE%<br>\r\nand finish at %POLL-END-DATE%<br>', 'This poll is closed!\r\nPoll activity: <br>\r\nstart_date %POLL-START-DATE%<br>\r\nend_date %POLL-END-DATE%<br>\r\n\r\nPoll Results:\r\n<div id=".'"'."yop-poll-question-%POLL-ID%".'"'." class=".'"'."yop-poll-question".'"'.">%POLL-QUESTION%</div>\r\n<div id=".'"'."yop-poll-answers-1".'"'." class=".'"'."yop-poll-answers".'"'.">\r\n <ul>\r\n [ANSWER_RESULT_CONTAINER]\r\n <li class=".'"'."yop-poll-li-result-%POLL-ID%".'"'.">\r\n <label class=".'"'."pds-feedback-label".'"'.">\r\n <span class=".'"'."pds-answer-text".'"'.">%POLL-ANSWER-LABEL%</span>\r\n <span class=".'"'."pds-feedback-result".'"'.">\r\n <span class=".'"'."pds-feedback-per".'"'."> %POLL-ANSWER-RESULT-LABEL%</span>\r\n </span>\r\n </label>\r\n <span class=".'"'."pds-clear".'"'." style=".'"'."display: block;clear: both;height:1px;line-height:1px;".'"'."> </span>\r\n %POLL-ANSWER-RESULT-BAR%\r\n </li>\r\n [/ANSWER_RESULT_CONTAINER]\r\n </ul>\r\n</div>\r\n%POLL-VOTE-BUTTON%', '#yop-poll-container-%POLL-ID% {\r\n width:200px;\r\n background:#fff;\r\n padding:0px;\r\n color:#555;\r\n overflow:hidden;\r\n font-size:12px;\r\n}\r\n#yop-poll-name-%POLL-ID% {\r\n font-weight:bold;\r\n background:#B70004;\r\n color:#fff;\r\n padding:5px;\r\n text-align:center;\r\n font-size:12px;\r\n}\r\n\r\n#yop-poll-question-%POLL-ID% {\r\n font-size:14px;\r\n margin:5px 0px;\r\n}\r\n#yop-poll-answers-%POLL-ID% { }\r\n#yop-poll-answers-%POLL-ID% ul {\r\n list-style: none outside none;\r\n margin: 0;\r\n padding: 0;\r\n}\r\n#yop-poll-answers-%POLL-ID% ul li { \r\n font-style:normal;\r\n margin:0px 0px 10px 0px;\r\n padding:0px;\r\n font-size:12px;\r\n}\r\n#yop-poll-answers-%POLL-ID% ul li input { \r\n margin:0px; \r\n float:none;\r\n}\r\n#yop-poll-answers-%POLL-ID% ul li label { \r\n margin:0px; \r\n font-style:normal; \r\n font-weight:normal; \r\n font-size:12px; \r\n float:none;\r\n}\r\n.yop-poll-results-%POLL-ID% {\r\n font-size: 12px;\r\n font-style: italic;\r\n font-weight: normal;\r\n margin-left: 15px;\r\n}\r\n\r\n#yop-poll-custom-%POLL-ID% { }\r\n#yop-poll-custom-%POLL-ID% ul {\r\n list-style: none outside none;\r\n margin: 0;\r\n padding: 0;\r\n}\r\n#yop-poll-custom-%POLL-ID% ul li { \r\n padding:0px;\r\n margin:0px; \r\n font-size:14px;\r\n}\r\n#yop-poll-custom-%POLL-ID% ul li input { margin:0px 0px 5px 0px; padding:2%; width:95%; text-indent:2%; font-size:12px; }\r\n\r\n#yop-poll-vote-%POLL-ID% {\r\n\r\n}\r\n.yop-poll-results-bar-%POLL-ID% { background:#f5f5f5; }\r\n.yop-poll-results-bar-%POLL-ID% div { background:#555 !important; }\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-vote-%POLL-ID% button { float:left; }\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% {\r\n float: right;\r\n margin-bottom: 20px;\r\n margin-top: -20px;\r\n width: auto;\r\n}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% a { color:#B70004; text-decoration:underline; font-size:12px;}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-back-%POLL-ID% a { color:#B70004; text-decoration:underline; font-size:12px;}\r\n#yop-poll-vote-%POLL-ID% div { float:left; width:100%; }\r\n\r\n#yop-poll-container-error-%POLL-ID% {\r\n font-size:12px;\r\n font-style:italic;\r\n color:red;\r\n text-transform:lowercase;\r\n}', 'function stripBorder_%POLL-ID%(object) {\r\n object.each(function() {\r\n if( parseInt(jQuery(this).width() ) > 0) {\r\n jQuery(this).width( parseInt( jQuery(this).width() ) - parseInt(jQuery(this).css(".'"'."border-left-width".'"'.")) - parseInt(jQuery(this).css(".'"'."border-right-width".'"'.")) );\r\n }\r\n else {\r\n jQuery(this).css(".'"'."border-left-width".'"'.", ''0px'');\r\n jQuery(this).css(".'"'."border-right-width".'"'.", ''0px'');\r\n }\r\n });\r\n}\r\nfunction stripPadding_%POLL-ID%(object) {\r\n object.each(function() { \r\n jQuery(this).width( parseInt( jQuery(this).width() ) - parseInt(jQuery(this).css(".'"'."padding-left".'"'.")) - parseInt(jQuery(this).css(".'"'."padding-left".'"'.")) );\r\n });\r\n}\r\n\r\nfunction tabulate_answers_%POLL-ID%() {\r\n equalWidth_%POLL-ID%( jQuery(".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-answer-%POLL-ID%".'"'."), %TABULATED-COLS% );\r\n}\r\n\r\nfunction strip_results_%POLL-ID%() {\r\n stripPadding_%POLL-ID%( jQuery(".'"'."#yop-poll-container-%POLL-ID% .yop_poll_li_result-%POLL-ID%".'"'.") ); \r\n stripBorder_%POLL-ID%( jQuery(".'"'."#yop-poll-container-%POLL-ID% .yop-poll-result-bar-%POLL-ID%".'"'."));\r\n}\r\n\r\nfunction tabulate_results_%POLL-ID%() {\r\n equalWidth_%POLL-ID%( jQuery(".'"'."#yop-poll-container-%POLL-ID% .yop_poll_li_result-%POLL-ID%".'"'."), %TABULATED-COLS% );\r\n}\r\n\r\njQuery(document).ready(function(e) {\r\n if(typeof window.strip_results_%POLL-ID% == ''function'') \r\n strip_results_%POLL-ID%();\r\n \r\n if(typeof window.tabulate_answers_%POLL-ID% == ''function'') \r\n tabulate_answers_%POLL-ID%();\r\n \r\n if(typeof window.tabulate_results_%POLL-ID% == ''function'') \r\n tabulate_results_%POLL-ID%();\r\n \r\n});', 'other', NOW(), NOW()),
135
+ ('Green v2', '<div id=\\".'"'."yop-poll-name-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-name\\".'"'.">%POLL-NAME%</div>\r\n<div id=\\".'"'."yop-poll-question-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-question\\".'"'.">%POLL-QUESTION%</div>\r\n<div id=\\".'"'."yop-poll-answers-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-answers\\".'"'.">\r\n <ul>\r\n [ANSWER_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-answer-%POLL-ID%\\".'"'.">\r\n %POLL-ANSWER-CHECK-INPUT% \r\n %POLL-ANSWER-LABEL%\r\n <div class=\\".'"'."yop-poll-results-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-RESULT-LABEL%</div>\r\n <div class=\\".'"'."yop-poll-results-bar-%POLL-ID%\\".'"'.">\r\n %POLL-ANSWER-RESULT-BAR%\r\n </div>\r\n </li>\r\n [/ANSWER_CONTAINER]\r\n [OTHER_ANSWER_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-answer-%POLL-ID%\\".'"'.">\r\n %POLL-OTHER-ANSWER-CHECK-INPUT% \r\n %POLL-OTHER-ANSWER-LABEL% \r\n %POLL-ANSWER-RESULT-LABEL% \r\n %POLL-OTHER-ANSWER-TEXT-INPUT% \r\n <div class=\\".'"'."yop-poll-results-bar-%POLL-ID%\\".'"'.">\r\n %POLL-ANSWER-RESULT-BAR%\r\n </div>\r\n </li>\r\n [/OTHER_ANSWER_CONTAINER]\r\n </ul>\r\n</div>\r\n<div id=\\".'"'."yop-poll-custom-%POLL-ID%\\".'"'.">\r\n <ul>\r\n [CUSTOM_FIELD_CONTAINER]\r\n <li>%POLL-CUSTOM-FIELD-LABEL% %POLL-CUSTOM-FIELD-TEXT-INPUT%</li>\r\n [/CUSTOM_FIELD_CONTAINER]\r\n </ul>\r\n</div> \r\n<div id=\\".'"'."yop-poll-vote-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-footer\\".'"'.">\r\n <div>%POLL-VOTE-BUTTON%</div>\r\n <div id=\\".'"'."yop-poll-results-%POLL-ID%\\".'"'.">%POLL-VIEW-RESULT-LINK%</div>\r\n <div>%POLL-TOTAL-VOTERS%</div>\r\n <div>%POLL-TOTAL-VOTES%</div>\r\n</div>', '<div id=\\".'"'."yop-poll-name-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-name\\".'"'.">%POLL-NAME%</div>\r\n<div id=\\".'"'."yop-poll-question-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-question\\".'"'.">%POLL-QUESTION%</div>\r\n<div id=\\".'"'."yop-poll-answers-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-answers\\".'"'.">\r\n <ul>\r\n [ANSWER_RESULT_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-result-%POLL-ID%\\".'"'.">\r\n <label class=\\".'"'."pds-feedback-label-%POLL-ID%\\".'"'.">\r\n <span class=\\".'"'."pds-answer-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-LABEL%</span>\r\n <span class=\\".'"'."pds-feedback-result-%POLL-ID%\\".'"'.">\r\n <span class=\\".'"'."pds-feedback-per-%POLL-ID%\\".'"'."> %POLL-ANSWER-RESULT-LABEL%</span>\r\n </span>\r\n </label>\r\n <div>\r\n %POLL-ANSWER-RESULT-BAR%\r\n </div>\r\n </li>\r\n [/ANSWER_RESULT_CONTAINER]\r\n </ul>\r\n</div>\r\n<div id=\\".'"'."yop-poll-vote-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-footer\\".'"'.">\r\n <div>%POLL-TOTAL-VOTERS%</div>\r\n <div>%POLL-TOTAL-VOTES%</div>\r\n <div id=\\".'"'."yop-poll-back-%POLL-ID%\\".'"'.">%POLL-BACK-TO-VOTE-LINK%</div>\r\n</div>', 'This poll is about to <br>\r\nstart at %POLL-START-DATE%<br>\r\nand finish at %POLL-END-DATE%<br>', 'This poll is closed!\r\nPoll activity: <br>\r\nstart_date %POLL-START-DATE%<br>\r\nend_date %POLL-END-DATE%<br>\r\n\r\nPoll Results:\r\n<div id=\\".'"'."yop-poll-question-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-question\\".'"'.">%POLL-QUESTION%</div>\r\n<div id=\\".'"'."yop-poll-answers-1\\".'"'." class=\\".'"'."yop-poll-answers\\".'"'.">\r\n <ul>\r\n [ANSWER_RESULT_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-result-%POLL-ID%\\".'"'.">\r\n <label class=\\".'"'."pds-feedback-label\\".'"'.">\r\n <span class=\\".'"'."pds-answer-text\\".'"'.">%POLL-ANSWER-LABEL%</span>\r\n <span class=\\".'"'."pds-feedback-result\\".'"'.">\r\n <span class=\\".'"'."pds-feedback-per\\".'"'."> %POLL-ANSWER-RESULT-LABEL%</span>\r\n </span>\r\n </label>\r\n <span class=\\".'"'."pds-clear\\".'"'." style=\\".'"'."display: block;clear: both;height:1px;line-height:1px;\\".'"'."> </span>\r\n %POLL-ANSWER-RESULT-BAR%\r\n </li>\r\n [/ANSWER_RESULT_CONTAINER]\r\n </ul>\r\n</div>\r\n%POLL-VOTE-BUTTON%', '#yop-poll-container-%POLL-ID% {\r\n width:200px;\r\n background:#fff;\r\n padding:0px;\r\n color:#555;\r\n overflow:hidden;\r\n font-size:12px;\r\n}\r\n#yop-poll-name-%POLL-ID% {\r\n font-weight:bold;\r\n background:#3F8B43;\r\n color:#fff;\r\n padding:5px;\r\n text-align:center;\r\n font-size:12px;\r\n}\r\n\r\n#yop-poll-question-%POLL-ID% {\r\n font-size:14px;\r\n margin:5px 0px;\r\n}\r\n#yop-poll-answers-%POLL-ID% { }\r\n#yop-poll-answers-%POLL-ID% ul {\r\n list-style: none outside none;\r\n margin: 0;\r\n padding: 0;\r\n}\r\n#yop-poll-answers-%POLL-ID% ul li { \r\n font-style:normal;\r\n margin:0px 0px 10px 0px;\r\n padding:0px;\r\n font-size:12px;\r\n}\r\n#yop-poll-answers-%POLL-ID% ul li input { \r\n margin:0px; \r\n float:none;\r\n}\r\n#yop-poll-answers-%POLL-ID% ul li label { \r\n margin:0px; \r\n font-style:normal; \r\n font-weight:normal; \r\n font-size:12px; \r\n float:none;\r\n}\r\n.yop-poll-results-%POLL-ID% {\r\n font-size: 12px;\r\n font-style: italic;\r\n font-weight: normal;\r\n margin-left: 15px;\r\n}\r\n\r\n#yop-poll-custom-%POLL-ID% { }\r\n#yop-poll-custom-%POLL-ID% ul {\r\n list-style: none outside none;\r\n margin: 0;\r\n padding: 0;\r\n}\r\n#yop-poll-custom-%POLL-ID% ul li { \r\n padding:0px;\r\n margin:0px; \r\n font-size:14px;\r\n}\r\n#yop-poll-custom-%POLL-ID% ul li input { margin:0px 0px 5px 0px; padding:2%; width:95%; text-indent:2%; font-size:12px; }\r\n\r\n#yop-poll-vote-%POLL-ID% {\r\n\r\n}\r\n.yop-poll-results-bar-%POLL-ID% { background:#f5f5f5; }\r\n.yop-poll-results-bar-%POLL-ID% div { background:#555 !important; }\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-vote-%POLL-ID% button { float:left; }\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% {\r\n float: right;\r\n margin-bottom: 20px;\r\n margin-top: -20px;\r\n width: auto;\r\n}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% a { color:#3F8B43; text-decoration:underline; font-size:12px;}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-back-%POLL-ID% a { color:#3F8B43; text-decoration:underline; font-size:12px;}\r\n#yop-poll-vote-%POLL-ID% div { float:left; width:100%; }\r\n\r\n#yop-poll-container-error-%POLL-ID% {\r\n font-size:12px;\r\n font-style:italic;\r\n color:red;\r\n text-transform:lowercase;\r\n}', 'function stripBorder_%POLL-ID%(object) {\r\n object.each(function() {\r\n if( parseInt(jQuery(this).width() ) > 0) {\r\n jQuery(this).width( parseInt( jQuery(this).width() ) - parseInt(jQuery(this).css(\\".'"'."border-left-width\\".'"'.")) - parseInt(jQuery(this).css(\\".'"'."border-right-width\\".'"'.")) );\r\n }\r\n else {\r\n jQuery(this).css(\\".'"'."border-left-width\\".'"'.", \'0px\');\r\n jQuery(this).css(\\".'"'."border-right-width\\".'"'.", \'0px\');\r\n }\r\n });\r\n}\r\nfunction stripPadding_%POLL-ID%(object) {\r\n object.each(function() { \r\n jQuery(this).width( parseInt( jQuery(this).width() ) - parseInt(jQuery(this).css(\\".'"'."padding-left\\".'"'.")) - parseInt(jQuery(this).css(\\".'"'."padding-left\\".'"'.")) );\r\n });\r\n}\r\n\r\nfunction strip_results_%POLL-ID%() {\r\n stripPadding_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop_poll_li_result-%POLL-ID%\\".'"'.") ); \r\n stripBorder_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-result-bar-%POLL-ID%\\".'"'."));\r\n}\r\n\r\njQuery(document).ready(function(e) {\r\n if(typeof window.strip_results_%POLL-ID% == \'function\') \r\n strip_results_%POLL-ID%();\r\n \r\n if(typeof window.tabulate_answers_%POLL-ID% == \'function\') \r\n tabulate_answers_%POLL-ID%();\r\n \r\n if(typeof window.tabulate_results_%POLL-ID% == \'function\') \r\n tabulate_results_%POLL-ID%();\r\n \r\n});\r\n\r\nfunction equalWidth_%POLL-ID%(obj, cols) {\r\n var widest = 0; \r\n obj.each(function() {\r\n var thisWidth = jQuery(this).width();\r\n if(thisWidth > widest) {\r\n widest = thisWidth; \r\n } \r\n }); \r\n width = parseInt( widest / cols); \r\n obj.width(width); \r\n obj.css(\'float\', \'left\');\r\n}\r\n\r\nfunction tabulate_answers_%POLL-ID%() {\r\n equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-answer-%POLL-ID%\\".'"'."), %ANSWERS-TABULATED-COLS% );\r\n}\r\n\r\nfunction tabulate_results_%POLL-ID%() {\r\n equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-result-%POLL-ID%\\".'"'."), %RESULTS-TABULATED-COLS% );\r\n}', 'other', NOW(), NOW()),
136
+ ('Red v3', '<div id=\\".'"'."yop-poll-name-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-name\\".'"'.">%POLL-NAME%</div>\r\n<div id=\\".'"'."yop-poll-question-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-question\\".'"'.">%POLL-QUESTION%</div>\r\n<div id=\\".'"'."yop-poll-answers-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-answers\\".'"'.">\r\n <ul>\r\n [ANSWER_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-answer-%POLL-ID%\\".'"'.">\r\n %POLL-ANSWER-CHECK-INPUT% \r\n %POLL-ANSWER-LABEL%\r\n <div class=\\".'"'."yop-poll-results-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-RESULT-LABEL%</div>\r\n <div class=\\".'"'."yop-poll-results-bar-%POLL-ID%\\".'"'.">\r\n %POLL-ANSWER-RESULT-BAR%\r\n </div>\r\n </li>\r\n [/ANSWER_CONTAINER]\r\n [OTHER_ANSWER_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-answer-%POLL-ID%\\".'"'.">\r\n %POLL-OTHER-ANSWER-CHECK-INPUT% \r\n %POLL-OTHER-ANSWER-LABEL% \r\n %POLL-ANSWER-RESULT-LABEL% \r\n %POLL-OTHER-ANSWER-TEXT-INPUT% \r\n <div class=\\".'"'."yop-poll-results-bar-%POLL-ID%\\".'"'.">\r\n %POLL-ANSWER-RESULT-BAR%\r\n </div>\r\n </li>\r\n [/OTHER_ANSWER_CONTAINER]\r\n </ul>\r\n</div>\r\n<div id=\\".'"'."yop-poll-custom-%POLL-ID%\\".'"'.">\r\n <ul>\r\n [CUSTOM_FIELD_CONTAINER]\r\n <li>%POLL-CUSTOM-FIELD-LABEL% %POLL-CUSTOM-FIELD-TEXT-INPUT%</li>\r\n [/CUSTOM_FIELD_CONTAINER]\r\n </ul>\r\n</div> \r\n<div id=\\".'"'."yop-poll-vote-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-footer\\".'"'.">\r\n <div>%POLL-VOTE-BUTTON%</div>\r\n <div id=\\".'"'."yop-poll-results-%POLL-ID%\\".'"'.">%POLL-VIEW-RESULT-LINK%</div>\r\n <div>%POLL-TOTAL-VOTERS%</div>\r\n <div>%POLL-TOTAL-VOTES%</div>\r\n</div>', '<div id=\\".'"'."yop-poll-name-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-name\\".'"'.">%POLL-NAME%</div>\r\n<div id=\\".'"'."yop-poll-question-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-question\\".'"'.">%POLL-QUESTION%</div>\r\n<div id=\\".'"'."yop-poll-answers-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-answers\\".'"'.">\r\n <ul>\r\n [ANSWER_RESULT_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-result-%POLL-ID%\\".'"'.">\r\n <label class=\\".'"'."pds-feedback-label-%POLL-ID%\\".'"'.">\r\n <span class=\\".'"'."pds-answer-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-LABEL%</span>\r\n <span class=\\".'"'."pds-feedback-result-%POLL-ID%\\".'"'.">\r\n <span class=\\".'"'."pds-feedback-per-%POLL-ID%\\".'"'."> %POLL-ANSWER-RESULT-LABEL%</span>\r\n </span>\r\n </label>\r\n <div>\r\n %POLL-ANSWER-RESULT-BAR%\r\n </div>\r\n </li>\r\n [/ANSWER_RESULT_CONTAINER]\r\n </ul>\r\n</div>\r\n<div id=\\".'"'."yop-poll-vote-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-footer\\".'"'.">\r\n <div>%POLL-TOTAL-VOTERS%</div>\r\n <div>%POLL-TOTAL-VOTES%</div>\r\n <div id=\\".'"'."yop-poll-back-%POLL-ID%\\".'"'.">%POLL-BACK-TO-VOTE-LINK%</div>\r\n</div>', 'This poll is about to <br>\r\nstart at %POLL-START-DATE%<br>\r\nand finish at %POLL-END-DATE%<br>', 'This poll is closed!\r\nPoll activity: <br>\r\nstart_date %POLL-START-DATE%<br>\r\nend_date %POLL-END-DATE%<br>\r\n\r\nPoll Results:\r\n<div id=\\".'"'."yop-poll-question-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-question\\".'"'.">%POLL-QUESTION%</div>\r\n<div id=\\".'"'."yop-poll-answers-1\\".'"'." class=\\".'"'."yop-poll-answers\\".'"'.">\r\n <ul>\r\n [ANSWER_RESULT_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-result-%POLL-ID%\\".'"'.">\r\n <label class=\\".'"'."pds-feedback-label\\".'"'.">\r\n <span class=\\".'"'."pds-answer-text\\".'"'.">%POLL-ANSWER-LABEL%</span>\r\n <span class=\\".'"'."pds-feedback-result\\".'"'.">\r\n <span class=\\".'"'."pds-feedback-per\\".'"'."> %POLL-ANSWER-RESULT-LABEL%</span>\r\n </span>\r\n </label>\r\n <span class=\\".'"'."pds-clear\\".'"'." style=\\".'"'."display: block;clear: both;height:1px;line-height:1px;\\".'"'."> </span>\r\n %POLL-ANSWER-RESULT-BAR%\r\n </li>\r\n [/ANSWER_RESULT_CONTAINER]\r\n </ul>\r\n</div>\r\n%POLL-VOTE-BUTTON%', '#yop-poll-container-%POLL-ID% {\r\n width:200px;\r\n background:#fff;\r\n padding:10px;\r\n color:#555;\r\n overflow:hidden;\r\n font-size:12px;\r\n border:5px solid #B70004;\r\n}\r\n#yop-poll-name-%POLL-ID% {\r\n font-size:14px;\r\n font-weight:bold;\r\n}\r\n\r\n#yop-poll-question-%POLL-ID% {\r\n font-size:14px;\r\n margin:5px 0px;\r\n}\r\n#yop-poll-answers-%POLL-ID% { }\r\n#yop-poll-answers-%POLL-ID% ul {\r\n list-style: none outside none;\r\n margin: 0;\r\n padding: 0;\r\n}\r\n#yop-poll-answers-%POLL-ID% ul li { \r\n font-style:normal;\r\n margin:0px 0px 10px 0px;\r\n padding:0px;\r\n font-size:12px;\r\n}\r\n#yop-poll-answers-%POLL-ID% ul li input { \r\n margin:0px; \r\n float:none;\r\n}\r\n#yop-poll-answers-%POLL-ID% ul li label { \r\n margin:0px; \r\n font-style:normal; \r\n font-weight:normal; \r\n font-size:12px; \r\n float:none;\r\n}\r\n.yop-poll-results-%POLL-ID% {\r\n font-size: 12px;\r\n font-style: italic;\r\n font-weight: normal;\r\n margin-left: 15px;\r\n}\r\n\r\n#yop-poll-custom-%POLL-ID% { }\r\n#yop-poll-custom-%POLL-ID% ul {\r\n list-style: none outside none;\r\n margin: 0;\r\n padding: 0;\r\n}\r\n#yop-poll-custom-%POLL-ID% ul li { \r\n padding:0px;\r\n margin:0px; \r\n font-size:14px;\r\n}\r\n#yop-poll-custom-%POLL-ID% ul li input { margin:0px 0px 5px 0px; padding:2%; width:96%; text-indent:2%; font-size:12px; }\r\n\r\n#yop-poll-vote-%POLL-ID% {\r\n\r\n}\r\n.yop-poll-results-bar-%POLL-ID% { background:#f5f5f5; }\r\n.yop-poll-results-bar-%POLL-ID% div { background:#555 !important; }\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-vote-%POLL-ID% button { float:left; }\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% {\r\n float: right;\r\n margin-bottom: 20px;\r\n margin-top: -20px;\r\n width: auto;\r\n}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% a { color:#B70004; text-decoration:underline; font-size:12px;}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-back-%POLL-ID% a { color:#B70004; text-decoration:underline; font-size:12px;}\r\n#yop-poll-vote-%POLL-ID% div { float:left; width:100%; }\r\n\r\n#yop-poll-container-error-%POLL-ID% {\r\n font-size:12px;\r\n font-style:italic;\r\n color:red;\r\n text-transform:lowercase;\r\n}', 'function stripBorder_%POLL-ID%(object) {\r\n object.each(function() {\r\n if( parseInt(jQuery(this).width() ) > 0) {\r\n jQuery(this).width( parseInt( jQuery(this).width() ) - parseInt(jQuery(this).css(\\".'"'."border-left-width\\".'"'.")) - parseInt(jQuery(this).css(\\".'"'."border-right-width\\".'"'.")) );\r\n }\r\n else {\r\n jQuery(this).css(\\".'"'."border-left-width\\".'"'.", \'0px\');\r\n jQuery(this).css(\\".'"'."border-right-width\\".'"'.", \'0px\');\r\n }\r\n });\r\n}\r\nfunction stripPadding_%POLL-ID%(object) {\r\n object.each(function() { \r\n jQuery(this).width( parseInt( jQuery(this).width() ) - parseInt(jQuery(this).css(\\".'"'."padding-left\\".'"'.")) - parseInt(jQuery(this).css(\\".'"'."padding-left\\".'"'.")) );\r\n });\r\n}\r\n\r\nfunction strip_results_%POLL-ID%() {\r\n stripPadding_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop_poll_li_result-%POLL-ID%\\".'"'.") ); \r\n stripBorder_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-result-bar-%POLL-ID%\\".'"'."));\r\n}\r\n\r\njQuery(document).ready(function(e) {\r\n if(typeof window.strip_results_%POLL-ID% == \'function\') \r\n strip_results_%POLL-ID%();\r\n \r\n if(typeof window.tabulate_answers_%POLL-ID% == \'function\') \r\n tabulate_answers_%POLL-ID%();\r\n \r\n if(typeof window.tabulate_results_%POLL-ID% == \'function\') \r\n tabulate_results_%POLL-ID%();\r\n \r\n});\r\n\r\nfunction equalWidth_%POLL-ID%(obj, cols) {\r\n var widest = 0; \r\n obj.each(function() {\r\n var thisWidth = jQuery(this).width();\r\n if(thisWidth > widest) {\r\n widest = thisWidth; \r\n } \r\n }); \r\n width = parseInt( widest / cols); \r\n obj.width(width); \r\n obj.css(\'float\', \'left\');\r\n}\r\n\r\nfunction tabulate_answers_%POLL-ID%() {\r\n equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-answer-%POLL-ID%\\".'"'."), %ANSWERS-TABULATED-COLS% );\r\n}\r\n\r\nfunction tabulate_results_%POLL-ID%() {\r\n equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-result-%POLL-ID%\\".'"'."), %RESULTS-TABULATED-COLS% );\r\n}', 'other', NOW(), NOW()),
137
+ ('Green v3', '<div id=\\".'"'."yop-poll-name-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-name\\".'"'.">%POLL-NAME%</div>\r\n<div id=\\".'"'."yop-poll-question-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-question\\".'"'.">%POLL-QUESTION%</div>\r\n<div id=\\".'"'."yop-poll-answers-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-answers\\".'"'.">\r\n <ul>\r\n [ANSWER_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-answer-%POLL-ID%\\".'"'.">\r\n %POLL-ANSWER-CHECK-INPUT% \r\n %POLL-ANSWER-LABEL%\r\n <div class=\\".'"'."yop-poll-results-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-RESULT-LABEL%</div>\r\n <div class=\\".'"'."yop-poll-results-bar-%POLL-ID%\\".'"'.">\r\n %POLL-ANSWER-RESULT-BAR%\r\n </div>\r\n </li>\r\n [/ANSWER_CONTAINER]\r\n [OTHER_ANSWER_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-answer-%POLL-ID%\\".'"'.">\r\n %POLL-OTHER-ANSWER-CHECK-INPUT% \r\n %POLL-OTHER-ANSWER-LABEL% \r\n %POLL-ANSWER-RESULT-LABEL% \r\n %POLL-OTHER-ANSWER-TEXT-INPUT% \r\n <div class=\\".'"'."yop-poll-results-bar-%POLL-ID%\\".'"'.">\r\n %POLL-ANSWER-RESULT-BAR%\r\n </div>\r\n </li>\r\n [/OTHER_ANSWER_CONTAINER]\r\n </ul>\r\n</div>\r\n<div id=\\".'"'."yop-poll-custom-%POLL-ID%\\".'"'.">\r\n <ul>\r\n [CUSTOM_FIELD_CONTAINER]\r\n <li>%POLL-CUSTOM-FIELD-LABEL% %POLL-CUSTOM-FIELD-TEXT-INPUT%</li>\r\n [/CUSTOM_FIELD_CONTAINER]\r\n </ul>\r\n</div> \r\n<div id=\\".'"'."yop-poll-vote-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-footer\\".'"'.">\r\n <div>%POLL-VOTE-BUTTON%</div>\r\n <div id=\\".'"'."yop-poll-results-%POLL-ID%\\".'"'.">%POLL-VIEW-RESULT-LINK%</div>\r\n <div>%POLL-TOTAL-VOTERS%</div>\r\n <div>%POLL-TOTAL-VOTES%</div>\r\n</div>', '<div id=\\".'"'."yop-poll-name-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-name\\".'"'.">%POLL-NAME%</div>\r\n<div id=\\".'"'."yop-poll-question-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-question\\".'"'.">%POLL-QUESTION%</div>\r\n<div id=\\".'"'."yop-poll-answers-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-answers\\".'"'.">\r\n <ul>\r\n [ANSWER_RESULT_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-result-%POLL-ID%\\".'"'.">\r\n <label class=\\".'"'."pds-feedback-label-%POLL-ID%\\".'"'.">\r\n <span class=\\".'"'."pds-answer-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-LABEL%</span>\r\n <span class=\\".'"'."pds-feedback-result-%POLL-ID%\\".'"'.">\r\n <span class=\\".'"'."pds-feedback-per-%POLL-ID%\\".'"'."> %POLL-ANSWER-RESULT-LABEL%</span>\r\n </span>\r\n </label>\r\n <div>\r\n %POLL-ANSWER-RESULT-BAR%\r\n </div>\r\n </li>\r\n [/ANSWER_RESULT_CONTAINER]\r\n </ul>\r\n</div>\r\n<div id=\\".'"'."yop-poll-vote-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-footer\\".'"'.">\r\n <div>%POLL-TOTAL-VOTERS%</div>\r\n <div>%POLL-TOTAL-VOTES%</div>\r\n <div id=\\".'"'."yop-poll-back-%POLL-ID%\\".'"'.">%POLL-BACK-TO-VOTE-LINK%</div>\r\n</div>', 'This poll is about to <br>\r\nstart at %POLL-START-DATE%<br>\r\nand finish at %POLL-END-DATE%<br>', 'This poll is closed!\r\nPoll activity: <br>\r\nstart_date %POLL-START-DATE%<br>\r\nend_date %POLL-END-DATE%<br>\r\n\r\nPoll Results:\r\n<div id=\\".'"'."yop-poll-question-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-question\\".'"'.">%POLL-QUESTION%</div>\r\n<div id=\\".'"'."yop-poll-answers-1\\".'"'." class=\\".'"'."yop-poll-answers\\".'"'.">\r\n <ul>\r\n [ANSWER_RESULT_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-result-%POLL-ID%\\".'"'.">\r\n <label class=\\".'"'."pds-feedback-label\\".'"'.">\r\n <span class=\\".'"'."pds-answer-text\\".'"'.">%POLL-ANSWER-LABEL%</span>\r\n <span class=\\".'"'."pds-feedback-result\\".'"'.">\r\n <span class=\\".'"'."pds-feedback-per\\".'"'."> %POLL-ANSWER-RESULT-LABEL%</span>\r\n </span>\r\n </label>\r\n <span class=\\".'"'."pds-clear\\".'"'." style=\\".'"'."display: block;clear: both;height:1px;line-height:1px;\\".'"'."> </span>\r\n %POLL-ANSWER-RESULT-BAR%\r\n </li>\r\n [/ANSWER_RESULT_CONTAINER]\r\n </ul>\r\n</div>\r\n%POLL-VOTE-BUTTON%', '#yop-poll-container-%POLL-ID% {\r\n width:200px;\r\n background:#fff;\r\n padding:10px;\r\n color:#555;\r\n overflow:hidden;\r\n font-size:12px;\r\n border:5px solid #3F8B43;\r\n}\r\n#yop-poll-name-%POLL-ID% {\r\n font-size:14px;\r\n font-weight:bold;\r\n}\r\n\r\n#yop-poll-question-%POLL-ID% {\r\n font-size:14px;\r\n margin:5px 0px;\r\n}\r\n#yop-poll-answers-%POLL-ID% { }\r\n#yop-poll-answers-%POLL-ID% ul {\r\n list-style: none outside none;\r\n margin: 0;\r\n padding: 0;\r\n}\r\n#yop-poll-answers-%POLL-ID% ul li { \r\n font-style:normal;\r\n margin:0px 0px 10px 0px;\r\n padding:0px;\r\n font-size:12px;\r\n}\r\n#yop-poll-answers-%POLL-ID% ul li input { \r\n margin:0px; \r\n float:none;\r\n}\r\n#yop-poll-answers-%POLL-ID% ul li label { \r\n margin:0px; \r\n font-style:normal; \r\n font-weight:normal; \r\n font-size:12px; \r\n float:none;\r\n}\r\n.yop-poll-results-%POLL-ID% {\r\n font-size: 12px;\r\n font-style: italic;\r\n font-weight: normal;\r\n margin-left: 15px;\r\n}\r\n\r\n#yop-poll-custom-%POLL-ID% { }\r\n#yop-poll-custom-%POLL-ID% ul {\r\n list-style: none outside none;\r\n margin: 0;\r\n padding: 0;\r\n}\r\n#yop-poll-custom-%POLL-ID% ul li { \r\n padding:0px;\r\n margin:0px; \r\n font-size:14px;\r\n}\r\n#yop-poll-custom-%POLL-ID% ul li input { margin:0px 0px 5px 0px; padding:2%; width:96%; text-indent:2%; font-size:12px; }\r\n\r\n#yop-poll-vote-%POLL-ID% {\r\n\r\n}\r\n.yop-poll-results-bar-%POLL-ID% { background:#f5f5f5; }\r\n.yop-poll-results-bar-%POLL-ID% div { background:#555 !important; }\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-vote-%POLL-ID% button { float:left; }\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% {\r\n float: right;\r\n margin-bottom: 20px;\r\n margin-top: -20px;\r\n width: auto;\r\n}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% a { color:#3F8B43; text-decoration:underline; font-size:12px;}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-back-%POLL-ID% a { color:#3F8B43; text-decoration:underline; font-size:12px;}\r\n#yop-poll-vote-%POLL-ID% div { float:left; width:100%; }\r\n\r\n#yop-poll-container-error-%POLL-ID% {\r\n font-size:12px;\r\n font-style:italic;\r\n color:red;\r\n text-transform:lowercase;\r\n}', 'function stripBorder_%POLL-ID%(object) {\r\n object.each(function() {\r\n if( parseInt(jQuery(this).width() ) > 0) {\r\n jQuery(this).width( parseInt( jQuery(this).width() ) - parseInt(jQuery(this).css(\\".'"'."border-left-width\\".'"'.")) - parseInt(jQuery(this).css(\\".'"'."border-right-width\\".'"'.")) );\r\n }\r\n else {\r\n jQuery(this).css(\\".'"'."border-left-width\\".'"'.", \'0px\');\r\n jQuery(this).css(\\".'"'."border-right-width\\".'"'.", \'0px\');\r\n }\r\n });\r\n}\r\nfunction stripPadding_%POLL-ID%(object) {\r\n object.each(function() { \r\n jQuery(this).width( parseInt( jQuery(this).width() ) - parseInt(jQuery(this).css(\\".'"'."padding-left\\".'"'.")) - parseInt(jQuery(this).css(\\".'"'."padding-left\\".'"'.")) );\r\n });\r\n}\r\n\r\nfunction strip_results_%POLL-ID%() {\r\n stripPadding_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop_poll_li_result-%POLL-ID%\\".'"'.") ); \r\n stripBorder_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-result-bar-%POLL-ID%\\".'"'."));\r\n}\r\n\r\njQuery(document).ready(function(e) {\r\n if(typeof window.strip_results_%POLL-ID% == \'function\') \r\n strip_results_%POLL-ID%();\r\n \r\n if(typeof window.tabulate_answers_%POLL-ID% == \'function\') \r\n tabulate_answers_%POLL-ID%();\r\n \r\n if(typeof window.tabulate_results_%POLL-ID% == \'function\') \r\n tabulate_results_%POLL-ID%();\r\n \r\n});\r\n\r\nfunction equalWidth_%POLL-ID%(obj, cols) {\r\n var widest = 0; \r\n obj.each(function() {\r\n var thisWidth = jQuery(this).width();\r\n if(thisWidth > widest) {\r\n widest = thisWidth; \r\n } \r\n }); \r\n width = parseInt( widest / cols); \r\n obj.width(width); \r\n obj.css(\'float\', \'left\');\r\n}\r\n\r\nfunction tabulate_answers_%POLL-ID%() {\r\n equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-answer-%POLL-ID%\\".'"'."), %ANSWERS-TABULATED-COLS% );\r\n}\r\n\r\nfunction tabulate_results_%POLL-ID%() {\r\n equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-result-%POLL-ID%\\".'"'."), %RESULTS-TABULATED-COLS% );\r\n}', 'other', NOW(), NOW()),
138
+ ('Orange v1', '<div id=\\".'"'."yop-poll-name-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-name\\".'"'.">%POLL-NAME%</div>\r\n<div id=\\".'"'."yop-poll-question-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-question\\".'"'.">%POLL-QUESTION%</div>\r\n<div id=\\".'"'."yop-poll-answers-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-answers\\".'"'.">\r\n <ul>\r\n [ANSWER_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-answer-%POLL-ID%\\".'"'.">\r\n %POLL-ANSWER-CHECK-INPUT% \r\n %POLL-ANSWER-LABEL%\r\n <div class=\\".'"'."yop-poll-results-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-RESULT-LABEL%</div>\r\n <div class=\\".'"'."yop-poll-results-bar-%POLL-ID%\\".'"'.">\r\n %POLL-ANSWER-RESULT-BAR%\r\n </div>\r\n </li>\r\n [/ANSWER_CONTAINER]\r\n [OTHER_ANSWER_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-answer-%POLL-ID%\\".'"'.">\r\n %POLL-OTHER-ANSWER-CHECK-INPUT% \r\n %POLL-OTHER-ANSWER-LABEL% \r\n %POLL-ANSWER-RESULT-LABEL% \r\n %POLL-OTHER-ANSWER-TEXT-INPUT% \r\n <div class=\\".'"'."yop-poll-results-bar-%POLL-ID%\\".'"'.">\r\n %POLL-ANSWER-RESULT-BAR%\r\n </div>\r\n </li>\r\n [/OTHER_ANSWER_CONTAINER]\r\n </ul>\r\n</div>\r\n<div id=\\".'"'."yop-poll-custom-%POLL-ID%\\".'"'.">\r\n <ul>\r\n [CUSTOM_FIELD_CONTAINER]\r\n <li>%POLL-CUSTOM-FIELD-LABEL% %POLL-CUSTOM-FIELD-TEXT-INPUT%</li>\r\n [/CUSTOM_FIELD_CONTAINER]\r\n </ul>\r\n</div> \r\n<div id=\\".'"'."yop-poll-vote-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-footer\\".'"'.">\r\n <div>%POLL-VOTE-BUTTON%</div>\r\n <div id=\\".'"'."yop-poll-results-%POLL-ID%\\".'"'.">%POLL-VIEW-RESULT-LINK%</div>\r\n <div>%POLL-TOTAL-VOTERS%</div>\r\n <div>%POLL-TOTAL-VOTES%</div>\r\n</div>', '<div id=\\".'"'."yop-poll-name-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-name\\".'"'.">%POLL-NAME%</div>\r\n<div id=\\".'"'."yop-poll-question-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-question\\".'"'.">%POLL-QUESTION%</div>\r\n<div id=\\".'"'."yop-poll-answers-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-answers\\".'"'.">\r\n <ul>\r\n [ANSWER_RESULT_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-result-%POLL-ID%\\".'"'.">\r\n <label class=\\".'"'."pds-feedback-label-%POLL-ID%\\".'"'.">\r\n <span class=\\".'"'."pds-answer-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-LABEL%</span>\r\n <span class=\\".'"'."pds-feedback-result-%POLL-ID%\\".'"'.">\r\n <span class=\\".'"'."pds-feedback-per-%POLL-ID%\\".'"'."> %POLL-ANSWER-RESULT-LABEL%</span>\r\n </span>\r\n </label>\r\n <div>\r\n %POLL-ANSWER-RESULT-BAR%\r\n </div>\r\n </li>\r\n [/ANSWER_RESULT_CONTAINER]\r\n </ul>\r\n</div>\r\n<div id=\\".'"'."yop-poll-vote-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-footer\\".'"'.">\r\n <div>%POLL-TOTAL-VOTERS%</div>\r\n <div>%POLL-TOTAL-VOTES%</div>\r\n <div id=\\".'"'."yop-poll-back-%POLL-ID%\\".'"'.">%POLL-BACK-TO-VOTE-LINK%</div>\r\n</div>', 'This poll is about to <br>\r\nstart at %POLL-START-DATE%<br>\r\nand finish at %POLL-END-DATE%<br>', 'This poll is closed!\r\nPoll activity: <br>\r\nstart_date %POLL-START-DATE%<br>\r\nend_date %POLL-END-DATE%<br>\r\n\r\nPoll Results:\r\n<div id=\\".'"'."yop-poll-question-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-question\\".'"'.">%POLL-QUESTION%</div>\r\n<div id=\\".'"'."yop-poll-answers-1\\".'"'." class=\\".'"'."yop-poll-answers\\".'"'.">\r\n <ul>\r\n [ANSWER_RESULT_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-result-%POLL-ID%\\".'"'.">\r\n <label class=\\".'"'."pds-feedback-label\\".'"'.">\r\n <span class=\\".'"'."pds-answer-text\\".'"'.">%POLL-ANSWER-LABEL%</span>\r\n <span class=\\".'"'."pds-feedback-result\\".'"'.">\r\n <span class=\\".'"'."pds-feedback-per\\".'"'."> %POLL-ANSWER-RESULT-LABEL%</span>\r\n </span>\r\n </label>\r\n <span class=\\".'"'."pds-clear\\".'"'." style=\\".'"'."display: block;clear: both;height:1px;line-height:1px;\\".'"'."> </span>\r\n %POLL-ANSWER-RESULT-BAR%\r\n </li>\r\n [/ANSWER_RESULT_CONTAINER]\r\n </ul>\r\n</div>\r\n%POLL-VOTE-BUTTON%', '#yop-poll-container-%POLL-ID% {\r\n width:200px;\r\n background:#FB6911;\r\n padding:10px;\r\n color:#fff;\r\n overflow:hidden;\r\n font-size:12px;\r\n}\r\n#yop-poll-name-%POLL-ID% {\r\n font-size:14px;\r\n font-weight:bold;\r\n}\r\n\r\n#yop-poll-question-%POLL-ID% {\r\n font-size:14px;\r\n margin:5px 0px;\r\n}\r\n#yop-poll-answers-%POLL-ID% { }\r\n#yop-poll-answers-%POLL-ID% ul {\r\n list-style: none outside none;\r\n margin: 0;\r\n padding: 0;\r\n}\r\n#yop-poll-answers-%POLL-ID% ul li { \r\n font-style:normal;\r\n margin:0px 0px 10px 0px;\r\n padding:0px;\r\n font-size:12px;\r\n}\r\n#yop-poll-answers-%POLL-ID% ul li input { \r\n margin:0px; \r\n float:none;\r\n}\r\n#yop-poll-answers-%POLL-ID% ul li label { \r\n margin:0px; \r\n font-style:normal; \r\n font-weight:normal; \r\n font-size:12px; \r\n float:none;\r\n}\r\n.yop-poll-results-%POLL-ID% {\r\n font-size: 12px;\r\n font-style: italic;\r\n font-weight: normal;\r\n margin-left: 15px;\r\n}\r\n\r\n#yop-poll-custom-%POLL-ID% { }\r\n#yop-poll-custom-%POLL-ID% ul {\r\n list-style: none outside none;\r\n margin: 0;\r\n padding: 0;\r\n}\r\n#yop-poll-custom-%POLL-ID% ul li { \r\n padding:0px;\r\n margin:0px; \r\n font-size:14px;\r\n}\r\n#yop-poll-custom-%POLL-ID% ul li input { margin:0px 0px 5px 0px; padding:2%; width:96%; text-indent:2%; font-size:12px; }\r\n\r\n#yop-poll-vote-%POLL-ID% {\r\n\r\n}\r\n.yop-poll-results-bar-%POLL-ID% { background:#f5f5f5; }\r\n.yop-poll-results-bar-%POLL-ID% div { background:#555 !important; }\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-vote-%POLL-ID% button { float:left; }\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% {\r\n float: right;\r\n margin-bottom: 20px;\r\n margin-top: -20px;\r\n width: auto;\r\n}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% a { color:#fff; text-decoration:underline; font-size:12px;}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-back-%POLL-ID% a { color:#fff; text-decoration:underline; font-size:12px;}\r\n#yop-poll-vote-%POLL-ID% div { float:left; width:100%; }\r\n\r\n#yop-poll-container-error-%POLL-ID% {\r\n font-size:12px;\r\n font-style:italic;\r\n color:red;\r\n text-transform:lowercase;\r\n}', 'function stripBorder_%POLL-ID%(object) {\r\n object.each(function() {\r\n if( parseInt(jQuery(this).width() ) > 0) {\r\n jQuery(this).width( parseInt( jQuery(this).width() ) - parseInt(jQuery(this).css(\\".'"'."border-left-width\\".'"'.")) - parseInt(jQuery(this).css(\\".'"'."border-right-width\\".'"'.")) );\r\n }\r\n else {\r\n jQuery(this).css(\\".'"'."border-left-width\\".'"'.", \'0px\');\r\n jQuery(this).css(\\".'"'."border-right-width\\".'"'.", \'0px\');\r\n }\r\n });\r\n}\r\nfunction stripPadding_%POLL-ID%(object) {\r\n object.each(function() { \r\n jQuery(this).width( parseInt( jQuery(this).width() ) - parseInt(jQuery(this).css(\\".'"'."padding-left\\".'"'.")) - parseInt(jQuery(this).css(\\".'"'."padding-left\\".'"'.")) );\r\n });\r\n}\r\n\r\nfunction strip_results_%POLL-ID%() {\r\n stripPadding_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop_poll_li_result-%POLL-ID%\\".'"'.") ); \r\n stripBorder_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-result-bar-%POLL-ID%\\".'"'."));\r\n}\r\n\r\njQuery(document).ready(function(e) {\r\n if(typeof window.strip_results_%POLL-ID% == \'function\') \r\n strip_results_%POLL-ID%();\r\n \r\n if(typeof window.tabulate_answers_%POLL-ID% == \'function\') \r\n tabulate_answers_%POLL-ID%();\r\n \r\n if(typeof window.tabulate_results_%POLL-ID% == \'function\') \r\n tabulate_results_%POLL-ID%();\r\n \r\n});\r\n\r\nfunction equalWidth_%POLL-ID%(obj, cols) {\r\n var widest = 0; \r\n obj.each(function() {\r\n var thisWidth = jQuery(this).width();\r\n if(thisWidth > widest) {\r\n widest = thisWidth; \r\n } \r\n }); \r\n width = parseInt( widest / cols); \r\n obj.width(width); \r\n obj.css(\'float\', \'left\');\r\n}\r\n\r\nfunction tabulate_answers_%POLL-ID%() {\r\n equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-answer-%POLL-ID%\\".'"'."), %ANSWERS-TABULATED-COLS% );\r\n}\r\n\r\nfunction tabulate_results_%POLL-ID%() {\r\n equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-result-%POLL-ID%\\".'"'."), %RESULTS-TABULATED-COLS% );\r\n}', 'other', NOW(), NOW()),
139
+ ('Orange v2', '<div id=\\".'"'."yop-poll-name-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-name\\".'"'.">%POLL-NAME%</div>\r\n<div id=\\".'"'."yop-poll-question-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-question\\".'"'.">%POLL-QUESTION%</div>\r\n<div id=\\".'"'."yop-poll-answers-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-answers\\".'"'.">\r\n <ul>\r\n [ANSWER_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-answer-%POLL-ID%\\".'"'.">\r\n %POLL-ANSWER-CHECK-INPUT% \r\n %POLL-ANSWER-LABEL%\r\n <div class=\\".'"'."yop-poll-results-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-RESULT-LABEL%</div>\r\n <div class=\\".'"'."yop-poll-results-bar-%POLL-ID%\\".'"'.">\r\n %POLL-ANSWER-RESULT-BAR%\r\n </div>\r\n </li>\r\n [/ANSWER_CONTAINER]\r\n [OTHER_ANSWER_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-answer-%POLL-ID%\\".'"'.">\r\n %POLL-OTHER-ANSWER-CHECK-INPUT% \r\n %POLL-OTHER-ANSWER-LABEL% \r\n %POLL-ANSWER-RESULT-LABEL% \r\n %POLL-OTHER-ANSWER-TEXT-INPUT% \r\n <div class=\\".'"'."yop-poll-results-bar-%POLL-ID%\\".'"'.">\r\n %POLL-ANSWER-RESULT-BAR%\r\n </div>\r\n </li>\r\n [/OTHER_ANSWER_CONTAINER]\r\n </ul>\r\n</div>\r\n<div id=\\".'"'."yop-poll-custom-%POLL-ID%\\".'"'.">\r\n <ul>\r\n [CUSTOM_FIELD_CONTAINER]\r\n <li>%POLL-CUSTOM-FIELD-LABEL% %POLL-CUSTOM-FIELD-TEXT-INPUT%</li>\r\n [/CUSTOM_FIELD_CONTAINER]\r\n </ul>\r\n</div> \r\n<div id=\\".'"'."yop-poll-vote-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-footer\\".'"'.">\r\n <div>%POLL-VOTE-BUTTON%</div>\r\n <div id=\\".'"'."yop-poll-results-%POLL-ID%\\".'"'.">%POLL-VIEW-RESULT-LINK%</div>\r\n <div>%POLL-TOTAL-VOTERS%</div>\r\n <div>%POLL-TOTAL-VOTES%</div>\r\n</div>', '<div id=\\".'"'."yop-poll-name-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-name\\".'"'.">%POLL-NAME%</div>\r\n<div id=\\".'"'."yop-poll-question-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-question\\".'"'.">%POLL-QUESTION%</div>\r\n<div id=\\".'"'."yop-poll-answers-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-answers\\".'"'.">\r\n <ul>\r\n [ANSWER_RESULT_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-result-%POLL-ID%\\".'"'.">\r\n <label class=\\".'"'."pds-feedback-label-%POLL-ID%\\".'"'.">\r\n <span class=\\".'"'."pds-answer-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-LABEL%</span>\r\n <span class=\\".'"'."pds-feedback-result-%POLL-ID%\\".'"'.">\r\n <span class=\\".'"'."pds-feedback-per-%POLL-ID%\\".'"'."> %POLL-ANSWER-RESULT-LABEL%</span>\r\n </span>\r\n </label>\r\n <div>\r\n %POLL-ANSWER-RESULT-BAR%\r\n </div>\r\n </li>\r\n [/ANSWER_RESULT_CONTAINER]\r\n </ul>\r\n</div>\r\n<div id=\\".'"'."yop-poll-vote-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-footer\\".'"'.">\r\n <div>%POLL-TOTAL-VOTERS%</div>\r\n <div>%POLL-TOTAL-VOTES%</div>\r\n <div id=\\".'"'."yop-poll-back-%POLL-ID%\\".'"'.">%POLL-BACK-TO-VOTE-LINK%</div>\r\n</div>', 'This poll is about to <br>\r\nstart at %POLL-START-DATE%<br>\r\nand finish at %POLL-END-DATE%<br>', 'This poll is closed!\r\nPoll activity: <br>\r\nstart_date %POLL-START-DATE%<br>\r\nend_date %POLL-END-DATE%<br>\r\n\r\nPoll Results:\r\n<div id=\\".'"'."yop-poll-question-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-question\\".'"'.">%POLL-QUESTION%</div>\r\n<div id=\\".'"'."yop-poll-answers-1\\".'"'." class=\\".'"'."yop-poll-answers\\".'"'.">\r\n <ul>\r\n [ANSWER_RESULT_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-result-%POLL-ID%\\".'"'.">\r\n <label class=\\".'"'."pds-feedback-label\\".'"'.">\r\n <span class=\\".'"'."pds-answer-text\\".'"'.">%POLL-ANSWER-LABEL%</span>\r\n <span class=\\".'"'."pds-feedback-result\\".'"'.">\r\n <span class=\\".'"'."pds-feedback-per\\".'"'."> %POLL-ANSWER-RESULT-LABEL%</span>\r\n </span>\r\n </label>\r\n <span class=\\".'"'."pds-clear\\".'"'." style=\\".'"'."display: block;clear: both;height:1px;line-height:1px;\\".'"'."> </span>\r\n %POLL-ANSWER-RESULT-BAR%\r\n </li>\r\n [/ANSWER_RESULT_CONTAINER]\r\n </ul>\r\n</div>\r\n%POLL-VOTE-BUTTON%', '#yop-poll-container-%POLL-ID% {\r\n width:200px;\r\n background:#fff;\r\n padding:0px;\r\n color:#555;\r\n overflow:hidden;\r\n font-size:12px;\r\n}\r\n#yop-poll-name-%POLL-ID% {\r\n font-weight:bold;\r\n background:#FB6911;\r\n color:#fff;\r\n padding:5px;\r\n text-align:center;\r\n font-size:12px;\r\n}\r\n\r\n#yop-poll-question-%POLL-ID% {\r\n font-size:14px;\r\n margin:5px 0px;\r\n}\r\n#yop-poll-answers-%POLL-ID% { }\r\n#yop-poll-answers-%POLL-ID% ul {\r\n list-style: none outside none;\r\n margin: 0;\r\n padding: 0;\r\n}\r\n#yop-poll-answers-%POLL-ID% ul li { \r\n font-style:normal;\r\n margin:0px 0px 10px 0px;\r\n padding:0px;\r\n font-size:12px;\r\n}\r\n#yop-poll-answers-%POLL-ID% ul li input { \r\n margin:0px; \r\n float:none;\r\n}\r\n#yop-poll-answers-%POLL-ID% ul li label { \r\n margin:0px; \r\n font-style:normal; \r\n font-weight:normal; \r\n font-size:12px; \r\n float:none;\r\n}\r\n.yop-poll-results-%POLL-ID% {\r\n font-size: 12px;\r\n font-style: italic;\r\n font-weight: normal;\r\n margin-left: 15px;\r\n}\r\n\r\n#yop-poll-custom-%POLL-ID% { }\r\n#yop-poll-custom-%POLL-ID% ul {\r\n list-style: none outside none;\r\n margin: 0;\r\n padding: 0;\r\n}\r\n#yop-poll-custom-%POLL-ID% ul li { \r\n padding:0px;\r\n margin:0px; \r\n font-size:14px;\r\n}\r\n#yop-poll-custom-%POLL-ID% ul li input { margin:0px 0px 5px 0px; padding:2%; width:95%; text-indent:2%; font-size:12px; }\r\n\r\n#yop-poll-vote-%POLL-ID% {\r\n\r\n}\r\n.yop-poll-results-bar-%POLL-ID% { background:#f5f5f5; }\r\n.yop-poll-results-bar-%POLL-ID% div { background:#555 !important; }\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-vote-%POLL-ID% button { float:left; }\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% {\r\n float: right;\r\n margin-bottom: 20px;\r\n margin-top: -20px;\r\n width: auto;\r\n}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% a { color:#FB6911; text-decoration:underline; font-size:12px;}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-back-%POLL-ID% a { color:#FB6911; text-decoration:underline; font-size:12px;}\r\n#yop-poll-vote-%POLL-ID% div { float:left; width:100%; }\r\n\r\n#yop-poll-container-error-%POLL-ID% {\r\n font-size:12px;\r\n font-style:italic;\r\n color:red;\r\n text-transform:lowercase;\r\n}', 'function stripBorder_%POLL-ID%(object) {\r\n object.each(function() {\r\n if( parseInt(jQuery(this).width() ) > 0) {\r\n jQuery(this).width( parseInt( jQuery(this).width() ) - parseInt(jQuery(this).css(\\".'"'."border-left-width\\".'"'.")) - parseInt(jQuery(this).css(\\".'"'."border-right-width\\".'"'.")) );\r\n }\r\n else {\r\n jQuery(this).css(\\".'"'."border-left-width\\".'"'.", \'0px\');\r\n jQuery(this).css(\\".'"'."border-right-width\\".'"'.", \'0px\');\r\n }\r\n });\r\n}\r\nfunction stripPadding_%POLL-ID%(object) {\r\n object.each(function() { \r\n jQuery(this).width( parseInt( jQuery(this).width() ) - parseInt(jQuery(this).css(\\".'"'."padding-left\\".'"'.")) - parseInt(jQuery(this).css(\\".'"'."padding-left\\".'"'.")) );\r\n });\r\n}\r\n\r\nfunction strip_results_%POLL-ID%() {\r\n stripPadding_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop_poll_li_result-%POLL-ID%\\".'"'.") ); \r\n stripBorder_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-result-bar-%POLL-ID%\\".'"'."));\r\n}\r\n\r\njQuery(document).ready(function(e) {\r\n if(typeof window.strip_results_%POLL-ID% == \'function\') \r\n strip_results_%POLL-ID%();\r\n \r\n if(typeof window.tabulate_answers_%POLL-ID% == \'function\') \r\n tabulate_answers_%POLL-ID%();\r\n \r\n if(typeof window.tabulate_results_%POLL-ID% == \'function\') \r\n tabulate_results_%POLL-ID%();\r\n \r\n});\r\n\r\nfunction equalWidth_%POLL-ID%(obj, cols) {\r\n var widest = 0; \r\n obj.each(function() {\r\n var thisWidth = jQuery(this).width();\r\n if(thisWidth > widest) {\r\n widest = thisWidth; \r\n } \r\n }); \r\n width = parseInt( widest / cols); \r\n obj.width(width); \r\n obj.css(\'float\', \'left\');\r\n}\r\n\r\nfunction tabulate_answers_%POLL-ID%() {\r\n equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-answer-%POLL-ID%\\".'"'."), %ANSWERS-TABULATED-COLS% );\r\n}\r\n\r\nfunction tabulate_results_%POLL-ID%() {\r\n equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-result-%POLL-ID%\\".'"'."), %RESULTS-TABULATED-COLS% );\r\n}', 'other', NOW(), NOW()),
140
+ ('Orange v3', '<div id=\\".'"'."yop-poll-name-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-name\\".'"'.">%POLL-NAME%</div>\r\n<div id=\\".'"'."yop-poll-question-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-question\\".'"'.">%POLL-QUESTION%</div>\r\n<div id=\\".'"'."yop-poll-answers-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-answers\\".'"'.">\r\n <ul>\r\n [ANSWER_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-answer-%POLL-ID%\\".'"'.">\r\n %POLL-ANSWER-CHECK-INPUT% \r\n %POLL-ANSWER-LABEL%\r\n <div class=\\".'"'."yop-poll-results-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-RESULT-LABEL%</div>\r\n <div class=\\".'"'."yop-poll-results-bar-%POLL-ID%\\".'"'.">\r\n %POLL-ANSWER-RESULT-BAR%\r\n </div>\r\n </li>\r\n [/ANSWER_CONTAINER]\r\n [OTHER_ANSWER_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-answer-%POLL-ID%\\".'"'.">\r\n %POLL-OTHER-ANSWER-CHECK-INPUT% \r\n %POLL-OTHER-ANSWER-LABEL% \r\n %POLL-ANSWER-RESULT-LABEL% \r\n %POLL-OTHER-ANSWER-TEXT-INPUT% \r\n <div class=\\".'"'."yop-poll-results-bar-%POLL-ID%\\".'"'.">\r\n %POLL-ANSWER-RESULT-BAR%\r\n </div>\r\n </li>\r\n [/OTHER_ANSWER_CONTAINER]\r\n </ul>\r\n</div>\r\n<div id=\\".'"'."yop-poll-custom-%POLL-ID%\\".'"'.">\r\n <ul>\r\n [CUSTOM_FIELD_CONTAINER]\r\n <li>%POLL-CUSTOM-FIELD-LABEL% %POLL-CUSTOM-FIELD-TEXT-INPUT%</li>\r\n [/CUSTOM_FIELD_CONTAINER]\r\n </ul>\r\n</div> \r\n<div id=\\".'"'."yop-poll-vote-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-footer\\".'"'.">\r\n <div>%POLL-VOTE-BUTTON%</div>\r\n <div id=\\".'"'."yop-poll-results-%POLL-ID%\\".'"'.">%POLL-VIEW-RESULT-LINK%</div>\r\n <div>%POLL-TOTAL-VOTERS%</div>\r\n <div>%POLL-TOTAL-VOTES%</div>\r\n</div>', '<div id=\\".'"'."yop-poll-name-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-name\\".'"'.">%POLL-NAME%</div>\r\n<div id=\\".'"'."yop-poll-question-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-question\\".'"'.">%POLL-QUESTION%</div>\r\n<div id=\\".'"'."yop-poll-answers-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-answers\\".'"'.">\r\n <ul>\r\n [ANSWER_RESULT_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-result-%POLL-ID%\\".'"'.">\r\n <label class=\\".'"'."pds-feedback-label-%POLL-ID%\\".'"'.">\r\n <span class=\\".'"'."pds-answer-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-LABEL%</span>\r\n <span class=\\".'"'."pds-feedback-result-%POLL-ID%\\".'"'.">\r\n <span class=\\".'"'."pds-feedback-per-%POLL-ID%\\".'"'."> %POLL-ANSWER-RESULT-LABEL%</span>\r\n </span>\r\n </label>\r\n <div>\r\n %POLL-ANSWER-RESULT-BAR%\r\n </div>\r\n </li>\r\n [/ANSWER_RESULT_CONTAINER]\r\n </ul>\r\n</div>\r\n<div id=\\".'"'."yop-poll-vote-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-footer\\".'"'.">\r\n <div>%POLL-TOTAL-VOTERS%</div>\r\n <div>%POLL-TOTAL-VOTES%</div>\r\n <div id=\\".'"'."yop-poll-back-%POLL-ID%\\".'"'.">%POLL-BACK-TO-VOTE-LINK%</div>\r\n</div>', 'This poll is about to <br>\r\nstart at %POLL-START-DATE%<br>\r\nand finish at %POLL-END-DATE%<br>', 'This poll is closed!\r\nPoll activity: <br>\r\nstart_date %POLL-START-DATE%<br>\r\nend_date %POLL-END-DATE%<br>\r\n\r\nPoll Results:\r\n<div id=\\".'"'."yop-poll-question-%POLL-ID%\\".'"'." class=\\".'"'."yop-poll-question\\".'"'.">%POLL-QUESTION%</div>\r\n<div id=\\".'"'."yop-poll-answers-1\\".'"'." class=\\".'"'."yop-poll-answers\\".'"'.">\r\n <ul>\r\n [ANSWER_RESULT_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-result-%POLL-ID%\\".'"'.">\r\n <label class=\\".'"'."pds-feedback-label\\".'"'.">\r\n <span class=\\".'"'."pds-answer-text\\".'"'.">%POLL-ANSWER-LABEL%</span>\r\n <span class=\\".'"'."pds-feedback-result\\".'"'.">\r\n <span class=\\".'"'."pds-feedback-per\\".'"'."> %POLL-ANSWER-RESULT-LABEL%</span>\r\n </span>\r\n </label>\r\n <span class=\\".'"'."pds-clear\\".'"'." style=\\".'"'."display: block;clear: both;height:1px;line-height:1px;\\".'"'."> </span>\r\n %POLL-ANSWER-RESULT-BAR%\r\n </li>\r\n [/ANSWER_RESULT_CONTAINER]\r\n </ul>\r\n</div>\r\n%POLL-VOTE-BUTTON%', '#yop-poll-container-%POLL-ID% {\r\n width:200px;\r\n background:#fff;\r\n padding:10px;\r\n color:#555;\r\n overflow:hidden;\r\n font-size:12px;\r\n border:5px solid #FB6911;\r\n}\r\n#yop-poll-name-%POLL-ID% {\r\n font-size:14px;\r\n font-weight:bold;\r\n}\r\n\r\n#yop-poll-question-%POLL-ID% {\r\n font-size:14px;\r\n margin:5px 0px;\r\n}\r\n#yop-poll-answers-%POLL-ID% { }\r\n#yop-poll-answers-%POLL-ID% ul {\r\n list-style: none outside none;\r\n margin: 0;\r\n padding: 0;\r\n}\r\n#yop-poll-answers-%POLL-ID% ul li { \r\n font-style:normal;\r\n margin:0px 0px 10px 0px;\r\n padding:0px;\r\n font-size:12px;\r\n}\r\n#yop-poll-answers-%POLL-ID% ul li input { \r\n margin:0px; \r\n float:none;\r\n}\r\n#yop-poll-answers-%POLL-ID% ul li label { \r\n margin:0px; \r\n font-style:normal; \r\n font-weight:normal; \r\n font-size:12px; \r\n float:none;\r\n}\r\n.yop-poll-results-%POLL-ID% {\r\n font-size: 12px;\r\n font-style: italic;\r\n font-weight: normal;\r\n margin-left: 15px;\r\n}\r\n\r\n#yop-poll-custom-%POLL-ID% { }\r\n#yop-poll-custom-%POLL-ID% ul {\r\n list-style: none outside none;\r\n margin: 0;\r\n padding: 0;\r\n}\r\n#yop-poll-custom-%POLL-ID% ul li { \r\n padding:0px;\r\n margin:0px; \r\n font-size:14px;\r\n}\r\n#yop-poll-custom-%POLL-ID% ul li input { margin:0px 0px 5px 0px; padding:2%; width:96%; text-indent:2%; font-size:12px; }\r\n\r\n#yop-poll-vote-%POLL-ID% {\r\n\r\n}\r\n.yop-poll-results-bar-%POLL-ID% { background:#f5f5f5; }\r\n.yop-poll-results-bar-%POLL-ID% div { background:#555 !important; }\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-vote-%POLL-ID% button { float:left; }\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% {\r\n float: right;\r\n margin-bottom: 20px;\r\n margin-top: -20px;\r\n width: auto;\r\n}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% a { color:#FB6911; text-decoration:underline; font-size:12px;}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-back-%POLL-ID% a { color:#FB6911; text-decoration:underline; font-size:12px;}\r\n#yop-poll-vote-%POLL-ID% div { float:left; width:100%; }\r\n\r\n#yop-poll-container-error-%POLL-ID% {\r\n font-size:12px;\r\n font-style:italic;\r\n color:red;\r\n text-transform:lowercase;\r\n}', 'function stripBorder_%POLL-ID%(object) {\r\n object.each(function() {\r\n if( parseInt(jQuery(this).width() ) > 0) {\r\n jQuery(this).width( parseInt( jQuery(this).width() ) - parseInt(jQuery(this).css(\\".'"'."border-left-width\\".'"'.")) - parseInt(jQuery(this).css(\\".'"'."border-right-width\\".'"'.")) );\r\n }\r\n else {\r\n jQuery(this).css(\\".'"'."border-left-width\\".'"'.", \'0px\');\r\n jQuery(this).css(\\".'"'."border-right-width\\".'"'.", \'0px\');\r\n }\r\n });\r\n}\r\nfunction stripPadding_%POLL-ID%(object) {\r\n object.each(function() { \r\n jQuery(this).width( parseInt( jQuery(this).width() ) - parseInt(jQuery(this).css(\\".'"'."padding-left\\".'"'.")) - parseInt(jQuery(this).css(\\".'"'."padding-left\\".'"'.")) );\r\n });\r\n}\r\n\r\nfunction strip_results_%POLL-ID%() {\r\n stripPadding_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop_poll_li_result-%POLL-ID%\\".'"'.") ); \r\n stripBorder_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-result-bar-%POLL-ID%\\".'"'."));\r\n}\r\n\r\njQuery(document).ready(function(e) {\r\n if(typeof window.strip_results_%POLL-ID% == \'function\') \r\n strip_results_%POLL-ID%();\r\n \r\n if(typeof window.tabulate_answers_%POLL-ID% == \'function\') \r\n tabulate_answers_%POLL-ID%();\r\n \r\n if(typeof window.tabulate_results_%POLL-ID% == \'function\') \r\n tabulate_results_%POLL-ID%();\r\n \r\n});\r\n\r\nfunction equalWidth_%POLL-ID%(obj, cols) {\r\n var widest = 0; \r\n obj.each(function() {\r\n var thisWidth = jQuery(this).width();\r\n if(thisWidth > widest) {\r\n widest = thisWidth; \r\n } \r\n }); \r\n width = parseInt( widest / cols); \r\n obj.width(width); \r\n obj.css(\'float\', \'left\');\r\n}\r\n\r\nfunction tabulate_answers_%POLL-ID%() {\r\n equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-answer-%POLL-ID%\\".'"'."), %ANSWERS-TABULATED-COLS% );\r\n}\r\n\r\nfunction tabulate_results_%POLL-ID%() {\r\n equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-result-%POLL-ID%\\".'"'."), %RESULTS-TABULATED-COLS% );\r\n}', 'other', NOW(), NOW())
141
"
142
);
143
}
inc/yop_poll_model.php CHANGED
@@ -487,6 +487,40 @@
487
}
488
}
489
490
public function make_poll_from_request_data ( $request = array(), $config = null ) {
491
$this->poll['id'] = isset( $request['yop_poll_id'] ) ? trim( $request['yop_poll_id'] ) : null;
492
$this->poll['name'] = isset( $request['yop_poll_name'] ) ? trim( $request['yop_poll_name'] ) : null;
@@ -584,7 +618,7 @@
584
}
585
586
//if ( count( $poll_options ) > 0 )
587
- update_yop_poll_meta( $this->poll['id'], 'options', $poll_options );
588
589
//inserting answers to db
590
foreach( $default_options as $option_name => $option_value ) {
@@ -607,7 +641,7 @@
607
}
608
}
609
//if ( count( $poll_answer_options ) > 0 )
610
- update_yop_poll_answer_meta( $answer_id, 'options', $poll_answer_options, true );
611
}
612
}
613
}
@@ -664,7 +698,7 @@
664
$poll_options['never_expire'] = 'no';
665
}
666
//if ( count( $poll_options ) > 0 )
667
- update_yop_poll_meta( $this->poll['id'], 'options', $poll_options );
668
669
//add update answers in db
670
foreach( $default_options as $option_name => $option_value ) {
@@ -697,8 +731,8 @@
697
$poll_answer_options[ $option_name ] = $option_value;
698
}
699
}
700
- //if ( count( $poll_answer_options ) > 0 )
701
- update_yop_poll_answer_meta( $answer_id, 'options', $poll_answer_options, true );
702
}
703
}
704
}
@@ -2559,7 +2593,8 @@
2559
}
2560
2561
public static function display_poll_result_bar( $poll_id = 0, $answer_id = 0, $procent = 0, $poll_options = array() ) {
2562
-
2563
$result_bar = '<div style="'.
2564
'width:'.$procent.'%; ';
2565
if ( 'no' == $poll_options['use_template_bar'] ) {
@@ -2574,6 +2609,7 @@
2574
'class="yop-poll-result-bar-'.$poll_id.'"'.
2575
'>'.
2576
'</div>';
2577
return $result_bar;
2578
}
2579
487
}
488
}
489
490
+ public function reset_poll_template ( $request = array(), $config = null ) {
491
+ $this->make_poll_template_from_request_data( $request, $config );
492
+ $result = self::get_poll_template_from_database_by_id( $this->template['id'] );
493
+ if( isset( $result['id'] ) ) {
494
+ self::reset_poll_template_in_database( $this->template['id'] );
495
+ return $this->template['id'];
496
+ }
497
+ else {
498
+ $this->error = __( 'This poll template doesn`t exist!', 'yop_poll' );
499
+ return false;
500
+ }
501
+ }
502
+
503
+ private static function reset_poll_template_in_database( $poll_id ) {
504
+ global $wpdb;
505
+ $wpdb->query(
506
+ $wpdb->prepare(
507
+ "UPDATE `". $wpdb->yop_poll_templates . "` SET
508
+ `before_vote_template` = '<div id=\\".'"'."yop-poll-name-%%POLL-ID%%\\".'"'." class=\\".'"'."yop-poll-name\\".'"'.">%%POLL-NAME%%</div>\r\n<div id=\\".'"'."yop-poll-question-%%POLL-ID%%\\".'"'." class=\\".'"'."yop-poll-question\\".'"'.">%%POLL-QUESTION%%</div>\r\n<div id=\\".'"'."yop-poll-answers-%%POLL-ID%%\\".'"'." class=\\".'"'."yop-poll-answers\\".'"'.">\r\n <ul>\r\n [ANSWER_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-answer-%%POLL-ID%%\\".'"'.">\r\n %%POLL-ANSWER-CHECK-INPUT%% \r\n %%POLL-ANSWER-LABEL%%\r\n <div class=\\".'"'."yop-poll-results-text-%%POLL-ID%%\\".'"'.">%%POLL-ANSWER-RESULT-LABEL%%</div>\r\n <div class=\\".'"'."yop-poll-results-bar-%%POLL-ID%%\\".'"'.">\r\n %%POLL-ANSWER-RESULT-BAR%%\r\n </div>\r\n </li>\r\n [/ANSWER_CONTAINER]\r\n [OTHER_ANSWER_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-answer-%%POLL-ID%%\\".'"'.">\r\n %%POLL-OTHER-ANSWER-CHECK-INPUT%% \r\n %%POLL-OTHER-ANSWER-LABEL%% \r\n %%POLL-ANSWER-RESULT-LABEL%% \r\n %%POLL-OTHER-ANSWER-TEXT-INPUT%% \r\n <div class=\\".'"'."yop-poll-results-bar-%%POLL-ID%%\\".'"'.">\r\n %%POLL-ANSWER-RESULT-BAR%%\r\n </div>\r\n </li>\r\n [/OTHER_ANSWER_CONTAINER]\r\n </ul>\r\n</div>\r\n<div id=\\".'"'."yop-poll-custom-%%POLL-ID%%\\".'"'.">\r\n <ul>\r\n [CUSTOM_FIELD_CONTAINER]\r\n <li>%%POLL-CUSTOM-FIELD-LABEL%% %%POLL-CUSTOM-FIELD-TEXT-INPUT%%</li>\r\n [/CUSTOM_FIELD_CONTAINER]\r\n </ul>\r\n</div> \r\n<div id=\\".'"'."yop-poll-vote-%%POLL-ID%%\\".'"'." class=\\".'"'."yop-poll-footer\\".'"'.">\r\n <div>%%POLL-VOTE-BUTTON%%</div>\r\n <div id=\\".'"'."yop-poll-results-%%POLL-ID%%\\".'"'.">%%POLL-VIEW-RESULT-LINK%%</div>\r\n <div>%%POLL-TOTAL-VOTERS%%</div>\r\n <div>%%POLL-TOTAL-VOTES%%</div>\r\n</div>',
509
+ `after_vote_template` = '<div id=\\".'"'."yop-poll-name-%%POLL-ID%%\\".'"'." class=\\".'"'."yop-poll-name\\".'"'.">%%POLL-NAME%%</div>\r\n<div id=\\".'"'."yop-poll-question-%%POLL-ID%%\\".'"'." class=\\".'"'."yop-poll-question\\".'"'.">%%POLL-QUESTION%%</div>\r\n<div id=\\".'"'."yop-poll-answers-%%POLL-ID%%\\".'"'." class=\\".'"'."yop-poll-answers\\".'"'.">\r\n <ul>\r\n [ANSWER_RESULT_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-result-%%POLL-ID%%\\".'"'.">\r\n <label class=\\".'"'."pds-feedback-label-%%POLL-ID%%\\".'"'.">\r\n <span class=\\".'"'."pds-answer-text-%%POLL-ID%%\\".'"'.">%%POLL-ANSWER-LABEL%%</span>\r\n <span class=\\".'"'."pds-feedback-result-%%POLL-ID%%\\".'"'.">\r\n <span class=\\".'"'."pds-feedback-per-%%POLL-ID%%\\".'"'."> %%POLL-ANSWER-RESULT-LABEL%%</span>\r\n </span>\r\n </label>\r\n <div>\r\n %%POLL-ANSWER-RESULT-BAR%%\r\n </div>\r\n </li>\r\n [/ANSWER_RESULT_CONTAINER]\r\n </ul>\r\n</div>\r\n<div id=\\".'"'."yop-poll-vote-%%POLL-ID%%\\".'"'." class=\\".'"'."yop-poll-footer\\".'"'.">\r\n <div>%%POLL-TOTAL-VOTERS%%</div>\r\n <div>%%POLL-TOTAL-VOTES%%</div>\r\n <div id=\\".'"'."yop-poll-back-%%POLL-ID%%\\".'"'.">%%POLL-BACK-TO-VOTE-LINK%%</div>\r\n</div>',
510
+ `before_start_date_template` = 'This poll is about to <br>\r\nstart at %%POLL-START-DATE%%<br>\r\nand finish at %%POLL-END-DATE%%<br>',
511
+ `after_end_date_template` = 'This poll is closed!\r\nPoll activity: <br>\r\nstart_date %%POLL-START-DATE%%<br>\r\nend_date %%POLL-END-DATE%%<br>\r\n\r\nPoll Results:\r\n<div id=\\".'"'."yop-poll-question-%%POLL-ID%%\\".'"'." class=\\".'"'."yop-poll-question\\".'"'.">%%POLL-QUESTION%%</div>\r\n<div id=\\".'"'."yop-poll-answers-1\\".'"'." class=\\".'"'."yop-poll-answers\\".'"'.">\r\n <ul>\r\n [ANSWER_RESULT_CONTAINER]\r\n <li class=\\".'"'."yop-poll-li-result-%%POLL-ID%%\\".'"'.">\r\n <label class=\\".'"'."pds-feedback-label\\".'"'.">\r\n <span class=\\".'"'."pds-answer-text\\".'"'.">%%POLL-ANSWER-LABEL%%</span>\r\n <span class=\\".'"'."pds-feedback-result\\".'"'.">\r\n <span class=\\".'"'."pds-feedback-per\\".'"'."> %%POLL-ANSWER-RESULT-LABEL%%</span>\r\n </span>\r\n </label>\r\n <span class=\\".'"'."pds-clear\\".'"'." style=\\".'"'."display: block;clear: both;height:1px;line-height:1px;\\".'"'."> </span>\r\n %%POLL-ANSWER-RESULT-BAR%%\r\n </li>\r\n [/ANSWER_RESULT_CONTAINER]\r\n </ul>\r\n</div>\r\n%%POLL-VOTE-BUTTON%%',
512
+ `css` = '#yop-poll-container-%%POLL-ID%% {\r\n width:200px;\r\n background:#fff;\r\n padding:10px;\r\n color:#555;\r\n overflow:hidden;\r\n font-size:12px;\r\n}\r\n#yop-poll-name-%%POLL-ID%% {\r\n font-size:14px;\r\n font-weight:bold;\r\n}\r\n\r\n#yop-poll-question-%%POLL-ID%% {\r\n font-size:14px;\r\n margin:5px 0px;\r\n}\r\n#yop-poll-answers-%%POLL-ID%% { }\r\n#yop-poll-answers-%%POLL-ID%% ul {\r\n list-style: none outside none;\r\n margin: 0;\r\n padding: 0;\r\n}\r\n#yop-poll-answers-%%POLL-ID%% ul li { \r\n font-style:normal;\r\n margin:0px 0px 10px 0px;\r\n padding:0px;\r\n font-size:12px;\r\n}\r\n#yop-poll-answers-%%POLL-ID%% ul li input { \r\n margin:0px; \r\n float:none;\r\n}\r\n#yop-poll-answers-%%POLL-ID%% ul li label { \r\n margin:0px; \r\n font-style:normal; \r\n font-weight:normal; \r\n font-size:12px; \r\n float:none;\r\n}\r\n.yop-poll-results-%%POLL-ID%% {\r\n font-size: 12px;\r\n font-style: italic;\r\n font-weight: normal;\r\n margin-left: 15px;\r\n}\r\n\r\n#yop-poll-custom-%%POLL-ID%% { }\r\n#yop-poll-custom-%%POLL-ID%% ul {\r\n list-style: none outside none;\r\n margin: 0;\r\n padding: 0;\r\n}\r\n#yop-poll-custom-%%POLL-ID%% ul li { \r\n padding:0px;\r\n margin:0px; \r\n font-size:14px;\r\n}\r\n#yop-poll-custom-%%POLL-ID%% ul li input { margin:0px 0px 5px 0px; padding:2%%; width:96%%; text-indent:2%%; font-size:12px; }\r\n\r\n#yop-poll-vote-%%POLL-ID%% {\r\n\r\n}\r\n.yop-poll-results-bar-%%POLL-ID%% { background:#f5f5f5; }\r\n.yop-poll-results-bar-%%POLL-ID%% div { background:#555 !important; }\r\n#yop-poll-vote-%%POLL-ID%% div#yop-poll-vote-%%POLL-ID%% button { float:left; }\r\n#yop-poll-vote-%%POLL-ID%% div#yop-poll-results-%%POLL-ID%% {\r\n float: right;\r\n margin-bottom: 20px;\r\n margin-top: -20px;\r\n width: auto;\r\n}\r\n#yop-poll-vote-%%POLL-ID%% div#yop-poll-results-%%POLL-ID%% a { color:#555; text-decoration:underline; font-size:12px;}\r\n#yop-poll-vote-%%POLL-ID%% div#yop-poll-back-%%POLL-ID%% a { color:#555; text-decoration:underline; font-size:12px;}\r\n#yop-poll-vote-%%POLL-ID%% div { float:left; width:100%%; }\r\n\r\n#yop-poll-container-error-%%POLL-ID%% {\r\n font-size:12px;\r\n font-style:italic;\r\n color:red;\r\n text-transform:lowercase;\r\n}',
513
+ `js` = 'function stripBorder_%%POLL-ID%%(object) {\r\n object.each(function() {\r\n if( parseInt(jQuery(this).width() ) > 0) {\r\n jQuery(this).width( parseInt( jQuery(this).width() ) - parseInt(jQuery(this).css(\\".'"'."border-left-width\\".'"'.")) - parseInt(jQuery(this).css(\\".'"'."border-right-width\\".'"'.")) );\r\n }\r\n else {\r\n jQuery(this).css(\\".'"'."border-left-width\\".'"'.", \'0px\');\r\n jQuery(this).css(\\".'"'."border-right-width\\".'"'.", \'0px\');\r\n }\r\n });\r\n}\r\nfunction stripPadding_%%POLL-ID%%(object) {\r\n object.each(function() { \r\n jQuery(this).width( parseInt( jQuery(this).width() ) - parseInt(jQuery(this).css(\\".'"'."padding-left\\".'"'.")) - parseInt(jQuery(this).css(\\".'"'."padding-left\\".'"'.")) );\r\n });\r\n}\r\n\r\nfunction strip_results_%%POLL-ID%%() {\r\n stripPadding_%%POLL-ID%%( jQuery(\\".'"'."#yop-poll-container-%%POLL-ID%% .yop_poll_li_result-%%POLL-ID%%\\".'"'.") ); \r\n stripBorder_%%POLL-ID%%( jQuery(\\".'"'."#yop-poll-container-%%POLL-ID%% .yop-poll-result-bar-%%POLL-ID%%\\".'"'."));\r\n}\r\n\r\njQuery(document).ready(function(e) {\r\n if(typeof window.strip_results_%%POLL-ID%% == \'function\') \r\n strip_results_%%POLL-ID%%();\r\n \r\n if(typeof window.tabulate_answers_%%POLL-ID%% == \'function\') \r\n tabulate_answers_%%POLL-ID%%();\r\n \r\n if(typeof window.tabulate_results_%%POLL-ID%% == \'function\') \r\n tabulate_results_%%POLL-ID%%();\r\n \r\n});\r\n\r\nfunction equalWidth_%%POLL-ID%%(obj, cols) {\r\n var widest = 0; \r\n obj.each(function() {\r\n var thisWidth = jQuery(this).width();\r\n if(thisWidth > widest) {\r\n widest = thisWidth; \r\n } \r\n }); \r\n width = parseInt( widest / cols); \r\n obj.width(width); \r\n obj.css(\'float\', \'left\');\r\n}\r\n\r\nfunction tabulate_answers_%%POLL-ID%%() {\r\n equalWidth_%%POLL-ID%%( jQuery(\\".'"'."#yop-poll-container-%%POLL-ID%% .yop-poll-li-answer-%%POLL-ID%%\\".'"'."), %%ANSWERS-TABULATED-COLS%% );\r\n}\r\n\r\nfunction tabulate_results_%%POLL-ID%%() {\r\n equalWidth_%%POLL-ID%%( jQuery(\\".'"'."#yop-poll-container-%%POLL-ID%% .yop-poll-li-result-%%POLL-ID%%\\".'"'."), %%RESULTS-TABULATED-COLS%% );\r\n}',
514
+ `status` = 'default',
515
+ `last_modified` = NOW()
516
+ WHERE
517
+ id = %d
518
+ ",
519
+ $poll_id
520
+ )
521
+ );
522
+ }
523
+
524
public function make_poll_from_request_data ( $request = array(), $config = null ) {
525
$this->poll['id'] = isset( $request['yop_poll_id'] ) ? trim( $request['yop_poll_id'] ) : null;
526
$this->poll['name'] = isset( $request['yop_poll_name'] ) ? trim( $request['yop_poll_name'] ) : null;
618
}
619
620
//if ( count( $poll_options ) > 0 )
621
+ update_yop_poll_meta( $this->poll['id'], 'options', $poll_options );
622
623
//inserting answers to db
624
foreach( $default_options as $option_name => $option_value ) {
641
}
642
}
643
//if ( count( $poll_answer_options ) > 0 )
644
+ update_yop_poll_answer_meta( $answer_id, 'options', $poll_answer_options, false );
645
}
646
}
647
}
698
$poll_options['never_expire'] = 'no';
699
}
700
//if ( count( $poll_options ) > 0 )
701
+ update_yop_poll_meta( $this->poll['id'], 'options', $poll_options );
702
703
//add update answers in db
704
foreach( $default_options as $option_name => $option_value ) {
731
$poll_answer_options[ $option_name ] = $option_value;
732
}
733
}
734
+ //if ( count( $poll_answer_options ) > 0 ) {
735
+ update_yop_poll_answer_meta( $answer_id, 'options', $poll_answer_options, false );
736
}
737
}
738
}
2593
}
2594
2595
public static function display_poll_result_bar( $poll_id = 0, $answer_id = 0, $procent = 0, $poll_options = array() ) {
2596
+ $result_bar = '';
2597
+ if ( floatval( $procent ) > 0 ) {
2598
$result_bar = '<div style="'.
2599
'width:'.$procent.'%; ';
2600
if ( 'no' == $poll_options['use_template_bar'] ) {
2609
'class="yop-poll-result-bar-'.$poll_id.'"'.
2610
'>'.
2611
'</div>';
2612
+ }
2613
return $result_bar;
2614
}
2615
js/yop-poll-admin-templates.js CHANGED
@@ -1,5 +1,5 @@
1
jQuery(document).ready(function(jQuery) {
2
- jQuery('#yop-poll-edit-add-new-template-form-submit').click( function() {
3
jQuery.ajax({
4
type: 'POST',
5
url: yop_poll_add_new_template_config.ajax.url,
@@ -29,6 +29,38 @@ jQuery(document).ready(function(jQuery) {
29
}
30
});
31
});
32
jQuery('#yop-poll-template-before-start-date-handler').click( function() {
33
jQuery('#yop-poll-template-before-start-date-div').children('.inside').toggle('medium');
34
});
1
jQuery(document).ready(function(jQuery) {
2
+ jQuery('#yop-poll-edit-add-new-template-form-save').click( function() {
3
jQuery.ajax({
4
type: 'POST',
5
url: yop_poll_add_new_template_config.ajax.url,
29
}
30
});
31
});
32
+
33
+ jQuery('#yop-poll-edit-add-new-template-form-reset').click( function() {
34
+ jQuery.ajax({
35
+ type: 'POST',
36
+ url: yop_poll_add_new_template_config.ajax.url,
37
+ data: 'action='+yop_poll_add_new_template_config.ajax.reset_action+'&'+jQuery( "#yop-poll-edit-add-new-template-form" ).serialize(),
38
+ cache: false,
39
+ beforeSend: function() {
40
+ jQuery('html, body').animate({scrollTop: '0px'}, 800);
41
+ jQuery('#message').html('<p>' + yop_poll_add_new_template_config.ajax.beforeSendMessage + '</p>');
42
+ jQuery("#message").removeClass();
43
+ jQuery('#message').addClass('updated');
44
+ jQuery('#message').show();
45
+ },
46
+ error: function() {
47
+ jQuery('html, body').animate({scrollTop: '0px'}, 800);
48
+ jQuery('#message').html('<p>' + yop_poll_add_new_template_config.ajax.errorMessage + '</p>');
49
+ jQuery("#message").removeClass();
50
+ jQuery('#message').addClass('error');
51
+ jQuery('#message').show();
52
+ },
53
+ success:
54
+ function( data ){
55
+ jQuery('html, body').animate({scrollTop: '0px'}, 800);
56
+ jQuery('#message').html('<p>' + data + '</p>');
57
+ jQuery("#message").removeClass();
58
+ jQuery('#message').addClass('updated');
59
+ jQuery('#message').show();
60
+ setTimeout('location.reload();', 2000 );
61
+ }
62
+ });
63
+ });
64
jQuery('#yop-poll-template-before-start-date-handler').click( function() {
65
jQuery('#yop-poll-template-before-start-date-div').children('.inside').toggle('medium');
66
});
readme.txt CHANGED
@@ -136,6 +136,9 @@ This plugin was especially designed for flexibility and it is very easy to use.
136
137
== Changelog ==
138
139
= 1.7 =
140
* Fixed bug that was causing poll not to update it's settings
141
136
137
== Changelog ==
138
139
+ = 1.8 =
140
+ * Fixed bug with wordpress editor
141
+
142
= 1.7 =
143
* Fixed bug that was causing poll not to update it's settings
144
yop_poll.php CHANGED
@@ -5,10 +5,10 @@
5
Description: Use a full option polling functionality to get the answers you need. YOP Poll is the perfect, easy to use plugin for your WordPress website.
6
Author: yourownprogrammer
7
Author URL: http://www.yourownprogrammer.com
8
- Version: 1.7
9
*/
10
define( 'YOP_POLL_WP_VERSION', '3.3.0' );
11
- define( 'YOP_POLL_VERSION', '1.7' );
12
define( 'YOP_POLL_PATH', plugin_dir_path( __FILE__ ) );
13
define( 'YOP_POLL_URL', plugins_url( '', __FILE__ ) );
14
define( 'YOP_POLL_PLUGIN_FILE', plugin_basename( __FILE__ ) );
5
Description: Use a full option polling functionality to get the answers you need. YOP Poll is the perfect, easy to use plugin for your WordPress website.
6
Author: yourownprogrammer
7
Author URL: http://www.yourownprogrammer.com
8
+ Version: 1.8
9
*/
10
define( 'YOP_POLL_WP_VERSION', '3.3.0' );
11
+ define( 'YOP_POLL_VERSION', '1.8' );
12
define( 'YOP_POLL_PATH', plugin_dir_path( __FILE__ ) );
13
define( 'YOP_POLL_URL', plugins_url( '', __FILE__ ) );
14
define( 'YOP_POLL_PLUGIN_FILE', plugin_basename( __FILE__ ) );