Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ...
- <?php
- function RestrictionBoxStatus ($post) {
- $PostID = $post -> ID;
- if ($post -> post_type == "page") {
- $TheIDs = get_opt ("pages");
- }
- else {
- $TheIDs = get_opt ("posts");
- }
- if (!is_array ($page_ids)) {
- $page_ids = array ();
- }
- ?>
- <input name="pr" type="hidden" value="update">
- <input type="checkbox" name="restriction-status"<?php if (in_array ($PostID, $TheIDs)) echo ' checked="checked"'; ?>>
- Restrict This <?php echo $post -> post_type == "post" ? "Post" : "Page"; ?>
- <p>This setting apply only to this <b><u>
- <?php
- $post -> post_type == 'post' ? 'post' : 'page' . '</u></b> only.';
- _e($post);
- ?></p>
- <?php
- }
- //..
- ?>
Add Comment
Please, Sign In to add comment