Пример #1
0
 function azuragmap_sc($atts, $content = "")
 {
     extract(shortcode_atts(array('id' => '', 'class' => '', 'gmaplat' => '', 'gmaplog' => '', 'gmappancontrol' => '', 'gmapzoomcontrol' => '', 'gmaptypecontrol' => '', 'gmapstreetviewcontrol' => '', 'gmapscrollwheel' => '', 'gmapzoom' => '', 'gmaptypeid' => ''), $atts));
     $styleArr = shortcode_atts(array('margin_top' => '', 'margin_right' => '', 'margin_bottom' => '', 'margin_left' => '', 'border_top_width' => '', 'border_right_width' => '', 'border_bottom_width' => '', 'border_left_width' => '', 'padding_top' => '', 'padding_right' => '', 'padding_bottom' => '', 'padding_left' => '', 'border_color' => '', 'border_style' => '', 'background_color' => '', 'background_image' => '', 'background_repeat' => '', 'background_attachment' => '', 'background_size' => '', 'additional_style' => '', 'simplified' => ''), $atts);
     $styleTextArr = CthShortcodes::parseStyle($styleArr);
     $gmapstyle = '';
     $styleText = implode(" ", $styleTextArr);
     $styleTextTest = trim($styleText);
     if (!empty($styleTextTest)) {
         $gmapstyle .= trim($styleText);
     }
     if (!empty($gmapstyle)) {
         $gmapstyle = 'style="' . $gmapstyle . '"';
     }
     $animationArgs = shortcode_atts(array('animation' => '0', 'trigger' => 'animate-in', 'animationtype' => '', 'hoveranimationtype' => '', 'infinite' => '0', 'animationdelay' => '0'), $atts);
     $shortcodeTemp = false;
     $shortcodeTemp = CthShortcodes::addShortcodeTemplate('azuragmap');
     $buffer = ob_get_clean();
     ob_start();
     if ($shortcodeTemp !== false) {
         require $shortcodeTemp;
     }
     $content = ob_get_clean();
     ob_start();
     echo $buffer;
     return $content;
 }
Пример #2
0
 function azuracontactform_sc($atts, $content = "")
 {
     extract(shortcode_atts(array('title' => '', 'introduction' => '', 'receiveemail' => '', 'emailsubject' => '', 'thanksmessage' => '', 'showwebsite' => '', 'sendascopy' => '', 'layout' => ''), $atts));
     $styleArr = shortcode_atts(array('margin_top' => '', 'margin_right' => '', 'margin_bottom' => '', 'margin_left' => '', 'border_top_width' => '', 'border_right_width' => '', 'border_bottom_width' => '', 'border_left_width' => '', 'padding_top' => '', 'padding_right' => '', 'padding_bottom' => '', 'padding_left' => '', 'border_color' => '', 'border_style' => '', 'background_color' => '', 'background_image' => '', 'background_repeat' => '', 'background_attachment' => '', 'background_size' => '', 'additional_style' => '', 'simplified' => ''), $atts);
     $styleTextArr = CthShortcodes::parseStyle($styleArr);
     $contactformstyle = '';
     $styleText = implode(" ", $styleTextArr);
     $styleTextTest = trim($styleText);
     if (!empty($styleTextTest)) {
         $contactformstyle .= trim($styleText);
     }
     if (!empty($contactformstyle)) {
         $contactformstyle = 'style="' . $contactformstyle . '"';
     }
     $animationArgs = shortcode_atts(array('animation' => '0', 'trigger' => 'animate-in', 'animationtype' => '', 'hoveranimationtype' => '', 'infinite' => '0', 'animationdelay' => '0'), $atts);
     $shortcodeTemp = false;
     if (stripos($layout, '_:') !== false) {
         $shortcodeTemp = JPATH_PLUGINS . '/system/cthshortcodes/shortcodes_template/' . substr($layout, 2) . '.php';
     } else {
         if (stripos($layout, ':') !== false) {
             $shortcodeTemp = JPATH_THEMES . '/' . JFactory::getApplication()->getTemplate() . '/html/com_azurapagebuilder/plugin/shortcodes_template/' . substr($layout, stripos($layout, ':') + 1) . '.php';
         } else {
             $shortcodeTemp = CthShortcodes::addShortcodeTemplate('azuracontactform');
         }
     }
     $buffer = ob_get_clean();
     ob_start();
     if ($shortcodeTemp !== false) {
         require $shortcodeTemp;
     }
     $content = ob_get_clean();
     ob_start();
     echo $buffer;
     return $content;
 }
