Compare commits

..

23 Commits

Author SHA1 Message Date
jorge 5d18708030 applied changes in heading lines, aligments and heading space and intro text 2024-04-03 15:32:35 +02:00
jorge 077bbebf99 created new data fields in convo and styles 2024-04-03 15:07:53 +02:00
jorge 4c0d0df31e changed name in template gui view 2024-04-03 12:19:36 +02:00
jorge 8e2d0c0603 changed scss for agenda, rec and activities categories 2024-04-03 11:27:43 +02:00
jorge 5a70fc6d09 removed styles for activitat agenda if query from wordpress loop 2024-04-03 11:05:50 +02:00
jorge 021860fefc added more post to agenda view 2024-04-03 03:39:33 +02:00
jorge 5a508ec76a added more post to agenda view 2024-04-03 03:38:09 +02:00
jorge ca2cb8419b add agenda page template, archive view and styles 2024-04-03 03:21:48 +02:00
jorge fa52f880d6 changed name for better understanding 2024-04-02 23:30:30 +02:00
jorge 4bf20447f3 added documentation 2024-04-02 21:50:31 +02:00
jorge 327308950e edited faq categroy id so now is shown 2024-04-02 21:33:40 +02:00
jorge d07eb65504 removed category view, using archive 2024-04-02 21:24:42 +02:00
jorge 6cde4194b1 added case 2024-04-02 21:24:17 +02:00
jorge 151a243cdf removed all code from importing espais assesorament 2024-04-02 21:19:07 +02:00
jorge 4313f488c1 edited archive view 2024-04-02 20:44:57 +02:00
jorge 10298cd016 added conditonals for begin or en date and free text in agenda category showin 3 posts 2024-04-02 20:15:21 +02:00
jorge b54d5de214 styled and modified convos dates 2024-04-02 19:41:17 +02:00
jorge 2a7d702e6f styled forms and imput fields 2024-04-02 19:15:43 +02:00
jorge 1140149ac9 styles last convos in home as 3 cols 2024-04-02 18:16:43 +02:00
jorge f9534ddbbb styled all archives and categories the same, made order in scss files 2024-04-02 18:13:10 +02:00
jorge af0186d8d1 changed how styles are sent to clients, now based on time stamp 2024-04-02 15:03:22 +02:00
jorge bdeeb2645a styled ratlla abaix border bottom class 2024-04-02 14:18:21 +02:00
jorge 41b5db2800 updated styles for home, ratllas, etc... 2024-04-02 14:04:49 +02:00
40 changed files with 1366 additions and 753 deletions

1
.gitignore vendored
View File

@ -29,6 +29,7 @@ node_modules/
.DS_Store .DS_Store
theme/ theme/
_gitignore* _gitignore*
_ignore*
# htaccess # htaccess

View File

