Skip to content

Commit

Permalink
Remove trailing spaces and convert spaces to tabs. Props Nazgul. fixe…
Browse files Browse the repository at this point in the history
…s #986

git-svn-id: http://svn.automattic.com/wordpress/trunk@4495 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
ryan committed Nov 19, 2006
1 parent 38e8682 commit 9f534eb
Show file tree
Hide file tree
Showing 99 changed files with 1,532 additions and 1,532 deletions.
2 changes: 1 addition & 1 deletion index.php
@@ -1,4 +1,4 @@
<?php <?php
/* Short and sweet */ /* Short and sweet */
define('WP_USE_THEMES', true); define('WP_USE_THEMES', true);
require('./wp-blog-header.php'); require('./wp-blog-header.php');
Expand Down
2 changes: 1 addition & 1 deletion wp-admin/admin-ajax.php
Expand Up @@ -128,7 +128,7 @@ function wp_ajax_meta_row( $pid, $mid, $key, $value ) {
break; break;
case 'add-cat' : // From Manage->Categories case 'add-cat' : // From Manage->Categories
if ( !current_user_can( 'manage_categories' ) ) if ( !current_user_can( 'manage_categories' ) )
die('-1'); die('-1');
if ( !$cat = wp_insert_category( $_POST ) ) if ( !$cat = wp_insert_category( $_POST ) )
die('0'); die('0');
if ( !$cat = get_category( $cat ) ) if ( !$cat = get_category( $cat ) )
Expand Down
46 changes: 23 additions & 23 deletions wp-admin/admin-db.php
Expand Up @@ -48,7 +48,7 @@ function get_editable_user_ids( $user_id, $exclude_zeros = true ) {
if ( ! $user->has_cap('edit_others_posts') ) { if ( ! $user->has_cap('edit_others_posts') ) {
if ( $user->has_cap('edit_posts') || $exclude_zeros == false ) if ( $user->has_cap('edit_posts') || $exclude_zeros == false )
return array($user->id); return array($user->id);
else else
return false; return false;
} }


Expand Down Expand Up @@ -96,7 +96,7 @@ function wp_insert_category($catarr) {
$update = false; $update = false;


$cat_name = apply_filters('pre_category_name', $cat_name); $cat_name = apply_filters('pre_category_name', $cat_name);

if (empty ($category_nicename)) if (empty ($category_nicename))
$category_nicename = sanitize_title($cat_name); $category_nicename = sanitize_title($cat_name);
else else
Expand Down Expand Up @@ -198,7 +198,7 @@ function wp_delete_category($cat_ID) {
$cats = array($default_cat); $cats = array($default_cat);
else else
$cats = array_diff($cats, array($cat_ID)); $cats = array_diff($cats, array($cat_ID));
wp_set_post_categories($post_id, $cats); wp_set_post_categories($post_id, $cats);
} }


$default_link_cat = get_option('default_link_category'); $default_link_cat = get_option('default_link_category');
Expand All @@ -209,9 +209,9 @@ function wp_delete_category($cat_ID) {
$cats = array($default_link_cat); $cats = array($default_link_cat);
else else
$cats = array_diff($cats, array($cat_ID)); $cats = array_diff($cats, array($cat_ID));
wp_set_link_cats($link_id, $cats); wp_set_link_cats($link_id, $cats);
} }

wp_cache_delete($cat_ID, 'category'); wp_cache_delete($cat_ID, 'category');
wp_cache_delete('all_category_ids', 'category'); wp_cache_delete('all_category_ids', 'category');


Expand Down Expand Up @@ -285,9 +285,9 @@ function wp_delete_user($id, $reassign = 'novalue') {


function wp_revoke_user($id) { function wp_revoke_user($id) {
$id = (int) $id; $id = (int) $id;

$user = new WP_User($id); $user = new WP_User($id);
$user->remove_all_caps(); $user->remove_all_caps();
} }


function wp_insert_link($linkdata) { function wp_insert_link($linkdata) {
Expand Down Expand Up @@ -385,15 +385,15 @@ function wp_update_link($linkdata) {
$link = add_magic_quotes($link); $link = add_magic_quotes($link);


// Passed link category list overwrites existing category list if not empty. // Passed link category list overwrites existing category list if not empty.
if ( isset($linkdata['link_category']) && is_array($linkdata['link_category']) if ( isset($linkdata['link_category']) && is_array($linkdata['link_category'])
&& 0 != count($linkdata['link_category']) ) && 0 != count($linkdata['link_category']) )
$link_cats = $linkdata['link_category']; $link_cats = $linkdata['link_category'];
else else
$link_cats = $link['link_category']; $link_cats = $link['link_category'];


// Merge old and new fields with new fields overwriting old ones. // Merge old and new fields with new fields overwriting old ones.
$linkdata = array_merge($link, $linkdata); $linkdata = array_merge($link, $linkdata);
$linkdata['link_category'] = $link_cats; $linkdata['link_category'] = $link_cats;


return wp_insert_link($linkdata); return wp_insert_link($linkdata);
} }
Expand All @@ -402,7 +402,7 @@ function wp_delete_link($link_id) {
global $wpdb; global $wpdb;


do_action('delete_link', $link_id); do_action('delete_link', $link_id);

$categories = wp_get_link_cats($link_id); $categories = wp_get_link_cats($link_id);
if( is_array( $categories ) ) { if( is_array( $categories ) ) {
foreach ( $categories as $category ) { foreach ( $categories as $category ) {
Expand All @@ -418,9 +418,9 @@ function wp_delete_link($link_id) {
function wp_get_link_cats($link_ID = 0) { function wp_get_link_cats($link_ID = 0) {
global $wpdb; global $wpdb;


$sql = "SELECT category_id $sql = "SELECT category_id
FROM $wpdb->link2cat FROM $wpdb->link2cat
WHERE link_id = $link_ID WHERE link_id = $link_ID
ORDER BY category_id"; ORDER BY category_id";


$result = $wpdb->get_col($sql); $result = $wpdb->get_col($sql);
Expand All @@ -441,8 +441,8 @@ function wp_set_link_cats($link_ID = 0, $link_categories = array()) {


// First the old categories // First the old categories
$old_categories = $wpdb->get_col(" $old_categories = $wpdb->get_col("
SELECT category_id SELECT category_id
FROM $wpdb->link2cat FROM $wpdb->link2cat
WHERE link_id = $link_ID"); WHERE link_id = $link_ID");


if (!$old_categories) { if (!$old_categories) {
Expand All @@ -457,9 +457,9 @@ function wp_set_link_cats($link_ID = 0, $link_categories = array()) {
if ($delete_cats) { if ($delete_cats) {
foreach ($delete_cats as $del) { foreach ($delete_cats as $del) {
$wpdb->query(" $wpdb->query("
DELETE FROM $wpdb->link2cat DELETE FROM $wpdb->link2cat
WHERE category_id = $del WHERE category_id = $del
AND link_id = $link_ID AND link_id = $link_ID
"); ");
} }
} }
Expand All @@ -470,11 +470,11 @@ function wp_set_link_cats($link_ID = 0, $link_categories = array()) {
if ($add_cats) { if ($add_cats) {
foreach ($add_cats as $new_cat) { foreach ($add_cats as $new_cat) {
$wpdb->query(" $wpdb->query("
INSERT INTO $wpdb->link2cat (link_id, category_id) INSERT INTO $wpdb->link2cat (link_id, category_id)
VALUES ($link_ID, $new_cat)"); VALUES ($link_ID, $new_cat)");
} }
} }

// Update category counts. // Update category counts.
$all_affected_cats = array_unique(array_merge($link_categories, $old_categories)); $all_affected_cats = array_unique(array_merge($link_categories, $old_categories));
foreach ( $all_affected_cats as $cat_id ) { foreach ( $all_affected_cats as $cat_id ) {
Expand Down
10 changes: 5 additions & 5 deletions wp-admin/admin-functions.php
Expand Up @@ -1139,10 +1139,10 @@ function touch_time( $edit = 1, $for_post = 1 ) {
?> ?>
</select> </select>
<input type="text" id="jj" name="jj" value="<?php echo $jj; ?>" size="2" maxlength="2" onchange="edit_date.checked=true"/> <input type="text" id="jj" name="jj" value="<?php echo $jj; ?>" size="2" maxlength="2" onchange="edit_date.checked=true"/>
<input type="text" id="aa" name="aa" value="<?php echo $aa ?>" size="4" maxlength="5" onchange="edit_date.checked=true" /> @ <input type="text" id="aa" name="aa" value="<?php echo $aa ?>" size="4" maxlength="5" onchange="edit_date.checked=true" /> @
<input type="text" id="hh" name="hh" value="<?php echo $hh ?>" size="2" maxlength="2" onchange="edit_date.checked=true" /> : <input type="text" id="hh" name="hh" value="<?php echo $hh ?>" size="2" maxlength="2" onchange="edit_date.checked=true" /> :
<input type="text" id="mn" name="mn" value="<?php echo $mn ?>" size="2" maxlength="2" onchange="edit_date.checked=true" /> <input type="text" id="mn" name="mn" value="<?php echo $mn ?>" size="2" maxlength="2" onchange="edit_date.checked=true" />
<input type="hidden" id="ss" name="ss" value="<?php echo $ss ?>" size="2" maxlength="2" onchange="edit_date.checked=true" /> <input type="hidden" id="ss" name="ss" value="<?php echo $ss ?>" size="2" maxlength="2" onchange="edit_date.checked=true" />
<?php <?php
if ( $edit ) { if ( $edit ) {
_e( 'Existing timestamp' ); _e( 'Existing timestamp' );
Expand Down Expand Up @@ -1387,7 +1387,7 @@ function user_can_access_admin_page() {
return false; return false;
} }
} }

return true; return true;
} }


Expand Down
20 changes: 10 additions & 10 deletions wp-admin/bookmarklet.php
Expand Up @@ -35,16 +35,16 @@
else else
$post->post_title = $popuptitle; $post->post_title = $popuptitle;



$content = wp_specialchars($_REQUEST['content']); $content = wp_specialchars($_REQUEST['content']);
$popupurl = wp_specialchars($_REQUEST['popupurl']); $popupurl = wp_specialchars($_REQUEST['popupurl']);
if ( !empty($content) ) { if ( !empty($content) ) {
$post->post_content = wp_specialchars( stripslashes($_REQUEST['content']) ); $post->post_content = wp_specialchars( stripslashes($_REQUEST['content']) );
} else { } else {
$post->post_content = '<a href="'.$popupurl.'">'.$popuptitle.'</a>'."\n$text"; $post->post_content = '<a href="'.$popupurl.'">'.$popuptitle.'</a>'."\n$text";
} }


/* /big funky fixes */ /* /big funky fixes */


?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> <html xmlns="http://www.w3.org/1999/xhtml">
Expand Down Expand Up @@ -77,15 +77,15 @@
} }


#wpbookmarklet .wrap { #wpbookmarklet .wrap {
border: 0px; border: 0px;
} }


#wpbookmarklet #postdiv { #wpbookmarklet #postdiv {
margin-bottom: 0.5em; margin-bottom: 0.5em;
} }


#wpbookmarklet #titlediv { #wpbookmarklet #titlediv {
margin-bottom: 1em; margin-bottom: 1em;
} }


--> -->
Expand Down
8 changes: 4 additions & 4 deletions wp-admin/categories.php
Expand Up @@ -48,10 +48,10 @@


case 'edit': case 'edit':


require_once ('admin-header.php'); require_once ('admin-header.php');
$cat_ID = (int) $_GET['cat_ID']; $cat_ID = (int) $_GET['cat_ID'];
$category = get_category_to_edit($cat_ID); $category = get_category_to_edit($cat_ID);
include('edit-category-form.php'); include('edit-category-form.php');


break; break;


Expand Down
4 changes: 2 additions & 2 deletions wp-admin/custom-fields.js
Expand Up @@ -14,10 +14,10 @@ function customFieldsAddIn() {
for ( var i=0; i < inputs.length; i++ ) { for ( var i=0; i < inputs.length; i++ ) {
if ('text' == inputs[i].type) { if ('text' == inputs[i].type) {
inputs[i].setAttribute('autocomplete', 'off'); inputs[i].setAttribute('autocomplete', 'off');
inputs[i].onkeypress = function(e) {return killSubmit('theList.ajaxUpdater("meta", "meta-' + parseInt(this.name.slice(5),10) + '");', e); }; inputs[i].onkeypress = function(e) {return killSubmit('theList.ajaxUpdater("meta", "meta-' + parseInt(this.name.slice(5),10) + '");', e); };
} }
if ('updatemeta' == inputs[i].className) { if ('updatemeta' == inputs[i].className) {
inputs[i].onclick = function(e) {return killSubmit('theList.ajaxUpdater("meta", "meta-' + parseInt(this.parentNode.parentNode.id.slice(5),10) + '");', e); }; inputs[i].onclick = function(e) {return killSubmit('theList.ajaxUpdater("meta", "meta-' + parseInt(this.parentNode.parentNode.id.slice(5),10) + '");', e); };
} }
} }


Expand Down
2 changes: 1 addition & 1 deletion wp-admin/dbx-admin-key-js.php
Expand Up @@ -9,7 +9,7 @@
break; break;
case 'page.php' : case 'page.php' :
case 'page-new.php' : case 'page-new.php' :
$man = 'pagemeta'; $man = 'pagemeta';
break; break;
case 'link.php' : case 'link.php' :
$man = 'linkmeta'; $man = 'linkmeta';
Expand Down
4 changes: 2 additions & 2 deletions wp-admin/edit-category-form.php
Expand Up @@ -22,8 +22,8 @@
<?php wp_nonce_field($nonce_action); ?> <?php wp_nonce_field($nonce_action); ?>
<table class="editform" width="100%" cellspacing="2" cellpadding="5"> <table class="editform" width="100%" cellspacing="2" cellpadding="5">
<tr> <tr>
<th width="33%" scope="row" valign="top"><label for="cat_name"><?php _e('Category name:') ?></label></th> <th width="33%" scope="row" valign="top"><label for="cat_name"><?php _e('Category name:') ?></label></th>
<td width="67%"><input name="cat_name" id="cat_name" type="text" value="<?php echo wp_specialchars($category->cat_name); ?>" size="40" /></td> <td width="67%"><input name="cat_name" id="cat_name" type="text" value="<?php echo wp_specialchars($category->cat_name); ?>" size="40" /></td>
</tr> </tr>
<tr> <tr>
<th scope="row" valign="top"><label for="category_nicename"><?php _e('Category slug:') ?></label></th> <th scope="row" valign="top"><label for="category_nicename"><?php _e('Category slug:') ?></label></th>
Expand Down
6 changes: 3 additions & 3 deletions wp-admin/edit-comments.php
Expand Up @@ -143,7 +143,7 @@ function getNumChecked(form)
++$i; $class = ''; ++$i; $class = '';
$authordata = get_userdata($wpdb->get_var("SELECT post_author FROM $wpdb->posts WHERE ID = $comment->comment_post_ID")); $authordata = get_userdata($wpdb->get_var("SELECT post_author FROM $wpdb->posts WHERE ID = $comment->comment_post_ID"));
$comment_status = wp_get_comment_status($comment->comment_ID); $comment_status = wp_get_comment_status($comment->comment_ID);
if ('unapproved' == $comment_status) if ('unapproved' == $comment_status)
$class .= ' unapproved'; $class .= ' unapproved';
if ($i % 2) if ($i % 2)
$class .= ' alternate'; $class .= ' alternate';
Expand All @@ -153,7 +153,7 @@ function getNumChecked(form)


<?php comment_text() ?> <?php comment_text() ?>


<p><?php comment_date('M j, g:i A'); ?> &#8212; [ <p><?php comment_date('M j, g:i A'); ?> &#8212; [
<?php <?php
if ( current_user_can('edit_post', $comment->comment_post_ID) ) { if ( current_user_can('edit_post', $comment->comment_post_ID) ) {
echo " <a href='comment.php?action=editcomment&amp;c=".$comment->comment_ID."'>" . __('Edit') . '</a>'; echo " <a href='comment.php?action=editcomment&amp;c=".$comment->comment_ID."'>" . __('Edit') . '</a>';
Expand Down Expand Up @@ -181,7 +181,7 @@ function getNumChecked(form)


?> ?>
<p> <p>
<strong><?php _e('No comments found.') ?></strong></p> <strong><?php _e('No comments found.') ?></strong></p>


<?php <?php
} // end if ($comments) } // end if ($comments)
Expand Down
13 changes: 6 additions & 7 deletions wp-admin/edit-form-advanced.php
Expand Up @@ -8,8 +8,7 @@
<?php endif; ?> <?php endif; ?>


<form name="post" action="post.php" method="post" id="post"> <form name="post" action="post.php" method="post" id="post">
<?php if ( (isset($mode) && 'bookmarklet' == $mode) || <?php if ( (isset($mode) && 'bookmarklet' == $mode) || isset($_GET['popupurl']) ): ?>
isset($_GET['popupurl']) ): ?>
<input type="hidden" name="mode" value="bookmarklet" /> <input type="hidden" name="mode" value="bookmarklet" />
<?php endif; ?> <?php endif; ?>


Expand Down Expand Up @@ -121,7 +120,7 @@ function focusit() {
<h3 class="dbx-handle"><?php _e('Post Author'); ?>:</h3> <h3 class="dbx-handle"><?php _e('Post Author'); ?>:</h3>
<div class="dbx-content"> <div class="dbx-content">
<select name="post_author_override" id="post_author_override"> <select name="post_author_override" id="post_author_override">
<?php <?php
foreach ($authors as $o) : foreach ($authors as $o) :
$o = get_userdata( $o->ID ); $o = get_userdata( $o->ID );
if ( $post->post_author == $o->ID || ( empty($post_ID) && $user_ID == $o->ID ) ) $selected = 'selected="selected"'; if ( $post->post_author == $o->ID || ( empty($post_ID) && $user_ID == $o->ID ) ) $selected = 'selected="selected"';
Expand All @@ -140,8 +139,8 @@ function focusit() {
</div> </div>


<fieldset id="titlediv"> <fieldset id="titlediv">
<legend><?php _e('Title') ?></legend> <legend><?php _e('Title') ?></legend>
<div><input type="text" name="post_title" size="30" tabindex="1" value="<?php echo $post->post_title; ?>" id="title" /></div> <div><input type="text" name="post_title" size="30" tabindex="1" value="<?php echo $post->post_title; ?>" id="title" /></div>
</fieldset> </fieldset>


<fieldset id="<?php echo user_can_richedit() ? 'postdivrich' : 'postdiv'; ?>"> <fieldset id="<?php echo user_can_richedit() ? 'postdivrich' : 'postdiv'; ?>">
Expand Down Expand Up @@ -208,7 +207,7 @@ function focusit() {
</div> </div>
<div class="dbx-content-wrapper"> <div class="dbx-content-wrapper">
<div class="dbx-content"><?php _e('Send trackbacks to'); ?>: <?php echo $form_trackback; ?> (<?php _e('Separate multiple URIs with spaces'); ?>) <div class="dbx-content"><?php _e('Send trackbacks to'); ?>: <?php echo $form_trackback; ?> (<?php _e('Separate multiple URIs with spaces'); ?>)
<?php <?php
if ( ! empty($pings) ) if ( ! empty($pings) )
echo $pings; echo $pings;
?> ?>
Expand All @@ -227,7 +226,7 @@ function focusit() {
<table cellpadding="3"> <table cellpadding="3">
<?php <?php
$metadata = has_meta($post_ID); $metadata = has_meta($post_ID);
list_meta($metadata); list_meta($metadata);
?> ?>


</table> </table>
Expand Down
4 changes: 2 additions & 2 deletions wp-admin/edit-form-comment.php
Expand Up @@ -54,8 +54,8 @@ function focusit() { // focus on first input field
<tr> <tr>
<th scope="row" valign="top"><?php _e('Comment Status') ?>:</th> <th scope="row" valign="top"><?php _e('Comment Status') ?>:</th>
<td><label for="comment_status_approved" class="selectit"><input id="comment_status_approved" name="comment_status" type="radio" value="1" <?php checked($comment->comment_approved, '1'); ?> /> <?php _e('Approved') ?></label><br /> <td><label for="comment_status_approved" class="selectit"><input id="comment_status_approved" name="comment_status" type="radio" value="1" <?php checked($comment->comment_approved, '1'); ?> /> <?php _e('Approved') ?></label><br />
<label for="comment_status_moderated" class="selectit"><input id="comment_status_moderated" name="comment_status" type="radio" value="0" <?php checked($comment->comment_approved, '0'); ?> /> <?php _e('Moderated') ?></label><br /> <label for="comment_status_moderated" class="selectit"><input id="comment_status_moderated" name="comment_status" type="radio" value="0" <?php checked($comment->comment_approved, '0'); ?> /> <?php _e('Moderated') ?></label><br />
<label for="comment_status_spam" class="selectit"><input id="comment_status_spam" name="comment_status" type="radio" value="spam" <?php checked($comment->comment_approved, 'spam'); ?> /> <?php _e('Spam') ?></label></td> <label for="comment_status_spam" class="selectit"><input id="comment_status_spam" name="comment_status" type="radio" value="spam" <?php checked($comment->comment_approved, 'spam'); ?> /> <?php _e('Spam') ?></label></td>
</tr> </tr>


<?php if ( current_user_can('edit_posts') ) : ?> <?php if ( current_user_can('edit_posts') ) : ?>
Expand Down
12 changes: 6 additions & 6 deletions wp-admin/edit-form.php
Expand Up @@ -54,17 +54,17 @@ function focusit() { // focus on first input field
<p><label for="trackback"> <?php printf(__('<a href="%s" title="Help on trackbacks"><strong>TrackBack</strong> a <abbr title="Universal Resource Locator">URL</abbr></a>:</label> (Separate multiple <abbr title="Universal Resource Locator">URL</abbr>s with spaces.)<br />'), 'http://wordpress.org/docs/reference/post/#trackback') ?> <p><label for="trackback"> <?php printf(__('<a href="%s" title="Help on trackbacks"><strong>TrackBack</strong> a <abbr title="Universal Resource Locator">URL</abbr></a>:</label> (Separate multiple <abbr title="Universal Resource Locator">URL</abbr>s with spaces.)<br />'), 'http://wordpress.org/docs/reference/post/#trackback') ?>
<input type="text" name="trackback_url" style="width: 360px" id="trackback" tabindex="7" /></p> <input type="text" name="trackback_url" style="width: 360px" id="trackback" tabindex="7" /></p>


<p class="submit"><input name="saveasdraft" type="submit" id="saveasdraft" tabindex="9" value="<?php _e('Save as Draft') ?>" /> <p class="submit"><input name="saveasdraft" type="submit" id="saveasdraft" tabindex="9" value="<?php _e('Save as Draft') ?>" />
<input name="saveasprivate" type="submit" id="saveasprivate" tabindex="10" value="<?php _e('Save as Private') ?>" /> <input name="saveasprivate" type="submit" id="saveasprivate" tabindex="10" value="<?php _e('Save as Private') ?>" />


<?php if ( current_user_can('edit_posts') ) : ?> <?php if ( current_user_can('edit_posts') ) : ?>
<input name="publish" type="submit" id="publish" tabindex="6" style="font-weight: bold;" value="<?php _e('Publish') ?>" /> <input name="publish" type="submit" id="publish" tabindex="6" style="font-weight: bold;" value="<?php _e('Publish') ?>" />
<?php endif; ?> <?php endif; ?>


<?php if ('bookmarklet' != $mode) { <?php if ('bookmarklet' != $mode) {
echo '<input name="advanced" type="submit" id="advancededit" tabindex="7" value="' . __('Advanced Editing &raquo;') . '" />'; echo '<input name="advanced" type="submit" id="advancededit" tabindex="7" value="' . __('Advanced Editing &raquo;') . '" />';
} ?> } ?>
<input name="referredby" type="hidden" id="referredby" value="<?php if ( wp_get_referer() ) echo urlencode(wp_get_referer()); ?>" /> <input name="referredby" type="hidden" id="referredby" value="<?php if ( wp_get_referer() ) echo urlencode(wp_get_referer()); ?>" />
</p> </p>


<?php do_action('simple_edit_form', ''); ?> <?php do_action('simple_edit_form', ''); ?>
Expand Down
6 changes: 3 additions & 3 deletions wp-admin/edit-link-form.php
Expand Up @@ -30,7 +30,7 @@ function xfn_check($class, $value = '', $type = 'check') {
} }
?> ?>


<div class="wrap"> <div class="wrap">
<h2><?php echo $heading ?></h2> <h2><?php echo $heading ?></h2>
<?php echo $form ?> <?php echo $form ?>
<?php wp_nonce_field($nonce_action); ?> <?php wp_nonce_field($nonce_action); ?>
Expand All @@ -48,7 +48,7 @@ function xfn_check($class, $value = '', $type = 'check') {
</fieldset> </fieldset>


<fieldset class="dbx-box"> <fieldset class="dbx-box">
<h3 class="dbx-handle"><?php _e('Target') ?></h3> <h3 class="dbx-handle"><?php _e('Target') ?></h3>
<div class="dbx-content"> <div class="dbx-content">
<label for="link_target_blank" class="selectit"> <label for="link_target_blank" class="selectit">
<input id="link_target_blank" type="radio" name="link_target" value="_blank" <?php echo(($link->link_target == '_blank') ? 'checked="checked"' : ''); ?> /> <input id="link_target_blank" type="radio" name="link_target" value="_blank" <?php echo(($link->link_target == '_blank') ? 'checked="checked"' : ''); ?> />
Expand All @@ -63,7 +63,7 @@ function xfn_check($class, $value = '', $type = 'check') {
</fieldset> </fieldset>


<fieldset class="dbx-box"> <fieldset class="dbx-box">
<h3 class="dbx-handle"><?php _e('Visible') ?></h3> <h3 class="dbx-handle"><?php _e('Visible') ?></h3>
<div class="dbx-content"> <div class="dbx-content">
<label for="link_visible_yes" class="selectit"> <label for="link_visible_yes" class="selectit">
<input id="link_visible_yes" type="radio" name="link_visible" <?php if ($link->link_visible == 'Y') echo "checked='checked'"; ?> value="Y" /> <input id="link_visible_yes" type="radio" name="link_visible" <?php if ($link->link_visible == 'Y') echo "checked='checked'"; ?> value="Y" />
Expand Down

0 comments on commit 9f534eb

Please sign in to comment.