catchresponsive_demo_content

This function to display featured posts content.

Description

catchresponsive_demo_content( $options ); 

Parameters (1)

0. $options
The options.

Usage

  1. if ( !function_exists( 'catchresponsive_demo_content' ) ) { 
  2. require_once '/inc/catchresponsive-featured-content.php'; 
  3.  
  4. // The options. 
  5. $options = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = catchresponsive_demo_content($options); 
  9.  

Defined (1)

The function is defined in the following location(s).

/inc/catchresponsive-featured-content.php  
  1. function catchresponsive_demo_content( $options ) { 
  2. $catchresponsive_demo_content = ' 
  3. <article id="featured-post-1" class="post hentry post-demo"> 
  4. <figure class="featured-content-image"> 
  5. <img alt="Central Park" class="wp-post-image" src="'.get_template_directory_uri() . '/images/gallery/featured1-350x197.jpg" /> 
  6. </figure> 
  7. <div class="entry-container"> 
  8. <header class="entry-header"> 
  9. <h1 class="entry-title"> 
  10. Central Park 
  11. </h1> 
  12. </header> 
  13. <div class="entry-content"> 
  14. Central Park is is the most visited urban park in the United States as well as one of the most filmed locations in the world. It was opened in 1857 and is expanded in 843 acres of city-owned land. 
  15. </div> 
  16. </div><!-- .entry-container --> 
  17. </article> 
  18.  
  19. <article id="featured-post-2" class="post hentry post-demo"> 
  20. <figure class="featured-content-image"> 
  21. <img alt="Home Office" class="wp-post-image" src="'.get_template_directory_uri() . '/images/gallery/featured2-350x197.jpg" /> 
  22. </figure> 
  23. <div class="entry-container"> 
  24. <header class="entry-header"> 
  25. <h1 class="entry-title"> 
  26. Home Office 
  27. </h1> 
  28. </header> 
  29. <div class="entry-content"> 
  30. It might be work, but it doesn\'t have to feel like it. All you need is a comfortable desk, nice laptop, home office furniture that keeps things organized, and the right lighting for the job. 
  31. </div> 
  32. </div><!-- .entry-container --> 
  33. </article> 
  34.  
  35. <article id="featured-post-3" class="post hentry post-demo"> 
  36. <figure class="featured-content-image"> 
  37. <img alt="Vespa Scooter" class="wp-post-image" src="'.get_template_directory_uri() . '/images/gallery/featured3-350x197.jpg" /> 
  38. </figure> 
  39. <div class="entry-container"> 
  40. <header class="entry-header"> 
  41. <h1 class="entry-title"> 
  42. Vespa Scooter 
  43. </h1> 
  44. </header> 
  45. <div class="entry-content"> 
  46. The Vespa Scooter has evolved from a single model motor scooter manufactured in the year 1946 by Piaggio & Co. S.p.A. of Pontedera, Italy-to a full line of scooters, today owned by Piaggio. 
  47. </div> 
  48. </div><!-- .entry-container --> 
  49. </article>'; 
  50.  
  51. if ( 'layout-four' == $options ['featured_content_layout']) { 
  52. $catchresponsive_demo_content .= ' 
  53. <article id="featured-post-4" class="post hentry post-demo"> 
  54. <figure class="featured-content-image"> 
  55. <img alt="Antique Clock" class="wp-post-image" src="'.get_template_directory_uri() . '/images/gallery/featured4-350x197.jpg" /> 
  56. </figure> 
  57. <div class="entry-container"> 
  58. <header class="entry-header"> 
  59. <h1 class="entry-title"> 
  60. Antique Clock 
  61. </h1> 
  62. </header> 
  63. <div class="entry-content"> 
  64. Antique clocks increase in value with the rarity of the design, their condition, and appeal in the market place. Many different materials were used in antique clocks. 
  65. </div> 
  66. </div><!-- .entry-container --> 
  67. </article>'; 
  68.  
  69. return $catchresponsive_demo_content;