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,61 @@
<?php
use_helper('stAvailabilityImage');
st_theme_use_stylesheet('stAvailabilityPlugin.css');
$smarty->assign("availability", content_tag('span', $availability->getAvailabilityName(), array('id' => 'st_availability_info-value', 'style' => 'float: none;'.($availability->getColor() != null ? 'color: #'.$availability->getColor() : ''))));
$smarty->assign("availability_link", $availability->getStockFrom());
$smarty->assign("availability_image", st_availability_image_tag($availability, 'full'));
$smarty->assign("check_xml", $check_xml);
$smarty->display("availability.html");
?>
<script type="text/javascript" language="javascript">
jQuery(function ($)
{
$(document).ready(function ()
{
$('#active_availability_alert_overlay').click(function()
{
<?php if(stTheme::is_responsive()): ?>
$('#availability_alert_modal').modal('show');
$.get('<?php echo url_for('stAvailabilityFrontend/showAddOverlay') ?>?'+$('#st_update_product_options_form').serialize(), { 'product_id':'<?php echo $product->getId(); ?>'}, function(data)
{
$('#availability_alert').html(data);
});
<?php else: ?>
var api = $('#availability_alert_overlay').data('overlay');
if (!api)
{
$('#availability_alert_overlay').overlay(
{
onBeforeLoad: function()
{
var wrap = this.getOverlay().find('.availability_alert_overlay_content');
$.get('<?php echo url_for('stAvailabilityFrontend/showAddOverlay') ?>?'+$('#st_update_product_options_form').serialize(), { 'product_id':'<?php echo $product->getId(); ?>'}, function(data)
{
wrap.html(data);
});
},
load: true
});
}
else
{
api.load();
}
<?php endif; ?>
});
});
});
</script>

View File

@@ -0,0 +1,20 @@
<?php
use_helper('stApplication', 'stProductImage', 'stUrl');
$smarty->assign('host', $sf_request->getHost());
$smarty->assign('question_head', $head);
$smarty->assign('question_foot', $foot);
$smarty->assign('product_id', $product_id);
$smarty->assign('product_photo', st_link_to(st_product_image_tag($product, 'small', array('absolute' => true, 'style' => 'border: none;')), 'stProduct/show?url='.$product->getFriendlyUrl(), array('absolute' => true, 'style' => 'border: none;')));
$smarty->assign('product_name', st_link_to($product_name, 'stProduct/show?url='.$product->getFriendlyUrl(), array('absolute' => true, 'style' => 'text-decoration: none; color: #576278;')));
if ($product_code) $smarty->assign('product_code', $product_code);
if ($product_producer) $smarty->assign('product_producer', $product_producer);
if ($product_category) $smarty->assign('product_category', $product_category);
$smarty->assign('about', $about);
$smarty->assign('text', $text);
$smarty->assign('from', $from);
$smarty->assign('question_link', st_link_to(__("Przejdź do zapytania"), '@stGoToQuestion?question='.$id, array('absolute' => true, 'for_app' => 'backend', 'style' => 'text-decoration: none; color: black; font-weight: bold; font-size: 13px;')));
$smarty->display('question_shop_html_mail.html');
?>

View File

@@ -0,0 +1,26 @@
<?php
use_helper('stApplication', 'stProductImage', 'stUrl');
$smarty->assign('host', $sf_request->getHost());
$smarty->assign('question_head', $head);
$smarty->assign('question_foot', $foot);
$smarty->assign('product_id', $product_id);
$smarty->assign('product_photo', st_link_to(st_product_image_tag($product, 'small', array('absolute' => true, 'style' => 'border: none;')), 'stProduct/show?url='.$product->getFriendlyUrl(), array('absolute' => true, 'style' => 'border: none;')));
if ($product_code)
{
$smarty->assign('product_code', $product_code);
}
if ($product_producer)
{
$smarty->assign('product_producer', $product_producer);
}
if ($product_category)
{
$smarty->assign('product_category', $product_category);
}
$smarty->assign('product_name', $product_name);
$smarty->assign('about', $about);
$smarty->assign('text', $text);
$smarty->assign('from', $from);
$smarty->assign('question_link', st_link_to(__("Przejdź do zapytania"), '@stGoToQuestion?question='.$id, array('absolute' => true, 'for_app' => 'backend', 'style' => 'text-decoration: none; color: black; font-weight: bold; font-size: 13px;')));
$smarty->display('question_shop_plain_mail.html');
?>

View File

@@ -0,0 +1,38 @@
<?php
st_theme_use_stylesheet('smDepositoryAlertPlugin.css');
$smarty->display('depository_alert_show_link.html');
?>
<script type="text/javascript" language="javascript">
jQuery(function ($)
{
$(document).ready(function ()
{
$('#active_depository_alert_overlay').click(function()
{
var api = $('#depository_alert_overlay').data('overlay');
if (!api)
{
$('#depository_alert_overlay').overlay(
{
onBeforeLoad: function()
{
var wrap = this.getOverlay().find('.depository_alert_overlay_content');
$.get('<?php echo url_for('smDepositoryAlertFrontend/showAddOverlay') ?>', { 'product_id':'<?php echo $product->getId(); ?>', 'option_name':'<?php echo $option_name ?>'}, function(data)
{
wrap.html(data);
});
},
load: true
});
}
else
{
api.load();
}
});
});
});
</script>

View File

@@ -0,0 +1,19 @@
<?php use_helper('Date') ?>
<?php $smarty->assign('host', $sf_request->getHost()) ?>
<?php $smarty->assign('contact_head', $head) ?>
<?php $smarty->assign('contact_foot', $foot) ?>
<?php $smarty->assign('contact_email', $contact['email']) ?>
<?php $smarty->assign('contact_name', $contact['name']) ?>
<?php $smarty->assign('contact_surname', $contact['surname']) ?>
<?php $smarty->assign('contact_phone', $contact['phone']) ?>
<?php $smarty->assign('contact_question', $contact['question']) ?>
<?php $smarty->display('contact_send_contact_html_mail.html') ?>

View File

@@ -0,0 +1,15 @@
<?php $smarty->assign('contact_head', $head) ?>
<?php $smarty->assign('contact_foot', $foot) ?>
<?php $smarty->assign('contact_email', $contact['email']) ?>
<?php $smarty->assign('contact_name', $contact['name']) ?>
<?php $smarty->assign('contact_surname', $contact['surname']) ?>
<?php $smarty->assign('contact_phone', $contact['phone']) ?>
<?php $smarty->assign('contact_question', $contact['question']) ?>
<?php $smarty->display('contact_send_contact_plain_mail.html') ?>

View File

@@ -0,0 +1,111 @@
<?php
use_helper('Validation', 'stCaptchaGD', 'stUrl');
$smarty->assign('form_start', form_tag('stAvailabilityFrontend/showAddOverlay', array('id' => 'form_availability_alert')));
$smarty->assign('label_description', label_for('question[description]',__('Treść')));
$smarty->assign('input_description', textarea_tag('question[description]', $question['description'], array('id'=>'st_form-question-description','class'=>form_has_error('question{description}') ? 'st_form-error' : '')));
$smarty->assign('label_username', label_for('question[username]',__('E-mail')));
$smarty->assign('error_username', form_error('question[username]', array('suffix'=>'', 'prefix'=>'', 'class'=>'st_error')));
$smarty->assign('input_username', input_tag('question[username]', $question['username'], array('id'=>'st_form-question-email','class'=>form_has_error('question{username}') ? 'st_form-error' : '')));
if($config->get('captcha_on', stConfig::INT)==1)
{
$smarty->assign('captcha_on', $config->get('captcha_on', stConfig::INT)==1);
$smarty->assign('error_captcha', form_error('captcha', array('suffix'=>'', 'prefix'=>'', 'class'=>'st_error')));
$smarty->assign('get_captcha', get_captcha(328));
$smarty->assign('label_captcha', label_for('captcha',__('Cyfry z obrazka')));
$smarty->assign('input_captcha', input_tag('captcha', '', array('id'=>'st_form-question-captcha','class'=>form_has_error('captcha') ? 'st_form-error' : '')));
}
$smarty->assign('checkbox_privacy', checkbox_tag('question[privacy]', 1, $sf_params->get('question[privacy]'), array('id'=>'st_form-user-privacy','class'=>form_has_error('question{privacy}') ? 'st_form-error checkobox' : 'checkobox')));
$smarty->assign('is_authenticated', $is_authenticated);
$smarty->assign('hidden_product_id', input_hidden_tag('product_id', $product_id));
$smarty->assign('hidden_option_name', input_hidden_tag('option_name', $option_name));
$smarty->assign('product_name', $product->getName()." ".$option_name);
if(stTheme::is_responsive()){
if($sf_params->get('question[description]')==""){
$smarty->assign('description', $question['description']);
}else{
$smarty->assign('description', $sf_params->get('question[description]'));
}
if($sf_params->get('question[username]')==""){
if(sfContext::getInstance()->getUser()->isAuthenticated()){
$username = sfContext::getInstance()->getUser()->getGuardUser()->getUsername();
}
}else{
$username = $sf_params->get('question[username]');
}
$smarty->assign('error_username', $sf_request->getError('question{username}'));
$smarty->assign('input_username', input_tag('question[username]', $username, array('id'=>'st_form-question-email', 'placeholder'=> '* '.__('Nadawca (e-mail)'), 'maxlength'=>'255', 'class'=>'form-control')));
$smarty->assign('input_captcha', input_tag('captcha', '', array('id'=>'st_form-question-captcha', 'placeholder'=> '* '.__("Cyfry z obrazka"), 'class'=>'form-control')));
$smarty->assign('error_captcha', $sf_request->getError('captcha'));
}
$smarty->assign('error_privacy', $sf_request->getError('error_privacy'));
$smarty->display('availability_alert_show_add_overlay.html');
?>
<script type="text/javascript" language="javascript">
jQuery(function ($) {
$('#form_availability_alert').submit(function() {
<?php if(stTheme::is_responsive()): ?>
$.post($(this).attr('action'), $(this).serialize(), function(data) { $('#availability_alert').html(data); });
<?php else: ?>
$.post($(this).attr('action'), $(this).serialize(), function(data) { $('#availability_alert_overlay').find('.availability_alert_overlay_content').html(data); });
<?php endif; ?>
return false;
});
});
</script>
<?php if($close): ?>
<script type="text/javascript" language="javascript">
jQuery(function ($) {
<?php if(stTheme::is_responsive()): ?>
$('.modal-footer').hide();
$('.modal-form').hide();
$('.modal-send').show();
setTimeout(function(){
$('#availability_alert_modal').modal('hide');
}, 2000);
<?php else: ?>
$('#availability_alert_overlay').overlay().close();
location.reload();
<?php endif; ?>
});
</script>
<?php endif; ?>

