diff --git a/public/include/config/admin_settings.inc.php b/public/include/config/admin_settings.inc.php index 99a8894b..3591ce6d 100644 --- a/public/include/config/admin_settings.inc.php +++ b/public/include/config/admin_settings.inc.php @@ -160,8 +160,8 @@ $aSettings['statistics'][] = array( ); $aSettings['statistics'][] = array( 'display' => 'Google Analytics Code', 'type' => 'textarea', - 'size' => 5, - 'height' => 10, + 'size' => 20, + 'height' => 12, 'default' => 'Code from Google Analytics', 'name' => 'statistics_analytics_code', 'value' => $setting->getValue('statistics_analytics_code'), 'tooltip' => '.' diff --git a/public/include/smarty_globals.inc.php b/public/include/smarty_globals.inc.php index 26cc91b6..58e639b4 100644 --- a/public/include/smarty_globals.inc.php +++ b/public/include/smarty_globals.inc.php @@ -93,8 +93,8 @@ $setting->getValue('website_blockexplorer_url') ? $aGlobal['website']['blockexpl $setting->getValue('website_chaininfo_url') ? $aGlobal['website']['chaininfo']['url'] = $setting->getValue('website_chaininfo_url') : $aGlobal['website']['chaininfo']['url'] = 'http://allchains.info'; // Google Analytics -$aGlobal['analytics']['enabled'] = $setting->getValue('statistics_analytics_enabled'); -$aGlobal['analytics']['code'] = $setting->getValue('statistics_analytics_code'); +$aGlobal['statistics']['analytics']['enabled'] = $setting->getValue('statistics_analytics_enabled'); +$aGlobal['statistics']['analytics']['code'] = $setting->getValue('statistics_analytics_code'); // ACLs $aGlobal['acl']['pool']['statistics'] = $setting->getValue('acl_pool_statistics'); diff --git a/public/templates/mmcFE/admin/settings/default.tpl b/public/templates/mmcFE/admin/settings/default.tpl index bd4e2817..98592f65 100644 --- a/public/templates/mmcFE/admin/settings/default.tpl +++ b/public/templates/mmcFE/admin/settings/default.tpl @@ -22,7 +22,7 @@ {else if $SETTINGS.$TAB[setting].type == 'text'} {else if $SETTINGS.$TAB[setting].type == 'textarea'} - + {else} Unknown option type: {$SETTINGS.$TAB[setting].type} {/if} diff --git a/public/templates/mmcFE/master.tpl b/public/templates/mmcFE/master.tpl index e5eafafa..69da419e 100644 --- a/public/templates/mmcFE/master.tpl +++ b/public/templates/mmcFE/master.tpl @@ -24,8 +24,8 @@ - {if $GLOBAL.analytics.enabled} - {$GLOBAL.analytics.code} + {if $GLOBAL.statistics.analytics.enabled} + {$GLOBAL.statistics.analytics.code} {/if} diff --git a/public/templates/mobile/master.tpl b/public/templates/mobile/master.tpl index 20bc62a9..094772ff 100644 --- a/public/templates/mobile/master.tpl +++ b/public/templates/mobile/master.tpl @@ -29,11 +29,11 @@ {/if} - {if $GLOBAL.analytics.enabled} - {$GLOBAL.analytics.code} + {if $GLOBAL.statistics.analytics.enabled} + {$GLOBAL.statistics.analytics.code} {/if} - +
{if $smarty.session.AUTHENTICATED|default:"0" == 1} diff --git a/public/templates/mpos/admin/settings/default.tpl b/public/templates/mpos/admin/settings/default.tpl index 4ceb718b..9bdebf21 100644 --- a/public/templates/mpos/admin/settings/default.tpl +++ b/public/templates/mpos/admin/settings/default.tpl @@ -23,7 +23,7 @@ {else if $SETTINGS.$TAB[setting].type == 'text'} {else if $SETTINGS.$TAB[setting].type == 'textarea'} - + {else} Unknown option type: {$SETTINGS.$TAB[setting].type} {/if} diff --git a/public/templates/mpos/master.tpl b/public/templates/mpos/master.tpl index 0fcfdde3..dbf87e0b 100644 --- a/public/templates/mpos/master.tpl +++ b/public/templates/mpos/master.tpl @@ -28,8 +28,8 @@ - {if $GLOBAL.analytics.enabled} - {$GLOBAL.analytics.code} + {if $GLOBAL.statistics.analytics.enabled} + {$GLOBAL.statistics.analytics.code} {/if}