mirror of
https://github.com/friendica/friendica
synced 2025-04-26 12:30:11 +00:00
Add Install Mode
- merged `friendica/develop` to `nupplaPhil/install_mode` - content merged `mod/install.php` to `src/Class/`
This commit is contained in:
commit
1ab965c944
128 changed files with 34290 additions and 33303 deletions
|
@ -1411,18 +1411,13 @@ function prepare_body(array &$item, $attach = false, $is_preview = false)
|
|||
function apply_content_filter($html, array $reasons)
|
||||
{
|
||||
if (count($reasons)) {
|
||||
$rnd = random_string(8);
|
||||
$content_filter_html = '<ul class="content-filter-reasons">';
|
||||
foreach ($reasons as $reason) {
|
||||
$content_filter_html .= '<li>' . htmlspecialchars($reason) . '</li>' . PHP_EOL;
|
||||
}
|
||||
$content_filter_html .= '</ul>
|
||||
<p><span id="content-filter-wrap-' . $rnd . '" class="fakelink content-filter-button" onclick=openClose(\'content-filter-' . $rnd . '\'); >' .
|
||||
L10n::t('Click to open/close') .
|
||||
'</span></p>
|
||||
<div id="content-filter-' . $rnd . '" class="content-filter-content" style="display: none;">';
|
||||
|
||||
$html = $content_filter_html . $html . '</div>';
|
||||
$tpl = get_markup_template('wall/content_filter.tpl');
|
||||
$html = replace_macros($tpl, [
|
||||
'$reasons' => $reasons,
|
||||
'$rnd' => random_string(8),
|
||||
'$openclose' => L10n::t('Click to open/close'),
|
||||
'$html' => $html
|
||||
]);
|
||||
}
|
||||
|
||||
return $html;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue