|
1 <?php get_header(); ?> |
|
2 |
|
3 <?php get_sidebar(); ?> |
|
4 |
|
5 <div id="content"> |
|
6 <?php if (have_posts()) : while (have_posts()) : the_post(); |
|
7 setup_postdata($post); |
|
8 //Fetch the Custom Metas for this post |
|
9 $get_thumbnail = get_post_meta($post->ID, "other_media", true); |
|
10 $get_post_video = get_post_meta($post->ID, "main_video", true); |
|
11 $link = get_permalink($post->ID); |
|
12 ?> |
|
13 <div class="post"> |
|
14 <div class="container-header-light-normal"><span></span></div> |
|
15 <div class="copy clearfix"> |
|
16 <?php the_content(); ?> |
|
17 |
|
18 <?php if(get_option("ocmx_promote_posts") == "yes") : ?> |
|
19 <h2 class="post-section-title">Promote Post</h2> |
|
20 <div class="promote-post"> |
|
21 <ul class="clearfix"> |
|
22 <li class="tweet"> |
|
23 <script type="text/javascript"> |
|
24 tweetmeme_url = '<?php echo $link; ?>'; |
|
25 tweetmeme_source = '<?php echo get_option("ocmx_twitter_id"); ?>'; |
|
26 </script> |
|
27 <script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js"></script> |
|
28 </li> |
|
29 <li class="digg"> |
|
30 <script type="text/javascript"> |
|
31 digg_url = '<?php echo $link; ?>'; |
|
32 digg_title = '<?php echo $post->post_title; ?>'; |
|
33 digg_bodytext = '<?php echo strip_tags($post->post_excerpt); ?>'; |
|
34 digg_media = '<?php echo $post->post_category ?>'; |
|
35 digg_topic = '<?php echo $post->post_category ?>'; |
|
36 </script> |
|
37 <script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script> |
|
38 </li> |
|
39 <li class="moo"> |
|
40 <script type="text/javascript">url_site = '<?php echo $link; ?>';</script> |
|
41 <script src="http://www.designmoo.com/sites/all/modules/drigg/drigg_external/button.js" type="text/javascript"></script> |
|
42 </li> |
|
43 <li class="bump"> |
|
44 <script type="text/javascript"> url_site='<?php echo $link; ?>';</script> |
|
45 <script src="http://designbump.com/sites/all/modules/drigg_external/js/button.js" type="text/javascript"></script> |
|
46 </li> |
|
47 </ul> |
|
48 </div> |
|
49 <?php endif; ?> |
|
50 </div> |
|
51 <div class="container-footer-light-normal"><span></span></div> |
|
52 </div> |
|
53 |
|
54 <?php if(get_option("ocmx_post_ad_buysell_ads") == "on") : ?> |
|
55 <div class="post"> |
|
56 <div class="container-header-light-normal"><span></span></div> |
|
57 <div class="copy clearfix"><?php echo stripslashes(get_option("ocmx_post_ad_buysell_id")); ?></div> |
|
58 <div class="container-footer-light-normal"><span></span></div> |
|
59 </div> |
|
60 <?php elseif(get_option("ocmx_post_ad_image")) : ?> |
|
61 <div class="post"> |
|
62 <div class="container-header-light-normal"><span></span></div> |
|
63 <div class="copy post-footer-advert"> |
|
64 <a href="<?php echo get_option("ocmx_post_ad_link"); ?>" target="_blank" rel="nofollow"> |
|
65 <img src="<?php echo get_option("ocmx_post_ad_image"); ?>" alt="<?php echo get_option("ocmx_post_ad_title"); ?>" /> |
|
66 </a> |
|
67 </div> |
|
68 <div class="container-footer-light-normal"><span></span></div> |
|
69 </div> |
|
70 <?php endif; ?> |
|
71 <?php comments_template(); ?> |
|
72 |
|
73 <?php endwhile; else: ?> |
|
74 <div class="post"> |
|
75 <h4 class="date">This just happened.</h4> |
|
76 <h2 class="title"><a href="#">Everyone needs to slow down</a></h2> |
|
77 <div class="container-header-light-normal"><span></span></div> |
|
78 <div class="copy clearfix">There are no posts which match your criterea.</div> |
|
79 <div class="container-footer-light-normal"><span></span></div> |
|
80 </div> |
|
81 <?php endif; ?> |
|
82 </div> |
|
83 |
|
84 <?php get_footer(); ?> |