Jake Vanderwerf
2026-02-04 2127b1bdd73ecd2423e443992da4b442f5a3c1a3
templates/dashboard/sections/news.php
@@ -1,6 +1,7 @@
<?php
use JVBase\managers\CacheManager;
use JVBase\managers\Cache;
use JVBase\meta\Form;
if (!defined('ABSPATH')) {
    exit; // Exit if accessed directly
@@ -9,7 +10,7 @@
    wp_redirect(get_home_url(null, '/dash'));
    exit;
}
$cache = CacheManager::for('news', 3600);
$cache = Cache::for('news', 3600);
$check = $cache->get('type-options');
if ($check) {
@@ -24,7 +25,7 @@
        foreach ($terms as $term) {
            $typeOptions[] = [
                'id'    => $term->term_id,
                'name'    => $term->name,
                'name'    => html_entity_decode($term->name),
                'count'    => $term->count,
            ];
        }
@@ -259,9 +260,9 @@
        </div>
        <?php
        $handler = JVB()->getContent('news');
        $meta = new JVBase\meta\MetaManager();
        foreach ($handler->getFields() as $field_name => $field_config) {
            $meta->render('form', $field_name, $field_config);
            echo Form::render($field_name, null, $field_config);
        }
        ?>