Añade nueva página de inicio y mejoras de estilo
This commit is contained in:
parent
6f9b7ff421
commit
2394be9383
9 changed files with 357 additions and 113 deletions
|
@ -1,11 +1,11 @@
|
|||
<?php
|
||||
/**
|
||||
* Flexible Posts Widget: Old Default widget template
|
||||
*
|
||||
*
|
||||
* @since 1.0.0
|
||||
*
|
||||
* This is the ORIGINAL default template used by the plugin.
|
||||
* There is a new default template (default.php) that will be
|
||||
* There is a new default template (default.php) that will be
|
||||
* used by default if no template was specified in a widget.
|
||||
*/
|
||||
|
||||
|
@ -24,10 +24,10 @@ if( $flexible_posts->have_posts() ):
|
|||
<?php while( $flexible_posts->have_posts() ) : $flexible_posts->the_post(); global $post; ?>
|
||||
<li id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
||||
<?php
|
||||
global $wp;
|
||||
$permalink = get_permalink();
|
||||
$current_url = home_url( add_query_arg( array(), $wp->request ) );
|
||||
echo '<a href="' . $permalink . ( trim( $permalink, '/' ) == $current_url ? '" class="active">' : '">' );
|
||||
global $wp;
|
||||
$permalink = get_permalink();
|
||||
$current_url = home_url( add_query_arg( array(), $wp->request ) );
|
||||
echo '<a href="' . $permalink . ( trim( $permalink, '/' ) == $current_url ? '" class="active">' : '">' );
|
||||
if( $thumbnail == true ) {
|
||||
// If the post has a feature image, show it
|
||||
if( has_post_thumbnail() ) {
|
||||
|
@ -38,8 +38,8 @@ if( $flexible_posts->have_posts() ):
|
|||
}
|
||||
}
|
||||
?>
|
||||
<h4 class="title"><?php the_title(); ?></h4>
|
||||
<p class="meta"><?php the_time('\d\e\l d \d\e F \d\e Y'); ?></p>
|
||||
<h4 class="title<?php if( $thumbnail ) echo ' with_thumbnail'; ?>"><?php the_title(); ?></h4>
|
||||
<p class="meta<?php if( $thumbnail ) echo ' with_thumbnail'; ?>"><?php the_time('\d\e\l d \d\e F \d\e Y'); ?></p>
|
||||
</a>
|
||||
</li>
|
||||
<?php endwhile; ?>
|
||||
|
@ -48,7 +48,7 @@ if( $flexible_posts->have_posts() ):
|
|||
<div class="dpe-flexible-posts no-posts">
|
||||
<p><?php _e( 'No post found', 'flexible-posts-widget' ); ?></p>
|
||||
</div>
|
||||
<?php
|
||||
<?php
|
||||
endif; // End have_posts()
|
||||
|
||||
|
||||
echo $after_widget;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue