[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [websites/reservoir/develop] public/themes/neverland: put some vars into json config and use it thro
From: Ingo Malchow <imalchow () kde ! org>
Date: 2014-11-02 21:10:19
Message-ID: E1Xl2Pj-0004xq-V3 () scm ! kde ! org
[Download RAW message or body]
Git commit c070b7f75d2163ba07cade5126d9d48d998e5300 by Ingo Malchow.
Committed on 02/11/2014 at 21:10.
Pushed by imalchow into branch 'develop'.
put some vars into json config and use it throughout the site
M +1 -1 public/themes/neverland/config.php
M +2 -2 public/themes/neverland/layouts/default.blade.php
M +6 -0 public/themes/neverland/views/setting.json
http://commits.kde.org/websites/reservoir/c070b7f75d2163ba07cade5126d9d48d998e5300
diff --git a/public/themes/neverland/config.php b/public/themes/neverland/config.php
index 88746bc..b38016e 100644
--- a/public/themes/neverland/config.php
+++ b/public/themes/neverland/config.php
@@ -36,7 +36,7 @@ return array(
'before' => function($theme)
{
// You can remove this line anytime.
- $theme->setTitle('Test Site');
+ $theme->setTitle(Setting::get('title'));
// Breadcrumb template.
// $theme->breadcrumb()->setTemplate('
diff --git a/public/themes/neverland/layouts/default.blade.php \
b/public/themes/neverland/layouts/default.blade.php index 094d121..7de5a9a 100644
--- a/public/themes/neverland/layouts/default.blade.php
+++ b/public/themes/neverland/layouts/default.blade.php
@@ -5,8 +5,8 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
- <meta name="keywords" content="{{ Theme::get('keywords') }}">
- <meta name="description" content="{{ Theme::get('description') }}">
+ <meta name="keywords" content="{{ Setting::get('keywords') }}">
+ <meta name="description" content="{{ Setting::get('description') }}">
<link href='http://fonts.googleapis.com/css?family=Oxygen:400,300,700' \
rel='stylesheet' type='text/css'> {{ Theme::asset()->styles() }}
<!--[if lt IE 9]>
diff --git a/public/themes/neverland/views/setting.json \
b/public/themes/neverland/views/setting.json index e69de29..c268299 100644
--- a/public/themes/neverland/views/setting.json
+++ b/public/themes/neverland/views/setting.json
@@ -0,0 +1,6 @@
+{
+ "title": "Test Site 1",
+ "description": "a sample description",
+ "keywords": "",
+ "theme": "neverland"
+}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic