# services-section/trunk/plugin.php

Services Section Block – present your services in clean grids and columns, version trunk. 72 lines.

- Page: https://pluginprobe.com/plugins/services-section/trunk/code/plugin.php
- Raw: https://pluginprobe.com/plugins/services-section/trunk/raw/plugin.php
- Modified: 2026-09-05T04:40:54+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/services-section/trunk/code/plugin.php#L10-L20`.

```php
<?php

/**
 * Plugin Name: Services Section - Block
 * Plugin URI:  https://bplugins.com/products/services-section/
 * Description: Use Services Section Block to provide services of your business to clients with customizable settings.
 * Version: 1.4.6
 * Author: bPlugins
 * Author URI: https://bplugins.com
 * License: GPLv3
 * License URI: https://www.gnu.org/licenses/gpl-3.0.txt
 * Text Domain: services-section
 */
if ( !defined( 'ABSPATH' ) ) {
    exit;
}
if ( function_exists( 'ss_fs' ) ) {
    ss_fs()->set_basename( false, __FILE__ );
} else {
    define( 'SSB_VERSION', ( isset( $_SERVER['HTTP_HOST'] ) && 'localhost' === $_SERVER['HTTP_HOST'] ? time() : '1.4.6' ) );
    define( 'SSB_DIR_URL', plugin_dir_url( __FILE__ ) );
    define( 'SSB_DIR_PATH', plugin_dir_path( __FILE__ ) );
    define( 'SSB_HAS_FRMS', file_exists( dirname( __FILE__ ) . '/vendor/freemius/start.php' ) );
    if ( !function_exists( 'ss_fs' ) ) {
        function ss_fs() {
            global $ss_fs;
            if ( !isset( $ss_fs ) ) {
                if ( SSB_HAS_FRMS ) {
                    require_once SSB_DIR_PATH . '/vendor/freemius/start.php';
                } else {
                    require_once SSB_DIR_PATH . '/vendor/freemius-lite/start.php';
                }
                $ssbConfig = [
                    'id'                  => '18628',
                    'slug'                => 'services-section',
                    'premium_slug'        => 'services-section-pro',
                    'type'                => 'plugin',
                    'public_key'          => 'pk_e9793d569da544eb6078cf6a751f1',
                    'is_premium'          => false,
                    'premium_suffix'      => 'Pro',
                    'has_premium_version' => true,
                    'has_addons'          => false,
                    'has_paid_plans'      => true,
                    'trial'               => array(
                        'days'               => 7,
                        'is_require_payment' => true,
                    ),
                    'menu'                => array(
                        'slug'       => 'edit.php?post_type=services_section',
                        'first-path' => 'edit.php?post_type=services_section&page=ssb_demo_page#/welcome',
                        'support'    => false,
                    ),
                ];
                $ss_fs = ( SSB_HAS_FRMS ? fs_dynamic_init( $ssbConfig ) : fs_lite_dynamic_init( $ssbConfig ) );
            }
            return $ss_fs;
        }

        ss_fs();
        do_action( 'ss_fs_loaded' );
    }
    if ( SSB_HAS_FRMS ) {
        require_once SSB_DIR_PATH . 'includes/LicenseActivation.php';
    }
    require_once SSB_DIR_PATH . 'includes/utility/functions.php';
    require_once SSB_DIR_PATH . 'includes/ssbPlugin/plugin.php';
    add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), function ( $links ) {
        $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>';
        $links[] = $help_link;
        return $links;
    } );
}
```
