Exemplo n.º 1
0
 function azurahtml_sc($atts, $content = "")
 {
     $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);
     $htmlstyle = '';
     $styleText = implode(" ", $styleTextArr);
     $styleTextTest = trim($styleText);
     if (!empty($styleTextTest)) {
         $htmlstyle .= trim($styleText);
     }
     if (!empty($htmlstyle)) {
         $htmlstyle = 'style="' . $htmlstyle . '"';
     }
     $animationArgs = shortcode_atts(array('animation' => '0', 'trigger' => 'animate-in', 'animationtype' => '', 'hoveranimationtype' => '', 'infinite' => '0', 'animationdelay' => '0'), $atts);
     $animationData = '';
     if ($animationArgs['animation'] == '1') {
         if ($animationArgs['trigger'] == 'animate-in') {
             $class = $animationArgs['trigger'];
             $animationData = 'data-anim-type="' . $animationArgs['animationtype'] . '" data-anim-delay="' . $animationArgs['animationdelay'] . '"';
         } else {
             $classes = $animationArgs['trigger'] . '-' . $animationArgs['hoveranimationtype'];
             if ($animationArgs['infinite'] != '0') {
                 $class .= ' infinite';
             }
         }
     }
     if (!empty($class)) {
         $class = 'class="' . $class . '"';
     }
     if (empty($htmlstyle) && empty($class) && empty($animationData)) {
         return do_shortcode($content);
     } else {
         return '<div ' . $class . ' ' . $htmlstyle . ' ' . $animationData . '>' . do_shortcode($content) . '</div>';
     }
 }
Exemplo n.º 2
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;
 }
Exemplo n.º 3
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;
 }
Exemplo n.º 4
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;
 }
Exemplo n.º 5
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;
 }
Exemplo n.º 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;
 }
Exemplo n.º 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;
 }
Exemplo n.º 8
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;
 }
Exemplo n.º 9
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;
 }
Exemplo n.º 10
0
 function azuratext_sc($atts, $content = "")
 {
     extract(shortcode_atts(array('id' => '', 'class' => '', 'wrapper' => ''), $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);
     $textstyle = '';
     $styleText = implode(" ", $styleTextArr);
     $styleTextTest = trim($styleText);
     if (!empty($styleTextTest)) {
         $textstyle .= trim($styleText);
     }
     if (!empty($textstyle)) {
         $textstyle = 'style="' . $textstyle . '"';
     }
     $animationArgs = shortcode_atts(array('animation' => '0', 'trigger' => 'animate-in', 'animationtype' => '', 'hoveranimationtype' => '', 'infinite' => '0', 'animationdelay' => '0'), $atts);
     $classes = 'azp_font_edit';
     $animationData = '';
     if ($animationArgs['animation'] == '1') {
         if ($animationArgs['trigger'] == 'animate-in') {
             $classes .= ' ' . $animationArgs['trigger'];
             $animationData = 'data-anim-type="' . $animationArgs['animationtype'] . '" data-anim-delay="' . $animationArgs['animationdelay'] . '"';
         } else {
             $classes .= ' ' . $animationArgs['trigger'] . '-' . $animationArgs['hoveranimationtype'];
             if ($animationArgs['infinite'] != '0') {
                 $classes .= ' infinite';
             }
         }
     }
     if (!empty($class)) {
         $classes .= ' ' . $class;
     }
     if (!empty($classes)) {
         $classes = 'class="' . $classes . '"';
     }
     $html = '';
     if (!empty($wrapper)) {
         $html .= '<' . $wrapper . ' ' . $textstyle . ' ' . $classes . ' ' . $animationData;
         if (!empty($id)) {
             $html .= ' id="' . $id . '"';
         }
         $html .= '>';
     }
     $html .= do_shortcode($content);
     if (!empty($wrapper)) {
         $html .= '</' . $wrapper . '>';
     }
     return $html;
 }
Exemplo n.º 11
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;
 }
Exemplo n.º 12
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;
 }
Exemplo n.º 13
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;
 }
Exemplo n.º 14
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;
 }
Exemplo n.º 15
0
 function azuraimage_sc($atts, $content = "")
 {
     extract(shortcode_atts(array('id' => '', 'class' => '', 'title' => ''), $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);
     $imagestyle = '';
     $styleText = implode(" ", $styleTextArr);
     $styleTextTest = trim($styleText);
     if (!empty($styleTextTest)) {
         $imagestyle .= trim($styleText);
     }
     if (!empty($imagestyle)) {
         $imagestyle = 'style="' . $imagestyle . '"';
     }
     $animationArgs = shortcode_atts(array('animation' => '0', 'trigger' => 'animate', 'animationtype' => '', 'animationdelay' => ''), $atts);
     $classes = "azp_image";
     if (!empty($class)) {
         $classes .= ' ' . $class;
     }
     $animationData = '';
     if ($animationArgs['animation'] == '1') {
         $classes .= ' ' . $animationArgs['trigger'];
         if (!empty($animationArgs['animationtype'])) {
             $animationData .= 'data-anim-type="' . $animationArgs['animationtype'] . '"';
         }
         if (!empty($animationArgs['animationdelay'])) {
             $animationData .= ' data-anim-delay="' . $animationArgs['animationdelay'] . '"';
         }
     }
     $classes = 'class="' . $classes . '"';
     if (!empty($id)) {
         $id = 'id="' . $id . '"';
     }
     $html = '<img ' . $id . ' ' . $classes . ' ' . $imagestyle . ' ' . $animationData . ' alt="' . $title . '" title="' . $title . '" src="' . JURI::root(true) . '/' . $content . '">';
     return $html;
 }