@@ 62-68 (lines=7) @@ | ||
59 | return $this->addElementInContent("content", $image); |
|
60 | } |
|
61 | ||
62 | public function addReveal($visibleContent, $hiddenContent=NULL, $type=RevealType::FADE, $attributeType=NULL) { |
|
63 | $reveal=$visibleContent; |
|
64 | if (!$visibleContent instanceof HtmlReveal) { |
|
65 | $reveal=new HtmlReveal("reveral-" . $this->identifier, $visibleContent, $hiddenContent, $type, $attributeType); |
|
66 | } |
|
67 | return $this->addElementInContent("content", $reveal); |
|
68 | } |
|
69 | ||
70 | public function addRevealImage($visibleContent, $hiddenContent=NULL, $type=RevealType::FADE, $attributeType=NULL) { |
|
71 | $reveal=$visibleContent; |
|
@@ 70-76 (lines=7) @@ | ||
67 | return $this->addElementInContent("content", $reveal); |
|
68 | } |
|
69 | ||
70 | public function addRevealImage($visibleContent, $hiddenContent=NULL, $type=RevealType::FADE, $attributeType=NULL) { |
|
71 | $reveal=$visibleContent; |
|
72 | if (!$visibleContent instanceof HtmlReveal) { |
|
73 | return $this->addReveal(new HtmlImage("", $visibleContent), new HtmlImage("", $hiddenContent), $type, $attributeType); |
|
74 | } |
|
75 | return $this->addElementInContent("content", $reveal); |
|
76 | } |
|
77 | ||
78 | public function addExtraContent($content=array()) { |
|
79 | return $this->addElementInContent("extra-content", $this->createContent($content, "extra content")); |