Пример #3
0
 function azurabxslider_sc($atts, $content = "")
 {
     extract(shortcode_atts(array('id' => '', 'class' => 'bxslider', 'mode' => 'horizontal', 'speed' => '500', 'slidemargin' => '0', 'startslide' => '0', 'randomstart' => '0', 'slideselector' => '', 'infiniteloop' => '1', 'hidecontrolonend' => '0', 'easing' => 'null', 'captions' => '0', 'ticker' => '0', 'tickerhover' => '0', 'adaptiveheight' => '0', 'adaptiveheightspeed' => '500', 'video' => '0', 'responsive' => '1', 'usecss' => '1', 'preloadimages' => 'visible', 'touchenabled' => '1', 'swipethreshold' => '50', 'onetoonetouch' => '1', 'preventdefaultswipex' => '1', 'preventdefaultswipey' => '0', 'pager' => '1', 'pagertype' => 'full', 'pagershortseparator' => '/', 'pagerselector' => '', 'pagercustom' => 'null', 'buildpager' => 'null', 'controls' => '1', 'nexttext' => 'Next', 'prevtext' => 'Prev', 'nextselector' => 'null', 'prevselector' => 'null', 'autocontrols' => '0', 'starttext' => 'Start', 'stoptext' => 'Stop', 'autocontrolscombine' => '0', 'autocontrolsselector' => 'null', 'auto' => '0', 'pause' => '4000', 'autostart' => '1', 'autodirection' => 'next', 'autohover' => '0', 'autodelay' => '0', 'minslides' => '1', 'maxslides' => '1', 'moveslides' => '0', 'slidewidth' => '0', 'layout' => ''), $atts));
     $styleArr = shortcode_atts(array('margin_top' => '', 'margin_right' => '', 'margin_bottom' => '', 'margin_left' => '', 'border_top_width' => '', 'border_right_width' => '', 'border_bottom_width' => '', 'border_left_width' => '', 'padding_top' => '', 'padding_right' => '', 'padding_bottom' => '', 'padding_left' => '', 'border_color' => '', 'border_style' => '', 'background_color' => '', 'background_image' => '', 'background_repeat' => '', 'background_attachment' => '', 'background_size' => '', 'additional_style' => '', 'simplified' => ''), $atts);
     $styleTextArr = CthShortcodes::parseStyle($styleArr);
     $bxsliderstyle = '';
     $styleText = implode(" ", $styleTextArr);
     $styleTextTest = trim($styleText);
     if (!empty($styleTextTest)) {
         $bxsliderstyle .= trim($styleText);
     }
     if (!empty($bxsliderstyle)) {
         $bxsliderstyle = 'style="' . $bxsliderstyle . '"';
     }
     $animationArgs = shortcode_atts(array('animation' => '0', 'trigger' => 'animate-in', 'animationtype' => '', 'hoveranimationtype' => '', 'infinite' => '0', 'animationdelay' => '0'), $atts);
     $shortcodeTemp = false;
     if (stripos($layout, '_:') !== false) {
         $shortcodeTemp = JPATH_PLUGINS . '/system/cthshortcodes/shortcodes_template/' . substr($layout, 2) . '.php';
     } else {
         if (stripos($layout, ':') !== false) {
             $shortcodeTemp = JPATH_THEMES . '/' . JFactory::getApplication()->getTemplate() . '/html/com_azurapagebuilder/plugin/shortcodes_template/' . substr($layout, stripos($layout, ':') + 1) . '.php';
         } else {
             $shortcodeTemp = CthShortcodes::addShortcodeTemplate('azurabxslider');
         }
     }
     $buffer = ob_get_clean();
     ob_start();
     if ($shortcodeTemp !== false) {
         require $shortcodeTemp;
     }
     $content = ob_get_clean();
     ob_start();
     echo $buffer;
     return $content;
 }
Пример #4
0
 function azurabscarousel_item_sc($atts, $content = "")
 {
     global $bsCarouselItemArray;
     global $bsCarouselItem;
     extract(shortcode_atts(array('id' => '', 'class' => '', 'image' => '', 'layout' => ''), $atts));
     $bsCarouselItemArray[] = array('id' => $id, 'class' => $class, 'image' => $image, 'layout' => $layout, 'content' => $content);
     if (!isset($bsCarouselItem)) {
         $bsCarouselItem = 0;
     }
     $shortcodeTemp = false;
     if (stripos($layout, '_:') !== false) {
         $shortcodeTemp = JPATH_PLUGINS . '/system/cthshortcodes/shortcodes_template/' . substr($layout, 2) . '.php';
     } else {
         if (stripos($layout, ':') !== false) {
             $shortcodeTemp = CthShortcodes::templatePath() . '/html/com_azurapagebuilder/plugin/shortcodes_template/' . substr($layout, stripos($layout, ':') + 1) . '.php';
         } else {
             $shortcodeTemp = CthShortcodes::addShortcodeTemplate('azurabscarouselitem');
         }
     }
     $buffer = ob_get_clean();
     ob_start();
     if ($shortcodeTemp !== false) {
         require $shortcodeTemp;
     }
     $content = ob_get_clean();
     ob_start();
     echo $buffer;
     $bsCarouselItem++;
     return $content;
 }
Пример #5
0
 function azurabscarousel_sc($atts, $content = "")
 {
     global $bsCarouselItemArray;
     global $bsCarouselItem;
     extract(shortcode_atts(array('id' => '', 'class' => '', 'interval' => '5000', 'pause' => 'hover', 'wrap' => '1', 'navigation' => '1', 'pagination' => '1', 'layout' => ''), $atts));
     $shortcodeTemp = false;
     if (stripos($layout, '_:') !== false) {
         $shortcodeTemp = JPATH_PLUGINS . '/system/cthshortcodes/shortcodes_template/' . substr($layout, 2) . '.php';
     } else {
         if (stripos($layout, ':') !== false) {
             $shortcodeTemp = CthShortcodes::templatePath() . '/html/com_azurapagebuilder/plugin/shortcodes_template/' . substr($layout, stripos($layout, ':') + 1) . '.php';
         } else {
             $shortcodeTemp = CthShortcodes::addShortcodeTemplate('azurabscarousel');
         }
     }
     $buffer = ob_get_clean();
     ob_start();
     if ($shortcodeTemp !== false) {
         require $shortcodeTemp;
     }
     $content = ob_get_clean();
     ob_start();
     echo $buffer;
     $bsCarouselItemArray = array();
     $bsCarouselItem = null;
     return $content;
 }
Пример #6
0
 function azuraflexslider_sc($atts, $content = "")
 {
     extract(shortcode_atts(array('id' => '', 'class' => '', 'namespace' => 'flex-', 'selector' => '.slides > li', 'animation' => 'fade', 'easing' => 'swing', 'direction' => 'horizontal', 'reverse' => '0', 'animationloop' => '1', 'smoothheight' => '0', 'startat' => '0', 'slideshow' => '1', 'slideshowspeed' => '7000', 'animationspeed' => '600', 'initdelay' => '0', 'randomize' => '0', 'pauseonaction' => '1', 'pauseonhover' => '0', 'usecss' => '1', 'touch' => '1', 'video' => '0', 'controlnav' => '1', 'directionnav' => '1', 'prevtext' => 'Previous', 'nexttext' => 'Next', 'keyboard' => '1', 'multiplekeyboard' => '0', 'mousewheel' => '0', 'pauseplay' => '0', 'pausetext' => 'Pause', 'playtext' => 'Play', 'sync' => '', 'asnavfor' => '', 'itemwidth' => '0', 'itemmargin' => '0', 'minitems' => '0', 'maxitems' => '0', 'move' => '0', 'usejsplugin' => '0', 'layout' => ''), $atts));
     $styleArr = shortcode_atts(array('margin_top' => '', 'margin_right' => '', 'margin_bottom' => '', 'margin_left' => '', 'border_top_width' => '', 'border_right_width' => '', 'border_bottom_width' => '', 'border_left_width' => '', 'padding_top' => '', 'padding_right' => '', 'padding_bottom' => '', 'padding_left' => '', 'border_color' => '', 'border_style' => '', 'background_color' => '', 'background_image' => '', 'background_repeat' => '', 'background_attachment' => '', 'background_size' => '', 'additional_style' => '', 'simplified' => ''), $atts);
     $styleTextArr = CthShortcodes::parseStyle($styleArr);
     $flexsliderstyle = '';
     $styleText = implode(" ", $styleTextArr);
     $styleTextTest = trim($styleText);
     if (!empty($styleTextTest)) {
         $flexsliderstyle .= trim($styleText);
     }
     if (!empty($flexsliderstyle)) {
         $flexsliderstyle = 'style="' . $flexsliderstyle . '"';
     }
     $animationArgs = shortcode_atts(array('animation' => '0', 'trigger' => 'animate', 'animationtype' => '', 'animationdelay' => ''), $atts);
     $shortcodeTemp = false;
     if (stripos($layout, '_:') !== false) {
         $shortcodeTemp = JPATH_PLUGINS . '/system/cthshortcodes/shortcodes_template/' . substr($layout, 2) . '.php';
     } else {
         if (stripos($layout, ':') !== false) {
             $shortcodeTemp = CthShortcodes::templatePath() . '/html/com_azurapagebuilder/plugin/shortcodes_template/' . substr($layout, stripos($layout, ':') + 1) . '.php';
         } else {
             $shortcodeTemp = CthShortcodes::addShortcodeTemplate('azuraflexslider');
         }
     }
     $buffer = ob_get_clean();
     ob_start();
     if ($shortcodeTemp !== false) {
         require $shortcodeTemp;
     }
     $content = ob_get_clean();
     ob_start();
     echo $buffer;
     return $content;
 }
Пример #7
0
 function azuracarouselslider_sc($atts, $content = "")
 {
     extract(shortcode_atts(array('id' => '', 'class' => '', 'transtyle' => '', 'sliderspeed' => '', 'rewindspeed' => '', 'slideperview' => '', 'itemscustom' => '', 'autoplay' => '', 'pagination' => '', 'paginationspeed' => '', 'navigation' => '', 'autoheight' => '', 'mousedrag' => '', 'touchdrag' => '', 'layout' => ''), $atts));
     $styleArr = shortcode_atts(array('margin_top' => '', 'margin_right' => '', 'margin_bottom' => '', 'margin_left' => '', 'border_top_width' => '', 'border_right_width' => '', 'border_bottom_width' => '', 'border_left_width' => '', 'padding_top' => '', 'padding_right' => '', 'padding_bottom' => '', 'padding_left' => '', 'border_color' => '', 'border_style' => '', 'background_color' => '', 'background_image' => '', 'background_repeat' => '', 'background_attachment' => '', 'background_size' => '', 'additional_style' => '', 'simplified' => ''), $atts);
     $styleTextArr = CthShortcodes::parseStyle($styleArr);
     $carouselsliderstyle = '';
     $styleText = implode(" ", $styleTextArr);
     $styleTextTest = trim($styleText);
     if (!empty($styleTextTest)) {
         $carouselsliderstyle .= trim($styleText);
     }
     if (!empty($carouselsliderstyle)) {
         $carouselsliderstyle = 'style="' . $carouselsliderstyle . '"';
     }
     $animationArgs = shortcode_atts(array('animation' => '0', 'trigger' => 'animate-in', 'animationtype' => '', 'hoveranimationtype' => '', 'infinite' => '0', 'animationdelay' => '0'), $atts);
     $shortcodeTemp = false;
     if (stripos($layout, '_:') !== false) {
         $shortcodeTemp = JPATH_PLUGINS . '/system/cthshortcodes/shortcodes_template/' . substr($layout, 2) . '.php';
     } else {
         if (stripos($layout, ':') !== false) {
             $shortcodeTemp = JPATH_THEMES . '/' . JFactory::getApplication()->getTemplate() . '/html/com_azurapagebuilder/plugin/shortcodes_template/' . substr($layout, stripos($layout, ':') + 1) . '.php';
         } else {
             $shortcodeTemp = CthShortcodes::addShortcodeTemplate('azuracarouselslider');
         }
     }
     $buffer = ob_get_clean();
     ob_start();
     if ($shortcodeTemp !== false) {
         require $shortcodeTemp;
     }
     $content = ob_get_clean();
     ob_start();
     echo $buffer;
     return $content;
 }
