Changeset 1066521
- Timestamp:
- 01/13/2015 12:13:54 AM (11 years ago)
- Location:
- right-intel/trunk
- Files:
-
- 1 deleted
- 6 edited
-
css/dynamic.css.php (modified) (1 diff)
-
index.php (modified) (1 diff)
-
libs/Ri/Styling.php (modified) (3 diffs)
-
pages/views/list_accounts.tpl.php (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
-
right-intel.php (modified) (3 diffs)
-
tpl (deleted)
Legend:
- Unmodified
- Added
- Removed
-
right-intel/trunk/css/dynamic.css.php
r1064178 r1066521 36 36 } 37 37 if (@$_GET['use_oswald'] === '0') { 38 $findReplace['font_face'] = ' Helvetica,Arial,sans-serif';38 $findReplace['font_face'] = 'inherit'; 39 39 } 40 40 else { -
right-intel/trunk/index.php
r1064298 r1066521 5 5 Plugin URI http://rightintel.com/home/wordpress 6 6 Description: The Right Intel Wordpress Plugin allows you to push posts from the Right Intel application to your WordPress blog 7 Version: 3.8. 27 Version: 3.8.3 8 8 Author: kendsnyder 9 9 Author URI: http://rightintel.com/home -
right-intel/trunk/libs/Ri/Styling.php
r1064178 r1066521 32 32 $defaults = static::getDefaults(); 33 33 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]); 37 38 return $data; 38 39 } … … 111 112 $classArray[] = 'right-intel-post'; 112 113 $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 }116 114 } 117 115 if ( $ri_instance_id ) { … … 121 119 } ); 122 120 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 } 123 141 } 124 142 -
right-intel/trunk/pages/views/list_accounts.tpl.php
r1064178 r1066521 32 32 <label>Bubble Text Font</label> 33 33 <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> 35 35 <option value="0"<?php echo ($use_oswald==='0' ? ' selected' : '')?>>Paragraph default</option> 36 36 </select> … … 41 41 <?php if ($themeSupportsThumbnailAbovePost) { ?> 42 42 <p id="WrapperImageDisplayType"> 43 <label>Show Post Image </label>43 <label>Show Post Image (if supported by your theme)</label> 44 44 <select name="image_display_type" id="InputImageDisplayType"> 45 45 <option value="post_only"<?php echo ($image_display=='post_only' ? '' : ' selected')?>>Only below headline (Recommended)</option> … … 54 54 <option value="left"<?php echo ($image_float=='left' ? '' : ' selected')?>>Float image to the left</option> 55 55 <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> 57 57 </select> 58 58 </p> -
right-intel/trunk/readme.txt
r1064298 r1066521 4 4 Requires at least: 3.2 5 5 Tested up to: 4.1 6 Stable tag: 3.8. 26 Stable tag: 3.8.3 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/old-licenses/gpl-2.0.html … … 73 73 == Changelog == 74 74 75 = Version 3.8. 2 - January 9, 2015 =75 = Version 3.8.3 - January 12, 2015 = 76 76 * Built-in options for altering Intel Bubble styling including CSS-only bubbles 77 77 * Support for media library -
right-intel/trunk/right-intel.php
r1064296 r1066521 5 5 # 6 6 define('RI_VERSION', '20150109'); 7 define('RI_SEMVER', '3.8. 2');7 define('RI_SEMVER', '3.8.3'); 8 8 define('RI_BASE_DIR', __DIR__); 9 9 define('RI_BASE_PAGE', __DIR__ . '/index.php'); … … 69 69 return true; 70 70 } ); 71 $router->addUpgradeHandler( '3.8. 2', function() {71 $router->addUpgradeHandler( '3.8.3', function() { 72 72 if (get_option('right_intel_has_connected_before') !== '1' && count(Ri_Credentials::findAll()) > 0) { 73 73 update_option('right_intel_has_connected_before', '1'); … … 79 79 $styling->setupJs(); 80 80 $styling->setupBodyClass(); 81 $styling->setupPostThumbnails(); 81 82 82 83 add_shortcode( 'right_intel_board', function( $attr ) {
Note: See TracChangeset
for help on using the changeset viewer.