__( 'Main Sidebar', 'catch-evolution' ), 'id' => 'sidebar-1', 'before_widget' => '", 'before_title' => '

', 'after_title' => '

', ) ); //Third Column Sidebar register_sidebar( array( 'name' => __( 'Third Column Sidebar', 'catch-evolution' ), 'id' => 'catchevolution_third', 'before_widget' => '", 'before_title' => '

', 'after_title' => '

', ) ); // Header Right Sidebar register_sidebar( array( 'name' => __( 'Header Right Sidebar', 'catch-evolution' ), 'id' => 'catchevolution_header_right_sidebar', 'before_widget' => '", 'before_title' => '

', 'after_title' => '

', ) ); // WooCommerce Sidebar if ( class_exists( 'Woocommerce' ) ) { register_sidebar( array( 'name' => __( 'WooCommerce Sidebar', 'catch-evolution' ), 'id' => 'catchevolution_woocommerce_sidebar', 'before_widget' => '", 'before_title' => '

', 'after_title' => '

', ) ); } //Footer One Sidebar register_sidebar( array( 'name' => __( 'Footer Area One', 'catch-evolution' ), 'id' => 'sidebar-2', 'description' => __( 'An optional widget area for your site footer', 'catch-evolution' ), 'before_widget' => '", 'before_title' => '

', 'after_title' => '

', ) ); //Footer Two Sidebar register_sidebar( array( 'name' => __( 'Footer Area Two', 'catch-evolution' ), 'id' => 'sidebar-3', 'description' => __( 'An optional widget area for your site footer', 'catch-evolution' ), 'before_widget' => '", 'before_title' => '

', 'after_title' => '

', ) ); //Footer Three Sidebar register_sidebar( array( 'name' => __( 'Footer Area Three', 'catch-evolution' ), 'id' => 'sidebar-4', 'description' => __( 'An optional widget area for your site footer', 'catch-evolution' ), 'before_widget' => '", 'before_title' => '

', 'after_title' => '

', ) ); } add_action( 'widgets_init', 'catchevolution_widgets_init' ); /** * Makes a custom Widget for Displaying Ads * * Learn more: http://codex.wordpress.org/Widgets_API#Developing_Widgets * * @package Catch Evolution */ class catchevolution_adwidget extends WP_Widget { /** * Register widget with WordPress. */ function __construct() { parent::__construct( 'widget_catchevolution_adwidget', // Base ID __( 'CT: Adspace Widget', 'catch-evolution' ), // Name array( 'description' => __( 'Use this widget to add any type of Advertisement as a widget.', 'catch-evolution' ) ) // 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' => '', 'adcode' => '', 'image' => '', 'href' => '', 'target' => '0', 'alt' => '' ) ); $title = esc_attr( $instance[ 'title' ] ); $adcode = esc_textarea( $instance[ 'adcode' ] ); $image = esc_url( $instance[ 'image' ] ); $href = esc_url( $instance[ 'href' ] ); $target = $instance['target'] ? 'checked="checked"' : ''; $alt = esc_attr( $instance[ 'alt' ] ); ?>

or

id="get_field_id('target'); ?>" name="get_field_name('target'); ?>" />

id_base ) . $after_title; } else { echo ''; } if ( '' != $adcode ) { echo $adcode; } else { echo '' . $alt . ''; } echo $after_widget; } } /** * Makes a custom Widget for Displaying Ads * * Learn more: http://codex.wordpress.org/Widgets_API#Developing_Widgets * * @package Catch Evolution */ class catchevolution_social_search_widget extends WP_Widget { /** * Register widget with WordPress. */ function __construct() { parent::__construct( 'widget_catchevolution_social_widget', // Base ID __( 'CT: Social-Search Widget', 'catch-evolution' ), // Name array( 'description' => __( 'Use this widget to add Social Icons from Social Icons Settings & Search as a widget.', 'catch-evolution' ) ) // 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' ] ); ?>

id_base ) . $after_title; } catchevolution_social_networks(); echo $after_widget; } } /** * Makes a custom Widget for Displaying Ads * * Learn more: http://codex.wordpress.org/Widgets_API#Developing_Widgets * * @package Catch Evolution */ class catchevolution_social_widget extends WP_Widget { /** * Register widget with WordPress. */ function __construct() { parent::__construct( 'widget_catchevolution_social_search_widget', // Base ID __( 'CT: Social Widget', 'catch-evolution' ), // Name array( 'description' => __( 'Use this widget to add Social Icons from Social Icons Settings & Search as a widget.', 'catch-evolution' ) ) // 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' ] ); ?>

id_base ) . $after_title; } catchevolution_social_search(); echo $after_widget; } }