How can I print Views Exposed Filter widgets individually using views-exposed-form--mypage.tpl.php? I have five exposed filter widgets that appear on this page.  I would like to group three of them together and add a title above that group of three so that my layout goes from:

views default


A
B
C
D
E


what I want


A
TITLE


B
C
D

E


Since this customization is specific to one page, I added a views-exposed-form--mypage.tpl.php in my theme's template folder.

The code looks like this:  

&lt;div class="views-exposed-widgets clearfix"&gt;
    &lt;?php foreach ($widgets as $id =&gt; $widget): ?&gt;
      &lt;div id="&lt;?php print $widget-&gt;id; ?&gt;-wrapper" class="views-exposed-widget views-widget-&lt;?php print $id; ?&gt;"&gt;
        &lt;?php if (!empty($widget-&gt;label)): ?&gt;
          &lt;label for="&lt;?php print $widget-&gt;id; ?&gt;"&gt;
            &lt;?php print $widget-&gt;label; ?&gt;
          &lt;/label&gt;
        &lt;?php endif; ?&gt;
        &lt;?php if (!empty($widget-&gt;operator)): ?&gt;
          &lt;div class="views-operator"&gt;
            &lt;?php print $widget-&gt;operator; ?&gt;
          &lt;/div&gt;
        &lt;?php endif; ?&gt;
        &lt;div class="views-widget"&gt;
          &lt;?php print $widget-&gt;widget; ?&gt;
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;?php endforeach; ?&gt;
    &lt;?php if (!empty($sort_by)): ?&gt;
      &lt;div class="views-exposed-widget views-widget-sort-by"&gt;
        &lt;?php print $sort_by; ?&gt;
      &lt;/div&gt;
      &lt;div class="views-exposed-widget views-widget-sort-order"&gt;
        &lt;?php print $sort_order; ?&gt;
      &lt;/div&gt;
    &lt;?php endif; ?&gt;


Instead of the foreach loop, how can I print the individual widgets?
&lt;div class="views-exposed-widgets clearfix"&gt;
    &lt;?php foreach ($widgets as $id =&gt; $widget): 
       if ($id == 'SOMETHING_ID_THATIDENTIFY_B') {
         print '&lt;div id="BCD"&gt;'.t('TITLE');
       }
       else if ($id == 'SOMETHING_ID_THATIDENTIFY_E') {
         print '&lt;/div&gt;'; //Closing #BCD
       }
    ?&gt;

      &lt;div id="&lt;?php print $widget-&gt;id; ?&gt;-wrapper" class="views-exposed-widget views-widget-&lt;?php print $id; ?&gt;"&gt;
        &lt;?php if (!empty($widget-&gt;label)): ?&gt;
          &lt;label for="&lt;?php print $widget-&gt;id; ?&gt;"&gt;
            &lt;?php print $widget-&gt;label; ?&gt;
          &lt;/label&gt;
        &lt;?php endif; ?&gt;
        &lt;?php if (!empty($widget-&gt;operator)): ?&gt;
          &lt;div class="views-operator"&gt;
            &lt;?php print $widget-&gt;operator; ?&gt;
          &lt;/div&gt;
        &lt;?php endif; ?&gt;
        &lt;div class="views-widget"&gt;
          &lt;?php print $widget-&gt;widget; ?&gt;
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;?php endforeach; ?&gt;
    &lt;?php if (!empty($sort_by)): ?&gt;
      &lt;div class="views-exposed-widget views-widget-sort-by"&gt;
        &lt;?php print $sort_by; ?&gt;
      &lt;/div&gt;
      &lt;div class="views-exposed-widget views-widget-sort-order"&gt;
        &lt;?php print $sort_order; ?&gt;
      &lt;/div&gt;
    &lt;?php endif; ?&gt;