Started work on Site Model

This commit is contained in:
Deon George
2017-12-08 10:04:02 +11:00
parent 35473014ad
commit 324861b826
12 changed files with 310 additions and 19 deletions

View File

@@ -33,7 +33,6 @@
</div><!-- ./wrapper -->
{{-- BEGIN CORE PLUGINS (REQUIRED FOR ALL PAGES) --}}
@js('/assets/jquery/1.11.2/js/jquery.min.js','jquery')
@js('/assets/jquery/plugins/migrate/1.2.1/js/jquery-migrate.min.js','jq-migrate','jquery')
@@ -42,7 +41,7 @@
{{-- END CORE PLUGINS --}}
{{-- Scripts --}}
{!! Asset::scripts() !!}
{!! Asset::scripts() !!}
@section('scripts')
@include('layouts.partials.scripts')
@show

View File

@@ -24,10 +24,12 @@
<h2>Our Contacts</h2>
<address class="margin-bottom-40">
<table>
<tr><th style="vertical-align:top; padding-right: 5px;">Address</th><td>{!! $site_address !!}</td></tr>
<tr><th>Phone</th><td>{!! $site_phone !!}</tr>
<tr><th>Fax</th><td>{!! $site_fax !!}</tr>
<tr><th>Email</th><td> <a href="mailto:{!! $site_email !!}">{!! $site_email !!}</a></tr>
<tr><th style="vertical-align:top; padding-right: 5px;">Address</th><td>{!! join('<br>',[$so->address['address1'],$so->address['address2'],sprintf('%s, %s %s',$so->address['city'],$so->address['state'],$so->address['postcode'])]) !!}</td></tr>
<tr><th>Phone</th><td>{!! $so->phone !!}</tr>
@if($so->fax)
<tr><th>Fax</th><td>{!! $so->fax !!}</tr>
@endif
<tr><th>Email</th><td> <a href="mailto:{!! $so->email !!}">{!! $so->email !!}</a></tr>
</table>
</address>
<!--

View File

@@ -1,6 +1,6 @@
<head>
<meta charset="UTF-8">
<title>{{ config('app.name') }} - {{ $page_title }}</title>
<title>{{ config('app.name') }} - {{ $so->name }}</title>
<meta content="width=device-width, initial-scale=1.0" name="viewport" />
<!-- CSRF Token -->
@@ -15,7 +15,7 @@
<meta property="og:image" content="{{ $site_logo }}" />
<meta property="og:url" content="{{ url('/') }}" />
<link rel="shortcut icon" href="@yield('site_favicon','favicon.ico')" />
<link rel="shortcut icon" href="{{ object_get($so,'favicon','favicon.ico') }}" />
{{-- Fonts START --}}
<link href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700|PT+Sans+Narrow|Source+Sans+Pro:200,300,400,600,700,900&amp;subset=all" rel="stylesheet" type="text/css">
@@ -33,7 +33,7 @@
@css('/site/css/slider.css')
@css('/site/css/style.css')
@css('/site/css/style-responsive.css')
@css('/site/css/themes/red.css')
@css('/site/css/themes/blue.css')
@css('/site/css/custom.css')
{{-- Theme styles END --}}

View File

@@ -5,8 +5,8 @@
<!-- BEGIN TOP BAR LEFT PART -->
<div class="col-md-6 col-sm-6 additional-shop-info">
<ul class="list-unstyled list-inline">
<li><i class="fa fa-phone"></i><span>{!! $site_phone !!}</span></li>
<li><i class="fa fa-envelope-o"></i><span>{!! $site_email !!}</span></li>
<li><i class="fa fa-phone"></i><span>{!! $so->phone !!}</span></li>
<li><i class="fa fa-envelope-o"></i><span>{!! $so->email !!}</span></li>
</ul>
</div>
<!-- END TOP BAR LEFT PART -->