-
Notifications
You must be signed in to change notification settings - Fork 0
/
sh-page-galeria-acf.php
49 lines (31 loc) · 1.31 KB
/
sh-page-galeria-acf.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?php
/**
* Template Name: Galería de medios
* Description: Crea la portada de un conjunto de galerías vía ACF.
*
* @package WordPress
* @subpackage SH_Base
* @since SH Base 1.0
*/
get_header(); ?>
<section class="content">
<?php while ( have_posts() ) : the_post(); ?>
<article class="default-page-full">
<h1 class="titulo"><?php the_title(); ?></h1>
<?php the_content(); ?>
<section class="galeria">
<!-- PORTADAS DE GALERÍA DE MEDIOS-->
<?php if(get_field('galeria')): ?>
<?php while(has_sub_field('galeria')): ?>
<a class="item" href="<?php the_sub_field('url'); ?>">
<img src="<?php the_sub_field('imagen'); ?>" />
<h3><?php the_sub_field('titulo'); ?></h3>
</a>
<?php endwhile; ?>
<?php endif; ?>
</section>
<?php the_social_share(); ?>
</article><!-- .default-page ?> -->
<?php endwhile; // end of the loop. ?>
</section><!-- .content -->
<?php get_footer(); ?>