Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
Laniakea
Overview
Overview
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Wordpress
Laniakea
Commits
9db597ac
Commit
9db597ac
authored
Apr 03, 2024
by
Simone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feature logo mobile max width
parent
4b9a1a3a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
3 deletions
+19
-3
logo.php
laniakea/core/admin/options/logo.php
+6
-0
dynamic-styles.php
laniakea/core/dynamic-styles.php
+13
-3
No files found.
laniakea/core/admin/options/logo.php
View file @
9db597ac
...
...
@@ -72,4 +72,9 @@
<div
class=
"field-group"
>
<h3>
Larghezza Massima Logo (px)
</h3>
<?php
laniakea_input
(
'logo_maxwidth'
,
'number'
);
?>
</div>
<div
class=
"field-group"
>
<h3>
Larghezza Massima Logo Mobile(px)
</h3>
<?php
laniakea_input
(
'logo_maxwidth_mobile'
,
'number'
);
?>
</div>
\ No newline at end of file
laniakea/core/dynamic-styles.php
View file @
9db597ac
...
...
@@ -170,9 +170,18 @@ body.archive.category #archive-content main{
<?php
endif
;
endforeach
;
?>
<?php
if
(
is_page
())
:
global
$post
;
?>
.page .has-image:before{
<?php
if
(
is_page
())
:
global
$post
;
?>
.page .has-image:before{
background-color:
<?php
echo
get_post_meta
(
$post
->
ID
,
'laniakea_header_bg'
,
true
);
?>
;
}
<?php
endif
;
?>
<?php
if
(
!
empty
(
laniakea_option
(
'logo_break'
)))
:
?>
@media (max-width:
<?php
echo
laniakea_option
(
'logo_break'
)
?>
px){
#main-header #logo{
max-width :
<?php
echo
laniakea_option
(
'logo_maxwidth_mobile'
,
100
)
?>
px;
}
}
<?php
endif
;
?>
\ 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