Skip to content

Commit

Permalink
October CMS - Theme Settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Doric Ivan committed Aug 23, 2020
1 parent 9ecae6c commit 5795574
Show file tree
Hide file tree
Showing 6 changed files with 45 additions and 7 deletions.
Binary file modified storage/database.sqlite
Binary file not shown.
2 changes: 2 additions & 0 deletions storage/framework/classes.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,4 +136,6 @@
'RainLab\\Builder\\Widgets\\DefaultBehaviorDesignTimeProvider' => 'plugins/rainlab/builder/widgets/DefaultBehaviorDesignTimeProvider.php',
'RainLab\\Builder\\Classes\\MigrationModel' => 'plugins/rainlab/builder/classes/MigrationModel.php',
'RainLab\\Builder\\Classes\\TableMigrationCodeGenerator' => 'plugins/rainlab/builder/classes/TableMigrationCodeGenerator.php',
'cms\\Controllers\\themes' => 'modules/cms/controllers/themes.php',
'cms\\Controllers\\themeoptions' => 'modules/cms/controllers/themeoptions.php',
);
2 changes: 1 addition & 1 deletion themes/olympos/layouts/default.htm
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<html>
<head>
<meta charset="utf-8">
<title>OctoberCMS - {{ this.page.title }}</title>
<title>{{ this.theme.site_name }} - {{ this.page.title }}</title>
<meta name="description" content="{{ this.page.meta_description }}">
<meta name="title" content="{{ this.page.meta_title }}">
<meta name="author" content="OctoberCMS">
Expand Down
14 changes: 10 additions & 4 deletions themes/olympos/partials/footer.htm
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
<footer class="main-footer">
<div class="container">
<h3>This is our footer</h3>
<h3>Our friends</h3>

<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quisquam laudantium aspernatur fugit nulla doloribus id, aliquam modi repudiandae possimus assumenda!
</p>
<ul>
{% for item in this.theme.our_friends %}
<li>
<a href="{{ item.url }}">
{{ item.name }}
</a>
</li>
{% endfor %}
</ul>
</div>
</footer>
6 changes: 4 additions & 2 deletions themes/olympos/partials/header.htm
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@

[viewBag]
==
<header class="main-header">
<header class="main-header" style="background-color: {{ this.theme.header_color }}">
<div class="container clearfix">
<h1 class="logo">October Movies</h1>
<h1 class="logo">
<img src="{{this.theme.logo|media}}" alt="">
</h1>

<nav class="main-nav">

Expand Down
28 changes: 28 additions & 0 deletions themes/olympos/theme.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,31 @@ description: 'New starter theme'
author: 'Ivan Doric'
homepage: 'http://watch-learn.com'
code: ''

form:
fields:
site_name:
label: Site name
comment: The website name as it should appear on the front-end
default: My Amazing Site!
header_color:
label: Header Color
type: colorpicker
logo:
label: logo
type: mediafinder
mode: image
imageWidth: 100
imageHeight: 100
our_friends:
type: repeater
label: Our friends
titleFrom: name
form:
fields:
name:
label: name
type: text
url:
label: URL
type: text

0 comments on commit 5795574

Please sign in to comment.