Plugin Directory

Changeset 1036989


Ignore:
Timestamp:
12/02/2014 08:26:23 PM (11 years ago)
Author:
FoolsRun
Message:

Version 3.3.4

Location:
bootstrap-3-shortcodes/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • bootstrap-3-shortcodes/trunk/README.md

    r1035086 r1036989  
    549549### Media Objects
    550550    [media]
    551       [media-object pull="right"]
     551      [media-object media="left"]
    552552        ...
    553553      [/media-object]
     
    566566Parameter | Description | Required | Values | Default
    567567--- | --- | --- | --- | ---
    568 pull | Whether the image pulls to the left or right | optional | left, right | right
     568media | Whether the image pulls to the left or right | optional | left, right | right
     569pull | 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
    569570xclass | Any extra classes you want to add | optional | any text | none
    570571data | 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  
    44Plugin URI: http://wp-snippets.com/freebies/bootstrap-shortcodes or https://github.com/filipstefansson/bootstrap-shortcodes
    55Description: The plugin adds a shortcodes for all Bootstrap elements.
    6 Version: 3.3.3
     6Version: 3.3.4
    77Author: Filip Stefansson, Simon Yeldon, and Michael W. Delaney
    88Author URI:
     
    13081308    $collapse_class = 'panel-collapse';
    13091309    $collapse_class .= ( $atts['active'] == 'true' )  ? ' in' : ' collapse';
     1310     
     1311    $a_class = '';
     1312    $a_class .= ( $atts['active'] == 'true' )  ? '' : 'collapsed';
    13101313
    13111314    $parent = 'custom-collapse-'. $GLOBALS['collapsibles_count'];
     
    13181321        <div class="panel-heading">
    13191322          <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>
    13211324          </h4>
    13221325        </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>
    13251328        </div>
    13261329      </div>',
    13271330      esc_attr( $panel_class ),
    13281331      ( $data_props ) ? ' ' . $data_props : '',
     1332      $a_class,
    13291333      $parent,
    13301334      $current_collapse,
     
    15481552
    15491553    $atts = shortcode_atts( array(
    1550       "pull"   => "left",
     1554      "pull"   => false,
     1555      "media"  => "left",
    15511556      "xclass" => false,
    15521557      "data"   => false
     
    15551560    $class = "media-object img-responsive";
    15561561    $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;     
    15571566     
    15581567    $return = '';
     
    15611570    $content = do_shortcode(preg_replace('/(<br>)+$/', '', $content));
    15621571    $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>';
    15641573    return $return;
    15651574  }
  • bootstrap-3-shortcodes/trunk/includes/help/README.html

    r1035086 r1036989  
    15181518<h3 id="media-objects">Media Objects</h3>
    15191519<pre><code>[media]
    1520   [media-object pull=&quot;right&quot;]
     1520  [media-object media=&quot;left&quot;]
    15211521    ...
    15221522  [/media-object]
     
    15661566<tbody>
    15671567<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>
    15681575<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>
    15701577<td>optional</td>
    15711578<td>left, right</td>
  • bootstrap-3-shortcodes/trunk/readme.txt

    r1036891 r1036989  
    44Requires at least: 3.8
    55Tested up to: 4.0
    6 Stable tag: 3.3.3
     6Stable tag: 3.3.4
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    7171
    7272== 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!)
    7377
    7478= 3.3 =
Note: See TracChangeset for help on using the changeset viewer.