Commit d15ec443 authored by llebegue's avatar llebegue

Fix #41 Image background as external parameter

parent a0974978
......@@ -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).
......@@ -88,4 +89,4 @@ TODO
1. New "expand queet" api for getting conversation, retweets, favs and attachment in the same request
1. Node.js long polling server and an new api that serve aggregate of all polling users requests in one go
\ No newline at end of file
1. Node.js long polling server and an new api that serve aggregate of all polling users requests in one go
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment