├── .coveralls.yml ├── Resource ├── config │ └── services.yaml ├── template │ ├── default │ │ ├── complete.twig │ │ ├── review.twig │ │ ├── confirm.twig │ │ └── index.twig │ └── admin │ │ ├── config.twig │ │ ├── edit.twig │ │ └── index.twig └── locale │ └── messages.ja.yaml ├── composer.json ├── Tests ├── bootstrap.php └── Web │ ├── ProductReviewConfigControllerTest.php │ ├── ReviewControllerTest.php │ └── ReviewAdminControllerTest.php ├── Entity ├── ProductReviewStatus.php ├── ProductReviewConfig.php └── ProductReview.php ├── ProductReviewNav.php ├── Repository ├── ProductReviewStatusRepository.php ├── ProductReviewConfigRepository.php └── ProductReviewRepository.php ├── .github └── workflows │ ├── main.yml │ └── ci.yml ├── README.md ├── phpunit.xml.dist ├── Controller ├── Admin │ ├── ConfigController.php │ └── ProductReviewController.php └── ProductReviewController.php ├── Form └── Type │ ├── Admin │ ├── ProductReviewConfigType.php │ ├── ProductReviewType.php │ └── ProductReviewSearchType.php │ └── ProductReviewType.php ├── ProductReviewEvent.php ├── PluginManager.php └── LICENSE /.coveralls.yml: -------------------------------------------------------------------------------- 1 | # for php-coveralls 2 | #src_dir: src 3 | coverage_clover: coverage.clover 4 | json_path: coveralls-upload.json 5 | -------------------------------------------------------------------------------- /Resource/config/services.yaml: -------------------------------------------------------------------------------- 1 | parameters: 2 | product_review_display_count_min: 1 3 | product_review_display_count_max: 30 -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ec-cube/productreview42", 3 | "version": "4.3.0", 4 | "description": "商品レビュー管理プラグイン", 5 | "type": "eccube-plugin", 6 | "require": { 7 | "ec-cube/plugin-installer": "^2.0" 8 | }, 9 | "extra": { 10 | "code": "ProductReview42" 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Tests/bootstrap.php: -------------------------------------------------------------------------------- 1 | load($envFile); 18 | } 19 | -------------------------------------------------------------------------------- /Entity/ProductReviewStatus.php: -------------------------------------------------------------------------------- 1 | [ 24 | 'children' => [ 25 | 'product_review' => [ 26 | 'name' => 'product_review.admin.product_review.title', 27 | 'url' => 'product_review_admin_product_review', 28 | ], 29 | ], 30 | ], 31 | ]; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /Repository/ProductReviewStatusRepository.php: -------------------------------------------------------------------------------- 1 | find($id); 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /Resource/template/default/complete.twig: -------------------------------------------------------------------------------- 1 | {# 2 | This file is part of EC-CUBE 3 | 4 | Copyright(c) LOCKON CO.,LTD. All Rights Reserved. 5 | 6 | http://www.lockon.co.jp/ 7 | 8 | For the full copyright and license information, please view the LICENSE 9 | file that was distributed with this source code. 10 | #} 11 | {% extends 'default_frame.twig' %} 12 | 13 | {% set body_class = 'product_review_complete' %} 14 | 15 | {% block main %} 16 |
{{ 'product_review.front.review.complete.thanks_detail'|trans|nl2br }}
28 | 31 |110 | 111 | {{ ProductReview.create_date|date_day }} 112 | 113 | 114 | 115 | {% if ProductReview.reviewer_url %} 116 | {{ 'product_review.front.product_detail.name'|trans({ '%name%': ProductReview.reviewer_name }) }} 118 | {% else %} 119 | {{ 'product_review.front.product_detail.name'|trans({ '%name%': ProductReview.reviewer_name }) }} 120 | {% endif %} 121 | 122 | 123 | 124 | {% set positive_star = ProductReview.recommend_level %} 125 | {% set negative_star = 5 - positive_star %} 126 | 127 | {{ stars.stars(positive_star, negative_star) }} 128 | 129 |
130 | 131 | 132 | {{ ProductReview.title }} 133 | 134 | 135 |{{ ProductReview.comment|nl2br }}
136 |{{ 'product_review.front.product_detail.no_review'|trans }}
141 | {% endif %} 142 || ID | 197 |{{ 'product_review.admin.product_review.th_posted_date'|trans }} | 198 |{{ 'product_review.admin.product_review.th_contributor'|trans }} | 199 |{{ 'product_review.admin.product_review.th_product_name'|trans }} | 200 |{{ 'product_review.admin.product_review.th_title'|trans }} | 201 |{{ 'product_review.admin.product_review.th_level'|trans }} | 202 |{{ 'product_review.admin.product_review.th_status'|trans }} | 203 |204 | |
|---|---|---|---|---|---|---|---|
| {{ Review.id }} | 210 |{{ Review.create_date|date_min }} | 211 |{{ Review.reviewer_name }} | 212 |{{ Review.Product.name }} | 213 |214 | {{ Review.title }} 215 | | 216 |{% for i in 1..Review.recommend_level %}★{% endfor %} | 217 |{{ Review.status }} | 218 |219 | 234 | 267 | | 268 |