WordPress.org

Plugin Directory

Changeset 1734923


Ignore:
Timestamp:
09/24/17 13:04:30 (3 months ago)
Author:
mpntod
Message:

Changing auto-calc switches to be more consistent with other switches

Location:
rotatingtweets/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • rotatingtweets/trunk/readme.txt

    r1734918 r1734923  
    9393    * `shuffle` = `'0'` or `'1'` - shuffle the order that Tweets display - default is `'0'` 
    9494    * `merge_cache` = `'0'` or `'1'` - switches caching of searches on or off - default is `'1'` (i.e. on) 
    95     * `auto_height` = `'-1'` or `'calc'` - switches auto-height calculation of the Rotating Tweets container on or off - default is `'calc'` 
     95    * `auto_height` = `'0'` or `'1'` - switches auto-height calculation of the Rotating Tweets container on or off - default is `'1'` (i.e. on) 
    9696 
    9797* **Caching** 
  • rotatingtweets/trunk/rotatingtweets.php

    r1734918 r1734923  
    15441544    $tweet_count = max(1,intval($args['tweet_count'])); 
    15451545    $timeout = max(intval($args['timeout']),0); 
    1546     if( isset($args['auto_height']) && ($args['auto_height'] === false || $args['auto_height'] == -1 )): 
     1546    echo "<!-- auto-height ".$args['auto_height']." -->"; 
     1547    if( isset($args['auto_height']) && strtolower($args['auto_height']) != "calc" && $args['auto_height'] != 1 ): 
    15471548        $auto_height = -1; 
    15481549    else: 
Note: See TracChangeset for help on using the changeset viewer.