Version Description
- 2017-08-23
Download this release
Release Info
| Developer | codeinwp |
| Plugin | |
| Version | 3.0.1 |
| Comparing to | |
| See all releases | |
Code changes from version 3.0.0 to 3.0.1
- CHANGELOG.md +4 -2
- assets/css/frontpage.css +351 -349
- includes/class-wppr.php +3 -6
- includes/legacy.php +37 -0
- includes/public/class-wppr-public.php +120 -199
- includes/public/layouts/default-tpl.php +17 -17
- includes/public/layouts/rating-tpl.php +2 -2
- includes/public/layouts/rich-json-ld.php +2 -2
- includes/public/layouts/score-tpl.php +1 -1
- includes/public/layouts/widget/default.php +1 -1
- languages/wp-product-review.pot +7 -7
- readme.txt +6 -0
- vendor/autoload.php +1 -1
- vendor/autoload_52.php +1 -1
- vendor/composer/autoload_real.php +5 -5
- vendor/composer/autoload_real_52.php +3 -3
- wp-product-review.php +4 -2
CHANGELOG.md
CHANGED
|
@@ -1,7 +1,9 @@
|
|
| 1 |
|
| 2 |
-
### v3.0.
|
| 3 |
**Changes:**
|
| 4 |
-
|
|
|
|
|
|
|
| 5 |
### v3.0.0 - 2017-08-23
|
| 6 |
**Changes:**
|
| 7 |
* Major code refactor ( Please test before update )
|
| 1 |
|
| 2 |
+
### v3.0.1 - 2017-08-23
|
| 3 |
**Changes:**
|
| 4 |
+
* Fixed backwards compatibility when using cwppos_show_review.
|
| 5 |
+
* Fixed undefined index error in widgets.
|
| 6 |
+
|
| 7 |
### v3.0.0 - 2017-08-23
|
| 8 |
**Changes:**
|
| 9 |
* Major code refactor ( Please test before update )
|
assets/css/frontpage.css
CHANGED
|
@@ -1,16 +1,16 @@
|
|
| 1 |
/*
|
| 2 |
-
Version: 3.0.
|
| 3 |
*/
|
| 4 |
#review-statistics {
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
}
|
| 9 |
|
| 10 |
.cwp-item-price {
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
}
|
| 15 |
|
| 16 |
#review-statistics h1,
|
|
@@ -19,628 +19,630 @@
|
|
| 19 |
#review-statistics h4,
|
| 20 |
#review-statistics h5,
|
| 21 |
#review-statistics h6 {
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
}
|
| 28 |
|
| 29 |
.rev-option h3 {
|
| 30 |
-
|
| 31 |
}
|
| 32 |
|
| 33 |
#review-statistics .photo-wrapup {
|
| 34 |
-
|
| 35 |
}
|
| 36 |
|
| 37 |
#review-statistics {
|
| 38 |
-
|
| 39 |
}
|
| 40 |
|
| 41 |
#review-statistics .sec-top {
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
}
|
| 46 |
|
| 47 |
#review-statistics .sec-top h2 {
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
}
|
| 61 |
|
| 62 |
#review-statistics .sec-top h2 i {
|
| 63 |
-
|
| 64 |
-
|
| 65 |
}
|
| 66 |
|
| 67 |
#review-statistics .container .edit-article {
|
| 68 |
-
|
| 69 |
-
|
| 70 |
}
|
| 71 |
|
| 72 |
#review-statistics .container .edit-article a {
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
}
|
| 81 |
|
| 82 |
#review-statistics .container .edit-article a:hover {
|
| 83 |
-
|
| 84 |
}
|
| 85 |
|
| 86 |
#review-statistics .article-meta {
|
| 87 |
-
|
| 88 |
}
|
| 89 |
|
| 90 |
#review-statistics .icon-bar-chart:before {
|
| 91 |
-
|
| 92 |
}
|
| 93 |
|
| 94 |
#review-statistics .review-wu-right .cons {
|
| 95 |
-
|
| 96 |
}
|
| 97 |
|
| 98 |
#review-statistics .sec-top h2 i {
|
| 99 |
-
|
| 100 |
-
|
| 101 |
}
|
| 102 |
|
| 103 |
#review-statistics .cwpr_clearfix:after {
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
}
|
| 111 |
|
| 112 |
#review-statistics .cwpr_clearfix:after {
|
| 113 |
-
|
| 114 |
}
|
| 115 |
|
| 116 |
#review-statistics .cwpr_clearfix {
|
| 117 |
-
|
| 118 |
}
|
| 119 |
|
| 120 |
#review-statistics .cwp-review-chart {
|
| 121 |
-
|
| 122 |
-
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
|
| 126 |
}
|
| 127 |
|
| 128 |
#review-statistics .cwp-review-percentage span {
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
|
| 135 |
}
|
| 136 |
|
| 137 |
.cwp-review-rating {
|
| 138 |
-
|
| 139 |
}
|
| 140 |
|
| 141 |
#review-statistics .cwp_easyPieChart {
|
| 142 |
-
|
| 143 |
-
|
| 144 |
}
|
| 145 |
|
| 146 |
#review-statistics .cwp_easyPieChart canvas {
|
| 147 |
-
|
| 148 |
-
|
| 149 |
-
|
| 150 |
}
|
| 151 |
|
| 152 |
#review-statistics .review-wrap-up {
|
| 153 |
-
|
| 154 |
-
|
| 155 |
-
|
| 156 |
}
|
| 157 |
|
| 158 |
#review-statistics .review-wu-bars h3,
|
| 159 |
.review-wu-bars span {
|
| 160 |
-
|
| 161 |
-
|
| 162 |
-
|
| 163 |
-
|
| 164 |
-
|
| 165 |
-
|
| 166 |
-
|
| 167 |
}
|
| 168 |
|
| 169 |
#review-statistics .review-wu-bars h3 {
|
| 170 |
-
|
| 171 |
}
|
| 172 |
|
| 173 |
#review-statistics .review-wu-bars span {
|
| 174 |
-
|
| 175 |
-
|
| 176 |
-
|
| 177 |
}
|
| 178 |
|
| 179 |
#review-statistics .review-wu-bars {
|
| 180 |
-
|
| 181 |
-
|
| 182 |
-
|
| 183 |
-
|
| 184 |
-
|
| 185 |
-
|
| 186 |
-
|
| 187 |
}
|
| 188 |
|
| 189 |
#review-statistics .review-wu-bars ul {
|
| 190 |
-
|
| 191 |
-
|
| 192 |
-
|
| 193 |
-
|
| 194 |
}
|
| 195 |
|
| 196 |
#review-statistics .review-wu-bars ul li {
|
| 197 |
-
|
| 198 |
-
|
| 199 |
-
|
| 200 |
-
|
| 201 |
-
|
| 202 |
}
|
| 203 |
|
| 204 |
#review-statistics .rev-option.customBarIcon ul li {
|
| 205 |
-
|
| 206 |
-
|
| 207 |
-
|
| 208 |
-
|
| 209 |
-
|
| 210 |
}
|
| 211 |
|
| 212 |
#review-statistics .rev-option.customBarIcon ul li i {
|
| 213 |
-
|
| 214 |
-
|
| 215 |
-
|
| 216 |
-
|
| 217 |
}
|
| 218 |
|
| 219 |
#review-statistics .rev-option.customBarIcon h3,
|
| 220 |
#review-statistics .rev-option.customBarIcon span {
|
| 221 |
-
|
| 222 |
}
|
| 223 |
|
| 224 |
#review-statistics .review-wu-bars ul li:nth-child(10) {
|
| 225 |
-
|
| 226 |
}
|
| 227 |
|
| 228 |
#review-statistics .review-wu-bars .rev-option div > * {
|
| 229 |
-
|
| 230 |
}
|
| 231 |
|
| 232 |
#review-statistics .review-wrap-up .cwpr-review-top {
|
| 233 |
-
|
| 234 |
-
|
| 235 |
-
|
| 236 |
}
|
| 237 |
|
| 238 |
#review-statistics .review-wrap-up .cwpr-review-top .cwp-item {
|
| 239 |
-
|
| 240 |
-
|
| 241 |
-
|
| 242 |
-
|
| 243 |
}
|
| 244 |
|
| 245 |
#review-statistics .review-wrap-up .cwpr-review-top h2.cwp-item {
|
| 246 |
-
|
| 247 |
-
|
| 248 |
-
|
| 249 |
}
|
| 250 |
|
| 251 |
#review-statistics .review-wrap-up .cwpr-review-top .cwp-item-category a {
|
| 252 |
-
|
| 253 |
-
|
| 254 |
-
|
| 255 |
-
|
| 256 |
}
|
| 257 |
|
| 258 |
#review-statistics .review-wrap-up .cwpr-review-top .cwp-item-category a:hover {
|
| 259 |
-
|
| 260 |
}
|
| 261 |
|
| 262 |
#review-statistics .review-wrap-up .cwpr-review-top .cwp-item-category i {
|
| 263 |
-
|
| 264 |
-
|
| 265 |
}
|
| 266 |
|
| 267 |
#review-statistics .review-wrap-up .review-wu-left {
|
| 268 |
-
|
| 269 |
-
|
| 270 |
-
|
| 271 |
}
|
| 272 |
|
| 273 |
#review-statistics .review-wrap-up .review-wu-left .rev-wu-image {
|
| 274 |
-
|
| 275 |
-
|
| 276 |
-
|
| 277 |
-
|
| 278 |
-
|
| 279 |
-
|
| 280 |
-
|
| 281 |
-
|
| 282 |
}
|
| 283 |
|
| 284 |
#review-statistics .review-wrap-up .review-wu-left .rev-wu-image img {
|
| 285 |
-
|
| 286 |
-
|
| 287 |
-
|
| 288 |
-
|
| 289 |
}
|
| 290 |
|
| 291 |
#review-statistics .review-wrap-up .review-wu-left .review-wu-grade {
|
| 292 |
-
|
| 293 |
-
|
| 294 |
-
|
| 295 |
-
|
| 296 |
-
|
| 297 |
-
|
| 298 |
-
|
| 299 |
-
|
| 300 |
-
|
| 301 |
-
|
| 302 |
}
|
| 303 |
|
| 304 |
#review-statistics .review-wrap-up .review-wu-left .review-wu-grade .cwp-review-chart {
|
| 305 |
-
|
| 306 |
-
|
| 307 |
-
|
| 308 |
-
|
| 309 |
}
|
| 310 |
|
| 311 |
#review-statistics .review-wrap-up .review-wu-left .review-wu-grade .cwp-review-chart .cwp-review-percentage {
|
| 312 |
-
|
| 313 |
}
|
| 314 |
|
| 315 |
#review-statistics .review-wrap-up .review-wu-right {
|
| 316 |
-
|
| 317 |
-
|
| 318 |
-
|
| 319 |
-
|
| 320 |
}
|
| 321 |
|
| 322 |
#review-statistics .review-wrap-up .review-wu-right h2 {
|
| 323 |
-
|
| 324 |
-
|
| 325 |
-
|
| 326 |
-
|
| 327 |
-
|
| 328 |
}
|
| 329 |
|
| 330 |
#review-statistics .review-wrap-up .review-wu-right ul li {
|
| 331 |
-
|
| 332 |
-
|
| 333 |
-
|
| 334 |
-
|
| 335 |
-
|
| 336 |
}
|
| 337 |
|
| 338 |
#review-statistics .review-wrap-up .review-wu-right ul li:before {
|
| 339 |
-
|
| 340 |
-
|
| 341 |
}
|
| 342 |
|
| 343 |
.review-wu-right ul li {
|
| 344 |
-
|
| 345 |
}
|
| 346 |
|
| 347 |
.wppr-comment-form-meta input {
|
| 348 |
-
|
| 349 |
}
|
| 350 |
|
| 351 |
.rev-wu-image img {
|
| 352 |
-
|
| 353 |
-
|
| 354 |
-
|
| 355 |
}
|
| 356 |
|
| 357 |
.rev-option ul li {
|
| 358 |
-
|
| 359 |
-
|
| 360 |
-
|
| 361 |
-
|
| 362 |
}
|
| 363 |
|
| 364 |
.review-wu-bars,
|
| 365 |
.review-wu-right {
|
| 366 |
-
|
| 367 |
-
|
| 368 |
-
|
| 369 |
}
|
| 370 |
|
| 371 |
#review-statistics .rev-option {
|
| 372 |
-
|
| 373 |
}
|
| 374 |
|
| 375 |
.affiliate-button {
|
| 376 |
-
|
| 377 |
-
|
| 378 |
-
|
| 379 |
}
|
| 380 |
|
| 381 |
.affiliate-button2 {
|
| 382 |
-
|
| 383 |
-
|
| 384 |
-
|
| 385 |
-
|
| 386 |
}
|
| 387 |
|
| 388 |
.affiliate-button a {
|
| 389 |
-
|
| 390 |
-
|
| 391 |
-
|
| 392 |
-
|
| 393 |
-
|
| 394 |
-
|
| 395 |
}
|
| 396 |
|
| 397 |
.affiliate-button a:hover span {
|
| 398 |
-
|
|
|
|
| 399 |
}
|
| 400 |
|
| 401 |
.affiliate-button a span {
|
| 402 |
-
|
| 403 |
-
|
| 404 |
-
|
| 405 |
-
|
| 406 |
-
|
| 407 |
-
|
| 408 |
-
|
| 409 |
-
|
| 410 |
}
|
| 411 |
|
| 412 |
#review-statistics .review-wrap-up .review-wu-right ul {
|
| 413 |
-
|
| 414 |
-
|
| 415 |
-
|
| 416 |
-
|
|
|
|
| 417 |
}
|
| 418 |
|
| 419 |
#wppr-slider-comment .wppr-comment-form-meta {
|
| 420 |
-
|
| 421 |
-
|
| 422 |
-
|
| 423 |
-
|
| 424 |
}
|
| 425 |
|
| 426 |
#wppr-slider-comment .wppr-comment-form-meta label {
|
| 427 |
-
|
| 428 |
-
|
| 429 |
-
|
| 430 |
-
|
| 431 |
-
|
| 432 |
-
|
| 433 |
-
|
| 434 |
}
|
| 435 |
|
| 436 |
#wppr-slider-comment .wppr-comment-form-meta .meta_option_input {
|
| 437 |
-
|
| 438 |
-
|
| 439 |
-
|
| 440 |
-
|
| 441 |
-
|
| 442 |
-
|
| 443 |
-
|
| 444 |
-
|
| 445 |
-
|
| 446 |
-
|
| 447 |
-
|
| 448 |
}
|
| 449 |
|
| 450 |
#wppr-slider-comment .wppr-comment-form-meta .wppr-comment-meta-slider {
|
| 451 |
-
|
| 452 |
-
|
| 453 |
-
|
| 454 |
-
|
| 455 |
-
|
| 456 |
-
|
| 457 |
-
|
| 458 |
-
|
| 459 |
}
|
| 460 |
|
| 461 |
#wppr-slider-comment .wppr-comment-form-meta .wppr-comment-meta-slider .ui-slider-handle {
|
| 462 |
-
|
| 463 |
-
|
| 464 |
-
|
| 465 |
-
|
| 466 |
-
|
| 467 |
-
|
| 468 |
-
|
| 469 |
}
|
| 470 |
|
| 471 |
#wppr-slider-comment .wppr-comment-form-meta .wppr-comment-meta-slider .ui-slider-handle:hover {
|
| 472 |
-
|
| 473 |
-
|
| 474 |
-
|
| 475 |
}
|
| 476 |
|
| 477 |
#wppr-slider-comment cite.review-info {
|
| 478 |
-
|
| 479 |
-
|
| 480 |
}
|
| 481 |
|
| 482 |
/* User Comment Grades Styles */
|
| 483 |
|
| 484 |
.user-comments-grades {
|
| 485 |
-
|
| 486 |
-
|
| 487 |
-
|
| 488 |
-
|
| 489 |
-
|
| 490 |
-
|
| 491 |
-
|
| 492 |
}
|
| 493 |
|
| 494 |
.user-comments-grades * {
|
| 495 |
-
|
| 496 |
-
|
| 497 |
}
|
| 498 |
|
| 499 |
.user-comments-grades .comment-meta-option-name {
|
| 500 |
-
|
| 501 |
-
|
| 502 |
-
|
| 503 |
-
|
| 504 |
-
|
| 505 |
}
|
| 506 |
|
| 507 |
.user-comments-grades .comment-meta-option-grade {
|
| 508 |
-
|
| 509 |
-
|
| 510 |
-
|
| 511 |
-
|
| 512 |
-
|
| 513 |
}
|
| 514 |
|
| 515 |
.user-comments-grades .comment-meta-option {
|
| 516 |
-
|
| 517 |
}
|
| 518 |
|
| 519 |
.user-comments-grades .comment-meta-option:last-of-type {
|
| 520 |
-
|
| 521 |
}
|
| 522 |
|
| 523 |
/* Comment Form Meta Options - GRADE BAR */
|
| 524 |
|
| 525 |
.comment-meta-option .comment-meta-grade-bar {
|
| 526 |
-
|
| 527 |
-
|
| 528 |
-
|
| 529 |
-
|
| 530 |
-
|
| 531 |
-
|
| 532 |
-
|
| 533 |
}
|
| 534 |
|
| 535 |
.comment-meta-grade {
|
| 536 |
-
|
| 537 |
}
|
| 538 |
|
| 539 |
#wppr-slider-comment {
|
| 540 |
-
|
| 541 |
-
|
| 542 |
-
|
| 543 |
-
|
| 544 |
}
|
| 545 |
|
| 546 |
.wppr-comment-form-meta {
|
| 547 |
-
|
| 548 |
}
|
| 549 |
|
| 550 |
.cwpr_clearfix {
|
| 551 |
-
|
| 552 |
}
|
| 553 |
|
| 554 |
/* Comment Form Meta Options - GRADE BAR */
|
| 555 |
|
| 556 |
#wppr-slider-comment .comment-meta-option .comment-meta-grade-bar {
|
| 557 |
-
|
| 558 |
-
|
| 559 |
-
|
| 560 |
-
|
| 561 |
-
|
| 562 |
-
|
| 563 |
-
|
| 564 |
}
|
| 565 |
|
| 566 |
.review-wu-right ul li {
|
| 567 |
-
|
| 568 |
}
|
| 569 |
|
| 570 |
.cwp-chart-embed {
|
| 571 |
-
|
| 572 |
-
|
| 573 |
}
|
| 574 |
|
| 575 |
@media (max-width: 440px) {
|
| 576 |
-
|
| 577 |
-
|
| 578 |
-
|
| 579 |
|
| 580 |
-
|
| 581 |
-
|
| 582 |
-
|
| 583 |
-
|
| 584 |
|
| 585 |
-
|
| 586 |
-
|
| 587 |
-
|
| 588 |
|
| 589 |
-
|
| 590 |
-
|
| 591 |
-
|
| 592 |
-
|
| 593 |
|
| 594 |
-
|
| 595 |
-
|
| 596 |
-
|
| 597 |
|
| 598 |
-
|
| 599 |
-
|
| 600 |
-
|
| 601 |
}
|
| 602 |
|
| 603 |
@media (min-width: 440px) and (max-width: 700px) {
|
| 604 |
-
|
| 605 |
-
|
| 606 |
-
|
| 607 |
-
|
| 608 |
|
| 609 |
-
|
| 610 |
-
|
| 611 |
-
|
| 612 |
|
| 613 |
-
|
| 614 |
-
|
| 615 |
-
|
| 616 |
}
|
| 617 |
|
| 618 |
@media (min-width: 700px) and (max-width: 820px) {
|
| 619 |
-
|
| 620 |
-
|
| 621 |
-
|
| 622 |
-
|
| 623 |
|
| 624 |
-
|
| 625 |
-
|
| 626 |
-
|
| 627 |
|
| 628 |
-
|
| 629 |
-
|
| 630 |
-
|
| 631 |
}
|
| 632 |
|
| 633 |
.cwp-review-percentage.cwp_easyPieChart canvas {
|
| 634 |
-
|
| 635 |
-
|
| 636 |
}
|
| 637 |
|
| 638 |
.cwp-review-percentage.cwp_easyPieChart {
|
| 639 |
-
|
| 640 |
-
|
| 641 |
}
|
| 642 |
|
| 643 |
.review-wu-grade .cwp-review-chart {
|
| 644 |
-
|
| 645 |
-
|
| 646 |
}
|
| 1 |
/*
|
| 2 |
+
Version: 3.0.1
|
| 3 |
*/
|
| 4 |
#review-statistics {
|
| 5 |
+
width: 100%;
|
| 6 |
+
margin: auto;
|
| 7 |
+
font-family: FontAwesome;
|
| 8 |
}
|
| 9 |
|
| 10 |
.cwp-item-price {
|
| 11 |
+
float: right;
|
| 12 |
+
font-family: "Lato", Helvetica, sans-serif;
|
| 13 |
+
font-size: 1.75em;
|
| 14 |
}
|
| 15 |
|
| 16 |
#review-statistics h1,
|
| 19 |
#review-statistics h4,
|
| 20 |
#review-statistics h5,
|
| 21 |
#review-statistics h6 {
|
| 22 |
+
margin: 0;
|
| 23 |
+
padding: 0;
|
| 24 |
+
border: none;
|
| 25 |
+
font-family: "Lato", Helvetica, sans-serif;
|
| 26 |
+
font-weight: normal;
|
| 27 |
}
|
| 28 |
|
| 29 |
.rev-option h3 {
|
| 30 |
+
width: auto !important;
|
| 31 |
}
|
| 32 |
|
| 33 |
#review-statistics .photo-wrapup {
|
| 34 |
+
width: 100%;
|
| 35 |
}
|
| 36 |
|
| 37 |
#review-statistics {
|
| 38 |
+
font-family: FontAwesome;
|
| 39 |
}
|
| 40 |
|
| 41 |
#review-statistics .sec-top {
|
| 42 |
+
margin: 40px 0 20px 0;
|
| 43 |
+
border-top: 1px solid #ddd;
|
| 44 |
+
border-bottom: 1px solid #ddd;
|
| 45 |
}
|
| 46 |
|
| 47 |
#review-statistics .sec-top h2 {
|
| 48 |
+
margin: 0;
|
| 49 |
+
padding: 20px 0;
|
| 50 |
+
padding-left: 20px;
|
| 51 |
+
border-right: 4px solid #d8d8d8;
|
| 52 |
+
border-left: 4px solid #d8d8d8;
|
| 53 |
+
font-family: "Open Sans", Helvetica, Arial, sans-serif;
|
| 54 |
+
font-size: 1.643em;
|
| 55 |
+
font-weight: normal;
|
| 56 |
+
font-style: italic;
|
| 57 |
+
line-height: 0;
|
| 58 |
+
letter-spacing: -1px;
|
| 59 |
+
text-transform: uppercase;
|
| 60 |
}
|
| 61 |
|
| 62 |
#review-statistics .sec-top h2 i {
|
| 63 |
+
margin-right: 10px;
|
| 64 |
+
color: #d9d9d9;
|
| 65 |
}
|
| 66 |
|
| 67 |
#review-statistics .container .edit-article {
|
| 68 |
+
padding-right: 35px;
|
| 69 |
+
text-align: right;
|
| 70 |
}
|
| 71 |
|
| 72 |
#review-statistics .container .edit-article a {
|
| 73 |
+
padding: 5px 10px;
|
| 74 |
+
border-radius: 4px;
|
| 75 |
+
color: #7d7d7d;
|
| 76 |
+
background: #f3f3f3;
|
| 77 |
+
font-size: 12px;
|
| 78 |
+
text-decoration: none;
|
| 79 |
+
text-transform: uppercase;
|
| 80 |
}
|
| 81 |
|
| 82 |
#review-statistics .container .edit-article a:hover {
|
| 83 |
+
background: #ddd;
|
| 84 |
}
|
| 85 |
|
| 86 |
#review-statistics .article-meta {
|
| 87 |
+
margin: 20px 0 20px 0;
|
| 88 |
}
|
| 89 |
|
| 90 |
#review-statistics .icon-bar-chart:before {
|
| 91 |
+
content: "\f080";
|
| 92 |
}
|
| 93 |
|
| 94 |
#review-statistics .review-wu-right .cons {
|
| 95 |
+
margin-top: 15px;
|
| 96 |
}
|
| 97 |
|
| 98 |
#review-statistics .sec-top h2 i {
|
| 99 |
+
margin-right: 10px;
|
| 100 |
+
color: #d9d9d9;
|
| 101 |
}
|
| 102 |
|
| 103 |
#review-statistics .cwpr_clearfix:after {
|
| 104 |
+
display: block;
|
| 105 |
+
visibility: hidden;
|
| 106 |
+
overflow: hidden;
|
| 107 |
+
width: 0;
|
| 108 |
+
height: 0;
|
| 109 |
+
content: "\0020";
|
| 110 |
}
|
| 111 |
|
| 112 |
#review-statistics .cwpr_clearfix:after {
|
| 113 |
+
clear: both;
|
| 114 |
}
|
| 115 |
|
| 116 |
#review-statistics .cwpr_clearfix {
|
| 117 |
+
zoom: 1;
|
| 118 |
}
|
| 119 |
|
| 120 |
#review-statistics .cwp-review-chart {
|
| 121 |
+
float: left;
|
| 122 |
+
position: relative !important;
|
| 123 |
+
top: 0;
|
| 124 |
+
right: 0;
|
| 125 |
+
border-radius: 50%;
|
| 126 |
}
|
| 127 |
|
| 128 |
#review-statistics .cwp-review-percentage span {
|
| 129 |
+
display: block;
|
| 130 |
+
border-radius: 50%;
|
| 131 |
+
background: #fff;
|
| 132 |
+
font-family: "Lato";
|
| 133 |
+
font-size: 17px;
|
| 134 |
+
font-weight: 900;
|
| 135 |
}
|
| 136 |
|
| 137 |
.cwp-review-rating {
|
| 138 |
+
line-height: inherit !important;
|
| 139 |
}
|
| 140 |
|
| 141 |
#review-statistics .cwp_easyPieChart {
|
| 142 |
+
position: relative;
|
| 143 |
+
text-align: center;
|
| 144 |
}
|
| 145 |
|
| 146 |
#review-statistics .cwp_easyPieChart canvas {
|
| 147 |
+
position: absolute;
|
| 148 |
+
top: 0;
|
| 149 |
+
left: 0;
|
| 150 |
}
|
| 151 |
|
| 152 |
#review-statistics .review-wrap-up {
|
| 153 |
+
margin-top: 20px;
|
| 154 |
+
border: 1px solid #e6e6e6;
|
| 155 |
+
border-top: none;
|
| 156 |
}
|
| 157 |
|
| 158 |
#review-statistics .review-wu-bars h3,
|
| 159 |
.review-wu-bars span {
|
| 160 |
+
margin: 0;
|
| 161 |
+
padding: 0;
|
| 162 |
+
font-family: "Open Sans";
|
| 163 |
+
font-size: 13px !important;
|
| 164 |
+
font-style: italic;
|
| 165 |
+
line-height: 2;
|
| 166 |
+
text-transform: uppercase;
|
| 167 |
}
|
| 168 |
|
| 169 |
#review-statistics .review-wu-bars h3 {
|
| 170 |
+
float: left;
|
| 171 |
}
|
| 172 |
|
| 173 |
#review-statistics .review-wu-bars span {
|
| 174 |
+
float: right;
|
| 175 |
+
line-height: 2;
|
| 176 |
+
text-align: right;
|
| 177 |
}
|
| 178 |
|
| 179 |
#review-statistics .review-wu-bars {
|
| 180 |
+
float: left;
|
| 181 |
+
width: 90%;
|
| 182 |
+
padding: 0 5% 10px 5%;
|
| 183 |
+
border-top: 1px solid #e6e6e6;
|
| 184 |
+
border-right: 1px solid #e6e6e6;
|
| 185 |
+
border-bottom: none;
|
| 186 |
+
border-left: none;
|
| 187 |
}
|
| 188 |
|
| 189 |
#review-statistics .review-wu-bars ul {
|
| 190 |
+
width: 100% !important;
|
| 191 |
+
margin: 0;
|
| 192 |
+
margin-left: 0 !important;
|
| 193 |
+
padding-left: 0 !important;
|
| 194 |
}
|
| 195 |
|
| 196 |
#review-statistics .review-wu-bars ul li {
|
| 197 |
+
display: inline-block;
|
| 198 |
+
float: left;
|
| 199 |
+
width: 8.2%;
|
| 200 |
+
height: 6px;
|
| 201 |
+
margin-right: 2%;
|
| 202 |
}
|
| 203 |
|
| 204 |
#review-statistics .rev-option.customBarIcon ul li {
|
| 205 |
+
width: 28px;
|
| 206 |
+
height: auto !important;
|
| 207 |
+
margin: 0;
|
| 208 |
+
background: none;
|
| 209 |
+
font-size: 15px;
|
| 210 |
}
|
| 211 |
|
| 212 |
#review-statistics .rev-option.customBarIcon ul li i {
|
| 213 |
+
font-size: 22px;
|
| 214 |
+
font-style: normal !important;
|
| 215 |
+
line-height: 1;
|
| 216 |
+
text-align: center;
|
| 217 |
}
|
| 218 |
|
| 219 |
#review-statistics .rev-option.customBarIcon h3,
|
| 220 |
#review-statistics .rev-option.customBarIcon span {
|
| 221 |
+
padding: 0 4px;
|
| 222 |
}
|
| 223 |
|
| 224 |
#review-statistics .review-wu-bars ul li:nth-child(10) {
|
| 225 |
+
margin: 0 !important;
|
| 226 |
}
|
| 227 |
|
| 228 |
#review-statistics .review-wu-bars .rev-option div > * {
|
| 229 |
+
display: inline-block;
|
| 230 |
}
|
| 231 |
|
| 232 |
#review-statistics .review-wrap-up .cwpr-review-top {
|
| 233 |
+
padding: 20px;
|
| 234 |
+
border-top: 5px solid #3baeda;
|
| 235 |
+
border-bottom: 1px solid #e6e6e6;
|
| 236 |
}
|
| 237 |
|
| 238 |
#review-statistics .review-wrap-up .cwpr-review-top .cwp-item {
|
| 239 |
+
margin: 0;
|
| 240 |
+
padding: 0;
|
| 241 |
+
font-weight: 400;
|
| 242 |
+
line-height: 1;
|
| 243 |
}
|
| 244 |
|
| 245 |
#review-statistics .review-wrap-up .cwpr-review-top h2.cwp-item {
|
| 246 |
+
float: left;
|
| 247 |
+
width: auto !important;
|
| 248 |
+
letter-spacing: 1px;
|
| 249 |
}
|
| 250 |
|
| 251 |
#review-statistics .review-wrap-up .cwpr-review-top .cwp-item-category a {
|
| 252 |
+
font-weight: 500;
|
| 253 |
+
font-style: italic;
|
| 254 |
+
text-decoration: none;
|
| 255 |
+
letter-spacing: 1px;
|
| 256 |
}
|
| 257 |
|
| 258 |
#review-statistics .review-wrap-up .cwpr-review-top .cwp-item-category a:hover {
|
| 259 |
+
text-decoration: underline;
|
| 260 |
}
|
| 261 |
|
| 262 |
#review-statistics .review-wrap-up .cwpr-review-top .cwp-item-category i {
|
| 263 |
+
margin-right: 5px;
|
| 264 |
+
color: #e3e3e3;
|
| 265 |
}
|
| 266 |
|
| 267 |
#review-statistics .review-wrap-up .review-wu-left {
|
| 268 |
+
float: left;
|
| 269 |
+
width: 51%;
|
| 270 |
+
margin-top: 10px;
|
| 271 |
}
|
| 272 |
|
| 273 |
#review-statistics .review-wrap-up .review-wu-left .rev-wu-image {
|
| 274 |
+
float: left;
|
| 275 |
+
overflow: hidden;
|
| 276 |
+
width: 40%;
|
| 277 |
+
margin-right: 5%;
|
| 278 |
+
margin-left: 5%;
|
| 279 |
+
padding: 0;
|
| 280 |
+
border-top: none;
|
| 281 |
+
text-align: center;
|
| 282 |
}
|
| 283 |
|
| 284 |
#review-statistics .review-wrap-up .review-wu-left .rev-wu-image img {
|
| 285 |
+
width: 100%;
|
| 286 |
+
height: auto;
|
| 287 |
+
-webkit-box-shadow: none;
|
| 288 |
+
box-shadow: none;
|
| 289 |
}
|
| 290 |
|
| 291 |
#review-statistics .review-wrap-up .review-wu-left .review-wu-grade {
|
| 292 |
+
display: block;
|
| 293 |
+
float: left;
|
| 294 |
+
position: relative;
|
| 295 |
+
-webkit-box-sizing: border-box;
|
| 296 |
+
box-sizing: border-box;
|
| 297 |
+
width: 50%;
|
| 298 |
+
border: 1px solid #e6e6e6;
|
| 299 |
+
border-top: none;
|
| 300 |
+
border-bottom: none;
|
| 301 |
+
text-align: center;
|
| 302 |
}
|
| 303 |
|
| 304 |
#review-statistics .review-wrap-up .review-wu-left .review-wu-grade .cwp-review-chart {
|
| 305 |
+
display: inline-block;
|
| 306 |
+
float: none;
|
| 307 |
+
position: relative;
|
| 308 |
+
margin: 0;
|
| 309 |
}
|
| 310 |
|
| 311 |
#review-statistics .review-wrap-up .review-wu-left .review-wu-grade .cwp-review-chart .cwp-review-percentage {
|
| 312 |
+
width: 150px;
|
| 313 |
}
|
| 314 |
|
| 315 |
#review-statistics .review-wrap-up .review-wu-right {
|
| 316 |
+
float: left;
|
| 317 |
+
width: 44%;
|
| 318 |
+
padding: 2% 2% 2% 3%;
|
| 319 |
+
border-top: none;
|
| 320 |
}
|
| 321 |
|
| 322 |
#review-statistics .review-wrap-up .review-wu-right h2 {
|
| 323 |
+
margin-bottom: 0;
|
| 324 |
+
font-family: "Lato";
|
| 325 |
+
font-size: 15px;
|
| 326 |
+
font-weight: 800;
|
| 327 |
+
text-transform: uppercase;
|
| 328 |
}
|
| 329 |
|
| 330 |
#review-statistics .review-wrap-up .review-wu-right ul li {
|
| 331 |
+
margin: 0 0 2%;
|
| 332 |
+
padding-left: 0;
|
| 333 |
+
font-family: "Lato";
|
| 334 |
+
font-size: 16px;
|
| 335 |
+
line-height: 1;
|
| 336 |
}
|
| 337 |
|
| 338 |
#review-statistics .review-wrap-up .review-wu-right ul li:before {
|
| 339 |
+
margin-right: 5px;
|
| 340 |
+
content: "-";
|
| 341 |
}
|
| 342 |
|
| 343 |
.review-wu-right ul li {
|
| 344 |
+
background: none !important;
|
| 345 |
}
|
| 346 |
|
| 347 |
.wppr-comment-form-meta input {
|
| 348 |
+
background: none !important;
|
| 349 |
}
|
| 350 |
|
| 351 |
.rev-wu-image img {
|
| 352 |
+
margin: 0 !important;
|
| 353 |
+
padding: 0 !important;
|
| 354 |
+
background: none !important;
|
| 355 |
}
|
| 356 |
|
| 357 |
.rev-option ul li {
|
| 358 |
+
margin-top: 0 !important;
|
| 359 |
+
margin-bottom: 0 !important;
|
| 360 |
+
margin-left: 0 !important;
|
| 361 |
+
padding-left: 0 !important;
|
| 362 |
}
|
| 363 |
|
| 364 |
.review-wu-bars,
|
| 365 |
.review-wu-right {
|
| 366 |
+
-webkit-box-sizing: content-box !important;
|
| 367 |
+
box-sizing: content-box !important;
|
| 368 |
+
text-align: left;
|
| 369 |
}
|
| 370 |
|
| 371 |
#review-statistics .rev-option {
|
| 372 |
+
margin-top: 10px;
|
| 373 |
}
|
| 374 |
|
| 375 |
.affiliate-button {
|
| 376 |
+
clear: both;
|
| 377 |
+
width: 100%;
|
| 378 |
+
margin-bottom: 20px;
|
| 379 |
}
|
| 380 |
|
| 381 |
.affiliate-button2 {
|
| 382 |
+
float: left;
|
| 383 |
+
clear: none !important;
|
| 384 |
+
width: 50% !important;
|
| 385 |
+
margin-bottom: 20px;
|
| 386 |
}
|
| 387 |
|
| 388 |
.affiliate-button a {
|
| 389 |
+
display: table;
|
| 390 |
+
margin: 20px auto 0;
|
| 391 |
+
padding: 10px 35px;
|
| 392 |
+
border: none;
|
| 393 |
+
border-radius: 5px;
|
| 394 |
+
text-decoration: none !important;
|
| 395 |
}
|
| 396 |
|
| 397 |
.affiliate-button a:hover span {
|
| 398 |
+
text-decoration: none;
|
| 399 |
+
;
|
| 400 |
}
|
| 401 |
|
| 402 |
.affiliate-button a span {
|
| 403 |
+
margin-left: -10px;
|
| 404 |
+
padding-left: 20px;
|
| 405 |
+
font-family: "Helvetica Neue", HelveticaNeue, Helvetica, Lato, Arial, sans-serif;
|
| 406 |
+
font-size: 14px;
|
| 407 |
+
font-weight: normal;
|
| 408 |
+
font-style: italic;
|
| 409 |
+
text-decoration: none;
|
| 410 |
+
text-transform: uppercase;
|
| 411 |
}
|
| 412 |
|
| 413 |
#review-statistics .review-wrap-up .review-wu-right ul {
|
| 414 |
+
margin-top: 10px !important;
|
| 415 |
+
margin-left: 0;
|
| 416 |
+
padding-left: 0 !important;
|
| 417 |
+
list-style: none;
|
| 418 |
+
;
|
| 419 |
}
|
| 420 |
|
| 421 |
#wppr-slider-comment .wppr-comment-form-meta {
|
| 422 |
+
float: right;
|
| 423 |
+
position: relative;
|
| 424 |
+
width: 100%;
|
| 425 |
+
margin-bottom: 12px;
|
| 426 |
}
|
| 427 |
|
| 428 |
#wppr-slider-comment .wppr-comment-form-meta label {
|
| 429 |
+
display: block;
|
| 430 |
+
float: left;
|
| 431 |
+
width: 80%;
|
| 432 |
+
margin: 0;
|
| 433 |
+
padding: 0;
|
| 434 |
+
font-size: 14px;
|
| 435 |
+
line-height: 2;
|
| 436 |
}
|
| 437 |
|
| 438 |
#wppr-slider-comment .wppr-comment-form-meta .meta_option_input {
|
| 439 |
+
float: right;
|
| 440 |
+
width: 12%;
|
| 441 |
+
min-width: 0;
|
| 442 |
+
height: 26px;
|
| 443 |
+
margin: 0;
|
| 444 |
+
padding: 5px 0 0 0;
|
| 445 |
+
border: none;
|
| 446 |
+
font-size: 14px;
|
| 447 |
+
font-weight: bold;
|
| 448 |
+
line-height: 1.5;
|
| 449 |
+
text-align: center;
|
| 450 |
}
|
| 451 |
|
| 452 |
#wppr-slider-comment .wppr-comment-form-meta .wppr-comment-meta-slider {
|
| 453 |
+
float: left;
|
| 454 |
+
width: 100%;
|
| 455 |
+
height: 7px;
|
| 456 |
+
margin-top: 5px !important;
|
| 457 |
+
border: none;
|
| 458 |
+
background: #f3f3f3;
|
| 459 |
+
-webkit-box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.3);
|
| 460 |
+
box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.3);
|
| 461 |
}
|
| 462 |
|
| 463 |
#wppr-slider-comment .wppr-comment-form-meta .wppr-comment-meta-slider .ui-slider-handle {
|
| 464 |
+
top: -4px;
|
| 465 |
+
left: 5px;
|
| 466 |
+
width: 13px;
|
| 467 |
+
height: 13px;
|
| 468 |
+
border: none;
|
| 469 |
+
border-radius: 50%;
|
| 470 |
+
background: #3baeda;
|
| 471 |
}
|
| 472 |
|
| 473 |
#wppr-slider-comment .wppr-comment-form-meta .wppr-comment-meta-slider .ui-slider-handle:hover {
|
| 474 |
+
-webkit-box-shadow: inset 0 0 4px rgba(255, 255, 255, 0.3);
|
| 475 |
+
box-shadow: inset 0 0 4px rgba(255, 255, 255, 0.3);
|
| 476 |
+
cursor: pointer;
|
| 477 |
}
|
| 478 |
|
| 479 |
#wppr-slider-comment cite.review-info {
|
| 480 |
+
color: #ddd;
|
| 481 |
+
font-style: italic !important;
|
| 482 |
}
|
| 483 |
|
| 484 |
/* User Comment Grades Styles */
|
| 485 |
|
| 486 |
.user-comments-grades {
|
| 487 |
+
float: right;
|
| 488 |
+
width: 200px;
|
| 489 |
+
margin-top: 25px;
|
| 490 |
+
margin-left: 15px;
|
| 491 |
+
padding: 10px;
|
| 492 |
+
border: 1px solid #ddd;
|
| 493 |
+
border-radius: 5px;
|
| 494 |
}
|
| 495 |
|
| 496 |
.user-comments-grades * {
|
| 497 |
+
margin: 0 !important;
|
| 498 |
+
padding: 0 !important;
|
| 499 |
}
|
| 500 |
|
| 501 |
.user-comments-grades .comment-meta-option-name {
|
| 502 |
+
float: left;
|
| 503 |
+
margin-bottom: 3px !important;
|
| 504 |
+
color: #7d7d7d;
|
| 505 |
+
font-size: 10px;
|
| 506 |
+
text-transform: uppercase;
|
| 507 |
}
|
| 508 |
|
| 509 |
.user-comments-grades .comment-meta-option-grade {
|
| 510 |
+
float: right;
|
| 511 |
+
clear: none !important;
|
| 512 |
+
font-size: 10px;
|
| 513 |
+
font-weight: bold;
|
| 514 |
+
text-transform: uppercase;
|
| 515 |
}
|
| 516 |
|
| 517 |
.user-comments-grades .comment-meta-option {
|
| 518 |
+
margin-bottom: 10px !important;
|
| 519 |
}
|
| 520 |
|
| 521 |
.user-comments-grades .comment-meta-option:last-of-type {
|
| 522 |
+
margin-bottom: 0 !important;
|
| 523 |
}
|
| 524 |
|
| 525 |
/* Comment Form Meta Options - GRADE BAR */
|
| 526 |
|
| 527 |
.comment-meta-option .comment-meta-grade-bar {
|
| 528 |
+
overflow: hidden;
|
| 529 |
+
width: 100%;
|
| 530 |
+
height: 5px;
|
| 531 |
+
border-radius: 32px;
|
| 532 |
+
background: #ebedef;
|
| 533 |
+
-webkit-box-shadow: none;
|
| 534 |
+
box-shadow: none;
|
| 535 |
}
|
| 536 |
|
| 537 |
.comment-meta-grade {
|
| 538 |
+
height: 100%;
|
| 539 |
}
|
| 540 |
|
| 541 |
#wppr-slider-comment {
|
| 542 |
+
display: block;
|
| 543 |
+
width: 230px;
|
| 544 |
+
margin-top: 10px;
|
| 545 |
+
margin-bottom: 10px;
|
| 546 |
}
|
| 547 |
|
| 548 |
.wppr-comment-form-meta {
|
| 549 |
+
width: 100% !important;
|
| 550 |
}
|
| 551 |
|
| 552 |
.cwpr_clearfix {
|
| 553 |
+
clear: both !important;
|
| 554 |
}
|
| 555 |
|
| 556 |
/* Comment Form Meta Options - GRADE BAR */
|
| 557 |
|
| 558 |
#wppr-slider-comment .comment-meta-option .comment-meta-grade-bar {
|
| 559 |
+
overflow: hidden;
|
| 560 |
+
width: 100%;
|
| 561 |
+
height: 5px;
|
| 562 |
+
border-radius: 32px;
|
| 563 |
+
background: #ebedef;
|
| 564 |
+
-webkit-box-shadow: none;
|
| 565 |
+
box-shadow: none;
|
| 566 |
}
|
| 567 |
|
| 568 |
.review-wu-right ul li {
|
| 569 |
+
list-style: none !important;
|
| 570 |
}
|
| 571 |
|
| 572 |
.cwp-chart-embed {
|
| 573 |
+
position: relative !important;
|
| 574 |
+
margin: 10px !important;
|
| 575 |
}
|
| 576 |
|
| 577 |
@media (max-width: 440px) {
|
| 578 |
+
#review-statistics .review-wrap-up .review-wu-left {
|
| 579 |
+
width: 100%;
|
| 580 |
+
}
|
| 581 |
|
| 582 |
+
#review-statistics .review-wrap-up .review-wu-right {
|
| 583 |
+
width: 95%;
|
| 584 |
+
padding-left: 5%;
|
| 585 |
+
}
|
| 586 |
|
| 587 |
+
#review-statistics .review-wrap-up .review-wu-left .review-wu-grade {
|
| 588 |
+
border-right: none;
|
| 589 |
+
}
|
| 590 |
|
| 591 |
+
#review-statistics .review-wrap-up .review-wu-left .rev-wu-image,
|
| 592 |
+
#review-statistics .review-wrap-up .review-wu-left .review-wu-grade {
|
| 593 |
+
height: 130px;
|
| 594 |
+
}
|
| 595 |
|
| 596 |
+
#review-statistics .review-wrap-up .review-wu-left .review-wu-grade .cwp-review-chart .cwp-review-percentage {
|
| 597 |
+
margin-top: 10%;
|
| 598 |
+
}
|
| 599 |
|
| 600 |
+
#review-statistics .review-wrap-up .review-wu-left .review-wu-grade .cwp-review-chart span {
|
| 601 |
+
font-size: 30px;
|
| 602 |
+
}
|
| 603 |
}
|
| 604 |
|
| 605 |
@media (min-width: 440px) and (max-width: 700px) {
|
| 606 |
+
#review-statistics .review-wrap-up .review-wu-left .rev-wu-image,
|
| 607 |
+
#review-statistics .review-wrap-up .review-wu-left .review-wu-grade {
|
| 608 |
+
height: 100px;
|
| 609 |
+
}
|
| 610 |
|
| 611 |
+
#review-statistics .review-wrap-up .review-wu-left .review-wu-grade .cwp-review-chart .cwp-review-percentage {
|
| 612 |
+
margin-top: 10%;
|
| 613 |
+
}
|
| 614 |
|
| 615 |
+
#review-statistics .review-wrap-up .review-wu-left .review-wu-grade .cwp-review-chart span {
|
| 616 |
+
font-size: 30px;
|
| 617 |
+
}
|
| 618 |
}
|
| 619 |
|
| 620 |
@media (min-width: 700px) and (max-width: 820px) {
|
| 621 |
+
#review-statistics .review-wrap-up .review-wu-left .rev-wu-image,
|
| 622 |
+
#review-statistics .review-wrap-up .review-wu-left .review-wu-grade {
|
| 623 |
+
height: 130px;
|
| 624 |
+
}
|
| 625 |
|
| 626 |
+
#review-statistics .review-wrap-up .review-wu-left .review-wu-grade .cwp-review-chart .cwp-review-percentage {
|
| 627 |
+
margin-top: 10%;
|
| 628 |
+
}
|
| 629 |
|
| 630 |
+
#review-statistics .review-wrap-up .review-wu-left .review-wu-grade .cwp-review-chart span {
|
| 631 |
+
font-size: 30px;
|
| 632 |
+
}
|
| 633 |
}
|
| 634 |
|
| 635 |
.cwp-review-percentage.cwp_easyPieChart canvas {
|
| 636 |
+
position: absolute;
|
| 637 |
+
left: 0;
|
| 638 |
}
|
| 639 |
|
| 640 |
.cwp-review-percentage.cwp_easyPieChart {
|
| 641 |
+
position: relative;
|
| 642 |
+
text-align: center;
|
| 643 |
}
|
| 644 |
|
| 645 |
.review-wu-grade .cwp-review-chart {
|
| 646 |
+
float: none;
|
| 647 |
+
position: relative;
|
| 648 |
}
|
includes/class-wppr.php
CHANGED
|
@@ -67,7 +67,7 @@ class WPPR {
|
|
| 67 |
*/
|
| 68 |
public function __construct() {
|
| 69 |
$this->plugin_name = 'wppr';
|
| 70 |
-
$this->version = '3.0.
|
| 71 |
|
| 72 |
$this->load_dependencies();
|
| 73 |
$this->set_locale();
|
|
@@ -147,11 +147,8 @@ class WPPR {
|
|
| 147 |
|
| 148 |
$plugin_public = new WPPR_Public( $this->get_plugin_name(), $this->get_version() );
|
| 149 |
|
| 150 |
-
$this->loader->add_action( 'wp', $plugin_public, '
|
| 151 |
-
$this->loader->add_action( 'wp_enqueue_scripts', $plugin_public, '
|
| 152 |
-
$this->loader->add_action( 'wp_enqueue_scripts', $plugin_public, 'enqueue_scripts' );
|
| 153 |
-
$this->loader->add_action( 'wp_footer', $plugin_public, 'dynamic_stylesheet' );
|
| 154 |
-
$this->loader->add_action( 'wp_head', $plugin_public, 'default_settings' );
|
| 155 |
$this->loader->add_action( 'comment_form_logged_in_after', $plugin_public, 'add_comment_fields' );
|
| 156 |
$this->loader->add_action( 'comment_form_after_fields', $plugin_public, 'add_comment_fields' );
|
| 157 |
$this->loader->add_action( 'comment_post', $plugin_public, 'save_comment_fields',1 );
|
| 67 |
*/
|
| 68 |
public function __construct() {
|
| 69 |
$this->plugin_name = 'wppr';
|
| 70 |
+
$this->version = '3.0.1';
|
| 71 |
|
| 72 |
$this->load_dependencies();
|
| 73 |
$this->set_locale();
|
| 147 |
|
| 148 |
$plugin_public = new WPPR_Public( $this->get_plugin_name(), $this->get_version() );
|
| 149 |
|
| 150 |
+
$this->loader->add_action( 'wp', $plugin_public, 'setup_post' );
|
| 151 |
+
$this->loader->add_action( 'wp_enqueue_scripts', $plugin_public, 'load_review_assets' );
|
|
|
|
|
|
|
|
|
|
| 152 |
$this->loader->add_action( 'comment_form_logged_in_after', $plugin_public, 'add_comment_fields' );
|
| 153 |
$this->loader->add_action( 'comment_form_after_fields', $plugin_public, 'add_comment_fields' );
|
| 154 |
$this->loader->add_action( 'comment_post', $plugin_public, 'save_comment_fields',1 );
|
includes/legacy.php
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
/**
|
| 3 |
+
*
|
| 4 |
+
* Legacy files used for backwards compatibility.
|
| 5 |
+
*
|
| 6 |
+
* @package WPPR
|
| 7 |
+
*/
|
| 8 |
+
|
| 9 |
+
/**
|
| 10 |
+
* Legacy function used for review box.
|
| 11 |
+
*
|
| 12 |
+
* @param int $post_id The post id.
|
| 13 |
+
*
|
| 14 |
+
* @deprecated
|
| 15 |
+
*
|
| 16 |
+
* @return string The review string.
|
| 17 |
+
*/
|
| 18 |
+
function cwppos_show_review( $post_id ) {
|
| 19 |
+
$model = new WPPR_Query_Model();
|
| 20 |
+
$model->find();
|
| 21 |
+
$plugin = new WPPR();
|
| 22 |
+
$review_object = new WPPR_Review_Model( $post_id );
|
| 23 |
+
$public = new Wppr_Public( $plugin->get_plugin_name(), $plugin->get_version() );
|
| 24 |
+
$public->load_review_assets( $review_object );
|
| 25 |
+
$output = '';
|
| 26 |
+
if ( $review_object->is_active() ) {
|
| 27 |
+
$theme_template = get_template_directory() . '/wppr/default.php';
|
| 28 |
+
if ( file_exists( $theme_template ) ) {
|
| 29 |
+
include( $theme_template );
|
| 30 |
+
} else {
|
| 31 |
+
include( WPPR_PATH . '/includes/public/layouts/default-tpl.php' );
|
| 32 |
+
}
|
| 33 |
+
include( WPPR_PATH . '/includes/public/layouts/rich-json-ld.php' );
|
| 34 |
+
}
|
| 35 |
+
|
| 36 |
+
return $output;
|
| 37 |
+
}
|
includes/public/class-wppr-public.php
CHANGED
|
@@ -64,142 +64,85 @@ class Wppr_Public {
|
|
| 64 |
}
|
| 65 |
|
| 66 |
/**
|
| 67 |
-
*
|
| 68 |
-
*
|
| 69 |
-
* @since 3.0.0
|
| 70 |
-
* @access public
|
| 71 |
*/
|
| 72 |
-
public function
|
| 73 |
-
/**
|
| 74 |
-
* This function is provided for demonstration purposes only.
|
| 75 |
-
*
|
| 76 |
-
* An instance of this class should be passed to the run() function
|
| 77 |
-
* defined in Wppr_Loader as all of the hooks are defined
|
| 78 |
-
* in that particular class.
|
| 79 |
-
*
|
| 80 |
-
* The Wppr_Loader will then create the relationship
|
| 81 |
-
* between the defined hooks and the functions defined in this
|
| 82 |
-
* class.
|
| 83 |
-
*/
|
| 84 |
-
$this->init();
|
| 85 |
-
if ( $this->review->is_active() || $this->is_shortcode_used() ) {
|
| 86 |
-
wp_enqueue_style( $this->plugin_name . '-frontpage-stylesheet', WPPR_URL . '/assets/css/frontpage.css', array(), $this->version );
|
| 87 |
-
|
| 88 |
-
if ( $this->review->wppr_get_option( 'cwppos_lighbox' ) == 'no' ) {
|
| 89 |
-
wp_enqueue_style( $this->plugin_name . '-lightbox-css', WPPR_URL . '/assets/css/lightbox.css', array(), $this->version );
|
| 90 |
-
}
|
| 91 |
-
if ( $this->review->wppr_get_option( 'cwppos_show_userreview' ) == 'yes' ) {
|
| 92 |
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
}
|
| 96 |
}
|
| 97 |
|
| 98 |
/**
|
| 99 |
-
* Method for loading the Review Model.
|
| 100 |
*
|
| 101 |
-
*
|
| 102 |
-
*
|
|
|
|
| 103 |
*/
|
| 104 |
-
public function
|
| 105 |
-
|
| 106 |
-
if ( $
|
| 107 |
-
|
|
|
|
|
|
|
| 108 |
} else {
|
| 109 |
-
$
|
|
|
|
|
|
|
|
|
|
| 110 |
}
|
| 111 |
-
}
|
| 112 |
|
| 113 |
-
|
| 114 |
-
|
| 115 |
-
*
|
| 116 |
-
* @return bool Either we use the shortcode or not.
|
| 117 |
-
*/
|
| 118 |
-
public function is_shortcode_used() {
|
| 119 |
-
global $post;
|
| 120 |
-
|
| 121 |
-
if ( ! has_shortcode( $post->post_content, 'P_REVIEW' ) ) {
|
| 122 |
-
return false;
|
| 123 |
}
|
| 124 |
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
|
| 136 |
-
/**
|
| 137 |
-
* This function is provided for demonstration purposes only.
|
| 138 |
-
*
|
| 139 |
-
* An instance of this class should be passed to the run() function
|
| 140 |
-
* defined in Wppr_Loader as all of the hooks are defined
|
| 141 |
-
* in that particular class.
|
| 142 |
-
*
|
| 143 |
-
* The Wppr_Loader will then create the relationship
|
| 144 |
-
* between the defined hooks and the functions defined in this
|
| 145 |
-
* class.
|
| 146 |
-
*/
|
| 147 |
-
$this->init();
|
| 148 |
-
if ( $this->review->is_active() || $this->is_shortcode_used() ) {
|
| 149 |
-
|
| 150 |
-
wp_enqueue_script( $this->plugin_name . '-pie-chart-js', WPPR_URL . '/assets/js/pie-chart.js', array( 'jquery' ), $this->version, true );
|
| 151 |
-
wp_enqueue_script(
|
| 152 |
-
$this->plugin_name . '-frontpage-js', WPPR_URL . '/assets/js/main.js', array(
|
| 153 |
-
'jquery',
|
| 154 |
-
$this->plugin_name . '-pie-chart-js',
|
| 155 |
-
), $this->version, true
|
| 156 |
-
);
|
| 157 |
-
if ( $this->review->wppr_get_option( 'cwppos_lighbox' ) == 'no' ) {
|
| 158 |
-
wp_enqueue_script( $this->plugin_name . '-lightbox-js', WPPR_URL . '/assets/js/lightbox.min.js', array( 'jquery' ), $this->version, true );
|
| 159 |
-
}
|
| 160 |
|
| 161 |
-
|
| 162 |
-
|
| 163 |
-
}
|
| 164 |
}
|
| 165 |
-
}
|
| 166 |
|
| 167 |
-
|
| 168 |
-
|
| 169 |
-
|
| 170 |
-
|
| 171 |
-
|
| 172 |
-
*/
|
| 173 |
-
public function dynamic_stylesheet() {
|
| 174 |
-
$this->init();
|
| 175 |
-
if ( $this->review->is_active() || $this->is_shortcode_used() ) {
|
| 176 |
|
| 177 |
-
$
|
|
|
|
| 178 |
|
| 179 |
-
|
| 180 |
-
|
| 181 |
-
|
| 182 |
-
|
| 183 |
-
|
| 184 |
-
|
| 185 |
-
|
| 186 |
-
|
| 187 |
-
|
| 188 |
-
|
| 189 |
-
|
| 190 |
|
| 191 |
-
|
| 192 |
-
|
| 193 |
-
|
| 194 |
#review-statistics {
|
| 195 |
-
width: ' . $
|
| 196 |
}
|
| 197 |
';
|
| 198 |
-
|
| 199 |
|
| 200 |
-
|
| 201 |
-
|
| 202 |
-
|
| 203 |
div.affiliate-button a span {
|
| 204 |
background: url("' . WPPR_URL . '/assets/img/cart-icon.png") no-repeat left center;
|
| 205 |
}
|
|
@@ -208,18 +151,18 @@ class Wppr_Public {
|
|
| 208 |
background: url("' . WPPR_URL . '/assets/img/cart-icon-hover.png") no-repeat left center;
|
| 209 |
}
|
| 210 |
';
|
| 211 |
-
|
| 212 |
|
| 213 |
-
|
| 214 |
-
|
| 215 |
.commentlist .comment-body p {
|
| 216 |
clear: left;
|
| 217 |
}
|
| 218 |
';
|
| 219 |
-
|
| 220 |
|
| 221 |
-
|
| 222 |
-
|
| 223 |
@media (min-width: 820px) {
|
| 224 |
#review-statistics .review-wrap-up .review-wu-left .rev-wu-image, #review-statistics .review-wrap-up .review-wu-left .review-wu-grade {
|
| 225 |
height: ' . $height_left . 'px;
|
|
@@ -238,71 +181,100 @@ class Wppr_Public {
|
|
| 238 |
}
|
| 239 |
|
| 240 |
#review-statistics .review-wrap-up div.cwpr-review-top {
|
| 241 |
-
border-top: ' . $
|
| 242 |
}
|
| 243 |
|
| 244 |
.user-comments-grades .comment-meta-grade-bar,
|
| 245 |
#review-statistics .review-wu-bars ul li {
|
| 246 |
-
background: ' . $
|
| 247 |
}
|
| 248 |
|
| 249 |
#review-statistics .rev-option.customBarIcon ul li {
|
| 250 |
-
color: ' . $
|
| 251 |
}
|
| 252 |
|
| 253 |
#review-statistics .review-wrap-up .review-wu-right ul li, #review-statistics .review-wu-bars h3, .review-wu-bars span, #review-statistics .review-wrap-up .cwpr-review-top .cwp-item-category a {
|
| 254 |
-
color: ' . $
|
| 255 |
}
|
| 256 |
|
| 257 |
#review-statistics .review-wrap-up .review-wu-right .pros h2 {
|
| 258 |
-
color: ' . $
|
| 259 |
}
|
| 260 |
|
| 261 |
#review-statistics .review-wrap-up .review-wu-right .cons h2 {
|
| 262 |
-
color: ' . $
|
| 263 |
}
|
| 264 |
|
| 265 |
div.affiliate-button a {
|
| 266 |
-
border: 2px solid ' . $
|
| 267 |
}
|
| 268 |
|
| 269 |
div.affiliate-button a:hover {
|
| 270 |
-
border: 2px solid ' . $
|
| 271 |
}
|
| 272 |
|
| 273 |
div.affiliate-button a {
|
| 274 |
-
background: ' . $
|
| 275 |
}
|
| 276 |
|
| 277 |
div.affiliate-button a:hover {
|
| 278 |
-
background: ' . $
|
| 279 |
}
|
| 280 |
|
| 281 |
div.affiliate-button a span {
|
| 282 |
-
color: ' . $
|
| 283 |
}
|
| 284 |
|
| 285 |
div.affiliate-button a:hover span {
|
| 286 |
-
color: ' . $
|
| 287 |
}
|
| 288 |
|
| 289 |
' . $conditional_styles . '
|
| 290 |
-
|
| 291 |
';
|
| 292 |
|
| 293 |
-
|
| 294 |
-
|
| 295 |
-
|
| 296 |
-
|
| 297 |
-
var
|
| 298 |
-
|
| 299 |
-
var c3 = "' . $options_model->wppr_get_option( 'cwppos_rating_good' ) . '";
|
| 300 |
-
var c4 = "' . $options_model->wppr_get_option( 'cwppos_rating_very_good' ) . '";
|
| 301 |
-
</script>
|
| 302 |
';
|
| 303 |
|
| 304 |
-
|
| 305 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 306 |
}
|
| 307 |
|
| 308 |
/**
|
|
@@ -316,12 +288,11 @@ class Wppr_Public {
|
|
| 316 |
* @return mixed
|
| 317 |
*/
|
| 318 |
public function display_on_front( $content ) {
|
| 319 |
-
|
| 320 |
if ( $this->review->is_active() ) {
|
| 321 |
-
$options_model = new WPPR_Options_Model();
|
| 322 |
$output = '';
|
| 323 |
$visual = 'full';
|
| 324 |
-
|
| 325 |
if ( $visual == 'full' ) {
|
| 326 |
$theme_template = get_template_directory() . '/wppr/default.php';
|
| 327 |
if ( file_exists( $theme_template ) ) {
|
|
@@ -333,65 +304,17 @@ class Wppr_Public {
|
|
| 333 |
|
| 334 |
include_once( WPPR_PATH . '/includes/public/layouts/rich-json-ld.php' );
|
| 335 |
|
| 336 |
-
$review_position_before_content = $
|
| 337 |
if ( $review_position_before_content == 'yes' ) {
|
| 338 |
$content = $content . $output;
|
| 339 |
} elseif ( $review_position_before_content == 'no' ) {
|
| 340 |
-
$content = $output . $content
|
| 341 |
}
|
| 342 |
}
|
| 343 |
|
| 344 |
return $content;
|
| 345 |
}
|
| 346 |
|
| 347 |
-
/**
|
| 348 |
-
* Sets the default settings for front end display
|
| 349 |
-
*
|
| 350 |
-
* @since 3.0.0
|
| 351 |
-
* @access public
|
| 352 |
-
*/
|
| 353 |
-
public function default_settings() {
|
| 354 |
-
$this->init();
|
| 355 |
-
if ( $this->review->is_active() ) {
|
| 356 |
-
|
| 357 |
-
$options_model = new WPPR_Options_Model();
|
| 358 |
-
|
| 359 |
-
$options_model->wppr_get_option( 'cwppos_rating_default' );
|
| 360 |
-
|
| 361 |
-
if ( class_exists( 'WPPR_Pro' ) ) {
|
| 362 |
-
$isSetToPro = true;
|
| 363 |
-
} else {
|
| 364 |
-
$isSetToPro = false;
|
| 365 |
-
}
|
| 366 |
-
|
| 367 |
-
if ( $isSetToPro ) {
|
| 368 |
-
$uni_font = $options_model->wppr_get_option( 'cwppos_change_bar_icon' );
|
| 369 |
-
} else {
|
| 370 |
-
$uni_font = '';
|
| 371 |
-
}
|
| 372 |
-
$track = $options_model->wppr_get_option( 'cwppos_rating_chart_default' );
|
| 373 |
-
if ( is_array( $uni_font ) ) {
|
| 374 |
-
$uni_font = $uni_font[0];
|
| 375 |
-
} elseif ( substr( $uni_font, 0, 1 ) == '#' ) {
|
| 376 |
-
$uni_font = $uni_font;
|
| 377 |
-
} else {
|
| 378 |
-
$uni_font = '';
|
| 379 |
-
}
|
| 380 |
-
|
| 381 |
-
if ( ! empty( $uni_font ) ) {
|
| 382 |
-
if ( $isSetToPro ) {
|
| 383 |
-
if ( $options_model->wppr_get_option( 'cwppos_fontawesome' ) === 'no' ) {
|
| 384 |
-
wp_enqueue_style( 'cwp-pac-fontawesome-stylesheet', WPPR_URL . '/assets/css/font-awesome.min.css' );
|
| 385 |
-
}
|
| 386 |
-
}
|
| 387 |
-
}
|
| 388 |
-
echo "<script type='text/javascript'>
|
| 389 |
-
var cwpCustomBarIcon = '" . $uni_font . "';
|
| 390 |
-
var isSetToPro = '" . $isSetToPro . "';
|
| 391 |
-
var trackcolor = '" . $track . "';
|
| 392 |
-
</script>";
|
| 393 |
-
}// End if().
|
| 394 |
-
}
|
| 395 |
|
| 396 |
/**
|
| 397 |
* Adds the comment form fields.
|
|
@@ -399,7 +322,6 @@ class Wppr_Public {
|
|
| 399 |
* @return string The comment form fields.
|
| 400 |
*/
|
| 401 |
function add_comment_fields() {
|
| 402 |
-
$this->init();
|
| 403 |
if ( ! $this->review->is_active() ) {
|
| 404 |
return '';
|
| 405 |
}
|
|
@@ -462,7 +384,6 @@ class Wppr_Public {
|
|
| 462 |
* @return string Comment text with review.
|
| 463 |
*/
|
| 464 |
public function show_comment_ratings( $text ) {
|
| 465 |
-
$this->init();
|
| 466 |
if ( ! $this->review->is_active() ) {
|
| 467 |
return $text;
|
| 468 |
}
|
| 64 |
}
|
| 65 |
|
| 66 |
/**
|
| 67 |
+
* Setup review of the current post.
|
|
|
|
|
|
|
|
|
|
| 68 |
*/
|
| 69 |
+
public function setup_post() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 70 |
|
| 71 |
+
global $post;
|
| 72 |
+
$this->review = new WPPR_Review_Model( ! empty( $post ) ? $post->ID : 0 );
|
|
|
|
| 73 |
}
|
| 74 |
|
| 75 |
/**
|
|
|
|
| 76 |
*
|
| 77 |
+
* Load the review assets based on the context.
|
| 78 |
+
*
|
| 79 |
+
* @param WPPR_Review_Model $review Review model.
|
| 80 |
*/
|
| 81 |
+
public function load_review_assets( $review = null ) {
|
| 82 |
+
$load = false;
|
| 83 |
+
if ( ! empty( $review ) ) {
|
| 84 |
+
if ( $review->is_active() ) {
|
| 85 |
+
$load = true;
|
| 86 |
+
}
|
| 87 |
} else {
|
| 88 |
+
$review = $this->review;
|
| 89 |
+
if ( $review->is_active() ) {
|
| 90 |
+
$load = true;
|
| 91 |
+
}
|
| 92 |
}
|
|
|
|
| 93 |
|
| 94 |
+
if ( ! $load ) {
|
| 95 |
+
return;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 96 |
}
|
| 97 |
|
| 98 |
+
wp_enqueue_script( $this->plugin_name . '-pie-chart-js', WPPR_URL . '/assets/js/pie-chart.js', array( 'jquery' ), $this->version, true );
|
| 99 |
+
wp_enqueue_script(
|
| 100 |
+
$this->plugin_name . '-frontpage-js', WPPR_URL . '/assets/js/main.js', array(
|
| 101 |
+
'jquery',
|
| 102 |
+
$this->plugin_name . '-pie-chart-js',
|
| 103 |
+
), $this->version, true
|
| 104 |
+
);
|
| 105 |
+
if ( $review->wppr_get_option( 'cwppos_lighbox' ) == 'no' ) {
|
| 106 |
+
wp_enqueue_script( $this->plugin_name . '-lightbox-js', WPPR_URL . '/assets/js/lightbox.min.js', array( 'jquery' ), $this->version, true );
|
| 107 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 108 |
|
| 109 |
+
if ( $review->wppr_get_option( 'cwppos_show_userreview' ) == 'yes' ) {
|
| 110 |
+
wp_enqueue_script( 'jquery-ui-slider' );
|
|
|
|
| 111 |
}
|
|
|
|
| 112 |
|
| 113 |
+
wp_enqueue_style( $this->plugin_name . '-frontpage-stylesheet', WPPR_URL . '/assets/css/frontpage.css', array(), $this->version );
|
| 114 |
+
if ( $review->wppr_get_option( 'cwppos_lighbox' ) == 'no' ) {
|
| 115 |
+
wp_enqueue_style( $this->plugin_name . '-lightbox-css', WPPR_URL . '/assets/css/lightbox.css', array(), $this->version );
|
| 116 |
+
}
|
| 117 |
+
if ( $review->wppr_get_option( 'cwppos_show_userreview' ) == 'yes' ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
| 118 |
|
| 119 |
+
wp_enqueue_style( $this->plugin_name . 'jqueryui', WPPR_URL . '/assets/css/jquery-ui.css', array(), $this->version );
|
| 120 |
+
}
|
| 121 |
|
| 122 |
+
global $content_width;
|
| 123 |
+
if ( $review->wppr_get_option( 'cwppos_widget_size' ) != '' ) {
|
| 124 |
+
$width = $options_model->wppr_get_option( 'cwppos_widget_size' );
|
| 125 |
+
} else {
|
| 126 |
+
$width = $content_width;
|
| 127 |
+
}
|
| 128 |
+
if ( $width < 200 ) {
|
| 129 |
+
$width = 600;
|
| 130 |
+
}
|
| 131 |
+
$img_size = min( 180, $width * 0.51 * 0.4 );
|
| 132 |
+
$height_left = $img_size + 10;
|
| 133 |
|
| 134 |
+
$conditional_media_styles = '';
|
| 135 |
+
if ( $review->wppr_get_option( 'cwppos_widget_size' ) != '' ) {
|
| 136 |
+
$conditional_media_styles = '
|
| 137 |
#review-statistics {
|
| 138 |
+
width: ' . $review->wppr_get_option( 'cwppos_widget_size' ) . 'px;
|
| 139 |
}
|
| 140 |
';
|
| 141 |
+
}
|
| 142 |
|
| 143 |
+
$conditional_styles = '';
|
| 144 |
+
if ( $review->wppr_get_option( 'cwppos_show_icon' ) == 'yes' ) {
|
| 145 |
+
$conditional_styles .= '
|
| 146 |
div.affiliate-button a span {
|
| 147 |
background: url("' . WPPR_URL . '/assets/img/cart-icon.png") no-repeat left center;
|
| 148 |
}
|
| 151 |
background: url("' . WPPR_URL . '/assets/img/cart-icon-hover.png") no-repeat left center;
|
| 152 |
}
|
| 153 |
';
|
| 154 |
+
}
|
| 155 |
|
| 156 |
+
if ( $review->wppr_get_option( 'cwppos_show_userreview' ) == 'yes' ) {
|
| 157 |
+
$conditional_styles .= '
|
| 158 |
.commentlist .comment-body p {
|
| 159 |
clear: left;
|
| 160 |
}
|
| 161 |
';
|
| 162 |
+
}
|
| 163 |
|
| 164 |
+
$style = '
|
| 165 |
+
|
| 166 |
@media (min-width: 820px) {
|
| 167 |
#review-statistics .review-wrap-up .review-wu-left .rev-wu-image, #review-statistics .review-wrap-up .review-wu-left .review-wu-grade {
|
| 168 |
height: ' . $height_left . 'px;
|
| 181 |
}
|
| 182 |
|
| 183 |
#review-statistics .review-wrap-up div.cwpr-review-top {
|
| 184 |
+
border-top: ' . $review->wppr_get_option( 'cwppos_reviewboxbd_width' ) . 'px solid ' . $review->wppr_get_option( 'cwppos_reviewboxbd_color' ) . ';
|
| 185 |
}
|
| 186 |
|
| 187 |
.user-comments-grades .comment-meta-grade-bar,
|
| 188 |
#review-statistics .review-wu-bars ul li {
|
| 189 |
+
background: ' . $review->wppr_get_option( 'cwppos_rating_default' ) . ';
|
| 190 |
}
|
| 191 |
|
| 192 |
#review-statistics .rev-option.customBarIcon ul li {
|
| 193 |
+
color: ' . $review->wppr_get_option( 'cwppos_rating_default' ) . ';
|
| 194 |
}
|
| 195 |
|
| 196 |
#review-statistics .review-wrap-up .review-wu-right ul li, #review-statistics .review-wu-bars h3, .review-wu-bars span, #review-statistics .review-wrap-up .cwpr-review-top .cwp-item-category a {
|
| 197 |
+
color: ' . $review->wppr_get_option( 'cwppos_font_color' ) . ';
|
| 198 |
}
|
| 199 |
|
| 200 |
#review-statistics .review-wrap-up .review-wu-right .pros h2 {
|
| 201 |
+
color: ' . $review->wppr_get_option( 'cwppos_pros_color' ) . ';
|
| 202 |
}
|
| 203 |
|
| 204 |
#review-statistics .review-wrap-up .review-wu-right .cons h2 {
|
| 205 |
+
color: ' . $review->wppr_get_option( 'cwppos_cons_color' ) . ';
|
| 206 |
}
|
| 207 |
|
| 208 |
div.affiliate-button a {
|
| 209 |
+
border: 2px solid ' . $review->wppr_get_option( 'cwppos_buttonbd_color' ) . ';
|
| 210 |
}
|
| 211 |
|
| 212 |
div.affiliate-button a:hover {
|
| 213 |
+
border: 2px solid ' . $review->wppr_get_option( 'cwppos_buttonbh_color' ) . ';
|
| 214 |
}
|
| 215 |
|
| 216 |
div.affiliate-button a {
|
| 217 |
+
background: ' . $review->wppr_get_option( 'cwppos_buttonbkd_color' ) . ';
|
| 218 |
}
|
| 219 |
|
| 220 |
div.affiliate-button a:hover {
|
| 221 |
+
background: ' . $review->wppr_get_option( 'cwppos_buttonbkh_color' ) . ';
|
| 222 |
}
|
| 223 |
|
| 224 |
div.affiliate-button a span {
|
| 225 |
+
color: ' . $review->wppr_get_option( 'cwppos_buttontxtd_color' ) . ';
|
| 226 |
}
|
| 227 |
|
| 228 |
div.affiliate-button a:hover span {
|
| 229 |
+
color: ' . $review->wppr_get_option( 'cwppos_buttontxth_color' ) . ';
|
| 230 |
}
|
| 231 |
|
| 232 |
' . $conditional_styles . '
|
| 233 |
+
|
| 234 |
';
|
| 235 |
|
| 236 |
+
$script = '
|
| 237 |
+
var c1 = "' . $review->wppr_get_option( 'cwppos_rating_weak' ) . '";
|
| 238 |
+
var c2 = "' . $review->wppr_get_option( 'cwppos_rating_notbad' ) . '";
|
| 239 |
+
var c3 = "' . $review->wppr_get_option( 'cwppos_rating_good' ) . '";
|
| 240 |
+
var c4 = "' . $review->wppr_get_option( 'cwppos_rating_very_good' ) . '";
|
| 241 |
+
|
|
|
|
|
|
|
|
|
|
| 242 |
';
|
| 243 |
|
| 244 |
+
if ( class_exists( 'WPPR_Pro' ) ) {
|
| 245 |
+
$isSetToPro = true;
|
| 246 |
+
} else {
|
| 247 |
+
$isSetToPro = false;
|
| 248 |
+
}
|
| 249 |
+
|
| 250 |
+
if ( $isSetToPro ) {
|
| 251 |
+
$uni_font = $review->wppr_get_option( 'cwppos_change_bar_icon' );
|
| 252 |
+
} else {
|
| 253 |
+
$uni_font = '';
|
| 254 |
+
}
|
| 255 |
+
$track = $review->wppr_get_option( 'cwppos_rating_chart_default' );
|
| 256 |
+
if ( is_array( $uni_font ) ) {
|
| 257 |
+
$uni_font = $uni_font[0];
|
| 258 |
+
} elseif ( substr( $uni_font, 0, 1 ) == '#' ) {
|
| 259 |
+
$uni_font = $uni_font;
|
| 260 |
+
} else {
|
| 261 |
+
$uni_font = '';
|
| 262 |
+
}
|
| 263 |
+
|
| 264 |
+
if ( ! empty( $uni_font ) ) {
|
| 265 |
+
if ( $isSetToPro ) {
|
| 266 |
+
if ( $review->wppr_get_option( 'cwppos_fontawesome' ) === 'no' ) {
|
| 267 |
+
wp_enqueue_style( 'cwp-pac-fontawesome-stylesheet', WPPR_URL . '/assets/css/font-awesome.min.css' );
|
| 268 |
+
}
|
| 269 |
+
}
|
| 270 |
+
}
|
| 271 |
+
$script .= "
|
| 272 |
+
var cwpCustomBarIcon = '" . $uni_font . "';
|
| 273 |
+
var isSetToPro = '" . $isSetToPro . "';
|
| 274 |
+
var trackcolor = '" . $track . "';
|
| 275 |
+
";
|
| 276 |
+
wp_add_inline_style( $this->plugin_name . '-frontpage-stylesheet', $style );
|
| 277 |
+
wp_add_inline_script( $this->plugin_name . '-frontpage-js', $script );
|
| 278 |
}
|
| 279 |
|
| 280 |
/**
|
| 288 |
* @return mixed
|
| 289 |
*/
|
| 290 |
public function display_on_front( $content ) {
|
| 291 |
+
|
| 292 |
if ( $this->review->is_active() ) {
|
|
|
|
| 293 |
$output = '';
|
| 294 |
$visual = 'full';
|
| 295 |
+
$review_object = $this->review;
|
| 296 |
if ( $visual == 'full' ) {
|
| 297 |
$theme_template = get_template_directory() . '/wppr/default.php';
|
| 298 |
if ( file_exists( $theme_template ) ) {
|
| 304 |
|
| 305 |
include_once( WPPR_PATH . '/includes/public/layouts/rich-json-ld.php' );
|
| 306 |
|
| 307 |
+
$review_position_before_content = $this->review->wppr_get_option( 'cwppos_show_reviewbox' );
|
| 308 |
if ( $review_position_before_content == 'yes' ) {
|
| 309 |
$content = $content . $output;
|
| 310 |
} elseif ( $review_position_before_content == 'no' ) {
|
| 311 |
+
$content = $output . $content;
|
| 312 |
}
|
| 313 |
}
|
| 314 |
|
| 315 |
return $content;
|
| 316 |
}
|
| 317 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 318 |
|
| 319 |
/**
|
| 320 |
* Adds the comment form fields.
|
| 322 |
* @return string The comment form fields.
|
| 323 |
*/
|
| 324 |
function add_comment_fields() {
|
|
|
|
| 325 |
if ( ! $this->review->is_active() ) {
|
| 326 |
return '';
|
| 327 |
}
|
| 384 |
* @return string Comment text with review.
|
| 385 |
*/
|
| 386 |
public function show_comment_ratings( $text ) {
|
|
|
|
| 387 |
if ( ! $this->review->is_active() ) {
|
| 388 |
return $text;
|
| 389 |
}
|
includes/public/layouts/default-tpl.php
CHANGED
|
@@ -9,9 +9,9 @@
|
|
| 9 |
* @since 3.0.0
|
| 10 |
*/
|
| 11 |
|
| 12 |
-
$review
|
| 13 |
$sub_title_info = '';
|
| 14 |
-
$sub_title_info
|
| 15 |
if ( $sub_title_info != '' ) {
|
| 16 |
$is_disabled = apply_filters( 'wppr_disable_price_richsnippet', false );
|
| 17 |
if ( ! $is_disabled ) {
|
|
@@ -22,18 +22,18 @@ if ( $sub_title_info != '' ) {
|
|
| 22 |
}
|
| 23 |
|
| 24 |
$lightbox = '';
|
| 25 |
-
if ( $
|
| 26 |
$lightbox = 'data-lightbox="' . $review['image']['full'] . '"';
|
| 27 |
}
|
| 28 |
-
$image_link_url
|
| 29 |
$multiple_affiliates_class = 'affiliate-button';
|
| 30 |
-
$display_links_count
|
| 31 |
foreach ( $review['links'] as $title => $link ) {
|
| 32 |
if ( $title != '' && $link != '' ) {
|
| 33 |
if ( $review['click'] != 'image' ) {
|
| 34 |
$image_link_url = $link;
|
| 35 |
}
|
| 36 |
-
$display_links_count++;
|
| 37 |
}
|
| 38 |
}
|
| 39 |
if ( $display_links_count > 1 ) {
|
|
@@ -77,38 +77,38 @@ if ( isset( $review['options'] ) && ! empty( $review['options'] ) ) {
|
|
| 77 |
';
|
| 78 |
}
|
| 79 |
}
|
| 80 |
-
|
| 81 |
</div><!-- end .review-wu-bars -->
|
| 82 |
</div><!-- end .review-wu-left -->
|
| 83 |
<div class="review-wu-right">
|
| 84 |
<div class="pros">
|
| 85 |
<h2>' .
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
<ul>';
|
| 91 |
if ( isset( $review['pros'] ) && ! empty( $review['pros'] ) ) {
|
| 92 |
foreach ( $review['pros'] as $pro ) {
|
| 93 |
$output .= '<li>' . $pro . '</li>';
|
| 94 |
}
|
| 95 |
}
|
| 96 |
-
|
| 97 |
</ul>
|
| 98 |
</div><!-- end .pros -->
|
| 99 |
<div class="cons">
|
| 100 |
<h2>' .
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
| 105 |
<ul>';
|
| 106 |
if ( isset( $review['cons'] ) && ! empty( $review['cons'] ) ) {
|
| 107 |
foreach ( $review['cons'] as $con ) {
|
| 108 |
$output .= '<li>' . $con . '</li>';
|
| 109 |
}
|
| 110 |
}
|
| 111 |
-
|
| 112 |
</ul>
|
| 113 |
</div>
|
| 114 |
</div><!-- end .review-wu-right -->
|
| 9 |
* @since 3.0.0
|
| 10 |
*/
|
| 11 |
|
| 12 |
+
$review = $review_object->get_review_data();
|
| 13 |
$sub_title_info = '';
|
| 14 |
+
$sub_title_info = $review['price'];
|
| 15 |
if ( $sub_title_info != '' ) {
|
| 16 |
$is_disabled = apply_filters( 'wppr_disable_price_richsnippet', false );
|
| 17 |
if ( ! $is_disabled ) {
|
| 22 |
}
|
| 23 |
|
| 24 |
$lightbox = '';
|
| 25 |
+
if ( $review_object->wppr_get_option( 'cwppos_lighbox' ) == 'no' ) {
|
| 26 |
$lightbox = 'data-lightbox="' . $review['image']['full'] . '"';
|
| 27 |
}
|
| 28 |
+
$image_link_url = $review['image']['full'];
|
| 29 |
$multiple_affiliates_class = 'affiliate-button';
|
| 30 |
+
$display_links_count = 0;
|
| 31 |
foreach ( $review['links'] as $title => $link ) {
|
| 32 |
if ( $title != '' && $link != '' ) {
|
| 33 |
if ( $review['click'] != 'image' ) {
|
| 34 |
$image_link_url = $link;
|
| 35 |
}
|
| 36 |
+
$display_links_count ++;
|
| 37 |
}
|
| 38 |
}
|
| 39 |
if ( $display_links_count > 1 ) {
|
| 77 |
';
|
| 78 |
}
|
| 79 |
}
|
| 80 |
+
$output .= '
|
| 81 |
</div><!-- end .review-wu-bars -->
|
| 82 |
</div><!-- end .review-wu-left -->
|
| 83 |
<div class="review-wu-right">
|
| 84 |
<div class="pros">
|
| 85 |
<h2>' .
|
| 86 |
+
// @codingStandardsIgnoreStart
|
| 87 |
+
apply_filters( 'wppr_review_pros_text', __( $review_object->wppr_get_option( 'cwppos_pros_text' ), 'wp-product-review' ) )
|
| 88 |
+
// @codingStandardsIgnoreEnd
|
| 89 |
+
. '</h2>
|
| 90 |
<ul>';
|
| 91 |
if ( isset( $review['pros'] ) && ! empty( $review['pros'] ) ) {
|
| 92 |
foreach ( $review['pros'] as $pro ) {
|
| 93 |
$output .= '<li>' . $pro . '</li>';
|
| 94 |
}
|
| 95 |
}
|
| 96 |
+
$output .= '
|
| 97 |
</ul>
|
| 98 |
</div><!-- end .pros -->
|
| 99 |
<div class="cons">
|
| 100 |
<h2>' .
|
| 101 |
+
// @codingStandardsIgnoreStart
|
| 102 |
+
apply_filters( 'wppr_review_cons_text', __( $review_object->wppr_get_option( 'cwppos_cons_text' ), 'wp-product-review' ) )
|
| 103 |
+
// @codingStandardsIgnoreEnd
|
| 104 |
+
. '</h2>
|
| 105 |
<ul>';
|
| 106 |
if ( isset( $review['cons'] ) && ! empty( $review['cons'] ) ) {
|
| 107 |
foreach ( $review['cons'] as $con ) {
|
| 108 |
$output .= '<li>' . $con . '</li>';
|
| 109 |
}
|
| 110 |
}
|
| 111 |
+
$output .= '
|
| 112 |
</ul>
|
| 113 |
</div>
|
| 114 |
</div><!-- end .review-wu-right -->
|
includes/public/layouts/rating-tpl.php
CHANGED
|
@@ -9,7 +9,7 @@
|
|
| 9 |
* @since 3.0.0
|
| 10 |
*/
|
| 11 |
|
| 12 |
-
$review = $
|
| 13 |
$sub_title_info = '';
|
| 14 |
$sub_title_info = $review['price'];
|
| 15 |
if ( $sub_title_info != '' ) {
|
|
@@ -24,7 +24,7 @@ if ( $sub_title_info != '' ) {
|
|
| 24 |
}
|
| 25 |
|
| 26 |
$lightbox = '';
|
| 27 |
-
if ( $
|
| 28 |
$lightbox = 'data-lightbox="' . $review['image']['full'] . '"';
|
| 29 |
}
|
| 30 |
$image_link_url = $review['image']['full'];
|
| 9 |
* @since 3.0.0
|
| 10 |
*/
|
| 11 |
|
| 12 |
+
$review = $review_object->get_review_data();
|
| 13 |
$sub_title_info = '';
|
| 14 |
$sub_title_info = $review['price'];
|
| 15 |
if ( $sub_title_info != '' ) {
|
| 24 |
}
|
| 25 |
|
| 26 |
$lightbox = '';
|
| 27 |
+
if ( $review_object->wppr_get_option( 'cwppos_lighbox' ) == 'no' ) {
|
| 28 |
$lightbox = 'data-lightbox="' . $review['image']['full'] . '"';
|
| 29 |
}
|
| 30 |
$image_link_url = $review['image']['full'];
|
includes/public/layouts/rich-json-ld.php
CHANGED
|
@@ -9,8 +9,8 @@
|
|
| 9 |
* @since 3.0.0
|
| 10 |
*/
|
| 11 |
|
| 12 |
-
if ( $
|
| 13 |
-
$review = $
|
| 14 |
$currency = $review['currency'];
|
| 15 |
$output .= '
|
| 16 |
<script type="application/ld+json">
|
| 9 |
* @since 3.0.0
|
| 10 |
*/
|
| 11 |
|
| 12 |
+
if ( $review_object->wppr_get_option( 'wppr_rich_snippet' ) == 'yes' ) {
|
| 13 |
+
$review = $review_object->get_review_data();
|
| 14 |
$currency = $review['currency'];
|
| 15 |
$output .= '
|
| 16 |
<script type="application/ld+json">
|
includes/public/layouts/score-tpl.php
CHANGED
|
@@ -9,4 +9,4 @@
|
|
| 9 |
* @since 3.0.0
|
| 10 |
*/
|
| 11 |
|
| 12 |
-
$output = number_format( floor( $
|
| 9 |
* @since 3.0.0
|
| 10 |
*/
|
| 11 |
|
| 12 |
+
$output = number_format( floor( $review_object->get_rating() ) / 10, 1 );
|
includes/public/layouts/widget/default.php
CHANGED
|
@@ -11,7 +11,7 @@
|
|
| 11 |
|
| 12 |
echo '<ul>';
|
| 13 |
foreach ( $results as $review ) :
|
| 14 |
-
$product_title_display = ( $post_type == true ) ? $review['cwp_rev_product_name'] : get_the_title();
|
| 15 |
$product_image = $review['cwp_rev_product_image'];
|
| 16 |
|
| 17 |
if ( strlen( $product_title_display ) > self::RESTRICT_TITLE_CHARS ) {
|
| 11 |
|
| 12 |
echo '<ul>';
|
| 13 |
foreach ( $results as $review ) :
|
| 14 |
+
$product_title_display = ( $instance['post_type'] == true ) ? $review['cwp_rev_product_name'] : get_the_title();
|
| 15 |
$product_image = $review['cwp_rev_product_image'];
|
| 16 |
|
| 17 |
if ( strlen( $product_title_display ) > self::RESTRICT_TITLE_CHARS ) {
|
languages/wp-product-review.pot
CHANGED
|
@@ -4,7 +4,7 @@ msgid ""
|
|
| 4 |
msgstr ""
|
| 5 |
"Project-Id-Version: WP Product Review Lite 3.0.0\n"
|
| 6 |
"Report-Msgid-Bugs-To: https://github.com/Codeinwp/wp-product-review/issues\n"
|
| 7 |
-
"POT-Creation-Date: 2017-08-
|
| 8 |
"MIME-Version: 1.0\n"
|
| 9 |
"Content-Type: text/plain; charset=utf-8\n"
|
| 10 |
"Content-Transfer-Encoding: 8bit\n"
|
|
@@ -76,11 +76,11 @@ msgid ""
|
|
| 76 |
msgstr ""
|
| 77 |
|
| 78 |
#: includes/admin/class-wppr-global-settings.php:76
|
| 79 |
-
msgid "
|
| 80 |
msgstr ""
|
| 81 |
|
| 82 |
#: includes/admin/class-wppr-global-settings.php:77
|
| 83 |
-
msgid "
|
| 84 |
msgstr ""
|
| 85 |
|
| 86 |
#: includes/admin/class-wppr-global-settings.php:78
|
|
@@ -511,12 +511,12 @@ msgid "Read Review"
|
|
| 511 |
msgstr ""
|
| 512 |
|
| 513 |
#: includes/admin/widgets/abstract/class-wppr-widget-abstract.php:74
|
| 514 |
-
#: includes/admin/widgets/class-wppr-latest-products-widget.php:
|
| 515 |
msgid "Latest Products"
|
| 516 |
msgstr ""
|
| 517 |
|
| 518 |
#: includes/admin/widgets/class-wppr-latest-products-widget.php:26
|
| 519 |
-
msgid "
|
| 520 |
msgstr ""
|
| 521 |
|
| 522 |
#: includes/admin/widgets/class-wppr-latest-products-widget.php:28
|
|
@@ -524,14 +524,14 @@ msgid "This widget displays the latest products based on their rating."
|
|
| 524 |
msgstr ""
|
| 525 |
|
| 526 |
#: includes/admin/widgets/class-wppr-top-products-widget.php:26
|
| 527 |
-
msgid "
|
| 528 |
msgstr ""
|
| 529 |
|
| 530 |
#: includes/admin/widgets/class-wppr-top-products-widget.php:28
|
| 531 |
msgid "This widget displays the top products based on their rating."
|
| 532 |
msgstr ""
|
| 533 |
|
| 534 |
-
#: includes/admin/widgets/class-wppr-top-products-widget.php:
|
| 535 |
msgid "Top Products"
|
| 536 |
msgstr ""
|
| 537 |
|
| 4 |
msgstr ""
|
| 5 |
"Project-Id-Version: WP Product Review Lite 3.0.0\n"
|
| 6 |
"Report-Msgid-Bugs-To: https://github.com/Codeinwp/wp-product-review/issues\n"
|
| 7 |
+
"POT-Creation-Date: 2017-08-23 21:03:52+00:00\n"
|
| 8 |
"MIME-Version: 1.0\n"
|
| 9 |
"Content-Type: text/plain; charset=utf-8\n"
|
| 10 |
"Content-Transfer-Encoding: 8bit\n"
|
| 76 |
msgstr ""
|
| 77 |
|
| 78 |
#: includes/admin/class-wppr-global-settings.php:76
|
| 79 |
+
msgid "After content"
|
| 80 |
msgstr ""
|
| 81 |
|
| 82 |
#: includes/admin/class-wppr-global-settings.php:77
|
| 83 |
+
msgid "Before content"
|
| 84 |
msgstr ""
|
| 85 |
|
| 86 |
#: includes/admin/class-wppr-global-settings.php:78
|
| 511 |
msgstr ""
|
| 512 |
|
| 513 |
#: includes/admin/widgets/abstract/class-wppr-widget-abstract.php:74
|
| 514 |
+
#: includes/admin/widgets/class-wppr-latest-products-widget.php:112
|
| 515 |
msgid "Latest Products"
|
| 516 |
msgstr ""
|
| 517 |
|
| 518 |
#: includes/admin/widgets/class-wppr-latest-products-widget.php:26
|
| 519 |
+
msgid "Latest Products Widget"
|
| 520 |
msgstr ""
|
| 521 |
|
| 522 |
#: includes/admin/widgets/class-wppr-latest-products-widget.php:28
|
| 524 |
msgstr ""
|
| 525 |
|
| 526 |
#: includes/admin/widgets/class-wppr-top-products-widget.php:26
|
| 527 |
+
msgid "Top Products Widget"
|
| 528 |
msgstr ""
|
| 529 |
|
| 530 |
#: includes/admin/widgets/class-wppr-top-products-widget.php:28
|
| 531 |
msgid "This widget displays the top products based on their rating."
|
| 532 |
msgstr ""
|
| 533 |
|
| 534 |
+
#: includes/admin/widgets/class-wppr-top-products-widget.php:108
|
| 535 |
msgid "Top Products"
|
| 536 |
msgstr ""
|
| 537 |
|
readme.txt
CHANGED
|
@@ -67,6 +67,12 @@ If you wanna learn more about the <a href="http://www.codeinwp.com/blog/fastest-
|
|
| 67 |
* fr_FR translation by Jacques Soule of http://wordpress-pour-vous.com/
|
| 68 |
|
| 69 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 70 |
= 3.0.0 - 2017-08-23 =
|
| 71 |
|
| 72 |
* Major code refactor ( Please test before update )
|
| 67 |
* fr_FR translation by Jacques Soule of http://wordpress-pour-vous.com/
|
| 68 |
|
| 69 |
== Changelog ==
|
| 70 |
+
= 3.0.1 - 2017-08-23 =
|
| 71 |
+
|
| 72 |
+
* Fixed backwards compatibility when using cwppos_show_review.
|
| 73 |
+
* Fixed undefined index error in widgets.
|
| 74 |
+
|
| 75 |
+
|
| 76 |
= 3.0.0 - 2017-08-23 =
|
| 77 |
|
| 78 |
* Major code refactor ( Please test before update )
|
vendor/autoload.php
CHANGED
|
@@ -4,4 +4,4 @@
|
|
| 4 |
|
| 5 |
require_once __DIR__ . '/composer' . '/autoload_real.php';
|
| 6 |
|
| 7 |
-
return
|
| 4 |
|
| 5 |
require_once __DIR__ . '/composer' . '/autoload_real.php';
|
| 6 |
|
| 7 |
+
return ComposerAutoloaderInit5c40f2e3ddcf212342e20cb9e9c96f85::getLoader();
|
vendor/autoload_52.php
CHANGED
|
@@ -4,4 +4,4 @@
|
|
| 4 |
|
| 5 |
require_once dirname(__FILE__) . '/composer'.'/autoload_real_52.php';
|
| 6 |
|
| 7 |
-
return
|
| 4 |
|
| 5 |
require_once dirname(__FILE__) . '/composer'.'/autoload_real_52.php';
|
| 6 |
|
| 7 |
+
return ComposerAutoloaderInit5984f4155cc8f9e07970778dcc0ab425::getLoader();
|
vendor/composer/autoload_real.php
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
|
| 3 |
// autoload_real.php @generated by Composer
|
| 4 |
|
| 5 |
-
class
|
| 6 |
{
|
| 7 |
private static $loader;
|
| 8 |
|
|
@@ -19,9 +19,9 @@ class ComposerAutoloaderInite6913fb43af06d5102ae810f141aed23
|
|
| 19 |
return self::$loader;
|
| 20 |
}
|
| 21 |
|
| 22 |
-
spl_autoload_register(array('
|
| 23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
| 24 |
-
spl_autoload_unregister(array('
|
| 25 |
|
| 26 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
| 27 |
foreach ($map as $namespace => $path) {
|
|
@@ -42,14 +42,14 @@ class ComposerAutoloaderInite6913fb43af06d5102ae810f141aed23
|
|
| 42 |
|
| 43 |
$includeFiles = require __DIR__ . '/autoload_files.php';
|
| 44 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
| 45 |
-
|
| 46 |
}
|
| 47 |
|
| 48 |
return $loader;
|
| 49 |
}
|
| 50 |
}
|
| 51 |
|
| 52 |
-
function
|
| 53 |
{
|
| 54 |
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
| 55 |
require $file;
|
| 2 |
|
| 3 |
// autoload_real.php @generated by Composer
|
| 4 |
|
| 5 |
+
class ComposerAutoloaderInit5c40f2e3ddcf212342e20cb9e9c96f85
|
| 6 |
{
|
| 7 |
private static $loader;
|
| 8 |
|
| 19 |
return self::$loader;
|
| 20 |
}
|
| 21 |
|
| 22 |
+
spl_autoload_register(array('ComposerAutoloaderInit5c40f2e3ddcf212342e20cb9e9c96f85', 'loadClassLoader'), true, true);
|
| 23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
| 24 |
+
spl_autoload_unregister(array('ComposerAutoloaderInit5c40f2e3ddcf212342e20cb9e9c96f85', 'loadClassLoader'));
|
| 25 |
|
| 26 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
| 27 |
foreach ($map as $namespace => $path) {
|
| 42 |
|
| 43 |
$includeFiles = require __DIR__ . '/autoload_files.php';
|
| 44 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
| 45 |
+
composerRequire5c40f2e3ddcf212342e20cb9e9c96f85($fileIdentifier, $file);
|
| 46 |
}
|
| 47 |
|
| 48 |
return $loader;
|
| 49 |
}
|
| 50 |
}
|
| 51 |
|
| 52 |
+
function composerRequire5c40f2e3ddcf212342e20cb9e9c96f85($fileIdentifier, $file)
|
| 53 |
{
|
| 54 |
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
| 55 |
require $file;
|
vendor/composer/autoload_real_52.php
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
|
| 3 |
// autoload_real_52.php generated by xrstf/composer-php52
|
| 4 |
|
| 5 |
-
class
|
| 6 |
private static $loader;
|
| 7 |
|
| 8 |
public static function loadClassLoader($class) {
|
|
@@ -19,9 +19,9 @@ class ComposerAutoloaderInite64e7691549e1caf8ed453d37599105f {
|
|
| 19 |
return self::$loader;
|
| 20 |
}
|
| 21 |
|
| 22 |
-
spl_autoload_register(array('
|
| 23 |
self::$loader = $loader = new xrstf_Composer52_ClassLoader();
|
| 24 |
-
spl_autoload_unregister(array('
|
| 25 |
|
| 26 |
$vendorDir = dirname(dirname(__FILE__));
|
| 27 |
$baseDir = dirname($vendorDir);
|
| 2 |
|
| 3 |
// autoload_real_52.php generated by xrstf/composer-php52
|
| 4 |
|
| 5 |
+
class ComposerAutoloaderInit5984f4155cc8f9e07970778dcc0ab425 {
|
| 6 |
private static $loader;
|
| 7 |
|
| 8 |
public static function loadClassLoader($class) {
|
| 19 |
return self::$loader;
|
| 20 |
}
|
| 21 |
|
| 22 |
+
spl_autoload_register(array('ComposerAutoloaderInit5984f4155cc8f9e07970778dcc0ab425', 'loadClassLoader'), true /*, true */);
|
| 23 |
self::$loader = $loader = new xrstf_Composer52_ClassLoader();
|
| 24 |
+
spl_autoload_unregister(array('ComposerAutoloaderInit5984f4155cc8f9e07970778dcc0ab425', 'loadClassLoader'));
|
| 25 |
|
| 26 |
$vendorDir = dirname(dirname(__FILE__));
|
| 27 |
$baseDir = dirname($vendorDir);
|
wp-product-review.php
CHANGED
|
@@ -15,7 +15,7 @@
|
|
| 15 |
* Plugin Name: WP Product Review Lite
|
| 16 |
* Plugin URI: https://themeisle.com/plugins/wp-product-review/
|
| 17 |
* Description: The highest rated and most complete review plugin, now with rich snippets support. Easily turn your basic posts into in-depth reviews.
|
| 18 |
-
* Version: 3.0.
|
| 19 |
* Author: ThemeIsle
|
| 20 |
* Author URI: https://themeisle.com/
|
| 21 |
* Requires at least: 3.5
|
|
@@ -67,7 +67,7 @@ register_deactivation_hook( __FILE__, 'deactivate_wppr' );
|
|
| 67 |
*/
|
| 68 |
function run_wppr() {
|
| 69 |
|
| 70 |
-
define( 'WPPR_LITE_VERSION', '3.0.
|
| 71 |
define( 'WPPR_PATH', dirname( __FILE__ ) );
|
| 72 |
define( 'WPPR_SLUG', 'wppr' );
|
| 73 |
define( 'WPPR_UPSELL_LINK', 'https://themeisle.com/plugins/wp-product-review/' );
|
|
@@ -75,6 +75,8 @@ function run_wppr() {
|
|
| 75 |
|
| 76 |
$plugin = new WPPR();
|
| 77 |
$plugin->run();
|
|
|
|
|
|
|
| 78 |
$vendor_file = WPPR_PATH . '/vendor/autoload_52.php';
|
| 79 |
if ( is_readable( $vendor_file ) ) {
|
| 80 |
require_once $vendor_file;
|
| 15 |
* Plugin Name: WP Product Review Lite
|
| 16 |
* Plugin URI: https://themeisle.com/plugins/wp-product-review/
|
| 17 |
* Description: The highest rated and most complete review plugin, now with rich snippets support. Easily turn your basic posts into in-depth reviews.
|
| 18 |
+
* Version: 3.0.1
|
| 19 |
* Author: ThemeIsle
|
| 20 |
* Author URI: https://themeisle.com/
|
| 21 |
* Requires at least: 3.5
|
| 67 |
*/
|
| 68 |
function run_wppr() {
|
| 69 |
|
| 70 |
+
define( 'WPPR_LITE_VERSION', '3.0.1' );
|
| 71 |
define( 'WPPR_PATH', dirname( __FILE__ ) );
|
| 72 |
define( 'WPPR_SLUG', 'wppr' );
|
| 73 |
define( 'WPPR_UPSELL_LINK', 'https://themeisle.com/plugins/wp-product-review/' );
|
| 75 |
|
| 76 |
$plugin = new WPPR();
|
| 77 |
$plugin->run();
|
| 78 |
+
|
| 79 |
+
require( 'includes/legacy.php' );
|
| 80 |
$vendor_file = WPPR_PATH . '/vendor/autoload_52.php';
|
| 81 |
if ( is_readable( $vendor_file ) ) {
|
| 82 |
require_once $vendor_file;
|
