-
-
Notifications
You must be signed in to change notification settings - Fork 460
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
181 changed files
with
3,041 additions
and
57,469 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
<?php | ||
/** | ||
* Git Updater | ||
* | ||
* @author Andy Fragen | ||
* @license MIT | ||
* @link https://github.com/afragen/git-updater | ||
* @package git-updater | ||
*/ | ||
|
||
namespace Fragen\Git_Updater; | ||
|
||
/* | ||
* Exit if called directly. | ||
*/ | ||
if ( ! defined( 'WPINC' ) ) { | ||
die; | ||
} | ||
|
||
/** | ||
* Appsero SDK integration. | ||
* Appsero SDK autoloaded via composer. | ||
*/ | ||
class GU_Appsero { | ||
|
||
/** | ||
* Plugin file path. | ||
* | ||
* @var string | ||
*/ | ||
protected $plugin_file; | ||
|
||
/** | ||
* Constructor. | ||
* | ||
* @param string $file Plugin file path. | ||
*/ | ||
public function __construct( $file ) { | ||
$this->plugin_file = $file; | ||
} | ||
|
||
/** | ||
* Let's get going. | ||
* | ||
* @return void | ||
*/ | ||
public function init() { | ||
$this->appsero_init_tracker_git_updater(); | ||
} | ||
|
||
/** | ||
* Initialize the plugin tracker. | ||
* | ||
* @return void | ||
*/ | ||
public function appsero_init_tracker_git_updater() { | ||
global $gu_license; | ||
|
||
$client = new \Appsero\Client( 'fcd3d5c3-e40c-4484-9530-037955cef71f', 'Git Updater', $this->plugin_file ); | ||
|
||
// Activate insights. | ||
$client->insights() | ||
->hide_notice() | ||
->add_plugin_data() | ||
->init(); | ||
$client->insights()->optin(); | ||
|
||
$gu_license = $client->license(); | ||
|
||
// Active license page and checker | ||
// $parent = is_multisite() ? 'settings.php' : 'options-general.php'; | ||
// $args = array( | ||
// 'type' => 'submenu', | ||
// 'menu_title' => 'Git Updater License', | ||
// 'page_title' => 'Git Updater License Settings', | ||
// 'menu_slug' => 'git-updater-license', | ||
// 'parent_slug' => $parent, | ||
// ); | ||
// $client->license()->add_settings_page( $args ); | ||
|
||
// Active automatic updater. | ||
// $client->updater(); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/node_modules | ||
/public/hot | ||
/public/storage | ||
/storage/*.key | ||
/vendor | ||
/.idea | ||
/.vscode | ||
/nbproject | ||
/.vagrant | ||
Homestead.json | ||
Homestead.yaml | ||
npm-debug.log | ||
yarn-error.log | ||
.env | ||
.phpunit.result.cache | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"name": "appsero/client", | ||
"description": "Appsero Client", | ||
"keywords": ["analytics", "wordpress", "plugin", "theme"], | ||
"type": "library", | ||
"license": "MIT", | ||
"authors": [ | ||
{ | ||
"name": "Tareq Hasan", | ||
"email": "tareq@appsero.com" | ||
} | ||
], | ||
"autoload": { | ||
"psr-4": { | ||
"Appsero\\": "src/" | ||
} | ||
}, | ||
"require": { | ||
"php": ">=5.3" | ||
} | ||
} |
Oops, something went wrong.