Skip to content

Commit 3380e75

Browse files
author
cristianraiber
committed
travis checks
1 parent f3d1362 commit 3380e75

File tree

1 file changed

+25
-19
lines changed

1 file changed

+25
-19
lines changed

inc/extras.php

Lines changed: 25 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -96,16 +96,18 @@ function shapely_add_custom_table_class( $content ) {
9696
*/
9797
function shapely_header_menu() {
9898
// display the WordPress Custom Menu if available
99-
wp_nav_menu( array(
100-
'menu_id' => 'menu',
101-
'theme_location' => 'primary',
102-
'depth' => 0,
103-
'container' => 'div',
104-
'container_class' => 'collapse navbar-collapse navbar-ex1-collapse',
105-
'menu_class' => 'menu',
106-
'fallback_cb' => 'Wp_Bootstrap_Navwalker::fallback',
107-
'walker' => new Wp_Bootstrap_Navwalker(),
108-
) );
99+
wp_nav_menu(
100+
array(
101+
'menu_id' => 'menu',
102+
'theme_location' => 'primary',
103+
'depth' => 0,
104+
'container' => 'div',
105+
'container_class' => 'collapse navbar-collapse navbar-ex1-collapse',
106+
'menu_class' => 'menu',
107+
'fallback_cb' => 'Wp_Bootstrap_Navwalker::fallback',
108+
'walker' => new Wp_Bootstrap_Navwalker(),
109+
)
110+
);
109111
} /* end header menu */
110112
endif;
111113

@@ -203,7 +205,7 @@ function shapely_caption( $output, $attr, $content ) {
203205
return $content;
204206
}
205207

206-
$output = '<figure id="' . esc_attr( $attr['id'] ) . '" class="thumbnail wp-caption ' . esc_attr( $attr['align'] ) . ' style="width: ' . ( esc_attr( $attr['width'] ) + 10 ) . 'px">';
208+
$output = '<figure id="' . esc_attr( $attr['id'] ) . '" class="thumbnail wp-caption ' . esc_attr( $attr['align'] ) . ' style="width: ' . ( esc_attr( $attr['width'] ) + 10 ) . 'px">';
207209
$output .= do_shortcode( $content );
208210
$output .= '<figcaption class="caption wp-caption-text">' . wp_kses_post( $attr['caption'] ) . '</figcaption>';
209211
$output .= '</figure>';
@@ -250,9 +252,11 @@ function shapely_make_top_level_menu_clickable() {
250252
* Add Read More button to post archive
251253
*/
252254
function shapely_excerpt_more( $more ) {
253-
return '<div><a class="btn-filled btn" href="' . esc_url( get_the_permalink() ) . '" title="' . the_title_attribute( array(
255+
return '<div><a class="btn-filled btn" href="' . esc_url( get_the_permalink() ) . '" title="' . the_title_attribute(
256+
array(
254257
'echo' => false,
255-
) ) . '">' . esc_html_x( 'Read More', 'Read More', 'shapely' ) . '</a></div>';
258+
)
259+
) . '">' . esc_html_x( 'Read More', 'Read More', 'shapely' ) . '</a></div>';
256260
}
257261

258262
add_filter( 'excerpt_more', 'shapely_excerpt_more' );
@@ -267,11 +271,13 @@ function shapely_pagination() {
267271
<div class="text-center">
268272
<nav class="pagination">
269273
<?php
270-
the_posts_pagination( array(
271-
'mid_size' => 2,
272-
'prev_text' => '<icon class="fa fa-angle-left"></icon>',
273-
'next_text' => '<icon class="fa fa-angle-right"></icon>',
274-
) );
274+
the_posts_pagination(
275+
array(
276+
'mid_size' => 2,
277+
'prev_text' => '<icon class="fa fa-angle-left"></icon>',
278+
'next_text' => '<icon class="fa fa-angle-right"></icon>',
279+
)
280+
);
275281
?>
276282
</nav>
277283
</div>
@@ -691,7 +697,7 @@ function shapely_top_callout() {
691697
<?php yoast_breadcrumb( '<p id="breadcrumbs">', '</p>' ); ?>
692698
</div>
693699
<?php
694-
}
700+
}
695701
} // End if().
696702
}
697703

0 commit comments

Comments
 (0)