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,46 @@
<?php if (SF_ENVIRONMENT == 'edit' && $isAuthenticated):?>
<div id="portal-column-block-list" style="opacity: 0.999999; z-index: 10000; position: fixed; left: 50px; top: 50px; min-width: 200px; display:none; background-color: #fefefe; border:1px dotted red;">
<div style="width:300px; height:400px; float:left; overflow:auto;">
<div id="magazine1" class="portal-column" style="float:left; width:100%">
<div style="background-color:#ccc; width:100%"><h3 style="font-size:16px;">
<?php echo __('Schowek elementów');?></h3>
</div>
</div>
</div>
</div>
<script type="text/javascript">
function showToolbarOptions(cn) {
var count = 0;
$A($$('.' + cn)).each(function(e) {
count++;
e.insert({top: '<div id="st_theme-toolbar-'+count+'" style="height:1px; position:absolute; z-index:1; margin-bottom:-25px;"><div style="text-align:center;float:left; height:20px; width: 20px; background-color: #fefefe; opacity: 0.7; cursor: move;"><img src="/images/frontend/theme/default/icon_move.png" alt=""/></div><div id="st_theme-toolbar-'+count+'-hidden" style="text-align:center; float:left; height:20px; width:20px; background-color: #fefefe; opacity: 0.7; cursor: pointer; cursor: hand;" class="st_theme-toolbar-hidden"><img src="/images/frontend/theme/default/icon_delete.png" alt=""/></div><div id="st_theme-toolbar-'+count+'-visible" style="text-align:center; float:left; height:20px; width: 20px; background-color: #fefefe; opacity: 0.7; cursor: pointer; cursor: hand;" class="st_theme-toolbar-visible"><img src="/images/frontend/theme/default/icon_add.png" alt=""/></div></div>'});
$('st_theme-toolbar-'+count+'-hidden').observe('click', function() {
new Ajax.Request('<?php echo url_for('stThemeFrontend/hiddenBlock');?>?block_id=' + e.id, {
method: 'post',
onSuccess: function() { $('magazine1').insert({bottom: e}); }
});
});
$('st_theme-toolbar-'+count+'-visible').observe('click', function() {
new Ajax.Request('<?php echo url_for('stThemeFrontend/visibleBlock') ?>?block_id=' + e.id, {
method: 'post',
onSuccess: function() {
document.getElementById(e.id).style.display = "none";
document.getElementById("portal-column-block-list").style.display = "none";
location.reload();
}
});
});
});
}
showToolbarOptions('block');
</script>
<?php else:?>
<div id="portal-column-block-list" style="display:none;">
<div>
<div id="magazine1" class="portal-column"></div>
</div>
</div>
<?php endif;?>

View File

@@ -0,0 +1,50 @@
<?php if (SF_ENVIRONMENT == 'edit' && sfConfig::get('sf_st_theme_clipboard') && $isAuthenticated):?>
<style>
#magazine1 .st_theme-toolbar-hidden
{
display:none;
}
#st_container .st_theme-toolbar-visible
{
display:none;
}
.block-hover
{
border: none;
}
.portal-column
{
background-color: #ccc;
min-height: 30px;
}
</style>
<div style="overflow:hidden; padding:5px 0px 5px 5px;">
<div style="float:left; padding:4px 10px 0px 0px;">
<?php echo __('Schowek');?>:
</div>
<a style="display:block; float:left;" id="portal-block-list-link" name="portal-block-list-link" href="#">
<img id="schowek_add" src="/images/frontend/theme/default/schowek_add.png" alt=""/>
<img src="/images/frontend/theme/default/schowek_del.png" alt=""/>
</a>
<div style="float:left; padding:4px 10px 0px 20px;">
<a href="http://<?php echo $sf_request->getHost().'/backend.php';?>"><?php echo __('Panel administracyjny');?></a>
</div>
<div style="float:left; padding:4px 10px 0px 20px;">
<?php echo link_to(__('Przywróć domyślny wygląd tematu'), 'stThemeFrontend/resetAllChanges', array(
'post' => true,
'confirm' => __('Użycie tej opcji spowoduje przywrócenie pierwotnego wyglądu strony. Czy jesteś pewien, że chcesz przywrócić oryginalny wygląd?'),
));?>
</div>
<div style="float:right; padding:4px 10px 0px 20px;">
<?php echo form_tag('stThemeFrontend/changeActiveColor');?>
<?php echo __('Edytujesz temat');?>:&nbsp;<b><?php echo $themeName;?></b> :
<?php echo select_tag('theme_color', options_for_select($selectColors, $selectActiveColor), array('onchange' => 'this.form.submit()'));?>
</form>
</div>
</div>
<?php else:?>
<a id="portal-block-list-link" name="portal-block-list-link"></a>
<?php endif;?>

