feat: Added ability to set page meta description (#1917)

* feat: Added ability to set page meta description

* Update page_header.php

* Update viewforum.php

* Updated

* Update viewtopic.php

* Update viewtopic.php

* Update viewtopic.php

* Update viewtopic.php
This commit is contained in:
Roman Kelesidis 2025-05-31 10:13:55 +03:00 committed by GitHub
commit 7b8b9a0bba
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 19 additions and 0 deletions

View file

@ -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',