NAVIGATION
This shows you the differences between two versions of the page.
|
deutsch:phpwcms-system:artikel:contentparts:bilder-div:statische-bilder-klick-gallerie [2010/02/11 10:53] Knut Heermann (flip-flop) |
deutsch:phpwcms-system:artikel:contentparts:bilder-div:statische-bilder-klick-gallerie [2018/06/03 18:08] (current) |
||
|---|---|---|---|
| Line 4: | Line 4: | ||
| - | Eine einfache **CSS basierte** Bildergalerie , bei der das große Bild durch einen Klick auf das kleine Bild //(Thumbnail)// gewechselt wird. Es ist ebenso möglich, das gewünschte Bild im Link zur Seite direkt aufzurufen. Es wird **kein JavaScript** verwendet. | + | Eine einfache **CSS basierte** Bildergalerie, bei der das große Bild durch einen Klick auf das kleine Bild //(Thumbnail)// gewechselt wird. \\ |
| + | Es ist ebenso möglich, das gewünschte Bild im Link zur Seite direkt aufzurufen. Es wird **kein JavaScript** verwendet. | ||
| - | <note>**Funktioniert in allen Brosern außer Opera** //(Stand: V10.10 Build 1893)//. 8-O //(Markanteil: < 2%)// </note> | + | <note>**Funktioniert in allen Browsern außer Opera** //(Stand: V10.10 Build 1893)//. 8-O //(Marktanteil: < 2%)// </note> |
| Line 200: | Line 201: | ||
| ==== PHP: ==== | ==== PHP: ==== | ||
| - | **Datei:** /template/inc_script/frontend_init/cp_trigg_sort_section.php | + | **Datei:** /template/inc_script/frontend_init/cp_trigg_sort_section.php \\ |
| + | //(Alternativ kann auch dieser Programmteil [[deutsch/ersetzer_rts/frontend_init/cp_trigger/sort-section#php_script_v1.2]] verwendet werden. Die speziellen Tags müssen entsprechend angepasst werden)//. | ||
| <code php |h cp_trigg_sort_section.php |h > | <code php |h cp_trigg_sort_section.php |h > | ||
| Line 250: | Line 253: | ||
| if ($_text['definition'][1][0]) { // is there any content in definition section? | if ($_text['definition'][1][0]) { // is there any content in definition section? | ||
| - | if (preg_match('/\[THUMBX_SUFFIX\](.*?)\[\/THUMBX_SUFFIX\]/ism',$_text['definition'][1][0], $_text['pre_suf'][1])) | + | if (preg_match('/\[THUMBX_PREFIX\](.*?)\[\/THUMBX_PREFIX\]/ism',$_text['definition'][1][0], $_text['pre_suf'][1])) |
| $_text['thumb'] = $_text['pre_suf'][1][1] . $_text['thumb']; | $_text['thumb'] = $_text['pre_suf'][1][1] . $_text['thumb']; | ||
| - | if (preg_match('/\[THUMBX_PREFIX\](.*?)\[\/THUMBX_PREFIX\]/ism',$_text['definition'][1][0], $_text['pre_suf'][2])) | + | if (preg_match('/\[THUMBX_SUFFIX\](.*?)\[\/THUMBX_SUFFIX\]/ism',$_text['definition'][1][0], $_text['pre_suf'][2])) |
| $_text['thumb'] .= $_text['pre_suf'][2][1]; | $_text['thumb'] .= $_text['pre_suf'][2][1]; | ||
| - | if (preg_match('/\[IMAGEX_SUFFIX\](.*?)\[\/IMAGEX_SUFFIX\]/ism',$_text['definition'][1][0], $_text['pre_suf'][3])) | + | if (preg_match('/\[IMAGEX_PREFIX\](.*?)\[\/IMAGEX_PREFIX\]/ism',$_text['definition'][1][0], $_text['pre_suf'][3])) |
| $_text['image'] = $_text['pre_suf'][3][1] . $_text['image']; | $_text['image'] = $_text['pre_suf'][3][1] . $_text['image']; | ||
| - | if (preg_match('/\[IMAGEX_PREFIX\](.*?)\[\/IMAGEX_PREFIX\]/ism',$_text['definition'][1][0], $_text['pre_suf'][4])) | + | if (preg_match('/\[IMAGEX_SUFFIX\](.*?)\[\/IMAGEX_SUFFIX\]/ism',$_text['definition'][1][0], $_text['pre_suf'][4])) |
| $_text['image'] .= $_text['pre_suf'][4][1]; | $_text['image'] .= $_text['pre_suf'][4][1]; | ||
| } | } | ||
| Line 280: | Line 283: | ||
| \\ | \\ | ||
| + | |||
| ==== CSS: ==== | ==== CSS: ==== | ||