View File

@@ -0,0 +1,6 @@
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" WIDTH="<?php echo $width;?>" HEIGHT="<?php echo $height;?>">
<PARAM NAME=movie VALUE="<?php echo $path;?>">
<PARAM NAME=quality VALUE=best>
<PARAM NAME=wmode VALUE=transparent>
<EMBED wmode="transparent" src="<?php echo $path;?>" quality=best WIDTH="<?php echo $width;?>" HEIGHT="<?php echo $height;?>" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED>
</OBJECT>

View File

@@ -0,0 +1,10 @@
<?php
use_helper('stUrl');
$smarty = new stSmarty('stThemeFrontend');
$smarty->assign('return_url', $return_url);
$smarty->assign('logout_url', st_url_for('stUser/logoutUser'));
$smarty->assign('theme', $theme);
$smarty->assign('notice', $sf_flash->get('theme_notice'));
$smarty->assign('restore_slots_url', st_url_for('stSmartyFrontend/restoreSlots'));
$smarty->display('theme_editor.html');
?>

View File

@@ -0,0 +1,95 @@
<div style="margin:10px;">
<?php if($resetElement==1): ?>
<?php echo form_tag('stThemeFrontend/setDefault','post'); ?>
<?php echo input_hidden_tag('element',$element[1]) ?>
<div class="st_button st_align-left">
<div class="st_button-left">
<?php echo submit_tag(__('Przywróć pierwotny obraz tego elementu.')) ?>
</div>
</div>
<?php if($baner): ?>
<br class="st_clear_all" />
<div style="max-width: 300px; min-width: 25px; max-height: 100px; min-height: 25px; border: 1px dotted red;">
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" WIDTH="300" HEIGHT="50">
<PARAM NAME=movie VALUE="<?php echo $banerPath; ?>"><PARAM NAME=quality VALUE=best><PARAM NAME=wmode VALUE=transparent>
<EMBED wmode="transparent" src="<?php echo $banerPath; ?>" quality=best WIDTH="300" HEIGHT="50" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED>
</OBJECT>
</div>
<?php echo input_hidden_tag('baner',1) ?>
<?php endif; ?>
</form>
<br class="st_clear_all" />
<?php endif; ?>
<?php if(!$baner): ?>
<img src="<?php echo $element[3]; ?>" style="max-width: 300px; min-width: 25px; max-height: 100px; min-height: 25px; border: 1px dotted red;" >
<?php else: ?>
<?php endif; ?>
<br/>
<?php if($resetElement==1 && !$baner): ?>
<?php echo form_tag('stThemeFrontend/modCss','post'); ?>
<?php echo input_hidden_tag('element[0]',$element[0]) ?>
<?php echo input_hidden_tag('element[1]',$element[1]) ?>
<?php echo input_hidden_tag('element[2]',$element[2]) ?>
<?php echo input_hidden_tag('element[3]',$element[3]) ?>
<?php echo input_hidden_tag('element[4]',$element[4]) ?>
<?php echo input_hidden_tag('filename',$element[4]) ?>
<div class="st_button st_align-left">
<div class="st_button-left">
<?php echo submit_tag(__('Edytuj właściwości obrazu.')) ?>
</div>
</div>
</form>
<br class="st_clear_all" />
<?php endif; ?>
<?php if(!$baner): ?>
<?php echo form_tag('stThemeFrontend/changeImage','post'); ?>
<?php echo input_hidden_tag('element[0]',$element[0]) ?>
<?php echo input_hidden_tag('element[1]',$element[1]) ?>
<?php echo input_hidden_tag('element[2]',$element[2]) ?>
<?php echo input_hidden_tag('element[3]',$element[3]) ?>
<?php echo input_hidden_tag('element[4]',$element[4]) ?>
<?php echo input_hidden_tag('download',1) ?>
<div class="st_button st_align-left">
<div class="st_button-left">
<?php echo submit_tag(__('Pobierz ten obraz na mój komputer.')) ?>
</div>
</div>
<br class="st_clear_all" />
</form>
<?php endif; ?>
<?php if(!$baner): ?>
<br>
<?php echo __('Wybierz plik graficzny na lokalnym komputerze, który ma zostać wstawiony w ten element strony.') ?>
<?php echo form_tag('stThemeFrontend/UploadFile','multipart=true'); ?>
<?php echo input_file_tag('filename', 'filename'); ?>
<div class="st_button st_align-left">
<div class="st_button-left">
<?php echo submit_tag(__('Załaduj')) ?>
</div>
</div>
<?php echo input_hidden_tag('element[0]',$element[0]) ?>
<?php echo input_hidden_tag('element[1]',$element[1]) ?>
<?php echo input_hidden_tag('element[2]',$element[2]) ?>
<?php echo input_hidden_tag('element[3]',$element[3]) ?>
<?php echo input_hidden_tag('element[4]',$element[4]) ?>
</form>
<?php endif; ?>
</div>

