Implemented a "Powered by Pony.fm" attribution in the site's footer.

This commit is contained in:
Peter Deltchev 2015-10-24 18:50:45 -07:00
parent e55f6cc4fd
commit e1c6a175b0
7 changed files with 30 additions and 11 deletions

View file

@ -40,4 +40,18 @@ return [
'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),
];

View file

@ -122,13 +122,13 @@ header {
}
}
&.x-poniverseCredit {
&.x-attribution {
position: absolute;
bottom: 0;
max-width: 100%;
margin: 0;
padding: 0;
text-align: center;
text-align: right;
a {
padding: 10px;

View file

@ -1,6 +1,6 @@
APP_ENV=local
APP_DEBUG=true
APP_URL=http://pony.fm.local/
APP_URL=http://ponyfm-dev.poni/
APP_KEY=SomeRandomString
DB_HOST=localhost

View file

@ -1,6 +1,6 @@
APP_ENV=local
APP_DEBUG=true
APP_URL=http://pony.fm.local/
APP_URL=http://ponyfm-dev.poni/
APP_KEY=q5lKAapzJwZas0izFS1CfCn3oX8Kk2jj
DB_HOST=localhost
@ -18,9 +18,9 @@ MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
PONI_CLIENT_ID=
PONI_CLIENT_SECRET=
PONI_CLIENT_ID=null
PONI_CLIENT_SECRET=null
PONYFM_DATASTORE=/vagrant-files
GOOGLE_ANALYTICS_ID=UA-29463256-1
GOOGLE_ANALYTICS_ID=null

Binary file not shown.

View file

@ -81,10 +81,15 @@
<li><a href="/login" target="_self">Login</a></li>
<li><a href="/register" target="_self">Register</a></li>
@endif
<li class="x-poniverseCredit">
<a ng-click="showCredits()" href="#" title="Poniverse: The Pony Supercommunity">
<span>A community project by</span>
<img src="/images/poniverse.svg" alt="Poniverse logo"/>
<li class="x-attribution">
<a ng-click="showCredits()" href="#" title="Pony.fm project credits">
@if(config('ponyfm.use_powered_by_footer'))
<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>
</li>
</ul>