Advertisement
Guest User

Untitled

a guest
Dec 19th, 2011
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.43 KB | None | 0 0
  1. <?php
  2. /**
  3. * The main template file.
  4. *
  5. */
  6.  
  7. get_header(); ?>
  8.  
  9. <div class="container">
  10. <?php get_slideshow(); ?>
  11. </div>
  12.  
  13. <?php if (get_option('nets_latestmess') == 'false') {?>
  14. <div class="lastmess">
  15. <div class="container">
  16. <div class="grid10 first">
  17. <?php $musposts = get_posts('numberposts=1&post_type=messages');
  18. foreach($musposts as $musentry) {
  19. $pagevalue = $musentry->ID;
  20. $past = get_post_meta($pagevalue, 'netlabs_preacher' , true);
  21. $evnt = get_post_meta($pagevalue, 'netlabs_messevent' , true);
  22. $dte = get_post_meta($pagevalue, 'netlabs_messagedate' , true);
  23. $pssg = get_post_meta($pagevalue, 'netlabs_passage' , true);
  24. $yout = get_post_meta($pagevalue, 'netlabs_messyoutube' , true);
  25. $vimeo = get_post_meta($pagevalue, 'netlabs_messvimeo' , true);
  26. $mplink = get_post_meta($pagevalue, 'netlabs_uploadlink' , true); ?>
  27. <?php } ?>
  28. <div class="lasthead"><?php echo get_option('nets_sptlatest')?></div>
  29. <div class="lasttitle">
  30.  
  31. <span class="messspan"><?php echo get_the_title($pagevalue); ?></span> <span><?php echo book_replace($pssg); ?></span>
  32. <?php
  33. if ($mplink) {
  34. echo '<img rel="' . $mplink . '" src="' . get_template_directory_uri() . '/images/micfront.png" class="micfront">';
  35. } else {
  36. get_mpt2($pagevalue);
  37. }
  38.  
  39. ?>
  40.  
  41.  
  42. <?php if ($yout) {?>
  43. <a class="vid" href="http://www.youtube.com/watch?v=<?php echo $yout; ?>"><img class="movfront" src="<?php echo get_template_directory_uri(); ?>/images/movfront.png"></a>
  44. <?php } ?>
  45. <?php if ($vimeo) {?>
  46. <a class="vim" href="http://vimeo.com/<?php echo $vimeo; ?>"><img class="movfront" src="<?php echo get_template_directory_uri(); ?>/images/movfront.png"></a>
  47. <?php } ?>
  48.  
  49.  
  50. </div>
  51. <div class="clear"></div>
  52. <div class="infoholder" style="margin: 0px 0px 0px 170px;"></div>
  53. </div>
  54. <div class="grid2 dirr">
  55. <?php if (get_option('nets_reassdir')){ ?>
  56. <a href="<?php echo get_option('nets_reassdir'); ?>"><span><?php echo get_option('nets_sptdir'); ?></span></a>
  57. <?php } else { ?>
  58. <a class="vmp" href="#"><span><?php echo get_option('nets_sptdir'); ?></span></a>
  59. <?php } ?>
  60. </div>
  61. </div>
  62. </div>
  63.  
  64.  
  65. </script>
  66.  
  67. <?php } ?>
  68.  
  69. <div class="bodymid">
  70. <div class="stripetop">
  71. <div class="stripebot">
  72. <div class="hfeed container">
  73. <div class="mapdiv"></div>
  74. <div class="clear"></div>
  75. <div id="main">
  76. <?php if (get_option('nets_tagline')){ ?>
  77. <div class="mainwelcome">
  78. <h1><?php echo stripslashes(get_option('nets_tagline')); ?></h1>
  79. </div>
  80. <?php } ?>
  81. <?php if ( is_active_sidebar( 'index-left' ) ) : ?>
  82. <div id="primary" class="widget-area grid4 first" role="complementary">
  83. <ul class="xoxo">
  84. <?php dynamic_sidebar( 'index-left' ); ?>
  85. </ul>
  86. </div>
  87. <?php endif; ?>
  88.  
  89. <?php if ( is_active_sidebar( 'index-center' ) ) : ?>
  90. <div id="primary" class="widget-area grid4" role="complementary">
  91. <ul class="xoxo">
  92. <?php dynamic_sidebar( 'index-center' ); ?>
  93. </ul>
  94. </div>
  95. <?php endif; ?>
  96.  
  97. <?php if ( is_active_sidebar( 'index-right' ) ) : ?>
  98. <div id="primary" class="widget-area grid4" role="complementary">
  99. <ul class="xoxo">
  100. <?php dynamic_sidebar( 'index-right' ); ?>
  101. </ul>
  102. </div>
  103. <?php endif; ?>
  104.  
  105.  
  106.  
  107. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement