Exemplo n.º 1
0
 function php_strip_whitespace($file)
 {
     if (!@is_readable($file)) {
         return '';
     }
     $contents = join('', @file($file));
     $out = '';
     $state = 0;
     for ($i = 0; $i < strlen($contents); $i++) {
         if (!$state && is_whitespace($contents[$i])) {
             continue;
         }
         if (!$state && ($c_close = is_commentopen($contents, $i))) {
             $c_open_len = $contents[$i] == '/' ? 2 : 1;
             $i = strpos($contents, $c_close, $i + $c_open_len) + strlen($c_close) - 1;
             continue;
         }
         $out .= $contents[$i];
         if (is_quote($contents[$i])) {
             if ($state == $contents[$i] && !is_escaped($contents, $i)) {
                 $state = 0;
                 continue;
             }
             if (!$state) {
                 $state = $contents[$i];
                 continue;
             }
         }
     }
     return $out;
 }
Exemplo n.º 2
0
  </div>

  <div class="wpi_right_col">

    <?php 
if (show_business_info()) {
    ?>
      <?php 
    wp_invoice_show_business_information();
    ?>
    <?php 
}
?>

    <?php 
if (!is_quote()) {
    ?>
      <div class="wpi_checkout">
        <?php 
    if (allow_partial_payments()) {
        ?>
          <?php 
        show_partial_payments();
        ?>
        <?php 
    }
    ?>

        <?php 
    show_payment_selection();
    ?>