Pulsestorm_Launcher - Version 1.0.2

Version Notes

Typo fixes, properly aborts ajax requests.

Download this release

Release Info

Developer Alan Storm
Extension Pulsestorm_Launcher
Version 1.0.2
Comparing to
See all releases


Code changes from version 1.0.1 to 1.0.2

app/code/community/Pulsestorm/Launcher/Block/Breadcrumbs.php ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Blank class to ensure no
4
+ * "( ! ) Fatal error: Call to a member function addLink() on a non-object in /Users/alanstorm/Sites2012/ncr.dev/app/code/core/Mage/Adminhtml/Block/Widget.php on line 65"
5
+ */
6
+ class Pulsestorm_Launcher_Block_Breadcrumbs extends Mage_Adminhtml_Block_Widget_Breadcrumbs
7
+ {
8
+ protected function _toHtml()
9
+ {
10
+ return;
11
+ }
12
+ }
app/code/community/Pulsestorm/Launcher/Model/Observer.php CHANGED
@@ -19,6 +19,8 @@ class Pulsestorm_Launcher_Model_Observer
19
  return;
20
  }
21
 
 
 
22
  $this->_addExtraFrontendFiles($controller);
23
 
24
  $json = $this->_renderDefaultNavigationJson($controller);
@@ -146,6 +148,36 @@ class Pulsestorm_Launcher_Model_Observer
146
  }
147
  }
148
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
149
  protected function _shouldBail($controller)
150
  {
151
  return strpos($controller->getFullActionName(), 'adminhtml_') !== 0 ||
19
  return;
20
  }
21
 
22
+ $this->_addBreadcrumbsIfNotThere($observer);
23
+
24
  $this->_addExtraFrontendFiles($controller);
25
 
26
  $json = $this->_renderDefaultNavigationJson($controller);
148
  }
149
  }
150
 
151
+ protected function _addBreadcrumbsIfNotThere($observer)
152
+ {
153
+
154
+ $controller = $observer->getAction();
155
+
156
+ if(!$controller)
157
+ {
158
+ return;
159
+ }
160
+
161
+ $layout = $controller->getLayout();
162
+
163
+ $breadcrumbs = $layout->getBlock('breadcrumbs');
164
+
165
+ if($breadcrumbs)
166
+ {
167
+ return;
168
+ }
169
+
170
+ $root = $layout->getBlock('root');
171
+
172
+ if(!$root)
173
+ {
174
+ return;
175
+ }
176
+
177
+ $block = $layout->createBlock('pulsestorm_launcher/breadcrumbs', 'breadcrumbs');
178
+ $root->insert($block);
179
+ }
180
+
181
  protected function _shouldBail($controller)
182
  {
183
  return strpos($controller->getFullActionName(), 'adminhtml_') !== 0 ||
app/code/community/Pulsestorm/Launcher/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <Pulsestorm_Launcher>
5
- <version>1.0.1</version>
6
  </Pulsestorm_Launcher>
7
  </modules>
8
  <frontend>
2
  <config>
3
  <modules>
4
  <Pulsestorm_Launcher>
5
+ <version>1.0.2</version>
6
  </Pulsestorm_Launcher>
7
  </modules>
8
  <frontend>
app/code/community/Pulsestorm/Launcher/etc/system.xml CHANGED
@@ -39,6 +39,7 @@
39
  </fields>
40
  </options>
41
  </groups>
42
- </pulsestorm_launcher>
43
  </sections>
44
- </config>
 
39
  </fields>
40
  </options>
41
  </groups>
42
+ </pulsestorm_launcher>
43
  </sections>
44
+ </config>
45
+
package.xml CHANGED
@@ -1,2 +1,2 @@
1
  <?xml version="1.0"?>
2
- <package><name>Pulsestorm_Launcher</name><version>1.0.1</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>Typo fixes, properly aborts ajax requests.</notes><authors><author><name>Alan Storm</name><user>alanstorm</user><email>astorm@alanstorm.com</email></author></authors><date>2012-10-04</date><time>10:43:33</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"><file name="README.md" hash="6593ef7d7685f05fd806828a9a0593ce"/><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="0f14ec5f504973b2312d4b4355829b99"/><file name="system.xml" hash="261397226ae84a63f1cfb64a925715ee"/></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="7f21fea3a44b22f2a6830503fcb0c4d5"/></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>
1
  <?xml version="1.0"?>
2
+ <package><name>Pulsestorm_Launcher</name><version>1.0.2</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>Typo fixes, properly aborts ajax requests.</notes><authors><author><name>Alan Storm</name><user>alanstorm</user><email>astorm@alanstorm.com</email></author></authors><date>2012-11-13</date><time>12:11:06</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"><file name="README.md" hash="6593ef7d7685f05fd806828a9a0593ce"/><dir name="Block"><file name="Breadcrumbs.php" hash="17f7faf76b226c9351f02d22a5ff44d5"/><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="03cc49c9333ef161b596e790959a6ba8"/><file name="system.xml" hash="2034bd9b0cb236974d037231e0739f3b"/></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="6e20c09244d371a36b96c75b15f2c293"/></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="7f21fea3a44b22f2a6830503fcb0c4d5"/></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>