Commit c2ce861d authored by numeroteca's avatar numeroteca

#5 hace estilo pequeño los proeyctos archivados

parent 1b2c9499
......@@ -5,6 +5,7 @@ Tema de Wordpress para Wikitoki basado en tema Colormag (https://wordpress.org/t
El repositorio oficial del tema es https://github.com/themegrill/colormag.
Documentación sobre el tema puede encontrarse en https://docs.themegrill.com/colormag/
Demo page: https://demo.themegrill.com/colormag
Este tema hereda muchas de las funciones del tema creado para la web anterior (https://github.com/wiki-toki/wikitoki) que a su vez era un tema hijo del tema Spacious.
......
......@@ -33,7 +33,7 @@ $the_content = get_the_content();
}
$image .= '<figure>';
$image .= '<a href="' . get_permalink() . '" title="' . the_title( '', '', false ) . '">';
$image .= get_the_post_thumbnail( $post->ID, $featured, array(
$image .= get_the_post_thumbnail( $post->ID, $featured, array( // TODO array(200,150) could be added to control size of image
'title' => esc_attr( $title_attribute ),
'alt' => esc_attr( $image_alt_text ),
) ) . '</a>';
......@@ -47,10 +47,26 @@ $the_content = get_the_content();
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a>
</h3>
<div class="below-entry-meta">
<?php echo get_the_term_list( $post->ID, 'tipo-actividad', ' ', ', ', '' ); ?>
<span class="posted-on"><i class="fa fa-calendar-o"></i>
<?php echo $dateinit; ?>
</span>
<?php
// for projects
if ( 'pr' == get_post_type( $post_id ) ) {
the_excerpt();
echo "<div class='project_year'>".get_the_term_list( $post_id, 'yr', ' ', '|', '' ) . "</div>";
// for ctivities
} else {
echo get_the_term_list( $post->ID, 'tipo-actividad', ' ', ', ', '' ); ?>
<span class="posted-on"><i class="fa fa-calendar-o"></i>
<?php echo $dateinit; ?>
</span>
<?php
}
?>
</div>
</div>
......
<?php
/**
* The template used for displaying single activity content in single.php
* The template used for displaying single project content in single.php
*
* @package ThemeGrill
* @subpackage ColorMag
......@@ -8,7 +8,6 @@
*/
//Gets the data
$post_id = $post->ID;
$prefixact = '_act_';
$tit = get_the_title();
$autoria = get_post_meta( $post_id, 'autoria', true );
$the_content = get_the_content();
......@@ -28,7 +27,7 @@ if( has_term( "residencia", 'tp-pr') ) {
<?php
if ($parent_page == "proyectos") { _e("Proyectos","colormag-child"); } else { _e("Residencias","colormag-child"); }
?>
</a> > <?php echo $tit; ?> | <?php echo __('Year','colormag-child').": ". get_the_term_list( $post->ID, 'yr', ' ', ', ', '' ); ?> | <?php echo get_the_term_list( $post->ID, 'tp-pr', ' ', ', ', '' ); ?> | Autoría: <?php echo $autoria."<br>"; ?>
</a> > <?php echo $tit; ?> | <?php echo __('Year','colormag-child').": ". get_the_term_list( $post->ID, 'yr', ' ', '| ', '' ); ?> | <?php echo get_the_term_list( $post->ID, 'tp-pr', ' ', ', ', '' ); ?> | Autoría: <?php echo $autoria."<br>"; ?>
<?php do_action( 'colormag_before_post_content' ); ?>
<?php
......
......@@ -177,16 +177,21 @@ get_header(); ?>
<h2 id="archivados" class="subsection"><span><?php echo _e("Proyectos archivados","colormag-child"); ?></span></h2>
<div class="list_duo">
<div class="widget widget_featured_posts widget_featured_posts_vertical widget_featured_meta clearfix">
<?php if ($my_query_archive->have_posts() ) : while ( $my_query_archive->have_posts() ) : $my_query_archive->the_post(); ?>
<div class="following-post">
<?php get_template_part( 'content', 'archive' ); ?>
<?php if ($my_query_archive->have_posts() ) : while ( $my_query_archive->have_posts() ) : $my_query_archive->the_post(); ?>
<?php endwhile; endif; ?>
<?php // get_template_part( 'content', 'archive' ); ?>
<?php get_template_part( 'content', 'actividadbox' ); ?>
<?php endwhile; endif; ?>
</div>
</div>
<?php
}
......
......@@ -78,7 +78,13 @@ body.entidad-template-default #content article.entidad {
clear: both;
}
/* subsection */
/* project year */
.project_year {
margin-left: 130px;
}
/* project subsection */
h2.subsection {
clear: both;
border-bottom: 4px solid #289dcc;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment