Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

LLMS_Notification_View_Certificate_Earned::get_mini_html( $title,  $content )


Description Description


Source Source

File: includes/notifications/views/class.llms.notification.view.certificate.earned.php

	private function get_mini_html( $title, $content ) {
		$attrs = array(
			'class' => array(),
			'id' => array(),
			'style' => array(),
		);
		$allowed = array(
			'h1' => $attrs,
			'h2' => $attrs,
			'h3' => $attrs,
			'h4' => $attrs,
			'h5' => $attrs,
			'h6' => $attrs,
			'p' => $attrs,
			'ul' => $attrs,
			'ol' => $attrs,
			'li' => $attrs,
			'strong' => $attrs,
			'em' => $attrs,
			'i' => $attrs,
			'b' => $attrs,
		);
		ob_start();
		?>
		<div class="llms-mini-cert">
			<h2 class="llms-mini-cert-title"><?php echo $title; ?></h2>
			<?php echo wp_kses( $content, $allowed ); ?>
		</div>
		<?php
		return ob_get_clean();

	}


Top ↑

User Contributed Notes User Contributed Notes

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





Permalink: