| Current Path : /home/krobertfnz/www/wp-content/plugins/social-rocket/includes/networks/ |
| Current File : /home/krobertfnz/www/wp-content/plugins/social-rocket/includes/networks/class-social-rocket-mix.php |
<?php
// Exit if accessed directly
if ( ! defined('ABSPATH') ) { exit; }
class Social_Rocket_Mix {
public $configurable_settings;
public $color;
public $color_hover;
public $color_bg;
public $color_bg_hover;
public $color_border;
public $color_border_hover;
public $cta;
public $key;
public $icon_class;
public $share_url;
protected static $instance = null;
public static function get_instance() {
if ( null === self::$instance ) {
self::$instance = new self();
}
return self::$instance;
}
public function __construct() {
$this->color = '#ffffff';
$this->color_hover = '#ffffff';
$this->color_bg = '#ff8226';
$this->color_bg_hover = '#ff6a00';
$this->color_border = '#ff6a00';
$this->color_border_hover = '#cc5500';
$this->cta = __( 'Share', 'social-rocket' );
$this->key = 'mix';
$this->icon_class = 'fab fa-mix';
$this->share_url = 'https://mix.com/mixit?url=%url%';
$this->configurable_settings = array(
'cta' => array(
'title' => __( 'Button Text', 'social-rocket' ),
'default' => $this->cta,
),
'icon_class' => array(
'title' => __( 'Icon CSS Class', 'social-rocket' ),
'default' => $this->icon_class,
),
'color' => array(
'title' => __( 'Icon Color', 'social-rocket' ),
'default' => $this->color,
'type' => 'colorpicker',
),
'color_hover' => array(
'title' => __( 'Icon Hover Color', 'social-rocket' ),
'default' => $this->color_hover,
'type' => 'colorpicker',
),
'color_bg' => array(
'title' => __( 'Background Color', 'social-rocket' ),
'default' => $this->color_bg,
'type' => 'colorpicker',
),
'color_bg_hover' => array(
'title' => __( 'Background Hover Color', 'social-rocket' ),
'default' => $this->color_bg_hover,
'type' => 'colorpicker',
),
'color_border' => array(
'title' => __( 'Border Color', 'social-rocket' ),
'default' => $this->color_border,
'type' => 'colorpicker',
),
'color_border_hover' => array(
'title' => __( 'Border Hover Color', 'social-rocket' ),
'default' => $this->color_border_hover,
'type' => 'colorpicker',
),
);
do_action( 'social_rocket_' . $this->key, $this );
}
}