mirror of
https://github.com/pierre42100/ComunicWeb
synced 2025-06-19 04:15:17 +00:00
Add link to Android application
This commit is contained in:
@ -4,7 +4,7 @@
|
||||
* @author Pierre HUBERT
|
||||
*/
|
||||
|
||||
const BottomLinks = [
|
||||
const BottomLinks = () => [
|
||||
|
||||
//Language selector
|
||||
{
|
||||
@ -13,6 +13,14 @@ const BottomLinks = [
|
||||
onclick: function(){ComunicWeb.components.langPicker.show();}
|
||||
},
|
||||
|
||||
// Android application
|
||||
{
|
||||
innerHTML: tr("Android app"),
|
||||
icon: "fa-android",
|
||||
href: ServerConfig.conf.play_store_url,
|
||||
target: "_blank"
|
||||
},
|
||||
|
||||
//About Comunic
|
||||
{
|
||||
innerLang: "bottom_bar_action_about",
|
||||
|
@ -43,26 +43,27 @@ ComunicWeb.components.bottom.main = {
|
||||
innerHTML: "Comunic "
|
||||
});
|
||||
|
||||
BottomLinks.forEach(function(link){
|
||||
if(!signed_in())
|
||||
BottomLinks().forEach(function(link){
|
||||
|
||||
var linkEl = createElem2({
|
||||
appendTo: leftElements,
|
||||
type: "a",
|
||||
href: link.href,
|
||||
innerHTML: link.innerHTML,
|
||||
innerLang: link.innerLang,
|
||||
innerHTMLprefix: "<i class='fa "+link.icon+"'></i> "
|
||||
var linkEl = createElem2({
|
||||
appendTo: leftElements,
|
||||
type: "a",
|
||||
href: link.href,
|
||||
innerHTML: link.innerHTML,
|
||||
innerLang: link.innerLang,
|
||||
innerHTMLprefix: "<i class='fa "+link.icon+"'></i> "
|
||||
});
|
||||
|
||||
if(link.target)
|
||||
linkEl.setAttribute("target", link.target);
|
||||
|
||||
if(link.onclick)
|
||||
linkEl.onclick = link.onclick;
|
||||
|
||||
add_space(leftElements);
|
||||
add_space(leftElements);
|
||||
});
|
||||
|
||||
if(link.target)
|
||||
linkEl.setAttribute("target", link.target);
|
||||
|
||||
if(link.onclick)
|
||||
linkEl.onclick = link.onclick;
|
||||
|
||||
add_space(leftElements);
|
||||
add_space(leftElements);
|
||||
});
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user