forked from ademilter/SocialCrumbs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
89 lines (67 loc) · 2.74 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
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
85
86
87
88
89
<?php get_header(); ?>
<div class="container">
<div class="Timeline">
<div class="grid-sizer"></div>
<?php
include "activity-template.php";
$Cats = array(
get_cat_ID('codepen'),
get_cat_ID('delicious'),
get_cat_ID('dribbble'),
get_cat_ID('instapaper'),
get_cat_ID('foursquare'),
get_cat_ID('twitter'),
get_cat_ID('soundcloud'),
get_cat_ID('instagram'),
get_cat_ID('vimeo'),
get_cat_ID('youtube'),
get_cat_ID('lastfm'),
get_cat_ID('github')
);
$args = array(
'paged' => get_query_var('paged'),
'category__in' => $Cats
);
query_posts($args);
if (have_posts()) :
while (have_posts()) : the_post();
$eventType = "";
$eventTitle = "";
$eventContent = "";
$eventUrl = "";
$eventTimeStamp = sprintf(__('%s ago', 's-report'), human_time_diff(get_post_time('U'), current_time('timestamp')));
// connect, purchase, link, calendar, like, favorite, bookmark, watch, listen, add, write, checkin
$eventIconStatus = "";
$postCategories = get_the_category();
$eventCategory = $postCategories[0]->slug;
$postTags = get_the_tags();
$tags = array_values($postTags);
$eventTag = $tags[0]->slug;
$content = tokenText(get_the_content());
// Event Recipes
include "event/codepen.php";
include "event/delicious.php";
include "event/dribbble.php";
include "event/foursquare.php";
include "event/github.php";
include "event/instagram.php";
include "event/instapaper.php";
include "event/lastfm.php";
include "event/soundcloud.php";
include "event/twitter.php";
include "event/vimeo.php";
include "event/youtube.php";
// Event Template
eventTemplateSidebar($eventType, $eventTitle, $eventContent, $eventUrl, $eventTimeStamp, $eventIconStatus, $eventCategory, $eventTag);
endwhile; ?>
</div>
<nav class="TimelineNav">
<?php next_posts_link(__('Older posts', 's-report')); ?>
<?php //previous_posts_link(__('Newer posts', 's-report'));
?>
</nav>
<?php endif;
wp_reset_postdata();
?>
</div>
<?php get_footer(); ?>