-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhome.php
58 lines (56 loc) · 1.89 KB
/
home.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
<?php get_header();?>
<div class="row">
<!-- Main hero unit for a primary marketing message or call to action -->
<div class="col-md-12 jumbotron">
<div class="row">
<?php query_posts('post_type=page&meta_key=key&meta_value=welcome');?>
<?php if ( have_posts() ) : the_post();?>
<div class="col-md-7">
<h1><?php the_title();?></h1>
<p>
<?php the_excerpt();?>
</p>
<p>
<a href="<?php the_permalink() ?>" class="btn btn-primary">Learn more »</a>
</p>
</div>
<?php endif; ?>
<?php wp_reset_query(); ?>
<div class="col-md-5 hidden-sm">
<img class="img-responsive" src="<?php bloginfo('template_directory');?>/images/art/justice.jpg" alt="" />
<!--<? include('php/news-widget.php'); ?> -->
</div>
</div>
</div>
</div>
<?php query_posts('category_name=Home'); ?>
<?php if(have_posts()) : ?>
<?php while (have_posts()) : the_post();
?>
<?php if (($wp_query->current_post % 4) == 0): ?>
<div class="row showcase">
<?php endif;?>
<div class="col-md-3">
<div class="thumbnail">
<div class="caption">
<h3><?php the_title();?></h3>
</div>
<a href="<?php the_permalink() ?>" class="thumbnail">
<img src="<?php bloginfo('template_directory');?>/images/art/<?php get_custom_field_value('highlight', true, 'general_litigation.jpg');?>" alt="" />
</a>
<a class="btn btn-primary" href="<?php the_permalink() ?>">Learn more »</a>
</div>
</div>
<?php if (($wp_query->current_post % 4) == 3): ?>
</div>
<?php endif;?>
<?php endwhile;?>
</div>
<?php else :?>
<h2 class="center">Not Found</h2>
<p class="center">
Sorry, but you are looking for something that isn't here
</p>
<?php endif;?>
<?php wp_reset_query(); ?>
<?php get_footer();?>