HEX
Server: Apache
System: Linux cpanelx.inxs.ro 4.18.0-477.27.2.lve.el8.x86_64 #1 SMP Wed Oct 11 12:32:56 UTC 2023 x86_64
User: crowdandsafety (1041)
PHP: 8.1.34
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //proc/thread-self/cwd/wp-content/plugins/cornerstone/includes/elements/classic/_alternate/code.php
<?php

class CS_Code extends Cornerstone_Element_Base {

  public function data() {
    return array(
      'name'        => 'code',
      'title'       => __( 'Code Snippet', 'cornerstone' ),
      'section'     => 'typography',
      'description' => __( 'Code Snippet description.', 'cornerstone' ),
      'supports'    => array( 'id', 'class', 'style' ),
      'autofocus' => array(
    		'content' => '.x-code',
    	),
      'protected_keys' => array( 'content' )
    );
  }

  public function controls() {

    $this->addControl(
      'content',
      'textarea',
      __( 'Content', 'cornerstone' ),
      __( 'The content you want output. Keep in mind that this shortcode is meant to display code snippets, not output functioning code.', 'cornerstone' ),
      __( 'This shortcode is great for outputting code snippets or preformatted text.', 'cornerstone' )
    );

  }

  public function render( $atts ) {

    extract( $atts );

    $shortcode = "[x_code{$extra}]{$content}[/x_code]";

    return $shortcode;

  }

}