Skip to content

Commit

Permalink
updating readme formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
BFTrick committed Nov 29, 2012
1 parent fc2bf3d commit 25ab790
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,23 @@ This WordPress plugin creates a new control type for the [WordPress Theme Custom
3. Open your function.php file
4. Save your favorite fonts in an array like so:

``` ruby
$customFontFamilies;
if (class_exists('Google_Font_Collection'))
{
$fonts[] = array(
"title" => "Ubuntu Condensed",
"location" => "Ubuntu+Condensed",
"cssDeclaration" => "'Ubuntu Condensed', sans-serif",
"cssClass" => "ubuntuCondensed"
);
$customFontFamilies = new Google_Font_Collection($fonts);
}
```
``` php
$customFontFamilies;
if (class_exists('Google_Font_Collection'))
{
$fonts[] = array(
"title" => "Ubuntu Condensed",
"location" => "Ubuntu+Condensed",
"cssDeclaration" => "'Ubuntu Condensed', sans-serif",
"cssClass" => "ubuntuCondensed"
);
$customFontFamilies = new Google_Font_Collection($fonts);
}
```

5. Create the control

``` ruby
``` php
if (class_exists('Google_Font_Picker_Custom_Control'))
{
// make sure we have the control included
Expand Down

0 comments on commit 25ab790

Please sign in to comment.