Witam,
Na mojej witrynie mam zainstalowane coś na kształt pluginu, dzięki któremu w tekście mogę prezentować zdjęcia z galerii, wpisując w tekście {galery XXX left} lub {galery XXX right}.
Gdzie XXX to numer id zdjęcia z tabeli bazy danych galerii, left lub right odpowiada za opływanie tekstu.
Sekwencje czasami pojawiają się pojedynczo, a czasami w grupach.
Przykład:
--------------------------
{galery XXX left}Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
{galery XXX right}{galery XXX right}{galery XXX right}{galery XXX right}It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
{galery XXX left}{galery XXX left}
------------------------
Dla co niektórych odsłon chciałbym wycinać w/w w php. Oczekiwanym efektem oczywiście jest:
-----------------------
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
-----------------------
Proszę o pomoc i z góry dziękuję.