rearranged social icon handling, implemented shortcodes, front-page now uses page content

This commit is contained in:
Adam Piontek 2021-07-09 12:20:38 -04:00
parent 573dcbf799
commit d29641d700
12 changed files with 250 additions and 147 deletions

12
custom-functions.php Normal file
View file

@ -0,0 +1,12 @@
<?php
/**
* Function to support inline SVG icons by name with div wrapper
*/
function svg_icon_use($icon_name, $div_class) {
$output = "<div class=\"$div_class $icon_name\"><svg class=\"$icon_name\" aria-hidden=\"true\">";
$output .= "<use xlink:href=\"" . get_stylesheet_directory_uri() . "/dist/images/icon-sprites.svg#$icon_name\"></use>";
return $output . "</svg></div>";
};
?>