first commit
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
st_theme_use_stylesheet('stWebpagePlugin.css');
|
||||
$results = array();
|
||||
foreach($webpages_groups as $index => $webpages_group)
|
||||
{
|
||||
$row['instance'] = $webpages_group;
|
||||
$row['id'] = $webpages_group->getId();
|
||||
$results[] = $row;
|
||||
}
|
||||
|
||||
if(WebpagePeer::getContactWebpage()){
|
||||
$smarty->assign('contact_link', st_link_to(__('Kontakt'), 'stWebpageFrontend/index?url='.WebpagePeer::getContactWebpage()->getFriendlyUrl()));
|
||||
};
|
||||
|
||||
|
||||
$smarty->assign('results', $results);
|
||||
|
||||
$smarty->display('webpage_footer.html');
|
||||
?>
|
||||
@@ -0,0 +1,57 @@
|
||||
<?php
|
||||
use_helper('stUrl');
|
||||
st_theme_use_stylesheet('stWebpagePlugin.css');
|
||||
if ($webpages)
|
||||
{
|
||||
$results = array();
|
||||
foreach ($webpages as $index => $webpage)
|
||||
{
|
||||
$row = array();
|
||||
$row['instance'] = $webpage;
|
||||
$row['count'] = count($webpages)-1;
|
||||
if ($webpage->getOtherLink())
|
||||
{
|
||||
if ($webpage->getTarget()==1)
|
||||
{
|
||||
$options = 'target="_blank"';
|
||||
}
|
||||
else
|
||||
{
|
||||
$options = "";
|
||||
}
|
||||
|
||||
$row['link'] = '<a href="'.$webpage->getOtherLink().'"'.$options.'>'.$webpage->getName().'</a>';
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
$row['link'] = st_link_to($webpage->getName(), 'stWebpageFrontend/index?url='.$webpage->getFriendlyUrl());
|
||||
}
|
||||
|
||||
$row['url'] = $webpage->getFriendlyUrl();
|
||||
$row['index'] = $index;
|
||||
$results[] = $row;
|
||||
}
|
||||
$smarty->assign('group_page',$group_page);
|
||||
$smarty->assign('webpage_group_name', $webpage_group);
|
||||
$smarty->assign('webpage_group_id', $id);
|
||||
$smarty->assign('results', $results);
|
||||
|
||||
|
||||
if ($sf_context->getController()->getTheme()->getVersion() >= 2)
|
||||
{
|
||||
if (($group_page) || ($in_line))
|
||||
{
|
||||
$smarty->display('webpage_group_line.html');
|
||||
}
|
||||
else
|
||||
{
|
||||
$smarty->display('webpage_group.html');
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$smarty->display('webpage_group.html');
|
||||
}
|
||||
}
|
||||
?>
|
||||
@@ -0,0 +1,6 @@
|
||||
<?php
|
||||
if($webpages_group)
|
||||
{
|
||||
echo st_get_component('stWebpageFrontend', 'groupWebpage', array('id'=>$webpages_group->getId(),'in_line'=>1));
|
||||
}
|
||||
?>
|
||||
@@ -0,0 +1 @@
|
||||
<?php $smarty->display($ajax ? 'webpage_ajax.html' : 'webpage_show.html') ?>
|
||||
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
$version = $sf_context->getController()->getTheme()->getVersion();
|
||||
use_helper('stUrl');
|
||||
|
||||
if ($version < 7)
|
||||
{
|
||||
st_theme_use_stylesheet('stThemeDemo.css');
|
||||
st_theme_use_stylesheet('jquery.lightbox-0.5.css');
|
||||
use_javascript('photoGallery/textGallery.js', 'last');
|
||||
use_javascript('photoGallery/jquery.lightbox-0.5.js', 'last');
|
||||
}
|
||||
|
||||
$smarty->assign('id', $webpage->getId());
|
||||
$smarty->assign('content', $webpage->getContent());
|
||||
$smarty->assign('content_name', $webpage->getName());
|
||||
$smarty->assign('url', st_url_for('stWebpageFrontend/index?url='.$webpage->getFriendlyUrl()));
|
||||
|
||||
|
||||
|
||||
$smarty->display('webpage_show.html');
|
||||
?>
|
||||
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
use_helper('stUrl');
|
||||
st_theme_use_stylesheet('stWebpagePlugin.css');
|
||||
st_theme_use_stylesheet('stErrorPlugin.css');
|
||||
if ($webpages)
|
||||
{
|
||||
$results = array();
|
||||
foreach ($webpages as $webpage)
|
||||
{
|
||||
$row['link'] = st_link_to($webpage->getName(), 'stWebpageFrontend/index?url='.$webpage->getFriendlyUrl());
|
||||
$results[] = $row;
|
||||
}
|
||||
$smarty->assign('results', $results);
|
||||
$smarty->display('webpage_list.html');
|
||||
}
|
||||
?>
|
||||
@@ -0,0 +1,12 @@
|
||||
<div class="row">
|
||||
{foreach key=row item=webpages_group from=$results}
|
||||
<div class="foot-group list-group col-xs-12 col-sm-3">
|
||||
{st_get_component module="stWebpageFrontend" component="groupWebpage" params="id=`$webpages_group.id`"}
|
||||
</div>
|
||||
{/foreach}
|
||||
{if $contact_link}
|
||||
<div class="foot-group list-group col-xs-12 col-sm-3 visible-xs">
|
||||
<div class="list-group-item-heading h5">{$contact_link}</div>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
@@ -0,0 +1,10 @@
|
||||
<div class="list-group-item-heading h5">
|
||||
<a data-toggle="collapse" data-parent="#accordion_footer" href="#collapse_{$webpage_group_id}">{$webpage_group_name} <span class="caret hidden-sm hidden-md hidden-lg"></span></a>
|
||||
</div>
|
||||
<div id="collapse_{$webpage_group_id}" class="list-group collapse">
|
||||
{foreach key=row item=webpage from=$results}
|
||||
{$webpage.link}
|
||||
{$webpage.other_link}
|
||||
{/foreach}
|
||||
|
||||
</div>
|
||||
@@ -0,0 +1,22 @@
|
||||
{set layout="one_column"}
|
||||
<div id="webpage-show" class="bg-white">
|
||||
<div class="title">
|
||||
<h1>{$content_name}</h1>
|
||||
{st_get_component module="stAddThisFrontend" component="shareButtons" params="view='webpage'"}
|
||||
</div>
|
||||
|
||||
<div class="content tinymce_html">
|
||||
{$content}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{literal}
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
jQuery(function($) {
|
||||
var href = "{/literal}{$url}{literal}";
|
||||
$('.horizontal-categories').trigger('highlight', href);
|
||||
});
|
||||
//]]>
|
||||
</script>
|
||||
{/literal}
|
||||
@@ -0,0 +1,16 @@
|
||||
<div id="st_box_foot">
|
||||
<div id="st_foot">
|
||||
{foreach key=row item=webpages_group from=$results}
|
||||
{st_get_component module="stWebpageFrontend" component="groupWebpage" params="id=`$webpages_group.id`"}
|
||||
{/foreach}
|
||||
|
||||
<div class="box_group_webpage">
|
||||
<h3>{__ text="Sklep"}</h3>
|
||||
<ul>
|
||||
<li>{link text="Strona główna" langCatalogue="stFrontend" uri="@homepage"}</li>
|
||||
<li>{link text="Poleć sklep" langCatalogue="stRecommendShopFrontend" uri="/recommend_shop/index"}</li>
|
||||
<li>{link text="Mapa serwisu" langCatalogue="stSitemapFrontend" uri="/sitemap"}</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,4 @@
|
||||
{foreach key=row item=webpage from=$results}
|
||||
{$webpage.link}
|
||||
{if $webpage.count != $webpage.index}-{/if}
|
||||
{/foreach}
|
||||
@@ -0,0 +1,4 @@
|
||||
{foreach key=row item=webpage from=$results}
|
||||
{$webpage.link}
|
||||
{if $webpage.count != $webpage.index}-{/if}
|
||||
{/foreach}
|
||||
@@ -0,0 +1,6 @@
|
||||
<h1>{__ text="Lista stron www"}:</h1><br />
|
||||
<ul>
|
||||
{foreach key=row item=webpage from=$results}
|
||||
<li>{$webpage.link}</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
@@ -0,0 +1,8 @@
|
||||
<div id="st_webpage-title">
|
||||
<h2 class="st_title">{$content_name}</h2>
|
||||
{st_get_component module="stAddThisFrontend" component="shareButtons" params="view='webpage'"}
|
||||
</div>
|
||||
<br class="st_clear_all"/>
|
||||
<div class="content_tinymce">
|
||||
{$content}
|
||||
</div>
|
||||
@@ -0,0 +1 @@
|
||||
<a href="{$url}" data-toggle="modal" data-target="#webpage-modal-{$id}">{$label}</a>
|
||||
@@ -0,0 +1 @@
|
||||
<a href="{$url}" data-toggle="modal" data-target="#webpage-modal-{$id}">{$label}</a>
|
||||
@@ -0,0 +1,6 @@
|
||||
<div id="ajax_webpage" class="tinymce_html" style="margin: 10px;">
|
||||
<div class="st_title">
|
||||
<h2>{$webpage->getName()}</h2>
|
||||
</div>
|
||||
{$webpage->getContent()}
|
||||
</div>
|
||||
@@ -0,0 +1,19 @@
|
||||
<div id="webpage_groups">
|
||||
{assign var='i' value=0}
|
||||
{foreach key=row item=webpages_group from=$results}
|
||||
{assign var='i' value=$i+1}
|
||||
{if $i == 5}
|
||||
{assign var='i' value=0}
|
||||
<div class="group last">{elseif $i==1}
|
||||
<div class="group first">{else}
|
||||
<div class="group">{/if}{st_get_component module="stWebpageFrontend" component="groupWebpage" params="id=`$webpages_group.id`"}</div>
|
||||
{/foreach}
|
||||
<div class="group last group_shop">
|
||||
<h4>{__ text="Sklep"}</h4>
|
||||
{link text="Strona główna" langCatalogue="stFrontend" uri="@homepage"}
|
||||
{st_get_component module="stRecommendShopFrontend" component="showRecommend"}
|
||||
{st_get_component module="stSitemapFrontend" component="link"}
|
||||
</div>
|
||||
{st_get_component module="stNewsletterFrontend" component="newsletter"}
|
||||
{slot name="webpage_footer" hidden="true"}{/slot}
|
||||
</div>
|
||||
@@ -0,0 +1,5 @@
|
||||
<h4>{$webpage_group_name}</h4>
|
||||
{foreach key=row item=webpage from=$results}
|
||||
{$webpage.link}
|
||||
{$webpage.other_link}
|
||||
{/foreach}
|
||||
@@ -0,0 +1,5 @@
|
||||
<div class="header">
|
||||
{foreach key=row item=webpage from=$results}
|
||||
{$webpage.link}
|
||||
{/foreach}
|
||||
</div>
|
||||
@@ -0,0 +1,12 @@
|
||||
{set layout="one_column_layout"}
|
||||
<div class="box roundies" id="error_404">
|
||||
<img src="{image_path image='e404.png'}" />
|
||||
<div class="title title_error">
|
||||
<h2>{__ text="Strona o podanym adresie nie istnieje." langCatalogue="stErrorFrontend"}</h2>
|
||||
</div>
|
||||
<div class="buttons">
|
||||
<a href="/" class="regular roundies important">
|
||||
{__ text="Przejdź do strony głównej" langCatalogue="stErrorFrontend"}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,13 @@
|
||||
{set layout="two_column_layout"}
|
||||
<div id="webpage_show" class="box roundies">
|
||||
<div class="title">
|
||||
<h2>{$content_name}</h2>
|
||||
{st_get_component module="stAddThisFrontend" component="shareButtons" params="view='webpage'"}
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
<div class="content tinymce_html">
|
||||
{slot name="webpage_before_content" hidden="true"}{/slot}
|
||||
{$content}
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,41 @@
|
||||
<div id="webpage_footer" class="col-xs-12">
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-sm-3">
|
||||
{st_get_component module="stBoxFrontend" component="boxSingle" params="id=4"}
|
||||
</div>
|
||||
<div class="col-xs-12 col-sm-9">
|
||||
<div class="panel-group row" id="accordion_footer" data-equalizer>
|
||||
<div class="col-xs-12 col-sm-4">
|
||||
<div id="box-user" class="box-info panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<h3 class="panel-title">Twoje konto</h3>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<ul>
|
||||
<li>
|
||||
<a href="/user/loginUser">Logowanie</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="/user/remindPassword">Przypomnij hasło</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="/user/createAccount">Załóż konto</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{foreach key=row item=webpages_group from=$results}
|
||||
<div class="foot-group list-group col-xs-12 col-sm-4" data-equalizer-watch="group">
|
||||
{st_get_component module="stWebpageFrontend" component="groupWebpage" params="id=`$webpages_group.id`"}
|
||||
</div>
|
||||
{/foreach}
|
||||
<!--{if $contact_link}
|
||||
<div class="foot-group list-group col-xs-12 col-sm-4 col-md-4 col-lg-3 visible-xs">
|
||||
<h5 class="list-group-item-heading">{$contact_link}</h5>
|
||||
</div>
|
||||
{/if}-->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,11 @@
|
||||
<ul class="nav navbar-nav">
|
||||
{foreach item=link from=$links}
|
||||
<li>
|
||||
{if $link.custom_url}
|
||||
<a href="{$link.custom_url}" target="_blank">{$link.name}</a>
|
||||
{else}
|
||||
<a href="{$link.url}">{$link.name}</a>
|
||||
{/if}
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
@@ -0,0 +1,27 @@
|
||||
<a href="{$url}" data-toggle="modal" data-target="#webpage-modal-{$id}" rel="nofollow">{$label}</a>
|
||||
|
||||
<div class="modal fade" id="webpage-modal-{$id}" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog modal-lg">
|
||||
<div class="modal-content">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
{literal}
|
||||
jQuery(function($) {
|
||||
$('[data-toggle="modal"]').contextmenu(function(e) {
|
||||
$(this).click();
|
||||
e.stopImmediatePropagation();
|
||||
return false;
|
||||
});
|
||||
$('[data-toggle="modal"]').mousedown(function(e) {
|
||||
if (e.which == 2) {
|
||||
$(this).click();
|
||||
e.stopImmediatePropagation();
|
||||
return false;
|
||||
}
|
||||
});
|
||||
});
|
||||
{/literal}
|
||||
</script>
|
||||
@@ -0,0 +1,27 @@
|
||||
<a href="{$url}" data-toggle="modal" data-target="#webpage-modal-{$id}-2" rel="nofollow">{$label}</a>
|
||||
|
||||
<div class="modal fade" id="webpage-modal-{$id}-2" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog modal-lg">
|
||||
<div class="modal-content">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
{literal}
|
||||
jQuery(function($) {
|
||||
$('[data-toggle="modal"]').contextmenu(function(e) {
|
||||
$(this).click();
|
||||
e.stopImmediatePropagation();
|
||||
return false;
|
||||
});
|
||||
$('[data-toggle="modal"]').mousedown(function(e) {
|
||||
if (e.which == 2) {
|
||||
$(this).click();
|
||||
e.stopImmediatePropagation();
|
||||
return false;
|
||||
}
|
||||
});
|
||||
});
|
||||
{/literal}
|
||||
</script>
|
||||
@@ -0,0 +1,7 @@
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
|
||||
<h4 class="modal-title">{$webpage->getName()}</h4>
|
||||
</div>
|
||||
<div class="modal-body tinymce_html">
|
||||
{$webpage->getContent()}
|
||||
</div>
|
||||
@@ -0,0 +1,14 @@
|
||||
<div id="webpage_footer" class="col-xs-12 col-sm-9 col-md-9 col-lg-9">
|
||||
<div class="panel-group row" id="accordion_footer">
|
||||
{foreach key=row item=webpages_group from=$results}
|
||||
<div class="foot-group list-group col-xs-12 col-sm-3">
|
||||
{st_get_component module="stWebpageFrontend" component="groupWebpage" params="id=`$webpages_group.id`"}
|
||||
</div>
|
||||
{/foreach}
|
||||
{if $contact_link}
|
||||
<div class="foot-group list-group col-xs-12 col-sm-3 visible-xs">
|
||||
<h5 class="list-group-item-heading">{$contact_link}</h5>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,9 @@
|
||||
<h5 class="list-group-item-heading">
|
||||
<a data-toggle="collapse" data-parent="#accordion_footer" href="#collapse_{$webpage_group_id}">{$webpage_group_name} <span class="caret hidden-sm hidden-md hidden-lg"></span></a>
|
||||
</h5>
|
||||
<div id="collapse_{$webpage_group_id}" class="list-group collapse">
|
||||
{foreach key=row item=webpage from=$results}
|
||||
{$webpage.link}
|
||||
{$webpage.other_link}
|
||||
{/foreach}
|
||||
</div>
|
||||
@@ -0,0 +1,3 @@
|
||||
{foreach key=row item=webpage from=$results}
|
||||
<li>{$webpage.link}</li>
|
||||
{/foreach}
|
||||
@@ -0,0 +1,11 @@
|
||||
<div id="webpage-show" class="error-404 text-center">
|
||||
<img class="img-error" src="{image_path image='e404.png'}" />
|
||||
<div class="title title-error">
|
||||
<h1>{__ text="Strona o podanym adresie nie istnieje." langCatalogue="stErrorFrontend"}</h1>
|
||||
</div>
|
||||
<div class="btn-group">
|
||||
<a href="/" class="btn-primary btn">
|
||||
{__ text="Przejdź do strony głównej" langCatalogue="stErrorFrontend"}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,21 @@
|
||||
<div id="webpage-show">
|
||||
<div class="title">
|
||||
<h1>{$content_name}</h1>
|
||||
{st_get_component module="stAddThisFrontend" component="shareButtons" params="view='webpage'"}
|
||||
</div>
|
||||
|
||||
<div class="content tinymce_html">
|
||||
{$content}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{literal}
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
jQuery(function($) {
|
||||
var href = "{/literal}{$url}{literal}";
|
||||
$('.horizontal-categories').trigger('highlight', href);
|
||||
});
|
||||
//]]>
|
||||
</script>
|
||||
{/literal}
|
||||
Reference in New Issue
Block a user