当前位置: 首页>>代码示例>>PHP>>正文


PHP wpb_js_remove_wpautop函数代码示例

本文整理汇总了PHP中wpb_js_remove_wpautop函数的典型用法代码示例。如果您正苦于以下问题:PHP wpb_js_remove_wpautop函数的具体用法?PHP wpb_js_remove_wpautop怎么用?PHP wpb_js_remove_wpautop使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了wpb_js_remove_wpautop函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: content

 public function content($atts, $content = null)
 {
     $tt_double_border = $tt_border_class = $el_class = $width = $el_position = '';
     extract(shortcode_atts(array('el_class' => '', 'el_position' => '', 'width' => '1/2'), $atts));
     $output = '';
     $el_class = $this->getExtraClass($el_class);
     $width = wpb_translateColumnWidthToSpan($width);
     if ($this->shortcode == 'vc_column') {
         $el_class .= ' column_container';
         if (is_page_template('page-home.php')) {
             $tt_border_class = ' border';
             $tt_double_border = '<div class="double-bg"><div class="left-sdw"></div><div class="right-sdw"></div><div class="repeat-sdw"></div></div>';
         }
     } else {
         if ($this->shortcode == 'vc_column_text') {
             $el_class .= ' wpb_text_column';
         }
     }
     $output .= '<div class="wpb_content_element tt_border ' . $width . $el_class . '">';
     $output .= '<div class="wpb_wrapper' . $tt_border_class . '">';
     $output .= wpb_js_remove_wpautop($content);
     $output .= '</div>' . $this->endBlockComment('.wpb_wrapper');
     $output .= $tt_double_border;
     $output .= '</div>' . $this->endBlockComment($width);
     //
     $output = $this->startRow($el_position) . $output . $this->endRow($el_position);
     return $output;
 }
开发者ID:earthshakira,项目名称:rachanasansad-portfolio,代码行数:28,代码来源:column.php

示例2: content

        protected function content($atts, $content = null)
        {
            extract(shortcode_atts(array('what_we_do_heading' => ''), $atts));
            if ($content != '') {
                $para_html = '<div class="largeIntro  ofsTSmall">
									' . wpb_js_remove_wpautop($content, true) . '
								</div>';
            } else {
                $para_html = '';
            }
            if ($what_we_do_heading != '') {
                $heading = '<div class="title dark">
									<h1>' . esc_html($what_we_do_heading) . '<span class="plus">+</span></h1>
								</div>';
            } else {
                $heading = '';
                $para_html = '<div class="smallIntro tCenter">
										' . wpb_js_remove_wpautop($content, true) . '
													</div>';
            }
            $html = '<div class="expertiseHolder margLTop">
					<div class="clearfix ofsBottom">
								' . $heading . '
											<div class="container clearfix">
											' . $para_html . '
													</div>
				    </div></div>';
            return $html;
        }
开发者ID:pranonTeam,项目名称:pranon_wp_development,代码行数:29,代码来源:section_heading.php

示例3: content

 protected function content($atts, $content = null)
 {
     $align = $navigation = $effect = $timeout = $el_class = $el_position = '';
     //
     extract(shortcode_atts(array('width' => '', 'el_class' => '', 'effect' => '', 'timeout' => '', 'navigation' => ''), $atts));
     $output = '';
     $el_class = $this->getExtraClass($el_class);
     $output .= "\n\t" . '<div id="textslider-' . uniqid() . '" class="textslider-wrap gallery-wrap ' . $width . ' ' . $el_class . ' clearfix" data-effect="' . $effect . '" data-timeout="' . $timeout . '">';
     $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;
 }
开发者ID:ConceptHaus,项目名称:backup,代码行数:31,代码来源:text-slider.php

