-
Notifications
You must be signed in to change notification settings - Fork 2
/
archive.php
61 lines (54 loc) · 2.09 KB
/
archive.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
<?php get_header(); ?>
<div class="container columns">
<div class="row">
<div class="col-md-9 col-sm-12 col-xs-12 pull-right">
<div class="events">
<?php if(have_posts()): while(have_posts()): the_post(); ?>
<div class="event clearfix">
<div class="col-md-4 col-sm-4 col-xs-12 pull-right">
<?php if(has_post_thumbnail()){ ?>
<?php the_post_thumbnail('thumbnail'); ?>
<?php }else{ ?>
<img class="img-rounded thumbnail" src="<?php echo get_template_directory_uri(); ?>/dev/images/dummy.png">
<?php } ?>
</div>
<div class="col-md-8 col-sm-8 col-xs-12">
<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
<p><?php the_excerpt(); ?></p>
<p class="text-left ltr"><?php the_time("l, d F Y, H:i A"); ?></p>
<hr>
<div class="clearfix">
<p class="pull-left attendees">
<span><strong>
<?php
$atcnt = get_post_meta(get_the_ID(), "_atcnt", true);
//$matches = preg_grep ('/jpeg/i', get_post_meta(get_the_ID(), "_imgurl", true));
echo per_number($atcnt - 10);
?></strong> شرکتکنندهدیگر + </span>
<?php
if(get_post_meta(get_the_ID(), "_imgurl", true)){
$i = 0;
foreach(get_post_meta(get_the_ID(), "_imgurl", true) as $img){
if($i > 11)
break;
if(check_image_exists($img))
echo '<img class="rounded-100-32" src="'.$img.'">';
$i++;
}
}
?>
</p>
</div><!--p class="pull-left"><a class="btn btn-default" href="#" role="button">بیشتر بخوانید</a></p-->
</div>
</div><!--./event-->
<?php endwhile; pagination_posts_nav_cat(); endif; ?>
</div><!--./events-->
</div><!--./col-md-9-->
<div class="col-md-3 col-sm-12 col-xs-12 pull-left">
<aside>
<?php if ( is_active_sidebar( 'sidebar' ) ) : dynamic_sidebar( 'sidebar' ); endif; ?>
</aside>
</div>
</div>
</div><!-- /container -->
<?php get_footer(); ?>