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
/home/sportsfe.../httpdocs/clone/wp-conte.../plugins/wordpres.../includes/admin/views
File: admin-manage-support-persons.php
<?php ob_start(); ?>
[0] Fix | Delete
<div id="wws-manage-support-persons-table">
[1] Fix | Delete
<table class="wp-list-table widefat striped">
[2] Fix | Delete
<thead>
[3] Fix | Delete
<tr>
[4] Fix | Delete
<th>#</th>
[5] Fix | Delete
<th><?php esc_html_e( 'Name', 'wc-wws' ); ?></th>
[6] Fix | Delete
<th><?php esc_html_e( 'Title', 'wc-wws' ); ?></th>
[7] Fix | Delete
<th><?php esc_html_e( 'Contact Number', 'wc-wws' ); ?></th>
[8] Fix | Delete
<th><?php esc_html_e( 'Actions', 'wc-wws' ); ?></th>
[9] Fix | Delete
</tr>
[10] Fix | Delete
</thead>
[11] Fix | Delete
<tbody>
[12] Fix | Delete
<?php $sr = 1; ?>
[13] Fix | Delete
<?php foreach ( get_option( 'wws_multi_support_persons', array() ) as $key => $value) : ?>
[14] Fix | Delete
<tr>
[15] Fix | Delete
<td><?php echo $sr; // WPCS:XXS ok. ?></td>
[16] Fix | Delete
<td><?php echo esc_html( $value['name'] ) ?></td>
[17] Fix | Delete
<td><?php echo esc_html( $value['title'] ); ?></td>
[18] Fix | Delete
<td><?php echo esc_html( $value['contact'] ); ?></td>
[19] Fix | Delete
<td>
[20] Fix | Delete
<a href="#" data-multi-account-key="<?php echo esc_attr( $key ) ?>" class="button wws_edit_multi_account_show_popup"><?php esc_html_e( 'Edit', 'wc-wws' ) ?></a>&nbsp;<a href="?wws_multi_account_delete=<?php echo esc_attr( $key ) ?>" class="button button-link-delete"><?php esc_html_e( 'Delete', 'wc-wws' ) ?></a>
[21] Fix | Delete
</td>
[22] Fix | Delete
</tr>
[23] Fix | Delete
<?php $sr++; ?>
[24] Fix | Delete
<?php endforeach; ?>
[25] Fix | Delete
</tbody>
[26] Fix | Delete
<tfoot>
[27] Fix | Delete
<tr>
[28] Fix | Delete
<th>#</th>
[29] Fix | Delete
<th><?php esc_html_e( 'Name', 'wc-wws' ); ?></th>
[30] Fix | Delete
<th><?php esc_html_e( 'Title', 'wc-wws' ); ?></th>
[31] Fix | Delete
<th><?php esc_html_e( 'Contact Number', 'wc-wws' ); ?></th>
[32] Fix | Delete
<th><?php esc_html_e( 'Actions', 'wc-wws' ); ?></th>
[33] Fix | Delete
</tr>
[34] Fix | Delete
</tfoot>
[35] Fix | Delete
</table>
[36] Fix | Delete
<a href="#" name="<?php esc_html_e('Add Support Person', 'wc-wws') ?>" class="button button-primary wws_add_multi_account_show_popup"><?php esc_html_e( 'Add Support Person', 'wc-wws' ) ?></a>
[37] Fix | Delete
</div>
[38] Fix | Delete
<?php
[39] Fix | Delete
$multi_support_persons = ob_get_clean();
[40] Fix | Delete
[41] Fix | Delete
// Single support person layout
[42] Fix | Delete
$single_support_person_layouts = apply_filters( 'wws_single_support_person_layouts', array(
[43] Fix | Delete
1, 2, 3, 4, 7
[44] Fix | Delete
) );
[45] Fix | Delete
[46] Fix | Delete
if ( in_array( get_option( 'wws_layout' ), $single_support_person_layouts ) ) {
[47] Fix | Delete
return apply_filters( 'wws_manage_single_support_person_settings', array(
[48] Fix | Delete
'wws_contact_number' => array(
[49] Fix | Delete
'title' => __( 'Support Contact Number', 'wc-wws' ),
[50] Fix | Delete
'desc_tip' => __( 'Enter mobile phone number with the international country code, without + character. Example: 911234567890 for (+91) 1234567890', 'wc-wws' ),
[51] Fix | Delete
'id' => 'wws_contact_number',
[52] Fix | Delete
'type' => 'text',
[53] Fix | Delete
'class' => 'regular-text',
[54] Fix | Delete
),
[55] Fix | Delete
'wws_support_person_image' => array(
[56] Fix | Delete
'title' => __( 'Support Person Image', 'wc-wws' ),
[57] Fix | Delete
'desc_tip' => __( 'Upload support person image', 'wc-wws' ),
[58] Fix | Delete
'id' => 'wws_support_person_image',
[59] Fix | Delete
'type' => 'file',
[60] Fix | Delete
'class' => 'regular-text',
[61] Fix | Delete
'css' => 'width:240px;'
[62] Fix | Delete
),
[63] Fix | Delete
) );
[64] Fix | Delete
}
[65] Fix | Delete
[66] Fix | Delete
// Group invitation layout
[67] Fix | Delete
if ( get_option( 'wws_layout' ) == '5' ) {
[68] Fix | Delete
return apply_filters( 'wws_manage_group_support_person_settings', array(
[69] Fix | Delete
'wws_group_id' => array(
[70] Fix | Delete
'title' => __( 'Support Group ID', 'wc-wws' ),
[71] Fix | Delete
'desc_tip' => __( 'Enter your WhatsApp group chat ID', 'wc-wws' ),
[72] Fix | Delete
'id' => 'wws_group_id',
[73] Fix | Delete
'type' => 'text',
[74] Fix | Delete
'class' => 'regular-text',
[75] Fix | Delete
),
[76] Fix | Delete
) );
[77] Fix | Delete
}
[78] Fix | Delete
[79] Fix | Delete
// Multi support person layout
[80] Fix | Delete
$multi_support_person_layouts = apply_filters( 'wws_multi_support_person_layouts', array(
[81] Fix | Delete
6, 8
[82] Fix | Delete
) );
[83] Fix | Delete
[84] Fix | Delete
if ( in_array( get_option( 'wws_layout' ), $multi_support_person_layouts ) ) {
[85] Fix | Delete
return apply_filters( 'wws_manage_multi_support_person_settings', array(
[86] Fix | Delete
array(
[87] Fix | Delete
'title' => __( 'Multi Support Person Settings', 'wc-wws' ),
[88] Fix | Delete
'type' => 'custom',
[89] Fix | Delete
'custom' => $multi_support_persons,
[90] Fix | Delete
),
[91] Fix | Delete
'wws_multi_support_person_randomize' => array(
[92] Fix | Delete
'title' => __( 'Multi Support Randomize', 'wc-wws' ),
[93] Fix | Delete
'desc' => __( 'Enable/ Disable', 'wc-wws' ),
[94] Fix | Delete
'desc_tip' => __( 'You can rotate or randomize the multi support person order.', 'wc-wws' ),
[95] Fix | Delete
'id' => 'wws_multi_support_person_randomize',
[96] Fix | Delete
'default' => 'no',
[97] Fix | Delete
'type' => 'checkbox',
[98] Fix | Delete
),
[99] Fix | Delete
) );
[100] Fix | Delete
}
[101] Fix | Delete
[102] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function