Table of contents for MailPress Review
- MailPress Review – Introduction
- MailPress Review – Installation
- MailPress Review – Configuration
- MailPress Review – Selecting a Theme
- MailPress Review – Theme Design (Intro)
- MailPress Review – Theme Design (Styling)
If you’ve done any work at all on WordPress themes, MailPress themes will be very comfortable. Â MailPress adds a few extra things, but most – if not all – of the WordPress API is available from within a MailPress theme. Â Andre has some rules for developing themes which you may want to read in addition to the information here. Â Go to his mailpress site and then click on Design (too bad I can’t link directly there) to view it. Â Here are some key rules:
- No spaces in theme folder names.
MailPress themes reside under the
plugins\mailpress\mp-content\themes directory – look familiar? Â Themes consist of four different sets of files.
As in a WordPress theme, this file contains information about the theme, including its name, a description, tag information, etc. Â Nothing else in this file is used since you can’t use CSS in MailPress themes.
Doesn’t do anything at all and must be empty. Â Not sure why it exists.
Displayed on the MailPress theme admin page. Â If you design your own theme, please don’t just steal a screenshot from another theme. Â Create one that looks your new theme.
General-Purpose Files (Optional)
None of these files are required, but they improve maintainability and consistency by reducing redundancy (say that 10 times fast).
Contains common definitions that can be used by all templates.
Contains code for common header content. Â Template files can include this by specifying the following statement:
<?php $this->get_header(); ?>
Contains code for common footer content. Â Template files can include this by specifying the following statement:
<?php $this->get_footer(); ?>
Contains code for common sidebar content. Â Template files can include this by specifying the following statement:
<?php $this->get_sidebar(); ?>
Note that the standard functions for widgets used in WordPress cannot be used here since CSS can’t be used.
MailPress Templates (Optional)
These template files correspond to different types of subscriptions to your site.
Sent to a new subscriber after they have registered. Â The email will contain a link the user can click to confirm their subscription.
Sent to a new subscriber after they have confirmed their subscription.
Sent to subscribers each time a post is published.
Sent to subscribers containing a recap of the previous day’s posts. Â The maximum number of posts included in the email is specified on the General Settings page.
Sent to subscribers containing a recap of the previous week’s posts. Â The maximum number of posts included in the email is specified on the General Settings page.
Sent to subscribers containing a recap of the previous month’s posts. Â The maximum number of posts included in the email is specified on the General Settings page.
Sent to subscribers each time a comment is approved/posted.
Sent to subscribers based on categories. Â Information on this feature is needed from Andre.
MailPress Templates for wp_mail
These templates are replacements for templates built-in to WordPress.
Sent to the moderator of the site when a new comment is awaiting approval. Â Also sent to a post author when a new comment, trackback, or pingback is posted.
Sent to the site admin when a new user registers. Â Also sent to the new user with their username and password.