Changeset 1036989
- Timestamp:
- 12/02/2014 08:26:23 PM (11 years ago)
- Location:
- bootstrap-3-shortcodes/trunk
- Files:
-
- 4 edited
-
README.md (modified) (2 diffs)
-
bootstrap-shortcodes.php (modified) (6 diffs)
-
includes/help/README.html (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
bootstrap-3-shortcodes/trunk/README.md
r1035086 r1036989 549 549 ### Media Objects 550 550 [media] 551 [media-object pull="right"]551 [media-object media="left"] 552 552 ... 553 553 [/media-object] … … 566 566 Parameter | Description | Required | Values | Default 567 567 --- | --- | --- | --- | --- 568 pull | Whether the image pulls to the left or right | optional | left, right | right 568 media | Whether the image pulls to the left or right | optional | left, right | right 569 pull | Whether the image pulls to the left or right *Deprecated, use only if your theme uses Bootstrap 3.2 or earlier* | optional | left, right | right 569 570 xclass | Any extra classes you want to add | optional | any text | none 570 571 data | Data attribute and value pairs separated by a comma. Pairs separated by pipe (see example at [Button Dropdowns](#button-dropdowns)). | optional | any text | none -
bootstrap-3-shortcodes/trunk/bootstrap-shortcodes.php
r1036891 r1036989 4 4 Plugin URI: http://wp-snippets.com/freebies/bootstrap-shortcodes or https://github.com/filipstefansson/bootstrap-shortcodes 5 5 Description: The plugin adds a shortcodes for all Bootstrap elements. 6 Version: 3.3. 36 Version: 3.3.4 7 7 Author: Filip Stefansson, Simon Yeldon, and Michael W. Delaney 8 8 Author URI: … … 1308 1308 $collapse_class = 'panel-collapse'; 1309 1309 $collapse_class .= ( $atts['active'] == 'true' ) ? ' in' : ' collapse'; 1310 1311 $a_class = ''; 1312 $a_class .= ( $atts['active'] == 'true' ) ? '' : 'collapsed'; 1310 1313 1311 1314 $parent = 'custom-collapse-'. $GLOBALS['collapsibles_count']; … … 1318 1321 <div class="panel-heading"> 1319 1322 <h4 class="panel-title"> 1320 <a class=" accordion-toggle" data-toggle="collapse" data-parent="#%3$s" href="#%4$s">%5$s</a>1323 <a class="%3$s" data-toggle="collapse" data-parent="#%4$s" href="#%5$s">%6$s</a> 1321 1324 </h4> 1322 1325 </div> 1323 <div id="% 4$s" class="%6$s">1324 <div class="panel-body">% 7$s</div>1326 <div id="%5$s" class="%7$s"> 1327 <div class="panel-body">%8$s</div> 1325 1328 </div> 1326 1329 </div>', 1327 1330 esc_attr( $panel_class ), 1328 1331 ( $data_props ) ? ' ' . $data_props : '', 1332 $a_class, 1329 1333 $parent, 1330 1334 $current_collapse, … … 1548 1552 1549 1553 $atts = shortcode_atts( array( 1550 "pull" => "left", 1554 "pull" => false, 1555 "media" => "left", 1551 1556 "xclass" => false, 1552 1557 "data" => false … … 1555 1560 $class = "media-object img-responsive"; 1556 1561 $class .= ($atts['xclass']) ? ' ' . $atts['xclass'] : ''; 1562 1563 $media_class =''; 1564 $media_class = ($atts['media']) ? 'media-' . $atts['media'] : ''; 1565 $media_class = ($atts['pull']) ? 'pull-' . $atts['pull'] : $media_class; 1557 1566 1558 1567 $return = ''; … … 1561 1570 $content = do_shortcode(preg_replace('/(<br>)+$/', '', $content)); 1562 1571 $return .= $this->scrape_dom_element($tag, $content, $class, '', $atts['data']); 1563 $return = '<span class=" media-' . esc_attr($atts['pull']). '">' . $return . '</span>';1572 $return = '<span class="' . $media_class . '">' . $return . '</span>'; 1564 1573 return $return; 1565 1574 } -
bootstrap-3-shortcodes/trunk/includes/help/README.html
r1035086 r1036989 1518 1518 <h3 id="media-objects">Media Objects</h3> 1519 1519 <pre><code>[media] 1520 [media-object pull="right"]1520 [media-object media="left"] 1521 1521 ... 1522 1522 [/media-object] … … 1566 1566 <tbody> 1567 1567 <tr> 1568 <td>media</td> 1569 <td>Whether the image pulls to the left or right</td> 1570 <td>optional</td> 1571 <td>left, right</td> 1572 <td>right</td> 1573 </tr> 1574 <tr> 1568 1575 <td>pull</td> 1569 <td>Whether the image pulls to the left or right </td>1576 <td>Whether the image pulls to the left or right <em>Deprecated, use only if your theme uses Bootstrap 3.2 or earlier</em></td> 1570 1577 <td>optional</td> 1571 1578 <td>left, right</td> -
bootstrap-3-shortcodes/trunk/readme.txt
r1036891 r1036989 4 4 Requires at least: 3.8 5 5 Tested up to: 4.0 6 Stable tag: 3.3. 36 Stable tag: 3.3.4 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 71 71 72 72 == Changelog == 73 74 = 3.3.4 = 75 * Restore Bootstrap 3.2 backwards compatibility for [media-object] shortcode, updated documentation to use Bootstrap 3.3 example, but offer 3.2 options. 76 * Add "collapsed" class to non-active [collapse] elements (thanks, Artem!) 73 77 74 78 = 3.3 =
Note: See TracChangeset
for help on using the changeset viewer.