Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
themes-misc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Noblogs
themes-misc
Commits
88467ec2
Commit
88467ec2
authored
2 years ago
by
ale
Browse files
Options
Downloads
Patches
Plain Diff
Fix warnings
parent
bb959fae
No related branches found
Branches containing commit
Tags
v0.1.14
Tags containing commit
No related merge requests found
Pipeline
#45067
passed
2 years ago
Stage: release
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
monotone/functions.php
+8
-5
8 additions, 5 deletions
monotone/functions.php
with
8 additions
and
5 deletions
monotone/functions.php
+
8
−
5
View file @
88467ec2
...
...
@@ -150,16 +150,16 @@ function the_thumbnail() {
}
function
get_all_colors
(
$post
)
{
include_once
(
"csscolor.php"
);
//pull from DB
$
base
->
bg
=
get_post_meta
(
$post
->
ID
,
'image_colors_bg'
,
true
);
$
base
->
fg
=
get_post_meta
(
$post
->
ID
,
'image_colors_fg'
,
true
);
$bg
=
get_post_meta
(
$post
->
ID
,
'image_colors_bg'
,
true
);
$fg
=
get_post_meta
(
$post
->
ID
,
'image_colors_fg'
,
true
);
// show return variable if full
if
(
$
base
->
bg
!=
''
&&
$
base
->
fg
!=
''
)
{
return
$base
;
if
(
$bg
!=
''
&&
$fg
!=
''
)
{
return
new
CSS_Color
(
$bg
,
$fg
)
;
}
else
{
// else, get the colors
include_once
(
"csscolor.php"
);
$base
=
new
CSS_Color
(
base_color
(
$post
));
//set bg
$bg
=
$base
->
bg
;
...
...
@@ -227,6 +227,9 @@ function print_stylesheet() {
function
base_color
(
$post
)
{
$url
=
get_post_meta
(
$post
->
ID
,
'image_url'
,
true
);
if
(
!
$url
)
{
return
rgbhex
(
0
,
0
,
0
);
}
// get the image name
$imgname
=
trim
(
$url
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment