Subdomain Posts
None | 1 hour ago
None | 1 hour ago
None | 4 hours ago
None | 4 hours ago
None | 9 hours ago
None | 9 hours ago
None | 10 hours ago
None | 12 hours ago
None | 15 hours ago
None | 15 hours ago
Recent Posts
None | 14 sec ago
SQL | 1 min ago
None | 1 min ago
PHP | 1 min ago
PHP | 1 min ago
PHP | 2 min ago
PHP | 2 min ago
None | 3 min ago
OCaml | 3 min ago
None | 4 min ago
Sitereport
Find cool info about any domain on the internet?
visit sitereport
Free Subdomains
Want a pastebin.com sub-domain for your community?
learn more...
What is pastebin?
Pastebin is a website that hosts all your text & code on dedicated servers for easy sharing.
learn more...
Learn a little bit about the new Pastebin.com on our help page. hide message
By ntom on the 11th of Feb 2008 11:42:09 AM Download | Raw | Embed | Report
  1. function _cat_row( $category, $level, $name_override = false ) {
  2.         global $class;
  3.  
  4.         $pad = str_repeat( '— ', $level );
  5.         if ( current_user_can( 'manage_categories' ) ) {
  6.                 $edit = "<a href="http://www.theatons.com/blog/wp-admin/categories.php?action=edit&cat_ID=$category-%3Eterm_id" class="edit">".__( 'Edit' )."</a>
  7.  
  8. ";
  9.                 $default_cat_id = (int) get_option( 'default_category' );
  10.                 $default_link_cat_id = (int) get_option( 'default_link_category' );
  11.  
  12.                 if ( $category->term_id != $default_cat_id )
  13.                         $edit .= "
  14. <a href="http://www.theatons.com/blog/wp-admin/%22%20.%20wp_nonce_url%28%20%22categories.php?action=delete&cat_ID=$category-%3Eterm_id%22,">term_id ) . "' onclick=\"return deleteSomething( 'cat', $category->term_id, '" . js_escape(sprintf( __("You are about to delete the category '%s'.nAll posts that were only assigned to this category will be assigned to the '%s' category.nAll links that were only assigned to this category will be assigned to the '%s' category.n'OK' to delete, 'Cancel' to stop." ), $category->name, get_catname( $default_cat_id ), get_catname( $default_link_cat_id ) )) . "' );\" class='delete'>".__( 'Delete' )."</a>";
  15.                 else
  16.                         $edit .= "
  17. ".__( "Default" );
  18.         } else
  19.                 $edit = '';
  20.  
  21.         $class = ( ( defined( 'DOING_AJAX' ) && DOING_AJAX ) || " class='alternate'" == $class ) ? '' : " class='alternate'";
  22.  
  23.         $category->count = number_format_i18n( $category->count );
  24.         $posts_count = ( $category->count > 0 ) ? "<a href="http://www.theatons.com/blog/wp-admin/edit.php?cat=$category-%3Eterm_id">$category->count</a>" : $category->count;
  25.         $output = "
  26.  
  27. $category->term_id
  28. " . ( $name_override ? $name_override : $pad . ' ' . $category->name ) . "
  29. $category->description
  30. $posts_count
  31. $edit
  32.  
  33. nt
  34.  
  35. n";
  36.  
  37.         return apply_filters('cat_row', $output);
  38. }
Submit a correction or amendment below. [ previous version ] | [ difference ] | Make A New Post
To highlight particular lines, prefix each line with @h@
Syntax highlighting:
Post expiration:
Post exposure:
Name / Title:
Email: