Advertisement
Guest User

Untitled

a guest
Nov 8th, 2012
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.48 KB | None | 0 0
  1. <?php
  2. // Exit if accessed directly
  3. if ( !defined('ABSPATH')) exit;
  4. /* Home Page */
  5. ?>
  6. <?php get_header(); ?>
  7. <div id="featured" class="grid col-940">
  8. <div id="content-blog" class="grid col-620">
  9. <div class="post-inner">
  10. <!-- begin bullworthy featured category -->
  11. <div id="issuer-alerts">
  12. <?php $my_query = new WP_Query('category_name=issuer-alerts&posts_per_page=10'); while ($my_query->have_posts()) : $my_query->the_post(); $do_not_duplicate = $post->ID; ?>
  13. <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  14. <?php if (is_sticky () ) { ?>
  15. <h1 class="post-title"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h1>
  16. <span class="released">Released on <?php the_date( 'l, F t Y' );?> at <?php the_time( 'g:i a' ); ?></span>
  17. <div class="post-entry">
  18. <div class="thumb">
  19. <?php if ( has_post_thumbnail()) : ?>
  20. <a href="<?php the_permalink(); ?>" ><?php the_post_thumbnail( array('class' => 'alignleft') ); ?></a>
  21. <?php endif; ?>
  22. </div><!-- thumb -->
  23. <div class="excerpt"><?php the_excerpt(); ?>
  24. <?php $key = 'field_name'; $themeta = get_post_meta($post->ID, 'report_link', true);
  25. if($themeta != '') { echo '<div class="read-more" style="margin-bottom: 5px;"><a href="' . get_post_meta($post->ID, 'report_link', true) . '" target="_blank">Access This Report Now</a></div>';} ?>
  26. <div class="read-more"><a href="/issuer-alerts">View All Issuer Alerts</a></div>
  27. </div><!-- excerpt -->
  28. </div><!-- end of post-entry -->
  29. <div class="clear"></div>
  30. <h3>More Issuer Alerts:</h3>
  31. <?php } else { ?>
  32. <li><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></li>
  33. <?php } ?>
  34. </div><!-- post-ID -->
  35. <?php endwhile; ?>
  36. <?php wp_reset_query(); ?>
  37. </div><!-- issuer-alerts -->
  38. <div class="clear"></div>
  39. <?php query_posts(array("post__not_in" =>get_option("sticky_posts"))); if (have_posts()) : while (have_posts()) : the_post(); if( $post->ID == $do_not_duplicate ) continue;?>
  40. <div id="post" <?php post_class(); ?>>
  41. <h2 class="post-title">
  42. <?php $key = 'field_name'; $themeta = get_post_meta($post->ID, 'otcqb', true);
  43. if($themeta != '') { echo '<span class="title-ticker-otcqb">' . get_post_meta($post->ID, 'otcqb', true) . '</span>';} ?>
  44. <?php $key = 'field_name'; $themeta = get_post_meta($post->ID, 'otcqx', true);
  45. if($themeta != '') { echo '<span class="title-ticker-otcqx">' . get_post_meta($post->ID, 'otcqx', true) . '</span>';} ?>
  46. <?php $key = 'field_name'; $themeta = get_post_meta($post->ID, 'otcpink', true);
  47. if($themeta != '') { echo '<span class="title-ticker-otcpink">' . get_post_meta($post->ID, 'otcpink', true) . '</span>';} ?>
  48. <a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>
  49. <div class="post-meta">
  50. <span class="authored">
  51. Authored by <br><?php the_author_posts_link(); ?>
  52. </span>
  53. <span class="label">Traders Responding</span>
  54. <span class="comments">
  55. <?php if ( comments_open() ) : ?>
  56. <span class="comments-link">
  57. <?php comments_popup_link(__('0', 'responsive'), __('1', 'responsive'), __('%', 'responsive')); ?>
  58. </span>
  59. </span><!-- comments -->
  60. <?php endif; ?>
  61. <table class="trade_data"><script src="http://app.quotemedia.com/quotetools/jsVarsQuotes.go?webmasterId=101606&symbol=<?php echo get_post_meta($post->ID, ticker, true); ?>"></script>
  62. <tbody>
  63. <tr>
  64. <td>Last Trade</td>
  65. <td>Change</td>
  66. <td>Volume</td>
  67. <td>Market Cap</td>
  68. </tr>
  69. <tr>
  70. <td class="blue">$<script>document.write(qmQuote.last);</script></td>
  71. <td class="blue"><script>document.write(qmQuote.changePercent);</script></td>
  72. <td class="blue"><script>document.write(qmQuote.volume);</script></td>
  73. <td class="blue">$<script>document.write(qmQuote.marketCap);</script></td>
  74. </tr>
  75. </tbody>
  76. </table>
  77. </div><!-- end of .post-meta -->
  78. <div class="post-entry">
  79. <?php if ( has_post_thumbnail()) : ?>
  80. <a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" >
  81. <?php the_post_thumbnail( 'thumbnail' ); ?>
  82. </a>
  83. <?php endif; ?>
  84. <span class="excerpt-meta"><?php the_date( 'l, F t Y' );?> at <?php the_time( 'g:i a' ); ?> -&nbsp;</span><?php the_excerpt(); ?>
  85. <?php wp_link_pages(array('before' => '<div class="pagination">' . __('Pages:', 'responsive'), 'after' => '</div>')); ?>
  86. </div><!-- end of .post-entry -->
  87.  
  88. <div class="post-data">
  89. <?php the_tags(__('Tagged with:', 'responsive') . ' ', ', ', '<br />'); ?>
  90. <?php printf(__('Posted in %s', 'responsive'), get_the_category_list(', ')); ?>
  91. </div><!-- end of .post-data -->
  92.  
  93. </div><!-- end of #post-<?php the_ID(); ?> -->
  94.  
  95. <?php endwhile; ?>
  96.  
  97. <?php if ( $wp_query->max_num_pages > 1 ) : ?>
  98. <div class="navigation">
  99. <div class="previous"><?php next_posts_link( __( '&#8249; Older posts', 'responsive' ) ); ?></div>
  100. <div class="next"><?php previous_posts_link( __( 'Newer posts &#8250;', 'responsive' ) ); ?></div>
  101. </div><!-- end of .navigation -->
  102. <?php endif; ?>
  103. <?php endif; ?>
  104. </div><!-- post-inner -->
  105. </div><!-- content blog -->
  106. <?php get_sidebar('right'); ?>
  107. </div><!-- end of #featured -->
  108. <?php get_sidebar('home'); ?>
  109. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement