Changeset 2920604
- Timestamp:
- 06/02/2023 12:51:39 PM (22 months ago)
- Location:
- native-ads-adnow/trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
native-ads-adnow/trunk/README.txt
r2919103 r2920604 14 14 This plugin enables WordPress users to easily integrate Adnow's native ads widgets on their site. 15 15 Generate high income on your website by showing native ads with high CTR to your visitors. 16 17 == 3rd party service == 18 Our plugin uses an api service to get a list of widgets created in your personal account at adnow.com. 19 The service is located at https://wp_plug.adnow.com/wp_aadb.php 20 The response is text in the JSON format that contains a list of your widgets. 21 Below links to our terms and privacy policy 22 https://adnow.com/terms 23 https://adnow.com/privacy-policy 16 24 17 25 == Installation == … … 66 74 = 1.0 = 67 75 * Initial release 76 = 2.0.1 = 77 * Updating code for new requirements 68 78 69 79 -
native-ads-adnow/trunk/admin/class-adnow-widget-admin.php
r2919103 r2920604 11 11 /** Define('API_URL', 'http://host.docker.internal:8080/wp_aadb.php'); **/ 12 12 /** Define('API_URL', 'http://127.0.0.1/wp_aadb.php'); **/ 13 define('A PI_URL', 'https://wp_plug.adnow.com/wp_aadb.php');13 define('AWP_API_URL', 'https://wp_plug.adnow.com/wp_aadb.php'); 14 14 15 15 /** -
native-ads-adnow/trunk/admin/partials/class-adnow-widget-area.php
r2919105 r2920604 28 28 $token = get_option( $this->option_name . '_key' ); 29 29 if ( ! empty( $token ) ) { 30 $aadb_getter = new Adnow_Widget_Aadb_Getter( A PI_URL );30 $aadb_getter = new Adnow_Widget_Aadb_Getter( AWP_API_URL ); 31 31 $widgets = $aadb_getter->get( $token ); 32 32 } else { … … 36 36 if ( false !== $widgets['validate'] ) { 37 37 $edit_area = new Adnow_Widget_Area(); 38 $url = ! empty( $_GET['url'] ) ? sanitize_ text_field( wp_unslash( $_GET['url'] ) ) : home_url();38 $url = ! empty( $_GET['url'] ) ? sanitize_url( wp_unslash( $_GET['url'] ) ) : home_url(); 39 39 } else { 40 40 $url = admin_url() . 'admin.php?page=adnow-widget'; -
native-ads-adnow/trunk/includes/class-adnow-widget.php
r2919103 r2920604 160 160 private function define_admin_hooks() { 161 161 162 $aadb_getter = new Adnow_Widget_Aadb_Getter( A PI_URL );162 $aadb_getter = new Adnow_Widget_Aadb_Getter( AWP_API_URL ); 163 163 $plugin_admin = new Adnow_Widget_Admin( $this->get_plugin_name(), $this->get_version(), $aadb_getter ); 164 164 … … 201 201 */ 202 202 public function add_areas() { 203 $aadb_getter = new Adnow_Widget_Aadb_Getter( A PI_URL );203 $aadb_getter = new Adnow_Widget_Aadb_Getter( AWP_API_URL ); 204 204 $plugin_area = new Adnow_Widget_Add_Area( $aadb_getter ); 205 205 $this->loader->add_action( 'admin_bar_menu', $plugin_area, 'modify_admin_bar', 999 );
Note: See TracChangeset
for help on using the changeset viewer.