1
0
mirror of https://github.com/pattern-lab/patternlab-php.git synced 2025-01-17 14:18:30 +01:00

properly referencing vars for showing the viewall views

This commit is contained in:
Dave Olsen 2014-06-02 21:35:00 -04:00
parent ce437529b4
commit 2de36c9416

View File

@ -46,6 +46,7 @@ class PatternPartialsExporter extends \PatternLab\PatternData\Exporter {
$patternPartialData["patternName"] = ucwords($patternStoreData["nameClean"]);
$patternPartialData["patternLink"] = $patternStoreData["pathDash"]."/".$patternStoreData["pathDash"].".html";
$patternPartialData["patternPartial"] = $patternStoreData["partial"];
$patternPartialData["patternPartialCode"] = $patternStoreData["code"];
$patternPartialData["patternLineageExists"] = isset($patternStoreData["lineages"]);
$patternPartialData["patternLineages"] = isset($patternStoreData["lineages"]) ? $patternStoreData["lineages"] : array();
@ -54,10 +55,10 @@ class PatternPartialsExporter extends \PatternLab\PatternData\Exporter {
$patternPartialData["patternLineageEExists"] = (isset($patternStoreData["lineages"]) || isset($patternStoreData["lineagesR"]));
$patternPartialData["patternDescExists"] = isset($patternStoreData["desc"]);
$patternPartialData["patternDescExists"] = isset($patternStoreData["desc"]) ? $patternStoreData["desc"] : "";
$patternPartialData["patternDesc"] = isset($patternStoreData["desc"]) ? $patternStoreData["desc"] : "";
$patternPartialData["patternModifiersExists"] = isset($patternStoreData["modifiers"]);
$patternPartialData["patternModifiersExists"] = isset($patternStoreData["modifiers"]) ? $patternStoreData["modifiers"] : array();
$patternPartialData["patternModifiers"] = isset($patternStoreData["modifiers"]) ? $patternStoreData["modifiers"] : array();
$patternPartialData["patternCSSExists"] = Config::$options["enableCSS"];