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/f/r/e/frenchy/www/_trash/wp-content/themes/biig/functions/acf-fields/personne.fields.php
<?php

if( function_exists('acf_add_local_field_group') ):

  acf_add_local_field_group(array(
    'key' => 'PersonneFields',
    'title' => 'Personne',
    'fields' => array(
      array(
        'key' => 'nom_personne_key',
        'label' => 'Nom',
        'name' => 'nom_personne',
        'type' => 'text',
        'required' => 1
      ),
      array(
        'key' => 'prenom_personne_key',
        'label' => 'Prénom',
        'name' => 'prenom_personne',
        'type' => 'text',
        'required' => 1
      ),
      array(
        'key' => 'fonction_personne_key',
        'label' => 'Rôle dans la fondation',
        'name' => 'fonction_personne',
        'type' => 'text',
        'required' => 1
      ),
      array(
        'key' => 'activite_pro_personne_key',
        'label' => 'Activité professionnelle',
        'name' => 'activite_pro_personne',
        'type' => 'text'
      ),
      array(
        'key' => 'photo_personne_key',
        'label' => 'Photo',
        'name' => 'photo_personne',
        'type' => 'image',
        'required' => 0,
        'return_format' => 'array',
        'preview_size' => 'medium'
      ),
    ),
    'location' => array(
      array(
        array(
          'param' => 'post_type',
          'operator' => '==',
          'value' => 'personne',
        ),
      ),
    )
  ));

  endif;