Plugin Directory

Changeset 1834926


Ignore:
Timestamp:
03/07/2018 01:21:14 AM (8 years ago)
Author:
irmau
Message:

added shortcode and function for share price chart

File:
1 edited

Legend:

Unmodified
Added
Removed
  • irm-newsroom/trunk/irm-newsroom.php

    r1830549 r1834926  
    258258        echo '<p>This will add a large share price chart. </p>';
    259259        echo '<code>[sharepriceChart]</code>';
     260        echo '<h4>Share Price Chart Small</h4>';
     261        echo '<p>This will add a small share price chart. </p>';
     262        echo '<code>[sharepriceChartSmall]</code>';
    260263        echo "<p><a href='http://www.irmhelpcentre.com/irm/content/shareprice-installation.aspx?RID=1594&RedirectCount=1' target='_blank' class='button button-primary'>For help installing Share Price's please click here.</a></p>";
    261         //
    262264    }
    263265
     
    601603add_shortcode('sharepriceChart', 'shortcode_spChart');
    602604
     605function shortcode_small_share_price() {
     606    return '<div class="irmau-small-chart" data-quoteapi="smallChart range=6m"></div>';
     607}
     608add_shortcode('sharepriceChartSmall', 'shortcode_small_share_price');
Note: See TracChangeset for help on using the changeset viewer.