src/Eccube/Resource/template/admin/Store/plugin_search_panel.twig line 1

Open in your IDE?
  1. {#
  2. This file is part of EC-CUBE
  3. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  4. http://www.ec-cube.co.jp/
  5. For the full copyright and license information, please view the LICENSE
  6. file that was distributed with this source code.
  7. #}
  8. <div class="col-sm-2 pe-2 pe-sm-3">
  9.     <a href="#" data-bs-toggle="modal" data-bs-target="#searchPluginModal-{{ item.id }}" data-code="{{ item.code }}">
  10.         <img class="w-100 img-responsive" src="{{ item.image|default(asset('noimage_plugin_list.png', 'save_image')) }}" alt="{{ item.name }}">
  11.     </a>
  12. </div>
  13. <div class="col-sm-6 col-md-7">
  14.     <div class="info">
  15.         <h5>
  16.             <a href="{{ item.store_url }}" class="fw-bold" target="_blank">{{ item.name }}</a>({{ 'admin.store.plugin_owners_search.latest'|trans }}{{ item.version }})
  17.         </h5>
  18.         <h6>{{ item.short_description }}</h6>
  19.     </div>
  20.     <div class="row">
  21.         <div class="col-auto col-md-5 col-lg-6">
  22.             <p class="plg-prices text-danger"><span class="fw-bold text-dark">{{ 'admin.store.plugin.price'|trans }} </span> {{ item.price|price }}<small> ({{ 'common.tax_include'|trans }})</small></p>
  23.         </div>
  24.         <div class="col-auto col-md-7 col-lg-2">
  25.             {% if not item.price %}
  26.             <dl class="text-dark">
  27.                 <dd class="d-inline-block"><span class="pe-1 fw-bold">{{'admin.store.plugin_owners_search.dl'|trans}}</span> {{ item.downloads|number_format }}</dd>
  28.             </dl>
  29.             {% endif %}
  30.         </div>
  31.         <div class="col-auto col-md-7 col-lg-4">
  32.             <dl class="text-dark">
  33.                 <dd class="d-inline-block ms-4"><span class="pe-1 fw-bold">{{ 'admin.store.plugin_owners_search.support'|trans }}</span> {% for version in item.supported_versions %}{{ version }} {%- if loop.last == false%}, {% endif -%}{% endfor %}</dd>
  34.             </dl>
  35.         </div>
  36.     </div>
  37. </div>
  38. <div class="col-sm-4 col-md-3 text-end">
  39.     <form action="{{ eccube_config.eccube_owners_store_url }}/gateway/purchase/?product_id={{ item.id }}" method="post" target="_blank">
  40.         <a href="#" data-bs-toggle="modal" data-bs-target="#searchPluginModal-{{ item.id }}" class="btn btn-ec-regular">{{'admin.store.plugin_owners_search.detail'|trans}}</a>
  41.         {% if item.update_status == 1 %}
  42.             <a href="{{ url('admin_store_plugin_install_confirm', {'id': item.id}) }}" class="btn btn-primary">
  43.                 {{ 'admin.store.plugin_owners_search.install.free'|trans }}
  44.             </a>
  45.         {% elseif item.update_status == 2 %}
  46.             <a href="#" class="btn btn-ec-regular">{{ 'admin.store.plugin.installed'|trans }}</a>
  47.         {% elseif item.update_status == 3 %}
  48.             <a href="{{ url('admin_store_plugin_install_confirm', {'id': item.id}) }}" class="btn btn-primary">
  49.                 {{ 'admin.store.plugin.update'|trans }}
  50.             </a>
  51.         {% elseif item.update_status == 4 %}
  52.             <input type="hidden" name="mode" value="link_site" />
  53.             <input type="hidden" name="public_key" value="{{ BaseInfo.authentication_key }}" />
  54.             <input type="submit" class="btn btn-primary" value="{{ 'admin.store.plugin_owners_search.install.fee'|trans }}" />
  55.         {% endif %}
  56.     </form>
  57. </div>
  58. <!-- Modal -->
  59. {{ include('@admin/Store/plugin_detail_modal.twig') }}