This commit is contained in:
2025-10-20 14:10:54 +02:00
parent 75ca8fd840
commit d2c1970ef8
732 changed files with 101915 additions and 2 deletions

View File

@@ -0,0 +1,74 @@
{# **
* File from http://PrestaShow.pl
*
* DISCLAIMER
* Do not edit or add to this file if you wish to upgrade this module to newer
* versions in the future.
*
* @author PrestaShow.pl <kontakt@prestashow.pl>
* @copyright Since 2014 PrestaShow.pl
* @license https://prestashow.pl/license
* #}
{% extends '@Modules/pshowsso/vendor/prestashow/presta-base-v1/Resources/views/admin/admin_controller.html.twig' %}
{% block module_content %}
{{ form_start(configurationForm) }}
<div class="card">
<h3 class="card-header">
<i class="material-icons">edit</i> {{ serviceName }}
</h3>
<div class="card-body">
<div class="form-wrapper">
{{ form_widget(configurationForm) }}
</div>
</div>
<div class="card-footer">
<div class="d-flex justify-content-end">
<button class="btn btn-primary">{{ 'Save'|trans({}, 'Modules.Pshowsso.Admin') }}</button>
</div>
</div>
</div>
{{ form_end(configurationForm) }}
<div class="alert alert-info d-print-none" role="alert">
<div class="alert-text">
<p>
{{ 'Test logging in with the button:'|trans({}, 'Modules.Pshowsso.Admin') }}
&nbsp;
<a href="{{ frontLoginUrl }}" class="btn btn-default btn-sm btn-xs" target="_blank">
{{ 'Sign in with'|trans({}, 'Modules.Pshowsso.Admin') }} {{ serviceName }}
</a>
</p>
</div>
<p>&nbsp;</p>
<div class="alert-text">
<p>{{ 'You can place the login button anywhere in the template (.tpl) using the code:'|trans({}, 'Modules.Pshowsso.Admin') }}</p>
<p><code>{hook h='displaySSOButton' service='{{ serviceName|lower }}'}</code></p>
</div>
<p>&nbsp;</p>
<div class="alert-text">
<p>
{{ 'Change the appearance of the button by copying the file:'|trans({}, 'Modules.Pshowsso.Admin') }}
<p>
<code>
{{ shopRootDir }}/modules/pshowsso/views/templates/sso_btn/default.tpl
</code>
</p>
<p>{{ 'to:'|trans({}, 'Modules.Pshowsso.Admin') }}</p>
<p>
<code>
{{ currentThemeDir }}modules/pshowsso/views/templates/sso_btn/{{ serviceName|lower }}.tpl
</code>
</p>
</div>
</div>
{% endblock %}
{# {% block javascripts %} #}
{# {{ parent() }} #}
{# #}{# <script src="{{ asset('../modules/blockwishlist/public/form.bundle.js') }}"></script> #}
{# {% endblock %} #}

View File

@@ -0,0 +1,98 @@
{# **
* File from http://PrestaShow.pl
*
* DISCLAIMER
* Do not edit or add to this file if you wish to upgrade this module to newer
* versions in the future.
*
* @author PrestaShow.pl <kontakt@prestashow.pl>
* @copyright Since 2014 PrestaShow.pl
* @license https://prestashow.pl/license
* #}
<ul class="nav nav-pills">
<li class="nav-item">
<a
class="nav-link tab {% if serviceName == 'Apple' %}active{% endif %}"
href="{{ url('pshowsso.admin.config', {'service': 'apple'}) }}"
>
Apple
{# <span class="notification-container"> #}
{# <span class="notification-counter" style="background: green;">&nbsp;&nbsp;</span> #}
{# </span> #}
</a>
</li>
<li class="nav-item">
<a
class="nav-link tab {% if serviceName == 'Facebook' %}active{% endif %}"
href="{{ url('pshowsso.admin.config', {'service': 'facebook'}) }}"
>
Facebook
{# <span class="notification-container"> #}
{# <span class="notification-counter" style="background: green;">&nbsp;&nbsp;</span> #}
{# </span> #}
</a>
</li>
<li class="nav-item">
<a
class="nav-link tab {% if serviceName == 'Github' %}active{% endif %}"
href="{{ url('pshowsso.admin.config', {'service': 'github'}) }}"
>
Github
{# <span class="notification-container"> #}
{# <span class="notification-counter" style="background: green;">&nbsp;&nbsp;</span> #}
{# </span> #}
</a>
</li>
<li class="nav-item">
<a
class="nav-link tab {% if serviceName == 'Google' %}active{% endif %}"
href="{{ url('pshowsso.admin.config', {'service': 'google'}) }}"
>
Google
{# <span class="notification-container"> #}
{# <span class="notification-counter" style="background: green;">&nbsp;&nbsp;</span> #}
{# </span> #}
</a>
</li>
<li class="nav-item">
<a
class="nav-link tab {% if serviceName == 'Microsoft' %}active{% endif %}"
href="{{ url('pshowsso.admin.config', {'service': 'microsoft'}) }}"
>
Microsoft
{# <span class="notification-container"> #}
{# <span class="notification-counter" style="background: gray;">&nbsp;&nbsp;</span> #}
{# </span> #}
</a>
</li>
<li class="nav-item">
<a
class="nav-link tab {% if serviceName == 'X' %}active{% endif %}"
href="{{ url('pshowsso.admin.config', {'service': 'x'}) }}"
>
X (Twitter)
{# <span class="notification-container"> #}
{# <span class="notification-counter" style="background: gray;">&nbsp;&nbsp;</span> #}
{# </span> #}
</a>
</li>
<li class="nav-item">
<a
class="nav-link tab {% if serviceName == 'Keycloak' %}active{% endif %}"
href="{{ url('pshowsso.admin.config', {'service': 'keycloak'}) }}"
>
Keycloak
</a>
</li>
<li class="nav-item">
<a
class="nav-link tab {% if serviceName == 'More' %}active{% endif %}"
href="{{ url('pshowsso.admin.config', {'service': 'more'}) }}"
>
...more
{# <span class="notification-container"> #}
{# <span class="notification-counter">+</span> #}
{# </span> #}
</a>
</li>
</ul>

View File

@@ -0,0 +1,22 @@
<?php
/**
* File from http://PrestaShow.pl
*
* DISCLAIMER
* Do not edit or add to this file if you wish to upgrade this module to newer
* versions in the future.
*
* @author PrestaShow.pl <kontakt@prestashow.pl>
* @copyright Since 2014 PrestaShow.pl
* @license https://prestashow.pl/license
*/
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../');
exit;

View File

@@ -0,0 +1,29 @@
{#**
* File from http://PrestaShow.pl
*
* DISCLAIMER
* Do not edit or add to this file if you wish to upgrade this module to newer
* versions in the future.
*
* @author PrestaShow.pl <kontakt@prestashow.pl>
* @copyright Since 2014 PrestaShow.pl
* @license https://prestashow.pl/license
*#}
{% extends '@Modules/pshowsso/vendor/prestashow/presta-base-v1/Resources/views/admin/admin_controller.html.twig' %}
{% block module_content %}
<div class="row justify-content-center">
<div class="col-xl-10">
<div class="card">
<h3 class="card-header">
<i class="material-icons">edit</i>
{{ 'More services?'|trans({}, 'Modules.Pshowsso.Admin') }}
</h3>
<div class="card-body">
{{ 'Need to log in through another service? Write to us!'|trans({}, 'Modules.Pshowsso.Admin') }}
</div>
</div>
</div>
</div>
{% endblock %}