403Webshell
Server IP : 15.235.198.142  /  Your IP : 216.73.216.34
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux ballsack 6.8.0-45-generic #45-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 30 12:02:04 UTC 2024 x86_64
User : www-data ( 33)
PHP Version : 8.3.6
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/rhodeworks/wp-content/plugins/nextgen-gallery/src/Functions/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/rhodeworks/wp-content/plugins/nextgen-gallery/src/Functions/deprecated.php
<?php


/**
 * Remove once get_pro_api_version() is > 4.0
 *
 * @deprecated
 */
function nextgen_esc_url( $url, $protocols = null, $context = 'display' ) {
	return \Imagely\NGG\Util\Router::esc_url( $url, $protocols, $context );
}

/**
 * @depecated
 */
function nggShowRelatedGallery( $taglist, $maxImages = 0 ) {
	return \Imagely\NGG\Display\DisplayManager::_render_related_string( $taglist, $maxImages, $type = null );
}

/**
 * @depecated
 */
function nggShowRelatedImages( $type = null, $maxImages = 0 ) {
	return \Imagely\NGG\Display\DisplayManager::_render_related_string( null, $maxImages, $type );
}

/**
 * @deprecated
 */
function the_related_images( $type = 'tags', $maxNumbers = 7 ) {
	return \Imagely\NGG\Display\DisplayManager::_render_related_string( null, $maxNumbers, $type );
}

/**
 * @depecated
 */
function nggShowImageBrowser( $galleryID, $template = '' ) {
	$renderer = \Imagely\NGG\DisplayedGallery\Renderer::get_instance();
	$retval   = $renderer->display_images(
		[
			'gallery_ids'  => [ $galleryID ],
			'display_type' => NGG_BASIC_IMAGEBROWSER,
			'template'     => $template,
		]
	);

	return apply_filters( 'ngg_show_imagebrowser_content', $retval, $galleryID );
}

/**
 * @deprecated
 */
function nggCreateImageBrowser( $picturelist, $template = '' ) {
	$renderer  = \Imagely\NGG\DisplayedGallery\Renderer::get_instance();
	$image_ids = [];
	foreach ( $picturelist as $image ) {
		$image_ids[] = $image->pid;
	}
	return $renderer->display_images(
		[
			'image_ids'    => $image_ids,
			'display_type' => NGG_BASIC_IMAGEBROWSER,
			'template'     => $template,
		]
	);
}

/**
 * @deprecated
 */
function nggShowSlideshow( $galleryID, $width, $height ) {
	$args = [
		'source'         => 'galleries',
		'container_ids'  => $galleryID,
		'gallery_width'  => $width,
		'gallery_height' => $height,
		'display_type'   => NGG_BASIC_SLIDESHOW,
	];

	echo \Imagely\NGG\DisplayedGallery\Renderer::get_instance()->display_images( $args );
}

/**
 * @deprecated
 */
function nggShowGallery( $galleryID, $template = '', $images_per_page = false ) {
	$args = [
		'source'        => 'galleries',
		'container_ids' => $galleryID,
	];

	if ( apply_filters( 'ngg_show_imagebrowser_first', false, $galleryID ) ) {
		$args['display_type'] = NGG_BASIC_IMAGEBROWSER;
	} else {
		$args['display_type'] = NGG_BASIC_THUMBNAILS;
	}

	if ( ! empty( $template ) ) {
		$args['template'] = $template;
	}
	if ( ! empty( $images_per_page ) ) {
		$args['images_per_page'] = $images_per_page;
	}

	echo \Imagely\NGG\DisplayedGallery\Renderer::get_instance()->display_images( $args );
}

/**
 * @deprecated
 */
function nggShowAlbum( $albumID, $template = 'extend', $gallery_template = '' ) {
	$renderer = \Imagely\NGG\DisplayedGallery\Renderer::get_instance();
	$retval   = $renderer->display_images(
		[
			'album_ids'                => [ $albumID ],
			'display_type'             => 'photocrati-nextgen_basic_extended_album',
			'template'                 => $template,
			'gallery_display_template' => $gallery_template,
		]
	);

	return apply_filters( 'ngg_show_album_content', $retval, $albumID );
}

/**
 * This class is used by some 3rd party plugins. For compatibility this class exists to accept the stdClass passed to
 * the register() method and cast it to a NGG Lightbox data type before registration.
 *
 * @depecated
 */
class C_Lightbox_Library_Manager {
	public static $instance = null;

	public static function get_instance() {
		if ( ! isset( self::$instance ) ) {
			self::$instance = new C_Lightbox_Library_Manager();
		}

		return self::$instance;
	}

	public function __call( $method, $args ) {
		$manager = \Imagely\NGG\Display\LightboxManager::get_instance();
		return $manager->$method( ...$args );
	}

	public function register( string $name, $lightbox ) {
		$manager = \Imagely\NGG\Display\LightboxManager::get_instance();

		// Clone a new Lightbox class using the attributes in a regular stdClass.
		$new_lightbox = new \Imagely\NGG\DataTypes\Lightbox( $name );
		foreach ( get_object_vars( $lightbox ) as $key => $value ) {
			$new_lightbox->$key = $value;
		}

		$manager->register( $name, $new_lightbox );
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit