diff --git a/cl-theme/static/css/style.css b/cl-theme/static/css/style.css index 2769a13..f300ff2 100644 --- a/cl-theme/static/css/style.css +++ b/cl-theme/static/css/style.css @@ -2,7 +2,7 @@ * bulma css framework (github.com/jgthms | bulma.io) * Author: jeremy thomas * Author: jesus e. - * Version: 1.0.5 + * Version: 1.0.5a * Licensed under MIT (https://github.com/jgthms/bulma/blob/master/LICENSE) */ /* basic formatting changes (mostly to cater for darker colours) */ @@ -529,6 +529,10 @@ h2 > a:hover { box-shadow: 0 1px 3px rgba(10, 10, 10, 0.1); } +.warning-sp { + display: none; +} + .comments-content { background-color: #161c1c; padding-bottom: 10px; diff --git a/cl-theme/templates/base.html b/cl-theme/templates/base.html index 589920a..2e10df6 100644 --- a/cl-theme/templates/base.html +++ b/cl-theme/templates/base.html @@ -45,7 +45,7 @@ - + diff --git a/cl-theme/templates/comments.html b/cl-theme/templates/comments.html index 92f1e6d..725447a 100644 --- a/cl-theme/templates/comments.html +++ b/cl-theme/templates/comments.html @@ -65,6 +65,13 @@ +
+
+ +
+ +
+
diff --git a/content/vendor/form-comments/commentsubmit.php b/content/vendor/form-comments/commentsubmit.php index e10f72b..d2be0e0 100644 --- a/content/vendor/form-comments/commentsubmit.php +++ b/content/vendor/form-comments/commentsubmit.php @@ -16,54 +16,56 @@ function seourl($string) { return $string; } -// Check for empty fields -if(empty($_POST['name']) || - empty($_POST['comment']) || - empty($_POST['email']) || - !filter_var($_POST['email'], FILTER_VALIDATE_EMAIL) -) -{ - // Rediret to current post - header( "Location: {$return_url}"); -} else { - - $DATE_FORMAT = "Y-m-d H:i:s"; - $publish = date($DATE_FORMAT); - - $name = strip_tags(utf8_decode(utf8_encode($_POST['name']))); - $link = strip_tags(htmlspecialchars($_POST['link'])); - $email_address = strip_tags(htmlspecialchars($_POST['email'])); - $comment = utf8_decode($_POST['comment']); - - // article - $postID = str_replace('/','',$post_id); - - // web-site - if (!empty($link)) { - $web = "Web: {$link}"; +// if the url field is empty +if(isset($_POST['url']) && $_POST['url'] == '') { + // Check for empty fields + if(empty($_POST['name']) || + empty($_POST['comment']) || + empty($_POST['email']) || + !filter_var($_POST['email'], FILTER_VALIDATE_EMAIL) + ) + { + // Rediret to current post + header( "Location: {$return_url}"); } else { - $web = NULL; - } - //slug - $nslug = seourl($name); - $fslug = date("Ymd-H:i:s"); - $slug = "$nslug-$fslug"; + $DATE_FORMAT = "Y-m-d H:i:s"; + $publish = date($DATE_FORMAT); - // Create the email and send the message - // Add your email address - $local_address = "heckyel@riseup.net"; - $recipients = array( - $local_address, - $email_address, - // more emails - ); - $to = implode(',', $recipients); - $email_subject = <<