/
home
/
vianto5
/
.trash
/
cititower.mx
/
wp-content
/
plugins
/
wordfence
/
views
/
options
/
/home/vianto5/.trash/cititower.mx/wp-content/plugins/wordfence/views/options
mkdir
upload
Name
Size
Mode
Actions
block-all-options-controls.php
7376
0644
edit
dl
rm
block-controls.php
5462
0644
edit
dl
rm
option-label.php
1340
0644
edit
dl
rm
option-select.php
2523
0644
edit
dl
rm
option-switch.php
3022
0644
edit
dl
rm
option-text.php
2472
0644
edit
dl
rm
option-textarea.php
3245
0644
edit
dl
rm
option-toggled-boolean-switch.php
2971
0644
edit
dl
rm
option-toggled-multiple.php
3014
0644
edit
dl
rm
option-toggled-segmented.php
3030
0644
edit
dl
rm
option-toggled-select.php
3760
0644
edit
dl
rm
option-toggled-sub.php
5169
0644
edit
dl
rm
option-toggled-textarea.php
3423
0644
edit
dl
rm
option-toggled.php
3106
0644
edit
dl
rm
option-token.php
2463
0644
edit
dl
rm
options-title.php
2853
0644
edit
dl
rm
Edit:
/home/vianto5/.trash/cititower.mx/wp-content/plugins/wordfence/views/options/option-switch.php
(3022B)
<?php if (!defined('WORDFENCE_VERSION')) { exit; } /** * Presents a switch option. * * Expects $optionName, $value, $states, and $title (or $titleHTML) to be defined. $helpLink may also be defined. * * @var string $optionName The option name for the switch. * @var string $value The current value of $optionName. * @var string $title The title shown for the option. * @var string $titleHTML The raw HTML title shown for the option. This supersedes $title. * @var array $states An array of the possible states for the switch. The array matches the format array('value' => <value>, 'label' => <label>) * @var string $helpLink If defined, the link to the corresponding external help page. * @var bool $premium If defined, the option will be tagged as premium only and not allow its value to change for free users. */ if (!isset($titleHTML)) { $titleHTML = esc_html($title); } $id = 'wf-option-' . preg_replace('/[^a-z0-9]/i', '-', $optionName); ?> <ul id="<?php echo esc_attr($id); ?>" class="wf-option wf-option-switch<?php if (!wfConfig::p() && isset($premium) && $premium) { echo ' wf-option-premium'; } ?>" data-option-name="<?php echo esc_attr($optionName); ?>" data-original-value="<?php echo esc_attr($value); ?>"> <?php if (!isset($noSpacer) || !$noSpacer): ?> <li class="wf-option-spacer"></li> <?php endif; ?> <li class="wf-option-content"> <ul> <li class="wf-option-title"> <?php if (isset($subtitle)): ?> <ul class="wf-flex-vertical wf-flex-align-left"> <li> <?php endif; ?> <span id="<?php echo esc_attr($id); ?>-label"><?php echo $titleHTML; ?></span><?php if (!wfConfig::p() && isset($premium) && $premium) { echo ' <a href="https://www.wordfence.com/gnl1optionUpgrade/wordfence-signup/" target="_blank" rel="noopener noreferrer" class="wf-premium-link">' . esc_html__('Premium Feature', 'wordfence') . '</a>'; } ?><?php if (isset($helpLink)) { echo ' <a href="' . esc_attr($helpLink) . '" target="_blank" rel="noopener noreferrer" class="wf-inline-help"><i class="wf-fa wf-fa-question-circle-o" aria-hidden="true"></i><span class="screen-reader-text"> (' . esc_html__('opens in new tab', 'wordfence') . ')</span></a>'; } ?> <?php if (isset($subtitle)): ?> </li> <li class="wf-option-subtitle"><?php echo esc_html($subtitle); ?></li> </ul> <?php endif; ?> </li> <li class="wf-option-switch<?php if (isset($alignment)) { echo ' ' . $alignment; } ?> wf-padding-add-top-xs-small"> <ul class="wf-switch<?php echo (!(!wfConfig::p() && isset($premium) && $premium) ? '' : ' wf-disabled'); ?>" role="radiogroup" aria-labelledby="<?php echo esc_attr($id); ?>-label"> <?php foreach ($states as $s): ?> <li<?php if ($s['value'] == $value) { echo ' class="wf-active"'; } ?> data-option-value="<?php echo esc_attr($s['value']); ?>" role="radio" aria-checked="<?php echo ($s['value'] == $value ? 'true' : 'false'); ?>" tabindex="0"><?php echo esc_html($s['label']); ?></li> <?php endforeach; ?> </ul> </li> </ul> </li> </ul>
Save
, 'label' =>
) * @var string $helpLink If defined, the link to the corresponding external help page. * @var bool $premium If defined, the option will be tagged as premium only and not allow its value to change for free users. */ if (!isset($titleHTML)) { $titleHTML = esc_html($title); } $id = 'wf-option-' . preg_replace('/[^a-z0-9]/i', '-', $optionName); ?>
' . esc_html__('Premium Feature', 'wordfence') . ''; } ?>
(' . esc_html__('opens in new tab', 'wordfence') . ')
'; } ?>
data-option-value="" role="radio" aria-checked="" tabindex="0">