Changeset 751115
- Timestamp:
- 08/04/2013 02:16:14 PM (13 years ago)
- Location:
- email/trunk
- Files:
-
- 9 added
- 7 deleted
- 3 edited
-
README.md (modified) (2 diffs)
-
admin.php (modified) (1 diff)
-
assets/chosen (added)
-
assets/chosen-sprite.png (deleted)
-
assets/chosen-sprite@2x.png (deleted)
-
assets/chosen.css (deleted)
-
assets/chosen/chosen-sprite.png (added)
-
assets/chosen/chosen-sprite@2x.png (added)
-
assets/chosen/chosen.css (added)
-
assets/chosen/chosen.jquery.js (added)
-
assets/chosen/chosen.jquery.min.js (added)
-
assets/chosen/chosen.min.css (added)
-
assets/images (deleted)
-
assets/jquery-ui-1.9.2.custom.min.css (deleted)
-
assets/jquery.chosen.min.js (deleted)
-
assets/jquery.timepicker.js (deleted)
-
assets/mail.png (added)
-
email.php (modified) (2 diffs)
-
readme.txt (added)
Legend:
- Unmodified
- Added
- Removed
-
email/trunk/README.md
r751111 r751115 1 1 # Email 2 2 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 3 Email users with custom templates when certain actions happen, such as new posts, updated custom post types, deleted users. 10 4 11 Email users with custom templates when certain actions happen, such as new posts, updated custom post types, deleted users. 5 ## The Problem? 6 7 WordPress 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. 12 8 13 9 ## Description … … 23 19 Additionally, you control the email template users receive. Boilterplate templates are included to get you started. 24 20 25 ## Installation26 27 See [Installing Plugins](http://codex.wordpress.org/Managing_Plugins#Installing_Plugins).28 29 21 ## Screenshots 30 22 31  32 33 ## Changelog 34 35 = 1.0 = 36 * Initial release 23  -
email/trunk/admin.php
r751111 r751115 79 79 } 80 80 81 function 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 81 93 // Load scripts and styles 82 94 function 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__ ) ); 84 96 wp_enqueue_style( 'jquery-ui-datepicker', plugins_url( '/assets/jquery-ui-1.9.2.custom.min.css', __FILE__ ) ); 85 97 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' ) ); 87 99 wp_enqueue_script( 'jquery-ui-timepicker', plugins_url( '/assets/jquery.timepicker.js', __FILE__ ), array( 'jquery', 'jquery-ui-datepicker' ) ); 88 100 wp_enqueue_script( 'app', plugins_url( '/assets/app.js', __FILE__ ), array( 'jquery', 'jquery-ui-datepicker', 'jquery-ui-timepicker' ) ); -
email/trunk/email.php
r751111 r751115 4 4 * Description: Email users with custom templates when certain actions happen, such as new posts, updated custom post types, deleted users. 5 5 * Author: developdaly 6 * Version: 0.16 * Version: 1.0.1 7 7 * 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/ 8 12 */ 9 13 … … 17 21 add_action( 'init', 'email_register' ); 18 22 add_action( 'transition_post_status', 'email_action_router', 10, 3 ); 23 add_action( 'admin_head', 'email_menu_icon' ); 19 24 add_action( 'admin_menu', 'email_add_menu' ); 20 25 add_action( 'admin_enqueue_scripts', 'email_enqueue_scripts' );
Note: See TracChangeset
for help on using the changeset viewer.