Skip to content

Preview block appearance with different classes

Bugo edited this page Nov 13, 2024 · 2 revisions

Create a PHP page with this code:

<?php

use Bugo\Compat\{Lang, Utils};

echo '
	<div class="row">';

$pairs = [];
foreach (Utils::$context['lp_all_title_classes'] as $aKey => $aItem) {
	foreach(Utils::$context['lp_all_content_classes'] as $bKey => $bItem) {
		echo '
			<aside class="col-xs-4 col-sm-3 col-lg-2">';

		$pairs[] = [sprintf($aItem, 'Title'), sprintf($bItem, 'Content', '')];

		echo sprintf($aItem, Lang::$txt['lp_title']);
		echo sprintf($bItem, 'Lorem ipsum dolor sit amet', '');

		echo '
			</aside>';
	}
}

echo '
	</div>';

echo 'Total variants: ', count($pairs);

?>