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
<?php | |
if(!isset($subpages)) $subpages = $site->pages() | |
$ignore = array( | |
'blog/feed', | |
'another/hidden/page' | |
); | |
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
<?php | |
$stream = $pages->find('events', 'blog')->children(); | |
echo $stream | |
// sollte jetzt alle kinderchen von blog und events auswerfen | |
?> |
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
<!-- site/snippets/pagination.php --> | |
<nav role="pagination"> | |
<div class="count"> | |
<strong><?php echo $pagination->countItems() ?></strong> Results / showing <strong><?php echo $pagination->numStart() ?></strong> - <strong><?php echo $pagination->numEnd() ?></strong> | |
</div> | |
<div class="buttons"> | |
<? if($pagination->hasPrevPage()): ?> | |
<a class="prev" href="<?= $pagination->prevPageURL() ?>">‹ previous</a> |
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
DirectoryIndex index.php index.htm index.html | |
# disable directory listing | |
Options -Indexes | |
# rewrite rules | |
<IfModule mod_rewrite.c> | |
RewriteEngine on | |
RewriteCond %{REQUEST_FILENAME} !-f |
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
/** | |
* PE to use SVG as CSS background image with fallback for IE8/7/6 | |
* | |
* Using SVG as CSS background image to display | |
* resolution-independent logos or icons is pretty | |
* awesome but does completely fail on IE8/7/6 | |
* | |
* The trick: | |
* All three IE versions don't support rgba color values. | |
* By defining a rgba background color together with the |
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
<?php | |
$file = $page->videos()->find($page->dateiname()); | |
if($file) echo $file->url(); | |
?> |
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
<ul> | |
<?php foreach($pages->index() as $p): ?> | |
<?php if($p->promoted() != 'yes') continue; ?> | |
<li><?php echo $p->title() ?></li> | |
<?php endforeach ?> | |
</ul> |
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
<?php | |
$blog = $pages->find('blog'); | |
$index = $blog->children()->index(); | |
$cloud = array(); | |
foreach($index as $p) { | |
$tags = str::split((string)$p->tags()); | |
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
<nav class="pagination"> | |
<div class="count"> | |
<strong><?php echo $pagination->countItems() ?></strong> Results / showing <strong><?php echo $pagination->numStart() ?></strong> - <strong><?php echo $pagination->numEnd() ?></strong> | |
</div> | |
<div class="buttons"> | |
<? if($pagination->hasPrevPage()): ?> | |
<a class="prev" href="<?= $pagination->prevPageURL() ?>">‹ previous</a> | |
<? else: ?> |
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
Title: Project Title | |
---- | |
Year: 01/2011 | |
---- | |
Type: corporate design | |
---- | |
Text: Project description | |
---- |