Skip to content

Commit

Permalink
[Docs] Fixes zendframework#28 - Check Documentation Code Blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
froschdesign committed Feb 9, 2016
1 parent cc1d5dc commit 54efade
Show file tree
Hide file tree
Showing 13 changed files with 35 additions and 32 deletions.
2 changes: 1 addition & 1 deletion doc/book/zend.view.helpers.advanced-usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ echo $this->specialPurpose();

The output would look something like this:

```php
```html
I have seen 'The Jerk' 1 time(s).
I have seen 'The Jerk' 2 time(s).
I have seen 'The Jerk' 3 time(s).
Expand Down
4 changes: 2 additions & 2 deletions doc/book/zend.view.helpers.cycle.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ To add elements to cycle just specify them in constructor:

The output:

```php
```html
<table>
<tr style="background-color: #F0F0F0">
<td>First</td>
Expand All @@ -48,7 +48,7 @@ Or use `assign(array $data)` method and moving in backwards order:

The output:

```php
```html
<table>
<tr style="background-color: #FFF">
<td>First</td>
Expand Down
6 changes: 3 additions & 3 deletions doc/book/zend.view.helpers.flash-messenger.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ echo $this->flashMessenger()->render('error', array('alert', 'alert-danger'));

The output of this example, using the default `HTML` rendering settings, would look like this:

```php
```html
<ul class="alert alert-danger">
<li>Some FlashMessenger Content</li>
<li>You, the developer, are AWESOME!</li>
Expand Down Expand Up @@ -79,7 +79,7 @@ echo $this->flashMessenger()

The above code sample then would then generate the following output:

```php
```html
<div class="success">
<p>Some FlashMessenger Content</p>
<p>You, who's reading the docs, are AWESOME!</p>
Expand Down Expand Up @@ -114,7 +114,7 @@ markup. The example only covers one type of `FlashMessenger` output; if you woul
`FlashMessages` available in each of the rendered `namespaces`, then you would receive the same
output multiple times only having different `CSS` classes applied.

```php
```html
<div class="alert alert-dismissable alert-success">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
<ul>
Expand Down
2 changes: 1 addition & 1 deletion doc/book/zend.view.helpers.head-link.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ echo $this->headLink();

Output:

```php
```html
<link href="/styles/moz.css" media="screen" rel="stylesheet" type="text/css" id="my_stylesheet">
<link href="/img/favicon.ico" rel="icon">
<link href="/styles/basic.css" media="screen" rel="stylesheet" type="text/css">
Expand Down
11 changes: 7 additions & 4 deletions doc/book/zend.view.helpers.head-meta.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,11 @@ $this->doctype(Zend\View\Helper\Doctype::XHTML1_RDFA);
$this->headMeta()->setProperty('og:title', 'my article title');
$this->headMeta()->setProperty('og:type', 'article');
echo $this->headMeta();

// output is:
// <meta property="og:title" content="my article title" />
// <meta property="og:type" content="article" />
```

Output:

```html
<meta property="og:title" content="my article title" />
<meta property="og:type" content="article" />
```
4 changes: 2 additions & 2 deletions doc/book/zend.view.helpers.head-title.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ When you're finally ready to render the title in your layout script, simply echo

Output:

```php
```html
<title>action - controller - module - Zend Framework</title>
```

Expand All @@ -93,6 +93,6 @@ method:

Output:

