-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.php
191 lines (187 loc) · 8.23 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
<?php get_header ();?>
<link rel="stylesheet" type="text/css" href="<?php echo get_template_directory_uri(); ?>/CSS/indexStyle.css">
<style>
.backgroundImgChalk {
background-image: url('<?php echo get_template_directory_uri(); ?>/images/chalk_black_low.jpg');
background-repeat: no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
@-moz-document url-prefix() {
.carousel-control {
padding-top: 15px;
}
}
</style>
<script>
$(document).ready(function() {
$(function(){
$('.carousel').carousel({
interval: 6000
});
});
});
</script>
<div id="myCarousel" class="carousel slide carousel-fade border">
<div class="carousel-inner backgroundImgChalk">
<div class="active item individual_slide">
<div class="margin">
<img class="carouselBorder" src="<?php echo get_template_directory_uri(); ?>/images/carousel1.png" alt="slide1">
<div class="taglineInfo">
<h3 class="smallHeadlineCarousel smallDiff">Learn How To</h3>
<h2 class="emphasisTitleCarousel">Build Web Applications</h2>
<p class="carouselText">Six-month intensive training program that qualifies you for a junior developer job.</p>
</div>
</div>
</div>
<div class="item individual_slide">
<div class="margin">
<img class="carouselBorder" src="<?php echo get_template_directory_uri(); ?>/images/carousel2.png" alt="slide2">
<div class="taglineInfo">
<h3 class="smallHeadlineCarousel smallDiff">Supporting You with</h3>
<h2 class="emphasisTitleCarousel">Mentors</h2>
<p class="carouselText">Nashville's best developers volunteer their time to help you learn. </p>
</div>
</div>
</div>
<div class="item individual_slide">
<div class="margin">
<img class="carouselBorder third_slide" src="<?php echo get_template_directory_uri(); ?>/images/carousel3.png" alt="slide3">
<div class="taglineInfo">
<h3 class="smallHeadlineCarousel smallDiff">Learn by Doing</h3>
<h2 class="emphasisTitleCarousel">Apprenticeship</h2>
<p class="carouselText">Gain valuable experience through project work with our partner companies. Get paid while you continue to learn.</p>
</div>
</div>
</div>
</div>
<a class="carousel-control left" href="#myCarousel" data-slide="prev">‹</a>
<a class="carousel-control right" href="#myCarousel" data-slide="next">›</a>
</div>
<div id="actionCall">
<div class="containAction">
<span class="ticker"><?php if(function_exists('ditty_news_ticker')){ditty_news_ticker(649);} ?></span>
<div id="applyBtn">
<a href="<?php echo esc_url( get_permalink( get_page_by_title( 'apply' ) ) ); ?>" height="800" width="600" frameborder="0"><button class="button orange applyBtn">Apply Now</button></a>
</div>
</div>
</div>
<div class="containInfo clearfix">
<div class="weDoFloat" class="clearfix">
<section class="weDo">
<div class="headingBorder">
<h2 class="smallHeadline">What We Do</h2>
</div>
<h3 class="homesub">Home-growing Tech Talent</h3>
<p class="doSpace">Looking for a way to begin a career as a software developer? Want to build mobile apps or web sites? Nashville Software School will help you prepare for a job as an entry-level software developer - even with no prior training or experience.</p>
<p>Our innovative Bootcamp program is designed to take you from novice to developer in six months of intensive training and mentoring followed by real project work as an apprentice programmer.</p>
<a class="linkStyle" href="<?php echo esc_url( get_permalink( get_page_by_title( 'program' ) ) ); ?>">Learn More</a>
</section>
</div>
<section id="weAre" class="clearfix">
<div class="indexBorder clearfix">
<h2 class="smallHeadline">Who We Are</h2>
</div>
<div class="peopleLocate clearfix">
<h3 class="homesub textLocate">Our Mentors and Instructors represent the best from Nashville's tech community</h3>
</div>
<div>
<a class="meetLink" href="<?php echo esc_url( get_permalink( get_page_by_title( 'community' ) ) ); ?>">Meet All of Our Team</a>
</div>
<div class="peopleLoop clearfix">
<?php $wp_query = new WP_Query("post_type=person&post_status=publish&category_name=featured&posts_per_page=3");?>
<?php if(have_posts()) : while(have_posts()) : the_post(); ?>
<div class="weBox" class="clearfix">
<?php the_post_thumbnail('author-thumbnail', array('class' => 'imgBorder')); ?>
<hr/>
<h4 class="clickBox homesub"><?php the_title(); ?></h4>
<p><?php the_subtitle(); ?></p>
<p><?php $posttags = get_the_tags(); if ($posttags) { foreach($posttags as $tag) {echo $tag->name . ''; }} ?></p>
</div>
<?php endwhile; ?>
<?php else : ?>
<p class="no-posts"><?php _e('Sorry, no posts matched your criteria', 'example'); ?></p>
<?php endif; ?>
<?php wp_reset_query();?>
</div>
</section>
<div class="lowerWidth clearfix">
<div class="studentBox clearfix">
<section>
<?php $wp_query = new WP_Query("post_status=publish&category_name=student&tag=active&posts_per_page=1");?>
<?php if(have_posts()) : while(have_posts()) : the_post(); ?>
<div>
<div class="studentBorder">
<h2 class="smallHeadline lowerTitle">Featured Student</h2>
</div>
<h5 class="className"><?php the_title();?></h5>
<?php the_post_thumbnail('author-thumbnail', array('class' => 'imgBorder')); ?>
<hr/>
<p><?php the_excerpt(); ?></p>
</div>
<?php endwhile; ?>
<?php else : ?>
<p class="no-posts"><?php _e('Sorry, no posts matched your criteria', 'example'); ?></p>
<?php endif; ?>
<?php wp_reset_query();?>
</section>
</div>
<div class="news clearfix">
<section>
<div class="newsHead clearfix">
<div class="lowerIndexBorder">
<h2 class="smallHeadline lowerTitle">News</h2>
</div>
</div>
<h3 class="homesub">See what's going on in our world</h3>
<hr id="bottomPostRule">
<div class="newsLoop clearfix">
<?php $wp_query = new WP_Query("category_name=featured&posts_per_page=4");
$ids = array();
if(have_posts()) : while(have_posts()) : the_post();
$ids[] = get_the_ID(); ?>
<div class="newsBox">
<article>
<div class="newsBody">
<div class="titleBox">
<a class="newsBlog" href="<?php the_permalink() ?>">
<h5 class="postTitle">
<?php
$thetitle = $post->post_title; /* or you can use get_the_title() */
$getlength = strlen($thetitle);
$thelength = 70;
echo substr($thetitle, 0, $thelength);
if ($getlength > $thelength) echo "...";
?>
</h5>
</a>
</div>
<div class="metaImg">
<?php the_post_thumbnail('author-thumbnail', array('class' => 'imgBorder')); ?>
<div class="post1Meta clearfix">
<div class="floatMeta">
<p class="monthBox"><?php the_time('M');?></p>
<h5 class="dayBox"><?php the_time('j');?></h5>
</div>
<p><?php the_time('Y');?> | <?php the_author();?></p>
<p class="commentSpace"><?php comments_number();?></p>
</div>
</div>
<p><?php the_excerpt(); ?></p>
<a class="linkStyle" href="<?php the_permalink();?>">Read More</a>
</div>
</article>
</div>
<?php endwhile; ?>
<?php else : ?>
<p class="no-posts"><?php _e('Sorry, no posts matched your criteria', 'example'); ?></p>
<?php endif; ?>
<?php wp_reset_query();?>
</div> <!-- newsloop-->
</section>
</div>
</div>
</div>
<?php get_footer ();?>