# bbp-core/trunk/templates/alert-topic-lock.php

Forumax – AI Powered Advanced Community Forum Plugin, version trunk. 30 lines.

- Page: https://pluginprobe.com/plugins/bbp-core/trunk/code/templates/alert-topic-lock.php
- Raw: https://pluginprobe.com/plugins/bbp-core/trunk/raw/templates/alert-topic-lock.php
- Modified: 2026-01-28T15:54:38+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/bbp-core/trunk/code/templates/alert-topic-lock.php#L10-L20`.

```php
<?php

/**
 * Topic Lock Alert
 *
 * @package bbPress
 * @subpackage Theme
 */

// Exit if accessed directly
defined( 'ABSPATH' ) || exit;

do_action( 'bbp_theme_before_alert_topic_lock' ); ?>

<?php if ( bbp_show_topic_lock_alert()     ) : ?>

	<div class="bbp-alert-outer">
		<div class="bbp-alert-inner">
			<p class="bbp-alert-description"><?php bbp_topic_lock_description(); ?></p>
			<p class="bbp-alert-actions">
				<a class="bbp-alert-back" href="<?php bbp_forum_permalink( bbp_get_topic_forum_id() ); ?>"><?php esc_html_e( 'Leave', 'forumax' ); ?></a>
				<a class="bbp-alert-close" href="#"><?php esc_html_e( 'Stay', 'forumax' ); ?></a>
			</p>
		</div>
	</div>

<?php endif;

do_action( 'bbp_theme_after_alert_topic_lock' );

```
