LLMS_Admin_System_Report::output_section( string $section_title, arry $data )
Output a section of data in the system report
Parameters Parameters
- $section_title
-
(string) (Required) Title / key of the section.
- $data
-
(arry) (Required) Array of data for the section.
Return Return
(void)
Source Source
File: includes/admin/class.llms.admin.system-report.php
if ( 'plugins' === $section_title ) {
$data = $data['active'];
}
?>
<div class="llms-setting-group">
<p class="llms-label"><?php echo self::title( $section_title ); ?></p>
<div class="llms-list">
<ul>
<?php foreach ( $data as $key => $val ) : ?>
<li><p>
<?php if ( 'plugins' === $section_title ) : ?>
<?php self::plugin_item( $val ); ?>
<?php elseif ( 'template_overrides' === $section_title ) : ?>
<?php self::template_item( $val ); ?>
<?php else : ?>
<?php echo 'constants' === $section_title ? $key : self::title( $key ); ?>: <strong><?php self::value( $val ); ?></strong>
<?php endif; ?>
</p></li>
<?php endforeach; ?>
</ul>
</div>
</div>
<?php
}
/**
* Output data related to an active plugin in the system report
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 4.13.0 | Don't strip underscores when outputting the constant keys. |
| 3.11.2 | Unknown. |
| 3.0.0 | Introduced. |