Edit File by line
/home/zeestwma/richards.../wp-conte.../plugins/wpforms-.../template.../builder
File: help.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Form Builder Help Screen template.
[2] Fix | Delete
*
[3] Fix | Delete
* @since 1.6.3
[4] Fix | Delete
*
[5] Fix | Delete
* @var array $settings Help Screen settings.
[6] Fix | Delete
*/
[7] Fix | Delete
[8] Fix | Delete
if ( ! defined( 'ABSPATH' ) ) {
[9] Fix | Delete
exit;
[10] Fix | Delete
}
[11] Fix | Delete
[12] Fix | Delete
$times_svg = '<svg width="1792" height="1792" viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"><path d="M1490 1322q0 40-28 68l-136 136q-28 28-68 28t-68-28l-294-294-294 294q-28 28-68 28t-68-28l-136-136q-28-28-28-68t28-68l294-294-294-294q-28-28-28-68t28-68l136-136q28-28 68-28t68 28l294 294 294-294q28-28 68-28t68 28l136 136q28 28 28 68t-28 68l-294 294 294 294q28 28 28 68z"/></svg>';
[13] Fix | Delete
$url_parameters = add_query_arg(
[14] Fix | Delete
[
[15] Fix | Delete
'utm_campaign' => wpforms()->is_pro() ? 'plugin' : 'liteplugin',
[16] Fix | Delete
'utm_source' => 'WordPress',
[17] Fix | Delete
'utm_medium' => rawurlencode( 'Builder Help Modal' ),
[18] Fix | Delete
'utm_content' => '',
[19] Fix | Delete
],
[20] Fix | Delete
''
[21] Fix | Delete
);
[22] Fix | Delete
[23] Fix | Delete
$links_utm_medium = 'Builder Help Modal';
[24] Fix | Delete
[25] Fix | Delete
?>
[26] Fix | Delete
<div id="wpforms-builder-help" style="display: none; opacity: 0;" class="wpforms-admin-page">
[27] Fix | Delete
[28] Fix | Delete
<img id="wpforms-builder-help-logo"
[29] Fix | Delete
src="<?php echo esc_url( WPFORMS_PLUGIN_URL . 'assets/images/sullie-alt.png' ); ?>"
[30] Fix | Delete
title="<?php esc_attr_e( 'Sullie the WPForms mascot', 'wpforms-lite' ); ?>"
[31] Fix | Delete
alt="WPForms Logo">
[32] Fix | Delete
[33] Fix | Delete
<div id="wpforms-builder-help-close" title="<?php esc_attr_e( 'Close', 'wpforms-lite' ); ?>">
[34] Fix | Delete
<?php echo $times_svg; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
[35] Fix | Delete
</div>
[36] Fix | Delete
[37] Fix | Delete
<div id="wpforms-builder-help-content">
[38] Fix | Delete
[39] Fix | Delete
<div id="wpforms-builder-help-search">
[40] Fix | Delete
<input type="text" placeholder="<?php esc_attr_e( 'Ask a question or search the docs...', 'wpforms-lite' ); ?>">
[41] Fix | Delete
<div id="wpforms-builder-help-search-clear" title="<?php esc_attr_e( 'Clear', 'wpforms-lite' ); ?>">
[42] Fix | Delete
<?php echo $times_svg; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
[43] Fix | Delete
</div>
[44] Fix | Delete
</div>
[45] Fix | Delete
[46] Fix | Delete
<div id="wpforms-builder-help-no-result" style="display: none;">
[47] Fix | Delete
<ul class="wpforms-builder-help-docs">
[48] Fix | Delete
<li>
[49] Fix | Delete
<i class="fa fa-info-circle"></i><span><?php esc_html_e( 'No docs found', 'wpforms-lite' ); ?></span>
[50] Fix | Delete
</li>
[51] Fix | Delete
</ul>
[52] Fix | Delete
</div>
[53] Fix | Delete
<div id="wpforms-builder-help-result"></div>
[54] Fix | Delete
<div id="wpforms-builder-help-categories"></div>
[55] Fix | Delete
[56] Fix | Delete
<div id="wpforms-builder-help-footer">
[57] Fix | Delete
[58] Fix | Delete
<div class="wpforms-builder-help-footer-block">
[59] Fix | Delete
<i class="fa fa-file-text-o"></i>
[60] Fix | Delete
<h3><?php esc_html_e( 'View Documentation', 'wpforms-lite' ); ?></h3>
[61] Fix | Delete
<p><?php esc_html_e( 'Browse documentation, reference material, and tutorials for WPForms.', 'wpforms-lite' ); ?></p>
[62] Fix | Delete
<a href="<?php echo esc_url( wpforms_utm_link( $settings['docs_url'], $links_utm_medium, 'View Documentation' ) ); ?>"
[63] Fix | Delete
class="wpforms-btn wpforms-btn-md wpforms-btn-light-grey"
[64] Fix | Delete
rel="noopener noreferrer"
[65] Fix | Delete
target="_blank">
[66] Fix | Delete
<?php esc_html_e( 'View All Documentation', 'wpforms-lite' ); ?>
[67] Fix | Delete
</a>
[68] Fix | Delete
</div>
[69] Fix | Delete
[70] Fix | Delete
<div class="wpforms-builder-help-footer-block">
[71] Fix | Delete
<i class="fa fa-support"></i>
[72] Fix | Delete
<h3><?php esc_html_e( 'Get Support', 'wpforms-lite' ); ?></h3>
[73] Fix | Delete
[74] Fix | Delete
<?php if ( wpforms()->is_pro() ) { ?>
[75] Fix | Delete
<p><?php esc_html_e( 'Submit a ticket and our world class support team will be in touch soon.', 'wpforms-lite' ); ?></p>
[76] Fix | Delete
<a href="<?php echo esc_url( wpforms_utm_link( $settings['support_ticket_url'], $links_utm_medium, 'Contact Support' ) ); ?>"
[77] Fix | Delete
class="wpforms-btn wpforms-btn-md wpforms-btn-light-grey"
[78] Fix | Delete
rel="noopener noreferrer"
[79] Fix | Delete
target="_blank">
[80] Fix | Delete
<?php esc_html_e( 'Submit a Support Ticket', 'wpforms-lite' ); ?>
[81] Fix | Delete
</a>
[82] Fix | Delete
[83] Fix | Delete
<?php } else { ?>
[84] Fix | Delete
<p><?php esc_html_e( 'Upgrade to WPForms Pro to access our world class customer support.', 'wpforms-lite' ); ?></p>
[85] Fix | Delete
<a href="<?php echo esc_url( wpforms_utm_link( $settings['upgrade_url'], $links_utm_medium, 'Upgrade For Support' ) ); ?>"
[86] Fix | Delete
class="wpforms-btn wpforms-btn-md wpforms-btn-orange"
[87] Fix | Delete
rel="noopener noreferrer"
[88] Fix | Delete
target="_blank">
[89] Fix | Delete
<?php esc_html_e( 'Upgrade to WPForms Pro', 'wpforms-lite' ); ?>
[90] Fix | Delete
</a>
[91] Fix | Delete
[92] Fix | Delete
<?php } ?>
[93] Fix | Delete
</div>
[94] Fix | Delete
[95] Fix | Delete
</div>
[96] Fix | Delete
</div>
[97] Fix | Delete
</div>
[98] Fix | Delete
[99] Fix | Delete
<script type="text/html" id="tmpl-wpforms-builder-help-categories">
[100] Fix | Delete
<ul class="wpforms-builder-help-categories-toggle">
[101] Fix | Delete
<# _.each( data.categories, function( categoryTitle, categorySlug ) { #>
[102] Fix | Delete
<li class="wpforms-builder-help-category">
[103] Fix | Delete
<header>
[104] Fix | Delete
<i class="fa fa-folder-open-o wpforms-folder"></i>
[105] Fix | Delete
<span>{{{ categoryTitle }}}</span>
[106] Fix | Delete
<i class="fa fa-angle-right wpforms-arrow"></i>
[107] Fix | Delete
</header>
[108] Fix | Delete
<ul class="wpforms-builder-help-docs" style="display: none;">
[109] Fix | Delete
<# _.each( data.docs[ categorySlug ], function( doc, index ) {
[110] Fix | Delete
utmContent = encodeURIComponent( doc.title ); #>
[111] Fix | Delete
<li>
[112] Fix | Delete
<i class="fa fa-file-text-o"></i><a href="{{ doc.url }}<?php echo esc_url( $url_parameters ); ?>={{ utmContent }}" rel="noopener noreferrer" target="_blank">{{{ doc.title }}}</a>
[113] Fix | Delete
</li>
[114] Fix | Delete
<# if ( index === 4 && data.docs[ categorySlug ].length > 4 ) { #>
[115] Fix | Delete
<div style="display: none;">
[116] Fix | Delete
<# } #>
[117] Fix | Delete
<# } ) #>
[118] Fix | Delete
<# if ( data.docs[ categorySlug ].length > 4 ) { #>
[119] Fix | Delete
</div>
[120] Fix | Delete
<button class="wpforms-btn wpforms-btn-md wpforms-btn-light-grey viewall" type="button"><?php esc_html_e( 'View All', 'wpforms-lite' ); ?> {{{ categoryTitle }}} <?php esc_html_e( 'Docs', 'wpforms-lite' ); ?></button>
[121] Fix | Delete
<# } #>
[122] Fix | Delete
</ul>
[123] Fix | Delete
</li>
[124] Fix | Delete
<# } ) #>
[125] Fix | Delete
</ul>
[126] Fix | Delete
</script>
[127] Fix | Delete
[128] Fix | Delete
<script type="text/html" id="tmpl-wpforms-builder-help-categories-error">
[129] Fix | Delete
<h4 class="wpforms-builder-help-error">
[130] Fix | Delete
<?php esc_html_e( 'Unfortunately the error occurred while downloading help data.', 'wpforms-lite' ); ?>
[131] Fix | Delete
</h4>
[132] Fix | Delete
</script>
[133] Fix | Delete
[134] Fix | Delete
<script type="text/html" id="tmpl-wpforms-builder-help-docs">
[135] Fix | Delete
<ul class="wpforms-builder-help-docs">
[136] Fix | Delete
<# _.each( data.docs, function( doc, index ) {
[137] Fix | Delete
utmContent = encodeURIComponent( doc.title ); #>
[138] Fix | Delete
<li>
[139] Fix | Delete
<i class="fa fa-file-text-o"></i><a href="{{ doc.url }}<?php echo esc_url( $url_parameters ); ?>={{ utmContent }}" rel="noopener noreferrer" target="_blank">{{{ doc.title }}}</a>
[140] Fix | Delete
</li>
[141] Fix | Delete
<# } ) #>
[142] Fix | Delete
</ul>
[143] Fix | Delete
</script>
[144] Fix | Delete
[145] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function