• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP get_row_css_class函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



在下文中一共展示了get_row_css_class函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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;
 }
开发者ID:unisexx,项目名称:drtooth,代码行数:12,代码来源:row.php


示例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;
开发者ID:AdriC1705,项目名称:keepmoving,代码行数:20,代码来源:vc_row.php


示例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;
开发者ID:kaydwithers,项目名称:crossfittanjongpagar,代码行数:27,代码来源:vc_row.php


示例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";
//.........这里部分代码省略.........
开发者ID:estrategasdigitales,项目名称:dictobas,代码行数:101,代码来源:shortcode-row.php


示例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;
开发者ID:michaelfisher,项目名称:recrate,代码行数:31,代码来源:vc_row.php


示例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 . '"';
}
开发者ID:ksingh812,项目名称:thub-old,代码行数:31,代码来源:vc_row.php


示例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);
开发者ID:jesusone,项目名称:wp_astro,代码行数:31,代码来源:vc_row.php


示例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');
开发者ID:ConceptHaus,项目名称:backup,代码行数:31,代码来源:vc_row.php


示例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) {
开发者ID:VanessaGarcia-Freelance,项目名称:TheEmporiumGroup,代码行数:31,代码来源:vc_row-3.0.0.php


示例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);
}
开发者ID:pivotlearning,项目名称:wpsite,代码行数:31,代码来源:vc_row.php


示例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;
开发者ID:kaydwithers,项目名称:crossfittanjongpagar,代码行数:13,代码来源:vc_row_inner.php


示例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 */
开发者ID:javalidigital,项目名称:multipla,代码行数:31,代码来源:vc_row.php


示例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
开发者ID:afquinterog,项目名称:zephyr,代码行数:31,代码来源:vc_row.php


示例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 
开发者ID:lenguyenitc,项目名称:donations,代码行数:31,代码来源:vc_row.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;
开发者ID:afquinterog,项目名称:zephyr,代码行数:31,代码来源:vc_row_inner.php


示例16: extract

<?php

$output = $el_class = '';
extract(shortcode_atts(array('el_class' => '', 'type' => '', 'full_width' => 'false', 'bg_color' => '', 'bg_image' => '', 'bg_position' => '', 'bg_repeat' => '', 'bg_cover' => '0', 'bg_attachment' => 'false', 'padding_left' => '', 'padding_right' => '', 'bg_video_src_mp4' => '', 'bg_video_src_ogv' => '', 'bg_video_src_webm' => '', 'padding_top' => '', 'padding_bottom' => '', 'margin_top' => '', 'margin_bottom' => '', 'animation' => '', 'parallax_speed' => '', 'enable_parallax' => '', 'anchor' => '', 'min_height' => ''), $atts));
// wp_enqueue_style( 'js_composer_front' );
wp_enqueue_script('wpb_composer_front_js');
// wp_enqueue_style('js_composer_custom_css');
$full_width = apply_filters('dt_sanitize_flag', $full_width);
$el_class = $this->getExtraClass($el_class);
$row_classes = get_row_css_class();
if (false === strpos($row_classes, 'vc_row-fluid')) {
    $row_classes .= ' vc_row-fluid';
}
$css_class = apply_filters(VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, 'wpb_row ' . $row_classes . $el_class, $this->settings['base']);
$container_style = array();
$container_data_attr = array();
$anchor = str_replace('#', '', $anchor);
$anchor = $anchor ? $anchor : '';
if ($full_width) {
    $css_class .= ' full-width-wrap';
    $container_style[] = 'padding-left: ' . intval($padding_left) . 'px';
    $container_style[] = 'padding-right: ' . intval($padding_right) . 'px';
}
if ($type) {
    $bg_cover = apply_filters('dt_sanitize_flag', $bg_cover);
    $bg_attachment = in_array($bg_attachment, array('false', 'fixed', 'true')) ? $bg_attachment : 'false';
    $style = array();
    if ($bg_color) {
        $style[] = 'background-color: ' . $bg_color;
    }
    if ($bg_image && !in_array($bg_image, array('none'))) {
开发者ID:noman90rauf,项目名称:wp-content,代码行数:31,代码来源:vc_row.php


示例17: vc_theme_vc_row_inner

 function vc_theme_vc_row_inner($atts, $content = null)
 {
     $output = $section_class = $el_class = $video = $bg_image = $bg_color = $full_width = $bg_image_repeat = $font_color = $padding = $margin_bottom = $css = '';
     extract(shortcode_atts(array('el_class' => '', 'full_width' => 0, 'bg_image' => '', 'bg_color' => '', 'bg_image_repeat' => '', 'font_color' => '', 'padding' => '', 'margin_bottom' => '', 'parallax' => 0, 'video_poster' => '', 'video_mp4' => '', 'video_webm' => '', 'video_ogv' => '', 'css' => '', 'css_outer' => ''), $atts));
     wp_enqueue_style('js_composer_front');
     wp_enqueue_script('wpb_composer_front_js');
     wp_enqueue_style('js_composer_custom_css');
     $el_class = ' ' . $el_class;
     $css_class = apply_filters(VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, 'row-fluid ' . get_row_css_class() . $el_class . vc_shortcode_custom_css_class($css, ' '));
     $style = buildStyle($bg_image, $bg_color, $bg_image_repeat, $font_color, $padding, $margin_bottom);
     $output .= '<div class="' . $css_class . '"' . $style . '>';
     $output .= wpb_js_remove_wpautop($content);
     $output .= '</div>';
     return $output;
 }
开发者ID:MrMuzik,项目名称:ar4tupgrade,代码行数:15,代码来源:vc.php


示例18: extract

<?php

$output = $el_class = $bg_image = $bg_color = $bg_image_repeat = $margin_bottom = $container_class = $mar_bottom = $mar_top = $style_check = $section_style = $row_style = '';
extract(shortcode_atts(array('el_class' => '', 'el_id' => '', 'fullwidth' => '', 'bg_color' => '', 'bg_image' => '', 'bg_image_size' => '', 'bg_image_repeat' => '', 'bg_image_attachment' => '', 'bg_parallax' => '', 'bg_image_parallax_start' => '', 'bg_image_parallax_end' => '', 'remove_border' => '', 'no_margin' => '', 'margin_top' => '', 'margin_bottom' => ''), $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, 'row ' . ($this->settings('base') === 'vc_row_inner' ? 'row_inner ' : ' ') . get_row_css_class(), $this->settings['base'], $atts);
$style_bg_color = !empty($bg_color) ? 'background-color:' . $bg_color . '; ' : '';
$style_bg_image = !empty($bg_image) ? 'background-image:url(' . wp_get_attachment_url($bg_image) . '); ' : '';
$style_bg_image_repeat = !empty($bg_image_repeat) ? 'background-repeat:' . $bg_image_repeat . '; ' : '';
$style_bg_image_attachment = !empty($bg_image_attachment) ? 'background-attachment:' . $bg_image_attachment . '; ' : '';
$style_bg_image_size = !empty($bg_image_size) ? 'background-size:' . $bg_image_size . '; ' : '';
$style_check = $style_bg_color . $style_bg_image . $style_bg_image_repeat . $style_bg_image_attachment . $style_bg_image_size;
if ($style_check != '') {
    $section_style = 'style="' . $style_bg_color . $style_bg_image . $style_bg_image_repeat . $style_bg_image_attachment . $style_bg_image_size . '"';
}
if ($fullwidth == 'yes') {
    $container_class = '-fluid';
}
if (!empty($margin_bottom)) {
    $mar_bottom = 'margin-bottom: ' . (preg_match('/(px|em|\\%|pt|cm)$/', $margin_bottom) ? $margin_bottom : $margin_bottom . 'px') . '; ';
}
if (!empty($margin_top)) {
    $mar_top = 'margin-top: ' . (preg_match('/(px|em|\\%|pt|cm)$/', $margin_top) ? $margin_top : $margin_top . 'px') . '; ';
}
if (!empty($margin_bottom) || !empty($margin_top)) {
    $row_style = 'style="' . $mar_top . $mar_bottom . '"';
}
if ($this->settings('base') != 'vc_row_inner') {
开发者ID:Calraiser,项目名称:portfolio,代码行数:31,代码来源:vc_row.php


示例19: apply_filters

if ($post_full_width != 'boxed') {
    if ($full_width == 'true') {
        $cl_full_width = 'no-container';
    } else {
        $enable_container = $cl_full_width = 'container';
    }
}
if ($full_width == 'true') {
    $cl_full_width .= ' cs-row-fullwidth';
    $main_full_width = ' cs-row-fullwidth-wrap';
} else {
    $cl_full_width .= ' cs-row-container';
    $main_full_width = ' cs-row-container-wrap';
}
/* row class */
$css_class = apply_filters(VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, 'wpb_row clearfix ' . get_row_css_class() . $el_class . $responsive . $row_effect_backgound_class . $main_full_width . vc_shortcode_custom_css_class($css, ' '), $this->settings['base'], $atts);
/* Link Color */
$link_style = "";
$class_link = vc_shortcode_custom_css_class($css, '.');
if ($row_link_color || $row_link_color_hover || $row_head_color) {
    $link_style .= '<style type="text/css">';
    if ($row_head_color) {
        $link_style .= "" . $class_link . " h1," . $class_link . " h2," . $class_link . " h3," . $class_link . " h4," . $class_link . " h5," . $class_link . " h6 {color: {$row_head_color}}";
    }
    if ($row_link_color) {
        $link_style .= "" . $class_link . " a{color: {$row_link_color}}";
    }
    if ($row_link_color_hover) {
        $link_style .= "" . $class_link . " a:hover{color: {$row_link_color_hover}}";
    }
    $link_style .= '</style>';
开发者ID:daanbakker1995,项目名称:vanteun,代码行数:31,代码来源:vc_row.php


示例20: sprintf

    }
    if ('' !== $badge_fs) {
        $badge_style_rules['font-size'] = "{$badge_fs}px";
    }
    $badge_style = sprintf('style="%s"', appica_generate_css($badge_style_rules));
    $badge_classes = appica_get_class_set(array('badge', 'right' === $badge_align ? 'badge-reverse' : '', '' === $badge_cc && 'default' === $badge_pc ? '' : $badge_pc, $badge_class));
    $badge_icon = '' === $badge_cc ? sprintf('<span class="icon"><i class="%s"></i></span>', $badge_icon) : sprintf('<span class="icon" style="background: %1$s !important;"><i class="%2$s"></i></span>', $badge_cc, $badge_icon);
    // 1 - title, 2 - icon, 3 - class set, 4 - inline css
    $badge_tpl = 'right' === $badge_align ? '<div class="%3$s" %4$s>%1$s%2$s</div>' : '<div class="%3$s" %4$s>%2$s%1$s</div>';
    $badge_html = sprintf($badge_tpl, $badge_title, $badge_icon, $badge_classes, $badge_style);
    unset($badge, $badge_align, $badge_title, $badge_cc, $badge_pc, $badge_class, $badge_classes, $badge_style, $badge_icon, $badge_tpl, $badge_btc, $badge_tc, $badge_style_rules);
}
/*
 * Prepare ROW class set
 */
$row_classes = appica_get_class_set(array('fw-bg', 'vc_row', get_row_css_class(), $is_inner ? 'vc_inner ' : '', $row_custom_css_class, $this->getExtraClass($el_class), 'light' === $content_color ? 'light-color' : '', $overlay ? 'overlay' : '', $is_overlay_part ? 'partial-overlay' : ''));
$row_classes = apply_filters(VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, $row_classes, $this->settings['base'], $atts);
/*
 * Start output .vc_row
 * 1 - ID, 2 - classes, 3 - overlay css, 4 - badge
 */
$output .= sprintf('<div id="%1$s" class="%2$s" data-vc-full-width="true" data-vc-stretch-content="true" data-overlay="%3$s">', esc_attr($uniq_id), $row_classes, $overlay_style);
// wrap to .container, if need
if (false === $is_inner && $is_container) {
    $output .= sprintf('<div class="container">%s<div class="row">', $badge_html);
}
$output .= wpb_js_remove_wpautop($content);
if (false === $is_inner && $is_container) {
    $output .= '</div></div>';
}
$output .= '</div><div class="vc_row-full-width"></div>';
开发者ID:narendra-addweb,项目名称:m1,代码行数:31,代码来源:vc_row.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP get_row_layout函数代码示例发布时间:2022-05-15
下一篇:
PHP get_row_count函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap