limited_post_text_inline_style

The WordPress Core limited post text inline style function.

Description

limited_post_text_inline_style( $atts ); 

Parameters (1)

0. $atts
The atts.

Usage

  1. if ( !function_exists( 'limited_post_text_inline_style' ) ) { 
  2. require_once '/facebook-feed-shortcode.php'; 
  3.  
  4. // The atts. 
  5. $atts = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = limited_post_text_inline_style($atts); 
  9.  

Defined (1)

The function is defined in the following location(s).

/facebook-feed-shortcode.php  
  1. function limited_post_text_inline_style($atts) 
  2. $style_wrapper = ' style=" '; 
  3. if ( !empty($atts['post_text_size']) && $atts['post_text_size'] != 'inherit' ) $style_wrapper .= 'font-size:' . $atts['post_text_size'] . 'px;'; 
  4. if ( !empty($atts['line_height']) && $atts['line_height'] != 'inherit' ) $style_wrapper .= 'line-height:' . $atts['line_height'].'px;'; 
  5. if ( !empty($atts['post_text_align']) && $atts['post_text_align'] != 'inherit' ) $style_wrapper .= 'text-align:' . $atts['post_text_align'].';'; 
  6. if ( !empty($atts['post_text_weight']) && $atts['post_text_weight'] != 'inherit' ) $style_wrapper .= 'font-weight:' . $atts['post_text_weight'].';'; 
  7. if ( !empty($atts['post_text_color'])) $style_wrapper .= 'color:' . $atts['post_text_color'].';'; 
  8. if ( !empty($atts['post_background'])) $style_wrapper .= 'background:' . $atts['post_background'].';'; 
  9. $style_wrapper .= ' " '; 
  10.  
  11. return $style_wrapper;