Permalink
Browse files

Materialize 2.0.0

  • Loading branch information...
Awilum committed Nov 20, 2015
1 parent 0e0186f commit 662f03f99a34b5d6e416143bd9732d5f4d9f9143
Showing with 19 additions and 19 deletions.
  1. +1 −1 blog.tpl
  2. +10 −10 layout.tpl
  3. +1 −1 materialize.yml
  4. +7 −7 navbar.tpl
View
@@ -2,7 +2,7 @@
{block 'content'}
{set $posts = Morfy::getPages('blog', 'date', 'DESC', ['404','index'])}
{foreach $posts as $post}
<h3><a href="{$.site.url}/blog/{$post.slug}">{$post.title}</a></h3>
<h3><a href="{Url::getBase()}/blog/{$post.slug}">{$post.title}</a></h3>
<p>Posted on {$post.date}</p>
<div>{$post.summary}</div>
{/foreach}
View
@@ -6,17 +6,17 @@
<meta name="description" content="{$description}>">
<meta name="keywords" content="{$keywords}">
{Morfy::runAction('theme_meta')}
{Action::run('theme_meta')}
<link rel="shortcut icon" href="{$.site.url}/favicon.ico">
<link rel="shortcut icon" href="{Url::getBase()}/favicon.ico">
<title>{$.site.title} | {$title}</title>
<title>{$config.site.title} | {$title}</title>
<!-- CSS -->
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link href="{$.site.url}/themes/{$.site.theme}/assets/css/materialize.css" type="text/css" rel="stylesheet" media="screen,projection"/>
<link href="{$.site.url}/themes/{$.site.theme}/assets/css/style.css" type="text/css" rel="stylesheet" media="screen,projection"/>
{Morfy::runAction('theme_header')}
<link href="{Url::getBase()}/themes/{$config.system.theme}/assets/css/materialize.css" type="text/css" rel="stylesheet" media="screen,projection"/>
<link href="{Url::getBase()}/themes/{$config.system.theme}/assets/css/style.css" type="text/css" rel="stylesheet" media="screen,projection"/>
{Action::run('theme_header')}
</head>
<body>
@@ -25,16 +25,16 @@
<div class="container">
<div class="row">
<div class="col l12 s12">
{Morfy::runAction('theme_content_before')}
{Action::run('theme_content_before')}
{block 'content'}{/block}
{Morfy::runAction('theme_content_after')}
{Action::run('theme_content_after')}
</div>
</div>
</div>
<!-- Scripts-->
<script src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
<script src="{$.site.url}/themes/{$.site.theme}/assets/js/materialize.js"></script>
<script src="{$.site.url}/themes/{$.site.theme}/assets/js/init.js"></script>
<script src="{Url::getBase()}/themes/{$config.system.theme}/assets/js/materialize.js"></script>
<script src="{Url::getBase()}/themes/{$config.system.theme}/assets/js/init.js"></script>
</body>
</html>
View
@@ -1,5 +1,5 @@
name: Materialize
version: 1.0.1
version: 2.0.0
description: Materialize Morfy theme
author:
name: Sergey Romanenko
View
@@ -1,16 +1,16 @@
<nav class="light-blue lighten-1" role="navigation">
<div class="nav-wrapper container"><a id="logo-container" href="{$.site.url}" class="brand-logo">{$.site.title}</a>
<div class="nav-wrapper container"><a id="logo-container" href="{Url::getBase()}" class="brand-logo">{$config.site.title}</a>
<ul class="right hide-on-med-and-down">
{set $slug = Url::getUriSegment(0)}
<li {if $slug == ''} class="active" {/if}><a href="{$.site.url}">Home</a></li>
<li {if $slug == 'blog'} class="active" {/if}><a href="{$.site.url}/blog">Blog</a></li>
<li {if $slug == 'contact'} class="active" {/if}><a href="{$.site.url}/contact">Contact</a></li>
<li {if $slug == ''} class="active" {/if}><a href="{Url::getBase()}">Home</a></li>
<li {if $slug == 'blog'} class="active" {/if}><a href="{Url::getBase()}/blog">Blog</a></li>
<li {if $slug == 'contact'} class="active" {/if}><a href="{Url::getBase()}/contact">Contact</a></li>
</ul>
<ul id="nav-mobile" class="side-nav">
{set $slug = Url::getUriSegment(0)}
<li {if $slug == ''} class="active" {/if}><a href="{$.site.url}">Home</a></li>
<li {if $slug == 'blog'} class="active" {/if}><a href="{$.site.url}/blog">Blog</a></li>
<li {if $slug == 'contact'} class="active" {/if}><a href="{$.site.url}/contact">Contact</a></li>
<li {if $slug == ''} class="active" {/if}><a href="{Url::getBase()}">Home</a></li>
<li {if $slug == 'blog'} class="active" {/if}><a href="{Url::getBase()}/blog">Blog</a></li>
<li {if $slug == 'contact'} class="active" {/if}><a href="{Url::getBase()}/contact">Contact</a></li>
</ul>
<a href="#" data-activates="nav-mobile" class="button-collapse"><i class="material-icons">menu</i></a>
</div>

0 comments on commit 662f03f

Please sign in to comment.