Avejana_ReviewAndQA - Version 1.1.6

Version Notes

Avejana Custom Review Rating and Question Answer API

Download this release

Release Info

Developer aveJanaReviews
Extension Avejana_ReviewAndQA
Version 1.1.6
Comparing to
See all releases


Code changes from version 1.1.5 to 1.1.6

app/code/community/Avejana/AvejanaRMS/Block/Index.php CHANGED
@@ -44,9 +44,7 @@ class Avejana_AvejanaRMS_Block_Index extends Mage_Core_Block_Template{
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(
@@ -67,6 +65,7 @@ class Avejana_AvejanaRMS_Block_Index extends Mage_Core_Block_Template{
67
  'avejana_totalreview' => 0
68
  ), $store_id);
69
  $returnarr = array();
 
70
  }
71
  }
72
  }
44
  $totalratings=$totalratings+$reviews->Ratings;
45
  }
46
  $averagerating=($totalratings/$totalreviewcount)*20;
47
+ $returnarr = $response->message;
 
 
48
 
49
 
50
  $action->updateAttributes(array($productid), array(
65
  'avejana_totalreview' => 0
66
  ), $store_id);
67
  $returnarr = array();
68
+ return $returnarr;
69
  }
70
  }
71
  }
app/code/community/Avejana/AvejanaRMS/controllers/IndexController.php CHANGED
@@ -285,70 +285,8 @@ class Avejana_AvejanaRMS_IndexController extends Mage_Core_Controller_Front_Acti
285
 
286
  try{
287
  $productid = $this->getRequest()->getPost('productid');//die('kk');
288
- $url = Mage::helper('avejanarms')->getCompanyUrl().'/api/reviewreply/';
289
- $store_id = Mage::app()->getStore()->getStoreId();
290
- $action = Mage::getModel('catalog/resource_product_action');
291
- $returnarr =array();
292
-
293
- $data = array(
294
-
295
- 'CompanyID' => Mage::helper('avejanarms')->getCompanyId(),
296
-
297
- 'ProductID' => $productid
298
-
299
- );
300
-
301
- $header_arr = array(
302
-
303
- "rest-ajevana-key: ".Mage::helper('avejanarms')->getApiKey()."",
304
-
305
- "user-id: ".Mage::helper('avejanarms')->getUserId().""
306
-
307
- );
308
-
309
- $final_url = $url . "?" . http_build_query($data);
310
-
311
-
312
-
313
- $ajax_response = $this->callGETCurl($final_url, $data, $header_arr);
314
-
315
-
316
- $response = json_decode($ajax_response);
317
- //print_r($ajax_response);exit;
318
- if($response){
319
- $status = $response->status;
320
-
321
- if($response->status=='success'){
322
-
323
- $totalratings=0;
324
- foreach($response->message as $reviews){
325
- $totalratings=$totalratings+$reviews->Ratings;
326
- }
327
- //$product = Mage::getModel('catalog/product')->load($productid);
328
- $totalreviewcount = count($response->message);
329
- $averagerating = ($totalratings/$totalreviewcount)*20;
330
-
331
- $action->updateAttributes(array($productid), array(
332
- 'avejana_averagerating' => $averagerating
333
- ), $store_id);
334
-
335
- $action->updateAttributes(array($productid), array(
336
- 'avejana_totalreview' => $totalreviewcount
337
- ), $store_id);
338
-
339
- echo $this->getLayout()->createBlock('avejanarms/index')->setTemplate('avejanarms/generatedreview.phtml')->toHtml();
340
- }else{
341
- $action->updateAttributes(array($productid), array(
342
- 'avejana_averagerating' => 0
343
- ), $store_id);
344
-
345
- $action->updateAttributes(array($productid), array(
346
- 'avejana_totalreview' => 0
347
- ), $store_id);
348
- $returnarr = array();
349
- }
350
- die;
351
- }
352
  }catch(Exception $e){
353
  print_r($e);
354
  }
@@ -379,5 +317,6 @@ class Avejana_AvejanaRMS_IndexController extends Mage_Core_Controller_Front_Acti
379
  return $response;
380
 
381
  }
382
-
 
383
  }
285
 
286
  try{
287
  $productid = $this->getRequest()->getPost('productid');//die('kk');
288
+ Mage::getSingleton('core/session')->setProID($productid);
289
+ echo $this->getLayout()->createBlock('avejanarms/index')->setTemplate('avejanarms/generatedreview.phtml')->toHtml();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
290
  }catch(Exception $e){
291
  print_r($e);
292
  }
317
  return $response;
318
 
319
  }
320
+
321
+
322
  }
app/code/community/Avejana/AvejanaRMS/controllers/PageLister.php ADDED
@@ -0,0 +1,305 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * This program is licenced under the The GNU General Public License (GPL).
4
+ *
5
+ * Copyright (C) Kjetil Hårtveit 2010
6
+ *
7
+ * This program is free software; you can redistribute it and/or modify it under the terms of the GNU
8
+ * General Public License as published by the Free Software Foundation; either version 2 of the License,
9
+ * or (at your option) any later version.
10
+ *
11
+ * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
12
+ * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
13
+ * License for more details.
14
+ * @license http://www.opensource.org/licenses/gpl-license.html
15
+ *
16
+ *---------------------------------------
17
+ *
18
+ * Makes pages overview out of a collection of items.
19
+ *
20
+ * Future ideas:
21
+ * @todo implement cleaner error catching?
22
+ * @todo add truncation
23
+ * @todo add customizeable page values? Instead of 1 2 3, make it possible with A B C?
24
+ *
25
+ * @author Kjetil Hårtveit <kjetil@kjetil-hartveit.com> http://www.kjetil-hartveit.com
26
+ * @version 1.2
27
+ */
28
+ class PageLister
29
+ {
30
+ protected $allItems = array();
31
+ protected $page = 1;
32
+ protected $pageList = array();
33
+
34
+ /**
35
+ * Default options
36
+ *
37
+ * @var array
38
+ */
39
+ protected $opts = array(
40
+ 'itemsPerPage' => 10,
41
+ 'urlFormat' => '%d',
42
+ 'customFormatting' => false,
43
+ 'urlCallback' => null,
44
+ 'urlCallbackArgs' => array(),
45
+ 'varPage' => '{pagenum}',
46
+ 'pageLabels' => array(),
47
+ 'prevAndNext' => true,
48
+ 'prev' => '&laquo;',
49
+ 'next' => '&raquo;'
50
+ );
51
+
52
+ /**
53
+ * <p>
54
+ * Note that you can only use either normal url formatting, custom formatting or
55
+ * callback formatting. Presedence order is: callback, custom formatting, normal formatting.
56
+ * </p>
57
+ *
58
+ * <h3>Possible options:</h3>
59
+ * <table>
60
+ * <tr>
61
+ * <th>Type</th>
62
+ * <th>Option</th>
63
+ * <th>Default</th>
64
+ * <th>Description</th>
65
+ * </tr>
66
+ * <tr>
67
+ * <td>string</td>
68
+ * <td>itemsPerPage</td>
69
+ * <td>5</td>
70
+ * <td>Number of items shown per page</td>
71
+ * </tr>
72
+ * <tr>
73
+ * <td>string</td>
74
+ * <td>urlFormat</td>
75
+ * <td>%d</td>
76
+ * <td>
77
+ * Here you can choose the format of the url. A replacement value for the pagenumber is
78
+ * required. The syntax of the replacement value and how to set it depends on different
79
+ * options.<br />
80
+ * If the <i>customFormatting</i> option is set then the value of <i>varPage</i> is used.<br />
81
+ * If the <i>urlCallback</i> option is set then at least one of the callback arguments must
82
+ * contain the value of <i>varPage</i>.<br />
83
+ * Lastly if neither of the mentioned options are set then <i>urlFormat</i> uses the sprintf
84
+ * argument syntax (ie. %d).
85
+ * </td>
86
+ * </tr>
87
+ * <tr>
88
+ * <td>boolean</td>
89
+ * <td>customFormatting</td>
90
+ * <td>false</td>
91
+ * <td>
92
+ * With custom formatting enabled you can define your own syntax for the pagenumber format.
93
+ * This is handy in case your url format accidently includes format arguments
94
+ * (like url characters encoded in utf-8) and which collides with the pagenumber argument.
95
+ * </td>
96
+ * </tr>
97
+ * <tr>
98
+ * <td>string|array</td>
99
+ * <td>urlCallback</td>
100
+ * <td>null</td>
101
+ * <td>
102
+ * If a callback is given then the pageurl will be formatted based on the result of this
103
+ * callback.
104
+ * </td>
105
+ * </tr>
106
+ * <tr>
107
+ * <td>array</td>
108
+ * <td>urlCallbackArgs</td>
109
+ * <td>array()</td>
110
+ * <td>
111
+ * If the urlCallback option is set then you can specify additional callback arguments
112
+ * with this option. <br />
113
+ * At least one of the callback arguments should contain the <i>varPage</i> value so the
114
+ * corresponding pagenumber can be injected into the callback.
115
+ * </td>
116
+ * </tr>
117
+ * <tr>
118
+ * <td>string</td>
119
+ * <td>varPage</td>
120
+ * <td>{pagenum}</td>
121
+ * <td>
122
+ * The value of this option will be replaced by the pagenumber in numerous settings.<br />
123
+ * It will be used when the option <i>customFormatting</i> is set, as well as when
124
+ * a <i>urlCallback</i> is set. In the latter case then one of the callback arguments
125
+ * should contain this value.
126
+ * </td>
127
+ * </tr>
128
+ * <tr>
129
+ * <td>array</td>
130
+ * <td>pageLabels</td>
131
+ * <td>array()</td>
132
+ * <td>Each individual page can be given a specific page label with this option. Each key in the array is the pagenumber and the value is the page label.</td>
133
+ * </tr>
134
+ * <tr>
135
+ * <td>boolean</td>
136
+ * <td>prevAndNext</td>
137
+ * <td>true</td>
138
+ * <td>Whether or not to include the "previous" and "next" items in the page list</td>
139
+ * </tr>
140
+ * <tr>
141
+ * <td>string</td>
142
+ * <td>prev</td>
143
+ * <td>&laquo;</td>
144
+ * <td>The text shown as "previous page"</td>
145
+ * </tr>
146
+ * <tr>
147
+ * <td>string</td>
148
+ * <td>next</td>
149
+ * <td>&raquo;</td>
150
+ * <td>The text shown as "next page"</td>
151
+ * </tr>
152
+ * </table>
153
+ *
154
+ * @param array $allItems All of the items which you want to generate a pagelist from
155
+ * @param int $page Current page
156
+ * @param array $opts array with options given as key-value pair.
157
+ */
158
+ function __construct($allItems, $page, $opts=array())
159
+ {
160
+ $this->setAllItems($allItems);
161
+ $this->setPage($page);
162
+ $this->setOpts(array_merge($this->getOpts(), $opts));
163
+ }
164
+
165
+ /**
166
+ * Makes page overview
167
+ *
168
+ * <p>The page list is an associative array consisting of the following key pairs:</p>
169
+ * <table>
170
+ * <tr>
171
+ * <th>Type</th>
172
+ * <th>Key</th>
173
+ * <th>Value</th>
174
+ * </tr>
175
+ * <tr>
176
+ * <td>string</td>
177
+ * <td>url</td>
178
+ * <td>The formatted url for the page. Note that when using the <i>prevAndNext</i> option and
179
+ there is no valid previous or next page, then the url will be null. This is also the case
180
+ if a pagelink points to the current page. You can use this info to remove links that the
181
+ user should not click on.</td>
182
+ * </tr>
183
+ * <tr>
184
+ * <td>int</td>
185
+ * <td>page</td>
186
+ * <td>The pagenumber</td>
187
+ * </tr>
188
+ * <tr>
189
+ * <td>string</td>
190
+ * <td>label</td>
191
+ * <td>The page label</td>
192
+ * </tr>
193
+ * </table>
194
+ *
195
+ * @return array Page list
196
+ */
197
+ function makePageList()
198
+ {
199
+ $page = $this->getPage();
200
+ $allItems = $this->getAllItems();
201
+ $prevAndNext = $this->getOpt('prevAndNext');
202
+ $pageLabels = $this->getOpt('pageLabels');
203
+ $itemsPerPage = $this->getOpt('itemsPerPage');
204
+
205
+ $numPages = ceil(count($allItems)/$itemsPerPage);
206
+
207
+ $pageList = array();
208
+
209
+ $prev = $page-1;
210
+ $next = $page+1;
211
+
212
+ if ($prevAndNext)
213
+ {
214
+ $pageList[] = array(
215
+ 'page' => $prev,
216
+ 'url' => $prev>0 ? $this->formatUrl($prev) : null,
217
+ 'label' => $this->getOpt('prev')
218
+ );
219
+ }
220
+
221
+ for ($i=1; $i<=$numPages; $i++)
222
+ {
223
+ $curUrl = $page!=$i ? $this->formatUrl($i) : null;
224
+ $pageList[] = array(
225
+ 'page' => $i,
226
+ 'url' => $curUrl,
227
+ 'label' => isset($pageLabels[$i]) ? $pageLabels[$i] : $i
228
+ );
229
+ }
230
+
231
+ if ($prevAndNext)
232
+ {
233
+ $pageList[] = array(
234
+ 'page' => $next,
235
+ 'url' => $next<=$numPages ? $this->formatUrl($next) : null,
236
+ 'label' => $this->getOpt('next')
237
+ );
238
+ }
239
+
240
+ $this->setPageList($pageList);
241
+ return $pageList;
242
+ }
243
+
244
+ /**
245
+ * Formats url based on options
246
+ *
247
+ * @param string $format
248
+ * @param int $page
249
+ * @return string
250
+ */
251
+ protected function formatUrl($page)
252
+ {
253
+ $res = '';
254
+ if ($this->getOpt('urlCallback')) {
255
+ $args = str_replace($this->getOpt('varPage'), $page, $this->getOpt('urlCallbackArgs'));
256
+ $res = call_user_func_array($this->getOpt('urlCallback'), $args);
257
+ } else if ($this->getOpt('customFormatting')) {
258
+ $res = str_replace($this->getOpt('varPage'), $page, $this->getOpt('urlFormat'));
259
+ } else {
260
+ $res = sprintf($this->getOpt('urlFormat'), $page);
261
+ }
262
+
263
+ return $res;
264
+ }
265
+
266
+ /**
267
+ * Returns current items
268
+ *
269
+ * @return array
270
+ */
271
+ function getCurrentItems()
272
+ {
273
+ $allItems = $this->getAllItems();
274
+ $page = $this->getPage();
275
+ $itemsPerPage = $this->getOpt('itemsPerPage');
276
+
277
+ return array_slice($allItems, ($page-1)*$itemsPerPage, $itemsPerPage);
278
+ }
279
+
280
+ /**
281
+ * Returns a single option
282
+ *
283
+ * @param string $opt
284
+ * @return mixed
285
+ */
286
+ function getOpt($opt)
287
+ {
288
+ $opts = $this->getOpts();
289
+ if (isset($opts[$opt]))
290
+ {
291
+ return $opts[$opt];
292
+ }
293
+ return null;
294
+ }
295
+
296
+ function setAllItems($allItems) { $this->allItems = $allItems; }
297
+ function getAllItems() { return $this->allItems; }
298
+ function setPage($page) { $this->page = $page; }
299
+ function getPage() { return $this->page; }
300
+ function setOpts($opts) { $this->opts = $opts; }
301
+ function getOpts() { return $this->opts; }
302
+ function setPageList($pageList) { $this->pageList = $pageList; }
303
+ function getPageList() { return $this->pageList; }
304
+ }
305
+ ?>
app/code/community/Avejana/AvejanaRMS/controllers/QaController.php CHANGED
@@ -163,6 +163,19 @@ class Avejana_AvejanaRMS_QaController extends Mage_Core_Controller_Front_Action{
163
 
164
  }
