HEX
Server: Apache
System: Linux cpanelx.inxs.ro 4.18.0-477.27.2.lve.el8.x86_64 #1 SMP Wed Oct 11 12:32:56 UTC 2023 x86_64
User: crowdandsafety (1041)
PHP: 8.1.34
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/crowdandsafety/public_html/wp-content/plugins/cornerstone/includes/shortcodes/alert.php
<?php

// Alert
// =============================================================================

function x_shortcode_alert( $atts, $content = null ) {
  extract( shortcode_atts( array(
    'id'      => '',
    'class'   => '',
    'style'   => '',
    'type'    => '',
    'heading' => '',
    'close'   => ''
  ), $atts, 'x_alert' ) );

  $close_class = ( $close == 'true' ) ? 'fade in' : 'x-alert-block';

  $atts = cs_atts( array(
    'id' => $id,
    'class' => trim( "x-alert x-alert-$type " . $close_class . ' ' . $class ),
    'style' => $style
  ) );

  $heading = cs_decode_shortcode_attribute( $heading );

  $button = ( $close == 'true' ) ? "<button type=\"button\" class=\"close\" data-dismiss=\"alert\">&times;</button>" : '';
  $heading = ( $heading ) ? "<h6 class=\"h-alert\">{$heading}</h6>" : '';

  return "<div {$atts}>{$button}{$heading}" . do_shortcode($content) . "</div>";
}

add_shortcode( 'cs_alert', 'x_shortcode_alert' );