Current Path : /storage/v11800/athomenoha/public_html/wp-content/plugins/salon-booking-system/views/shortcode/ |
Linux v11800 5.3.0-1023-aws #25~18.04.1-Ubuntu SMP Fri Jun 5 15:19:18 UTC 2020 aarch64
|
Current File : /storage/v11800/athomenoha/public_html/wp-content/plugins/salon-booking-system/views/shortcode/_editable_snippet.php |
<?php
$args = array(
'key' => '',
'label' => '',
'tag' => 'h2',
'textClasses' => 'salon-step-title',
'inputClasses' => '',
'tagClasses' => 'salon-step-title',
);
foreach($args as $k => $v) {
if (!isset($$k)) {
$$k = $v;
}
}
$value = SLN_Plugin::getInstance()->getSettings()->getCustomText($key, $label);
if(current_user_can('manage_options')) {
?>
<div class="editable">
<<?php echo $tag; ?> class="text <?php echo $textClasses ?>">
<?php echo $value; ?>
</<?php echo $tag; ?>>
<div class="input <?php echo $inputClasses ?>">
<input class="sln-edit-text" id="<?php echo $key; ?>" value="<?php echo $value; ?>" />
</div>
<i class="fa fa-cog fa-fw"></i>
</div>
<?php
} else {
?>
<<?php echo $tag; ?> class="<?php echo $tagClasses ?>"><?php echo $value; ?></<?php echo $tag; ?>>
<?php
}