芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/cepali.edu.mx/wp-content/themes/edufication/inc/widgets/contact-info-widget.php
'widget_contact_info edufication_contact_info', ); parent::__construct( 'edufication_contact_info', esc_html__('TP : Contact Info','edufication'), $widget_ops ); } /** * Outputs the content of the widget * * @param array $args * @param array $instance */ public function widget( $args, $instance ) { // outputs the content of the widget if ( ! isset( $args['widget_id'] ) ) { $args['widget_id'] = $this->id; } $title = ( ! empty( $instance['title'] ) ) ? $instance['title'] : ''; $title = apply_filters( 'widget_title', $title, $instance, $this->id_base ); $address = ! empty( $instance['address'] ) ? $instance['address'] : ''; $phone = ! empty( $instance['phone'] ) ? explode( ',', $instance['phone'] ) : array(); $email = ! empty( $instance['email'] ) ? explode( ',', $instance['email'] ) : array(); echo $args['before_widget']; if ( ! empty( $title ) ) { echo $args['before_title'] . esc_html( $title ) . $args['after_title']; } ?>