choices ) ) return; ?> title)) : ?>

title); ?>

%3$s', call_user_func( array( $this, 'get'.'_'.'link' ) ), $class, $this -> hu_get_select_options() ); } private function hu_get_select_options() { $_options_html = ''; switch ( $this -> id ) { default: foreach ( $this->choices as $value => $data ) { $_options_html .= sprintf('', esc_attr( $value ), selected( $this->value(), $value, false ), $data['label'] ); } break; }//end switch return $_options_html; }//end of fn //the layouts are turned into a js object //{ 'col-1c' : { src: ..., label : ... }, ... } public function to_json() { parent::to_json(); $this->json['layouts'] = $this->choices; } }//end class endif;