File: /home/clinicamaciel/www/index_lixo/wp-content/plugins/power-builder/dashboard/includes/options.php
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
//Array of all sections. All sections will be added into sidebar navigation except for the 'header' section.
$all_sections = array(
'newsletter' => array(
'title' => esc_html__( 'Newsletter Settings', 'tm_builder_plugin' ),
'contents' => array(
'main' => esc_html__( 'Main', 'bloom' ),
),
),
);
/**
* Array of all options
* General format for options:
* '<option_name>' => array(
* 'type' => ...,
* 'name' => ...,
* 'default' => ...,
* 'validation_type' => ...,
* etc
* )
* <option_name> - just an identifier to add the option into $assigned_options array
* Array of parameters may contain diffrent attributes depending on option type.
* 'type' is the required attribute for all options. All other attributes depends on the option type.
* 'validation_type' and 'name' are required attribute for the option which should be saved into DataBase.
*
*/
$dashboard_options_all = array(
'newsletter_title' => array(
'type' => 'main_title',
'title' => esc_html__( 'Newsletter Settings', 'tm_builder_plugin' ),
),
'end_of_section' => array(
'type' => 'section_end',
),
'end_of_sub_section' => array(
'type' => 'section_end',
'sub_section' => 'true',
),
);
/**
* Array of options assigned to sections. Format of option key is following:
* <section>_<sub_section>_options
* where:
* <section> = $all_sections -> $key
* <sub_section> = $all_sections -> $value['contents'] -> $key
*
* Note: name of this array shouldn't be changed. $assigned_options variable is being used in TM_Dashboard class as options container.
*/
$assigned_options = array(
'newsletter_main_options' => array(
$dashboard_options_all[ 'newsletter_title' ],
$dashboard_options_all[ 'end_of_section' ],
),
);