콘텐츠로 건너뛰기 사이드바로 건너뛰기

이 주제에는 다음이 포함되어 있습니다. 0 답변, 가지다 0목소리 .

최종 업데이트자: delvartS 2 주, 2 일 전에.

도움을 받은 사람: Maiya AI Support.

작성자 게시물
1월 27, 2026 at 1:34 오후 #17767393

delvartS

J'ai mon widget elementor
protected function register_controls() {
$this->start_controls_section(
'section_content',
[
'label' => __( 'Content', 'elementor-fs-ancre' ),
]
);

$this->add_control(
'titre',
[
'label' => __( 'Titre', 'elementor-fs-ancre' ),
'type' => Controls_Manager::TEXT,
]
);

$repeater = new Repeater();

$repeater->add_control(
'titre',
[
'label' => __( 'Titre', 'elementor-fs-ancre' ),
'type' => Controls_Manager::TEXT,
]
);

$repeater->add_control(
'sous-titre',
[
'label' => __( 'Sous-titre', 'elementor-fs-ancre' ),
'type' => Controls_Manager::TEXT,
]
);

$repeater->add_control(
'selector',
[
'label' => __( 'Sélecteur', 'elementor-fs-ancre' ),
'type' => Controls_Manager::TEXT,
]
);

$this->add_control(
'ancre',
[
'label' => __( 'Ancre', 'elementor-fs-ancre' ),
'type' => Controls_Manager::REPEATER,
'fields' => $repeater->get_controls(),
'title_field' => '{{{ titre }}}',
'prevent_empty' => false,
]
);

$this->end_controls_section();

}
Avec cette conf XML

fs-ancre

titre

title
sous-titre

Mais les element du widget ne sont pas traduisible

'[닫힌 게시글입니다] widget elementpr' 주제는 새 답글에 대해 닫혔습니다.