content-single.blade.php 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <article @php(post_class('h-entry'))>
  2. <header>
  3. <h1 class="p-name">
  4. {!! $title !!}
  5. </h1>
  6. @include('partials.entry-meta')
  7. </header>
  8. <div class="e-content">
  9. @php(the_content())
  10. <?php
  11. $minutage = get_post_meta(get_the_ID(), 'Minutage', true);
  12. $images = get_post_meta(get_the_ID(), 'Images', true);
  13. $bandeSon = get_post_meta(get_the_ID(), 'BandeSon', true);
  14. $voixOffIn = get_post_meta(get_the_ID(), 'VoixOffIn', true);
  15. $ecrits = get_post_meta(get_the_ID(), 'Ecrits', true);
  16. $listeChamps = [
  17. [
  18. 'titre' => 'Minutage',
  19. 'contenu' => $minutage,
  20. ],
  21. [
  22. 'titre' => 'Images',
  23. 'contenu' =>$images,
  24. ],
  25. [
  26. 'titre' => 'Bande Son',
  27. 'contenu' => $bandeSon,
  28. ],
  29. [
  30. 'titre' => 'Voix In et Off',
  31. 'contenu' => $voixOffIn,
  32. ],
  33. [
  34. 'titre' => 'Ecrits',
  35. 'contenu' => $ecrits,
  36. ]
  37. ];
  38. ?>
  39. <table style="border-collapse: collapse;">
  40. <tbody>
  41. @foreach($listeChamps as $champ)
  42. <tr>
  43. <th style="border: 1px solid black; padding: 5px;">{{ $champ['titre'] }}</th>
  44. <td style="border: 1px solid black; padding: 5px;">{{ $champ['contenu'] }}</td>
  45. </tr>
  46. @endforeach
  47. </tbody>
  48. </table>
  49. </div>
  50. <footer>
  51. {!! wp_link_pages(['echo' => 0, 'before' => '<nav class="page-nav"><p>' . __('Pages:', 'sage'), 'after' => '</p></nav>']) !!}
  52. </footer>
  53. @php(comments_template())
  54. </article>