mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2025-02-27 07:04:32 +01:00
Implemented a "Powered by Pony.fm" attribution in the site's footer.
This commit is contained in:
parent
e55f6cc4fd
commit
e1c6a175b0
7 changed files with 30 additions and 11 deletions
|
@ -40,4 +40,18 @@ return [
|
||||||
|
|
||||||
'google_analytics_id' => env('GOOGLE_ANALYTICS_ID', null),
|
'google_analytics_id' => env('GOOGLE_ANALYTICS_ID', null),
|
||||||
|
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| Show "Powered by Pony.fm" footer?
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
| If true, a "Powered by Pony.fm" footer is used to comply with the
|
||||||
|
| license's attribution requirement. This should only be disabled on
|
||||||
|
| the official Pony.fm website, since that already shares its name with
|
||||||
|
| the open-source project.
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
|
||||||
|
'use_powered_by_footer' => env('USE_POWERED_BY_FOOTER', true),
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|
4
resources/assets/styles/layout.less
vendored
4
resources/assets/styles/layout.less
vendored
|
@ -122,13 +122,13 @@ header {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&.x-poniverseCredit {
|
&.x-attribution {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
text-align: center;
|
text-align: right;
|
||||||
|
|
||||||
a {
|
a {
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
APP_ENV=local
|
APP_ENV=local
|
||||||
APP_DEBUG=true
|
APP_DEBUG=true
|
||||||
APP_URL=http://pony.fm.local/
|
APP_URL=http://ponyfm-dev.poni/
|
||||||
APP_KEY=SomeRandomString
|
APP_KEY=SomeRandomString
|
||||||
|
|
||||||
DB_HOST=localhost
|
DB_HOST=localhost
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
APP_ENV=local
|
APP_ENV=local
|
||||||
APP_DEBUG=true
|
APP_DEBUG=true
|
||||||
APP_URL=http://pony.fm.local/
|
APP_URL=http://ponyfm-dev.poni/
|
||||||
APP_KEY=q5lKAapzJwZas0izFS1CfCn3oX8Kk2jj
|
APP_KEY=q5lKAapzJwZas0izFS1CfCn3oX8Kk2jj
|
||||||
|
|
||||||
DB_HOST=localhost
|
DB_HOST=localhost
|
||||||
|
@ -18,9 +18,9 @@ MAIL_USERNAME=null
|
||||||
MAIL_PASSWORD=null
|
MAIL_PASSWORD=null
|
||||||
MAIL_ENCRYPTION=null
|
MAIL_ENCRYPTION=null
|
||||||
|
|
||||||
PONI_CLIENT_ID=
|
PONI_CLIENT_ID=null
|
||||||
PONI_CLIENT_SECRET=
|
PONI_CLIENT_SECRET=null
|
||||||
|
|
||||||
PONYFM_DATASTORE=/vagrant-files
|
PONYFM_DATASTORE=/vagrant-files
|
||||||
|
|
||||||
GOOGLE_ANALYTICS_ID=UA-29463256-1
|
GOOGLE_ANALYTICS_ID=null
|
||||||
|
|
Binary file not shown.
Binary file not shown.
|
@ -81,10 +81,15 @@
|
||||||
<li><a href="/login" target="_self">Login</a></li>
|
<li><a href="/login" target="_self">Login</a></li>
|
||||||
<li><a href="/register" target="_self">Register</a></li>
|
<li><a href="/register" target="_self">Register</a></li>
|
||||||
@endif
|
@endif
|
||||||
<li class="x-poniverseCredit">
|
<li class="x-attribution">
|
||||||
<a ng-click="showCredits()" href="#" title="Poniverse: The Pony Supercommunity">
|
<a ng-click="showCredits()" href="#" title="Pony.fm project credits">
|
||||||
<span>A community project by</span>
|
@if(config('ponyfm.use_powered_by_footer'))
|
||||||
<img src="/images/poniverse.svg" alt="Poniverse logo"/>
|
<span>Powered by</span>
|
||||||
|
<img src="/images/fm_logo_white.svg" alt="Pony.fm logo"/>
|
||||||
|
@else
|
||||||
|
<span>A community project by</span>
|
||||||
|
<img src="/images/poniverse.svg" alt="Poniverse logo"/>
|
||||||
|
@endif
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
Loading…
Reference in a new issue