Version Notes
Avejana Custom Review Rating and Question Answer API
Download this release
Release Info
Developer | aveJanaReviews |
Extension | Avejana_ReviewAndQA |
Version | 1.1.4 |
Comparing to | |
See all releases |
Code changes from version 1.1.3 to 1.1.4
- app/code/community/Avejana/AvejanaRMS/Block/Helper.php +6 -2
- app/code/community/Avejana/AvejanaRMS/Block/Index.php +49 -12
- app/code/community/Avejana/AvejanaRMS/Model/Observer.php +40 -4
- app/code/community/Avejana/AvejanaRMS/etc/config.xml +11 -1
- app/code/community/Avejana/AvejanaRMS/etc/system.xml +21 -3
- app/code/community/Avejana/AvejanaRMS/sql/avejanarms_setup/mysql4-install-0.1.0.php +7 -5
- app/code/community/Avejana/AvejanaRMS/sql/avejanarms_setup/mysql4-upgrade-0.1.0-0.1.1.php +77 -0
- app/code/community/Avejana/AvejanaRMS/sql/avejanarms_setup/mysql4-upgrade-0.1.1-1.0.0.php +77 -0
- app/design/frontend/base/default/layout/avejanarms.xml +2 -2
- app/design/frontend/base/default/template/avejanarms/custom-tabs.phtml +22 -4
- app/design/frontend/base/default/template/avejanarms/product/price.phtml +6 -8
- app/design/frontend/base/default/template/avejanarms/qa.phtml +19 -5
- app/design/frontend/base/default/template/avejanarms/rating.phtml +73 -41
- app/design/frontend/base/default/template/avejanarms/review.phtml +24 -21
- app/etc/modules/Avejana_AvejanaRMS.xml +1 -1
- media/Avejana/avattr.php +83 -0
- package.xml +4 -4
- skin/frontend/base/default/css/avejana/avejana.css +56 -15
- skin/frontend/base/default/css/avejana/avejana@.css +272 -0
app/code/community/Avejana/AvejanaRMS/Block/Helper.php
CHANGED
@@ -28,9 +28,13 @@ class Avejana_AvejanaRMS_Block_Helper extends Mage_Review_Block_Helper
|
|
28 |
|
29 |
public function getRatingSummary()
|
30 |
{
|
|
|
31 |
$_product = Mage::registry('current_product');
|
32 |
-
$
|
33 |
-
|
|
|
|
|
|
|
34 |
}
|
35 |
|
36 |
public function getAvejanaReviewsCount()
|
28 |
|
29 |
public function getRatingSummary()
|
30 |
{
|
31 |
+
$avgratingandcount =array();
|
32 |
$_product = Mage::registry('current_product');
|
33 |
+
$product = Mage::getModel('catalog/product')->load($_product->getId());
|
34 |
+
$avgratingandcount['reviewcount'] = $product->getAvejanaTotalreview();
|
35 |
+
$avgratingandcount['avgrating'] = $product->getAvejanaAveragerating();
|
36 |
+
|
37 |
+
return $avgratingandcount;
|
38 |
}
|
39 |
|
40 |
public function getAvejanaReviewsCount()
|
app/code/community/Avejana/AvejanaRMS/Block/Index.php
CHANGED
@@ -2,10 +2,12 @@
|
|
2 |
class Avejana_AvejanaRMS_Block_Index extends Mage_Core_Block_Template{
|
3 |
|
4 |
|
5 |
-
public function getAvejanaReviesListing($productid)
|
6 |
-
|
7 |
$url = Mage::helper('avejanarms')->getCompanyUrl().'/api/reviewreply/';
|
8 |
-
|
|
|
|
|
9 |
|
10 |
$data = array(
|
11 |
|
@@ -35,15 +37,36 @@ class Avejana_AvejanaRMS_Block_Index extends Mage_Core_Block_Template{
|
|
35 |
if($response){
|
36 |
$status = $response->status;
|
37 |
|
38 |
-
if($status
|
39 |
-
|
40 |
-
|
41 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
42 |
}else{
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
|
|
|
|
|
|
|
|
47 |
}
|
48 |
}
|
49 |
}
|
@@ -52,6 +75,8 @@ class Avejana_AvejanaRMS_Block_Index extends Mage_Core_Block_Template{
|
|
52 |
public function getAvejanaQuestionAnswerListing($productid)
|
53 |
{
|
54 |
$url = Mage::helper('avejanarms')->getCompanyUrl().'/api/answer/';
|
|
|
|
|
55 |
|
56 |
//echo $productid;die;
|
57 |
|
@@ -84,10 +109,22 @@ class Avejana_AvejanaRMS_Block_Index extends Mage_Core_Block_Template{
|
|
84 |
|
85 |
if($status == 'success'){
|
86 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
87 |
return $response->message;
|
88 |
|
89 |
}else{
|
90 |
-
|
|
|
|
|
91 |
//Mage::getSingleton('catalog/session')->addError('fail to open replies of Questions');
|
92 |
|
93 |
}
|
2 |
class Avejana_AvejanaRMS_Block_Index extends Mage_Core_Block_Template{
|
3 |
|
4 |
|
5 |
+
public function getAvejanaReviesListing($productid){
|
6 |
+
|
7 |
$url = Mage::helper('avejanarms')->getCompanyUrl().'/api/reviewreply/';
|
8 |
+
$store_id = Mage::app()->getStore()->getStoreId();
|
9 |
+
$action = Mage::getModel('catalog/resource_product_action');
|
10 |
+
$returnarr =array();
|
11 |
|
12 |
$data = array(
|
13 |
|
37 |
if($response){
|
38 |
$status = $response->status;
|
39 |
|
40 |
+
if($response->status=='success'){
|
41 |
+
$totalreviewcount=count($response->message);
|
42 |
+
$totalratings=0;
|
43 |
+
foreach($response->message as $reviews){
|
44 |
+
$totalratings=$totalratings+$reviews->Ratings;
|
45 |
+
}
|
46 |
+
$averagerating=($totalratings/$totalreviewcount)*20;
|
47 |
+
$returnarr['avgrating'] = $averagerating;
|
48 |
+
$returnarr['reviewcount'] = $totalreviewcount;
|
49 |
+
$returnarr['reviews'] = $response->message;
|
50 |
+
|
51 |
+
|
52 |
+
$action->updateAttributes(array($productid), array(
|
53 |
+
'avejana_averagerating' => $averagerating
|
54 |
+
), $store_id);
|
55 |
+
|
56 |
+
$action->updateAttributes(array($productid), array(
|
57 |
+
'avejana_totalreview' => $totalreviewcount
|
58 |
+
), $store_id);
|
59 |
+
|
60 |
+
return $returnarr;
|
61 |
}else{
|
62 |
+
$action->updateAttributes(array($productid), array(
|
63 |
+
'avejana_averagerating' => 0
|
64 |
+
), $store_id);
|
65 |
+
|
66 |
+
$action->updateAttributes(array($productid), array(
|
67 |
+
'avejana_totalreview' => 0
|
68 |
+
), $store_id);
|
69 |
+
$returnarr = array();
|
70 |
}
|
71 |
}
|
72 |
}
|
75 |
public function getAvejanaQuestionAnswerListing($productid)
|
76 |
{
|
77 |
$url = Mage::helper('avejanarms')->getCompanyUrl().'/api/answer/';
|
78 |
+
$store_id = Mage::app()->getStore()->getStoreId();
|
79 |
+
$action = Mage::getModel('catalog/resource_product_action');
|
80 |
|
81 |
//echo $productid;die;
|
82 |
|
109 |
|
110 |
if($status == 'success'){
|
111 |
|
112 |
+
|
113 |
+
$i=0; foreach($response->message as $_qa){
|
114 |
+
if($_qa->Answer != ''){
|
115 |
+
$i=$i+1;
|
116 |
+
}
|
117 |
+
}
|
118 |
+
|
119 |
+
$action->updateAttributes(array($productid), array(
|
120 |
+
'avejana_totalqa' => $i
|
121 |
+
), $store_id);
|
122 |
return $response->message;
|
123 |
|
124 |
}else{
|
125 |
+
$action->updateAttributes(array($productid), array(
|
126 |
+
'avejana_totalqa' => 0
|
127 |
+
), $store_id);
|
128 |
//Mage::getSingleton('catalog/session')->addError('fail to open replies of Questions');
|
129 |
|
130 |
}
|
app/code/community/Avejana/AvejanaRMS/Model/Observer.php
CHANGED
@@ -11,9 +11,12 @@ class Avejana_AvejanaRMS_Model_Observer{
|
|
11 |
|
12 |
$url = Mage::helper('avejanarms')->getCompanyUrl().'/api/get_company_url';
|
13 |
$sectiondata = Mage::app()->getRequest()->getParams();
|
|
|
14 |
$is_module_active = $sectiondata['groups']['avejanaconfiguration']['fields']['active']['value'];
|
15 |
$companyid = $sectiondata['groups']['avejanaconfiguration']['fields']['companyid']['value'];
|
16 |
$avejanakey = $sectiondata['groups']['avejanaconfiguration']['fields']['avejanakey']['value'];
|
|
|
|
|
17 |
|
18 |
if($is_module_active==1){
|
19 |
|
@@ -27,19 +30,40 @@ class Avejana_AvejanaRMS_Model_Observer{
|
|
27 |
$writeConnection->query($query);
|
28 |
|
29 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
30 |
|
31 |
$userurl=$this->getCompanyUrl($url, $companyid, $avejanakey);
|
32 |
|
33 |
Mage::getConfig()->saveConfig('avejanasetting/avejanaconfiguration/companyurl', $userurl, 'default', 0);
|
34 |
-
|
35 |
-
|
|
|
36 |
}
|
37 |
|
38 |
-
|
|
|
39 |
public function exportProductCron(){
|
40 |
|
41 |
$productModel = Mage::getModel('catalog/product')->getCollection()->addAttributeToFilter('avejana_product_import',0);
|
42 |
$productData = $productModel->getData();
|
|
|
43 |
foreach($productData as $product){
|
44 |
$product_id = $product['entity_id'];
|
45 |
$product_model = Mage::getModel('catalog/product')->load($product_id);
|
@@ -331,6 +355,18 @@ class Avejana_AvejanaRMS_Model_Observer{
|
|
331 |
}
|
332 |
|
333 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
334 |
|
335 |
|
336 |
/**
|
@@ -545,7 +581,7 @@ class Avejana_AvejanaRMS_Model_Observer{
|
|
545 |
}
|
546 |
|
547 |
}
|
548 |
-
Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('avejanarms')->__('Incorrect Company ID and/or AveJana Key'));
|
549 |
Mage::getSingleton('adminhtml/session')->addError(Mage::helper('avejanarms')->__('Incorrect Company ID and/or AveJana Key'));
|
550 |
}catch(Exception $e){
|
551 |
print_r($e);
|
11 |
|
12 |
$url = Mage::helper('avejanarms')->getCompanyUrl().'/api/get_company_url';
|
13 |
$sectiondata = Mage::app()->getRequest()->getParams();
|
14 |
+
//echo '<pre>';print_r($sectiondata);die;
|
15 |
$is_module_active = $sectiondata['groups']['avejanaconfiguration']['fields']['active']['value'];
|
16 |
$companyid = $sectiondata['groups']['avejanaconfiguration']['fields']['companyid']['value'];
|
17 |
$avejanakey = $sectiondata['groups']['avejanaconfiguration']['fields']['avejanakey']['value'];
|
18 |
+
$islogoshow = $sectiondata['groups']['avejanaconfiguration']['fields']['isshowlogo']['value'];
|
19 |
+
$isrichsnippet = $sectiondata['groups']['avejanaconfiguration']['fields']['showrichsnippet']['value'];
|
20 |
|
21 |
if($is_module_active==1){
|
22 |
|
30 |
$writeConnection->query($query);
|
31 |
|
32 |
}
|
33 |
+
|
34 |
+
$is_logo_show = Mage::helper('avejanarms')->getLogoShow();
|
35 |
+
$is_rich_snippet_show = Mage::helper('avejanarms')->getRichSnippet();
|
36 |
+
|
37 |
+
if($is_logo_show==1){
|
38 |
+
Mage::getConfig()->saveConfig('avejanasetting/avejanaconfiguration/isshowlogo', 1, 'default', 0);
|
39 |
+
}elseif($is_logo_show==0 && ($islogoshow==1)){
|
40 |
+
Mage::getConfig()->saveConfig('avejanasetting/avejanaconfiguration/isshowlogo', 0, 'default', 0);
|
41 |
+
Mage::getSingleton('adminhtml/session')->addError(Mage::helper('avejanarms')->__('Please enable logo API from Avejana Daashboard'));
|
42 |
+
}
|
43 |
+
|
44 |
+
if($is_rich_snippet_show==1){
|
45 |
+
Mage::getConfig()->saveConfig('avejanasetting/avejanaconfiguration/showrichsnippet', 1, 'default', 0);
|
46 |
+
}elseif($is_rich_snippet_show==0 && ($isrichsnippet==1)){
|
47 |
+
Mage::getConfig()->saveConfig('avejanasetting/avejanaconfiguration/showrichsnippet', 0, 'default', 0);
|
48 |
+
Mage::getSingleton('adminhtml/session')->addError(Mage::helper('avejanarms')->__('Please enable Rich Snippet API from Avejana Daashboard'));
|
49 |
+
}
|
50 |
+
|
51 |
|
52 |
$userurl=$this->getCompanyUrl($url, $companyid, $avejanakey);
|
53 |
|
54 |
Mage::getConfig()->saveConfig('avejanasetting/avejanaconfiguration/companyurl', $userurl, 'default', 0);
|
55 |
+
if($is_module_active==0){
|
56 |
+
$this->exportProductCron(); /****export all product to avejana*****/
|
57 |
+
}
|
58 |
}
|
59 |
|
60 |
+
|
61 |
+
|
62 |
public function exportProductCron(){
|
63 |
|
64 |
$productModel = Mage::getModel('catalog/product')->getCollection()->addAttributeToFilter('avejana_product_import',0);
|
65 |
$productData = $productModel->getData();
|
66 |
+
//echo '<pre>';print_r($productData);die;
|
67 |
foreach($productData as $product){
|
68 |
$product_id = $product['entity_id'];
|
69 |
$product_model = Mage::getModel('catalog/product')->load($product_id);
|
355 |
}
|
356 |
|
357 |
|
358 |
+
/******
|
359 |
+
|
360 |
+
Disable product attribute after save
|
361 |
+
|
362 |
+
*****/
|
363 |
+
public function lockAttributes($observer) {
|
364 |
+
$event = $observer->getEvent();
|
365 |
+
$product = $event->getProduct();
|
366 |
+
$product->lockAttribute('avejana_averagerating');
|
367 |
+
$product->lockAttribute('avejana_totalreview');
|
368 |
+
$product->lockAttribute('avejana_totalqa');
|
369 |
+
}
|
370 |
|
371 |
|
372 |
/**
|
581 |
}
|
582 |
|
583 |
}
|
584 |
+
//Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('avejanarms')->__('Incorrect Company ID and/or AveJana Key'));
|
585 |
Mage::getSingleton('adminhtml/session')->addError(Mage::helper('avejanarms')->__('Incorrect Company ID and/or AveJana Key'));
|
586 |
}catch(Exception $e){
|
587 |
print_r($e);
|
app/code/community/Avejana/AvejanaRMS/etc/config.xml
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Avejana_AvejanaRMS>
|
5 |
-
<version>
|
6 |
</Avejana_AvejanaRMS>
|
7 |
</modules>
|
8 |
<frontend>
|
@@ -137,6 +137,16 @@
|
|
137 |
</mymodule>
|
138 |
</observers>
|
139 |
</admin_system_config_changed_section_avejanasetting>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
140 |
</events>
|
141 |
</global>
|
142 |
<frontend>
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Avejana_AvejanaRMS>
|
5 |
+
<version>1.0.0</version>
|
6 |
</Avejana_AvejanaRMS>
|
7 |
</modules>
|
8 |
<frontend>
|
137 |
</mymodule>
|
138 |
</observers>
|
139 |
</admin_system_config_changed_section_avejanasetting>
|
140 |
+
|
141 |
+
<catalog_product_load_after>
|
142 |
+
<observers>
|
143 |
+
<disable_product_attribute_after_load>
|
144 |
+
<type>singleton</type>
|
145 |
+
<class>Avejana_AvejanaRMS_Model_Observer</class>
|
146 |
+
<method>lockAttributes</method>
|
147 |
+
</disable_product_attribute_after_load>
|
148 |
+
</observers>
|
149 |
+
</catalog_product_load_after>
|
150 |
</events>
|
151 |
</global>
|
152 |
<frontend>
|
app/code/community/Avejana/AvejanaRMS/etc/system.xml
CHANGED
@@ -70,11 +70,29 @@
|
|
70 |
<show_in_store>1</show_in_store>
|
71 |
<comment>Automatically Generated URL</comment>
|
72 |
</companyurl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
73 |
<logoposition translate="label">
|
74 |
<label>Avejana Logo Position in Review Tab</label>
|
75 |
<frontend_type>select</frontend_type>
|
76 |
<source_model>avejanarms/system_config_source_Diyoptions14924550424</source_model>
|
77 |
-
<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>
|
@@ -84,7 +102,7 @@
|
|
84 |
<label>If Default Tab is not active on website then Enable custom Tabs</label>
|
85 |
<frontend_type>select</frontend_type>
|
86 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
87 |
-
<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>
|
@@ -93,7 +111,7 @@
|
|
93 |
<label>Upload Sales Data in Avejana</label>
|
94 |
<frontend_type>button</frontend_type>
|
95 |
<frontend_model>avejanarms/uploadbutton</frontend_model>
|
96 |
-
<sort_order>
|
97 |
<show_in_default>1</show_in_default>
|
98 |
<show_in_website>1</show_in_website>
|
99 |
<show_in_store>1</show_in_store>
|
70 |
<show_in_store>1</show_in_store>
|
71 |
<comment>Automatically Generated URL</comment>
|
72 |
</companyurl>
|
73 |
+
<showrichsnippet translate="label">
|
74 |
+
<label>Enable Rich Snippet</label>
|
75 |
+
<frontend_type>select</frontend_type>
|
76 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
77 |
+
<sort_order>4</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 |
+
</showrichsnippet>
|
82 |
+
<isshowlogo translate="label">
|
83 |
+
<label>Show Avejana Logo</label>
|
84 |
+
<frontend_type>select</frontend_type>
|
85 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
86 |
+
<sort_order>5</sort_order>
|
87 |
+
<show_in_default>1</show_in_default>
|
88 |
+
<show_in_website>1</show_in_website>
|
89 |
+
<show_in_store>1</show_in_store>
|
90 |
+
</isshowlogo>
|
91 |
<logoposition translate="label">
|
92 |
<label>Avejana Logo Position in Review Tab</label>
|
93 |
<frontend_type>select</frontend_type>
|
94 |
<source_model>avejanarms/system_config_source_Diyoptions14924550424</source_model>
|
95 |
+
<sort_order>6</sort_order>
|
96 |
<show_in_default>1</show_in_default>
|
97 |
<show_in_website>1</show_in_website>
|
98 |
<show_in_store>1</show_in_store>
|
102 |
<label>If Default Tab is not active on website then Enable custom Tabs</label>
|
103 |
<frontend_type>select</frontend_type>
|
104 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
105 |
+
<sort_order>7</sort_order>
|
106 |
<show_in_default>1</show_in_default>
|
107 |
<show_in_website>1</show_in_website>
|
108 |
<show_in_store>1</show_in_store>
|
111 |
<label>Upload Sales Data in Avejana</label>
|
112 |
<frontend_type>button</frontend_type>
|
113 |
<frontend_model>avejanarms/uploadbutton</frontend_model>
|
114 |
+
<sort_order>8</sort_order>
|
115 |
<show_in_default>1</show_in_default>
|
116 |
<show_in_website>1</show_in_website>
|
117 |
<show_in_store>1</show_in_store>
|
app/code/community/Avejana/AvejanaRMS/sql/avejanarms_setup/mysql4-install-0.1.0.php
CHANGED
@@ -16,7 +16,8 @@ CREATE TABLE {$this->getTable('avejana')} (
|
|
16 |
PRIMARY KEY (`avejana_id`)
|
17 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
18 |
|
19 |
-
|
|
|
20 |
//demo
|
21 |
//Mage::getModel('core/url_rewrite')->setId(null);
|
22 |
//demo
|
@@ -34,21 +35,22 @@ $installer1->addAttribute('catalog_product', 'avejana_product_import', array(
|
|
34 |
'label' => 'Avejana Product Imported',
|
35 |
'source' => 'eav/entity_attribute_source_boolean',
|
36 |
'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_GLOBAL,
|
37 |
-
'visible' =>
|
38 |
'required' => 0,
|
39 |
'visible_on_front' => 0,
|
40 |
'is_html_allowed_on_front'=> 0,
|
41 |
'is_configurable' => 0,
|
42 |
'searchable' => 0,
|
43 |
-
'filterable' =>
|
44 |
'comparable' => 0,
|
45 |
'unique' => false,
|
46 |
'user_defined' => false,
|
47 |
'default' => 0,
|
48 |
'is_user_defined' => false,
|
49 |
-
'used_in_product_listing' =>
|
50 |
));
|
51 |
|
|
|
52 |
$installer1->endSetup();
|
53 |
|
54 |
|
@@ -57,4 +59,4 @@ $installer2->startSetup();
|
|
57 |
|
58 |
$installer2->addAttribute("order", "order_exported_to_avejana", array('type'=>'boolean','default'=>0));
|
59 |
$installer2->endSetup();
|
60 |
-
|
16 |
PRIMARY KEY (`avejana_id`)
|
17 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
18 |
|
19 |
+
|
20 |
+
");
|
21 |
//demo
|
22 |
//Mage::getModel('core/url_rewrite')->setId(null);
|
23 |
//demo
|
35 |
'label' => 'Avejana Product Imported',
|
36 |
'source' => 'eav/entity_attribute_source_boolean',
|
37 |
'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_GLOBAL,
|
38 |
+
'visible' => 0,
|
39 |
'required' => 0,
|
40 |
'visible_on_front' => 0,
|
41 |
'is_html_allowed_on_front'=> 0,
|
42 |
'is_configurable' => 0,
|
43 |
'searchable' => 0,
|
44 |
+
'filterable' => 0,
|
45 |
'comparable' => 0,
|
46 |
'unique' => false,
|
47 |
'user_defined' => false,
|
48 |
'default' => 0,
|
49 |
'is_user_defined' => false,
|
50 |
+
'used_in_product_listing' => false
|
51 |
));
|
52 |
|
53 |
+
|
54 |
$installer1->endSetup();
|
55 |
|
56 |
|
59 |
|
60 |
$installer2->addAttribute("order", "order_exported_to_avejana", array('type'=>'boolean','default'=>0));
|
61 |
$installer2->endSetup();
|
62 |
+
|
app/code/community/Avejana/AvejanaRMS/sql/avejanarms_setup/mysql4-upgrade-0.1.0-0.1.1.php
ADDED
@@ -0,0 +1,77 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$installer3= Mage::getResourceModel('catalog/setup', 'catalog_setup');
|
3 |
+
$installer3->startSetup();
|
4 |
+
$installer3->addAttribute('catalog_product', 'avejana_averagerating', array(
|
5 |
+
'group' => 'General',
|
6 |
+
'label' => 'Avejana Average Rating',
|
7 |
+
'input' => 'text',
|
8 |
+
'type' => 'int',
|
9 |
+
'required' => 0,
|
10 |
+
'visible_on_front'=> 1,
|
11 |
+
'filterable' => 0,
|
12 |
+
'searchable' => 0,
|
13 |
+
'comparable' => 0,
|
14 |
+
'user_defined' => 1,
|
15 |
+
'is_configurable' => 1,
|
16 |
+
'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_GLOBAL,
|
17 |
+
'note' => 'Do not enter value in this attribute, this is disabled',
|
18 |
+
'unique' => false,
|
19 |
+
'user_defined' => false,
|
20 |
+
'default' => 0,
|
21 |
+
'is_user_defined' => false,
|
22 |
+
'used_in_product_listing' => true
|
23 |
+
));
|
24 |
+
|
25 |
+
|
26 |
+
$installer3->endSetup();
|
27 |
+
|
28 |
+
|
29 |
+
$installer4= Mage::getResourceModel('catalog/setup', 'catalog_setup');
|
30 |
+
$installer4->startSetup();
|
31 |
+
$installer4->addAttribute('catalog_product', 'avejana_totalreview', array(
|
32 |
+
'group' => 'General',
|
33 |
+
'label' => 'Avejana Total Review',
|
34 |
+
'input' => 'text',
|
35 |
+
'type' => 'int',
|
36 |
+
'required' => 0,
|
37 |
+
'visible_on_front'=> 1,
|
38 |
+
'filterable' => 0,
|
39 |
+
'searchable' => 0,
|
40 |
+
'comparable' => 0,
|
41 |
+
'user_defined' => 1,
|
42 |
+
'is_configurable' => 1,
|
43 |
+
'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_GLOBAL,
|
44 |
+
'note' => 'Do not enter value in this attribute, this is disabled',
|
45 |
+
'unique' => false,
|
46 |
+
'user_defined' => false,
|
47 |
+
'default' => 0,
|
48 |
+
'is_user_defined' => false,
|
49 |
+
'used_in_product_listing' => true
|
50 |
+
));
|
51 |
+
|
52 |
+
$installer4->endSetup();
|
53 |
+
|
54 |
+
$installer5= Mage::getResourceModel('catalog/setup', 'catalog_setup');
|
55 |
+
$installer5->startSetup();
|
56 |
+
$installer5->addAttribute('catalog_product', 'avejana_totalqa', array(
|
57 |
+
'group' => 'General',
|
58 |
+
'label' => 'Avejana Total Question Answer',
|
59 |
+
'input' => 'text',
|
60 |
+
'type' => 'int',
|
61 |
+
'required' => 0,
|
62 |
+
'visible_on_front'=> 1,
|
63 |
+
'filterable' => 0,
|
64 |
+
'searchable' => 0,
|
65 |
+
'comparable' => 0,
|
66 |
+
'user_defined' => 1,
|
67 |
+
'is_configurable' => 1,
|
68 |
+
'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_GLOBAL,
|
69 |
+
'note' => 'Do not enter value in this attribute, this is disabled',
|
70 |
+
'unique' => false,
|
71 |
+
'user_defined' => false,
|
72 |
+
'default' => 0,
|
73 |
+
'is_user_defined' => false,
|
74 |
+
'used_in_product_listing' => true
|
75 |
+
));
|
76 |
+
|
77 |
+
$installer5->endSetup();
|
app/code/community/Avejana/AvejanaRMS/sql/avejanarms_setup/mysql4-upgrade-0.1.1-1.0.0.php
ADDED
@@ -0,0 +1,77 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$installer3= Mage::getResourceModel('catalog/setup', 'catalog_setup');
|
3 |
+
$installer3->startSetup();
|
4 |
+
$installer3->addAttribute('catalog_product', 'avejana_averagerating', array(
|
5 |
+
'group' => 'General',
|
6 |
+
'label' => 'Avejana Average Rating',
|
7 |
+
'input' => 'text',
|
8 |
+
'type' => 'int',
|
9 |
+
'required' => 0,
|
10 |
+
'visible_on_front'=> 1,
|
11 |
+
'filterable' => 0,
|
12 |
+
'searchable' => 0,
|
13 |
+
'comparable' => 0,
|
14 |
+
'user_defined' => 1,
|
15 |
+
'is_configurable' => 1,
|
16 |
+
'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_GLOBAL,
|
17 |
+
'note' => 'Do not enter value in this attribute, this is disabled',
|
18 |
+
'unique' => false,
|
19 |
+
'user_defined' => false,
|
20 |
+
'default' => 0,
|
21 |
+
'is_user_defined' => false,
|
22 |
+
'used_in_product_listing' => true
|
23 |
+
));
|
24 |
+
|
25 |
+
|
26 |
+
$installer3->endSetup();
|
27 |
+
|
28 |
+
|
29 |
+
$installer4= Mage::getResourceModel('catalog/setup', 'catalog_setup');
|
30 |
+
$installer4->startSetup();
|
31 |
+
$installer4->addAttribute('catalog_product', 'avejana_totalreview', array(
|
32 |
+
'group' => 'General',
|
33 |
+
'label' => 'Avejana Total Review',
|
34 |
+
'input' => 'text',
|
35 |
+
'type' => 'int',
|
36 |
+
'required' => 0,
|
37 |
+
'visible_on_front'=> 1,
|
38 |
+
'filterable' => 0,
|
39 |
+
'searchable' => 0,
|
40 |
+
'comparable' => 0,
|
41 |
+
'user_defined' => 1,
|
42 |
+
'is_configurable' => 1,
|
43 |
+
'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_GLOBAL,
|
44 |
+
'note' => 'Do not enter value in this attribute, this is disabled',
|
45 |
+
'unique' => false,
|
46 |
+
'user_defined' => false,
|
47 |
+
'default' => 0,
|
48 |
+
'is_user_defined' => false,
|
49 |
+
'used_in_product_listing' => true
|
50 |
+
));
|
51 |
+
|
52 |
+
$installer4->endSetup();
|
53 |
+
|
54 |
+
$installer5= Mage::getResourceModel('catalog/setup', 'catalog_setup');
|
55 |
+
$installer5->startSetup();
|
56 |
+
$installer5->addAttribute('catalog_product', 'avejana_totalqa', array(
|
57 |
+
'group' => 'General',
|
58 |
+
'label' => 'Avejana Total Question Answer',
|
59 |
+
'input' => 'text',
|
60 |
+
'type' => 'int',
|
61 |
+
'required' => 0,
|
62 |
+
'visible_on_front'=> 1,
|
63 |
+
'filterable' => 0,
|
64 |
+
'searchable' => 0,
|
65 |
+
'comparable' => 0,
|
66 |
+
'user_defined' => 1,
|
67 |
+
'is_configurable' => 1,
|
68 |
+
'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_GLOBAL,
|
69 |
+
'note' => 'Do not enter value in this attribute, this is disabled',
|
70 |
+
'unique' => false,
|
71 |
+
'user_defined' => false,
|
72 |
+
'default' => 0,
|
73 |
+
'is_user_defined' => false,
|
74 |
+
'used_in_product_listing' => true
|
75 |
+
));
|
76 |
+
|
77 |
+
$installer5->endSetup();
|
app/design/frontend/base/default/layout/avejanarms.xml
CHANGED
@@ -34,13 +34,13 @@
|
|
34 |
<reference name="product.info.tabs">
|
35 |
<action method="addTab" ifconfig="avejanasetting/avejanaconfiguration/active" translate="title" module="avejanarms">
|
36 |
<alias>avejanareview</alias>
|
37 |
-
<title>
|
38 |
<block>avejanarms/index</block>
|
39 |
<template>avejanarms/review.phtml</template>
|
40 |
</action>
|
41 |
<action method="addTab" ifconfig="avejanasetting/avejanaconfiguration/active" translate="title" module="avejanarms">
|
42 |
<alias>avajanaqa</alias>
|
43 |
-
<title>
|
44 |
<block>avejanarms/index</block>
|
45 |
<template>avejanarms/qa.phtml</template>
|
46 |
</action>
|
34 |
<reference name="product.info.tabs">
|
35 |
<action method="addTab" ifconfig="avejanasetting/avejanaconfiguration/active" translate="title" module="avejanarms">
|
36 |
<alias>avejanareview</alias>
|
37 |
+
<title>Reviews</title>
|
38 |
<block>avejanarms/index</block>
|
39 |
<template>avejanarms/review.phtml</template>
|
40 |
</action>
|
41 |
<action method="addTab" ifconfig="avejanasetting/avejanaconfiguration/active" translate="title" module="avejanarms">
|
42 |
<alias>avajanaqa</alias>
|
43 |
+
<title>Q&A</title>
|
44 |
<block>avejanarms/index</block>
|
45 |
<template>avejanarms/qa.phtml</template>
|
46 |
</action>
|
app/design/frontend/base/default/template/avejanarms/custom-tabs.phtml
CHANGED
@@ -2,10 +2,10 @@
|
|
2 |
$customtabenable = Mage::getStoreConfig('avejanasetting/avejanaconfiguration/customtab');
|
3 |
$avejanamodule = Mage::getStoreConfig('avejanasetting/avejanaconfiguration/active');
|
4 |
if(($customtabenable==1) && ($avejanamodule==1)){ //check if custom tab is enabled ?>
|
5 |
-
<div class="avejana-tabs">
|
6 |
<ul class="avejana-tab-links">
|
7 |
-
<li class="active"><
|
8 |
-
<li><
|
9 |
</ul>
|
10 |
|
11 |
<div class="avejana-avejana-tab-content">
|
@@ -22,7 +22,7 @@ if(($customtabenable==1) && ($avejanamodule==1)){ //check if custom tab is enab
|
|
22 |
|
23 |
<script>
|
24 |
jQuery(document).ready(function() {
|
25 |
-
jQuery('.avejana-tabs .avejana-tab-links
|
26 |
var currentAttrValue = jQuery(this).attr('href');
|
27 |
|
28 |
// Show/Hide avejana-tabs
|
@@ -33,6 +33,24 @@ if(($customtabenable==1) && ($avejanamodule==1)){ //check if custom tab is enab
|
|
33 |
|
34 |
e.preventDefault();
|
35 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
36 |
});
|
37 |
</script>
|
38 |
|
2 |
$customtabenable = Mage::getStoreConfig('avejanasetting/avejanaconfiguration/customtab');
|
3 |
$avejanamodule = Mage::getStoreConfig('avejanasetting/avejanaconfiguration/active');
|
4 |
if(($customtabenable==1) && ($avejanamodule==1)){ //check if custom tab is enabled ?>
|
5 |
+
<div id="avejana-tabs" class="avejana-tabs">
|
6 |
<ul class="avejana-tab-links">
|
7 |
+
<li class="custab reviewclick first active"><span href="#avejana-tab1">Reviews</span></li>
|
8 |
+
<li class="custab qaclick"><span href="#avejana-tab2">Q&A</span></li>
|
9 |
</ul>
|
10 |
|
11 |
<div class="avejana-avejana-tab-content">
|
22 |
|
23 |
<script>
|
24 |
jQuery(document).ready(function() {
|
25 |
+
jQuery('.avejana-tabs .avejana-tab-links span').on('click', function(e) {
|
26 |
var currentAttrValue = jQuery(this).attr('href');
|
27 |
|
28 |
// Show/Hide avejana-tabs
|
33 |
|
34 |
e.preventDefault();
|
35 |
});
|
36 |
+
|
37 |
+
jQuery(document).on('click',".qaformopen", function(event){
|
38 |
+
jQuery(".qaclick span").click();
|
39 |
+
|
40 |
+
jQuery('html, body').animate({
|
41 |
+
scrollTop: jQuery(".avejana-tabs").offset().top-100
|
42 |
+
}, 1000);
|
43 |
+
});
|
44 |
+
|
45 |
+
jQuery(document).on('click',".reviewformopen", function(event){
|
46 |
+
|
47 |
+
jQuery(".reviewclick span").click();
|
48 |
+
jQuery('html, body').animate({
|
49 |
+
scrollTop: jQuery(".avejana-tabs").offset().top-100
|
50 |
+
}, 1000);
|
51 |
+
|
52 |
+
});
|
53 |
+
|
54 |
});
|
55 |
</script>
|
56 |
|
app/design/frontend/base/default/template/avejanarms/product/price.phtml
CHANGED
@@ -463,13 +463,11 @@ $_specialPriceStoreLabel = $this->getProductAttribute('special_price')->getStore
|
|
463 |
<?php endif; /* if (!$_product->isGrouped()): */ //echo
|
464 |
$avejanamodule = Mage::getStoreConfig('avejanasetting/avejanaconfiguration/active');
|
465 |
if($avejanamodule==1){ //check if module is enabled
|
466 |
-
|
467 |
-
$
|
468 |
-
|
469 |
-
|
470 |
-
|
471 |
-
<div class="stars star-ratings-sprite"><span style="width:<?php echo $reviewandrating['avgrating'] ?>%" class="star-ratings-sprite-rating"></span></div>
|
472 |
-
<p class="totalreviews"><?php echo $reviewandrating['reviewcount'] ?> Review<?php if($reviewandrating['reviewcount']>1){?>(s)<?php } ?></p>
|
473 |
<?php }
|
474 |
-
|
475 |
}?>
|
463 |
<?php endif; /* if (!$_product->isGrouped()): */ //echo
|
464 |
$avejanamodule = Mage::getStoreConfig('avejanasetting/avejanaconfiguration/active');
|
465 |
if($avejanamodule==1){ //check if module is enabled
|
466 |
+
$reviewcount = $_product->getAvejanaTotalreview();
|
467 |
+
$avgrating = $_product->getAvejanaAveragerating();
|
468 |
+
if($reviewcount>0){?>
|
469 |
+
<div class="stars star-ratings-sprite"><span style="width:<?php echo $avgrating ?>%" class="star-ratings-sprite-rating"></span></div>
|
470 |
+
<p class="totalreviews"><?php echo $reviewcount ?> Review<?php if($reviewcount>1){?>(s)<?php } ?></p>
|
|
|
|
|
471 |
<?php }
|
472 |
+
|
473 |
}?>
|
app/design/frontend/base/default/template/avejanarms/qa.phtml
CHANGED
@@ -52,7 +52,7 @@
|
|
52 |
</div>
|
53 |
</form>
|
54 |
</div>
|
55 |
-
<div
|
56 |
<?php
|
57 |
if(count($avejanaQAlist)>0){
|
58 |
$i=0; foreach($avejanaQAlist as $_qa){
|
@@ -93,10 +93,23 @@
|
|
93 |
}
|
94 |
if($i>0){?>
|
95 |
<script>
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
100 |
}
|
101 |
});
|
102 |
})
|
@@ -106,6 +119,7 @@
|
|
106 |
</div>
|
107 |
<script type="text/javascript">
|
108 |
//<![CDATA[
|
|
|
109 |
var ravejanaeview = new VarienForm('avejanaqa', true);
|
110 |
//]]>
|
111 |
jQuery('.qaformarea').css("display","none");
|
52 |
</div>
|
53 |
</form>
|
54 |
</div>
|
55 |
+
<div id="product-q-a">
|
56 |
<?php
|
57 |
if(count($avejanaQAlist)>0){
|
58 |
$i=0; foreach($avejanaQAlist as $_qa){
|
93 |
}
|
94 |
if($i>0){?>
|
95 |
<script>
|
96 |
+
|
97 |
+
jQuery(document).ready(function(){
|
98 |
+
jQuery(".toggle-tabs li").each(function(index) {
|
99 |
+
if(jQuery(this).find("span").text() == "Q&A"){
|
100 |
+
jQuery(this).find("span").html("Q&A "+" (<?php echo $i;?>)");
|
101 |
+
}
|
102 |
+
});
|
103 |
+
|
104 |
+
jQuery(".product-tabs li").each(function(index) {
|
105 |
+
if(jQuery(this).find("a").text() == "Q&A"){
|
106 |
+
jQuery(this).find("a").html("Q&A "+" (<?php echo $i;?>)");
|
107 |
+
}
|
108 |
+
});
|
109 |
+
|
110 |
+
jQuery(".avejana-tab-links li").each(function(index) {
|
111 |
+
if(jQuery(this).find("span").text() == "Q&A"){
|
112 |
+
jQuery(this).find("span").html("Q&A "+" (<?php echo $i;?>)");
|
113 |
}
|
114 |
});
|
115 |
})
|
119 |
</div>
|
120 |
<script type="text/javascript">
|
121 |
//<![CDATA[
|
122 |
+
|
123 |
var ravejanaeview = new VarienForm('avejanaqa', true);
|
124 |
//]]>
|
125 |
jQuery('.qaformarea').css("display","none");
|
app/design/frontend/base/default/template/avejanarms/rating.phtml
CHANGED
@@ -1,75 +1,107 @@
|
|
1 |
<?php
|
2 |
$avejanamodule = Mage::getStoreConfig('avejanasetting/avejanaconfiguration/active');
|
3 |
-
if($avejanamodule==1){
|
4 |
-
$current_product =
|
5 |
-
$
|
6 |
-
$
|
7 |
-
$qa
|
8 |
-
if(count($QAlisting)>0){
|
9 |
-
foreach($QAlisting as $_qa){
|
10 |
-
if($_qa->Answer != ''){
|
11 |
-
$qa=$qa+1;
|
12 |
-
}
|
13 |
-
}
|
14 |
-
}
|
15 |
|
16 |
-
$
|
17 |
-
if (!empty($avgratingandcount)){
|
18 |
-
if($avgratingandcount['reviewcount']>0){?>
|
19 |
|
20 |
<script>
|
21 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
|
23 |
-
|
24 |
-
if(
|
25 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
}
|
27 |
});
|
28 |
})
|
29 |
</script>
|
30 |
-
<div class="
|
31 |
|
32 |
-
<div class="stars star-ratings-sprite"><span style="width:<?php echo $
|
33 |
<p class="rating-links">
|
34 |
-
<a href="#review-form" class="reviewformopen" id="review-form"><?php echo $this->__('%d Review(s)', $
|
35 |
|
36 |
<span class="separator">|</span>
|
37 |
-
<a href="#question-form" class="qaformopen" id="question-form"><?php if($qa>0){echo "Q&A($qa)";}else{ echo 'Ask a Question';} ?></a>
|
38 |
</p>
|
39 |
</div>
|
40 |
<?php
|
41 |
-
|
42 |
}else{?>
|
43 |
<p class="no-rating">
|
44 |
<a href="#review-form" class="reviewformopen" id="review-form"><?php echo $this->__('Be the first to review this product') ?></a>
|
45 |
<span class="separator">|</span>
|
46 |
-
<a href="#question-form" class="qaformopen" id="question-form"><?php if($qa>0){echo "Q&A($qa)";}else{ echo 'Ask a Question';} ?></a>
|
47 |
</p>
|
48 |
<?php } ?>
|
49 |
|
50 |
|
51 |
<script type="text/javascript">
|
52 |
//<![CDATA[
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
|
|
|
|
|
|
61 |
});
|
62 |
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
|
|
|
|
71 |
});
|
72 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
73 |
|
74 |
|
75 |
|
1 |
<?php
|
2 |
$avejanamodule = Mage::getStoreConfig('avejanasetting/avejanaconfiguration/active');
|
3 |
+
if($avejanamodule==1){ //check if module is enabled
|
4 |
+
$current_product = Mage::registry('current_product');
|
5 |
+
$reviewcount = $current_product->getAvejanaTotalreview();
|
6 |
+
$avgrating = $current_product->getAvejanaAveragerating();
|
7 |
+
$qa = $current_product->getAvejanaTotalqa();;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
|
9 |
+
if($reviewcount>0){?>
|
|
|
|
|
10 |
|
11 |
<script>
|
12 |
+
|
13 |
+
jQuery(document).ready(function(){
|
14 |
+
|
15 |
+
jQuery(".toggle-tabs li").each(function(index) {
|
16 |
+
if(jQuery(this).find("span").text() == "Reviews"){
|
17 |
+
jQuery(this).find("span").html("Reviews "+" (<?php echo $reviewcount;?>)");
|
18 |
+
}
|
19 |
+
});
|
20 |
|
21 |
+
jQuery(".product-tabs li").each(function(index) {
|
22 |
+
if(jQuery(this).find("a").text() == "Reviews"){
|
23 |
+
jQuery(this).find("a").html("Reviews "+" (<?php echo $reviewcount;?>)");
|
24 |
+
}
|
25 |
+
});
|
26 |
+
|
27 |
+
jQuery(".avejana-tab-links li").each(function(index) {
|
28 |
+
if(jQuery(this).find("span").text() == "Reviews"){
|
29 |
+
jQuery(this).find("span").html("Reviews "+" (<?php echo $reviewcount;?>)");
|
30 |
}
|
31 |
});
|
32 |
})
|
33 |
</script>
|
34 |
+
<div class="avratings">
|
35 |
|
36 |
+
<div class="stars star-ratings-sprite"><span style="width:<?php echo $avgrating ?>%" class="star-ratings-sprite-rating"></span></div>
|
37 |
<p class="rating-links">
|
38 |
+
<a href="#review-form" class="reviewformopen" id="review-form"><?php echo $this->__('%d Review(s)', $reviewcount)?></a>
|
39 |
|
40 |
<span class="separator">|</span>
|
41 |
+
<a href="#question-form" class="qaformopen" id="question-form"><?php if($qa>0){echo "Q&A($qa)";}else{ echo $this->__('Ask a Question');} ?></a>
|
42 |
</p>
|
43 |
</div>
|
44 |
<?php
|
45 |
+
|
46 |
}else{?>
|
47 |
<p class="no-rating">
|
48 |
<a href="#review-form" class="reviewformopen" id="review-form"><?php echo $this->__('Be the first to review this product') ?></a>
|
49 |
<span class="separator">|</span>
|
50 |
+
<a href="#question-form" class="qaformopen" id="question-form"><?php if($qa>0){echo "Q&A($qa)";}else{ echo $this->__('Ask a Question');} ?></a>
|
51 |
</p>
|
52 |
<?php } ?>
|
53 |
|
54 |
|
55 |
<script type="text/javascript">
|
56 |
//<![CDATA[
|
57 |
+
|
58 |
+
jQuery(document).on('click',".reviewformopen", function(event){
|
59 |
+
jQuery(".collateral-tabs .tab-container").removeClass("current");
|
60 |
+
jQuery('#review-tab-open').closest('dd').addClass("current");
|
61 |
+
jQuery('.toggle-tabs li').removeClass("current");
|
62 |
+
jQuery(".toggle-tabs li:contains('Reviews')").addClass("current");
|
63 |
+
if(jQuery('.collateral-tabs').length){
|
64 |
+
jQuery('html, body').animate({
|
65 |
+
scrollTop: jQuery(".collateral-tabs").offset().top-100
|
66 |
+
}, 1000);
|
67 |
+
}
|
68 |
});
|
69 |
|
70 |
+
jQuery(document).on('click',".qaformopen", function(event){
|
71 |
+
jQuery(".collateral-tabs .tab-container").removeClass("current");
|
72 |
+
jQuery('#qa-tab-open').closest('dd').addClass("current");
|
73 |
+
jQuery('.toggle-tabs li').removeClass("current");
|
74 |
+
jQuery(".toggle-tabs li:contains('Q&A')").addClass("current");
|
75 |
+
if(jQuery('.collateral-tabs').length){
|
76 |
+
jQuery('html, body').animate({
|
77 |
+
scrollTop: jQuery(".collateral-tabs").offset().top-100
|
78 |
+
}, 1000);
|
79 |
+
}
|
80 |
});
|
81 |
|
82 |
+
jQuery(document).on('click',".reviewformopen", function(event){
|
83 |
+
jQuery(".product-tabs-content").css("display","none");
|
84 |
+
jQuery('.product-collateral .product-tabs li').removeClass("active");
|
85 |
+
jQuery('#product_tabs_avejanareview').addClass("active");
|
86 |
+
jQuery("#product_tabs_avejanareview_contents").css("display","block");
|
87 |
+
if(jQuery('.product-collateral').length){
|
88 |
+
jQuery('html, body').animate({
|
89 |
+
scrollTop: jQuery(".product-collateral").offset().top-100
|
90 |
+
}, 1000);
|
91 |
+
}
|
92 |
+
});
|
93 |
+
|
94 |
+
jQuery(document).on('click',".qaformopen", function(event){
|
95 |
+
jQuery(".product-tabs-content").css("display","none");
|
96 |
+
jQuery('.product-collateral .product-tabs li').removeClass("active");
|
97 |
+
jQuery('#product_tabs_avajanaqa').addClass("active");
|
98 |
+
jQuery("#product_tabs_avajanaqa_contents").css("display","block");
|
99 |
+
if(jQuery('.product-collateral').length){
|
100 |
+
jQuery('html, body').animate({
|
101 |
+
scrollTop: jQuery(".product-collateral").offset().top-100
|
102 |
+
}, 1000);
|
103 |
+
}
|
104 |
+
});
|
105 |
|
106 |
|
107 |
|
app/design/frontend/base/default/template/avejanarms/review.phtml
CHANGED
@@ -2,13 +2,19 @@
|
|
2 |
<?php
|
3 |
$moduledir=Mage::getModuleDir('controllers', 'Avejana_AvejanaRMS');
|
4 |
include_once($moduledir.'/PageLister-1.2.php');
|
5 |
-
|
|
|
6 |
$current_product = Mage::registry('current_product');
|
7 |
$avejanareviewes = $this->getAvejanaReviesListing($current_product->getId());
|
|
|
|
|
|
|
|
|
|
|
8 |
|
9 |
-
$pageviews
|
10 |
-
$is_logo_show = Mage::
|
11 |
-
$is_rich_snippet_show = Mage::
|
12 |
//echo $userurl = Mage::helper('avejanarms')->getUsersnurl();
|
13 |
|
14 |
if($is_rich_snippet_show==1){
|
@@ -26,7 +32,7 @@
|
|
26 |
|
27 |
<?php if($is_logo_show==1){?>
|
28 |
<div class="avejana-review-reply aveja-logo-holder <?php echo $showlogo_position; ?>">
|
29 |
-
<div class="avejana_link" ><a target="_blank" href="https://avejana.com/"
|
30 |
</div>
|
31 |
<?php } ?>
|
32 |
<div class="avejana_review_section">
|
@@ -34,29 +40,26 @@
|
|
34 |
<a class="review_form_display" href="javascript:void(0)"><?php echo Mage::helper('avejanarms')->__('Write a Review') ?></a>
|
35 |
|
36 |
<?php
|
37 |
-
|
38 |
-
if (!empty($averageratingandcount)){
|
39 |
-
if($averageratingandcount['reviewcount']>0){
|
40 |
?>
|
41 |
-
|
42 |
-
|
43 |
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
|
49 |
-
<?php }
|
50 |
-
}?>
|
51 |
|
52 |
</div>
|
53 |
<div class="avejanareviewform avejana-content">
|
54 |
-
<form action="<?php echo $this->getUrl('avejanarms/index/reviewpost'); ?>" id="
|
55 |
<div class="fieldarea">
|
56 |
<input type="hidden" name="product_id" value="<?php echo $current_product->getId();?>"/>
|
57 |
<ul class="av-form-list">
|
58 |
<li class="avratings">
|
59 |
-
<label for="name" class="required ratingli"><em>*</em><?php echo Mage::helper('avejanarms')->__('Your Rating') ?></label>
|
60 |
|
61 |
<span class="starRating">
|
62 |
<input id="rating5" type="radio" name="rating" value="5">
|
@@ -208,9 +211,9 @@
|
|
208 |
</div>
|
209 |
</div>
|
210 |
<script type="text/javascript">
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
jQuery('.avejanareviewform').css("display","none");
|
215 |
jQuery( ".review_form_display" ).click(function() {
|
216 |
jQuery('.avejanareviewform').toggle();
|
2 |
<?php
|
3 |
$moduledir=Mage::getModuleDir('controllers', 'Avejana_AvejanaRMS');
|
4 |
include_once($moduledir.'/PageLister-1.2.php');
|
5 |
+
$avgrating = 0;
|
6 |
+
$totalreview = 0;
|
7 |
$current_product = Mage::registry('current_product');
|
8 |
$avejanareviewes = $this->getAvejanaReviesListing($current_product->getId());
|
9 |
+
if($avejanareviewes){
|
10 |
+
$avgrating = $avejanareviewes['avgrating'];
|
11 |
+
$totalreview = $avejanareviewes['reviewcount'];
|
12 |
+
$avejanareviewes= $avejanareviewes['reviews'];
|
13 |
+
}
|
14 |
|
15 |
+
$pageviews = Mage::helper('avejanarms')->getPageView($current_product->getId());
|
16 |
+
$is_logo_show = Mage::getStoreConfig('avejanasetting/avejanaconfiguration/isshowlogo');
|
17 |
+
$is_rich_snippet_show = Mage::getStoreConfig('avejanasetting/avejanaconfiguration/showrichsnippet');
|
18 |
//echo $userurl = Mage::helper('avejanarms')->getUsersnurl();
|
19 |
|
20 |
if($is_rich_snippet_show==1){
|
32 |
|
33 |
<?php if($is_logo_show==1){?>
|
34 |
<div class="avejana-review-reply aveja-logo-holder <?php echo $showlogo_position; ?>">
|
35 |
+
<div class="avejana_link" ><a target="_blank" href="https://avejana.com/"><?php echo Mage::helper('avejanarms')->__('Powered By');?></a></div><div class="awejana-logo" ><a target="_blank" href="https://avejana.com/"><img src="<?php echo $reivew_logo_url; ?>" height="21px" alt="" class="avejana-logo"></a></div>
|
36 |
</div>
|
37 |
<?php } ?>
|
38 |
<div class="avejana_review_section">
|
40 |
<a class="review_form_display" href="javascript:void(0)"><?php echo Mage::helper('avejanarms')->__('Write a Review') ?></a>
|
41 |
|
42 |
<?php
|
43 |
+
if($totalreview>0){
|
|
|
|
|
44 |
?>
|
45 |
+
<div class="pull-right">
|
46 |
+
<span class="review-total"><strong style="line-height: 30px;"><?php echo $totalreview.' '.Mage::helper('avejanarms')->__('review(s)');?></strong></span>
|
47 |
|
48 |
+
<div class="stars star-ratings-sprite">
|
49 |
+
<span style="width:<?php echo $avgrating; ?>%" class="star-ratings-sprite-rating"></span>
|
50 |
+
</div>
|
51 |
+
</div>
|
52 |
|
53 |
+
<?php }?>
|
|
|
54 |
|
55 |
</div>
|
56 |
<div class="avejanareviewform avejana-content">
|
57 |
+
<form action="<?php echo $this->getUrl('avejanarms/index/reviewpost'); ?>" id="av_ravejanaeview" method="post" class="scaffold-form">
|
58 |
<div class="fieldarea">
|
59 |
<input type="hidden" name="product_id" value="<?php echo $current_product->getId();?>"/>
|
60 |
<ul class="av-form-list">
|
61 |
<li class="avratings">
|
62 |
+
<label for="name" class="required ratingli lilabel"><em>*</em><?php echo Mage::helper('avejanarms')->__('Your Rating') ?></label>
|
63 |
|
64 |
<span class="starRating">
|
65 |
<input id="rating5" type="radio" name="rating" value="5">
|
211 |
</div>
|
212 |
</div>
|
213 |
<script type="text/javascript">
|
214 |
+
|
215 |
+
var av_ravejanaeview = new VarienForm('av_ravejanaeview', true);
|
216 |
+
jQuery(this).scrollTop(0);
|
217 |
jQuery('.avejanareviewform').css("display","none");
|
218 |
jQuery( ".review_form_display" ).click(function() {
|
219 |
jQuery('.avejanareviewform').toggle();
|
app/etc/modules/Avejana_AvejanaRMS.xml
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
<Avejana_AvejanaRMS>
|
5 |
<active>true</active>
|
6 |
<codePool>community</codePool>
|
7 |
-
<version>0.1.
|
8 |
</Avejana_AvejanaRMS>
|
9 |
</modules>
|
10 |
</config>
|
4 |
<Avejana_AvejanaRMS>
|
5 |
<active>true</active>
|
6 |
<codePool>community</codePool>
|
7 |
+
<version>0.1.1</version>
|
8 |
</Avejana_AvejanaRMS>
|
9 |
</modules>
|
10 |
</config>
|
media/Avejana/avattr.php
ADDED
@@ -0,0 +1,83 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
require_once('../../app/Mage.php'); //Path to Magento
|
3 |
+
umask(0);
|
4 |
+
Mage::app();
|
5 |
+
|
6 |
+
$installer3= Mage::getResourceModel('catalog/setup', 'catalog_setup');
|
7 |
+
$installer3->startSetup();
|
8 |
+
$installer3->addAttribute('catalog_product', 'avejana_averagerating', array(
|
9 |
+
'group' => 'General',
|
10 |
+
'label' => 'Avejana Average Rating',
|
11 |
+
'input' => 'text',
|
12 |
+
'type' => 'int',
|
13 |
+
'required' => 0,
|
14 |
+
'visible_on_front'=> 1,
|
15 |
+
'filterable' => 0,
|
16 |
+
'searchable' => 0,
|
17 |
+
'comparable' => 0,
|
18 |
+
'user_defined' => 1,
|
19 |
+
'is_configurable' => 1,
|
20 |
+
'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_GLOBAL,
|
21 |
+
'note' => 'Do not enter value in this attribute, this is disabled',
|
22 |
+
'unique' => false,
|
23 |
+
'user_defined' => false,
|
24 |
+
'default' => 0,
|
25 |
+
'is_user_defined' => false,
|
26 |
+
'used_in_product_listing' => true
|
27 |
+
));
|
28 |
+
|
29 |
+
|
30 |
+
$installer3->endSetup();
|
31 |
+
|
32 |
+
|
33 |
+
$installer4= Mage::getResourceModel('catalog/setup', 'catalog_setup');
|
34 |
+
$installer4->startSetup();
|
35 |
+
$installer4->addAttribute('catalog_product', 'avejana_totalreview', array(
|
36 |
+
'group' => 'General',
|
37 |
+
'label' => 'Avejana Total Review',
|
38 |
+
'input' => 'text',
|
39 |
+
'type' => 'int',
|
40 |
+
'required' => 0,
|
41 |
+
'visible_on_front'=> 1,
|
42 |
+
'filterable' => 0,
|
43 |
+
'searchable' => 0,
|
44 |
+
'comparable' => 0,
|
45 |
+
'user_defined' => 1,
|
46 |
+
'is_configurable' => 1,
|
47 |
+
'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_GLOBAL,
|
48 |
+
'note' => 'Do not enter value in this attribute, this is disabled',
|
49 |
+
'unique' => false,
|
50 |
+
'user_defined' => false,
|
51 |
+
'default' => 0,
|
52 |
+
'is_user_defined' => false,
|
53 |
+
'used_in_product_listing' => true
|
54 |
+
));
|
55 |
+
|
56 |
+
$installer4->endSetup();
|
57 |
+
|
58 |
+
$installer5= Mage::getResourceModel('catalog/setup', 'catalog_setup');
|
59 |
+
$installer5->startSetup();
|
60 |
+
$installer5->addAttribute('catalog_product', 'avejana_totalqa', array(
|
61 |
+
'group' => 'General',
|
62 |
+
'label' => 'Avejana Total Question Answer',
|
63 |
+
'input' => 'text',
|
64 |
+
'type' => 'int',
|
65 |
+
'required' => 0,
|
66 |
+
'visible_on_front'=> 1,
|
67 |
+
'filterable' => 0,
|
68 |
+
'searchable' => 0,
|
69 |
+
'comparable' => 0,
|
70 |
+
'user_defined' => 1,
|
71 |
+
'is_configurable' => 1,
|
72 |
+
'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_GLOBAL,
|
73 |
+
'note' => 'Do not enter value in this attribute, this is disabled',
|
74 |
+
'unique' => false,
|
75 |
+
'user_defined' => false,
|
76 |
+
'default' => 0,
|
77 |
+
'is_user_defined' => false,
|
78 |
+
'used_in_product_listing' => true
|
79 |
+
));
|
80 |
+
|
81 |
+
$installer5->endSetup();
|
82 |
+
echo 'done';
|
83 |
+
?>
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Avejana_ReviewAndQA</name>
|
4 |
-
<version>1.1.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
@@ -51,9 +51,9 @@ See aveJana’s Premium Pricing here. <p><strong><a href="ht
|
|
51 |
</description>
|
52 |
<notes>Avejana Custom Review Rating and Question Answer API</notes>
|
53 |
<authors><author><name>aveJanaReviews</name><user>aveJanaReviews</user><email>amit.sharma@avejana.com</email></author></authors>
|
54 |
-
<date>2017-05-
|
55 |
-
<time>
|
56 |
-
<contents><target name="magecommunity"><dir name="Avejana"><dir><dir name="AvejanaRMS"><dir name="Block"><dir name="Catalog"><dir name="Product"><file name="List.php" hash="ffecdf544c9e583cb77132fdc5a389a9"/><dir name="View"><file name="Markup.php" hash="09429b1f557e3baf8923554e26f173d1"/></dir><file name="View.php" hash="7a70933b32c4c69ba99fdde6d60e5c96"/></dir></dir><file name="Helper.php" hash="
|
57 |
<compatible/>
|
58 |
<dependencies><required><php><min>5.3.0</min><max>7.1.4</max></php></required></dependencies>
|
59 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Avejana_ReviewAndQA</name>
|
4 |
+
<version>1.1.4</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
51 |
</description>
|
52 |
<notes>Avejana Custom Review Rating and Question Answer API</notes>
|
53 |
<authors><author><name>aveJanaReviews</name><user>aveJanaReviews</user><email>amit.sharma@avejana.com</email></author></authors>
|
54 |
+
<date>2017-05-25</date>
|
55 |
+
<time>19:02:52</time>
|
56 |
+
<contents><target name="magecommunity"><dir name="Avejana"><dir><dir name="AvejanaRMS"><dir name="Block"><dir name="Catalog"><dir name="Product"><file name="List.php" hash="ffecdf544c9e583cb77132fdc5a389a9"/><dir name="View"><file name="Markup.php" hash="09429b1f557e3baf8923554e26f173d1"/></dir><file name="View.php" hash="7a70933b32c4c69ba99fdde6d60e5c96"/></dir></dir><file name="Helper.php" hash="18193765fbde3c251f45c7f32c73a70c"/><file name="Index.php" hash="600de027c680e4814ca398d9dd4653f9"/><dir name="Product"><file name="View.php" hash="7bfb20630849f60e21a431b1d8650010"/></dir><dir name="System"><dir name="Config"><file name="Extension.php" hash="f5514aa4e8f954a798090ef50455fdda"/></dir></dir><file name="Uploadbutton.php" hash="19acaf8b5b5d3d81fe6f1b218f00d9bf"/></dir><dir name="Helper"><file name="Data.php" hash="41bfe50be89f21ff07e1ac984953b5c7"/></dir><dir name="Model"><file name="Avejana.php" hash="5968d2088d61c885fd7fbe507679f17c"/><dir name="Mysql4"><dir name="Avejana"><file name="Collection.php" hash="88e57f0fc898d9e1a1aa62852dea737d"/></dir><file name="Avejana.php" hash="2b356b3bdc7bd785f75e1e4c80847a18"/></dir><file name="Observer.php" hash="a8b5c1436ef1eed5934fe671cd178f2d"/><dir name="System"><dir name="Config"><dir name="Source"><file name="Diyoptions14924550424.php" hash="c1cd5237951f67fcbeb4b5655219e5b6"/></dir></dir></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="IndexController.php" hash="e163ae9c62414054c0c796cbd6bc4000"/></dir><file name="IndexController.php" hash="12cb22d8b2c41ebe85d90c71a1349494"/><file name="PageLister-1.2.php" hash="ca5e1531313bc3147150d77a15bbb29e"/><file name="QaController.php" hash="55741a468611f28bc9654d66278bf867"/></dir><dir name="etc"><file name="adminhtml.xml" hash="4035421906df30d98a745936bf7290bd"/><file name="config.xml" hash="bd572196b451d1650c5a4b13c99c80a9"/><file name="system.xml" hash="6d4217da9911e7de7314f4d283013c25"/></dir><dir name="sql"><dir name="avejanarms_setup"><file name="mysql4-install-0.1.0.php" hash="1506faa5ab22af363310c0e950e2a4bb"/><file name="mysql4-upgrade-0.1.0-0.1.1.php" hash="cf2d7a20f9fc976a3fcf53db19c8646f"/><file name="mysql4-upgrade-0.1.1-1.0.0.php" hash="cf2d7a20f9fc976a3fcf53db19c8646f"/></dir></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="avejanarms.xml" hash="c2ec8aeae29a7cc592c8aa3bf03e4c82"/></dir><dir name="template"><dir name="avejanarms"><dir><dir name="catalog"><dir name="product"><dir name="view"><file name="markup.phtml" hash="7cff2a3e75257870905afb215018b676"/></dir></dir></dir><dir name="product"><dir name="helper"><file name="summary.phtml" hash="595dc888245eead6f0dec6009d09ea8b"/><file name="summary_short.phtml" hash="8e9804c3fdca9e9aba91f1f6c2d8a693"/></dir><file name="price.phtml" hash="50e2531686183487e863f48f51ba6fe7"/></dir></dir><file name="custom-tabs.phtml" hash="00d986b1a3661baf6ff612688ac8450a"/><file name="qa.phtml" hash="95cda798915332892126a6a96f75c86a"/><file name="rating.phtml" hash="700b089350d86b28e770cfd9a123c0fb"/><file name="review.phtml" hash="4236a6595b48f71b63554e28fcd75345"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Avejana_AvejanaRMS.xml" hash="2fbfdf9c063ce34dfe19a1e59a3e62fc"/></dir></target><target name="magemedia"><dir name="Avejana"><file name="avattr.php" hash="e96fe1c44dd26fb68750eb5638009589"/><file name="avejana-new-logo.png" hash="097dc9a476edc88c5166485d9d4e8163"/><file name="logo.png" hash="150af541646eb13e8903604eabebd373"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="images"><dir name="avejana"><file name="old_star-rating-sprite.png" hash="c9be435a03a20c05f5f5e4b3a742c625"/><file name="star-off.svg" hash="421b1b9fbcc263518e5d99ebac79cb03"/><file name="star-on.svg" hash="e7e383e9a2cc2efedb008d90ff5606fa"/><file name="star-rating-sprite.png" hash="12e12d2cb5aa5725b8f44710774af686"/><file name="stars.png" hash="96cb1ff67153405581fe6d3ec112e5ae"/></dir></dir><dir name="css"><dir name="avejana"><file name="avejana.css" hash="34eff758f091f8967a6cacaf749df6c1"/><file name="avejana@.css" hash="34eff758f091f8967a6cacaf749df6c1"/><file name="reviewandqa.css" hash="cce624022009e5cea7176dfa845f538c"/></dir></dir></dir></dir></dir></target></contents>
|
57 |
<compatible/>
|
58 |
<dependencies><required><php><min>5.3.0</min><max>7.1.4</max></php></required></dependencies>
|
59 |
</package>
|
skin/frontend/base/default/css/avejana/avejana.css
CHANGED
@@ -1,15 +1,17 @@
|
|
1 |
-
.avejana-content{background-color: #f5f5f5; border-radius: 14px; margin: 10px 0; z-index: 9; padding: 20px 0;}
|
|
|
|
|
2 |
.avejana-content .av-form-list li label.lilabel{float: left; width: 24%;text-align: right; padding: 6px 0;color: #333; font-family: helvetica;}
|
3 |
.avejana-content .av-form-list li label.ratingli{margin-right: 1%;width: 24%;text-align: right; color: #333; font-family: helvetica;}
|
4 |
.avejana-content .avratings{ margin-bottom: -5px;}
|
5 |
.avejana-content .av-form-list li.formli .input-box{float:right;width:74%;}
|
6 |
-
.avejana-content .av-form-list li.formli .input-box input{width:90%;background-color: #fff;border: 1px solid #ccc;border-radius: 4px;height:
|
7 |
|
8 |
.avejana-content .av-form-list li.formli .input-box input:focus { border-color: #66afe9; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset, 0 0 8px rgba(102, 175, 233, 0.6);
|
9 |
outline: 0 none;
|
10 |
}
|
11 |
|
12 |
-
.avejana-content .av-form-list li .input-box textarea {width:
|
13 |
.avejana-content .av-form-list li.formli{padding: 24px 0;}
|
14 |
.avejana-content .buttons-set{padding: 20px 7.3%;border-top: medium none;}
|
15 |
.avejana-content .buttons-set button{background-color: #888888 !important;color: #fff;font-weight: normal;font-size: 12px;}
|
@@ -24,13 +26,16 @@
|
|
24 |
.avejana-content .av-form-list li label{
|
25 |
font-size:11px !important;
|
26 |
}
|
|
|
|
|
27 |
}
|
28 |
.starRating:not(old){
|
29 |
display : inline-block ;
|
30 |
width : 7.5em;
|
31 |
height : 1.5em;
|
32 |
overflow : hidden;
|
33 |
-
vertical-align : bottom
|
|
|
34 |
}
|
35 |
|
36 |
.starRating:not(old) > input{
|
@@ -57,6 +62,22 @@
|
|
57 |
transition : opacity 0.2s linear ;
|
58 |
}
|
59 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
60 |
.starRating:not(old) > label:hover:before,
|
61 |
.starRating:not(old) > label:hover ~ label:before,
|
62 |
.starRating:not(:hover) > :checked ~ label:before{
|
@@ -163,6 +184,7 @@
|
|
163 |
.avejana-tabs {
|
164 |
width:100%;
|
165 |
display:inline-block;
|
|
|
166 |
}
|
167 |
|
168 |
/*----- avejana-tab Links -----*/
|
@@ -179,32 +201,32 @@
|
|
179 |
list-style:none;
|
180 |
}
|
181 |
|
182 |
-
.avejana-tab-links
|
183 |
-
padding:9px
|
184 |
display:inline-block;
|
185 |
border-radius:3px 3px 0px 0px;
|
186 |
-
background:#cccccc
|
187 |
-
font-size:
|
188 |
-
|
189 |
color:#4c4c4c;
|
190 |
transition:all linear 0.15s;
|
|
|
191 |
}
|
192 |
|
193 |
-
.avejana-tab-links
|
194 |
-
background:#f4f4f4
|
195 |
text-decoration:none;
|
196 |
}
|
197 |
|
198 |
-
li.active a, li.active a:hover {
|
199 |
-
|
200 |
color:#4c4c4c;
|
201 |
-
}
|
202 |
|
203 |
/*----- Content of avejana-tabs -----*/
|
204 |
.avejana-avejana-tab-content {
|
205 |
padding:15px;
|
206 |
border-radius:3px;
|
207 |
-
border:1px solid #ccc;
|
208 |
background:#fff;
|
209 |
}
|
210 |
|
@@ -215,7 +237,26 @@
|
|
215 |
.avejana-tab.active {
|
216 |
display:block;
|
217 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
218 |
/******End Custom Tabs***********/
|
|
|
219 |
|
220 |
@media screen and (min-width: 789px) {
|
221 |
.avejanatitle .pull-right{float:right;width:21%}
|
1 |
+
.avejana-content{background-color: #f5f5f5; border-radius: 14px; margin: 10px 0; z-index: 9; padding: 20px 0; }
|
2 |
+
.avejanarms, .avejana-content, #product-q-a{color: #636363;
|
3 |
+
font-family: "Helvetica Neue",Verdana,Arial,sans-serif; font-size: 14px;line-height: 1.5;}
|
4 |
.avejana-content .av-form-list li label.lilabel{float: left; width: 24%;text-align: right; padding: 6px 0;color: #333; font-family: helvetica;}
|
5 |
.avejana-content .av-form-list li label.ratingli{margin-right: 1%;width: 24%;text-align: right; color: #333; font-family: helvetica;}
|
6 |
.avejana-content .avratings{ margin-bottom: -5px;}
|
7 |
.avejana-content .av-form-list li.formli .input-box{float:right;width:74%;}
|
8 |
+
.avejana-content .av-form-list li.formli .input-box input{width:90%;background-color: #fff;border: 1px solid #ccc;border-radius: 4px;height: 26px;padding: 6px 12px; transition: border-color 0.15s ease-in-out 0s, box-shadow 0.15s ease-in-out 0s;}
|
9 |
|
10 |
.avejana-content .av-form-list li.formli .input-box input:focus { border-color: #66afe9; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset, 0 0 8px rgba(102, 175, 233, 0.6);
|
11 |
outline: 0 none;
|
12 |
}
|
13 |
|
14 |
+
.avejana-content .av-form-list li .input-box textarea {width:92%;max-width:100%;border-radius: 3px;}
|
15 |
.avejana-content .av-form-list li.formli{padding: 24px 0;}
|
16 |
.avejana-content .buttons-set{padding: 20px 7.3%;border-top: medium none;}
|
17 |
.avejana-content .buttons-set button{background-color: #888888 !important;color: #fff;font-weight: normal;font-size: 12px;}
|
26 |
.avejana-content .av-form-list li label{
|
27 |
font-size:11px !important;
|
28 |
}
|
29 |
+
.product-collateral .product-tabs-content div, .product-collateral .product-tabs-content fieldset, .product-collateral .product-tabs-content textarea, .product-collateral .product-tabs-content input{max-width:100%!important;}
|
30 |
+
.avejana-content .av-form-list li.formli .input-box input{width:width:81%!important;}
|
31 |
}
|
32 |
.starRating:not(old){
|
33 |
display : inline-block ;
|
34 |
width : 7.5em;
|
35 |
height : 1.5em;
|
36 |
overflow : hidden;
|
37 |
+
/*vertical-align : bottom;*/
|
38 |
+
margin-top: 0.5em;
|
39 |
}
|
40 |
|
41 |
.starRating:not(old) > input{
|
62 |
transition : opacity 0.2s linear ;
|
63 |
}
|
64 |
|
65 |
+
@media screen and (max-width: 370px) {
|
66 |
+
.ratingli{display:flex;}
|
67 |
+
.starRating:not(old){width:6.5em;}
|
68 |
+
}
|
69 |
+
@media screen and (max-width: 789px) {
|
70 |
+
.starRating:not(old) > label:before{
|
71 |
+
width : 1.5em ;
|
72 |
+
height : 1.5em ;
|
73 |
+
}
|
74 |
+
|
75 |
+
.starRating:not(old){
|
76 |
+
|
77 |
+
height : 1.3em;
|
78 |
+
}
|
79 |
+
}
|
80 |
+
|
81 |
.starRating:not(old) > label:hover:before,
|
82 |
.starRating:not(old) > label:hover ~ label:before,
|
83 |
.starRating:not(:hover) > :checked ~ label:before{
|
184 |
.avejana-tabs {
|
185 |
width:100%;
|
186 |
display:inline-block;
|
187 |
+
border: 1px solid #ccc;
|
188 |
}
|
189 |
|
190 |
/*----- avejana-tab Links -----*/
|
201 |
list-style:none;
|
202 |
}
|
203 |
|
204 |
+
.avejana-tab-links span {
|
205 |
+
padding:9px 30px;
|
206 |
display:inline-block;
|
207 |
border-radius:3px 3px 0px 0px;
|
208 |
+
/*background:#cccccc;*/
|
209 |
+
font-size:14px;
|
210 |
+
|
211 |
color:#4c4c4c;
|
212 |
transition:all linear 0.15s;
|
213 |
+
cursor:pointer;
|
214 |
}
|
215 |
|
216 |
+
.avejana-tab-links span:hover {
|
217 |
+
/*background:#f4f4f4;*/
|
218 |
text-decoration:none;
|
219 |
}
|
220 |
|
221 |
+
/*li.active a, li.active a:hover {
|
222 |
+
|
223 |
color:#4c4c4c;
|
224 |
+
}*/
|
225 |
|
226 |
/*----- Content of avejana-tabs -----*/
|
227 |
.avejana-avejana-tab-content {
|
228 |
padding:15px;
|
229 |
border-radius:3px;
|
|
|
230 |
background:#fff;
|
231 |
}
|
232 |
|
237 |
.avejana-tab.active {
|
238 |
display:block;
|
239 |
}
|
240 |
+
|
241 |
+
ul.avejana-tab-links{
|
242 |
+
background-color: #f4f4f4;
|
243 |
+
border-bottom: 1px solid #ccc;
|
244 |
+
}
|
245 |
+
|
246 |
+
.avejana-tab-links li.active {
|
247 |
+
background-color: #fff;
|
248 |
+
border-bottom: 1px solid #fff;
|
249 |
+
border-left: 1px solid #ccc;
|
250 |
+
border-right: 1px solid #ccc;
|
251 |
+
margin-bottom: -1px;
|
252 |
+
}
|
253 |
+
|
254 |
+
.avejana-tab-links li.first {
|
255 |
+
border-left: none;
|
256 |
+
margin-left:0;
|
257 |
+
}
|
258 |
/******End Custom Tabs***********/
|
259 |
+
.avejanatitle .pull-right{color:#636363;}
|
260 |
|
261 |
@media screen and (min-width: 789px) {
|
262 |
.avejanatitle .pull-right{float:right;width:21%}
|
skin/frontend/base/default/css/avejana/avejana@.css
ADDED
@@ -0,0 +1,272 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.avejana-content{background-color: #f5f5f5; border-radius: 14px; margin: 10px 0; z-index: 9; padding: 20px 0; }
|
2 |
+
.avejanarms, .avejana-content, #product-q-a{color: #636363;
|
3 |
+
font-family: "Helvetica Neue",Verdana,Arial,sans-serif; font-size: 14px;line-height: 1.5;}
|
4 |
+
.avejana-content .av-form-list li label.lilabel{float: left; width: 24%;text-align: right; padding: 6px 0;color: #333; font-family: helvetica;}
|
5 |
+
.avejana-content .av-form-list li label.ratingli{margin-right: 1%;width: 24%;text-align: right; color: #333; font-family: helvetica;}
|
6 |
+
.avejana-content .avratings{ margin-bottom: -5px;}
|
7 |
+
.avejana-content .av-form-list li.formli .input-box{float:right;width:74%;}
|
8 |
+
.avejana-content .av-form-list li.formli .input-box input{width:90%;background-color: #fff;border: 1px solid #ccc;border-radius: 4px;height: 26px;padding: 6px 12px; transition: border-color 0.15s ease-in-out 0s, box-shadow 0.15s ease-in-out 0s;}
|
9 |
+
|
10 |
+
.avejana-content .av-form-list li.formli .input-box input:focus { border-color: #66afe9; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset, 0 0 8px rgba(102, 175, 233, 0.6);
|
11 |
+
outline: 0 none;
|
12 |
+
}
|
13 |
+
|
14 |
+
.avejana-content .av-form-list li .input-box textarea {width:92%;max-width:100%;border-radius: 3px;}
|
15 |
+
.avejana-content .av-form-list li.formli{padding: 24px 0;}
|
16 |
+
.avejana-content .buttons-set{padding: 20px 7.3%;border-top: medium none;}
|
17 |
+
.avejana-content .buttons-set button{background-color: #888888 !important;color: #fff;font-weight: normal;font-size: 12px;}
|
18 |
+
.avejana-content .input-text {
|
19 |
+
-moz-appearance: none;
|
20 |
+
background: #ffffff none repeat scroll 0 0;
|
21 |
+
border: 1px solid silver;
|
22 |
+
border-radius: 2px;
|
23 |
+
font-size: 15px;
|
24 |
+
}
|
25 |
+
@media only screen and (max-width: 500px) {
|
26 |
+
.avejana-content .av-form-list li label{
|
27 |
+
font-size:11px !important;
|
28 |
+
}
|
29 |
+
.product-collateral .product-tabs-content div, .product-collateral .product-tabs-content fieldset, .product-collateral .product-tabs-content textarea, .product-collateral .product-tabs-content input{max-width:100%!important;}
|
30 |
+
.avejana-content .av-form-list li.formli .input-box input{width:width:81%!important;}
|
31 |
+
}
|
32 |
+
.starRating:not(old){
|
33 |
+
display : inline-block ;
|
34 |
+
width : 7.5em;
|
35 |
+
height : 1.5em;
|
36 |
+
overflow : hidden;
|
37 |
+
/*vertical-align : bottom;*/
|
38 |
+
margin-top: 0.5em;
|
39 |
+
}
|
40 |
+
|
41 |
+
.starRating:not(old) > input{
|
42 |
+
margin-right : -100%;
|
43 |
+
opacity : 0;
|
44 |
+
}
|
45 |
+
|
46 |
+
.starRating:not(old) > label{
|
47 |
+
display : block;
|
48 |
+
float : right;
|
49 |
+
position : relative;
|
50 |
+
background : url('../../images/avejana/star-off.svg');
|
51 |
+
background-size : contain;
|
52 |
+
}
|
53 |
+
|
54 |
+
.starRating:not(old) > label:before{
|
55 |
+
content : '' ;
|
56 |
+
display : block ;
|
57 |
+
width : 1.5em ;
|
58 |
+
height : 1.5em ;
|
59 |
+
background : url('../../images/avejana/star-on.svg');
|
60 |
+
background-size : contain ;
|
61 |
+
opacity : 0 ;
|
62 |
+
transition : opacity 0.2s linear ;
|
63 |
+
}
|
64 |
+
|
65 |
+
@media screen and (max-width: 370px) {
|
66 |
+
.ratingli{display:flex;}
|
67 |
+
.starRating:not(old){width:6.5em;}
|
68 |
+
}
|
69 |
+
@media screen and (max-width: 789px) {
|
70 |
+
.starRating:not(old) > label:before{
|
71 |
+
width : 1.5em ;
|
72 |
+
height : 1.5em ;
|
73 |
+
}
|
74 |
+
|
75 |
+
.starRating:not(old){
|
76 |
+
|
77 |
+
height : 1.3em;
|
78 |
+
}
|
79 |
+
}
|
80 |
+
|
81 |
+
.starRating:not(old) > label:hover:before,
|
82 |
+
.starRating:not(old) > label:hover ~ label:before,
|
83 |
+
.starRating:not(:hover) > :checked ~ label:before{
|
84 |
+
opacity : 1 ;
|
85 |
+
}
|
86 |
+
|
87 |
+
/*.stars, .stars0
|
88 |
+
{
|
89 |
+
background: transparent url("../../images/avejana/stars.png") no-repeat top left;
|
90 |
+
width:100px;
|
91 |
+
height:20px;
|
92 |
+
float:left;
|
93 |
+
display:block;
|
94 |
+
margin: 5px;
|
95 |
+
}
|
96 |
+
.stars1 {background-position:-20px;}
|
97 |
+
.stars2 {background-position:-40px;}
|
98 |
+
.stars3 {background-position:-60px;}
|
99 |
+
.stars4 {background-position:-80px;}
|
100 |
+
.stars5 {background-position:-100px;}*/
|
101 |
+
|
102 |
+
|
103 |
+
.star-ratings-sprite {
|
104 |
+
background: url("../../images/avejana/star-rating-sprite.png") repeat-x;
|
105 |
+
font-size: 0;
|
106 |
+
height: 21px;
|
107 |
+
line-height: 0;
|
108 |
+
overflow: hidden;
|
109 |
+
text-indent: -999em;
|
110 |
+
width: 110px;
|
111 |
+
margin: 12px 0;
|
112 |
+
}
|
113 |
+
.star-ratings-sprite-rating {
|
114 |
+
background: url("../../images/avejana/star-rating-sprite.png") repeat-x;
|
115 |
+
background-position: 0 100%;
|
116 |
+
float: left;
|
117 |
+
height: 21px;
|
118 |
+
display:block;
|
119 |
+
|
120 |
+
}
|
121 |
+
|
122 |
+
#avejanaqa {
|
123 |
+
padding: 0 5px;}
|
124 |
+
@media screen and (min-width: 769px) {
|
125 |
+
#avejanaqa {
|
126 |
+
padding: 0 20px;
|
127 |
+
|
128 |
+
}
|
129 |
+
}
|
130 |
+
|
131 |
+
.avejana-review-feld .avejana-feed{margin-left: 8%; width: 90%; padding: 12px 4px;}
|
132 |
+
.avejana-review-feld .avejana-initial{ float: left; position: relative;text-align: center;width: 7%;}
|
133 |
+
.avejana-review-feld span.first-letter{font-size: 40px; text-align: center; background-color: #888888; padding-left: 10px; padding-right: 10px; color: #FFFFFF}
|
134 |
+
.avejana-review-feld .reviewtitle{/*clear:left;*/}
|
135 |
+
.qafields .reviewtitle {
|
136 |
+
margin-bottom: 13px;
|
137 |
+
margin-top: 5px;
|
138 |
+
}
|
139 |
+
.avejana-review-feld .review_rate .stars{margin:8px 5px 6px 0px;}
|
140 |
+
.avejana-review-feld .avejana-initial2 strong {color: gray;font-size: 16px;text-transform: capitalize;}
|
141 |
+
.avejana-review-feld .avejana-initial2 strong a{color:gray;}
|
142 |
+
.avejana-review-feld .avejana-initial2 strong a:hover {
|
143 |
+
color: #b39759;text-decoration:none;
|
144 |
+
}
|
145 |
+
.avejana-review-feld .reviewtitle a{color: #000; /*font-weight: bold;*/}
|
146 |
+
.avejana-review-feld .reviewtitle a:hover{color:gray;text-decoration:none;}
|
147 |
+
.avejanahoriline{width: 97%; margin: 15px;}
|
148 |
+
.wpc-comment-author a{color:#555;}
|
149 |
+
.wpc-comment-author a:hover{color:#ccc;text-decoration:none;}
|
150 |
+
#product-q-a{margin:10px;}
|
151 |
+
.hrline{padding:10px 0;}
|
152 |
+
.avejana-responce {
|
153 |
+
background-color: #f5f5f5;
|
154 |
+
border-left: 5px solid #d0d0d0;
|
155 |
+
margin-left: 2px;
|
156 |
+
margin-top: 7px;
|
157 |
+
padding: 7px;
|
158 |
+
}
|
159 |
+
.avejanatitle .star-ratings-sprite{margin-top:3px;margin-bottom:0px;}
|
160 |
+
.avejanatitle .review-total{float:left;}
|
161 |
+
|
162 |
+
.product-shop .avratings .stars{margin:-5px 5px 7px -3px;clear:both;}
|
163 |
+
.product-shop .no-rating{clear:left; margin: 0 0 8px;}
|
164 |
+
.avejanarms{position:relative;width:100%;}
|
165 |
+
.category-products .star-ratings-sprite{margin:12px auto;}
|
166 |
+
.catalog-product-view .product-view .price-info .star-ratings-sprite{display:none;}
|
167 |
+
.avejana-tweet p{line-height: 29px; margin-left: 2px;}
|
168 |
+
.avejana_review_section {
|
169 |
+
padding-bottom: 1.5%;
|
170 |
+
padding-top: 1.5%;
|
171 |
+
position: relative;
|
172 |
+
}
|
173 |
+
.review_form_display, .qatitle {
|
174 |
+
background: #808080 none repeat scroll 0 0;
|
175 |
+
border-color: #808080;
|
176 |
+
color: #fff;
|
177 |
+
padding: 8px 10px;
|
178 |
+
}
|
179 |
+
.review_form_display:hover, .qatitle:hover, .qatitle:focus, .review_form_display:focus{color:#fff;text-decoration:none;}
|
180 |
+
.avejana-review-reply{z-index:9;}
|
181 |
+
|
182 |
+
/*************Custom Review and QA tab***************/
|
183 |
+
/*----- avejana-tabs -----*/
|
184 |
+
.avejana-tabs {
|
185 |
+
width:100%;
|
186 |
+
display:inline-block;
|
187 |
+
border: 1px solid #ccc;
|
188 |
+
}
|
189 |
+
|
190 |
+
/*----- avejana-tab Links -----*/
|
191 |
+
|
192 |
+
.avejana-tab-links:after {
|
193 |
+
display:block;
|
194 |
+
clear:both;
|
195 |
+
content:'';
|
196 |
+
}
|
197 |
+
|
198 |
+
.avejana-tab-links li {
|
199 |
+
margin:0px 5px;
|
200 |
+
float:left;
|
201 |
+
list-style:none;
|
202 |
+
}
|
203 |
+
|
204 |
+
.avejana-tab-links span {
|
205 |
+
padding:9px 30px;
|
206 |
+
display:inline-block;
|
207 |
+
border-radius:3px 3px 0px 0px;
|
208 |
+
/*background:#cccccc;*/
|
209 |
+
font-size:14px;
|
210 |
+
|
211 |
+
color:#4c4c4c;
|
212 |
+
transition:all linear 0.15s;
|
213 |
+
cursor:pointer;
|
214 |
+
}
|
215 |
+
|
216 |
+
.avejana-tab-links span:hover {
|
217 |
+
/*background:#f4f4f4;*/
|
218 |
+
text-decoration:none;
|
219 |
+
}
|
220 |
+
|
221 |
+
/*li.active a, li.active a:hover {
|
222 |
+
|
223 |
+
color:#4c4c4c;
|
224 |
+
}*/
|
225 |
+
|
226 |
+
/*----- Content of avejana-tabs -----*/
|
227 |
+
.avejana-avejana-tab-content {
|
228 |
+
padding:15px;
|
229 |
+
border-radius:3px;
|
230 |
+
background:#fff;
|
231 |
+
}
|
232 |
+
|
233 |
+
.avejana-tab {
|
234 |
+
display:none;
|
235 |
+
}
|
236 |
+
|
237 |
+
.avejana-tab.active {
|
238 |
+
display:block;
|
239 |
+
}
|
240 |
+
|
241 |
+
ul.avejana-tab-links{
|
242 |
+
background-color: #f4f4f4;
|
243 |
+
border-bottom: 1px solid #ccc;
|
244 |
+
}
|
245 |
+
|
246 |
+
.avejana-tab-links li.active {
|
247 |
+
background-color: #fff;
|
248 |
+
border-bottom: 1px solid #fff;
|
249 |
+
border-left: 1px solid #ccc;
|
250 |
+
border-right: 1px solid #ccc;
|
251 |
+
margin-bottom: -1px;
|
252 |
+
}
|
253 |
+
|
254 |
+
.avejana-tab-links li.first {
|
255 |
+
border-left: none;
|
256 |
+
margin-left:0;
|
257 |
+
}
|
258 |
+
/******End Custom Tabs***********/
|
259 |
+
.avejanatitle .pull-right{color:#636363;}
|
260 |
+
|
261 |
+
@media screen and (min-width: 789px) {
|
262 |
+
.avejanatitle .pull-right{float:right;width:21%}
|
263 |
+
}
|
264 |
+
|
265 |
+
@media screen and (max-width: 767px) {
|
266 |
+
.avejana-review-feld .avejana-feed{margin-left: 20%; width: 80%;}
|
267 |
+
|
268 |
+
}
|
269 |
+
|
270 |
+
@media screen and (max-width: 350px) {
|
271 |
+
.av-button-title.avejanatitle{margin-bottom: 30px;}
|
272 |
+
}
|