__( 'Sidebar', 'digifly' ), 'id' => 'sidebar-1', 'description' => __( 'Add widgets here to appear in your sidebar.', 'digifly' ), ); /** * The download sidebar when Easy Digital Downloads is active */ if ( digifly_is_edd_active() ) { $sidebar_args['sidebar_download'] = array( 'name' => __( 'Download Sidebar', 'digifly' ), 'id' => 'sidebar-download', 'description' => sprintf( __( 'Add widgets here to appear in your %s sidebar.', 'digifly' ), edd_get_label_singular() ), ); } /** * Sets the number of allowed widget areas */ $footer_widget_areas = apply_filters( 'digifly_footer_widget_areas', 4 ); for ( $i = 1; $i <= intval( $footer_widget_areas ); $i++ ) { $footer = sprintf( 'footer_%d', $i ); $sidebar_args[ $footer ] = array( 'name' => sprintf( __( 'Footer %d', 'digifly' ), $i ), 'id' => sprintf( 'footer-%d', $i ), 'description' => sprintf( __( 'Add widgets here to appear in footer %d.', 'digifly' ), $i ), ); } $sidebar_args = apply_filters( 'digifly_sidebar_args', $sidebar_args ); foreach ( $sidebar_args as $sidebar => $args ) { $widget_tags = array( 'before_widget' => '
', 'before_title' => '