%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/c/a/s/casasmonvl/newges4t/wp-content/plugins/chaty/views/
Upload File :
Create Path :
Current File : /home/c/a/s/casasmonvl/newges4t/wp-content/plugins/chaty/views/widget.php

<?php
$social = $this->int_arr();
$cht_active = get_option("cht_active");
$bg_color = $this->get_current_color();?>
<?php $len = count($this->int_arr());?>
<?php $cta = $this->getCallToAction();
?>

<?php

$current_count = get_option("chaty_total_channel_click");
if($current_count === false || empty($current_count)) {
    $current_count = 0;
}
$current_count = intval($current_count);
$save_user_clicks = ($current_count < 35)?"1":"0";

$positionSide = get_option('positionSide');
$cht_bottom_spacing = get_option('cht_bottom_spacing');
$cht_side_spacing = get_option('cht_side_spacing');
$cht_widget_size = get_option('cht_widget_size');
$cta = str_replace("'","&#39;",$cta);
$cta = str_replace('"',"&#34;",$cta);
$font_family = get_option('cht_widget_font');

$settings = array();
$settings['isPRO'] = 0;
$settings['position'] = get_option('cht_position');
$settings['social'] = $this->int_arr();
$settings['pos_side'] = empty($positionSide) ? 'right' : $positionSide;
$settings['bot'] = ($cht_bottom_spacing) ? $cht_bottom_spacing : '25';
$settings['side'] = ($cht_side_spacing) ? $cht_side_spacing : '25';
$settings['device'] = $this->device();
$settings['color'] = ($bg_color) ? $bg_color : '#A886CD';;
$settings['widget_size'] = ($cht_widget_size) ? $cht_widget_size: '54';
$settings['widget_type'] = get_option('widget_icon');
$settings['widget_img'] = $this->getCustomWidgetImg();
$settings['cta'] = wp_slash($cta);
$settings['link_active'] = get_option('cht_credit');
$settings['save_user_clicks'] = $save_user_clicks;
$settings['isMobile'] = (wp_is_mobile())?"1":"0";
$settings['is_mobile'] = (wp_is_mobile())?"1":"0";
$settings['ajax_url'] = admin_url('admin-ajax.php');
$settings['active'] = ($cht_active && $len > 0 && $len < 3) ? "true" : "false";
$data = array();
$data['object_settings'] = $settings;
if($len > 0 && $len < 3) {
    ob_start()
    ?>
    <style>
    .chaty-widget-is a{display: block; margin:0; padding:0; }
    .chaty-widget-is svg{margin:0; padding:0;}
    .chaty-widget.one_widget .chaty-get-btn {padding-top: 5px;}
    .chaty-main-widget { display: none; }
    .chaty-in-desktop .chaty-main-widget.is-in-desktop { display: block; }
    .chaty-in-mobile .chaty-main-widget.is-in-mobile { display: block; }
    .chaty-widget.hide-widget { display: none !important; }
    <?php if(!empty($font_family)) { ?>
    .chaty-widget { font-family: <?php echo esc_attr($font_family) ?>; }
    <?php } ?>
    </style>
    <?php
    echo ob_get_clean();
    if(!empty($font_family)) {
        wp_enqueue_style( 'custom-google-fonts', 'https://fonts.googleapis.com/css?family='.urlencode($font_family), false );
    }
    wp_enqueue_script("chaty-front-end", CHT_PLUGIN_URL."assets/js/cht-front-script.js", array('jquery'), CHT_VERSION);
    wp_localize_script('chaty-front-end', 'chaty_settings',  $data);
    ?>
<?php
}
?>

Zerion Mini Shell 1.0