[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: 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 ); } }
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: premium56.web-hosting.com
Server IP: 198.54.119.70
PHP Version: 8.2.30
Server Software: LiteSpeed
System: Linux premium56.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
HDD Total: 97.87 GB
HDD Free: 70.52 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
No
git:
Yes
User Info
Username: bkunreyz
User ID (UID): 830
Group ID (GID): 826
Script Owner UID: 830
Current Dir Owner: 830