__('Header Right', 'avenue'), 'id' => 'sidebar-header-right', 'description' => '', 'before_widget' => '', 'before_title' => '', )); register_sidebar(array( 'name' => __('Fullwidth Banner', 'avenue'), 'id' => 'sidebar-banner', 'description' => '', 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', )); register_sidebar(array( 'name' => __('Sidebar', 'avenue'), 'id' => 'sidebar-1', 'description' => '', 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', )); register_sidebar(array( 'name' => __('Footer', 'avenue'), 'id' => 'sidebar-footer', 'description' => '', 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', )); } add_action('widgets_init', 'avenue_widgets_init'); add_action('optionsframework_custom_scripts', 'optionsframework_custom_scripts'); function optionsframework_custom_scripts() { ?> '; endif; } add_action('wp_head', 'sc_smartcat_add_favicon'); function sc_smartcat_add_custom_code(){ if( of_get_option( 'sc_custom_code' ) ) : echo ''; endif; } add_action('wp_head', 'sc_smartcat_add_custom_code'); add_action('wp_head', 'sc_avenue_css'); function sc_avenue_css() { ?> __('Use this widget to display the Avenue Recent Posts.', 'sc_recent_posts_widget_domain'),) ); } // Creating widget front-end // This is where the action happens public function widget($args, $instance) { $title = apply_filters('widget_title', $instance['title']); // before and after widget arguments are defined by themes echo $args['before_widget']; if (!empty($title)) echo $args['before_title'] . $title . $args['after_title']; // This is where you run the code and display the output // include 'inc/widget.php'; echo avenue_recent_posts(); } // Widget Backend public function form($instance) { if (isset($instance['title'])) { $title = $instance['title']; } else { $title = __('Recent Articles', 'sc_recent_posts_widget_domain'); } // Widget admin form ?>

'4', 'post_status' => 'publish' ); ?>
user_login; ?>

Design by SmartCat