403Webshell
Server IP : 3.93.235.159  /  Your IP : 216.73.216.140
Web Server : Apache
System : Linux ip-172-26-0-169 5.10.0-46-cloud-amd64 #1 SMP Debian 5.10.262-1 (2026-07-31) x86_64
User : bitnami ( 1000)
PHP Version : 8.2.9
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /bitnami/wordpress/wp-content/plugins/hello-plus/modules/template-parts/components/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /bitnami/wordpress/wp-content/plugins/hello-plus/modules/template-parts/components/checklist.php
<?php
namespace HelloPlus\Modules\TemplateParts\Components;

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

use HelloPlus\Includes\Utils;
use HelloPlus\Modules\TemplateParts\Classes\Steps\Setup_Header;

class Checklist {
	public function __construct() {

		if ( ! class_exists( '\ElementorPro\Modules\Checklist\Steps\Setup_Header' ) ) {
			return;
		}

		add_filter( 'elementor/checklist/steps', [ $this, 'replace_steps' ], 2 );
	}

	/**
	 * @param array $steps
	 * @return \Elementor\Modules\Checklist\Steps\Step_Base[]
	 */
	public function replace_steps( array $steps ): array {
		$formatted_steps = [];

		$module = \Elementor\Modules\Checklist\Module::instance();
		$has_pro = Utils::has_pro();

		$elementor_step_id = ! $has_pro ? \Elementor\Modules\Checklist\Steps\Setup_Header::STEP_ID : \ElementorPro\Modules\Checklist\Steps\Setup_Header::STEP_ID;

		foreach ( $steps as $step_id => $step ) {
			if ( $elementor_step_id !== $step_id || $step->is_absolute_completed() ) {
				$formatted_steps[ $step_id ] = $step;
				continue;
			}

			$header_step = new Setup_Header( $module );
			$formatted_steps[ $header_step->get_id() ] = $header_step;
		}

		return $formatted_steps;
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit