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.


Top ↑

Return Return

(void)


Top ↑

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


Top ↑

Changelog Changelog

Changelog
Version Description
4.13.0 Don't strip underscores when outputting the constant keys.
3.11.2 Unknown.
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.