100% Quality Private Proxies » TOP Anonymous + Buy Proxy Cheap Price!100% Quality Private Proxies » TOP Anonymous + Buy Proxy Cheap Price!100% Quality Private Proxies » TOP Anonymous + Buy Proxy Cheap Price!100% Quality Private Proxies » TOP Anonymous + Buy Proxy Cheap Price!
    0
  •   was successfully added to your cart.
  • Buy Proxies
  • Features
  • Info
  • Contacts
  • Blog
  • Account

For The Same Price! 2x MORE PROXIES $750 Private Proxies 5,000 2,500 Private Proxies 50 100 250 500 1,000 100 200 500 1,000 2,000 Private Proxies Private Proxies Private Proxies Private Proxies $30 $50 $100 $180 $340 BUY! BUY! BUY! BUY! BUY! BUY!

I’ve a customized widget the place the consumer can insert an username in an <enter> discipline. It is working wonderful, however I have to get the insetred worth from php and go it to the javascript file that’s enqueued with my widget plugin. I am testing with wp_localize_script but it surely is not going to work and I am unable to entry the handed information if i do console.log. How I can repair this, is feasible to entry information from php to plugin js file?

class InstagramFeedWidget extends WP_Widget {

  public $url;

  public perform __construct()
  {
    dad or mum::__construct(
      'instagram-widget',
      'Instagram feed',
      array(
        'description' => ''
      )
    );
    add_action( 'widgets_init', array($this, 'init') );
    add_action( 'wp_enqueue_scripts', array($this, 'initScripts' ) );
  }

  public perform init()
  {
    register_sidebar(
      array(
        'identify'        =>  'Instagram feed',
        'id'          =>  'ig-feed',
        'description' =>  'Instagram feed widget',
      )
    );
    register_widget( 'InstagramFeedWidget' );
  }

  public perform widget( $args, $occasion )
  {
    $this->url = 'https://instagram.com/'.$occasion['username'].'?__a=1';


    // $ch = curl_init();
    // curl_setopt( $ch, CURLOPT_URL, $url );
    // curl_setopt( $ch, CURLOPT_HTTPHEADER, array('Settle for: software/json') );
    // curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
    // curl_setopt( $ch, CURLOPT_FOLLOWLOCATION, true );
    // $feed = curl_exec($ch);
    // curl_close($ch);
    // $information = json_decode( $feed , true);
    // ob_start();
    ?>
    <!-- <div class="jumbotron jumbotron-fluid ig-feed">
      <div class="container">
        <div class="row">
          <div class="col-sm-12 col-md-12 col-lg-12"> -->
            <div class="swiper-container swiper-feed" id="ig-feed">
              <div class="swiper-wrapper">
                <img class="swiper-slide feed-img" src="">
            <?php
              // foreach( $information['graphql']['user']['edge_owner_to_timeline_media']['edges'] as $node ){
              //   foreach( $node as $img ){
              //     echo '<div class="swiper-slide feed-img" model="background-image:url('.$img['display_url'].');"></div>';
              //   }
              // }
            ?>
              </div>
            <div class="swiper-button-prev "></div>
            <div class="swiper-button-next"></div>
            </div>
          <!-- </div> -->
        <!-- </div>
      </div>
    </div> -->
    <?php
    echo ob_get_clean();
  }

  public perform type( $occasion )
  {
    $username = isset( $occasion['username'] ) ? esc_attr( $occasion['username'] ) : '';
    ?>
    <p>
    <label for="<?php esc_attr( $this->get_field_id('username') ); ?>"><?php _e('Username'); ?></label>
    <enter sort="textual content" class="widefat" id="<?php echo esc_attr( $this->get_field_id('username') ); ?>" identify="<?php echo esc_attr( $this->get_field_name('username') ); ?>" worth="<?php echo esc_attr($username); ?>">
    </p>
    <?php
  }

  public perform replace( $new_instance, $old_instance )
  {
    $occasion = $old_instance;

    $occasion['username'] = esc_attr($new_instance['username']);

    return $occasion;
  }

  public perform initScripts()
  {

    wp_enqueue_style('instagram-widget', plugins_url( 'instagram-widget.min.css', __FILE__), array('swiper'), null);
    wp_enqueue_script('instagram-widget-js', plugins_url( 'instagram-widget.js', __FILE__), array('swiper'), null);
    wp_localize_script( 'instagram-widjet-js', 'igfeed', array( 'profile_url' => $this->url )  );
  }

}

new InstagramFeedWidget;

