* @copyright Copyright (c) 2013, Graphics Foundry ltd.
* @license GPL-2.0+
*/
class African_Flag_Widget extends WP_Widget {
function __construct() {
parent::__construct(
'african_flag_widget', // Base ID
'African_Flag_Widget', // Name
array( 'description' => __( 'African Flag Widget', 'text_domain' ), ) // Args
);
}
public function widget( $args, $instance ) {
// outputs the content of the widget
$html_before = "slug . ".jpg" ;
$html_after = "\" width=200 align=\"middle\"/ style=\"margin-bottom: 20px;\" >" ;
echo $html_before . $imagefile . $html_after ;
}
public function form( $instance ) {
if ( isset( $instance[ 'title' ] ) ) {
$title = $instance[ 'title' ];
}
else {
$title = __( 'New title', 'text_domain' );
}
?>