-
Notifications
You must be signed in to change notification settings - Fork 0
/
socialmedia.php
185 lines (143 loc) · 3.93 KB
/
socialmedia.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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
<? /*
Template Name: social media
*/
get_header(); ?>
<div id="content" class="grid_16">
<div id="pageContent" class="grid_12">
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<!-- headline content and main image here -->
<h2 class="page-head"><?php the_title(); ?></h2>
<h3 class="page-subhead"><?php echo get_post_meta($post->ID, 'subhead', true); ?></h3>
<?php if ( get_post_meta ($post->ID, 'story image permalink', true ) ) { ?>
<div id="imageBlock"><img src="<?php echo get_post_meta($post->ID, 'story image permalink', true); ?>" />
<div id="screen"></div>
<div id="image-caption"><p><?php echo get_post_meta($post->ID, 'image caption', true); ?></p></div>
</div>
<?php } ?>
<div class="entry-content">
<div>
<div class="socialmediapagebox" style="width:250px; display:inline; float:left">
<script src="http://widgets.twimg.com/j/2/widget.js"></script>
<script>
new TWTR.Widget({
version: 2,
type: 'list',
rpp: 30,
interval: 6000,
title: 'reesenews',
subject: 'from the newsroom',
width: 250,
height: 300,
theme: {
shell: {
background: '#759fc7',
color: '#ffffff'
},
tweets: {
background: '#ffffff',
color: '#444444',
links: '#759fc7'
}
},
features: {
scrollbar: true,
loop: false,
live: true,
hashtags: true,
timestamp: true,
avatars: true,
behavior: 'all'
}
}).render().setList('reesenews', 'newsroom').start();
</script>
</div>
<!-- widget 1 end -->
<!-- twitter widget 2 new journalism start -->
<div class="socialmediapagebox" style="width:250px; display:inline; float:left position:relative; margin-left:20px">
<script src="http://widgets.twimg.com/j/2/widget.js"></script>
<script>
new TWTR.Widget({
version: 2,
type: 'list',
rpp: 30,
interval: 6000,
title: '',
subject: 'new journalism',
width: 250,
height: 300,
theme: {
shell: {
background: '#759fc7',
color: '#ffffff'
},
tweets: {
background: '#ffffff',
color: '#444444',
links: '#759fc7'
}
},
features: {
scrollbar: true,
loop: false,
live: true,
hashtags: true,
timestamp: true,
avatars: true,
behavior: 'all'
}
}).render().setList('reesenews', 'new-journalism').start();
</script>
</div>
</div>
<!-- widget 2 end -->
<!-- widget 3 unc centers and departments start -->
<div style="clear:both"> </div>
<div>
<div style="width:250px; display:inline; float:left position:relative;" class="socialmediapagebox">
<script src="http://widgets.twimg.com/j/2/widget.js"></script>
<script>
new TWTR.Widget({
version: 2,
type: 'list',
rpp: 30,
interval: 6000,
title: 'university of north carolina',
subject: 'centers and departments',
width: 250,
height: 300,
theme: {
shell: {
background: '#759fc7',
color: '#ffffff'
},
tweets: {
background: '#ffffff',
color: '#444444',
links: '#759fc7'
}
},
features: {
scrollbar: true,
loop: false,
live: true,
hashtags: true,
timestamp: true,
avatars: true,
behavior: 'all'
}
}).render().setList('reesenews', 'unc-centers-departments').start();
</script>
</div>
<!-- widget 3 end -->
<div class="socialmediapagebox" style="width:250px; display:inline; float:left position:relative; margin-left:20px">
<iframe style="border: medium none; overflow: hidden; width: 250px; height: 587px;" frameborder="0" scrolling="no" src="http://www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Fwww.facebook.com%2Freesenews&width=250&colorscheme=light&connections=15&stream=true&header=true&height=587"></iframe>
</div>
</div>
</div><!-- end entry -->
</div><!-- end post -->
<?php endwhile; //loop end ?>
<?php endif; ?>
</div> <!-- end pageContent -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>