Example #1
0
    $output .= '<div class="slidernav-left nvcolor-wrap">';
    if ($post_count > $NV_slidercolumns) {
        $output .= '<span class="nvcolor"></span><div class="slidernav"><a href="#"></a></div>';
    }
    $output .= '</div>';
    $output .= '<div class="slidernav-right nvcolor-wrap">';
    if ($post_count > $NV_slidercolumns) {
        $output .= '<span class="nvcolor"></span><div class="slidernav"><a href="#"></a></div>';
    }
    $output .= '</div>';
    $output .= '<div class="dynamic-frame clearfix" data-offset="' . $load_limit . '" data-total="' . $post_count . '" data-load-value="' . $load_value . '">';
    $output .= '<input name="group-slider-' . $NV_shortcode_id . '_timeout" class="timeout" value="' . $timeout . '" type="hidden" />';
    $output .= '</div>';
    $output .= '</div><!-- / gallery-wrap -->';
    $output .= '<div class="clear"></div>';
    wp_deregister_script('jquery-cycle');
    wp_register_script('jquery-cycle', get_template_directory_uri() . '/js/jquery.cycle.plugin.min.js', false, array('jquery'));
    wp_enqueue_script('jquery-cycle');
    wp_deregister_script('touch-gestures');
    wp_register_script('touch-gestures', get_template_directory_uri() . '/js/touch.gestures.min.js', false, array('jquery'), true);
    wp_enqueue_script('touch-gestures');
    wp_deregister_script('group-slider');
    wp_register_script('group-slider', get_template_directory_uri() . '/js/group.slider.min.js', false, array('jquery-cycle'), true);
    wp_enqueue_script('group-slider');
    return $output;
}
/* ------------------------------------
	:: GROUP GALLERY MAP
	------------------------------------*/
wpb_map(array("base" => "postgallery_slider", "name" => __("Group Gallery", "js_composer"), "class" => "nv_options group", "controls" => "edit_popup_delete", "icon" => "icon-groupgallery", "category" => __('Gallery', 'js_composer'), "params" => array(array("type" => "textfield", "holder" => "h4", "class" => "", "heading" => __("Gallery ID", "js_composer"), "param_name" => "id", "value" => __("group_", "js_composer"), "description" => __("Enter a unique ID group_one.", "js_composer")), array("type" => "textfield", "class" => "", "heading" => __("Title", "js_composer"), "param_name" => "title", "value" => "", "description" => __("Add an optional title.", "js_composer")), get_common_options('datasource'), get_common_options('data-1'), get_common_options('data-2'), get_common_options('data-2-formats'), get_common_options('data-8'), get_common_options('orderby'), get_common_options('sortby'), get_common_options('excerpt'), array("type" => "textfield", "class" => "", "heading" => __("Posts Limit", "js_composer"), "param_name" => "limit", "value" => "", "dependency" => array('element' => 'data_source', 'value' => array('data-2', 'data-5', 'data-8')), "description" => __("Set a posts limit.", "js_composer")), get_common_options('data-3'), get_common_options('data-4'), get_common_options('data-5'), get_common_options('data-5-tags'), get_common_options('data-6'), array("type" => "dropdown", "heading" => __("Ajax Lazy Load", "js_composer"), "param_name" => "load_ajax", "value" => array(__("Disabled", "js_composer") => '', __("Enable", "js_composer") => 'auto_load'), "description" => __("Load Gallery content in via Ajax ( Reduces page load time ).", "js_composer")), get_common_options('content'), get_common_options('timeout'), get_common_options('columns'), get_common_options('columnpadding'), array("type" => "checkbox", "class" => "", "heading" => __("Vertical Scroll", "js_composer"), "param_name" => "vertical", "value" => array('Enable' => 'yes')), get_common_options('width'), get_common_options('height', 'grid'), get_common_options('align', 'Gallery'), get_common_options('imageeffect'), get_common_options('imgwidth'), get_common_options('imgheight'), array("type" => "checkbox", "class" => "", "heading" => __("Lightbox", "js_composer"), "param_name" => "lightbox", "value" => array('Enable' => 'yes')), array("type" => "textfield", "class" => "", "heading" => __("CSS Classes", "js_composer"), "param_name" => "class", "value" => "", "description" => __("Add an optional CSS classes.", "js_composer")))));
add_shortcode('postgallery_slider', 'postgallery_slider_shortcode');
Example #2
0
            if (!empty($text_color)) {
                $text_color = 'color:' . $text_color . ';';
            }
            return '<div class="button-wrap ' . $type . ' ' . $width . ' ' . $css_class . ' ' . $buttonalign . '"><div style="' . $style . '" class="button ' . $width . '"><a href="' . $url . '" ' . $target . ' style="' . $text_color . '">' . $icon . ' ' . $content . '</a></div></div>';
        } else {
            return '<div class="button-wrap ' . $width . ' ' . $css_class . ' ' . $buttonalign . '"><div class="' . $color . ' button ' . $width . '"><a href="' . $url . '" ' . $target . '>' . $icon . ' ' . $content . '</a></div></div>';
        }
    }
}
/* ------------------------------------
	:: DROP PANEL BUTTON
	------------------------------------*/
function droppanelbutton_shortcode($atts, $content = null, $code)
{
    extract(shortcode_atts(array('url' => '', 'type' => '', 'title' => '', 'target' => '', 'color' => '', 'back_color' => '', 'border_color' => '', 'text_color' => '', 'width' => '', 'align' => '', 'el_class' => ''), $atts));
    if (!empty($target)) {
        $target = 'target="' . $target . '"';
    }
    if (!empty($title)) {
        $content = $title;
    }
    return '<div class="button-wrap ' . $width . ' ' . $el_class . ' ' . $align . '"><div class="' . $color . ' button ' . $width . ' droppaneltrigger"><a href="#">' . $content . '</a></div></div>';
}
// Add Default Link Color
$button_colors = get_options_array('colors');
$button_colors = array('Link Color' => 'link_color') + $button_colors;
/* ------------------------------------
	:: BUTTONS MAP
	------------------------------------*/
wpb_map(array("name" => __("Button", "js_composer"), "base" => "button", "class" => "", 'deprecated' => '4.6', "icon" => "icon-button", "controls" => "edit_popup_delete", "category" => __('Content', 'js_composer'), "show_settings_on_create" => true, "params" => array(array("type" => "textfield", "holder" => "div", "heading" => __("Button Text", "js_composer"), "param_name" => "title", "value" => "", "description" => __("Enter button text.", "js_composer")), array("type" => "dropdown", "heading" => __("Button Type", "js_composer"), "param_name" => "type", "value" => array(__('Button', "js_composer") => "linkbutton", __('Drop Panel Trigger', "js_composer") => "droppanelbutton", __('Custom', "js_composer") => "custom"), "description" => __("Select button type.", "js_composer")), array("type" => "colorpicker", "heading" => __("Text Color", "js_composer"), "param_name" => "text_color", "value" => "", "dependency" => array('element' => 'type', 'value' => array('custom')), "description" => __("Button Color", "js_composer")), array("type" => "colorpicker", "heading" => __("Background Color", "js_composer"), "param_name" => "back_color", "value" => "", "dependency" => array('element' => 'type', 'value' => array('custom')), "description" => __("Button Color", "js_composer")), array("type" => "dropdown", "heading" => __("Color", "js_composer"), "param_name" => "color", "value" => $button_colors, "dependency" => array('element' => 'type', 'value' => array('droppanelbutton', 'linkbutton')), "description" => __("Select button type.", "js_composer")), array("type" => "textfield", "holder" => "div", "heading" => __("Button Icon", "js_composer"), "param_name" => "icon", "value" => "", "description" => __("See Font Awesome <a href=\"http://fortawesome.github.io/Font-Awesome/icons/\" target=\"_blank\">Icons</a> : Enture Icon Name e.g.<strong> fa-compass</strong>", "js_composer")), get_common_options('align', 'Button'), array("type" => "textfield", "heading" => __("Link URL", "js_composer"), "param_name" => "url", "dependency" => array('element' => 'type', 'value' => array('custom', 'linkbutton')), "value" => ""), array("type" => "dropdown", "heading" => __("Link Target", "js_composer"), "param_name" => "target", "value" => array(__("Same window", "js_composer") => "_self", __("New window", "js_composer") => "_blank"), "dependency" => array('element' => 'type', 'value' => array('custom', 'linkbutton'))), $add_css_animation, array("type" => "dropdown", "heading" => __("Width", "js_composer"), "param_name" => "width", "value" => array(__("Normal", "js_composer") => "", __("Quarter", "js_composer") => "quarter", __("Half", "js_composer") => "half", __("Three Quarter", "js_composer") => "threequarter", __("Full", "js_composer") => "full")), array("type" => "textfield", "heading" => __("Extra class name", "js_composer"), "param_name" => "el_class", "value" => "", "description" => __("Add Custom CSS classes to this field, below are some default classes you can use.<br /><br />\n\t\t\t\t<strong>medium-text</strong><br />\n\t\t\t\t<strong>big-text</strong><br />\n\t\t\t\t<strong>large-text</strong><br />\n\t\t\t\t<strong>xlarge-text</strong><br />\n\t\t\t\t<strong>supersize-text</strong>\n\t\t\t\t", "js_composer")))));
add_shortcode('droppanelbutton', 'droppanelbutton_shortcode');
Example #3
0
						<?php 
            comments_popup_link(__('No Comments', 'themeva') . ' ', '1 ' . __('Comment', 'themeva') . ' ', '% ' . __('Comments', 'themeva'));
            ?>
						<div class="hozbreak clearfix">&nbsp;</div>
					</div>
				<?php 
        }
        ?>
                
				<div class="clear"></div>
			</li>
		<?php 
    }
    wp_reset_query();
    ?>
		
		</ul>
		
		
	<?php 
    $output_string = '';
    $output_string = ob_get_contents();
    ob_end_clean();
    return $output_string;
}
/* ------------------------------------
	:: RECENT POSTS MAP
	------------------------------------*/
add_shortcode('recent_posts', 'nv_recent_posts_shortcode');
wpb_map(array("name" => __("Recent Posts", "js_composer"), "base" => "recent_posts", "controls" => "edit_popup_delete", "class" => "", "icon" => "icon-list", "category" => __('Content', 'js_composer'), "params" => array(get_common_options('content', 'recent_posts'), array("type" => "checkbox", "holder" => "div", "heading" => __("Post Categories", "js_composer"), "param_name" => "categories", "value" => get_data_source('data-2', 'shortcode')), array("type" => "checkbox", "class" => "", "heading" => __("Display Date", "js_composer"), "param_name" => "show_date", "value" => array(__('Enable', "js_composer") => "yes")), array("type" => "checkbox", "class" => "", "heading" => __("Display Metadata", "js_composer"), "param_name" => "metadata", "value" => array(__('Enable', "js_composer") => "yes")), get_common_options('order', 'recentposts'), get_common_options('orderby', 'recentposts'), get_common_options('excerpt', 'recentposts'), array("type" => "textfield", "heading" => __("Offset", "js_composer"), "param_name" => "offset", "value" => "", "description" => __("Enter the  number of posts to offset by.", "js_composer")), array("type" => "textfield", "heading" => __("Limit", "js_composer"), "param_name" => "limit", "value" => "", "description" => __("Limit the number of posts.", "js_composer")), array("type" => "textfield", "heading" => __("Image Width", "js_composer"), "param_name" => "image_width", "value" => "", "description" => __("px", "js_composer")), array("type" => "textfield", "heading" => __("Image Height", "js_composer"), "param_name" => "image_height", "value" => "", "description" => __("px", "js_composer")), array("type" => "dropdown", "heading" => __("Image Effect", "js_composer"), "param_name" => "image_effect", "value" => get_options_array('imageeffect')), array("type" => "dropdown", "class" => "", "heading" => __('Image Align', "js_composer"), "param_name" => "image_align", "value" => array('Normal' => '', 'Left' => 'alignleft', 'Center' => 'aligncenter', 'Right' => 'alignright')))));
Example #4
0
            }
            $output .= $NV_imgblackwhite . '"';
            if (!empty($height)) {
                $output .= 'style="max-height:' . $height . 'px;"';
            }
            $output .= '>';
        }
        // Image Link
        $output .= $NV_link_start;
        $output .= '<img ' . (esc_attr($type) == "reflect" || esc_attr($type) == "reflection" || esc_attr($type) == "reflectlightbox" || esc_attr($type) == "shadowreflectlightbox" || esc_attr($type) == "shadowreflect" || esc_attr($type) == "shadowreflection" ? 'class="reflect"' : '') . 'src="' . $NV_imagepath . '" alt="' . esc_attr($alt) . '" width="' . esc_attr($width) . '" height="' . esc_attr($height) . '"  />';
        // LightBox / Link *End*
        if (!empty($NV_lightbox) || !empty($NV_link_start)) {
            $output .= '</a>';
        }
        if ($titleoverlay == "yes") {
            $output .= '<div class="title">';
            $output .= '<h3>' . esc_attr($alt) . '</h3>';
            $output .= '</div>';
        }
        $output .= '</div>';
        $output .= '</div>';
        $output .= '</div>';
        $output .= '</div>';
        return $output;
    }
}
/* ------------------------------------
	:: IMAGE MAP	
	------------------------------------*/
wpb_map(array("name" => __("Single Image", "js_composer"), "base" => "imageeffect", "controls" => "edit_popup_delete", "class" => "wpb_vc_single_image_widget", "icon" => "icon-image", "category" => __('Content', 'js_composer'), "params" => array(array("type" => "attach_image", "heading" => __("Image", "js_composer"), "param_name" => "image", "value" => "", "description" => ""), array("type" => "textfield", "holder" => "img", "heading" => __("Image URL", "js_composer"), "param_name" => "url", "value" => "", "description" => __("Enter URL if you wish to use an image not in the media library.", "js_composer")), array("type" => "dropdown", "heading" => __("Effect", "js_composer"), "param_name" => "type", "value" => get_options_array('imageeffect')), array("type" => "textfield", "heading" => __("Image Width", "js_composer"), "param_name" => "width", "value" => "", "description" => __("Enter image width.", "js_composer")), array("type" => "textfield", "heading" => __("Image Height", "js_composer"), "param_name" => "height", "value" => "", "description" => __("Enter image height.", "js_composer")), $add_css_animation, get_common_options('align', 'Image'), array("type" => "textfield", "heading" => __("Alt", "js_composer"), "param_name" => "alt", "value" => "", "description" => __("Alternate text", "js_composer")), array("type" => "checkbox", "class" => "", "heading" => __("Enable Title Overlay", "js_composer"), "param_name" => "titleoverlay", "value" => array(__('Enable', "js_composer") => "yes")), array("type" => "checkbox", "class" => "", "heading" => __("Enable Lightbox", "js_composer"), "param_name" => "lightbox", "value" => array(__('Enable', "js_composer") => "yes")), array("type" => "textfield", "heading" => __("Media URL", "js_composer"), "param_name" => "videourl", "value" => "", "dependency" => array('element' => 'lightbox', 'value' => array('yes')), "description" => __("Enter url if you want to use lightbox to display a Video or other media.", "js_composer")), array("type" => "textfield", "heading" => __("Image link", "js_composer"), "param_name" => "link", "value" => "", "description" => __("Enter url if you want to link this image with any url. Leave empty if you won't use it", "js_composer")), array("type" => "dropdown", "heading" => __("Link Target", "js_composer"), "param_name" => "target", "value" => array(__("Same window", "js_composer") => "_self", __("New window", "js_composer") => "_blank"), "dependency" => array('element' => "img_link", 'not_empty' => true)))));
Example #5
0
        include NV_FILES . '/inc/classes/post-categories-class.php';
    } elseif ($NV_datasource == "data-3") {
        include NV_FILES . '/inc/classes/flickr-class.php';
    } elseif ($NV_datasource == "data-4") {
        include NV_FILES . '/inc/classes/slideset-class.php';
    }
    /* ------------------------------------
    		
    		:: LOAD DATA SOURCE *END*
    		
    		------------------------------------*/
    if (!empty($load_ajax)) {
        $output .= '<div class="tva-ajax-loading"></div>';
    }
    if ($load_ajax == 'click_load') {
        $output .= '<div class="button-wrap tva-ajax-loaddata medium-text aligncenter"><div class="button link_color"><a>' . __('Load More', 'themeva') . '</a></div></div>';
    }
    $output .= '<div class="clear"></div>';
    $output .= '</div><!-- /gallery-wrap -->';
    if ($NV_gridfilter == 'yes' || $masonry == 'masonry') {
        wp_deregister_script('jquery-isotope');
        wp_register_script('jquery-isotope', get_template_directory_uri() . '/js/jquery.isotope.min.js', false, array('jquery'), true);
        wp_enqueue_script('jquery-isotope');
    }
    return $output;
}
/* ------------------------------------
	:: GRID GALLERY MAP
	------------------------------------*/
