Fix #41 Image background as external parameter
This commit is contained in:
parent
a0974978f7
commit
d15ec44392
|
@ -57,6 +57,10 @@ class QvitterPlugin extends Plugin {
|
|||
// DEFAULT BACKGROUND COLOR
|
||||
$settings['defaultbackgroundcolor'] = '#f4f4f4';
|
||||
|
||||
// DEFAULT BACKGROUND IMAGE
|
||||
$settings['sitebackground'] = 'img/vagnsmossen.jpg';
|
||||
|
||||
|
||||
// DEFAULT LINK COLOR
|
||||
$settings['defaultlinkcolor'] = '#0084B4';
|
||||
|
||||
|
|
|
@ -52,6 +52,7 @@ $config['site']['qvitter']['defaultlinkcolor'] = '#0084B4';
|
|||
$config['site']['qvitter']['timebetweenpolling'] = 5000;
|
||||
$config['site']['qvitter']['urlshortenerapiurl'] = 'http://qttr.at/yourls-api.php';
|
||||
$config['site']['qvitter']['urlshortenersignature'] = 'b6afeec983';
|
||||
$config['site']['qvitter']['sitebackground'] = 'img/vagnsmossen.jpg';
|
||||
````
|
||||
|
||||
Note: Qvitter is tested with GNU Social version 1.1.1-alpha2 (7e47026085fa4f2071e694d9c3e3fe2aa5142135).
|
||||
|
|
|
@ -181,6 +181,7 @@ class QvitterAction extends ApiAction
|
|||
window.siteInstanceURL = '<?php print $instanceurl; ?>';
|
||||
window.defaultLinkColor = '<?php print QvitterPlugin::settings("defaultlinkcolor"); ?>';
|
||||
window.defaultBackgroundColor = '<?php print QvitterPlugin::settings("defaultbackgroundcolor"); ?>';
|
||||
window.siteBackground = '<?php print QvitterPlugin::settings("sitebackground"); ?>';
|
||||
window.urlShortenerAPIURL = '<?php print QvitterPlugin::settings("urlshortenerapiurl"); ?>';
|
||||
window.urlShortenerSignature = '<?php print QvitterPlugin::settings("urlshortenersignature"); ?>';
|
||||
window.commonSessionToken = '<?php print common_session_token(); ?>';
|
||||
|
|
|
@ -446,7 +446,7 @@ $('#classic-link').click(function(){
|
|||
function logoutWithoutReload(doShake) {
|
||||
|
||||
if(window.currentStream == 'statuses/public_timeline.json') {
|
||||
$('body').css('background-image', 'url(' + window.fullUrlToThisQvitterApp + 'img/vagnsmossen.jpg)');
|
||||
$('body').css('background-image', 'url(' + window.fullUrlToThisQvitterApp + window.siteBackground)');
|
||||
}
|
||||
|
||||
$('input#nickname').focus();
|
||||
|
|
Loading…
Reference in New Issue
Block a user