Skip to content

Commit 16d5f4d

Browse files
committed
Merge branch 'fix-all-views' of https://github.com/aleksip/patternlab-php-core into hotfix-allthethings
2 parents e23dbe1 + 7655890 commit 16d5f4d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/PatternLab/PatternData/Exporters/PatternPartialsExporter.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function run($type = "", $subtype = "") {
4242
$store = PatternData::get();
4343
foreach ($store as $patternStoreKey => $patternStoreData) {
4444

45-
if (($patternStoreData["category"] == "pattern") && (!$patternStoreData["hidden"]) && (!$patternStoreData["noviewall"]) && ($patternStoreData["depth"] == 2) && (!in_array($patternStoreData["type"],$styleGuideExcludes))) {
45+
if (($patternStoreData["category"] == "pattern") && (!$patternStoreData["hidden"]) && (!$patternStoreData["noviewall"]) && ($patternStoreData["depth"] > 1) && (!in_array($patternStoreData["type"],$styleGuideExcludes))) {
4646

4747
if ((($patternStoreData["type"] == $type) && empty($subtype)) || (empty($type) && empty($subtype)) || (($patternStoreData["type"] == $type) && ($patternStoreData["subtype"] == $subtype))) {
4848

src/PatternLab/PatternData/Rules/PatternRule.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public function run($depth, $ext, $path, $pathName, $name) {
9494
"extraOutput" => array());
9595

9696
// add any subtype info if necessary
97-
if ($depth == 2) {
97+
if ($depth > 1) {
9898
$patternStoreData["subtype"] = $patternSubtype;
9999
$patternStoreData["subtypeDash"] = $patternSubtypeDash;
100100
$patternStoreData["breadcrumb"] = $patternTypeClean." > ".$patternSubtypeClean;

src/PatternLab/PatternData/Rules/PseudoPatternRule.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public function run($depth, $ext, $path, $pathName, $name) {
112112
"pathOrigDash" => $patternPathOrigDash);
113113

114114
// add any subtype info if necessary
115-
if ($depth == 2) {
115+
if ($depth > 1) {
116116
$patternStoreData["subtype"] = $patternSubtype;
117117
$patternStoreData["subtypeDash"] = $patternSubtypeDash;
118118
$patternStoreData["breadcrumb"] = $patternType." > ".$patternSubtype;

0 commit comments

Comments
 (0)