Permalink
Browse files

added zurb foundation 5 and updated templates

  • Loading branch information...
chemix committed Jun 21, 2014
1 parent 73f0cd8 commit 0e0d4494bf3cd8d853ecaea380381fa78716d444
Showing with 5,694 additions and 71 deletions.
  1. +37 −3 app/templates/@layout.latte
  2. +10 −10 app/templates/Homepage/default.latte
  3. +36 −34 app/templates/Import/default.latte
  4. +2 −1 readme.md
  5. +5,184 −0 www/css/foundation.css
  6. +425 −0 www/css/normalize.css
  7. +0 −12 www/css/print.css
  8. +0 −11 www/css/screen.css
@@ -8,10 +8,11 @@
<head>
<meta charset="utf-8">
<title>{ifset #title}{include title|striptags} | {/ifset}Nette Sandbox</title>
<title>{ifset #title}{include title|striptags} | {/ifset}Facebook reader</title>
<link rel="stylesheet" media="screen,projection,tv" href="{$basePath}/css/screen.css">
<link rel="stylesheet" media="print" href="{$basePath}/css/print.css">
<link rel="stylesheet" media="screen" href="{$basePath}/css/normalize.css">
<link rel="stylesheet" media="screen" href="{$basePath}/css/foundation.css">
<link rel="stylesheet" media="screen" href="{$basePath}/css/screen.css">
<link rel="shortcut icon" href="{$basePath}/favicon.ico">
{block head}{/block}
</head>
@@ -21,6 +22,39 @@
<div n:foreach="$flashes as $flash" class="flash {$flash->type}">{$flash->message}</div>
<div class="row">
<div class="column">
<div class="row">
<div class="large-12 columns">
<nav class="top-bar" data-topbar="">
<ul class="title-area">
<li class="name">
<h1><a n:href="Homepage:default">Facebook Wallpost Reader</a></h1>
</li>
<li class="toggle-topbar menu-icon">
<a href="#"><span>menu</span></a>
</li>
</ul>
<section class="top-bar-section">
<ul class="right">
<li class="divider"></li>
<li>
<a n:href="Import:default">Importer</a>
</li>
</ul>
</section>
</nav>
</div>
</div>
</div>
</div>
{include content}
{block scripts}
@@ -1,16 +1,16 @@
{block content}
<h1>Facebook wall</h1>
<a n:href="Import:default">Import</a>
<div n:if="$wallPosts" class="facebook-posts">
<div n:foreach="$wallPosts as $post" class="post {$post->type}">
<h3 n:if="$post->name">{$post->name}</h3>
<img n:if="$post->picture" src="{$post->picture}" />
<div n:if="$wallPosts" class="row facebook-posts">
<p>
{if $post->message}{$post->message|truncate:250:'...'}{/if}
<a href="{$post|fbPostLink}">více</a>
</p>
<div n:foreach="$wallPosts as $post" class="large-4 small-6 columns {$post->type}">
<div class="panel">
<img n:if="$post->picture" src="{$post->picture}" />
<h4 n:if="$post->name">{$post->name}</h4>
<p>
{if $post->message}{$post->message|truncate:250:'...'}{/if}
<a href="{$post|fbPostLink}">více</a>
</p>
</div>
</div>
</div>
@@ -4,37 +4,39 @@
{block #content}
{foreach $wallPosts as $post}
type: <strong>{$post->type}</strong> <br>
<small>
id: {$post->id}<br>
created_time: {$post->created_time} <br>
updated_time: {$post->updated_time} <br>
</small>
{ifset $post->name}
name: <h1>{$post->name}</h1>
{/ifset}
{ifset $post->status_type}
status_type: {$post->status_type} <br>
{/ifset}
{ifset $post->message}
message: {$post->message} <br>
{/ifset}
{ifset $post->picture}
piscture: {$post->picture} <br>
<img src="{$post->picture}" />
{/ifset}
{ifset $post->link}
link: <a href="{$post->link}">{$post->link}</a> <br>
{/ifset}
{ifset $post->caption}
caption: {$post->caption} <br>
{/ifset}
<hr>
{/foreach}
<div class="row">
<div class="column">
{foreach $wallPosts as $post}
<div class="row">
<div class="large-2 columns small-3">
{ifset $post->picture}
<img src="{$post->picture}">
{/ifset}
</div>
<div class="large-10 columns">
{ifset $post->name}
<h3>{$post->name}</h3>
{/ifset}
{ifset $post->message}
<p>{$post->message} </p>
{/ifset}
<ul class="inline-list">
<li><strong>{$post->type}</strong></li>
{ifset $post->link}
<li><a href="{$post->link}">{$post->link}</a></li>
{/ifset}
<li><small>{$post->id}</small></li>
<li><small>{$post->created_time}</small></li>
</ul>
</div>
</div>
<hr>
{/foreach}
</div>
</div>
View
@@ -14,4 +14,5 @@ TODO
- [x] save to database
- [x] show specific posts
- [x] refactoring - use model and DI
- [ ] use Kdyby\Facebook
- [x] use Kdyby\Facebook
- [ ] admin
Oops, something went wrong.

0 comments on commit 0e0d449

Please sign in to comment.