improved form comments
This commit is contained in:
parent
f8a757b7f9
commit
5e2b848760
@ -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;
|
||||
|
@ -45,7 +45,7 @@
|
||||
<!-- stylesheets -->
|
||||
<link rel="stylesheet" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/css/bulma.css?v=0.7.4"/>
|
||||
<link rel="stylesheet" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/css/hover.css"/>
|
||||
<link rel="stylesheet" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/css/style.css?v=1.0.5"/>
|
||||
<link rel="stylesheet" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/css/style.css?v=1.0.5a"/>
|
||||
<!-- favicon -->
|
||||
<link rel="icon" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/favicon/cl-favicon-16x16.png" sizes="16x16"/>
|
||||
<link rel="icon" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/favicon/cl-favicon-32x32.png" sizes="32x32"/>
|
||||
|
@ -65,6 +65,13 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="warning-sp">
|
||||
<div class="field-label is-normal">
|
||||
<label for="empty">{{ _('Deja esto vacío:') }}</label>
|
||||
</div>
|
||||
<input id="empty" type="text" name="url" />
|
||||
</div>
|
||||
|
||||
<div class="field is-horizontal">
|
||||
<div class="field-label is-normal">
|
||||
<label class="has-text-white" for="comment">{{ _('Comentario') }}</label>
|
||||
|
@ -16,6 +16,8 @@ function seourl($string) {
|
||||
return $string;
|
||||
}
|
||||
|
||||
// if the url field is empty
|
||||
if(isset($_POST['url']) && $_POST['url'] == '') {
|
||||
// Check for empty fields
|
||||
if(empty($_POST['name']) ||
|
||||
empty($_POST['comment']) ||
|
||||
@ -86,3 +88,9 @@ EOT;
|
||||
printf('Hurra! %s su comentario se envió correctamente,
|
||||
volviendo a la web en 10 segundos...', $name);
|
||||
}
|
||||
} else {
|
||||
// woow!
|
||||
header("Refresh: 10; URL={$return_url}");
|
||||
printf('Hurra! %s su comentario se envió correctamente,
|
||||
volviendo a la web en 10 segundos...', $name);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user