本文整理汇总了PHP中get_row_css_class函数的典型用法代码示例。如果您正苦于以下问题:PHP get_row_css_class函数的具体用法?PHP get_row_css_class怎么用?PHP get_row_css_class使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了get_row_css_class函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: content
public function content($atts, $content = null)
{
$el_class = '';
$output = '';
extract(shortcode_atts(array('el_class' => '', 'top_margin' => 'none'), $atts));
wp_enqueue_style('js_composer_front');
wp_enqueue_script('wpb_composer_front_js');
$output .= '<div class="wpb_row ' . get_row_css_class() . ' ' . $el_class . ($top_margin != "none" ? ' ' . $top_margin : '') . '">';
$output .= wpb_js_remove_wpautop($content);
$output .= '</div>' . $this->endBlockComment('row');
return $output;
}
示例2: extract
<?php
$output = $el_class = $bg_image = $bg_color = $bg_image_repeat = $font_color = $padding = $margin_bottom = $css = '';
extract(shortcode_atts(array('el_class' => '', 'bg_image' => '', 'bg_color' => '', 'bg_image_repeat' => '', 'font_color' => '', 'padding' => '', 'centered' => '', 'margin_bottom' => '', 'css' => ''), $atts));
wp_enqueue_style('js_composer_front');
wp_enqueue_script('wpb_composer_front_js');
wp_enqueue_style('js_composer_custom_css');
$el_class = $this->getExtraClass($el_class);
$css_class = apply_filters(VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, 'wpb_row clearfix ' . get_row_css_class() . $el_class . vc_shortcode_custom_css_class($css, ' '), $this->settings['base'], $atts);
$style = $this->buildStyle($bg_image, $bg_color, $bg_image_repeat, $font_color, $padding, $margin_bottom);
$output .= '<div class="' . $css_class . '"' . $style . '>';
if ($centered == 'yes') {
$output .= '<div class="container"><div class="sd-centered-wrapper">';
}
$output .= wpb_js_remove_wpautop($content);
if ($centered == 'yes') {
$output .= '</div></div>';
}
$output .= '</div>' . $this->endBlockComment('row');
echo $output;
示例3: extract
<?php
$output = $el_class = '';
extract(shortcode_atts(array('fullwidth' => 'false', 'id' => '', 'padding' => 0, 'attached' => 'false', 'visibility' => '', 'css' => '', 'animation' => '', 'el_class' => ''), $atts));
wp_enqueue_script('wpb_composer_front_js');
$fullwidth_start = $output = $fullwidth_end = '';
$id = !empty($id) ? ' id="' . $id . '"' : '';
$padding_css = $attached == 'true' ? 'add-padding-' . $padding : '';
$animation_css = $animation != '' ? ' mk-animate-element ' . $animation . ' ' : '';
if ($fullwidth == 'true') {
global $post;
$page_layout = get_post_meta($post->ID, '_layout', true);
$fullwidth_start = '</div></div></div>';
/* Fixes page section for blog single page */
if (is_singular('post')) {
$fullwidth_start .= '</div>';
}
$fullwidth_end = '<div class="mk-main-wrapper-holder"><div class="theme-page-wrapper ' . $page_layout . '-layout mk-grid vc_row-fluid no-padding"><div class="theme-content no-padding">';
/* Fixes page section for blog single post */
if (is_singular('post')) {
$fullwidth_end .= '<div class="single-content">';
}
}
$output .= $fullwidth_start . '<div' . $id . ' class="wpb_row vc_row ' . $el_class . ' vc_row-fluid ' . $visibility . ' mk-fullwidth-' . $fullwidth . ' ' . $padding_css . ' attched-' . $attached . ' ' . get_row_css_class() . vc_shortcode_custom_css_class($css, ' ') . $animation_css . '">';
$output .= wpb_js_remove_wpautop($content);
$output .= '</div>' . $fullwidth_end . $this->endBlockComment('row');
echo $output;
示例4: wolf_row_shortcode
/**
* Columns shortcode
*
* @param array $atts
* @param string $content
* @return string
*/
function wolf_row_shortcode($atts, $content = null)
{
$output = $el_class = $custom_class = $style = '';
extract(shortcode_atts(array('el_class' => '', 'font_type' => 'dark', 'background_color' => '', 'background_type' => '', 'background_image' => '', 'background_position' => '', 'background_attachment' => '', 'background_repeat' => '', 'background_size' => '', 'video_bg_type' => '', 'video_bg_youtube_url' => '', 'video_bg_mp4' => '', 'video_bg_webm' => '', 'video_bg_ogv' => '', 'video_opacity' => '100', 'video_bg_img' => '', 'content_type' => 'standard', 'no_padding' => '', 'padding_top' => '', 'padding_bottom' => '', 'parallax' => '', 'full_screen' => '', 'anchor' => '', 'overlay' => '', 'overlay_image' => '', 'overlay_color' => '', 'overlay_opacity' => '100', 'inline_style' => '', 'hide_class' => ''), $atts));
$style = '';
$overlay_style = '';
$video_opacity = 100;
$overlay_opacity = $overlay_opacity ? absint($overlay_opacity) / 100 : 0.4;
$custom_class .= 'wolf-row clearfix content-' . $font_type . '-font' . ' wolf-row-' . $content_type . '-width';
if ($hide_class) {
$custom_class .= ' ' . $hide_class;
}
if ($video_bg_mp4 || $video_bg_youtube_url) {
$custom_class .= ' wolf-row-video-bg';
}
if ($no_padding) {
$custom_class .= ' wolf-row-no-padding';
}
if ($full_screen) {
$custom_class .= ' section-full-screen';
}
wp_enqueue_script('wpb_composer_front_js');
$el_class = $this->getExtraClass($el_class);
$css_class = apply_filters(VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, 'wpb_row section ' . $custom_class . ' ' . get_row_css_class() . $el_class, $this->settings['base']);
$_image = '';
if ($background_image != ' ') {
$_image = wolf_get_url_from_attachment_id($background_image, 'extra-large');
}
if ($parallax && 'image' == $background_type && $_image) {
$css_class .= ' section-parallax';
}
if ($background_color) {
$style .= "background-color:{$background_color};";
}
if ('image' == $background_type) {
if ($background_image) {
$style .= "background-image:url({$_image});";
}
if ($background_position) {
$style .= "background-position:{$background_position};";
}
if ($background_repeat) {
$style .= "background-repeat:{$background_repeat};";
}
if ($background_size == 'cover') {
$style .= "-webkit-background-size: 100%; -o-background-size: 100%; -moz-background-size: 100%; background-size: 100%;-webkit-background-size: cover; -o-background-size: cover; background-size: cover;";
}
if ($background_size == 'resize') {
$style .= "-webkit-background-size: 100%; -o-background-size: 100%;-moz-background-size: 100%; background-size: 100%;";
}
}
// endif image background
if ($overlay && ('image' == $background_type && $_image || 'video' == $background_type && ($video_bg_mp4 || $video_bg_youtube_url))) {
$_overlay_image = '';
if ($overlay_image != '') {
$_overlay_image = wolf_get_url_from_attachment_id($overlay_image, 'extra-large');
}
if ($overlay_color) {
$overlay_style .= "background-color:{$overlay_color};";
}
if ($overlay_image) {
$overlay_style .= "background-image:url({$_overlay_image});";
}
$overlay_style .= "opacity:{$overlay_opacity};";
}
$_style = $style ? ' style="' . wolf_compact_css($style) . '"' : '';
$_overlay_style = $overlay_style ? ' style="' . wolf_compact_css($overlay_style) . '"' : '';
$section_id = $anchor ? ' id="' . $anchor . '"' : '';
$output .= '<div' . $_style . $section_id . ' class="' . $css_class . '">';
$inner_style = '';
if ('' != $padding_top) {
$padding_top = is_numeric($padding_top) ? $padding_top . 'px' : $padding_top;
$inner_style .= "padding-top:{$padding_top};";
}
if ('' != $padding_bottom) {
$padding_bottom = is_numeric($padding_bottom) ? $padding_bottom . 'px' : $padding_bottom;
$inner_style .= "padding-bottom:{$padding_bottom};";
}
if ($video_bg_mp4 && 'video' == $background_type && 'selhosted' == $video_bg_type) {
$video_bg_img = $video_bg_img ? wolf_get_url_from_attachment_id(absint($video_bg_img), 'extra-large') : null;
$output .= wolf_video_bg($video_bg_mp4, $video_bg_webm, $video_bg_ogv, $video_opacity, $video_bg_img, $parallax);
}
//elseif( $video_bg_youtube_url && 'video' == $background_type && 'youtube' == $video_bg_type ) {
$output .= wolf_youtube_video_bg($video_bg_youtube_url);
//}
if ($overlay) {
$output .= '<div class="row-overlay"' . $_overlay_style . '></div>';
}
$output .= "<div class='wolf-row-inner' style='{$inner_style}'>";
$output .= '<div class="wrap">';
$output .= wpb_js_remove_wpautop($content);
$output .= '</div><!--.wrap-->';
$output .= "\n";
//.........这里部分代码省略.........
示例5: apply_filters
}
if (!empty($dt_padding_bottom)) {
$padding .= 'padding-bottom: ' . $dt_padding_bottom . 'px;';
}
// Data Img:original or src for lazyload
$dataimg = '';
$lazyclass = '';
if (!empty($image_url)) {
if (isset($smof_data['lazyload']) && $smof_data['lazyload'] == '1') {
$dataimg = 'data-original="' . $image_url . '"';
$lazyclass = 'lazy';
} else {
$dataimg = 'src="' . $image_url . '"';
}
}
// ID
$output_id = '';
if (!empty($dt_id)) {
$output_id = 'id="' . $dt_id . '"';
}
$css_class = apply_filters(VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, 'wpb_row ' . get_row_css_class() . $dt_class . ' ' . $dt_no_mb . ' ' . $dt_row_type, $this->settings['base']);
$output .= '<div ' . $output_id . ' ' . $video_bg . ' class="' . $lazyclass . ' ' . $bgv_class . ' ' . $parallax_bg . ' ' . $css_class . '" ' . $dataimg . ' style="' . $style . '" data-token="' . $token . '">';
if (!empty($bg_image) || !empty($bg_color) || !empty($dt_padding_top) || !empty($dt_padding_bottom)) {
$output .= '<div class="' . $dt_text_scheme . '" style="' . $padding . ' background-color: rgba(' . $rgbcolor . ', ' . $cop . ');">';
}
$output .= wpb_js_remove_wpautop($content);
if (!empty($bg_image) || !empty($bg_color) || !empty($dt_padding_top) || !empty($dt_padding_bottom)) {
$output .= '<div class="clear"></div></div>';
}
$output .= '</div>' . $this->endBlockComment('row');
echo $output;
示例6: extract
<?php
$output = $el_class = '';
extract(shortcode_atts(array('el_class' => '', 'row_type' => 'row', 'type' => '', 'anchor' => '', 'video' => '', 'video_overlay' => '', 'video_webm' => '', 'video_mp4' => '', 'video_ogv' => '', 'video_image' => '', 'background_color' => '', 'border_color' => '', 'padding_top' => '', 'padding_bottom' => '', 'padding' => '', 'text_align' => 'left', 'more_button_label' => 'More Facts', 'less_button_label' => 'Less Facts', 'button_position' => 'left', 'color' => '', 'css_animation' => '', 'transition_delay' => ''), $atts));
wp_enqueue_style('js_composer_front');
wp_enqueue_script('wpb_composer_front_js');
wp_enqueue_style('js_composer_custom_css');
$el_class = $this->getExtraClass($el_class);
$css_class = apply_filters(VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, 'wpb_row ' . get_row_css_class() . $el_class, $this->settings['base']);
if ($type == "grid") {
$css_class_type = " grid_section";
} else {
$css_class_type = "";
}
if ($css_animation != "") {
$clsss_css_animation = " " . $css_animation;
} else {
$clsss_css_animation = "";
}
$delay = "";
if ($transition_delay != "") {
$delay = " style='transition-delay:" . $transition_delay . "s'";
}
$box_class = "";
if ($row_type == "box") {
$box_class = " use_as_box";
}
$anchor_id = "";
if ($anchor != "") {
$anchor_id = ' data-id="#' . $anchor . '"';
}
示例7: extract
$output = $el_class = $bg_image = $bg_color = $bg_image_repeat = $font_color = $padding = $margin_bottom = $css = '';
extract(shortcode_atts(array('el_class' => '', 'dt_id' => '', 'type' => 'pr-default', 'bg_image' => '', 'bg_color' => '', 'bg_image_repeat' => '', 'font_color' => '', 'padding' => '', 'margin_bottom' => '', 'full_width' => 0, 'enable_parallax' => '', 'css' => ''), $atts));
wp_enqueue_style('js_composer_front');
wp_enqueue_script('wpb_composer_front_js');
wp_enqueue_style('js_composer_custom_css');
//Set array elemtet class
$pr_id = $dt_id ? "id=" . $dt_id . "" : "";
$pr_class_extras = array();
if ((int) $full_width == true) {
$pr_full_width = "";
$class_full_width = "pr-full-width";
} else {
$pr_full_width = "pr-container";
}
$el_class = $this->getExtraClass($el_class);
$css_class = apply_filters(VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, 'wpb_row ' . $class_full_width . ' ' . ($this->settings('base') === 'pr_row_inner' ? 'pr_inner ' : '') . get_row_css_class() . $animation . $el_class . vc_shortcode_custom_css_class($css, ' '), $this->settings['base'], $atts);
$style = $this->buildStyle($bg_image, $bg_color, $bg_image_repeat, $font_color, $padding, $margin_bottom);
if ($enable_parallax) {
$pr_class_extras[] = $type == 'pr-default' ? 'pr-parallax-bg' : 'pr-parallax-video';
$pr_class_extras[] = "parallax";
$output .= '<div ' . $pr_id . ' class="' . $css_class . ' ' . esc_attr(implode(' ', $pr_class_extras)) . '"' . $data_attr . '>';
$output .= "<div class='overlay'>";
} else {
$output .= '<div ' . $pr_id . ' class="' . $css_class . ' ' . esc_attr(implode(' ', $pr_class_extras)) . ' ' . $style . '"' . $data_attr . '>';
}
//$output .= '<div class="'.$css_class.'">';
if ($pr_full_width == 'pr-container') {
$output .= '<div class="container">';
$output .= '<div class="row">';
}
$output .= wpb_js_remove_wpautop($content);
示例8: extract
extract(shortcode_atts(array('el_class' => '', 'bg_image' => '', 'bg_color' => '', 'bg_image_repeat' => '', 'font_color' => '', 'full_width' => false, 'padding' => '', 'margin_bottom' => '', 'custom_background' => '', 'parallax' => '', 'anchor_link' => '', 'css' => '', 'row_height' => '', 'min_height' => ''), $atts));
wp_enqueue_script('wpb_composer_front_js');
$el_class = $this->getExtraClass($el_class);
// Scrape Background CSS
if (preg_match('/\\bbackground\\b/i', $css)) {
$background_css = 'yes';
}
// Parallax
if (!empty($parallax)) {
preg_match_all('/background(-image)??\\s*?:.*?url\\(["|\']??(.+)["|\']??\\)/', $css, $matches, PREG_SET_ORDER);
if (!empty($matches)) {
$parallax_image_src = $matches[0][2];
$css = str_replace($matches[0][0] . ' !important;', '', $css);
}
}
$css_class = apply_filters(VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, 'wpb_row ' . get_row_css_class() . $el_class . (!empty($full_width) ? ' ' . $full_width : '') . (!empty($anchor_link) ? ' link_anchor anchor-' . $anchor_link : '') . (!empty($background_image) && !empty($parallax) ? ' parallax' : '') . ($row_height == 'full_height' ? ' full-row-height' : '') . (!empty($parallax) || !empty($row_height) || !empty($background_css) || !empty($inherit_shaded_color) ? ' custom-row' : '') . vc_shortcode_custom_css_class($css, ' '), $this->settings['base'], $atts);
// Parallax
if (!empty($parallax)) {
if ($parallax == 'yes') {
$parallax = 'content-moving';
}
wp_enqueue_script('vc_jquery_skrollr_js');
$css_class .= ' custom-row parallax vc_general vc_parallax vc_parallax-' . $parallax;
if (strpos($parallax, 'fade')) {
$css_class .= ' js-vc_parallax-o-fade';
}
}
// Anchor Links
if (!empty($anchor_link)) {
wp_register_script('waypoints', get_template_directory_uri() . '/js/waypoints.min.js', array('jquery'), true);
wp_enqueue_script('waypoints');
示例9: vcex_offset_vc
}
if (!empty($center_row) && 'yes' == $center_row) {
$total_wrap_classes[] = 'wpex-vc-row-centered';
}
if (!empty($column_spacing)) {
$total_wrap_classes[] = 'wpex-vc-has-custom-column-spacing';
$total_wrap_classes[] = 'wpex-vc-column-spacing-' . $column_spacing;
}
$total_wrap_classes[] = vcex_offset_vc($atts);
$total_wrap_classes = implode(' ', $total_wrap_classes);
// Declare some vars
$wrapper_attributes = array();
$has_video_bg = false;
// Inner classes
$css_classes = array('vc_row', 'wpb_row', 'clr');
$css_classes[] = get_row_css_class();
$css_classes[] = vc_shortcode_custom_css_class($css, ' ');
if (!empty($el_class)) {
$css_classes[] = $this->getExtraClass($el_class);
}
// Custom ID
if (!empty($el_id)) {
$wrapper_attributes[] = 'id="' . esc_attr($el_id) . '"';
}
// Full width row
if (!empty($full_width)) {
$wrapper_attributes[] = 'data-vc-full-width="true"';
$wrapper_attributes[] = 'data-vc-full-width-init="false"';
if ('stretch_row_content' === $full_width) {
$wrapper_attributes[] = 'data-vc-stretch-content="true"';
} elseif ('stretch_row_content_no_spaces' === $full_width) {
示例10: rand
$style .= 'background-repeat: repeat;';
}
}
// Padding
$padding = '';
if (!empty($king_padding_top)) {
$padding .= 'padding-top: ' . $king_padding_top . 'px;';
}
if (!empty($king_padding_bottom)) {
$padding .= 'padding-bottom: ' . $king_padding_bottom . 'px;';
}
if ($king_id == '') {
$king_id_rand = rand(100000, 900000);
$king_id = 'king-' . $king_id_rand;
}
$css_class = apply_filters(VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, 'wpb_row ' . get_row_css_class() . $king_class . ' ' . ($king_row_type != 'container' ? ' ' . $king_row_type : ''), $this->settings['base']);
if ($this->settings('base') === 'vc_row_inner') {
$css_class .= 'king-innerRow-container';
}
$output .= '<div id="' . $king_id . '" class="' . $css_class . '"';
if (!empty($style)) {
$output .= ' style="' . $style . '"';
}
$output .= '>';
if ($this->settings('base') !== 'vc_row_inner') {
$output .= '<div class="' . ($king_row_type != 'container_full' ? 'container' : '') . ' ' . $king_class_container . '" style="' . $padding . '">';
$output .= wpb_js_remove_wpautop($content);
$output .= '<div class="clear"></div></div>';
} else {
$output .= wpb_js_remove_wpautop($content);
}
示例11: extract
<?php
$output = $el_class = '';
extract(shortcode_atts(array('id' => '', 'padding' => 0, 'attached' => 'false', 'visibility' => '', 'css' => '', 'animation' => '', 'el_class' => ''), $atts));
wp_enqueue_script('wpb_composer_front_js');
$fullwidth_start = $output = $fullwidth_end = '';
$id = !empty($id) ? ' id="' . $id . '"' : '';
$padding_css = $attached == 'true' ? 'add-padding-' . $padding : '';
$animation_css = $animation != '' ? ' mk-animate-element ' . $animation . ' ' : '';
$output .= '<div' . $id . ' class="wpb_row vc_inner vc_row ' . $el_class . ' vc_row-fluid ' . $visibility . ' ' . $padding_css . ' attched-' . $attached . ' ' . get_row_css_class() . vc_shortcode_custom_css_class($css, ' ') . $animation_css . '">';
$output .= wpb_js_remove_wpautop($content);
$output .= '</div>';
echo $output;
示例12: apply_filters
$section_container_class .= $padding !== 'none' ? $padding : '';
//Parallex Classes
$parallex_section_classes = 'parallex_wrapper zee_para_container';
$parallex_inner_classes = 'parallex_folio';
$el_class = $this->getExtraClass($el_class);
$css_class = apply_filters(VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, 'section_holder ' . get_row_css_class() . ' ' . $gray_background . $el_class . vc_shortcode_custom_css_class($css, ' '), $this->settings['base'], $atts);
//Curve Classes
$curve_position;
$curve_colors_classes;
$t_c_color_type;
$t_c_bg_color_type;
$b_c_color_type;
$b_c_bg_color_type;
$curve_colors_classes = ' ' . $t_c_color_type . ' ' . $t_c_bg_color_type . ' ' . $b_c_color_type . ' ' . $b_c_bg_color_type;
$curve_container_class = $curve_position != 'zee_d_curve_container' ? 'section_container section_curve_container' : '';
$css_curve_class = apply_filters(VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, 'zee_curve_container ' . get_row_css_class() . ' ' . $gray_background . ' ' . $curve_position . $curve_colors_classes . ' ' . $el_class . vc_shortcode_custom_css_class($css, ' '), $this->settings['base'], $atts);
//echo $content;
$style = $this->buildStyle($bg_image, $bg_color);
/* Headers RegExp Matching */
if (!is_array(folio_match_expression('folio_header', $content, 'shortcode'))) {
$slider = folio_match_expression('folio_header', $content, 'shortcode');
}
/* Carousel RegExp Matching */
if (!is_array(folio_match_expression('carousel_view', $content, 'attr'))) {
$view = folio_match_expression('carousel_view', $content, 'attr');
}
/* Map RegExp Matching */
if (!is_array(folio_match_expression('map_layout', $content, 'attr'))) {
$map = folio_match_expression('map_layout', $content, 'attr');
}
/* Checking is google map is CURVE or not RegExp Matching */
示例13: wp_enqueue_script
$classes .= ' parallax_hor';
wp_enqueue_script('us-hor-parallax');
}
}
$bg_overlay_html = '';
if (!empty($atts['us_bg_overlay_color'])) {
$classes .= ' with_overlay';
$bg_overlay_html = '<div class="l-section-overlay" style="background-color: ' . $atts['us_bg_overlay_color'] . '"></div>';
}
// Additional class set by a user in a shortcode attributes
if (!empty($atts['el_class'])) {
$classes .= ' ' . sanitize_html_class($atts['el_class']);
}
// Special VC hooks
if (function_exists('get_row_css_class')) {
$classes .= ' ' . get_row_css_class();
}
if (!empty($atts['css']) and preg_match('~\\{([^\\}]+?)\\;?\\}~', $atts['css'], $matches)) {
// We cannot use VC's method directly for rows: as it uses !important values, so we're moving the defined css
// that don't duplicate the theme's features to inline style attribute.
$vc_css_rules = array_map('trim', explode(';', $matches[1]));
$overloaded_params = array('background', 'background-position', 'background-repeat', 'background-size');
foreach ($vc_css_rules as $vc_css_rule) {
$vc_css_rule = explode(':', $vc_css_rule);
if (count($vc_css_rule) == 2 and !in_array($vc_css_rule[0], $overloaded_params)) {
$inner_css .= $vc_css_rule[0] . ':' . $vc_css_rule[1] . ';';
}
}
}
$classes = apply_filters('vc_shortcodes_css_class', $classes, $shortcode_base, $atts);
// Preparing html output
示例14: do_shortcode
}
break;
case 'img_fixed':
$row_style .= "background-attachment:fixed;background-repeat: no-repeat;";
break;
case 'hvideo':
$el_class .= "row-bg-video";
$video_style = '<div class="zo-bg-video">' . do_shortcode('[video autoplay="on" loop="on" preload="none" height="0" width="0" mp4="' . $bg_video_mp4 . '" webm="' . $bg_video_webm . '"]') . '</div>';
break;
}
$class_img_fixed = '';
if ($bg_style == 'img_fixed') {
$class_img_fixed = 'background-image-fixed';
}
$el_class = $this->getExtraClass($el_class);
$css_class = apply_filters(VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, 'wpb_row zo_' . $uqid . ' ' . $class_full_width . ' ' . $bg_effect . ' ' . $class_img_fixed . ' ' . $class_row_arrow . ' ' . $class_custom_bg_color . ' ' . $class_overlay_row . ' ' . ($this->settings('base') === 'zo_row_inner' ? 'zo_inner ' : '') . get_row_css_class() . $animation . $el_class . vc_shortcode_custom_css_class($css, ' '), $this->settings['base'], $atts);
$style = ' style ="' . $row_style . '"';
//$this->buildStyle();
?>
<div <?php
echo esc_attr($row_id);
?>
class="<?php
echo esc_attr($css_class);
?>
"<?php
echo esc_attr($row_data);
echo do_shortcode($style);
?>
>
<?php
示例15: shortcode_atts
* @var $content {String} Shortcode's inner content
*/
$atts = shortcode_atts(array('columns_type' => 'medium', 'el_id' => '', 'el_class' => '', 'css' => ''), $atts);
$class_name = '';
// Offset modificator
$class_name .= ' offset_' . $atts['columns_type'];
// Preserving additional class for inner VC rows
if ($shortcode_base == 'vc_row_inner') {
$class_name .= ' vc_inner';
}
// Additional class set by a user in a shortcode attributes
if (!empty($atts['el_class'])) {
$class_name .= ' ' . sanitize_html_class($atts['el_class']);
}
// Special VC hooks
if (function_exists('get_row_css_class')) {
$class_name .= ' ' . get_row_css_class();
}
if (function_exists('vc_shortcode_custom_css_class')) {
$class_name .= ' ' . vc_shortcode_custom_css_class($atts['css'], ' ');
}
$class_name = apply_filters('vc_shortcodes_css_class', $class_name, $shortcode_base, $atts);
$row_id_param = '';
$output = '<div class="g-cols wpb_row' . $class_name . '"';
if (!empty($atts['el_id'])) {
$output .= ' id="' . $atts['el_id'] . '"';
}
$output .= '>';
$output .= do_shortcode($content);
$output .= '</div>';
echo $output;