NAVIGATION
This shows you the differences between two versions of the page.
|
english:technics:internal-function-call [2010/01/31 13:09] Knut Heermann (flip-flop) |
english:technics:internal-function-call [2018/06/03 18:09] (current) |
||
|---|---|---|---|
| Line 79: | Line 79: | ||
| The call **initMootools();** does not exist anymore. Now it is substituted by **initJSLib();**, whereby the JS-Framework set in template is loaded. | The call **initMootools();** does not exist anymore. Now it is substituted by **initJSLib();**, whereby the JS-Framework set in template is loaded. | ||
| - | By using the call **initializeLightbox();** or **initSlimbox();** the right JS framework is atom. loaded. | + | By using the call **initializeLightbox();** //(deprecated)// or **initSlimbox();** the right JS framework is atom. loaded. |
| Line 137: | Line 137: | ||
| **initJSPlugin('SimpleTabs');** the right JS framework calls. | **initJSPlugin('SimpleTabs');** the right JS framework calls. | ||
| + | |||
| + | Alternatively, in a template: | ||
| + | <code php> | ||
| + | [PHp]initJSPlugin('SimpleTabs');[/PHP] | ||
| + | </code> | ||
| + | or | ||
| + | <code php> | ||
| + | <!-- JS: SimpleTabs --> | ||
| + | <!-- JS: http://digitarald.de/project/simple-tabs/1-0/source/SimpleTabs.js --> | ||
| + | </code> | ||
| + | |||
| + | |||
| + | <note important> | ||
| + | Since version r410 the call of external scripts like \\ ##%%<!-- JS: http://XYZ.js -->%%## for security is no longer possible. \\ | ||
| + | |||
| + | \\ | ||
| + | Alternatively, this method can be selected:\\ ##%%[PHP]$GLOBALS['block']['custom_htmlhead']['XYZ'] = getJavaScriptSourceLink(html_specialchars('http://XYZ.js'));[/PHP] %%## | ||
| + | |||
| + | </note> | ||
| * **External scripts** are now started from the appropriate plugin directory. | * **External scripts** are now started from the appropriate plugin directory. | ||
| Line 149: | Line 168: | ||
| \\ | \\ | ||
| + | |||
| + | === check instantly appointed JS Lib === | ||
| + | |||
| + | templates -> JS Library: [Var: PHPWCMS_JSLIB] | ||
| + | |||
| + | |||
| + | <code php> | ||
| + | if(PHPWCMS_JSLIB == 'mootools-1.1') { ...... } | ||
| + | if(PHPWCMS_JSLIB == 'mootools-1.2') { ...... } | ||
| + | if(PHPWCMS_JSLIB == 'jquery-1.3') { ...... } | ||
| + | if(PHPWCMS_JSLIB == 'jquery-1.4') { ...... } | ||
| + | </code> | ||
| + | ~~UP~~ | ||
| ===== Init Lightbox ===== | ===== Init Lightbox ===== | ||
| Line 184: | Line 216: | ||
| **Call:** | **Call:** | ||
| <code php> | <code php> | ||
| - | Unset ($GLOBALS['block']['custom_htmlhead']['slimbox.js']); | + | // unset Slimbox CCC and JS |
| + | Unset( | ||
| + | $GLOBALS['block']['custom_htmlhead']['lightbox.css'], | ||
| + | $GLOBALS['block']['custom_htmlhead']['slimbox.js'] | ||
| + | ); | ||
| initializeLightbox(); | initializeLightbox(); | ||
| - | // alternatively for initializeLightbox(); | + | // Alternativ zu initializeLightbox(); |
| + | // $GLOBALS['block']['['css']']['lightbox.css'] = ' ../lib/slimbox/slimbox.css'; | ||
| // $GLOBALS['block']['custom_htmlhead']['slimbox.js'] = ' <script type="text/javascript" src="template/slimbox/js/slimbox.js" ></script>'; | // $GLOBALS['block']['custom_htmlhead']['slimbox.js'] = ' <script type="text/javascript" src="template/slimbox/js/slimbox.js" ></script>'; | ||
| </code> | </code> | ||
| - | \\ | + | |
| + | ~~UP~~ | ||
| ===== Init SwfObject JS Library ===== | ===== Init SwfObject JS Library ===== | ||
| Line 219: | Line 258: | ||
| </code> | </code> | ||
| - | \\ | + | ~~UP~~ |
| Line 300: | Line 339: | ||
| - | \\ | + | ~~UP~~ |
| \\ | \\ | ||
| Line 334: | Line 373: | ||
| - | \\ | + | ~~UP~~ |
| ===== Subsequent exchange of a CSS file, which is registered in the Template ===== | ===== Subsequent exchange of a CSS file, which is registered in the Template ===== | ||