Edit File by line
/home/zeestwma/ceyloniy.../wp-conte.../plugins/wpforms-.../template...
File: admin-bar-menu.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Forms selector for admin bar menu.
[2] Fix | Delete
*
[3] Fix | Delete
* @since 1.6.5
[4] Fix | Delete
*
[5] Fix | Delete
* @var array $forms_data Forms data.
[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
$has_notifications = $forms_data['has_notifications'] ? ' wpforms-menu-form-notifications' : '';
[13] Fix | Delete
[14] Fix | Delete
end( $forms_data['forms'] );
[15] Fix | Delete
$last_key = key( $forms_data['forms'] );
[16] Fix | Delete
?>
[17] Fix | Delete
[18] Fix | Delete
<script type="text/html" id="tmpl-wpforms-admin-menubar-data">
[19] Fix | Delete
<?php foreach ( $forms_data['forms'] as $key => $form ) : ?>
[20] Fix | Delete
<li id="wp-admin-bar-wpforms-form-id-<?php echo esc_attr( $form['form_id'] ); ?>" class="menupop wpforms-menu-form<?php echo $key === 0 ? esc_attr( $has_notifications ) : ''; ?><?php echo $key === $last_key ? ' wpforms-menu-form-last' : ''; ?>">
[21] Fix | Delete
<div class="ab-item ab-empty-item" aria-haspopup="true"><span class="wp-admin-bar-arrow" aria-hidden="true"></span><?php echo esc_html( $form['title'] ); ?></div>
[22] Fix | Delete
<div class="ab-sub-wrapper">
[23] Fix | Delete
<ul id="wp-admin-bar-wpforms-form-id-<?php echo esc_attr( $form['form_id'] ); ?>-default" class="ab-submenu">
[24] Fix | Delete
<?php if ( ! empty( $form['edit_url'] ) ) : ?>
[25] Fix | Delete
<li id="wp-admin-bar-wpforms-form-id-<?php echo esc_attr( $form['form_id'] ); ?>-edit">
[26] Fix | Delete
<a class="ab-item" href="<?php echo esc_url( $form['edit_url'] ); ?>"><?php echo esc_html( $forms_data['edit_text'] ); ?></a>
[27] Fix | Delete
</li>
[28] Fix | Delete
<?php endif; ?>
[29] Fix | Delete
<?php if ( ! empty( $form['entries_url'] ) ) : ?>
[30] Fix | Delete
<li id="wp-admin-bar-wpforms-form-id-<?php echo esc_attr( $form['form_id'] ); ?>-entries">
[31] Fix | Delete
<a class="ab-item" href="<?php echo esc_url( $form['entries_url'] ); ?>"><?php echo esc_html( $forms_data['entry_text'] ); ?></a>
[32] Fix | Delete
</li>
[33] Fix | Delete
<?php endif; ?>
[34] Fix | Delete
<?php if ( ! empty( $form['payments_url'] ) ) : ?>
[35] Fix | Delete
<li id="wp-admin-bar-wpforms-form-id-<?php echo esc_attr( $form['form_id'] ); ?>-payments">
[36] Fix | Delete
<a class="ab-item" href="<?php echo esc_url( $form['payments_url'] ); ?>"><?php echo esc_html( $forms_data['payment_text'] ); ?></a>
[37] Fix | Delete
</li>
[38] Fix | Delete
<?php endif; ?>
[39] Fix | Delete
<?php if ( ! empty( $form['survey_url'] ) ) : ?>
[40] Fix | Delete
<li id="wp-admin-bar-wpforms-form-id-<?php echo esc_attr( $form['form_id'] ); ?>-survey">
[41] Fix | Delete
<a class="ab-item" href="<?php echo esc_url( $form['survey_url'] ); ?>"><?php echo esc_html( $forms_data['survey_text'] ); ?></a>
[42] Fix | Delete
</li>
[43] Fix | Delete
<?php endif; ?>
[44] Fix | Delete
</ul>
[45] Fix | Delete
</div>
[46] Fix | Delete
</li>
[47] Fix | Delete
<?php endforeach; ?>
[48] Fix | Delete
</script>
[49] Fix | Delete
[50] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function