PluginProbe
Services Section Block – present your services in clean grids and columns / trunk
Services Section Block – present your services in clean grids and columns vtrunk
1.4.6 1.4.5 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 1.3.8 1.4.0 1.4.1 1.4.2 1.4.3 1.4.4 trunk 1.0 1.1 1.1.1 All 33 releases
services-section / plugin.php

plugin.php in Services Section Block – present your services in clean grids and columns trunk, at plugin.php

72 lines 3.2 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: Services Section - Block
5 * Plugin URI: https://bplugins.com/products/services-section/
6 * Description: Use Services Section Block to provide services of your business to clients with customizable settings.
7 * Version: 1.4.6
8 * Author: bPlugins
9 * Author URI: https://bplugins.com
10 * License: GPLv3
11 * License URI: https://www.gnu.org/licenses/gpl-3.0.txt
12 * Text Domain: services-section
13 */
14 if ( !defined( 'ABSPATH' ) ) {
15 exit;
16 }
17 if ( function_exists( 'ss_fs' ) ) {
18 ss_fs()->set_basename( false, __FILE__ );
19 } else {
20 define( 'SSB_VERSION', ( isset( $_SERVER['HTTP_HOST'] ) && 'localhost' === $_SERVER['HTTP_HOST'] ? time() : '1.4.6' ) );
21 define( 'SSB_DIR_URL', plugin_dir_url( __FILE__ ) );
22 define( 'SSB_DIR_PATH', plugin_dir_path( __FILE__ ) );
23 define( 'SSB_HAS_FRMS', file_exists( dirname( __FILE__ ) . '/vendor/freemius/start.php' ) );
24 if ( !function_exists( 'ss_fs' ) ) {
25 function ss_fs() {
26 global $ss_fs;
27 if ( !isset( $ss_fs ) ) {
28 if ( SSB_HAS_FRMS ) {
29 require_once SSB_DIR_PATH . '/vendor/freemius/start.php';
30 } else {
31 require_once SSB_DIR_PATH . '/vendor/freemius-lite/start.php';
32 }
33 $ssbConfig = [
34 'id' => '18628',
35 'slug' => 'services-section',
36 'premium_slug' => 'services-section-pro',
37 'type' => 'plugin',
38 'public_key' => 'pk_e9793d569da544eb6078cf6a751f1',
39 'is_premium' => false,
40 'premium_suffix' => 'Pro',
41 'has_premium_version' => true,
42 'has_addons' => false,
43 'has_paid_plans' => true,
44 'trial' => array(
45 'days' => 7,
46 'is_require_payment' => true,
47 ),
48 'menu' => array(
49 'slug' => 'edit.php?post_type=services_section',
50 'first-path' => 'edit.php?post_type=services_section&page=ssb_demo_page#/welcome',
51 'support' => false,
52 ),
53 ];
54 $ss_fs = ( SSB_HAS_FRMS ? fs_dynamic_init( $ssbConfig ) : fs_lite_dynamic_init( $ssbConfig ) );
55 }
56 return $ss_fs;
57 }
58
59 ss_fs();
60 do_action( 'ss_fs_loaded' );
61 }
62 if ( SSB_HAS_FRMS ) {
63 require_once SSB_DIR_PATH . 'includes/LicenseActivation.php';
64 }
65 require_once SSB_DIR_PATH . 'includes/utility/functions.php';
66 require_once SSB_DIR_PATH . 'includes/ssbPlugin/plugin.php';
67 add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), function ( $links ) {
68 $help_link = '<a href="' . admin_url( 'edit.php?post_type=services_section&page=ssb_demo_page' ) . '" style="color:#FF7A00;font-weight:bold;">Help & Demos</a>';
69 $links[] = $help_link;
70 return $links;
71 } );
72 }