Skip to content
GitLab
Explore
Sign in
Commits on Source (3)
Try a different fix for threattocreativity warnings
· 125a429e
ale
authored
Oct 13, 2023
125a429e
Fix add_filter() warning
· 49f7f116
ale
authored
Oct 13, 2023
49f7f116
Fix unknown variable warning
· 1b568a6b
ale
authored
Oct 13, 2023
1b568a6b
Hide whitespace changes
Inline
Side-by-side
inove/single.php
View file @
1b568a6b
...
...
@@ -15,7 +15,7 @@
<span
class=
"date"
>
<?php
the_time
(
__
(
'F jS, Y'
,
'inove'
))
?>
</span>
<?php
if
(
$options
[
'author'
])
:
?>
<span
class=
"author"
>
<?php
the_author_posts_link
();
?>
</span>
<?php
endif
;
?>
<?php
edit_post_link
(
__
(
'Edit'
,
'inove'
),
'<span class="editpost">'
,
'</span>'
);
?>
<?php
if
(
$comments
||
comments_open
())
:
?>
<?php
if
(
comments_open
())
:
?>
<span
class=
"addcomment"
><a
href=
"#respond"
>
<?php
_e
(
'Leave a comment'
,
'inove'
);
?>
</a></span>
<span
class=
"comments"
><a
href=
"#comments"
>
<?php
_e
(
'Go to comments'
,
'inove'
);
?>
</a></span>
<?php
endif
;
?>
...
...
plaintxtblog/functions.php
View file @
1b568a6b
...
...
@@ -701,7 +701,7 @@ add_filter('archive_meta', 'convert_smilies');
add_filter
(
'archive_meta'
,
'convert_chars'
);
add_filter
(
'archive_meta'
,
'wpautop'
);
add_shortcode
(
'gallery'
,
'plaintxtblog_gallery'
,
$attr
);
add_shortcode
(
'gallery'
,
'plaintxtblog_gallery'
);
// Readies for translation.
load_theme_textdomain
(
'plaintxtblog'
);
...
...
threattocreativity/style-colors.php
View file @
1b568a6b
...
...
@@ -4,8 +4,13 @@
require
(
get_template_directory
()
.
'/color-arrays.php'
);
// GET THEME OPTION FOR COLORS
$options
=
get_option
(
'threattocreativity_theme_options'
,
array
()
);
$options
=
get_option
(
'threattocreativity_theme_options'
);
if
(
$options
===
false
)
{
$colorswitch
=
'crayola'
;
$customoption
=
'no'
;
$ccolors
=
''
;
}
else
{
// PASS THEME OPTION FOR COLOR INTO VAR
$colorswitch
=
$options
[
'colorscheme'
];
...
...
@@ -14,7 +19,7 @@
// WHAT ARE THE CUSTOM COLORS?
$ccolors
=
$options
[
'customcolors'
];
}
//LOOKS FOR CUSTOM SETTING AND USES IT IF SET
if
(
$customoption
==
"yes"
)
{
...
...