Version Notes
inorder to display this extension, you have to call below given code on required template page.
CUE_socialIcons(); ?>
Download this release
Release Info
| Developer | Magento Core Team |
| Extension | SN_Network |
| Version | 1.4 |
| Comparing to | |
| See all releases | |
Version 1.4
- app/code/community/SN/Network/Block/Adminhtml/Network.php +12 -0
- app/code/community/SN/Network/Block/Adminhtml/Network/Edit.php +26 -0
- app/code/community/SN/Network/Block/Adminhtml/Network/Edit/Form.php +21 -0
- app/code/community/SN/Network/Block/Adminhtml/Network/Edit/Tab/Form.php +78 -0
- app/code/community/SN/Network/Block/Adminhtml/Network/Edit/Tabs.php +35 -0
- app/code/community/SN/Network/Block/Adminhtml/Network/Grid.php +57 -0
- app/code/community/SN/Network/Helper/Data.php +31 -0
- app/code/community/SN/Network/Model/Mysql4/Network.php +8 -0
- app/code/community/SN/Network/Model/Mysql4/Network/Collection.php +9 -0
- app/code/community/SN/Network/Model/Network.php +9 -0
- app/code/community/SN/Network/controllers/Adminhtml/NetworkController.php +209 -0
- app/code/community/SN/Network/controllers/IndexController.php +41 -0
- app/code/community/SN/Network/sql/network_setup/mysql4-install-0.1.0.php +26 -0
- app/design/adminhtml/default/default/layout/network.xml +8 -0
- app/design/frontend/default/default/layout/network.xml +28 -0
- app/etc/config.xml +393 -0
- app/etc/modules/SN_Network.xml +22 -0
- package.xml +19 -0
- skin/frontend/default/default/css/cb_sn.css +0 -0
- skin/frontend/default/default/images/cb_social_icons/Facebook-icon.png +0 -0
- skin/frontend/default/default/images/cb_social_icons/Flickr-icon.png +0 -0
- skin/frontend/default/default/images/cb_social_icons/MySpace-icon.png +0 -0
- skin/frontend/default/default/images/cb_social_icons/Twitter-icon.png +0 -0
app/code/community/SN/Network/Block/Adminhtml/Network.php
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
class SN_Network_Block_Adminhtml_Network extends Mage_Adminhtml_Block_Widget_Grid_Container
|
| 3 |
+
{
|
| 4 |
+
public function __construct()
|
| 5 |
+
{
|
| 6 |
+
$this->_controller = 'adminhtml_network';
|
| 7 |
+
$this->_blockGroup = 'network';
|
| 8 |
+
$this->_headerText = Mage::helper('network')->__('Bookmark Manager');
|
| 9 |
+
$this->_addButtonLabel = Mage::helper('network')->__('Add Social Bookmark Icon');
|
| 10 |
+
parent::__construct();
|
| 11 |
+
}
|
| 12 |
+
}
|
app/code/community/SN/Network/Block/Adminhtml/Network/Edit.php
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
class SN_Network_Block_Adminhtml_Network_Edit extends Mage_Adminhtml_Block_Widget_Form_Container
|
| 3 |
+
{
|
| 4 |
+
public function __construct()
|
| 5 |
+
{
|
| 6 |
+
parent::__construct();
|
| 7 |
+
$this->_objectId = 'id';
|
| 8 |
+
$this->_blockGroup = 'network';
|
| 9 |
+
$this->_controller = 'adminhtml_network';
|
| 10 |
+
$this->_updateButton('save', 'label', Mage::helper('network')->__('Save Item'));
|
| 11 |
+
$this->_updateButton('delete', 'label', Mage::helper('network')->__('Delete Item'));
|
| 12 |
+
}
|
| 13 |
+
|
| 14 |
+
public function getHeaderText()
|
| 15 |
+
{
|
| 16 |
+
if(Mage::registry('network_data') && Mage::registry('network_data')->getId())
|
| 17 |
+
{
|
| 18 |
+
return Mage::helper('network')->__("Edit Bookmark '%s'", $this->htmlEscape(Mage::registry('network_data')->getVch_icon_name()));
|
| 19 |
+
}
|
| 20 |
+
else
|
| 21 |
+
{
|
| 22 |
+
return Mage::helper('network')->__('Add Social Bookmark Icon');
|
| 23 |
+
}
|
| 24 |
+
|
| 25 |
+
}
|
| 26 |
+
}
|
app/code/community/SN/Network/Block/Adminhtml/Network/Edit/Form.php
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
class SN_Network_Block_Adminhtml_Network_Edit_Form extends Mage_Adminhtml_Block_Widget_Form
|
| 3 |
+
{
|
| 4 |
+
protected function _prepareForm()
|
| 5 |
+
{
|
| 6 |
+
$form = new Varien_Data_Form(array(
|
| 7 |
+
'id' => 'edit_form',
|
| 8 |
+
'action' => $this->getUrl('*/*/save', array('id' => $this->getRequest()->getParam('id'))),'method' => 'post',
|
| 9 |
+
'enctype' => 'multipart/form-data'
|
| 10 |
+
)
|
| 11 |
+
);
|
| 12 |
+
|
| 13 |
+
$form->setUseContainer(true);
|
| 14 |
+
|
| 15 |
+
$this->setForm($form);
|
| 16 |
+
|
| 17 |
+
return parent::_prepareForm();
|
| 18 |
+
|
| 19 |
+
}
|
| 20 |
+
|
| 21 |
+
}
|
app/code/community/SN/Network/Block/Adminhtml/Network/Edit/Tab/Form.php
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
class SN_Network_Block_Adminhtml_Network_Edit_Tab_Form extends Mage_Adminhtml_Block_Widget_Form
|
| 3 |
+
{
|
| 4 |
+
protected function _prepareForm()
|
| 5 |
+
{
|
| 6 |
+
$form = new Varien_Data_Form();
|
| 7 |
+
$this->setForm($form);
|
| 8 |
+
$fieldset = $form->addFieldset('network_form', array('legend'=>Mage::helper('network')->__('Bookmark Information')));
|
| 9 |
+
|
| 10 |
+
$fieldset->addField('vch_icon_name', 'text', array(
|
| 11 |
+
'label' => Mage::helper('network')->__('Title'),
|
| 12 |
+
'required' => false,
|
| 13 |
+
'name' => 'vch_icon_name',
|
| 14 |
+
));
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
$fieldset->addField('vch_url', 'text', array(
|
| 18 |
+
'label' => Mage::helper('network')->__('URL'),
|
| 19 |
+
'required' => false,
|
| 20 |
+
'name' => 'vch_url',
|
| 21 |
+
));
|
| 22 |
+
|
| 23 |
+
$fieldset->addField('vch_logo_image', 'file', array(
|
| 24 |
+
'label' => Mage::helper('network')->__('Image File'),
|
| 25 |
+
'required' => false,
|
| 26 |
+
'name' => 'vch_logo_image',
|
| 27 |
+
));
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
$fieldset->addField('mint_position','text', array(
|
| 31 |
+
'label' => Mage::helper('network')->__('Position'),
|
| 32 |
+
|
| 33 |
+
'required' => false,
|
| 34 |
+
'name' => 'mint_position',
|
| 35 |
+
));
|
| 36 |
+
|
| 37 |
+
$fieldset->addField('txt_cust_code','textarea',array(
|
| 38 |
+
'label' => Mage::helper('network')->__('Bookmark Code'),
|
| 39 |
+
'name' => 'txt_cust_code',
|
| 40 |
+
|
| 41 |
+
|
| 42 |
+
));
|
| 43 |
+
|
| 44 |
+
$fieldset->addField('sint_status', 'select', array(
|
| 45 |
+
'label' => Mage::helper('network')->__('Status'),
|
| 46 |
+
'name' => 'sint_status',
|
| 47 |
+
'values' => array(
|
| 48 |
+
array(
|
| 49 |
+
'value' => 1,
|
| 50 |
+
'label' => Mage::helper('network')->__('Enabled'),
|
| 51 |
+
),
|
| 52 |
+
|
| 53 |
+
array(
|
| 54 |
+
'value' => 2,
|
| 55 |
+
'label' => Mage::helper('network')->__('Disabled'),
|
| 56 |
+
),
|
| 57 |
+
),
|
| 58 |
+
));
|
| 59 |
+
|
| 60 |
+
|
| 61 |
+
$fieldset->addField('label1','label', array(
|
| 62 |
+
'label' => '<b>NOTE : </b> if some value is present in Bookmark Code then URL & Image File will be ignored for this data.',
|
| 63 |
+
'width' => '700px',
|
| 64 |
+
));
|
| 65 |
+
|
| 66 |
+
|
| 67 |
+
if ( Mage::getSingleton('adminhtml/session')->gethelloworldData() )
|
| 68 |
+
{
|
| 69 |
+
$form->setValues(Mage::getSingleton('adminhtml/session')->gethelloworldData());
|
| 70 |
+
Mage::getSingleton('adminhtml/session')->sethelloworldData(null);
|
| 71 |
+
}
|
| 72 |
+
elseif ( Mage::registry('network_data') )
|
| 73 |
+
{
|
| 74 |
+
$form->setValues(Mage::registry('network_data')->getData());
|
| 75 |
+
}
|
| 76 |
+
return parent::_prepareForm();
|
| 77 |
+
}
|
| 78 |
+
}
|
app/code/community/SN/Network/Block/Adminhtml/Network/Edit/Tabs.php
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
class SN_Network_Block_Adminhtml_Network_Edit_Tabs extends Mage_Adminhtml_Block_Widget_Tabs
|
| 3 |
+
{
|
| 4 |
+
public function __construct()
|
| 5 |
+
{
|
| 6 |
+
parent::__construct();
|
| 7 |
+
|
| 8 |
+
$this->setId('network_tabs');
|
| 9 |
+
|
| 10 |
+
$this->setDestElementId('edit_form');
|
| 11 |
+
|
| 12 |
+
$this->setTitle(Mage::helper('network')->__('News Information'));
|
| 13 |
+
|
| 14 |
+
}
|
| 15 |
+
|
| 16 |
+
protected function _beforeToHtml()
|
| 17 |
+
|
| 18 |
+
{
|
| 19 |
+
$this->addTab('form_section', array(
|
| 20 |
+
|
| 21 |
+
'label' => Mage::helper('network')->__('Social Bookmark'),
|
| 22 |
+
|
| 23 |
+
'title' => Mage::helper('network')->__('Social Bookmark'),
|
| 24 |
+
|
| 25 |
+
'content' => $this->getLayout()->createBlock('network/adminhtml_network_edit_tab_form')->toHtml(),
|
| 26 |
+
|
| 27 |
+
));
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
|
| 31 |
+
return parent::_beforeToHtml();
|
| 32 |
+
|
| 33 |
+
}
|
| 34 |
+
|
| 35 |
+
}
|
app/code/community/SN/Network/Block/Adminhtml/Network/Grid.php
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
class SN_Network_Block_Adminhtml_Network_Grid extends Mage_Adminhtml_Block_Widget_Grid
|
| 3 |
+
{
|
| 4 |
+
public function __construct()
|
| 5 |
+
{
|
| 6 |
+
parent::__construct();
|
| 7 |
+
$this->setId('networkGrid');
|
| 8 |
+
// This is the primary key of the database
|
| 9 |
+
$this->setDefaultSort('mint_position');
|
| 10 |
+
$this->setDefaultDir('ASC');
|
| 11 |
+
$this->setSaveParametersInSession(true);
|
| 12 |
+
}
|
| 13 |
+
protected function _prepareCollection()
|
| 14 |
+
{
|
| 15 |
+
$collection = Mage::getModel('network/network')->getCollection();
|
| 16 |
+
$this->setCollection($collection);
|
| 17 |
+
return parent::_prepareCollection();
|
| 18 |
+
}
|
| 19 |
+
protected function _prepareColumns()
|
| 20 |
+
{
|
| 21 |
+
$this->addColumn('tint_id', array(
|
| 22 |
+
'header' => Mage::helper('network')->__('ID'),
|
| 23 |
+
'align' => 'left',
|
| 24 |
+
'width' => '10px',
|
| 25 |
+
'index' => 'tint_id',
|
| 26 |
+
));
|
| 27 |
+
|
| 28 |
+
$this->addColumn('vch_icon_name',array(
|
| 29 |
+
'header' => Mage::helper('network')->__('Name'),
|
| 30 |
+
'align' => 'left',
|
| 31 |
+
'index' => 'vch_icon_name',
|
| 32 |
+
'width' => '100px',
|
| 33 |
+
));
|
| 34 |
+
|
| 35 |
+
$this->addColumn('vch_url',array(
|
| 36 |
+
'header' => Mage::helper('network')->__('URL'),
|
| 37 |
+
'align' => 'left',
|
| 38 |
+
'index' => 'vch_url',
|
| 39 |
+
'width' => '200px',
|
| 40 |
+
));
|
| 41 |
+
|
| 42 |
+
$this->addColumn('mint_position',array(
|
| 43 |
+
'header' => Mage::helper('network')->__('Position'),
|
| 44 |
+
'align' => 'left',
|
| 45 |
+
'index' => 'mint_position',
|
| 46 |
+
'width' => '200px',
|
| 47 |
+
));
|
| 48 |
+
|
| 49 |
+
|
| 50 |
+
return parent::_prepareColumns();
|
| 51 |
+
}
|
| 52 |
+
|
| 53 |
+
public function getRowUrl($row)
|
| 54 |
+
{
|
| 55 |
+
return $this->getUrl('*/*/edit',array('id' => $row->getId()));
|
| 56 |
+
}
|
| 57 |
+
}
|
app/code/community/SN/Network/Helper/Data.php
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
class SN_Network_Helper_Data extends Mage_Core_Helper_Abstract
|
| 3 |
+
{
|
| 4 |
+
public function CUE_socialIcons()
|
| 5 |
+
{
|
| 6 |
+
$cb_social_icon_collection = Mage::getModel('network/network')->getCollection()->setOrder('mint_position', 'ASC');;
|
| 7 |
+
$skinUrl = Mage::getDesign()->getSkinUrl('images/');
|
| 8 |
+
foreach ($cb_social_icon_collection as $cbCollection):
|
| 9 |
+
$image=$cbCollection['vch_logo_image'];
|
| 10 |
+
|
| 11 |
+
$imgPath=$skinUrl.'cb_social_icons/'.$image;
|
| 12 |
+
|
| 13 |
+
$status=$cbCollection['sint_status'];
|
| 14 |
+
|
| 15 |
+
if(!empty($cbCollection['txt_cust_code']) && $status==1)
|
| 16 |
+
{
|
| 17 |
+
echo $cbCollection['txt_cust_code'];
|
| 18 |
+
}
|
| 19 |
+
else
|
| 20 |
+
{
|
| 21 |
+
if($status==1)
|
| 22 |
+
{
|
| 23 |
+
?>
|
| 24 |
+
<a href="<?=$cbCollection['vch_url'];?>" title="<?=$cbCollection['vch_icon_name']?>" target="_blank"><img alt="<?=$cbCollection['vch_icon_name']?>" src="<?=$imgPath?>" width="24px" height="24px"></a>
|
| 25 |
+
<?php
|
| 26 |
+
}
|
| 27 |
+
}
|
| 28 |
+
endforeach;
|
| 29 |
+
|
| 30 |
+
}
|
| 31 |
+
}
|
app/code/community/SN/Network/Model/Mysql4/Network.php
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
class SN_Network_Model_Mysql4_Network extends Mage_Core_Model_Mysql4_Abstract
|
| 3 |
+
{
|
| 4 |
+
public function _construct()
|
| 5 |
+
{
|
| 6 |
+
$this->_init('network/network', 'tint_id');
|
| 7 |
+
}
|
| 8 |
+
}
|
app/code/community/SN/Network/Model/Mysql4/Network/Collection.php
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
class SN_Network_Model_Mysql4_Network_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract
|
| 3 |
+
{
|
| 4 |
+
public function _construct()
|
| 5 |
+
{
|
| 6 |
+
//parent::__construct();
|
| 7 |
+
$this->_init('network/network');
|
| 8 |
+
}
|
| 9 |
+
}
|
app/code/community/SN/Network/Model/Network.php
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
class SN_Network_Model_Network extends Mage_Core_Model_Abstract
|
| 3 |
+
{
|
| 4 |
+
public function _construct()
|
| 5 |
+
{
|
| 6 |
+
parent::_construct();
|
| 7 |
+
$this->_init('network/network');
|
| 8 |
+
}
|
| 9 |
+
}
|
app/code/community/SN/Network/controllers/Adminhtml/NetworkController.php
ADDED
|
@@ -0,0 +1,209 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
class SN_Network_Adminhtml_NetworkController extends Mage_Adminhtml_Controller_action
|
| 3 |
+
{
|
| 4 |
+
protected function _initAction()
|
| 5 |
+
|
| 6 |
+
{
|
| 7 |
+
$this->loadLayout()
|
| 8 |
+
->_setActiveMenu('network/items')
|
| 9 |
+
->_addBreadcrumb(Mage::helper('adminhtml')->__('Items Manager'), Mage::helper('adminhtml')->__('Item Manager'));
|
| 10 |
+
return $this;
|
| 11 |
+
}
|
| 12 |
+
|
| 13 |
+
public function indexAction() {
|
| 14 |
+
|
| 15 |
+
$this->_initAction();
|
| 16 |
+
// $this->_addContent($this->getLayout()->createBlock('Network/adminhtml_Network'));
|
| 17 |
+
$this->renderLayout();
|
| 18 |
+
}
|
| 19 |
+
public function editAction()
|
| 20 |
+
|
| 21 |
+
{
|
| 22 |
+
$NetworkId = $this->getRequest()->getParam('id');
|
| 23 |
+
|
| 24 |
+
$NetworkModel = Mage::getModel('network/network')->load($NetworkId);
|
| 25 |
+
|
| 26 |
+
if ($NetworkModel->getId() || $NetworkId == 0) {
|
| 27 |
+
|
| 28 |
+
|
| 29 |
+
Mage::register('network_data', $NetworkModel);
|
| 30 |
+
|
| 31 |
+
|
| 32 |
+
$this->loadLayout();
|
| 33 |
+
|
| 34 |
+
$this->_setActiveMenu('network/items');
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
$this->_addBreadcrumb(Mage::helper('adminhtml')->__('Item Manager'), Mage::helper('adminhtml')->__('Item Manager'));
|
| 39 |
+
|
| 40 |
+
$this->_addBreadcrumb(Mage::helper('adminhtml')->__('Item News'), Mage::helper('adminhtml')->__('Item News'));
|
| 41 |
+
|
| 42 |
+
|
| 43 |
+
$this->getLayout()->getBlock('head')->setCanLoadExtJs(true);
|
| 44 |
+
|
| 45 |
+
|
| 46 |
+
$this->_addContent($this->getLayout()->createBlock('network/adminhtml_network_edit'))->_addLeft($this->getLayout()->createBlock('network/adminhtml_network_edit_tabs'));
|
| 47 |
+
|
| 48 |
+
|
| 49 |
+
$this->renderLayout();
|
| 50 |
+
|
| 51 |
+
} else {
|
| 52 |
+
|
| 53 |
+
Mage::getSingleton('adminhtml/session')->addError(Mage::helper('network')->__('Item does not exist'));
|
| 54 |
+
|
| 55 |
+
$this->_redirect('*/*/');
|
| 56 |
+
|
| 57 |
+
}
|
| 58 |
+
|
| 59 |
+
}
|
| 60 |
+
|
| 61 |
+
|
| 62 |
+
|
| 63 |
+
public function newAction()
|
| 64 |
+
|
| 65 |
+
{
|
| 66 |
+
|
| 67 |
+
$this->_forward('edit');
|
| 68 |
+
|
| 69 |
+
}
|
| 70 |
+
|
| 71 |
+
|
| 72 |
+
|
| 73 |
+
public function saveAction()
|
| 74 |
+
|
| 75 |
+
{
|
| 76 |
+
if ( $this->getRequest()->getPost() ) {
|
| 77 |
+
|
| 78 |
+
try {
|
| 79 |
+
|
| 80 |
+
$postData = $this->getRequest()->getPost();
|
| 81 |
+
|
| 82 |
+
$NetworkModel = Mage::getModel('network/network');
|
| 83 |
+
if(isset($_FILES['vch_logo_image']['name']) && $_FILES['vch_logo_image']['name'] != '') {
|
| 84 |
+
try {
|
| 85 |
+
/* Starting upload */
|
| 86 |
+
$uploader = new Varien_File_Uploader('vch_logo_image');
|
| 87 |
+
|
| 88 |
+
// Any extention would work
|
| 89 |
+
$uploader->setAllowedExtensions(array('jpg','jpeg','gif','png'));
|
| 90 |
+
$uploader->setAllowRenameFiles(false);
|
| 91 |
+
|
| 92 |
+
// Set the file upload mode
|
| 93 |
+
// false -> get the file directly in the specified folder
|
| 94 |
+
// true -> get the file in the product like folders
|
| 95 |
+
// (file.jpg will go in something like /media/f/i/file.jpg)
|
| 96 |
+
$uploader->setFilesDispersion(false);
|
| 97 |
+
|
| 98 |
+
// We set cb_social_icons (in skin directory) as the upload dir
|
| 99 |
+
$base_path = Mage::getBaseDir() . DS ;
|
| 100 |
+
$path = $base_path."/skin/frontend/default/default/images/cb_social_icons";
|
| 101 |
+
$uploader->save($path, $_FILES['vch_logo_image']['name'] );
|
| 102 |
+
|
| 103 |
+
} catch (Exception $e) {
|
| 104 |
+
|
| 105 |
+
}
|
| 106 |
+
|
| 107 |
+
}
|
| 108 |
+
|
| 109 |
+
if(isset($_FILES['vch_logo_image']['name']) && !empty($_FILES['vch_logo_image']['name']))
|
| 110 |
+
{
|
| 111 |
+
$NetworkModel->setId($this->getRequest()->getParam('id'))
|
| 112 |
+
->setVch_icon_name($postData['vch_icon_name'])
|
| 113 |
+
->setVch_url($postData['vch_url'])
|
| 114 |
+
->setVch_logo_image($_FILES['vch_logo_image']['name'])
|
| 115 |
+
->setSint_status($postData['sint_status'])
|
| 116 |
+
->setMint_position($postData['mint_position'])
|
| 117 |
+
->save();
|
| 118 |
+
}
|
| 119 |
+
else
|
| 120 |
+
{
|
| 121 |
+
$NetworkModel->setId($this->getRequest()->getParam('id'))
|
| 122 |
+
->setVch_icon_name($postData['vch_icon_name'])
|
| 123 |
+
->setVch_url($postData['vch_url'])
|
| 124 |
+
->setSint_status($postData['sint_status'])
|
| 125 |
+
->setMint_position($postData['mint_position'])
|
| 126 |
+
->setTxt_cust_code($postData['txt_cust_code'])
|
| 127 |
+
->save();
|
| 128 |
+
}
|
| 129 |
+
|
| 130 |
+
Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('adminhtml')->__('Item was successfully saved'));
|
| 131 |
+
|
| 132 |
+
Mage::getSingleton('adminhtml/session')->setNetworkData(false);
|
| 133 |
+
|
| 134 |
+
$this->_redirect('*/*/');
|
| 135 |
+
|
| 136 |
+
return;
|
| 137 |
+
|
| 138 |
+
|
| 139 |
+
} catch (Exception $e) {
|
| 140 |
+
|
| 141 |
+
Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
|
| 142 |
+
Mage::getSingleton('adminhtml/session')->setNetworkData($this->getRequest()->getPost());
|
| 143 |
+
|
| 144 |
+
$this->_redirect('*/*/edit', array('id' => $this->getRequest()->getParam('id')));
|
| 145 |
+
|
| 146 |
+
return;
|
| 147 |
+
}
|
| 148 |
+
|
| 149 |
+
}
|
| 150 |
+
|
| 151 |
+
$this->_redirect('*/*/');
|
| 152 |
+
|
| 153 |
+
}
|
| 154 |
+
|
| 155 |
+
|
| 156 |
+
|
| 157 |
+
public function deleteAction()
|
| 158 |
+
|
| 159 |
+
{
|
| 160 |
+
|
| 161 |
+
if( $this->getRequest()->getParam('id') > 0 ) {
|
| 162 |
+
|
| 163 |
+
try {
|
| 164 |
+
|
| 165 |
+
$NetworkModel = Mage::getModel('network/network');
|
| 166 |
+
|
| 167 |
+
|
| 168 |
+
$NetworkModel->setId($this->getRequest()->getParam('id'))->delete();
|
| 169 |
+
|
| 170 |
+
Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('adminhtml')->__('Item was successfully deleted'));
|
| 171 |
+
|
| 172 |
+
$this->_redirect('*/*/');
|
| 173 |
+
|
| 174 |
+
} catch (Exception $e) {
|
| 175 |
+
|
| 176 |
+
Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
|
| 177 |
+
|
| 178 |
+
$this->_redirect('*/*/edit', array('id' => $this->getRequest()->getParam('id')));
|
| 179 |
+
|
| 180 |
+
}
|
| 181 |
+
|
| 182 |
+
}
|
| 183 |
+
|
| 184 |
+
$this->_redirect('*/*/');
|
| 185 |
+
|
| 186 |
+
}
|
| 187 |
+
|
| 188 |
+
/**
|
| 189 |
+
|
| 190 |
+
* Product grid for AJAX request.
|
| 191 |
+
|
| 192 |
+
* Sort and filter result for example.
|
| 193 |
+
|
| 194 |
+
*/
|
| 195 |
+
|
| 196 |
+
public function gridAction()
|
| 197 |
+
|
| 198 |
+
{
|
| 199 |
+
$this->loadLayout();
|
| 200 |
+
|
| 201 |
+
$this->getResponse()->setBody(
|
| 202 |
+
|
| 203 |
+
$this->getLayout()->createBlock('importedit/adminhtml_network_grid')->toHtml()
|
| 204 |
+
|
| 205 |
+
);
|
| 206 |
+
|
| 207 |
+
}
|
| 208 |
+
|
| 209 |
+
}
|
app/code/community/SN/Network/controllers/IndexController.php
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
class SN_Network_IndexController extends Mage_Core_Controller_Front_Action
|
| 3 |
+
{
|
| 4 |
+
public function indexAction()
|
| 5 |
+
{
|
| 6 |
+
$this->loadLayout();
|
| 7 |
+
$block = $this->getLayout()->createBlock('Mage_Core_Block_Template','sn.index',array('template' => 'network/index.phtml'));
|
| 8 |
+
$this->getLayout()->getBlock('content')->append($block);
|
| 9 |
+
$this->_initLayoutMessages('core/session');
|
| 10 |
+
$this->renderLayout();
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
if($this->_request->isPost())
|
| 14 |
+
{
|
| 15 |
+
echo"Posted";
|
| 16 |
+
}
|
| 17 |
+
}
|
| 18 |
+
public function listAction()
|
| 19 |
+
{
|
| 20 |
+
$this->loadLayout();
|
| 21 |
+
$block = $this->getLayout()->createBlock('Mage_Core_Block_Template','sn.list',array('template' => 'network/list.phtml'));
|
| 22 |
+
$this->getLayout()->getBlock('content')->append($block);
|
| 23 |
+
$this->_initLayoutMessages('core/session');
|
| 24 |
+
$HelloworldObj = Mage::getModel('network/network');
|
| 25 |
+
$collection = $HelloworldObj->getCollection();
|
| 26 |
+
$arrData=array();
|
| 27 |
+
foreach($collection as $item)
|
| 28 |
+
{
|
| 29 |
+
//echo '<pre>'; print_r($item->getData());
|
| 30 |
+
$item->getData();
|
| 31 |
+
}
|
| 32 |
+
$arrData=$collection->getData();
|
| 33 |
+
//Mage::getSingleton('helloworld/session')->addSuccess($arrData);
|
| 34 |
+
//$this->_initLayoutMessages('helloworld/session');
|
| 35 |
+
//echo '<pre>'; print_r($arrData);
|
| 36 |
+
//$this->view->text = 'test';
|
| 37 |
+
//$this->data = $arrData;
|
| 38 |
+
$this->renderLayout();
|
| 39 |
+
}
|
| 40 |
+
|
| 41 |
+
}
|
app/code/community/SN/Network/sql/network_setup/mysql4-install-0.1.0.php
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
$installer = $this;
|
| 3 |
+
$installer->startSetup();
|
| 4 |
+
$installer->run("
|
| 5 |
+
CREATE TABLE `cb_social_network` (
|
| 6 |
+
`tint_id` tinyint(1) NOT NULL AUTO_INCREMENT,
|
| 7 |
+
`vch_logo_image` varchar(200) NOT NULL,
|
| 8 |
+
`vch_icon_name` varchar(255) NOT NULL,
|
| 9 |
+
`vch_url` varchar(255) NOT NULL,
|
| 10 |
+
`vch_alt` varchar(255) NOT NULL,
|
| 11 |
+
`txt_cust_code` text NOT NULL,
|
| 12 |
+
`mint_position` mediumint(3) NOT NULL,
|
| 13 |
+
`sint_status` smallint(6) NOT NULL DEFAULT '1',
|
| 14 |
+
PRIMARY KEY (`tint_id`),
|
| 15 |
+
KEY `vch_icon_name` (`vch_icon_name`),
|
| 16 |
+
KEY `mint_position` (`mint_position`)
|
| 17 |
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
INSERT INTO `cb_social_network` (`tint_id`, `vch_logo_image`, `vch_icon_name`, `vch_url`, `vch_alt`, `txt_cust_code`, `mint_position`, `sint_status`) VALUES
|
| 21 |
+
(1, 'Facebook-icon.png', 'Facebook', 'http://www.facebook.com/', '', '', 1, 1),
|
| 22 |
+
(2, 'Twitter-icon.png', 'Twitter', 'http://www.twitter.com/', '', '', 2, 1),
|
| 23 |
+
(3, 'MySpace-icon.png', 'MySpace', 'http://www.myspace.com', '', '', 3, 1),
|
| 24 |
+
(4, 'Flickr-icon.png', 'Flickr', 'http://www.flickr.com', '', '', 4, 1);
|
| 25 |
+
");
|
| 26 |
+
$installer->endSetup();
|
app/design/adminhtml/default/default/layout/network.xml
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0"?>
|
| 2 |
+
<layout version="0.1.0">
|
| 3 |
+
<network_adminhtml_network_index>
|
| 4 |
+
<reference name="content">
|
| 5 |
+
<block type="network/adminhtml_network" name="network" />
|
| 6 |
+
</reference>
|
| 7 |
+
</network_adminhtml_network_index>
|
| 8 |
+
</layout>
|
app/design/frontend/default/default/layout/network.xml
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<!--
|
| 3 |
+
/**
|
| 4 |
+
*
|
| 5 |
+
* Package :- CueBlocks_Zoom-1.0.tgz
|
| 6 |
+
* Version :- 1.0
|
| 7 |
+
* Edition :- Community
|
| 8 |
+
* Developed By :- CueBlocks.com
|
| 9 |
+
*
|
| 10 |
+
*/
|
| 11 |
+
-->
|
| 12 |
+
<layout version="0.1.0">
|
| 13 |
+
|
| 14 |
+
<default>
|
| 15 |
+
<reference name="head">
|
| 16 |
+
<action method="addItem"><type>skin_css</type><name>css/cb_sn.css</name><params/></action>
|
| 17 |
+
</reference>
|
| 18 |
+
|
| 19 |
+
<!-- <reference name="footer">
|
| 20 |
+
<action method="setTemplate"><template>network/footer.phtml</template></action>
|
| 21 |
+
</reference> -->
|
| 22 |
+
</default>
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
|
| 27 |
+
</layout>
|
| 28 |
+
|
app/etc/config.xml
ADDED
|
@@ -0,0 +1,393 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0"?>
|
| 2 |
+
<!--
|
| 3 |
+
/**
|
| 4 |
+
* Magento
|
| 5 |
+
*
|
| 6 |
+
* NOTICE OF LICENSE
|
| 7 |
+
*
|
| 8 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
| 9 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
| 10 |
+
* It is also available through the world-wide-web at this URL:
|
| 11 |
+
* http://opensource.org/licenses/afl-3.0.php
|
| 12 |
+
* If you did not receive a copy of the license and are unable to
|
| 13 |
+
* obtain it through the world-wide-web, please send an email
|
| 14 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
| 15 |
+
*
|
| 16 |
+
* DISCLAIMER
|
| 17 |
+
*
|
| 18 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
| 19 |
+
* versions in the future. If you wish to customize Magento for your
|
| 20 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
| 21 |
+
*
|
| 22 |
+
* @category Mage
|
| 23 |
+
* @package Mage_Core
|
| 24 |
+
* @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
|
| 25 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
| 26 |
+
*/
|
| 27 |
+
-->
|
| 28 |
+
<config>
|
| 29 |
+
<global>
|
| 30 |
+
<install>
|
| 31 |
+
<date></date>
|
| 32 |
+
</install>
|
| 33 |
+
<locale>
|
| 34 |
+
<allow>
|
| 35 |
+
<codes>
|
| 36 |
+
<af_ZA/><!-- Afrikaans (South Africa) -->
|
| 37 |
+
<ar_EG/><!-- Arabic (Egypt) -->
|
| 38 |
+
<ar_KW/><!-- Arabic (Kuwait) -->
|
| 39 |
+
<ar_MA/><!-- Arabic (Morocco) -->
|
| 40 |
+
<ar_SA/><!-- Arabic (Saudi Arabia) -->
|
| 41 |
+
<az_AZ/><!-- Azerbaijani (Azerbaijan) -->
|
| 42 |
+
<bg_BG/><!-- Bulgarian (Bulgaria) -->
|
| 43 |
+
<bn_BD/><!-- Bengali (Bangladesh) -->
|
| 44 |
+
<bs_BA/><!-- Bosnian (Bosnia) -->
|
| 45 |
+
<ca_ES/><!-- Catalan (Catalonia) -->
|
| 46 |
+
<cs_CZ/><!-- Czech (Czech Republic) -->
|
| 47 |
+
<cy_GB/><!-- Welsh (United Kingdom) -->
|
| 48 |
+
<da_DK/><!-- Danish (Denmark) -->
|
| 49 |
+
<de_AT/><!-- German (Austria) -->
|
| 50 |
+
<de_CH/><!-- German (Switzerland) -->
|
| 51 |
+
<de_DE/><!-- German (Germany) -->
|
| 52 |
+
<el_GR/><!-- Greek (Greece) -->
|
| 53 |
+
<en_AU/><!-- English (Australian) -->
|
| 54 |
+
<en_GB/><!-- English (United Kingdom) -->
|
| 55 |
+
<en_NZ/><!-- English (New Zealand) -->
|
| 56 |
+
<en_US/><!-- English (United States) -->
|
| 57 |
+
<es_AR/><!-- Spanish (Argentina) -->
|
| 58 |
+
<es_CO/><!-- Spanish (Colombia) -->
|
| 59 |
+
<es_PA/><!-- Spanish (Panama) -->
|
| 60 |
+
<gl_ES/><!-- Galician (Galician) -->
|
| 61 |
+
<es_CR/><!-- Spanish (Costa Rica) -->
|
| 62 |
+
<es_ES/><!-- Spanish (Spain) -->
|
| 63 |
+
<es_MX/><!-- Spanish (Mexico) -->
|
| 64 |
+
<es_EU/><!-- Basque (Basque) -->
|
| 65 |
+
<es_PE/><!-- Spanish (Peru) -->
|
| 66 |
+
<et_EE/><!-- Estonian (Estonia) -->
|
| 67 |
+
<fa_IR/><!-- Persian (Iran) -->
|
| 68 |
+
<fi_FI/><!-- Finnish (Finland) -->
|
| 69 |
+
<fil_PH/><!-- Filipino (Philippines) -->
|
| 70 |
+
<fr_CA/><!-- French (Canada) -->
|
| 71 |
+
<fr_FR/><!-- French (France) -->
|
| 72 |
+
<gu_IN/><!-- Gujarati (India) -->
|
| 73 |
+
<he_IL/><!-- Hebrew (Israel) -->
|
| 74 |
+
<hi_IN/><!-- Hindi (India) -->
|
| 75 |
+
<hr_HR/><!-- Croatian (Croatia) -->
|
| 76 |
+
<hu_HU/><!-- Hungarian (Hungary) -->
|
| 77 |
+
<id_ID/><!-- Indonesian (Indonesia) -->
|
| 78 |
+
<is_IS/><!-- Icelandic (Iceland) -->
|
| 79 |
+
<it_CH/><!-- Italian (Switzerland) -->
|
| 80 |
+
<it_IT/><!-- Italian (Italy) -->
|
| 81 |
+
<ja_JP/><!-- Japanese (Japan) -->
|
| 82 |
+
<ka_GE/><!-- Georgian (Georgia) -->
|
| 83 |
+
<km_KH/><!-- Khmer (Cambodia) -->
|
| 84 |
+
<ko_KR/><!-- Korean (South Korea) -->
|
| 85 |
+
<lo_LA/><!-- Lao (Laos) -->
|
| 86 |
+
<lt_LT/><!-- Lithuanian (Lithuania) -->
|
| 87 |
+
<lv_LV/><!-- Latvian (Latvia) -->
|
| 88 |
+
<mk_MK/><!-- Macedonian (Macedonia) -->
|
| 89 |
+
<mn_MN/><!-- Mongolian (Mongolia) -->
|
| 90 |
+
<ms_MY/><!-- Malaysian (Malaysia) -->
|
| 91 |
+
<nl_NL/><!-- Dutch (Netherlands) -->
|
| 92 |
+
<nb_NO/><!-- Norwegian Bokmål (Norway) -->
|
| 93 |
+
<nn_NO/><!-- Norwegian Nynorsk (Norway) -->
|
| 94 |
+
<pl_PL/><!-- Polish (Poland) -->
|
| 95 |
+
<pt_BR/><!-- Portuguese (Brazil) -->
|
| 96 |
+
<pt_PT/><!-- Portuguese (Portugal) -->
|
| 97 |
+
<ro_RO/><!-- Romanian (Romania) -->
|
| 98 |
+
<ru_RU/><!-- Russian (Russia) -->
|
| 99 |
+
<sk_SK/><!-- Slovak (Slovakia) -->
|
| 100 |
+
<sl_SI/><!-- Slovenian (Slovenia) -->
|
| 101 |
+
<sq_AL/><!-- Albanian (Albania) -->
|
| 102 |
+
<sr_RS/><!-- Serbian (Serbia) -->
|
| 103 |
+
<sv_SE/><!-- Swedish (Sweden) -->
|
| 104 |
+
<sw_KE/><!-- Swahili (Kenya) -->
|
| 105 |
+
<th_TH/><!-- Thai (Thailand) -->
|
| 106 |
+
<tr_TR/><!-- Turkish (Turkey) -->
|
| 107 |
+
<uk_UA/><!-- Ukrainian (Ukraine) -->
|
| 108 |
+
<vi_VN/><!-- Vietnamese (Vietnam) -->
|
| 109 |
+
<zh_CN/><!-- Chinese (China) -->
|
| 110 |
+
<zh_HK/><!-- Chinese (Hong Kong SAR) -->
|
| 111 |
+
<zh_TW/><!-- Chinese (Taiwan) -->
|
| 112 |
+
<es_CL/><!-- Spanich (Chile) -->
|
| 113 |
+
<lo_LA/><!-- Laotian -->
|
| 114 |
+
<es_VE/><!-- Spanish (Venezuela) -->
|
| 115 |
+
</codes>
|
| 116 |
+
<currencies>
|
| 117 |
+
<AFN/><!-- Afghani -->
|
| 118 |
+
<ALL/><!-- Albanian Lek -->
|
| 119 |
+
<AZN/><!-- Azerbaijanian Manat -->
|
| 120 |
+
<DZD/><!-- Algerian Dinar -->
|
| 121 |
+
<AOA/><!-- Angolan Kwanza -->
|
| 122 |
+
<ARS/><!-- Argentine Peso -->
|
| 123 |
+
<AMD/><!-- Armenian Dram -->
|
| 124 |
+
<AWG/><!-- Aruban Florin -->
|
| 125 |
+
<AUD/><!-- Australian Dollar -->
|
| 126 |
+
<BSD/><!-- Bahamian Dollar -->
|
| 127 |
+
<BHD/><!-- Bahraini Dinar -->
|
| 128 |
+
<BDT/><!-- Bangladesh Taka -->
|
| 129 |
+
<BBD/><!-- Barbados Dollar -->
|
| 130 |
+
<BYR/><!-- Belarussian Ruble -->
|
| 131 |
+
<BZD/><!-- Belize Dollar -->
|
| 132 |
+
<BMD/><!-- Bermudan Dollar -->
|
| 133 |
+
<BTN/><!-- Bhutan Ngultrum -->
|
| 134 |
+
<BOB/><!-- Boliviano -->
|
| 135 |
+
<BAM/><!-- Bosnia-Herzegovina Convertible Mark -->
|
| 136 |
+
<BWP/><!-- Botswanan Pula -->
|
| 137 |
+
<BRL/><!-- Brazilian Real -->
|
| 138 |
+
<GBP/><!-- British Pound Sterling -->
|
| 139 |
+
<BND/><!-- Brunei Dollar -->
|
| 140 |
+
<BGN/><!-- Bulgarian New Lev -->
|
| 141 |
+
<BUK/><!-- Burmese Kyat -->
|
| 142 |
+
<BIF/><!-- Burundi Franc -->
|
| 143 |
+
<KHR/><!-- Cambodian Riel -->
|
| 144 |
+
<CAD/><!-- Canadian Dollar -->
|
| 145 |
+
<CVE/><!-- Cape Verde Escudo -->
|
| 146 |
+
<CZK/><!-- Czech Republic Koruna -->
|
| 147 |
+
<KYD/><!-- Cayman Islands Dollar -->
|
| 148 |
+
<GQE/><!-- Central African CFA Franc -->
|
| 149 |
+
<CLP/><!-- Chilean Peso -->
|
| 150 |
+
<CNY/><!-- Chinese Yuan Renminbi -->
|
| 151 |
+
<COP/><!-- Colombian Peso -->
|
| 152 |
+
<KMF/><!-- Comoro Franc -->
|
| 153 |
+
<CDF/><!-- Congolese Franc Congolais -->
|
| 154 |
+
<CRC/><!-- Costa Rican Colon -->
|
| 155 |
+
<HRK/><!-- Croatian Kuna -->
|
| 156 |
+
<CUP/><!-- Cuban Peso -->
|
| 157 |
+
<DKK/><!-- Danish Krone -->
|
| 158 |
+
<DJF/><!-- Djibouti Franc -->
|
| 159 |
+
<DOP/><!-- Dominican Peso -->
|
| 160 |
+
<XCD/><!-- East Caribbean Dollar -->
|
| 161 |
+
<EGP/><!-- Egyptian Pound -->
|
| 162 |
+
<SVC/><!-- El Salvador Colon -->
|
| 163 |
+
<ERN/><!-- Eritrean Nakfa -->
|
| 164 |
+
<EEK/><!-- Estonian Kroon -->
|
| 165 |
+
<ETB/><!-- Ethiopian Birr -->
|
| 166 |
+
<EUR/><!-- Euro -->
|
| 167 |
+
<FKP/><!-- Falkland Islands Pound -->
|
| 168 |
+
<FJD/><!-- Fiji Dollar -->
|
| 169 |
+
<GMD/><!-- Gambia Dalasi -->
|
| 170 |
+
<GEK/><!-- Georgian Kupon Larit -->
|
| 171 |
+
<GHS/><!-- Ghana Cedi -->
|
| 172 |
+
<GIP/><!-- Gibraltar Pound -->
|
| 173 |
+
<GTQ/><!-- Guatemala Quetzal -->
|
| 174 |
+
<GNF/><!-- Guinea Franc -->
|
| 175 |
+
<GYD/><!-- Guyana Dollar -->
|
| 176 |
+
<HTG/><!-- Haitian Gourde -->
|
| 177 |
+
<HNL/><!-- Honduras Lempira -->
|
| 178 |
+
<HKD/><!-- Hong Kong Dollar -->
|
| 179 |
+
<HUF/><!-- Hungarian Forint -->
|
| 180 |
+
<ISK/><!-- Icelandic Krona -->
|
| 181 |
+
<INR/><!-- Indian Rupee -->
|
| 182 |
+
<IDR/><!-- Indonesian Rupiah -->
|
| 183 |
+
<IRR/><!-- Iranian Rial -->
|
| 184 |
+
<IQD/><!-- Iraqi Dinar -->
|
| 185 |
+
<ILS/><!-- Israeli New Sheqel -->
|
| 186 |
+
<JMD/><!-- Jamaican Dollar -->
|
| 187 |
+
<JPY/><!-- Japanese Yen -->
|
| 188 |
+
<JOD/><!-- Jordanian Dinar -->
|
| 189 |
+
<KZT/><!-- Kazakhstan Tenge -->
|
| 190 |
+
<KES/><!-- Kenyan Shilling -->
|
| 191 |
+
<KWD/><!-- Kuwaiti Dinar -->
|
| 192 |
+
<KGS/><!-- Kyrgystan Som -->
|
| 193 |
+
<LAK/><!-- Laotian Kip -->
|
| 194 |
+
<LVL/><!-- Latvian Lats -->
|
| 195 |
+
<LBP/><!-- Lebanese Pound -->
|
| 196 |
+
<LSL/><!-- Lesotho Loti -->
|
| 197 |
+
<LRD/><!-- Liberian Dollar -->
|
| 198 |
+
<LYD/><!-- Libyan Dinar -->
|
| 199 |
+
<LTL/><!-- Lithuanian Lita -->
|
| 200 |
+
<MOP/><!-- Macao Pataca -->
|
| 201 |
+
<MKD/><!-- Macedonian Denar -->
|
| 202 |
+
<MGA/><!-- Malagasy Ariary -->
|
| 203 |
+
<MWK/><!-- Malawi Kwacha -->
|
| 204 |
+
<MYR/><!-- Malaysian Ringgit -->
|
| 205 |
+
<MVR/><!-- Maldive Islands Rufiyaa -->
|
| 206 |
+
<LSM/><!-- Maloti -->
|
| 207 |
+
<MRO/><!-- Mauritania Ouguiya -->
|
| 208 |
+
<MUR/><!-- Mauritius Rupee -->
|
| 209 |
+
<MXN/><!-- Mexican Peso -->
|
| 210 |
+
<MDL/><!-- Moldovan Leu -->
|
| 211 |
+
<MNT/><!-- Mongolian Tögrög -->
|
| 212 |
+
<MAD/><!-- Moroccan Dirham -->
|
| 213 |
+
<MZN/><!-- Mozambique Metical -->
|
| 214 |
+
<MMK/><!-- Myanmar Kyat -->
|
| 215 |
+
<NAD/><!-- Namibia Dollar -->
|
| 216 |
+
<NPR/><!-- Nepalese Rupee -->
|
| 217 |
+
<ANG/><!-- Netherlands Antillan Guilder -->
|
| 218 |
+
<YTL/><!-- New Turkish Lira -->
|
| 219 |
+
<NZD/><!-- New Zealand Dollar -->
|
| 220 |
+
<NIC/><!-- Nicaraguan Cordoba -->
|
| 221 |
+
<NGN/><!-- Nigerian Naira -->
|
| 222 |
+
<KPW/><!-- North Korean Won -->
|
| 223 |
+
<NOK/><!-- Norwegian Krone -->
|
| 224 |
+
<OMR/><!-- Oman Rial -->
|
| 225 |
+
<PKR/><!-- Pakistan Rupee -->
|
| 226 |
+
<PAB/><!-- Panamanian Balboa -->
|
| 227 |
+
<PGK/><!-- Papua New Guinea Kina -->
|
| 228 |
+
<PYG/><!-- Paraguay Guarani -->
|
| 229 |
+
<PEN/><!-- Peruvian Nuevo Sol -->
|
| 230 |
+
<PHP/><!-- Philippine Peso -->
|
| 231 |
+
<PLN/><!-- Polish Zloty -->
|
| 232 |
+
<QAR/><!-- Qatari Rial -->
|
| 233 |
+
<RHD/><!-- Rhodesian Dollar -->
|
| 234 |
+
<RON/><!-- Romanian Leu -->
|
| 235 |
+
<RUB/><!-- Russian Ruble -->
|
| 236 |
+
<RWF/><!-- Rwandan Franc -->
|
| 237 |
+
<SHP/><!-- Saint Helena Pound -->
|
| 238 |
+
<STD/><!-- Sao Tome and Principe Dobra -->
|
| 239 |
+
<SAR/><!-- Saudi Riyal -->
|
| 240 |
+
<RSD/><!-- Serbian Dinar -->
|
| 241 |
+
<SCR/><!-- Seychelles Rupee -->
|
| 242 |
+
<SLL/><!-- Sierra Leone Leone -->
|
| 243 |
+
<SGD/><!-- Singapore Dollar -->
|
| 244 |
+
<SKK/><!-- Slovak Koruna -->
|
| 245 |
+
<SBD/><!-- Solomon Islands Dollar -->
|
| 246 |
+
<SOS/><!-- Somali Shilling -->
|
| 247 |
+
<ZAR/><!-- South African Rand -->
|
| 248 |
+
<KRW/><!-- South Korean Won -->
|
| 249 |
+
<LKR/><!-- Sri Lanka Rupee -->
|
| 250 |
+
<SDG/><!-- Sudanese Pound -->
|
| 251 |
+
<SRD/><!-- Surinam Dollar -->
|
| 252 |
+
<SZL/><!-- Swaziland Lilangeni -->
|
| 253 |
+
<SEK/><!-- Swedish Krona -->
|
| 254 |
+
<CHF/><!-- Swiss Franc -->
|
| 255 |
+
<SYP/><!-- Syrian Pound -->
|
| 256 |
+
<TWD/><!-- Taiwan New Dollar -->
|
| 257 |
+
<TJS/><!-- Tajikistan Somoni -->
|
| 258 |
+
<TZS/><!-- Tanzanian Shilling -->
|
| 259 |
+
<THB/><!-- Thai Baht -->
|
| 260 |
+
<TOP/><!-- Tonga Pa?anga -->
|
| 261 |
+
<TTD/><!-- Trinidad and Tobago Dollar -->
|
| 262 |
+
<TND/><!-- Tunisian Dinar -->
|
| 263 |
+
<TMM/><!-- Turkmenistan Manat -->
|
| 264 |
+
<USD/><!-- US Dollar -->
|
| 265 |
+
<UGX/><!-- Ugandan Shilling -->
|
| 266 |
+
<UAH/><!-- Ukrainian Hryvnia -->
|
| 267 |
+
<AED/><!-- United Arab Emirates Dirham -->
|
| 268 |
+
<UYU/><!-- Uruguay Peso Uruguayo -->
|
| 269 |
+
<UZS/><!-- Uzbekistan Sum -->
|
| 270 |
+
<VUV/><!-- Vanuatu Vatu -->
|
| 271 |
+
<VEB/><!-- Venezuelan Bolivar -->
|
| 272 |
+
<VND/><!-- Vietnamese Dong -->
|
| 273 |
+
<CHE/><!-- WIR Euro -->
|
| 274 |
+
<CHW/><!-- WIR Franc -->
|
| 275 |
+
<XOF/><!-- West African CFA franc -->
|
| 276 |
+
<WST/><!-- Western Samoa Tala -->
|
| 277 |
+
<YER/><!-- Yemeni Rial -->
|
| 278 |
+
<ZMK/><!-- Zambian Kwacha -->
|
| 279 |
+
<ZWD/><!-- Zimbabwe Dollar -->
|
| 280 |
+
</currencies>
|
| 281 |
+
</allow>
|
| 282 |
+
</locale>
|
| 283 |
+
|
| 284 |
+
<resources>
|
| 285 |
+
<default_setup>
|
| 286 |
+
<connection>
|
| 287 |
+
<host>localhost</host>
|
| 288 |
+
<username></username>
|
| 289 |
+
<password/>
|
| 290 |
+
<dbname>magento</dbname>
|
| 291 |
+
|
| 292 |
+
<model>mysql4</model>
|
| 293 |
+
<initStatements>SET NAMES utf8</initStatements>
|
| 294 |
+
<type>pdo_mysql</type>
|
| 295 |
+
<active>0</active>
|
| 296 |
+
</connection>
|
| 297 |
+
</default_setup>
|
| 298 |
+
<default_write>
|
| 299 |
+
<connection>
|
| 300 |
+
<use>default_setup</use>
|
| 301 |
+
</connection>
|
| 302 |
+
</default_write>
|
| 303 |
+
<default_read>
|
| 304 |
+
<connection>
|
| 305 |
+
<use>default_setup</use>
|
| 306 |
+
</connection>
|
| 307 |
+
</default_read>
|
| 308 |
+
|
| 309 |
+
<core_setup>
|
| 310 |
+
<setup>
|
| 311 |
+
<module>Mage_Core</module>
|
| 312 |
+
</setup>
|
| 313 |
+
<connection>
|
| 314 |
+
<use>default_setup</use>
|
| 315 |
+
</connection>
|
| 316 |
+
</core_setup>
|
| 317 |
+
<core_write>
|
| 318 |
+
<connection>
|
| 319 |
+
<use>default_write</use>
|
| 320 |
+
</connection>
|
| 321 |
+
</core_write>
|
| 322 |
+
<core_read>
|
| 323 |
+
<connection>
|
| 324 |
+
<use>default_read</use>
|
| 325 |
+
</connection>
|
| 326 |
+
</core_read>
|
| 327 |
+
</resources>
|
| 328 |
+
|
| 329 |
+
<resource>
|
| 330 |
+
|
| 331 |
+
<connection>
|
| 332 |
+
<types>
|
| 333 |
+
<pdo_mysql>
|
| 334 |
+
<class>Mage_Core_Model_Resource_Type_Db_Pdo_Mysql</class>
|
| 335 |
+
</pdo_mysql>
|
| 336 |
+
<mysqli>
|
| 337 |
+
<class>Mage_Core_Model_Resource_Type_Db_Mysqli</class>
|
| 338 |
+
</mysqli>
|
| 339 |
+
</types>
|
| 340 |
+
</connection>
|
| 341 |
+
</resource>
|
| 342 |
+
<models>
|
| 343 |
+
<varien>
|
| 344 |
+
<class>Varien</class>
|
| 345 |
+
</varien>
|
| 346 |
+
|
| 347 |
+
<core>
|
| 348 |
+
<class>Mage_Core_Model</class>
|
| 349 |
+
<resourceModel>core_mysql4</resourceModel>
|
| 350 |
+
</core>
|
| 351 |
+
|
| 352 |
+
<core_mysql4>
|
| 353 |
+
<class>Mage_Core_Model_Mysql4</class>
|
| 354 |
+
<entities>
|
| 355 |
+
<config_data>
|
| 356 |
+
<table>core_config_data</table>
|
| 357 |
+
</config_data>
|
| 358 |
+
<website>
|
| 359 |
+
<table>core_website</table>
|
| 360 |
+
</website>
|
| 361 |
+
<store>
|
| 362 |
+
<table>core_store</table>
|
| 363 |
+
</store>
|
| 364 |
+
<resource>
|
| 365 |
+
<table>core_resource</table>
|
| 366 |
+
</resource>
|
| 367 |
+
</entities>
|
| 368 |
+
</core_mysql4>
|
| 369 |
+
</models>
|
| 370 |
+
</global>
|
| 371 |
+
|
| 372 |
+
<default>
|
| 373 |
+
<system>
|
| 374 |
+
<filesystem>
|
| 375 |
+
<base>{{root_dir}}</base>
|
| 376 |
+
<app>{{root_dir}}/app</app>
|
| 377 |
+
<code>{{app_dir}}/code</code>
|
| 378 |
+
<design>{{app_dir}}/design</design>
|
| 379 |
+
<locale>{{app_dir}}/locale</locale>
|
| 380 |
+
<etc>{{app_dir}}/etc</etc>
|
| 381 |
+
<media>{{root_dir}}/media</media>
|
| 382 |
+
<upload>{{root_dir}}/media/upload</upload>
|
| 383 |
+
<skin>{{root_dir}}/skin</skin>
|
| 384 |
+
<var>{{var_dir}}</var>
|
| 385 |
+
<cache>{{var_dir}}/cache</cache>
|
| 386 |
+
<session>{{var_dir}}/session</session>
|
| 387 |
+
<tmp>{{var_dir}}/tmp</tmp>
|
| 388 |
+
<pear>{{var_dir}}/pear</pear>
|
| 389 |
+
<export>{{var_dir}}/export</export>
|
| 390 |
+
</filesystem>
|
| 391 |
+
</system>
|
| 392 |
+
</default>
|
| 393 |
+
</config>
|
app/etc/modules/SN_Network.xml
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0"?>
|
| 2 |
+
<!--
|
| 3 |
+
/**
|
| 4 |
+
*
|
| 5 |
+
* Package :- CueBlocks_Zoom-1.0.tgz
|
| 6 |
+
* Version :- 1.0
|
| 7 |
+
* Edition :- Community
|
| 8 |
+
* Developed By :- CueBlocks.com
|
| 9 |
+
*
|
| 10 |
+
*/
|
| 11 |
+
-->
|
| 12 |
+
<config>
|
| 13 |
+
<modules>
|
| 14 |
+
<SN_Network>
|
| 15 |
+
<active>true</active>
|
| 16 |
+
<codePool>community</codePool>
|
| 17 |
+
<depends>
|
| 18 |
+
<Mage_Catalog />
|
| 19 |
+
</depends>
|
| 20 |
+
</SN_Network>
|
| 21 |
+
</modules>
|
| 22 |
+
</config>
|
package.xml
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0"?>
|
| 2 |
+
<package>
|
| 3 |
+
<name>SN_Network</name>
|
| 4 |
+
<version>1.4</version>
|
| 5 |
+
<stability>stable</stability>
|
| 6 |
+
<license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
| 7 |
+
<channel>community</channel>
|
| 8 |
+
<extends/>
|
| 9 |
+
<summary>This extension allows you to share products / page on various Social Networking sites as choosen by you. The highlighting point of this extension is flexibility to call social icons anywhere you wish to display.</summary>
|
| 10 |
+
<description>This extension allows you to share products / page on various Social Networking sites as choosen by you. The highlighting point of this extension is flexibility to call social icons anywhere you wish to display.</description>
|
| 11 |
+
<notes>inorder to display this extension, you have to call below given code on required template page.
|
| 12 |
+
<?php echo Mage::helper('network/data')->CUE_socialIcons(); ?></notes>
|
| 13 |
+
<authors><author><name>Nitin Khullar</name><user>auto-converted</user><email>nitin.khullar@cueblocks.com</email></author><author><name>Avneet Sethi</name><user>auto-converted</user><email>avneet@cueblocks.com</email></author></authors>
|
| 14 |
+
<date>2010-12-17</date>
|
| 15 |
+
<time>04:10:55</time>
|
| 16 |
+
<contents><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="network.xml" hash="e53c67d4623cc024606160bd965b4fc7"/></dir></dir></dir></dir><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="network.xml" hash="9179e5afe72fe71ff551d5e5c7a82cc2"/></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="default"><dir name="default"><dir name="css"><file name="cb_sn.css" hash="d41d8cd98f00b204e9800998ecf8427e"/></dir><dir name="images"><dir name="cb_social_icons"><file name="Facebook-icon.png" hash="41747a3796dce5f963fb2148d098449d"/><file name="Flickr-icon.png" hash="5c0aaf62c1b84d8347a482d953308e5c"/><file name="MySpace-icon.png" hash="cfc71f32acec27d3416da402bbaf01a3"/><file name="Twitter-icon.png" hash="c3ab6c65a4f6979cfd8aa1944eadd2dd"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="SN_Network.xml" hash="9b16689b5e618318cc8840734902bade"/></dir><dir name="."><file name="config.xml" hash="3ba390ae32b6de34fa4f15168249654f"/></dir></target><target name="magecommunity"><dir name="SN"><dir name="Network"><dir name="Block"><dir name="Adminhtml"><dir name="Network"><dir name="Edit"><dir name="Tab"><file name="Form.php" hash="0a67d686b31f6a4dd38459d87b71f21a"/></dir><file name="Form.php" hash="263e0e54e8baed7a8262a9e062e383f4"/><file name="Tabs.php" hash="6147b0ce9918dff8ae383bcd527c1ea8"/></dir><file name="Edit.php" hash="fb73ad94cf3f5d6f6481f071f0b38e5e"/><file name="Grid.php" hash="65cd59b428235f0e731d7b6e60c63076"/></dir><file name="Network.php" hash="e926f1af478443690ad84f21cad854d3"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="NetworkController.php" hash="5229a1f162dfaa2fecc1c35a6274dbab"/></dir><file name="IndexController.php" hash="860a00351789c1184a302b72cab84ef6"/></dir><dir name="Helper"><file name="Data.php" hash="9f55b04ad0fa8d4863183285576d1475"/></dir><dir name="Model"><dir name="Mysql4"><dir name="Network"><file name="Collection.php" hash="229f02538c42f210cce82446829c19ab"/></dir><file name="Network.php" hash="882808ada9e5b11fc1abf12802414413"/></dir><file name="Network.php" hash="8d64e7727e81bf7814a71bef61f76b7e"/></dir><dir name="sql"><dir name="network_setup"><file name="mysql4-install-0.1.0.php" hash="42b600526b16fb0d072bda00f8b275f6"/></dir></dir></dir></dir></target></contents>
|
| 17 |
+
<compatible/>
|
| 18 |
+
<dependencies/>
|
| 19 |
+
</package>
|
skin/frontend/default/default/css/cb_sn.css
ADDED
|
File without changes
|
skin/frontend/default/default/images/cb_social_icons/Facebook-icon.png
ADDED
|
Binary file
|
skin/frontend/default/default/images/cb_social_icons/Flickr-icon.png
ADDED
|
Binary file
|
skin/frontend/default/default/images/cb_social_icons/MySpace-icon.png
ADDED
|
Binary file
|
skin/frontend/default/default/images/cb_social_icons/Twitter-icon.png
ADDED
|
Binary file
|
