start_controls_section(
'content_section',
[
'label' => __( 'Content', 'app' ),
'tab' => \Elementor\Controls_Manager::TAB_CONTENT,
]
);
$this->add_control(
'important_note',
[
'label' => esc_html__( 'Important Note', 'app' ),
'type' => \Elementor\Controls_Manager::RAW_HTML,
'raw' => esc_html__( 'This widgets if for booking form.', 'app' ),
]
);
$this->add_control(
'id_prefix',
[
'label' => __( 'ID Prefix', 'app' ),
'type' => \Elementor\Controls_Manager::TEXT,
'default' => 'main',
]
);
$this->add_control(
'selected_api',
[
'label' => esc_html__( 'API Selection', 'app' ),
'type' => \Elementor\Controls_Manager::SELECT2,
'multiple' => false,
'options' => [
'mirai' => esc_html__( 'Mirai', 'app' ),
'omni' => esc_html__( 'Omnibees', 'app' ),
],
]
);
$this->add_control(
'selected_hotel',
[
'label' => esc_html__( 'Hotel Selection', 'app' ),
'type' => \Elementor\Controls_Manager::SELECT2,
'multiple' => false,
'options' => [
'100379266' => esc_html__( 'Porto Centro', 'app' ),
'100379267' => esc_html__( 'Porto Norte', 'app' ),
'100379268' => esc_html__( 'Oeiras', 'app' ),
'100379269' => esc_html__( 'Lisboa Oriente', 'app' ),
'100379270' => esc_html__( 'Évora', 'app' ),
'9291' => esc_html__( 'Curitiba', 'app' ),
'13690' => esc_html__( 'Porto Alegre', 'app' ),
],
]
);
$this->end_controls_section();
}
protected function render() {
$settings = $this->get_settings_for_display();
$id_prefix = isset( $settings['id_prefix'] ) ? $settings['id_prefix'] : 'main';
$lang = apply_filters( 'wpml_current_language', NULL );
if ( strpos($lang, '-') ) {
$lang = explode('-', $lang)[0];
}
$currency = 'EUR';
if ( isset($_COOKIE['currency']) ) {
$currency = $_COOKIE['currency'] === 'br' ? 'BRL' : 'EUR';
}
?>
>
Lorem ipsum newsletter Texto aqui lorem ipsum
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore
Apoio
+351 900 000 00
Telefone
+351 900 000 00
Apartamentos
Moov Apartment Boavista
Rua colocar texto aqui,
4460-XXX, Porto
XXXX RNET
Moov Apartment Boavista
Rua colocar texto aqui,
4460-XXX, Porto
XXXX RNET
This site is registered on wpml.org as a development site. Switch to a production site key to remove this banner.