-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
56 lines (55 loc) · 3.49 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
<?php get_header(); ?>
<div class="content-background">
<div id="container">
<div id="content">
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="post-header">
<div class="date"><?php the_time(__('M j', 'img')); ?> <span><?php the_time('y'); ?></span></div>
<h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?> </a></h2>
<div class="author"><?php printf(__('by %s', 'img'), get_the_author()); ?></div>
</div><!--end post header-->
<div class="entry clear">
<div class="alignleft">
<?php if (function_exists('add_theme_support')) the_post_thumbnail(array(80, 80)); //, array( 'class' => ' alignleft border:5px' )); ?>
</div>
<?php /* <div class="alignleft"> */ ?>
<div>
<?php the_content(__('read more...', 'img')); ?>
<?php edit_post_link(__('Edit', 'img')); ?>
<?php the_meta(); ?>
<?php
$technologiesarrary = get_post_meta($post->ID, "_mcf_technologie", false);
$clientname = get_post_meta($post->ID, "_mcf_client", true);
?>
<?php if (!empty($clientname)) { // || && empty(get_post_meta($post->ID, "_mcf_technologie", false) ) {
?>
<div class = "clientname">
<?php echo $clientname; ?>
<?php
$tecnologies = $technologiesarrary[0];
if (isset($tecnologies)) {
foreach ($tecnologies as $technology) {
echo "<br>" . $technology;
}
}
?>
</div>
<?php } ?>
</div>
<?php wp_link_pages(); ?>
</div><!--end entry-->
<div class="post-footer">
<div class="comments"><?php comments_popup_link(__('Leave a comment', 'img'), __('1 Comment', 'img'), __ngettext('% Comment', '% Comments', get_comments_number(), 'img')); ?></div>
</div><!--end post footer-->
</div><!--end post-->
<?php endwhile; /* rewind or continue if all posts have been fetched */ ?>
<div class="navigation index">
<div class="alignleft"><?php next_posts_link(__('« Oudere berichten', 'img')); ?></div>
<div class="alignright"><?php previous_posts_link(__('Recentere berichten »', 'img')); ?></div>
</div><!--end navigation-->
<?php else : ?>
<?php endif; ?>
</div><!--end content-->
<?php get_footer(); ?>