Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
creepy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Petr Balga
creepy
Commits
a3945ffc
Commit
a3945ffc
authored
Jan 29, 2020
by
Petr Balga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed gulpfile.js, started top-up template
parent
13b1d7ae
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
33 additions
and
310 deletions
+33
-310
gulpfile.js
gulpfile.js
+3
-4
wp-content/themes/CreepyTheme/css/style.css
wp-content/themes/CreepyTheme/css/style.css
+5
-0
wp-content/themes/CreepyTheme/najso.jpg
wp-content/themes/CreepyTheme/najso.jpg
+0
-0
wp-content/themes/CreepyTheme/najso.psd
wp-content/themes/CreepyTheme/najso.psd
+0
-0
wp-content/themes/CreepyTheme/page-templates/basic.php
wp-content/themes/CreepyTheme/page-templates/basic.php
+0
-90
wp-content/themes/CreepyTheme/page-templates/download.php
wp-content/themes/CreepyTheme/page-templates/download.php
+0
-33
wp-content/themes/CreepyTheme/page-templates/fields.php
wp-content/themes/CreepyTheme/page-templates/fields.php
+0
-133
wp-content/themes/CreepyTheme/page-templates/team.php
wp-content/themes/CreepyTheme/page-templates/team.php
+0
-47
wp-content/themes/CreepyTheme/page-templates/topup.php
wp-content/themes/CreepyTheme/page-templates/topup.php
+21
-0
wp-content/themes/CreepyTheme/scss/style.scss
wp-content/themes/CreepyTheme/scss/style.scss
+4
-3
No files found.
gulpfile.js
View file @
a3945ffc
...
...
@@ -4,18 +4,17 @@ var autoprefixer = require('gulp-autoprefixer');
var
browserSync
=
require
(
'
browser-sync
'
).
create
();
gulp
.
task
(
'
sass
'
,
function
()
{
return
gulp
.
src
(
'
./scss/*.scss
'
)
return
gulp
.
src
(
'
./
wp-content/themes/CreepyTheme/
scss/*.scss
'
)
.
pipe
(
sass
())
.
pipe
(
gulp
.
dest
(
'
./css
'
));
.
pipe
(
gulp
.
dest
(
'
./
wp-content/themes/CreepyTheme/
css
'
));
});
gulp
.
task
(
'
watch
'
,
function
(){
browserSync
.
init
({
proxy
:
"
localhost/creepy/
"
})
gulp
.
watch
(
'
./wp-content/themes/CreepyTheme/scss/*.scss
'
)
//D:\Programs\xampp\htdocs\creepy\wp-content\themes\CreepyTheme
gulp
.
watch
(
'
./wp-content/themes/CreepyTheme/scss/*.scss
'
)
.
on
(
'
change
'
,
function
(
path
,
stats
)
{
return
gulp
.
src
(
'
./wp-content/themes/CreepyTheme/scss/*.scss
'
)
.
pipe
(
sass
())
...
...
wp-content/themes/CreepyTheme/css/style.css
View file @
a3945ffc
...
...
@@ -169,6 +169,11 @@ body, html {
text-transform
:
uppercase
;
float
:
right
;
}
.top-up
{
background-color
:
#ffd300
;
width
:
100%
;
height
:
100%
;
}
/* SpodnΓ menu */
footer
{
position
:
absolute
;
...
...
wp-content/themes/CreepyTheme/najso.jpg
deleted
100644 β 0
View file @
13b1d7ae
141 KB
wp-content/themes/CreepyTheme/najso.psd
deleted
100644 β 0
View file @
13b1d7ae
File deleted
wp-content/themes/CreepyTheme/page-templates/basic.php
deleted
100644 β 0
View file @
13b1d7ae
<?php
/**
* Template Name: Basic template
*
* @package Creepy
* @subpackage Creepy Theme
* @since Creepy Template 1.0
*/
?>
<?php
get_header
();
?>
<?php
global
$wp_query
;
$wp_query
->
the_post
();
?>
<main
class=
"global-page global-bottom"
>
<div
class=
"grid-container"
>
<h1
class=
"underline"
>
<?php
echo
the_title
();
?>
</h1>
<div
class=
"basic-page"
>
<div
class=
"grid-x grid-margin-x"
>
<div
class=
"cell medium-4"
>
<button
class=
"button aside-button"
data-open-elem=
"page-aside"
>
DalΕ‘Γ strΓ‘nky
</button>
<aside
class=
"page-aside"
id=
"page-aside"
>
<button
class=
"close"
data-open-elem=
"page-aside"
><img
src=
"
<?php
echo
get_template_directory_uri
();
?>
/assets/icons/cross.svg"
alt=
"KΕΓΕΎek"
></button>
<ul
class=
"aside-menu"
>
<li><a
class=
"active"
href=
"#"
>
<?php
the_title
()
?>
</a></li>
<?php
$args
=
array
(
'numberposts'
=>
8
,
'offset'
=>
0
,
'orderby'
=>
'post_date'
,
'order'
=>
'DESC'
,
'include'
=>
''
,
'exclude'
=>
get_the_ID
(),
'meta_key'
=>
''
,
'meta_value'
=>
''
,
'post_type'
=>
'page'
,
'post_status'
=>
'publish'
,
'suppress_filters'
=>
true
);
$recent_posts
=
wp_get_recent_posts
(
$args
,
ARRAY_A
);
foreach
(
$recent_posts
as
$postname
)
{
?>
<?php
//print_r($postname); ?>
<
li
><
a
href
=
"<?php echo get_the_permalink(
$postname['ID']
) ?>"
><?
php
echo
get_the_title
(
$postname
[
'ID'
])
?>
</a></li>
<?php
}
?>
</ul>
</aside>
</div>
<div
class=
"cell medium-8"
>
<?php
echo
the_content
();
?>
<div
class=
"files grid-x"
>
<?php
foreach
(
get_attached_media
(
''
)
as
$file
){
?>
<?php
$filetype
=
$file
->
post_mime_type
;
?>
<div
class=
"cell item"
>
<div
class=
"grid-x grid-margin-x"
>
<div
class=
"cell shrink"
>
<div
class=
"round"
>
<?php
if
(
strpos
(
$filetype
,
'pdf'
))
{
echo
'PDF'
;}
else
if
(
strpos
(
$filetype
,
'text'
)
!==
false
)
{
echo
'TXT'
;}
else
if
(
strpos
(
$filetype
,
'rar'
)
!==
false
)
{
echo
'RAR'
;}
else
if
(
strpos
(
$filetype
,
'zip'
)
!==
false
)
{
echo
'ZIP'
;}
else
if
(
strpos
(
$filetype
,
'mp4'
)
!==
false
)
{
echo
'MP4'
;}
else
if
(
strpos
(
$filetype
,
'png'
)
!==
false
)
{
echo
'PNG'
;}
else
if
(
strpos
(
$filetype
,
'mpeg'
)
!==
false
)
{
echo
'MPEG'
;}
else
if
(
strpos
(
$filetype
,
'mp3'
)
!==
false
)
{
echo
'MP3'
;}
else
if
(
strpos
(
$filetype
,
'doc'
)
!==
false
)
{
echo
'doc'
;}
else
if
(
strpos
(
$filetype
,
'wav'
)
!==
false
)
{
echo
'WAV'
;}
else
if
(
strpos
(
$filetype
,
'gif'
)
!==
false
)
{
echo
'GIF'
;}
else
if
(
strpos
(
$filetype
,
'psd'
)
!==
false
)
{
echo
'PSD'
;}
else
if
(
strpos
(
$filetype
,
'svg'
)
!==
false
)
{
echo
'SVG'
;}
else
if
(
strpos
(
$filetype
,
'pptx'
)
!==
false
)
{
echo
'PPTX'
;}
?>
</div>
</div>
<div
class=
"cell auto"
><span>
<?php
echo
$file
->
post_title
;
?>
</span></div>
<div
class=
"cell shrink"
><a
class=
"button primary"
href=
"
<?php
echo
$file
->
guid
;
?>
"
><span>
StΓ‘hnout
</span></a></div>
</div>
</div>
<?php
}
?>
</div>
</div>
</div>
</div>
</div>
</main>
<?php
get_footer
();
?>
\ No newline at end of file
wp-content/themes/CreepyTheme/page-templates/download.php
deleted
100644 β 0
View file @
13b1d7ae
<?php
/**
* Template Name: Download template
*
* @package Creepy
* @subpackage Creepy Theme
* @since Creepy Template 1.0
*/
?>
<?php
get_header
();
?>
<main
class=
"global-page global-bottom"
>
<div
class=
"grid-container"
>
<h1
class=
"underline"
>
<?php
echo
$post
->
post_title
;
?>
</h1>
<p
class=
"perex"
>
<?php
$content
=
apply_filters
(
'the_content'
,
$post
->
post_content
);
echo
$content
;
?>
</p>
<div
class=
"download-list"
>
<div
class=
"grid-x grid-margin-x large-up-4 medium-up-2"
>
<?php
foreach
(
get_attached_media
(
'application'
,
$post
->
ID
)
as
$file
)
{
?>
<div
class=
"cell item"
><a
class=
"basic"
href=
"
<?php
echo
$file
->
guid
;
?>
"
><img
src=
"
<?php
echo
get_template_directory_uri
();
?>
/assets/icons/document.svg"
alt=
"Dokument"
>
<h3>
<?php
echo
$file
->
post_title
;
?>
</h3></a></div>
<?php
}
?>
</div>
</div>
</div>
</main>
<?php
get_footer
();
?>
\ No newline at end of file
wp-content/themes/CreepyTheme/page-templates/fields.php
deleted
100644 β 0
View file @
13b1d7ae
<?php
/**
* Template Name: Fields template
*
* @package Creepy
* @subpackage Creepy Theme
* @since Creepy Template 1.0
*/
?>
<?php
get_header
();
?>
<?php
global
$wp_query
;
$wp_query
->
the_post
();
?>
<main
class=
"global-page global-bottom"
>
<div
class=
"grid-container"
>
<h1
class=
"underline"
>
<?php
echo
the_title
();
?>
</h1>
<div
class=
"basic-page"
>
<div
class=
"grid-x grid-margin-x"
>
<div
class=
"cell medium-4"
>
<button
class=
"button aside-button"
data-open-elem=
"page-aside"
>
DalΕ‘Γ strΓ‘nky
</button>
<aside
class=
"page-aside"
id=
"page-aside"
>
<button
class=
"close"
data-open-elem=
"page-aside"
><img
src=
"
<?php
echo
get_template_directory_uri
();
?>
/assets/icons/cross.svg"
alt=
"KΕΓΕΎek"
></button>
<ul
class=
"aside-menu"
>
<li><a
class=
"active"
href=
"#"
>
<?php
the_title
()
?>
</a></li>
<?php
$args
=
array
(
'numberposts'
=>
8
,
'offset'
=>
0
,
'orderby'
=>
'post_date'
,
'order'
=>
'DESC'
,
'include'
=>
''
,
'exclude'
=>
get_the_ID
(),
'meta_key'
=>
''
,
'meta_value'
=>
''
,
'post_type'
=>
'page'
,
'post_status'
=>
'publish'
,
'suppress_filters'
=>
true
);
$recent_posts
=
wp_get_recent_posts
(
$args
,
ARRAY_A
);
foreach
(
$recent_posts
as
$postname
)
{
?>
<?php
//print_r($postname); ?>
<
li
><
a
href
=
"<?php echo get_the_permalink(
$postname['ID']
) ?>"
><?
php
echo
get_the_title
(
$postname
[
'ID'
])
?>
</a></li>
<?php
}
?>
</ul>
</aside>
</div>
<div
class=
"cell medium-8"
>
<?php
echo
the_content
();
?>
<div
class=
"files grid-x"
>
<?php
foreach
(
get_attached_media
(
''
)
as
$file
){
?>
<?php
$filetype
=
$file
->
post_mime_type
;
?>
<div
class=
"cell item"
>
<div
class=
"grid-x grid-margin-x"
>
<div
class=
"cell shrink"
>
<div
class=
"round"
>
<?php
if
(
strpos
(
$filetype
,
'pdf'
))
{
echo
'PDF'
;}
else
if
(
strpos
(
$filetype
,
'text'
)
!==
false
)
{
echo
'TXT'
;}
else
if
(
strpos
(
$filetype
,
'rar'
)
!==
false
)
{
echo
'RAR'
;}
else
if
(
strpos
(
$filetype
,
'zip'
)
!==
false
)
{
echo
'ZIP'
;}
else
if
(
strpos
(
$filetype
,
'mp4'
)
!==
false
)
{
echo
'MP4'
;}
else
if
(
strpos
(
$filetype
,
'png'
)
!==
false
)
{
echo
'PNG'
;}
else
if
(
strpos
(
$filetype
,
'mpeg'
)
!==
false
)
{
echo
'MPEG'
;}
else
if
(
strpos
(
$filetype
,
'mp3'
)
!==
false
)
{
echo
'MP3'
;}
else
if
(
strpos
(
$filetype
,
'doc'
)
!==
false
)
{
echo
'doc'
;}
else
if
(
strpos
(
$filetype
,
'wav'
)
!==
false
)
{
echo
'WAV'
;}
else
if
(
strpos
(
$filetype
,
'gif'
)
!==
false
)
{
echo
'GIF'
;}
else
if
(
strpos
(
$filetype
,
'psd'
)
!==
false
)
{
echo
'PSD'
;}
else
if
(
strpos
(
$filetype
,
'svg'
)
!==
false
)
{
echo
'SVG'
;}
else
if
(
strpos
(
$filetype
,
'pptx'
)
!==
false
)
{
echo
'PPTX'
;}
?>
</div>
</div>
<div
class=
"cell auto"
><span>
<?php
echo
$file
->
post_title
;
?>
</span></div>
<div
class=
"cell shrink"
><a
class=
"button primary"
href=
"
<?php
echo
$file
->
guid
;
?>
"
><span>
StΓ‘hnout
</span></a></div>
</div>
</div>
<?php
}
?>
</div>
</div>
<div
class=
"homepage-boxes global-bottom"
style=
"background-color: rgba(0,0,0,0)!important"
>
<div
class=
"grid-container"
>
<div
class=
"grid-x grid-margin-x large-up-3 medium-up-2"
>
<?php
/* ZamΔΕenΓ a pΕedmΔty */
$args
=
array
(
'numberposts'
=>
3
,
'offset'
=>
0
,
'category'
=>
10
,
'orderby'
=>
'post_date'
,
'order'
=>
'ASC'
,
'include'
=>
''
,
'exclude'
=>
''
,
'meta_key'
=>
''
,
'meta_value'
=>
''
,
'post_type'
=>
'post'
,
'post_status'
=>
'publish'
,
'suppress_filters'
=>
true
);
$zamereni
=
wp_get_recent_posts
(
$args
,
ARRAY_A
);
foreach
(
$zamereni
as
$post
)
{
?>
<div
class=
"cell item"
><a
class=
"basic"
href=
"
<?php
echo
get_the_permalink
(
$post
[
'ID'
]);
?>
"
>
<div
class=
"top"
>
<div
class=
"image-container"
><img
src=
"
<?php
echo
get_the_post_thumbnail_url
(
$post
[
'ID'
])
?>
"
alt=
"
<?php
echo
get_post_meta
(
chc_get_image_id
(
get_the_post_thumbnail_url
(
$post
[
'ID'
])),
'_wp_attachment_image_alt'
,
TRUE
);
?>
"
></div>
<div
class=
"text-container"
>
<h3>
<?php
echo
get_the_title
(
$post
[
'ID'
]);
?>
</h3>
</div>
</div>
<div
class=
"bottom"
>
<p>
<?php
echo
get_the_excerpt
(
$post
[
'ID'
]);
?>
</p>
</div>
<div
class=
"button-container"
>
<div
class=
"button secondary"
>
VΓce
</div>
</div></a></div>
<?php
}
?>
</div>
</div>
</div>
</div>
</div>
</div>
</main>
<?php
get_footer
();
?>
\ No newline at end of file
wp-content/themes/CreepyTheme/page-templates/team.php
deleted
100644 β 0
View file @
13b1d7ae
<?php
/**
* Template Name: Team template
*
* @package Creepy
* @subpackage Creepy Theme
* @since Creepy Template 1.0
*/
?>
<?php
get_header
();
?>
<main
class=
"global-page global-bottom"
>
<div
class=
"grid-container"
>
<h1
class=
"underline"
>
<?php
echo
$post
->
post_title
;
?>
</h1>
<p
class=
"perex"
>
<?php
$content
=
apply_filters
(
'the_content'
,
$post
->
post_content
);
echo
$content
;
?>
</p>
<div
class=
"team-list"
>
<div
class=
"grid-x grid-margin-x medium-up-2"
>
<?php
$ucitele
=
get_posts
(
array
(
'post_type'
=>
'team'
,
'orderby'
=>
'date'
,
'order'
=>
'ASC'
,
'numberposts'
=>
-
1
));
foreach
(
$ucitele
as
$ucitel
)
{
?>
<div
class=
"cell item"
>
<div
class=
"top"
>
<div
class=
"grid-x grid-margin-x"
>
<div
class=
"cell large-shrink"
>
<div
class=
"image"
style=
"background-image: url(
<?php
echo
get_the_post_thumbnail_url
(
$ucitel
->
ID
);
?>
)"
></div>
</div>
<div
class=
"cell large-auto text"
>
<h3>
<?php
echo
$ucitel
->
post_title
;
?>
</h3><a
class=
"basic"
href=
"mailto:
<?php
echo
the_field
(
'team_e-mail'
,
$ucitel
->
ID
);
?>
"
>
<?php
echo
the_field
(
'team_e-mail'
,
$ucitel
->
ID
);
?>
</a>
</div>
</div>
</div>
<hr>
<div
class=
"bottom"
>
<p>
<?php
echo
$ucitel
->
post_content
;
?>
</p>
</div>
</div>
<?php
}
?>
</div>
</div>
</div>
</main>
<?php
get_footer
();
?>
\ No newline at end of file
wp-content/themes/CreepyTheme/page-templates/topup.php
0 β 100644
View file @
a3945ffc
<?php
/**
* Template Name: Top-Up template
*
* @package Creepy
* @subpackage Creepy Theme
* @since Creepy Template 1.0
*/
?>
<?php
get_header
();
?>
<!-- div container opened in header.php -->
<div
class=
'top-up'
>
</div>
<!-- div container closed in footer.php -->
<?php
get_footer
();
?>
\ No newline at end of file
wp-content/themes/CreepyTheme/scss/style.scss
View file @
a3945ffc
...
...
@@ -208,9 +208,10 @@ body, html {
}
}
.topup
{
.top-up
{
background-color
:
$yellow
;
width
:
100%
;
height
:
100%
;
}
...
...
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