added date and free text to agenda activitats category posts, styled and organized posts template

This commit is contained in:
jorge 2024-04-19 16:43:22 +02:00
parent 4215736f24
commit 52f8a73b91
8 changed files with 84 additions and 27 deletions

View File

@ -1927,11 +1927,13 @@ Add your custom styles in this file so it is easier to update the theme.
padding-bottom: 4rem;
}
.edit-post-visual-editor__content-area .editor-styles-wrapper .site-main > article.xarxaprod-ajut {
.edit-post-visual-editor__content-area .editor-styles-wrapper .site-main > article.xarxaprod-ajut,
.edit-post-visual-editor__content-area .editor-styles-wrapper .site-main > article.category-activitats {
display: grid;
}
.edit-post-visual-editor__content-area .editor-styles-wrapper .site-main > article.xarxaprod-ajut > * {
.edit-post-visual-editor__content-area .editor-styles-wrapper .site-main > article.xarxaprod-ajut > *,
.edit-post-visual-editor__content-area .editor-styles-wrapper .site-main > article.category-activitats > * {
max-width: 40rem;
}
@ -1952,6 +1954,14 @@ Add your custom styles in this file so it is easier to update the theme.
max-width: unset;
}
.edit-post-visual-editor__content-area .editor-styles-wrapper .site-main > article > header {
margin-bottom: 1rem;
}
.edit-post-visual-editor__content-area .editor-styles-wrapper .site-main > article > aside {
margin-bottom: 1rem;
}
.edit-post-visual-editor__content-area .editor-styles-wrapper .site-main > section {
padding-bottom: 4rem;
}
@ -2000,6 +2010,7 @@ Add your custom styles in this file so it is easier to update the theme.
flex-direction: row;
align-items: center;
justify-content: space-between;
margin-bottom: 1rem;
}
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-faqs-aside .xarxaprod-search-form:hover,
@ -2970,7 +2981,9 @@ Add your custom styles in this file so it is easier to update the theme.
}
.edit-post-visual-editor__content-area .editor-styles-wrapper .single-xarxaprod-convo .xarxaprod-convo-info-fields li,
.edit-post-visual-editor__content-area .editor-styles-wrapper .single-xarxaprod-convo .xarxaprod-agenda-info li {
.edit-post-visual-editor__content-area .editor-styles-wrapper .single-xarxaprod-convo .xarxaprod-agenda-info li,
.edit-post-visual-editor__content-area .editor-styles-wrapper .single-post .category-activitats .xarxaprod-convo-info-fields li,
.edit-post-visual-editor__content-area .editor-styles-wrapper .single-post .category-activitats .xarxaprod-agenda-info li {
font-size: 1.5rem;
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -597,7 +597,8 @@
.archive-posts {
//grid-template-columns: repeat(2 , minmax(0,1fr));
}
.single-xarxaprod-convo {
.single-xarxaprod-convo,
.single-post .category-activitats{
.xarxaprod-convo-info-fields,
.xarxaprod-agenda-info {
li {

View File

@ -206,7 +206,8 @@
padding-top: 4rem;
> article {
padding-bottom: 4rem;
&.xarxaprod-ajut {
&.xarxaprod-ajut,
&.category-activitats {
display: grid;
> * {
max-width: 40rem;
@ -229,6 +230,12 @@
max-width: unset;
}
}
> header {
margin-bottom: 1rem;
}
> aside {
margin-bottom: 1rem;
}
}
> section {
padding-bottom: 4rem;
@ -274,6 +281,7 @@
flex-direction: row;
align-items: center;
justify-content: space-between;
margin-bottom: 1rem;
.xarxaprod-search-form {
&:hover,&:active,&:focus,&:target {
flex-grow: 1;

View File

@ -1792,11 +1792,13 @@ textarea {
padding-bottom: 4rem;
}
.site-main > article.xarxaprod-ajut {
.site-main > article.xarxaprod-ajut,
.site-main > article.category-activitats {
display: grid;
}
.site-main > article.xarxaprod-ajut > * {
.site-main > article.xarxaprod-ajut > *,
.site-main > article.category-activitats > * {
max-width: 40rem;
}
@ -1817,6 +1819,14 @@ textarea {
max-width: unset;
}
.site-main > article > header {
margin-bottom: 1rem;
}
.site-main > article > aside {
margin-bottom: 1rem;
}
.site-main > section {
padding-bottom: 4rem;
}
@ -1865,6 +1875,7 @@ textarea {
flex-direction: row;
align-items: center;
justify-content: space-between;
margin-bottom: 1rem;
}
.xarxaprod-faqs-aside .xarxaprod-search-form:hover,
@ -2821,7 +2832,9 @@ textarea {
}
.single-xarxaprod-convo .xarxaprod-convo-info-fields li,
.single-xarxaprod-convo .xarxaprod-agenda-info li {
.single-xarxaprod-convo .xarxaprod-agenda-info li,
.single-post .category-activitats .xarxaprod-convo-info-fields li,
.single-post .category-activitats .xarxaprod-agenda-info li {
font-size: 1.5rem;
}

File diff suppressed because one or more lines are too long

View File

@ -12,23 +12,45 @@
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<h1 class="entry-title">
<?php the_title(); ?>
<?php the_title(); ?>
</h1>
<?php
if ( 'post' === get_post_type() ) :
?>
<div class="entry-meta">
<?php if ( in_category('faq') ){
// display each faq category of the post as label
xarxaprod_display_each_faq_categories();
} ;?>
</div><!-- .entry-meta -->
<?php endif; ?>
</header><!-- .entry-header -->
<div class="entry-content">
<?php
if ( 'post' === get_post_type() ) :
?>
<?php if ( in_category('faq') ){ ?>
<aside class="entry-meta">
<?php xarxaprod_display_each_faq_categories(); // display each faq category of the post as label ?>
</aside><!-- .entry-meta -->
<?php } ;?>
<?php endif; ?>
<?php if ( in_category('activitats') ){ ?>
<aside class="xarxaprod-activity-info xarxaprod-agenda-info">
<ul>
<li class="activity-organizer organiza-activitat">
<?php if( get_field('xxp_agenda_free_text') ): ?>
<p class="item-xxp-agenda-free-text">
<?php the_field('xxp_agenda_free_text'); ?>
</p>
<?php endif; ?>
</li>
<?php if( get_field('xxp_agenda_date_start') || get_field('xxp_agenda_date_start') || get_field('xxp_agenda_free_text') ): ?>
<li class="agenda-date agenda-data">
<p>
<?php if( get_field('xxp_agenda_date_start') ){ ?>
<span class="item-xxp-agenda-date-start">el <?php the_field('xxp_agenda_date_start'); ?></span>
<?php } elseif ( get_field('xxp_agenda_date_end') ){ ?>
<span class="item-xxp-agenda-date-end">fins al<?php the_field('xxp_agenda_date_end'); ?></span>
<?php } elseif ( get_field('xxp_agenda_free_text') ){?>
<span class="item-xxp-agenda-free-text"><?php the_field('xxp_agenda_free_text'); ?></span>
<?php }; ?>
</p>
</li>
<?php endif; ?>
</ul>
</aside>
<?php }; ?>
<main class="entry-content">
<?php
the_content(
sprintf(
@ -52,7 +74,7 @@
)
);
?>
</div><!-- .entry-content -->
</main><!-- .entry-content -->
<footer class="entry-footer">
<?php //xarxaprod_entry_footer(); ?>