block.json
4 months ago
controller.php
4 months ago
index-rtl.css
4 months ago
index.asset.php
5 days ago
index.css
4 months ago
index.js
5 days ago
style-index-rtl.css
4 months ago
style-index.css
4 months ago
view.php
4 months ago
controller.php
16 lines
| 1 | <?php |
| 2 | $icon_name = $attributes['icon_name'] ?? 'star'; |
| 3 | $size = $attributes['size'] ?? 24; |
| 4 | $width = $attributes['width'] ?? ''; |
| 5 | $height = $attributes['height'] ?? ''; |
| 6 | $stroke_width = $attributes['stroke_width'] ?? 2; |
| 7 | $alignment = $attributes['alignment'] ?? ''; |
| 8 | $link_url = $attributes['link_url'] ?? ''; |
| 9 | $link_target = $link_url ? $attributes['link_target'] : ''; |
| 10 | $link_rel = $link_url ? $attributes['link_rel'] : ''; |
| 11 | $nofollow = $attributes['nofollow'] ?? false; |
| 12 | $html_tag = $link_url ? 'a' : 'div'; |
| 13 | |
| 14 | // Return the view. |
| 15 | return 'file:./view.php'; |
| 16 |