View File

@@ -0,0 +1,7 @@
{if !$check_xml}
<li id="st_availability_info">
{/if}
<span style="width: 100px;">{__ text="Dostępność"}:</span> {$availability_image} {$availability}
{if !$check_xml}
</li>
{/if}

View File

@@ -0,0 +1,22 @@
{if !$check_xml}
<li id="st_availability_info">
{/if}
<span>{__ text="Dostępność"}:</span> {$availability_image}
{if $availability_link=="0"}
<a href="#" id="active_availability_alert_overlay">
{/if}
{$availability}
{if $availability_link=="0"}
</a>
<div id="availability_alert_overlay">
<div class="availability_alert_overlay_content"></div>
</div>
{/if}
{if !$check_xml}
</li>
{/if}

View File

@@ -0,0 +1,81 @@
<div id="st_application-availability_alert" class="st_application" style="border:none;">
<div class="title">
<h2>
{__ text="Powiadom mnie o dostępności produktu"}
</h2>
</div>
<div class="st_content">
<div style="padding:0px 15px 15px 15px; text-align: center;">
{__ text="W chwili obecnej nie możemy określić kiedy produkt"}
<br/>
<b>{$product_name}</b>
<br/>
{__ text="będzie dostępny w naszym sklepie."}
<br/>
{__ text="Prosimy o podanie adresu email na który wyślemy powiadomienie."}
</div>
{$form_start}
<fieldset>
<div class="st_row">
{$error_username}
<b>{$label_username}</b>
<div class="st_field">
{$input_username}
</div>
</div>
<div class="st_row">
{$label_description}
<div class="st_field">
{$input_description}
</div>
</div>
{if $is_authenticated==false}
<div class="st_row {if $error_privacy==1}checkbox_error{/if}" >
<div class="st_field vertical-align-middle " style="margin-left: 96px;padding: 10px; margin-bottom: 60px;">
{$checkbox_privacy}
{st_get_partial partial="stUser/privacy" params="privacy_only=true new_window=true"}
</div>
</div>
{if isset($captcha_on)}
<div class="st_row">
{$error_captcha}
<div style="margin-bottom: 2px; margin-top: 2px; margin-left:110px;">
{$get_captcha}
</div>
<b>{$label_captcha}</b>
<div class="st_field">
{$input_captcha}
</div>
</div>
{/if}
{/if}
<div class="st_row">
<div id="button-add-question" class="buttons right">
<button type="submit" class="regular roundies">
{__ text="Wyślij prośbę o powiadomienie"}
</button>
</div>
</div>
</fieldset>
{$hidden_option_name}
{$hidden_product_id}
</form>
</div>
</div>

View File

