Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93

Warning: Undefined array key "page_file_edit_line" in /home/sportsfever/public_html/filemanger/edit_text_line.php on line 32
/home/sportsfe.../httpdocs/wp-conte.../plugins/wpforms-.../includes/admin/builder/panels
File: class-fields.php
printf(
[500] Fix | Delete
'<div class="wpforms-alert wpforms-alert-warning wpforms-alert-dismissible wpforms-alert-field-not-available" data-field-id="%s" data-field-type="unavailable">',
[501] Fix | Delete
wpforms_validate_field_id( $field['id'] )
[502] Fix | Delete
);
[503] Fix | Delete
[504] Fix | Delete
printf(
[505] Fix | Delete
'<div class="wpforms-alert-message">
[506] Fix | Delete
<p>%1$s</p>
[507] Fix | Delete
</div>
[508] Fix | Delete
<div class="wpforms-alert-buttons">
[509] Fix | Delete
<a href="%2$s" target="_blank" rel="noopener noreferrer" class="wpforms-btn wpforms-btn-md wpforms-btn-light-grey">%3$s</a>
[510] Fix | Delete
<button type="button" class="wpforms-dismiss-button" title="%4$s" data-field-id="%5$s" />
[511] Fix | Delete
</div>',
[512] Fix | Delete
$warning_message, // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
[513] Fix | Delete
'https://wpforms.com/docs/how-to-import-and-export-wpforms/#field-missing',
[514] Fix | Delete
esc_html__( 'Learn More', 'wpforms-lite' ),
[515] Fix | Delete
esc_attr__( 'Dismiss this message. The field will be deleted as well.', 'wpforms-lite' ),
[516] Fix | Delete
wpforms_validate_field_id( $field_id )
[517] Fix | Delete
);
[518] Fix | Delete
[519] Fix | Delete
// Save unavailable fields data in hidden inputs.
[520] Fix | Delete
$this->generate_hidden_inputs( $field, 'fields' );
[521] Fix | Delete
[522] Fix | Delete
echo '</div>';
[523] Fix | Delete
}
[524] Fix | Delete
[525] Fix | Delete
/**
[526] Fix | Delete
* No fields options markup.
[527] Fix | Delete
*
[528] Fix | Delete
* @since 1.6.0
[529] Fix | Delete
*/
[530] Fix | Delete
public function no_fields_options() {
[531] Fix | Delete
[532] Fix | Delete
printf(
[533] Fix | Delete
'<p class="no-fields wpforms-alert wpforms-alert-warning">%s</p>',
[534] Fix | Delete
esc_html__( 'You don\'t have any fields yet.', 'wpforms-lite' )
[535] Fix | Delete
);
[536] Fix | Delete
}
[537] Fix | Delete
[538] Fix | Delete
/**
[539] Fix | Delete
* No fields preview placeholder markup.
[540] Fix | Delete
*
[541] Fix | Delete
* @since 1.6.0
[542] Fix | Delete
*/
[543] Fix | Delete
public function no_fields_preview() {
[544] Fix | Delete
[545] Fix | Delete
printf(
[546] Fix | Delete
'<div class="no-fields-preview">
[547] Fix | Delete
<h4>%1$s</h4>
[548] Fix | Delete
<p>%2$s</p>
[549] Fix | Delete
</div>',
[550] Fix | Delete
esc_html__( 'You don\'t have any fields yet. Add some!', 'wpforms-lite' ),
[551] Fix | Delete
esc_html__( 'Take your pick from our wide variety of fields and start building out your form!', 'wpforms-lite' )
[552] Fix | Delete
);
[553] Fix | Delete
}
[554] Fix | Delete
[555] Fix | Delete
/**
[556] Fix | Delete
* Sort Add Field buttons by order provided.
[557] Fix | Delete
*
[558] Fix | Delete
* @since 1.0.0
[559] Fix | Delete
*
[560] Fix | Delete
* @param array $a First item.
[561] Fix | Delete
* @param array $b Second item.
[562] Fix | Delete
*
[563] Fix | Delete
* @return array
[564] Fix | Delete
*/
[565] Fix | Delete
public function field_order( $a, $b ) {
[566] Fix | Delete
[567] Fix | Delete
return $a['order'] - $b['order'];
[568] Fix | Delete
}
[569] Fix | Delete
[570] Fix | Delete
/**
[571] Fix | Delete
* Template for form builder preview.
[572] Fix | Delete
*
[573] Fix | Delete
* @since 1.4.5
[574] Fix | Delete
*/
[575] Fix | Delete
public function field_preview_templates() {
[576] Fix | Delete
[577] Fix | Delete
// Checkbox, Radio, and Payment Multiple/Checkbox field choices.
[578] Fix | Delete
?>
[579] Fix | Delete
<script type="text/html" id="tmpl-wpforms-field-preview-checkbox-radio-payment-multiple">
[580] Fix | Delete
<# if ( data.settings.choices_images ) { #>
[581] Fix | Delete
<ul class="primary-input wpforms-image-choices wpforms-image-choices-{{ data.settings.choices_images_style }}">
[582] Fix | Delete
<# _.each( data.order, function( choiceID, key ) { #>
[583] Fix | Delete
<li class="wpforms-image-choices-item<# if ( 1 === data.settings.choices[choiceID].default ) { print( ' wpforms-selected' ); } #>">
[584] Fix | Delete
<label>
[585] Fix | Delete
<span class="wpforms-image-choices-image">
[586] Fix | Delete
<# if ( ! _.isEmpty( data.settings.choices[choiceID].image ) ) { #>
[587] Fix | Delete
<img src="{{ data.settings.choices[choiceID].image }}" alt="{{ data.settings.choices[choiceID].label }}" title="{{ data.settings.choices[choiceID].label }}">
[588] Fix | Delete
<# } else { #>
[589] Fix | Delete
<img src="{{ wpforms_builder.image_placeholder }}" alt="{{ data.settings.choices[choiceID].label }}" title="{{ data.settings.choices[choiceID].label }}">
[590] Fix | Delete
<# } #>
[591] Fix | Delete
</span>
[592] Fix | Delete
<# if ( 'none' === data.settings.choices_images_style ) { #>
[593] Fix | Delete
<br>
[594] Fix | Delete
<input type="{{ data.type }}" readonly<# if ( 1 === data.settings.choices[choiceID].default ) { print( ' checked' ); } #>>
[595] Fix | Delete
<# } else { #>
[596] Fix | Delete
<input class="wpforms-screen-reader-element" type="{{ data.type }}" readonly<# if ( 1 === data.settings.choices[choiceID].default ) { print( ' checked' ); } #>>
[597] Fix | Delete
<# } #>
[598] Fix | Delete
<span class="wpforms-image-choices-label">
[599] Fix | Delete
{{{ WPFormsBuilder.fieldChoiceLabel( data, choiceID ) }}}
[600] Fix | Delete
</span>
[601] Fix | Delete
</label>
[602] Fix | Delete
</li>
[603] Fix | Delete
<# }) #>
[604] Fix | Delete
</ul>
[605] Fix | Delete
<# } else if ( data.settings.choices_icons ) { #>
[606] Fix | Delete
<ul class='primary-input wpforms-icon-choices wpforms-icon-choices-{{ data.settings.choices_icons_style }} wpforms-icon-choices-{{ data.settings.choices_icons_size }}' style="--wpforms-icon-choices-color: {{ data.settings.choices_icons_color }};">
[607] Fix | Delete
<# _.each( data.order, function( choiceID, key ) { #>
[608] Fix | Delete
<li class="wpforms-icon-choices-item<# if ( 1 === data.settings.choices[choiceID].default ) { print( ' wpforms-selected' ); } #>">
[609] Fix | Delete
<label>
[610] Fix | Delete
<span class="wpforms-icon-choices-icon">
[611] Fix | Delete
<i class="ic-fa-{{ data.settings.choices[choiceID].icon_style }} ic-fa-{{ data.settings.choices[choiceID].icon }}"></i>
[612] Fix | Delete
<span class="wpforms-icon-choices-icon-bg"></span>
[613] Fix | Delete
</span>
[614] Fix | Delete
<# if ( 'none' === data.settings.choices_icons_style ) { #>
[615] Fix | Delete
<input type='{{ data.type }}' readonly<# if ( 1 === data.settings.choices[choiceID].default ) { print( ' checked' ); } #>>
[616] Fix | Delete
<# } else { #>
[617] Fix | Delete
<input class='wpforms-screen-reader-element' type='{{ data.type }}' readonly<# if ( 1 === data.settings.choices[choiceID].default ) { print( ' checked' ); } #>>
[618] Fix | Delete
<# } #>
[619] Fix | Delete
<span class='wpforms-icon-choices-label'>
[620] Fix | Delete
{{{ WPFormsBuilder.fieldChoiceLabel( data, choiceID ) }}}
[621] Fix | Delete
</span>
[622] Fix | Delete
</label>
[623] Fix | Delete
</li>
[624] Fix | Delete
<# }) #>
[625] Fix | Delete
</ul>
[626] Fix | Delete
<# } else { #>
[627] Fix | Delete
<ul class="primary-input">
[628] Fix | Delete
<# _.each( data.order, function( choiceID, key ) { #>
[629] Fix | Delete
<li>
[630] Fix | Delete
<input type="{{ data.type }}" readonly<# if ( 1 === data.settings.choices[choiceID].default ) { print( ' checked' ); } #>>
[631] Fix | Delete
{{{ WPFormsBuilder.fieldChoiceLabel( data, choiceID ) }}}
[632] Fix | Delete
</li>
[633] Fix | Delete
<# }) #>
[634] Fix | Delete
</ul>
[635] Fix | Delete
<# } #>
[636] Fix | Delete
</script>
[637] Fix | Delete
<?php
[638] Fix | Delete
}
[639] Fix | Delete
[640] Fix | Delete
/**
[641] Fix | Delete
* Template for form builder preview.
[642] Fix | Delete
*
[643] Fix | Delete
* @since 1.6.9
[644] Fix | Delete
*/
[645] Fix | Delete
public function choices_limit_message_template() {
[646] Fix | Delete
[647] Fix | Delete
?>
[648] Fix | Delete
<script type="text/html" id="tmpl-wpforms-choices-limit-message">
[649] Fix | Delete
<div class="wpforms-alert-dynamic wpforms-alert wpforms-alert-warning">
[650] Fix | Delete
<?php
[651] Fix | Delete
printf(
[652] Fix | Delete
wp_kses( /* translators: %s - total amount of choices. */
[653] Fix | Delete
__( 'Showing the first 20 choices.<br> All %s choices will be displayed when viewing the form.', 'wpforms-lite' ),
[654] Fix | Delete
[
[655] Fix | Delete
'br' => [],
[656] Fix | Delete
]
[657] Fix | Delete
),
[658] Fix | Delete
'{{ data.total }}'
[659] Fix | Delete
);
[660] Fix | Delete
?>
[661] Fix | Delete
</div>
[662] Fix | Delete
</script>
[663] Fix | Delete
<?php
[664] Fix | Delete
}
[665] Fix | Delete
[666] Fix | Delete
/**
[667] Fix | Delete
* Template for empty choices message.
[668] Fix | Delete
*
[669] Fix | Delete
* @since 1.8.2
[670] Fix | Delete
*
[671] Fix | Delete
* @return void
[672] Fix | Delete
*/
[673] Fix | Delete
public function choices_empty_message_template() {
[674] Fix | Delete
[675] Fix | Delete
?>
[676] Fix | Delete
<script type="text/html" id="tmpl-wpforms-empty-choice-message">
[677] Fix | Delete
<div class="wpforms-notice-dynamic-empty wpforms-alert wpforms-alert-warning">
[678] Fix | Delete
{{ data.message }}
[679] Fix | Delete
</div>
[680] Fix | Delete
</script>
[681] Fix | Delete
<?php
[682] Fix | Delete
}
[683] Fix | Delete
[684] Fix | Delete
/**
[685] Fix | Delete
* Builder fields search.
[686] Fix | Delete
*
[687] Fix | Delete
* @since 1.8.3
[688] Fix | Delete
*/
[689] Fix | Delete
public function search() {
[690] Fix | Delete
?>
[691] Fix | Delete
<div class="wpforms-search-fields-wrapper">
[692] Fix | Delete
<div class="wpforms-search-fields-input-wrapper">
[693] Fix | Delete
<label for="wpforms-search-fields-input" class="wpforms-screen-reader-element"><?php esc_html_e( 'Search fields:', 'wpforms-lite' ); ?></label>
[694] Fix | Delete
<input type="search" id="wpforms-search-fields-input" placeholder="<?php echo esc_attr__( 'Search fields...', 'wpforms-lite' ); ?>" autocomplete="off">
[695] Fix | Delete
<i class="fa fa-times wpforms-search-fields-input-close" aria-hidden="true"></i>
[696] Fix | Delete
</div>
[697] Fix | Delete
[698] Fix | Delete
<div class="wpforms-search-fields-list">
[699] Fix | Delete
<div class="wpforms-add-fields-group">
[700] Fix | Delete
<div class="wpforms-add-fields-buttons"></div>
[701] Fix | Delete
</div>
[702] Fix | Delete
</div>
[703] Fix | Delete
[704] Fix | Delete
<div class="wpforms-search-fields-no-results">
[705] Fix | Delete
<p>
[706] Fix | Delete
<?php esc_html_e( 'Sorry, we didn\'t find any fields that match your criteria.', 'wpforms-lite' ); ?>
[707] Fix | Delete
</p>
[708] Fix | Delete
</div>
[709] Fix | Delete
</div>
[710] Fix | Delete
<?php
[711] Fix | Delete
}
[712] Fix | Delete
}
[713] Fix | Delete
[714] Fix | Delete
new WPForms_Builder_Panel_Fields();
[715] Fix | Delete
[716] Fix | Delete
12
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function