'AT Social', 'size' => 'span12', ); //create the block parent::__construct('as_Social_Block', $block_options); } function form($instance) { $defaults = array( 'align' => 1, 'facebook_check' => 1, 'facebook_url' => '#', 'twitter_check' => 1, 'twitter_url' => '#', 'dribbble_check' => 1, 'dribbble_url' => '#', 'google_check' => 1, 'google_url' => '#', 'pinterest_check' => 1, 'pinterest_url' => '#', 'flickr_check' => 1, 'flickr_url' => '#', 'linkedin_check' => 1, 'linkedin_url' => '#', 'skype_check' => 1, 'skype_url' => '#', ); $instance = wp_parse_args($instance, $defaults); extract($instance); $text_align = array( 'left' => 'Align left', 'right' => 'Align right', 'center' => 'Align center', ); ?>

'; if($facebook_check == '1'){ $output .= '
  • '; } if($twitter_check == '1'){ $output .= '
  • '; } if($google_check == '1'){ $output .= '
  • '; } if($pinterest_check == '1'){ $output .= '
  • '; } if($dribbble_check == '1'){ $output .= '
  • '; } if($flickr_check == '1'){ $output .= '
  • '; } if($linkedin_check == '1'){ $output .= '
  • '; } $output .= ''; echo $output; } function before_block($instance) { extract($instance); return; } function after_block($instance) { extract($instance); return; } } as_register_block( 'as_Social_Block' ); endif;