Skip to content

Commit

Permalink
Tror jag har fixat issue #4!
Browse files Browse the repository at this point in the history
  • Loading branch information
erlaan committed Dec 2, 2015
1 parent bfa7b21 commit 824ab0f
Showing 1 changed file with 30 additions and 1 deletion.
31 changes: 30 additions & 1 deletion daladevelop/comments.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,34 @@
<p class="no-comments">Inga nya kommentarer kan lämnas.</p>
<?php endif; ?>

<?php comment_form(); ?>
<?php
$commenter = wp_get_current_commenter();
$req = get_option( 'require_name_email');
$aria_req = ($req ? " aria-required ='true'" :'');

$comments_args = array(
//Redifine textarea
'comment_field' =>
'<p class="comment-form-comment"><label for="comment">' . _x( 'Comment', 'noun') . '</label><br/>
<textarea id="comment" aria-requird="true" placeholder="Skriv in din kommentar!" rows="8" cols="45" wrap="hard"></textarea></p>
'author' =>
'<p class="commet-form-author">' .
'<input id="author" placeholder="Ditt för och efternamn" name="author" type="text" value"' . esc_attr( $commenter['comment_author']] .
'"size=30"' - $aria_req .' /> . ($req ? '<span style="color:red" class="required">*</span>' : ''). '</p>',

'email' =>
'<p class = comment-form-email">' .
'<input id ="email" placeholder="Din epostaddress!" name="email" type="text" value"" .esc_attr($commenter['comment_author_email'] ) .
'" size="30"' . $aria_req . '/>' . ($req ? '<span style="color:red" class=required">*</span>' : '') . '</p>' ,

'url' =>
'<p class = comment-form-url">' .
'<input id ="url" placeholder="Hemsida" name="url" type="text" value"" .esc_attr($commenter['comment_author_url'] ) .
'" size="30"' . $aria_req . '/>' . '</p>'
)
),
);

comment_form($comments_args); ?>
</div>

0 comments on commit 824ab0f

Please sign in to comment.