__( 'Main Sidebar', 'adventurous' ),
'id' => 'sidebar-1',
'description' => __( 'Shows the Widgets at the side of Content', 'adventurous' ),
'before_widget' => '',
'before_title' => '
',
'after_title' => '
',
) );
//Footer One Sidebar
register_sidebar( array(
'name' => __( 'Footer Area One', 'adventurous' ),
'id' => 'sidebar-2',
'description' => __( 'An optional widget area for your site footer', 'adventurous' ),
'before_widget' => '',
'before_title' => '
',
'after_title' => '
',
) );
//Footer Two Sidebar
register_sidebar( array(
'name' => __( 'Footer Area Two', 'adventurous' ),
'id' => 'sidebar-3',
'description' => __( 'An optional widget area for your site footer', 'adventurous' ),
'before_widget' => '',
'before_title' => '
',
'after_title' => '
',
) );
//Footer Three Sidebar
register_sidebar( array(
'name' => __( 'Footer Area Three', 'adventurous' ),
'id' => 'sidebar-4',
'description' => __( 'An optional widget area for your site footer', 'adventurous' ),
'before_widget' => '',
'before_title' => '
',
'after_title' => '
',
) );
//Footer Four Sidebar
register_sidebar( array(
'name' => __( 'Footer Area Four', 'adventurous' ),
'id' => 'sidebar-5',
'description' => __( 'An optional widget area for your site footer', 'adventurous' ),
'before_widget' => '',
'before_title' => '
',
'after_title' => '
',
) );
}
add_action( 'widgets_init', 'adventurous_widgets_init' );
/**
* Makes a custom Widget for Displaying Social Icons
*
* Learn more: http://codex.wordpress.org/Widgets_API#Developing_Widgets
*
* @package Catch Themes
* @subpackage Adventurous
* @since Adventurous 1.0
*/
class adventurous_social_widget extends WP_Widget {
/**
* Register widget with WordPress.
*/
function __construct() {
parent::__construct(
'widget_adventurous_social_widget', // Base ID
__( 'CT: Social Icons', 'adventurous' ), // Name
array( 'description' => __( 'Use this widget to add Social Icons from Social Icons Settings as a widget.', 'adventurous' ) ) // Args
);
}
/**
* Creates the form for the widget in the back-end which includes the Title , adcode, image, alt
* $instance Current settings
*/
function form($instance) {
$instance = wp_parse_args( (array) $instance, array( 'title' => '' ) );
$title = esc_attr( $instance[ 'title' ] );
?>