diff --git a/app/admin.php b/app/admin.php
index ba6979a..d8b08d5 100644
--- a/app/admin.php
+++ b/app/admin.php
@@ -1,6 +1,6 @@
classes
@@ -30,7 +30,7 @@ add_filter('body_class', function (array $classes) {
* Add "… Continued" to the excerpt
*/
add_filter('excerpt_more', function () {
- return ' … ' . __('Continued', 'pressbooks-aldine') . '';
+ return ' … ' . __('Continued', 'aldine') . '';
});
/**
diff --git a/app/helpers.php b/app/helpers.php
index 71f4e24..bfb2610 100644
--- a/app/helpers.php
+++ b/app/helpers.php
@@ -1,6 +1,6 @@
__('Primary Navigation', 'pressbooks-aldine')
+ 'primary_navigation' => __('Primary Navigation', 'aldine')
]);
/**
@@ -85,23 +85,23 @@ add_action('widgets_init', function () {
'after_title' => ''
];
register_sidebar([
- 'name' => __('Home Block 1', 'pressbooks-aldine'),
+ 'name' => __('Home Block 1', 'aldine'),
'id' => 'home-block-1'
] + $config);
register_sidebar([
- 'name' => __('Home Block 2', 'pressbooks-aldine'),
+ 'name' => __('Home Block 2', 'aldine'),
'id' => 'home-block-2'
] + $config);
register_sidebar([
- 'name' => __('Home Block 3', 'pressbooks-aldine'),
+ 'name' => __('Home Block 3', 'aldine'),
'id' => 'home-block-3'
] + $config);
register_sidebar([
- 'name' => __('Home Block 4', 'pressbooks-aldine'),
+ 'name' => __('Home Block 4', 'aldine'),
'id' => 'home-block-4'
] + $config);
register_sidebar([
- 'name' => __('Home Block 5', 'pressbooks-aldine'),
+ 'name' => __('Home Block 5', 'aldine'),
'id' => 'home-block-5'
] + $config);
});
diff --git a/app/widgets.php b/app/widgets.php
index 20dd6f9..375614f 100644
--- a/app/widgets.php
+++ b/app/widgets.php
@@ -1,8 +1,23 @@
esc_html__('Add a styled link button.', 'pressbooks-aldine')
+ parent::__construct('linkbutton', __('Link Button', 'aldine'), [
+ 'description' => esc_html__('Add a styled button which links to a custom URL.', 'aldine')
]);
}
@@ -45,9 +45,9 @@ class LinkButton extends \WP_Widget
{
$title = ! empty($instance['title']) ? $instance['title'] : '';
$url = ! empty($instance['url']) ? $instance['url'] : ''; ?>
-
+
-
+
esc_html__('Add a styled button which links to a page.', 'pressbooks-aldine')
+ parent::__construct('pagebutton', __('Page Button', 'aldine'), [
+ 'description' => esc_html__('Add a styled button which links to a page.', 'aldine')
]);
}
@@ -48,9 +48,9 @@ class PageButton extends \WP_Widget
{
$title = ! empty($instance['title']) ? $instance['title'] : '';
$url = ! empty($instance['page_id']) ? $instance['page_id'] : ''; ?>
-
+
-
+