# countdown-time/1.3.0/includes/admin/SubMenu.php

Countdown Timer Block – build urgency for events and launches, version 1.3.0. 33 lines.

- Page: https://pluginprobe.com/plugins/countdown-time/1.3.0/code/includes/admin/SubMenu.php
- Raw: https://pluginprobe.com/plugins/countdown-time/1.3.0/raw/includes/admin/SubMenu.php
- Modified: 2025-09-21T05:22:22+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.3.0/code/includes/admin/SubMenu.php#L10-L20`.

```php
<?php
namespace CTB\Admin;

if ( !defined( 'ABSPATH' ) ) { exit; }

class SubMenu {
	public function __construct() {
		add_action( 'admin_menu', [ $this, 'adminMenu' ] );
	}

	function adminMenu(){
		add_submenu_page(
			'tools.php',
			__('Countdown Timer - bPlugins', 'countdown-time'),
			__('Countdown Timer', 'countdown-time'),
			'manage_options',
			'countdown-time',
			[$this, 'renderDashboardPage']
		);
	}

	function renderDashboardPage(){ ?>
		<div
			id='ctbDashboard'
			data-info='<?php echo esc_attr( wp_json_encode( [
				'version' => CTB_VERSION,
				'isPremium' => ctbIsPremium(),
				'hasPro' => CTB_HAS_PRO
			] ) ); ?>'
		></div>
	<?php }
}
new SubMenu();
```
