mirror of
https://github.com/danpros/htmly.git
synced 2026-04-18 19:46:21 +05:30
Fix bugs
This commit is contained in:
parent
8d4eb88f32
commit
0df2146ce1
6 changed files with 8 additions and 8 deletions
|
|
@ -17,7 +17,7 @@
|
|||
}
|
||||
} ?>" name="password"/><br><br>
|
||||
<input type="hidden" name="csrf_token" value="<?php echo get_csrf() ?>">
|
||||
<?php if (config("google.reCaptcha")): ?>
|
||||
<?php if (config('google.reCaptcha') === 'true'): ?>
|
||||
<script src='https://www.google.com/recaptcha/api.js'></script>
|
||||
<div class="g-recaptcha" data-sitekey="<?php echo config("google.reCaptcha.public"); ?>"></div>
|
||||
<br/>
|
||||
|
|
|
|||
|
|
@ -347,7 +347,7 @@ function get_posts($posts, $page = 1, $perpage = 0)
|
|||
// Get the contents and convert it to HTML
|
||||
$post->body = MarkdownExtra::defaultTransform(remove_html_comments($content));
|
||||
|
||||
if (config("views.counter")) {
|
||||
if (config('views.counter') == 'true') {
|
||||
$post->views = get_views($post->file);
|
||||
}
|
||||
|
||||
|
|
@ -737,7 +737,7 @@ function get_static_post($static)
|
|||
$post->title = get_content_tag('t', $content, $static);
|
||||
$post->body = MarkdownExtra::defaultTransform(remove_html_comments($content));
|
||||
|
||||
if (config("views.counter")) {
|
||||
if (config('views.counter') == 'true') {
|
||||
$post->views = get_views($post->file);
|
||||
}
|
||||
|
||||
|
|
@ -2480,7 +2480,7 @@ function remove_html_comments($content)
|
|||
// Google recaptcha
|
||||
function isCaptcha($reCaptchaResponse)
|
||||
{
|
||||
if (!config("google.reCaptcha")) {
|
||||
if (config('google.reCaptcha') == 'false') {
|
||||
return true;
|
||||
}
|
||||
$url = "https://www.google.com/recaptcha/api/siteverify";
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<?php if (!empty($breadcrumb)): ?>
|
||||
<div class="breadcrumb"><?php echo $breadcrumb ?></div>
|
||||
<?php endif; ?>
|
||||
<?php if (config('category.info')):?>
|
||||
<?php if (config('category.info') === 'true'):?>
|
||||
<?php if (!empty($category)): ?>
|
||||
<div class="section">
|
||||
<div class="section-inner">
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<?php if (!empty($breadcrumb)): ?>
|
||||
<div class="breadcrumb"><?php echo $breadcrumb ?></div>
|
||||
<?php endif; ?>
|
||||
<?php if (config('category.info')):?>
|
||||
<?php if (config('category.info') === 'true'):?>
|
||||
<?php if (!empty($category)): ?>
|
||||
<div class="category">
|
||||
<h2 class="category-title"><?php echo $category->title;?></h2>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<?php if (!empty($breadcrumb)): ?>
|
||||
<div class="breadcrumb"><?php echo $breadcrumb ?></div>
|
||||
<?php endif; ?>
|
||||
<?php if (config('category.info')):?>
|
||||
<?php if (config('category.info') === 'true'):?>
|
||||
<?php if (!empty($category)): ?>
|
||||
<div class="category">
|
||||
<h2 class="category-title"><?php echo $category->title;?></h2>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<?php if (!empty($breadcrumb)): ?>
|
||||
<div class="breadcrumb"><?php echo $breadcrumb ?></div>
|
||||
<?php endif; ?>
|
||||
<?php if (config('category.info')):?>
|
||||
<?php if (config('category.info') === 'true'):?>
|
||||
<?php if (!empty($category)): ?>
|
||||
<div class="category">
|
||||
<h2 class="category-title"><?php echo $category->title;?></h2>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue