Plugin Directory

Changeset 2920604


Ignore:
Timestamp:
06/02/2023 12:51:39 PM (22 months ago)
Author:
vbadnow
Message:

updating readme and other

Location:
native-ads-adnow/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • native-ads-adnow/trunk/README.txt

    r2919103 r2920604  
    1414This plugin enables WordPress users to easily integrate Adnow's native ads widgets on their site.
    1515Generate high income on your website by showing native ads with high CTR to your visitors.
     16
     17== 3rd party service ==
     18Our plugin uses an api service to get a list of widgets created in your personal account at adnow.com.
     19The service is located at https://wp_plug.adnow.com/wp_aadb.php
     20The response is text in the JSON format that contains a list of your widgets.
     21Below links to our terms and privacy policy
     22https://adnow.com/terms
     23https://adnow.com/privacy-policy
    1624
    1725== Installation ==
     
    6674= 1.0 =
    6775* Initial release
     76= 2.0.1 =
     77* Updating code for new requirements
    6878
    6979
  • native-ads-adnow/trunk/admin/class-adnow-widget-admin.php

    r2919103 r2920604  
    1111/** Define('API_URL', 'http://host.docker.internal:8080/wp_aadb.php'); **/
    1212/** Define('API_URL', 'http://127.0.0.1/wp_aadb.php'); **/
    13 define('API_URL', 'https://wp_plug.adnow.com/wp_aadb.php');
     13define('AWP_API_URL', 'https://wp_plug.adnow.com/wp_aadb.php');
    1414
    1515/**
  • native-ads-adnow/trunk/admin/partials/class-adnow-widget-area.php

    r2919105 r2920604  
    2828$token = get_option( $this->option_name . '_key' );
    2929if ( ! empty( $token ) ) {
    30     $aadb_getter = new Adnow_Widget_Aadb_Getter( API_URL );
     30    $aadb_getter = new Adnow_Widget_Aadb_Getter( AWP_API_URL );
    3131    $widgets     = $aadb_getter->get( $token );
    3232} else {
     
    3636if ( false !== $widgets['validate'] ) {
    3737    $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();
    3939} else {
    4040    $url = admin_url() . 'admin.php?page=adnow-widget';
  • native-ads-adnow/trunk/includes/class-adnow-widget.php

    r2919103 r2920604  
    160160    private function define_admin_hooks() {
    161161
    162         $aadb_getter = new Adnow_Widget_Aadb_Getter( API_URL );
     162        $aadb_getter = new Adnow_Widget_Aadb_Getter( AWP_API_URL );
    163163        $plugin_admin = new Adnow_Widget_Admin( $this->get_plugin_name(), $this->get_version(), $aadb_getter );
    164164
     
    201201     */
    202202    public function add_areas() {
    203         $aadb_getter = new Adnow_Widget_Aadb_Getter( API_URL );
     203        $aadb_getter = new Adnow_Widget_Aadb_Getter( AWP_API_URL );
    204204        $plugin_area = new Adnow_Widget_Add_Area( $aadb_getter );
    205205        $this->loader->add_action( 'admin_bar_menu', $plugin_area, 'modify_admin_bar', 999 );
Note: See TracChangeset for help on using the changeset viewer.