-
Notifications
You must be signed in to change notification settings - Fork 1
/
front-page.php
48 lines (43 loc) · 1.65 KB
/
front-page.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
<?php get_header(); ?>
<div id="content_left">
<div id="content_left_above">
<div id="gallery_wrapper" class="fancybox">
<div id="gallery">
<img src="<?=get_stylesheet_directory_uri()?>/images/makeshift_hths_image.png" />
</div>
</div>
</div>
<div id="content_left_below">
<div id="content_left_left">
<div id="shortcuts" class="fancybox">
<h2 class="fancytitle">Portals</h2>
<?php
// TODO: home page portals in widget
// TODO: use wp_nav_menu walker
$menu_name = 'portals';
if ( ($menu = wp_get_nav_menu_object( $menu_name ) ) && ( isset($menu) ) ) {
$menu_items = wp_get_nav_menu_items($menu->term_id);
foreach ( (array) $menu_items as $key => $menu_item ): ?>
<a class="button_link" href="<?=$menu_item->url?>">
<table>
<tbody><tr>
<td>>></td>
<td><?=$menu_item->title?></td>
</tr>
</tbody></table>
</a>
<?php
endforeach;
}
?>
</div>
<?php dynamic_sidebar('home_left'); ?>
</div>
<div id="content_left_right">
<?php dynamic_sidebar('home_right'); ?>
</div>
</div>
</div>
<?php // TODO: urgent news posts homepage alert code ?>
<?php get_sidebar(); ?>
<?php get_footer(); ?>