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

Open in your IDE?
  1. <div class="modal fade" id="searchPluginModal-{{ item.id }}" tabindex="-1" role="dialog" aria-labelledby="searchPluginModal" aria-hidden="true">
  2.     <div class="modal-dialog modal-lg" role="document">
  3.         <div class="modal-content">
  4.             <div class="modal-header">
  5.                 <h5 class="modal-title fw-bold" id="exampleModalLabel">{{ 'admin.store.plugin_owners_search.modal.header'|trans }}</h5>
  6.                 <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
  7.             </div>
  8.             <div class="modal-body">
  9.                 <div class="row mb-5">
  10.                     <div class="col-6">
  11.                         <img class="w-100 img-responsive"
  12.                              src="{{ item.image|default(asset('noimage_plugin_list.png', 'save_image')) }}" alt="{{ item.name }}">
  13.                     </div>
  14.                     <div class="col-6">
  15.                         <h5 class="fw-bold mb-3">{{ item.name }}</h5>
  16.                         <p>{{ item.short_description }}</p>
  17.                         <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>
  18.                     </div>
  19.                 </div>
  20.                 <div class="row mb-4">
  21.                     <div class="col-7 ps-4">
  22.                         {{ include('@admin/Store/plugin_detail_info.twig') }}
  23.                     </div>
  24.                     <div class="col-5 text-end">
  25.                         {% if item.contact_url %}
  26.                         <a class="btn btn-ec-regular btn-lg mb-3" href="{{ item.contact_url }}" target="_blank"><i class="fa fa-image fa-lg text-secondary"></i> {{ 'admin.store.plugin_owners_search.modal.contact'|trans }}</a>{ }}
  27.                         {% endif %}
  28.                         {% if item.manual_url %}
  29.                         <a class="btn btn-ec-regular btn-lg" href="{{ item.manual_url }}" target="_blank"><i class="fa fa-image fa-lg text-secondary"></i> {{ 'admin.store.plugin_owners_search.modal.manual'|trans }}</a>
  30.                         {% endif %}
  31.                     </div>
  32.                 </div>
  33.                 <div class="row">
  34.                     <div class="col-12">
  35.                         {% set version_check = item.version_check  %}
  36.                         {% if version_check == 0 %}
  37.                         <div class="alert alert-danger border border-danger">
  38.                                 <p class="text-danger mb-1">{{ 'admin.store.plugin_owners_search.modal.note'|trans({"%version%": constant('Eccube\\Common\\Constant::VERSION') }) }}</p>
  39.                         </div>
  40.                         {% endif %}
  41.                     </div>
  42.                 </div>
  43.                 <hr>
  44.                 <div class="row mt-4">
  45.                     <div class="col-12">
  46.                         {{ item.long_description|raw|purify }}
  47.                     </div>
  48.                 </div>
  49.             </div>
  50.             <div class="modal-footer">
  51.                 <form action="{{ eccube_config.eccube_owners_store_url }}/gateway/purchase/?product_id={{ item.id }}" method="post" target="_blank">
  52.                 <button type="button" class="btn btn-ec-sub" data-bs-dismiss="modal">{{ 'admin.store.plugin_owners_search.modal.cancel'|trans }}</button>
  53.                 {% if item.update_status == 1 %}
  54.                     <a href="{{ url('admin_store_plugin_install_confirm', {'id': item.id}) }}" class="btn btn-primary">
  55.                         {{ 'admin.store.plugin_owners_search.install.free'|trans }}
  56.                     </a>
  57.                 {% elseif item.update_status == 2 %}
  58.                     <a href="#" class="btn btn-ec-regular">{{ 'admin.store.plugin.installed'|trans }}</a>
  59.                 {% elseif item.update_status == 3 %}
  60.                     <a href="{{ url('admin_store_plugin_install_confirm', {'id': item.id}) }}" class="btn btn-primary">
  61.                         {{ 'admin.store.plugin.update'|trans }}
  62.                     </a>
  63.                 {% elseif item.update_status == 4 %}
  64.                     <input type="hidden" name="mode" value="link_site" />
  65.                     <input type="hidden" name="public_key" value="{{ BaseInfo.authentication_key }}" />
  66.                     <input type="submit" class="btn btn-primary" value="{{ 'admin.store.plugin_owners_search.install.fee'|trans }}" />
  67.                 {% endif %}
  68.                 </form>
  69.             </div>
  70.         </div>
  71.     </div>
  72. </div>