<?php
defined('C5_EXECUTE') or die("Access Denied.");
$form = Loader::helper('form');
$cParentID = false;
if (is_object($page)) {
	$cParentID = $page->getPageDraftTargetParentPageID();
}
if (is_object($pagetype) && $pagetype->getPageTypePublishTargetTypeID() == $configuration->getPageTypePublishTargetTypeID()) {
	$configuredTarget = $pagetype->getPageTypePublishTargetObject();
	$cID = $configuredTarget->getParentPageID();
	$pc = Page::getByID($cID, 'ACTIVE');
?>
<span class="checkbox"><?php echo t('This page will be published beneath <a href="%s">%s</a>.', Loader::helper('navigation')->getLinkToCollection($pc), $pc->getCollectionName())?></label>
<?php } ?>