Пример #8
0
 function azurabxslider_item_sc($atts, $content = "")
 {
     extract(shortcode_atts(array('id' => '', 'class' => '', 'slideimage' => '', 'layout' => ''), $atts));
     $styleArr = shortcode_atts(array('margin_top' => '', 'margin_right' => '', 'margin_bottom' => '', 'margin_left' => '', 'border_top_width' => '', 'border_right_width' => '', 'border_bottom_width' => '', 'border_left_width' => '', 'padding_top' => '', 'padding_right' => '', 'padding_bottom' => '', 'padding_left' => '', 'border_color' => '', 'border_style' => '', 'background_color' => '', 'background_image' => '', 'background_repeat' => '', 'background_attachment' => '', 'background_size' => '', 'additional_style' => '', 'simplified' => ''), $atts);
     $styleTextArr = CthShortcodes::parseStyle($styleArr);
     $bxslideritemstyle = '';
     $styleText = implode(" ", $styleTextArr);
     $styleTextTest = trim($styleText);
     if (!empty($styleTextTest)) {
         $bxslideritemstyle .= trim($styleText);
     }
     if (!empty($bxslideritemstyle)) {
         $bxslideritemstyle = 'style="' . $bxslideritemstyle . '"';
     }
     $shortcodeTemp = false;
     if (stripos($layout, '_:') !== false) {
         $shortcodeTemp = JPATH_PLUGINS . '/system/cthshortcodes/shortcodes_template/' . substr($layout, 2) . '.php';
     } else {
         if (stripos($layout, ':') !== false) {
             $shortcodeTemp = JPATH_THEMES . '/' . JFactory::getApplication()->getTemplate() . '/html/com_azurapagebuilder/plugin/shortcodes_template/' . substr($layout, stripos($layout, ':') + 1) . '.php';
         } else {
             $shortcodeTemp = CthShortcodes::addShortcodeTemplate('azurabxslideritem');
         }
     }
     $buffer = ob_get_clean();
     ob_start();
     if ($shortcodeTemp !== false) {
         require $shortcodeTemp;
     }
     $content = ob_get_clean();
     ob_start();
     echo $buffer;
     return $content;
 }
Пример #9
0
 function azuramodule_sc($atts, $content = "")
 {
     extract(shortcode_atts(array('id' => '', 'class' => '', 'moduleid' => '', 'showtitle' => '', 'style' => 'none', 'layout' => ''), $atts));
     if ($moduleid == '0' || $moduleid == '') {
         return false;
     }
     $module = CthShortcodes::loadModule($moduleid, $style);
     $shortcodeTemp = false;
     if (stripos($layout, '_:') !== false) {
         $shortcodeTemp = JPATH_PLUGINS . '/system/cthshortcodes/shortcodes_template/' . substr($layout, 2) . '.php';
     } else {
         if (stripos($layout, ':') !== false) {
             $shortcodeTemp = CthShortcodes::templatePath() . '/html/com_azurapagebuilder/plugin/shortcodes_template/' . substr($layout, stripos($layout, ':') + 1) . '.php';
         } else {
             $shortcodeTemp = CthShortcodes::addShortcodeTemplate('azuramodule');
         }
     }
     $buffer = ob_get_clean();
     ob_start();
     if ($shortcodeTemp !== false) {
         require $shortcodeTemp;
     }
     $content = ob_get_clean();
     ob_start();
     echo $buffer;
     return $content;
 }
