# countdown-time/1.2.2/inc/HelpPage.php

Countdown Timer Block – build urgency for events and launches, version 1.2.2. 31 lines.

- Page: https://pluginprobe.com/plugins/countdown-time/1.2.2/code/inc/HelpPage.php
- Raw: https://pluginprobe.com/plugins/countdown-time/1.2.2/raw/inc/HelpPage.php
- Modified: 2024-01-20T11:25:40+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/countdown-time/1.2.2/code/inc/HelpPage.php#L10-L20`.

```php
<?php
class CTBHelpPage{
	public function __construct(){
		add_action( 'admin_menu', [$this, 'adminMenu'] );
		add_action( 'admin_enqueue_scripts', [$this, 'adminEnqueueScripts'] );
	}

	function adminMenu(){
		add_submenu_page(
			'edit.php?post_type=ctb',
			__( 'Help', 'countdown-time' ),
			__( 'Help', 'countdown-time' ),
			'manage_options',
			'ctb-help',
			[$this, 'helpPage']
		);
	}

	function helpPage(){ ?>
		<div id='bplAdminHelpPage'></div>
	<?php }

	function adminEnqueueScripts( $hook ) {
		if( strpos( $hook, 'ctb-help' ) ){
			wp_enqueue_style( 'ctb-admin-help', CTB_DIR_URL . 'dist/admin-help.css', [], CTB_VERSION );
			wp_enqueue_script( 'ctb-admin-help', CTB_DIR_URL . 'dist/admin-help.js', [ 'react', 'react-dom' ], CTB_VERSION );
			wp_set_script_translations( 'ctb-admin-help', 'countdown-time', CTB_DIR_PATH . 'languages' );
		}
	}
}
new CTBHelpPage;
```
