Version Notes
Initial Release
Download this release
Release Info
Developer | Alan Storm |
Extension | Pulsestorm_Launcher |
Version | 1.0.0 |
Comparing to | |
See all releases |
Version 1.0.0
- app/code/community/Pulsestorm/Launcher/Block/Page/Menu.php +19 -0
- app/code/community/Pulsestorm/Launcher/Helper/Data.php +14 -0
- app/code/community/Pulsestorm/Launcher/Model/Links.php +27 -0
- app/code/community/Pulsestorm/Launcher/Model/Observer.php +155 -0
- app/code/community/Pulsestorm/Launcher/etc/adminhtml.xml +23 -0
- app/code/community/Pulsestorm/Launcher/etc/config.xml +71 -0
- app/code/community/Pulsestorm/Launcher/etc/system.xml +44 -0
- app/design/adminhtml/default/default/template/pulsestorm_launcher/hook.phtml +20 -0
- app/design/adminhtml/default/default/template/pulsestorm_launcher/js-nav.phtml +307 -0
- app/etc/modules/Pulsestorm_Launcher.xml +9 -0
- package.xml +2 -0
- skin/adminhtml/default/default/pulsestorm_launcher/main.css +45 -0
app/code/community/Pulsestorm/Launcher/Block/Page/Menu.php
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
Copyright (c) 2012 Pulse Storm LLC
|
4 |
+
|
5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
6 |
+
|
7 |
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
8 |
+
|
9 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
10 |
+
*/
|
11 |
+
|
12 |
+
class Pulsestorm_Launcher_Block_Page_Menu extends Mage_Adminhtml_Block_Page_Menu
|
13 |
+
{
|
14 |
+
public function secretKeyJsonStringReplace($jsonString)
|
15 |
+
{
|
16 |
+
$jsonString = preg_replace_callback('#'.Mage_Adminhtml_Model_Url::SECRET_KEY_PARAM_NAME.'\\\/\$([^\\\/].*?)\\\/([^\$].*?)\$#', array($this, '_callbackSecretKey'), $jsonString);
|
17 |
+
return $jsonString;
|
18 |
+
}
|
19 |
+
}
|
app/code/community/Pulsestorm/Launcher/Helper/Data.php
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
Copyright (c) 2012 Pulse Storm LLC
|
4 |
+
|
5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
6 |
+
|
7 |
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
8 |
+
|
9 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
10 |
+
*/
|
11 |
+
|
12 |
+
class Pulsestorm_Launcher_Helper_Data extends Mage_Core_Helper_Abstract
|
13 |
+
{
|
14 |
+
}
|
app/code/community/Pulsestorm/Launcher/Model/Links.php
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
Copyright (c) 2012 Pulse Storm LLC
|
4 |
+
|
5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
6 |
+
|
7 |
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
8 |
+
|
9 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
10 |
+
*/
|
11 |
+
|
12 |
+
class Pulsestorm_Launcher_Model_Links
|
13 |
+
{
|
14 |
+
protected $_links;
|
15 |
+
public function addLink($label, $url)
|
16 |
+
{
|
17 |
+
$o = new stdClass();
|
18 |
+
$o->label = strip_tags($label);
|
19 |
+
$o->url = strip_tags($url);
|
20 |
+
$this->_links[] = $o;
|
21 |
+
}
|
22 |
+
|
23 |
+
public function getLinks()
|
24 |
+
{
|
25 |
+
return $this->_links;
|
26 |
+
}
|
27 |
+
}
|
app/code/community/Pulsestorm/Launcher/Model/Observer.php
ADDED
@@ -0,0 +1,155 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
Copyright (c) 2012 Pulse Storm LLC
|
4 |
+
|
5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
6 |
+
|
7 |
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
8 |
+
|
9 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
10 |
+
*/
|
11 |
+
|
12 |
+
class Pulsestorm_Launcher_Model_Observer
|
13 |
+
{
|
14 |
+
public function addNav($observer)
|
15 |
+
{
|
16 |
+
$controller = $observer->getAction();
|
17 |
+
if($this->_shouldBail($controller))
|
18 |
+
{
|
19 |
+
return;
|
20 |
+
}
|
21 |
+
|
22 |
+
$this->_addExtraFrontendFiles($controller);
|
23 |
+
|
24 |
+
$json = $this->_renderDefaultNavigationJson($controller);
|
25 |
+
|
26 |
+
$this->_addMainJavascript($controller,$json);
|
27 |
+
|
28 |
+
|
29 |
+
}
|
30 |
+
|
31 |
+
public function addConfigNav($observer)
|
32 |
+
{
|
33 |
+
$controller = $observer->getAction();
|
34 |
+
if($this->_shouldBail($controller))
|
35 |
+
{
|
36 |
+
return;
|
37 |
+
}
|
38 |
+
|
39 |
+
$launcher_links = Mage::getSingleton('pulsestorm_launcher/links');
|
40 |
+
$block = $controller->getLayout()->createBlock('adminhtml/system_config_tabs')->initTabs();
|
41 |
+
|
42 |
+
$tabs = $block->getTabs();
|
43 |
+
foreach($tabs as $tab)
|
44 |
+
{
|
45 |
+
$sections = $tab->getSections();
|
46 |
+
if(!is_array($sections) && !($sections instanceof Varien_Data_Collection))
|
47 |
+
{
|
48 |
+
continue;
|
49 |
+
}
|
50 |
+
foreach($sections as $section)
|
51 |
+
{
|
52 |
+
$label = 'System Configuration - ' . $section->getLabel();
|
53 |
+
$code = $section->getId();
|
54 |
+
$url = $url = Mage::getModel('adminhtml/url');
|
55 |
+
$url = $url->getUrl('adminhtml/system_config/edit', array('_current'=>true, 'section'=>$code));
|
56 |
+
$launcher_links->addLink($label,$url);
|
57 |
+
}
|
58 |
+
}
|
59 |
+
}
|
60 |
+
|
61 |
+
public function addHookJavascript($observer)
|
62 |
+
{
|
63 |
+
$controller = $observer->getAction();
|
64 |
+
if($this->_shouldBail($controller))
|
65 |
+
{
|
66 |
+
return;
|
67 |
+
}
|
68 |
+
|
69 |
+
$layout = $controller->getLayout();
|
70 |
+
$before_body_end = $layout->getBlock('before_body_end');
|
71 |
+
|
72 |
+
$block = $layout->createBlock('adminhtml/template')
|
73 |
+
->setTemplate('pulsestorm_launcher/hook.phtml')
|
74 |
+
->setLinks(Mage::getSingleton('pulsestorm_launcher/links')->getLinks());
|
75 |
+
|
76 |
+
if($before_body_end)
|
77 |
+
{
|
78 |
+
$before_body_end->append($block);
|
79 |
+
}
|
80 |
+
|
81 |
+
}
|
82 |
+
|
83 |
+
protected function _renderDefaultNavigationJson($controller)
|
84 |
+
{
|
85 |
+
$layout = $controller->getLayout();
|
86 |
+
$block = $layout->createBlock('pulsestorm_launcher/page_menu');
|
87 |
+
$menu = $block->getMenuArray();
|
88 |
+
$json = Mage::helper('core')->jsonEncode($menu);
|
89 |
+
$json = $block->secretKeyJsonStringReplace($json);
|
90 |
+
return $json;
|
91 |
+
}
|
92 |
+
|
93 |
+
protected function _addMainJavascript($controller, $json)
|
94 |
+
{
|
95 |
+
$layout = $controller->getLayout();
|
96 |
+
$before_body_end = $layout->getBlock('before_body_end');
|
97 |
+
|
98 |
+
$first = Mage::getStoreConfig('pulsestorm_launcher/options/shortcut_code_first');
|
99 |
+
$second = Mage::getStoreConfig('pulsestorm_launcher/options/shortcut_code_second');
|
100 |
+
|
101 |
+
$code = '17_32'; //default to ctrl-space
|
102 |
+
if(is_numeric($first) && is_numeric($second))
|
103 |
+
{
|
104 |
+
$code = $first . '_' . $second;
|
105 |
+
}
|
106 |
+
|
107 |
+
$url = Mage::getModel('adminhtml/url');
|
108 |
+
$search = new stdClass();
|
109 |
+
$search->url = $url->getUrl('adminhtml/index/globalSearch');
|
110 |
+
$search = Mage::helper('core')->jsonEncode($search);
|
111 |
+
|
112 |
+
$block = $layout->createBlock('adminhtml/template')
|
113 |
+
->setTemplate('pulsestorm_launcher/js-nav.phtml')
|
114 |
+
->setJson($json)
|
115 |
+
->setSearchUrlJson($search)
|
116 |
+
->setCombinedCodes($code);
|
117 |
+
|
118 |
+
if($before_body_end)
|
119 |
+
{
|
120 |
+
$before_body_end->append($block);
|
121 |
+
}
|
122 |
+
}
|
123 |
+
|
124 |
+
protected function _addExtraFrontendFiles($controller)
|
125 |
+
{
|
126 |
+
$layout = $controller->getLayout();
|
127 |
+
$head = $layout->getBlock('head');
|
128 |
+
if($head)
|
129 |
+
{
|
130 |
+
$design = Mage::getDesign();
|
131 |
+
|
132 |
+
$head->addCss('pulsestorm_launcher/main.css')
|
133 |
+
->addItem('js_css', 'prototype/windows/themes/default.css');
|
134 |
+
|
135 |
+
//add window theme css — some versions have this in the skin, other in /js
|
136 |
+
$skin_url = $design->getSkinUrl('lib/prototype/windows/themes/magento.css');
|
137 |
+
$parts = explode('/',$skin_url);
|
138 |
+
if(in_array('base', $parts))
|
139 |
+
{
|
140 |
+
$head->addItem('js_css', 'prototype/windows/themes/magento.css');
|
141 |
+
}
|
142 |
+
else
|
143 |
+
{
|
144 |
+
$head->addCss('lib/prototype/windows/themes/magento.css');
|
145 |
+
}
|
146 |
+
}
|
147 |
+
}
|
148 |
+
|
149 |
+
protected function _shouldBail($controller)
|
150 |
+
{
|
151 |
+
return strpos($controller->getFullActionName(), 'adminhtml_') !== 0 ||
|
152 |
+
$controller->getRequest()->isAjax();
|
153 |
+
}
|
154 |
+
|
155 |
+
}
|
app/code/community/Pulsestorm/Launcher/etc/adminhtml.xml
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<config>
|
2 |
+
|
3 |
+
<acl>
|
4 |
+
<resources>
|
5 |
+
<admin>
|
6 |
+
<children>
|
7 |
+
<system>
|
8 |
+
<children>
|
9 |
+
<config>
|
10 |
+
<children>
|
11 |
+
<pulsestorm_launcher>
|
12 |
+
<title>Pulsestorm Launcher</title>
|
13 |
+
</pulsestorm_launcher>
|
14 |
+
</children>
|
15 |
+
</config>
|
16 |
+
</children>
|
17 |
+
</system>
|
18 |
+
</children>
|
19 |
+
</admin>
|
20 |
+
</resources>
|
21 |
+
</acl>
|
22 |
+
|
23 |
+
</config>
|
app/code/community/Pulsestorm/Launcher/etc/config.xml
ADDED
@@ -0,0 +1,71 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
+
<config>
|
3 |
+
<modules>
|
4 |
+
<Pulsestorm_Launcher>
|
5 |
+
<version>0.1.1</version>
|
6 |
+
</Pulsestorm_Launcher>
|
7 |
+
</modules>
|
8 |
+
<frontend>
|
9 |
+
<routers>
|
10 |
+
<pulsestorm_launcher>
|
11 |
+
<use>standard</use>
|
12 |
+
<args>
|
13 |
+
<module>Pulsestorm_Launcher</module>
|
14 |
+
<frontName>pulsestorm_launcher</frontName>
|
15 |
+
</args>
|
16 |
+
</pulsestorm_launcher>
|
17 |
+
</routers>
|
18 |
+
</frontend>
|
19 |
+
<global>
|
20 |
+
<blocks>
|
21 |
+
<pulsestorm_launcher>
|
22 |
+
<class>Pulsestorm_Launcher_Block</class>
|
23 |
+
</pulsestorm_launcher>
|
24 |
+
</blocks>
|
25 |
+
<models>
|
26 |
+
<pulsestorm_launcher>
|
27 |
+
<class>Pulsestorm_Launcher_Model</class>
|
28 |
+
</pulsestorm_launcher>
|
29 |
+
</models>
|
30 |
+
<helpers>
|
31 |
+
<pulsestorm_launcher>
|
32 |
+
<class>Pulsestorm_Launcher_Helper</class>
|
33 |
+
</pulsestorm_launcher>
|
34 |
+
</helpers>
|
35 |
+
|
36 |
+
<events>
|
37 |
+
<controller_action_layout_generate_blocks_after>
|
38 |
+
<observers>
|
39 |
+
<pulsestorm_launchermore_blocks>
|
40 |
+
<type>singleton</type>
|
41 |
+
<class>pulsestorm_launcher/observer</class>
|
42 |
+
<method>addNav</method>
|
43 |
+
</pulsestorm_launchermore_blocks>
|
44 |
+
|
45 |
+
<pulsestorm_launcher_add_config_nav>
|
46 |
+
<type>singleton</type>
|
47 |
+
<class>pulsestorm_launcher/observer</class>
|
48 |
+
<method>addConfigNav</method>
|
49 |
+
</pulsestorm_launcher_add_config_nav>
|
50 |
+
|
51 |
+
<pulsestorm_launcher_hooks>
|
52 |
+
<type>singleton</type>
|
53 |
+
<class>pulsestorm_launcher/observer</class>
|
54 |
+
<method>addHookJavascript</method>
|
55 |
+
</pulsestorm_launcher_hooks>
|
56 |
+
|
57 |
+
|
58 |
+
</observers>
|
59 |
+
</controller_action_layout_generate_blocks_after>
|
60 |
+
</events>
|
61 |
+
</global>
|
62 |
+
|
63 |
+
<default>
|
64 |
+
<pulsestorm_launcher>
|
65 |
+
<options>
|
66 |
+
<shortcut_code_first>17</shortcut_code_first>
|
67 |
+
<shortcut_code_second>77</shortcut_code_second>
|
68 |
+
</options>
|
69 |
+
</pulsestorm_launcher>
|
70 |
+
</default>
|
71 |
+
</config>
|
app/code/community/Pulsestorm/Launcher/etc/system.xml
ADDED
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<config>
|
2 |
+
<sections>
|
3 |
+
<pulsestorm_launcher translate="label" module="pulsestorm_launcher">
|
4 |
+
<label>Pulsestorm Launcher</label>
|
5 |
+
<tab>advanced</tab>
|
6 |
+
<frontend_type>text</frontend_type>
|
7 |
+
<sort_order>1010</sort_order>
|
8 |
+
<show_in_default>1</show_in_default>
|
9 |
+
<show_in_website>1</show_in_website>
|
10 |
+
<show_in_store>1</show_in_store>
|
11 |
+
<groups>
|
12 |
+
<options>
|
13 |
+
<label>Options</label>
|
14 |
+
<frontend_type>text</frontend_type>
|
15 |
+
<sort_order>1</sort_order>
|
16 |
+
<show_in_default>1</show_in_default>
|
17 |
+
<show_in_website>1</show_in_website>
|
18 |
+
<show_in_store>1</show_in_store>
|
19 |
+
<fields>
|
20 |
+
<shortcut_code_first>
|
21 |
+
<label>Keyboard Shortcut First</label>
|
22 |
+
<comment>The keycode of the first keyboard shortcut (defulats to "ctrl"/"17")</comment>
|
23 |
+
<frontend_type>text</frontend_type>
|
24 |
+
<sort_order>10</sort_order>
|
25 |
+
<show_in_default>1</show_in_default>
|
26 |
+
<show_in_website>1</show_in_website>
|
27 |
+
<show_in_store>1</show_in_store>
|
28 |
+
</shortcut_code_first>
|
29 |
+
|
30 |
+
<shortcut_code_second>
|
31 |
+
<label>Keyboard Shortcut Second</label>
|
32 |
+
<comment>The keycode of the first keyboard shortcut (defulats to "m"/"77")</comment>
|
33 |
+
<frontend_type>text</frontend_type>
|
34 |
+
<sort_order>15</sort_order>
|
35 |
+
<show_in_default>1</show_in_default>
|
36 |
+
<show_in_website>1</show_in_website>
|
37 |
+
<show_in_store>1</show_in_store>
|
38 |
+
</shortcut_code_second>
|
39 |
+
</fields>
|
40 |
+
</options>
|
41 |
+
</groups>
|
42 |
+
</pulsestorm_launcher>
|
43 |
+
</sections>
|
44 |
+
</config>
|
app/design/adminhtml/default/default/template/pulsestorm_launcher/hook.phtml
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
Copyright (c) 2012 Pulse Storm LLC
|
4 |
+
|
5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
6 |
+
|
7 |
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
8 |
+
|
9 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
10 |
+
*/
|
11 |
+
?>
|
12 |
+
<script type="text/javascript">
|
13 |
+
document.observe('dom:loaded', function(){
|
14 |
+
var links = <?php echo Mage::helper('core')->jsonEncode($this->getLinks()); ?>;
|
15 |
+
$(links).map(function(e){
|
16 |
+
pulsestorm_launcher_register_link(e.label, e.url);
|
17 |
+
return e;
|
18 |
+
});
|
19 |
+
});
|
20 |
+
</script>
|
app/design/adminhtml/default/default/template/pulsestorm_launcher/js-nav.phtml
ADDED
@@ -0,0 +1,307 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
Copyright (c) 2012 Pulse Storm LLC
|
4 |
+
|
5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
6 |
+
|
7 |
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
8 |
+
|
9 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
10 |
+
*/
|
11 |
+
?>
|
12 |
+
<script type="text/javascript">
|
13 |
+
var pulsestorm_launcher_menu = <?php echo $this->getJson(); ?>;
|
14 |
+
var pulsestorm_launcher_search_url = <?php echo $this->getSearchUrlJson(); ?>;
|
15 |
+
//global function ponters into the dom:loaded closure
|
16 |
+
var pulsestorm_launcher_show_launcher;
|
17 |
+
var pulsestorm_launcher_register_link;
|
18 |
+
document.observe('dom:loaded', function(){
|
19 |
+
var menu_links = {};
|
20 |
+
var menu_parents = [];
|
21 |
+
var key_queue = [null,null];
|
22 |
+
|
23 |
+
var get_selected_highlight_index = function()
|
24 |
+
{
|
25 |
+
var elements = $$('#pulsestorm_launcher_results p');
|
26 |
+
var found = false;
|
27 |
+
for(var i=0;i<elements.length;i++)
|
28 |
+
{
|
29 |
+
if(elements[i].hasClassName('highlight'))
|
30 |
+
{
|
31 |
+
found = true;
|
32 |
+
break;
|
33 |
+
}
|
34 |
+
}
|
35 |
+
return found ? i : -1
|
36 |
+
}
|
37 |
+
|
38 |
+
var down = function()
|
39 |
+
{
|
40 |
+
var elements = $$('#pulsestorm_launcher_results p');
|
41 |
+
var i = get_selected_highlight_index();
|
42 |
+
if(i+1 != elements.length)
|
43 |
+
{
|
44 |
+
if(elements[i])
|
45 |
+
{
|
46 |
+
elements[i].removeClassName('highlight');
|
47 |
+
}
|
48 |
+
elements[i+1].addClassName('highlight');
|
49 |
+
}
|
50 |
+
}
|
51 |
+
|
52 |
+
var go_to_highlighted_link = function()
|
53 |
+
{
|
54 |
+
var a = $$('#pulsestorm_launcher_results p.highlight a');
|
55 |
+
if(!a || !a[0])
|
56 |
+
{
|
57 |
+
//console.log("No anchor found");
|
58 |
+
return;
|
59 |
+
}
|
60 |
+
document.location = a[0].href;
|
61 |
+
}
|
62 |
+
|
63 |
+
var up = function()
|
64 |
+
{
|
65 |
+
var elements = $$('#pulsestorm_launcher_results p');
|
66 |
+
var i = get_selected_highlight_index();
|
67 |
+
if(i > 0)
|
68 |
+
{
|
69 |
+
elements[i].removeClassName('highlight');
|
70 |
+
elements[i-1].addClassName('highlight');
|
71 |
+
}
|
72 |
+
}
|
73 |
+
|
74 |
+
var opendialog_launcher = function(content)
|
75 |
+
{
|
76 |
+
Dialog.confirm(content, {
|
77 |
+
draggable:true,
|
78 |
+
resizable:true,
|
79 |
+
closable:true,
|
80 |
+
className:"magento",
|
81 |
+
windowClassName:"popup-window",
|
82 |
+
title:'Pulse Storm Launcher',
|
83 |
+
width:570,
|
84 |
+
height:555,
|
85 |
+
zIndex:1000,
|
86 |
+
recenterAuto:false,
|
87 |
+
hideEffect:Element.hide,
|
88 |
+
showEffect:Element.show,
|
89 |
+
id:"pulsestorm_launcher",
|
90 |
+
buttonClass:"form-button",
|
91 |
+
okLabel:"Submit",
|
92 |
+
ok: function(){},
|
93 |
+
cancel: function(){},
|
94 |
+
onClose: function(){},
|
95 |
+
firedElementId: 'short_description'
|
96 |
+
});
|
97 |
+
}
|
98 |
+
var open_window = function()
|
99 |
+
{
|
100 |
+
test = new Window({'id':'pulsestorm_launcher'});
|
101 |
+
test.setZIndex(1000);
|
102 |
+
test.setHTMLContent('<p>hello nurse</p>');
|
103 |
+
test.setDestroyOnClose(true);
|
104 |
+
return test;
|
105 |
+
}
|
106 |
+
|
107 |
+
var register_link = function(label, url)
|
108 |
+
{
|
109 |
+
var pre = '';
|
110 |
+
if(menu_parents.length > 0)
|
111 |
+
{
|
112 |
+
pre = menu_parents.join(' - ');
|
113 |
+
pre += ' - ';
|
114 |
+
}
|
115 |
+
menu_links[(pre+label).toLowerCase()] = {
|
116 |
+
'url':url,
|
117 |
+
'label':label,
|
118 |
+
'label-full':pre+label};
|
119 |
+
}
|
120 |
+
pulsestorm_launcher_register_link = register_link;
|
121 |
+
|
122 |
+
var render_menu = function(o,a,depth)
|
123 |
+
{
|
124 |
+
Object.keys(o).each(function(item){
|
125 |
+
var menu = o[item];
|
126 |
+
if(menu.url && menu.url != '#')
|
127 |
+
{
|
128 |
+
register_link(menu.label, menu.url);
|
129 |
+
}
|
130 |
+
|
131 |
+
a.push(Array(depth).join('-') + item);
|
132 |
+
|
133 |
+
if(menu.children)
|
134 |
+
{
|
135 |
+
menu_parents.push(menu.label);
|
136 |
+
render_menu(menu.children,a,depth+1);
|
137 |
+
menu_parents.pop();
|
138 |
+
}
|
139 |
+
});
|
140 |
+
return a;
|
141 |
+
}
|
142 |
+
|
143 |
+
var pulsestorm_launcher_search_menu = function(string)
|
144 |
+
{
|
145 |
+
if(!string)
|
146 |
+
{
|
147 |
+
return menu_links;
|
148 |
+
}
|
149 |
+
string = string.toLowerCase();
|
150 |
+
return Object.keys(menu_links).grep(string).collect(function(v){
|
151 |
+
return menu_links[v];
|
152 |
+
});
|
153 |
+
}
|
154 |
+
|
155 |
+
//
|
156 |
+
a = render_menu(pulsestorm_launcher_menu, [], 1);
|
157 |
+
// $('pulsestorm_launcher_test').update(a.join("\n"));
|
158 |
+
|
159 |
+
var show_launcher = function()
|
160 |
+
{
|
161 |
+
|
162 |
+
var content = "<div><input type=\"search\" id=\"pulsestorm_launcher_input\"/></div>";
|
163 |
+
content += "<div id=\"pulsestorm_launcher_results\"></div> ";
|
164 |
+
opendialog_launcher(content);
|
165 |
+
|
166 |
+
setTimeout(function(){
|
167 |
+
//ensuring this is never off screen
|
168 |
+
if( parseInt($('pulsestorm_launcher').getStyle('top'),10) < 5)
|
169 |
+
{
|
170 |
+
$('pulsestorm_launcher').setStyle({'top':'10px'});
|
171 |
+
};
|
172 |
+
//jiggering default magento styles
|
173 |
+
$$('td.magento_e')[0].setStyle({'display':'none'});
|
174 |
+
$$('td.magento_w')[0].setStyle({'display':'none'});
|
175 |
+
$('pulsestorm_launcher_content').setAttribute('style','');
|
176 |
+
|
177 |
+
// console.log("Called the Timeout");
|
178 |
+
$('pulsestorm_launcher_input').focus();
|
179 |
+
var thing = function()
|
180 |
+
{
|
181 |
+
alert("test");
|
182 |
+
}
|
183 |
+
//test = new Autocompleter.Local('pulsestorm_launcher_input','pulsestorm_launcher_results',['foo','baz','bar'],{'updateElement':thing});
|
184 |
+
|
185 |
+
var timeout_search=false;
|
186 |
+
$('pulsestorm_launcher_input').observe('keyup', function(e){
|
187 |
+
if(e.which == 40 || e.which == 38)
|
188 |
+
{
|
189 |
+
// console.log("Bailing");
|
190 |
+
return;
|
191 |
+
}
|
192 |
+
|
193 |
+
if(e.which == 13)
|
194 |
+
{
|
195 |
+
go_to_highlighted_link();
|
196 |
+
return;
|
197 |
+
}
|
198 |
+
|
199 |
+
//cancel/reset interval
|
200 |
+
if(timeout_search)
|
201 |
+
{
|
202 |
+
clearTimeout(timeout_search);
|
203 |
+
}
|
204 |
+
if($F('pulsestorm_launcher_input') && $F('pulsestorm_launcher_input').length > 2)
|
205 |
+
{
|
206 |
+
timeout_search = setTimeout(function(){
|
207 |
+
var url = pulsestorm_launcher_search_url.url;
|
208 |
+
url += ('?query='+$F('pulsestorm_launcher_input'));
|
209 |
+
// var url = 'http://magento1point7pointzeropoint1.dev/index.php/admin/index/globalSearch/key/ac3d62400d96f06be161863f7e4470d3/?query=nokia';
|
210 |
+
|
211 |
+
var img = new Element('img');
|
212 |
+
img.src = '/skin/adminhtml/default/default/images/ajax-loader.gif';
|
213 |
+
var p = new Element('p');
|
214 |
+
p.insert(img);
|
215 |
+
p.id = 'pulsestorm_launcher_throbber';
|
216 |
+
$('pulsestorm_launcher_results').insert(p);
|
217 |
+
|
218 |
+
new Ajax.Request(url, {
|
219 |
+
method: 'get',
|
220 |
+
onSuccess: function(transport) {
|
221 |
+
var container = new Element('div');
|
222 |
+
container.update(transport.responseText);
|
223 |
+
$('pulsestorm_launcher_throbber').remove();
|
224 |
+
container.getElementsBySelector('li strong').each(function(element){
|
225 |
+
if(!element.parentNode)
|
226 |
+
{
|
227 |
+
return;
|
228 |
+
}
|
229 |
+
|
230 |
+
var url = $(element.parentNode).readAttribute('url');
|
231 |
+
var row = '<p><a href="'+url+'">'+element.innerHTML+'</a></p>';
|
232 |
+
$('pulsestorm_launcher_results').insert(row);
|
233 |
+
//console.log(element);
|
234 |
+
//console.log(element.parentNode);
|
235 |
+
});
|
236 |
+
}
|
237 |
+
});
|
238 |
+
|
239 |
+
}, 100);
|
240 |
+
}
|
241 |
+
|
242 |
+
//perform instant nav/config search
|
243 |
+
var results = pulsestorm_launcher_search_menu($F('pulsestorm_launcher_input'));
|
244 |
+
if(!$(results).collect)
|
245 |
+
{
|
246 |
+
$('pulsestorm_launcher_results').update('');
|
247 |
+
return;
|
248 |
+
}
|
249 |
+
|
250 |
+
var html = $(results).collect(function(e){
|
251 |
+
var url = e['url'];
|
252 |
+
return "<p><a href=\""+url+"\">" + e['label-full'] + "</a></p>";
|
253 |
+
});
|
254 |
+
$('pulsestorm_launcher_results').update(html.join(''));
|
255 |
+
});
|
256 |
+
}, 10);
|
257 |
+
|
258 |
+
return;
|
259 |
+
|
260 |
+
}
|
261 |
+
pulsestorm_launcher_show_launcher = show_launcher; //setup pointer
|
262 |
+
document.observe('keydown', function(e){
|
263 |
+
if(e.which == 40 || e.which == 38)
|
264 |
+
{
|
265 |
+
return;
|
266 |
+
}
|
267 |
+
// console.log("Called");
|
268 |
+
key_queue.push(e.which);
|
269 |
+
key_queue.shift();
|
270 |
+
|
271 |
+
combined_codes = '<?php echo $this->getCombinedCodes(); ?>';
|
272 |
+
if(key_queue.join('_') == combined_codes)
|
273 |
+
{
|
274 |
+
Event.stop(e);
|
275 |
+
show_launcher()
|
276 |
+
}
|
277 |
+
// console.log(key_queue);
|
278 |
+
});
|
279 |
+
|
280 |
+
document.observe('keydown', function(e){
|
281 |
+
if(!$('pulsestorm_launcher'))
|
282 |
+
{
|
283 |
+
return;
|
284 |
+
}
|
285 |
+
if(e.which == 40)
|
286 |
+
{
|
287 |
+
Event.stop(e);
|
288 |
+
down();
|
289 |
+
}
|
290 |
+
|
291 |
+
if(e.which == 38)
|
292 |
+
{
|
293 |
+
Event.stop(e);
|
294 |
+
up();
|
295 |
+
}
|
296 |
+
});
|
297 |
+
$$('.nav-bar')[0].innerHTML += ' <span style="color:#fff">|</span> <a href="#" onclick ="pulsestorm_launcher_show_launcher();return false;" style="color:#fff;">Launcher</a>';
|
298 |
+
});
|
299 |
+
|
300 |
+
</script>
|
301 |
+
|
302 |
+
<!--
|
303 |
+
<div style="margin-left:10px;">
|
304 |
+
<pre id="pulsestorm_launcher_test">
|
305 |
+
</pre>
|
306 |
+
</div>
|
307 |
+
-->
|
app/etc/modules/Pulsestorm_Launcher.xml
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
+
<config>
|
3 |
+
<modules>
|
4 |
+
<Pulsestorm_Launcher>
|
5 |
+
<active>true</active>
|
6 |
+
<codePool>community</codePool>
|
7 |
+
</Pulsestorm_Launcher>
|
8 |
+
</modules>
|
9 |
+
</config>
|
package.xml
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<package><name>Pulsestorm_Launcher</name><version>1.0.0</version><stability>stable</stability><license>MIT</license><channel>community</channel><extends></extends><summary>Provides navigation shortcuts for the admin console's navigation and gloal search</summary><description>This extension provides Magento admin console users with an "application launcher". This application launcher provides instant access to the admin console's navigation, every system configuration search section, as well as the Magento global search. The Pulse Storm launcher is a free, open source, must have extension for anyone working with Magento. </description><notes>Initial Release</notes><authors><author><name>Alan Storm</name><user>alanstorm</user><email>astorm@alanstorm.com</email></author></authors><date>2012-10-02</date><time>15:32:15</time><compatible></compatible><dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies><contents><target name="mage"><dir name="app"><dir name="code"><dir name="community"><dir name="Pulsestorm"><dir name="Launcher"><dir name="Block"><dir name="Page"><file name="Menu.php" hash="9e2086c0e2f7b7d1f47d3bc071d75da1"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="10ad3abbcfed784a909080b735d7a7fc"/><file name="config.xml" hash="2d8255f7ac85c60dbb1d8ded0a04a5af"/><file name="system.xml" hash="3a3766421a909ad48dc65811e78118e5"/></dir><dir name="Helper"><file name="Data.php" hash="1fc4917e3807911e9d7b6601aeeda82d"/></dir><dir name="Model"><file name="Links.php" hash="d0f545b5e5a1c1fb17ef0046a3d53bb7"/><file name="Observer.php" hash="8f50290cab348cd4261fed6fbe16191a"/></dir></dir></dir></dir></dir><dir name="design"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="pulsestorm_launcher"><file name="hook.phtml" hash="448893b714d310dc1a573dcdc262d650"/><file name="js-nav.phtml" hash="fbf607976241b47454061602e25e4688"/></dir></dir></dir></dir></dir></dir><dir name="etc"><dir name="modules"><file name="Pulsestorm_Launcher.xml" hash="39d02d974ef2ad1d970e9fcb83ccdff8"/></dir></dir></dir><dir name="skin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="pulsestorm_launcher"><file name="main.css" hash="a6c225a68bc2a6e61b2d7b8e1e0220bd"/></dir></dir></dir></dir></dir></target></contents></package>
|
skin/adminhtml/default/default/pulsestorm_launcher/main.css
ADDED
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*#pulsestorm_launcher .buttons-set { margin-top:10px; }*/
|
2 |
+
#pulsestorm_launcher
|
3 |
+
{
|
4 |
+
font-size:24px;
|
5 |
+
}
|
6 |
+
#pulsestorm_launcher .magento_content { height:auto !important; overflow:hidden; }
|
7 |
+
#pulsestorm_launcher .magento_message { padding:0; }
|
8 |
+
|
9 |
+
#pulsestorm_launcher .magento_buttons{ display:none;}
|
10 |
+
|
11 |
+
#pulsestorm_launcher_input
|
12 |
+
{
|
13 |
+
font-size:14px;
|
14 |
+
width:560px;
|
15 |
+
padding:0;
|
16 |
+
border:0;
|
17 |
+
margin:5px 0 5px 10px;
|
18 |
+
text-indent:8px;
|
19 |
+
}
|
20 |
+
|
21 |
+
#pulsestorm_launcher_results p
|
22 |
+
{
|
23 |
+
font-size:14px;
|
24 |
+
line-height:16px;
|
25 |
+
margin:0;
|
26 |
+
padding:8px 15px 8px 15px;
|
27 |
+
backgorund:url(images/nav2_link_bg.gif) repeat-x 0 100%;
|
28 |
+
|
29 |
+
}
|
30 |
+
|
31 |
+
#pulsestorm_launcher_results p a
|
32 |
+
{
|
33 |
+
text-decoration:none;
|
34 |
+
color:#000;
|
35 |
+
}
|
36 |
+
|
37 |
+
#pulsestorm_launcher_results p.highlight
|
38 |
+
{
|
39 |
+
background-color:#ddf;
|
40 |
+
}
|
41 |
+
|
42 |
+
/*
|
43 |
+
#pulsestorm_launcher .textarea { width:930px !important; }
|
44 |
+
#pulsestorm_launcher .magento_buttons { padding-left:7px; padding-right:7px; }
|
45 |
+
*/
|