コード例 #1
0
ファイル: navigation.php プロジェクト: danaiser/hollandLawns
 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 &raquo; Appearance &raquo; 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.';
 }
コード例 #2
0
ファイル: widget-area.php プロジェクト: danaiser/hollandLawns
 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 &raquo; Appearance &raquo; Widgets</a> and add the widgets to <em>' . HeadwayBlocksData::get_block_name($args['block_id']) . ' &mdash; ' . 'ID: ' . $args['blockID'] . '</em>.';
 }
コード例 #3
0
 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)));
 }