/**
  * Add the options metabox to the array of metaboxes
  * @since  0.1.0
  */
 function add_options_page_metabox()
 {
     $cmb = new_cmb2_box(array('id' => $this->metabox_id, 'hookup' => false, 'cmb_styles' => false, 'show_on' => array('key' => 'options-page', 'value' => array($this->key))));
     $cmb->add_field(array('name' => __('Footer HTML', 'yoastcom'), 'desc' => __('Will be displayed in the footer', 'yoastcom'), 'id' => 'footer', 'type' => 'wysiwyg', 'default' => get_legacy_option('footer', 'child-settings')));
 }
/**
 * Retrieve a yoast theme option
 *
 * @param string      $key            The key to retrieve.
 * @param null|string $legacy_setting The legacy setting to retrieve the key from.
 *
 * @return mixed The retrieved option
 */
function get_theme_option($key, $legacy_setting = null)
{
    $options = get_option('yst_theme_options');
    if (is_array($options) && array_key_exists($key, $options)) {
        return $options[$key];
    }
    return get_legacy_option($key, $legacy_setting);
}