HEX
Server: Apache
System: Linux web2213.uni5.net 5.4.282-1.el8.elrepo.x86_64 #1 SMP Mon Aug 19 18:33:22 EDT 2024 x86_64
User: clinicamaciel (596848)
PHP: 7.3.33
Disabled: apache_child_terminate,c99_buff_prepare,c99_sess_put,dl,eval,exec,leak,link,myshellexec,openlog,passthru,pclose,pcntl_exec,php_check_syntax,php_strip_whitespace,popen,posix_kill,posix_mkfifo,posix_setpgid,posix_setsid,posix_setuid,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec,show_source,symlink,system,socket_listen,socket_create_listen,putenv
Upload Files
File: /home/clinicamaciel/www/wp-content/plugins/cherry-plugin/includes/widgets/register-widgets.php
<?php
/**
 * Loads up all the widgets defined by this theme. Note that this function will not work for versions of WordPress 2.7 or lower
 *
 */
function cherry_load_widgets() {
	$widget_files = array(
		'MY_PostWidget'                 => 'my-recent-posts.php',
		'MY_CommentWidget'              => 'my-comment-widget.php',
		'My_SocialNetworksWidget'       => 'my-social-widget.php',
		'MY_PostsTypeWidget'            => 'my-posts-type-widget.php',
		'MY_FlickrWidget'               => 'my-flickr-widget.php',
		'Ad_125_125_Widget'             => 'my-banners-widget.php',
		'MY_Vcard_Widget'               => 'my-vcard-widget.php',
		'My_Facebook_Widget'            => 'my-facebook-widget.php',
		'MY_CycleWidget'                => 'my-post-cycle-widget.php',
		'Cherry_Instagram_Widget'       => 'cherry-instagram-widget.php',
		'Cherry_Banner_Widget'          => 'cherry-banner-widget.php',
		'Cherry_Twitter_Embed_Widget'   => 'cherry-twitter-embed-widget.php',
		'Cherry_Pinterest_Embed_Widget' => 'cherry-pinterest-embed-widget.php',
	);
	foreach ( $widget_files as $class_name => $file_name ) {
		$widget_dir = file_exists( CURRENT_THEME_DIR . '/includes/widgets/' . $file_name ) ? CURRENT_THEME_DIR . '/includes/widgets/' . $file_name : CHERRY_PLUGIN_DIR . 'includes/widgets/' . $file_name ;
		include_once ( $widget_dir );
		if ( class_exists( $class_name ) ) {
			register_widget( $class_name );
		}
	}
}
add_action( 'widgets_init', 'cherry_load_widgets' );
?>