function fp_render_square_line

6.x theme.inc fp_render_square_line($text)
4.x theme.inc fp_render_square_line($text)
5.x theme.inc fp_render_square_line($text)

Will draw a string in a pretty square box. Used for displaying semester titles.

Parameters

string $title:

Return value

string

5 calls to fp_render_square_line()
blocks_render_blocks in modules/blocks/blocks.module
This function will actually render the HTML for the blocks requested for a particular section and region.
fp_render_currently_advising_box in includes/theme.inc
Draws the CurrentlyAdvisingBox which appears at the top of the screen, containing the student's information like name, major, etc.
_AdvisingScreen::draw_pie_chart_box in classes/_AdvisingScreen.php
This function is used to draw an individual pie chart box. It accepts values of top/bottom in order to come up with a percentage.
_AdvisingScreen::draw_progress_boxes in classes/_AdvisingScreen.php
This function calls drawPieChart to construct the student's 3 progress pie charts.
_AdvisingScreen::z__old__draw_progress_boxes in classes/_AdvisingScreen.php
This function calls drawPieChart to construct the student's 3 progress pie charts.

File

includes/theme.inc, line 1343

Code

function fp_render_square_line($text) {
  $rtn = "";

  $rtn .= "
        <table border='0' width='100%' cellpadding='0' cellspacing='0'>
       <tr>
        <td width='10%' align='left' valign='top'></td>
        <td width='80%' align='center' rowspan='2'>
         <span class='tenpt' style='color: white' ><b>$text</b></span>
        </td>
        <td width='10%' align='right' valign='top'></td>
       </tr>
       <tr>
        <td align='left' valign='bottom'></td>
        <td align='right' valign='bottom'></td>
       </tr> 
      </table>     
    
      ";

  return $rtn;

}