@@ -0,0 +1,67 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl" lang="pl">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="background-color:#fff; font-family:Helvetica,Verdana,Arial,sans-serif; line-height:18px; font-size:1em;">
<div style="margin: 0px auto; background-color:#fff;">
<div style="width:700px; margin:0px auto;">
<div style="background:url(http://{$host}/images/frontend/theme/default/mail/frame_mail_top.png?version=1); height:30px">
</div>
<div style="background-color:#fff; padding:0px 25px 0px 25px; border-left:1px solid #d0d2d8; border-right:1px solid #d0d2d8;">
<div style="font-family:Verdana,Arial,Helvetica,sans-serif; line-height:18px; font-size:10px;">
{$question_head}
</div>
</div>
<div style="min-height:400px; padding:0px 25px 0px 25px; text-align:justify; border-left:1px solid #d0d2d8; border-right:1px solid #d0d2d8;">
<div style="float:left;font-size:16px;color:black;margin-bottom: 20px;">
{$text}
</div>
<br style="clear:both;"/>
<div class="product_photo" style="border: none; float:left; padding: 10px; margin: 10px 0px 10px 20px;">
{$product_photo}
</div>
<div class="product_char" style="float:right; padding: 10px; width: 400px; margin: 10px 20px 10px 0px;">
<div class="product_name" style="font-weight: bold; margin-bottom: 15px; color:#576278;">
{$product_name}
</div>
{if $product_code}
<div class="product_name" style="font-size:12px;">
{__ text="Kod produktu"}: <span>{$product_code}</span>
</div>
{/if}
{if $product_producer}
<div class="product_producer" style="font-size:12px;">
{__ text="Producent"}: <span>{$product_producer}</span>
</div>
{/if}
{if $product_category}
<div class="product_category" style="font-size:12px;">
{__ text="Kategoria"}: <span>{$product_category}</span>
</div>
{/if}
</div>
<br style="clear:both;"/>
<div style="margin:10px 0px 7px 0px; font-size:12px;">
{__ text="Informacje o dostępności należy przesłać na"}:
<div style="margin: 10px; font-size:16px;">
{$from}
</div>
</div>
<br style="clear:both">
</div>
<div style="background-color:#ECECEE; border-left:1px solid #d0d2d8; border-right:1px solid #d0d2d8;">
<div style="font-family:Verdana,Arial,Helvetica,sans-serif; line-height:18px; font-size:10px;">
{$question_foot}
</div>
</div>
<div style="background:url(http://{$host}/images/frontend/theme/default/mail/frame_mail_bottom.png?version=1); height:30px">
</div>
</div>
</div>
</body>
</html>

View File

@@ -0,0 +1,6 @@
{__ text="Witam"}, {__ text="proszę o informację o"} {$about} {__ text="produktu"}: {$product_name}
{if $product_code}{__ text="Kod produktu"}: {$product_code}{/if}
{if $product_producer}{__ text="Producent"}: {$product_producer}{/if}
{if $product_category}{__ text="Kategoria"}: {$product_category}{/if}
{__ text="Informacje dodatkowe"}:{$text}
{__ text="Zapytanie wysłał"}: {$from}

View File

@@ -0,0 +1,27 @@
{if !$check_xml}
<span id="st_availability_info">
{/if}
{$availability_image}
{if $availability_link=="0"}
<a href="#" id="active_availability_alert_overlay">
{/if}
{$availability}
{if $availability_link=="0"}
</a>
{/if}
{if !$check_xml}
</span>
{/if}
<!-- Modal -->
<div class="modal fade" id="availability_alert_modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div id="availability_alert"></div>
</div>
</div>
</div>

View File

