first commit
This commit is contained in:
1
apps/frontend/templates/theme/airsports/_fonts.html
Normal file
1
apps/frontend/templates/theme/airsports/_fonts.html
Normal file
@@ -0,0 +1 @@
|
||||
<link href="https://fonts.googleapis.com/css?family=Roboto+Condensed:400,700|Roboto:400,400i,700,700i&subset=latin-ext" rel="stylesheet">
|
||||
9
apps/frontend/templates/theme/airsports/_footer.html
Normal file
9
apps/frontend/templates/theme/airsports/_footer.html
Normal file
@@ -0,0 +1,9 @@
|
||||
<div class="navbar navbar-default clearfix" role="navigation">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
{st_get_component module="stSocialLinksFrontend" component="show"}
|
||||
{st_get_component module="stWebpageFrontend" component="footerWebpage"}
|
||||
</div>
|
||||
{st_get_component module="stFrontendMain" component="copyright" params="open='$open'"}
|
||||
</div>
|
||||
</div>
|
||||
150
apps/frontend/templates/theme/airsports/_header.html
Normal file
150
apps/frontend/templates/theme/airsports/_header.html
Normal file
@@ -0,0 +1,150 @@
|
||||
<div id="header-navbar-position">
|
||||
<div id="header-navbar-outer">
|
||||
<div class="container">
|
||||
<nav id="header-navbar" class="navbar" role="navigation">
|
||||
<div id="logo_small" class="visible-xs">
|
||||
<div>
|
||||
<a href="{$homepage_url}">
|
||||
<img src="{image_path image='logo_small.png'}" alt="Logo" />
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div id="navbar-buttons" class="btn-group pull-right">
|
||||
<button id="nav-button-search" type="button" class="btn btn-navbar hidden-xs collapsed" data-toggle="collapse" data-target="#nav-search" data-parent="#header-navbar">
|
||||
<span class="glyphicon glyphicon-search"></span>
|
||||
</button>
|
||||
<button id="nav-button-shopping-cart" class="btn btn-navbar collapsed empty" data-toggle="collapse" data-target="#nav-shopping-cart" data-parent="#header-navbar">
|
||||
<span class="glyphicon glyphicon-shopping-cart"></span>
|
||||
<small class="quantity"></small>
|
||||
</button>
|
||||
|
||||
{if !$sf_user->isAuthenticated()}
|
||||
<a href="{url_for internal='stUser/loginUser' secure=true}" id="nav-button-user" class="hidden-xs btn btn-navbar collapsed">
|
||||
<span id="login-status-info" class="glyphicon glyphicon-user"></span>
|
||||
<small class="login-status"> </small>
|
||||
</a>
|
||||
<button id="nav-button-user" class="visible-xs btn btn-navbar collapsed" data-toggle="collapse" data-target="#nav-user" data-parent="#header-navbar">
|
||||
<span id="login-status-info" class="glyphicon glyphicon-user"></span>
|
||||
<small class="login-status"> </small>
|
||||
</button>
|
||||
{else}
|
||||
<button id="nav-button-user" class="btn btn-navbar collapsed" data-toggle="collapse" data-target="#nav-user" data-parent="#header-navbar">
|
||||
<span id="login-status-info" class="glyphicon glyphicon-user"></span>
|
||||
<small class="login-status"> </small>
|
||||
</button>
|
||||
{/if}
|
||||
<button id="nav-button-settings" class="btn btn-navbar hidden-xs collapsed" data-toggle="collapse" data-target="#nav-settings" data-parent="#header-navbar">
|
||||
<span class="glyphicon glyphicon-globe"></span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="navbar-header">
|
||||
<button id="nav-button-menu" type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#nav-menu" data-parent="#header-navbar">
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
</div>
|
||||
<!-- Menu -->
|
||||
<div id="nav-menu" class="navbar-collapse collapse">
|
||||
{st_get_component module="stCategoryTree" component="horizontal"}
|
||||
</div>
|
||||
<div class="navbar-dropdown">
|
||||
<!-- Koszyk -->
|
||||
<div id="nav-shopping-cart" class="navbar-collapse collapse">
|
||||
{st_get_component module="stBasket" component="show"}
|
||||
</div>
|
||||
<div id="nav-user" class="navbar-collapse collapse">
|
||||
<ul class="nav navbar-nav">
|
||||
<!-- Moje konto, Język, Waluta -->
|
||||
{st_get_component module="stUser" component="loginStatus"}
|
||||
</ul>
|
||||
</div>
|
||||
{strip}
|
||||
<div id="nav-settings" class="hidden-xs navbar-collapse collapse">
|
||||
<ul class="nav navbar-nav">
|
||||
<li class="dropdown">
|
||||
{st_get_component module="stLanguageFrontend" component="choose"}
|
||||
</li>
|
||||
<li class="dropdown">
|
||||
{st_get_component module="stCurrencyFrontend" component="pickCurrency"}
|
||||
</li>
|
||||
</ul>
|
||||
{slot name="nav-setting" hidden="true"}{/slot}
|
||||
</div>
|
||||
{/strip}
|
||||
<div id="nav-search" class="navbar-collapse collapse hidden-xs">
|
||||
{include_file id="_search"}
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{literal}
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
jQuery(function($) {
|
||||
if ($('#nav-settings > ul > li:empty').length == 2)
|
||||
{
|
||||
$('#nav-button-settings').hide();
|
||||
}
|
||||
|
||||
var menuHeight = $('#header-navbar-outer').height();
|
||||
var dropdown = $('#header-navbar .dropdown-menu');
|
||||
|
||||
function menuFix() {
|
||||
|
||||
if ($(window).width() > 768) {
|
||||
|
||||
var scrolled = $(window).scrollTop();
|
||||
var menuTop = $('#header-navbar-position').offset().top;
|
||||
var windowHeight = $(window).height();
|
||||
var headerHeight = $('#top').height();
|
||||
|
||||
if (scrolled > menuTop) {
|
||||
$('#header-navbar-outer').addClass('navbar-fixed-top');
|
||||
$('#header-navbar-position').css('min-height', menuHeight - 1);
|
||||
dropdown.css('max-height', windowHeight - menuHeight - 15);
|
||||
} else if (scrolled < menuTop) {
|
||||
$('#header-navbar-outer').removeClass('navbar-fixed-top');
|
||||
$('#header-navbar-position').css('min-height', '');
|
||||
dropdown.css('max-height', windowHeight - headerHeight - menuHeight - 15);
|
||||
};
|
||||
} else {
|
||||
dropdown.removeAttr("style");
|
||||
};
|
||||
}
|
||||
|
||||
function parallaxBaner(){
|
||||
|
||||
if ($(window).width() > 767) {
|
||||
|
||||
var scrolled = $(window).scrollTop();
|
||||
var scrollBaner2 = scrolled;
|
||||
|
||||
$('body').css('background-position', 'center '+ (scrollBaner2*0.5)+'px');
|
||||
}
|
||||
}
|
||||
|
||||
$(document).ready(function(){
|
||||
menuFix();
|
||||
if ($(window).width() < 768) {
|
||||
var windowHeightMobile = $(window).height();
|
||||
var menuHeightMobile = $('#header-navbar').height();
|
||||
$('#header-navbar .navbar-collapse').css('max-height', windowHeightMobile - menuHeightMobile);
|
||||
};
|
||||
});
|
||||
$(window).scroll(function(){
|
||||
menuFix();
|
||||
//parallaxBaner();
|
||||
});
|
||||
$(window).resize(function(){
|
||||
menuFix();
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
//]]>
|
||||
</script>
|
||||
{/literal}
|
||||
9
apps/frontend/templates/theme/airsports/_top.html
Normal file
9
apps/frontend/templates/theme/airsports/_top.html
Normal file
@@ -0,0 +1,9 @@
|
||||
<div id="top" class="container hidden-xs">
|
||||
<div id="header" class="clearfix">
|
||||
<div id="logo">
|
||||
<a href="{$homepage_url}">
|
||||
<img src="{image_path image='logo.png'}" alt="Logo" />
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
36
apps/frontend/templates/theme/airsports/one_column.html
Normal file
36
apps/frontend/templates/theme/airsports/one_column.html
Normal file
@@ -0,0 +1,36 @@
|
||||
<div id="bg">
|
||||
{include_file id="_top"}
|
||||
<div id="container" class="container">
|
||||
<header>
|
||||
{include_file id="_header"}
|
||||
</header>
|
||||
{php}
|
||||
$c = sfContext::getInstance();
|
||||
if ($c->getModuleName() == 'stFrontendMain' && $c->getActionName() == 'index') {
|
||||
{/php}
|
||||
|
||||
{st_get_component module="stSlideBannerFrontend" component="show"}
|
||||
|
||||
{php} } {/php}
|
||||
|
||||
<div id="one-column-layout">
|
||||
{php}
|
||||
$c = sfContext::getInstance();
|
||||
if
|
||||
(($c->getModuleName() == 'stProduct' && $c->getActionName() == 'list') ||
|
||||
($c->getModuleName() == 'stProduct' && $c->getActionName() == 'groupList') ||
|
||||
($c->getModuleName() == 'stProduct' && $c->getActionName() == 'producerList') ||
|
||||
($c->getModuleName() == 'stProduct' && $c->getActionName() == 'show') ||
|
||||
($c->getModuleName() == 'stWebpageFrontend' && $c->getActionName() == 'index'))
|
||||
{
|
||||
{/php}
|
||||
{st_get_component module="stNavigationFrontend" component="breadcrumbs"}
|
||||
{php} } {/php}
|
||||
{st_get_component module="stProduct" component="filters" modal_only=true}
|
||||
{$content}
|
||||
</div>
|
||||
</div>
|
||||
<footer>
|
||||
{include_file id="_footer"}
|
||||
</footer>
|
||||
</div>
|
||||
34
apps/frontend/templates/theme/airsports/two_column.html
Normal file
34
apps/frontend/templates/theme/airsports/two_column.html
Normal file
@@ -0,0 +1,34 @@
|
||||
<div id="bg">
|
||||
{include_file id="_top"}
|
||||
<div id="container" class="container">
|
||||
<header>
|
||||
{include_file id="_header"}
|
||||
</header>
|
||||
|
||||
<div id="two-column-layout">
|
||||
{st_get_component module="stNavigationFrontend" component="breadcrumbs"}
|
||||
<div class="row">
|
||||
<div id="content" class="col-md-9 col-md-push-3 col-lg-9 col-lg-push-3">{$content}</div>
|
||||
<div id="left" class="col-md-3 col-md-pull-9 col-lg-3 col-lg-pull-9 hidden-sm hidden-xs">
|
||||
{strip}
|
||||
<div id="category-thumbnail" class="thumbnail">
|
||||
{st_get_component module="stCategoryTree" component="vertical"}
|
||||
{st_get_component module="stProduct" component="filters"}
|
||||
</div>
|
||||
{/strip}
|
||||
{st_get_component module="stProduct" component="new"}
|
||||
{st_get_component module="stProduct" component="productGroup" params="product_group=PROMOTION"}
|
||||
{st_get_component module="stProduct" component="productGroup" params="product_group=RECOMMEND"}
|
||||
{st_get_component module="stProduct" component="productGroup" params="product_group=SALES"}
|
||||
{st_get_component module="stBoxFrontend" component="boxGroup" params="box_group=LEFT"}
|
||||
{st_get_component module="stTrustedShopsFrontend" component="showRatingWidget"}
|
||||
{slot name="left-column-bottom" hidden="true"}{/slot}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<footer>
|
||||
{include_file id="_footer"}
|
||||
</footer>
|
||||
</div>
|
||||
Reference in New Issue
Block a user