File "class-option-note.php"
Full Path: /home/tekvhqgl/public_html/dev2024_old_skip/wp-content/plugins/mobile-menu/includes/plugin-settings/lib/class-option-note.php
File size: 1.02 KB
MIME-type: text/x-php
Charset: utf-8
<?php
if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly
}
class MobileMenuOptionNote extends MobileMenuOption {
public $defaultSecondarySettings = array(
'color' => 'green', // The color of the note's border
'notification' => false,
'paragraph' => true,
);
/*
* Display for options and meta
*/
public function display() {
$this->echoOptionHeader();
$color = $this->settings['color'] == 'green' ? '' : 'error';
if ( $this->settings['notification'] ) {
?><div class='updated below-h2 <?php echo $color ?>'><?php
}
if ( $this->settings['paragraph'] ) {
echo "<p class='description'>";
}
echo $this->settings['desc'];
if ( $this->settings['paragraph'] ) {
echo '</p>';
}
if ( $this->settings['notification'] ) {
?></div><?php
}
if ( $this->settings['name'] == 'Alerts' ) {
foreach ( $this->owner->owner->get_alert_messages() as $message ) {
echo '<p class="mm-alert-message"> - ' . $message . '</p>';
}
}
$this->echoOptionFooter( false );
}
}