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_page_checkbox($opt, $msg, $br = 0) { global $post; ?> ID, $opt, true)) { echo " checked='checked' ";} ?> /> '; } function aspen_page_layout() { global $post; ?>  Select Sidebar Layout for this page - overrides default Page layout. Display posts as:     How to display posts on this Page with Posts - default is to use global "Post Specifics" settings Display post columns:      Display posts in this many columns - left to right, then top to bottom
Use Masonry columns:    Use Masonry for multi-column display (● Pro only)
Post Format specified, use compact layout on blog/archive pages.'); } function aspen_page_extras() { global $post; $opts = get_option( apply_filters('aspen_options','aspen_settings') , array()); // need to fetch Aspen options if ( !( current_user_can('edit_themes') || (current_user_can('edit_theme_options') && !isset($opts['_hide_mu_admin_per'])) // multi-site regular admin || (current_user_can('edit_pages') && !isset($opts['_hide_editor_per'])) // Editor || (current_user_can('edit_posts') && !isset($opts['_hide_author_per']))) // Author/Contributor ) { echo '

Aspen Per Page Options not available for your User Role.

'; return; // don't show per post panel } echo("

\n"); if ( 'page' == $post->post_type) { if (!empty($post->page_template)) { if ($post->page_template == 'paget-posts.php' && get_the_ID() == get_option( 'page_for_posts' ) ) { ?>

WARNING! You have the Dashboard:Settings:Reading 'Posts page:' option set to this page. This means this page will be used as the default WordPress blog page, which ignores the Page with Posts Template setting — only the page Title will be used. If you want this page to serve as your blog page, then that 'Posts page:' selection must be set to the '— Select —' default value, otherwise the content and any of the per page options you have set for this page will be ignored.

Page Templates" /*a*/ ); aspen_help_link('help.html#PageTemplates',aspen_t_('Help for Aspen Page Templates' /*a*/ )); echo '(This Page\'s ID: '; the_ID() ; echo ')'; aspen_html_br(); echo('Please click the (?) for more information about all the Aspen Page Templates.' /*a*/ ); echo("

\n"); echo("Per Page Options" /*a*/ ); aspen_help_link('help.html#optsperpage', aspen_t_('Help for Per Page Options' /*a*/ )); aspen_html_br(); echo("These settings let you hide various elements on a per page basis." /*a*/ ); aspen_html_br(); aspen_page_checkbox('pp_hide_site_title',aspen_t_('Hide Site Title/Tagline' /*a*/ )); aspen_page_checkbox('pp_hide_menus',aspen_t_('Hide Menus' /*a*/ )); aspen_page_checkbox('pp_hide_header_image',aspen_t_('Hide Standard Header Image' /*a*/ ),1); aspen_page_checkbox('pp_hide_header',aspen_t_('Hide Entire Header' /*a*/ )); aspen_page_checkbox('pp_hide_page_infobar',aspen_t_('Hide Info Bar on this page' /*a*/ )); aspen_page_checkbox('pp_hide_footer',aspen_t_('Hide Entire Footer' /*a*/ ),1); aspen_page_checkbox('pp_hide_page_title',aspen_t_('Hide Page Title' /*a*/ ),1); echo 'Note: the following options work with the default menu - not custom menus.
'; aspen_page_checkbox('pp_hide_on_menu',aspen_t_('Hide Page on the default Primary Menu' /*a*/ ),1); aspen_page_checkbox('pp_stay_on_page',aspen_t_('Menu "Placeholder" page. Useful for top-level menu item - don\'t go anywhere when menu item is clicked.' /*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*/ ),2); } aspen_page_layout(); ?>
" /> <Per Page body Class - CSS class name to add to HTML <body> block. Allows Per Page custom styling.

Selective Display of Widget Areas


We recommend using a plugin such as Dynamic Widgets for per-page control of which widgets are displayed in a given widget area on specific pages.

Settings for "Page with Posts" Template' /*a*/ ); aspen_help_link('help.html#PerPostTemplate',aspen_t_('Help for Page with Posts Template' /*a*/ ) ); $template = !empty($post->page_template) ? $post->page_template : "Default Template"; if ($template == 'paget-posts.php') { ?>

" /> Category - Enter list of category slugs of posts to include. (-slug will exclude specified category)" /*a*/ ); ?>
" /> Tags - Enter list of tag slugs of posts to include." /*a*/ ); ?>
" /> Single Post - Enter post slug of a single post to display." /*a*/ ); ?>
" /> Order by - Enter method to order posts by: author, date, title, or rand." /*a*/ ); ?>
" /> Sort order - Enter ASC or DESC for sort order." /*a*/ ); ?>
" /> Posts per Page - Enter maximum number of posts per page." /*a*/ ); ?>
" /> Author - Enter author (use username, including spaces), or list of author IDs' /*a*/ ); ?>
" /> Custom Post Type - Enter slug of one custom post type to display' /*a*/ ); ?>


" /> Enter number. Don't excerpt 1st \"n\" Posts - Display the non-excerpted post for the first \"n\" posts."); ?>
" /> Hide first \"n\" posts - Start with post n+1. Useful with plugin that will display first n posts using a shortcode. (e.g., Post slider)" /*a*/ ); ?>

Note: After you choose the "Page with Posts" template from the Template option in the Page Attributes box, and Publish or Save Draft, settings for "Page with Posts" will be displayed here. (Current page template: )

Aspen Per Post Options not available for your User Role.

'; 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*/ ); ?>