From 0a5020fe44f5a3c5931a31e15c01509415d3931f Mon Sep 17 00:00:00 2001 From: Ned Zimmerman Date: Tue, 22 Aug 2017 23:27:04 -0300 Subject: [PATCH] Update namespace and textdomain. --- app/admin.php | 2 +- app/controllers/About.php | 2 +- app/controllers/App.php | 10 +++++----- app/controllers/Home.php | 2 +- app/filters.php | 4 ++-- app/helpers.php | 2 +- app/setup.php | 14 +++++++------- app/widgets.php | 17 ++++++++++++++++- app/widgets/linkbutton.php | 8 ++++---- app/widgets/pagebutton.php | 8 ++++---- composer.json | 2 +- resources/functions.php | 12 ++++++------ resources/style.css | 2 +- resources/views/404.blade.php | 2 +- resources/views/index.blade.php | 4 ++-- resources/views/layouts/app.blade.php | 2 +- resources/views/partials/comments.blade.php | 8 ++++---- resources/views/partials/content-page.blade.php | 2 +- .../views/partials/content-single.blade.php | 2 +- resources/views/partials/entry-meta.blade.php | 2 +- resources/views/partials/header.blade.php | 6 +++--- resources/views/partials/uio.blade.php | 4 ++-- resources/views/search.blade.php | 2 +- 23 files changed, 67 insertions(+), 52 deletions(-) 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'] : ''; ?> -

+

-

+