// instagram-widjet.js file
(perform($){
  $(doc).prepared(perform(){
    let igfeed = igfeed.profile_url;
    console.log(igfeed);

    const igFeed = new Vue({
      el: '#ig-feed',
      information: {
        feedImg: []
      },
      mounted: perform(){
        axios.get(igfeed.profile_url).then( (response) => {
          console.log(response);
        });
      },
      strategies: {

      }
    });

    const feedSwiper = new Swiper('.swiper-feed', {
      slidesPerView: 4,
      spaceBetween: 50,
      slidesPerGroup: 4,
      loop: true,
      autoplay: {
        delay: 5000
      },
      //loopFillGroupWithBlank: true,
      navigation: {
        nextEl: '.swiper-button-next',
        prevEl: '.swiper-button-prev',
      },
    });


  });
}(jQuery));

Best Quality Private Proxies by Proxyti:

fully anonymous

100% anonymous and safe reliable private proxies

1,000 mb/s speed

Blazing fast proxy servers with up to 1,000 mb/s speed

Elite quality

Best quality proxies from world and USA locations

Unlimited bandwidth

No limits of using your proxies - truly unlimited bandwidth

Buy Now - Get 2X More Proxies:

100 Private Proxies

$30/month

$0.3 Per Proxy
Private and Anonymous
Ultra Fast Speed
Unlimited Bandwidth
USA or Worldwide
2X More Proxies!
Buy now!

200 Private Proxies

$50/month

$0.25 Per Proxy
Private and Anonymous
Ultra Fast Speed
Unlimited Bandwidth
USA or Worldwide
2X More Proxies!
Buy now!

500 Private Proxies

$100/month

$0.2 Per Proxy
Private and Anonymous
Ultra Fast Speed
Unlimited Bandwidth
USA or Worldwide
2X More Proxies!
Buy now!

1,000 Private Proxies

$180/month

$0.18 Per Proxy
Private and Anonymous
Ultra Fast Speed
Unlimited Bandwidth
USA or Worldwide
2X More Proxies!
Buy now!

2,000 Private Proxies

$340/month

$0.17 Per Proxy
Private and Anonymous
Ultra Fast Speed
Unlimited Bandwidth
USA or Worldwide
2X More Proxies!
Buy now!

5,000 Private Proxies

$750/month

$0.15 Per Proxy
Private and Anonymous
Ultra Fast Speed
Unlimited Bandwidth
USA or Worldwide
2X More Proxies!
Buy now!

Our Unbeatable Proxy Features:

Anonymous Proxies

100% security with our proxies – anonymous and secure proxy experience

Ultra Fast Speed

Proxyti offers up to 1,000 mb/s ultra fast proxy speed – feel the real power!

Unlimited Bandwidth

No data limits for your proxies – truly unlimited proxy bandwidth for you!

Proxy Authentication

We secure proxies with IP authentication – use your proxies with your own IP

Elite Quality

Highest proxy quality guarantee with supported HTTP/HTTPS and SOCKS connections

Great Prices

Proxyti offers great proxies for great prices – this is what we call new proxy era!

USA Locations

You can choose USA or random proxies locations when ordering for free

No Limitations

We don’t have any limits – you can use your proxies with every software or program!

Lots Of Subnets

The more proxies you buy, the more subnets you get – it is worth ordering more!

Semi Dedicated

Our proxies are shared with maximum of 5 users at a time, but they are still anonymous

Fast Delivery

We deliver your ordered proxies in your email in .txt file – this is simple as that

Awesome Support

Have any questions or want more information – please contact us anytime!


About Proxyti

We deliver quality private proxy solutions for everyone – fast, anonymous, secure and unlimited proxies by Proxyti.
 

Secure Payments

All payments are made via Paypal – safe and secure payment system administrator

Top rated products

  • 200 Private Proxies
    Rated 4.80 out of 5
    $50.00 / month
  • 1000 Private Proxies
    Rated 4.79 out of 5
    $180.00 / month

Connect with us

Copyright Proxyti.com | All Rights Reserved
DreamProxies.com Private Elite Proxies 100 Private Proxies 200 Private Proxies 400 Private Proxies 1000 Private Proxies 2000 Private Proxies 5000 Private Proxies Fast and Anonymous Private Proxies Proxyti Private Proxies Like Never Before Buy Quality Premium Private Proxies Proxies123.com - Your Best Private Proxies Buy Cheap Private Shared Proxies Maximum Power Private Proxies USA Location Private Datacenter Proxies Buy Best Private Proxies Buy Private Proxies Best Price HostingsCoupons.com - Get Free Web Hosting Coupons
  • Buy Proxies
  • Features
  • Info
  • Contacts
  • Blog
  • Account
100% Quality Private Proxies » TOP Anonymous + Buy Proxy Cheap Price!
    0 items