function echo_filtered()
 {
     $text = $this->data->content;
     $match = null;
     $pos1 = strpos($text, '</head>');
     $pos2 = strpos($text, '<body', $pos1);
     $pos3 = strpos($text, '>', $pos2) + 1;
     $pos4 = strpos($text, '<div class="spirit-nav">', $pos3);
     echo $this->alter_title(substr($text, 0, $pos1));
     echo '<link rel="icon" href="/favicon.ico" type="image/ico"/>';
     echo '<link rel="stylesheet" type="text/css" href="/style-v2/section-basic.css"/>';
     echo substr($text, $pos1, $pos3 - $pos1);
     virtual("/common/heading-doc.html");
     echo latest_link($this->data);
     $text = preg_replace('@(<div[^>]* )title="[^"]*"([^>]*>)@', '$1$2', substr($text, $pos4));
     echo $this->prepare_html($text);
 }
 function echo_filtered()
 {
     $text = $this->params['content'];
     $match = null;
     if (preg_match('@(?:</head>\\s*)?<body[^>]*>@is', $text, $match, PREG_OFFSET_CAPTURE)) {
         $is_xhtml = preg_match('@<!DOCTYPE[^>]*xhtml@i', $match[0][0]);
         $tag_end = $is_xhtml ? '/>' : '>';
         echo $this->alter_title(substr($text, 0, $match[0][1]));
         echo '<link rel="icon" href="/favicon.ico" type="image/ico"' . $tag_end;
         echo '<link rel="stylesheet" type="text/css" href="/style-v2/section-basic.css"' . $tag_end;
         echo $match[0][0];
         virtual("/common/heading-doc.html");
         echo latest_link($this->params);
         echo $this->prepare_html($this->remove_html_banner(substr($text, $match[0][1] + strlen($match[0][0]))));
     } else {
         echo $text;
     }
 }
Exemple #3
0
?>
  <link rel="icon" href="/favicon.ico" type="image/ico" />
  <link rel="stylesheet" type="text/css" href="/style-v2/section-doc.css" />
  <!--[if IE 7]> <style type="text/css"> body { behavior: url(/style-v2/csshover3.htc); } </style> <![endif]-->

</head>

<body>
  <div id="heading">
    <?php 
virtual("/common/heading.html");
?>
  </div>
  <?php 
if (isset($_file['data'])) {
    echo latest_link($_file['data']);
}
?>

  <div id="body">
    <div id="body-inner">
      <div id="content">
        <div class="section" id="docs">
          <div class="section-0">
            <div class="section-body">
              <?php 
echo $_file['content'];
?>
            </div>
          </div>
        </div>
Exemple #4
0
?>
  <link rel="icon" href="/favicon.ico" type="image/ico" />
  <link rel="stylesheet" type="text/css" href="/style-v2/section-doc.css" />
  <!--[if IE 7]> <style type="text/css"> body { behavior: url(/style-v2/csshover3.htc); } </style> <![endif]-->

</head>

<body>
  <div id="heading">
    <?php 
virtual("/common/heading.html");
?>
  </div>
  <?php 
if (isset($params)) {
    echo latest_link($params);
}
?>

  <div id="body">
    <div id="body-inner">
      <div id="content">
        <div class="section" id="docs">
          <div class="section-0">
            <div class="section-body">
              <?php 
echo $_file['content'];
?>
            </div>
          </div>
        </div>