Exemplo n.º 1
0
<?php

require_once TEMPLATEPATH . '/lib/Themater.php';
$theme = new Themater('EducationWP');
$theme->options['includes'] = array('featuredposts', 'social_profiles');
$theme->options['plugins_options']['featuredposts'] = array('hook' => 'main_before', 'image_sizes' => '930px. x 300px.', 'effect' => 'fade');
if ($theme->is_admin_user()) {
    unset($theme->admin_options['Ads']);
}
if ($theme->is_admin_user()) {
    $theme->admin_options['Layout']['content']['featured_image_width']['content']['value'] = '150';
    $theme->admin_options['Layout']['content']['featured_image_height']['content']['value'] = '90';
}
// Footer widgets
$theme->admin_option('Layout', 'Footer Widgets Enabled?', 'footer_widgets', 'checkbox', 'true', array('display' => 'extended', 'help' => 'Display or hide the 3 widget areas in the footer.', 'priority' => '15'));
$theme->load();
register_sidebar(array('name' => __('Primary Sidebar', 'themater'), 'id' => 'sidebar_primary', 'description' => __('The primary sidebar widget area', 'themater'), 'before_widget' => '<ul class="widget-container"><li id="%1$s" class="widget %2$s">', 'after_widget' => '</li></ul>', 'before_title' => '<h3 class="widgettitle">', 'after_title' => '</h3>'));
$theme->add_hook('sidebar_primary', 'sidebar_primary_default_widgets');
function sidebar_primary_default_widgets()
{
    global $theme;
    $theme->display_widget('Search');
    $theme->display_widget('SocialProfiles');
    $theme->display_widget('Banners125', array('banners' => array('<a href="http://fthemes.com" target="_blank"><img src="http://fthemes.com/wp-content/pro/b1.gif" alt="Free WordPress Themes" title="Free WordPress Themes" /></a><a href="http://freewpthemesblog.com" target="_blank"><img src="http://freewpthemesblog.com/wp-content/pro/fwt.gif" alt="Free WordPress Themes" title="Free WordPress Themes" /></a>')));
    $theme->display_widget('Facebook', array('url' => 'http://www.facebook.com/FThemes'));
    $theme->display_widget('Tabs');
    $theme->display_widget('Tweets', array('username' => 'FThemes'));
    $theme->display_widget('Archives');
    $theme->display_widget('Tag_Cloud');
    $theme->display_widget('Text', array('text' => '<div style="text-align:center;"><a href="http://fthemes.com" target="_blank"><img src="http://fthemes.com/wp-content/pro/b3.gif" alt="Free WordPress Themes" title="Free WordPress Themes" /></a></div>'));
}