uawdijnntqw1x1x1
IP : 3.128.78.192
Hostname : c17w.hoster.ru
Kernel : Linux c17w.hoster.ru 3.10.0 #1 SMP Tue Jan 25 12:49:12 MSK 2022 x86_64
Disable Function : dl,shell_exec,exec,system,passthru,popen,proc_open,proc_nice,proc_get_status,proc_close,proc_terminate,posix_mkfifo,chown,chgrp,show_source,opcache_reset,opcache_get_configuration,opcache_get_status
OS : Linux
PATH:
/
home
/
srv221441
/
kso-don.ru
/
wp-content
/
plugins
/
presto-player
/
.
/
.
/
inc
/
.
/
Services
/
.
/
.
/
.
/
.
/
Blocks.php
/
/
<?php namespace PrestoPlayer\Services; /** * Registers all blocks */ class Blocks { /** * Register blocks * * @return Blocks */ public function register() { global $wp_version; if ( version_compare( $wp_version, '5.8', '>=' ) ) { add_filter( 'block_categories_all', array( $this, 'category' ), 10, 2 ); } else { add_filter( 'block_categories', array( $this, 'categoryDeprecated' ) ); } return $this; } /** * Give the blocks a category * * @param array $categories * @return array */ public function category( $block_categories, $editor_context ) { if ( ! empty( $editor_context->post ) ) { array_push( $block_categories, array( 'slug' => 'presto', 'title' => __( 'Presto', 'presto-player' ), 'icon' => null, ) ); } return $block_categories; } /** * Give the blocks a category * * @param array $categories * @return array */ public function categoryDeprecated( $categories ) { return array_merge( array( array( 'slug' => 'presto', 'title' => __( 'Presto', 'presto-player' ), ), ), $categories ); } }
/home/srv221441/kso-don.ru/wp-content/plugins/presto-player/././inc/./Services/././././Blocks.php