friendica-wp-theme/archive.php
fabrixxm daf65232f1 Sticky post in blog home: change style and display
For sticky post in blog home show only header with title,
change background and add show ribbon
2018-02-19 15:42:23 +01:00

24 lines
960 B
PHP

<?php get_header(); ?>
<div class="row">
<div class="8u 12u$(medium)">
<header class="align-center">
<?php
if ( is_day() ) { printf( "<h2>%s</h2><p>%s</p>", get_the_time( get_option( 'date_format' ) ), __( 'Daily Archives', 'friendica' ) ); }
elseif ( is_month() ) { printf( "<h2>%s</h2><p>%s</p>", get_the_time( 'F Y' ), __( 'Monthly Archives', 'friendica' ) ); }
elseif ( is_year() ) { printf( "<h2>%s</h2><p>%s</p>", get_the_time( 'Y' ), __( 'Yearly Archives', 'friendica' ) ); }
else { printf( "<h2>%s</h2>",__( 'Archives', 'friendica' ) ); }
?>
</header>
<?php
if ( have_posts() ) {
while ( have_posts() ) {
the_post();
get_template_part( 'entry' );
}
}
?>
<?php get_template_part( 'nav', 'below' ); ?>
</div>
<?php get_sidebar(); ?>
</div>
<?php get_footer(); ?>