@@ -0,0 +1,93 @@
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
<h4 class="modal-title" id="myModalLabel">{__ text="Powiadom mnie o dostępności produktu"}</h4>
</div>
{$form_start}
<div class="modal-body panel-body modal-send" style="display: none;">
{__ text="Zapytanie zostało wysłane"}
</div>
<div class="modal-body panel-body modal-form">
<div style="padding:15px; text-align: center;">
{__ text="W chwili obecnej nie możemy określić kiedy produkt"}
<br/>
<b>{$product_name}</b>
<br/>
{__ text="będzie dostępny w naszym sklepie."}
<br/>
{__ text="Prosimy o podanie adresu email na który wyślemy powiadomienie."}
</div>
<div class="form-group">
<textarea rows="5" class="form-control" id="st_form-question-description" placeholder='{__ text="Treść"}' name="question[description]">{$description}</textarea>
</div>
<div class="form-group {if $error_username!=''}has-error{/if}">
{if $error_username!=""}<label class="control-label" for="email">{$error_username}</label>{/if}
{$input_username}
</div>
{if $is_authenticated==false}
<div class="form-group">
<div class="checkbox">
<label class="{if $error_privacy==1}checkbox_error has-error{/if}">
{$checkbox_privacy} {st_get_partial partial="stUser/privacy" privacy_only="true" new_window="true"}
</label>
</div>
</div>
{if isset($captcha_on)}
<div id="captcha_form">
{if $error_captcha!=""}<div class="has-error"><label class="control-label" for="captcha_img">{$error_captcha}</label></div>{/if}
<div class="clearfix"></div>
<div class="captcha-img {if $error_captcha!=''}has-error{/if}">
{$get_captcha}
</div>
<div class="form-group captcha-input {if $error_captcha!=''}has-error{/if}">
{$input_captcha}
</div>
</div>
{/if}
{/if}
{$hidden_option_name}
{$hidden_product_id}
</div>
<div class="modal-footer">
<button type="submit" class="btn btn-primary"> {__ text="Wyślij prośbę o powiadomienie"}</button>
</div>
</form>
{literal}
<script type="text/javascript">
jQuery(function ($)
{
$(document).ready(function()
{
$('#st_form-user-privacy').click(function() {
$("#captcha_form").toggle();
});
if ($('#st_form-user-privacy').attr('checked')) {
$("#captcha_form").show()
} else {
$("#captcha_form").hide();
}
});
});
</script>
{/literal}

View File

@@ -0,0 +1,67 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl" lang="pl">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="background-color:#fff; font-family:Helvetica,Verdana,Arial,sans-serif; line-height:18px; font-size:1em;">
<div style="margin: 0px auto; background-color:#fff;">
<div style="width:700px; margin:0px auto;">
<div style="background:url(http://{$host}/images/frontend/theme/default/mail/frame_mail_top.png?version=1); height:30px">
</div>
<div style="background-color:#fff; padding:0px 25px 0px 25px; border-left:1px solid #d0d2d8; border-right:1px solid #d0d2d8;">
<div style="font-family:Verdana,Arial,Helvetica,sans-serif; line-height:18px; font-size:10px;">
{$question_head}
</div>
</div>
<div style="min-height:400px; padding:0px 25px 0px 25px; text-align:justify; border-left:1px solid #d0d2d8; border-right:1px solid #d0d2d8;">
<div style="float:left;font-size:16px;color:black;margin-bottom: 20px;">
{$text}
</div>
<br style="clear:both;"/>
<div class="product_photo" style="border: none; float:left; padding: 10px; margin: 10px 0px 10px 20px;">
{$product_photo}
</div>
<div class="product_char" style="float:right; padding: 10px; width: 400px; margin: 10px 20px 10px 0px;">
<div class="product_name" style="font-weight: bold; margin-bottom: 15px; color:#576278;">
{$product_name}
</div>
{if $product_code}
<div class="product_name" style="font-size:12px;">
{__ text="Kod produktu"}: <span>{$product_code}</span>
</div>
{/if}
{if $product_producer}
<div class="product_producer" style="font-size:12px;">
{__ text="Producent"}: <span>{$product_producer}</span>
</div>
{/if}
{if $product_category}
<div class="product_category" style="font-size:12px;">
{__ text="Kategoria"}: <span>{$product_category}</span>
</div>
{/if}
</div>
<br style="clear:both;"/>
<div style="margin:10px 0px 7px 0px; font-size:12px;">
{__ text="Informacje o dostępności należy przesłać na"}:
<div style="margin: 10px; font-size:16px;">
{$from}
</div>
</div>
<br style="clear:both">
</div>
<div style="background-color:#ECECEE; border-left:1px solid #d0d2d8; border-right:1px solid #d0d2d8;">
<div style="font-family:Verdana,Arial,Helvetica,sans-serif; line-height:18px; font-size:10px;">
{$question_foot}
</div>
</div>
<div style="background:url(http://{$host}/images/frontend/theme/default/mail/frame_mail_bottom.png?version=1); height:30px">
</div>
</div>
</div>
</body>
</html>

View File

@@ -0,0 +1,6 @@
{__ text="Witam"}, {__ text="proszę o informację o"} {$about} {__ text="produktu"}: {$product_name}
{if $product_code}{__ text="Kod produktu"}: {$product_code}{/if}
{if $product_producer}{__ text="Producent"}: {$product_producer}{/if}
{if $product_category}{__ text="Kategoria"}: {$product_category}{/if}
{__ text="Informacje dodatkowe"}:{$text}
{__ text="Zapytanie wysłał"}: {$from}