public function __construct($oFactory)
{
// Section
$oFactory->addSettingSections($this->sPageSlug, array('tab_slug' => $this->sTabSlug, 'section_id' => $this->sSectionID, 'title' => __('Colors', 'admin-page-framework-loader'), 'description' => __('These are color picker fields.', 'admin-page-framework-loader')));
// Fields
$oFactory->addSettingFields($this->sSectionID, array('field_id' => 'color_picker_field', 'title' => __('Color Picker', 'admin-page-framework-loader'), 'type' => 'color', 'description' => array("<pre class='field-argument-example'>" . $oFactory->oWPRMParser->getSyntaxHighlightedPHPCode(<<<EOD
array(
'type' => 'color',
)
EOD
) . "</pre>")), array('field_id' => 'multiple_color_picker_field', 'title' => __('Multiple', 'admin-page-framework-loader'), 'type' => 'color', 'label' => __('First', 'admin-page-framework-loader'), 'delimiter' => '<br />', array('label' => __('Second', 'admin-page-framework-loader')), array('label' => __('Third', 'admin-page-framework-loader')), 'description' => array("<pre class='field-argument-example'>" . $oFactory->oWPRMParser->getSyntaxHighlightedPHPCode(<<<EOD
array(
'type' => 'color',
'delimiter' => '<br />',
'label' => 'First',
array(
'label' => 'Second',
),
array(
'label' => 'Third',
),
)
EOD
) . "</pre>")), array('field_id' => 'color_picker_repeatable_field', 'title' => __('Repeatable', 'admin-page-framework-loader'), 'type' => 'color', 'repeatable' => true, 'default' => '', 'description' => array("<pre class='field-argument-example'>" . $oFactory->oWPRMParser->getSyntaxHighlightedPHPCode(<<<EOD
array(
'type' => 'color',
'repeatable' => true,
'default' => '',
)
EOD
) . "</pre>")), array('field_id' => 'color_picker_sortable', 'title' => __('Sortable', 'admin-page-framework-loader'), 'type' => 'color', 'sortable' => true, array(), array(), 'description' => array("<pre class='field-argument-example'>" . $oFactory->oWPRMParser->getSyntaxHighlightedPHPCode(<<<EOD
array(
'type' => 'color',
'sortable' => true,
array(), // the second item
array(), // the third item
)
EOD
) . "</pre>")));
}