Skip to content

Commit

Permalink
Improve the Themes
Browse files Browse the repository at this point in the history
  • Loading branch information
LuckyCyborg committed May 23, 2018
1 parent 0dc47c1 commit 756b060
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 16 deletions.
4 changes: 2 additions & 2 deletions themes/Bootstrap/Views/Layouts/Default.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ echo Asset::render('css', 'header');
@php

echo Asset::build('js', array(
asset_url('js/sprintf.min.js'),
'https://code.jquery.com/jquery-1.12.4.min.js',
asset_url('js/sprintf.min.js'),
'https://code.jquery.com/jquery-1.12.4.min.js',
));

echo Asset::render('js', 'header');
Expand Down
52 changes: 38 additions & 14 deletions themes/Bootstrap/Views/Layouts/Static.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,37 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ $title or 'Page' }} - {{ Config::get('app.name') }}</title>
@php

echo Assets::build('css', array(
'https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css',
'https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css',
'https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css',
asset_url('css/bootstrap-xl-mod.min.css', 'themes/bootstrap'),
asset_url('css/style.css', 'themes/bootstrap'),
));

echo Asset::render('css', 'header');

@endphp

<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
@php

echo Assets::build('js', array(
asset_url('js/sprintf.min.js'),
'https://code.jquery.com/jquery-1.12.4.min.js',
));

echo Asset::render('js', 'header');

@endphp

@assets('css', array(
'https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css',
'https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css',
'https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css',
asset_url('css/bootstrap-xl-mod.min.css', 'themes/bootstrap'),
asset_url('css/style.css', 'themes/bootstrap'),
))

@assets('js', array(
asset_url('js/sprintf.min.js'),
'https://code.jquery.com/jquery-1.12.4.min.js',
))
</head>
<body>

Expand All @@ -31,9 +49,15 @@

@include('Themes/Bootstrap::Partials/Footer')

@assets('js', array(
@php

echo Asset::build('js', array(
'https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js'
))
));

echo Asset::render('js', 'footer');

@endphp

</body>
</html>

0 comments on commit 756b060

Please sign in to comment.