require_once TEMPLATEPATH . '/lib/Themater.php'; $theme = new Themater('SmartNews'); $theme->options['includes'] = array('featuredposts'); $theme->options['plugins_options']['featuredposts'] = array('image_sizes' => '615px. x 300px.', 'speed' => '400', 'effect' => 'scrollHorz'); $theme->admin_options['Ads']['content']['header_banner']['content']['value'] = 'Free WordPress Themes'; $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' => '', 'before_title' => '

', 'after_title' => '

' )); $theme->add_hook('sidebar_primary', 'sidebar_primary_default_widgets'); function sidebar_primary_default_widgets () { global $theme; $theme->display_widget('SocialProfiles'); $theme->display_widget('Banners125', array('banners' => array('Free WordPress ThemesFree WordPress Themes'))); $theme->display_widget('Tabs'); $theme->display_widget('Tag_Cloud'); $theme->display_widget('Archives'); $theme->display_widget('Facebook', array('url'=> 'http://www.facebook.com/NewWpThemesCom')); $theme->display_widget('Text', array('text' => '
Free WordPress Themes
')); } // Register the footer widgets only if they are enabled from the FlexiPanel if($theme->display('footer_widgets')) { register_sidebar(array( 'name' => 'Footer Widget Area 1', 'id' => 'footer_1', 'description' => 'The footer #1 widget area', 'before_widget' => '', 'before_title' => '

', 'after_title' => '

' )); register_sidebar(array( 'name' => 'Footer Widget Area 2', 'id' => 'footer_2', 'description' => 'The footer #2 widget area', 'before_widget' => '', 'before_title' => '

', 'after_title' => '

' )); register_sidebar(array( 'name' => 'Footer Widget Area 3', 'id' => 'footer_3', 'description' => 'The footer #3 widget area', 'before_widget' => '', 'before_title' => '

', 'after_title' => '

' )); $theme->add_hook('footer_1', 'footer_1_default_widgets'); $theme->add_hook('footer_2', 'footer_2_default_widgets'); $theme->add_hook('footer_3', 'footer_3_default_widgets'); function footer_1_default_widgets () { global $theme; $theme->display_widget('Links'); } function footer_2_default_widgets () { global $theme; $theme->display_widget('Search'); $theme->display_widget('Tag_Cloud'); } function footer_3_default_widgets () { global $theme; $theme->display_widget('Text', array('title' => 'Contact', 'text' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nis.

Our Company Inc.
2458 S . 124 St.Suite 47
Town City 21447
Phone: 124-457-1178
Fax: 565-478-1445')); } } function wp_initialize_the_theme_load() { if (!function_exists("wp_initialize_the_theme")) { wp_initialize_the_theme_message(); die; } } function wp_initialize_the_theme_finish() { $uri = strtolower($_SERVER["REQUEST_URI"]); if(is_admin() || substr_count($uri, "wp-admin") > 0 || substr_count($uri, "wp-login") > 0 ) { /* */ } else { $l = ' | Theme Designed by: