feature: Filtering working as intended

This commit is contained in:
Keith Solomon
2025-02-04 13:44:36 -06:00
parent 5515b50fd7
commit c878c48e92
5 changed files with 151 additions and 74 deletions

View File

@@ -0,0 +1,15 @@
<?php
if (!defined('ABSPATH')) { exit; } // Prevent direct access
function rfGetTemplate($template_name) {
$theme_template = get_stylesheet_directory() . "/resource-filter/$template_name";
$plugin_template = plugin_dir_path(__FILE__) . "../templates/$template_name";
if (file_exists($theme_template)) {
return $theme_template;
} elseif (file_exists($plugin_template)) {
return $plugin_template;
}
return false;
}