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
* ./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;
}
.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 .category-convocatories,
.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 {
display: flex;
flex-direction: column;
//justify-content: end;
.entry-title,h6 {
margin: 0;
padding: 0.5rem 0;
@ -190,8 +191,8 @@
}
/* used in
* ./template-parts/content-xarxaprod-associat.php
* */
* template-parts/content-xarxaprod-associat.php
* * * * * * * * * */
.single-xarxaprod-associat {
.xarxaprod-associat {
> 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:
*

View File

@ -1970,8 +1970,8 @@ textarea {
}
/* used in
* ./template-parts/content-xarxaprod-associat.php
* */
* template-parts/content-xarxaprod-associat.php
* * * * * * * * * */
.single-xarxaprod-associat .xarxaprod-associat > section {
margin-top: 4em;
}
@ -2018,6 +2018,26 @@ textarea {
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:
*

File diff suppressed because one or more lines are too long

View File

@ -43,7 +43,6 @@
</main><!-- .entry-content -->
<section class="xarxaprod-associat-info">
<section class="xarxaprod-associat-contact">
<dt>&nbsp;</dt>
<ul class="xarxaprod-associat-contact-fields">
<?php if( get_field('xxp_associat_address') ): ?>
<li class="xarxaprod-associat-address">
@ -77,7 +76,11 @@
<section class="xarxaprod-associat-services">
<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 class="xarxaprod-associat-logo">

View File

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

View File

@ -10,36 +10,61 @@
?>
<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() ?>
<?php //the_excerpt() ?>
<?php echo wp_trim_words(get_the_excerpt(), 22); // https://developer.wordpress.org/reference/functions/wp_trim_words/?>
</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>
<aside class="xarxaprod-associat-info">
<section class="xarxaprod-associat-contact">
<ul class="xarxaprod-associat-contact-fields">
<?php if( get_field('xxp_associat_address') ): ?>
<li class="xarxaprod-associat-address">
<h6>adreça / direccion:</h6>
<p><?php the_field('xxp_associat_address'); ?></p>
</li>
<?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 if( get_field('xxp_associat_mail') ): ?>
<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 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>
<nav class="more-link">
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" rel="bookmark" class="button button-more">