Changeset 1461459
- Timestamp:
- 07/27/2016 03:24:13 PM (10 years ago)
- Location:
- sendpress/trunk
- Files:
-
- 7 edited
-
classes/class-sendpress-data.php (modified) (2 diffs)
-
classes/class-sendpress-template.php (modified) (4 diffs)
-
classes/views/class-sendpress-view-emails-create.php (modified) (2 diffs)
-
classes/views/class-sendpress-view-emails-edit.php (modified) (2 diffs)
-
classes/views/class-sendpress-view-subscribers-subscriber.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
-
sendpress.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
sendpress/trunk/classes/class-sendpress-data.php
r1441238 r1461459 451 451 foreach($link as $key => $url ){ 452 452 if($px !== 'text'){ 453 $output .= '<a href="'. $url .'" ><img src="'. SENDPRESS_URL .'img/'. $px .'/'. $key .'.png" alt="'. $key .'" /></a> ';453 $output .= '<a href="'. $url .'" ><img class="sp-social" src="'. SENDPRESS_URL .'img/'. $px .'/'. $key .'.png" alt="'. $key .'" /></a> '; 454 454 } else { 455 455 if($c > 1){ … … 1055 1055 $has_data = SendPress_Data::get_subscriber_meta( $subscriber_id, $meta_key, $list_id, true ); 1056 1056 if(empty($has_data)){ 1057 return SendPress_Data::add_subscriber_meta( $subscriber_id, $meta_key, $meta_value, $list_id , $app_only);1057 return SendPress_Data::add_subscriber_meta( $subscriber_id, $meta_key, $meta_value, $list_id ); 1058 1058 } else { 1059 return $wpdb->update( $meta_table, array('meta_value'=>$meta_value), array('subscriberID'=>$subscriber_id,'meta_key' => $meta_key , 'meta_value' => $has_data[0]->meta_value , 'app_only' => $app_only) );1059 return $wpdb->update( $meta_table, array('meta_value'=>$meta_value), array('subscriberID'=>$subscriber_id,'meta_key' => $meta_key , 'meta_value' => $has_data[0]->meta_value) ); 1060 1060 } 1061 1061 -
sendpress/trunk/classes/class-sendpress-template.php
r1456109 r1461459 552 552 ) 553 553 */ 554 $strings = array('sp-img','sp-social','sp-skip'); 554 555 555 556 foreach ($dom->getElementsByTagName('img') as $k => $img) { 556 557 $c = explode(' ',$img->getAttribute('class')); 557 558 $styled = $img->getAttribute('style'); 558 if( is_array($c) ){ 559 $replace_w = false; 560 $replace_h = false; 561 562 $width_r = $img->setAttribute('width',''); 563 $w_r = strpos($width_r, '%'); 564 if($w_r === false){ 565 $replace_w = true; 566 } 567 568 $height_r = $img->setAttribute('height',''); 569 $h_r = strpos($height_r, '%'); 570 if($h_r === false){ 571 $replace_h = true; 572 } 573 574 575 576 if( is_array($c) && ( count(array_intersect($c, $strings)) == 0 ) ){ 559 577 $replace_image = false; 560 578 if( in_array('alignleft',$c) ){ … … 564 582 $img->setAttribute('style','margin-right: 10px'); 565 583 $img->setAttribute('class', 'sp-img ' . implode(' ', $c) ); 566 $img->setAttribute('width',''); 567 $img->setAttribute('height',''); 584 if( $replace_w ){ 585 $img->setAttribute('width',''); 586 } 587 if( $replace_h ){ 588 $img->setAttribute('height',''); 589 } 568 590 } 569 591 … … 575 597 $img->setAttribute('style','margin-left: 10px'); 576 598 $img->setAttribute('class', 'sp-img ' . implode(' ', $c) ); 577 $img->setAttribute('width',''); 578 $img->setAttribute('height',''); 599 if( $replace_w ){ 600 $img->setAttribute('width',''); 601 } 602 if( $replace_h ){ 603 $img->setAttribute('height',''); 604 } 579 605 } 580 606 } 581 607 //Center any image that has not been updated.. 582 if( in_array('aligncenter',$c) || ( $replace_image ==false && !in_array('sp-img',$c) )){608 if( in_array('aligncenter',$c) || $replace_image ==false ){ 583 609 584 610 $table = $dom->createElement('table'); … … 600 626 $img_r = $img->clonenode(true); 601 627 $img_r->setAttribute('align','center'); 602 $img_r->setAttribute('width',''); 603 $img_r->setAttribute('height',''); 628 if( $replace_w ){ 629 $img_r->setAttribute('width',''); 630 } 631 if( $replace_h ){ 632 $img_r->setAttribute('height',''); 633 } 604 634 605 635 $img_r->setAttribute('class', 'sp-img ' .implode(' ', $c) ); -
sendpress/trunk/classes/views/class-sendpress-view-emails-create.php
r1437458 r1461459 121 121 'orderby' => 'title', 122 122 'order' => 'ASC', 123 'posts_per_page' => -1, 123 124 ); 124 125 … … 142 143 'orderby' => 'title', 143 144 'order' => 'ASC', 145 'posts_per_page' => -1, 144 146 ); 145 147 -
sendpress/trunk/classes/views/class-sendpress-view-emails-edit.php
r1450201 r1461459 219 219 'post_type' => 'sp_template' , 220 220 'post_status' => array('sp-standard'), 221 'posts_per_page' => -1, 221 222 ); 222 223 … … 243 244 'post_type' => 'sp_template' , 244 245 'post_status' => array('sp-custom'), 246 'posts_per_page' => -1, 245 247 ); 246 248 -
sendpress/trunk/classes/views/class-sendpress-view-subscribers-subscriber.php
r1437458 r1461459 209 209 </div> 210 210 </form> 211 < h3>Subscriber Actions and Events</h3>211 <!--<h3>Subscriber Actions and Events</h3>--> 212 212 <div class="well"> 213 213 <?php 214 /* 214 215 if(!defined("SENDPRESS_PRO_VERSION") ){ 215 216 _e('This feature requires SendPress Pro.','sendpress'); … … 217 218 do_action('sendpress_subscriber_events_view', SPNL()->validate->_int('subscriberID') ); 218 219 } 220 */ 219 221 ?> 220 222 </div> 223 221 224 222 225 -
sendpress/trunk/readme.txt
r1456109 r1461459 5 5 Requires at least: 3.7 6 6 Tested up to: 4.5.3 7 Stable tag: 1.7.7. 177 Stable tag: 1.7.7.27 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 119 119 Previous releases can be downloaded from [GitHub](https://github.com/brewlabs/sendpress/releases) 120 120 121 = 1.7.7.27 - 2016.7.27 = 122 * Fix: Post notification error 123 * Fix: Social Icon alignment 124 * Fix: Template list limited to 10 125 121 126 = 1.7.7.17 - 2016.7.17 = 122 127 * Fix: Error when sending -
sendpress/trunk/sendpress.php
r1456109 r1461459 2 2 /* 3 3 Plugin Name: SendPress Newsletters 4 Version: 1.7.7. 174 Version: 1.7.7.27 5 5 Plugin URI: https://sendpress.com 6 6 Description: Easy to manage Newsletters for WordPress. … … 19 19 define( 'SENDPRESS_API_VERSION', 1 ); 20 20 define( 'SENDPRESS_MINIMUM_WP_VERSION', '3.6' ); 21 define( 'SENDPRESS_VERSION', '1.7.7. 17' );21 define( 'SENDPRESS_VERSION', '1.7.7.27' ); 22 22 define( 'SENDPRESS_URL', plugin_dir_url( __FILE__ ) ); 23 23 define( 'SENDPRESS_PATH', plugin_dir_path( __FILE__ ) );
Note: See TracChangeset
for help on using the changeset viewer.