Plugin Directory

Changeset 1066521


Ignore:
Timestamp:
01/13/2015 12:13:54 AM (11 years ago)
Author:
kendsnyder
Message:

Fix settings for hiding post thumbnails, Intel bubble font. Bump to 3.8.3

Location:
right-intel/trunk
Files:
1 deleted
6 edited

Legend:

Unmodified
Added
Removed
  • right-intel/trunk/css/dynamic.css.php

    r1064178 r1066521  
    3636}
    3737if (@$_GET['use_oswald'] === '0') {
    38     $findReplace['font_face'] = 'Helvetica,Arial,sans-serif';
     38    $findReplace['font_face'] = 'inherit';
    3939}
    4040else {
  • right-intel/trunk/index.php

    r1064298 r1066521  
    55Plugin URI http://rightintel.com/home/wordpress
    66Description: The Right Intel Wordpress Plugin allows you to push posts from the Right Intel application to your WordPress blog
    7 Version: 3.8.2
     7Version: 3.8.3
    88Author: kendsnyder
    99Author URI: http://rightintel.com/home
  • right-intel/trunk/libs/Ri/Styling.php

    r1064178 r1066521  
    3232        $defaults = static::getDefaults();
    3333        foreach (self::$fields as $field) {
    34             $data[$field] = isset($overrides[$field]) ? trim($overrides[$field]) : get_option("right_intel_styling_$field") ?: $defaults[$field];
    35         }
    36         $data['cachebust'] = isset($overrides['cachebust']) ? $overrides['cachebust'] : get_option('right_intel_styling_last_modified') ?: $defaults[$field];
     34            $setValue = get_option("right_intel_styling_$field");
     35            $data[$field] = isset($overrides[$field]) ? trim($overrides[$field]) : (strval($setValue) === '' ? $defaults[$field] : $setValue);
     36        }
     37        $data['cachebust'] = isset($overrides['cachebust']) ? $overrides['cachebust'] : (get_option('right_intel_styling_last_modified') ?: $defaults[$field]);
    3738        return $data;
    3839    }
     
    111112                $classArray[] = 'right-intel-post';
    112113                $classArray[] = 'right-intel-id-' . $ri_post_id;
    113                 if ( get_option( 'right_intel_styling_image_display_type' ) == 'post_only' ) {
    114                     add_filter( 'post_thumbnail_html', function() { return ''; });
    115                 }       
    116114            }
    117115            if ( $ri_instance_id ) {
     
    121119        } );   
    122120        return $this;
     121    }
     122   
     123    public function setupPostThumbnails() {
     124        // hide post image dispaly if set to do so
     125        if ( get_option( 'right_intel_styling_image_display_type' ) == 'post_only' ) {
     126            add_filter( 'post_thumbnail_html', function($html) {
     127                global $post; // the post in the loop or on a detail page
     128                if ( ! $post || ! $post->ID ) {
     129                    // somehow we don't know which post we are on
     130                    return $html;
     131                }
     132                $ri_post_id = get_post_meta( $post->ID, 'ri_post_id', $asString=true );
     133                if ( $ri_post_id ) {   
     134                    // A Right Intel Post
     135                    return '';             
     136                }
     137                // A non-Right Intel post
     138                return $html;
     139            });
     140        }               
    123141    }
    124142   
  • right-intel/trunk/pages/views/list_accounts.tpl.php

    r1064178 r1066521  
    3232                        <label>Bubble Text Font</label>
    3333                        <select name="use_oswald" id="InputUseOswald">
    34                             <option value="1"<?php echo ($use_oswald==='0' ? '' : ' selected')?>>Right Intel Font</option>
     34                            <option value="1"<?php echo ($use_oswald!=='0' ? '' : ' selected')?>>Right Intel Font</option>
    3535                            <option value="0"<?php echo ($use_oswald==='0' ? ' selected' : '')?>>Paragraph default</option>
    3636                        </select>                       
     
    4141                    <?php if ($themeSupportsThumbnailAbovePost) { ?>
    4242                    <p id="WrapperImageDisplayType">
    43                         <label>Show Post Image</label>
     43                        <label>Show Post Image (if supported by your theme)</label>
    4444                        <select name="image_display_type" id="InputImageDisplayType">
    4545                            <option value="post_only"<?php echo ($image_display=='post_only' ? '' : ' selected')?>>Only below headline (Recommended)</option>
     
    5454                            <option value="left"<?php echo ($image_float=='left' ? '' : ' selected')?>>Float image to the left</option>
    5555                            <option value="right"<?php echo ($image_float=='right' ? ' selected' : '')?>>Float image to the right</option>
    56                             <option value="none"<?php echo ($image_float=='none' ? ' selected' : '')?>>Keep image above text</option>
     56                            <option value="none"<?php echo ($image_float=='none' ? ' selected' : '')?>>Keep image on its own row</option>
    5757                        </select>
    5858                    </p>
  • right-intel/trunk/readme.txt

    r1064298 r1066521  
    44Requires at least: 3.2
    55Tested up to: 4.1
    6 Stable tag: 3.8.2
     6Stable tag: 3.8.3
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
     
    7373== Changelog ==
    7474
    75 = Version 3.8.2 - January 9, 2015 =
     75= Version 3.8.3 - January 12, 2015 =
    7676* Built-in options for altering Intel Bubble styling including CSS-only bubbles
    7777* Support for media library
  • right-intel/trunk/right-intel.php

    r1064296 r1066521  
    55#
    66define('RI_VERSION', '20150109');
    7 define('RI_SEMVER', '3.8.2');
     7define('RI_SEMVER', '3.8.3');
    88define('RI_BASE_DIR', __DIR__);
    99define('RI_BASE_PAGE', __DIR__ . '/index.php');
     
    6969    return true;
    7070} );
    71 $router->addUpgradeHandler( '3.8.2', function() {
     71$router->addUpgradeHandler( '3.8.3', function() {
    7272    if (get_option('right_intel_has_connected_before') !== '1' && count(Ri_Credentials::findAll()) > 0) {       
    7373        update_option('right_intel_has_connected_before', '1');
     
    7979$styling->setupJs();
    8080$styling->setupBodyClass();
     81$styling->setupPostThumbnails();
    8182
    8283add_shortcode( 'right_intel_board', function( $attr ) {
Note: See TracChangeset for help on using the changeset viewer.