Sitelogo responsive
von Kirk (12.05.2022 21:01)
- Beschreibung:
- site_logo_responsive_module.php ohne $mode Auswertung
- Snippet erstellt:
- 12.05.2022 21:01
- Snippet wird automatisch gelöscht:
- 09.09.2022 21:01
- Dein Code:
-
<?php
/**
*
* Sitelogo responsive extension for the phpBB Forum Software package.
* @copyright (c) 2017 - 2022 Kirk https://reyno41.bplaced.net/phpbb
* @license GNU General Public License, version 2 (GPL-2.0-only)
*
*/
namespace kirk\slr\acp;
class site_logo_responsive_module
{
public $page_title;
public $tpl_name;
public $u_action;
public function __construct()
{
global $phpbb_container;
$this->phpbb_container = $phpbb_container;
$this->language = $phpbb_container->get('language');
}
public function main()
{
/** @var \kirk.slr.controller.acp $acp_controller */
$acp_controller = $this->phpbb_container->get('kirk.slr.controller.acp');
// Load a template from adm/style for our ACP page
$this->tpl_name = 'acp_site_logo_responsive_settings';
// Set the page title for our ACP page
$this->page_title = $this->language->lang('ACP_SITE_LOGO_RESPONSIVE') . ' ‐ ' . $this->language->lang('ACP_SITE_LOGO_RESPONSIVE_RESPONSIVE_SETTINGS');
// Make the $u_action url available in our ACP controller
$acp_controller->set_page_url($this->u_action);
$acp_controller->{'slr_settings'}();
}
}
Quellcode