| Server IP : 121.121.20.254 / Your IP : 216.73.216.202 Web Server : Microsoft-IIS/10.0 System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64 User : IUSR ( 0) PHP Version : 8.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /inetpub/wwwroot/OPENPOSLITE/wp-content/plugins/wpos-lite-version/includes/ |
Upload File : |
<?php
if ( ! defined( 'ABSPATH' ) ) exit;
?>
<?php
if(!class_exists('Openpos_Setting'))
{
class Openpos_Setting
{
public $OPENPOS_SETTING;
public function __construct($OPENPOS_SETTING)
{
$this->OPENPOS_SETTING = $OPENPOS_SETTING;
add_action('init', array($this, 'init'), 120);
}
function get_settings_sections() {
$sections = array(
array(
'id' => 'openpos_general',
'title' => __( 'General', 'wpos-lite')
),
array(
'id' => 'openpos_payment',
'title' => __( 'Payment', 'wpos-lite')
),
array(
'id' => 'openpos_shipment',
'title' => __( 'Shipping', 'wpos-lite')
),
array(
'id' => 'openpos_label',
'title' => __( 'Barcode Label', 'wpos-lite')
),
array(
'id' => 'openpos_receipt',
'title' => __( 'Receipt', 'wpos-lite')
),
array(
'id' => 'openpos_pos',
'title' => __( 'POS Layout', 'wpos-lite')
)
);
$sections[] = array(
'id' => 'openpos_addon',
'title' => __( 'Add-on', 'wpos-lite')
);
return $sections;
}
function init()
{
$this->OPENPOS_SETTING->set_sections( $this->get_settings_sections() );
}
}
}