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/wp-conte.../plugins/content-.../inc/freemius/template.../connect
File: permission.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* @package Freemius
[2] Fix | Delete
* @copyright Copyright (c) 2022, Freemius, Inc.
[3] Fix | Delete
* @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
[4] Fix | Delete
* @since 2.5.1
[5] Fix | Delete
*/
[6] Fix | Delete
[7] Fix | Delete
if ( ! defined( 'ABSPATH' ) ) {
[8] Fix | Delete
exit;
[9] Fix | Delete
}
[10] Fix | Delete
[11] Fix | Delete
/**
[12] Fix | Delete
* @var array $VARS
[13] Fix | Delete
* @var array $permission {
[14] Fix | Delete
* @type string $id
[15] Fix | Delete
* @type bool $default
[16] Fix | Delete
* @type string $icon-class
[17] Fix | Delete
* @type bool $optional
[18] Fix | Delete
* @type string $label
[19] Fix | Delete
* @type string $tooltip
[20] Fix | Delete
* @type string $desc
[21] Fix | Delete
* }
[22] Fix | Delete
*/
[23] Fix | Delete
$permission = $VARS;
[24] Fix | Delete
[25] Fix | Delete
$is_permission_on = ( ! isset( $permission['default'] ) || true === $permission['default'] );
[26] Fix | Delete
?>
[27] Fix | Delete
<li id="fs_permission_<?php echo esc_attr( $permission['id'] ) ?>" data-permission-id="<?php echo esc_attr( $permission['id'] ) ?>"
[28] Fix | Delete
class="fs-permission fs-<?php echo esc_attr( $permission['id'] ); ?><?php echo ( ! $is_permission_on ) ? ' fs-disabled' : ''; ?>">
[29] Fix | Delete
<i class="<?php echo esc_attr( $permission['icon-class'] ); ?>"></i>
[30] Fix | Delete
<?php if ( isset( $permission['optional'] ) && true === $permission['optional'] ) : ?>
[31] Fix | Delete
<div class="fs-switch fs-small fs-round fs-<?php echo $is_permission_on ? 'on' : 'off' ?>">
[32] Fix | Delete
<div class="fs-toggle"></div>
[33] Fix | Delete
</div>
[34] Fix | Delete
<?php endif ?>
[35] Fix | Delete
[36] Fix | Delete
<div class="fs-permission-description">
[37] Fix | Delete
<span<?php if ( ! empty( $permission['tooltip'] ) ) : ?> class="fs-tooltip-trigger"<?php endif ?>><?php echo esc_html( $permission['label'] ); ?><?php if ( ! empty( $permission['tooltip'] ) ) : ?><i class="dashicons dashicons-editor-help"><span class="fs-tooltip" style="width: 200px"><?php echo esc_html( $permission['tooltip'] ) ?></span></i><?php endif ?></span>
[38] Fix | Delete
[39] Fix | Delete
<p><?php echo esc_html( $permission['desc'] ); ?></p>
[40] Fix | Delete
</div>
[41] Fix | Delete
</li>
[42] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function