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,36 @@
<?php
/**
* SOTESHOP/appWishesPlugin
*
*
* @package appWishesPlugin
* @author Bartosz Alejski <whiteface@whiteface.pl>
*/
class appWishesFrontendActions extends sfActions
{
public function executeShowWishesSite()
{
if(stTheme::is_responsive()){
$this->redirect('/');
}
$this->smarty = new stSmarty($this->getModuleName());
$config = stConfig::getInstance($this->getContext(), 'appWishesSiteConfigBackend');
$this->config = $config->load();
$theme = ThemePeer::doSelectActive();
$this->version = $theme->getVersion();
$configBig = stConfig::getInstance($this->getContext(), 'appWishesBigConfigBackend');
$this->configBig = $configBig->load();
$configBanner['wishes_site_label'] = $config->get('wishes_site_label', null, true);
$configBanner['wishes_site_description'] = $config->get('wishes_site_description', null, true);
$this->configBanner = $configBanner;
}
}

View File

@@ -0,0 +1,65 @@
<?php
/**
* SOTESHOP/appWishesPlugin
*
*
* @package appWishesPlugin
* @author Bartosz Alejski <whiteface@whiteface.pl>
*/
class appWishesFrontendComponents extends sfComponents
{
public function executeShowWishesBig()
{
$this->smarty = new stSmarty('appWishesFrontend');
$config = stConfig::getInstance($this->getContext(), 'appWishesBigConfigBackend');
$this->config = $config->load();
$theme = ThemePeer::doSelectActive();
$this->version = $theme->getVersion();
$configBanner['wishes_big_label'] = $config->get('wishes_big_label', null, true);
$configBanner['wishes_big_description'] = $config->get('wishes_big_description', null, true);
$this->configBanner = $configBanner;
}
public function executeShowWishesResponsive()
{
$this->smarty = new stSmarty('appWishesFrontend');
$config = stConfig::getInstance($this->getContext(), 'appWishesResponsiveConfigBackend');
$this->config = $config->load();
$configBanner['wishes_responsive_description'] = $config->get('wishes_responsive_description', null, true);
$this->configBanner = $configBanner;
}
public function executeShowWishesSmall()
{
$this->smarty = new stSmarty('appWishesFrontend');
$config = stConfig::getInstance($this->getContext(), 'appWishesSmallConfigBackend');
$this->config = $config->load();
$theme = ThemePeer::doSelectActive();
$this->version = $theme->getVersion();
$configBanner['wishes_small_label'] = $config->get('wishes_small_label', null, true);
$configBanner['wishes_small_description'] = $config->get('wishes_small_description', null, true);
$this->configBanner = $configBanner;
}
public function executeShowSnow()
{
$this->smarty = new stSmarty('appWishesFrontend');
$config = stConfig::getInstance($this->getContext(), 'appWishesSiteConfigBackend');
$this->config = $config->load();
$this->uri = $_SERVER['REQUEST_URI'];
}
}

View File

@@ -0,0 +1,5 @@
<?php
$smarty->assign('config', $config);
$smarty->assign('uri', $uri);
$smarty->display('show_snow.html');

View File

@@ -0,0 +1,15 @@
<?php
use_helper('stText','stPhotoGallery', 'stProductImage', 'stUrl');
st_theme_use_stylesheet('appWishesPlugin.css');
$smarty->assign('config', $config);
$smarty->assign('configBanner', $configBanner);
if($version < 2){
$smarty->display('show_wishes_big.html');
}else{
$smarty->display('show_wishes_big_ver_2.html');
}

View File

@@ -0,0 +1,22 @@
<?php
use_helper('stText','stPhotoGallery', 'stProductImage', 'stUrl');
st_theme_use_stylesheet('appWishesPlugin.css');
$smarty->assign('config', $config);
$smarty->assign('configBanner', $configBanner);
$filename = $config['wishes_responsive_active_image'];
$filename_array = explode(".", $filename);
if ($filename_array[1] == 'mp4'){
$smarty->assign("type", "video");
}else{
$smarty->assign("type", "image");
}
$smarty->assign("filename", $filename);
$smarty->display('show_wishes_responsive.html');

View File

@@ -0,0 +1,15 @@
<?php
use_helper('stText','stPhotoGallery', 'stProductImage', 'stUrl');
st_theme_use_stylesheet('appWishesPlugin.css');
$smarty->assign('config', $config);
$smarty->assign('configBanner', $configBanner);
if($version < 2){
$smarty->display('show_wishes_small.html');
}else{
$smarty->display('show_wishes_small_ver_2.html');
}

View File

