<?php if (isset($light_config['site_annoucement_switch']) && $light_config['site_annoucement_switch'] == 1 && isset($light_config['site_annoucement_position']) && $light_config['site_annoucement_position'] == 0 && $light_config['site_annoucement_content'] && $route != 'my' && $route != 'user') {
  $site_annoucement_style = "";
  switch($light_config['site_annoucement_style']){
      case 0: $site_annoucement_style = "primary";break;
      case 1: $site_annoucement_style = "secondary";break;
      case 2: $site_annoucement_style = "success";break;
      case 3: $site_annoucement_style = "danger";break;
      case 4: $site_annoucement_style = "warning";break;
      case 5: $site_annoucement_style = "info";break;
  }
  ?> 
  <div class="row">
    <div class="col-12">
      <div class="alert mb-0 mb-lg-3 alert-<?php echo $site_annoucement_style;?> alert-dismissible fade show" role="alert">
        <i class="<?php echo $light_config['site_annoucement_icon'] ;?> mr-2"></i>
        <?php echo $light_config['site_annoucement_content'] ;?>
        <button type="button" class="close" data-dismiss="alert" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
    </div>
  </div>

<?php }?>
