Browse Source

Add widget area descriptions.

pull/11/head
Ned Zimmerman 7 years ago
parent
commit
15034e03dc
No known key found for this signature in database
GPG Key ID: FF56334A013120CA
  1. 16
      app/setup.php

16
app/setup.php

@ -109,6 +109,10 @@ add_action('widgets_init', function () {
]; ];
register_sidebar([ register_sidebar([
'name' => __('Front Page Content', 'aldine'), 'name' => __('Front Page Content', 'aldine'),
'description' => __(
'Add content for your network’s front page here. Currently, only text widgets are supported.',
'aldine'
),
'id' => 'front-page-block', 'id' => 'front-page-block',
'before_widget' => '<section class="widget %1$s %2$s">', 'before_widget' => '<section class="widget %1$s %2$s">',
'after_widget' => '</section>', 'after_widget' => '</section>',
@ -117,10 +121,22 @@ add_action('widgets_init', function () {
]); ]);
register_sidebar([ register_sidebar([
'name' => __('Network Footer Block 1', 'aldine'), 'name' => __('Network Footer Block 1', 'aldine'),
'description' => __(
'Add content for your network&rsquo;s customizeable footer here.
Currently, only text and image widgets are supported.
Content in this widget area will appear in the first row (on mobile) or the first column (on desktops).',
'aldine'
),
'id' => 'network-footer-block-1' 'id' => 'network-footer-block-1'
] + $config); ] + $config);
register_sidebar([ register_sidebar([
'name' => __('Network Footer Block 2', 'aldine'), 'name' => __('Network Footer Block 2', 'aldine'),
'description' => __(
'Add content for your network&rsquo;s customizeable footer here.
Currently, only text and image widgets are supported.
Content in this widget area will appear in the second row (on mobile) or the middle column (on desktop).',
'aldine'
),
'id' => 'network-footer-block-2' 'id' => 'network-footer-block-2'
] + $config); ] + $config);
}); });

Loading…
Cancel
Save