NAVIGATION
This shows you the differences between two versions of the page.
|
english:phpwcms-system:article:scripts:cp-tabs [2011/03/24 00:58] Knut Heermann (flip-flop) |
english:phpwcms-system:article:scripts:cp-tabs [2018/06/03 18:09] (current) |
||
|---|---|---|---|
| Line 6: | Line 6: | ||
| Since the version r409, it is possible to group content parts for the FE. E.g. with this function you can be combinedin CPs in Tab's. | Since the version r409, it is possible to group content parts for the FE. E.g. with this function you can be combinedin CPs in Tab's. | ||
| - | This shows an example of the simple MGFX.Tabs //(Fixed Height)// for MooTools. | + | This shows an example of the simple [[http://mootools.net/forge/p/mgfx_tabs|MGFX.Tabs]] //(Fixed Height)// for MooTools. |
| \\ | \\ | ||
| Line 271: | Line 271: | ||
| ==== PHP ==== | ==== PHP ==== | ||
| - | FIXME Translate | + | This small Script is necessarily to adapt the autom. generated source text of the CMS to the requirements of the used TAB Script. First and foremost, any tab is extendet with the class "**.tab-it**" erweitert. Last but not least an all the tabs surrounding container **%%<div class="tab-regcard"> ... </div>%%**. \\ |
| - | + | In addition, the JS is loaded into the HEAD section. | |
| - | Dieses kleine Script ist notwendig um den vom CMS autom. generierten Quelltext an die Erfordernisse des hier verwendeten TAB-Scripts anzupassen. In erster Linie wird jede Registerkarte um die Klasse "**.tab-it**" erweitert. Dazu kommt noch der alle Registerkarten umschließende Container **%%<div class="tab-regcard"> ... </div>%%**. \\ | + | |
| - | Zudem wird das JS in den HEAD-Bereich geladen. | + | |
| **Options** for the JavaScript Version 1.3.0 //(in PHP-Script justable)//: | **Options** for the JavaScript Version 1.3.0 //(in PHP-Script justable)//: | ||
| Line 287: | Line 285: | ||
| \\ | \\ | ||
| - | **Datei:** template/inc_script/frontend_render/mootools/cp_register_tabs.php | + | **File:** template/inc_script/frontend_render/cp_register_tabs.php |
| Line 356: | Line 354: | ||
| ==== Original HTML ==== | ==== Original HTML ==== | ||
| - | Vorgegebener Quelltext: | + | Given source: |
| <code html> | <code html> | ||
| Line 379: | Line 377: | ||
| - | Der Aufruf des J-Scripts.\\ | + | Invoke the constructor. \\ |
| - | - Das erste Argument ist der Registerreiter, das zweite Argument ist die Registerkarte. Eine drittes optionales Argument ist ein Satz von Optionen der die Standardwerte überschreibt //(siehe PHP-Script)//. | + | The first argument is the tab buttons, the second argument is the tab panes. A third optional argument is a set of options to override the defaults. //(see PHP-Script)//. |
| ##%% var tabs = new MGFX.Tabs('#tabs li a', '#home .feature'); %%## | ##%% var tabs = new MGFX.Tabs('#tabs li a', '#home .feature'); %%## | ||