HEX
Server: LiteSpeed
System: Linux srv158.niagahoster.com 4.18.0-553.30.1.lve.el8.x86_64 #1 SMP Tue Dec 3 01:21:19 UTC 2024 x86_64
User: u1694298 (3732)
PHP: 7.4.33
Disabled: symlink,shell_exec,exec,popen,system,dl,passthru,escapeshellarg,escapeshellcmd,show_source,pcntl_exec
Upload Files
File: /home/u1694298/www/wp-content/plugins/squirrly-seo/view/Notices.php
<?php
defined( 'ABSPATH' ) || die( 'Cheatin\' uh?' );
if ( ! isset( $message ) || ! isset( $type ) ) {
	return;
}

/**
 * Top Notice view
 *
 */
?>
<?php
if ( $type === 'error' ) { ?>
    <div class="sq_alert position-fixed fixed-top text-center text-white bg-danger m-0 p-3 border border-white sq-position-fixed sq-fixed-top sq-text-center sq-text-white sq-bg-danger sq-m-0 sq-p-3 sq-border sq-border-white">
		<?php echo wp_kses_post( $message ); ?>
    </div>
    <script>
        (function ($) {
            $(".sq_alert").on('click', function () {
                $(this).remove();
            });
            setTimeout(function () {
                $('.sq_alert').remove();
            }, 5000);
        })(jQuery);
    </script>
<?php } elseif ( $type == 'success' ) { ?>
    <div class="sq_alert position-fixed fixed-top text-center text-white bg-success m-0 p-3 border border-white sq-position-fixed sq-fixed-top sq-text-center sq-text-white sq-bg-success sq-m-0 sq-p-3 sq-border sq-border-white">
		<?php echo wp_kses_post( $message ); ?>
    </div>
    <script>
        (function ($) {
            $(".sq_alert").on('click', function () {
                $(this).remove();
            });
            setTimeout(function () {
                $('.sq_alert').remove();
            }, 3000);
        })(jQuery);
    </script>
<?php } else { ?>
    <div class="<?php echo $type ?>"><p><?php echo wp_kses_post( $message ); ?></p></div>
<?php } ?>