<?php

namespace Fab\Controller;

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

use Fab\Metabox\FABMetaboxSetting;
use Fab\Interfaces\JIT_Interface;
use Fab\Helper\FABModal;

/**
 * Social Sharing.
 *
 * @package    Fab
 * @subpackage Fab/Module
 */
class Social_Sharing_Type extends Modal_Popup_Group implements JIT_Interface {

    /**
     * Post meta.
     *
     * @var array
     */
    public $post_meta = array(
        'social_media' => array(
            'meta_key' => 'fab_setting_social_media',
        ),
    );

    /**
     * Constructor.
     */
    public function __construct() {
        parent::__construct();
        $this->type = 'social_sharing';
    }

    /**
     * Get labels type.
     *
     * @return array
     */
    public function get_labels_type() {
        return array(
            'name' => __( 'Social Sharing', 'floating-awesome-button' ),
        );
    }

    /*
    |--------------------------------------------------------------------------
    | Fulfill implemented interface contracts
    |--------------------------------------------------------------------------
     */

    /**
     * JIT Method.
     *
     * @return void
     */
    public static function jit() {
        // Add group type.
        add_filter( 'fab_types_group_modal', array( __CLASS__, 'jit_add_fab_types_group' ), 10, 1 );

        // Add fab setting types.
        add_filter( 'fab_setting_types', array( __CLASS__, 'jit_add_fab_setting_types' ), 10, 1 );
    }
}
