@@ 52-58 (lines=7) @@ | ||
49 | return $this->addElementInContent("content", $image); |
|
50 | } |
|
51 | ||
52 | public function addReveal($visibleContent, $hiddenContent=NULL, $type=RevealType::FADE, $attributeType=NULL) { |
|
53 | $reveal=$visibleContent; |
|
54 | if (!$visibleContent instanceof HtmlReveal) { |
|
55 | $reveal=new HtmlReveal("reveral-" . $this->identifier, $visibleContent, $hiddenContent, $type, $attributeType); |
|
56 | } |
|
57 | return $this->addElementInContent("content", $reveal); |
|
58 | } |
|
59 | ||
60 | public function addRevealImage($visibleContent, $hiddenContent=NULL, $type=RevealType::FADE, $attributeType=NULL) { |
|
61 | $reveal=$visibleContent; |
|
@@ 60-66 (lines=7) @@ | ||
57 | return $this->addElementInContent("content", $reveal); |
|
58 | } |
|
59 | ||
60 | public function addRevealImage($visibleContent, $hiddenContent=NULL, $type=RevealType::FADE, $attributeType=NULL) { |
|
61 | $reveal=$visibleContent; |
|
62 | if (!$visibleContent instanceof HtmlReveal) { |
|
63 | return $this->addReveal(new HtmlImage("", $visibleContent), new HtmlImage("", $hiddenContent), $type, $attributeType); |
|
64 | } |
|
65 | return $this->addElementInContent("content", $reveal); |
|
66 | } |
|
67 | ||
68 | public function addExtraContent($content=array()) { |
|
69 | return $this->addElementInContent("extra-content", $this->createContent($content, "extra content")); |