????JFIF??x?x????'
| Server IP : 79.136.114.73 / Your IP : 216.73.216.217 Web Server : Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.29 OpenSSL/1.0.1f System : Linux b8009 3.13.0-170-generic #220-Ubuntu SMP Thu May 9 12:40:49 UTC 2019 x86_64 User : www-data ( 33) PHP Version : 5.5.9-1ubuntu4.29 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/www.astacus.se/wp-content/plugins/Temp-Hold/ubermenu/admin/ |
Upload File : |
<?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
}