first commit
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
if ($trusted_shops->isNew())
|
||||
{
|
||||
echo input_tag('trusted_shops[certificate]', $trusted_shops->getCertificate(), array('size' => 40));
|
||||
} else {
|
||||
echo input_hidden_tag('trusted_shops[certificate]', $trusted_shops->getCertificate());
|
||||
echo $trusted_shops->getCertificate();
|
||||
if (!$trusted_shops->isRating()) echo ' ('.$trusted_shops->getType().')';
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
<?php
|
||||
echo input_hidden_tag('trusted_shops[certificate]', $trusted_shops->getCertificate());
|
||||
echo $trusted_shops->getCertificate();
|
||||
?>
|
||||
@@ -0,0 +1,170 @@
|
||||
<?php
|
||||
// auto-generated by sfPropelAdmin
|
||||
// date: 2016/01/14 15:36:10
|
||||
?>
|
||||
<?php echo form_tag('stTrustedShopsBackend/save', array(
|
||||
'id' => 'admin_edit_form',
|
||||
'name' => 'admin_edit_form',
|
||||
'class' => 'admin_form',
|
||||
'multipart' => true,
|
||||
)) ?>
|
||||
|
||||
<?php echo object_input_hidden_tag($trusted_shops, 'getId') ?>
|
||||
|
||||
|
||||
<fieldset id="sf_fieldset__">
|
||||
<h2><?php echo __(' ', null, 'stTrustedShopsBackend') ?></h2>
|
||||
<div class="content" id="sf_fieldset___slide">
|
||||
<?php if ($trusted_shops->getPrimaryKey()): ?>
|
||||
<?php if (!$sf_user->getParameter('hide', false,'stTrustedShopsBackend/edit/fields/shop')): ?>
|
||||
<div class="row row_shop <?php if (!$trusted_shops->isNew()):?>row_type_plain<?php endif; ?>">
|
||||
|
||||
<label for="trusted_shops_shop">
|
||||
<?php echo __($labels['trusted_shops{shop}'], array(), 'stTrustedShopsBackend'); ?></label>
|
||||
<div class="field<?php if ($sf_request->hasError('trusted_shops{shop}')): ?> form-error<?php endif; ?>" >
|
||||
<?php if ($sf_request->hasError('trusted_shops{shop}')): ?>
|
||||
<?php echo form_error('trusted_shops{shop}', array('class' => 'form-error-msg')) ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php echo st_get_partial('stTrustedShopsBackend/shop', array('type' => 'edit', 'trusted_shops' => $trusted_shops, 'forward_parameters' => $forward_parameters, 'related_object' => $related_object)); ?>
|
||||
|
||||
|
||||
<div class="clr"></div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (!$sf_user->getParameter('hide', false,'stTrustedShopsBackend/edit/fields/certificate')): ?>
|
||||
<div class="row row_certificate <?php if (!$trusted_shops->isNew()):?>row_type_plain<?php endif; ?>">
|
||||
|
||||
<label for="trusted_shops_certificate">
|
||||
<?php echo __($labels['trusted_shops{certificate}'], array(), 'stTrustedShopsBackend'); ?></label>
|
||||
<div class="field <?php if ($sf_request->hasError('trusted_shops{certificate}')): ?> form-error<?php endif; ?>">
|
||||
<?php if ($sf_request->hasError('trusted_shops{certificate}')): ?>
|
||||
<?php echo form_error('trusted_shops{certificate}', array('class' => 'form-error-msg')) ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php echo st_get_partial('stTrustedShopsBackend/certificate', array('type' => 'edit', 'trusted_shops' => $trusted_shops, 'forward_parameters' => $forward_parameters, 'related_object' => $related_object)); ?>
|
||||
|
||||
|
||||
<div class="clr"></div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
</div>
|
||||
</fieldset>
|
||||
<?php if ($trusted_shops->getPrimaryKey()): ?>
|
||||
<fieldset id="sf_fieldset_ochrona_kupuj__cych">
|
||||
<h2><?php echo __('Ochrona kupujących', null, 'stTrustedShopsBackend') ?></h2>
|
||||
<div class="content" id="sf_fieldset_ochrona_kupuj__cych_slide">
|
||||
<?php if ($trusted_shops->getPrimaryKey()): ?>
|
||||
<?php if (!$sf_user->getParameter('hide', false,'stTrustedShopsBackend/edit/fields/username')): ?>
|
||||
<div class="row row_username">
|
||||
|
||||
<label for="trusted_shops_username">
|
||||
<?php echo __($labels['trusted_shops{username}'], array(), 'stTrustedShopsBackend'); ?></label>
|
||||
<div class="field<?php if ($sf_request->hasError('trusted_shops{username}')): ?> form-error<?php endif; ?>">
|
||||
<?php if ($sf_request->hasError('trusted_shops{username}')): ?>
|
||||
<?php echo form_error('trusted_shops{username}', array('class' => 'form-error-msg')) ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php echo st_get_partial('stTrustedShopsBackend/username', array('type' => 'edit', 'trusted_shops' => $trusted_shops, 'forward_parameters' => $forward_parameters, 'related_object' => $related_object)); ?>
|
||||
|
||||
|
||||
<div class="clr"></div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($trusted_shops->getPrimaryKey()): ?>
|
||||
<?php if (!$sf_user->getParameter('hide', false,'stTrustedShopsBackend/edit/fields/password')): ?>
|
||||
<div class="row row_password">
|
||||
|
||||
<label for="trusted_shops_password">
|
||||
<?php echo __($labels['trusted_shops{password}'], array(), 'stTrustedShopsBackend'); ?></label>
|
||||
<div class="field<?php if ($sf_request->hasError('trusted_shops{password}')): ?> form-error<?php endif; ?>">
|
||||
<?php if ($sf_request->hasError('trusted_shops{password}')): ?>
|
||||
<?php echo form_error('trusted_shops{password}', array('class' => 'form-error-msg')) ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php echo st_get_partial('stTrustedShopsBackend/password', array('type' => 'edit', 'trusted_shops' => $trusted_shops, 'forward_parameters' => $forward_parameters, 'related_object' => $related_object)); ?>
|
||||
|
||||
|
||||
<div class="clr"></div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<fieldset id="sf_fieldset_przypisanie_metod_p__atno__ci">
|
||||
<h2><?php echo __('Przypisanie metod płatności', null, 'stTrustedShopsBackend') ?></h2>
|
||||
<div class="content" id="sf_fieldset_przypisanie_metod_p__atno__ci_slide">
|
||||
<?php if ($trusted_shops->getPrimaryKey()): ?>
|
||||
<?php if (!$sf_user->getParameter('hide', false,'stTrustedShopsBackend/edit/fields/payments')): ?>
|
||||
<div class="row row_payments">
|
||||
|
||||
<label for="trusted_shops_payments">
|
||||
<?php echo __($labels['trusted_shops{payments}'], array(), 'stTrustedShopsBackend'); ?></label>
|
||||
<div class="field<?php if ($sf_request->hasError('trusted_shops{payments}')): ?> form-error<?php endif; ?>">
|
||||
<?php if ($sf_request->hasError('trusted_shops{payments}')): ?>
|
||||
<?php echo form_error('trusted_shops{payments}', array('class' => 'form-error-msg')) ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php echo st_get_partial('stTrustedShopsBackend/payments', array('type' => 'edit', 'trusted_shops' => $trusted_shops, 'forward_parameters' => $forward_parameters, 'related_object' => $related_object)); ?>
|
||||
|
||||
|
||||
<div class="clr"></div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<fieldset id="sf_fieldset_trusted_badge">
|
||||
<h2><?php echo __('Trustbadge', null, 'stTrustedShopsBackend') ?></h2>
|
||||
<div class="content" id="sf_fieldset_trusted_badge_slide">
|
||||
<?php if ($trusted_shops->getPrimaryKey()): ?>
|
||||
<?php if (!$sf_user->getParameter('hide', false,'stTrustedShopsBackend/edit/fields/trustbadge_code')): ?>
|
||||
<div class="row row_trustbadge_code">
|
||||
|
||||
<label for="trusted_shops_trustbadge_code">
|
||||
<?php echo __($labels['trusted_shops{trustbadge_code}'], array(), 'stTrustedShopsBackend'); ?></label>
|
||||
<div class="field<?php if ($sf_request->hasError('trusted_shops{trustbadge_code}')): ?> form-error<?php endif; ?>">
|
||||
<?php if ($sf_request->hasError('trusted_shops{trustbadge_code}')): ?>
|
||||
<?php echo form_error('trusted_shops{trustbadge_code}', array('class' => 'form-error-msg')) ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php echo st_get_partial('stTrustedShopsBackend/trustbadge_code', array('type' => 'edit', 'trusted_shops' => $trusted_shops, 'forward_parameters' => $forward_parameters, 'related_object' => $related_object)); ?>
|
||||
|
||||
|
||||
<div class="clr"></div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<div id="edit_actions"><?php st_include_partial('edit_actions', array('trusted_shops' => $trusted_shops, 'forward_parameters' => $forward_parameters)) ?></div>
|
||||
|
||||
</form>
|
||||
|
||||
<script type="text/javascript">
|
||||
jQuery(function($) {
|
||||
$(document).ready(function() {
|
||||
$('#edit_actions').stickyBox();
|
||||
});
|
||||
|
||||
});
|
||||
</script>
|
||||
@@ -0,0 +1 @@
|
||||
<?php echo select_tag('trusted_shops[language]', objects_for_select(LanguagePeer::doSelectLanguages(), 'getLanguage', 'getOptName', $trusted_shops->getLanguage()));
|
||||
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
switch ($trusted_shops->getLanguage()) {
|
||||
case 'de':
|
||||
$lang = __('Niemiecki');
|
||||
break;
|
||||
case 'en':
|
||||
$lang = __('Angielski');
|
||||
break;
|
||||
case 'fr':
|
||||
$lang = __('Francuski');
|
||||
break;
|
||||
case 'pl':
|
||||
$lang = __('Polski');
|
||||
break;
|
||||
default:
|
||||
$lang = '-';
|
||||
break;
|
||||
}
|
||||
echo $lang;
|
||||
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
switch ($trusted_shops->getStatus()) {
|
||||
case 'PRODUCTION':
|
||||
$status = __('ważny');
|
||||
break;
|
||||
case 'INTEGRATION':
|
||||
$status = __('(jeszcze) nie wydany');
|
||||
break;
|
||||
case 'TEST':
|
||||
$status = __('testowy');
|
||||
break;
|
||||
case 'NO_AUDIT':
|
||||
$status = __('bez audytu');
|
||||
break;
|
||||
case 'INVALID_TS_ID':
|
||||
$status = '-';
|
||||
if ($trusted_shops->isRating()) $status = __('aktywny');
|
||||
break;
|
||||
default:
|
||||
$status = '-';
|
||||
break;
|
||||
}
|
||||
echo $status;
|
||||
@@ -0,0 +1 @@
|
||||
<?php if ($trusted_shops->isRating()) echo __('Opinia klientów'); else echo $trusted_shops->getType();
|
||||
@@ -0,0 +1 @@
|
||||
<?php if ($trusted_shops->getUrl()) echo $trusted_shops->getUrl(); else echo '-';
|
||||
@@ -0,0 +1,11 @@
|
||||
<?php use_stylesheet('backend/stTrustedShopsPlugin.css'); ?>
|
||||
<div id="trusted_shops_sealbox">
|
||||
<div class="trusted_shops_sealbox_top_small"></div>
|
||||
<div class="trusted_shops_sealbox_middle">
|
||||
<img src="/images/frontend/theme/default/stTrustedShopsPlugin/logo.png" alt="" title="<?php echo __('Znak Jakości Trusted Shops – tu możesz sprawdzić ważność!');?>"/>
|
||||
<div class="trusted_shops_sealbox_txt">
|
||||
<?php echo $trusted_shops->getUrl();?> <?php echo __('to sklep internetowy z Certyfikatem i Ochroną Kupującego, certyfikowany przez Trusted Shops. Zobacz więcej...')?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="trusted_shops_sealbox_bottom"></div>
|
||||
</div>
|
||||
@@ -0,0 +1 @@
|
||||
<?php echo input_password_tag('trusted_shops[password]', $trusted_shops->getPassword(), array('size' => 25, 'disabled' => ($trusted_shops->getType() == 'Classic') ? true : false));
|
||||
@@ -0,0 +1,17 @@
|
||||
<table class="st_record_list" cellspacing="0" width="100%">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><?php echo __('Płatności sklepu');?></th>
|
||||
<th><?php echo __('Płatności Trusted Shops');?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
foreach($paymentTypes as $id => $name)
|
||||
{
|
||||
echo '<tr><td>'.$name.'</td>';
|
||||
echo '<td>'.select_tag('trusted_shops[payment_method]['.$id.']', options_for_select($paymentMethods, $paymentTypesSelected[$id])).'</td></tr>';
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -0,0 +1,3 @@
|
||||
<?php echo __('Sklep korzysta z domyślnych ustawień przypisania metod płatności.');?><br/>
|
||||
<?php echo __('Jeżeli chcesz je zmienić przejdź do');?>
|
||||
<?php echo st_link_to(__('opcji zaawansowanych.'), 'stTrustedShopsBackend/protectionPaymentsEdit?id='.$trusted_shops->getId());?>
|
||||
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
switch ($trusted_shops->getLanguage()) {
|
||||
case 'de':
|
||||
$lang = __('Niemiecki');
|
||||
break;
|
||||
case 'en':
|
||||
$lang = __('Angielski');
|
||||
break;
|
||||
case 'fr':
|
||||
$lang = __('Francuski');
|
||||
break;
|
||||
case 'pl':
|
||||
$lang = __('Polski');
|
||||
break;
|
||||
default:
|
||||
$lang = '-';
|
||||
break;
|
||||
}
|
||||
echo $trusted_shops->getUrl().' ('.$lang.')';
|
||||
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
if ($trusted_shops->getRatingStatus()) {
|
||||
echo __('Aktywny');
|
||||
} else {
|
||||
echo __('Nieaktywny');
|
||||
echo ' - '.st_link_to(__('Aktywuj'), 'stTrustedShopsBackend/ratingActive?id='.$trusted_shops->getId());
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
<?php use_helper('stTrustedShops');?>
|
||||
<?php echo object_textarea_tag($trusted_shops, 'getTrustbadgeCode', array('size' => '80x10', 'control_name' => 'trusted_shops[trustbadge_code]'));?>
|
||||
<?php if(!$trusted_shops->isNew()):?>
|
||||
<div style="margin-top:2px;">
|
||||
<a href="<?php echo st_trusted_shops_backend_integration_url($trusted_shops);?>" target="_blank"><?php echo __('Kliknij, aby przejdź do centrum integracji TrustedShops i pobrać kod Trustbadge.');?></a>
|
||||
</div>
|
||||
<?php endif;?>
|
||||
@@ -0,0 +1 @@
|
||||
<?php echo input_tag('trusted_shops[username]', $trusted_shops->getUsername(), array('size' => 25, 'disabled' => ($trusted_shops->getType() == 'Classic') ? true : false));
|
||||
@@ -0,0 +1,3 @@
|
||||
<?php
|
||||
use_helper('stTrustedShops');
|
||||
echo '<img src="'.rating_widget_url($trusted_shops->getCertificate()).'" />';
|
||||
@@ -0,0 +1,71 @@
|
||||
<?php use_helper('I18N', 'stAdminGenerator', 'stTrustedShops');?>
|
||||
<?php use_stylesheet('backend/stTrustedShopsPlugin.css'); ?>
|
||||
<?php st_include_partial('stTrustedShopsBackend/header', array('title' => __('Integracja z serwisem Trusted Shops.',
|
||||
array(), 'stTrustedShopsBackend'), 'route' => 'stTrustedShopsBackend/information')) ?>
|
||||
<?php echo st_get_component('stAdminGenerator', 'menu', array('items' => $menu_items, 'trusted_shops' => null)) ?>
|
||||
<div id="sf_admin_content">
|
||||
<?php if ($sf_user->getCulture() == 'pl_PL'):?>
|
||||
<div class="trust_header">
|
||||
<div class="trust_title"><b><?php echo __('Zyskaj bezpieczny regulamin i zaufanie kupujących!');?></b></div>
|
||||
<div class="img_txt_trusted">
|
||||
<img width="190" src="/images/backend/stTrustedShopsPlugin/e_trusted_shops-rgb.png" alt=" "/>
|
||||
</div>
|
||||
<div class="desc_trusted">
|
||||
<?php echo __('W pakiecie naszego partnera, firmy Trusted Shops znajdziesz nie tylko bezpieczny i dopasowany do Twoich indywidualnych potrzeb regulamin sklepu internetowego, ale i rozwiązania, które przekonają potencjalnych klientów do zakupów w Twoim sklepie:');?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="st_clear_all"></div>
|
||||
<div class="left logo_trusted">
|
||||
<div class="">
|
||||
<?php if ($sf_user->getCulture() == 'pl_PL'):?>
|
||||
<img src="/images/backend/stTrustedShopsPlugin/trusted.png" alt=" "/>
|
||||
<?php else: ?>
|
||||
<img src="/images/backend/stTrustedShopsPlugin/seal_rating_en.jpg" alt=" "/>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div class="st_clear_all"></div>
|
||||
<?php if($hasCertificate):?>
|
||||
<div class="sote_integration">
|
||||
<div>
|
||||
Sote
|
||||
<br />
|
||||
<?php echo __('już zintegrował produkty Trusted Shops w panelu');?>!
|
||||
</div>
|
||||
</div>
|
||||
<?php endif;?>
|
||||
</div>
|
||||
<div class="left info_trusted">
|
||||
<div class="">
|
||||
<ul>
|
||||
<li>
|
||||
<b><?php echo __('Regulamin e-sklepu');?></b>
|
||||
<?php echo __('dopasowane do Twoich indywidualnych potrzeb regulamin i polityka prywatności z aktualizacjami w przypadku zmian prawa lub orzecznictwa');?>
|
||||
</li>
|
||||
<li>
|
||||
<b><?php echo __('Znak jakości');?></b>
|
||||
<?php echo __('dowód wysokiego standardu obsługi klienta w Twoim sklepie');?>
|
||||
</li>
|
||||
<li>
|
||||
<b><?php echo __('Gwarancja zwrotu pieniędzy');?></b>
|
||||
<?php echo __('która przekona potencjalnych klientów o bezpieczeństwie zakupów w Twoim sklepie i pomoże obniżyć wskaźnik porzuceń strony');?>
|
||||
</li>
|
||||
<li>
|
||||
<b><?php echo __('System opinii');?></b>
|
||||
<?php echo __('dzięki któremu łatwo zbierzesz i zaprezentujesz na stronie niezbędne do zwiększenia sprzedaży w sieci rekomendacje klientów');?>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="st_clear_all"></div>
|
||||
<div class="trusted-button">
|
||||
<a href="<?php echo backend_buyer_protection_register_url();?>" target="_blank"><?php echo __('Zarejestruj się teraz!');?></a>
|
||||
</div>
|
||||
<div class="st_clear_all"></div>
|
||||
</div>
|
||||
</div>
|
||||
<?php else: ?>
|
||||
<div class="en-info">
|
||||
<a href="https://www.trustedshops.eu/merchants/order.html?audit=0" target="_blank"><img src="/images/backend/stTrustedShopsPlugin/infografik_en.jpg" alt=" "/></a>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div class="st_clear_all"></div>
|
||||
<?php st_include_partial('stTrustedShopsBackend/footer', array()) ?>
|
||||
Reference in New Issue
Block a user