Jake Vanderwerf
2026-02-04 2127b1bdd73ecd2423e443992da4b442f5a3c1a3
templates/dashboard/sections/favourites.php
@@ -3,7 +3,7 @@
    exit; // Exit if accessed directly
}
if (!current_user_can('can_favourite')) {
    wp_redirect(get_home_url(2, '/dash'));
    wp_redirect(get_home_url(null, '/dash'));
    exit;
}
@@ -35,7 +35,7 @@
            <div class="controls">
                <div class="type-filters">
                    <button type="button" class="type-filter active" data-type="all">
                        <?= jvbIcon('all'); ?>
                        <?= jvbIcon('infinity'); ?>
                        <span>Everything</span>
                        <span class="count">(<?= array_sum($counts); ?>)</span>
                    </button>
@@ -62,10 +62,10 @@
                <div class="view-controls">
                    <button type="button" class="view-toggle" data-view="grid" aria-pressed="true">
                        <?= jvbIcon('grid'); ?>
                        <?= jvbIcon('squares-four'); ?>
                    </button>
                    <button type="button" class="view-toggle" data-view="list" aria-pressed="false">
                        <?= jvbIcon('list'); ?>
                        <?= jvbIcon('rows'); ?>
                    </button>
                </div>
            </div>
@@ -89,7 +89,7 @@
                </select>
                <button type="button" class="apply-bulk">Apply</button>
                <button type="button" class="cancel-bulk">
                    <?= jvbIcon('close', ['title'=>'Cancel']); ?>
                    <?= jvbIcon('x', ['title'=>'Cancel']); ?>
                </button>
            </div>
        </div>
@@ -99,7 +99,7 @@
        <div class="tab-content" data-tab="lists" role="tabpanel" aria-hidden="true">
            <div class="lists-header">
                <button type="button" class="create-list-btn" onclick="window.userFavouritesManager.showCreateListModal()">
                    <?= jvbIcon('add', ['title'=>'Create List']); ?>
                    <?= jvbIcon('plus-square', ['title'=>'Create List']); ?>
                    <span>Create List</span>
                </button>
            </div>
@@ -122,11 +122,11 @@
                        <span>Share</span>
                    </button>
                    <button type="button" class="duplicate-list" title="Duplicate List">
                        <?= jvbIcon('copy')?>
                        <?= jvbIcon('copy-simple')?>
                        <span>Duplicate</span>
                    </button>
                    <button type="button" class="delete-list" title="Delete List">
                        <?= jvbIcon('delete')?>
                        <?= jvbIcon('trash')?>
                        <span>Delete</span>
                    </button>
                </div>
@@ -148,7 +148,7 @@
                        </select>
                        <button type="button" class="apply-bulk">Apply</button>
                        <button type="button" class="cancel-bulk">
                            <?= jvbIcon('close', ['title'=>'Cancel']); ?>
                            <?= jvbIcon('x', ['title'=>'Cancel']); ?>
                        </button>
                    </div>
                </div>
@@ -223,7 +223,7 @@
            <div class="input-with-button">
                <input type="email" id="share-email" name="share_email" placeholder="Enter email address">
                <button type="button" class="add-email">
                    <?= jvbIcon('add', ['title'=>'Add share access'])?>
                    <?= jvbIcon('plus-square', ['title'=>'Add share access'])?>
                </button>
            </div>
        </div>