Plugin Directory

Changeset 1969453


Ignore:
Timestamp:
11/05/2018 11:26:32 PM (7 years ago)
Author:
irmau
Message:

Updates to shortcode functions

Location:
irm-newsroom/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • irm-newsroom/trunk/README.txt

    r1933523 r1969453  
    105105== Changelog ==
    106106
     107= 1.2.3 =
     108* Updates to shortcode functions
     109
    107110= 1.2.2 =
    108111* Cleaning up some of the functions
  • irm-newsroom/trunk/irm-newsroom.php

    r1942828 r1969453  
    1717 * Plugin URI:        http://www.irmnewsroom.com/
    1818 * Description:       IRM Newsroom is an ASX announcements, news and social media distribution service, which enables companies to easily communicate with investors and other stakeholders across multiple online channels – including website, email subscriptions and social media channels.
    19  * Version:           1.2.2
     19 * Version:           1.2.3
    2020 * Author:            IRM
    2121 * Author URI:        http://irmau.com
     
    7878    $unsubscribe_url = $site_type . "://" . $site_key . "/" . $site_directory . "/data/UnsubscribeForm.aspx";
    7979
    80     return $out = '<script type="text/javascript" src="'.$script_url.'"></script><div data-unsubscribeformsurl="'.$unsubscribe_url.'" data-gotourl="/unsubscribed/">..</div>';
     80    $out = '<script type="text/javascript" src="'.$script_url.'"></script><div data-unsubscribeformsurl="'.$unsubscribe_url.'" data-gotourl="/unsubscribed/">..</div>';
     81    return $out;
    8182
    8283}
     
    102103        add_action('wp_head', 'iguana_js', 1);
    103104    }
    104 
    105105}
    106106run_irm_newsroom();
     
    345345    $url = "$site_type://$site_key/$site_directory/ShowListPage.aspx?CategoryID" . $id;
    346346    $jsurl = "$site_type://$site_key/$site_directory/js/Newsroom.js";
     347    $imgurl = "$site_type://$site_key/$site_directory/pub/RF.aspx?Wordpress=true";
    347348
    348349    return $js_data = "
    349350    <div data-newsroomUrl='$url'>..</div>
    350351    <script type='text/javascript' src='$jsurl'></script>
     352    <img src='$imgurl' style='display:none' />
    351353    ";
    352354
     
    370372    $url = "$site_type://$site_key/$site_directory/ShowFlat.aspx?CategoryID" . $id;
    371373    $jsurl = "$site_type://$site_key/$site_directory/js/Newsroom.js";
     374    $imgurl = "$site_type://$site_key/$site_directory/pub/RF.aspx?Wordpress=true";
    372375
    373376    return $js_data = "
    374377    <div data-newsroomUrl='$url'>..</div>
    375378    <script type='text/javascript' src='$jsurl'></script>
     379    <img src='$imgurl' style='display:none' />
    376380    ";
    377381
     
    394398    $url = "$site_type://$site_key/$site_directory/CalendarViewXml.aspx?CategoryID" . $id;
    395399    $jsurl = "$site_type://$site_key/$site_directory/js/Newsroom.js";
     400    $imgurl = "$site_type://$site_key/$site_directory/pub/RF.aspx?Wordpress=true";
    396401
    397402    return $js_data = "
    398403    <div data-calendarurl='$url'>..</div>
    399404    <script type='text/javascript' src='$jsurl'></script>
     405    <img src='$imgurl' style='display:none' />
    400406    ";
    401407
     
    420426    $jsurl = "$site_type://$site_key/$site_directory/js/Newsroom.js";
    421427    $email_landing_page = esc_attr( get_option('email_landing_page') );
     428    $imgurl = "$site_type://$site_key/$site_directory/pub/RF.aspx?Wordpress=true";
     429
    422430
    423431    return $js_data = "
    424432    <div data-userregistrationformurl='$url' data-gotourl='$email_landing_page'>..</div>
    425433    <script type='text/javascript' src='$jsurl'></script>
     434    <img src='$imgurl' style='display:none' />
    426435    ";
    427436}
Note: See TracChangeset for help on using the changeset viewer.