<?php

namespace Fab\Helper;

// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
    exit;
}

/**
 * FAB Helper Metabox
 *
 * @package    Fab
 * @subpackage Fab/Helper
 */
class Metabox {

    // Load Traits.
    use \Fab\Plugin\Helper\Singleton;

    /**
     * Get metabox labels
     *
     * @return array
     */
    public function get_metabox_labels() {
        return array(
            'loading'                => __( 'Loading...', 'floating-awesome-button' ),
            'templates'              => __( 'Templates', 'floating-awesome-button' ),
            'recommendations'        => __( 'Recommendations', 'floating-awesome-button' ),
            'introduction'           => __( '<b>Floating Awesome Button (FAB)</b> helps you boost WooCommerce sales with eye-catching floating buttons that stay visible as customers browse. Create compelling calls-to-action, highlight special offers, and drive conversions with strategically placed buttons that guide customers through their shopping journey!', 'floating-awesome-button' ),
            'add_new'                => __( 'Add New', 'floating-awesome-button' ),
            'learn_more'             => __( 'Learn More', 'floating-awesome-button' ),
            'next'                   => __( 'Next', 'floating-awesome-button' ),
            'previous'               => __( 'Previous', 'floating-awesome-button' ),
            'no_results'             => __( 'No templates found matching your search.', 'floating-awesome-button' ),
            'upgrade'                => __( 'Required Upgrade', 'floating-awesome-button' ),
            'explore_more_templates' => __( 'Explore More Templates', 'floating-awesome-button' ),
            'read_more'              => __( 'Read More', 'floating-awesome-button' ),
            'missing_data'           => array(
                'title'   => __( 'Missing Data', 'floating-awesome-button' ),
                'tooltip' => __( 'Free users can only see up to 7 days of data. Upgrade Now!', 'floating-awesome-button' ),
            ),
            'months'                 => array(
                'jan' => __( 'Jan', 'floating-awesome-button' ),
                'feb' => __( 'Feb', 'floating-awesome-button' ),
                'mar' => __( 'Mar', 'floating-awesome-button' ),
                'apr' => __( 'Apr', 'floating-awesome-button' ),
                'may' => __( 'May', 'floating-awesome-button' ),
                'jun' => __( 'Jun', 'floating-awesome-button' ),
                'jul' => __( 'Jul', 'floating-awesome-button' ),
                'aug' => __( 'Aug', 'floating-awesome-button' ),
                'sep' => __( 'Sep', 'floating-awesome-button' ),
                'oct' => __( 'Oct', 'floating-awesome-button' ),
                'nov' => __( 'Nov', 'floating-awesome-button' ),
                'dec' => __( 'Dec', 'floating-awesome-button' ),
            ),
            'threshold'              => array(
                '0_10'       => array(
                    'label' => __( '0 - 10', 'floating-awesome-button' ),
                    'color' => 'rgba(79, 70, 229, .25)',
                    'min'   => 0,
                    'max'   => 10,
                ),
                '11_100'     => array(
                    'label' => __( '11 - 100', 'floating-awesome-button' ),
                    'color' => 'rgba(79, 70, 229, .50)',
                    'min'   => 11,
                    'max'   => 100,
                ),
                '101_1000'   => array(
                    'label' => __( '101 - 1000', 'floating-awesome-button' ),
                    'color' => 'rgba(79, 70, 229, .75)',
                    'min'   => 101,
                    'max'   => 1000,
                ),
                '1001_10000' => array(
                    'label' => __( '1001 - 10000', 'floating-awesome-button' ),
                    'color' => 'rgba(79, 70, 229, 1)',
                    'min'   => 1001,
                    'max'   => 10000,
                ),
            ),
        );
    }
}
