<?xml version="1.0"?>
<!--
/**
 * Magento
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License (AFL 3.0)
 * that is bundled with this package in the file LICENSE_AFL.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/afl-3.0.php
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@magentocommerce.com so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade Magento to newer
 * versions in the future. If you wish to customize Magento for your
 * needs please refer to http://www.magentocommerce.com for more information.
 *
 * @category    Mage
 * @package     Mage_Widget
 * @copyright   Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
 * @license     http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
 */
-->
<config>
    <modules>
        <Mage_Widget>
            <version>1.4.0.0.0</version>
        </Mage_Widget>
    </modules>
    <global>
        <models>
            <widget>
                <class>Mage_Widget_Model</class>
                <resourceModel>widget_mysql4</resourceModel>
            </widget>
            <widget_mysql4>
                <class>Mage_Widget_Model_Mysql4</class>
                <entities>
                    <widget><table>widget</table></widget>
                    <widget_instance><table>widget_instance</table></widget_instance>
                    <widget_instance_page><table>widget_instance_page</table></widget_instance_page>
                    <widget_instance_page_layout><table>widget_instance_page_layout</table></widget_instance_page_layout>
                </entities>
            </widget_mysql4>
        </models>
        <resources>
            <widget_setup>
                <setup>
                    <module>Mage_Widget</module>
                </setup>
            </widget_setup>
        </resources>
        <blocks>
            <widget>
                <class>Mage_Widget_Block</class>
            </widget>
        </blocks>
        <cms>
            <page>
                <tempate_filter>widget/template_filter</tempate_filter>
            </page>
            <block>
                <tempate_filter>widget/template_filter</tempate_filter>
            </block>
        </cms>
        <widget>
            <related_cache_types>
                <block_html/>
                <layout/>
            </related_cache_types>
        </widget>
    </global>
    <adminhtml>
        <translate>
            <modules>
                <Mage_Widget>
                    <files>
                        <default>Mage_Widget.csv</default>
                    </files>
                </Mage_Widget>
            </modules>
        </translate>
        <layout>
            <updates>
                <widget>
                    <file>widget.xml</file>
                </widget>
            </updates>
        </layout>
        <events>
            <cms_wysiwyg_config_prepare>
                <observers>
                    <widget_observer>
                        <class>widget/observer</class>
                        <method>prepareWidgetsPluginConfig</method>
                    </widget_observer>
                </observers>
            </cms_wysiwyg_config_prepare>
        </events>
    </adminhtml>
    <admin>
        <routers>
            <adminhtml>
                <args>
                    <modules>
                        <widget before="Mage_Adminhtml">Mage_Widget_Adminhtml</widget>
                    </modules>
                </args>
            </adminhtml>
        </routers>
    </admin>
</config>
