diff options
author | mattab <matthieu.aubry@gmail.com> | 2013-03-28 03:42:39 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2013-03-28 03:42:40 +0400 |
commit | ae4b03163792f0b6e933933e5d37df87dc3fd566 (patch) | |
tree | d1d7510a9728f587d3d63ebd03e4ecf3d904838b /plugins/VisitorGenerator/templates | |
parent | 158c2150f5f2e13ece459b8d131244c11b763997 (diff) |
Mass conversion of all files to the newly agreed coding standard: PSR 1/2
Converting Piwik core source files, PHP, JS, TPL, CSS
More info: http://piwik.org/participate/coding-standards/
Diffstat (limited to 'plugins/VisitorGenerator/templates')
-rw-r--r-- | plugins/VisitorGenerator/templates/generate.tpl | 19 | ||||
-rw-r--r-- | plugins/VisitorGenerator/templates/index.tpl | 58 |
2 files changed, 40 insertions, 37 deletions
diff --git a/plugins/VisitorGenerator/templates/generate.tpl b/plugins/VisitorGenerator/templates/generate.tpl index 12d13fdac3..370d40b794 100644 --- a/plugins/VisitorGenerator/templates/generate.tpl +++ b/plugins/VisitorGenerator/templates/generate.tpl @@ -2,16 +2,17 @@ <h2>{'VisitorGenerator_VisitorGenerator'|translate}</h2> -Generated visits for {$siteName} and for {'General_LastDays'|translate:$days}.<br /> -Generated {'General_NbActions'|translate}: {$nbActionsTotal}<br /> -{'VisitorGenerator_NbRequestsPerSec'|translate}: {$nbRequestsPerSec}<br /> +Generated visits for {$siteName} and for {'General_LastDays'|translate:$days}.<br/> +Generated {'General_NbActions'|translate}: {$nbActionsTotal}<br/> +{'VisitorGenerator_NbRequestsPerSec'|translate}: {$nbRequestsPerSec}<br/> {$timer}</p> <p><strong> -{if $browserArchivingEnabled} -The reports will be reprocessed the next time you visit the Piwik reports, it might take a few minutes. -{else} -Please re-run the archive.php Piwik script in the crontab to refresh the reports. <a href="http://piwik.org/docs/setup-auto-archiving/">See "How to Set up Auto-Archiving of Your Reports"</a> -{/if} -</strong> + {if $browserArchivingEnabled} + The reports will be reprocessed the next time you visit the Piwik reports, it might take a few minutes. + {else} + Please re-run the archive.php Piwik script in the crontab to refresh the reports. + <a href="http://piwik.org/docs/setup-auto-archiving/">See "How to Set up Auto-Archiving of Your Reports"</a> + {/if} + </strong> </p> {include file="CoreAdminHome/templates/footer.tpl"} diff --git a/plugins/VisitorGenerator/templates/index.tpl b/plugins/VisitorGenerator/templates/index.tpl index 944b82dee2..f3477285ac 100644 --- a/plugins/VisitorGenerator/templates/index.tpl +++ b/plugins/VisitorGenerator/templates/index.tpl @@ -2,36 +2,38 @@ <h2>{'VisitorGenerator_VisitorGenerator'|translate}</h2> <p>{'VisitorGenerator_PluginDescription'|translate}</p> -<p>You can overwrite the log file that is used to generate fake visits (change {$accessLogPath}). This is a log file of requests to "piwik.php" in the format "Apache combined log".</p> +<p>You can overwrite the log file that is used to generate fake visits (change {$accessLogPath}). This is a log file of requests to "piwik.php" in the format + "Apache combined log".</p> <form method="POST" action="{url module=VisitorGenerator action=generate}"> -<table class="adminTable" style="width: 600px;"> -<tr> - <td><label for="idSite">{'General_ChooseWebsite'|translate}</label></td> - <td> - {include file="CoreHome/templates/sites_selection.tpl" - showAllSitesItem=false showSelectedSite=true switchSiteOnSelect=false inputName=idSite} - </td> -</tr> -<tr> - <td><label for="daysToCompute">{'VisitorGenerator_DaysToCompute'|translate}</label></td> - <td><input type="text" value="1" name="daysToCompute" /></td> -</tr> -</table> -{'VisitorGenerator_Warning'|translate}<br /> -{'VisitorGenerator_NotReversible'|translate:'<b>':'</b>'}<br /><br /> -<p><strong>This will generate approximately {$countActionsPerRun} fake actions on this site for each day</strong>.<br/> -</p> -{'VisitorGenerator_AreYouSure'|translate}<br /><br/> -<input type="checkbox" name="choice" id="choice" value="yes" /> <label for="choice">{'VisitorGenerator_ChoiceYes'|translate}</label> -<br /> -<input type="hidden" value="{$token_auth}" name="token_auth" /> -<input type="hidden" value="{$nonce}" name="form_nonce" /> -<br/> + <table class="adminTable" style="width: 600px;"> + <tr> + <td><label for="idSite">{'General_ChooseWebsite'|translate}</label></td> + <td> + {include file="CoreHome/templates/sites_selection.tpl" + showAllSitesItem=false showSelectedSite=true switchSiteOnSelect=false inputName=idSite} + </td> + </tr> + <tr> + <td><label for="daysToCompute">{'VisitorGenerator_DaysToCompute'|translate}</label></td> + <td><input type="text" value="1" name="daysToCompute"/></td> + </tr> + </table> + {'VisitorGenerator_Warning'|translate}<br/> + {'VisitorGenerator_NotReversible'|translate:'<b>':'</b>'}<br/><br/> - NOTE: It might take a few minutes to generate visits and actions, please be patient...<br/> - There is also a faster tool that will import large test data in Piwik, see the <a href='https://github.com/piwik/piwik/tree/master/tests#testing-data'>README</a>.</p> - <br/> -<input type="submit" value="{'VisitorGenerator_Submit'|translate}" name="submit" class="submit" /> + <p><strong>This will generate approximately {$countActionsPerRun} fake actions on this site for each day</strong>.<br/> + </p> + {'VisitorGenerator_AreYouSure'|translate}<br/><br/> + <input type="checkbox" name="choice" id="choice" value="yes"/> <label for="choice">{'VisitorGenerator_ChoiceYes'|translate}</label> + <br/> + <input type="hidden" value="{$token_auth}" name="token_auth"/> + <input type="hidden" value="{$nonce}" name="form_nonce"/> + <br/> + + NOTE: It might take a few minutes to generate visits and actions, please be patient...<br/> + There is also a faster tool that will import large test data in Piwik, see the <a href='https://github.com/piwik/piwik/tree/master/tests#testing-data'>README</a>.</p> + <br/> + <input type="submit" value="{'VisitorGenerator_Submit'|translate}" name="submit" class="submit"/> </form> {include file="CoreAdminHome/templates/footer.tpl"} |