forked from slimphp/Slim-Website
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
modify 404 page, header layout and nav layout for multi-version support
- Loading branch information
Showing
7 changed files
with
134 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<select onchange="this.options[this.selectedIndex].value && (window.location = this.options[this.selectedIndex].value);"> | ||
{% assign versions = site.slim_docs_versions | split: ", " %} | ||
{% for version in versions %} | ||
{% assign selected = "" %} | ||
{% if page.url contains version %} | ||
{% assign selected = " selected" %} | ||
{% endif %} | ||
<option value="/docs/{{ version }}"{{ selected }}>{{ version }}</option> | ||
{% endfor %} | ||
</select> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
{% include header.html %} | ||
<div class="wrapper docs"> | ||
<div class="container-fluid"> | ||
<header class="site-header"> | ||
<div class="site-title"><a href="/">Slim</a></div> | ||
<div class="site-slogan">a micro framework for PHP</div> | ||
</header> | ||
|
||
<div class="row"> | ||
<div class="col-md-3"> | ||
<form novalidate="novalidate" onsubmit="return false;" class="searchbox" style="visibility:hidden;height:0"> | ||
<div role="search" class="searchbox__wrapper"> | ||
<input id="docsearch" type="search" name="search" placeholder="Search in the doc" autocomplete="off" required="required" class="searchbox__input"> | ||
<button type="submit" title="Submit your search query." class="searchbox__submit" > | ||
<svg role="img" aria-label="Search"> | ||
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#sbx-icon-search-13"></use> | ||
</svg> | ||
</button> | ||
<button type="reset" title="Clear the search query." class="searchbox__reset hide"> | ||
<svg role="img" aria-label="Reset"> | ||
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#sbx-icon-clear-3"></use> | ||
</svg> | ||
</button> | ||
</div> | ||
</form> | ||
|
||
<div class="svg-icons" style="height: 0; width: 0; position: absolute; visibility: hidden"> | ||
<svg xmlns="http://www.w3.org/2000/svg"> | ||
<symbol id="sbx-icon-clear-3" viewBox="0 0 40 40"><path d="M16.228 20L1.886 5.657 0 3.772 3.772 0l1.885 1.886L20 16.228 34.343 1.886 36.228 0 40 3.772l-1.886 1.885L23.772 20l14.342 14.343L40 36.228 36.228 40l-1.885-1.886L20 23.772 5.657 38.114 3.772 40 0 36.228l1.886-1.885L16.228 20z" fill-rule="evenodd"/></symbol> | ||
<symbol id="sbx-icon-search-13" viewBox="0 0 40 40"><path d="M26.806 29.012a16.312 16.312 0 0 1-10.427 3.746C7.332 32.758 0 25.425 0 16.378 0 7.334 7.333 0 16.38 0c9.045 0 16.378 7.333 16.378 16.38 0 3.96-1.406 7.593-3.746 10.426L39.547 37.34c.607.608.61 1.59-.004 2.203a1.56 1.56 0 0 1-2.202.004L26.807 29.012zm-10.427.627c7.322 0 13.26-5.938 13.26-13.26 0-7.324-5.938-13.26-13.26-13.26-7.324 0-13.26 5.936-13.26 13.26 0 7.322 5.936 13.26 13.26 13.26z" fill-rule="evenodd"/></symbol> | ||
</svg> | ||
</div> | ||
|
||
{% for section in page.docs-v3 %} | ||
{% assign isCurrentSection = false %} | ||
{% for item in section.items %} | ||
{% capture itemUrl %}{{ item[0] | replace: '.md', '.html' }}{% unless item[0] contains ".md" %}/{% endunless %}{% endcapture %} | ||
{% if itemUrl == page.url %} | ||
{% assign isCurrentSection = true %} | ||
{% endif %} | ||
{% endfor %} | ||
<h3 class="toc-title{% if isCurrentSection %} active{% endif %}">{{ section.title }}</h3> | ||
<ul class="toc-links"> | ||
{% for item in section.items %} | ||
{% capture itemUrl %}{{ item[0] | replace: '.md', '.html' }}{% unless item[0] contains ".md" %}/{% endunless %}{% endcapture %} | ||
<li><a href="{{ itemUrl }}">{{ item[1] }}</a></li> | ||
{% endfor %} | ||
</ul> | ||
{% endfor %} | ||
</div> | ||
|
||
<div class="col-md-8 docs-content"> | ||
<h1 class="page-header">{{ page.title }}</h1> | ||
<div class="edit-panel" style="margin: 0 0 1em 0;"> | ||
<a href="{{ site.slim_website_repo }}{{page.path}}" target="_blank" class="btn btn-default btn-xs"><i class="fa fa-github"></i> Edit This Page</a> | ||
{% include version-selector.html %} | ||
</div> | ||
{{ content }} | ||
|
||
<nav> | ||
<ul class="nav pager"> | ||
{% for section in page.docs-v3 %} | ||
{% assign isCurrentSection = false %} | ||
{% for item in section.items %} | ||
|
||
{% comment %}skip menu items that point to a page fragment{% endcomment %} | ||
{% if item[0] contains '#' %} | ||
{% break %} | ||
{% endif %} | ||
|
||
{% capture itemUrl %}{{ item[0] | replace: '.md', '.html' }}{% unless item[0] contains ".md" %}/{% endunless %}{% endcapture %} | ||
{% if itemUrl == page.url %} | ||
{% if prevSection and prevItem %} | ||
<li class="previous"> | ||
<a href="{{ prevItemUrl }}" rel="prev"><i class="fa fa-arrow-left"></i> <small>{{ prevSection.title }}: </small> {{ prevItem[1] }}</a> | ||
</li> | ||
{% endif %} | ||
{% endif %} | ||
|
||
{% if prevItemUrl == page.url %} | ||
<li class="next"> | ||
<a href="{{ itemUrl }}" rel="next"><small>{{ section.title }}: </small> {{ item[1] }} <i class="fa fa-arrow-right"></i></a> | ||
</li> | ||
{% endif %} | ||
|
||
{% assign prevSection = section %} | ||
{% assign prevItem = item %} | ||
{% assign prevItemUrl = itemUrl %} | ||
{% endfor %} | ||
{% endfor %} | ||
</ul> | ||
</nav> | ||
</div> | ||
</div> | ||
|
||
<footer class="site-footer"> | ||
<p> | ||
Created and maintained by <br/> | ||
<a href="http://joshlockhart.com">Josh Lockhart</a>, | ||
<a href="http://www.silentworks.co.uk" target="_blank">Andrew Smith</a>, | ||
<a href="http://akrabat.com/" target="_blank">Rob Allen</a>, and the | ||
<a href="https://github.com/orgs/slimphp/people" target="_blank">Slim Framework Team</a> | ||
</p> | ||
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank" style="margin: 0; padding-top: 20px"> | ||
<input type="hidden" name="cmd" value="_s-xclick"> | ||
<input type="hidden" name="hosted_button_id" value="9YRVXHRZT6H3L"> | ||
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"> | ||
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1"> | ||
</form> | ||
</footer> | ||
</div> | ||
</div> | ||
{% include footer.html %} |
This file was deleted.
Oops, something went wrong.