示例4: cq_vc_cqbutton_func

 function cq_vc_cqbutton_func($atts, $content = null, $tag)
 {
     if (version_compare(WPB_VC_VERSION, "4.6") >= 0) {
         $atts = vc_map_get_attributes($tag, $atts);
         extract($atts);
     } else {
         extract(shortcode_atts(array('buttonlabel' => '', 'link' => '', 'buttoncolor' => '', 'buttonbackground' => '', 'containerwidth' => '', 'animationstyle' => 'animatetype-1', 'iconbuttoncolor' => 'cqbtn-1', 'iconposition' => '', 'icon' => '', 'icontop' => '', 'iconleft' => '', 'mobilewidth' => '', 'onclick' => '', 'extra_class' => ''), $atts));
     }
     wp_register_style('vc_cqbutton_cq_style', plugins_url('css/style.min.css', __FILE__));
     wp_enqueue_style('vc_cqbutton_cq_style');
     wp_register_style('font-awesome', plugins_url('../faanimation/css/font-awesome.min.css', __FILE__));
     wp_enqueue_style('font-awesome');
     $content = wpb_js_remove_wpautop($content);
     // fix unclosed/unwanted paragraph tags in $content
     $output = '';
     $link = vc_build_link($link);
     $output .= '<div class="cq-buttoncontainer ' . $iconposition . ' ' . $extra_class . '">';
     $output .= '<div class="' . $animationstyle . '">';
     $output .= '<div>';
     $output .= '<a href="' . $link['url'] . '" title="' . $link['title'] . '" target="' . $link['target'] . '" style="color:' . $buttoncolor . ';background-color:' . $buttonbackground . ';" class="btn ' . $iconbuttoncolor . '">';
     $output .= '<span class="txt">' . $buttonlabel . '</span>';
     $output .= '<span class="round"><i style="margin-top:' . $icontop . ';margin-left:' . $iconleft . ';" class="fa fa-' . $icon . '"></i></span>';
     $output .= '</a>';
     $output .= '</div>';
     $output .= '</div>';
     $output .= '</div>';
     return $output;
 }
开发者ID:sopada85,项目名称:esquema-test,代码行数:28,代码来源:vc-extensions-cqbutton.php

示例5: rt_visual_composer_content_fix

 /**
  * Visual Composer Content Fix
  * Corrects the wrong p tags caused by VComposer plugin by using its native function
  * 
  * @param  string $content
  * @return html $content
  */
 function rt_visual_composer_content_fix($content = null)
 {
     if (function_exists("wpb_js_remove_wpautop")) {
         $content = wpb_js_remove_wpautop($content, "true");
     }
     return $content;
 }
开发者ID:ryan-konkolewski,项目名称:rt-theme-19-extentions-multisite,代码行数:14,代码来源:shortcodes.php

