wordpress/wp-content/themes/basic/themify/themify-admin.php
/**
	 * Widgets module function
	 * @return string Module markup
	 */
Widgets module function
@return string Module markup
Widgets module function @return string Module markup
function themify_footer_widgets(){
		$val = themify_get( 'setting-footer_widgets',false,true );
		$options = array(
			array(
				'value' => 'footerwidget-4col',
				'img' => 'themify/img/sidebars/4col.png',
				'title' => __('Widgets 4 Columns', 'themify')),
			array(
				'value' => 'footerwidget-3col',
				'img' => 'themify/img/sidebars/3col.png',
				'title' => __('Widgets 3 Columns', 'themify'),
				'selected' => true),
			array(
				'value' => 'footerwidget-2col',
				'img' => 'themify/img/sidebars/2col.png',
				'title' => __('Widgets 2 Columns', 'themify')),
			array(
				'value' => 'footerwidget-1col',
				'img' => 'themify/img/sidebars/1col.png',
				'title' => __('Widgets 1 Column', 'themify')),
			array(
				'value' => 'none',
				'img' => 'themify/img/sidebars/none.png',
				'title' => __('No Widgets', 'themify'))
		);
		$output = '';
		foreach($options as $option){
			if(!$val &&!empty($option['selected'])){ 
			    $val = $option['value'];
			}
			$class = $val === $option['value']?' selected':'';
			$output .= '<a href="#" class="preview-icon' . $class. '" title="' . esc_attr( $option['title'] ) . '"><img src="' . THEME_URI.'/'.$option['img']. '" alt="' . esc_attr( $option['value'] ) . '"  /></a>';
		}
		$output .= '<input type="hidden" name="setting-footer_widgets" class="val" value="' . esc_attr( $val ) . '" />';
		return $output;
	}
function themify_footer_widgets ( ) { $ val = themify_get ( 'setting-footer_widgets' , false , true ) ; $ options = array ( array ( 'value' => 'footerwidget-4col' , 'img' => 'themify/img/sidebars/4col.png' , 'title' => __ ( 'Widgets 4 Columns' , 'themify' ) ) , array ( 'value' => 'footerwidget-3col' , 'img' => 'themify/img/sidebars/3col.png' , 'title' => __ ( 'Widgets 3 Columns' , 'themify' ) , 'selected' => true ) , array ( 'value' => 'footerwidget-2col' , 'img' => 'themify/img/sidebars/2col.png' , 'title' => __ ( 'Widgets 2 Columns' , 'themify' ) ) , array ( 'value' => 'footerwidget-1col' , 'img' => 'themify/img/sidebars/1col.png' , 'title' => __ ( 'Widgets 1 Column' , 'themify' ) ) , array ( 'value' => 'none' , 'img' => 'themify/img/sidebars/none.png' , 'title' => __ ( 'No Widgets' , 'themify' ) ) ) ; $ output = '' ; foreach ( $ options as $ option ) { if ( ! $ val && ! empty ( $ option [ 'selected' ] ) ) { $ val = $ option [ 'value' ] ; } $ class = $ val === $ option [ 'value' ] ? ' selected' : '' ; $ output .= '<a href="#" class="preview-icon' . $ class . '" title="' . esc_attr ( $ option [ 'title' ] ) . '"><img src="' . THEME_URI . '/' . $ option [ 'img' ] . '" alt="' . esc_attr ( $ option [ 'value' ] ) . '"  /></a>' ; } $ output .= '<input type="hidden" name="setting-footer_widgets" class="val" value="' . esc_attr ( $ val ) . '" />' ; return $ output ; }
Widgets module function
 @return string Module markup
Widgets module function @return string Module markup