# content-blocks-builder/2.7.7/includes/core-component.php

Content Blocks Builder – Create blocks, repeater blocks with carousel, grid, popup layouts, version 2.7.7. 42 lines.

- Page: https://pluginprobe.com/plugins/content-blocks-builder/2.7.7/code/includes/core-component.php
- Raw: https://pluginprobe.com/plugins/content-blocks-builder/2.7.7/raw/includes/core-component.php
- Modified: 2023-04-09T16:05:14+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/content-blocks-builder/2.7.7/code/includes/core-component.php#L10-L20`.

```php
<?php
/**
 * Core component
 *
 * @package    BoldBlocks
 * @author     Phi Phan <mrphipv@gmail.com>
 * @copyright  Copyright (c) 2022, Phi Phan
 */

namespace BoldBlocks;

// Exit if accessed directly.
defined( 'ABSPATH' ) || exit;

if ( ! class_exists( CoreComponent::class ) ) :
	/**
	 * Create/edit custom content blocks.
	 */
	abstract class CoreComponent {
		/**
		 * The plugin instance
		 *
		 * @var ContentBlocksBuilder
		 */
		protected $the_plugin_instance;

		/**
		 * A constructor
		 */
		public function __construct( $the_plugin_instance ) {
			$this->the_plugin_instance = $the_plugin_instance;
		}

		/**
		 * Run main hooks
		 *
		 * @return void
		 */
		abstract public function run();
	}
endif;

```