```php
```html
action - controller - module - Zend Framework
```
8 changes: 4 additions & 4 deletions doc/book/zend.view.helpers.html-list.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ echo $this->htmlList($items);

Output:

```php
```html
<ul>
<li>Level one, number one
<ul>
Expand All @@ -55,7 +55,7 @@ echo $this->htmlList($items, true);

Output:

```php
```html
<ol>
<li>Level one, number one
<ol>
Expand Down Expand Up @@ -84,7 +84,7 @@ echo $this->htmlList($items, false, $attribs);

Output:

```php
```html
<ul class="foo">
<li>Level one, number one
<ul class="foo">
Expand Down Expand Up @@ -118,7 +118,7 @@ echo $this->htmlList($items, false, false, false);

Output:

```php
```html
<!-- Escape output (default) -->
<ul class="foo">
<li>Level one, number &lt;strong&gt;one&lt;/strong&gt;</li>
Expand Down
4 changes: 2 additions & 2 deletions doc/book/zend.view.helpers.html-object.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ is the resource *URI*.

This outputs the following *HTML*:

```php
```html
<object data="/path/to/flash.swf"
type="application/x-shockwave-flash"
classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
Expand Down Expand Up @@ -66,7 +66,7 @@ echo $this->htmlObject(

This would output:

```php
```html
<object data="/path/to/file.ext" type="mime/type"
attr1="aval1" attr2="aval2">
<param name="param1" value="pval1" />
Expand Down
4 changes: 2 additions & 2 deletions doc/book/zend.view.helpers.inline-script.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Add to the layout script:

Output:

```php
```html
<body>
<!-- Content -->

Expand All @@ -58,7 +58,7 @@ $this->inlineScript()->captureEnd();

Output:

```php
```html
<body>
<!-- Content -->

Expand Down
2 changes: 1 addition & 1 deletion doc/book/zend.view.helpers.json.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ enabled), as layouts generally aren't used with *JSON* responses.

The *JSON* helper sets the following header:

```php
```
Content-Type: application/json
```

Expand Down
4 changes: 2 additions & 2 deletions doc/book/zend.view.helpers.partial.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ You would then call it from your view script using the following:

Which would then render:

```php
```html
<ul>
<li>From: Team Framework</li>
<li>Subject: view partials</li>
Expand Down Expand Up @@ -107,7 +107,7 @@ In your view script, you could then invoke the `PartialLoop` helper:
</dl>
```

```php
```html
<dl>
<dt>Mammal</dt>
<dd>Camel</dd>
Expand Down
14 changes: 7 additions & 7 deletions doc/book/zend.view.helpers.url.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ optional parameters being used:

This will render the output:

```php
```html
<a href="/news">News Index</a>
```

Expand All @@ -62,7 +62,7 @@ task, the optional parameters `action` and `id` need to have values assigned. Th

This will render the output:

```php
```html
<a href="/news/details/42">News Index</a>
```

Expand Down Expand Up @@ -116,7 +116,7 @@ $url = $this->url(

The above code sample would output:

```php
```html
<a href="/news/archive?page=13">News Archive Page #13</a>
```

Expand All @@ -141,7 +141,7 @@ $url = $this->url(

The above code sample would output:

```php
```html
<a href="/news/details/42#comments">Comment Section of News #42</a>
```

Expand All @@ -165,7 +165,7 @@ $url = $this->url(

The above code sample would output:

```php
```html
<a href="/news/details/42?commentPage=3#comments">Comment Section of News #42</a>
```

Expand All @@ -189,7 +189,7 @@ $url = $this->url(

The above code sample would output:

```php
```html
<a href="http://www.example.com/news">News Index</a>
```

Expand All @@ -213,7 +213,7 @@ it:
Notice the `true` argument in the fourth position. This tells the view helper to use the matched
`id` (`777`) when creating the new URL:

```php
```html
<a href="/news/edit/777">Edit Me</a>
<a href="/news/delete/777">Edit Me</a>
```
Expand Down
2 changes: 1 addition & 1 deletion doc/book/zend.view.quick-start.md
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ Here are the templates, rendered based on a 12-column grid:

And here is the aggregate, generated content:

```php
```html
<!-- This is from the $view View Model, and the "content/article/view" template -->
<div class="row content">
<!-- This is from the $articleView View Model, and the "content/article"
Expand Down

0 comments on commit 54efade

Please sign in to comment.