Elgg  Version 4.3
Variables
plugin_text_file.php File Reference

Go to the source code of this file.

Variables

 $plugin_id = elgg_extract('plugin_id', $vars)
 
 $plugin = elgg_get_plugin_from_id($plugin_id)
 
 $filename = elgg_extract('filename', $vars)
 
if(!$plugin) $file_contents = false
 
if(in_array($filename,\ElggPlugin::ADDITIONAL_TEXT_FILES)) if(!$file_contents) $title = $plugin->getDisplayName() . ": $filename"
 
 $text = MarkdownExtra::defaultTransform($file_contents)
 
 $body
 

Variable Documentation

$body
Initial value:
= elgg_view_layout('admin', [
'content' => elgg_format_element('div', ['class' => 'elgg-markdown'], $text),
'title' => $title,
'filter_id' => 'admin/plugin_text_file',
'filter_value' => "{$plugin_id}/{$filename}",
])
elgg_format_element($tag_name, array $attributes=[], $text= '', array $options=[])
Format an HTML element.
Definition: output.php:135
if(in_array($filename,\ElggPlugin::ADDITIONAL_TEXT_FILES)) if(!$file_contents) $title
elgg_view_layout($layout_name, $vars=[])
Displays a layout with optional parameters.
Definition: views.php:380

Definition at line 39 of file plugin_text_file.php.

if (!$plugin) $file_contents = false

Definition at line 22 of file plugin_text_file.php.

$filename = elgg_extract('filename', $vars)

Definition at line 8 of file plugin_text_file.php.

$plugin = elgg_get_plugin_from_id($plugin_id)

Definition at line 6 of file plugin_text_file.php.

$plugin_id = elgg_extract('plugin_id', $vars)

Definition at line 5 of file plugin_text_file.php.

$text = MarkdownExtra::defaultTransform($file_contents)

Definition at line 37 of file plugin_text_file.php.

if (in_array($filename,\ElggPlugin::ADDITIONAL_TEXT_FILES)) if (!$file_contents) $title = $plugin->getDisplayName() . ": $filename"

Definition at line 34 of file plugin_text_file.php.