Skip to content

Commit

Permalink
* Comment guide thingy (a note to show next to comment box)
Browse files Browse the repository at this point in the history
* Some font changes/cleanup
  • Loading branch information
ravi committed Sep 4, 2010
1 parent f56b799 commit bec8240
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 19 deletions.
18 changes: 17 additions & 1 deletion comments.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

global $options;

if ( function_exists('wp_list_comments') ) :

// new comments.php stuff
Expand Down Expand Up @@ -138,7 +140,15 @@

<?php endif; ?>

<p><textarea name="comment" id="replytext" rows="20" tabindex="4"></textarea></p>
<br />

<?php if( $options['commentguide'] != "" ) : ?>
<div id='commentguide'>
<?php print stripslashes($options['commentguide']); ?>
</div>
<?php endif; ?>

<textarea name="comment" id="replytext" rows="20" tabindex="4"></textarea>

<div id='commenthint'>
<small>
Expand All @@ -147,9 +157,15 @@
</small>
</div>

<br />
<br />

<input name="submit" type="submit" id="submit" class='capsule actbubble'
tabindex="5" value="<?php _e('Submit Comment', 'ahimsa'); ?>" />

<br />
<br />

<?php
if ( function_exists('comment_id_fields') ) :

Expand Down
9 changes: 9 additions & 0 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
if( ! isset($options['copyright' ]) ) $options['copyright' ] = "";
if( ! isset($options['skin' ]) ) $options['skin' ] = "none";
if( ! isset($options['logourl' ]) ) $options['logourl' ] = "";
if( ! isset($options['commentguide' ]) ) $options['commentguide' ] = "";
# end defaults

update_option('ahimsa', $options);
Expand Down Expand Up @@ -215,6 +216,13 @@ function ahimsa_options()
<input type='text' size='50' name='logourl' id='logourl'
value='$options[logourl]' />
<br />
<br />
Custom text (instructions) to display above comment box: <br />
<textarea name='commentguide' id='commentguide'
rows=5 cols=60>" . stripslashes($options[commentguide]) . "</textarea>
<br/>
<br/>
<hr size='1'/>
Expand Down Expand Up @@ -748,6 +756,7 @@ function save_options()
$options['copyright'] = ( isset($_POST['copyright']) ) ? $_POST['copyright'] : "";
$options['skin'] = ( isset($_POST['skin']) ) ? $_POST['skin'] : "none";
$options['logourl'] = ( isset($_POST['logourl']) ) ? $_POST['logourl'] : "";
$options['commentguide'] = ( isset($_POST['commentguide']) ) ? $_POST['commentguide'] : "";

update_option('ahimsa', $options);

Expand Down
2 changes: 2 additions & 0 deletions header.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
content="WordPress <?php bloginfo('version'); ?>"
/> <!-- leave this for stats -->

<link href='http://fonts.googleapis.com/css?family=Droid+Sans' rel='stylesheet' type='text/css'>

<link
rel="stylesheet"
href="<?php bloginfo('stylesheet_url'); ?>"
Expand Down
6 changes: 3 additions & 3 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
?>
</div>
<?php print $options['delictitle']; ?>
<div id='recentlist'>
<?php delicious_bookmarks($delid, 5, true, false); ?>
</div>
</div>
<div id='recentlist'>
<?php delicious_bookmarks($delid, 5, true, false); ?>
</div>
</div>

Expand Down
40 changes: 25 additions & 15 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ BODY
border-style: none;
background-color: #6f900d;
font-size: medium;
font-family: "Lucida Grande", Futura, Helvetica, sans-serif;
font-family: "Lucida Grande", Helvetica, sans-serif;
}

A
Expand Down Expand Up @@ -114,7 +114,7 @@ BLOCKQUOTE OL
{
text-align: center;
padding: 4px 10px;
font-family: "Trebuchet MS", Helvetica, sans-serif;
font-family: Helvetica, Arial, sans-serif;
font-size: small;
background-color: #cc9900;
border-radius: 10px;
Expand Down Expand Up @@ -634,7 +634,7 @@ BLOCKQUOTE OL
{
background-color: #6f900d;
border: 0px solid #666666;
font-size: 12pt;
font-size: 14pt;
padding: 4px 20px;
margin-left: 15px; /* doesn't work for Firefox -- see comment above in .post fieldset */
border-radius: 8px;
Expand All @@ -647,7 +647,7 @@ LEGEND,
LEGEND A,
#recentheader
{
font-family: "Trebuchet MS", Skia, "Century Gothic", sans-serif;
font-family: "Trebuchet MS", "Droid Sans", sans-serif;
color: #ffffff;
}

Expand Down Expand Up @@ -756,11 +756,6 @@ LEGEND A,
-webkit-border-radius: 8px; /* see comment above for .cattriger */
}

#single .postmetadata .cattrigger
{
font-weight: bold;
}

.postcats
{
background-image: URL('images/cat2.png');
Expand Down Expand Up @@ -896,6 +891,27 @@ FIELDSET.comment .commenttext
visibility: hidden;
}

#commentguide
{
float: right;
width: 16%;
font-size: 9pt;
padding: 30px;
text-align: center;
background-color: #cccccc;
color: #333333;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
}

#replytext
{
width: 70% !important;
border-color: #d0d0d0;
background-color: #eeeeee;
}

.navigation .capsule
{
font-size: large;
Expand Down Expand Up @@ -956,18 +972,12 @@ FIELDSET.comment .commenttext

#respond INPUT#submit
{
font-weight: bold;
font-size: medium;
cursor: pointer;
border: none;
padding: 3px 10px;
}

#respond TEXTAREA
{
width: 80% !important;
}

#respond INPUT.inptext
{
border: 1px solid #999999;
Expand Down

0 comments on commit bec8240

Please sign in to comment.