first commit
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
/**
|
||||
* Blog sidebar.
|
||||
*
|
||||
* @package Gustavo_Portfolio
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
?>
|
||||
<aside id="secondary" class="sidebar" aria-label="<?php esc_attr_e( 'Barra lateral do blog', 'gustavoo-portfolio' ); ?>">
|
||||
<?php if ( is_active_sidebar( 'sidebar-blog' ) ) : ?>
|
||||
<?php dynamic_sidebar( 'sidebar-blog' ); ?>
|
||||
<?php else : ?>
|
||||
<section class="widget widget_search">
|
||||
<h2 class="widget__title"><?php esc_html_e( 'Pesquisar', 'gustavoo-portfolio' ); ?></h2>
|
||||
<?php get_search_form(); ?>
|
||||
</section>
|
||||
|
||||
<section class="widget widget_categories">
|
||||
<h2 class="widget__title"><?php esc_html_e( 'Categorias', 'gustavoo-portfolio' ); ?></h2>
|
||||
<ul>
|
||||
<?php
|
||||
wp_list_categories(
|
||||
array(
|
||||
'title_li' => '',
|
||||
'show_count' => true,
|
||||
)
|
||||
);
|
||||
?>
|
||||
</ul>
|
||||
</section>
|
||||
<?php endif; ?>
|
||||
</aside>
|
||||
Reference in New Issue
Block a user