} else { if ($cs_node->getName() == "team") { $cs_counter_node++; get_template_part('page_team', 'page'); } elseif ($cs_node->getName() == "accordions") { $cs_counter_node++; cs_accordions_page(); } elseif ($cs_node->getName() == "tabs") { $cs_counter_node++; echo cs_tabs_page(); } elseif ($cs_node->getName() == "services") { $cs_counter_node++; cs_services_page(); } elseif ($cs_node->getName() == "video") { $cs_counter_node++; echo cs_video_page(); } elseif ($cs_node->getName() == "quote") { $cs_counter_node++; echo cs_quote_page(); } elseif ($cs_node->getName() == "column") { $cs_counter_node++; cs_column_page(); } elseif ($cs_node->getName() == "map") { $cs_counter_node++; echo cs_map_page(); } elseif ($cs_node->getName() == "parallax") { $cs_counter_node++; get_template_part('page_parallax', 'page'); } } }
function cs_shortcode_pb_video($atts, $content = "") { global $cs_node; if (!isset($atts['url'])) { $atts['url'] = ''; } if (!isset($atts['width'])) { $atts['width'] = ''; } if (!isset($atts['height'])) { $atts['height'] = ''; } $cs_node = new stdClass(); $cs_node->video_element_size = ''; $cs_node->video_url = $atts['url']; $cs_node->video_width = $atts['width']; $cs_node->video_height = $atts['height']; return cs_video_page(); }