View File

@@ -0,0 +1,36 @@
<div style="margin:10px;">
<img src="<?php echo $imgPath; ?>" style="max-width: 300px; min-width: 25px; max-height: 100px; min-height: 25px; border: 1px dotted red;" >
<br/>
<?php echo form_tag('stThemeFrontend/saveCss','post'); ?>
<?php echo radiobutton_tag('modSize', '1', true) ?><?php echo __('Dopasuj wielkość obrazu do elementu strony.'); ?><br/>
<?php echo radiobutton_tag('modSize', '2', false) ?><?php echo __('Dopasuj wielkość elementu strony do obrazu.'); ?><br/>
<div id="extendEdit" style="display:none;">
<?php print $element[2]; ?><br/>
<?php echo __('Selektor'); ?>:&nbsp;<?php print $element[1]; ?><br/>
<?php echo __('definicja stylu'); ?>:&nbsp;<br/>
<?php echo textarea_tag('cssContent', $cssExtendContent, 'size=80x10') ?><br/>
</div>
<?php echo input_hidden_tag('filename', $fileName); ?>
<?php echo input_hidden_tag('element[0]',$element[0]) ?>
<?php echo input_hidden_tag('element[1]',$element[1]) ?>
<?php echo input_hidden_tag('element[2]',$element[2]) ?>
<?php echo input_hidden_tag('element[3]',$element[3]) ?>
<?php echo input_hidden_tag('element[4]',$element[4]) ?>
<?php echo input_hidden_tag('imgPropertis[0]',$imgPropertis[0]) ?>
<?php echo input_hidden_tag('imgPropertis[1]',$imgPropertis[1]) ?>
</br>
<div class="st_button st_align-left">
<div class="st_button-left">
<?php echo submit_tag(__('Zapisz zmiany')) ?>
</div>
</div>
</form>
</div>

View File

@@ -0,0 +1,28 @@
<div style="margin:10px;">
<div style="max-width: 300px; min-width: 25px; max-height: 100px; min-height: 25px; border: 1px dotted red;">
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" WIDTH="300" HEIGHT="50">
<PARAM NAME=movie VALUE="/images/frontend/theme/<?php echo $theme ?>/<?php echo $fileName ?>"><PARAM NAME=quality VALUE=best>
<EMBED src="/images/frontend/theme/<?php echo $theme ?>/<?php echo $fileName ?>" quality=best WIDTH="300" HEIGHT="50" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED>
</OBJECT>
</div>
<?php echo form_tag('stThemeFrontend/saveSwf','post'); ?>
<?php echo input_tag('sizeW', '985', array("size"=>"3")) ?><?php print __("Szerokość:"); ?><br/>
<?php echo input_tag('sizeH', '199', array("size"=>"3")) ?><?php print __("Wysokość:"); ?><br/>
<?php echo input_hidden_tag('filename', $fileName); ?>
<?php echo input_hidden_tag('element', $element); ?>
</br>
<div class="st_button st_align-left">
<div class="st_button-left">
<?php echo submit_tag(__('Zapisz zmiany')) ?>
</div>
</div>
</form>
</div>

View File

@@ -0,0 +1,4 @@
<script type="text/javascript">
close();
alert("<?php echo __("Nazwa pliku nie może zawierać polskich znaków dialektyczny oraz spacji."); ?>");
</script>

View File

@@ -0,0 +1,4 @@
<script type="text/javascript">
location.reload();
close();
</script>

View File

@@ -0,0 +1,4 @@
<script type="text/javascript">
opener.location.reload();
close();
</script>

View File

@@ -0,0 +1,4 @@
<script type="text/javascript">
opener.location.reload();
close();
</script>

View File

@@ -0,0 +1,4 @@
<script type="text/javascript">
opener.location.reload();
close();
</script>

View File