wpb_map(array("base" => "postgallery_grid", "name" => __("Grid Gallery", "js_composer"), "class" => "nv_options grid", "controls" => "edit_popup_delete", "icon" => "icon-gridgallery", "category" => __('Gallery', 'js_composer'), "params" => array(array("type" => "textfield", "holder" => "h4", "class" => "", "heading" => __("Gallery ID", "js_composer"), "param_name" => "id", "value" => __("grid_", "js_composer"), "description" => __("Enter a unique ID grid_one.", "js_composer")), array("type" => "textfield", "class" => "", "heading" => __("Title", "js_composer"), "param_name" => "title", "value" => "", "description" => __("Add an optional title.", "js_composer")), get_common_options('datasource'), get_common_options('data-1'), get_common_options('data-2'), get_common_options('data-2-formats'), get_common_options('data-8'), get_common_options('data-3'), get_common_options('data-4'), get_common_options('data-5'), get_common_options('data-5-tags'), get_common_options('data-6'), get_common_options('orderby'), get_common_options('sortby'), get_common_options('excerpt'), array("type" => "textfield", "class" => "", "heading" => __("Post Limit", "js_composer"), "param_name" => "limit", "value" => "", "dependency" => array('element' => 'data_source', 'value' => array('data-2', 'data-5', 'data-8', 'data-6')), "description" => __("Set a posts limit.", "js_composer")), array("type" => "dropdown", "heading" => __("Ajax Lazy Load", "js_composer"), "param_name" => "load_ajax", "value" => array(__("Disabled", "js_composer") => '', __("Scroll to Load", "js_composer") => 'scroll_load', __("Click to Load", "js_composer") => 'click_load'), "description" => __("Load Gallery content in via Ajax ( Reduces page load time ).", "js_composer")), array("type" => "textfield", "class" => "", "heading" => __("Lazy Load Initial Limit", "js_composer"), "param_name" => "load_limit", "value" => "", "description" => __("Enter how many slides you wish to display on initial load.", "js_composer"), "dependency" => array('element' => 'load_ajax', 'not_empty' => true)), array("type" => "textfield", "class" => "", "heading" => __("Slides Per Ajax Load", "js_composer"), "param_name" => "load_value", "value" => "", "description" => __("Enter how many Slides you wish to load in.", "js_composer"), "dependency" => array('element' => 'load_ajax', 'not_empty' => true)), get_common_options('content'), get_common_options('columns'), get_common_options('columnpadding'), array("type" => "checkbox", "class" => "", "heading" => __("Animated Filtering", "js_composer"), "param_name" => "filtering", "value" => array('Enable' => 'yes')), array("type" => "checkbox", "class" => "", "heading" => __("Masonry", "js_composer"), "param_name" => "masonry", "value" => array('Enable' => 'masonry')), get_common_options('width'), get_common_options('height', 'grid'), get_common_options('align', 'Gallery'), get_common_options('imageeffect'), get_common_options('imgwidth'), get_common_options('imgheight'), array("type" => "checkbox", "class" => "", "heading" => __("Lightbox", "js_composer"), "param_name" => "lightbox", "value" => array('Enable' => 'yes')), array("type" => "checkbox", "class" => "", "heading" => __("Zoom on Hover", "js_composer"), "param_name" => "zoomhover", "value" => array('Enable' => 'zoomhover')), array("type" => "textfield", "class" => "", "heading" => __("CSS Classes", "js_composer"), "param_name" => "class", "value" => "", "description" => __("Add an optional CSS classes.", "js_composer")))));
add_shortcode('postgallery_grid', 'postgallery_grid_shortcode');
Example #6
0
    ?>
">
					<?php 
    $output = '';
    include NV_FILES . '/inc/classes/video-class.php';
    echo $output;
    ?>
				</div><!-- / gridimg-wrap -->
			</div><!-- / container -->	
		</div><!-- / mediawrap -->
	<?php 
    $output_string = ob_get_contents();
    ob_end_clean();
    return $output_string;
}
/* ------------------------------------
	:: VIDEO MAP	  	
	------------------------------------*/
if (get_option('themeva_theme') != 'ePix' && get_option('themeva_theme') != 'Copa') {
    $shadow_effect = array("type" => "checkbox", "class" => "", "heading" => __("Shadow Effect", "js_composer"), "param_name" => "shadow", "value" => array(__('Enable', "js_composer") => "yes"));
} else {
    $shadow_effect = array("type" => NULL, "param_name" => NULL, "value" => NULL);
}
wpb_map(array("name" => __("Video Player", "js_composer"), "base" => "videoembed", "controls" => "edit_popup_delete", "class" => "", "icon" => "icon-video", "category" => __('Content', 'js_composer'), "params" => array(array("type" => "dropdown", "heading" => __("Type", "js_composer"), "param_name" => "type", "value" => array(__('YouTube', "js_composer") => 'youtube', __('Vimeo', "js_composer") => 'vimeo', __('Flash', "js_composer") => 'flash', __('Wistia', "js_composer") => 'wistia', __('JW Player', "js_composer") => 'jwplayer')), array("type" => "dropdown", "heading" => __("Media Ratio", "js_composer"), "param_name" => "ratio", "value" => array(__("16:9", "js_composer") => "sixteen_by_nine", __("4:3", "js_composer") => "four_by_three")), array("type" => "textfield", "heading" => __("Media URL", "js_composer"), "param_name" => "url", "value" => "", "description" => __("Enter URL of media.", "js_composer")), array("type" => "textfield", "heading" => __("Image URL", "js_composer"), "param_name" => "imageurl", "value" => "", "dependency" => array('element' => 'type', 'value' => array('jwplayer')), "description" => __("Enter URL if you wish to use a holding image ( Paused, Loading ).", "js_composer")), array("type" => "textfield", "heading" => __("ID", "js_composer"), "param_name" => "id", "value" => "video_0", "dependency" => array('element' => 'type', 'value' => array('jwplayer')), "description" => __("Enter a unique ID.", "js_composer")), array("type" => "textfield", "heading" => __("Media Width", "js_composer"), "param_name" => "width", "value" => "", "description" => __("Enter image width.", "js_composer")), array("type" => "textfield", "heading" => __("Media Height", "js_composer"), "param_name" => "height", "value" => "", "description" => __("Enter media height.", "js_composer")), get_common_options('align', 'Media'), array("type" => "checkbox", "class" => "", "heading" => __("Loop", "js_composer"), "param_name" => "loop", "value" => array(__('Enable', "js_composer") => "yes")), array("type" => "checkbox", "class" => "", "heading" => __("Autoplay", "js_composer"), "param_name" => "autoplay", "value" => array(__('Enable', "js_composer") => "yes")))));
/* ------------------------------------
	:: AUDIO MAP	  	
	------------------------------------*/
