Plugin Directory

Changeset 1677120


Ignore:
Timestamp:
06/13/2017 01:30:44 AM (9 years ago)
Author:
irmau
Message:

Fixed issue with site_type when showing flat pages

Location:
irm-newsroom/trunk
Files:
2 edited

Legend:

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

    r1665043 r1677120  
    106106== Changelog ==
    107107
     108= 1.0.4 =
     109* Fixed issue with site_type when showing flat pages
     110
    108111= 1.0.3 =
    109112* Added ability to list categories even if they do not have any posts associated with them
  • irm-newsroom/trunk/irm-newsroom.php

    r1665043 r1677120  
    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.0.3
     19 * Version:           1.0.4
    2020 * Author:            IRM
    2121 * Author URI:        http://irmau.com
     
    204204    $site_key = esc_attr( get_option('site_key') );
    205205    $site_directory = esc_attr( get_option('site_directory') );
     206    $site_type = esc_attr( get_option('site_type') );
     207
    206208    if(!$site_directory > "") {
    207209        $site_directory = "irm";
    208210    }
    209 
    210     $url = "http://$site_key/$site_directory/ShowFlat.aspx?CategoryID" . $id;
     211    if(!$site_type > "") {
     212        $site_type = "http";
     213    }
     214
     215    $url = "$site_type://$site_key/$site_directory/ShowFlat.aspx?CategoryID" . $id;
    211216    $jsurl = "$site_type://$site_key/$site_directory/js/Newsroom.js";
    212217
Note: See TracChangeset for help on using the changeset viewer.