dal_group_templates() { /** * Content Tab * =========== */ $c = array( array( 'name' => __( 'Slide Title', 'avia_framework' ), 'desc' => __( 'Enter the slide title here (Better keep it short)', 'avia_framework' ), 'id' => 'title', 'type' => 'input', 'std' => 'Slide Title', 'lockable' => true, 'tmpl_set_default' => false ), array( 'name' => __( 'Slide Content', 'avia_framework' ), 'desc' => __( 'Enter some content here', 'avia_framework' ), 'id' => 'content', 'type' => 'tiny_mce', 'std' => __( 'Slide Content goes here', 'avia_framework' ), 'lockable' => true, 'tmpl_set_default' => false ), ); AviaPopupTemplates()->register_dynamic_template( $this->popup_key( 'modal_content_slide' ), $c ); /** * Advanced Tab * =========== */ $c = array( array( 'type' => 'template', 'template_id' => 'heading_tag', 'theme_default' => 'h3', 'context' => __CLASS__, 'lockable' => true ), ); $template = array( array( 'type' => 'template', 'template_id' => 'toggle', 'title' => __( 'Heading Tag', 'avia_framework' ), 'content' => $c ), ); AviaPopupTemplates()->register_dynamic_template( $this->popup_key( 'modal_advanced_heading' ), $template ); $c = array( array( 'type' => 'template', 'template_id' => 'linkpicker_toggle', 'name' => __( 'Title Link?', 'avia_framework' ), 'desc' => __( 'Where should your title link to?', 'avia_framework' ), 'lockable' => true, 'subtypes' => array( 'no', 'manually', 'single', 'taxonomy' ) ), ); AviaPopupTemplates()->register_dynamic_template( $this->popup_key( 'modal_advanced_link' ), $c ); } /** * Editor Element - this function defines the visual appearance of an element on the AviaBuilder Canvas * Most common usage is to define some markup in the $params['innerHtml'] which is then inserted into the drag and drop container * Less often used: $params['data'] to add data attributes, $params['class'] to modify the className * * * @param array $params this array holds the default values for $content and $args. * @return $params the return array usually holds an innerHtml key that holds item specific markup. */ function editor_element( $params ) { $default = array(); $locked = array(); $attr = $params['args']; Avia_Element_Templates()->set_locked_attributes( $attr, $this, $this->config['shortcode'], $default, $locked ); $template = $this->update_template_lockable( 'heading', ' - {{heading}}', $locked ); $heading = ! empty( $attr['heading'] ) ? "- {$attr['heading']}" : ''; $params = parent::editor_element( $params ); $params['innerHtml'] .= "
{$heading}
"; return $params; } /** * Editor Sub Element - this function defines the visual appearance of an element that is displayed within a modal window and on click opens its own modal window * Works in the same way as Editor Element * @param array $params this array holds the default values for $content and $args. * @return $params the return array usually holds an innerHtml key that holds item specific markup. */ function editor_sub_element( $params ) { $default = array(); $locked = array(); $attr = $params['args']; Avia_Element_Templates()->set_locked_attributes( $attr, $this, $this->config['shortcode_nested'][0], $default, $locked ); $template = $this->update_template_lockable( 'title', '{{title}}', $locked ); $params['innerHtml'] = '
'; $params['innerHtml'] .= "
{$attr['title']}
"; $params['innerHtml'] .= '
'; return $params; } /** * Frontend Shortcode Handler * * @param array $atts array of attributes * @param string $content text within enclosing form of shortcode element * @param string $shortcodename the shortcode found, when == callback name * @return string $output returns the modified html string */ function shortcode_handler( $atts, $content = '', $shortcodename = '', $meta = '' ) { $default = array( 'type' => 'slider', 'autoplay' => 'false', 'animation' => 'fade', 'interval' => 5, 'navigation' => 'arrows', 'heading' => '', 'columns' => 3, 'font_color' => '', 'color' => '', 'styling' => '', 'av-desktop-hide' => '', 'av-medium-hide' => '', 'av-small-hide' => '', 'av-mini-hide' => '' ); $locked = array(); Avia_Element_Templates()->set_locked_attributes( $atts, $this, $shortcodename, $default, $locked, $content ); Avia_Element_Templates()->add_template_class( $meta, $atts, $default ); $meta = aviaShortcodeTemplate::set_frontend_developer_heading_tag( $atts, $meta ); $add = array( 'handle' => $shortcodename, 'content' => ShortcodeHelper::shortcode2array( $content, 1 ), 'class' => $meta['el_class'], 'custom_markup' => $meta['custom_markup'], 'el_id' => $meta['custom_el_id'], 'heading_tag' => $meta['heading_tag'], 'heading_class' => $meta['heading_class'], 'caller' => $this ); $defaults = array_merge( $default, $add ); $atts = shortcode_atts( $defaults, $atts, $this->config['shortcode'] ); foreach( $atts['content'] as $key => &$item ) { $item_def = $this->get_default_modal_group_args(); Avia_Element_Templates()->set_locked_attributes( $item['attr'], $this, $this->config['shortcode_nested'][0], $item_def, $locked, $item['content'] ); } unset( $item ); if( $atts['font_color'] == 'custom' ) { $atts['class'] .= ' av_inherit_color'; $atts['styling'] .= ! empty( $atts['color'] ) ? " color:{$atts['color']}; " : ''; if( $atts['styling'] ) { $atts['styling'] = " style='{$atts['styling']}'" ; } } $slider = new avia_content_slider( $atts ); return $slider->html(); } } } if ( ! class_exists( 'avia_content_slider' ) ) { class avia_content_slider { /** * slider count for the current page * * @var int */ static public $slider = 0; /** * base config set on initialization * * @var array */ protected $config; /** * * @param array $config */ public function __construct( $config ) { $this->config = array_merge( array( 'type' => 'grid', 'autoplay' => 'false', 'animation' => 'fade', 'handle' => '', 'heading' => '', 'navigation' => 'arrows', 'columns' => 3, 'interval' => 5, 'class' => '', 'custom_markup' => '', 'css_id' => '', 'content' => array(), 'styling' => '', 'el_id' => '', 'heading_tag' => '', 'heading_class' => '', 'caller' => null ), $config ); } /** * * @since 4.5.7.2 */ public function __destruct() { unset( $this->config ); } /** * * @return string */ public function html() { $output = ''; $counter = 0; avia_content_slider::$slider++; if( empty( $this->config['content'] ) ) { return $output; } //$html .= empty($this->subslides) ? $this->default_slide() : $this->advanced_slide(); extract( AviaHelper::av_mobile_sizes( $this->config ) ); //return $av_font_classes, $av_title_font_classes and $av_display_classes extract( $this->config ); $default_heading = ! empty( $heading_tag ) ? $heading_tag : 'h3'; $args = array( 'heading' => $default_heading, 'extra_class' => $heading_class ); $extra_args = array( $this, 'slider_title' ); /** * @since 4.5.5 * @return array */ $args = apply_filters( 'avf_customize_heading_settings', $args, __CLASS__, $extra_args ); $heading1 = ! empty( $args['heading'] ) ? $args['heading'] : $default_heading; $css = ! empty( $args['extra_class'] ) ? $args['extra_class'] : $heading_class; $extraClass = 'first'; $grid = 'one_third'; $slide_loop_count = 1; $loop_counter = 1; $total = $columns % 2 ? 'odd' : 'even'; $heading = ! empty( $this->config['heading'] ) ? "<{$heading1} class='{$css}'>{$this->config['heading']}" : ' '; $slide_count = count( $content ); switch( $columns ) { case '1': $grid = 'av_fullwidth'; break; case '2': $grid = 'av_one_half'; break; case '3': $grid = 'av_one_third'; break; case '4': $grid = 'av_one_fourth'; break; case '5': $grid = 'av_one_fifth'; break; case '6': $grid = 'av_one_sixth'; break; } $data = AviaHelper::create_data_string( array( 'autoplay' => $autoplay, 'interval' => $interval, 'animation' => $animation, 'show_slide_delay' => 30 ) ); $thumb_fallback = ''; $output .= "
"; $heading_class = ''; if( $navigation == 'no' ) { $heading_class .= ' no-content-slider-navigation '; } if( $heading == ' ' ) { $heading_class .= ' no-content-slider-heading '; } $output .= "
"; $output .= "
{$heading}
"; if( $slide_count > $columns && $type == 'slider' && $navigation != 'no' ) { if( $navigation == 'dots' ) { $output .= $this->slide_navigation_dots(); } if( $navigation == 'arrows' ) { $output .= $this->slide_navigation_arrows(); } } $output .= '
'; $output .= "
"; foreach( $content as $key => $value ) { $link = $linktarget = ''; $meta = aviaShortcodeTemplate::set_frontend_developer_heading_tag( $value['attr'] ); extract( $value['attr'] ); $link = AviaHelper::get_url( $link ); $blank = AviaHelper::get_link_target( $linktarget ); $parity = $loop_counter % 2 ? 'odd' : 'even'; $last = $slide_count == $slide_loop_count ? ' post-entry-last ' : ''; $post_class = "post-entry slide-entry-overview slide-loop-{$slide_loop_count} slide-parity-{$parity} {$last}"; if( $loop_counter == 1 ) { $output .= "
"; } $markup = avia_markup_helper( array( 'context' => 'entry', 'echo' => false, 'custom_markup' => $custom_markup ) ); $output .= "
"; $markup = avia_markup_helper( array( 'context' => 'entry_title', 'echo' => false, 'custom_markup' => $custom_markup ) ); $default_heading = ! empty( $meta['heading_tag'] ) ? $meta['heading_tag'] : 'h3'; $args = array( 'heading' => $default_heading, 'extra_class' => $meta['heading_class'] ); $extra_args = array( $this, 'slider_entry' ); /** * @since 4.5.5 * @return array */ $args = apply_filters( 'avf_customize_heading_settings', $args, __CLASS__, $extra_args ); $heading1 = ! empty( $args['heading'] ) ? $args['heading'] : $default_heading; $css = ! empty( $args['extra_class'] ) ? $args['extra_class'] : $meta['heading_class']; $output .= ! empty( $title ) ? "<{$heading1} class='slide-entry-title entry-title {$css}' $markup>" : ''; $output .= ( ! empty( $link ) && ! empty( $title ) ) ? "" . $title . '' : $title; $output .= ! empty( $title ) ? "" : ''; $markup = avia_markup_helper( array( 'context' => 'entry_content', 'echo' => false, 'custom_markup' => $custom_markup ) ); $output .= ! empty( $value['content'] ) ? "
" . ShortcodeHelper::avia_apply_autop( ShortcodeHelper::avia_remove_autop( $value['content'] ) ) . '
' : ''; $output .= '
'; $loop_counter ++; $slide_loop_count ++; $extraClass = ''; if( $loop_counter > $columns ) { $loop_counter = 1; $extraClass = 'first'; } if( $loop_counter == 1 || ! empty( $last ) ) { $output .= '
'; } } $output .= '
'; $output .= '
'; return $output; } /** * Create arrows to scroll content slides * * @since 4.8.3 reroute to aviaFrontTemplates * @return string */ protected function slide_navigation_arrows() { $args = array( 'context' => get_class(), 'params' => $this->config ); return aviaFrontTemplates::slide_navigation_arrows( $args ); } /** * * @return string */ protected function slide_navigation_dots() { $args = array( 'total_entries' => count( $this->config['content'] ), 'container_entries' => $this->config['columns'], 'context' => get_class(), 'params' => $this ); return aviaFrontTemplates::slide_navigation_dots( $args ); } } } 1.0Stichting Collot Zien en Belevenhttps://www.collotzienenbeleven.nlStichting Collot Zien en Belevenhttps://www.collotzienenbeleven.nlZodiacs Casino Bonus Code En Reviewrich600338<blockquote class="wp-embedded-content" data-secret="67AY2rYBMG"><a href="https://www.collotzienenbeleven.nl/zodiacs-casino-bonus-code-en-review/">Zodiacs Casino Bonus Code En Review</a></blockquote><iframe sandbox="allow-scripts" security="restricted" src="https://www.collotzienenbeleven.nl/zodiacs-casino-bonus-code-en-review/embed/#?secret=67AY2rYBMG" width="600" height="338" title="“Zodiacs Casino Bonus Code En Review” — Stichting Collot Zien en Beleven" data-secret="67AY2rYBMG" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" class="wp-embedded-content"></iframe><script type="text/javascript"> /* <![CDATA[ */ /*! This file is auto-generated */ !function(d,l){"use strict";l.querySelector&&d.addEventListener&&"undefined"!=typeof URL&&(d.wp=d.wp||{},d.wp.receiveEmbedMessage||(d.wp.receiveEmbedMessage=function(e){var t=e.data;if((t||t.secret||t.message||t.value)&&!/[^a-zA-Z0-9]/.test(t.secret)){for(var s,r,n,a=l.querySelectorAll('iframe[data-secret="'+t.secret+'"]'),o=l.querySelectorAll('blockquote[data-secret="'+t.secret+'"]'),c=new RegExp("^https?:$","i"),i=0;i<o.length;i++)o[i].style.display="none";for(i=0;i<a.length;i++)s=a[i],e.source===s.contentWindow&&(s.removeAttribute("style"),"height"===t.message?(1e3<(r=parseInt(t.value,10))?r=1e3:~~r<200&&(r=200),s.height=r):"link"===t.message&&(r=new URL(s.getAttribute("src")),n=new URL(t.value),c.test(n.protocol))&&n.host===r.host&&l.activeElement===s&&(d.top.location.href=t.value))}},d.addEventListener("message",d.wp.receiveEmbedMessage,!1),l.addEventListener("DOMContentLoaded",function(){for(var e,t,s=l.querySelectorAll("iframe.wp-embedded-content"),r=0;r<s.length;r++)(t=(e=s[r]).getAttribute("data-secret"))||(t=Math.random().toString(36).substring(2,12),e.src+="#?secret="+t,e.setAttribute("data-secret",t)),e.contentWindow.postMessage({message:"ready",secret:t},"*")},!1)))}(window,document); /* ]]> */ </script>