function modify_arguments($args = false) { $this->tab_notices['nav-menu-content'] = 'To add items to this navigation menu, go to <a href="' . admin_url('nav-menus.php') . '" target="_blank">WordPress Admin » Appearance » Menus</a>. Then, create a menu and assign it to <em>' . HeadwayBlocksData::get_block_name($args['blockID']) . '</em> in the <strong>Theme Locations</strong> box.'; }
function modify_arguments($args = false) { $this->tab_notices['widget-area-content'] = 'To add widgets to this widget area, go to <a href="' . admin_url('widgets.php') . '" target="_blank">WordPress Admin » Appearance » Widgets</a> and add the widgets to <em>' . HeadwayBlocksData::get_block_name($args['block_id']) . ' — ' . 'ID: ' . $args['blockID'] . '</em>.'; }
public static function export_block_settings($block_id) { /* Set up variables */ $block = HeadwayBlocksData::get_block($block_id); /* Check if block exists */ if (!$block) { die('Error: Could not export block settings.'); } /* Spit the file out */ return self::to_json('Block Settings - ' . HeadwayBlocksData::get_block_name($block), 'block-settings', array('id' => $block_id, 'type' => $block['type'], 'settings' => $block['settings'], 'styling' => HeadwayBlocksData::get_block_styling($block))); }