mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 09:23:28 +01:00
Remove login.js from pixelegg, because we add it generally to phpgwapi for all templates. Additionally, fix changes accordingly for socialMedia icons
This commit is contained in:
parent
7bb1b34db8
commit
69b83a6ead
@ -2119,9 +2119,9 @@ body {
|
|||||||
*/
|
*/
|
||||||
@import-once "def_colors.less";
|
@import-once "def_colors.less";
|
||||||
#socialMedia {
|
#socialMedia {
|
||||||
float: right;
|
|
||||||
position: relative;
|
position: relative;
|
||||||
top: -30px;
|
top: 22px;
|
||||||
|
left: 408px;
|
||||||
}
|
}
|
||||||
#socialMedia a {
|
#socialMedia a {
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
|
@ -68,18 +68,4 @@ class pixelegg_framework extends jdots_framework
|
|||||||
{
|
{
|
||||||
return egw_framework::_get_css();
|
return egw_framework::_get_css();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* displays a login screen
|
|
||||||
*
|
|
||||||
* Reimplemented to allow to include JSONP file with social media urls from egroupware.org
|
|
||||||
*
|
|
||||||
* @param string $extra_vars for login url
|
|
||||||
*/
|
|
||||||
function login_screen($extra_vars)
|
|
||||||
{
|
|
||||||
self::csp_script_src_attrs('https://www.egroupware.org');
|
|
||||||
|
|
||||||
return parent::login_screen($extra_vars);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -1,54 +0,0 @@
|
|||||||
/*
|
|
||||||
* To change this license header, choose License Headers in Project Properties.
|
|
||||||
* To change this template file, choose Tools | Templates
|
|
||||||
* and open the template in the editor.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
egw_LAB.wait(function() {
|
|
||||||
$j.ajax('https://www.egroupware.org/social.js', {
|
|
||||||
dataType: "jsonp",
|
|
||||||
jsonp: false,
|
|
||||||
jsonpCallback: "do_social",
|
|
||||||
cache: true
|
|
||||||
}).done(function(_data)
|
|
||||||
{
|
|
||||||
$j(document).ready(function() {
|
|
||||||
var social = $j(document.createElement('div'))
|
|
||||||
.attr({
|
|
||||||
id: "socialMedia",
|
|
||||||
class: "socialMedia"
|
|
||||||
})
|
|
||||||
.appendTo($j('#centerBox'));
|
|
||||||
|
|
||||||
for(var i=0; i < _data.length; ++i)
|
|
||||||
{
|
|
||||||
var data = _data[i];
|
|
||||||
var url = (data.lang ? data.lang[$j('meta[name="language"]').attr('content')] : null) || data.url;
|
|
||||||
$j(document.createElement('a')).attr({
|
|
||||||
href: url,
|
|
||||||
target: '_blank'
|
|
||||||
})
|
|
||||||
.appendTo(social)
|
|
||||||
.append($j(document.createElement('img'))
|
|
||||||
.attr('src', data.svg));
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
// $j('img.bgfade').hide();
|
|
||||||
//// var dg_H = $j(window).height();
|
|
||||||
//// var dg_W = $j(window).width();
|
|
||||||
//// $j('#wrap').css({'height':dg_H,'width':dg_W});
|
|
||||||
//
|
|
||||||
// function anim() {
|
|
||||||
// $j("#wrap img.bgfade").first().appendTo('#wrap').fadeOut(3500);
|
|
||||||
// $j("#wrap img").first().fadeIn(3500);
|
|
||||||
// setTimeout(anim, 7000);
|
|
||||||
// }
|
|
||||||
//anim();
|
|
||||||
//$j(window).resize(function(){window.location.href=window.location.href});
|
|
||||||
// });
|
|
||||||
//
|
|
||||||
//});
|
|
@ -18,9 +18,9 @@
|
|||||||
//##############################################################################################################
|
//##############################################################################################################
|
||||||
|
|
||||||
#socialMedia {
|
#socialMedia {
|
||||||
float: right;
|
|
||||||
position: relative;
|
position: relative;
|
||||||
top: -30px;
|
top: 22px;
|
||||||
|
left: 408px;
|
||||||
}
|
}
|
||||||
#socialMedia a {
|
#socialMedia a {
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<script src="./pixelegg/js/login.js" type="text/javascript"></script>
|
<script src="./phpgwapi/js/login.js" type="text/javascript"></script>
|
||||||
|
|
||||||
|
|
||||||
<div id="loginMainDiv">
|
<div id="loginMainDiv">
|
||||||
@ -64,6 +64,9 @@
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<!-- END registration -->
|
<!-- END registration -->
|
||||||
|
<tr>
|
||||||
|
<td id="socialBox"></td>
|
||||||
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user