section_close() public méthode

Close the current section
public section_close ( )
Exemple #1
0
 function section_close()
 {
     global $sectionCount;
     global $hasContent;
     global $sectionTitle;
     global $ID;
     // I want to do this
     // Only if in "trail" (learning) mode
     session_start();
     //error_log("section_close on ".$ID." isTrailing: ".print_r(isset($_SESSION[DOKU_COOKIE]['isTrailing']),true));
     if (isset($_SESSION[DOKU_COOKIE]['isTrailing'])) {
         if ($hasContent && $sectionCount != 1) {
             $this->doc .= DOKU_LF . '<div class=\'secedit editbutton_' . $sectionCount . '\'><form class=\'button btn_secedit\'>';
             $this->doc .= '<a href="#" class="likeLink" onclick="driver_addSectionJump(\'' . $sectionTitle . '\');return false;">';
             $this->doc .= 'Like</a></form></div>';
         }
     }
     // parent code
     parent::section_close();
     //$this->doc .= DOKU_LF.'</div>'.DOKU_LF;
 }
 public function section_close()
 {
     $this->doc .= "</div>";
     parent::section_close();
 }