<?php 
_e('Display Dashboard Widgets<br/><small><i>Note:  Email Users can show informational widgets on the Dashboard.</i></small>', MAILUSERS_I18N_DOMAIN);
?>
<br/>
		</td>
	</tr>
	<tr>
    <th><?php 
_e('Notification Widget', MAILUSERS_I18N_DOMAIN);
?>
</th>
		<td>
			<input 	type="checkbox"
					name="mailusers_notification_widget" id="mailusers_notification_widget" value="true"
					<?php 
if (mailusers_get_notification_widget() == 'true') {
    echo 'checked="checked"';
}
?>
 ></input>
			<?php 
_e('Display Notification Widget<br/><small><i>Note:  Email Users can show a notifcation widget on the Post/Page editing screen.</i></small>', MAILUSERS_I18N_DOMAIN);
?>
<br/>
		</td>
	</tr>
	<tr>
    <th><?php 
_e('Notification Menus', MAILUSERS_I18N_DOMAIN);
?>
</th>
예제 #2
0
function mailusers_page_relatedlink()
{
    global $post_ID;
    //  Only show widget when enabled
    if (mailusers_get_notification_widget() === 'true') {
        if (isset($post_ID) && current_user_can(MAILUSERS_NOTIFY_USERS_CAP)) {
            ?>
<div id="email-users-notify-page" class="postbox email-users-notify-postbox">
<h3 class='hndle'><span><?php 
            _e('Email Users', MAILUSERS_I18N_DOMAIN);
            ?>
</span></h3>
<div class="inside">
<p><img style="padding: 5px; vertical-align: middle;" src="<?php 
            echo plugins_url('images/email.png', __FILE__);
            ?>
"</img><a href="admin.php?page=mailusers-send-notify-mail-page&post_id=<?php 
            echo $post_ID;
            ?>
"><?php 
            _e('Notify Users About this Page', MAILUSERS_I18N_DOMAIN);
            ?>
</a></p>
</div>
</div>
<?php 
        }
    }
}