-
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathfooter.php
More file actions
executable file
·37 lines (34 loc) · 721 Bytes
/
footer.php
File metadata and controls
executable file
·37 lines (34 loc) · 721 Bytes
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
<?php
/**
* The template for displaying the footer
*
* Contains the closing of the #content div and all content after.
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package Gridd
*/
use Gridd\Grid;
use Gridd\Grid_Parts;
?>
</main>
</div>
<?php
/**
* Add grid parts below the content.
*/
$active_parts = Grid_Parts::get_instance()->get_active();
$content_position = array_search( 'content', $active_parts, true );
if ( false === $content_position ) {
return;
}
foreach ( $active_parts as $key => $val ) {
if ( $key > $content_position ) {
do_action( 'gridd_the_grid_part', $val );
}
}
?>
</div>
<?php wp_footer(); ?>
</body>
</html>