18 $lng = $DIC->language();
19 $lng->loadLanguageModule(
"content");
29 "creation_form" => $acc->getHTML(),
30 "icon" => $ui_wrapper->getRenderedIcon(
"pemed")
40 $lng = $DIC->language();
41 $lng->loadLanguageModule(
"content");
46 $form->setShowTopButtons(
false);
47 $form->setTitle(
$lng->txt(
"cont_edit_mob"));
50 $pc_media = $page_gui->
getPageObject()->getContentObjectForPcId($pcid);
61 $pc_media_gui->getCharacteristicsOfCurrentStyle(
"media_cont");
63 $media = $pc_media->getMediaObject()->getMediaItem(
"Standard");
68 $title->setMaxLength(120);
69 $title->setValue($quick_edit->getTitle());
70 $form->addItem($title);
73 if ($pc_media_gui->checkStyleSelection()) {
74 $style_input = $pc_media_gui->getStyleInput();
75 $form->addItem($style_input);
80 $lng->txt(
"cont_align"),
84 "Left" =>
$lng->txt(
"cont_left"),
85 "Center" =>
$lng->txt(
"cont_center"),
86 "Right" =>
$lng->txt(
"cont_right"),
87 "LeftFloat" =>
$lng->txt(
"cont_left_float"),
88 "RightFloat" =>
$lng->txt(
"cont_right_float"));
89 $align_prop->setOptions($options);
90 $align_prop->setValue($quick_edit->getHorizontalAlign());
91 $form->addItem($align_prop);
94 if ($media_type->isImage($media->getFormat())) {
96 $cb->
setChecked($quick_edit->getUseFullscreen());
103 $caption->setValue($quick_edit->getCaption());
104 $form->addItem($caption);
107 if ($media_type->usesAltTextProperty($media->getFormat())) {
110 $ta->setInfo(
$lng->txt(
"text_repr_info"));
111 $ta->setValue($quick_edit->getTextRepresentation());
115 $html = $ui_wrapper->getRenderedForm(
117 [[
"Page",
"component.update",
$lng->txt(
"save")],
118 [
"Page",
"component.cancel",
$lng->txt(
"cancel")]]
121 $link = $ui_wrapper->getRenderedLink(
$lng->txt(
"cont_advanced_settings"),
"Page",
"link",
"component.settings");
123 return $html . $link;
134 $form->setShowTopButtons(
false);
138 $hi->setValue(
"File");
143 $hi2->setValue(
"original");
144 $form->addItem($hi2);
148 $hi3->setValue(
"None");
149 $form->addItem($hi3);
157 $html = $ui_wrapper->getRenderedForm(
159 [[
"Page",
"component.save",
$lng->txt(
"insert")],
160 [
"Page",
"component.cancel",
$lng->txt(
"cancel")]]
174 $form->setShowTopButtons(
false);
178 $hi->setValue(
"Reference");
183 $hi2->setValue(
"original");
184 $form->addItem($hi2);
188 $hi3->setValue(
"None");
189 $form->addItem($hi3);
193 $ti->setInfo(
$lng->txt(
"cont_url_info"));
197 $html = $ui_wrapper->getRenderedForm(
199 [[
"Page",
"component.save",
$lng->txt(
"insert")],
200 [
"Page",
"component.cancel",
$lng->txt(
"cancel")]]
216 $ctrl = $DIC->ctrl();
217 $lng = $DIC->language();
221 $ctrl->setParameterByClass(
"ilpcmediaobjectgui",
"subCmd",
"poolSelection");
222 $buttons[] = $ui_wrapper->getButton(
223 $lng->txt(
"cont_choose_media_pool"),
227 "url" => $ctrl->getLinkTargetByClass(
"ilpcmediaobjectgui",
"insert")
231 $buttons[] = $ui_wrapper->getButton(
239 $ctrl->setParameterByClass(
"ilpcmediaobjectgui",
"subCmd",
"poolSelection");
241 return $ui_wrapper->getRenderedFormFooter($buttons);
256 $ctrl = $DIC->ctrl();
258 $return_cmd = $ctrl->getLinkTargetByClass(
"ilpageeditorgui",
"insertFromClipboard");
260 $ctrl->setParameterByClass(
"ileditclipboardgui",
"returnCommand", rawurlencode($return_cmd));
264 $buttons[] = $ui_wrapper->getButton(
265 $lng->txt(
"cont_open_clipboard"),
268 [
"url" => $ctrl->getLinkTargetByClass([get_class($page_gui),
"ileditclipboardgui"],
"getObject")],
272 $buttons[] = $ui_wrapper->getButton(
281 return $ui_wrapper->getRenderedFormFooter($buttons);
getPageObject()
Get Page Object.
Class ChatMainBarProvider .
getEditComponentForm(UIWrapper $ui_wrapper, string $page_type, \ilPageObjectGUI $page_gui, int $style_id, $pcid)
Get rendered editor elements.
setRows($a_rows)
Set Rows.
This class represents a text area property in a property form.
setStyleId($a_styleid)
Set Style Id.
Accordion user interface class.