summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2019-07-15 13:40:48 +0300
committerAndrew Dolgov <[email protected]>2019-07-15 13:40:48 +0300
commit36700974891ea33689e7e561b1a7bb244f7f641a (patch)
treeadd7a8c368ddea4fa861d217798a489b48084400
initial
-rw-r--r--init.php30
1 files changed, 30 insertions, 0 deletions
diff --git a/init.php b/init.php
new file mode 100644
index 0000000..59871e3
--- /dev/null
+++ b/init.php
@@ -0,0 +1,30 @@
+<?php
+class Search_Button extends Plugin {
+ private $host;
+
+ function about() {
+ return array(1.0,
+ "Adds a toolbar button to open search dialog",
+ "fox");
+ }
+
+ function init($host) {
+ $this->host = $host;
+
+ $host->add_hook($host::HOOK_MAIN_TOOLBAR_BUTTON, $this);
+ }
+
+ function hook_main_toolbar_button() {
+ ?>
+
+ <button dojoType="dijit.form.Button" onclick="Feeds.search()" style="order : 25">
+ <i class="material-icons" title="<?php echo __('Search...') ?>">search</i>
+ </button>
+
+ <?php
+ }
+
+ function api_version() {
+ return 2;
+ }
+}