Compare commits

..

No commits in common. "b612a464f16a4ccfeb19d104faa8d2e7ca131c83" and "29849849ef034ea66216450e40d4474bc7c876af" have entirely different histories.

16 changed files with 231 additions and 415 deletions

View File

@ -974,34 +974,37 @@ Add your custom styles in this file so it is easier to update the theme.
padding: 0; padding: 0;
} }
@media screen { .edit-post-visual-editor__content-area .editor-styles-wrapper .home .xarxaprod-label,
.edit-post-visual-editor__content-area .editor-styles-wrapper article:not(.type-post) .xarxaprod-label {
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-label {
margin: 0; margin: 0;
padding: 0; padding: 0;
display: inline; display: inline;
} }
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-label li { .edit-post-visual-editor__content-area .editor-styles-wrapper .home .xarxaprod-label li,
.edit-post-visual-editor__content-area .editor-styles-wrapper article:not(.type-post) .xarxaprod-label li {
display: inline-block; display: inline-block;
margin: 0.1em 0; margin: 0.1em 0;
padding: 0.2em 0.2em 0 0.2em; padding: 0.2em 0.2em 0 0.2em;
color: #000; color: #000;
border: 1px solid #000; border: 1px solid #000;
background-color: none; background-color: none;
font-size: 0.8rem; font-size: 0.7rem;
} }
.edit-post-visual-editor__content-area .editor-styles-wrapper .item-xxp_fund_call { .edit-post-visual-editor__content-area .editor-styles-wrapper .home .item-xxp_fund_call,
.edit-post-visual-editor__content-area .editor-styles-wrapper article:not(.type-post) .item-xxp_fund_call {
display: block; display: block;
margin: 0.2rem 0; margin: 0.2rem 0;
} }
.edit-post-visual-editor__content-area .editor-styles-wrapper .item-xxp_fund_call li { .edit-post-visual-editor__content-area .editor-styles-wrapper .home .item-xxp_fund_call li,
.edit-post-visual-editor__content-area .editor-styles-wrapper article:not(.type-post) .item-xxp_fund_call li {
font-size: 1.2rem; font-size: 1.2rem;
} }
.edit-post-visual-editor__content-area .editor-styles-wrapper .item-xxp_fund_apply_text { .edit-post-visual-editor__content-area .editor-styles-wrapper .home .item-xxp_fund_apply_text,
.edit-post-visual-editor__content-area .editor-styles-wrapper article:not(.type-post) .item-xxp_fund_apply_text {
display: inline-block; display: inline-block;
margin: 0.1em 0; margin: 0.1em 0;
padding: 0.2em 0.2em 0 0.2em; padding: 0.2em 0.2em 0 0.2em;
@ -1040,7 +1043,6 @@ 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-ajut article:not(.type-post) .item-xxp_fund_apply_text { .edit-post-visual-editor__content-area .editor-styles-wrapper .single-xarxaprod-ajut article:not(.type-post) .item-xxp_fund_apply_text {
font-size: 1.1rem; font-size: 1.1rem;
} }
}
.edit-post-visual-editor__content-area .editor-styles-wrapper embed, .edit-post-visual-editor__content-area .editor-styles-wrapper embed,
.edit-post-visual-editor__content-area .editor-styles-wrapper iframe, .edit-post-visual-editor__content-area .editor-styles-wrapper iframe,
@ -1268,6 +1270,7 @@ Add your custom styles in this file so it is easier to update the theme.
grid-template-areas: "main" "secondary "; grid-template-areas: "main" "secondary ";
grid-row: auto; grid-row: auto;
align-items: center; align-items: center;
margin-bottom: 2rem;
padding: 0.5rem 0; padding: 0.5rem 0;
width: 100vw; width: 100vw;
background-color: transparent; background-color: transparent;
@ -1292,7 +1295,7 @@ Add your custom styles in this file so it is easier to update the theme.
} }
.edit-post-visual-editor__content-area .editor-styles-wrapper .site-main > section { .edit-post-visual-editor__content-area .editor-styles-wrapper .site-main > section {
padding: 0; padding: 4em 0;
} }
.edit-post-visual-editor__content-area .editor-styles-wrapper .site-main > section > header { .edit-post-visual-editor__content-area .editor-styles-wrapper .site-main > section > header {
@ -1308,7 +1311,7 @@ Add your custom styles in this file so it is easier to update the theme.
} }
.edit-post-visual-editor__content-area .editor-styles-wrapper .site-footer :where(.wp-block-columns.is-layout-flex) { .edit-post-visual-editor__content-area .editor-styles-wrapper .site-footer :where(.wp-block-columns.is-layout-flex) {
gap: 5rem; gap: 8em;
} }
.edit-post-visual-editor__content-area .editor-styles-wrapper .site-footer .site-info > section { .edit-post-visual-editor__content-area .editor-styles-wrapper .site-footer .site-info > section {
@ -1422,7 +1425,6 @@ Add your custom styles in this file so it is easier to update the theme.
grid-template-columns: 1fr 2fr 2fr 1fr; grid-template-columns: 1fr 2fr 2fr 1fr;
grid-template-areas: "main " "secondary "; grid-template-areas: "main " "secondary ";
margin: auto; margin: auto;
margin-bottom: 2rem;
padding: 0; padding: 0;
} }
@ -1441,10 +1443,6 @@ Add your custom styles in this file so it is easier to update the theme.
padding: 0 2rem; padding: 0 2rem;
} }
.edit-post-visual-editor__content-area .editor-styles-wrapper .site-main > section {
padding: 4em 0;
}
.edit-post-visual-editor__content-area .editor-styles-wrapper .site-footer { .edit-post-visual-editor__content-area .editor-styles-wrapper .site-footer {
flex-flow: column; flex-flow: column;
} }
@ -1454,6 +1452,7 @@ 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 .site-main { .edit-post-visual-editor__content-area .editor-styles-wrapper.single .site-main {
width: 45rem;
margin: 0 auto; margin: 0 auto;
} }
@ -1859,10 +1858,6 @@ Add your custom styles in this file so it is easier to update the theme.
* ./template-parts/content-xarxaprod-ajut.php * ./template-parts/content-xarxaprod-ajut.php
* ./template-parts/content-xarxaprod-convo.php * ./template-parts/content-xarxaprod-convo.php
* ./template-parts/section-eachpost.php * ./template-parts/section-eachpost.php
* */
/* used in
* ./template-parts/content-xarxaprod-associat.php
* */ * */
/* /*
@ -2042,7 +2037,7 @@ Add your custom styles in this file so it is easier to update the theme.
grid-template-columns: 0.75fr 2.25fr; grid-template-columns: 0.75fr 2.25fr;
padding: 0.2em 0; padding: 0.2em 0;
border-top: 0.05em solid #000; border-top: 0.05em solid #000;
font-size: 1em; font-size: 1.5em;
} }
.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-convo-info-fields li:last-of-type,
@ -2086,39 +2081,6 @@ Add your custom styles in this file so it is easier to update the theme.
margin: 0; margin: 0;
} }
.edit-post-visual-editor__content-area .editor-styles-wrapper .single-xarxaprod-associat .xarxaprod-associat > section {
margin-top: 4em;
}
.edit-post-visual-editor__content-area .editor-styles-wrapper .single-xarxaprod-associat .xarxaprod-associat .xarxaprod-associat-info {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
gap: 2rem;
}
.edit-post-visual-editor__content-area .editor-styles-wrapper .single-xarxaprod-associat .xarxaprod-associat .xarxaprod-associat-info .xarxaprod-associat-contact li,
.edit-post-visual-editor__content-area .editor-styles-wrapper .single-xarxaprod-associat .xarxaprod-associat .xarxaprod-associat-info .xarxaprod-associat-services li {
display: grid;
font-size: 1em;
border: none;
border-top: 0.05em solid #000;
margin: 0;
padding: 0.5em 0;
}
.edit-post-visual-editor__content-area .editor-styles-wrapper .single-xarxaprod-associat .xarxaprod-associat .xarxaprod-associat-info .xarxaprod-associat-contact h6,
.edit-post-visual-editor__content-area .editor-styles-wrapper .single-xarxaprod-associat .xarxaprod-associat .xarxaprod-associat-info .xarxaprod-associat-contact p,
.edit-post-visual-editor__content-area .editor-styles-wrapper .single-xarxaprod-associat .xarxaprod-associat .xarxaprod-associat-info .xarxaprod-associat-services h6,
.edit-post-visual-editor__content-area .editor-styles-wrapper .single-xarxaprod-associat .xarxaprod-associat .xarxaprod-associat-info .xarxaprod-associat-services p {
font-size: 1em;
margin: 0;
padding: 0;
}
.edit-post-visual-editor__content-area .editor-styles-wrapper .single-xarxaprod-associat .xarxaprod-associat .xarxaprod-associat-info .xarxaprod-associat-contact li {
grid-template-columns: 1fr 2fr;
}
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-cards, .edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-cards,
.edit-post-visual-editor__content-area .editor-styles-wrapper .category-convocatories, .edit-post-visual-editor__content-area .editor-styles-wrapper .category-convocatories,
.edit-post-visual-editor__content-area .editor-styles-wrapper .category-activitats, .edit-post-visual-editor__content-area .editor-styles-wrapper .category-activitats,
@ -2314,11 +2276,6 @@ Add your custom styles in this file so it is easier to update the theme.
grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-columns: repeat(2, minmax(0, 1fr));
} }
.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 {
font-size: 1.5em;
}
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-agenda .xarxaprod-card-each { .edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-agenda .xarxaprod-card-each {
flex-direction: row-reverse; flex-direction: row-reverse;
} }
@ -2405,7 +2362,7 @@ Add your custom styles in this file so it is easier to update the theme.
.edit-post-visual-editor__content-area .editor-styles-wrapper .gallery { .edit-post-visual-editor__content-area .editor-styles-wrapper .gallery {
margin-bottom: 1.5em; margin-bottom: 1.5em;
display: grid; display: grid;
grid-gap: 1rem; grid-gap: 1.5em;
} }
.edit-post-visual-editor__content-area .editor-styles-wrapper .gallery-item { .edit-post-visual-editor__content-area .editor-styles-wrapper .gallery-item {
@ -2593,7 +2550,7 @@ Add your custom styles in this file so it is easier to update the theme.
.edit-post-visual-editor__content-area .editor-styles-wrapper .contactform-fund-info { .edit-post-visual-editor__content-area .editor-styles-wrapper .contactform-fund-info {
display: inline-block; display: inline-block;
column-count: 2; column-count: 2;
column-gap: 1rem; column-gap: 2em;
width: 100%; width: 100%;
} }

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -185,11 +185,6 @@ if ( defined( 'JETPACK__VERSION' ) ) {
*/ */
require get_template_directory() . '/inc/login-functions.php'; require get_template_directory() . '/inc/login-functions.php';
/**
* Functions to modify user role capabilities
*/
require get_template_directory() . '/inc/user-role-capabilities-mod.php';
/** /**
* Functions to personalize the_archive_title() function * Functions to personalize the_archive_title() function
*/ */

