-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsingular-no-header.php
executable file
·73 lines (52 loc) · 1.69 KB
/
singular-no-header.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
65
66
67
68
69
70
71
72
73
<?php
/**
* Template Name: No header
* Template Post Type: post, page
*
* Para uso en casos de mostrar contenido sin encabezado.
* For use in cases of displaying content, without custom header.
*
* @link https://developer.wordpress.org/themes/template-files-section/page-template-files/
*
* @package WordPress
* @subpackage ekiline
*/
// No incluir custom-header.
// Disable custom-header.
remove_action( 'wp_body_open', 'ekiline_top_page_custom_header', 1 );
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(); ?>