File "Page.php"
Full Path: /home/siazco/grocery.siazco.se/wp-content/plugins/klarna-payments-for-woocommerce/dependencies/krokedil/settings-page/src/Page.php
File size: 1.28 KB
MIME-type: text/x-php
Charset: utf-8
<?php
namespace KrokedilKlarnaPaymentsDeps\Krokedil\SettingsPage;
use KrokedilKlarnaPaymentsDeps\Krokedil\SettingsPage\Traits\Layout;
\defined('ABSPATH') || exit;
/**
* Main class for the settings page package.
*/
class Page
{
use Layout;
/**
* The content for the page.
*
* @var string $content
*/
protected $content = '';
/**
* Class constructor.
*
* @param string $content The content for the page.
* @param array $sidebar Sidebar content.
*
* @return void
*/
public function __construct($content, $sidebar)
{
$this->content = $content;
$this->sidebar = $sidebar;
}
/**
* Output the layout.
*
* @return void
*/
public function output()
{
wp_enqueue_style('krokedil-settings-page');
?>
<div class="krokedil_settings__custom_page">
<div class="krokedil_settings__wrapper">
<?php
$this->output_subsection();
?>
<?php
$this->output_sidebar();
?>
</div>
</div>
<?php
}
/**
* Output the page HTML.
*
* @return void
*/
public function output_page_content()
{
echo $this->content;
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
}
}