json['value'] = $this->value(); $this->json['choices'] = $this->choices; $this->json['link'] = $this->get_link(); $this->json['choices'] = ( is_array( $this->choices ) ) ? array( 'top' => ( in_array( 'top', $this->choices ) ) ? true : false, 'bottom' => ( in_array( 'bottom', $this->choices ) ) ? true : false, 'left' => ( in_array( 'left', $this->choices ) ) ? true : false, 'right' => ( in_array( 'right', $this->choices ) ) ? true : false, 'units' => ( isset( $this->choices['units'] ) ) ? $this->choices['units'] : false, ) : array(); $i18n = Kirki_Toolkit::i18n(); $this->json['l10n'] = array( 'top' => $i18n['top'], 'bottom' => $i18n['bottom'], 'left' => $i18n['left'], 'right' => $i18n['right'], ); } public function content_template() { ?>