From 0afd52c8d43da225c3a931571511b6cf845180ea Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Sat, 31 May 2025 09:29:34 +0300 Subject: [PATCH] feat: Added ability to set page meta description --- library/includes/page_header.php | 1 + styles/templates/default/page_header.tpl | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/library/includes/page_header.php b/library/includes/page_header.php index edd08f58b..f2f22581b 100644 --- a/library/includes/page_header.php +++ b/library/includes/page_header.php @@ -123,6 +123,7 @@ $template->assign_vars([ 'USE_TABLESORTER' => !empty($page_cfg['use_tablesorter']), 'ALLOW_ROBOTS' => !$bb_cfg['board_disable'] && (!isset($page_cfg['allow_robots']) || $page_cfg['allow_robots'] === true), + 'META_DESCRIPTION' => $page_cfg['meta_description'] ?? '', 'SITENAME' => $bb_cfg['sitename'], 'U_INDEX' => BB_ROOT . 'index.php', diff --git a/styles/templates/default/page_header.tpl b/styles/templates/default/page_header.tpl index 4fa536406..0ec5fb8f5 100644 --- a/styles/templates/default/page_header.tpl +++ b/styles/templates/default/page_header.tpl @@ -5,6 +5,11 @@ + + + + + <!-- IF HAVE_NEW_PM -->({HAVE_NEW_PM}) <!-- ENDIF --><!-- IF PAGE_TITLE -->{PAGE_TITLE} :: {SITENAME}<!-- ELSE -->{SITENAME}<!-- ENDIF -->