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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user