Skip to content

Commit 90e91a2

Browse files
committed
minor improvements and fixes
1 parent 999fa0b commit 90e91a2

9 files changed

Lines changed: 12 additions & 12 deletions

File tree

documentation/1-containers/2-post-meta.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ To access field values you need to use the function `carbon_get_post_meta($id, $
8686
| `$name` | The name of the field to be retrieved. |
8787
| `$type` *(optional)* | If the field you want to retrieve is of type complex, you need to pass `"complex"`. |
8888

89-
```
89+
```php
9090
<!-- Simple field -->
9191
<p>Article was published in: <?php echo carbon_get_post_meta(get_the_ID(), 'crb_location'); ?></p>
9292

@@ -103,7 +103,7 @@ if ( $slides ) {
103103

104104
You can also use `carbon_get_the_post_meta($name, $type = null)` to access the values for the current post in [The Loop](http://codex.wordpress.org/The_Loop).
105105

106-
```
106+
```php
107107
<p>Article was published in: <?php echo carbon_get_the_post_meta('crb_location'); ?></p>
108108

109109
<?php $slides = carbon_get_the_post_meta('crb_slides', 'complex'); ?>

documentation/1-containers/3-theme-options.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ To retrieve field values from a theme options container, you need to use the fun
8888
| `$name` | The name of the field to be retrieved. |
8989
| `$type` *(optional)* | If the field you want to retrieve is of type complex, you need to pass `"complex"`. |
9090

91-
```
91+
```php
9292
<p>Copyright <?php echo carbon_get_theme_option('crb_copyright'); ?></p>
9393
<p>
9494
Office locations:

documentation/1-containers/4-term-meta.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ To access field values you need to use the function `carbon_get_term_meta($term_
4242
| `$name` | The name of the field to be retrieved. |
4343
| `$type` *(optional)* | If the field you want to retrieve is of type complex, you need to pass `"complex"`. |
4444

45-
```
45+
```php
4646
<!-- Simple field -->
4747
<p>Editor of this category: <?php echo carbon_get_term_meta($category->term_id, 'crb_editor'); ?></p>
4848

documentation/1-containers/5-user-meta.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ To access field values you need to use the function `carbon_get_user_meta($user_
2929
| `$name` | The name of the field to be retrieved. |
3030
| `$type` *(optional)* | If the field you want to retrieve is of type complex, you need to pass `"complex"`. |
3131

32-
```
32+
```php
3333
<!-- Simple field -->
3434
<?php $author = get_the_author(); ?>
3535
<p>Author address: <?php echo carbon_get_user_meta($author->ID, 'crb_street'); ?></p>

documentation/1-containers/8-nav-menu.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ function crb_nav_menu_link_attributes($atts, $item, $args, $depth) {
109109

110110
Both of the above examples will result in:
111111

112-
```
112+
```php
113113
<div class="menu-main-menu-container">
114114
<ul id="menu-main-menu" class="menu">
115115
<li id="menu-item-23" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-23">

documentation/2-fields/10-set.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ The method can be called multiple times, in which case the options between the c
1414

1515
Set options as an associative array or a [callback](http://php.net/manual/en/language.types.callable.php).
1616

17-
The method is not indented to be called multiple times – each call will overwrite the previous options.
17+
The method is not intended to be called multiple times – each call will overwrite the previous options.
1818

1919
`limit_options($count)`
2020

documentation/2-fields/8-select.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ The method can be called multiple times, in which case the options between the c
1414

1515
Set options as an associative array or a [callback](http://php.net/manual/en/language.types.callable.php).
1616

17-
The method is not indented to be called multiple times – each call will overwrite the previous options.
17+
The method is not intended to be called multiple times – each call will overwrite the previous options.
1818

1919
##### NB! If you provide indexed array with no key values, the default indexes **(0, 1, 2 …)** of the elements will be used.
2020

documentation/2-fields/9-radio.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ The method can be called multiple times, in which case the options between the c
1414

1515
Set options as an associative array or a [callback](http://php.net/manual/en/language.types.callable.php).
1616

17-
The method is not indented to be called multiple times – each call will overwrite the previous options.
17+
The method is not intended to be called multiple times – each call will overwrite the previous options.
1818

1919
##### NB! If you provide indexed array with no key values, the default indexes **(0, 1, 2 …)** of the elements will be used.
2020

documentation/4-advanced-topics/2-templates.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Carbon Fields are using the [Underscore](http://underscorejs.org/#template) template engine. Each field has a `template` method that prints the Underscore template code.
44

5-
```
5+
```php
66
use Carbon_Fields\Field\Field;
77

88
class Example_Field extends Field {
@@ -18,7 +18,7 @@ class Example_Field extends Field {
1818

1919
Some fields have more than one template – in those cases the extra templates should be printed in separate methods and registered via `add_template($name, $callback)` method.
2020

21-
```
21+
```php
2222
use Carbon_Fields\Field\Field;
2323

2424
class Example_Field extends Field {
@@ -56,7 +56,7 @@ Interpolate a value, and have it be HTML-escaped.
5656

5757
The variables that can be used inside a template are added by the `to_json()` PHP method. Here is an example of adding two new variables (rows & height):
5858

59-
```
59+
```php
6060
// Textarea Field PHP Class
6161
class Textarea_Field extends Field {
6262
protected $height = 170;

0 commit comments

Comments
 (0)