YOP Poll - Version 2.0

Version Description

  • Fixed various bugs with templates
Download this release

Release Info

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

Code changes from version 1.9 to 2.0

inc/admin.php CHANGED
@@ -2567,7 +2567,7 @@
2567
$newinput['answer_result_label'] = $default_options['answer_result_label'];
2568
$errors .= __( 'Option "Poll Answer Result Label" Not Updated!', 'yop_poll' ).$message_delimiter;
2569
}
2570
-
2571
//singular_answer_result_votes_number_label
2572
if ( isset( $input['singular_answer_result_votes_number_label'] ) ) {
2573
if ( '' != $input['singular_answer_result_votes_number_label'] ) {
@@ -2583,7 +2583,7 @@
2583
$newinput['singular_answer_result_votes_number_label'] = $default_options['singular_answer_result_votes_number_label'];
2584
$errors .= __( 'Option "Poll Answer Result Votes Number Singular Label" Not Updated!', 'yop_poll' ).$message_delimiter;
2585
}
2586
-
2587
//plural_answer_result_votes_number_label
2588
if ( isset( $input['plural_answer_result_votes_number_label'] ) ) {
2589
if ( '' != $input['singular_answer_result_votes_number_label'] ) {
@@ -2818,7 +2818,7 @@
2818
$newinput['blocking_voters'] = $default_options['blocking_voters'];
2819
$errors .= __( 'Option "Blocking Voters" Not Updated!', 'yop_poll' ).$message_delimiter;
2820
}
2821
-
2822
//percentages_decimals
2823
if ( isset( $input['percentages_decimals'] ) ) {
2824
if ( ctype_digit( $input['percentages_decimals'] ) ) {
@@ -3252,7 +3252,7 @@
3252
<input id="yop-poll-singular-answer-result-votes-number-label" type="text" name="yop_poll_options[singular_answer_result_votes_number_label]" value="<?php echo esc_html( stripslashes( $default_options['singular_answer_result_votes_number_label'] ) ); ?>" />
3253
<?php _e( 'Plural', 'yop_poll' ); ?>
3254
<input id="yop-poll-plural-answer-result-votes-number-label" type="text" name="yop_poll_options[plural_answer_result_votes_number_label]" value="<?php echo esc_html( stripslashes( $default_options['plural_answer_result_votes_number_label'] ) ); ?>" />
3255
-
3256
</td>
3257
</tr>
3258
<tr>
@@ -3941,7 +3941,7 @@
3941
<input id="yop-poll-singular-answer-result-votes-number-label" type="text" name="yop_poll_options[singular_answer_result_votes_number_label]" value="<?php echo esc_html( stripslashes( $default_options['singular_answer_result_votes_number_label'] ) ); ?>" />
3942
<?php _e( 'Plural', 'yop_poll' ); ?>
3943
<input id="yop-poll-plural-answer-result-votes-number-label" type="text" name="yop_poll_options[plural_answer_result_votes_number_label]" value="<?php echo esc_html( stripslashes( $default_options['plural_answer_result_votes_number_label'] ) ); ?>" />
3944
-
3945
</td>
3946
</tr>
3947
<tr>
@@ -4262,8 +4262,70 @@
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,7 +4404,7 @@
4342
}
4343
die();
4344
}
4345
-
4346
function ajax_reset_poll_template() {
4347
if ( is_admin() ) {
4348
global $wpdb;
2567
$newinput['answer_result_label'] = $default_options['answer_result_label'];
2568
$errors .= __( 'Option "Poll Answer Result Label" Not Updated!', 'yop_poll' ).$message_delimiter;
2569
}
2570
+
2571
//singular_answer_result_votes_number_label
2572
if ( isset( $input['singular_answer_result_votes_number_label'] ) ) {
2573
if ( '' != $input['singular_answer_result_votes_number_label'] ) {
2583
$newinput['singular_answer_result_votes_number_label'] = $default_options['singular_answer_result_votes_number_label'];
2584
$errors .= __( 'Option "Poll Answer Result Votes Number Singular Label" Not Updated!', 'yop_poll' ).$message_delimiter;
2585
}
2586
+
2587
//plural_answer_result_votes_number_label
2588
if ( isset( $input['plural_answer_result_votes_number_label'] ) ) {
2589
if ( '' != $input['singular_answer_result_votes_number_label'] ) {
2818
$newinput['blocking_voters'] = $default_options['blocking_voters'];
2819
$errors .= __( 'Option "Blocking Voters" Not Updated!', 'yop_poll' ).$message_delimiter;
2820
}
2821
+
2822
//percentages_decimals
2823
if ( isset( $input['percentages_decimals'] ) ) {
2824
if ( ctype_digit( $input['percentages_decimals'] ) ) {
3252
<input id="yop-poll-singular-answer-result-votes-number-label" type="text" name="yop_poll_options[singular_answer_result_votes_number_label]" value="<?php echo esc_html( stripslashes( $default_options['singular_answer_result_votes_number_label'] ) ); ?>" />
3253
<?php _e( 'Plural', 'yop_poll' ); ?>
3254
<input id="yop-poll-plural-answer-result-votes-number-label" type="text" name="yop_poll_options[plural_answer_result_votes_number_label]" value="<?php echo esc_html( stripslashes( $default_options['plural_answer_result_votes_number_label'] ) ); ?>" />
3255
+
3256
</td>
3257
</tr>
3258
<tr>
3941
<input id="yop-poll-singular-answer-result-votes-number-label" type="text" name="yop_poll_options[singular_answer_result_votes_number_label]" value="<?php echo esc_html( stripslashes( $default_options['singular_answer_result_votes_number_label'] ) ); ?>" />
3942
<?php _e( 'Plural', 'yop_poll' ); ?>
3943
<input id="yop-poll-plural-answer-result-votes-number-label" type="text" name="yop_poll_options[plural_answer_result_votes_number_label]" value="<?php echo esc_html( stripslashes( $default_options['plural_answer_result_votes_number_label'] ) ); ?>" />
3944
+
3945
</td>
3946
</tr>
3947
<tr>
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 Poll Template', 'yop_poll' ) ?>" id="yop-poll-edit-add-new-template-form-save" />
4266
+ </div>
4267
+ <div class="postbox-container" id="postbox-container-1">
4268
+ <div class="meta-box-sortables ui-sortable" id="side-sortables">
4269
+ <div class="postbox " id="linksubmitdiv">
4270
+ <div title="Click to toggle" class="handlediv">
4271
+ <br />
4272
+ </div>
4273
+ <h3 class="hndle"><span><?php _e( 'Save', 'yop_poll' ); ?></span></h3>
4274
+ <div class="inside">
4275
+ <div id="submitlink" class="submitbox">
4276
+ <div id="major-publishing-actions">
4277
+ <div id="publishing-action">
4278
+ <input type="button" accesskey="p" class="button-primary" value="<?php _e( 'Save Poll Template', 'yop_poll' ); ?>" id="yop-poll-edit-add-new-template-form-save1" />
4279
+ </div>
4280
+ <div class="clear"></div>
4281
+ </div>
4282
+ <div class="clear"></div>
4283
+ </div>
4284
+ </div>
4285
+ </div>
4286
+ <?php
4287
+ if ( 'edit' == $action ) {
4288
+ ?>
4289
+ <div class="postbox " id="linksubmitdiv">
4290
+ <div title="Click to toggle" class="handlediv">
4291
+ <br />
4292
+ </div>
4293
+ <h3 class="hndle"><span><?php _e( 'Reset', 'yop_poll' ); ?></span></h3>
4294
+ <div class="inside">
4295
+ <p><?php _e( 'Select Template For Reset', 'yop_poll') ?>:</p>
4296
+ <label class="screen-reader-text" for="yop-poll-reset-template-id"><?php _e( 'Template to reset', 'yop_poll') ?></label>
4297
+ <select name="yop_poll_reset_template_id" id="yop-poll-reset-template-id">
4298
+ <option value="1"><?php _e( 'White', 'yop_poll') ?></option>
4299
+ <option value="2"><?php _e( 'Grey', 'yop_poll') ?></option>
4300
+ <option value="3"><?php _e( 'Dark', 'yop_poll') ?></option>
4301
+ <option value="4"><?php _e( 'Blue v1', 'yop_poll') ?></option>
4302
+ <option value="5"><?php _e( 'Blue v2', 'yop_poll') ?></option>
4303
+ <option value="6"><?php _e( 'Blue v3', 'yop_poll') ?></option>
4304
+ <option value="7"><?php _e( 'Red v1', 'yop_poll') ?></option>
4305
+ <option value="8"><?php _e( 'Red v2', 'yop_poll') ?></option>
4306
+ <option value="9"><?php _e( 'Red v3', 'yop_poll') ?></option>
4307
+ <option value="10"><?php _e( 'Green v1', 'yop_poll') ?></option>
4308
+ <option value="11"><?php _e( 'Green v2', 'yop_poll') ?></option>
4309
+ <option value="12"><?php _e( 'Green v3', 'yop_poll') ?></option>
4310
+ <option value="13"><?php _e( 'Orange v1', 'yop_poll') ?></option>
4311
+ <option value="14"><?php _e( 'Orange v2', 'yop_poll') ?></option>
4312
+ <option value="15"><?php _e( 'Orange v3', 'yop_poll') ?></option>
4313
+ </select>
4314
+ <div id="submitlink" class="submitbox">
4315
+ <div id="major-publishing-actions">
4316
+ <div id="publishing-action">
4317
+ <input type="button" accesskey="r" class="button-primary" value="<?php _e( 'Reset Poll Template', 'yop_poll' ); ?>" id="yop-poll-edit-add-new-template-form-reset" />
4318
+ </div>
4319
+ <div class="clear"></div>
4320
+ </div>
4321
+ <div class="clear"></div>
4322
+ </div>
4323
+ </div>
4324
+ </div>
4325
+ <?php
4326
+ }
4327
+ ?>
4328
+ </div>
4329
</div>
4330
</div>
4331
<br class="clear">
4404
}
4405
die();
4406
}
4407
+
4408
function ajax_reset_poll_template() {
4409
if ( is_admin() ) {
4410
global $wpdb;
inc/db_schema.php CHANGED
@@ -106,7 +106,7 @@
106
$wpdb->query(
107
"
108
INSERT INTO `". $wpdb->yop_polls . "` (`name`, `question`, `start_date`, `end_date`, `total_votes`, `total_voters`, `status`, `date_added`, `last_modified`, `show_in_archive`) VALUES
109
- ('Default Yop Poll', 'How is my plugin?', '2012-01-01 00:00:00', '9999-12-31 23:59:59', 0, 0, 'open', now(), now(), 'yes')
110
"
111
);
112
$poll_id = $wpdb->insert_id;
@@ -122,23 +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
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
}
144
}
106
$wpdb->query(
107
"
108
INSERT INTO `". $wpdb->yop_polls . "` (`name`, `question`, `start_date`, `end_date`, `total_votes`, `total_voters`, `status`, `date_added`, `last_modified`, `show_in_archive`) VALUES
109
+ ('Default Yop Poll', 'How is my plugin?', NOW(), '9999-12-31 23:59:59', 0, 0, 'open', NOW(), NOW(), 'yes')
110
"
111
);
112
$poll_id = $wpdb->insert_id;
122
123
//adding templates
124
$wpdb->query(
125
+ "INSERT INTO `wp_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 <span class=\\".'"'."yop-poll-results-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-RESULT-LABEL%</span>\r\n %POLL-ANSWER-RESULT-BAR%\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 <span class=\\".'"'."yop-poll-results-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-RESULT-LABEL%</span>\r\n %POLL-OTHER-ANSWER-TEXT-INPUT% \r\n %POLL-ANSWER-RESULT-BAR%\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; height:10px; }\r\n.yop-poll-results-bar-%POLL-ID% div { background:#555; height:10px; }\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, findWidest = false ) {\r\n if ( findWidest ) {\r\n obj.each(function() {\r\n var thisWidth = jQuery(this).width();\r\n width = parseInt(thisWidth / cols); \r\n jQuery(this).width(width); \r\n jQuery(this).css(\'float\', \'left\'); \r\n });\r\n }\r\n else {\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\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 //equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-answer-%POLL-ID% .yop-poll-results-bar-%POLL-ID% div \\".'"'."), %ANSWERS-TABULATED-COLS%, true );\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 //equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-result-%POLL-ID% .yop-poll-results-bar-%POLL-ID% div \\".'"'."), %RESULTS-TABULATED-COLS%, true );\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 <span class=\\".'"'."yop-poll-results-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-RESULT-LABEL%</span>\r\n %POLL-ANSWER-RESULT-BAR%\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 <span class=\\".'"'."yop-poll-results-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-RESULT-LABEL%</span>\r\n %POLL-OTHER-ANSWER-TEXT-INPUT% \r\n %POLL-ANSWER-RESULT-BAR%\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; height:10px; }\r\n.yop-poll-results-bar-%POLL-ID% div { background:#555; height:10px; }\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, findWidest = false ) {\r\n if ( findWidest ) {\r\n obj.each(function() {\r\n var thisWidth = jQuery(this).width();\r\n width = parseInt(thisWidth / cols); \r\n jQuery(this).width(width); \r\n jQuery(this).css(\'float\', \'left\'); \r\n });\r\n }\r\n else {\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\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 //equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-answer-%POLL-ID% .yop-poll-results-bar-%POLL-ID% div \\".'"'."), %ANSWERS-TABULATED-COLS%, true );\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 //equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-result-%POLL-ID% .yop-poll-results-bar-%POLL-ID% div \\".'"'."), %RESULTS-TABULATED-COLS%, true );\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 <span class=\\".'"'."yop-poll-results-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-RESULT-LABEL%</span>\r\n %POLL-ANSWER-RESULT-BAR%\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 <span class=\\".'"'."yop-poll-results-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-RESULT-LABEL%</span>\r\n %POLL-OTHER-ANSWER-TEXT-INPUT% \r\n %POLL-ANSWER-RESULT-BAR%\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; height:10px; }\r\n.yop-poll-results-bar-%POLL-ID% div { background:#333333; height:10px; }\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, findWidest = false ) {\r\n if ( findWidest ) {\r\n obj.each(function() {\r\n var thisWidth = jQuery(this).width();\r\n width = parseInt(thisWidth / cols); \r\n jQuery(this).width(width); \r\n jQuery(this).css(\'float\', \'left\'); \r\n });\r\n }\r\n else {\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\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 //equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-answer-%POLL-ID% .yop-poll-results-bar-%POLL-ID% div \\".'"'."), %ANSWERS-TABULATED-COLS%, true );\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 //equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-result-%POLL-ID% .yop-poll-results-bar-%POLL-ID% div \\".'"'."), %RESULTS-TABULATED-COLS%, true );\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 <span class=\\".'"'."yop-poll-results-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-RESULT-LABEL%</span>\r\n %POLL-ANSWER-RESULT-BAR%\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 <span class=\\".'"'."yop-poll-results-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-RESULT-LABEL%</span>\r\n %POLL-OTHER-ANSWER-TEXT-INPUT% \r\n %POLL-ANSWER-RESULT-BAR%\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; height:10px; }\r\n.yop-poll-results-bar-%POLL-ID% div { background:#555; height:10px; }\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, findWidest = false ) {\r\n if ( findWidest ) {\r\n obj.each(function() {\r\n var thisWidth = jQuery(this).width();\r\n width = parseInt(thisWidth / cols); \r\n jQuery(this).width(width); \r\n jQuery(this).css(\'float\', \'left\'); \r\n });\r\n }\r\n else {\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\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 //equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-answer-%POLL-ID% .yop-poll-results-bar-%POLL-ID% div \\".'"'."), %ANSWERS-TABULATED-COLS%, true );\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 //equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-result-%POLL-ID% .yop-poll-results-bar-%POLL-ID% div \\".'"'."), %RESULTS-TABULATED-COLS%, true );\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 <span class=\\".'"'."yop-poll-results-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-RESULT-LABEL%</span>\r\n %POLL-ANSWER-RESULT-BAR%\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 <span class=\\".'"'."yop-poll-results-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-RESULT-LABEL%</span>\r\n %POLL-OTHER-ANSWER-TEXT-INPUT% \r\n %POLL-ANSWER-RESULT-BAR%\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; height:10px; }\r\n.yop-poll-results-bar-%POLL-ID% div { background:#555; height:10px; }\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, findWidest = false ) {\r\n if ( findWidest ) {\r\n obj.each(function() {\r\n var thisWidth = jQuery(this).width();\r\n width = parseInt(thisWidth / cols); \r\n jQuery(this).width(width); \r\n jQuery(this).css(\'float\', \'left\'); \r\n });\r\n }\r\n else {\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\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 //equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-answer-%POLL-ID% .yop-poll-results-bar-%POLL-ID% div \\".'"'."), %ANSWERS-TABULATED-COLS%, true );\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 //equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-result-%POLL-ID% .yop-poll-results-bar-%POLL-ID% div \\".'"'."), %RESULTS-TABULATED-COLS%, true );\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 <span class=\\".'"'."yop-poll-results-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-RESULT-LABEL%</span>\r\n %POLL-ANSWER-RESULT-BAR%\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 <span class=\\".'"'."yop-poll-results-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-RESULT-LABEL%</span>\r\n %POLL-OTHER-ANSWER-TEXT-INPUT% \r\n %POLL-ANSWER-RESULT-BAR%\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; height:10px; }\r\n.yop-poll-results-bar-%POLL-ID% div { background:#555; height:10px; }\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, findWidest = false ) {\r\n if ( findWidest ) {\r\n obj.each(function() {\r\n var thisWidth = jQuery(this).width();\r\n width = parseInt(thisWidth / cols); \r\n jQuery(this).width(width); \r\n jQuery(this).css(\'float\', \'left\'); \r\n });\r\n }\r\n else {\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\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 //equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-answer-%POLL-ID% .yop-poll-results-bar-%POLL-ID% div \\".'"'."), %ANSWERS-TABULATED-COLS%, true );\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 //equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-result-%POLL-ID% .yop-poll-results-bar-%POLL-ID% div \\".'"'."), %RESULTS-TABULATED-COLS%, true );\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 <span class=\\".'"'."yop-poll-results-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-RESULT-LABEL%</span>\r\n %POLL-ANSWER-RESULT-BAR%\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 <span class=\\".'"'."yop-poll-results-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-RESULT-LABEL%</span>\r\n %POLL-OTHER-ANSWER-TEXT-INPUT% \r\n %POLL-ANSWER-RESULT-BAR%\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; height:10px; }\r\n.yop-poll-results-bar-%POLL-ID% div { background:#555; height:10px; }\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, findWidest = false ) {\r\n if ( findWidest ) {\r\n obj.each(function() {\r\n var thisWidth = jQuery(this).width();\r\n width = parseInt(thisWidth / cols); \r\n jQuery(this).width(width); \r\n jQuery(this).css(\'float\', \'left\'); \r\n });\r\n }\r\n else {\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\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 //equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-answer-%POLL-ID% .yop-poll-results-bar-%POLL-ID% div \\".'"'."), %ANSWERS-TABULATED-COLS%, true );\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 //equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-result-%POLL-ID% .yop-poll-results-bar-%POLL-ID% div \\".'"'."), %RESULTS-TABULATED-COLS%, true );\r\n}', 'other', NOW(), NOW()),
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 <span class=\\".'"'."yop-poll-results-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-RESULT-LABEL%</span>\r\n %POLL-ANSWER-RESULT-BAR%\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 <span class=\\".'"'."yop-poll-results-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-RESULT-LABEL%</span>\r\n %POLL-OTHER-ANSWER-TEXT-INPUT% \r\n %POLL-ANSWER-RESULT-BAR%\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; height:10px; }\r\n.yop-poll-results-bar-%POLL-ID% div { background:#555; height:10px; }\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, findWidest = false ) {\r\n if ( findWidest ) {\r\n obj.each(function() {\r\n var thisWidth = jQuery(this).width();\r\n width = parseInt(thisWidth / cols); \r\n jQuery(this).width(width); \r\n jQuery(this).css(\'float\', \'left\'); \r\n });\r\n }\r\n else {\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\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 //equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-answer-%POLL-ID% .yop-poll-results-bar-%POLL-ID% div \\".'"'."), %ANSWERS-TABULATED-COLS%, true );\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 //equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-result-%POLL-ID% .yop-poll-results-bar-%POLL-ID% div \\".'"'."), %RESULTS-TABULATED-COLS%, true );\r\n}', 'other', NOW(), NOW()),
134
+ ('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 <span class=\\".'"'."yop-poll-results-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-RESULT-LABEL%</span>\r\n %POLL-ANSWER-RESULT-BAR%\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 <span class=\\".'"'."yop-poll-results-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-RESULT-LABEL%</span>\r\n %POLL-OTHER-ANSWER-TEXT-INPUT% \r\n %POLL-ANSWER-RESULT-BAR%\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; height:10px; }\r\n.yop-poll-results-bar-%POLL-ID% div { background:#555; height:10px; }\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, findWidest = false ) {\r\n if ( findWidest ) {\r\n obj.each(function() {\r\n var thisWidth = jQuery(this).width();\r\n width = parseInt(thisWidth / cols); \r\n jQuery(this).width(width); \r\n jQuery(this).css(\'float\', \'left\'); \r\n });\r\n }\r\n else {\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\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 //equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-answer-%POLL-ID% .yop-poll-results-bar-%POLL-ID% div \\".'"'."), %ANSWERS-TABULATED-COLS%, true );\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 //equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-result-%POLL-ID% .yop-poll-results-bar-%POLL-ID% div \\".'"'."), %RESULTS-TABULATED-COLS%, true );\r\n}', 'other', NOW(), NOW()),
135
+ ('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 <span class=\\".'"'."yop-poll-results-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-RESULT-LABEL%</span>\r\n %POLL-ANSWER-RESULT-BAR%\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 <span class=\\".'"'."yop-poll-results-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-RESULT-LABEL%</span>\r\n %POLL-OTHER-ANSWER-TEXT-INPUT% \r\n %POLL-ANSWER-RESULT-BAR%\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; height:10px; }\r\n.yop-poll-results-bar-%POLL-ID% div { background:#555; height:10px; }\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, findWidest = false ) {\r\n if ( findWidest ) {\r\n obj.each(function() {\r\n var thisWidth = jQuery(this).width();\r\n width = parseInt(thisWidth / cols); \r\n jQuery(this).width(width); \r\n jQuery(this).css(\'float\', \'left\'); \r\n });\r\n }\r\n else {\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\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 //equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-answer-%POLL-ID% .yop-poll-results-bar-%POLL-ID% div \\".'"'."), %ANSWERS-TABULATED-COLS%, true );\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 //equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-result-%POLL-ID% .yop-poll-results-bar-%POLL-ID% div \\".'"'."), %RESULTS-TABULATED-COLS%, true );\r\n}', 'other', NOW(), NOW()),
136
+ ('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 <span class=\\".'"'."yop-poll-results-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-RESULT-LABEL%</span>\r\n %POLL-ANSWER-RESULT-BAR%\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 <span class=\\".'"'."yop-poll-results-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-RESULT-LABEL%</span>\r\n %POLL-OTHER-ANSWER-TEXT-INPUT% \r\n %POLL-ANSWER-RESULT-BAR%\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; height:10px; }\r\n.yop-poll-results-bar-%POLL-ID% div { background:#555; height:10px; }\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, findWidest = false ) {\r\n if ( findWidest ) {\r\n obj.each(function() {\r\n var thisWidth = jQuery(this).width();\r\n width = parseInt(thisWidth / cols); \r\n jQuery(this).width(width); \r\n jQuery(this).css(\'float\', \'left\'); \r\n });\r\n }\r\n else {\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\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 //equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-answer-%POLL-ID% .yop-poll-results-bar-%POLL-ID% div \\".'"'."), %ANSWERS-TABULATED-COLS%, true );\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 //equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-result-%POLL-ID% .yop-poll-results-bar-%POLL-ID% div \\".'"'."), %RESULTS-TABULATED-COLS%, true );\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 <span class=\\".'"'."yop-poll-results-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-RESULT-LABEL%</span>\r\n %POLL-ANSWER-RESULT-BAR%\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 <span class=\\".'"'."yop-poll-results-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-RESULT-LABEL%</span>\r\n %POLL-OTHER-ANSWER-TEXT-INPUT% \r\n %POLL-ANSWER-RESULT-BAR%\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; height:10px; }\r\n.yop-poll-results-bar-%POLL-ID% div { background:#555; height:10px; }\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, findWidest = false ) {\r\n if ( findWidest ) {\r\n obj.each(function() {\r\n var thisWidth = jQuery(this).width();\r\n width = parseInt(thisWidth / cols); \r\n jQuery(this).width(width); \r\n jQuery(this).css(\'float\', \'left\'); \r\n });\r\n }\r\n else {\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\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 //equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-answer-%POLL-ID% .yop-poll-results-bar-%POLL-ID% div \\".'"'."), %ANSWERS-TABULATED-COLS%, true );\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 //equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-result-%POLL-ID% .yop-poll-results-bar-%POLL-ID% div \\".'"'."), %RESULTS-TABULATED-COLS%, true );\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 <span class=\\".'"'."yop-poll-results-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-RESULT-LABEL%</span>\r\n %POLL-ANSWER-RESULT-BAR%\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 <span class=\\".'"'."yop-poll-results-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-RESULT-LABEL%</span>\r\n %POLL-OTHER-ANSWER-TEXT-INPUT% \r\n %POLL-ANSWER-RESULT-BAR%\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; height:10px; }\r\n.yop-poll-results-bar-%POLL-ID% div { background:#555; height:10px; }\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, findWidest = false ) {\r\n if ( findWidest ) {\r\n obj.each(function() {\r\n var thisWidth = jQuery(this).width();\r\n width = parseInt(thisWidth / cols); \r\n jQuery(this).width(width); \r\n jQuery(this).css(\'float\', \'left\'); \r\n });\r\n }\r\n else {\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\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 //equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-answer-%POLL-ID% .yop-poll-results-bar-%POLL-ID% div \\".'"'."), %ANSWERS-TABULATED-COLS%, true );\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 //equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-result-%POLL-ID% .yop-poll-results-bar-%POLL-ID% div \\".'"'."), %RESULTS-TABULATED-COLS%, true );\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 <span class=\\".'"'."yop-poll-results-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-RESULT-LABEL%</span>\r\n %POLL-ANSWER-RESULT-BAR%\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 <span class=\\".'"'."yop-poll-results-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-RESULT-LABEL%</span>\r\n %POLL-OTHER-ANSWER-TEXT-INPUT% \r\n %POLL-ANSWER-RESULT-BAR%\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; height:10px; }\r\n.yop-poll-results-bar-%POLL-ID% div { background:#555; height:10px; }\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, findWidest = false ) {\r\n if ( findWidest ) {\r\n obj.each(function() {\r\n var thisWidth = jQuery(this).width();\r\n width = parseInt(thisWidth / cols); \r\n jQuery(this).width(width); \r\n jQuery(this).css(\'float\', \'left\'); \r\n });\r\n }\r\n else {\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\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 //equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-answer-%POLL-ID% .yop-poll-results-bar-%POLL-ID% div \\".'"'."), %ANSWERS-TABULATED-COLS%, true );\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 //equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-result-%POLL-ID% .yop-poll-results-bar-%POLL-ID% div \\".'"'."), %RESULTS-TABULATED-COLS%, true );\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 <span class=\\".'"'."yop-poll-results-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-RESULT-LABEL%</span>\r\n %POLL-ANSWER-RESULT-BAR%\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 <span class=\\".'"'."yop-poll-results-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-RESULT-LABEL%</span>\r\n %POLL-OTHER-ANSWER-TEXT-INPUT% \r\n %POLL-ANSWER-RESULT-BAR%\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; height:10px; }\r\n.yop-poll-results-bar-%POLL-ID% div { background:#555; height:10px; }\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, findWidest = false ) {\r\n if ( findWidest ) {\r\n obj.each(function() {\r\n var thisWidth = jQuery(this).width();\r\n width = parseInt(thisWidth / cols); \r\n jQuery(this).width(width); \r\n jQuery(this).css(\'float\', \'left\'); \r\n });\r\n }\r\n else {\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\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 //equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-answer-%POLL-ID% .yop-poll-results-bar-%POLL-ID% div \\".'"'."), %ANSWERS-TABULATED-COLS%, true );\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 //equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-result-%POLL-ID% .yop-poll-results-bar-%POLL-ID% div \\".'"'."), %RESULTS-TABULATED-COLS%, true );\r\n}', 'other', NOW(), NOW())"
141
);
142
}
143
}
inc/yop_poll_model.php CHANGED
@@ -33,6 +33,7 @@
33
'last_modified' => NULL,
34
'show_in_archive' => NULL,
35
'archive_order' => NULL,
36
);
37
var $vote = false;
38
@@ -387,6 +388,7 @@
387
$this->template['after_end_date_template'] = isset( $request['yop_poll_template_after_end_date'] ) ? trim( $request['yop_poll_template_after_end_date'] ) : null;
388
$this->template['css'] = isset( $request['yop_poll_template_css'] ) ? trim( $request['yop_poll_template_css'] ) : null;
389
$this->template['js'] = isset( $request['yop_poll_template_css'] ) ? trim( $request['yop_poll_template_js'] ) : null;
390
}
391
392
public function add_poll_template_to_database ( $request = array(), $config = null ) {
@@ -490,9 +492,15 @@
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' );
@@ -500,25 +508,149 @@
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 ) {
@@ -623,7 +755,8 @@
623
//inserting answers to db
624
foreach( $default_options as $option_name => $option_value ) {
625
if( isset( $poll_options[ $option_name ]) ) {
626
- $default_options[ $option_name ] = $poll_options[ $option_name ];
627
}
628
}
629
$this->make_answers_from_request_data( $request, $config );
@@ -640,9 +773,9 @@
640
$poll_answer_options[ $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
}
648
}
@@ -697,13 +830,15 @@
697
if( ! isset( $request['yop_poll_options']['never_expire'] ) ) {
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 ) {
705
if( isset( $poll_options[ $option_name ]) ) {
706
- $default_options[ $option_name ] = $poll_options[ $option_name ];
707
}
708
}
709
@@ -732,6 +867,12 @@
732
}
733
}
734
//if ( count( $poll_answer_options ) > 0 ) {
735
update_yop_poll_answer_meta( $answer_id, 'options', $poll_answer_options, false );
736
}
737
}
@@ -2593,23 +2734,29 @@
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'] ) {
2601
- $result_bar .= 'height:'.$poll_options['bar_height'].'px; '.
2602
- 'background-color:#'.$poll_options['bar_background'].'; '.
2603
- 'border-style:'.$poll_options['bar_border_style'].'; '.
2604
- 'border-width:'.$poll_options['bar_border_width'].'px; '.
2605
- 'border-color:#'.$poll_options['bar_border_color'].'; ';
2606
- }
2607
- $result_bar .= '" '.
2608
- 'id="yop-poll-result-bar-'.$answer_id.'" '.
2609
- 'class="yop-poll-result-bar-'.$poll_id.'"'.
2610
- '>'.
2611
- '</div>';
2612
- }
2613
return $result_bar;
2614
}
2615
33
'last_modified' => NULL,
34
'show_in_archive' => NULL,
35
'archive_order' => NULL,
36
+ 'reset_template_id' => NULL,
37
);
38
var $vote = false;
39
388
$this->template['after_end_date_template'] = isset( $request['yop_poll_template_after_end_date'] ) ? trim( $request['yop_poll_template_after_end_date'] ) : null;
389
$this->template['css'] = isset( $request['yop_poll_template_css'] ) ? trim( $request['yop_poll_template_css'] ) : null;
390
$this->template['js'] = isset( $request['yop_poll_template_css'] ) ? trim( $request['yop_poll_template_js'] ) : null;
391
+ $this->template['reset_template_id'] = isset( $request['yop_poll_reset_template_id'] ) ? trim( $request['yop_poll_reset_template_id'] ) : null;
392
}
393
394
public function add_poll_template_to_database ( $request = array(), $config = null ) {
492
public function reset_poll_template ( $request = array(), $config = null ) {
493
$this->make_poll_template_from_request_data( $request, $config );
494
$result = self::get_poll_template_from_database_by_id( $this->template['id'] );
495
+ if ( isset( $result['id'] ) ) {
496
+ if ( '' != $this->template['reset_template_id'] ) {
497
+ self::reset_poll_template_in_database( $this->template['id'], $this->template['reset_template_id'] );
498
+ return $this->template['id'];
499
+ }
500
+ else {
501
+ $this->error = __( 'You need to choose a template to reset!', 'yop_poll' );
502
+ return false;
503
+ }
504
}
505
else {
506
$this->error = __( 'This poll template doesn`t exist!', 'yop_poll' );
508
}
509
}
510
511
+ private static function reset_poll_template_in_database( $poll_id, $template_id ) {
512
global $wpdb;
513
+
514
+ $sql = "UPDATE `" . $wpdb->yop_poll_templates . "` SET ";
515
+ switch ( $template_id ) {
516
+ case '1': //White
517
+ $sql .= "`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 <span class=\\".'"'."yop-poll-results-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-RESULT-LABEL%</span>\r\n %POLL-ANSWER-RESULT-BAR%\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 <span class=\\".'"'."yop-poll-results-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-RESULT-LABEL%</span>\r\n %POLL-OTHER-ANSWER-TEXT-INPUT% \r\n %POLL-ANSWER-RESULT-BAR%\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>',
518
+ `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>',
519
+ `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>',
520
+ `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%',
521
+ `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; height:10px; }\r\n.yop-poll-results-bar-%POLL-ID% div { background:#555; height:10px; }\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}',
522
+ `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, findWidest = false ) {\r\n if ( findWidest ) {\r\n obj.each(function() {\r\n var thisWidth = jQuery(this).width();\r\n width = parseInt(thisWidth / cols); \r\n jQuery(this).width(width); \r\n jQuery(this).css(\'float\', \'left\'); \r\n });\r\n }\r\n else {\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\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 //equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-answer-%POLL-ID% .yop-poll-results-bar-%POLL-ID% div \\".'"'."), %ANSWERS-TABULATED-COLS%, true );\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 //equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-result-%POLL-ID% .yop-poll-results-bar-%POLL-ID% div \\".'"'."), %RESULTS-TABULATED-COLS%, true );\r\n}',
523
+ `last_modified` = NOW() ";
524
+ break;
525
+ case '2': //Grey
526
+ $sql .= "`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 <span class=\\".'"'."yop-poll-results-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-RESULT-LABEL%</span>\r\n %POLL-ANSWER-RESULT-BAR%\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 <span class=\\".'"'."yop-poll-results-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-RESULT-LABEL%</span>\r\n %POLL-OTHER-ANSWER-TEXT-INPUT% \r\n %POLL-ANSWER-RESULT-BAR%\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>',
527
+ `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>',
528
+ `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>',
529
+ `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%',
530
+ `css` = '#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; height:10px; }\r\n.yop-poll-results-bar-%POLL-ID% div { background:#555; height:10px; }\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}',
531
+ `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, findWidest = false ) {\r\n if ( findWidest ) {\r\n obj.each(function() {\r\n var thisWidth = jQuery(this).width();\r\n width = parseInt(thisWidth / cols); \r\n jQuery(this).width(width); \r\n jQuery(this).css(\'float\', \'left\'); \r\n });\r\n }\r\n else {\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\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 //equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-answer-%POLL-ID% .yop-poll-results-bar-%POLL-ID% div \\".'"'."), %ANSWERS-TABULATED-COLS%, true );\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 //equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-result-%POLL-ID% .yop-poll-results-bar-%POLL-ID% div \\".'"'."), %RESULTS-TABULATED-COLS%, true );\r\n}',
532
+ `last_modified` = NOW() ";
533
+ break;
534
+ case '3': //Dark
535
+ $sql .= "`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 <span class=\\".'"'."yop-poll-results-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-RESULT-LABEL%</span>\r\n %POLL-ANSWER-RESULT-BAR%\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 <span class=\\".'"'."yop-poll-results-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-RESULT-LABEL%</span>\r\n %POLL-OTHER-ANSWER-TEXT-INPUT% \r\n %POLL-ANSWER-RESULT-BAR%\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>',
536
+ `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>',
537
+ `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>',
538
+ `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%',
539
+ `css` = '#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; height:10px; }\r\n.yop-poll-results-bar-%POLL-ID% div { background:#333333; height:10px; }\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}',
540
+ `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, findWidest = false ) {\r\n if ( findWidest ) {\r\n obj.each(function() {\r\n var thisWidth = jQuery(this).width();\r\n width = parseInt(thisWidth / cols); \r\n jQuery(this).width(width); \r\n jQuery(this).css(\'float\', \'left\'); \r\n });\r\n }\r\n else {\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\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 //equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-answer-%POLL-ID% .yop-poll-results-bar-%POLL-ID% div \\".'"'."), %ANSWERS-TABULATED-COLS%, true );\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 //equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-result-%POLL-ID% .yop-poll-results-bar-%POLL-ID% div \\".'"'."), %RESULTS-TABULATED-COLS%, true );\r\n}',
541
+ `last_modified` = NOW() ";
542
+ break;
543
+ case '4': //Blue v1
544
+ $sql .= "`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 <span class=\\".'"'."yop-poll-results-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-RESULT-LABEL%</span>\r\n %POLL-ANSWER-RESULT-BAR%\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 <span class=\\".'"'."yop-poll-results-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-RESULT-LABEL%</span>\r\n %POLL-OTHER-ANSWER-TEXT-INPUT% \r\n %POLL-ANSWER-RESULT-BAR%\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>',
545
+ `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>',
546
+ `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>',
547
+ `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%',
548
+ `css` = '#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; height:10px; }\r\n.yop-poll-results-bar-%POLL-ID% div { background:#555; height:10px; }\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}',
549
+ `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, findWidest = false ) {\r\n if ( findWidest ) {\r\n obj.each(function() {\r\n var thisWidth = jQuery(this).width();\r\n width = parseInt(thisWidth / cols); \r\n jQuery(this).width(width); \r\n jQuery(this).css(\'float\', \'left\'); \r\n });\r\n }\r\n else {\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\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 //equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-answer-%POLL-ID% .yop-poll-results-bar-%POLL-ID% div \\".'"'."), %ANSWERS-TABULATED-COLS%, true );\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 //equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-result-%POLL-ID% .yop-poll-results-bar-%POLL-ID% div \\".'"'."), %RESULTS-TABULATED-COLS%, true );\r\n}',
550
+ `last_modified` = NOW() ";
551
+ break;
552
+ case '5': //Blue v2
553
+ $sql .= "`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 <span class=\\".'"'."yop-poll-results-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-RESULT-LABEL%</span>\r\n %POLL-ANSWER-RESULT-BAR%\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 <span class=\\".'"'."yop-poll-results-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-RESULT-LABEL%</span>\r\n %POLL-OTHER-ANSWER-TEXT-INPUT% \r\n %POLL-ANSWER-RESULT-BAR%\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>',
554
+ `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>',
555
+ `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>',
556
+ `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%',
557
+ `css` = '#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; height:10px; }\r\n.yop-poll-results-bar-%POLL-ID% div { background:#555; height:10px; }\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}',
558
+ `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, findWidest = false ) {\r\n if ( findWidest ) {\r\n obj.each(function() {\r\n var thisWidth = jQuery(this).width();\r\n width = parseInt(thisWidth / cols); \r\n jQuery(this).width(width); \r\n jQuery(this).css(\'float\', \'left\'); \r\n });\r\n }\r\n else {\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\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 //equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-answer-%POLL-ID% .yop-poll-results-bar-%POLL-ID% div \\".'"'."), %ANSWERS-TABULATED-COLS%, true );\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 //equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-result-%POLL-ID% .yop-poll-results-bar-%POLL-ID% div \\".'"'."), %RESULTS-TABULATED-COLS%, true );\r\n}',
559
+ `last_modified` = NOW() ";
560
+ break;
561
+ case '6': //Blue v3
562
+ $sql .= "`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 <span class=\\".'"'."yop-poll-results-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-RESULT-LABEL%</span>\r\n %POLL-ANSWER-RESULT-BAR%\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 <span class=\\".'"'."yop-poll-results-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-RESULT-LABEL%</span>\r\n %POLL-OTHER-ANSWER-TEXT-INPUT% \r\n %POLL-ANSWER-RESULT-BAR%\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>',
563
+ `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>',
564
+ `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>',
565
+ `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%',
566
+ `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 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; height:10px; }\r\n.yop-poll-results-bar-%POLL-ID% div { background:#555; height:10px; }\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}',
567
+ `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, findWidest = false ) {\r\n if ( findWidest ) {\r\n obj.each(function() {\r\n var thisWidth = jQuery(this).width();\r\n width = parseInt(thisWidth / cols); \r\n jQuery(this).width(width); \r\n jQuery(this).css(\'float\', \'left\'); \r\n });\r\n }\r\n else {\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\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 //equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-answer-%POLL-ID% .yop-poll-results-bar-%POLL-ID% div \\".'"'."), %ANSWERS-TABULATED-COLS%, true );\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 //equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-result-%POLL-ID% .yop-poll-results-bar-%POLL-ID% div \\".'"'."), %RESULTS-TABULATED-COLS%, true );\r\n}',
568
+ `last_modified` = NOW() ";
569
+ break;
570
+ case '7': //Red v1
571
+ $sql .= "`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 <span class=\\".'"'."yop-poll-results-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-RESULT-LABEL%</span>\r\n %POLL-ANSWER-RESULT-BAR%\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 <span class=\\".'"'."yop-poll-results-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-RESULT-LABEL%</span>\r\n %POLL-OTHER-ANSWER-TEXT-INPUT% \r\n %POLL-ANSWER-RESULT-BAR%\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>',
572
+ `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>',
573
+ `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>',
574
+ `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%',
575
+ `css` = '#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; height:10px; }\r\n.yop-poll-results-bar-%POLL-ID% div { background:#555; height:10px; }\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}',
576
+ `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, findWidest = false ) {\r\n if ( findWidest ) {\r\n obj.each(function() {\r\n var thisWidth = jQuery(this).width();\r\n width = parseInt(thisWidth / cols); \r\n jQuery(this).width(width); \r\n jQuery(this).css(\'float\', \'left\'); \r\n });\r\n }\r\n else {\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\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 //equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-answer-%POLL-ID% .yop-poll-results-bar-%POLL-ID% div \\".'"'."), %ANSWERS-TABULATED-COLS%, true );\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 //equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-result-%POLL-ID% .yop-poll-results-bar-%POLL-ID% div \\".'"'."), %RESULTS-TABULATED-COLS%, true );\r\n}',
577
+ `last_modified` = NOW() ";
578
+ break;
579
+ case '8': //Red v2
580
+ $sql .= "`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 <span class=\\".'"'."yop-poll-results-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-RESULT-LABEL%</span>\r\n %POLL-ANSWER-RESULT-BAR%\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 <span class=\\".'"'."yop-poll-results-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-RESULT-LABEL%</span>\r\n %POLL-OTHER-ANSWER-TEXT-INPUT% \r\n %POLL-ANSWER-RESULT-BAR%\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>',
581
+ `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>',
582
+ `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>',
583
+ `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%',
584
+ `css` = '#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; height:10px; }\r\n.yop-poll-results-bar-%POLL-ID% div { background:#555; height:10px; }\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}',
585
+ `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, findWidest = false ) {\r\n if ( findWidest ) {\r\n obj.each(function() {\r\n var thisWidth = jQuery(this).width();\r\n width = parseInt(thisWidth / cols); \r\n jQuery(this).width(width); \r\n jQuery(this).css(\'float\', \'left\'); \r\n });\r\n }\r\n else {\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\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 //equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-answer-%POLL-ID% .yop-poll-results-bar-%POLL-ID% div \\".'"'."), %ANSWERS-TABULATED-COLS%, true );\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 //equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-result-%POLL-ID% .yop-poll-results-bar-%POLL-ID% div \\".'"'."), %RESULTS-TABULATED-COLS%, true );\r\n}',
586
+ `last_modified` = NOW() ";
587
+ break;
588
+ case '9': //Red v3
589
+ $sql .= "`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 <span class=\\".'"'."yop-poll-results-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-RESULT-LABEL%</span>\r\n %POLL-ANSWER-RESULT-BAR%\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 <span class=\\".'"'."yop-poll-results-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-RESULT-LABEL%</span>\r\n %POLL-OTHER-ANSWER-TEXT-INPUT% \r\n %POLL-ANSWER-RESULT-BAR%\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>',
590
+ `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>',
591
+ `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>',
592
+ `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%',
593
+ `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 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; height:10px; }\r\n.yop-poll-results-bar-%POLL-ID% div { background:#555; height:10px; }\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}',
594
+ `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, findWidest = false ) {\r\n if ( findWidest ) {\r\n obj.each(function() {\r\n var thisWidth = jQuery(this).width();\r\n width = parseInt(thisWidth / cols); \r\n jQuery(this).width(width); \r\n jQuery(this).css(\'float\', \'left\'); \r\n });\r\n }\r\n else {\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\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 //equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-answer-%POLL-ID% .yop-poll-results-bar-%POLL-ID% div \\".'"'."), %ANSWERS-TABULATED-COLS%, true );\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 //equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-result-%POLL-ID% .yop-poll-results-bar-%POLL-ID% div \\".'"'."), %RESULTS-TABULATED-COLS%, true );\r\n}',
595
+ `last_modified` = NOW() ";
596
+ break;
597
+ case '10': //Green v1
598
+ $sql .= "`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 <span class=\\".'"'."yop-poll-results-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-RESULT-LABEL%</span>\r\n %POLL-ANSWER-RESULT-BAR%\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 <span class=\\".'"'."yop-poll-results-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-RESULT-LABEL%</span>\r\n %POLL-OTHER-ANSWER-TEXT-INPUT% \r\n %POLL-ANSWER-RESULT-BAR%\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>',
599
+ `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>',
600
+ `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>',
601
+ `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%',
602
+ `css` = '#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; height:10px; }\r\n.yop-poll-results-bar-%POLL-ID% div { background:#555; height:10px; }\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}',
603
+ `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, findWidest = false ) {\r\n if ( findWidest ) {\r\n obj.each(function() {\r\n var thisWidth = jQuery(this).width();\r\n width = parseInt(thisWidth / cols); \r\n jQuery(this).width(width); \r\n jQuery(this).css(\'float\', \'left\'); \r\n });\r\n }\r\n else {\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\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 //equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-answer-%POLL-ID% .yop-poll-results-bar-%POLL-ID% div \\".'"'."), %ANSWERS-TABULATED-COLS%, true );\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 //equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-result-%POLL-ID% .yop-poll-results-bar-%POLL-ID% div \\".'"'."), %RESULTS-TABULATED-COLS%, true );\r\n}',
604
+ `last_modified` = NOW() ";
605
+ break;
606
+ case '11': //Green v2
607
+ $sql .= "`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 <span class=\\".'"'."yop-poll-results-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-RESULT-LABEL%</span>\r\n %POLL-ANSWER-RESULT-BAR%\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 <span class=\\".'"'."yop-poll-results-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-RESULT-LABEL%</span>\r\n %POLL-OTHER-ANSWER-TEXT-INPUT% \r\n %POLL-ANSWER-RESULT-BAR%\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>',
608
+ `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>',
609
+ `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>',
610
+ `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%',
611
+ `css` = '#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; height:10px; }\r\n.yop-poll-results-bar-%POLL-ID% div { background:#555; height:10px; }\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}',
612
+ `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, findWidest = false ) {\r\n if ( findWidest ) {\r\n obj.each(function() {\r\n var thisWidth = jQuery(this).width();\r\n width = parseInt(thisWidth / cols); \r\n jQuery(this).width(width); \r\n jQuery(this).css(\'float\', \'left\'); \r\n });\r\n }\r\n else {\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\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 //equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-answer-%POLL-ID% .yop-poll-results-bar-%POLL-ID% div \\".'"'."), %ANSWERS-TABULATED-COLS%, true );\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 //equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-result-%POLL-ID% .yop-poll-results-bar-%POLL-ID% div \\".'"'."), %RESULTS-TABULATED-COLS%, true );\r\n}',
613
+ `last_modified` = NOW() ";
614
+ break;
615
+ case '12': //Green v3
616
+ $sql .= "`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 <span class=\\".'"'."yop-poll-results-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-RESULT-LABEL%</span>\r\n %POLL-ANSWER-RESULT-BAR%\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 <span class=\\".'"'."yop-poll-results-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-RESULT-LABEL%</span>\r\n %POLL-OTHER-ANSWER-TEXT-INPUT% \r\n %POLL-ANSWER-RESULT-BAR%\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>',
617
+ `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>',
618
+ `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>',
619
+ `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%',
620
+ `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 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; height:10px; }\r\n.yop-poll-results-bar-%POLL-ID% div { background:#555; height:10px; }\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}',
621
+ `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, findWidest = false ) {\r\n if ( findWidest ) {\r\n obj.each(function() {\r\n var thisWidth = jQuery(this).width();\r\n width = parseInt(thisWidth / cols); \r\n jQuery(this).width(width); \r\n jQuery(this).css(\'float\', \'left\'); \r\n });\r\n }\r\n else {\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\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 //equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-answer-%POLL-ID% .yop-poll-results-bar-%POLL-ID% div \\".'"'."), %ANSWERS-TABULATED-COLS%, true );\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 //equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-result-%POLL-ID% .yop-poll-results-bar-%POLL-ID% div \\".'"'."), %RESULTS-TABULATED-COLS%, true );\r\n}',
622
+ `last_modified` = NOW() ";
623
+ break;
624
+ case '13': //Orange v1
625
+ $sql .= "`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 <span class=\\".'"'."yop-poll-results-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-RESULT-LABEL%</span>\r\n %POLL-ANSWER-RESULT-BAR%\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 <span class=\\".'"'."yop-poll-results-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-RESULT-LABEL%</span>\r\n %POLL-OTHER-ANSWER-TEXT-INPUT% \r\n %POLL-ANSWER-RESULT-BAR%\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>',
626
+ `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>',
627
+ `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>',
628
+ `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%',
629
+ `css` = '#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; height:10px; }\r\n.yop-poll-results-bar-%POLL-ID% div { background:#555; height:10px; }\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}',
630
+ `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, findWidest = false ) {\r\n if ( findWidest ) {\r\n obj.each(function() {\r\n var thisWidth = jQuery(this).width();\r\n width = parseInt(thisWidth / cols); \r\n jQuery(this).width(width); \r\n jQuery(this).css(\'float\', \'left\'); \r\n });\r\n }\r\n else {\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\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 //equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-answer-%POLL-ID% .yop-poll-results-bar-%POLL-ID% div \\".'"'."), %ANSWERS-TABULATED-COLS%, true );\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 //equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-result-%POLL-ID% .yop-poll-results-bar-%POLL-ID% div \\".'"'."), %RESULTS-TABULATED-COLS%, true );\r\n}',
631
+ `last_modified` = NOW() ";
632
+ break;
633
+ case '14': //Orange v2
634
+ $sql .= "`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 <span class=\\".'"'."yop-poll-results-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-RESULT-LABEL%</span>\r\n %POLL-ANSWER-RESULT-BAR%\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 <span class=\\".'"'."yop-poll-results-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-RESULT-LABEL%</span>\r\n %POLL-OTHER-ANSWER-TEXT-INPUT% \r\n %POLL-ANSWER-RESULT-BAR%\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>',
635
+ `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>',
636
+ `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>',
637
+ `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%',
638
+ `css` = '#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; height:10px; }\r\n.yop-poll-results-bar-%POLL-ID% div { background:#555; height:10px; }\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}',
639
+ `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, findWidest = false ) {\r\n if ( findWidest ) {\r\n obj.each(function() {\r\n var thisWidth = jQuery(this).width();\r\n width = parseInt(thisWidth / cols); \r\n jQuery(this).width(width); \r\n jQuery(this).css(\'float\', \'left\'); \r\n });\r\n }\r\n else {\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\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 //equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-answer-%POLL-ID% .yop-poll-results-bar-%POLL-ID% div \\".'"'."), %ANSWERS-TABULATED-COLS%, true );\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 //equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-result-%POLL-ID% .yop-poll-results-bar-%POLL-ID% div \\".'"'."), %RESULTS-TABULATED-COLS%, true );\r\n}',
640
+ `last_modified` = NOW() ";
641
+ break;
642
+ case '15': //Orange v3
643
+ $sql .= "`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 <span class=\\".'"'."yop-poll-results-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-RESULT-LABEL%</span>\r\n %POLL-ANSWER-RESULT-BAR%\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 <span class=\\".'"'."yop-poll-results-text-%POLL-ID%\\".'"'.">%POLL-ANSWER-RESULT-LABEL%</span>\r\n %POLL-OTHER-ANSWER-TEXT-INPUT% \r\n %POLL-ANSWER-RESULT-BAR%\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>',
644
+ `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>',
645
+ `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>',
646
+ `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%',
647
+ `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 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; height:10px; }\r\n.yop-poll-results-bar-%POLL-ID% div { background:#555; height:10px; }\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}',
648
+ `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, findWidest = false ) {\r\n if ( findWidest ) {\r\n obj.each(function() {\r\n var thisWidth = jQuery(this).width();\r\n width = parseInt(thisWidth / cols); \r\n jQuery(this).width(width); \r\n jQuery(this).css(\'float\', \'left\'); \r\n });\r\n }\r\n else {\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\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 //equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-answer-%POLL-ID% .yop-poll-results-bar-%POLL-ID% div \\".'"'."), %ANSWERS-TABULATED-COLS%, true );\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 //equalWidth_%POLL-ID%( jQuery(\\".'"'."#yop-poll-container-%POLL-ID% .yop-poll-li-result-%POLL-ID% .yop-poll-results-bar-%POLL-ID% div \\".'"'."), %RESULTS-TABULATED-COLS%, true );\r\n}',
649
+ `last_modified` = NOW() ";
650
+ break;
651
+ }
652
+ $sql .= $wpdb->prepare( ' WHERE id = %d', $poll_id );
653
+ $wpdb->query( $sql );
654
}
655
656
public function make_poll_from_request_data ( $request = array(), $config = null ) {
755
//inserting answers to db
756
foreach( $default_options as $option_name => $option_value ) {
757
if( isset( $poll_options[ $option_name ]) ) {
758
+ if ( $option_name != 'use_template_bar' )
759
+ $default_options[ $option_name ] = $poll_options[ $option_name ];
760
}
761
}
762
$this->make_answers_from_request_data( $request, $config );
773
$poll_answer_options[ $option_name ] = $option_value;
774
}
775
}
776
+ //if ( count( $poll_answer_options ) > 0 )
777
update_yop_poll_answer_meta( $answer_id, 'options', $poll_answer_options, false );
778
+ }
779
}
780
}
781
}
830
if( ! isset( $request['yop_poll_options']['never_expire'] ) ) {
831
$poll_options['never_expire'] = 'no';
832
}
833
+
834
//if ( count( $poll_options ) > 0 )
835
+ update_yop_poll_meta( $this->poll['id'], 'options', $poll_options );
836
837
//add update answers in db
838
foreach( $default_options as $option_name => $option_value ) {
839
if( isset( $poll_options[ $option_name ]) ) {
840
+ if ( $option_name != 'use_template_bar' )
841
+ $default_options[ $option_name ] = $poll_options[ $option_name ];
842
}
843
}
844
867
}
868
}
869
//if ( count( $poll_answer_options ) > 0 ) {
870
+ /*if ( isset( $request['yop_poll_options']['use_template_bar'] ) ) {
871
+ if ( $request['yop_poll_options']['use_template_bar'] == 'yes' ) {
872
+ if ( isset( $poll_answer_options[ 'use_template_bar' ] ) )
873
+ $poll_answer_options[ 'use_template_bar' ] = 'yes';
874
+ }
875
+ }*/
876
update_yop_poll_answer_meta( $answer_id, 'options', $poll_answer_options, false );
877
}
878
}
2734
}
2735
2736
public static function display_poll_result_bar( $poll_id = 0, $answer_id = 0, $procent = 0, $poll_options = array() ) {
2737
+ $result_bar = '';
2738
+ $result_bar = ' <div class="yop-poll-results-bar-'.$poll_id.'" ';
2739
if ( 'no' == $poll_options['use_template_bar'] ) {
2740
+ $result_bar .= ' style="height:'.intval( $poll_options['bar_height'] + 2 * intval( $poll_options['bar_border_width'] ) ).'px; ';
2741
+ }
2742
+ $result_bar .= '">';
2743
+ if ( floatval( $procent ) > 0 ) {
2744
+ $result_bar .= '<div style="'.
2745
+ 'width:'.$procent.'%; ';
2746
+ if ( 'no' == $poll_options['use_template_bar'] ) {
2747
+ $result_bar .= 'height:'.$poll_options['bar_height'].'px; '.
2748
+ 'background-color:#'.$poll_options['bar_background'].'; '.
2749
+ 'border-style:'.$poll_options['bar_border_style'].'; '.
2750
+ 'border-width:'.$poll_options['bar_border_width'].'px; '.
2751
+ 'border-color:#'.$poll_options['bar_border_color'].'; ';
2752
+ }
2753
+ $result_bar .= '" '.
2754
+ 'id="yop-poll-result-bar-div-'.$answer_id.'" '.
2755
+ 'class="yop-poll-result-bar-div-'.$poll_id.'"'.
2756
+ '>'.
2757
+ '</div>';
2758
+ }
2759
+ $result_bar .= '</div>';
2760
return $result_bar;
2761
}
2762
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-save').click( function() {
3
jQuery.ajax({
4
type: 'POST',
5
url: yop_poll_add_new_template_config.ajax.url,
1
jQuery(document).ready(function(jQuery) {
2
+ jQuery('#yop-poll-edit-add-new-template-form-save, #yop-poll-edit-add-new-template-form-save1').click( function() {
3
jQuery.ajax({
4
type: 'POST',
5
url: yop_poll_add_new_template_config.ajax.url,
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.9 =
140
* Fixed various bugs with templates
141
136
137
== Changelog ==
138
139
+ = 2.0 =
140
+ * Fixed various bugs with templates
141
+
142
= 1.9 =
143
* Fixed various bugs with templates
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.9
9
*/
10
define( 'YOP_POLL_WP_VERSION', '3.3.0' );
11
- define( 'YOP_POLL_VERSION', '1.9' );
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__ ) );
@@ -36,7 +36,7 @@
36
$wpdb->yop_poll_answermeta = $wpdb->prefix . 'yop_poll_answermeta';
37
$wpdb->yop_poll_logs = $wpdb->prefix . 'yop_poll_logs';
38
$wpdb->yop_poll_bans = $wpdb->prefix . 'yop_poll_bans';
39
- $wpdb->yop_poll_votes_custom_fields = $wpdb->prefix . 'yop_poll_votes_custom_fields';
40
41
$yop_poll_current_class = 'Yop_Poll_';
42
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: 2.0
9
*/
10
define( 'YOP_POLL_WP_VERSION', '3.3.0' );
11
+ define( 'YOP_POLL_VERSION', '2.0' );
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__ ) );
36
$wpdb->yop_poll_answermeta = $wpdb->prefix . 'yop_poll_answermeta';
37
$wpdb->yop_poll_logs = $wpdb->prefix . 'yop_poll_logs';
38
$wpdb->yop_poll_bans = $wpdb->prefix . 'yop_poll_bans';
39
+ $wpdb->yop_poll_votes_custom_fields = $wpdb->prefix . 'yop_poll_votes_custom_fields';
40
41
$yop_poll_current_class = 'Yop_Poll_';
42