Advertisement
Guest User

Untitled

a guest
Mar 18th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.57 KB | None | 0 0
  1. <?php
  2. /**
  3. * The template for displaying content in the single.php template
  4. *
  5. * @package Catch Themes
  6. * @subpackage Catch Box
  7. * @since Catch Box 1.0
  8. */
  9. $recipe_yild = CFS()->get('artabr_recipe_recipeYield');
  10. ?>
  11.  
  12. <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  13. <header class="entry-header">
  14. <h1 class="entry-title"><?php the_title(); ?></h1>
  15.  
  16. <?php if ( 'post' == get_post_type() ) : ?>
  17. <div class="entry-meta">
  18. <?php catchbox_posted_on(); ?>
  19. <?php if ( comments_open() && ! post_password_required() ) : ?>
  20. <span class="sep sep-comment"> &mdash; </span>
  21. <span class="comments-link">
  22. <?php comments_popup_link(__('No Comments &darr;', 'catch-box'), __('1 Comment &darr;', 'catch-box'), __('% Comments &darr;', 'catch-box')); ?>
  23. </span>
  24. <?php endif; ?>
  25. </div><!-- .entry-meta -->
  26. <?php endif; ?>
  27. </header><!-- .entry-header -->
  28. <div class="entry-content">
  29. <img src="<?php echo CFS()->get('artabr_recipe_resultPhoto'); ?>">
  30. <?php echo CFS()->get( 'artabr_recipe_recipeYield' ); ?>
  31. <span class="recipe"><strong itemprop="recipeYield"><?php echo $recipe_yield; ?></strong></span>
  32. <?php echo CFS()->get( 'artabr_recipe_cookTime' ); ?>
  33.  
  34. <?php echo CFS()->get( 'artabr_recipe_coocingMethod' ); ?>
  35. <?php
  36. $fields_art = CFS()->get('artabr_recipe_ing');
  37. echo '<ul>';
  38. foreach ($fields_art as $field_art) {
  39. echo '<li> '. $field_art['artabr_recipe_ing_name'].''.
  40. $field_art['artabr_recipe_ing_count'].'</li>';
  41. }
  42. echo '</ul>';
  43. ?>
  44. <img src="<?php echo CFS()->get('artabr_recipe_ing_foto'); ?>">
  45. <?php
  46. $fields_rec= CFS()->get('artabr_stepbystep');
  47. echo '<ul>';
  48. foreach ($fields_rec as $field_rec) {
  49. echo '<li> '. $field_rec['artabr_text_step'].''.
  50. <img src="<?php echo CFS()->get('artabr_photo_step'); ?>">.'</li>';
  51. }
  52. echo '</ul>';
  53. ?>
  54. <?php the_content(); ?>
  55. <?php wp_link_pages( array(
  56. 'before' => '<div class="page-link"><span class="pages">' . __( 'Pages:', 'catch-box' ) . '</span>',
  57. 'after' => '</div>',
  58. 'link_before' => '<span>',
  59. 'link_after' => '</span>',
  60. ) );
  61. ?>
  62. </div><!-- .entry-content -->
  63.  
  64. <footer class="entry-meta">
  65. <?php
  66. /* translators: used between list items, there is a space after the comma */
  67. $categories_list = get_the_category_list( __( ', ', 'catch-box' ) );
  68.  
  69. /* translators: used between list items, there is a space after the comma */
  70. $tag_list = get_the_tag_list( '', __( ', ', 'catch-box' ) );
  71. if ( '' != $tag_list ) {
  72. $utility_text = __( 'This entry was posted in %1$s and tagged %2$s by <a href="%6$s">%5$s</a>. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'catch-box' );
  73. } elseif ( '' != $categories_list ) {
  74. $utility_text = __( 'This entry was posted in %1$s by <a href="%6$s">%5$s</a>. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'catch-box' );
  75. } else {
  76. $utility_text = __( 'This entry was posted by <a href="%6$s">%5$s</a>. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'catch-box' );
  77. }
  78.  
  79. printf(
  80. $utility_text,
  81. $categories_list,
  82. $tag_list,
  83. esc_url( get_permalink() ),
  84. the_title_attribute( 'echo=0' ),
  85. get_the_author(),
  86. esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) )
  87. );
  88. ?>
  89. <?php edit_post_link( __( 'Edit', 'catch-box' ), '<span class="edit-link">', '</span>' ); ?>
  90.  
  91.  
  92. </footer><!-- .entry-meta -->
  93. </article><!-- #post-<?php the_ID(); ?> -->
  94.  
  95. <?php if ( get_the_author_meta( 'description' ) && ( ! function_exists( 'is_multi_author' ) || is_multi_author() ) ) : // If a user has filled out their description and this is a multi-author blog, show a bio on their entries ?>
  96. <div id="author-info">
  97. <div id="author-avatar">
  98. <?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'catchbox_author_bio_avatar_size', 68 ) ); ?>
  99. </div><!-- #author-avatar -->
  100. <div id="author-description">
  101. <h2><?php printf( __( 'About %s', 'catch-box' ), get_the_author() ); ?></h2>
  102. <?php the_author_meta( 'description' ); ?>
  103. <div id="author-link">
  104. <a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author">
  105. <?php printf( __( 'View all posts by %s <span class="meta-nav">&rarr;</span>', 'catch-box' ), get_the_author() ); ?>
  106. </a>
  107. </div><!-- #author-link -->
  108. </div><!-- #author-description -->
  109. </div><!-- #entry-author-info -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement