-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
75 lines (67 loc) · 3.05 KB
/
Copy pathindex.php
File metadata and controls
75 lines (67 loc) · 3.05 KB
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
<?php
get_header( );
?>
<div class="container-fluid">
<div class="row-fluid">
<div class="span8">
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="media">
<a class="pull-left thumbnail span2" style="min-width: 110px;" href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
<?php if (get_option('thumbnail') == "up" || get_option('thumbnail') == "") { ?>
<?php if ( get_option('main_page_img') != "no" ) { ?>
<?php $images = get_post_meta($post->ID, "images", true);
if (empty($images)) {?>
<img class="media-object" src="<?php bloginfo('template_url'); ?>/images/no-pic.jpg" alt="" border="0" />
<?php } else { ?>
<img class="media-object" src="<?php echo get_bloginfo('template_url')."/includes/img_resize.php?width=100&height=100&url=";?><?php
if ( strstr($images, ',')) {
$matches = explode(",", $images);
$img_single = $matches[0];
$img_single = explode(trailingslashit(get_option('siteurl')) . "wp-content/uploads/wpmarks/", $img_single);
echo $img_single[1];
} else {
$img_single2 = $images;
echo $img_single2;
}?>"/>
<?php } } ?>
<?php } else { ?>
<img class="media-object" style="max-width:100px;" alt="<?php the_title(); ?>" src="http://s.wordpress.com/mshots/v1/<?php echo urlencode (get_post_meta($post->ID, "wpm_adURL", true)); ?>?w=100" />
<?php } ?>
</a>
<div class="media-body">
<h4 class="media-heading"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h4>
<i class="icon-time"></i> <?php echo wpmarks_time($post->post_date); ?>
<i class="icon-user"></i> <a href="<?php bloginfo('url'); ?>/author/<?php echo strtolower(the_author_login()); ?>"><?php if ( strlen(get_post_meta($post->ID, "name", true)) > 10 ) { echo substr(get_post_meta($post->ID, "name", true), 0, 10)."..."; } else { the_author(); } ?></a>
<br />
<?php echo substr(strip_tags($post->post_content), 0, 140)."...";?>
<br />
<i class="icon-tag"></i> <?php the_category(', ') ?>
<?php if (get_option('comment') == "none" || get_option('comment') == "") { ?>
<?php } else if (get_option('comment') == "default") { ?>
<i class="icon-comment"></i>
<?php comments_number( '0 Responses', '1 Response', '% Responses' ); ?></a>
<?php } else { ?>
<i class="icon-comment"></i>
<?php echo get_fb_comment_count();?>
<?php } ?>
<i class="icon-eye-open"></i> <?php echo getPostViews(get_the_ID());?></div>
</div>
<?php $i++; unset($alt); ?>
<?php endwhile; ?>
<ul class="pager">
<?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } else { ?>
<li class="previous">
<?php next_posts_link() ?>
</li>
<li class="next">
<?php previous_posts_link() ?>
</li>
</ul>
<?php } ?>
<?php endif; ?>
</div>
<?php include (TEMPLATEPATH . '/sidebar-home.php'); ?>
</div>
</div>
<?php get_footer(); ?>