Last active
June 17, 2017 16:53
-
-
Save domantasg/295e26a8e94e12471f245d058d749df0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function widget( $args, $instance ) { | |
$title = apply_filters( 'widget_title', $instance['title'] ); | |
echo $args['before_widget']; | |
//if title is present | |
if ( ! empty( $title ) ) | |
echo $args['before_title'] . $title . $args['after_title']; | |
//output | |
echo __( 'Hello, World from Hostinger.com', 'hstngr_widget_domain' ); | |
echo $args['after_widget']; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment