Skip to content

Commit

Permalink
Ensure we've actually got a display_unstyled() method.
Browse files Browse the repository at this point in the history
  • Loading branch information
jpederson committed May 11, 2019
1 parent f5c9bce commit a653671
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions twitterAggregator.php
Original file line number Diff line number Diff line change
Expand Up @@ -249,10 +249,25 @@ public function widget() {

// display the widget
public function display() {

// fetch the and display widget styles
print '<style>' . file_get_contents( 'example.css' ) . '</style>';

// display the widget
print $this->widget();
}



// display the widget
public function display_unstyled() {

// display the widget
print $this->widget();
}



// helper function to get a string representing the difference between two times in a human readible format
public function ago( $tm, $rcs = 0 ) {
if ( is_string( $tm ) ) $tm = strtotime( $tm );
Expand Down

0 comments on commit a653671

Please sign in to comment.