diff --git a/etc_cache.php b/etc_cache.php index adb12a2..41c82df 100644 --- a/etc_cache.php +++ b/etc_cache.php @@ -253,9 +253,33 @@ public function tab($event, $step) { $rs = safe_rows('id, time, url, reset, filter, IF(LENGTH(text)>512, CONCAT(LEFT(text, 504), " ..."), text) AS text', 'etc_cache', '1 ORDER BY time DESC'); $now = date_create('now'); - pagetop("etc_cache", "Cache settings"); - echo '

Cached items ('.$prefs['lastmod'].')

'.n; - echo ''; + pagetop("etc_cache"); + + echo n.'
'. + n.tag( + hed('Cached items', 1, array('class' => 'txp-heading')). + graf('('.$prefs['lastmod'].')', array('class' => 'information')), + 'div', array('class' => 'txp-layout-1col') + ); + + echo n.tag_start('div', array( + 'class' => 'txp-layout-1col', + 'id' => $event.'_container', + )). + n.tag_start('div', array('class' => 'txp-listtables')). + n.tag_start('table', array('class' => 'txp-list--no-options')). + n.tag_start('thead'). + tr( + n.'
'. + n.''. + n.''. + n.''. + n.''. + n.''. + n.'' + ). + n.tag_end('thead'). + n.tag_start('tbody'); foreach($rs as $row) { extract($row); @@ -265,24 +289,31 @@ public function tab($event, $step) { $days = $diff->format('%d'); $diff = (!$days ? '' : "$days day".($days == 1 ? '' : 's'). ' ').$diff->format('%H:%I hours old'); - echo ''.n; - echo '"; - echo ''; + echo ''.n.''; + echo n.'"; + echo ''; echo sInput('save'), hInput('id', $id), tInput(); - echo ''; + echo n.''.n.''; } - echo '
'.dLink('etc_cache', 'save', 'save', 'Delete').'idtimeurlresetfilter
'.dLink('etc_cache', 'save', 'save', 'Delete').'ID'.gTxt('time').'URL'.gTxt('reset').'FilterActions
'.tag( - span(gTxt('delete'), array('class' => 'ui-icon ui-icon-close')), - 'button', - array( - 'name' => 'save', - 'value' => 'Delete', - 'class' => 'destroy', - 'type' => 'submit', - 'title' => gTxt('delete'), - 'aria-label' => gTxt('delete'), - ))."".doSpecial($id)."".doSpecial($time)."".fInput('text', 'url', $url)."".fInput('text', 'reset', $reset)."".fInput('text', 'filter', $filter)."', fInput('submit', 'save', gTxt('update')), fInput('submit', 'save', gTxt('save'), 'publish'), '
'. + n.tag( + span(gTxt('delete'), array('class' => 'ui-icon ui-icon-close')), + 'button', + array( + 'name' => 'save', + 'value' => 'Delete', + 'class' => 'destroy', + 'type' => 'submit', + 'title' => gTxt('delete'), + 'aria-label' => gTxt('delete'), + ) + )."".doSpecial($id)."".doSpecial($time)."".fInput('text', 'url', $url)."".fInput('text', 'reset', $reset)."".fInput('text', 'filter', $filter)."', fInput('submit', 'save', gTxt('update')), fInput('submit', 'save', gTxt('save')), '
'; + echo n.tag_end('tbody'). + n.tag_end('table'). + n.tag_end('div'); + + echo n.tag_end('div'). // End of .txp-layout-1col. + n.''; // End of .txp-layout. } //------- end class } diff --git a/manifest.json b/manifest.json index 188a2f3..ec57e67 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "name": "etc_cache", "description": "Events-driven cache solution for Textpattern CMS.", - "version": "0.2.6-beta", + "version": "0.2.6-beta2", "type": 5, "author": "Oleg Loukianov", "author_uri": "http://www.iut-fbleau.fr/projet/etc/",