Skip to content

Commit

Permalink
ID#323: removed BB Code Parser.
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Achatz committed Mar 30, 2018
1 parent f9b6df8 commit 2edaf7d
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 467 deletions.
15 changes: 4 additions & 11 deletions modules/comments/pres/controller/CommentListingController.php
Expand Up @@ -24,7 +24,6 @@
use APF\modules\comments\biz\ArticleCommentManager;
use APF\tools\link\LinkGenerator;
use APF\tools\link\Url;
use APF\tools\string\AdvancedBBCodeParser;

/**
* Implements the document controller for the 'listing.html' template.
Expand Down Expand Up @@ -56,15 +55,9 @@ public function transformContent() {
// load the entries using the business component
$entries = $m->loadEntries();

$buffer = (string) '';
$buffer = (string)'';
$template = $this->getTemplate('ArticleComment');

// init bb code parser (remove some provider, that we don't need configuration files)
/* @var $bP AdvancedBBCodeParser */
$bP = $this->getServiceObject(AdvancedBBCodeParser::class);
$bP->removeProvider('standard.font.color');
$bP->removeProvider('standard.font.size');

$i = 1;
foreach ($entries as $entry) {

Expand All @@ -73,7 +66,7 @@ public function transformContent() {
$template->setPlaceHolder('Name', $entry->getName());
$template->setPlaceHolder('Date', \DateTime::createFromFormat('Y-m-d', $entry->getDate())->format('d.m.Y'));
$template->setPlaceHolder('Time', $entry->getTime());
$template->setPlaceHolder('Comment', $bP->parseCode($entry->getComment()));
$template->setPlaceHolder('Comment', $entry->getComment());

$buffer .= $template->transformTemplate();
}
Expand All @@ -97,9 +90,9 @@ public function transformContent() {
// generate the add comment link
$this->setPlaceHolder('Link',
LinkGenerator::generateUrl(Url::fromCurrent()->mergeQuery([
$urlParams['PageName'] => '',
$urlParams['PageName'] => '',
$urlParams['CountName'] => '',
'coview' => 'form'
'coview' => 'form'
]
)
)
Expand Down
216 changes: 0 additions & 216 deletions tools/string/AdvancedBBCodeParser.php

This file was deleted.

62 changes: 0 additions & 62 deletions tools/string/bbcpprovider/FontColorProvider.php

This file was deleted.

62 changes: 0 additions & 62 deletions tools/string/bbcpprovider/FontSizeProvider.php

This file was deleted.

0 comments on commit 2edaf7d

Please sign in to comment.