typo3/sysext/frontend/Classes/ContentObject/Menu/ImageMenuContentObject.php 1 location
|
@@ 33-45 (lines=13) @@
|
| 30 |
|
* |
| 31 |
|
* @see AbstractMenuContentObject::procesItemStates(), makeImageMap() |
| 32 |
|
*/ |
| 33 |
|
public function generate() |
| 34 |
|
{ |
| 35 |
|
$NOconf = []; |
| 36 |
|
$splitCount = count($this->menuArr); |
| 37 |
|
if ($splitCount) { |
| 38 |
|
list($NOconf) = $this->procesItemStates($splitCount); |
| 39 |
|
} |
| 40 |
|
if (!empty($this->mconf['debugItemConf'])) { |
| 41 |
|
echo '<h3>$NOconf:</h3>'; |
| 42 |
|
debug($NOconf); |
| 43 |
|
} |
| 44 |
|
$this->makeImageMap($NOconf); |
| 45 |
|
} |
| 46 |
|
|
| 47 |
|
/** |
| 48 |
|
* Will traverse input array with configuration per-item and create corresponding GIF files for the menu. |
typo3/sysext/frontend/Classes/ContentObject/Menu/TextMenuContentObject.php 1 location
|
@@ 30-42 (lines=13) @@
|
| 27 |
|
* |
| 28 |
|
* @see AbstractMenuContentObject::procesItemStates() |
| 29 |
|
*/ |
| 30 |
|
public function generate() |
| 31 |
|
{ |
| 32 |
|
$NOconf = []; |
| 33 |
|
$splitCount = count($this->menuArr); |
| 34 |
|
if ($splitCount) { |
| 35 |
|
list($NOconf) = $this->procesItemStates($splitCount); |
| 36 |
|
} |
| 37 |
|
if (!empty($this->mconf['debugItemConf'])) { |
| 38 |
|
echo '<h3>$NOconf:</h3>'; |
| 39 |
|
debug($NOconf); |
| 40 |
|
} |
| 41 |
|
$this->result = $NOconf; |
| 42 |
|
} |
| 43 |
|
|
| 44 |
|
/** |
| 45 |
|
* Traverses the ->result array of menu items configuration (made by ->generate()) and renders each item. |