GhostManSec
Server: Apache
System: Linux webm019.cluster130.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: exhehbu (1008962)
PHP: 8.0.30
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/exhehbu/www/wp-content/plugins/revolution-plugin/inc/widgets/widgets-init.php
<?php

function thb_register_widgets() {
 $thb_widgets = array(
   'twitter-widget'      => 'widget_thb_twitterwidget',
   'spacer'              => 'widget_thb_spacer',
   'latest-posts-images' => 'widget_latestimages',
   'instagram'           => 'thb_instagram',
   'contact-form-7'      => 'widget_thb_contactform',
 );
 foreach ( $thb_widgets as $key => $value ) {
   require_once( thb_revolution_plugin()->get_plugin_path() . 'inc/widgets/' . sanitize_key( $key ) . '.php');
   register_widget( $value );
 }
}

add_action( 'widgets_init', 'thb_register_widgets' );

/**
 * Create HTML dropdown list of Categories.
 */
if ( ! class_exists( 'THB_Posts_Categories_Tree_Walker' ) ) {
  class THB_Posts_Categories_Tree_Walker extends Walker_CategoryDropdown {

  	/**
  	 * Starts the element output.
  	 *
  	 * @since 2.1.0
  	 * @access public
  	 *
  	 * @see Walker::start_el()
  	 *
  	 * @param string $output   Passed by reference. Used to append additional content.
  	 * @param object $category Category data object.
  	 * @param int    $depth    Depth of category. Used for padding.
  	 * @param array  $args     Uses 'selected', 'show_count', and 'value_field' keys, if they exist.
  	 *                         See wp_dropdown_categories().
  	 * @param int    $id       Optional. ID of the current category. Default 0 (unused).
  	 */
  	public function start_el( &$output, $category, $depth = 0, $args = array(), $id = 0 ) {
  		$space  = str_repeat( '&nbsp;', $depth * 3 );
  		$space .= $depth > 0 ? '- ' : '';

  		$term_id  = isset( $category->term_id ) ? intval( $category->term_id ) : false;
  		if ( $term_id ) {
  			$cat_name = apply_filters( 'list_cats', $category->name, $category );
  			$output  .= '<option class="level-' . $depth . '" value="' . $term_id . '" ' . selected( true, in_array( $term_id, $args['selected'] ) ) . '>';
  			$output  .= $space . $cat_name;
  			$output  .= '</option>';
  		}
  	}
  }
}