View File

@ -32,6 +32,9 @@ get_header();
//get_template_part( 'template-parts/section', 'featured' ); //get_template_part( 'template-parts/section', 'featured' );
get_template_part( 'template-parts/section', 'last-convos' ); get_template_part( 'template-parts/section', 'last-convos' );
get_template_part( 'template-parts/section', 'agenda' ); get_template_part( 'template-parts/section', 'agenda' );
//echo '<aside id="extra" class="extra-content contingut-extra">';
// dynamic_sidebar( 'front-page-widgets' ); // including widget front page
//echo '</aside>';
endif; endif;
?> ?>
@ -39,6 +42,9 @@ get_header();
</main><!-- #main --> </main><!-- #main -->
<?php <?php
if ( is_front_page() ) : if ( is_front_page() ) :
//get_template_part( 'template-parts/section', 'featured' );
//get_template_part( 'template-parts/section', 'last-convos' );
//get_template_part( 'template-parts/section', 'agenda' );
echo '<aside id="extra" class="extra-content contingut-extra">'; echo '<aside id="extra" class="extra-content contingut-extra">';
dynamic_sidebar( 'front-page-widgets' ); // including widget front page dynamic_sidebar( 'front-page-widgets' ); // including widget front page
echo '</aside>'; echo '</aside>';

View File

@ -26,7 +26,8 @@ dd {
margin: 0 0 0.5em 0.5em; margin: 0 0 0.5em 0.5em;
padding: 0; padding: 0;
} }
@media screen {
.home,article:not(.type-post){
.xarxaprod-label { .xarxaprod-label {
margin: 0; margin: 0;
padding: 0; padding: 0;
@ -38,7 +39,7 @@ dd {
color: $color__text-screen; color: $color__text-screen;
border: 1px solid $color__black; border: 1px solid $color__black;
background-color: none; background-color: none;
font-size: $font__size-body*0.8; font-size: $font__size-body*0.7;
} }
} }
.item-xxp_fund_call { .item-xxp_fund_call {
@ -55,7 +56,7 @@ dd {
font-size: $font__size-body*0.7; font-size: $font__size-body*0.7;
text-transform: uppercase; text-transform: uppercase;
} }
}
.xarxaprod-faqs-types { .xarxaprod-faqs-types {
ul { ul {
margin: 0; margin: 0;
@ -89,4 +90,3 @@ dd {
} }
} }
} }
}

View File

@ -154,7 +154,7 @@
grid-template-columns: 0.75fr 2.25fr; grid-template-columns: 0.75fr 2.25fr;
padding: 0.2em 0; padding: 0.2em 0;
border-top: 0.05em solid $color__black; border-top: 0.05em solid $color__black;
font-size: 1em; font-size: 1.5em;
&:last-of-type{ &:last-of-type{
border-bottom: 0.05em solid $color__black; border-bottom: 0.05em solid $color__black;
} }
@ -187,53 +187,6 @@
} }
} }
/* used in
* ./template-parts/content-xarxaprod-associat.php
* */
.single-xarxaprod-associat {
.xarxaprod-associat {
> section {
margin-top: 4em;
}
.xarxaprod-associat-info {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
gap: $grid__gap * 2;
.xarxaprod-associat-contact,
.xarxaprod-associat-services {
li {
display: grid;
font-size: 1em;
border: none;
border-top: $border__line;
margin: 0;
padding: 0.5em 0;
}
h6,p {
font-size: 1em;
margin: 0;
padding: 0;
}
}
.xarxaprod-associat-contact li {
grid-template-columns: 1fr 2fr;
}
.xarxaprod-associat-services li {
}
.xarxaprod-associat-logo {
}
}
.xarxaprod-associat-convos {
}
.xarxaprod-associat-location {
.xarxaprod-associat-osm-link {
}
.xarxaprod-associat-osm-map {
}
}
}
}
/* /*
* categories: * categories:
* *
@ -416,13 +369,6 @@
.archive-posts { .archive-posts {
grid-template-columns: repeat(2 , minmax(0,1fr)); grid-template-columns: repeat(2 , minmax(0,1fr));
} }
.xarxaprod-convo-info-fields,
.xarxaprod-agenda-info {
li {
font-size: 1.5em;
}
}
.xarxaprod-agenda { .xarxaprod-agenda {
.xarxaprod-card-each { .xarxaprod-card-each {
flex-direction: row-reverse; flex-direction: row-reverse;

View File

@ -1,7 +1,7 @@
.gallery { .gallery {
margin-bottom: 1.5em; margin-bottom: 1.5em;
display: grid; display: grid;
grid-gap: $grid__gap; grid-gap: 1.5em;
} }
.gallery-item { .gallery-item {

View File

@ -42,6 +42,7 @@
"secondary "; "secondary ";
grid-row: auto; grid-row: auto;
align-items: center; align-items: center;
margin-bottom: 2rem;
padding: 0.5rem 0; padding: 0.5rem 0;
width: 100vw; width: 100vw;
background-color: transparent; background-color: transparent;
@ -62,7 +63,7 @@
.site-main { .site-main {
padding: 0 1rem; padding: 0 1rem;
> section { > section {
padding: 0; padding: 4em 0;
> header { > header {
padding: 2em 0; padding: 2em 0;
} }
@ -75,7 +76,7 @@
color: $color__white; color: $color__white;
margin-top: 4em; margin-top: 4em;
:where(.wp-block-columns.is-layout-flex) { :where(.wp-block-columns.is-layout-flex) {
gap: $grid__gap * 5; //8em; gap: 8em;
} }
.wp-block-column:last-of-type { .wp-block-column:last-of-type {
//padding-left: 4em; //padding-left: 4em;
@ -184,7 +185,6 @@
"main " "main "
"secondary "; "secondary ";
margin: auto; margin: auto;
margin-bottom: 2rem;
padding: 0; padding: 0;
.main { .main {
@ -199,9 +199,6 @@
} }
.site-main { .site-main {
padding: 0 2rem; padding: 0 2rem;
> section {
padding: 4em 0;
}
} }
.site-footer { .site-footer {
flex-flow: column; flex-flow: column;
@ -211,7 +208,7 @@
} }
&.single { &.single {
.site-main { .site-main {
//width: 45rem; width: 45rem;
margin: 0 auto; margin: 0 auto;
} }
} }

View File

@ -82,7 +82,7 @@
.contactform-fund-info { .contactform-fund-info {
display: inline-block; display: inline-block;
column-count: 2; column-count: 2;
column-gap: $grid__gap; column-gap: 2em;
width: 100%; width: 100%;
.contactform-descripcio textarea { .contactform-descripcio textarea {
display: inline-block; display: inline-block;

View File

@ -828,34 +828,37 @@ dd {
padding: 0; padding: 0;
} }
@media screen { .home .xarxaprod-label,
article:not(.type-post) .xarxaprod-label {
.xarxaprod-label {
margin: 0; margin: 0;
padding: 0; padding: 0;
display: inline; display: inline;
} }
.xarxaprod-label li { .home .xarxaprod-label li,
article:not(.type-post) .xarxaprod-label li {
display: inline-block; display: inline-block;
margin: 0.1em 0; margin: 0.1em 0;
padding: 0.2em 0.2em 0 0.2em; padding: 0.2em 0.2em 0 0.2em;
color: #000; color: #000;
border: 1px solid #000; border: 1px solid #000;
background-color: none; background-color: none;
font-size: 0.8rem; font-size: 0.7rem;
} }
.item-xxp_fund_call { .home .item-xxp_fund_call,
article:not(.type-post) .item-xxp_fund_call {
display: block; display: block;
margin: 0.2rem 0; margin: 0.2rem 0;
} }
.item-xxp_fund_call li { .home .item-xxp_fund_call li,
article:not(.type-post) .item-xxp_fund_call li {
font-size: 1.2rem; font-size: 1.2rem;
} }
.item-xxp_fund_apply_text { .home .item-xxp_fund_apply_text,
article:not(.type-post) .item-xxp_fund_apply_text {
display: inline-block; display: inline-block;
margin: 0.1em 0; margin: 0.1em 0;
padding: 0.2em 0.2em 0 0.2em; padding: 0.2em 0.2em 0 0.2em;
@ -894,7 +897,6 @@ dd {
.single-xarxaprod-ajut article:not(.type-post) .item-xxp_fund_apply_text { .single-xarxaprod-ajut article:not(.type-post) .item-xxp_fund_apply_text {
font-size: 1.1rem; font-size: 1.1rem;
} }
}
/* Make sure embeds and iframes fit their containers. */ /* Make sure embeds and iframes fit their containers. */
embed, embed,
@ -1130,6 +1132,7 @@ textarea {
grid-template-areas: "main" "secondary "; grid-template-areas: "main" "secondary ";
grid-row: auto; grid-row: auto;
align-items: center; align-items: center;
margin-bottom: 2rem;
padding: 0.5rem 0; padding: 0.5rem 0;
width: 100vw; width: 100vw;
background-color: transparent; background-color: transparent;
@ -1154,7 +1157,7 @@ textarea {
} }
.site-main > section { .site-main > section {
padding: 0; padding: 4em 0;
} }
.site-main > section > header { .site-main > section > header {
@ -1170,7 +1173,7 @@ textarea {
} }
.site-footer :where(.wp-block-columns.is-layout-flex) { .site-footer :where(.wp-block-columns.is-layout-flex) {
gap: 5rem; gap: 8em;
} }
.site-footer .site-info > section { .site-footer .site-info > section {
@ -1284,7 +1287,6 @@ textarea {
grid-template-columns: 1fr 2fr 2fr 1fr; grid-template-columns: 1fr 2fr 2fr 1fr;
grid-template-areas: "main " "secondary "; grid-template-areas: "main " "secondary ";
margin: auto; margin: auto;
margin-bottom: 2rem;
padding: 0; padding: 0;
} }
@ -1303,10 +1305,6 @@ textarea {
padding: 0 2rem; padding: 0 2rem;
} }
.site-main > section {
padding: 4em 0;
}
.site-footer { .site-footer {
flex-flow: column; flex-flow: column;
} }
@ -1316,6 +1314,7 @@ textarea {
} }
.single .site-main { .single .site-main {
width: 45rem;
margin: 0 auto; margin: 0 auto;
} }
@ -1878,7 +1877,7 @@ textarea {
grid-template-columns: 0.75fr 2.25fr; grid-template-columns: 0.75fr 2.25fr;
padding: 0.2em 0; padding: 0.2em 0;
border-top: 0.05em solid #000; border-top: 0.05em solid #000;
font-size: 1em; font-size: 1.5em;
} }
.xarxaprod-convo-info-fields li:last-of-type, .xarxaprod-convo-info-fields li:last-of-type,
@ -1922,42 +1921,6 @@ textarea {
margin: 0; margin: 0;
} }
/* used in
* ./template-parts/content-xarxaprod-associat.php
* */
.single-xarxaprod-associat .xarxaprod-associat > section {
margin-top: 4em;
}
.single-xarxaprod-associat .xarxaprod-associat .xarxaprod-associat-info {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
gap: 2rem;
}
.single-xarxaprod-associat .xarxaprod-associat .xarxaprod-associat-info .xarxaprod-associat-contact li,
.single-xarxaprod-associat .xarxaprod-associat .xarxaprod-associat-info .xarxaprod-associat-services li {
display: grid;
font-size: 1em;
border: none;
border-top: 0.05em solid #000;
margin: 0;
padding: 0.5em 0;
}
.single-xarxaprod-associat .xarxaprod-associat .xarxaprod-associat-info .xarxaprod-associat-contact h6,
.single-xarxaprod-associat .xarxaprod-associat .xarxaprod-associat-info .xarxaprod-associat-contact p,
.single-xarxaprod-associat .xarxaprod-associat .xarxaprod-associat-info .xarxaprod-associat-services h6,
.single-xarxaprod-associat .xarxaprod-associat .xarxaprod-associat-info .xarxaprod-associat-services p {
font-size: 1em;
margin: 0;
padding: 0;
}
.single-xarxaprod-associat .xarxaprod-associat .xarxaprod-associat-info .xarxaprod-associat-contact li {
grid-template-columns: 1fr 2fr;
}
/* /*
* categories: * categories:
* *
@ -2165,11 +2128,6 @@ textarea {
grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-columns: repeat(2, minmax(0, 1fr));
} }
.xarxaprod-convo-info-fields li,
.xarxaprod-agenda-info li {
font-size: 1.5em;
}
.xarxaprod-agenda .xarxaprod-card-each { .xarxaprod-agenda .xarxaprod-card-each {
flex-direction: row-reverse; flex-direction: row-reverse;
} }
@ -2267,7 +2225,7 @@ textarea {
.gallery { .gallery {
margin-bottom: 1.5em; margin-bottom: 1.5em;
display: grid; display: grid;
grid-gap: 1rem; grid-gap: 1.5em;
} }
.gallery-item { .gallery-item {
@ -2473,7 +2431,7 @@ textarea {
.contactform-fund-info { .contactform-fund-info {
display: inline-block; display: inline-block;
column-count: 2; column-count: 2;
column-gap: 1rem; column-gap: 2em;
width: 100%; width: 100%;
} }

File diff suppressed because one or more lines are too long

View File

@ -15,7 +15,7 @@
<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?> <?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
</header><!-- .entry-header --> </header><!-- .entry-header -->
<?php endif; ?> <?php endif; ?>
<?php //xarxaprod_post_thumbnail(); ?> <?php xarxaprod_post_thumbnail(); ?>
<div class="entry-content"> <div class="entry-content">
<?php <?php

View File

@ -1,6 +1,6 @@
<?php <?php
/** /**
* Template part for displaying associat post type * Template part for displaying posts
* *
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/ * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
* *
@ -41,67 +41,55 @@
); );
?> ?>
</main><!-- .entry-content --> </main><!-- .entry-content -->
<section class="xarxaprod-associat-info">
<section class="xarxaprod-associat-contact"> <section class="xarxaprod-associat-info-contact-fields">
<dt>&nbsp;</dt>
<ul class="xarxaprod-associat-contact-fields">
<?php if( get_field('xxp_associat_address') ): ?> <?php if( get_field('xxp_associat_address') ): ?>
<li class="xarxaprod-associat-address"> <div class="xarxaprod-associat-info-field">
<h6>adreça / direccion:</h6> <h6>adreça / direccion:</h6>
<p><?php the_field('xxp_associat_address'); ?></p> <p class="xarxaprod-associat-address"><?php the_field('xxp_associat_address'); ?></p>
</li> </div>
<?php endif; ?> <?php endif; ?>
<?php if( get_field('xxp_associat_mail') ): ?> <?php if( get_field('xxp_associat_mail') ): ?>
<li class="xarxaprod-associat-mail"> <div class="xarxaprod-associat-info-field">
<h6>mail:</h6> <h6>mail:</h6>
<p><a href="mailto:<?php the_field('xxp_associat_mail'); ?>"><?php the_field('xxp_associat_mail'); ?></a></p> <p class="xarxaprod-associat-mail"><a href="mailto:<?php the_field('xxp_associat_mail'); ?>"><?php the_field('xxp_associat_mail'); ?></a></p>
</li> </div>
<?php endif; ?> <?php endif; ?>
<?php if( get_field('xxp_associat_web') ): ?> <?php if( get_field('xxp_associat_web') ): ?>
<li class="xarxaprod-associat-web"> <div class="xarxaprod-associat-info-field">
<h6>web:</h6> <h6>web:</h6>
<p><a href="<?php the_field('xxp_associat_web'); ?>" class=""><?php the_field('xxp_associat_web') ;?></a></p> <p><a href="<?php the_field('xxp_associat_web'); ?>" class=""><?php the_field('xxp_associat_web') ;?></a></p>
</li> </div>
<?php endif; ?> <?php endif; ?>
<?php if( get_field('xxp_associat_tel') ): ?> <?php if( get_field('xxp_associat_tel') ): ?>
<li class="xarxaprod-associat-tel"> <div class="xarxaprod-associat-info-field">
<h6>tel:</h6> <h6>tel:</h6>
<p><?php the_field('xxp_associat_tel'); ?></p> <p class="xarxaprod-associat-tel"><?php the_field('xxp_associat_tel'); ?></p>
</li> </div>
<?php endif; ?> <?php endif; ?>
</ul>
</section> </section>
<section class="xarxaprod-associat-services"> <section class="xarxaprod-associat-info-fields">
<dt>Serveis</dt>
<div class="xarxaprod-associat-info-field">
<h6>Serveis</h6>
<?php get_template_part( 'template-parts/section', 'list-checkbox', array('iterate_field' => 'xxp_associat_service') ); ?> <?php get_template_part( 'template-parts/section', 'list-checkbox', array('iterate_field' => 'xxp_associat_service') ); ?>
</div>
</section> </section>
<section class="xarxaprod-associat-logo"> <section class="xarxaprod-associat-logo-fields">
<?php if( get_field('xxp_associat_logo') ): ?> <?php if( get_field('xxp_associat_logo') ): ?>
<figure class="xarxaprod-associat-logo"> <figure class="xarxaprod-associat-logo-field">
<img class="" src="<?php the_field('xxp_associat_logo'); ?>" /> <img class="xarxaprod-associat-logo" src="<?php the_field('xxp_associat_logo'); ?>" />
</figure> </figure>
<?php endif; ?> <?php endif; ?>
</section> </section>
</section>
<section class="xarxaprod-associat-convos">
<?php
// https://www.advancedcustomfields.com/resources/bidirectional-relationships/
// https://www.advancedcustomfields.com/resources/relationship/
;?>
<?php get_template_part( 'template-parts/section', 'last-convos' ); ?>
</section>
<section class="xarxaprod-associat-location"> <section class="xarxaprod-associat-location">
<?php if( get_field('xxp_associat_osm_link') ): ?> <?php if( get_field('xxp_associat_osm_link') ): ?>
<div class="xarxaprod-associat-osm-link"> <div class="xarxaprod-associat-osm-link">
@ -110,11 +98,18 @@
<?php endif; ?> <?php endif; ?>
<?php if( get_field('xxp_associat_osm_map') ): ?> <?php if( get_field('xxp_associat_osm_map') ): ?>
<div class="xarxaprod-associat-osm-map"> <div class="xarxaprod-associat-osm-link">
<h6 class="">Mapa:</h6> <h6 class="">Mapa:</h6>
<figure><?php the_field('xxp_associat_osm_map'); ?></figure> <figure><?php the_field('xxp_associat_osm_map'); ?></figure>
</div> </div>
<?php endif; ?> <?php endif; ?>
</section>
<section class="xarxaprod-associat-convos">
<a href="https://www.advancedcustomfields.com/resources/bidirectional-relationships/">https://www.advancedcustomfields.com/resources/bidirectional-relationships/</a>
<a href="https://www.advancedcustomfields.com/resources/relationship/">https://www.advancedcustomfields.com/resources/relationship/</a>
<?php get_template_part( 'template-parts/section', 'last-convos' ); ?>
</section> </section>
<footer class="entry-footer"> <footer class="entry-footer">

View File

@ -64,8 +64,7 @@
al al
<span class="item-xxp_convo_apply_end">al <?php the_field('xxp_convo_apply_end'); ?> </span> <span class="item-xxp_convo_apply_end">al <?php the_field('xxp_convo_apply_end'); ?> </span>
<?php if( get_field('xxp_convo_apply_text') ): ?> <?php if( get_field('xxp_convo_apply_text') ): ?>
<br /> <p class="item-xxp_convo_apply_text"><?php the_field('xxp_convo_apply_text'); ?></p>
<span class="item-xxp_convo_apply_text"><?php the_field('xxp_convo_apply_text'); ?></span>
<?php endif; ?> <?php endif; ?>
</dd> </dd>
<?php endif; ?> <?php endif; ?>

View File

@ -18,42 +18,6 @@
//plugin is activated do //plugin is activated do
?> ?>
<header> <header>
<?php if ( get_post_type( ) == 'xarxaprod-associat' ){ ?>
<?php $slug_espai_associat =get_post_field( 'post_name', get_post() ) ; ?>
<?php
if( get_field('xxp_convo_espai_associat') ):
$espai_associat_posts = get_field('xxp_convo_espai_associat');
if( $espai_associat_posts ):
foreach( $espai_associat_posts as $post ):
setup_postdata($post);
//do somethin
the_title( '<h3> convos de'.'</h3>');
endforeach;
wp_reset_postdata();
endif;
endif;
?>
<h3> <a href="<?php echo home_url( '/convos/?xxp_convo_center=' ) . $slug_espai_associat ;?>"><?php echo esc_html__('Últimes convocatòries', 'xarxaprod'); ?> de <?php the_title(); ?></a></h3>
</header>
<main class="xarxaprod-last-convos xarxaprod-ultimes-convocatories">
<?php
// https://developer.wordpress.org/reference/functions/get_posts/
// https://www.advancedcustomfields.com/resources/true-false/
$convos_query = new WP_Query(
array(
'post_type' => array( 'xarxaprod-convo' ),
'posts_per_page' => '3',
//'meta_key' => 'xxp_convo_center',
'meta_key' => 'xxp_convo_espai_associat',
'meta_value' => $slug_espai_associat,
//'meta_query' => array (
// 'key' => 'xxp_convo_center',
// 'value' => $slug,
// 'compare' => '=',
//)
) );
?>
<?php } else { ?>
<h2> <a href="<?php echo site_url() . '/convocatories' ;?>"><?php echo esc_html__('Últimes convocatòries', 'xarxaprod'); ?></a></h2> <h2> <a href="<?php echo site_url() . '/convocatories' ;?>"><?php echo esc_html__('Últimes convocatòries', 'xarxaprod'); ?></a></h2>
</header> </header>
<main class="xarxaprod-last-convos xarxaprod-ultimes-convocatories"> <main class="xarxaprod-last-convos xarxaprod-ultimes-convocatories">
@ -67,7 +31,6 @@
'posts_per_page' => '3' 'posts_per_page' => '3'
) ); ) );
?> ?>
<?php };?>
<?php if ( $convos_query->have_posts() ) : ?> <?php if ( $convos_query->have_posts() ) : ?>
<?php while ( $convos_query->have_posts() ) : $convos_query->the_post(); ?> <?php while ( $convos_query->have_posts() ) : $convos_query->the_post(); ?>