* Load settings for the main settings section (i.e. the settings that don't come in 4's)
 */
# Whether to use rule of three or rule of four
RO3_Options::$settings[] = array('name' => 'num_blocks', 'type' => 'select', 'label' => 'Rule Of ...', 'section' => 'main', 'choices' => array(array('value' => '3', 'label' => 'Three'), array('value' => '4', 'label' => 'Four')));
# Which style to use for the rule of three
RO3_Options::$settings[] = array('name' => 'style', 'type' => 'radio', 'label' => 'Style', 'section' => 'main', 'choices' => array(array('value' => 'none', 'label' => 'None'), array('value' => 'drop-shadow', 'label' => 'Drop Shadow'), array('value' => 'nested', 'label' => 'Nested'), array('value' => 'circle', 'label' => 'Circle'), array('value' => 'bar', 'label' => 'Bar'), array('value' => 'fa-icon', 'label' => 'Font Awesome')));
# Which hover state to use
RO3_Options::$settings[] = array('name' => 'hover_effect', 'type' => 'select', 'choices' => array(array('value' => '', 'label' => 'None'), array('value' => 'hvr-grow', 'label' => 'Grow'), array('value' => 'hvr-float-shadow', 'label' => 'Float Shadow')), 'label' => 'Hover Effect', 'section' => 'main');
RO3_Options::$settings[] = array('name' => 'main_color', 'type' => 'text', 'class' => 'color-picker', 'label' => 'Main Color', 'section' => 'main');
RO3_Options::$settings[] = array('name' => 'read_more', 'type' => 'checkbox', 'label' => 'Show "Read More"', 'section' => 'main', 'choices' => 'Yes');
RO3_Options::$settings[] = array('name' => 'fa_icon_size', 'type' => 'text', 'label' => 'Font Awesome Icon Size', 'section' => 'main', 'description' => 'Please enter a valid CSS value like <code>24px</code> or <code>2em</code>.<br />
		Note that <code>em\'s</code> may generate a different preview size here than on the front end.');
/**
 * Get saved options and define defaults
 */
RO3_Options::$options = get_option('ro3_options');
# make sure each setting has a key in the main options (even if empty)
if (!empty(RO3_Options::$options)) {
    foreach (RO3_Options::$settings as $setting) {
        if (empty(RO3_Options::$options[$setting['name']])) {
            RO3_Options::$options[$setting['name']] = '';
        }
    }
}
# if no options have been saved yet, make sure at least all keys are present in CPTD_Options::$options
if (!RO3_Options::$options) {
    # loop through settings
    foreach (RO3_Options::$settings as $setting) {
        # add key to options
        RO3_Options::$options[$setting['name']] = '';
    }