Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Updating readme file
  • Loading branch information
gititon authored and roccotripaldi committed Jun 5, 2019
commit a2aa79e7db9937e72d39c397d7db660cc6839cd4
20 changes: 2 additions & 18 deletions packages/jitm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,7 @@

A package encapsulating Just In Time Messages

### Usage TODO
### Usage

Display the default Jetpack logo:

```php
use Automattic\Jetpack\Assets\Logo;

$logo = new Logo();
echo $logo->render();
```

Display a custom Jetpack logo of your choice:

```php
use Automattic\Jetpack\Assets\Logo;

$url = plugins_url( 'images/jetpack-logo.svg', __DIR__ );
$logo = new Logo( $url );
echo $logo->render();
Instantiating the JITM Manager will facilitate the display of JITM messages in wp-admin
```