コード例 #1
0
						<?php 
} else {
    ?>
							<?php 
    foreach ($lost_pages as $page) {
        ?>
								<tr>
									<td><a href="<?php 
        echo get_edit_post_link($page->ID);
        ?>
"><?php 
        echo $page->post_title;
        ?>
</a></td>
									<td><a href="<?php 
        echo ApmOptions::get_restore_page_url($page->ID, false);
        ?>
"><?php 
        _e("Restore at the end of the page tree", ApmConfig::i18n_domain);
        ?>
</a></td>
								</tr>
							<?php 
    }
    ?>
						<?php 
}
?>
					</table>
				</div>
			</div>
コード例 #2
0
			</div>
		</div>	
		<?php 
    } else {
        //The page is not in APM tree :
        $allowed_post_status = ApmConfig::$allowed_post_status;
        $allowed_post_status = apply_filters('apm_allowed_post_status', $allowed_post_status, 'page_attributes_meta_box');
        $message = __('This page is not in the Advanced Page Manager tree.', ApmConfig::i18n_domain);
        $message = apply_filters('apm_page_attributes_metabox_not_in_tree_message', $message);
        ?>
			<div id="apm_page_not_in_apm_tree">
				<?php 
        echo $message;
        ?>
				<?php 
        if (in_array($post->post_status, $allowed_post_status)) {
            ?>
					<br/><br/><a class="button" href="<?php 
            echo ApmOptions::get_restore_page_url($post->ID);
            ?>
"><?php 
            _e('Insert this page as last page of the tree', ApmConfig::i18n_domain);
            ?>
</a>
				<?php 
        }
        ?>
			</div>
		<?php 
    }
}