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,9 @@
<?php
$path = $webpage->getPdfAttachmentPath();
$url = $webpage->getPdfAttachmentPath(false);
?>
<?php echo input_file_tag('webpage[attachment]') ?>
<?php if (is_file($path)): ?>
<p><a href="<?php echo $url ?>?v<?php echo filemtime($path) ?>" target="_blank"><?php echo __('Pokaż załącznik') ?></a> <a target="_self" href="/backend.php/webpage/deleteTerms?path=<?php echo $path; ?>&page=<?php echo sfContext::getInstance()->getRequest()->getParameter('id'); ?>" target="_blank"><?php echo __('Usuń') ?></a></p>
<?php endif ?>

View File

@@ -0,0 +1 @@
<?php echo select_tag('webpage_group[default_group_page]', options_for_select($default_group_page,$webpage_group->getGroupPage()));?>

View File

@@ -0,0 +1 @@
<?php echo select_tag('webpage[default_pages]', options_for_select($default_pages,$webpage->getPage()));?>

View File

@@ -0,0 +1,8 @@
<?php if (($webpage->getCulture()=="pl_PL") || ($webpage->getCulture()=='en_US')):?>
<?php $lang_tab = explode("_",$webpage->getCulture());?>
<?php $lang=$lang_tab[0];?>
<?php else:?>
<?php $lang = $webpage->getCulture();?>
<?php endif;?>
<?php echo link_to(__("Przejdź do strony"), "http://".$sf_request->getHost()."/webpage/".$lang."/".$webpage->getUrl().".html", array("target"=>"_blank")) ?>

View File

@@ -0,0 +1,28 @@
<input style="margin-bottom: 5px;" id="load_privacy" type="button" value="<?php echo __('Załaduj szablon polityki prywatności'); ?>"><br/>
<?php echo __('Szablon "Polityki prywatności" jest integralną częścią wzoru regulaminu (ładowanego szablonu). SOTE nie ponosi odpowiedzialności za jego użytkowanie.'); ?>
<?php // echo $content; ?>
<script type="text/javascript">
jQuery(function ($)
{
$(document).ready(function()
{
var iframe = $('.rich_text_editor');
$( "#load_privacy" ).click(function() {
if (confirm('<?php echo __('Potwierdź pobranie szablonu regulaminu. Szablon zastąpi aktualny tekst po zapisie zmian.'); ?>')) {
$('#toggle_webpage_content').remove();
$('#webpage_content').val('<?php echo $content; ?>').change();
}
});
});
});
</script>

View File

@@ -0,0 +1,6 @@
<?php
$config = stConfig::getInstance(sfContext::getInstance(), 'appTermsBackend');
$config->setCulture(sfContext::getInstance()->getRequest()->getParameter('culture', stLanguage::getOptLanguage()));
?>
<input type="text" size="60;" value="<?php echo $config->get('privacy_field1', null, true) ?>" id="webpage_privacy_field1" name="webpage[privacy_field1]">

View File

@@ -0,0 +1,6 @@
<?php
$config = stConfig::getInstance(sfContext::getInstance(), 'appTermsBackend');
$config->setCulture(sfContext::getInstance()->getRequest()->getParameter('culture', stLanguage::getOptLanguage()));
?>
<input type="text" size="60;" value="<?php echo $config->get('privacy_field2', null, true) ?>" id="webpage_privacy_field2" name="webpage[privacy_field2]">

View File

@@ -0,0 +1,6 @@
<?php
$config = stConfig::getInstance(sfContext::getInstance(), 'appTermsBackend');
$config->setCulture(sfContext::getInstance()->getRequest()->getParameter('culture', stLanguage::getOptLanguage()));
?>
<input type="text" size="60;" value="<?php echo $config->get('privacy_field3', null, true) ?>" id="webpage_privacy_field3" name="webpage[privacy_field3]">

View File

@@ -0,0 +1,6 @@
<?php
$config = stConfig::getInstance(sfContext::getInstance(), 'appTermsBackend');
$config->setCulture(sfContext::getInstance()->getRequest()->getParameter('culture', stLanguage::getOptLanguage()));
?>
<input type="text" size="60;" value="<?php echo $config->get('privacy_field4', null, true) ?>" id="webpage_privacy_field4" name="webpage[privacy_field4]">

