HEX
Server: Apache
System: Linux webd004.cluster130.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
User: frenchy (106757)
PHP: 7.4.33
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/frenchy/www/french-american.org/current/app/functions/acf-fields/block-event.fields.php
<?php
if( function_exists('acf_add_local_field_group') ):

  acf_add_local_field_group(array(
    'key' => 'blockEventFields',
    'title' => 'Événement',
    'fields' => array(
      array(
        'key' => 'title_event_key',
        'label' => 'Titre de l\'événement',
        'name' => 'title_event',
        'type' => 'text',
      ),
      array(
        'key' => 'desc_event_key',
        'label' => 'Description de l\'événement',
        'name' => 'desc_event',
        'type' => 'textarea',
        'new_lines' => 'br',
      ),
      array(
        'key' => 'link_event_key',
        'label' => 'Lien',
        'name' => 'link_event',
        'type' => 'link',
      ),
    ),
    'location' => array(
      array(
        array(
          'param' => 'block',
          'operator' => '==',
          'value' => 'acf/event',
        ),
      ),
    )
  ));

  endif;