Home / Admin / TplMng
Duplicate Snippet

Embed Snippet on Your Site

TplMng

Code Preview
php
<?php
// This code is part of the template, $tplData['hasShellZip'] is provided through TplMng
$hasShellZip = $tplData['hasShellZip'];
if ($hasShellZip) {
    esc_html_e('The "Shell Zip" mode allows...', 'duplicator-pro');
    ?>
<br/>
    <?php
    esc_html_e('When available this mode is recommended over the PHP "ZipArchive" mode.', 'duplicator-pro');
} else {
    $scanPath = DUP_PRO_Archive::getScanPaths();
	
	...
?>
// This code renders the template with the provided data using TplMng
<div class="engine-sub-opts">
<?php
		TplMng::getInstance()->render(
			'parts/settings/shellZipMessage',
            ['hasShellZip' => $isShellZipAvailable]
		);
?>
</div>

Comments

Add a Comment