@@ -0,0 +1,18 @@
<?php
use_helper('Validation', 'stCaptchaGD', 'stUrl');
st_theme_use_stylesheet('appWishesPlugin.css');
$smarty->assign('config', $config);
$smarty->assign('configBanner', $configBanner);
$smarty->assign('configBig', $configBig);
if($version < 2){
$smarty->display('show_wishes_site.html');
}else{
$smarty->display('show_wishes_site_ver_2.html');
}
?>

View File

@@ -0,0 +1,15 @@
{if $config.wishes_site_snow_on != 0}
{if $config.wishes_site_snow_on == 1 && $uri=="/wishes" || $config.wishes_site_snow_on == 2 && $uri=="/" || $config.wishes_site_snow_on == 2 && $uri=="/wishes" || $config.wishes_site_snow_on == 3}
<script type="text/javascript" src="/js/snowfall.min.jquery.js"></script>
{literal}
<script type="text/javascript" language="javascript">
jQuery(function($) {
$(document).ready(function() {
$(document).snowfall({shadow : true, flakeCount : 250,});
});
});
</script>
{/literal}
{/if}
{/if}

View File

@@ -0,0 +1,18 @@
{if $config.wishes_big_on == 1}
<div class="block box roundies">
{if $config.wishes_big_header_on == 1}
<h3 class="head"><a href="/wishes" >{$configBanner.wishes_big_label}</a></h3>
{/if}
<div onclick="location.href='/wishes';" class="content box_group" style="min-height: 239px; background:url('/uploads/wishes_picture/{$config.wishes_big_active_image}') no-repeat scroll left center transparent; cursor:pointer;">
<div style="float:right; width: 44%; margin-top: 20px;">
{$configBanner.wishes_big_description}
</div>
<div class="clear"></div>
</div>
</div>
{/if}

View File

@@ -0,0 +1,39 @@
{if $config.wishes_big_on == 1}
<div class="block box roundies wishes">
<div class="content box_group" {if $config.wishes_big_link_on == 1} onclick="location.href='/wishes';" {/if}>
<table cellpadding="0" cellspacing="0" border="0" width="100%" style="{if $config.wishes_big_link_on == 1}cursor:pointer;{/if} background:url('/uploads/wishes_picture/{$config.wishes_big_active_image}') no-repeat scroll center center transparent;">
<tr>
<td width="50%">
<div style="width:100%; min-height: 290px;"></div>
</td>
<td width="50%">
<div style="text-align: center;">
{$configBanner.wishes_big_description}
</div>
{if $config.wishes_big_music_on == 1}
<div style=" margin: 20px auto; width: 260px;">
{if $config.wishes_big_song_number == 1}
<iframe width="100%" height="20" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/178863854&amp;color=cccccc&amp;inverse=false&amp;auto_play={if $config.wishes_big_music_autoplay == 1}true{else}false{/if}&amp;show_user=true"></iframe>
{/if}
{if $config.wishes_big_song_number == 3}
<iframe width="100%" height="20" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/178863856&amp;color=cccccc&amp;inverse=false&amp;auto_play={if $config.wishes_big_music_autoplay == 1}true{else}false{/if}&amp;show_user=true"></iframe>
{/if}
{if $config.wishes_big_song_number == 6}
<iframe width="100%" height="20" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/178863855&amp;color=cccccc&amp;inverse=false&amp;auto_play={if $config.wishes_big_music_autoplay == 1}true{else}false{/if}&amp;show_user=true"></iframe>
{/if}
</div>
{/if}
</td>
</tr>
</table>
</div>
</div>
{/if}

View File

