get_blocks(); $blocks = array(); foreach ($list as $key => $data) { if (!isset($blocks[$data['section']])) $blocks[$data['section']] = array(); $blocks[$data['section']][$key]['name'] = $data['name']; $blocks[$data['section']][$key]['filename'] = $key; $blocks[$data['section']][$key]['icon'] = $data['icon']; } // order the sections $blocks = array_merge(array_flip(array('header', 'content', 'footer')), $blocks); // prepare the options for the default blocks $block_options = get_option('newsletter_main'); $fields = new NewsletterFields($controls); ?>

text('title', 60, 'Newsletter subject'); ?>

$section) { ?>
color( 'options_composer_background', __( 'Background color', 'newsletter' ), [ 'default' => '#f4f4f4' ] ) ?> text( 'options_preheader', __( 'Snippet', 'newsletter' ), ['description'=>'Short content preview shown by Gmail']) ?>

    get_test_users() AS $user) { ?>
  • email ?>