示例6: content

 protected function content($atts, $content = null)
 {
     extract(shortcode_atts(array('mode' => '', 'effect' => '', "speed" => '', "pause" => '', 'autoplay' => '', 'controlnav' => '', 'pagernav' => '', 'customnav' => '', 'slide_count' => 1, 'el_id' => '', 'el_class' => '', 'css_animation' => '', 'anim_type' => '', 'anim_delay' => '', 'css' => ''), $atts));
     $sc_class = 'wt_services_slider_sc';
     $id = mt_rand(9999, 99999);
     if (trim($el_id) != false) {
         $el_id = esc_attr(trim($el_id));
     } else {
         $el_id = $sc_class . '-' . $id;
     }
     wp_print_scripts('wt-extend-bx-slider');
     wp_enqueue_style('wt-extend-bx-slider');
     $output = '';
     $autoplay !== "true" ? $autoplay = 'false' : '';
     $controlnav !== "true" ? $controlnav = 'false' : '';
     $pagernav !== "true" ? $pagernav = 'false' : '';
     $customnav !== "true" ? $customnav = 'false' : '';
     $pagernav == "true" && $customnav == "true" ? $bxCustomNav = ' data-bxCustomNav="wt_bxNav_' . $id . '"' : ($bxCustomNav = '');
     $el_class = esc_attr($this->getExtraClass($el_class));
     $css_class = apply_filters(VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, $sc_class . $el_class . vc_shortcode_custom_css_class($css, ' '), $this->settings['base']);
     $css_class .= $this->wt_sc->getWTCSSAnimationClass($css_animation, $anim_type);
     $anim_data = $this->wt_sc->getWTCSSAnimationData($css_animation, $anim_delay);
     $output .= '<div id="' . $el_id . '" class="' . $css_class . '"' . $anim_data . '>';
     if ($pagernav == "true" && $customnav == "true") {
         $output .= "\n\t\t\t" . '<div id="wt_bxNav_' . $id . '" class="wt_bxslider_nav wt_services_buttons">';
         for ($i = 1; $i <= $slide_count; $i++) {
             $icon = '';
             $current = $i - 1;
             isset($atts["icon_" . $i]) && $atts["icon_" . $i] != "" ? $icon = esc_html($atts["icon_" . $i]) : '';
             $output .= '<a data-slide-index="' . $current . '" href="#" class="servicesLink"><i class="' . $icon . '"></i></a>';
         }
         $output .= "\n\t\t\t" . '</div>';
     }
     $speed = (int) $speed;
     $pause = (int) $pause;
     $output .= "\n\t\t\t" . '<ul class="wt_bxslider" data-bx-mode="' . $mode . '" data-bx-effect="' . $effect . '" data-bx-speed="' . $speed . '" data-bx-pause="' . $pause . '" data-bx-autoPlay="' . $autoplay . '" data-bx-controlNav="' . $controlnav . '" data-bx-pagerNav="' . $pagernav . '" data-bx-customNav="' . $customnav . '"' . $bxCustomNav . '>';
     for ($i = 1; $i <= $slide_count; $i++) {
         $item_content = '';
         isset($atts["content_" . $i]) && $atts["content_" . $i] != "" ? $item_content = $atts["content_" . $i] : '';
         if ($item_content != '') {
             $item_content = wpb_js_remove_wpautop($item_content, true);
             // fix unclosed/unwanted paragraph tags in $content
         }
         isset($atts["target_" . $i]) && $atts["target_" . $i] == "true" ? $target = '_blank' : ($target = '_self');
         $output .= "\n\t\t\t\t" . '<li class="item"><div class="wt_services_slider">';
         if (isset($atts["name_" . $i]) && $atts["name_" . $i] != "") {
             $item_name = esc_html($atts["name_" . $i]);
             if (isset($atts["link_" . $i]) && $atts["link_" . $i] != "") {
                 $output .= "\n\t\t\t\t\t" . '<h3><a href="' . esc_url($atts["link_" . $i]) . '" title="' . $item_name . '" target="' . $target . '">' . $item_name . '</a></h3>';
             } else {
                 $output .= "\n\t\t\t\t\t" . '<h3>' . $item_name . '</h3>';
             }
         }
         $output .= "\n\t\t\t\t\t" . $item_content;
         $output .= "\t\t\t\t" . '</div></li>';
     }
     $output .= "\n\t\t\t" . '</ul>';
     $output .= "\n\t\t\t" . '</div>';
     return $output;
 }
开发者ID:panchortuzar,项目名称:revistaemprendedores-shop,代码行数:60,代码来源:wt_vcsc_services_slider.php

示例7: content

 protected function content($atts, $content = null)
 {
     $align = $share_icon = $el_position = $el_class = '';
     //
     extract(shortcode_atts(array('align' => '', 'share_icon' => '', 'el_class' => ''), $atts));
     $output = '';
     $el_class = $this->getExtraClass($el_class);
     if ($share_icon == 'yes') {
         $output .= "\n\t" . '<div class="socialicons init ' . $align . ' ' . $el_class . ' clearfix">';
         $output .= "\n\t\t" . '<ul>';
         $output .= "\n\t\t\t" . '<li class="dock-tab"><a class="socialinit" href="#"><i class="fa fa-share-square-o fa-lg"></i></a></li>';
         $output .= "\n\t\t" . '</ul>';
         $output .= "\n\t" . '</div>';
         $output .= "\n\t" . '<div class="socialicons ' . $align . ' ' . $el_class . ' toggle">';
         $output .= "\n\t\t" . '<ul class="clearfix">';
         $output .= "\n\t\t\t" . wpb_js_remove_wpautop($content);
         $output .= "\n\t\t" . '</ul>';
         $output .= "\n\t" . '</div>';
     } else {
         $output .= "\n\t" . '<div class="socialicons display ' . $align . ' ' . $el_class . ' clearfix">';
         $output .= "\n\t\t" . '<ul>';
         $output .= "\n\t\t\t" . wpb_js_remove_wpautop($content);
         $output .= "\n\t\t" . '</ul>';
         $output .= "\n\t" . '</div>';
         $output .= "\n\t" . '<div class="clear"></div>';
     }
     $output = $this->startRow($el_position) . $output . $this->endRow($el_position);
     return $output;
 }
开发者ID:ConceptHaus,项目名称:backup,代码行数:29,代码来源:social-icons.php

