/** * map all the blocks in the pagebuilder */ static function wpb_map_all() { foreach (self::$global_instances as $block_array) { //map in visual composer only classes that have get_map! //the mega menu block doesn't have map if (method_exists($block_array['instance'], 'get_map')) { wpb_map($block_array['instance']->get_map()); } } }
function theme_pricing_table_vc_init() { global $wpdb; //get pricing tables list $query = "SELECT option_name FROM {$wpdb->options}\n\t\t\tWHERE \n\t\t\toption_name LIKE 'css3_grid_shortcode_settings%'\n\t\t\tORDER BY option_name"; $pricing_tables_list = $wpdb->get_results($query); $css3GridAllShortcodeIds = array(); foreach ($pricing_tables_list as $pricing_table) { $css3GridAllShortcodeIds[substr($pricing_table->option_name, 29)] = substr($pricing_table->option_name, 29); } wpb_map(array("name" => __("Pricing table", 'medicenter'), "base" => "css3_grid", "class" => "", "controls" => "full", "show_settings_on_create" => true, "icon" => "icon-wpb-layer-pricing-table", "category" => __('MediCenter', 'medicenter'), "params" => array(array("type" => "dropdown", "class" => "", "heading" => __("Id", 'medicenter'), "param_name" => "id", "value" => $css3GridAllShortcodeIds), array("type" => "dropdown", "class" => "", "heading" => __("Top margin", 'medicenter'), "param_name" => "top_margin", "value" => array(__("Page (small)", 'medicenter') => "page_margin_top", __("Section (large)", 'medicenter') => "page_margin_top_section", __("None", 'medicenter') => "none"))))); }
function reg_testimonial() { if (function_exists('wpb_map')) { vc_map(array("name" => __("Testimonial", "cactusthemes"), "base" => "testimonial", "as_parent" => array('only' => 'testimonial_item'), "content_element" => true, "show_settings_on_create" => false, "icon" => "icon-testimonial", "params" => array(array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Auto play", 'cactusthemes'), "param_name" => "auto_play", "value" => array(__("Yes", 'cactusthemes') => '1', __("No", 'cactusthemes') => '0'), "description" => '')), 'js_view' => 'VcColumnView')); wpb_map(array("name" => __("Testimonial item", "cactusthemes"), "base" => "testimonial_item", "content_element" => true, "as_child" => array('only' => 'testimonial_item'), "icon" => "icon-testimonial", "params" => array(array("type" => "textfield", "heading" => __("Name", "cactusthemes"), "param_name" => "name", "value" => "", "description" => ''), array("type" => "textfield", "heading" => __("Position", "cactusthemes"), "param_name" => "position", "value" => "", "description" => ''), array("type" => "textfield", "heading" => __("Company", "cactusthemes"), "param_name" => "company", "value" => "", "description" => ''), array("type" => "attach_image", "heading" => __("Avatar"), "param_name" => "avatar", "value" => "", "description" => ''), array("type" => "textarea_html", "holder" => "div", "class" => "", "heading" => __("Content", "cactusthemes"), "param_name" => "content", "value" => '', "description" => '')))); } if (class_exists('WPBakeryShortCode') && class_exists('WPBakeryShortCodesContainer')) { class WPBakeryShortCode_testimonial extends WPBakeryShortCodesContainer { } class WPBakeryShortCode_testimonial_item extends WPBakeryShortCode { } } }
function theme_photostream_vc_init() { //image sizes $image_sizes_array = array(); $image_sizes_array[__("Default", 'medicenter')] = "default"; global $_wp_additional_image_sizes; foreach (get_intermediate_image_sizes() as $s) { if (isset($_wp_additional_image_sizes[$s])) { $width = intval($_wp_additional_image_sizes[$s]['width']); $height = intval($_wp_additional_image_sizes[$s]['height']); } else { $width = get_option($s . '_size_w'); $height = get_option($s . '_size_h'); } $image_sizes_array[$s . " (" . $width . "x" . $height . ")"] = "mc_" . $s; } wpb_map(array("name" => __("Photostream", 'medicenter'), "base" => "photostream", "class" => "", "controls" => "full", "show_settings_on_create" => true, "icon" => "icon-wpb-layer-photostream", "category" => __('MediCenter', 'medicenter'), "params" => array(array("type" => "textfield", "class" => "", "heading" => __("Id", 'medicenter'), "param_name" => "id", "value" => "photostream", "description" => __("Please provide unique id for each photostream on the same page/post", 'medicenter')), array("type" => "attach_images", "class" => "", "heading" => __("Images", 'medicenter'), "param_name" => "images", "value" => ""), array("type" => "dropdown", "class" => "", "heading" => __("Featured image size", 'medicenter'), "param_name" => "featured_image_size", "value" => $image_sizes_array), array("type" => "dropdown", "class" => "", "heading" => __("Lightbox icon color", 'medicenter'), "param_name" => "lightbox_icon_color", "value" => array(__("light blue", 'medicenter') => 'blue_light', __("dark blue", 'medicenter') => 'blue_dark', __("blue", 'medicenter') => 'blue', __("black", 'medicenter') => 'black', __("gray", 'medicenter') => 'gray', __("dark gray", 'medicenter') => 'gray_dark', __("light gray", 'medicenter') => 'gray_light', __("green", 'medicenter') => 'green', __("dark green", 'medicenter') => 'green_dark', __("light green", 'medicenter') => 'green_light', __("orange", 'medicenter') => 'orange', __("dark orange", 'medicenter') => 'orange_dark', __("light orange", 'medicenter') => 'orange_light', __("red", 'medicenter') => 'red', __("dark red", 'medicenter') => 'red_dark', __("light red", 'medicenter') => 'red_light', __("turquoise", 'medicenter') => 'turquoise', __("dark turquoise", 'medicenter') => 'turquoise_dark', __("light turquoise", 'medicenter') => 'turquoise_light', __("violet", 'medicenter') => 'violet', __("dark violet", 'medicenter') => 'violet_dark', __("light violet", 'medicenter') => 'violet_light', __("white", 'medicenter') => 'white', __("yellow", 'medicenter') => 'yellow')), array("type" => "dropdown", "class" => "", "heading" => __("Featured images lightbox loop", 'medicenter'), "param_name" => "images_loop", "value" => array(__("Yes", 'medicenter') => 1, __("No", 'medicenter') => 0)), array("type" => "dropdown", "class" => "", "heading" => __("Top margin", 'medicenter'), "param_name" => "top_margin", "value" => array(__("Section (large)", 'medicenter') => "page_margin_top_section", __("Page (small)", 'medicenter') => "page_margin_top", __("None", 'medicenter') => "none"))))); }
function reg_tm_related_post() { if (function_exists('wpb_map')) { wpb_map(array("name" => __("TM Related post", "js_composer"), "base" => "tm_related_post", "class" => "wpb_vc_posts_slider_widget", "category" => __('Content', 'js_composer'), "params" => array(array("type" => "textfield", "heading" => __("Title", "cactusthemes"), "param_name" => "title", "value" => "", "description" => __('', "cactusthemes")), array("type" => "dropdown", "heading" => __("Post format", "cactusthemes"), "param_name" => "postformat", "value" => array(__("Video") => "video", __("News") => "standard", __("Or Both") => "both"), "description" => __("", "cactusthemes")), array("type" => "textfield", "heading" => __("Show same tag", "cactusthemes"), "param_name" => "tag", "value" => "", "description" => __('Enter name tag', "cactusthemes")), array("type" => "dropdown", "heading" => __("Order by", "js_composer"), "param_name" => "orderby", "value" => array(__("Date", "js_composer") => "date", __("Random", "js_composer") => "rand"), "description" => __('', 'cactusthemes')), array("type" => "textfield", "heading" => __("Extra class name", "js_composer"), "param_name" => "el_class", "value" => "", "description" => __("If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.", "js_composer")), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("CSS Animation", 'cactusthemes'), "param_name" => "animation", "value" => array(__("No", 'cactusthemes') => '', __("Top to bottom", 'cactusthemes') => 'top-to-bottom', __("Bottom to top", 'cactusthemes') => 'bottom-to-top', __("Left to right", 'cactusthemes') => 'left-to-right', __("Right to left", 'cactusthemes') => 'right-to-left', __("Appear from center", 'cactusthemes') => 'appear'), "description" => '')))); } }
$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');
function theme_blog_vc_init() { //get posts list $posts_list = get_posts(array('posts_per_page' => -1, 'orderby' => 'title', 'order' => 'ASC', 'post_type' => 'post')); $posts_array = array(); $posts_array[__("All", 'medicenter')] = "-"; foreach ($posts_list as $post) { $posts_array[$post->post_title . " (id:" . $post->ID . ")"] = $post->ID; } //get categories $post_categories = get_terms("category"); $post_categories_array = array(); $post_categories_array[__("All", 'medicenter')] = "-"; foreach ($post_categories as $post_category) { $post_categories_array[$post_category->name] = $post_category->slug; } //image sizes $image_sizes_array = array(); $image_sizes_array[__("Default", 'medicenter')] = "default"; global $_wp_additional_image_sizes; foreach (get_intermediate_image_sizes() as $s) { if (isset($_wp_additional_image_sizes[$s])) { $width = intval($_wp_additional_image_sizes[$s]['width']); $height = intval($_wp_additional_image_sizes[$s]['height']); } else { $width = get_option($s . '_size_w'); $height = get_option($s . '_size_h'); } $image_sizes_array[$s . " (" . $width . "x" . $height . ")"] = "mc_" . $s; } wpb_map(array("name" => __("Blog", 'medicenter'), "base" => "blog", "class" => "", "controls" => "full", "show_settings_on_create" => true, "icon" => "icon-wpb-layer-blog", "category" => __('MediCenter', 'medicenter'), "params" => array(array("type" => "dropdown", "class" => "", "heading" => __("Pagination", 'medicenter'), "param_name" => "mc_pagination", "value" => array(__("Yes", 'medicenter') => 1, __("No", 'medicenter') => 0)), array("type" => "textfield", "class" => "", "heading" => __("Items per page/Post count", 'medicenter'), "param_name" => "items_per_page", "value" => 4, "description" => __("Items per page if pagination is set to 'yes' or post count otherwise. Set -1 to display all.", 'medicenter')), array("type" => "dropdown", "class" => "", "heading" => __("Featured image size", 'medicenter'), "param_name" => "featured_image_size", "value" => $image_sizes_array), array("type" => "dropdown", "class" => "", "heading" => __("Layout type", 'medicenter'), "param_name" => "layout_type", "value" => array(__("Type 1", 'medicenter') => 1, __("Type 2", 'medicenter') => 2, __("Type 3 (simple)", 'medicenter') => 3)), array("type" => "dropdownmulti", "class" => "", "heading" => __("Display selected", 'medicenter'), "param_name" => "ids", "value" => $posts_array), array("type" => "dropdownmulti", "class" => "", "heading" => __("Display from Category", 'medicenter'), "param_name" => "category", "value" => $post_categories_array), array("type" => "dropdown", "class" => "", "heading" => __("Order by", 'medicenter'), "param_name" => "order_by", "value" => array(__("Title, menu order", 'medicenter') => "title,menu_order", __("Menu order", 'medicenter') => "menu_order", __("Date", 'medicenter') => "date")), array("type" => "dropdown", "class" => "", "heading" => __("Order", 'medicenter'), "param_name" => "order", "value" => array(__("descending", 'medicenter') => "DESC", __("ascending", 'medicenter') => "ASC")), array("type" => "dropdown", "class" => "", "heading" => __("Show post title", 'medicenter'), "param_name" => "show_post_title", "value" => array(__("Yes", 'medicenter') => 1, __("No", 'medicenter') => 0)), array("type" => "dropdown", "class" => "", "heading" => __("Read more button", 'medicenter'), "param_name" => "read_more", "value" => array(__("No", 'medicenter') => 0, __("Yes", 'medicenter') => 1)), array("type" => "dropdown", "class" => "", "heading" => __("Show post categories", 'medicenter'), "param_name" => "show_post_categories", "value" => array(__("Yes", 'medicenter') => 1, __("No", 'medicenter') => 0)), array("type" => "dropdown", "class" => "", "heading" => __("Show post author", 'medicenter'), "param_name" => "show_post_author", "value" => array(__("Yes", 'medicenter') => 1, __("No", 'medicenter') => 0)), array("type" => "dropdown", "class" => "", "heading" => __("Show post date in box above post", 'medicenter'), "param_name" => "show_post_date_box", "value" => array(__("Yes", 'medicenter') => 1, __("No", 'medicenter') => 0), "dependency" => array('element' => "layout_type", 'value' => '2')), array("type" => "dropdown", "class" => "", "heading" => __("Show comments number in box above/beside the post", 'medicenter'), "param_name" => "show_post_comments_box", "value" => array(__("Yes", 'medicenter') => 1, __("No", 'medicenter') => 0), "dependency" => array('element' => "layout_type", 'value' => array('1', '2'))), array("type" => "dropdown", "class" => "", "heading" => __("Show comments number label in box above/beside the post", 'medicenter'), "param_name" => "show_post_comments_label", "value" => array(__("No", 'medicenter') => 0, __("Yes", 'medicenter') => 1), "dependency" => array('element' => "layout_type", 'value' => array('1', '2'))), array("type" => "dropdown", "heading" => __("Post date box animation", "js_composer"), "param_name" => "post_date_animation", "value" => array(__("none", "medicenter") => "", __("fade in", "medicenter") => "fadeIn", __("scale", "medicenter") => "scale", __("slide right", "medicenter") => "slideRight", __("slide right 200%", "medicenter") => "slideRight200", __("slide left", "medicenter") => "slideLeft", __("slide left 50%", "medicenter") => "slideLeft50", __("slide down", "medicenter") => "slideDown", __("slide down 200%", "medicenter") => "slideDown200", __("slide up", "medicenter") => "slideUp"), "dependency" => array('element' => "layout_type", 'value' => array('1', '2'))), array("type" => "textfield", "class" => "", "heading" => __("Post date box animation duration (ms)", 'medicenter'), "param_name" => "post_date_animation_duration", "value" => "600", "dependency" => array('element' => "layout_type", 'value' => array('1', '2'))), array("type" => "textfield", "class" => "", "heading" => __("Post date box animation delay (ms)", 'medicenter'), "param_name" => "post_date_animation_delay", "value" => "0", "dependency" => array('element' => "layout_type", 'value' => array('1', '2'))), array("type" => "dropdown", "heading" => __("Post comments box animation", "js_composer"), "param_name" => "post_comments_animation", "value" => array(__("none", "medicenter") => "", __("fade in", "medicenter") => "fadeIn", __("scale", "medicenter") => "scale", __("slide right", "medicenter") => "slideRight", __("slide right 200%", "medicenter") => "slideRight200", __("slide left", "medicenter") => "slideLeft", __("slide left 50%", "medicenter") => "slideLeft50", __("slide down", "medicenter") => "slideDown", __("slide down 200%", "medicenter") => "slideDown200", __("slide up", "medicenter") => "slideUp"), "dependency" => array('element' => "layout_type", 'value' => array('1', '2'))), array("type" => "textfield", "class" => "", "heading" => __("Post comments box animation duration (ms)", 'medicenter'), "param_name" => "post_comments_animation_duration", "value" => "600", "dependency" => array('element' => "layout_type", 'value' => array('1', '2'))), array("type" => "textfield", "class" => "", "heading" => __("Post comments box animation delay (ms)", 'medicenter'), "param_name" => "post_comments_animation_delay", "value" => "0", "dependency" => array('element' => "layout_type", 'value' => array('1', '2'))), array("type" => "dropdown", "class" => "", "heading" => __("Show post date in post footer", 'medicenter'), "param_name" => "show_post_date_footer", "value" => array(__("No", 'medicenter') => 0, __("Yes", 'medicenter') => 1)), array("type" => "dropdown", "class" => "", "heading" => __("Show comments number in post footer", 'medicenter'), "param_name" => "show_post_comments_footer", "value" => array(__("No", 'medicenter') => 0, __("Yes", 'medicenter') => 1)), array("type" => "dropdown", "class" => "", "heading" => __("Lightbox icon color", 'medicenter'), "param_name" => "lightbox_icon_color", "value" => array(__("light blue", 'medicenter') => 'blue_light', __("dark blue", 'medicenter') => 'blue_dark', __("blue", 'medicenter') => 'blue', __("black", 'medicenter') => 'black', __("gray", 'medicenter') => 'gray', __("dark gray", 'medicenter') => 'gray_dark', __("light gray", 'medicenter') => 'gray_light', __("green", 'medicenter') => 'green', __("dark green", 'medicenter') => 'green_dark', __("light green", 'medicenter') => 'green_light', __("orange", 'medicenter') => 'orange', __("dark orange", 'medicenter') => 'orange_dark', __("light orange", 'medicenter') => 'orange_light', __("red", 'medicenter') => 'red', __("dark red", 'medicenter') => 'red_dark', __("light red", 'medicenter') => 'red_light', __("turquoise", 'medicenter') => 'turquoise', __("dark turquoise", 'medicenter') => 'turquoise_dark', __("light turquoise", 'medicenter') => 'turquoise_light', __("violet", 'medicenter') => 'violet', __("dark violet", 'medicenter') => 'violet_dark', __("light violet", 'medicenter') => 'violet_light', __("white", 'medicenter') => 'white', __("yellow", 'medicenter') => 'yellow')), array("type" => "dropdown", "class" => "", "heading" => __("Top margin", 'medicenter'), "param_name" => "top_margin", "value" => array(__("None", 'medicenter') => "none", __("Page (small)", 'medicenter') => "page_margin_top", __("Section (large)", 'medicenter') => "page_margin_top_section"))))); }
<?php comments_popup_link(__('No Comments', 'themeva') . ' ', '1 ' . __('Comment', 'themeva') . ' ', '% ' . __('Comments', 'themeva')); ?> <div class="hozbreak clearfix"> </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')))));
} else { $custom_markup = str_ireplace("%content%", '', $this->settings["custom_markup"]); } } $inner .= do_shortcode($custom_markup); } $elem = str_ireplace('%wpb_element_content%', $inner, $elem); $output = $elem; return $output; } } /* ------------------------------------ :: PRICING TABLE MAP ------------------------------------*/ wpb_map(array("name" => __("Pricing Table", "js_composer"), "base" => "pricing_table", "show_settings_on_create" => false, "is_container" => true, "icon" => "icon-pricing", "category" => __('Content', 'js_composer'), "params" => array(array("type" => "textfield", "heading" => __("Columns", "js_composer"), "param_name" => "columns"), array("type" => "textfield", "heading" => __("Extra class name", "js_composer"), "param_name" => "el_class", "description" => __("If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.", "js_composer"))), "custom_markup" => ' <h4 class="wpb_element_title">' . __("Pricing Table", "js_composer") . '</h4> <div class="wpb_pricing_table_holder wpb_holder clearfix vc_container_for_children"> %content% </div> <div class="tab_controls"> <button class="add_plan" title="' . __("Add Plan", "js_composer") . '">' . __("Add Plan", "js_composer") . '</button> </div> ', 'default_content' => ' [plan title="Plan"]<ul><li>List Item</li><li>List Item</li></ul>[/plan] [plan title="Plan"]<ul><li>List Item</li><li>List Item</li></ul>[/plan] [plan title="Featured Plan" featured="true" color="teal-lite"]<ul><li>List Item</li><li>List Item</li></ul>[/plan] [plan title="Plan"]<ul><li>List Item</li><li>List Item</li></ul>[/plan] ', 'admin_enqueue_js' => array(get_template_directory_uri() . '/js/custom-views-extended.js'), 'js_view' => 'PricingTableView')); wpb_map(array("name" => __("Plan Section", "js_composer"), "base" => "plan", "content_element" => false, "is_container" => true, "params" => array(array("type" => "textfield", "heading" => __("Title", "js_composer"), "param_name" => "title", "holder" => "h4", "value" => "", "description" => __("Plan Title", "js_composer")), array("type" => "checkbox", "class" => "", "heading" => __("Featured Plan", "js_composer"), "param_name" => "featured", "value" => array(__('Enable', "js_composer") => "true")), array("type" => "textfield", "heading" => __("Currency", "js_composer"), "param_name" => "currency", "value" => ""), array("type" => "textfield", "heading" => __("Price", "js_composer"), "param_name" => "price", "value" => ""), array("type" => "textfield", "heading" => __("Per", "js_composer"), "param_name" => "per", "value" => "", "description" => __("E.g. / Month", "js_composer")), array("type" => "dropdown", "heading" => __("Color", "js_composer"), "param_name" => "color", "value" => get_options_array('colors'), "description" => __("Select color of the toggle icon.", "js_composer")), array("type" => "textarea_html", "holder" => "div", "class" => "", "heading" => __("Content", "js_composer"), "param_name" => "content", "value" => __("<ul><li>List Item</li><li>List Item</li></ul>", "js_composer")), array("type" => "textfield", "heading" => __("Button Text", "js_composer"), "param_name" => "button_text", "value" => ""), array("type" => "textfield", "heading" => __("Button Link", "js_composer"), "param_name" => "button_link", "value" => ""), array("type" => "dropdown", "heading" => __("Link Target", "js_composer"), "param_name" => "target", "value" => array(__("Same window", "js_composer") => "_self", __("New window", "js_composer") => "_blank")), array("type" => "textfield", "heading" => __("Icon", "js_composer"), "param_name" => "icon", "value" => "", "description" => __("See Font Awesome <a href=\"http://fortawesome.github.io/Font-Awesome/icons/\" target=\"_blank\">Icons</a> : Enter Icon Name e.g.<strong> fa-compass</strong>", "js_composer")), array("type" => "colorpicker", "heading" => __("Icon Color", "js_composer"), "param_name" => "icon_color", "value" => "", "dependency" => array('element' => 'icon', 'not_empty' => true)), array("type" => "colorpicker", "heading" => __("Icon Background Color", "js_composer"), "param_name" => "icon_background", "value" => "", "dependency" => array('element' => 'icon', 'not_empty' => true))), 'js_view' => 'PlanView')); add_shortcode('plan', 'pricing_table_shortcode'); add_shortcode('pricing_table', 'pricing_table_shortcode');
if ($align == 'left' || $align == 'center') { // center is not working with this anyway $output .= '<' . $tag . $el_style . '>' . $content . '</' . $tag . '>'; $output .= '<div class="wt_cheading_sep_wrap"><div class="wt_cheading_sep"></div></div>'; } else { // right $output .= '<div class="wt_cheading_sep_wrap"><div class="wt_cheading_sep"></div></div>'; $output .= '<' . $tag . $el_style . '>' . $content . '</' . $tag . '>'; } break; case "wt_cheading_3": default: $output .= '<' . $tag . $el_style . '><span>' . $content . '</span></' . $tag . '>'; break; } $output .= '</div>'; return $output; } } /* Register WhoaThemes shortcode within Visual Composer interface. */ if (function_exists('wpb_map')) { $add_wt_sc_func = new WT_VCSC_SHORTCODE(); $add_wt_extra_id = $add_wt_sc_func->getWTExtraId(); $add_wt_extra_class = $add_wt_sc_func->getWTExtraClass(); $add_wt_css_animation = $add_wt_sc_func->getWTAnimations(); $add_wt_css_animation_type = $add_wt_sc_func->getWTAnimationsType(); $add_wt_css_animation_delay = $add_wt_sc_func->getWTAnimationsDelay(); wpb_map(array('name' => __('WT Custom Heading', 'wt_vcsc'), 'base' => 'wt_custom_heading', 'icon' => 'wt_vc_ico_custom_heading', 'class' => 'wt_vc_sc_custom_heading', 'category' => __('by WhoaThemes', 'wt_vcsc'), 'description' => __('Add custom heading text', 'wt_vcsc'), 'params' => array(array('type' => 'textarea', 'heading' => __('Text', 'wt_vcsc'), 'param_name' => 'content', 'admin_label' => true, 'value' => __('This is a custom heading element', 'wt_vcsc'), 'description' => __('Enter your custom heading content.', 'wt_vcsc')), array('type' => 'dropdown', 'heading' => __('Element tag', 'wt_vcsc'), 'param_name' => 'tag', 'value' => array(__('H1', 'wt_vcsc') => 'h1', __('H2', 'wt_vcsc') => 'h2', __('H3', 'wt_vcsc') => 'h3', __('H4', 'wt_vcsc') => 'h4', __('H5', 'wt_vcsc') => 'h5', __('H6', 'wt_vcsc') => 'h6'), 'std' => 'h2', 'description' => __('Select the element tag.', 'wt_vcsc')), array('type' => 'dropdown', 'heading' => __('Heading style', 'wt_vcsc'), 'param_name' => 'style', 'value' => array(__('Style #1', 'wt_vcsc') => 'wt_cheading_1', __('Style #2', 'wt_vcsc') => 'wt_cheading_2', __('Style #3', 'wt_vcsc') => 'wt_cheading_3', __('Style #4', 'wt_vcsc') => 'wt_cheading_4'), 'std' => 'wt_cheading_3', 'description' => __('Select the element tag.', 'wt_vcsc')), array('type' => 'dropdown', 'heading' => __('Text align', 'wt_vcsc'), 'param_name' => 'align', 'value' => array(__('Align left', 'wt_vcsc') => 'left', __('Align right', 'wt_vcsc') => 'right', __('Align center', 'wt_vcsc') => 'center'), 'std' => 'left', 'description' => __('Select text alignment. <strong>Style #2 is not working on center.</strong>', 'wt_vcsc')), array('type' => 'colorpicker', 'heading' => __('Text color', 'wt_vcsc'), 'param_name' => 'color', 'description' => __('Select text color.', 'wt_vcsc')), array('type' => 'colorpicker', 'heading' => __('Custom heading background', 'wt_vcsc'), 'param_name' => 'background', 'description' => __('Select custom heading background.', 'wt_vcsc')), $add_wt_extra_id, $add_wt_extra_class, $add_wt_css_animation, $add_wt_css_animation_type, $add_wt_css_animation_delay, array('type' => 'css_editor', 'heading' => __('Css', 'wt_vcsc'), 'param_name' => 'css', 'group' => __('Design options', 'wt_vcsc'))))); }
if (substr($this->atts['tab_id'], 0, 4) != "http" && substr($this->atts['tab_id'], 0, 5) != "https") { return ' id="tab-' . $this->atts['tab_id'] . '"'; } else { return ' style="height: 0;"'; } } public function mainHtmlBlockParams($width, $i) { return 'data-element_type="' . $this->settings["base"] . '" class="wpb_' . $this->settings['base'] . ' wpb_sortable wpb_container_block wpb_content_holder"' . $this->customAdminBlockParams(); } public function containerHtmlBlockParams($width, $i) { return 'class="row-fluid wpb_column_container wpb_sortable_container wpb_' . $this->settings['base'] . '_container wpb_container_block wpb_no_content_element_inside"'; } } wpb_map(array("name" => __("Nested Tab", "js_composer"), "base" => "vc_nested_tab", "class" => "", "icon" => "", "wrapper_class" => "", "controls" => "full", "content_element" => false, "params" => array(array("type" => "textfield", "heading" => __("Title", "js_composer"), "param_name" => "title", "value" => "", "description" => __("Title which will be displayed as the tab anchor in navigation control", "js_composer")), array("type" => "textfield", "heading" => __("Tab id", "js_composer"), "param_name" => "tab_id", "value" => "", "description" => __("Unique identifier for this tab. Generated automatically. Replace with your own if you don't want to use automatically generated.", "js_composer"))))); function nested_tab_id_settings_field($settings, $value) { $dependency = vc_generate_dependencies_attributes($settings); return '<div class="my_param_block">' . '<input name="' . $settings['param_name'] . '" class="wpb_vc_param_value wpb-textinput ' . $settings['param_name'] . ' ' . $settings['type'] . '_field" type="hidden" value="' . $value . '" ' . $dependency . ' data-js-function="wpb_change_tab_title" />' . '<label>' . $value . '</label>' . '</div>'; // TODO: Add data-js-function to documentation } add_shortcode_param('tab_id', 'nested_tab_id_settings_field'); class WPBakeryShortCode_VC_Nested_Tabs extends WPBakeryShortCode { public function __construct($settings) { parent::__construct($settings); // WPBakeryVisualComposer::getInstance()->addShortCode( array( 'base' => 'vc_tab' ) ); } public function contentAdmin($atts, $content = null)
//$elem = str_ireplace('%wpb_element_content%', $iner, $elem); $tmp = ''; // $template = '<div class="wpb_template">'.do_shortcode('[testimonial_item name="New Section"][/testimonial_item]').'</div>'; if (isset($this->settings["custom_markup"]) && $this->settings["custom_markup"] != '') { if ($content != '') { $custom_markup = str_ireplace("%content%", $tmp . $content, $this->settings["custom_markup"]); } else { if ($content == '' && isset($this->settings["default_content_in_template"]) && $this->settings["default_content_in_template"] != '') { $custom_markup = str_ireplace("%content%", $this->settings["default_content_in_template"], $this->settings["custom_markup"]); } else { $custom_markup = str_ireplace("%content%", '', $this->settings["custom_markup"]); } } //$output .= do_shortcode($this->settings["custom_markup"]); $inner .= do_shortcode($custom_markup); } $elem = str_ireplace('%wpb_element_content%', $inner, $elem); $output = $elem; return $output; } } wpb_map(array("name" => __("Testimonial", "cactusthemes"), "base" => "testimonial", "controls" => "full", "show_settings_on_create" => false, "is_container" => true, "class" => "wpb_vc_accordion vc_not_inner_content wpb_container_block", "category" => __('Content', "cactusthemes"), "params" => array(array("type" => "textfield", "heading" => __("Name", "cactusthemes"), "param_name" => "name", "value" => "", "description" => ''), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Auto play", 'cactusthemes'), "param_name" => "auto_play", "value" => array(__("Yes", 'cactusthemes') => '1', __("No", 'cactusthemes') => '0'), "description" => '')), "custom_markup" => ' <div class="wpb_accordion_holder wpb_holder clearfix vc_container_for_children"> %content% </div> <div class="tab_controls"> <button class="add_tab" title="' . __("Add testimonial section", "cactusthemes") . '">' . __("Add testimonial section", "cactusthemes") . '</button> </div>', 'default_content' => ' [testimonial_item title="Testimonial title 1"][/testimonial_item] ', 'js_view' => 'VcTestimonialView'));
function roen_integrateWithVC() { if (function_exists('vc_map')) { $effect_list = array("none", "bounce", "flash", "pulse", "rubberBand", "shake", "swing", "tada", "wobble", "bounceIn", "bounceInDown", "bounceInLeft", "bounceInRight", "bounceInUp", "bounceOut", "bounceOutDown", "bounceOutLeft", "bounceOutRight", "bounceOutUp", "fadeIn", "fadeInDown", "fadeInDownBig", "fadeInLeft", "fadeInLeftBig", "fadeInRight", "fadeInRightBig", "fadeInUp", "fadeInUpBig", "fadeOut", "fadeOutDown", "fadeOutDownBig", "fadeOutLeft", "fadeOutLeftBig", "fadeOutRight", "fadeOutRightBig", "fadeOutUp", "fadeOutUpBig", "flip", "flipInX", "flipInY", "flipOutX", "flipOutY", "lightSpeedIn", "lightSpeedOut", "rotateIn", "rotateInDownLeft", "rotateInDownRight", "rotateInUpLeft", "rotateInUpRight", "rotateOut", "rotateOutDownLeft", "rotateOutDownRight", "rotateOutUpLeft", "rotateOutUpRight", "hinge", "rollIn", "rollOut", "zoomIn", "zoomInDown", "zoomInLeft", "zoomInRight", "zoomInUp", "zoomOut", "zoomOutDown", "zoomOutLeft", "zoomOutRight", "zoomOutUp"); $color_list = array('theme', 'white', 'black', 'darkcyan', 'deepskyblue', 'royalblue', 'blueviolet', 'purple', 'deeppink', 'crimson', 'green', 'lawngreen', 'yellow', 'gold', 'orange', 'orangered', 'chocolate', 'red', 'btn-primary', 'btn-info', 'btn-success', 'btn-warning', 'btn-danger'); /******************/ /* wide background */ $attributes_wide = array('type' => 'dropdown', 'heading' => __("Wide Background", 'ROEN'), 'param_name' => 'wide', "value" => array('no', 'yes'), 'description' => __("Enable row with wide background", 'ROEN')); $attributes_id = array('type' => 'textfield', 'heading' => __("ID", 'ROEN'), 'param_name' => 'ex_id', "value" => '', 'description' => __("ID for you setting One Page ID", 'ROEN')); vc_add_param('vc_row', $attributes_wide); vc_add_param('vc_row', $attributes_id); /* space */ vc_map(array("icon" => "icon-wpb-roen", "name" => __("Space", 'ROEN'), "base" => "space", "class" => "", "controls" => "full", "category" => __('ROEN Content', 'ROEN'), "admin_enqueue_css" => array(get_template_directory_uri() . '/vc_extend/roen.css'), "params" => array(array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Margin Top", 'ROEN'), "param_name" => "top", "value" => '15px'), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Margin Bottom", 'ROEN'), "param_name" => "bottom", "value" => '15px'), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Show Line", 'ROEN'), "param_name" => "line", "value" => array('yes', 'no')), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Line Style", 'ROEN'), "param_name" => "style", "value" => array('solid', 'dashed', 'double', 'dotted')), array("type" => "colorpicker", "holder" => "div", "class" => "", "heading" => __("Text Color", 'ROEN'), "param_name" => "color", "value" => '#e8e8e8'), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Line Width", 'ROEN'), "param_name" => "width", "value" => '100%')))); /* title */ vc_map(array("icon" => "icon-wpb-roen", "name" => __("Title", 'ROEN'), "base" => "title", "class" => "", "controls" => "full", "category" => __('ROEN Content', 'ROEN'), "params" => array(array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Title", 'ROEN'), "param_name" => "text", "value" => __("Title", 'ROEN'), "description" => __('Use _*XXX*_ for focus text.', 'ROEN')), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Size", 'ROEN'), "param_name" => "size", "value" => array('h3', 'h1', 'h2', 'h4', 'h5', 'h6')), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Align", 'ROEN'), "param_name" => "align", "value" => array('left', 'center', 'right')), array("type" => "colorpicker", "holder" => "div", "class" => "", "heading" => __("Text Color", 'ROEN'), "param_name" => "color", "value" => '#121215'), array("type" => "colorpicker", "holder" => "div", "class" => "", "heading" => __("Focus Text Color", 'ROEN'), "param_name" => "focus_color", "value" => '#057ac6'), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Uppercase", 'ROEN'), "param_name" => "uppercase", "value" => array('no', 'yes')), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Bold", 'ROEN'), "param_name" => "bold", "value" => array('no', 'yes')), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Line", 'ROEN'), "param_name" => "line", "value" => array('no', 'yes'))))); /* buttons */ vc_map(array("icon" => "icon-wpb-roen", "name" => __("Button", 'ROEN'), "base" => "button", "class" => "", "controls" => "full", "category" => __('ROEN Content', 'ROEN'), "params" => array(array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Title", 'ROEN'), "param_name" => "text", "value" => __("Button", 'ROEN')), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Icon Name", 'ROEN'), "param_name" => "icon", "value" => '', "description" => __('FontAwesome icon name e.g. fa-flag (Options)', 'ROEN')), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Style", 'ROEN'), "param_name" => "style", "value" => array('default', 'float-btn', 'border-btn', 'icon-btn', 'mix-btn')), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Color", 'ROEN'), "param_name" => "color", "value" => $color_list), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Size", 'ROEN'), "param_name" => "size", "value" => array('default', 'btn-lg', 'btn-sm', 'btn-xs')), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Align", 'ROEN'), "param_name" => "align", "value" => array('left', 'center', 'right')), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Link", 'ROEN'), "param_name" => "url", "value" => ''), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Link Target", 'ROEN'), "param_name" => "target", "value" => array('_self', '_blank'))))); /* service */ vc_map(array("icon" => "icon-wpb-roen", "name" => __("Service", 'ROEN'), "base" => "service", "class" => "", "controls" => "full", "category" => __('ROEN Content', 'ROEN'), "params" => array(array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Style", 'ROEN'), "param_name" => "style", "value" => array('1', '2', '3', '4', '5')), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Icon Name", 'ROEN'), "param_name" => "icon", "value" => '', "description" => __('FontAwesome icon name e.g. fa-flag', 'ROEN')), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Title", 'ROEN'), "param_name" => "title", "value" => __("Title", 'ROEN')), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Color", 'ROEN'), "param_name" => "color", "value" => $color_list), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Align", 'ROEN'), "param_name" => "align", "value" => array('left', 'center')), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Link", 'ROEN'), "param_name" => "link", "value" => ''), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Link Target", 'ROEN'), "param_name" => "target", "value" => array('_self', '_blank')), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Effect", 'ROEN'), "param_name" => "effect", "value" => $effect_list), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Delay Time (ms)", 'ROEN'), "param_name" => "delay", "value" => ''), array("type" => "textarea_html", "holder" => "div", "class" => "", "heading" => __("Content", 'ROEN'), "param_name" => "content", "value" => __("Please input content...", 'ROEN'))))); /* alert message */ vc_map(array("icon" => "icon-wpb-roen", "name" => __("Alert Message", 'ROEN'), "base" => "alert", "class" => "", "controls" => "full", "category" => __('ROEN Content', 'ROEN'), "params" => array(array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Alert Message Type", 'ROEN'), "param_name" => "type", "value" => array('info', 'warning', 'danger', 'success'), "description" => __("The alert message type.", 'ROEN')), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Close", 'ROEN'), "param_name" => "close", "value" => array('yes', 'no'), "description" => __("The alert message can be close.", 'ROEN')), array("type" => "textarea_html", "holder" => "div", "class" => "", "heading" => __("Content", 'ROEN'), "param_name" => "content", "value" => __("Please input content...", 'ROEN'))))); /* count number */ vc_map(array("icon" => "icon-wpb-roen", "name" => __("Count Number", 'ROEN'), "base" => "countnumber", "class" => "", "controls" => "full", "category" => __('ROEN Content', 'ROEN'), "params" => array(array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Style", 'ROEN'), "param_name" => "style", "value" => array('1', '2', '3')), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Icon Name", 'ROEN'), "param_name" => "icon", "value" => '', "description" => __('FontAwesome icon name e.g. fa-flag (Options)', 'ROEN')), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Start Number", 'ROEN'), "param_name" => "start", "value" => '0'), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Step Number", 'ROEN'), "param_name" => "step", "value" => '1'), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("End Number", 'ROEN'), "param_name" => "end", "value" => '10'), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Number Prefix Text", 'ROEN'), "param_name" => "prefix", "value" => ''), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Number Suffix Text", 'ROEN'), "param_name" => "suffix", "value" => ''), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Color", 'ROEN'), "param_name" => "color", "value" => $color_list), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Background", 'ROEN'), "param_name" => "bg", "value" => array('yes', 'no')), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Effect", 'ROEN'), "param_name" => "effect", "value" => $effect_list), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Delay Time (ms)", 'ROEN'), "param_name" => "delay", "value" => ''), array("type" => "textarea_html", "holder" => "div", "class" => "", "heading" => __("Content", 'ROEN'), "param_name" => "content", "value" => __("Please input content...", 'ROEN'))))); /* toggle */ vc_map(array("icon" => "icon-wpb-roen", "name" => __("Toggle", 'ROEN'), "base" => "toggle", "class" => "", "controls" => "full", "category" => __('ROEN Content', 'ROEN'), "params" => array(array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Title", 'ROEN'), "param_name" => "title", "value" => __("Title", 'ROEN')), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Faqs Style", 'ROEN'), "param_name" => "faq", "value" => array('yes', 'no'), "description" => __("The toggle show as faqs style.", 'ROEN')), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Open", 'ROEN'), "param_name" => "open", "value" => array('yes', 'no'), "description" => __("The toggle content default show or hide.", 'ROEN')), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Color", 'ROEN'), "param_name" => "color", "value" => $color_list), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Effect", 'ROEN'), "param_name" => "effect", "value" => $effect_list), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Delay Time (ms)", 'ROEN'), "param_name" => "delay", "value" => ''), array("type" => "textarea_html", "holder" => "div", "class" => "", "heading" => __("Content", 'ROEN'), "param_name" => "content", "value" => __("Please input content...", 'ROEN'))))); /* call to action */ vc_map(array("icon" => "icon-wpb-roen", "name" => __("Call To Action", 'ROEN'), "base" => "call_to_action", "class" => "", "controls" => "full", "category" => __('ROEN Content', 'ROEN'), "params" => array(array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Style", 'ROEN'), "param_name" => "style", "value" => array('default', 'bar')), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Title", 'ROEN'), "param_name" => "title", "value" => ''), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Size", 'ROEN'), "param_name" => "size", "value" => array('default', 'big')), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Button Title (Options)", 'ROEN'), "param_name" => "btn_title", "value" => ''), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Button Link (Options)", 'ROEN'), "param_name" => "url", "value" => ''), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Button Link Target (Options)", 'ROEN'), "param_name" => "target", "value" => array('_self', '_blank')), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Button Style (Options)", 'ROEN'), "param_name" => "btn_style", "value" => array('default', 'float-btn', 'border-btn')), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Button Color (Options)", 'ROEN'), "param_name" => "btn_color", "value" => $color_list), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Effect", 'ROEN'), "param_name" => "effect", "value" => $effect_list), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Delay Time (ms)", 'ROEN'), "param_name" => "delay", "value" => ''), array("type" => "textarea_html", "holder" => "div", "class" => "", "heading" => __("Content", 'ROEN'), "param_name" => "content", "value" => __("Please input content...", 'ROEN'))))); /* price */ vc_map(array("icon" => "icon-wpb-roen", "name" => __("Price Plan", 'ROEN'), "base" => "price", "class" => "", "controls" => "full", "category" => __('ROEN Content', 'ROEN'), "params" => array(array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Type", 'ROEN'), "param_name" => "type", "value" => array('default', 'free', 'recommend')), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Title", 'ROEN'), "param_name" => "title", "value" => ''), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Currency", 'ROEN'), "param_name" => "currency", "value" => ''), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Price", 'ROEN'), "param_name" => "price", "value" => ''), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Plan", 'ROEN'), "param_name" => "plan", "value" => ''), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Element show effect", 'ROEN'), "param_name" => "effect", "value" => $effect_list), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Delay Time (ms)", 'ROEN'), "param_name" => "delay", "value" => ''), array("type" => "textarea_html", "holder" => "div", "class" => "", "heading" => __("Content", 'ROEN'), "param_name" => "content", "value" => __("Please input content...", 'ROEN'))))); /* image */ vc_map(array("icon" => "icon-wpb-roen", "name" => __("Image", 'ROEN'), "base" => "img", "class" => "", "controls" => "full", "category" => __('ROEN Content', 'ROEN'), "admin_enqueue_css" => array(get_template_directory_uri() . '/vc_extend/roen.css'), "params" => array(array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Align", 'ROEN'), "param_name" => "align", "value" => array('default', 'alignnone', 'alignleft', 'aligncenter', 'alignright')), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Image Src", 'ROEN'), "param_name" => "src", "value" => ''), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("URL (Options)", 'ROEN'), "param_name" => "url", "value" => ''), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Target (Options)", 'ROEN'), "param_name" => "target", "value" => array('_self', '_blank')), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Title (Options)", 'ROEN'), "param_name" => "title", "value" => ''), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("FancyBox (Options)", 'ROEN'), "param_name" => "fancybox", "value" => array('no', 'yes')), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Effect", 'ROEN'), "param_name" => "effect", "value" => $effect_list), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Delay Time (ms)", 'ROEN'), "param_name" => "delay", "value" => '')))); /* blog list */ wpb_map(array("icon" => "icon-wpb-roen", "name" => __("Blog List", 'ROEN'), "base" => "blog_list", "class" => "", "controls" => "full", "category" => __('roen Content', 'ROEN'), "params" => array(array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Posts Number", 'ROEN'), "param_name" => "number", "value" => '4'), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Columns", 'ROEN'), "param_name" => "columns", "value" => '4'), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Type", 'ROEN'), "param_name" => "type", "value" => array('recent', 'related', 'popular', 'featured')), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Style", 'ROEN'), "param_name" => "style", "value" => array('1', '2', '3', '4', '5'), "description" => __("Show item style.", 'ROEN')), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Order By", 'ROEN'), "param_name" => "orderby", "value" => ''), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Categories slug use , ", 'ROEN'), "param_name" => "cat__in", "value" => ''), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Tags slug use , ", 'ROEN'), "param_name" => "tag__in", "value" => ''), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Included post ids use , ", 'ROEN'), "param_name" => "post__in", "value" => ''), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Not included post ids use , ", 'ROEN'), "param_name" => "post__not_in", "value" => ''), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Image don't crop", 'ROEN'), "param_name" => "nocrop", "value" => array('off', 'on')), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Effect", 'ROEN'), "param_name" => "effect", "value" => $effect_list)))); /* blog scroll list */ wpb_map(array("icon" => "icon-wpb-roen", "name" => __("Blog Scroll List", 'ROEN'), "base" => "blog_scroll_list", "class" => "", "controls" => "full", "category" => __('roen Content', 'ROEN'), "params" => array(array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Posts Number", 'ROEN'), "param_name" => "number", "value" => '4'), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Columns", 'ROEN'), "param_name" => "columns", "value" => '4'), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Type", 'ROEN'), "param_name" => "type", "value" => array('recent', 'related', 'popular', 'featured')), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Style", 'ROEN'), "param_name" => "style", "value" => array('1', '2', '3', '4', '5'), "description" => __("Show item style.", 'ROEN')), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Postion", 'ROEN'), "param_name" => "position", "value" => array('side', 'top', 'bottom'), "description" => __("Nav show postion.", 'ROEN')), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Space", 'ROEN'), "param_name" => "space", "value" => array('yes', 'no'), "description" => __("The items space.", 'ROEN')), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Order By", 'ROEN'), "param_name" => "orderby", "value" => ''), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Categories slug use , ", 'ROEN'), "param_name" => "cat__in", "value" => ''), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Tags slug use , ", 'ROEN'), "param_name" => "tag__in", "value" => ''), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Included post ids use , ", 'ROEN'), "param_name" => "post__in", "value" => ''), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Not included post ids use , ", 'ROEN'), "param_name" => "post__not_in", "value" => ''), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Image don't crop", 'ROEN'), "param_name" => "nocrop", "value" => array('off', 'on')), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Effect", 'ROEN'), "param_name" => "effect", "value" => $effect_list)))); /* portfolio list */ wpb_map(array("icon" => "icon-wpb-roen", "name" => __("Portfolio List", 'ROEN'), "base" => "portfolio_list", "class" => "", "controls" => "full", "category" => __('roen Content', 'ROEN'), "params" => array(array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Posts Number", 'ROEN'), "param_name" => "number", "value" => '4'), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Columns", 'ROEN'), "param_name" => "columns", "value" => '4'), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Type", 'ROEN'), "param_name" => "type", "value" => array('recent', 'related', 'popular', 'featured')), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Style", 'ROEN'), "param_name" => "style", "value" => array('1', '2', '3', '4', '5', '6', '7'), "description" => __("Show item style.", 'ROEN')), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Order By", 'ROEN'), "param_name" => "orderby", "value" => ''), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Categories slug use , ", 'ROEN'), "param_name" => "cat__in", "value" => ''), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Included post ids use , ", 'ROEN'), "param_name" => "post__in", "value" => ''), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Not included post ids use , ", 'ROEN'), "param_name" => "post__not_in", "value" => ''), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Image don't crop", 'ROEN'), "param_name" => "nocrop", "value" => array('off', 'on')), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Effect", 'ROEN'), "param_name" => "effect", "value" => $effect_list)))); /* portfolio scroll list */ wpb_map(array("icon" => "icon-wpb-roen", "name" => __("Portfolio Scroll List", 'ROEN'), "base" => "portfolio_scroll_list", "class" => "", "controls" => "full", "category" => __('roen Content', 'ROEN'), "params" => array(array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Posts Number", 'ROEN'), "param_name" => "number", "value" => '4'), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Columns", 'ROEN'), "param_name" => "columns", "value" => '4'), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Type", 'ROEN'), "param_name" => "type", "value" => array('recent', 'related', 'popular', 'featured')), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Style", 'ROEN'), "param_name" => "style", "value" => array('1', '2', '3', '4', '5', '6', '7'), "description" => __("Show item style.", 'ROEN')), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Postion", 'ROEN'), "param_name" => "position", "value" => array('side', 'top', 'bottom'), "description" => __("Nav show postion.", 'ROEN')), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Space", 'ROEN'), "param_name" => "space", "value" => array('yes', 'no'), "description" => __("The items space.", 'ROEN')), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Order By", 'ROEN'), "param_name" => "orderby", "value" => ''), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Categories slug use , ", 'ROEN'), "param_name" => "cat__in", "value" => ''), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Included post ids use , ", 'ROEN'), "param_name" => "post__in", "value" => ''), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Not included post ids use , ", 'ROEN'), "param_name" => "post__not_in", "value" => ''), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Image don't crop", 'ROEN'), "param_name" => "nocrop", "value" => array('off', 'on')), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Effect", 'ROEN'), "param_name" => "effect", "value" => $effect_list)))); /* portfolio filter list */ wpb_map(array("icon" => "icon-wpb-roen", "name" => __("Portfolio Filter List", 'ROEN'), "base" => "portfolio_filter_list", "class" => "", "controls" => "full", "category" => __('roen Content', 'ROEN'), "params" => array(array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Posts Number", 'ROEN'), "param_name" => "number", "value" => '8'), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Columns", 'ROEN'), "param_name" => "columns", "value" => '4'), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Style", 'ROEN'), "param_name" => "style", "value" => array('1', '2', '3', '4', '5', '6', '7'), "description" => __("Show item style.", 'ROEN')), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Filter", 'ROEN'), "param_name" => "filter", "value" => array('on', 'off')), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Categories slug use , ", 'ROEN'), "param_name" => "cat__in", "value" => ''), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Space", 'ROEN'), "param_name" => "space", "value" => array('yes', 'no'), "description" => __("The items space.", 'ROEN')), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Image don't crop", 'ROEN'), "param_name" => "nocrop", "value" => array('off', 'on'))))); /* member list */ wpb_map(array("icon" => "icon-wpb-roen", "name" => __("Member List", 'ROEN'), "base" => "member_list", "class" => "", "controls" => "full", "category" => __('roen Content', 'ROEN'), "params" => array(array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Posts Number", 'ROEN'), "param_name" => "number", "value" => '4'), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Columns", 'ROEN'), "param_name" => "columns", "value" => '4'), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Type", 'ROEN'), "param_name" => "type", "value" => array('recent', 'related', 'popular', 'featured')), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Style", 'ROEN'), "param_name" => "style", "value" => array('1', '2', '3'), "description" => __("Show item style.", 'ROEN')), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Order By", 'ROEN'), "param_name" => "orderby", "value" => ''), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Categories slug use , ", 'ROEN'), "param_name" => "cat__in", "value" => ''), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Included post ids use , ", 'ROEN'), "param_name" => "post__in", "value" => ''), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Not included post ids use , ", 'ROEN'), "param_name" => "post__not_in", "value" => ''), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Effect", 'ROEN'), "param_name" => "effect", "value" => $effect_list)))); /* google map */ vc_map(array("icon" => "icon-wpb-roen", "name" => __("Map", 'ROEN'), "base" => "map", "class" => "", "controls" => "full", "category" => __('ROEN Content', 'ROEN'), "params" => array(array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Theme", 'ROEN'), "param_name" => "theme", "value" => array('default', 'logo', 'black', 'white')), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("LatLng", 'ROEN'), "param_name" => "latlng", "value" => '', "description" => __("The map LatLng value from google map.e.g. 40.716038,-74.080811", 'ROEN')), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Width", 'ROEN'), "param_name" => "width", "value" => '300', "description" => __("The map show width.", 'ROEN')), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Height", 'ROEN'), "param_name" => "height", "value" => '200', "description" => __("The map show height.", 'ROEN')), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Zoom", 'ROEN'), "param_name" => "zoom", "value" => '13', "description" => __("The map default show zoom.", 'ROEN')), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Draggable", 'ROEN'), "param_name" => "draggable", "value" => array('yes', 'no'), "description" => __("The map can drag.", 'ROEN')), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Scroll Wheel", 'ROEN'), "param_name" => "scrollwheel", "value" => array('yes', 'no'), "description" => __("The map can scroll wheel zoom.", 'ROEN')), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Show Marker", 'ROEN'), "param_name" => "show_marker", "value" => array('yes', 'no'), "description" => __("The map show marker.", 'ROEN')), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Show Address Information", 'ROEN'), "param_name" => "show_info", "value" => array('yes', 'no'), "description" => __("The map show info box of address.", 'ROEN')), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Show Information Width", 'ROEN'), "param_name" => "info_width", "value" => '260', "description" => __("The map info address box width.", 'ROEN')), array("type" => "textarea_html", "holder" => "div", "class" => "", "heading" => __("Content", 'ROEN'), "param_name" => "content", "value" => __("MAP Address Content.", 'ROEN'))))); /* youtube */ vc_map(array("icon" => "icon-wpb-roen", "name" => __("Youtube", 'ROEN'), "base" => "youtube", "class" => "", "controls" => "full", "category" => __('ROEN Content', 'ROEN'), "params" => array(array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("ID", 'ROEN'), "param_name" => "id", "value" => '', "description" => __("Enter video ID (eg.6htyfxPkYDU).", 'ROEN')), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Width", 'ROEN'), "param_name" => "width", "value" => '100%', "description" => __("Youtube default show width.", 'ROEN')), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Height", 'ROEN'), "param_name" => "height", "value" => '360', "description" => __("Youtube default show width.", 'ROEN'))))); /* vimeo */ vc_map(array("icon" => "icon-wpb-roen", "name" => __("Vimeo", 'ROEN'), "base" => "vimeo", "class" => "", "controls" => "full", "category" => __('ROEN Content', 'ROEN'), "params" => array(array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("ID", 'ROEN'), "param_name" => "id", "value" => '', "description" => __("Enter video ID (eg.54578415).", 'ROEN')), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Width", 'ROEN'), "param_name" => "width", "value" => '100%', "description" => __("Vimeo default show width.", 'ROEN')), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Height", 'ROEN'), "param_name" => "height", "value" => '360', "description" => __("Vimeo default show width.", 'ROEN'))))); /* Soundcloud */ vc_map(array("icon" => "icon-wpb-roen", "name" => __("Soundcloud", 'ROEN'), "base" => "soundcloud", "class" => "", "controls" => "full", "category" => __('ROEN Content', 'ROEN'), "params" => array(array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Soundcloud URL", 'ROEN'), "param_name" => "url", "value" => '', "description" => __("Enter soundcloud url like http://api.soundcloud.com/tracks/38987054.", 'ROEN'))))); /******************/ } }
<?php /* Register shortcode with Visual Composer */ wpb_map(array("name" => __("Member"), "base" => "member", "class" => "", "controls" => "full", "category" => __('Content'), "params" => array(array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("ID Member"), "param_name" => "id", "value" => '', "description" => ''))));
<?php /* ------------------------------------ :: BLOCK QUOTE ------------------------------------*/ class WPBakeryShortCode_Blockquote extends WPBakeryShortCode { protected $predefined_atts = array('type' => '', 'align' => '', 'width' => '', 'css_animation' => ''); public function content($atts, $content = null) { $type = $align = $width = $css_animation = $blockwidth = $css_class = ''; extract(shortcode_atts(array('type' => 'blockquote_quotes', 'align' => '', 'width' => '', 'css_animation' => ''), $atts)); global $NV_inskin; $css_class = $this->getCSSAnimation($css_animation); if ($width != '') { $blockwidth = 'style="width:100%;max-width:' . $width . 'px"'; } if ($type != "blockquote_line") { return '<div class="nv-skin ' . $type . ' ' . $align . ' ' . $css_class . '" ' . $blockwidth . '><span class="quote right"><span>' . __('”', 'themeva') . '</span></span><span class="quote left"><span>' . __('“', 'themeva') . '</span></span>' . $content . '</div>'; } else { return '<div class="nv-skin ' . $type . ' ' . $align . ' ' . $css_class . '" ' . $blockwidth . '>' . $content . '</div>'; } } } /* ------------------------------------ :: BLOCK QUOTE MAP ------------------------------------*/ wpb_map(array("name" => __("Quote", "js_composer"), "base" => "blockquote", "class" => "wpb_controls_top_right", "icon" => "icon-quote", "controls" => "full", "category" => __('Content', 'js_composer'), "params" => array(array("type" => "dropdown", "heading" => __("Type", "js_composer"), "param_name" => "type", "value" => array(__('Quotes', "js_composer") => 'blockquote_quotes', __('Line', "js_composer") => 'blockquote_line')), array("type" => "dropdown", "heading" => __("Align", "js_composer"), "param_name" => "align", "value" => array(__('Left', "js_composer") => 'left', __('Center', "js_composer") => 'center', __('Right', "js_composer") => 'right')), $add_css_animation, array("type" => "textarea_html", "holder" => "div", "class" => "", "heading" => __("Quote", "js_composer"), "param_name" => "content", "value" => ""), array("type" => "textfield", "class" => "", "heading" => __("Width", "js_composer"), "param_name" => "width", "value" => "", "description" => __("Add optional width setting.", "js_composer")))));
function theme_contact_form_vc_init() { wpb_map(array("name" => __("Contact form", 'medicenter'), "base" => "medicenter_contact_form", "class" => "", "controls" => "full", "show_settings_on_create" => true, "icon" => "icon-wpb-layer-contact-form", "category" => __('MediCenter', 'medicenter'), "params" => array(array("type" => "textfield", "class" => "", "heading" => __("Id", 'medicenter'), "param_name" => "id", "value" => "contact_form", "description" => __("Please provide unique id for each contact form on the same page/post", 'medicenter')), array("type" => "textfield", "class" => "", "heading" => __("Header", 'medicenter'), "param_name" => "header", "value" => __("Online Appointment Form ", 'medicenter')), array("type" => "dropdown", "class" => "", "heading" => __("Display department select box", 'medicenter'), "param_name" => "department_select_box", "value" => array(__("yes", 'medicenter') => 1, __("no", 'medicenter') => 0)), array("type" => "dropdown", "class" => "", "heading" => __("Top margin", 'medicenter'), "param_name" => "top_margin", "value" => array(__("Page (small)", 'medicenter') => "page_margin_top", __("Section (large)", 'medicenter') => "page_margin_top_section", __("None", 'medicenter') => "none"))))); }
<?php $of_categories = array(); $of_categories_obj = get_categories('hide_empty=0'); foreach ($of_categories_obj as $of_cat) { $of_categories[$of_cat->cat_name] = $of_cat->cat_ID; } $of_tags = array(); $of_tags_obj = get_tags('hide_empty=0'); foreach ($of_tags_obj as $of_tag) { $of_tags[$of_tag->name] = $of_tag->name; } wpb_map(array("name" => __("Clear"), "base" => "clear", "class" => "", "icon" => "icon-wpb-clear", "category" => __('Effective Lab'))); wpb_map(array("name" => __("Video"), "base" => "video", "class" => "", "icon" => "icon-wpb-video", "category" => __('Effective Lab'), "params" => array(array("type" => "dropdown", "class" => "", "heading" => __("Select type"), "param_name" => "type", "value" => array('Vimeo' => 'vimeo', 'Youtube' => 'youtube'), "description" => __("Select video type.")), array("type" => "textfield", "class" => "", "heading" => __("Width"), "param_name" => "width", "value" => ''), array("type" => "textfield", "class" => "", "heading" => __("Height"), "param_name" => "height", "value" => ''), array("type" => "textfield", "class" => "", "heading" => __("Video ID"), "param_name" => "id", "value" => '')))); wpb_map(array("name" => __("Divide"), "base" => "divide", "class" => "", "icon" => "icon-wpb-divide", "category" => __('Effective Lab'), "params" => array(array("type" => "dropdown", "class" => "", "heading" => __("Select Style"), "param_name" => "style", "value" => array('Simple Line' => '', 'Fancy Line' => '2', 'Dots' => '3'))))); wpb_map(array("name" => __("Toggle"), "base" => "toggle", "class" => "", "icon" => "icon-wpb-toggle", "category" => __('Effective Lab'), "params" => array(array("type" => "dropdown", "class" => "", "heading" => __("Type"), "param_name" => "type", "value" => array('Framed' => '', 'Minimum' => 'min')), array("type" => "dropdown", "class" => "", "heading" => __("Style"), "param_name" => "style", "value" => array('Opened ' => '', 'Closed' => 'closed')), array("type" => "textfield", "class" => "", "heading" => __("Title"), "param_name" => "title", "value" => ''), array("type" => "textarea", "class" => "", "heading" => __("Content"), "param_name" => "content", "value" => '')))); wpb_map(array("name" => __("Bottom News Box"), "base" => "bottom_newsbox", "class" => "", "icon" => "icon-wpb-bnb", "category" => __('Effective Lab'), "params" => array(array("type" => "dropdown", "class" => "", "heading" => __("Category"), "param_name" => "cat", "value" => $of_categories)))); wpb_map(array("name" => __("News Box"), "base" => "newsbox", "class" => "", "icon" => "icon-wpb-nb", "category" => __('Effective Lab'), "params" => array(array("type" => "dropdown", "class" => "", "heading" => __("Style"), "param_name" => "style", "value" => array('Style1' => 'style1', 'Style2' => 'style2', 'Style3' => 'style3', 'Style4' => 'style4', 'Style5' => 'style5')), array("type" => "dropdown", "class" => "", "heading" => __("Display"), "param_name" => "display", "value" => array('Latest Posts' => 'latest', 'Category' => 'cat', 'Tag' => 'tag')), array("type" => "dropdown", "class" => "", "heading" => __("Category"), "param_name" => "cat", "value" => $of_categories), array("type" => "dropdown", "class" => "", "heading" => __("Tag"), "value" => $of_tags, "value" => ''), array("type" => "textfield", "class" => "", "heading" => __("Box Title"), "param_name" => "title", "value" => '', "description" => __("insert custom title just if you select display as latest posts.")), array("type" => "textfield", "class" => "", "heading" => __("Number of posts"), "param_name" => "posts", "value" => '')))); wpb_map(array("name" => __("Blog Post"), "base" => "blog", "class" => "", "icon" => "icon-wpb-blog", "category" => __('Effective Lab'), "params" => array(array("type" => "dropdown", "class" => "", "heading" => __("Style"), "param_name" => "style", "value" => array('Style1' => 'style1', 'Style2' => 'style2')), array("type" => "dropdown", "class" => "", "heading" => __("Display"), "param_name" => "display", "value" => array('Latest Posts' => 'latest', 'Category' => 'cat')), array("type" => "dropdown", "class" => "", "heading" => __("Category"), "param_name" => "cat", "value" => $of_categories), array("type" => "textfield", "class" => "", "heading" => __("Number of posts"), "param_name" => "posts", "value" => '')))); wpb_map(array("name" => __("Slider"), "base" => "slider", "class" => "", "icon" => "icon-wpb-slider", "category" => __('Effective Lab'), "params" => array(array("type" => "dropdown", "class" => "", "heading" => __("Type"), "param_name" => "type", "value" => array('Default' => 'def', 'Cycle' => 'cyc', 'Filex' => 'filex', 'Caro' => 'caro')), array("type" => "dropdown", "class" => "", "heading" => __("Display"), "param_name" => "display", "value" => array('Latest Posts' => 'lates', 'Category' => 'category', 'Tags' => 'tag')), array("type" => "dropdown", "class" => "", "heading" => __("Category"), "param_name" => "cat", "value" => $of_categories), array("type" => "dropdown", "class" => "", "heading" => __("Tags"), "param_name" => "tag", "value" => $of_tags), array("type" => "textfield", "class" => "", "heading" => __("Number of posts"), "param_name" => "count", "value" => '')))); wpb_map(array("name" => __("News Picture"), "base" => "newspicture", "class" => "", "icon" => "icon-wpb-nip", "category" => __('Effective Lab'), "params" => array(array("type" => "dropdown", "class" => "", "heading" => __("Style"), "param_name" => "style", "value" => array('Style1' => 'style1', 'Style2' => 'style2')), array("type" => "dropdown", "class" => "", "heading" => __("Display"), "param_name" => "display", "value" => array('Latest Posts' => 'latest', 'Category' => 'cat')), array("type" => "dropdown", "class" => "", "heading" => __("Category"), "param_name" => "cat", "value" => $of_categories), array("type" => "textfield", "class" => "", "heading" => __("Title"), "param_name" => "title", "value" => '', "description" => __("insert custom title just if you select display as latest posts.")), array("type" => "textfield", "class" => "", "heading" => __("Number of posts"), "param_name" => "count", "value" => '')))); wpb_map(array("name" => __("News Scroller"), "base" => "scroller", "class" => "", "icon" => "icon-wpb-scroll", "category" => __('Effective Lab'), "params" => array(array("type" => "dropdown", "class" => "", "heading" => __("Style"), "param_name" => "style", "value" => array('Style1' => 'style1', 'Style2' => 'style2')), array("type" => "dropdown", "class" => "", "heading" => __("Display"), "param_name" => "display", "value" => array('Latest Posts' => 'latest', 'Category' => 'cat', 'Tags' => 'tag')), array("type" => "dropdown", "class" => "", "heading" => __("Category"), "param_name" => "cat", "value" => $of_categories), array("type" => "dropdown", "class" => "", "heading" => __("Tags"), "param_name" => "tag", "value" => $of_tags), array("type" => "textfield", "class" => "", "heading" => __("Title"), "param_name" => "title", "value" => '', "description" => __("insert custom title just if you select display as latest posts.")), array("type" => "textfield", "class" => "", "heading" => __("Number of posts"), "param_name" => "posts", "value" => '')))); wpb_map(array("name" => __("Latest Videos"), "base" => "latestvideo", "class" => "", "icon" => "icon-wpb-lvideo", "category" => __('Effective Lab'), "params" => array(array("type" => "dropdown", "class" => "", "heading" => __("Order"), "param_name" => "order", "value" => array('Random' => 'rand', 'Popular' => 'comment_count', 'Latest' => '')), array("type" => "textfield", "class" => "", "heading" => __("Title"), "param_name" => "title", "value" => ''), array("type" => "textfield", "class" => "", "heading" => __("Number of posts"), "param_name" => "count", "value" => ''))));
function reg_cat_videos() { if (function_exists('wpb_map')) { wpb_map(array("name" => __("TM Categories videos", "js_composer"), "base" => "tm_cat_videos", "class" => "wpb_vc_posts_slider_widget", "category" => __('Content', 'js_composer'), "params" => array(array("type" => "dropdown", "heading" => __("Condition", "cactusthemes"), "param_name" => "condition", "value" => array(__("Latest", "cactusthemes") => 'latest', __("Most viewed", "cactusthemes") => 'most_viewed', __("Most liked", "cactusthemes") => 'likes', __("Most commented", "cactusthemes") => 'most_comments', __("Title", "js_composer") => "title", __("Modified", "js_composer") => "modified", __("Random", "js_composer") => "random"), "description" => __("Select condition", "cactusthemes")), array("type" => "textfield", "heading" => __("Posts count", "cactusthemes"), "param_name" => "count", "value" => "", "description" => __('How many count to show? Enter number .', "cactusthemes")), array("type" => "categories", "heading" => __("Categories", "cactusthemes"), "param_name" => "categories", "description" => __("Select Categories.", "cactusthemes")), array("type" => "textfield", "heading" => __("Extra class name", "js_composer"), "param_name" => "el_class", "value" => "", "description" => __("If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.", "js_composer")), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("CSS Animation", 'cactusthemes'), "param_name" => "animation", "value" => array(__("No", 'cactusthemes') => '', __("Top to bottom", 'cactusthemes') => 'top-to-bottom', __("Bottom to top", 'cactusthemes') => 'bottom-to-top', __("Left to right", 'cactusthemes') => 'left-to-right', __("Right to left", 'cactusthemes') => 'right-to-left', __("Appear from center", 'cactusthemes') => 'appear'), "description" => '')))); } }
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');
vc_remove_element("vc_wp_calendar"); vc_remove_element("vc_wp_pages"); vc_remove_element("vc_wp_tagcloud"); vc_remove_element("vc_wp_custommenu"); vc_remove_element("vc_wp_text"); vc_remove_element("vc_wp_posts"); vc_remove_element("vc_wp_links"); vc_remove_element("vc_wp_categories"); vc_remove_element("vc_wp_archives"); vc_remove_element("vc_wp_rss"); vc_add_param("vc_row", array("type" => "dropdown", "class" => "", "heading" => __("Row style", "vh"), "admin_label" => true, "param_name" => "type", "value" => array(__("Default", "vh") => "0", __("Full Width - White", "vh") => "1"), "description" => "")); // Gap vc_map(array("name" => __("Gap", "vh"), "base" => "vh_gap", "icon" => "icon-wpb-ui-gap-content", "class" => "vh_vc_sc_gap", "category" => __("by Seatera", "vh"), "params" => array(array("type" => "textfield", "class" => "", "heading" => __("Gap height", "vh"), "admin_label" => true, "param_name" => "height", "value" => "10", "description" => __("In pixels", "vh"))))); $colors_arr = array(__("Red", "vh") => "red", __("Blue", "vh") => "blue", __("Yellow", "vh") => "yellow", __("Green", "vh") => "green"); // Pricing table wpb_map(array("name" => __("Pricing Table", "vh"), "base" => "vh_pricing_table", "class" => "vh-pricing-tables-class", "icon" => "icon-wpb-ui-pricing_table-content", "category" => __("by Seatera", "vh"), "params" => array(array("type" => "dropdown", "heading" => __("Color", "vh"), "param_name" => "pricing_block_color", "value" => $colors_arr, "description" => __("Pricing block color.", "vh")), array("type" => "textfield", "heading" => __("Title", "vh"), "param_name" => "pricing_title", "value" => "", "description" => __("Please add offer title.", "vh")), array("type" => "textarea", "heading" => __("Description text 1", "vh"), "param_name" => "content1", "value" => "", "description" => __("Please add first part of your offer text.", "vh")), array("type" => "textarea_html", "heading" => __("Description text 2", "vh"), "param_name" => "content2", "value" => "", "description" => __("Please add second part of your offer text.", "vh")), array("type" => "textfield", "heading" => __("Price", "vh"), "param_name" => "price", "value" => "", "description" => __("Please add offer price.", "vh")), array("type" => "vc_link", "heading" => __("", "vh"), "param_name" => "button_link", "value" => "", "description" => __("Please add offer button link.", "vh")), array("type" => "textfield", "heading" => __("Extra class name", "vh"), "param_name" => "el_class", "value" => "", "description" => __("If you wish to style particular content element differently, then use this field to add a class name.", "vh"))))); // Update Buttons map $colors_arr = array(__("Transparent", "vh") => "btn-transparent", __("Blue", "vh") => "btn-primary", __("Light Blue", "vh") => "btn-info", __("Green", "vh") => "btn-success", __("Yellow", "vh") => "btn-warning", __("Red", "vh") => "btn-danger", __("Inverse", "vh") => "btn-inverse"); $icons_arr = array(__("None", "vh") => "none", __("Address book icon", "vh") => "wpb_address_book", __("Alarm clock icon", "vh") => "wpb_alarm_clock", __("Anchor icon", "vh") => "wpb_anchor", __("Application Image icon", "vh") => "wpb_application_image", __("Arrow icon", "vh") => "wpb_arrow", __("Asterisk icon", "vh") => "wpb_asterisk", __("Hammer icon", "vh") => "wpb_hammer", __("Balloon icon", "vh") => "wpb_balloon", __("Balloon Buzz icon", "vh") => "wpb_balloon_buzz", __("Balloon Facebook icon", "vh") => "wpb_balloon_facebook", __("Balloon Twitter icon", "vh") => "wpb_balloon_twitter", __("Battery icon", "vh") => "wpb_battery", __("Binocular icon", "vh") => "wpb_binocular", __("Document Excel icon", "vh") => "wpb_document_excel", __("Document Image icon", "vh") => "wpb_document_image", __("Document Music icon", "vh") => "wpb_document_music", __("Document Office icon", "vh") => "wpb_document_office", __("Document PDF icon", "vh") => "wpb_document_pdf", __("Document Powerpoint icon", "vh") => "wpb_document_powerpoint", __("Document Word icon", "vh") => "wpb_document_word", __("Bookmark icon", "vh") => "wpb_bookmark", __("Camcorder icon", "vh") => "wpb_camcorder", __("Camera icon", "vh") => "wpb_camera", __("Chart icon", "vh") => "wpb_chart", __("Chart pie icon", "vh") => "wpb_chart_pie", __("Clock icon", "vh") => "wpb_clock", __("Fire icon", "vh") => "wpb_fire", __("Heart icon", "vh") => "wpb_heart", __("Mail icon", "vh") => "wpb_mail", __("Play icon", "vh") => "wpb_play", __("Shield icon", "vh") => "wpb_shield", __("Video icon", "vh") => "wpb_video"); $target_arr = array(__("Same window", "vh") => "_self", __("New window", "vh") => "_blank"); $size_arr = array(__("Regular size", "vh") => "wpb_regularsize", __("Large", "vh") => "btn-large", __("Small", "vh") => "btn-small", __("Mini", "vh") => "btn-mini"); vc_map(array("name" => __("Button", "vh"), "base" => "vc_button", "icon" => "icon-wpb-ui-button", "category" => __('Content', 'vh'), "params" => array(array("type" => "textfield", "heading" => __("Text on the button", "vh"), "holder" => "button", "class" => "wpb_button", "param_name" => "title", "value" => __("Text on the button", "vh"), "description" => __("Text on the button.", "vh")), array("type" => "textfield", "heading" => __("URL (Link)", "vh"), "param_name" => "href", "description" => __("Button link.", "vh")), array("type" => "dropdown", "heading" => __("Target", "vh"), "param_name" => "target", "value" => $target_arr, "dependency" => array('element' => "href", 'not_empty' => true)), array("type" => "dropdown", "heading" => __("Color", "vh"), "param_name" => "color", "value" => $colors_arr, "description" => __("Button color.", "vh")), array("type" => "dropdown", "heading" => __("Icon", "vh"), "param_name" => "icon", "value" => $icons_arr, "description" => __("Button icon.", "vh")), array("type" => "dropdown", "heading" => __("Size", "vh"), "param_name" => "size", "value" => $size_arr, "description" => __("Button size.", "vh")), array("type" => "textfield", "heading" => __("Extra class name", "vh"), "param_name" => "el_class", "description" => __("If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.", "vh"))), "js_view" => 'VcButtonView')); $event_categorie = get_terms('event_categories', array('fields' => 'names')); foreach ($event_categorie as $value) { $event_categories[] = $value; } // Spotlight vc_map(array("name" => __("Spotlight", "vh"), "base" => "vh_spotlight", "class" => "", "icon" => "icon-wpb-ui-gap-content", "category" => __("by Seatera", "vh"), "params" => array(array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Title", "vh"), "param_name" => "spotlight_title", "value" => "", "description" => __("Enter title for this module.", "vh")), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Category", "vh"), "param_name" => "spot_category", "value" => "", "description" => __("Which category posts to show. Multiple categories separated with comma can be used.", "vh"))))); $offers_categorie = get_terms('offers_categories', array('fields' => 'names')); $offer_categories = array(); foreach ($offers_categorie as $value) {
$output .= "\n\t\t" . '<div class="textslider-slides wpb_text_column">'; $output .= "\n\t\t\t" . wpb_js_remove_wpautop($content); $output .= "\n\t\t" . '</div>'; if ($navigation == "enable") { $output .= '<div class="slidernav-left">'; $output .= '<div class="slidernav">'; $output .= '<a class="poststage-prev nav-prev"></a>'; $output .= '</div>'; $output .= '</div>'; $output .= '<div class="slidernav-right">'; $output .= '<div class="slidernav">'; $output .= '<a class="poststage-next nav-next"></a>'; $output .= '</div>'; $output .= '</div>'; } $output .= "\n\t" . '</div>'; $output = $this->startRow($el_position) . $output . $this->endRow($el_position); 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_register_script('acoda-textslider', get_template_directory_uri() . '/js/text-slider.min.js', false, array('jquery-cycle'), true); wp_enqueue_script('acoda-textslider'); return $output; } } } /* ------------------------------------ :: TESTIMONIALS MAP ------------------------------------*/ wpb_map(array("name" => __("Text Slider", "js_composer"), "base" => "textslider", "show_settings_on_create" => false, "content_element" => true, "as_parent" => array('only' => 'textslide'), "category" => __('Content', 'js_composer'), "params" => array(array("type" => "dropdown", "heading" => __("Width", "js_composer"), "param_name" => "width", "value" => array(__('100%', "js_composer") => 'width_100', __('75%', "js_composer") => 'width_75', __('50%', "js_composer") => 'width_50')), array("type" => "dropdown", "heading" => __("Effect", "js_composer"), "param_name" => "effect", "value" => array(__('Slide', "js_composer") => 'scrollHorz', __('Fade', "js_composer") => 'fade')), array("type" => "dropdown", "heading" => __("Auto-Slide", "js_composer"), "param_name" => "timeout", "value" => array(__('5 Seconds', "js_composer") => '5000', __('10 Seconds', "js_composer") => '10000', __('20 Seconds', "js_composer") => '20000', __('30 Seconds', "js_composer") => '30000', __('Disable', "js_composer") => '-1')), array("type" => "dropdown", "heading" => __("Navigation", "js_composer"), "param_name" => "navigation", "value" => array(__('Disable', "js_composer") => 'disable', __('Enable', "js_composer") => 'enable')), array("type" => "textfield", "heading" => __("Extra class name", "js_composer"), "param_name" => "el_class", "value" => "", "description" => __("Add custom CSS classes to the above field.", "js_composer"))), "js_view" => 'VcColumnView')); wpb_map(array("name" => __("Text Slide", "js_composer"), "base" => "textslide", "content_element" => true, "as_child" => array('only' => 'textslider'), "params" => array(array("type" => "textarea_html", "holder" => "div", "heading" => __("Content", "js_composer"), "param_name" => "content", "value" => ""))));
function mpcth_wpb_map_on_init() { $add_css_animation = array("type" => "dropdown", "heading" => __("CSS Animation", "js_composer"), "param_name" => "css_animation", "admin_label" => true, "value" => array(__("No", "js_composer") => '', __("Top to bottom", "js_composer") => "top-to-bottom", __("Bottom to top", "js_composer") => "bottom-to-top", __("Left to right", "js_composer") => "left-to-right", __("Right to left", "js_composer") => "right-to-left", __("Appear from center", "js_composer") => "appear"), "description" => __("Select animation type if you want this element to be animated when it enters into the browsers viewport. Note: Works only in modern browsers.", "js_composer")); if (function_exists('wpb_map')) { wpb_map(array('name' => __('Testimonial Slider', 'mpcth'), 'base' => 'mpc_testimonial_slider', 'class' => 'mpcth-vs-sc-block', 'icon' => 'icon-wpb-testimonial', 'category' => __('Content', 'mpcth'), 'params' => array(array('type' => 'dropdown', 'heading' => __('Subject', 'mpcth'), 'param_name' => 'subject', 'value' => mpcth_get_testimonial_subjects(), 'admin_label' => true, 'description' => __('Select testimonial subject to display.', 'mpcth')), array('type' => 'dropdown', 'heading' => __('Display Type', 'mpcth'), 'param_name' => 'type', 'value' => array('Text' => 'text', 'Image + Text' => 'image'), 'admin_label' => true, 'description' => __('Select testimonial display type.', 'mpcth')), array('type' => 'textfield', 'heading' => __('Slide Delay', 'mpcth'), 'param_name' => 'delay', 'value' => 5000, 'admin_label' => true, 'description' => __('Set slider delay in miliseconde.', 'mpcth')), $add_css_animation))); } }
{ extract(shortcode_atts(array("url" => "blog", "title" => __("Show all →", 'medicenter')), $atts)); return '<div class="show_all clearfix"><a href="' . $url . '" title="' . esc_attr($title) . '">' . $title . '</a></div>'; } add_shortcode("show_all_button", "theme_show_all_button"); //visual composer wpb_map(array("name" => __("Show all button", 'medicenter'), "base" => "show_all_button", "class" => "", "controls" => "full", "show_settings_on_create" => true, "icon" => "icon-wpb-layer-shape-text", "category" => __('MediCenter', 'medicenter'), "params" => array(array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Title", 'medicenter'), "param_name" => "title", "value" => __("Show all →", 'medicenter')), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Url", 'medicenter'), "param_name" => "url", "value" => "blog")))); //sentence function theme_sentence($atts) { extract(shortcode_atts(array("title" => "Sample Sentence Text", "author" => ""), $atts)); return '<h3 class="sentence">' . do_shortcode($title) . '</h3>' . ($author != "" ? '<div class="clearfix"><span class="sentence_author">' . $author . '</span></div>' : ''); } add_shortcode("sentence", "theme_sentence"); //visual composer wpb_map(array("name" => __("Sentence", 'medicenter'), "base" => "sentence", "class" => "", "controls" => "full", "show_settings_on_create" => true, "icon" => "icon-wpb-layer-sentence", "category" => __('MediCenter', 'medicenter'), "params" => array(array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Title", 'medicenter'), "param_name" => "title", "value" => "Sample Sentence Text"), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Author", 'medicenter'), "param_name" => "author", "value" => "")))); //sidebar box function theme_sidebar_box($atts, $content) { extract(shortcode_atts(array("first" => false), $atts)); return '<div class="sidebar_box' . ($first ? ' first' : '') . '">' . do_shortcode($content) . '</div>'; } add_shortcode("sidebar_box", "theme_sidebar_box"); //scroll top function theme_scroll_top($atts, $content) { extract(shortcode_atts(array("title" => "Scroll to top", "label" => "Top"), $atts)); return '<a class="scroll_top icon_small_arrow top_white" href="#top" title="' . esc_attr($title) . '">' . esc_attr($label) . '</a>'; } add_shortcode("scroll_top", "theme_scroll_top"); //box_header
<?php /*----------------------------------------------------------------------------* * Compatibility for Visual Composer Plugin *----------------------------------------------------------------------------*/ if (defined('WPB_VC_VERSION')) { wpb_map(array('name' => __('Master Slider', MSWP_TEXT_DOMAIN), 'base' => 'masterslider_pb', 'class' => '', 'controls' => 'full', 'icon' => 'icon-vc-msslider-el', 'category' => __('Content', MSWP_TEXT_DOMAIN), 'description' => __('Add Master Slider', MSWP_TEXT_DOMAIN), 'params' => array(array('type' => 'textfield', 'heading' => __('Title ', MSWP_TEXT_DOMAIN), 'param_name' => 'title', 'value' => '', 'description' => __('What text use as slider title. Leave blank if no title is needed', MSWP_TEXT_DOMAIN)), array('type' => 'dropdown', 'heading' => __('Master Slider', MSWP_TEXT_DOMAIN), 'param_name' => 'id', 'value' => get_masterslider_names(false), 'description' => __('Select slider from list', MSWP_TEXT_DOMAIN)), array('type' => 'textfield', 'heading' => __('Extra CSS Class Name', MSWP_TEXT_DOMAIN), 'param_name' => 'class', 'value' => '', 'description' => __('If you wish to style particular element differently, then use this field to add a class name and then refer to it in your css file.', MSWP_TEXT_DOMAIN))))); } /*----------------------------------------------------------------------------*/
{ extract(shortcode_atts(array("url" => "blog", "title" => __("Show all →", 'medicenter')), $atts)); return '<div class="show_all clearfix"><a href="' . $url . '" title="' . esc_attr($title) . '">' . $title . '</a></div>'; } add_shortcode("show_all_button", "theme_show_all_button"); //visual composer wpb_map(array("name" => __("Show all button", 'medicenter'), "base" => "show_all_button", "class" => "", "controls" => "full", "show_settings_on_create" => true, "icon" => "icon-wpb-layer-shape-text", "category" => __('MediCenter', 'medicenter'), "params" => array(array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Title", 'medicenter'), "param_name" => "title", "value" => __("Show all →", 'medicenter')), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Url", 'medicenter'), "param_name" => "url", "value" => "blog")))); //sentence function theme_sentence($atts) { extract(shortcode_atts(array("title" => "Sample Sentence Text", "author" => "", "title_animation" => "", "title_animation_duration" => 600, "title_animation_delay" => 0, "author_animation" => "", "author_animation_duration" => 600, "author_animation_delay" => 0), $atts)); return '<h3 class="sentence' . ($title_animation != '' ? ' animated_element animation-' . $title_animation . ((int) $title_animation_duration > 0 && (int) $title_animation_duration != 600 ? ' duration-' . (int) $title_animation_duration : '') . ((int) $title_animation_delay > 0 ? ' delay-' . (int) $title_animation_delay : '') : '') . '">' . do_shortcode($title) . '</h3>' . ($author != "" ? '<div class="clearfix"><span class="sentence_author' . ($author_animation != '' ? ' animated_element animation-' . $author_animation . ((int) $author_animation_duration > 0 && (int) $author_animation_duration != 600 ? ' duration-' . (int) $author_animation_duration : '') . ((int) $author_animation_delay > 0 ? ' delay-' . (int) $author_animation_delay : '') : '') . '">' . $author . '</span></div>' : ''); } add_shortcode("sentence", "theme_sentence"); //visual composer wpb_map(array("name" => __("Sentence", 'medicenter'), "base" => "sentence", "class" => "", "controls" => "full", "show_settings_on_create" => true, "icon" => "icon-wpb-layer-sentence", "category" => __('MediCenter', 'medicenter'), "params" => array(array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Title", 'medicenter'), "param_name" => "title", "value" => "Sample Sentence Text"), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Author", 'medicenter'), "param_name" => "author", "value" => ""), array("type" => "dropdown", "heading" => __("Title animation", "js_composer"), "param_name" => "title_animation", "value" => array(__("none", "medicenter") => "", __("fade in", "medicenter") => "fadeIn", __("scale", "medicenter") => "scale", __("slide right", "medicenter") => "slideRight", __("slide right 200%", "medicenter") => "slideRight200", __("slide left", "medicenter") => "slideLeft", __("slide left 50%", "medicenter") => "slideLeft50", __("slide down", "medicenter") => "slideDown", __("slide down 200%", "medicenter") => "slideDown200", __("slide up", "medicenter") => "slideUp")), array("type" => "textfield", "class" => "", "heading" => __("Title animation duration", 'medicenter'), "param_name" => "title_animation_duration", "value" => "600"), array("type" => "textfield", "class" => "", "heading" => __("Title animation delay", 'medicenter'), "param_name" => "title_animation_delay", "value" => "0"), array("type" => "dropdown", "heading" => __("Author animation", "js_composer"), "param_name" => "author_animation", "value" => array(__("none", "medicenter") => "", __("fade in", "medicenter") => "fadeIn", __("scale", "medicenter") => "scale", __("slide right", "medicenter") => "slideRight", __("slide right 200%", "medicenter") => "slideRight200", __("slide left", "medicenter") => "slideLeft", __("slide left 50%", "medicenter") => "slideLeft50", __("slide down", "medicenter") => "slideDown", __("slide down 200%", "medicenter") => "slideDown200", __("slide up", "medicenter") => "slideUp")), array("type" => "textfield", "class" => "", "heading" => __("Author animation duration", 'medicenter'), "param_name" => "author_animation_duration", "value" => "600"), array("type" => "textfield", "class" => "", "heading" => __("Author animation delay", 'medicenter'), "param_name" => "author_animation_delay", "value" => "0")))); //sidebar box function theme_sidebar_box($atts, $content) { extract(shortcode_atts(array("first" => false), $atts)); return '<div class="sidebar_box' . ($first ? ' first' : '') . '">' . do_shortcode($content) . '</div>'; } add_shortcode("sidebar_box", "theme_sidebar_box"); //scroll top function theme_scroll_top($atts, $content) { extract(shortcode_atts(array("title" => "¡Vamos!, sube", "label" => "sube"), $atts)); return '<a class="scroll_top icon_small_arrow top_white" href="#top" title="' . esc_attr($title) . '">' . esc_attr($label) . '</a>'; } add_shortcode("scroll_top", "theme_scroll_top"); //box_header
function theme_timetable_vc_init() { //get departments list $departments_list = get_posts(array('posts_per_page' => -1, 'orderby' => 'menu_order', 'order' => 'ASC', 'post_type' => 'departments')); $departments_array = array(); $departments_array[__("All", 'medicenter')] = "-"; foreach ($departments_list as $department) { $departments_array[$department->post_title . " (id:" . $department->ID . ")"] = $department->post_name; } //get departments categories list /*$departments_categories = get_terms("departments_category"); $departments_categories_array = array(); $departments_categories_array[__("All", 'medicenter')] = "-"; foreach($departments_categories as $departments_category) $departments_categories_array[$departments_category->name] = $departments_category->slug;*/ //get all pages $pages_list = get_posts(array('posts_per_page' => -1, 'orderby' => 'title', 'order' => 'ASC', 'post_type' => 'page')); $pages_array = array(); foreach ($pages_list as $page) { $pages_array[$page->post_title . " (id:" . $page->ID . ")"] = $page->ID; } //get all hour categories global $wpdb; global $blog_id; $query = "SELECT distinct(category) AS category FROM " . $wpdb->prefix . "department_hours AS t1\n\t\t\tLEFT JOIN {$wpdb->posts} AS t2 ON t1.department_id=t2.ID \n\t\t\tWHERE \n\t\t\tt2.post_type='departments'\n\t\t\tAND t2.post_status='publish'\n\t\t\tAND category<>''"; $hour_categories = $wpdb->get_results($query); $hour_categories_array = array(); $hour_categories_array[__("All", 'medicenter')] = "-"; foreach ($hour_categories as $hour_category) { $hour_categories_array[$hour_category->category] = $hour_category->category; } wpb_map(array("name" => __("Timetable", 'medicenter'), "base" => "timetable", "class" => "", "controls" => "full", "show_settings_on_create" => true, "icon" => "icon-wpb-layer-timetable", "category" => __('MediCenter', 'medicenter'), "params" => array(array("type" => "dropdownmulti", "class" => "", "heading" => __("Display selected", 'medicenter'), "param_name" => "department", "value" => $departments_array), array("type" => "dropdown", "class" => "", "heading" => __("Mode", 'medicenter'), "param_name" => "mode", "value" => array(__("24h (military time)", 'medicenter') => "24h", __("12h (am/pm)", 'medicenter') => "12h")), array("type" => "dropdownmulti", "class" => "", "heading" => __("Display from hour category", 'medicenter'), "param_name" => "hour_category", "value" => $hour_categories_array), array("type" => "dropdown", "class" => "", "heading" => __("Order by", 'medicenter'), "param_name" => "order_by", "value" => array(__("Title, menu order", 'medicenter') => "title,menu_order", __("Menu order", 'medicenter') => "menu_order")), array("type" => "dropdown", "class" => "", "heading" => __("Order", 'medicenter'), "param_name" => "order", "value" => array(__("ascending", 'medicenter') => "ASC", __("descending", 'medicenter') => "DESC")), array("type" => "dropdown", "class" => "", "heading" => __("Departments page", 'medicenter'), "param_name" => "departments_page", "value" => $pages_array), array("type" => "dropdown", "class" => "", "heading" => __("Filter style", 'medicenter'), "param_name" => "filter_style", "value" => array(__("dropdown list", 'medicenter') => "dropdown_list", __("tabs", 'medicenter') => "tabs")), array("type" => "textfield", "class" => "", "heading" => __("Filter title", 'medicenter'), "param_name" => "filter_title", "value" => __("All Departments", 'medicenter')), array("type" => "dropdown", "class" => "", "heading" => __("Top margin", 'medicenter'), "param_name" => "top_margin", "value" => array(__("Section (large)", 'medicenter') => "page_margin_top_section", __("Page (small)", 'medicenter') => "page_margin_top", __("None", 'medicenter') => "none"))))); }
$output .= '<input type="hidden" class="wpb_vc_param_value ' . $param_name . ' ' . $type . ' ' . $class . '" name="' . $param_name . '" value="'.$value.'" />'; } else { $output .= '<'.$param['holder'].' class="wpb_vc_param_value ' . $param_name . ' ' . $type . ' ' . $class . '" name="' . $param_name . '">'.$value.'</'.$param['holder'].'>'; } if($param_name == 'carousel_images') { $output .= "<span>" . print_r($value, true) . "</span>"; $images_ids = empty($value) ? array() : explode(',', trim($value)); $output .= '<ul class="attachment-thumbnails'.( empty($images_ids) ? ' image-exists' : '' ).'">'; foreach($images_ids as $image) { $img = wpb_getImageBySize(array( 'attach_id' => (int)$image, 'thumb_size' => $themename . '-small-thumb' )); $output .= ( $img ? '<li>'.$img['thumbnail'].'</li>' : '<li><img width="150" height="150" test="'.$image.'" src="' . WPBakeryVisualComposer::getInstance()->assetURL('vc/blank.gif') . '" class="attachment-thumbnail" alt="" title="" /></li>'); } $output .= '</ul>'; $output .= '<a href="#" class="column_edit_trigger' . ( !empty($images_ids) ? ' image-exists' : '' ) . '">' . __( 'Add images', 'js_composer' ) . '</a>'; } return $output;*/ } } $params = array(array("type" => "textfield", "class" => "", "heading" => __("Id", 'medicenter'), "param_name" => "id", "value" => "carousel", "description" => __("Please provide unique id for each carousel on the same page/post", 'medicenter')), array("type" => "textfield", "class" => "", "heading" => __("Header", 'medicenter'), "param_name" => "header", "value" => ""), array("type" => "dropdown", "class" => "", "heading" => __("Header border animation", 'medicenter'), "param_name" => "animation", "value" => array(__("no", 'medicenter') => 0, __("yes", 'medicenter') => 1)), array("type" => "attach_images", "class" => "", "heading" => __("Images", 'medicenter'), "param_name" => "carousel_images", "value" => "")); for ($i = 0; $i < 30; $i++) { $params[] = array("type" => "textfield", "heading" => __("Video url", 'medicenter') . " " . ($i + 1), "param_name" => "video_url" . $i, "value" => "", "description" => __('For Vimeo please use http://player.vimeo.com/video/%video_id% For YouTube: http://youtube.com/embed/%video_id%', 'medicenter')); $params[] = array("type" => "textfield", "class" => "", "heading" => __("Iframe url", 'medicenter') . " " . ($i + 1), "param_name" => "iframe_url" . $i, "value" => ""); $params[] = array("type" => "textfield", "class" => "", "heading" => __("External url", 'medicenter') . " " . ($i + 1), "param_name" => "external_url" . $i, "value" => ""); $params[] = array("type" => "textfield", "class" => "", "heading" => __("Image title", 'medicenter') . " " . ($i + 1), "param_name" => "image_title" . $i, "value" => ""); $params[] = array("type" => "textfield", "class" => "", "heading" => __("Image subtitle", 'medicenter') . " " . ($i + 1), "param_name" => "image_subtitle" . $i, "value" => ""); } $params = array_merge($params, array(array("type" => "dropdown", "class" => "", "heading" => __("Lightbox images loop", 'medicenter'), "param_name" => "features_images_loop", "value" => array(__("Yes", 'medicenter') => 1, __("No", 'medicenter') => 0), "dependency" => array('element' => "images", 'not_empty' => true)), array("type" => "dropdown", "class" => "", "heading" => __("Lightbox icon color", 'medicenter'), "param_name" => "lightbox_icon_color", "value" => array(__("light blue", 'medicenter') => 'blue_light', __("dark blue", 'medicenter') => 'blue_dark', __("blue", 'medicenter') => 'blue', __("black", 'medicenter') => 'black', __("gray", 'medicenter') => 'gray', __("dark gray", 'medicenter') => 'gray_dark', __("light gray", 'medicenter') => 'gray_light', __("green", 'medicenter') => 'green', __("dark green", 'medicenter') => 'green_dark', __("light green", 'medicenter') => 'green_light', __("orange", 'medicenter') => 'orange', __("dark orange", 'medicenter') => 'orange_dark', __("light orange", 'medicenter') => 'orange_light', __("red", 'medicenter') => 'red', __("dark red", 'medicenter') => 'red_dark', __("light red", 'medicenter') => 'red_light', __("turquoise", 'medicenter') => 'turquoise', __("dark turquoise", 'medicenter') => 'turquoise_dark', __("light turquoise", 'medicenter') => 'turquoise_light', __("violet", 'medicenter') => 'violet', __("dark violet", 'medicenter') => 'violet_dark', __("light violet", 'medicenter') => 'violet_light', __("white", 'medicenter') => 'white', __("yellow", 'medicenter') => 'yellow')), array("type" => "dropdown", "class" => "", "heading" => __("Autoplay", 'medicenter'), "param_name" => "autoplay", "value" => array(__("No", 'medicenter') => 0, __("Yes", 'medicenter') => 1)), array("type" => "dropdown", "class" => "", "heading" => __("Pause on hover", 'medicenter'), "param_name" => "pause_on_hover", "value" => array(__("Yes", 'medicenter') => 1, __("No", 'medicenter') => 0), "dependency" => array('element' => "autoplay", 'value' => '1')), array("type" => "textfield", "class" => "", "heading" => __("Scroll", 'medicenter'), "param_name" => "scroll", "value" => 1, "description" => __("Number of items to scroll in one step", 'medicenter')), array("type" => "dropdown", "class" => "", "heading" => __("Effect", 'medicenter'), "param_name" => "effect", "value" => array(__("scroll", 'medicenter') => "scroll", __("none", 'medicenter') => "none", __("directscroll", 'medicenter') => "directscroll", __("fade", 'medicenter') => "_fade", __("crossfade", 'medicenter') => "crossfade", __("cover", 'medicenter') => "cover", __("uncover", 'medicenter') => "uncover")), array("type" => "dropdown", "class" => "", "heading" => __("Sliding easing", 'medicenter'), "param_name" => "easing", "value" => array(__("swing", 'medicenter') => "swing", __("linear", 'medicenter') => "linear", __("easeInQuad", 'medicenter') => "easeInQuad", __("easeOutQuad", 'medicenter') => "easeOutQuad", __("easeInOutQuad", 'medicenter') => "easeInOutQuad", __("easeInCubic", 'medicenter') => "easeInCubic", __("easeOutCubic", 'medicenter') => "easeOutCubic", __("easeInOutCubic", 'medicenter') => "easeInOutCubic", __("easeInQuart", 'medicenter') => "easeInQuart", __("easeOutQuart", 'medicenter') => "easeOutQuart", __("easeInOutQuart", 'medicenter') => "easeInOutQuart", __("easeInSine", 'medicenter') => "easeInSine", __("easeOutSine", 'medicenter') => "easeOutSine", __("easeInOutSine", 'medicenter') => "easeInOutSine", __("easeInExpo", 'medicenter') => "easeInExpo", __("easeOutExpo", 'medicenter') => "easeOutExpo", __("easeInOutExpo", 'medicenter') => "easeInOutExpo", __("easeInQuint", 'medicenter') => "easeInQuint", __("easeOutQuint", 'medicenter') => "easeOutQuint", __("easeInOutQuint", 'medicenter') => "easeInOutQuint", __("easeInCirc", 'medicenter') => "easeInCirc", __("easeOutCirc", 'medicenter') => "easeOutCirc", __("easeInOutCirc", 'medicenter') => "easeInOutCirc", __("easeInElastic", 'medicenter') => "easeInElastic", __("easeOutElastic", 'medicenter') => "easeOutElastic", __("easeInOutElastic", 'medicenter') => "easeInOutElastic", __("easeInBack", 'medicenter') => "easeInBack", __("easeOutBack", 'medicenter') => "easeOutBack", __("easeInOutBack", 'medicenter') => "easeInOutBack", __("easeInBounce", 'medicenter') => "easeInBounce", __("easeOutBounce", 'medicenter') => "easeOutBounce", __("easeInOutBounce", 'medicenter') => "easeInOutBounce")), array("type" => "textfield", "class" => "", "heading" => __("Sliding transition speed (ms)", 'medicenter'), "param_name" => "duration", "value" => 500), array("type" => "dropdown", "class" => "", "heading" => __("Top margin", 'medicenter'), "param_name" => "top_margin", "value" => array(__("Section (large)", 'medicenter') => "page_margin_top_section", __("Page (small)", 'medicenter') => "page_margin_top", __("None", 'medicenter') => "none")))); wpb_map(array("name" => __("Carousel", 'medicenter'), "base" => "mc_carousel", "class" => "", "controls" => "full", "show_settings_on_create" => true, "icon" => "icon-wpb-layer-carousel", "category" => __('MediCenter', 'medicenter'), "params" => $params));
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');
<?php function theme_announcement_box_shortcode($atts, $content) { extract(shortcode_atts(array("header" => "", "button_label" => "", "button_url" => "#", "button_size" => "medium", "button_color" => "", "button_custom_color" => "", "button_hover_color" => "", "button_hover_custom_color" => "", "button_text_color" => "", "button_hover_text_color" => "", "top_margin" => "page_margin_top_section"), $atts)); $button_color = $button_custom_color != "" ? $button_custom_color : $button_color; $button_hover_color = $button_hover_custom_color != "" ? $button_hover_custom_color : $button_hover_color; $output = '<div class="announcement clearfix' . ($top_margin != "none" ? ' ' . $top_margin : '') . '"> <ul class="columns no_width"> <li class="column_left">' . ($header != "" ? '<h1>' . $header . '</h3>' : '') . wpb_js_remove_wpautop(apply_filters('the_content', $content)) . '</li>'; if ($button_label != "") { $output .= '<li class="column_right"> <div class="vertical_align"> <div class="vertical_align_cell"> <a' . ($button_color != "" || $button_text_color != "" ? ' style="' . ($button_color != "" ? 'background-color:' . $button_color . ';border-color:' . $button_color . ';' : '') . ($button_text_color != "" ? 'color:' . $button_text_color . ';' : '') . '"' : '') . ($button_hover_color != "" || $button_hover_text_color != "" ? ' onMouseOver="' . ($button_hover_color != "" ? 'this.style.backgroundColor=\'' . $button_hover_color . '\';this.style.borderColor=\'' . $button_hover_color . '\';' : '') . ($button_hover_text_color != "" ? 'this.style.color=\'' . $button_hover_text_color . '\';' : '') . '" onMouseOut="' . ($button_hover_color != "" ? 'this.style.backgroundColor=\'' . $button_color . '\';this.style.borderColor=\'' . $button_color . '\';' : '') . ($button_hover_text_color != "" ? 'this.style.color=\'' . $button_text_color . '\';' : '') . '"' : '') . ' title="' . esc_attr($button_label) . '" href="' . esc_attr($button_url) . '" class="more mc_button' . ' ' . $button_size . '">' . $button_label . '</a> </div> </div> </li>'; } $output .= '</ul> </div>'; return $output; } add_shortcode("announcement_box", "theme_announcement_box_shortcode"); //visual composer $mc_colors_arr = array(__("Dark blue", "js_composer") => "#3156a3", __("Blue", "js_composer") => "#0384ce", __("Light blue", "js_composer") => "#42b3e5", __("Black", "js_composer") => "#000000", __("Gray", "js_composer") => "#AAAAAA", __("Dark gray", "js_composer") => "#444444", __("Light gray", "js_composer") => "#CCCCCC", __("Green", "js_composer") => "#43a140", __("Dark green", "js_composer") => "#008238", __("Light green", "js_composer") => "#7cba3d", __("Orange", "js_composer") => "#f17800", __("Dark orange", "js_composer") => "#cb451b", __("Light orange", "js_composer") => "#ffa800", __("Red", "js_composer") => "#db5237", __("Dark red", "js_composer") => "#c03427", __("Light red", "js_composer") => "#f37548", __("Turquoise", "js_composer") => "#0097b5", __("Dark turquoise", "js_composer") => "#006688", __("Turquoise", "js_composer") => "#00b6cc", __("Light turquoise", "js_composer") => "#00b6cc", __("Violet", "js_composer") => "#6969b3", __("Dark violet", "js_composer") => "#3e4c94", __("Light violet", "js_composer") => "#9187c4", __("White", "js_composer") => "#FFFFFF", __("Yellow", "js_composer") => "#fec110"); wpb_map(array("name" => __("Announcement box", 'medicenter'), "base" => "announcement_box", "class" => "", "controls" => "full", "show_settings_on_create" => true, "icon" => "icon-wpb-layer-announcement-box", "category" => __('MediCenter', 'medicenter'), "params" => array(array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Header", 'medicenter'), "param_name" => "header", "value" => ""), array("type" => "textarea_html", "holder" => "div", "class" => "", "heading" => __("Content", 'medicenter'), "param_name" => "content", "value" => ""), array("type" => "textfield", "class" => "", "heading" => __("Button label", 'medicenter'), "param_name" => "button_label", "value" => ""), array("type" => "textfield", "class" => "", "heading" => __("Button url", 'medicenter'), "param_name" => "button_url", "value" => ""), array("type" => "dropdown", "class" => "", "heading" => __("Button size", 'medicenter'), "param_name" => "button_size", "value" => array(__("Medium", 'medicenter') => "medium", __("Tiny", 'medicenter') => "tiny", __("Small", 'medicenter') => "small", __("Large", 'medicenter') => "large")), array("type" => "dropdown", "heading" => __("Button color", "js_composer"), "param_name" => "button_color", "value" => $mc_colors_arr), array("type" => "colorpicker", "holder" => "div", "class" => "", "heading" => __("or pick custom button color", 'medicenter'), "param_name" => "button_custom_color", "value" => ""), array("type" => "dropdown", "heading" => __("Button hover Color", "js_composer"), "param_name" => "button_hover_color", "value" => $mc_colors_arr), array("type" => "colorpicker", "holder" => "div", "class" => "", "heading" => __("or pick custom button hover color", 'medicenter'), "param_name" => "button_hover_custom_color", "value" => ""), array("type" => "colorpicker", "holder" => "div", "class" => "", "heading" => __("Button text color", 'medicenter'), "param_name" => "button_text_color", "value" => "#FFFFFF"), array("type" => "colorpicker", "holder" => "div", "class" => "", "heading" => __("Button Hover text color", 'medicenter'), "param_name" => "button_hover_text_color", "value" => "#FFFFFF"), array("type" => "dropdown", "class" => "", "heading" => __("Top margin", 'medicenter'), "param_name" => "top_margin", "value" => array(__("Section (large)", 'medicenter') => "page_margin_top_section", __("Page (small)", 'medicenter') => "page_margin_top", __("None", 'medicenter') => "none")))));
wpb_map( array( "base" => "rev_slider_vc", "name" => __("Revolution Slider", "js_composer"), "class" => "", "icon" => "icon-wpb-revslider", "category" => __('Content', 'js_composer'), "params" => array( array( "type" => "textfield", "heading" => __("Widget title", "js_composer"), "param_name" => "title", "value" => "", "description" => __("What text use as widget title. Leave blank if no title is needed.", "js_composer") ), array( "type" => "dropdown", "heading" => __("Revolution Slider ", "js_composer"), "param_name" => "alias", "admin_label" => true, "value" => $revsliders, "description" => __("Select your Revolution Slider.", "js_composer") ), array( "type" => "textfield", "heading" => __("Extra class name", "js_composer"), "param_name" => "el_class", "value" => "", "description" => __("If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.", "js_composer") ) ) ) );