The listing of template files on the Theme Information overlay has always been rather cluttered. Please see my before and after screen shots attached.

I added the following code to the end of function "format_themes" in the file "views_plugin_display.inc" as a quick work around for the problem.

Perhaps someone could come up with a better solution. -- Patrick

//    return implode(', ', array_reverse($fixed));

    $item_arr = array_reverse( $fixed );
    $num_cols = 2;

    $tmp_list_str = "<br>\n";
    $tmp_list_str .= sprintf( "<div class=\"%s\">\n", "views-template-list-wrapper" );
    $tmp_list_str .= sprintf( "<table class=\"%s\">\n", "views-template-list-table" );

    $ii=0;
    foreach( $item_arr as $item_key => $item_val )
    {
       if( ($ii % $num_cols) == 0 ) 
            $tmp_list_str .= "<tr>\n";

       $tmp_list_str .= sprintf( "<td width=\"48%%\">%s</td>", $item_val );
    
       if( ($ii % $num_cols) == 1 )
            $tmp_list_str .= "</tr>\n";

       $ii++;
    }
    
    $tmp_list_str .= "</table>\n";
    $tmp_list_str .= "</div>\n";
    $tmp_list_str .= "<br>\n";

    return $tmp_list_str;
  }
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

pmol123’s picture

This is a very simple fix to Drupal 7 Views Theme/Theming Templates/Pages

Patrick

pmol123’s picture

Title: Template Files Listing Needed Format Fixed for quite a while. » Drupal 7 Views Theme/Theming Template Files/Pages Listing Needed Format Fixed for quite a while.
pmol123’s picture