Automattic/liveblog — pull request #85 by cfg (2013-01-23 18:22:15+00:00)
Title: Add additional javascript init event, provide way to format timestamps easier

Trigger after-views-init after views are loaded, but before anything else happens.
Move timestamp formatting to its own function to allow easy overrides (during after-views-init).

This allows a user to customize the output of an entry timestamp output. As seen below, entries in the past 60 minutes are shown with relative time, while older entries are formatted as as H:MMmeridiem.
![mixed-timestamps](https://f.cloud.github.com/assets/715247/90931/6162ac86-6588-11e2-8ac4-b0b1820edd61.png)

### Example Code ###
```php
liveblog_settings.x_humanTimeThreshold ) {
return moment.unix(timestamp).format( liveblog_settings.x_timeFormat );
} else {
return moment.unix(timestamp).fromNow();
}
return time;
};
});
}
```