Changeset 1333512
- Timestamp:
- 01/22/2016 08:16:57 AM (10 years ago)
- Location:
- bcorp-shortcodes/trunk
- Files:
-
- 3 edited
-
bcorp_shortcodes.php (modified) (4 diffs)
-
bcorp_shortcodes_data.php (modified) (2 diffs)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
bcorp-shortcodes/trunk/bcorp_shortcodes.php
r1333393 r1333512 4 4 Plugin URI: http://shortcodes.bcorp.com 5 5 Description: Advanced word press shortcodes for use with any wordpress theme. 6 Version: 0.1 76 Version: 0.18 7 7 Author: Tim Brattberg 8 8 Author URI: http://bcorp.com … … 375 375 /* [bcorp_icon_box] 376 376 * title 377 * size (h1,h2,h3,h4,h5,h6)377 * heading^ 378 378 * headingcolor (heading,font,altfont,link,custom) 379 379 * ->custom … … 392 392 */ 393 393 $data=$GLOBALS['bcorp_shortcodes_data']->bcorp_sanitize_data($tag,$atts); 394 if ($data['heading'] == 'default') $data['heading'] = 'h1'; 395 if ($data['heading'] == 'custom') {$data['heading']='h1'; $customfontsize=' font-size:'.$data['headingsize'].';'; } else { 396 $customfontsize=''; 397 } 394 398 if ($data['background']=='alt') $alt = ' bcorp-alt-background'; else $alt=''; 395 399 if ($data['background']=='custom') $bgcolor = ' background-color:'.$data['backgroundcolor'].';'; else $bgcolor =''; … … 419 423 420 424 return '<div class="bcorp-icon-box'.$alt.'" style="'.$bgcolor.$padding.'"> 421 <div class="bcorp-icon-box-title'.$headingcolor.'"'.$headingcustomcolor.'><'.$data[' size'].' class="bcorp-heading bcorp-heading"'.$align.'>'.$icon.$data['title'].'</'.$data['size'].'></div>425 <div class="bcorp-icon-box-title'.$headingcolor.'"'.$headingcustomcolor.'><'.$data['heading'].' class="bcorp-heading bcorp-heading"'.$align.' style="'.$customfontsize.'">'.$icon.$data['title'].'</'.$data['heading'].'></div> 422 426 <div class="bcorp-icon-box-content'.$textcolor.'"'.$textcustomcolor.'>'.do_shortcode($content).'</div> 423 427 </div>'; -
bcorp-shortcodes/trunk/bcorp_shortcodes_data.php
r1333393 r1333512 1035 1035 "title"=>"Icon Box", 1036 1036 "admin_icon"=>"", 1037 "admin_default"=>'<div class="bcve-bcorp_icon_box ">1038 <span class="bcve-bcorp_icon_box-icon bcve-bcorp_heading-size-h3" aria-hidden="true" data-icon=""></span>1039 <span class="bcve-bcorp_icon_box-title bcve-bcorp_heading-text bcve-bcorp_heading-size-h3">Icon Box - Edit Me</span>1037 "admin_default"=>'<div class="bcve-bcorp_icon_box bcve-bcorp_heading-heading-h1"> 1038 <span class="bcve-bcorp_icon_box-icon" aria-hidden="true" data-icon=""></span> 1039 <span class="bcve-bcorp_icon_box-title bcve-bcorp_heading-text">Icon Box - Edit Me</span> 1040 1040 <div class="bcve-bcorp_icon_box-textblock"><p>Content - Edit Me</p></div> 1041 1041 </div>', … … 1045 1045 'type'=>'textfield', 1046 1046 'default' =>''), 1047 'size'=>array( 1048 'name'=>'Size', 1049 'type'=>'dropdown', 1050 'default'=>'h1', 1051 'values'=>array( 1052 'h1'=>'Heading 1', 1053 'h2'=>'Heading 2', 1054 'h3'=>'Heading 3', 1055 'h4'=>'Heading 4', 1056 'h5'=>'Heading 5', 1057 'h6'=>'Heading 6')), 1058 'headingcolor'=>array( 1059 'name'=>'Heading Color', 1060 'admin_tab'=>'Colors', 1061 'type'=>'dropdown', 1062 'default'=>'heading', 1063 'dependents'=>array( 1064 'custom'=>array('headingcustomcolor')), 1065 'values'=>array( 1066 'heading'=>'Heading Color', 1067 'font'=>'Main Font Color', 1068 'altfont'=>'Alternate Font Color', 1069 'link'=>'Link Color', 1070 'custom'=>'Custom Color')), 1047 'heading'=>'heading', 1048 'headingcolor'=>array( 1049 'name'=>'Heading Color', 1050 'admin_tab'=>'Colors', 1051 'type'=>'dropdown', 1052 'default'=>'heading', 1053 'dependents'=>array( 1054 'custom'=>array('headingcustomcolor')), 1055 'values'=>array( 1056 'heading'=>'Heading Color', 1057 'font'=>'Main Font Color', 1058 'altfont'=>'Alternate Font Color', 1059 'link'=>'Link Color', 1060 'custom'=>'Custom Color')), 1071 1061 'headingcustomcolor'=>array( 1072 1062 'name'=>'Heading Custom Color', -
bcorp-shortcodes/trunk/readme.txt
r1333393 r1333512 5 5 Requires at least: 4.2.0 6 6 Tested up to: 4.4.1 7 Stable tag: 0.1 77 Stable tag: 0.18 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/old-licenses/gpl-2.0.html … … 72 72 == Changelog == 73 73 74 = 0.18 = 75 Updates to [icon_box] shortcode. 76 74 77 = 0.17 = 75 78 Added [icon_box] shortcode. … … 98 101 == Upgrade Notice == 99 102 103 = 0.18 = 104 Updates to [icon_box] shortcode. 105 100 106 = 0.17 = 101 107 Added [icon_box] shortcode.
Note: See TracChangeset
for help on using the changeset viewer.