created new data fields in convo and styles
This commit is contained in:
parent
4c0d0df31e
commit
077bbebf99
127
adminstyles.css
127
adminstyles.css
|
@ -17,7 +17,7 @@ Theme URI: https://git.hangar.org/xarxaprod/
|
|||
Author: Hangar.org Tech Lab - hangar.org
|
||||
Author URI: https://hangar.org
|
||||
Description: theme for the <a href="https://xarxaprod.cat">XarxaProd</a>. Inclou la possibilitat de publicar, catalogar i cercar ajuts, resoldre dubtes amb FAQs i altres. Design by Eudald Van der Pla <a href="https://vanderpla.com">vanderpla.com</a>. Coding template and theme by <a href="https://vitrubio.net">Jorge - vitrubio.net</a>
|
||||
Version: 1.5.1
|
||||
Version: 1.6.0
|
||||
Tested up to: 6.4
|
||||
Requires PHP: 7.4
|
||||
License: GNU General Public License v3 or later
|
||||
|
@ -2095,13 +2095,20 @@ Add your custom styles in this file so it is easier to update the theme.
|
|||
* * * * * * * */
|
||||
|
||||
/* used in
|
||||
* ./template-parts/section-eachpost.php
|
||||
* template-parts/section-eachpost.php
|
||||
* */
|
||||
|
||||
/* used in
|
||||
* ./template-parts/content-xarxaprod-ajut.php
|
||||
* ./template-parts/content-xarxaprod-convo.php
|
||||
* ./template-parts/section-eachpost.php
|
||||
* template-parts/content-xarxaprod-ajut.php
|
||||
* template-parts/content-xarxaprod-convo.php
|
||||
* template-parts/section-eachpost.php
|
||||
* */
|
||||
|
||||
/* used in
|
||||
* archive-xarxaprod-convo.php
|
||||
* page-template/convo-search.php
|
||||
* template-parts/content-xarxaprod-convo.php
|
||||
* template-parts/section-eachconvo.php
|
||||
* */
|
||||
|
||||
/* used in
|
||||
|
@ -2317,48 +2324,11 @@ Add your custom styles in this file so it is easier to update the theme.
|
|||
font-size: 0.8rem;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor__content-area .editor-styles-wrapper article.xarxaprod-convo > .xarxaprod-convo-info-fields {
|
||||
padding-top: 2rem;
|
||||
padding-bottom: 2rem;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor__content-area .editor-styles-wrapper article.xarxaprod-convo > .entry-footer {
|
||||
padding-top: 2rem;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor__content-area .editor-styles-wrapper article.xarxaprod-convo > .entry-footer .xarxaprod-more-convos-header {
|
||||
padding: 2rem 0;
|
||||
font-size: 1.6rem;
|
||||
text-align: center;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor__content-area .editor-styles-wrapper article.xarxaprod-convo > .entry-footer .last-convos {
|
||||
padding: 2rem 0;
|
||||
border-top: 0.05rem solid #000;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor__content-area .editor-styles-wrapper article.xarxaprod-convo > .entry-footer .last-convos > header {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.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;
|
||||
}
|
||||
|
||||
.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;
|
||||
grid-template-columns: 0.75fr 2.25fr;
|
||||
padding: 0.2em 0;
|
||||
border-top: 0.05rem solid #000;
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.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.05rem solid #000;
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-convo-info-fields li .xarxaprod-label li,
|
||||
|
@ -2379,16 +2349,12 @@ Add your custom styles in this file so it is easier to update the theme.
|
|||
}
|
||||
|
||||
.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;
|
||||
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-agenda-info dt,
|
||||
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-agenda-info dd {
|
||||
grid-row: 1 / 2;
|
||||
display: inline;
|
||||
font-weight: 100;
|
||||
margin: 0;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-convo-info-fields p,
|
||||
|
@ -2397,6 +2363,61 @@ Add your custom styles in this file so it is easier to update the theme.
|
|||
margin: 0;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-card-each.xarxaprod-convo .entry-title {
|
||||
display: inline-flex;
|
||||
align-items: flex-end;
|
||||
min-height: 3.6rem;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor__content-area .editor-styles-wrapper .single-xarxaprod-convo article.xarxaprod-convo > .xarxaprod-convo-info-fields {
|
||||
padding-top: 2rem;
|
||||
padding-bottom: 2rem;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor__content-area .editor-styles-wrapper .single-xarxaprod-convo article.xarxaprod-convo > .entry-footer {
|
||||
padding-top: 2rem;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor__content-area .editor-styles-wrapper .single-xarxaprod-convo article.xarxaprod-convo > .entry-footer .xarxaprod-more-convos-header {
|
||||
padding: 2rem 0;
|
||||
font-size: 1.6rem;
|
||||
text-align: center;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor__content-area .editor-styles-wrapper .single-xarxaprod-convo article.xarxaprod-convo > .entry-footer .last-convos {
|
||||
padding: 2rem 0;
|
||||
border-top: 0.05rem solid #000;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor__content-area .editor-styles-wrapper .single-xarxaprod-convo article.xarxaprod-convo > .entry-footer .last-convos > header {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.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 {
|
||||
display: grid;
|
||||
grid-template-columns: 0.75fr 2.25fr;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor__content-area .editor-styles-wrapper .single-xarxaprod-convo .xarxaprod-convo-info-fields li:first-of-type,
|
||||
.edit-post-visual-editor__content-area .editor-styles-wrapper .single-xarxaprod-convo .xarxaprod-agenda-info li:first-of-type {
|
||||
border-top: 0.05rem solid #000;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor__content-area .editor-styles-wrapper .single-xarxaprod-convo .xarxaprod-convo-info-fields dt,
|
||||
.edit-post-visual-editor__content-area .editor-styles-wrapper .single-xarxaprod-convo .xarxaprod-agenda-info dt {
|
||||
grid-row: 1 / 1;
|
||||
font-weight: 100;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor__content-area .editor-styles-wrapper .single-xarxaprod-convo .xarxaprod-convo-info-fields dd,
|
||||
.edit-post-visual-editor__content-area .editor-styles-wrapper .single-xarxaprod-convo .xarxaprod-agenda-info dd {
|
||||
grid-row: 1 / 2;
|
||||
margin: 0;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor__content-area .editor-styles-wrapper .single-xarxaprod-associat .xarxaprod-associat > section {
|
||||
margin-top: 4em;
|
||||
}
|
||||
|
@ -2556,6 +2577,8 @@ Add your custom styles in this file so it is easier to update the theme.
|
|||
}
|
||||
|
||||
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-card-each.category-activitats .entry-title {
|
||||
display: inline-flex;
|
||||
align-items: flex-end;
|
||||
min-height: 5.5rem;
|
||||
overflow: hidden;
|
||||
border: none;
|
||||
|
@ -2682,8 +2705,8 @@ Add your custom styles in this file so it is easier to update the theme.
|
|||
|
||||
@media screen and (min-width: 48em) {
|
||||
|
||||
.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 {
|
||||
.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 {
|
||||
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
|
@ -69,7 +69,7 @@ get_header();
|
|||
<content class="archive-posts archive-xarxaprod-convo <?php //xarxaprod_class_posttype(); ?>">
|
||||
<?php while ( $the_query_convo->have_posts() ) : $the_query_convo->the_post(); ?>
|
||||
|
||||
<?php get_template_part( 'template-parts/section', 'eachconvo' ); ?>
|
||||
<?php get_template_part( 'template-parts/section', 'eachconvo' , $the_query_convo); ?>
|
||||
|
||||
<?php endwhile;//end of the loop ?>
|
||||
<?php wp_reset_postdata(); ?>
|
||||
|
|
|
@ -93,7 +93,7 @@
|
|||
}
|
||||
|
||||
/* used in
|
||||
* ./template-parts/section-eachpost.php
|
||||
* template-parts/section-eachpost.php
|
||||
* */
|
||||
.xarxaprod-card-each {
|
||||
display: flex;
|
||||
|
@ -125,9 +125,9 @@
|
|||
}
|
||||
|
||||
/* used in
|
||||
* ./template-parts/content-xarxaprod-ajut.php
|
||||
* ./template-parts/content-xarxaprod-convo.php
|
||||
* ./template-parts/section-eachpost.php
|
||||
* template-parts/content-xarxaprod-ajut.php
|
||||
* template-parts/content-xarxaprod-convo.php
|
||||
* template-parts/section-eachpost.php
|
||||
* */
|
||||
.xarxaprod-fund-info-fields,
|
||||
.xarxaprod-fund-info-contact-fields {
|
||||
|
@ -178,40 +178,19 @@
|
|||
font-size: $font__size-body*0.8;
|
||||
}
|
||||
}
|
||||
article.xarxaprod-convo {
|
||||
> .xarxaprod-convo-info-fields {
|
||||
padding-top: 2rem;
|
||||
padding-bottom: 2rem;
|
||||
}
|
||||
> .entry-footer {
|
||||
padding-top: 2rem;
|
||||
.xarxaprod-more-convos-header {
|
||||
padding: 2rem 0;
|
||||
font-size: $font__size-body*1.6;
|
||||
text-align: center;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
.last-convos{
|
||||
padding: 2rem 0;
|
||||
border-top: $border__line;
|
||||
> header {
|
||||
display:none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
/* used in
|
||||
* archive-xarxaprod-convo.php
|
||||
* page-template/convo-search.php
|
||||
* template-parts/content-xarxaprod-convo.php
|
||||
* template-parts/section-eachconvo.php
|
||||
* */
|
||||
.xarxaprod-convo-info-fields,
|
||||
.xarxaprod-agenda-info {
|
||||
margin-bottom: 2em;
|
||||
//margin-bottom: 2em;
|
||||
li {
|
||||
display:grid;
|
||||
grid-template-columns: 0.75fr 2.25fr;
|
||||
padding: 0.2em 0;
|
||||
border-top: $border__line;
|
||||
border-bottom: $border__line;
|
||||
font-size: $font__size-body*1;
|
||||
&:last-of-type{
|
||||
border-bottom: $border__line;
|
||||
}
|
||||
.xarxaprod-label li {
|
||||
display: inherit;
|
||||
margin: 0;
|
||||
|
@ -226,20 +205,71 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
dt {
|
||||
grid-row: 1 / 1;
|
||||
dt,dd {
|
||||
display: inline;
|
||||
font-weight: 100;
|
||||
}
|
||||
dd {
|
||||
grid-row: 1 / 2;
|
||||
margin: 0;
|
||||
font-weight: 700;
|
||||
span {
|
||||
//padding-right: 0.5rem;
|
||||
}
|
||||
}
|
||||
p {
|
||||
grid-row: 1 / 2;
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
.xarxaprod-card-each {
|
||||
&.xarxaprod-convo {
|
||||
.entry-title {
|
||||
display: inline-flex;
|
||||
align-items: flex-end;
|
||||
min-height: $font__size-body * 3.6;
|
||||
}
|
||||
}
|
||||
}
|
||||
.single-xarxaprod-convo {
|
||||
article.xarxaprod-convo {
|
||||
> .xarxaprod-convo-info-fields {
|
||||
padding-top: 2rem;
|
||||
padding-bottom: 2rem;
|
||||
}
|
||||
> .entry-footer {
|
||||
padding-top: 2rem;
|
||||
.xarxaprod-more-convos-header {
|
||||
padding: 2rem 0;
|
||||
font-size: $font__size-body*1.6;
|
||||
text-align: center;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
.last-convos{
|
||||
padding: 2rem 0;
|
||||
border-top: $border__line;
|
||||
> header {
|
||||
display:none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.xarxaprod-convo-info-fields,
|
||||
.xarxaprod-agenda-info {
|
||||
li {
|
||||
display:grid;
|
||||
grid-template-columns: 0.75fr 2.25fr;
|
||||
&:first-of-type{
|
||||
border-top: $border__line;
|
||||
}
|
||||
}
|
||||
dt {
|
||||
grid-row: 1 / 1;
|
||||
font-weight: 100;
|
||||
}
|
||||
dd {
|
||||
grid-row: 1 / 2;
|
||||
margin: 0;
|
||||
font-weight: 700;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* used in
|
||||
* template-parts/content-xarxaprod-associat.php
|
||||
|
@ -413,6 +443,8 @@
|
|||
&.category-activitats {
|
||||
justify-content: flex-start;
|
||||
.entry-title {
|
||||
display: inline-flex;
|
||||
align-items: flex-end;
|
||||
min-height: $font__size-body * 5.5;
|
||||
overflow: hidden;
|
||||
border: none;
|
||||
|
@ -542,10 +574,12 @@
|
|||
.archive-posts {
|
||||
//grid-template-columns: repeat(2 , minmax(0,1fr));
|
||||
}
|
||||
.xarxaprod-convo-info-fields,
|
||||
.xarxaprod-agenda-info {
|
||||
li {
|
||||
font-size: $font__size-body*1.5;
|
||||
.single-xarxaprod-convo {
|
||||
.xarxaprod-convo-info-fields,
|
||||
.xarxaprod-agenda-info {
|
||||
li {
|
||||
font-size: $font__size-body*1.5;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ Theme URI: https://git.hangar.org/xarxaprod/
|
|||
Author: Hangar.org Tech Lab - hangar.org
|
||||
Author URI: https://hangar.org
|
||||
Description: theme for the <a href="https://xarxaprod.cat">XarxaProd</a>. Inclou la possibilitat de publicar, catalogar i cercar ajuts, resoldre dubtes amb FAQs i altres. Design by Eudald Van der Pla <a href="https://vanderpla.com">vanderpla.com</a>. Coding template and theme by <a href="https://vitrubio.net">Jorge - vitrubio.net</a>
|
||||
Version: 1.5.1
|
||||
Version: 1.6.0
|
||||
Tested up to: 6.4
|
||||
Requires PHP: 7.4
|
||||
License: GNU General Public License v3 or later
|
||||
|
|
126
style.css
126
style.css
|
@ -5,7 +5,7 @@ Theme URI: https://git.hangar.org/xarxaprod/
|
|||
Author: Hangar.org Tech Lab - hangar.org
|
||||
Author URI: https://hangar.org
|
||||
Description: theme for the <a href="https://xarxaprod.cat">XarxaProd</a>. Inclou la possibilitat de publicar, catalogar i cercar ajuts, resoldre dubtes amb FAQs i altres. Design by Eudald Van der Pla <a href="https://vanderpla.com">vanderpla.com</a>. Coding template and theme by <a href="https://vitrubio.net">Jorge - vitrubio.net</a>
|
||||
Version: 1.5.1
|
||||
Version: 1.6.0
|
||||
Tested up to: 6.4
|
||||
Requires PHP: 7.4
|
||||
License: GNU General Public License v3 or later
|
||||
|
@ -2036,7 +2036,7 @@ textarea {
|
|||
}
|
||||
|
||||
/* used in
|
||||
* ./template-parts/section-eachpost.php
|
||||
* template-parts/section-eachpost.php
|
||||
* */
|
||||
.xarxaprod-card-each {
|
||||
display: flex;
|
||||
|
@ -2074,9 +2074,9 @@ textarea {
|
|||
}
|
||||
|
||||
/* used in
|
||||
* ./template-parts/content-xarxaprod-ajut.php
|
||||
* ./template-parts/content-xarxaprod-convo.php
|
||||
* ./template-parts/section-eachpost.php
|
||||
* template-parts/content-xarxaprod-ajut.php
|
||||
* template-parts/content-xarxaprod-convo.php
|
||||
* template-parts/section-eachpost.php
|
||||
* */
|
||||
.xarxaprod-fund-info-fields,
|
||||
.xarxaprod-fund-info-contact-fields {
|
||||
|
@ -2139,48 +2139,17 @@ textarea {
|
|||
font-size: 0.8rem;
|
||||
}
|
||||
|
||||
article.xarxaprod-convo > .xarxaprod-convo-info-fields {
|
||||
padding-top: 2rem;
|
||||
padding-bottom: 2rem;
|
||||
}
|
||||
|
||||
article.xarxaprod-convo > .entry-footer {
|
||||
padding-top: 2rem;
|
||||
}
|
||||
|
||||
article.xarxaprod-convo > .entry-footer .xarxaprod-more-convos-header {
|
||||
padding: 2rem 0;
|
||||
font-size: 1.6rem;
|
||||
text-align: center;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
article.xarxaprod-convo > .entry-footer .last-convos {
|
||||
padding: 2rem 0;
|
||||
border-top: 0.05rem solid #000;
|
||||
}
|
||||
|
||||
article.xarxaprod-convo > .entry-footer .last-convos > header {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.xarxaprod-convo-info-fields,
|
||||
.xarxaprod-agenda-info {
|
||||
margin-bottom: 2em;
|
||||
}
|
||||
|
||||
/* used in
|
||||
* archive-xarxaprod-convo.php
|
||||
* page-template/convo-search.php
|
||||
* template-parts/content-xarxaprod-convo.php
|
||||
* template-parts/section-eachconvo.php
|
||||
* */
|
||||
.xarxaprod-convo-info-fields li,
|
||||
.xarxaprod-agenda-info li {
|
||||
display: grid;
|
||||
grid-template-columns: 0.75fr 2.25fr;
|
||||
padding: 0.2em 0;
|
||||
border-top: 0.05rem solid #000;
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.xarxaprod-convo-info-fields li:last-of-type,
|
||||
.xarxaprod-agenda-info li:last-of-type {
|
||||
border-bottom: 0.05rem solid #000;
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.xarxaprod-convo-info-fields li .xarxaprod-label li,
|
||||
|
@ -2201,16 +2170,12 @@ textarea {
|
|||
}
|
||||
|
||||
.xarxaprod-convo-info-fields dt,
|
||||
.xarxaprod-agenda-info dt {
|
||||
grid-row: 1 / 1;
|
||||
font-weight: 100;
|
||||
}
|
||||
|
||||
.xarxaprod-convo-info-fields dd,
|
||||
.xarxaprod-agenda-info dt,
|
||||
.xarxaprod-agenda-info dd {
|
||||
grid-row: 1 / 2;
|
||||
display: inline;
|
||||
font-weight: 100;
|
||||
margin: 0;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.xarxaprod-convo-info-fields p,
|
||||
|
@ -2219,6 +2184,61 @@ textarea {
|
|||
margin: 0;
|
||||
}
|
||||
|
||||
.xarxaprod-card-each.xarxaprod-convo .entry-title {
|
||||
display: inline-flex;
|
||||
align-items: flex-end;
|
||||
min-height: 3.6rem;
|
||||
}
|
||||
|
||||
.single-xarxaprod-convo article.xarxaprod-convo > .xarxaprod-convo-info-fields {
|
||||
padding-top: 2rem;
|
||||
padding-bottom: 2rem;
|
||||
}
|
||||
|
||||
.single-xarxaprod-convo article.xarxaprod-convo > .entry-footer {
|
||||
padding-top: 2rem;
|
||||
}
|
||||
|
||||
.single-xarxaprod-convo article.xarxaprod-convo > .entry-footer .xarxaprod-more-convos-header {
|
||||
padding: 2rem 0;
|
||||
font-size: 1.6rem;
|
||||
text-align: center;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.single-xarxaprod-convo article.xarxaprod-convo > .entry-footer .last-convos {
|
||||
padding: 2rem 0;
|
||||
border-top: 0.05rem solid #000;
|
||||
}
|
||||
|
||||
.single-xarxaprod-convo article.xarxaprod-convo > .entry-footer .last-convos > header {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.single-xarxaprod-convo .xarxaprod-convo-info-fields li,
|
||||
.single-xarxaprod-convo .xarxaprod-agenda-info li {
|
||||
display: grid;
|
||||
grid-template-columns: 0.75fr 2.25fr;
|
||||
}
|
||||
|
||||
.single-xarxaprod-convo .xarxaprod-convo-info-fields li:first-of-type,
|
||||
.single-xarxaprod-convo .xarxaprod-agenda-info li:first-of-type {
|
||||
border-top: 0.05rem solid #000;
|
||||
}
|
||||
|
||||
.single-xarxaprod-convo .xarxaprod-convo-info-fields dt,
|
||||
.single-xarxaprod-convo .xarxaprod-agenda-info dt {
|
||||
grid-row: 1 / 1;
|
||||
font-weight: 100;
|
||||
}
|
||||
|
||||
.single-xarxaprod-convo .xarxaprod-convo-info-fields dd,
|
||||
.single-xarxaprod-convo .xarxaprod-agenda-info dd {
|
||||
grid-row: 1 / 2;
|
||||
margin: 0;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
/* used in
|
||||
* template-parts/content-xarxaprod-associat.php
|
||||
* * * * * * * * * */
|
||||
|
@ -2404,6 +2424,8 @@ textarea {
|
|||
}
|
||||
|
||||
.xarxaprod-card-each.category-activitats .entry-title {
|
||||
display: inline-flex;
|
||||
align-items: flex-end;
|
||||
min-height: 5.5rem;
|
||||
overflow: hidden;
|
||||
border: none;
|
||||
|
@ -2533,8 +2555,8 @@ textarea {
|
|||
|
||||
@media screen and (min-width: 48em) {
|
||||
|
||||
.xarxaprod-convo-info-fields li,
|
||||
.xarxaprod-agenda-info li {
|
||||
.single-xarxaprod-convo .xarxaprod-convo-info-fields li,
|
||||
.single-xarxaprod-convo .xarxaprod-agenda-info li {
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -15,58 +15,54 @@
|
|||
<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
|
||||
</header><!-- .entry-header -->
|
||||
|
||||
|
||||
|
||||
<aside cass="xarxaprod-espai-image">
|
||||
<?php
|
||||
if( get_field('xxp_convo_espai_associat') ):
|
||||
// read here howto
|
||||
// https://www.advancedcustomfields.com/resources/relationship/#display-list-of-posts-with-setuppostdata
|
||||
$espai_associat_posts = get_field('xxp_convo_espai_associat');
|
||||
if( $espai_associat_posts ):
|
||||
foreach( $espai_associat_posts as $post ):
|
||||
// Setup this post for WP functions (variable must be named $post).
|
||||
setup_postdata($post); ?>
|
||||
|
||||
<?php
|
||||
// search and output images
|
||||
// check if has post_thumbnail
|
||||
if ( has_post_thumbnail() ){
|
||||
xarxaprod_post_thumbnail('full');
|
||||
} else { ?>
|
||||
<?php if( have_rows('xxp_associat_gallery_images') ){ ?>
|
||||
<section class="xarxaprod-associat-gallery-images">
|
||||
<ul class="xarxaprod-associat-slides">
|
||||
<?php while( have_rows('xxp_associat_gallery_images') ): the_row(); ?>
|
||||
<?php $image=get_sub_field('xxp_associat_image'); ?>
|
||||
<li id="<?php echo acf_esc_html( $image['filename'] );?>" class="xarxaprod-associat-image">
|
||||
<?php //print_r( $image ); //echo the whole array ?>
|
||||
<?php //print_r( $image['ID'] ); // echo one fiels of the array?>
|
||||
<?php echo wp_get_attachment_image( $image['ID'], 'full' ); ?>
|
||||
<p class="caption"><?php //echo acf_esc_html( $image['caption'] );?></p>
|
||||
</li>
|
||||
<?php endwhile; //end while has rows ?>
|
||||
</ul>
|
||||
</section>
|
||||
<?php }; //end if xxp_associat_gallery_images ?>
|
||||
|
||||
<?php };//end has_post_thumbnail ?>
|
||||
|
||||
<?php endforeach;
|
||||
// Reset the global post object so that the rest of the page works correctly.
|
||||
wp_reset_postdata();
|
||||
endif;
|
||||
endif;
|
||||
?>
|
||||
</aside>
|
||||
|
||||
|
||||
<aside cass="xarxaprod-espai-image">
|
||||
<?php
|
||||
if( get_field('xxp_convo_espai_associat') ):
|
||||
// read here howto
|
||||
// https://www.advancedcustomfields.com/resources/relationship/#display-list-of-posts-with-setuppostdata
|
||||
$espai_associat_posts = get_field('xxp_convo_espai_associat');
|
||||
if( $espai_associat_posts ):
|
||||
foreach( $espai_associat_posts as $post ):
|
||||
// Setup this post for WP functions (variable must be named $post).
|
||||
setup_postdata($post); ?>
|
||||
|
||||
<?php
|
||||
// search and output images
|
||||
// check if has post_thumbnail
|
||||
if ( has_post_thumbnail() ){
|
||||
xarxaprod_post_thumbnail('full');
|
||||
} else { ?>
|
||||
<?php if( have_rows('xxp_associat_gallery_images') ){ ?>
|
||||
<section class="xarxaprod-associat-gallery-images">
|
||||
<ul class="xarxaprod-associat-slides">
|
||||
<?php while( have_rows('xxp_associat_gallery_images') ): the_row(); ?>
|
||||
<?php $image=get_sub_field('xxp_associat_image'); ?>
|
||||
<li id="<?php echo acf_esc_html( $image['filename'] );?>" class="xarxaprod-associat-image">
|
||||
<?php //print_r( $image ); //echo the whole array ?>
|
||||
<?php //print_r( $image['ID'] ); // echo one fiels of the array?>
|
||||
<?php echo wp_get_attachment_image( $image['ID'], 'full' ); ?>
|
||||
<p class="caption"><?php //echo acf_esc_html( $image['caption'] );?></p>
|
||||
</li>
|
||||
<?php endwhile; //end while has rows ?>
|
||||
</ul>
|
||||
</section>
|
||||
<?php }; //end if xxp_associat_gallery_images ?>
|
||||
|
||||
<?php };//end has_post_thumbnail ?>
|
||||
|
||||
<?php endforeach;
|
||||
// Reset the global post object so that the rest of the page works correctly.
|
||||
wp_reset_postdata();
|
||||
endif;
|
||||
endif;
|
||||
?>
|
||||
</aside>
|
||||
|
||||
<section class="xarxaprod-convo-info-fields">
|
||||
<ul>
|
||||
<?php if( get_field('xxp_convo_espai_associat') ):
|
||||
// read here howto
|
||||
// https://www.advancedcustomfields.com/resources/relationship/#display-list-of-posts-with-setuppostdata
|
||||
// read here howto
|
||||
// https://www.advancedcustomfields.com/resources/relationship/#display-list-of-posts-with-setuppostdata
|
||||
$espai_associat_posts = get_field('xxp_convo_espai_associat');
|
||||
if( $espai_associat_posts ):
|
||||
foreach( $espai_associat_posts as $post ):
|
||||
|
|
|
@ -6,19 +6,63 @@
|
|||
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
|
||||
*
|
||||
* @package Xarxaprod_theme
|
||||
* @used_by page-template/convo-serach.php
|
||||
* @used_by page-template/convo-archive.php
|
||||
*
|
||||
*/
|
||||
?>
|
||||
|
||||
<article id="post-<?php the_ID(); ?>" <?php post_class('xarxaprod-card-each'); ?> >
|
||||
<h3 class="entry-title">
|
||||
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" rel="bookmark">
|
||||
<?php the_title(); ?>
|
||||
</a>
|
||||
</h3>
|
||||
<article id="post-<?php the_ID(); ?>" <?php post_class('xarxaprod-card-each'); ?> >
|
||||
<h3 class="entry-title">
|
||||
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" rel="bookmark">
|
||||
<?php the_title(); ?>
|
||||
</a>
|
||||
</h3>
|
||||
|
||||
|
||||
<section class="xarxaprod-convo-info-fields">
|
||||
<ul>
|
||||
<li class="xarxaprod-convo-info-date">
|
||||
<?php if( get_field('xxp_convo_apply_begin') || get_field('xxp_convo_apply_end') ): ?>
|
||||
<dt>Termini</dt>
|
||||
<dd class="xarxaprod-label item-xxp_convo_dates">
|
||||
<?php if( get_field('xxp_convo_apply_begin') ): ?>
|
||||
<span class="item-xxp_convo_apply_begin">del <?php the_field('xxp_convo_apply_begin'); ?> </span>
|
||||
<?php endif; ?>
|
||||
<?php if( get_field('xxp_convo_apply_end') && !get_field('xxp_convo_apply_begin') ){ echo 'fins'; } ?>
|
||||
<?php if( get_field('xxp_convo_apply_end') ): ?>
|
||||
<span class="item-xxp_convo_apply_end">al <?php the_field('xxp_convo_apply_end'); ?> </span>
|
||||
<?php endif; ?>
|
||||
<?php if( get_field('xxp_convo_apply_text') ): ?>
|
||||
<span class="item-xxp_convo_apply_text"><?php the_field('xxp_convo_apply_text'); ?></span>
|
||||
<?php endif; ?>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
</li>
|
||||
<?php if( ! get_field('xxp_convo_espai_associat') ): ?>
|
||||
<?php // read here howto ?>
|
||||
<?php // https://www.advancedcustomfields.com/resources/relationship/#display-list-of-posts-with-setuppostdata ?>
|
||||
<?php if( get_field('xxp_convoer_name') ): ?>
|
||||
<li class="xarxaprod-convo-field">
|
||||
<dt></dt>
|
||||
<dd class="xarxaprod-convoer-name"><?php the_field('xxp_convoer_name'); ?></dd>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
<?php else: //exists get_field('xxp_convo_espai_associat')?>
|
||||
<?php $espai_associat_posts = get_field('xxp_convo_espai_associat'); ?>
|
||||
<?php foreach( $espai_associat_posts as $thispost ): ?>
|
||||
<?php // Setup this post for WP functions (variable must be named $post).?>
|
||||
<li class="xarxaprod-convo-espai-associat">
|
||||
<dt></dt>
|
||||
<dd><a href="<?php echo ($thispost->guid);//the_permalink(); ?>"><?php echo ($thispost->post_title); ?><?php //the_title(); ?></a></dd>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
<?php // Reset the global post object so that the rest of the page works correctly.?>
|
||||
<?php endif; //end get_field('xxp_convo_espai_associat') ?>
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
|
||||
<?php if( get_field('xxp_convo_apply_end') ): ?>
|
||||
<h6 class="xarxaprod-convo-date"><?php the_field('xxp_convo_apply_end'); ?></h6>
|
||||
<?php endif; ?>
|
||||
|
||||
<section class="excerpt post-excerpt">
|
||||
<?php //the_excerpt() ?>
|
||||
|
@ -27,29 +71,24 @@
|
|||
</section>
|
||||
|
||||
<aside>
|
||||
<?php get_template_part(
|
||||
'template-parts/section',
|
||||
'list-checkbox',
|
||||
array('iterate_field' => 'xxp_convo_field')
|
||||
); ?>
|
||||
<?php get_template_part(
|
||||
'template-parts/section',
|
||||
'list-checkbox',
|
||||
array('iterate_field' => 'xxp_convo_field')
|
||||
); ?>
|
||||
|
||||
<?php get_template_part(
|
||||
'template-parts/section',
|
||||
'list-checkbox',
|
||||
array('iterate_field' => 'xxp_convo_territory')
|
||||
); ?>
|
||||
<?php get_template_part(
|
||||
'template-parts/section',
|
||||
'list-checkbox',
|
||||
array('iterate_field' => 'xxp_convo_territory')
|
||||
); ?>
|
||||
|
||||
<?php get_template_part(
|
||||
'template-parts/section',
|
||||
'list-checkbox',
|
||||
array('iterate_field' => 'xxp_convo_service')
|
||||
); ?>
|
||||
<?php get_template_part(
|
||||
'template-parts/section',
|
||||
'list-checkbox',
|
||||
array('iterate_field' => 'xxp_convo_service')
|
||||
); ?>
|
||||
|
||||
<?php get_template_part(
|
||||
'template-parts/section',
|
||||
'list-checkbox',
|
||||
array('iterate_field' => 'xxp_convo_center')
|
||||
); ?>
|
||||
</aside>
|
||||
|
||||
<nav class="more-link">
|
||||
|
|
|
@ -88,18 +88,50 @@
|
|||
</a>
|
||||
</header><!-- .entry-header -->
|
||||
|
||||
<?php if( get_field('xxp_convo_apply_begin') || get_field('xxp_convo_apply_end') ): ?>
|
||||
|
||||
<h6 class="xarxaprod-deadline">Deadline:
|
||||
<?php //the_field('xxp_convo_apply_begin'); ?>
|
||||
<?php the_field('xxp_convo_apply_end'); ?>
|
||||
</h6>
|
||||
<?php endif; ?>
|
||||
<section class="xarxaprod-convo-info-fields">
|
||||
<ul>
|
||||
<li class="xarxaprod-convo-info-date">
|
||||
<?php if( get_field('xxp_convo_apply_begin') || get_field('xxp_convo_apply_end') ): ?>
|
||||
<dt>Termini</dt>
|
||||
<dd class="xarxaprod-label item-xxp_convo_dates">
|
||||
<?php if( get_field('xxp_convo_apply_begin') ): ?>
|
||||
<span class="item-xxp_convo_apply_begin">del <?php the_field('xxp_convo_apply_begin'); ?> </span>
|
||||
<?php endif; ?>
|
||||
<?php if( get_field('xxp_convo_apply_end') && !get_field('xxp_convo_apply_begin') ){ echo 'fins'; } ?>
|
||||
<?php if( get_field('xxp_convo_apply_end') ): ?>
|
||||
<span class="item-xxp_convo_apply_end">al <?php the_field('xxp_convo_apply_end'); ?> </span>
|
||||
<?php endif; ?>
|
||||
<?php if( get_field('xxp_convo_apply_text') ): ?>
|
||||
<span class="item-xxp_convo_apply_text"><?php the_field('xxp_convo_apply_text'); ?></span>
|
||||
<?php endif; ?>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
</li>
|
||||
<?php if( ! get_field('xxp_convo_espai_associat') ): ?>
|
||||
<?php // read here howto ?>
|
||||
<?php // https://www.advancedcustomfields.com/resources/relationship/#display-list-of-posts-with-setuppostdata ?>
|
||||
<?php if( get_field('xxp_convoer_name') ): ?>
|
||||
<li class="xarxaprod-convo-field">
|
||||
<dt></dt>
|
||||
<dd class="xarxaprod-convoer-name"><?php the_field('xxp_convoer_name'); ?></dd>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
<?php else: //exists get_field('xxp_convo_espai_associat')?>
|
||||
<?php $espai_associat_posts = get_field('xxp_convo_espai_associat'); ?>
|
||||
<?php foreach( $espai_associat_posts as $thispost ): ?>
|
||||
<?php // Setup this post for WP functions (variable must be named $post).?>
|
||||
<li class="xarxaprod-convo-espai-associat">
|
||||
<dt></dt>
|
||||
<dd><a href="<?php echo ($thispost->guid);//the_permalink(); ?>"><?php echo ($thispost->post_title); ?><?php //the_title(); ?></a></dd>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
<?php // Reset the global post object so that the rest of the page works correctly.?>
|
||||
<?php endif; //end get_field('xxp_convo_espai_associat') ?>
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
|
||||
<?php if( get_field('xxp_convo_apply_text') ): ?>
|
||||
<h6 class="item-xxp_convo_apply_text"><?php the_field('xxp_convo_apply_text'); ?></h6>
|
||||
<?php endif; ?>
|
||||
|
||||
<section class="excerpt post-excerpt">
|
||||
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" rel="bookmark" class="">
|
||||
<?php echo wp_trim_words(get_the_excerpt(), 16); // https://developer.wordpress.org/reference/functions/wp_trim_words/?>
|
||||
|
|
Loading…
Reference in New Issue