mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-12 01:54:26 +02:00
functions moved to HTML class
update function calls to moved class.
This commit is contained in:
parent
e31dde6084
commit
a71eb1d127
8 changed files with 19 additions and 14 deletions
|
@ -7,6 +7,7 @@ namespace Friendica\Content;
|
|||
|
||||
use Friendica\Core\Protocol;
|
||||
use Friendica\Content\Feature;
|
||||
use Friendica\Content\Text\HTML;
|
||||
use Friendica\Core\L10n;
|
||||
use Friendica\Core\Renderer;
|
||||
use Friendica\Core\System;
|
||||
|
@ -169,7 +170,7 @@ class ForumManager
|
|||
$total_shown = 0;
|
||||
$forumlist = '';
|
||||
foreach ($contacts as $contact) {
|
||||
$forumlist .= micropro($contact, false, 'forumlist-profile-advanced');
|
||||
$forumlist .= HTML::micropro($contact, false, 'forumlist-profile-advanced');
|
||||
$total_shown ++;
|
||||
if ($total_shown == $show_total) {
|
||||
break;
|
||||
|
|
|
@ -862,7 +862,7 @@ class HTML
|
|||
$contacts = L10n::tt('%d Contact', '%d Contacts', $total);
|
||||
$micropro = [];
|
||||
foreach ($r as $rr) {
|
||||
$micropro[] = micropro($rr, true, 'mpfriend');
|
||||
$micropro[] = self::micropro($rr, true, 'mpfriend');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -8,6 +8,7 @@ use Friendica\App;
|
|||
use Friendica\Content\Feature;
|
||||
use Friendica\Content\ForumManager;
|
||||
use Friendica\Content\Text\BBCode;
|
||||
use Friendica\Content\Text\HTML;
|
||||
use Friendica\Core\Addon;
|
||||
use Friendica\Core\Cache;
|
||||
use Friendica\Core\Config;
|
||||
|
@ -467,7 +468,7 @@ class Profile
|
|||
$updated = '';
|
||||
$contacts = 0;
|
||||
if (!$block) {
|
||||
$contact_block = contact_block();
|
||||
$contact_block = HTML::contactBlock();
|
||||
|
||||
if (is_array($a->profile) && !$a->profile['hide-friends']) {
|
||||
$r = q(
|
||||
|
@ -785,11 +786,11 @@ class Profile
|
|||
}
|
||||
|
||||
if ($a->profile['homepage']) {
|
||||
$profile['homepage'] = [L10n::t('Homepage:'), linkify($a->profile['homepage'])];
|
||||
$profile['homepage'] = [L10n::t('Homepage:'), HTML::toLink($a->profile['homepage'])];
|
||||
}
|
||||
|
||||
if ($a->profile['hometown']) {
|
||||
$profile['hometown'] = [L10n::t('Hometown:'), linkify($a->profile['hometown'])];
|
||||
$profile['hometown'] = [L10n::t('Hometown:'), HTML::toLink($a->profile['hometown'])];
|
||||
}
|
||||
|
||||
if ($a->profile['pub_keywords']) {
|
||||
|
|
|
@ -2500,9 +2500,9 @@ class DFRN
|
|||
/// @todo Do we really need this check for HTML elements? (It was copied from the old function)
|
||||
if ((strpos($item['body'], '<') !== false) && (strpos($item['body'], '>') !== false)) {
|
||||
$base_url = get_app()->getBaseURL();
|
||||
$item['body'] = reltoabs($item['body'], $base_url);
|
||||
$item['body'] = HTML::relToAbs($item['body'], $base_url);
|
||||
|
||||
$item['body'] = html2bb_video($item['body']);
|
||||
$item['body'] = HTML::htmlToBBVideo($item['body']);
|
||||
|
||||
$item['body'] = OEmbed::HTML2BBCode($item['body']);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue