Because you didn’t listen
The code I pasted last replaces the WHOLE code from your paste. You are not learning. You are expecting someone else to just fix someone else plugin.
We have given the documentation, which covers the solution on how to repair the code.
This is neither a Wordpress or PHP support forum, which was why we linked to the documentation to start with.
<?php
/*
Plugin Name: Stream Status for Twitch
Plugin URI: http://bonfirethemes.com/
Description: Setup and customize under Appearance → Customize → Stream Status for Twitch Plugin
Version: 1.4a
Author: Bonfire Themes
Author URI: http://bonfirethemes.com/
Text Domain: stream-status-for-twitch
Domain Path: /languages
License: GPL2
*/
//
// WORDPRESS LIVE CUSTOMIZER
//
function bonfire_sst_theme_customizer( $wp_customize ) {
//
// ADD "Stream Status for Twitch Plugin" PANEL TO LIVE CUSTOMIZER
//
$wp_customize->add_panel('sst_panel', array('title' => __('Stream Status for Twitch Plugin','stream-status-for-twitch'),'priority' => 10,));
//
// ADD "Main Settings" SECTION TO "Stream Status for Twitch Plugin" PANEL
//
$wp_customize->add_section('sst_main_section',array('title' => __( 'Main Settings','stream-status-for-twitch' ),'panel' => 'sst_panel','priority' => 1));
/* channel name */
$wp_customize->add_setting('sst_channel_name',array('default' => '','sanitize_callback' => 'sanitize_sst_channel_name',));
function sanitize_sst_channel_name($input) {return wp_kses_post(force_balance_tags($input));}
$wp_customize->add_control('sst_channel_name',array('type' => 'text','label' => __('Channel name','stream-status-for-twitch'),'description' => __('Enter your Twitch channel name in order to display stream status.','stream-status-for-twitch'),'section' => 'sst_main_section',));
/* custom url */
$wp_customize->add_setting('sst_channel_url',array('default' => '','sanitize_callback' => 'sanitize_sst_channel_url',));
function sanitize_sst_channel_url($input) {return wp_kses_post(force_balance_tags($input));}
$wp_customize->add_control('sst_channel_url',array('type' => 'text','label' => __('Channel URL','stream-status-for-twitch'),'description' => __('Enter your Stream URL (optional).','stream-status-for-twitch'),'section' => 'sst_main_section',));
/* hide if feed offline */
$wp_customize->add_setting('sst_offline_hide',array('sanitize_callback' => 'sanitize_sst_offline_hide',));
function sanitize_sst_offline_hide( $input ) { if ( $input == 1 ) { return 1; } else { return ''; } }
$wp_customize->add_control('sst_offline_hide',array('type' => 'checkbox','label' => __('Hide when offline','stream-status-for-twitch'), 'description' => __('If checked, the stream status will be shown only when channel is actively streaming.','stream-status-for-twitch'), 'section' => 'sst_main_section',));
/* open in new window */
$wp_customize->add_setting('sst_new_window',array('sanitize_callback' => 'sanitize_sst_new_window',));
function sanitize_sst_new_window( $input ) { if ( $input == 1 ) { return 1; } else { return ''; } }
$wp_customize->add_control('sst_new_window',array('type' => 'checkbox','label' => __('Open in new window','stream-status-for-twitch'),'description' => __('If unchecked, Twitch will open in the same window.','stream-status-for-twitch'), 'section' => 'sst_main_section',));
/* live text */
$wp_customize->add_setting('sst_live_text',array('default' => '','sanitize_callback' => 'sanitize_sst_live_text',));
function sanitize_sst_live_text($input) {return wp_kses_post(force_balance_tags($input));}
$wp_customize->add_control('sst_live_text',array('type' => 'text','label' => __('Status text if stream is live','stream-status-for-twitch'),'description' => __('If empty, defaults to "LIVE NOW! CLICK TO VIEW."','stream-status-for-twitch'),'section' => 'sst_main_section',));
/* offline text */
$wp_customize->add_setting('sst_offline_text',array('default' => '','sanitize_callback' => 'sanitize_sst_offline_text',));
function sanitize_sst_offline_text($input) {return wp_kses_post(force_balance_tags($input));}
$wp_customize->add_control('sst_offline_text',array('type' => 'text','label' => __('Status text if stream is offline','stream-status-for-twitch'),'description' => __('If empty, defaults to "CURRENTLY OFFLINE".','stream-status-for-twitch'),'section' => 'sst_main_section',));
//
// ADD "Positioning" SECTION TO "Stream Status for Twitch" PANEL
//
$wp_customize->add_section('sst_positioning_section',array('title' => __( 'Positioning','stream-status-for-twitch' ),'panel' => 'sst_panel','priority' => 2));
/* absolute position */
$wp_customize->add_setting('sst_absolute_position',array('sanitize_callback' => 'sanitize_sst_absolute_position',));
function sanitize_sst_absolute_position( $input ) { if ( $input == 1 ) { return 1; } else { return ''; } }
$wp_customize->add_control('sst_absolute_position',array('type' => 'checkbox','label' => __('Absolute positioning','stream-status-for-twitch'),'description' => __('If unchecked, fixed positioning is applied.','stream-status-for-twitch'), 'section' => 'sst_positioning_section',));
/* vertical placemenet */
$wp_customize->add_setting('sst_placement',array(
'default' => 'top',
));
$wp_customize->add_control('sst_placement',array(
'type' => 'select',
'label' => __('Vertical placement','stream-status-for-twitch'),
'section' => 'sst_positioning_section',
'choices' => array(
'top' => __('Top','stream-status-for-twitch'),
'bottom' => __('Bottom','stream-status-for-twitch'),
),
));
/* horizontal placemenet */
$wp_customize->add_setting('sst_placement_horizontal',array(
'default' => 'left',
));
$wp_customize->add_control('sst_placement_horizontal',array(
'type' => 'select',
'label' => __('Horizontal placement','stream-status-for-twitch'),
'section' => 'sst_positioning_section',
'choices' => array(
'left' => __('Left','stream-status-for-twitch'),
'right' => __('Right','stream-status-for-twitch'),
),
));
/* top/bottom distance */
$wp_customize->add_setting('sst_vertical_distance',array('default' => '','sanitize_callback' => 'sanitize_sst_vertical_distance',));
function sanitize_sst_vertical_distance($input) {return wp_kses_post(force_balance_tags($input));}
$wp_customize->add_control('sst_vertical_distance',array('type' => 'text','label' => __('Top/bottom distance (in pixels)','stream-status-for-twitch'),'description' => __('Example: 50 (if empty, defaults to 25).','stream-status-for-twitch'),'section' => 'sst_positioning_section',));
/* left distance */
$wp_customize->add_setting('sst_horizontal_distance',array('default' => '','sanitize_callback' => 'sanitize_sst_horizontal_distance',));
function sanitize_sst_horizontal_distance($input) {return wp_kses_post(force_balance_tags($input));}
$wp_customize->add_control('sst_horizontal_distance',array('type' => 'text','label' => __('Left/right distance (in pixels)','stream-status-for-twitch'),'description' => __('Example: 50 (if empty, defaults to 25).','stream-status-for-twitch'),'section' => 'sst_positioning_section',));
//
// ADD "Customization" SECTION TO "Stream Status for Twitch" PANEL
//
$wp_customize->add_section('sst_customization_section',array('title' => __( 'Customization','stream-status-for-twitch' ),'panel' => 'sst_panel','priority' => 3));
/* background color */
$wp_customize->add_setting('sst_background_color',array('sanitize_callback'=>'sanitize_hex_color'));
$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize,'sst_background_color',array(
'label'=>__('Background','stream-status-for-twitch'),'settings'=>'sst_background_color','section'=>'sst_customization_section')
));
/* status text color */
$wp_customize->add_setting('sst_status_text_color',array('sanitize_callback'=>'sanitize_hex_color'));
$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize,'sst_status_text_color',array(
'label'=>__('Status text','stream-status-for-twitch'),'settings'=>'sst_status_text_color','section'=>'sst_customization_section')
));
/* status text hover color */
$wp_customize->add_setting('sst_status_text_hover_color',array('sanitize_callback'=>'sanitize_hex_color'));
$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize,'sst_status_text_hover_color',array(
'label'=>__('Status text (hover)','stream-status-for-twitch'),'settings'=>'sst_status_text_hover_color','section'=>'sst_customization_section')
));
/* Twitch icon color */
$wp_customize->add_setting('sst_twitch_icon_color',array('sanitize_callback'=>'sanitize_hex_color'));
$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize,'sst_twitch_icon_color',array(
'label'=>__('Twitch icon','stream-status-for-twitch'),'settings'=>'sst_twitch_icon_color','section'=>'sst_customization_section')
));
/* Twitch icon background color */
$wp_customize->add_setting('sst_twitch_icon_background_color',array('sanitize_callback'=>'sanitize_hex_color'));
$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize,'sst_twitch_icon_background_color',array(
'label'=>__('Twitch icon background','stream-status-for-twitch'),'settings'=>'sst_twitch_icon_background_color','section'=>'sst_customization_section')
));
/* rounded corners */
$wp_customize->add_setting('sst_rounded_corners',array('default' => '','sanitize_callback' => 'sanitize_sst_rounded_corners',));
function sanitize_sst_rounded_corners($input) {return wp_kses_post(force_balance_tags($input));}
$wp_customize->add_control('sst_rounded_corners',array('type' => 'text','label' => __('Rounded corners (in pixels)','stream-status-for-twitch'),'description' => __('Example: 5 (if empty, defaults to 0).','stream-status-for-twitch'),'section' => 'sst_customization_section',));
/* larger design */
$wp_customize->add_setting('sst_larger_design',array('sanitize_callback' => 'sanitize_sst_larger_design',));
function sanitize_sst_larger_design( $input ) { if ( $input == 1 ) { return 1; } else { return ''; } }
$wp_customize->add_control('sst_larger_design',array('type' => 'checkbox','label' => __('Larger design','stream-status-for-twitch'),'description' => __('When checked, the status indicator will look a bit larger.','stream-status-for-twitch'), 'section' => 'sst_customization_section',));
/* disable status text underline */
$wp_customize->add_setting('sst_no_underline',array('sanitize_callback' => 'sanitize_sst_no_underline',));
function sanitize_sst_no_underline( $input ) { if ( $input == 1 ) { return 1; } else { return ''; } }
$wp_customize->add_control('sst_no_underline',array('type' => 'checkbox','label' => __('Disable status text underline','stream-status-for-twitch'),'description' => __('When checked, status text will not be underlined when hovered.','stream-status-for-twitch'), 'section' => 'sst_customization_section',));
//
// ADD "Misc" SECTION TO "Stream Status for Twitch" PANEL
//
$wp_customize->add_section('sst_misc_section',array('title' => __( 'Misc','stream-status-for-twitch' ),'panel' => 'sst_panel','priority' => 3));
/* disable animation */
$wp_customize->add_setting('sst_disable_animation',array('sanitize_callback' => 'sanitize_sst_disable_animation',));
function sanitize_sst_disable_animation( $input ) { if ( $input == 1 ) { return 1; } else { return ''; } }
$wp_customize->add_control('sst_disable_animation',array('type' => 'checkbox','label' => __('Disable appearance animation','stream-status-for-twitch'), 'section' => 'sst_misc_section',));
/* smaller than */
$wp_customize->add_setting('sst_smaller_than',array('sanitize_callback' => 'sanitize_sst_smaller_than',));
function sanitize_sst_smaller_than($input) {return wp_kses_post(force_balance_tags($input));}
$wp_customize->add_control('sst_smaller_than',array(
'type' => 'text',
'label' => __('Hide at certain width/resolution','stream-status-for-twitch'),
'description' => __('<strong>Example #1:</strong> If you want to show the stream status on desktop only, enter the values as 0 and 500. <br><br> <strong>Example #2:</strong> If you want to show the stream status on mobile only, enter the values as 500 and 5000. <br><br> Feel free to experiment with your own values to get the result that is right for you. If fields are empty, the stream status will be visible at all browser widths and resolutions. <br><br> Hide stream status if browser width or screen resolution (in pixels) is between...','stream-status-for-twitch'),
'section' => 'sst_misc_section',
));
/* larger than */
$wp_customize->add_setting('sst_larger_than',array('sanitize_callback' => 'sanitize_sst_larger_than',));
function sanitize_sst_larger_than($input) {return wp_kses_post(force_balance_tags($input));}
$wp_customize->add_control('sst_larger_than',array(
'type' => 'text',
'description' => __('..and:','stream-status-for-twitch'),
'section' => 'sst_misc_section',
));
//
// ADD "Go Pro!" SECTION TO "Stream Status for Twitch" PANEL
//
$wp_customize->add_section('sst_gopro_section',array('title' => __( 'Go Pro!','stream-status-for-twitch' ), 'panel' => 'sst_panel','priority' => 10));
require_once 'sst_custom_controls.php';
/* custom notice custom contol */
$wp_customize->add_setting('sst_custom_info', array(
'default' => '',
'sanitize_callback' => 'sst_text_sanitization',
));
$wp_customize->add_control(new Info_Custom_Control_sst($wp_customize, 'sst_custom_info', array(
'settings' => 'sst_custom_info',
'section' => 'sst_gopro_section',
)));
//
// ADD "Need a video game theme?" SECTION TO "Stream Status for Twitch" PANEL
//
$wp_customize->add_section('sst_theme_section',array('title' => __( 'Need a video game theme?','stream-status-for-twitch' ), 'panel' => 'sst_panel','priority' => 10));
require_once 'sst_custom_controls.php';
/* custom notice custom contol */
$wp_customize->add_setting('sst_custom_info_theme', array(
'default' => '',
'sanitize_callback' => 'sst_text_sanitization',
));
$wp_customize->add_control(new Info_Custom_Control_sst_theme($wp_customize, 'sst_custom_info_theme', array(
'settings' => 'sst_custom_info_theme',
'section' => 'sst_theme_section',
)));
}
add_action('customize_register', 'bonfire_sst_theme_customizer');
//
// Add stream status to theme
//
function bonfire_sst_header() {
?>
<!-- BEGIN MAIN WRAPPER (show only if Twitch channel name entered) -->
<?php if( get_theme_mod('sst_channel_name') != '') {
$url="https://api.twitch.tv/helix/streams?user_login=".get_theme_mod('sst_channel_name');
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,$url);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
'Client-ID: ls2awgx5gfg9m1q6iopdqb1b7d0y6a'
));
$result=curl_exec($ch);
$array1=json_decode($result, true);
?>
<div class="sst-main-wrapper">
<?php include( plugin_dir_path( __FILE__ ) . 'include.php'); ?>
</div>
<?php } ?>
<!-- END MAIN WRAPPER (show only if Twitch channel name entered) -->
<script>
jQuery('.sst-twitch').each(function () {
var nickname = jQuery(this).data('nickname');
<?php
if ($array1["stream"]==NULL) {
if( get_theme_mod('sst_offline_hide') != '') { ?><?php } else { ?>jQuery('.sst-main-wrapper, .sst-main-widget-wrapper').addClass('sst-main-wrapper-active');<?php } ?>
// animations
jQuery('.sst-status-text-offline').addClass('sst-current-status');
setTimeout(function() {
jQuery('.sst-status-text-offline').addClass('sst-current-status-active');
jQuery('.sst-status-wrapper').addClass('sst-status-wrapper-active');
}, 25);
<?php
} else {
?>
// show if online
jQuery('.sst-main-wrapper, .sst-main-widget-wrapper').addClass('sst-main-wrapper-active');
// animations
jQuery('.sst-status-text-live').addClass('sst-current-status');
setTimeout(function() {
jQuery('.sst-status-text-live').addClass('sst-current-status-active');
jQuery('.sst-status-wrapper').addClass('sst-status-wrapper-active');
}, 25);
<?php
}
?>
});
</script>
<?php
}
add_action('wp_footer','bonfire_sst_header');
//
// Add 'Settings' link to plugin page
//
add_filter( 'plugin_action_links_' . plugin_basename(__FILE__), 'add_sst_action_links' );
function add_sst_action_links ( $links ) {
$mylinks = array(
'<a href="' . admin_url( 'customize.php?autofocus[panel]=sst_panel' ) . '">Settings</a>',
'<a href="https://codecanyon.net/item/twitch-status-for-wordpress/21844114?ref=BonfireThemes" target="_blank" style="color:red;">Go Pro!</a>',
);
return array_merge( $links, $mylinks );
}
//
// ENQUEUE stream-status-for-twitch.css
//
function bonfire_sst_css() {
wp_register_style( 'bonfire-stream-status-for-twitch-css', plugins_url( '/stream-status-for-twitch.css', __FILE__ ) . '', array(), '1', 'all' );
wp_enqueue_style( 'bonfire-stream-status-for-twitch-css' );
}
add_action( 'wp_enqueue_scripts', 'bonfire_sst_css' );
//
// ENQUEUE Google WebFonts
//
function bonfire_sst_fonts_url() {
$font_url = '';
if ( 'off' !== _x( 'on', 'Google font: on or off', 'stream-status-for-twitch' ) ) {
$font_url = add_query_arg( 'family', urlencode( 'Roboto:500' ), "//fonts.googleapis.com/css" );
}
return $font_url;
}
function bonfire_sst_scripts() {
wp_enqueue_style( 'stream-status-for-twitch-fonts', bonfire_sst_fonts_url(), array(), '1.0.0' );
}
add_action( 'wp_enqueue_scripts', 'bonfire_sst_scripts' );
//
// Translation-ready
//
function sst_load_plugin_textdomain() {
load_plugin_textdomain( 'stream-status-for-twitch', FALSE, basename( dirname( __FILE__ ) ) . '/languages/' );
}
add_action( 'plugins_loaded', 'sst_load_plugin_textdomain' );
//
// Widget
//
class sst_widget extends WP_Widget {
// Main constructor
public function __construct() {
parent::__construct(
'sst_widget',
__( 'Stream Status for Twitch', 'sst' ),
array(
'description' => esc_html__( 'Set up channel under Appearance > Customize > Stream Status for Twitch Plugin', 'sst' ),
'customize_selective_refresh' => true,
)
);
}
// The widget form (for the backend)
public function form( $instance ) {
// widget defaults
$defaults = array(
'title' => '',
);
// Parse current settings with defaults
extract( wp_parse_args( ( array ) $instance, $defaults ) ); ?>
<!-- Widget title -->
<p>
<label for="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>"><?php _e( 'Widget Title', 'sst' ); ?></label>
<input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'title' ) ); ?>" type="text" value="<?php echo esc_attr( $title ); ?>" />
</p>
<?php }
// Update widget settings
public function update( $new_instance, $old_instance ) {
$instance = $old_instance;
$instance['title'] = isset( $new_instance['title'] ) ? wp_strip_all_tags( $new_instance['title'] ) : '';
return $instance;
}
// Display the widget
public function widget( $args, $instance ) {
extract( $args );
// Check the widget options
$title = isset( $instance['title'] ) ? apply_filters( 'widget_title', $instance['title'] ) : '';
echo $before_widget;
// Display the widget on the front end
// Display widget title if defined ?>
<div class="sst-main-widget-wrapper">
<?php if ( $title ) {
echo $before_title . $title . $after_title;
} ?>
<div class="sst-widget-wrapper">
<?php include( plugin_dir_path( __FILE__ ) . 'include.php'); ?>
</div>
</div>
<?php echo $after_widget;
}
}
// Register the widget
function sst_register_channels_widget() {
register_widget( 'sst_widget' );
}
add_action( 'widgets_init', 'sst_register_channels_widget' );
//
// Insert customization options into the header
//
function bonfire_sst_customize() {
?>
<!-- BEGIN CUSTOM COLORS (WP THEME CUSTOMIZER) -->
<style>
/* background color */
.sst-status-wrapper { background-color:<?php echo get_theme_mod('sst_background_color'); ?>; }
/* status text color */
.sst-status-text-live,
.sst-status-text-offline { color:<?php echo get_theme_mod('sst_status_text_color'); ?>; }
/* status text hover */
.sst-main-wrapper:hover .sst-status-text-live span,
.sst-main-wrapper:hover .sst-status-text-offline span { color:<?php echo get_theme_mod('sst_status_text_hover_color'); ?>; }
/* Twitch icon color */
.sst-icon-twitch { color:<?php echo get_theme_mod('sst_twitch_icon_color'); ?>; }
/* Twitch icon background color */
.sst-twitch-logo-wrapper { background-color:<?php echo get_theme_mod('sst_twitch_icon_background_color'); ?>; }
.sst-status-wrapper { border-color:<?php echo get_theme_mod('sst_twitch_icon_background_color'); ?>; }
/* rounded corners */
<?php if( get_theme_mod('sst_rounded_corners') != '') { ?>
/* left positioning */
.sst-twitch-logo-wrapper {
border-top-left-radius:<?php echo get_theme_mod('sst_rounded_corners'); ?>px;
border-bottom-left-radius:<?php echo get_theme_mod('sst_rounded_corners'); ?>px;
}
.sst-status-wrapper {
border-top-right-radius:<?php echo get_theme_mod('sst_rounded_corners'); ?>px;
border-bottom-right-radius:<?php echo get_theme_mod('sst_rounded_corners'); ?>px;
}
/* right positioning */
<?php $bonfire_sst_placement_horizontal = get_theme_mod('sst_placement_horizontal'); if($bonfire_sst_placement_horizontal != '') { switch ($bonfire_sst_placement_horizontal) { case 'right': ?>
.sst-twitch-logo-wrapper {
border-top-left-radius:0px;
border-bottom-left-radius:0px;
border-top-right-radius:<?php echo get_theme_mod('sst_rounded_corners'); ?>px;
border-bottom-right-radius:<?php echo get_theme_mod('sst_rounded_corners'); ?>px;
}
.sst-status-wrapper {
border-top-right-radius:0px;
border-bottom-right-radius:0px;
border-top-left-radius:<?php echo get_theme_mod('sst_rounded_corners'); ?>px;
border-bottom-left-radius:<?php echo get_theme_mod('sst_rounded_corners'); ?>px;
}
<?php break; } } ?>
<?php } ?>
/* larger design */
<?php if( get_theme_mod('sst_larger_design') != '') { ?>
.sst-main-wrapper {
height:45px;
}
.sst-twitch-logo-wrapper {
width:45px;
height:45px;
}
.sst-icon-twitch {
top:12px;
left:12px;
font-size:22px;
}
.sst-twitch-logo-wrapper::after {
width:45x;
}
.sst-status-wrapper {
left:45px;
height:45px;
}
.sst-widget-wrapper .sst-status-wrapper {
width:calc(100% - 47px);
}
.sst-status-text-live,
.sst-status-text-offline {
font-size:13px;
-webkit-transform:translateY(0);
-moz-transform:translateY(0);
transform:translateY(0);
}
<?php } ?>
/* absolute positioning */
<?php if( get_theme_mod('sst_absolute_position') != '') { ?>
.sst-main-wrapper { position:absolute; }
<?php } ?>
/* distances (if at top) */
.sst-main-wrapper {
top:<?php echo get_theme_mod('sst_vertical_distance'); ?>px;
left:<?php echo get_theme_mod('sst_horizontal_distance'); ?>px;
}
/* bottom placement + distances */
<?php $bonfire_sst_placement = get_theme_mod('sst_placement'); if($bonfire_sst_placement != '') { switch ($bonfire_sst_placement) { case 'bottom': ?>
.sst-main-wrapper {
top:auto;
bottom:<?php if( get_theme_mod('sst_vertical_distance') != '') { ?><?php echo get_theme_mod('sst_vertical_distance'); ?><?php } else { ?>25<?php } ?>px;
}
<?php break; } } ?>
/* right placement + distances */
<?php $bonfire_sst_placement_horizontal = get_theme_mod('sst_placement_horizontal'); if($bonfire_sst_placement_horizontal != '') { switch ($bonfire_sst_placement_horizontal) { case 'right': ?>
.sst-main-wrapper {
left:auto;
right:<?php if( get_theme_mod('sst_horizontal_distance') != '') { ?><?php echo get_theme_mod('sst_horizontal_distance'); ?><?php } else { ?>25<?php } ?>px;
}
.sst-status-wrapper {
left:auto;
<?php if( get_theme_mod('sst_larger_design') != '') { ?>right:45px;<?php } else { ?>right:32px;<?php } ?>
border-right:none;
border-left-width:2px;
-webkit-transform-origin:right top;
-moz-transform-origin:right top;
transform-origin:right top;
}
.sst-twitch-logo-wrapper { right:0; }
<?php break; } } ?>
/* disable animation */
<?php if( get_theme_mod('sst_disable_animation') != '') { ?>
.sst-status-wrapper {
-webkit-transform:scaleX(1);
-moz-transform:scaleX(1);
transform:scaleX(1);
}
.sst-status-text-live,
.sst-status-text-offline {
opacity:1;
}
<?php } ?>
/* no status text underline */
<?php if( get_theme_mod('sst_no_underline') != '') { ?>
.sst-main-wrapper:hover .sst-status-text-live span,
.sst-main-wrapper:hover .sst-status-text-offline span { text-decoration:none; }
<?php } ?>
/* hide between resolutions */
@media ( min-width:<?php echo get_theme_mod('sst_smaller_than'); ?>px) and (max-width:<?php echo get_theme_mod('sst_larger_than'); ?>px) {
.sst-main-wrapper { display:none !important; }
}
</style>
<!-- END CUSTOM COLORS (WP THEME CUSTOMIZER) -->
<?php
}
add_action('wp_head','bonfire_sst_customize');
?>
Should correct the code
You left the redundant second call to the streams API in