PluginProbe
Info Cards – present key information in elegant card layouts / 3.0.2
Info Cards – present key information in elegant card layouts v3.0.2
3.0.2 3.0.1 3.0.0 trunk 1.0.0 1.0.1 1.0.10 1.0.11 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 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
info-cards / info-cards.php

info-cards.php in Info Cards – present key information in elegant card layouts 3.0.2, at info-cards.php

96 lines 3.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Plugin Name: Info Cards
4 * Description: Create beautiful cards with text and image.
5 * Requires at least: 6.5
6 * Requires PHP: 7.4
7 * Version: 3.0.2
8 * Author: bPlugins
9 * Author URI: http://bplugins.com
10 * Plugin URI: https://wordpress.org/plugins/info-cards/
11 * License: GPLv3 or later
12 * License URI: http://www.gnu.org/licenses/gpl-3.0.html
13 * Text Domain: info-cards
14 * @fs_free_only /vendor/freemius-lite
15 */
16
17 if ( ! defined( 'ABSPATH' ) ) { exit; }
18
19 if ( function_exists( 'info_cards_fs' ) ) {
20 register_activation_hook( __FILE__, function () {
21 if ( ! function_exists( 'is_plugin_active' ) ) {
22 require_once ABSPATH . 'wp-admin/includes/plugin.php';
23 }
24 if ( is_plugin_active( 'info-cards/info-cards.php' ) ) {
25 deactivate_plugins( 'info-cards/info-cards.php' );
26 }
27 if ( is_plugin_active( 'info-cards-pro/info-cards.php' ) ) {
28 deactivate_plugins( 'info-cards-pro/info-cards.php' );
29 }
30 } );
31 } else {
32
33 define( 'ICB_VERSION', isset( $_SERVER['HTTP_HOST'] ) && 'localhost' === $_SERVER['HTTP_HOST'] ? time() : '3.0.2' );
34 define( 'ICB_DIR_URL', plugin_dir_url( __FILE__ ) );
35 define( 'ICB_DIR_PATH', plugin_dir_path( __FILE__ ) );
36
37 define( 'ICB_DIR', ICB_DIR_URL );
38 define( 'ICB_DIR_PATH_LEGACY', ICB_DIR_PATH );
39
40 if ( ! function_exists( 'info_cards_fs' ) ) {
41 function info_cards_fs() {
42 global $info_cards_fs;
43
44 if ( ! isset( $info_cards_fs ) ) {
45
46 require_once dirname( __FILE__ ) . '/vendor/freemius-lite/start.php';
47
48
49 $apbConfig = [
50 'id' => '17727',
51 'slug' => 'info-cards',
52 'type' => 'plugin',
53 'public_key' => 'pk_a98bc1d71dc1e0a8bf0aede3af3e0',
54 'is_premium' => false,
55 'premium_suffix' => 'Pro',
56 'has_premium_version' => true,
57 'has_addons' => false,
58 'has_paid_plans' => true,
59 'trial' => [
60 'days' => 7,
61 'is_require_payment' => false,
62 ],
63 'menu' => [
64 'slug' => 'info-cards-dashboard',
65 'first-path' => 'admin.php?page=info-cards-dashboard#/welcome',
66 'support' => false,
67 ],
68 ];
69
70 $info_cards_fs =fs_lite_dynamic_init( $apbConfig );
71 }
72
73 return $info_cards_fs;
74 }
75
76 info_cards_fs();
77 do_action( 'info_cards_fs_loaded' );
78 }
79
80
81
82 require_once ICB_DIR_PATH . 'includes/utility/functions.php';
83 require_once ICB_DIR_PATH . 'includes/rootPlugin/plugin.php';
84
85 // -----------------------------------------------------------------------
86 // Plugin action links
87 // -----------------------------------------------------------------------
88 add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), function ( $links ) {
89 if ( ! is_array( $links ) ) {
90 $links = [];
91 }
92 $dashboard_link = '<a href="' . admin_url( 'admin.php?page=info-cards-dashboard' ) . '" style="color:#f18500;font-weight:bold;">Help And Demo</a>';
93 array_unshift( $links, $dashboard_link );
94 return $links;
95 } );
96 }