View File

@@ -0,0 +1,6 @@
<?php
$config = stConfig::getInstance(sfContext::getInstance(), 'appTermsBackend');
$config->setCulture(sfContext::getInstance()->getRequest()->getParameter('culture', stLanguage::getOptLanguage()));
?>
<input type="text" size="60;" value="<?php echo $config->get('privacy_field5', null, true) ?>" id="webpage_privacy_field5" name="webpage[privacy_field5]">

View File

@@ -0,0 +1,9 @@
<?php
if ($webpage->getState() == "RIGHT2CANCEL")
{
$checked = 'checked="checked"';
}else{
$checked = '';
}
?>
<input id="webpage_right2cancel" type="checkbox" <?php echo $checked;?> value="1" name="webpage[right2cancel]" onclick="if (this.checked){ document.getElementById('webpage_privacy').checked=false; document.getElementById('webpage_terms').checked=false; document.getElementById('webpage_shipping').checked=false; }else{ document.getElementById('webpage_privacy').disabled = false; document.getElementById('webpage_terms').disabled = false; document.getElementById('webpage_shipping').disabled = false; }" />

View File

@@ -0,0 +1,25 @@
<input style="margin-bottom: 5px;" id="load_right2cancel" type="button" value="<?php echo __('Załaduj szablon odstąpienia od umowy'); ?>"><br/>
<?php echo __('Szablon "Odstąpienia od umowy" jest integralną częścią wzoru regulaminu. SOTE nie ponosi odpowiedzialności za jego użytkowanie.'); ?>
<?php // echo $content; ?>
<script type="text/javascript">
jQuery(function ($) {
$(document).ready(function() {
var iframe = $('.rich_text_editor');
$( "#load_right2cancel" ).click(function() {
if (confirm('<?php echo __('Potwierdź pobranie szablonu regulaminu. Szablon zastąpi aktualny tekst po zapisie zmian.'); ?>')) {
$('#toggle_webpage_content').remove();
$('#webpage_content').val('<?php echo addslashes($content); ?>').change();
}
});
});
});
</script>

View File

@@ -0,0 +1,51 @@
<?php
$options = WebpagePeer::getStates();
echo select_tag('webpage[state]', options_for_select($options, $webpage->getState(), ['include_custom' => '---']));
?>
<script type="text/javascript">
jQuery(function($) {
var formatTerms = "<?php echo stConfig::getInstance('stCompatibilityBackend')->get('terms_in_mail_confirm_order_format') ?>";
var formatRight2Cancel = "<?php echo stConfig::getInstance('stCompatibilityBackend')->get('right_2_cancel_in_mail_confirm_order_format') ?>";
var terms_on = "<?php echo stConfig::getInstance('appTermsBackend')->get('terms_on') ?>";
var privacy_on = "<?php echo stConfig::getInstance('appTermsBackend')->get('privacy_on') ?>";
var right2cancel_on = "<?php echo stConfig::getInstance('appTermsBackend')->get('right2cancel_on') ?>";
var culture = "<?php echo $webpage->getCulture() ?>";
$('#webpage_state').change(function() {
var value = $(this).val();
if (value == 'TERMS' && formatTerms == 'pdf' || value == 'RIGHT2CANCEL' && formatRight2Cancel == 'pdf') {
$('.row_attachment').show();
} else {
$('.row_attachment').hide();
$('#sf_fieldset_regulamin').hide();
}
if(terms_on == 1 && value == 'TERMS' && culture == "pl_PL"){
$('#sf_fieldset_regulamin').show();
}else{
$('#sf_fieldset_regulamin').hide();
}
if(privacy_on == 1 && value == 'PRIVACY' && culture == "pl_PL"){
$('#sf_fieldset_polityka_prywatnosci').show();
}else{
$('#sf_fieldset_polityka_prywatnosci').hide();
}
if(right2cancel_on == 1 && value == 'RIGHT2CANCEL' && culture == "pl_PL"){
$('#sf_fieldset_odstapienie_od_umowy').show();
}else{
$('#sf_fieldset_odstapienie_od_umowy').hide();
}
}).change();
});
</script>

View File

@@ -0,0 +1,3 @@
<?php
echo select_tag($name, options_for_select(WebpagePeer::getStates(), $value, ['include_custom' => '---']));

View File

@@ -0,0 +1,6 @@
<?php
echo st_admin_checkbox_tag('webpage[target]', true, $webpage->getTarget());
?>

View File

@@ -0,0 +1,28 @@
<input style="margin-bottom: 5px;" id="load_terms" type="button" value="<?php echo __('Załaduj szablon regulaminu'); ?>"><br/>
<?php echo __('Szablon regulaminu został opracowany zgodnie z aktualnym prawem. Obejmuje m.in. wymagania jakie weszły w życie po 25 grudnia 2014 r, nie zawiera klauzul niedozwolonych. Szablon regulaminu ma charakter ogólny, firma SOTE nie ponosi odpowiedzialności za jego użytkowanie.'); ?>
<?php // echo $content; ?>
<script type="text/javascript">
jQuery(function ($)
{
$(document).ready(function()
{
var iframe = $('.rich_text_editor');
$( "#load_terms" ).click(function() {
if (confirm('<?php echo __('Potwierdź pobranie szablonu regulaminu. Szablon zastąpi aktualny tekst po zapisie zmian.'); ?>')) {
$('#toggle_webpage_content').remove();
$('#webpage_content').val('<?php echo $content; ?>').change();
}
});
});
});
</script>

View File

@@ -0,0 +1,6 @@
<?php
$config = stConfig::getInstance(sfContext::getInstance(), 'appTermsBackend');
$config->setCulture(sfContext::getInstance()->getRequest()->getParameter('culture', stLanguage::getOptLanguage()));
?>
<input type="text" size="60;" value="<?php echo $config->get('terms_field1', null, true) ?>" id="webpage_terms_field1" name="webpage[terms_field1]">

View File

@@ -0,0 +1,6 @@
<?php
$config = stConfig::getInstance(sfContext::getInstance(), 'appTermsBackend');
$config->setCulture(sfContext::getInstance()->getRequest()->getParameter('culture', stLanguage::getOptLanguage()));
?>
<input type="text" size="60;" value="<?php echo $config->get('terms_field10', null, true) ?>" id="webpage_terms_field10" name="webpage[terms_field10]">

View File

@@ -0,0 +1,6 @@
<?php
$config = stConfig::getInstance(sfContext::getInstance(), 'appTermsBackend');
$config->setCulture(sfContext::getInstance()->getRequest()->getParameter('culture', stLanguage::getOptLanguage()));
?>
<input type="text" size="60;" value="<?php echo $config->get('terms_field11', null, true) ?>" id="webpage_terms_field11" name="webpage[terms_field11]">

View File

@@ -0,0 +1,6 @@
<?php
$config = stConfig::getInstance(sfContext::getInstance(), 'appTermsBackend');
$config->setCulture(sfContext::getInstance()->getRequest()->getParameter('culture', stLanguage::getOptLanguage()));
?>
<input type="text" size="60;" value="<?php echo $config->get('terms_field12', null, true) ?>" id="webpage_terms_field12" name="webpage[terms_field12]">

View File

@@ -0,0 +1,6 @@
<?php
$config = stConfig::getInstance(sfContext::getInstance(), 'appTermsBackend');
$config->setCulture(sfContext::getInstance()->getRequest()->getParameter('culture', stLanguage::getOptLanguage()));
?>
<input type="text" size="60;" value="<?php echo $config->get('terms_field13', null, true) ?>" id="webpage_terms_field13" name="webpage[terms_field13]">

View File

@@ -0,0 +1,7 @@
<?php
$config = stConfig::getInstance(sfContext::getInstance(), 'appTermsBackend');
$config->setCulture(sfContext::getInstance()->getRequest()->getParameter('culture', stLanguage::getOptLanguage()));
?>
<textarea cols="60" rows="6" tinymce_options="height:80,width:'60%'" id="webpage_terms_field2" name="webpage[terms_field2]"><?php echo $config->get('terms_field2', null, true)?></textarea>

View File

@@ -0,0 +1,6 @@
<?php
$config = stConfig::getInstance(sfContext::getInstance(), 'appTermsBackend');
$config->setCulture(sfContext::getInstance()->getRequest()->getParameter('culture', stLanguage::getOptLanguage()));
?>
<input type="text" size="60;" value="<?php echo $config->get('terms_field3', null, true) ?>" id="webpage_terms_field3" name="webpage[terms_field3]">

View File

@@ -0,0 +1,6 @@
<?php
$config = stConfig::getInstance(sfContext::getInstance(), 'appTermsBackend');
$config->setCulture(sfContext::getInstance()->getRequest()->getParameter('culture', stLanguage::getOptLanguage()));
?>
<input type="text" size="60;" value="<?php echo $config->get('terms_field4', null, true) ?>" id="webpage_terms_field4" name="webpage[terms_field4]">

View File

@@ -0,0 +1,6 @@
<?php
$config = stConfig::getInstance(sfContext::getInstance(), 'appTermsBackend');
$config->setCulture(sfContext::getInstance()->getRequest()->getParameter('culture', stLanguage::getOptLanguage()));
?>
<input type="text" size="60;" value="<?php echo $config->get('terms_field5', null, true) ?>" id="webpage_terms_field5" name="webpage[terms_field5]">

View File

@@ -0,0 +1,6 @@
<?php
$config = stConfig::getInstance(sfContext::getInstance(), 'appTermsBackend');
$config->setCulture(sfContext::getInstance()->getRequest()->getParameter('culture', stLanguage::getOptLanguage()));
?>
<input type="text" size="60;" value="<?php echo $config->get('terms_field6', null, true) ?>" id="webpage_terms_field6" name="webpage[terms_field6]">

View File

@@ -0,0 +1,6 @@
<?php
$config = stConfig::getInstance(sfContext::getInstance(), 'appTermsBackend');
$config->setCulture(sfContext::getInstance()->getRequest()->getParameter('culture', stLanguage::getOptLanguage()));
?>
<input type="text" size="60;" value="<?php echo $config->get('terms_field7', null, true) ?>" id="webpage_terms_field7" name="webpage[terms_field7]">

View File

@@ -0,0 +1,6 @@
<?php
$config = stConfig::getInstance(sfContext::getInstance(), 'appTermsBackend');
$config->setCulture(sfContext::getInstance()->getRequest()->getParameter('culture', stLanguage::getOptLanguage()));
?>
<input type="text" size="60;" value="<?php echo $config->get('terms_field8', null, true) ?>" id="webpage_terms_field8" name="webpage[terms_field8]">

View File

@@ -0,0 +1,6 @@
<?php
$config = stConfig::getInstance(sfContext::getInstance(), 'appTermsBackend');
$config->setCulture(sfContext::getInstance()->getRequest()->getParameter('culture', stLanguage::getOptLanguage()));
?>
<input type="text" size="60;" value="<?php echo $config->get('terms_field9', null, true) ?>" id="webpage_terms_field9" name="webpage[terms_field9]">

View File

@@ -0,0 +1,10 @@
<?php
if ($sf_request->getParameter('type') == 'links')
{
st_include_partial('stWebpageBackend/links_edit_menu', array('forward_parameters' => isset($forward_parameters) ? $forward_parameters : array(), 'related_object' => $related_object));
}
else
{
include st_admin_get_template_path(__FILE__);
}

View File

@@ -0,0 +1,15 @@
<?php $webpage = $webpage_has_positioning->getWebpage();?>
<?php echo input_tag('webpage_has_positioning[webpage_url]', $webpage->getFriendlyUrl(), array('size' => '40')) ?>
<?php list($culture) = explode('_', $webpage->getCulture()); ?>
<p>
<?php echo st_link_to(null, 'stWebpageFrontend/frontendIndex?url=' . $webpage->getFriendlyUrl(), array(
'absolute' => true,
'for_app' => 'frontend',
'for_lang' => $culture,
'no_script_name' => true,
'class' => 'st_admin_external_link',
'target' => '_blank')) ?>
</p>

View File

@@ -0,0 +1,2 @@
<?php $webpages=$webpage_group->getWebpageGroupHasWebpages();?>
<?php echo link_to(__('Zarządzaj stronami www w grupie'), 'webpage_group_has_webpage/list?filters[webpage_group]='.$webpage_group."&filter=filter") ?>