JRD_AdminMenuStoreLink - Version 1.0.0

Version Notes

First Release

Download this release

Release Info

Developer Magento Core Team
Extension JRD_AdminMenuStoreLink
Version 1.0.0
Comparing to
See all releases


Version 1.0.0

app/code/community/JRD/AdminMenuStoreLink/etc/config.xml ADDED
@@ -0,0 +1 @@
 
0
  <modules>
1
  <JRD_AdminMenuStoreLink>
2
  </JRD_AdminMenuStoreLink>
3
  </modules>
4
  </adminhtml>
1
+ <?xml version="1.0"?>
2
  <modules>
3
  <JRD_AdminMenuStoreLink>
4
  </JRD_AdminMenuStoreLink>
5
  </modules>
6
  </adminhtml>
app/design/adminhtml/default/default/layout/adminmenustorelink.xml ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <layout version="0.1.0">
3
+ <default>
4
+ <reference name="before_body_end">
5
+ <block type="core/template" name="adminmenustorelink" template="adminmenustorelink/links.phtml" />
6
+ </reference>
7
+ </default>
8
+ </layout>
app/design/adminhtml/default/default/template/adminmenustorelink/links.phtml ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
1
+ <script type="text/javascript">
2
+ // Event.observe(window, 'load', function() {
3
+ $('nav').down('li').insert({'before':'<li onmouseover="Element.addClassName(this,\'over\')" onmouseout="Element.removeClassName(this,\'over\')" class="parent level0"><a href="#" onclick="return false" class=""><span><?php echo Mage::helper('adminhtml')->__('Store'); ?></span></a><ul><?php $allStores = Mage::app()->getStores();
4
+ $i=1;
5
+ foreach ($allStores as $_eachStoreId => $val) {
6
+ $_store = Mage::app()->getStore($_eachStoreId); ?> <li class="level1<?php echo ($i == count($allStores)) ? ' last' : '' ?>"> <a href="<?php echo $_store->getBaseUrl(); ?>" target="_blank" class=""> <span><?php echo $_store->getData('name'); ?></span> </a></li><?php $i++; } ?></ul></li>'});
7
+ // });
8
+ </script>
app/etc/modules/JRD_AdminMenuStoreLink.xml ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <modules>
4
+ <JRD_AdminMenuStoreLink>
5
+ <active>true</active>
6
+ <codePool>community</codePool>
7
+ </JRD_AdminMenuStoreLink>
8
+ </modules>
9
+ </config>
package.xml ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <package>
3
+ <name>JRD_AdminMenuStoreLink</name>
4
+ <version>1.0.0</version>
5
+ <stability>stable</stability>
6
+ <license>OSL</license>
7
+ <channel>community</channel>
8
+ <extends/>
9
+ <summary>Small extension that adds frontend stores links to admin menu.</summary>
10
+ <description>Small extension that adds frontend stores links to admin menu.</description>
11
+ <notes>First Release</notes>
12
+ <authors><author><name>JRD</name><user>auto-converted</user><email>poczta@kamilbrorkowski.pl</email></author></authors>
13
+ <date>2013-05-25</date>
14
+ <time>22:05:51</time>
15
+ <contents><target name="magecommunity"><dir name="JRD"><dir name="AdminMenuStoreLink"><dir name="etc"><file name="config.xml" hash="8514cc13284e4c60b07ec7a8cb1a4f19"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="JRD_AdminMenuStoreLink.xml" hash="1e47742aedad2dcfe020736a81099e8a"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="adminmenustorelink.xml" hash="baf47bdd0cf17d74a63dd6dfe392a412"/></dir><dir name="template"><dir name="adminmenustorelink"><file name="links.phtml" hash="e81c71903297ec5ebe25f28f2c52e33e"/></dir></dir></dir></dir></dir></target></contents>
16
+ <compatible/>
17
+ <dependencies/>
18
+ </package>