Пример #10
0
 function azuratestimonial_sc($atts, $content = "")
 {
     extract(shortcode_atts(array('id' => '', 'class' => 'pesbox', 'name' => '', 'email' => '', 'avatar' => '', 'position' => '', 'review' => '5', 'layout' => ''), $atts));
     $styleArr = shortcode_atts(array('margin_top' => '', 'margin_right' => '', 'margin_bottom' => '', 'margin_left' => '', 'border_top_width' => '', 'border_right_width' => '', 'border_bottom_width' => '', 'border_left_width' => '', 'padding_top' => '', 'padding_right' => '', 'padding_bottom' => '', 'padding_left' => '', 'border_color' => '', 'border_style' => '', 'background_color' => '', 'background_image' => '', 'background_repeat' => '', 'background_attachment' => '', 'background_size' => '', 'additional_style' => '', 'simplified' => ''), $atts);
     $styleTextArr = CthShortcodes::parseStyle($styleArr);
     $testimonialstyle = '';
     $styleText = implode(" ", $styleTextArr);
     $styleTextTest = trim($styleText);
     if (!empty($styleTextTest)) {
         $testimonialstyle .= trim($styleText);
     }
     if (!empty($testimonialstyle)) {
         $testimonialstyle = 'style="' . $testimonialstyle . '"';
     }
     $animationArgs = shortcode_atts(array('animation' => '0', 'trigger' => 'animate', 'animationtype' => '', 'animationdelay' => ''), $atts);
     $shortcodeTemp = false;
     if (stripos($layout, '_:') !== false) {
         $shortcodeTemp = JPATH_PLUGINS . '/system/cthshortcodes/shortcodes_template/' . substr($layout, 2) . '.php';
     } else {
         if (stripos($layout, ':') !== false) {
             $shortcodeTemp = CthShortcodes::templatePath() . '/html/com_azurapagebuilder/plugin/shortcodes_template/' . substr($layout, stripos($layout, ':') + 1) . '.php';
         } else {
             $shortcodeTemp = CthShortcodes::addShortcodeTemplate('azuratestimonial');
         }
     }
     $buffer = ob_get_clean();
     ob_start();
     if ($shortcodeTemp !== false) {
         require $shortcodeTemp;
     }
     $content = ob_get_clean();
     ob_start();
     echo $buffer;
     return $content;
 }
Пример #11
0
 function azuravideo_sc($atts, $content = "")
 {
     extract(shortcode_atts(array('id' => '', 'class' => '', 'autoplay' => '', 'loop' => '', 'width' => '', 'height' => '', 'layout' => ''), $atts));
     $styleArr = shortcode_atts(array('margin_top' => '', 'margin_right' => '', 'margin_bottom' => '', 'margin_left' => '', 'border_top_width' => '', 'border_right_width' => '', 'border_bottom_width' => '', 'border_left_width' => '', 'padding_top' => '', 'padding_right' => '', 'padding_bottom' => '', 'padding_left' => '', 'border_color' => '', 'border_style' => '', 'background_color' => '', 'background_image' => '', 'background_repeat' => '', 'background_attachment' => '', 'background_size' => '', 'additional_style' => '', 'simplified' => ''), $atts);
     $styleTextArr = CthShortcodes::parseStyle($styleArr);
     $videostyle = '';
     $styleText = implode(" ", $styleTextArr);
     $styleTextTest = trim($styleText);
     if (!empty($styleTextTest)) {
         $videostyle .= trim($styleText);
     }
     if (!empty($videostyle)) {
         $videostyle = 'style="' . $videostyle . '"';
     }
     $animationArgs = shortcode_atts(array('animation' => '0', 'trigger' => 'animate-in', 'animationtype' => '', 'hoveranimationtype' => '', 'infinite' => '0', 'animationdelay' => '0'), $atts);
     $video = parse_url($content);
     switch ($video['host']) {
         case 'youtu.be':
             $id = trim($video['path'], '/');
             $src = 'https://www.youtube.com/embed/' . $id;
             break;
         case 'www.youtube.com':
         case 'youtube.com':
             parse_str($video['query'], $query);
             $id = $query['v'];
             $src = 'https://www.youtube.com/embed/' . $id;
             break;
         case 'vimeo.com':
         case 'www.vimeo.com':
             $id = trim($video['path'], '/');
             $src = "http://player.vimeo.com/video/{$id}";
     }
     $shortcodeTemp = false;
     if (stripos($layout, '_:') !== false) {
         $shortcodeTemp = JPATH_PLUGINS . '/system/cthshortcodes/shortcodes_template/' . substr($layout, 2) . '.php';
     } else {
         if (stripos($layout, ':') !== false) {
             $shortcodeTemp = JPATH_THEMES . '/' . JFactory::getApplication()->getTemplate() . '/html/com_azurapagebuilder/plugin/shortcodes_template/' . substr($layout, stripos($layout, ':') + 1) . '.php';
         } else {
             $shortcodeTemp = CthShortcodes::addShortcodeTemplate('azuravideo');
         }
     }
     $buffer = ob_get_clean();
     ob_start();
     if ($shortcodeTemp !== false) {
         require $shortcodeTemp;
     }
     $content = ob_get_clean();
     ob_start();
     echo $buffer;
     return $content;
 }
 function azuracarouselslider_item_sc($atts, $content = "")
 {
     extract(shortcode_atts(array('id' => '', 'class' => '', 'slideimage' => ''), $atts));
     $shortcodeTemp = false;
     $shortcodeTemp = CthShortcodes::addShortcodeTemplate('azuracarouselslideritem');
     $buffer = ob_get_clean();
     ob_start();
     if ($shortcodeTemp !== false) {
         require $shortcodeTemp;
     }
     $content = ob_get_clean();
     ob_start();
     echo $buffer;
     return $content;
 }
Пример #13
0
 function azurateammember_sc($atts, $content = "")
 {
     extract(shortcode_atts(array('id' => '', 'class' => '', 'name' => '', 'position' => '', 'photo' => '', 'introduction' => '', 'twitter' => '', 'facebook' => '', 'dribbble' => '', 'linkedin' => '', 'googleplus' => ''), $atts));
     $shortcodeTemp = false;
     $shortcodeTemp = CthShortcodes::addShortcodeTemplate('azurateammember');
     $buffer = ob_get_clean();
     ob_start();
     if ($shortcodeTemp != false) {
         require $shortcodeTemp;
     }
     $content = ob_get_clean();
     ob_start();
     echo $buffer;
     return $content;
 }
Пример #14
0
 function azuratabtoggle_item_sc($atts, $content = "")
 {
     global $azuraTabToggleArray;
     global $azuraTabItem;
     //$azuraTabToggleArray[] = array('id'=>(!empty($atts['id'])? $atts['id'] : ''), 'class'=>(!empty($atts['class'])? $atts['class'] : ''),'title'=>(!empty($atts['title'])? $atts['title'] : ''), 'iconclass'=>(!empty($atts['iconclass'])? $atts['iconclass'] : ''), 'content'=>$content);
     extract(shortcode_atts(array('id' => '', 'class' => '', 'title' => 'First Tab', 'iconclass' => '', 'layout' => ''), $atts));
     $styleArr = shortcode_atts(array('margin_top' => '', 'margin_right' => '', 'margin_bottom' => '', 'margin_left' => '', 'border_top_width' => '', 'border_right_width' => '', 'border_bottom_width' => '', 'border_left_width' => '', 'padding_top' => '', 'padding_right' => '', 'padding_bottom' => '', 'padding_left' => '', 'border_color' => '', 'border_style' => '', 'background_color' => '', 'background_image' => '', 'background_repeat' => '', 'background_attachment' => '', 'background_size' => '', 'additional_style' => '', 'simplified' => ''), $atts);
     $styleTextArr = CthShortcodes::parseStyle($styleArr);
     $tabtoggleitemstyle = '';
     $styleText = implode(" ", $styleTextArr);
     $styleTextTest = trim($styleText);
     if (!empty($styleTextTest)) {
         $tabtoggleitemstyle .= trim($styleText);
     }
     if (!empty($tabtoggleitemstyle)) {
         $tabtoggleitemstyle = 'style="' . $tabtoggleitemstyle . '"';
     }
     $animationArgs = shortcode_atts(array('animation' => '0', 'trigger' => 'animate', 'animationtype' => '', 'animationdelay' => ''), $atts);
     if (!isset($azuraTabItem)) {
         $azuraTabItem = 0;
     }
     if (empty($id)) {
         $id = uniqid('TabItem');
     }
     $azuraTabToggleArray[] = array('id' => $id, 'class' => $class, 'title' => $title, 'iconclass' => $iconclass, 'animationargs' => $animationArgs, 'content' => $content);
     $shortcodeTemp = false;
     if (stripos($layout, '_:') !== false) {
         $shortcodeTemp = JPATH_PLUGINS . '/system/cthshortcodes/shortcodes_template/' . substr($layout, 2) . '.php';
     } else {
         if (stripos($layout, ':') !== false) {
             $shortcodeTemp = CthShortcodes::templatePath() . '/html/com_azurapagebuilder/plugin/shortcodes_template/' . substr($layout, stripos($layout, ':') + 1) . '.php';
         } else {
             $shortcodeTemp = CthShortcodes::addShortcodeTemplate('azuratabtoggleitem');
         }
     }
     $buffer = ob_get_clean();
     ob_start();
     if ($shortcodeTemp !== false) {
         require $shortcodeTemp;
     }
     $content = ob_get_clean();
     ob_start();
     echo $buffer;
     $azuraTabItem++;
     return $content;
 }
Пример #15
0
 function azuraaccordionitem_sc($atts, $content = "")
 {
     global $accordionGroupID;
     global $accordionItem;
     extract(shortcode_atts(array('id' => '', 'class' => '', 'title' => '', 'subtitle' => '', 'layout' => ''), $atts));
     $styleArr = shortcode_atts(array('margin_top' => '', 'margin_right' => '', 'margin_bottom' => '', 'margin_left' => '', 'border_top_width' => '', 'border_right_width' => '', 'border_bottom_width' => '', 'border_left_width' => '', 'padding_top' => '', 'padding_right' => '', 'padding_bottom' => '', 'padding_left' => '', 'border_color' => '', 'border_style' => '', 'background_color' => '', 'background_image' => '', 'background_repeat' => '', 'background_attachment' => '', 'background_size' => '', 'additional_style' => '', 'simplified' => ''), $atts);
     $styleTextArr = CthShortcodes::parseStyle($styleArr);
     $accordionitemstyle = '';
     $styleText = implode(" ", $styleTextArr);
     $styleTextTest = trim($styleText);
     if (!empty($styleTextTest)) {
         $accordionitemstyle .= trim($styleText);
     }
     if (!empty($accordionitemstyle)) {
         $accordionitemstyle = 'style="' . $accordionitemstyle . '"';
     }
     $animationArgs = shortcode_atts(array('animation' => '0', 'trigger' => 'animate-in', 'animationtype' => '', 'hoveranimationtype' => '', 'infinite' => '0', 'animationdelay' => '0'), $atts);
     if (!isset($accordionGroupID)) {
         $accordionGroupID = uniqid('AccordionGroupID');
     }
     if (!isset($accordionItem)) {
         $accordionItem = 0;
     }
     $shortcodeTemp = false;
     if (stripos($layout, '_:') !== false) {
         $shortcodeTemp = JPATH_PLUGINS . '/system/cthshortcodes/shortcodes_template/' . substr($layout, 2) . '.php';
     } else {
         if (stripos($layout, ':') !== false) {
             $shortcodeTemp = JPATH_THEMES . '/' . JFactory::getApplication()->getTemplate() . '/html/com_azurapagebuilder/plugin/shortcodes_template/' . substr($layout, stripos($layout, ':') + 1) . '.php';
         } else {
             $shortcodeTemp = CthShortcodes::addShortcodeTemplate('azuraaccordionitem');
         }
     }
     $buffer = ob_get_clean();
     ob_start();
     if ($shortcodeTemp !== false) {
         require $shortcodeTemp;
     }
     $content = ob_get_clean();
     ob_start();
     echo $buffer;
     $accordionItem++;
     return $content;
 }
