Sh3ll
OdayForums


Server : LiteSpeed
System : Linux premium84.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
User : claqxcrl ( 523)
PHP Version : 8.1.32
Disable Function : NONE
Directory :  /home/claqxcrl/www/wp-content/themes/film-celebrity/inc/admin-notice/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/claqxcrl/www/wp-content/themes/film-celebrity/inc/admin-notice/admin.php
<?php 
/*******************************************************************************
 *  Get Started Notice
 *******************************************************************************/

add_action( 'wp_ajax_film_celebrity_dismissed_notice_handler', 'film_celebrity_ajax_notice_handler' );

/** * AJAX handler to record dismissible notice status. */
function film_celebrity_ajax_notice_handler() {
    if ( isset( $_POST['type'] ) ) {
        $type = sanitize_text_field( wp_unslash( $_POST['type'] ) );
        update_option( 'dismissed-' . $type, TRUE );
    }
}

function film_celebrity_admin_notice_deprecated_hook() {
        $current_screen = get_current_screen();
        if ($current_screen->id !== 'appearance_page_film-celebrity-guide-page') {
        if ( ! get_option('dismissed-get_started', FALSE ) ) { ?>
            <div class="updated notice notice-get-started-class is-dismissible" data-notice="get_started">
                <div class="film-celebrity-getting-started-notice clearfix">
                    <div class="film-celebrity-theme-notice-content">
                        <h2 class="film-celebrity-notice-h2">
                            <?php
                            echo esc_html__( 'Let\'s Create Your website With', 'film-celebrity' ) . ' <strong>' . esc_html( wp_get_theme()->get('Name') ) . '</strong>';
                            ?>
                        </h2>
                        <span class="st-notification-wrapper">
                            <span class="st-notification-column-wrapper">
                                <span class="st-notification-column">
                                    <h2><?php echo esc_html('Feature Rich WordPress Theme','film-celebrity'); ?></h2>
                                    <ul class="st-notification-column-list">
                                        <li><?php echo esc_html('Live Customize','film-celebrity'); ?></li>
                                        <li><?php echo esc_html('Detailed theme Options','film-celebrity'); ?></li>
                                        <li><?php echo esc_html('Cleanly Coded','film-celebrity'); ?></li>
                                        <li><?php echo esc_html('Search Engine Friendly','film-celebrity'); ?></li>
                                    </ul>
                                    <a href="<?php echo esc_url( admin_url( 'themes.php?page=film-celebrity-guide-page' ) ); ?>" target="_blank" class="button-primary button"><?php echo esc_html('Get Started With Film Celebrity','film-celebrity'); ?></a>
                                </span>
                                <span class="st-notification-column">
                                    <h2><?php echo esc_html('Customize Your Website','film-celebrity'); ?></h2>
                                    <ul>
                                        <li><a href="<?php echo esc_url( admin_url( 'customize.php' ) ) ?>" target="_blank" class="button button-primary"><?php echo esc_html('Customize','film-celebrity'); ?></a></li>
                                        <li><a href="<?php echo esc_url( admin_url( 'widgets.php' ) ) ?>" class="button button-primary"><?php echo esc_html('Add Widgets','film-celebrity'); ?></a></li>
                                        <li><a href="<?php echo esc_url( FILM_CELEBRITY_SUPPORT_FREE ); ?>" target="_blank" class="button button-primary"><?php echo esc_html('Get Support','film-celebrity'); ?></a> </li>
                                    </ul>
                                </span>
                                <span class="st-notification-column">
                                    <h2><?php echo esc_html('Get More Options','film-celebrity'); ?></h2>
                                    <ul>
                                        <li><a href="<?php echo esc_url( FILM_CELEBRITY_DEMO_PRO ); ?>" target="_blank" class="button button-primary"><?php echo esc_html('View Live Demo','film-celebrity'); ?></a></li>
                                        <li><a href="<?php echo esc_url( FILM_CELEBRITY_BUY_NOW ); ?>" class="button button-primary premium"><?php echo esc_html('Purchase Now','film-celebrity'); ?></a></li>
                                        <li><a href="<?php echo esc_url( FILM_CELEBRITY_DOCS_FREE ); ?>" target="_blank" class="button button-primary"><?php echo esc_html('Free Documentation','film-celebrity'); ?></a> </li>
                                    </ul>
                                </span>
                            </span>
                            <span class="notice-img">
                                <img src="<?php echo esc_url( get_template_directory_uri() . '/images/notice.png' ); ?>">                                
                            </span>
                        </span>

                        <style>
                        </style>
                    </div>
                </div>
            </div>
        <?php }
    }
}

add_action( 'admin_notices', 'film_celebrity_admin_notice_deprecated_hook' );

function film_celebrity_switch_theme_function () {
    delete_option('dismissed-get_started', FALSE );
}

add_action('after_switch_theme', 'film_celebrity_switch_theme_function');

ZeroDay Forums Mini