wpb_map(array("name" => __("Audio Player", "js_composer"), "base" => "audioembed", "controls" => "edit_popup_delete", "class" => "", "icon" => "icon-audio", "category" => __('Content', 'js_composer'), "params" => array(array("type" => "textfield", "heading" => __("Media URL", "js_composer"), "param_name" => "url", "value" => "", "description" => __("Enter URL of media.", "js_composer")), array("type" => "textfield", "heading" => __("Cover Image URL", "js_composer"), "param_name" => "imageurl", "value" => "", "description" => __("Optional cover image ( Paused, Loading ).", "js_composer")), array("type" => "textfield", "heading" => __("ID", "js_composer"), "param_name" => "id", "value" => "audio_0", "description" => __("Enter a unique ID.", "js_composer")), array("type" => "textfield", "heading" => __("Player Width", "js_composer"), "param_name" => "width", "value" => "", "description" => __("Enter image width.", "js_composer")), get_common_options('align', 'Media'), array("type" => "checkbox", "class" => "", "heading" => __("Loop", "js_composer"), "param_name" => "loop", "value" => array(__('Enable', "js_composer") => "yes")), array("type" => "checkbox", "class" => "", "heading" => __("Autoplay", "js_composer"), "param_name" => "autoplay", "value" => array(__('Enable', "js_composer") => "yes")), $shadow_effect)));
add_shortcode('mediaembed', 'mediaembed_shortcode');
add_shortcode('videoembed', 'mediaembed_shortcode');
add_shortcode('audioembed', 'mediaembed_shortcode');
Example #7
0
            $output .= '<a href="' . esc_attr($link) . '" ' . $NV_target . ' class="action-icons link-icon ' . $split . '"><i class="fa fa-link fa-lg"></i></a>';
        }
        if ($titleoverlay == "yes") {
            $output .= '<div class="caption-wrap ' . (!empty($NV_cssclasses) ? $NV_cssclasses : '') . ' ' . $overlay_state . '">';
            // Title
            if ($titleoverlay == "yes") {
                if (!empty($alt)) {
                    $output .= "\n\t" . '<div class="title caption skinset-main nv-skin">';
                    $output .= "\n\t\t" . '<h3>' . esc_attr($alt) . '</h3>';
                    $output .= "\n\t" . '</div>';
                }
                if (!empty($subtitle)) {
                    $output .= "\n\t" . '<div class="content caption skinset-main nv-skin">';
                    $output .= "\n\t\t" . do_shortcode(esc_attr($subtitle));
                    $output .= "\n\t" . '</div>';
                }
            }
            $output .= '</div><!-- /caption-wrap -->';
        }
        $output .= "\n\t\t\t\t\t" . '</div>';
        $output .= "\n\t\t\t\t" . '</div><!-- / gridimg-wrap -->';
        $output .= "\n\t\t\t" . '</div><!-- / container -->';
        $output .= "\n\t\t" . '</div><!-- / mediawrap -->';
        return $output;
    }
}
/* ------------------------------------
	:: IMAGE MAP	
	------------------------------------*/
wpb_map(array("name" => __("Image Effect", "js_composer"), "base" => "imageeffect", "controls" => "edit_popup_delete", "class" => "wpb_vc_single_image_widget", "icon" => "icon-image", "category" => __('Content', 'js_composer'), "params" => array(array("type" => "attach_image", "heading" => __("Image", "js_composer"), "param_name" => "image", "value" => "", "description" => ""), array("type" => "textfield", "holder" => "img", "heading" => __("Image URL", "js_composer"), "param_name" => "url", "value" => "", "description" => __("Enter URL if you wish to use an image not in the media library.", "js_composer")), array("type" => "dropdown", "heading" => __("Effect", "js_composer"), "param_name" => "type", "value" => array('None' => "", 'Frame' => "frame", 'Circular' => "circular", 'Circular + Frame' => "circular frame", 'Black & White' => 'blackwhite', 'Frame + Black & White' => 'frameblackwhite'), "description" => __("Circular works with modern browsers only.", "js_composer")), array("type" => "checkbox", "class" => "", "heading" => __("Zoom on Hover", "js_composer"), "param_name" => "zoomhover", "value" => array(__('Enable', "js_composer") => "zoomhover"), "description" => __("Zoom Image on Hover. <strong>Note:</strong> Works only in modern browsers.", "js_composer")), array("type" => "textfield", "heading" => __("Image Width", "js_composer"), "param_name" => "width", "value" => "", "description" => __("Enter image width.", "js_composer")), array("type" => "textfield", "heading" => __("Image Height", "js_composer"), "param_name" => "height", "value" => "", "description" => __("Enter image height.", "js_composer")), $add_css_animation, get_common_options('align', 'Image'), array("type" => "textfield", "heading" => __("Title", "js_composer"), "param_name" => "alt", "value" => "", "description" => __("Title / Alternate text", "js_composer")), array("type" => "textfield", "heading" => __("Sub Title", "js_composer"), "param_name" => "subtitle", "value" => ""), array("type" => "checkbox", "class" => "", "heading" => __("Enable Title Overlay", "js_composer"), "param_name" => "titleoverlay", "value" => array(__('Enable', "js_composer") => "yes")), array("type" => "dropdown", "heading" => __("Overlay State", "js_composer"), "param_name" => "overlay_state", "value" => array(__("Hover", "js_composer") => "hover", __("Static", "js_composer") => "static"), "dependency" => array('element' => 'titleoverlay', 'value' => array('yes'))), array("type" => "checkbox", "class" => "", "heading" => __("Enable Lightbox", "js_composer"), "param_name" => "lightbox", "value" => array(__('Enable', "js_composer") => "yes")), array("type" => "textfield", "heading" => __("Media URL", "js_composer"), "param_name" => "videourl", "value" => "", "dependency" => array('element' => 'lightbox', 'value' => array('yes')), "description" => __("Enter url if you want to use lightbox to display a Video or other media.", "js_composer")), array("type" => "checkbox", "class" => "", "heading" => __("Media URL in iFrame", "js_composer"), "param_name" => "lightbox_iframe", "value" => array(__('Enable', "js_composer") => "enable"), "dependency" => array('element' => 'lightbox', 'value' => array('yes')), "description" => __("Place the Media URL within an iFrame.", "js_composer")), array("type" => "textfield", "heading" => __("Image link", "js_composer"), "param_name" => "link", "value" => "", "description" => __("Enter url if you want to link this image with any url. Leave empty if you won't use it", "js_composer")), array("type" => "dropdown", "heading" => __("Link Target", "js_composer"), "param_name" => "target", "value" => array(__("Same window", "js_composer") => "_self", __("New window", "js_composer") => "_blank"), "dependency" => array('element' => "img_link", 'not_empty' => true)))));
Example #8
0
        wp_enqueue_script('nivo-slider');
    } else {
        wp_deregister_script('jquery-cycle');
        wp_register_script('jquery-cycle', get_template_directory_uri() . '/js/jquery.cycle.plugin.min.js', false, array('jquery'), true);
        wp_enqueue_script('jquery-cycle');
        wp_deregister_script('touch-gestures');
        wp_register_script('touch-gestures', get_template_directory_uri() . '/js/touch.gestures.min.js', false, array('jquery'), true);
        wp_enqueue_script('touch-gestures');
        wp_deregister_script('stage-slider');
        wp_register_script('stage-slider', get_template_directory_uri() . '/js/stage.slider.min.js', false, array('jquery-cycle'), true);
        wp_enqueue_script('stage-slider');
    }
    $output_string = ob_get_contents();
    ob_end_clean();
    return $output_string;
}
/* ------------------------------------
	:: NIVO MAP
	------------------------------------*/
