Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
S
some-ori
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
John
some-ori
Commits
5e2f6859
Commit
5e2f6859
authored
Feb 07, 2017
by
John Punzalan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update homepage and concept
parent
c7edb2d9
Changes
15
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
3500 additions
and
7 deletions
+3500
-7
functions.php
wp-content/themes/someori/functions.php
+1
-0
bones.php
wp-content/themes/someori/library/bones.php
+2
-0
slick.eot
wp-content/themes/someori/library/css/fonts/slick.eot
+0
-0
slick.svg
wp-content/themes/someori/library/css/fonts/slick.svg
+14
-0
slick.ttf
wp-content/themes/someori/library/css/fonts/slick.ttf
+0
-0
slick.woff
wp-content/themes/someori/library/css/fonts/slick.woff
+0
-0
someori.css
wp-content/themes/someori/library/css/someori.css
+257
-1
ajax-loader.gif
wp-content/themes/someori/library/images/ajax-loader.gif
+0
-0
app.js
wp-content/themes/someori/library/js/app.js
+21
-0
slick.js
wp-content/themes/someori/library/js/slick.js
+2892
-0
slick-theme.less
wp-content/themes/someori/library/less/slick-theme.less
+168
-0
slick.less
wp-content/themes/someori/library/less/slick.less
+98
-0
someori.less
wp-content/themes/someori/library/less/someori.less
+32
-1
someori.php
wp-content/themes/someori/library/someori.php
+14
-4
template-fabricant.php
wp-content/themes/someori/template-fabricant.php
+1
-1
No files found.
wp-content/themes/someori/functions.php
View file @
5e2f6859
...
...
@@ -10,6 +10,7 @@ sidebars, comments, etc.
// LOAD BONES CORE (if you remove this, the theme will break)
require_once
(
'library/bones.php'
);
require_once
(
'library/someori.php'
);
// CUSTOMIZE THE WORDPRESS ADMIN (off by default)
// require_once( 'library/admin.php' );
...
...
wp-content/themes/someori/library/bones.php
View file @
5e2f6859
...
...
@@ -132,6 +132,8 @@ function bones_scripts_and_styles() {
// ie-only style sheet
wp_register_style
(
'bones-ie-only'
,
get_stylesheet_directory_uri
()
.
'/library/css/ie.css'
,
array
(),
''
);
wp_enqueue_script
(
'app'
,
get_stylesheet_directory_uri
()
.
'/library/js/app.js'
,
array
(
'jquery'
),
'1.0.0'
,
true
);
wp_enqueue_script
(
'slick'
,
get_stylesheet_directory_uri
()
.
'/library/js/slick.js'
,
array
(),
''
);
// comment reply script for threaded comments
if
(
is_singular
()
AND
comments_open
()
AND
(
get_option
(
'thread_comments'
)
==
1
))
{
...
...
wp-content/themes/someori/library/css/fonts/slick.eot
0 → 100755
View file @
5e2f6859
File added
wp-content/themes/someori/library/css/fonts/slick.svg
0 → 100755
View file @
5e2f6859
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg
xmlns=
"http://www.w3.org/2000/svg"
>
<metadata>
Generated by Fontastic.me
</metadata>
<defs>
<font
id=
"slick"
horiz-adv-x=
"512"
>
<font-face
font-family=
"slick"
units-per-em=
"512"
ascent=
"480"
descent=
"-32"
/>
<missing-glyph
horiz-adv-x=
"512"
/>
<glyph
unicode=
"→"
d=
"M241 113l130 130c4 4 6 8 6 13 0 5-2 9-6 13l-130 130c-3 3-7 5-12 5-5 0-10-2-13-5l-29-30c-4-3-6-7-6-12 0-5 2-10 6-13l87-88-87-88c-4-3-6-8-6-13 0-5 2-9 6-12l29-30c3-3 8-5 13-5 5 0 9 2 12 5z m234 143c0-40-9-77-29-110-20-34-46-60-80-80-33-20-70-29-110-29-40 0-77 9-110 29-34 20-60 46-80 80-20 33-29 70-29 110 0 40 9 77 29 110 20 34 46 60 80 80 33 20 70 29 110 29 40 0 77-9 110-29 34-20 60-46 80-80 20-33 29-70 29-110z"
/>
<glyph
unicode=
"←"
d=
"M296 113l29 30c4 3 6 7 6 12 0 5-2 10-6 13l-87 88 87 88c4 3 6 8 6 13 0 5-2 9-6 12l-29 30c-3 3-8 5-13 5-5 0-9-2-12-5l-130-130c-4-4-6-8-6-13 0-5 2-9 6-13l130-130c3-3 7-5 12-5 5 0 10 2 13 5z m179 143c0-40-9-77-29-110-20-34-46-60-80-80-33-20-70-29-110-29-40 0-77 9-110 29-34 20-60 46-80 80-20 33-29 70-29 110 0 40 9 77 29 110 20 34 46 60 80 80 33 20 70 29 110 29 40 0 77-9 110-29 34-20 60-46 80-80 20-33 29-70 29-110z"
/>
<glyph
unicode=
"•"
d=
"M475 256c0-40-9-77-29-110-20-34-46-60-80-80-33-20-70-29-110-29-40 0-77 9-110 29-34 20-60 46-80 80-20 33-29 70-29 110 0 40 9 77 29 110 20 34 46 60 80 80 33 20 70 29 110 29 40 0 77-9 110-29 34-20 60-46 80-80 20-33 29-70 29-110z"
/>
<glyph
unicode=
"a"
d=
"M475 439l0-128c0-5-1-9-5-13-4-4-8-5-13-5l-128 0c-8 0-13 3-17 11-3 7-2 14 4 20l40 39c-28 26-62 39-100 39-20 0-39-4-57-11-18-8-33-18-46-32-14-13-24-28-32-46-7-18-11-37-11-57 0-20 4-39 11-57 8-18 18-33 32-46 13-14 28-24 46-32 18-7 37-11 57-11 23 0 44 5 64 15 20 9 38 23 51 42 2 1 4 3 7 3 3 0 5-1 7-3l39-39c2-2 3-3 3-6 0-2-1-4-2-6-21-25-46-45-76-59-29-14-60-20-93-20-30 0-58 5-85 17-27 12-51 27-70 47-20 19-35 43-47 70-12 27-17 55-17 85 0 30 5 58 17 85 12 27 27 51 47 70 19 20 43 35 70 47 27 12 55 17 85 17 28 0 55-5 81-15 26-11 50-26 70-45l37 37c6 6 12 7 20 4 8-4 11-9 11-17z"
/>
</font></defs></svg>
wp-content/themes/someori/library/css/fonts/slick.ttf
0 → 100755
View file @
5e2f6859
File added
wp-content/themes/someori/library/css/fonts/slick.woff
0 → 100755
View file @
5e2f6859
File added
wp-content/themes/someori/library/css/someori.css
View file @
5e2f6859
@charset
"UTF-8"
;
/* Slider */
.slick-loading
.slick-list
{
background
:
#fff
url('../images/ajax-loader.gif')
center
center
no-repeat
;
}
/* Icons */
@font-face
{
font-family
:
'slick'
;
font-weight
:
normal
;
font-style
:
normal
;
src
:
url('fonts/slick.eot')
;
src
:
url('fonts/slick.eot?#iefix')
format
(
'embedded-opentype'
),
url('fonts/slick.woff')
format
(
'woff'
),
url('fonts/slick.ttf')
format
(
'truetype'
),
url('fonts/slick.svg#slick')
format
(
'svg'
);
}
/* Arrows */
.slick-prev
,
.slick-next
{
position
:
absolute
;
display
:
block
;
height
:
20px
;
width
:
20px
;
line-height
:
0px
;
font-size
:
0px
;
cursor
:
pointer
;
background
:
transparent
;
color
:
transparent
;
top
:
50%
;
-webkit-transform
:
translate
(
0
,
-50%
);
-ms-transform
:
translate
(
0
,
-50%
);
transform
:
translate
(
0
,
-50%
);
padding
:
0
;
border
:
none
;
outline
:
none
;
}
.slick-prev
:hover
,
.slick-next
:hover
,
.slick-prev
:focus
,
.slick-next
:focus
{
outline
:
none
;
background
:
transparent
;
color
:
transparent
;
}
.slick-prev
:hover:before
,
.slick-next
:hover:before
,
.slick-prev
:focus:before
,
.slick-next
:focus:before
{
opacity
:
1
;
}
.slick-prev.slick-disabled
:before
,
.slick-next.slick-disabled
:before
{
opacity
:
0.25
;
}
.slick-prev
:before
,
.slick-next
:before
{
font-family
:
"slick"
;
font-size
:
20px
;
line-height
:
1
;
color
:
white
;
opacity
:
0.75
;
-webkit-font-smoothing
:
antialiased
;
-moz-osx-font-smoothing
:
grayscale
;
}
.slick-prev
{
left
:
-25px
;
}
.slick-prev
[
dir
=
"rtl"
]
{
left
:
auto
;
right
:
-25px
;
}
.slick-prev
:before
{
content
:
"←"
;
}
.slick-prev
:before
[
dir
=
"rtl"
]
{
content
:
"→"
;
}
.slick-next
{
right
:
-25px
;
}
.slick-next
[
dir
=
"rtl"
]
{
left
:
-25px
;
right
:
auto
;
}
.slick-next
:before
{
content
:
"→"
;
}
.slick-next
:before
[
dir
=
"rtl"
]
{
content
:
"←"
;
}
/* Dots */
.slick-dotted
.slick-slider
{
margin-bottom
:
30px
;
}
.slick-dots
{
position
:
absolute
;
bottom
:
-25px
;
list-style
:
none
;
display
:
block
;
text-align
:
center
;
padding
:
0
;
margin
:
0
;
width
:
100%
;
}
.slick-dots
li
{
position
:
relative
;
display
:
inline-block
;
height
:
20px
;
width
:
20px
;
margin
:
0
5px
;
padding
:
0
;
cursor
:
pointer
;
}
.slick-dots
li
button
{
border
:
0
;
background
:
transparent
;
display
:
block
;
height
:
20px
;
width
:
20px
;
outline
:
none
;
line-height
:
0px
;
font-size
:
0px
;
color
:
transparent
;
padding
:
5px
;
cursor
:
pointer
;
}
.slick-dots
li
button
:hover
,
.slick-dots
li
button
:focus
{
outline
:
none
;
}
.slick-dots
li
button
:hover:before
,
.slick-dots
li
button
:focus:before
{
opacity
:
1
;
}
.slick-dots
li
button
:before
{
position
:
absolute
;
top
:
0
;
left
:
0
;
content
:
"•"
;
width
:
20px
;
height
:
20px
;
font-family
:
"slick"
;
font-size
:
6px
;
line-height
:
20px
;
text-align
:
center
;
color
:
black
;
opacity
:
0.25
;
-webkit-font-smoothing
:
antialiased
;
-moz-osx-font-smoothing
:
grayscale
;
}
.slick-dots
li
.slick-active
button
:before
{
color
:
black
;
opacity
:
0.75
;
}
/* Slider */
.slick-slider
{
position
:
relative
;
display
:
block
;
box-sizing
:
border-box
;
-webkit-touch-callout
:
none
;
-webkit-user-select
:
none
;
-khtml-user-select
:
none
;
-moz-user-select
:
none
;
-ms-user-select
:
none
;
user-select
:
none
;
-ms-touch-action
:
pan-y
;
touch-action
:
pan-y
;
-webkit-tap-highlight-color
:
transparent
;
}
.slick-list
{
position
:
relative
;
overflow
:
hidden
;
display
:
block
;
margin
:
0
;
padding
:
0
;
}
.slick-list
:focus
{
outline
:
none
;
}
.slick-list.dragging
{
cursor
:
pointer
;
cursor
:
hand
;
}
.slick-slider
.slick-track
,
.slick-slider
.slick-list
{
-webkit-transform
:
translate3d
(
0
,
0
,
0
);
-moz-transform
:
translate3d
(
0
,
0
,
0
);
-ms-transform
:
translate3d
(
0
,
0
,
0
);
-o-transform
:
translate3d
(
0
,
0
,
0
);
transform
:
translate3d
(
0
,
0
,
0
);
}
.slick-track
{
position
:
relative
;
left
:
0
;
top
:
0
;
display
:
block
;
}
.slick-track
:before
,
.slick-track
:after
{
content
:
""
;
display
:
table
;
}
.slick-track
:after
{
clear
:
both
;
}
.slick-loading
.slick-track
{
visibility
:
hidden
;
}
.slick-slide
{
float
:
left
;
height
:
100%
;
min-height
:
1px
;
display
:
none
;
}
[
dir
=
"rtl"
]
.slick-slide
{
float
:
right
;
}
.slick-slide
img
{
display
:
block
;
}
.slick-slide.slick-loading
img
{
display
:
none
;
}
.slick-slide.dragging
img
{
pointer-events
:
none
;
}
.slick-initialized
.slick-slide
{
display
:
block
;
}
.slick-loading
.slick-slide
{
visibility
:
hidden
;
}
.slick-vertical
.slick-slide
{
display
:
block
;
height
:
auto
;
border
:
1px
solid
transparent
;
}
.slick-arrow.slick-hidden
{
display
:
none
;
}
.span6.full
{
margin
:
0
;
width
:
50%
;
...
...
@@ -62,7 +299,7 @@ footer {
}
.right-block-text
{
margin-top
:
109px
;
overflow
:
scroll
;
overflow
-y
:
auto
;
background
:
#ffffff
;
padding
:
25px
0
;
font-size
:
13px
;
...
...
@@ -79,3 +316,22 @@ footer {
.translate-text
{
color
:
#949494
;
}
.fabricants
.block-fabricant
{
position
:
relative
;
margin-top
:
209px
;
}
.fabricants
.fabricant-name
{
text-transform
:
uppercase
;
font-weight
:
bold
;
letter-spacing
:
2px
;
}
.fabricants
.fabricant-speciality
{
padding-bottom
:
30px
;
}
.fabricants
.nav-fabricant
{
position
:
absolute
;
bottom
:
50px
;
}
.fabricants
.nav-fabricant
span
{
cursor
:
pointer
;
}
wp-content/themes/someori/library/images/ajax-loader.gif
0 → 100755
View file @
5e2f6859
4.08 KB
wp-content/themes/someori/library/js/app.js
0 → 100644
View file @
5e2f6859
(
function
(
$
)
{
console
.
log
(
'it works'
);
$
(
'.js-fabricants'
).
slick
({
infinite
:
true
,
speed
:
1000
,
arrows
:
false
,
slidesToShow
:
1
,
fade
:
true
,
cssEase
:
'linear'
});
$
(
'.goto-next'
).
click
(
function
()
{
$
(
'.js-fabricants'
).
slick
(
'slickNext'
);
});
$
(
'.goto-prev'
).
click
(
function
()
{
$
(
'.js-fabricants'
).
slick
(
'slickPrev'
);
});
})(
jQuery
);
\ No newline at end of file
wp-content/themes/someori/library/js/slick.js
0 → 100755
View file @
5e2f6859
This diff is collapsed.
Click to expand it.
wp-content/themes/someori/library/less/slick-theme.less
0 → 100755
View file @
5e2f6859
@charset "UTF-8";
// Default Variables
@slick-font-path: "./fonts/";
@slick-font-family: "slick";
@slick-loader-path: "../images/";
@slick-arrow-color: white;
@slick-dot-color: black;
@slick-dot-color-active: @slick-dot-color;
@slick-prev-character: "←";
@slick-next-character: "→";
@slick-dot-character: "•";
@slick-dot-size: 6px;
@slick-opacity-default: 0.75;
@slick-opacity-on-hover: 1;
@slick-opacity-not-active: 0.25;
/* Slider */
.slick-loading .slick-list{
background: #fff url('@{slick-loader-path}ajax-loader.gif') center center no-repeat;
}
/* Icons */
@font-face{
font-family: 'slick';
font-weight: normal;
font-style: normal;
src: url('@{slick-font-path}slick.eot');
src: url('@{slick-font-path}slick.eot?#iefix') format('embedded-opentype'), url('@{slick-font-path}slick.woff') format('woff'), url('@{slick-font-path}slick.ttf') format('truetype'), url('@{slick-font-path}slick.svg#slick') format('svg');
}
/* Arrows */
.slick-prev,
.slick-next {
position: absolute;
display: block;
height: 20px;
width: 20px;
line-height: 0px;
font-size: 0px;
cursor: pointer;
background: transparent;
color: transparent;
top: 50%;
-webkit-transform: translate(0, -50%);
-ms-transform: translate(0, -50%);
transform: translate(0, -50%);
padding: 0;
border: none;
outline: none;
&:hover, &:focus {
outline: none;
background: transparent;
color: transparent;
&:before {
opacity: @slick-opacity-on-hover;
}
}
&.slick-disabled:before {
opacity: @slick-opacity-not-active;
}
}
.slick-prev:before, .slick-next:before {
font-family: @slick-font-family;
font-size: 20px;
line-height: 1;
color: @slick-arrow-color;
opacity: @slick-opacity-default;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.slick-prev {
left: -25px;
&[dir="rtl"] {
left: auto;
right: -25px;
}
&:before {
content: @slick-prev-character;
&[dir="rtl"] {
content: @slick-next-character;
}
}
}
.slick-next {
right: -25px;
&[dir="rtl"] {
left: -25px;
right: auto;
}
&:before {
content: @slick-next-character;
&[dir="rtl"] {
content: @slick-prev-character;
}
}
}
/* Dots */
.slick-dotted .slick-slider {
margin-bottom: 30px;
}
.slick-dots {
position: absolute;
bottom: -25px;
list-style: none;
display: block;
text-align: center;
padding: 0;
margin: 0;
width: 100%;
li {
position: relative;
display: inline-block;
height: 20px;
width: 20px;
margin: 0 5px;
padding: 0;
cursor: pointer;
button {
border: 0;
background: transparent;
display: block;
height: 20px;
width: 20px;
outline: none;
line-height: 0px;
font-size: 0px;
color: transparent;
padding: 5px;
cursor: pointer;
&:hover, &:focus {
outline: none;
&:before {
opacity: @slick-opacity-on-hover;
}
}
&:before {
position: absolute;
top: 0;
left: 0;
content: @slick-dot-character;
width: 20px;
height: 20px;
font-family: @slick-font-family;
font-size: @slick-dot-size;
line-height: 20px;
text-align: center;
color: @slick-dot-color;
opacity: @slick-opacity-not-active;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
}
&.slick-active button:before {
color: @slick-dot-color-active;
opacity: @slick-opacity-default;
}
}
}
wp-content/themes/someori/library/less/slick.less
0 → 100755
View file @
5e2f6859
/* Slider */
.slick-slider {
position: relative;
display: block;
box-sizing: border-box;
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
-ms-touch-action: pan-y;
touch-action: pan-y;
-webkit-tap-highlight-color: transparent;
}
.slick-list {
position: relative;
overflow: hidden;
display: block;
margin: 0;
padding: 0;
&:focus {
outline: none;
}
&.dragging {
cursor: pointer;
cursor: hand;
}
}
.slick-slider .slick-track,
.slick-slider .slick-list {
-webkit-transform: translate3d(0, 0, 0);
-moz-transform: translate3d(0, 0, 0);
-ms-transform: translate3d(0, 0, 0);
-o-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
}
.slick-track {
position: relative;
left: 0;
top: 0;
display: block;
&:before,
&:after {
content: "";
display: table;
}
&:after {
clear: both;
}
.slick-loading & {
visibility: hidden;
}
}
.slick-slide {
float: left;
height: 100%;
min-height: 1px;
[dir="rtl"] & {
float: right;
}
img {
display: block;
}
&.slick-loading img {
display: none;
}
display: none;
&.dragging img {
pointer-events: none;
}
.slick-initialized & {
display: block;
}
.slick-loading & {
visibility: hidden;
}
.slick-vertical & {
display: block;
height: auto;
border: 1px solid transparent;
}
}
.slick-arrow.slick-hidden {
display: none;
}
wp-content/themes/someori/library/less/someori.less
View file @
5e2f6859
@import "slick-theme.less";
@import "slick.less";
.span6.full {
margin: 0;
width: 50%;
...
...
@@ -85,7 +89,7 @@ footer {
.right-block-text {
margin-top: 109px;
overflow
: scroll
;
overflow
-y: auto
;
background: #ffffff;
padding: 25px 0;
font-size: 13px;
...
...
@@ -105,4 +109,31 @@ footer {
.translate-text {
color: #949494;
}
.fabricants {
.block-fabricant {
position: relative;
margin-top: 209px;
}
.fabricant-name {
text-transform: uppercase;
font-weight: bold;
letter-spacing: 2px;
}
.fabricant-speciality {
padding-bottom: 30px;
}
.nav-fabricant {
position: absolute;
bottom: 50px;
span {
cursor: pointer;
}
}
}
\ No newline at end of file
wp-content/themes/someori/library/someori.php
View file @
5e2f6859
...
...
@@ -14,15 +14,25 @@ function someori_fabricants() {
$fabricant_text_1
=
get_sub_field
(
'fabricant_text_1'
);
$fabricant_text_2
=
get_sub_field
(
'fabricant_text_2'
);
?>
<div
class=
"fabricant-item row"
>
<div
class=
"span6 full cover-bg"
style=
"height: calc(100vh);"
></div>
<div
class=
"span6 full cover-bg"
style=
"
background-image: url(
<?=
esc_url
(
$fabricant_photo
);
?>
);
height: calc(100vh);"
></div>
<div
class=
"span6 full full-screen-height exposition-block"
>
<?=
get_template_part
(
'template'
,
'menu'
);
?>
<div
class=
"row-fluid right-block-text
"
style=
"height: calc(100vh - 1
09px);"
>
<div
class=
"row-fluid right-block-text
block-fabricant"
style=
"height: calc(100vh - 2
09px);"
>
<div
class=
"row-fluid"
>
Test
<h2
class=
"fabricant-name"
>
<?=
$fabricant_name
?>
</h2>
</div>
<div
class=
"row-fluid"
>
test
<div
class=
"fabricant-speciality"
>
<?=
$fabricant_speciality
?>
</div>
</div>
<div
class=
"row-fluid"
>
<p>
<?=
$fabricant_text_1
?>
</p>
</div>
<div
class=
"row-fluid translate-text"
>
<p>
<?=
$fabricant_text_2
?>
</p>
</div>
<div
class=
"row-fluid nav-fabricant"
>
<div
class=
"pull-left"
><span
class=
"goto-prev"
>
Previous
</span></div>
<div
class=
"pull-right"
><span
class=
"goto-next"
>
Next
</span></div>
</div>
</div>
</div>
...
...
wp-content/themes/someori/template-fabricant.php
View file @
5e2f6859
...
...
@@ -10,7 +10,7 @@
<
div
id
=
"inner-content"
>
<
main
id
=
"main"
role
=
"main"
itemscope
itemprop
=
"mainContentOfPage"
itemtype
=
"http://schema.org/Blog"
>
<
section
class
="
row
-
fluid
">
<?php someori_fabricants() ?>
</section>
</main>
</div>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment