Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sualko/cloud_piwik.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsualko <klaus@jsxc.org>2018-03-23 14:58:23 +0300
committersualko <klaus@jsxc.org>2018-03-23 15:04:59 +0300
commitdb8768c9257a3b6f3133cd0c167bbdb0525a41d9 (patch)
tree06febbd1922a2d31de1a6a14587b3526680a941e /templates
parenteabab5a25f59a7423a353517ce0cc655d57a673a (diff)
make app compliant (fix #50, fix #44)
- use new admin settings api - use app framework for settings - remove deprecated code
Diffstat (limited to 'templates')
-rw-r--r--templates/settings-admin.php22
-rw-r--r--templates/settings/admin.php29
2 files changed, 29 insertions, 22 deletions
diff --git a/templates/settings-admin.php b/templates/settings-admin.php
deleted file mode 100644
index cc08779..0000000
--- a/templates/settings-admin.php
+++ /dev/null
@@ -1,22 +0,0 @@
-<div id="piwikSettings" class="section">
- <h2>Piwik Tracking</h2>
- <form>
- <table style="width: auto">
- <tr>
- <td><label for="piwikSiteId">Site ID </label></td>
- <td><input type="text" name="siteId" id="piwikSiteId" pattern="[0-9]+" /></td>
- <td></td>
- </tr>
- <tr>
- <td><label for="piwikUrl">Piwik Url </label></td>
- <td><input type="text" name="url" id="piwikUrl" /></td>
- <td></td>
- </tr>
- <tr>
- <td><label for="piwikTrackDir">Track file browsing </label></td>
- <td><input type="checkbox" name="trackDir" id="piwikTrackDir" /></td>
- <td></td>
- </tr>
- </table>
- </form>
-</div>
diff --git a/templates/settings/admin.php b/templates/settings/admin.php
new file mode 100644
index 0000000..5e1583a
--- /dev/null
+++ b/templates/settings/admin.php
@@ -0,0 +1,29 @@
+<?php
+script('piwik', 'settings/admin');
+style('piwik', 'settings');
+?>
+
+<div id="piwikSettings" class="section">
+ <h2>Piwik Tracking</h2>
+ <p class="settings-hint">If you have no Piwik instance, go to <a href="https://matomo.org" target="_blank">matomo.org</a> for further instructions.</p>
+ <p class="settings-hint">Please take into account that the old values are cached for 2 minutes in your browser.</p>
+
+ <form>
+ <table>
+ <tr>
+ <td><label for="piwikSiteId">Site ID </label></td>
+ <td><input type="number" name="siteId" id="piwikSiteId" pattern="[0-9]+" value="<?php p($_['siteId']);?>" /></td>
+ </tr>
+ <tr>
+ <td><label for="piwikUrl">Piwik Url </label></td>
+ <td><input type="text" name="url" id="piwikUrl" value="<?php p($_['url']);?>" /></td>
+ </tr>
+ <tr>
+ <td colspan="2">
+ <input type="checkbox" name="trackDir" id="piwikTrackDir" class="checkbox" <?php if ($_['trackDir']): ?> checked="checked"<?php endif; ?> />
+ <label for="piwikTrackDir">Track file browsing </label>
+ </td>
+ </tr>
+ </table>
+ </form>
+</div>