HEX
Server: nginx/1.27.1
System: Linux in-4 5.15.0-131-generic #141-Ubuntu SMP Fri Jan 10 21:18:28 UTC 2025 x86_64
User: ilikadirect (1186)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source
Upload Files
File: /storage/v6964/srce/public_html/wp-content/plugins/coming-soon/app/functions-envira-gallaries.php
<?php

/**
 * Get All Envira Gallery.
 *
 * @return void
 */
function seedprod_lite_get_envira_galleries() {
	if ( check_ajax_referer( 'seedprod_nonce' ) ) {
		if ( ! current_user_can( apply_filters( 'seedprod_builder_preview_render_capability', 'edit_others_posts' ) ) ) {
			wp_send_json_error();
		}

		$type      = filter_input( INPUT_GET, 'type', FILTER_SANITIZE_STRING );
		$galleries = array();

		if ( 'lite' === $type ) {
			if ( class_exists( 'Envira_Gallery_Lite' ) ) {
				$galleries = Envira_Gallery_Lite::get_instance()->_get_galleries();
			}
		} elseif ( class_exists( 'Envira_Gallery' ) ) {
				$galleries = Envira_Gallery::get_instance()->_get_galleries();
		}
		wp_send_json( $galleries );
	}
}