1. <?php //get theme options
  2. global $con_front, $con_layout, $con_feed, $con_reviews, $con_ads, $con_misc;
  3. $con_front = get_option( 'con_front', $con_front );
  4. $con_layout = get_option( 'con_layout', $con_layout );
  5. $con_feed = get_option( 'con_feed', $con_feed );
  6. $con_reviews = get_option( 'con_reviews', $con_reviews );
  7. $con_ads = get_option( 'con_ads', $con_ads );
  8. $con_misc = get_option( 'con_misc', $con_misc ); ?>
  9. <?php //set theme options
  10. $con_feed_latest = $con_feed['feed_latest'];
  11. $con_feed_latest_cats = $con_feed['feed_latest_cats'];
  12. $con_feed_latest_num = $con_feed['feed_latest_num'];
  13. $con_feed_social = $con_feed['feed_social'];
  14. $con_feed_layout = $con_feed['feed_layout'];
  15. $con_feed_header = $con_feed['feed_header'];
  16. $con_feed_num = $con_feed['feed_num'];
  17. $con_feed_ad_num = $con_ads['feed_ad_num'];
  18. $con_feed_ads_increment = $con_ads['feed_ads_increment'];
  19. $con_feed_ads_offset = $con_ads['feed_ads_offset'];
  20. $con_feed_ad_1 = $con_ads['feed_ad_1'];
  21. $con_feed_ad_2 = $con_ads['feed_ad_2'];
  22. $con_feed_ad_3 = $con_ads['feed_ad_3'];
  23. $con_feed_ad_4 = $con_ads['feed_ad_4'];
  24. $con_feed_ad_5 = $con_ads['feed_ad_5'];
  25. $con_feed_ad_6 = $con_ads['feed_ad_6'];
  26. $con_feed_ad_7 = $con_ads['feed_ad_7'];
  27. $con_feed_ad_8 = $con_ads['feed_ad_8'];
  28. $con_feed_ad_9 = $con_ads['feed_ad_9'];
  29. $con_feed_ad_10 = $con_ads['feed_ad_10'];
  30. $con_feed_unique_sidebar = $con_feed['feed_unique_sidebar'];
  31. $con_home_latest_show = $con_front['home_latest_show'];
  32. $con_home_latest_position = $con_front['home_latest_position'];
  33. $con_spotlight_show = $con_front['spotlight_show'];
  34. $con_review_movies_bottomline_text = $con_reviews['review_movies_bottomline_text'];
  35. $con_review_books_bottomline_text = $con_reviews['review_books_bottomline_text'];
  36. $con_review_games_bottomline_text = $con_reviews['review_games_bottomline_text'];
  37. $con_review_music_bottomline_text = $con_reviews['review_music_bottomline_text'];
  38. $con_review_products_bottomline_text = $con_reviews['review_products_bottomline_text'];
  39. //single page layout values
  40. $con_feed_single_header = $con_feed['feed_single_header'];
  41. $con_feed_single_num = $con_feed['feed_single_num'];
  42. $con_feed_single_social = $con_feed['feed_single_social'];
  43. $con_feed_single_ad_num = $con_ads['feed_single_ad_num'];
  44. $con_feed_single_ads_increment = $con_ads['feed_single_ads_increment'];
  45. $con_feed_single_ads_offset = $con_ads['feed_single_ads_offset'];
  46. $con_inject_reviews = $con_reviews['inject_reviews'];
  47. ?>
  48. <?php // user specified a unique feed sidebar
  49. if ($con_feed_unique_sidebar) {
  50. $con_feed_unique_sidebar="Sidebar Feed";
  51. } else {
  52. $con_feed_unique_sidebar="Sidebar Default";
  53. }
  54. ?>
  55. <?php
  56. $con_feed_single=false;
  57. if(is_single()) {
  58. $con_feed_header = $con_feed_single_header;
  59. $con_feed_num = $con_feed_single_num;
  60. $con_feed_ad_num = $con_feed_single_ad_num;
  61. $con_feed_ads_increment = $con_feed_single_ads_increment;
  62. $con_feed_ads_offset = $con_feed_single_ads_offset;
  63. $con_feed_single = true;
  64. $con_feed_social = $con_feed_single_social;
  65. }
  66. ?>
  67. <?php if(!is_front_page()) { // see if user specified override values in post meta
  68. $override = get_post_meta($post->ID, "Feed Layout", $single = true);
  69. if($override!="") $con_feed_layout=$override;
  70. $override = get_post_meta($post->ID, "Feed Header", $single = true);
  71. if($override!="") $con_feed_header=$override;
  72. $override = get_post_meta($post->ID, "Feed Posts Per Page", $single = true);
  73. if($override!="") $con_feed_post_num=$override;
  74. $override = get_post_meta($post->ID, "Feed Number Of Ads", $single = true);
  75. if($override!="") $con_feed_ad_num=$override; //how many ads to display on the home page?
  76. $override = get_post_meta($post->ID, "Feed Ad Increment", $single = true);
  77. if($override!="") $con_feed_ads_increment=$override; //how often to display ads?
  78. $override = get_post_meta($post->ID, "Feed Ad Offset", $single = true);
  79. if($override!="") $con_feed_ads_offset=$override; //how soon until you want to display the first ad?
  80. $override = get_post_meta($post->ID, "Feed Layout D Header", $single = true);
  81. if($override!="") $con_feed_latest=$override; //what should the "latest by category" header text say?
  82. } ?>
  83. <?php //for single pages, only layout A is used
  84. if($con_feed_single) {
  85. $con_feed_layout = "A";
  86. }
  87. ?>
  88. <?php // get sorting requests
  89. if(isset($_REQUEST['feedsort'])) {
  90. $feedsort=$_REQUEST['feedsort'];
  91. } else {
  92. $feedsort="";
  93. }
  94. if($con_feed_single && $feedsort=="") {
  95. $feedsort = "related";
  96. }
  97. ?>
  98. <?php // setup the query
  99. if(is_page_template('template-home.php') && is_front_page()) {
  100. $paged = (get_query_var('page')) ? get_query_var('page') : 1; //use the page var instead of paged (paged does not work on home page templates - WP error)
  101. }
  102. $hiderelated=false; //used if there are not related posts
  103. if($con_feed_single && $feedsort=="related") {
  104. $tags = wp_get_post_tags($post->ID);
  105. $tag_ids = array();
  106. foreach($tags as $individual_tag) { // get related tags but don't include "template" tags (i.e. spotlight & breaking)
  107. $tag=$individual_tag->term_id;
  108. $tagname=$individual_tag->name;
  109. if($tagname!="spotlight" && $tagname!="breaking") {
  110. $tag_ids[] = $tag;
  111. //echo "tag=" . $tagname;
  112. }
  113. };
  114. $feedargs=array( // get articles with these same tags
  115. 'tag__in' => $tag_ids,
  116. 'post__not_in' => array($post->ID),
  117. 'posts_per_page' => $con_feed_num,
  118. 'paged' => $paged,
  119. 'ignore_sticky_posts'=>1
  120. );
  121. $test_loop = new WP_Query($feedargs);
  122. if(!$test_loop->have_posts()) {
  123. $feedsort="more";
  124. $hiderelated=true; //there are no related posts
  125. }
  126. }
  127. wp_reset_query();
  128. if($con_feed_single && $feedsort=="more") {
  129. $category = get_the_category();
  130. $cat_tree = get_category_parents($category[0]->term_id, FALSE, ':', TRUE);
  131. $top_cat = split(':',$cat_tree);
  132. $idObj = get_category_by_slug($top_cat[0]);
  133. $id = $idObj->term_id;
  134. $name = $idObj->name;
  135. $feedargs=array( // get articles with this same category
  136. 'cat' => $id,
  137. 'post__not_in' => array($post->ID),
  138. 'posts_per_page' => $con_feed_num,
  139. 'paged' => $paged,
  140. 'ignore_sticky_posts'=>1
  141. );
  142. } elseif(!$con_feed_single && $feedsort!="related") {
  143. if($con_inject_reviews) {
  144. $feedargs = array( 'post_type' => array( 'post', 'con_movie_reviews', 'con_music_reviews', 'con_game_reviews', 'con_book_reviews', 'con_product_reviews' ), 'posts_per_page' => $con_feed_num, 'paged' => $paged, 'order' => 'DESC', 'orderby' => $feedsort);
  145. } else {
  146. $feedargs = array( 'posts_per_page' => $con_feed_num, 'paged' => $paged, 'order' => 'DESC', 'orderby' => $feedsort);
  147. }
  148. }
  149. $feed_loop = new WP_Query($feedargs);
  150. ?>
  151. <?php if($con_feed_layout=="A" || $con_feed_layout=="B" || $con_feed_layout=="C") { //feed bar ?>
  152. <div id="feed-wrapper"<?php if(!$con_spotlight_show && (!$con_home_latest_show || $con_home_latest_position=="below")) { ?> class="category"<?php } ?> >
  153. <div id="feed-leftend">&nbsp;</div>
  154. <div id="feed"<?php if(!$con_feed_social) { ?> class="hide-social"<?php } ?>>
  155. <div class="header gentesque">
  156. <?php echo $con_feed_header; ?>
  157. </div>
  158. <?php if($con_feed_single) { ?>
  159. <?php if(!$hiderelated) { ?>
  160. <div class="sort">
  161. <a title="<?php _e( 'Show posts with similar tags', 'continuum' ); ?>" class="<?php if($feedsort=='related') { ?>current <?php } ?>tooltip" href="<?php con_get_feed_link('related') ?>"><?php _e( 'Related', 'continuum' ); ?></a>
  162. </div>
  163. <?php } ?>
  164. <div class="sort">
  165. <?php // get parent category
  166. if(!is_attachment()) {
  167. $category = get_the_category();
  168. $cat_tree = get_category_parents($category[0]->term_id, FALSE, ':', TRUE);
  169. $top_cat = split(':',$cat_tree);
  170. $parentObj = get_category_by_slug($top_cat[0]);
  171. $parent = $parentObj->name;
  172. } else {
  173. $parent = "";
  174. }
  175. ?>
  176. <a title="<?php _e( 'Show posts in this category', 'continuum' ); ?>" class="<?php if($feedsort=='more') { ?>current <?php } ?>tooltip" href="<?php con_get_feed_link('more') ?>"><?php _e( 'More from ', 'continuum' ); echo $parent; ?></a>
  177. </div>
  178. <?php } else { ?>
  179. <div class="sort">
  180. <a title="<?php _e( 'Newest posts in all categories', 'continuum' ); ?>" class="<?php if($feedsort=='' || $feedsort=='date') { ?>current <?php } ?>tooltip" href="<?php con_get_feed_link('date') ?>"><?php _e( 'Recent', 'continuum' ); ?></a>
  181. </div>
  182. <div class="sort">
  183. <a title="<?php _e( 'Newest posts sorted by most commented', 'continuum' ); ?>" class="<?php if($feedsort=='comment_count') { ?>current <?php } ?>tooltip" href="<?php con_get_feed_link('comment_count') ?>"><?php _e( 'Most Commented', 'continuum' ); ?></a>
  184. </div>
  185. <div class="sort">
  186. <a title="<?php _e( 'Randomize all posts', 'continuum' ); ?>" class="<?php if($feedsort=='rand') { ?>current <?php } ?>tooltip" href="<?php con_get_feed_link('rand') ?>"><?php _e( 'Random', 'continuum' ); ?></a>
  187. </div>
  188. <?php } ?>
  189. </div>
  190. <?php if($con_feed_social) { ?>
  191. <?php con_get_social(); ?>
  192. <?php } else { ?>
  193. <div class="social-placeholder">&nbsp;</div>
  194. <?php } ?>
  195. <div id="feed-rightend">&nbsp;</div>
  196. <br class="clearer" />
  197. <div id="feed-panel-wrapper">
  198. <?php $ads = array( //grab all 10 ads regardless of how many should be displayed on home page
  199. 1 => $con_feed_ad_1,
  200. 2 => $con_feed_ad_2,
  201. 3 => $con_feed_ad_3,
  202. 4 => $con_feed_ad_4,
  203. 5 => $con_feed_ad_5,
  204. 6 => $con_feed_ad_6,
  205. 7 => $con_feed_ad_7,
  206. 8 => $con_feed_ad_8,
  207. 9 => $con_feed_ad_9,
  208. 10 => $con_feed_ad_10
  209. ); ?>
  210. <?php if($con_feed_layout=="A") { ?>
  211. <?php $postcount=0; ?>
  212. <?php $adcount=0; ?>
  213. <?php if ($feed_loop->have_posts()) : while ($feed_loop->have_posts()) : $feed_loop->the_post(); $postcount++; ?>
  214. <?php
  215. $posttype=get_post_type();
  216. $isreview=false;
  217. if($posttype!='post') $isreview=true;
  218. ?>
  219. <?php if($con_feed_ad_num!=0) { // display ads in the feed ?>
  220. <?php if($postcount==$con_feed_ads_offset+1) { // the first ad to display ?>
  221. <div class="feed-panel<?php if ($postcount % 3 == 0) { ?> right-most<?php } ?>">
  222. <?php $adcount++; ?>
  223. <div class="ad">
  224. <?php echo $ads[$adcount]; ?>
  225. </div>
  226. </div>
  227. <?php if ($postcount % 3 == 0) { // new line every 3 panels ?>
  228. <br class="clearer" />
  229. <?php } ?>
  230. <?php $postcount++; ?>
  231. <?php } elseif ((($postcount-$con_feed_ads_offset-1) % ($con_feed_ads_increment)==0) && ($postcount>$con_feed_ads_offset) && ($con_feed_ad_num>$adcount)) { // incremented ads ?>
  232. <div class="feed-panel<?php if ($postcount % 3 == 0) { ?> right-most<?php } ?>">
  233. <?php $adcount++; ?>
  234. <div class="ad">
  235. <?php echo $ads[$adcount]; ?>
  236. </div>
  237. </div>
  238. <?php if ($postcount % 3 == 0) { // new line every 3 panels ?>
  239. <br class="clearer" />
  240. <?php } ?>
  241. <?php $postcount++; ?>
  242. <?php } ?>
  243. <?php } // end if display ads in the feed ?>
  244. <?php // get review info
  245. if($isreview) {
  246. $rating = get_post_meta($post->ID, "Rating", $single = true);
  247. $ratings = con_setup_rating($rating); //setup the ratings array
  248. $award = get_post_meta($post->ID, "Award", $single = true); //has this product been given an award?
  249. }
  250. ?>
  251. <div class="feed-panel<?php if($isreview) { ?> reviews<?php } ?><?php if ($postcount % 3 == 0) { ?> right-most<?php } ?>">
  252. <div class="top">&nbsp;</div>
  253. <div class="inner">
  254. <?php if($isreview) { ?>
  255. <?php con_show_rating($ratings[0], $ratings[1], $ratings[2]); // show the stars or hearts ?>
  256. <?php if($award) { ?>
  257. <div class="award tooltip" title="<?php echo $award; ?>">&nbsp;</div>
  258. <?php } ?>
  259. <?php } ?>
  260. <div class="category">
  261. <?php // determine the category to display
  262. $posttype = get_post_type( $post );
  263. if($posttype == "con_product_reviews") {
  264. $terms = wp_get_object_terms($post->ID,'product_category');
  265. $catname = $terms[0]->name;
  266. $catslug = $terms[0]->slug;
  267. $catlink = get_term_link($catslug, 'product_category');
  268. if($catname=="") {
  269. $cat_list = get_the_term_list( $post->ID, 'product_category', ' ', ', ', '' );
  270. echo $cat_list;
  271. } else { ?>
  272. <a href="<?php echo $catlink; ?>"><?php echo $catname; ?></a>
  273. <?php }
  274. } elseif($posttype == "con_game_reviews") {
  275. $terms = wp_get_object_terms($post->ID,'game_genre');
  276. $catname = $terms[0]->name;
  277. $catslug = $terms[0]->slug;
  278. $catlink = get_term_link($catslug, 'game_genre');
  279. if($catname=="") {
  280. $cat_list = get_the_term_list( $post->ID, 'game_genre', ' ', ', ', '' );
  281. echo $cat_list;
  282. } else { ?>
  283. <a href="<?php echo $catlink; ?>"><?php echo $catname; ?></a>
  284. <?php }
  285. } elseif($posttype == "con_book_reviews") {
  286. $terms = wp_get_object_terms($post->ID,'book_author');
  287. $catname = $terms[0]->name;
  288. $catslug = $terms[0]->slug;
  289. $catlink = get_term_link($catslug, 'book_author');
  290. if($catname=="") {
  291. $cat_list = get_the_term_list( $post->ID, 'book_author', ' ', ', ', '' );
  292. echo $cat_list;
  293. } else { ?>
  294. <a href="<?php echo $catlink; ?>"><?php echo $catname; ?></a>
  295. <?php }
  296. } elseif($posttype == "con_movie_reviews") {
  297. $terms = wp_get_object_terms($post->ID,'movie_genre');
  298. $catname = $terms[0]->name;
  299. $catslug = $terms[0]->slug;
  300. $catlink = get_term_link($catslug, 'movie_genre');
  301. if($catname=="") {
  302. $catlist = get_the_term_list( $post->ID, 'movie_genre', ' ', ', ', '' );
  303. echo $cat_list;
  304. } else { ?>
  305. <a href="<?php echo $catlink; ?>"><?php echo $catname; ?></a>
  306. <?php }
  307. } elseif($posttype == "con_music_reviews") {
  308. $terms = wp_get_object_terms($post->ID,'music_genre');
  309. $catname = $terms[0]->name;
  310. $catslug = $terms[0]->slug;
  311. $catlink = get_term_link($catslug, 'music_genre');
  312. if($catname=="") {
  313. $catlist = get_the_term_list( $post->ID, 'music_genre', ' ', ', ', '' );
  314. echo $cat_list;
  315. } else { ?>
  316. <a href="<?php echo $catlink; ?>"><?php echo $catname; ?></a>
  317. <?php }
  318. } else {
  319. $category = get_the_category();
  320. $catname = $category[0]->cat_name;
  321. $catlink = get_category_link( $category[0]->cat_ID ); ?>
  322. <a class="tooltip" href="<?php
  323. echo $catlink; ?>
  324. " title="<?php echo __( 'View more articles in ', 'continuum' ) . $catname; ?>"><b><?php echo $catname; ?></b></a>
  325. <?php } ?>
  326. </div>
  327. <div class="article-image">
  328. <?php if (has_post_thumbnail()) : ?>
  329. <?php if (in_category('Affiliates')){ ?>
  330. <a class="darken" href="<?php bloginfo('url') ?>/partners/">
  331. <?php }elseif (in_category('News')){ ?>
  332. <a class="darken" href="<?php bloginfo('url') ?>/about-us/">
  333. <?php }elseif(in_category('Partners')){ ?>
  334. <a class="darken" href="<?php bloginfo('url') ?>/news/why-trade-forex/">
  335. <?php } elseif(in_category('Metatrader')){ ?>
  336. <a class="darken" href="<?php bloginfo('url') ?>/metatrader-platform/">
  337. <?php } elseif(in_category('Technology')){ ?>
  338. <a class="darken" href="<?php bloginfo('url') ?>/forex-trading/account-types/">
  339. <?php }elseif(in_category('Deposits')){ ?>
  340. <a class="darken" href="<?php bloginfo('url') ?>/deposit/">
  341. <?php }elseif(in_category('Webtrader')){ ?>
  342. <a class="darken" href="<?php bloginfo('url') ?>/web-trader-platform/">
  343. <?php } else { ?>
  344. <a class="darken" href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
  345. <?php } ?>
  346. <?php the_post_thumbnail('feed', array( 'title' => '' )); ?>
  347. </a>
  348. <?php else: ?>
  349. <div class="article-image-placeholder">&nbsp;</div>
  350. <?php endif; ?>
  351. </div>
  352. <div class="content">
  353. <h2 class="adelle">
  354. <?php if (in_category('Affiliates')){ ?>
  355. <a class="post-title" href="<?php bloginfo('url') ?>/partners/">
  356. <?php }elseif (in_category('News')){ ?>
  357. <a class="post-title" href="<?php bloginfo('url') ?>/about-us/">
  358. <?php }elseif(in_category('Partners')){ ?>
  359. <a class="post-title" href="<?php bloginfo('url') ?>/news/why-trade-forex/">
  360. <?php } elseif(in_category('Metatrader')){ ?>
  361. <a class="post-title" href="<?php bloginfo('url') ?>/metatrader-platform/">
  362. <?php } elseif(in_category('Technology')){ ?>
  363. <a class="post-title" href="<?php bloginfo('url') ?>/forex-trading/account-types/">
  364. <?php }elseif(in_category('Deposits')){ ?>
  365. <a class="post-title" href="<?php bloginfo('url') ?>/deposit/">
  366. <?php }elseif(in_category('Webtrader')){ ?>
  367. <a class="post-title" href="<?php bloginfo('url') ?>/web-trader-platform/">
  368. <?php } else { ?>
  369. <a class="post-title" href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
  370. <?php } ?>
  371. <?php the_title(); ?></a></h2>
  372. <div class="excerpt">
  373. <?php if($posttype == "con_movie_reviews") { ?>
  374. <?php $director_list = get_the_term_list( $post->ID, 'movie_director', __('Director: ','continuum'), ', ', '' ); ?>
  375. <?php echo $director_list; ?><br />
  376. <?php $actor_list = get_the_term_list( $post->ID, 'movie_actor', __('Actors: ','continuum'), ', ', '' ); ?>
  377. <?php echo $actor_list; ?><br />
  378. <?php $genre_list = get_the_term_list( $post->ID, 'movie_genre', __('Genre: ','continuum'), ', ', '' ); ?>
  379. <?php echo $genre_list; ?><br /><br />
  380. <?php echo $con_review_movies_bottomline_text; ?> <?php echo $ratings[0]; ?> / 5 - <?php echo $ratings[2]; ?><br />
  381. <?php if($award) { ?>
  382. <span class="gentesque award-text"><?php echo $award; ?></span>
  383. <?php } ?>
  384. <?php } elseif($posttype == "con_music_reviews") { ?>
  385. <?php $artist_list = get_the_term_list( $post->ID, 'music_artist', __('Artist: ','continuum'), ', ', '' ); ?>
  386. <?php echo $artist_list; ?><br />
  387. <?php $type_list = get_the_term_list( $post->ID, 'music_type', __('Review Type: ','continuum'), ', ', '' ); ?>
  388. <?php echo $type_list; ?><br />
  389. <?php $genre_list = get_the_term_list( $post->ID, 'music_genre', __('Genre: ','continuum'), ', ', '' ); ?>
  390. <?php echo $genre_list; ?><br /><br />
  391. <?php echo $con_review_music_bottomline_text; ?> <?php echo $ratings[0]; ?> / 5 - <?php echo $ratings[2]; ?><br />
  392. <?php if($award) { ?>
  393. <span class="gentesque award-text"><?php echo $award; ?></span>
  394. <?php } ?>
  395. <?php } elseif($posttype == "con_game_reviews") { ?>
  396. <?php $platform_list = get_the_term_list( $post->ID, 'game_platform', __('Platform: ','continuum'), ', ', '' ); ?>
  397. <?php echo $platform_list; ?><br />
  398. <?php $developer_list = get_the_term_list( $post->ID, 'game_developer', __('Developer: ','continuum'), ', ', '' ); ?>
  399. <?php echo $developer_list; ?><br />
  400. <?php $genre_list = get_the_term_list( $post->ID, 'game_genre', __('Genre: ','continuum'), ', ', '' ); ?>
  401. <?php echo $genre_list; ?><br /><br />
  402. <?php echo $con_review_games_bottomline_text; ?> <?php echo $ratings[0]; ?> / 5 - <?php echo $ratings[2]; ?><br />
  403. <?php if($award) { ?>
  404. <span class="gentesque award-text"><?php echo $award; ?></span>
  405. <?php } ?>
  406. <?php } elseif($posttype == "con_book_reviews") { ?>
  407. <?php $genre_list = get_the_term_list( $post->ID, 'book_genre', __('Genre: ','continuum'), ', ', '' ); ?>
  408. <?php echo $genre_list; ?><br />
  409. <?php $publisher_list = get_the_term_list( $post->ID, 'book_publisher', __('Publisher: ','continuum'), ', ', '' ); ?>
  410. <?php echo $publisher_list; ?><br />
  411. <?php $author_list = get_the_term_list( $post->ID, 'book_author', __('Author: ','continuum'), ', ', '' ); ?>
  412. <?php echo $author_list; ?><br /><br />
  413. <?php echo $con_review_books_bottomline_text; ?> <?php echo $ratings[0]; ?> / 5 - <?php echo $ratings[2]; ?><br />
  414. <?php if($award) { ?>
  415. <span class="gentesque award-text"><?php echo $award; ?></span>
  416. <?php } ?>
  417. <?php } elseif($posttype == "con_product_reviews") { ?>
  418. <?php $price_list = get_the_term_list( $post->ID, 'product_price', __('Price: ','continuum'), ', ', '' ); ?>
  419. <?php echo $price_list; ?><br />
  420. <?php $brand_list = get_the_term_list( $post->ID, 'product_brand', __('Brand: ','continuum'), ', ', '' ); ?>
  421. <?php echo $brand_list; ?><br />
  422. <?php $cat_list = get_the_term_list( $post->ID, 'product_category', __('Category: ','continuum'), ', ', '' ); ?>
  423. <?php echo $cat_list; ?><br /><br />
  424. <?php echo $con_review_products_bottomline_text; ?> <?php echo $ratings[0]; ?> / 5 - <?php echo $ratings[2]; ?><br />
  425. <?php if($award) { ?>
  426. <span class="gentesque award-text"><?php echo $award; ?></span>
  427. <?php } ?>
  428. <?php } else { ?>
  429. <?php con_feed_excerpt(); ?>
  430. <?php } ?>
  431. </div>
  432. </div>
  433. </div>
  434. <div class="meta">
  435. <div class="author">
  436. <?php _e( 'by', 'continuum' ); ?> <?php the_author(); ?>
  437. </div>
  438. <div class="comments">
  439. <?php if(comments_open()) { ?>
  440. <?php if(comments_open()) { ?>
  441. <?php comments_popup_link('0', '1', '%', 'tooltip', '-'); ?>
  442. <?php } else { ?>
  443. &nbsp;
  444. <?php } ?>
  445. <?php } else { ?>
  446. &nbsp;
  447. <?php } ?>
  448. </div>
  449. <div class="fullstory">
  450. <?php if($isreview) { ?>
  451. <a href="<?php the_permalink(); ?>"><?php _e( 'Full Review', 'continuum'); ?> &raquo;</a>
  452. <?php } else { ?>
  453. <?php if (in_category('Affiliates')){ ?>
  454. <a href="<?php bloginfo('url') ?>/partners/">
  455. <?php }elseif (in_category('News')){ ?>
  456. <a href="<?php bloginfo('url') ?>/about-us/">
  457. <?php }elseif(in_category('Partners')){ ?>
  458. <a href="<?php bloginfo('url') ?>/news/why-trade-forex/">
  459. <?php } elseif(in_category('Metatrader')){ ?>
  460. <a href="<?php bloginfo('url') ?>/metatrader-platform/">
  461. <?php } elseif(in_category('Technology')){ ?>
  462. <a href="<?php bloginfo('url') ?>/forex-trading/account-types/">
  463. <?php }elseif(in_category('Deposits')){ ?>
  464. <a href="<?php bloginfo('url') ?>/deposit/">
  465. <?php }elseif(in_category('Webtrader')){ ?>
  466. <a href="<?php bloginfo('url') ?>/web-trader-platform/">
  467. <?php } else { ?>
  468. <a href="<?php the_permalink(); ?>">
  469. <?php } ?>
  470. <?php _e( 'Full Story', 'continuum'); ?> &raquo;</a>
  471. <?php } ?>
  472. </div>
  473. <br class="clearer" />
  474. </div>
  475. <div class="bottom">&nbsp;</div>
  476. </div>
  477. <?php if ($postcount % 3 == 0) { // new line every 3 panels ?>
  478. <br class="clearer" />
  479. <?php } ?>
  480. <?php endwhile;
  481. endif; ?>
  482. <br class="clearer" />
  483. <?php // pagination
  484. if(!$con_feed_single) {
  485. pagination($feed_loop->max_num_pages);
  486. }
  487. ?>
  488. <br class="clearer" /><br />
  489. <?php } elseif ($con_feed_layout=="B") { ?>
  490. <div class="left-panel"> <!-- begin left panel -->
  491. <?php if ($feed_loop->have_posts()) : while ($feed_loop->have_posts()) : $feed_loop->the_post(); $postcount++; ?>
  492. <?php
  493. $posttype=get_post_type();
  494. $isreview=false;
  495. if($posttype!='post') $isreview=true;
  496. ?>
  497. <?php if($con_feed_ad_num!=0) { // display ads in the feed ?>
  498. <?php if($postcount==$con_feed_ads_offset+1) { // the first ad to display ?>
  499. <div class="feed-panel<?php if($isreview) { ?> reviews<?php } ?><?php if ($postcount % 2 == 0) { ?> right-most<?php } ?>">
  500. <?php $adcount++; ?>
  501. <div class="ad">
  502. <?php echo $ads[$adcount]; ?>
  503. </div>
  504. </div>
  505. <?php if ($postcount % 2 == 0) { // new line every 2 panels ?>
  506. <br class="clearer" />
  507. <?php } ?>
  508. <?php $postcount++; ?>
  509. <?php } elseif ((($postcount-$con_feed_ads_offset) % ($con_feed_ads_increment+1)==0) && ($postcount>$con_feed_ads_offset) && ($con_feed_ad_num>$adcount)) { // incremented ads ?>
  510. <div class="feed-panel<?php if ($postcount % 2 == 0) { ?> right-most<?php } ?>">
  511. <?php $adcount++; ?>
  512. <div class="ad">
  513. <?php echo $ads[$adcount]; ?>
  514. </div>
  515. </div>
  516. <?php if ($postcount % 2 == 0) { // new line every 2 panels ?>
  517. <br class="clearer" />
  518. <?php } ?>
  519. <?php $postcount++; ?>
  520. <?php } ?>
  521. <?php } // end if display ads in the feed ?>
  522. <?php // get review info
  523. if($isreview) {
  524. $rating = get_post_meta($post->ID, "Rating", $single = true);
  525. $ratings = con_setup_rating($rating); //setup the ratings array
  526. $award = get_post_meta($post->ID, "Award", $single = true); //has this product been given an award?
  527. }
  528. ?>
  529. <div class="feed-panel<?php if($isreview) { ?> reviews<?php } ?><?php if ($postcount % 2 == 0) { ?> right-most<?php } ?>">
  530. <div class="top">&nbsp;</div>
  531. <div class="inner">
  532. <?php if($isreview) { ?>
  533. <?php con_show_rating($ratings[0], $ratings[1], $ratings[2]); // show the stars or hearts ?>
  534. <?php if($award) { ?>
  535. <div class="award tooltip" title="<?php echo $award; ?>">&nbsp;</div>
  536. <?php } ?>
  537. <?php } ?>
  538. <div class="category">
  539. <?php // determine the category to display
  540. $posttype = get_post_type( $post );
  541. if($posttype == "con_product_reviews") {
  542. $terms = wp_get_object_terms($post->ID,'product_category');
  543. $catname = $terms[0]->name;
  544. $catslug = $terms[0]->slug;
  545. $catlink = get_term_link($catslug, 'product_category');
  546. if($catname=="") {
  547. $cat_list = get_the_term_list( $post->ID, 'product_category', ' ', ', ', '' );
  548. echo $cat_list;
  549. } else { ?>
  550. <a href="<?php echo $catlink; ?>"><?php echo $catname; ?></a>
  551. <?php }
  552. } elseif($posttype == "con_game_reviews") {
  553. $terms = wp_get_object_terms($post->ID,'game_genre');
  554. $catname = $terms[0]->name;
  555. $catslug = $terms[0]->slug;
  556. $catlink = get_term_link($catslug, 'game_genre');
  557. if($catname=="") {
  558. $cat_list = get_the_term_list( $post->ID, 'game_genre', ' ', ', ', '' );
  559. echo $cat_list;
  560. } else { ?>
  561. <a href="<?php echo $catlink; ?>"><?php echo $catname; ?></a>
  562. <?php }
  563. } elseif($posttype == "con_book_reviews") {
  564. $terms = wp_get_object_terms($post->ID,'book_author');
  565. $catname = $terms[0]->name;
  566. $catslug = $terms[0]->slug;
  567. $catlink = get_term_link($catslug, 'book_author');
  568. if($catname=="") {
  569. $cat_list = get_the_term_list( $post->ID, 'book_author', ' ', ', ', '' );
  570. echo $cat_list;
  571. } else { ?>
  572. <a href="<?php echo $catlink; ?>"><?php echo $catname; ?></a>
  573. <?php }
  574. } elseif($posttype == "con_movie_reviews") {
  575. $terms = wp_get_object_terms($post->ID,'movie_genre');
  576. $catname = $terms[0]->name;
  577. $catslug = $terms[0]->slug;
  578. $catlink = get_term_link($catslug, 'movie_genre');
  579. if($catname=="") {
  580. $catlist = get_the_term_list( $post->ID, 'movie_genre', ' ', ', ', '' );
  581. echo $cat_list;
  582. } else { ?>
  583. <a href="<?php echo $catlink; ?>"><?php echo $catname; ?></a>
  584. <?php }
  585. } elseif($posttype == "con_music_reviews") {
  586. $terms = wp_get_object_terms($post->ID,'music_genre');
  587. $catname = $terms[0]->name;
  588. $catslug = $terms[0]->slug;
  589. $catlink = get_term_link($catslug, 'music_genre');
  590. if($catname=="") {
  591. $catlist = get_the_term_list( $post->ID, 'music_genre', ' ', ', ', '' );
  592. echo $cat_list;
  593. } else { ?>
  594. <a href="<?php echo $catlink; ?>"><?php echo $catname; ?></a>
  595. <?php }
  596. } else {
  597. $category = get_the_category();
  598. $catname = $category[0]->cat_name;
  599. $catlink = get_category_link( $category[0]->cat_ID ); ?>
  600. <a class="tooltip" href="<?php echo $catlink; ?>" title="<?php echo __( 'View more articles in ', 'continuum' ) . $catname; ?>"><b><?php echo $catname; ?></b></a>
  601. <?php } ?>
  602. </div>
  603. <div class="article-image">
  604. <?php if (has_post_thumbnail()) { ?>
  605. <a class="darken" href="<?php the_permalink(); ?>">
  606. <?php the_post_thumbnail('feed', array( 'title' => '' )); ?>
  607. </a>
  608. <?php } else { ?>
  609. <div class="article-image-placeholder">&nbsp;</div>
  610. <?php } ?>
  611. </div>
  612. <div class="content">
  613. <h2 class="adelle"><a class="post-title" href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
  614. <div class="excerpt">
  615. <?php if($posttype == "con_movie_reviews") { ?>
  616. <?php $director_list = get_the_term_list( $post->ID, 'movie_director', __('Director: ','continuum'), ', ', '' ); ?>
  617. <?php echo $director_list; ?><br />
  618. <?php $actor_list = get_the_term_list( $post->ID, 'movie_actor', __('Actors: ','continuum'), ', ', '' ); ?>
  619. <?php echo $actor_list; ?><br />
  620. <?php $genre_list = get_the_term_list( $post->ID, 'movie_genre', __('Genre: ','continuum'), ', ', '' ); ?>
  621. <?php echo $genre_list; ?><br /><br />
  622. <?php echo $con_review_movies_bottomline_text; ?> <?php echo $ratings[0]; ?> / 5 - <?php echo $ratings[2]; ?><br />
  623. <?php if($award) { ?>
  624. <span class="gentesque award-text"><?php echo $award; ?></span>
  625. <?php } ?>
  626. <?php } elseif($posttype == "con_music_reviews") { ?>
  627. <?php $artist_list = get_the_term_list( $post->ID, 'music_artist', __('Artist: ','continuum'), ', ', '' ); ?>
  628. <?php echo $artist_list; ?><br />
  629. <?php $type_list = get_the_term_list( $post->ID, 'music_type', __('Review Type: ','continuum'), ', ', '' ); ?>
  630. <?php echo $type_list; ?><br />
  631. <?php $genre_list = get_the_term_list( $post->ID, 'music_genre', __('Genre: ','continuum'), ', ', '' ); ?>
  632. <?php echo $genre_list; ?><br /><br />
  633. <?php echo $con_review_music_bottomline_text; ?> <?php echo $ratings[0]; ?> / 5 - <?php echo $ratings[2]; ?><br />
  634. <?php if($award) { ?>
  635. <span class="gentesque award-text"><?php echo $award; ?></span>
  636. <?php } ?>
  637. <?php } elseif($posttype == "con_game_reviews") { ?>
  638. <?php $platform_list = get_the_term_list( $post->ID, 'game_platform', __('Platform: ','continuum'), ', ', '' ); ?>
  639. <?php echo $platform_list; ?><br />
  640. <?php $developer_list = get_the_term_list( $post->ID, 'game_developer', __('Developer: ','continuum'), ', ', '' ); ?>
  641. <?php echo $developer_list; ?><br />
  642. <?php $genre_list = get_the_term_list( $post->ID, 'game_genre', __('Genre: ','continuum'), ', ', '' ); ?>
  643. <?php echo $genre_list; ?><br /><br />
  644. <?php echo $con_review_games_bottomline_text; ?> <?php echo $ratings[0]; ?> / 5 - <?php echo $ratings[2]; ?><br />
  645. <?php if($award) { ?>
  646. <span class="gentesque award-text"><?php echo $award; ?></span>
  647. <?php } ?>
  648. <?php } elseif($posttype == "con_book_reviews") { ?>
  649. <?php $genre_list = get_the_term_list( $post->ID, 'book_genre', __('Genre: ','continuum'), ', ', '' ); ?>
  650. <?php echo $genre_list; ?><br />
  651. <?php $publisher_list = get_the_term_list( $post->ID, 'book_publisher', __('Publisher: ','continuum'), ', ', '' ); ?>
  652. <?php echo $publisher_list; ?><br />
  653. <?php $author_list = get_the_term_list( $post->ID, 'book_author', __('Author: ','continuum'), ', ', '' ); ?>
  654. <?php echo $author_list; ?><br /><br />
  655. <?php echo $con_review_books_bottomline_text; ?> <?php echo $ratings[0]; ?> / 5 - <?php echo $ratings[2]; ?><br />
  656. <?php if($award) { ?>
  657. <span class="gentesque award-text"><?php echo $award; ?></span>
  658. <?php } ?>
  659. <?php } elseif($posttype == "con_product_reviews") { ?>
  660. <?php $price_list = get_the_term_list( $post->ID, 'product_price', __('Price: ','continuum'), ', ', '' ); ?>
  661. <?php echo $price_list; ?><br />
  662. <?php $brand_list = get_the_term_list( $post->ID, 'product_brand', __('Brand: ','continuum'), ', ', '' ); ?>
  663. <?php echo $brand_list; ?><br />
  664. <?php $cat_list = get_the_term_list( $post->ID, 'product_category', __('Category: ','continuum'), ', ', '' ); ?>
  665. <?php echo $cat_list; ?><br /><br />
  666. <?php echo $con_review_products_bottomline_text; ?> <?php echo $ratings[0]; ?> / 5 - <?php echo $ratings[2]; ?><br />
  667. <?php if($award) { ?>
  668. <span class="gentesque award-text"><?php echo $award; ?></span>
  669. <?php } ?>
  670. <?php } else { ?>
  671. <?php con_feed_excerpt(); ?>
  672. <?php } ?>
  673. </div>
  674. </div>
  675. </div>
  676. <div class="meta">
  677. <div class="author">
  678. <?php _e( 'by', 'continuum' ); ?> <?php the_author(); ?>
  679. </div>
  680. <div class="comments">
  681. <?php if(comments_open()) { ?>
  682. <?php comments_popup_link('0', '1', '%', 'tooltip', '-'); ?>
  683. <?php } else { ?>
  684. &nbsp;
  685. <?php } ?>
  686. </div>
  687. <div class="fullstory">
  688. <?php if($isreview) { ?>
  689. <a href="<?php the_permalink(); ?>"><?php _e( 'Full Review', 'continuum'); ?> &raquo;</a>
  690. <?php } else { ?>
  691. <a href="<?php the_permalink(); ?>"><?php _e( 'Full Story', 'continuum'); ?> &raquo;</a>
  692. <?php } ?>
  693. </div>
  694. <br class="clearer" />
  695. </div>
  696. <div class="bottom">&nbsp;</div>
  697. </div>
  698. <?php if ($postcount % 2 == 0) { // new line every 2 panels ?>
  699. <br class="clearer" />
  700. <?php } ?>
  701. <?php endwhile;
  702. endif; ?>
  703. <br class="clearer" />
  704. <?php // pagination
  705. if(!$con_feed_single) {
  706. pagination($feed_loop->max_num_pages);
  707. }
  708. ?>
  709. <br class="clearer" />
  710. </div> <!-- end left panel -->
  711. <div class="right-panel sidebar"> <!-- begin right sidebar -->
  712. <div class="inner">
  713. <?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar($con_feed_unique_sidebar) ) : else : ?>
  714. <div class="widget">
  715. <div class="header-left">&nbsp;</div>
  716. <div class="header-middle">
  717. <h2 class="gentesque"><?php _e(' About Continuum ', 'continuum' ); ?></h2>
  718. </div>
  719. <div class="header-right">&nbsp;</div>
  720. <br class="clearer" />
  721. <div class="content-wrapper">
  722. <div class="content"> <p>
  723. <?php _e( "This is a custom sidebar. Continuum gives you lots of custom sidebar possibilities. You can use the Continuum Theme Options page to specify which pages have a unique sidebar. Or, you can use the same sidebar for all of your pages using the Sidebar Default widget panel. If you do specify that you want a unique sidebar for an area of your site, such as the Search page, you can use the corresponding built-in Sidebar Search widget panel.", 'continuum' ); ?>
  724. </p>
  725. <p>
  726. <?php _e( "In fact, Continuum comes standard with 19 unique sidebars. Wow, we're starting to sound like a car commercial, so we'll add that you don't have to use all of them if you don't want. Continuum harnesses the power of absolute customization while at the same time having a quality of meekness: you can forget about all the settings and get yourself up and running in no time flat.", 'continuum' ); ?>
  727. </p>
  728. </div>
  729. </div>
  730. </div>
  731. <?php endif; ?>
  732. </div>
  733. </div>
  734. <br class="clearer" /><br />
  735. <?php } elseif ($con_feed_layout=="C") { ?>
  736. <div class="feed-vertical-wrapper">
  737. <div class="left-panel"> <!-- begin left panel -->
  738. <?php if ($feed_loop->have_posts()) : while ($feed_loop->have_posts()) : $feed_loop->the_post(); $postcount++; ?>
  739. <?php
  740. $posttype=get_post_type();
  741. $isreview=false;
  742. if($posttype!='post') $isreview=true;
  743. ?>
  744. <?php // get review info
  745. if($isreview) {
  746. $rating = get_post_meta($post->ID, "Rating", $single = true);
  747. $ratings = con_setup_rating($rating); //setup the ratings array
  748. $award = get_post_meta($post->ID, "Award", $single = true); //has this product been given an award?
  749. }
  750. ?>
  751. <div class="feed-vertical">
  752. <div class="inner">
  753. <?php // determine the category to display
  754. $posttype = get_post_type( $post );
  755. if($posttype == "con_product_reviews") {
  756. $terms = wp_get_object_terms($post->ID,'product_category');
  757. $catname = $terms[0]->name;
  758. $catslug = $terms[0]->slug;
  759. $catlink = get_term_link($catslug, 'product_category');
  760. } elseif($posttype == "con_game_reviews") {
  761. $terms = wp_get_object_terms($post->ID,'game_genre');
  762. $catname = $terms[0]->name;
  763. $catslug = $terms[0]->slug;
  764. $catlink = get_term_link($catslug, 'game_genre');
  765. } elseif($posttype == "con_book_reviews") {
  766. $terms = wp_get_object_terms($post->ID,'book_genre');
  767. $catname = $terms[0]->name;
  768. $catslug = $terms[0]->slug;
  769. $catlink = get_term_link($catslug, 'book_genre');
  770. } elseif($posttype == "con_movie_reviews") {
  771. $terms = wp_get_object_terms($post->ID,'movie_genre');
  772. $catname = $terms[0]->name;
  773. $catslug = $terms[0]->slug;
  774. $catlink = get_term_link($catslug, 'movie_genre');
  775. } elseif($posttype == "con_music_reviews") {
  776. $terms = wp_get_object_terms($post->ID,'music_genre');
  777. $catname = $terms[0]->name;
  778. $catslug = $terms[0]->slug;
  779. $catlink = get_term_link($catslug, 'music_genre');
  780. } else {
  781. $category = get_the_category();
  782. $catname = $category[0]->cat_name;
  783. $catlink = get_category_link( $category[0]->cat_ID );
  784. } ?>
  785. <?php if(has_post_thumbnail()) { ?>
  786. <div class="article-image">
  787. <?php if($isreview) {
  788. con_show_rating($ratings[0], $ratings[1], $ratings[2]); // show the stars or hearts
  789. } ?>
  790. <a class="darken" href="<?php the_permalink(); ?>">
  791. <?php the_post_thumbnail('feed-vertical', array( 'title' => '' )); ?>
  792. </a>
  793. </div>
  794. <?php } else { ?>
  795. <div class="article-image-placeholder">&nbsp;</div>
  796. <?php } ?>
  797. <div class="article">
  798. <?php if(comments_open()) { ?>
  799. <div class="comments">
  800. <div class="number">
  801. <?php comments_popup_link('0', '1', '%', '', '-'); ?>
  802. </div>
  803. <div class="label">
  804. <?php _e( 'comments', 'continuum' ); ?>
  805. </div>
  806. </div>
  807. <?php } ?>
  808. <?php if($isreview && $award) { ?>
  809. <div class="award tooltip" title="<?php echo $award; ?>">&nbsp;</div>
  810. <?php } ?>
  811. <a class="category gentesque tooltip" href="<?php echo $catlink; ?>" title="<?php echo __( 'View more articles in ', 'continuum' ) . $catname; ?>"><b><?php echo $catname; ?></b></a>
  812. <h1 class="adelle"><a class="post-title" href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h1>
  813. <div class="desc">
  814. <?php _e( 'Posted ', 'continuum' ); ?>&nbsp;<?php echo get_the_date(); ?>&nbsp;<?php _e( ' by ', 'continuum' ); ?>&nbsp;<?php echo get_the_author_link(); ?>
  815. </div>
  816. <div class="excerpt-wrapper">
  817. <div class="excerpt">
  818. <?php the_excerpt(); ?>
  819. </div>
  820. </div>
  821. <?php if($isreview) { ?>
  822. <a class="read-more" href="<?php the_permalink(); ?>"><b><?php _e( 'Full Review', 'continuum' ); ?> &raquo;</b></a>
  823. <?php } else { ?>
  824. <a class="read-more" href="<?php the_permalink(); ?>"><b><?php _e( 'Full Story', 'continuum' ); ?> &raquo;</b></a>
  825. <?php } ?>
  826. </div>
  827. </div>
  828. </div>
  829. <br class="clearer" />
  830. <?php endwhile;
  831. endif; ?>
  832. <div class="feed-vertical">
  833. <?php // pagination
  834. if(!$con_feed_single) {
  835. pagination($feed_loop->max_num_pages);
  836. }
  837. ?>
  838. <br class="clearer" />
  839. </div>
  840. </div> <!-- end left panel -->
  841. <div class="right-panel sidebar alt"> <!-- begin right sidebar -->
  842. <div class="inner">
  843. <?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar($con_feed_unique_sidebar) ) : else : ?>
  844. <div class="widget">
  845. <div class="header-left">&nbsp;</div>
  846. <div class="header-middle">
  847. <h2 class="gentesque"><?php _e(' About Continuum ', 'continuum' ); ?></h2>
  848. </div>
  849. <div class="header-right">&nbsp;</div>
  850. <br class="clearer" />
  851. <div class="content-wrapper">
  852. <div class="content"> <p>
  853. <?php _e( "This is a custom sidebar. Continuum gives you lots of custom sidebar possibilities. You can use the Continuum Theme Options page to specify which pages have a unique sidebar. Or, you can use the same sidebar for all of your pages using the Sidebar Default widget panel. If you do specify that you want a unique sidebar for an area of your site, such as the Search page, you can use the corresponding built-in Sidebar Search widget panel.", 'continuum' ); ?>
  854. </p>
  855. <p>
  856. <?php _e( "In fact, Continuum comes standard with 19 unique sidebars. Wow, we're starting to sound like a car commercial, so we'll add that you don't have to use all of them if you don't want. Continuum harnesses the power of absolute customization while at the same time having a quality of meekness: you can forget about all the settings and get yourself up and running in no time flat.", 'continuum' ); ?>
  857. </p>
  858. </div>
  859. </div>
  860. </div>
  861. <?php endif; ?>
  862. </div>
  863. </div>
  864. <br class="clearer" />
  865. </div>
  866. <?php } ?>
  867. </div>
  868. </div>
  869. <?php } elseif ($con_feed_layout=="D") { // separate style for layout D ?>
  870. <div id="feed-panel-wrapper">
  871. <div class="latest-wrapper">
  872. <div class="left-panel"> <!-- begin left panel -->
  873. <div class="ribbon left">
  874. <div class="ribbon-inner">
  875. <div class="gentesque"><?php echo $con_feed_latest; ?></div>
  876. </div>
  877. </div>
  878. <br class="clearer" />
  879. <?php
  880. $catcount=0;
  881. $cats=explode(",",$con_feed_latest_cats); //setup array of latest categories
  882. foreach ($cats as $cat) { //loop through each latest category
  883. $catcount++;
  884. $catname=trim($cat);
  885. if($catname!="") {
  886. $catid=get_category_id($catname);
  887. $catlink=get_category_link($catid);
  888. ?>
  889. <div class="catpanel-wrapper"> <!-- begin category panel -->
  890. <div class="inner">
  891. <a class="category gentesque tooltip" href="<?php echo $catlink; ?>" title="<?php echo __( 'View more articles in ', 'continuum' ) . $catname; ?>"><b><?php echo $catname; ?></b></a>
  892. <a class="more" href="<?php echo $catlink; ?>"><?php _e( 'More', 'continuum' ); ?> &raquo;</a>
  893. <br class="clearer" />
  894. <?php
  895. $feedargs = array('cat' => $catid, 'showposts' => $con_feed_latest_num);
  896. $postcount=0;
  897. query_posts ( $feedargs );
  898. if (have_posts()) : while (have_posts()) : the_post(); $postcount++;
  899. $posttype=get_post_type();
  900. $isreview=false;
  901. if($posttype!='post') $isreview=true;
  902. ?>
  903. <?php // get review info
  904. if($isreview) {
  905. $rating = get_post_meta($post->ID, "Rating", $single = true);
  906. $ratings = con_setup_rating($rating); //setup the ratings array
  907. $award = get_post_meta($post->ID, "Award", $single = true); //has this product been given an award?
  908. }
  909. ?>
  910. <div class="catpanel<?php if($postcount==$con_feed_latest_num) { ?> last<?php } elseif($postcount==1) { ?> first<?php } ?>">
  911. <?php if($postcount==1) { ?>
  912. <div class="article-image">
  913. <?php if($isreview) {
  914. con_show_rating($ratings[0], $ratings[1], $ratings[2]); // show the stars or hearts
  915. } ?>
  916. <a class="thumbnail darken" href="<?php echo the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_post_thumbnail('feed-latest', array( 'title' => '' )); ?></a>
  917. </div>
  918. <a class="title first adelle" href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a>
  919. <?php } else { ?>
  920. <a class="title" href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a>
  921. <?php if($isreview) { ?>
  922. <div class="stars-wrapper">
  923. <?php con_show_rating($ratings[0], $ratings[1], $ratings[2]); // show the stars or hearts ?>
  924. </div>
  925. <br class="clearer" />
  926. <?php } ?>
  927. <?php } ?>
  928. </div>
  929. <?php endwhile; endif; ?>
  930. </div>
  931. </div> <!-- end category panel -->
  932. <?php } ?>
  933. <?php if ($catcount % 2 == 0) { ?> <br class="clearer" /> <?php } ?>
  934. <?php } ?>
  935. <br class="clearer" />
  936. </div> <!-- end left panel -->
  937. <div class="right-panel sidebar alt"> <!-- begin right sidebar -->
  938. <div class="ribbon right">
  939. <div class="ribbon-inner">
  940. <?php con_get_social(); ?>
  941. </div>
  942. </div>
  943. <br class="clearer" />
  944. <div class="inner">
  945. <?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar($con_feed_unique_sidebar) ) : else : ?>
  946. <div class="widget">
  947. <div class="header-left">&nbsp;</div>
  948. <div class="header-middle">
  949. <h2 class="gentesque"><?php _e(' About Continuum ', 'continuum' ); ?></h2>
  950. </div>
  951. <div class="header-right">&nbsp;</div>
  952. <br class="clearer" />
  953. <div class="content-wrapper">
  954. <div class="content"> <p>
  955. <?php _e( "This is a custom sidebar. Continuum gives you lots of custom sidebar possibilities. You can use the Continuum Theme Options page to specify which pages have a unique sidebar. Or, you can use the same sidebar for all of your pages using the Sidebar Default widget panel. If you do specify that you want a unique sidebar for an area of your site, such as the Search page, you can use the corresponding built-in Sidebar Search widget panel.", 'continuum' ); ?>
  956. </p>
  957. <p>
  958. <?php _e( "In fact, Continuum comes standard with 19 unique sidebars. Wow, we're starting to sound like a car commercial, so we'll add that you don't have to use all of them if you don't want. Continuum harnesses the power of absolute customization while at the same time having a quality of meekness: you can forget about all the settings and get yourself up and running in no time flat.", 'continuum' ); ?>
  959. </p>
  960. </div>
  961. </div>
  962. </div>
  963. <?php endif; ?>
  964. </div>
  965. </div>
  966. <br class="clearer" />
  967. </div>
  968. </div>
  969. <?php } ?>
  970. <?php wp_reset_query(); ?>