HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux wordpress-ubuntu-s-2vcpu-4gb-fra1-01 5.4.0-169-generic #187-Ubuntu SMP Thu Nov 23 14:52:28 UTC 2023 x86_64
User: root (0)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/zaklada/wp-content/plugins/responsive-lightbox/includes/class-folders-walker.php
<?php
// exit if accessed directly
if ( ! defined( 'ABSPATH' ) )
	exit;

class Responsive_Lightbox_Folders_Walker extends Walker {

	var $tree_type = 'category';
	var $db_fields = array(
		'parent'	=> 'parent',
		'id'		=> 'term_id'
	);

	/**
	 * Starts the list before the elements are added.
	 *
	 * @param string	$output Passed by reference, used to append additional content
	 * @param int $depth Depth of the item
	 * @param array $args An array of additional arguments
	 */
	function start_lvl( &$output, $depth = 0, $args = array() ) {
		$output .= str_repeat( "\t", $depth ) . "<ul class='children'>\n";
	}

	/**
	 * Ends the list of after the elements are added.
	 *
	 * @param string $output Passed by reference, used to append additional content
	 * @param int $depth Depth of the item
	 * @param array $args An array of additional arguments
	 */
	function end_lvl( &$output, $depth = 0, $args = array() ) {
		$output .= str_repeat( "\t", $depth ) . "</ul>\n";
	}

	/**
	 * Start the element output.
	 *
	 * @param string $output Passed by reference, used to append additional content
	 * @param object $category The current term object
	 * @param int $depth Depth of the item
	 * @param array $args An array of additional arguments
	 * @param int $id ID of the current item
	 */
	function start_el( &$output, $category, $depth = 0, $args = array(), $id = 0 ) {
		extract( $args );

		if ( empty( $taxonomy ) )
			$taxonomy = Visual_Folders()->options['general']['media_taxonomy'];

		$class = in_array( $category->term_id, $popular_cats ) ? ' class="popular-category"' : '';

		$output .= "\n<li id='{$taxonomy}-{$category->term_id}'$class>" . '<label class="selectit"><input value="' . $category->slug . '" type="checkbox" name="' . $taxonomy . '_terms[' . $category->slug . ']" id="in-' . $taxonomy . '-' . $category->term_id . '" ' . checked( in_array( $category->term_id, $selected_cats ), true, false ) . ' ' . disabled( empty( $args['disabled'] ), false, false ) . ' /> ' . esc_html( apply_filters( 'the_category', $category->name ) ) . '</label>';
	}

	/**
	 * Ends the element output, if needed.
	 *
	 * @param string $output Passed by reference, used to append additional content
	 * @param object $category The current term object
	 * @param int $depth Depth of the item
	 * @param array $args An array of additional arguments
	 */
	function end_el( &$output, $category, $depth = 0, $args = array() ) {
		$output .= "</li>\n";
	}
}