section, at bottom
// do_action('aspen_pro_admin','html_insertion'); // (admin-advancedopts.php) HTML Insertion - at bottom
// do_action('aspen_pro_admin','site_opts'); // (admin-advancedopts.php) Site Opts - at bottom
// do_action('aspen_pro_admin','mobile_opts'); // (admin-advancedopts.php) - Mobile tab, at bottom
// do_action('aspen_pro_admin','help'); // (admin-help.php) - Help tab, above Aspen Help list
// do_action('aspen_pro_admin','general_appearance'); // (admin-mainopts.php) - General Appearance tab, at bottom
// do_action('aspen_pro_admin','header_opts'); // (admin-mainopts.php) - at bottom of Main Options:Header
// do_action('aspen_pro_admin','menu_bar'); // (admin-mainopts.php) - Menu tab, at bottom
// do_action('aspen_pro_admin','links'); // (admin-mainopts.php) - Links tab, at bottom
// do_action('aspen_pro_admin','content_areas'); // (admin-mainopts.php) - Content areas, at bottom
// do_action('aspen_pro_admin','post_specifics'); // (admin-mainopts.php) - Post Specifics tab, at bottom
// do_action('aspen_pro_admin','footer_opts'); // (admin-mainopts.php) - Footer tab, above Site Copyright
// do_action('aspen_pro_admin','widget_areas'); // (admin-mainopts.php) - widget areas tab, at bottom
// do_action('aspen_pro_admin','layout'); // (admin-mainopts.php) - Layout tab, at bottom
// do_action('aspen_pro_admin','aspen_pro_admin'); // (admin-pro.php) - only called if pro installed, at bottom of Aspen Pro page
// do_action('aspen_pro_admin','save_restore'); // (admin-saverestore.php) - Save/Restore tab, near bottom, above Reset to default
// do_action('aspen_pro_admin','show_subthemes'); // (admin-subthemes.php) - on Aspen Subthemes tab before visit our website
// do_action('aspen_pro_admin','process_options'); // (admin-top.php) - to handle processing of options
// do_action('aspen_pro_admin','admin_options'); // (admin-top.php) - Admin Opts, at bottom
case 'aspen_pro_admin':
aspen_pro_admin();
break;
case 'footer_opts':
aspen_pro_footeropts();
break;
case 'fonts':
aspen_pro_fonts_pro_admin();
break;
case 'general_appearance':
aspen_pro_general_apperarance();
break;
case 'header_opts':
aspen_pro_mainopts_header();
break;
case 'head_section':
aspen_pro_actions_filters(); // Add aribitrary PHP to the
break;
case 'post_specifics':
aspen_pro_post_specifics();
break;
case 'process_options':
aspen_pro_process_options();
break;
// cases with no Pro extensions
case 'admin_options':
case 'content_areas':
case 'help':
case 'html_insertion': // use filter aspen_pro_html_inject_filter
case 'layout':
case 'links':
case 'menu_bar':
case 'mobile_opts':
//case 'process_options': // process submitted options
case 'save_restore':
case 'show_subthemes':
case 'site_opts':
case 'widget_areas':
break;
default:
// echo '
Aspen Pro Extra Admin: ' . $action . '
';
break;
}
}
// =========================== filters ============================
add_filter('aspen_pro_html_inject', 'aspen_pro_html_inject_filter');
function aspen_pro_html_inject_filter($areas) {
$new_areas = array (
array('name'=>'', 'id'=>'submit', 'info' => '', 'help' => ''),
array('name' => 'Additional Insertion Areas' . aspen_pro_pro_stamp(2), 'id' => 'pro_insert', 'info' => '', 'help' => ''),
array ('name'=>'Mobile: Header Insert Code', 'id'=>'+mobile_header', 'info' =>
'This HTML code will be inserted into the #branding div header area right above where the standard site header image goes, but displayed only on mobile devices (small tablets and smaller screens.)',
'help' => ''),
array ('name'=>'Desktop: Header Insert Code', 'id'=>'+desktop_header', 'info' =>
'This HTML code will be inserted into the #branding div header area right above where the standard site header image goes, but displayed only on desktop devices (large tablets and desktop browsers)',
'help' => ''),
array ('name'=>'Pre-Main Code', 'id'=>'+premain', 'info' =>
'This code will be inserted after the #branding div and before the #main div.',
'help' => ''),
array ('name'=>'Pre-Container Code', 'id'=>'+precontent', 'info' =>
'This code will be inserted inside the #container div that wraps content, including before the top widget areas. It will have the same width as the container area.',
'help' => ''),
array ('name'=>'Post-Post Content Code', 'id'=>'+postpostcontent', 'info' =>
'This code will be inserted after the content area of each post.',
'help' => ''),
array('name'=>'', 'id'=>'submit', 'info' => '', 'help' => ''),
array ('name'=>'Pre-Comments Code', 'id'=>'+precomments', 'info' =>
'This code will be inserted just before the #comments div where comments are displayed. If comments
are open for the page, this area will include the class .precomments-comments, if closed .precomments-nocomments.',
'help' => ''),
array ('name'=>'Post-Comments Code', 'id'=>'+postcomments', 'info' =>
'This code will be inserted right after the #comments div where comments are displayed. If comments
are open for the page, this area will include the class .postcomments-comments, if closed .postcomments-nocomments.',
'help' => ''),
array ('name'=>'Pre-Footer Code', 'id'=>'+prefooter', 'info' =>
'This code will be inserted just before the footer #colophon div.',
'help' => ''),
array('name'=>'', 'id'=>'submit', 'info' => '', 'help' => ''),
array ('name'=>'Pre-Left Sidebar', 'id'=>'+presidebar_left',
'info' => 'This code will be inserted just before the left sidebar area.',
'help' => ''),
array ('name'=>'Pre-Right Sidebar', 'id'=>'+presidebar_right', 'info' =>
'This code will be inserted just before the right sidebar area.',
'help' => '')
);
return array_merge($areas,$new_areas);
}
//============================================================= THE CODE ========================================================
//
// -- Actions and Filters
//
function aspen_pro_actions_filters() {
?>
Actions and Filters
This Option for Advanced Users! You can add arbitrary PHP code here. This option is intended to allow
you to add WordPress Actions and Filters to the Visitor View of your site. This PHP code is executed at the very
beginning of the theme's header.php template file before any HTML is emitted.
Do NOT bracket the code with <?php and ?> at the beginning and end. See the Help file for more technical details.
'Footer Width', 'type' =>'=subheader', 'info' => $atw),
array('name' => 'Wide Footer Area BG', 'id' => 'footer_last', 'type' => '+checkbox', //code
'info' => 'Make Footer Area Background full screen width
(or width specified below).'),
array('name' => 'Wide Footer Content', 'id' => 'footer_wide_content', 'type' => '+checkbox', //code
'info' => 'Also make Footer Content (Widget Areas, Footer Insert Code, Copyright/Powered By) use full screen width.
If not checked, then content will be constrained to Theme Width.'),
array('name' => 'Footer Width', 'id' => 'footer_width_int', 'type' => '+val_px',
'info' => 'For wide footer area, set the maximum width of the Footer Area. Can be less than theme width. If blank, full screen width used.')
);
aspen_form_show_options($opts);
echo " \n";
}
// ========================================== MAIN OPTIONS : GENERAL APPEARANCE =======================================
function aspen_pro_general_apperarance() {
// ================== BACKGROUND IMAGES ====================
?>
'Header Widget Area ', 'id' => 'a_headerwidgetarea', 'type' =>'subheader',
'info' => $atw,
'help' => 'help.html#HeaderWidgetArea'),
array('name' => 'Area BG', 'id' => '_hdr_widg_bgcolor', 'type' => 'ctext',
'info' => 'Background for the header horizontal widget area. ♦'),
array('name' => 'Area Font Size', 'id' => '_hdr_widg_fontsize', 'type' => 'val_percent',
'info' => 'Header Widget Area font size (default: 100%). ♦'),
array('name' => 'Area Height', 'id' => '_hdr_widg_h_int', 'type' => 'val_px',
'info' => 'Header widget area height. (default:tallest widget) ♦'),
array('name' => 'Show Only via Shortcode', 'id' => '_hdr_widg_shortcode_only', 'type' => '=checkbox',
'info' => 'Display the horizontal header widget area using the [aspen_hoizontal_widget_area] shortcode. (After Header Image option ignored.) ♦'),
array('name' => 'Show on Front Page Only', 'id' => '_hdr_widg_frontpage', 'type' => '=checkbox',
'info' => 'Display the header widget area on the front page only. (Also see Hide Header Image on Front Page.) ♦'),
array('name' => 'Display After Header Image', 'id' => '_hdr_widg_afterimg', 'type' => '=checkbox',
'info' => 'Display the header widget area after (under) the header image. ♦'),
array('name' => 'Hide Widget Area for Normal View', 'id' => '_hdr_widg_hide_normal', 'type' => '=checkbox',
'info' => 'Hide entire header widget area on all pages for normal (desktop) view (will show on narrow desktop and mobile views). ♦' ),
array('name' => '#070Hide Widget Area for Mobile View', 'id' => '_hdr_widg_hide_mobile', 'type' => '=checkbox',
'info' => 'Hide entire header widget area for mobile devices. ♦' ),
array( 'type' => 'submit'),
array('name' => 'Header Widget Area Widgets', 'type' =>'subheader', 'info' => $atw2),
array('name' => 'First', 'id' => '_hdr_widg_1', 'type' => 'hdr_widget',
'info' => '' ),
array('name' => 'IMPORTANT!', 'id' => 'headern4', 'type' => '=note',
'info' => 'You must specify a width for each widget you use in this area for proper layout on all browsers.'),
array('name' => 'Second', 'id' => '_hdr_widg_2', 'type' => 'hdr_widget',
'info' => '' ),
array('name' => 'Third', 'id' => '_hdr_widg_3', 'type' => 'hdr_widget',
'info' => '' ),
array('name' => 'Fourth', 'id' => '_hdr_widg_4', 'type' => 'hdr_widget',
'info' => '' ),
array('name' => 'Header Widget Padding:', 'id' => 'headern2', 'type' => '=note',
'info' => 'To add padding to a widget, use widget\'s BG "CSS+" and add "{padding:5px 5px 5px 5px;}" - adjust values as needed.'),
// bg color, font size, min height, max-width; margins?, 1: bg, %, 2:bg, %, 3: bg, %, 4: bg, % bg-image?
array('name' => 'Header Width', 'id' => 'a_hdr_advanced', 'type' =>'=subheader',
'info' => $atw3),
array('name' => 'Make Header Area BG Wide', 'id' => 'header_first', 'type' => '+checkbox', //code
'info' => 'Make Header Area Background full screen width
(or width specified below). This applies to BG color only! See next option below.'),
array('name' => 'Wide Header Content', 'id' => 'header_first_content', 'type' => '+checkbox', //code
'info' => 'Also make Header Content (Title, tagline, image, Header Insert Code) use full screen width.
If not checked, then content will be constrained to Theme Width.'),
array('name' => 'Wide Menus', 'id' => 'header_first_menus', 'type' => '+checkbox', //code
'info' => 'Make menus wide. You can also use Center Menu on Menus tab in conjunction with this option.'),
array('name' => 'Note:', 'id' => 'headern0', 'type' => 'note',
'info' => 'See Header Image section above for more options about sizing the header image.'),
array('name' => 'Header Area Width', 'id' => 'header_area_width_int', 'type' => '=val_px',
'info' => 'For wide header area, set the maximum width of the Header Area. If blank, full screen width used. Most effective if more than Theme Width.'),
array('name' => 'Wide Main Area BG', 'id' => 'wide_main_bg', 'type' => '+checkbox',
'info' => "Extend Main Area BG to edges. Most useful with Wide Header and Footer Areas."),
);
aspen_form_show_options($opts);
}
function aspen_pro_post_specifics() {
$atw = 'Replace Info Lines with custom info line templates. Advanced options: see help file' . aspen_pro_pro_stamp(1);
$opts = array (
array( 'type' => 'submit'),
array('name' => 'Post Meta Custom Info Lines', 'type' => '=subheader_alt',
'info' => $atw, 'help' => 'help.html#CustomInfo'),
array('name' => 'Top Post Info Line', 'id' => '_custom_posted_on', 'type' => '+textarea',
'info' => 'Custom template for top post info line. See help file! ♦'),
array('name' => 'Bottom Post Info Line', 'id' => '_custom_posted_in', 'type' => '+textarea',
'info' => 'Custom template for bottom post info line. ♦'),
array('name' => 'Top Post Info Line (Single)', 'id' => '_custom_posted_on_single', 'type' => '+textarea',
'info' => 'Custom template for top post info line on single pages. ♦'),
array('name' => 'Bottom Post Info Line (Single)', 'id' => '_custom_posted_in_single', 'type' => '+textarea',
'info' => 'Custom template for bottom post info line on single pages. ♦')
);
aspen_form_show_options($opts);
}
/* =========================== fonts admin code =========================== */
function aspen_pro_fonts_pro_admin() {
global $aspen_fonts_defs;
$aspen_std_fonts = array( '','Google Web Font',
'"Helvetica Neue", Helvetica, sans-serif',
'Arial,Helvetica,sans-serif',
'Verdana,Arial,sans-serif',
'Tahoma, Arial,sans-serif',
'"Arial Black",Arial,sans-serif',
'"Avant Garde",Arial,sans-serif',
'"Comic Sans MS",Arial,sans-serif',
'Impact,Arial,sans-serif',
'"Trebuchet MS", Helvetica, sans-serif',
'"Century Gothic",Arial,sans-serif',
'"Lucida Grande",Arial,sans-serif',
'Univers,Arial,sans-serif',
'"Times New Roman",Times,serif',
'"Bitstream Charter",Times,serif',
'Georgia,Times,serif',
'Palatino,Times,serif',
'Bookman,Times,serif',
'Garamond,Times,serif',
'"Courier New",Courier',
'"Andale Mono",Courier'
);
?>
Aspen Font Control
Aspen Pro - Font Control
*/
echo (' | ');
$count = 0;
foreach ($aspen_fonts_defs as $option => $row) {
if ($row['id'][0] == '_') {
echo('' . $row['label'] . ' | ');
} else {
$count++;
}
}
$tdir = aspen_relative_url('') . 'includes/pro/';
$readme = $tdir . 'pro-help.html';
?>
Font Control Help |
The Aspen Font Control panel gives you fine tuned control over the fonts various elements of your site will use.
You can use a set of standard Web fonts, or for total flexibility, you can use any of the free
Google Web Fonts. Once you
get the hang of using this interface, it is quite easy to specify fonts. However, there is a small learning curve,
and you really should read the complete instructions in the
Aspen Features Help document!
For best results, please follow Steps 1, 2, 3, and 4 for each font you want to use. Read
the instructions for each step carefully.
The above Font Style Generator settings will be saved when you Save Settings, but they generally are used
on a one-shot basis.
Click button to paste current Font CSS Definition defined above to this element.
Formerly Aspen Pro Features now included free with Aspen Shortcodes and Widgets Plugin!
Because so few people have adopted Aspen Pro, we've decided to make it a free option automatically included
with the Aspen Shortcodes and Widgets Plugin.
If you never had Aspen Pro, you should notice that many new options are now available to you. All for free!
If you have been an Aspen Pro user, you should see no changes in how your sites work as long as you have the
new Aspen Shortcodes and Widgets Plugin installed. (Note: for some time, there may be references
here and there to Aspen Pro. Eventually, these should be eliminated, but as long as you have a new version
of Aspen Shortcodes and Widgets, everything will work just like Aspen Pro used to.
Part of the reason for the switch is we've introduced a brand new theme: Weaver Xtreme. If you are just gettign started,
we highly recommend that you try Weaver Xtreme instead.
(Formerly Aspen Pro Feature Now Free)';
return $ap;
}
function aspen_pro_help_link( $ref, $label) {
if (function_exists('aspen_help_link'))
aspen_help_link($ref,$label);
else
echo 'Help not available - activate Aspen Theme';
}
?>