diff --git a/images/dashinfinity.gif b/images/dashinfinity.gif new file mode 100644 index 00000000..c88c57d4 Binary files /dev/null and b/images/dashinfinity.gif differ diff --git a/library/StaticHtmlOutput.php b/library/StaticHtmlOutput.php index 950e57aa..65ebecb4 100644 --- a/library/StaticHtmlOutput.php +++ b/library/StaticHtmlOutput.php @@ -97,6 +97,7 @@ class StaticHtmlOutput { add_action('admin_menu', array($instance, 'registerOptionsPage')); add_action(self::HOOK . '-saveOptions', array($instance, 'saveOptions')); + } return $instance; @@ -235,13 +236,6 @@ class StaticHtmlOutput public function genArch() { - // Protection - if (!isset($_POST['action']) || 'genArchive' != $_POST['action']) - { - return; - } - - // Generate archive $archiveUrl = $this->_generateArchive(); @@ -259,12 +253,10 @@ class StaticHtmlOutput } } - echo 'Archive has been created... log...'; -/* $this->_view->setTemplate('message') ->assign('message', $message) + ->assign('exportLog', $this->_exportLog) ->render(); -*/ } /** diff --git a/views/message.phtml b/views/message.phtml index 07c5ffa8..49ba3927 100644 --- a/views/message.phtml +++ b/views/message.phtml @@ -5,6 +5,13 @@ * Copyright (c) 2011 Leon Stafford */ ?> +
message ?>
-message; ?>
+ + + + exportLog) && count($this->exportLog)): ?> +exportLog)) ?>+ diff --git a/views/options-page.phtml b/views/options-page.phtml index 5ced0b31..1bab0f8e 100644 --- a/views/options-page.phtml +++ b/views/options-page.phtml @@ -9,10 +9,10 @@