true, '_builtin' => false );
$post_types=get_post_types($args,'names','and');
foreach ($post_types as $post_type ) {
add_meta_box('post-box' . $i, 'Aspen Options For This Post', 'aspen_post_extras', $post_type, 'normal', 'high');
$i++;
}
}
function aspen_isp_true($val) {
if ($val) return true;
return false;
}
function aspen_page_checkbox($opt, $msg, $br = 0) {
global $post;
/* if (get_post_meta($post->ID, $opt, true)) { echo " checked='checked' ";} ?> /> */
?>
';
return; // don't show per post panel
}
?>
Per Post Options" /*a*/ );
aspen_help_link('help.html#PerPage', aspen_t_('Help for Per Post Options' /*a*/ ));
echo '(This Post\'s ID: '; the_ID() ; echo ')';
aspen_html_br();
echo("These settings let you control display of this individual post. Many of these options override global options set on the Aspen admin tabs." /*a*/ );
aspen_html_br();
aspen_page_checkbox('pp_force_post_full',aspen_t_('Display as full post where normally excerpted.' /*a*/ ));
aspen_page_checkbox('pp_force_post_excerpt',aspen_t_('Display post as excerpt' /*a*/ ), 1);
aspen_page_checkbox('pp_show_featured',aspen_t_('Show Featured Image with post' /*a*/ ));
// Can't add an option to hide featured in header per post because we don't know the post at header time.
aspen_page_checkbox('pp_show_post_avatar',aspen_t_('Show author avatar with post' /*a*/ ));
aspen_page_checkbox('pp_favorite_post',aspen_t_('Mark as a favorite post (adds star to title)' /*a*/ ), 1);
aspen_page_checkbox('pp_hide_post_format_label',aspen_t_('Hide Post Format label' /*a*/ ));
aspen_page_checkbox('pp_hide_post_title',aspen_t_('Hide post title' /*a*/ ));
aspen_page_checkbox('pp_post_add_link',aspen_t_('Show a "link to single page" icon at bottom of post' /*a*/ ),1);
aspen_page_checkbox('pp_hide_top_post_meat',aspen_t_('Hide top post info line' /*a*/ ));
aspen_page_checkbox('pp_hide_bottom_post_meta',aspen_t_('Hide bottom post info line' /*a*/ ));
aspen_page_checkbox('pp_hide_post_bubble',aspen_t_('Hide the comment bubble' /*a*/ ), 1);
aspen_page_checkbox('pp_hide_sidebars',aspen_t_('Hide Sidebars when this post displayed on Single Post page.' /*a*/ ), 1);
aspen_page_checkbox('pp_masonry_span2',aspen_t_('For Masonry multi-columns: make this post span two columns.' /*a*/ ),2);
aspen_page_checkbox('pp_hide_visual_editor',aspen_t_('Disable Visual Editor for this page. Useful if you enter simple HTML or other code.' /*a*/ ), 1);
if (aspen_allow_multisite()) {
aspen_page_checkbox('pp_raw_html',aspen_t_('Allow Raw HTML and scripts. Disables auto paragraph, texturize, and other processing.' /*a*/ ), 1);
}
?>
Post Format' /*a*/ );
aspen_help_link('help.html#gallerypost', aspen_t_('Help for Per Post Format' /*a*/ ));
aspen_html_br();
echo('Aspen supports Post Formats. Click the ? for more info.' /*a*/ );
aspen_html_br();
aspen_html_br();
echo('Note: when you add settings for the post here, values will be created and displayed in the "Custom Fields" box.' /*a*/ ); ?>