Changeset 2358213
- Timestamp:
- 08/12/2020 05:53:00 AM (6 years ago)
- Location:
- irm-newsroom/trunk
- Files:
-
- 2 edited
-
README.txt (modified) (5 diffs)
-
irm-newsroom.php (modified) (14 diffs)
Legend:
- Unmodified
- Added
- Removed
-
irm-newsroom/trunk/README.txt
r2190985 r2358213 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: 5. 37 Tested up to: 5.5 8 8 Stable tag: 4.0 9 9 License: GPLv2 or later … … 26 26 - Flexible options to change distribution channels per announcement. 27 27 - Ability to add extra third party feeds to your Newsroom including your blog. 28 - Robust System: Over 500 ASX announcements and over 300,000 emails are sent via Newsroom each month*. 28 - Robust System: Over 500 ASX announcements and over 300,000 emails are sent via Newsroom each month*. 29 29 30 30 *Based on statistics from 2016. … … 40 40 = Class Names = 41 41 42 - table.newsitems : the container for the table where the articles are listed. 42 - table.newsitems : the container for the table where the articles are listed. 43 43 - div.article : wrapped around each list item. 44 44 - span.articleDate : for the list item date. … … 105 105 == Changelog == 106 106 107 = 1.2.6 = 107 = 1.2.7 = 108 * Updated to work with Wordpress 5.5 109 * Added field for email unsubscribe success page 110 111 = 1.2.6 = 108 112 * Updated to work with Wordpress 5.3 109 113 110 = 1.2.5 = 114 = 1.2.5 = 111 115 * Updated version for testing. 112 116 113 = 1.2.4 = 117 = 1.2.4 = 114 118 * Fixed active tab selection 115 119 116 = 1.2.3 = 120 = 1.2.3 = 117 121 * Updates to shortcode functions 118 122 119 = 1.2.2 = 123 = 1.2.2 = 120 124 * Cleaning up some of the functions 121 125 122 = 1.2.1 = 126 = 1.2.1 = 123 127 * Formatting fixes for share prices 124 128 125 = 1.2.0 = 129 = 1.2.0 = 126 130 * Added css link for shareprice and changed load priority 127 131 128 = 1.1.0 = 132 = 1.1.0 = 129 133 * Added Events Calendar shortcode and tab 130 134 131 = 1.0.9 = 135 = 1.0.9 = 132 136 * Added short codes for share prices 133 137 134 = 1.0.8 = 138 = 1.0.8 = 135 139 * Added select toggle inserting of shareprice scripts into header of site 136 140 137 = 1.0.7 = 141 = 1.0.7 = 138 142 * Fixed error if server is missing curl 139 143 140 = 1.0.6 = 144 = 1.0.6 = 141 145 * Added tabs to configuration screen 142 146 143 = 1.0.5 = 147 = 1.0.5 = 144 148 * Fixed wording on configuration screen 145 149 146 = 1.0.4 = 150 = 1.0.4 = 147 151 * Fixed issue with site_type when showing flat pages 148 152 … … 160 164 * Added the ability to show List pages from an IRM website. 161 165 * Added the ability to show Flat pages from an IRM Website. 162 163 -
irm-newsroom/trunk/irm-newsroom.php
r2190985 r2358213 16 16 * Plugin Name: IRM Newsroom 17 17 * Plugin URI: http://www.irmnewsroom.com/ 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. 618 * 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.7 20 20 * Author: IRM 21 21 * Author URI: http://irmau.com … … 74 74 $site_type = esc_attr( get_option('site_type') ); 75 75 $site_directory = esc_attr( get_option('site_directory') ); 76 76 77 $emailunsub_landing_page = esc_attr( get_option('emailunsub_landing_page') ); 78 if(!$emailunsub_landing_page > "") { 79 $emailunsub_landing_page = "/unsubscribe-success/"; 80 } 81 77 82 $script_url = $site_type . "://" . $site_key . "/" . $site_directory . "/js/Newsroom.js"; 78 83 $unsubscribe_url = $site_type . "://" . $site_key . "/" . $site_directory . "/data/UnsubscribeForm.aspx"; 79 84 80 $out = '<script type="text/javascript" src="'.$script_url.'"></script><div data-unsubscribeformsurl="'.$unsubscribe_url.'" data-gotourl=" /unsubscribed/">..</div>';85 $out = '<script type="text/javascript" src="'.$script_url.'"></script><div data-unsubscribeformsurl="'.$unsubscribe_url.'" data-gotourl="'.$emailunsub_landing_page.'">..</div>'; 81 86 return $out; 82 87 … … 92 97 $script_url = $site_type . "://" . $site_key . "/" . $site_directory . "/content/js/quoteapi.js"; 93 98 echo '<script src="'.$script_url.'"></script>'; 94 echo '<link rel="stylesheet" href="https://js.irmau.com/shareprice/shareprice.css">'; 99 echo '<link rel="stylesheet" href="https://js.irmau.com/shareprice/shareprice.css">'; 95 100 } 96 101 … … 99 104 $plugin->run(); 100 105 101 $share_price_toggle = esc_attr( get_option('share_price_toggle') ); 106 $share_price_toggle = esc_attr( get_option('share_price_toggle') ); 102 107 if($share_price_toggle == "on") { 103 108 add_action('wp_head', 'iguana_js', 1); … … 121 126 register_setting( 'irm-newsroom-group', 'site_directory' ); 122 127 register_setting( 'irm-newsroom-group', 'email_landing_page' ); 128 register_setting( 'irm-newsroom-group', 'emailunsub_landing_page' ); 123 129 register_setting( 'irm-newsroom-group', 'share_price_toggle' ); 124 130 } … … 136 142 $email_landing_page = esc_attr( get_option('email_landing_page') ); 137 143 $share_price_toggle = esc_attr( get_option('share_price_toggle') ); 144 $emailunsub_landing_page = esc_attr( get_option('emailunsub_landing_page') ); 138 145 139 146 if(!$share_price_toggle > "") { … … 155 162 if(!$email_landing_page > "") { 156 163 $email_landing_page = "/email-alerts-success/"; 164 } 165 166 if(!$emailunsub_landing_page > "") { 167 $emailunsub_landing_page = "/unsubscribe-success/"; 157 168 } 158 169 … … 188 199 189 200 echo '<div class="wrap">'; 190 echo '<p><img src="http://www.irmau.com/irm/showmedia.aspx?MediaId=1" style="background:#FFFFFF;border-radius:20px;padding:10px 50px;width:100px;"></p>';201 // echo '<p><img src="http://www.irmau.com/irm/showmedia.aspx?MediaId=1" style="background:#FFFFFF;border-radius:20px;padding:10px 50px;width:100px;"></p>'; 191 202 echo '<p class="irm-trial">If you\'d like to organise a free trial of IRM Newsroom, <a href="http://irmau.com/site/websites/newsroom-trial" target="_blank">please click here</a>.</p>'; 192 203 … … 209 220 <script> 210 221 (function($) { 211 var urlParams = new URLSearchParams(location.search) 212 var tab = urlParams.get("tab"); 222 var urlParams = new URLSearchParams(location.search) 223 var tab = urlParams.get("tab"); 213 224 console.log("irm newsroom. " + tab); 214 225 if(tab > "") { … … 237 248 echo '<p>To show the Email Alerts Signup Form please copy and paste the shortcode below to a page on your website: </p>'; 238 249 echo '<pre><code>[email_alerts_form]</code></pre>'; 239 echo '<p><label>Email Alerts Success Page: </label> <input type="text" name="email_landing_page" value="'.$email_landing_page.'" /></p>'; 250 echo '<p><label>Email Alerts Success Page: </label> <input type="text" name="email_landing_page" value="'.$email_landing_page.'" /> *</p>'; 251 echo '<p><small>* Please note that this should be a full URL including your domain name, e.g: https://irmau.com/</small></p>'; 240 252 echo '<h3>Email Alerts Unsubscribe</h3>'; 241 253 echo '<p>To allow subscribers to unsubscribe from email alerts add a link to the following page:</p>'; … … 243 255 echo '<p>or you can add the following shortcode to a page or widget</p>'; 244 256 echo '<pre><code>[irm_unsubscribe_form]</code></pre>'; 257 echo '<p>This will redirect them to the following page after un-subscribing:</p>'; 258 echo '<p><label>Email Alerts Unsubscribe Success Page: </label> <input type="text" name="emailunsub_landing_page" value="'.$emailunsub_landing_page.'" /> *</p>'; 259 echo '<p><small>* Please note that this should be a full URL including your domain name, e.g: https://irmau.com/</small></p>'; 245 260 246 261 echo '<h3>Shareprice</h3>'; … … 259 274 260 275 settings_fields( 'irm-newsroom-group' ); 261 do_settings_sections( 'irm-newsroom-group' ); 262 submit_button(); 276 do_settings_sections( 'irm-newsroom-group' ); 277 submit_button(); 278 263 279 echo '</form></p>'; 264 280 echo '<p><b>For testing use: <code>www.irmau.com</code></b></p>'; … … 290 306 echo '<p>This will add a small share price chart. </p>'; 291 307 echo '<code>[sharepriceChartSmall]</code>'; 292 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>"; 308 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>"; 293 309 } 294 310 … … 350 366 } 351 367 return false; 352 } 368 } 353 369 $ch = curl_init(); 354 370 $timeout = 10;
Note: See TracChangeset
for help on using the changeset viewer.