Пример #16
0
 function azurak2category_sc($atts, $content = "")
 {
     extract(shortcode_atts(array('id' => '', 'class' => '', 'category' => '', 'order' => 'created', 'orderdir' => 'ASC', 'limit' => 'All', 'showfilter' => '1', 'fetchchild' => '0', 'layout' => ''), $atts));
     $styleArr = shortcode_atts(array('margin_top' => '', 'margin_right' => '', 'margin_bottom' => '', 'margin_left' => '', 'border_top_width' => '', 'border_right_width' => '', 'border_bottom_width' => '', 'border_left_width' => '', 'padding_top' => '', 'padding_right' => '', 'padding_bottom' => '', 'padding_left' => '', 'border_color' => '', 'border_style' => '', 'background_color' => '', 'background_image' => '', 'background_repeat' => '', 'background_attachment' => '', 'background_size' => '', 'additional_style' => '', 'simplified' => ''), $atts);
     $styleTextArr = CthShortcodes::parseStyle($styleArr);
     $k2categorystyle = '';
     $styleText = implode(" ", $styleTextArr);
     $styleTextTest = trim($styleText);
     if (!empty($styleTextTest)) {
         $k2categorystyle .= trim($styleText);
     }
     if (!empty($k2categorystyle)) {
         $k2categorystyle = 'style="' . $k2categorystyle . '"';
     }
     $animationArgs = shortcode_atts(array('animation' => '0', 'trigger' => 'animate-in', 'animationtype' => '', 'hoveranimationtype' => '', 'infinite' => '0', 'animationdelay' => '0'), $atts);
     if ($category == '0' || $category == '') {
         return false;
     }
     $items = CthShortcodes::getK2Items($category, $limit, $order, $orderdir, '', $fetchchild);
     if ($showfilter == '1') {
         $tagsFilter = CthShortcodes::getK2TagsFilter($items);
     }
     $shortcodeTemp = false;
     if (stripos($layout, '_:') !== false) {
         $shortcodeTemp = JPATH_PLUGINS . '/system/cthshortcodes/shortcodes_template/' . substr($layout, 2) . '.php';
     } else {
         if (stripos($layout, ':') !== false) {
             $shortcodeTemp = JPATH_THEMES . '/' . JFactory::getApplication()->getTemplate() . '/html/com_azurapagebuilder/plugin/shortcodes_template/' . substr($layout, stripos($layout, ':') + 1) . '.php';
         } else {
             $shortcodeTemp = CthShortcodes::addShortcodeTemplate('azurak2category');
         }
     }
     $buffer = ob_get_clean();
     ob_start();
     if ($shortcodeTemp !== false) {
         require $shortcodeTemp;
     }
     $content = ob_get_clean();
     ob_start();
     echo $buffer;
     return $content;
 }
Пример #17
0
 function azurabxslider_item_sc($atts, $content = "")
 {
     extract(shortcode_atts(array('id' => '', 'class' => '', 'slideimage' => '', 'layout' => ''), $atts));
     $shortcodeTemp = false;
     if (stripos($layout, '_:') !== false) {
         $shortcodeTemp = JPATH_PLUGINS . '/system/cthshortcodes/shortcodes_template/' . substr($layout, 2) . '.php';
     } else {
         if (stripos($layout, ':') !== false) {
             $shortcodeTemp = CthShortcodes::templatePath() . '/html/com_azurapagebuilder/plugin/shortcodes_template/' . substr($layout, stripos($layout, ':') + 1) . '.php';
         } else {
             $shortcodeTemp = CthShortcodes::addShortcodeTemplate('azurabxslideritem');
         }
     }
     $buffer = ob_get_clean();
     ob_start();
     if ($shortcodeTemp !== false) {
         require $shortcodeTemp;
     }
     $content = ob_get_clean();
     ob_start();
     echo $buffer;
     return $content;
 }
