Skip to content

Commit

Permalink
Merge pull request #82 from umer936/patch-1
Browse files Browse the repository at this point in the history
Add the codeblock for how to do fa modifiers in the icon examples
  • Loading branch information
dereuromark authored Sep 12, 2024
2 parents 9e23dac + f761bbc commit f92222c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions plugins/Sandbox/templates/TemplatingExamples/icons.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,15 @@
</p>

<p>FontAwesome also has quite powerful options for icons:</p>
<code style="display: block;">
<?php
$text = <<<TEXT
<?php echo \$this->Icon->render('motorcycle', ['rotate' => 90]) ?>
<?php echo \$this->Icon->render('anchor', ['spin' => true]) ?>
TEXT;
echo nl2br(h($text));
?>
</code>
<p>
<?php
echo $this->Icon->render('motorcycle', ['rotate' => 90]) . ' (rotated 90 degrees)';
Expand Down

0 comments on commit f92222c

Please sign in to comment.