?>
</span>
<span class="toggle-indicator" aria-hidden="true"></span>
</button>
<h2><?php
_e( 'Available Widgets'
); ?> <span id="removing-widget"><?php
_ex( 'Deactivate', 'removing-widget'
); ?> <span></span></span></h2>
</div>
<div class="widget-holder">
<div class="sidebar-description">
<p class="description"><?php
_e( 'To activate a widget drag it to a sidebar or click on it. To deactivate a widget and delete its settings, drag it back.'
); ?></p>
</div>
<div id="widget-list">
<?php
wp_list_widgets(); ?>
</div>
<br class='clear' />
</div>
<br class="clear" />
</div>
<?php
$theme_sidebars = array
();
foreach ( $wp_registered_sidebars as $sidebar =>
$registered_sidebar ) { if ( str_contains( $registered_sidebar['class'
], 'inactive-sidebar'
) ||
str_starts_with( $sidebar, 'orphaned_widgets'
) ) {