Ejemplo n.º 1
0
/**
 * This function returns the body of Post Notification as a string
 */
function post_notification_febody()
{
    require_once POST_NOTIFICATION_PATH . 'frontend.php';
    $content = post_notification_page_content();
    return $content['body'];
}
Ejemplo n.º 2
0
function post_notification_filter_content($content)
{
    if (strpos($content, '@@post_notification_') !== false) {
        //Just looking for the start
        $fe = post_notification_page_content();
        $content = str_replace('@@post_notification_header', $fe['header'], $content);
        $content = str_replace('@@post_notification_body', $fe['body'], $content);
    }
    return $content;
}