Bulk actions + Extra data

- fixed issue on bulk action being run even without any items selected
- added WP like feature regarding item selection, if all items are checked, it also checks the header/footer checkboxes
- fixed issue where the selection state was not properly reset
- added List column to subscribers
- added json_encode/json_decode to Twig
This commit is contained in:
Jonathan Labreuille
2015-09-23 14:13:25 +02:00
parent 239e2583d2
commit 56e40feb56
8 changed files with 113 additions and 9 deletions

View File

@@ -18,6 +18,7 @@ class Renderer {
function init() {
$this->setupTranslations();
$this->setupFunctions();
$this->setupHandlebars();
$this->setupGlobalVariables();
$this->setupSyntax();
@@ -28,6 +29,10 @@ class Renderer {
$this->renderer->addExtension(new Twig\i18n(Env::$plugin_name));
}
function setupFunctions() {
$this->renderer->addExtension(new Twig\Functions());
}
function setupHandlebars() {
$this->renderer->addExtension(new Twig\Handlebars());
}
@@ -51,7 +56,9 @@ class Renderer {
function detectCache() {
$cache_path = Env::$views_path . '/cache';
if (WP_DEBUG === false) return $cache_path;
if(WP_DEBUG === false) {
return $cache_path;
}
return false;
}
}