Plugin Directory

Changeset 782670


Ignore:
Timestamp:
10/04/2013 05:54:42 PM (12 years ago)
Author:
mcinvale
Message:

Added thumbnails to email approval

Location:
email-post-approval/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • email-post-approval/trunk/email-post-approval.php

    r665330 r782670  
    44    Plugin Name: Email Post Approval
    55    Description: Ability to review and approve posts for publishing via email.
    6     Version: 1.2.1
     6    Version: 1.2.2
    77    Author: BinaryM Inc - Travis Lopes & Matt McInvale
    88    Author URI: http://binarym.com/
     
    2626            add_option('epa_send_to', get_bloginfo('admin_email'));
    2727            add_option('epa_post_statuses', array('pending'));
    28             add_option('epa_email_fields', array('title', 'post_author', 'post_date', 'categories', 'tags', 'post_meta', 'body'));
     28            add_option('epa_email_fields', array('title', 'post_author', 'post_date', 'categories', 'tags', 'post_meta', 'body', 'thumbnail'));
    2929        }       
    3030       
     
    101101                }
    102102            endif;
     103       
     104            if(in_array('thumbnail', get_option('epa_email_fields'))!==FALSE):
     105                $message .= '<b>Featured Image: </b>' . get_the_post_thumbnail($post_data->ID, 'medium') . '<br />';
     106               
     107            endif;         
     108           
    103109            if(in_array('body', get_option('epa_email_fields'))!==FALSE):
    104110                $message .= '<br /><b>Post Body:</b><br />'. str_replace('<!--more-->', '&lt;!--more--&gt;', $post_data->post_content) .'<br />';
  • email-post-approval/trunk/email-post-approval_options.php

    r665330 r782670  
    2222                array('key' => 'post_meta',     'value' => 'Post Meta'),
    2323                array('key' => 'body',          'value' => 'Post Body'),
     24                array('key' => 'thumbnail',         'value' => 'Featured Image'),
    2425            );
    2526       
     
    103104                                        foreach($this->post_status_types as $post_status) {
    104105                                            if (array_search($post_status['key'], $option_values['post_statuses']) !== FALSE) $checked = 'checked="checked"';
     106                                            else $checked = '';
    105107                                            echo '<label><input name="post_statuses[]" type="checkbox" value="'. $post_status['key'] .'" '. $checked .'> '. $post_status['value'] .'</label><br />';
    106                                             $checked = '';
     108                                           
    107109                                        }
    108110                                    ?>
  • email-post-approval/trunk/readme.md

    r665330 r782670  
    44**Requires at least:** 3.0
    55
    6 **Tested up to:** 3.5.1
     6**Tested up to:** 3.6.1
    77
    88### Description
     
    1010
    1111### Changelog
     12* v1.2.2
     13    * Added post thumbnail option
    1214* v1.2.1
    1315    * Patched warnings
  • email-post-approval/trunk/readme.txt

    r665330 r782670  
    33Tags: database, mysql, search, replace, admin, security
    44Requires at least: 3.0
    5 Tested up to: 3.5.1
     5Tested up to: 3.6.1
    66Stable tag: 3.4.2
    77
     
    2121
    2222== Changelog ==
     23= v1.2.2 =
     24* Added post thumbnail option
    2325= v1.2.1 =
    2426* Patched warnings
Note: See TracChangeset for help on using the changeset viewer.