本文整理汇总了PHP中do_shortcode函数的典型用法代码示例。如果您正苦于以下问题:PHP do_shortcode函数的具体用法?PHP do_shortcode怎么用?PHP do_shortcode使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了do_shortcode函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: pricetable
/**
*
*/
public static function pricetable($atts, $content = null, $code = null)
{
if ($atts == 'generator') {
global $wpdb;
$prices_list = array();
$pricetables = $wpdb->get_results('SELECT ID, post_title FROM ' . $wpdb->posts . ' WHERE post_type = "pricetable"');
if (is_array($pricetables)) {
foreach ($pricetables as $key => $value) {
$prices_list[$value->ID] = $pricetables[$key]->post_title;
}
} else {
$price_list[0] = __('Please install Price Table plugin...', MISS_ADMIN_TEXTDOMAIN);
}
$option = array('name' => __('Blog Grid Layout', MISS_ADMIN_TEXTDOMAIN), 'value' => 'pricetable', 'options' => array(array('name' => __('Select Table', MISS_ADMIN_TEXTDOMAIN), 'desc' => __('Choose "Pricing Table" to use.', MISS_ADMIN_TEXTDOMAIN), 'id' => 'id', 'type' => 'select', 'options' => $prices_list), 'shortcode_has_atts' => true));
return $option;
}
extract(shortcode_atts(array('id' => ''), $atts));
$pricetable = new WP_Query();
$pricetable->query(array('post_type' => 'pricetable', 'post_id' => $id));
while ($pricetable->have_posts()) {
$pricetable->the_post();
$prices_list[get_the_ID()] = get_the_title();
$out = '[price_table id="' . $id . '"]';
}
return do_shortcode($out);
}
示例2: do_shortcode
public function test_languageがEnglishならHello()
{
// ショートコードを実行して結果を取得
$greeting = do_shortcode('[greeting language="english"]');
// アサーションメソッドを実行して期待した結果かどうかチェック
$this->assertEquals('Hello', $greeting);
}
示例3: wolf_columns_shortcode
/**
* Columns shortcode
*
* @param array $atts
* @param string $content
* @return string
*/
function wolf_columns_shortcode($atts, $content = null)
{
// if ( class_exists( 'Vc_Manager' ) && function_exists( 'vc_map_get_attributes' ) ) {
// $atts = vc_map_get_attributes( 'wolf_column', $atts );
// }
extract(shortcode_atts(array('col' => 'col-6', 'class' => '', 'first' => '', 'last' => '', 'inline_style' => ''), $atts));
$col = esc_attr($col);
$first = esc_attr($first);
$last = esc_attr($last);
$col = esc_attr($col);
$inline_style = sanitize_text_field($inline_style);
$output = '';
$style = '';
$class = $class ? "{$class} " : '';
// add space
if ($inline_style) {
$style .= $inline_style;
}
$style = $style ? " style='{$style}'" : '';
if ($first) {
$class = 'first';
} elseif ($last) {
$class = 'last';
}
if ($class == 'first') {
$output .= '<div class="clear"></div>';
}
$output .= '<div class="' . $col . ' ' . $class . '"' . $style . '>' . do_shortcode($content) . '</div>';
if ($class == 'last') {
$output .= '<div class="clear"></div>';
}
return $output;
}
示例4: render
/**
* Render the shortcode
*
* @param array $args Shortcode paramters
* @param string $content Content between shortcode
* @return string HTML output
*/
function render($args, $content = '')
{
global $smof_data;
$defaults = shortcode_atts(array('class' => '', 'id' => '', 'background_color' => '', 'background_image' => '', 'background_position' => 'left top', 'background_repeat' => 'no-repeat', 'border_color' => '', 'border_size' => '', 'border_style' => 'solid', 'center_content' => 'no', 'hide_on_mobile' => 'no', 'last' => 'no', 'margin_top' => $smof_data['col_top_margin'], 'margin_bottom' => $smof_data['col_bottom_margin'], 'padding' => '', 'spacing' => 'yes', 'animation_type' => '', 'animation_direction' => 'left', 'animation_speed' => '0.1'), $args);
extract($defaults);
if ($defaults['margin_top'] == '') {
$defaults['margin_top'] = $smof_data['col_top_margin'];
}
if ($defaults['margin_bottom'] == '') {
$defaults['margin_bottom'] = $smof_data['col_bottom_margin'];
}
self::$args = $defaults;
// After the last column we need a clearing div
$clearfix = '';
if (self::$args['last'] == 'yes') {
$clearfix = sprintf('<div %s></div>', FusionCore_Plugin::attributes('fusion-clearfix'));
}
$inner_content = do_shortcode($content);
// If content should be centered, add needed markup
if ($center_content == 'yes') {
$inner_content = sprintf('<div class="fusion-column-table"><div class="fusion-column-tablecell">%s</div></div>', $inner_content);
}
// Setup the main markup
$html = sprintf('<div %s><div %s>%s</div></div>%s', FusionCore_Plugin::attributes('two-fifth-shortcode'), FusionCore_Plugin::attributes('two-fifth-shortcode-wrapper'), $inner_content, $clearfix);
return $html;
}
示例5: list_group
/**
* List group.
*
* @param array $atts
* @param string $content
* @return string
*/
public function list_group($atts, $content = null)
{
extract(shortcode_atts(array('class' => ''), $atts));
$content = str_replace('<ul>', '<ul class="list-group">', $content);
$content = str_replace('<li>', '<li class="list-group-item">', $content);
return '<div class="wabbr-list-group ' . $class . '">' . do_shortcode($content) . '</div>';
}
示例6: render_child
/**
* Render the child shortcode
* @param array $args Shortcode paramters
* @param string $content Content between shortcode
* @return string HTML output
*/
function render_child($args, $content = '')
{
$defaults = Magee_Core::set_shortcode_defaults(array('title' => '', 'status' => '', 'icon' => ''), $args);
extract($defaults);
self::$args = $defaults;
if ($status == "open") {
$status = "in";
$expanded = "true";
$collapse = "";
} else {
$status = "";
$expanded = "false";
$collapse = "collapsed";
}
$itemId = 'collapse' . $this->id . "-" . $this->num;
$html = '<div class="panel panel-default">
<div class="panel-heading" role="tab" id="heading' . $itemId . '">
<a class="accordion-toggle ' . $collapse . '" data-toggle="collapse" data-parent="#' . $this->id . '" href="#' . $itemId . '" aria-expanded="' . $expanded . '" aria-controls="' . $itemId . '">
<h4 class="panel-title">
<i class="fa ' . $icon . '"></i> ' . esc_attr($title) . '
</h4>
</a>
</div>
<div id="' . $itemId . '" class="panel-collapse collapse ' . $status . '" role="tabpanel" aria-labelledby="heading' . $itemId . '" aria-expanded="' . $expanded . '">
<div class="panel-body">
' . do_shortcode(Magee_Core::fix_shortcodes($content)) . '
<div class="clear"></div>
</div>
</div>
</div>';
$this->num++;
return $html;
}
示例7: icon_list_item_shortcode
function icon_list_item_shortcode($atts, $content = null)
{
$icon_type = $icon_img = $img_width = $icon = $icon_color = $icon_color_bg = $icon_size = $icon_style = $icon_border_style = $icon_border_radius = $icon_color_border = $icon_border_size = $icon_border_spacing = $icon_link = $el_class = $icon_animation = $tooltip_disp = $tooltip_text = $icon_margin = '';
extract(shortcode_atts(array('icon_type' => 'selector', 'icon' => '', 'icon_img' => '', 'icon_color' => '#333333', 'icon_style' => 'none', 'icon_color_bg' => '#ffffff', 'icon_color_border' => '#333333', 'icon_border_style' => '', 'icon_border_size' => '1', 'icon_border_radius' => '500', 'icon_border_spacing' => '50', "icon_size" => "", "icon_margin" => "", 'el_class' => ''), $atts));
global $vc_list_icon_size, $vc_list_icon_margin;
if (empty($icon_size)) {
$icon_size = $vc_list_icon_size;
}
if (empty($icon_margin)) {
$icon_margin = $vc_list_icon_margin;
}
if ($icon_animation !== 'none') {
$css_trans = 'data-animation="' . $icon_animation . '" data-animation-delay="03"';
}
$output = $style = $link_sufix = $link_prefix = $target = $href = $icon_align_style = '';
if ($icon_margin !== '') {
$style .= 'margin-right:' . $icon_margin . 'px;';
}
$icon_animation = $icon_link = '';
$output .= '<div class="uavc-list-content">';
if ($icon !== "" || $icon_img !== '') {
if ($icon_type == 'custom') {
$icon_style = 'none';
}
$main_icon = do_shortcode('[just_icon icon_type="' . $icon_type . '" icon="' . $icon . '" icon_img="' . $icon_img . '" img_width="' . $icon_size . '" icon_size="' . $icon_size . '" icon_color="' . $icon_color . '" icon_style="' . $icon_style . '" icon_color_bg="' . $icon_color_bg . '" icon_color_border="' . $icon_color_border . '" icon_border_style="' . $icon_border_style . '" icon_border_size="' . $icon_border_size . '" icon_border_radius="' . $icon_border_radius . '" icon_border_spacing="' . $icon_border_spacing . '" icon_link="' . $icon_link . '" icon_animation="' . $icon_animation . '"]');
$output .= "\n" . '<div class="uavc-list-icon ' . $el_class . '" ' . $css_trans . ' style="' . $style . '">';
$output .= $main_icon;
$output .= "\n" . '</div>';
}
$output .= '<span class="uavc-list-desc">' . do_shortcode($content) . '</span>';
$output .= '</div>';
$output = '<li>' . $output . '</li>';
return $output;
}
示例8: tabgroup_vertical
function tabgroup_vertical($params, $content = null)
{
$GLOBALS['tabs'] = array();
$GLOBALS['tab_count'] = 0;
$i = 1;
$randomid = rand();
extract(shortcode_atts(array('title' => '', 'style' => 'normal'), $params));
$content = do_shortcode($content);
if (is_array($GLOBALS['tabs'])) {
foreach ($GLOBALS['tabs'] as $key => $tab) {
$current = $key == 0 ? ' current-menu-item' : '';
// Set first menu item active by default.
$active = $key == 0 ? ' active' : '';
// Set first tab active by default.
$tabs[] = '<li class="tab' . $current . '"><a href="#panel' . $randomid . $i . '">' . $tab['title'] . ' <span>asdf</span></a></li>';
$panes[] = '<div class="tabs-inner' . $active . '" id="panel' . $randomid . $i . '"><p>' . do_shortcode($tab['content']) . '</p></div>';
$i++;
}
$return = '
<div class="row collapse vertical-tabs shortcode_tabgroup_vertical pos_' . $style . '">
<h3>' . $title . '</h3>
<div class="large-3 columns"><ul class="tabs-nav">' . implode("\n", $tabs) . '</ul></div><div class="large-9 columns">' . implode("\n", $panes) . '</div></div>';
}
return $return;
}
示例9: banner_simple_height
function banner_simple_height($params = array(), $content = null)
{
extract(shortcode_atts(array('title' => 'Freeshipping on all order over $75', 'subtitle' => 'Shop Now', 'link_url' => '', 'title_color' => '#fff', 'subtitle_color' => '#fff', 'inner_stroke' => '0px', 'inner_stroke_color' => '#fff', 'bg_color' => '#000', 'bg_image' => '', 'height' => 'auto', 'sep_padding' => '5px', 'sep_color' => 'rgba(255,255,255,0.01)', 'with_bullet' => 'no', 'bullet_text' => 'Bullet Text Goes Here', 'bullet_bg_color' => '', 'bullet_text_color' => ''), $params));
$banner_with_img = '';
if (is_numeric($bg_image)) {
$bg_image = wp_get_attachment_url($bg_image);
$banner_with_img = 'banner_with_img';
}
$content = do_shortcode($content);
$banner_simple_height = '
<div class="shortcode_banner_simple_height ' . $banner_with_img . '" onclick="location.href=\'' . $link_url . '\';">
<div class="shortcode_banner_simple_height_inner">
<div class="shortcode_banner_simple_height_bkg" style="background-color:' . $bg_color . '; background-image:url(' . $bg_image . ')"></div>
<div class="shortcode_banner_simple_height_inside" style="height:' . $height . '; border: ' . $inner_stroke . ' solid ' . $inner_stroke_color . '">
<div class="shortcode_banner_simple_height_content">
<div><h3 style="color:' . $title_color . ' !important">' . $title . '</h3></div>
<div class="shortcode_banner_simple_height_sep" style="margin:' . $sep_padding . ' auto; background-color:' . $sep_color . ';"></div>
<div><h4 style="color:' . $subtitle_color . ' !important">' . $subtitle . '</h4></div>
</div>
</div>
</div>';
if ($with_bullet == 'yes') {
$banner_simple_height .= '<div class="shortcode_banner_simple_height_bullet" style="background:' . $bullet_bg_color . '; color:' . $bullet_text_color . '"><span>' . $bullet_text . '</span></div>';
}
$banner_simple_height .= '</div>';
return $banner_simple_height;
}
示例10: widget
function widget($args, $instance)
{
global $wpdb;
extract($args);
$wpwb_title = $instance['wpwb_title'];
echo do_shortcode('[wpwb_tweet_widget title="' . $wpwb_title . '"]');
}
示例11: converio_image_slider
function converio_image_slider($atts, $content = '')
{
if (isset($atts) && !empty($atts)) {
array_walk($atts, 'converio_arrangement_shortcode_arr_value');
}
extract(shortcode_atts(array('type' => '', 'translate_next' => '', 'translate_previous' => ''), $atts));
remove_all_filters('converio_filters_image_slider', 10);
if ($type == '2') {
add_filter('converio_filters_image_slider', 'converio_filter_image_slider_two', 10);
$output = '<div class="slider-image">';
$output .= '<div class="container">';
$output .= '<p class="number"><span></span>/<b></b></p>';
$output .= '<ul id="slides">';
$output .= '<a class="slidesjs-previous slidesjs-navigation" href="#" title="Previous">' . $translate_next . '</a> <a class="slidesjs-next slidesjs-navigation" href="#" title="Next">' . $translate_previous . '</a>';
$output .= do_shortcode($content);
$output .= '</ul>';
$output .= '</div>';
$output .= '</div>';
} else {
add_filter('converio_filters_image_slider', 'converio_filter_image_slider_one', 10);
$output = '<section class="slider3">';
$output .= '<div class="slider">';
$output .= do_shortcode($content);
$output .= '</div>';
$output .= '</section>';
}
return $output;
}
示例12: ntabs
function ntabs($atts, $content)
{
extract(shortcode_atts(array('title' => 'Tab %d', 'state' => ''), $atts));
$x = $GLOBALS['tab_count'];
$GLOBALS['tabs'][$x] = array('title' => sprintf($title, $GLOBALS['tab_count']), 'state' => sprintf($state, $GLOBALS['tab_count']), 'content' => do_shortcode($content));
$GLOBALS['tab_count']++;
}
示例13: content
public function content($atts, $content = null)
{
$title = $type = $custom_styling = $custom_bg_colour = $custom_text_colour = $pb_margin_bottom = $el_class = $width = $el_position = '';
extract(shortcode_atts(array('title' => '', 'type' => '', 'custom_bg_colour' => '', 'custom_text_colour' => '', 'pb_margin_bottom' => 'no', 'el_class' => '', 'el_position' => '', 'width' => '1/2'), $atts));
$output = '';
$el_class = $this->getExtraClass($el_class);
$width = spb_translateColumnWidthToSpan($width);
$el_class .= ' spb_box_text';
$el_class .= ' ' . $type;
if ($pb_margin_bottom == "yes") {
$el_class .= ' pb-margin-bottom';
}
if ($custom_bg_colour != "") {
$custom_styling .= 'background: ' . $custom_bg_colour . '!important;';
}
if ($custom_text_colour != "") {
$custom_styling .= 'color: ' . $custom_text_colour . '!important;';
}
$output .= "\n\t" . '<div class="spb_content_element ' . $width . $el_class . '">';
$output .= "\n\t\t" . '<div class="spb_wrapper">';
$output .= $title != '' ? "\n\t\t\t" . '<h3 class="spb-heading spb-text-heading"><span>' . $title . '</span></h3>' : '';
$output .= "\n\t\t\t";
if ($custom_styling != "") {
$output .= '<div class="box-content-wrap" style="' . $custom_styling . '">' . do_shortcode($content) . '</div>';
} else {
$output .= '<div class="box-content-wrap">' . do_shortcode($content) . '</div>';
}
$output .= "\n\t\t" . '</div> ' . $this->endBlockComment('.spb_wrapper');
$output .= "\n\t" . '</div> ' . $this->endBlockComment($width);
//
$output = $this->startRow($el_position) . $output . $this->endRow($el_position);
return $output;
}
示例14: display_ultimate_map
function display_ultimate_map($atts, $content = null)
{
$width = $height = $map_type = $lat = $lng = $zoom = $streetviewcontrol = $maptypecontrol = $top_margin = $pancontrol = $zoomcontrol = $zoomcontrolsize = $dragging = $marker_icon = $icon_img = $map_override = $output = $map_style = $scrollwheel = $el_class = '';
extract(shortcode_atts(array("width" => "100%", "height" => "300px", "map_type" => "ROADMAP", "lat" => "18.591212", "lng" => "73.741261", "zoom" => "14", "scrollwheel" => "", "streetviewcontrol" => "false", "maptypecontrol" => "false", "pancontrol" => "false", "zoomcontrol" => "false", "zoomcontrolsize" => "SMALL", "dragging" => "true", "marker_icon" => "default", "icon_img" => "", "top_margin" => "page_margin_top", "map_override" => "0", "map_style" => "", "el_class" => "", "infowindow_open" => "", "map_vc_template" => ""), $atts));
$marker_lat = $lat;
$marker_lng = $lng;
if ($marker_icon == "default_self") {
$icon_url = plugins_url("../assets/img/icon-marker-pink.png", __FILE__);
} elseif ($marker_icon == "default") {
$icon_url = "";
} else {
$icon_url = apply_filters('ult_get_img_single', $icon_img, 'url');
}
$id = "map_" . uniqid();
$wrap_id = "wrap_" . $id;
$map_type = strtoupper($map_type);
$width = substr($width, -1) != "%" && substr($width, -2) != "px" ? $width . "px" : $width;
$map_height = substr($height, -1) != "%" && substr($height, -2) != "px" ? $height . "px" : $height;
$margin_css = '';
if ($top_margin != 'none') {
$margin_css = $top_margin;
}
if ($map_vc_template == 'map_vc_template_value') {
$el_class .= 'uvc-boxed-layout';
}
$output .= "<div id='" . $wrap_id . "' class='ultimate-map-wrapper " . $el_class . "' style='" . ($map_height != "" ? "height:" . $map_height . ";" : "") . "'><div id='" . $id . "' data-map_override='" . $map_override . "' class='ultimate_google_map wpb_content_element " . $margin_css . "'" . ($width != "" || $map_height != "" ? " style='" . ($width != "" ? "width:" . $width . ";" : "") . ($map_height != "" ? "height:" . $map_height . ";" : "") . "'" : "") . "></div></div>";
if ($scrollwheel == "disable") {
$scrollwheel = 'false';
} else {
$scrollwheel = 'true';
}
$output .= "<script type='text/javascript'>\n\t\t\t(function(\$) {\n \t\t\t'use strict';\n\t\t\tvar map_{$id} = null;\n\t\t\tvar coordinate_{$id};\n\t\t\tvar isDraggable = \$(document).width() > 641 ? true : {$dragging};\n\t\t\ttry\n\t\t\t{\n\t\t\t\tvar map_{$id} = null;\n\t\t\t\tvar coordinate_{$id};\n\t\t\t\tcoordinate_{$id}=new google.maps.LatLng({$lat}, {$lng});\n\t\t\t\tvar mapOptions=\n\t\t\t\t{\n\t\t\t\t\tzoom: {$zoom},\n\t\t\t\t\tcenter: coordinate_{$id},\n\t\t\t\t\tscaleControl: true,\n\t\t\t\t\tstreetViewControl: {$streetviewcontrol},\n\t\t\t\t\tmapTypeControl: {$maptypecontrol},\n\t\t\t\t\tpanControl: {$pancontrol},\n\t\t\t\t\tzoomControl: {$zoomcontrol},\n\t\t\t\t\tscrollwheel: {$scrollwheel},\n\t\t\t\t\tdraggable: isDraggable,\n\t\t\t\t\tzoomControlOptions: {\n\t\t\t\t\t style: google.maps.ZoomControlStyle.{$zoomcontrolsize}\n\t\t\t\t\t},";
if ($map_style == "") {
$output .= "mapTypeId: google.maps.MapTypeId.{$map_type},";
} else {
$output .= " mapTypeControlOptions: {\n\t\t\t\t\t \t\tmapTypeIds: [google.maps.MapTypeId.{$map_type}, 'map_style']\n\t\t\t\t\t\t}";
}
$output .= "};";
if ($map_style !== "") {
$output .= 'var styles = ' . rawurldecode(base64_decode(strip_tags($map_style))) . ';
var styledMap = new google.maps.StyledMapType(styles,
{name: "Styled Map"});';
}
$output .= "var map_{$id} = new google.maps.Map(document.getElementById('{$id}'),mapOptions);";
if ($map_style !== "") {
$output .= "map_{$id}.mapTypes.set('map_style', styledMap);\n \t\t\t\t\t\t\t map_{$id}.setMapTypeId('map_style');";
}
if ($marker_lat != "" && $marker_lng != "") {
$output .= "\n\t\t\t\t\t\tvar x = '" . $infowindow_open . "';\n\t\t\t\t\t\tvar marker_{$id} = new google.maps.Marker({\n\t\t\t\t\t\tposition: new google.maps.LatLng({$marker_lat}, {$marker_lng}),\n\t\t\t\t\t\tanimation: google.maps.Animation.DROP,\n\t\t\t\t\t\tmap: map_{$id},\n\t\t\t\t\t\ticon: '" . $icon_url . "'\n\t\t\t\t\t});\n\t\t\t\t\tgoogle.maps.event.addListener(marker_{$id}, 'click', toggleBounce);";
if (trim($content) !== "") {
$output .= "var infowindow = new google.maps.InfoWindow();\n\t\t\t\t\t\t\tinfowindow.setContent('<div class=\"map_info_text\" style=\\'color:#000;\\'>" . trim(preg_replace('/\\s+/', ' ', do_shortcode($content))) . "</div>');";
if ($infowindow_open == 'off') {
$output .= "infowindow.open(map_{$id},marker_{$id});";
}
$output .= "google.maps.event.addListener(marker_{$id}, 'click', function() {\n\t\t\t\t\t\t\t\tinfowindow.open(map_{$id},marker_{$id});\n\t\t\t\t\t\t \t});";
}
}
$output .= "}\n\t\t\tcatch(e){};\n\t\t\tjQuery(document).ready(function(\$){\n\t\t\t\tgoogle.maps.event.trigger(map_{$id}, 'resize');\n\t\t\t\t\$(window).resize(function(){\n\t\t\t\t\tgoogle.maps.event.trigger(map_{$id}, 'resize');\n\t\t\t\t\tif(map_{$id}!=null)\n\t\t\t\t\t\tmap_{$id}.setCenter(coordinate_{$id});\n\t\t\t\t});\n\t\t\t\t\$('.ui-tabs').bind('tabsactivate', function(event, ui) {\n\t\t\t\t if(\$(this).find('.ultimate-map-wrapper').length > 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tsetTimeout(function(){\n\t\t\t\t\t\t\t\$(window).trigger('resize');\n\t\t\t\t\t\t},200);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\t\$('.ui-accordion').bind('accordionactivate', function(event, ui) {\n\t\t\t\t if(\$(this).find('.ultimate-map-wrapper').length > 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tsetTimeout(function(){\n\t\t\t\t\t\t\t\$(window).trigger('resize');\n\t\t\t\t\t\t},200);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\t\$(window).load(function(){\n\t\t\t\t\tsetTimeout(function(){\n\t\t\t\t\t\t\$(window).trigger('resize');\n\t\t\t\t\t},200);\n\t\t\t\t});\n\t\t\t\t\$('.ult_exp_section').select(function(){\n\t\t\t\t\tif(\$(map_{$id}).parents('.ult_exp_section'))\n\t\t\t\t\t{\n\t\t\t\t\t\tsetTimeout(function(){\n\t\t\t\t\t\t\t\$(window).trigger('resize');\n\t\t\t\t\t\t},200);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\t\$(document).on('onUVCModalPopupOpen', function(){\n\t\t\t\t\tif(\$(map_{$id}).parents('.ult_modal-content'))\n\t\t\t\t\t{\n\t\t\t\t\t\tsetTimeout(function(){\n\t\t\t\t\t\t\t\$(window).trigger('resize');\n\t\t\t\t\t\t},200);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\t\$(document).on('click','.ult_tab_li',function(){\n\t\t\t\t\t\$(window).trigger('resize');\n\t\t\t\t\tsetTimeout(function(){\n\t\t\t\t\t\t\$(window).trigger('resize');\n\t\t\t\t\t},200);\n\t\t\t\t});\n\t\t\t});\n\t\t\tfunction toggleBounce() {\n\t\t\t if (marker_{$id}.getAnimation() != null) {\n\t\t\t\tmarker_{$id}.setAnimation(null);\n\t\t\t } else {\n\t\t\t\tmarker_{$id}.setAnimation(google.maps.Animation.BOUNCE);\n\t\t\t }\n\t\t\t}\n\t\t\t})(jQuery);\n\t\t\t</script>";
return $output;
}
示例15: acf_fields_do_shortcode
function acf_fields_do_shortcode($value, $post_id, $field)
{
if (is_admin()) {
return $value;
}
return do_shortcode($value);
}