Commit 47bab1ed authored by numeroteca's avatar numeroteca

#5 add migas and metada data to entidad, actividad y proyectos

parent 9ac09881
......@@ -26,6 +26,12 @@ $the_content = get_the_content();
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<a class="migas" href="/agenda">
<?php
echo "< ";
_e("Back to Agenda","colormag-child");
?>
</a>
<?php do_action( 'colormag_before_post_content' ); ?>
<?php
......@@ -58,9 +64,10 @@ $the_content = get_the_content();
<?php colormag_entry_meta(); ?>
<div class="entry-content clearfix">
<div class="metadata">
<?php
echo "<p><strong>"._e('Activity data','colormag-child')."</strong><br>";
if ( $tit!= '' ) echo __('What','colormag-child').": ".$tit."<br>";
// echo "<p><strong>"._e('Activity data','colormag-child')."</strong><br>";
// if ( $tit!= '' ) echo __('What','colormag-child').": ".$tit."<br>";
if ( $place != '' ) echo __('Place','colormag-child').": ". $place."<br>";
if ( $time != '' ) echo __('Hour','colormag-child').": ".$time."<br>";
if ( $dateinit != '' ) echo __('Start date','colormag-child').": ". date_format($date, 'D, d/m/Y'). "<br>";
......@@ -69,7 +76,9 @@ $the_content = get_the_content();
echo __('Organized by','colormag-child').": ". $organizer."<br>";
if ( $numero_asistentes != '' ) echo __('Number of people','colormag-child').": ".$numero_asistentes."<br>";
echo "</p>";
?>
</div>
<?php
the_content();
wp_link_pages( array(
......
......@@ -26,6 +26,12 @@ $logo2 = get_post_meta( $post_id, 'logo', true ); // gets all the info about the
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<a class="migas" href="/quienes">
<?php
echo "< ";
_e("Back to who we are","colormag-child");
?>
</a>
<?php do_action( 'colormag_before_post_content' ); ?>
<?php
......
......@@ -10,6 +10,7 @@
$post_id = $post->ID;
$tit = get_the_title();
$autoria = get_post_meta( $post_id, 'autoria', true );
$subtit = get_post_meta( $post_id, 'subtitle', true );
$the_content = get_the_content();
// check if current project is a Residencia
......@@ -23,11 +24,16 @@ if( has_term( "residencia", 'tp-pr') ) {
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<a href="/<?php echo $parent_page; ?>">
<a class="migas" href="/<?php echo $parent_page; ?>">
<?php
if ($parent_page == "proyectos") { _e("Projects","colormag-child"); } else { _e("Residencies","colormag-child"); }
if ($parent_page == "proyectos") {
echo "< ";
_e("Back to projects","colormag-child"); } else {
echo "< ";
_e("Back to residencies","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 do_action( 'colormag_before_post_content' ); ?>
<?php
......@@ -51,11 +57,20 @@ if( has_term( "residencia", 'tp-pr') ) {
<?php colormag_colored_category(); ?>
<header class="entry-header">
<h1 class="entry-title">
<?php the_title(); ?>
</h1>
</header>
<header class="entry-header project">
<h1 class="entry-title">
<?php echo $tit; ?>
</h1>
<h2>
<?php echo $subtit; ?>
</h2>
<div class="metadata">
<?php
echo __("Authorship","colormag-child"). ": ". $autoria . " | " . get_the_term_list( $post->ID, 'tp-pr', 'Tipo de proyecto: ', ', ', '' ) . " | " . get_the_term_list( $post->ID, 'yr', ' ', ', ', '' );
?>
</div>
</header>
<?php colormag_entry_meta(); ?>
......
......@@ -94,6 +94,41 @@ body.entidad-template-default #content article.entidad {
clear: both;
}
/* Project metadata y otros*/
a.migas {
color:#000;
}
header.project h1 {
padding: 0;
}
header.project h2 {
font-size: 28px !important;
padding-bottom: 10px;
}
.single .pr .featured-image {
border-top: #289dcc solid 2px;
margin-top: 5px;
padding: 10px 0 0 0;
border-bottom: #aaa solid 2px;
}
.metadata {
border-bottom: #ccc solid 2px;
color: #000;
margin-bottom: 20px;
padding-bottom: 5px;
}
/* actividad estilo y metadata*/
.single-actividad .featured-image {
border-top: #289dcc solid 2px;
margin-top: 5px;
padding: 10px 0 0 0;
border-bottom: #aaa solid 2px;
}
/* project year */
.project_year {
margin-left: 130px;
......@@ -294,3 +329,13 @@ footer .social-links.clearfix i {
#content .post .article-content .above-entry-meta .cat-links a {
display: table-cell;
}
.entry-content ol li {
color:#000;
}
/* Slideshow */
.slideshow-window {
background-color:#FFF;
border: 0px solid #FFF;
}
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