Ned Zimmerman
7 years ago
23 changed files with 67 additions and 52 deletions
@ -1,8 +1,23 @@ |
|||||||
<?php |
<?php |
||||||
|
|
||||||
namespace App; |
namespace Aldine; |
||||||
|
|
||||||
add_action('widgets_init', function () { |
add_action('widgets_init', function () { |
||||||
|
foreach([ |
||||||
|
'WP_Widget_Pages', |
||||||
|
'WP_Widget_Calendar', |
||||||
|
'WP_Widget_Archives', |
||||||
|
'WP_Widget_Links', |
||||||
|
'WP_Widget_Media_Audio', |
||||||
|
'WP_Widget_Meta', |
||||||
|
'WP_Widget_Search', |
||||||
|
'WP_Widget_Categories', |
||||||
|
'WP_Widget_Recent_Posts', |
||||||
|
'WP_Widget_Recent_Comments', |
||||||
|
'WP_Widget_Tag_Cloud' |
||||||
|
] as $widget) { |
||||||
|
unregister_widget($widget); |
||||||
|
} |
||||||
register_widget('Aldine\LinkButton'); |
register_widget('Aldine\LinkButton'); |
||||||
register_widget('Aldine\PageButton'); |
register_widget('Aldine\PageButton'); |
||||||
}); |
}); |
||||||
|
@ -1,2 +1,2 @@ |
|||||||
@php(the_content()) |
@php(the_content()) |
||||||
{!! wp_link_pages(['echo' => 0, 'before' => '<nav class="page-nav"><p>' . __('Pages:', 'pressbooks-aldine'), 'after' => '</p></nav>']) !!} |
{!! wp_link_pages(['echo' => 0, 'before' => '<nav class="page-nav"><p>' . __('Pages:', 'aldine'), 'after' => '</p></nav>']) !!} |
||||||
|
@ -1,6 +1,6 @@ |
|||||||
<time class="updated" datetime="{{ get_post_time('c', true) }}">{{ get_the_date() }}</time> |
<time class="updated" datetime="{{ get_post_time('c', true) }}">{{ get_the_date() }}</time> |
||||||
<p class="byline author vcard"> |
<p class="byline author vcard"> |
||||||
{{ __('By', 'pressbooks-aldine') }} <a href="{{ get_author_posts_url(get_the_author_meta('ID')) }}" rel="author" class="fn"> |
{{ __('By', 'aldine') }} <a href="{{ get_author_posts_url(get_the_author_meta('ID')) }}" rel="author" class="fn"> |
||||||
{{ get_the_author() }} |
{{ get_the_author() }} |
||||||
</a> |
</a> |
||||||
</p> |
</p> |
||||||
|
Loading…
Reference in new issue