queue as $script ) : if ( preg_match('/\b(\w*bootstrap\w*)\b/', $script, $matches) ) return true; endforeach; return false; } function fruitful_is_bootstrap_css_loaded() { global $wp_styles; foreach( $wp_styles->queue as $style ) : if ( preg_match('/\b(\w*bootstrap\w*)\b/', $style, $matches) ) return true; endforeach; return false; } function fruitful_description_box ($atts, $content = null) { $out = ''; extract(shortcode_atts(array( 'id' => '', 'style' => '', 'shadowtype' => '' ), $atts, 'fruitful_dbox')); $id = 'desc-box-' . rand( 1, 100 ); if (wp_is_mobile()) { $style = ' font-size: 20px; text-transform : uppercase; text-align: center; font-weight: 300; line-height: 1.2;'; } else { $style = ' font-size: 40px; text-transform : uppercase; text-align: center; font-weight: 300; line-height: 1.2;'; } if (!empty($atts['id'])) { $id = sanitize_html_class($atts['id']); } if (!empty($atts['style'])) { $style = esc_html($atts['style']); } if (!empty($atts['shadowtype'])){ $type = esc_html($atts['shadowtype']); } $out .= '
\s*
%', '', $content ); $Old = array( '