예제 #1
0
</td>
</tr>

<tr class="background-extras" valign="top" <?php 
if (arras_get_option('background_type') == 'original') {
    echo 'style="display: none"';
}
?>
>
<th scope="row"><label for="arras-background-color"><?php 
_e('Background Color', 'arras');
?>
</label></th>
<td>
<?php 
echo arras_form_input(array('name' => 'arras-background-color', 'id' => 'arras-background-color', 'class' => 'code', 'size' => '8', 'value' => arras_get_option('background_color')));
?>
<div id="colorpicker"></div>
</td>
</tr>

</table>

<p class="submit">
<input class="button-primary" type="submit" name="save" value="<?php 
_e('Save Changes', 'arras');
?>
" />
</p>

</div><!-- #design -->
예제 #2
0
function arras_admin_tapestry_default()
{
    $tapestry_settings = get_option('arras_tapestry_default');
    if (!is_array($tapestry_settings)) {
        $tapestry_settings = arras_defaults_tapestry_default();
    }
    ?>
	<h3><?php 
    _e('Tapestry: Node Based', 'arras');
    ?>
</h3>
	<table class="form-table">

	<tr valign="top">
	<th scope="row"><label for="arras-tapestry-default-excerpt"><?php 
    _e('Show Excerpt?', 'arras');
    ?>
</label></th>
	<td>
	<?php 
    echo arras_form_checkbox('arras-tapestry-default-excerpt', 'show', $tapestry_settings['excerpt'], 'id="arras-tapestry-default-excerpt"');
    ?>
	</td>
	</tr>
	<tr valign="top">
	<th scope="row"><label for="arras-tapestry-default-height"><?php 
    _e('Nodes per Row', 'arras');
    ?>
</label></th>
	<td>
	<?php 
    echo arras_form_input(array('name' => 'arras-tapestry-default-nodes', 'id' => 'arras-tapestry-default-nodes', 'size' => '3', 'value' => $tapestry_settings['nodes'], 'maxlength' => 1));
    ?>
	</td>
	</tr>
	
	</table>
	<?php 
}
<td>
<?php 
echo arras_form_dropdown('arras-footer-sidebars', array(1 => 1, 2, 3, 4), arras_get_option('footer_sidebars'));
echo '<br />' . __('Footer sidebars will be labelled respectively (eg. Footer Sidebar #1, etc.)', 'arras');
?>
</td>
</tr>

<tr valign="top">
<th scope="row"><label for="arras-footer-title"><?php 
_e('Footer Title', 'arras');
?>
</label></th>
<td>
<?php 
echo arras_form_input(array('name' => 'arras-footer-title', 'id' => 'arras-footer-title', 'style' => 'width:40%', 'value' => arras_get_option('footer_title')));
?>
</td>
</tr>

<tr valign="top">
<th scope="row"><label for="arras-footer-message">Footer Message</label></th>
<td>
<?php 
echo arras_form_textarea('arras-footer-message', arras_get_option('footer_message'), 'style="width: 70%; height: 100px;" class="code"');
?>
<br />
<?php 
_e('Usually your website\'s copyright information would go here.<br /> It would be great if you could include a link to WordPress and even greater if you could include a link to the theme website. :)', 'arras');
?>
</td>
예제 #4
0
</label></th>
<td>
<?php 
echo arras_form_dropdown('arras-layout-index-newsdisplay', arras_get_tapestries_select(), arras_get_option('news_display'));
?>
</td>
</tr>

<tr valign="top">
<th scope="row"><label for="arras-layout-index-count"><?php 
_e('News Count', 'arras');
?>
</label></th>
<td>
<?php 
echo arras_form_input(array('name' => 'arras-layout-index-count', 'id' => 'arras-layout-index-count', 'size' => '5', 'value' => arras_get_option('index_count'), 'maxlength' => 2));
?>
 <?php 
_e('posts', 'arras');
?>
</td>
</tr>

</table>

<?php 
do_action('arras_admin_settings-home');
?>

</div><!-- #layout -->
    echo arras_form_input(array('name' => 'arras-' . $image_size_id . '-w', 'id' => 'arras-' . $image_size_id . '-w', 'size' => '5', 'value' => $image_size_args['w'], 'maxlength' => 3));
    ?>
<span class="default-w hide"><?php 
    echo $image_size_args['dw'];
    ?>
</span>

<label for="arras-<?php 
    echo $image_size_id;
    ?>
-h"><?php 
    _e('Height', 'arras');
    ?>
</label>
<?php 
    echo arras_form_input(array('name' => 'arras-' . $image_size_id . '-h', 'id' => 'arras-' . $image_size_id . '-h', 'size' => '5', 'value' => $image_size_args['h'], 'maxlength' => 3));
    ?>
<span class="default-h hide"><?php 
    echo $image_size_args['dh'];
    ?>
</span>
</td>
<td class="arras-thumbnail-size-reset">
<a class="button-secondary"><?php 
    _e('Reset to Defaults', 'arras');
    ?>
</a>
</td>
</tr>
<?php 
}
예제 #6
0
</label></th>
<td>
<label for="arras-news-thumb-w"><?php 
_e('Width', 'arras');
?>
</label>
<?php 
echo arras_form_input(array('name' => 'arras-news-thumb-w', 'id' => 'arras-news-thumb-w', 'size' => '5', 'value' => arras_get_option('news_thumb_w'), 'maxlength' => 3));
?>

<label for="arras-news-thumb-h"><?php 
_e('Height', 'arras');
?>
</label>
<?php 
echo arras_form_input(array('name' => 'arras-news-thumb-h', 'id' => 'arras-news-thumb-h', 'size' => '5', 'value' => arras_get_option('news_thumb_h'), 'maxlength' => 3));
?>
</td>
</tr>

</table>

<p class="submit">
<input class="button-primary" type="submit" name="save" value="<?php 
_e('Save Changes', 'arras');
?>
" />
</p>

<h3><?php 
_e('Clear timThumb Thumbnail Cache (Leagcy)', 'arras');
<div id="navigation" class="padding-content">

<h3><?php 
_e('Main Navigation', 'arras');
?>
</h3>
<table class="form-table">

<tr valign="top">
<th scope="row"><label for="arras-nav-home"><?php 
_e('Home Link', 'arras');
?>
</label></th>
<td>
<?php 
echo arras_form_input(array('name' => 'arras-nav-home', 'id' => 'arras-nav-home', 'style' => 'width:40%', 'value' => arras_get_option('topnav_home')));
?>
<br /><?php 
_e('You can change the name of the home link at the main navigation.', 'arras');
?>
</td>
</tr>

<tr valign="top">
<th scope="row"><label for="arras-layout-metapos"><?php 
_e('Top Navigation Display', 'arras');
?>
</label></th>
<td>
<?php 
echo arras_form_radio('arras-nav-display', 'categories', arras_get_option('topnav_display') == 'categories');
예제 #8
0
<div id="layout" class="padding-content">

<h3><?php 
_e('Excerpts', 'arras');
?>
</h3>
<table class="form-table">

<tr valign="top">
<th scope="row"><label for="arras-layout-limit-words"><?php 
_e('Excerpt Limit', 'arras');
?>
</label></th>
<td>
<?php 
echo arras_form_input(array('name' => 'arras-layout-limit-words', 'id' => 'arras-layout-limit-words', 'size' => '5', 'value' => arras_get_option('excerpt_limit'), 'maxlength' => 3));
?>
 <?php 
' ' . _e('words', 'arras');
?>
 <br /><?php 
_e('Excerpts will only be trimmed to the limit if no excerpt is specified for the respective post.', 'arras');
?>
</td>
</tr>
</table>

<h3><?php 
_e('Archive / Search', 'arras');
?>
</h3>