Compare commits

...

4 Commits

Author SHA1 Message Date
jorge 0d0113f9de styled convos and members 2024-03-14 11:37:22 +01:00
jorge ab2042f727 edited file compile coding styles 2024-03-14 11:36:43 +01:00
jorge 91ba0e1791 coded each member and styled 2024-03-14 11:35:49 +01:00
jorge b8d13620ff coding styles 2024-03-14 11:35:02 +01:00
9 changed files with 155 additions and 40 deletions

View File

@ -1908,7 +1908,14 @@ Add your custom styles in this file so it is easier to update the theme.
* */ * */
/* used in /* used in
* ./template-parts/content-xarxaprod-associat.php * template-parts/content-xarxaprod-associat.php
* * * * * * * * * */
/*
* used in
* archive-xarxaprod-associat.php
* page-templates/associats-search.php
*
* */ * */
/* /*
@ -2182,6 +2189,20 @@ Add your custom styles in this file so it is easier to update the theme.
font-size: 1em; font-size: 1em;
} }
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-associat .xarxaprod-associat-contact {
font-size: 0.9rem;
}
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-associat .xarxaprod-associat-contact h6 {
font-size: 0.9rem;
border: none;
}
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-associat .xarxaprod-associat-contact li {
display: grid;
grid-template-columns: 1fr 2fr;
}
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-cards, .edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-cards,
.edit-post-visual-editor__content-area .editor-styles-wrapper .category-convocatories, .edit-post-visual-editor__content-area .editor-styles-wrapper .category-convocatories,
.edit-post-visual-editor__content-area .editor-styles-wrapper .category-activitats, .edit-post-visual-editor__content-area .editor-styles-wrapper .category-activitats,

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -81,6 +81,7 @@
.xarxaprod-card-each { .xarxaprod-card-each {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
//justify-content: end;
.entry-title,h6 { .entry-title,h6 {
margin: 0; margin: 0;
padding: 0.5rem 0; padding: 0.5rem 0;
@ -190,8 +191,8 @@
} }
/* used in /* used in
* ./template-parts/content-xarxaprod-associat.php * template-parts/content-xarxaprod-associat.php
* */ * * * * * * * * * */
.single-xarxaprod-associat { .single-xarxaprod-associat {
.xarxaprod-associat { .xarxaprod-associat {
> section { > section {
@ -243,6 +244,25 @@
} }
} }
/*
* used in
* archive-xarxaprod-associat.php
* page-templates/associats-search.php
*
* */
.xarxaprod-associat {
.xarxaprod-associat-contact {
font-size: $font__size-body * 0.9;
h6 {
font-size: $font__size-body * 0.9;
border: none;
}
li {
display:grid;
grid-template-columns: 1fr 2fr;
}
}
}
/* /*
* categories: * categories:
* *

View File

@ -1970,8 +1970,8 @@ textarea {
} }
/* used in /* used in
* ./template-parts/content-xarxaprod-associat.php * template-parts/content-xarxaprod-associat.php
* */ * * * * * * * * * */
.single-xarxaprod-associat .xarxaprod-associat > section { .single-xarxaprod-associat .xarxaprod-associat > section {
margin-top: 4em; margin-top: 4em;
} }
@ -2018,6 +2018,26 @@ textarea {
font-size: 1em; font-size: 1em;
} }
/*
* used in
* archive-xarxaprod-associat.php
* page-templates/associats-search.php
*
* */
.xarxaprod-associat .xarxaprod-associat-contact {
font-size: 0.9rem;
}
.xarxaprod-associat .xarxaprod-associat-contact h6 {
font-size: 0.9rem;
border: none;
}
.xarxaprod-associat .xarxaprod-associat-contact li {
display: grid;
grid-template-columns: 1fr 2fr;
}
/* /*
* categories: * categories:
* *

File diff suppressed because one or more lines are too long

View File

@ -43,7 +43,6 @@
</main><!-- .entry-content --> </main><!-- .entry-content -->
<section class="xarxaprod-associat-info"> <section class="xarxaprod-associat-info">
<section class="xarxaprod-associat-contact"> <section class="xarxaprod-associat-contact">
<dt>&nbsp;</dt>
<ul class="xarxaprod-associat-contact-fields"> <ul class="xarxaprod-associat-contact-fields">
<?php if( get_field('xxp_associat_address') ): ?> <?php if( get_field('xxp_associat_address') ): ?>
<li class="xarxaprod-associat-address"> <li class="xarxaprod-associat-address">
@ -77,7 +76,11 @@
<section class="xarxaprod-associat-services"> <section class="xarxaprod-associat-services">
<dt>Serveis</dt> <dt>Serveis</dt>
<?php get_template_part( 'template-parts/section', 'list-checkbox', array('iterate_field' => 'xxp_associat_service') ); ?> <?php get_template_part(
'template-parts/section',
'list-checkbox',
array('iterate_field' => 'xxp_associat_service')
); ?>
</section> </section>
<section class="xarxaprod-associat-logo"> <section class="xarxaprod-associat-logo">

View File

@ -15,22 +15,48 @@
<?php the_title(); ?> <?php the_title(); ?>
</a> </a>
</h3> </h3>
<?php if( get_field('xxp_convo_apply_end') ): ?> <?php if( get_field('xxp_convo_apply_end') ): ?>
<h6 class="xarxaprod-convo-date"><?php the_field('xxp_convo_apply_end'); ?></h6> <h6 class="xarxaprod-convo-date"><?php the_field('xxp_convo_apply_end'); ?></h6>
<?php endif; ?> <?php endif; ?>
<section class="excerpt post-excerpt"> <section class="excerpt post-excerpt">
<?php the_excerpt() ?> <?php //the_excerpt() ?>
<?php echo wp_trim_words(get_the_excerpt(), 30); // https://developer.wordpress.org/reference/functions/wp_trim_words/?>
</section> </section>
<aside> <aside>
<?php get_template_part( 'template-parts/section', 'list-checkbox', array('iterate_field' => 'xxp_convo_field') ); ?> <?php get_template_part(
<?php get_template_part( 'template-parts/section', 'list-checkbox', array('iterate_field' => 'xxp_convo_territory') ); ?> 'template-parts/section',
<?php get_template_part( 'template-parts/section', 'list-checkbox', array('iterate_field' => 'xxp_convo_service') ); ?> 'list-checkbox',
<?php get_template_part( 'template-parts/section', 'list-checkbox', array('iterate_field' => 'xxp_convo_center') ); ?> 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_service')
); ?>
<?php get_template_part(
'template-parts/section',
'list-checkbox',
array('iterate_field' => 'xxp_convo_center')
); ?>
</aside> </aside>
<nav class="more-link"> <nav class="more-link">
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" rel="bookmark" class="button button-more"> <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" rel="bookmark" class="button button-more">
Més info Més info
<span class="hide"><?php the_title(); ?></span> <span class="hide"><?php the_title(); ?></span>
</a> </a>
</nav> </nav>
</article><!-- #post-<?php the_ID(); ?> --> </article><!-- #post-<?php the_ID(); ?> -->

View File

@ -10,36 +10,61 @@
?> ?>
<article id="post-<?php the_ID(); ?>" <?php post_class('xarxaprod-card-each'); ?> > <article id="post-<?php the_ID(); ?>" <?php post_class('xarxaprod-card-each'); ?> >
<h3 class="entry-title"> <h3 class="entry-title">
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" rel="bookmark"> <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" rel="bookmark">
<?php the_title(); ?> <?php the_title(); ?>
</a> </a>
</h3> </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"> <section class="excerpt post-excerpt">
<?php the_excerpt() ?> <?php //the_excerpt() ?>
<?php echo wp_trim_words(get_the_excerpt(), 22); // https://developer.wordpress.org/reference/functions/wp_trim_words/?>
</section> </section>
<aside>
<?php get_template_part( 'template-parts/section', 'list-checkbox', array('iterate_field' => 'xxp_fund_target') ); ?> <aside class="xarxaprod-associat-info">
<?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') ); ?> <section class="xarxaprod-associat-contact">
<?php if( get_field('xxp_fund_apply_begin') || get_field('xxp_fund_apply_end') ): ?> <ul class="xarxaprod-associat-contact-fields">
<ul class="xarxaprod-label item-xxp_fund_dates"> <?php if( get_field('xxp_associat_address') ): ?>
<li>del <?php the_field('xxp_fund_apply_begin'); ?></li> <li class="xarxaprod-associat-address">
<li>al <?php the_field('xxp_fund_apply_end'); ?></li> <h6>adreça / direccion:</h6>
</ul> <p><?php the_field('xxp_associat_address'); ?></p>
<?php endif; ?> </li>
<?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 endif; ?>
<?php if( get_field('xxp_fund_call') ): ?> <?php if( get_field('xxp_associat_mail') ): ?>
<?php get_template_part( 'template-parts/section', 'list-checkbox', array('iterate_field' => 'xxp_fund_call') ); ?> <li class="xarxaprod-associat-mail">
<h6>mail:</h6>
<p><a href="mailto:<?php the_field('xxp_associat_mail'); ?>"><?php the_field('xxp_associat_mail'); ?></a></p>
</li>
<?php endif; ?> <?php endif; ?>
<?php if( get_field('xxp_associat_web') ): ?>
<li class="xarxaprod-associat-web">
<h6>web:</h6>
<p><a href="<?php the_field('xxp_associat_web'); ?>" class=""><?php the_field('xxp_associat_web') ;?></a></p>
</li>
<?php endif; ?>
<?php if( get_field('xxp_associat_tel') ): ?>
<li class="xarxaprod-associat-tel">
<h6>tel:</h6>
<p><?php the_field('xxp_associat_tel'); ?></p>
</li>
<?php endif; ?>
</ul>
</section>
<section class="xarxaprod-associat-services">
<dt>Serveis</dt>
<?php get_template_part(
'template-parts/section',
'list-checkbox',
array('iterate_field' => 'xxp_associat_service')
); ?>
</section>
</aside> </aside>
<nav class="more-link"> <nav class="more-link">
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" rel="bookmark" class="button button-more"> <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" rel="bookmark" class="button button-more">