Version Notes
Code refactoring.
Download this release
Release Info
Developer | Mage_Workshop |
Extension | MageWorkshop_DPI |
Version | 1.0.2 |
Comparing to | |
See all releases |
Code changes from version 1.0.1 to 1.0.2
- app/code/local/{DV → MageWorkshop}/DPI/Block/Adminhtml/AttributeSets.php +1 -1
- app/code/local/{DV → MageWorkshop}/DPI/Block/Adminhtml/AttributeSets/Grid.php +1 -1
- app/code/local/{DV → MageWorkshop}/DPI/Block/Adminhtml/Attributes.php +1 -1
- app/code/local/{DV → MageWorkshop}/DPI/Block/Adminhtml/Attributes/Grid.php +1 -1
- app/code/local/{DV → MageWorkshop}/DPI/Block/Adminhtml/Massaction.php +1 -1
- app/code/local/{DV → MageWorkshop}/DPI/Block/Adminhtml/Render/Checkbox.php +1 -1
- app/code/local/{DV → MageWorkshop}/DPI/Block/ProductInfo.php +2 -2
- app/code/local/{DV → MageWorkshop}/DPI/Helper/Data.php +1 -1
- app/code/local/{DV → MageWorkshop}/DPI/Model/Adminhtml/SaveConfig.php +1 -1
- app/code/local/{DV → MageWorkshop}/DPI/Model/AttributeList.php +1 -1
- app/code/local/{DV → MageWorkshop}/DPI/Model/Resource/AttributeList.php +1 -1
- app/code/local/{DV → MageWorkshop}/DPI/Model/Resource/AttributeList/Collection.php +1 -1
- app/code/local/{DV → MageWorkshop}/DPI/controllers/Adminhtml/SettingsController.php +1 -1
- app/code/local/{DV → MageWorkshop}/DPI/controllers/AttributeController.php +1 -1
- app/code/local/{DV → MageWorkshop}/DPI/etc/adminhtml.xml +0 -0
- app/code/local/{DV → MageWorkshop}/DPI/etc/config.xml +16 -16
- app/code/local/{DV → MageWorkshop}/DPI/etc/system.xml +4 -4
- app/code/local/{DV → MageWorkshop}/DPI/sql/dpi_setup/mysql4-install-1.0.0.php +0 -0
- app/code/local/{DV/DPI/sql/dpi_setup/mysql4-upgrade-1.0.0-1.0.1.php → MageWorkshop/DPI/sql/dpi_setup/mysql4-upgrade-1.0.0-1.0.2.php} +0 -0
- app/design/frontend/base/default/layout/dpi.xml +1 -1
- app/design/frontend/base/default/template/dpi/catalog/product/list.phtml +1 -1
- app/design/frontend/base/default/template/dpi/data.phtml +1 -1
- app/design/frontend/base/default/template/dpi/list.phtml +4 -4
- app/design/frontend/base/default/template/dpi/page.phtml +2 -2
- app/etc/modules/{DV_DPI.xml → MageWorkshop_DPI.xml} +3 -3
- app/locale/en_US/{DV_DPI.csv → MageWorksop_DPI.csv} +0 -0
- package.xml +5 -5
app/code/local/{DV → MageWorkshop}/DPI/Block/Adminhtml/AttributeSets.php
RENAMED
@@ -1,5 +1,5 @@
|
|
1 |
<?php
|
2 |
-
class
|
3 |
{
|
4 |
public function __construct()
|
5 |
{
|
1 |
<?php
|
2 |
+
class MageWorkshop_DPI_Block_Adminhtml_AttributeSets extends Mage_Adminhtml_Block_Widget_Grid_Container
|
3 |
{
|
4 |
public function __construct()
|
5 |
{
|
app/code/local/{DV → MageWorkshop}/DPI/Block/Adminhtml/AttributeSets/Grid.php
RENAMED
@@ -1,5 +1,5 @@
|
|
1 |
<?php
|
2 |
-
class
|
3 |
{
|
4 |
public function _construct()
|
5 |
{
|
1 |
<?php
|
2 |
+
class MageWorkshop_DPI_Block_Adminhtml_AttributeSets_Grid extends Mage_Adminhtml_Block_Widget_Grid
|
3 |
{
|
4 |
public function _construct()
|
5 |
{
|
app/code/local/{DV → MageWorkshop}/DPI/Block/Adminhtml/Attributes.php
RENAMED
@@ -1,5 +1,5 @@
|
|
1 |
<?php
|
2 |
-
class
|
3 |
{
|
4 |
public function __construct()
|
5 |
{
|
1 |
<?php
|
2 |
+
class MageWorkshop_DPI_Block_Adminhtml_Attributes extends Mage_Adminhtml_Block_Widget_Grid_Container
|
3 |
{
|
4 |
public function __construct()
|
5 |
{
|
app/code/local/{DV → MageWorkshop}/DPI/Block/Adminhtml/Attributes/Grid.php
RENAMED
@@ -1,5 +1,5 @@
|
|
1 |
<?php
|
2 |
-
class
|
3 |
{
|
4 |
protected function _construct()
|
5 |
{
|
1 |
<?php
|
2 |
+
class MageWorkshop_DPI_Block_Adminhtml_Attributes_Grid extends Mage_Adminhtml_Block_Widget_Grid
|
3 |
{
|
4 |
protected function _construct()
|
5 |
{
|
app/code/local/{DV → MageWorkshop}/DPI/Block/Adminhtml/Massaction.php
RENAMED
@@ -1,5 +1,5 @@
|
|
1 |
<?php
|
2 |
-
class
|
3 |
{
|
4 |
|
5 |
public function __construct()
|
1 |
<?php
|
2 |
+
class MageWorkshop_DPI_Block_Adminhtml_Massaction extends Mage_Adminhtml_Block_Widget_Grid_Massaction_Abstract
|
3 |
{
|
4 |
|
5 |
public function __construct()
|
app/code/local/{DV → MageWorkshop}/DPI/Block/Adminhtml/Render/Checkbox.php
RENAMED
@@ -1,5 +1,5 @@
|
|
1 |
<?php
|
2 |
-
class
|
3 |
{
|
4 |
public function render(Varien_Object $row)
|
5 |
{
|
1 |
<?php
|
2 |
+
class MageWorkshop_DPI_Block_Adminhtml_Render_Checkbox extends Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Abstract
|
3 |
{
|
4 |
public function render(Varien_Object $row)
|
5 |
{
|
app/code/local/{DV → MageWorkshop}/DPI/Block/ProductInfo.php
RENAMED
@@ -1,5 +1,5 @@
|
|
1 |
<?php
|
2 |
-
class
|
3 |
{
|
4 |
|
5 |
// protected $_attributeSetSettings = array() ;
|
@@ -59,7 +59,7 @@ class DV_DPI_Block_ProductInfo extends Mage_Core_Block_Template
|
|
59 |
} else {
|
60 |
$label = $product->getName();
|
61 |
$attributeHtml =
|
62 |
-
'<img id="image" src="'.Mage::helper('catalog/image')->init($product, $attribute->getAttributeCode()).'" width="125" alt="'.strip_tags($label).'" title="'.strip_tags($label).'" />';
|
63 |
}
|
64 |
return $attributeHtml;
|
65 |
}
|
1 |
<?php
|
2 |
+
class MageWorkshop_DPI_Block_ProductInfo extends Mage_Core_Block_Template
|
3 |
{
|
4 |
|
5 |
// protected $_attributeSetSettings = array() ;
|
59 |
} else {
|
60 |
$label = $product->getName();
|
61 |
$attributeHtml =
|
62 |
+
'<img id="image" src="'.Mage::helper('catalog/image')->init($product, $attribute->getAttributeCode())->resize(125).'" width="125" alt="'.strip_tags($label).'" title="'.strip_tags($label).'" />';
|
63 |
}
|
64 |
return $attributeHtml;
|
65 |
}
|
app/code/local/{DV → MageWorkshop}/DPI/Helper/Data.php
RENAMED
@@ -1,5 +1,5 @@
|
|
1 |
<?php
|
2 |
-
class
|
3 |
{
|
4 |
const XML_PATH_ENABLED = 'enabled';
|
5 |
const XML_PATH_PRODUCT_PAGE = 'product_page';
|
1 |
<?php
|
2 |
+
class MageWorkshop_DPI_Helper_Data extends Mage_Core_Helper_Abstract
|
3 |
{
|
4 |
const XML_PATH_ENABLED = 'enabled';
|
5 |
const XML_PATH_PRODUCT_PAGE = 'product_page';
|
app/code/local/{DV → MageWorkshop}/DPI/Model/Adminhtml/SaveConfig.php
RENAMED
@@ -1,5 +1,5 @@
|
|
1 |
<?php
|
2 |
-
class
|
3 |
{
|
4 |
public function _beforeSave()
|
5 |
{
|
1 |
<?php
|
2 |
+
class MageWorkshop_DPI_Model_Adminhtml_SaveConfig extends Mage_Core_Model_Config_Data
|
3 |
{
|
4 |
public function _beforeSave()
|
5 |
{
|
app/code/local/{DV → MageWorkshop}/DPI/Model/AttributeList.php
RENAMED
@@ -1,5 +1,5 @@
|
|
1 |
<?php
|
2 |
-
class
|
3 |
{
|
4 |
protected function _construct()
|
5 |
{
|
1 |
<?php
|
2 |
+
class MageWorkshop_DPI_Model_AttributeList extends Mage_Core_Model_Abstract
|
3 |
{
|
4 |
protected function _construct()
|
5 |
{
|
app/code/local/{DV → MageWorkshop}/DPI/Model/Resource/AttributeList.php
RENAMED
@@ -1,5 +1,5 @@
|
|
1 |
<?php
|
2 |
-
class
|
3 |
{
|
4 |
protected function _construct()
|
5 |
{
|
1 |
<?php
|
2 |
+
class MageWorkshop_DPI_Model_Resource_AttributeList extends Mage_Core_Model_Mysql4_Abstract
|
3 |
{
|
4 |
protected function _construct()
|
5 |
{
|
app/code/local/{DV → MageWorkshop}/DPI/Model/Resource/AttributeList/Collection.php
RENAMED
@@ -1,5 +1,5 @@
|
|
1 |
<?php
|
2 |
-
class
|
3 |
{
|
4 |
protected function _construct()
|
5 |
{
|
1 |
<?php
|
2 |
+
class MageWorkshop_DPI_Model_Resource_AttributeList_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract
|
3 |
{
|
4 |
protected function _construct()
|
5 |
{
|
app/code/local/{DV → MageWorkshop}/DPI/controllers/Adminhtml/SettingsController.php
RENAMED
@@ -1,5 +1,5 @@
|
|
1 |
<?php
|
2 |
-
class
|
3 |
{
|
4 |
protected $_activeMenu = false;
|
5 |
|
1 |
<?php
|
2 |
+
class MageWorkshop_DPI_Adminhtml_SettingsController extends Mage_Adminhtml_Controller_Action
|
3 |
{
|
4 |
protected $_activeMenu = false;
|
5 |
|
app/code/local/{DV → MageWorkshop}/DPI/controllers/AttributeController.php
RENAMED
@@ -1,5 +1,5 @@
|
|
1 |
<?php
|
2 |
-
class
|
3 |
{
|
4 |
public function indexAction()
|
5 |
{
|
1 |
<?php
|
2 |
+
class MageWorkshop_DPI_AttributeController extends Mage_Core_Controller_Front_Action
|
3 |
{
|
4 |
public function indexAction()
|
5 |
{
|
app/code/local/{DV → MageWorkshop}/DPI/etc/adminhtml.xml
RENAMED
File without changes
|
app/code/local/{DV → MageWorkshop}/DPI/etc/config.xml
RENAMED
@@ -1,18 +1,18 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<config>
|
3 |
<modules>
|
4 |
-
<
|
5 |
-
<version>1.0.
|
6 |
-
</
|
7 |
</modules>
|
8 |
<global>
|
9 |
<models>
|
10 |
<dpi>
|
11 |
-
<class>
|
12 |
<resourceModel>dpi_resource</resourceModel>
|
13 |
</dpi>
|
14 |
<dpi_resource>
|
15 |
-
<class>
|
16 |
<entities>
|
17 |
<attributeList>
|
18 |
<table>dpi_attribute_list</table>
|
@@ -22,18 +22,18 @@
|
|
22 |
</models>
|
23 |
<blocks>
|
24 |
<dpi>
|
25 |
-
<class>
|
26 |
</dpi>
|
27 |
</blocks>
|
28 |
<helpers>
|
29 |
<dpi>
|
30 |
-
<class>
|
31 |
</dpi>
|
32 |
</helpers>
|
33 |
<resources>
|
34 |
<dpi_setup>
|
35 |
<setup>
|
36 |
-
<module>
|
37 |
<class>Mage_Core_Model_Resource_Setup</class>
|
38 |
</setup>
|
39 |
</dpi_setup>
|
@@ -44,7 +44,7 @@
|
|
44 |
<dpi>
|
45 |
<use>standard</use>
|
46 |
<args>
|
47 |
-
<module>
|
48 |
<frontName>dpi</frontName>
|
49 |
</args>
|
50 |
</dpi>
|
@@ -58,11 +58,11 @@
|
|
58 |
</layout>
|
59 |
<translate>
|
60 |
<modules>
|
61 |
-
<
|
62 |
<files>
|
63 |
-
<default>
|
64 |
</files>
|
65 |
-
</
|
66 |
</modules>
|
67 |
</translate>
|
68 |
</frontend>
|
@@ -76,11 +76,11 @@
|
|
76 |
</layout>
|
77 |
<translate>
|
78 |
<modules>
|
79 |
-
<
|
80 |
<files>
|
81 |
-
<default>
|
82 |
</files>
|
83 |
-
</
|
84 |
</modules>
|
85 |
</translate>
|
86 |
</adminhtml>
|
@@ -89,7 +89,7 @@
|
|
89 |
<dpi>
|
90 |
<use>admin</use>
|
91 |
<args>
|
92 |
-
<module>
|
93 |
<frontName>dpi</frontName>
|
94 |
</args>
|
95 |
</dpi>
|
1 |
<?xml version="1.0"?>
|
2 |
<config>
|
3 |
<modules>
|
4 |
+
<MageWorkshop_DPI>
|
5 |
+
<version>1.0.2</version>
|
6 |
+
</MageWorkshop_DPI>
|
7 |
</modules>
|
8 |
<global>
|
9 |
<models>
|
10 |
<dpi>
|
11 |
+
<class>MageWorkshop_DPI_Model</class>
|
12 |
<resourceModel>dpi_resource</resourceModel>
|
13 |
</dpi>
|
14 |
<dpi_resource>
|
15 |
+
<class>MageWorkshop_DPI_Model_Resource</class>
|
16 |
<entities>
|
17 |
<attributeList>
|
18 |
<table>dpi_attribute_list</table>
|
22 |
</models>
|
23 |
<blocks>
|
24 |
<dpi>
|
25 |
+
<class>MageWorkshop_DPI_Block</class>
|
26 |
</dpi>
|
27 |
</blocks>
|
28 |
<helpers>
|
29 |
<dpi>
|
30 |
+
<class>MageWorkshop_DPI_Helper</class>
|
31 |
</dpi>
|
32 |
</helpers>
|
33 |
<resources>
|
34 |
<dpi_setup>
|
35 |
<setup>
|
36 |
+
<module>MageWorkshop_DPI</module>
|
37 |
<class>Mage_Core_Model_Resource_Setup</class>
|
38 |
</setup>
|
39 |
</dpi_setup>
|
44 |
<dpi>
|
45 |
<use>standard</use>
|
46 |
<args>
|
47 |
+
<module>MageWorkshop_DPI</module>
|
48 |
<frontName>dpi</frontName>
|
49 |
</args>
|
50 |
</dpi>
|
58 |
</layout>
|
59 |
<translate>
|
60 |
<modules>
|
61 |
+
<MageWorkshop_DPI>
|
62 |
<files>
|
63 |
+
<default>MageWorkshop_DPI.csv</default>
|
64 |
</files>
|
65 |
+
</MageWorkshop_DPI>
|
66 |
</modules>
|
67 |
</translate>
|
68 |
</frontend>
|
76 |
</layout>
|
77 |
<translate>
|
78 |
<modules>
|
79 |
+
<MageWorkshop_DPI>
|
80 |
<files>
|
81 |
+
<default>MageWorkshop_DPI.csv</default>
|
82 |
</files>
|
83 |
+
</MageWorkshop_DPI>
|
84 |
</modules>
|
85 |
</translate>
|
86 |
</adminhtml>
|
89 |
<dpi>
|
90 |
<use>admin</use>
|
91 |
<args>
|
92 |
+
<module>MageWorkshop_DPI_Adminhtml</module>
|
93 |
<frontName>dpi</frontName>
|
94 |
</args>
|
95 |
</dpi>
|
app/code/local/{DV → MageWorkshop}/DPI/etc/system.xml
RENAMED
@@ -1,10 +1,10 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<config>
|
3 |
<tabs>
|
4 |
-
<
|
5 |
<label>Mage Workshop</label>
|
6 |
<sort_order>200</sort_order>
|
7 |
-
</
|
8 |
</tabs>
|
9 |
<sections>
|
10 |
<dpi module="dpi" translate="label">
|
@@ -13,7 +13,7 @@
|
|
13 |
<show_in_default>1</show_in_default>
|
14 |
<show_in_website>1</show_in_website>
|
15 |
<show_in_store>1</show_in_store>
|
16 |
-
<tab>
|
17 |
<groups>
|
18 |
<general translate="label">
|
19 |
<label>Settings</label>
|
@@ -59,7 +59,7 @@
|
|
59 |
<show_in_website>1</show_in_website>
|
60 |
<show_in_store>1</show_in_store>
|
61 |
<frontend_type>select</frontend_type>
|
62 |
-
<backend_model>
|
63 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
64 |
</product_list>
|
65 |
<template_override translate="label">
|
1 |
<?xml version="1.0"?>
|
2 |
<config>
|
3 |
<tabs>
|
4 |
+
<mw module="dpi" translate="label">
|
5 |
<label>Mage Workshop</label>
|
6 |
<sort_order>200</sort_order>
|
7 |
+
</mw>
|
8 |
</tabs>
|
9 |
<sections>
|
10 |
<dpi module="dpi" translate="label">
|
13 |
<show_in_default>1</show_in_default>
|
14 |
<show_in_website>1</show_in_website>
|
15 |
<show_in_store>1</show_in_store>
|
16 |
+
<tab>mw</tab>
|
17 |
<groups>
|
18 |
<general translate="label">
|
19 |
<label>Settings</label>
|
59 |
<show_in_website>1</show_in_website>
|
60 |
<show_in_store>1</show_in_store>
|
61 |
<frontend_type>select</frontend_type>
|
62 |
+
<backend_model>MageWorkshop_DPI_Model_Adminhtml_SaveConfig</backend_model>
|
63 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
64 |
</product_list>
|
65 |
<template_override translate="label">
|
app/code/local/{DV → MageWorkshop}/DPI/sql/dpi_setup/mysql4-install-1.0.0.php
RENAMED
File without changes
|
app/code/local/{DV/DPI/sql/dpi_setup/mysql4-upgrade-1.0.0-1.0.1.php → MageWorkshop/DPI/sql/dpi_setup/mysql4-upgrade-1.0.0-1.0.2.php}
RENAMED
File without changes
|
app/design/frontend/base/default/layout/dpi.xml
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
-
<layout version="
|
3 |
|
4 |
<dpi_attribute_index>
|
5 |
<block type="dpi/productInfo" name="root" template="dpi/data.phtml"/>
|
1 |
<?xml version="1.0"?>
|
2 |
+
<layout version="1.0.2">
|
3 |
|
4 |
<dpi_attribute_index>
|
5 |
<block type="dpi/productInfo" name="root" template="dpi/data.phtml"/>
|
app/design/frontend/base/default/template/dpi/catalog/product/list.phtml
CHANGED
@@ -127,7 +127,7 @@ $_helper = $this->helper('catalog/output');
|
|
127 |
<?php echo $this->getToolbarHtml() ?>
|
128 |
</div>
|
129 |
</div>
|
130 |
-
<?php if($this->helper('dpi')->getStoreConfig(
|
131 |
<div id="loading-mask" style="display:none">
|
132 |
<p class="loader" id="loading_mask_loader"><img src="<?php echo $this->getSkinUrl('images/dpi/ajax-loader-tr.gif') ?>" alt="<?php echo Mage::helper('adminhtml')->__('Loading...') ?>"/><br/><?php echo Mage::helper('adminhtml')->__('Please wait...') ?></p>
|
133 |
</div>
|
127 |
<?php echo $this->getToolbarHtml() ?>
|
128 |
</div>
|
129 |
</div>
|
130 |
+
<?php if($this->helper('dpi')->getStoreConfig(MageWorkshop_DPI_Helper_Data::XML_PATH_USE_AJAX)): ?>
|
131 |
<div id="loading-mask" style="display:none">
|
132 |
<p class="loader" id="loading_mask_loader"><img src="<?php echo $this->getSkinUrl('images/dpi/ajax-loader-tr.gif') ?>" alt="<?php echo Mage::helper('adminhtml')->__('Loading...') ?>"/><br/><?php echo Mage::helper('adminhtml')->__('Please wait...') ?></p>
|
133 |
</div>
|
app/design/frontend/base/default/template/dpi/data.phtml
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
<?php $productId = str_replace('/', '', $this->getRequest()->getParam('id')); ?>
|
2 |
<?php $storeId = str_replace('/', '', $this->getRequest()->getParam('store')); ?>
|
3 |
-
<?php if(($attributes = $this->getAttributesList($productId, $storeId)) && $this->helper('dpi')->getStoreConfig(
|
4 |
<ul class="attr-wrapper">
|
5 |
<li id="product-attr-<?php echo $productId; ?>" class="attr-table" style="display: none; ">
|
6 |
<table class="data-table">
|
1 |
<?php $productId = str_replace('/', '', $this->getRequest()->getParam('id')); ?>
|
2 |
<?php $storeId = str_replace('/', '', $this->getRequest()->getParam('store')); ?>
|
3 |
+
<?php if(($attributes = $this->getAttributesList($productId, $storeId)) && $this->helper('dpi')->getStoreConfig(MageWorkshop_DPI_Helper_Data::XML_PATH_ENABLED)):?>
|
4 |
<ul class="attr-wrapper">
|
5 |
<li id="product-attr-<?php echo $productId; ?>" class="attr-table" style="display: none; ">
|
6 |
<table class="data-table">
|
app/design/frontend/base/default/template/dpi/list.phtml
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
<?php $productId = $this->getProduct()->getId(); ?>
|
2 |
-
<?php $useAjax = $this->helper('dpi')->getStoreConfig(
|
3 |
-
<?php $useModal = $this->helper('dpi')->getStoreConfig(
|
4 |
<?php $storeId = Mage::app()->getStore()->getId(); ?>
|
5 |
-
<?php if(($attributes = $this->getAttributesList($productId)) && $this->helper('dpi')->getStoreConfig(
|
6 |
<li>
|
7 |
<span class="separator">|</span>
|
8 |
-
<a id="<?php echo 'attr-'.$productId; ?>" class="show-attribute link-compare <?php if($useModal): echo 'dpi-modal
|
9 |
</li>
|
10 |
<?php if(!$useAjax):?>
|
11 |
<ul class="attr-wrapper">
|
1 |
<?php $productId = $this->getProduct()->getId(); ?>
|
2 |
+
<?php $useAjax = $this->helper('dpi')->getStoreConfig(MageWorkshop_DPI_Helper_Data::XML_PATH_USE_AJAX); ?>
|
3 |
+
<?php $useModal = $this->helper('dpi')->getStoreConfig(MageWorkshop_DPI_Helper_Data::XML_PATH_USE_MODAL); ?>
|
4 |
<?php $storeId = Mage::app()->getStore()->getId(); ?>
|
5 |
+
<?php if(($attributes = $this->getAttributesList($productId)) && $this->helper('dpi')->getStoreConfig(MageWorkshop_DPI_Helper_Data::XML_PATH_ENABLED)):?>
|
6 |
<li>
|
7 |
<span class="separator">|</span>
|
8 |
+
<a id="<?php echo 'attr-'.$productId; ?>" class="show-attribute link-compare <?php if($useModal): echo 'dpi-modal '; else: echo 'dpi-toggle '; endif; ?>" onclick="return false;" href="<?php echo $this->getUrl('dpi/attribute/index?id='.$productId.'&ajax='.$useAjax.'&modal='.$useModal.'&store='.$storeId); ?>" title="<?php echo $this->__("Detailed Info");?>"><?php echo $this->__("Detailed Info");?></a>
|
9 |
</li>
|
10 |
<?php if(!$useAjax):?>
|
11 |
<ul class="attr-wrapper">
|
app/design/frontend/base/default/template/dpi/page.phtml
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
-
<?php if (($attributes = $this->getAttributesList()) && $this->helper('dpi')->getStoreConfig(
|
2 |
<div class="box-collateral box-attribute">
|
3 |
-
<button id='page' class="button <?php if($this->helper('dpi')->getStoreConfig(
|
4 |
<span><span><?php echo $this->__("Detailed Info"); ?></span></span>
|
5 |
</button>
|
6 |
</div>
|
1 |
+
<?php if (($attributes = $this->getAttributesList()) && $this->helper('dpi')->getStoreConfig(MageWorkshop_DPI_Helper_Data::XML_PATH_ENABLED)):?>
|
2 |
<div class="box-collateral box-attribute">
|
3 |
+
<button id='page' class="button <?php if($this->helper('dpi')->getStoreConfig(MageWorkshop_DPI_Helper_Data::XML_PATH_USE_MODAL)): echo 'dpi-modal'; else: echo 'dpi-toggle'; endif; ?>" title="<?php echo $this->__("Detailed Info"); ?>">
|
4 |
<span><span><?php echo $this->__("Detailed Info"); ?></span></span>
|
5 |
</button>
|
6 |
</div>
|
app/etc/modules/{DV_DPI.xml → MageWorkshop_DPI.xml}
RENAMED
@@ -1,10 +1,10 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<config>
|
3 |
<modules>
|
4 |
-
<
|
5 |
-
<version>1.0.
|
6 |
<active>true</active>
|
7 |
<codePool>local</codePool>
|
8 |
-
</
|
9 |
</modules>
|
10 |
</config>
|
1 |
<?xml version="1.0"?>
|
2 |
<config>
|
3 |
<modules>
|
4 |
+
<MageWorkshop_DPI>
|
5 |
+
<version>1.0.2</version>
|
6 |
<active>true</active>
|
7 |
<codePool>local</codePool>
|
8 |
+
</MageWorkshop_DPI>
|
9 |
</modules>
|
10 |
</config>
|
app/locale/en_US/{DV_DPI.csv → MageWorksop_DPI.csv}
RENAMED
File without changes
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>MageWorkshop_DPI</name>
|
4 |
-
<version>1.0.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.opensource.org/licenses/gpl-license.php">GPL</license>
|
7 |
<channel>community</channel>
|
@@ -10,11 +10,11 @@
|
|
10 |
<description>Detailed Product Info extension was created to provide customers with additional information about product. A crucial step for the customer purchases may be additional information about the product, but usually short description is not enough to cover this. Customers who have not enough time to spend in choosing products have an opportunity to estimate product in Product List and compare values of attributes without adding to comparation list. This extension will help to make your store more interactive and attractive for people. 
|
11 |
This extention was tested to be compatible with all main browsers (Internet Explorer 7, 8, 9, 10 Google Chrome, Mozilla Firefox, Safari). No validation problems on frontend, no errors in server's log files. Compatible with Magento 1.4+.
|
12 |
</description>
|
13 |
-
<notes>
|
14 |
<authors><author><name>Mage_Workshop</name><user>Mage_Workshop</user><email>mageworkshophq@gmail.com</email></author></authors>
|
15 |
-
<date>2013-
|
16 |
-
<time>
|
17 |
-
<contents><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="dpi.xml" hash="bb45acef90a1f5ede23ba85566817d6e"/></dir><dir name="template"><dir name="dpi"><file name="additional.phtml" hash="0170c736f658f5214bafe8f180b21d45"/><file name="massaction.phtml" hash="f10d6309762ca39d8ce99f17cb73ce91"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="dpi.xml" hash="
|
18 |
<compatible/>
|
19 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
20 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>MageWorkshop_DPI</name>
|
4 |
+
<version>1.0.2</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.opensource.org/licenses/gpl-license.php">GPL</license>
|
7 |
<channel>community</channel>
|
10 |
<description>Detailed Product Info extension was created to provide customers with additional information about product. A crucial step for the customer purchases may be additional information about the product, but usually short description is not enough to cover this. Customers who have not enough time to spend in choosing products have an opportunity to estimate product in Product List and compare values of attributes without adding to comparation list. This extension will help to make your store more interactive and attractive for people. 
|
11 |
This extention was tested to be compatible with all main browsers (Internet Explorer 7, 8, 9, 10 Google Chrome, Mozilla Firefox, Safari). No validation problems on frontend, no errors in server's log files. Compatible with Magento 1.4+.
|
12 |
</description>
|
13 |
+
<notes>Code refactoring.</notes>
|
14 |
<authors><author><name>Mage_Workshop</name><user>Mage_Workshop</user><email>mageworkshophq@gmail.com</email></author></authors>
|
15 |
+
<date>2013-12-26</date>
|
16 |
+
<time>10:12:12</time>
|
17 |
+
<contents><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="dpi.xml" hash="bb45acef90a1f5ede23ba85566817d6e"/></dir><dir name="template"><dir name="dpi"><file name="additional.phtml" hash="0170c736f658f5214bafe8f180b21d45"/><file name="massaction.phtml" hash="f10d6309762ca39d8ce99f17cb73ce91"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="dpi.xml" hash="e7fc7e55acbf048d44570832cb651571"/></dir><dir name="template"><dir name="dpi"><dir name="catalog"><dir name="product"><file name="list.phtml" hash="9370318a35ac19d24f02f71d21ea778c"/></dir></dir><file name="data.phtml" hash="ff1a05892d1daf50147ace7542fef50f"/><file name="list.phtml" hash="c2339f3a4a477b26f68fb6ad7e296d64"/><file name="page.phtml" hash="1151f802582788b089c6441cc2adb70a"/></dir></dir></dir></dir></dir></target><target name="magelocal"><dir name="MageWorkshop"><dir name="DPI"><dir name="Block"><dir name="Adminhtml"><dir name="AttributeSets"><file name="Grid.php" hash="cc972c326afe86b321d64634efe521a4"/></dir><file name="AttributeSets.php" hash="13ed068afd987e5be4e13d950544ad5b"/><dir name="Attributes"><file name="Grid.php" hash="2da3201d71fc14d3b44c30f25d1918d0"/></dir><file name="Attributes.php" hash="585296da9fa119e572e4fdb50c216a2b"/><file name="Massaction.php" hash="1138a54f60000aeafe2503acb16abab0"/><dir name="Render"><file name="Checkbox.php" hash="bbee7575f739792d8be3bf694d3a2925"/></dir></dir><file name="ProductInfo.php" hash="153425ea6479d5c3981a38f64dde206e"/></dir><dir name="Helper"><file name="Data.php" hash="2e343e4cc10f399f5f72d856d10f7cda"/></dir><dir name="Model"><dir name="Adminhtml"><file name="SaveConfig.php" hash="f0714d85d0e29474cf0bed237d98a762"/></dir><file name="AttributeList.php" hash="a225ed23a103ed44bee47838365e80ae"/><dir name="Resource"><dir name="AttributeList"><file name="Collection.php" hash="e6a902784213bcbb715e30e0f8a5ad95"/></dir><file name="AttributeList.php" hash="f2d2d6ec0625c806141c360751db2cf1"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="SettingsController.php" hash="3833d944331dead892d6da11dfe62e14"/></dir><file name="AttributeController.php" hash="f2b41641cd539d8548ba0589572bc73f"/></dir><dir name="etc"><file name="adminhtml.xml" hash="51d4be38ee9141e5f333309881a809c4"/><file name="config.xml" hash="d6c27315213173a0d768b65a2b4196df"/><file name="system.xml" hash="e9206f074a143b2268c4a4887168c73c"/></dir><dir name="sql"><dir name="dpi_setup"><file name="mysql4-install-1.0.0.php" hash="8e4eeb8cf5eee8cc7c5f853f734c0ff8"/><file name="mysql4-upgrade-1.0.0-1.0.2.php" hash="a2cb58de103450cd2024ce1680eacffa"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="MageWorkshop_DPI.xml" hash="2f29ea6cc935abfd097b973b52d850ae"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><dir name="dpi"><file name="style.css" hash="82524f656beaff4b0a4be1ad396d4c1e"/></dir></dir><dir name="images"><dir name="dpi"><file name="ajax-loader-tr.gif" hash="1ae32bc8232ff2527c627e5b38eb319a"/><file name="blank.gif" hash="5722d7bd0f1e1379d0a2005a0a9ea401"/></dir></dir></dir></dir></dir></target><target name="mageweb"><dir name="js"><dir name="dpi"><file name="list.js" hash="01589bac01e9214908d8f3340444f7ad"/><file name="page.js" hash="36397edbb3377f96766d008dcc8e7213"/></dir></dir></target><target name="magelocale"><dir name="en_US"><file name="MageWorksop_DPI.csv" hash="024b1000ef40568a9d71361a8e725eca"/></dir></target></contents>
|
18 |
<compatible/>
|
19 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
20 |
</package>
|