Skip to content

Commit

Permalink
updated the analytics code
Browse files Browse the repository at this point in the history
  • Loading branch information
shubhw12 committed Aug 19, 2020
1 parent f70a402 commit 898617c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
17 changes: 16 additions & 1 deletion class-fullwidth-page-templates.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,22 @@ private function includes() {
// Astra Notices.
require_once FPT_DIR . '/admin/notices/class-astra-notices.php';
// BSF Analytics.
require_once FPT_DIR . '/admin/bsf-analytics/class-bsf-analytics.php';
if ( ! class_exists( 'BSF_Analytics_Loader' ) ) {
require_once FPT_DIR . 'admin/bsf-analytics/class-bsf-analytics-loader.php';
}

$bsf_analytics = BSF_Analytics_Loader::get_instance();

$bsf_analytics->set_entity(
array(
'bsf' => array(
'product_name' => 'Fullwidth Templates for Any Theme & Page Builder',
'path' => FPT_DIR . 'admin/bsf-analytics',
'author' => 'Brainstorm Force',
'time_to_display' => '+24 hours',
),
)
);
}

public function post_type_template() {
Expand Down
4 changes: 2 additions & 2 deletions fullwidth-page-template.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Author URI: https://www.brainstormforce.com
* Text Domain: fullwidth-templates
* Domain Path: /languages
* Version: 1.1.0
* Version: 1.1.1
*
* @package Fullwidth_Page_Templates
*/
Expand All @@ -19,7 +19,7 @@

require_once 'class-fullwidth-page-templates.php';

define( 'FPT_VER', '1.1.0' );
define( 'FPT_VER', '1.1.1' );
define( 'FPT_DIR', plugin_dir_path( __FILE__ ) );
define( 'FPT_URL', plugins_url( '/', __FILE__ ) );
define( 'FPT_PATH', plugin_basename( __FILE__ ) );
Expand Down

0 comments on commit 898617c

Please sign in to comment.