Rename SITE_NAME and SITE_DESC to APP_NAME and APP_DESC

This commit is contained in:
Kevin MacMartin 2017-09-26 11:42:00 -04:00
parent d458798cce
commit 983536e505
9 changed files with 18 additions and 19 deletions

View file

@ -1,8 +1,7 @@
SITE_NAME='Hypothetical Template'
SITE_DESC='A website template'
DEFAULT_LANGUAGE=en
APP_NAME='Hypothetical Template'
APP_DESC='A website template'
APP_ENV=local
APP_DEBUG=true
APP_LOG_LEVEL=debug

View file

@ -23,7 +23,7 @@ class ContactController extends Controller {
// Send the email if the MAIL_SENDTO variable is set
if (env('MAIL_SENDTO') != null) {
Mail::send('email.contact', [ 'contact' => $contact ], function($mail) use ($contact) {
$mail->from(env('MAIL_SENDFROM'), env('SITE_NAME'))
$mail->from(env('MAIL_SENDFROM'), env('APP_NAME'))
->to(env('MAIL_SENDTO'))
->subject('Contact form submission');
});

View file

@ -12,7 +12,7 @@ return [
| any other location as required by the application or its packages.
*/
'name' => env('SITE_NAME', 'Laravel'),
'name' => env('APP_NAME', 'Laravel'),
/*
|--------------------------------------------------------------------------

View file

@ -58,15 +58,15 @@ return array(
),
'properties' => array(
'creator' => env('SITE_NAME', 'Dashboard'),
'lastModifiedBy' => env('SITE_NAME', 'Dashboard'),
'creator' => env('APP_NAME', 'Dashboard'),
'lastModifiedBy' => env('APP_NAME', 'Dashboard'),
'title' => 'Spreadsheet Export',
'description' => 'Exported Spreadsheet Data',
'subject' => 'Spreadsheet export',
'keywords' => 'excel, export',
'category' => 'Excel',
'manager' => env('SITE_NAME', 'Dashboard'),
'company' => env('SITE_NAME', 'Dashboard'),
'manager' => env('APP_NAME', 'Dashboard'),
'company' => env('APP_NAME', 'Dashboard'),
),
/*
@ -106,7 +106,7 @@ return array(
|
*/
'creator' => env('SITE_NAME', 'Dashboard'),
'creator' => env('APP_NAME', 'Dashboard'),
'csv' => array(
/*

View file

@ -57,7 +57,7 @@ return [
'from' => [
'address' => env('MAIL_SENDFROM', null),
'name' => env('SITE_NAME', null),
'name' => env('APP_NAME', null),
],
/*

View file

@ -9,7 +9,7 @@
</button>
<a class="navbar-brand" href="{{ url('/dashboard') }}">
{{ env('SITE_NAME') }} Dashboard
{{ env('APP_NAME') }} Dashboard
</a>
</div>

View file

@ -1 +1 @@
<footer>&copy; {{ date('Y') }} {{ env('SITE_NAME') }}</footer>
<footer>&copy; {{ date('Y') }} {{ env('APP_NAME') }}</footer>

View file

@ -1,6 +1,6 @@
<!DOCTYPE html>
<html lang="{{ Language::getSessionLanguage() }}">
@set('page_title', (isset($title) ? $title . ' - ' : '') . env('SITE_NAME'))
@set('page_title', (isset($title) ? $title . ' - ' : '') . env('APP_NAME'))
@set('device_mobile', preg_match('/Mobi/', Request::header('User-Agent')) || preg_match('/iP(hone|ad|od);/', Request::header('User-Agent')))
<head>
@ -12,19 +12,19 @@
<meta name="theme-color" content="#fcfcfc" />
<meta name="title" content="{{ $page_title }}" />
<meta name="description" content="{{ env('SITE_DESC') }}" />
<meta name="description" content="{{ env('APP_DESC') }}" />
<meta name="dc:title" content="{{ $page_title }}" />
<meta name="dc:description" content="{{ env('SITE_DESC') }}" />
<meta name="dc:description" content="{{ env('APP_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:description" content="{{ env('APP_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:description" content="{{ env('APP_DESC') }}" />
<meta name="twitter:image" content="{{ asset('/img/logo.png') }}" />
<link rel="shortcut icon" href="{{ URL::to('/') }}/favicon.ico" />

View file

@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<title>@yield('error-title') - {{ env('SITE_NAME') }}</title>
<title>@yield('error-title') - {{ env('APP_NAME') }}</title>
<style>
html, body {