item_id ) : $licence_key; if( !empty($licence_key) ){ if(self::pcfq_if_domain_change()) { return $licence_key; } else { update_option( 'pcfq_licence_data', '' ); update_option( Pcfq_Theme_Verify::get_instance()->item_id, '' ); } } return false; } public static function pcfq_external_plugin_url($filename = '') { $base_path = 'http://peacefulqode.co.in/addon/'; if(self::pcfq_purchase_verify()) { return $base_path.$filename; } else { return ''; } } public static function pcfq_demo_file_path($filename = '' , $extension = '' , $type = '') { if(self::pcfq_purchase_verify()) { if($type == 'slider') { return SEOZIE_ADMIN_DIR . '/classes/import/slider/'.$filename.'.'.$extension; } return SEOZIE_ADMIN_DIR . '/classes/import/demos/demo-1/'.$filename.'.'.$extension; } } public static function pcfq_demo_prev_img_url($filename = '' , $extension = '') { return SEOZIE_URI. '/admin/classes/import/demos/demo-1/'.$filename.'.'.$extension; } public static function pcfq_if_domain_change() { $purchase_opt = get_option( 'pcfq_licence_data' ); if(isset($purchase_opt['activation_code'])) { if(wp_hash( get_option( Pcfq_Theme_Verify::get_instance()->item_id ) . esc_url(site_url( '/' )) ) == $purchase_opt['activation_code']) { return true; } else { return false; } } return false; } public function pcfq_get_assets_path($filename = '' , $extension = '') { if(self::pcfq_purchase_verify()) { return seozie_ASSETS_URI . $filename .'.'.$extension; } } public function pcfq_domain_change_admin_notice() { $class = 'notice notice-error'; $message = __( 'Error! The liecence is not active', 'seozie' ); if(!self::pcfq_if_domain_change()) { printf( '

%2$s

Click Here
', esc_attr( $class ), esc_html( $message ) , esc_url(admin_url('admin.php?page=Pcfq-activate-theme-panel')) ); } } public static function pfcq_restric_page($slug = '') { $respage = array('tgmpa-install-plugins' , 'pt-one-click-demo-import' , '_pt_theme_opt'); if(isset($_REQUEST['page']) && in_array($_REQUEST['page'] , $respage) ) { if(!self::pcfq_purchase_verify()) { wp_die('

The Licence is not active

Sorry, you are not allowed to view the page.

Please activate the licence code.

Click Here
'); } } } } new Pcfq_Theme_Helper(); }