예제 #1
0
파일: save.php 프로젝트: chirox/quest
 /**
  * Generates Slide markup
  *
  * @return string $content
  */
 public function generateSlide($slideHtml, $slide)
 {
     $cls = isset($slide['content_pos_x']) ? "content-x-{$slide['content_pos_x']} " : '';
     $cls .= isset($slide['content_pos_y']) ? "content-y-{$slide['content_pos_y']} " : '';
     $cls .= $slide['css_class'];
     $content = "<div class='sl-slide {$cls}'" . PT_PageBuilder_Helper::GetDataAttributes($slide, array('orientation', 'slice1_rotation', 'slice2_rotation', 'slice1_scale', 'slice2_scale')) . "><div class='sl-slide-inner'>";
     $content .= "<div class='sl-slide-inner' style='" . $this->_getCssProperties($slide) . "'>";
     $content .= "<div class='sl-slide-content'>";
     if (!empty($slide['heading'])) {
         $content .= "<h2 class='sl-slide-title' style='" . $this->_getCssProperties(array('text_color' => $slide['heading_color'], 'text_size' => $slide['heading_size'])) . "'> <span style='" . $this->_getCssProperties(array('bg_color' => $slide['heading_bg_color'])) . "'>" . $slide['heading'] . "</span></h2>";
     }
     $content .= "<div class='sl-slide-text' style='" . $this->_getCssProperties(array('text_color' => $slide['text_color'], 'text_size' => $slide['text_size'])) . "'> <span style='" . $this->_getCssProperties(array('bg_color' => $slide['text_bg_color'])) . "'>" . PT_PageBuilder_Helper::getContent($slide) . "</span></div></div>";
     $content .= "</div></div></div>\n";
     return $content;
 }
예제 #2
0
 /**
  * Generates Slide markup
  *
  * @return string $content
  */
 private function generateSlide($slide)
 {
     $content = "<div class='sl-slide {$slide['css_class']}'" . PT_PageBuilder_Helper::GetDataAttributes($slide, array('orientation', 'slice1_rotation', 'slice2_rotation', 'slice1_scale', 'slice2_scale')) . "><div class='sl-slide-inner'>";
     $content .= "<div class='sl-slide-inner' style='" . $this->_getCssProperties($slide) . "'>";
     $content .= "<h2 class='sl-slide-title' style='" . $this->_getCssProperties(array('text_color' => $slide['heading_color'], 'text_size' => $slide['heading_size'])) . "'>" . $slide['heading'] . "</h2>";
     $content .= "<div class='sl-slide-text' style='" . $this->_getCssProperties(array('text_color' => $slide['text_color'], 'text_size' => $slide['text_size'])) . "'>" . PT_PageBuilder_Helper::getContent($slide) . "</div>";
     $content .= "</div></div></div>\n";
     return $content;
 }