* Access original fields: $mod_settings * @author Themify */ $fields_default = array('mod_title_portfolio' => '', 'layout_portfolio' => '', 'type_query_portfolio' => 'category', 'category_portfolio' => '', 'query_slug_portfolio' => '', 'post_per_page_portfolio' => '', 'offset_portfolio' => '', 'order_portfolio' => 'desc', 'orderby_portfolio' => 'date', 'display_portfolio' => 'content', 'hide_feat_img_portfolio' => 'no', 'image_size_portfolio' => '', 'img_width_portfolio' => '', 'img_height_portfolio' => '', 'unlink_feat_img_portfolio' => 'no', 'hide_post_title_portfolio' => 'no', 'unlink_post_title_portfolio' => 'no', 'hide_post_date_portfolio' => 'no', 'hide_post_meta_portfolio' => 'no', 'hide_page_nav_portfolio' => 'yes', 'animation_effect' => '', 'css_portfolio' => ''); if (isset($mod_settings['category_portfolio'])) { $mod_settings['category_portfolio'] = $this->get_param_value($mod_settings['category_portfolio']); } $fields_args = wp_parse_args($mod_settings, $fields_default); extract($fields_args, EXTR_SKIP); $animation_effect = $this->parse_animation_effect($animation_effect, $fields_args); $container_class = implode(' ', apply_filters('themify_builder_module_classes', array('module', 'module-' . $mod_name, $module_ID, $css_portfolio), $mod_name, $module_ID, $fields_args)); $this->add_post_class($animation_effect); $this->in_the_loop = true; global $paged; $paged = $this->get_paged_query(); if ($orderby_portfolio == 'rand' || TFCache::start_cache('portfolio', self::$post_id, array('page' => $paged, 'ID' => $module_ID))) { ?> <!-- module portfolio --> <div id="<?php echo esc_attr($module_ID); ?> " class="<?php echo esc_attr($container_class); ?> "> <?php if ($mod_title_portfolio != '') { ?> <?php echo $mod_settings['before_title'] . wp_kses_post(apply_filters('themify_builder_module_title', $mod_title_portfolio, $fields_args)) . $mod_settings['after_title']; ?>
<?php if (!defined('ABSPATH')) { exit; } // Exit if accessed directly /** * Template Gallery * * Access original fields: $mod_settings * @author Themify */ if (TFCache::start_cache('gallery', self::$post_id, array('ID' => $module_ID))) { $fields_default = array('mod_title_gallery' => '', 'layout_gallery' => 'grid', 'image_size_gallery' => 'thumbnail', 'shortcode_gallery' => '', 'thumb_w_gallery' => '', 'thumb_h_gallery' => '', 'appearance_gallery' => '', 'css_gallery' => '', 'gallery_images' => array(), 'link_opt' => '', 'rands' => '', 'animation_effect' => ''); if (isset($mod_settings['appearance_gallery'])) { $mod_settings['appearance_gallery'] = $this->get_checkbox_data($mod_settings['appearance_gallery']); } if (isset($mod_settings['shortcode_gallery'])) { $mod_settings['gallery_images'] = $this->get_images_from_gallery_shortcode($mod_settings['shortcode_gallery']); $mod_settings['link_opt'] = $this->get_gallery_param_option($mod_settings['shortcode_gallery']); } $fields_args = wp_parse_args($mod_settings, $fields_default); extract($fields_args, EXTR_SKIP); $animation_effect = $this->parse_animation_effect($animation_effect, $fields_args); $columns = $shortcode_gallery != '' ? $this->get_gallery_param_option($shortcode_gallery, 'columns') : ''; $columns = $columns == '' ? 3 : $columns; $columns = intval($columns); // Get image size attribute from shortcode $sc_image_size = '' !== $shortcode_gallery ? $this->get_gallery_param_option($shortcode_gallery, 'size') : ''; if ('' != $sc_image_size) { $fields_args['image_size_gallery'] = $sc_image_size;
<?php if (!defined('ABSPATH')) { exit; } // Exit if accessed directly /** * Template Callout * * Access original fields: $mod_settings * @author Themify */ if (TFCache::start_cache('callout', self::$post_id, array('ID' => $module_ID))) { $fields_default = array('mod_title_callout' => '', 'appearance_callout' => '', 'layout_callout' => '', 'color_callout' => '', 'heading_callout' => '', 'text_callout' => '', 'action_btn_link_callout' => '#', 'open_link_new_tab_callout' => '', 'action_btn_text_callout' => false, 'action_btn_color_callout' => '', 'action_btn_appearance_callout' => '', 'css_callout' => '', 'background_repeat' => '', 'animation_effect' => ''); if (isset($mod_settings['appearance_callout'])) { $mod_settings['appearance_callout'] = $this->get_checkbox_data($mod_settings['appearance_callout']); } if (isset($mod_settings['action_btn_appearance_callout'])) { $mod_settings['action_btn_appearance_callout'] = $this->get_checkbox_data($mod_settings['action_btn_appearance_callout']); } $fields_args = wp_parse_args($mod_settings, $fields_default); extract($fields_args, EXTR_SKIP); $animation_effect = $this->parse_animation_effect($animation_effect, $fields_args); $container_class = implode(' ', apply_filters('themify_builder_module_classes', array('module', 'module-' . $mod_name, $module_ID, 'ui', $layout_callout, $color_callout, $css_callout, $appearance_callout, $background_repeat, $animation_effect), $mod_name, $module_ID, $fields_args)); $ui_class = implode(' ', array('ui', 'builder_button', $action_btn_color_callout, $action_btn_appearance_callout)); ?> <!-- module callout --> <div id="<?php echo esc_attr($module_ID); ?> " class="<?php
<?php if (!defined('ABSPATH')) { exit; } // Exit if accessed directly /////////////////////////////////////// // Switch Template Layout Types /////////////////////////////////////// $template_name = isset($mod_settings['layout_display_slider']) && !empty($mod_settings['layout_display_slider']) ? $mod_settings['layout_display_slider'] : 'blog'; if (in_array($template_name, array('blog', 'portfolio', 'testimonial', 'slider'))) { $this->in_the_loop = true; } if (TFCache::start_cache('slider', self::$post_id, array('ID' => $module_ID))) { $this->retrieve_template('template-' . $mod_name . '-' . $template_name . '.php', array('module_ID' => $module_ID, 'mod_name' => $mod_name, 'settings' => isset($mod_settings) ? $mod_settings : array()), '', '', true); } TFCache::end_cache(); $this->in_the_loop = false;
<?php if (!defined('ABSPATH')) { exit; } // Exit if accessed directly /** * Template Image * * Access original fields: $mod_settings * @author Themify */ if (TFCache::start_cache('feature', self::$post_id, array('ID' => $module_ID))) { $chart_vars = apply_filters('themify_chart_init_vars', array('trackColor' => 'rgba(0,0,0,.1)', 'scaleColor' => 0, 'scaleLength' => 0, 'lineCap' => 'butt', 'rotate' => 0, 'size' => 150, 'lineWidth' => 3, 'animate' => 2000)); $fields_default = array('mod_title_feature' => '', 'title_feature' => '', 'layout_feature' => 'icon-left', 'content_feature' => '', 'circle_percentage_feature' => '', 'circle_color_feature' => 'de5d5d', 'circle_stroke_feature' => $chart_vars['lineWidth'], 'icon_type_feature' => 'icon', 'image_feature' => '', 'icon_feature' => '', 'icon_color_feature' => '000000', 'icon_bg_feature' => '', 'circle_size_feature' => 'medium', 'link_feature' => '', 'param_feature' => array(), 'css_feature' => '', 'animation_effect' => ''); if (isset($mod_settings['param_feature'])) { $mod_settings['param_feature'] = explode('|', $mod_settings['param_feature']); } $fields_args = wp_parse_args($mod_settings, $fields_default); extract($fields_args, EXTR_SKIP); $animation_effect = $this->parse_animation_effect($animation_effect, $fields_args); /* configure the chart size based on the option */ if ($circle_size_feature == 'large') { $chart_vars['size'] = 200; } elseif ($circle_size_feature == 'small') { $chart_vars['size'] = 100; } $chart_class = $circle_percentage_feature == '' ? 'no-chart' : 'with-chart'; $circle_percentage_feature = do_shortcode($circle_percentage_feature); if ('' == $circle_percentage_feature || '0' == $circle_percentage_feature) { $circle_percentage_feature = '0';
/** * Template Highlight * * Access original fields: $mod_settings * @author Themify */ $fields_default = array('mod_title_highlight' => '', 'layout_highlight' => '', 'type_query_highlight' => 'category', 'category_highlight' => '', 'query_slug_highlight' => '', 'post_per_page_highlight' => '', 'offset_highlight' => '', 'order_highlight' => '', 'orderby_highlight' => '', 'display_highlight' => '', 'hide_feat_img_highlight' => '', 'image_size_highlight' => '', 'img_width_highlight' => '', 'img_height_highlight' => '', 'hide_post_title_highlight' => '', 'hide_post_date_highlight' => '', 'hide_post_meta_highlight' => '', 'hide_page_nav_highlight' => '', 'animation_effect' => '', 'css_highlight' => ''); $fields_args = wp_parse_args($mod_settings, $fields_default); extract($fields_args, EXTR_SKIP); $animation_effect = $this->parse_animation_effect($animation_effect, $fields_args); $container_class = implode(' ', apply_filters('themify_builder_module_classes', array('module', 'module-' . $mod_name, $module_ID, $css_highlight), $mod_name, $module_ID, $fields_args)); global $paged; $this->in_the_loop = true; $paged = $this->get_paged_query(); $this->add_post_class($animation_effect); if ($order_highlight == 'rand' || TFCache::start_cache('highlight', self::$post_id, array('page' => $paged, 'ID' => $module_ID))) { ?> <!-- module highlight --> <div id="<?php echo esc_attr($module_ID); ?> " class="<?php echo esc_attr($container_class); ?> "> <?php if ($mod_title_highlight != '') { ?> <?php echo $mod_settings['before_title'] . wp_kses_post(apply_filters('themify_builder_module_title', $mod_title_highlight, $fields_args)) . $mod_settings['after_title'];
<?php if (!defined('ABSPATH')) { exit; } // Exit if accessed directly /** * Template Accordion * * Access original fields: $mod_settings * @author Themify */ if (TFCache::start_cache('accordion', self::$post_id, array('ID' => $module_ID))) { $fields_default = array('mod_title_accordion' => '', 'layout_accordion' => 'plus-icon-button', 'expand_collapse_accordion' => 'toggle', 'color_accordion' => '', 'accordion_appearance_accordion' => '', 'content_accordion' => array(), 'animation_effect' => '', 'css_accordion' => ''); if (isset($mod_settings['accordion_appearance_accordion'])) { $mod_settings['accordion_appearance_accordion'] = $this->get_checkbox_data($mod_settings['accordion_appearance_accordion']); } $fields_args = wp_parse_args($mod_settings, $fields_default); extract($fields_args, EXTR_SKIP); $animation_effect = $this->parse_animation_effect($animation_effect, $fields_args); $container_class = implode(' ', apply_filters('themify_builder_module_classes', array('module', 'module-' . $mod_name, $module_ID, $css_accordion, $animation_effect), $mod_name, $module_ID, $fields_args)); $ui_class = implode(' ', array('ui', 'module-' . $mod_name, $layout_accordion, $accordion_appearance_accordion, $color_accordion)); ?> <!-- module accordion --> <div id="<?php echo esc_attr($module_ID); ?> " class="<?php echo esc_attr($container_class); ?> " data-behavior="<?php
<?php if (!defined('ABSPATH')) { exit; } // Exit if accessed directly /** * Template Widgetized * * Access original fields: $mod_settings * @author Themify */ if (TFCache::start_cache('widgetized', self::$post_id, array('ID' => $module_ID))) { $fields_default = array('mod_title_widgetized' => '', 'sidebar_widgetized' => '', 'custom_css_widgetized' => '', 'background_repeat' => '', 'animation_effect' => ''); $fields_args = wp_parse_args($mod_settings, $fields_default); extract($fields_args, EXTR_SKIP); $animation_effect = $this->parse_animation_effect($animation_effect, $fields_args); $container_class = implode(' ', apply_filters('themify_builder_module_classes', array('module', 'module-' . $mod_name, $module_ID, $custom_css_widgetized, $background_repeat, $animation_effect), $mod_name, $module_ID, $fields_args)); ?> <!-- module widgetized --> <div id="<?php echo esc_attr($module_ID); ?> " class="<?php echo esc_attr($container_class); ?> "> <?php if ($mod_title_widgetized != '') { echo $mod_settings['before_title'] . wp_kses_post(apply_filters('themify_builder_module_title', $mod_title_widgetized, $fields_args)) . $mod_settings['after_title'];
* Access original fields: $mod_settings * @author Themify */ $BuilderTestimonial = new Builder_Testimonial(); $fields_default = array('mod_title_testimonial' => '', 'layout_testimonial' => '', 'type_query_testimonial' => 'category', 'category_testimonial' => '', 'query_slug_testimonial' => '', 'post_per_page_testimonial' => '', 'offset_testimonial' => '', 'order_testimonial' => 'desc', 'orderby_testimonial' => 'date', 'display_testimonial' => 'content', 'hide_feat_img_testimonial' => '', 'image_size_testimonial' => '', 'img_width_testimonial' => '', 'img_height_testimonial' => '', 'unlink_feat_img_testimonial' => 'no', 'hide_post_title_testimonial' => 'no', 'unlink_post_title_testimonial' => 'no', 'hide_post_date_testimonial' => 'no', 'hide_post_meta_testimonial' => 'no', 'hide_page_nav_testimonial' => 'yes', 'animation_effect' => '', 'css_testimonial' => ''); if (isset($mod_settings['category_testimonial'])) { $mod_settings['category_testimonial'] = $this->get_param_value($mod_settings['category_testimonial']); } $fields_args = wp_parse_args($mod_settings, $fields_default); extract($fields_args, EXTR_SKIP); $animation_effect = $this->parse_animation_effect($animation_effect, $fields_args); $container_class = implode(' ', apply_filters('themify_builder_module_classes', array('module', 'module-' . $mod_name, $module_ID, $css_testimonial, $animation_effect), $mod_name, $module_ID, $fields_args)); $this->in_the_loop = true; global $paged; $paged = $this->get_paged_query(); if ($orderby_testimonial == 'rand' || TFCache::start_cache('testimonial', self::$post_id, array('page' => $paged, 'ID' => $module_ID))) { ?> <!-- module testimonial --> <div id="<?php echo esc_attr($module_ID); ?> " class="<?php echo esc_attr($container_class); ?> "> <?php if ($mod_title_testimonial != '') { ?> <?php echo $mod_settings['before_title'] . wp_kses_post(apply_filters('themify_builder_module_title', $mod_title_testimonial, $fields_args)) . $mod_settings['after_title']; ?>