/**
 * Add default SendPress email template tags
 *
 * @since 0.9.9.8
 */
function spnl_setup_template_tags()
{
    // Setup default tags array
    $email_tags = array(array('tag' => 'sp-social-links', 'description' => __('Inserts Social Links.', 'sendpress'), 'function' => array('SendPress_Tag_Social_Links', 'external'), 'internal' => array('SendPress_Tag_Social_Links', 'internal'), 'copy' => array('SendPress_Tag_Social_Links', 'copy')), array('tag' => 'sp-browser-link-html', 'description' => __('Inserts view in browser html link.', 'sendpress'), 'function' => array('SendPress_Tag_Browser_Link_Html', 'external'), 'internal' => array('SendPress_Tag_Browser_Link_Html', 'internal'), 'copy' => array('SendPress_Tag_Browser_Link_Html', 'copy')), array('tag' => 'sp-site-name', 'description' => __('Inserts Site Name.', 'sendpress'), 'function' => array('SendPress_Tag_Site_Name', 'external'), 'internal' => array('SendPress_Tag_Site_Name', 'internal'), 'copy' => array('SendPress_Tag_Site_Name', 'copy')), array('tag' => 'canspam', 'description' => __('Inserts the CANSPAM text.', 'sendpress'), 'function' => array('SendPress_Tag_Canspam', 'external'), 'internal' => array('SendPress_Tag_Canspam', 'internal'), 'copy' => array('SendPress_Tag_Canspam', 'copy')), array('tag' => 'sp-unsubscribe-link-html', 'description' => __('Inserts an unsubscribe html link.', 'sendpress'), 'function' => array('SendPress_Tag_Unsubscribe_Link_Html', 'external'), 'internal' => array('SendPress_Tag_Unsubscribe_Link_Html', 'internal'), 'copy' => array('SendPress_Tag_Unsubscribe_Link_Html', 'copy')));
    $subscriber_tags = array(array('tag' => 'sp-subscriber-id', 'description' => __('Inserts the subscriber id.', 'sendpress'), 'function' => array('SendPress_Tag_Subscriber_Id', 'external'), 'internal' => array('SendPress_Tag_Subscriber_Id', 'internal'), 'copy' => array('SendPress_Tag_Subscriber_Id', 'copy')), array('tag' => 'sp-subscriber-id-encoded', 'description' => __('Inserts the subscriber id.', 'sendpress'), 'function' => array('SendPress_Tag_Subscriber_Id_Encoded', 'external'), 'internal' => array('SendPress_Tag_Subscriber_Id_Encoded', 'internal'), 'copy' => array('SendPress_Tag_Subscriber_Id_Encoded', 'copy')));
    $content_tags = array(array('tag' => 'sp-body-color', 'description' => __('Body Color', 'sendpress'), 'function' => array('SendPress_Tag_Body_Color', 'external'), 'internal' => array('SendPress_Tag_Body_Color', 'internal'), 'copy' => array('SendPress_Tag_Body_Color', 'copy')), array('tag' => 'sp-content-bg-color', 'description' => __('Content Color', 'sendpress'), 'function' => array('SendPress_Tag_Content_Color', 'external'), 'internal' => array('SendPress_Tag_Content_Color', 'internal'), 'copy' => array('SendPress_Tag_Content_Color', 'copy')), array('tag' => 'sp-content-text-color', 'description' => __('Content Color', 'sendpress'), 'function' => array('SendPress_Tag_Content_Text_Color', 'external'), 'internal' => array('SendPress_Tag_Content_Text_Color', 'internal'), 'copy' => array('SendPress_Tag_Content_Text_Color', 'copy')), array('tag' => 'sp-content-area-one', 'description' => __('Content Area', 'sendpress'), 'function' => array('SendPress_Tag_Content_Area_One', 'external'), 'internal' => array('SendPress_Tag_Content_Area_One', 'internal'), 'copy' => array('SendPress_Tag_Content_Area_One', 'copy')), array('tag' => 'sp-header-content', 'description' => __('Header Content', 'sendpress'), 'function' => array('SendPress_Tag_Header_Content', 'external'), 'internal' => false, 'copy' => array('SendPress_Tag_Header_Content', 'copy')), array('tag' => 'sp-header-page', 'description' => __('Header Page', 'sendpress'), 'function' => array('SendPress_Tag_Header_Page', 'external'), 'internal' => false, 'copy' => array('SendPress_Tag_Header_Page', 'copy')), array('tag' => 'sp-footer-page', 'description' => __('Footer Page', 'sendpress'), 'function' => array('SendPress_Tag_Footer_Page', 'external'), 'internal' => false, 'copy' => array('SendPress_Tag_Footer_Page', 'copy')), array('tag' => 'sp-footer-content', 'description' => __('Footer Content', 'sendpress'), 'function' => array('SendPress_Tag_Footer_Content', 'external'), 'internal' => false, 'copy' => array('SendPress_Tag_Footer_Content', 'copy')), array('tag' => 'sp-email-title', 'description' => __('Email Title', 'sendpress'), 'function' => array('SendPress_Tag_Email_Title', 'external'), 'internal' => false, 'copy' => array('SendPress_Tag_Email_Title', 'copy')));
    // Apply edd_email_tags filter
    $subscriber_tags = apply_filters('spnl_subscriber_tags', $subscriber_tags);
    // Add email tags
    foreach ($subscriber_tags as $subscriber_tag) {
        spnl_add_subscriber_tag($subscriber_tag['tag'], $subscriber_tag['description'], $subscriber_tag['function'], $subscriber_tag['internal'], $subscriber_tag['copy']);
    }
    // Apply edd_email_tags filter
    $email_tags = apply_filters('spnl_email_tags', $email_tags);
    // Add email tags
    foreach ($email_tags as $email_tag) {
        spnl_add_email_tag($email_tag['tag'], $email_tag['description'], $email_tag['function'], $email_tag['internal'], $email_tag['copy']);
    }
    // Add email tags
    foreach ($content_tags as $content_tag) {
        spnl_add_content_tag($content_tag['tag'], $content_tag['description'], $content_tag['function'], $content_tag['internal'], $content_tag['copy']);
    }
}
/**
 * Add default SendPress email template tags
 *
 * @since 0.9.9.8
 */
function spnl_setup_email_tags()
{
    // Setup default tags array
    $email_tags = array(array('tag' => 'subscriber_list', 'description' => __('A list of download links for each download purchased', 'sendpress'), 'function' => 'spnl_email_test_tag'));
    // Apply edd_email_tags filter
    $email_tags = apply_filters('spnl_email_tags', $email_tags);
    // Add email tags
    foreach ($email_tags as $email_tag) {
        spnl_add_email_tag($email_tag['tag'], $email_tag['description'], $email_tag['function']);
    }
}