-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.php
83 lines (69 loc) · 2.58 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<?php
/**
* The main template file.
*
* This is the most generic template file in a WordPress theme
* and one of the two required files for a theme (the other being style.css).
* It is used to display a page when nothing more specific matches a query.
* E.g., it puts together the home page when no home.php file exists.
*
* @link https://codex.wordpress.org/Template_Hierarchy
*
* @package Triangle_X
*/
get_header(); ?>
<div class="frontpage-navbar-container">
<div id="search-icon-frontpage" class="header-search-icon black">
<i class="material-icons md-36">search</i>
</div>
<div class="search-container">
<form role="search" method="get" class="search-form" action="<?php echo get_site_url(); ?>">
<input id="searchbox-frontpage" type="search" class="search-textbox" placeholder="Search..." value="" name="s">
</form>
</div>
<div class="frontpage-navbar-links">
<a href="about" rel="About">About Us</a> |
<a href="advertising" rel="Advertising">Advertising</a> |
<a href="classifieds" rel="Classifieds">Classifieds</a> |
<a href="contact" rel="Contact">Contact</a>
</div>
<div id="nav-icon-frontpage" class="header-hamburger-icon black"><span></span><span></span><span></span></div>
</div>
<div class="generic-wrapper">
<?php insert_ad('Global Banner Top', 'banner-top'); ?>
<header id="header-frontpage" class="frontpage-header">
<div class="frontpage-logo">
<img src="<?php echo get_template_directory_uri() . '/images/logo-black.svg'; ?>"></img>
</div>
<nav>
<?php
if(has_nav_menu('main'))
wp_nav_menu(array('theme_location' => 'main', 'menu_class' => 'frontpage'));
else
// Display error message if menu "main" has not been defined within WordPress
echo '<div class="menu-main-container"><ul class="frontpage"><li>Menu "main" is not defined!</li></ul></div>';
?>
</nav>
</header>
<div class="generic-container">
<?php dynamic_sidebar('frontpage-content-top'); ?>
</div>
<div class="generic-container">
<?php get_sponsored_message(); ?>
</div>
<!--<div class="frontpage-section-media">
Reserved for future use for photoblog and videos
</div>-->
<div class="generic-flex-container">
<main class="flex-main">
<?php dynamic_sidebar('frontpage-content-bottom'); ?>
</main>
<aside class="flex-sidebar">
<?php insert_ad('Global Medium Rectangle Top', 'medium-rectangle'); ?>
<?php dynamic_sidebar('sidebar-frontpage'); ?>
<?php insert_ad('Global Medium Rectangle Bottom', 'medium-rectangle');?>
</aside>
</div>
<?php insert_ad('Global Banner Bottom', 'banner-bottom'); ?>
</div>
<?php get_footer(); ?>