Ejemplo n.º 1
0
 /**
  * Convert Typography style to correct classname
  *
  * @since 2.0.2
  */
 private function parse_typography_style($value)
 {
     if (function_exists('wpex_typography_style_class')) {
         $this->atts['typography_style'] = wpex_typography_style_class($this->atts['typography_style']);
     }
 }
Ejemplo n.º 2
0
$wrapper_attributes = array();
// Add classes
$css_classes = array($this->getExtraClass($el_class), 'wpb_column', 'vc_column_container', $width);
if (!empty($css_animation)) {
    $css_classes[] = $this->getCSSAnimation($css_animation);
}
if (!empty($visibility)) {
    $css_classes[] = $visibility;
}
if (!empty($style) && 'default' != $style) {
    $css_classes[] = $style . '-column';
}
if (!empty($typo_style) && empty($typography_style)) {
    $css_classes[] = wpex_typography_style_class($typo_style);
} elseif (empty($typo_style) && !empty($typography_style)) {
    $css_classes[] = wpex_typography_style_class($typography_style);
}
/**** TOTAL INLINE CSS ***/
// Generate inline CSS
$inline_style = '';
// Min Height
if ($min_height) {
    $inline_style .= 'min-height:' . $min_height . ';';
}
// Inline css styles => Fallback For OLD Total Params
if (empty($css) && function_exists('vcex_parse_deprecated_row_css')) {
    $inline_style .= vcex_parse_deprecated_row_css($atts, 'inline_css');
}
// Add inline style to wrapper attributes
if ($inline_style) {
    $inline_style = ' style="' . $inline_style . '"';