Elgg  Version master
Variables
plugin_text_file.php File Reference

Go to the source code of this file.

Variables

 $plugin_id = (string) elgg_extract('plugin_id', $vars)
 
 $plugin = elgg_get_plugin_from_id($plugin_id)
 
 $filename = elgg_extract('filename', $vars)
 
if(!$plugin instanceof\ElggPlugin) $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_view_layout(string $layout_name, array $vars=[])
Displays a layout with optional parameters.
Definition: views.php:352
if(in_array($filename,\ElggPlugin::ADDITIONAL_TEXT_FILES)) if(!$file_contents) $title
elgg_format_element(string $tag_name, array $attributes=[], string $text= '', array $options=[])
Format an HTML element.
Definition: output.php:145

Definition at line 40 of file plugin_text_file.php.

if (!$plugin instanceof\ElggPlugin) $file_contents = false

Definition at line 24 of file plugin_text_file.php.

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

Definition at line 10 of file plugin_text_file.php.

$plugin = elgg_get_plugin_from_id($plugin_id)

Definition at line 8 of file plugin_text_file.php.

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

Definition at line 7 of file plugin_text_file.php.

$text = MarkdownExtra::defaultTransform($file_contents)

Definition at line 38 of file plugin_text_file.php.

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

Definition at line 36 of file plugin_text_file.php.