403Webshell
Server IP : 216.106.184.20  /  Your IP : 216.73.216.234
Web Server : LiteSpeed
System : Linux asmodeus.in-hell.com 5.14.0-570.58.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Oct 29 06:24:11 EDT 2025 x86_64
User : sekoaid1 ( 1891)
PHP Version : 7.3.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/sekoaid1/public_html/wp-content/plugins/wp-popups-lite/src/includes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/sekoaid1/public_html/wp-content/plugins/wp-popups-lite/src/includes//class-templates.php
<?php

/**
 * Pre-configured packaged templates.
 *
 * @package    WPPopups
 * @author     WPPopups
 * @since 2.0.0
 * @license    GPL-2.0+
 * @copyright  Copyright (c) 2016, WP Popups LLC
 */
class WPPopups_Templates {

	/**
	 * Primary class constructor.
	 *
	 * @since 2.0.0
	 */
	public function __construct() {

		$this->init();
	}

	/**
	 * Load and init the base form template class.
	 *
	 * @since 2.0.0
	 */
	public function init() {

		// Parent class template
		require_once WPPOPUPS_PLUGIN_DIR . 'includes/templates/class-base.php';

		// Load default templates on WP init
		add_action( 'init', [ $this, 'load' ] );
	}

	/**
	 * Load default form templates.
	 *
	 * @since 2.0.0
	 */
	public function load() {

		$templates = apply_filters(
			'wppopups_load_templates', [
				'blank',
				'coupon',
				'elegant',
				'transparent',
			]
		);

		foreach ( $templates as $template ) {

			$template = sanitize_file_name( $template );

			if ( file_exists( WPPOPUPS_PLUGIN_DIR . 'includes/templates/class-' . $template . '.php' ) ) {
				require_once WPPOPUPS_PLUGIN_DIR . 'includes/templates/class-' . $template . '.php';
			} elseif ( file_exists( WPPOPUPS_PLUGIN_DIR . 'pro/includes/templates/class-' . $template . '.php' ) ) {
				require_once WPPOPUPS_PLUGIN_DIR . 'pro/includes/templates/class-' . $template . '.php';
			}
		}
	}
}

new WPPopups_Templates();

Youez - 2016 - github.com/yon3zu
LinuXploit