Changeset 3382266
- Timestamp:
- 10/22/2025 02:47:57 AM (4 months ago)
- Location:
- irm-newsroom/trunk
- Files:
-
- 2 edited
-
README.txt (modified) (2 diffs)
-
irm-newsroom.php (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
irm-newsroom/trunk/README.txt
r3312832 r3382266 5 5 Tags: ASX, ASX Announcements, ASX Listed, ASX Share Price, financial data, finance, public company, stock price, stock price feed, irm, newsroom, social, distribution, investors, subscriptions. 6 6 Requires at least: 4.0 7 Tested up to: 6.8. 17 Tested up to: 6.8.3 8 8 Stable tag: 4.0 9 9 License: GPLv2 or later … … 105 105 == Changelog == 106 106 107 1.2.21 108 * Adding icons to all tabs 109 * Changed Wording of Tabs 110 * Added share price installation examples 111 * Fixed security issues with encoding 112 107 113 1.2.20 108 114 * Fixed more issues with escaping functions -
irm-newsroom/trunk/irm-newsroom.php
r3312832 r3382266 17 17 * Plugin URI: http://www.irmnewsroom.com/ 18 18 * 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 019 * Version: 1.2.21 20 20 * Author: IRM 21 21 * Author URI: http://irmau.com … … 172 172 173 173 $irm_styles = ' 174 <style>175 174 .irm-trial a { color:#FFF } 176 175 .irm-trial { … … 185 184 text-align: center; 186 185 } 187 </style>188 186 '; 189 187 190 188 // FIXED: Escaped style block output. wp_kses_post is suitable for this. 189 echo "<style>"; 191 190 echo wp_kses_post( $irm_styles ); 191 echo "</style>"; 192 192 193 193 echo '<div class="wrap">'; … … 197 197 198 198 $irm_tabs = '<h2 class="nav-tab-wrapper" id="irm-newsroom-tabs"> 199 <a href="?page=irm-newsroom&tab=configure" class="nr-configure nav-tab"> Configure IRM Newsroom</a>200 <a href="?page=irm-newsroom&tab=irmevents" class="nr-irmevents nav-tab"> IRMEvents</a>201 <a href="?page=irm-newsroom&tab=list" class="nr-list nav-tab"> List Page Shortcodes</a>202 <a href="?page=irm-newsroom&tab=flat" class="nr-flat nav-tab"> HQiFeatured Pages</a>203 <a href="?page=irm-newsroom&tab=shareprice" class="nr-shareprice nav-tab"> Shareprice</a>204 <a href="?page=irm-newsroom&tab=menu" class="nr-menu nav-tab"> Menu</a>205 <a href="?page=irm-newsroom&tab=events" class="nr-events nav-tab"> EventsCalendar</a>199 <a href="?page=irm-newsroom&tab=configure" class="nr-configure nav-tab"><span class="dashicons dashicons-dashboard"></span> Configure</a> 200 <a href="?page=irm-newsroom&tab=irmevents" class="nr-irmevents nav-tab"><span class="dashicons dashicons-pressthis"></span> Events</a> 201 <a href="?page=irm-newsroom&tab=list" class="nr-list nav-tab"><span class="dashicons dashicons-list-view"></span> List Pages</a> 202 <a href="?page=irm-newsroom&tab=flat" class="nr-flat nav-tab"><span class="dashicons dashicons-star-filled"></span> Featured Pages</a> 203 <a href="?page=irm-newsroom&tab=shareprice" class="nr-shareprice nav-tab"><span class="dashicons dashicons-chart-bar"></span> Shareprice</a> 204 <a href="?page=irm-newsroom&tab=menu" class="nr-menu nav-tab"><span class="dashicons dashicons-menu"></span> Menu</a> 205 <a href="?page=irm-newsroom&tab=events" class="nr-events nav-tab"><span class="dashicons dashicons-calendar"></span> Event Calendar</a> 206 206 </h2>'; 207 207 … … 210 210 'h2' => [ 'class' => [], 'id' => [] ], 211 211 'a' => [ 'href' => [], 'class' => [] ], 212 'span' => [ 'class' => [] ], 212 213 ]; 213 214 echo wp_kses( $irm_tabs, $allowed_html_for_tabs ); … … 258 259 echo '<p><small>* Please note that this should be a full URL including your domain name, e.g: https://irmau.com/</small></p>'; 259 260 260 echo '<h3>Shareprice</h3>'; 261 echo '<h3>Legacy Shareprice</h3>'; 262 echo '<p><em>Note: This older version of the shareprice code will soon be disabled. </em></p>'; 261 263 echo '<p>Toggle shareprice script in site header, if this is set to <b>on</b> this will insert the shareprice javascript in the header of this site for all pages. Do not enable this if you have manually added the scripts to the header.</p>'; 262 264 echo '<select name="share_price_toggle">'; … … 272 274 273 275 echo '</form></p>'; 274 echo '<p><b>For testing use: <code>irm8.live.irmau.com</code></b> <pre>v 1.2.2 0</pre> </p>';276 echo '<p><b>For testing use: <code>irm8.live.irmau.com</code></b> <pre>v 1.2.21</pre> </p>'; 275 277 276 278 } … … 305 307 306 308 if ( 'shareprice' === $active_tab ) { 307 echo '<h3>Share Price</h3>'; 308 echo '<p>If you have share prices as part of your IRM Newsroom package, you can enable them in the <b>Configure IRM Newsroom</b> Tab.</p>'; 309 echo '<h3>Share Price Shortcodes</h3>'; 310 echo '<p>Here are some shortcodes to allow you to add share prices. </p>'; 311 echo '<h4>Small Share Price Widget</h4>'; 312 echo '<p>This will add a small share price widget</p>'; 313 echo '<code>[sharepriceSnippet]</code>'; 314 echo '<h4>Share Price Table</h4>'; 315 echo '<p>This will add a large share price table. </p>'; 316 echo '<code>[sharepriceTable]</code>'; 317 echo '<h4>Share Price Chart</h4>'; 318 echo '<p>This will add a large share price chart. </p>'; 319 echo '<code>[sharepriceChart]</code>'; 320 echo '<h4>Share Price Chart Small</h4>'; 321 echo '<p>This will add a small share price chart. </p>'; 322 echo '<code>[sharepriceChartSmall]</code>'; 309 310 $irm_price_styles = "pre {padding:10px;border-radius:5px;background:#444;color:#EEE;} .chart-sample{margin-bottom:10px;border-radius:5px;background:#EEE;box-shadow:0px 1px 20px #0000006c;padding:10px;}.chart-sample h4 {margin-top:0px;} "; 311 312 echo "<style>"; 313 echo wp_kses_post( $irm_price_styles ); 314 echo "</style>"; 315 316 echo " 317 <h2>Shareprice Installation</h2> 318 <p><em>For the price shortcodes to work add the following scripts to your wordpress theme.</em></p> 319 <p>Include these scripts before the <code></body></code> tag of your site.</p> 320 <p><pre style='padding:10px;border-radius:5px;background:#444;color:#EEE;'><script src="https://d1hr1rj5wo6cu6.cloudfront.net/proactive-main.umd.js"></script> 321 <script src="https://d1hr1rj5wo6cu6.cloudfront.net/proactive-frontend.js"></script> 322 <script src="https://{your newsroom site url}/site/content/js/proactive-main-config.js"></script></pre></p> 323 <p>Include these scripts in the <code><head></code> area of your site.</p> 324 <p><pre style='padding:10px;border-radius:5px;background:#444;color:#EEE;'><link rel="stylesheet" href="https://d1hr1rj5wo6cu6.cloudfront.net/proactive-main.css"> 325 <link rel="stylesheet" href="https://d1hr1rj5wo6cu6.cloudfront.net/proactive-frontend.css"> 326 </pre></p> 327 328 <h3>Shareprice Codes</h3> 329 <p>Use the following sample code to add prices and charts to your site using the html block element. </p> 330 331 <div class='chart-sample'> 332 <h4>Full Size Chart</h4> 333 <p>You can set the following color options: </p> 334 <ul> 335 <li>barfill : Bar Line Volume Fill Hex Value</li> 336 <li>linefill : Line Volume Fill Hex Value</li> 337 <li>linestroke : Line Color Hex Value</li> 338 </ul> 339 <div class='code-sample'> 340 <pre><div data-proactive="charts" id="chartContainer" autosize 341 barfill="#bada55" bgcolor="white" 342 linefill="#bada55" linestroke="darkred" 343 markerRadius="3" 344 navigator-enable="true" 345 rangeselector-enable="true" defaultRange="1Y" 346 tooltip-date-historical-display-format = "Do MMM YYYY" 347 tooltip-date-intraday-display-format = "Do MMM YYYY HH:mm" 348 date-range-display-enable = "true" 349 date-range-historical-display-format = "Do MMM YYYY" 350 date-range-intraday-display-format = "Do MMM YYYY HH:mm" 351 chart-margin-bottom = "50" 352 title="" subtitle="" volumelabel="Volume" 353 data-decimal="2" 354 height="500" tooltipWidth="300px"> 355 </div></pre> 356 </div> 357 </div> 358 359 360 <div class='chart-sample'> 361 <h4>3 Month Chart</h4> 362 <div class='code-sample'> 363 <pre><div data-proactive="price3month" id="price3monthContainer1" autosize="true" enableTooltip="true" data-decimal="2" width="300" height="200"></div></pre> 364 </div> 365 </div> 366 367 <div class='chart-sample'> 368 <h4>Share Price Calculator Historical</h4> 369 <p>Attribute datetime-format determines the day display format. We use moment.js to do the formatting. See: https://momentjs.com/docs/#/displaying/. If the attribute doesn't exist, the default value is Do MMMM YYYY</p> 370 <div class='code-sample'> 371 <pre><div data-proactive="historicalCalculator" id="historicalCalculator1" class="proactive-historical-price-calculator-container" 372 title="" data-decimal="2" datetime-format="Do MMMM YYYY" > 373 </div></pre> 374 </div> 375 </div> 376 377 <div class='chart-sample'> 378 <h4>Share Price Calculator</h4> 379 <div class='code-sample'> 380 <pre><div data-proactive="priceCalculator" id="priceCalculator1" class="proactive-price-calculator-container" 381 title="" data-decimal="2" > 382 </div></pre> 383 </div> 384 </div> 385 386 <div class='chart-sample'> 387 <h4>Current Price</h4> 388 <div class='code-sample'> 389 <pre><div data-proactive="price" class="proactive-price" data-decimal="2"></div></pre> 390 </div> 391 </div> 392 393 "; 394 323 395 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>"; 324 396 }
Note: See TracChangeset
for help on using the changeset viewer.