| Server IP : 195.130.67.5 / Your IP : 216.73.217.154 Web Server : Microsoft-IIS/10.0 System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586 User : IUSR ( 0) PHP Version : 7.4.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /Old Sites/Engineering/V1/iimec/wp-content/themes/annotum-base/functions/ |
Upload File : |
<?php
/**
* Text widget class
*
* @since 2.8.0
*/
class WP_Widget_Solvitor_Ad extends WP_Widget_Text {
function WP_Widget_Solvitor_Ad() {
$widget_ops = array('classname' => 'widget_solvitor_ad', 'description' => __('A sidebar advertisement', 'anno'));
$control_ops = array('width' => 400, 'height' => 350);
$this->WP_Widget('advertisement', __('Advertisement', 'anno'), $widget_ops, $control_ops);
}
function widget( $args, $instance ) {
extract($args);
$text = apply_filters( 'widget_solvitor_ad', $instance['text'], $instance );
echo $before_widget; ?>
<div class="textwidget"><?php echo $instance['filter'] ? wpautop($text) : $text; ?></div>
<?php
echo $after_widget;
}
function form( $instance ) {
$instance = wp_parse_args( (array) $instance, array( 'text' => '' ) );
$text = esc_textarea($instance['text']);
?>
<textarea class="widefat" rows="16" cols="20" id="<?php echo $this->get_field_id('text'); ?>" name="<?php echo $this->get_field_name('text'); ?>"><?php echo $text; ?></textarea>
<?php
}
}