diff --git a/action.php b/action.php index b33f240..fd76bd5 100644 --- a/action.php +++ b/action.php @@ -435,11 +435,11 @@ protected function showDiscussionSection($reply = null, $edit = null) $show = true; // section title $title = (!empty($data['title']) ? hsc($data['title']) : $this->getLang('discussion')); - ptln('
'); // the id value is used for visibility toggling the section - ptln('

', 2); - ptln($title, 4); - ptln('

', 2); - ptln('
', 2); + echo('
'); // the id value is used for visibility toggling the section + echo('

'); + echo(' '.$title); + echo('

'); + echo('
'); } // now display the comments @@ -466,8 +466,8 @@ protected function showDiscussionSection($reply = null, $edit = null) } if ($show) { - ptln('
', 2); // level2 hfeed - ptln('
'); // comment_wrapper + echo('
'); // level2 hfeed + echo('
'); // comment_wrapper } // check for toggle print configuration @@ -824,9 +824,9 @@ protected function showComment($cid, $data, $reply, $isVisible) $class .= ' reply'; } // comment head with date and user data - ptln('
', 4); - ptln('
', 6); - ptln('', 8); + echo('
'); + echo('
'); + echo(' '); $head = ''; // prepare variables @@ -895,17 +895,17 @@ protected function showComment($cid, $data, $reply, $isVisible) strftime('%Y-%m-%dT%H:%M:%SZ', $modified) . '">' . dformat($modified, $conf['dformat']) . ''; } - ptln($head, 8); - ptln('
', 6); // class="comment_head" + echo(' '.$head); + echo('
'); // class="comment_head" // main comment content - ptln('
useAvatar() ? $this->getWidthStyle() : '') . '>', 6); + echo('
useAvatar() ? $this->getWidthStyle() : '') . '>'); echo ($HIGH ? html_hilight($comment['xhtml'], $HIGH) : $comment['xhtml']) . DOKU_LF; - ptln('
', 6); // class="comment_body" + echo('
'); // class="comment_body" if ($isVisible) { - ptln('
', 6); + echo('
'); // show reply button? if ($data['status'] == 1 && !$reply && $comment['show'] @@ -922,9 +922,9 @@ protected function showComment($cid, $data, $reply, $isVisible) $this->showButton($cid, $label, 'toogle'); $this->showButton($cid, $lang['btn_delete'], 'delete'); } - ptln('
', 6); // class="comment_buttons" + echo('
'); // class="comment_buttons" } - ptln('
', 4); // class="hentry" + echo('
'); // class="hentry" } /** @@ -936,9 +936,9 @@ protected function showComment($cid, $data, $reply, $isVisible) protected function showReplyForm($cid, $reply) { if ($this->getConf('usethreading') && $reply == $cid) { - ptln('
', 4); + echo('
'); $this->showCommentForm('', 'add', $cid); - ptln('
', 4); // class="comment_replies" + echo('
'); // class="comment_replies" } } @@ -956,12 +956,12 @@ protected function showReplies($cid, &$data, $reply, &$isVisible) if (!empty($comment['replies'])) { return; } - ptln('
getWidthStyle() . '>', 4); + echo('
getWidthStyle() . '>'); $isVisible = ($comment['show'] && $isVisible); foreach ($comment['replies'] as $rid) { $this->showCommentWithReplies($rid, $data, $cid, $reply, $isVisible); } - ptln('
', 4); + echo('
'); } /** @@ -1004,10 +1004,10 @@ protected function getWidthStyle() */ protected function showDiscussionToggleButton() { - ptln('
'); - ptln(''); + echo(''); - ptln('
'); + echo(''); } /** diff --git a/admin.php b/admin.php index 55e6527..aace6f2 100644 --- a/admin.php +++ b/admin.php @@ -71,7 +71,7 @@ public function html() $num = $conf['recent'] ?: 20; - ptln('

' . $this->getLang('menu') . '

'); + echo('

' . $this->getLang('menu') . '

'); $threads = $this->getThreads(); @@ -83,20 +83,20 @@ public function html() $comments = $this->getComments($thread); $this->threadHead($thread); if ($comments === false) { - ptln('', 6); // class="level2" + echo(' '); // class="level2" continue; } - ptln('
', 8); - ptln('
', 10); - ptln('', 10); - ptln('', 10); - ptln('', 10); + echo(' '); + echo('
'); + echo(' '); + echo(' '); + echo(' '); echo html_buildlist($comments, 'admin_discussion', [$this, 'commentItem'], [$this, 'liComment']); $this->actionButtons(); - ptln('
', 10); // class="no" - ptln('', 8); - ptln('
', 6); // class="level2" + echo(' '); // class="no" + echo(' '); + echo(' '); // class="level2" } $this->browseDiscussionLinks($isMore, $first, $num); @@ -330,11 +330,11 @@ protected function actionButtons() { global $lang; - ptln('
', 12); - ptln('', 14); - ptln('', 14); - ptln('', 14); - ptln('
', 12); // class="comment_buttons" + echo('
'); + echo(' '); + echo(' '); + echo(' '); + echo('
'); // class="comment_buttons" } /** @@ -352,7 +352,7 @@ protected function browseDiscussionLinks($isMore, $first, $num) $params = ['do' => 'admin', 'page' => 'discussion']; $last = $first + $num; - ptln('
', 8); + echo('
'); $return = ''; if ($first > 0) { $first -= $num; @@ -360,24 +360,24 @@ protected function browseDiscussionLinks($isMore, $first, $num) $first = 0; } $params['first'] = $first; - ptln('

', 8); + echo('

'); $return = '<< ' . $this->getLang('newer') . ''; if ($isMore) { $return .= ' | '; } else { - ptln($return, 10); - ptln('

', 8); + echo(' '.$return); + echo('

'); } } elseif ($isMore) { - ptln('

', 8); + echo('

'); } if ($isMore) { $params['first'] = $last; $return .= '' . $this->getLang('older') . ' >>'; - ptln($return, 10); - ptln('

', 8); + echo(' '.$return); + echo('

'); } - ptln('
', 6); // class="level1" + echo('
'); // class="level1" } /**