<?php

$bakery_buttons = laniakea_bakery_btn_colors();

?>

<div class="field-group">
    <div class="color-inputs">
        <?php foreach ($bakery_buttons as $button) :
            $button_value = laniakea_option('bakery_btn_color_' . $button['value']);
        ?>
            <div class="color-item">
                <label>
                    <?php echo $button['label']; ?>
                    <?php if (!empty($button_value) && $button_value !=  $button['default']) : ?>
                        &nbsp;<i class="fa fa-pen" style="color:red"></i>
                    <?php endif ?>
                </label>
                <?php laniakea_input_color_default('bakery_btn_color_' . $button['value'], $button['default']); ?>

            </div>
        <?php endforeach; ?>
    </div>

</div>
<h3>Hover</h3>
<div class="field-group">
    <h4>Colore sfondo</h4>
    <?php laniakea_input_color_default('bakery_btn_hover_bg', laniakea_option('primary_color', '#333')); ?>
</div>
<div class="field-group">
    <h4>Colore testo</h4>
    <?php laniakea_input_color_default('bakery_btn_hover_color', '#efefef'); ?>
</div>