Пример #18
0
 function azurabxslider_sc($atts, $content = "")
 {
     extract(shortcode_atts(array('id' => '', 'class' => 'bxslider', 'mode' => 'horizontal', 'speed' => '500', 'slidemargin' => '0', 'startslide' => '0', 'randomstart' => '0', 'slideselector' => '', 'infiniteloop' => '1', 'hidecontrolonend' => '0', 'easing' => 'null', 'captions' => '0', 'ticker' => '0', 'tickerhover' => '0', 'adaptiveheight' => '0', 'adaptiveheightspeed' => '500', 'video' => '0', 'responsive' => '1', 'usecss' => '1', 'preloadimages' => 'visible', 'touchenabled' => '1', 'swipethreshold' => '50', 'onetoonetouch' => '1', 'preventdefaultswipex' => '1', 'preventdefaultswipey' => '0', 'pager' => '1', 'pagertype' => 'full', 'pagershortseparator' => '/', 'pagerselector' => '', 'pagercustom' => 'null', 'buildpager' => 'null', 'controls' => '1', 'nexttext' => 'Next', 'prevtext' => 'Prev', 'nextselector' => 'null', 'prevselector' => 'null', 'autocontrols' => '0', 'starttext' => 'Start', 'stoptext' => 'Stop', 'autocontrolscombine' => '0', 'autocontrolsselector' => 'null', 'auto' => '0', 'pause' => '4000', 'autostart' => '1', 'autodirection' => 'next', 'autohover' => '0', 'autodelay' => '0', 'minslides' => '1', 'maxslides' => '1', 'moveslides' => '0', 'slidewidth' => '0', 'layout' => ''), $atts));
     $shortcodeTemp = false;
     if (stripos($layout, '_:') !== false) {
         $shortcodeTemp = JPATH_PLUGINS . '/system/cthshortcodes/shortcodes_template/' . substr($layout, 2) . '.php';
     } else {
         if (stripos($layout, ':') !== false) {
             $shortcodeTemp = CthShortcodes::templatePath() . '/html/com_azurapagebuilder/plugin/shortcodes_template/' . substr($layout, stripos($layout, ':') + 1) . '.php';
         } else {
             $shortcodeTemp = CthShortcodes::addShortcodeTemplate('azurabxslider');
         }
     }
     $buffer = ob_get_clean();
     ob_start();
     if ($shortcodeTemp !== false) {
         require $shortcodeTemp;
     }
     $content = ob_get_clean();
     ob_start();
     echo $buffer;
     return $content;
 }
Пример #19
0
 function azuracarouselslider_sc($atts, $content = "")
 {
     extract(shortcode_atts(array('id' => '', 'class' => '', 'transtyle' => '', 'sliderspeed' => '', 'rewindspeed' => '', 'slideperview' => '', 'itemscustom' => '', 'autoplay' => '', 'pagination' => '', 'paginationspeed' => '', 'navigation' => '', 'autoheight' => '', 'mousedrag' => '', 'touchdrag' => '', 'layout' => ''), $atts));
     $shortcodeTemp = false;
     if (stripos($layout, '_:') !== false) {
         $shortcodeTemp = JPATH_PLUGINS . '/system/cthshortcodes/shortcodes_template/' . substr($layout, 2) . '.php';
     } else {
         if (stripos($layout, ':') !== false) {
             $shortcodeTemp = CthShortcodes::templatePath() . '/html/com_azurapagebuilder/plugin/shortcodes_template/' . substr($layout, stripos($layout, ':') + 1) . '.php';
         } else {
             $shortcodeTemp = CthShortcodes::addShortcodeTemplate('azuracarouselslider');
         }
     }
     $buffer = ob_get_clean();
     ob_start();
     if ($shortcodeTemp !== false) {
         require $shortcodeTemp;
     }
     $content = ob_get_clean();
     ob_start();
     echo $buffer;
     return $content;
 }
Пример #20
0
 function azuratabtoggle_sc($atts, $content = "")
 {
     global $azuraTabToggleArray;
     extract(shortcode_atts(array('id' => '', 'class' => '', 'style' => 'tab', 'fade' => '0', 'defaultactive' => '0', 'layout' => ''), $atts));
     $styleArr = shortcode_atts(array('margin_top' => '', 'margin_right' => '', 'margin_bottom' => '', 'margin_left' => '', 'border_top_width' => '', 'border_right_width' => '', 'border_bottom_width' => '', 'border_left_width' => '', 'padding_top' => '', 'padding_right' => '', 'padding_bottom' => '', 'padding_left' => '', 'border_color' => '', 'border_style' => '', 'background_color' => '', 'background_image' => '', 'background_repeat' => '', 'background_attachment' => '', 'background_size' => '', 'additional_style' => '', 'simplified' => ''), $atts);
     $styleTextArr = CthShortcodes::parseStyle($styleArr);
     $tabtogglestyle = '';
     $styleText = implode(" ", $styleTextArr);
     $styleTextTest = trim($styleText);
     if (!empty($styleTextTest)) {
         $tabtogglestyle .= trim($styleText);
     }
     if (!empty($tabtogglestyle)) {
         $tabtogglestyle = 'style="' . $tabtogglestyle . '"';
     }
     $shortcodeTemp = false;
     if (stripos($layout, '_:') !== false) {
         $shortcodeTemp = JPATH_PLUGINS . '/system/cthshortcodes/shortcodes_template/' . substr($layout, 2) . '.php';
     } else {
         if (stripos($layout, ':') !== false) {
             $shortcodeTemp = CthShortcodes::templatePath() . '/html/com_azurapagebuilder/plugin/shortcodes_template/' . substr($layout, stripos($layout, ':') + 1) . '.php';
         } else {
             $shortcodeTemp = CthShortcodes::addShortcodeTemplate('azuratabtoggle');
         }
     }
     $buffer = ob_get_clean();
     ob_start();
     if ($shortcodeTemp !== false) {
         require $shortcodeTemp;
     }
     $content = ob_get_clean();
     ob_start();
     echo $buffer;
     $azuraTabToggleArray = array();
     return $content;
 }