'facebook', '' => 'facebook-square', '' => 'flickr', '' => 'foursquare', '' => 'twitter' ); function __construct() { parent::__construct( 'AA_social_links_widget', // Base ID 'AA > Social Link', // Name array( 'description' => 'Collegamenti alle proprie pagine nei social network | Amministrazione Accessibile' ) // Args ); add_action( 'admin_enqueue_scripts', array(__CLASS__, 'font_awesome') ); add_action( 'admin_footer-widgets.php', array(&$this, 'js') ); add_action( 'admin_print_styles-widgets.php', array(&$this, 'css') ); } function widget( $args, $instance ) { extract($args); $title = apply_filters( 'widget_title', empty( $instance['title'] ) ? '' : $instance['title'], $instance, $this->id_base ); $social = empty($instance['social']) ? array() : $instance['social']; echo $before_widget; if ( !empty($title) ) echo $before_title . $title . $after_title; ?> '', 'social' => array() ) ); $title = esc_attr($instance['title']); $social = $instance['social']; ?>

$s): ?>

Rimuovi

  makeSelect($k, $s['icon']); ?>

Aggiungi social link

get_field_id( 'social' ) . "[$index][icon]"; $name = $this->get_field_name( 'social' ) . "[$index][icon]"; ?>