165
 
 
 
 
 
 
 
 
 
 
 
 
 
 
166
  public function callPUTCurl($url, $data, $header_arr){
167
 
168
  try{
163
 
164
  }
165
 
166
+
167
+ /************LOad QA after page loads***********/
168
+ public function qaloadAction(){
169
+
170
+ try{
171
+ $productid = $this->getRequest()->getPost('productid');//die('kk');
172
+ Mage::getSingleton('core/session')->setProID($productid);
173
+ echo $this->getLayout()->createBlock('avejanarms/index')->setTemplate('avejanarms/generatedqa.phtml')->toHtml();
174
+ }catch(Exception $e){
175
+ print_r($e);
176
+ }
177
+ }
178
+
179
  public function callPUTCurl($url, $data, $header_arr){
180
 
181
  try{
app/design/frontend/base/default/layout/avejanarms.xml CHANGED
@@ -5,20 +5,21 @@
5
  <action method="setTemplate"><template>page/1column.phtml</template></action>
6
  </reference>
7
  <reference name="content">
8
- <block type="avejanarms/index" name="avejanarms_index" template="avejanarms/review.phtml"/>
 
9
  </reference>
10
  </avejanarms_index_index>
11
 
12
  <catalog_product_view>
13
  <reference name="head">
14
- <action method="addItem"><type>skin_css</type><name>css/avejana/avejana.css</name><params/></action>
15
- <action method="addItem"><type>skin_css</type><name>css/avejana/reviewandqa.css</name><params/></action>
16
  </reference>
17
  <reference name="alert.urls">
18
  <block type="avejanarms/helper" name="avejana.summary" as="avajanasummary" template="avejanarms/rating.phtml" before="product.info.media"/>
19
  </reference>
20
  <reference name="product.info">
21
-
22
  <block type="avejanarms/index" name="avejana.reviews" as="avajanareview" template="avejanarms/review.phtml" after="additional">
23
  <action method="addToParentGroup" ifconfig="avejanasetting/avejanaconfiguration/active"><group>detailed_info</group></action>
24
  <action method="setTitle" ifconfig="avejanasetting/avejanaconfiguration/active" translate="value"><value>Reviews</value></action>
5
  <action method="setTemplate"><template>page/1column.phtml</template></action>
6
  </reference>
7
  <reference name="content">
8
+ <block type="avejanarms/index" name="avejanarms_index" template="avejanarms/review.phtml"/>
9
+
10
  </reference>
11
  </avejanarms_index_index>
12
 
13
  <catalog_product_view>
14
  <reference name="head">
15
+ <action ifconfig="avejanasetting/avejanaconfiguration/active" method="addItem"><type>skin_css</type><name>css/avejana/avejana.css</name><params/></action>
16
+ <action ifconfig="avejanasetting/avejanaconfiguration/active" method="addItem"><type>skin_css</type><name>css/avejana/reviewandqa.css</name><params/></action>
17
  </reference>
18
  <reference name="alert.urls">
19
  <block type="avejanarms/helper" name="avejana.summary" as="avajanasummary" template="avejanarms/rating.phtml" before="product.info.media"/>
20
  </reference>
21
  <reference name="product.info">
22
+ <block type="avejanarms/index" name="avejanarmsgen_index" template="avejanarms/generatedreview.phtml"/>
23
  <block type="avejanarms/index" name="avejana.reviews" as="avajanareview" template="avejanarms/review.phtml" after="additional">
24
  <action method="addToParentGroup" ifconfig="avejanasetting/avejanaconfiguration/active"><group>detailed_info</group></action>
25
  <action method="setTitle" ifconfig="avejanasetting/avejanaconfiguration/active" translate="value"><value>Reviews</value></action>
app/design/frontend/base/default/template/avejanarms/generatedqa.phtml ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $avejanaQAlist = $this->getAvejanaQuestionAnswerListing(Mage::getSingleton('core/session')->getProID());
3
+ if(count($avejanaQAlist)>0){
4
+ $i=0; foreach($avejanaQAlist as $_qa){
5
+ if($_qa->Answer != ''){
6
+ $i=$i+1;
7
+ $qafirst_letter = substr($_qa->UserName, 0 , 1);
8
+ ?>
9
+ <div class="qafields avejana-review-feld">
10
+ <div class="avejana-initial" >
11
+ <a href="javascript:void(0)">
12
+ <span class="first-letter"><?php echo ucfirst($qafirst_letter); ?></span>
13
+ </a>
14
+ </div>
15
+ <div class="avejana-feed"><div class="avejana-initial2" >
16
+ <strong><a href="javascript:void(0)" class="text-muted"><?php echo $_qa->UserName; ?></a></strong>&nbsp;<small class="text-muted"><?php echo $this->formatDate($_qa->QuestionDate);?></small>
17
+
18
+ <div class="reviewtitle" >
19
+ <a href="javascript:void(0)"><?php echo $this->htmlEscape($_qa->Question);?></a>
20
+ </div>
21
+
22
+
23
+ <div class="avejana-responce">
24
+ <p class="avejana-header">
25
+ <i class="fa fa-comment"></i>&nbsp;<span><?php echo $_qa->AnsweredBy; ?></span>
26
+ Response :
27
+ </p>
28
+ <div class="response">
29
+ <p class="detail"><?php echo $_qa->Answer; ?></p>
30
+ </div>
31
+ </div>
32
+
33
+ </div>
34
+ </div>
35
+ <div style="clear:both"></div>
36
+ <div class="hrline"><hr></div>
37
+ </div>
38
+ <?php }
39
+ }
40
+ if($i>0){?>
41
+ <script>
42
+
43
+ jQuery(document).ready(function(){
44
+ jQuery(".toggle-tabs li").each(function(index) {
45
+ if(jQuery(this).find("span").text() == "Q&A"){
46
+ jQuery(this).find("span").html("Q&A "+" (<?php echo $i;?>)");
47
+ }
48
+ });
49
+
50
+ jQuery(".product-tabs li").each(function(index) {
51
+ if(jQuery(this).find("a").text() == "Q&A"){
52
+ jQuery(this).find("a").html("Q&A "+" (<?php echo $i;?>)");
53
+ }
54
+ });
55
+
56
+ jQuery(".avejana-tab-links li").each(function(index) {
57
+ if(jQuery(this).find("span").text() == "Q&A"){
58
+ jQuery(this).find("span").html("Q&A "+" (<?php echo $i;?>)");
59
+ }
60
+ });
61
+ })
62
+ </script>
63
+ <?php }
64
+ } ?>
app/design/frontend/base/default/template/avejanarms/generatedreview.phtml ADDED
@@ -0,0 +1,87 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ <?php $moduledir=Mage::getModuleDir('controllers', 'Avejana_AvejanaRMS');
3
+ include_once($moduledir.'/PageLister.php');
4
+ $avejanareviewes = $this->getAvejanaReviesListing(Mage::getSingleton('core/session')->getProID());
5
+
6
+ if(count($avejanareviewes)>0){
7
+ $currentPage = !empty($_GET['page']) ? (int) $_GET['page'] : 1;
8
+ $allItems = array();
9
+ $totalreviewcount = count($avejanareviewes);
10
+ //print_r($avejanareviewes);
11
+ //die;
12
+ foreach($avejanareviewes as $_review){
13
+ $first_letter = substr($_review->UserName, 0, 1);
14
+ $ratingpercentage= $_review->Ratings*20;
15
+ $replysction = $_review->Reply != "" ?
16
+ '<div class="avejana-responce">
17
+ <p class="avejana-header">
18
+ <i class="fa fa-comment"></i>&nbsp;<span>'.$_review->RepliedBy.'</span>
19
+ Response :
20
+ </p>
21
+ <div class="response">
22
+ <p class="detail">'.$_review->Reply.'</p>
23
+ </div>
24
+ </div>' : '';
25
+ $allItems[]= '
26
+ <div class="avejanahoriline"><hr style="width: 100%;"></div>
27
+ <div class="avejana-review-feld">
28
+ <div class="avejana-initial" >
29
+ <a href="javascript:void(0)">
30
+ <span class="first-letter">'.ucfirst($first_letter).'</span>
31
+ </a>
32
+ </div>
33
+ <div class="avejana-feed"><div class="avejana-initial2" >
34
+ <strong><a href="javascript:void(0)" class="text-muted">'.$_review->UserName.'</a></strong>&nbsp;<small class="text-muted">'.$this->formatDate($_review->ReviewDate).'</small>
35
+ <div class=" avejana-small-star">
36
+ <div id="review_rate" class="display_rate avejana-container" readonly="readonly">
37
+
38
+ <div class="stars star-ratings-sprite"><span style="width:'.$ratingpercentage.'%" class="star-ratings-sprite-rating"></span></div>
39
+
40
+ </div>
41
+ </div>
42
+ <div class="reviewtitle" >
43
+ <a href="javascript:void(0)">'.$_review->Title.'</a>
44
+ </div>
45
+ <div class="avejana-tweet">
46
+ <p style="color: #333;">'.$review_destails = nl2br($_review->Description).'</p>
47
+ </div>'.$replysction.'</div>
48
+ </div>
49
+ </div>';?>
50
+ <?php }
51
+ /*************Pagination Code**************/
52
+ $pl = new PageLister($allItems, $currentPage);
53
+ //print_r($pl);die;
54
+ $pageList = $pl->makePageList();
55
+ //print_r($pageList);
56
+ $currentItems = $pl->getCurrentItems();
57
+ //print_r($currentItems);die;
58
+ $itemcount = count($currentItems);
59
+ /**
60
+ * Finally output the current page items and the pagelist
61
+ */
62
+
63
+
64
+
65
+ foreach ($currentItems as $item)
66
+ {
67
+ echo "$item <br />\n";
68
+ }
69
+
70
+ if($totalreviewcount>10){
71
+ echo "Pages: \n";
72
+
73
+ foreach ($pageList as $page)
74
+ {
75
+ // make sure only valid urls are clickable (prev page at page 1 won't yield a valid previous next page)
76
+ if ($page['url']) {
77
+ echo "<a href='?page={$page['page']}'>{$page['label']}</a> ";
78
+ }
79
+ else {
80
+ echo $page['label'].' ';
81
+ }
82
+ }
83
+ }
84
+
85
+
86
+ } ?>
87
+
app/design/frontend/base/default/template/avejanarms/qa.phtml CHANGED
@@ -1,7 +1,5 @@
1
  <a id="qa-tab-open" name="question-form"></a>
2
- <?php $current_product = Mage::registry('current_product');
3
- $avejanaQAlist = $this->getAvejanaQuestionAnswerListing($current_product->getId());
4
- ?>
5
  <div class="av-page-title">
6
  <a href="javascript:void(0)" class="qatitle"><?php echo Mage::helper('avejanarms')->__('Ask a Question') ?></a>
7
  </div>
@@ -53,69 +51,7 @@
53
  </form>
54
  </div>
55
  <div id="product-q-a">
56
- <?php
57
- if(count($avejanaQAlist)>0){
58
- $i=0; foreach($avejanaQAlist as $_qa){
59
- if($_qa->Answer != ''){
60
- $i=$i+1;
61
- $qafirst_letter = substr($_qa->UserName, 0 , 1);
62
- ?>
63
- <div class="qafields avejana-review-feld">
64
- <div class="avejana-initial" >
65
- <a href="javascript:void(0)">
66
- <span class="first-letter"><?php echo ucfirst($qafirst_letter); ?></span>
67
- </a>
68
- </div>
69
- <div class="avejana-feed"><div class="avejana-initial2" >
70
- <strong><a href="javascript:void(0)" class="text-muted"><?php echo $_qa->UserName; ?></a></strong>&nbsp;<small class="text-muted"><?php echo $this->formatDate($_qa->QuestionDate);?></small>
71
-
72
- <div class="reviewtitle" >
73
- <a href="javascript:void(0)"><?php echo $this->htmlEscape($_qa->Question);?></a>
74
- </div>
75
-
76
-
77
- <div class="avejana-responce">
78
- <p class="avejana-header">
79
- <i class="fa fa-comment"></i>&nbsp;<span><?php echo $_qa->AnsweredBy; ?></span>
80
- Response :
81
- </p>
82
- <div class="response">
83
- <p class="detail"><?php echo $_qa->Answer; ?></p>
84
- </div>
85
- </div>
86
-
87
- </div>
88
- </div>
89
- <div style="clear:both"></div>
90
- <div class="hrline"><hr></div>
91
- </div>
92
- <?php }
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
- })
116
- </script>
117
- <?php }
118
- } ?>
119
  </div>
120
  <script type="text/javascript">
121
  //<![CDATA[
@@ -126,4 +62,24 @@
126
  jQuery( ".qatitle" ).click(function() {
127
  jQuery('.qaformarea').toggle();
128
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
129
  </script>
1
  <a id="qa-tab-open" name="question-form"></a>
2
+ <?php $current_product = Mage::registry('current_product');?>
 
 
3
  <div class="av-page-title">
4
  <a href="javascript:void(0)" class="qatitle"><?php echo Mage::helper('avejanarms')->__('Ask a Question') ?></a>
5
  </div>
51
  </form>
52
  </div>
53
  <div id="product-q-a">
54
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
55
  </div>
56
  <script type="text/javascript">
57
  //<![CDATA[
62
  jQuery( ".qatitle" ).click(function() {
63
  jQuery('.qaformarea').toggle();
64
  });
65
+
66
+ jQuery(document).ready(function(){
67
+ var productid = "<?php echo $current_product->getId();?>";
68
+ setTimeout(function(){
69
+ jQuery.ajax({
70
+ url: "<?php echo $this->getUrl('avejanarms/qa/qaload');?>",
71
+ type: "post",
72
+ data: {'productid':productid} ,
73
+ success: function (response) {
74
+ jQuery('#product-q-a').html(response);
75
+
76
+ },
77
+ error: function(jqXHR, textStatus, errorThrown) {
78
+ console.log(textStatus, errorThrown);
79
+ }
80
+ });
81
+ }, 200);
82
+ console.log(productid);
83
+
84
+ });
85
  </script>
app/design/frontend/base/default/template/avejanarms/review.phtml CHANGED
@@ -1,18 +1,10 @@
1
  <a id="review-tab-open" name="review-form"></a>
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();
@@ -53,160 +45,80 @@
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">
66
- <label for="rating5">5</label>
67
- <input id="rating4" type="radio" name="rating" value="4">
68
- <label for="rating4">4</label>
69
- <input id="rating3" type="radio" name="rating" value="3" >
70
- <label for="rating3">3</label>
71
- <input id="rating2" type="radio" name="rating" value="2">
72
- <label for="rating2">2</label>
73
- <input id="rating1" type="radio" name="rating" value="1">
74
- <label for="rating1">1</label>
75
- </span>
76
-
77
- </li>
78
- <li class="formli">
79
- <label for="name" class="lilabel required"><em>*</em><?php echo Mage::helper('avejanarms')->__('Title') ?></label>
80
- <div class="input-box">
81
- <input name="title" id="title" title="<?php echo Mage::helper('core')->quoteEscape(Mage::helper('avejanarms')->__('Title')) ?>" value="" class="input-text required-entry validate-length maximum-length-100" maxlength="100" type="text" />
82
- </div>
83
- </li>
84
-
85
- <?php if (Mage::getSingleton('customer/session')->isLoggedIn()) {
86
-
87
- // Load the customer's data
88
- $customer = Mage::getSingleton('customer/session')->getCustomer();
89
- echo '<input name="name" id="name" value="'.$customer->getName().'" class="input-text required-entry" type="hidden" />';
90
-
91
- echo '<input name="email" id="email" value="'.$customer->getEmail().'" class="input-text required-entry validate-email" type="hidden" />';
92
-
93
-
94
- }else{ ?>
95
-
96
-
97
- <li class="fields formli">
98
- <label for="name" class="lilabel required"><em>*</em><?php echo Mage::helper('avejanarms')->__('Name') ?></label>
99
- <div class="input-box">
100
- <input name="name" id="name" title="<?php echo Mage::helper('core')->quoteEscape(Mage::helper('avejanarms')->__('Name')) ?>" value="" class="input-text required-entry" type="text" />
101
- </div>
102
  </li>
103
- <li class="field formli">
104
- <label for="email" class="lilabel required"><em>*</em><?php echo Mage::helper('avejanarms')->__('Email') ?></label>
105
  <div class="input-box">
106
- <input name="email" id="email" title="<?php echo Mage::helper('core')->quoteEscape(Mage::helper('avejanarms')->__('Email')) ?>" value="" class="input-text required-entry validate-email" type="email" autocapitalize="off" autocorrect="off" spellcheck="false" />
107
  </div>
108
- </li>
109
-
110
- <?php } ?>
111
-
112
- <li class="wide formli">
113
- <label for="comment" class="lilabel required"><em>*</em><?php echo Mage::helper('avejanarms')->__('Review') ?></label>
114
- <div class="input-box">
115
- <textarea name="comment" id="comment" title="<?php echo Mage::helper('core')->quoteEscape(Mage::helper('avejanarms')->__('Review')) ?>" class="required-entry input-text" cols="5" rows="3"></textarea>
116
- </div>
117
- </li>
118
- </ul>
119
-
120
- </div>
121
- <div class="buttons-set">
122
- <input type="text" name="hideit" id="hideit" value="" style="display:none !important;" />
123
- <button type="submit" title="<?php echo Mage::helper('core')->quoteEscape(Mage::helper('avejanarms')->__('Submit')) ?>" class="button"><span><span><?php echo Mage::helper('avejanarms')->__('Submit') ?></span></span></button>
124
- </div>
125
- </form>
126
- </div>
127
 
128
- <div class="avejana-review-reply">
129
- <?php
130
- if($avejanareviewes){
131
- $currentPage = !empty($_GET['page']) ? (int) $_GET['page'] : 1;
132
- $allItems = array();
133
- $totalreviewcount = count($avejanareviewes);
134
-
135
- foreach($avejanareviewes as $_review){
136
- $first_letter = substr($_review->UserName, 0 , 1);
137
- $ratingpercentage= $_review->Ratings*20;
138
- $replysction = $_review->Reply != "" ?
139
- '<div class="avejana-responce">
140
- <p class="avejana-header">
141
- <i class="fa fa-comment"></i>&nbsp;<span>'.$_review->RepliedBy.'</span>
142
- Response :
143
- </p>
144
- <div class="response">
145
- <p class="detail">'.$_review->Reply.'</p>
146
- </div>
147
- </div>' : '';
148
- $allItems[]= '
149
- <div class="avejanahoriline"><hr style="width: 100%;"></div>
150
- <div class="avejana-review-feld">
151
- <div class="avejana-initial" >
152
- <a href="javascript:void(0)">
153
- <span class="first-letter">'.ucfirst($first_letter).'</span>
154
- </a>
155
- </div>
156
- <div class="avejana-feed"><div class="avejana-initial2" >
157
- <strong><a href="javascript:void(0)" class="text-muted">'.$_review->UserName.'</a></strong>&nbsp;<small class="text-muted">'.$this->formatDate($_review->ReviewDate).'</small>
158
- <div class=" avejana-small-star">
159
- <div id="review_rate" class="display_rate avejana-container" readonly="readonly">
160
 
161
- <div class="stars star-ratings-sprite"><span style="width:'.$ratingpercentage.'%" class="star-ratings-sprite-rating"></span></div>
162
 
163
- </div>
 
 
 
 
 
 
164
  </div>
165
- <div class="reviewtitle" >
166
- <a href="javascript:void(0)">'.$_review->Title.'</a>
 
 
 
167
  </div>
168
- <div class="avejana-tweet">
169
- <p style="color: #333;">'.$review_destails = nl2br($_review->Description).'</p>
170
- </div>'.$replysction.'</div>
171
- </div>
172
- </div>';?>
173
- <?php }
174
- /*************Pagination Code**************/
175
-
176
- $pl = new PageLister($allItems, $currentPage);
177
- //print_r($pl);die;
178
- $pageList = $pl->makePageList();
179
- //print_r($pageList);
180
- $currentItems = $pl->getCurrentItems();
181
- $itemcount = count($currentItems);
182
- /**
183
- * Finally output the current page items and the pagelist
184
- */
185
-
186
-
187
-
188
- foreach ($currentItems as $item)
189
- {
190
- echo "$item <br />\n";
191
- }
192
-
193
- if($totalreviewcount>10){
194
- echo "Pages: \n";
195
-
196
- foreach ($pageList as $page)
197
- {
198
- // make sure only valid urls are clickable (prev page at page 1 won't yield a valid previous next page)
199
- if ($page['url']) {
200
- echo "<a href='?page={$page['page']}'>{$page['label']}</a> ";
201
- }
202
- else {
203
- echo $page['label'].' ';
204
- }
205
- }
206
- }
207
-
208
-
209
- } ?>
210
  </div>
211
  </div>
212
  </div>
@@ -221,5 +133,25 @@
221
 
222
  jQuery(document).ready(function(){
223
  jQuery('html,body').animate({scrollTop:0},0);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
224
  });
225
  </script>
1
  <a id="review-tab-open" name="review-form"></a>
2
  <?php
 
 
3
  $avgrating = 0;
4
  $totalreview = 0;
5
  $current_product = Mage::registry('current_product');
6
+ $totalreview = $current_product->getAvejanaTotalreview();
7
+ $avgrating = $current_product->getAvejanaAveragerating();
 
 
 
 
 
 
8
  $is_logo_show = Mage::getStoreConfig('avejanasetting/avejanaconfiguration/isshowlogo');
9
  $is_rich_snippet_show = Mage::getStoreConfig('avejanasetting/avejanaconfiguration/showrichsnippet');
10
  //echo $userurl = Mage::helper('avejanarms')->getUsersnurl();
45
  <?php }?>
46
 
47
  </div>
48
+ <div class="avejanareviewform avejana-content">
49
+ <form action="<?php echo $this->getUrl('avejanarms/index/reviewpost'); ?>" id="av_ravejanaeview" method="post" class="scaffold-form">
50
+ <div class="fieldarea">
51
+ <input type="hidden" name="product_id" value="<?php echo $current_product->getId();?>"/>
52
+ <ul class="av-form-list">
53
+ <li class="avratings">
54
+ <label for="name" class="required ratingli lilabel"><em>*</em><?php echo Mage::helper('avejanarms')->__('Your Rating') ?></label>
55
+
56
+ <span class="starRating">
57
+ <input id="rating5" type="radio" name="rating" value="5">
58
+ <label for="rating5">5</label>
59
+ <input id="rating4" type="radio" name="rating" value="4">
60
+ <label for="rating4">4</label>
61
+ <input id="rating3" type="radio" name="rating" value="3" >
62
+ <label for="rating3">3</label>
63
+ <input id="rating2" type="radio" name="rating" value="2">
64
+ <label for="rating2">2</label>
65
+ <input id="rating1" type="radio" name="rating" value="1">
66
+ <label for="rating1">1</label>
67
+ </span>
68
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
69
  </li>
70
+ <li class="formli">
71
+ <label for="name" class="lilabel required"><em>*</em><?php echo Mage::helper('avejanarms')->__('Title') ?></label>
72
  <div class="input-box">
73
+ <input name="title" id="title" title="<?php echo Mage::helper('core')->quoteEscape(Mage::helper('avejanarms')->__('Title')) ?>" value="" class="input-text required-entry validate-length maximum-length-100" maxlength="100" type="text" />
74
  </div>
75
+ </li>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
76
 
77
+ <?php if (Mage::getSingleton('customer/session')->isLoggedIn()) {
78
+
79
+ // Load the customer's data
80
+ $customer = Mage::getSingleton('customer/session')->getCustomer();
81
+ echo '<input name="name" id="name" value="'.$customer->getName().'" class="input-text required-entry" type="hidden" />';
82
+
83
+ echo '<input name="email" id="email" value="'.$customer->getEmail().'" class="input-text required-entry validate-email" type="hidden" />';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
84
 
 
85
 
86
+ }else{ ?>
87
+
88
+
89
+ <li class="fields formli">
90
+ <label for="name" class="lilabel required"><em>*</em><?php echo Mage::helper('avejanarms')->__('Name') ?></label>
91
+ <div class="input-box">
92
+ <input name="name" id="name" title="<?php echo Mage::helper('core')->quoteEscape(Mage::helper('avejanarms')->__('Name')) ?>" value="" class="input-text required-entry" type="text" />
93
  </div>
94
+ </li>
95
+ <li class="field formli">
96
+ <label for="email" class="lilabel required"><em>*</em><?php echo Mage::helper('avejanarms')->__('Email') ?></label>
97
+ <div class="input-box">
98
+ <input name="email" id="email" title="<?php echo Mage::helper('core')->quoteEscape(Mage::helper('avejanarms')->__('Email')) ?>" value="" class="input-text required-entry validate-email" type="email" autocapitalize="off" autocorrect="off" spellcheck="false" />
99
  </div>
100
+ </li>
101
+
102
+ <?php } ?>
103
+
104
+ <li class="wide formli">
105
+ <label for="comment" class="lilabel required"><em>*</em><?php echo Mage::helper('avejanarms')->__('Review') ?></label>
106
+ <div class="input-box">
107
+ <textarea name="comment" id="comment" title="<?php echo Mage::helper('core')->quoteEscape(Mage::helper('avejanarms')->__('Review')) ?>" class="required-entry input-text" cols="5" rows="3"></textarea>
108
+ </div>
109
+ </li>
110
+ </ul>
111
+
112
+ </div>
113
+ <div class="buttons-set">
114
+ <input type="text" name="hideit" id="hideit" value="" style="display:none !important;" />
115
+ <button type="submit" title="<?php echo Mage::helper('core')->quoteEscape(Mage::helper('avejanarms')->__('Submit')) ?>" class="button"><span><span><?php echo Mage::helper('avejanarms')->__('Submit') ?></span></span></button>
116
+ </div>
117
+ </form>
118
+ </div>
119
+
120
+ <div id="avejana-review-reply" class="avejana-review-reply">
121
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
122
  </div>
123
  </div>
124
  </div>
133
 
134
  jQuery(document).ready(function(){
135
  jQuery('html,body').animate({scrollTop:0},0);
136
+ var productid= "<?php echo $current_product->getId();?>";
137
+ setTimeout(function(){
138
+ jQuery.ajax({
139
+ url: "<?php echo $this->getUrl('avejanarms/index/reviewload');?>",
140
+ type: "post",
141
+ data: {'productid':productid} ,
142
+ success: function (response) {
143
+ jQuery('#avejana-review-reply').html(response);
144
+
145
+ },
146
+ error: function(jqXHR, textStatus, errorThrown) {
147
+ console.log(textStatus, errorThrown);
148
+ }
149
+ });
150
+
151
+ var apihit="<?php echo Mage::helper('avejanarms')->getPageView($current_product->getId());?>";
152
+ console.log(apihit);
153
+ }, 200);
154
+
155
+
156
  });
157
  </script>
media/Avejana/avattr.php DELETED
@@ -1,83 +0,0 @@
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</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,9 +51,9 @@ See aveJana&#x2019;s Premium Pricing here. &lt;p&gt;&lt;strong&gt;&lt;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-06-03</date>
55
- <time>09:17:56</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="1f17e167c4cdee3620feed4d8a1851ce"/><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="59863bf5c07f0a2f835a2954b3663381"/><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="306d28f25102596033ffc294b7c36038"/><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="dd82aa7e0da3103ff4e0dca0d64961e4"/></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>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Avejana_ReviewAndQA</name>
4
+ <version>1.1.6</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-06-11</date>
55
+ <time>13:34:33</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="166fe9a0632abff351cdfde4abcba0a0"/><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="1f17e167c4cdee3620feed4d8a1851ce"/><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="8519fda57fc8391b30335099af4a3d15"/><file name="PageLister-1.2.php" hash="ca5e1531313bc3147150d77a15bbb29e"/><file name="PageLister.php" hash="ca5e1531313bc3147150d77a15bbb29e"/><file name="QaController.php" hash="5fa2b7f756c0cb332ade8ce92e2f84b0"/></dir><dir name="etc"><file name="adminhtml.xml" hash="4035421906df30d98a745936bf7290bd"/><file name="config.xml" hash="306d28f25102596033ffc294b7c36038"/><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="91680eb0fee40f66a39eeb2eb72c7680"/></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="generatedqa.phtml" hash="d9f9425965c9a81e49496e5b45517c64"/><file name="generatedreview.phtml" hash="33d46a3d84a420b01709967557adcdd2"/><file name="qa.phtml" hash="d6e44dd9947d5df0d8f54fc56d5f11a4"/><file name="rating.phtml" hash="700b089350d86b28e770cfd9a123c0fb"/><file name="review.phtml" hash="3fc51bd624e4308c3ca97cf286841d0a"/></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="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="ffd1508e2196ba3fc3c470391a756207"/><file name="reviewandqa.css" hash="fc81b0c1cfc26bbbc1f845198826236b"/></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,272 +1 @@
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
- }
1
+ .avejana-content{background-color:#f5f5f5;border-radius:14px;margin:10px 0;z-index:9;padding:20px 0}#product-q-a,.avejana-content,.avejanarms{color:#636363;font-family:"Helvetica Neue",Verdana,Arial,sans-serif;font-size:14px;line-height:1.5}.avejana-content .av-form-list li label.lilabel{float:left;width:24%;text-align:right;padding:6px 0;color:#333;font-family:helvetica}.avejana-content .av-form-list li label.ratingli{margin-right:1%;width:24%;text-align:right;color:#333;font-family:helvetica}.avejana-content .avratings{margin-bottom:-5px}.avejana-content .av-form-list li.formli .input-box{float:right;width:74%}.avejana-content .av-form-list li.formli .input-box input{width:90%;background-color:#fff;border:1px solid #ccc;border-radius:4px;height:2%;padding:6px 12px;transition:border-color .15s ease-in-out 0s,box-shadow .15s ease-in-out 0s}.avejana-content .av-form-list li.formli .input-box input:focus{border-color:#66afe9;box-shadow:0 1px 1px rgba(0,0,0,.075) inset,0 0 8px rgba(102,175,233,.6);outline:0}.avejana-content ol,ul{list-style:none}.avejana-content .av-form-list li label{font-weight:600;font-size:13px}.avejana-content label.required::after,span.required::after{content:" *";color:#df280a}.avejana-content .av-form-list li .input-box textarea{width:90%;max-width:100%;border-radius:3px}.avejana-content .av-form-list li.formli{padding:24px 0}.avejana-content .buttons-set{padding:20px 7.3%;border-top:medium none}.avejana-content .buttons-set button{background-color:#888!important;color:#fff;font-weight:400;font-size:12px}.avejana-content .input-text{-moz-appearance:none;background:#fff;border:1px solid silver;border-radius:2px;font-size:15px}@media only screen and (max-width:500px){.avejana-content .av-form-list li label{font-size:11px!important}.product-collateral .product-tabs-content div,.product-collateral .product-tabs-content fieldset,.product-collateral .product-tabs-content input,.product-collateral .product-tabs-content textarea{max-width:100%!important}.avejana-content .av-form-list li.formli .input-box input{width:width:81%!important}}.starRating:not(old){display:inline-block;width:7.5em;height:1.5em;overflow:hidden;margin-top:.5em}.starRating:not(old)>input{margin-right:-100%;opacity:0}.starRating:not(old)>label{display:block;float:right;position:relative;background:url(../../images/avejana/star-off.svg);background-size:contain}.starRating:not(old)>label:before{content:'';display:block;width:1.5em;height:1.5em;background:url(../../images/avejana/star-on.svg);background-size:contain;opacity:0;transition:opacity .2s linear}@media screen and (max-width:370px){.ratingli{display:flex}.starRating:not(old){width:6.5em}}@media screen and (max-width:789px){.starRating:not(old)>label:before{width:1.5em;height:1.5em}.starRating:not(old){height:1.3em}}.starRating:not(:hover)>:checked~label:before,.starRating:not(old)>label:hover:before,.starRating:not(old)>label:hover~label:before{opacity:1}.star-ratings-sprite{background:url(../../images/avejana/star-rating-sprite.png) repeat-x;font-size:0;height:21px;line-height:0;overflow:hidden;text-indent:-999em;width:110px;margin:12px 0}.star-ratings-sprite-rating{background:url(../../images/avejana/star-rating-sprite.png) 0 100% repeat-x;float:left;height:21px;display:block}#avejanaqa{padding:0 5px}@media screen and (min-width:769px){#avejanaqa{padding:0 20px}}.avejana-review-feld .avejana-feed{margin-left:8%;width:90%;padding:12px 4px}.avejana-review-feld .avejana-initial{float:left;position:relative;text-align:center;width:7%}.avejana-review-feld span.first-letter{font-size:40px;text-align:center;background-color:#888;padding-left:10px;padding-right:10px;color:#FFF}.qafields .reviewtitle{margin-bottom:13px;margin-top:5px}.avejana-review-feld .review_rate .stars{margin:8px 5px 6px 0}.avejana-review-feld .avejana-initial2 strong{color:gray;font-size:16px;text-transform:capitalize}.avejana-review-feld .avejana-initial2 strong a{color:gray}.avejana-review-feld .avejana-initial2 strong a:hover{color:#b39759;text-decoration:none}.avejana-review-feld .reviewtitle a{color:#000}.avejana-review-feld .reviewtitle a:hover{color:gray;text-decoration:none}.avejanahoriline{width:97%;margin:15px}.wpc-comment-author a{color:#555}.wpc-comment-author a:hover{color:#ccc;text-decoration:none}#product-q-a{margin:10px}.hrline{padding:10px 0}.avejana-responce{background-color:#f5f5f5;border-left:5px solid #d0d0d0;margin-left:2px;margin-top:7px;padding:7px}.avejanatitle .star-ratings-sprite{margin-top:3px;margin-bottom:0}.avejanatitle .review-total{float:left}.product-shop .avratings .stars{margin:-5px 5px 7px -3px;clear:both}.product-shop .no-rating{clear:left;margin:0 0 8px}.avejanarms{position:relative;width:100%}.category-products .star-ratings-sprite{margin:12px auto}.catalog-product-view .product-view .price-info .star-ratings-sprite{display:none}.avejana-tweet p{line-height:29px;margin-left:2px}.avejana_review_section{padding-bottom:1.5%;padding-top:1.5%;position:relative}.qatitle,.review_form_display{background:grey;border-color:grey;color:#fff;padding:8px 10px}.qatitle:focus,.qatitle:hover,.review_form_display:focus,.review_form_display:hover{color:#fff;text-decoration:none}.avejana-review-reply{z-index:9}.avejana-tabs{width:100%;display:inline-block;border:1px solid #ccc}.avejana-tab-links:after{display:block;clear:both;content:''}.avejana-tab-links li{margin:0 5px;float:left;list-style:none}.avejana-tab-links span{padding:9px 30px;display:inline-block;border-radius:3px 3px 0 0;font-size:14px;color:#4c4c4c;transition:all linear .15s;cursor:pointer}.avejana-tab-links span:hover{text-decoration:none}.avejana-avejana-tab-content{padding:15px;border-radius:3px;background:#fff}.avejana-tab{display:none}.avejana-tab.active{display:block}ul.avejana-tab-links{background-color:#f4f4f4;border-bottom:1px solid #ccc}.avejana-tab-links li.active{background-color:#fff;border-bottom:1px solid #fff;border-left:1px solid #ccc;border-right:1px solid #ccc;margin-bottom:-1px}.avejana-tab-links li.first{border-left:none;margin-left:0}.avejanatitle .pull-right{color:#636363}@media screen and (min-width:789px){.avejanatitle .pull-right{float:right;width:21%}}@media screen and (max-width:767px){.avejana-review-feld .avejana-feed{margin-left:20%;width:80%}}@media screen and (max-width:350px){.av-button-title.avejanatitle{margin-bottom:30px}}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
skin/frontend/base/default/css/avejana/avejana@.css DELETED
@@ -1,272 +0,0 @@
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
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
skin/frontend/base/default/css/avejana/reviewandqa.css CHANGED
@@ -1,220 +1 @@
1
- .extra-tabs {width: 100%; overflow: hidden; margin: 0!important;
2
- background-color: #f4f4f4;
3
- border: 1px solid #cccccc;
4
- }
5
- .extra-tabs li {
6
- float: left;
7
- list-style: none;
8
- /*border: solid 1px #ddd;*/
9
- margin-left: 2px;
10
- /*background-color: #eee;*/
11
- transition: all 500ms ease;
12
- -moz-transition: all 500ms ease;
13
- -webkit-transition: all 500ms ease;
14
- -o-transition: all 500ms ease;
15
- }
16
-
17
- .avejana-review .detail {
18
- line-height: 20px;
19
- }
20
- .avejana-review {
21
- border-bottom: 1px solid #DDDDDD;
22
- margin-bottom: 10px;
23
- padding-bottom: 3px;
24
- }
25
- .avejana-review:last-child {
26
- border-bottom: medium none;
27
- }
28
- .avejana_link, .awejana-logo{
29
- font-size:12px;float:left;
30
- }
31
- .aveja-logo-holder.bottom_left, .aveja-logo-holder.bottom_center,.aveja-logo-holder.bottom_right,{
32
- margin-bottom: 5px;padding-bottom: 5px;
33
- }
34
- .awejana-logo{
35
- margin-left:5px;
36
- }
37
- .avejana_link{
38
- margin-top:3px;
39
- }
40
-
41
- .avejana-rating-summary-right{
42
- width: 200px;float:left;
43
- text-align:right;
44
- }
45
- .aveja-logo-holder.bottom_right, .aveja-logo-holder.bottom_center, .aveja-logo-holder.bottom_left {
46
- bottom: 10px;
47
- }
48
- .review_header_div{
49
- width:70%;float:left;
50
- }
51
-
52
- .aveja-logo-holder{display: inline-block;position:relative;height:20px;}
53
-
54
- .avejana-review-top-links {
55
- display: inline-block;
56
- width: 100%;
57
- }
58
- .review-form-link {
59
- float: left;
60
- width: 200px;
61
- }
62
- .avejana-rating-summary {
63
- display: inline-flex;
64
- float: right;
65
- line-height: 1;
66
- }
67
- .avejana-review-count {
68
- margin: 0 5px 0 0;
69
- }
70
- .avejana-rating-summary .ratings-table {
71
- margin: 0 0 0 5px;
72
- }
73
- .avejana-review .review-section {
74
- display: inline-block;
75
- width: 100%;
76
- }
77
- .review-info {
78
- float: left;
79
- width: auto;
80
- }
81
- .avejana-review .ratings-table {
82
- float: left;
83
- height: 20px;
84
- line-height: 1;
85
- }
86
- .rview-title.ref-link {
87
- float: left;
88
- width: 100%;
89
- line-height: 1;
90
- margin: 5px 0;
91
- font-weight: bold;
92
- }
93
- .avejana-review .reviewer {
94
- font-size: 16px;
95
- font-weight: bold;
96
- }
97
- .avejana-review .post-date {
98
- margin: 0 5px;
99
- }
100
- .review-descripition {
101
- float: left;
102
- width: 100%;
103
- line-height: 1;
104
- margin: 5px 0;
105
- }
106
-
107
- .avejana-header {
108
-
109
- color: #44d43b;
110
- font-weight: bold;
111
- text-transform: capitalize;
112
- }
113
- .response-section {
114
- text-indent: 20px;
115
- }
116
- .response-info {
117
- line-height: 1;
118
- margin: 5px 0;
119
- }
120
- .response {
121
- line-height: 1.5em;
122
- margin: 5px;
123
- }
124
- .show-logo-review {
125
- display: none !important;
126
- }
127
- .extra-tabs-content{
128
- position: relative;
129
- }
130
-
131
- .aveja-logo-holder.top_right, .aveja-logo-holder.top_center, .aveja-logo-holder.top_left{
132
- top: 0;
133
- }
134
- .aveja-logo-holder.top_left{
135
- left: 0;
136
- }
137
- .aveja-logo-holder.top_right{
138
- right: 0;
139
- position:absolute;
140
- }
141
- .aveja-logo-holder.top_center{
142
- left: 45%;
143
- }
144
- #customer-reviews.top_right, #customer-reviews.top_center, #customer-reviews.top_left{
145
- margin-top: 15px;
146
- }
147
- .aveja-logo-holder.bottom_right, .aveja-logo-holder.bottom_center, .aveja-logo-holder.bottom_left{
148
- bottom: 0;
149
- position:absolute;
150
- }
151
- .aveja-logo-holder.bottom_left{
152
- left: 0;
153
- }
154
- .aveja-logo-holder.bottom_right{
155
- right: 0;
156
- }
157
- .aveja-logo-holder.bottom_center{
158
- left: 45%;
159
- }
160
- #customer-reviews.bottom_right, #customer-reviews.bottom_center, #customer-reviews.bottom_left{
161
- margin-bottom: 5px;
162
- }
163
- .review-section .ratings-table .rating-box{
164
- margin: 5px 0 0 15px;
165
- }
166
- .head .quesansheading {
167
- margin-bottom: 10px;
168
- color: #636363;
169
- font-family: "Raleway", "Helvetica Neue", Verdana, Arial, sans-serif;
170
- font-size: 14px;
171
- font-weight: bold;
172
- font-style: normal;
173
- line-height: 1.4;
174
- text-rendering: optimizeSpeed;
175
- text-transform: uppercase;
176
- }
177
- .extra-tabs-content #customer-reviews .avejana-pager .pager > .count-container
178
- {
179
- float:none !important;
180
- }
181
- .extra-tabs-content #customer-reviews .avejana-pager .pager .pages
182
- {
183
- float:left !important;
184
- margin-left:0 !important;
185
- }
186
- .extra-tabs-content #customer-reviews .avejana-rating-summary-right
187
- {
188
- width:150px !important;
189
- }
190
-
191
- .wpc-comment-date {
192
- color: #999;
193
- float: left;
194
- font-size: 14px;
195
- line-height: 20px;
196
- margin-right: 7px;
197
- margin-top: 3px;
198
- white-space: nowrap;
199
- }
200
- .wpc-comment-text {
201
- color: #555;
202
- font-size: 14px;
203
- }
204
- .wpc-comment-answer .wpc-comment-author {
205
- color: #65bd40 !important;
206
- }
207
- .wpc-comment-author {
208
- color: #999 !important;
209
- padding-top: 2px;
210
- }
211
- /*.label{
212
- color: #000 !important;
213
- display: table-cell !important;
214
- }
215
- .pager li > a{
216
- padding: 0 18px 0 12px !important;
217
- }*/
218
- #avejana_review_from {
219
- color: #fff;
220
- }
1
+ .extra-tabs{width:100%;overflow:hidden;margin:0!important;background-color:#f4f4f4;border:1px solid #ccc}.extra-tabs li{float:left;list-style:none;margin-left:2px;transition:all .5s ease;-moz-transition:all .5s ease;-webkit-transition:all .5s ease;-o-transition:all .5s ease}.avejana-review .detail{line-height:20px}.avejana-review{border-bottom:1px solid #DDD;margin-bottom:10px;padding-bottom:3px}.avejana-review:last-child{border-bottom:medium none}.avejana_link,.awejana-logo{font-size:12px;float:left},.aveja-logo-holder.bottom_center,.aveja-logo-holder.bottom_left,.aveja-logo-holder.bottom_right{margin-bottom:5px;padding-bottom:5px}.awejana-logo{margin-left:5px}.avejana_link{margin-top:3px}.avejana-rating-summary-right{width:200px;float:left;text-align:right}.review_header_div{width:70%;float:left}.aveja-logo-holder{display:inline-block;position:relative;height:20px}.avejana-review-top-links{display:inline-block;width:100%}.review-form-link{float:left;width:200px}.avejana-rating-summary{display:inline-flex;float:right;line-height:1}.avejana-review-count{margin:0 5px 0 0}.avejana-rating-summary .ratings-table{margin:0 0 0 5px}.avejana-review .review-section{display:inline-block;width:100%}.review-info{float:left;width:auto}.review-descripition,.rview-title.ref-link{float:left;width:100%}.avejana-review .ratings-table{float:left;height:20px;line-height:1}.rview-title.ref-link{line-height:1;margin:5px 0;font-weight:700}.avejana-review .reviewer{font-size:16px;font-weight:700}.avejana-review .post-date{margin:0 5px}.response-info,.review-descripition{line-height:1;margin:5px 0}.avejana-header{color:#44d43b;font-weight:700;text-transform:capitalize}.response-section{text-indent:20px}.response{line-height:1.5em;margin:5px}.show-logo-review{display:none!important}.extra-tabs-content{position:relative}.aveja-logo-holder.top_center,.aveja-logo-holder.top_left,.aveja-logo-holder.top_right{top:0}.aveja-logo-holder.top_left{left:0}.aveja-logo-holder.top_right{right:0;position:absolute}.aveja-logo-holder.top_center{left:45%}#customer-reviews.top_center,#customer-reviews.top_left,#customer-reviews.top_right{margin-top:15px}.aveja-logo-holder.bottom_center,.aveja-logo-holder.bottom_left,.aveja-logo-holder.bottom_right{bottom:0;position:absolute}.aveja-logo-holder.bottom_left{left:0}.aveja-logo-holder.bottom_right{right:0}.aveja-logo-holder.bottom_center{left:45%}#customer-reviews.bottom_center,#customer-reviews.bottom_left,#customer-reviews.bottom_right{margin-bottom:5px}.review-section .ratings-table .rating-box{margin:5px 0 0 15px}.head .quesansheading{margin-bottom:10px;color:#636363;font-family:Raleway,"Helvetica Neue",Verdana,Arial,sans-serif;font-size:14px;font-weight:700;font-style:normal;line-height:1.4;text-rendering:optimizeSpeed;text-transform:uppercase}.extra-tabs-content #customer-reviews .avejana-pager .pager>.count-container{float:none!important}.extra-tabs-content #customer-reviews .avejana-pager .pager .pages{float:left!important;margin-left:0!important}.extra-tabs-content #customer-reviews .avejana-rating-summary-right{width:150px!important}.wpc-comment-date{color:#999;float:left;font-size:14px;line-height:20px;margin-right:7px;margin-top:3px;white-space:nowrap}.wpc-comment-text{color:#555;font-size:14px}.wpc-comment-answer .wpc-comment-author{color:#65bd40!important}.wpc-comment-author{color:#999!important;padding-top:2px}#avejana_review_from{color:#fff}