Example #1
0
 /**
  * @return array List of items to display.
  */
 public function getSections()
 {
     return array(array('title' => __('Main', 'jigoshop'), 'id' => 'main', 'fields' => array(array('id' => 'country', 'name' => '[country]', 'title' => __('Shop location (country)', 'jigoshop'), 'type' => 'select', 'value' => $this->options['country'], 'options' => Country::getAll()), array('id' => 'state', 'name' => '[state]', 'title' => __('Shop location (state)', 'jigoshop'), 'type' => 'text', 'value' => $this->options['state']), array('name' => '[email]', 'title' => __('Administrator e-mail', 'jigoshop'), 'type' => 'text', 'tip' => __('The email address used to send all Jigoshop related emails, such as order confirmations and notices.', 'jigoshop'), 'value' => $this->options['email']), array('name' => '[show_message]', 'id' => 'show_message', 'title' => __('Display custom message?', 'jigoshop'), 'type' => 'checkbox', 'checked' => $this->options['show_message'], 'tip' => __('Add custom message on top of each page of your website.', 'jigoshop'), 'classes' => array('switch-medium')), array('name' => '[message]', 'id' => 'custom_message', 'title' => __('Message text', 'jigoshop'), 'type' => 'text', 'value' => $this->options['message'], 'classes' => array($this->options['show_message'] ? '' : 'not-active')), array('name' => '[demo_store]', 'id' => 'demo_store', 'title' => __('Demo store', 'jigoshop'), 'type' => 'checkbox', 'checked' => $this->options['demo_store'], 'tip' => __('Enable this option to show a banner at the top of every page stating this shop is currently in testing mode.', 'jigoshop'), 'classes' => array('switch-medium')))), array('title' => __('Pricing', 'jigoshop'), 'id' => 'pricing', 'fields' => array(array('name' => '[currency]', 'title' => __('Currency', 'jigoshop'), 'type' => 'select', 'value' => $this->options['currency'], 'options' => Currency::countries()), array('name' => '[currency_position]', 'title' => __('Currency position', 'jigoshop'), 'type' => 'select', 'value' => $this->options['currency_position'], 'options' => Currency::positions()), array('name' => '[currency_decimals]', 'title' => __('Number of decimals', 'jigoshop'), 'type' => 'text', 'value' => $this->options['currency_decimals']), array('name' => '[currency_thousand_separator]', 'title' => __('Thousands separator', 'jigoshop'), 'type' => 'text', 'value' => $this->options['currency_thousand_separator']), array('name' => '[currency_decimal_separator]', 'title' => __('Decimal separator', 'jigoshop'), 'type' => 'text', 'value' => $this->options['currency_decimal_separator']))), array('title' => __('Company details', 'jigoshop'), 'description' => __('These details, alongside shop location, will be used for invoicing and emails.', 'jigoshop'), 'id' => 'company', 'fields' => array(array('name' => '[company_name]', 'title' => __('Name', 'jigoshop'), 'type' => 'text', 'value' => $this->options['company_name']), array('name' => '[company_address_1]', 'title' => __('Address (first line)', 'jigoshop'), 'type' => 'text', 'value' => $this->options['company_address_1']), array('name' => '[company_address_2]', 'title' => __('Address (second line)', 'jigoshop'), 'type' => 'text', 'value' => $this->options['company_address_2']), array('name' => '[company_tax_number]', 'title' => __('Tax number', 'jigoshop'), 'description' => __('Add your tax registration label before the registration number and it will be printed as well. eg. <code>VAT Number: 88888888</code>', 'jigoshop'), 'type' => 'text', 'value' => $this->options['company_tax_number']), array('name' => '[company_phone]', 'title' => __('Phone number', 'jigoshop'), 'type' => 'text', 'value' => $this->options['company_phone']), array('name' => '[company_email]', 'title' => __('Email', 'jigoshop'), 'type' => 'text', 'tip' => __('A representative e-mail company - department of orders, customer service, contact.', 'jigoshop'), 'value' => $this->options['company_email']))), array('title' => __('Emails', 'jigoshop'), 'id' => 'emails', 'fields' => array(array('name' => '[emails][from]', 'title' => __('From name', 'jigoshop'), 'description' => __('Name shown in all Jigoshop emails.', 'jigoshop'), 'type' => 'text', 'value' => $this->options['emails']['from']), array('name' => '[emails][footer]', 'title' => __('Footer', 'jigoshop'), 'description' => __('The email footer used in all Jigoshop emails.', 'jigoshop'), 'type' => 'textarea', 'value' => $this->options['emails']['footer']))));
 }