[wp-testers] the is_<type>()'s needs an is_signup()

Philip M. Hofer (Frumph) philip at frumph.net
Tue May 25 10:54:15 UTC 2010

because of the induction of the content - widecolumn divs wrapping around 
the multisite signups an is_signup() would be useful.

example of what I do for it:

function comicpress_is_signup() {
global $wp_query;
if ($wp_query->query_vars['category_name'] == 'wp-signup-php') return true;
return false;

Either it's a bug that wp-signup-php is not landing inside of the body 
classes dunno, but I needed it for 2 areas:

if (comicpress_is_signup()) $classes[] = 'signup';

This is for my extended body classes so that the signup pages can have 
specific CSS assigned to it

as well as:

  <?php if (is_page('chat') || is_page('forum') && !comicpress_is_signup()) 
{ ?>
   <div id="content" class="widecolumn">
  <?php } elseif (!comicpress_is_signup()) { ?>
   <div id="content" class="narrowcolumn">
  <?php } ?>

This way the widecolumn id and class never gets doubled up within the design 

The id="content" and class="narrowcolumn/widecolumn" have been utilized as 
the standards in the areas to display the full width of an area and the 
content column, where the narrow/wide would contain the widths themself.  So 
having an is_signup() would be very prevelant to be used and would be 
recognized in the $wp_query->is_signup  to other functions if necessary.

- Phil 

More information about the wp-testers mailing list