| Server IP : 116.202.121.150 / Your IP : 216.73.216.207 Web Server : Apache System : Linux server5.febas.net 6.1.0-51-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.177-1 (2026-07-16) x86_64 User : k9887-1 ( 1171) PHP Version : 8.2.32 Disable Function : show_source, highlight_file, apache_child_terminate, apache_get_modules, apache_note, apache_setenv, virtual, dl, posix_getpwnam, posix_getpwuid, posix_mkfifo, posix_mknod, posix_setpgid, posix_setsid, posix_setuid, posix_uname, proc_nice, openlog, syslog, pfsockopen, system, shell_exec, passthru, popen, proc_open, exec MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/k9887-1/htdocs/_fisch/wp-content/plugins/kioken-blocks/widgets/ |
Upload File : |
<?php
/**
* Load and register widgets
*
* @package
*/
require_once KK_BLOCKS_PATH . 'widgets/working-hours.php';
require_once KK_BLOCKS_PATH . 'widgets/social-media-links.php';
require_once KK_BLOCKS_PATH . 'widgets/kioken-posts.php';
require_once KK_BLOCKS_PATH . 'widgets/kioken-about.php';
/**
* Register widgets
*
* @since 1.0
*
* @return void
*/
function kioken_register_widgets() {
register_widget( 'Kioken_Widget_Working_Hours' );
register_widget( 'Kioken_Widget_Social_Links' );
register_widget( 'Kioken_Widget_Posts' );
register_widget( 'Kioken_Widget_About' );
}
add_action( 'widgets_init', 'kioken_register_widgets' );
if ( ! function_exists( 'bavarian_widget_upload_script' ) ) {
function bavarian_widget_upload_script() {
// Widget Upload
// Register
wp_register_script( 'bavarian-widget-upload', KK_BLOCKS_URL . 'widgets/js/widget-upload.js', '', KK_BLOCKS_VERSION, true );
// Localize
$translation_array = array(
'select_image' => esc_html__( 'Select image', 'kioken-blocks' ),
'use_selected_image' => esc_html__( 'Use selected image', 'kioken-blocks' )
);
wp_localize_script( 'bavarian-widget-upload', 'translation', $translation_array );
// Enqueue
wp_enqueue_script( 'bavarian-widget-upload' );
}
add_action( 'admin_enqueue_scripts', 'bavarian_widget_upload_script' );
}
/**
* Disable the emoji's
*/
function disable_emojis() {
remove_action( 'wp_head', 'print_emoji_detection_script', 7 );
remove_action( 'admin_print_scripts', 'print_emoji_detection_script' );
remove_action( 'wp_print_styles', 'print_emoji_styles' );
remove_action( 'admin_print_styles', 'print_emoji_styles' );
remove_filter( 'the_content_feed', 'wp_staticize_emoji' );
remove_filter( 'comment_text_rss', 'wp_staticize_emoji' );
remove_filter( 'wp_mail', 'wp_staticize_emoji_for_email' );
add_filter( 'tiny_mce_plugins', 'disable_emojis_tinymce' );
add_filter( 'wp_resource_hints', 'disable_emojis_remove_dns_prefetch', 10, 2 );
}
add_action( 'init', 'disable_emojis' );
/**
* Filter function used to remove the tinymce emoji plugin.
*
* @param array $plugins
* @return array Difference betwen the two arrays
*/
function disable_emojis_tinymce( $plugins ) {
if ( is_array( $plugins ) ) {
return array_diff( $plugins, array( 'wpemoji' ) );
} else {
return array();
}
}
/**
* Remove emoji CDN hostname from DNS prefetching hints.
*
* @param array $urls URLs to print for resource hints.
* @param string $relation_type The relation type the URLs are printed for.
* @return array Difference betwen the two arrays.
*/
function disable_emojis_remove_dns_prefetch( $urls, $relation_type ) {
if ( 'dns-prefetch' == $relation_type ) {
/** This filter is documented in wp-includes/formatting.php */
$emoji_svg_url = apply_filters( 'emoji_svg_url', 'https://s.w.org/images/core/emoji/2/svg/' );
$urls = array_diff( $urls, array( $emoji_svg_url ) );
}
return $urls;
}