forked from projects/fipamo
Compare commits
3 commits
responsive
...
develop
Author | SHA1 | Date | |
---|---|---|---|
84c6fa7a1a | |||
f53bb588c5 | |||
9c432db209 |
5 changed files with 20 additions and 7 deletions
|
@ -62,8 +62,10 @@ class ThemeController extends Controller
|
||||||
//if coming from theme page, grabs id of latest page
|
//if coming from theme page, grabs id of latest page
|
||||||
if ($id == null) {
|
if ($id == null) {
|
||||||
$uuid = $this->getPageUUID();
|
$uuid = $this->getPageUUID();
|
||||||
|
} else {
|
||||||
|
//get page by uuid
|
||||||
|
$page = $this->pages->getByUuid($id);
|
||||||
}
|
}
|
||||||
$page = $this->pages->getByUuid($uuid);
|
|
||||||
}
|
}
|
||||||
$pageData = $this->sort->page($page);
|
$pageData = $this->sort->page($page);
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -90,7 +90,7 @@ class SortingService
|
||||||
if (isset($page['tags'])) {
|
if (isset($page['tags'])) {
|
||||||
if (strpos($page['tags'], $tag) !== false) {
|
if (strpos($page['tags'], $tag) !== false) {
|
||||||
array_push($tagged, [
|
array_push($tagged, [
|
||||||
'title' => $page['title'],
|
'title' => urldecode($page['title']),
|
||||||
'slug' => $page['slug'],
|
'slug' => $page['slug'],
|
||||||
'path' => $page['path'],
|
'path' => $page['path'],
|
||||||
'feature' => $page['feature'],
|
'feature' => $page['feature'],
|
||||||
|
|
|
@ -14,14 +14,17 @@
|
||||||
<div role="archive-month">
|
<div role="archive-month">
|
||||||
<h3>{{ $data['full_month'] }}</h3>
|
<h3>{{ $data['full_month'] }}</h3>
|
||||||
@foreach($data['pages'] as $page)
|
@foreach($data['pages'] as $page)
|
||||||
|
@php
|
||||||
|
$title = urldecode($page['title']);
|
||||||
|
@endphp
|
||||||
@if(isset($dynamicRender))
|
@if(isset($dynamicRender))
|
||||||
@if($dynamicRender == 'true')
|
@if($dynamicRender == 'true')
|
||||||
<a href="{{ "/".$item['year']."/".$data['month']."/".$page['slug'] }}">{{ $page['title'] }}</a><br/>
|
<a href="{{ "/".$item['year']."/".$data['month']."/".$page['slug'] }}">{{ $title }}</a><br/>
|
||||||
@else
|
@else
|
||||||
<a href="{{ "/".$item['year']."/".$data['month']."/".$page['slug'].".html" }}">{{ $page['title'] }}</a><br/>
|
<a href="{{ "/".$item['year']."/".$data['month']."/".$page['slug'].".html" }}">{{ $title }}</a><br/>
|
||||||
@endif
|
@endif
|
||||||
@else
|
@else
|
||||||
<a href="{{ "/".$item['year']."/".$data['month']."/".$page['slug'] }}">{{ $page['title'] }}</a><br/>
|
<a href="{{ "/".$item['year']."/".$data['month']."/".$page['slug'] }}">{{ $title }}</a><br/>
|
||||||
@endif
|
@endif
|
||||||
@endforeach
|
@endforeach
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -207,7 +207,7 @@ main > section.text-editor > div.text-editor-control {
|
||||||
.control-freeze {
|
.control-freeze {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
z-index: 300;
|
z-index: 300;
|
||||||
width: 97%;
|
width: 900px;
|
||||||
top: 65px;
|
top: 65px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -277,6 +277,10 @@ main section.text-editor div.edit-post-wrapper pre code {
|
||||||
main > section.text-editor {
|
main > section.text-editor {
|
||||||
width: 97%;
|
width: 97%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.control-freeze {
|
||||||
|
width: 97%;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media only screen and (max-width: 480px) {
|
@media only screen and (max-width: 480px) {
|
||||||
|
@ -322,4 +326,8 @@ main section.text-editor div.edit-post-wrapper pre code {
|
||||||
main section.text-editor div.edit-post-wrapper #highlight {
|
main section.text-editor div.edit-post-wrapper #highlight {
|
||||||
font-size: 0.8em;
|
font-size: 0.8em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.control-freeze {
|
||||||
|
width: 96%;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="theme-color" content="#d66365" />
|
<meta name="theme-color" content="#cf436b" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<meta name="csrf-token" content="{{ csrf_token() }}">
|
<meta name="csrf-token" content="{{ csrf_token() }}">
|
||||||
<title>
|
<title>
|
||||||
|
|
Loading…
Reference in a new issue