Home Forums Newsletter Plugin Support Suggestion: Newsletter-Archive

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #24733
    Alain Aubry
    Participant

    Hi

    I did a small but useful modification to the Newsletter Archive Plugin, that I want to share:
    archive.php file, line 119 replaced
    gmdate($date_format, $email->send_on + $gmt_offset)
    with
    date_i18n($date_format, $email->send_on, $gmt_offset)
    this way I have International Date Format setted up by WodrPress.

    Thanks
    Alain Aubry

    • This topic was modified 6 years, 4 months ago by Alain Aubry.
    #24735
    Alain Aubry
    Participant

    In the same file, line 94, I added

    
    $buffer = '<p><a href="'. get_permalink() .'">Voltar ao Indice</a></p>';
    $buffer .= '<h2>' . $this->replace($email->subject) . '</h2>';
    

    This way when I am looking at an archived newsletter I can go back to the index.

    Thanks again!

    • This reply was modified 6 years, 4 months ago by Alain Aubry.
    • This reply was modified 6 years, 4 months ago by Alain Aubry.
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.