PluginProbe
Portfolio Block – show off your work with stunning layouts / trunk
Portfolio Block – show off your work with stunning layouts vtrunk
2.1.5 2.1.3 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.0.8 2.0.9 2.1.0 2.1.1
portfolio-block / index.php

index.php in Portfolio Block – show off your work with stunning layouts trunk, at index.php

68 lines 2.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * Plugin Name: Portfolio Block
5 * Description: Display interactive portfolio / project on the web.
6 * Version: 2.1.5
7 * Author: bPlugins
8 * Author URI: https://bplugins.com
9 * License: GPLv3
10 * License URI: https://www.gnu.org/licenses/gpl-3.0.txt
11 * Text Domain: portfolio-block
12 */
13 // ABS PATH
14 if ( !defined( 'ABSPATH' ) ) {
15 exit;
16 }
17 if ( function_exists( 'pfb_fs' ) ) {
18 pfb_fs()->set_basename( false, __FILE__ );
19 } else {
20 // Constant
21 define( 'PFB_PLUGIN_VERSION', ( isset( $_SERVER['HTTP_HOST'] ) && 'localhost' === $_SERVER['HTTP_HOST'] ? time() : '2.1.5' ) );
22 define( 'PFB_DIR_URL', plugin_dir_url( __FILE__ ) );
23 define( 'PFB_DIR_PATH', plugin_dir_path( __FILE__ ) );
24 define( 'PFB_HAS_PRO', file_exists( dirname( __FILE__ ) . '/vendor/freemius/start.php' ) );
25 define( 'PFB_IS_FREE', !PFB_HAS_PRO );
26 if ( !function_exists( 'pfb_fs' ) ) {
27 function pfb_fs() {
28 global $pfb_fs;
29 if ( !isset( $pfb_fs ) ) {
30 if ( PFB_HAS_PRO ) {
31 require_once dirname( __FILE__ ) . '/vendor/freemius/start.php';
32 } else {
33 require_once dirname( __FILE__ ) . '/vendor/freemius-lite/start.php';
34 }
35 $pfbConfig = array(
36 'id' => '21321',
37 'slug' => 'portfolio-block',
38 'premium_slug' => 'portfolio-block-pro',
39 'type' => 'plugin',
40 'public_key' => 'pk_98bee5fd04ff2afd384aca969621a',
41 'is_premium' => false,
42 'premium_suffix' => 'Pro',
43 'has_premium_version' => true,
44 'has_addons' => false,
45 'has_paid_plans' => true,
46 'is_org_compliant' => true,
47 'menu' => array(
48 'slug' => 'edit.php?post_type=pfb',
49 'first-path' => 'edit.php?post_type=pfb&page=pfb-dashboard#/welcome',
50 'support' => false,
51 ),
52 );
53 $pfb_fs = ( PFB_HAS_PRO ? fs_dynamic_init( $pfbConfig ) : fs_lite_dynamic_init( $pfbConfig ) );
54 }
55 return $pfb_fs;
56 }
57
58 // Init Freemius.
59 pfb_fs();
60 // Signal that SDK was initiated.
61 do_action( 'pfb_fs_loaded' );
62 }
63 require_once PFB_DIR_PATH . 'includes/utils/functions.php';
64 if ( PFB_HAS_PRO ) {
65 require_once PFB_DIR_PATH . 'includes/rootPlugin/LicenseActivation.php';
66 }
67 require_once PFB_DIR_PATH . 'includes/plugin.php';
68 }