403Webshell
Server IP : 37.187.148.235  /  Your IP : 216.73.216.195
Web Server : Apache/2.4.58 (Ubuntu) mod_fcgid/2.3.9 OpenSSL/3.0.13
System : Linux server01.weblinkdesign.it 6.8.0-107-generic #107-Ubuntu SMP PREEMPT_DYNAMIC Fri Mar 13 19:51:50 UTC 2026 x86_64
User : lucafiask ( 1024)
PHP Version : 8.3.30
Disable Function : 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_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,exec,system,passthru,shell_exec,proc_open,popen
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /home/lucafiask/web/dev.acquamark.it/public_html/wp-content/themes/bricks/includes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/lucafiask/web/dev.acquamark.it/public_html/wp-content/themes/bricks/includes/cli.php
<?php
namespace Bricks;

if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly

/**
 * WP CLI commands for Bricks
 *
 * https://wp-cli.org/
 *
 * @since 1.8.1
 */
class CLI {
	public function __construct() {
		if ( defined( 'WP_CLI' ) && WP_CLI ) {
			// https://make.wordpress.org/cli/handbook/references/internal-api/wp-cli-add-command/
			\WP_CLI::add_command( 'bricks', '\Bricks\CLI' );
		}
	}

	public function regenerate_assets() {
		if ( Database::get_setting( 'cssLoading' ) !== 'file' ) {
			\WP_CLI::warning( 'EXIT: CSS loading method set to "Inline styles"' );
			return;
		}

		$generated_css_file_names = [];
		$css_files                = Assets_Files::get_css_files_list( true );

		if ( is_array( $css_files ) ) {
			foreach ( $css_files as $index => $css_file ) {
				$file_name = Assets_Files::regenerate_css_file( $css_file, $index, true );

				// Theme styles
				if ( is_array( $file_name ) ) {
					foreach ( $file_name as $name ) {
						if ( $name ) {
							$generated_css_file_names[] = $name;
							\WP_CLI::success( 'Generated CSS file: ' . $name );
						}
					}
				}

				// Single post, etc.
				else {
					if ( $file_name ) {
						$generated_css_file_names[] = $file_name;
						\WP_CLI::success( 'Generated CSS file: ' . $file_name );
					}
				}
			}
		}

		\WP_CLI::log( 'DONE! Generated CSS files: ' . count( $generated_css_file_names ) );
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit