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/french-american.org/repo/app/functions/acf-fields/block-button.fields.php
<?php
if (function_exists('acf_add_local_field_group')) :

  acf_add_local_field_group(array(
    'key' => 'blockButtonFields',
    'title' => '[ACF BLOCK] Bouton',
    'fields' => array(
      array(
        'key' => 'text_button_key',
        'label' => 'Texte du bouton',
        'name' => 'text_button',
        'type' => 'text',
      ),
      array(
        'key' => 'link_button_key',
        'label' => 'Lien',
        'name' => 'link_button',
        'type' => 'link',
      ),
      array(
        'key' => 'style_button_key',
        'label' => 'Style',
        'name' => 'style_button',
        'type' => 'select',
        'choices' => array(
          'btn--primary' => 'Bouton primaire (fond bleu)',
          'btn--secondary' => 'Bouton secondaire (fond rouge)',
          'btn--tertiary' => 'Bouton tertiaire (fond blanc)',
        ),
      ),
    ),
    'location' => array(
      array(
        array(
          'param' => 'block',
          'operator' => '==',
          'value' => 'acf/button',
        ),
      ),
    ),
  ));

endif;