Commit ac990c67 authored by numeroteca's avatar numeroteca

#19 convierte en doble columna cuando se ven proyectos por año

parent 834c780f
<?php
/**
* The template for displaying Archive page.
*
* @package ThemeGrill
* @subpackage ColorMag
* @since ColorMag 1.0
*/
get_header(); ?>
<?php do_action( 'colormag_before_body_content' ); ?>
<div id="primary">
<div id="content" class="clearfix">
<?php if ( have_posts() ) : ?>
<header class="page-header">
<?php if ( is_category() ) {
do_action('colormag_category_title');
single_cat_title();
} else { ?>
<h1 class="page-title">
<span>
<?php
if ( is_tag() ) :
single_tag_title();
elseif ( is_author() ) :
/* Queue the first post, that way we know
* what author we're dealing with (if that is the case).
*/
the_post();
printf( __( 'Author: %s', 'colormag' ), '<span class="vcard">' . get_the_author() . '</span>' );
/* Since we called the_post() above, we need to
* rewind the loop back to the beginning that way
* we can run the loop properly, in full.
*/
rewind_posts();
elseif ( is_day() ) :
printf( __( 'Day: %s', 'colormag' ), '<span>' . get_the_date() . '</span>' );
elseif ( is_month() ) :
printf( __( 'Month: %s', 'colormag' ), '<span>' . get_the_date( 'F Y' ) . '</span>' );
elseif ( is_year() ) :
printf( __( 'Year: %s', 'colormag' ), '<span>' . get_the_date( 'Y' ) . '</span>' );
elseif ( is_tax( 'post_format', 'post-format-aside' ) ) :
_e( 'Asides', 'colormag' );
elseif ( is_tax( 'post_format', 'post-format-image' ) ) :
_e( 'Images', 'colormag');
elseif ( is_tax( 'post_format', 'post-format-video' ) ) :
_e( 'Videos', 'colormag' );
elseif ( is_tax( 'post_format', 'post-format-quote' ) ) :
_e( 'Quotes', 'colormag' );
elseif ( is_tax( 'post_format', 'post-format-link' ) ) :
_e( 'Links', 'colormag' );
elseif ( is_tax( 'yr' ) ) :
// _e( 'Years', 'colormag-child' );
do_action('colormag_category_title');
echo __( 'Projects in', 'colormag-child' ) . " ";
single_cat_title();
elseif ( is_plugin_active( 'woocommerce/woocommerce.php' ) ) :
woocommerce_page_title( false );
else :
_e( 'Archives', 'colormag' );
endif;
?>
</span></h1>
<?php } ?>
<?php
// Show an optional term description.
$term_description = term_description();
if ( ! empty( $term_description ) ) :
printf( '<div class="taxonomy-description">%s</div>', $term_description );
endif;
?>
</header><!-- .page-header -->
<div class="article-container">
<?php global $post_i; $post_i = 1; ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'content', 'archive' ); ?>
<?php endwhile; ?>
</div>
<?php get_template_part( 'navigation', 'archive' ); ?>
<?php else : ?>
<?php get_template_part( 'no-results', 'archive' ); ?>
<?php endif; ?>
</div><!-- #content -->
</div><!-- #primary -->
<?php colormag_sidebar_select(); ?>
<?php do_action( 'colormag_after_body_content' ); ?>
<?php get_footer(); ?>
No preview for this file type
......@@ -2,7 +2,7 @@ msgid ""
msgstr ""
"Project-Id-Version: wikitoki\n"
"POT-Creation-Date: 2015-02-18 23:24+0100\n"
"PO-Revision-Date: 2019-12-16 15:54+0100\n"
"PO-Revision-Date: 2019-12-17 13:52+0100\n"
"Last-Translator: pablo <pablo@basurama.org>\n"
"Language-Team: wikitoki <info@wikitoki.org>\n"
"Language: es\n"
......@@ -747,6 +747,9 @@ msgstr "Proyectos asociados"
msgid "Archived projects"
msgstr "Proyectos archivados"
msgid "Projects in"
msgstr "Proyectos en"
#~ msgid "Activities spacious"
#~ msgstr "Archivo de actividades pacious"
......
......@@ -73,13 +73,13 @@ body.entidad-template-default #content article.entidad {
width: 48.7013%;
}
.archive #content .post:nth-child(2n) {
.archive #content .post:nth-child(2n), .tax-yr #content .pr:nth-child(2n) {
clear: none;
float: right;
width: 48.7013%;
}
.archive #content .post:nth-child(2n+1) {
.archive #content .post:nth-child(2n+1), .tax-yr #content .pr:nth-child(2n+1) {
float: left;
width: 48.7013%;
}
......@@ -134,7 +134,7 @@ h2.subsection span {
/* Responsiveness. For smalll screens */
@media only screen and (max-width: 600px) {
#content .post {
#content .post, .tax-yr #content .pr {
float: none;
width: 100% !important;
}
......@@ -143,7 +143,6 @@ h2.subsection span {
font-size: 30px !important;
}
#content .quienes .entidad {
width:100% !important;
}
......
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