HEX
Server: LiteSpeed
System: Linux server334.web-hosting.com 4.18.0-553.124.4.lve.el8.x86_64 #1 SMP Fri May 15 13:02:13 UTC 2026 x86_64
User: richfield (1256)
PHP: 8.2.31
Disabled: NONE
Upload Files
File: //proc/self/cwd/wp-content/plugins/blocksy-companion/framework/features/conditions/rules/basic.php
<?php

$everywhere_title = __('Entire Website', 'blocksy-companion');

if (
	$filter === 'product_tabs'
	||
	$filter === 'product_waitlist'
) {
	$everywhere_title = __('All Products', 'blocksy-companion');
}

$options = [];

if (
	$filter !== 'archive'
	&&
	$filter !== 'singular'
) {
	$options[] = [
		'title' => '',
		'rules' => [
			[
				'id' => 'everywhere',
				'title' => $everywhere_title
			]
		]
	];
}

$basic_rules = [];

if (
	$filter === 'all'
	||
	$filter === 'singular'
) {
	$basic_rules[] = [
		'id' => 'singulars',
		'title' => __('All Singulars', 'blocksy-companion')
	];
}

if (
	$filter === 'all'
	||
	$filter === 'archive'
) {
	$basic_rules[] = [
		'id' => $filter === 'archive' ? 'everywhere' : 'archives',
		'title' => __('All Archives', 'blocksy-companion')
	];
}

if (! empty($basic_rules)) {
	$options[] = [
		'title' => __('Basic', 'blocksy-companion'),
		'rules' => $basic_rules
	];
}