1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-08 06:06:45 +02:00

General updates for theme Simple

This commit is contained in:
Awilum
2018-04-29 18:55:03 +03:00
parent 4f34ecfc22
commit ea85bcc4d5
9 changed files with 48 additions and 42 deletions

View File

@@ -1,24 +0,0 @@
<!doctype html>
<html lang="<?php echo Flextype\Config::get('site.locale'); ?>">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="<?php echo Flextype\Config::get('site.description'); ?>">
<meta name="author" content="">
<?php Flextype\Events::dispatch('onThemeMeta'); ?>
<title><?php echo $page['title']; ?> | <?php echo Flextype\Config::get('site.title'); ?></title>
<link href='https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,600,700' rel='stylesheet' type='text/css'>
<!-- Bootstrap core CSS -->
<link href="<?php echo Flextype\Component\Http\Http::getBaseUrl(); ?>/site/themes/<?php echo Flextype\Config::get('site.theme'); ?>/node_modules/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
<!-- Custom styles for this template -->
<link href="<?php echo Flextype\Component\Http\Http::getBaseUrl(); ?>/site/themes/<?php echo Flextype\Config::get('site.theme'); ?>/assets/css/theme.css" rel="stylesheet">
<?php Flextype\Events::dispatch('onThemeHeader'); ?>
</head>
<body>
<?php Flextype\View::factory('partials/navigation')->display(); ?>
<main role="main" class="container content">

View File

@@ -1,3 +0,0 @@
<script src="<?php echo Flextype\Component\Http\Http::getBaseUrl(); ?>/site/themes/<?php echo Flextype\Config::get('site.theme'); ?>/node_modules/jquery/dist/jquery.slim.min.js"></script>
<script src="<?php echo Flextype\Component\Http\Http::getBaseUrl(); ?>/site/themes/<?php echo Flextype\Config::get('site.theme'); ?>/node_modules/bootstrap/dist/js/bootstrap.min.js"></script>
<?php Flextype\Events::dispatch('onThemeFooter'); ?>

View File

@@ -1,3 +1,4 @@
<?php Flextype\Themes::template('partials/head')->display(); ?>
<?php namespace Flextype; ?>
<?php Themes::template('partials/head')->display(); ?>
<?php echo $page['content']; ?>
<?php Flextype\Themes::template('partials/footer')->display(); ?>
<?php Themes::template('partials/footer')->display(); ?>

View File

@@ -1,5 +1,8 @@
<?php
namespace Flextype;
?>
<?php Flextype\View::factory('partials/tail')->display(); ?>
<?php Themes::template('partials/tail')->display(); ?>
<div class="powered">
Powered by <a href="http://flextype.org">Flextype</a>

View File

@@ -0,0 +1,28 @@
<?php
namespace Flextype;
use Flextype\Component\{Event\Event, Http\Http};
?>
<!doctype html>
<html lang="<?php echo Config::get('site.locale'); ?>">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="<?php echo Config::get('site.description'); ?>">
<meta name="author" content="">
<?php Event::dispatch('onThemeMeta'); ?>
<title><?php echo $page['title']; ?> | <?php echo Config::get('site.title'); ?></title>
<link href='https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,600,700' rel='stylesheet' type='text/css'>
<!-- Bootstrap core CSS -->
<link href="<?php echo Http::getBaseUrl(); ?>/site/themes/<?php echo Config::get('site.theme'); ?>/node_modules/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
<!-- Custom styles for this template -->
<link href="<?php echo Http::getBaseUrl(); ?>/site/themes/<?php echo Config::get('site.theme'); ?>/assets/css/theme.css" rel="stylesheet">
<?php Event::dispatch('onThemeHeader'); ?>
</head>
<body>
<?php Themes::template('partials/navigation')->display(); ?>
<main role="main" class="container content">

View File

@@ -1,13 +1,17 @@
<?php
namespace Flextype;
use Flextype\Component\Http\Http;
?>
<nav class="navbar navbar-expand-lg navbar-light bg-white border-bottom box-shadow">
<div class="container">
<a class="navbar-brand" href="<?php echo Flextype\Component\Http\Http::getBaseUrl(); ?>"><?php echo Flextype\Config::get('site.title'); ?></a>
<a class="navbar-brand" href="<?php echo Http::getBaseUrl(); ?>"><?php echo Config::get('site.title'); ?></a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse justify-content-end" id="navbarNav">
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link <?php if (Flextype\Component\Http\Http::getUriSegment(0) == 'home' || Flextype\Component\Http\Http::getUriSegment(0) == '') echo 'active'; ?>" href="<?php echo Flextype\Component\Http\Http::getBaseUrl(); ?>">Home</a>
<a class="nav-link <?php if (Http::getUriSegment(0) == 'home' || Http::getUriSegment(0) == '') echo 'active'; ?>" href="<?php echo Http::getBaseUrl(); ?>">Home</a>
</li>
</ul>
</div>

View File

@@ -0,0 +1,7 @@
<?php
namespace Flextype;
use Flextype\Component\{Event\Event, Http\Http};
?>
<script src="<?php echo Http::getBaseUrl(); ?>/site/themes/<?php echo Config::get('site.theme'); ?>/node_modules/jquery/dist/jquery.slim.min.js"></script>
<script src="<?php echo Http::getBaseUrl(); ?>/site/themes/<?php echo Config::get('site.theme'); ?>/node_modules/bootstrap/dist/js/bootstrap.min.js"></script>
<?php Event::dispatch('onThemeFooter'); ?>

View File

@@ -1,3 +0,0 @@
<?php Flextype\Templates::display('partials/head'); ?>
<?php echo $page['content']; ?>
<?php Flextype\Templates::display('partials/footer'); ?>

View File

@@ -1,7 +0,0 @@
<?php Flextype\Templates::display('partials/head'); ?>
<?php echo $page['content']; ?>
<?php $projects = Flextype\Pages::getPages('projects', false , 'date'); ?>
<?php foreach ($projects as $project) { ?>
<a href="<?php echo $project['url']; ?>"><?php echo $project['title']; ?></a>
<?php } ?>
<?php Flextype\Templates::display('partials/footer'); ?>