示例8: cq_vc_pagetransition_func

 function cq_vc_pagetransition_func($atts, $content = null, $tag)
 {
     if (version_compare(WPB_VC_VERSION, "4.6") >= 0) {
         $atts = vc_map_get_attributes($tag, $atts);
         extract($atts);
     } else {
         extract(shortcode_atts(array('animationmode' => 'normal', 'pagein' => 'fade-in', 'pageout' => 'fade-out', 'overlayin' => 'overlay-slide-in-top', 'overlayout' => 'overlay-slide-out-top', 'pageinspeed' => '1500', 'pageoutspeed' => '800', 'linkelement' => '', 'isdisplay' => 'yes', 'sitewrapper' => '', 'overlaycolor' => ''), $atts));
     }
     $i = -1;
     $content = wpb_js_remove_wpautop($content);
     // fix unclosed/unwanted paragraph tags in $content
     // if($animationmode=="normal"&&$pagein!="zoom-in"){
     //   $pagein_arr = Array("fade-in", "fade-in-up-sm", "fade-in-up", "fade-in-up-lg", "fade-in-down-sm", "fade-in-down", "fade-in-down-lg", "fade-in-left-sm", "fade-in-left", "fade-in-left-lg", "fade-in-right-sm", "fade-in-right", "fade-in-right-lg", "rotate-in-sm", "rotate-in", "rotate-in-lg", "flip-in-x-fr", "flip-in-x", "flip-in-x-nr", "flip-in-y-fr", "flip-in-y", "flip-in-y-nr", "zoom-in-sm", "zoom-in", "zoom-in-lg");
     //   $pagein = $pagein_arr[array_rand($pagein_arr)];
     // }
     $output = '';
     if ($isdisplay != "no") {
         // wp_register_style('vc-extensions-pagetransition-style', plugins_url('css/style.css', __FILE__));
         // wp_enqueue_style('vc-extensions-pagetransition-style');
         wp_register_style('animsition', plugins_url('css/animsition.min.css', __FILE__));
         wp_enqueue_style('animsition');
         wp_register_script('animsition', plugins_url('js/jquery.animsition.min.js', __FILE__), array("jquery"));
         wp_enqueue_script('animsition');
         wp_register_script('vc-extensions-pagetransition-script', plugins_url('js/init.min.js', __FILE__), array("jquery"));
         wp_enqueue_script('vc-extensions-pagetransition-script');
         $output .= '<div class="cq-animsition" data-animationmode="' . $animationmode . '" data-pagein="' . $pagein . '" data-pageout="' . $pageout . '" data-overlayin="' . $overlayin . '" data-overlayout="' . $overlayout . '" data-pageinspeed="' . $pageinspeed . '" data-pageoutspeed="' . $pageoutspeed . '" data-linkelement="' . $linkelement . '" data-overlaycolor="' . $overlaycolor . '" data-sitewrapper="' . $sitewrapper . '">';
         $output .= '</div>';
     }
     return $output;
 }
开发者ID:sopada85,项目名称:esquema-test,代码行数:30,代码来源:vc-extensions-pagetransition.php

示例9: renderMyBartag

 public function renderMyBartag($atts)
 {
     extract(shortcode_atts(array('foo' => 'something', 'color' => '#FF0000'), $atts));
     $content = wpb_js_remove_wpautop($content, true);
     $output = "<div style='color:{$color};' data-foo='{$foo}'>{$content}</div>";
     return $output;
 }
开发者ID:nickkoskowski,项目名称:Work-Depot,代码行数:7,代码来源:vc_extend.php

示例10: content

        protected function content($atts, $content = null)
        {
            extract(shortcode_atts(array('page_img' => '', 'page_heading' => '', 'theme_op' => ''), $atts));
            $src = wp_get_attachment_image_src($page_img, 'full');
            if ($theme_op == 'theme1') {
                $html = '<div class="abIntro2Holder ofsTopH ofsBottomL">
				<div class="container clearfix ">
					<div class="thirteen columns abIntro2">
					<div class="logo">
						<img src="' . esc_url($src[0]) . '" alt=""/>
						<h2 class="est">' . esc_html($page_heading) . '</h2>
					</div>
					' . wpb_js_remove_wpautop($content, true) . '
					
					</div>
				</div>
			</div>';
            } else {
                $html = '<div class="hSingleHeight tCenter" style="clear:both;">
				<div class="hero wide">
						<div class="container clearfix ">
								<div class="thirteen columns ofsBottom long">	
									' . wpb_js_remove_wpautop($content, true) . '
								</div>
						</div>					
				</div>	</div>';
            }
            return $html;
        }
