Version Notes
La version 2.6.5 est stable.
Download this release
Release Info
Developer | Magento Core Team |
Extension | AvisVerifies |
Version | 2.6.5 |
Comparing to | |
See all releases |
Code changes from version 2.6.4 to 2.6.5
- app/code/local/Netreviews/Avisverifies/Block/Adminhtml/Form/Edit/Form.php +1 -1
- app/code/local/Netreviews/Avisverifies/Block/Adminhtml/Form/Edit/Tabs.php +0 -22
- app/code/local/Netreviews/Avisverifies/Block/Adminhtml/Form/{Edit/Tab → Export}/Export.php +80 -39
- app/code/local/Netreviews/Avisverifies/Block/Adminhtml/Form/Export/Tabs.php +27 -0
- app/code/local/Netreviews/Avisverifies/Block/Adminhtml/Form/{Edit.php → Export/index.php} +2 -3
- app/code/local/Netreviews/Avisverifies/Block/Catalog/Product/List.php +0 -42
- app/code/local/Netreviews/Avisverifies/Block/Catalog/Product/View.php +0 -42
- app/code/local/Netreviews/Avisverifies/Block/Entity/Detailed.php +0 -44
- app/code/local/Netreviews/Avisverifies/Block/Review/Helper.php +35 -1
- app/code/local/Netreviews/Avisverifies/Block/Review/Product/View.php +7 -22
- app/code/local/Netreviews/Avisverifies/Helper/Data.php +91 -10
- app/code/local/Netreviews/Avisverifies/Helper/Export.php +32 -18
- app/code/local/Netreviews/Avisverifies/Helper/Install.php +131 -0
- app/code/local/Netreviews/Avisverifies/Model/Observers/Product/List.php +13 -0
- app/code/local/Netreviews/Avisverifies/Model/Observers/System.php +76 -0
- app/code/local/Netreviews/Avisverifies/Model/Reviews.php +72 -34
- app/code/local/Netreviews/Avisverifies/controllers/Adminhtml/AvisverifiesController.php +106 -39
- app/code/local/Netreviews/Avisverifies/controllers/DialogController.php +58 -28
- app/code/local/Netreviews/Avisverifies/etc/config.xml +250 -242
- app/code/local/Netreviews/Avisverifies/etc/system.xml +77 -15
- app/code/local/Netreviews/Avisverifies/sql/avisverifies_setup/mysql4-install-2.0.0.php +2 -62
- app/design/frontend/base/default/layout/avisverifies.xml +68 -0
- app/design/frontend/base/default/template/avisverifies/admin/checkinstallation.phtml +151 -0
- app/design/frontend/base/default/template/avisverifies/admin/checkinstallation_tab.phtml +13 -0
- app/design/frontend/base/default/template/avisverifies/catalogProductList.phtml +89 -0
- app/design/frontend/base/default/template/avisverifies/css.phtml +214 -0
- app/design/frontend/base/default/template/avisverifies/float.phtml +7 -0
- app/design/frontend/base/default/template/avisverifies/js.phtml +79 -0
- app/design/frontend/base/default/template/avisverifies/left.phtml +10 -0
- app/design/frontend/base/default/template/avisverifies/observers/checkout.phtml +12 -0
- app/design/frontend/base/default/template/avisverifies/pagination.phtml +72 -0
- app/design/frontend/base/default/template/avisverifies/review/helper/summary.phtml +54 -0
- app/design/frontend/base/default/template/avisverifies/review/helper/summary_short.phtml +54 -0
- app/design/frontend/{default/default/template/avisverifies/list.phtml → base/default/template/avisverifies/reviewProductList.phtml} +0 -1
- app/design/frontend/base/default/template/avisverifies/right.phtml +10 -0
- app/design/frontend/base/default/template/avisverifies/wrapper.phtml +7 -0
- app/design/frontend/default/default/layout/avisverifies.xml +14 -15
- app/design/frontend/default/default/template/avisverifies/admin/checkinstallation.phtml +81 -7
- app/design/frontend/default/default/template/avisverifies/admin/checkinstallation_tab.phtml +1 -1
- app/design/frontend/default/default/template/avisverifies/catalogProductList.phtml +89 -0
- app/design/frontend/default/default/template/avisverifies/js.phtml +22 -31
- app/design/frontend/default/default/template/avisverifies/pagination.phtml +6 -6
- app/design/frontend/default/default/template/avisverifies/review/helper/summary.phtml +9 -3
- app/design/frontend/default/default/template/avisverifies/review/helper/summary_short.phtml +7 -2
- app/design/frontend/default/default/template/avisverifies/reviewProductList.phtml +133 -0
- package.xml +5 -5
- skin/frontend/base/default/images/avisverifies/Sceau_100.png +0 -0
- skin/frontend/base/default/images/avisverifies/Sceau_100de_DE.png +0 -0
- skin/frontend/base/default/images/avisverifies/Sceau_100en_GB.png +0 -0
- skin/frontend/base/default/images/avisverifies/Sceau_100en_US.png +0 -0
- skin/frontend/base/default/images/avisverifies/Sceau_100es_CO.png +0 -0
- skin/frontend/base/default/images/avisverifies/Sceau_100es_ES.png +0 -0
- skin/frontend/base/default/images/avisverifies/Sceau_100fr_FR.png +0 -0
- skin/frontend/base/default/images/avisverifies/Sceau_100it_IT.png +0 -0
- skin/frontend/base/default/images/avisverifies/Sceau_100nl_NL.png +0 -0
- skin/frontend/base/default/images/avisverifies/Sceau_100pt_PT.png +0 -0
- skin/frontend/base/default/images/avisverifies/Sceau_45.png +0 -0
- skin/frontend/base/default/images/avisverifies/Sceau_45_ES.png +0 -0
- skin/frontend/base/default/images/avisverifies/Sceau_45_fr.png +0 -0
- skin/frontend/base/default/images/avisverifies/Sceau_45de_DE.png +0 -0
- skin/frontend/base/default/images/avisverifies/Sceau_45en_GB.png +0 -0
- skin/frontend/base/default/images/avisverifies/Sceau_45en_US.png +0 -0
- skin/frontend/base/default/images/avisverifies/Sceau_45es_CO.png +0 -0
- skin/frontend/base/default/images/avisverifies/Sceau_45es_ES.png +0 -0
- skin/frontend/base/default/images/avisverifies/Sceau_45fr_FR.png +0 -0
- skin/frontend/base/default/images/avisverifies/Sceau_45it_IT.png +0 -0
- skin/frontend/base/default/images/avisverifies/Sceau_45nl_NL.png +0 -0
- skin/frontend/base/default/images/avisverifies/Sceau_45pt_PT.png +0 -0
- skin/frontend/base/default/images/avisverifies/avisverifies.png +0 -0
- skin/frontend/base/default/images/avisverifies/etoile0.png +0 -0
- skin/frontend/base/default/images/avisverifies/etoile1.png +0 -0
- skin/frontend/base/default/images/avisverifies/etoile2.png +0 -0
- skin/frontend/base/default/images/avisverifies/etoile3.png +0 -0
- skin/frontend/base/default/images/avisverifies/etoile4.png +0 -0
- skin/frontend/base/default/images/avisverifies/etoile5.png +0 -0
- skin/frontend/base/default/images/avisverifies/mini_etoile_empty.png +0 -0
- skin/frontend/base/default/images/avisverifies/mini_etoile_full.png +0 -0
- skin/frontend/base/default/images/avisverifies/pagination-loader.gif +0 -0
app/code/local/Netreviews/Avisverifies/Block/Adminhtml/Form/Edit/Form.php
CHANGED
@@ -10,7 +10,7 @@ class Netreviews_Avisverifies_Block_Adminhtml_Form_Edit_Form extends Mage_Adminh
|
|
10 |
'method' => 'post',
|
11 |
)
|
12 |
);
|
13 |
-
|
14 |
$form->setUseContainer(true);
|
15 |
$this->setForm($form);
|
16 |
return parent::_prepareForm();
|
10 |
'method' => 'post',
|
11 |
)
|
12 |
);
|
13 |
+
|
14 |
$form->setUseContainer(true);
|
15 |
$this->setForm($form);
|
16 |
return parent::_prepareForm();
|
app/code/local/Netreviews/Avisverifies/Block/Adminhtml/Form/Edit/Tabs.php
DELETED
@@ -1,22 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
class Netreviews_Avisverifies_Block_Adminhtml_Form_Edit_Tabs extends Mage_Adminhtml_Block_Widget_Tabs
|
3 |
-
{
|
4 |
-
public function __construct()
|
5 |
-
{
|
6 |
-
parent::__construct();
|
7 |
-
$this->setId('edit_home_tabs');
|
8 |
-
$this->setDestElementId('edit_form');
|
9 |
-
$this->setTitle(Mage::helper('avisverifies')->__('Verified Reviews Tabs'));
|
10 |
-
}
|
11 |
-
|
12 |
-
protected function _beforeToHtml()
|
13 |
-
{
|
14 |
-
$this->addTab('export', array(
|
15 |
-
'label' => Mage::helper('avisverifies')->__('Export'),
|
16 |
-
'title' => Mage::helper('avisverifies')->__('Export'),
|
17 |
-
'content' => $this->getLayout()->createBlock('avisverifies/adminhtml_form_edit_tab_export')->toHtml(),
|
18 |
-
));
|
19 |
-
|
20 |
-
return parent::_beforeToHtml();
|
21 |
-
}
|
22 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/Netreviews/Avisverifies/Block/Adminhtml/Form/{Edit/Tab → Export}/Export.php
RENAMED
@@ -1,5 +1,5 @@
|
|
1 |
<?php
|
2 |
-
class
|
3 |
{
|
4 |
protected function _prepareForm()
|
5 |
{
|
@@ -7,23 +7,91 @@ class Netreviews_Avisverifies_Block_Adminhtml_Form_Edit_Tab_Export extends Mage_
|
|
7 |
$form = new Varien_Data_Form();
|
8 |
$form->setHtmlIdPrefix('export_');
|
9 |
$form->setFieldNameSuffix('export');
|
10 |
-
$websites = Mage::app()->getWebsites();
|
11 |
|
12 |
-
foreach ($websites as $website) {
|
13 |
-
$arra_websites[] = array('value' => $website->getId(), 'label' => $website->getName());
|
14 |
-
}
|
15 |
-
|
16 |
$fieldset = $form->addFieldset('export', array(
|
17 |
'legend' => $helper->__('Export Settings'),
|
18 |
'class' => 'fieldset-wide',
|
19 |
));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
|
21 |
-
$
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
27 |
$fieldset->addField('csv', 'select', array(
|
28 |
'label' => Mage::helper('avisverifies')->__('Run Export CSV'),
|
29 |
'name' => 'csv',
|
@@ -37,7 +105,7 @@ class Netreviews_Avisverifies_Block_Adminhtml_Form_Edit_Tab_Export extends Mage_
|
|
37 |
'label' => Mage::helper('avisverifies')->__('No'),
|
38 |
),
|
39 |
),
|
40 |
-
));
|
41 |
|
42 |
$fieldset->addField('until', 'select', array(
|
43 |
'label' => Mage::helper('avisverifies')->__('Until'),
|
@@ -116,34 +184,7 @@ class Netreviews_Avisverifies_Block_Adminhtml_Form_Edit_Tab_Export extends Mage_
|
|
116 |
),
|
117 |
),
|
118 |
));
|
119 |
-
/*
|
120 |
-
$all_status = Mage::getModel('sales/order_status')->getResourceCollection()->getData();
|
121 |
-
foreach($all_status as $value){
|
122 |
-
$status[] = array('value'=>$value['status'],'label'=>$value['label']);
|
123 |
-
}
|
124 |
-
|
125 |
-
$fieldset->addField('order_status', 'multiselect', array(
|
126 |
-
'label' => Mage::helper('avisverifies')->__('Choose your order status ?'),
|
127 |
-
'name' => 'order_status[]',
|
128 |
-
'values' => $status
|
129 |
-
));
|
130 |
|
131 |
-
$fieldset->addField('csv_semicolon', 'select', array(
|
132 |
-
'label' => Mage::helper('avisverifies')->__('Use a semicolon CSV seperator ?'),
|
133 |
-
'name' => 'csv_semicolon',
|
134 |
-
'values' => array(
|
135 |
-
array(
|
136 |
-
'value' => ',',
|
137 |
-
'label' => Mage::helper('avisverifies')->__('No'),
|
138 |
-
),
|
139 |
-
array(
|
140 |
-
'value' => ';',
|
141 |
-
'label' => Mage::helper('avisverifies')->__('Yes'),
|
142 |
-
),
|
143 |
-
),
|
144 |
-
));
|
145 |
-
*/
|
146 |
-
|
147 |
if (Mage::registry('avisverifies')) {
|
148 |
$form->setValues(Mage::registry('avisverifies')->getData());
|
149 |
}
|
1 |
<?php
|
2 |
+
class Netreviews_Avisverifies_Block_Adminhtml_Form_Export_Export extends Mage_Adminhtml_Block_Widget_Form
|
3 |
{
|
4 |
protected function _prepareForm()
|
5 |
{
|
7 |
$form = new Varien_Data_Form();
|
8 |
$form->setHtmlIdPrefix('export_');
|
9 |
$form->setFieldNameSuffix('export');
|
|
|
10 |
|
|
|
|
|
|
|
|
|
11 |
$fieldset = $form->addFieldset('export', array(
|
12 |
'legend' => $helper->__('Export Settings'),
|
13 |
'class' => 'fieldset-wide',
|
14 |
));
|
15 |
+
|
16 |
+
// -----------------------------------------------------------------------------------------------------------
|
17 |
+
|
18 |
+
$websites = Mage::app()->getWebsites();
|
19 |
+
$arra_websites[10000] = array('value' => 10000, 'label' => Mage::helper('avisverifies')->__('All websites'));
|
20 |
+
foreach ($websites as $website) {
|
21 |
+
$arra_websites[$website->getId()] = array('value' => $website->getId(), 'label' => $website->getName());
|
22 |
+
}
|
23 |
|
24 |
+
$websiteCode = Mage::app()->getRequest()->getParam('website');
|
25 |
+
if ($websiteCode) {
|
26 |
+
$website = Mage::getModel('core/website')->load($websiteCode);
|
27 |
+
$websiteId = $website->getId();
|
28 |
+
//do your magic with $websiteId
|
29 |
+
$useProductSKU = $website->getConfig('avisverifies/extra/useProductSKU');
|
30 |
+
}
|
31 |
+
else {
|
32 |
+
$websiteId = 10000;
|
33 |
+
$website = Mage::getModel('core/website')->load('default');
|
34 |
+
$useProductSKU = $website->getConfig('avisverifies/extra/useProductSKU');
|
35 |
+
}
|
36 |
|
37 |
+
$fieldset->addField('websitetoexport', 'text', array(
|
38 |
+
'label' => Mage::helper('avisverifies')->__('Choosen website to export orders from'),
|
39 |
+
'name' => 'websitetoexport',
|
40 |
+
'value' => $arra_websites[$websiteId]['label'],
|
41 |
+
'readonly' => true,
|
42 |
+
));
|
43 |
+
$fieldset->addField('websiteIdHidden', 'hidden', array(
|
44 |
+
'required' => true,
|
45 |
+
'name' => 'websiteIdHidden',
|
46 |
+
'value' => $websiteId,
|
47 |
+
));
|
48 |
+
// -----------------------------------------------------------------------------------------------------------
|
49 |
+
|
50 |
+
$stores = Mage::app()->getStores();
|
51 |
+
$arra_stores[10000] = array('value' => 10000, 'label' => Mage::helper('avisverifies')->__('All Stores'));
|
52 |
+
foreach ($stores as $store) {
|
53 |
+
$arra_stores[$store->getId()] = array('value' => $store->getId(), 'label' => $store->getName());
|
54 |
+
}
|
55 |
+
|
56 |
+
$storeCode = Mage::app()->getRequest()->getParam('store');
|
57 |
+
if ($storeCode) {
|
58 |
+
$store = Mage::getModel('core/store')->load($storeCode);
|
59 |
+
$storeId = $store->getId();
|
60 |
+
$useProductSKU = $store->getConfig('avisverifies/extra/useProductSKU');
|
61 |
+
}
|
62 |
+
else {
|
63 |
+
$storeId = 10000;
|
64 |
+
}
|
65 |
+
|
66 |
+
$fieldset->addField('storetoexport', 'text', array(
|
67 |
+
'label' => Mage::helper('avisverifies')->__('Choosen store from the website above to export orders from'),
|
68 |
+
'name' => 'websitetoexport',
|
69 |
+
'value' => $arra_stores[$storeId]['label'],
|
70 |
+
'readonly' => true,
|
71 |
+
));
|
72 |
+
$fieldset->addField('storeIdHidden', 'hidden', array(
|
73 |
+
'required' => true,
|
74 |
+
'name' => 'storeIdHidden',
|
75 |
+
'value' => $storeId,
|
76 |
+
));
|
77 |
+
// -----------------------------------------------------------------------------------------------------------
|
78 |
+
|
79 |
+
$fieldset->addField('sku', 'select', array(
|
80 |
+
'label' => Mage::helper('avisverifies')->__('Use product sku'),
|
81 |
+
'name' => 'sku',
|
82 |
+
'value' => $useProductSKU,
|
83 |
+
'values' => array(
|
84 |
+
array(
|
85 |
+
'value' => 1,
|
86 |
+
'label' => Mage::helper('avisverifies')->__('Yes'),
|
87 |
+
),
|
88 |
+
array(
|
89 |
+
'value' => 0,
|
90 |
+
'label' => Mage::helper('avisverifies')->__('No'),
|
91 |
+
),
|
92 |
+
),
|
93 |
+
));
|
94 |
+
// -----------------------------------------------------------------------------------------------------------
|
95 |
$fieldset->addField('csv', 'select', array(
|
96 |
'label' => Mage::helper('avisverifies')->__('Run Export CSV'),
|
97 |
'name' => 'csv',
|
105 |
'label' => Mage::helper('avisverifies')->__('No'),
|
106 |
),
|
107 |
),
|
108 |
+
));
|
109 |
|
110 |
$fieldset->addField('until', 'select', array(
|
111 |
'label' => Mage::helper('avisverifies')->__('Until'),
|
184 |
),
|
185 |
),
|
186 |
));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
187 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
188 |
if (Mage::registry('avisverifies')) {
|
189 |
$form->setValues(Mage::registry('avisverifies')->getData());
|
190 |
}
|
app/code/local/Netreviews/Avisverifies/Block/Adminhtml/Form/Export/Tabs.php
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class Netreviews_Avisverifies_Block_Adminhtml_Form_Export_Tabs extends Mage_Adminhtml_Block_Widget_Tabs
|
3 |
+
{
|
4 |
+
public function __construct()
|
5 |
+
{
|
6 |
+
parent::__construct();
|
7 |
+
$this->setId('edit_home_tabs');
|
8 |
+
$this->setDestElementId('edit_form');
|
9 |
+
$this->setTitle(Mage::helper('avisverifies')->__('Verified Reviews Tabs'));
|
10 |
+
}
|
11 |
+
|
12 |
+
protected function _beforeToHtml()
|
13 |
+
{
|
14 |
+
$style = '<style>';
|
15 |
+
$style .= '#export_storetoexport{width: 274px !important;background-color: #DBDBDB;}';
|
16 |
+
$style .= '#export_websitetoexport{width: 274px !important;background-color: #DBDBDB;}';
|
17 |
+
$style .= '</style>';
|
18 |
+
$this->addTab('export', array(
|
19 |
+
'label' => Mage::helper('avisverifies')->__('Export'),
|
20 |
+
'title' => Mage::helper('avisverifies')->__('Export'),
|
21 |
+
'content' => $this->getLayout()->createBlock('adminhtml/system_config_switcher')->toHtml().
|
22 |
+
$this->getLayout()->createBlock('avisverifies/adminhtml_form_export_export')->toHtml().$style,
|
23 |
+
));
|
24 |
+
|
25 |
+
return parent::_beforeToHtml();
|
26 |
+
}
|
27 |
+
}
|
app/code/local/Netreviews/Avisverifies/Block/Adminhtml/Form/{Edit.php → Export/index.php}
RENAMED
@@ -1,5 +1,5 @@
|
|
1 |
<?php
|
2 |
-
class
|
3 |
{
|
4 |
public function __construct()
|
5 |
{
|
@@ -7,7 +7,6 @@ class Netreviews_Avisverifies_Block_Adminhtml_Form_Edit extends Mage_Adminhtml_B
|
|
7 |
$this->_blockGroup = 'avisverifies';
|
8 |
$this->_controller = 'adminhtml_form';
|
9 |
$version = Mage::getConfig()->getNode()->modules->Netreviews_Avisverifies->version;
|
10 |
-
$this->_headerText = Mage::helper('avisverifies')->__('Verified Reviews Form')
|
11 |
-
'<br> <small style="font-size:9px;">'.Mage::helper('avisverifies')->__('version').': '.$version.'</small>';
|
12 |
}
|
13 |
}
|
1 |
<?php
|
2 |
+
class Netreviews_Avisverifies_Block_Adminhtml_Form_Export_Index extends Mage_Adminhtml_Block_Widget_Form_Container
|
3 |
{
|
4 |
public function __construct()
|
5 |
{
|
7 |
$this->_blockGroup = 'avisverifies';
|
8 |
$this->_controller = 'adminhtml_form';
|
9 |
$version = Mage::getConfig()->getNode()->modules->Netreviews_Avisverifies->version;
|
10 |
+
$this->_headerText = Mage::helper('avisverifies')->__('Verified Reviews Form');
|
|
|
11 |
}
|
12 |
}
|
app/code/local/Netreviews/Avisverifies/Block/Catalog/Product/List.php
DELETED
@@ -1,42 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
class Netreviews_Avisverifies_Block_Catalog_Product_List extends Mage_Catalog_Block_Product_List
|
3 |
-
{
|
4 |
-
// function override changing $templateType = false to $templateType = 'short'.
|
5 |
-
public function getReviewsSummaryHtml(Mage_Catalog_Model_Product $product, $templateType = 'short',$displayIfNoReviews = false)
|
6 |
-
{
|
7 |
-
// load avis verifiee product
|
8 |
-
$id = $product->getId();
|
9 |
-
$_newProduct = Mage::getModel('avisverifies/product')->load($id);
|
10 |
-
// the $templateType fix is handled in block - review - helper code.
|
11 |
-
if ($this->_initReviewsHelperBlock()) {
|
12 |
-
return $this->_reviewsHelperBlock->getSummaryHtml($_newProduct, $templateType, $displayIfNoReviews);
|
13 |
-
}
|
14 |
-
return '';
|
15 |
-
}
|
16 |
-
|
17 |
-
// copy of the code for 1.3 older version compatibility
|
18 |
-
protected function _initReviewsHelperBlock()
|
19 |
-
{
|
20 |
-
if (!$this->_reviewsHelperBlock) {
|
21 |
-
if (!$this->isModuleEnabled('Mage_Review')) {
|
22 |
-
return false;
|
23 |
-
} else {
|
24 |
-
$this->_reviewsHelperBlock = $this->getLayout()->createBlock('review/helper');
|
25 |
-
}
|
26 |
-
}
|
27 |
-
return true;
|
28 |
-
}
|
29 |
-
|
30 |
-
protected function isModuleEnabled($moduleName)
|
31 |
-
{
|
32 |
-
if (!Mage::getConfig()->getNode('modules/' . $moduleName)) {
|
33 |
-
return false;
|
34 |
-
}
|
35 |
-
$isActive = Mage::getConfig()->getNode('modules/' . $moduleName . '/active');
|
36 |
-
if (!$isActive || !in_array((string)$isActive, array('true', '1'))) {
|
37 |
-
return false;
|
38 |
-
}
|
39 |
-
return true;
|
40 |
-
}
|
41 |
-
// copy of the code for 1.3 older version compatibility
|
42 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/Netreviews/Avisverifies/Block/Catalog/Product/View.php
DELETED
@@ -1,42 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
class Netreviews_Avisverifies_Block_Catalog_Product_View extends Mage_Catalog_Block_Product_View
|
3 |
-
{
|
4 |
-
// function override changing $templateType = false to $templateType = 'short'.
|
5 |
-
public function getReviewsSummaryHtml(Mage_Catalog_Model_Product $product, $templateType = 'short',$displayIfNoReviews = false)
|
6 |
-
{
|
7 |
-
// load avis verifiee product
|
8 |
-
$id = $product->getId();
|
9 |
-
$_newProduct = Mage::getModel('avisverifies/product')->load($id);
|
10 |
-
// the $templateType fix is handled in block - review - helper code.
|
11 |
-
if ($this->_initReviewsHelperBlock()) {
|
12 |
-
return $this->_reviewsHelperBlock->getSummaryHtml($_newProduct, $templateType, $displayIfNoReviews);
|
13 |
-
}
|
14 |
-
return '';
|
15 |
-
}
|
16 |
-
|
17 |
-
// copy of the code for 1.3 older version compatibility
|
18 |
-
protected function _initReviewsHelperBlock()
|
19 |
-
{
|
20 |
-
if (!$this->_reviewsHelperBlock) {
|
21 |
-
if (!$this->isModuleEnabled('Mage_Review')) {
|
22 |
-
return false;
|
23 |
-
} else {
|
24 |
-
$this->_reviewsHelperBlock = $this->getLayout()->createBlock('review/helper');
|
25 |
-
}
|
26 |
-
}
|
27 |
-
return true;
|
28 |
-
}
|
29 |
-
|
30 |
-
protected function isModuleEnabled($moduleName)
|
31 |
-
{
|
32 |
-
if (!Mage::getConfig()->getNode('modules/' . $moduleName)) {
|
33 |
-
return false;
|
34 |
-
}
|
35 |
-
$isActive = Mage::getConfig()->getNode('modules/' . $moduleName . '/active');
|
36 |
-
if (!$isActive || !in_array((string)$isActive, array('true', '1'))) {
|
37 |
-
return false;
|
38 |
-
}
|
39 |
-
return true;
|
40 |
-
}
|
41 |
-
// copy of the code for 1.3 older version compatibility
|
42 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/Netreviews/Avisverifies/Block/Entity/Detailed.php
DELETED
@@ -1,44 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
class Netreviews_Avisverifies_Block_Entity_Detailed extends Mage_Rating_Block_Entity_Detailed
|
3 |
-
{
|
4 |
-
public function __construct()
|
5 |
-
{
|
6 |
-
Mage_Core_Block_Template::__construct();
|
7 |
-
$this->setTemplate('rating/detailed.phtml');
|
8 |
-
$entityId = Mage::app()->getRequest()->getParam('id');
|
9 |
-
$this->NbAvis = Mage::getModel('avisverifies/reviews')->getNbAvis($entityId);
|
10 |
-
$this->Note = Mage::getModel('avisverifies/reviews')->getNote($entityId);
|
11 |
-
}
|
12 |
-
|
13 |
-
function _toHtml()
|
14 |
-
{
|
15 |
-
$entityId = Mage::app()->getRequest()->getParam('id');
|
16 |
-
if (intval($entityId) <= 0) {
|
17 |
-
return '';
|
18 |
-
}
|
19 |
-
|
20 |
-
$NbAvis = Mage::getModel('avisverifies/reviews')->getNbAvis($entityId);
|
21 |
-
$reviewsCount = Mage::getModel('avisverifies/reviews')
|
22 |
-
->getTotalReviews($entityId, true);
|
23 |
-
|
24 |
-
if (Mage::getStoreConfig('avisverifies/system/product') == 1) {
|
25 |
-
$this->setTemplate('avisverifies/review/helper/counter.phtml');
|
26 |
-
return Mage_Core_Block_Template::_toHtml();
|
27 |
-
}
|
28 |
-
|
29 |
-
$ratingCollection = Mage::getModel('rating/rating')
|
30 |
-
->getResourceCollection()
|
31 |
-
->addEntityFilter('product') # TOFIX
|
32 |
-
->setPositionOrder()
|
33 |
-
->setStoreFilter(Mage::app()->getStore()->getId())
|
34 |
-
->addRatingPerStoreName(Mage::app()->getStore()->getId())
|
35 |
-
->load();
|
36 |
-
|
37 |
-
if ($entityId) {
|
38 |
-
$ratingCollection->addEntitySummaryToItem($entityId, Mage::app()->getStore()->getId());
|
39 |
-
}
|
40 |
-
|
41 |
-
$this->assign('collection', $ratingCollection);
|
42 |
-
return Mage_Core_Block_Template::_toHtml();
|
43 |
-
}
|
44 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/Netreviews/Avisverifies/Block/Review/Helper.php
CHANGED
@@ -6,11 +6,45 @@ class Netreviews_Avisverifies_Block_Review_Helper extends Mage_Review_Block_Help
|
|
6 |
'default' => 'avisverifies/review/helper/summary.phtml',
|
7 |
'short' => 'avisverifies/review/helper/summary_short.phtml'
|
8 |
);
|
9 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
// add shorcut function for product id.
|
11 |
public function getProductId()
|
12 |
{
|
13 |
return $this->getProduct()->getId();
|
14 |
}
|
15 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
}
|
6 |
'default' => 'avisverifies/review/helper/summary.phtml',
|
7 |
'short' => 'avisverifies/review/helper/summary_short.phtml'
|
8 |
);
|
9 |
+
|
10 |
+
public function getSummaryHtml($product, $templateType, $displayIfNoReviews)
|
11 |
+
{
|
12 |
+
if (Netreviews_Avisverifies_Helper_Data::isActive()) {
|
13 |
+
// pick template among available
|
14 |
+
if (empty($this->_availableTemplates[$templateType])) {
|
15 |
+
$templateType = 'default';
|
16 |
+
}
|
17 |
+
$isProductList = Mage::registry('netreview_isProductlist');
|
18 |
+
if (!empty($isProductList)) {
|
19 |
+
$templateType = 'short';
|
20 |
+
}
|
21 |
+
// admin config
|
22 |
+
$isLightWidget = Mage::getStoreConfig('avisverifies/extra/productLightWidget');
|
23 |
+
if ($isLightWidget) {
|
24 |
+
$templateType = 'short';
|
25 |
+
}
|
26 |
+
|
27 |
+
$this->setProduct($product);
|
28 |
+
// we can add our own logic here
|
29 |
+
$this->setTemplate($this->_availableTemplates[$templateType]);
|
30 |
+
return $this->toHtml();
|
31 |
+
}
|
32 |
+
else {
|
33 |
+
return parent::getSummaryHtml($product, $templateType, $displayIfNoReviews);
|
34 |
+
}
|
35 |
+
}
|
36 |
+
|
37 |
// add shorcut function for product id.
|
38 |
public function getProductId()
|
39 |
{
|
40 |
return $this->getProduct()->getId();
|
41 |
}
|
42 |
|
43 |
+
public function getProductSKU()
|
44 |
+
{
|
45 |
+
return $this->getProduct()->getSku();
|
46 |
+
}
|
47 |
+
|
48 |
+
|
49 |
+
|
50 |
}
|
app/code/local/Netreviews/Avisverifies/Block/Review/Product/View.php
CHANGED
@@ -1,30 +1,15 @@
|
|
1 |
<?php
|
2 |
class Netreviews_Avisverifies_Block_Review_Product_View extends Mage_Review_Block_Product_View
|
3 |
{
|
4 |
-
// function override
|
5 |
-
public function getReviewsSummaryHtml(Mage_Catalog_Model_Product $product, $templateType =
|
6 |
{
|
7 |
-
|
8 |
-
|
9 |
-
$_newProduct = Mage::getModel('avisverifies/product')->load($id);
|
10 |
-
// the $templateType fix is handled in block - review - helper code.
|
11 |
-
if ($this->_initReviewsHelperBlock()) {
|
12 |
-
return $this->_reviewsHelperBlock->getSummaryHtml($_newProduct, $templateType, $displayIfNoReviews);
|
13 |
}
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
// copy of the code for older version compatibility
|
18 |
-
protected function _initReviewsHelperBlock()
|
19 |
-
{
|
20 |
-
if (!$this->_reviewsHelperBlock) {
|
21 |
-
if (!Mage::helper('catalog')->isModuleEnabled('Mage_Review')) {
|
22 |
-
return false;
|
23 |
-
} else {
|
24 |
-
$this->_reviewsHelperBlock = $this->getLayout()->createBlock('review/helper');
|
25 |
-
}
|
26 |
}
|
27 |
-
|
28 |
-
return true;
|
29 |
}
|
30 |
}
|
1 |
<?php
|
2 |
class Netreviews_Avisverifies_Block_Review_Product_View extends Mage_Review_Block_Product_View
|
3 |
{
|
4 |
+
// function override for review page widget
|
5 |
+
public function getReviewsSummaryHtml(Mage_Catalog_Model_Product $product, $templateType = false,$displayIfNoReviews = false)
|
6 |
{
|
7 |
+
if (Netreviews_Avisverifies_Helper_Data::isActive()) {
|
8 |
+
return $this->getLayout()->createBlock('review/helper')->getSummaryHtml($product, $templateType, $displayIfNoReviews);
|
|
|
|
|
|
|
|
|
9 |
}
|
10 |
+
else {
|
11 |
+
return parent::getReviewsSummaryHtml($product, $templateType,$displayIfNoReviews);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
}
|
13 |
+
|
|
|
14 |
}
|
15 |
}
|
app/code/local/Netreviews/Avisverifies/Helper/Data.php
CHANGED
@@ -5,7 +5,6 @@
|
|
5 |
*/
|
6 |
class Netreviews_Avisverifies_Helper_Data extends Mage_Core_Helper_Abstract{
|
7 |
|
8 |
-
public $shopId = 1;
|
9 |
public $idwebsite;
|
10 |
public $secretkey;
|
11 |
public $statusChoosen;
|
@@ -15,18 +14,17 @@ class Netreviews_Avisverifies_Helper_Data extends Mage_Core_Helper_Abstract{
|
|
15 |
public $forbiddenMailExtensions;
|
16 |
public $delay;
|
17 |
public $SHA1;
|
18 |
-
|
19 |
-
protected $config;
|
20 |
|
21 |
public function setup(array $config){
|
22 |
-
$this->config = $config;
|
23 |
// Magento Shop Info
|
24 |
-
$this->
|
|
|
|
|
|
|
25 |
// shop configuration
|
26 |
-
$magesel = Mage::getModel("core/
|
27 |
-
|
28 |
-
$this->secretkey = $magesel->getConfig('avisverifies/system/secretkey');
|
29 |
-
$this->enabledwebsite = $magesel->getConfig('avisverifies/system/enabledwebsite');//reglage par defaut
|
30 |
// order config.
|
31 |
$this->allowedProducts = $magesel->getConfig(strtolower('AVISVERIFIES/system/GETPRODREVIEWS')); //récupérer les avis produits ou non
|
32 |
$this->processChoosen = $magesel->getConfig(strtolower('AVISVERIFIES/system/PROCESSINIT')); //onorder or onorderstatuschange
|
@@ -38,6 +36,58 @@ class Netreviews_Avisverifies_Helper_Data extends Mage_Core_Helper_Abstract{
|
|
38 |
$this->SHA1 = SHA1($config['query'].$this->idwebsite.$this->secretkey);
|
39 |
}
|
40 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
41 |
// Check if the module is active
|
42 |
public static function isActive(){
|
43 |
return (Mage::getStoreConfig('avisverifies/system/enabledwebsite') == 1 &&
|
@@ -48,6 +98,37 @@ class Netreviews_Avisverifies_Helper_Data extends Mage_Core_Helper_Abstract{
|
|
48 |
public static function isDefaultDisplay() {
|
49 |
// defaultReviews / 1 to hide and 0 to show
|
50 |
// so we need to retun !defaultReviews
|
51 |
-
return !Mage::getStoreConfig('avisverifies/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
52 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
53 |
}
|
5 |
*/
|
6 |
class Netreviews_Avisverifies_Helper_Data extends Mage_Core_Helper_Abstract{
|
7 |
|
|
|
8 |
public $idwebsite;
|
9 |
public $secretkey;
|
10 |
public $statusChoosen;
|
14 |
public $forbiddenMailExtensions;
|
15 |
public $delay;
|
16 |
public $SHA1;
|
17 |
+
public $allShopIds;
|
|
|
18 |
|
19 |
public function setup(array $config){
|
|
|
20 |
// Magento Shop Info
|
21 |
+
$this->idwebsite = $config['idWebsite'];
|
22 |
+
$this->secretkey = static::getModuleSecretKey($config['idWebsite']);
|
23 |
+
$this->enabledwebsite = (empty($this->secretkey))? 0 : 1;
|
24 |
+
$this->allShopIds = static::getModuleActiveStoresIds($config['idWebsite']);
|
25 |
// shop configuration
|
26 |
+
$magesel = Mage::getModel("core/store")->load(reset($this->allShopIds));
|
27 |
+
|
|
|
|
|
28 |
// order config.
|
29 |
$this->allowedProducts = $magesel->getConfig(strtolower('AVISVERIFIES/system/GETPRODREVIEWS')); //récupérer les avis produits ou non
|
30 |
$this->processChoosen = $magesel->getConfig(strtolower('AVISVERIFIES/system/PROCESSINIT')); //onorder or onorderstatuschange
|
36 |
$this->SHA1 = SHA1($config['query'].$this->idwebsite.$this->secretkey);
|
37 |
}
|
38 |
|
39 |
+
// we are going to filter by idWebsite and is active
|
40 |
+
public static function getModuleActiveStoresIds($idWebsite){
|
41 |
+
// get config by id
|
42 |
+
// get config by id
|
43 |
+
$resource = Mage::getModel("core/config_data")->getCollection()
|
44 |
+
->addFieldToFilter('scope','stores')
|
45 |
+
->addFieldToFilter('value',$idWebsite);
|
46 |
+
// now filter again by is active
|
47 |
+
$scope_id = array();
|
48 |
+
foreach ($resource as $val) {
|
49 |
+
$scope_id[] = $val->getData('scope_id');
|
50 |
+
}
|
51 |
+
// now filter with the config set to enabledwebsite = 1
|
52 |
+
$resource = Mage::getModel("core/config_data")->getCollection()
|
53 |
+
->addFieldToFilter('scope','stores')
|
54 |
+
->addFieldToFilter('scope_id',array("in"=>$scope_id))
|
55 |
+
->addFieldToFilter('path','avisverifies/system/enabledwebsite')
|
56 |
+
->addFieldToFilter('value','1');
|
57 |
+
|
58 |
+
$usedSotersIds = array();
|
59 |
+
foreach ($resource as $val) {
|
60 |
+
$usedSotersIds[] = $val->getData('scope_id');
|
61 |
+
}
|
62 |
+
return $usedSotersIds;
|
63 |
+
}
|
64 |
+
|
65 |
+
public static function getModuleSecretKey($idWebsite){
|
66 |
+
// get config by id
|
67 |
+
$resource = Mage::getModel("core/config_data")->getCollection()
|
68 |
+
->addFieldToFilter('scope','stores')
|
69 |
+
->addFieldToFilter('value',$idWebsite);
|
70 |
+
// now filter again by is active
|
71 |
+
$scope_id = array();
|
72 |
+
foreach ($resource as $val) {
|
73 |
+
$scope_id[] = $val->getData('scope_id');
|
74 |
+
}
|
75 |
+
// now filter with the config set to enabledwebsite = 1
|
76 |
+
$resource = Mage::getModel("core/config_data")->getCollection()
|
77 |
+
->addFieldToFilter('scope','stores')
|
78 |
+
->addFieldToFilter('scope_id',array("in"=>$scope_id))
|
79 |
+
->addFieldToFilter('path','avisverifies/system/enabledwebsite')
|
80 |
+
->addFieldToFilter('value','1')->getFirstItem();
|
81 |
+
// use the first element to get the config
|
82 |
+
$resource = Mage::getModel("core/config_data")->getCollection()
|
83 |
+
->addFieldToFilter('scope','stores')
|
84 |
+
->addFieldToFilter('path','avisverifies/system/secretkey')
|
85 |
+
->addFieldToFilter('scope_id',$resource->getData('scope_id'))
|
86 |
+
->getFirstItem();
|
87 |
+
|
88 |
+
return $resource->getData('value');
|
89 |
+
}
|
90 |
+
|
91 |
// Check if the module is active
|
92 |
public static function isActive(){
|
93 |
return (Mage::getStoreConfig('avisverifies/system/enabledwebsite') == 1 &&
|
98 |
public static function isDefaultDisplay() {
|
99 |
// defaultReviews / 1 to hide and 0 to show
|
100 |
// so we need to retun !defaultReviews
|
101 |
+
return !Mage::getStoreConfig('avisverifies/extra/defaultReviews');
|
102 |
+
}
|
103 |
+
|
104 |
+
public static function addReviewToProductPage() {
|
105 |
+
// default false , change to true
|
106 |
+
return Mage::getStoreConfig('avisverifies/extra/addReviewToProductPage');
|
107 |
+
}
|
108 |
+
|
109 |
+
public static function hasjQuery() {
|
110 |
+
// default to No = 0
|
111 |
+
return (boolean)Mage::getStoreConfig('avisverifies/extra/hasjQuery');
|
112 |
}
|
113 |
+
|
114 |
+
public static function removeLinkWidget() {
|
115 |
+
$addReviewToProductPage = Mage::getStoreConfig('avisverifies/extra/addReviewToProductPage');
|
116 |
+
$pageType = Mage::app()->getRequest()->getControllerName();
|
117 |
+
$moduleName = Mage::app()->getRequest()->getModuleName();
|
118 |
+
|
119 |
+
if ($pageType == 'product' && $moduleName = 'product' && $addReviewToProductPage) {
|
120 |
+
return true;
|
121 |
+
}
|
122 |
+
elseif($pageType == 'review' && $moduleName = 'review') {
|
123 |
+
return true;
|
124 |
+
}
|
125 |
+
elseif($pageType == 'product' && $moduleName = 'review') {
|
126 |
+
return true;
|
127 |
+
}
|
128 |
+
else {
|
129 |
+
return false;
|
130 |
+
}
|
131 |
+
|
132 |
+
}
|
133 |
+
|
134 |
}
|
app/code/local/Netreviews/Avisverifies/Helper/Export.php
CHANGED
@@ -66,6 +66,7 @@ class Netreviews_Avisverifies_Helper_Export{
|
|
66 |
public function __construct(){
|
67 |
$this->resource = Mage::getSingleton('core/resource');
|
68 |
$this->collection = Mage::getResourceModel('sales/order_collection');
|
|
|
69 |
// check for sale order module version
|
70 |
$version = Mage::getConfig()->getModuleConfig("Mage_Sales")->version;
|
71 |
$version = $this->convertVersion($version);
|
@@ -86,22 +87,14 @@ class Netreviews_Avisverifies_Helper_Export{
|
|
86 |
$this->isProductExport = ($isProductExport == 1 || $isProductExport == 'yes');
|
87 |
}
|
88 |
|
89 |
-
public function createStoresIds($
|
90 |
-
$magesel = Mage::getModel('core/
|
91 |
$delay = $magesel->getConfig(strtolower('AVISVERIFIES/system/DELAY'));
|
92 |
$this->delay = (isset($delay))? $delay : 0;
|
93 |
-
|
94 |
-
$website = $magesel;
|
95 |
-
$this->idShop = trim($website->getCode());
|
96 |
-
|
97 |
-
$arrStores = array();
|
98 |
-
foreach ($website->getStores() as $key => $store) {
|
99 |
-
$arrStores[] = $store->getData('store_id');
|
100 |
-
}
|
101 |
$this->arrStoresIds = $arrStores;
|
102 |
-
|
103 |
// Force Parent Id
|
104 |
-
$this->forceParentId = ($magesel->getConfig(
|
|
|
105 |
$this->configuredWebsiteId = true ;
|
106 |
|
107 |
}
|
@@ -184,7 +177,11 @@ class Netreviews_Avisverifies_Helper_Export{
|
|
184 |
$collection->getSelect()->joinLeft(
|
185 |
array('url'=>"(SELECT * FROM {$resource->getTableName('core/url_rewrite')} GROUP BY product_id)"),
|
186 |
'product.product_id = url.product_id',
|
187 |
-
array('product.*'));
|
|
|
|
|
|
|
|
|
188 |
}
|
189 |
|
190 |
protected function querySelectFixVersion13(){
|
@@ -210,8 +207,14 @@ class Netreviews_Avisverifies_Helper_Export{
|
|
210 |
$collection->getSelect()->reset(Zend_Db_Select::COLUMNS)->columns($this->mainTable.'.entity_id')
|
211 |
->columns($this->mainTable.'.increment_id')
|
212 |
->columns("DATE_FORMAT({$this->mainTable}.created_at,'%d/%m/%Y %H:%i') as created_at")
|
213 |
-
->columns('product.
|
214 |
->columns('url.request_path as url')->columns('media.value as url_image');
|
|
|
|
|
|
|
|
|
|
|
|
|
215 |
if ($this->API) {
|
216 |
$collection->getSelect()
|
217 |
->columns($this->mainTable.'.av_flag')
|
@@ -343,7 +346,7 @@ class Netreviews_Avisverifies_Helper_Export{
|
|
343 |
$this->customer['prenom'] = utf8_decode($item['firstname']);
|
344 |
$this->customer['date'] = $item['created_at'];
|
345 |
$this->customer['delay'] = $this->delay;
|
346 |
-
$this->customer[
|
347 |
$this->customer['product_id'] = ($this->isProductExport)? $item['product_id'] : "";
|
348 |
$this->customer['product_name'] = ($this->isProductExport)? utf8_decode($item['name']) : "";
|
349 |
$this->customer['product_name'] = str_replace(",", " - ", $this->customer['product_name']);
|
@@ -374,6 +377,7 @@ class Netreviews_Avisverifies_Helper_Export{
|
|
374 |
// Get product parent id
|
375 |
$resource = $this->resource;
|
376 |
$readConnection = $resource->getConnection('core_read');
|
|
|
377 |
$table = $resource->getTableName('catalog/product_super_link');
|
378 |
$query = "SELECT * FROM $table";
|
379 |
$collection = $readConnection->fetchAll($query);
|
@@ -381,6 +385,15 @@ class Netreviews_Avisverifies_Helper_Export{
|
|
381 |
if (isset($this->mapProductId[$val['product_id']]))
|
382 |
$this->mapProductId[$val['product_id']] = (int) $val['parent_id'];
|
383 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
384 |
$tmp = $this->dataExport;
|
385 |
unset($tmp[0]); // 0 contain header info
|
386 |
// now loop over the array and change id to parent id.
|
@@ -397,12 +410,13 @@ class Netreviews_Avisverifies_Helper_Export{
|
|
397 |
}
|
398 |
|
399 |
protected function throwExecption(){
|
400 |
-
if ($this->isProductExport === null)
|
401 |
Mage::throwException('Please specify "exportStruct()" before creating items. ');
|
|
|
402 |
|
403 |
-
if ($this->configuredWebsiteId !== true)
|
404 |
Mage::throwException('Please specify "createStoresIds()" before creating items. ');
|
405 |
-
|
406 |
}
|
407 |
|
408 |
|
66 |
public function __construct(){
|
67 |
$this->resource = Mage::getSingleton('core/resource');
|
68 |
$this->collection = Mage::getResourceModel('sales/order_collection');
|
69 |
+
|
70 |
// check for sale order module version
|
71 |
$version = Mage::getConfig()->getModuleConfig("Mage_Sales")->version;
|
72 |
$version = $this->convertVersion($version);
|
87 |
$this->isProductExport = ($isProductExport == 1 || $isProductExport == 'yes');
|
88 |
}
|
89 |
|
90 |
+
public function createStoresIds($arrStores){
|
91 |
+
$magesel = Mage::getModel('core/store')->load(reset($arrStores));
|
92 |
$delay = $magesel->getConfig(strtolower('AVISVERIFIES/system/DELAY'));
|
93 |
$this->delay = (isset($delay))? $delay : 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
94 |
$this->arrStoresIds = $arrStores;
|
|
|
95 |
// Force Parent Id
|
96 |
+
$this->forceParentId = ($magesel->getConfig('avisverifies/extra/force_product_parent_id') == '1');
|
97 |
+
$this->useSKU = ($magesel->getConfig('avisverifies/extra/useProductSKU') == '1');
|
98 |
$this->configuredWebsiteId = true ;
|
99 |
|
100 |
}
|
177 |
$collection->getSelect()->joinLeft(
|
178 |
array('url'=>"(SELECT * FROM {$resource->getTableName('core/url_rewrite')} GROUP BY product_id)"),
|
179 |
'product.product_id = url.product_id',
|
180 |
+
array('product.*'));
|
181 |
+
$collection->getSelect()->joinLeft(
|
182 |
+
array('viewstore'=>$resource->getTableName('core/store')),
|
183 |
+
$this->mainTable.'.store_id = viewstore.store_id ',
|
184 |
+
array('viewstore.*'));
|
185 |
}
|
186 |
|
187 |
protected function querySelectFixVersion13(){
|
207 |
$collection->getSelect()->reset(Zend_Db_Select::COLUMNS)->columns($this->mainTable.'.entity_id')
|
208 |
->columns($this->mainTable.'.increment_id')
|
209 |
->columns("DATE_FORMAT({$this->mainTable}.created_at,'%d/%m/%Y %H:%i') as created_at")
|
210 |
+
->columns('product.name')->columns('viewstore.code AS id_shop')
|
211 |
->columns('url.request_path as url')->columns('media.value as url_image');
|
212 |
+
if ($this->useSKU) {
|
213 |
+
$collection->getSelect()->columns('product.sku as product_id');
|
214 |
+
}
|
215 |
+
else {
|
216 |
+
$collection->getSelect()->columns('product.product_id');
|
217 |
+
}
|
218 |
if ($this->API) {
|
219 |
$collection->getSelect()
|
220 |
->columns($this->mainTable.'.av_flag')
|
346 |
$this->customer['prenom'] = utf8_decode($item['firstname']);
|
347 |
$this->customer['date'] = $item['created_at'];
|
348 |
$this->customer['delay'] = $this->delay;
|
349 |
+
$this->customer['id_shop'] = $item['id_shop'];
|
350 |
$this->customer['product_id'] = ($this->isProductExport)? $item['product_id'] : "";
|
351 |
$this->customer['product_name'] = ($this->isProductExport)? utf8_decode($item['name']) : "";
|
352 |
$this->customer['product_name'] = str_replace(",", " - ", $this->customer['product_name']);
|
377 |
// Get product parent id
|
378 |
$resource = $this->resource;
|
379 |
$readConnection = $resource->getConnection('core_read');
|
380 |
+
// super link
|
381 |
$table = $resource->getTableName('catalog/product_super_link');
|
382 |
$query = "SELECT * FROM $table";
|
383 |
$collection = $readConnection->fetchAll($query);
|
385 |
if (isset($this->mapProductId[$val['product_id']]))
|
386 |
$this->mapProductId[$val['product_id']] = (int) $val['parent_id'];
|
387 |
}
|
388 |
+
// product link
|
389 |
+
$table = $resource->getTableName('catalog/product_link');
|
390 |
+
$query = "SELECT * FROM $table";
|
391 |
+
$collection = $readConnection->fetchAll($query);
|
392 |
+
foreach ($collection as $val) {
|
393 |
+
if (isset($this->mapProductId[$val['product_id']]))
|
394 |
+
$this->mapProductId[$val['product_id']] = (int) $val['linked_product_id'];
|
395 |
+
}
|
396 |
+
// continue algo
|
397 |
$tmp = $this->dataExport;
|
398 |
unset($tmp[0]); // 0 contain header info
|
399 |
// now loop over the array and change id to parent id.
|
410 |
}
|
411 |
|
412 |
protected function throwExecption(){
|
413 |
+
if ($this->isProductExport === null) {
|
414 |
Mage::throwException('Please specify "exportStruct()" before creating items. ');
|
415 |
+
}
|
416 |
|
417 |
+
if ($this->configuredWebsiteId !== true) {
|
418 |
Mage::throwException('Please specify "createStoresIds()" before creating items. ');
|
419 |
+
}
|
420 |
}
|
421 |
|
422 |
|
app/code/local/Netreviews/Avisverifies/Helper/Install.php
ADDED
@@ -0,0 +1,131 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class Netreviews_Avisverifies_Helper_Install {
|
3 |
+
|
4 |
+
|
5 |
+
public static function checkOrder($orderId){
|
6 |
+
try {
|
7 |
+
return static::_checkOrder($orderId);
|
8 |
+
} catch (Exception $exc) {
|
9 |
+
// do nothing
|
10 |
+
return array();
|
11 |
+
}
|
12 |
+
}
|
13 |
+
|
14 |
+
protected static function _checkOrder($orderId) {
|
15 |
+
$resource = Mage::getSingleton('core/resource');
|
16 |
+
$read = $resource->getConnection('core_read');
|
17 |
+
$orderId = (is_null($orderId))? NULL : (int) stripcslashes(urlencode($orderId));
|
18 |
+
$table3 = $resource->getTableName('sales/order');
|
19 |
+
$checkOrders = array();
|
20 |
+
if ($orderId) {
|
21 |
+
$table4 = $resource->getTableName('sales/order_item');
|
22 |
+
$query = " SELECT "
|
23 |
+
. "`t3`.`increment_id`,`t4`.`item_id`, `t4`.`order_id`, `t4`.`parent_item_id`,"
|
24 |
+
. " `t4`.`quote_item_id`, `t4`.`store_id`, `t4`.`created_at`, `t4`.`updated_at`, `t4`.`product_id`,"
|
25 |
+
. " `t4`.`product_type`, `t4`.`is_virtual`, `t4`.`sku`, `t4`.`name` "
|
26 |
+
. " FROM $table4 t4 LEFT JOIN $table3 t3 ON t3.entity_id = t4.order_id "
|
27 |
+
. " WHERE t3.increment_id = :orderId ";
|
28 |
+
$bind = array('orderId' => $orderId);
|
29 |
+
return $read->query($query, $bind)->fetchAll();
|
30 |
+
}
|
31 |
+
}
|
32 |
+
|
33 |
+
public static function flagAll(){
|
34 |
+
try {
|
35 |
+
static::_flagAll();
|
36 |
+
} catch (Exception $exc) {
|
37 |
+
// do nothing
|
38 |
+
}
|
39 |
+
}
|
40 |
+
|
41 |
+
protected static function _flagAll(){
|
42 |
+
$resource = Mage::getSingleton('core/resource');
|
43 |
+
$write = $resource->getConnection('core_write');
|
44 |
+
$order = $resource->getTableName('sales/order');
|
45 |
+
$write->query("UPDATE `{$order}` SET `av_flag` = 1;");
|
46 |
+
}
|
47 |
+
|
48 |
+
public static function addFields(){
|
49 |
+
try {
|
50 |
+
static::_addFields();
|
51 |
+
} catch (Exception $exc) {
|
52 |
+
// do nothing
|
53 |
+
}
|
54 |
+
}
|
55 |
+
|
56 |
+
protected static function _addFields(){
|
57 |
+
$resource = Mage::getSingleton('core/resource');
|
58 |
+
$write = $resource->getConnection('core_write');
|
59 |
+
$read = $resource->getConnection('core_read');
|
60 |
+
$order = $resource->getTableName('sales/order');
|
61 |
+
|
62 |
+
// Flag
|
63 |
+
$avFlag = $read->query('SELECT COUNT(*) as flag
|
64 |
+
FROM INFORMATION_SCHEMA.COLUMNS
|
65 |
+
WHERE table_name = "'.$order.'"
|
66 |
+
AND table_schema = DATABASE()
|
67 |
+
AND column_name = "av_flag"')->fetchAll();
|
68 |
+
$avFlag = $avFlag[0]['flag'];
|
69 |
+
if ($avFlag == 0) {
|
70 |
+
$write->query("ALTER TABLE `{$order}` add av_flag tinyint default 0;");
|
71 |
+
$write->query("UPDATE `{$order}` SET `av_flag` = 1;");
|
72 |
+
}
|
73 |
+
else {
|
74 |
+
$write->query("UPDATE `{$order}` SET `av_flag` = 1;");
|
75 |
+
}
|
76 |
+
// horodate
|
77 |
+
$horodate = $read->query('SELECT COUNT(*) as horodate
|
78 |
+
FROM INFORMATION_SCHEMA.COLUMNS
|
79 |
+
WHERE table_name = "'.$order.'"
|
80 |
+
AND table_schema = DATABASE()
|
81 |
+
AND column_name = "av_horodate_get"')->fetchAll();
|
82 |
+
$horodate = $horodate[0]['horodate'];
|
83 |
+
if ($horodate == 0) {
|
84 |
+
$write->query("ALTER TABLE `{$order}` add av_horodate_get varchar(32);");
|
85 |
+
}
|
86 |
+
|
87 |
+
}
|
88 |
+
|
89 |
+
public static function createTables(){
|
90 |
+
try {
|
91 |
+
static::_createTables();
|
92 |
+
} catch (Exception $exc) {
|
93 |
+
// do nothing
|
94 |
+
}
|
95 |
+
}
|
96 |
+
|
97 |
+
public static function _createTables(){
|
98 |
+
$resource = Mage::getSingleton('core/resource');
|
99 |
+
$write = $resource->getConnection('core_write');
|
100 |
+
// Install Tables, RUN Query.
|
101 |
+
$write->query("
|
102 |
+
CREATE TABLE IF NOT EXISTS `{$resource->getTableName('avisverifies_products_reviews')}` (
|
103 |
+
`id_product_av` varchar(36) NOT NULL,
|
104 |
+
`ref_product` varchar(20) NOT NULL,
|
105 |
+
`rate` varchar(5) NOT NULL,
|
106 |
+
`review` text NOT NULL,
|
107 |
+
`customer_name` varchar(30) NOT NULL,
|
108 |
+
`horodate` varchar(32) NOT NULL,
|
109 |
+
`discussion` text,
|
110 |
+
`lang` varchar(5),
|
111 |
+
`website_id` smallint(5) not null default 0,
|
112 |
+
PRIMARY KEY (`id_product_av`)
|
113 |
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
114 |
+
");
|
115 |
+
$write->query("
|
116 |
+
CREATE TABLE IF NOT EXISTS `{$resource->getTableName('avisverifies_products_average')}` (
|
117 |
+
`id_product_av` varchar(36) NOT NULL,
|
118 |
+
`ref_product` varchar(20) NOT NULL,
|
119 |
+
`rate` varchar(5) NOT NULL,
|
120 |
+
`nb_reviews` int(10) NOT NULL,
|
121 |
+
`horodate_update` varchar(32) NOT NULL,
|
122 |
+
`id_lang` varchar(5) DEFAULT NULL,
|
123 |
+
`website_id` smallint(5) not null default 0,
|
124 |
+
PRIMARY KEY (`ref_product`)
|
125 |
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
126 |
+
");
|
127 |
+
|
128 |
+
}
|
129 |
+
|
130 |
+
}
|
131 |
+
|
app/code/local/Netreviews/Avisverifies/Model/Observers/Product/List.php
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class Netreviews_Avisverifies_Model_Observers_Product_List {
|
3 |
+
public function updateProductRatingSummary(Varien_Event_Observer $observer){
|
4 |
+
if (Netreviews_Avisverifies_Helper_Data::isActive()) {
|
5 |
+
Mage::register('netreview_isProductlist',true);
|
6 |
+
$_productCollection = $observer->getData('collection');
|
7 |
+
foreach ($_productCollection as $_product) {
|
8 |
+
$_product->setData('rating_summary',true);
|
9 |
+
}
|
10 |
+
}
|
11 |
+
}
|
12 |
+
}
|
13 |
+
|
app/code/local/Netreviews/Avisverifies/Model/Observers/System.php
ADDED
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Netreviews_Avisverifies_Model_Observers_System {
|
4 |
+
|
5 |
+
public function save(Varien_Event_Observer $observer) {
|
6 |
+
|
7 |
+
$curWebsite = Mage::app()->getRequest()->getParam('website');
|
8 |
+
$curStore = Mage::app()->getRequest()->getParam('store');
|
9 |
+
|
10 |
+
$storeModel = Mage::getSingleton('adminhtml/system_store');
|
11 |
+
$mageselc = new Mage_Core_Model_Config();
|
12 |
+
$POST = Mage::app()->getRequest()->getPost();
|
13 |
+
$secretkey = $POST['groups']['system']['fields']['secretkey']['value'];
|
14 |
+
$idwebsite = $POST['groups']['system']['fields']['idwebsite']['value'];
|
15 |
+
$enabledwebsite = $POST['groups']['system']['fields']['enabledwebsite']['value'];
|
16 |
+
$defaultReviews = $POST['groups']['extra']['fields']['defaultReviews']['value'];
|
17 |
+
$forceParentIds = $POST['groups']['extra']['fields']['force_product_parent_id']['value'];
|
18 |
+
$addReviewToProductPage = $POST['groups']['extra']['fields']['addReviewToProductPage']['value'];
|
19 |
+
$useProductSKU = $POST['groups']['extra']['fields']['useProductSKU']['value'];
|
20 |
+
$productLightWidget = $POST['groups']['extra']['fields']['productLightWidget']['value'];
|
21 |
+
$hasjQuery = $POST['groups']['extra']['fields']['hasjQuery']['value'];
|
22 |
+
|
23 |
+
foreach ($storeModel->getWebsiteCollection() as $website) {
|
24 |
+
if (is_null($curWebsite) || ($curWebsite == $website->getCode() && is_null($curStore))) {
|
25 |
+
$mageselc->saveConfig('avisverifies/system/secretkey',$secretkey,'websites',$website->getId());
|
26 |
+
$mageselc->saveConfig('avisverifies/system/idwebsite',$idwebsite,'websites',$website->getId());
|
27 |
+
$mageselc->saveConfig('avisverifies/system/enabledwebsite',$enabledwebsite,'websites',$website->getId());
|
28 |
+
$mageselc->saveConfig('avisverifies/extra/defaultReviews',$defaultReviews,'websites',$website->getId());
|
29 |
+
$mageselc->saveConfig('avisverifies/extra/force_product_parent_id',$forceParentIds,'websites',$website->getId());
|
30 |
+
$mageselc->saveConfig('avisverifies/extra/addReviewToProductPage',$addReviewToProductPage,'websites',$website->getId());
|
31 |
+
$mageselc->saveConfig('avisverifies/extra/useProductSKU',$useProductSKU,'websites',$website->getId());
|
32 |
+
$mageselc->saveConfig('avisverifies/extra/productLightWidget',$productLightWidget,'websites',$website->getId());
|
33 |
+
$mageselc->saveConfig('avisverifies/extra/hasjQuery',$hasjQuery,'websites',$website->getId());
|
34 |
+
}
|
35 |
+
}
|
36 |
+
|
37 |
+
foreach ($storeModel->getStoreCollection() as $store) {
|
38 |
+
if (is_null($curStore) || $curStore == $store->getCode()) {
|
39 |
+
$mageselc->saveConfig('avisverifies/system/secretkey',$secretkey,'stores',$store->getId());
|
40 |
+
$mageselc->saveConfig('avisverifies/system/idwebsite',$idwebsite,'stores',$store->getId());
|
41 |
+
$mageselc->saveConfig('avisverifies/system/enabledwebsite',$enabledwebsite,'stores',$store->getId());
|
42 |
+
$mageselc->saveConfig('avisverifies/extra/defaultReviews',$defaultReviews,'stores',$store->getId());
|
43 |
+
$mageselc->saveConfig('avisverifies/extra/force_product_parent_id',$forceParentIds,'stores',$store->getId());
|
44 |
+
$mageselc->saveConfig('avisverifies/extra/addReviewToProductPage',$addReviewToProductPage,'stores',$store->getId());
|
45 |
+
$mageselc->saveConfig('avisverifies/extra/useProductSKU',$useProductSKU,'stores',$store->getId());
|
46 |
+
$mageselc->saveConfig('avisverifies/extra/productLightWidget',$productLightWidget,'stores',$store->getId());
|
47 |
+
$mageselc->saveConfig('avisverifies/extra/hasjQuery',$hasjQuery,'stores',$store->getId());
|
48 |
+
}
|
49 |
+
}
|
50 |
+
|
51 |
+
// first loop on the disactive stores, an disactive store can not be related to other stores.
|
52 |
+
$resource = Mage::getModel("core/config_data")->getCollection()
|
53 |
+
->addFieldToFilter('scope','stores')
|
54 |
+
->addFieldToFilter('path','avisverifies/system/enabledwebsite')
|
55 |
+
->addFieldToFilter('value','0');
|
56 |
+
foreach ($resource as $store) {
|
57 |
+
$mageselc->saveConfig('avisverifies/extra/relatedstoreslist','','stores',$store->getData('scope_id'));
|
58 |
+
}
|
59 |
+
// i need to get all the idWebsite from database and then update accordingly
|
60 |
+
$resource = Mage::getModel("core/config_data")->getCollection()
|
61 |
+
->addFieldToFilter('path','avisverifies/system/idwebsite');
|
62 |
+
$allIdwebsite = array();
|
63 |
+
foreach ($resource as $value) {
|
64 |
+
$allIdwebsite[$value->getData('value')] = 1;
|
65 |
+
}
|
66 |
+
$allIdwebsite = array_keys($allIdwebsite);
|
67 |
+
foreach ($allIdwebsite as $idwebsite) {
|
68 |
+
// now we get the related stores list
|
69 |
+
$relatedstoreslist = Netreviews_Avisverifies_Helper_Data::getModuleActiveStoresIds($idwebsite);
|
70 |
+
foreach ($relatedstoreslist as $storeId) {
|
71 |
+
$mageselc->saveConfig('avisverifies/extra/relatedstoreslist',implode(';',$relatedstoreslist),'stores',$storeId);
|
72 |
+
}
|
73 |
+
}
|
74 |
+
}
|
75 |
+
}
|
76 |
+
|
app/code/local/Netreviews/Avisverifies/Model/Reviews.php
CHANGED
@@ -1,7 +1,8 @@
|
|
1 |
<?php // Our Custome Class . different then Magento Review class.
|
2 |
class Netreviews_Avisverifies_Model_Reviews extends Mage_Core_Model_Abstract{
|
3 |
|
4 |
-
public $idProduct = null;
|
|
|
5 |
public $page;
|
6 |
|
7 |
protected $idWebsite;
|
@@ -9,20 +10,38 @@ class Netreviews_Avisverifies_Model_Reviews extends Mage_Core_Model_Abstract{
|
|
9 |
|
10 |
public function _construct() {
|
11 |
$this->_init('avisverifies/reviews');
|
12 |
-
$
|
|
|
|
|
13 |
$this->limit = 5;
|
14 |
$this->page = 1;
|
15 |
}
|
16 |
|
17 |
protected function throwException() {
|
18 |
-
if ($this->idProduct === null)
|
19 |
-
|
|
|
|
|
|
|
|
|
20 |
}
|
21 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
public function getReviewsCount() {
|
23 |
$this->throwException();
|
24 |
-
$
|
25 |
-
$active = $magesel->getConfig(strtolower('AVISVERIFIES/system/GETPRODREVIEWS')); //récupérer les avis produits ou non
|
26 |
|
27 |
$stats = $this->getStatsProduct();
|
28 |
if (($stats !== NULL) && ($stats->getData('nb_reviews') > 1 && $active == 'yes')) {
|
@@ -35,39 +54,54 @@ class Netreviews_Avisverifies_Model_Reviews extends Mage_Core_Model_Abstract{
|
|
35 |
|
36 |
public function getStatsProduct() {
|
37 |
$this->throwException();
|
38 |
-
|
39 |
-
|
40 |
-
->addFieldToFilter('
|
41 |
-
|
|
|
|
|
|
|
|
|
|
|
42 |
}
|
43 |
|
44 |
public function getProductReviews() {
|
45 |
$this->throwException();
|
46 |
-
|
47 |
-
|
48 |
-
->addFieldToFilter('
|
|
|
49 |
->addAttributeToSort('horodate','desc')
|
50 |
->setPageSize($this->limit)
|
51 |
->setCurPage($this->page);
|
52 |
-
|
53 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
54 |
return array();
|
55 |
-
|
56 |
-
return $collection;
|
57 |
}
|
58 |
|
59 |
public function getNbAvis() {
|
60 |
$this->throwException();
|
61 |
-
|
62 |
-
|
63 |
-
->addFieldToFilter('
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
|
|
|
|
|
|
|
|
69 |
return NULL;
|
70 |
-
}
|
71 |
}
|
72 |
|
73 |
// for Backward compatibility.
|
@@ -77,15 +111,19 @@ class Netreviews_Avisverifies_Model_Reviews extends Mage_Core_Model_Abstract{
|
|
77 |
|
78 |
public function getReviewNote() {
|
79 |
$this->throwException();
|
80 |
-
|
81 |
-
|
82 |
-
->addFieldToFilter('
|
|
|
83 |
->addAttributeToSort('horodate','desc')
|
84 |
;
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
|
|
|
|
|
|
89 |
}
|
90 |
|
91 |
public function discussion($discussion,$review){
|
1 |
<?php // Our Custome Class . different then Magento Review class.
|
2 |
class Netreviews_Avisverifies_Model_Reviews extends Mage_Core_Model_Abstract{
|
3 |
|
4 |
+
public $idProduct = null;
|
5 |
+
public $skuProduct = '';
|
6 |
public $page;
|
7 |
|
8 |
protected $idWebsite;
|
10 |
|
11 |
public function _construct() {
|
12 |
$this->_init('avisverifies/reviews');
|
13 |
+
$string = Mage::getStoreConfig('avisverifies/extra/relatedstoreslist');
|
14 |
+
$string = (empty($string))? '' : $string;
|
15 |
+
$this->idWebsite = explode(';', $string);
|
16 |
$this->limit = 5;
|
17 |
$this->page = 1;
|
18 |
}
|
19 |
|
20 |
protected function throwException() {
|
21 |
+
if ($this->idProduct === null) {
|
22 |
+
echo '<!-- Please specify: "idProduct" -> ($your_object->idProduct = $idProduct). -->';
|
23 |
+
}
|
24 |
+
if (empty($this->skuProduct)) {
|
25 |
+
$this->skuAndId();
|
26 |
+
}
|
27 |
}
|
28 |
+
|
29 |
+
protected function skuAndId(){
|
30 |
+
if (is_numeric($this->idProduct)) {
|
31 |
+
$product = Mage::getModel('catalog/product')->load($this->idProduct);
|
32 |
+
$this->idProduct = $product->getId();
|
33 |
+
$this->skuProduct = $product->getSku();
|
34 |
+
}
|
35 |
+
else {
|
36 |
+
$product = Mage::getModel('catalog/product')->loadByAttribute('sku', $this->idProduct);
|
37 |
+
$this->idProduct = $product->getId();
|
38 |
+
$this->skuProduct = $product->getSku();
|
39 |
+
}
|
40 |
+
}
|
41 |
+
|
42 |
public function getReviewsCount() {
|
43 |
$this->throwException();
|
44 |
+
$active = Mage::getStoreConfig(strtolower('AVISVERIFIES/system/GETPRODREVIEWS')); //récupérer les avis produits ou non
|
|
|
45 |
|
46 |
$stats = $this->getStatsProduct();
|
47 |
if (($stats !== NULL) && ($stats->getData('nb_reviews') > 1 && $active == 'yes')) {
|
54 |
|
55 |
public function getStatsProduct() {
|
56 |
$this->throwException();
|
57 |
+
try {
|
58 |
+
$collection = Mage::getModel('avisverifies/average')->getCollection()
|
59 |
+
->addFieldToFilter('website_id',array("in"=>$this->idWebsite))
|
60 |
+
->addFieldToFilter('ref_product',array("in"=>array($this->idProduct,$this->skuProduct)));
|
61 |
+
return ($collection)? $collection->getFirstItem() : Null;
|
62 |
+
} catch (Exception $ex) {
|
63 |
+
return NULL;
|
64 |
+
}
|
65 |
+
|
66 |
}
|
67 |
|
68 |
public function getProductReviews() {
|
69 |
$this->throwException();
|
70 |
+
try {
|
71 |
+
$collection = Mage::getModel('avisverifies/reviews')->getCollection()
|
72 |
+
->addFieldToFilter('website_id',array("in"=>$this->idWebsite))
|
73 |
+
->addFieldToFilter('ref_product',array("in"=>array($this->idProduct,$this->skuProduct)))
|
74 |
->addAttributeToSort('horodate','desc')
|
75 |
->setPageSize($this->limit)
|
76 |
->setCurPage($this->page);
|
77 |
+
$maxPages = $collection->getLastPageNumber();
|
78 |
+
if ($this->page > $maxPages) {
|
79 |
+
return array();
|
80 |
+
}
|
81 |
+
else {
|
82 |
+
return $collection;
|
83 |
+
}
|
84 |
+
} catch (Exception $ex) {
|
85 |
return array();
|
86 |
+
}
|
|
|
87 |
}
|
88 |
|
89 |
public function getNbAvis() {
|
90 |
$this->throwException();
|
91 |
+
try {
|
92 |
+
$collection = Mage::getModel('avisverifies/average')->getCollection()
|
93 |
+
->addFieldToFilter('website_id',array("in"=>$this->idWebsite))
|
94 |
+
->addFieldToFilter('ref_product',array("in"=>array($this->idProduct,$this->skuProduct)));
|
95 |
+
if ($collection) {
|
96 |
+
$first = $collection->getFirstItem();
|
97 |
+
return $first->getData('nb_reviews');
|
98 |
+
}
|
99 |
+
else {
|
100 |
+
return NULL;
|
101 |
+
}
|
102 |
+
} catch (Exception $ex) {
|
103 |
return NULL;
|
104 |
+
}
|
105 |
}
|
106 |
|
107 |
// for Backward compatibility.
|
111 |
|
112 |
public function getReviewNote() {
|
113 |
$this->throwException();
|
114 |
+
try {
|
115 |
+
$collection = Mage::getModel('avisverifies/reviews')->getCollection()
|
116 |
+
->addFieldToFilter('website_id',array("in"=>$this->idWebsite))
|
117 |
+
->addFieldToFilter('ref_product',array("in"=>array($this->idProduct,$this->skuProduct)))
|
118 |
->addAttributeToSort('horodate','desc')
|
119 |
;
|
120 |
+
//get the first item of the collection (load will be called automatically)
|
121 |
+
$first = $collection->getFirstItem();
|
122 |
+
//look at the data in the first item
|
123 |
+
return $first->getData('rate');
|
124 |
+
} catch (Exception $ex) {
|
125 |
+
return NULL;
|
126 |
+
}
|
127 |
}
|
128 |
|
129 |
public function discussion($discussion,$review){
|
app/code/local/Netreviews/Avisverifies/controllers/Adminhtml/AvisverifiesController.php
CHANGED
@@ -10,10 +10,10 @@ class Netreviews_Avisverifies_Adminhtml_AvisverifiesController extends Mage_Admi
|
|
10 |
$this->_addBreadcrumb(Mage::helper('avisverifies')->__('Form'), Mage::helper('avisverifies')->__('Form'));
|
11 |
|
12 |
// add block to layout
|
13 |
-
$block = $this->getLayout()->createBlock('avisverifies/
|
14 |
$this->getLayout()->getBlock('content')->append($block);
|
15 |
|
16 |
-
$block = $this->getLayout()->createBlock('avisverifies/
|
17 |
$this->getLayout()->getBlock('left')->append($block);
|
18 |
|
19 |
$this->renderLayout();
|
@@ -23,6 +23,33 @@ class Netreviews_Avisverifies_Adminhtml_AvisverifiesController extends Mage_Admi
|
|
23 |
$result = $this->getRequest()->getParams();
|
24 |
$isExport = (isset($result['export']) && isset($result['export']['csv']) && $result['export']['csv'] == 1);
|
25 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
if ($isExport) {
|
27 |
$type = substr($result['export']['until'], -1);
|
28 |
// casting to int, for sql injection.
|
@@ -30,16 +57,9 @@ class Netreviews_Avisverifies_Adminhtml_AvisverifiesController extends Mage_Admi
|
|
30 |
$type = ($type == "m")? 'MONTH' : 'WEEK';
|
31 |
$from = "DATE_SUB(CURDATE(), INTERVAL $period $type)";
|
32 |
$to = "DATE_ADD(curdate(),INTERVAL 1 DAY)";
|
33 |
-
//Liste des stores appartenant au website choisi par le user
|
34 |
-
|
35 |
-
$websitetoexport = $result['export']['websitetoexport'];
|
36 |
$helperData = Mage::helper('avisverifies/Export');
|
37 |
-
|
38 |
-
$helperData->createStoresIds($websitetoexport);
|
39 |
$helperData->exportStruct($result['export']['product']);
|
40 |
-
|
41 |
-
// Mage::getSingleton('core/session')->setExportSeperator($result['export']['csv_semicolon']);
|
42 |
-
// $status = ($result['export']['order_status'] == 'all')? array() : $result['export']['order_status'];
|
43 |
//construction du CSV
|
44 |
$helperData->createExportCSV($from,$to);
|
45 |
$content = $helperData->getCSVFile();
|
@@ -52,8 +72,32 @@ class Netreviews_Avisverifies_Adminhtml_AvisverifiesController extends Mage_Admi
|
|
52 |
}
|
53 |
}
|
54 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
55 |
public function checkInstallationAction() {
|
56 |
|
|
|
|
|
|
|
57 |
$resource = Mage::getSingleton('core/resource');
|
58 |
$read = $resource->getConnection('core_read');
|
59 |
$table = $resource->getTableName('avisverifies_products_reviews');
|
@@ -83,17 +127,20 @@ class Netreviews_Avisverifies_Adminhtml_AvisverifiesController extends Mage_Admi
|
|
83 |
}
|
84 |
}
|
85 |
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
90 |
|
91 |
-
## added orders missing field. code is commented to be used in case of need. ##
|
92 |
-
// $write = $resource->getConnection('core_write');
|
93 |
-
// $write->query("ALTER TABLE `{$table3}` add av_horodate_get varchar(32);");
|
94 |
-
// $write->query("ALTER TABLE `{$table3}` add av_flag tinyint default 0;");
|
95 |
-
// $write->query("UPDATE `{$table3}` SET `av_flag` = 1;");
|
96 |
-
## added orders missing field. code is commented to be used in case of need. ##
|
97 |
|
98 |
if ($orders['AV_Flag']) {
|
99 |
$res = $read->query("SELECT COUNT(*) FROM $table3 WHERE av_flag = 1")->fetch();
|
@@ -102,24 +149,17 @@ class Netreviews_Avisverifies_Adminhtml_AvisverifiesController extends Mage_Admi
|
|
102 |
$count['Order_Set_Flag_0'] = $res['COUNT(*)'];
|
103 |
}
|
104 |
|
105 |
-
|
106 |
-
$orderId = (isset($_GET['checkOrders']))? (int) $_GET['checkOrders'] : NULL;
|
107 |
-
$orderId = (is_null($orderId))? NULL : (int) stripcslashes(urlencode($orderId));
|
108 |
-
$checkOrders = array();
|
109 |
-
if ($orderId) {
|
110 |
-
$table4 = $resource->getTableName('sales/order_item');
|
111 |
-
$query = " SELECT "
|
112 |
-
. "`t3`.`increment_id`,`t4`.`item_id`, `t4`.`order_id`, `t4`.`parent_item_id`,"
|
113 |
-
. " `t4`.`quote_item_id`, `t4`.`store_id`, `t4`.`created_at`, `t4`.`updated_at`, `t4`.`product_id`,"
|
114 |
-
. " `t4`.`product_type`, `t4`.`is_virtual`, `t4`.`sku`, `t4`.`name` "
|
115 |
-
. " FROM $table4 t4 LEFT JOIN $table3 t3 ON t3.entity_id = t4.order_id "
|
116 |
-
. " WHERE t3.increment_id = :orderId ";
|
117 |
-
$bind = array('orderId' => $orderId);
|
118 |
-
$checkOrders = $read->query($query, $bind)->fetchAll();
|
119 |
-
}
|
120 |
-
|
121 |
-
## check sales_flat_order_item. code is commented to be used in case of need. ##
|
122 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
123 |
$this->loadLayout();
|
124 |
$layout = $this->getLayout();
|
125 |
|
@@ -127,19 +167,46 @@ class Netreviews_Avisverifies_Adminhtml_AvisverifiesController extends Mage_Admi
|
|
127 |
$block = $layout->createBlock('core/template');
|
128 |
$block->setData('area','frontend');
|
129 |
$block->setTemplate('avisverifies/admin/checkinstallation.phtml');
|
130 |
-
// $block = $layout->createBlock('avisverifies/adminhtml_checkInstallation_index','avisverifies_checkinstallation');
|
131 |
$block->setData('tables',$tables);
|
132 |
$block->setData('orders',$orders);
|
133 |
$block->setData('checkOrders',$checkOrders);
|
134 |
$block->setData('count',$count);
|
|
|
135 |
$layout->getBlock('content')->append($block);
|
136 |
|
137 |
$block = $layout->createBlock('core/template');
|
138 |
$block->setData('area','frontend');
|
139 |
$block->setTemplate('avisverifies/admin/checkinstallation_tab.phtml');
|
140 |
-
// $block = $layout->createBlock('avisverifies/adminhtml_checkInstallation_tab','avisverifies_checkinstallation_tab');
|
141 |
$layout->getBlock('left')->append($block);
|
142 |
|
143 |
$this->renderLayout();
|
144 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
145 |
}
|
10 |
$this->_addBreadcrumb(Mage::helper('avisverifies')->__('Form'), Mage::helper('avisverifies')->__('Form'));
|
11 |
|
12 |
// add block to layout
|
13 |
+
$block = $this->getLayout()->createBlock('avisverifies/adminhtml_form_export_index','avisverifies_index');
|
14 |
$this->getLayout()->getBlock('content')->append($block);
|
15 |
|
16 |
+
$block = $this->getLayout()->createBlock('avisverifies/adminhtml_form_export_tabs','avisverifies_index_tabs');
|
17 |
$this->getLayout()->getBlock('left')->append($block);
|
18 |
|
19 |
$this->renderLayout();
|
23 |
$result = $this->getRequest()->getParams();
|
24 |
$isExport = (isset($result['export']) && isset($result['export']['csv']) && $result['export']['csv'] == 1);
|
25 |
|
26 |
+
$curWebsite = ($result['export']['websiteIdHidden'] == 10000)? NULL : $result['export']['websiteIdHidden'];
|
27 |
+
$curStore = ($result['export']['storeIdHidden'] == 10000)? NULL : $result['export']['storeIdHidden'];
|
28 |
+
$useProductSKU = $result['export']['sku'];
|
29 |
+
// all config
|
30 |
+
if (is_null($curWebsite) && is_null($curStore)) {
|
31 |
+
$stores = Mage::app()->getStores();
|
32 |
+
foreach($stores as $store){
|
33 |
+
$arrStores[] = $store->getData('store_id');
|
34 |
+
$this->updateSKUConfig($curWebsite,$curStore,$useProductSKU);
|
35 |
+
}
|
36 |
+
}
|
37 |
+
elseif ($curWebsite && is_null($curStore)) {
|
38 |
+
$webiste = Mage::getModel('core/website')->load($curWebsite);
|
39 |
+
foreach ($webiste->getStores() as $key => $store) {
|
40 |
+
$arrStores[] = $store->getData('store_id');
|
41 |
+
$this->updateSKUConfig($curWebsite,$curStore,$useProductSKU);
|
42 |
+
}
|
43 |
+
}
|
44 |
+
elseif ($curWebsite && $curStore ) {
|
45 |
+
$store = Mage::getModel('core/store')->load($curStore);
|
46 |
+
$arrStores[] = $store->getData('store_id');
|
47 |
+
$this->updateSKUConfig($curWebsite,$curStore,$useProductSKU);
|
48 |
+
}
|
49 |
+
else {
|
50 |
+
$isExport = false;
|
51 |
+
}
|
52 |
+
|
53 |
if ($isExport) {
|
54 |
$type = substr($result['export']['until'], -1);
|
55 |
// casting to int, for sql injection.
|
57 |
$type = ($type == "m")? 'MONTH' : 'WEEK';
|
58 |
$from = "DATE_SUB(CURDATE(), INTERVAL $period $type)";
|
59 |
$to = "DATE_ADD(curdate(),INTERVAL 1 DAY)";
|
|
|
|
|
|
|
60 |
$helperData = Mage::helper('avisverifies/Export');
|
61 |
+
$helperData->createStoresIds($arrStores);
|
|
|
62 |
$helperData->exportStruct($result['export']['product']);
|
|
|
|
|
|
|
63 |
//construction du CSV
|
64 |
$helperData->createExportCSV($from,$to);
|
65 |
$content = $helperData->getCSVFile();
|
72 |
}
|
73 |
}
|
74 |
|
75 |
+
protected function updateSKUConfig ($curWebsite,$curStore,$useProductSKU) {
|
76 |
+
$storeModel = Mage::getSingleton('adminhtml/system_store');
|
77 |
+
$mageselc = new Mage_Core_Model_Config();
|
78 |
+
|
79 |
+
if (is_null($curWebsite) && is_null($curStore)) {
|
80 |
+
$mageselc->saveConfig('avisverifies/extra/useProductSKU',$useProductSKU,'default',0);
|
81 |
+
}
|
82 |
+
|
83 |
+
foreach ($storeModel->getWebsiteCollection() as $website) {
|
84 |
+
if (is_null($curWebsite) || ($curWebsite == $website->getCode() && is_null($curStore))) {
|
85 |
+
$mageselc->saveConfig('avisverifies/extra/useProductSKU',$useProductSKU,'websites',$website->getId());
|
86 |
+
}
|
87 |
+
}
|
88 |
+
foreach ($storeModel->getStoreCollection() as $store) {
|
89 |
+
if (is_null($curStore) || $curStore == $store->getCode()) {
|
90 |
+
$mageselc->saveConfig('avisverifies/extra/useProductSKU',$useProductSKU,'websites',$store->getId());
|
91 |
+
}
|
92 |
+
}
|
93 |
+
}
|
94 |
+
|
95 |
+
|
96 |
public function checkInstallationAction() {
|
97 |
|
98 |
+
$old_Version = array('1.3.3.0');
|
99 |
+
$is_old_version = (in_array(Mage::getVersion(), $old_Version));
|
100 |
+
|
101 |
$resource = Mage::getSingleton('core/resource');
|
102 |
$read = $resource->getConnection('core_read');
|
103 |
$table = $resource->getTableName('avisverifies_products_reviews');
|
127 |
}
|
128 |
}
|
129 |
|
130 |
+
try{
|
131 |
+
$res = $read->query("SELECT COUNT(*) FROM $table")->fetch();
|
132 |
+
$count['Reviews'] = $res['COUNT(*)'];
|
133 |
+
} catch (Exception $ex) {
|
134 |
+
|
135 |
+
}
|
136 |
+
|
137 |
+
try{
|
138 |
+
$res = $read->query("SELECT COUNT(*) FROM $table2")->fetch();
|
139 |
+
$count['Average'] = $res['COUNT(*)'];
|
140 |
+
} catch (Exception $ex) {
|
141 |
+
|
142 |
+
}
|
143 |
|
|
|
|
|
|
|
|
|
|
|
|
|
144 |
|
145 |
if ($orders['AV_Flag']) {
|
146 |
$res = $read->query("SELECT COUNT(*) FROM $table3 WHERE av_flag = 1")->fetch();
|
149 |
$count['Order_Set_Flag_0'] = $res['COUNT(*)'];
|
150 |
}
|
151 |
|
152 |
+
$orderSess = Mage::getSingleton('admin/session')->getNetReviewsDebugOrder();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
153 |
|
154 |
+
if (!empty($orderSess)) {
|
155 |
+
$checkOrders = Netreviews_Avisverifies_Helper_Install::checkOrder($orderSess);
|
156 |
+
Mage::getSingleton('admin/session')->setNetReviewsDebugOrder(NULL);
|
157 |
+
}
|
158 |
+
else {
|
159 |
+
$checkOrders = array();
|
160 |
+
}
|
161 |
+
|
162 |
+
|
163 |
$this->loadLayout();
|
164 |
$layout = $this->getLayout();
|
165 |
|
167 |
$block = $layout->createBlock('core/template');
|
168 |
$block->setData('area','frontend');
|
169 |
$block->setTemplate('avisverifies/admin/checkinstallation.phtml');
|
|
|
170 |
$block->setData('tables',$tables);
|
171 |
$block->setData('orders',$orders);
|
172 |
$block->setData('checkOrders',$checkOrders);
|
173 |
$block->setData('count',$count);
|
174 |
+
$block->setData('isOldVersion',$is_old_version);
|
175 |
$layout->getBlock('content')->append($block);
|
176 |
|
177 |
$block = $layout->createBlock('core/template');
|
178 |
$block->setData('area','frontend');
|
179 |
$block->setTemplate('avisverifies/admin/checkinstallation_tab.phtml');
|
|
|
180 |
$layout->getBlock('left')->append($block);
|
181 |
|
182 |
$this->renderLayout();
|
183 |
}
|
184 |
+
|
185 |
+
public function postAction()
|
186 |
+
{
|
187 |
+
$post = $this->getRequest()->getPost();
|
188 |
+
try {
|
189 |
+
if (empty($post)) {
|
190 |
+
Mage::throwException($this->__('Invalid form data.'));
|
191 |
+
}
|
192 |
+
if (isset($post['debug']['reinstall']) && $post['debug']['reinstall'] == 'yes') {
|
193 |
+
Netreviews_Avisverifies_Helper_Install::createTables();
|
194 |
+
}
|
195 |
+
if (isset($post['debug']['flag']) && $post['debug']['flag'] == 'yes') {
|
196 |
+
Netreviews_Avisverifies_Helper_Install::flagAll();
|
197 |
+
}
|
198 |
+
if (isset($post['debug']['fields']) && $post['debug']['fields'] == 'yes') {
|
199 |
+
Netreviews_Avisverifies_Helper_Install::addFields();
|
200 |
+
}
|
201 |
+
if (!empty($post['debug']['order'])) {
|
202 |
+
Mage::getSingleton('admin/session')->setNetReviewsDebugOrder($post['debug']['order']);
|
203 |
+
}
|
204 |
+
$message = $this->__('Your form has been submitted successfully.');
|
205 |
+
Mage::getSingleton('adminhtml/session')->addSuccess($message);
|
206 |
+
} catch (Exception $e) {
|
207 |
+
Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
|
208 |
+
}
|
209 |
+
$this->_redirect('AvisVerifies/adminhtml_avisverifies/checkInstallation');
|
210 |
+
}
|
211 |
+
|
212 |
}
|
app/code/local/Netreviews/Avisverifies/controllers/DialogController.php
CHANGED
@@ -19,7 +19,7 @@ class Netreviews_Avisverifies_DialogController extends Mage_Core_Controller_Fron
|
|
19 |
// check for post
|
20 |
if ($request->getPost()) {
|
21 |
// load magento configuration
|
22 |
-
$DATA->setup(array('
|
23 |
// check if active
|
24 |
$IsActiveVar = $this->isActiveModule($DATA,$API->msg('query'));
|
25 |
// if not active return error.
|
@@ -147,25 +147,27 @@ class Netreviews_Avisverifies_DialogController extends Mage_Core_Controller_Fron
|
|
147 |
protected function setModuleConfiguration($DATA,$API) {
|
148 |
$mageselc = new Mage_Core_Model_Config();
|
149 |
$mageselc->cleanCache(); // remove cache
|
150 |
-
$
|
151 |
-
$
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
|
|
|
|
169 |
Mage::app()->cleanCache(); // remove cache
|
170 |
$mageselc->cleanCache(); // remove cache
|
171 |
|
@@ -216,7 +218,7 @@ class Netreviews_Avisverifies_DialogController extends Mage_Core_Controller_Fron
|
|
216 |
}
|
217 |
|
218 |
|
219 |
-
protected function isActiveModule($DATA,$query){
|
220 |
if ($DATA->enabledwebsite) {
|
221 |
if ($DATA->enabledwebsite != 1) {
|
222 |
$reponse['debug'] = "Modulé Désactivé";
|
@@ -246,7 +248,7 @@ class Netreviews_Avisverifies_DialogController extends Mage_Core_Controller_Fron
|
|
246 |
|
247 |
protected function getOrders($DATA,$API){
|
248 |
$helperData = Mage::helper('avisverifies/Export');
|
249 |
-
$helperData->createStoresIds($DATA->
|
250 |
$helperData->exportStruct($DATA->allowedProducts);
|
251 |
|
252 |
if ($API->msg('force') == 1) {
|
@@ -361,7 +363,8 @@ class Netreviews_Avisverifies_DialogController extends Mage_Core_Controller_Fron
|
|
361 |
|
362 |
protected function setProductsReviews($DATA,$API) {
|
363 |
$microtime_deb = microtime();
|
364 |
-
|
|
|
365 |
foreach ($reviews as $data) {
|
366 |
if ($data['error']) continue;
|
367 |
if ($data['query'] == "DELETE") {
|
@@ -417,7 +420,6 @@ class Netreviews_Avisverifies_DialogController extends Mage_Core_Controller_Fron
|
|
417 |
$salesModule = "".Mage::getConfig()->getModuleConfig("Mage_Sales")->version; // object to string
|
418 |
$orderStatutList = Mage::getSingleton('sales/order_config')->getStatuses();
|
419 |
|
420 |
-
$explode_secret_key = explode('-',$DATA->secretkey);
|
421 |
$temp = array(
|
422 |
'Version_PS' => $Magento,
|
423 |
'Version_Sales' => $salesModule,
|
@@ -439,15 +441,43 @@ class Netreviews_Avisverifies_DialogController extends Mage_Core_Controller_Fron
|
|
439 |
'Position_Widget_Fixe'=>'SCRIPTFIXE_POSITION',
|
440 |
'Script_Widget_Fixe'=>'SCRIPTFIXE',
|
441 |
'Emails_Interdits'=>'FORBIDDEN_EMAIL',
|
442 |
-
'Enabled_Website'=>'ENABLEDWEBSITE',
|
443 |
-
'Force_Parent_id'=>'FORCE_PRODUCT_PARENT_ID');
|
444 |
// load our configuration
|
445 |
-
$magesel = Mage::getModel("core/
|
446 |
|
447 |
foreach($champ as $key=>$champsname) {
|
448 |
$temp[$key]=$magesel->getConfig('avisverifies/system/'.strtolower($champsname));
|
449 |
}
|
450 |
-
$temp['
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
451 |
$temp['Dossier_CSV'] = 'media\avisverifies';
|
452 |
$temp['Date_Recuperation_Config']= date('Y-m-d H:i:s');
|
453 |
|
19 |
// check for post
|
20 |
if ($request->getPost()) {
|
21 |
// load magento configuration
|
22 |
+
$DATA->setup(array('idWebsite'=>$API->msg('idWebsite'),'query'=>$API->msg('query')));
|
23 |
// check if active
|
24 |
$IsActiveVar = $this->isActiveModule($DATA,$API->msg('query'));
|
25 |
// if not active return error.
|
147 |
protected function setModuleConfiguration($DATA,$API) {
|
148 |
$mageselc = new Mage_Core_Model_Config();
|
149 |
$mageselc->cleanCache(); // remove cache
|
150 |
+
$allIdShops = $DATA->allShopIds;
|
151 |
+
foreach ($allIdShops as $idShop) {
|
152 |
+
$mageselc->saveConfig(strtolower('avisverifies/system/PROCESSINIT'),$API->msg('init_reviews_process'),'stores',$idShop);
|
153 |
+
//Implode si plusieurs éléments donc is_array
|
154 |
+
$ORDERSTATESCHOOSEN = (is_array($API->msg('id_order_status_choosen'))) ? implode(';',$API->msg('id_order_status_choosen')) : $API->msg('id_order_status_choosen');
|
155 |
+
$mageselc->saveConfig(strtolower('avisverifies/system/ORDERSTATESCHOOSEN'), $ORDERSTATESCHOOSEN,'stores',$idShop);
|
156 |
+
$mageselc->saveConfig(strtolower('avisverifies/system/DELAY'), $API->msg('delay'),'stores',$idShop);
|
157 |
+
$mageselc->saveConfig(strtolower('avisverifies/system/GETPRODREVIEWS'),$API->msg('get_product_reviews'),'stores',$idShop);
|
158 |
+
$mageselc->saveConfig(strtolower('avisverifies/system/DISPLAYPRODREVIEWS'),$API->msg('display_product_reviews'),'stores',$idShop);
|
159 |
+
$mageselc->saveConfig(strtolower('avisverifies/system/SCRIPTFIXE_ALLOWED'),$API->msg('display_fixe_widget'),'stores',$idShop);
|
160 |
+
$mageselc->saveConfig(strtolower('avisverifies/system/SCRIPTFIXE_POSITION'),$API->msg('position_fixe_widget'),'stores',$idShop);
|
161 |
+
$mageselc->saveConfig(strtolower('avisverifies/system/SCRIPTFLOAT_ALLOWED'),$API->msg('display_float_widget'),'stores',$idShop);
|
162 |
+
$mageselc->saveConfig(strtolower('avisverifies/system/URLCERTIFICAT'),$API->msg('url_certificat'),'stores',$idShop);
|
163 |
+
//Implode si plusieurs éléments donc is_array
|
164 |
+
$FORBIDDENEMAIL = (is_array($API->msg('forbidden_mail_extension'))) ? implode(';',$API->msg('forbidden_mail_extension')) : $API->msg('forbidden_mail_extension');
|
165 |
+
$mageselc->saveConfig(strtolower('avisverifies/system/FORBIDDEN_EMAIL'), $FORBIDDENEMAIL,'stores',$idShop);
|
166 |
+
$mageselc->saveConfig(strtolower('avisverifies/system/SCRIPTFIXE'),str_replace(array("\r\n", "\n"), '', stripslashes(str_replace('\"','"',$API->msg('script_fixe_widget')))),'stores',$idShop);
|
167 |
+
$mageselc->saveConfig(strtolower('avisverifies/system/SCRIPTFLOAT'),str_replace(array("\r\n", "\n"), '', stripslashes(str_replace('\"','"',$API->msg('script_float_widget')))),'stores',$idShop);
|
168 |
+
// Force Product Parent ID.
|
169 |
+
$mageselc->saveConfig(strtolower('avisverifies/extra/FORCE_PRODUCT_PARENT_ID'),$API->msg('force_product_parent_id'),'stores',$idShop);
|
170 |
+
}
|
171 |
Mage::app()->cleanCache(); // remove cache
|
172 |
$mageselc->cleanCache(); // remove cache
|
173 |
|
218 |
}
|
219 |
|
220 |
|
221 |
+
protected function isActiveModule($DATA,$query){
|
222 |
if ($DATA->enabledwebsite) {
|
223 |
if ($DATA->enabledwebsite != 1) {
|
224 |
$reponse['debug'] = "Modulé Désactivé";
|
248 |
|
249 |
protected function getOrders($DATA,$API){
|
250 |
$helperData = Mage::helper('avisverifies/Export');
|
251 |
+
$helperData->createStoresIds($DATA->allShopIds);
|
252 |
$helperData->exportStruct($DATA->allowedProducts);
|
253 |
|
254 |
if ($API->msg('force') == 1) {
|
363 |
|
364 |
protected function setProductsReviews($DATA,$API) {
|
365 |
$microtime_deb = microtime();
|
366 |
+
// we send 1 store view config, we use in_array to check if product is in all stores config
|
367 |
+
$reviews = $API->productReviews(reset($DATA->allShopIds));
|
368 |
foreach ($reviews as $data) {
|
369 |
if ($data['error']) continue;
|
370 |
if ($data['query'] == "DELETE") {
|
420 |
$salesModule = "".Mage::getConfig()->getModuleConfig("Mage_Sales")->version; // object to string
|
421 |
$orderStatutList = Mage::getSingleton('sales/order_config')->getStatuses();
|
422 |
|
|
|
423 |
$temp = array(
|
424 |
'Version_PS' => $Magento,
|
425 |
'Version_Sales' => $salesModule,
|
441 |
'Position_Widget_Fixe'=>'SCRIPTFIXE_POSITION',
|
442 |
'Script_Widget_Fixe'=>'SCRIPTFIXE',
|
443 |
'Emails_Interdits'=>'FORBIDDEN_EMAIL',
|
444 |
+
'Enabled_Website'=>'ENABLEDWEBSITE',);
|
|
|
445 |
// load our configuration
|
446 |
+
$magesel = Mage::getModel("core/store")->load(reset($DATA->allShopIds));
|
447 |
|
448 |
foreach($champ as $key=>$champsname) {
|
449 |
$temp[$key]=$magesel->getConfig('avisverifies/system/'.strtolower($champsname));
|
450 |
}
|
451 |
+
$temp['Force_Parent_id'] = $magesel->getConfig('avisverifies/extra/'.strtolower('FORCE_PRODUCT_PARENT_ID'));
|
452 |
+
// JUDO CODE //
|
453 |
+
// get all stores + idwebsite
|
454 |
+
$mapConfiguration = array('all'=>false,'webistes'=>array());
|
455 |
+
$default = Mage::getModel("core/config_data")->getCollection()
|
456 |
+
->addFieldToFilter('scope','default')
|
457 |
+
->addFieldToFilter('path','avisverifies/system/enabledwebsite')
|
458 |
+
->addFieldToFilter('value','1')->getFirstItem();
|
459 |
+
$mapConfiguration['all'] = ($default->getData('value') == 1)? true : false;
|
460 |
+
$webistes = Mage::getModel("core/website")->getCollection();
|
461 |
+
foreach ($webistes as $web) {
|
462 |
+
$mapConfiguration['webistes'][$web->getData('website_id')]['name'] = $web->getData('name');
|
463 |
+
$config = Mage::getModel("core/config_data")->getCollection()
|
464 |
+
->addFieldToFilter('scope','websites')
|
465 |
+
->addFieldToFilter('scope_id',$web->getData('website_id'))
|
466 |
+
->addFieldToFilter('path','avisverifies/system/enabledwebsite')->getFirstItem();
|
467 |
+
$mapConfiguration['webistes'][$web->getData('website_id')]['is_active'] = ($config->getData('value') == 1)? true : false;
|
468 |
+
$stores = Mage::getModel("core/store")->getCollection()->addFieldToFilter('website_id',$web->getData('website_id'));
|
469 |
+
foreach ($stores as $store) {
|
470 |
+
$mapConfiguration['webistes'][$web->getData('website_id')]['stores'][$store->getData('store_id')]['name'] = $store->getData('name');
|
471 |
+
$storeConfig = Mage::getModel("core/config_data")->getCollection()
|
472 |
+
->addFieldToFilter('scope','stores')
|
473 |
+
->addFieldToFilter('scope_id',$store->getData('store_id'))
|
474 |
+
->addFieldToFilter('path','avisverifies/system/enabledwebsite')->getFirstItem();
|
475 |
+
$mapConfiguration['webistes'][$web->getData('website_id')]['stores'][$store->getData('store_id')]['is_active'] = ($storeConfig->getData('value') == 1)? true : false;;
|
476 |
+
}
|
477 |
+
}
|
478 |
+
// JUDO CODE //
|
479 |
+
$temp['Map_Configuration'] = $mapConfiguration;
|
480 |
+
$temp['Liste_des_statuts'] = $orderStatutList;
|
481 |
$temp['Dossier_CSV'] = 'media\avisverifies';
|
482 |
$temp['Date_Recuperation_Config']= date('Y-m-d H:i:s');
|
483 |
|
app/code/local/Netreviews/Avisverifies/etc/config.xml
CHANGED
@@ -1,247 +1,255 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<config>
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
</avisverifies_setup>
|
72 |
-
<avisverifies_write>
|
73 |
-
<connection>
|
74 |
-
<use>core_write</use>
|
75 |
-
</connection>
|
76 |
-
</avisverifies_write>
|
77 |
-
<avisverifies_read>
|
78 |
-
<connection>
|
79 |
-
<use>core_read</use>
|
80 |
-
</connection>
|
81 |
-
</avisverifies_read>
|
82 |
-
</resources>
|
83 |
<!-- Data Helper -->
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
<!-- Observers -->
|
90 |
-
<events>
|
91 |
-
<!-- Event: Checkout\controllers\OnepageController.php:273 -->
|
92 |
-
<checkout_onepage_controller_success_action>
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
</checkout_onepage_controller_success_action>
|
101 |
-
<!-- Event: Checkout\controllers\MultishippingController.php:545 -->
|
102 |
-
<checkout_multishipping_controller_success_action>
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
</checkout_multishipping_controller_success_action>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
111 |
</events>
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
<check module="avisverifies" translate="title">
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
</config>
|
1 |
<?xml version="1.0"?>
|
2 |
<config>
|
3 |
+
<!-- General Config -->
|
4 |
+
<modules>
|
5 |
+
<Netreviews_Avisverifies>
|
6 |
+
<version>2.6.4</version>
|
7 |
+
</Netreviews_Avisverifies>
|
8 |
+
</modules>
|
9 |
+
<!-- General Config -->
|
10 |
+
<!-- Default -->
|
11 |
+
<default>
|
12 |
+
<avisverifies>
|
13 |
+
<system>
|
14 |
+
<request>0</request>
|
15 |
+
<connect>interne.avis-verifies.local</connect>
|
16 |
+
</system>
|
17 |
+
</avisverifies>
|
18 |
+
</default>
|
19 |
+
<!-- Default -->
|
20 |
+
<!-- Global -->
|
21 |
+
<global>
|
22 |
+
<blocks>
|
23 |
+
<avisverifies>
|
24 |
+
<class>Netreviews_Avisverifies_Block</class>
|
25 |
+
</avisverifies>
|
26 |
+
<review>
|
27 |
+
<rewrite>
|
28 |
+
<helper>Netreviews_Avisverifies_Block_Review_Helper</helper>
|
29 |
+
<product_view>Netreviews_Avisverifies_Block_Review_Product_View</product_view>
|
30 |
+
</rewrite>
|
31 |
+
</review>
|
32 |
+
</blocks>
|
33 |
+
<models>
|
34 |
+
<avisverifies>
|
35 |
+
<class>Netreviews_Avisverifies_Model</class>
|
36 |
+
<resourceModel>avisverifies_mysql4</resourceModel>
|
37 |
+
</avisverifies>
|
38 |
+
<avisverifies_mysql4>
|
39 |
+
<class>Netreviews_Avisverifies_Model_Mysql4</class>
|
40 |
+
<!-- used by the api -->
|
41 |
+
<entities>
|
42 |
+
<reviews>
|
43 |
+
<table>avisverifies_products_reviews</table>
|
44 |
+
</reviews>
|
45 |
+
<average>
|
46 |
+
<table>avisverifies_products_average</table>
|
47 |
+
</average>
|
48 |
+
</entities>
|
49 |
+
</avisverifies_mysql4>
|
50 |
+
</models>
|
51 |
+
<resources>
|
52 |
+
<avisverifies_setup>
|
53 |
+
<setup>
|
54 |
+
<module>Netreviews_Avisverifies</module>
|
55 |
+
</setup>
|
56 |
+
<connection>
|
57 |
+
<use>core_setup</use>
|
58 |
+
</connection>
|
59 |
+
</avisverifies_setup>
|
60 |
+
<avisverifies_write>
|
61 |
+
<connection>
|
62 |
+
<use>core_write</use>
|
63 |
+
</connection>
|
64 |
+
</avisverifies_write>
|
65 |
+
<avisverifies_read>
|
66 |
+
<connection>
|
67 |
+
<use>core_read</use>
|
68 |
+
</connection>
|
69 |
+
</avisverifies_read>
|
70 |
+
</resources>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
71 |
<!-- Data Helper -->
|
72 |
+
<helpers>
|
73 |
+
<avisverifies>
|
74 |
+
<class>Netreviews_Avisverifies_Helper</class>
|
75 |
+
</avisverifies>
|
76 |
+
</helpers>
|
77 |
+
<!-- Observers -->
|
78 |
+
<events>
|
79 |
+
<!-- Event: Checkout\controllers\OnepageController.php:273 -->
|
80 |
+
<checkout_onepage_controller_success_action>
|
81 |
+
<observers>
|
82 |
+
<avisverifies_checkout_observer>
|
83 |
+
<type>singleton</type>
|
84 |
+
<class>Netreviews_Avisverifies_Model_Observers_Checkout_Track</class>
|
85 |
+
<method>trackCheckout</method>
|
86 |
+
</avisverifies_checkout_observer>
|
87 |
+
</observers>
|
88 |
+
</checkout_onepage_controller_success_action>
|
89 |
+
<!-- Event: Checkout\controllers\MultishippingController.php:545 -->
|
90 |
+
<checkout_multishipping_controller_success_action>
|
91 |
+
<observers>
|
92 |
+
<avisverifies_checkout_observer_multi>
|
93 |
+
<type>singleton</type>
|
94 |
+
<class>Netreviews_Avisverifies_Model_Observers_Checkout_Track</class>
|
95 |
+
<method>trackCheckout</method>
|
96 |
+
</avisverifies_checkout_observer_multi>
|
97 |
+
</observers>
|
98 |
+
</checkout_multishipping_controller_success_action>
|
99 |
+
<!-- Event: /app/code/core/Mage/Catalog/Block/Product/List.php:162 -->
|
100 |
+
<catalog_block_product_list_collection>
|
101 |
+
<observers>
|
102 |
+
<avisverifies_product_Observer>
|
103 |
+
<type>singleton</type>
|
104 |
+
<class>Netreviews_Avisverifies_Model_Observers_Product_List</class>
|
105 |
+
<method>updateProductRatingSummary</method>
|
106 |
+
</avisverifies_product_Observer>
|
107 |
+
</observers>
|
108 |
+
</catalog_block_product_list_collection>
|
109 |
+
<!-- module system config save -->
|
110 |
+
<admin_system_config_changed_section_avisverifies>
|
111 |
+
<observers>
|
112 |
+
<avisverifies>
|
113 |
+
<type>singleton</type>
|
114 |
+
<class>avisverifies/observers_system</class>
|
115 |
+
<method>save</method>
|
116 |
+
</avisverifies>
|
117 |
+
</observers>
|
118 |
+
</admin_system_config_changed_section_avisverifies>
|
119 |
</events>
|
120 |
+
</global>
|
121 |
+
<!-- Global -->
|
122 |
+
<!-- Frontend -->
|
123 |
+
<frontend>
|
124 |
+
<routers>
|
125 |
+
<avisverifies>
|
126 |
+
<use>standard</use>
|
127 |
+
<args>
|
128 |
+
<module>Netreviews_Avisverifies</module>
|
129 |
+
<frontName>AvisVerifies</frontName>
|
130 |
+
</args>
|
131 |
+
</avisverifies>
|
132 |
+
</routers>
|
133 |
+
<layout>
|
134 |
+
<updates>
|
135 |
+
<avisverifies>
|
136 |
+
<file>avisverifies.xml</file>
|
137 |
+
</avisverifies>
|
138 |
+
</updates>
|
139 |
+
</layout>
|
140 |
+
<translate>
|
141 |
+
<modules>
|
142 |
+
<avisverifies>
|
143 |
+
<files>
|
144 |
+
<default>avisverifies.csv</default>
|
145 |
+
</files>
|
146 |
+
</avisverifies>
|
147 |
+
</modules>
|
148 |
+
</translate>
|
149 |
+
</frontend>
|
150 |
+
<!-- Frontend -->
|
151 |
+
<!-- Admin -->
|
152 |
+
<admin>
|
153 |
+
<routers>
|
154 |
+
<avisverifies>
|
155 |
+
<use>admin</use>
|
156 |
+
<args>
|
157 |
+
<module>Netreviews_Avisverifies</module>
|
158 |
+
<frontName>AvisVerifies</frontName>
|
159 |
+
</args>
|
160 |
+
</avisverifies>
|
161 |
+
</routers>
|
162 |
+
</admin>
|
163 |
+
<!-- Admin -->
|
164 |
+
<!-- AdminHtml -->
|
165 |
+
<adminhtml>
|
166 |
+
<menu>
|
167 |
+
<catalog>
|
168 |
+
<children>
|
169 |
+
<avisverifies module="avisverifies" translate="title">
|
170 |
+
<title>VerifiedReviews</title>
|
171 |
+
<sort_order>100</sort_order>
|
172 |
+
<children>
|
173 |
+
<form module="avisverifies" translate="title">
|
174 |
+
<title>Management</title>
|
175 |
+
<sort_order>0</sort_order>
|
176 |
+
<action>avisverifies/adminhtml_avisverifies</action>
|
177 |
+
</form>
|
178 |
+
<config module="avisverifies" translate="title">
|
179 |
+
<title>Configuration</title>
|
180 |
+
<sort_order>10</sort_order>
|
181 |
+
<action>adminhtml/system_config/edit/section/avisverifies/</action>
|
182 |
+
</config>
|
183 |
+
<check module="avisverifies" translate="title">
|
184 |
+
<title>Check Installation</title>
|
185 |
+
<sort_order>20</sort_order>
|
186 |
+
<action>avisverifies/adminhtml_avisverifies/checkInstallation</action>
|
187 |
+
</check>
|
188 |
+
</children>
|
189 |
+
</avisverifies>
|
190 |
+
</children>
|
191 |
+
</catalog>
|
192 |
+
</menu>
|
193 |
+
<translate>
|
194 |
+
<modules>
|
195 |
+
<avisverifies>
|
196 |
+
<files>
|
197 |
+
<default>avisverifies.csv</default>
|
198 |
+
</files>
|
199 |
+
</avisverifies>
|
200 |
+
</modules>
|
201 |
+
</translate>
|
202 |
+
<acl>
|
203 |
+
<resources>
|
204 |
+
<admin>
|
205 |
+
<children>
|
206 |
+
<system>
|
207 |
+
<children>
|
208 |
+
<config>
|
209 |
+
<children>
|
210 |
+
<avisverifies module="avisverifies" translate="title">
|
211 |
+
<title>VerifiedReviews</title>
|
212 |
+
</avisverifies>
|
213 |
+
</children>
|
214 |
+
</config>
|
215 |
+
</children>
|
216 |
+
</system>
|
217 |
+
<catalog>
|
218 |
+
<children>
|
219 |
+
<avisverifies module="avisverifies" translate="title">
|
220 |
+
<title>VerifiedReviews</title>
|
221 |
+
<sort_order>100</sort_order>
|
222 |
+
<children>
|
223 |
+
<form module="avisverifies" translate="title">
|
224 |
+
<title>Management</title>
|
225 |
+
<sort_order>0</sort_order>
|
226 |
+
<action>avisverifies/adminhtml_avisverifies</action>
|
227 |
+
</form>
|
228 |
+
<config module="avisverifies" translate="title">
|
229 |
+
<title>Configuration</title>
|
230 |
+
<sort_order>10</sort_order>
|
231 |
+
<action>adminhtml/system_config/edit/section/avisverifies/</action>
|
232 |
+
</config>
|
233 |
+
<check module="avisverifies" translate="title">
|
234 |
+
<title>Check Installation</title>
|
235 |
+
<sort_order>20</sort_order>
|
236 |
+
<action>avisverifies/adminhtml_avisverifies/checkInstallation</action>
|
237 |
+
</check>
|
238 |
+
</children>
|
239 |
+
</avisverifies>
|
240 |
+
</children>
|
241 |
+
</catalog>
|
242 |
+
</children>
|
243 |
+
</admin>
|
244 |
+
</resources>
|
245 |
+
</acl>
|
246 |
+
<layout>
|
247 |
+
<updates>
|
248 |
+
<avisverifies>
|
249 |
+
<file>avisverifies.xml</file>
|
250 |
+
</avisverifies>
|
251 |
+
</updates>
|
252 |
+
</layout>
|
253 |
+
</adminhtml>
|
254 |
+
<!-- AdminHtml -->
|
255 |
</config>
|
app/code/local/Netreviews/Avisverifies/etc/system.xml
CHANGED
@@ -17,19 +17,20 @@
|
|
17 |
<show_in_store>1</show_in_store>
|
18 |
<groups>
|
19 |
<introtext translate="label">
|
20 |
-
<label>
|
21 |
<show_in_default>1</show_in_default>
|
22 |
-
<show_in_website>
|
23 |
<show_in_store>1</show_in_store>
|
24 |
<sort_order>1</sort_order>
|
|
|
25 |
<expanded>0</expanded>
|
26 |
-
<comment>You
|
27 |
</introtext>
|
28 |
<system translate="label">
|
29 |
<label>System integration</label>
|
30 |
-
<show_in_default>
|
31 |
<show_in_website>1</show_in_website>
|
32 |
-
<show_in_store>
|
33 |
<sort_order>10</sort_order>
|
34 |
<fields>
|
35 |
<enabledwebsite translate="label comment">
|
@@ -37,39 +38,100 @@
|
|
37 |
<frontend_type>select</frontend_type>
|
38 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
39 |
<sort_order>8</sort_order>
|
40 |
-
<show_in_default>
|
41 |
<show_in_website>1</show_in_website>
|
42 |
-
<show_in_store>
|
43 |
<comment>By activating the module, you will reap your reviews sites. To harvest the products reviews, go to the last part of the configuration</comment>
|
44 |
</enabledwebsite>
|
45 |
<idwebsite translate="label">
|
46 |
<label>IdWebsite</label>
|
47 |
<frontend_type>text</frontend_type>
|
48 |
<sort_order>40</sort_order>
|
49 |
-
<show_in_default>
|
50 |
<show_in_website>1</show_in_website>
|
51 |
-
<show_in_store>
|
52 |
</idwebsite>
|
53 |
<secretkey translate="label">
|
54 |
<label>Secret Key</label>
|
55 |
<frontend_type>text</frontend_type>
|
56 |
<sort_order>30</sort_order>
|
57 |
-
<show_in_default>
|
58 |
<show_in_website>1</show_in_website>
|
59 |
-
<show_in_store>
|
60 |
</secretkey>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
61 |
<defaultReviews translate="label comment">
|
62 |
<label>Deactivate Magento default reviews </label>
|
63 |
<frontend_type>select</frontend_type>
|
64 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
65 |
<sort_order>50</sort_order>
|
66 |
-
<show_in_default>
|
67 |
<show_in_website>1</show_in_website>
|
68 |
-
<show_in_store>
|
69 |
<comment>Advanced Configuration: This configuration is used to hide/show Magento default reviews, if our product reviews display is set to hidden.</comment>
|
70 |
</defaultReviews>
|
71 |
-
|
72 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
73 |
</groups>
|
74 |
</avisverifies>
|
75 |
</sections>
|
17 |
<show_in_store>1</show_in_store>
|
18 |
<groups>
|
19 |
<introtext translate="label">
|
20 |
+
<label>General Info</label>
|
21 |
<show_in_default>1</show_in_default>
|
22 |
+
<show_in_website>1</show_in_website>
|
23 |
<show_in_store>1</show_in_store>
|
24 |
<sort_order>1</sort_order>
|
25 |
+
<!-- to open the tab here we use 0 -->
|
26 |
<expanded>0</expanded>
|
27 |
+
<comment>You can configure the module, for all website or a specific website or a specific store view</comment>
|
28 |
</introtext>
|
29 |
<system translate="label">
|
30 |
<label>System integration</label>
|
31 |
+
<show_in_default>1</show_in_default>
|
32 |
<show_in_website>1</show_in_website>
|
33 |
+
<show_in_store>1</show_in_store>
|
34 |
<sort_order>10</sort_order>
|
35 |
<fields>
|
36 |
<enabledwebsite translate="label comment">
|
38 |
<frontend_type>select</frontend_type>
|
39 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
40 |
<sort_order>8</sort_order>
|
41 |
+
<show_in_default>1</show_in_default>
|
42 |
<show_in_website>1</show_in_website>
|
43 |
+
<show_in_store>1</show_in_store>
|
44 |
<comment>By activating the module, you will reap your reviews sites. To harvest the products reviews, go to the last part of the configuration</comment>
|
45 |
</enabledwebsite>
|
46 |
<idwebsite translate="label">
|
47 |
<label>IdWebsite</label>
|
48 |
<frontend_type>text</frontend_type>
|
49 |
<sort_order>40</sort_order>
|
50 |
+
<show_in_default>1</show_in_default>
|
51 |
<show_in_website>1</show_in_website>
|
52 |
+
<show_in_store>1</show_in_store>
|
53 |
</idwebsite>
|
54 |
<secretkey translate="label">
|
55 |
<label>Secret Key</label>
|
56 |
<frontend_type>text</frontend_type>
|
57 |
<sort_order>30</sort_order>
|
58 |
+
<show_in_default>1</show_in_default>
|
59 |
<show_in_website>1</show_in_website>
|
60 |
+
<show_in_store>1</show_in_store>
|
61 |
</secretkey>
|
62 |
+
</fields>
|
63 |
+
</system>
|
64 |
+
<extra>
|
65 |
+
<label>Advanced configuration</label>
|
66 |
+
<show_in_default>1</show_in_default>
|
67 |
+
<show_in_website>1</show_in_website>
|
68 |
+
<show_in_store>1</show_in_store>
|
69 |
+
<!-- to open the tab here we use 1 -->
|
70 |
+
<expanded>1</expanded>
|
71 |
+
<sort_order>20</sort_order>
|
72 |
+
<fields>
|
73 |
+
<useProductSKU translate="label comment">
|
74 |
+
<label>Use product sku </label>
|
75 |
+
<frontend_type>select</frontend_type>
|
76 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
77 |
+
<sort_order>30</sort_order>
|
78 |
+
<show_in_default>1</show_in_default>
|
79 |
+
<show_in_website>1</show_in_website>
|
80 |
+
<show_in_store>1</show_in_store>
|
81 |
+
<comment>Advanced Configuration: This configuration is used to identify product by their sku instead of their sql ids.</comment>
|
82 |
+
</useProductSKU>
|
83 |
+
<addReviewToProductPage translate="label comment">
|
84 |
+
<label>Add Review to product Page</label>
|
85 |
+
<frontend_type>select</frontend_type>
|
86 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
87 |
+
<sort_order>40</sort_order>
|
88 |
+
<show_in_default>1</show_in_default>
|
89 |
+
<show_in_website>1</show_in_website>
|
90 |
+
<show_in_store>1</show_in_store>
|
91 |
+
<comment>Advanced Configuration: This configuration is used to add our product review block to the product page.</comment>
|
92 |
+
</addReviewToProductPage>
|
93 |
+
<productLightWidget translate="label comment">
|
94 |
+
<label>Product Light widget</label>
|
95 |
+
<frontend_type>select</frontend_type>
|
96 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
97 |
+
<sort_order>45</sort_order>
|
98 |
+
<show_in_default>1</show_in_default>
|
99 |
+
<show_in_website>1</show_in_website>
|
100 |
+
<show_in_store>1</show_in_store>
|
101 |
+
<comment>Advanced Configuration: Use this configuration to change the type of product widget to small design.</comment>
|
102 |
+
</productLightWidget>
|
103 |
+
<hasjQuery translate="label comment">
|
104 |
+
<label>jQuery present on the site ? </label>
|
105 |
+
<frontend_type>select</frontend_type>
|
106 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
107 |
+
<sort_order>50</sort_order>
|
108 |
+
<show_in_default>1</show_in_default>
|
109 |
+
<show_in_website>1</show_in_website>
|
110 |
+
<show_in_store>1</show_in_store>
|
111 |
+
<comment>Advanced Configuration: change this to yes, if jQuery is all-ready used on the site.</comment>
|
112 |
+
</hasjQuery>
|
113 |
<defaultReviews translate="label comment">
|
114 |
<label>Deactivate Magento default reviews </label>
|
115 |
<frontend_type>select</frontend_type>
|
116 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
117 |
<sort_order>50</sort_order>
|
118 |
+
<show_in_default>1</show_in_default>
|
119 |
<show_in_website>1</show_in_website>
|
120 |
+
<show_in_store>1</show_in_store>
|
121 |
<comment>Advanced Configuration: This configuration is used to hide/show Magento default reviews, if our product reviews display is set to hidden.</comment>
|
122 |
</defaultReviews>
|
123 |
+
<force_product_parent_id translate="label comment">
|
124 |
+
<label>Force parent product id</label>
|
125 |
+
<frontend_type>select</frontend_type>
|
126 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
127 |
+
<sort_order>60</sort_order>
|
128 |
+
<show_in_default>1</show_in_default>
|
129 |
+
<show_in_website>1</show_in_website>
|
130 |
+
<show_in_store>1</show_in_store>
|
131 |
+
<comment>Advanced Configuration: This configuration is used to tell our module to only get the parent id of the child id.</comment>
|
132 |
+
</force_product_parent_id>
|
133 |
+
</fields>
|
134 |
+
</extra>
|
135 |
</groups>
|
136 |
</avisverifies>
|
137 |
</sections>
|
app/code/local/Netreviews/Avisverifies/sql/avisverifies_setup/mysql4-install-2.0.0.php
CHANGED
@@ -1,66 +1,6 @@
|
|
1 |
<?php // updagrade script Name : upgrade-2.0.0-2.5.0.php ---> upgrade-{old version}-{newest version}.php
|
2 |
$installer = $this;
|
3 |
$installer->startSetup();
|
4 |
-
|
5 |
-
|
6 |
-
$read = $installer->getConnection('core_read');
|
7 |
-
$write = $installer->getConnection('core_write');
|
8 |
-
// Flag
|
9 |
-
$avFlag = $read->query('SELECT COUNT(*) as flag
|
10 |
-
FROM INFORMATION_SCHEMA.COLUMNS
|
11 |
-
WHERE table_name = "'.$order.'"
|
12 |
-
AND table_schema = DATABASE()
|
13 |
-
AND column_name = "av_flag"')->fetchAll();
|
14 |
-
$avFlag = $avFlag[0]['flag'];
|
15 |
-
if ($avFlag == 0) {
|
16 |
-
try {
|
17 |
-
$write->query("ALTER TABLE `{$order}` add av_flag tinyint default 0;");
|
18 |
-
$write->query("UPDATE `{$order}` SET `av_flag` = 1;");
|
19 |
-
} catch (Exception $exc) {
|
20 |
-
// do nothing
|
21 |
-
}
|
22 |
-
}
|
23 |
-
else {
|
24 |
-
$write->query("UPDATE `{$order}` SET `av_flag` = 1;");
|
25 |
-
}
|
26 |
-
// horodate
|
27 |
-
$horodate = $read->query('SELECT COUNT(*) as horodate
|
28 |
-
FROM INFORMATION_SCHEMA.COLUMNS
|
29 |
-
WHERE table_name = "'.$order.'"
|
30 |
-
AND table_schema = DATABASE()
|
31 |
-
AND column_name = "av_horodate_get"')->fetchAll();
|
32 |
-
$horodate = $horodate[0]['horodate'];
|
33 |
-
if ($horodate == 0) {
|
34 |
-
try {
|
35 |
-
$write->query("ALTER TABLE `{$order}` add av_horodate_get varchar(32);");
|
36 |
-
} catch (Exception $exc) {
|
37 |
-
// do nothing
|
38 |
-
}
|
39 |
-
}
|
40 |
-
// Install Tables, RUN Query.
|
41 |
-
$installer->run("
|
42 |
-
CREATE TABLE IF NOT EXISTS `{$this->getTable('avisverifies_products_reviews')}` (
|
43 |
-
`id_product_av` varchar(36) NOT NULL,
|
44 |
-
`ref_product` varchar(20) NOT NULL,
|
45 |
-
`rate` varchar(5) NOT NULL,
|
46 |
-
`review` text NOT NULL,
|
47 |
-
`customer_name` varchar(30) NOT NULL,
|
48 |
-
`horodate` varchar(32) NOT NULL,
|
49 |
-
`discussion` text,
|
50 |
-
`lang` varchar(5),
|
51 |
-
`website_id` smallint(5) not null default 0,
|
52 |
-
PRIMARY KEY (`id_product_av`)
|
53 |
-
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
54 |
-
|
55 |
-
CREATE TABLE IF NOT EXISTS `{$this->getTable('avisverifies_products_average')}` (
|
56 |
-
`id_product_av` varchar(36) NOT NULL,
|
57 |
-
`ref_product` varchar(20) NOT NULL,
|
58 |
-
`rate` varchar(5) NOT NULL,
|
59 |
-
`nb_reviews` int(10) NOT NULL,
|
60 |
-
`horodate_update` varchar(32) NOT NULL,
|
61 |
-
`id_lang` varchar(5) DEFAULT NULL,
|
62 |
-
`website_id` smallint(5) not null default 0,
|
63 |
-
PRIMARY KEY (`ref_product`)
|
64 |
-
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
65 |
-
");
|
66 |
$installer->endSetup();
|
1 |
<?php // updagrade script Name : upgrade-2.0.0-2.5.0.php ---> upgrade-{old version}-{newest version}.php
|
2 |
$installer = $this;
|
3 |
$installer->startSetup();
|
4 |
+
Netreviews_Avisverifies_Helper_Install::addFields();
|
5 |
+
Netreviews_Avisverifies_Helper_Install::createTables();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
$installer->endSetup();
|
app/design/frontend/base/default/layout/avisverifies.xml
ADDED
@@ -0,0 +1,68 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<layout version="1.0.0">
|
3 |
+
<!-- All Stores -->
|
4 |
+
<default>
|
5 |
+
<!-- Loaded in the head block -->
|
6 |
+
<reference name="head">
|
7 |
+
<block name="avisverifies.float" template="avisverifies/float.phtml" type="core/template"/>
|
8 |
+
</reference>
|
9 |
+
<!-- Loaded in the left block -->
|
10 |
+
<reference name="left">
|
11 |
+
<block after="-" name="avisverifies.left" template="avisverifies/left.phtml" type="core/template"/>
|
12 |
+
</reference>
|
13 |
+
<!-- Loaded in the right block -->
|
14 |
+
<reference name="right">
|
15 |
+
<block after="-" name="avisverifies.right" template="avisverifies/right.phtml" type="core/template"/>
|
16 |
+
</reference>
|
17 |
+
</default>
|
18 |
+
<!-- !!!! -->
|
19 |
+
<review_product_list>
|
20 |
+
<reference name="head">
|
21 |
+
<block name="avisverifies_css" type="core/template" template="avisverifies/css.phtml"/>
|
22 |
+
<block name="avisverifies_js" type="core/template" template="avisverifies/js.phtml"/>
|
23 |
+
</reference>
|
24 |
+
<reference name="content">
|
25 |
+
<!-- remove magento default reviews -->
|
26 |
+
<remove name="product.info.product_additional_data"/>
|
27 |
+
<block name="reviews_wrapper" type="core/template" template="avisverifies/wrapper.phtml">
|
28 |
+
<block name="product.info.product_additional_data2" template="avisverifies/reviewProductList.phtml" type="review/product_view_list" >
|
29 |
+
<block name="avisverifies.pagination" template="avisverifies/pagination.phtml" type="core/template"/>
|
30 |
+
</block>
|
31 |
+
</block>
|
32 |
+
<!-- removed these (2) lines for furthere investigation -->
|
33 |
+
<!--<remove name="catalog.product.related"/>-->
|
34 |
+
<!--<remove name="product.info.upsell"/>-->
|
35 |
+
</reference>
|
36 |
+
</review_product_list>
|
37 |
+
<!-- !!!! -->
|
38 |
+
<catalog_product_view>
|
39 |
+
<reference name="head">
|
40 |
+
<block name="avisverifies_css" type="core/template" template="avisverifies/css.phtml"/>
|
41 |
+
<block name="avisverifies_js" type="core/template" template="avisverifies/js.phtml"/>
|
42 |
+
</reference>
|
43 |
+
<reference name="content">
|
44 |
+
<block after="product_additional_data" type="review/product_view_list" name="product.info.product_additional_data2" as="reviews" template="avisverifies/catalogProductList.phtml">
|
45 |
+
<block name="avisverifies.pagination" template="avisverifies/pagination.phtml" type="core/template"/>
|
46 |
+
</block>
|
47 |
+
</reference>
|
48 |
+
<!-- removed these (3)lines for furthere investigation -->
|
49 |
+
<!--<reference name="content">
|
50 |
+
<remove name="product.info.upsell"/>
|
51 |
+
</reference>-->
|
52 |
+
</catalog_product_view>
|
53 |
+
|
54 |
+
<!-- !!!! -->
|
55 |
+
<catalog_category_view>
|
56 |
+
<reference name="head">
|
57 |
+
<block name="avisverifies_css" type="core/template" template="avisverifies/css.phtml"/>
|
58 |
+
</reference>
|
59 |
+
</catalog_category_view>
|
60 |
+
|
61 |
+
<!-- Checkout process -->
|
62 |
+
<checkout_track>
|
63 |
+
<reference name="content">
|
64 |
+
<block type="avisverifies/observers_checkout" name="avisverifies.observers.checkout" template="avisverifies/observers/checkout.phtml"/>
|
65 |
+
</reference>
|
66 |
+
</checkout_track>
|
67 |
+
<!-- Checkout process -->
|
68 |
+
</layout>
|
app/design/frontend/base/default/template/avisverifies/admin/checkinstallation.phtml
ADDED
@@ -0,0 +1,151 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div class="check-installation content-header" style=" overflow: hidden; ">
|
2 |
+
<?php $version = Mage::getConfig()->getNode()->modules->Netreviews_Avisverifies->version; ?>
|
3 |
+
<h2 style="width: 100%;float: left;">
|
4 |
+
<?php echo $this->__('Verified Reviews') ?>
|
5 |
+
<small style="font-size:9px;"><?php echo $this->__('version') ?> : <?php echo $version ?></small>
|
6 |
+
</h2>
|
7 |
+
<table style="width: 350px;float: left;">
|
8 |
+
<thead>
|
9 |
+
<th width="190"><?php echo $this->__('Table Name') ?>:</th>
|
10 |
+
<th><?php echo $this->__('Status') ?></th>
|
11 |
+
</thead>
|
12 |
+
<tbody>
|
13 |
+
<?php $table = $this->getTables(); ?>
|
14 |
+
<?php $table = (is_array($table))? $table : array(); ?>
|
15 |
+
<?php foreach($table as $nom=>$val): ?>
|
16 |
+
<tr>
|
17 |
+
<td><?php echo $nom ?></td>
|
18 |
+
<td align="center">
|
19 |
+
<img alt="<?php echo ($val)? "enabled" : "error" ?>" src="<?php echo ($val)? $this->getSkinUrl('images/fam_bullet_success.gif') : $this->getSkinUrl('images/cancel_btn_icon.gif') ?>" />
|
20 |
+
</td>
|
21 |
+
<td>
|
22 |
+
<?php echo ($val)? "Installed" : "Not-installed" ?>
|
23 |
+
</td>
|
24 |
+
</tr>
|
25 |
+
<?php endforeach ?>
|
26 |
+
</tbody>
|
27 |
+
</table>
|
28 |
+
<div style="float: left; width: 1px;height: 65px; margin: 1px 15px ; border-left: 1px solid #ccc"></div>
|
29 |
+
<table style="width: 350px;float: left;">
|
30 |
+
<thead>
|
31 |
+
<th width="190"><?php echo $this->__('Table Orders Fields') ?>:</th>
|
32 |
+
<th><?php echo $this->__('Status') ?></th>
|
33 |
+
</thead>
|
34 |
+
<tbody>
|
35 |
+
<?php $table = $this->getOrders(); ?>
|
36 |
+
<?php $table = (is_array($table))? $table : array(); ?>
|
37 |
+
<?php foreach($table as $nom=>$val): ?>
|
38 |
+
<tr>
|
39 |
+
<td><?php echo $nom ?></td>
|
40 |
+
<td align="center">
|
41 |
+
<img alt="<?php echo ($val)? "enabled" : "error" ?>" src="<?php echo ($val)? $this->getSkinUrl('images/fam_bullet_success.gif') : $this->getSkinUrl('images/cancel_btn_icon.gif') ?>" />
|
42 |
+
</td>
|
43 |
+
<td>
|
44 |
+
<?php echo ($val)? "Installed" : "Not-installed" ?>
|
45 |
+
</td>
|
46 |
+
</tr>
|
47 |
+
<?php endforeach ?>
|
48 |
+
</tbody>
|
49 |
+
</table>
|
50 |
+
<div style="float: left; width: 100%;height: 1px;"></div>
|
51 |
+
<table style="width: 350px;float: left;">
|
52 |
+
<thead>
|
53 |
+
<th width="190"><?php echo $this->__('Table Fields Count') ?>:</th>
|
54 |
+
<th><?php echo $this->__('Status') ?></th>
|
55 |
+
</thead>
|
56 |
+
<tbody>
|
57 |
+
<?php $table = $this->getCount(); ?>
|
58 |
+
<?php $table = (is_array($table))? $table : array(); ?>
|
59 |
+
<?php foreach($table as $nom=>$val): ?>
|
60 |
+
<tr>
|
61 |
+
<td><?php echo $nom ?></td>
|
62 |
+
<td><?php echo $val ?></td>
|
63 |
+
</tr>
|
64 |
+
<?php endforeach ?>
|
65 |
+
</tbody>
|
66 |
+
</table>
|
67 |
+
<?php $checkOrders = $this->getData('checkOrders') ?>
|
68 |
+
<?php if(!empty($checkOrders)): ?>
|
69 |
+
<?php $header = (isset($checkOrders[0]))? array_keys($checkOrders[0]): array(); ?>
|
70 |
+
<h2 style="float: left; width: 100%;"><?php echo $this->__('Check orders Table') ?>:</h2>
|
71 |
+
<table style="width: 1250px;float: left;" border="1">
|
72 |
+
<thead>
|
73 |
+
<?php foreach($header as $val): ?>
|
74 |
+
<th style="text-align: center;" ><?php echo $val; ?></th>
|
75 |
+
<?php endforeach; ?>
|
76 |
+
</thead>
|
77 |
+
<tbody>
|
78 |
+
<?php foreach($checkOrders as $data): ?>
|
79 |
+
<tr>
|
80 |
+
<?php foreach($data as $val): ?>
|
81 |
+
<td align="center" ><?php echo ($val === NULL)? 'NULL' :$val ?></td>
|
82 |
+
<?php endforeach ?>
|
83 |
+
</tr>
|
84 |
+
<?php endforeach ?>
|
85 |
+
</tbody>
|
86 |
+
</table>
|
87 |
+
<?php endif; ?>
|
88 |
+
</div>
|
89 |
+
|
90 |
+
<div class="content-header">
|
91 |
+
<table cellspacing="0" class="grid-header">
|
92 |
+
<tr>
|
93 |
+
<td><h3><?php echo $this->__('Advanced Options') ?></h3></td>
|
94 |
+
<td class="a-right">
|
95 |
+
<button onclick="editForm.submit()" class="scalable save" type="button"><span><?php echo $this->__('Submit') ?></span></button>
|
96 |
+
</td>
|
97 |
+
</tr>
|
98 |
+
</table>
|
99 |
+
</div>
|
100 |
+
<div class="entry-edit">
|
101 |
+
<form id="edit_form" name="edit_form" method="post" action="<?php echo $this->getUrl('*/*/post')?>">
|
102 |
+
<input name="form_key" type="hidden" value="<?php echo Mage::getSingleton('core/session')->getFormKey() ?>" />
|
103 |
+
<h4 class="icon-head head-edit-form fieldset-legend"><?php echo $this->__('Install Tables')?></h4>
|
104 |
+
<fieldset id="my-fieldset">
|
105 |
+
<table cellspacing="1" class="form-list">
|
106 |
+
<tr>
|
107 |
+
<td class="label"><?php echo $this->__('Perform a re-installation of the module tables')?></td>
|
108 |
+
<td class="input-ele"><input type="radio" class="input-radio" name="debug[reinstall]" value="yes" /><?php echo $this->__('Yes')?></td>
|
109 |
+
<td> </td>
|
110 |
+
<td class="input-ele"><input type="radio" class="input-radio" name="debug[reinstall]" value="no" /><?php echo $this->__('No')?></td>
|
111 |
+
</tr>
|
112 |
+
</table>
|
113 |
+
</fieldset>
|
114 |
+
<h4 class="icon-head head-edit-form fieldset-legend"><?php echo $this->__('Flag orders to 1')?></h4>
|
115 |
+
<fieldset id="my-fieldset">
|
116 |
+
<table cellspacing="1" class="form-list">
|
117 |
+
<tr>
|
118 |
+
<td class="label"><?php echo $this->__('Flag all orders to 1')?></td>
|
119 |
+
<td class="input-ele"><input type="radio" class="input-radio" name="debug[flag]" value="yes" /><?php echo $this->__('Yes')?></td>
|
120 |
+
<td> </td>
|
121 |
+
<td class="input-ele"><input type="radio" class="input-radio" name="debug[flag]" value="no" /><?php echo $this->__('No')?></td>
|
122 |
+
</tr>
|
123 |
+
</table>
|
124 |
+
</fieldset>
|
125 |
+
<h4 class="icon-head head-edit-form fieldset-legend"><?php echo $this->__('Add missing fields')?></h4>
|
126 |
+
<fieldset id="my-fieldset">
|
127 |
+
<table cellspacing="1" class="form-list">
|
128 |
+
<tr>
|
129 |
+
<td class="label"><?php echo $this->__('Add missing fields')?></td>
|
130 |
+
<td class="input-ele"><input type="radio" class="input-radio" name="debug[fields]" value="yes" /><?php echo $this->__('Yes')?></td>
|
131 |
+
<td> </td>
|
132 |
+
<td class="input-ele"><input type="radio" class="input-radio" name="debug[fields]" value="no" /><?php echo $this->__('No')?></td>
|
133 |
+
</tr>
|
134 |
+
</table>
|
135 |
+
</fieldset>
|
136 |
+
<?php if(!$this->getData('isOldVersion')): ?>
|
137 |
+
<h4 class="icon-head head-edit-form fieldset-legend"><?php echo $this->__('Check order configuration')?></h4>
|
138 |
+
<fieldset id="my-fieldset">
|
139 |
+
<table cellspacing="1" class="form-list">
|
140 |
+
<tr>
|
141 |
+
<td class="label"><?php echo $this->__('check order configuration parent child relation')?></td>
|
142 |
+
<td class="input-ele"><input type="text" class="input-text" name="debug[order]" /></td>
|
143 |
+
</tr>
|
144 |
+
</table>
|
145 |
+
</fieldset>
|
146 |
+
<?php endif;?>
|
147 |
+
</form>
|
148 |
+
</div>
|
149 |
+
<script type="text/javascript">
|
150 |
+
var editForm = new varienForm('edit_form');
|
151 |
+
</script>
|
app/design/frontend/base/default/template/avisverifies/admin/checkinstallation_tab.phtml
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
<h3>
|
3 |
+
<?php echo $this->__('Verified Reviews Tabs') ?>
|
4 |
+
</h3>
|
5 |
+
<ul id="edit_home_tabs" class="tabs">
|
6 |
+
<li>
|
7 |
+
<a style="cursor: default;" id="edit_home_tabs_export" name="export" title="Exporter" class="tab-item-link active">
|
8 |
+
<span style="cursor: default;">
|
9 |
+
<?php echo $this->__('Check Installation') ?>
|
10 |
+
</span>
|
11 |
+
</a>
|
12 |
+
</li>
|
13 |
+
</ul>
|
app/design/frontend/base/default/template/avisverifies/catalogProductList.phtml
ADDED
@@ -0,0 +1,89 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php if(Netreviews_Avisverifies_Helper_Data::isActive() && Netreviews_Avisverifies_Helper_Data::addReviewToProductPage()): // Our Display. ?>
|
2 |
+
<?php $p = ($this->getRequest()->getParam('p'))? (int) $this->getRequest()->getParam('p') : 1; ?>
|
3 |
+
<?php $o_av = Mage::getModel('avisverifies/reviews'); // our custom reviews model ?>
|
4 |
+
<?php $ProductId = $this->getProductId(); ?>
|
5 |
+
<?php // to use same code. we are going to call first page from our code. ?>
|
6 |
+
<?php $ProductId =($ProductId != 0)? $ProductId : $this->getData('productId'); ?>
|
7 |
+
<?php // to use same code. we are going to call first page from our code. ?>
|
8 |
+
<?php $o_av->idProduct = $ProductId; ?>
|
9 |
+
<?php $o_av->page = $p; ?>
|
10 |
+
<?php $statsProduct = $o_av->getStatsProduct(); ?>
|
11 |
+
<?php $countReviews = $statsProduct->getData('nb_reviews'); ?>
|
12 |
+
<?php $getNote = $o_av->formatNote($statsProduct->getData('rate')); ?>
|
13 |
+
<?php $maxPages = $o_av->getProductReviews(); ?>
|
14 |
+
<?php $maxPages = $maxPages->getLastPageNumber();?>
|
15 |
+
|
16 |
+
<?php $richSnipet = array('','',''); ?>
|
17 |
+
<?php // $richSnipet[0] = ' itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating" '?>
|
18 |
+
<?php // $richSnipet[1] = ' itemprop="ratingValue" '?>
|
19 |
+
<?php // $richSnipet[2] = ' itemprop="reviewCount" '?>
|
20 |
+
|
21 |
+
<?php // $_product_AV = Mage::getModel('avisverifies/product')->load($ProductId); ?>
|
22 |
+
|
23 |
+
<?php if($countReviews): ?>
|
24 |
+
<div class="box-collateral box-reviews" id="customer-reviews">
|
25 |
+
<?php // info pour le js ajax ?>
|
26 |
+
<?php $tmp = Mage::getUrl('AvisVerifies/index/ajaxload', array('id_product' => $ProductId)) ?>
|
27 |
+
<input id="avisVarifiesAjaxUrl" type="hidden" value="<?php echo $tmp ?>" />
|
28 |
+
<?php // info pour le js ajax ?>
|
29 |
+
<div id="av_more_info_tabs"></div>
|
30 |
+
<div class="clear"></div>
|
31 |
+
<div id="idTabavisverifies">
|
32 |
+
<div id="headerAV">
|
33 |
+
<a name="hautavreview"></a>
|
34 |
+
<?php echo $this->__('Product Reviews')?>
|
35 |
+
</div>
|
36 |
+
<?php $skinUrl = $this->getSkinUrl('images/avisverifies/Sceau_45'.Mage::app()->getLocale()->getLocaleCode().'.png') ?>
|
37 |
+
<div id="under-headerAV" style="background: url('<?php echo $skinUrl ?>') no-repeat #f1f1f1;">
|
38 |
+
<div id="aggregateRatingAV" <?php echo $richSnipet[0] ?>>
|
39 |
+
<div>
|
40 |
+
<b><?php echo $this->__('Number of reviews')?></b>
|
41 |
+
: <span <?php echo $richSnipet[2] ?>><?php echo $countReviews?></span>
|
42 |
+
</div>
|
43 |
+
<div>
|
44 |
+
<b><?php echo $this->__('Average rating')?></b>
|
45 |
+
: <span <?php echo $richSnipet[1] ?>><?php echo $getNote?></span> /5
|
46 |
+
<div class="ratingWrapper" style="display:inline-block;">
|
47 |
+
<div class="ratingInner" style="width:<?php echo ($getNote*20)."%"?>;"></div>
|
48 |
+
</div>
|
49 |
+
</div>
|
50 |
+
</div>
|
51 |
+
<div id="certificatAV">
|
52 |
+
<div>
|
53 |
+
<?php $href = Mage::getStoreConfig('avisverifies/system/urlcertificat'); ?>
|
54 |
+
<a href="<?php echo $href ?>" target="_blank" class="display_certificat_review" >
|
55 |
+
<?php echo $this->__('View the trust certificate')?>
|
56 |
+
</a>
|
57 |
+
</div>
|
58 |
+
</div>
|
59 |
+
<div class="clear"></div>
|
60 |
+
</div>
|
61 |
+
<div id="ajax_comment_content">
|
62 |
+
<?php echo Mage::app()->getLayout()->createBlock('core/template')
|
63 |
+
->setData('productId',$ProductId)->setTemplate('avisverifies/pagination.phtml')
|
64 |
+
->toHtml(); ?>
|
65 |
+
</div>
|
66 |
+
<?php if($maxPages > 1): ?>
|
67 |
+
<button onclick="window.avisVerifies.Ajax()" id="av_load_next_page" data-page="1" data-page-last="<?php echo $maxPages ?>">
|
68 |
+
<?php echo $this->__('More Reviews...')?>
|
69 |
+
</button>
|
70 |
+
<img id="avisVarifiesAjaxImage" src="<?php echo $this->getSkinUrl('images/avisverifies/pagination-loader.gif')?>" style="display:none;margin: 10px 0px 0px 10px;" />
|
71 |
+
<?php endif; ?>
|
72 |
+
</div>
|
73 |
+
<div class="clear"></div>
|
74 |
+
</div>
|
75 |
+
<?php else: ?>
|
76 |
+
<div class="box-collateral box-reviews" id="customer-reviews">
|
77 |
+
<div id="idTabavisverifies">
|
78 |
+
<div id="headerAV">
|
79 |
+
<a name="hautavreview"></a>
|
80 |
+
<?php echo $this->__('Product Reviews')?>
|
81 |
+
</div>
|
82 |
+
<?php $skinUrl = $this->getSkinUrl('images/avisverifies/Sceau_45'.Mage::app()->getLocale()->getLocaleCode().'.png') ?>
|
83 |
+
<div id="under-headerAV" style="background: url('<?php echo $skinUrl ?>') no-repeat #f1f1f1;">
|
84 |
+
<p style="padding: 17px 40px 40px 56px;"><?php echo $this->__("No reviews for this product.")?></p>
|
85 |
+
</div>
|
86 |
+
</div>
|
87 |
+
</div>
|
88 |
+
<?php endif; ?>
|
89 |
+
<?php endif; ?>
|
app/design/frontend/base/default/template/avisverifies/css.phtml
ADDED
@@ -0,0 +1,214 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php if(Netreviews_Avisverifies_Helper_Data::isActive()): // Our Display. ?>
|
2 |
+
<style type="text/css">
|
3 |
+
#idTabavisverifies{
|
4 |
+
margin-top: 15px;
|
5 |
+
color:#5d717e;
|
6 |
+
}
|
7 |
+
#idTabavisverifies a{
|
8 |
+
color:#5d717e;
|
9 |
+
text-decoration: none;
|
10 |
+
}
|
11 |
+
#idTabavisverifies p{
|
12 |
+
margin:0;
|
13 |
+
padding:0;
|
14 |
+
}
|
15 |
+
#idTabavisverifies div.ratingWrapper{
|
16 |
+
background:url('<?php echo $this->getSkinUrl('images/avisverifies/mini_etoile_empty.png')?>') no-repeat left bottom;
|
17 |
+
/*display:inline-block;*/
|
18 |
+
height: 12px;
|
19 |
+
width: 70px;
|
20 |
+
}
|
21 |
+
#idTabavisverifies div.ratingInner{
|
22 |
+
background:url('<?php echo $this->getSkinUrl('images/avisverifies/mini_etoile_full.png')?>') no-repeat left bottom transparent;
|
23 |
+
/*display:inline-block;*/
|
24 |
+
height: 12px;
|
25 |
+
}
|
26 |
+
#idTabavisverifies .triangle-border {
|
27 |
+
position: relative;
|
28 |
+
padding: 12px;
|
29 |
+
margin: 14px 0 3px 0;
|
30 |
+
border: 2px solid #DDD;
|
31 |
+
color: #000;
|
32 |
+
background: #fff;
|
33 |
+
-webkit-border-radius: 10px;
|
34 |
+
-moz-border-radius: 10px;
|
35 |
+
border-radius: 10px;
|
36 |
+
}
|
37 |
+
#idTabavisverifies .triangle-border.answer{
|
38 |
+
margin-left: 20px;
|
39 |
+
color:#808080;
|
40 |
+
}
|
41 |
+
#idTabavisverifies .triangle-border.top::before {
|
42 |
+
top: -16px;
|
43 |
+
bottom: auto;
|
44 |
+
right: auto;
|
45 |
+
left: 46px;
|
46 |
+
border-width: 0 14px 14px;
|
47 |
+
}
|
48 |
+
#idTabavisverifies .triangle-border::before {
|
49 |
+
content: "";
|
50 |
+
position: absolute;
|
51 |
+
bottom: -20px;
|
52 |
+
right: 40px;
|
53 |
+
border-width: 20px 20px 0;
|
54 |
+
border-style: solid;
|
55 |
+
border-color: #DDD transparent;
|
56 |
+
display: block;
|
57 |
+
width: 0;
|
58 |
+
}
|
59 |
+
#idTabavisverifies .triangle-border.top::after {
|
60 |
+
top: -13px;
|
61 |
+
bottom: auto;
|
62 |
+
right: auto;
|
63 |
+
left: 47px;
|
64 |
+
border-width: 0 13px 13px;
|
65 |
+
}
|
66 |
+
#idTabavisverifies .triangle-border::after {
|
67 |
+
content: "";
|
68 |
+
position: absolute;
|
69 |
+
bottom: -13px;
|
70 |
+
left: 47px;
|
71 |
+
border-width: 13px 13px 0;
|
72 |
+
border-style: solid;
|
73 |
+
border-color: #fff transparent;
|
74 |
+
display: block;
|
75 |
+
width: 0;
|
76 |
+
}
|
77 |
+
|
78 |
+
#idTabavisverifies .triangle-border.answer {
|
79 |
+
padding-left: 20px;
|
80 |
+
}
|
81 |
+
.clear{
|
82 |
+
clear: both;
|
83 |
+
}
|
84 |
+
#idTabavisverifies #headerAV{
|
85 |
+
display: block;
|
86 |
+
background-color: #474747;
|
87 |
+
height:30px;
|
88 |
+
-webkit-border-top-left-radius: 10px;
|
89 |
+
-webkit-border-top-right-radius: 10px;
|
90 |
+
-moz-border-radius-topleft: 10px;
|
91 |
+
-moz-border-radius-topright: 10px;
|
92 |
+
border-top-left-radius: 10px;
|
93 |
+
border-top-right-radius: 10px;
|
94 |
+
text-align: center;
|
95 |
+
line-height: 30px;
|
96 |
+
color:white;
|
97 |
+
text-transform: uppercase;
|
98 |
+
font-size: 14px;
|
99 |
+
}
|
100 |
+
#idTabavisverifies #under-headerAV{
|
101 |
+
display: block;
|
102 |
+
height: 50px;
|
103 |
+
}
|
104 |
+
#idTabavisverifies #under-headerAV{
|
105 |
+
}
|
106 |
+
#idTabavisverifies div#aggregateRatingAV {
|
107 |
+
list-style: none;
|
108 |
+
margin-left: 50px;
|
109 |
+
padding-top: 10px;
|
110 |
+
float: left;
|
111 |
+
}
|
112 |
+
#idTabavisverifies div#certificatAV{
|
113 |
+
float: right;
|
114 |
+
list-style: none;
|
115 |
+
padding-top: 10px;
|
116 |
+
padding-right: 10px;
|
117 |
+
}
|
118 |
+
#idTabavisverifies .reviewAV {
|
119 |
+
padding-bottom: 20px;
|
120 |
+
border-top: 3px solid white;
|
121 |
+
}
|
122 |
+
#idTabavisverifies .reviewAV div.reviewInfosAV{
|
123 |
+
list-style: none;
|
124 |
+
margin-top: 15px;
|
125 |
+
margin-left: 0;
|
126 |
+
margin-right: 0;
|
127 |
+
margin-bottom: 0;
|
128 |
+
}
|
129 |
+
#idTabavisverifies .reviewAV div.reviewInfosAV > div{
|
130 |
+
display: inline-block;
|
131 |
+
height: 25px;
|
132 |
+
}
|
133 |
+
#idTabavisverifies .reviewAV div.reviewInfosAV div.rateAV{
|
134 |
+
font-weight: bold;
|
135 |
+
font-size: 14px;
|
136 |
+
}
|
137 |
+
#idTabavisverifies .reviewAV div.reviewInfosAV div.rateAV img{
|
138 |
+
margin-top:1px;
|
139 |
+
}
|
140 |
+
#idTabavisverifies .triangle-border.answer p.answer-bodyAV{
|
141 |
+
margin: 10px 0 0 0 ;
|
142 |
+
}
|
143 |
+
|
144 |
+
#idTabavisverifies #ajax_comment_content{
|
145 |
+
background-color:#f1f1f1;
|
146 |
+
padding: 10px;
|
147 |
+
}
|
148 |
+
/* ExtraRight */
|
149 |
+
#av_product_award{
|
150 |
+
height:70px;
|
151 |
+
background-color: #e6e6e6;
|
152 |
+
border: solid 1px #b6b6b6;
|
153 |
+
border-radius: 15px;
|
154 |
+
position: relative;
|
155 |
+
padding: 2px;
|
156 |
+
margin-top: 20px;
|
157 |
+
max-width: 260px;
|
158 |
+
}
|
159 |
+
#av_product_award img#sceau{
|
160 |
+
position: absolute;
|
161 |
+
right:-15px;
|
162 |
+
top:-12px;
|
163 |
+
width: 90px;
|
164 |
+
}
|
165 |
+
#av_product_award #bottom{
|
166 |
+
background: #f7ad26; /* Old browsers */
|
167 |
+
background: -moz-linear-gradient(top, #f7ad26 1%, #f49112 100%); /* FF3.6+ */
|
168 |
+
background: -webkit-gradient(linear, left top, left bottom, color-stop(1%,#f7ad26), color-stop(100%,#f49112)); /* Chrome,Safari4+ */
|
169 |
+
background: -webkit-linear-gradient(top, #f7ad26 1%,#f49112 100%); /* Chrome10+,Safari5.1+ */
|
170 |
+
background: -o-linear-gradient(top, #f7ad26 1%,#f49112 100%); /* Opera 11.10+ */
|
171 |
+
background: -ms-linear-gradient(top, #f7ad26 1%,#f49112 100%); /* IE10+ */
|
172 |
+
background: linear-gradient(to bottom, #f7ad26 1%,#f49112 100%); /* W3C */
|
173 |
+
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f7ad26', endColorstr='#f49112',GradientType=0 ); /* IE6-9 */
|
174 |
+
height: 20px;
|
175 |
+
border-bottom-right-radius: inherit;
|
176 |
+
border-bottom-left-radius: inherit;
|
177 |
+
position: absolute;
|
178 |
+
bottom: 2px;
|
179 |
+
width:90%;
|
180 |
+
}
|
181 |
+
#av_product_award #bottom a{
|
182 |
+
color:black;
|
183 |
+
margin-left: 56px;
|
184 |
+
margin-top: 3px;
|
185 |
+
font-weight: normal;
|
186 |
+
display: block;
|
187 |
+
}
|
188 |
+
#av_product_award #top {
|
189 |
+
width: 68%;
|
190 |
+
text-align: center;
|
191 |
+
padding-top:6px;
|
192 |
+
}
|
193 |
+
#av_product_award #top b{
|
194 |
+
display: block;
|
195 |
+
}
|
196 |
+
/* ratingWrapper et ratingInner utilis� dans ExtraRight et product_list.tpl*/
|
197 |
+
div.ratingWrapper{
|
198 |
+
background:url('<?php echo $this->getSkinUrl('images/avisverifies/etoile0.png')?>') no-repeat left bottom;
|
199 |
+
display:inline-block;
|
200 |
+
height: 21px;
|
201 |
+
width: 120px;
|
202 |
+
text-align: left;
|
203 |
+
}
|
204 |
+
div.ratingInner{
|
205 |
+
background:url('<?php echo $this->getSkinUrl('images/avisverifies/etoile5.png')?>') no-repeat left bottom transparent;
|
206 |
+
display:inline-block;
|
207 |
+
height: 21px;
|
208 |
+
text-align: left;
|
209 |
+
}
|
210 |
+
/* FIN ratingWrapper et ratingInner utilis� dans ExtraRight et product_list.tpl*/
|
211 |
+
#av_load_next_page{color:#5d717e;text-decoration:none;display:inline-block;padding:4px 14px;margin-bottom:0;font-size:12px;line-height:20px;color:#272822;text-align:center;text-shadow:0 1px 1px rgba(255,255,255,.75);vertical-align:middle;cursor:pointer;background-color:#f5f5f5;background-image:-webkit-gradient(linear,0 0,0 100%,from(#fff),to(#e6e6e6));background-image:-webkit-linear-gradient(top,#fff,#e6e6e6);background-image:-o-linear-gradient(top,#fff,#e6e6e6);background-image:linear-gradient(to bottom,#fff,#e6e6e6);background-image:-moz-linear-gradient(top,#fff,#e6e6e6);background-repeat:repeat-x;border:1px solid #bbb;border-color:rgba(0,0,0,.1) rgba(0,0,0,.1) rgba(0,0,0,.25);border-color:#e6e6e6 #e6e6e6 #bfbfbf;border-bottom-color:#a2a2a2;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;filter:progid:dximagetransform.microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffe6e6e6', GradientType=0);filter:progid:dximagetransform.microsoft.gradient(enabled=false);-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 1px 2px rgba(0,0,0,.05);-moz-box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 1px 2px rgba(0,0,0,.05);box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 1px 2px rgba(0,0,0,.05);margin-top:10px;}
|
212 |
+
/* FIN ExtraRight */
|
213 |
+
</style>
|
214 |
+
<?php endif;?>
|
app/design/frontend/base/default/template/avisverifies/float.phtml
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php // Important: this block is called on the head block area. ?>
|
2 |
+
<?php $SCRIPTFIXE_ALLOWED = (Mage::getStoreConfig(strtolower('avisverifies/system/SCRIPTFLOAT_ALLOWED'))=='yes') ?>
|
3 |
+
<?php if($SCRIPTFIXE_ALLOWED): ?>
|
4 |
+
<?php echo Mage::getStoreConfig(strtolower('avisverifies/system/SCRIPTFLOAT')) ?>
|
5 |
+
<?php endif;?>
|
6 |
+
|
7 |
+
<!-- Widget Flottant 1 en position 1 -->
|
app/design/frontend/base/default/template/avisverifies/js.phtml
ADDED
@@ -0,0 +1,79 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php if(Netreviews_Avisverifies_Helper_Data::isActive()): // Our Display. ?>
|
2 |
+
<?php $nojQuery = !Netreviews_Avisverifies_Helper_Data::hasjQuery(); ?>
|
3 |
+
<script type="text/javascript">
|
4 |
+
<?php if($nojQuery): ?>
|
5 |
+
/*! jQuery v1.11.0 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */
|
6 |
+
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=c.slice,e=c.concat,f=c.push,g=c.indexOf,h={},i=h.toString,j=h.hasOwnProperty,k="".trim,l={},m="1.11.0",n=function(a,b){return new n.fn.init(a,b)},o=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,p=/^-ms-/,q=/-([\da-z])/gi,r=function(a,b){return b.toUpperCase()};n.fn=n.prototype={jquery:m,constructor:n,selector:"",length:0,toArray:function(){return d.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:d.call(this)},pushStack:function(a){var b=n.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a,b){return n.each(this,a,b)},map:function(a){return this.pushStack(n.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(d.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(0>a?b:0);return this.pushStack(c>=0&&b>c?[this[c]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:f,sort:c.sort,splice:c.splice},n.extend=n.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||n.isFunction(g)||(g={}),h===i&&(g=this,h--);i>h;h++)if(null!=(e=arguments[h]))for(d in e)a=g[d],c=e[d],g!==c&&(j&&c&&(n.isPlainObject(c)||(b=n.isArray(c)))?(b?(b=!1,f=a&&n.isArray(a)?a:[]):f=a&&n.isPlainObject(a)?a:{},g[d]=n.extend(j,f,c)):void 0!==c&&(g[d]=c));return g},n.extend({expando:"jQuery"+(m+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===n.type(a)},isArray:Array.isArray||function(a){return"array"===n.type(a)},isWindow:function(a){return null!=a&&a==a.window},isNumeric:function(a){return a-parseFloat(a)>=0},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},isPlainObject:function(a){var b;if(!a||"object"!==n.type(a)||a.nodeType||n.isWindow(a))return!1;try{if(a.constructor&&!j.call(a,"constructor")&&!j.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}if(l.ownLast)for(b in a)return j.call(a,b);for(b in a);return void 0===b||j.call(a,b)},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?h[i.call(a)]||"object":typeof a},globalEval:function(b){b&&n.trim(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(p,"ms-").replace(q,r)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b,c){var d,e=0,f=a.length,g=s(a);if(c){if(g){for(;f>e;e++)if(d=b.apply(a[e],c),d===!1)break}else for(e in a)if(d=b.apply(a[e],c),d===!1)break}else if(g){for(;f>e;e++)if(d=b.call(a[e],e,a[e]),d===!1)break}else for(e in a)if(d=b.call(a[e],e,a[e]),d===!1)break;return a},trim:k&&!k.call("\ufeff\xa0")?function(a){return null==a?"":k.call(a)}:function(a){return null==a?"":(a+"").replace(o,"")},makeArray:function(a,b){var c=b||[];return null!=a&&(s(Object(a))?n.merge(c,"string"==typeof a?[a]:a):f.call(c,a)),c},inArray:function(a,b,c){var d;if(b){if(g)return g.call(b,a,c);for(d=b.length,c=c?0>c?Math.max(0,d+c):c:0;d>c;c++)if(c in b&&b[c]===a)return c}return-1},merge:function(a,b){var c=+b.length,d=0,e=a.length;while(c>d)a[e++]=b[d++];if(c!==c)while(void 0!==b[d])a[e++]=b[d++];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;g>f;f++)d=!b(a[f],f),d!==h&&e.push(a[f]);return e},map:function(a,b,c){var d,f=0,g=a.length,h=s(a),i=[];if(h)for(;g>f;f++)d=b(a[f],f,c),null!=d&&i.push(d);else for(f in a)d=b(a[f],f,c),null!=d&&i.push(d);return e.apply([],i)},guid:1,proxy:function(a,b){var c,e,f;return"string"==typeof b&&(f=a[b],b=a,a=f),n.isFunction(a)?(c=d.call(arguments,2),e=function(){return a.apply(b||this,c.concat(d.call(arguments)))},e.guid=a.guid=a.guid||n.guid++,e):void 0},now:function(){return+new Date},support:l}),n.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(a,b){h["[object "+b+"]"]=b.toLowerCase()});function s(a){var b=a.length,c=n.type(a);return"function"===c||n.isWindow(a)?!1:1===a.nodeType&&b?!0:"array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a}var t=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s="sizzle"+-new Date,t=a.document,u=0,v=0,w=eb(),x=eb(),y=eb(),z=function(a,b){return a===b&&(j=!0),0},A="undefined",B=1<<31,C={}.hasOwnProperty,D=[],E=D.pop,F=D.push,G=D.push,H=D.slice,I=D.indexOf||function(a){for(var b=0,c=this.length;c>b;b++)if(this[b]===a)return b;return-1},J="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",K="[\\x20\\t\\r\\n\\f]",L="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",M=L.replace("w","w#"),N="\\["+K+"*("+L+")"+K+"*(?:([*^$|!~]?=)"+K+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+M+")|)|)"+K+"*\\]",O=":("+L+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+N.replace(3,8)+")*)|.*)\\)|)",P=new RegExp("^"+K+"+|((?:^|[^\\\\])(?:\\\\.)*)"+K+"+$","g"),Q=new RegExp("^"+K+"*,"+K+"*"),R=new RegExp("^"+K+"*([>+~]|"+K+")"+K+"*"),S=new RegExp("="+K+"*([^\\]'\"]*?)"+K+"*\\]","g"),T=new RegExp(O),U=new RegExp("^"+M+"$"),V={ID:new RegExp("^#("+L+")"),CLASS:new RegExp("^\\.("+L+")"),TAG:new RegExp("^("+L.replace("w","w*")+")"),ATTR:new RegExp("^"+N),PSEUDO:new RegExp("^"+O),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+K+"*(even|odd|(([+-]|)(\\d*)n|)"+K+"*(?:([+-]|)"+K+"*(\\d+)|))"+K+"*\\)|)","i"),bool:new RegExp("^(?:"+J+")$","i"),needsContext:new RegExp("^"+K+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+K+"*((?:-\\d)?\\d*)"+K+"*\\)|)(?=[^-]|$)","i")},W=/^(?:input|select|textarea|button)$/i,X=/^h\d$/i,Y=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,$=/[+~]/,_=/'|\\/g,ab=new RegExp("\\\\([\\da-f]{1,6}"+K+"?|("+K+")|.)","ig"),bb=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:0>d?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)};try{G.apply(D=H.call(t.childNodes),t.childNodes),D[t.childNodes.length].nodeType}catch(cb){G={apply:D.length?function(a,b){F.apply(a,H.call(b))}:function(a,b){var c=a.length,d=0;while(a[c++]=b[d++]);a.length=c-1}}}function db(a,b,d,e){var f,g,h,i,j,m,p,q,u,v;if((b?b.ownerDocument||b:t)!==l&&k(b),b=b||l,d=d||[],!a||"string"!=typeof a)return d;if(1!==(i=b.nodeType)&&9!==i)return[];if(n&&!e){if(f=Z.exec(a))if(h=f[1]){if(9===i){if(g=b.getElementById(h),!g||!g.parentNode)return d;if(g.id===h)return d.push(g),d}else if(b.ownerDocument&&(g=b.ownerDocument.getElementById(h))&&r(b,g)&&g.id===h)return d.push(g),d}else{if(f[2])return G.apply(d,b.getElementsByTagName(a)),d;if((h=f[3])&&c.getElementsByClassName&&b.getElementsByClassName)return G.apply(d,b.getElementsByClassName(h)),d}if(c.qsa&&(!o||!o.test(a))){if(q=p=s,u=b,v=9===i&&a,1===i&&"object"!==b.nodeName.toLowerCase()){m=ob(a),(p=b.getAttribute("id"))?q=p.replace(_,"\\$&"):b.setAttribute("id",q),q="[id='"+q+"'] ",j=m.length;while(j--)m[j]=q+pb(m[j]);u=$.test(a)&&mb(b.parentNode)||b,v=m.join(",")}if(v)try{return G.apply(d,u.querySelectorAll(v)),d}catch(w){}finally{p||b.removeAttribute("id")}}}return xb(a.replace(P,"$1"),b,d,e)}function eb(){var a=[];function b(c,e){return a.push(c+" ")>d.cacheLength&&delete b[a.shift()],b[c+" "]=e}return b}function fb(a){return a[s]=!0,a}function gb(a){var b=l.createElement("div");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function hb(a,b){var c=a.split("|"),e=a.length;while(e--)d.attrHandle[c[e]]=b}function ib(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&(~b.sourceIndex||B)-(~a.sourceIndex||B);if(d)return d;if(c)while(c=c.nextSibling)if(c===b)return-1;return a?1:-1}function jb(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function kb(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function lb(a){return fb(function(b){return b=+b,fb(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function mb(a){return a&&typeof a.getElementsByTagName!==A&&a}c=db.support={},f=db.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return b?"HTML"!==b.nodeName:!1},k=db.setDocument=function(a){var b,e=a?a.ownerDocument||a:t,g=e.defaultView;return e!==l&&9===e.nodeType&&e.documentElement?(l=e,m=e.documentElement,n=!f(e),g&&g!==g.top&&(g.addEventListener?g.addEventListener("unload",function(){k()},!1):g.attachEvent&&g.attachEvent("onunload",function(){k()})),c.attributes=gb(function(a){return a.className="i",!a.getAttribute("className")}),c.getElementsByTagName=gb(function(a){return a.appendChild(e.createComment("")),!a.getElementsByTagName("*").length}),c.getElementsByClassName=Y.test(e.getElementsByClassName)&&gb(function(a){return a.innerHTML="<div class='a'></div><div class='a i'></div>",a.firstChild.className="i",2===a.getElementsByClassName("i").length}),c.getById=gb(function(a){return m.appendChild(a).id=s,!e.getElementsByName||!e.getElementsByName(s).length}),c.getById?(d.find.ID=function(a,b){if(typeof b.getElementById!==A&&n){var c=b.getElementById(a);return c&&c.parentNode?[c]:[]}},d.filter.ID=function(a){var b=a.replace(ab,bb);return function(a){return a.getAttribute("id")===b}}):(delete d.find.ID,d.filter.ID=function(a){var b=a.replace(ab,bb);return function(a){var c=typeof a.getAttributeNode!==A&&a.getAttributeNode("id");return c&&c.value===b}}),d.find.TAG=c.getElementsByTagName?function(a,b){return typeof b.getElementsByTagName!==A?b.getElementsByTagName(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){while(c=f[e++])1===c.nodeType&&d.push(c);return d}return f},d.find.CLASS=c.getElementsByClassName&&function(a,b){return typeof b.getElementsByClassName!==A&&n?b.getElementsByClassName(a):void 0},p=[],o=[],(c.qsa=Y.test(e.querySelectorAll))&&(gb(function(a){a.innerHTML="<select t=''><option selected=''></option></select>",a.querySelectorAll("[t^='']").length&&o.push("[*^$]="+K+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||o.push("\\["+K+"*(?:value|"+J+")"),a.querySelectorAll(":checked").length||o.push(":checked")}),gb(function(a){var b=e.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&o.push("name"+K+"*[*^$|!~]?="),a.querySelectorAll(":enabled").length||o.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),o.push(",.*:")})),(c.matchesSelector=Y.test(q=m.webkitMatchesSelector||m.mozMatchesSelector||m.oMatchesSelector||m.msMatchesSelector))&&gb(function(a){c.disconnectedMatch=q.call(a,"div"),q.call(a,"[s!='']:x"),p.push("!=",O)}),o=o.length&&new RegExp(o.join("|")),p=p.length&&new RegExp(p.join("|")),b=Y.test(m.compareDocumentPosition),r=b||Y.test(m.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)while(b=b.parentNode)if(b===a)return!0;return!1},z=b?function(a,b){if(a===b)return j=!0,0;var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d?d:(d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&d||!c.sortDetached&&b.compareDocumentPosition(a)===d?a===e||a.ownerDocument===t&&r(t,a)?-1:b===e||b.ownerDocument===t&&r(t,b)?1:i?I.call(i,a)-I.call(i,b):0:4&d?-1:1)}:function(a,b){if(a===b)return j=!0,0;var c,d=0,f=a.parentNode,g=b.parentNode,h=[a],k=[b];if(!f||!g)return a===e?-1:b===e?1:f?-1:g?1:i?I.call(i,a)-I.call(i,b):0;if(f===g)return ib(a,b);c=a;while(c=c.parentNode)h.unshift(c);c=b;while(c=c.parentNode)k.unshift(c);while(h[d]===k[d])d++;return d?ib(h[d],k[d]):h[d]===t?-1:k[d]===t?1:0},e):l},db.matches=function(a,b){return db(a,null,null,b)},db.matchesSelector=function(a,b){if((a.ownerDocument||a)!==l&&k(a),b=b.replace(S,"='$1']"),!(!c.matchesSelector||!n||p&&p.test(b)||o&&o.test(b)))try{var d=q.call(a,b);if(d||c.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(e){}return db(b,l,null,[a]).length>0},db.contains=function(a,b){return(a.ownerDocument||a)!==l&&k(a),r(a,b)},db.attr=function(a,b){(a.ownerDocument||a)!==l&&k(a);var e=d.attrHandle[b.toLowerCase()],f=e&&C.call(d.attrHandle,b.toLowerCase())?e(a,b,!n):void 0;return void 0!==f?f:c.attributes||!n?a.getAttribute(b):(f=a.getAttributeNode(b))&&f.specified?f.value:null},db.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},db.uniqueSort=function(a){var b,d=[],e=0,f=0;if(j=!c.detectDuplicates,i=!c.sortStable&&a.slice(0),a.sort(z),j){while(b=a[f++])b===a[f]&&(e=d.push(f));while(e--)a.splice(d[e],1)}return i=null,a},e=db.getText=function(a){var b,c="",d=0,f=a.nodeType;if(f){if(1===f||9===f||11===f){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=e(a)}else if(3===f||4===f)return a.nodeValue}else while(b=a[d++])c+=e(b);return c},d=db.selectors={cacheLength:50,createPseudo:fb,match:V,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(ab,bb),a[3]=(a[4]||a[5]||"").replace(ab,bb),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||db.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&db.error(a[0]),a},PSEUDO:function(a){var b,c=!a[5]&&a[2];return V.CHILD.test(a[0])?null:(a[3]&&void 0!==a[4]?a[2]=a[4]:c&&T.test(c)&&(b=ob(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(ab,bb).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=w[a+" "];return b||(b=new RegExp("(^|"+K+")"+a+"("+K+"|$)"))&&w(a,function(a){return b.test("string"==typeof a.className&&a.className||typeof a.getAttribute!==A&&a.getAttribute("class")||"")})},ATTR:function(a,b,c){return function(d){var e=db.attr(d,a);return null==e?"!="===b:b?(e+="","="===b?e===c:"!="===b?e!==c:"^="===b?c&&0===e.indexOf(c):"*="===b?c&&e.indexOf(c)>-1:"$="===b?c&&e.slice(-c.length)===c:"~="===b?(" "+e+" ").indexOf(c)>-1:"|="===b?e===c||e.slice(0,c.length+1)===c+"-":!1):!0}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),t=!i&&!h;if(q){if(f){while(p){l=b;while(l=l[p])if(h?l.nodeName.toLowerCase()===r:1===l.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&t){k=q[s]||(q[s]={}),j=k[a]||[],n=j[0]===u&&j[1],m=j[0]===u&&j[2],l=n&&q.childNodes[n];while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if(1===l.nodeType&&++m&&l===b){k[a]=[u,n,m];break}}else if(t&&(j=(b[s]||(b[s]={}))[a])&&j[0]===u)m=j[1];else while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if((h?l.nodeName.toLowerCase()===r:1===l.nodeType)&&++m&&(t&&((l[s]||(l[s]={}))[a]=[u,m]),l===b))break;return m-=e,m===d||m%d===0&&m/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||db.error("unsupported pseudo: "+a);return e[s]?e(b):e.length>1?(c=[a,a,"",b],d.setFilters.hasOwnProperty(a.toLowerCase())?fb(function(a,c){var d,f=e(a,b),g=f.length;while(g--)d=I.call(a,f[g]),a[d]=!(c[d]=f[g])}):function(a){return e(a,0,c)}):e}},pseudos:{not:fb(function(a){var b=[],c=[],d=g(a.replace(P,"$1"));return d[s]?fb(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,e,f){return b[0]=a,d(b,null,f,c),!c.pop()}}),has:fb(function(a){return function(b){return db(a,b).length>0}}),contains:fb(function(a){return function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:fb(function(a){return U.test(a||"")||db.error("unsupported lang: "+a),a=a.replace(ab,bb).toLowerCase(),function(b){var c;do if(c=n?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===m},focus:function(a){return a===l.activeElement&&(!l.hasFocus||l.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:function(a){return a.disabled===!1},disabled:function(a){return a.disabled===!0},checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!d.pseudos.empty(a)},header:function(a){return X.test(a.nodeName)},input:function(a){return W.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:lb(function(){return[0]}),last:lb(function(a,b){return[b-1]}),eq:lb(function(a,b,c){return[0>c?c+b:c]}),even:lb(function(a,b){for(var c=0;b>c;c+=2)a.push(c);return a}),odd:lb(function(a,b){for(var c=1;b>c;c+=2)a.push(c);return a}),lt:lb(function(a,b,c){for(var d=0>c?c+b:c;--d>=0;)a.push(d);return a}),gt:lb(function(a,b,c){for(var d=0>c?c+b:c;++d<b;)a.push(d);return a})}},d.pseudos.nth=d.pseudos.eq;for(b in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})d.pseudos[b]=jb(b);for(b in{submit:!0,reset:!0})d.pseudos[b]=kb(b);function nb(){}nb.prototype=d.filters=d.pseudos,d.setFilters=new nb;function ob(a,b){var c,e,f,g,h,i,j,k=x[a+" "];if(k)return b?0:k.slice(0);h=a,i=[],j=d.preFilter;while(h){(!c||(e=Q.exec(h)))&&(e&&(h=h.slice(e[0].length)||h),i.push(f=[])),c=!1,(e=R.exec(h))&&(c=e.shift(),f.push({value:c,type:e[0].replace(P," ")}),h=h.slice(c.length));for(g in d.filter)!(e=V[g].exec(h))||j[g]&&!(e=j[g](e))||(c=e.shift(),f.push({value:c,type:g,matches:e}),h=h.slice(c.length));if(!c)break}return b?h.length:h?db.error(a):x(a,i).slice(0)}function pb(a){for(var b=0,c=a.length,d="";c>b;b++)d+=a[b].value;return d}function qb(a,b,c){var d=b.dir,e=c&&"parentNode"===d,f=v++;return b.first?function(b,c,f){while(b=b[d])if(1===b.nodeType||e)return a(b,c,f)}:function(b,c,g){var h,i,j=[u,f];if(g){while(b=b[d])if((1===b.nodeType||e)&&a(b,c,g))return!0}else while(b=b[d])if(1===b.nodeType||e){if(i=b[s]||(b[s]={}),(h=i[d])&&h[0]===u&&h[1]===f)return j[2]=h[2];if(i[d]=j,j[2]=a(b,c,g))return!0}}}function rb(a){return a.length>1?function(b,c,d){var e=a.length;while(e--)if(!a[e](b,c,d))return!1;return!0}:a[0]}function sb(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;i>h;h++)(f=a[h])&&(!c||c(f,d,e))&&(g.push(f),j&&b.push(h));return g}function tb(a,b,c,d,e,f){return d&&!d[s]&&(d=tb(d)),e&&!e[s]&&(e=tb(e,f)),fb(function(f,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=f||wb(b||"*",h.nodeType?[h]:h,[]),q=!a||!f&&b?p:sb(p,m,a,h,i),r=c?e||(f?a:o||d)?[]:g:q;if(c&&c(q,r,h,i),d){j=sb(r,n),d(j,[],h,i),k=j.length;while(k--)(l=j[k])&&(r[n[k]]=!(q[n[k]]=l))}if(f){if(e||a){if(e){j=[],k=r.length;while(k--)(l=r[k])&&j.push(q[k]=l);e(null,r=[],j,i)}k=r.length;while(k--)(l=r[k])&&(j=e?I.call(f,l):m[k])>-1&&(f[j]=!(g[j]=l))}}else r=sb(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):G.apply(g,r)})}function ub(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],i=g||d.relative[" "],j=g?1:0,k=qb(function(a){return a===b},i,!0),l=qb(function(a){return I.call(b,a)>-1},i,!0),m=[function(a,c,d){return!g&&(d||c!==h)||((b=c).nodeType?k(a,c,d):l(a,c,d))}];f>j;j++)if(c=d.relative[a[j].type])m=[qb(rb(m),c)];else{if(c=d.filter[a[j].type].apply(null,a[j].matches),c[s]){for(e=++j;f>e;e++)if(d.relative[a[e].type])break;return tb(j>1&&rb(m),j>1&&pb(a.slice(0,j-1).concat({value:" "===a[j-2].type?"*":""})).replace(P,"$1"),c,e>j&&ub(a.slice(j,e)),f>e&&ub(a=a.slice(e)),f>e&&pb(a))}m.push(c)}return rb(m)}function vb(a,b){var c=b.length>0,e=a.length>0,f=function(f,g,i,j,k){var m,n,o,p=0,q="0",r=f&&[],s=[],t=h,v=f||e&&d.find.TAG("*",k),w=u+=null==t?1:Math.random()||.1,x=v.length;for(k&&(h=g!==l&&g);q!==x&&null!=(m=v[q]);q++){if(e&&m){n=0;while(o=a[n++])if(o(m,g,i)){j.push(m);break}k&&(u=w)}c&&((m=!o&&m)&&p--,f&&r.push(m))}if(p+=q,c&&q!==p){n=0;while(o=b[n++])o(r,s,g,i);if(f){if(p>0)while(q--)r[q]||s[q]||(s[q]=E.call(j));s=sb(s)}G.apply(j,s),k&&!f&&s.length>0&&p+b.length>1&&db.uniqueSort(j)}return k&&(u=w,h=t),r};return c?fb(f):f}g=db.compile=function(a,b){var c,d=[],e=[],f=y[a+" "];if(!f){b||(b=ob(a)),c=b.length;while(c--)f=ub(b[c]),f[s]?d.push(f):e.push(f);f=y(a,vb(e,d))}return f};function wb(a,b,c){for(var d=0,e=b.length;e>d;d++)db(a,b[d],c);return c}function xb(a,b,e,f){var h,i,j,k,l,m=ob(a);if(!f&&1===m.length){if(i=m[0]=m[0].slice(0),i.length>2&&"ID"===(j=i[0]).type&&c.getById&&9===b.nodeType&&n&&d.relative[i[1].type]){if(b=(d.find.ID(j.matches[0].replace(ab,bb),b)||[])[0],!b)return e;a=a.slice(i.shift().value.length)}h=V.needsContext.test(a)?0:i.length;while(h--){if(j=i[h],d.relative[k=j.type])break;if((l=d.find[k])&&(f=l(j.matches[0].replace(ab,bb),$.test(i[0].type)&&mb(b.parentNode)||b))){if(i.splice(h,1),a=f.length&&pb(i),!a)return G.apply(e,f),e;break}}}return g(a,m)(f,b,!n,e,$.test(a)&&mb(b.parentNode)||b),e}return c.sortStable=s.split("").sort(z).join("")===s,c.detectDuplicates=!!j,k(),c.sortDetached=gb(function(a){return 1&a.compareDocumentPosition(l.createElement("div"))}),gb(function(a){return a.innerHTML="<a href='#'></a>","#"===a.firstChild.getAttribute("href")})||hb("type|href|height|width",function(a,b,c){return c?void 0:a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),c.attributes&&gb(function(a){return a.innerHTML="<input/>",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||hb("value",function(a,b,c){return c||"input"!==a.nodeName.toLowerCase()?void 0:a.defaultValue}),gb(function(a){return null==a.getAttribute("disabled")})||hb(J,function(a,b,c){var d;return c?void 0:a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),db}(a);n.find=t,n.expr=t.selectors,n.expr[":"]=n.expr.pseudos,n.unique=t.uniqueSort,n.text=t.getText,n.isXMLDoc=t.isXML,n.contains=t.contains;var u=n.expr.match.needsContext,v=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,w=/^.[^:#\[\.,]*$/;function x(a,b,c){if(n.isFunction(b))return n.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return n.grep(a,function(a){return a===b!==c});if("string"==typeof b){if(w.test(b))return n.filter(b,a,c);b=n.filter(b,a)}return n.grep(a,function(a){return n.inArray(a,b)>=0!==c})}n.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?n.find.matchesSelector(d,a)?[d]:[]:n.find.matches(a,n.grep(b,function(a){return 1===a.nodeType}))},n.fn.extend({find:function(a){var b,c=[],d=this,e=d.length;if("string"!=typeof a)return this.pushStack(n(a).filter(function(){for(b=0;e>b;b++)if(n.contains(d[b],this))return!0}));for(b=0;e>b;b++)n.find(a,d[b],c);return c=this.pushStack(e>1?n.unique(c):c),c.selector=this.selector?this.selector+" "+a:a,c},filter:function(a){return this.pushStack(x(this,a||[],!1))},not:function(a){return this.pushStack(x(this,a||[],!0))},is:function(a){return!!x(this,"string"==typeof a&&u.test(a)?n(a):a||[],!1).length}});var y,z=a.document,A=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,B=n.fn.init=function(a,b){var c,d;if(!a)return this;if("string"==typeof a){if(c="<"===a.charAt(0)&&">"===a.charAt(a.length-1)&&a.length>=3?[null,a,null]:A.exec(a),!c||!c[1]&&b)return!b||b.jquery?(b||y).find(a):this.constructor(b).find(a);if(c[1]){if(b=b instanceof n?b[0]:b,n.merge(this,n.parseHTML(c[1],b&&b.nodeType?b.ownerDocument||b:z,!0)),v.test(c[1])&&n.isPlainObject(b))for(c in b)n.isFunction(this[c])?this[c](b[c]):this.attr(c,b[c]);return this}if(d=z.getElementById(c[2]),d&&d.parentNode){if(d.id!==c[2])return y.find(a);this.length=1,this[0]=d}return this.context=z,this.selector=a,this}return a.nodeType?(this.context=this[0]=a,this.length=1,this):n.isFunction(a)?"undefined"!=typeof y.ready?y.ready(a):a(n):(void 0!==a.selector&&(this.selector=a.selector,this.context=a.context),n.makeArray(a,this))};B.prototype=n.fn,y=n(z);var C=/^(?:parents|prev(?:Until|All))/,D={children:!0,contents:!0,next:!0,prev:!0};n.extend({dir:function(a,b,c){var d=[],e=a[b];while(e&&9!==e.nodeType&&(void 0===c||1!==e.nodeType||!n(e).is(c)))1===e.nodeType&&d.push(e),e=e[b];return d},sibling:function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c}}),n.fn.extend({has:function(a){var b,c=n(a,this),d=c.length;return this.filter(function(){for(b=0;d>b;b++)if(n.contains(this,c[b]))return!0})},closest:function(a,b){for(var c,d=0,e=this.length,f=[],g=u.test(a)||"string"!=typeof a?n(a,b||this.context):0;e>d;d++)for(c=this[d];c&&c!==b;c=c.parentNode)if(c.nodeType<11&&(g?g.index(c)>-1:1===c.nodeType&&n.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?n.unique(f):f)},index:function(a){return a?"string"==typeof a?n.inArray(this[0],n(a)):n.inArray(a.jquery?a[0]:a,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(n.unique(n.merge(this.get(),n(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});function E(a,b){do a=a[b];while(a&&1!==a.nodeType);return a}n.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return n.dir(a,"parentNode")},parentsUntil:function(a,b,c){return n.dir(a,"parentNode",c)},next:function(a){return E(a,"nextSibling")},prev:function(a){return E(a,"previousSibling")},nextAll:function(a){return n.dir(a,"nextSibling")},prevAll:function(a){return n.dir(a,"previousSibling")},nextUntil:function(a,b,c){return n.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return n.dir(a,"previousSibling",c)},siblings:function(a){return n.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return n.sibling(a.firstChild)},contents:function(a){return n.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:n.merge([],a.childNodes)}},function(a,b){n.fn[a]=function(c,d){var e=n.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=n.filter(d,e)),this.length>1&&(D[a]||(e=n.unique(e)),C.test(a)&&(e=e.reverse())),this.pushStack(e)}});var F=/\S+/g,G={};function H(a){var b=G[a]={};return n.each(a.match(F)||[],function(a,c){b[c]=!0}),b}n.Callbacks=function(a){a="string"==typeof a?G[a]||H(a):n.extend({},a);var b,c,d,e,f,g,h=[],i=!a.once&&[],j=function(l){for(c=a.memory&&l,d=!0,f=g||0,g=0,e=h.length,b=!0;h&&e>f;f++)if(h[f].apply(l[0],l[1])===!1&&a.stopOnFalse){c=!1;break}b=!1,h&&(i?i.length&&j(i.shift()):c?h=[]:k.disable())},k={add:function(){if(h){var d=h.length;!function f(b){n.each(b,function(b,c){var d=n.type(c);"function"===d?a.unique&&k.has(c)||h.push(c):c&&c.length&&"string"!==d&&f(c)})}(arguments),b?e=h.length:c&&(g=d,j(c))}return this},remove:function(){return h&&n.each(arguments,function(a,c){var d;while((d=n.inArray(c,h,d))>-1)h.splice(d,1),b&&(e>=d&&e--,f>=d&&f--)}),this},has:function(a){return a?n.inArray(a,h)>-1:!(!h||!h.length)},empty:function(){return h=[],e=0,this},disable:function(){return h=i=c=void 0,this},disabled:function(){return!h},lock:function(){return i=void 0,c||k.disable(),this},locked:function(){return!i},fireWith:function(a,c){return!h||d&&!i||(c=c||[],c=[a,c.slice?c.slice():c],b?i.push(c):j(c)),this},fire:function(){return k.fireWith(this,arguments),this},fired:function(){return!!d}};return k},n.extend({Deferred:function(a){var b=[["resolve","done",n.Callbacks("once memory"),"resolved"],["reject","fail",n.Callbacks("once memory"),"rejected"],["notify","progress",n.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return n.Deferred(function(c){n.each(b,function(b,f){var g=n.isFunction(a[b])&&a[b];e[f[1]](function(){var a=g&&g.apply(this,arguments);a&&n.isFunction(a.promise)?a.promise().done(c.resolve).fail(c.reject).progress(c.notify):c[f[0]+"With"](this===d?c.promise():this,g?[a]:arguments)})}),a=null}).promise()},promise:function(a){return null!=a?n.extend(a,d):d}},e={};return d.pipe=d.then,n.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&&g.add(function(){c=h},b[1^a][2].disable,b[2][2].lock),e[f[0]]=function(){return e[f[0]+"With"](this===e?d:this,arguments),this},e[f[0]+"With"]=g.fireWith}),d.promise(e),a&&a.call(e,e),e},when:function(a){var b=0,c=d.call(arguments),e=c.length,f=1!==e||a&&n.isFunction(a.promise)?e:0,g=1===f?a:n.Deferred(),h=function(a,b,c){return function(e){b[a]=this,c[a]=arguments.length>1?d.call(arguments):e,c===i?g.notifyWith(b,c):--f||g.resolveWith(b,c)}},i,j,k;if(e>1)for(i=new Array(e),j=new Array(e),k=new Array(e);e>b;b++)c[b]&&n.isFunction(c[b].promise)?c[b].promise().done(h(b,k,c)).fail(g.reject).progress(h(b,j,i)):--f;return f||g.resolveWith(k,c),g.promise()}});var I;n.fn.ready=function(a){return n.ready.promise().done(a),this},n.extend({isReady:!1,readyWait:1,holdReady:function(a){a?n.readyWait++:n.ready(!0)},ready:function(a){if(a===!0?!--n.readyWait:!n.isReady){if(!z.body)return setTimeout(n.ready);n.isReady=!0,a!==!0&&--n.readyWait>0||(I.resolveWith(z,[n]),n.fn.trigger&&n(z).trigger("ready").off("ready"))}}});function J(){z.addEventListener?(z.removeEventListener("DOMContentLoaded",K,!1),a.removeEventListener("load",K,!1)):(z.detachEvent("onreadystatechange",K),a.detachEvent("onload",K))}function K(){(z.addEventListener||"load"===event.type||"complete"===z.readyState)&&(J(),n.ready())}n.ready.promise=function(b){if(!I)if(I=n.Deferred(),"complete"===z.readyState)setTimeout(n.ready);else if(z.addEventListener)z.addEventListener("DOMContentLoaded",K,!1),a.addEventListener("load",K,!1);else{z.attachEvent("onreadystatechange",K),a.attachEvent("onload",K);var c=!1;try{c=null==a.frameElement&&z.documentElement}catch(d){}c&&c.doScroll&&!function e(){if(!n.isReady){try{c.doScroll("left")}catch(a){return setTimeout(e,50)}J(),n.ready()}}()}return I.promise(b)};var L="undefined",M;for(M in n(l))break;l.ownLast="0"!==M,l.inlineBlockNeedsLayout=!1,n(function(){var a,b,c=z.getElementsByTagName("body")[0];c&&(a=z.createElement("div"),a.style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",b=z.createElement("div"),c.appendChild(a).appendChild(b),typeof b.style.zoom!==L&&(b.style.cssText="border:0;margin:0;width:1px;padding:1px;display:inline;zoom:1",(l.inlineBlockNeedsLayout=3===b.offsetWidth)&&(c.style.zoom=1)),c.removeChild(a),a=b=null)}),function(){var a=z.createElement("div");if(null==l.deleteExpando){l.deleteExpando=!0;try{delete a.test}catch(b){l.deleteExpando=!1}}a=null}(),n.acceptData=function(a){var b=n.noData[(a.nodeName+" ").toLowerCase()],c=+a.nodeType||1;return 1!==c&&9!==c?!1:!b||b!==!0&&a.getAttribute("classid")===b};var N=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,O=/([A-Z])/g;function P(a,b,c){if(void 0===c&&1===a.nodeType){var d="data-"+b.replace(O,"-$1").toLowerCase();if(c=a.getAttribute(d),"string"==typeof c){try{c="true"===c?!0:"false"===c?!1:"null"===c?null:+c+""===c?+c:N.test(c)?n.parseJSON(c):c}catch(e){}n.data(a,b,c)}else c=void 0}return c}function Q(a){var b;for(b in a)if(("data"!==b||!n.isEmptyObject(a[b]))&&"toJSON"!==b)return!1;return!0}function R(a,b,d,e){if(n.acceptData(a)){var f,g,h=n.expando,i=a.nodeType,j=i?n.cache:a,k=i?a[h]:a[h]&&h;if(k&&j[k]&&(e||j[k].data)||void 0!==d||"string"!=typeof b)return k||(k=i?a[h]=c.pop()||n.guid++:h),j[k]||(j[k]=i?{}:{toJSON:n.noop}),("object"==typeof b||"function"==typeof b)&&(e?j[k]=n.extend(j[k],b):j[k].data=n.extend(j[k].data,b)),g=j[k],e||(g.data||(g.data={}),g=g.data),void 0!==d&&(g[n.camelCase(b)]=d),"string"==typeof b?(f=g[b],null==f&&(f=g[n.camelCase(b)])):f=g,f
|
7 |
+
}}function S(a,b,c){if(n.acceptData(a)){var d,e,f=a.nodeType,g=f?n.cache:a,h=f?a[n.expando]:n.expando;if(g[h]){if(b&&(d=c?g[h]:g[h].data)){n.isArray(b)?b=b.concat(n.map(b,n.camelCase)):b in d?b=[b]:(b=n.camelCase(b),b=b in d?[b]:b.split(" ")),e=b.length;while(e--)delete d[b[e]];if(c?!Q(d):!n.isEmptyObject(d))return}(c||(delete g[h].data,Q(g[h])))&&(f?n.cleanData([a],!0):l.deleteExpando||g!=g.window?delete g[h]:g[h]=null)}}}n.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(a){return a=a.nodeType?n.cache[a[n.expando]]:a[n.expando],!!a&&!Q(a)},data:function(a,b,c){return R(a,b,c)},removeData:function(a,b){return S(a,b)},_data:function(a,b,c){return R(a,b,c,!0)},_removeData:function(a,b){return S(a,b,!0)}}),n.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=n.data(f),1===f.nodeType&&!n._data(f,"parsedAttrs"))){c=g.length;while(c--)d=g[c].name,0===d.indexOf("data-")&&(d=n.camelCase(d.slice(5)),P(f,d,e[d]));n._data(f,"parsedAttrs",!0)}return e}return"object"==typeof a?this.each(function(){n.data(this,a)}):arguments.length>1?this.each(function(){n.data(this,a,b)}):f?P(f,a,n.data(f,a)):void 0},removeData:function(a){return this.each(function(){n.removeData(this,a)})}}),n.extend({queue:function(a,b,c){var d;return a?(b=(b||"fx")+"queue",d=n._data(a,b),c&&(!d||n.isArray(c)?d=n._data(a,b,n.makeArray(c)):d.push(c)),d||[]):void 0},dequeue:function(a,b){b=b||"fx";var c=n.queue(a,b),d=c.length,e=c.shift(),f=n._queueHooks(a,b),g=function(){n.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return n._data(a,c)||n._data(a,c,{empty:n.Callbacks("once memory").add(function(){n._removeData(a,b+"queue"),n._removeData(a,c)})})}}),n.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.length<c?n.queue(this[0],a):void 0===b?this:this.each(function(){var c=n.queue(this,a,b);n._queueHooks(this,a),"fx"===a&&"inprogress"!==c[0]&&n.dequeue(this,a)})},dequeue:function(a){return this.each(function(){n.dequeue(this,a)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,b){var c,d=1,e=n.Deferred(),f=this,g=this.length,h=function(){--d||e.resolveWith(f,[f])};"string"!=typeof a&&(b=a,a=void 0),a=a||"fx";while(g--)c=n._data(f[g],a+"queueHooks"),c&&c.empty&&(d++,c.empty.add(h));return h(),e.promise(b)}});var T=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,U=["Top","Right","Bottom","Left"],V=function(a,b){return a=b||a,"none"===n.css(a,"display")||!n.contains(a.ownerDocument,a)},W=n.access=function(a,b,c,d,e,f,g){var h=0,i=a.length,j=null==c;if("object"===n.type(c)){e=!0;for(h in c)n.access(a,b,h,c[h],!0,f,g)}else if(void 0!==d&&(e=!0,n.isFunction(d)||(g=!0),j&&(g?(b.call(a,d),b=null):(j=b,b=function(a,b,c){return j.call(n(a),c)})),b))for(;i>h;h++)b(a[h],c,g?d:d.call(a[h],h,b(a[h],c)));return e?a:j?b.call(a):i?b(a[0],c):f},X=/^(?:checkbox|radio)$/i;!function(){var a=z.createDocumentFragment(),b=z.createElement("div"),c=z.createElement("input");if(b.setAttribute("className","t"),b.innerHTML=" <link/><table></table><a href='/a'>a</a>",l.leadingWhitespace=3===b.firstChild.nodeType,l.tbody=!b.getElementsByTagName("tbody").length,l.htmlSerialize=!!b.getElementsByTagName("link").length,l.html5Clone="<:nav></:nav>"!==z.createElement("nav").cloneNode(!0).outerHTML,c.type="checkbox",c.checked=!0,a.appendChild(c),l.appendChecked=c.checked,b.innerHTML="<textarea>x</textarea>",l.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue,a.appendChild(b),b.innerHTML="<input type='radio' checked='checked' name='t'/>",l.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked,l.noCloneEvent=!0,b.attachEvent&&(b.attachEvent("onclick",function(){l.noCloneEvent=!1}),b.cloneNode(!0).click()),null==l.deleteExpando){l.deleteExpando=!0;try{delete b.test}catch(d){l.deleteExpando=!1}}a=b=c=null}(),function(){var b,c,d=z.createElement("div");for(b in{submit:!0,change:!0,focusin:!0})c="on"+b,(l[b+"Bubbles"]=c in a)||(d.setAttribute(c,"t"),l[b+"Bubbles"]=d.attributes[c].expando===!1);d=null}();var Y=/^(?:input|select|textarea)$/i,Z=/^key/,$=/^(?:mouse|contextmenu)|click/,_=/^(?:focusinfocus|focusoutblur)$/,ab=/^([^.]*)(?:\.(.+)|)$/;function bb(){return!0}function cb(){return!1}function db(){try{return z.activeElement}catch(a){}}n.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=n._data(a);if(r){c.handler&&(i=c,c=i.handler,e=i.selector),c.guid||(c.guid=n.guid++),(g=r.events)||(g=r.events={}),(k=r.handle)||(k=r.handle=function(a){return typeof n===L||a&&n.event.triggered===a.type?void 0:n.event.dispatch.apply(k.elem,arguments)},k.elem=a),b=(b||"").match(F)||[""],h=b.length;while(h--)f=ab.exec(b[h])||[],o=q=f[1],p=(f[2]||"").split(".").sort(),o&&(j=n.event.special[o]||{},o=(e?j.delegateType:j.bindType)||o,j=n.event.special[o]||{},l=n.extend({type:o,origType:q,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&n.expr.match.needsContext.test(e),namespace:p.join(".")},i),(m=g[o])||(m=g[o]=[],m.delegateCount=0,j.setup&&j.setup.call(a,d,p,k)!==!1||(a.addEventListener?a.addEventListener(o,k,!1):a.attachEvent&&a.attachEvent("on"+o,k))),j.add&&(j.add.call(a,l),l.handler.guid||(l.handler.guid=c.guid)),e?m.splice(m.delegateCount++,0,l):m.push(l),n.event.global[o]=!0);a=null}},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=n.hasData(a)&&n._data(a);if(r&&(k=r.events)){b=(b||"").match(F)||[""],j=b.length;while(j--)if(h=ab.exec(b[j])||[],o=q=h[1],p=(h[2]||"").split(".").sort(),o){l=n.event.special[o]||{},o=(d?l.delegateType:l.bindType)||o,m=k[o]||[],h=h[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),i=f=m.length;while(f--)g=m[f],!e&&q!==g.origType||c&&c.guid!==g.guid||h&&!h.test(g.namespace)||d&&d!==g.selector&&("**"!==d||!g.selector)||(m.splice(f,1),g.selector&&m.delegateCount--,l.remove&&l.remove.call(a,g));i&&!m.length&&(l.teardown&&l.teardown.call(a,p,r.handle)!==!1||n.removeEvent(a,o,r.handle),delete k[o])}else for(o in k)n.event.remove(a,o+b[j],c,d,!0);n.isEmptyObject(k)&&(delete r.handle,n._removeData(a,"events"))}},trigger:function(b,c,d,e){var f,g,h,i,k,l,m,o=[d||z],p=j.call(b,"type")?b.type:b,q=j.call(b,"namespace")?b.namespace.split("."):[];if(h=l=d=d||z,3!==d.nodeType&&8!==d.nodeType&&!_.test(p+n.event.triggered)&&(p.indexOf(".")>=0&&(q=p.split("."),p=q.shift(),q.sort()),g=p.indexOf(":")<0&&"on"+p,b=b[n.expando]?b:new n.Event(p,"object"==typeof b&&b),b.isTrigger=e?2:3,b.namespace=q.join("."),b.namespace_re=b.namespace?new RegExp("(^|\\.)"+q.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=void 0,b.target||(b.target=d),c=null==c?[b]:n.makeArray(c,[b]),k=n.event.special[p]||{},e||!k.trigger||k.trigger.apply(d,c)!==!1)){if(!e&&!k.noBubble&&!n.isWindow(d)){for(i=k.delegateType||p,_.test(i+p)||(h=h.parentNode);h;h=h.parentNode)o.push(h),l=h;l===(d.ownerDocument||z)&&o.push(l.defaultView||l.parentWindow||a)}m=0;while((h=o[m++])&&!b.isPropagationStopped())b.type=m>1?i:k.bindType||p,f=(n._data(h,"events")||{})[b.type]&&n._data(h,"handle"),f&&f.apply(h,c),f=g&&h[g],f&&f.apply&&n.acceptData(h)&&(b.result=f.apply(h,c),b.result===!1&&b.preventDefault());if(b.type=p,!e&&!b.isDefaultPrevented()&&(!k._default||k._default.apply(o.pop(),c)===!1)&&n.acceptData(d)&&g&&d[p]&&!n.isWindow(d)){l=d[g],l&&(d[g]=null),n.event.triggered=p;try{d[p]()}catch(r){}n.event.triggered=void 0,l&&(d[g]=l)}return b.result}},dispatch:function(a){a=n.event.fix(a);var b,c,e,f,g,h=[],i=d.call(arguments),j=(n._data(this,"events")||{})[a.type]||[],k=n.event.special[a.type]||{};if(i[0]=a,a.delegateTarget=this,!k.preDispatch||k.preDispatch.call(this,a)!==!1){h=n.event.handlers.call(this,a,j),b=0;while((f=h[b++])&&!a.isPropagationStopped()){a.currentTarget=f.elem,g=0;while((e=f.handlers[g++])&&!a.isImmediatePropagationStopped())(!a.namespace_re||a.namespace_re.test(e.namespace))&&(a.handleObj=e,a.data=e.data,c=((n.event.special[e.origType]||{}).handle||e.handler).apply(f.elem,i),void 0!==c&&(a.result=c)===!1&&(a.preventDefault(),a.stopPropagation()))}return k.postDispatch&&k.postDispatch.call(this,a),a.result}},handlers:function(a,b){var c,d,e,f,g=[],h=b.delegateCount,i=a.target;if(h&&i.nodeType&&(!a.button||"click"!==a.type))for(;i!=this;i=i.parentNode||this)if(1===i.nodeType&&(i.disabled!==!0||"click"!==a.type)){for(e=[],f=0;h>f;f++)d=b[f],c=d.selector+" ",void 0===e[c]&&(e[c]=d.needsContext?n(c,this).index(i)>=0:n.find(c,this,null,[i]).length),e[c]&&e.push(d);e.length&&g.push({elem:i,handlers:e})}return h<b.length&&g.push({elem:this,handlers:b.slice(h)}),g},fix:function(a){if(a[n.expando])return a;var b,c,d,e=a.type,f=a,g=this.fixHooks[e];g||(this.fixHooks[e]=g=$.test(e)?this.mouseHooks:Z.test(e)?this.keyHooks:{}),d=g.props?this.props.concat(g.props):this.props,a=new n.Event(f),b=d.length;while(b--)c=d[b],a[c]=f[c];return a.target||(a.target=f.srcElement||z),3===a.target.nodeType&&(a.target=a.target.parentNode),a.metaKey=!!a.metaKey,g.filter?g.filter(a,f):a},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(a,b){return null==a.which&&(a.which=null!=b.charCode?b.charCode:b.keyCode),a}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(a,b){var c,d,e,f=b.button,g=b.fromElement;return null==a.pageX&&null!=b.clientX&&(d=a.target.ownerDocument||z,e=d.documentElement,c=d.body,a.pageX=b.clientX+(e&&e.scrollLeft||c&&c.scrollLeft||0)-(e&&e.clientLeft||c&&c.clientLeft||0),a.pageY=b.clientY+(e&&e.scrollTop||c&&c.scrollTop||0)-(e&&e.clientTop||c&&c.clientTop||0)),!a.relatedTarget&&g&&(a.relatedTarget=g===a.target?b.toElement:g),a.which||void 0===f||(a.which=1&f?1:2&f?3:4&f?2:0),a}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==db()&&this.focus)try{return this.focus(),!1}catch(a){}},delegateType:"focusin"},blur:{trigger:function(){return this===db()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return n.nodeName(this,"input")&&"checkbox"===this.type&&this.click?(this.click(),!1):void 0},_default:function(a){return n.nodeName(a.target,"a")}},beforeunload:{postDispatch:function(a){void 0!==a.result&&(a.originalEvent.returnValue=a.result)}}},simulate:function(a,b,c,d){var e=n.extend(new n.Event,c,{type:a,isSimulated:!0,originalEvent:{}});d?n.event.trigger(e,null,b):n.event.dispatch.call(b,e),e.isDefaultPrevented()&&c.preventDefault()}},n.removeEvent=z.removeEventListener?function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,!1)}:function(a,b,c){var d="on"+b;a.detachEvent&&(typeof a[d]===L&&(a[d]=null),a.detachEvent(d,c))},n.Event=function(a,b){return this instanceof n.Event?(a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||void 0===a.defaultPrevented&&(a.returnValue===!1||a.getPreventDefault&&a.getPreventDefault())?bb:cb):this.type=a,b&&n.extend(this,b),this.timeStamp=a&&a.timeStamp||n.now(),void(this[n.expando]=!0)):new n.Event(a,b)},n.Event.prototype={isDefaultPrevented:cb,isPropagationStopped:cb,isImmediatePropagationStopped:cb,preventDefault:function(){var a=this.originalEvent;this.isDefaultPrevented=bb,a&&(a.preventDefault?a.preventDefault():a.returnValue=!1)},stopPropagation:function(){var a=this.originalEvent;this.isPropagationStopped=bb,a&&(a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=bb,this.stopPropagation()}},n.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){n.event.special[a]={delegateType:b,bindType:b,handle:function(a){var c,d=this,e=a.relatedTarget,f=a.handleObj;return(!e||e!==d&&!n.contains(d,e))&&(a.type=f.origType,c=f.handler.apply(this,arguments),a.type=b),c}}}),l.submitBubbles||(n.event.special.submit={setup:function(){return n.nodeName(this,"form")?!1:void n.event.add(this,"click._submit keypress._submit",function(a){var b=a.target,c=n.nodeName(b,"input")||n.nodeName(b,"button")?b.form:void 0;c&&!n._data(c,"submitBubbles")&&(n.event.add(c,"submit._submit",function(a){a._submit_bubble=!0}),n._data(c,"submitBubbles",!0))})},postDispatch:function(a){a._submit_bubble&&(delete a._submit_bubble,this.parentNode&&!a.isTrigger&&n.event.simulate("submit",this.parentNode,a,!0))},teardown:function(){return n.nodeName(this,"form")?!1:void n.event.remove(this,"._submit")}}),l.changeBubbles||(n.event.special.change={setup:function(){return Y.test(this.nodeName)?(("checkbox"===this.type||"radio"===this.type)&&(n.event.add(this,"propertychange._change",function(a){"checked"===a.originalEvent.propertyName&&(this._just_changed=!0)}),n.event.add(this,"click._change",function(a){this._just_changed&&!a.isTrigger&&(this._just_changed=!1),n.event.simulate("change",this,a,!0)})),!1):void n.event.add(this,"beforeactivate._change",function(a){var b=a.target;Y.test(b.nodeName)&&!n._data(b,"changeBubbles")&&(n.event.add(b,"change._change",function(a){!this.parentNode||a.isSimulated||a.isTrigger||n.event.simulate("change",this.parentNode,a,!0)}),n._data(b,"changeBubbles",!0))})},handle:function(a){var b=a.target;return this!==b||a.isSimulated||a.isTrigger||"radio"!==b.type&&"checkbox"!==b.type?a.handleObj.handler.apply(this,arguments):void 0},teardown:function(){return n.event.remove(this,"._change"),!Y.test(this.nodeName)}}),l.focusinBubbles||n.each({focus:"focusin",blur:"focusout"},function(a,b){var c=function(a){n.event.simulate(b,a.target,n.event.fix(a),!0)};n.event.special[b]={setup:function(){var d=this.ownerDocument||this,e=n._data(d,b);e||d.addEventListener(a,c,!0),n._data(d,b,(e||0)+1)},teardown:function(){var d=this.ownerDocument||this,e=n._data(d,b)-1;e?n._data(d,b,e):(d.removeEventListener(a,c,!0),n._removeData(d,b))}}}),n.fn.extend({on:function(a,b,c,d,e){var f,g;if("object"==typeof a){"string"!=typeof b&&(c=c||b,b=void 0);for(f in a)this.on(f,b,c,a[f],e);return this}if(null==c&&null==d?(d=b,c=b=void 0):null==d&&("string"==typeof b?(d=c,c=void 0):(d=c,c=b,b=void 0)),d===!1)d=cb;else if(!d)return this;return 1===e&&(g=d,d=function(a){return n().off(a),g.apply(this,arguments)},d.guid=g.guid||(g.guid=n.guid++)),this.each(function(){n.event.add(this,a,d,c,b)})},one:function(a,b,c,d){return this.on(a,b,c,d,1)},off:function(a,b,c){var d,e;if(a&&a.preventDefault&&a.handleObj)return d=a.handleObj,n(a.delegateTarget).off(d.namespace?d.origType+"."+d.namespace:d.origType,d.selector,d.handler),this;if("object"==typeof a){for(e in a)this.off(e,b,a[e]);return this}return(b===!1||"function"==typeof b)&&(c=b,b=void 0),c===!1&&(c=cb),this.each(function(){n.event.remove(this,a,c,b)})},trigger:function(a,b){return this.each(function(){n.event.trigger(a,b,this)})},triggerHandler:function(a,b){var c=this[0];return c?n.event.trigger(a,b,c,!0):void 0}});function eb(a){var b=fb.split("|"),c=a.createDocumentFragment();if(c.createElement)while(b.length)c.createElement(b.pop());return c}var fb="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",gb=/ jQuery\d+="(?:null|\d+)"/g,hb=new RegExp("<(?:"+fb+")[\\s/>]","i"),ib=/^\s+/,jb=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,kb=/<([\w:]+)/,lb=/<tbody/i,mb=/<|&#?\w+;/,nb=/<(?:script|style|link)/i,ob=/checked\s*(?:[^=]|=\s*.checked.)/i,pb=/^$|\/(?:java|ecma)script/i,qb=/^true\/(.*)/,rb=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,sb={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:l.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},tb=eb(z),ub=tb.appendChild(z.createElement("div"));sb.optgroup=sb.option,sb.tbody=sb.tfoot=sb.colgroup=sb.caption=sb.thead,sb.th=sb.td;function vb(a,b){var c,d,e=0,f=typeof a.getElementsByTagName!==L?a.getElementsByTagName(b||"*"):typeof a.querySelectorAll!==L?a.querySelectorAll(b||"*"):void 0;if(!f)for(f=[],c=a.childNodes||a;null!=(d=c[e]);e++)!b||n.nodeName(d,b)?f.push(d):n.merge(f,vb(d,b));return void 0===b||b&&n.nodeName(a,b)?n.merge([a],f):f}function wb(a){X.test(a.type)&&(a.defaultChecked=a.checked)}function xb(a,b){return n.nodeName(a,"table")&&n.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function yb(a){return a.type=(null!==n.find.attr(a,"type"))+"/"+a.type,a}function zb(a){var b=qb.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function Ab(a,b){for(var c,d=0;null!=(c=a[d]);d++)n._data(c,"globalEval",!b||n._data(b[d],"globalEval"))}function Bb(a,b){if(1===b.nodeType&&n.hasData(a)){var c,d,e,f=n._data(a),g=n._data(b,f),h=f.events;if(h){delete g.handle,g.events={};for(c in h)for(d=0,e=h[c].length;e>d;d++)n.event.add(b,c,h[c][d])}g.data&&(g.data=n.extend({},g.data))}}function Cb(a,b){var c,d,e;if(1===b.nodeType){if(c=b.nodeName.toLowerCase(),!l.noCloneEvent&&b[n.expando]){e=n._data(b);for(d in e.events)n.removeEvent(b,d,e.handle);b.removeAttribute(n.expando)}"script"===c&&b.text!==a.text?(yb(b).text=a.text,zb(b)):"object"===c?(b.parentNode&&(b.outerHTML=a.outerHTML),l.html5Clone&&a.innerHTML&&!n.trim(b.innerHTML)&&(b.innerHTML=a.innerHTML)):"input"===c&&X.test(a.type)?(b.defaultChecked=b.checked=a.checked,b.value!==a.value&&(b.value=a.value)):"option"===c?b.defaultSelected=b.selected=a.defaultSelected:("input"===c||"textarea"===c)&&(b.defaultValue=a.defaultValue)}}n.extend({clone:function(a,b,c){var d,e,f,g,h,i=n.contains(a.ownerDocument,a);if(l.html5Clone||n.isXMLDoc(a)||!hb.test("<"+a.nodeName+">")?f=a.cloneNode(!0):(ub.innerHTML=a.outerHTML,ub.removeChild(f=ub.firstChild)),!(l.noCloneEvent&&l.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||n.isXMLDoc(a)))for(d=vb(f),h=vb(a),g=0;null!=(e=h[g]);++g)d[g]&&Cb(e,d[g]);if(b)if(c)for(h=h||vb(a),d=d||vb(f),g=0;null!=(e=h[g]);g++)Bb(e,d[g]);else Bb(a,f);return d=vb(f,"script"),d.length>0&&Ab(d,!i&&vb(a,"script")),d=h=e=null,f},buildFragment:function(a,b,c,d){for(var e,f,g,h,i,j,k,m=a.length,o=eb(b),p=[],q=0;m>q;q++)if(f=a[q],f||0===f)if("object"===n.type(f))n.merge(p,f.nodeType?[f]:f);else if(mb.test(f)){h=h||o.appendChild(b.createElement("div")),i=(kb.exec(f)||["",""])[1].toLowerCase(),k=sb[i]||sb._default,h.innerHTML=k[1]+f.replace(jb,"<$1></$2>")+k[2],e=k[0];while(e--)h=h.lastChild;if(!l.leadingWhitespace&&ib.test(f)&&p.push(b.createTextNode(ib.exec(f)[0])),!l.tbody){f="table"!==i||lb.test(f)?"<table>"!==k[1]||lb.test(f)?0:h:h.firstChild,e=f&&f.childNodes.length;while(e--)n.nodeName(j=f.childNodes[e],"tbody")&&!j.childNodes.length&&f.removeChild(j)}n.merge(p,h.childNodes),h.textContent="";while(h.firstChild)h.removeChild(h.firstChild);h=o.lastChild}else p.push(b.createTextNode(f));h&&o.removeChild(h),l.appendChecked||n.grep(vb(p,"input"),wb),q=0;while(f=p[q++])if((!d||-1===n.inArray(f,d))&&(g=n.contains(f.ownerDocument,f),h=vb(o.appendChild(f),"script"),g&&Ab(h),c)){e=0;while(f=h[e++])pb.test(f.type||"")&&c.push(f)}return h=null,o},cleanData:function(a,b){for(var d,e,f,g,h=0,i=n.expando,j=n.cache,k=l.deleteExpando,m=n.event.special;null!=(d=a[h]);h++)if((b||n.acceptData(d))&&(f=d[i],g=f&&j[f])){if(g.events)for(e in g.events)m[e]?n.event.remove(d,e):n.removeEvent(d,e,g.handle);j[f]&&(delete j[f],k?delete d[i]:typeof d.removeAttribute!==L?d.removeAttribute(i):d[i]=null,c.push(f))}}}),n.fn.extend({text:function(a){return W(this,function(a){return void 0===a?n.text(this):this.empty().append((this[0]&&this[0].ownerDocument||z).createTextNode(a))},null,a,arguments.length)},append:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=xb(this,a);b.appendChild(a)}})},prepend:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=xb(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},remove:function(a,b){for(var c,d=a?n.filter(a,this):this,e=0;null!=(c=d[e]);e++)b||1!==c.nodeType||n.cleanData(vb(c)),c.parentNode&&(b&&n.contains(c.ownerDocument,c)&&Ab(vb(c,"script")),c.parentNode.removeChild(c));return this},empty:function(){for(var a,b=0;null!=(a=this[b]);b++){1===a.nodeType&&n.cleanData(vb(a,!1));while(a.firstChild)a.removeChild(a.firstChild);a.options&&n.nodeName(a,"select")&&(a.options.length=0)}return this},clone:function(a,b){return a=null==a?!1:a,b=null==b?a:b,this.map(function(){return n.clone(this,a,b)})},html:function(a){return W(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a)return 1===b.nodeType?b.innerHTML.replace(gb,""):void 0;if(!("string"!=typeof a||nb.test(a)||!l.htmlSerialize&&hb.test(a)||!l.leadingWhitespace&&ib.test(a)||sb[(kb.exec(a)||["",""])[1].toLowerCase()])){a=a.replace(jb,"<$1></$2>");try{for(;d>c;c++)b=this[c]||{},1===b.nodeType&&(n.cleanData(vb(b,!1)),b.innerHTML=a);b=0}catch(e){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=arguments[0];return this.domManip(arguments,function(b){a=this.parentNode,n.cleanData(vb(this)),a&&a.replaceChild(b,this)}),a&&(a.length||a.nodeType)?this:this.remove()},detach:function(a){return this.remove(a,!0)},domManip:function(a,b){a=e.apply([],a);var c,d,f,g,h,i,j=0,k=this.length,m=this,o=k-1,p=a[0],q=n.isFunction(p);if(q||k>1&&"string"==typeof p&&!l.checkClone&&ob.test(p))return this.each(function(c){var d=m.eq(c);q&&(a[0]=p.call(this,c,d.html())),d.domManip(a,b)});if(k&&(i=n.buildFragment(a,this[0].ownerDocument,!1,this),c=i.firstChild,1===i.childNodes.length&&(i=c),c)){for(g=n.map(vb(i,"script"),yb),f=g.length;k>j;j++)d=i,j!==o&&(d=n.clone(d,!0,!0),f&&n.merge(g,vb(d,"script"))),b.call(this[j],d,j);if(f)for(h=g[g.length-1].ownerDocument,n.map(g,zb),j=0;f>j;j++)d=g[j],pb.test(d.type||"")&&!n._data(d,"globalEval")&&n.contains(h,d)&&(d.src?n._evalUrl&&n._evalUrl(d.src):n.globalEval((d.text||d.textContent||d.innerHTML||"").replace(rb,"")));i=c=null}return this}}),n.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){n.fn[a]=function(a){for(var c,d=0,e=[],g=n(a),h=g.length-1;h>=d;d++)c=d===h?this:this.clone(!0),n(g[d])[b](c),f.apply(e,c.get());return this.pushStack(e)}});var Db,Eb={};function Fb(b,c){var d=n(c.createElement(b)).appendTo(c.body),e=a.getDefaultComputedStyle?a.getDefaultComputedStyle(d[0]).display:n.css(d[0],"display");return d.detach(),e}function Gb(a){var b=z,c=Eb[a];return c||(c=Fb(a,b),"none"!==c&&c||(Db=(Db||n("<iframe frameborder='0' width='0' height='0'/>")).appendTo(b.documentElement),b=(Db[0].contentWindow||Db[0].contentDocument).document,b.write(),b.close(),c=Fb(a,b),Db.detach()),Eb[a]=c),c}!function(){var a,b,c=z.createElement("div"),d="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;padding:0;margin:0;border:0";c.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",a=c.getElementsByTagName("a")[0],a.style.cssText="float:left;opacity:.5",l.opacity=/^0.5/.test(a.style.opacity),l.cssFloat=!!a.style.cssFloat,c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",l.clearCloneStyle="content-box"===c.style.backgroundClip,a=c=null,l.shrinkWrapBlocks=function(){var a,c,e,f;if(null==b){if(a=z.getElementsByTagName("body")[0],!a)return;f="border:0;width:0;height:0;position:absolute;top:0;left:-9999px",c=z.createElement("div"),e=z.createElement("div"),a.appendChild(c).appendChild(e),b=!1,typeof e.style.zoom!==L&&(e.style.cssText=d+";width:1px;padding:1px;zoom:1",e.innerHTML="<div></div>",e.firstChild.style.width="5px",b=3!==e.offsetWidth),a.removeChild(c),a=c=e=null}return b}}();var Hb=/^margin/,Ib=new RegExp("^("+T+")(?!px)[a-z%]+$","i"),Jb,Kb,Lb=/^(top|right|bottom|left)$/;a.getComputedStyle?(Jb=function(a){return a.ownerDocument.defaultView.getComputedStyle(a,null)},Kb=function(a,b,c){var d,e,f,g,h=a.style;return c=c||Jb(a),g=c?c.getPropertyValue(b)||c[b]:void 0,c&&(""!==g||n.contains(a.ownerDocument,a)||(g=n.style(a,b)),Ib.test(g)&&Hb.test(b)&&(d=h.width,e=h.minWidth,f=h.maxWidth,h.minWidth=h.maxWidth=h.width=g,g=c.width,h.width=d,h.minWidth=e,h.maxWidth=f)),void 0===g?g:g+""}):z.documentElement.currentStyle&&(Jb=function(a){return a.currentStyle},Kb=function(a,b,c){var d,e,f,g,h=a.style;return c=c||Jb(a),g=c?c[b]:void 0,null==g&&h&&h[b]&&(g=h[b]),Ib.test(g)&&!Lb.test(b)&&(d=h.left,e=a.runtimeStyle,f=e&&e.left,f&&(e.left=a.currentStyle.left),h.left="fontSize"===b?"1em":g,g=h.pixelLeft+"px",h.left=d,f&&(e.left=f)),void 0===g?g:g+""||"auto"});function Mb(a,b){return{get:function(){var c=a();if(null!=c)return c?void delete this.get:(this.get=b).apply(this,arguments)}}}!function(){var b,c,d,e,f,g,h=z.createElement("div"),i="border:0;width:0;height:0;position:absolute;top:0;left:-9999px",j="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;padding:0;margin:0;border:0";h.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",b=h.getElementsByTagName("a")[0],b.style.cssText="float:left;opacity:.5",l.opacity=/^0.5/.test(b.style.opacity),l.cssFloat=!!b.style.cssFloat,h.style.backgroundClip="content-box",h.cloneNode(!0).style.backgroundClip="",l.clearCloneStyle="content-box"===h.style.backgroundClip,b=h=null,n.extend(l,{reliableHiddenOffsets:function(){if(null!=c)return c;var a,b,d,e=z.createElement("div"),f=z.getElementsByTagName("body")[0];if(f)return e.setAttribute("className","t"),e.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",a=z.createElement("div"),a.style.cssText=i,f.appendChild(a).appendChild(e),e.innerHTML="<table><tr><td></td><td>t</td></tr></table>",b=e.getElementsByTagName("td"),b[0].style.cssText="padding:0;margin:0;border:0;display:none",d=0===b[0].offsetHeight,b[0].style.display="",b[1].style.display="none",c=d&&0===b[0].offsetHeight,f.removeChild(a),e=f=null,c},boxSizing:function(){return null==d&&k(),d},boxSizingReliable:function(){return null==e&&k(),e},pixelPosition:function(){return null==f&&k(),f},reliableMarginRight:function(){var b,c,d,e;if(null==g&&a.getComputedStyle){if(b=z.getElementsByTagName("body")[0],!b)return;c=z.createElement("div"),d=z.createElement("div"),c.style.cssText=i,b.appendChild(c).appendChild(d),e=d.appendChild(z.createElement("div")),e.style.cssText=d.style.cssText=j,e.style.marginRight=e.style.width="0",d.style.width="1px",g=!parseFloat((a.getComputedStyle(e,null)||{}).marginRight),b.removeChild(c)}return g}});function k(){var b,c,h=z.getElementsByTagName("body")[0];h&&(b=z.createElement("div"),c=z.createElement("div"),b.style.cssText=i,h.appendChild(b).appendChild(c),c.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:absolute;display:block;padding:1px;border:1px;width:4px;margin-top:1%;top:1%",n.swap(h,null!=h.style.zoom?{zoom:1}:{},function(){d=4===c.offsetWidth}),e=!0,f=!1,g=!0,a.getComputedStyle&&(f="1%"!==(a.getComputedStyle(c,null)||{}).top,e="4px"===(a.getComputedStyle(c,null)||{width:"4px"}).width),h.removeChild(b),c=h=null)}}(),n.swap=function(a,b,c,d){var e,f,g={};for(f in b)g[f]=a.style[f],a.style[f]=b[f];e=c.apply(a,d||[]);for(f in b)a.style[f]=g[f];return e};var Nb=/alpha\([^)]*\)/i,Ob=/opacity\s*=\s*([^)]*)/,Pb=/^(none|table(?!-c[ea]).+)/,Qb=new RegExp("^("+T+")(.*)$","i"),Rb=new RegExp("^([+-])=("+T+")","i"),Sb={position:"absolute",visibility:"hidden",display:"block"},Tb={letterSpacing:0,fontWeight:400},Ub=["Webkit","O","Moz","ms"];function Vb(a,b){if(b in a)return b;var c=b.charAt(0).toUpperCase()+b.slice(1),d=b,e=Ub.length;while(e--)if(b=Ub[e]+c,b in a)return b;return d}function Wb(a,b){for(var c,d,e,f=[],g=0,h=a.length;h>g;g++)d=a[g],d.style&&(f[g]=n._data(d,"olddisplay"),c=d.style.display,b?(f[g]||"none"!==c||(d.style.display=""),""===d.style.display&&V(d)&&(f[g]=n._data(d,"olddisplay",Gb(d.nodeName)))):f[g]||(e=V(d),(c&&"none"!==c||!e)&&n._data(d,"olddisplay",e?c:n.css(d,"display"))));for(g=0;h>g;g++)d=a[g],d.style&&(b&&"none"!==d.style.display&&""!==d.style.display||(d.style.display=b?f[g]||"":"none"));return a}function Xb(a,b,c){var d=Qb.exec(b);return d?Math.max(0,d[1]-(c||0))+(d[2]||"px"):b}function Yb(a,b,c,d,e){for(var f=c===(d?"border":"content")?4:"width"===b?1:0,g=0;4>f;f+=2)"margin"===c&&(g+=n.css(a,c+U[f],!0,e)),d?("content"===c&&(g-=n.css(a,"padding"+U[f],!0,e)),"margin"!==c&&(g-=n.css(a,"border"+U[f]+"Width",!0,e))):(g+=n.css(a,"padding"+U[f],!0,e),"padding"!==c&&(g+=n.css(a,"border"+U[f]+"Width",!0,e)));return g}function Zb(a,b,c){var d=!0,e="width"===b?a.offsetWidth:a.offsetHeight,f=Jb(a),g=l.boxSizing()&&"border-box"===n.css(a,"boxSizing",!1,f);if(0>=e||null==e){if(e=Kb(a,b,f),(0>e||null==e)&&(e=a.style[b]),Ib.test(e))return e;d=g&&(l.boxSizingReliable()||e===a.style[b]),e=parseFloat(e)||0}return e+Yb(a,b,c||(g?"border":"content"),d,f)+"px"}n.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=Kb(a,"opacity");return""===c?"1":c}}}},cssNumber:{columnCount:!0,fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":l.cssFloat?"cssFloat":"styleFloat"},style:function(a,b,c,d){if(a&&3!==a.nodeType&&8!==a.nodeType&&a.style){var e,f,g,h=n.camelCase(b),i=a.style;if(b=n.cssProps[h]||(n.cssProps[h]=Vb(i,h)),g=n.cssHooks[b]||n.cssHooks[h],void 0===c)return g&&"get"in g&&void 0!==(e=g.get(a,!1,d))?e:i[b];if(f=typeof c,"string"===f&&(e=Rb.exec(c))&&(c=(e[1]+1)*e[2]+parseFloat(n.css(a,b)),f="number"),null!=c&&c===c&&("number"!==f||n.cssNumber[h]||(c+="px"),l.clearCloneStyle||""!==c||0!==b.indexOf("background")||(i[b]="inherit"),!(g&&"set"in g&&void 0===(c=g.set(a,c,d)))))try{i[b]="",i[b]=c}catch(j){}}},css:function(a,b,c,d){var e,f,g,h=n.camelCase(b);return b=n.cssProps[h]||(n.cssProps[h]=Vb(a.style,h)),g=n.cssHooks[b]||n.cssHooks[h],g&&"get"in g&&(f=g.get(a,!0,c)),void 0===f&&(f=Kb(a,b,d)),"normal"===f&&b in Tb&&(f=Tb[b]),""===c||c?(e=parseFloat(f),c===!0||n.isNumeric(e)?e||0:f):f}}),n.each(["height","width"],function(a,b){n.cssHooks[b]={get:function(a,c,d){return c?0===a.offsetWidth&&Pb.test(n.css(a,"display"))?n.swap(a,Sb,function(){return Zb(a,b,d)}):Zb(a,b,d):void 0},set:function(a,c,d){var e=d&&Jb(a);return Xb(a,c,d?Yb(a,b,d,l.boxSizing()&&"border-box"===n.css(a,"boxSizing",!1,e),e):0)}}}),l.opacity||(n.cssHooks.opacity={get:function(a,b){return Ob.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=n.isNumeric(b)?"alpha(opacity="+100*b+")":"",f=d&&d.filter||c.filter||"";c.zoom=1,(b>=1||""===b)&&""===n.trim(f.replace(Nb,""))&&c.removeAttribute&&(c.removeAttribute("filter"),""===b||d&&!d.filter)||(c.filter=Nb.test(f)?f.replace(Nb,e):f+" "+e)}}),n.cssHooks.marginRight=Mb(l.reliableMarginRight,function(a,b){return b?n.swap(a,{display:"inline-block"},Kb,[a,"marginRight"]):void 0}),n.each({margin:"",padding:"",border:"Width"},function(a,b){n.cssHooks[a+b]={expand:function(c){for(var d=0,e={},f="string"==typeof c?c.split(" "):[c];4>d;d++)e[a+U[d]+b]=f[d]||f[d-2]||f[0];return e}},Hb.test(a)||(n.cssHooks[a+b].set=Xb)}),n.fn.extend({css:function(a,b){return W(this,function(a,b,c){var d,e,f={},g=0;if(n.isArray(b)){for(d=Jb(a),e=b.length;e>g;g++)f[b[g]]=n.css(a,b[g],!1,d);return f}return void 0!==c?n.style(a,b,c):n.css(a,b)
|
8 |
+
},a,b,arguments.length>1)},show:function(){return Wb(this,!0)},hide:function(){return Wb(this)},toggle:function(a){return"boolean"==typeof a?a?this.show():this.hide():this.each(function(){V(this)?n(this).show():n(this).hide()})}});function $b(a,b,c,d,e){return new $b.prototype.init(a,b,c,d,e)}n.Tween=$b,$b.prototype={constructor:$b,init:function(a,b,c,d,e,f){this.elem=a,this.prop=c,this.easing=e||"swing",this.options=b,this.start=this.now=this.cur(),this.end=d,this.unit=f||(n.cssNumber[c]?"":"px")},cur:function(){var a=$b.propHooks[this.prop];return a&&a.get?a.get(this):$b.propHooks._default.get(this)},run:function(a){var b,c=$b.propHooks[this.prop];return this.pos=b=this.options.duration?n.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):a,this.now=(this.end-this.start)*b+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),c&&c.set?c.set(this):$b.propHooks._default.set(this),this}},$b.prototype.init.prototype=$b.prototype,$b.propHooks={_default:{get:function(a){var b;return null==a.elem[a.prop]||a.elem.style&&null!=a.elem.style[a.prop]?(b=n.css(a.elem,a.prop,""),b&&"auto"!==b?b:0):a.elem[a.prop]},set:function(a){n.fx.step[a.prop]?n.fx.step[a.prop](a):a.elem.style&&(null!=a.elem.style[n.cssProps[a.prop]]||n.cssHooks[a.prop])?n.style(a.elem,a.prop,a.now+a.unit):a.elem[a.prop]=a.now}}},$b.propHooks.scrollTop=$b.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}},n.easing={linear:function(a){return a},swing:function(a){return.5-Math.cos(a*Math.PI)/2}},n.fx=$b.prototype.init,n.fx.step={};var _b,ac,bc=/^(?:toggle|show|hide)$/,cc=new RegExp("^(?:([+-])=|)("+T+")([a-z%]*)$","i"),dc=/queueHooks$/,ec=[jc],fc={"*":[function(a,b){var c=this.createTween(a,b),d=c.cur(),e=cc.exec(b),f=e&&e[3]||(n.cssNumber[a]?"":"px"),g=(n.cssNumber[a]||"px"!==f&&+d)&&cc.exec(n.css(c.elem,a)),h=1,i=20;if(g&&g[3]!==f){f=f||g[3],e=e||[],g=+d||1;do h=h||".5",g/=h,n.style(c.elem,a,g+f);while(h!==(h=c.cur()/d)&&1!==h&&--i)}return e&&(g=c.start=+g||+d||0,c.unit=f,c.end=e[1]?g+(e[1]+1)*e[2]:+e[2]),c}]};function gc(){return setTimeout(function(){_b=void 0}),_b=n.now()}function hc(a,b){var c,d={height:a},e=0;for(b=b?1:0;4>e;e+=2-b)c=U[e],d["margin"+c]=d["padding"+c]=a;return b&&(d.opacity=d.width=a),d}function ic(a,b,c){for(var d,e=(fc[b]||[]).concat(fc["*"]),f=0,g=e.length;g>f;f++)if(d=e[f].call(c,b,a))return d}function jc(a,b,c){var d,e,f,g,h,i,j,k,m=this,o={},p=a.style,q=a.nodeType&&V(a),r=n._data(a,"fxshow");c.queue||(h=n._queueHooks(a,"fx"),null==h.unqueued&&(h.unqueued=0,i=h.empty.fire,h.empty.fire=function(){h.unqueued||i()}),h.unqueued++,m.always(function(){m.always(function(){h.unqueued--,n.queue(a,"fx").length||h.empty.fire()})})),1===a.nodeType&&("height"in b||"width"in b)&&(c.overflow=[p.overflow,p.overflowX,p.overflowY],j=n.css(a,"display"),k=Gb(a.nodeName),"none"===j&&(j=k),"inline"===j&&"none"===n.css(a,"float")&&(l.inlineBlockNeedsLayout&&"inline"!==k?p.zoom=1:p.display="inline-block")),c.overflow&&(p.overflow="hidden",l.shrinkWrapBlocks()||m.always(function(){p.overflow=c.overflow[0],p.overflowX=c.overflow[1],p.overflowY=c.overflow[2]}));for(d in b)if(e=b[d],bc.exec(e)){if(delete b[d],f=f||"toggle"===e,e===(q?"hide":"show")){if("show"!==e||!r||void 0===r[d])continue;q=!0}o[d]=r&&r[d]||n.style(a,d)}if(!n.isEmptyObject(o)){r?"hidden"in r&&(q=r.hidden):r=n._data(a,"fxshow",{}),f&&(r.hidden=!q),q?n(a).show():m.done(function(){n(a).hide()}),m.done(function(){var b;n._removeData(a,"fxshow");for(b in o)n.style(a,b,o[b])});for(d in o)g=ic(q?r[d]:0,d,m),d in r||(r[d]=g.start,q&&(g.end=g.start,g.start="width"===d||"height"===d?1:0))}}function kc(a,b){var c,d,e,f,g;for(c in a)if(d=n.camelCase(c),e=b[d],f=a[c],n.isArray(f)&&(e=f[1],f=a[c]=f[0]),c!==d&&(a[d]=f,delete a[c]),g=n.cssHooks[d],g&&"expand"in g){f=g.expand(f),delete a[d];for(c in f)c in a||(a[c]=f[c],b[c]=e)}else b[d]=e}function lc(a,b,c){var d,e,f=0,g=ec.length,h=n.Deferred().always(function(){delete i.elem}),i=function(){if(e)return!1;for(var b=_b||gc(),c=Math.max(0,j.startTime+j.duration-b),d=c/j.duration||0,f=1-d,g=0,i=j.tweens.length;i>g;g++)j.tweens[g].run(f);return h.notifyWith(a,[j,f,c]),1>f&&i?c:(h.resolveWith(a,[j]),!1)},j=h.promise({elem:a,props:n.extend({},b),opts:n.extend(!0,{specialEasing:{}},c),originalProperties:b,originalOptions:c,startTime:_b||gc(),duration:c.duration,tweens:[],createTween:function(b,c){var d=n.Tween(a,j.opts,b,c,j.opts.specialEasing[b]||j.opts.easing);return j.tweens.push(d),d},stop:function(b){var c=0,d=b?j.tweens.length:0;if(e)return this;for(e=!0;d>c;c++)j.tweens[c].run(1);return b?h.resolveWith(a,[j,b]):h.rejectWith(a,[j,b]),this}}),k=j.props;for(kc(k,j.opts.specialEasing);g>f;f++)if(d=ec[f].call(j,a,k,j.opts))return d;return n.map(k,ic,j),n.isFunction(j.opts.start)&&j.opts.start.call(a,j),n.fx.timer(n.extend(i,{elem:a,anim:j,queue:j.opts.queue})),j.progress(j.opts.progress).done(j.opts.done,j.opts.complete).fail(j.opts.fail).always(j.opts.always)}n.Animation=n.extend(lc,{tweener:function(a,b){n.isFunction(a)?(b=a,a=["*"]):a=a.split(" ");for(var c,d=0,e=a.length;e>d;d++)c=a[d],fc[c]=fc[c]||[],fc[c].unshift(b)},prefilter:function(a,b){b?ec.unshift(a):ec.push(a)}}),n.speed=function(a,b,c){var d=a&&"object"==typeof a?n.extend({},a):{complete:c||!c&&b||n.isFunction(a)&&a,duration:a,easing:c&&b||b&&!n.isFunction(b)&&b};return d.duration=n.fx.off?0:"number"==typeof d.duration?d.duration:d.duration in n.fx.speeds?n.fx.speeds[d.duration]:n.fx.speeds._default,(null==d.queue||d.queue===!0)&&(d.queue="fx"),d.old=d.complete,d.complete=function(){n.isFunction(d.old)&&d.old.call(this),d.queue&&n.dequeue(this,d.queue)},d},n.fn.extend({fadeTo:function(a,b,c,d){return this.filter(V).css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){var e=n.isEmptyObject(a),f=n.speed(b,c,d),g=function(){var b=lc(this,n.extend({},a),f);(e||n._data(this,"finish"))&&b.stop(!0)};return g.finish=g,e||f.queue===!1?this.each(g):this.queue(f.queue,g)},stop:function(a,b,c){var d=function(a){var b=a.stop;delete a.stop,b(c)};return"string"!=typeof a&&(c=b,b=a,a=void 0),b&&a!==!1&&this.queue(a||"fx",[]),this.each(function(){var b=!0,e=null!=a&&a+"queueHooks",f=n.timers,g=n._data(this);if(e)g[e]&&g[e].stop&&d(g[e]);else for(e in g)g[e]&&g[e].stop&&dc.test(e)&&d(g[e]);for(e=f.length;e--;)f[e].elem!==this||null!=a&&f[e].queue!==a||(f[e].anim.stop(c),b=!1,f.splice(e,1));(b||!c)&&n.dequeue(this,a)})},finish:function(a){return a!==!1&&(a=a||"fx"),this.each(function(){var b,c=n._data(this),d=c[a+"queue"],e=c[a+"queueHooks"],f=n.timers,g=d?d.length:0;for(c.finish=!0,n.queue(this,a,[]),e&&e.stop&&e.stop.call(this,!0),b=f.length;b--;)f[b].elem===this&&f[b].queue===a&&(f[b].anim.stop(!0),f.splice(b,1));for(b=0;g>b;b++)d[b]&&d[b].finish&&d[b].finish.call(this);delete c.finish})}}),n.each(["toggle","show","hide"],function(a,b){var c=n.fn[b];n.fn[b]=function(a,d,e){return null==a||"boolean"==typeof a?c.apply(this,arguments):this.animate(hc(b,!0),a,d,e)}}),n.each({slideDown:hc("show"),slideUp:hc("hide"),slideToggle:hc("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){n.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),n.timers=[],n.fx.tick=function(){var a,b=n.timers,c=0;for(_b=n.now();c<b.length;c++)a=b[c],a()||b[c]!==a||b.splice(c--,1);b.length||n.fx.stop(),_b=void 0},n.fx.timer=function(a){n.timers.push(a),a()?n.fx.start():n.timers.pop()},n.fx.interval=13,n.fx.start=function(){ac||(ac=setInterval(n.fx.tick,n.fx.interval))},n.fx.stop=function(){clearInterval(ac),ac=null},n.fx.speeds={slow:600,fast:200,_default:400},n.fn.delay=function(a,b){return a=n.fx?n.fx.speeds[a]||a:a,b=b||"fx",this.queue(b,function(b,c){var d=setTimeout(b,a);c.stop=function(){clearTimeout(d)}})},function(){var a,b,c,d,e=z.createElement("div");e.setAttribute("className","t"),e.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",a=e.getElementsByTagName("a")[0],c=z.createElement("select"),d=c.appendChild(z.createElement("option")),b=e.getElementsByTagName("input")[0],a.style.cssText="top:1px",l.getSetAttribute="t"!==e.className,l.style=/top/.test(a.getAttribute("style")),l.hrefNormalized="/a"===a.getAttribute("href"),l.checkOn=!!b.value,l.optSelected=d.selected,l.enctype=!!z.createElement("form").enctype,c.disabled=!0,l.optDisabled=!d.disabled,b=z.createElement("input"),b.setAttribute("value",""),l.input=""===b.getAttribute("value"),b.value="t",b.setAttribute("type","radio"),l.radioValue="t"===b.value,a=b=c=d=e=null}();var mc=/\r/g;n.fn.extend({val:function(a){var b,c,d,e=this[0];{if(arguments.length)return d=n.isFunction(a),this.each(function(c){var e;1===this.nodeType&&(e=d?a.call(this,c,n(this).val()):a,null==e?e="":"number"==typeof e?e+="":n.isArray(e)&&(e=n.map(e,function(a){return null==a?"":a+""})),b=n.valHooks[this.type]||n.valHooks[this.nodeName.toLowerCase()],b&&"set"in b&&void 0!==b.set(this,e,"value")||(this.value=e))});if(e)return b=n.valHooks[e.type]||n.valHooks[e.nodeName.toLowerCase()],b&&"get"in b&&void 0!==(c=b.get(e,"value"))?c:(c=e.value,"string"==typeof c?c.replace(mc,""):null==c?"":c)}}}),n.extend({valHooks:{option:{get:function(a){var b=n.find.attr(a,"value");return null!=b?b:n.text(a)}},select:{get:function(a){for(var b,c,d=a.options,e=a.selectedIndex,f="select-one"===a.type||0>e,g=f?null:[],h=f?e+1:d.length,i=0>e?h:f?e:0;h>i;i++)if(c=d[i],!(!c.selected&&i!==e||(l.optDisabled?c.disabled:null!==c.getAttribute("disabled"))||c.parentNode.disabled&&n.nodeName(c.parentNode,"optgroup"))){if(b=n(c).val(),f)return b;g.push(b)}return g},set:function(a,b){var c,d,e=a.options,f=n.makeArray(b),g=e.length;while(g--)if(d=e[g],n.inArray(n.valHooks.option.get(d),f)>=0)try{d.selected=c=!0}catch(h){d.scrollHeight}else d.selected=!1;return c||(a.selectedIndex=-1),e}}}}),n.each(["radio","checkbox"],function(){n.valHooks[this]={set:function(a,b){return n.isArray(b)?a.checked=n.inArray(n(a).val(),b)>=0:void 0}},l.checkOn||(n.valHooks[this].get=function(a){return null===a.getAttribute("value")?"on":a.value})});var nc,oc,pc=n.expr.attrHandle,qc=/^(?:checked|selected)$/i,rc=l.getSetAttribute,sc=l.input;n.fn.extend({attr:function(a,b){return W(this,n.attr,a,b,arguments.length>1)},removeAttr:function(a){return this.each(function(){n.removeAttr(this,a)})}}),n.extend({attr:function(a,b,c){var d,e,f=a.nodeType;if(a&&3!==f&&8!==f&&2!==f)return typeof a.getAttribute===L?n.prop(a,b,c):(1===f&&n.isXMLDoc(a)||(b=b.toLowerCase(),d=n.attrHooks[b]||(n.expr.match.bool.test(b)?oc:nc)),void 0===c?d&&"get"in d&&null!==(e=d.get(a,b))?e:(e=n.find.attr(a,b),null==e?void 0:e):null!==c?d&&"set"in d&&void 0!==(e=d.set(a,c,b))?e:(a.setAttribute(b,c+""),c):void n.removeAttr(a,b))},removeAttr:function(a,b){var c,d,e=0,f=b&&b.match(F);if(f&&1===a.nodeType)while(c=f[e++])d=n.propFix[c]||c,n.expr.match.bool.test(c)?sc&&rc||!qc.test(c)?a[d]=!1:a[n.camelCase("default-"+c)]=a[d]=!1:n.attr(a,c,""),a.removeAttribute(rc?c:d)},attrHooks:{type:{set:function(a,b){if(!l.radioValue&&"radio"===b&&n.nodeName(a,"input")){var c=a.value;return a.setAttribute("type",b),c&&(a.value=c),b}}}}}),oc={set:function(a,b,c){return b===!1?n.removeAttr(a,c):sc&&rc||!qc.test(c)?a.setAttribute(!rc&&n.propFix[c]||c,c):a[n.camelCase("default-"+c)]=a[c]=!0,c}},n.each(n.expr.match.bool.source.match(/\w+/g),function(a,b){var c=pc[b]||n.find.attr;pc[b]=sc&&rc||!qc.test(b)?function(a,b,d){var e,f;return d||(f=pc[b],pc[b]=e,e=null!=c(a,b,d)?b.toLowerCase():null,pc[b]=f),e}:function(a,b,c){return c?void 0:a[n.camelCase("default-"+b)]?b.toLowerCase():null}}),sc&&rc||(n.attrHooks.value={set:function(a,b,c){return n.nodeName(a,"input")?void(a.defaultValue=b):nc&&nc.set(a,b,c)}}),rc||(nc={set:function(a,b,c){var d=a.getAttributeNode(c);return d||a.setAttributeNode(d=a.ownerDocument.createAttribute(c)),d.value=b+="","value"===c||b===a.getAttribute(c)?b:void 0}},pc.id=pc.name=pc.coords=function(a,b,c){var d;return c?void 0:(d=a.getAttributeNode(b))&&""!==d.value?d.value:null},n.valHooks.button={get:function(a,b){var c=a.getAttributeNode(b);return c&&c.specified?c.value:void 0},set:nc.set},n.attrHooks.contenteditable={set:function(a,b,c){nc.set(a,""===b?!1:b,c)}},n.each(["width","height"],function(a,b){n.attrHooks[b]={set:function(a,c){return""===c?(a.setAttribute(b,"auto"),c):void 0}}})),l.style||(n.attrHooks.style={get:function(a){return a.style.cssText||void 0},set:function(a,b){return a.style.cssText=b+""}});var tc=/^(?:input|select|textarea|button|object)$/i,uc=/^(?:a|area)$/i;n.fn.extend({prop:function(a,b){return W(this,n.prop,a,b,arguments.length>1)},removeProp:function(a){return a=n.propFix[a]||a,this.each(function(){try{this[a]=void 0,delete this[a]}catch(b){}})}}),n.extend({propFix:{"for":"htmlFor","class":"className"},prop:function(a,b,c){var d,e,f,g=a.nodeType;if(a&&3!==g&&8!==g&&2!==g)return f=1!==g||!n.isXMLDoc(a),f&&(b=n.propFix[b]||b,e=n.propHooks[b]),void 0!==c?e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:a[b]=c:e&&"get"in e&&null!==(d=e.get(a,b))?d:a[b]},propHooks:{tabIndex:{get:function(a){var b=n.find.attr(a,"tabindex");return b?parseInt(b,10):tc.test(a.nodeName)||uc.test(a.nodeName)&&a.href?0:-1}}}}),l.hrefNormalized||n.each(["href","src"],function(a,b){n.propHooks[b]={get:function(a){return a.getAttribute(b,4)}}}),l.optSelected||(n.propHooks.selected={get:function(a){var b=a.parentNode;return b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex),null}}),n.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){n.propFix[this.toLowerCase()]=this}),l.enctype||(n.propFix.enctype="encoding");var vc=/[\t\r\n\f]/g;n.fn.extend({addClass:function(a){var b,c,d,e,f,g,h=0,i=this.length,j="string"==typeof a&&a;if(n.isFunction(a))return this.each(function(b){n(this).addClass(a.call(this,b,this.className))});if(j)for(b=(a||"").match(F)||[];i>h;h++)if(c=this[h],d=1===c.nodeType&&(c.className?(" "+c.className+" ").replace(vc," "):" ")){f=0;while(e=b[f++])d.indexOf(" "+e+" ")<0&&(d+=e+" ");g=n.trim(d),c.className!==g&&(c.className=g)}return this},removeClass:function(a){var b,c,d,e,f,g,h=0,i=this.length,j=0===arguments.length||"string"==typeof a&&a;if(n.isFunction(a))return this.each(function(b){n(this).removeClass(a.call(this,b,this.className))});if(j)for(b=(a||"").match(F)||[];i>h;h++)if(c=this[h],d=1===c.nodeType&&(c.className?(" "+c.className+" ").replace(vc," "):"")){f=0;while(e=b[f++])while(d.indexOf(" "+e+" ")>=0)d=d.replace(" "+e+" "," ");g=a?n.trim(d):"",c.className!==g&&(c.className=g)}return this},toggleClass:function(a,b){var c=typeof a;return"boolean"==typeof b&&"string"===c?b?this.addClass(a):this.removeClass(a):this.each(n.isFunction(a)?function(c){n(this).toggleClass(a.call(this,c,this.className,b),b)}:function(){if("string"===c){var b,d=0,e=n(this),f=a.match(F)||[];while(b=f[d++])e.hasClass(b)?e.removeClass(b):e.addClass(b)}else(c===L||"boolean"===c)&&(this.className&&n._data(this,"__className__",this.className),this.className=this.className||a===!1?"":n._data(this,"__className__")||"")})},hasClass:function(a){for(var b=" "+a+" ",c=0,d=this.length;d>c;c++)if(1===this[c].nodeType&&(" "+this[c].className+" ").replace(vc," ").indexOf(b)>=0)return!0;return!1}}),n.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(a,b){n.fn[b]=function(a,c){return arguments.length>0?this.on(b,null,a,c):this.trigger(b)}}),n.fn.extend({hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)},bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return 1===arguments.length?this.off(a,"**"):this.off(b,a||"**",c)}});var wc=n.now(),xc=/\?/,yc=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;n.parseJSON=function(b){if(a.JSON&&a.JSON.parse)return a.JSON.parse(b+"");var c,d=null,e=n.trim(b+"");return e&&!n.trim(e.replace(yc,function(a,b,e,f){return c&&b&&(d=0),0===d?a:(c=e||b,d+=!f-!e,"")}))?Function("return "+e)():n.error("Invalid JSON: "+b)},n.parseXML=function(b){var c,d;if(!b||"string"!=typeof b)return null;try{a.DOMParser?(d=new DOMParser,c=d.parseFromString(b,"text/xml")):(c=new ActiveXObject("Microsoft.XMLDOM"),c.async="false",c.loadXML(b))}catch(e){c=void 0}return c&&c.documentElement&&!c.getElementsByTagName("parsererror").length||n.error("Invalid XML: "+b),c};var zc,Ac,Bc=/#.*$/,Cc=/([?&])_=[^&]*/,Dc=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Ec=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Fc=/^(?:GET|HEAD)$/,Gc=/^\/\//,Hc=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,Ic={},Jc={},Kc="*/".concat("*");try{Ac=location.href}catch(Lc){Ac=z.createElement("a"),Ac.href="",Ac=Ac.href}zc=Hc.exec(Ac.toLowerCase())||[];function Mc(a){return function(b,c){"string"!=typeof b&&(c=b,b="*");var d,e=0,f=b.toLowerCase().match(F)||[];if(n.isFunction(c))while(d=f[e++])"+"===d.charAt(0)?(d=d.slice(1)||"*",(a[d]=a[d]||[]).unshift(c)):(a[d]=a[d]||[]).push(c)}}function Nc(a,b,c,d){var e={},f=a===Jc;function g(h){var i;return e[h]=!0,n.each(a[h]||[],function(a,h){var j=h(b,c,d);return"string"!=typeof j||f||e[j]?f?!(i=j):void 0:(b.dataTypes.unshift(j),g(j),!1)}),i}return g(b.dataTypes[0])||!e["*"]&&g("*")}function Oc(a,b){var c,d,e=n.ajaxSettings.flatOptions||{};for(d in b)void 0!==b[d]&&((e[d]?a:c||(c={}))[d]=b[d]);return c&&n.extend(!0,a,c),a}function Pc(a,b,c){var d,e,f,g,h=a.contents,i=a.dataTypes;while("*"===i[0])i.shift(),void 0===e&&(e=a.mimeType||b.getResponseHeader("Content-Type"));if(e)for(g in h)if(h[g]&&h[g].test(e)){i.unshift(g);break}if(i[0]in c)f=i[0];else{for(g in c){if(!i[0]||a.converters[g+" "+i[0]]){f=g;break}d||(d=g)}f=f||d}return f?(f!==i[0]&&i.unshift(f),c[f]):void 0}function Qc(a,b,c,d){var e,f,g,h,i,j={},k=a.dataTypes.slice();if(k[1])for(g in a.converters)j[g.toLowerCase()]=a.converters[g];f=k.shift();while(f)if(a.responseFields[f]&&(c[a.responseFields[f]]=b),!i&&d&&a.dataFilter&&(b=a.dataFilter(b,a.dataType)),i=f,f=k.shift())if("*"===f)f=i;else if("*"!==i&&i!==f){if(g=j[i+" "+f]||j["* "+f],!g)for(e in j)if(h=e.split(" "),h[1]===f&&(g=j[i+" "+h[0]]||j["* "+h[0]])){g===!0?g=j[e]:j[e]!==!0&&(f=h[0],k.unshift(h[1]));break}if(g!==!0)if(g&&a["throws"])b=g(b);else try{b=g(b)}catch(l){return{state:"parsererror",error:g?l:"No conversion from "+i+" to "+f}}}return{state:"success",data:b}}n.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ac,type:"GET",isLocal:Ec.test(zc[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Kc,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":n.parseJSON,"text xml":n.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(a,b){return b?Oc(Oc(a,n.ajaxSettings),b):Oc(n.ajaxSettings,a)},ajaxPrefilter:Mc(Ic),ajaxTransport:Mc(Jc),ajax:function(a,b){"object"==typeof a&&(b=a,a=void 0),b=b||{};var c,d,e,f,g,h,i,j,k=n.ajaxSetup({},b),l=k.context||k,m=k.context&&(l.nodeType||l.jquery)?n(l):n.event,o=n.Deferred(),p=n.Callbacks("once memory"),q=k.statusCode||{},r={},s={},t=0,u="canceled",v={readyState:0,getResponseHeader:function(a){var b;if(2===t){if(!j){j={};while(b=Dc.exec(f))j[b[1].toLowerCase()]=b[2]}b=j[a.toLowerCase()]}return null==b?null:b},getAllResponseHeaders:function(){return 2===t?f:null},setRequestHeader:function(a,b){var c=a.toLowerCase();return t||(a=s[c]=s[c]||a,r[a]=b),this},overrideMimeType:function(a){return t||(k.mimeType=a),this},statusCode:function(a){var b;if(a)if(2>t)for(b in a)q[b]=[q[b],a[b]];else v.always(a[v.status]);return this},abort:function(a){var b=a||u;return i&&i.abort(b),x(0,b),this}};if(o.promise(v).complete=p.add,v.success=v.done,v.error=v.fail,k.url=((a||k.url||Ac)+"").replace(Bc,"").replace(Gc,zc[1]+"//"),k.type=b.method||b.type||k.method||k.type,k.dataTypes=n.trim(k.dataType||"*").toLowerCase().match(F)||[""],null==k.crossDomain&&(c=Hc.exec(k.url.toLowerCase()),k.crossDomain=!(!c||c[1]===zc[1]&&c[2]===zc[2]&&(c[3]||("http:"===c[1]?"80":"443"))===(zc[3]||("http:"===zc[1]?"80":"443")))),k.data&&k.processData&&"string"!=typeof k.data&&(k.data=n.param(k.data,k.traditional)),Nc(Ic,k,b,v),2===t)return v;h=k.global,h&&0===n.active++&&n.event.trigger("ajaxStart"),k.type=k.type.toUpperCase(),k.hasContent=!Fc.test(k.type),e=k.url,k.hasContent||(k.data&&(e=k.url+=(xc.test(e)?"&":"?")+k.data,delete k.data),k.cache===!1&&(k.url=Cc.test(e)?e.replace(Cc,"$1_="+wc++):e+(xc.test(e)?"&":"?")+"_="+wc++)),k.ifModified&&(n.lastModified[e]&&v.setRequestHeader("If-Modified-Since",n.lastModified[e]),n.etag[e]&&v.setRequestHeader("If-None-Match",n.etag[e])),(k.data&&k.hasContent&&k.contentType!==!1||b.contentType)&&v.setRequestHeader("Content-Type",k.contentType),v.setRequestHeader("Accept",k.dataTypes[0]&&k.accepts[k.dataTypes[0]]?k.accepts[k.dataTypes[0]]+("*"!==k.dataTypes[0]?", "+Kc+"; q=0.01":""):k.accepts["*"]);for(d in k.headers)v.setRequestHeader(d,k.headers[d]);if(k.beforeSend&&(k.beforeSend.call(l,v,k)===!1||2===t))return v.abort();u="abort";for(d in{success:1,error:1,complete:1})v[d](k[d]);if(i=Nc(Jc,k,b,v)){v.readyState=1,h&&m.trigger("ajaxSend",[v,k]),k.async&&k.timeout>0&&(g=setTimeout(function(){v.abort("timeout")},k.timeout));try{t=1,i.send(r,x)}catch(w){if(!(2>t))throw w;x(-1,w)}}else x(-1,"No Transport");function x(a,b,c,d){var j,r,s,u,w,x=b;2!==t&&(t=2,g&&clearTimeout(g),i=void 0,f=d||"",v.readyState=a>0?4:0,j=a>=200&&300>a||304===a,c&&(u=Pc(k,v,c)),u=Qc(k,u,v,j),j?(k.ifModified&&(w=v.getResponseHeader("Last-Modified"),w&&(n.lastModified[e]=w),w=v.getResponseHeader("etag"),w&&(n.etag[e]=w)),204===a||"HEAD"===k.type?x="nocontent":304===a?x="notmodified":(x=u.state,r=u.data,s=u.error,j=!s)):(s=x,(a||!x)&&(x="error",0>a&&(a=0))),v.status=a,v.statusText=(b||x)+"",j?o.resolveWith(l,[r,x,v]):o.rejectWith(l,[v,x,s]),v.statusCode(q),q=void 0,h&&m.trigger(j?"ajaxSuccess":"ajaxError",[v,k,j?r:s]),p.fireWith(l,[v,x]),h&&(m.trigger("ajaxComplete",[v,k]),--n.active||n.event.trigger("ajaxStop")))}return v},getJSON:function(a,b,c){return n.get(a,b,c,"json")},getScript:function(a,b){return n.get(a,void 0,b,"script")}}),n.each(["get","post"],function(a,b){n[b]=function(a,c,d,e){return n.isFunction(c)&&(e=e||d,d=c,c=void 0),n.ajax({url:a,type:b,dataType:e,data:c,success:d})}}),n.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(a,b){n.fn[b]=function(a){return this.on(b,a)}}),n._evalUrl=function(a){return n.ajax({url:a,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},n.fn.extend({wrapAll:function(a){if(n.isFunction(a))return this.each(function(b){n(this).wrapAll(a.call(this,b))});if(this[0]){var b=n(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&1===a.firstChild.nodeType)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){return this.each(n.isFunction(a)?function(b){n(this).wrapInner(a.call(this,b))}:function(){var b=n(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=n.isFunction(a);return this.each(function(c){n(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){n.nodeName(this,"body")||n(this).replaceWith(this.childNodes)}).end()}}),n.expr.filters.hidden=function(a){return a.offsetWidth<=0&&a.offsetHeight<=0||!l.reliableHiddenOffsets()&&"none"===(a.style&&a.style.display||n.css(a,"display"))},n.expr.filters.visible=function(a){return!n.expr.filters.hidden(a)};var Rc=/%20/g,Sc=/\[\]$/,Tc=/\r?\n/g,Uc=/^(?:submit|button|image|reset|file)$/i,Vc=/^(?:input|select|textarea|keygen)/i;function Wc(a,b,c,d){var e;if(n.isArray(b))n.each(b,function(b,e){c||Sc.test(a)?d(a,e):Wc(a+"["+("object"==typeof e?b:"")+"]",e,c,d)});else if(c||"object"!==n.type(b))d(a,b);else for(e in b)Wc(a+"["+e+"]",b[e],c,d)}n.param=function(a,b){var c,d=[],e=function(a,b){b=n.isFunction(b)?b():null==b?"":b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};if(void 0===b&&(b=n.ajaxSettings&&n.ajaxSettings.traditional),n.isArray(a)||a.jquery&&!n.isPlainObject(a))n.each(a,function(){e(this.name,this.value)});else for(c in a)Wc(c,a[c],b,e);return d.join("&").replace(Rc,"+")},n.fn.extend({serialize:function(){return n.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var a=n.prop(this,"elements");return a?n.makeArray(a):this}).filter(function(){var a=this.type;return this.name&&!n(this).is(":disabled")&&Vc.test(this.nodeName)&&!Uc.test(a)&&(this.checked||!X.test(a))}).map(function(a,b){var c=n(this).val();return null==c?null:n.isArray(c)?n.map(c,function(a){return{name:b.name,value:a.replace(Tc,"\r\n")}}):{name:b.name,value:c.replace(Tc,"\r\n")}}).get()}}),n.ajaxSettings.xhr=void 0!==a.ActiveXObject?function(){return!this.isLocal&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&$c()||_c()}:$c;var Xc=0,Yc={},Zc=n.ajaxSettings.xhr();a.ActiveXObject&&n(a).on("unload",function(){for(var a in Yc)Yc[a](void 0,!0)}),l.cors=!!Zc&&"withCredentials"in Zc,Zc=l.ajax=!!Zc,Zc&&n.ajaxTransport(function(a){if(!a.crossDomain||l.cors){var b;return{send:function(c,d){var e,f=a.xhr(),g=++Xc;if(f.open(a.type,a.url,a.async,a.username,a.password),a.xhrFields)for(e in a.xhrFields)f[e]=a.xhrFields[e];a.mimeType&&f.overrideMimeType&&f.overrideMimeType(a.mimeType),a.crossDomain||c["X-Requested-With"]||(c["X-Requested-With"]="XMLHttpRequest");for(e in c)void 0!==c[e]&&f.setRequestHeader(e,c[e]+"");f.send(a.hasContent&&a.data||null),b=function(c,e){var h,i,j;if(b&&(e||4===f.readyState))if(delete Yc[g],b=void 0,f.onreadystatechange=n.noop,e)4!==f.readyState&&f.abort();else{j={},h=f.status,"string"==typeof f.responseText&&(j.text=f.responseText);try{i=f.statusText}catch(k){i=""}h||!a.isLocal||a.crossDomain?1223===h&&(h=204):h=j.text?200:404}j&&d(h,i,j,f.getAllResponseHeaders())},a.async?4===f.readyState?setTimeout(b):f.onreadystatechange=Yc[g]=b:b()},abort:function(){b&&b(void 0,!0)}}}});function $c(){try{return new a.XMLHttpRequest}catch(b){}}function _c(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}n.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(a){return n.globalEval(a),a}}}),n.ajaxPrefilter("script",function(a){void 0===a.cache&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),n.ajaxTransport("script",function(a){if(a.crossDomain){var b,c=z.head||n("head")[0]||z.documentElement;return{send:function(d,e){b=z.createElement("script"),b.async=!0,a.scriptCharset&&(b.charset=a.scriptCharset),b.src=a.url,b.onload=b.onreadystatechange=function(a,c){(c||!b.readyState||/loaded|complete/.test(b.readyState))&&(b.onload=b.onreadystatechange=null,b.parentNode&&b.parentNode.removeChild(b),b=null,c||e(200,"success"))},c.insertBefore(b,c.firstChild)},abort:function(){b&&b.onload(void 0,!0)}}}});var ad=[],bd=/(=)\?(?=&|$)|\?\?/;n.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var a=ad.pop()||n.expando+"_"+wc++;return this[a]=!0,a}}),n.ajaxPrefilter("json jsonp",function(b,c,d){var e,f,g,h=b.jsonp!==!1&&(bd.test(b.url)?"url":"string"==typeof b.data&&!(b.contentType||"").indexOf("application/x-www-form-urlencoded")&&bd.test(b.data)&&"data");return h||"jsonp"===b.dataTypes[0]?(e=b.jsonpCallback=n.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,h?b[h]=b[h].replace(bd,"$1"+e):b.jsonp!==!1&&(b.url+=(xc.test(b.url)?"&":"?")+b.jsonp+"="+e),b.converters["script json"]=function(){return g||n.error(e+" was not called"),g[0]},b.dataTypes[0]="json",f=a[e],a[e]=function(){g=arguments},d.always(function(){a[e]=f,b[e]&&(b.jsonpCallback=c.jsonpCallback,ad.push(e)),g&&n.isFunction(f)&&f(g[0]),g=f=void 0}),"script"):void 0}),n.parseHTML=function(a,b,c){if(!a||"string"!=typeof a)return null;"boolean"==typeof b&&(c=b,b=!1),b=b||z;var d=v.exec(a),e=!c&&[];return d?[b.createElement(d[1])]:(d=n.buildFragment([a],b,e),e&&e.length&&n(e).remove(),n.merge([],d.childNodes))};var cd=n.fn.load;n.fn.load=function(a,b,c){if("string"!=typeof a&&cd)return cd.apply(this,arguments);var d,e,f,g=this,h=a.indexOf(" ");return h>=0&&(d=a.slice(h,a.length),a=a.slice(0,h)),n.isFunction(b)?(c=b,b=void 0):b&&"object"==typeof b&&(f="POST"),g.length>0&&n.ajax({url:a,type:f,dataType:"html",data:b}).done(function(a){e=arguments,g.html(d?n("<div>").append(n.parseHTML(a)).find(d):a)}).complete(c&&function(a,b){g.each(c,e||[a.responseText,b,a])}),this},n.expr.filters.animated=function(a){return n.grep(n.timers,function(b){return a===b.elem}).length};var dd=a.document.documentElement;function ed(a){return n.isWindow(a)?a:9===a.nodeType?a.defaultView||a.parentWindow:!1}n.offset={setOffset:function(a,b,c){var d,e,f,g,h,i,j,k=n.css(a,"position"),l=n(a),m={};"static"===k&&(a.style.position="relative"),h=l.offset(),f=n.css(a,"top"),i=n.css(a,"left"),j=("absolute"===k||"fixed"===k)&&n.inArray("auto",[f,i])>-1,j?(d=l.position(),g=d.top,e=d.left):(g=parseFloat(f)||0,e=parseFloat(i)||0),n.isFunction(b)&&(b=b.call(a,c,h)),null!=b.top&&(m.top=b.top-h.top+g),null!=b.left&&(m.left=b.left-h.left+e),"using"in b?b.using.call(a,m):l.css(m)}},n.fn.extend({offset:function(a){if(arguments.length)return void 0===a?this:this.each(function(b){n.offset.setOffset(this,a,b)});var b,c,d={top:0,left:0},e=this[0],f=e&&e.ownerDocument;if(f)return b=f.documentElement,n.contains(b,e)?(typeof e.getBoundingClientRect!==L&&(d=e.getBoundingClientRect()),c=ed(f),{top:d.top+(c.pageYOffset||b.scrollTop)-(b.clientTop||0),left:d.left+(c.pageXOffset||b.scrollLeft)-(b.clientLeft||0)}):d},position:function(){if(this[0]){var a,b,c={top:0,left:0},d=this[0];return"fixed"===n.css(d,"position")?b=d.getBoundingClientRect():(a=this.offsetParent(),b=this.offset(),n.nodeName(a[0],"html")||(c=a.offset()),c.top+=n.css(a[0],"borderTopWidth",!0),c.left+=n.css(a[0],"borderLeftWidth",!0)),{top:b.top-c.top-n.css(d,"marginTop",!0),left:b.left-c.left-n.css(d,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||dd;while(a&&!n.nodeName(a,"html")&&"static"===n.css(a,"position"))a=a.offsetParent;return a||dd})}}),n.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,b){var c=/Y/.test(b);n.fn[a]=function(d){return W(this,function(a,d,e){var f=ed(a);return void 0===e?f?b in f?f[b]:f.document.documentElement[d]:a[d]:void(f?f.scrollTo(c?n(f).scrollLeft():e,c?e:n(f).scrollTop()):a[d]=e)},a,d,arguments.length,null)}}),n.each(["top","left"],function(a,b){n.cssHooks[b]=Mb(l.pixelPosition,function(a,c){return c?(c=Kb(a,b),Ib.test(c)?n(a).position()[b]+"px":c):void 0})}),n.each({Height:"height",Width:"width"},function(a,b){n.each({padding:"inner"+a,content:b,"":"outer"+a},function(c,d){n.fn[d]=function(d,e){var f=arguments.length&&(c||"boolean"!=typeof d),g=c||(d===!0||e===!0?"margin":"border");return W(this,function(b,c,d){var e;return n.isWindow(b)?b.document.documentElement["client"+a]:9===b.nodeType?(e=b.documentElement,Math.max(b.body["scroll"+a],e["scroll"+a],b.body["offset"+a],e["offset"+a],e["client"+a])):void 0===d?n.css(b,c,g):n.style(b,c,d,g)},b,f?d:void 0,f,null)}})}),n.fn.size=function(){return this.length},n.fn.andSelf=n.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return n});var fd=a.jQuery,gd=a.$;return n.noConflict=function(b){return a.$===n&&(a.$=gd),b&&a.jQuery===n&&(a.jQuery=fd),n},typeof b===L&&(a.jQuery=a.$=n),n});
|
9 |
+
<?php endif; ?>
|
10 |
+
|
11 |
+
if (typeof window.avisVerifies === 'undefined') {
|
12 |
+
window.avisVerifies = {};
|
13 |
+
}
|
14 |
+
|
15 |
+
<?php if($nojQuery): ?>
|
16 |
+
//HANDLE MULTIPLE JQUERY VERSIONS
|
17 |
+
window.avisVerifies.jQuery = jQuery.noConflict(true);
|
18 |
+
<?php else: ?>
|
19 |
+
window.avisVerifies.jQuery = window.jQuery;
|
20 |
+
<?php endif; ?>
|
21 |
+
|
22 |
+
window.avisVerifies.scrollTo = function(){
|
23 |
+
var $avjq = window.avisVerifies.jQuery;
|
24 |
+
$avjq('html,body').animate({scrollTop: $avjq("#idTabavisverifies").offset().top}, 'slow');
|
25 |
+
};
|
26 |
+
|
27 |
+
window.avisVerifies.Ajax = function(){
|
28 |
+
var $avjq = window.avisVerifies.jQuery;
|
29 |
+
var urlAjax = $avjq("#avisVarifiesAjaxUrl").val();
|
30 |
+
var $imgAjax = $avjq("#avisVarifiesAjaxImage");
|
31 |
+
var $click = $avjq('#av_load_next_page');
|
32 |
+
var $content = $avjq("#ajax_comment_content");
|
33 |
+
var page = parseInt($click.attr('data-page'));
|
34 |
+
var maxPage = parseInt($click.attr('data-page-last'));
|
35 |
+
page++;
|
36 |
+
$avjq.ajax({
|
37 |
+
url: urlAjax,
|
38 |
+
type: "POST",
|
39 |
+
data: {p : page},
|
40 |
+
beforeSend: function() {
|
41 |
+
$imgAjax.show();
|
42 |
+
},
|
43 |
+
success: function(html){
|
44 |
+
$content.append(html);
|
45 |
+
$click.attr('data-page',page);
|
46 |
+
$imgAjax.hide();
|
47 |
+
if(maxPage <= page)
|
48 |
+
$click.hide();
|
49 |
+
},
|
50 |
+
error: function ( jqXHR, textStatus, errorThrown ){
|
51 |
+
alert('something went wrong...');
|
52 |
+
}
|
53 |
+
});
|
54 |
+
}
|
55 |
+
|
56 |
+
window.avisVerifies.showComments = function (obj){
|
57 |
+
var $avjq = window.avisVerifies.jQuery;
|
58 |
+
var $this = $avjq(obj);
|
59 |
+
var $parent = $this.parent();
|
60 |
+
$parent.find('.display-all-comments').show();
|
61 |
+
$this.hide();
|
62 |
+
$parent.find('.answer').each(function(index,value){
|
63 |
+
$avjq(value).show('slow');
|
64 |
+
});
|
65 |
+
}
|
66 |
+
window.avisVerifies.hideComments = function (obj){
|
67 |
+
var $avjq = window.avisVerifies.jQuery;
|
68 |
+
var $this = $avjq(obj);
|
69 |
+
var $parent = $this.parent();
|
70 |
+
$parent.find('.display-all-comments').show();
|
71 |
+
$this.hide();
|
72 |
+
$parent.find('.answer').each(function(index,value){
|
73 |
+
if(index !=0 ){
|
74 |
+
$avjq(value).hide('slow');
|
75 |
+
}
|
76 |
+
});
|
77 |
+
}
|
78 |
+
</script>
|
79 |
+
<?php endif;?>
|
app/design/frontend/base/default/template/avisverifies/left.phtml
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php // Important: this block is called on the left block area. ?>
|
2 |
+
<?php $SCRIPTFIXE_ALLOWED = (Mage::getStoreConfig(strtolower('avisverifies/system/SCRIPTFIXE_ALLOWED'))=='yes') ?>
|
3 |
+
<?php $SCRIPTFIXE_POSITION = (Mage::getStoreConfig(strtolower('avisverifies/system/SCRIPTFIXE_POSITION')) == "left") ?>
|
4 |
+
<?php if($SCRIPTFIXE_ALLOWED && $SCRIPTFIXE_POSITION): ?>
|
5 |
+
<div style="margin: auto;">
|
6 |
+
<?php echo Mage::getStoreConfig(strtolower('avisverifies/system/SCRIPTFIXE')) ?>
|
7 |
+
</div>
|
8 |
+
<?php endif;?>
|
9 |
+
|
10 |
+
<?php //echo "<script> console.log('AV: left -> block: left');</script>"; ?>
|
app/design/frontend/base/default/template/avisverifies/observers/checkout.phtml
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
<?php $order = $this->getOrder() ?>
|
3 |
+
<?php $url = '//www.netreviews.eu/index.php?action=act_order&idWebsite=' ?>
|
4 |
+
<?php $orderId = $order->getData('entity_id') ?>
|
5 |
+
<?php $orderTotal = $order->getData('base_grand_total') * 100; ?>
|
6 |
+
<?php $idWebsite = Mage::getStoreConfig('avisverifies/system/idwebsite'); ?>
|
7 |
+
<?php $langue = 'undef'; ?>
|
8 |
+
<?php $url .= $idWebsite.'&langue='.$langue.'&refCommande='.$orderId.'&montant='.$orderTotal ?>
|
9 |
+
|
10 |
+
<?php if(Netreviews_Avisverifies_Helper_Data::isActive()): // Our Display. ?>
|
11 |
+
<img height='1' hspace='0' style="position: absolute; bottom: 0; right: 0;" src='<?php echo $url ?>' />
|
12 |
+
<?php endif;?>
|
app/design/frontend/base/default/template/avisverifies/pagination.phtml
ADDED
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php // This Block is called to paginate reviews. ?>
|
2 |
+
<?php if(Netreviews_Avisverifies_Helper_Data::isActive()): ?>
|
3 |
+
<?php $p = ($this->getRequest()->getParam('p'))? (int) $this->getRequest()->getParam('p') : 1; ?>
|
4 |
+
<?php $o_av = Mage::getModel('avisverifies/reviews'); ?>
|
5 |
+
<?php $ProductId = (int) $this->getRequest()->getParam('id_product'); ?>
|
6 |
+
<?php // to use same code. we are going to call first page from our code. ?>
|
7 |
+
<?php $ProductId =($ProductId != 0)? $ProductId : $this->getData('productId'); ?>
|
8 |
+
<?php // to use same code. we are going to call first page from our code. ?>
|
9 |
+
<?php $o_av->idProduct = $ProductId; ?>
|
10 |
+
<?php $o_av->page = $p; ?>
|
11 |
+
<?php $reviews = $o_av->getProductReviews(); ?>
|
12 |
+
<?php $richSnipet = array('','','','','','',''); ?>
|
13 |
+
<?php // $richSnipet[0] = ' itemprop="review" itemscope itemtype="http://schema.org/Review" '?>
|
14 |
+
<?php // $richSnipet[1] = ' itemprop="ratingValue" '?>
|
15 |
+
<?php // $richSnipet[2] = ' itemprop="author" '?>
|
16 |
+
<?php // $richSnipet[3] = ' <meta itemprop="datePublished" content="%s"> '?>
|
17 |
+
<?php // $richSnipet[4] = ' itemprop="reviewRating" itemscope itemtype="http://schema.org/Rating" '?>
|
18 |
+
<?php // $richSnipet[5] = ' itemprop="bestRating" '?>
|
19 |
+
<?php // $richSnipet[6] = ' itemprop="description" '?>
|
20 |
+
|
21 |
+
<?php foreach($reviews as $k_review=>$review): ?>
|
22 |
+
<style>.display-all-comments{padding-left: 6px;margin-left: 30px; display: block; font-style:italic}</style>
|
23 |
+
<div class="reviewAV" <?php echo $richSnipet[0] ?>>
|
24 |
+
<div class="reviewInfosAV">
|
25 |
+
<div style="text-transform:capitalize" <?php echo $richSnipet[2] ?>>
|
26 |
+
<?php echo $o_av->AV_sgbd_decode($review->getData('customer_name')) ?>
|
27 |
+
</div>
|
28 |
+
<div>
|
29 |
+
<?php echo $this->__('the')?>
|
30 |
+
<?php $date = date($this->__('d/m/Y'),($review->getData('horodate')))?>
|
31 |
+
<?php echo sprintf($richSnipet[3], date("Y-m-d",$review->getData('horodate'))) ?>
|
32 |
+
<?php echo $date?>
|
33 |
+
</div>
|
34 |
+
<div class="rateAV" <?php echo $richSnipet[4] ?>>
|
35 |
+
<img src="<?php echo $this->getSkinUrl('images/avisverifies/etoile'.$review->getData('rate').'.png')?>" width="80" height="15" />
|
36 |
+
<span <?php echo $richSnipet[1] ?>><?php echo $review->getData('rate')?></span>/ <span <?php echo $richSnipet[5] ?>>5</span>
|
37 |
+
</div>
|
38 |
+
</div>
|
39 |
+
<div class="triangle-border top" <?php echo $richSnipet[6] ?>>
|
40 |
+
<?php echo $this->htmlEscape($o_av->AV_sgbd_decode($review->getData('review'))) ?>
|
41 |
+
</div>
|
42 |
+
<?php $discussions = $o_av->discussion($review->getData('discussion'),$review);?>
|
43 |
+
<?php $k_discussion = 0; ?>
|
44 |
+
<?php if($discussions): ?>
|
45 |
+
<?php foreach($discussions as $k_discussion=>$discussion): ?>
|
46 |
+
<?php $styleNumber = ($k_discussion > 0)? 'none':'block' ?>
|
47 |
+
<div class="triangle-border top answer" style="display:<?php echo $styleNumber ?>">
|
48 |
+
<span> ›
|
49 |
+
<?php echo $this->__('Comments of')?>
|
50 |
+
<b style="text-transform:capitalize; font-weight:normal">
|
51 |
+
<?php echo $this->__($discussion['origine'])?>
|
52 |
+
</b>
|
53 |
+
<?php echo $this->__('on')?>
|
54 |
+
<?php echo date($this->__('d/m/Y'),$discussion['horodate'])?>
|
55 |
+
</span>
|
56 |
+
<p class="answer-bodyAV">
|
57 |
+
<?php echo $this->htmlEscape($o_av->AV_sgbd_decode($discussion['commentaire'])) ?>
|
58 |
+
</p>
|
59 |
+
</div>
|
60 |
+
<?php endforeach; ?>
|
61 |
+
<?php if($k_discussion > 0):?>
|
62 |
+
<a href="javascript:void(0)" onclick="window.avisVerifies.showComments(this)" style="display:block" class="display-all-comments">
|
63 |
+
<?php echo $this->__('Show conversation')?>
|
64 |
+
</a>
|
65 |
+
<a href="javascript:void(0)" onclick="window.avisVerifies.hideComments(this)" style="display:none" class="display-all-comments">
|
66 |
+
<?php echo $this->__('Hide conversation')?>
|
67 |
+
</a>
|
68 |
+
<?php endif; ?>
|
69 |
+
<?php endif; ?>
|
70 |
+
</div>
|
71 |
+
<?php endforeach; ?>
|
72 |
+
<?php endif; ?>
|
app/design/frontend/base/default/template/avisverifies/review/helper/summary.phtml
ADDED
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php /* changement de mécanique si extension activée au niveau des produits on masque les avis natif Magento */ ?>
|
2 |
+
<?php if(Netreviews_Avisverifies_Helper_Data::isActive()): // Our Display.?>
|
3 |
+
<?php $o_av = Mage::getModel('avisverifies/reviews'); ?>
|
4 |
+
<?php $o_av->idProduct = $this->getProductId(); ?>
|
5 |
+
<?php $o_av->skuProduct = $this->getProductSKU(); ?>
|
6 |
+
<?php $statsProduct = $o_av->getStatsProduct(); ?>
|
7 |
+
<?php $countReviews = $statsProduct->getData('nb_reviews'); ?>
|
8 |
+
<?php $getNote = $o_av->formatNote($statsProduct->getData('rate')); ?>
|
9 |
+
|
10 |
+
<?php if($countReviews): ?>
|
11 |
+
<div id="av_product_award">
|
12 |
+
<div id="top">
|
13 |
+
<div class="ratingWrapper">
|
14 |
+
<div class="ratingInner" style="width:<?php echo ($getNote*20)."%" ?>;"></div>
|
15 |
+
</div>
|
16 |
+
<?php if($countReviews == 1): ?>
|
17 |
+
<b><?php echo $this->__('%d Review', $countReviews) ?></b>
|
18 |
+
<?php else: ?>
|
19 |
+
<b><?php echo $this->__('%d Reviews', $countReviews) ?></b>
|
20 |
+
<?php endif; ?>
|
21 |
+
</div>
|
22 |
+
<div id="bottom">
|
23 |
+
<?php if(Netreviews_Avisverifies_Helper_Data::removeLinkWidget()): ?>
|
24 |
+
<a href="javascript:void(0)" onclick="window.avisVerifies.scrollTo()" id="AV_button"><?php echo $this->__('See the review(s)')?></a>
|
25 |
+
<?php else: ?>
|
26 |
+
<a href="<?php echo $this->getReviewsUrl() ?>" id="AV_button"><?php echo $this->__('See the review(s)')?></a>
|
27 |
+
<?php endif;?>
|
28 |
+
|
29 |
+
</div>
|
30 |
+
<img id="sceau" src="<?php echo $this->getSkinUrl('images/avisverifies/Sceau_100'.Mage::app()->getLocale()->getLocaleCode().'.png') ?>" />
|
31 |
+
</div>
|
32 |
+
<?php endif; ?>
|
33 |
+
<?php elseif(Netreviews_Avisverifies_Helper_Data::isDefaultDisplay()): // Magento Display ?>
|
34 |
+
<?php if ($this->getReviewsCount()): ?>
|
35 |
+
<div class="ratings">
|
36 |
+
<?php if ($this->getRatingSummary()):?>
|
37 |
+
<div class="rating-box">
|
38 |
+
<div class="rating" style="width:<?php echo $this->getRatingSummary()."%" ?>;"></div>
|
39 |
+
</div>
|
40 |
+
<?php endif;?>
|
41 |
+
<span class="amount">
|
42 |
+
<a href="#" onclick="var t = opener ? opener.window : window; t.location.href='<?php echo $this->getReviewsUrl() ?>'; return false;">
|
43 |
+
<?php echo $this->__('%d Review(s)', $this->getReviewsCount()) ?>
|
44 |
+
</a>
|
45 |
+
</span>
|
46 |
+
</div>
|
47 |
+
<?php elseif ($this->getDisplayIfEmpty()): ?>
|
48 |
+
<p class="no-rating">
|
49 |
+
<a href="<?php echo $this->getReviewsUrl() ?>#review-form">
|
50 |
+
<?php echo $this->__('Be the first to review this product') ?>
|
51 |
+
</a>
|
52 |
+
</p>
|
53 |
+
<?php endif; ?>
|
54 |
+
<?php endif; ?>
|
app/design/frontend/base/default/template/avisverifies/review/helper/summary_short.phtml
ADDED
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php /* changement de mécanique si extension activée au niveau des produits on masque les avis natif Magento */ ?>
|
2 |
+
<?php if(Netreviews_Avisverifies_Helper_Data::isActive()): // Our Display. ?>
|
3 |
+
<?php $o_av = Mage::getModel('avisverifies/reviews'); ?>
|
4 |
+
<?php $o_av->idProduct = $this->getProductId(); ?>
|
5 |
+
<?php $o_av->skuProduct = $this->getProductSKU(); ?>
|
6 |
+
<?php $statsProduct = $o_av->getStatsProduct(); ?>
|
7 |
+
<?php $countReviews = $statsProduct->getData('nb_reviews'); ?>
|
8 |
+
<?php $getNote = $o_av->formatNote($statsProduct->getData('rate')); ?>
|
9 |
+
<?php if($countReviews>0): ?>
|
10 |
+
<div class="ratings">
|
11 |
+
<div class="rating-box">
|
12 |
+
<div class="rating" style="width:<?php echo ($getNote*20)."%" ?>"></div>
|
13 |
+
</div>
|
14 |
+
<p class="rating-link">
|
15 |
+
<?php if(Netreviews_Avisverifies_Helper_Data::removeLinkWidget()): ?>
|
16 |
+
<a href="javascript:void(0)" onclick="window.avisVerifies.scrollTo()" id="AV_button">
|
17 |
+
<?php else: ?>
|
18 |
+
<a href="<?php echo $this->getReviewsUrl() ?>" id="AV_button">
|
19 |
+
<?php endif;?>
|
20 |
+
<?php if($countReviews == 1): ?>
|
21 |
+
<?php echo $this->__('%d Review', $countReviews) ?>
|
22 |
+
<?php else: ?>
|
23 |
+
<?php echo $this->__('%d Reviews', $countReviews) ?>
|
24 |
+
<?php endif; ?>
|
25 |
+
</a>
|
26 |
+
</p>
|
27 |
+
</div>
|
28 |
+
<?php endif; ?>
|
29 |
+
<?php elseif(Netreviews_Avisverifies_Helper_Data::isDefaultDisplay()): // Magento Display ?>
|
30 |
+
<?php if($this->getReviewsCount()): ?>
|
31 |
+
<div class="ratings">
|
32 |
+
<?php if ($this->getRatingSummary()):?>
|
33 |
+
<div class="rating-box">
|
34 |
+
<div class="rating" style="width:<?php echo $this->getRatingSummary()."%" ?>"></div>
|
35 |
+
</div>
|
36 |
+
<?php endif;?>
|
37 |
+
<p class="rating-links">
|
38 |
+
<a href="<?php echo $this->getReviewsUrl() ?>">
|
39 |
+
<?php echo $this->__('%d Review(s)', $this->getReviewsCount()) ?>
|
40 |
+
</a>
|
41 |
+
<span class="separator">|</span>
|
42 |
+
<a href="<?php echo $this->getReviewsUrl() ?>#review-form"
|
43 |
+
><?php echo $this->__('Add Your Review') ?>
|
44 |
+
</a>
|
45 |
+
</p>
|
46 |
+
</div>
|
47 |
+
<?php elseif($this->getDisplayIfEmpty()): ?>
|
48 |
+
<p class="no-rating">
|
49 |
+
<a href="<?php echo $this->getReviewsUrl() ?>#review-form">
|
50 |
+
<?php echo $this->__('Be the first to review this product') ?>
|
51 |
+
</a>
|
52 |
+
</p>
|
53 |
+
<?php endif; ?>
|
54 |
+
<?php endif; ?>
|
app/design/frontend/{default/default/template/avisverifies/list.phtml → base/default/template/avisverifies/reviewProductList.phtml}
RENAMED
@@ -1,4 +1,3 @@
|
|
1 |
-
|
2 |
<?php if(Netreviews_Avisverifies_Helper_Data::isActive()): // Our Display. ?>
|
3 |
<?php $p = ($this->getRequest()->getParam('p'))? (int) $this->getRequest()->getParam('p') : 1; ?>
|
4 |
<?php $o_av = Mage::getModel('avisverifies/reviews'); // our custom reviews model ?>
|
|
|
1 |
<?php if(Netreviews_Avisverifies_Helper_Data::isActive()): // Our Display. ?>
|
2 |
<?php $p = ($this->getRequest()->getParam('p'))? (int) $this->getRequest()->getParam('p') : 1; ?>
|
3 |
<?php $o_av = Mage::getModel('avisverifies/reviews'); // our custom reviews model ?>
|
app/design/frontend/base/default/template/avisverifies/right.phtml
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php // Important: this block is called on the right block area. ?>
|
2 |
+
<?php $SCRIPTFIXE_ALLOWED = (Mage::getStoreConfig(strtolower('avisverifies/system/SCRIPTFIXE_ALLOWED'))=='yes') ?>
|
3 |
+
<?php $SCRIPTFIXE_POSITION = (Mage::getStoreConfig(strtolower('avisverifies/system/SCRIPTFIXE_POSITION')) == "right") ?>
|
4 |
+
<?php if($SCRIPTFIXE_ALLOWED && $SCRIPTFIXE_POSITION): ?>
|
5 |
+
<div style="margin: auto;">
|
6 |
+
<?php echo Mage::getStoreConfig(strtolower('avisverifies/system/SCRIPTFIXE')) ?>
|
7 |
+
</div>
|
8 |
+
<?php endif;?>
|
9 |
+
|
10 |
+
<?php //echo "<script> console.log('AV: right -> block: right');</script>"; ?>
|
app/design/frontend/base/default/template/avisverifies/wrapper.phtml
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php // Important: this block call the rest of blocks. ?>
|
2 |
+
|
3 |
+
<div class="reviews-wrapper">
|
4 |
+
<div class="reviews-container">
|
5 |
+
<?php echo $this->getChildHtml(); // get all children ?>
|
6 |
+
</div>
|
7 |
+
</div>
|
app/design/frontend/default/default/layout/avisverifies.xml
CHANGED
@@ -15,18 +15,17 @@
|
|
15 |
<block after="-" name="avisverifies.right" template="avisverifies/right.phtml" type="core/template"/>
|
16 |
</reference>
|
17 |
</default>
|
18 |
-
|
19 |
<!-- !!!! -->
|
20 |
<review_product_list>
|
21 |
-
<reference name="head">
|
22 |
-
<block name="avisverifies_js" type="core/template" template="avisverifies/js.phtml"/>
|
23 |
<block name="avisverifies_css" type="core/template" template="avisverifies/css.phtml"/>
|
|
|
24 |
</reference>
|
25 |
<reference name="content">
|
26 |
<!-- remove magento default reviews -->
|
27 |
<remove name="product.info.product_additional_data"/>
|
28 |
<block name="reviews_wrapper" type="core/template" template="avisverifies/wrapper.phtml">
|
29 |
-
<block name="product.info.product_additional_data2" template="avisverifies/
|
30 |
<block name="avisverifies.pagination" template="avisverifies/pagination.phtml" type="core/template"/>
|
31 |
</block>
|
32 |
</block>
|
@@ -35,26 +34,27 @@
|
|
35 |
<!--<remove name="product.info.upsell"/>-->
|
36 |
</reference>
|
37 |
</review_product_list>
|
38 |
-
|
39 |
-
<!-- !!!! -->
|
40 |
<catalog_product_view>
|
41 |
-
<reference name="head">
|
42 |
-
<block name="avisverifies_js" type="core/template" template="avisverifies/js.phtml"/>
|
43 |
<block name="avisverifies_css" type="core/template" template="avisverifies/css.phtml"/>
|
|
|
|
|
|
|
|
|
|
|
|
|
44 |
</reference>
|
45 |
<!-- removed these (3)lines for furthere investigation -->
|
46 |
-
|
47 |
<remove name="product.info.upsell"/>
|
48 |
</reference>-->
|
49 |
</catalog_product_view>
|
50 |
|
51 |
<!-- !!!! -->
|
52 |
<catalog_category_view>
|
53 |
-
<reference name="
|
54 |
-
<
|
55 |
-
<type>short</type>
|
56 |
-
<template>avisverifies/review/helper/summary_short.phtml</template>
|
57 |
-
</action>
|
58 |
</reference>
|
59 |
</catalog_category_view>
|
60 |
|
@@ -65,5 +65,4 @@
|
|
65 |
</reference>
|
66 |
</checkout_track>
|
67 |
<!-- Checkout process -->
|
68 |
-
|
69 |
</layout>
|
15 |
<block after="-" name="avisverifies.right" template="avisverifies/right.phtml" type="core/template"/>
|
16 |
</reference>
|
17 |
</default>
|
|
|
18 |
<!-- !!!! -->
|
19 |
<review_product_list>
|
20 |
+
<reference name="head">
|
|
|
21 |
<block name="avisverifies_css" type="core/template" template="avisverifies/css.phtml"/>
|
22 |
+
<block name="avisverifies_js" type="core/template" template="avisverifies/js.phtml"/>
|
23 |
</reference>
|
24 |
<reference name="content">
|
25 |
<!-- remove magento default reviews -->
|
26 |
<remove name="product.info.product_additional_data"/>
|
27 |
<block name="reviews_wrapper" type="core/template" template="avisverifies/wrapper.phtml">
|
28 |
+
<block name="product.info.product_additional_data2" template="avisverifies/reviewProductList.phtml" type="review/product_view_list" >
|
29 |
<block name="avisverifies.pagination" template="avisverifies/pagination.phtml" type="core/template"/>
|
30 |
</block>
|
31 |
</block>
|
34 |
<!--<remove name="product.info.upsell"/>-->
|
35 |
</reference>
|
36 |
</review_product_list>
|
37 |
+
<!-- !!!! -->
|
|
|
38 |
<catalog_product_view>
|
39 |
+
<reference name="head">
|
|
|
40 |
<block name="avisverifies_css" type="core/template" template="avisverifies/css.phtml"/>
|
41 |
+
<block name="avisverifies_js" type="core/template" template="avisverifies/js.phtml"/>
|
42 |
+
</reference>
|
43 |
+
<reference name="content">
|
44 |
+
<block after="product_additional_data" type="review/product_view_list" name="product.info.product_additional_data2" as="reviews" template="avisverifies/catalogProductList.phtml">
|
45 |
+
<block name="avisverifies.pagination" template="avisverifies/pagination.phtml" type="core/template"/>
|
46 |
+
</block>
|
47 |
</reference>
|
48 |
<!-- removed these (3)lines for furthere investigation -->
|
49 |
+
<!--<reference name="content">
|
50 |
<remove name="product.info.upsell"/>
|
51 |
</reference>-->
|
52 |
</catalog_product_view>
|
53 |
|
54 |
<!-- !!!! -->
|
55 |
<catalog_category_view>
|
56 |
+
<reference name="head">
|
57 |
+
<block name="avisverifies_css" type="core/template" template="avisverifies/css.phtml"/>
|
|
|
|
|
|
|
58 |
</reference>
|
59 |
</catalog_category_view>
|
60 |
|
65 |
</reference>
|
66 |
</checkout_track>
|
67 |
<!-- Checkout process -->
|
|
|
68 |
</layout>
|
app/design/frontend/default/default/template/avisverifies/admin/checkinstallation.phtml
CHANGED
@@ -1,5 +1,10 @@
|
|
1 |
-
<div class="check-installation">
|
2 |
-
|
|
|
|
|
|
|
|
|
|
|
3 |
<thead>
|
4 |
<th width="190"><?php echo $this->__('Table Name') ?>:</th>
|
5 |
<th><?php echo $this->__('Status') ?></th>
|
@@ -11,14 +16,17 @@
|
|
11 |
<tr>
|
12 |
<td><?php echo $nom ?></td>
|
13 |
<td align="center">
|
14 |
-
<img alt="<?php echo ($val)? "enabled" : "error" ?>" src="<?php echo ($val)? $this->getSkinUrl('images/
|
|
|
|
|
|
|
15 |
</td>
|
16 |
</tr>
|
17 |
<?php endforeach ?>
|
18 |
</tbody>
|
19 |
</table>
|
20 |
<div style="float: left; width: 1px;height: 65px; margin: 1px 15px ; border-left: 1px solid #ccc"></div>
|
21 |
-
<table style="width:
|
22 |
<thead>
|
23 |
<th width="190"><?php echo $this->__('Table Orders Fields') ?>:</th>
|
24 |
<th><?php echo $this->__('Status') ?></th>
|
@@ -30,14 +38,17 @@
|
|
30 |
<tr>
|
31 |
<td><?php echo $nom ?></td>
|
32 |
<td align="center">
|
33 |
-
<img alt="<?php echo ($val)? "enabled" : "error" ?>" src="<?php echo ($val)? $this->getSkinUrl('images/
|
|
|
|
|
|
|
34 |
</td>
|
35 |
</tr>
|
36 |
<?php endforeach ?>
|
37 |
</tbody>
|
38 |
</table>
|
39 |
<div style="float: left; width: 100%;height: 1px;"></div>
|
40 |
-
<table style="width:
|
41 |
<thead>
|
42 |
<th width="190"><?php echo $this->__('Table Fields Count') ?>:</th>
|
43 |
<th><?php echo $this->__('Status') ?></th>
|
@@ -74,4 +85,67 @@
|
|
74 |
</tbody>
|
75 |
</table>
|
76 |
<?php endif; ?>
|
77 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div class="check-installation content-header" style=" overflow: hidden; ">
|
2 |
+
<?php $version = Mage::getConfig()->getNode()->modules->Netreviews_Avisverifies->version; ?>
|
3 |
+
<h2 style="width: 100%;float: left;">
|
4 |
+
<?php echo $this->__('Verified Reviews') ?>
|
5 |
+
<small style="font-size:9px;"><?php echo $this->__('version') ?> : <?php echo $version ?></small>
|
6 |
+
</h2>
|
7 |
+
<table style="width: 350px;float: left;">
|
8 |
<thead>
|
9 |
<th width="190"><?php echo $this->__('Table Name') ?>:</th>
|
10 |
<th><?php echo $this->__('Status') ?></th>
|
16 |
<tr>
|
17 |
<td><?php echo $nom ?></td>
|
18 |
<td align="center">
|
19 |
+
<img alt="<?php echo ($val)? "enabled" : "error" ?>" src="<?php echo ($val)? $this->getSkinUrl('images/fam_bullet_success.gif') : $this->getSkinUrl('images/cancel_btn_icon.gif') ?>" />
|
20 |
+
</td>
|
21 |
+
<td>
|
22 |
+
<?php echo ($val)? "Installed" : "Not-installed" ?>
|
23 |
</td>
|
24 |
</tr>
|
25 |
<?php endforeach ?>
|
26 |
</tbody>
|
27 |
</table>
|
28 |
<div style="float: left; width: 1px;height: 65px; margin: 1px 15px ; border-left: 1px solid #ccc"></div>
|
29 |
+
<table style="width: 350px;float: left;">
|
30 |
<thead>
|
31 |
<th width="190"><?php echo $this->__('Table Orders Fields') ?>:</th>
|
32 |
<th><?php echo $this->__('Status') ?></th>
|
38 |
<tr>
|
39 |
<td><?php echo $nom ?></td>
|
40 |
<td align="center">
|
41 |
+
<img alt="<?php echo ($val)? "enabled" : "error" ?>" src="<?php echo ($val)? $this->getSkinUrl('images/fam_bullet_success.gif') : $this->getSkinUrl('images/cancel_btn_icon.gif') ?>" />
|
42 |
+
</td>
|
43 |
+
<td>
|
44 |
+
<?php echo ($val)? "Installed" : "Not-installed" ?>
|
45 |
</td>
|
46 |
</tr>
|
47 |
<?php endforeach ?>
|
48 |
</tbody>
|
49 |
</table>
|
50 |
<div style="float: left; width: 100%;height: 1px;"></div>
|
51 |
+
<table style="width: 350px;float: left;">
|
52 |
<thead>
|
53 |
<th width="190"><?php echo $this->__('Table Fields Count') ?>:</th>
|
54 |
<th><?php echo $this->__('Status') ?></th>
|
85 |
</tbody>
|
86 |
</table>
|
87 |
<?php endif; ?>
|
88 |
+
</div>
|
89 |
+
|
90 |
+
<div class="content-header">
|
91 |
+
<table cellspacing="0" class="grid-header">
|
92 |
+
<tr>
|
93 |
+
<td><h3><?php echo $this->__('Advanced Options') ?></h3></td>
|
94 |
+
<td class="a-right">
|
95 |
+
<button onclick="editForm.submit()" class="scalable save" type="button"><span><?php echo $this->__('Submit') ?></span></button>
|
96 |
+
</td>
|
97 |
+
</tr>
|
98 |
+
</table>
|
99 |
+
</div>
|
100 |
+
<div class="entry-edit">
|
101 |
+
<form id="edit_form" name="edit_form" method="post" action="<?php echo $this->getUrl('*/*/post')?>">
|
102 |
+
<input name="form_key" type="hidden" value="<?php echo Mage::getSingleton('core/session')->getFormKey() ?>" />
|
103 |
+
<h4 class="icon-head head-edit-form fieldset-legend"><?php echo $this->__('Install Tables')?></h4>
|
104 |
+
<fieldset id="my-fieldset">
|
105 |
+
<table cellspacing="1" class="form-list">
|
106 |
+
<tr>
|
107 |
+
<td class="label"><?php echo $this->__('Perform a re-installation of the module tables')?></td>
|
108 |
+
<td class="input-ele"><input type="radio" class="input-radio" name="debug[reinstall]" value="yes" /><?php echo $this->__('Yes')?></td>
|
109 |
+
<td> </td>
|
110 |
+
<td class="input-ele"><input type="radio" class="input-radio" name="debug[reinstall]" value="no" /><?php echo $this->__('No')?></td>
|
111 |
+
</tr>
|
112 |
+
</table>
|
113 |
+
</fieldset>
|
114 |
+
<h4 class="icon-head head-edit-form fieldset-legend"><?php echo $this->__('Flag orders to 1')?></h4>
|
115 |
+
<fieldset id="my-fieldset">
|
116 |
+
<table cellspacing="1" class="form-list">
|
117 |
+
<tr>
|
118 |
+
<td class="label"><?php echo $this->__('Flag all orders to 1')?></td>
|
119 |
+
<td class="input-ele"><input type="radio" class="input-radio" name="debug[flag]" value="yes" /><?php echo $this->__('Yes')?></td>
|
120 |
+
<td> </td>
|
121 |
+
<td class="input-ele"><input type="radio" class="input-radio" name="debug[flag]" value="no" /><?php echo $this->__('No')?></td>
|
122 |
+
</tr>
|
123 |
+
</table>
|
124 |
+
</fieldset>
|
125 |
+
<h4 class="icon-head head-edit-form fieldset-legend"><?php echo $this->__('Add missing fields')?></h4>
|
126 |
+
<fieldset id="my-fieldset">
|
127 |
+
<table cellspacing="1" class="form-list">
|
128 |
+
<tr>
|
129 |
+
<td class="label"><?php echo $this->__('Add missing fields')?></td>
|
130 |
+
<td class="input-ele"><input type="radio" class="input-radio" name="debug[fields]" value="yes" /><?php echo $this->__('Yes')?></td>
|
131 |
+
<td> </td>
|
132 |
+
<td class="input-ele"><input type="radio" class="input-radio" name="debug[fields]" value="no" /><?php echo $this->__('No')?></td>
|
133 |
+
</tr>
|
134 |
+
</table>
|
135 |
+
</fieldset>
|
136 |
+
<?php if(!$this->getData('isOldVersion')): ?>
|
137 |
+
<h4 class="icon-head head-edit-form fieldset-legend"><?php echo $this->__('Check order configuration')?></h4>
|
138 |
+
<fieldset id="my-fieldset">
|
139 |
+
<table cellspacing="1" class="form-list">
|
140 |
+
<tr>
|
141 |
+
<td class="label"><?php echo $this->__('check order configuration parent child relation')?></td>
|
142 |
+
<td class="input-ele"><input type="text" class="input-text" name="debug[order]" /></td>
|
143 |
+
</tr>
|
144 |
+
</table>
|
145 |
+
</fieldset>
|
146 |
+
<?php endif;?>
|
147 |
+
</form>
|
148 |
+
</div>
|
149 |
+
<script type="text/javascript">
|
150 |
+
var editForm = new varienForm('edit_form');
|
151 |
+
</script>
|
app/design/frontend/default/default/template/avisverifies/admin/checkinstallation_tab.phtml
CHANGED
@@ -10,4 +10,4 @@
|
|
10 |
</span>
|
11 |
</a>
|
12 |
</li>
|
13 |
-
</ul>
|
10 |
</span>
|
11 |
</a>
|
12 |
</li>
|
13 |
+
</ul>
|
app/design/frontend/default/default/template/avisverifies/catalogProductList.phtml
ADDED
@@ -0,0 +1,89 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php if(Netreviews_Avisverifies_Helper_Data::isActive() && Netreviews_Avisverifies_Helper_Data::addReviewToProductPage()): // Our Display. ?>
|
2 |
+
<?php $p = ($this->getRequest()->getParam('p'))? (int) $this->getRequest()->getParam('p') : 1; ?>
|
3 |
+
<?php $o_av = Mage::getModel('avisverifies/reviews'); // our custom reviews model ?>
|
4 |
+
<?php $ProductId = $this->getProductId(); ?>
|
5 |
+
<?php // to use same code. we are going to call first page from our code. ?>
|
6 |
+
<?php $ProductId =($ProductId != 0)? $ProductId : $this->getData('productId'); ?>
|
7 |
+
<?php // to use same code. we are going to call first page from our code. ?>
|
8 |
+
<?php $o_av->idProduct = $ProductId; ?>
|
9 |
+
<?php $o_av->page = $p; ?>
|
10 |
+
<?php $statsProduct = $o_av->getStatsProduct(); ?>
|
11 |
+
<?php $countReviews = $statsProduct->getData('nb_reviews'); ?>
|
12 |
+
<?php $getNote = $o_av->formatNote($statsProduct->getData('rate')); ?>
|
13 |
+
<?php $maxPages = $o_av->getProductReviews(); ?>
|
14 |
+
<?php $maxPages = $maxPages->getLastPageNumber();?>
|
15 |
+
|
16 |
+
<?php $richSnipet = array('','',''); ?>
|
17 |
+
<?php // $richSnipet[0] = ' itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating" '?>
|
18 |
+
<?php // $richSnipet[1] = ' itemprop="ratingValue" '?>
|
19 |
+
<?php // $richSnipet[2] = ' itemprop="reviewCount" '?>
|
20 |
+
|
21 |
+
<?php // $_product_AV = Mage::getModel('avisverifies/product')->load($ProductId); ?>
|
22 |
+
|
23 |
+
<?php if($countReviews): ?>
|
24 |
+
<div class="box-collateral box-reviews" id="customer-reviews">
|
25 |
+
<?php // info pour le js ajax ?>
|
26 |
+
<?php $tmp = Mage::getUrl('AvisVerifies/index/ajaxload', array('id_product' => $ProductId)) ?>
|
27 |
+
<input id="avisVarifiesAjaxUrl" type="hidden" value="<?php echo $tmp ?>" />
|
28 |
+
<?php // info pour le js ajax ?>
|
29 |
+
<div id="av_more_info_tabs"></div>
|
30 |
+
<div class="clear"></div>
|
31 |
+
<div id="idTabavisverifies">
|
32 |
+
<div id="headerAV">
|
33 |
+
<a name="hautavreview"></a>
|
34 |
+
<?php echo $this->__('Product Reviews')?>
|
35 |
+
</div>
|
36 |
+
<?php $skinUrl = $this->getSkinUrl('images/avisverifies/Sceau_45'.Mage::app()->getLocale()->getLocaleCode().'.png') ?>
|
37 |
+
<div id="under-headerAV" style="background: url('<?php echo $skinUrl ?>') no-repeat #f1f1f1;">
|
38 |
+
<div id="aggregateRatingAV" <?php echo $richSnipet[0] ?>>
|
39 |
+
<div>
|
40 |
+
<b><?php echo $this->__('Number of reviews')?></b>
|
41 |
+
: <span <?php echo $richSnipet[2] ?>><?php echo $countReviews?></span>
|
42 |
+
</div>
|
43 |
+
<div>
|
44 |
+
<b><?php echo $this->__('Average rating')?></b>
|
45 |
+
: <span <?php echo $richSnipet[1] ?>><?php echo $getNote?></span> /5
|
46 |
+
<div class="ratingWrapper" style="display:inline-block;">
|
47 |
+
<div class="ratingInner" style="width:<?php echo ($getNote*20)."%"?>;"></div>
|
48 |
+
</div>
|
49 |
+
</div>
|
50 |
+
</div>
|
51 |
+
<div id="certificatAV">
|
52 |
+
<div>
|
53 |
+
<?php $href = Mage::getStoreConfig('avisverifies/system/urlcertificat'); ?>
|
54 |
+
<a href="<?php echo $href ?>" target="_blank" class="display_certificat_review" >
|
55 |
+
<?php echo $this->__('View the trust certificate')?>
|
56 |
+
</a>
|
57 |
+
</div>
|
58 |
+
</div>
|
59 |
+
<div class="clear"></div>
|
60 |
+
</div>
|
61 |
+
<div id="ajax_comment_content">
|
62 |
+
<?php echo Mage::app()->getLayout()->createBlock('core/template')
|
63 |
+
->setData('productId',$ProductId)->setTemplate('avisverifies/pagination.phtml')
|
64 |
+
->toHtml(); ?>
|
65 |
+
</div>
|
66 |
+
<?php if($maxPages > 1): ?>
|
67 |
+
<button onclick="window.avisVerifies.Ajax()" id="av_load_next_page" data-page="1" data-page-last="<?php echo $maxPages ?>">
|
68 |
+
<?php echo $this->__('More Reviews...')?>
|
69 |
+
</button>
|
70 |
+
<img id="avisVarifiesAjaxImage" src="<?php echo $this->getSkinUrl('images/avisverifies/pagination-loader.gif')?>" style="display:none;margin: 10px 0px 0px 10px;" />
|
71 |
+
<?php endif; ?>
|
72 |
+
</div>
|
73 |
+
<div class="clear"></div>
|
74 |
+
</div>
|
75 |
+
<?php else: ?>
|
76 |
+
<div class="box-collateral box-reviews" id="customer-reviews">
|
77 |
+
<div id="idTabavisverifies">
|
78 |
+
<div id="headerAV">
|
79 |
+
<a name="hautavreview"></a>
|
80 |
+
<?php echo $this->__('Product Reviews')?>
|
81 |
+
</div>
|
82 |
+
<?php $skinUrl = $this->getSkinUrl('images/avisverifies/Sceau_45'.Mage::app()->getLocale()->getLocaleCode().'.png') ?>
|
83 |
+
<div id="under-headerAV" style="background: url('<?php echo $skinUrl ?>') no-repeat #f1f1f1;">
|
84 |
+
<p style="padding: 17px 40px 40px 56px;"><?php echo $this->__("No reviews for this product.")?></p>
|
85 |
+
</div>
|
86 |
+
</div>
|
87 |
+
</div>
|
88 |
+
<?php endif; ?>
|
89 |
+
<?php endif; ?>
|
app/design/frontend/default/default/template/avisverifies/js.phtml
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
<?php if(Netreviews_Avisverifies_Helper_Data::isActive()): // Our Display. ?>
|
2 |
-
<?php $nojQuery =
|
3 |
<script type="text/javascript">
|
4 |
<?php if($nojQuery): ?>
|
5 |
/*! jQuery v1.11.0 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */
|
@@ -16,30 +16,8 @@
|
|
16 |
//HANDLE MULTIPLE JQUERY VERSIONS
|
17 |
window.avisVerifies.jQuery = jQuery.noConflict(true);
|
18 |
<?php else: ?>
|
19 |
-
window.avisVerifies.jQuery = window
|
20 |
<?php endif; ?>
|
21 |
-
|
22 |
-
avisVerifies.jQuery(document).ready(function(){
|
23 |
-
window.avisVerifies.jQuery("#customer-reviews").removeAttr('style');
|
24 |
-
});
|
25 |
-
|
26 |
-
avisVerifies.fireClick = function (node){
|
27 |
-
if ( document.createEvent ) {
|
28 |
-
var evt = document.createEvent('MouseEvents');
|
29 |
-
evt.initEvent('click', true, false);
|
30 |
-
node.dispatchEvent(evt);
|
31 |
-
} else if( document.createEventObject ) {
|
32 |
-
node.fireEvent('onclick') ;
|
33 |
-
} else if (typeof node.onclick == 'function' ) {
|
34 |
-
node.onclick();
|
35 |
-
}
|
36 |
-
}
|
37 |
-
|
38 |
-
window.avisVerifies.clickTab = function(id_dom){
|
39 |
-
var theNode = document.getElementById(id_dom);
|
40 |
-
avisVerifies.fireClick(theNode);
|
41 |
-
window.avisVerifies.scrollTo();
|
42 |
-
}
|
43 |
|
44 |
window.avisVerifies.scrollTo = function(){
|
45 |
var $avjq = window.avisVerifies.jQuery;
|
@@ -75,14 +53,27 @@
|
|
75 |
});
|
76 |
}
|
77 |
|
78 |
-
|
79 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
80 |
var $avjq = window.avisVerifies.jQuery;
|
81 |
-
var
|
82 |
-
|
83 |
-
|
84 |
-
$
|
85 |
-
$
|
|
|
|
|
|
|
|
|
86 |
}
|
87 |
</script>
|
88 |
<?php endif;?>
|
1 |
<?php if(Netreviews_Avisverifies_Helper_Data::isActive()): // Our Display. ?>
|
2 |
+
<?php $nojQuery = !Netreviews_Avisverifies_Helper_Data::hasjQuery(); ?>
|
3 |
<script type="text/javascript">
|
4 |
<?php if($nojQuery): ?>
|
5 |
/*! jQuery v1.11.0 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */
|
16 |
//HANDLE MULTIPLE JQUERY VERSIONS
|
17 |
window.avisVerifies.jQuery = jQuery.noConflict(true);
|
18 |
<?php else: ?>
|
19 |
+
window.avisVerifies.jQuery = window.jQuery;
|
20 |
<?php endif; ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
|
22 |
window.avisVerifies.scrollTo = function(){
|
23 |
var $avjq = window.avisVerifies.jQuery;
|
53 |
});
|
54 |
}
|
55 |
|
56 |
+
window.avisVerifies.showComments = function (obj){
|
57 |
+
var $avjq = window.avisVerifies.jQuery;
|
58 |
+
var $this = $avjq(obj);
|
59 |
+
var $parent = $this.parent();
|
60 |
+
$parent.find('.display-all-comments').show();
|
61 |
+
$this.hide();
|
62 |
+
$parent.find('.answer').each(function(index,value){
|
63 |
+
$avjq(value).show('slow');
|
64 |
+
});
|
65 |
+
}
|
66 |
+
window.avisVerifies.hideComments = function (obj){
|
67 |
var $avjq = window.avisVerifies.jQuery;
|
68 |
+
var $this = $avjq(obj);
|
69 |
+
var $parent = $this.parent();
|
70 |
+
$parent.find('.display-all-comments').show();
|
71 |
+
$this.hide();
|
72 |
+
$parent.find('.answer').each(function(index,value){
|
73 |
+
if(index !=0 ){
|
74 |
+
$avjq(value).hide('slow');
|
75 |
+
}
|
76 |
+
});
|
77 |
}
|
78 |
</script>
|
79 |
<?php endif;?>
|
app/design/frontend/default/default/template/avisverifies/pagination.phtml
CHANGED
@@ -18,7 +18,8 @@
|
|
18 |
<?php // $richSnipet[5] = ' itemprop="bestRating" '?>
|
19 |
<?php // $richSnipet[6] = ' itemprop="description" '?>
|
20 |
|
21 |
-
<?php
|
|
|
22 |
<div class="reviewAV" <?php echo $richSnipet[0] ?>>
|
23 |
<div class="reviewInfosAV">
|
24 |
<div style="text-transform:capitalize" <?php echo $richSnipet[2] ?>>
|
@@ -42,9 +43,8 @@
|
|
42 |
<?php $k_discussion = 0; ?>
|
43 |
<?php if($discussions): ?>
|
44 |
<?php foreach($discussions as $k_discussion=>$discussion): ?>
|
45 |
-
<?php $
|
46 |
-
|
47 |
-
<div class="triangle-border top answer" <?php echo $reviewNumber.$styleNumber ?> >
|
48 |
<span> ›
|
49 |
<?php echo $this->__('Comments of')?>
|
50 |
<b style="text-transform:capitalize; font-weight:normal">
|
@@ -59,10 +59,10 @@
|
|
59 |
</div>
|
60 |
<?php endforeach; ?>
|
61 |
<?php if($k_discussion > 0):?>
|
62 |
-
<a href="javascript:window.avisVerifies.
|
63 |
<?php echo $this->__('Show conversation')?>
|
64 |
</a>
|
65 |
-
<a href="javascript:window.avisVerifies.
|
66 |
<?php echo $this->__('Hide conversation')?>
|
67 |
</a>
|
68 |
<?php endif; ?>
|
18 |
<?php // $richSnipet[5] = ' itemprop="bestRating" '?>
|
19 |
<?php // $richSnipet[6] = ' itemprop="description" '?>
|
20 |
|
21 |
+
<?php foreach($reviews as $k_review=>$review): ?>
|
22 |
+
<style>.display-all-comments{padding-left: 6px;margin-left: 30px; display: block; font-style:italic}</style>
|
23 |
<div class="reviewAV" <?php echo $richSnipet[0] ?>>
|
24 |
<div class="reviewInfosAV">
|
25 |
<div style="text-transform:capitalize" <?php echo $richSnipet[2] ?>>
|
43 |
<?php $k_discussion = 0; ?>
|
44 |
<?php if($discussions): ?>
|
45 |
<?php foreach($discussions as $k_discussion=>$discussion): ?>
|
46 |
+
<?php $styleNumber = ($k_discussion > 0)? 'none':'block' ?>
|
47 |
+
<div class="triangle-border top answer" style="display:<?php echo $styleNumber ?>">
|
|
|
48 |
<span> ›
|
49 |
<?php echo $this->__('Comments of')?>
|
50 |
<b style="text-transform:capitalize; font-weight:normal">
|
59 |
</div>
|
60 |
<?php endforeach; ?>
|
61 |
<?php if($k_discussion > 0):?>
|
62 |
+
<a href="javascript:void(0)" onclick="window.avisVerifies.showComments(this)" style="display:block" class="display-all-comments">
|
63 |
<?php echo $this->__('Show conversation')?>
|
64 |
</a>
|
65 |
+
<a href="javascript:void(0)" onclick="window.avisVerifies.hideComments(this)" style="display:none" class="display-all-comments">
|
66 |
<?php echo $this->__('Hide conversation')?>
|
67 |
</a>
|
68 |
<?php endif; ?>
|
app/design/frontend/default/default/template/avisverifies/review/helper/summary.phtml
CHANGED
@@ -2,10 +2,11 @@
|
|
2 |
<?php if(Netreviews_Avisverifies_Helper_Data::isActive()): // Our Display.?>
|
3 |
<?php $o_av = Mage::getModel('avisverifies/reviews'); ?>
|
4 |
<?php $o_av->idProduct = $this->getProductId(); ?>
|
|
|
5 |
<?php $statsProduct = $o_av->getStatsProduct(); ?>
|
6 |
<?php $countReviews = $statsProduct->getData('nb_reviews'); ?>
|
7 |
<?php $getNote = $o_av->formatNote($statsProduct->getData('rate')); ?>
|
8 |
-
|
9 |
<?php if($countReviews): ?>
|
10 |
<div id="av_product_award">
|
11 |
<div id="top">
|
@@ -19,7 +20,12 @@
|
|
19 |
<?php endif; ?>
|
20 |
</div>
|
21 |
<div id="bottom">
|
22 |
-
|
|
|
|
|
|
|
|
|
|
|
23 |
</div>
|
24 |
<img id="sceau" src="<?php echo $this->getSkinUrl('images/avisverifies/Sceau_100'.Mage::app()->getLocale()->getLocaleCode().'.png') ?>" />
|
25 |
</div>
|
@@ -45,4 +51,4 @@
|
|
45 |
</a>
|
46 |
</p>
|
47 |
<?php endif; ?>
|
48 |
-
<?php endif; ?>
|
2 |
<?php if(Netreviews_Avisverifies_Helper_Data::isActive()): // Our Display.?>
|
3 |
<?php $o_av = Mage::getModel('avisverifies/reviews'); ?>
|
4 |
<?php $o_av->idProduct = $this->getProductId(); ?>
|
5 |
+
<?php $o_av->skuProduct = $this->getProductSKU(); ?>
|
6 |
<?php $statsProduct = $o_av->getStatsProduct(); ?>
|
7 |
<?php $countReviews = $statsProduct->getData('nb_reviews'); ?>
|
8 |
<?php $getNote = $o_av->formatNote($statsProduct->getData('rate')); ?>
|
9 |
+
|
10 |
<?php if($countReviews): ?>
|
11 |
<div id="av_product_award">
|
12 |
<div id="top">
|
20 |
<?php endif; ?>
|
21 |
</div>
|
22 |
<div id="bottom">
|
23 |
+
<?php if(Netreviews_Avisverifies_Helper_Data::removeLinkWidget()): ?>
|
24 |
+
<a href="javascript:void(0)" onclick="window.avisVerifies.scrollTo()" id="AV_button"><?php echo $this->__('See the review(s)')?></a>
|
25 |
+
<?php else: ?>
|
26 |
+
<a href="<?php echo $this->getReviewsUrl() ?>" id="AV_button"><?php echo $this->__('See the review(s)')?></a>
|
27 |
+
<?php endif;?>
|
28 |
+
|
29 |
</div>
|
30 |
<img id="sceau" src="<?php echo $this->getSkinUrl('images/avisverifies/Sceau_100'.Mage::app()->getLocale()->getLocaleCode().'.png') ?>" />
|
31 |
</div>
|
51 |
</a>
|
52 |
</p>
|
53 |
<?php endif; ?>
|
54 |
+
<?php endif; ?>
|
app/design/frontend/default/default/template/avisverifies/review/helper/summary_short.phtml
CHANGED
@@ -2,6 +2,7 @@
|
|
2 |
<?php if(Netreviews_Avisverifies_Helper_Data::isActive()): // Our Display. ?>
|
3 |
<?php $o_av = Mage::getModel('avisverifies/reviews'); ?>
|
4 |
<?php $o_av->idProduct = $this->getProductId(); ?>
|
|
|
5 |
<?php $statsProduct = $o_av->getStatsProduct(); ?>
|
6 |
<?php $countReviews = $statsProduct->getData('nb_reviews'); ?>
|
7 |
<?php $getNote = $o_av->formatNote($statsProduct->getData('rate')); ?>
|
@@ -10,8 +11,12 @@
|
|
10 |
<div class="rating-box">
|
11 |
<div class="rating" style="width:<?php echo ($getNote*20)."%" ?>"></div>
|
12 |
</div>
|
13 |
-
<p class="rating-link">
|
14 |
-
|
|
|
|
|
|
|
|
|
15 |
<?php if($countReviews == 1): ?>
|
16 |
<?php echo $this->__('%d Review', $countReviews) ?>
|
17 |
<?php else: ?>
|
2 |
<?php if(Netreviews_Avisverifies_Helper_Data::isActive()): // Our Display. ?>
|
3 |
<?php $o_av = Mage::getModel('avisverifies/reviews'); ?>
|
4 |
<?php $o_av->idProduct = $this->getProductId(); ?>
|
5 |
+
<?php $o_av->skuProduct = $this->getProductSKU(); ?>
|
6 |
<?php $statsProduct = $o_av->getStatsProduct(); ?>
|
7 |
<?php $countReviews = $statsProduct->getData('nb_reviews'); ?>
|
8 |
<?php $getNote = $o_av->formatNote($statsProduct->getData('rate')); ?>
|
11 |
<div class="rating-box">
|
12 |
<div class="rating" style="width:<?php echo ($getNote*20)."%" ?>"></div>
|
13 |
</div>
|
14 |
+
<p class="rating-link">
|
15 |
+
<?php if(Netreviews_Avisverifies_Helper_Data::removeLinkWidget()): ?>
|
16 |
+
<a href="javascript:void(0)" onclick="window.avisVerifies.scrollTo()" id="AV_button">
|
17 |
+
<?php else: ?>
|
18 |
+
<a href="<?php echo $this->getReviewsUrl() ?>" id="AV_button">
|
19 |
+
<?php endif;?>
|
20 |
<?php if($countReviews == 1): ?>
|
21 |
<?php echo $this->__('%d Review', $countReviews) ?>
|
22 |
<?php else: ?>
|
app/design/frontend/default/default/template/avisverifies/reviewProductList.phtml
ADDED
@@ -0,0 +1,133 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php if(Netreviews_Avisverifies_Helper_Data::isActive()): // Our Display. ?>
|
2 |
+
<?php $p = ($this->getRequest()->getParam('p'))? (int) $this->getRequest()->getParam('p') : 1; ?>
|
3 |
+
<?php $o_av = Mage::getModel('avisverifies/reviews'); // our custom reviews model ?>
|
4 |
+
<?php $ProductId = $this->getProductId(); ?>
|
5 |
+
<?php // to use same code. we are going to call first page from our code. ?>
|
6 |
+
<?php $ProductId =($ProductId != 0)? $ProductId : $this->getData('productId'); ?>
|
7 |
+
<?php // to use same code. we are going to call first page from our code. ?>
|
8 |
+
<?php $o_av->idProduct = $ProductId; ?>
|
9 |
+
<?php $o_av->page = $p; ?>
|
10 |
+
<?php $statsProduct = $o_av->getStatsProduct(); ?>
|
11 |
+
<?php $countReviews = $statsProduct->getData('nb_reviews'); ?>
|
12 |
+
<?php $getNote = $o_av->formatNote($statsProduct->getData('rate')); ?>
|
13 |
+
<?php $maxPages = $o_av->getProductReviews(); ?>
|
14 |
+
<?php $maxPages = $maxPages->getLastPageNumber();?>
|
15 |
+
|
16 |
+
<?php $richSnipet = array('','',''); ?>
|
17 |
+
<?php // $richSnipet[0] = ' itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating" '?>
|
18 |
+
<?php // $richSnipet[1] = ' itemprop="ratingValue" '?>
|
19 |
+
<?php // $richSnipet[2] = ' itemprop="reviewCount" '?>
|
20 |
+
|
21 |
+
<?php // $_product_AV = Mage::getModel('avisverifies/product')->load($ProductId); ?>
|
22 |
+
|
23 |
+
<?php if($countReviews): ?>
|
24 |
+
<div class="box-collateral box-reviews" id="customer-reviews">
|
25 |
+
<?php // info pour le js ajax ?>
|
26 |
+
<?php $tmp = Mage::getUrl('AvisVerifies/index/ajaxload', array('id_product' => $ProductId)) ?>
|
27 |
+
<input id="avisVarifiesAjaxUrl" type="hidden" value="<?php echo $tmp ?>" />
|
28 |
+
<?php // info pour le js ajax ?>
|
29 |
+
<div id="av_more_info_tabs"></div>
|
30 |
+
<div class="clear"></div>
|
31 |
+
<div id="idTabavisverifies">
|
32 |
+
<div id="headerAV">
|
33 |
+
<a name="hautavreview"></a>
|
34 |
+
<?php echo $this->__('Product Reviews')?>
|
35 |
+
</div>
|
36 |
+
<?php $skinUrl = $this->getSkinUrl('images/avisverifies/Sceau_45'.Mage::app()->getLocale()->getLocaleCode().'.png') ?>
|
37 |
+
<div id="under-headerAV" style="background: url('<?php echo $skinUrl ?>') no-repeat #f1f1f1;">
|
38 |
+
<div id="aggregateRatingAV" <?php echo $richSnipet[0] ?>>
|
39 |
+
<div>
|
40 |
+
<b><?php echo $this->__('Number of reviews')?></b>
|
41 |
+
: <span <?php echo $richSnipet[2] ?>><?php echo $countReviews?></span>
|
42 |
+
</div>
|
43 |
+
<div>
|
44 |
+
<b><?php echo $this->__('Average rating')?></b>
|
45 |
+
: <span <?php echo $richSnipet[1] ?>><?php echo $getNote?></span> /5
|
46 |
+
<div class="ratingWrapper" style="display:inline-block;">
|
47 |
+
<div class="ratingInner" style="width:<?php echo ($getNote*20)."%"?>;"></div>
|
48 |
+
</div>
|
49 |
+
</div>
|
50 |
+
</div>
|
51 |
+
<div id="certificatAV">
|
52 |
+
<div>
|
53 |
+
<?php $href = Mage::getStoreConfig('avisverifies/system/urlcertificat'); ?>
|
54 |
+
<a href="<?php echo $href ?>" target="_blank" class="display_certificat_review" >
|
55 |
+
<?php echo $this->__('View the trust certificate')?>
|
56 |
+
</a>
|
57 |
+
</div>
|
58 |
+
</div>
|
59 |
+
<div class="clear"></div>
|
60 |
+
</div>
|
61 |
+
<div id="ajax_comment_content">
|
62 |
+
<?php echo Mage::app()->getLayout()->createBlock('core/template')
|
63 |
+
->setData('productId',$ProductId)->setTemplate('avisverifies/pagination.phtml')
|
64 |
+
->toHtml(); ?>
|
65 |
+
</div>
|
66 |
+
<?php if($maxPages > 1): ?>
|
67 |
+
<button onclick="window.avisVerifies.Ajax()" id="av_load_next_page" data-page="1" data-page-last="<?php echo $maxPages ?>">
|
68 |
+
<?php echo $this->__('More Reviews...')?>
|
69 |
+
</button>
|
70 |
+
<img id="avisVarifiesAjaxImage" src="<?php echo $this->getSkinUrl('images/avisverifies/pagination-loader.gif')?>" style="display:none;margin: 10px 0px 0px 10px;" />
|
71 |
+
<?php endif; ?>
|
72 |
+
</div>
|
73 |
+
<div class="clear"></div>
|
74 |
+
</div>
|
75 |
+
<?php else: ?>
|
76 |
+
<div class="box-collateral box-reviews" id="customer-reviews">
|
77 |
+
<div id="idTabavisverifies">
|
78 |
+
<div id="headerAV">
|
79 |
+
<a name="hautavreview"></a>
|
80 |
+
<?php echo $this->__('Product Reviews')?>
|
81 |
+
</div>
|
82 |
+
<?php $skinUrl = $this->getSkinUrl('images/avisverifies/Sceau_45'.Mage::app()->getLocale()->getLocaleCode().'.png') ?>
|
83 |
+
<div id="under-headerAV" style="background: url('<?php echo $skinUrl ?>') no-repeat #f1f1f1;">
|
84 |
+
<p style="padding: 17px 40px 40px 56px;"><?php echo $this->__("No reviews for this product.")?></p>
|
85 |
+
</div>
|
86 |
+
</div>
|
87 |
+
</div>
|
88 |
+
<?php endif; ?>
|
89 |
+
<?php elseif(Netreviews_Avisverifies_Helper_Data::isDefaultDisplay()): // Magento Display ?>
|
90 |
+
<?php $_items = array(); ?>
|
91 |
+
<?php $obj = $this->getReviewsCollection(); ?>
|
92 |
+
<?php if(is_object($obj) && method_exists($obj,'getItems')):?>
|
93 |
+
<?php $_items = $this->getReviewsCollection()->getItems();?>
|
94 |
+
<?php endif;?>
|
95 |
+
<div class="box-collateral box-reviews" id="customer-reviews">
|
96 |
+
<?php if (count($_items)):?>
|
97 |
+
<h2><?php echo $this->__('Customer Reviews') ?></h2>
|
98 |
+
<?php echo $this->getChildHtml('toolbar') ?>
|
99 |
+
<dl>
|
100 |
+
<?php foreach ($_items as $_review):?>
|
101 |
+
<dt>
|
102 |
+
<a href="<?php echo $this->getReviewUrl($_review->getId()) ?>"><?php echo $this->htmlEscape($_review->getTitle()) ?></a> <?php echo $this->__('Review by <span>%s</span>', $this->htmlEscape($_review->getNickname())) ?>
|
103 |
+
</dt>
|
104 |
+
<dd>
|
105 |
+
<?php $_votes = $_review->getRatingVotes(); ?>
|
106 |
+
<?php if (count($_votes)): ?>
|
107 |
+
<table class="ratings-table">
|
108 |
+
<col width="1" />
|
109 |
+
<col />
|
110 |
+
<tbody>
|
111 |
+
<?php foreach ($_votes as $_vote): ?>
|
112 |
+
<tr>
|
113 |
+
<th><?php echo $this->escapeHtml($_vote->getRatingCode()) ?></th>
|
114 |
+
<td>
|
115 |
+
<div class="rating-box">
|
116 |
+
<div class="rating" style="width:<?php echo $_vote->getPercent()."%" ?>;"></div>
|
117 |
+
</div>
|
118 |
+
</td>
|
119 |
+
</tr>
|
120 |
+
<?php endforeach; ?>
|
121 |
+
</tbody>
|
122 |
+
</table>
|
123 |
+
<?php endif; ?>
|
124 |
+
<?php echo nl2br($this->htmlEscape($_review->getDetail())) ?>
|
125 |
+
<small class="date"><?php echo $this->__('(Posted on %s)', $this->formatDate($_review->getCreatedAt()), 'long') ?></small>
|
126 |
+
</dd>
|
127 |
+
<?php endforeach; ?>
|
128 |
+
</dl>
|
129 |
+
<?php echo $this->getChildHtml('toolbar') ?>
|
130 |
+
<?php endif;?>
|
131 |
+
<?php echo $this->getChildHtml('review_form') ?>
|
132 |
+
</div>
|
133 |
+
<?php endif; ?>
|
package.xml
CHANGED
@@ -1,18 +1,18 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>AvisVerifies</name>
|
4 |
-
<version>2.6.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.opensource.org/licenses/osl-3.0.php">OSLv3.0</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Avis Verifies vous permet de recolter l'avis des clients sur votre site ecommerce.</summary>
|
10 |
<description>Avis Verifies vous permet de recolter l'avis de vos clients suite à leur achat sur votre boutique ecommerce. Essayez gratuitement notre solution sur www.avis-verifies.com et commencez maintenant à récolter les avis de vos clients.</description>
|
11 |
-
<notes>La version 2.6.
|
12 |
<authors><author><name>Johnny</name><user>auto-converted</user><email>johnny@verified-reviews.com</email></author><author><name>Rémi</name><user>auto-converted</user><email>remi@avis-verifies.com</email></author></authors>
|
13 |
-
<date>2014-10
|
14 |
-
<time>
|
15 |
-
<contents><target name="magelocal"><dir name="Netreviews"><dir name="Avisverifies"><dir name="Block"><dir name="Adminhtml"><dir name="Form"><dir name="Edit"><dir name="Tab"><file name="Export.php" hash="32c9a862693dce96517321846b6189e4"/></dir><file name="Form.php" hash="2cfe44d42d906fe75d647176134d6080"/><file name="Tabs.php" hash="d7a91a2f7d89bc14e7dd9e71cb79edf0"/></dir><file name="Edit.php" hash="b7289e38f9abb03ee33f9e0f1dac4e37"/></dir></dir><dir name="Catalog"><dir name="Product"><file name="List.php" hash="ebf292466aab2800a81f1513214d9894"/><file name="View.php" hash="e4003164dce7a59b0998d7895c7f9263"/></dir></dir><dir name="Entity"><file name="Detailed.php" hash="9f685854b309482d402ce571683728fc"/></dir><dir name="Observers"><file name="Checkout.php" hash="b870528cc6680350c8b972fd52ec02c9"/></dir><dir name="Review"><dir name="Product"><file name="View.php" hash="cff5107547374a7f5fee1fda044a9891"/></dir><file name="Helper.php" hash="80d3283fd9a19c675628bcc8117d31e2"/></dir></dir><dir name="Helper"><file name="API.php" hash="e3d5ba79ef7a4f613d51c486e5fcf70d"/><file name="Data.php" hash="54318e70e7f4ff6fb126d85b19772826"/><file name="Export.php" hash="3545caf64b6228751a66de75609bb8e7"/></dir><dir name="Model"><dir name="Mysql4"><dir name="Average"><file name="Collection.php" hash="4255bd6ef8fdd2b7c6ee0632962286ed"/></dir><dir name="Reviews"><file name="Collection.php" hash="4187377e5fca20a959bfeceec88713ff"/></dir><file name="Average.php" hash="008a4558e9991d5ea04601c98a836480"/><file name="Reviews.php" hash="e6fccb35502c0acf635aab593d2a0beb"/></dir><dir name="Observers"><dir name="Checkout"><file name="Track.php" hash="9ef1537ad83507e55c8e47611d22c1d2"/></dir></dir><file name="Average.php" hash="9ae1d65bb0fb3515da0d903bec66abb2"/><file name="Avisverifies.php" hash="8c9fc21252411493eb6afdfb41aec0fc"/><file name="Product.php" hash="39e7d522d7aa08be30a668d9e94f3313"/><file name="Reviews.php" hash="6d26b50d6f43329b048cd57ad0c2613f"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="AvisverifiesController.php" hash="b456b2485be10a4072a649afe152ffba"/></dir><file name="DialogController.php" hash="81874a09a7c701427ac71e9fbc8f4809"/><file name="IndexController.php" hash="75cfdbd6b4389cace1a1462b88f44887"/></dir><dir name="etc"><file name="config.xml" hash="32e74ca68a459b2415c8363ba3d46c65"/><file name="system.xml" hash="61509f2187aa497facbe680060704ad5"/></dir><dir name="sql"><dir name="avisverifies_setup"><file name="mysql4-install-2.0.0.php" hash="e81951b7a86663d2079850df5ae90eac"/><file name="mysql4-upgrade-2.0.0-2.6.0.php" hash="c21d67c5b3cb60e9ca0a3ce5ab9fd6bf"/><file name="mysql4-upgrade-2.5.3-2.6.0.php" hash="c21d67c5b3cb60e9ca0a3ce5ab9fd6bf"/><file name="mysql4-upgrade-2.5.4-2.6.0.php" hash="c21d67c5b3cb60e9ca0a3ce5ab9fd6bf"/><file name="mysql4-upgrade-2.5.5-2.6.0.php" hash="c21d67c5b3cb60e9ca0a3ce5ab9fd6bf"/><file name="mysql4-upgrade-2.5.6-2.6.0.php" hash="c21d67c5b3cb60e9ca0a3ce5ab9fd6bf"/><file name="mysql4-upgrade-2.5.7.1-2.6.0.php" hash="c21d67c5b3cb60e9ca0a3ce5ab9fd6bf"/><file name="mysql4-upgrade-2.5.8.1-2.6.0.php" hash="c21d67c5b3cb60e9ca0a3ce5ab9fd6bf"/><file name="mysql4-upgrade-2.5.8.2-2.6.0.php" hash="c21d67c5b3cb60e9ca0a3ce5ab9fd6bf"/><file name="mysql4-upgrade-2.5.8.4-2.6.0.php" hash="c21d67c5b3cb60e9ca0a3ce5ab9fd6bf"/><file name="mysql4-upgrade-2.5.9.1-2.6.0.php" hash="c21d67c5b3cb60e9ca0a3ce5ab9fd6bf"/><file name="mysql4-upgrade-2.5.9.2-2.6.0.php" hash="c21d67c5b3cb60e9ca0a3ce5ab9fd6bf"/><file name="mysql4-upgrade-2.5.9.5-2.6.0.php" hash="c21d67c5b3cb60e9ca0a3ce5ab9fd6bf"/><file name="mysql4-upgrade-2.5.9.6-2.6.0.php" hash="c21d67c5b3cb60e9ca0a3ce5ab9fd6bf"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Netreviews_Avisverifies.xml" hash="2369bd341056eb0304a546e27ad07306"/></dir></target><target name="magelocale"><dir name="de_DE"><file name="avisverifies.csv" hash="37402797f28e69c5f25000ce09074f55"/></dir><dir name="en_US"><file name="avisverifies.csv" hash="4f941b21dec2282c6caed9c59e8c8a12"/></dir><dir name="es_ES"><file name="avisverifies.csv" hash="4efff3ee9d885ed7eb4e9144015e1217"/></dir><dir name="fr_FR"><file name="avisverifies.csv" hash="53b96dda5d24de710e091406be481be4"/></dir><dir name="nl_NL"><file name="avisverifies.csv" hash="53b96dda5d24de710e091406be481be4"/></dir><dir name="pt_PT"><file name="avisverifies.csv" hash="9163ca25902ec36ffa458cd7fd616063"/></dir><dir name="en_GB"><file name="avisverifies.csv" hash="c624e356f31a47e6fae3551d3741ad09"/></dir><dir name="it_IT"><file name="avisverifies.csv" hash="895920aabb6a63638bc8fb4d2bf1c506"/></dir><dir name="es_CO"><file name="avisverifies.csv" hash="4efff3ee9d885ed7eb4e9144015e1217"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="avisverifies.xml" hash="1767a2a9124e745f3fb2226d360d048e"/></dir><dir name="template"><dir name="avisverifies"><dir name="admin"><file name="checkinstallation.phtml" hash="8499fee910b828b8be20af2e71706848"/><file name="checkinstallation_tab.phtml" hash="c1c345d3b16dda650c8bd4b5102c98ce"/></dir><dir name="observers"><file name="checkout.phtml" hash="8828981443a80c6103589d3a5e70e3fa"/></dir><dir name="review"><dir name="helper"><file name="summary.phtml" hash="bef6135e9851cc0d42ddd0e34034cdcc"/><file name="summary_short.phtml" hash="8879f6891739caa136252aa275e4b659"/></dir></dir><file name="css.phtml" hash="d884ce5a880505cd8fee6e2466a0d13f"/><file name="float.phtml" hash="cb89835ae11a33e133cfbbed9f457f84"/><file name="js.phtml" hash="b7dfecacf0b4482cf287eb2533a71642"/><file name="left.phtml" hash="7fc73d43af41d23da96ee95c41276c08"/><file name="list.phtml" hash="a0f39ba0410248382fd2f5bf8f65c08f"/><file name="pagination.phtml" hash="b97cf25ed38ef5483655c2968d2f6095"/><file name="right.phtml" hash="04a02dc8d1a7d396893569079807811e"/><file name="wrapper.phtml" hash="b16a826c6049efdd5987d38919befba1"/></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="default"><dir name="default"><dir name="images"><dir name="avisverifies"><file name="Sceau_100de_DE.png" hash="3a5c40b284b71ff2b1cb45ee0f62c63c"/><file name="Sceau_100en_GB.png" hash="e5a18734067e9d34bd976a2644b3984b"/><file name="Sceau_100en_US.png" hash="e5a18734067e9d34bd976a2644b3984b"/><file name="Sceau_100es_CO.png" hash="d5a967c4601e5f40ef28749a6f7f9ec3"/><file name="Sceau_100es_ES.png" hash="d5a967c4601e5f40ef28749a6f7f9ec3"/><file name="Sceau_100fr_FR.png" hash="f2fc0adb70d9a1b3da6bb65d5b58fa30"/><file name="Sceau_100it_IT.png" hash="dd1e908d4d41e0438710b5138380eb37"/><file name="Sceau_100nl_NL.png" hash="502819066210a104b47aef3043424ce9"/><file name="Sceau_100pt_PT.png" hash="9befd03d5907892f981d256ea80d0b76"/><file name="Sceau_45de_DE.png" hash="5fc9fcfd445c20f50f48d549128c0134"/><file name="Sceau_45en_GB.png" hash="0f794c583717101c8706c6bfaeb00f12"/><file name="Sceau_45en_US.png" hash="0f794c583717101c8706c6bfaeb00f12"/><file name="Sceau_45es_CO.png" hash="eaf02ecb106202ec5213c7156e12b319"/><file name="Sceau_45es_ES.png" hash="eaf02ecb106202ec5213c7156e12b319"/><file name="Sceau_45fr_FR.png" hash="75301d9ecb9551bf805d3dbb8d60fc74"/><file name="Sceau_45it_IT.png" hash="606c02ded69315ce5dd6e5d65daf474f"/><file name="Sceau_45nl_NL.png" hash="eaf02ecb106202ec5213c7156e12b319"/><file name="Sceau_45pt_PT.png" hash="eaf02ecb106202ec5213c7156e12b319"/><file name="avisverifies.png" hash="1216d2675304fc40693d9645fcdf4d12"/><file name="etoile0.png" hash="bce56f50906713d9cc7602dc34cb73a5"/><file name="etoile1.png" hash="7446927468b81a1cae698578fa0dd566"/><file name="etoile2.png" hash="0a2e0bb274430ffd544a1112eb33eb0a"/><file name="etoile3.png" hash="65b18268445a8dfacb9848571916274d"/><file name="etoile4.png" hash="fffcb5ab211e6fc73e3f50731c683977"/><file name="etoile5.png" hash="0d22136a4ee0e714da50e8bc8daf1bed"/><file name="mini_etoile_empty.png" hash="4f3de020c07b2eb613517e26eedc4a32"/><file name="mini_etoile_full.png" hash="a9ed947e0e0b6de1b4522077443356f5"/><file name="pagination-loader.gif" hash="be1cede97289c13920048f238fd37b85"/></dir></dir></dir></dir></dir></target></contents>
|
16 |
<compatible/>
|
17 |
<dependencies/>
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>AvisVerifies</name>
|
4 |
+
<version>2.6.5</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.opensource.org/licenses/osl-3.0.php">OSLv3.0</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Avis Verifies vous permet de recolter l'avis des clients sur votre site ecommerce.</summary>
|
10 |
<description>Avis Verifies vous permet de recolter l'avis de vos clients suite à leur achat sur votre boutique ecommerce. Essayez gratuitement notre solution sur www.avis-verifies.com et commencez maintenant à récolter les avis de vos clients.</description>
|
11 |
+
<notes>La version 2.6.5 est stable.</notes>
|
12 |
<authors><author><name>Johnny</name><user>auto-converted</user><email>johnny@verified-reviews.com</email></author><author><name>Rémi</name><user>auto-converted</user><email>remi@avis-verifies.com</email></author></authors>
|
13 |
+
<date>2014-11-10</date>
|
14 |
+
<time>08:58:40</time>
|
15 |
+
<contents><target name="magelocal"><dir name="Netreviews"><dir name="Avisverifies"><dir name="Block"><dir name="Adminhtml"><dir name="Form"><dir name="Edit"><file name="Form.php" hash="17d761de90f9b13a6b7f563bf18a82eb"/></dir><dir name="Export"><file name="Export.php" hash="b60d5008b4a983e94c9d47666174cb04"/><file name="Tabs.php" hash="7d0c8c95e2c730de172d81bed071b217"/><file name="index.php" hash="1adf89c770911256511bc9d4b51d4ae7"/></dir></dir></dir><dir name="Observers"><file name="Checkout.php" hash="b870528cc6680350c8b972fd52ec02c9"/></dir><dir name="Review"><dir name="Product"><file name="View.php" hash="cc191a129b59541d32207d5057a7ca45"/></dir><file name="Helper.php" hash="cf499b8a4743273c0231c42d493811a1"/></dir></dir><dir name="Helper"><file name="API.php" hash="e3d5ba79ef7a4f613d51c486e5fcf70d"/><file name="Data.php" hash="31dd78edef789bd78e369fbb8c5fc982"/><file name="Export.php" hash="e7f0c7ce694f38d3080ac466908492b6"/><file name="Install.php" hash="caba9ff15a8222db5504ab709cfb3592"/></dir><dir name="Model"><dir name="Mysql4"><dir name="Average"><file name="Collection.php" hash="4255bd6ef8fdd2b7c6ee0632962286ed"/></dir><dir name="Reviews"><file name="Collection.php" hash="4187377e5fca20a959bfeceec88713ff"/></dir><file name="Average.php" hash="008a4558e9991d5ea04601c98a836480"/><file name="Reviews.php" hash="e6fccb35502c0acf635aab593d2a0beb"/></dir><dir name="Observers"><dir name="Checkout"><file name="Track.php" hash="9ef1537ad83507e55c8e47611d22c1d2"/></dir><dir name="Product"><file name="List.php" hash="f62a03cc9ded762a13597d05c8506de9"/></dir><file name="System.php" hash="7aa21adecba29bef48ad60bd991c46c1"/></dir><file name="Average.php" hash="9ae1d65bb0fb3515da0d903bec66abb2"/><file name="Avisverifies.php" hash="8c9fc21252411493eb6afdfb41aec0fc"/><file name="Product.php" hash="39e7d522d7aa08be30a668d9e94f3313"/><file name="Reviews.php" hash="61a37da30b2957dd5f6fe67ef147219b"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="AvisverifiesController.php" hash="1d2d3f0dfd51d4dacc024680ab4f725a"/></dir><file name="DialogController.php" hash="ed242f3afbe6df4bed47b03d0f1f56cc"/><file name="IndexController.php" hash="75cfdbd6b4389cace1a1462b88f44887"/></dir><dir name="etc"><file name="config.xml" hash="db989ec7033333c8c408528edeb2f822"/><file name="system.xml" hash="66eef8cbd5bf4f822d4a9415b997a598"/></dir><dir name="sql"><dir name="avisverifies_setup"><file name="mysql4-install-2.0.0.php" hash="82b330380c2c9f35ae61843a19b892bf"/><file name="mysql4-upgrade-2.0.0-2.6.0.php" hash="c21d67c5b3cb60e9ca0a3ce5ab9fd6bf"/><file name="mysql4-upgrade-2.5.3-2.6.0.php" hash="c21d67c5b3cb60e9ca0a3ce5ab9fd6bf"/><file name="mysql4-upgrade-2.5.4-2.6.0.php" hash="c21d67c5b3cb60e9ca0a3ce5ab9fd6bf"/><file name="mysql4-upgrade-2.5.5-2.6.0.php" hash="c21d67c5b3cb60e9ca0a3ce5ab9fd6bf"/><file name="mysql4-upgrade-2.5.6-2.6.0.php" hash="c21d67c5b3cb60e9ca0a3ce5ab9fd6bf"/><file name="mysql4-upgrade-2.5.7.1-2.6.0.php" hash="c21d67c5b3cb60e9ca0a3ce5ab9fd6bf"/><file name="mysql4-upgrade-2.5.8.1-2.6.0.php" hash="c21d67c5b3cb60e9ca0a3ce5ab9fd6bf"/><file name="mysql4-upgrade-2.5.8.2-2.6.0.php" hash="c21d67c5b3cb60e9ca0a3ce5ab9fd6bf"/><file name="mysql4-upgrade-2.5.8.4-2.6.0.php" hash="c21d67c5b3cb60e9ca0a3ce5ab9fd6bf"/><file name="mysql4-upgrade-2.5.9.1-2.6.0.php" hash="c21d67c5b3cb60e9ca0a3ce5ab9fd6bf"/><file name="mysql4-upgrade-2.5.9.2-2.6.0.php" hash="c21d67c5b3cb60e9ca0a3ce5ab9fd6bf"/><file name="mysql4-upgrade-2.5.9.5-2.6.0.php" hash="c21d67c5b3cb60e9ca0a3ce5ab9fd6bf"/><file name="mysql4-upgrade-2.5.9.6-2.6.0.php" hash="c21d67c5b3cb60e9ca0a3ce5ab9fd6bf"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Netreviews_Avisverifies.xml" hash="2369bd341056eb0304a546e27ad07306"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="avisverifies"><dir name="admin"><file name="checkinstallation.phtml" hash="af62d00968b9e0296c20a0a1e2a31017"/><file name="checkinstallation_tab.phtml" hash="c1c345d3b16dda650c8bd4b5102c98ce"/></dir><dir name="observers"><file name="checkout.phtml" hash="8828981443a80c6103589d3a5e70e3fa"/></dir><dir name="review"><dir name="helper"><file name="summary.phtml" hash="9918fb594ccdefdc2efb867cfbcbfe9b"/><file name="summary_short.phtml" hash="f3e3af07d235c8014d2af43c274e66be"/></dir></dir><file name="catalogProductList.phtml" hash="db9c805f21512e53720958fbe3b6d17c"/><file name="css.phtml" hash="d884ce5a880505cd8fee6e2466a0d13f"/><file name="float.phtml" hash="cb89835ae11a33e133cfbbed9f457f84"/><file name="js.phtml" hash="66fff1cc64954f7221e6e738c56fb003"/><file name="left.phtml" hash="7fc73d43af41d23da96ee95c41276c08"/><file name="pagination.phtml" hash="286065724e2ef719f6affe1bdce09a7c"/><file name="reviewProductList.phtml" hash="a681bdb5513fa2d7f6f09ab0fb3ae938"/><file name="right.phtml" hash="04a02dc8d1a7d396893569079807811e"/><file name="wrapper.phtml" hash="b16a826c6049efdd5987d38919befba1"/></dir></dir><dir name="layout"><file name="avisverifies.xml" hash="1d3c6529fabb975d73a6a6b25d2191c9"/></dir></dir></dir><dir name="default"><dir name="default"><dir name="template"><dir name="avisverifies"><dir name="admin"><file name="checkinstallation.phtml" hash="af62d00968b9e0296c20a0a1e2a31017"/><file name="checkinstallation_tab.phtml" hash="35cadb081328826be1bc96877c4f2c8d"/></dir><dir name="observers"><file name="checkout.phtml" hash="8828981443a80c6103589d3a5e70e3fa"/></dir><dir name="review"><dir name="helper"><file name="summary.phtml" hash="9918fb594ccdefdc2efb867cfbcbfe9b"/><file name="summary_short.phtml" hash="f3e3af07d235c8014d2af43c274e66be"/></dir></dir><file name="catalogProductList.phtml" hash="db9c805f21512e53720958fbe3b6d17c"/><file name="css.phtml" hash="d884ce5a880505cd8fee6e2466a0d13f"/><file name="float.phtml" hash="cb89835ae11a33e133cfbbed9f457f84"/><file name="js.phtml" hash="66fff1cc64954f7221e6e738c56fb003"/><file name="left.phtml" hash="7fc73d43af41d23da96ee95c41276c08"/><file name="pagination.phtml" hash="286065724e2ef719f6affe1bdce09a7c"/><file name="reviewProductList.phtml" hash="a681bdb5513fa2d7f6f09ab0fb3ae938"/><file name="right.phtml" hash="04a02dc8d1a7d396893569079807811e"/><file name="wrapper.phtml" hash="b16a826c6049efdd5987d38919befba1"/></dir></dir><dir name="layout"><file name="avisverifies.xml" hash="1d3c6529fabb975d73a6a6b25d2191c9"/></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="images"><dir name="avisverifies"><file name="Sceau_100.png" hash="f2fc0adb70d9a1b3da6bb65d5b58fa30"/><file name="Sceau_100de_DE.png" hash="3a5c40b284b71ff2b1cb45ee0f62c63c"/><file name="Sceau_100en_GB.png" hash="e5a18734067e9d34bd976a2644b3984b"/><file name="Sceau_100en_US.png" hash="e5a18734067e9d34bd976a2644b3984b"/><file name="Sceau_100es_CO.png" hash="d5a967c4601e5f40ef28749a6f7f9ec3"/><file name="Sceau_100es_ES.png" hash="d5a967c4601e5f40ef28749a6f7f9ec3"/><file name="Sceau_100fr_FR.png" hash="f2fc0adb70d9a1b3da6bb65d5b58fa30"/><file name="Sceau_100it_IT.png" hash="dd1e908d4d41e0438710b5138380eb37"/><file name="Sceau_100nl_NL.png" hash="502819066210a104b47aef3043424ce9"/><file name="Sceau_100pt_PT.png" hash="9befd03d5907892f981d256ea80d0b76"/><file name="Sceau_45.png" hash="75301d9ecb9551bf805d3dbb8d60fc74"/><file name="Sceau_45_ES.png" hash="eaf02ecb106202ec5213c7156e12b319"/><file name="Sceau_45_fr.png" hash="75301d9ecb9551bf805d3dbb8d60fc74"/><file name="Sceau_45de_DE.png" hash="5fc9fcfd445c20f50f48d549128c0134"/><file name="Sceau_45en_GB.png" hash="0f794c583717101c8706c6bfaeb00f12"/><file name="Sceau_45en_US.png" hash="0f794c583717101c8706c6bfaeb00f12"/><file name="Sceau_45es_CO.png" hash="eaf02ecb106202ec5213c7156e12b319"/><file name="Sceau_45es_ES.png" hash="eaf02ecb106202ec5213c7156e12b319"/><file name="Sceau_45fr_FR.png" hash="75301d9ecb9551bf805d3dbb8d60fc74"/><file name="Sceau_45it_IT.png" hash="606c02ded69315ce5dd6e5d65daf474f"/><file name="Sceau_45nl_NL.png" hash="eaf02ecb106202ec5213c7156e12b319"/><file name="Sceau_45pt_PT.png" hash="eaf02ecb106202ec5213c7156e12b319"/><file name="avisverifies.png" hash="1216d2675304fc40693d9645fcdf4d12"/><file name="etoile0.png" hash="bce56f50906713d9cc7602dc34cb73a5"/><file name="etoile1.png" hash="7446927468b81a1cae698578fa0dd566"/><file name="etoile2.png" hash="0a2e0bb274430ffd544a1112eb33eb0a"/><file name="etoile3.png" hash="65b18268445a8dfacb9848571916274d"/><file name="etoile4.png" hash="fffcb5ab211e6fc73e3f50731c683977"/><file name="etoile5.png" hash="0d22136a4ee0e714da50e8bc8daf1bed"/><file name="mini_etoile_empty.png" hash="4f3de020c07b2eb613517e26eedc4a32"/><file name="mini_etoile_full.png" hash="a9ed947e0e0b6de1b4522077443356f5"/><file name="pagination-loader.gif" hash="be1cede97289c13920048f238fd37b85"/></dir></dir></dir></dir><dir name="default"><dir name="default"><dir name="images"><dir name="avisverifies"><file name="Sceau_100de_DE.png" hash="3a5c40b284b71ff2b1cb45ee0f62c63c"/><file name="Sceau_100en_GB.png" hash="e5a18734067e9d34bd976a2644b3984b"/><file name="Sceau_100en_US.png" hash="e5a18734067e9d34bd976a2644b3984b"/><file name="Sceau_100es_CO.png" hash="d5a967c4601e5f40ef28749a6f7f9ec3"/><file name="Sceau_100es_ES.png" hash="d5a967c4601e5f40ef28749a6f7f9ec3"/><file name="Sceau_100fr_FR.png" hash="f2fc0adb70d9a1b3da6bb65d5b58fa30"/><file name="Sceau_100it_IT.png" hash="dd1e908d4d41e0438710b5138380eb37"/><file name="Sceau_100nl_NL.png" hash="502819066210a104b47aef3043424ce9"/><file name="Sceau_100pt_PT.png" hash="9befd03d5907892f981d256ea80d0b76"/><file name="Sceau_45de_DE.png" hash="5fc9fcfd445c20f50f48d549128c0134"/><file name="Sceau_45en_GB.png" hash="0f794c583717101c8706c6bfaeb00f12"/><file name="Sceau_45en_US.png" hash="0f794c583717101c8706c6bfaeb00f12"/><file name="Sceau_45es_CO.png" hash="eaf02ecb106202ec5213c7156e12b319"/><file name="Sceau_45es_ES.png" hash="eaf02ecb106202ec5213c7156e12b319"/><file name="Sceau_45fr_FR.png" hash="75301d9ecb9551bf805d3dbb8d60fc74"/><file name="Sceau_45it_IT.png" hash="606c02ded69315ce5dd6e5d65daf474f"/><file name="Sceau_45nl_NL.png" hash="eaf02ecb106202ec5213c7156e12b319"/><file name="Sceau_45pt_PT.png" hash="eaf02ecb106202ec5213c7156e12b319"/><file name="avisverifies.png" hash="1216d2675304fc40693d9645fcdf4d12"/><file name="etoile0.png" hash="bce56f50906713d9cc7602dc34cb73a5"/><file name="etoile1.png" hash="7446927468b81a1cae698578fa0dd566"/><file name="etoile2.png" hash="0a2e0bb274430ffd544a1112eb33eb0a"/><file name="etoile3.png" hash="65b18268445a8dfacb9848571916274d"/><file name="etoile4.png" hash="fffcb5ab211e6fc73e3f50731c683977"/><file name="etoile5.png" hash="0d22136a4ee0e714da50e8bc8daf1bed"/><file name="mini_etoile_empty.png" hash="4f3de020c07b2eb613517e26eedc4a32"/><file name="mini_etoile_full.png" hash="a9ed947e0e0b6de1b4522077443356f5"/><file name="pagination-loader.gif" hash="be1cede97289c13920048f238fd37b85"/></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="de_DE"><file name="avisverifies.csv" hash="37402797f28e69c5f25000ce09074f55"/></dir><dir name="en_US"><file name="avisverifies.csv" hash="4f941b21dec2282c6caed9c59e8c8a12"/></dir><dir name="es_ES"><file name="avisverifies.csv" hash="4efff3ee9d885ed7eb4e9144015e1217"/></dir><dir name="fr_FR"><file name="avisverifies.csv" hash="53b96dda5d24de710e091406be481be4"/></dir><dir name="nl_NL"><file name="avisverifies.csv" hash="53b96dda5d24de710e091406be481be4"/></dir><dir name="pt_PT"><file name="avisverifies.csv" hash="9163ca25902ec36ffa458cd7fd616063"/></dir><dir name="en_GB"><file name="avisverifies.csv" hash="c624e356f31a47e6fae3551d3741ad09"/></dir><dir name="it_IT"><file name="avisverifies.csv" hash="895920aabb6a63638bc8fb4d2bf1c506"/></dir><dir name="es_CO"><file name="avisverifies.csv" hash="4efff3ee9d885ed7eb4e9144015e1217"/></dir></target></contents>
|
16 |
<compatible/>
|
17 |
<dependencies/>
|
18 |
</package>
|
skin/frontend/base/default/images/avisverifies/Sceau_100.png
ADDED
Binary file
|
skin/frontend/base/default/images/avisverifies/Sceau_100de_DE.png
ADDED
Binary file
|
skin/frontend/base/default/images/avisverifies/Sceau_100en_GB.png
ADDED
Binary file
|
skin/frontend/base/default/images/avisverifies/Sceau_100en_US.png
ADDED
Binary file
|
skin/frontend/base/default/images/avisverifies/Sceau_100es_CO.png
ADDED
Binary file
|
skin/frontend/base/default/images/avisverifies/Sceau_100es_ES.png
ADDED
Binary file
|
skin/frontend/base/default/images/avisverifies/Sceau_100fr_FR.png
ADDED
Binary file
|
skin/frontend/base/default/images/avisverifies/Sceau_100it_IT.png
ADDED
Binary file
|
skin/frontend/base/default/images/avisverifies/Sceau_100nl_NL.png
ADDED
Binary file
|
skin/frontend/base/default/images/avisverifies/Sceau_100pt_PT.png
ADDED
Binary file
|
skin/frontend/base/default/images/avisverifies/Sceau_45.png
ADDED
Binary file
|
skin/frontend/base/default/images/avisverifies/Sceau_45_ES.png
ADDED
Binary file
|
skin/frontend/base/default/images/avisverifies/Sceau_45_fr.png
ADDED
Binary file
|
skin/frontend/base/default/images/avisverifies/Sceau_45de_DE.png
ADDED
Binary file
|
skin/frontend/base/default/images/avisverifies/Sceau_45en_GB.png
ADDED
Binary file
|
skin/frontend/base/default/images/avisverifies/Sceau_45en_US.png
ADDED
Binary file
|
skin/frontend/base/default/images/avisverifies/Sceau_45es_CO.png
ADDED
Binary file
|
skin/frontend/base/default/images/avisverifies/Sceau_45es_ES.png
ADDED
Binary file
|
skin/frontend/base/default/images/avisverifies/Sceau_45fr_FR.png
ADDED
Binary file
|
skin/frontend/base/default/images/avisverifies/Sceau_45it_IT.png
ADDED
Binary file
|
skin/frontend/base/default/images/avisverifies/Sceau_45nl_NL.png
ADDED
Binary file
|
skin/frontend/base/default/images/avisverifies/Sceau_45pt_PT.png
ADDED
Binary file
|
skin/frontend/base/default/images/avisverifies/avisverifies.png
ADDED
Binary file
|
skin/frontend/base/default/images/avisverifies/etoile0.png
ADDED
Binary file
|
skin/frontend/base/default/images/avisverifies/etoile1.png
ADDED
Binary file
|
skin/frontend/base/default/images/avisverifies/etoile2.png
ADDED
Binary file
|
skin/frontend/base/default/images/avisverifies/etoile3.png
ADDED
Binary file
|
skin/frontend/base/default/images/avisverifies/etoile4.png
ADDED
Binary file
|
skin/frontend/base/default/images/avisverifies/etoile5.png
ADDED
Binary file
|
skin/frontend/base/default/images/avisverifies/mini_etoile_empty.png
ADDED
Binary file
|
skin/frontend/base/default/images/avisverifies/mini_etoile_full.png
ADDED
Binary file
|
skin/frontend/base/default/images/avisverifies/pagination-loader.gif
ADDED
Binary file
|