Memory Wiki

Untitled Session

2026-06-02 00:03 UTC · 22 messages · cli

You2026-06-02 00:04 UTC
Check what sidebar and widget areas already exist in the Reign theme on the sandbox server. List every registered sidebar with its ID, name, description, and where it's used in templates.
Donna2026-06-02 00:04 UTC
Tool2026-06-02 00:04 UTC
{"output": "/var/www/html/wp-content/themes/reign-theme/widgets/login-widget.php:168:add_action( 'bp_widgets_init', 'reign_register_bp_login_widget' );\n/var/www/html/wp-content/themes/reign-theme/widgets/members-carousel-widget.php:282:add_action( 'bp_widgets_init', 'reign_members_register_widget' ...
Tool2026-06-02 00:04 UTC
{"output": "/var/www/html/wp-content/themes/reign-theme/sidebar-group-left.php\n/var/www/html/wp-content/themes/reign-theme/sidebar-buddypress.php\n/var/www/html/wp-content/themes/reign-theme/sidebar-activity-left.php\n/var/www/html/wp-content/themes/reign-theme/lib/images/sidebar-both.jpg\n/var/www...
Tool2026-06-02 00:04 UTC
{"output": "name\tid\tdescription\nRight Sidebar\tsidebar-right\tWidgets in this area are used in the right sidebar region.\nLeft Sidebar\tsidebar-left\tWidgets in this area are used in the left sidebar region.\nGroups Index\tgroup-index\tAdd widgets here.\nMember Index\tmember-index\tAdd widgets he...
Tool2026-06-02 00:04 UTC
{"output": "/var/www/html/wp-content/themes/reign-theme/buddypress.php:70:<?php echo get_sidebar( 'buddypress' ); ?>\n/var/www/html/wp-content/themes/reign-theme/taxonomy-download_category.php:52:<?php echo get_sidebar(); ?>\n/var/www/html/wp-content/themes/reign-theme/buddypress/members/index.php:1...
Donna2026-06-02 00:04 UTC
Now let me read the actual sidebar registration code to get full details on each:
Tool2026-06-02 00:04 UTC
{"output": "*/\nif ( ! function_exists( 'reign_widgets_init' ) ) {\n\n\tfunction reign_widgets_init() {\n\t\tregister_sidebar(\n\t\t\tarray(\n\t\t\t\t'name' => esc_html__( 'Right Sidebar', 'reign' ),\n\t\t\t\t'id' => 'sidebar-right',\n\t\t\t\t'description' => esc_html__( 'Widge...
Tool2026-06-02 00:04 UTC
{"output": "/var/www/html/wp-content/themes/reign-theme/template-parts/header/header-mobile.php:212:\t\t\t\t\t\t\t\tif ( is_active_sidebar( 'reign-header-widget-area' ) ) :\n/var/www/html/wp-content/themes/reign-theme/template-parts/header/header-mobile.php:214:\t\t\t\t\t\t\t\t\tdynamic_sidebar( 're...
Donna2026-06-02 00:04 UTC
Let me also read the sidebar template files to see their logic:
Tool2026-06-02 00:04 UTC
{"content": "", "total_lines": 0, "file_size": 0, "truncated": false, "is_binary": false, "is_image": false, "error": "File not found: /root/sidebar-buddypress.php", "similar_files": ["/root/generate_modules.php", "/root/profe-sync-updated.php", "/root/sotano-loader.php"]}
Tool2026-06-02 00:04 UTC
{"content": "", "total_lines": 0, "file_size": 0, "truncated": false, "is_binary": false, "is_image": false, "error": "File not found: /root/sidebar.php", "similar_files": ["/root/generate_modules.php", "/root/profe-cdn.php", "/root/profe-license.php", "/root/profe-sync.php", "/root/sotano-loader.ph...
Tool2026-06-02 00:04 UTC
{"content": "", "total_lines": 0, "file_size": 0, "truncated": false, "is_binary": false, "is_image": false, "error": "File not found: /root/sidebar-left.php", "similar_files": ["/root/composer-setup.php", "/root/generate_modules.php", "/root/patch_billing_cron.php", "/root/patch_bp_cron.php", "/roo...
Donna2026-06-02 00:04 UTC
Tool2026-06-02 00:04 UTC
{"output": "<?php\n/**\n * The sidebar containing the main widget area\n *\n * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials\n *\n * @package Reign\n */\n$sidebar_id = reign_get_sidebar_id_to_show( 'primary_sidebar' );\n\nif ( ! $sidebar_id ) {\n\tglobal $post...
Tool2026-06-02 00:04 UTC
{"output": "<?php\n/**\n * The sidebar containing the main widget area\n *\n * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials\n *\n * @package Reign\n */\n$sidebar_id = reign_get_sidebar_id_to_show( 'secondary_sidebar' );\n\nif ( ! $sidebar_id ) {\n\tglobal $po...
Tool2026-06-02 00:04 UTC
{"output": "<?php\n/**\n * The sidebar containing the main widget area\n *\n * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials\n *\n * @package Reign\n */\nglobal $post;\n$bp_pages = get_option( 'bp-pages' );\nif ( bp_is_current_component( 'groups' ) ) {\n\t$pos...
Tool2026-06-02 00:04 UTC
{"output": "<aside id=\"left\" class=\"widget-area group-widget-area sm-wb-grid-1-4 md-wb-grid-1-5\" role=\"complementary\">\n\t<?php do_action( 'reign_begin_group_left_sidebar' ); ?>\n\n\t<div class=\"widget-area-inner\">\n\t\t<div class=\"widget-groups-nav-inner-wrap\">\n\t\t\t<?php //if ( !bp_dis...
Tool2026-06-02 00:04 UTC
{"output": "<aside id=\"left\" class=\"widget-area activity-widget-area sm-wb-grid-1-4 md-wb-grid-1-5\" role=\"complementary\">\n\n\t<?php do_action( 'reign_begin_activity_left_sidebar' ); ?>\n\n\t<div class=\"widget-area-inner\">\n\t\t<div class=\"widget widget-member-nav rg-custom-mbl-menu\">\n\t\...
Donna2026-06-02 00:04 UTC
Let me also check the WooCommerce/EDD sidebar structure logic:
Tool2026-06-02 00:04 UTC
{"output": "}\n\t\t\t} else {\n\n\t\t\t\tget_template_part( 'template-parts/reign', 'page-header' );\n\t\t\t}\n\t\t}\n\n\t\tpublic function render_left_sidebar_area() {\n\t\t\tif ( is_search() ) {\n\t\t\t\t$search_content_layout = get_theme_mod( 'reign_search_page_layout', 'right_sidebar' );\n\t\t\t...
Donna2026-06-02 00:04 UTC
Here is the complete sidebar/widget area inventory for the Reign theme on the sandbox server. --- ## Sidebar Template Files | File | Description | |------|-------------| | `sidebar.php` | Right sidebar — renders `$sidebar_id` resolved via `reign_get_sidebar_id_to_show('primary_sidebar')`, falls back to `sidebar-right` (or WooCommerce/EDD specific sidebar IDs) | | `sidebar-left.php` | Left sidebar — renders `$sidebar_id` resolved via `reign_get_sidebar_id_to_show('secondary_sidebar')`, falls back to `sidebar-left` (or `woocommerce-sidebar-left`) | | `sidebar-buddypress.php` | BuddyPress master sidebar — conditionally renders `group-index`, `member-index`, `activity-index`, `group-single`, `member-profile`, or `activity-index` (for document/media/register pages) | | `sidebar-group-left.php` | Group single view left sidebar (hardcoded BuddyPress group nav, admins/mods list, activity filter) — no `dynamic_sidebar()` calls | | `sidebar-activity-left.php` | Activity/User left sidebar (hardcoded BuddyPress member nav, activity filter) — no `dynamic_sidebar()` calls | --- ## Registered Sidebars (via `register_sidebar()` in `inc/init.php`) | # | Sidebar ID | Name | Description | Condition | Used In | |---|-----------|------|-------------|-----------|---------| | 1 | `sidebar-right` | Right Sidebar | Widgets in this area are used in the right sidebar region. | Always | `sidebar.php` (fallback default) | | 2 | `sidebar-left` | Left Sidebar | Widgets in this area are used in the left sidebar region. | Always | `sidebar-left.php` (fallback default) | | 3 | `woocommerce-sidebar-right` | WooCommerce Right Sidebar | Widgets in this area are used in the woocommerce right sidebar region. | If WooCommerce active | `sidebar.php` on shop/archive/product/cart/checkout/category pages | | 4 | `woocommerce-sidebar-left` | WooCommerce Left Sidebar | Widgets in this area are used in the woocommerce left sidebar region. | If WooCommerce active | `sidebar-left.php` on shop/archive/product/cart/checkout/category pages | | 5 | `reign_off_canvas_sidebar` | Off Canvas Sidebar | Widgets in this area are used in the woocommerce Off Canvas sidebar region. | If WooCommerce active AND `reign_woo_off_canvas_filter` theme mod is enabled | WooCommerce off-canvas filter | | 6 | `group-index` | Groups Index | Add widgets here. | If BuddyPress active AND Youzify NOT active | `sidebar-buddypress.php` on groups directory page | | 7 | `member-index` | Member Index | Add widgets here. | If BuddyPress active AND Youzify NOT active | `sidebar-buddypress.php` on members directory page | | 8 | `activity-index` | Activity Index | Add widgets here. | If BuddyPress active AND Youzify NOT active | `sidebar-buddypress.php` on activity directory, document directory, media directory, and register page | | 9 | `group-single` | Group Single | Add widgets here. | If BuddyPress active AND Youzify NOT active | `sidebar-buddypress.php` on single group page | | 10 | `member-profile` | Member Profile | Add widgets here. | If BuddyPress active AND Youzify NOT active | `sidebar-buddypress.php` on member profile page (excluding messages, settings, notifications, profile edit, avatar/cover changes) | | 11 | `edd-download-archive-sidebar` | Download Archive Sidebar | Widgets in this area are used in the EDD download archive page. | If Easy Digital Downloads active | `sidebar.php` on download archive pages | | 12 | `edd-single-download-sidebar` | Single Download Sidebar | Widgets in this area are used in the EDD single download page. | If Easy Digital Downloads active | `sidebar.php` on single download pages | | 13 | `footer-widget-area` | Footer Widget Area | Add widgets here. | Always | `template-parts/footer/footer.php` | | 14 | `reign-header-widget-area` | Header Widget Area | *(no description)* | If PeepSo active | `template-parts/header/header-mobile.php`, `template-parts/header-icons/user-menu.php` | --- ## Additional Widget Types (Custom BP Widgets, not sidebar areas) These register as widget classes via `bp_widgets_init`, not as sidebar areas: - **BP Login Widget** (`widgets/login-widget.php`) - **Members Carousel Widget** (`widgets/members-carousel-widget.php`) - **Groups Carousel Widget** (`widgets/groups-carousel-widget.php`) - **Groups Widget** (`widgets/groups-widget.php`) - **Sitewide Activity Widget** (`widgets/sidewide-activity-widget.php`) --- ## Templates Calling Specific Sidebars (via `get_sidebar()`) | Template | Call | What Gets Loaded | |----------|------|-----------------| | `buddypress.php` | `get_sidebar('buddypress')` | `sidebar-buddypress.php` | | `taxonomy-download_category.php` | `get_sidebar()` | `sidebar.php` (right sidebar) | | `buddypress/members/index.php` | `get_sidebar('buddypress')` | `sidebar-buddypress.php` | | `buddypress/members/single/home.php` | `get_sidebar('activity-left')` then `get_sidebar('buddypress')` | `sidebar-activity-left.php`, then `sidebar-buddypress.php` | | `buddypress/groups/index.php` | `get_sidebar('buddypress')` | `sidebar-buddypress.php` | | `buddypress/groups/single/home.php` | `get_sidebar('group-left')` then `get_sidebar('buddypress')` | `sidebar-group-left.php`, then `sidebar-buddypress.php` | | `buddypress/activity/index.php` | `get_sidebar('buddypress')` | `sidebar-buddypress.php` | | `bp-nouveau/members/single/home.php` | `get_sidebar('buddypress')` | `sidebar-buddypress.php` | | `bp-nouveau/groups/single/home.php` | `get_sidebar('buddypress')` | `sidebar-buddypress.php` | | `inc/class-reign-theme-structure.php` | `get_sidebar($sidebar_id)` where `$sidebar_id='left'` | `sidebar-left.php` (for left sidebar rendering) | --- ## Summary **14 sidebar areas are registered** (2 unconditional, 4 WooCommerce-conditional [including 1 off-canvas flag], 5 BuddyPress/Youzify-conditional, 2 EDD-conditional, 1 PeepSo-conditional). **5 sidebar template files exist** — `sidebar.php` (right), `sidebar-left.php`, `sidebar-buddypress.php` (the main BP dispatcher), `sidebar-group-left.php` (hardcoded group nav), `sidebar-activity-left.php` (hardcoded member nav). **Conditional sidebar IDs** `woocommerce-sidebar-right`, `woocommerce-sidebar-left`, `reign_off_canvas_sidebar`, `edd-download-archive-sidebar`, `edd-single-download-sidebar`, and `reign-header-widget-area` are **not currently visible** in the WP CLI `wp sidebar list` output because their dependency plugins (WooCommerce, EDD, PeepSo) are not active on this sandbox.