@@ -0,0 +1,81 @@
<div id="st_theme_editor">
<ul>
<li><a href="{$return_url}">{__ text='Powrót'}</a></li>
<li><a href="{$logout_url}">{__ text='wyloguj' catalogue='stUser'}</a></li>
<li id="editor_choose">
<div id="editor_config">
<img src="/images/theme/config.png" alt="" />
<div class="editor_menu">
<ul>
{if $theme->getVersion() >= 2}
<li><label for="theme_edit_mode" style="cursor: pointer">{__ text='Edycja'}</label> <input type="checkbox" value="1" id="theme_edit_mode" /></li>
<li><label for="editor_bar_hide" style="cursor: pointer">{__ text='Autoukrywanie paska'}</label> <input type="checkbox" value="1" id="editor_bar_hide" /></li>
<li {if !$theme->countSmartySlots()}style="display: none"{/if}><a id="restore_default_layout" href="{$restore_slots_url}">{__ text='Przywróć domyślny układ'}</a></li>
<li><a href="/backend.php/theme/graphicEdit/id/{$theme->getId()}">{__ text='Konfiguracja grafiki'}</a></li>
{/if}
</ul>
</div>
</div>
</li>
<li class="clr"></li>
</ul>
{if $notice}
<div class="editor_message"><h3>{$notice}</h3></div>
{literal}
<script type="text/javascript">
setTimeout(function() { jQuery('#st_theme_editor .editor_message').fadeOut() }, 4000);
</script>
{/literal}
{/if}
</div>
{literal}
<script type="text/javascript">
jQuery(function($) {
$(document).ready(function() {
var editor = $('#st_theme_editor');
$('#restore_default_layout').click(function() {
return window.confirm('{/literal}{__ text="Jesteś pewien, że chcesz przywrócić domyślny układ dla wybranego tematu?"}{literal}');
});
$('body').prepend(editor);
editor.find('#editor_apply a').click(function(event) {
var answer = window.confirm('{/literal}{__ text="Zmiany w konfiguracji palety kolorów i grafiki zostaną zastosowane. Jesteś pewien?"}{literal}');
if (!answer)
{
event.preventDefault();
}
});
editor.find('#editor_default a').click(function(event) {
var answer = window.confirm('{/literal}{__ text="Wybrany temat zostanie ustawiony jako domyślny. Jesteś pewien?"}{literal}');
if (!answer)
{
event.preventDefault();
}
});
var text = {enable: '{/literal}{__ text="Ukryj"}{literal}', disable: '{/literal}{__ text="Pokaż"}{literal}'};
$('#editor_bar_hide').change(function() {
if (this.checked) {
editor.children('ul').addClass('editor_hidden');
} else {
editor.children('ul').removeClass('editor_hidden');
}
$.cookies.set('st_theme_editor.autohide', this.checked, { path: '/' });
});
if ($.cookies.get('st_theme_editor.autohide'))
{
$('#editor_bar_hide').click();
}
});
});
</script>
{/literal}

View File

@@ -0,0 +1,55 @@
<div id="theme-editor" class="navbar-fixed-top">
<div class="navbar navbar-inverse" role="navigation">
<div class="container">
<div class="navbar-right">
<ul class="nav navbar-nav">
<li><a href="{$return_url}">{__ text='Powrót'}</a></li>
<li><a href="{$logout_url}">{__ text='wyloguj' catalogue='stUser'}</a></li>
<li class="dropdown">
<a href="#" class="editor-config dropdown-toggle" data-hover="dropdown" data-toggle="dropdown"><span class="glyphicon glyphicon-cog"></span></a>
<ul class="dropdown-menu" role="menu">
<li>
<div class="checkbox">
<label>
<input id="editor-autohide" type="checkbox" value="1" /> {__ text='Autoukrywanie paska'}
</label>
</div>
</li>
</ul>
</li>
</ul>
</div>
</div>
</div>
</div>
{literal}
<script type="text/javascript">
jQuery(function($) {
$(document).ready(function() {
var editor = $('#theme-editor');
$('#restore_default_layout').click(function() {
return window.confirm('{/literal}{__ text="Jesteś pewien, że chcesz przywrócić domyślny układ dla wybranego tematu?"}{literal}');
});
$('body').prepend(editor);
$('#editor-autohide').change(function() {
if (this.checked) {
editor.addClass('editor-autohide');
} else {
editor.removeClass('editor-autohide');
}
$.cookies.set('st_theme_editor.autohide', this.checked, { path: '/' });
});
if ($.cookies.get('st_theme_editor.autohide'))
{
$('#editor-autohide').click();
}
});
});
</script>
{/literal}