first commit

This commit is contained in:
2025-03-12 17:06:23 +01:00
commit 2241f7131f
13185 changed files with 1692479 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
<?php
if ($sf_request->hasParameter('fake_paypo'))
{
echo input_hidden_tag('fake_paypo', true);
}
echo st_przelewy24_payment_methods_select_tag('config[channels]', $config->get('channels'));
?>

View File

@@ -0,0 +1,14 @@
<?php include st_admin_get_template_path(__FILE__) ?>
<script>
jQuery(function($) {
$('#config_payment_channels_enabled').change(function() {
const fields = $('.row_report_key, .row_channels, .row_highlighted_for_product, .row_highlighted_for_basket');
if ($(this).prop('checked')) {
fields.removeClass('hidden');
} else {
fields.addClass('hidden');
}
});
});
</script>

View File

@@ -0,0 +1,22 @@
<?php use_helper('I18N', 'stAdminGenerator');?>
<?php echo st_get_admin_head('stPrzelewy24Plugin', __('Przelewy24'), '', array('stPayment')); ?>
<?php st_view_slot_start('application-menu') ?>
<?php st_include_component('stPrzelewy24Backend', 'listMenu') ?>
<?php st_view_slot_end() ?>
<?php st_include_partial('stAdminGenerator/message', array('labels' => $labels));?>
<?php echo form_tag('przelewy24/index', array('id' => 'sf_admin_config_form', 'class' => 'admin_form'));?>
<fieldset>
<div class="content">
<?php echo st_admin_get_form_field('config[autoredirect]', $labels['config{autoredirect}'], true, 'checkbox_tag', array('checked' => $config->get('autoredirect'), 'help' => __('Przekierowuje automatycznie na stronę płatności po złożeniu zamówienia'))) ?>
<?php echo st_admin_get_form_field('config[test]', $labels['config{test}'], true, 'checkbox_tag', array('checked' => $config->get('test'))) ?>
<?php echo st_admin_get_form_field('config[przelewy24_id]', $labels['config{przelewy24_id}'], $config->get('przelewy24_id'), 'input_tag', array('required' => true)) ?>
<?php echo st_admin_get_form_field('config[salt]', $labels['config{salt}'], $config->get('salt'), 'input_tag', array('required' => true)) ?>
</div>
</fieldset>
<?php echo st_get_admin_actions_head('style="margin-top: 10px; float: right"');?>
<?php echo st_get_admin_action('save', __('Zapisz', null, 'stAdminGeneratorPlugin'), null, array('name' => 'save'));?>
<?php echo st_get_admin_actions_foot();?>
</form>
<?php echo st_get_admin_foot();?>