diff --git a/assets/js/main.js b/assets/js/main.js
index 2f0fe2e..f34cfb8 100644
--- a/assets/js/main.js
+++ b/assets/js/main.js
@@ -7,12 +7,12 @@ import '../css/app.scss'
import "../raw/rdnyc-logo.svg"; // rdnyc logo
// other:
import "../../node_modules/@mdi/svg/svg/magnify.svg"; // search form button icon
-// import "../../node_modules/@mdi/svg/svg/home.svg";
+import "../../node_modules/@mdi/svg/svg/home.svg";
// import "../../node_modules/@mdi/svg/svg/information.svg";
// import "../../node_modules/@mdi/svg/svg/account.svg";
// import "../../node_modules/@mdi/svg/svg/briefcase-account.svg";
-// import "../../node_modules/@mdi/svg/svg/zip-disk.svg";
-// import "../../node_modules/@mdi/svg/svg/typewriter.svg";
+import "../../node_modules/@mdi/svg/svg/zip-disk.svg";
+import "../../node_modules/@mdi/svg/svg/typewriter.svg";
// import "../../node_modules/@mdi/svg/svg/calendar-clock.svg";
// import "../../node_modules/@mdi/svg/svg/tag-multiple.svg";
// import "../../node_modules/@mdi/svg/svg/rss.svg";
diff --git a/content-templates/content-article.php b/content-templates/content-article.php
index f3f6953..0a12565 100644
--- a/content-templates/content-article.php
+++ b/content-templates/content-article.php
@@ -25,15 +25,15 @@ namespace WP_RDNYC;
';
- echo svg_icon_use("mdi-tag-multiple", "baseline text-gray-300 me-1");
+ // echo svg_icon_use("mdi-tag-multiple", "baseline text-gray-300 me-1");
$tag_strings = array_map(function ($tag) {
return '#' . $tag->name . '';
diff --git a/custom-functions.php b/custom-functions.php
index 87aa3ef..ffa49a5 100644
--- a/custom-functions.php
+++ b/custom-functions.php
@@ -3,18 +3,35 @@
/**
* Function to support inline SVG icons by name with div wrapper
*/
-function svg_icon_use($icon_name, $div_class = '') {
- $div_class .= ' icon';
- $output = "";
-};
+// function svg_icon_use($icon_name, $div_class = '') {
+// $div_class .= ' icon';
+// $output = "";
+// };
-function svg_logo_use($icon_name, $div_class = '', $svg_title = 'Logo') {
- $div_class .= ' logo';
- $output = "";
+// function svg_logo_use($icon_name, $div_class = '', $svg_title = 'Logo') {
+// $div_class .= ' logo';
+// $output = "";
+// };
+
+function inline_svg(
+ $svg_name,
+ $div_class = 'icon',
+ $svg_class = '',
+ $svg_title = '',
+ $svg_role_img = false,
+ $svg_aria_hidden = true) {
+ $svg_content = file_get_contents( get_template_directory_uri() . '/dist/images/' . $svg_name . '.svg' );
+ $to_replace = $svg_class == '' ? 'class="{{class-name}}"' : '{{class-name}}';
+ $svg_content = str_replace($to_replace, $svg_class, $svg_content);
+ $svg_content = $svg_role_img ? str_replace('