Plugin Directory

Changeset 751115


Ignore:
Timestamp:
08/04/2013 02:16:14 PM (13 years ago)
Author:
Developdaly
Message:

1.0.1 changes

Location:
email/trunk
Files:
9 added
7 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • email/trunk/README.md

    r751111 r751115  
    11# Email
    22
    3 Contributors: developdaly 
    4 Tags: email,  e-mail, wp-email, mail, wp_mail, send, email log 
    5 Requires at least: 3.5.2 
    6 Tested up to: 3.6 
    7 Stable tag: 1.0 
    8 License: GPLv2 or later   
    9 License URI: http://www.gnu.org/licenses/gpl-2.0.html 
     3Email users with custom templates when certain actions happen, such as new posts, updated custom post types, deleted users.
    104
    11 Email users with custom templates when certain actions happen, such as new posts, updated custom post types, deleted users.
     5## The Problem?
     6
     7WordPress doesn't offer the ability to send emails when certain things happen. Many website administrators would like the ability to notifiy a set a users when specific actions are taken on their site.
    128
    139## Description
     
    2319Additionally, you control the email template users receive. Boilterplate templates are included to get you started.
    2420
    25 ## Installation
    26 
    27 See [Installing Plugins](http://codex.wordpress.org/Managing_Plugins#Installing_Plugins).
    28 
    2921## Screenshots
    3022
    31 ![Add new email screenshot](http://i.imgur.com/TGDuxJp.png)
    32 
    33 ## Changelog
    34 
    35 = 1.0 =
    36 * Initial release
     23![Add new email screenshot](http://i.imgur.com/sAqDth1.png)
  • email/trunk/admin.php

    r751111 r751115  
    7979}
    8080
     81function email_menu_icon() {
     82    ?>
     83    <style type="text/css" media="screen">
     84        #menu-posts-email .wp-menu-image {
     85            background: url('<?php echo plugin_dir_url( __FILE__ ); ?>assets/mail.png') no-repeat 6px -17px !important;
     86        }
     87        #menu-posts-email:hover .wp-menu-image, #menu-posts-email.wp-has-current-submenu .wp-menu-image {
     88            background-position:6px 7px!important;
     89        }
     90    </style>
     91<?php }
     92
    8193// Load scripts and styles
    8294function email_enqueue_scripts() {
    83     wp_enqueue_style( 'chosen',                 plugins_url( '/assets/chosen.css', __FILE__ ) );
     95    wp_enqueue_style( 'chosen',                 plugins_url( '/assets/chosen/chosen.css', __FILE__ ) );
    8496    wp_enqueue_style( 'jquery-ui-datepicker',   plugins_url( '/assets/jquery-ui-1.9.2.custom.min.css', __FILE__ ) );
    8597
    86     wp_enqueue_script( 'chosen',                plugins_url( '/assets/jquery.chosen.min.js', __FILE__ ), array( 'jquery' ) );
     98    wp_enqueue_script( 'chosen',                plugins_url( '/assets/chosen/chosen.jquery.min.js', __FILE__ ), array( 'jquery' ) );
    8799    wp_enqueue_script( 'jquery-ui-timepicker',  plugins_url( '/assets/jquery.timepicker.js', __FILE__ ), array( 'jquery', 'jquery-ui-datepicker' ) );
    88100    wp_enqueue_script( 'app',                   plugins_url( '/assets/app.js', __FILE__ ), array( 'jquery', 'jquery-ui-datepicker', 'jquery-ui-timepicker' ) );
  • email/trunk/email.php

    r751111 r751115  
    44 * Description: Email users with custom templates when certain actions happen, such as new posts, updated custom post types, deleted users.
    55 * Author: developdaly
    6  * Version: 0.1
     6 * Version: 1.0.1
    77 * Author URI: http://developdaly.com/
     8 * Text Domain: email
     9 *
     10 * mail.png icon by Yusuke Kamiyamane (http://p.yusukekamiyamane.com/)
     11 * used under Creative Commons 3.0 http://creativecommons.org/licenses/by/3.0/
    812 */
    913
     
    1721add_action( 'init',                         'email_register' );
    1822add_action( 'transition_post_status',       'email_action_router', 10, 3 );
     23add_action( 'admin_head',                   'email_menu_icon' );
    1924add_action( 'admin_menu',                   'email_add_menu' );
    2025add_action( 'admin_enqueue_scripts',        'email_enqueue_scripts' );
Note: See TracChangeset for help on using the changeset viewer.