Compare commits
23 Commits
482e1e30e9
...
5d18708030
Author | SHA1 | Date |
---|---|---|
jorge | 5d18708030 | |
jorge | 077bbebf99 | |
jorge | 4c0d0df31e | |
jorge | 8e2d0c0603 | |
jorge | 5a70fc6d09 | |
jorge | 021860fefc | |
jorge | 5a508ec76a | |
jorge | ca2cb8419b | |
jorge | fa52f880d6 | |
jorge | 4bf20447f3 | |
jorge | 327308950e | |
jorge | d07eb65504 | |
jorge | 6cde4194b1 | |
jorge | 151a243cdf | |
jorge | 4313f488c1 | |
jorge | 10298cd016 | |
jorge | b54d5de214 | |
jorge | 2a7d702e6f | |
jorge | 1140149ac9 | |
jorge | f9534ddbbb | |
jorge | af0186d8d1 | |
jorge | bdeeb2645a | |
jorge | 41b5db2800 |
|
@ -29,6 +29,7 @@ node_modules/
|
|||
.DS_Store
|
||||
theme/
|
||||
_gitignore*
|
||||
_ignore*
|
||||
|
||||
|
||||
# htaccess
|
||||
|
|
477
adminstyles.css
477
adminstyles.css
|
@ -17,7 +17,7 @@ Theme URI: https://git.hangar.org/xarxaprod/
|
|||
Author: Hangar.org Tech Lab - hangar.org
|
||||
Author URI: https://hangar.org
|
||||
Description: theme for the <a href="https://xarxaprod.cat">XarxaProd</a>. Inclou la possibilitat de publicar, catalogar i cercar ajuts, resoldre dubtes amb FAQs i altres. Design by Eudald Van der Pla <a href="https://vanderpla.com">vanderpla.com</a>. Coding template and theme by <a href="https://vitrubio.net">Jorge - vitrubio.net</a>
|
||||
Version: 1.5.0
|
||||
Version: 1.6.0
|
||||
Tested up to: 6.4
|
||||
Requires PHP: 7.4
|
||||
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;
|
||||
}
|
||||
|
||||
.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 {
|
||||
margin: 1.2rem 0;
|
||||
font-size: 2rem;
|
||||
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 {
|
||||
|
@ -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 {
|
||||
font-size: 2rem;
|
||||
font-size: 1.8rem;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-intro h6 {
|
||||
font-size: 2rem;
|
||||
font-size: 1.6rem;
|
||||
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 {
|
||||
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;
|
||||
}
|
||||
|
||||
.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 {
|
||||
overflow: hidden;
|
||||
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;
|
||||
padding: 0.2em 0.2em 0 0.2em;
|
||||
color: #000;
|
||||
border: 0.05em solid #000;
|
||||
border: 0.05rem solid #000;
|
||||
background-color: none;
|
||||
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;
|
||||
color: #fff;
|
||||
font-size: 0.9rem;
|
||||
line-height: 1;
|
||||
padding: 0.6em;
|
||||
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 textarea {
|
||||
color: #111;
|
||||
background-color: #eee;
|
||||
border: none;
|
||||
background-color: transparent;
|
||||
border: 0.05rem solid #000;
|
||||
border-radius: 0;
|
||||
width: 100%;
|
||||
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-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-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-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-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-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-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-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-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-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-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-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-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-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-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 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;
|
||||
box-shadow: none;
|
||||
outline: unset;
|
||||
}
|
||||
|
||||
.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 {
|
||||
|
@ -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 {
|
||||
padding: 0 1rem;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.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;
|
||||
}
|
||||
|
||||
.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 {
|
||||
display: flex;
|
||||
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 {
|
||||
margin-top: 2em;
|
||||
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 {
|
||||
|
@ -1607,11 +1667,16 @@ Add your custom styles in this file so it is easier to update the theme.
|
|||
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 {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor__content-area .editor-styles-wrapper .site-main > article {
|
||||
padding-top: 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;
|
||||
}
|
||||
|
||||
.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 {
|
||||
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-featured,
|
||||
.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 .archive-posts {
|
||||
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-ultimes-convocatories {
|
||||
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 {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
|
@ -1768,6 +1850,28 @@ Add your custom styles in this file so it is easier to update the theme.
|
|||
width: 100%;
|
||||
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) {
|
||||
|
@ -1912,7 +2016,7 @@ Add your custom styles in this file so it is easier to update the theme.
|
|||
right: 0.3em;
|
||||
width: 0.3em;
|
||||
height: 0.3em;
|
||||
border: 0.05em solid #000;
|
||||
border: 0.05rem solid #000;
|
||||
border-top: none;
|
||||
border-left: none;
|
||||
-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 {
|
||||
|
||||
/*
|
||||
* 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
|
||||
* ./template-parts/section-eachpost.php
|
||||
* template-parts/section-eachpost.php
|
||||
* */
|
||||
|
||||
/* used in
|
||||
* ./template-parts/content-xarxaprod-ajut.php
|
||||
* ./template-parts/content-xarxaprod-convo.php
|
||||
* ./template-parts/section-eachpost.php
|
||||
* template-parts/content-xarxaprod-ajut.php
|
||||
* template-parts/content-xarxaprod-convo.php
|
||||
* template-parts/section-eachpost.php
|
||||
* */
|
||||
|
||||
/* used in
|
||||
* archive-xarxaprod-convo.php
|
||||
* page-template/convo-search.php
|
||||
* template-parts/content-xarxaprod-convo.php
|
||||
* template-parts/section-eachconvo.php
|
||||
* */
|
||||
|
||||
/* used in
|
||||
|
@ -2016,18 +2127,25 @@ Add your custom styles in this file so it is easier to update the theme.
|
|||
|
||||
/*
|
||||
* categories:
|
||||
*
|
||||
* convocatorias pre 2024
|
||||
* REC
|
||||
*
|
||||
* * * * * * * * * * * * * * * */
|
||||
|
||||
/*
|
||||
* categories:
|
||||
* agenda, activitats, agenda-es
|
||||
*
|
||||
* * * * * * * * * * * * * * * */
|
||||
|
||||
/* 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 {
|
||||
|
@ -2048,10 +2166,6 @@ Add your custom styles in this file so it is easier to update the theme.
|
|||
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 {
|
||||
clear: both;
|
||||
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 .border-bottom .wp-block-column {
|
||||
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 .border-bottom .wp-block-heading {
|
||||
padding-top: 1em;
|
||||
padding-bottom: 2em;
|
||||
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 .border-bottom .wp-block-heading::after {
|
||||
content: "";
|
||||
border-bottom: 0.05em solid #000;
|
||||
width: 100%;
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
.edit-post-visual-editor__content-area .editor-styles-wrapper .ratlla-abaix p,
|
||||
.edit-post-visual-editor__content-area .editor-styles-wrapper .border-bottom p {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.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 {
|
||||
display: inline-block;
|
||||
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,
|
||||
|
@ -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 {
|
||||
margin: 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 {
|
||||
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 {
|
||||
|
@ -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 {
|
||||
border-bottom: 0.05em solid #000;
|
||||
border-bottom: 0.05rem solid #000;
|
||||
margin-bottom: 0.5em;
|
||||
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;
|
||||
}
|
||||
|
||||
.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-contact-fields {
|
||||
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-contact-fields .xarxaprod-fund-info-field {
|
||||
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,
|
||||
|
@ -2205,47 +2333,16 @@ Add your custom styles in this file so it is easier to update the theme.
|
|||
font-size: 0.8rem;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor__content-area .editor-styles-wrapper article.xarxaprod-convo > .xarxaprod-convo-info-fields {
|
||||
padding-top: 2rem;
|
||||
}
|
||||
|
||||
.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-agenda-info li {
|
||||
display: grid;
|
||||
grid-template-columns: 0.75fr 2.25fr;
|
||||
padding: 0.2em 0;
|
||||
border-top: 0.05em solid #000;
|
||||
border-bottom: 0.05rem solid #000;
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-convo-info-fields li:last-of-type,
|
||||
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-agenda-info li:last-of-type {
|
||||
border-bottom: 0.05em solid #000;
|
||||
.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:first-of-type {
|
||||
border-top: 0.05rem solid #000;
|
||||
}
|
||||
|
||||
.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;
|
||||
color: inherit;
|
||||
border: none;
|
||||
background-color: none;
|
||||
background-color: transparent;
|
||||
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-agenda-info dt {
|
||||
grid-row: 1 / 1;
|
||||
font-weight: 100;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-convo-info-fields dd,
|
||||
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-agenda-info dt,
|
||||
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-agenda-info dd {
|
||||
grid-row: 1 / 2;
|
||||
display: inline;
|
||||
font-weight: 100;
|
||||
margin: 0;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-convo-info-fields p,
|
||||
|
@ -2284,6 +2377,61 @@ Add your custom styles in this file so it is easier to update the theme.
|
|||
margin: 0;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-card-each.xarxaprod-convo .entry-title {
|
||||
display: inline-flex;
|
||||
align-items: flex-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 {
|
||||
margin-top: 4em;
|
||||
}
|
||||
|
@ -2304,7 +2452,7 @@ Add your custom styles in this file so it is easier to update the theme.
|
|||
display: grid;
|
||||
font-size: 1rem;
|
||||
border: none;
|
||||
border-top: 0.05em solid #000;
|
||||
border-top: 0.05rem solid #000;
|
||||
margin: 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-espais-map {
|
||||
margin: 0;
|
||||
grid-column: 1 / -1;
|
||||
aspect-ratio: 4 / 3;
|
||||
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 .category-convocatories,
|
||||
.edit-post-visual-editor__content-area .editor-styles-wrapper .category-activitats,
|
||||
.edit-post-visual-editor__content-area .editor-styles-wrapper .category-agenda,
|
||||
.edit-post-visual-editor__content-area .editor-styles-wrapper .category-agenda-es {
|
||||
.edit-post-visual-editor__content-area .editor-styles-wrapper .category-rec {
|
||||
display: flex;
|
||||
flex-flow: column;
|
||||
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 .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-agenda .wp-block-post-title,
|
||||
.edit-post-visual-editor__content-area .editor-styles-wrapper .category-agenda-es .wp-block-post-title {
|
||||
.edit-post-visual-editor__content-area .editor-styles-wrapper .category-rec .wp-block-post-title {
|
||||
text-transform: lowercase;
|
||||
font-size: 1.5rem;
|
||||
margin-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 .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-activitats .wp-block-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-agenda-es .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-rec .wp-block-post-excerpt {
|
||||
min-height: 7rem;
|
||||
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 .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-agenda .wp-block-read-more,
|
||||
.edit-post-visual-editor__content-area .editor-styles-wrapper .category-agenda-es .wp-block-read-more {
|
||||
.edit-post-visual-editor__content-area .editor-styles-wrapper .category-rec .wp-block-read-more {
|
||||
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;
|
||||
justify-content: space-between;
|
||||
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 {
|
||||
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 > * {
|
||||
|
@ -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 h6 {
|
||||
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 li[class*="category-agenda"] {
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-content: space-between;
|
||||
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-card-each.category-activitats {
|
||||
justify-content: flex-start;
|
||||
}
|
||||
|
||||
.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 li[class*="category-agenda"] .wp-block-post-featured-image {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
margin: 0;
|
||||
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-card-each.category-activitats .entry-title {
|
||||
display: inline-flex;
|
||||
align-items: flex-start;
|
||||
min-height: 5.5rem;
|
||||
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;
|
||||
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 li[class*="category-agenda"] .wp-block-post-title::before {
|
||||
content: "";
|
||||
display: inline-block;
|
||||
min-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-card-each.category-activitats figure img {
|
||||
object-position: 50% 50%;
|
||||
max-height: 100%;
|
||||
object-fit: cover;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-filtered-content {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr;
|
||||
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-card-each.category-activitats .xarxaprod-agenda-info {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-filtered-content .archive-posts {
|
||||
grid-template-columns: repeat(1, minmax(0, 1fr));
|
||||
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-card-each.category-activitats li {
|
||||
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 {
|
||||
|
@ -2483,10 +2647,6 @@ Add your custom styles in this file so it is easier to update the theme.
|
|||
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 {
|
||||
display: inline-block;
|
||||
width: 100%;
|
||||
|
@ -2497,7 +2657,7 @@ Add your custom styles in this file so it is easier to update the theme.
|
|||
cursor: pointer;
|
||||
font-weight: 900;
|
||||
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 {
|
||||
|
@ -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) {
|
||||
|
||||
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-filters {
|
||||
padding-right: 2em;
|
||||
}
|
||||
|
||||
.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 {
|
||||
.edit-post-visual-editor__content-area .editor-styles-wrapper .single-xarxaprod-convo .xarxaprod-convo-info-fields li,
|
||||
.edit-post-visual-editor__content-area .editor-styles-wrapper .single-xarxaprod-convo .xarxaprod-agenda-info li {
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
|
||||
.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;
|
||||
}
|
||||
|
||||
.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;
|
||||
}
|
||||
|
||||
|
@ -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 {
|
||||
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 textarea {
|
||||
background: transparent;
|
||||
border: 0.05em solid #000;
|
||||
border: 0.05rem solid #000;
|
||||
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 {
|
||||
border: 0.05em solid #000;
|
||||
border: 0.05rem solid #000;
|
||||
width: 100%;
|
||||
display: inline-block;
|
||||
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 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 button {
|
||||
margin-left: auto;
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -19,7 +19,11 @@ get_header();
|
|||
//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">
|
||||
<?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 ?>
|
||||
|
@ -45,6 +49,7 @@ get_header();
|
|||
?>
|
||||
|
||||
</content>
|
||||
<section id="filteredfunds" class="xarxaprod-filtered-content xarxaprod-filtered-funds xarxaprod-ajuts-filtrats">
|
||||
</section>
|
||||
|
||||
<?php } //end plugin is activated do ?>
|
||||
|
|
|
@ -19,31 +19,47 @@ get_header();
|
|||
//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">
|
||||
<?php xarxaprod_associats_filters_form(); // function defined in the plugin ?>
|
||||
</aside>
|
||||
|
||||
<content class="archive-posts <?php xarxaprod_class_posttype(); ?>">
|
||||
<figure id="xarxaprod-associats-map" class="xarxaprod-associats-map">
|
||||
<?php xarxaprod_show_leaflet_map(); // function defined in the plugin ?>
|
||||
</figure>
|
||||
<figure id="xarxaprod-associats-map" class="xarxaprod-associats-map">
|
||||
<?php xarxaprod_show_leaflet_map(); // function defined in the plugin ?>
|
||||
</figure>
|
||||
|
||||
<?php if ( have_posts() ) : ?>
|
||||
<?php while ( have_posts() ) : the_post();
|
||||
//get_template_part( 'template-parts/section', 'eachmember' );
|
||||
xarxaprod_show_leaflet_associat_blob(); // function defined in the plugin
|
||||
endwhile;
|
||||
<?php if ( have_posts() ) : ?>
|
||||
<?php while ( have_posts() ) : the_post();
|
||||
xarxaprod_show_leaflet_associat_blob(); // function defined in the plugin
|
||||
//get_template_part( 'template-parts/section', 'eachmember' );
|
||||
endwhile; ?>
|
||||
|
||||
//the_posts_navigation();
|
||||
|
||||
else :
|
||||
<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>
|
||||
|
||||
get_template_part( 'template-parts/content', 'none' );
|
||||
<?php
|
||||
//the_posts_navigation();
|
||||
|
||||
endif;
|
||||
?>
|
||||
else :
|
||||
|
||||
get_template_part( 'template-parts/content', 'none' );
|
||||
|
||||
endif;
|
||||
?>
|
||||
</content>
|
||||
<section id="filteredassociats" class="xarxaprod-filtered-content xarxaprod-filtered-associats xarxaprod-associats-filtrats">
|
||||
</section>
|
||||
|
||||
<?php } //end plugin is activated do ?>
|
||||
|
|
|
@ -19,7 +19,10 @@ get_header();
|
|||
//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">
|
||||
<?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 ?>
|
||||
|
@ -45,6 +48,7 @@ get_header();
|
|||
?>
|
||||
|
||||
</content>
|
||||
<section id="filteredcall" class="xarxaprod-filtered-content xarxaprod-filtered-convos xarxaprod-convos-filtrats">
|
||||
</section>
|
||||
|
||||
<?php } //end plugin is activated do ?>
|
||||
|
|
32
archive.php
32
archive.php
|
@ -12,10 +12,29 @@ get_header();
|
|||
|
||||
<main id="primary" class="site-main">
|
||||
|
||||
<?php if ( have_posts() ) : ?>
|
||||
|
||||
<header class="page-header">
|
||||
</header><!-- .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() ) : ?>
|
||||
|
||||
<content class="archive-posts <?php xarxaprod_class_posttype(); ?>">
|
||||
<?php
|
||||
/* Start the Loop */
|
||||
|
@ -27,13 +46,14 @@ get_header();
|
|||
* 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.
|
||||
*/
|
||||
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;
|
||||
|
||||
|
||||
the_posts_navigation();
|
||||
echo '</content>';//end content ajuts
|
||||
echo '</content>';
|
||||
|
||||
else :
|
||||
get_template_part( 'template-parts/content', 'none' );
|
||||
|
|
File diff suppressed because one or more lines are too long
39
category.php
39
category.php
|
@ -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();
|
|
@ -51,6 +51,7 @@ function xarxaprod_setup() {
|
|||
array(
|
||||
'menu-1' => esc_html__( 'Primary', '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
|
||||
*/
|
||||
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';
|
||||
|
|
|
@ -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;
|
||||
?>
|
|
@ -81,7 +81,7 @@ if ( ! function_exists( 'xarxaprod_display_faqs_labels' ) ) :
|
|||
// https://developer.wordpress.org/reference%2Ffunctions%2Fwp_list_categories%2F/
|
||||
wp_list_categories(
|
||||
array(
|
||||
'child_of' => 38, // category FAQ id=1
|
||||
'child_of' => 39, // category FAQ id=1
|
||||
'hide_empty' => 1,
|
||||
'hide_title_if_empty' => true,
|
||||
'separator' => '<li>',
|
||||
|
|
|
@ -4,10 +4,13 @@
|
|||
*/
|
||||
if ( ! function_exists( 'xarxaprod_theme_css_scripts' ) ){
|
||||
function xarxaprod_theme_css_scripts() {
|
||||
wp_enqueue_style( 'xarxaprod-style', get_stylesheet_uri(), array(), _S_VERSION );
|
||||
//https://developer.wordpress.org/reference/functions/wp_enqueue_style/#comment-2056
|
||||
// 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
|
||||
//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' );
|
||||
|
||||
// https://stackoverflow.com/a/24994304
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
*
|
||||
* Docs: https://wordpress.org/documentation/article/roles-and-capabilities/
|
||||
*
|
||||
* @package EGV-Guies
|
||||
* @since EGV-Guies 1.0.0
|
||||
* @package Xarxaprod_theme
|
||||
* @since Xarxaprod_theme 1.0.0
|
||||
*/
|
||||
// https://wordpress.stackexchange.com/questions/4191/allow-editors-to-edit-menus
|
||||
// add editor the privilege to edit theme
|
||||
|
|
|
@ -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();
|
|
@ -2,7 +2,7 @@
|
|||
/**
|
||||
* 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/template-files-section/page-template-files/
|
||||
|
|
|
@ -69,7 +69,7 @@ get_header();
|
|||
<content class="archive-posts archive-xarxaprod-convo <?php //xarxaprod_class_posttype(); ?>">
|
||||
<?php while ( $the_query_convo->have_posts() ) : $the_query_convo->the_post(); ?>
|
||||
|
||||
<?php get_template_part( 'template-parts/section', 'eachconvo' ); ?>
|
||||
<?php get_template_part( 'template-parts/section', 'eachconvo' , $the_query_convo); ?>
|
||||
|
||||
<?php endwhile;//end of the loop ?>
|
||||
<?php wp_reset_postdata(); ?>
|
||||
|
|
|
@ -60,7 +60,7 @@ get_header();
|
|||
<?php if ( $the_query_faq->have_posts() ) : ?>
|
||||
<?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 wp_reset_postdata(); ?>
|
||||
|
|
2
page.php
2
page.php
|
@ -31,7 +31,7 @@ get_header();
|
|||
if ( is_front_page() ) :
|
||||
//get_template_part( 'template-parts/section', 'featured' );
|
||||
get_template_part( 'template-parts/section', 'last-convos' );
|
||||
get_template_part( 'template-parts/section', 'agenda' );
|
||||
get_template_part( 'template-parts/section', 'last-agenda' );
|
||||
endif;
|
||||
?>
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@ $color__background-hr: $color__black;
|
|||
$color__background-button: $color__black;
|
||||
$color__background-pre: $color__grey-lighter;
|
||||
$color__background-ins: $color__white-dark;
|
||||
$color__background-input: $color__grey-lighter;
|
||||
$color__background-input: transparent;
|
||||
|
||||
$color__text-screen: $color__black;
|
||||
$color__text-input: $color__black-grey;
|
||||
|
@ -51,5 +51,5 @@ $color__border-abbr: $color__grey-dark;
|
|||
|
||||
//other
|
||||
$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);
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
// theme for editor admin, import style.sass and apply class before rest of it
|
||||
|
||||
// admin styles
|
||||
|
||||
.wp-admin {
|
||||
.components-button.edit-post-fullscreen-mode-close.has-icon,
|
||||
.edit-post-fullscreen-mode-close_site-icon {
|
||||
|
@ -14,7 +13,6 @@
|
|||
.site-icon-preview .app-icon-preview {
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
// editor styles
|
||||
.edit-post-visual-editor__content-area {
|
||||
.editor-styles-wrapper {
|
||||
|
@ -25,7 +23,7 @@
|
|||
// max-width: 80rem;
|
||||
//``}
|
||||
font-family: $font__main;
|
||||
h1,figure,button {
|
||||
h1,h2,h3,h4,h5,ul,figure,button {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
|
|
@ -5,6 +5,9 @@ body {
|
|||
//background-position: center center;
|
||||
//background-repeat: no-repeat;
|
||||
position: relative;
|
||||
&.admin-bar { //if else breaks the WordPress inline styles when front end editing
|
||||
position: inherit;
|
||||
}
|
||||
}
|
||||
.liquid-bubbles {
|
||||
overflow: hidden;
|
||||
|
|
|
@ -10,7 +10,7 @@ input[type="submit"],
|
|||
background: $color__background-button;
|
||||
color: $color__white;
|
||||
font-size: $font__size-body * 0.9;
|
||||
line-height: 1;
|
||||
//line-height: 1;
|
||||
padding: 0.6em;
|
||||
margin: 0;
|
||||
|
||||
|
|
|
@ -16,13 +16,14 @@ input[type="color"],
|
|||
textarea {
|
||||
color: $color__text-input;
|
||||
background-color: $color__background-input;
|
||||
border: none;
|
||||
border: $border__line;
|
||||
border-radius: 0;
|
||||
width: 100%;
|
||||
padding: 0.3rem;
|
||||
|
||||
&:focus {
|
||||
&:focus,&:focus-within,&:focus-visible {
|
||||
color: $color__text-input-focus;
|
||||
box-shadow: none;
|
||||
outline: unset;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -95,6 +95,12 @@
|
|||
// margin: 0;
|
||||
// }
|
||||
//}
|
||||
|
||||
.archive,.category {
|
||||
.page-header {
|
||||
text-transform: capitalize;
|
||||
}
|
||||
}
|
||||
.home-featured {
|
||||
h2,.h2 {
|
||||
margin: 1.2rem 0;
|
||||
|
@ -127,10 +133,10 @@
|
|||
font-size: $font__size-body*2.1;
|
||||
}
|
||||
h5 {
|
||||
font-size: $font__size-body*2;
|
||||
font-size: $font__size-body*1.8;
|
||||
}
|
||||
h6 {
|
||||
font-size: $font__size-body*2;
|
||||
font-size: $font__size-body*1.6;
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
}
|
||||
.site-main {
|
||||
.entry-title {
|
||||
margin: 0.5em 0 0 0;
|
||||
//margin: 0.5em 0 0 0;
|
||||
}
|
||||
}
|
||||
.page-links {
|
||||
|
@ -30,9 +30,8 @@
|
|||
.home-featured {
|
||||
padding: 0 1rem;
|
||||
}
|
||||
|
||||
/*
|
||||
* big lletters block below titles
|
||||
* big letters block below titles
|
||||
* */
|
||||
|
||||
.xarxaprod-intro {
|
||||
|
@ -48,18 +47,25 @@
|
|||
.ratlla-abaix,.border-bottom {
|
||||
.wp-block-column {
|
||||
position:relative;
|
||||
padding-top: 1em;
|
||||
padding-bottom: 1em;
|
||||
> :last-child {
|
||||
// border-bottom: $border__line;
|
||||
&:after {
|
||||
content: "";
|
||||
border-bottom: $border__line;
|
||||
width: 100%;
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
.wp-block-heading {
|
||||
padding-top: 1em;
|
||||
padding-bottom: 2em;
|
||||
display:inline-grid;
|
||||
&:after {
|
||||
content: "";
|
||||
border-bottom: $border__line;
|
||||
width: 100%;
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
}
|
||||
}
|
||||
p {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -87,7 +93,7 @@
|
|||
}
|
||||
|
||||
/* used in
|
||||
* ./template-parts/section-eachpost.php
|
||||
* template-parts/section-eachpost.php
|
||||
* */
|
||||
.xarxaprod-card-each {
|
||||
display: flex;
|
||||
|
@ -95,7 +101,7 @@
|
|||
.entry-title {
|
||||
margin: 0;
|
||||
padding: 0 0 0.5rem 0;
|
||||
border-bottom: $border__line;
|
||||
//border-bottom: $border__line;
|
||||
}
|
||||
h6 {
|
||||
padding: 0.5rem 1rem 0.5rem 0;
|
||||
|
@ -119,10 +125,22 @@
|
|||
}
|
||||
|
||||
/* used in
|
||||
* ./template-parts/content-xarxaprod-ajut.php
|
||||
* ./template-parts/content-xarxaprod-convo.php
|
||||
* ./template-parts/section-eachpost.php
|
||||
* template-parts/content-xarxaprod-ajut.php
|
||||
* template-parts/content-xarxaprod-convo.php
|
||||
* template-parts/section-eachpost.php
|
||||
* */
|
||||
.xarxaprod-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-contact-fields {
|
||||
display: grid;
|
||||
|
@ -172,40 +190,21 @@
|
|||
font-size: $font__size-body*0.8;
|
||||
}
|
||||
}
|
||||
article.xarxaprod-convo {
|
||||
> .xarxaprod-convo-info-fields, {
|
||||
padding-top: 2rem;
|
||||
}
|
||||
> .entry-footer {
|
||||
padding-top: 2rem;
|
||||
.xarxaprod-more-convos-header {
|
||||
padding: 2rem 0;
|
||||
font-size: $font__size-body*1.6;
|
||||
text-align: center;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
.last-convos{
|
||||
padding: 2rem 0;
|
||||
border-top: $border__line;
|
||||
> header {
|
||||
display:none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
/* used in
|
||||
* archive-xarxaprod-convo.php
|
||||
* page-template/convo-search.php
|
||||
* template-parts/content-xarxaprod-convo.php
|
||||
* template-parts/section-eachconvo.php
|
||||
* */
|
||||
.xarxaprod-convo-info-fields,
|
||||
.xarxaprod-agenda-info {
|
||||
margin-bottom: 2em;
|
||||
//margin-bottom: 2em;
|
||||
li {
|
||||
display:grid;
|
||||
grid-template-columns: 0.75fr 2.25fr;
|
||||
padding: 0.2em 0;
|
||||
//border-top: 0.05em solid $color__black;
|
||||
border-top: $border__line;
|
||||
border-bottom: $border__line;
|
||||
font-size: $font__size-body*1;
|
||||
&:last-of-type{
|
||||
//border-bottom: 0.05em solid $color__black;
|
||||
border-bottom: $border__line;
|
||||
&:first-of-type {
|
||||
border-top: $border__line;
|
||||
}
|
||||
.xarxaprod-label li {
|
||||
display: inherit;
|
||||
|
@ -213,7 +212,7 @@
|
|||
padding: 0;
|
||||
color: inherit;
|
||||
border: none;
|
||||
background-color: none;
|
||||
background-color: transparent;
|
||||
font-size: inherit;
|
||||
&:nth-child(n+2):before {
|
||||
content:", ";
|
||||
|
@ -221,20 +220,71 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
dt {
|
||||
grid-row: 1 / 1;
|
||||
dt,dd {
|
||||
display: inline;
|
||||
font-weight: 100;
|
||||
}
|
||||
dd {
|
||||
grid-row: 1 / 2;
|
||||
margin: 0;
|
||||
font-weight: 700;
|
||||
span {
|
||||
//padding-right: 0.5rem;
|
||||
}
|
||||
}
|
||||
p {
|
||||
grid-row: 1 / 2;
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
.xarxaprod-card-each {
|
||||
&.xarxaprod-convo {
|
||||
.entry-title {
|
||||
display: inline-flex;
|
||||
align-items: flex-start;
|
||||
min-height: $font__size-body * 3.6;
|
||||
}
|
||||
}
|
||||
}
|
||||
.single-xarxaprod-convo {
|
||||
article.xarxaprod-convo {
|
||||
> .xarxaprod-convo-info-fields {
|
||||
padding-top: 2rem;
|
||||
padding-bottom: 2rem;
|
||||
}
|
||||
> .entry-footer {
|
||||
padding-top: 2rem;
|
||||
.xarxaprod-more-convos-header {
|
||||
padding: 2rem 0;
|
||||
font-size: $font__size-body*1.6;
|
||||
text-align: center;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
.last-convos{
|
||||
padding: 2rem 0;
|
||||
border-top: $border__line;
|
||||
> header {
|
||||
display:none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.xarxaprod-convo-info-fields,
|
||||
.xarxaprod-agenda-info {
|
||||
li {
|
||||
display:grid;
|
||||
grid-template-columns: 0.75fr 2.25fr;
|
||||
&:first-of-type{
|
||||
border-top: $border__line;
|
||||
}
|
||||
}
|
||||
dt {
|
||||
grid-row: 1 / 1;
|
||||
font-weight: 100;
|
||||
}
|
||||
dd {
|
||||
grid-row: 1 / 2;
|
||||
margin: 0;
|
||||
font-weight: 700;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* used in
|
||||
* template-parts/content-xarxaprod-associat.php
|
||||
|
@ -320,6 +370,8 @@
|
|||
}
|
||||
/* mapas leaflet associats */
|
||||
.xarxaprod-associats-map,.xarxaprod-espais-map {
|
||||
margin:0;
|
||||
grid-column: 1 / -1;
|
||||
aspect-ratio: 4 / 3;
|
||||
background-color: rgba(200,200,200,0.4); //place holder background color
|
||||
}
|
||||
|
@ -335,28 +387,27 @@
|
|||
}
|
||||
/*
|
||||
* categories:
|
||||
*
|
||||
* convocatorias pre 2024
|
||||
* agenda, activitats, agenda-es
|
||||
* REC
|
||||
*
|
||||
* * * * * * * * * * * * * * * */
|
||||
.xarxaprod-cards,.category-convocatories,
|
||||
.category-activitats,.category-agenda,.category-agenda-es {
|
||||
.xarxaprod-cards,.category-convocatories, .category-rec {
|
||||
display: flex;
|
||||
flex-flow: column;
|
||||
justify-content: flex-end;
|
||||
padding-bottom: 4em;
|
||||
padding-bottom: $font__size-body * 2;
|
||||
.wp-block-post-title {
|
||||
text-transform: lowercase;
|
||||
font-size: $font__size-body*1.5;
|
||||
margin-bottom: 0.5em;
|
||||
padding-bottom: 0.5em;
|
||||
//border-bottom: 0.05em solid $color__black;
|
||||
border-bottom: $border__line;
|
||||
}
|
||||
.post-excerpt,
|
||||
.wp-block-post-excerpt {
|
||||
min-height: $font__size-body * 7;
|
||||
margin: 0.5em 0;
|
||||
//border-bottom: 0.05em solid $color__black;
|
||||
font-size: $font__size-body * 1;
|
||||
border-bottom: $border__line;
|
||||
}
|
||||
.wp-block-read-more {
|
||||
|
@ -364,8 +415,16 @@
|
|||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* categories:
|
||||
* agenda, activitats, agenda-es
|
||||
*
|
||||
* * * * * * * * * * * * * * * */
|
||||
//.category-activitats,.category-agenda,.category-agenda-es
|
||||
|
||||
/* 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 {
|
||||
|
@ -373,10 +432,8 @@
|
|||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
padding: 0.2em 0;
|
||||
//border-bottom: 0.1em solid $color__black;
|
||||
border-bottom: $border__line;
|
||||
&:first-of-type {
|
||||
//border-top: 0.1em solid $color__black;
|
||||
border-top: $border__line;
|
||||
}
|
||||
> * {
|
||||
|
@ -387,9 +444,9 @@
|
|||
}
|
||||
.entry-title,h6 {
|
||||
border-bottom: none;
|
||||
padding: 0.5rem 0;
|
||||
}
|
||||
p {
|
||||
//font-size: $font__size-body * 1.5;
|
||||
}
|
||||
.activity-organizer, .organiza-activitat {
|
||||
}
|
||||
|
@ -397,42 +454,57 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
li.category-activitats,
|
||||
li[class*='category-agenda'] {
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-content: space-between;
|
||||
.wp-block-post-featured-image {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
margin: 0;
|
||||
aspect-ratio: 16/9;
|
||||
overflow: hidden;
|
||||
}
|
||||
.wp-block-post-title {
|
||||
}
|
||||
.wp-block-post-title:before {
|
||||
content: "";
|
||||
display: inline-block;
|
||||
min-width: 100%;
|
||||
height: auto;
|
||||
aspect-ratio: 16/9;
|
||||
margin-bottom: 2em;
|
||||
background-color: rgba(230,230,230,0.4);
|
||||
border-radius: 0.3em;
|
||||
.xarxaprod-card-each{
|
||||
&.category-activitats {
|
||||
justify-content: flex-start;
|
||||
.entry-title {
|
||||
display: inline-flex;
|
||||
align-items: flex-start;
|
||||
min-height: $font__size-body * 5.5;
|
||||
overflow: hidden;
|
||||
border: none;
|
||||
}
|
||||
figure {
|
||||
// position: absolute;
|
||||
order: -1;
|
||||
margin: 0 0 1rem 0;
|
||||
width: 100%;
|
||||
aspect-ratio: 16/9;
|
||||
overflow: hidden;
|
||||
img {
|
||||
object-position: 50% 50%;
|
||||
max-height: 100%;
|
||||
object-fit: cover;
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
.xarxaprod-agenda-info {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
li {
|
||||
display: inline-flex;
|
||||
width: 100%;
|
||||
max-height: 2.9rem;
|
||||
overflow: hidden;
|
||||
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
|
||||
*/
|
||||
.xarxaprod-filtered-content {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr;
|
||||
.archive-posts {
|
||||
grid-template-columns: repeat(1 , minmax(0,1fr));
|
||||
}
|
||||
}
|
||||
/*
|
||||
* filters form custom fields
|
||||
* * */
|
||||
.xarxaprod-filters {
|
||||
section {
|
||||
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 {
|
||||
// applied in forms and contactforms
|
||||
|
@ -514,34 +582,32 @@
|
|||
@media screen and (min-width: 48em) {
|
||||
//only bigger than 48em
|
||||
.xarxaprod-filters {
|
||||
padding-right: 2em;
|
||||
//padding-right: 2em;
|
||||
section {
|
||||
}
|
||||
}
|
||||
.xarxaprod-filtered-content {
|
||||
grid-template-columns: 1fr 2fr;
|
||||
gap: $grid__gap * 4;
|
||||
}
|
||||
.archive-posts {
|
||||
grid-template-columns: repeat(2 , minmax(0,1fr));
|
||||
//grid-template-columns: repeat(2 , minmax(0,1fr));
|
||||
}
|
||||
.xarxaprod-convo-info-fields,
|
||||
.xarxaprod-agenda-info {
|
||||
li {
|
||||
font-size: $font__size-body*1.5;
|
||||
.single-xarxaprod-convo {
|
||||
.xarxaprod-convo-info-fields,
|
||||
.xarxaprod-agenda-info {
|
||||
li {
|
||||
font-size: $font__size-body*1.5;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.single-xarxaprod-associat {
|
||||
.xarxaprod-associat {
|
||||
.xarxaprod-associat-info {
|
||||
grid-template-columns: 1fr 1fr 1fr;
|
||||
}
|
||||
.xarxaprod-associat-location {
|
||||
.xarxaprod-associat-osm-link {
|
||||
grid-template-columns: min-content auto;
|
||||
}
|
||||
}
|
||||
}
|
||||
.xarxaprod-associat-info {
|
||||
grid-template-columns: 1fr 1fr 1fr;
|
||||
}
|
||||
.xarxaprod-associat-location {
|
||||
}
|
||||
.xarxaprod-associat-osm-link {
|
||||
grid-template-columns: min-content auto;
|
||||
}
|
||||
}
|
||||
.xarxaprod-agenda {
|
||||
|
@ -562,16 +628,11 @@
|
|||
@media screen and (min-width: 80em) {
|
||||
//only bigger than 80rem
|
||||
.xarxaprod-filtered-content {
|
||||
grid-template-columns: 1fr 3fr;
|
||||
gap: $grid__gap * 6;
|
||||
.archive-posts {
|
||||
grid-template-columns: repeat(2 , minmax(0,1fr));
|
||||
&.archive-xarxaprod-associats,&.archive-custom-post-type-associat {
|
||||
grid-template-columns: repeat(1 , minmax(0,1fr));
|
||||
}
|
||||
//grid-template-columns: 1fr 3fr;
|
||||
.archive-xarxaprod-associats,&.archive-custom-post-type-associat {
|
||||
//grid-template-columns: repeat(1 , minmax(0,1fr));
|
||||
}
|
||||
}
|
||||
.archive-posts {
|
||||
grid-template-columns: repeat(3 , minmax(0,1fr));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -70,6 +70,32 @@
|
|||
}
|
||||
.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 */
|
||||
//.toggle-secondary-navigation .show-mobile{
|
||||
|
|
|
@ -69,6 +69,7 @@
|
|||
}
|
||||
.site-main {
|
||||
padding: 0 1rem;
|
||||
gap: $grid__gap;
|
||||
> section {
|
||||
padding: 0;
|
||||
> 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 {
|
||||
display: flex;
|
||||
flex-flow: row;
|
||||
|
@ -175,11 +194,19 @@
|
|||
width: 100%;
|
||||
}
|
||||
}
|
||||
.page-template-agenda-archive {
|
||||
.site-main {
|
||||
> article {
|
||||
padding-bottom: 1rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
.site-main {
|
||||
padding: 0;
|
||||
> article {
|
||||
padding-top: 4rem;
|
||||
padding-bottom: 4rem;
|
||||
&.xarxaprod-ajut {
|
||||
&.xarxaprod-ajut {
|
||||
display: grid;
|
||||
> * {
|
||||
max-width: 40rem;
|
||||
|
@ -207,6 +234,19 @@
|
|||
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 {
|
||||
flex-flow: column;
|
||||
}
|
||||
|
@ -219,10 +259,18 @@
|
|||
}
|
||||
}
|
||||
.xarxaprod-destacats,.xarxaprod-featured,
|
||||
.xarxaprod-last-convos,.xarxaprod-ultimes-convocatories,
|
||||
.archive-posts {
|
||||
.xarxaprod-last-convos,.xarxaprod-ultimes-convocatories {
|
||||
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 {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
|
|
|
@ -5,7 +5,7 @@ Theme URI: https://git.hangar.org/xarxaprod/
|
|||
Author: Hangar.org Tech Lab - hangar.org
|
||||
Author URI: https://hangar.org
|
||||
Description: theme for the <a href="https://xarxaprod.cat">XarxaProd</a>. Inclou la possibilitat de publicar, catalogar i cercar ajuts, resoldre dubtes amb FAQs i altres. Design by Eudald Van der Pla <a href="https://vanderpla.com">vanderpla.com</a>. Coding template and theme by <a href="https://vitrubio.net">Jorge - vitrubio.net</a>
|
||||
Version: 1.5.0
|
||||
Version: 1.6.0
|
||||
Tested up to: 6.4
|
||||
Requires PHP: 7.4
|
||||
License: GNU General Public License v3 or later
|
||||
|
|
473
style.css
473
style.css
|
@ -5,7 +5,7 @@ Theme URI: https://git.hangar.org/xarxaprod/
|
|||
Author: Hangar.org Tech Lab - hangar.org
|
||||
Author URI: https://hangar.org
|
||||
Description: theme for the <a href="https://xarxaprod.cat">XarxaProd</a>. Inclou la possibilitat de publicar, catalogar i cercar ajuts, resoldre dubtes amb FAQs i altres. Design by Eudald Van der Pla <a href="https://vanderpla.com">vanderpla.com</a>. Coding template and theme by <a href="https://vitrubio.net">Jorge - vitrubio.net</a>
|
||||
Version: 1.5.0
|
||||
Version: 1.6.0
|
||||
Tested up to: 6.4
|
||||
Requires PHP: 7.4
|
||||
License: GNU General Public License v3 or later
|
||||
|
@ -590,12 +590,17 @@ textarea {
|
|||
font-size: 1.1rem;
|
||||
}
|
||||
|
||||
.archive .page-header,
|
||||
.category .page-header {
|
||||
text-transform: capitalize;
|
||||
}
|
||||
|
||||
.home-featured h2,
|
||||
.home-featured .h2 {
|
||||
margin: 1.2rem 0;
|
||||
font-size: 2rem;
|
||||
line-height: 1.2;
|
||||
border-bottom: 0.05em solid #000;
|
||||
border-bottom: 0.05rem solid #000;
|
||||
}
|
||||
|
||||
/* entry content */
|
||||
|
@ -615,11 +620,11 @@ textarea {
|
|||
}
|
||||
|
||||
.xarxaprod-intro h5 {
|
||||
font-size: 2rem;
|
||||
font-size: 1.8rem;
|
||||
}
|
||||
|
||||
.xarxaprod-intro h6 {
|
||||
font-size: 2rem;
|
||||
font-size: 1.6rem;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
|
@ -697,7 +702,7 @@ textarea {
|
|||
.home-featured h2,
|
||||
.home-featured .h2 {
|
||||
font-size: 3.5rem;
|
||||
border-bottom: 0.05em solid #000;
|
||||
border-bottom: 0.05rem solid #000;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -823,6 +828,10 @@ body {
|
|||
position: relative;
|
||||
}
|
||||
|
||||
body.admin-bar {
|
||||
position: inherit;
|
||||
}
|
||||
|
||||
.liquid-bubbles {
|
||||
overflow: hidden;
|
||||
float: left;
|
||||
|
@ -949,7 +958,7 @@ dd {
|
|||
margin: 0.1em 0;
|
||||
padding: 0.2em 0.2em 0 0.2em;
|
||||
color: #000;
|
||||
border: 0.05em solid #000;
|
||||
border: 0.05rem solid #000;
|
||||
background-color: none;
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
|
@ -1146,7 +1155,6 @@ input[type="submit"],
|
|||
background: #000;
|
||||
color: #fff;
|
||||
font-size: 0.9rem;
|
||||
line-height: 1;
|
||||
padding: 0.6em;
|
||||
margin: 0;
|
||||
}
|
||||
|
@ -1243,34 +1251,68 @@ input[type="datetime-local"],
|
|||
input[type="color"],
|
||||
textarea {
|
||||
color: #111;
|
||||
background-color: #eee;
|
||||
border: none;
|
||||
background-color: transparent;
|
||||
border: 0.05rem solid #000;
|
||||
border-radius: 0;
|
||||
width: 100%;
|
||||
padding: 0.3rem;
|
||||
}
|
||||
|
||||
input[type="text"]:focus,
|
||||
input[type="text"]:focus-within,
|
||||
input[type="text"]:focus-visible,
|
||||
input[type="email"]:focus,
|
||||
input[type="email"]:focus-within,
|
||||
input[type="email"]:focus-visible,
|
||||
input[type="url"]:focus,
|
||||
input[type="url"]:focus-within,
|
||||
input[type="url"]:focus-visible,
|
||||
input[type="password"]:focus,
|
||||
input[type="password"]:focus-within,
|
||||
input[type="password"]:focus-visible,
|
||||
input[type="search"]:focus,
|
||||
input[type="search"]:focus-within,
|
||||
input[type="search"]:focus-visible,
|
||||
input[type="number"]:focus,
|
||||
input[type="number"]:focus-within,
|
||||
input[type="number"]:focus-visible,
|
||||
input[type="tel"]:focus,
|
||||
input[type="tel"]:focus-within,
|
||||
input[type="tel"]:focus-visible,
|
||||
input[type="range"]:focus,
|
||||
input[type="range"]:focus-within,
|
||||
input[type="range"]:focus-visible,
|
||||
input[type="date"]:focus,
|
||||
input[type="date"]:focus-within,
|
||||
input[type="date"]:focus-visible,
|
||||
input[type="month"]:focus,
|
||||
input[type="month"]:focus-within,
|
||||
input[type="month"]:focus-visible,
|
||||
input[type="week"]:focus,
|
||||
input[type="week"]:focus-within,
|
||||
input[type="week"]:focus-visible,
|
||||
input[type="time"]:focus,
|
||||
input[type="time"]:focus-within,
|
||||
input[type="time"]:focus-visible,
|
||||
input[type="datetime"]:focus,
|
||||
input[type="datetime"]:focus-within,
|
||||
input[type="datetime"]:focus-visible,
|
||||
input[type="datetime-local"]:focus,
|
||||
input[type="datetime-local"]:focus-within,
|
||||
input[type="datetime-local"]:focus-visible,
|
||||
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;
|
||||
box-shadow: none;
|
||||
outline: unset;
|
||||
}
|
||||
|
||||
select {
|
||||
border: 0.05em solid #000;
|
||||
border: 0.05rem solid #000;
|
||||
}
|
||||
|
||||
textarea {
|
||||
|
@ -1350,6 +1392,7 @@ textarea {
|
|||
|
||||
.site-main {
|
||||
padding: 0 1rem;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.site-main > section {
|
||||
|
@ -1360,6 +1403,23 @@ textarea {
|
|||
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 {
|
||||
display: flex;
|
||||
flex-flow: row;
|
||||
|
@ -1375,7 +1435,7 @@ textarea {
|
|||
.site-footer .site-info > section {
|
||||
margin-top: 2em;
|
||||
padding: 2em 4em;
|
||||
border-top: 0.05em solid #000;
|
||||
border-top: 0.05rem solid #000;
|
||||
}
|
||||
|
||||
.site-footer a {
|
||||
|
@ -1471,11 +1531,16 @@ textarea {
|
|||
width: 100%;
|
||||
}
|
||||
|
||||
.page-template-agenda-archive .site-main > article {
|
||||
padding-bottom: 1rem;
|
||||
}
|
||||
|
||||
.site-main {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.site-main > article {
|
||||
padding-top: 4rem;
|
||||
padding-bottom: 4rem;
|
||||
}
|
||||
|
||||
|
@ -1508,6 +1573,15 @@ textarea {
|
|||
padding-bottom: 4rem;
|
||||
}
|
||||
|
||||
.archive .site-main,
|
||||
.category .site-main {
|
||||
grid-template-columns: 1fr 3fr;
|
||||
}
|
||||
|
||||
.xarxaprod-filtered-content {
|
||||
grid-template-columns: 1fr 3fr;
|
||||
}
|
||||
|
||||
.site-footer {
|
||||
flex-flow: column;
|
||||
}
|
||||
|
@ -1523,11 +1597,19 @@ textarea {
|
|||
.xarxaprod-destacats,
|
||||
.xarxaprod-featured,
|
||||
.xarxaprod-last-convos,
|
||||
.xarxaprod-ultimes-convocatories,
|
||||
.archive-posts {
|
||||
.xarxaprod-ultimes-convocatories {
|
||||
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 {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
|
@ -1632,6 +1714,28 @@ textarea {
|
|||
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 */
|
||||
|
||||
/* end of menu hidden*/
|
||||
|
@ -1769,7 +1873,7 @@ textarea {
|
|||
right: 0.3em;
|
||||
width: 0.3em;
|
||||
height: 0.3em;
|
||||
border: 0.05em solid #000;
|
||||
border: 0.05rem solid #000;
|
||||
border-top: none;
|
||||
border-left: none;
|
||||
-moz-transform: rotate(45deg);
|
||||
|
@ -1857,10 +1961,6 @@ textarea {
|
|||
margin: 1.5em 0 0;
|
||||
}
|
||||
|
||||
.site-main .entry-title {
|
||||
margin: 0.5em 0 0 0;
|
||||
}
|
||||
|
||||
.page-links {
|
||||
clear: both;
|
||||
margin: 0 0 1.5em;
|
||||
|
@ -1871,7 +1971,7 @@ textarea {
|
|||
}
|
||||
|
||||
/*
|
||||
* big lletters block below titles
|
||||
* big letters block below titles
|
||||
* */
|
||||
.xarxaprod-intro {
|
||||
line-height: 1.2;
|
||||
|
@ -1886,22 +1986,28 @@ textarea {
|
|||
.ratlla-abaix .wp-block-column,
|
||||
.border-bottom .wp-block-column {
|
||||
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,
|
||||
.border-bottom .wp-block-heading {
|
||||
padding-top: 1em;
|
||||
padding-bottom: 2em;
|
||||
display: inline-grid;
|
||||
}
|
||||
|
||||
.ratlla-abaix .wp-block-heading::after,
|
||||
.border-bottom .wp-block-heading::after {
|
||||
content: "";
|
||||
border-bottom: 0.05em solid #000;
|
||||
width: 100%;
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
.ratlla-abaix p,
|
||||
.border-bottom p {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -1914,7 +2020,7 @@ textarea {
|
|||
.download-files a {
|
||||
display: inline-block;
|
||||
width: 100%;
|
||||
border-bottom: 0.05em solid #000;
|
||||
border-bottom: 0.05rem solid #000;
|
||||
}
|
||||
|
||||
.descarregar-fitxers a::after,
|
||||
|
@ -1931,7 +2037,7 @@ textarea {
|
|||
}
|
||||
|
||||
/* used in
|
||||
* ./template-parts/section-eachpost.php
|
||||
* template-parts/section-eachpost.php
|
||||
* */
|
||||
.xarxaprod-card-each {
|
||||
display: flex;
|
||||
|
@ -1941,12 +2047,11 @@ textarea {
|
|||
.xarxaprod-card-each .entry-title {
|
||||
margin: 0;
|
||||
padding: 0 0 0.5rem 0;
|
||||
border-bottom: 0.05em solid #000;
|
||||
}
|
||||
|
||||
.xarxaprod-card-each h6 {
|
||||
padding: 0.5rem 1rem 0.5rem 0;
|
||||
border-bottom: 0.05em solid #000;
|
||||
border-bottom: 0.05rem solid #000;
|
||||
}
|
||||
|
||||
.xarxaprod-card-each .xarxaprod-deadline {
|
||||
|
@ -1959,7 +2064,7 @@ textarea {
|
|||
}
|
||||
|
||||
.xarxaprod-card-each .excerpt {
|
||||
border-bottom: 0.05em solid #000;
|
||||
border-bottom: 0.05rem solid #000;
|
||||
margin-bottom: 0.5em;
|
||||
padding: 0.5em 0;
|
||||
}
|
||||
|
@ -1969,10 +2074,19 @@ textarea {
|
|||
}
|
||||
|
||||
/* used in
|
||||
* ./template-parts/content-xarxaprod-ajut.php
|
||||
* ./template-parts/content-xarxaprod-convo.php
|
||||
* ./template-parts/section-eachpost.php
|
||||
* template-parts/content-xarxaprod-ajut.php
|
||||
* template-parts/content-xarxaprod-convo.php
|
||||
* template-parts/section-eachpost.php
|
||||
* */
|
||||
.xarxaprod-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-contact-fields {
|
||||
display: grid;
|
||||
|
@ -1982,7 +2096,7 @@ textarea {
|
|||
.xarxaprod-fund-info-fields .xarxaprod-fund-info-field,
|
||||
.xarxaprod-fund-info-contact-fields .xarxaprod-fund-info-field {
|
||||
padding: 1rem 0;
|
||||
border-bottom: 0.05em solid #000;
|
||||
border-bottom: 0.05rem solid #000;
|
||||
}
|
||||
|
||||
.xarxaprod-fund-info-fields h6,
|
||||
|
@ -2034,47 +2148,22 @@ textarea {
|
|||
font-size: 0.8rem;
|
||||
}
|
||||
|
||||
article.xarxaprod-convo > .xarxaprod-convo-info-fields {
|
||||
padding-top: 2rem;
|
||||
}
|
||||
|
||||
article.xarxaprod-convo > .entry-footer {
|
||||
padding-top: 2rem;
|
||||
}
|
||||
|
||||
article.xarxaprod-convo > .entry-footer .xarxaprod-more-convos-header {
|
||||
padding: 2rem 0;
|
||||
font-size: 1.6rem;
|
||||
text-align: center;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
article.xarxaprod-convo > .entry-footer .last-convos {
|
||||
padding: 2rem 0;
|
||||
border-top: 0.05em solid #000;
|
||||
}
|
||||
|
||||
article.xarxaprod-convo > .entry-footer .last-convos > header {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.xarxaprod-convo-info-fields,
|
||||
.xarxaprod-agenda-info {
|
||||
margin-bottom: 2em;
|
||||
}
|
||||
|
||||
/* used in
|
||||
* archive-xarxaprod-convo.php
|
||||
* page-template/convo-search.php
|
||||
* template-parts/content-xarxaprod-convo.php
|
||||
* template-parts/section-eachconvo.php
|
||||
* */
|
||||
.xarxaprod-convo-info-fields li,
|
||||
.xarxaprod-agenda-info li {
|
||||
display: grid;
|
||||
grid-template-columns: 0.75fr 2.25fr;
|
||||
padding: 0.2em 0;
|
||||
border-top: 0.05em solid #000;
|
||||
border-bottom: 0.05rem solid #000;
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.xarxaprod-convo-info-fields li:last-of-type,
|
||||
.xarxaprod-agenda-info li:last-of-type {
|
||||
border-bottom: 0.05em solid #000;
|
||||
.xarxaprod-convo-info-fields li:first-of-type,
|
||||
.xarxaprod-agenda-info li:first-of-type {
|
||||
border-top: 0.05rem solid #000;
|
||||
}
|
||||
|
||||
.xarxaprod-convo-info-fields li .xarxaprod-label li,
|
||||
|
@ -2084,7 +2173,7 @@ textarea {
|
|||
padding: 0;
|
||||
color: inherit;
|
||||
border: none;
|
||||
background-color: none;
|
||||
background-color: transparent;
|
||||
font-size: inherit;
|
||||
}
|
||||
|
||||
|
@ -2095,16 +2184,12 @@ textarea {
|
|||
}
|
||||
|
||||
.xarxaprod-convo-info-fields dt,
|
||||
.xarxaprod-agenda-info dt {
|
||||
grid-row: 1 / 1;
|
||||
font-weight: 100;
|
||||
}
|
||||
|
||||
.xarxaprod-convo-info-fields dd,
|
||||
.xarxaprod-agenda-info dt,
|
||||
.xarxaprod-agenda-info dd {
|
||||
grid-row: 1 / 2;
|
||||
display: inline;
|
||||
font-weight: 100;
|
||||
margin: 0;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.xarxaprod-convo-info-fields p,
|
||||
|
@ -2113,6 +2198,61 @@ textarea {
|
|||
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
|
||||
* template-parts/content-xarxaprod-associat.php
|
||||
* * * * * * * * * */
|
||||
|
@ -2136,7 +2276,7 @@ textarea {
|
|||
display: grid;
|
||||
font-size: 1rem;
|
||||
border: none;
|
||||
border-top: 0.05em solid #000;
|
||||
border-top: 0.05rem solid #000;
|
||||
margin: 0;
|
||||
padding: 0.5em 0;
|
||||
}
|
||||
|
@ -2201,6 +2341,8 @@ textarea {
|
|||
/* mapas leaflet associats */
|
||||
.xarxaprod-associats-map,
|
||||
.xarxaprod-espais-map {
|
||||
margin: 0;
|
||||
grid-column: 1 / -1;
|
||||
aspect-ratio: 4 / 3;
|
||||
background-color: rgba(200, 200, 200, 0.4);
|
||||
}
|
||||
|
@ -2217,64 +2359,67 @@ textarea {
|
|||
|
||||
/*
|
||||
* categories:
|
||||
*
|
||||
* convocatorias pre 2024
|
||||
* agenda, activitats, agenda-es
|
||||
* REC
|
||||
*
|
||||
* * * * * * * * * * * * * * * */
|
||||
.xarxaprod-cards,
|
||||
.category-convocatories,
|
||||
.category-activitats,
|
||||
.category-agenda,
|
||||
.category-agenda-es {
|
||||
.category-rec {
|
||||
display: flex;
|
||||
flex-flow: column;
|
||||
justify-content: flex-end;
|
||||
padding-bottom: 4em;
|
||||
padding-bottom: 2rem;
|
||||
}
|
||||
|
||||
.xarxaprod-cards .wp-block-post-title,
|
||||
.category-convocatories .wp-block-post-title,
|
||||
.category-activitats .wp-block-post-title,
|
||||
.category-agenda .wp-block-post-title,
|
||||
.category-agenda-es .wp-block-post-title {
|
||||
.category-rec .wp-block-post-title {
|
||||
text-transform: lowercase;
|
||||
font-size: 1.5rem;
|
||||
margin-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,
|
||||
.category-convocatories .post-excerpt,
|
||||
.category-convocatories .wp-block-post-excerpt,
|
||||
.category-activitats .wp-block-post-excerpt,
|
||||
.category-agenda .wp-block-post-excerpt,
|
||||
.category-agenda-es .wp-block-post-excerpt {
|
||||
.category-rec .post-excerpt,
|
||||
.category-rec .wp-block-post-excerpt {
|
||||
min-height: 7rem;
|
||||
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,
|
||||
.category-convocatories .wp-block-read-more,
|
||||
.category-activitats .wp-block-read-more,
|
||||
.category-agenda .wp-block-read-more,
|
||||
.category-agenda-es .wp-block-read-more {
|
||||
.category-rec .wp-block-read-more {
|
||||
margin: 1em 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* categories:
|
||||
* agenda, activitats, agenda-es
|
||||
*
|
||||
* * * * * * * * * * * * * * * */
|
||||
|
||||
/* 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 {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
padding: 0.2em 0;
|
||||
border-bottom: 0.05em solid #000;
|
||||
border-bottom: 0.05rem solid #000;
|
||||
}
|
||||
|
||||
.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 > * {
|
||||
|
@ -2285,47 +2430,65 @@ textarea {
|
|||
.xarxaprod-agenda .xarxaprod-card-each .entry-title,
|
||||
.xarxaprod-agenda .xarxaprod-card-each h6 {
|
||||
border-bottom: none;
|
||||
padding: 0.5rem 0;
|
||||
}
|
||||
|
||||
li.category-activitats,
|
||||
li[class*="category-agenda"] {
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-content: space-between;
|
||||
.xarxaprod-card-each.category-activitats {
|
||||
justify-content: flex-start;
|
||||
}
|
||||
|
||||
li.category-activitats .wp-block-post-featured-image,
|
||||
li[class*="category-agenda"] .wp-block-post-featured-image {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
margin: 0;
|
||||
.xarxaprod-card-each.category-activitats .entry-title {
|
||||
display: inline-flex;
|
||||
align-items: flex-start;
|
||||
min-height: 5.5rem;
|
||||
overflow: hidden;
|
||||
border: none;
|
||||
}
|
||||
|
||||
.xarxaprod-card-each.category-activitats figure {
|
||||
order: -1;
|
||||
margin: 0 0 1rem 0;
|
||||
width: 100%;
|
||||
aspect-ratio: 16/9;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
li.category-activitats .wp-block-post-title::before,
|
||||
li[class*="category-agenda"] .wp-block-post-title::before {
|
||||
content: "";
|
||||
display: inline-block;
|
||||
min-width: 100%;
|
||||
height: auto;
|
||||
aspect-ratio: 16/9;
|
||||
margin-bottom: 2em;
|
||||
background-color: rgba(230, 230, 230, 0.4);
|
||||
border-radius: 0.3em;
|
||||
.xarxaprod-card-each.category-activitats figure img {
|
||||
object-position: 50% 50%;
|
||||
max-height: 100%;
|
||||
object-fit: cover;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
/* filters form custom fields
|
||||
*/
|
||||
.xarxaprod-filtered-content {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr;
|
||||
.xarxaprod-card-each.category-activitats .xarxaprod-agenda-info {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.xarxaprod-filtered-content .archive-posts {
|
||||
grid-template-columns: repeat(1, minmax(0, 1fr));
|
||||
.xarxaprod-card-each.category-activitats li {
|
||||
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 {
|
||||
margin: 0;
|
||||
}
|
||||
|
@ -2334,10 +2497,6 @@ textarea {
|
|||
display: none;
|
||||
}
|
||||
|
||||
.archive-posts {
|
||||
grid-template-columns: repeat(1, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.xarxaprod-titol-opcions {
|
||||
display: inline-block;
|
||||
width: 100%;
|
||||
|
@ -2348,7 +2507,7 @@ textarea {
|
|||
cursor: pointer;
|
||||
font-weight: 900;
|
||||
font-size: 0.9rem;
|
||||
border: 0.05em solid #000;
|
||||
border: 0.05rem solid #000;
|
||||
}
|
||||
|
||||
.xarxaprod-titol-opcions::after {
|
||||
|
@ -2410,29 +2569,16 @@ textarea {
|
|||
|
||||
@media screen and (min-width: 48em) {
|
||||
|
||||
.xarxaprod-filters {
|
||||
padding-right: 2em;
|
||||
}
|
||||
|
||||
.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 {
|
||||
.single-xarxaprod-convo .xarxaprod-convo-info-fields li,
|
||||
.single-xarxaprod-convo .xarxaprod-agenda-info li {
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
|
||||
.single-xarxaprod-associat .xarxaprod-associat .xarxaprod-associat-info {
|
||||
.single-xarxaprod-associat .xarxaprod-associat-info {
|
||||
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;
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
--------------------------------------------- */
|
||||
.comment-content a {
|
||||
|
@ -2758,7 +2883,7 @@ textarea {
|
|||
.wpcf7-form input:not([type="submit"]),
|
||||
.wpcf7-form textarea {
|
||||
background: transparent;
|
||||
border: 0.05em solid #000;
|
||||
border: 0.05rem solid #000;
|
||||
padding: 1em;
|
||||
}
|
||||
|
||||
|
@ -2828,7 +2953,7 @@ textarea {
|
|||
}
|
||||
|
||||
.contactform-fund-options label.oficinasuport-titol-opcions {
|
||||
border: 0.05em solid #000;
|
||||
border: 0.05rem solid #000;
|
||||
width: 100%;
|
||||
display: inline-block;
|
||||
margin-bottom: 1em;
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -11,53 +11,23 @@
|
|||
|
||||
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
||||
<header class="entry-header">
|
||||
<?php
|
||||
the_title( '<h3 class="entry-title">', '</h3>' );
|
||||
<h1 class="entry-title">
|
||||
<?php the_title(); ?>
|
||||
</h1>
|
||||
|
||||
<?php
|
||||
if ( 'post' === get_post_type() ) :
|
||||
?>
|
||||
<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_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>
|
||||
</div><!-- .entry-meta -->
|
||||
<?php endif; ?>
|
||||
</header><!-- .entry-header -->
|
||||
|
||||
<?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 -->
|
||||
<?php endif; ?>
|
||||
</header><!-- .entry-header -->
|
||||
|
||||
</dd>
|
||||
</li>
|
||||
</ul>
|
||||
</aside>
|
||||
<?php endif; //end in_category agenda activitats ?>
|
||||
<div class="entry-content">
|
||||
<?php
|
||||
the_content(
|
||||
|
|
|
@ -15,58 +15,54 @@
|
|||
<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
|
||||
</header><!-- .entry-header -->
|
||||
|
||||
<aside cass="xarxaprod-espai-image">
|
||||
<?php
|
||||
if( get_field('xxp_convo_espai_associat') ):
|
||||
// read here howto
|
||||
// https://www.advancedcustomfields.com/resources/relationship/#display-list-of-posts-with-setuppostdata
|
||||
$espai_associat_posts = get_field('xxp_convo_espai_associat');
|
||||
if( $espai_associat_posts ):
|
||||
foreach( $espai_associat_posts as $post ):
|
||||
// Setup this post for WP functions (variable must be named $post).
|
||||
setup_postdata($post); ?>
|
||||
|
||||
<?php
|
||||
// search and output images
|
||||
// check if has post_thumbnail
|
||||
if ( has_post_thumbnail() ){
|
||||
xarxaprod_post_thumbnail('full');
|
||||
} else { ?>
|
||||
<?php if( have_rows('xxp_associat_gallery_images') ){ ?>
|
||||
<section class="xarxaprod-associat-gallery-images">
|
||||
<ul class="xarxaprod-associat-slides">
|
||||
<?php while( have_rows('xxp_associat_gallery_images') ): the_row(); ?>
|
||||
<?php $image=get_sub_field('xxp_associat_image'); ?>
|
||||
<li id="<?php echo acf_esc_html( $image['filename'] );?>" class="xarxaprod-associat-image">
|
||||
<?php //print_r( $image ); //echo the whole array ?>
|
||||
<?php //print_r( $image['ID'] ); // echo one fiels of the array?>
|
||||
<?php echo wp_get_attachment_image( $image['ID'], 'full' ); ?>
|
||||
<p class="caption"><?php //echo acf_esc_html( $image['caption'] );?></p>
|
||||
</li>
|
||||
<?php endwhile; //end while has rows ?>
|
||||
</ul>
|
||||
</section>
|
||||
<?php }; //end if xxp_associat_gallery_images ?>
|
||||
|
||||
<aside cass="xarxaprod-espai-image">
|
||||
<?php
|
||||
if( get_field('xxp_convo_espai_associat') ):
|
||||
// read here howto
|
||||
// https://www.advancedcustomfields.com/resources/relationship/#display-list-of-posts-with-setuppostdata
|
||||
$espai_associat_posts = get_field('xxp_convo_espai_associat');
|
||||
if( $espai_associat_posts ):
|
||||
foreach( $espai_associat_posts as $post ):
|
||||
// Setup this post for WP functions (variable must be named $post).
|
||||
setup_postdata($post); ?>
|
||||
|
||||
<?php
|
||||
// search and output images
|
||||
// check if has post_thumbnail
|
||||
if ( has_post_thumbnail() ){
|
||||
xarxaprod_post_thumbnail('full');
|
||||
} else { ?>
|
||||
<?php if( have_rows('xxp_associat_gallery_images') ){ ?>
|
||||
<section class="xarxaprod-associat-gallery-images">
|
||||
<ul class="xarxaprod-associat-slides">
|
||||
<?php while( have_rows('xxp_associat_gallery_images') ): the_row(); ?>
|
||||
<?php $image=get_sub_field('xxp_associat_image'); ?>
|
||||
<li id="<?php echo acf_esc_html( $image['filename'] );?>" class="xarxaprod-associat-image">
|
||||
<?php //print_r( $image ); //echo the whole array ?>
|
||||
<?php //print_r( $image['ID'] ); // echo one fiels of the array?>
|
||||
<?php echo wp_get_attachment_image( $image['ID'], 'full' ); ?>
|
||||
<p class="caption"><?php //echo acf_esc_html( $image['caption'] );?></p>
|
||||
</li>
|
||||
<?php endwhile; //end while has rows ?>
|
||||
</ul>
|
||||
</section>
|
||||
<?php }; //end if xxp_associat_gallery_images ?>
|
||||
|
||||
<?php };//end has_post_thumbnail ?>
|
||||
|
||||
<?php endforeach;
|
||||
// Reset the global post object so that the rest of the page works correctly.
|
||||
wp_reset_postdata();
|
||||
endif;
|
||||
endif;
|
||||
?>
|
||||
</aside>
|
||||
|
||||
<?php };//end has_post_thumbnail ?>
|
||||
|
||||
<?php endforeach;
|
||||
// Reset the global post object so that the rest of the page works correctly.
|
||||
wp_reset_postdata();
|
||||
endif;
|
||||
endif;
|
||||
?>
|
||||
</aside>
|
||||
|
||||
<section class="xarxaprod-convo-info-fields">
|
||||
<ul>
|
||||
<?php if( get_field('xxp_convo_espai_associat') ):
|
||||
// read here howto
|
||||
// https://www.advancedcustomfields.com/resources/relationship/#display-list-of-posts-with-setuppostdata
|
||||
// read here howto
|
||||
// https://www.advancedcustomfields.com/resources/relationship/#display-list-of-posts-with-setuppostdata
|
||||
$espai_associat_posts = get_field('xxp_convo_espai_associat');
|
||||
if( $espai_associat_posts ):
|
||||
foreach( $espai_associat_posts as $post ):
|
||||
|
@ -106,10 +102,14 @@
|
|||
<dt>Termini</dt>
|
||||
<?php if( get_field('xxp_convo_apply_begin') || get_field('xxp_convo_apply_end') ): ?>
|
||||
<dd class="xarxaprod-label item-xxp_convo_dates">
|
||||
<?php if( get_field('xxp_convo_apply_begin') ): ?>
|
||||
<span class="item-xxp_convo_apply_begin">del <?php the_field('xxp_convo_apply_begin'); ?> </span>
|
||||
<?php endif; ?>
|
||||
<?php if( get_field('xxp_convo_apply_end') && !get_field('xxp_convo_apply_begin') ){ echo 'fins'; } ?>
|
||||
<?php if( get_field('xxp_convo_apply_end') ): ?>
|
||||
<span class="item-xxp_convo_apply_end">al <?php the_field('xxp_convo_apply_end'); ?> </span>
|
||||
<?php endif; ?>
|
||||
<?php if( get_field('xxp_convo_apply_text') ): ?>
|
||||
<br />
|
||||
<span class="item-xxp_convo_apply_text"><?php the_field('xxp_convo_apply_text'); ?></span>
|
||||
<?php endif; ?>
|
||||
</dd>
|
||||
|
@ -119,11 +119,14 @@
|
|||
<li class="xarxaprod-convo-info-date">
|
||||
<dt>Periode</dt>
|
||||
<?php if( get_field('xxp_convo_date_begin') || get_field('xxp_convo_date_end') ): ?>
|
||||
<dd class="xarxaprod-label item-xxp_convo_dates">
|
||||
del
|
||||
<span class="item-xxp_convo_date_begin">del <?php the_field('xxp_convo_date_begin'); ?> </span>
|
||||
al
|
||||
<dd class="xarxaprod-label item-xxp_convo_dates">
|
||||
<?php if( get_field('xxp_convo_date_begin') ): ?>
|
||||
<span class="item-xxp_convo_date_begin">del <?php the_field('xxp_convo_date_begin'); ?> </span>
|
||||
<?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>
|
||||
<?php endif;?>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
</li>
|
||||
|
|
|
@ -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>
|
|
@ -6,19 +6,63 @@
|
|||
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
|
||||
*
|
||||
* @package Xarxaprod_theme
|
||||
* @used_by page-template/convo-serach.php
|
||||
* @used_by page-template/convo-archive.php
|
||||
*
|
||||
*/
|
||||
?>
|
||||
|
||||
<article id="post-<?php the_ID(); ?>" <?php post_class('xarxaprod-card-each'); ?> >
|
||||
<h3 class="entry-title">
|
||||
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" rel="bookmark">
|
||||
<?php the_title(); ?>
|
||||
</a>
|
||||
</h3>
|
||||
<article id="post-<?php the_ID(); ?>" <?php post_class('xarxaprod-card-each'); ?> >
|
||||
<h3 class="entry-title">
|
||||
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" rel="bookmark">
|
||||
<?php the_title(); ?>
|
||||
</a>
|
||||
</h3>
|
||||
|
||||
|
||||
<section class="xarxaprod-convo-info-fields">
|
||||
<ul>
|
||||
<li class="xarxaprod-convo-info-date">
|
||||
<?php if( get_field('xxp_convo_apply_begin') || get_field('xxp_convo_apply_end') ): ?>
|
||||
<dt>Termini</dt>
|
||||
<dd class="xarxaprod-label item-xxp_convo_dates">
|
||||
<?php if( get_field('xxp_convo_apply_begin') ): ?>
|
||||
<span class="item-xxp_convo_apply_begin">del <?php the_field('xxp_convo_apply_begin'); ?> </span>
|
||||
<?php endif; ?>
|
||||
<?php if( get_field('xxp_convo_apply_end') && !get_field('xxp_convo_apply_begin') ){ echo 'fins'; } ?>
|
||||
<?php if( get_field('xxp_convo_apply_end') ): ?>
|
||||
<span class="item-xxp_convo_apply_end">al <?php the_field('xxp_convo_apply_end'); ?> </span>
|
||||
<?php endif; ?>
|
||||
<?php if( get_field('xxp_convo_apply_text') ): ?>
|
||||
<span class="item-xxp_convo_apply_text"><?php the_field('xxp_convo_apply_text'); ?></span>
|
||||
<?php endif; ?>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
</li>
|
||||
<?php if( ! get_field('xxp_convo_espai_associat') ): ?>
|
||||
<?php // read here howto ?>
|
||||
<?php // https://www.advancedcustomfields.com/resources/relationship/#display-list-of-posts-with-setuppostdata ?>
|
||||
<?php if( get_field('xxp_convoer_name') ): ?>
|
||||
<li class="xarxaprod-convo-field">
|
||||
<dt></dt>
|
||||
<dd class="xarxaprod-convoer-name"><?php the_field('xxp_convoer_name'); ?></dd>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
<?php else: //exists get_field('xxp_convo_espai_associat')?>
|
||||
<?php $espai_associat_posts = get_field('xxp_convo_espai_associat'); ?>
|
||||
<?php foreach( $espai_associat_posts as $thispost ): ?>
|
||||
<?php // Setup this post for WP functions (variable must be named $post).?>
|
||||
<li class="xarxaprod-convo-espai-associat">
|
||||
<dt></dt>
|
||||
<dd><a href="<?php echo ($thispost->guid);//the_permalink(); ?>"><?php echo ($thispost->post_title); ?><?php //the_title(); ?></a></dd>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
<?php // Reset the global post object so that the rest of the page works correctly.?>
|
||||
<?php endif; //end get_field('xxp_convo_espai_associat') ?>
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
|
||||
<?php if( get_field('xxp_convo_apply_end') ): ?>
|
||||
<h6 class="xarxaprod-convo-date"><?php the_field('xxp_convo_apply_end'); ?></h6>
|
||||
<?php endif; ?>
|
||||
|
||||
<section class="excerpt post-excerpt">
|
||||
<?php //the_excerpt() ?>
|
||||
|
@ -27,29 +71,24 @@
|
|||
</section>
|
||||
|
||||
<aside>
|
||||
<?php get_template_part(
|
||||
'template-parts/section',
|
||||
'list-checkbox',
|
||||
array('iterate_field' => 'xxp_convo_field')
|
||||
); ?>
|
||||
<?php get_template_part(
|
||||
'template-parts/section',
|
||||
'list-checkbox',
|
||||
array('iterate_field' => 'xxp_convo_field')
|
||||
); ?>
|
||||
|
||||
<?php get_template_part(
|
||||
'template-parts/section',
|
||||
'list-checkbox',
|
||||
array('iterate_field' => 'xxp_convo_territory')
|
||||
); ?>
|
||||
<?php get_template_part(
|
||||
'template-parts/section',
|
||||
'list-checkbox',
|
||||
array('iterate_field' => 'xxp_convo_territory')
|
||||
); ?>
|
||||
|
||||
<?php get_template_part(
|
||||
'template-parts/section',
|
||||
'list-checkbox',
|
||||
array('iterate_field' => 'xxp_convo_service')
|
||||
); ?>
|
||||
<?php get_template_part(
|
||||
'template-parts/section',
|
||||
'list-checkbox',
|
||||
array('iterate_field' => 'xxp_convo_service')
|
||||
); ?>
|
||||
|
||||
<?php get_template_part(
|
||||
'template-parts/section',
|
||||
'list-checkbox',
|
||||
array('iterate_field' => 'xxp_convo_center')
|
||||
); ?>
|
||||
</aside>
|
||||
|
||||
<nav class="more-link">
|
||||
|
|
|
@ -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(); ?> -->
|
|
@ -40,7 +40,7 @@
|
|||
<?php if ( $featured_query->have_posts() ) : ?>
|
||||
<?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 wp_reset_postdata(); ?>
|
||||
|
|
|
@ -1,17 +1,20 @@
|
|||
<?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/
|
||||
*
|
||||
* @package Xarxaprod_theme
|
||||
* @used by page.php
|
||||
* @shown in : home
|
||||
*
|
||||
*/
|
||||
|
||||
?>
|
||||
|
||||
<section id="agenda" class="agenda ">
|
||||
<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>
|
||||
<main class="xarxaprod-agenda">
|
||||
|
||||
|
@ -53,8 +56,16 @@
|
|||
<?php endif; ?>
|
||||
</section>
|
||||
<aside class="agenda-date agenda-data">
|
||||
<?php if( get_field('xxp_agenda_date_start') ): ?>
|
||||
<p class="item-xxp-agenda-date-start"><?php the_field('xxp_agenda_date_start'); ?></p>
|
||||
<?php if( get_field('xxp_agenda_date_start') || get_field('xxp_agenda_date_start') || get_field('xxp_agenda_free_text') ): ?>
|
||||
<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; ?>
|
||||
</aside>
|
||||
</div>
|
|
@ -88,17 +88,49 @@
|
|||
</a>
|
||||
</header><!-- .entry-header -->
|
||||
|
||||
<?php if( get_field('xxp_convo_apply_begin') || get_field('xxp_convo_apply_end') ): ?>
|
||||
|
||||
<h6 class="xarxaprod-deadline">Deadline:
|
||||
<?php //the_field('xxp_convo_apply_begin'); ?>
|
||||
<?php the_field('xxp_convo_apply_end'); ?>
|
||||
</h6>
|
||||
<?php endif; ?>
|
||||
<section class="xarxaprod-convo-info-fields">
|
||||
<ul>
|
||||
<li class="xarxaprod-convo-info-date">
|
||||
<?php if( get_field('xxp_convo_apply_begin') || get_field('xxp_convo_apply_end') ): ?>
|
||||
<dt>Termini</dt>
|
||||
<dd class="xarxaprod-label item-xxp_convo_dates">
|
||||
<?php if( get_field('xxp_convo_apply_begin') ): ?>
|
||||
<span class="item-xxp_convo_apply_begin">del <?php the_field('xxp_convo_apply_begin'); ?> </span>
|
||||
<?php endif; ?>
|
||||
<?php if( get_field('xxp_convo_apply_end') && !get_field('xxp_convo_apply_begin') ){ echo 'fins'; } ?>
|
||||
<?php if( get_field('xxp_convo_apply_end') ): ?>
|
||||
<span class="item-xxp_convo_apply_end">al <?php the_field('xxp_convo_apply_end'); ?> </span>
|
||||
<?php endif; ?>
|
||||
<?php if( get_field('xxp_convo_apply_text') ): ?>
|
||||
<span class="item-xxp_convo_apply_text"><?php the_field('xxp_convo_apply_text'); ?></span>
|
||||
<?php endif; ?>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
</li>
|
||||
<?php if( ! get_field('xxp_convo_espai_associat') ): ?>
|
||||
<?php // read here howto ?>
|
||||
<?php // https://www.advancedcustomfields.com/resources/relationship/#display-list-of-posts-with-setuppostdata ?>
|
||||
<?php if( get_field('xxp_convoer_name') ): ?>
|
||||
<li class="xarxaprod-convo-field">
|
||||
<dt></dt>
|
||||
<dd class="xarxaprod-convoer-name"><?php the_field('xxp_convoer_name'); ?></dd>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
<?php else: //exists get_field('xxp_convo_espai_associat')?>
|
||||
<?php $espai_associat_posts = get_field('xxp_convo_espai_associat'); ?>
|
||||
<?php foreach( $espai_associat_posts as $thispost ): ?>
|
||||
<?php // Setup this post for WP functions (variable must be named $post).?>
|
||||
<li class="xarxaprod-convo-espai-associat">
|
||||
<dt></dt>
|
||||
<dd><a href="<?php echo ($thispost->guid);//the_permalink(); ?>"><?php echo ($thispost->post_title); ?><?php //the_title(); ?></a></dd>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
<?php // Reset the global post object so that the rest of the page works correctly.?>
|
||||
<?php endif; //end get_field('xxp_convo_espai_associat') ?>
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
<?php if( get_field('xxp_convo_apply_text') ): ?>
|
||||
<h6 class="item-xxp_convo_apply_text"><?php the_field('xxp_convo_apply_text'); ?></h6>
|
||||
<?php endif; ?>
|
||||
|
||||
<section class="excerpt post-excerpt">
|
||||
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" rel="bookmark" class="">
|
||||
|
|
Loading…
Reference in New Issue