Changeset 2884400
- Timestamp:
- 03/21/2023 04:07:37 PM (3 years ago)
- Location:
- api-for-apex-towncontrol
- Files:
-
- 2 added
- 8 edited
- 1 copied
-
tags/1.0.2 (copied) (copied from api-for-apex-towncontrol/trunk)
-
tags/1.0.2/core/class-api-for-apex-towncontrol.php (modified) (2 diffs)
-
tags/1.0.2/core/includes/classes/class-api-for-apex-towncontrol-options.php (modified) (2 diffs)
-
tags/1.0.2/core/includes/classes/class-rr-apx-shortcodes-phonebook.php (modified) (2 diffs)
-
tags/1.0.2/core/includes/classes/class-rr-apx-shortcodes-roster.php (added)
-
tags/1.0.2/readme.txt (modified) (2 diffs)
-
trunk/core/class-api-for-apex-towncontrol.php (modified) (2 diffs)
-
trunk/core/includes/classes/class-api-for-apex-towncontrol-options.php (modified) (2 diffs)
-
trunk/core/includes/classes/class-rr-apx-shortcodes-phonebook.php (modified) (2 diffs)
-
trunk/core/includes/classes/class-rr-apx-shortcodes-roster.php (added)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
api-for-apex-towncontrol/tags/1.0.2/core/class-api-for-apex-towncontrol.php
r2880198 r2884400 115 115 new RR_APX_Shortcodes_Arrests(); 116 116 new RR_APX_Shortcodes_Phonebook(); 117 new RR_APX_Shortcodes_Roster(); 118 117 119 } 118 120 … … 135 137 require_once APIFORAPEX_PLUGIN_DIR . 'core/includes/classes/class-rr-apx-shortcodes-arrests.php'; 136 138 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'; 137 140 138 141 -
api-for-apex-towncontrol/tags/1.0.2/core/includes/classes/class-api-for-apex-towncontrol-options.php
r2880166 r2884400 84 84 85 85 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> 87 87 88 88 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 89 96 90 97 … … 94 101 95 102 <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>97 103 <li><b>[show_town_warrants]</b> - Shows any Active Warrants.(Be Cautious of this being used IC)</li> 98 104 <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 82 82 public function apx_ctz_handler_json() { 83 83 84 84 if( get_transient( 'APXcitizens' ) ) { 85 return get_transient( 'APXcitizens' ); 86 } else { 85 87 $api_key_0 = get_option( 'rr_apx_api_key' ); // Array of All Options 86 88 $townuuid_1 = get_option( 'rr_apx_townuuid' ); … … 104 106 105 107 } 108 set_transient( 'APXcitizens', $d2, DAY_IN_SECONDS ); 106 109 107 110 return $d2; 111 112 113 114 } 108 115 } 109 116 -
api-for-apex-towncontrol/tags/1.0.2/readme.txt
r2880198 r2884400 17 17 [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. 18 18 [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. 19 20 20 21 … … 44 45 45 46 == Changelog == 46 47 = 1.0.2: March 21, 2023 = 48 * Added Roster Shortcode 47 49 = 1.0.1: March 14, 2023 = 48 50 * Added Phonebook Shortcode -
api-for-apex-towncontrol/trunk/core/class-api-for-apex-towncontrol.php
r2880198 r2884400 115 115 new RR_APX_Shortcodes_Arrests(); 116 116 new RR_APX_Shortcodes_Phonebook(); 117 new RR_APX_Shortcodes_Roster(); 118 117 119 } 118 120 … … 135 137 require_once APIFORAPEX_PLUGIN_DIR . 'core/includes/classes/class-rr-apx-shortcodes-arrests.php'; 136 138 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'; 137 140 138 141 -
api-for-apex-towncontrol/trunk/core/includes/classes/class-api-for-apex-towncontrol-options.php
r2880166 r2884400 84 84 85 85 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> 87 87 88 88 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 89 96 90 97 … … 94 101 95 102 <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>97 103 <li><b>[show_town_warrants]</b> - Shows any Active Warrants.(Be Cautious of this being used IC)</li> 98 104 <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 82 82 public function apx_ctz_handler_json() { 83 83 84 84 if( get_transient( 'APXcitizens' ) ) { 85 return get_transient( 'APXcitizens' ); 86 } else { 85 87 $api_key_0 = get_option( 'rr_apx_api_key' ); // Array of All Options 86 88 $townuuid_1 = get_option( 'rr_apx_townuuid' ); … … 104 106 105 107 } 108 set_transient( 'APXcitizens', $d2, DAY_IN_SECONDS ); 106 109 107 110 return $d2; 111 112 113 114 } 108 115 } 109 116 -
api-for-apex-towncontrol/trunk/readme.txt
r2880198 r2884400 17 17 [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. 18 18 [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. 19 20 20 21 … … 44 45 45 46 == Changelog == 46 47 = 1.0.2: March 21, 2023 = 48 * Added Roster Shortcode 47 49 = 1.0.1: March 14, 2023 = 48 50 * Added Phonebook Shortcode
Note: See TracChangeset
for help on using the changeset viewer.