Scaffold Aurora Admin marketing theme (Home, Features, Blog)
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
/**
|
||||
* Expects $args = ['icon' => dashicon slug or emoji, 'title' => string, 'desc' => string]
|
||||
* Called via get_template_part('template-parts/content-feature-card', null, $args).
|
||||
*/
|
||||
$icon = $args['icon'] ?? '';
|
||||
$title = $args['title'] ?? '';
|
||||
$desc = $args['desc'] ?? '';
|
||||
?>
|
||||
<div class="feature-card">
|
||||
<?php if ($icon) : ?>
|
||||
<div class="feature-icon" aria-hidden="true"><?php echo esc_html($icon); ?></div>
|
||||
<?php endif; ?>
|
||||
<h3><?php echo esc_html($title); ?></h3>
|
||||
<p><?php echo esc_html($desc); ?></p>
|
||||
</div>
|
||||
Reference in New Issue
Block a user