diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php
index 8da52e301e6..c53c0997fcc 100644
--- a/htdocs/core/lib/functions.lib.php
+++ b/htdocs/core/lib/functions.lib.php
@@ -4381,20 +4381,23 @@ function printCommonFooter($zone='private')
if (! empty($conf->global->MAIN_HTML_FOOTER)) print $conf->global->MAIN_HTML_FOOTER."\n";
// Google Analytics (need Google module)
- if (! empty($conf->global->MAIN_GOOGLE_AN_ID))
+ if (! empty($conf->google->enabled) && ! empty($conf->global->MAIN_GOOGLE_AN_ID))
{
- print "\n";
- print ''."\n";
+ if (empty($conf->dol_use_jmobile))
+ {
+ print "\n";
+ print ''."\n";
+ }
}
// End of tuning
diff --git a/htdocs/core/tpl/login.tpl.php b/htdocs/core/tpl/login.tpl.php
index b62ad5890be..fa3d21b9201 100644
--- a/htdocs/core/tpl/login.tpl.php
+++ b/htdocs/core/tpl/login.tpl.php
@@ -206,8 +206,10 @@ if (isset($conf->file->main_authentication) && preg_match('/openid/',$conf->file
?>
global->MAIN_GOOGLE_AD_CLIENT) && ! empty($conf->global->MAIN_GOOGLE_AD_SLOT))
+if (! empty($conf->google->enabled) && ! empty($conf->global->MAIN_GOOGLE_AD_CLIENT) && ! empty($conf->global->MAIN_GOOGLE_AD_SLOT))
{
+ if (empty($conf->dol_use_jmobile))
+ {
?>
diff --git a/htdocs/public/demo/index.php b/htdocs/public/demo/index.php
index d48b0effe6b..c962227f18c 100644
--- a/htdocs/public/demo/index.php
+++ b/htdocs/public/demo/index.php
@@ -79,7 +79,7 @@ if (empty($reshook))
'disablemodules'=>'barcode,boutique,cashdesk,commande,commercial,compta,comptabilite,contrat,expedition,externalsite,facture,ficheinter,fournisseur,mailmanspip,margin,prelevement,product,projet,propal,propale,service,societe,stock,tax',
'icon'=>DOL_URL_ROOT.'/public/demo/dolibarr_screenshot6.png')
);
-
+
// Visible
$alwayscheckedmodules=array('barcode','bookmark','externalrss','fckeditor','geoipmaxmind','gravatar','memcached','syslog','user','webservices'); // Technical module we always want
$alwaysuncheckedmodules=array('paybox','paypal','google','scanner','workflow'); // Module we never want
@@ -256,25 +256,25 @@ padding: 6px;
font: 12px arial,verdana,helvetica;
font-weight: normal;
color: #444444 !important;
-
+
margin: 8px 0px 8px 2px;
-
+
border-left: 1px solid #DDD;
border-right: 1px solid #DDD;
border-bottom: 1px solid #EEE;
border-radius: 8px;
-moz-border-radius: 8px;
-
+
-moz-box-shadow: 4px 4px 4px #EEE;
-webkit-box-shadow: 4px 4px 4px #EEE;
box-shadow: 4px 4px 4px #EEE;
-
+
background-image: linear-gradient(bottom, rgb(246,248,250) 15%, rgb(235,235,238) 100%);
background-image: -o-linear-gradient(bottom, rgb(246,248,250) 15%, rgb(235,235,238) 100%);
background-image: -moz-linear-gradient(bottom, rgb(246,248,250) 15%, rgb(235,235,238) 100%);
background-image: -webkit-linear-gradient(bottom, rgb(246,248,250) 15%, rgb(235,235,238) 100%);
background-image: -ms-linear-gradient(bottom, rgb(246,248,250) 15%, rgb(235,235,238) 100%);
-
+
}
@@ -308,7 +308,7 @@ llxHeaderVierge($langs->trans("DolibarrDemo"), $head);
print "\n";
-print '';
+print '';
print '';
print ' ';
@@ -319,9 +319,9 @@ print ' ';
print ''.$langs->trans("ChooseYourDemoProfil").'';
print ' |
';
-print '| ';
+print ' |
';
-print ''."\n";
+//print ''."\n";
$i=0;
foreach ($demoprofiles as $profilearray)
{
@@ -339,8 +339,8 @@ foreach ($demoprofiles as $profilearray)
if (! empty($profilearray['url'])) $urlwithmod=$profilearray['url'];
//if ($i % $NBOFCOLS == 0) print '';
- print ' ';
- print '| '."\n";
+ //print ' | ';
+ //print '| '."\n";
print ''."\n";
- print ' | ';
+ //print '';
//if ($i % $NBOFCOLS == ($NBOFCOLS-1)) print ' '."\n";
- print ''."\n";
+ //print ''."\n";
$i++;
}
}
-print ' ';
+//print ' ';
print ' | ';
print '
';
@@ -423,21 +426,29 @@ print '';
print '
';
+// TODO Replace this with a hook
// Google Adsense (need Google module)
-if (! empty($conf->global->MAIN_GOOGLE_AD_CLIENT) && ! empty($conf->global->MAIN_GOOGLE_AD_SLOT))
+if (! empty($conf->google->enabled) && ! empty($conf->global->MAIN_GOOGLE_AD_CLIENT) && ! empty($conf->global->MAIN_GOOGLE_AD_SLOT))
{
- print ''."\n";
- print ''."\n";
- print ''."\n";
- print '
'."\n";
+ if (empty($conf->dol_use_jmobile))
+ {
+ print ''."\n";
+ print ''."\n";
+ print ''."\n";
+ print '
'."\n";
+ }
+ else
+ {
+ print ''."\n";
+ }
}
llxFooterVierge();
@@ -457,9 +468,9 @@ function llxHeaderVierge($title, $head = "")
global $user, $conf, $langs;
top_httphead();
-
+
top_htmlhead($head,$title);
-
+
print ''."\n";
}