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; }
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; }
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; }
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 . '"'; } $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('azuracontactform'); } } $buffer = ob_get_clean(); ob_start(); if ($shortcodeTemp !== false) { require $shortcodeTemp; } $content = ob_get_clean(); ob_start(); echo $buffer; return $content; }
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; }
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; }
function azuravideo_sc($atts, $content = "") { extract(shortcode_atts(array('id' => '', 'class' => '', 'autoplay' => '', 'loop' => '', 'width' => '', 'height' => '', 'layout' => ''), $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}"; } $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', '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('azuravideo'); } } $buffer = ob_get_clean(); ob_start(); if ($shortcodeTemp !== false) { require $shortcodeTemp; } $content = ob_get_clean(); ob_start(); echo $buffer; return $content; }
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; }
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', 'animationtype' => '', 'animationdelay' => ''), $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 = CthShortcodes::templatePath() . '/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; }
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; }
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; }
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; }
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; }