index.blade.php 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. @extends('layouts.app')
  2. @section('content')
  3. <div class="fixed left-0 top-48 h-2/3 w-8 flex flex-col-reverse" id="timeline_container"></div>
  4. <svg class="fixed left-0 top-48 h-4 -mt-1 w-10 fill-jlg-white cursor-grab active:cursor-grabbing" id="cursor">
  5. <polygon points="32,4 32,6 40,10 40,0" />
  6. <rect width="32" height="2" y="4" />
  7. </svg>
  8. <table class="w-full bg-jlg-dark-blue flex justify-center">
  9. <thead>
  10. <tr class="border-jlg-white border-b h-64 top-0 w-full lg:w-2/3 fixed flex items-stretch justify-around text-left lg:text-xl uppercase bg-jlg-dark-blue">
  11. <th class="flex items-end justify-start"></th>
  12. <th class="flex items-end justify-start pb-4">Images</th>
  13. <th class="flex items-end justify-start pb-4">Voix Off et In</th>
  14. <th class="flex items-end justify-start pb-4">Bande Son</th>
  15. <th class="flex items-end justify-start pb-4">Écrits</th>
  16. </tr>
  17. </thead>
  18. <tbody class="w-full mb-48 lg:w-2/3 block bg-jlg-dark-blue">
  19. <?php
  20. $args = array(
  21. 'post_type' => 'post',
  22. 'posts_per_page' => -1,
  23. 'meta_key' => 'Index',
  24. 'meta_type' => 'NUMERIC',
  25. 'orderby' => 'meta_value',
  26. 'order' => 'ASC'
  27. );
  28. $query = new WP_Query($args);
  29. if ($query->have_posts()) :
  30. while ($query->have_posts()) : $query->the_post();
  31. if (get_post_meta(get_the_ID(), 'Minutage', true)) : ?>
  32. <tr class="border-jlg-white border-b font-authentic-60 w-full flex flex-row py-6 isContentPart">
  33. <td class="block text-sm pl-0 pr-6">{{ get_post_meta(get_the_ID(), 'Minutage', true) }}</td>
  34. <td class="block pl-0 pr-6">{{ get_post_meta(get_the_ID(), 'Images', true) }}</td>
  35. <td class="block pl-0 pr-6">{{ get_post_meta(get_the_ID(), 'VoixOffIn', true) }}</td>
  36. <td class="block pl-0 pr-6">{{ get_post_meta(get_the_ID(), 'BandeSon', true) }}</td>
  37. <td class="block pl-0 pr-6">{{ get_post_meta(get_the_ID(), 'Ecrits', true) }}</td>
  38. </tr>
  39. <?php elseif (get_post_meta(get_the_ID(), 'isMainPart', true)) : ?>
  40. <tr class="border-jlg-white border-b font-authentic-90 uppercase w-full flex flex-row py-6 isMainPart">
  41. <td class="pl-0 flex">
  42. <div class="w-2 h-5 bg-jlg-white mr-3"></div>
  43. <div>{{ get_post_meta(get_the_ID(), 'isMainPart', true) }}</div>
  44. </td>
  45. </tr>
  46. <? elseif (get_post_meta(get_the_ID(), 'isSubPart', true)) : ?>
  47. <tr class="border-jlg-white border-b font-authentic-60 w-full flex flex-row py-6 isSubPart">
  48. <td class="pl-0 flex">
  49. <div class="w-2 h-5 bg-jlg-white mr-3"></div>
  50. <div>{{ get_post_meta(get_the_ID(), 'isSubPart', true) }}</div>
  51. </td>
  52. </tr>
  53. <?php endif; ?>
  54. <?php
  55. endwhile;
  56. endif;
  57. wp_reset_postdata();
  58. ?>
  59. </tbody>
  60. </table>
  61. @if (! have_posts())
  62. <x-alert type="warning">
  63. {!! __('Sorry, no results were found.', 'sage') !!}
  64. </x-alert>
  65. {!! get_search_form(false) !!}
  66. @endif
  67. @endsection