403Webshell
Server IP : 195.130.67.5  /  Your IP : 216.73.217.154
Web Server : Microsoft-IIS/10.0
System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586
User : IUSR ( 0)
PHP Version : 7.4.19
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /Old Sites/repository/wp-content/plugins/yop-poll/admin/views/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /Old Sites/repository/wp-content/plugins/yop-poll/admin/views/yop-poll-edit-poll-elements.php
<?php
include( YOP_POLL_PATH . 'admin/views/yop-poll-elements-definitions.php' )
?>
<div class="row">
	<div class="col-md-12">
		&nbsp;
	</div>
</div>
<div class="row">
	<div class="col-md-12 buttons-row">
		<span class="regular-buttons">
			<a class="btn btn-primary add-custom-field" href="#" role="button">
				<i class="glyphicon glyphicon-asterisk" aria-hidden="true"></i>
				<br>
				<?php _e( 'Custom Field', 'yop-poll' );?>
			</a>
		</span>
		<span class="premium-buttons">
			<span class="premium">
				<a href="#" class="upgrade-to-pro" data-screen="multiple-questions">
					<img src="<?php echo YOP_POLL_URL;?>admin/assets/images/pro-vertical.svg" class="responsive" />
				</a>
			</span>
			<a class="btn btn-warning add-text-question" href="#" role="button">
				<i class="glyphicon glyphicon-asterisk" aria-hidden="true"></i>
				<br>
				<?php _e( 'Text Question', 'yop-poll' );?>
			</a>
			<a class="btn btn-warning add-media-question" href="#" role="button">
				<i class="glyphicon glyphicon-asterisk" aria-hidden="true"></i>
				<br>
				<?php _e( 'Media Question', 'yop-poll' );?>
			</a>
			<a class="btn btn-warning add-space-separator" href="#" role="button">
				<i class="glyphicon glyphicon-asterisk" aria-hidden="true"></i>
				<br>
				<?php _e( 'Space Separator', 'yop-poll' );?>
			</a>
			<a class="btn btn-warning add-text-block" href="#" role="button">
				<i class="glyphicon glyphicon-asterisk" aria-hidden="true"></i>
				<br>
				<?php _e( 'Text Block', 'yop-poll' );?>
			</a>
			</span>
		<hr>
	</div>
</div>
<div class="row">
	<div class="poll-elements" data-remove="">
		<div class="poll-elements-list" style="min-height: 200px;">
			<?php
			foreach ( $poll->elements as $element ) {
				switch( $element->etype) {
					case 'text-question': {
						?>
						<div class="poll-element question" data-type="text-question" data-id="<?php echo $element->id;?>" data-remove="">
							<div class="title-bar">
								<span class="bar-title pull-left poll-element-collapse">
									<?php _e( 'Question', 'yop-poll' );?>
									<span class="glyphicon glyphicon-chevron-down hspace" aria-hidden="true"></span>
								</span>
								<span class="pull-right actions">
									<a href="#" class="hspace add-text-answer" title="<?php _e( 'Add Answer', 'yop-poll' );?>">
										<span class="glyphicon glyphicon-plus" aria-hidden="true"></span>
									</a>
									<a href="#" class="hspace text-question-edit-clone" title="<?php _e( 'Duplicate', 'yop-poll' );?>">
										<span class="glyphicon glyphicon-folder-open" aria-hidden="true"></span>
									</a>
									<a href="#" class="hspace text-question-edit-delete" title="<?php _e( 'Delete', 'yop-poll' );?>">
										<span class="glyphicon glyphicon-remove" aria-hidden="true"></span>
									</a>
								</span>
							</div>
							<div class="content-inside">
								<div class="question-text">
									<div class="form-group">
										<input type="text" class="form-control input-lg question-value" name="question text" value="<?php echo esc_html( $element->etext );?>" placeholder="<?php _e( 'Question text', 'yop-poll' );?>">
									</div>
								</div>
								<div class="answers">
									<?php
									foreach ( $element->answers as $answer ) {
										?>
										<div class="answer" data-id="<?php echo $answer->id;?>">
											<div class="title-bar">
												<span class="bar-title pull-left">
													<?php _e( 'Answer', 'yop-poll' );?>
												</span>
												<span class="pull-right actions">
													<a href="#" class="hspace text-answer-edit-more" title="<?php _e( 'Edit', 'yop-poll' );?>">
														<span class="glyphicon glyphicon-pencil" aria-hidden="true"></span>
													</a>
													<a href="#" class="hspace text-answer-edit-clone" title="<?php _e( 'Duplicate', 'yop-poll' );?>">
														<span class="glyphicon glyphicon-folder-open" aria-hidden="true"></span>
													</a>
													<a href="#" class="hspace text-answer-edit-delete" title="<?php _e( 'Delete', 'yop-poll' );?>">
														<span class="glyphicon glyphicon-remove" aria-hidden="true"></span>
													</a>
												</span>
											</div>
											<div class="content-inside">
												<div class="answer-text">
													<div class="form-horizontal">
														<div class="form-group">
															<div class="col-sm-11">
																<input type="text" class="form-control answer-value" name="question text" value="<?php echo esc_html( $answer->stext );?>" placeholder="<?php _e( 'Answer text', 'yop-poll' );?>">
															</div>
															<div class="col-sm-1">
																<label class="pull-right set-as-default-inline" title="<?php _e( 'Set as default', 'yop-poll' );?>">
																	<?php
	                                                                if ( 'yes' === $answer->meta_data['makeDefault']) {
	                                                                    $answer_make_default = 'checked';
	                                                                } else {
	                                                                    $answer_make_default = '';
	                                                                }
	                                                                ?>
																	<input type="checkbox" class="answer-is-default" <?php echo $answer_make_default;?>>
																</label>
															</div>
														</div>
													</div>
												</div>
												<div class="answer-options">
													<div class="form-group">
														<div class="row">
															<div class="col-md-4">
																<div class="checkbox">
																	<label>
																	  <input type="checkbox" class="answer-make-default" <?php echo $answer_make_default;?>> <?php _e( 'Set as default', 'yop-poll' );?>
																	</label>
																  </div>
															</div>
															<div class="col-md-4">
																<div class="checkbox">
																	<label>
																		<?php
                                                                        if ( 'yes' === $answer->meta_data['makeLink'] ) {
                                                                            $answer_make_link = 'checked';
																			$answer_make_link_class = '';
                                                                        } else {
                                                                            $answer_make_link = '';
																			$answer_make_link_class = 'hide';
                                                                        }
                                                                        ?>
																		<input type="checkbox" class="answer-make-link" <?php echo $answer_make_link;?>> <?php _e( 'Make it a link', 'yop-poll' );?>
																	</label>
																  </div>
															</div>
															<div class="col-md-4">
																<div class="checkbox">
																	<label>
																		<?php _e( 'Results color', 'yop-poll' );?>
																	</label>
																	<input type="text" value="<?php echo esc_html( $answer->meta_data['resultsColor'] );?>" class="form-control answer-results-color" />
																</div>
															</div>
														</div>
														<div class="row answer-link-section <?php echo $answer_make_link_class;?>">
															<div class="col-md-12">
																<input type="text" class="form-control border answer-link" value="<?php echo esc_html( $answer->meta_data['link'] );?>" placeholder="http://">
															</div>
														</div>
														<div class="row">
															<div class="col-md-12 text-right">
																<button type="button" class="btn btn-default text-answer-edit-done">
																	<?php _e( 'Done', 'yop-poll' );?>
																</button>
															</div>
														</div>
													</div>
												</div>
											</div>
										</div>
										<?php
									}
									?>
								</div>
								<div class="question-options">
									<h4>
										<?php _e( 'OPTIONS', 'yop-poll' );?>
									</h4>
									<div class="form-horizontal">
										<div class="form-group">
											<div class="col-md-3">
												<?php _e( 'Allow other answers', 'yop-poll' );?>
											</div>
											<div class="col-md-9">
												<?php
												if ( 'yes' === $element->meta_data['allowOtherAnswers'] ) {
													$element_allow_other_answers_yes = 'selected';
													$element_allow_other_answers_no = '';
													$element_allow_other_answers_class = '';
												} else {
													$element_allow_other_answers_yes = '';
													$element_allow_other_answers_no = 'selected';
													$element_allow_other_answers_class = 'hide';
												}
												?>
												<select class="allow-other-answers" style="width:100%">
													<option value="yes" <?php echo $element_allow_other_answers_yes?>><?php _e( 'Yes', 'yop-poll' );?></option>
													<option value="no" <?php echo $element_allow_other_answers_no?>><?php _e( 'No', 'yop-poll' );?></option>
												</select>
											</div>
										</div>
										<div class="other-answers-section <?php echo $element_allow_other_answers_class;?>">
											<div class="form-group">
												<div class="col-md-3">
													<?php _e( 'Label for Other Answers', 'yop-poll' );?>
												</div>
												<div class="col-md-9">
													<input type="text" name="" value="<?php echo esc_html( $element->meta_data['otherAnswersLabel'] );?>" class="form-control other-answers-label" />
												</div>
											</div>
											<div class="form-group">
												<div class="col-md-3">
													<?php _e( 'Add other answers in answers list', 'yop-poll' );?>
												</div>
												<div class="col-md-9">
													<?php
													if ( 'yes' === $element->meta_data['addOtherAnswers'] ) {
														$element_add_other_answers_yes = 'selected';
														$element_add_other_answers_no = '';
													} else {
														$element_add_other_answers_yes = '';
														$element_add_other_answers_no = 'selected';
													}
													?>
													<select class="add-other-answers" style="width:100%">
														<option value="yes" <?php echo $element_add_other_answers_yes;?>><?php _e( 'Yes', 'yop-poll' );?></option>
														<option value="no" <?php echo $element_add_other_answers_no;?>><?php _e( 'No', 'yop-poll' );?></option>
													</select>
												</div>
											</div>
											<div class="form-group">
												<div class="col-md-3">
													<?php _e( 'Display other answers in results list', 'yop-poll' );?>
												</div>
												<div class="col-md-9">
													<?php
													if ( 'yes' === $element->meta_data['displayOtherAnswersInResults'] ) {
														$element_display_other_answers_in_results_yes = 'selected';
														$element_display_other_answers_in_results_no = '';
													} else {
														$element_display_other_answers_in_results_yes = '';
														$element_display_other_answers_in_results_no = 'selected';
													}
													?>
													<select class="display-other-answers-in-results" style="width:100%">
														<option value="yes" <?php echo $element_display_other_answers_in_results_yes;?>><?php _e( 'Yes', 'yop-poll' );?></option>
														<option value="no" <?php echo $element_display_other_answers_in_results_no;?>><?php _e( 'No', 'yop-poll' );?></option>
													</select>
												</div>
											</div>
										</div>
										<div class="form-group">
											<div class="col-md-3">
												<?php _e( 'Allow multiple answers', 'yop-poll' );?>
											</div>
											<div class="col-md-9">
												<?php
												if ( 'yes' === $element->meta_data['allowMultipleAnswers']) {
													$element_allow_multiple_answers_yes = 'selected';
													$element_allow_multiple_answers_no = '';
													$element_allow_multiple_answers_class = '';
												} else {
													$element_allow_multiple_answers_yes = '';
													$element_allow_multiple_answers_no = 'selected';
													$element_allow_multiple_answers_class = 'hide';
												}
												?>
												<select class="allow-multiple-answers" style="width:100%">>
													<option value="yes" <?php echo $element_allow_multiple_answers_yes;?>><?php _e( 'Yes', 'yop-poll' );?></option>
													<option value="no"  <?php echo $element_allow_multiple_answers_no;?>><?php _e( 'No', 'yop-poll' );?></option>
												</select>
											</div>
										</div>
										<div class="multiple-answers-section <?php echo $element_allow_multiple_answers_class;?>">
											<div class="form-group">
												<div class="col-md-3">
													<?php _e( 'Minimum answers required', 'yop-poll' );?>
												</div>
												<div class="col-md-9">
													<input type="text" name="" value="<?php echo esc_html( $element->meta_data['multipleAnswersMinim'] );?>" class="form-control multiple-answers-minim"/>
												</div>
											</div>
											<div class="form-group">
												<div class="col-md-3">
													<?php _e( 'Maximum answers allowed', 'yop-poll' );?>
												</div>
												<div class="col-md-9">
													<input type="text" name="" value="<?php echo esc_html( $element->meta_data['multipleAnswersMaxim'] );?>" class="form-control multiple-answers-maxim"/>
												</div>
											</div>
										</div>
										<div class="form-group">
											<div class="col-md-3">
												<?php _e( 'Display answers', 'yop-poll' );?>
											</div>
											<div class="col-md-9">
												<?php
												switch ( $element->meta_data['answersDisplay'] ) {
													case 'vertical': {
														$element_answers_display_vertical = 'selected';
														$element_answers_display_horizontal = '';
														$element_answers_display_columns = '';
														$answers_display_columns_class = 'hide';
														break;
													}
													case 'horizontal': {
														$element_answers_display_vertical = '';
														$element_answers_display_horizontal = 'selected';
														$element_answers_display_columns = '';
														$answers_display_columns_class = 'hide';
														break;
													}
													case 'columns': {
														$element_answers_display_vertical = '';
														$element_answers_display_horizontal = '';
														$element_answers_display_columns = 'selected';
														$answers_display_columns_class = '';
														break;
													}
												}
												?>
												<select class="answers-display" style="width:100%">
													<option value="vertical" <?php echo $element_answers_display_vertical;?>>
														<?php _e( 'Vertical', 'yop-poll' );?>
													</option>
													<option value="horizontal" <?php echo $element_answers_display_horizontal;?>>
														<?php _e( 'Horizontal', 'yop-poll' );?>
													</option>
													<option value="columns" <?php echo $element_answers_display_columns;?>>
														<?php _e( 'Columns', 'yop-poll' );?>
													</option>
												</select>
											</div>
										</div>
										<div class="form-group answers-display-section <?php echo $answers_display_columns_class;?>">
											<div class="col-md-3">
												<?php _e( 'Display answers', 'yop-poll' );?>
											</div>
											<div class="col-md-9">
												<input type="text" name="button-label" value="<?php echo esc_html( $element->meta_data['answersColumns'] );?>" class="form-control answers-columns"/>&nbsp;<?php _e( 'columns', 'yop-poll' );?>
											</div>
										</div>
									</div>
								</div>
							</div>
						</div>
						<?php
						break;
					}
					case 'custom-field': {
						?>
						<div class="poll-element question" data-type="custom-field" data-id="<?php echo $element->id;?>" data-remove="">
							<div class="title-bar">
								<span class="bar-title pull-left poll-element-collapse">
									<?php _e( 'Custom Field', 'yop-poll' );?>
									<span class="glyphicon glyphicon-chevron-down hspace" aria-hidden="true"></span>
								</span>
								<span class="pull-right actions">
									<a href="#" class="hspace custom-field-edit-more" title="<?php _e( 'Edit', 'yop-poll' );?>">
										<span class="glyphicon glyphicon-pencil" aria-hidden="true"></span>
									</a>
									<a href="#" class="hspace custom-field-edit-clone" title="<?php _e( 'Duplicate', 'yop-poll' );?>">
										<span class="glyphicon glyphicon-folder-open" aria-hidden="true"></span>
									</a>
									<a href="#" class="hspace custom-field-edit-delete" title="<?php _e( 'Delete', 'yop-poll' );?>">
										<span class="glyphicon glyphicon-remove" aria-hidden="true"></span>
									</a>
								</span>
							</div>
							<div class="content-inside">
								<div class="question-text">
									<div class="form-horizontal">
										<div class="form-group">
											<div class="col-sm-11">
												<input type="text" class="form-control input-lg custom-field-name" name="question text" value="<?php echo esc_html( $element->etext );?>" placeholder="<?php _e( 'Custom Field', 'yop-poll' );?>">
											</div>
											<div class="col-sm-1">
												<label class="pull-right set-as-default-inline" title="<?php _e( 'Set as required', 'yop-poll' );?>">
													<?php
                                                    if ( 'yes' === $element->meta_data['makeRequired'] ) {
                                                        $element_custom_field_required = 'checked';
                                                    } else {
                                                        $element_custom_field_required = '';
                                                    }
                                                    ?>
													<input type="checkbox" class="custom-field-required" <?php echo $element_custom_field_required;?>>
												</label>
											</div>
										</div>
									</div>
								</div>
								<div class="custom-field-options">
									<div class="form-group">
										<div class="row">
											<div class="col-md-4">
												<div class="checkbox">
													<label>
													  <input type="checkbox" class="custom-field-make-required" <?php echo $element_custom_field_required;?>> <?php _e( 'Set as Required', 'yop-poll' );?>
													</label>
												  </div>
											</div>
										</div>
										<div class="row">
											<div class="col-md-12 text-right">
												<button type="button" class="btn btn-default custom-field-edit-done">
													<?php _e( 'Done', 'yop-poll' );?>
												</button>
											</div>
										</div>
									</div>
								</div>
							</div>
						</div>
						<?php
						break;
					}
					case 'media-question': {
						?>
						<div class="poll-element question" data-type="media-question" data-id="<?php echo $element->id;?>" data-remove="">
							<div class="title-bar">
								<span class="bar-title pull-left poll-element-collapse">
									<?php _e( 'Question', 'yop-poll' );?>
									<span class="glyphicon glyphicon-chevron-down hspace" aria-hidden="true"></span>
								</span>
								<span class="pull-right actions">
									<a href="#" class="hspace add-media-answer" title="<?php _e( 'Add Answer', 'yop-poll' );?>">
										<span class="glyphicon glyphicon-plus" aria-hidden="true"></span>
									</a>
									<a href="#" class="hspace media-question-edit-clone" title="<?php _e( 'Duplicate', 'yop-poll' );?>">
										<span class="glyphicon glyphicon-folder-open" aria-hidden="true"></span>
									</a>
									<a href="#" class="hspace media-question-edit-delete" title="<?php _e( 'Delete', 'yop-poll' );?>">
										<span class="glyphicon glyphicon-remove" aria-hidden="true"></span>
									</a>
								</span>
							</div>
							<div class="content-inside">
								<div class="question-text">
									<div class="form-group">
										<input type="text" class="form-control input-lg question-value" name="question text" value="<?php echo esc_html( $element->etext );?>" placeholder="<?php _e( 'Question text', 'yop-poll' );?>">
									</div>
								</div>
								<div class="answers">
									<?php
									foreach ( $element->answers as $answer ) {
										?>
										<div class="answer" data-id="<?php echo $answer->id;?>">
											<div class="title-bar">
												<span class="bar-title pull-left">
													<?php _e( 'Answer', 'yop-poll' );?>
												</span>
												<span class="pull-right actions">
													<a href="#" class="hspace media-answer-edit-more" title="<?php _e( 'Edit', 'yop-poll' );?>">
														<span class="glyphicon glyphicon-pencil" aria-hidden="true"></span>
													</a>
													<a href="#" class="hspace media-answer-edit-clone" title="<?php _e( 'Duplicate', 'yop-poll' );?>">
														<span class="glyphicon glyphicon-folder-open" aria-hidden="true"></span>
													</a>
													<a href="#" class="hspace media-answer-edit-delete" title="<?php _e( 'Delete', 'yop-poll' );?>">
														<span class="glyphicon glyphicon-remove" aria-hidden="true"></span>
													</a>
												</span>
											</div>
											<div class="content-inside">
												<div class="answer-text">
													<div class="form-horizontal">
														<div class="form-group">
															<div class="col-sm-2">
																<?php _e( 'Type', 'yop-poll' );?>
															</div>
															<div class="col-sm-10">
																<?php
                                                                if ( 'image' === $answer->stype ) {
                                                                    $answer_type_image = 'selected';
                                                                    $answer_type_video = '';
                                                                    $answer_type_image_section_class = '';
                                                                    $answer_type_video_section_class = 'hide';
                                                                    $answer_type_image_text = $answer->stext;
                                                                    $answer_type_video_text = '';
                                                                } else {
                                                                    $answer_type_image = '';
                                                                    $answer_type_video = 'selected';
                                                                    $answer_type_image_section_class = 'hide';
                                                                    $answer_type_video_section_class = '';
                                                                    $answer_type_image_text = '';
                                                                    $answer_type_video_text = $answer->stext;
                                                                }
                                                                ?>
                                                                <select class="answer-type" style="width:100%">
                                                                    <option value="image" <?php echo $answer_type_image;?>>
                                                                        <?php _e( 'Image', 'yop-poll' );?>
                                                                    </option>
                                                                    <option value="video" <?php echo $answer_type_video;?>>
                                                                        <?php _e( 'Video', 'yop-poll' );?>
                                                                    </option>
                                                                </select>
															</div>
														</div>
														<div class="form-group image-answer-section <?php echo $answer_type_image_section_class;?>">
															<div class="col-sm-2">
																<?php _e( 'Image Link', 'yop-poll' );?>
															</div>
															<div class="col-sm-9">
																<input type="text" class="form-control answer-link" value="<?php echo $answer_type_image_text;?>" name="question text" placeholder="http://">
															</div>
															<div class="col-sm-1">
																<label class="pull-right set-as-default-inline" title="<?php _e( 'Set as default', 'yop-poll' );?>">
																	<?php
	                                                                if ( 'yes' === $answer->meta_data['makeDefault'] ) {
	                                                                    $answer_is_default = 'checked';
	                                                                } else {
	                                                                    $answer_is_default = '';
	                                                                }
	                                                                ?>
																	<input type="checkbox" class="answer-is-default" <?php echo $answer_is_default;?>>
																</label>
															</div>
														</div>
														<div class="form-group video-answer-section <?php echo $answer_type_video_section_class;?>">
															<div class="col-sm-2">
																<?php _e( 'Embed Code', 'yop-poll' );?>
															</div>
															<div class="col-sm-9">
																<textarea class="form-control answer-embed"><?php echo $answer_type_video_text;?></textarea>
															</div>
															<div class="col-sm-1">
																<label class="pull-right set-as-default-inline" title="<?php _e( 'Set as default', 'yop-poll' );?>">
																	<input type="checkbox" class="answer-is-default" <?php echo $answer_is_default;?>>
																</label>
															</div>
														</div>
													</div>
												</div>
												<div class="answer-options">
													<div class="form-group">
														<div class="row">
															<div class="col-md-3">
																<div class="checkbox">
																	<label>
																	  <input type="checkbox" class="answer-make-default" <?php echo $answer_is_default;?>> <?php _e( 'Set as default', 'yop-poll' );?>
																	</label>
																  </div>
															</div>
															<div class="col-md-3">
																<div class="checkbox">
																	<label>
																		<?php
		                                                                if ( 'yes' === $answer->meta_data['makeLink'] ) {
		                                                                    $answer_make_link = 'checked';
																			$answer_make_link_class = '';
		                                                                } else {
		                                                                    $answer_make_link = '';
																			$answer_make_link_class = 'hide';
		                                                                }
		                                                                ?>
																	  <input type="checkbox" class="answer-make-link" <?php echo $answer_make_link;?>> <?php _e( 'Make it a link', 'yop-poll' );?>
																	</label>
																  </div>
															</div>
															<div class="col-md-3">
																<div class="checkbox">
																	<label>
																		<?php
                                                                        if ( 'yes' === $answer->meta_data['addText'] ) {
                                                                            $answer_add_text = 'checked';
                                                                            $answer_add_text_class = '';
                                                                        } else {
                                                                            $answer_add_text = '';
	                                                                        $answer_add_text_class = 'hide';
                                                                        }
                                                                        ?>
																		<input type="checkbox" class="answer-add-text" <?php echo $answer_add_text;?>> <?php _e( 'Add text', 'yop-poll' );?>
																	</label>
																</div>
															</div>
															<div class="col-md-3">
																<div class="checkbox">
																	<label>
																		<?php _e( 'Results color', 'yop-poll' );?>
																	</label>
																	<input type="text" value="<?php echo esc_html( $answer->meta_data['resultsColor'] );?>" class="form-control answer-results-color" />
																</div>
															</div>
														</div>
														<div class="row answer-link-section <?php echo $answer_make_link_class;?>">
															<div class="col-md-12">
																<input type="text" class="form-control border answer-link" name="" placeholder="http://">
															</div>
														</div>
														<div class="row answer-add-text-section <?php echo $answer_add_text_class;?>">
															<div class="col-md-12">
																<input type="text" class="form-control media-answer-text" placeholder="<?php _e( 'Enter text', 'yop-poll' );?>" value="<?php echo esc_attr( $answer->meta_data['text'] );?>" />
															</div>
														</div>
														<div class="row">
															<div class="col-md-12 text-right">
																<button type="button" class="btn btn-default media-answer-edit-done">
																	<?php _e( 'Done', 'yop-poll' );?>
																</button>
															</div>
														</div>
													</div>
												</div>
											</div>
										</div>
										<?php
									}
									?>
								</div>
								<div class="question-options">
									<h4>
										<?php _e( 'OPTIONS', 'yop-poll' );?>
									</h4>
									<div class="form-horizontal">
										<div class="form-group">
											<div class="col-md-3">
												<?php _e( 'Allow other answers', 'yop-poll' );?>
											</div>
											<div class="col-md-9">
												<?php
												if ( 'yes' === $element->meta_data['allowOtherAnswers'] ) {
													$element_allow_other_answers_yes = 'selected';
													$element_allow_other_answers_no = '';
													$element_allow_other_answers_class = '';
												} else {
													$element_allow_other_answers_yes = '';
													$element_allow_other_answers_no = 'selected';
													$element_allow_other_answers_class = 'hide';
												}
												?>
												<select class="allow-other-answers" style="width:100%">
													<option value="yes" <?php echo $element_allow_other_answers_yes?>><?php _e( 'Yes', 'yop-poll' );?></option>
													<option value="no" <?php echo $element_allow_other_answers_no?>><?php _e( 'No', 'yop-poll' );?></option>
												</select>
											</div>
										</div>
										<div class="other-answers-section <?php echo $element_allow_other_answers_class;?>">
											<div class="form-group">
												<div class="col-md-3">
													<?php _e( 'Label for Other Answers', 'yop-poll' );?>
												</div>
												<div class="col-md-9">
													<input type="text" name="" value="<?php echo esc_html( $element->meta_data['otherAnswersLabel'] );?>" class="form-control other-answers-label" />
												</div>
											</div>
											<div class="form-group">
												<div class="col-md-3">
													<?php _e( 'Add other answers in answers list', 'yop-poll' );?>
												</div>
												<div class="col-md-9">
													<?php
													if ( 'yes' === $element->meta_data['addOtherAnswers'] ) {
														$element_add_other_answers_yes = 'selected';
														$element_add_other_answers_no = '';
													} else {
														$element_add_other_answers_yes = '';
														$element_add_other_answers_no = 'selected';
													}
													?>
													<select class="add-other-answers" style="width:100%">
														<option value="yes" <?php echo $element_add_other_answers_yes;?>><?php _e( 'Yes', 'yop-poll' );?></option>
														<option value="no" <?php echo $element_add_other_answers_no;?>><?php _e( 'No', 'yop-poll' );?></option>
													</select>
												</div>
											</div>
											<div class="form-group">
												<div class="col-md-3">
													<?php _e( 'Display other answers in results list', 'yop-poll' );?>
												</div>
												<div class="col-md-9">
													<?php
													if ( 'yes' === $element->meta_data['displayOtherAnswersInResults'] ) {
														$element_display_other_answers_in_results_yes = 'selected';
														$element_display_other_answers_in_results_no = '';
													} else {
														$element_display_other_answers_in_results_yes = '';
														$element_display_other_answers_in_results_no = 'selected';
													}
													?>
													<select class="display-other-answers-in-results" style="width:100%">
														<option value="yes" <?php echo $element_display_other_answers_in_results_yes;?>><?php _e( 'Yes', 'yop-poll' );?></option>
														<option value="no" <?php echo $element_display_other_answers_in_results_no;?>><?php _e( 'No', 'yop-poll' );?></option>
													</select>
												</div>
											</div>
										</div>
										<div class="form-group">
											<div class="col-md-3">
												<?php _e( 'Allow multiple answers', 'yop-poll' );?>
											</div>
											<div class="col-md-9">
												<?php
												if ( 'yes' === $element->meta_data['allowMultipleAnswers']) {
													$element_allow_multiple_answers_yes = 'selected';
													$element_allow_multiple_answers_no = '';
													$element_allow_multiple_answers_class = '';
												} else {
													$element_allow_multiple_answers_yes = '';
													$element_allow_multiple_answers_no = 'selected';
													$element_allow_multiple_answers_class = 'hide';
												}
												?>
												<select class="allow-multiple-answers" style="width:100%">>
													<option value="yes" <?php echo $element_allow_multiple_answers_yes;?>><?php _e( 'Yes', 'yop-poll' );?></option>
													<option value="no"  <?php echo $element_allow_multiple_answers_no;?>><?php _e( 'No', 'yop-poll' );?></option>
												</select>
											</div>
										</div>
										<div class="multiple-answers-section <?php echo $element_allow_multiple_answers_class;?>">
											<div class="form-group">
												<div class="col-md-3">
													<?php _e( 'Minimum answers required', 'yop-poll' );?>
												</div>
												<div class="col-md-9">
													<input type="text" name="" value="<?php echo esc_html( $element->meta_data['multipleAnswersMinim'] );?>" class="form-control multiple-answers-minim"/>
												</div>
											</div>
											<div class="form-group">
												<div class="col-md-3">
													<?php _e( 'Maximum answers allowed', 'yop-poll' );?>
												</div>
												<div class="col-md-9">
													<input type="text" name="" value="<?php echo esc_html( $element->meta_data['multipleAnswersMaxim'] );?>" class="form-control multiple-answers-maxim"/>
												</div>
											</div>
										</div>
										<div class="form-group">
											<div class="col-md-3">
												<?php _e( 'Display answers', 'yop-poll' );?>
											</div>
											<div class="col-md-9">
												<?php
												switch ( $element->meta_data['answersDisplay'] ) {
													case 'vertical': {
														$element_answers_display_vertical = 'selected';
														$element_answers_display_horizontal = '';
														$element_answers_display_columns = '';
														$answers_display_columns_class = 'hide';
														break;
													}
													case 'horizontal': {
														$element_answers_display_vertical = '';
														$element_answers_display_horizontal = 'selected';
														$element_answers_display_columns = '';
														$answers_display_columns_class = 'hide';
														break;
													}
													case 'columns': {
														$element_answers_display_vertical = '';
														$element_answers_display_horizontal = '';
														$element_answers_display_columns = 'selected';
														$answers_display_columns_class = '';
														break;
													}
												}
												?>
												<select class="answers-display" style="width:100%">
													<option value="vertical" <?php echo $element_answers_display_vertical;?>>
														<?php _e( 'Vertical', 'yop-poll' );?>
													</option>
													<option value="horizontal" <?php echo $element_answers_display_horizontal;?>>
														<?php _e( 'Horizontal', 'yop-poll' );?>
													</option>
													<option value="columns" <?php echo $element_answers_display_columns;?>>
														<?php _e( 'Columns', 'yop-poll' );?>
													</option>
												</select>
											</div>
										</div>
										<div class="form-group answers-display-section <?php echo $answers_display_columns_class;?>">
											<div class="col-md-3">
												<?php _e( 'Display answers', 'yop-poll' );?>
											</div>
											<div class="col-md-9">
												<input type="text" name="button-label" value="<?php echo esc_html( $element->meta_data['answersColumns'])?>" class="form-control answers-columns"/>&nbsp;<?php _e( 'columns', 'yop-poll' );?>
											</div>
										</div>
									</div>
								</div>
							</div>
						</div>
						<?php
						break;
					}
					case 'text-block': {
						?>
						<div class="poll-element question" data-type="text-block" data-id="<?php echo $element->id;?>" data-remove="">
							<div class="title-bar">
								<span class="bar-title pull-left poll-element-collapse">
									<?php _e( 'Text Block', 'yop-poll' );?>
									<span class="glyphicon glyphicon-chevron-down hspace" aria-hidden="true"></span>
								</span>
								<span class="pull-right actions">
									<a href="#" class="hspace text-block-edit-clone" title="<?php _e( 'Duplicate', 'yop-poll' );?>">
										<span class="glyphicon glyphicon-folder-open" aria-hidden="true"></span>
									</a>
									<a href="#" class="hspace text-block-edit-delete" title="<?php _e( 'Delete', 'yop-poll' );?>">
										<span class="glyphicon glyphicon-remove" aria-hidden="true"></span>
									</a>
								</span>
							</div>
							<div class="content-inside">
								<div class="question-text">
									<div class="form-horizontal">
										<div class="form-group">
											<div class="col-sm-12">
												<textarea class="text-block-text"><?php echo esc_textarea( $element->etext );?></textarea>
											</div>
										</div>
									</div>
								</div>
							</div>
						</div>
						<?php
						break;
					}
					case 'space-separator': {
						?>
						<div class="poll-element question" data-type="space-separator" data-id="<?php echo $element->id;?>" data-remove="">
							<div class="title-bar">
								<span class="bar-title pull-left poll-element-collapse">
									<?php _e( 'Space Separator', 'yop-poll' );?>
									<span class="glyphicon glyphicon-chevron-down hspace" aria-hidden="true"></span>
								</span>
								<span class="pull-right actions">
									<a href="#" class="hspace space-separator-edit-clone" title="<?php _e( 'Duplicate', 'yop-poll' );?>">
										<span class="glyphicon glyphicon-folder-open" aria-hidden="true"></span>
									</a>
									<a href="#" class="hspace space-separator-edit-delete" title="<?php _e( 'Delete', 'yop-poll' );?>">
										<span class="glyphicon glyphicon-remove" aria-hidden="true"></span>
									</a>
								</span>
							</div>
						</div>
						<?php
						break;
					}
				}
			}
			?>
		</div>
	</div>
</div>

Youez - 2016 - github.com/yon3zu
LinuXploit