Skip to content
This repository was archived by the owner on Jan 12, 2025. It is now read-only.

Commit da2ced7

Browse files
committed
added tags to style.css
updated theme url added gallery styles replaced get_settings with get_option
1 parent a4ef935 commit da2ced7

File tree

4 files changed

+43
-4
lines changed

4 files changed

+43
-4
lines changed

changelog.txt

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ Version 1.0.1
55
================
66
added tags to style.css
77
updated theme url
8+
added gallery styles
9+
replaced get_settings with get_option
810

911
** 12-13-2010 **
1012
Version 1.0

functions.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ function mytheme_admin() {
279279
<img style="padding:5px; background:#FFF; border:1px solid #ddd;" src="<?php bloginfo('template_url');?>/images/<?php echo $value['image'];?>" alt="image" />
280280
</div>
281281
<?php } ?>
282-
<input style="width:200px;" name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>" type="<?php echo $value['type']; ?>" value="<?php if ( get_settings( $value['id'] ) != "") { echo stripslashes(get_settings( $value['id'] )); } else { echo stripslashes($value['std']); } ?>" />
282+
<input style="width:200px;" name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>" type="<?php echo $value['type']; ?>" value="<?php if ( get_option( $value['id'] ) != "") { echo stripslashes(get_option( $value['id'] )); } else { echo stripslashes($value['std']); } ?>" />
283283
<br/>
284284
<span style="font-family:Arial, sans-serif; font-size:11px; font-weight:bold; color:#444; display:block; padding:5px 0px;">
285285
<?php echo $value['desc']; ?>
@@ -301,7 +301,7 @@ function mytheme_admin() {
301301
<img style="padding:5px; background:#FFF; border:1px solid #ddd;" src="<?php bloginfo('template_url');?>/images/<?php echo $value['image'];?>" alt="image" />
302302
</div>
303303
<?php } ?>
304-
<textarea name="<?php echo $value['id']; ?>" style="width:400px; height:200px;" type="<?php echo $value['type']; ?>" cols="" rows=""><?php if ( get_settings( $value['id'] ) != "") { echo stripslashes(get_settings( $value['id'] )); } else { echo stripslashes($value['std']); } ?></textarea>
304+
<textarea name="<?php echo $value['id']; ?>" style="width:400px; height:200px;" type="<?php echo $value['type']; ?>" cols="" rows=""><?php if ( get_option( $value['id'] ) != "") { echo stripslashes(get_option( $value['id'] )); } else { echo stripslashes($value['std']); } ?></textarea>
305305
<br/>
306306
<span style="font-family:Arial, sans-serif; font-size:11px; font-weight:bold; color:#444; display:block; padding:5px 0px;">
307307
<?php echo $value['desc']; ?>
@@ -323,7 +323,7 @@ function mytheme_admin() {
323323
<img style="padding:5px; background:#FFF; border:1px solid #ddd;" src="<?php bloginfo('template_url');?>/images/<?php echo $value['image'];?>" alt="image" />
324324
</div>
325325
<?php } ?>
326-
<select style="width:240px;" name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>"><?php foreach ($value['options'] as $option) { ?><option<?php if ( get_settings( $value['id'] ) == $option) { echo ' selected="selected"'; } elseif ($option == $value['std']) { echo ' selected="selected"'; } ?>><?php echo $option; ?></option><?php } ?></select>
326+
<select style="width:240px;" name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>"><?php foreach ($value['options'] as $option) { ?><option<?php if ( get_option( $value['id'] ) == $option) { echo ' selected="selected"'; } elseif ($option == $value['std']) { echo ' selected="selected"'; } ?>><?php echo $option; ?></option><?php } ?></select>
327327
<br/>
328328
<span style="font-family:Arial, sans-serif; font-size:11px; font-weight:bold; color:#444; display:block; padding:5px 0px;">
329329
<?php echo $value['desc']; ?>

get-theme-options.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//allows the theme to get info from the theme options page
33
global $options;
44
foreach ($options as $value) {
5-
if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings( $value['id'] ); }
5+
if (get_option( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_option( $value['id'] ); }
66
}
77
?>
88

style.css

+37
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,43 @@ div.aligncenter {
176176
margin: 0;
177177
}
178178

179+
/* gallery styles "borrowed" from twentyten */
180+
181+
#content .wp-smiley {
182+
margin: 0;
183+
}
184+
#content .gallery {
185+
margin: 0 auto 18px;
186+
}
187+
#content .gallery .gallery-item {
188+
float: left;
189+
margin-top: 0;
190+
text-align: center;
191+
width: 33%;
192+
}
193+
#content .gallery img {
194+
border: 2px solid #cfcfcf;
195+
}
196+
#content .gallery .gallery-caption {
197+
color: #888;
198+
font-size: 12px;
199+
margin: 0 0 12px;
200+
}
201+
#content .gallery dl {
202+
margin: 0;
203+
}
204+
#content .gallery img {
205+
border: 10px solid #f1f1f1;
206+
}
207+
#content .gallery br+br {
208+
display: none;
209+
}
210+
#content .attachment img { /* single attachment images should be centered */
211+
display: block;
212+
margin: 0 auto;
213+
}
214+
215+
179216
/* Header */
180217
.header h1 {
181218
height: 2.1em;

0 commit comments

Comments
 (0)