Skip to content

Commit

Permalink
Use correct snippet-name in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
timnarr committed Feb 20, 2024
1 parent 880a254 commit b71a642
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ $options = [
];
?>

<?php snippet('imagex', $options) ?>
<?php snippet('imagex-picture', $options) ?>
```

Imagex outputs a `<picture>` element with multiple `<source>` elements and one `<img>`. If you need extra HTML you can wrap the Imagex snippet accordingly. Handle `svg` or `gif` files differently as needed!
Expand All @@ -136,7 +136,7 @@ $options = [
<?php if ($image->extension() === 'svg' || $image->extension() === 'gif'): ?>
<?php snippet('svg-gif-image') ?> // handle svg and gif files differently
<?php else: ?>
<?php snippet('imagex', $options) ?>
<?php snippet('imagex-picture', $options) ?>
<?php endif; ?>
<figcaption>Lorem ipsum</figcaption>
</figure>
Expand Down Expand Up @@ -210,7 +210,7 @@ $options = [
];

// Pass your options to the Imagex snippet
<?php snippet('imagex', $options) ?>
<?php snippet('imagex-picture', $options) ?>
```

## Cache
Expand Down
4 changes: 2 additions & 2 deletions docs/examples/art-directed-images.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ $options = [
];
?>

<?php snippet('imagex', $options) ?>
<?php snippet('imagex-picture', $options) ?>
```

### Final HTML Output
Expand Down Expand Up @@ -101,7 +101,7 @@ $options = [
];
?>

<?php snippet('imagex', $options) ?>
<?php snippet('imagex-picture', $options) ?>
```

### Final HTML Output
Expand Down
6 changes: 3 additions & 3 deletions docs/examples/basic-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ $options = [
];
?>

<?php snippet('imagex', $options) ?>
<?php snippet('imagex-picture', $options) ?>
```

### Final HTML Output
Expand Down Expand Up @@ -89,7 +89,7 @@ $options = [
];
?>

<?php snippet('imagex', $options) ?>
<?php snippet('imagex-picture', $options) ?>
```

### Final HTML Output
Expand Down Expand Up @@ -151,7 +151,7 @@ $options = [
];
?>

<?php snippet('imagex', $options) ?>
<?php snippet('imagex-picture', $options) ?>
```

### Final HTML Output
Expand Down
4 changes: 2 additions & 2 deletions docs/examples/custom-lazy-loading.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ $options = [
];
?>

<?php snippet('imagex', $options) ?>
<?php snippet('imagex-picture', $options) ?>
```

### Final HTML Output
Expand Down Expand Up @@ -151,7 +151,7 @@ $options = [
];
?>

<?php snippet('imagex', $options) ?>
<?php snippet('imagex-picture', $options) ?>
```

### Final HTML Output
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/loading-modes-eager-lazy.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ $options = [
];
?>

<?php snippet('imagex', $options) ?>
<?php snippet('imagex-picture', $options) ?>
```

### Final HTML Output
Expand Down
4 changes: 2 additions & 2 deletions docs/examples/no-modern-formats.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ $options = [
];
?>

<?php snippet('imagex', $options) ?>
<?php snippet('imagex-picture', $options) ?>
```

### Final HTML Output
Expand Down Expand Up @@ -69,7 +69,7 @@ $options = [
];
?>

<?php snippet('imagex', $options) ?>
<?php snippet('imagex-picture', $options) ?>
```

### Final HTML Output
Expand Down

0 comments on commit b71a642

Please sign in to comment.