Skip to content
This repository has been archived by the owner on Aug 17, 2022. It is now read-only.

Commit

Permalink
initial addition of Andreas08 theme
Browse files Browse the repository at this point in the history
  • Loading branch information
Guite committed Apr 5, 2017
1 parent b4ab035 commit 60b9452
Show file tree
Hide file tree
Showing 28 changed files with 852 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .styleci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
preset: symfony

enabled:
- short_array_syntax

disabled:
- cast_spaces
- concat_without_spaces
- no_blank_lines_after_phpdoc
- no_blank_lines_after_throw
- php_unit_fqcn_annotation
- phpdoc_align
- phpdoc_no_empty_return
- phpdoc_scalar
- phpdoc_separation
- phpdoc_summary
- phpdoc_to_comment
- phpdoc_type_to_var
- pre_increment
- single_quote
- trailing_comma_in_multiline_array
- unalign_double_arrow
- unalign_equals

finder:
exclude:
- "src/javascript"
- "src/lib/legacy/idn"
- "tools"
- "src/system/RoutesModule"
23 changes: 23 additions & 0 deletions Resources/ZikulaSearchModule/views/Block/search.html.twig
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{{ form_start(form, {'attr': {'class': 'form-inline pull-right'}}) }}
{{ form_errors(form) }}
{{ form_widget(form.q, {'attr': {'placeholder': __('Search keywords')}}) }}
{% if properties.displaySearchBtn == 1 %}
{{ form_widget(form.search, {'label': __('Go'), 'attr': {'class': 'btn btn-default btn-xs'}}) }}
{% endif %}
<div class="hidden">
{{ form_row(form.searchType) }}
{{ form_row(form.searchOrder) }}
{{ form_row(form.modules) }}
</div>
<div class="hidden">
{# @deprecated remove at Core-2.0 #}
{% for plugin, pluginOption in pluginOptions %}
{{ pluginOption|raw }}
{% endfor %}
</div>
{% set moduleVariables = zikulasearchmodule_searchVarToFieldNames() %}
{% for name, value in moduleVariables %}
<input type="hidden" name="{{ name|e('html_attr') }}" value="{{ value|e('html_attr') }}" />
{% endfor %}

{{ form_end(form) }}
4 changes: 4 additions & 0 deletions Resources/config/overrides.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
## YAML Override template
## original/file.tpl: override/file.tpl
---
system/BlocksModule/Resources/views/Block/Extmenu/topnav.tpl: themes/Andreas08Theme/Resources/views/modules/ZikulaBlocksModule/Block/Extmenu/topnav.tpl
30 changes: 30 additions & 0 deletions Resources/config/theme.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
##
# ZikulaAndreas08Theme config
##
admin:
page: ":admin.html.twig"
block:
positions:
left: "Block:block.html.twig"
right: "Block:block.html.twig"
center: "Block:block.html.twig"
topnav: "Block:topnavblock.html.twig"
search: "Block:searchblock.html.twig"
home:
page: ":home.html.twig"
block:
positions:
left: "Block:block.html.twig"
right: "Block:block.html.twig"
center: "Block:block.html.twig"
topnav: "Block:topnavblock.html.twig"
search: "Block:searchblock.html.twig"
master:
page: ":master.html.twig"
block:
positions:
left: "Block:block.html.twig"
right: "Block:block.html.twig"
center: "Block:block.html.twig"
topnav: "Block:topnavblock.html.twig"
search: "Block:searchblock.html.twig"
40 changes: 40 additions & 0 deletions Resources/config/variables.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
##
# ZikulaAndreas08Theme variables
##
layout:
default_value: container
type: choice
options:
choices:
container-fluid: Fluid
container: Fixed
home:
default_value: 3col_w_centerblock
type: choice
options:
choices:
1col: One column
2col: Two columns
2col_w_centerblock: Two columns with centerblock
3col: Three columns
3col_w_centerblock: Three columns with centerblock
master:
default_value: 2col
type: choice
options:
choices:
1col: One column
2col: Two columns
2col_w_centerblock: Two columns with centerblock
3col: Three columns
3col_w_centerblock: Three columns with centerblock
admin:
default_value: 1col
type: choice
options:
choices:
1col: One column
2col: Two columns
2col_w_centerblock: Two columns with centerblock
3col: Three columns
3col_w_centerblock: Three columns with centerblock
103 changes: 103 additions & 0 deletions Resources/public/css/ZikulaBlocksModule/menutree/horizontal.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
#theme_navigation_bar ul.menutree_horizontal,
#theme_navigation_bar ul.menutree_horizontal ul {
background: #578BB8;
font-weight: bold;
line-height: 2em;
list-style: none outside none;
margin: 0;
padding: 0;
float: left;
}

#theme_navigation_bar ul.menutree_horizontal li {
float: left;
margin: 0;
padding: 0;
position: relative;
border: none;
}

#theme_navigation_bar ul.menutree_horizontal li:hover {
background: #80b0da;
}

#theme_navigation_bar ul.menutree_horizontal > li {
border-right: 1px solid #FFFFFF;
}

#theme_navigation_bar ul.menutree_horizontal li a,
#theme_navigation_bar ul.menutree_horizontal li span {
display: block;
padding: 1px 10px;
text-decoration: none;
}

#theme_navigation_bar ul.menutree_horizontal li.parent > a,
#theme_navigation_bar ul.menutree_horizontal li.parent > span {
background: url("../../../../../../../../../images/global/arrow_down_white.png") no-repeat scroll 95% 50% transparent;
padding-right: 18px;
}

#theme_navigation_bar ul.menutree_horizontal li.parent > a:hover,
#theme_navigation_bar ul.menutree_horizontal li.parent > span:hover {
background: url("../../../../../../../../../images/global/arrow_down_black.png") no-repeat scroll 95% 50% transparent;
}

#theme_navigation_bar ul.menutree_horizontal li ul {
font-weight: normal;
height: auto;
left: -9999px;
margin: 0;
position: absolute;
width: 15em;
border: 1px solid #444;
}

#theme_navigation_bar ul.menutree_horizontal li li {
width: 15em;
}

#theme_navigation_bar ul.menutree_horizontal li li a,
#theme_navigation_bar ul.menutree_horizontal li li span {
border: none;
}

#theme_navigation_bar ul.menutree_horizontal li li.parent > a,
#theme_navigation_bar ul.menutree_horizontal li li.parent > span {
background: url("../../../../../../../../../images/global/arrow_right_white.png") no-repeat scroll 95% 50% transparent;
padding-right: 18px;
}

#theme_navigation_bar ul.menutree_horizontal li li.parent > a:hover,
#theme_navigation_bar ul.menutree_horizontal li li.parent > span:hover {
background: url("../../../../../../../../../images/global/arrow_right_black.png") no-repeat scroll 95% 50% transparent;
}

#theme_navigation_bar ul.menutree_horizontal li ul ul {
margin: -1.75em 0 0 15.1em;
}

#theme_navigation_bar ul.menutree_horizontal li:hover ul ul,
#theme_navigation_bar ul.menutree_horizontal li:hover ul ul ul {
left: -9999px;
}

#theme_navigation_bar ul.menutree_horizontal li:hover ul {
left: -1px;
position: absolute;
}

#theme_navigation_bar ul.menutree_horizontal li li:hover ul,
#theme_navigation_bar ul.menutree_horizontal li li li:hover ul {
left: -1px;
top: 1.75em;
}

.menutree_horizontal_controls {
font-size: 0.8em;
margin: 0.5em 0;
}

.menutree_horizontal_controls img {
vertical-align: middle;
}
Loading

0 comments on commit 60b9452

Please sign in to comment.