HEX
Server: Apache
System: Linux webm013.cluster123.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: lesanew (165608)
PHP: 8.3.31
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/lesanew/anestetues2/web/app/cache/acorn/framework/views/c766541b11d9f5ed413d807bef0aab6e.php
<?php
  // mode possible : 'featured' (par défaut), 'day', 'all'
  $mode = $mode ?? 'featured';
  $day = $day ?? null;

  $query_args = [
    'post_type' => 'lineup',
    'posts_per_page' => -1,
  ];

  if ($mode === 'featured') {
    $query_args['meta_query'] = [
      [
        'key' => 'mise_en_avant',
        'value' => 1,
        'compare' => '=',
      ],
    ];
  } elseif ($mode === 'day' && ! empty($day)) {
    // ACF checkbox : on cherche les artistes qui ont cette date cochée
    $query_args['meta_query'] = [
      [
        'key' => 'lineup_dates',
        'value' => $day,
        'compare' => 'LIKE',
      ],
    ];
  }

  $artistes = new WP_Query($query_args);
?>

<?php $__env->startPush('vite-head'); ?>
  <?php echo app('Illuminate\Foundation\Vite')(['resources/css/components/_line-up.scss']); ?>
<?php $__env->stopPush(); ?>

<?php if($artistes->have_posts()): ?>
  <div class="line-up__artistes">
    <?php while($artistes->have_posts()): ?>
      <?php ($artistes->the_post()); ?>
      <?php ($photo = get_field('photo')); ?>
      <?php ($lineup_dates = get_field('lineup_dates')); ?>
      <article class="line-up__artiste">
        <h3 class="text-light"><?php echo e(get_field('nom')); ?></h3>

        <?php if($mode === 'featured' && ! empty($lineup_dates)): ?>
          <?php ($formatted_dates = implode(', ', array_map(fn ($d) => date('d/m/Y', strtotime($d)), (array) $lineup_dates))); ?>
          <p class="line-up__artiste-dates text-primary"><?php echo e($formatted_dates); ?></p>
        <?php endif; ?>

        <?php if($photo): ?>
          <img
            class="wave-img"
            src="<?php echo e($photo['url']); ?>"
            alt="<?php echo e($photo['alt'] ?? get_field('nom')); ?>"
          />
        <?php endif; ?>
      </article>
    <?php endwhile; ?>
  </div>
  <?php (wp_reset_postdata()); ?>
<?php endif; ?>
<?php /**PATH /home/gaetan/www/les-anes-tetus-2.0/web/app/themes/anes-tetues/resources/views/components/lineup-featured.blade.php ENDPATH**/ ?>