Scandi_MenuManager - Version 0.2.2

Version Notes

Added SUPEE-6788 fix.

Download this release

Release Info

Developer Scandiweb.com
Extension Scandi_MenuManager
Version 0.2.2
Comparing to
See all releases


Code changes from version 0.2.1 to 0.2.2

app/code/local/Scandi/MenuManager/Block/Adminhtml/Menu/Edit/Tab/Items.php CHANGED
@@ -35,8 +35,8 @@ class Scandi_MenuManager_Block_Adminhtml_Menu_Edit_Tab_Items
35
  {
36
  /* @var $collection Scandi_MenuManager_Model_Resource_Item_Collection */
37
  $collection = Mage::getModel('scandi_menumanager/item')->getResourceCollection()
38
- ->addMenuFilter(Mage::registry('menumanager_menu'))
39
- ->setPositionOrder();
40
 
41
  $this->setCollection($collection);
42
  return parent::_prepareCollection();
@@ -75,6 +75,11 @@ class Scandi_MenuManager_Block_Adminhtml_Menu_Edit_Tab_Items
75
  'index' => 'url',
76
  ));
77
 
 
 
 
 
 
78
  $this->addColumn('item_type', array(
79
  'header' => Mage::helper('scandi_menumanager')->__('Type'),
80
  'index' => 'type',
@@ -82,6 +87,16 @@ class Scandi_MenuManager_Block_Adminhtml_Menu_Edit_Tab_Items
82
  'options' => $ItemModel->getAvailableTypes(),
83
  ));
84
 
 
 
 
 
 
 
 
 
 
 
85
  $this->addColumn('item_css_class', array(
86
  'header' => Mage::helper('scandi_menumanager')->__('CSS Class'),
87
  'index' => 'css_class',
@@ -102,6 +117,13 @@ class Scandi_MenuManager_Block_Adminhtml_Menu_Edit_Tab_Items
102
  ),
103
  ));
104
 
 
 
 
 
 
 
 
105
  return parent::_prepareColumns();
106
  }
107
 
35
  {
36
  /* @var $collection Scandi_MenuManager_Model_Resource_Item_Collection */
37
  $collection = Mage::getModel('scandi_menumanager/item')->getResourceCollection()
38
+ ->addMenuFilter(Mage::registry('menumanager_menu'));
39
+ if (!$this->getRequest()->getParam('sort')) { $collection->setPositionOrder(); }
40
 
41
  $this->setCollection($collection);
42
  return parent::_prepareCollection();
75
  'index' => 'url',
76
  ));
77
 
78
+ $this->addColumn('cms_page_identifier', array(
79
+ 'header' => Mage::helper('scandi_menumanager')->__('CMS page ID'),
80
+ 'index' => 'cms_page_identifier',
81
+ ));
82
+
83
  $this->addColumn('item_type', array(
84
  'header' => Mage::helper('scandi_menumanager')->__('Type'),
85
  'index' => 'type',
87
  'options' => $ItemModel->getAvailableTypes(),
88
  ));
89
 
90
+ $this->addColumn('url_type', array(
91
+ 'header' => Mage::helper('scandi_menumanager')->__('Url Type'),
92
+ 'index' => 'url_type',
93
+ 'type' => 'options',
94
+ 'options' => array(
95
+ 1 => Mage::helper('scandi_menumanager')->__('URL'),
96
+ 2 => Mage::helper('scandi_menumanager')->__('CMS page')
97
+ ),
98
+ ));
99
+
100
  $this->addColumn('item_css_class', array(
101
  'header' => Mage::helper('scandi_menumanager')->__('CSS Class'),
102
  'index' => 'css_class',
117
  ),
118
  ));
119
 
120
+ $this->addColumn('position_path', array(
121
+ 'header' => Mage::helper('scandi_menumanager')->__('Position Path'),
122
+ 'index' => 'position_path',
123
+ 'column_css_class' => 'no-display',
124
+ 'header_css_class' => 'no-display'
125
+ ));
126
+
127
  return parent::_prepareColumns();
128
  }
129
 
app/code/local/Scandi/MenuManager/Block/Adminhtml/Menu/Item/Edit/Form.php CHANGED
@@ -59,21 +59,42 @@ class Scandi_MenuManager_Block_Adminhtml_Menu_Item_Edit_Form
59
  'required' => true,
60
  ));
61
 
62
- $fieldset->addField('parent_id', 'select', array(
63
- 'name' => 'parent_id',
64
- 'label' => Mage::helper('scandi_menumanager')->__('Parent'),
65
- 'title' => Mage::helper('scandi_menumanager')->__('Parent'),
66
- 'options' => $model->getCollection()
67
- ->addMenuFilter($menuId)
68
- ->toItemOptionArray(),
69
  'required' => true,
 
 
 
 
70
  ));
71
 
72
- $fieldset->addField('url', 'text', array(
 
 
 
 
 
 
 
 
 
73
  'name' => 'url',
 
74
  'label' => Mage::helper('scandi_menumanager')->__('Url'),
75
  'title' => Mage::helper('scandi_menumanager')->__('Url'),
76
- 'note' => Mage::helper('cms')->__('Use " / " For Item With Base Url.')
 
 
 
 
 
 
 
 
 
 
77
  ));
78
 
79
  $fieldset->addField('type', 'select', array(
@@ -123,6 +144,22 @@ class Scandi_MenuManager_Block_Adminhtml_Menu_Item_Edit_Form
123
  $form->setUseContainer(true);
124
  $this->setForm($form);
125
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
126
  return parent::_prepareForm();
127
  }
128
  }
59
  'required' => true,
60
  ));
61
 
62
+ $url_type = $fieldset->addField('url_type', 'select', array(
63
+ 'label' => Mage::helper('scandi_menumanager')->__('Type'),
64
+ 'title' => Mage::helper('scandi_menumanager')->__('Menu Item type'),
65
+ 'name' => 'url_type',
 
 
 
66
  'required' => true,
67
+ 'options' => array(
68
+ 1 => Mage::helper('scandi_menumanager')->__('Url'),
69
+ 2 => Mage::helper('scandi_menumanager')->__('CMS page'),
70
+ ),
71
  ));
72
 
73
+ $cms_page_id = $fieldset->addField('cms_page_identifier', 'select', array(
74
+ 'name' => 'cms_page_identifier',
75
+ 'required' => true,
76
+ 'label' => Mage::helper('scandi_menumanager')->__('CMS page'),
77
+ 'title' => Mage::helper('scandi_menumanager')->__('CMS page'),
78
+ 'values' => Mage::getModel('cms/page')->getCollection()->toOptionArray(),
79
+ 'value' => $this->getCmsPageId()
80
+ ));
81
+
82
+ $url = $fieldset->addField('url', 'text', array(
83
  'name' => 'url',
84
+ 'required' => true,
85
  'label' => Mage::helper('scandi_menumanager')->__('Url'),
86
  'title' => Mage::helper('scandi_menumanager')->__('Url'),
87
+ 'note' => Mage::helper('cms')->__('Use " / " For Item With Base Url.'),
88
+ ));
89
+
90
+ $fieldset->addField('parent_id', 'select', array(
91
+ 'name' => 'parent_id',
92
+ 'label' => Mage::helper('scandi_menumanager')->__('Parent'),
93
+ 'title' => Mage::helper('scandi_menumanager')->__('Parent'),
94
+ 'options' => $model->getCollection()
95
+ ->addMenuFilter($menuId)
96
+ ->toItemOptionArray(),
97
+ 'required' => true,
98
  ));
99
 
100
  $fieldset->addField('type', 'select', array(
144
  $form->setUseContainer(true);
145
  $this->setForm($form);
146
 
147
+ $this->setChild('form_after', $this->getLayout()->createBlock('adminhtml/widget_form_element_dependence')
148
+ ->addFieldMap($url_type->getHtmlId(), $url_type->getValue())
149
+ ->addFieldMap($cms_page_id->getHtmlId(), $cms_page_id->getName())
150
+ ->addFieldMap($url->getHtmlId(), $url->getName())
151
+ ->addFieldDependence(
152
+ $url->getName(),
153
+ $url_type->getValue(),
154
+ 1
155
+ )
156
+ ->addFieldDependence(
157
+ $cms_page_id->getName(),
158
+ $url_type->getValue(),
159
+ 2
160
+ )
161
+ );
162
+
163
  return parent::_prepareForm();
164
  }
165
  }
app/code/local/Scandi/MenuManager/Block/Menu.php CHANGED
@@ -254,13 +254,18 @@ class Scandi_MenuManager_Block_Menu extends Mage_Core_Block_Template
254
  */
