-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathattachment.php
More file actions
43 lines (35 loc) · 1.17 KB
/
attachment.php
File metadata and controls
43 lines (35 loc) · 1.17 KB
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
<?php
/**
* Template for displaying all attachment medias
*
* Rendering an attachment page (attachment post-type) requires following the follow path:
*
* 1. MIME_type.php – it can be any MIME type (For example: image.php, video.php, application.php).
* For text/plain, the following path is used (in order):
* - text.php
* - plain.php
* - text_plain.php
* 2. attachment.php
* 3. single-attachment.php
* 4. single.php
* 5. index.php
*
* Learn more: https://developer.wordpress.org/themes/basics/template-hierarchy/#attachment
*
* @package WP_Basic_Bootstrap
* @since WP_Basic_Bootstrap 1.0
*/
$template = get_template_type();
$page_type = get_page_type();
if (BASICBOOTSTRAP_TPLDBG) {
error_log('loaded file : '.__FILE__);
error_log('page type : '.$page_type);
error_log('applied template : '.$template);
}
get_header_hierarchical('attachment'); ?>
<div id="content" role="main">
<?php get_the_breadcrumb(); ?>
<?php get_template_part_hierarchical('partials/loop'); ?>
</div>
<?php get_sidebar_hierarchical('attachment'); ?>
<?php get_footer_hierarchical('attachment'); ?>