styled each agenda post with place and date
This commit is contained in:
parent
cde97cf526
commit
0b3227f54f
|
@ -1963,11 +1963,13 @@ Add your custom styles in this file so it is easier to update the theme.
|
||||||
font-size: 0.8rem;
|
font-size: 0.8rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-convo-info-fields {
|
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-convo-info-fields,
|
||||||
|
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-agenda-info {
|
||||||
margin-bottom: 2em;
|
margin-bottom: 2em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-convo-info-fields li {
|
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-convo-info-fields li,
|
||||||
|
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-agenda-info li {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 0.75fr 2.25fr;
|
grid-template-columns: 0.75fr 2.25fr;
|
||||||
padding: 0.2em 0;
|
padding: 0.2em 0;
|
||||||
|
@ -1975,7 +1977,13 @@ Add your custom styles in this file so it is easier to update the theme.
|
||||||
font-size: 1.5em;
|
font-size: 1.5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-convo-info-fields li .xarxaprod-label li {
|
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-convo-info-fields li:last-of-type,
|
||||||
|
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-agenda-info li:last-of-type {
|
||||||
|
border-bottom: 0.05em solid #000;
|
||||||
|
}
|
||||||
|
|
||||||
|
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-convo-info-fields li .xarxaprod-label li,
|
||||||
|
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-agenda-info li .xarxaprod-label li {
|
||||||
display: inherit;
|
display: inherit;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
@ -1985,23 +1993,27 @@ Add your custom styles in this file so it is easier to update the theme.
|
||||||
font-size: inherit;
|
font-size: inherit;
|
||||||
}
|
}
|
||||||
|
|
||||||
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-convo-info-fields li .xarxaprod-label li::after {
|
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-convo-info-fields li .xarxaprod-label li:nth-child(n+2)::before,
|
||||||
content: ",";
|
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-agenda-info li .xarxaprod-label li:nth-child(n+2)::before {
|
||||||
|
content: ", ";
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
}
|
}
|
||||||
|
|
||||||
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-convo-info-fields dt {
|
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-convo-info-fields dt,
|
||||||
|
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-agenda-info dt {
|
||||||
grid-row: 1 / 1;
|
grid-row: 1 / 1;
|
||||||
font-weight: 100;
|
font-weight: 100;
|
||||||
}
|
}
|
||||||
|
|
||||||
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-convo-info-fields dd {
|
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-convo-info-fields dd,
|
||||||
|
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-agenda-info dd {
|
||||||
grid-row: 1 / 2;
|
grid-row: 1 / 2;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
}
|
}
|
||||||
|
|
||||||
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-convo-info-fields p {
|
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-convo-info-fields p,
|
||||||
|
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-agenda-info p {
|
||||||
grid-row: 1 / 2;
|
grid-row: 1 / 2;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
@ -2014,7 +2026,7 @@ Add your custom styles in this file so it is easier to update the theme.
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-flow: column;
|
flex-flow: column;
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
margin-bottom: 333;
|
padding-bottom: 4em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-cards .wp-block-post-title,
|
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-cards .wp-block-post-title,
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -100,7 +100,8 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.xarxaprod-convo-info-fields {
|
.xarxaprod-convo-info-fields,
|
||||||
|
.xarxaprod-agenda-info {
|
||||||
margin-bottom: 2em;
|
margin-bottom: 2em;
|
||||||
li {
|
li {
|
||||||
display:grid;
|
display:grid;
|
||||||
|
@ -108,6 +109,9 @@
|
||||||
padding: 0.2em 0;
|
padding: 0.2em 0;
|
||||||
border-top: 0.05em solid $color__black;
|
border-top: 0.05em solid $color__black;
|
||||||
font-size: 1.5em;
|
font-size: 1.5em;
|
||||||
|
&:last-of-type{
|
||||||
|
border-bottom: 0.05em solid $color__black;
|
||||||
|
}
|
||||||
.xarxaprod-label li {
|
.xarxaprod-label li {
|
||||||
display: inherit;
|
display: inherit;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
@ -116,8 +120,8 @@
|
||||||
border: none;
|
border: none;
|
||||||
background-color: none;
|
background-color: none;
|
||||||
font-size: inherit;
|
font-size: inherit;
|
||||||
&:after {
|
&:nth-child(n+2):before {
|
||||||
content:",";
|
content:", ";
|
||||||
display:inline-block;
|
display:inline-block;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -149,7 +153,7 @@
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-flow: column;
|
flex-flow: column;
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
margin-bottom: 333;
|
padding-bottom: 4em;
|
||||||
.wp-block-post-title {
|
.wp-block-post-title {
|
||||||
text-transform: lowercase;
|
text-transform: lowercase;
|
||||||
font-size: 1.5em;
|
font-size: 1.5em;
|
||||||
|
|
30
style.css
30
style.css
|
@ -1804,11 +1804,13 @@ textarea {
|
||||||
font-size: 0.8rem;
|
font-size: 0.8rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.xarxaprod-convo-info-fields {
|
.xarxaprod-convo-info-fields,
|
||||||
|
.xarxaprod-agenda-info {
|
||||||
margin-bottom: 2em;
|
margin-bottom: 2em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.xarxaprod-convo-info-fields li {
|
.xarxaprod-convo-info-fields li,
|
||||||
|
.xarxaprod-agenda-info li {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 0.75fr 2.25fr;
|
grid-template-columns: 0.75fr 2.25fr;
|
||||||
padding: 0.2em 0;
|
padding: 0.2em 0;
|
||||||
|
@ -1816,7 +1818,13 @@ textarea {
|
||||||
font-size: 1.5em;
|
font-size: 1.5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.xarxaprod-convo-info-fields li .xarxaprod-label li {
|
.xarxaprod-convo-info-fields li:last-of-type,
|
||||||
|
.xarxaprod-agenda-info li:last-of-type {
|
||||||
|
border-bottom: 0.05em solid #000;
|
||||||
|
}
|
||||||
|
|
||||||
|
.xarxaprod-convo-info-fields li .xarxaprod-label li,
|
||||||
|
.xarxaprod-agenda-info li .xarxaprod-label li {
|
||||||
display: inherit;
|
display: inherit;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
@ -1826,23 +1834,27 @@ textarea {
|
||||||
font-size: inherit;
|
font-size: inherit;
|
||||||
}
|
}
|
||||||
|
|
||||||
.xarxaprod-convo-info-fields li .xarxaprod-label li::after {
|
.xarxaprod-convo-info-fields li .xarxaprod-label li:nth-child(n+2)::before,
|
||||||
content: ",";
|
.xarxaprod-agenda-info li .xarxaprod-label li:nth-child(n+2)::before {
|
||||||
|
content: ", ";
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
}
|
}
|
||||||
|
|
||||||
.xarxaprod-convo-info-fields dt {
|
.xarxaprod-convo-info-fields dt,
|
||||||
|
.xarxaprod-agenda-info dt {
|
||||||
grid-row: 1 / 1;
|
grid-row: 1 / 1;
|
||||||
font-weight: 100;
|
font-weight: 100;
|
||||||
}
|
}
|
||||||
|
|
||||||
.xarxaprod-convo-info-fields dd {
|
.xarxaprod-convo-info-fields dd,
|
||||||
|
.xarxaprod-agenda-info dd {
|
||||||
grid-row: 1 / 2;
|
grid-row: 1 / 2;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
}
|
}
|
||||||
|
|
||||||
.xarxaprod-convo-info-fields p {
|
.xarxaprod-convo-info-fields p,
|
||||||
|
.xarxaprod-agenda-info p {
|
||||||
grid-row: 1 / 2;
|
grid-row: 1 / 2;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
@ -1862,7 +1874,7 @@ textarea {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-flow: column;
|
flex-flow: column;
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
margin-bottom: 333;
|
padding-bottom: 4em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.xarxaprod-cards .wp-block-post-title,
|
.xarxaprod-cards .wp-block-post-title,
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -12,22 +12,52 @@
|
||||||
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
||||||
<header class="entry-header">
|
<header class="entry-header">
|
||||||
<?php
|
<?php
|
||||||
//the_title( '<h3 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h3>' );
|
|
||||||
the_title( '<h3 class="entry-title">', '</h3>' );
|
the_title( '<h3 class="entry-title">', '</h3>' );
|
||||||
|
|
||||||
if ( 'post' === get_post_type() ) :
|
if ( 'post' === get_post_type() ) :
|
||||||
?>
|
?>
|
||||||
<div class="entry-meta">
|
<div class="entry-meta">
|
||||||
<?php
|
<?php if ( in_category('faq') ){
|
||||||
xarxaprod_display_each_faq_categories();
|
xarxaprod_display_each_faq_categories();
|
||||||
//xarxaprod_display_faqs_labels();
|
//xarxaprod_display_faqs_labels();
|
||||||
//xarxaprod_posted_on();
|
} ;?>
|
||||||
//xarxaprod_posted_by();
|
|
||||||
|
<?php if ( in_category( array( 'agenda', 'agenda-es','activitats') ) ) : ?>
|
||||||
|
<aside class="xarxaprod-agenda-info">
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<dt>Data</dt>
|
||||||
|
<dd><?php the_field('xxp_agenda_date_start'); ?> </dd>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<dt>Lloc</dt>
|
||||||
|
<dd>
|
||||||
|
|
||||||
|
<?php //output xxp_agenda_who who is doing the activity
|
||||||
|
$fielditerate='xxp_agenda_who';
|
||||||
|
$fields= get_field($fielditerate);
|
||||||
|
if( $fields ):
|
||||||
?>
|
?>
|
||||||
|
<ul class="xarxaprod-label item-<?php echo $fielditerate ?>">
|
||||||
|
<?php foreach( $fields as $field ): ?>
|
||||||
|
<li>
|
||||||
|
<?php echo $field['label']; ?>
|
||||||
|
<?php //echo '<a href="' . get_category_link( get_the_category()[0]->term_id ) . '?' . $fielditerate . '=' . $field['value'] . '">'; ?>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<?php endforeach; ?>
|
||||||
|
</ul>
|
||||||
|
<?php endif; // end list xxp_agena_who?>
|
||||||
|
|
||||||
</div><!-- .entry-meta -->
|
</div><!-- .entry-meta -->
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</header><!-- .entry-header -->
|
</header><!-- .entry-header -->
|
||||||
|
|
||||||
|
</dd>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</aside>
|
||||||
|
<?php endif; //end in_category agenda activitats ?>
|
||||||
<div class="entry-content">
|
<div class="entry-content">
|
||||||
<?php
|
<?php
|
||||||
the_content(
|
the_content(
|
||||||
|
|
Loading…
Reference in New Issue