Changeset 1230794
- Timestamp:
- 08/25/2015 10:12:21 PM (11 years ago)
- Location:
- white-bracket-theme-options
- Files:
-
- 12 added
- 3 edited
-
tags/1.3.1 (added)
-
tags/1.3.1/admin (added)
-
tags/1.3.1/admin/admin.php (added)
-
tags/1.3.1/admin/images (added)
-
tags/1.3.1/admin/images/toggle-content.png (added)
-
tags/1.3.1/css (added)
-
tags/1.3.1/css/white-bracket-theme-options.css (added)
-
tags/1.3.1/js (added)
-
tags/1.3.1/js/white-bracket-theme-options.js (added)
-
tags/1.3.1/readme.txt (added)
-
tags/1.3.1/white-bracket-functions.php (added)
-
tags/1.3.1/white-bracket-theme-options.php (added)
-
trunk/readme.txt (modified) (1 diff)
-
trunk/white-bracket-functions.php (modified) (3 diffs)
-
trunk/white-bracket-theme-options.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
white-bracket-theme-options/trunk/readme.txt
r1228137 r1230794 45 45 == Changelog == 46 46 47 = 1.3.1 = 48 * Automatically add 'px' to generated css, if it hasn't been specified 49 47 50 = 1.3.0 = 48 51 * Added in the ability for paragraph tags to be removed from the shortcode output. -
white-bracket-theme-options/trunk/white-bracket-functions.php
r1228137 r1230794 36 36 $li_settings = get_option('white_bracket_setting_li'); 37 37 38 $output = '<!-- ADDED BY WHITE BRACKET THEME OPTIONS -->';39 $output .= '<style type="text/css">' ;38 $output = '<!-- ADDED BY WHITE BRACKET THEME OPTIONS START -->'.PHP_EOL; 39 $output .= '<style type="text/css">'.PHP_EOL; 40 40 if($h1_settings): 41 41 $output .= add_white_bracket_css( 'h1', $h1_settings ); … … 65 65 $output .= add_white_bracket_css( 'li', $li_settings ); 66 66 endif; 67 $output .= '</style>' ;68 $output .= '<!-- ADDED BY WHITE BRACKET THEME OPTIONS -->';67 $output .= '</style>'.PHP_EOL; 68 $output .= '<!-- ADDED BY WHITE BRACKET THEME OPTIONS END -->'.PHP_EOL; 69 69 70 70 if( $output != '<!-- ADDED BY WHITE BRACKET THEME OPTIONS --><style type="text/css"></style><!-- ADDED BY WHITE BRACKET THEME OPTIONS -->' ): … … 79 79 $value = unserialize($setting); 80 80 if( $value["font-size"] || $value["colour"] ): 81 $output = $tag.'{font-size:'.$value["font-size"].'; color:'.$value["colour"].';}'; 81 $font_size = $value["font-size"]; 82 if( stripos($font_size, 'px') > 0 ): 83 $output = $tag.'{font-size:'.$value["font-size"].' !important; color:'.$value["colour"].' !important;}'.PHP_EOL; 84 else: 85 $output = $tag.'{font-size:'.$value["font-size"].'px !important; color:'.$value["colour"].' !important;}'.PHP_EOL; 86 endif; 82 87 else: 83 88 $output = ''; -
white-bracket-theme-options/trunk/white-bracket-theme-options.php
r1228137 r1230794 4 4 * Plugin Name: White Bracket Theme Options 5 5 * Plugin URI: 6 * Description: Lets you create global content/global options. Perfect for creating content you wantto appear in multiple places around the site, and edit it in one place.7 * Version: 1.3. 06 * Description: Lets you create global content/global options. Perfect for creating content to appear in multiple places around the site, and edit it in one place. 7 * Version: 1.3.1 8 8 * Author: White Bracket 9 9 * Author URI: http://www.white-bracket.co.uk
Note: See TracChangeset
for help on using the changeset viewer.