Plugin Directory

Changeset 2884400


Ignore:
Timestamp:
03/21/2023 04:07:37 PM (3 years ago)
Author:
iamnolanperry
Message:

Update to version 1.0.2 from GitHub

Location:
api-for-apex-towncontrol
Files:
2 added
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • api-for-apex-towncontrol/tags/1.0.2/core/class-api-for-apex-towncontrol.php

    r2880198 r2884400  
    115115                new RR_APX_Shortcodes_Arrests();
    116116                new RR_APX_Shortcodes_Phonebook();
     117                new RR_APX_Shortcodes_Roster();
     118
    117119            }
    118120
     
    135137            require_once APIFORAPEX_PLUGIN_DIR . 'core/includes/classes/class-rr-apx-shortcodes-arrests.php';
    136138            require_once APIFORAPEX_PLUGIN_DIR . 'core/includes/classes/class-rr-apx-shortcodes-phonebook.php';
     139            require_once APIFORAPEX_PLUGIN_DIR . 'core/includes/classes/class-rr-apx-shortcodes-roster.php';
    137140
    138141
  • api-for-apex-towncontrol/tags/1.0.2/core/includes/classes/class-api-for-apex-towncontrol-options.php

    r2880166 r2884400  
    8484
    8585    public function towncontrol_section_info() {
    86         echo "Set your API Key and Town UUID Below<br><br>The following shortcodes are available<br><ul><li><b>[show_town_arrests time='720']</b> - This shows all the towns arrests in within the last 30 days by default but can be changed by changing the attribute 'time', which is in hours.  </li>
     86        echo "Set your API Key and Town UUID Below<br><br>The following shortcodes are available<br>
    8787       
    8888       
     89        <ul>
     90       
     91        <li><b>[show_town_arrests time='720']</b> - This shows all the towns arrests in within the last 30 days by default but can be changed by changing the attribute 'time', which is in hours.  </li>
     92        <li><b>[show_town_phonebook]</b> - This shows the entirety of citizens registered in your town by their name, address, and the phone number. (hint: this is a solution for the NorPhone.)</li>
     93        <li><b>[show_town_roster group='police']</b> - This shows all your staff on the roster for the specified group, group can be 'police', 'fire', 'legal','service', 'education', and will default to police if you don't specify</li>
     94        </ul>
     95
    8996   
    9097       
     
    94101       
    95102        <ul>
    96             <li><b>[show_town_phonebook]</b> - This shows the entirety of citizens registered in your town by their name, address, and the phone number. (hint: this is a solution for the NorPhone.)</li></ul>
    97103  <li><b>[show_town_warrants]</b> - Shows any Active Warrants.(Be Cautious of this being used IC)</li>
    98104   <li><b>[show_town_laws]</b> - Shows Citizens all of the Laws of the Selected Town. </li>
  • api-for-apex-towncontrol/tags/1.0.2/core/includes/classes/class-rr-apx-shortcodes-phonebook.php

    r2880198 r2884400  
    8282    public function apx_ctz_handler_json() {
    8383
    84 
     84        if( get_transient( 'APXcitizens' ) ) {
     85            return get_transient( 'APXcitizens' );
     86        } else {
    8587        $api_key_0 = get_option( 'rr_apx_api_key' ); // Array of All Options
    8688        $townuuid_1 = get_option( 'rr_apx_townuuid' );
     
    104106
    105107}
     108set_transient( 'APXcitizens', $d2, DAY_IN_SECONDS );
    106109
    107110         return $d2;
     111
     112
     113
     114}
    108115        }
    109116           
  • api-for-apex-towncontrol/tags/1.0.2/readme.txt

    r2880198 r2884400  
    1717[show_town_arrests time=\'720\'] - This shows all the towns arrests in within the last 30 days by default but can be changed by changing the attribute \'time\', which is in hours.
    1818[show_town_phonebook] - This shows the entirety of citizens registered in your town by their name, address, and the phone number. (hint: this is a solution for the NorPhone.)
     19[show_town_roster group='police']- This shows all your staff on the roster for the specified group, group can be 'police', 'fire', 'legal','service', 'education', and will default to police if you don't specify.
    1920
    2021
     
    4445
    4546== Changelog ==
    46 
     47= 1.0.2: March 21, 2023 =
     48* Added Roster Shortcode
    4749= 1.0.1: March 14, 2023 =
    4850* Added Phonebook Shortcode
  • api-for-apex-towncontrol/trunk/core/class-api-for-apex-towncontrol.php

    r2880198 r2884400  
    115115                new RR_APX_Shortcodes_Arrests();
    116116                new RR_APX_Shortcodes_Phonebook();
     117                new RR_APX_Shortcodes_Roster();
     118
    117119            }
    118120
     
    135137            require_once APIFORAPEX_PLUGIN_DIR . 'core/includes/classes/class-rr-apx-shortcodes-arrests.php';
    136138            require_once APIFORAPEX_PLUGIN_DIR . 'core/includes/classes/class-rr-apx-shortcodes-phonebook.php';
     139            require_once APIFORAPEX_PLUGIN_DIR . 'core/includes/classes/class-rr-apx-shortcodes-roster.php';
    137140
    138141
  • api-for-apex-towncontrol/trunk/core/includes/classes/class-api-for-apex-towncontrol-options.php

    r2880166 r2884400  
    8484
    8585    public function towncontrol_section_info() {
    86         echo "Set your API Key and Town UUID Below<br><br>The following shortcodes are available<br><ul><li><b>[show_town_arrests time='720']</b> - This shows all the towns arrests in within the last 30 days by default but can be changed by changing the attribute 'time', which is in hours.  </li>
     86        echo "Set your API Key and Town UUID Below<br><br>The following shortcodes are available<br>
    8787       
    8888       
     89        <ul>
     90       
     91        <li><b>[show_town_arrests time='720']</b> - This shows all the towns arrests in within the last 30 days by default but can be changed by changing the attribute 'time', which is in hours.  </li>
     92        <li><b>[show_town_phonebook]</b> - This shows the entirety of citizens registered in your town by their name, address, and the phone number. (hint: this is a solution for the NorPhone.)</li>
     93        <li><b>[show_town_roster group='police']</b> - This shows all your staff on the roster for the specified group, group can be 'police', 'fire', 'legal','service', 'education', and will default to police if you don't specify</li>
     94        </ul>
     95
    8996   
    9097       
     
    94101       
    95102        <ul>
    96             <li><b>[show_town_phonebook]</b> - This shows the entirety of citizens registered in your town by their name, address, and the phone number. (hint: this is a solution for the NorPhone.)</li></ul>
    97103  <li><b>[show_town_warrants]</b> - Shows any Active Warrants.(Be Cautious of this being used IC)</li>
    98104   <li><b>[show_town_laws]</b> - Shows Citizens all of the Laws of the Selected Town. </li>
  • api-for-apex-towncontrol/trunk/core/includes/classes/class-rr-apx-shortcodes-phonebook.php

    r2880198 r2884400  
    8282    public function apx_ctz_handler_json() {
    8383
    84 
     84        if( get_transient( 'APXcitizens' ) ) {
     85            return get_transient( 'APXcitizens' );
     86        } else {
    8587        $api_key_0 = get_option( 'rr_apx_api_key' ); // Array of All Options
    8688        $townuuid_1 = get_option( 'rr_apx_townuuid' );
     
    104106
    105107}
     108set_transient( 'APXcitizens', $d2, DAY_IN_SECONDS );
    106109
    107110         return $d2;
     111
     112
     113
     114}
    108115        }
    109116           
  • api-for-apex-towncontrol/trunk/readme.txt

    r2880198 r2884400  
    1717[show_town_arrests time=\'720\'] - This shows all the towns arrests in within the last 30 days by default but can be changed by changing the attribute \'time\', which is in hours.
    1818[show_town_phonebook] - This shows the entirety of citizens registered in your town by their name, address, and the phone number. (hint: this is a solution for the NorPhone.)
     19[show_town_roster group='police']- This shows all your staff on the roster for the specified group, group can be 'police', 'fire', 'legal','service', 'education', and will default to police if you don't specify.
    1920
    2021
     
    4445
    4546== Changelog ==
    46 
     47= 1.0.2: March 21, 2023 =
     48* Added Roster Shortcode
    4749= 1.0.1: March 14, 2023 =
    4850* Added Phonebook Shortcode
Note: See TracChangeset for help on using the changeset viewer.