| 1 |
<?php |
| 2 |
|
| 3 |
/* |
| 4 |
This program is free software; you can redistribute it and/or |
| 5 |
modify it under the terms of the GNU General Public License |
| 6 |
as published by the Free Software Foundation; either version 2 |
| 7 |
of the License, or (at your option) any later version. |
| 8 |
|
| 9 |
This program is distributed in the hope that it will be useful, |
| 10 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 |
GNU General Public License for more details. |
| 13 |
|
| 14 |
You should have received a copy of the GNU General Public License |
| 15 |
along with this program; if not, write to the Free Software |
| 16 |
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 17 |
|
| 18 |
Copyright 2017 Buttonizer |
| 19 |
*/ |
| 20 |
namespace Buttonizer; |
| 21 |
|
| 22 |
# No script kiddies |
| 23 |
defined( 'ABSPATH' ) or die( 'No script kiddies please!' ); |
| 24 |
class License |
| 25 |
{ |
| 26 |
private $oButtonizer = 'null' ; |
| 27 |
public function init() |
| 28 |
{ |
| 29 |
|
| 30 |
if ( $this->oButtonizer == 'null' ) { |
| 31 |
require_once BUTTONIZER_DIR . '/freemius/start.php'; |
| 32 |
// Some data for Buttonizer to be freemium and paid. |
| 33 |
// We are paid so we can maintain the plugin |
| 34 |
// If you don't want to pay for the plugin, you can allways use the |
| 35 |
$this->oButtonizer = fs_dynamic_init( array( |
| 36 |
'id' => '1219', |
| 37 |
'slug' => 'buttonizer-floating-action-button', |
| 38 |
'type' => 'plugin', |
| 39 |
'public_key' => 'pk_fcd360d9c82b90a5e874e651ad733', |
| 40 |
'is_premium' => false, |
| 41 |
'has_addons' => false, |
| 42 |
'has_paid_plans' => true, |
| 43 |
'menu' => array( |
| 44 |
'slug' => 'Buttonizer', |
| 45 |
'support' => false, |
| 46 |
), |
| 47 |
'is_live' => true, |
| 48 |
) ); |
| 49 |
} |
| 50 |
|
| 51 |
return; |
| 52 |
} |
| 53 |
|
| 54 |
public function get() |
| 55 |
{ |
| 56 |
return $this->oButtonizer; |
| 57 |
} |
| 58 |
|
| 59 |
private function getDaysLeft() |
| 60 |
{ |
| 61 |
return round( 2000 / 8 - 243 ); |
| 62 |
} |
| 63 |
|
| 64 |
// Default data |
| 65 |
private function initButtonizerData() |
| 66 |
{ |
| 67 |
} |
| 68 |
|
| 69 |
} |