https://t.me/RX1948
Server : Apache
System : Linux server.lienzindia.com 4.18.0-348.7.1.el8_5.x86_64 #1 SMP Wed Dec 22 13:25:12 UTC 2021 x86_64
User : plutus ( 1007)
PHP Version : 7.4.33
Disable Function : NONE
Directory :  /home/plutus/public_html/wp-content/plugins/ubermenu/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/plutus/public_html/wp-content/plugins/ubermenu/admin/settings.widget-manager.php
<?php

function ubermenu_widget_manager_panel(){

	$menu_item_widget_areas = get_option( UBERMENU_MENU_ITEM_WIDGET_AREAS , array() );
	
	if( isset( $_GET['widget_area_id'] ) ){
		$widget_area_ids = $_GET['widget_area_id'];
		if( $widget_area_ids ){

			//uberp( $widget_area_ids );
			foreach( $widget_area_ids as $id ){
				if( isset( $menu_item_widget_areas[$id] ) ){
					add_settings_error( 'widget-manager' , 'deletion-notice' , 'Deleted Widget Area: '.$menu_item_widget_areas[$id] , 'updated' );
					unset( $menu_item_widget_areas[$id] );
				}
			}

			update_option( UBERMENU_MENU_ITEM_WIDGET_AREAS , $menu_item_widget_areas );

		}
	}


	?>
	<div class="wrap ubermenu-wrap">

		<?php settings_errors(); ?>
	
		<h2><strong>UberMenu</strong> Widget Manager <span class="ubermenu-version">v<?php echo UBERMENU_VERSION; ?></span></h2>

		<p>This screen allows you to remove orphaned custom widget areas.  Check the widget areas you wish to delete.</p>
		<p>Note that if you re-save a menu item with the Custom Widget Area Setting, the widget area will be regenerated</p>
		<p>To remove reusable widget areas, click the Widgets tab under General Settings</p>

		<?php

		if( count( $menu_item_widget_areas ) == 0 ){
			echo '<div class="error below-h2"><p>';
			echo __( '<strong>No Custom Widget Areas found</strong>', 'ubermenu' );
			echo '</p></div>';
		}

		?>
		<form>
			<input type="hidden" name="page" value="ubermenu-settings" />
			<input type="hidden" name="do" value="widget-manager" />
			<?php wp_nonce_field( 'ubermenu-control-panel-do' , 'ubermenu_nonce' ); ?>

		<?php
		foreach( $menu_item_widget_areas as $menu_item_id => $widget_title ){

			?>
			<div>
				<label><input name="widget_area_id[]" type="checkbox" value="<?php echo $menu_item_id; ?>" /> <strong><?php echo $widget_title.'</strong> [Menu Item '.$menu_item_id.']'; ?></label>
			</div>
			<?php
		}

		?>
			<br/>
			
			<input class="button button-primary" type="submit" value="Delete Widget Areas" />
		</form>
		<br/>
		<br/>
		
		<?php ubermenu_admin_back_to_settings_button(); ?>
 
	</div>
	<?php
}

https://t.me/RX1948 - 2025