diff options
author | Fabian Becker <halfdan@xnorfz.de> | 2013-04-07 19:37:30 +0400 |
---|---|---|
committer | Fabian Becker <halfdan@xnorfz.de> | 2013-04-07 19:37:30 +0400 |
commit | 525cb974bdaba99f67b49433b7e37116a2db831a (patch) | |
tree | a1b4e25e4ade2f92c63c1eccc0c4da4040969eb7 /plugins/PrivacyManager | |
parent | d832c829734671fb4c3b2c4a1c68aad3b6601df0 (diff) |
PrivacyManager converted to twig
Diffstat (limited to 'plugins/PrivacyManager')
-rw-r--r-- | plugins/PrivacyManager/Controller.php | 4 | ||||
-rw-r--r-- | plugins/PrivacyManager/templates/privacySettings.tpl | 267 | ||||
-rw-r--r-- | plugins/PrivacyManager/templates/privacySettings.twig | 273 |
3 files changed, 275 insertions, 269 deletions
diff --git a/plugins/PrivacyManager/Controller.php b/plugins/PrivacyManager/Controller.php index bb25d40173..a51addf23d 100644 --- a/plugins/PrivacyManager/Controller.php +++ b/plugins/PrivacyManager/Controller.php @@ -86,7 +86,7 @@ class Piwik_PrivacyManager_Controller extends Piwik_Controller_Admin public function getDatabaseSize() { Piwik::checkUserIsSuperUser(); - $view = Piwik_View::factory('databaseSize'); + $view = new Piwik_View('@PrivacyManager/databaseSize'); $forceEstimate = Piwik_Common::getRequestVar('forceEstimate', 0); $view->dbStats = $this->getDeleteDBSizeEstimate($getSettingsFromQuery = true, $forceEstimate); @@ -108,7 +108,7 @@ class Piwik_PrivacyManager_Controller extends Piwik_Controller_Admin public function privacySettings() { Piwik::checkUserHasSomeAdminAccess(); - $view = Piwik_View::factory('privacySettings'); + $view = new Piwik_View('@PrivacyManager/privacySettings'); if (Piwik::isUserIsSuperUser()) { $view->deleteData = $this->getDeleteDataInfo(); diff --git a/plugins/PrivacyManager/templates/privacySettings.tpl b/plugins/PrivacyManager/templates/privacySettings.tpl deleted file mode 100644 index f1478cb997..0000000000 --- a/plugins/PrivacyManager/templates/privacySettings.tpl +++ /dev/null @@ -1,267 +0,0 @@ -{include file="CoreAdminHome/templates/header.tpl"} - -{if $isSuperUser} - <h2>{'PrivacyManager_TeaserHeadline'|translate}</h2> - <p>{'PrivacyManager_Teaser'|translate:'<a href="#anonymizeIPAnchor">':"</a>":'<a href="#deleteLogsAnchor">':"</a>":'<a href="#optOutAnchor">':"</a>"} - See also our official guide <b><a href='http://piwik.org/privacy/' target='_blank'>Web Analytics Privacy</a></b></p> - <a name="anonymizeIPAnchor"></a> - <h2>{'PrivacyManager_UseAnonymizeIp'|translate}</h2> - <form method="post" action="{url action=saveSettings form=formMaskLength token_auth=$token_auth}" id="formMaskLength" name="formMaskLength"> - <div id='anonymizeIpSettings'> - <table class="adminTable" style='width:800px;'> - <tr> - <td width="250">{'PrivacyManager_UseAnonymizeIp'|translate}<br/> - <span class="form-description">{'PrivacyManager_AnonymizeIpDescription'|translate}</span> - </td> - <td width='500'> - <label><input type="radio" name="anonymizeIPEnable" value="1" {if $anonymizeIP.enabled eq '1'} - checked {/if}/> {'General_Yes'|translate}</label> - <label><input type="radio" name="anonymizeIPEnable" value="0" - style="margin-left:20px;" {if $anonymizeIP.enabled eq '0'} checked {/if}/> {'General_No'|translate} - </label> - <input type="hidden" name="token_auth" value="{$token_auth}"/> - <input type="hidden" name="pluginName" value="{$anonymizeIP.name}"/> - </td> - <td width="200"> - {'AnonymizeIP_PluginDescription'|translate|inlineHelp} - </td> - </tr> - </table> - </div> - <div id="anonymizeIPenabled"> - <table class="adminTable" style='width:800px;'> - <tr> - <td width="250">{'PrivacyManager_AnonymizeIpMaskLengtDescription'|translate}</td> - <td width="500"> - <label><input type="radio" name="maskLength" value="1" {if $anonymizeIP.maskLength eq '1'} - checked {/if}/> {'PrivacyManager_AnonymizeIpMaskLength'|translate:"1":"192.168.100.xxx"} - </label><br/> - <label><input type="radio" name="maskLength" value="2" {if $anonymizeIP.maskLength eq '2'} - checked {/if}/> {'PrivacyManager_AnonymizeIpMaskLength'|translate:"2":"192.168.xxx.xxx"} <span - class="form-description">{'General_Recommended'|translate}</span></label><br/> - <label><input type="radio" name="maskLength" value="3" {if $anonymizeIP.maskLength eq '3'} - checked {/if}/> {'PrivacyManager_AnonymizeIpMaskLength'|translate:"3":"192.xxx.xxx.xxx"}</label> - </td> - <td width="200"> - {'PrivacyManager_GeolocationAnonymizeIpNote'|translate|inlineHelp} - </td> - </tr> - </table> - </div> - <input type="submit" value="{'General_Save'|translate}" id="privacySettingsSubmit" class="submit"/> - </form> - <div class="ui-confirm" id="confirmDeleteSettings"> - <h2 id="deleteLogsConfirm">{'PrivacyManager_DeleteLogsConfirm'|translate}</h2> - - <h2 id="deleteReportsConfirm">{'PrivacyManager_DeleteReportsConfirm'|translate}</h2> - - <h2 id="deleteBothConfirm">{'PrivacyManager_DeleteBothConfirm'|translate}</h2> - <input role="yes" type="button" value="{'General_Yes'|translate}"/> - <input role="no" type="button" value="{'General_No'|translate}"/> - </div> - <div class="ui-confirm" id="saveSettingsBeforePurge"> - <h2>{'PrivacyManager_SaveSettingsBeforePurge'|translate}</h2> - <input role="yes" type="button" value="{'General_Ok'|translate}"/> - </div> - <div class="ui-confirm" id="confirmPurgeNow"> - <h2>{'PrivacyManager_PurgeNowConfirm'|translate}</h2> - <input role="yes" type="button" value="{'General_Yes'|translate}"/> - <input role="no" type="button" value="{'General_No'|translate}"/> - </div> - <a name="deleteLogsAnchor"></a> - <h2>{'PrivacyManager_DeleteDataSettings'|translate}</h2> - <p>{'PrivacyManager_DeleteDataDescription'|translate} {'PrivacyManager_DeleteDataDescription2'|translate}</p> - <form method="post" action="{url action=saveSettings form=formDeleteSettings token_auth=$token_auth}" id="formDeleteSettings" name="formMaskLength"> - <table class="adminTable" style='width:800px;'> - <tr id='deleteLogSettingEnabled'> - <td width="250">{'PrivacyManager_UseDeleteLog'|translate}<br/> - - </td> - <td width='500'> - <label><input type="radio" name="deleteEnable" value="1" {if $deleteData.config.delete_logs_enable eq '1'} - checked {/if}/> {'General_Yes'|translate}</label> - <label><input type="radio" name="deleteEnable" value="0" - style="margin-left:20px;" {if $deleteData.config.delete_logs_enable eq '0'} - checked {/if}/> {'General_No'|translate} - </label> - <span class="ajaxSuccess"> - {'PrivacyManager_DeleteLogDescription2'|translate} - <a href="http://piwik.org/faq/general/#faq_125" target="_blank"> - {'General_ClickHere'|translate} - </a> - </span> - </td> - <td width="200"> - {capture assign=deleteLogInfo} - {'PrivacyManager_DeleteLogInfo'|translate:$deleteData.deleteTables} - {if !$canDeleteLogActions} - <br/> - <br/> - {'PrivacyManager_CannotLockSoDeleteLogActions'|translate:$dbUser} - {/if} - {/capture} - {$deleteLogInfo|inlineHelp} - </td> - </tr> - <tr id="deleteLogSettings"> - <td width="250"> </td> - <td width="500"> - <label>{'PrivacyManager_DeleteLogsOlderThan'|translate} - <input type="text" id="deleteOlderThan" value="{$deleteData.config.delete_logs_older_than}" style="width:30px;" - name="deleteOlderThan"/> - {'CoreHome_PeriodDays'|translate}</label><br/> - <span class="form-description">{'PrivacyManager_LeastDaysInput'|translate:"1"}</span> - </td> - <td width="200"> - - </td> - </tr> - <tr id='deleteReportsSettingEnabled'> - <td width="250">{'PrivacyManager_UseDeleteReports'|translate} - </td> - <td width="500"> - <label><input type="radio" name="deleteReportsEnable" value="1" - {if $deleteData.config.delete_reports_enable eq '1'}checked="true"{/if}/> {'General_Yes'|translate}</label> - <label><input type="radio" name="deleteReportsEnable" value="0" {if $deleteData.config.delete_reports_enable eq '0'}checked="true"{/if} - style="margin-left:20px;"/> {'General_No'|translate} - </label> - - <span class="ajaxSuccess"> - {capture assign=deleteOldLogs}{'PrivacyManager_UseDeleteLog'|translate}{/capture} - {'PrivacyManager_DeleteReportsInfo'|translate:'<em>':'</em>'} - <span id='deleteOldReportsMoreInfo'><br/><br/> - {'PrivacyManager_DeleteReportsInfo2'|translate:$deleteOldLogs}<br/><br/> - {'PrivacyManager_DeleteReportsInfo3'|translate:$deleteOldLogs}</span> - </span> - </td> - <td width="200"> - {'PrivacyManager_DeleteReportsDetailedInfo'|translate:'archive_numeric_*':'archive_blob_*'|inlineHelp} - </td> - </tr> - <tr id='deleteReportsSettings'> - <td width="250"> </td> - <td width="500"> - <label>{'PrivacyManager_DeleteReportsOlderThan'|translate} - <input type="text" id="deleteReportsOlderThan" value="{$deleteData.config.delete_reports_older_than}" style="width:30px;" - name="deleteReportsOlderThan"/> - {'CoreHome_PeriodMonths'|translate} - </label><br/> - <span class="form-description">{'PrivacyManager_LeastMonthsInput'|translate:"3"}</span><br/><br/> - <label><input type="checkbox" name="deleteReportsKeepBasic" value="1" - {if $deleteData.config.delete_reports_keep_basic_metrics}checked="true"{/if}>{'PrivacyManager_KeepBasicMetrics'|translate} - <span class="form-description">{'General_Recommended'|translate}</span></input> - </label><br/><br/> - {'PrivacyManager_KeepDataFor'|translate}<br/> - <label><input type="checkbox" name="deleteReportsKeepDay" value="1" - {if $deleteData.config.delete_reports_keep_day_reports}checked="true"{/if}>{'General_DailyReports'|translate}</input></label><br/> - <label><input type="checkbox" name="deleteReportsKeepWeek" value="1" - {if $deleteData.config.delete_reports_keep_week_reports}checked="true"{/if}>{'General_WeeklyReports'|translate}</input></label><br/> - <label><input type="checkbox" name="deleteReportsKeepMonth" value="1" - {if $deleteData.config.delete_reports_keep_month_reports}checked="true"{/if}>{'General_MonthlyReports'|translate}<span - class="form-description">{'General_Recommended'|translate}</span></input></label><br/> - <label><input type="checkbox" name="deleteReportsKeepYear" value="1" - {if $deleteData.config.delete_reports_keep_year_reports}checked="true"{/if}>{'General_YearlyReports'|translate}<span - class="form-description">{'General_Recommended'|translate}</span></input></label><br/> - <label><input type="checkbox" name="deleteReportsKeepRange" value="1" - {if $deleteData.config.delete_reports_keep_range_reports}checked="true"{/if}>{'General_RangeReports'|translate}</input></label><br/><br/> - <label><input type="checkbox" name="deleteReportsKeepSegments" value="1" - {if $deleteData.config.delete_reports_keep_segment_reports}checked="true"{/if}>{'PrivacyManager_KeepReportSegments'|translate}</input></label><br/> - </td> - <td width="200"> - - </td> - </tr> - <tr id="deleteDataEstimateSect" - {if $deleteData.config.delete_reports_enable eq '0' and $deleteData.config.delete_logs_enable eq '0'}style="display:none;"{/if}> - <td width="250">{'PrivacyManager_ReportsDataSavedEstimate'|translate}<br/></td> - <td width="500"> - <div id="deleteDataEstimate"></div> - <span class='loadingPiwik' style='display:none'><img - src='./themes/default/images/loading-blue.gif'/> {'General_LoadingData'|translate}</span> - </td> - <td width="200"> - {if $deleteData.config.enable_auto_database_size_estimate eq '0'} - {capture assign=manualEstimate} - <em><a id="getPurgeEstimateLink" class="ui-inline-help" href="#">{'PrivacyManager_GetPurgeEstimate'|translate}</a></em> - {/capture} - {$manualEstimate|inlineHelp} - {/if} - </td> - </tr> - <tr id="deleteSchedulingSettings"> - <td width="250">{'PrivacyManager_DeleteSchedulingSettings'|translate}<br/></td> - <td width="500"> - <label>{'PrivacyManager_DeleteDataInterval'|translate} - <select id="deleteLowestInterval" name="deleteLowestInterval"> - <option {if $deleteData.config.delete_logs_schedule_lowest_interval eq '1'} selected="selected" {/if} - value="1"> {'CoreHome_PeriodDay'|translate}</option> - <option {if $deleteData.config.delete_logs_schedule_lowest_interval eq '7'} selected="selected" {/if} - value="7">{'CoreHome_PeriodWeek'|translate}</option> - <option {if $deleteData.config.delete_logs_schedule_lowest_interval eq '30'} selected="selected" {/if} - value="30">{'CoreHome_PeriodMonth'|translate}</option> - </select></label><br/><br/> - </td> - <td width="200"> - {capture assign=purgeStats} - {if $deleteData.lastRun}<strong>{'PrivacyManager_LastDelete'|translate}:</strong> - {$deleteData.lastRunPretty} - <br/> - <br/> - {/if} - <strong>{'PrivacyManager_NextDelete'|translate}:</strong> - {$deleteData.nextRunPretty} - <br/> - <br/> - <em><a id="purgeDataNowLink" href="#">{'PrivacyManager_PurgeNow'|translate}</a></em> - <span class='loadingPiwik' style='display:none'><img - src='./themes/default/images/loading-blue.gif'/> {'PrivacyManager_PurgingData'|translate}</span> - <span id="db-purged-message" style="display: none;"><em>{'PrivacyManager_DBPurged'|translate}</em></span> - {/capture} - {$purgeStats|inlineHelp} - </td> - </tr> - </table> - <input type="button" value="{'General_Save'|translate}" id="deleteLogSettingsSubmit" class="submit"/> - </form> - <a name="DNT"></a> - <h2>{'PrivacyManager_DoNotTrack_SupportDNTPreference'|translate}</h2> - <table class="adminTable" style='width:800px;'> - <tr> - <td width="650"> - <p>{if $dntSupport} - {assign var=action value=deactivate} - <b>{'PrivacyManager_DoNotTrack_Enabled'|translate}</b> - <br/> - {'PrivacyManager_DoNotTrack_EnabledMoreInfo'|translate} - {else} - {assign var=action value=activate} - {'PrivacyManager_DoNotTrack_Disabled'|translate} {'PrivacyManager_DoNotTrack_DisabledMoreInfo'|translate} - {/if}</p> - <span style='margin-left:20px'> - <a href='{url module=CorePluginsAdmin token_auth=$token_auth action=$action pluginName=DoNotTrack}#DNT'>› - {if $dntSupport}{'PrivacyManager_DoNotTrack_Disable'|translate} {'General_NotRecommended'|translate} - {else}{'PrivacyManager_DoNotTrack_Enable'|translate} {'General_Recommended'|translate}{/if} - <br/> - </a></span> - </td> - <td width="200"> - {'PrivacyManager_DoNotTrack_Description'|translate|inlineHelp} - </td> - </tr> - </table> -{/if} - -<a name="optOutAnchor"></a> -<h2>{'CoreAdminHome_OptOutForYourVisitors'|translate}</h2> -<p>{'CoreAdminHome_OptOutExplanation'|translate} - {capture name=optOutUrl}{$piwikUrl}index.php?module=CoreAdminHome&action=optOut&language={$language}{/capture} - {assign var=optOutUrl value=$smarty.capture.optOutUrl} - {capture name=iframeOptOut} - <iframe frameborder="no" width="600px" height="200px" src="{$smarty.capture.optOutUrl}"></iframe>{/capture} - <code>{$smarty.capture.iframeOptOut|escape:'html'}</code> - <br/> - {'CoreAdminHome_OptOutExplanationBis'|translate:"<a href='$optOutUrl' target='_blank'>":"</a>"} -</p> - -<div style='height:100px'></div> -{include file="CoreAdminHome/templates/footer.tpl"} diff --git a/plugins/PrivacyManager/templates/privacySettings.twig b/plugins/PrivacyManager/templates/privacySettings.twig new file mode 100644 index 0000000000..892cfbb9bb --- /dev/null +++ b/plugins/PrivacyManager/templates/privacySettings.twig @@ -0,0 +1,273 @@ +{% extends 'admin.twig' %} + +{% block content %} +{% import 'macros.twig' as piwik %} +{% if isSuperUser %} + <h2>{{ 'PrivacyManager_TeaserHeadline'|translate }}</h2> + <p>{{ 'PrivacyManager_Teaser'|translate('<a href="#anonymizeIPAnchor">',"</a>",'<a href="#deleteLogsAnchor">',"</a>",'<a href="#optOutAnchor">',"</a>")|raw }} + See also our official guide <b><a href='http://piwik.org/privacy/' target='_blank'>Web Analytics Privacy</a></b></p> + <a name="anonymizeIPAnchor"></a> + <h2>{{ 'PrivacyManager_UseAnonymizeIp'|translate }}</h2> + <form method="post" action="{{ url({'action':'saveSettings', 'form':'formMaskLength', 'token_auth':token_auth}) }}" id="formMaskLength" name="formMaskLength"> + <div id='anonymizeIpSettings'> + <table class="adminTable" style='width:800px;'> + <tr> + <td width="250">{{ 'PrivacyManager_UseAnonymizeIp'|translate }}<br/> + <span class="form-description">{{ 'PrivacyManager_AnonymizeIpDescription'|translate }}</span> + </td> + <td width='500'> + <label> + <input type="radio" name="anonymizeIPEnable" value="1" {% if anonymizeIP.enabled == '1' %}checked {% endif %}/> {{ 'General_Yes'|translate }} + </label> + <label> + <input type="radio" name="anonymizeIPEnable" value="0" style="margin-left:20px;" {% if anonymizeIP.enabled == '0' %} checked {% endif %}/> {{ 'General_No'|translate }} + </label> + <input type="hidden" name="token_auth" value="{{ token_auth }}"/> + <input type="hidden" name="pluginName" value="{{ anonymizeIP.name }}"/> + </td> + <td width="200"> + {{ piwik.inlineHelp('AnonymizeIP_PluginDescription'|translate) }} + </td> + </tr> + </table> + </div> + <div id="anonymizeIPenabled"> + <table class="adminTable" style='width:800px;'> + <tr> + <td width="250">{{ 'PrivacyManager_AnonymizeIpMaskLengtDescription'|translate }}</td> + <td width="500"> + <label><input type="radio" name="maskLength" value="1" {% if anonymizeIP.maskLength == '1' %} + checked {% endif %}/> {{ 'PrivacyManager_AnonymizeIpMaskLength'|translate("1","192.168.100.xxx") }} + </label><br/> + <label><input type="radio" name="maskLength" value="2" {% if anonymizeIP.maskLength == '2' %} + checked {% endif %}/> {{ 'PrivacyManager_AnonymizeIpMaskLength'|translate("2","192.168.xxx.xxx") }} <span + class="form-description">{{ 'General_Recommended'|translate }}</span></label><br/> + <label><input type="radio" name="maskLength" value="3" {% if anonymizeIP.maskLength == '3' %} + checked {% endif %}/> {{ 'PrivacyManager_AnonymizeIpMaskLength'|translate("3","192.xxx.xxx.xxx") }}</label> + </td> + <td width="200"> + {{ piwik.inlineHelp('PrivacyManager_GeolocationAnonymizeIpNote'|translate) }} + </td> + </tr> + </table> + </div> + <input type="submit" value="{{ 'General_Save'|translate }}" id="privacySettingsSubmit" class="submit"/> + </form> + <div class="ui-confirm" id="confirmDeleteSettings"> + <h2 id="deleteLogsConfirm">{{ 'PrivacyManager_DeleteLogsConfirm'|translate }}</h2> + + <h2 id="deleteReportsConfirm">{{ 'PrivacyManager_DeleteReportsConfirm'|translate }}</h2> + + <h2 id="deleteBothConfirm">{{ 'PrivacyManager_DeleteBothConfirm'|translate }}</h2> + <input role="yes" type="button" value="{{ 'General_Yes'|translate }}"/> + <input role="no" type="button" value="{{ 'General_No'|translate }}"/> + </div> + <div class="ui-confirm" id="saveSettingsBeforePurge"> + <h2>{{ 'PrivacyManager_SaveSettingsBeforePurge'|translate }}</h2> + <input role="yes" type="button" value="{{ 'General_Ok'|translate }}"/> + </div> + <div class="ui-confirm" id="confirmPurgeNow"> + <h2>{{ 'PrivacyManager_PurgeNowConfirm'|translate }}</h2> + <input role="yes" type="button" value="{{ 'General_Yes'|translate }}"/> + <input role="no" type="button" value="{{ 'General_No'|translate }}"/> + </div> + <a name="deleteLogsAnchor"></a> + <h2>{{ 'PrivacyManager_DeleteDataSettings'|translate }}</h2> + <p>{{ 'PrivacyManager_DeleteDataDescription'|translate }} {{ 'PrivacyManager_DeleteDataDescription2'|translate }}</p> + <form method="post" action="{{ url({'action':'saveSettings','form':'formDeleteSettings','token_auth':token_auth}) }}" id="formDeleteSettings" name="formMaskLength"> + <table class="adminTable" style='width:800px;'> + <tr id='deleteLogSettingEnabled'> + <td width="250">{{ 'PrivacyManager_UseDeleteLog'|translate }}<br/> + + </td> + <td width='500'> + <label><input type="radio" name="deleteEnable" value="1" {% if deleteData.config.delete_logs_enable == '1' %} + checked {% endif %}/> {{ 'General_Yes'|translate }}</label> + <label><input type="radio" name="deleteEnable" value="0" + style="margin-left:20px;" {% if deleteData.config.delete_logs_enable == '0' %} + checked {% endif %}/> {{ 'General_No'|translate }} + </label> + <span class="ajaxSuccess"> + {{ 'PrivacyManager_DeleteLogDescription2'|translate|raw }} + <a href="http://piwik.org/faq/general/#faq_125" target="_blank"> + {{ 'General_ClickHere'|translate }} + </a> + </span> + </td> + <td width="200"> + {% set deleteLogInfo %} + {{ 'PrivacyManager_DeleteLogInfo'|translate(deleteData.deleteTables)|raw }} + {% if not canDeleteLogActions %} + <br/> + <br/> + {{ 'PrivacyManager_CannotLockSoDeleteLogActions'|translate(dbUser) }} + {% endif %} + {% endset %} + {{ piwik.inlineHelp(deleteLogInfo)|raw }} + </td> + </tr> + <tr id="deleteLogSettings"> + <td width="250"> </td> + <td width="500"> + <label>{{ 'PrivacyManager_DeleteLogsOlderThan'|translate }} + <input type="text" id="deleteOlderThan" value="{{ deleteData.config.delete_logs_older_than }}" style="width:30px;" + name="deleteOlderThan"/> + {{ 'CoreHome_PeriodDays'|translate }}</label><br/> + <span class="form-description">{{ 'PrivacyManager_LeastDaysInput'|translate("1") }}</span> + </td> + <td width="200"> + + </td> + </tr> + <tr id='deleteReportsSettingEnabled'> + <td width="250">{{ 'PrivacyManager_UseDeleteReports'|translate }} + </td> + <td width="500"> + <label> + <input type="radio" name="deleteReportsEnable" value="1" {% if deleteData.config.delete_reports_enable == '1' %}checked="true"{% endif %} /> + {{ 'General_Yes'|translate }} + </label> + <label> + <input type="radio" name="deleteReportsEnable" value="0" {% if deleteData.config.delete_reports_enable == '0' %}checked="true"{% endif %} style="margin-left:20px;"/> + {{ 'General_No'|translate }} + </label> + + <span class="ajaxSuccess"> + {% set deleteOldLogs %}{{ 'PrivacyManager_UseDeleteLog'|translate }}{% endset %} + {{ 'PrivacyManager_DeleteReportsInfo'|translate('<em>','</em>')|raw }} + <span id='deleteOldReportsMoreInfo'><br/><br/> + {{ 'PrivacyManager_DeleteReportsInfo2'|translate(deleteOldLogs) }}<br/><br/> + {{ 'PrivacyManager_DeleteReportsInfo3'|translate(deleteOldLogs) }}</span> + </span> + </td> + <td width="200"> + {{ piwik.inlineHelp('PrivacyManager_DeleteReportsDetailedInfo'|translate('archive_numeric_*','archive_blob_*')) }} + </td> + </tr> + <tr id='deleteReportsSettings'> + <td width="250"> </td> + <td width="500"> + <label>{{ 'PrivacyManager_DeleteReportsOlderThan'|translate }} + <input type="text" id="deleteReportsOlderThan" value="{{ deleteData.config.delete_reports_older_than }}" style="width:30px;" + name="deleteReportsOlderThan"/> + {{ 'CoreHome_PeriodMonths'|translate }} + </label><br/> + <span class="form-description">{{ 'PrivacyManager_LeastMonthsInput'|translate("3") }}</span><br/><br/> + <label><input type="checkbox" name="deleteReportsKeepBasic" value="1" + {% if deleteData.config.delete_reports_keep_basic_metrics %}checked="true"{% endif %}>{{ 'PrivacyManager_KeepBasicMetrics'|translate }} + <span class="form-description">{{ 'General_Recommended'|translate }}</span></input> + </label><br/><br/> + {{ 'PrivacyManager_KeepDataFor'|translate }}<br/> + <label><input type="checkbox" name="deleteReportsKeepDay" value="1" + {% if deleteData.config.delete_reports_keep_day_reports %}checked="true"{% endif %}>{{ 'General_DailyReports'|translate }}</input></label><br/> + <label><input type="checkbox" name="deleteReportsKeepWeek" value="1" + {% if deleteData.config.delete_reports_keep_week_reports %}checked="true"{% endif %}>{{ 'General_WeeklyReports'|translate }}</input></label><br/> + <label><input type="checkbox" name="deleteReportsKeepMonth" value="1" + {% if deleteData.config.delete_reports_keep_month_reports %}checked="true"{% endif %}>{{ 'General_MonthlyReports'|translate }}<span + class="form-description">{{ 'General_Recommended'|translate }}</span></input></label><br/> + <label><input type="checkbox" name="deleteReportsKeepYear" value="1" + {% if deleteData.config.delete_reports_keep_year_reports %}checked="true"{% endif %}>{{ 'General_YearlyReports'|translate }}<span + class="form-description">{{ 'General_Recommended'|translate }}</span></input></label><br/> + <label><input type="checkbox" name="deleteReportsKeepRange" value="1" + {% if deleteData.config.delete_reports_keep_range_reports %}checked="true"{% endif %}>{{ 'General_RangeReports'|translate }}</input></label><br/><br/> + <label><input type="checkbox" name="deleteReportsKeepSegments" value="1" + {% if deleteData.config.delete_reports_keep_segment_reports %}checked="true"{% endif %}>{{ 'PrivacyManager_KeepReportSegments'|translate }}</input></label><br/> + </td> + <td width="200"> + + </td> + </tr> + <tr id="deleteDataEstimateSect" + {% if deleteData.config.delete_reports_enable == '0' and deleteData.config.delete_logs_enable == '0' %}style="display:none;"{% endif %}> + <td width="250">{{ 'PrivacyManager_ReportsDataSavedEstimate'|translate }}<br/></td> + <td width="500"> + <div id="deleteDataEstimate"></div> + <span class='loadingPiwik' style='display:none'><img + src='./themes/default/images/loading-blue.gif'/> {{ 'General_LoadingData'|translate }}</span> + </td> + <td width="200"> + {% if deleteData.config.enable_auto_database_size_estimate == '0' %} + {% set manualEstimate %} + <em><a id="getPurgeEstimateLink" class="ui-inline-help" href="#">{{ 'PrivacyManager_GetPurgeEstimate'|translate }}</a></em> + {% endset %} + {{ piwik.inlineHelp(manualEstimate) }} + {% endif %} + </td> + </tr> + <tr id="deleteSchedulingSettings"> + <td width="250">{{ 'PrivacyManager_DeleteSchedulingSettings'|translate }}<br/></td> + <td width="500"> + <label>{{ 'PrivacyManager_DeleteDataInterval'|translate }} + <select id="deleteLowestInterval" name="deleteLowestInterval"> + <option {% if deleteData.config.delete_logs_schedule_lowest_interval == '1' %} selected="selected" {% endif %} + value="1"> {{ 'CoreHome_PeriodDay'|translate }}</option> + <option {% if deleteData.config.delete_logs_schedule_lowest_interval == '7' %} selected="selected" {% endif %} + value="7">{{ 'CoreHome_PeriodWeek'|translate }}</option> + <option {% if deleteData.config.delete_logs_schedule_lowest_interval == '30' %} selected="selected" {% endif %} + value="30">{{ 'CoreHome_PeriodMonth'|translate }}</option> + </select></label><br/><br/> + </td> + <td width="200"> + {% set purgeStats %} + {% if deleteData.lastRun %}<strong>{{ 'PrivacyManager_LastDelete'|translate }}:</strong> + {{ deleteData.lastRunPretty }} + <br/> + <br/> + {% endif %} + <strong>{{ 'PrivacyManager_NextDelete'|translate }}:</strong> + {{ deleteData.nextRunPretty }} + <br/> + <br/> + <em><a id="purgeDataNowLink" href="#">{{ 'PrivacyManager_PurgeNow'|translate }}</a></em> + <span class='loadingPiwik' style='display:none'><img + src='./themes/default/images/loading-blue.gif'/> {{ 'PrivacyManager_PurgingData'|translate }}</span> + <span id="db-purged-message" style="display: none;"><em>{{ 'PrivacyManager_DBPurged'|translate }}</em></span> + {% endset %} + {{ piwik.inlineHelp(purgeStats) }} + </td> + </tr> + </table> + <input type="button" value="{{ 'General_Save'|translate }}" id="deleteLogSettingsSubmit" class="submit"/> + </form> + <a name="DNT"></a> + <h2>{{ 'PrivacyManager_DoNotTrack_SupportDNTPreference'|translate }}</h2> + <table class="adminTable" style='width:800px;'> + <tr> + <td width="650"> + <p> + {% if dntSupport %} + {% set action='deactivate' %} + <b>{{ 'PrivacyManager_DoNotTrack_Enabled'|translate }}</b> + <br/> + {{ 'PrivacyManager_DoNotTrack_EnabledMoreInfo'|translate }} + {% else %} + {% set action='activate' %} + {{ 'PrivacyManager_DoNotTrack_Disabled'|translate }} {{ 'PrivacyManager_DoNotTrack_DisabledMoreInfo'|translate }} + {% endif %} + </p> + <span style='margin-left:20px'> + <a href='{{ url({'module':'CorePluginsAdmin','token_auth':token_auth,'action':action,'pluginName':'DoNotTrack'}) }}#DNT'>› + {% if dntSupport %}{{ 'PrivacyManager_DoNotTrack_Disable'|translate }} {{ 'General_NotRecommended'|translate }} + {% else %}{{ 'PrivacyManager_DoNotTrack_Enable'|translate }} {{ 'General_Recommended'|translate }}{% endif %} + <br/> + </a></span> + </td> + <td width="200"> + {{ piwik.inlineHelp('PrivacyManager_DoNotTrack_Description'|translate) }} + </td> + </tr> + </table> +{% endif %} + +<a name="optOutAnchor"></a> +<h2>{{ 'CoreAdminHome_OptOutForYourVisitors'|translate }}</h2> +<p>{{ 'CoreAdminHome_OptOutExplanation'|translate }} + {% set optOutUrl %}{{ piwikUrl }}index.php?module=CoreAdminHome&action=optOut&language={{ language }}{% endset %} + {% set iframeOptOut %}<iframe frameborder="no" width="600px" height="200px" src="{{ optOutUrl }}"></iframe>{% endset %} + <code>{{ iframeOptOut|e('html') }}</code> + <br/> + {{ 'CoreAdminHome_OptOutExplanationBis'|translate("<a href='"+optOutUrl+"' target='_blank'>","</a>")|raw }} +</p> + +<div style='height:100px'></div> +{% endblock %} |