PATH:
home
/
letacommog
/
puissancelec
/
wp-content
/
plugins
/
revslider
/
includes
/
framework
<?php /** * @author ThemePunch <info@themepunch.com> * @link http://www.themepunch.com/ * @copyright 2015 ThemePunch * @version 1.0.0 */ if( !defined( 'ABSPATH') ) exit(); if(!class_exists('ThemePunch_Newsletter')) { class ThemePunch_Newsletter { protected static $remote_url = 'http://newsletter.themepunch.com/'; protected static $subscribe = 'subscribe.php'; protected static $unsubscribe = 'unsubscribe.php'; public function __construct(){ } /** * Subscribe to the ThemePunch Newsletter * @since: 1.0.0 **/ public static function subscribe($email){ global $wp_version; $request = wp_remote_post(self::$remote_url.self::$subscribe, array( 'user-agent' => 'WordPress/'.$wp_version.'; '.get_bloginfo('url'), 'timeout' => 15, 'body' => array( 'email' => urlencode($email) ) )); if(!is_wp_error($request)) { if($response = json_decode($request['body'], true)) { if(is_array($response)) { $data = $response; return $data; }else{ return false; } } } } /** * Unsubscribe to the ThemePunch Newsletter * @since: 1.0.0 **/ public static function unsubscribe($email){ global $wp_version; $request = wp_remote_post(self::$remote_url.self::$unsubscribe, array( 'user-agent' => 'WordPress/'.$wp_version.'; '.get_bloginfo('url'), 'timeout' => 15, 'body' => array( 'email' => urlencode($email) ) )); if(!is_wp_error($request)) { if($response = json_decode($request['body'], true)) { if(is_array($response)) { $data = $response; return $data; }else{ return false; } } } } } } ?>
[+]
..
[-] base.class.php
[edit]
[-] base-admin.class.php
[edit]
[-] functions.class.php
[edit]
[-] cssparser.class.php
[edit]
[-] loadbalancer.class.php
[edit]
[-] wpml.class.php
[edit]
[-] functions-wordpress.class.php
[edit]
[-] newsletter.class.php
[edit]
[-] aq-resizer.class.php
[edit]
[-] elements-base.class.php
[edit]
[-] base-front.class.php
[edit]
[-] addon-admin.class.php
[edit]
[-] db.class.php
[edit]
[-] em-integration.class.php
[edit]
[-] colorpicker.class.php
[edit]
[-] woocommerce.class.php
[edit]
[-] plugin-update.class.php
[edit]
[-] update.class.php
[edit]
[-] include-framework.php
[edit]
[-] index.php
[edit]