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
a1ddb1e7
Commit
a1ddb1e7
authored
Feb 03, 2017
by
John Punzalan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add homepage Some & Ori
parent
fe2435d9
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
150 additions
and
32 deletions
+150
-32
functions.php
wp-content/themes/someori/functions.php
+11
-0
header.php
wp-content/themes/someori/header.php
+1
-31
bones.php
wp-content/themes/someori/library/bones.php
+1
-1
someori.css
wp-content/themes/someori/library/css/someori.css
+32
-0
someori.less
wp-content/themes/someori/library/less/someori.less
+43
-0
template-home.php
wp-content/themes/someori/template-home.php
+31
-0
template-menu.php
wp-content/themes/someori/template-menu.php
+31
-0
No files found.
wp-content/themes/someori/functions.php
View file @
a1ddb1e7
...
...
@@ -244,4 +244,15 @@ function bones_fonts() {
add_action
(
'wp_enqueue_scripts'
,
'bones_fonts'
);
// Ajoute le CSS et le JavaScript pour utiliser Bootstrap
function
enqueue_bootstrap
()
{
wp_enqueue_style
(
'bootstrap-css'
,
get_stylesheet_directory_uri
()
.
'/library/bootstrap/css/bootstrap.min.css'
);
wp_enqueue_style
(
'someori-css'
,
get_stylesheet_directory_uri
()
.
'/library/css/style.css'
);
// Ces deux lignes ne sont utiles que si vous utilisez les fonctionnalites JavaScript
wp_enqueue_script
(
'jquery'
);
wp_enqueue_script
(
'bootstrap-js'
,
get_stylesheet_directory_uri
()
.
'/library/bootstrap/js/bootstrap.min.js'
,
'jquery'
);
}
add_action
(
'wp_enqueue_scripts'
,
'enqueue_bootstrap'
);
/* DON'T DELETE THIS CLOSING TAG */
?>
wp-content/themes/someori/header.php
View file @
a1ddb1e7
...
...
@@ -44,34 +44,4 @@
<div
id=
"container"
>
<header
class=
"header"
role=
"banner"
itemscope
itemtype=
"http://schema.org/WPHeader"
>
<div
id=
"inner-header"
class=
"wrap cf"
>
<?php
// to use a image just replace the bloginfo('name') with your img src and remove the surrounding <p> ?>
<
p
id
=
"logo"
class
="
h1
" itemscope itemtype="
http
://
schema
.
org
/
Organization
"><a href="
<?
php
echo
home_url
();
?>
" rel="nofollow">
<?php
bloginfo
(
'name'
);
?>
</a></p>
<?php
// if you'd like to use the site description you can un-comment it below ?>
<?
php
// bloginfo('description'); ?>
<
nav
role
=
"navigation"
itemscope
itemtype
=
"http://schema.org/SiteNavigationElement"
>
<?
php
wp_nav_menu
(
array
(
'container'
=>
false
,
// remove nav container
'container_class'
=>
'menu cf'
,
// class of container (should you choose to use it)
'menu'
=>
__
(
'The Main Menu'
,
'bonestheme'
),
// nav name
'menu_class'
=>
'nav top-nav cf'
,
// adding custom nav class
'theme_location'
=>
'main-nav'
,
// where it's located in the theme
'before'
=>
''
,
// before the menu
'after'
=>
''
,
// after the menu
'link_before'
=>
''
,
// before each link
'link_after'
=>
''
,
// after each link
'depth'
=>
0
,
// limit the depth of the nav
'fallback_cb'
=>
''
// fallback function (if there is one)
));
?>
</nav>
</div>
</header>
wp-content/themes/someori/library/bones.php
View file @
a1ddb1e7
...
...
@@ -128,7 +128,7 @@ function bones_scripts_and_styles() {
wp_register_script
(
'bones-modernizr'
,
get_stylesheet_directory_uri
()
.
'/library/js/libs/modernizr.custom.min.js'
,
array
(),
'2.5.3'
,
false
);
// register main stylesheet
wp_register_style
(
'bones-stylesheet'
,
get_stylesheet_directory_uri
()
.
'/library/css/s
tyle
.css'
,
array
(),
''
,
'all'
);
wp_register_style
(
'bones-stylesheet'
,
get_stylesheet_directory_uri
()
.
'/library/css/s
omeori
.css'
,
array
(),
''
,
'all'
);
// ie-only style sheet
wp_register_style
(
'bones-ie-only'
,
get_stylesheet_directory_uri
()
.
'/library/css/ie.css'
,
array
(),
''
);
...
...
wp-content/themes/someori/library/css/someori.css
0 → 100644
View file @
a1ddb1e7
.span6.full
{
margin
:
0
;
width
:
50%
;
}
#content
{
margin-top
:
0
!important
;
}
footer
{
display
:
none
!important
;
}
.header
{
position
:
fixed
;
padding
:
15px
;
background
:
none
;
color
:
#0e0e0e
;
top
:
50px
;
}
.full-screen-height
{
height
:
100vh
;
}
.vertical-center
{
position
:
relative
;
top
:
50%
;
-webkit-transform
:
translateY
(
-50%
);
transform
:
translateY
(
-50%
);
}
.exposition-block
>
div
img
{
width
:
65%
;
}
#logo
a
{
color
:
#0e0e0e
;
}
wp-content/themes/someori/library/less/someori.less
0 → 100644
View file @
a1ddb1e7
.span6.full {
margin: 0;
width: 50%;
}
#content {
margin-top: 0 !important;
}
footer {
display: none !important;
}
.header {
position: fixed;
padding: 15px;
background: none;
color: #0e0e0e;
top: 50px;
}
.full-screen-height {
height: 100vh;
}
.vertical-center {
position: relative;
top: 50%;
-webkit-transform: translateY(-50%);
transform: translateY(-50%);
}
.exposition-block {
> div {
img {
width: 65%;
}
}
}
#logo a {
color: #0e0e0e;
}
\ No newline at end of file
wp-content/themes/someori/template-home.php
0 → 100644
View file @
a1ddb1e7
<?php
/*
* Template Name: Home Template
*
*/
?>
<?php
$left_image
=
get_field
(
'image_left_block'
);
?>
<?php
get_header
();
// Header ?>
<
div
id
=
"content"
>
<
div
id
=
"inner-content"
>
<
main
id
=
"main"
role
=
"main"
itemscope
itemprop
=
"mainContentOfPage"
itemtype
=
"http://schema.org/Blog"
>
<
section
class
="
row
-
fluid
">
<!-- Image Left Block -->
<div class="
span6
full
" style="
background
-
image
:
url
(
<?=
esc_url
(
get_field
(
'image_left_block'
));
?>
); height: calc(100vh);">
</div>
<div
class=
"span6 full full-screen-height exposition-block"
>
<?=
get_template_part
(
'template'
,
'menu'
);
?>
<div
class=
"vertical-center text-center"
>
<img
src=
"
<?=
esc_url
(
get_field
(
'exposition_logo'
));
?>
"
/>
</div>
</div>
</section>
</main>
</div>
</div>
<?php
get_footer
();
// Footer ?>
\ No newline at end of file
wp-content/themes/someori/template-menu.php
0 → 100644
View file @
a1ddb1e7
<header
class=
"header"
role=
"banner"
itemscope
itemtype=
"http://schema.org/WPHeader"
>
<div
id=
"inner-header"
class=
"wrap cf"
>
<?php
// to use a image just replace the bloginfo('name') with your img src and remove the surrounding <p> ?>
<
p
id
=
"logo"
class
="
h1
" itemscope itemtype="
http
://
schema
.
org
/
Organization
"><a href="
<?
php
echo
home_url
();
?>
" rel="nofollow">
<?php
bloginfo
(
'name'
);
?>
</a></p>
<?php
// if you'd like to use the site description you can un-comment it below ?>
<?
php
// bloginfo('description'); ?>
<
nav
role
=
"navigation"
itemscope
itemtype
=
"http://schema.org/SiteNavigationElement"
>
<?
php
wp_nav_menu
(
array
(
'container'
=>
false
,
// remove nav container
'container_class'
=>
'menu cf'
,
// class of container (should you choose to use it)
'menu'
=>
__
(
'The Main Menu'
,
'bonestheme'
),
// nav name
'menu_class'
=>
'nav top-nav cf'
,
// adding custom nav class
'theme_location'
=>
'main-nav'
,
// where it's located in the theme
'before'
=>
''
,
// before the menu
'after'
=>
''
,
// after the menu
'link_before'
=>
''
,
// before each link
'link_after'
=>
''
,
// after each link
'depth'
=>
0
,
// limit the depth of the nav
'fallback_cb'
=>
''
// fallback function (if there is one)
));
?>
</nav>
</div>
</header>
\ No newline at end of file
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