255
  protected function _formatItemUrl(Varien_Data_Tree_Node $item)
256
  {
257
- if (!($itemFullUrl = $item->getFullUrl()) && ($itemUrl = $item->getUrl())) {
258
- if (strpos($itemUrl, '://') === false) {
259
- $itemUrl = $this->_getUrlModel()->getDirectUrl($itemUrl != '/' ? $itemUrl : '');
260
- }
 
261
 
262
- $item->setFullUrl($itemUrl);
263
- };
 
 
 
 
264
  }
265
 
266
  /**
@@ -352,7 +357,7 @@ class Scandi_MenuManager_Block_Menu extends Mage_Core_Block_Template
352
  return array(
353
  'tag' => Scandi_MenuManager_Model_Menu::CACHE_TAG,
354
  'url' => base64_encode($this->_currentUrlPath),
355
- 'mid' => $this->getMenu()->getId(),
356
  );
357
  }
358
  }
254
  */
255
  protected function _formatItemUrl(Varien_Data_Tree_Node $item)
256
  {
257
+ if ($item->getUrlType() == 1) {
258
+ if (!($itemFullUrl = $item->getFullUrl()) && ($itemUrl = $item->getUrl())) {
259
+ if (strpos($itemUrl, '://') === false) {
260
+ $itemUrl = $this->_getUrlModel()->getDirectUrl($itemUrl != '/' ? $itemUrl : '');
261
+ }
262
 
263
+ $item->setFullUrl($itemUrl);
264
+ }
265
+ } else {
266
+ $url = Mage::Helper('cms/page')->getPageUrl($item->getCmsPageIdentifier());
267
+ $item->setFullUrl($url);
268
+ }
269
  }
270
 
271
  /**
357
  return array(
358
  'tag' => Scandi_MenuManager_Model_Menu::CACHE_TAG,
359
  'url' => base64_encode($this->_currentUrlPath),
360
+ 'mid' => $this->getMenu()->getId()
361
  );
362
  }
363
  }
app/code/local/Scandi/MenuManager/Block/Widget.php ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Scandi_MenuManager
4
+ *
5
+ * @category Scandi
6
+ * @package Scandi_MenuManager
7
+ * @author Scandiweb <info@scandiweb.com>
8
+ * @copyright Copyright (c) 2013 Scandiweb, Ltd (http://scandiweb.com)
9
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
10
+ */
11
+
12
+ /**
13
+ * MenuManager widget
14
+ *
15
+ * @category Scandi
16
+ * @package Scandi_MenuManager
17
+ */
18
+ class Scandi_MenuManager_Block_Widget extends Mage_Core_Block_Template implements Mage_Widget_Block_Interface
19
+ {
20
+
21
+ /**
22
+ * Produces Scandi_menumanager menu
23
+ *
24
+ * @return string
25
+ */
26
+ protected function _toHtml()
27
+ {
28
+ $menu = $this->getData('widget_menu');
29
+ return $this->getLayout()->createBlock('scandi_menumanager/menu')->setMenuId($menu)->toHtml();
30
+ }
31
+ }
app/code/local/Scandi/MenuManager/Model/Item.php CHANGED
@@ -42,4 +42,19 @@ class Scandi_MenuManager_Model_Item extends Mage_Core_Model_Abstract
42
 
43
  return $types;
44
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
45
  }
42
 
43
  return $types;
44
  }
45
+
46
+ /**
47
+ * Gets position path of items parent
48
+ *
49
+ * @param $parentId
50
+ * @return mixed
51
+ */
52
+ public function getParentPositionPath($parentId)
53
+ {
54
+ return $this->getCollection()
55
+ ->addFieldToSelect('position_path')
56
+ ->addFieldToFilter('item_id', $parentId)
57
+ ->getFirstItem()
58
+ ->getData('position_path');
59
+ }
60
  }
app/code/local/Scandi/MenuManager/Model/Menu.php CHANGED
@@ -49,4 +49,19 @@ class Scandi_MenuManager_Model_Menu extends Mage_Core_Model_Abstract
49
 
50
  return $types;
51
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
52
  }
49
 
50
  return $types;
51
  }
52
+
53
+ /**
54
+ * Provide available options as a value/label array
55
+ *
56
+ * @return array
57
+ */
58
+ public function toOptionArray()
59
+ {
60
+ $collection = Mage::getModel('scandi_menumanager/menu')->getCollection();
61
+ $return = array();
62
+ foreach ($collection as $menu) {
63
+ $return[] = array('value' => $menu->getIdentifier(), 'label' => $menu->getTitle());
64
+ }
65
+ return $return;
66
+ }
67
  }
app/code/local/Scandi/MenuManager/Model/Resource/Item/Collection.php CHANGED
@@ -61,8 +61,7 @@ class Scandi_MenuManager_Model_Resource_Item_Collection
61
  */
62
  public function setPositionOrder()
63
  {
64
- $this->setOrder('parent_id', 'asc');
65
- $this->setOrder('position', 'asc');
66
 
67
  return $this;
68
  }
61
  */
62
  public function setPositionOrder()
63
  {
64
+ $this->setOrder('position_path', 'asc');
 
65
 
66
  return $this;
67
  }
app/code/local/Scandi/MenuManager/controllers/Adminhtml/{IndexController.php → Menumanager/IndexController.php} RENAMED
@@ -15,7 +15,7 @@
15
  * @category Scandi
16
  * @package Scandi_MenuManager
17
  */
18
- class Scandi_MenuManager_Adminhtml_IndexController extends Mage_Adminhtml_Controller_Action
19
  {
20
  /**
21
  * Init actions
@@ -252,6 +252,20 @@ class Scandi_MenuManager_Adminhtml_IndexController extends Mage_Adminhtml_Contro
252
  return;
253
  }
254
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
255
  $data['menu_id'] = $menuId;
256
  $model->setData($data);
257
 
15
  * @category Scandi
16
  * @package Scandi_MenuManager
17
  */
18
+ class Scandi_MenuManager_Adminhtml_Menumanager_IndexController extends Mage_Adminhtml_Controller_Action
19
  {
20
  /**
21
  * Init actions
252
  return;
253
  }
254
 
255
+ if ($data['url_type'] == 1) {
256
+ $data['cms_page_identifier'] = NULL;
257
+ } else {
258
+ $data['url'] = NULL;
259
+ }
260
+
261
+ $position = str_pad($data['position'], 5, '0', STR_PAD_LEFT);
262
+ if ($data['parent_id'] == 0) {
263
+ $data['position_path'] = $position;
264
+ } else {
265
+ $parentPath = (string) Mage::getModel('scandi_menumanager/item')->getParentPositionPath($data['parent_id']);
266
+ $data['position_path'] = $parentPath . DS . $position;
267
+ }
268
+
269
  $data['menu_id'] = $menuId;
270
  $model->setData($data);
271
 
app/code/local/Scandi/MenuManager/etc/adminhtml.xml CHANGED
@@ -16,7 +16,7 @@
16
  <children>
17
  <scandi_menumanager translate="title" module="scandi_menumanager">
18
  <title>Menus</title>
19
- <action>menumanager/adminhtml_index/index</action>
20
  <sort_order>25</sort_order>
21
  </scandi_menumanager>
22
  </children>
16
  <children>
17
  <scandi_menumanager translate="title" module="scandi_menumanager">
18
  <title>Menus</title>
19
+ <action>adminhtml/menumanager_index/index</action>
20
  <sort_order>25</sort_order>
21
  </scandi_menumanager>
22
  </children>
app/code/local/Scandi/MenuManager/etc/config.xml CHANGED
@@ -13,7 +13,7 @@
13
  <config>
14
  <modules>
15
  <Scandi_MenuManager>
16
- <version>0.1.0</version>
17
  </Scandi_MenuManager>
18
  </modules>
19
  <global>
@@ -58,13 +58,13 @@
58
  </global>
59
  <admin>
60
  <routers>
61
- <scandi_menumanager_admin>
62
- <use>admin</use>
63
  <args>
64
- <module>Scandi_MenuManager</module>
65
- <frontName>menumanager</frontName>
 
66
  </args>
67
- </scandi_menumanager_admin>
68
  </routers>
69
  </admin>
70
  <adminhtml>
13
  <config>
14
  <modules>
15
  <Scandi_MenuManager>
16
+ <version>0.1.3</version>
17
  </Scandi_MenuManager>
18
  </modules>
19
  <global>
58
  </global>
59
  <admin>
60
  <routers>
61
+ <adminhtml>
 
62
  <args>
63
+ <modules>
64
+ <scandi_menumanager before="Mage_Adminhtml">Scandi_MenuManager_Adminhtml</scandi_menumanager>
65
+ </modules>
66
  </args>
67
+ </adminhtml>
68
  </routers>
69
  </admin>
70
  <adminhtml>
app/code/local/Scandi/MenuManager/etc/widget.xml ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * Scandi_MenuManager
5
+ *
6
+ * @category Scandi
7
+ * @package Scandi_MenuManager
8
+ * @author Scandiweb <info@scandiweb.com>
9
+ * @copyright Copyright (c) 2013 Scandiweb, Ltd (http://scandiweb.com)
10
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
11
+ */
12
+ -->
13
+ <widgets>
14
+ <menumanager_widget type="scandi_menumanager/widget" translate="name description" module="scandi_menumanager">
15
+ <name>Menu Manager</name>
16
+ <description>Add Menu Manager menu to a block or a page</description>
17
+ <parameters>
18
+ <widget_menu translate="label">
19
+ <label>Menu</label>
20
+ <visible>1</visible>
21
+ <required>1</required>
22
+ <type>select</type>
23
+ <source_model>scandi_menumanager/menu</source_model>
24
+ </widget_menu>
25
+ </parameters>
26
+ </menumanager_widget>
27
+ </widgets>
app/code/local/Scandi/MenuManager/sql/scandi_menumanager_setup/upgrade-0.1.0-0.1.1.php ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Scandi_MenuManager
4
+ *
5
+ * @category Scandi
6
+ * @package Scandi_MenuManager
7
+ * @author Scandiweb <info@scandiweb.com>
8
+ * @copyright Copyright (c) 2013 Scandiweb, Ltd (http://scandiweb.com)
9
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
10
+ */
11
+
12
+ /* @var $installer Mage_Core_Model_Resource_Setup */
13
+ $installer = $this;
14
+
15
+ $installer->getConnection()
16
+ ->addColumn(
17
+ $installer->getTable('scandi_menumanager/menu_item'),
18
+ 'url_type',
19
+ array(
20
+ 'type' => Varien_Db_Ddl_Table::TYPE_INTEGER,
21
+ 'length' => 11,
22
+ 'nullable' => false,
23
+ 'default' => 1,
24
+ 'comment' => 'Item Url Type'
25
+ )
26
+ );
app/code/local/Scandi/MenuManager/sql/scandi_menumanager_setup/upgrade-0.1.1-0.1.2.php ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Scandi_MenuManager
4
+ *
5
+ * @category Scandi
6
+ * @package Scandi_MenuManager
7
+ * @author Scandiweb <info@scandiweb.com>
8
+ * @copyright Copyright (c) 2013 Scandiweb, Ltd (http://scandiweb.com)
9
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
10
+ */
11
+
12
+ /* @var $installer Mage_Core_Model_Resource_Setup */
13
+ $installer = $this;
14
+
15
+ $installer->getConnection()
16
+ ->addColumn(
17
+ $installer->getTable('scandi_menumanager/menu_item'),
18
+ 'position_path',
19
+ array(
20
+ 'type' => Varien_Db_Ddl_Table::TYPE_TEXT,
21
+ 'length' => 100,
22
+ 'nullable' => false,
23
+ 'default' => '0',
24
+ 'comment' => 'Position Path'
25
+ )
26
+ );
app/code/local/Scandi/MenuManager/sql/scandi_menumanager_setup/upgrade-0.1.2-0.1.3.php ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Scandi_MenuManager
4
+ *
5
+ * @category Scandi
6
+ * @package Scandi_MenuManager
7
+ * @author Scandiweb <info@scandiweb.com>
8
+ * @copyright Copyright (c) 2014 Scandiweb, Ltd (http://scandiweb.com)
9
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
10
+ */
11
+
12
+ /* @var $installer Mage_Core_Model_Resource_Setup */
13
+ $installer = $this;
14
+
15
+ $installer->getConnection()
16
+ ->addColumn(
17
+ $installer->getTable('scandi_menumanager/menu_item'),
18
+ 'cms_page_identifier',
19
+ array(
20
+ 'type' => Varien_Db_Ddl_Table::TYPE_TEXT,
21
+ 'length' => 255,
22
+ 'nullable' => true,
23
+ 'default' => NULL,
24
+ 'comment' => 'Item CMS page identifier'
25
+ )
26
+ );
app/design/adminhtml/default/default/layout/scandi_menumanager.xml CHANGED
@@ -11,13 +11,13 @@
11
  */
12
  -->
13
  <layout>
14
- <scandi_menumanager_admin_adminhtml_index_index>
15
  <reference name="content">
16
  <block type="scandi_menumanager/adminhtml_menu" name="menumanager_menu_grid" />
17
  </reference>
18
- </scandi_menumanager_admin_adminhtml_index_index>
19
 
20
- <scandi_menumanager_admin_adminhtml_index_edit>
21
  <reference name="content">
22
  <block type="scandi_menumanager/adminhtml_menu_edit" name="menumanager_menu_edit" />
23
  </reference>
@@ -28,11 +28,11 @@
28
  <action method="addTab"><name>main_section</name><block>menumanager_menu_edit_tab_main</block></action>
29
  </block>
30
  </reference>
31
- </scandi_menumanager_admin_adminhtml_index_edit>
32
 
33
- <scandi_menumanager_admin_adminhtml_index_edit_item>
34
  <reference name="content">
35
  <block type="scandi_menumanager/adminhtml_menu_item_edit" name="menumanager_menu_item_edit" />
36
  </reference>
37
- </scandi_menumanager_admin_adminhtml_index_edit_item>
38
  </layout>
11
  */
12
  -->
13
  <layout>
14
+ <adminhtml_menumanager_index_index>
15
  <reference name="content">
16
  <block type="scandi_menumanager/adminhtml_menu" name="menumanager_menu_grid" />
17
  </reference>
18
+ </adminhtml_menumanager_index_index>
19
 
20
+ <adminhtml_menumanager_index_edit>
21
  <reference name="content">
22
  <block type="scandi_menumanager/adminhtml_menu_edit" name="menumanager_menu_edit" />
23
  </reference>
28
  <action method="addTab"><name>main_section</name><block>menumanager_menu_edit_tab_main</block></action>
29
  </block>
30
  </reference>
31
+ </adminhtml_menumanager_index_edit>
32
 
33
+ <adminhtml_menumanager_index_edit_item>
34
  <reference name="content">
35
  <block type="scandi_menumanager/adminhtml_menu_item_edit" name="menumanager_menu_item_edit" />
36
  </reference>
37
+ </adminhtml_menumanager_index_edit_item>
38
  </layout>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Scandi_MenuManager</name>
4
- <version>0.2.1</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.opensource.org/licenses/gpl-license.php">GPL</license>
7
  <channel>community</channel>
@@ -23,9 +23,9 @@ Menu Addition Using Magento Shortcode: {{block type="scandi_menumanager/menu" na
23
  Menu Addition From Template file</description>
24
  <notes>Added SUPEE-6788 fix.</notes>
25
  <authors><author><name>Scandiweb.com</name><user>scandiweb_com</user><email>info@scandiweb.com</email></author></authors>
26
- <date>2015-11-04</date>
27
- <time>14:14:39</time>
28
- <contents><target name="magelocal"><dir name="Scandi"><dir name="MenuManager"><dir name="Block"><dir name="Adminhtml"><dir name="Menu"><dir name="Edit"><file name="Form.php" hash="e636f7cd2f5acf6eccee885c0e5198d1"/><dir name="Tab"><file name="Items.php" hash="fba7c1cd90302ff9afc2e0216238845f"/><file name="Main.php" hash="cd5863cbc331ed42a6c4c0d175f5de2a"/><dir name="Renderer"><file name="Parent.php" hash="708f8220d75472a8822bfe18f0aea12f"/></dir></dir><file name="Tabs.php" hash="c092cee92941ee3211da0602b4402fdc"/></dir><file name="Edit.php" hash="61b153e11b36ece02a9024dbf7708e03"/><file name="Grid.php" hash="4a94cc2bd56e0b0d5a66bc5138ce4c18"/><dir name="Item"><dir name="Edit"><file name="Form.php" hash="a846d6cbaa6541cd8decfc15264c9331"/></dir><file name="Edit.php" hash="6af548772ba70e066944923ab421d8b0"/></dir></dir><file name="Menu.php" hash="0cd7f413dc74de864096e5a5769ed8c2"/></dir><file name="Menu.php" hash="f975f0e84bb173c17b8d24a902a4eebc"/></dir><dir name="Helper"><file name="Data.php" hash="1ca5e904a2c6bcbef6a6b5bd80c804a3"/></dir><dir name="Model"><file name="Item.php" hash="f4b340d5a7e9f975f36ff0cb2d932369"/><file name="Menu.php" hash="c88023d40c0ba534204ea315d0783abd"/><dir name="Resource"><dir name="Item"><file name="Collection.php" hash="7f2c88a86016638c4d26d83c372ccf54"/></dir><file name="Item.php" hash="7b6b389019f487b7a577e8a0b5e3a417"/><dir name="Menu"><file name="Collection.php" hash="9840901b8205cef9ef114109c85a232d"/></dir><file name="Menu.php" hash="48f29025fe6023e8dfc418b9600bc173"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="IndexController.php" hash="d712864c83d5b13ad42706c06605b91e"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="7a7bbe9d68c584ea7a5786cbdfdb688f"/><file name="config.xml" hash="b3fa658fccf9af1969de7973ca8574fa"/></dir><dir name="sql"><dir name="scandi_menumanager_setup"><file name="install-0.1.0.php" hash="4b41c4ce2e404b3ca645a4796ee3313a"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="scandi_menumanager.xml" hash="3ce4c1a20ad3d8873ce6ddd2a70aa23a"/></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="scandi_menumanager.xml" hash="0af5ffc03e959aad16c43496a83f5b9e"/></dir><dir name="template"><dir name="scandi"><dir name="menumanager"><file name="menu.phtml" hash="397b516c94996932fcb448c3a02cbc47"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Scandi_MenuManager.xml" hash="a186239a5e97428580a1ff7d4bd55347"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="scandi"><dir name="menumanager"><dir name="css"><file name="menumanager.css" hash="44affbd65601808da200dd6153c3200c"/></dir></dir></dir></dir></dir></dir></target></contents>
29
  <compatible/>
30
- <dependencies><required><php><min>5.4.0</min><max>5.6.15</max></php></required></dependencies>
31
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Scandi_MenuManager</name>
4
+ <version>0.2.2</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.opensource.org/licenses/gpl-license.php">GPL</license>
7
  <channel>community</channel>
23
  Menu Addition From Template file</description>
24
  <notes>Added SUPEE-6788 fix.</notes>
25
  <authors><author><name>Scandiweb.com</name><user>scandiweb_com</user><email>info@scandiweb.com</email></author></authors>
26
+ <date>2015-12-04</date>
27
+ <time>13:06:20</time>
28
+ <contents><target name="magelocal"><dir name="Scandi"><dir name="MenuManager"><dir name="Block"><dir name="Adminhtml"><dir name="Menu"><dir name="Edit"><file name="Form.php" hash="e636f7cd2f5acf6eccee885c0e5198d1"/><dir name="Tab"><file name="Items.php" hash="3460923f9d95cd394037eb60442205df"/><file name="Main.php" hash="cd5863cbc331ed42a6c4c0d175f5de2a"/><dir name="Renderer"><file name="Parent.php" hash="708f8220d75472a8822bfe18f0aea12f"/></dir></dir><file name="Tabs.php" hash="c092cee92941ee3211da0602b4402fdc"/></dir><file name="Edit.php" hash="61b153e11b36ece02a9024dbf7708e03"/><file name="Grid.php" hash="4a94cc2bd56e0b0d5a66bc5138ce4c18"/><dir name="Item"><dir name="Edit"><file name="Form.php" hash="edb819240bc3477e7f0c8b66ecfd1647"/></dir><file name="Edit.php" hash="6af548772ba70e066944923ab421d8b0"/></dir></dir><file name="Menu.php" hash="0cd7f413dc74de864096e5a5769ed8c2"/></dir><file name="Menu.php" hash="892467d7cc1754a1e89dba5d0a0958dc"/><file name="Widget.php" hash="722f59e51ffd532f243af3db88e986e7"/></dir><dir name="Helper"><file name="Data.php" hash="1ca5e904a2c6bcbef6a6b5bd80c804a3"/></dir><dir name="Model"><file name="Item.php" hash="f821da565be36842e0627d37a468921a"/><file name="Menu.php" hash="893027f98f2eca63c20d784d8f850970"/><dir name="Resource"><dir name="Item"><file name="Collection.php" hash="fa7c947dba65cf57de07af9ba6d62c93"/></dir><file name="Item.php" hash="7b6b389019f487b7a577e8a0b5e3a417"/><dir name="Menu"><file name="Collection.php" hash="9840901b8205cef9ef114109c85a232d"/></dir><file name="Menu.php" hash="48f29025fe6023e8dfc418b9600bc173"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><dir name="Menumanager"><file name="IndexController.php" hash="589be1ed6209c2cba7cb1e7bef25ef31"/></dir></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="800175dac8070c4a5a77e1a919e3b8b5"/><file name="config.xml" hash="9e5be42b62acd568693577eeceeb320f"/><file name="widget.xml" hash="6b0c9a403b6ff1cea44b5747411938ca"/></dir><dir name="sql"><dir name="scandi_menumanager_setup"><file name="install-0.1.0.php" hash="4b41c4ce2e404b3ca645a4796ee3313a"/><file name="upgrade-0.1.0-0.1.1.php" hash="3c6ed6fa869bcc07579b431f1415961f"/><file name="upgrade-0.1.1-0.1.2.php" hash="9ff6e676a72de18bbc6057ff4dda1fa9"/><file name="upgrade-0.1.2-0.1.3.php" hash="4c12a8a726e69e227f51fe82686f69ef"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="scandi_menumanager.xml" hash="3f7460f4e1db0aecce22259a4a509bd0"/></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="scandi_menumanager.xml" hash="0af5ffc03e959aad16c43496a83f5b9e"/></dir><dir name="template"><dir name="scandi"><dir name="menumanager"><file name="menu.phtml" hash="397b516c94996932fcb448c3a02cbc47"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Scandi_MenuManager.xml" hash="a186239a5e97428580a1ff7d4bd55347"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="scandi"><dir name="menumanager"><dir name="css"><file name="menumanager.css" hash="49c2b33c3180fef2808bbd96e8c66361"/></dir></dir></dir></dir></dir></dir></target></contents>
29
  <compatible/>
30
+ <dependencies><required><php><min>5.4.0</min><max>5.6.0</max></php></required></dependencies>
31
  </package>
skin/frontend/base/default/scandi/menumanager/css/menumanager.css CHANGED
@@ -24,14 +24,17 @@
24
 
25
  /* Type : Horizontal */
26
  .menu-type-horizontal { position:relative; z-index:100; }
 
 
 
 
27
  .menu-type-horizontal li.level0 { display:inline; }
28
- .menu-type-horizontal li.level0.last { border-right:1px solid #ccc; }
29
- .menu-type-horizontal li { display:block; position:relative; padding:5px 10px; border:1px solid #ccc; border-right:none; background:#fff; }
30
-
31
  .menu-type-horizontal li.title { cursor:default; }
32
-
33
- .menu-type-horizontal ul { position:absolute; left:0; top:100%; margin-left:-1px; border:1px solid #ccc; background:#fff; width:14em; display:none; }
34
  .menu-type-horizontal ul li { border:none; border-bottom:1px solid #ccc; }
35
  .menu-type-horizontal ul li.last { border-bottom:none; }
36
- .menu-type-horizontal li.level1 ul { left:50%; top:70%; }
37
- .menu-type-horizontal li:hover > ul { display:block; }
 
 
24
 
25
  /* Type : Horizontal */
26
  .menu-type-horizontal { position:relative; z-index:100; }
27
+ ul.menu-type-horizontal { width:100%; border:1px solid #ccc; }
28
+ .menu-type-horizontal li.level0 > a > span { border-right:1px solid #ccc; }
29
+ .menu-type-horizontal li span { padding:5px 10px; display:inline-block; }
30
+ .menu-type-horizontal li span:hover { background:#e8e8e8; }
31
  .menu-type-horizontal li.level0 { display:inline; }
32
+ .menu-type-horizontal li { display:block; position:relative; border-right:none; background:#fff; }
 
 
33
  .menu-type-horizontal li.title { cursor:default; }
34
+ .menu-type-horizontal ul { position:absolute; left:0; margin-left:-1px; border:1px solid #ccc; background:#fff; display:none; }
 
35
  .menu-type-horizontal ul li { border:none; border-bottom:1px solid #ccc; }
36
  .menu-type-horizontal ul li.last { border-bottom:none; }
37
+ .menu-type-horizontal li.level1 ul { left:50%; top:50%; }
38
+ .menu-type-horizontal li:hover > ul { display:block; z-index: 1; }
39
+ .menu-type-horizontal li ul li span { width:14em; }
40
+ .menu-type-horizontal li ul li span:hover { background:#f1f1f1; }