HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux Droplet-NYC1-3 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: www-data (33)
PHP: 7.4.3-4ubuntu2.29
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/html/americaspeakon.org/wp-content/plugins/post-words-count/admin/admin.php
<?php
/**
 * Admin Support Page
*/

class PWC_Admin_Page {
    /**
     * Contructor
    */
    public function __construct(){
        add_action( 'admin_menu', [ $this, 'pwc_plugin_admin_page' ] );
        add_action( 'admin_enqueue_scripts', [ $this, 'pwc_admin_page_assets' ] );
    }

    // Admin Assets
    public function pwc_admin_page_assets($screen) {
        if( 'tools_page_post-words-count' == $screen ) {
            wp_enqueue_style( 'admin-asset', plugins_url('assets/css/admin.css', __FILE__ ) );
        }
    }

    // Admin Page
    public function pwc_plugin_admin_page(){
        add_submenu_page( 'tools.php', __('Post Words Counter','post-words-count'), __('Post Words Counter','post-words-count'), 'manage_options', 'post-words-count', [ $this, 'pwc_admin_page_content_callback' ] );
    }
    public function pwc_admin_page_content_callback(){
        ?>
            <div class="admin_page_container">
                <div class="plugin_head">
                    <div class="head_container">
                        <h1 class="plugin_title"> <?php echo esc_html("Post Words Counter and Thumbnail Checker", "post-words-count"); ?> </h1>
                        <h4 class="plugin_subtitle"><?php echo esc_html("A Simple Plugin to Check out Your Posts Thumbanil Existance and Display Total Post Words.", "post-words-count"); ?></h4>
                        <div class="support_btn">
                            <a href="https://www.patreon.com/dev_zak" target="_blank" rel="nofollow noreferrer" style="background: #EA4335"><?php echo esc_html("Donate Me", "post-words-count"); ?></a>
                            <a href="https://makegutenblock.com/contact" target="_blank" rel="nofollow noreferrer" style="background: #D37F00"><?php echo esc_html("Get Support", "post-words-count"); ?></a>
                            <a href="https://wordpress.org/plugins/post-words-count/#reviews" target="_blank" rel="nofollow noreferrer" style="background: #0174A2"><?php echo esc_html("Rate Plugin", "post-words-count"); ?></a>
                        </div>
                    </div>
                </div>
                <div class="plugin_body">
                    <div class="doc_video_area">
                        <div class="doc_video">
                          <img src="<?php echo plugin_dir_url(__FILE__); ?>./assets/img/screenshot-1.png">
                        </div>
                    </div>
                    <div class="support_area">
                        <div class="single_support">
                            <h4 class="support_title"><?php echo esc_html("Freelance Work", "post-words-count"); ?></h4>
                            <div class="support_btn">
                                <a href="https://www.fiverr.com/users/devs_zak/" target="_blank" rel="nofollow noreferrer" style="background: #1DBF73"><?php echo esc_html("@Fiverr", "post-words-count"); ?></a>
                                <a href="https://www.upwork.com/freelancers/~010af183b3205dc627" target="_blank" rel="nofollow noreferrer" style="background: #14A800"><?php echo esc_html("@UpWork", "post-words-count"); ?></a>
                            </div>
                        </div>
                        <div class="single_support">
                            <h4 class="support_title"><?php echo esc_html("Get Support", "post-words-count"); ?></h4>
                            <div class="support_btn">
                                <a href="https://makegutenblock.com/contact" target="_blank" rel="nofollow noreferrer" style="background: #002B42"><?php echo esc_html("Contact", "post-words-count"); ?></a>
                                <a href="mailto:zbinsaifullah@gmail.com" style="background: #EA4335"><?php echo esc_html("Send Mail", "post-words-count"); ?></a>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        <?php
    }
}
 new PWC_Admin_Page();