Changeset 1942828
- Timestamp:
- 09/17/2018 11:37:01 PM (7 years ago)
- File:
-
- 1 edited
-
irm-newsroom/trunk/irm-newsroom.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
irm-newsroom/trunk/irm-newsroom.php
r1906130 r1942828 69 69 70 70 71 function irm_unsubscribe_page() { 72 73 $site_key = esc_attr( get_option('site_key') ); 74 $site_type = esc_attr( get_option('site_type') ); 75 $site_directory = esc_attr( get_option('site_directory') ); 76 77 $script_url = $site_type . "://" . $site_key . "/" . $site_directory . "/js/Newsroom.js"; 78 $unsubscribe_url = $site_type . "://" . $site_key . "/" . $site_directory . "/data/UnsubscribeForm.aspx"; 79 80 return $out = '<script type="text/javascript" src="'.$script_url.'"></script><div data-unsubscribeformsurl="'.$unsubscribe_url.'" data-gotourl="/unsubscribed/">..</div>'; 81 82 } 83 add_shortcode('irm_unsubscribe_form', 'irm_unsubscribe_page'); /* shortcode [irm_unsubscribe_form] for irm_unsubscribe_page */ 84 71 85 function iguana_js() { 72 86 echo '<script src="https://quoteapi.com/lib/1.8.5/quoteapi-loader.js" integrity="sha256-Zs2jee5Cu9XOmK67dVQJDI5LqiV+faelNQm8OyslG6s= sha512-lgVikkbStJeoqvs4NNkrxcnQZM5q2WZDvD71Lo8c7F7AKW4/X/5iKuZVErv/gPS/4VdoBH642y+SHtiZA+B2ag==" crossorigin="anonymous"></script>'; … … 212 226 echo '<p>To allow subscribers to unsubscribe from email alerts add a link to the following page:</p>'; 213 227 echo '<pre><code>http://'.$site_key.'/'.$site_directory.'/Unsubscribe.aspx</code></pre>'; 228 echo '<p>or you can add the following shortcode to a page or widget</p>'; 229 echo '<pre><code>[irm_unsubscribe_form]</code></pre>'; 214 230 215 231 echo '<h3>Shareprice</h3>';
Note: See TracChangeset
for help on using the changeset viewer.