Skip to content
This repository was archived by the owner on Feb 7, 2023. It is now read-only.

Commit 768ddc9

Browse files
committed
Merge branch 'dev' of https://github.com/pattern-lab/patternlab-php into dev
2 parents 9f8cac9 + 8231b86 commit 768ddc9

29 files changed

+458
-4629
lines changed

.gitignore

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,17 @@ latest-change.txt
1010
*-ck.js
1111

1212
/core/source/css/.sass-cache/
13+
14+
/public/styleguide/css/styleguide.css
15+
/public/styleguide/css/styleguide.scss
16+
17+
/core/styleguide/css/.sass-cache/
18+
19+
/public/styleguide/js/styleguide.js
20+
21+
/public/styleguide/js/annotations-viewer.js
22+
/public/styleguide/js/code-viewer.js
23+
24+
/public/styleguide/css/states.css
25+
/public/styleguide/css/static.css
26+
/public/styleguide/css/static.scss

README.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
## About the PHP Version of Pattern Lab
22

3-
The PHP version of Pattern Lab is, at its core, a static site generator. It combines platform-agnostic assets, like the [Mustache](http://mustache.github.io/)-based patterns and the JavaScript-based viewer, with a PHP-based "builder" that transforms and dynamically builds the Pattern Lab site. By making it a static site generator, the PHP version of Pattern Lab strongly separates patterns, data, and presentation from build logic. The PHP version should be seen as a reference for other developers to improve upon as they build their own Pattern Lab Builders in their language of choice.
3+
The PHP version of Pattern Lab is, at its core, a static site generator. It combines platform-agnostic assets, like the [Mustache](http://mustache.github.io/)-based patterns and the JavaScript-based viewer, with a PHP-based "builder" that transforms and dynamically builds the Pattern Lab site. By making it a static site generator, Pattern Lab strongly separates patterns, data, and presentation from build logic.
44

55
## Demo
66

7-
You can play with a demo of the front-end of the PHP version of Pattern Lab at [demo.pattern-lab.info](http://demo.pattern-lab.info).
7+
You can play with a demo of the front-end of Pattern Lab at [demo.pattern-lab.info](http://demo.pattern-lab.info).
88

99
## Getting Started
1010

11-
The PHP version of Pattern Lab should be relatively easy for anyone to get up and running.
12-
1311
* [Requirements](http://pattern-lab.info/docs/requirements.html)
1412
* [Installing the PHP Version of Pattern Lab](http://pattern-lab.info/docs/installation.html)
1513
* [Upgrading the PHP Version of Pattern Lab](http://pattern-lab.info/docs/upgrading.html)
@@ -46,7 +44,7 @@ The PHP version of Pattern Lab utilizes Mustache as the template language for pa
4644

4745
## Using Pattern Lab's Advanced Features
4846

49-
By default, the Pattern Lab assets can be manually generated and the Pattern Lab site manually refreshed but who wants to waste time doing that? Here are some ways that the PHP version of Pattern Lab can make your development workflow a little smoother:
47+
By default, the Pattern Lab assets can be manually generated and the Pattern Lab site manually refreshed but who wants to waste time doing that? Here are some ways that Pattern Lab can make your development workflow a little smoother:
5048

5149
* [Watching for Changes and Auto-Regenerating Patterns](http://pattern-lab.info/docs/advanced-auto-regenerate.html)
5250
* [Auto-Reloading the Browser Window When Changes Are Made](http://pattern-lab.info/docs/advanced-reload-browser.html)
@@ -56,4 +54,4 @@ By default, the Pattern Lab assets can be manually generated and the Pattern Lab
5654
* [Preventing the Cleaning of public/](http://pattern-lab.info/docs/advanced-clean-public.html)
5755
* [Generating CSS](http://pattern-lab.info/docs/advanced-generating-css.html)
5856
* [Modifying the Pattern Lab Nav](http://pattern-lab.info/docs/advanced-pattern-lab-nav.html)
59-
* [Integration with Compass](http://pattern-lab.info/docs/advanced-integration-with-compass.html)
57+
* [Integration with Compass](http://pattern-lab.info/docs/advanced-integration-with-compass.html)

core/config/config.ini.default

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ cleanPublic = "true"
2222
xipHostname = "http://patternlab.*.xip.io"
2323

2424
// which, if any, controls to hide in the nav
25-
ishControlsHide = ""
25+
ishControlsHide = "hay"
2626

2727
// the order of pattern states
2828
patternStates = "inprogress,inreview,complete"

core/source/_data/_data.json

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,5 +75,19 @@
7575
"author" : {
7676
"first-name": "Author",
7777
"last-name": "Name"
78-
}
78+
},
79+
"hero": true,
80+
"emergency" : false,
81+
"touts" : [
82+
{ },
83+
{ },
84+
{ }
85+
],
86+
"latest-posts" : [
87+
{ },
88+
{ },
89+
{ },
90+
{ },
91+
{ }
92+
]
7993
}

core/source/_patterns/03-templates/00-homepage.mustache

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{{> organisms-header }}
33
<div role="main">
44
{{# emergency }}
5-
{{> molecules-alert }}
5+
{{> molecules-alert:error }}
66
{{/ emergency }}
77
{{# hero }}
88
{{> molecules-block-hero }}
@@ -23,17 +23,18 @@
2323
<section class="section latest-posts">
2424
<h2 class="section-title">Latest Posts</h2>
2525
<ul class="post-list">
26-
{{# latest-posts}}
26+
{{# latest-posts }}
2727
<li>{{> molecules-media-block }}</li>
28-
{{/ latest-posts}}
28+
{{/ latest-posts }}
2929
</ul>
3030
<a href="#" class="text-btn">View more posts</a>
3131
</section>
32-
</div>
32+
</div><!--end .l-main-->
3333

3434
<div class="l-sidebar">
3535
{{> organisms-recent-tweets }}
36-
</div><!--end l-sidebar-->
36+
</div><!--end .l-sidebar-->
37+
</div><!--end .l-two-col-->
3738
</div><!--End role=main-->
3839
{{> organisms-footer }}
3940
</div>

core/source/images/fpo_16x9.png

-6.75 KB
Loading

core/source/images/fpo_4x3.png

-11.9 KB
Loading

core/styleguide/css/states.css

Lines changed: 0 additions & 47 deletions
This file was deleted.

core/styleguide/css/static.css

Whitespace-only changes.

0 commit comments

Comments
 (0)