| Current Path : /home/x/b/o/xbodynamge/namtation/wp-content/ |
| Current File : /home/x/b/o/xbodynamge/namtation/wp-content/Blocks.tar |
FaqPage.php 0000666 00000001075 15114461541 0006572 0 ustar 00 <?php
namespace AIOSEO\Plugin\Common\Standalone\Blocks;
// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* FaqPage Block.
*
* @since 4.2.3
*/
class FaqPage extends Blocks {
/**
* Register the block.
*
* @since 4.2.3
*
* @return void
*/
public function register() {
aioseo()->blocks->registerBlock( 'aioseo/faq',
[
'render_callback' => function( $attributes, $content ) {
if ( isset( $attributes['hidden'] ) && true === $attributes['hidden'] ) {
return '';
}
return $content;
},
]
);
}
} Blocks.php 0000666 00000001166 15114461541 0006504 0 ustar 00 <?php
namespace AIOSEO\Plugin\Common\Standalone\Blocks;
// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* Loads core classes.
*
* @since 4.2.3
*/
abstract class Blocks {
/**
* Class constructor.
*
* @since 4.2.3
*/
public function __construct() {
add_action( 'init', [ $this, 'init' ] );
}
/**
* Initializes our blocks.
*
* @since 4.2.3
*
* @return void
*/
public function init() {
$this->register();
}
/**
* Registers the block. This is a wrapper to be extended in the child class.
*
* @since 4.2.3
*
* @return void
*/
public function register() {}
} TableOfContents.php 0000666 00000000616 15114461541 0010320 0 ustar 00 <?php
namespace AIOSEO\Plugin\Common\Standalone\Blocks;
// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* Table of Contents Block.
*
* @since 4.2.3
*/
class TableOfContents extends Blocks {
/**
* Register the block.
*
* @since 4.2.3
*
* @return void
*/
public function register() {
aioseo()->blocks->registerBlock( 'aioseo/table-of-contents' );
}
}