开发者ID:pranonTeam,项目名称:pranon_wp_development,代码行数:29,代码来源:custom_page_header.php

示例11: curly_column

function curly_column($atts, $content = null)
{
    extract(shortcode_atts(array("size" => '1/2', "last" => 'no', "margin" => null), $atts));
    $css = 'content-column';
    if ($last == 'yes') {
        $css .= " last clearfix";
    }
    switch ($size) {
        case '1/2':
            $css .= ' half';
            break;
        case '1/3':
            $css .= ' one-three';
            break;
        case '1/4':
            $css .= ' one-four';
            break;
        case '2/3':
            $css .= ' two-three';
            break;
        case '2/4':
            $css .= ' two-four';
            break;
        case '3/4':
            $css .= ' three-four';
            break;
    }
    $inline = $margin != null ? ' style="margin-bottom: ' . $margin . 'px" ' : null;
    $content = function_exists('wpb_js_remove_wpautop') ? wpb_js_remove_wpautop($content, true) : $content;
    return $last == 'yes' ? '<div class="' . $css . '" ' . $inline . '>' . apply_filters('the_content', $content) . '</div><div class="clear"></div>' : '<div class="' . $css . '" ' . $inline . '>' . apply_filters('the_content', $content) . '</div>';
}
开发者ID:raducretu,项目名称:curly-extension,代码行数:31,代码来源:columns.php

示例12: curly_lists

function curly_lists($atts, $content = null)
{
    extract(shortcode_atts(array("type" => null), $atts));
    switch ($type) {
        case 'bullets':
            $css = 'list-bullets';
            break;
        case 'square':
            $css = 'list-square';
            break;
        case 'circle':
            $css = 'list-circle';
            break;
        case 'checklist':
            $css = 'list-checklist';
            break;
        case 'crosslist':
            $css = 'list-crosslist';
            break;
        case 'default':
            $css = 'list-default-list';
            break;
        case 'none':
            $css = 'list-none';
            break;
        default:
            $css = 'list-none';
    }
    $content = function_exists('wpb_js_remove_wpautop') ? wpb_js_remove_wpautop($content, true) : $content;
    return '<div class="' . $css . '">' . apply_filters('the_content', $content) . '</div>';
}
开发者ID:raducretu,项目名称:curly-extension,代码行数:31,代码来源:lists.php

示例13: cq_vc_fullscreenintro_func

 function cq_vc_fullscreenintro_func($atts, $content = null, $tag)
 {
     if (version_compare(WPB_VC_VERSION, "4.6") >= 0) {
         $atts = vc_map_get_attributes($tag, $atts);
         extract($atts);
     } else {
         extract(shortcode_atts(array('backgroundtype' => '', 'backgroundcolor' => '', 'image' => '', 'imagerepeat' => '', 'introtext' => '', 'texticon' => 'fa-chevron-down', 'textposition' => '', 'textcolor' => '', 'textsize' => '', 'textfamily' => '', 'textclickable' => '', 'scrollto' => '', 'scrolloffset' => '', 'scrollspeed' => '', 'containerheight' => '', 'extraclass' => ''), $atts));
     }
     wp_register_style('font-awesome', plugins_url('../faanimation/css/font-awesome.min.css', __FILE__));
     wp_enqueue_style('font-awesome');
     wp_register_style('vc-extensions-fullscreenintro-style', plugins_url('css/style.css', __FILE__));
     wp_enqueue_style('vc-extensions-fullscreenintro-style');
     wp_register_script('smooth-scroll', plugins_url('js/jquery.smooth-scroll.min.js', __FILE__), array("jquery"));
     wp_enqueue_script('smooth-scroll');
     wp_register_script('vc-extensions-fullscreenintro-script', plugins_url('js/init.min.js', __FILE__), array("jquery", "smooth-scroll"));
     wp_enqueue_script('vc-extensions-fullscreenintro-script');
     $i = -1;
     $content = wpb_js_remove_wpautop($content);
     // fix unclosed/unwanted paragraph tags in $content
     $image = wp_get_attachment_image_src(trim($image), 'full');
     $output = '';
     $output .= '<div class="cq-fullscreen-intro ' . $extraclass . '" data-backgroundtype="' . $backgroundtype . '" data-image="' . $image[0] . '" data-textcolor="' . $textcolor . '" data-textsize="' . $textsize . '" data-textfamily="' . $textfamily . '" data-backgroundcolor="' . $backgroundcolor . '" data-textposition="' . $textposition . '" data-textclickable="' . $textclickable . '" data-imagerepeat="' . $imagerepeat . '" data-containerheight="' . $containerheight . '" data-scrollto="' . htmlspecialchars($scrollto) . '" data-scrolloffset="' . $scrolloffset . '" data-scrollspeed="' . $scrollspeed . '">';
     // $output .= do_shortcode($content);
     $output .= '<span class="cq-intro-text"><span class="intro-text">' . $introtext . '</span><i class="fa ' . $texticon . '"></i></span>';
     $output .= '</div>';
     return $output;
 }
