diff --git a/src/components/MagicoPagebuilderPlugin.js b/src/components/MagicoPagebuilderPlugin.js index da49a15..04ed0ee 100644 --- a/src/components/MagicoPagebuilderPlugin.js +++ b/src/components/MagicoPagebuilderPlugin.js @@ -18,6 +18,10 @@ export default { 'core_section_html': { label: 'Pole HTML', svg: '' + }, + 'core_section_image': { + label: 'Obrazek', + svg: '' } }, axios: null, diff --git a/src/components/PagebuilderContent.vue b/src/components/PagebuilderContent.vue index 394a645..f6766f2 100644 --- a/src/components/PagebuilderContent.vue +++ b/src/components/PagebuilderContent.vue @@ -1,7 +1,7 @@ - + @@ -53,6 +53,7 @@ import MagicoModal from './MagicoModal.vue' import SectionText from './plugin/SectionText.vue' import SectionTextarea from './plugin/SectionTextarea.vue' import SectionHtml from './plugin/SectionHtml.vue' +import SectionImage from './plugin/SectionImage.vue' import DropdownSectionSection from './DropdownSectionSection.vue' @@ -64,7 +65,9 @@ export default { 'b-modal': MagicoModal, 'core_section_textarea': SectionTextarea, 'core_section_text': SectionText, - 'core_section_html':SectionHtml, + 'core_section_html': SectionHtml, + 'core_section_image': SectionImage, + DropdownSectionSection }, @@ -85,7 +88,7 @@ export default { var a = { name: item, open: true } this.value.items.push(a); this.onChange(); - this.opcja=''; + this.opcja = ''; } } } diff --git a/src/components/plugin/SectionImage.vue b/src/components/plugin/SectionImage.vue new file mode 100644 index 0000000..64fbfe6 --- /dev/null +++ b/src/components/plugin/SectionImage.vue @@ -0,0 +1,200 @@ + + + + + + open_with{{ langs.label }} + + + + create + delete + + + + + + {{ langs.label }} + + + Wybierz + + + + + {{ langs.title }} + + + + {{ langs.alt }} + + + + Legenda obrazka + + + + {{ langs.scaling }} + + {{ item.value }} + + + + + {{ langs.href }} + + + + + {{ langs.proportions }} + Brak możliwości skalowania obrazków z zewnętrznego serwera. + {{ langs.width + }} + {{ langs.height + }} + {{ langs.ratio + }} + {{ item }} + + + + + + + + + {{ + langs.saveclose + }} + + + + + + + + \ No newline at end of file