@@ -0,0 +1,119 @@
<script type="text/javascript" src="/js/mp3player/audio-player.js"></script>
{literal}
<script type="text/javascript">
AudioPlayer.setup("/js/mp3player/player.swf", {
width : 320
});
</script>
{/literal}
{set layout="two_column_layout"}
<div id="webpage_show" class="box roundies">
<div class="clear"></div>
<div class="content tinymce_html">
<br>
<br>
<div style=" margin: 0 auto; width: 600px; min-height: 200px; background:url('/uploads/wishes_picture/{$configBig.wishes_big_active_image}') no-repeat scroll left center transparent">
<div style="float:right; width: 250px;">
<h2>{$configBanner.wishes_site_label}</h2>
<br>
{$configBanner.wishes_site_description}
</div>
<div class="clear"></div>
</div>
{if $config.wishes_site_music_on == 1}
<br>
<br>
<div style=" margin: 0 auto; width: 320px;">
{if $config.wishes_site_mp3 != ""}
<div style="float:left; width: 320px;">
<p id="audioplayer_1">
Alternative content
</p>
{literal}
<script type="text/javascript">
AudioPlayer.embed("audioplayer_1", {
soundFile : "{/literal}{$config.wishes_site_mp3}{literal}",
autostart : "yes"
});
</script>
{/literal}
</div>
{else}
{if $config.wishes_site_song_number == 1}
<object height="18" width="100%">
<param name="movie" value="https://player.soundcloud.com/player.swf?url=http%3A%2F%2Fapi.soundcloud.com%2Ftracks%2F66191281&amp;auto_play=true&amp;player_type=tiny&amp;font=Arial&amp;color=848484">
</param>
<param name="allowscriptaccess" value="always">
</param>
<param name="wmode" value="transparent">
</param>
<embed wmode="transparent" allowscriptaccess="always" height="18" src="https://player.soundcloud.com/player.swf?url=http%3A%2F%2Fapi.soundcloud.com%2Ftracks%2F66191281&amp;auto_play=true&amp;player_type=tiny&amp;font=Arial&amp;color=848484" type="application/x-shockwave-flash" width="100%"></embed>
</object>
{/if}
{if $config.wishes_site_song_number == 2}
<object height="18" width="100%">
<param name="movie" value="https://player.soundcloud.com/player.swf?url=http%3A%2F%2Fapi.soundcloud.com%2Ftracks%2F66191241&amp;auto_play=true&amp;player_type=tiny&amp;font=Arial&amp;color=848484">
</param>
<param name="allowscriptaccess" value="always">
</param>
<param name="wmode" value="transparent">
</param>
<embed wmode="transparent" allowscriptaccess="always" height="18" src="https://player.soundcloud.com/player.swf?url=http%3A%2F%2Fapi.soundcloud.com%2Ftracks%2F66191241&amp;auto_play=true&amp;player_type=tiny&amp;font=Arial&amp;color=848484" type="application/x-shockwave-flash" width="100%"></embed>
</object>
{/if}
{if $config.wishes_site_song_number == 3}
<object height="18" width="100%">
<param name="movie" value="https://player.soundcloud.com/player.swf?url=http%3A%2F%2Fapi.soundcloud.com%2Ftracks%2F66191178&amp;auto_play=true&amp;player_type=tiny&amp;font=Arial&amp;color=848484">
</param>
<param name="allowscriptaccess" value="always">
</param>
<param name="wmode" value="transparent">
</param>
<embed wmode="transparent" allowscriptaccess="always" height="18" src="https://player.soundcloud.com/player.swf?url=http%3A%2F%2Fapi.soundcloud.com%2Ftracks%2F66191178&amp;auto_play=true&amp;player_type=tiny&amp;font=Arial&amp;color=848484" type="application/x-shockwave-flash" width="100%"></embed>
</object>
{/if}
{if $config.wishes_site_song_number == 4}
<object height="18" width="100%">
<param name="movie" value="https://player.soundcloud.com/player.swf?url=http%3A%2F%2Fapi.soundcloud.com%2Ftracks%2F66191101&amp;auto_play=true&amp;player_type=tiny&amp;font=Arial&amp;color=848484">
</param>
<param name="allowscriptaccess" value="always">
</param>
<param name="wmode" value="transparent">
</param>
<embed wmode="transparent" allowscriptaccess="always" height="18" src="https://player.soundcloud.com/player.swf?url=http%3A%2F%2Fapi.soundcloud.com%2Ftracks%2F66191101&amp;auto_play=true&amp;player_type=tiny&amp;font=Arial&amp;color=848484" type="application/x-shockwave-flash" width="100%"></embed>
</object>
{/if}
{if $config.wishes_site_song_number == 5}
<object height="18" width="100%">
<param name="movie" value="https://player.soundcloud.com/player.swf?url=http%3A%2F%2Fapi.soundcloud.com%2Ftracks%2F66190990&amp;auto_play=true&amp;player_type=tiny&amp;font=Arial&amp;color=848484">
</param>
<param name="allowscriptaccess" value="always">
</param>
<param name="wmode" value="transparent">
</param>
<embed wmode="transparent" allowscriptaccess="always" height="18" src="https://player.soundcloud.com/player.swf?url=http%3A%2F%2Fapi.soundcloud.com%2Ftracks%2F66190990&amp;auto_play=true&amp;player_type=tiny&amp;font=Arial&amp;color=848484" type="application/x-shockwave-flash" width="100%"></embed>
</object>
{/if}
{/if}
</div>
{/if}
<br>
<br>
<br class="clear">
</div>
</div>

View File

