Changeset 370939
- Timestamp:
- 04/09/2011 04:27:09 PM (15 years ago)
- Location:
- j-shortcodes/trunk
- Files:
-
- 2 edited
-
j-shortcodes.php (modified) (9 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
j-shortcodes/trunk/j-shortcodes.php
r368894 r370939 3 3 Plugin Name: J Shortcodes 4 4 Plugin URI: http://www.jshortcodes.com/ 5 Version: 1.40 45 Version: 1.405 6 6 Author: Gleb Esman, http://www.jshortcodes.com/ 7 7 Author URI: http://www.jshortcodes.com/ … … 9 9 */ 10 10 11 define('J_SHORTCODES_VERSION', '1.40 4');11 define('J_SHORTCODES_VERSION', '1.405'); 12 12 13 13 include (dirname(__FILE__) . '/j-include-all.php'); … … 587 587 $jbox_css_rules[] = "border-radius: {$radius_num}px;"; 588 588 } 589 590 if ($width) 591 $jbox_css_rules[] = "width:{$width}px;"; 592 589 593 if ($jbox_css) 590 594 $jbox_css_rules[] = rtrim ($jbox_css, ';') . ';'; 595 591 596 if ($vgradient) 592 597 { … … 1060 1065 /* 1061 1066 1062 [jtabs size="xxxsmall|xxsmall|xsmall|small|*normal" theme="blitzer|cupertino|overcast|*smoothness|vader"] 1067 [jtabs 1068 size="xxxsmall|xxsmall|xsmall|small|*normal" 1069 theme="blitzer|cupertino|overcast|*smoothness|vader" 1070 width="*" 1071 ] 1063 1072 Hello World:: 1064 1073 This is hello world. This … … 1079 1088 'theme' => 'smoothness', 1080 1089 'size' => 'normal', 1090 'width' => '', 1081 1091 ), 1082 1092 $atts)); … … 1098 1108 } 1099 1109 1110 $jtabs_styles_css = array(); 1111 if ($width) 1112 $jtabs_styles_css[] = "width:{$width}px"; 1113 1114 $jtabs_styles = implode (';', $jtabs_styles_css); 1115 if ($jtabs_styles) 1116 $jtabs_styles = "style=\"{$jtabs_styles};\""; 1117 1100 1118 $jtabs_template=<<<TTT 1101 <div class="{$size} jayq-all jayq-{$theme}" >1119 <div class="{$size} jayq-all jayq-{$theme}" {$jtabs_styles}> 1102 1120 <div class="jtabs"> 1103 1121 <ul> … … 1141 1159 /* 1142 1160 1143 [jaccordion size="xxxsmall|xxsmall|xsmall|small|*normal" theme="blitzer|cupertino|overcast|*smoothness|vader" active="*"] 1161 [jaccordion 1162 size="xxxsmall|xxsmall|xsmall|small|*normal" 1163 theme="blitzer|cupertino|overcast|*smoothness|vader" 1164 width="*" 1165 active="*" 1166 ] 1144 1167 Hello World:: 1145 1168 This is hello world. This … … 1161 1184 'size' => 'normal', 1162 1185 'active' => FALSE, // 1-based active panel 1186 'width' => '', 1163 1187 ), 1164 1188 $atts)); … … 1189 1213 $active_pane = ""; 1190 1214 1215 $jaccordion_styles_css = array(); 1216 if ($width) 1217 $jaccordion_styles_css[] = "width:{$width}px"; 1218 1219 $jaccordion_styles = implode (';', $jaccordion_styles_css); 1220 if ($jaccordion_styles) 1221 $jaccordion_styles = "style=\"{$jaccordion_styles};\""; 1222 1191 1223 $jtabs_template=<<<TTT 1192 <div class="jayq-all {$size} jayq-{$theme}" >1224 <div class="jayq-all {$size} jayq-{$theme}" {$jaccordion_styles} > 1193 1225 <div {$active_pane} class="jaccordion"> 1194 1226 {{{DIV_ELEMENTS}}} -
j-shortcodes/trunk/readme.txt
r368894 r370939 65 65 == Changelog == 66 66 67 = 1.405 = 68 * Added 'width' parameter to [jbox], [jtabs] and [jaccordion] shortcode. 69 67 70 = 1.404 = 68 71 * Update from beta to general release.
Note: See TracChangeset
for help on using the changeset viewer.