@ -17,7 +17,7 @@ Theme URI: https://git.hangar.org/xarxaprod/
Author: Hangar.org Tech Lab - hangar.org Author: Hangar.org Tech Lab - hangar.org
Author URI: https://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> 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.0 Version: 1.6.0
Tested up to: 6.4 Tested up to: 6.4
Requires PHP: 7.4 Requires PHP: 7.4
License: GNU General Public License v3 or later License: GNU General Public License v3 or later
@ -740,12 +740,17 @@ Add your custom styles in this file so it is easier to update the theme.
font-size: 1.1rem; font-size: 1.1rem;
} }
.edit-post-visual-editor__content-area .editor-styles-wrapper .archive .page-header,
.edit-post-visual-editor__content-area .editor-styles-wrapper .category .page-header {
text-transform: capitalize;
}
.edit-post-visual-editor__content-area .editor-styles-wrapper .home-featured h2, .edit-post-visual-editor__content-area .editor-styles-wrapper .home-featured h2,
.edit-post-visual-editor__content-area .editor-styles-wrapper .home-featured .h2 { .edit-post-visual-editor__content-area .editor-styles-wrapper .home-featured .h2 {
margin: 1.2rem 0; margin: 1.2rem 0;
font-size: 2rem; font-size: 2rem;
line-height: 1.2; line-height: 1.2;
border-bottom: 0.05em solid #000; border-bottom: 0.05rem solid #000;
} }
.edit-post-visual-editor__content-area .editor-styles-wrapper .entry-content h6 { .edit-post-visual-editor__content-area .editor-styles-wrapper .entry-content h6 {
@ -761,11 +766,11 @@ 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-intro h5 { .edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-intro h5 {
font-size: 2rem; font-size: 1.8rem;
} }
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-intro h6 { .edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-intro h6 {
font-size: 2rem; font-size: 1.6rem;
padding: 0; padding: 0;
} }
@ -839,7 +844,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 .home-featured h2, .edit-post-visual-editor__content-area .editor-styles-wrapper .home-featured h2,
.edit-post-visual-editor__content-area .editor-styles-wrapper .home-featured .h2 { .edit-post-visual-editor__content-area .editor-styles-wrapper .home-featured .h2 {
font-size: 3.5rem; font-size: 3.5rem;
border-bottom: 0.05em solid #000; border-bottom: 0.05rem solid #000;
} }
} }
@ -967,6 +972,10 @@ Add your custom styles in this file so it is easier to update the theme.
position: relative; position: relative;
} }
.edit-post-visual-editor__content-area .editor-styles-wrapper body.admin-bar {
position: inherit;
}
.edit-post-visual-editor__content-area .editor-styles-wrapper .liquid-bubbles { .edit-post-visual-editor__content-area .editor-styles-wrapper .liquid-bubbles {
overflow: hidden; overflow: hidden;
float: left; float: left;
@ -1093,7 +1102,7 @@ Add your custom styles in this file so it is easier to update the theme.
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: 0.05em solid #000; border: 0.05rem solid #000;
background-color: none; background-color: none;
font-size: 0.8rem; font-size: 0.8rem;
} }
@ -1285,7 +1294,6 @@ Add your custom styles in this file so it is easier to update the theme.
background: #000; background: #000;
color: #fff; color: #fff;
font-size: 0.9rem; font-size: 0.9rem;
line-height: 1;
padding: 0.6em; padding: 0.6em;
margin: 0; margin: 0;
} }
@ -1382,34 +1390,68 @@ Add your custom styles in this file so it is easier to update the theme.
.edit-post-visual-editor__content-area .editor-styles-wrapper input[type="color"], .edit-post-visual-editor__content-area .editor-styles-wrapper input[type="color"],
.edit-post-visual-editor__content-area .editor-styles-wrapper textarea { .edit-post-visual-editor__content-area .editor-styles-wrapper textarea {
color: #111; color: #111;
background-color: #eee; background-color: transparent;
border: none; border: 0.05rem solid #000;
border-radius: 0; border-radius: 0;
width: 100%; width: 100%;
padding: 0.3rem; padding: 0.3rem;
} }
.edit-post-visual-editor__content-area .editor-styles-wrapper input[type="text"]:focus, .edit-post-visual-editor__content-area .editor-styles-wrapper input[type="text"]:focus,
.edit-post-visual-editor__content-area .editor-styles-wrapper input[type="text"]:focus-within,
.edit-post-visual-editor__content-area .editor-styles-wrapper input[type="text"]:focus-visible,
.edit-post-visual-editor__content-area .editor-styles-wrapper input[type="email"]:focus, .edit-post-visual-editor__content-area .editor-styles-wrapper input[type="email"]:focus,
.edit-post-visual-editor__content-area .editor-styles-wrapper input[type="email"]:focus-within,
.edit-post-visual-editor__content-area .editor-styles-wrapper input[type="email"]:focus-visible,
.edit-post-visual-editor__content-area .editor-styles-wrapper input[type="url"]:focus, .edit-post-visual-editor__content-area .editor-styles-wrapper input[type="url"]:focus,
.edit-post-visual-editor__content-area .editor-styles-wrapper input[type="url"]:focus-within,
.edit-post-visual-editor__content-area .editor-styles-wrapper input[type="url"]:focus-visible,
.edit-post-visual-editor__content-area .editor-styles-wrapper input[type="password"]:focus, .edit-post-visual-editor__content-area .editor-styles-wrapper input[type="password"]:focus,
.edit-post-visual-editor__content-area .editor-styles-wrapper input[type="password"]:focus-within,
.edit-post-visual-editor__content-area .editor-styles-wrapper input[type="password"]:focus-visible,
.edit-post-visual-editor__content-area .editor-styles-wrapper input[type="search"]:focus, .edit-post-visual-editor__content-area .editor-styles-wrapper input[type="search"]:focus,
.edit-post-visual-editor__content-area .editor-styles-wrapper input[type="search"]:focus-within,
.edit-post-visual-editor__content-area .editor-styles-wrapper input[type="search"]:focus-visible,
.edit-post-visual-editor__content-area .editor-styles-wrapper input[type="number"]:focus, .edit-post-visual-editor__content-area .editor-styles-wrapper input[type="number"]:focus,
.edit-post-visual-editor__content-area .editor-styles-wrapper input[type="number"]:focus-within,
.edit-post-visual-editor__content-area .editor-styles-wrapper input[type="number"]:focus-visible,
.edit-post-visual-editor__content-area .editor-styles-wrapper input[type="tel"]:focus, .edit-post-visual-editor__content-area .editor-styles-wrapper input[type="tel"]:focus,
.edit-post-visual-editor__content-area .editor-styles-wrapper input[type="tel"]:focus-within,
.edit-post-visual-editor__content-area .editor-styles-wrapper input[type="tel"]:focus-visible,
.edit-post-visual-editor__content-area .editor-styles-wrapper input[type="range"]:focus, .edit-post-visual-editor__content-area .editor-styles-wrapper input[type="range"]:focus,
.edit-post-visual-editor__content-area .editor-styles-wrapper input[type="range"]:focus-within,
.edit-post-visual-editor__content-area .editor-styles-wrapper input[type="range"]:focus-visible,
.edit-post-visual-editor__content-area .editor-styles-wrapper input[type="date"]:focus, .edit-post-visual-editor__content-area .editor-styles-wrapper input[type="date"]:focus,
.edit-post-visual-editor__content-area .editor-styles-wrapper input[type="date"]:focus-within,
.edit-post-visual-editor__content-area .editor-styles-wrapper input[type="date"]:focus-visible,
.edit-post-visual-editor__content-area .editor-styles-wrapper input[type="month"]:focus, .edit-post-visual-editor__content-area .editor-styles-wrapper input[type="month"]:focus,
.edit-post-visual-editor__content-area .editor-styles-wrapper input[type="month"]:focus-within,
.edit-post-visual-editor__content-area .editor-styles-wrapper input[type="month"]:focus-visible,
.edit-post-visual-editor__content-area .editor-styles-wrapper input[type="week"]:focus, .edit-post-visual-editor__content-area .editor-styles-wrapper input[type="week"]:focus,
.edit-post-visual-editor__content-area .editor-styles-wrapper input[type="week"]:focus-within,
.edit-post-visual-editor__content-area .editor-styles-wrapper input[type="week"]:focus-visible,
.edit-post-visual-editor__content-area .editor-styles-wrapper input[type="time"]:focus, .edit-post-visual-editor__content-area .editor-styles-wrapper input[type="time"]:focus,
.edit-post-visual-editor__content-area .editor-styles-wrapper input[type="time"]:focus-within,
.edit-post-visual-editor__content-area .editor-styles-wrapper input[type="time"]:focus-visible,
.edit-post-visual-editor__content-area .editor-styles-wrapper input[type="datetime"]:focus, .edit-post-visual-editor__content-area .editor-styles-wrapper input[type="datetime"]:focus,
.edit-post-visual-editor__content-area .editor-styles-wrapper input[type="datetime"]:focus-within,
.edit-post-visual-editor__content-area .editor-styles-wrapper input[type="datetime"]:focus-visible,
.edit-post-visual-editor__content-area .editor-styles-wrapper input[type="datetime-local"]:focus, .edit-post-visual-editor__content-area .editor-styles-wrapper input[type="datetime-local"]:focus,
.edit-post-visual-editor__content-area .editor-styles-wrapper input[type="datetime-local"]:focus-within,
.edit-post-visual-editor__content-area .editor-styles-wrapper input[type="datetime-local"]:focus-visible,
.edit-post-visual-editor__content-area .editor-styles-wrapper input[type="color"]:focus, .edit-post-visual-editor__content-area .editor-styles-wrapper input[type="color"]:focus,
.edit-post-visual-editor__content-area .editor-styles-wrapper textarea:focus { .edit-post-visual-editor__content-area .editor-styles-wrapper input[type="color"]:focus-within,
.edit-post-visual-editor__content-area .editor-styles-wrapper input[type="color"]:focus-visible,
.edit-post-visual-editor__content-area .editor-styles-wrapper textarea:focus,
.edit-post-visual-editor__content-area .editor-styles-wrapper textarea:focus-within,
.edit-post-visual-editor__content-area .editor-styles-wrapper textarea:focus-visible {
color: #000; color: #000;
box-shadow: none;
outline: unset;
} }
.edit-post-visual-editor__content-area .editor-styles-wrapper select { .edit-post-visual-editor__content-area .editor-styles-wrapper select {
border: 0.05em solid #000; border: 0.05rem solid #000;
} }
.edit-post-visual-editor__content-area .editor-styles-wrapper textarea { .edit-post-visual-editor__content-area .editor-styles-wrapper textarea {
@ -1486,6 +1528,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 { .edit-post-visual-editor__content-area .editor-styles-wrapper .site-main {
padding: 0 1rem; padding: 0 1rem;
gap: 1rem;
} }
.edit-post-visual-editor__content-area .editor-styles-wrapper .site-main > section { .edit-post-visual-editor__content-area .editor-styles-wrapper .site-main > section {
@ -1496,6 +1539,23 @@ Add your custom styles in this file so it is easier to update the theme.
padding: 1em 0; padding: 1em 0;
} }
.edit-post-visual-editor__content-area .editor-styles-wrapper .archive .site-main,
.edit-post-visual-editor__content-area .editor-styles-wrapper .category .site-main {
display: grid;
grid-template-columns: 1fr;
}
.edit-post-visual-editor__content-area .editor-styles-wrapper .archive .site-main > header,
.edit-post-visual-editor__content-area .editor-styles-wrapper .category .site-main > header {
grid-column: 1 / -1;
}
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-filtered-content {
display: grid;
grid-template-columns: 1fr;
gap: 1rem;
}
.edit-post-visual-editor__content-area .editor-styles-wrapper .site-footer { .edit-post-visual-editor__content-area .editor-styles-wrapper .site-footer {
display: flex; display: flex;
flex-flow: row; flex-flow: row;
@ -1511,7 +1571,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 .site-info > section { .edit-post-visual-editor__content-area .editor-styles-wrapper .site-footer .site-info > section {
margin-top: 2em; margin-top: 2em;
padding: 2em 4em; padding: 2em 4em;
border-top: 0.05em solid #000; border-top: 0.05rem solid #000;
} }
.edit-post-visual-editor__content-area .editor-styles-wrapper .site-footer a { .edit-post-visual-editor__content-area .editor-styles-wrapper .site-footer a {
@ -1607,11 +1667,16 @@ Add your custom styles in this file so it is easier to update the theme.
width: 100%; width: 100%;
} }
.edit-post-visual-editor__content-area .editor-styles-wrapper .page-template-agenda-archive .site-main > article {
padding-bottom: 1rem;
}
.edit-post-visual-editor__content-area .editor-styles-wrapper .site-main { .edit-post-visual-editor__content-area .editor-styles-wrapper .site-main {
padding: 0; padding: 0;
} }
.edit-post-visual-editor__content-area .editor-styles-wrapper .site-main > article { .edit-post-visual-editor__content-area .editor-styles-wrapper .site-main > article {
padding-top: 4rem;
padding-bottom: 4rem; padding-bottom: 4rem;
} }
@ -1644,6 +1709,15 @@ Add your custom styles in this file so it is easier to update the theme.
padding-bottom: 4rem; padding-bottom: 4rem;
} }
.edit-post-visual-editor__content-area .editor-styles-wrapper .archive .site-main,
.edit-post-visual-editor__content-area .editor-styles-wrapper .category .site-main {
grid-template-columns: 1fr 3fr;
}
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-filtered-content {
grid-template-columns: 1fr 3fr;
}
.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;
} }
@ -1659,11 +1733,19 @@ 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-destacats, .edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-destacats,
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-featured, .edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-featured,
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-last-convos, .edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-last-convos,
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-ultimes-convocatories, .edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-ultimes-convocatories {
.edit-post-visual-editor__content-area .editor-styles-wrapper .archive-posts {
grid-template-columns: repeat(3, 1fr); grid-template-columns: repeat(3, 1fr);
} }
.edit-post-visual-editor__content-area .editor-styles-wrapper .archive-posts {
grid-template-columns: repeat(2, 1fr);
min-height: 40vh;
}
.edit-post-visual-editor__content-area .editor-styles-wrapper .post-type-archive-xarxaprod-associat .archive-posts {
grid-template-columns: 1fr;
}
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-faqs-aside { .edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-faqs-aside {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
@ -1768,6 +1850,28 @@ Add your custom styles in this file so it is easier to update the theme.
width: 100%; width: 100%;
background-color: #000; background-color: #000;
} }
.edit-post-visual-editor__content-area .editor-styles-wrapper .menu-menu-agenda-container .menu-item-has-children {
padding-right: 0;
}
.edit-post-visual-editor__content-area .editor-styles-wrapper .menu-menu-agenda-container > ul {
border-bottom: 0.05rem solid #000;
}
.edit-post-visual-editor__content-area .editor-styles-wrapper .menu-menu-agenda-container li > ul {
margin-left: 0;
}
.edit-post-visual-editor__content-area .editor-styles-wrapper .menu-menu-agenda-container li > a {
display: block;
padding: 0.5rem 0;
border-top: 0.05rem solid #000;
}
.edit-post-visual-editor__content-area .editor-styles-wrapper .menu-menu-agenda-container .current-menu-item > a {
font-weight: 900;
}
} }
@media screen and (min-width: 48em) { @media screen and (min-width: 48em) {
@ -1912,7 +2016,7 @@ Add your custom styles in this file so it is easier to update the theme.
right: 0.3em; right: 0.3em;
width: 0.3em; width: 0.3em;
height: 0.3em; height: 0.3em;
border: 0.05em solid #000; border: 0.05rem solid #000;
border-top: none; border-top: none;
border-left: none; border-left: none;
-moz-transform: rotate(45deg); -moz-transform: rotate(45deg);
@ -1977,7 +2081,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 { .edit-post-visual-editor__content-area .editor-styles-wrapper {
/* /*
* big lletters block below titles * big letters block below titles
* */ * */
/* /*
@ -1992,13 +2096,20 @@ Add your custom styles in this file so it is easier to update the theme.
* * * * * * * */ * * * * * * * */
/* used in /* used in
* ./template-parts/section-eachpost.php * template-parts/section-eachpost.php
* */ * */
/* used in /* used in
* ./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
* archive-xarxaprod-convo.php
* page-template/convo-search.php
* template-parts/content-xarxaprod-convo.php
* template-parts/section-eachconvo.php
* */ * */
/* used in /* used in
@ -2016,18 +2127,25 @@ Add your custom styles in this file so it is easier to update the theme.
/* /*
* categories: * categories:
*
* convocatorias pre 2024 * convocatorias pre 2024
* REC
*
* * * * * * * * * * * * * * * */
/*
* categories:
* agenda, activitats, agenda-es * agenda, activitats, agenda-es
* *
* * * * * * * * * * * * * * * */ * * * * * * * * * * * * * * * */
/* used in /* used in
* ./template-parts/section-agenda.php * template-parts/section-last-agenda.php
* template-parts/section-each-agenda-entry.php
* */ * */
/* filters form custom fields /*
*/ * filters form custom fields
* * */
} }
.edit-post-visual-editor__content-area .editor-styles-wrapper .sticky { .edit-post-visual-editor__content-area .editor-styles-wrapper .sticky {
@ -2048,10 +2166,6 @@ Add your custom styles in this file so it is easier to update the theme.
margin: 1.5em 0 0; margin: 1.5em 0 0;
} }
.edit-post-visual-editor__content-area .editor-styles-wrapper .site-main .entry-title {
margin: 0.5em 0 0 0;
}
.edit-post-visual-editor__content-area .editor-styles-wrapper .page-links { .edit-post-visual-editor__content-area .editor-styles-wrapper .page-links {
clear: both; clear: both;
margin: 0 0 1.5em; margin: 0 0 1.5em;
@ -2070,22 +2184,28 @@ Add your custom styles in this file so it is easier to update the theme.
.edit-post-visual-editor__content-area .editor-styles-wrapper .ratlla-abaix .wp-block-column, .edit-post-visual-editor__content-area .editor-styles-wrapper .ratlla-abaix .wp-block-column,
.edit-post-visual-editor__content-area .editor-styles-wrapper .border-bottom .wp-block-column { .edit-post-visual-editor__content-area .editor-styles-wrapper .border-bottom .wp-block-column {
position: relative; position: relative;
padding-top: 1em;
padding-bottom: 1em;
}
.edit-post-visual-editor__content-area .editor-styles-wrapper .ratlla-abaix .wp-block-column > :last-child::after,
.edit-post-visual-editor__content-area .editor-styles-wrapper .border-bottom .wp-block-column > :last-child::after {
content: "";
border-bottom: 0.05rem solid #000;
width: 100%;
position: absolute;
bottom: 0;
left: 0;
} }
.edit-post-visual-editor__content-area .editor-styles-wrapper .ratlla-abaix .wp-block-heading, .edit-post-visual-editor__content-area .editor-styles-wrapper .ratlla-abaix .wp-block-heading,
.edit-post-visual-editor__content-area .editor-styles-wrapper .border-bottom .wp-block-heading { .edit-post-visual-editor__content-area .editor-styles-wrapper .border-bottom .wp-block-heading {
padding-top: 1em;
padding-bottom: 2em;
display: inline-grid; display: inline-grid;
} }
.edit-post-visual-editor__content-area .editor-styles-wrapper .ratlla-abaix .wp-block-heading::after, .edit-post-visual-editor__content-area .editor-styles-wrapper .ratlla-abaix p,
.edit-post-visual-editor__content-area .editor-styles-wrapper .border-bottom .wp-block-heading::after { .edit-post-visual-editor__content-area .editor-styles-wrapper .border-bottom p {
content: ""; margin-bottom: 0;
border-bottom: 0.05em solid #000;
width: 100%;
position: absolute;
bottom: 0;
} }
.edit-post-visual-editor__content-area .editor-styles-wrapper .descarregar-fitxers a, .edit-post-visual-editor__content-area .editor-styles-wrapper .descarregar-fitxers a,
@ -2093,7 +2213,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 .download-files a { .edit-post-visual-editor__content-area .editor-styles-wrapper .download-files a {
display: inline-block; display: inline-block;
width: 100%; width: 100%;
border-bottom: 0.05em solid #000; border-bottom: 0.05rem solid #000;
} }
.edit-post-visual-editor__content-area .editor-styles-wrapper .descarregar-fitxers a::after, .edit-post-visual-editor__content-area .editor-styles-wrapper .descarregar-fitxers a::after,
@ -2117,12 +2237,11 @@ 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 .entry-title { .edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-card-each .entry-title {
margin: 0; margin: 0;
padding: 0 0 0.5rem 0; padding: 0 0 0.5rem 0;
border-bottom: 0.05em solid #000;
} }
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-card-each h6 { .edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-card-each h6 {
padding: 0.5rem 1rem 0.5rem 0; padding: 0.5rem 1rem 0.5rem 0;
border-bottom: 0.05em solid #000; border-bottom: 0.05rem solid #000;
} }
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-card-each .xarxaprod-deadline { .edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-card-each .xarxaprod-deadline {
@ -2135,7 +2254,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 .xarxaprod-card-each .excerpt { .edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-card-each .excerpt {
border-bottom: 0.05em solid #000; border-bottom: 0.05rem solid #000;
margin-bottom: 0.5em; margin-bottom: 0.5em;
padding: 0.5em 0; padding: 0.5em 0;
} }
@ -2144,6 +2263,15 @@ Add your custom styles in this file so it is easier to update the theme.
margin-top: 1rem; margin-top: 1rem;
} }
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-card-each.xarxaprod-ajut .entry-title {
display: inline-flex;
align-items: flex-end;
min-height: 6.6rem;
height: 6.6rem;
border-bottom: 0.05rem solid #000;
overflow: hidden;
}
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-fund-info-fields, .edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-fund-info-fields,
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-fund-info-contact-fields { .edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-fund-info-contact-fields {
display: grid; display: grid;
@ -2153,7 +2281,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 .xarxaprod-fund-info-fields .xarxaprod-fund-info-field, .edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-fund-info-fields .xarxaprod-fund-info-field,
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-fund-info-contact-fields .xarxaprod-fund-info-field { .edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-fund-info-contact-fields .xarxaprod-fund-info-field {
padding: 1rem 0; padding: 1rem 0;
border-bottom: 0.05em solid #000; border-bottom: 0.05rem solid #000;
} }
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-fund-info-fields h6, .edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-fund-info-fields h6,
@ -2205,47 +2333,16 @@ 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 article.xarxaprod-convo > .xarxaprod-convo-info-fields {
padding-top: 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.05em 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-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 .xarxaprod-agenda-info li {
display: grid;
grid-template-columns: 0.75fr 2.25fr;
padding: 0.2em 0; padding: 0.2em 0;
border-top: 0.05em solid #000; border-bottom: 0.05rem solid #000;
font-size: 1rem; 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-convo-info-fields li:first-of-type,
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-agenda-info li:last-of-type { .edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-agenda-info li:first-of-type {
border-bottom: 0.05em solid #000; border-top: 0.05rem 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-convo-info-fields li .xarxaprod-label li,
@ -2255,7 +2352,7 @@ Add your custom styles in this file so it is easier to update the theme.
padding: 0; padding: 0;
color: inherit; color: inherit;
border: none; border: none;
background-color: none; background-color: transparent;
font-size: inherit; font-size: inherit;
} }
@ -2266,16 +2363,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-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-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 { .edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-agenda-info dd {
grid-row: 1 / 2; display: inline;
font-weight: 100;
margin: 0; margin: 0;
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,
@ -2284,6 +2377,61 @@ 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 .xarxaprod-card-each.xarxaprod-convo .entry-title {
display: inline-flex;
align-items: flex-start;
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 { .edit-post-visual-editor__content-area .editor-styles-wrapper .single-xarxaprod-associat .xarxaprod-associat > section {
margin-top: 4em; margin-top: 4em;
} }
@ -2304,7 +2452,7 @@ Add your custom styles in this file so it is easier to update the theme.
display: grid; display: grid;
font-size: 1rem; font-size: 1rem;
border: none; border: none;
border-top: 0.05em solid #000; border-top: 0.05rem solid #000;
margin: 0; margin: 0;
padding: 0.5em 0; padding: 0.5em 0;
} }
@ -2362,6 +2510,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-associats-map, .edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-associats-map,
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-espais-map { .edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-espais-map {
margin: 0;
grid-column: 1 / -1;
aspect-ratio: 4 / 3; aspect-ratio: 4 / 3;
background-color: rgba(200, 200, 200, 0.4); background-color: rgba(200, 200, 200, 0.4);
} }
@ -2378,41 +2528,38 @@ 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-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-rec {
.edit-post-visual-editor__content-area .editor-styles-wrapper .category-agenda,
.edit-post-visual-editor__content-area .editor-styles-wrapper .category-agenda-es {
display: flex; display: flex;
flex-flow: column; flex-flow: column;
justify-content: flex-end; justify-content: flex-end;
padding-bottom: 4em; padding-bottom: 2rem;
} }
.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,
.edit-post-visual-editor__content-area .editor-styles-wrapper .category-convocatories .wp-block-post-title, .edit-post-visual-editor__content-area .editor-styles-wrapper .category-convocatories .wp-block-post-title,
.edit-post-visual-editor__content-area .editor-styles-wrapper .category-activitats .wp-block-post-title, .edit-post-visual-editor__content-area .editor-styles-wrapper .category-rec .wp-block-post-title {
.edit-post-visual-editor__content-area .editor-styles-wrapper .category-agenda .wp-block-post-title,
.edit-post-visual-editor__content-area .editor-styles-wrapper .category-agenda-es .wp-block-post-title {
text-transform: lowercase; text-transform: lowercase;
font-size: 1.5rem; font-size: 1.5rem;
margin-bottom: 0.5em; margin-bottom: 0.5em;
padding-bottom: 0.5em; padding-bottom: 0.5em;
border-bottom: 0.05em solid #000; border-bottom: 0.05rem solid #000;
} }
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-cards .post-excerpt,
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-cards .wp-block-post-excerpt, .edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-cards .wp-block-post-excerpt,
.edit-post-visual-editor__content-area .editor-styles-wrapper .category-convocatories .post-excerpt,
.edit-post-visual-editor__content-area .editor-styles-wrapper .category-convocatories .wp-block-post-excerpt, .edit-post-visual-editor__content-area .editor-styles-wrapper .category-convocatories .wp-block-post-excerpt,
.edit-post-visual-editor__content-area .editor-styles-wrapper .category-activitats .wp-block-post-excerpt, .edit-post-visual-editor__content-area .editor-styles-wrapper .category-rec .post-excerpt,
.edit-post-visual-editor__content-area .editor-styles-wrapper .category-agenda .wp-block-post-excerpt, .edit-post-visual-editor__content-area .editor-styles-wrapper .category-rec .wp-block-post-excerpt {
.edit-post-visual-editor__content-area .editor-styles-wrapper .category-agenda-es .wp-block-post-excerpt { min-height: 7rem;
margin: 0.5em 0; margin: 0.5em 0;
border-bottom: 0.05em solid #000; font-size: 1rem;
border-bottom: 0.05rem solid #000;
} }
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-cards .wp-block-read-more, .edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-cards .wp-block-read-more,
.edit-post-visual-editor__content-area .editor-styles-wrapper .category-convocatories .wp-block-read-more, .edit-post-visual-editor__content-area .editor-styles-wrapper .category-convocatories .wp-block-read-more,
.edit-post-visual-editor__content-area .editor-styles-wrapper .category-activitats .wp-block-read-more, .edit-post-visual-editor__content-area .editor-styles-wrapper .category-rec .wp-block-read-more {
.edit-post-visual-editor__content-area .editor-styles-wrapper .category-agenda .wp-block-read-more,
.edit-post-visual-editor__content-area .editor-styles-wrapper .category-agenda-es .wp-block-read-more {
margin: 1em 0; margin: 1em 0;
} }
@ -2421,11 +2568,11 @@ Add your custom styles in this file so it is easier to update the theme.
flex-direction: column; flex-direction: column;
justify-content: space-between; justify-content: space-between;
padding: 0.2em 0; padding: 0.2em 0;
border-bottom: 0.05em solid #000; border-bottom: 0.05rem solid #000;
} }
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-agenda .xarxaprod-card-each:first-of-type { .edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-agenda .xarxaprod-card-each:first-of-type {
border-top: 0.05em solid #000; border-top: 0.05rem solid #000;
} }
.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 > * {
@ -2436,43 +2583,60 @@ 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-agenda .xarxaprod-card-each .entry-title, .edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-agenda .xarxaprod-card-each .entry-title,
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-agenda .xarxaprod-card-each h6 { .edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-agenda .xarxaprod-card-each h6 {
border-bottom: none; border-bottom: none;
padding: 0.5rem 0;
} }
.edit-post-visual-editor__content-area .editor-styles-wrapper li.category-activitats, .edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-card-each.category-activitats {
.edit-post-visual-editor__content-area .editor-styles-wrapper li[class*="category-agenda"] { justify-content: flex-start;
position: relative;
display: flex;
align-content: space-between;
} }
.edit-post-visual-editor__content-area .editor-styles-wrapper li.category-activitats .wp-block-post-featured-image, .edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-card-each.category-activitats .entry-title {
.edit-post-visual-editor__content-area .editor-styles-wrapper li[class*="category-agenda"] .wp-block-post-featured-image { display: inline-flex;
position: absolute; align-items: flex-start;
top: 0; min-height: 5.5rem;
margin: 0; overflow: hidden;
border: none;
}
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-card-each.category-activitats figure {
order: -1;
margin: 0 0 1rem 0;
width: 100%;
aspect-ratio: 16/9; aspect-ratio: 16/9;
overflow: hidden; overflow: hidden;
} }
.edit-post-visual-editor__content-area .editor-styles-wrapper li.category-activitats .wp-block-post-title::before, .edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-card-each.category-activitats figure img {
.edit-post-visual-editor__content-area .editor-styles-wrapper li[class*="category-agenda"] .wp-block-post-title::before { object-position: 50% 50%;
content: ""; max-height: 100%;
display: inline-block; object-fit: cover;
min-width: 100%; width: 100%;
height: auto;
aspect-ratio: 16/9;
margin-bottom: 2em;
background-color: rgba(230, 230, 230, 0.4);
border-radius: 0.3em;
} }
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-filtered-content { .edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-card-each.category-activitats .xarxaprod-agenda-info {
display: grid; margin-bottom: 0;
grid-template-columns: 1fr;
} }
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-filtered-content .archive-posts { .edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-card-each.category-activitats li {
grid-template-columns: repeat(1, minmax(0, 1fr)); display: inline-flex;
width: 100%;
max-height: 2.9rem;
overflow: hidden;
font-weight: 100;
}
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-card-each.category-activitats dt {
padding-right: 0.5rem;
text-transform: uppercase;
}
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-card-each.category-activitats dd {
font-weight: 100;
}
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-card-each.category-activitats .post-excerpt {
margin: 0;
min-height: 5rem;
} }
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-filters section { .edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-filters section {
@ -2483,10 +2647,6 @@ Add your custom styles in this file so it is easier to update the theme.
display: none; display: none;
} }
.edit-post-visual-editor__content-area .editor-styles-wrapper .archive-posts {
grid-template-columns: repeat(1, minmax(0, 1fr));
}
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-titol-opcions { .edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-titol-opcions {
display: inline-block; display: inline-block;
width: 100%; width: 100%;
@ -2497,7 +2657,7 @@ Add your custom styles in this file so it is easier to update the theme.
cursor: pointer; cursor: pointer;
font-weight: 900; font-weight: 900;
font-size: 0.9rem; font-size: 0.9rem;
border: 0.05em solid #000; border: 0.05rem solid #000;
} }
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-titol-opcions::after { .edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-titol-opcions::after {
@ -2559,29 +2719,16 @@ Add your custom styles in this file so it is easier to update the theme.
@media screen and (min-width: 48em) { @media screen and (min-width: 48em) {
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-filters { .edit-post-visual-editor__content-area .editor-styles-wrapper .single-xarxaprod-convo .xarxaprod-convo-info-fields li,
padding-right: 2em; .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 .xarxaprod-filtered-content {
grid-template-columns: 1fr 2fr;
gap: 4rem;
}
.edit-post-visual-editor__content-area .editor-styles-wrapper .archive-posts {
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.5rem; font-size: 1.5rem;
} }
.edit-post-visual-editor__content-area .editor-styles-wrapper .single-xarxaprod-associat .xarxaprod-associat .xarxaprod-associat-info { .edit-post-visual-editor__content-area .editor-styles-wrapper .single-xarxaprod-associat .xarxaprod-associat-info {
grid-template-columns: 1fr 1fr 1fr; grid-template-columns: 1fr 1fr 1fr;
} }
.edit-post-visual-editor__content-area .editor-styles-wrapper .single-xarxaprod-associat .xarxaprod-associat .xarxaprod-associat-location .xarxaprod-associat-osm-link { .edit-post-visual-editor__content-area .editor-styles-wrapper .single-xarxaprod-associat .xarxaprod-associat-osm-link {
grid-template-columns: min-content auto; grid-template-columns: min-content auto;
} }
@ -2605,27 +2752,6 @@ Add your custom styles in this file so it is easier to update the theme.
} }
} }
@media screen and (min-width: 80em) {
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-filtered-content {
grid-template-columns: 1fr 3fr;
gap: 6rem;
}
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-filtered-content .archive-posts {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-filtered-content .archive-posts.archive-xarxaprod-associats,
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-filtered-content .archive-posts.archive-custom-post-type-associat {
grid-template-columns: repeat(1, minmax(0, 1fr));
}
.edit-post-visual-editor__content-area .editor-styles-wrapper .archive-posts {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
}
.edit-post-visual-editor__content-area .editor-styles-wrapper .comment-content a { .edit-post-visual-editor__content-area .editor-styles-wrapper .comment-content a {
word-wrap: break-word; word-wrap: break-word;
} }
@ -2891,7 +3017,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 .wpcf7-form input:not([type="submit"]), .edit-post-visual-editor__content-area .editor-styles-wrapper .wpcf7-form input:not([type="submit"]),
.edit-post-visual-editor__content-area .editor-styles-wrapper .wpcf7-form textarea { .edit-post-visual-editor__content-area .editor-styles-wrapper .wpcf7-form textarea {
background: transparent; background: transparent;
border: 0.05em solid #000; border: 0.05rem solid #000;
padding: 1em; padding: 1em;
} }
@ -2958,7 +3084,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-options label.oficinasuport-titol-opcions { .edit-post-visual-editor__content-area .editor-styles-wrapper .contactform-fund-options label.oficinasuport-titol-opcions {
border: 0.05em solid #000; border: 0.05rem solid #000;
width: 100%; width: 100%;
display: inline-block; display: inline-block;
margin-bottom: 1em; margin-bottom: 1em;
@ -3128,6 +3254,11 @@ Add your custom styles in this file so it is easier to update the theme.
} }
.edit-post-visual-editor__content-area .editor-styles-wrapper h1, .edit-post-visual-editor__content-area .editor-styles-wrapper h1,
.edit-post-visual-editor__content-area .editor-styles-wrapper h2,
.edit-post-visual-editor__content-area .editor-styles-wrapper h3,
.edit-post-visual-editor__content-area .editor-styles-wrapper h4,
.edit-post-visual-editor__content-area .editor-styles-wrapper h5,
.edit-post-visual-editor__content-area .editor-styles-wrapper ul,
.edit-post-visual-editor__content-area .editor-styles-wrapper figure, .edit-post-visual-editor__content-area .editor-styles-wrapper figure,
.edit-post-visual-editor__content-area .editor-styles-wrapper button { .edit-post-visual-editor__content-area .editor-styles-wrapper button {
margin-left: auto; margin-left: auto;

File diff suppressed because one or more lines are too long

View File

@ -19,7 +19,11 @@ get_header();
//plugin is activated do //plugin is activated do
?> ?>
<section id="filteredfunds" class="xarxaprod-filtered-content xarxaprod-filtered-funds xarxaprod-ajuts-filtrats"> <header class="page-header">
<h1><?php //single_term_title( ' ' ); ?></h1>
</header>
<aside id="fundsfilter" class="xarxaprod-filter-funds xarxaprod-filtre-ajuts"> <aside id="fundsfilter" class="xarxaprod-filter-funds xarxaprod-filtre-ajuts">
<?php include_once( ABSPATH . 'wp-admin/includes/plugin.php' ); if ( is_plugin_active( 'xarxaprod-wp-plugin/xarxaprod-wp-plugin.php' ) ) { // if plugin active do?> <?php include_once( ABSPATH . 'wp-admin/includes/plugin.php' ); if ( is_plugin_active( 'xarxaprod-wp-plugin/xarxaprod-wp-plugin.php' ) ) { // if plugin active do?>
<?php xarxaprod_ajuts_filters_form(); // function defined in the plugin ?> <?php xarxaprod_ajuts_filters_form(); // function defined in the plugin ?>
@ -45,6 +49,7 @@ get_header();
?> ?>
</content> </content>
<section id="filteredfunds" class="xarxaprod-filtered-content xarxaprod-filtered-funds xarxaprod-ajuts-filtrats">
</section> </section>
<?php } //end plugin is activated do ?> <?php } //end plugin is activated do ?>

View File

@ -19,10 +19,14 @@ get_header();
//plugin is activated do //plugin is activated do
?> ?>
<section id="filteredassociats" class="xarxaprod-filtered-content xarxaprod-filtered-associats xarxaprod-associats-filtrats"> <header class="page-header">
<h1><?php single_term_title( ' ' ); ?></h1>
</header>
<aside id="associatsfilter" class="xarxaprod-filter-associats xarxaprod-filtre-associats"> <aside id="associatsfilter" class="xarxaprod-filter-associats xarxaprod-filtre-associats">
<?php xarxaprod_associats_filters_form(); // function defined in the plugin ?> <?php xarxaprod_associats_filters_form(); // function defined in the plugin ?>
</aside> </aside>
<content class="archive-posts <?php xarxaprod_class_posttype(); ?>"> <content class="archive-posts <?php xarxaprod_class_posttype(); ?>">
<figure id="xarxaprod-associats-map" class="xarxaprod-associats-map"> <figure id="xarxaprod-associats-map" class="xarxaprod-associats-map">
<?php xarxaprod_show_leaflet_map(); // function defined in the plugin ?> <?php xarxaprod_show_leaflet_map(); // function defined in the plugin ?>
@ -30,10 +34,22 @@ get_header();
<?php if ( have_posts() ) : ?> <?php if ( have_posts() ) : ?>
<?php while ( have_posts() ) : the_post(); <?php while ( have_posts() ) : the_post();
//get_template_part( 'template-parts/section', 'eachmember' );
xarxaprod_show_leaflet_associat_blob(); // function defined in the plugin xarxaprod_show_leaflet_associat_blob(); // function defined in the plugin
endwhile; //get_template_part( 'template-parts/section', 'eachmember' );
endwhile; ?>
<ul class="xarxaprod-label">
<?php while ( have_posts() ) : the_post(); ?>
<li>
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" rel="bookmark">
<?php the_title(); ?>
</a>
</li>
<?php endwhile; ?>
</ul>
<?php
//the_posts_navigation(); //the_posts_navigation();
else : else :
@ -42,8 +58,8 @@ get_header();
endif; endif;
?> ?>
</content> </content>
<section id="filteredassociats" class="xarxaprod-filtered-content xarxaprod-filtered-associats xarxaprod-associats-filtrats">
</section> </section>
<?php } //end plugin is activated do ?> <?php } //end plugin is activated do ?>

View File

@ -19,7 +19,10 @@ get_header();
//plugin is activated do //plugin is activated do
?> ?>
<section id="filteredcall" class="xarxaprod-filtered-content xarxaprod-filtered-convos xarxaprod-convos-filtrats"> <header class="page-header">
<h1><?php //single_term_title( ' ' ); ?></h1>
</header>
<aside id="convosfilter" class="xarxaprod-filter-convos xarxaprod-filtre-convos"> <aside id="convosfilter" class="xarxaprod-filter-convos xarxaprod-filtre-convos">
<?php include_once( ABSPATH . 'wp-admin/includes/plugin.php' ); if ( is_plugin_active( 'xarxaprod-wp-plugin/xarxaprod-wp-plugin.php' ) ) { // if plugin active do?> <?php include_once( ABSPATH . 'wp-admin/includes/plugin.php' ); if ( is_plugin_active( 'xarxaprod-wp-plugin/xarxaprod-wp-plugin.php' ) ) { // if plugin active do?>
<?php xarxaprod_convos_filters_form(); // function defined in the plugin ?> <?php xarxaprod_convos_filters_form(); // function defined in the plugin ?>
@ -45,6 +48,7 @@ get_header();
?> ?>
</content> </content>
<section id="filteredcall" class="xarxaprod-filtered-content xarxaprod-filtered-convos xarxaprod-convos-filtrats">
</section> </section>
<?php } //end plugin is activated do ?> <?php } //end plugin is activated do ?>

View File

@ -12,10 +12,29 @@ get_header();
<main id="primary" class="site-main"> <main id="primary" class="site-main">
<header class="page-header">
<h1><?php single_term_title( ' ' ); ?></h1>
</header>
<aside>
<?php if( in_category('faq') ) : ?>
<?php xarxaprod_display_faqs_labels();//display all faq subcategories as labels ?>
<?php xarxaprod_display_faqs_search(); ?>
<?php endif; //end if is_category faq ?>
<?php if ( in_category( array( 'agenda', 'agenda-es','activitats') ) ) : ?>
<?php wp_nav_menu(
array(
'theme_location' => 'menu-3',
'menu_id' => 'agenda-menu',
)
); ?>
<?php endif; //end in_category agenda activitats ?>
</aside>
<?php if ( have_posts() ) : ?> <?php if ( have_posts() ) : ?>
<header class="page-header">
</header><!-- .page-header -->
<content class="archive-posts <?php xarxaprod_class_posttype(); ?>"> <content class="archive-posts <?php xarxaprod_class_posttype(); ?>">
<?php <?php
/* Start the Loop */ /* Start the Loop */
@ -27,13 +46,14 @@ get_header();
* If you want to override this in a child theme, then include a file * If you want to override this in a child theme, then include a file
* called content-___.php (where ___ is the Post Type name) and that will be used instead. * called content-___.php (where ___ is the Post Type name) and that will be used instead.
*/ */
get_template_part( 'template-parts/content', get_post_type() ); //get_template_part( 'template-parts/content', get_post_type() );
get_template_part( 'template-parts/section', 'each-agenda-entry' );
endwhile; endwhile;
the_posts_navigation(); the_posts_navigation();
echo '</content>';//end content ajuts echo '</content>';
else : else :
get_template_part( 'template-parts/content', 'none' ); get_template_part( 'template-parts/content', 'none' );

File diff suppressed because one or more lines are too long

View File

@ -1,39 +0,0 @@
<?php
/**
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
*
* @package Xarxaprod_theme
* @since 1.0
*/
get_header();
?>
<main id="primary" class="site-main">
<?php if( in_category('faq') ) : ?>
<?php xarxaprod_display_faqs_labels(); ?>
<?php xarxaprod_display_faqs_search(); ?>
<?php endif; //end if is_category faq ?>
<content class="archive-posts ">
<?php if ( have_posts() ) : ?>
<?php while ( have_posts() ) : the_post();
get_template_part( 'template-parts/section', 'eachpost' );
endwhile;
the_posts_navigation();
else :
get_template_part( 'template-parts/content', 'none' );
endif;
?>
</content>
</main><!-- #main -->
<?php
get_sidebar();
get_footer();

View File

@ -51,6 +51,7 @@ function xarxaprod_setup() {
array( array(
'menu-1' => esc_html__( 'Primary', 'xarxaprod' ), 'menu-1' => esc_html__( 'Primary', 'xarxaprod' ),
'menu-2' => esc_html__( 'Secondary', 'xarxaprod' ), 'menu-2' => esc_html__( 'Secondary', 'xarxaprod' ),
'menu-3' => esc_html__( 'Agenda', 'xarxaprod' ),
) )
); );
@ -174,3 +175,8 @@ require get_template_directory() . '/inc/archive-title.php';
* Functions to add admin styles * Functions to add admin styles
*/ */
require get_template_directory() . '/inc/admin-style.php'; require get_template_directory() . '/inc/admin-style.php';
/**
* Function to get the first post image, used when there is no featured image
*/
require get_template_directory() . '/inc/catch-first-image.php';

27
inc/catch-first-image.php Normal file
View File

@ -0,0 +1,27 @@
<?php
/**
* Start catch up first image in a post else get the custom logo
* ----------------------------------------------------------------------------
* @package Xarxaprod_theme
* @used by template-parts/section-each-agenda-entry.php
*/
if ( ! function_exists( 'catch_post_first_image' ) ) :
function catch_post_first_image() {
global $post, $posts;
$first_img = '';
ob_start();
ob_end_clean();
$output = preg_match_all('/<img.+src=[\'"]([^\'"]+)[\'"].*>/i', $post->post_content, $matches);
$first_img = $matches [1] [0];
if(!empty($first_img)){
return $first_img;
}
if(empty($first_img)){ //Defines a default image
// https://developer.wordpress.org/reference/functions/the_custom_logo/
$custom_logo_image = wp_get_attachment_image_src( get_theme_mod( 'custom_logo' ) , 'full' );
$first_img = $custom_logo_image[0];
return $first_img;
}
}
endif;
?>

View File

@ -81,7 +81,7 @@ if ( ! function_exists( 'xarxaprod_display_faqs_labels' ) ) :
// https://developer.wordpress.org/reference%2Ffunctions%2Fwp_list_categories%2F/ // https://developer.wordpress.org/reference%2Ffunctions%2Fwp_list_categories%2F/
wp_list_categories( wp_list_categories(
array( array(
'child_of' => 38, // category FAQ id=1 'child_of' => 39, // category FAQ id=1
'hide_empty' => 1, 'hide_empty' => 1,
'hide_title_if_empty' => true, 'hide_title_if_empty' => true,
'separator' => '<li>', 'separator' => '<li>',

View File

@ -4,10 +4,13 @@
*/ */
if ( ! function_exists( 'xarxaprod_theme_css_scripts' ) ){ if ( ! function_exists( 'xarxaprod_theme_css_scripts' ) ){
function xarxaprod_theme_css_scripts() { function xarxaprod_theme_css_scripts() {
wp_enqueue_style( 'xarxaprod-style', get_stylesheet_uri(), array(), _S_VERSION ); // css loaded depending on version number
//wp_enqueue_style( 'xarxaprod-style', get_stylesheet_uri(), array(), _S_VERSION );
// css loaded depending on modified time stamp -> reload on each update of file
// https://developer.wordpress.org/reference/functions/wp_enqueue_style/#comment-2056 // https://developer.wordpress.org/reference/functions/wp_enqueue_style/#comment-2056
//wp_enqueue_style('main-styles', get_template_directory_uri() . '/css/style.css', array(), filemtime(get_template_directory() . '/css/style.css'), false); //wp_enqueue_style('main-styles', get_template_directory_uri() . '/css/style.css', array(), filemtime(get_template_directory() . '/css/style.css'), false);
//wp_enqueue_style( 'xarxaprod-style', get_stylesheet_uri(), array(), filemtime(get_stylesheet_uri() . 'style.css'), false); wp_enqueue_style( 'xarxaprod-style', get_stylesheet_uri(), array(), filemtime(get_stylesheet_uri() . 'style.css'), false);
wp_style_add_data( 'xarxaprod-style', 'rtl', 'replace' ); wp_style_add_data( 'xarxaprod-style', 'rtl', 'replace' );
// https://stackoverflow.com/a/24994304 // https://stackoverflow.com/a/24994304

View File

@ -4,8 +4,8 @@
* *
* Docs: https://wordpress.org/documentation/article/roles-and-capabilities/ * Docs: https://wordpress.org/documentation/article/roles-and-capabilities/
* *
* @package EGV-Guies * @package Xarxaprod_theme
* @since EGV-Guies 1.0.0 * @since Xarxaprod_theme 1.0.0
*/ */
// https://wordpress.stackexchange.com/questions/4191/allow-editors-to-edit-menus // https://wordpress.stackexchange.com/questions/4191/allow-editors-to-edit-menus
// add editor the privilege to edit theme // add editor the privilege to edit theme

View File

@ -0,0 +1,96 @@
<?php
/**
* The template for displaying the "agenda" activities with search capabilities
*
* Template Name: Pagina Agenda
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
* @link https://developer.wordpress.org/themes/template-files-section/page-template-files/
*
* @package Xarxaprod_theme
* @since 1.0
*/
get_header();
?>
<!-- page-templates convos-search-php -->
<main id="primary" class="site-main">
<?php if ( have_posts() ) : ?>
<?php
while ( have_posts() ) :
the_post();
get_template_part( 'template-parts/content', 'page' );
endwhile;
the_posts_navigation();
else :
//get_template_part( 'template-parts/content', 'none' );
endif;
?>
<section id="filteredagenda" class="xarxaprod-filtered-content xarxaprod-filtered-agenda xarxaprod-activitats-filtrats category-agenda xarxaprod-activitats">
<aside id="agendafilter" class="xarxaprod-filter-agenda xarxaprod-fitre-agenda">
<?php include_once( ABSPATH . 'wp-admin/includes/plugin.php' ); if ( is_plugin_active( 'xarxaprod-wp-plugin/xarxaprod-wp-plugin.php' ) ) { // if plugin active do?>
<?php } //end if is_plugin_active ?>
<?php wp_nav_menu(
array(
'theme_location' => 'menu-3',
'menu_id' => 'agenda-menu',
)
); ?>
</aside>
<?php
$the_query_archive_agenda = new WP_Query(
array(
'post_type' => 'post',
'posts_per_page' => '40', //show all => -1
'tax_query' => array(
array(
'taxonomy' => 'category',
'field' => 'slug',
'terms' => 'activitats'
)
)
//'order_by' => 'meta_value', //order by meta value
//'meta_key' => 'xxp_convo_apply_end', // order by meta key convo apply end
//'order' => 'ASC', //order ascendent
//'meta_query' => array(
// array( //filter results show only older than today
// 'key' => 'xxp_convo_apply_end',
// 'value' => date("Y-m-d"), // consider using date_i18n() https://developer.wordpress.org/reference/functions/date_i18n/
// 'compare' => '<', //show events before today
// 'type' => 'DATE',
// )
//)
)
);
?>
<?php if ( $the_query_archive_agenda->have_posts() ) : ?>
<content class="archive-posts <?php //xarxaprod_class_posttype(); ?>">
<?php while ( $the_query_archive_agenda->have_posts() ) : $the_query_archive_agenda->the_post(); ?>
<?php get_template_part( 'template-parts/section', 'each-agenda-entry' ); ?>
<?php endwhile;//end of the loop ?>
<?php
// pagination will not work for custom_query
// https://wordpress.stackexchange.com/a/120408
// how to fix it
the_posts_navigation();
?>
<?php wp_reset_postdata(); ?>
</content>
<?php endif; //end query convo ?>
</section>
</main><!-- #main -->
<?php
get_footer();

View File

@ -2,7 +2,7 @@
/** /**
* The template for displaying the "convos" calls with search capabilities * The template for displaying the "convos" calls with search capabilities
* *
* Template Name: Arxiu de convos * Template Name: Arxiu convos antigues
* *
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/ * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
* @link https://developer.wordpress.org/themes/template-files-section/page-template-files/ * @link https://developer.wordpress.org/themes/template-files-section/page-template-files/

View File

@ -69,7 +69,7 @@ get_header();
<content class="archive-posts archive-xarxaprod-convo <?php //xarxaprod_class_posttype(); ?>"> <content class="archive-posts archive-xarxaprod-convo <?php //xarxaprod_class_posttype(); ?>">
<?php while ( $the_query_convo->have_posts() ) : $the_query_convo->the_post(); ?> <?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 endwhile;//end of the loop ?>
<?php wp_reset_postdata(); ?> <?php wp_reset_postdata(); ?>

View File

@ -60,7 +60,7 @@ get_header();
<?php if ( $the_query_faq->have_posts() ) : ?> <?php if ( $the_query_faq->have_posts() ) : ?>
<?php while ( $the_query_faq->have_posts() ) : $the_query_faq->the_post(); ?> <?php while ( $the_query_faq->have_posts() ) : $the_query_faq->the_post(); ?>
<?php get_template_part( 'template-parts/section', 'eachpost' ); ?> <?php get_template_part( 'template-parts/section', 'eachfund' ); ?>
<?php endwhile;//end of the loop ?> <?php endwhile;//end of the loop ?>
<?php wp_reset_postdata(); ?> <?php wp_reset_postdata(); ?>

View File

@ -31,7 +31,7 @@ get_header();
if ( is_front_page() ) : if ( is_front_page() ) :
//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', 'last-agenda' );
endif; endif;
?> ?>

View File

@ -33,7 +33,7 @@ $color__background-hr: $color__black;
$color__background-button: $color__black; $color__background-button: $color__black;
$color__background-pre: $color__grey-lighter; $color__background-pre: $color__grey-lighter;
$color__background-ins: $color__white-dark; $color__background-ins: $color__white-dark;
$color__background-input: $color__grey-lighter; $color__background-input: transparent;
$color__text-screen: $color__black; $color__text-screen: $color__black;
$color__text-input: $color__black-grey; $color__text-input: $color__black-grey;
@ -51,5 +51,5 @@ $color__border-abbr: $color__grey-dark;
//other //other
$border__radius: 0.2rem; $border__radius: 0.2rem;
$border__line: 0.05em solid $color__black; $border__line: 0.05rem solid $color__black;
$box__shadow: 0 3px 10px rgba(0,0,0,0.2); $box__shadow: 0 3px 10px rgba(0,0,0,0.2);

View File

@ -3,7 +3,6 @@
// theme for editor admin, import style.sass and apply class before rest of it // theme for editor admin, import style.sass and apply class before rest of it
// admin styles // admin styles
.wp-admin { .wp-admin {
.components-button.edit-post-fullscreen-mode-close.has-icon, .components-button.edit-post-fullscreen-mode-close.has-icon,
.edit-post-fullscreen-mode-close_site-icon { .edit-post-fullscreen-mode-close_site-icon {
@ -14,7 +13,6 @@
.site-icon-preview .app-icon-preview { .site-icon-preview .app-icon-preview {
background-color: #fff; background-color: #fff;
} }
// editor styles // editor styles
.edit-post-visual-editor__content-area { .edit-post-visual-editor__content-area {
.editor-styles-wrapper { .editor-styles-wrapper {
@ -25,7 +23,7 @@
// max-width: 80rem; // max-width: 80rem;
//``} //``}
font-family: $font__main; font-family: $font__main;
h1,figure,button { h1,h2,h3,h4,h5,ul,figure,button {
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
} }

View File

@ -5,6 +5,9 @@ body {
//background-position: center center; //background-position: center center;
//background-repeat: no-repeat; //background-repeat: no-repeat;
position: relative; position: relative;
&.admin-bar { //if else breaks the WordPress inline styles when front end editing
position: inherit;
}
} }
.liquid-bubbles { .liquid-bubbles {
overflow: hidden; overflow: hidden;

View File

@ -10,7 +10,7 @@ input[type="submit"],
background: $color__background-button; background: $color__background-button;
color: $color__white; color: $color__white;
font-size: $font__size-body * 0.9; font-size: $font__size-body * 0.9;
line-height: 1; //line-height: 1;
padding: 0.6em; padding: 0.6em;
margin: 0; margin: 0;

View File

@ -16,13 +16,14 @@ input[type="color"],
textarea { textarea {
color: $color__text-input; color: $color__text-input;
background-color: $color__background-input; background-color: $color__background-input;
border: none; border: $border__line;
border-radius: 0; border-radius: 0;
width: 100%; width: 100%;
padding: 0.3rem; padding: 0.3rem;
&:focus,&:focus-within,&:focus-visible {
&:focus {
color: $color__text-input-focus; color: $color__text-input-focus;
box-shadow: none;
outline: unset;
} }
} }

View File

@ -95,6 +95,12 @@
// margin: 0; // margin: 0;
// } // }
//} //}
.archive,.category {
.page-header {
text-transform: capitalize;
}
}
.home-featured { .home-featured {
h2,.h2 { h2,.h2 {
margin: 1.2rem 0; margin: 1.2rem 0;
@ -127,10 +133,10 @@
font-size: $font__size-body*2.1; font-size: $font__size-body*2.1;
} }
h5 { h5 {
font-size: $font__size-body*2; font-size: $font__size-body*1.8;
} }
h6 { h6 {
font-size: $font__size-body*2; font-size: $font__size-body*1.6;
padding: 0; padding: 0;
} }
} }

View File

@ -20,7 +20,7 @@
} }
.site-main { .site-main {
.entry-title { .entry-title {
margin: 0.5em 0 0 0; //margin: 0.5em 0 0 0;
} }
} }
.page-links { .page-links {
@ -30,9 +30,8 @@
.home-featured { .home-featured {
padding: 0 1rem; padding: 0 1rem;
} }
/* /*
* big lletters block below titles * big letters block below titles
* */ * */
.xarxaprod-intro { .xarxaprod-intro {
@ -48,20 +47,27 @@
.ratlla-abaix,.border-bottom { .ratlla-abaix,.border-bottom {
.wp-block-column { .wp-block-column {
position:relative; position:relative;
}
.wp-block-heading {
padding-top: 1em; padding-top: 1em;
padding-bottom: 2em; padding-bottom: 1em;
display:inline-grid; > :last-child {
// border-bottom: $border__line;
&:after { &:after {
content: ""; content: "";
border-bottom: $border__line; border-bottom: $border__line;
width: 100%; width: 100%;
position: absolute; position: absolute;
bottom: 0; bottom: 0;
left: 0;
} }
} }
} }
.wp-block-heading {
display:inline-grid;
}
p {
margin-bottom: 0;
}
}
/* /*
* download files * download files
@ -87,7 +93,7 @@
} }
/* used in /* used in
* ./template-parts/section-eachpost.php * template-parts/section-eachpost.php
* */ * */
.xarxaprod-card-each { .xarxaprod-card-each {
display: flex; display: flex;
@ -95,7 +101,7 @@
.entry-title { .entry-title {
margin: 0; margin: 0;
padding: 0 0 0.5rem 0; padding: 0 0 0.5rem 0;
border-bottom: $border__line; //border-bottom: $border__line;
} }
h6 { h6 {
padding: 0.5rem 1rem 0.5rem 0; padding: 0.5rem 1rem 0.5rem 0;
@ -119,10 +125,22 @@
} }
/* used in /* used in
* ./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
* */ * */
.xarxaprod-card-each {
&.xarxaprod-ajut {
.entry-title {
display: inline-flex;
align-items: flex-end;
min-height: $font__size-body * 6.6;
height: $font__size-body * 6.6;
border-bottom: $border__line;
overflow: hidden;
}
}
}
.xarxaprod-fund-info-fields, .xarxaprod-fund-info-fields,
.xarxaprod-fund-info-contact-fields { .xarxaprod-fund-info-contact-fields {
display: grid; display: grid;
@ -172,9 +190,63 @@
font-size: $font__size-body*0.8; font-size: $font__size-body*0.8;
} }
} }
/* 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;
li {
padding: 0.2em 0;
border-bottom: $border__line;
font-size: $font__size-body*1;
&:first-of-type {
border-top: $border__line;
}
.xarxaprod-label li {
display: inherit;
margin: 0;
padding: 0;
color: inherit;
border: none;
background-color: transparent;
font-size: inherit;
&:nth-child(n+2):before {
content:", ";
display:inline-block;
}
}
}
dt,dd {
display: inline;
font-weight: 100;
margin: 0;
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-start;
min-height: $font__size-body * 3.6;
}
}
}
.single-xarxaprod-convo {
article.xarxaprod-convo { article.xarxaprod-convo {
> .xarxaprod-convo-info-fields, { > .xarxaprod-convo-info-fields {
padding-top: 2rem; padding-top: 2rem;
padding-bottom: 2rem;
} }
> .entry-footer { > .entry-footer {
padding-top: 2rem; padding-top: 2rem;
@ -195,30 +267,11 @@
} }
.xarxaprod-convo-info-fields, .xarxaprod-convo-info-fields,
.xarxaprod-agenda-info { .xarxaprod-agenda-info {
margin-bottom: 2em;
li { li {
display:grid; display:grid;
grid-template-columns: 0.75fr 2.25fr; grid-template-columns: 0.75fr 2.25fr;
padding: 0.2em 0; &:first-of-type{
//border-top: 0.05em solid $color__black;
border-top: $border__line; border-top: $border__line;
font-size: $font__size-body*1;
&:last-of-type{
//border-bottom: 0.05em solid $color__black;
border-bottom: $border__line;
}
.xarxaprod-label li {
display: inherit;
margin: 0;
padding: 0;
color: inherit;
border: none;
background-color: none;
font-size: inherit;
&:nth-child(n+2):before {
content:", ";
display:inline-block;
}
} }
} }
dt { dt {
@ -230,9 +283,6 @@
margin: 0; margin: 0;
font-weight: 700; font-weight: 700;
} }
p {
grid-row: 1 / 2;
margin: 0;
} }
} }
@ -320,6 +370,8 @@
} }
/* mapas leaflet associats */ /* mapas leaflet associats */
.xarxaprod-associats-map,.xarxaprod-espais-map { .xarxaprod-associats-map,.xarxaprod-espais-map {
margin:0;
grid-column: 1 / -1;
aspect-ratio: 4 / 3; aspect-ratio: 4 / 3;
background-color: rgba(200,200,200,0.4); //place holder background color background-color: rgba(200,200,200,0.4); //place holder background color
} }
@ -335,28 +387,27 @@
} }
/* /*
* categories: * categories:
*
* convocatorias pre 2024 * convocatorias pre 2024
* agenda, activitats, agenda-es * REC
* *
* * * * * * * * * * * * * * * */ * * * * * * * * * * * * * * * */
.xarxaprod-cards,.category-convocatories, .xarxaprod-cards,.category-convocatories, .category-rec {
.category-activitats,.category-agenda,.category-agenda-es {
display: flex; display: flex;
flex-flow: column; flex-flow: column;
justify-content: flex-end; justify-content: flex-end;
padding-bottom: 4em; padding-bottom: $font__size-body * 2;
.wp-block-post-title { .wp-block-post-title {
text-transform: lowercase; text-transform: lowercase;
font-size: $font__size-body*1.5; font-size: $font__size-body*1.5;
margin-bottom: 0.5em; margin-bottom: 0.5em;
padding-bottom: 0.5em; padding-bottom: 0.5em;
//border-bottom: 0.05em solid $color__black;
border-bottom: $border__line; border-bottom: $border__line;
} }
.post-excerpt,
.wp-block-post-excerpt { .wp-block-post-excerpt {
min-height: $font__size-body * 7;
margin: 0.5em 0; margin: 0.5em 0;
//border-bottom: 0.05em solid $color__black; font-size: $font__size-body * 1;
border-bottom: $border__line; border-bottom: $border__line;
} }
.wp-block-read-more { .wp-block-read-more {
@ -364,8 +415,16 @@
} }
} }
/*
* categories:
* agenda, activitats, agenda-es
*
* * * * * * * * * * * * * * * */
//.category-activitats,.category-agenda,.category-agenda-es
/* used in /* used in
* ./template-parts/section-agenda.php * template-parts/section-last-agenda.php
* template-parts/section-each-agenda-entry.php
* */ * */
.xarxaprod-agenda { .xarxaprod-agenda {
.xarxaprod-card-each { .xarxaprod-card-each {
@ -373,10 +432,8 @@
flex-direction: column; flex-direction: column;
justify-content: space-between; justify-content: space-between;
padding: 0.2em 0; padding: 0.2em 0;
//border-bottom: 0.1em solid $color__black;
border-bottom: $border__line; border-bottom: $border__line;
&:first-of-type { &:first-of-type {
//border-top: 0.1em solid $color__black;
border-top: $border__line; border-top: $border__line;
} }
> * { > * {
@ -387,9 +444,9 @@
} }
.entry-title,h6 { .entry-title,h6 {
border-bottom: none; border-bottom: none;
padding: 0.5rem 0;
} }
p { p {
//font-size: $font__size-body * 1.5;
} }
.activity-organizer, .organiza-activitat { .activity-organizer, .organiza-activitat {
} }
@ -397,42 +454,57 @@
} }
} }
} }
li.category-activitats, .xarxaprod-card-each{
li[class*='category-agenda'] { &.category-activitats {
position: relative; justify-content: flex-start;
display: flex; .entry-title {
align-content: space-between; display: inline-flex;
.wp-block-post-featured-image { align-items: flex-start;
position: absolute; min-height: $font__size-body * 5.5;
top: 0; overflow: hidden;
margin: 0; border: none;
}
figure {
// position: absolute;
order: -1;
margin: 0 0 1rem 0;
width: 100%;
aspect-ratio: 16/9; aspect-ratio: 16/9;
overflow: hidden; overflow: hidden;
img {
object-position: 50% 50%;
max-height: 100%;
object-fit: cover;
width: 100%;
} }
.wp-block-post-title {
} }
.wp-block-post-title:before { .xarxaprod-agenda-info {
content: ""; margin-bottom: 0;
display: inline-block; }
min-width: 100%; li {
height: auto; display: inline-flex;
aspect-ratio: 16/9; width: 100%;
margin-bottom: 2em; max-height: 2.9rem;
background-color: rgba(230,230,230,0.4); overflow: hidden;
border-radius: 0.3em; font-weight: 100;
}
dt {
padding-right: 0.5rem;
text-transform: uppercase;
}
dd {
font-weight: 100;
}
.post-excerpt {
margin: 0;
min-height: 5rem;
}
} }
} }
/*
/* filters form custom fields * filters form custom fields
*/ * * */
.xarxaprod-filtered-content {
display: grid;
grid-template-columns: 1fr;
.archive-posts {
grid-template-columns: repeat(1 , minmax(0,1fr));
}
}
.xarxaprod-filters { .xarxaprod-filters {
section { section {
margin: 0; margin: 0;
@ -441,10 +513,6 @@
} }
} }
} }
.archive-posts {
// https://stackoverflow.com/questions/47601564/equal-width-columns-in-css-grid#61240964
grid-template-columns: repeat(1 , minmax(0,1fr));
}
.xarxaprod-titol-opcions { .xarxaprod-titol-opcions {
// applied in forms and contactforms // applied in forms and contactforms
@ -514,36 +582,34 @@
@media screen and (min-width: 48em) { @media screen and (min-width: 48em) {
//only bigger than 48em //only bigger than 48em
.xarxaprod-filters { .xarxaprod-filters {
padding-right: 2em; //padding-right: 2em;
section { section {
} }
} }
.xarxaprod-filtered-content {
grid-template-columns: 1fr 2fr;
gap: $grid__gap * 4;
}
.archive-posts { .archive-posts {
grid-template-columns: repeat(2 , minmax(0,1fr)); //grid-template-columns: repeat(2 , minmax(0,1fr));
} }
.single-xarxaprod-convo {
.xarxaprod-convo-info-fields, .xarxaprod-convo-info-fields,
.xarxaprod-agenda-info { .xarxaprod-agenda-info {
li { li {
font-size: $font__size-body*1.5; font-size: $font__size-body*1.5;
} }
} }
}
.single-xarxaprod-associat { .single-xarxaprod-associat {
.xarxaprod-associat { .xarxaprod-associat {
}
.xarxaprod-associat-info { .xarxaprod-associat-info {
grid-template-columns: 1fr 1fr 1fr; grid-template-columns: 1fr 1fr 1fr;
} }
.xarxaprod-associat-location { .xarxaprod-associat-location {
}
.xarxaprod-associat-osm-link { .xarxaprod-associat-osm-link {
grid-template-columns: min-content auto; grid-template-columns: min-content auto;
} }
} }
}
}
.xarxaprod-agenda { .xarxaprod-agenda {
.xarxaprod-card-each { .xarxaprod-card-each {
flex-direction: row-reverse; flex-direction: row-reverse;
@ -562,16 +628,11 @@
@media screen and (min-width: 80em) { @media screen and (min-width: 80em) {
//only bigger than 80rem //only bigger than 80rem
.xarxaprod-filtered-content { .xarxaprod-filtered-content {
grid-template-columns: 1fr 3fr; //grid-template-columns: 1fr 3fr;
gap: $grid__gap * 6; .archive-xarxaprod-associats,&.archive-custom-post-type-associat {
.archive-posts { //grid-template-columns: repeat(1 , minmax(0,1fr));
grid-template-columns: repeat(2 , minmax(0,1fr));
&.archive-xarxaprod-associats,&.archive-custom-post-type-associat {
grid-template-columns: repeat(1 , minmax(0,1fr));
}
} }
} }
.archive-posts { .archive-posts {
grid-template-columns: repeat(3 , minmax(0,1fr));
} }
} }

View File

@ -70,6 +70,32 @@
} }
.menu-item-has-children { .menu-item-has-children {
} }
.menu-menu-agenda-container {
.menu-item-has-children {
padding-right: 0;
}
> ul{
border-bottom: $border__line;
}
li {
> ul {
margin-left: 0;
}
> a {
display: block;
padding: 0.5rem 0;
border-top: $border__line;
&:last-of-type {
}
}
}
.current-menu-item {
> a {
font-weight: 900;
}
}
}
/* begin of menu-hidden */ /* begin of menu-hidden */
//.toggle-secondary-navigation .show-mobile{ //.toggle-secondary-navigation .show-mobile{

View File

@ -69,6 +69,7 @@
} }
.site-main { .site-main {
padding: 0 1rem; padding: 0 1rem;
gap: $grid__gap;
> section { > section {
padding: 0; padding: 0;
> header { > header {
@ -76,6 +77,24 @@
} }
} }
} }
.archive,
.category {
.site-main {
display:grid;
grid-template-columns: 1fr;
> header {
grid-column: 1 / -1;
}
}
}
.xarxaprod-filtered-content {
display: grid;
grid-template-columns: 1fr;
gap: $grid__gap;
.archive-posts {
}
}
.site-footer { .site-footer {
display: flex; display: flex;
flex-flow: row; flex-flow: row;
@ -174,10 +193,18 @@
align-items: center; align-items: center;
width: 100%; width: 100%;
} }
}
.page-template-agenda-archive {
.site-main {
> article {
padding-bottom: 1rem;
}
}
} }
.site-main { .site-main {
padding: 0; padding: 0;
> article { > article {
padding-top: 4rem;
padding-bottom: 4rem; padding-bottom: 4rem;
&.xarxaprod-ajut { &.xarxaprod-ajut {
display: grid; display: grid;
@ -207,6 +234,19 @@
padding-bottom: 4rem; padding-bottom: 4rem;
} }
} }
.archive,
.category {
.site-main {
grid-template-columns: 1fr 3fr;
> header {
}
}
}
.xarxaprod-filtered-content {
grid-template-columns: 1fr 3fr;
.archive-posts {
}
}
.site-footer { .site-footer {
flex-flow: column; flex-flow: column;
} }
@ -219,10 +259,18 @@
} }
} }
.xarxaprod-destacats,.xarxaprod-featured, .xarxaprod-destacats,.xarxaprod-featured,
.xarxaprod-last-convos,.xarxaprod-ultimes-convocatories, .xarxaprod-last-convos,.xarxaprod-ultimes-convocatories {
.archive-posts {
grid-template-columns: repeat(3 , 1fr); grid-template-columns: repeat(3 , 1fr);
} }
.archive-posts {
grid-template-columns: repeat(2 , 1fr);
min-height: 40vh;
}
.post-type-archive-xarxaprod-associat {
.archive-posts {
grid-template-columns: 1fr;
}
}
.xarxaprod-faqs-aside { .xarxaprod-faqs-aside {
display: flex; display: flex;
flex-direction: row; flex-direction: row;

View File

@ -5,7 +5,7 @@ Theme URI: https://git.hangar.org/xarxaprod/
Author: Hangar.org Tech Lab - hangar.org Author: Hangar.org Tech Lab - hangar.org
Author URI: https://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> 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.0 Version: 1.6.0
Tested up to: 6.4 Tested up to: 6.4
Requires PHP: 7.4 Requires PHP: 7.4
License: GNU General Public License v3 or later License: GNU General Public License v3 or later

473
style.css
View File

@ -5,7 +5,7 @@ Theme URI: https://git.hangar.org/xarxaprod/
Author: Hangar.org Tech Lab - hangar.org Author: Hangar.org Tech Lab - hangar.org
Author URI: https://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> 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.0 Version: 1.6.0
Tested up to: 6.4 Tested up to: 6.4
Requires PHP: 7.4 Requires PHP: 7.4
License: GNU General Public License v3 or later License: GNU General Public License v3 or later
@ -590,12 +590,17 @@ textarea {
font-size: 1.1rem; font-size: 1.1rem;
} }
.archive .page-header,
.category .page-header {
text-transform: capitalize;
}
.home-featured h2, .home-featured h2,
.home-featured .h2 { .home-featured .h2 {
margin: 1.2rem 0; margin: 1.2rem 0;
font-size: 2rem; font-size: 2rem;
line-height: 1.2; line-height: 1.2;
border-bottom: 0.05em solid #000; border-bottom: 0.05rem solid #000;
} }
/* entry content */ /* entry content */
@ -615,11 +620,11 @@ textarea {
} }
.xarxaprod-intro h5 { .xarxaprod-intro h5 {
font-size: 2rem; font-size: 1.8rem;
} }
.xarxaprod-intro h6 { .xarxaprod-intro h6 {
font-size: 2rem; font-size: 1.6rem;
padding: 0; padding: 0;
} }
@ -697,7 +702,7 @@ textarea {
.home-featured h2, .home-featured h2,
.home-featured .h2 { .home-featured .h2 {
font-size: 3.5rem; font-size: 3.5rem;
border-bottom: 0.05em solid #000; border-bottom: 0.05rem solid #000;
} }
} }
@ -823,6 +828,10 @@ body {
position: relative; position: relative;
} }
body.admin-bar {
position: inherit;
}
.liquid-bubbles { .liquid-bubbles {
overflow: hidden; overflow: hidden;
float: left; float: left;
@ -949,7 +958,7 @@ dd {
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: 0.05em solid #000; border: 0.05rem solid #000;
background-color: none; background-color: none;
font-size: 0.8rem; font-size: 0.8rem;
} }
@ -1146,7 +1155,6 @@ input[type="submit"],
background: #000; background: #000;
color: #fff; color: #fff;
font-size: 0.9rem; font-size: 0.9rem;
line-height: 1;
padding: 0.6em; padding: 0.6em;
margin: 0; margin: 0;
} }
@ -1243,34 +1251,68 @@ input[type="datetime-local"],
input[type="color"], input[type="color"],
textarea { textarea {
color: #111; color: #111;
background-color: #eee; background-color: transparent;
border: none; border: 0.05rem solid #000;
border-radius: 0; border-radius: 0;
width: 100%; width: 100%;
padding: 0.3rem; padding: 0.3rem;
} }
input[type="text"]:focus, input[type="text"]:focus,
input[type="text"]:focus-within,
input[type="text"]:focus-visible,
input[type="email"]:focus, input[type="email"]:focus,
input[type="email"]:focus-within,
input[type="email"]:focus-visible,
input[type="url"]:focus, input[type="url"]:focus,
input[type="url"]:focus-within,
input[type="url"]:focus-visible,
input[type="password"]:focus, input[type="password"]:focus,
input[type="password"]:focus-within,
input[type="password"]:focus-visible,
input[type="search"]:focus, input[type="search"]:focus,
input[type="search"]:focus-within,
input[type="search"]:focus-visible,
input[type="number"]:focus, input[type="number"]:focus,
input[type="number"]:focus-within,
input[type="number"]:focus-visible,
input[type="tel"]:focus, input[type="tel"]:focus,
input[type="tel"]:focus-within,
input[type="tel"]:focus-visible,
input[type="range"]:focus, input[type="range"]:focus,
input[type="range"]:focus-within,
input[type="range"]:focus-visible,
input[type="date"]:focus, input[type="date"]:focus,
input[type="date"]:focus-within,
input[type="date"]:focus-visible,
input[type="month"]:focus, input[type="month"]:focus,
input[type="month"]:focus-within,
input[type="month"]:focus-visible,
input[type="week"]:focus, input[type="week"]:focus,
input[type="week"]:focus-within,
input[type="week"]:focus-visible,
input[type="time"]:focus, input[type="time"]:focus,
input[type="time"]:focus-within,
input[type="time"]:focus-visible,
input[type="datetime"]:focus, input[type="datetime"]:focus,
input[type="datetime"]:focus-within,
input[type="datetime"]:focus-visible,
input[type="datetime-local"]:focus, input[type="datetime-local"]:focus,
input[type="datetime-local"]:focus-within,
input[type="datetime-local"]:focus-visible,
input[type="color"]:focus, input[type="color"]:focus,
textarea:focus { input[type="color"]:focus-within,
input[type="color"]:focus-visible,
textarea:focus,
textarea:focus-within,
textarea:focus-visible {
color: #000; color: #000;
box-shadow: none;
outline: unset;
} }
select { select {
border: 0.05em solid #000; border: 0.05rem solid #000;
} }
textarea { textarea {
@ -1350,6 +1392,7 @@ textarea {
.site-main { .site-main {
padding: 0 1rem; padding: 0 1rem;
gap: 1rem;
} }
.site-main > section { .site-main > section {
@ -1360,6 +1403,23 @@ textarea {
padding: 1em 0; padding: 1em 0;
} }
.archive .site-main,
.category .site-main {
display: grid;
grid-template-columns: 1fr;
}
.archive .site-main > header,
.category .site-main > header {
grid-column: 1 / -1;
}
.xarxaprod-filtered-content {
display: grid;
grid-template-columns: 1fr;
gap: 1rem;
}
.site-footer { .site-footer {
display: flex; display: flex;
flex-flow: row; flex-flow: row;
@ -1375,7 +1435,7 @@ textarea {
.site-footer .site-info > section { .site-footer .site-info > section {
margin-top: 2em; margin-top: 2em;
padding: 2em 4em; padding: 2em 4em;
border-top: 0.05em solid #000; border-top: 0.05rem solid #000;
} }
.site-footer a { .site-footer a {
@ -1471,11 +1531,16 @@ textarea {
width: 100%; width: 100%;
} }
.page-template-agenda-archive .site-main > article {
padding-bottom: 1rem;
}
.site-main { .site-main {
padding: 0; padding: 0;
} }
.site-main > article { .site-main > article {
padding-top: 4rem;
padding-bottom: 4rem; padding-bottom: 4rem;
} }
@ -1508,6 +1573,15 @@ textarea {
padding-bottom: 4rem; padding-bottom: 4rem;
} }
.archive .site-main,
.category .site-main {
grid-template-columns: 1fr 3fr;
}
.xarxaprod-filtered-content {
grid-template-columns: 1fr 3fr;
}
.site-footer { .site-footer {
flex-flow: column; flex-flow: column;
} }
@ -1523,11 +1597,19 @@ textarea {
.xarxaprod-destacats, .xarxaprod-destacats,
.xarxaprod-featured, .xarxaprod-featured,
.xarxaprod-last-convos, .xarxaprod-last-convos,
.xarxaprod-ultimes-convocatories, .xarxaprod-ultimes-convocatories {
.archive-posts {
grid-template-columns: repeat(3, 1fr); grid-template-columns: repeat(3, 1fr);
} }
.archive-posts {
grid-template-columns: repeat(2, 1fr);
min-height: 40vh;
}
.post-type-archive-xarxaprod-associat .archive-posts {
grid-template-columns: 1fr;
}
.xarxaprod-faqs-aside { .xarxaprod-faqs-aside {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
@ -1632,6 +1714,28 @@ textarea {
background-color: #000; background-color: #000;
} }
.menu-menu-agenda-container .menu-item-has-children {
padding-right: 0;
}
.menu-menu-agenda-container > ul {
border-bottom: 0.05rem solid #000;
}
.menu-menu-agenda-container li > ul {
margin-left: 0;
}
.menu-menu-agenda-container li > a {
display: block;
padding: 0.5rem 0;
border-top: 0.05rem solid #000;
}
.menu-menu-agenda-container .current-menu-item > a {
font-weight: 900;
}
/* begin of menu-hidden */ /* begin of menu-hidden */
/* end of menu hidden*/ /* end of menu hidden*/
@ -1769,7 +1873,7 @@ textarea {
right: 0.3em; right: 0.3em;
width: 0.3em; width: 0.3em;
height: 0.3em; height: 0.3em;
border: 0.05em solid #000; border: 0.05rem solid #000;
border-top: none; border-top: none;
border-left: none; border-left: none;
-moz-transform: rotate(45deg); -moz-transform: rotate(45deg);
@ -1857,10 +1961,6 @@ textarea {
margin: 1.5em 0 0; margin: 1.5em 0 0;
} }
.site-main .entry-title {
margin: 0.5em 0 0 0;
}
.page-links { .page-links {
clear: both; clear: both;
margin: 0 0 1.5em; margin: 0 0 1.5em;
@ -1871,7 +1971,7 @@ textarea {
} }
/* /*
* big lletters block below titles * big letters block below titles
* */ * */
.xarxaprod-intro { .xarxaprod-intro {
line-height: 1.2; line-height: 1.2;
@ -1886,22 +1986,28 @@ textarea {
.ratlla-abaix .wp-block-column, .ratlla-abaix .wp-block-column,
.border-bottom .wp-block-column { .border-bottom .wp-block-column {
position: relative; position: relative;
padding-top: 1em;
padding-bottom: 1em;
}
.ratlla-abaix .wp-block-column > :last-child::after,
.border-bottom .wp-block-column > :last-child::after {
content: "";
border-bottom: 0.05rem solid #000;
width: 100%;
position: absolute;
bottom: 0;
left: 0;
} }
.ratlla-abaix .wp-block-heading, .ratlla-abaix .wp-block-heading,
.border-bottom .wp-block-heading { .border-bottom .wp-block-heading {
padding-top: 1em;
padding-bottom: 2em;
display: inline-grid; display: inline-grid;
} }
.ratlla-abaix .wp-block-heading::after, .ratlla-abaix p,
.border-bottom .wp-block-heading::after { .border-bottom p {
content: ""; margin-bottom: 0;
border-bottom: 0.05em solid #000;
width: 100%;
position: absolute;
bottom: 0;
} }
/* /*
@ -1914,7 +2020,7 @@ textarea {
.download-files a { .download-files a {
display: inline-block; display: inline-block;
width: 100%; width: 100%;
border-bottom: 0.05em solid #000; border-bottom: 0.05rem solid #000;
} }
.descarregar-fitxers a::after, .descarregar-fitxers a::after,
@ -1931,7 +2037,7 @@ textarea {
} }
/* used in /* used in
* ./template-parts/section-eachpost.php * template-parts/section-eachpost.php
* */ * */
.xarxaprod-card-each { .xarxaprod-card-each {
display: flex; display: flex;
@ -1941,12 +2047,11 @@ textarea {
.xarxaprod-card-each .entry-title { .xarxaprod-card-each .entry-title {
margin: 0; margin: 0;
padding: 0 0 0.5rem 0; padding: 0 0 0.5rem 0;
border-bottom: 0.05em solid #000;
} }
.xarxaprod-card-each h6 { .xarxaprod-card-each h6 {
padding: 0.5rem 1rem 0.5rem 0; padding: 0.5rem 1rem 0.5rem 0;
border-bottom: 0.05em solid #000; border-bottom: 0.05rem solid #000;
} }
.xarxaprod-card-each .xarxaprod-deadline { .xarxaprod-card-each .xarxaprod-deadline {
@ -1959,7 +2064,7 @@ textarea {
} }
.xarxaprod-card-each .excerpt { .xarxaprod-card-each .excerpt {
border-bottom: 0.05em solid #000; border-bottom: 0.05rem solid #000;
margin-bottom: 0.5em; margin-bottom: 0.5em;
padding: 0.5em 0; padding: 0.5em 0;
} }
@ -1969,10 +2074,19 @@ textarea {
} }
/* used in /* used in
* ./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
* */ * */
.xarxaprod-card-each.xarxaprod-ajut .entry-title {
display: inline-flex;
align-items: flex-end;
min-height: 6.6rem;
height: 6.6rem;
border-bottom: 0.05rem solid #000;
overflow: hidden;
}
.xarxaprod-fund-info-fields, .xarxaprod-fund-info-fields,
.xarxaprod-fund-info-contact-fields { .xarxaprod-fund-info-contact-fields {
display: grid; display: grid;
@ -1982,7 +2096,7 @@ textarea {
.xarxaprod-fund-info-fields .xarxaprod-fund-info-field, .xarxaprod-fund-info-fields .xarxaprod-fund-info-field,
.xarxaprod-fund-info-contact-fields .xarxaprod-fund-info-field { .xarxaprod-fund-info-contact-fields .xarxaprod-fund-info-field {
padding: 1rem 0; padding: 1rem 0;
border-bottom: 0.05em solid #000; border-bottom: 0.05rem solid #000;
} }
.xarxaprod-fund-info-fields h6, .xarxaprod-fund-info-fields h6,
@ -2034,47 +2148,22 @@ textarea {
font-size: 0.8rem; font-size: 0.8rem;
} }
article.xarxaprod-convo > .xarxaprod-convo-info-fields { /* used in
padding-top: 2rem; * archive-xarxaprod-convo.php
} * page-template/convo-search.php
* template-parts/content-xarxaprod-convo.php
article.xarxaprod-convo > .entry-footer { * template-parts/section-eachconvo.php
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.05em solid #000;
}
article.xarxaprod-convo > .entry-footer .last-convos > header {
display: none;
}
.xarxaprod-convo-info-fields,
.xarxaprod-agenda-info {
margin-bottom: 2em;
}
.xarxaprod-convo-info-fields li, .xarxaprod-convo-info-fields li,
.xarxaprod-agenda-info li { .xarxaprod-agenda-info li {
display: grid;
grid-template-columns: 0.75fr 2.25fr;
padding: 0.2em 0; padding: 0.2em 0;
border-top: 0.05em solid #000; border-bottom: 0.05rem solid #000;
font-size: 1rem; font-size: 1rem;
} }
.xarxaprod-convo-info-fields li:last-of-type, .xarxaprod-convo-info-fields li:first-of-type,
.xarxaprod-agenda-info li:last-of-type { .xarxaprod-agenda-info li:first-of-type {
border-bottom: 0.05em solid #000; border-top: 0.05rem solid #000;
} }
.xarxaprod-convo-info-fields li .xarxaprod-label li, .xarxaprod-convo-info-fields li .xarxaprod-label li,
@ -2084,7 +2173,7 @@ textarea {
padding: 0; padding: 0;
color: inherit; color: inherit;
border: none; border: none;
background-color: none; background-color: transparent;
font-size: inherit; font-size: inherit;
} }
@ -2095,16 +2184,12 @@ textarea {
} }
.xarxaprod-convo-info-fields dt, .xarxaprod-convo-info-fields dt,
.xarxaprod-agenda-info dt {
grid-row: 1 / 1;
font-weight: 100;
}
.xarxaprod-convo-info-fields dd, .xarxaprod-convo-info-fields dd,
.xarxaprod-agenda-info dt,
.xarxaprod-agenda-info dd { .xarxaprod-agenda-info dd {
grid-row: 1 / 2; display: inline;
font-weight: 100;
margin: 0; margin: 0;
font-weight: 700;
} }
.xarxaprod-convo-info-fields p, .xarxaprod-convo-info-fields p,
@ -2113,6 +2198,61 @@ textarea {
margin: 0; margin: 0;
} }
.xarxaprod-card-each.xarxaprod-convo .entry-title {
display: inline-flex;
align-items: flex-start;
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 /* used in
* template-parts/content-xarxaprod-associat.php * template-parts/content-xarxaprod-associat.php
* * * * * * * * * */ * * * * * * * * * */
@ -2136,7 +2276,7 @@ textarea {
display: grid; display: grid;
font-size: 1rem; font-size: 1rem;
border: none; border: none;
border-top: 0.05em solid #000; border-top: 0.05rem solid #000;
margin: 0; margin: 0;
padding: 0.5em 0; padding: 0.5em 0;
} }
@ -2201,6 +2341,8 @@ textarea {
/* mapas leaflet associats */ /* mapas leaflet associats */
.xarxaprod-associats-map, .xarxaprod-associats-map,
.xarxaprod-espais-map { .xarxaprod-espais-map {
margin: 0;
grid-column: 1 / -1;
aspect-ratio: 4 / 3; aspect-ratio: 4 / 3;
background-color: rgba(200, 200, 200, 0.4); background-color: rgba(200, 200, 200, 0.4);
} }
@ -2217,64 +2359,67 @@ textarea {
/* /*
* categories: * categories:
*
* convocatorias pre 2024 * convocatorias pre 2024
* agenda, activitats, agenda-es * REC
* *
* * * * * * * * * * * * * * * */ * * * * * * * * * * * * * * * */
.xarxaprod-cards, .xarxaprod-cards,
.category-convocatories, .category-convocatories,
.category-activitats, .category-rec {
.category-agenda,
.category-agenda-es {
display: flex; display: flex;
flex-flow: column; flex-flow: column;
justify-content: flex-end; justify-content: flex-end;
padding-bottom: 4em; padding-bottom: 2rem;
} }
.xarxaprod-cards .wp-block-post-title, .xarxaprod-cards .wp-block-post-title,
.category-convocatories .wp-block-post-title, .category-convocatories .wp-block-post-title,
.category-activitats .wp-block-post-title, .category-rec .wp-block-post-title {
.category-agenda .wp-block-post-title,
.category-agenda-es .wp-block-post-title {
text-transform: lowercase; text-transform: lowercase;
font-size: 1.5rem; font-size: 1.5rem;
margin-bottom: 0.5em; margin-bottom: 0.5em;
padding-bottom: 0.5em; padding-bottom: 0.5em;
border-bottom: 0.05em solid #000; border-bottom: 0.05rem solid #000;
} }
.xarxaprod-cards .post-excerpt,
.xarxaprod-cards .wp-block-post-excerpt, .xarxaprod-cards .wp-block-post-excerpt,
.category-convocatories .post-excerpt,
.category-convocatories .wp-block-post-excerpt, .category-convocatories .wp-block-post-excerpt,
.category-activitats .wp-block-post-excerpt, .category-rec .post-excerpt,
.category-agenda .wp-block-post-excerpt, .category-rec .wp-block-post-excerpt {
.category-agenda-es .wp-block-post-excerpt { min-height: 7rem;
margin: 0.5em 0; margin: 0.5em 0;
border-bottom: 0.05em solid #000; font-size: 1rem;
border-bottom: 0.05rem solid #000;
} }
.xarxaprod-cards .wp-block-read-more, .xarxaprod-cards .wp-block-read-more,
.category-convocatories .wp-block-read-more, .category-convocatories .wp-block-read-more,
.category-activitats .wp-block-read-more, .category-rec .wp-block-read-more {
.category-agenda .wp-block-read-more,
.category-agenda-es .wp-block-read-more {
margin: 1em 0; margin: 1em 0;
} }
/*
* categories:
* agenda, activitats, agenda-es
*
* * * * * * * * * * * * * * * */
/* used in /* used in
* ./template-parts/section-agenda.php * template-parts/section-last-agenda.php
* template-parts/section-each-agenda-entry.php
* */ * */
.xarxaprod-agenda .xarxaprod-card-each { .xarxaprod-agenda .xarxaprod-card-each {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: space-between; justify-content: space-between;
padding: 0.2em 0; padding: 0.2em 0;
border-bottom: 0.05em solid #000; border-bottom: 0.05rem solid #000;
} }
.xarxaprod-agenda .xarxaprod-card-each:first-of-type { .xarxaprod-agenda .xarxaprod-card-each:first-of-type {
border-top: 0.05em solid #000; border-top: 0.05rem solid #000;
} }
.xarxaprod-agenda .xarxaprod-card-each > * { .xarxaprod-agenda .xarxaprod-card-each > * {
@ -2285,47 +2430,65 @@ textarea {
.xarxaprod-agenda .xarxaprod-card-each .entry-title, .xarxaprod-agenda .xarxaprod-card-each .entry-title,
.xarxaprod-agenda .xarxaprod-card-each h6 { .xarxaprod-agenda .xarxaprod-card-each h6 {
border-bottom: none; border-bottom: none;
padding: 0.5rem 0;
} }
li.category-activitats, .xarxaprod-card-each.category-activitats {
li[class*="category-agenda"] { justify-content: flex-start;
position: relative;
display: flex;
align-content: space-between;
} }
li.category-activitats .wp-block-post-featured-image, .xarxaprod-card-each.category-activitats .entry-title {
li[class*="category-agenda"] .wp-block-post-featured-image { display: inline-flex;
position: absolute; align-items: flex-start;
top: 0; min-height: 5.5rem;
margin: 0; overflow: hidden;
border: none;
}
.xarxaprod-card-each.category-activitats figure {
order: -1;
margin: 0 0 1rem 0;
width: 100%;
aspect-ratio: 16/9; aspect-ratio: 16/9;
overflow: hidden; overflow: hidden;
} }
li.category-activitats .wp-block-post-title::before, .xarxaprod-card-each.category-activitats figure img {
li[class*="category-agenda"] .wp-block-post-title::before { object-position: 50% 50%;
content: ""; max-height: 100%;
display: inline-block; object-fit: cover;
min-width: 100%; width: 100%;
height: auto;
aspect-ratio: 16/9;
margin-bottom: 2em;
background-color: rgba(230, 230, 230, 0.4);
border-radius: 0.3em;
} }
/* filters form custom fields .xarxaprod-card-each.category-activitats .xarxaprod-agenda-info {
*/ margin-bottom: 0;
.xarxaprod-filtered-content {
display: grid;
grid-template-columns: 1fr;
} }
.xarxaprod-filtered-content .archive-posts { .xarxaprod-card-each.category-activitats li {
grid-template-columns: repeat(1, minmax(0, 1fr)); display: inline-flex;
width: 100%;
max-height: 2.9rem;
overflow: hidden;
font-weight: 100;
} }
.xarxaprod-card-each.category-activitats dt {
padding-right: 0.5rem;
text-transform: uppercase;
}
.xarxaprod-card-each.category-activitats dd {
font-weight: 100;
}
.xarxaprod-card-each.category-activitats .post-excerpt {
margin: 0;
min-height: 5rem;
}
/*
* filters form custom fields
* * */
.xarxaprod-filters section { .xarxaprod-filters section {
margin: 0; margin: 0;
} }
@ -2334,10 +2497,6 @@ textarea {
display: none; display: none;
} }
.archive-posts {
grid-template-columns: repeat(1, minmax(0, 1fr));
}
.xarxaprod-titol-opcions { .xarxaprod-titol-opcions {
display: inline-block; display: inline-block;
width: 100%; width: 100%;
@ -2348,7 +2507,7 @@ textarea {
cursor: pointer; cursor: pointer;
font-weight: 900; font-weight: 900;
font-size: 0.9rem; font-size: 0.9rem;
border: 0.05em solid #000; border: 0.05rem solid #000;
} }
.xarxaprod-titol-opcions::after { .xarxaprod-titol-opcions::after {
@ -2410,29 +2569,16 @@ textarea {
@media screen and (min-width: 48em) { @media screen and (min-width: 48em) {
.xarxaprod-filters { .single-xarxaprod-convo .xarxaprod-convo-info-fields li,
padding-right: 2em; .single-xarxaprod-convo .xarxaprod-agenda-info li {
}
.xarxaprod-filtered-content {
grid-template-columns: 1fr 2fr;
gap: 4rem;
}
.archive-posts {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.xarxaprod-convo-info-fields li,
.xarxaprod-agenda-info li {
font-size: 1.5rem; font-size: 1.5rem;
} }
.single-xarxaprod-associat .xarxaprod-associat .xarxaprod-associat-info { .single-xarxaprod-associat .xarxaprod-associat-info {
grid-template-columns: 1fr 1fr 1fr; grid-template-columns: 1fr 1fr 1fr;
} }
.single-xarxaprod-associat .xarxaprod-associat .xarxaprod-associat-location .xarxaprod-associat-osm-link { .single-xarxaprod-associat .xarxaprod-associat-osm-link {
grid-template-columns: min-content auto; grid-template-columns: min-content auto;
} }
@ -2456,27 +2602,6 @@ textarea {
} }
} }
@media screen and (min-width: 80em) {
.xarxaprod-filtered-content {
grid-template-columns: 1fr 3fr;
gap: 6rem;
}
.xarxaprod-filtered-content .archive-posts {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.xarxaprod-filtered-content .archive-posts.archive-xarxaprod-associats,
.xarxaprod-filtered-content .archive-posts.archive-custom-post-type-associat {
grid-template-columns: repeat(1, minmax(0, 1fr));
}
.archive-posts {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
}
/* Comments /* Comments
--------------------------------------------- */ --------------------------------------------- */
.comment-content a { .comment-content a {
@ -2758,7 +2883,7 @@ textarea {
.wpcf7-form input:not([type="submit"]), .wpcf7-form input:not([type="submit"]),
.wpcf7-form textarea { .wpcf7-form textarea {
background: transparent; background: transparent;
border: 0.05em solid #000; border: 0.05rem solid #000;
padding: 1em; padding: 1em;
} }
@ -2828,7 +2953,7 @@ textarea {
} }
.contactform-fund-options label.oficinasuport-titol-opcions { .contactform-fund-options label.oficinasuport-titol-opcions {
border: 0.05em solid #000; border: 0.05rem solid #000;
width: 100%; width: 100%;
display: inline-block; display: inline-block;
margin-bottom: 1em; margin-bottom: 1em;

File diff suppressed because one or more lines are too long

View File

@ -11,53 +11,23 @@
<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 <h1 class="entry-title">
the_title( '<h3 class="entry-title">', '</h3>' ); <?php the_title(); ?>
</h1>
<?php
if ( 'post' === get_post_type() ) : if ( 'post' === get_post_type() ) :
?> ?>
<div class="entry-meta"> <div class="entry-meta">
<?php if ( in_category('faq') ){ <?php if ( in_category('faq') ){
// display each faq category of the post as label
xarxaprod_display_each_faq_categories(); xarxaprod_display_each_faq_categories();
//xarxaprod_display_faqs_labels();
} ;?> } ;?>
<?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(

View File

@ -15,8 +15,6 @@
<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?> <?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
</header><!-- .entry-header --> </header><!-- .entry-header -->
<aside cass="xarxaprod-espai-image"> <aside cass="xarxaprod-espai-image">
<?php <?php
if( get_field('xxp_convo_espai_associat') ): if( get_field('xxp_convo_espai_associat') ):
@ -60,8 +58,6 @@
?> ?>
</aside> </aside>
<section class="xarxaprod-convo-info-fields"> <section class="xarxaprod-convo-info-fields">
<ul> <ul>
<?php if( get_field('xxp_convo_espai_associat') ): <?php if( get_field('xxp_convo_espai_associat') ):
@ -106,10 +102,14 @@
<dt>Termini</dt> <dt>Termini</dt>
<?php if( get_field('xxp_convo_apply_begin') || get_field('xxp_convo_apply_end') ): ?> <?php if( get_field('xxp_convo_apply_begin') || get_field('xxp_convo_apply_end') ): ?>
<dd class="xarxaprod-label item-xxp_convo_dates"> <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> <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> <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') ): ?> <?php if( get_field('xxp_convo_apply_text') ): ?>
<br />
<span class="item-xxp_convo_apply_text"><?php the_field('xxp_convo_apply_text'); ?></span> <span class="item-xxp_convo_apply_text"><?php the_field('xxp_convo_apply_text'); ?></span>
<?php endif; ?> <?php endif; ?>
</dd> </dd>
@ -120,10 +120,13 @@
<dt>Periode</dt> <dt>Periode</dt>
<?php if( get_field('xxp_convo_date_begin') || get_field('xxp_convo_date_end') ): ?> <?php if( get_field('xxp_convo_date_begin') || get_field('xxp_convo_date_end') ): ?>
<dd class="xarxaprod-label item-xxp_convo_dates"> <dd class="xarxaprod-label item-xxp_convo_dates">
del <?php if( get_field('xxp_convo_date_begin') ): ?>
<span class="item-xxp_convo_date_begin">del <?php the_field('xxp_convo_date_begin'); ?> </span> <span class="item-xxp_convo_date_begin">del <?php the_field('xxp_convo_date_begin'); ?> </span>
al <?php endif;?>
<?php if( get_field('xxp_convo_date_end') && !get_field('xxp_convo_date_begin') ){ echo 'fins'; } ?>
<?php if( get_field('xxp_convo_date_end') ): ?>
<span class="item-xxp_convo_date_end">al <?php the_field('xxp_convo_date_end'); ?> </span> <span class="item-xxp_convo_date_end">al <?php the_field('xxp_convo_date_end'); ?> </span>
<?php endif;?>
</dd> </dd>
<?php endif; ?> <?php endif; ?>
</li> </li>

View File

@ -0,0 +1,70 @@
<?php
/**
* Template part for displaying posts from category "agenda"
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
*
* @package Xarxaprod_theme
* @used by template-parts/content-post.php
* @shown in : archive category
*
*/
?>
<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>
<?php if ( has_post_thumbnail() ){?>
<figure class="xarxaprod-activitat-image">
<a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>">
</a>
<img src="<?php echo get_the_post_thumbnail_url(); ?>" title="<?php the_title(); ?>" alt="imatge ilustra <?php the_title(); ?>" />
</figure>
<?php } else { ?>
<figure class="xarxaprod-activitat-image">
<a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>">
</a>
<img src="<?php echo catch_post_first_image();?>" title="<?php the_title(); ?>" alt="imatge ilustra <?php the_title(); ?>" />
</figure>
<?php };?>
<aside class="xarxaprod-agenda-info">
<ul>
<li>
<dt>Data:</dt>
<?php if( get_field('xxp_agenda_date_start') || get_field('xxp_agenda_date_start') ): ?>
<?php if( get_field('xxp_agenda_date_start') ){ ?>
<dd class="item-xxp-agenda-date-start"><?php the_field('xxp_agenda_date_start'); ?></dd>
<?php } elseif ( get_field('xxp_agenda_date_end') ){ ?>
<dt>Fins al</dt>
<dd class="item-xxp-agenda-date-end"><?php the_field('xxp_agenda_date_end'); ?></dd>
<?php }; ?>
<?php endif; ?>
</li>
<?php if ( get_field('xxp_agenda_free_text') ){?>
<li>
<span class="item-xxp-agenda-free-text"><?php the_field('xxp_agenda_free_text'); ?></span>
</li>
<?php }; ?>
</ul>
</aside>
<?php if ( get_the_excerpt() ){ ?>
<section class="excerpt post-excerpt">
<?php //the_excerpt() ?>
<?php echo wp_trim_words(get_the_excerpt(), 22); // https://developer.wordpress.org/reference/functions/wp_trim_words/?>
</section>
<?php ; }?>
<nav class="more-link">
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" rel="bookmark" class="button button-more">
Més info
<span class="hide"><?php the_title(); ?></span>
</a>
</nav>
</article>

View File

@ -6,6 +6,9 @@
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/ * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
* *
* @package Xarxaprod_theme * @package Xarxaprod_theme
* @used_by page-template/convo-serach.php
* @used_by page-template/convo-archive.php
*
*/ */
?> ?>
@ -16,9 +19,50 @@
</a> </a>
</h3> </h3>
<?php if( get_field('xxp_convo_apply_end') ): ?>
<h6 class="xarxaprod-convo-date"><?php the_field('xxp_convo_apply_end'); ?></h6> <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 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>
<section class="excerpt post-excerpt"> <section class="excerpt post-excerpt">
<?php //the_excerpt() ?> <?php //the_excerpt() ?>
@ -45,11 +89,6 @@
array('iterate_field' => 'xxp_convo_service') array('iterate_field' => 'xxp_convo_service')
); ?> ); ?>
<?php get_template_part(
'template-parts/section',
'list-checkbox',
array('iterate_field' => 'xxp_convo_center')
); ?>
</aside> </aside>
<nav class="more-link"> <nav class="more-link">

View File

@ -1,50 +0,0 @@
<?php
/**
* Template part for displaying each ajut with each field in category, archive, search
* to be used inside the loop.
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
*
* @package Xarxaprod_theme
*/
?>
<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>
<?php if( get_field('xxp_funder_name') ): //case of ajuts fund ?>
<h6 class="xarxaprod-funder-name"><?php the_field('xxp_funder_name'); ?></h6>
<?php endif; ?>
<section class="excerpt post-excerpt">
<?php the_excerpt() ?>
</section>
<aside>
<?php get_template_part( 'template-parts/section', 'list-checkbox', array('iterate_field' => 'xxp_fund_target') ); ?>
<?php get_template_part( 'template-parts/section', 'list-checkbox', array('iterate_field' => 'xxp_fund_source') ); ?>
<?php get_template_part( 'template-parts/section', 'list-checkbox', array('iterate_field' => 'xxp_fund_field') ); ?>
<?php if( get_field('xxp_fund_apply_begin') || get_field('xxp_fund_apply_end') ): ?>
<ul class="xarxaprod-label item-xxp_fund_dates">
<li>del <?php the_field('xxp_fund_apply_begin'); ?></li>
<li>al <?php the_field('xxp_fund_apply_end'); ?></li>
</ul>
<?php endif; ?>
<?php if( get_field('xxp_fund_apply_text') ): ?>
<ul class="xarxaprod-label item-xxp_fund_dates">
<li class=""><?php the_field('xxp_fund_apply_text'); ?></li>
</ul>
<?php endif; ?>
<?php if( get_field('xxp_fund_call') ): ?>
<?php get_template_part( 'template-parts/section', 'list-checkbox', array('iterate_field' => 'xxp_fund_call') ); ?>
<?php endif; ?>
</aside>
<nav class="more-link">
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" rel="bookmark" class="button button-more">
Més info
<span class="hide"><?php the_title(); ?></span>
</a>
</nav>
</article><!-- #post-<?php the_ID(); ?> -->

View File

@ -40,7 +40,7 @@
<?php if ( $featured_query->have_posts() ) : ?> <?php if ( $featured_query->have_posts() ) : ?>
<?php while ( $featured_query->have_posts() ) : $featured_query->the_post(); ?> <?php while ( $featured_query->have_posts() ) : $featured_query->the_post(); ?>
<?php get_template_part( 'template-parts/section', 'eachpost' ); ?> <?php get_template_part( 'template-parts/section', 'eachfund' ); ?>
<?php endwhile;//end of the loop ?> <?php endwhile;//end of the loop ?>
<?php wp_reset_postdata(); ?> <?php wp_reset_postdata(); ?>

View File

@ -1,17 +1,20 @@
<?php <?php
/** /**
* Template part for displaying posts from category "agenda" * Template part for displaying 3 posts from category "agenda"
* *
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/ * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
* *
* @package Xarxaprod_theme * @package Xarxaprod_theme
* @used by page.php
* @shown in : home
*
*/ */
?> ?>
<section id="agenda" class="agenda "> <section id="agenda" class="agenda ">
<header> <header>
<h2><a href="<?php echo site_url() . '/agenda' ;?>"><?php echo esc_html__('Agenda', 'xarxaprod'); ?></a></h2> <h2><a href="<?php echo site_url() . '/activitats' ;?>"><?php echo esc_html__('Agenda', 'xarxaprod'); ?></a></h2>
</header> </header>
<main class="xarxaprod-agenda"> <main class="xarxaprod-agenda">
@ -53,8 +56,16 @@
<?php endif; ?> <?php endif; ?>
</section> </section>
<aside class="agenda-date agenda-data"> <aside class="agenda-date agenda-data">
<?php if( get_field('xxp_agenda_date_start') ): ?> <?php if( get_field('xxp_agenda_date_start') || get_field('xxp_agenda_date_start') || get_field('xxp_agenda_free_text') ): ?>
<p class="item-xxp-agenda-date-start"><?php the_field('xxp_agenda_date_start'); ?></p> <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>
<?php endif; ?> <?php endif; ?>
</aside> </aside>
</div> </div>

View File

@ -88,17 +88,49 @@
</a> </a>
</header><!-- .entry-header --> </header><!-- .entry-header -->
<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') ): ?> <?php if( get_field('xxp_convo_apply_begin') || get_field('xxp_convo_apply_end') ): ?>
<dt>Termini</dt>
<h6 class="xarxaprod-deadline">Deadline: <dd class="xarxaprod-label item-xxp_convo_dates">
<?php //the_field('xxp_convo_apply_begin'); ?> <?php if( get_field('xxp_convo_apply_begin') ): ?>
<?php the_field('xxp_convo_apply_end'); ?> <span class="item-xxp_convo_apply_begin">del <?php the_field('xxp_convo_apply_begin'); ?> </span>
</h6> <?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 endif; ?>
<?php if( get_field('xxp_convo_apply_text') ): ?> <?php if( get_field('xxp_convo_apply_text') ): ?>
<h6 class="item-xxp_convo_apply_text"><?php the_field('xxp_convo_apply_text'); ?></h6> <span class="item-xxp_convo_apply_text"><?php the_field('xxp_convo_apply_text'); ?></span>
<?php endif; ?> <?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>
<section class="excerpt post-excerpt"> <section class="excerpt post-excerpt">
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" rel="bookmark" class=""> <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" rel="bookmark" class="">