wordpress/wp-content/themes/basic/themify/themify-template-tags.php
/**
     * Registers footer sidebars.
     *
     * @param array  $columns Sets of sidebars that can be created.
     * @param array  $widget_attr General markup for widgets.
     * @param string $widgets_key
     * @param string $default_set
     */
Registers footer sidebars.
@param array  $columns Sets of sidebars that can be created.
@param array  $widget_attr General markup for widgets.
Registers footer sidebars . @param array $columns Sets of sidebars that can be created . @param array $widget_attr General markup for widgets .
function themify_register_grouped_widgets($columns = array(), $widget_attr = array(), $widgets_key = 'setting-footer_widgets', $default_set = 'footerwidget-3col') {
	if (empty($columns)) {
	    $columns = array(
		'footerwidget-4col' => 4,
		'footerwidget-3col' => 3,
		'footerwidget-2col' => 2,
		'footerwidget-1col' => 1,
		'none' => 0
	    );
	}
	$option = themify_get($widgets_key,$default_set,true);
	if (isset($columns[$option])) {
	    if (empty($widget_attr)) {
		$widget_attr = array(
		    'sidebar_name' => __('Footer Widget', 'themify'),
		    'sidebar_id' => 'footer-widget',
		    'before_widget' => '<div id="%1$s" class="widget %2$s">',
		    'after_widget' => '</div>',
		    'before_title' => '<h4 class="widgettitle">',
		    'after_title' => '</h4>',
		);
	    }
	    for ($x = 1; $x <= $columns[$option]; ++$x) {
		register_sidebar(array(
		    'name' => $widget_attr['sidebar_name'] . ' ' . $x,
		    'id' => $widget_attr['sidebar_id'] . '-' . $x,
		    'before_widget' => $widget_attr['before_widget'],
		    'after_widget' => $widget_attr['after_widget'],
		    'before_title' => $widget_attr['before_title'],
		    'after_title' => $widget_attr['after_title']
		));
	    }
	}
    }
function themify_register_grouped_widgets ( $ columns = array ( ) , $ widget_attr = array ( ) , $ widgets_key = 'setting-footer_widgets' , $ default_set = 'footerwidget-3col' ) { if ( empty ( $ columns ) ) { $ columns = array ( 'footerwidget-4col' => 4 , 'footerwidget-3col' => 3 , 'footerwidget-2col' => 2 , 'footerwidget-1col' => 1 , 'none' => 0 ) ; } $ option = themify_get ( $ widgets_key , $ default_set , true ) ; if ( isset ( $ columns [ $ option ] ) ) { if ( empty ( $ widget_attr ) ) { $ widget_attr = array ( 'sidebar_name' => __ ( 'Footer Widget' , 'themify' ) , 'sidebar_id' => 'footer-widget' , 'before_widget' => '<div id="%1$s" class="widget %2$s">' , 'after_widget' => '</div>' , 'before_title' => '<h4 class="widgettitle">' , 'after_title' => '</h4>' , ) ; } for ( $ x = 1 ; $ x <= $ columns [ $ option ] ; ++ $ x ) { register_sidebar ( array ( 'name' => $ widget_attr [ 'sidebar_name' ] . ' ' . $ x , 'id' => $ widget_attr [ 'sidebar_id' ] . '-' . $ x , 'before_widget' => $ widget_attr [ 'before_widget' ] , 'after_widget' => $ widget_attr [ 'after_widget' ] , 'before_title' => $ widget_attr [ 'before_title' ] , 'after_title' => $ widget_attr [ 'after_title' ] ) ) ; } } }
Registers footer sidebars.
Registers footer sidebars .