开发者ID:sopada85,项目名称:esquema-test,代码行数:27,代码来源:vc-extensions-fullscreenintro.php

示例14: form_map_func

function form_map_func($atts, $content = null)
{
    // New function parameter $content is added!
    extract(shortcode_atts(array('width' => '1/2', 'el_position' => '', 'map_code' => '', 'map_height' => '', 'map_zoom' => '', 'title' => '', 'sub_title' => '', 'show_map_text' => '', 'show_form_text' => '', 'form_id' => ''), $atts));
    $width_class = '';
    //wpb_translateColumnWidthToSpan($width); // Determine width for our div holder
    $content = wpb_js_remove_wpautop($content, true);
    $image_attributes = wp_get_attachment_image_src($author_image, 'full');
    // returns an array
    $output = '';
    $output .= '<section class="content-layer brightText removemargin">';
    $output .= '<div class="mapOuter">';
    $output .= '<div class="googleMap" data-location="' . $map_code . '" data-height="' . $map_height . '" data-offset="0" data-zoom="' . $map_zoom . '"></div>';
    $output .= '</div>';
    $output .= '<a href="#" class="showMap btn btn-primary" data-text="' . $show_form_text . '">' . $show_map_text . '</a>';
    $output .= '<div class="bg-layer"></div>';
    $output .= '<div class="placeOver">';
    $output .= '<div class="container">';
    $output .= '<header class="page-header text-center">';
    if ($title) {
        $output .= '<h2>' . $title . '</h2>';
    }
    if ($sub_title) {
        $output .= '<p>' . $sub_title . '</p>';
    }
    $output .= '</header>';
    if ($form_id) {
        $output .= do_shortcode('[contact-form-7 id="' . $form_id . '"]');
    }
    $output .= '</div>';
    $output .= '</div>';
    $output .= '</section>';
    return $output;
}
开发者ID:Kafia,项目名称:Mark-WordPress-Theme-,代码行数:34,代码来源:form-map.php

示例15: renderLogin

 public function renderLogin($atts, $content = null)
 {
     extract(shortcode_atts(array('use_in_sidebar' => 'no', 'redirect_to' => '', 'captcha' => 'no', 'register_link' => 'yes', 'forgot_link' => 'yes', 'register_text' => '', 'forgot_text' => '', 'custom_register_url' => '', 'custom_forgot_url' => ''), $atts));
     $content = wpb_js_remove_wpautop($content, true);
     // fix unclosed/unwanted paragraph tags in $content
     $params = '';
     if ($use_in_sidebar == 'yes') {
         $params .= ' use_in_sidebar="yes" ';
     }
     if ($redirect_to != 'yes') {
         $params .= ' redirect_to="' . $redirect_to . '" ';
     }
     if ($captcha != 'no') {
         $params .= ' captcha="' . $captcha . '" ';
     }
     $params .= ' register_link="' . $register_link . '" ';
     $params .= ' forgot_link="' . $forgot_link . '" ';
     $params .= ' register_text="' . $register_text . '" ';
     $params .= ' forgot_text="' . $forgot_text . '" ';
     $params .= ' custom_register_url="' . $custom_register_url . '" ';
     $params .= ' custom_forgot_url="' . $custom_forgot_url . '" ';
     $output = do_shortcode('[upme_login ' . $params . ' ]');
     //"<div style='color:{$color};' data-foo='${foo}'>{$content}</div>";
     return $output;
 }
开发者ID:nikwin333,项目名称:pcu_project,代码行数:25,代码来源:vc_upme_login.php


注:本文中的wpb_js_remove_wpautop函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。