-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
executable file
·64 lines (44 loc) · 1.36 KB
/
index.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<?php
/**
* Index template.
*
* @link https://developer.wordpress.org/themes/basics/template-files/
*
* @package ekiline
*/
get_header();
?>
<?php ekiline_main_columns( 'open' ); ?>
<main id="primary" class="<?php ekiline_sort_cols( 'main' ); ?>">
<?php dynamic_sidebar( 'content-w1' ); ?>
<?php get_template_part( 'template-parts/content', 'headline' ); ?>
<?php
/** Loop https://developer.wordpress.org/themes/basics/the-loop/ **/
if ( have_posts() ) {
ekiline_show_columns( 'open' );
while ( have_posts() ) :
the_post();
/*
* Referencias para condicionar las partes de contenido.
* https://developer.wordpress.org/reference/functions/get_post_type/
* https://cybmeta.com/como-utilizar-get_template_part
* https://wordpress.stackexchange.com/questions/260998/get-template-part-based-on-get-post-type-for-a-custom-post-type-instead-of-g
*/
get_template_part( 'template-parts/content', get_post_type() );
endwhile;
ekiline_show_columns( 'close' );
} else {
get_template_part( 'template-parts/content', 'none' );
}
?>
<?php ekiline_pagination(); ?>
<?php dynamic_sidebar( 'content-w2' ); ?>
<?php
if ( comments_open() || get_comments_number() ) {
comments_template();
}
?>
</main><!-- #primary -->
<?php get_sidebar(); ?>
<?php ekiline_main_columns( 'close' ); ?>
<?php get_footer(); ?>