@@ -0,0 +1,42 @@
{set layout="two_column_layout"}
<div id="webpage_show" class="box roundies wishes">
<div class="content tinymce_html" style="padding:0px;">
<table cellpadding="0" cellspacing="0" border="0" width="100%" style="background:url('/uploads/wishes_picture/{$configBig.wishes_big_active_image}') no-repeat scroll center center transparent;">
<tr>
<td width="50%">
<div style="width:100%; min-height: 290px; cursor:pointer;"></div>
</td>
<td width="50%">
<div style="text-align: center;">
{$configBanner.wishes_site_description}
</div>
{if $config.wishes_site_music_on == 1}
<div style=" margin: 20px auto; width: 260px;">
{if $config.wishes_site_song_number == 1}
<iframe width="100%" height="20" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/178863854&amp;color=cccccc&amp;inverse=false&amp;auto_play=false&amp;show_user=true"></iframe>
{/if}
{if $config.wishes_site_song_number == 3}
<iframe width="100%" height="20" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/178863856&amp;color=cccccc&amp;inverse=false&amp;auto_play=false&amp;show_user=true"></iframe>
{/if}
{if $config.wishes_site_song_number == 6}
<iframe width="100%" height="20" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/178863855&amp;color=cccccc&amp;inverse=false&amp;auto_play=false&amp;show_user=true"></iframe>
{/if}
</div>
{/if}
</td>
</tr>
</table>
</div>
</div>

View File

@@ -0,0 +1,18 @@
{if $config.wishes_small_on == 1}
<div class="block box roundies">
{if $config.wishes_small_header_on == 1}
<h3 class="head"><a href="/wishes" >{$configBanner.wishes_small_label}</a></h3>
{/if}
<div class="content box_group" onclick="location.href='/wishes';" style="cursor:pointer;">
<img alt="" src="/uploads/wishes_picture/{$config.wishes_small_active_image}" >
{$configBanner.wishes_small_description}
<div class="clear"></div>
</div>
</div>
{/if}

View File

@@ -0,0 +1,18 @@
{if $config.wishes_small_on == 1}
<div class="block box roundies" id="wishes_small">
<!-- {if $config.wishes_small_header_on == 1}
<h3 class="head"><a href="/wishes" >{$configBanner.wishes_small_label}</a></h3>
{/if} -->
<div class="content box_group" {if $config.wishes_small_link_on == 1} onclick="location.href='/wishes';" style="cursor:pointer;" {/if}>
<img alt="" src="/uploads/wishes_picture/{$config.wishes_small_active_image}" >
{$configBanner.wishes_small_description}
<div class="clear"></div>
</div>
</div>
{/if}

View File

@@ -0,0 +1,15 @@
{if $config.wishes_site_snow_on != 0}
{if $config.wishes_site_snow_on == 1 && $uri=="/wishes" || $config.wishes_site_snow_on == 2 && $uri=="/" || $config.wishes_site_snow_on == 2 && $uri=="/wishes" || $config.wishes_site_snow_on == 3}
<script type="text/javascript" src="/js/snowfall.min.jquery.js"></script>
{literal}
<script type="text/javascript" language="javascript">
jQuery(function($) {
$(document).ready(function() {
$(document).snowfall({shadow : true, flakeCount : 250,});
});
});
</script>
{/literal}
{/if}
{/if}

View File

@@ -0,0 +1,42 @@
{if $config.wishes_responsive_on == 1}
<div id="wishes">
<div class="row thumbnail relative{if $type == 'video'} wish-video{/if}" style="margin: 0 0 10px;">
{if $type == 'video'}
<div class="video-banner-bg">
<video autoplay loop muted playsinline>
<source src="/uploads/wishes_picture/{$filename}" type="video/mp4">
</video>
</div>
{/if}
<div class="col-xs-12 col-sm-6 col-md-6 col-lg-6">
<div>
{if $type == 'image'}
<img class="img-responsive center-block" src="/uploads/wishes_picture/{$filename}">
{/if}
</div>
</div>
<div class="col-xs-12 col-sm-6 col-md-6 col-lg-6 wishes-description">
<div class="caption">
{$configBanner.wishes_responsive_description}
{if $config.wishes_responsive_music_on == 1}
<div style=" margin: 20px auto; width: 260px;">
{if $config.wishes_responsive_song_number == 1}
<iframe width="100%" height="20" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/178863854&amp;color=cccccc&amp;inverse=false&amp;&amp;show_user=true"></iframe>
{/if}
{if $config.wishes_responsive_song_number == 3}
<iframe width="100%" height="20" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/178863856&amp;color=cccccc&amp;inverse=false&amp;&amp;show_user=true"></iframe>
{/if}
{if $config.wishes_responsive_song_number == 6}
<iframe width="100%" height="20" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/178863855&amp;color=cccccc&amp;inverse=false&amp;&amp;show_user=true"></iframe>
{/if}
</div>
{/if}
</div>
</div>
</div>
</div>
{/if}