Пример #1
0
 public function get_content()
 {
     $color = $this->_module['color'];
     $content = PT_PageBuilder_Helper::get_content($this->_module);
     return "<div class='feature-box size-{$this->_module['size']}' id='{$this->_module['id']}'>\n\t\t\t\t\t<div class='icon-wrap'><i class='fa fa-{$this->_module['size']}x {$this->_module['icon']}' style='color:{$color};'>&nbsp;</i></div>\n\t\t\t\t\t<div class='feature-box-content'>\n\t\t\t\t\t\t<h3 class='feature-box-title' style='color:{$color};'>{$this->_module['title']}</h3>\n\t\t\t\t\t\t<div class='feature-box-text'>{$content}</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>";
 }
Пример #2
0
 /**
  * Generates Slide markup
  *
  * @return string $content
  */
 public function generate_slide($slide_html, $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::generate_data_attr($slide, array('orientation', 'slice1_rotation', 'slice2_rotation', 'slice1_scale', 'slice2_scale')) . "><div class='sl-slide-inner'>";
     $content .= "<div class='sl-slide-inner' style='" . PT_PageBuilder_Helper::generate_css($slide) . "'>";
     $content .= "<div class='sl-slide-content'>";
     if (!empty($slide['heading'])) {
         $content .= "<h2 class='sl-slide-title' style='" . PT_PageBuilder_Helper::generate_css(array('text_color' => $slide['heading_color'], 'text_size' => $slide['heading_size'])) . "'> <span style='" . PT_PageBuilder_Helper::generate_css(array('bg_color' => $slide['heading_bg_color'])) . "'>" . $slide['heading'] . '</span></h2>';
     }
     $content .= "<div class='sl-slide-text' style='" . PT_PageBuilder_Helper::generate_css(array('text_color' => $slide['text_color'], 'text_size' => $slide['text_size'])) . "'> <span style='" . PT_PageBuilder_Helper::generate_css(array('bg_color' => $slide['text_bg_color'])) . "'>" . PT_PageBuilder_Helper::get_content($slide) . '</span></div></div>';
     $content .= "</div></div></div>\n";
     return $content;
 }