-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsingle-portfolio.php
84 lines (73 loc) · 2.73 KB
/
single-portfolio.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
<?php get_header(); ?>
<div class="content-background">
<div class="contentwrapper">
<div class="notice"></div>
<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="tags"><?php the_tags( '<span>Tags</span> <p>', ', ', '</p>'); ?></div>
<h1><?php the_title(); ?></h1>
<div class="author"><?php printf(__( 'by %s on', 'img'), get_the_author()); ?> <?php the_time(__( 'j F Y', 'img')); ?></div>
</div><!--end post header-->
<div class="entry clear">
<?php if ( function_exists( 'add_theme_support' ) ) the_post_thumbnail( array(250,9999), array( 'class' => ' alignleft border' )); ?>
<?php //the_content(__( 'read more...', 'img'));
$content = get_the_content();
_e( $content );
?>
<?php
$technologiesarrary = get_post_meta($post->ID, "_mcf_technologie", false);
$clientname = get_post_meta($post->ID, "_mcf_client", true);
$online = get_post_meta($post->ID, "_mcf_online", true);
?>
<?php if( !empty($clientname ) ) // || && empty(get_post_meta($post->ID, "_mcf_technologie", false) ) {
{ ?>
<div class = "clientname">
<div class = "customfieldhead">
<?php _e("Client Name");?>
</div>
<div class="customfieldcontent"> <?php echo $clientname; ?> </div>
<div class = "customfieldhead">
<?php _e("Technology");?>
</div>
<div class="customfieldcontent">
<?php
$tecnologies = $technologiesarrary[0];
if (isset($tecnologies)) {
$flag = 0;
foreach ($tecnologies as $technology ){
if( $flag==0 ) {echo $technology; $flag = 1;}
else echo ",".$technology;
}
}
// print_r( get_post_meta($post->ID, "_mcf_technologie", false) )
?>
</div>
<div class = "customfieldhead">
<?php _e("Status");?>
</div>
<div class="customfieldcontent"> <?php echo $online; ?> </div>
</div>
<?php } ?>
<?php
$plugincontent = "";
$plugincontent = apply_filters('the_content', $plugincontent);
$plugincontent = str_replace(']]>', ']]>', $plugincontent);
_e( $plugincontent );
?>
<?php edit_post_link(__( 'Edit', 'img')); ?>
<?php wp_link_pages(); ?>
</div><!--end entry-->
<div class="meta clear">
<p><?php _e( 'From', 'img' ); ?> → <?php the_category( ', '); ?>dfgfdh</p>
</div><!--end meta-->
</div><!--end post-->
<?php endwhile; /* rewind or continue if all posts have been fetched */ ?>
<?php comments_template( '', true); ?>
<?php else : ?>
<?php endif; ?>
</div><!--end content-->
<?php get_sidebar(); ?>
<?php get_footer(); ?>