wpb_map(array("base" => "postgallery_nivo", "name" => __("Nivo Gallery", "js_composer"), "class" => "nv_options islider", "controls" => "edit_popup_delete", 'deprecated' => '4.6', "icon" => "icon-nivogallery", "category" => __('Gallery', 'js_composer'), "params" => array(array("type" => "textfield", "holder" => "h4", "class" => "", "heading" => __("Gallery ID", "js_composer"), "param_name" => "id", "value" => __("nivo_", "js_composer"), "description" => __("Enter a unique ID nivo_one.", "js_composer")), array("type" => "textfield", "class" => "", "heading" => __("Title", "js_composer"), "param_name" => "title", "value" => "", "description" => __("Add an optional title.", "js_composer")), get_common_options('datasource'), get_common_options('data-1'), get_common_options('data-2'), get_common_options('data-2-formats'), get_common_options('data-8'), get_common_options('orderby'), get_common_options('sortby'), get_common_options('excerpt'), array("type" => "textfield", "class" => "", "heading" => __("Post Limit", "js_composer"), "param_name" => "limit", "value" => "", "dependency" => array('element' => 'data_source', 'value' => array('data-2', 'data-5', 'data-8', 'data-6')), "description" => __("Set a posts limit.", "js_composer")), get_common_options('data-3'), get_common_options('data-4'), get_common_options('data-5'), get_common_options('data-5-tags'), get_common_options('data-6'), get_common_options('width'), get_common_options('height'), array("type" => "dropdown", "class" => "", "heading" => __('Effect', "js_composer"), "param_name" => "animation", "value" => array("random", "sliceDown", "sliceDownLeft", "sliceUp", "sliceUpLeft", "sliceUpDown", "sliceUpDownLeft", "fold", "fade", "slideInRight", "slideInLeft", "boxRandom", "boxRain", "boxRainReverse", "boxRainGrow", "boxRainGrowReverse")), get_common_options('align', 'Gallery'), get_common_options('imageeffect'), array("type" => "checkbox", "class" => "", "heading" => __("Lightbox", "js_composer"), "param_name" => "lightbox", "value" => array('Enable' => 'yes')), array("type" => "textfield", "class" => "", "heading" => __("CSS Classes", "js_composer"), "param_name" => "class", "value" => "", "description" => __("Add an optional CSS classes.", "js_composer")))));
/* ------------------------------------
	:: STAGE
	------------------------------------*/
wpb_map(array("base" => "postgallery_image", "name" => __("Stage Gallery", "js_composer"), "class" => "nv_options stage", "controls" => "edit_popup_delete", "icon" => "icon-stagegallery", "category" => __('Gallery', 'js_composer'), "params" => array(array("type" => "textfield", "holder" => "h4", "class" => "", "heading" => __("Gallery ID", "js_composer"), "param_name" => "id", "value" => __("stage_", "js_composer"), "description" => __("Enter a unique ID stage_one.", "js_composer")), array("type" => "textfield", "class" => "", "heading" => __("Title", "js_composer"), "param_name" => "title", "value" => "", "description" => __("Add an optional title.", "js_composer")), get_common_options('datasource'), get_common_options('data-1'), get_common_options('data-2'), get_common_options('data-2-formats'), get_common_options('data-8'), get_common_options('orderby'), get_common_options('sortby'), get_common_options('excerpt'), array("type" => "textfield", "class" => "", "heading" => __("Post Limit", "js_composer"), "param_name" => "limit", "value" => "", "dependency" => array('element' => 'data_source', 'value' => array('data-2')), "description" => __("Set a posts limit.", "js_composer")), get_common_options('data-3'), get_common_options('data-4'), get_common_options('data-5'), get_common_options('data-5-tags'), get_common_options('data-6'), get_common_options('timeout'), get_common_options('width'), get_common_options('height'), get_common_options('align', 'Gallery'), get_common_options('imageeffect'), array("type" => "dropdown", "class" => "", "heading" => __('Animation Type', "js_composer"), "param_name" => "animation", "value" => get_options_array('animation')), array("type" => "dropdown", "class" => "", "heading" => __('Animation Tween', "js_composer"), "param_name" => "tween", "value" => get_options_array('transition')), array("type" => "dropdown", "class" => "", "heading" => __('Navigation', "js_composer"), "param_name" => "navigation", "value" => array('Bullet Navigation' => '', 'Bullet + Directional Navigation' => 'enabled', 'Directional Navigation' => 'leftrightonly', 'Disable Navigation' => 'disabled')), array("type" => "checkbox", "class" => "", "heading" => __("Lightbox", "js_composer"), "param_name" => "lightbox", "value" => array('Enable' => 'yes')), array("type" => "textfield", "class" => "", "heading" => __("CSS Classes", "js_composer"), "param_name" => "class", "value" => "", "description" => __("Add an optional CSS classes.", "js_composer")))));
/* ------------------------------------
	:: iSLIDER MAP
	------------------------------------*/
wpb_map(array("base" => "postgallery_islider", "name" => __("iSlider Gallery", "js_composer"), "class" => "nv_options islider", "controls" => "edit_popup_delete", "icon" => "icon-islidergallery", "category" => __('Gallery', 'js_composer'), "params" => array(array("type" => "textfield", "holder" => "h4", "class" => "", "heading" => __("Gallery ID", "js_composer"), "param_name" => "id", "value" => __("islider_", "js_composer"), "description" => __("Enter a unique ID islider_one.", "js_composer")), array("type" => "textfield", "class" => "", "heading" => __("Title", "js_composer"), "param_name" => "title", "value" => "", "description" => __("Add an optional title.", "js_composer")), get_common_options('datasource'), get_common_options('data-1'), get_common_options('data-2'), get_common_options('data-2-formats'), get_common_options('data-8'), get_common_options('orderby'), get_common_options('sortby'), get_common_options('excerpt'), array("type" => "textfield", "class" => "", "heading" => __("Post Limit", "js_composer"), "param_name" => "limit", "value" => "", "dependency" => array('element' => 'data_source', 'value' => array('data-2')), "description" => __("Set a posts limit.", "js_composer")), get_common_options('data-3'), get_common_options('data-4'), get_common_options('data-5'), get_common_options('data-5-tags'), get_common_options('data-6'), get_common_options('width'), get_common_options('height'), get_common_options('align', 'Gallery'), get_common_options('imageeffect'), array("type" => "checkbox", "class" => "", "heading" => __("Lightbox", "js_composer"), "param_name" => "lightbox", "value" => array('Enable' => 'yes')), array("type" => "textfield", "class" => "", "heading" => __("CSS Classes", "js_composer"), "param_name" => "class", "value" => "", "description" => __("Add an optional CSS classes.", "js_composer")))));
add_shortcode('postgallery_nivo', 'postgallery_image_shortcode');
add_shortcode('postgallery_image', 'postgallery_image_shortcode');
add_shortcode('postgallery_islider', 'postgallery_image_shortcode');
Example #9
0
    	:: LOAD DATA SOURCE *END*
    	
    	------------------------------------*/
    $slidenum_chk = $postcount;
    if (!empty($post_count)) {
        $slidenum_chk = $post_count;
    }
    $output .= '</div><!-- / slider-inner-wrap -->';
    $output .= '</div><!-- / stageslider -->';
    $output .= '<div class="dynamic-frame clearfix" data-offset="' . $load_limit . '" data-total="' . $post_count . '" data-load-value="' . $load_value . '">';
    $output .= '<input name="' . $NV_shortcode_id . '_timeout_array" class="timeout_array" value="' . $NV_slidearray . '" type="hidden" />';
    $output .= '<input name="' . $NV_shortcode_id . '_timeout" class="timeout" value="' . $NV_stagetimeout . '" type="hidden" />';
    $output .= '</div>';
    $output .= '<div class="clear"></div>';
    $output .= '</div><!-- / gallery-wrap -->';
    wp_deregister_script('jquery-cycle');
    wp_register_script('jquery-cycle', get_template_directory_uri() . '/js/jquery.cycle.plugin.min.js', false, array('jquery'), true);
    wp_enqueue_script('jquery-cycle');
    wp_deregister_script('touch-gestures');
    wp_register_script('touch-gestures', get_template_directory_uri() . '/js/touch.gestures.min.js', false, array('jquery'), true);
    wp_enqueue_script('touch-gestures');
    wp_deregister_script('stage-slider');
    wp_register_script('stage-slider', get_template_directory_uri() . '/js/stage.slider.min.js', false, array('jquery-cycle'), true);
    wp_enqueue_script('stage-slider');
    return $output;
}
/* ------------------------------------
	:: STAGE
	------------------------------------*/
wpb_map(array("base" => "postgallery_image", "name" => __("Stage Gallery", "js_composer"), "class" => "nv_options stage", "controls" => "edit_popup_delete", "icon" => "icon-stagegallery", "category" => __('Gallery', 'js_composer'), "params" => array(array("type" => "textfield", "holder" => "h4", "class" => "", "heading" => __("Gallery ID", "js_composer"), "param_name" => "id", "value" => __("stage_", "js_composer"), "description" => __("Enter a unique ID stage_one.", "js_composer")), array("type" => "textfield", "class" => "", "heading" => __("Title", "js_composer"), "param_name" => "title", "value" => "", "description" => __("Add an optional title.", "js_composer")), get_common_options('datasource'), get_common_options('data-1'), get_common_options('data-2'), get_common_options('data-2-formats'), get_common_options('data-8'), get_common_options('orderby'), get_common_options('sortby'), get_common_options('excerpt'), array("type" => "textfield", "class" => "", "heading" => __("Post Limit", "js_composer"), "param_name" => "limit", "value" => "", "dependency" => array('element' => 'data_source', 'value' => array('data-2', 'data-8', 'data-5')), "description" => __("Set a posts limit.", "js_composer")), get_common_options('data-3'), get_common_options('data-4'), get_common_options('data-5'), get_common_options('data-5-tags'), get_common_options('data-6'), array("type" => "dropdown", "heading" => __("Ajax Lazy Load", "js_composer"), "param_name" => "load_ajax", "value" => array(__("Disabled", "js_composer") => '', __("Enable", "js_composer") => 'auto_load'), "description" => __("Load Gallery content in via Ajax ( Reduces page load time ).", "js_composer")), array("type" => "textfield", "class" => "", "heading" => __("Lazy Load Initial Limit", "js_composer"), "param_name" => "load_limit", "value" => "", "description" => __("Enter how many slides you wish to display on initial load.", "js_composer"), "dependency" => array('element' => 'load_ajax', 'not_empty' => true)), get_common_options('content'), get_common_options('timeout'), get_common_options('width'), get_common_options('height'), get_common_options('align', 'Gallery'), get_common_options('imageeffect'), array("type" => "dropdown", "class" => "", "heading" => __('Animation Type', "js_composer"), "param_name" => "animation", "value" => get_options_array('animation')), array("type" => "dropdown", "class" => "", "heading" => __('Animation Tween', "js_composer"), "param_name" => "tween", "value" => get_options_array('transition')), array("type" => "dropdown", "class" => "", "heading" => __('Navigation', "js_composer"), "param_name" => "navigation", "value" => array('Bullet Navigation' => '', 'Bullet + Pause' => 'bulletpause', 'Bullet + Directional Navigation' => 'enabled', 'Bullet + Directional Navigation + Pause' => 'enabledpause', 'Directional Navigation' => 'leftrightonly', 'Directional Navigation + Pause' => 'leftrightpause', 'Disable Navigation' => 'disabled')), array("type" => "checkbox", "class" => "", "heading" => __("Lightbox", "js_composer"), "param_name" => "lightbox", "value" => array('Enable' => 'yes')), array("type" => "textfield", "class" => "", "heading" => __("CSS Classes", "js_composer"), "param_name" => "class", "value" => "", "description" => __("Add an optional CSS classes.", "js_composer")))));
add_shortcode('postgallery_image', 'postgallery_image_shortcode');
Example #10
0
    		------------------------------------*/
    if ($NV_datasource == "data-1") {
        include NV_FILES . '/inc/classes/post-attachments-class.php';
    } elseif ($NV_datasource == "data-2" || $NV_datasource == "data-5" || $NV_datasource == "data-6" || $NV_datasource == "data-8") {
        include NV_FILES . '/inc/classes/post-categories-class.php';
    } elseif ($NV_datasource == "data-3") {
        include NV_FILES . '/inc/classes/flickr-class.php';
    } elseif ($NV_datasource == "data-4") {
        include NV_FILES . '/inc/classes/slideset-class.php';
    }
    /* ------------------------------------
    		
    		:: LOAD DATA SOURCE *END*
    	
    		------------------------------------*/
    $output .= '</div>';
    $output .= '</div>';
    $output .= '<div class="dynamic-frame" data-offset="' . $load_limit . '" data-total="' . $post_count . '" data-load-value="' . $load_value . '"></div>';
    $output .= '</div><!-- / zoomflow -->';
    wp_deregister_script('zoomflow');
    wp_register_script('zoomflow', get_template_directory_uri() . '/js/zoomflow.min.js', false, array('jquery'), true);
    wp_enqueue_script('zoomflow');
    wp_register_style('zoomflow-styles', get_template_directory_uri() . '/stylesheets/zoomflow/zoomflow.css');
    wp_enqueue_style('zoomflow-styles');
    return $output;
}
/* ------------------------------------
	:: Carousel MAP	
	------------------------------------*/
wpb_map(array("base" => "carousel_slider", "name" => __("Carousel Slider", "js_composer"), "class" => "nv_options carousel", "controls" => "edit_popup_delete", "icon" => "icon-carousel", "category" => __('Gallery', 'js_composer'), "params" => array(array("type" => "textfield", "holder" => "h4", "class" => "", "heading" => __("Gallery ID", "js_composer"), "param_name" => "id", "value" => __("carousel", "js_composer"), "description" => __("Enter a unique ID e.g. carousel_one.", "js_composer")), array("type" => "textfield", "class" => "", "heading" => __("Title", "js_composer"), "param_name" => "title", "value" => __("", "js_composer"), "description" => __("Add an optional title.", "js_composer")), get_common_options('datasource'), get_common_options('data-1'), get_common_options('data-2'), get_common_options('data-2-formats'), get_common_options('data-8'), get_common_options('orderby'), get_common_options('sortby'), get_common_options('excerpt'), array("type" => "textfield", "class" => "", "heading" => __("Post Limit", "js_composer"), "param_name" => "limit", "value" => __("", "js_composer"), "dependency" => array('element' => 'data_source', 'value' => array('data-2')), "description" => __("Set a posts limit.", "js_composer")), get_common_options('data-3'), get_common_options('data-4'), get_common_options('data-5'), get_common_options('data-5-tags'), get_common_options('data-6'), array("type" => "dropdown", "heading" => __("Ajax Lazy Load", "js_composer"), "param_name" => "load_ajax", "value" => array(__("Disabled", "js_composer") => '', __("Enable", "js_composer") => 'auto_load'), "description" => __("Load Gallery content in via Ajax ( Reduces page load time ).", "js_composer")), array("type" => "textfield", "class" => "", "heading" => __("Lazy Load Initial Limit", "js_composer"), "param_name" => "load_limit", "value" => "", "description" => __("Enter how many slides you wish to display on initial load.", "js_composer"), "dependency" => array('element' => 'load_ajax', 'not_empty' => true)), get_common_options('content'), get_common_options('timeout'), array("type" => "checkbox", "class" => "", "heading" => __("Lightbox", "js_composer"), "param_name" => "lightbox", "value" => array('Enable' => 'yes')), array("type" => "dropdown", "class" => "", "heading" => __('Ratio', "js_composer"), "param_name" => "ratio", "value" => array("16:9" => "16:9", "4:3" => "4:3", "1:1" => "1:1", "9:16" => "9:16", "3:4" => "3:4", "3:2" => "3:2", "2:3" => "2:3")), get_common_options('align', 'Gallery'), array("type" => "textfield", "class" => "", "heading" => __("CSS Classes", "js_composer"), "param_name" => "class", "value" => __("", "js_composer"), "description" => __("Add an optional CSS classes.", "js_composer")))));
add_shortcode('carousel_slider', 'carousel_slider_shortcode');