2015-07-08 03:34:58 -04:00
|
|
|
<!DOCTYPE html>
|
2017-02-06 23:44:07 -05:00
|
|
|
<html lang="{{ Language::getSessionLanguage() }}">
|
2016-10-16 21:32:07 -04:00
|
|
|
@set('page_title', (isset($title) ? $title . ' - ' : '') . env('SITE_NAME'))
|
|
|
|
@set('device_mobile', preg_match('/Mobi/', Request::header('User-Agent')) || preg_match('/iP(hone|ad|od);/', Request::header('User-Agent')))
|
|
|
|
|
2015-07-08 03:34:58 -04:00
|
|
|
<head>
|
2016-10-15 16:53:14 -04:00
|
|
|
<title>{{ $page_title }}</title>
|
|
|
|
|
|
|
|
<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="title" content="{{ $page_title }}" />
|
|
|
|
<meta name="description" content="{{ env('SITE_DESC') }}" />
|
|
|
|
<meta name="dc:title" content="{{ $page_title }}" />
|
|
|
|
<meta name="dc:description" content="{{ env('SITE_DESC') }}" />
|
|
|
|
|
|
|
|
<meta property="og:type" content="article" />
|
|
|
|
<meta property="og:title" content="{{ $page_title }}" />
|
|
|
|
<meta property="og:description" content="{{ env('SITE_DESC') }}" />
|
|
|
|
<meta property="og:url" content="{{ Request::url() }}" />
|
|
|
|
<meta property="og:image" content="{{ asset('/img/logo.png') }}" />
|
|
|
|
|
|
|
|
<meta name="twitter:card" content="summary" />
|
|
|
|
<meta name="twitter:title" content="{{ $page_title }}" />
|
|
|
|
<meta name="twitter:description" content="{{ env('SITE_DESC') }}" />
|
|
|
|
<meta name="twitter:image" content="{{ asset('/img/logo.png') }}" />
|
|
|
|
|
|
|
|
<link rel="shortcut icon" href="{{ URL::to('/') }}/favicon.ico" />
|
|
|
|
<link rel="icon" href="{{ URL::to('/') }}/favicon.ico" type="image/x-icon" />
|
|
|
|
<link rel="icon" href="{{ URL::to('/') }}/favicon.png" type="image/png" />
|
|
|
|
<link rel="canonical" href="{{ Request::url() }}" />
|
|
|
|
|
2016-01-26 23:20:08 -05:00
|
|
|
@yield('page-includes')
|
2015-12-11 23:36:05 -05:00
|
|
|
|
2016-03-24 22:00:47 -04:00
|
|
|
@if(Config::get('app.debug'))
|
2015-07-08 03:34:58 -04:00
|
|
|
<script type="text/javascript">
|
2016-03-19 15:31:28 -04:00
|
|
|
document.write('<script src="//{{ env('LR_HOST', 'localhost') }}:35729/livereload.js?snipver=1" type="text/javascript"><\/script>')
|
2015-07-11 06:27:21 -04:00
|
|
|
</script>
|
2015-07-08 03:34:58 -04:00
|
|
|
@endif
|
|
|
|
</head>
|
2016-05-23 22:35:33 -04:00
|
|
|
|
2017-01-04 22:42:11 -05:00
|
|
|
@if(preg_match('/^dashboard/', Request::path()))
|
|
|
|
@set('body_class', preg_replace([ '/\/(new|[0-9][0-9]*)$/', '/\//' ], [ '', '-' ], Request::path()))
|
|
|
|
@else
|
|
|
|
@set('body_class', Request::path() == '/' ? 'index' : preg_replace('/\/.*/', '', Request::path()))
|
|
|
|
@endif
|
|
|
|
|
|
|
|
<body class="page-{{ $body_class }} {{ $device_mobile ? 'mobile-browser' : 'desktop-browser' }}">
|
2015-12-01 01:07:03 -05:00
|
|
|
@yield('page-top')
|
2016-08-16 19:33:02 -04:00
|
|
|
|
2017-01-26 19:25:22 -05:00
|
|
|
<div id="page-container">
|
|
|
|
<div id="main-content">
|
|
|
|
@yield('content')
|
|
|
|
</div>
|
2016-08-16 19:33:02 -04:00
|
|
|
|
2017-01-26 19:25:22 -05:00
|
|
|
@yield('page-bottom')
|
|
|
|
</div>
|
2015-07-08 03:34:58 -04:00
|
|
|
</body>
|
|
|
|
</html>
|